@apps-in-toss/web-framework 0.0.0-dev.1752114017143 → 0.0.0-dev.1753241576118

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.
@@ -87493,7 +87493,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
87493
87493
  var _default = exports.default = TurboModuleRegistry.get('LinkingManager');
87494
87494
  },412,[34],"../../../.yarn/unplugged/react-native-virtual-b5f6484574/node_modules/react-native/Libraries/Linking/NativeLinkingManager.js");
87495
87495
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
87496
- module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/line0/Dev/frontend-bedrock/.yarn/cache/@react-native-bedrock-mpack-next-npm-0.0.25-382cd22a0f-6b37accd87.zip/node_modules/@react-native-bedrock/mpack-next/dist/metro/bedrockAssetRegistry.js").registerAsset({
87496
+ module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/gahyun.park/Desktop/Projects/frontend-bedrock/.yarn/cache/@react-native-bedrock-mpack-next-npm-0.0.25-382cd22a0f-6b37accd87.zip/node_modules/@react-native-bedrock/mpack-next/dist/metro/bedrockAssetRegistry.js").registerAsset({
87497
87497
  "__packager_asset": true,
87498
87498
  "httpServerLocation": "/assets/../../../.yarn/unplugged/react-native-virtual-b5f6484574/node_modules/react-native/Libraries/LogBox/UI/LogBoxImages",
87499
87499
  "width": 28,
@@ -89172,7 +89172,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
89172
89172
  var _default = exports.default = NativeStatusBarManager;
89173
89173
  },429,[34],"../../../.yarn/unplugged/react-native-virtual-b5f6484574/node_modules/react-native/Libraries/Components/StatusBar/NativeStatusBarManagerIOS.js");
89174
89174
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
89175
- module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/line0/Dev/frontend-bedrock/.yarn/cache/@react-native-bedrock-mpack-next-npm-0.0.25-382cd22a0f-6b37accd87.zip/node_modules/@react-native-bedrock/mpack-next/dist/metro/bedrockAssetRegistry.js").registerAsset({
89175
+ module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/gahyun.park/Desktop/Projects/frontend-bedrock/.yarn/cache/@react-native-bedrock-mpack-next-npm-0.0.25-382cd22a0f-6b37accd87.zip/node_modules/@react-native-bedrock/mpack-next/dist/metro/bedrockAssetRegistry.js").registerAsset({
89176
89176
  "__packager_asset": true,
89177
89177
  "httpServerLocation": "/assets/../../../.yarn/unplugged/react-native-virtual-b5f6484574/node_modules/react-native/Libraries/LogBox/UI/LogBoxImages",
89178
89178
  "width": 16,
@@ -89184,7 +89184,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
89184
89184
  });
89185
89185
  },430,[414],"../../../.yarn/unplugged/react-native-virtual-b5f6484574/node_modules/react-native/Libraries/LogBox/UI/LogBoxImages/chevron-left.png");
89186
89186
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
89187
- module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/line0/Dev/frontend-bedrock/.yarn/cache/@react-native-bedrock-mpack-next-npm-0.0.25-382cd22a0f-6b37accd87.zip/node_modules/@react-native-bedrock/mpack-next/dist/metro/bedrockAssetRegistry.js").registerAsset({
89187
+ module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/gahyun.park/Desktop/Projects/frontend-bedrock/.yarn/cache/@react-native-bedrock-mpack-next-npm-0.0.25-382cd22a0f-6b37accd87.zip/node_modules/@react-native-bedrock/mpack-next/dist/metro/bedrockAssetRegistry.js").registerAsset({
89188
89188
  "__packager_asset": true,
89189
89189
  "httpServerLocation": "/assets/../../../.yarn/unplugged/react-native-virtual-b5f6484574/node_modules/react-native/Libraries/LogBox/UI/LogBoxImages",
89190
89190
  "width": 16,
@@ -89818,7 +89818,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
89818
89818
  var _default = exports.default = LogBoxInspectorSourceMapStatus;
89819
89819
  },435,[315,274,243,379,407,408,8,49,436,437],"../../../.yarn/unplugged/react-native-virtual-b5f6484574/node_modules/react-native/Libraries/LogBox/UI/LogBoxInspectorSourceMapStatus.js");
89820
89820
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
89821
- module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/line0/Dev/frontend-bedrock/.yarn/cache/@react-native-bedrock-mpack-next-npm-0.0.25-382cd22a0f-6b37accd87.zip/node_modules/@react-native-bedrock/mpack-next/dist/metro/bedrockAssetRegistry.js").registerAsset({
89821
+ module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/gahyun.park/Desktop/Projects/frontend-bedrock/.yarn/cache/@react-native-bedrock-mpack-next-npm-0.0.25-382cd22a0f-6b37accd87.zip/node_modules/@react-native-bedrock/mpack-next/dist/metro/bedrockAssetRegistry.js").registerAsset({
89822
89822
  "__packager_asset": true,
89823
89823
  "httpServerLocation": "/assets/../../../.yarn/unplugged/react-native-virtual-b5f6484574/node_modules/react-native/Libraries/LogBox/UI/LogBoxImages",
89824
89824
  "width": 48,
@@ -89830,7 +89830,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
89830
89830
  });
89831
89831
  },436,[414],"../../../.yarn/unplugged/react-native-virtual-b5f6484574/node_modules/react-native/Libraries/LogBox/UI/LogBoxImages/alert-triangle.png");
89832
89832
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
89833
- module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/line0/Dev/frontend-bedrock/.yarn/cache/@react-native-bedrock-mpack-next-npm-0.0.25-382cd22a0f-6b37accd87.zip/node_modules/@react-native-bedrock/mpack-next/dist/metro/bedrockAssetRegistry.js").registerAsset({
89833
+ module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/gahyun.park/Desktop/Projects/frontend-bedrock/.yarn/cache/@react-native-bedrock-mpack-next-npm-0.0.25-382cd22a0f-6b37accd87.zip/node_modules/@react-native-bedrock/mpack-next/dist/metro/bedrockAssetRegistry.js").registerAsset({
89834
89834
  "__packager_asset": true,
89835
89835
  "httpServerLocation": "/assets/../../../.yarn/unplugged/react-native-virtual-b5f6484574/node_modules/react-native/Libraries/LogBox/UI/LogBoxImages",
89836
89836
  "width": 44,
@@ -108470,7 +108470,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
108470
108470
  }
108471
108471
  },650,[511,8,11,49],"../../../.yarn/__virtual__/@react-navigation-elements-virtual-a2d7be669a/0/cache/@react-navigation-elements-npm-1.3.31-e09b25e3e4-4a2e6ee67d.zip/node_modules/@react-navigation/elements/src/PlatformPressable.tsx");
108472
108472
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
108473
- module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/line0/Dev/frontend-bedrock/.yarn/cache/@react-native-bedrock-mpack-next-npm-0.0.25-382cd22a0f-6b37accd87.zip/node_modules/@react-native-bedrock/mpack-next/dist/metro/bedrockAssetRegistry.js").registerAsset({
108473
+ module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/gahyun.park/Desktop/Projects/frontend-bedrock/.yarn/cache/@react-native-bedrock-mpack-next-npm-0.0.25-382cd22a0f-6b37accd87.zip/node_modules/@react-native-bedrock/mpack-next/dist/metro/bedrockAssetRegistry.js").registerAsset({
108474
108474
  "__packager_asset": true,
108475
108475
  "httpServerLocation": "/assets/../../../.yarn/__virtual__/@react-navigation-elements-virtual-a2d7be669a/0/cache/@react-navigation-elements-npm-1.3.31-e09b25e3e4-4a2e6ee67d.zip/node_modules/@react-navigation/elements/src/assets",
108476
108476
  "width": 24,
@@ -108482,7 +108482,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
108482
108482
  });
108483
108483
  },651,[414],"../../../.yarn/__virtual__/@react-navigation-elements-virtual-a2d7be669a/0/cache/@react-navigation-elements-npm-1.3.31-e09b25e3e4-4a2e6ee67d.zip/node_modules/@react-navigation/elements/src/assets/back-icon.png");
108484
108484
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
108485
- module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/line0/Dev/frontend-bedrock/.yarn/cache/@react-native-bedrock-mpack-next-npm-0.0.25-382cd22a0f-6b37accd87.zip/node_modules/@react-native-bedrock/mpack-next/dist/metro/bedrockAssetRegistry.js").registerAsset({
108485
+ module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/gahyun.park/Desktop/Projects/frontend-bedrock/.yarn/cache/@react-native-bedrock-mpack-next-npm-0.0.25-382cd22a0f-6b37accd87.zip/node_modules/@react-native-bedrock/mpack-next/dist/metro/bedrockAssetRegistry.js").registerAsset({
108486
108486
  "__packager_asset": true,
108487
108487
  "httpServerLocation": "/assets/../../../.yarn/__virtual__/@react-navigation-elements-virtual-a2d7be669a/0/cache/@react-navigation-elements-npm-1.3.31-e09b25e3e4-4a2e6ee67d.zip/node_modules/@react-navigation/elements/src/assets",
108488
108488
  "width": 50,
@@ -154773,6 +154773,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
154773
154773
  getDeviceId: function getDeviceId() {
154774
154774
  return _getDeviceId;
154775
154775
  },
154776
+ getGameCenterGameProfile: function getGameCenterGameProfile() {
154777
+ return _getGameCenterGameProfile;
154778
+ },
154776
154779
  getOperationalEnvironment: function getOperationalEnvironment() {
154777
154780
  return _getOperationalEnvironment;
154778
154781
  },
@@ -154788,6 +154791,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
154788
154791
  openCamera: function openCamera() {
154789
154792
  return _openCamera;
154790
154793
  },
154794
+ openGameCenterLeaderboard: function openGameCenterLeaderboard() {
154795
+ return _openGameCenterLeaderboard;
154796
+ },
154791
154797
  saveBase64Data: function saveBase64Data() {
154792
154798
  return _saveBase64Data;
154793
154799
  },
@@ -154800,6 +154806,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
154800
154806
  startUpdateLocation: function startUpdateLocation() {
154801
154807
  return _startUpdateLocation;
154802
154808
  },
154809
+ submitGameCenterLeaderBoardScore: function submitGameCenterLeaderBoardScore() {
154810
+ return _submitGameCenterLeaderBoardScore;
154811
+ },
154812
+ useCreateUserAgent: function useCreateUserAgent() {
154813
+ return _useCreateUserAgent;
154814
+ },
154803
154815
  useGeolocation: function useGeolocation() {
154804
154816
  return _useGeolocation;
154805
154817
  }
@@ -154808,7 +154820,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
154808
154820
  var import_analytics2 = _$$_REQUIRE(_dependencyMap[0], "@apps-in-toss/analytics");
154809
154821
  var import_analytics = _$$_REQUIRE(_dependencyMap[0], "@apps-in-toss/analytics");
154810
154822
  var import_react_native6 = _$$_REQUIRE(_dependencyMap[1], "@toss-design-system/react-native");
154811
- var import_react_native_bedrock8 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
154823
+ var import_react_native_bedrock9 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
154812
154824
  var import_react2 = _$$_REQUIRE(_dependencyMap[3], "react");
154813
154825
  var import_react_native_bedrock2 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
154814
154826
  var _env = {
@@ -155031,27 +155043,27 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155031
155043
  return _requestPermission.apply(this, arguments);
155032
155044
  }
155033
155045
  function _requestPermission() {
155034
- _requestPermission = _asyncToGenerator(_regeneratorRuntime().mark(function _callee4(permission) {
155046
+ _requestPermission = _asyncToGenerator(_regeneratorRuntime().mark(function _callee9(permission) {
155035
155047
  var permissionStatus;
155036
- return _regeneratorRuntime().wrap(function _callee4$(_context4) {
155037
- while (1) switch (_context4.prev = _context4.next) {
155048
+ return _regeneratorRuntime().wrap(function _callee9$(_context9) {
155049
+ while (1) switch (_context9.prev = _context9.next) {
155038
155050
  case 0:
155039
- _context4.next = 2;
155051
+ _context9.next = 2;
155040
155052
  return getPermission(permission);
155041
155053
  case 2:
155042
- permissionStatus = _context4.sent;
155043
- _context4.t0 = permissionStatus;
155044
- _context4.next = _context4.t0 === "allowed" ? 6 : _context4.t0 === "denied" ? 6 : 7;
155054
+ permissionStatus = _context9.sent;
155055
+ _context9.t0 = permissionStatus;
155056
+ _context9.next = _context9.t0 === "allowed" ? 6 : _context9.t0 === "denied" ? 6 : 7;
155045
155057
  break;
155046
155058
  case 6:
155047
- return _context4.abrupt("return", permissionStatus);
155059
+ return _context9.abrupt("return", permissionStatus);
155048
155060
  case 7:
155049
- return _context4.abrupt("return", openPermissionDialog(permission));
155061
+ return _context9.abrupt("return", openPermissionDialog(permission));
155050
155062
  case 8:
155051
155063
  case "end":
155052
- return _context4.stop();
155064
+ return _context9.stop();
155053
155065
  }
155054
- }, _callee4);
155066
+ }, _callee9);
155055
155067
  }));
155056
155068
  return _requestPermission.apply(this, arguments);
155057
155069
  }
@@ -155304,12 +155316,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155304
155316
  getCurrentLocation: function getCurrentLocation() {
155305
155317
  return _getCurrentLocation;
155306
155318
  },
155319
+ getGameCenterGameProfile: function getGameCenterGameProfile() {
155320
+ return _getGameCenterGameProfile;
155321
+ },
155307
155322
  getTossShareLink: function getTossShareLink() {
155308
155323
  return _getTossShareLink;
155309
155324
  },
155310
155325
  openCamera: function openCamera() {
155311
155326
  return _openCamera;
155312
155327
  },
155328
+ openGameCenterLeaderboard: function openGameCenterLeaderboard() {
155329
+ return _openGameCenterLeaderboard;
155330
+ },
155313
155331
  saveBase64Data: function saveBase64Data() {
155314
155332
  return _saveBase64Data;
155315
155333
  },
@@ -155318,38 +155336,41 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155318
155336
  },
155319
155337
  setDeviceOrientation: function setDeviceOrientation() {
155320
155338
  return _setDeviceOrientation;
155339
+ },
155340
+ submitGameCenterLeaderBoardScore: function submitGameCenterLeaderBoardScore() {
155341
+ return _submitGameCenterLeaderBoardScore;
155321
155342
  }
155322
155343
  });
155323
155344
  function _setClipboardText(_x2) {
155324
155345
  return _setClipboardText2.apply(this, arguments);
155325
155346
  }
155326
155347
  function _setClipboardText2() {
155327
- _setClipboardText2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee5(text) {
155348
+ _setClipboardText2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee10(text) {
155328
155349
  var permissionStatus;
155329
- return _regeneratorRuntime().wrap(function _callee5$(_context5) {
155330
- while (1) switch (_context5.prev = _context5.next) {
155350
+ return _regeneratorRuntime().wrap(function _callee10$(_context10) {
155351
+ while (1) switch (_context10.prev = _context10.next) {
155331
155352
  case 0:
155332
- _context5.next = 2;
155353
+ _context10.next = 2;
155333
155354
  return requestPermission({
155334
155355
  name: "clipboard",
155335
155356
  access: "write"
155336
155357
  });
155337
155358
  case 2:
155338
- permissionStatus = _context5.sent;
155359
+ permissionStatus = _context10.sent;
155339
155360
  if (!(permissionStatus === "denied")) {
155340
- _context5.next = 5;
155361
+ _context10.next = 5;
155341
155362
  break;
155342
155363
  }
155343
155364
  throw new Error("\uD074\uB9BD\uBCF4\uB4DC \uC4F0\uAE30 \uAD8C\uD55C\uC774 \uAC70\uBD80\uB418\uC5C8\uC5B4\uC694.");
155344
155365
  case 5:
155345
- return _context5.abrupt("return", AppsInTossModule.setClipboardText({
155366
+ return _context10.abrupt("return", AppsInTossModule.setClipboardText({
155346
155367
  text: text
155347
155368
  }));
155348
155369
  case 6:
155349
155370
  case "end":
155350
- return _context5.stop();
155371
+ return _context10.stop();
155351
155372
  }
155352
- }, _callee5);
155373
+ }, _callee10);
155353
155374
  }));
155354
155375
  return _setClipboardText2.apply(this, arguments);
155355
155376
  }
@@ -155357,30 +155378,30 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155357
155378
  return _getClipboardText2.apply(this, arguments);
155358
155379
  }
155359
155380
  function _getClipboardText2() {
155360
- _getClipboardText2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee6() {
155381
+ _getClipboardText2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee11() {
155361
155382
  var permissionStatus;
155362
- return _regeneratorRuntime().wrap(function _callee6$(_context6) {
155363
- while (1) switch (_context6.prev = _context6.next) {
155383
+ return _regeneratorRuntime().wrap(function _callee11$(_context11) {
155384
+ while (1) switch (_context11.prev = _context11.next) {
155364
155385
  case 0:
155365
- _context6.next = 2;
155386
+ _context11.next = 2;
155366
155387
  return requestPermission({
155367
155388
  name: "clipboard",
155368
155389
  access: "read"
155369
155390
  });
155370
155391
  case 2:
155371
- permissionStatus = _context6.sent;
155392
+ permissionStatus = _context11.sent;
155372
155393
  if (!(permissionStatus === "denied")) {
155373
- _context6.next = 5;
155394
+ _context11.next = 5;
155374
155395
  break;
155375
155396
  }
155376
155397
  throw new Error("\uD074\uB9BD\uBCF4\uB4DC \uC77D\uAE30 \uAD8C\uD55C\uC774 \uAC70\uBD80\uB418\uC5C8\uC5B4\uC694.");
155377
155398
  case 5:
155378
- return _context6.abrupt("return", AppsInTossModule.getClipboardText({}));
155399
+ return _context11.abrupt("return", AppsInTossModule.getClipboardText({}));
155379
155400
  case 6:
155380
155401
  case "end":
155381
- return _context6.stop();
155402
+ return _context11.stop();
155382
155403
  }
155383
- }, _callee6);
155404
+ }, _callee11);
155384
155405
  }));
155385
155406
  return _getClipboardText2.apply(this, arguments);
155386
155407
  }
@@ -155388,44 +155409,44 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155388
155409
  return _fetchContacts2.apply(this, arguments);
155389
155410
  }
155390
155411
  function _fetchContacts2() {
155391
- _fetchContacts2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee7(_ref2) {
155412
+ _fetchContacts2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee12(_ref2) {
155392
155413
  var _contacts$nextOffset;
155393
155414
  var size, offset, query, permissionStatus, contacts;
155394
- return _regeneratorRuntime().wrap(function _callee7$(_context7) {
155395
- while (1) switch (_context7.prev = _context7.next) {
155415
+ return _regeneratorRuntime().wrap(function _callee12$(_context12) {
155416
+ while (1) switch (_context12.prev = _context12.next) {
155396
155417
  case 0:
155397
155418
  size = _ref2.size, offset = _ref2.offset, query = _ref2.query;
155398
- _context7.next = 3;
155419
+ _context12.next = 3;
155399
155420
  return requestPermission({
155400
155421
  name: "contacts",
155401
155422
  access: "read"
155402
155423
  });
155403
155424
  case 3:
155404
- permissionStatus = _context7.sent;
155425
+ permissionStatus = _context12.sent;
155405
155426
  if (!(permissionStatus === "denied")) {
155406
- _context7.next = 6;
155427
+ _context12.next = 6;
155407
155428
  break;
155408
155429
  }
155409
155430
  throw new Error("\uC5F0\uB77D\uCC98 \uAD8C\uD55C\uC774 \uAC70\uBD80\uB418\uC5C8\uC5B4\uC694.");
155410
155431
  case 6:
155411
- _context7.next = 8;
155432
+ _context12.next = 8;
155412
155433
  return AppsInTossModule.fetchContacts({
155413
155434
  size: size,
155414
155435
  offset: offset,
155415
155436
  query: query
155416
155437
  });
155417
155438
  case 8:
155418
- contacts = _context7.sent;
155419
- return _context7.abrupt("return", {
155439
+ contacts = _context12.sent;
155440
+ return _context12.abrupt("return", {
155420
155441
  result: contacts.result,
155421
155442
  nextOffset: (_contacts$nextOffset = contacts.nextOffset) !== null && _contacts$nextOffset !== void 0 ? _contacts$nextOffset : null,
155422
155443
  done: contacts.done
155423
155444
  });
155424
155445
  case 10:
155425
155446
  case "end":
155426
- return _context7.stop();
155447
+ return _context12.stop();
155427
155448
  }
155428
- }, _callee7);
155449
+ }, _callee12);
155429
155450
  }));
155430
155451
  return _fetchContacts2.apply(this, arguments);
155431
155452
  }
@@ -155435,38 +155456,38 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155435
155456
  return _fetchAlbumPhotos2.apply(this, arguments);
155436
155457
  }
155437
155458
  function _fetchAlbumPhotos2() {
155438
- _fetchAlbumPhotos2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee8(options) {
155459
+ _fetchAlbumPhotos2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee13(options) {
155439
155460
  var _options$maxCount, _options$maxWidth;
155440
155461
  var permissionStatus, albumPhotos;
155441
- return _regeneratorRuntime().wrap(function _callee8$(_context8) {
155442
- while (1) switch (_context8.prev = _context8.next) {
155462
+ return _regeneratorRuntime().wrap(function _callee13$(_context13) {
155463
+ while (1) switch (_context13.prev = _context13.next) {
155443
155464
  case 0:
155444
- _context8.next = 2;
155465
+ _context13.next = 2;
155445
155466
  return requestPermission({
155446
155467
  name: "photos",
155447
155468
  access: "read"
155448
155469
  });
155449
155470
  case 2:
155450
- permissionStatus = _context8.sent;
155471
+ permissionStatus = _context13.sent;
155451
155472
  if (!(permissionStatus === "denied")) {
155452
- _context8.next = 5;
155473
+ _context13.next = 5;
155453
155474
  break;
155454
155475
  }
155455
155476
  throw new Error("\uC0AC\uC9C4\uCCA9 \uAD8C\uD55C\uC774 \uAC70\uBD80\uB418\uC5C8\uC5B4\uC694.");
155456
155477
  case 5:
155457
- _context8.next = 7;
155478
+ _context13.next = 7;
155458
155479
  return AppsInTossModule.fetchAlbumPhotos(_objectSpread(_objectSpread({}, options), {}, {
155459
155480
  maxCount: (_options$maxCount = options.maxCount) !== null && _options$maxCount !== void 0 ? _options$maxCount : DEFAULT_MAX_COUNT,
155460
155481
  maxWidth: (_options$maxWidth = options.maxWidth) !== null && _options$maxWidth !== void 0 ? _options$maxWidth : DEFAULT_MAX_WIDTH
155461
155482
  }));
155462
155483
  case 7:
155463
- albumPhotos = _context8.sent;
155464
- return _context8.abrupt("return", albumPhotos);
155484
+ albumPhotos = _context13.sent;
155485
+ return _context13.abrupt("return", albumPhotos);
155465
155486
  case 9:
155466
155487
  case "end":
155467
- return _context8.stop();
155488
+ return _context13.stop();
155468
155489
  }
155469
- }, _callee8);
155490
+ }, _callee13);
155470
155491
  }));
155471
155492
  return _fetchAlbumPhotos2.apply(this, arguments);
155472
155493
  }
@@ -155474,34 +155495,34 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155474
155495
  return _getCurrentLocation2.apply(this, arguments);
155475
155496
  }
155476
155497
  function _getCurrentLocation2() {
155477
- _getCurrentLocation2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee9(options) {
155498
+ _getCurrentLocation2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee14(options) {
155478
155499
  var permissionStatus, position;
155479
- return _regeneratorRuntime().wrap(function _callee9$(_context9) {
155480
- while (1) switch (_context9.prev = _context9.next) {
155500
+ return _regeneratorRuntime().wrap(function _callee14$(_context14) {
155501
+ while (1) switch (_context14.prev = _context14.next) {
155481
155502
  case 0:
155482
- _context9.next = 2;
155503
+ _context14.next = 2;
155483
155504
  return requestPermission({
155484
155505
  name: "geolocation",
155485
155506
  access: "access"
155486
155507
  });
155487
155508
  case 2:
155488
- permissionStatus = _context9.sent;
155509
+ permissionStatus = _context14.sent;
155489
155510
  if (!(permissionStatus === "denied")) {
155490
- _context9.next = 5;
155511
+ _context14.next = 5;
155491
155512
  break;
155492
155513
  }
155493
155514
  throw new Error("\uC704\uCE58 \uAD8C\uD55C\uC774 \uAC70\uBD80\uB418\uC5C8\uC5B4\uC694.");
155494
155515
  case 5:
155495
- _context9.next = 7;
155516
+ _context14.next = 7;
155496
155517
  return AppsInTossModule.getCurrentLocation(options);
155497
155518
  case 7:
155498
- position = _context9.sent;
155499
- return _context9.abrupt("return", position);
155519
+ position = _context14.sent;
155520
+ return _context14.abrupt("return", position);
155500
155521
  case 9:
155501
155522
  case "end":
155502
- return _context9.stop();
155523
+ return _context14.stop();
155503
155524
  }
155504
- }, _callee9);
155525
+ }, _callee14);
155505
155526
  }));
155506
155527
  return _getCurrentLocation2.apply(this, arguments);
155507
155528
  }
@@ -155509,37 +155530,37 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155509
155530
  return _openCamera2.apply(this, arguments);
155510
155531
  }
155511
155532
  function _openCamera2() {
155512
- _openCamera2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee10(options) {
155533
+ _openCamera2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee15(options) {
155513
155534
  var permissionStatus, photo;
155514
- return _regeneratorRuntime().wrap(function _callee10$(_context10) {
155515
- while (1) switch (_context10.prev = _context10.next) {
155535
+ return _regeneratorRuntime().wrap(function _callee15$(_context15) {
155536
+ while (1) switch (_context15.prev = _context15.next) {
155516
155537
  case 0:
155517
- _context10.next = 2;
155538
+ _context15.next = 2;
155518
155539
  return requestPermission({
155519
155540
  name: "camera",
155520
155541
  access: "access"
155521
155542
  });
155522
155543
  case 2:
155523
- permissionStatus = _context10.sent;
155544
+ permissionStatus = _context15.sent;
155524
155545
  if (!(permissionStatus === "denied")) {
155525
- _context10.next = 5;
155546
+ _context15.next = 5;
155526
155547
  break;
155527
155548
  }
155528
155549
  throw new Error("\uCE74\uBA54\uB77C \uAD8C\uD55C\uC774 \uAC70\uBD80\uB418\uC5C8\uC5B4\uC694.");
155529
155550
  case 5:
155530
- _context10.next = 7;
155551
+ _context15.next = 7;
155531
155552
  return AppsInTossModule.openCamera(_objectSpread({
155532
155553
  base64: false,
155533
155554
  maxWidth: 1024
155534
155555
  }, options));
155535
155556
  case 7:
155536
- photo = _context10.sent;
155537
- return _context10.abrupt("return", photo);
155557
+ photo = _context15.sent;
155558
+ return _context15.abrupt("return", photo);
155538
155559
  case 9:
155539
155560
  case "end":
155540
- return _context10.stop();
155561
+ return _context15.stop();
155541
155562
  }
155542
- }, _callee10);
155563
+ }, _callee15);
155543
155564
  }));
155544
155565
  return _openCamera2.apply(this, arguments);
155545
155566
  }
@@ -155547,16 +155568,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155547
155568
  return _appLogin2.apply(this, arguments);
155548
155569
  }
155549
155570
  function _appLogin2() {
155550
- _appLogin2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee11() {
155551
- return _regeneratorRuntime().wrap(function _callee11$(_context11) {
155552
- while (1) switch (_context11.prev = _context11.next) {
155571
+ _appLogin2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee16() {
155572
+ return _regeneratorRuntime().wrap(function _callee16$(_context16) {
155573
+ while (1) switch (_context16.prev = _context16.next) {
155553
155574
  case 0:
155554
- return _context11.abrupt("return", AppsInTossModule.appLogin({}));
155575
+ return _context16.abrupt("return", AppsInTossModule.appLogin({}));
155555
155576
  case 1:
155556
155577
  case "end":
155557
- return _context11.stop();
155578
+ return _context16.stop();
155558
155579
  }
155559
- }, _callee11);
155580
+ }, _callee16);
155560
155581
  }));
155561
155582
  return _appLogin2.apply(this, arguments);
155562
155583
  }
@@ -155564,18 +155585,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155564
155585
  return _checkoutPayment2.apply(this, arguments);
155565
155586
  }
155566
155587
  function _checkoutPayment2() {
155567
- _checkoutPayment2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee12(options) {
155568
- return _regeneratorRuntime().wrap(function _callee12$(_context12) {
155569
- while (1) switch (_context12.prev = _context12.next) {
155588
+ _checkoutPayment2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee17(options) {
155589
+ return _regeneratorRuntime().wrap(function _callee17$(_context17) {
155590
+ while (1) switch (_context17.prev = _context17.next) {
155570
155591
  case 0:
155571
- return _context12.abrupt("return", AppsInTossModule.checkoutPayment({
155592
+ return _context17.abrupt("return", AppsInTossModule.checkoutPayment({
155572
155593
  params: options
155573
155594
  }));
155574
155595
  case 1:
155575
155596
  case "end":
155576
- return _context12.stop();
155597
+ return _context17.stop();
155577
155598
  }
155578
- }, _callee12);
155599
+ }, _callee17);
155579
155600
  }));
155580
155601
  return _checkoutPayment2.apply(this, arguments);
155581
155602
  }
@@ -155595,13 +155616,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155595
155616
  return _eventLog2.apply(this, arguments);
155596
155617
  }
155597
155618
  function _eventLog2() {
155598
- _eventLog2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee13(params) {
155619
+ _eventLog2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee18(params) {
155599
155620
  var isSupported;
155600
- return _regeneratorRuntime().wrap(function _callee13$(_context13) {
155601
- while (1) switch (_context13.prev = _context13.next) {
155621
+ return _regeneratorRuntime().wrap(function _callee18$(_context18) {
155622
+ while (1) switch (_context18.prev = _context18.next) {
155602
155623
  case 0:
155603
155624
  if (!(AppsInTossModule.operationalEnvironment === "sandbox")) {
155604
- _context13.next = 3;
155625
+ _context18.next = 3;
155605
155626
  break;
155606
155627
  }
155607
155628
  console.log("[eventLogDebug]", {
@@ -155609,28 +155630,28 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155609
155630
  log_type: params.log_type,
155610
155631
  params: normalizeParams(params.params)
155611
155632
  });
155612
- return _context13.abrupt("return");
155633
+ return _context18.abrupt("return");
155613
155634
  case 3:
155614
155635
  isSupported = _isMinVersionSupported({
155615
155636
  android: "5.208.0",
155616
155637
  ios: "5.208.0"
155617
155638
  });
155618
155639
  if (isSupported) {
155619
- _context13.next = 6;
155640
+ _context18.next = 6;
155620
155641
  break;
155621
155642
  }
155622
- return _context13.abrupt("return");
155643
+ return _context18.abrupt("return");
155623
155644
  case 6:
155624
- return _context13.abrupt("return", AppsInTossModule.eventLog({
155645
+ return _context18.abrupt("return", AppsInTossModule.eventLog({
155625
155646
  log_name: params.log_name,
155626
155647
  log_type: params.log_type,
155627
155648
  params: normalizeParams(params.params)
155628
155649
  }));
155629
155650
  case 7:
155630
155651
  case "end":
155631
- return _context13.stop();
155652
+ return _context18.stop();
155632
155653
  }
155633
- }, _callee13);
155654
+ }, _callee18);
155634
155655
  }));
155635
155656
  return _eventLog2.apply(this, arguments);
155636
155657
  }
@@ -155638,25 +155659,25 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155638
155659
  return _getTossShareLink2.apply(this, arguments);
155639
155660
  }
155640
155661
  function _getTossShareLink2() {
155641
- _getTossShareLink2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee14(path) {
155662
+ _getTossShareLink2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee19(path) {
155642
155663
  var _yield$AppsInTossModu, shareLink, shareUrl;
155643
- return _regeneratorRuntime().wrap(function _callee14$(_context14) {
155644
- while (1) switch (_context14.prev = _context14.next) {
155664
+ return _regeneratorRuntime().wrap(function _callee19$(_context19) {
155665
+ while (1) switch (_context19.prev = _context19.next) {
155645
155666
  case 0:
155646
- _context14.next = 2;
155667
+ _context19.next = 2;
155647
155668
  return AppsInTossModule.getTossShareLink({});
155648
155669
  case 2:
155649
- _yield$AppsInTossModu = _context14.sent;
155670
+ _yield$AppsInTossModu = _context19.sent;
155650
155671
  shareLink = _yield$AppsInTossModu.shareLink;
155651
155672
  shareUrl = new URL(shareLink);
155652
155673
  shareUrl.searchParams.set("deep_link_value", path);
155653
155674
  shareUrl.searchParams.set("af_dp", path);
155654
- return _context14.abrupt("return", shareUrl.toString());
155675
+ return _context19.abrupt("return", shareUrl.toString());
155655
155676
  case 8:
155656
155677
  case "end":
155657
- return _context14.stop();
155678
+ return _context19.stop();
155658
155679
  }
155659
- }, _callee14);
155680
+ }, _callee19);
155660
155681
  }));
155661
155682
  return _getTossShareLink2.apply(this, arguments);
155662
155683
  }
@@ -155664,27 +155685,27 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155664
155685
  return _setDeviceOrientation2.apply(this, arguments);
155665
155686
  }
155666
155687
  function _setDeviceOrientation2() {
155667
- _setDeviceOrientation2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee15(options) {
155688
+ _setDeviceOrientation2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee20(options) {
155668
155689
  var isSupported;
155669
- return _regeneratorRuntime().wrap(function _callee15$(_context15) {
155670
- while (1) switch (_context15.prev = _context15.next) {
155690
+ return _regeneratorRuntime().wrap(function _callee20$(_context20) {
155691
+ while (1) switch (_context20.prev = _context20.next) {
155671
155692
  case 0:
155672
155693
  isSupported = _isMinVersionSupported({
155673
155694
  android: "5.215.0",
155674
155695
  ios: "5.215.0"
155675
155696
  });
155676
155697
  if (isSupported) {
155677
- _context15.next = 3;
155698
+ _context20.next = 3;
155678
155699
  break;
155679
155700
  }
155680
- return _context15.abrupt("return");
155701
+ return _context20.abrupt("return");
155681
155702
  case 3:
155682
- return _context15.abrupt("return", AppsInTossModule.setDeviceOrientation(options));
155703
+ return _context20.abrupt("return", AppsInTossModule.setDeviceOrientation(options));
155683
155704
  case 4:
155684
155705
  case "end":
155685
- return _context15.stop();
155706
+ return _context20.stop();
155686
155707
  }
155687
- }, _callee15);
155708
+ }, _callee20);
155688
155709
  }));
155689
155710
  return _setDeviceOrientation2.apply(this, arguments);
155690
155711
  }
@@ -155692,32 +155713,115 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155692
155713
  return _saveBase64Data2.apply(this, arguments);
155693
155714
  }
155694
155715
  function _saveBase64Data2() {
155695
- _saveBase64Data2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee16(params) {
155716
+ _saveBase64Data2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee21(params) {
155696
155717
  var isSupported;
155697
- return _regeneratorRuntime().wrap(function _callee16$(_context16) {
155698
- while (1) switch (_context16.prev = _context16.next) {
155718
+ return _regeneratorRuntime().wrap(function _callee21$(_context21) {
155719
+ while (1) switch (_context21.prev = _context21.next) {
155699
155720
  case 0:
155700
155721
  isSupported = _isMinVersionSupported({
155701
155722
  android: "5.218.0",
155702
155723
  ios: "5.216.0"
155703
155724
  });
155704
155725
  if (isSupported) {
155705
- _context16.next = 4;
155726
+ _context21.next = 4;
155706
155727
  break;
155707
155728
  }
155708
155729
  console.warn("saveBase64Data is not supported in this app version");
155709
- return _context16.abrupt("return");
155730
+ return _context21.abrupt("return");
155710
155731
  case 4:
155711
- _context16.next = 6;
155732
+ _context21.next = 6;
155712
155733
  return AppsInTossModule.saveBase64Data(params);
155713
155734
  case 6:
155714
155735
  case "end":
155715
- return _context16.stop();
155736
+ return _context21.stop();
155716
155737
  }
155717
- }, _callee16);
155738
+ }, _callee21);
155718
155739
  }));
155719
155740
  return _saveBase64Data2.apply(this, arguments);
155720
155741
  }
155742
+ var GAME_PROFILE_WEBVIEW_URL = "https://service.toss.im/game-center/profile";
155743
+ var GAME_CENTER_MIN_VERSION = {
155744
+ android: "5.221.0",
155745
+ ios: "5.221.0"
155746
+ };
155747
+ function _getGameCenterGameProfile() {
155748
+ return _getGameCenterGameProfile2.apply(this, arguments);
155749
+ }
155750
+ function _getGameCenterGameProfile2() {
155751
+ _getGameCenterGameProfile2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee22() {
155752
+ var isSupported;
155753
+ return _regeneratorRuntime().wrap(function _callee22$(_context22) {
155754
+ while (1) switch (_context22.prev = _context22.next) {
155755
+ case 0:
155756
+ isSupported = _isMinVersionSupported(GAME_CENTER_MIN_VERSION);
155757
+ if (isSupported) {
155758
+ _context22.next = 3;
155759
+ break;
155760
+ }
155761
+ return _context22.abrupt("return");
155762
+ case 3:
155763
+ return _context22.abrupt("return", AppsInTossModule.getGameCenterGameProfile({}));
155764
+ case 4:
155765
+ case "end":
155766
+ return _context22.stop();
155767
+ }
155768
+ }, _callee22);
155769
+ }));
155770
+ return _getGameCenterGameProfile2.apply(this, arguments);
155771
+ }
155772
+ var import_react_native_bedrock8 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
155773
+ function _openGameCenterLeaderboard() {
155774
+ return _openGameCenterLeaderboard2.apply(this, arguments);
155775
+ }
155776
+ function _openGameCenterLeaderboard2() {
155777
+ _openGameCenterLeaderboard2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee23() {
155778
+ var url;
155779
+ return _regeneratorRuntime().wrap(function _callee23$(_context23) {
155780
+ while (1) switch (_context23.prev = _context23.next) {
155781
+ case 0:
155782
+ if (_isMinVersionSupported(GAME_CENTER_MIN_VERSION)) {
155783
+ _context23.next = 2;
155784
+ break;
155785
+ }
155786
+ return _context23.abrupt("return");
155787
+ case 2:
155788
+ url = new URL("servicetoss://game-center/leaderboard?_navbar=hide");
155789
+ url.searchParams.set("appName", getAppName());
155790
+ url.searchParams.set("referrer", "appsintoss.".concat(getAppName()));
155791
+ return _context23.abrupt("return", (0, import_react_native_bedrock8.openURL)(url.toString()));
155792
+ case 6:
155793
+ case "end":
155794
+ return _context23.stop();
155795
+ }
155796
+ }, _callee23);
155797
+ }));
155798
+ return _openGameCenterLeaderboard2.apply(this, arguments);
155799
+ }
155800
+ function _submitGameCenterLeaderBoardScore(_x12) {
155801
+ return _submitGameCenterLeaderBoardScore2.apply(this, arguments);
155802
+ }
155803
+ function _submitGameCenterLeaderBoardScore2() {
155804
+ _submitGameCenterLeaderBoardScore2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee24(params) {
155805
+ var isSupported;
155806
+ return _regeneratorRuntime().wrap(function _callee24$(_context24) {
155807
+ while (1) switch (_context24.prev = _context24.next) {
155808
+ case 0:
155809
+ isSupported = _isMinVersionSupported(GAME_CENTER_MIN_VERSION);
155810
+ if (isSupported) {
155811
+ _context24.next = 3;
155812
+ break;
155813
+ }
155814
+ return _context24.abrupt("return");
155815
+ case 3:
155816
+ return _context24.abrupt("return", AppsInTossModule.submitGameCenterLeaderBoardScore(params));
155817
+ case 4:
155818
+ case "end":
155819
+ return _context24.stop();
155820
+ }
155821
+ }, _callee24);
155822
+ }));
155823
+ return _submitGameCenterLeaderBoardScore2.apply(this, arguments);
155824
+ }
155721
155825
  var import_jsx_runtime = _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime");
155722
155826
  function AppsInTossContainer(Container, _ref7) {
155723
155827
  var children = _ref7.children,
@@ -155755,7 +155859,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155755
155859
  },
155756
155860
  debug: (_analytics$debug = analytics === null || analytics === void 0 ? void 0 : analytics.debug) !== null && _analytics$debug !== void 0 ? _analytics$debug : __DEV__
155757
155861
  });
155758
- return import_react_native_bedrock8.Bedrock.registerApp(AppsInTossContainer.bind(null, container), {
155862
+ return import_react_native_bedrock9.Bedrock.registerApp(AppsInTossContainer.bind(null, container), {
155759
155863
  appName: getAppName(),
155760
155864
  context: context,
155761
155865
  router: {
@@ -155929,62 +156033,37 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155929
156033
  loadAdMobRewardedAd.isSupported = createIsSupported();
155930
156034
  showAdMobInterstitialAd.isSupported = createIsSupported();
155931
156035
  showAdMobRewardedAd.isSupported = createIsSupported();
155932
- function _getTossAppVersion() {
155933
- return AppsInTossModule.tossAppVersion;
155934
- }
155935
156036
  function _getDeviceId() {
155936
156037
  return AppsInTossModule.deviceId;
155937
156038
  }
155938
- function getItem(key) {
155939
- return AppsInTossModule.getStorageItem({
155940
- key: key
155941
- });
155942
- }
155943
- function setItem(key, value) {
155944
- return AppsInTossModule.setStorageItem({
155945
- key: key,
155946
- value: value
155947
- });
155948
- }
155949
- function removeItem(key) {
155950
- return AppsInTossModule.removeStorageItem({
155951
- key: key
155952
- });
155953
- }
155954
- function clearItems() {
155955
- return AppsInTossModule.clearStorage({});
156039
+ function _getTossAppVersion() {
156040
+ return AppsInTossModule.tossAppVersion;
155956
156041
  }
155957
- var _Storage = {
155958
- getItem: getItem,
155959
- setItem: setItem,
155960
- removeItem: removeItem,
155961
- clearItems: clearItems
155962
- };
155963
- function createOneTimePurchaseOrder(_x12) {
156042
+ function createOneTimePurchaseOrder(_x13) {
155964
156043
  return _createOneTimePurchaseOrder.apply(this, arguments);
155965
156044
  }
155966
156045
  function _createOneTimePurchaseOrder() {
155967
- _createOneTimePurchaseOrder = _asyncToGenerator(_regeneratorRuntime().mark(function _callee17(params) {
156046
+ _createOneTimePurchaseOrder = _asyncToGenerator(_regeneratorRuntime().mark(function _callee25(params) {
155968
156047
  var isSupported;
155969
- return _regeneratorRuntime().wrap(function _callee17$(_context17) {
155970
- while (1) switch (_context17.prev = _context17.next) {
156048
+ return _regeneratorRuntime().wrap(function _callee25$(_context25) {
156049
+ while (1) switch (_context25.prev = _context25.next) {
155971
156050
  case 0:
155972
156051
  isSupported = _isMinVersionSupported({
155973
156052
  android: "5.219.0",
155974
156053
  ios: "5.219.0"
155975
156054
  });
155976
156055
  if (isSupported) {
155977
- _context17.next = 3;
156056
+ _context25.next = 3;
155978
156057
  break;
155979
156058
  }
155980
- return _context17.abrupt("return");
156059
+ return _context25.abrupt("return");
155981
156060
  case 3:
155982
- return _context17.abrupt("return", AppsInTossModule.iapCreateOneTimePurchaseOrder(params));
156061
+ return _context25.abrupt("return", AppsInTossModule.iapCreateOneTimePurchaseOrder(params));
155983
156062
  case 4:
155984
156063
  case "end":
155985
- return _context17.stop();
156064
+ return _context25.stop();
155986
156065
  }
155987
- }, _callee17);
156066
+ }, _callee25);
155988
156067
  }));
155989
156068
  return _createOneTimePurchaseOrder.apply(this, arguments);
155990
156069
  }
@@ -155992,27 +156071,27 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155992
156071
  return _getProductItemList.apply(this, arguments);
155993
156072
  }
155994
156073
  function _getProductItemList() {
155995
- _getProductItemList = _asyncToGenerator(_regeneratorRuntime().mark(function _callee18() {
156074
+ _getProductItemList = _asyncToGenerator(_regeneratorRuntime().mark(function _callee26() {
155996
156075
  var isSupported;
155997
- return _regeneratorRuntime().wrap(function _callee18$(_context18) {
155998
- while (1) switch (_context18.prev = _context18.next) {
156076
+ return _regeneratorRuntime().wrap(function _callee26$(_context26) {
156077
+ while (1) switch (_context26.prev = _context26.next) {
155999
156078
  case 0:
156000
156079
  isSupported = _isMinVersionSupported({
156001
156080
  android: "5.219.0",
156002
156081
  ios: "5.219.0"
156003
156082
  });
156004
156083
  if (isSupported) {
156005
- _context18.next = 3;
156084
+ _context26.next = 3;
156006
156085
  break;
156007
156086
  }
156008
- return _context18.abrupt("return");
156087
+ return _context26.abrupt("return");
156009
156088
  case 3:
156010
- return _context18.abrupt("return", AppsInTossModule.iapGetProductItemList({}));
156089
+ return _context26.abrupt("return", AppsInTossModule.iapGetProductItemList({}));
156011
156090
  case 4:
156012
156091
  case "end":
156013
- return _context18.stop();
156092
+ return _context26.stop();
156014
156093
  }
156015
- }, _callee18);
156094
+ }, _callee26);
156016
156095
  }));
156017
156096
  return _getProductItemList.apply(this, arguments);
156018
156097
  }
@@ -156020,6 +156099,31 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156020
156099
  createOneTimePurchaseOrder: createOneTimePurchaseOrder,
156021
156100
  getProductItemList: getProductItemList
156022
156101
  };
156102
+ function getItem(key) {
156103
+ return AppsInTossModule.getStorageItem({
156104
+ key: key
156105
+ });
156106
+ }
156107
+ function setItem(key, value) {
156108
+ return AppsInTossModule.setStorageItem({
156109
+ key: key,
156110
+ value: value
156111
+ });
156112
+ }
156113
+ function removeItem(key) {
156114
+ return AppsInTossModule.removeStorageItem({
156115
+ key: key
156116
+ });
156117
+ }
156118
+ function clearItems() {
156119
+ return AppsInTossModule.clearStorage({});
156120
+ }
156121
+ var _Storage = {
156122
+ getItem: getItem,
156123
+ setItem: setItem,
156124
+ removeItem: removeItem,
156125
+ clearItems: clearItems
156126
+ };
156023
156127
  var _TossPay = {
156024
156128
  checkoutPayment: _checkoutPayment
156025
156129
  };
@@ -156029,55 +156133,471 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156029
156133
  loadAdMobRewardedAd: loadAdMobRewardedAd,
156030
156134
  showAdMobRewardedAd: showAdMobRewardedAd
156031
156135
  };
156032
- var import_react_native14 = _$$_REQUIRE(_dependencyMap[1], "@toss-design-system/react-native");
156033
- var import_private = _$$_REQUIRE(_dependencyMap[6], "@toss-design-system/react-native/private");
156034
- var import_react6 = _$$_REQUIRE(_dependencyMap[3], "react");
156035
- var import_react_native_bedrock11 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
156136
+ var import_react_native20 = _$$_REQUIRE(_dependencyMap[1], "@toss-design-system/react-native");
156137
+ var import_private3 = _$$_REQUIRE(_dependencyMap[6], "@toss-design-system/react-native/private");
156138
+ var import_react9 = _$$_REQUIRE(_dependencyMap[3], "react");
156139
+ var import_react_native21 = _$$_REQUIRE(_dependencyMap[4], "react-native");
156140
+ var import_react_native_bedrock16 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
156036
156141
  var bedrockAsyncBridges = __toESM(_$$_REQUIRE(_dependencyMap[7], "react-native-bedrock/async-bridges"), 1);
156037
156142
  var bedrockConstantBridges = __toESM(_$$_REQUIRE(_dependencyMap[8], "react-native-bedrock/constant-bridges"), 1);
156038
156143
  var import_react_native_webview = _$$_REQUIRE(_dependencyMap[9], "@react-native-bedrock/native/react-native-webview");
156039
- var import_react_native12 = _$$_REQUIRE(_dependencyMap[1], "@toss-design-system/react-native");
156040
- var import_es_hangul = _$$_REQUIRE(_dependencyMap[10], "es-hangul");
156041
- var import_react4 = _$$_REQUIRE(_dependencyMap[3], "react");
156042
- var import_react_native13 = _$$_REQUIRE(_dependencyMap[4], "react-native");
156043
- var import_react_native_bedrock9 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
156044
- var import_react_native_svg = _$$_REQUIRE(_dependencyMap[11], "@react-native-bedrock/native/react-native-svg");
156144
+ var import_react_native17 = _$$_REQUIRE(_dependencyMap[1], "@toss-design-system/react-native");
156145
+ var import_es_hangul2 = _$$_REQUIRE(_dependencyMap[10], "es-hangul");
156146
+ var import_react6 = _$$_REQUIRE(_dependencyMap[3], "react");
156147
+ var import_react_native18 = _$$_REQUIRE(_dependencyMap[4], "react-native");
156148
+ var import_react_native_bedrock12 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
156045
156149
  var import_react_native10 = _$$_REQUIRE(_dependencyMap[1], "@toss-design-system/react-native");
156150
+ var import_react5 = _$$_REQUIRE(_dependencyMap[3], "react");
156046
156151
  var import_react_native11 = _$$_REQUIRE(_dependencyMap[4], "react-native");
156152
+ var import_react_native9 = _$$_REQUIRE(_dependencyMap[1], "@toss-design-system/react-native");
156153
+ var import_es_hangul = _$$_REQUIRE(_dependencyMap[10], "es-hangul");
156154
+ var import_react4 = _$$_REQUIRE(_dependencyMap[3], "react");
156155
+ var import_react_native_bedrock11 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
156156
+ var import_react_native7 = _$$_REQUIRE(_dependencyMap[1], "@toss-design-system/react-native");
156157
+ var import_private = _$$_REQUIRE(_dependencyMap[6], "@toss-design-system/react-native/private");
156158
+ var import_jsx_runtime2 = _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime");
156159
+ var useGameProfileToast = function useGameProfileToast() {
156160
+ var overlay = (0, import_private.useOverlay)();
156161
+ var openGameProfileToast = function openGameProfileToast(nickname, profileImageUri) {
156162
+ return new Promise(function (resolve) {
156163
+ overlay.open(function (_ref10) {
156164
+ var isOpen = _ref10.isOpen,
156165
+ close = _ref10.close,
156166
+ exit = _ref10.exit;
156167
+ return (0, import_jsx_runtime2.jsx)(import_private.ColorPreferenceProvider, {
156168
+ colorPreference: "dark",
156169
+ children: (0, import_jsx_runtime2.jsx)(import_private.AdaptiveColorProvider, {
156170
+ children: (0, import_jsx_runtime2.jsx)(import_react_native7.Toast, {
156171
+ open: isOpen,
156172
+ onClose: function onClose() {
156173
+ resolve();
156174
+ close();
156175
+ },
156176
+ onExited: exit,
156177
+ position: "top",
156178
+ text: "".concat(nickname, "\uB2D8 \uBC18\uAC00\uC6CC\uC694!"),
156179
+ icon: (0, import_jsx_runtime2.jsx)(import_react_native7.Asset.Image, {
156180
+ style: {
156181
+ borderRadius: 64,
156182
+ overflow: "hidden"
156183
+ },
156184
+ frameShape: import_react_native7.Asset.frameShape.CleanW32,
156185
+ source: {
156186
+ uri: profileImageUri
156187
+ }
156188
+ })
156189
+ })
156190
+ })
156191
+ });
156192
+ });
156193
+ });
156194
+ };
156195
+ return {
156196
+ openGameProfileToast: openGameProfileToast
156197
+ };
156198
+ };
156199
+ var DEFAULT_ERROR = {
156200
+ title: "\uC7A0\uC2DC \uD6C4 \uB2E4\uC2DC \uC2DC\uB3C4\uD574\uC8FC\uC138\uC694",
156201
+ description: "\uBB38\uC81C\uAC00 \uACC4\uC18D\uB418\uBA74 \uD1A0\uC2A4 \uACE0\uAC1D\uC13C\uD130(1599-4905)\uB85C \uBB38\uC758\uD574\uC8FC\uC138\uC694."
156202
+ };
156047
156203
  var import_react_native8 = _$$_REQUIRE(_dependencyMap[4], "react-native");
156048
- var import_react_native7 = _$$_REQUIRE(_dependencyMap[4], "react-native");
156049
- function byPlatform(_ref10) {
156204
+ var PLAYSTORE_LINK = "https://play.google.com/store/apps/details?id=viva.republica.toss";
156205
+ var APPSTORE_LINK = "https://itunes.apple.com/app/id839333328";
156206
+ var getMarketLink = function getMarketLink() {
156207
+ return import_react_native8.Platform.OS === "android" ? PLAYSTORE_LINK : APPSTORE_LINK;
156208
+ };
156209
+ var import_react_native_bedrock10 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
156210
+ function onVisibilityChangedByTransparentServiceWeb(eventParams) {
156211
+ return _appsInTossEvent.addEventListener("onVisibilityChangedByTransparentServiceWeb", eventParams);
156212
+ }
156213
+ var _INTERNAL__onVisibilityChangedByTransparentServiceWeb = onVisibilityChangedByTransparentServiceWeb;
156214
+ var openTransparentWebView = function openTransparentWebView(_ref11) {
156215
+ var webUrl = _ref11.webUrl,
156216
+ _ref11$cleanupWhenDis = _ref11.cleanupWhenDismissed,
156217
+ cleanupWhenDismissed = _ref11$cleanupWhenDis === void 0 ? true : _ref11$cleanupWhenDis,
156218
+ _onEvent = _ref11.onEvent,
156219
+ _onError = _ref11.onError,
156220
+ _ref11$callbackId = _ref11.callbackId,
156221
+ callbackId = _ref11$callbackId === void 0 ? "fn" : _ref11$callbackId,
156222
+ params = _ref11.params;
156223
+ var url = new URL("supertoss://transparent-service-web");
156224
+ url.searchParams.set("url", webUrl);
156225
+ url.searchParams.set("onVisibilityChangeCallback", callbackId);
156226
+ Object.entries(params !== null && params !== void 0 ? params : {}).forEach(function (_ref12) {
156227
+ var _ref13 = _slicedToArray(_ref12, 2),
156228
+ key = _ref13[0],
156229
+ value = _ref13[1];
156230
+ url.searchParams.set(key, value);
156231
+ });
156232
+ var cleanup = _INTERNAL__onVisibilityChangedByTransparentServiceWeb({
156233
+ options: {
156234
+ callbackId: callbackId
156235
+ },
156236
+ onError: function onError(error) {
156237
+ _onError(error);
156238
+ cleanup();
156239
+ },
156240
+ onEvent: function onEvent(value) {
156241
+ _onEvent(value);
156242
+ if (cleanupWhenDismissed && value === true) {
156243
+ cleanup();
156244
+ }
156245
+ }
156246
+ });
156247
+ (0, import_react_native_bedrock10.openURL)(url.toString());
156248
+ };
156249
+ var useGameCenterProfile = function useGameCenterProfile(isReadyForProfileUI) {
156250
+ var _ref14 = (0, import_react4.useState)(void 0),
156251
+ _ref15 = _slicedToArray(_ref14, 2),
156252
+ profileData = _ref15[0],
156253
+ setProfileData = _ref15[1];
156254
+ var _ref16 = (0, import_react4.useState)(true),
156255
+ _ref17 = _slicedToArray(_ref16, 2),
156256
+ isProfileDataLoading = _ref17[0],
156257
+ setIsProfileDataLoading = _ref17[1];
156258
+ var _ref18 = (0, import_react4.useState)(false),
156259
+ _ref19 = _slicedToArray(_ref18, 2),
156260
+ isProfileDataRefetching = _ref19[0],
156261
+ setIsProfileDataRefetching = _ref19[1];
156262
+ var shouldShowLoadingOverlay = isProfileDataLoading && isReadyForProfileUI;
156263
+ var shouldShowProfileNotFoundOverlay = (profileData === null || profileData === void 0 ? void 0 : profileData.statusCode) === "PROFILE_NOT_FOUND" && isReadyForProfileUI && !isProfileDataRefetching;
156264
+ var canShowBottomSheetOrToast = !isProfileDataLoading && isReadyForProfileUI;
156265
+ var _ref20 = (0, import_react4.useState)(false),
156266
+ _ref21 = _slicedToArray(_ref20, 2),
156267
+ isWebviewLoading = _ref21[0],
156268
+ setIsWebviewLoading = _ref21[1];
156269
+ var isCompletedProfileFlow = (0, import_react4.useRef)(false);
156270
+ var _ref22 = (0, import_react_native9.useDialog)(),
156271
+ openAlert = _ref22.openAlert,
156272
+ openConfirm = _ref22.openConfirm;
156273
+ var _useGameProfileToast = useGameProfileToast(),
156274
+ openGameProfileToast = _useGameProfileToast.openGameProfileToast;
156275
+ var openErrorAlert = (0, import_react4.useCallback)(_asyncToGenerator(_regeneratorRuntime().mark(function _callee() {
156276
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
156277
+ while (1) switch (_context.prev = _context.next) {
156278
+ case 0:
156279
+ _context.next = 2;
156280
+ return openAlert({
156281
+ title: DEFAULT_ERROR.title,
156282
+ description: DEFAULT_ERROR.description
156283
+ });
156284
+ case 2:
156285
+ (0, import_react_native_bedrock11.closeView)();
156286
+ case 3:
156287
+ case "end":
156288
+ return _context.stop();
156289
+ }
156290
+ }, _callee);
156291
+ })), [openAlert]);
156292
+ var openProfileWebview = (0, import_react4.useCallback)(function () {
156293
+ if (isWebviewLoading) {
156294
+ return;
156295
+ }
156296
+ setIsWebviewLoading(true);
156297
+ openTransparentWebView({
156298
+ webUrl: "".concat(GAME_PROFILE_WEBVIEW_URL, "?appName=").concat(getAppName(), "&referrer=appsintoss.").concat(getAppName()),
156299
+ onEvent: function () {
156300
+ var _onEvent2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee2(isClosedTransparentWebView) {
156301
+ var data;
156302
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
156303
+ while (1) switch (_context2.prev = _context2.next) {
156304
+ case 0:
156305
+ if (!isClosedTransparentWebView) {
156306
+ _context2.next = 16;
156307
+ break;
156308
+ }
156309
+ _context2.prev = 1;
156310
+ setIsWebviewLoading(false);
156311
+ setIsProfileDataRefetching(true);
156312
+ _context2.next = 6;
156313
+ return _getGameCenterGameProfile();
156314
+ case 6:
156315
+ data = _context2.sent;
156316
+ setProfileData(data);
156317
+ setIsProfileDataRefetching(false);
156318
+ if ((data === null || data === void 0 ? void 0 : data.statusCode) === "SUCCESS") {
156319
+ openGameProfileToast(data.nickname, data.profileImageUri);
156320
+ }
156321
+ _context2.next = 16;
156322
+ break;
156323
+ case 12:
156324
+ _context2.prev = 12;
156325
+ _context2.t0 = _context2["catch"](1);
156326
+ setIsProfileDataRefetching(false);
156327
+ openErrorAlert();
156328
+ case 16:
156329
+ case "end":
156330
+ return _context2.stop();
156331
+ }
156332
+ }, _callee2, null, [[1, 12]]);
156333
+ }));
156334
+ function onEvent(_x14) {
156335
+ return _onEvent2.apply(this, arguments);
156336
+ }
156337
+ return onEvent;
156338
+ }(),
156339
+ onError: function onError() {
156340
+ openErrorAlert();
156341
+ }
156342
+ });
156343
+ }, [isWebviewLoading, openGameProfileToast, openErrorAlert]);
156344
+ var updateAppToSupportedMinVersion = (0, import_react4.useCallback)(_asyncToGenerator(_regeneratorRuntime().mark(function _callee3() {
156345
+ var upddateConfirmDialogLabel, isConfirmed, STORE_SCHEME;
156346
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
156347
+ while (1) switch (_context3.prev = _context3.next) {
156348
+ case 0:
156349
+ upddateConfirmDialogLabel = {
156350
+ title: "".concat((0, import_es_hangul.josa)(getAppsInTossGlobals().brandDisplayName, "\uC744/\uB97C"), " \uD558\uB824\uBA74 \n\uC571\uC744 \uC5C5\uB370\uC774\uD2B8\uD574\uC8FC\uC138\uC694"),
156351
+ leftButton: "\uB2EB\uAE30",
156352
+ rightButton: "\uC5C5\uB370\uC774\uD2B8\uD558\uAE30"
156353
+ };
156354
+ _context3.next = 3;
156355
+ return openConfirm({
156356
+ title: upddateConfirmDialogLabel.title,
156357
+ leftButton: upddateConfirmDialogLabel.leftButton,
156358
+ rightButton: upddateConfirmDialogLabel.rightButton,
156359
+ closeOnDimmerClick: true
156360
+ });
156361
+ case 3:
156362
+ isConfirmed = _context3.sent;
156363
+ if (isConfirmed) {
156364
+ _context3.next = 7;
156365
+ break;
156366
+ }
156367
+ (0, import_react_native_bedrock11.closeView)();
156368
+ return _context3.abrupt("return");
156369
+ case 7:
156370
+ STORE_SCHEME = getMarketLink();
156371
+ (0, import_react_native_bedrock11.openURL)("supertoss://web?url=".concat(STORE_SCHEME, "&external=browser"));
156372
+ case 9:
156373
+ case "end":
156374
+ return _context3.stop();
156375
+ }
156376
+ }, _callee3);
156377
+ })), [openConfirm]);
156378
+ return {
156379
+ profileData: profileData,
156380
+ isProfileDataLoading: isProfileDataLoading,
156381
+ isProfileDataRefetching: isProfileDataRefetching,
156382
+ shouldShowLoadingOverlay: shouldShowLoadingOverlay,
156383
+ shouldShowProfileNotFoundOverlay: shouldShowProfileNotFoundOverlay,
156384
+ canShowBottomSheetOrToast: canShowBottomSheetOrToast,
156385
+ isCompletedProfileFlow: isCompletedProfileFlow,
156386
+ updateAppToSupportedMinVersion: updateAppToSupportedMinVersion,
156387
+ setIsProfileDataLoading: setIsProfileDataLoading,
156388
+ openProfileWebview: openProfileWebview,
156389
+ setProfileData: setProfileData,
156390
+ openErrorAlert: openErrorAlert,
156391
+ openGameProfileToast: openGameProfileToast
156392
+ };
156393
+ };
156394
+ var Z_INDEX = {
156395
+ PROFILE_OVERLAY: 9998,
156396
+ CLOSE_BUTTON: 9999
156397
+ };
156398
+ var import_jsx_runtime3 = _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime");
156399
+ var GameProfile = function GameProfile(_ref25) {
156400
+ var children = _ref25.children,
156401
+ isReadyForProfileUI = _ref25.isReadyForProfileUI;
156402
+ var _useGameCenterProfile = useGameCenterProfile(isReadyForProfileUI),
156403
+ profileData = _useGameCenterProfile.profileData,
156404
+ isProfileDataRefetching = _useGameCenterProfile.isProfileDataRefetching,
156405
+ shouldShowLoadingOverlay = _useGameCenterProfile.shouldShowLoadingOverlay,
156406
+ shouldShowProfileNotFoundOverlay = _useGameCenterProfile.shouldShowProfileNotFoundOverlay,
156407
+ canShowBottomSheetOrToast = _useGameCenterProfile.canShowBottomSheetOrToast,
156408
+ isCompletedProfileFlow = _useGameCenterProfile.isCompletedProfileFlow,
156409
+ openProfileWebview = _useGameCenterProfile.openProfileWebview,
156410
+ updateAppToSupportedMinVersion = _useGameCenterProfile.updateAppToSupportedMinVersion,
156411
+ setIsProfileDataLoading = _useGameCenterProfile.setIsProfileDataLoading,
156412
+ setProfileData = _useGameCenterProfile.setProfileData,
156413
+ openErrorAlert = _useGameCenterProfile.openErrorAlert,
156414
+ openGameProfileToast = _useGameCenterProfile.openGameProfileToast;
156415
+ (0, import_react5.useEffect)(function () {
156416
+ try {
156417
+ var getProfileData = function () {
156418
+ var _ref26 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee4() {
156419
+ var data;
156420
+ return _regeneratorRuntime().wrap(function _callee4$(_context4) {
156421
+ while (1) switch (_context4.prev = _context4.next) {
156422
+ case 0:
156423
+ _context4.next = 2;
156424
+ return _getGameCenterGameProfile();
156425
+ case 2:
156426
+ data = _context4.sent;
156427
+ setProfileData(data);
156428
+ setIsProfileDataLoading(false);
156429
+ case 5:
156430
+ case "end":
156431
+ return _context4.stop();
156432
+ }
156433
+ }, _callee4);
156434
+ }));
156435
+ return function getProfileData() {
156436
+ return _ref26.apply(this, arguments);
156437
+ };
156438
+ }();
156439
+ getProfileData();
156440
+ } catch (_) {
156441
+ openErrorAlert();
156442
+ setIsProfileDataLoading(false);
156443
+ }
156444
+ }, []);
156445
+ (0, import_react5.useEffect)(function () {
156446
+ var handleGameProfileFlow = function () {
156447
+ var _ref27 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee5() {
156448
+ return _regeneratorRuntime().wrap(function _callee5$(_context5) {
156449
+ while (1) switch (_context5.prev = _context5.next) {
156450
+ case 0:
156451
+ if (canShowBottomSheetOrToast) {
156452
+ _context5.next = 2;
156453
+ break;
156454
+ }
156455
+ return _context5.abrupt("return");
156456
+ case 2:
156457
+ if (!isCompletedProfileFlow.current) {
156458
+ _context5.next = 4;
156459
+ break;
156460
+ }
156461
+ return _context5.abrupt("return");
156462
+ case 4:
156463
+ isCompletedProfileFlow.current = true;
156464
+ if (_isMinVersionSupported(GAME_CENTER_MIN_VERSION)) {
156465
+ _context5.next = 8;
156466
+ break;
156467
+ }
156468
+ updateAppToSupportedMinVersion();
156469
+ return _context5.abrupt("return");
156470
+ case 8:
156471
+ if (!((profileData === null || profileData === void 0 ? void 0 : profileData.statusCode) === "SUCCESS")) {
156472
+ _context5.next = 11;
156473
+ break;
156474
+ }
156475
+ openGameProfileToast(profileData.nickname, profileData.profileImageUri);
156476
+ return _context5.abrupt("return");
156477
+ case 11:
156478
+ if ((profileData === null || profileData === void 0 ? void 0 : profileData.statusCode) === "PROFILE_NOT_FOUND") {
156479
+ openProfileWebview();
156480
+ }
156481
+ case 12:
156482
+ case "end":
156483
+ return _context5.stop();
156484
+ }
156485
+ }, _callee5);
156486
+ }));
156487
+ return function handleGameProfileFlow() {
156488
+ return _ref27.apply(this, arguments);
156489
+ };
156490
+ }();
156491
+ handleGameProfileFlow();
156492
+ }, [canShowBottomSheetOrToast, isCompletedProfileFlow, openGameProfileToast, openProfileWebview, profileData, updateAppToSupportedMinVersion]);
156493
+ if (!_isMinVersionSupported(GAME_CENTER_MIN_VERSION)) {
156494
+ return (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, {
156495
+ children: [(0, import_jsx_runtime3.jsx)(import_react_native11.View, {
156496
+ style: {
156497
+ flex: 1,
156498
+ position: "relative"
156499
+ },
156500
+ children: children
156501
+ }), (0, import_jsx_runtime3.jsx)(import_react_native11.Pressable, {
156502
+ style: _objectSpread({}, overlayStyle),
156503
+ onPress: function onPress() {
156504
+ updateAppToSupportedMinVersion();
156505
+ }
156506
+ })]
156507
+ });
156508
+ }
156509
+ if (shouldShowLoadingOverlay || isProfileDataRefetching) {
156510
+ return (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, {
156511
+ children: [(0, import_jsx_runtime3.jsx)(import_react_native11.View, {
156512
+ style: {
156513
+ flex: 1,
156514
+ position: "relative"
156515
+ },
156516
+ children: children
156517
+ }), (0, import_jsx_runtime3.jsx)(import_react_native11.View, {
156518
+ style: _objectSpread(_objectSpread({}, overlayStyle), {}, {
156519
+ justifyContent: "center",
156520
+ alignItems: "center",
156521
+ backgroundColor: "rgba(0, 0, 0, 0.2)"
156522
+ }),
156523
+ children: (0, import_jsx_runtime3.jsx)(import_react_native10.Loader, {
156524
+ size: "large",
156525
+ type: "light"
156526
+ })
156527
+ })]
156528
+ });
156529
+ }
156530
+ if (shouldShowProfileNotFoundOverlay) {
156531
+ return (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, {
156532
+ children: [(0, import_jsx_runtime3.jsx)(import_react_native11.View, {
156533
+ style: {
156534
+ flex: 1,
156535
+ position: "relative"
156536
+ },
156537
+ children: children
156538
+ }), shouldShowProfileNotFoundOverlay && (0, import_jsx_runtime3.jsx)(import_react_native11.Pressable, {
156539
+ style: _objectSpread({}, overlayStyle),
156540
+ onPress: function onPress() {
156541
+ openProfileWebview();
156542
+ }
156543
+ })]
156544
+ });
156545
+ }
156546
+ return (0, import_jsx_runtime3.jsx)(import_jsx_runtime3.Fragment, {
156547
+ children: (0, import_jsx_runtime3.jsx)(import_react_native11.View, {
156548
+ style: {
156549
+ flex: 1,
156550
+ position: "relative"
156551
+ },
156552
+ children: children
156553
+ })
156554
+ });
156555
+ };
156556
+ var overlayStyle = {
156557
+ position: "absolute",
156558
+ top: 0,
156559
+ left: 0,
156560
+ right: 0,
156561
+ bottom: 0,
156562
+ zIndex: Z_INDEX.PROFILE_OVERLAY
156563
+ };
156564
+ var import_react_native_svg = _$$_REQUIRE(_dependencyMap[11], "@react-native-bedrock/native/react-native-svg");
156565
+ var import_react_native15 = _$$_REQUIRE(_dependencyMap[1], "@toss-design-system/react-native");
156566
+ var import_react_native16 = _$$_REQUIRE(_dependencyMap[4], "react-native");
156567
+ var import_react_native13 = _$$_REQUIRE(_dependencyMap[4], "react-native");
156568
+ var import_react_native12 = _$$_REQUIRE(_dependencyMap[4], "react-native");
156569
+ function byPlatform(_ref28) {
156050
156570
  var _props$import_react_n;
156051
- var props = _extends({}, (_objectDestructuringEmpty(_ref10), _ref10));
156052
- return ((_props$import_react_n = props[import_react_native7.Platform.OS]) !== null && _props$import_react_n !== void 0 ? _props$import_react_n : props.fallback)();
156571
+ var props = _extends({}, (_objectDestructuringEmpty(_ref28), _ref28));
156572
+ return ((_props$import_react_n = props[import_react_native12.Platform.OS]) !== null && _props$import_react_n !== void 0 ? _props$import_react_n : props.fallback)();
156053
156573
  }
156054
156574
  var RIGHT_MARGIN = 24;
156055
156575
  var IOS_DEFAULT_MARGIN = 20;
156056
- var import_jsx_runtime2 = _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime");
156576
+ var import_jsx_runtime4 = _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime");
156057
156577
  function IOSHeaderRight(props) {
156058
- return (0, import_jsx_runtime2.jsx)(import_react_native8.View, _objectSpread({
156578
+ return (0, import_jsx_runtime4.jsx)(import_react_native13.View, _objectSpread({
156059
156579
  style: styles.ios
156060
156580
  }, props));
156061
156581
  }
156062
156582
  function AndroidHeaderRight(props) {
156063
- return (0, import_jsx_runtime2.jsx)(import_react_native8.View, _objectSpread({
156583
+ return (0, import_jsx_runtime4.jsx)(import_react_native13.View, _objectSpread({
156064
156584
  style: styles.android
156065
156585
  }, props));
156066
156586
  }
156067
156587
  function HeaderRight(props) {
156068
156588
  return byPlatform({
156069
156589
  ios: function ios() {
156070
- return (0, import_jsx_runtime2.jsx)(IOSHeaderRight, _objectSpread({}, props));
156590
+ return (0, import_jsx_runtime4.jsx)(IOSHeaderRight, _objectSpread({}, props));
156071
156591
  },
156072
156592
  android: function android() {
156073
- return (0, import_jsx_runtime2.jsx)(AndroidHeaderRight, _objectSpread({}, props));
156593
+ return (0, import_jsx_runtime4.jsx)(AndroidHeaderRight, _objectSpread({}, props));
156074
156594
  },
156075
156595
  fallback: function fallback() {
156076
- return (0, import_jsx_runtime2.jsx)(IOSHeaderRight, _objectSpread({}, props));
156596
+ return (0, import_jsx_runtime4.jsx)(IOSHeaderRight, _objectSpread({}, props));
156077
156597
  }
156078
156598
  });
156079
156599
  }
156080
- var styles = import_react_native8.StyleSheet.create({
156600
+ var styles = import_react_native13.StyleSheet.create({
156081
156601
  ios: {
156082
156602
  marginRight: -IOS_DEFAULT_MARGIN + RIGHT_MARGIN,
156083
156603
  flexDirection: "row"
@@ -156087,38 +156607,38 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156087
156607
  }
156088
156608
  });
156089
156609
  var import_react_native_safe_area_context = _$$_REQUIRE(_dependencyMap[12], "@react-native-bedrock/native/react-native-safe-area-context");
156090
- var import_react_native9 = _$$_REQUIRE(_dependencyMap[4], "react-native");
156610
+ var import_react_native14 = _$$_REQUIRE(_dependencyMap[4], "react-native");
156091
156611
  function useSafeAreaTop() {
156092
156612
  var safeAreaInsets = (0, import_react_native_safe_area_context.useSafeAreaInsets)();
156093
- var hasDynamicIsland = import_react_native9.Platform.OS === "ios" && safeAreaInsets.top > 50;
156613
+ var hasDynamicIsland = import_react_native14.Platform.OS === "ios" && safeAreaInsets.top > 50;
156094
156614
  var safeAreaTop = hasDynamicIsland ? safeAreaInsets.top - 5 : safeAreaInsets.top;
156095
156615
  return safeAreaTop;
156096
156616
  }
156097
- var import_jsx_runtime3 = _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime");
156617
+ var import_jsx_runtime5 = _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime");
156098
156618
  var originXML = '<svg fill="none" height="30" viewBox="0 0 30 30" width="30" xmlns="https://www.w3.org/2000/svg"><rect fill="#031832" fill-opacity=".46" height="30" rx="15" width="30"/><rect height="29.5" rx="14.75" stroke="#d9d9ff" stroke-opacity=".11" stroke-width=".5" width="29.5" x=".25" y=".25"/><path clip-rule="evenodd" d="m16.5119 15.0014 4.7092-4.7092c.0929-.0928.1666-.2031.2169-.32441.0503-.12134.0762-.25141.0762-.38276.0001-.13136-.0258-.26144-.076-.38281s-.1239-.23166-.2167-.32457c-.0929-.09291-.2031-.16662-.3245-.21692-.1213-.05031-.2514-.07622-.3827-.07626-.1314-.00004-.2615.0258-.3828.07603-.1214.05023-.2317.12388-.3246.21673l-4.7092 4.70997-4.71-4.70997c-.1897-.17718-.4408-.27373-.70034-.26927s-.5072.10959-.69069.2932c-.1835.1836-.28848.43132-.29279.69087-.00432.25954.09238.51057.26968.70017l4.71004 4.7092-4.71004 4.7092c-.1392.1401-.23385.3183-.27204.5121-.0382.1939-.01823.3946.05739.5771s.20351.3386.36759.4486.35702.169.55456.1697c.25583 0 .51164-.0975.70664-.2925l4.71-4.71 4.7092 4.71c.0927.093.2029.1668.3243.2172.1213.0504.2514.0763.3828.0763s.2614-.0259.3828-.0763c.1213-.0504.2315-.1242.3243-.2172.0929-.0929.1667-.2032.217-.3246s.0762-.2515.0762-.3829-.0259-.2616-.0762-.383-.1241-.2317-.217-.3245z" fill="#fdfdfe" fill-opacity=".89" fill-rule="evenodd"/></svg>';
156099
- function GameNavigationBar(_ref11) {
156100
- var onClose = _ref11.onClose;
156619
+ function GameNavigationBar(_ref29) {
156620
+ var onClose = _ref29.onClose;
156101
156621
  var safeAreaTop = useSafeAreaTop();
156102
- return (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, {
156103
- children: [(0, import_jsx_runtime3.jsx)(import_react_native10.PageNavbar, {
156622
+ return (0, import_jsx_runtime5.jsxs)(import_jsx_runtime5.Fragment, {
156623
+ children: [(0, import_jsx_runtime5.jsx)(import_react_native15.PageNavbar, {
156104
156624
  preference: {
156105
156625
  type: "none"
156106
156626
  }
156107
- }), (0, import_jsx_runtime3.jsx)(import_react_native11.View, {
156627
+ }), (0, import_jsx_runtime5.jsx)(import_react_native16.View, {
156108
156628
  style: {
156109
156629
  width: "100%",
156110
- height: import_react_native11.Platform.OS === "ios" ? 44 : 54,
156630
+ height: import_react_native16.Platform.OS === "ios" ? 44 : 54,
156111
156631
  flexDirection: "row",
156112
156632
  alignItems: "center",
156113
156633
  justifyContent: "flex-end",
156114
156634
  position: "absolute",
156115
- zIndex: 9999,
156635
+ zIndex: Z_INDEX.CLOSE_BUTTON,
156116
156636
  marginTop: safeAreaTop,
156117
- paddingRight: import_react_native11.Platform.OS === "ios" ? 10 : 8
156637
+ paddingRight: import_react_native16.Platform.OS === "ios" ? 10 : 8
156118
156638
  },
156119
156639
  pointerEvents: "box-none",
156120
- children: (0, import_jsx_runtime3.jsx)(HeaderRight, {
156121
- children: (0, import_jsx_runtime3.jsx)(import_react_native11.TouchableOpacity, {
156640
+ children: (0, import_jsx_runtime5.jsx)(HeaderRight, {
156641
+ children: (0, import_jsx_runtime5.jsx)(import_react_native16.TouchableOpacity, {
156122
156642
  hitSlop: {
156123
156643
  left: 8,
156124
156644
  right: 8
@@ -156127,10 +156647,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156127
156647
  accessible: true,
156128
156648
  accessibilityLabel: "\uAC8C\uC784\uC885\uB8CC",
156129
156649
  style: {
156130
- padding: import_react_native11.Platform.OS === "ios" ? 7 : 9
156650
+ padding: import_react_native16.Platform.OS === "ios" ? 7 : 9
156131
156651
  },
156132
156652
  onPress: onClose,
156133
- children: (0, import_jsx_runtime3.jsx)(import_react_native_svg.SvgXml, {
156653
+ children: (0, import_jsx_runtime5.jsx)(import_react_native_svg.SvgXml, {
156134
156654
  xml: originXML,
156135
156655
  width: 30,
156136
156656
  height: 30
@@ -156140,72 +156660,83 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156140
156660
  })]
156141
156661
  });
156142
156662
  }
156143
- var import_jsx_runtime4 = _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime");
156144
- var GameWebView = (0, import_react4.forwardRef)(function GameWebView2(props, ref) {
156145
- var _ref12 = (0, import_react_native12.useDialog)(),
156146
- openConfirm = _ref12.openConfirm;
156663
+ var import_jsx_runtime6 = _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime");
156664
+ var GameWebView = (0, import_react6.forwardRef)(function GameWebView2(props, ref) {
156665
+ var _ref30 = (0, import_react_native17.useDialog)(),
156666
+ openConfirm = _ref30.openConfirm;
156147
156667
  var _getAppsInTossGlobals = getAppsInTossGlobals(),
156148
156668
  brandDisplayName = _getAppsInTossGlobals.brandDisplayName;
156149
- var handleClose = (0, import_react4.useCallback)(_asyncToGenerator(_regeneratorRuntime().mark(function _callee() {
156669
+ var _ref31 = (0, import_react6.useState)(false),
156670
+ _ref32 = _slicedToArray(_ref31, 2),
156671
+ isEntryMessageExited = _ref32[0],
156672
+ setIsEntryMessageExited = _ref32[1];
156673
+ var handleClose = (0, import_react6.useCallback)(_asyncToGenerator(_regeneratorRuntime().mark(function _callee6() {
156150
156674
  var isConfirmed;
156151
- return _regeneratorRuntime().wrap(function _callee$(_context) {
156152
- while (1) switch (_context.prev = _context.next) {
156675
+ return _regeneratorRuntime().wrap(function _callee6$(_context6) {
156676
+ while (1) switch (_context6.prev = _context6.next) {
156153
156677
  case 0:
156154
- _context.next = 2;
156678
+ _context6.next = 2;
156155
156679
  return openConfirm({
156156
- title: "".concat((0, import_es_hangul.josa)(brandDisplayName, "\uC744/\uB97C"), " \uC885\uB8CC\uD560\uAE4C\uC694?"),
156680
+ title: "".concat((0, import_es_hangul2.josa)(brandDisplayName, "\uC744/\uB97C"), " \uC885\uB8CC\uD560\uAE4C\uC694?"),
156157
156681
  leftButton: "\uCDE8\uC18C",
156158
156682
  rightButton: "\uC885\uB8CC\uD558\uAE30",
156159
156683
  closeOnDimmerClick: true
156160
156684
  });
156161
156685
  case 2:
156162
- isConfirmed = _context.sent;
156686
+ isConfirmed = _context6.sent;
156163
156687
  if (isConfirmed) {
156164
- (0, import_react_native_bedrock9.closeView)();
156688
+ (0, import_react_native_bedrock12.closeView)();
156165
156689
  }
156166
156690
  case 4:
156167
156691
  case "end":
156168
- return _context.stop();
156692
+ return _context6.stop();
156169
156693
  }
156170
- }, _callee);
156694
+ }, _callee6);
156171
156695
  })), [brandDisplayName, openConfirm]);
156172
- (0, import_react4.useEffect)(function () {
156173
- if (import_react_native13.Platform.OS === "ios") {
156174
- (0, import_react_native_bedrock9.setIosSwipeGestureEnabled)({
156696
+ (0, import_react6.useEffect)(function () {
156697
+ if (import_react_native18.Platform.OS === "ios") {
156698
+ (0, import_react_native_bedrock12.setIosSwipeGestureEnabled)({
156175
156699
  isEnabled: false
156176
156700
  });
156177
156701
  return function () {
156178
- (0, import_react_native_bedrock9.setIosSwipeGestureEnabled)({
156702
+ (0, import_react_native_bedrock12.setIosSwipeGestureEnabled)({
156179
156703
  isEnabled: true
156180
156704
  });
156181
156705
  };
156182
156706
  }
156183
156707
  return;
156184
156708
  }, []);
156185
- (0, import_react4.useEffect)(function () {
156709
+ (0, import_react6.useEffect)(function () {
156186
156710
  var backHandler = function backHandler() {
156187
156711
  handleClose();
156188
156712
  return true;
156189
156713
  };
156190
- import_react_native13.BackHandler.addEventListener("hardwareBackPress", backHandler);
156714
+ import_react_native18.BackHandler.addEventListener("hardwareBackPress", backHandler);
156191
156715
  return function () {
156192
- import_react_native13.BackHandler.removeEventListener("hardwareBackPress", backHandler);
156716
+ import_react_native18.BackHandler.removeEventListener("hardwareBackPress", backHandler);
156193
156717
  };
156194
156718
  }, [handleClose]);
156195
- return (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, {
156196
- children: [(0, import_jsx_runtime4.jsx)(GameNavigationBar, {
156719
+ (0, import_react6.useEffect)(function () {
156720
+ _appsInTossEvent.addEventListener("entryMessageExited", {
156721
+ onEvent: function onEvent() {
156722
+ setIsEntryMessageExited(true);
156723
+ }
156724
+ });
156725
+ }, []);
156726
+ return (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, {
156727
+ children: [(0, import_jsx_runtime6.jsx)(GameNavigationBar, {
156197
156728
  onClose: handleClose
156198
- }), (0, import_jsx_runtime4.jsx)(import_react_native13.View, {
156199
- style: {
156200
- flex: 1
156201
- },
156202
- children: (0, import_jsx_runtime4.jsx)(import_react_native_webview.WebView, _objectSpread({
156729
+ }), _getOperationalEnvironment() === "toss" ? (0, import_jsx_runtime6.jsx)(GameProfile, {
156730
+ isReadyForProfileUI: isEntryMessageExited,
156731
+ children: (0, import_jsx_runtime6.jsx)(import_react_native_webview.WebView, _objectSpread({
156203
156732
  ref: ref
156204
156733
  }, props))
156205
- })]
156734
+ }) : (0, import_jsx_runtime6.jsx)(import_react_native_webview.WebView, _objectSpread({
156735
+ ref: ref
156736
+ }, props))]
156206
156737
  });
156207
156738
  });
156208
- var import_react5 = _$$_REQUIRE(_dependencyMap[3], "react");
156739
+ var import_react7 = _$$_REQUIRE(_dependencyMap[3], "react");
156209
156740
  function serializeError(error) {
156210
156741
  return JSON.stringify(error, function (_, value) {
156211
156742
  if (value instanceof Error) {
@@ -156219,37 +156750,37 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156219
156750
  return value;
156220
156751
  });
156221
156752
  }
156222
- function methodHandler(_ref14) {
156223
- var args = _ref14.args,
156224
- eventId = _ref14.eventId,
156225
- functionName = _ref14.functionName,
156226
- handlerMap = _ref14.handlerMap,
156227
- injectJavaScript = _ref14.injectJavaScript;
156753
+ function methodHandler(_ref34) {
156754
+ var args = _ref34.args,
156755
+ eventId = _ref34.eventId,
156756
+ functionName = _ref34.functionName,
156757
+ handlerMap = _ref34.handlerMap,
156758
+ injectJavaScript = _ref34.injectJavaScript;
156228
156759
  var func = handlerMap[functionName];
156229
156760
  if (!func) {
156230
156761
  console.error("".concat(functionName, " is not a function"));
156231
156762
  return;
156232
156763
  }
156233
156764
  var wrappedFunc = function () {
156234
- var _ref15 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee2() {
156765
+ var _ref35 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee7() {
156235
156766
  var result,
156236
- _args2 = arguments;
156237
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
156238
- while (1) switch (_context2.prev = _context2.next) {
156767
+ _args7 = arguments;
156768
+ return _regeneratorRuntime().wrap(function _callee7$(_context7) {
156769
+ while (1) switch (_context7.prev = _context7.next) {
156239
156770
  case 0:
156240
- _context2.next = 2;
156241
- return func.apply(void 0, _args2);
156771
+ _context7.next = 2;
156772
+ return func.apply(void 0, _args7);
156242
156773
  case 2:
156243
- result = _context2.sent;
156244
- return _context2.abrupt("return", result);
156774
+ result = _context7.sent;
156775
+ return _context7.abrupt("return", result);
156245
156776
  case 4:
156246
156777
  case "end":
156247
- return _context2.stop();
156778
+ return _context7.stop();
156248
156779
  }
156249
- }, _callee2);
156780
+ }, _callee7);
156250
156781
  }));
156251
156782
  return function wrappedFunc() {
156252
- return _ref15.apply(this, arguments);
156783
+ return _ref35.apply(this, arguments);
156253
156784
  };
156254
156785
  }();
156255
156786
  wrappedFunc.apply(void 0, _toConsumableArray(args)).then(function (result) {
@@ -156260,18 +156791,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156260
156791
  });
156261
156792
  }
156262
156793
  var globalEventListenerMap = new Map();
156263
- function useBridgeHandler(_ref16) {
156264
- var onMessage = _ref16.onMessage,
156265
- constantHandlerMap = _ref16.constantHandlerMap,
156266
- asyncHandlerMap = _ref16.asyncHandlerMap,
156267
- eventListenerMap = _ref16.eventListenerMap,
156268
- originalInjectedJavaScript = _ref16.injectedJavaScript;
156269
- var ref = (0, import_react5.useRef)(null);
156270
- var injectedJavaScript = (0, import_react5.useMemo)(function () {
156271
- return ["window.__CONSTANT_HANDLER_MAP = ".concat(JSON.stringify(Object.entries(constantHandlerMap).reduce(function (acc, _ref17) {
156272
- var _ref18 = _slicedToArray(_ref17, 2),
156273
- key = _ref18[0],
156274
- value = _ref18[1];
156794
+ function useBridgeHandler(_ref36) {
156795
+ var onMessage = _ref36.onMessage,
156796
+ constantHandlerMap = _ref36.constantHandlerMap,
156797
+ asyncHandlerMap = _ref36.asyncHandlerMap,
156798
+ eventListenerMap = _ref36.eventListenerMap,
156799
+ originalInjectedJavaScript = _ref36.injectedJavaScript;
156800
+ var ref = (0, import_react7.useRef)(null);
156801
+ var injectedJavaScript = (0, import_react7.useMemo)(function () {
156802
+ return ["window.__CONSTANT_HANDLER_MAP = ".concat(JSON.stringify(Object.entries(constantHandlerMap).reduce(function (acc, _ref37) {
156803
+ var _ref38 = _slicedToArray(_ref37, 2),
156804
+ key = _ref38[0],
156805
+ value = _ref38[1];
156275
156806
  acc[key] = typeof value === "function" ? value() : value;
156276
156807
  return acc;
156277
156808
  }, {}))), originalInjectedJavaScript, "true"].join("\n");
@@ -156288,22 +156819,22 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156288
156819
  (_ref$current2 = ref.current) === null || _ref$current2 === void 0 || _ref$current2.injectJavaScript("\n window.__BEDROCK_NATIVE_EMITTER.emit('".concat(functionName, "/onError/").concat(eventId, "', ").concat(JSON.stringify(error, null, 0), ");\n "));
156289
156820
  };
156290
156821
  };
156291
- var $onMessage = (0, import_react5.useCallback)(function () {
156292
- var _ref19 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee3(e) {
156822
+ var $onMessage = (0, import_react7.useCallback)(function () {
156823
+ var _ref39 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee8(e) {
156293
156824
  var data, _eventListenerMap$dat, handleOnEvent, handleOnError, remove, key, _remove, _ref$current3;
156294
- return _regeneratorRuntime().wrap(function _callee3$(_context3) {
156295
- while (1) switch (_context3.prev = _context3.next) {
156825
+ return _regeneratorRuntime().wrap(function _callee8$(_context8) {
156826
+ while (1) switch (_context8.prev = _context8.next) {
156296
156827
  case 0:
156297
156828
  onMessage === null || onMessage === void 0 || onMessage(e);
156298
156829
  data = JSON.parse(e.nativeEvent.data);
156299
156830
  if (!(_typeof(data) !== "object" || data === null || typeof data.functionName !== "string" || typeof data.eventId !== "string" || typeof data.type !== "string" || !["addEventListener", "removeEventListener", "method"].includes(data.type))) {
156300
- _context3.next = 4;
156831
+ _context8.next = 4;
156301
156832
  break;
156302
156833
  }
156303
- return _context3.abrupt("return");
156834
+ return _context8.abrupt("return");
156304
156835
  case 4:
156305
- _context3.t0 = data.type;
156306
- _context3.next = _context3.t0 === "addEventListener" ? 7 : _context3.t0 === "removeEventListener" ? 12 : _context3.t0 === "method" ? 17 : 19;
156836
+ _context8.t0 = data.type;
156837
+ _context8.next = _context8.t0 === "addEventListener" ? 7 : _context8.t0 === "removeEventListener" ? 12 : _context8.t0 === "method" ? 17 : 19;
156307
156838
  break;
156308
156839
  case 7:
156309
156840
  handleOnEvent = createHandleOnEvent(data.functionName, data.eventId);
@@ -156316,13 +156847,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156316
156847
  if (remove) {
156317
156848
  globalEventListenerMap.set("".concat(data.functionName, "/").concat(data.eventId), remove);
156318
156849
  }
156319
- return _context3.abrupt("break", 19);
156850
+ return _context8.abrupt("break", 19);
156320
156851
  case 12:
156321
156852
  key = "".concat(data.functionName, "/").concat(data.eventId);
156322
156853
  _remove = globalEventListenerMap.get(key);
156323
156854
  _remove === null || _remove === void 0 || _remove();
156324
156855
  globalEventListenerMap.delete(key);
156325
- return _context3.abrupt("break", 19);
156856
+ return _context8.abrupt("break", 19);
156326
156857
  case 17:
156327
156858
  methodHandler({
156328
156859
  args: data.args,
@@ -156331,15 +156862,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156331
156862
  handlerMap: asyncHandlerMap,
156332
156863
  injectJavaScript: (_ref$current3 = ref.current) === null || _ref$current3 === void 0 ? void 0 : _ref$current3.injectJavaScript
156333
156864
  });
156334
- return _context3.abrupt("break", 19);
156865
+ return _context8.abrupt("break", 19);
156335
156866
  case 19:
156336
156867
  case "end":
156337
- return _context3.stop();
156868
+ return _context8.stop();
156338
156869
  }
156339
- }, _callee3);
156870
+ }, _callee8);
156340
156871
  }));
156341
- return function (_x13) {
156342
- return _ref19.apply(this, arguments);
156872
+ return function (_x15) {
156873
+ return _ref39.apply(this, arguments);
156343
156874
  };
156344
156875
  }(), [onMessage]);
156345
156876
  return {
@@ -156366,7 +156897,207 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156366
156897
  return _startUpdateLocation;
156367
156898
  }
156368
156899
  });
156369
- var import_react_native_bedrock10 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
156900
+ var import_react_native19 = _$$_REQUIRE(_dependencyMap[4], "react-native");
156901
+ var import_react_native_bedrock13 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
156902
+ var FontA11yCategory = {
156903
+ Large: "Large",
156904
+ xLarge: "xLarge",
156905
+ xxLarge: "xxLarge",
156906
+ xxxLarge: "xxxLarge",
156907
+ A11y_Medium: "A11y_Medium",
156908
+ A11y_Large: "A11y_Large",
156909
+ A11y_xLarge: "A11y_xLarge",
156910
+ A11y_xxLarge: "A11y_xxLarge",
156911
+ A11y_xxxLarge: "A11y_xxxLarge"
156912
+ };
156913
+ var androidFontScaleMap = {
156914
+ 100: FontA11yCategory.Large,
156915
+ 110: FontA11yCategory.xLarge,
156916
+ 120: FontA11yCategory.xxLarge,
156917
+ 135: FontA11yCategory.xxxLarge,
156918
+ 160: FontA11yCategory.A11y_Medium,
156919
+ 190: FontA11yCategory.A11y_Large,
156920
+ 235: FontA11yCategory.A11y_xLarge,
156921
+ 275: FontA11yCategory.A11y_xxLarge,
156922
+ 310: FontA11yCategory.A11y_xxxLarge
156923
+ };
156924
+ var iosScaleToAndroidScale = {
156925
+ 0.823: 100,
156926
+ 0.882: 100,
156927
+ 0.941: 100,
156928
+ 1: 100,
156929
+ 1.118: 110,
156930
+ 1.235: 120,
156931
+ 1.353: 135,
156932
+ 1.786: 160,
156933
+ 2.143: 190,
156934
+ 2.643: 235,
156935
+ 3.143: 275,
156936
+ 3.571: 310
156937
+ };
156938
+ function convertToAndroidStyleScale(fontScale, platform) {
156939
+ if (platform === "android") {
156940
+ if (fontScale <= 1) {
156941
+ return 100;
156942
+ }
156943
+ var scaledValue = Math.round(fontScale * 100);
156944
+ var keys = Object.keys(androidFontScaleMap).map(Number).sort(function (a, b) {
156945
+ return a - b;
156946
+ });
156947
+ var closestKey = keys[0];
156948
+ var minDiff = Math.abs(scaledValue - closestKey);
156949
+ var _iterator2 = _createForOfIteratorHelper(keys),
156950
+ _step2;
156951
+ try {
156952
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
156953
+ var key = _step2.value;
156954
+ var diff = Math.abs(scaledValue - key);
156955
+ if (diff < minDiff) {
156956
+ minDiff = diff;
156957
+ closestKey = key;
156958
+ }
156959
+ }
156960
+ } catch (err) {
156961
+ _iterator2.e(err);
156962
+ } finally {
156963
+ _iterator2.f();
156964
+ }
156965
+ return closestKey;
156966
+ } else {
156967
+ var iosScales = Object.keys(iosScaleToAndroidScale).map(Number);
156968
+ var closestScale = iosScales[0];
156969
+ var _minDiff = Math.abs(fontScale - closestScale);
156970
+ var _iterator3 = _createForOfIteratorHelper(iosScales),
156971
+ _step3;
156972
+ try {
156973
+ for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
156974
+ var scale = _step3.value;
156975
+ var _diff = Math.abs(fontScale - scale);
156976
+ if (_diff < _minDiff) {
156977
+ _minDiff = _diff;
156978
+ closestScale = scale;
156979
+ }
156980
+ }
156981
+ } catch (err) {
156982
+ _iterator3.e(err);
156983
+ } finally {
156984
+ _iterator3.f();
156985
+ }
156986
+ return iosScaleToAndroidScale[closestScale];
156987
+ }
156988
+ }
156989
+ function mapIOSFontScaleToCategory(fontScale) {
156990
+ if (fontScale < 1) {
156991
+ return FontA11yCategory.Large;
156992
+ }
156993
+ if (Math.abs(fontScale - 1) < 0.05) {
156994
+ return FontA11yCategory.Large;
156995
+ }
156996
+ if (Math.abs(fontScale - 1.118) < 0.05) {
156997
+ return FontA11yCategory.xLarge;
156998
+ }
156999
+ if (Math.abs(fontScale - 1.235) < 0.05) {
157000
+ return FontA11yCategory.xxLarge;
157001
+ }
157002
+ if (Math.abs(fontScale - 1.353) < 0.05) {
157003
+ return FontA11yCategory.xxxLarge;
157004
+ }
157005
+ if (Math.abs(fontScale - 1.786) < 0.05) {
157006
+ return FontA11yCategory.A11y_Medium;
157007
+ }
157008
+ if (Math.abs(fontScale - 2.143) < 0.05) {
157009
+ return FontA11yCategory.A11y_Large;
157010
+ }
157011
+ if (Math.abs(fontScale - 2.643) < 0.05) {
157012
+ return FontA11yCategory.A11y_xLarge;
157013
+ }
157014
+ if (Math.abs(fontScale - 3.143) < 0.05) {
157015
+ return FontA11yCategory.A11y_xxLarge;
157016
+ }
157017
+ if (Math.abs(fontScale - 3.571) < 0.05) {
157018
+ return FontA11yCategory.A11y_xxxLarge;
157019
+ }
157020
+ return FontA11yCategory.Large;
157021
+ }
157022
+ function mapAndroidFontScaleToCategory(fontScale) {
157023
+ if (fontScale <= 1) {
157024
+ return androidFontScaleMap[100];
157025
+ }
157026
+ var scaledValue = Math.round(fontScale * 100);
157027
+ var keys = Object.keys(androidFontScaleMap).map(Number).sort(function (a, b) {
157028
+ return a - b;
157029
+ });
157030
+ if (keys.length === 0) {
157031
+ return androidFontScaleMap[100];
157032
+ }
157033
+ var closestKey = keys[0];
157034
+ var minDiff = Math.abs(scaledValue - closestKey);
157035
+ var _iterator4 = _createForOfIteratorHelper(keys),
157036
+ _step4;
157037
+ try {
157038
+ for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
157039
+ var key = _step4.value;
157040
+ var diff = Math.abs(scaledValue - key);
157041
+ if (diff < minDiff) {
157042
+ minDiff = diff;
157043
+ closestKey = key;
157044
+ }
157045
+ }
157046
+ } catch (err) {
157047
+ _iterator4.e(err);
157048
+ } finally {
157049
+ _iterator4.f();
157050
+ }
157051
+ return androidFontScaleMap[closestKey];
157052
+ }
157053
+ function mapFontScaleToCategory(fontScale, platform) {
157054
+ return platform === "ios" ? mapIOSFontScaleToCategory(fontScale) : mapAndroidFontScaleToCategory(fontScale);
157055
+ }
157056
+ function _useCreateUserAgent(_ref40) {
157057
+ var batteryModePreference = _ref40.batteryModePreference,
157058
+ colorPreference = _ref40.colorPreference,
157059
+ locale = _ref40.locale,
157060
+ navbarPreference = _ref40.navbarPreference,
157061
+ pureSafeArea = _ref40.pureSafeArea,
157062
+ safeArea = _ref40.safeArea,
157063
+ safeAreaBottomTransparency = _ref40.safeAreaBottomTransparency;
157064
+ var platform = (0, import_react_native_bedrock13.getPlatformOS)();
157065
+ var appVersion = _getTossAppVersion();
157066
+ var _ref41 = (0, import_react_native19.useWindowDimensions)(),
157067
+ fontScale = _ref41.fontScale;
157068
+ var platformString = platform === "ios" ? "iPhone" : "Android";
157069
+ var fontA11y = mapFontScaleToCategory(fontScale, platform);
157070
+ var normalizedFontScale = convertToAndroidStyleScale(fontScale, platform);
157071
+ return ["TossApp/".concat(appVersion), batteryModePreference && "TossBatteryModePreference/".concat(batteryModePreference), colorPreference && "TossColorPreference/".concat(colorPreference), "TossFontAccessibility/".concat(fontA11y), "TossFontScale/".concat(normalizedFontScale), locale && "TossLocale/".concat(locale), navbarPreference && "TossNavbarPreference/".concat(navbarPreference), pureSafeArea && "TossPureSafeArea/".concat(pureSafeArea), safeArea && "TossSafeArea/".concat(safeArea), safeAreaBottomTransparency && "TossSafeAreaBottomTransparency/".concat(safeAreaBottomTransparency), platformString].filter(Boolean).join(" ");
157072
+ }
157073
+ var import_react8 = _$$_REQUIRE(_dependencyMap[3], "react");
157074
+ var import_react_native_bedrock14 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
157075
+ function _useGeolocation(_ref42) {
157076
+ var accuracy = _ref42.accuracy,
157077
+ distanceInterval = _ref42.distanceInterval,
157078
+ timeInterval = _ref42.timeInterval;
157079
+ var isVisible = (0, import_react_native_bedrock14.useVisibility)();
157080
+ var _ref43 = (0, import_react8.useState)(null),
157081
+ _ref44 = _slicedToArray(_ref43, 2),
157082
+ location = _ref44[0],
157083
+ setLocation = _ref44[1];
157084
+ (0, import_react8.useEffect)(function () {
157085
+ if (!isVisible) {
157086
+ return;
157087
+ }
157088
+ return _startUpdateLocation({
157089
+ options: {
157090
+ accuracy: accuracy,
157091
+ distanceInterval: distanceInterval,
157092
+ timeInterval: timeInterval
157093
+ },
157094
+ onEvent: setLocation,
157095
+ onError: console.error
157096
+ });
157097
+ }, [accuracy, distanceInterval, timeInterval, isVisible]);
157098
+ return location;
157099
+ }
157100
+ var import_react_native_bedrock15 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
156370
157101
  var extractDateFromUUIDv7 = function extractDateFromUUIDv7(uuid) {
156371
157102
  var timestampHex = uuid.split("-").join("").slice(0, 12);
156372
157103
  var timestamp = Number.parseInt(timestampHex, 16);
@@ -156388,7 +157119,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156388
157119
  };
156389
157120
  var getReferrer = function getReferrer() {
156390
157121
  try {
156391
- var referrer = new URL((0, import_react_native_bedrock10.getSchemeUri)());
157122
+ var referrer = new URL((0, import_react_native_bedrock15.getSchemeUri)());
156392
157123
  return referrer.searchParams.get("referrer");
156393
157124
  } catch (_unused4) {
156394
157125
  return "";
@@ -156410,32 +157141,32 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156410
157141
  };
156411
157142
  return _eventLog(log);
156412
157143
  };
156413
- var import_jsx_runtime5 = _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime");
157144
+ var import_jsx_runtime7 = _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime");
156414
157145
  var appsInTossGlobals = getAppsInTossGlobals();
156415
157146
  var operationalEnvironment = _getOperationalEnvironment();
156416
157147
  var TYPES = ["partner", "external", "game"];
156417
157148
  var WEBVIEW_TYPES = {
156418
- partner: import_react_native14.PartnerWebViewScreen,
156419
- external: import_react_native14.ExternalWebViewScreen,
157149
+ partner: import_react_native20.PartnerWebViewScreen,
157150
+ external: import_react_native20.ExternalWebViewScreen,
156420
157151
  game: GameWebView
156421
157152
  };
156422
157153
  function mergeSchemeQueryParamsInto(url) {
156423
157154
  var baseUrl = new URL(url);
156424
- var schemeUrl = new URL((0, import_react_native_bedrock11.getSchemeUri)());
157155
+ var schemeUrl = new URL((0, import_react_native_bedrock16.getSchemeUri)());
156425
157156
  baseUrl.pathname = schemeUrl.pathname;
156426
- var _iterator2 = _createForOfIteratorHelper(schemeUrl.searchParams.entries()),
156427
- _step2;
157157
+ var _iterator5 = _createForOfIteratorHelper(schemeUrl.searchParams.entries()),
157158
+ _step5;
156428
157159
  try {
156429
- for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
156430
- var _step2$value = _slicedToArray(_step2.value, 2),
156431
- key = _step2$value[0],
156432
- value = _step2$value[1];
157160
+ for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
157161
+ var _step5$value = _slicedToArray(_step5.value, 2),
157162
+ key = _step5$value[0],
157163
+ value = _step5$value[1];
156433
157164
  baseUrl.searchParams.set(key, value);
156434
157165
  }
156435
157166
  } catch (err) {
156436
- _iterator2.e(err);
157167
+ _iterator5.e(err);
156437
157168
  } finally {
156438
- _iterator2.f();
157169
+ _iterator5.f();
156439
157170
  }
156440
157171
  return baseUrl;
156441
157172
  }
@@ -156453,55 +157184,56 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156453
157184
  }
156454
157185
  return url.toString();
156455
157186
  }
156456
- function _WebView(_ref20) {
156457
- var type = _ref20.type,
156458
- local = _ref20.local,
156459
- onMessage = _ref20.onMessage,
156460
- props = _objectWithoutProperties(_ref20, _excluded3);
157187
+ function _WebView(_ref45) {
157188
+ var type = _ref45.type,
157189
+ local = _ref45.local,
157190
+ onMessage = _ref45.onMessage,
157191
+ props = _objectWithoutProperties(_ref45, _excluded3);
156461
157192
  if (!TYPES.includes(type)) {
156462
157193
  throw new Error("Invalid WebView type: '".concat(type, "'"));
156463
157194
  }
156464
- var bedrockEvent = (0, import_react_native_bedrock11.useBedrockEvent)();
156465
- var uri = (0, import_react6.useMemo)(function () {
157195
+ var bedrockEvent = (0, import_react_native_bedrock16.useBedrockEvent)();
157196
+ var uri = (0, import_react9.useMemo)(function () {
156466
157197
  return getWebViewUri(local);
156467
157198
  }, [local]);
156468
- var top = (0, import_private.useSafeAreaTop)();
156469
- var bottom = (0, import_private.useSafeAreaBottom)();
157199
+ var top = (0, import_private3.useSafeAreaTop)();
157200
+ var bottom = (0, import_private3.useSafeAreaBottom)();
157201
+ var global2 = getAppsInTossGlobals();
156470
157202
  var handler = useBridgeHandler({
156471
157203
  onMessage: onMessage,
156472
157204
  eventListenerMap: _objectSpread(_objectSpread({}, event_bridges_exports), {}, {
156473
- backEvent: function backEvent(_ref21) {
156474
- var onEvent = _ref21.onEvent,
156475
- onError = _ref21.onError,
156476
- options = _ref21.options;
157205
+ backEvent: function backEvent(_ref46) {
157206
+ var onEvent = _ref46.onEvent,
157207
+ onError = _ref46.onError,
157208
+ options = _ref46.options;
156477
157209
  return bedrockEvent.addEventListener("backEvent", {
156478
157210
  onEvent: onEvent,
156479
157211
  onError: onError,
156480
157212
  options: options
156481
157213
  });
156482
157214
  },
156483
- entryMessageExited: function entryMessageExited(_ref22) {
156484
- var onEvent = _ref22.onEvent,
156485
- onError = _ref22.onError;
157215
+ entryMessageExited: function entryMessageExited(_ref47) {
157216
+ var onEvent = _ref47.onEvent,
157217
+ onError = _ref47.onError;
156486
157218
  return _appsInTossEvent.addEventListener("entryMessageExited", {
156487
157219
  onEvent: onEvent,
156488
157220
  onError: onError
156489
157221
  });
156490
157222
  },
156491
- updateLocationEvent: function updateLocationEvent(_ref23) {
156492
- var onEvent = _ref23.onEvent,
156493
- onError = _ref23.onError,
156494
- options = _ref23.options;
157223
+ updateLocationEvent: function updateLocationEvent(_ref48) {
157224
+ var onEvent = _ref48.onEvent,
157225
+ onError = _ref48.onError,
157226
+ options = _ref48.options;
156495
157227
  return _appsInTossEvent.addEventListener("updateLocationEvent", {
156496
157228
  onEvent: onEvent,
156497
157229
  onError: onError,
156498
157230
  options: options
156499
157231
  });
156500
157232
  },
156501
- appBridgeCallbackEvent: function appBridgeCallbackEvent(_ref24) {
156502
- var onEvent = _ref24.onEvent,
156503
- onError = _ref24.onError,
156504
- options = _ref24.options;
157233
+ appBridgeCallbackEvent: function appBridgeCallbackEvent(_ref49) {
157234
+ var onEvent = _ref49.onEvent,
157235
+ onError = _ref49.onError,
157236
+ options = _ref49.options;
156505
157237
  return _appsInTossEvent.addEventListener("appBridgeCallbackEvent", {
156506
157238
  onEvent: onEvent,
156507
157239
  onError: onError,
@@ -156513,13 +157245,21 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156513
157245
  loadAdMobRewardedAd: _GoogleAdMob.loadAdMobRewardedAd,
156514
157246
  showAdMobRewardedAd: _GoogleAdMob.showAdMobRewardedAd
156515
157247
  }),
156516
- constantHandlerMap: _objectSpread(_objectSpread(_objectSpread({}, bedrockConstantBridges), constant_bridges_exports), {}, {
157248
+ constantHandlerMap: _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, bedrockConstantBridges), constant_bridges_exports), {}, {
156517
157249
  getSafeAreaTop: function getSafeAreaTop() {
156518
157250
  return top;
156519
157251
  },
156520
157252
  getSafeAreaBottom: function getSafeAreaBottom() {
156521
157253
  return bottom;
156522
- },
157254
+ }
157255
+ }, Object.fromEntries(Object.entries(global2).map(function (_ref50) {
157256
+ var _ref51 = _slicedToArray(_ref50, 2),
157257
+ key = _ref51[0],
157258
+ value = _ref51[1];
157259
+ return [key, function () {
157260
+ return value;
157261
+ }];
157262
+ }))), {}, {
156523
157263
  loadAdMobInterstitialAd_isSupported: _GoogleAdMob.loadAdMobInterstitialAd.isSupported,
156524
157264
  showAdMobInterstitialAd_isSupported: _GoogleAdMob.showAdMobInterstitialAd.isSupported,
156525
157265
  loadAdMobRewardedAd_isSupported: _GoogleAdMob.loadAdMobRewardedAd.isSupported,
@@ -156536,7 +157276,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156536
157276
  iapGetProductItemList: _IAP.getProductItemList
156537
157277
  })
156538
157278
  });
156539
- var baseProps = (0, import_react6.useMemo)(function () {
157279
+ var baseProps = (0, import_react9.useMemo)(function () {
156540
157280
  switch (type) {
156541
157281
  case "partner":
156542
157282
  {
@@ -156567,24 +157307,32 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156567
157307
  }, [type, props]);
156568
157308
  var BaseWebView = WEBVIEW_TYPES[type];
156569
157309
  var webViewDebuggingEnabled = operationalEnvironment === "sandbox";
156570
- var handleNavigationStateChange = (0, import_react6.useCallback)(function (event) {
157310
+ var handleNavigationStateChange = (0, import_react9.useCallback)(function (event) {
156571
157311
  if (event.url) {
156572
157312
  trackScreen(event.url);
156573
157313
  }
156574
157314
  }, []);
156575
- return (0, import_jsx_runtime5.jsx)(BaseWebView, _objectSpread(_objectSpread(_objectSpread({
157315
+ var userAgent = _useCreateUserAgent({
157316
+ colorPreference: "light"
157317
+ });
157318
+ return (0, import_jsx_runtime7.jsx)(BaseWebView, _objectSpread(_objectSpread(_objectSpread({
156576
157319
  ref: handler.ref
156577
157320
  }, props), baseProps), {}, {
156578
157321
  source: {
156579
- uri: uri
157322
+ uri: uri,
157323
+ headers: {
157324
+ "User-Agent": userAgent
157325
+ }
156580
157326
  },
157327
+ userAgent: import_react_native21.Platform.OS === "ios" ? userAgent : void 0,
156581
157328
  sharedCookiesEnabled: true,
156582
157329
  webviewDebuggingEnabled: webViewDebuggingEnabled,
156583
157330
  thirdPartyCookiesEnabled: true,
156584
157331
  onMessage: handler.onMessage,
156585
157332
  onNavigationStateChange: handleNavigationStateChange,
156586
157333
  injectedJavaScript: handler.injectedJavaScript,
156587
- injectedJavaScriptBeforeContentLoaded: handler.injectedJavaScript
157334
+ injectedJavaScriptBeforeContentLoaded: handler.injectedJavaScript,
157335
+ decelerationRate: import_react_native21.Platform.OS === "ios" ? 1 : void 0
156588
157336
  }));
156589
157337
  }
156590
157338
  function ensureValue(value, name) {
@@ -156593,33 +157341,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156593
157341
  }
156594
157342
  return value;
156595
157343
  }
156596
- var import_react7 = _$$_REQUIRE(_dependencyMap[3], "react");
156597
- var import_react_native_bedrock12 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
156598
- function _useGeolocation(_ref25) {
156599
- var accuracy = _ref25.accuracy,
156600
- distanceInterval = _ref25.distanceInterval,
156601
- timeInterval = _ref25.timeInterval;
156602
- var isVisible = (0, import_react_native_bedrock12.useVisibility)();
156603
- var _ref26 = (0, import_react7.useState)(null),
156604
- _ref27 = _slicedToArray(_ref26, 2),
156605
- location = _ref27[0],
156606
- setLocation = _ref27[1];
156607
- (0, import_react7.useEffect)(function () {
156608
- if (!isVisible) {
156609
- return;
156610
- }
156611
- return _startUpdateLocation({
156612
- options: {
156613
- accuracy: accuracy,
156614
- distanceInterval: distanceInterval,
156615
- timeInterval: timeInterval
156616
- },
156617
- onEvent: setLocation,
156618
- onError: console.error
156619
- });
156620
- }, [accuracy, distanceInterval, timeInterval, isVisible]);
156621
- return location;
156622
- }
156623
157344
  var Accuracy2 = function (Accuracy3) {
156624
157345
  Accuracy3[Accuracy3["Lowest"] = 1] = "Lowest";
156625
157346
  Accuracy3[Accuracy3["Low"] = 2] = "Low";
@@ -156629,10 +157350,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156629
157350
  Accuracy3[Accuracy3["BestForNavigation"] = 6] = "BestForNavigation";
156630
157351
  return Accuracy3;
156631
157352
  }(Accuracy2 || {});
156632
- function onVisibilityChangedByTransparentServiceWeb(eventParams) {
156633
- return _appsInTossEvent.addEventListener("onVisibilityChangedByTransparentServiceWeb", eventParams);
156634
- }
156635
- var _INTERNAL__onVisibilityChangedByTransparentServiceWeb = onVisibilityChangedByTransparentServiceWeb;
156636
157353
  __reExport(src_exports, _$$_REQUIRE(_dependencyMap[0], "@apps-in-toss/analytics"), module.exports);
156637
157354
  var Analytics2 = {
156638
157355
  init: import_analytics2.Analytics.init,
@@ -156659,15 +157376,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156659
157376
  getClipboardText: _getClipboardText,
156660
157377
  getCurrentLocation: _getCurrentLocation,
156661
157378
  getDeviceId: _getDeviceId,
157379
+ getGameCenterGameProfile: _getGameCenterGameProfile,
156662
157380
  getOperationalEnvironment: _getOperationalEnvironment,
156663
157381
  getTossAppVersion: _getTossAppVersion,
156664
157382
  getTossShareLink: _getTossShareLink,
156665
157383
  isMinVersionSupported: _isMinVersionSupported,
156666
157384
  openCamera: _openCamera,
157385
+ openGameCenterLeaderboard: _openGameCenterLeaderboard,
156667
157386
  saveBase64Data: _saveBase64Data,
156668
157387
  setClipboardText: _setClipboardText,
156669
157388
  setDeviceOrientation: _setDeviceOrientation,
156670
157389
  startUpdateLocation: _startUpdateLocation,
157390
+ submitGameCenterLeaderBoardScore: _submitGameCenterLeaderBoardScore,
157391
+ useCreateUserAgent: _useCreateUserAgent,
156671
157392
  useGeolocation: _useGeolocation
156672
157393
  }, _$$_REQUIRE(_dependencyMap[0], "@apps-in-toss/analytics")));
156673
157394
  },1071,[1072,1073,1,8,11,49,2249,2250,2251,2219,2236,685,5],"../../../.yarn/__virtual__/@apps-in-toss-framework-virtual-574b136add/1/apps-in-toss-packages/framework/dist/index.cjs");
@@ -224469,7 +225190,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
224469
225190
  }
224470
225191
  },2204,[511,8,11,49],"../../../.yarn/__virtual__/@react-navigation-elements-virtual-e6a9838d2a/0/cache/@react-navigation-elements-npm-1.3.9-f0da2fec1d-0c791f1043.zip/node_modules/@react-navigation/elements/src/PlatformPressable.tsx");
224471
225192
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
224472
- module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/line0/Dev/frontend-bedrock/.yarn/cache/@react-native-bedrock-mpack-next-npm-0.0.25-382cd22a0f-6b37accd87.zip/node_modules/@react-native-bedrock/mpack-next/dist/metro/bedrockAssetRegistry.js").registerAsset({
225193
+ module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/gahyun.park/Desktop/Projects/frontend-bedrock/.yarn/cache/@react-native-bedrock-mpack-next-npm-0.0.25-382cd22a0f-6b37accd87.zip/node_modules/@react-native-bedrock/mpack-next/dist/metro/bedrockAssetRegistry.js").registerAsset({
224473
225194
  "__packager_asset": true,
224474
225195
  "httpServerLocation": "/assets/../../../.yarn/__virtual__/@react-navigation-elements-virtual-e6a9838d2a/0/cache/@react-navigation-elements-npm-1.3.9-f0da2fec1d-0c791f1043.zip/node_modules/@react-navigation/elements/src/assets",
224475
225196
  "width": 24,
@@ -224481,7 +225202,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
224481
225202
  });
224482
225203
  },2205,[414],"../../../.yarn/__virtual__/@react-navigation-elements-virtual-e6a9838d2a/0/cache/@react-navigation-elements-npm-1.3.9-f0da2fec1d-0c791f1043.zip/node_modules/@react-navigation/elements/src/assets/back-icon.png");
224483
225204
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
224484
- module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/line0/Dev/frontend-bedrock/.yarn/cache/@react-native-bedrock-mpack-next-npm-0.0.25-382cd22a0f-6b37accd87.zip/node_modules/@react-native-bedrock/mpack-next/dist/metro/bedrockAssetRegistry.js").registerAsset({
225205
+ module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/gahyun.park/Desktop/Projects/frontend-bedrock/.yarn/cache/@react-native-bedrock-mpack-next-npm-0.0.25-382cd22a0f-6b37accd87.zip/node_modules/@react-native-bedrock/mpack-next/dist/metro/bedrockAssetRegistry.js").registerAsset({
224485
225206
  "__packager_asset": true,
224486
225207
  "httpServerLocation": "/assets/../../../.yarn/__virtual__/@react-navigation-elements-virtual-e6a9838d2a/0/cache/@react-navigation-elements-npm-1.3.9-f0da2fec1d-0c791f1043.zip/node_modules/@react-navigation/elements/src/assets",
224487
225208
  "width": 50,