@apps-in-toss/web-framework 0.0.30 → 0.0.32

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/geunhyeok.lee/workspace/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/geunhyeok.lee/workspace/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/geunhyeok.lee/workspace/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/geunhyeok.lee/workspace/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/geunhyeok.lee/workspace/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/geunhyeok.lee/workspace/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/geunhyeok.lee/workspace/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,9 @@ __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
+ },
154803
154812
  useCreateUserAgent: function useCreateUserAgent() {
154804
154813
  return _useCreateUserAgent;
154805
154814
  },
@@ -154811,7 +154820,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
154811
154820
  var import_analytics2 = _$$_REQUIRE(_dependencyMap[0], "@apps-in-toss/analytics");
154812
154821
  var import_analytics = _$$_REQUIRE(_dependencyMap[0], "@apps-in-toss/analytics");
154813
154822
  var import_react_native6 = _$$_REQUIRE(_dependencyMap[1], "@toss-design-system/react-native");
154814
- var import_react_native_bedrock8 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
154823
+ var import_react_native_bedrock9 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
154815
154824
  var import_react2 = _$$_REQUIRE(_dependencyMap[3], "react");
154816
154825
  var import_react_native_bedrock2 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
154817
154826
  var _env = {
@@ -155034,27 +155043,27 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155034
155043
  return _requestPermission.apply(this, arguments);
155035
155044
  }
155036
155045
  function _requestPermission() {
155037
- _requestPermission = _asyncToGenerator(_regeneratorRuntime().mark(function _callee4(permission) {
155046
+ _requestPermission = _asyncToGenerator(_regeneratorRuntime().mark(function _callee9(permission) {
155038
155047
  var permissionStatus;
155039
- return _regeneratorRuntime().wrap(function _callee4$(_context4) {
155040
- while (1) switch (_context4.prev = _context4.next) {
155048
+ return _regeneratorRuntime().wrap(function _callee9$(_context9) {
155049
+ while (1) switch (_context9.prev = _context9.next) {
155041
155050
  case 0:
155042
- _context4.next = 2;
155051
+ _context9.next = 2;
155043
155052
  return getPermission(permission);
155044
155053
  case 2:
155045
- permissionStatus = _context4.sent;
155046
- _context4.t0 = permissionStatus;
155047
- _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;
155048
155057
  break;
155049
155058
  case 6:
155050
- return _context4.abrupt("return", permissionStatus);
155059
+ return _context9.abrupt("return", permissionStatus);
155051
155060
  case 7:
155052
- return _context4.abrupt("return", openPermissionDialog(permission));
155061
+ return _context9.abrupt("return", openPermissionDialog(permission));
155053
155062
  case 8:
155054
155063
  case "end":
155055
- return _context4.stop();
155064
+ return _context9.stop();
155056
155065
  }
155057
- }, _callee4);
155066
+ }, _callee9);
155058
155067
  }));
155059
155068
  return _requestPermission.apply(this, arguments);
155060
155069
  }
@@ -155307,12 +155316,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155307
155316
  getCurrentLocation: function getCurrentLocation() {
155308
155317
  return _getCurrentLocation;
155309
155318
  },
155319
+ getGameCenterGameProfile: function getGameCenterGameProfile() {
155320
+ return _getGameCenterGameProfile;
155321
+ },
155310
155322
  getTossShareLink: function getTossShareLink() {
155311
155323
  return _getTossShareLink;
155312
155324
  },
155313
155325
  openCamera: function openCamera() {
155314
155326
  return _openCamera;
155315
155327
  },
155328
+ openGameCenterLeaderboard: function openGameCenterLeaderboard() {
155329
+ return _openGameCenterLeaderboard;
155330
+ },
155316
155331
  saveBase64Data: function saveBase64Data() {
155317
155332
  return _saveBase64Data;
155318
155333
  },
@@ -155321,38 +155336,41 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155321
155336
  },
155322
155337
  setDeviceOrientation: function setDeviceOrientation() {
155323
155338
  return _setDeviceOrientation;
155339
+ },
155340
+ submitGameCenterLeaderBoardScore: function submitGameCenterLeaderBoardScore() {
155341
+ return _submitGameCenterLeaderBoardScore;
155324
155342
  }
155325
155343
  });
155326
155344
  function _setClipboardText(_x2) {
155327
155345
  return _setClipboardText2.apply(this, arguments);
155328
155346
  }
155329
155347
  function _setClipboardText2() {
155330
- _setClipboardText2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee5(text) {
155348
+ _setClipboardText2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee10(text) {
155331
155349
  var permissionStatus;
155332
- return _regeneratorRuntime().wrap(function _callee5$(_context5) {
155333
- while (1) switch (_context5.prev = _context5.next) {
155350
+ return _regeneratorRuntime().wrap(function _callee10$(_context10) {
155351
+ while (1) switch (_context10.prev = _context10.next) {
155334
155352
  case 0:
155335
- _context5.next = 2;
155353
+ _context10.next = 2;
155336
155354
  return requestPermission({
155337
155355
  name: "clipboard",
155338
155356
  access: "write"
155339
155357
  });
155340
155358
  case 2:
155341
- permissionStatus = _context5.sent;
155359
+ permissionStatus = _context10.sent;
155342
155360
  if (!(permissionStatus === "denied")) {
155343
- _context5.next = 5;
155361
+ _context10.next = 5;
155344
155362
  break;
155345
155363
  }
155346
155364
  throw new Error("\uD074\uB9BD\uBCF4\uB4DC \uC4F0\uAE30 \uAD8C\uD55C\uC774 \uAC70\uBD80\uB418\uC5C8\uC5B4\uC694.");
155347
155365
  case 5:
155348
- return _context5.abrupt("return", AppsInTossModule.setClipboardText({
155366
+ return _context10.abrupt("return", AppsInTossModule.setClipboardText({
155349
155367
  text: text
155350
155368
  }));
155351
155369
  case 6:
155352
155370
  case "end":
155353
- return _context5.stop();
155371
+ return _context10.stop();
155354
155372
  }
155355
- }, _callee5);
155373
+ }, _callee10);
155356
155374
  }));
155357
155375
  return _setClipboardText2.apply(this, arguments);
155358
155376
  }
@@ -155360,30 +155378,30 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155360
155378
  return _getClipboardText2.apply(this, arguments);
155361
155379
  }
155362
155380
  function _getClipboardText2() {
155363
- _getClipboardText2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee6() {
155381
+ _getClipboardText2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee11() {
155364
155382
  var permissionStatus;
155365
- return _regeneratorRuntime().wrap(function _callee6$(_context6) {
155366
- while (1) switch (_context6.prev = _context6.next) {
155383
+ return _regeneratorRuntime().wrap(function _callee11$(_context11) {
155384
+ while (1) switch (_context11.prev = _context11.next) {
155367
155385
  case 0:
155368
- _context6.next = 2;
155386
+ _context11.next = 2;
155369
155387
  return requestPermission({
155370
155388
  name: "clipboard",
155371
155389
  access: "read"
155372
155390
  });
155373
155391
  case 2:
155374
- permissionStatus = _context6.sent;
155392
+ permissionStatus = _context11.sent;
155375
155393
  if (!(permissionStatus === "denied")) {
155376
- _context6.next = 5;
155394
+ _context11.next = 5;
155377
155395
  break;
155378
155396
  }
155379
155397
  throw new Error("\uD074\uB9BD\uBCF4\uB4DC \uC77D\uAE30 \uAD8C\uD55C\uC774 \uAC70\uBD80\uB418\uC5C8\uC5B4\uC694.");
155380
155398
  case 5:
155381
- return _context6.abrupt("return", AppsInTossModule.getClipboardText({}));
155399
+ return _context11.abrupt("return", AppsInTossModule.getClipboardText({}));
155382
155400
  case 6:
155383
155401
  case "end":
155384
- return _context6.stop();
155402
+ return _context11.stop();
155385
155403
  }
155386
- }, _callee6);
155404
+ }, _callee11);
155387
155405
  }));
155388
155406
  return _getClipboardText2.apply(this, arguments);
155389
155407
  }
@@ -155391,44 +155409,44 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155391
155409
  return _fetchContacts2.apply(this, arguments);
155392
155410
  }
155393
155411
  function _fetchContacts2() {
155394
- _fetchContacts2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee7(_ref2) {
155412
+ _fetchContacts2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee12(_ref2) {
155395
155413
  var _contacts$nextOffset;
155396
155414
  var size, offset, query, permissionStatus, contacts;
155397
- return _regeneratorRuntime().wrap(function _callee7$(_context7) {
155398
- while (1) switch (_context7.prev = _context7.next) {
155415
+ return _regeneratorRuntime().wrap(function _callee12$(_context12) {
155416
+ while (1) switch (_context12.prev = _context12.next) {
155399
155417
  case 0:
155400
155418
  size = _ref2.size, offset = _ref2.offset, query = _ref2.query;
155401
- _context7.next = 3;
155419
+ _context12.next = 3;
155402
155420
  return requestPermission({
155403
155421
  name: "contacts",
155404
155422
  access: "read"
155405
155423
  });
155406
155424
  case 3:
155407
- permissionStatus = _context7.sent;
155425
+ permissionStatus = _context12.sent;
155408
155426
  if (!(permissionStatus === "denied")) {
155409
- _context7.next = 6;
155427
+ _context12.next = 6;
155410
155428
  break;
155411
155429
  }
155412
155430
  throw new Error("\uC5F0\uB77D\uCC98 \uAD8C\uD55C\uC774 \uAC70\uBD80\uB418\uC5C8\uC5B4\uC694.");
155413
155431
  case 6:
155414
- _context7.next = 8;
155432
+ _context12.next = 8;
155415
155433
  return AppsInTossModule.fetchContacts({
155416
155434
  size: size,
155417
155435
  offset: offset,
155418
155436
  query: query
155419
155437
  });
155420
155438
  case 8:
155421
- contacts = _context7.sent;
155422
- return _context7.abrupt("return", {
155439
+ contacts = _context12.sent;
155440
+ return _context12.abrupt("return", {
155423
155441
  result: contacts.result,
155424
155442
  nextOffset: (_contacts$nextOffset = contacts.nextOffset) !== null && _contacts$nextOffset !== void 0 ? _contacts$nextOffset : null,
155425
155443
  done: contacts.done
155426
155444
  });
155427
155445
  case 10:
155428
155446
  case "end":
155429
- return _context7.stop();
155447
+ return _context12.stop();
155430
155448
  }
155431
- }, _callee7);
155449
+ }, _callee12);
155432
155450
  }));
155433
155451
  return _fetchContacts2.apply(this, arguments);
155434
155452
  }
@@ -155438,38 +155456,38 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155438
155456
  return _fetchAlbumPhotos2.apply(this, arguments);
155439
155457
  }
155440
155458
  function _fetchAlbumPhotos2() {
155441
- _fetchAlbumPhotos2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee8(options) {
155459
+ _fetchAlbumPhotos2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee13(options) {
155442
155460
  var _options$maxCount, _options$maxWidth;
155443
155461
  var permissionStatus, albumPhotos;
155444
- return _regeneratorRuntime().wrap(function _callee8$(_context8) {
155445
- while (1) switch (_context8.prev = _context8.next) {
155462
+ return _regeneratorRuntime().wrap(function _callee13$(_context13) {
155463
+ while (1) switch (_context13.prev = _context13.next) {
155446
155464
  case 0:
155447
- _context8.next = 2;
155465
+ _context13.next = 2;
155448
155466
  return requestPermission({
155449
155467
  name: "photos",
155450
155468
  access: "read"
155451
155469
  });
155452
155470
  case 2:
155453
- permissionStatus = _context8.sent;
155471
+ permissionStatus = _context13.sent;
155454
155472
  if (!(permissionStatus === "denied")) {
155455
- _context8.next = 5;
155473
+ _context13.next = 5;
155456
155474
  break;
155457
155475
  }
155458
155476
  throw new Error("\uC0AC\uC9C4\uCCA9 \uAD8C\uD55C\uC774 \uAC70\uBD80\uB418\uC5C8\uC5B4\uC694.");
155459
155477
  case 5:
155460
- _context8.next = 7;
155478
+ _context13.next = 7;
155461
155479
  return AppsInTossModule.fetchAlbumPhotos(_objectSpread(_objectSpread({}, options), {}, {
155462
155480
  maxCount: (_options$maxCount = options.maxCount) !== null && _options$maxCount !== void 0 ? _options$maxCount : DEFAULT_MAX_COUNT,
155463
155481
  maxWidth: (_options$maxWidth = options.maxWidth) !== null && _options$maxWidth !== void 0 ? _options$maxWidth : DEFAULT_MAX_WIDTH
155464
155482
  }));
155465
155483
  case 7:
155466
- albumPhotos = _context8.sent;
155467
- return _context8.abrupt("return", albumPhotos);
155484
+ albumPhotos = _context13.sent;
155485
+ return _context13.abrupt("return", albumPhotos);
155468
155486
  case 9:
155469
155487
  case "end":
155470
- return _context8.stop();
155488
+ return _context13.stop();
155471
155489
  }
155472
- }, _callee8);
155490
+ }, _callee13);
155473
155491
  }));
155474
155492
  return _fetchAlbumPhotos2.apply(this, arguments);
155475
155493
  }
@@ -155477,34 +155495,34 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155477
155495
  return _getCurrentLocation2.apply(this, arguments);
155478
155496
  }
155479
155497
  function _getCurrentLocation2() {
155480
- _getCurrentLocation2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee9(options) {
155498
+ _getCurrentLocation2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee14(options) {
155481
155499
  var permissionStatus, position;
155482
- return _regeneratorRuntime().wrap(function _callee9$(_context9) {
155483
- while (1) switch (_context9.prev = _context9.next) {
155500
+ return _regeneratorRuntime().wrap(function _callee14$(_context14) {
155501
+ while (1) switch (_context14.prev = _context14.next) {
155484
155502
  case 0:
155485
- _context9.next = 2;
155503
+ _context14.next = 2;
155486
155504
  return requestPermission({
155487
155505
  name: "geolocation",
155488
155506
  access: "access"
155489
155507
  });
155490
155508
  case 2:
155491
- permissionStatus = _context9.sent;
155509
+ permissionStatus = _context14.sent;
155492
155510
  if (!(permissionStatus === "denied")) {
155493
- _context9.next = 5;
155511
+ _context14.next = 5;
155494
155512
  break;
155495
155513
  }
155496
155514
  throw new Error("\uC704\uCE58 \uAD8C\uD55C\uC774 \uAC70\uBD80\uB418\uC5C8\uC5B4\uC694.");
155497
155515
  case 5:
155498
- _context9.next = 7;
155516
+ _context14.next = 7;
155499
155517
  return AppsInTossModule.getCurrentLocation(options);
155500
155518
  case 7:
155501
- position = _context9.sent;
155502
- return _context9.abrupt("return", position);
155519
+ position = _context14.sent;
155520
+ return _context14.abrupt("return", position);
155503
155521
  case 9:
155504
155522
  case "end":
155505
- return _context9.stop();
155523
+ return _context14.stop();
155506
155524
  }
155507
- }, _callee9);
155525
+ }, _callee14);
155508
155526
  }));
155509
155527
  return _getCurrentLocation2.apply(this, arguments);
155510
155528
  }
@@ -155512,37 +155530,37 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155512
155530
  return _openCamera2.apply(this, arguments);
155513
155531
  }
155514
155532
  function _openCamera2() {
155515
- _openCamera2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee10(options) {
155533
+ _openCamera2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee15(options) {
155516
155534
  var permissionStatus, photo;
155517
- return _regeneratorRuntime().wrap(function _callee10$(_context10) {
155518
- while (1) switch (_context10.prev = _context10.next) {
155535
+ return _regeneratorRuntime().wrap(function _callee15$(_context15) {
155536
+ while (1) switch (_context15.prev = _context15.next) {
155519
155537
  case 0:
155520
- _context10.next = 2;
155538
+ _context15.next = 2;
155521
155539
  return requestPermission({
155522
155540
  name: "camera",
155523
155541
  access: "access"
155524
155542
  });
155525
155543
  case 2:
155526
- permissionStatus = _context10.sent;
155544
+ permissionStatus = _context15.sent;
155527
155545
  if (!(permissionStatus === "denied")) {
155528
- _context10.next = 5;
155546
+ _context15.next = 5;
155529
155547
  break;
155530
155548
  }
155531
155549
  throw new Error("\uCE74\uBA54\uB77C \uAD8C\uD55C\uC774 \uAC70\uBD80\uB418\uC5C8\uC5B4\uC694.");
155532
155550
  case 5:
155533
- _context10.next = 7;
155551
+ _context15.next = 7;
155534
155552
  return AppsInTossModule.openCamera(_objectSpread({
155535
155553
  base64: false,
155536
155554
  maxWidth: 1024
155537
155555
  }, options));
155538
155556
  case 7:
155539
- photo = _context10.sent;
155540
- return _context10.abrupt("return", photo);
155557
+ photo = _context15.sent;
155558
+ return _context15.abrupt("return", photo);
155541
155559
  case 9:
155542
155560
  case "end":
155543
- return _context10.stop();
155561
+ return _context15.stop();
155544
155562
  }
155545
- }, _callee10);
155563
+ }, _callee15);
155546
155564
  }));
155547
155565
  return _openCamera2.apply(this, arguments);
155548
155566
  }
@@ -155550,16 +155568,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155550
155568
  return _appLogin2.apply(this, arguments);
155551
155569
  }
155552
155570
  function _appLogin2() {
155553
- _appLogin2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee11() {
155554
- return _regeneratorRuntime().wrap(function _callee11$(_context11) {
155555
- 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) {
155556
155574
  case 0:
155557
- return _context11.abrupt("return", AppsInTossModule.appLogin({}));
155575
+ return _context16.abrupt("return", AppsInTossModule.appLogin({}));
155558
155576
  case 1:
155559
155577
  case "end":
155560
- return _context11.stop();
155578
+ return _context16.stop();
155561
155579
  }
155562
- }, _callee11);
155580
+ }, _callee16);
155563
155581
  }));
155564
155582
  return _appLogin2.apply(this, arguments);
155565
155583
  }
@@ -155567,18 +155585,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155567
155585
  return _checkoutPayment2.apply(this, arguments);
155568
155586
  }
155569
155587
  function _checkoutPayment2() {
155570
- _checkoutPayment2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee12(options) {
155571
- return _regeneratorRuntime().wrap(function _callee12$(_context12) {
155572
- 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) {
155573
155591
  case 0:
155574
- return _context12.abrupt("return", AppsInTossModule.checkoutPayment({
155592
+ return _context17.abrupt("return", AppsInTossModule.checkoutPayment({
155575
155593
  params: options
155576
155594
  }));
155577
155595
  case 1:
155578
155596
  case "end":
155579
- return _context12.stop();
155597
+ return _context17.stop();
155580
155598
  }
155581
- }, _callee12);
155599
+ }, _callee17);
155582
155600
  }));
155583
155601
  return _checkoutPayment2.apply(this, arguments);
155584
155602
  }
@@ -155598,13 +155616,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155598
155616
  return _eventLog2.apply(this, arguments);
155599
155617
  }
155600
155618
  function _eventLog2() {
155601
- _eventLog2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee13(params) {
155619
+ _eventLog2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee18(params) {
155602
155620
  var isSupported;
155603
- return _regeneratorRuntime().wrap(function _callee13$(_context13) {
155604
- while (1) switch (_context13.prev = _context13.next) {
155621
+ return _regeneratorRuntime().wrap(function _callee18$(_context18) {
155622
+ while (1) switch (_context18.prev = _context18.next) {
155605
155623
  case 0:
155606
155624
  if (!(AppsInTossModule.operationalEnvironment === "sandbox")) {
155607
- _context13.next = 3;
155625
+ _context18.next = 3;
155608
155626
  break;
155609
155627
  }
155610
155628
  console.log("[eventLogDebug]", {
@@ -155612,28 +155630,28 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155612
155630
  log_type: params.log_type,
155613
155631
  params: normalizeParams(params.params)
155614
155632
  });
155615
- return _context13.abrupt("return");
155633
+ return _context18.abrupt("return");
155616
155634
  case 3:
155617
155635
  isSupported = _isMinVersionSupported({
155618
155636
  android: "5.208.0",
155619
155637
  ios: "5.208.0"
155620
155638
  });
155621
155639
  if (isSupported) {
155622
- _context13.next = 6;
155640
+ _context18.next = 6;
155623
155641
  break;
155624
155642
  }
155625
- return _context13.abrupt("return");
155643
+ return _context18.abrupt("return");
155626
155644
  case 6:
155627
- return _context13.abrupt("return", AppsInTossModule.eventLog({
155645
+ return _context18.abrupt("return", AppsInTossModule.eventLog({
155628
155646
  log_name: params.log_name,
155629
155647
  log_type: params.log_type,
155630
155648
  params: normalizeParams(params.params)
155631
155649
  }));
155632
155650
  case 7:
155633
155651
  case "end":
155634
- return _context13.stop();
155652
+ return _context18.stop();
155635
155653
  }
155636
- }, _callee13);
155654
+ }, _callee18);
155637
155655
  }));
155638
155656
  return _eventLog2.apply(this, arguments);
155639
155657
  }
@@ -155641,25 +155659,25 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155641
155659
  return _getTossShareLink2.apply(this, arguments);
155642
155660
  }
155643
155661
  function _getTossShareLink2() {
155644
- _getTossShareLink2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee14(path) {
155662
+ _getTossShareLink2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee19(path) {
155645
155663
  var _yield$AppsInTossModu, shareLink, shareUrl;
155646
- return _regeneratorRuntime().wrap(function _callee14$(_context14) {
155647
- while (1) switch (_context14.prev = _context14.next) {
155664
+ return _regeneratorRuntime().wrap(function _callee19$(_context19) {
155665
+ while (1) switch (_context19.prev = _context19.next) {
155648
155666
  case 0:
155649
- _context14.next = 2;
155667
+ _context19.next = 2;
155650
155668
  return AppsInTossModule.getTossShareLink({});
155651
155669
  case 2:
155652
- _yield$AppsInTossModu = _context14.sent;
155670
+ _yield$AppsInTossModu = _context19.sent;
155653
155671
  shareLink = _yield$AppsInTossModu.shareLink;
155654
155672
  shareUrl = new URL(shareLink);
155655
155673
  shareUrl.searchParams.set("deep_link_value", path);
155656
155674
  shareUrl.searchParams.set("af_dp", path);
155657
- return _context14.abrupt("return", shareUrl.toString());
155675
+ return _context19.abrupt("return", shareUrl.toString());
155658
155676
  case 8:
155659
155677
  case "end":
155660
- return _context14.stop();
155678
+ return _context19.stop();
155661
155679
  }
155662
- }, _callee14);
155680
+ }, _callee19);
155663
155681
  }));
155664
155682
  return _getTossShareLink2.apply(this, arguments);
155665
155683
  }
@@ -155667,27 +155685,27 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155667
155685
  return _setDeviceOrientation2.apply(this, arguments);
155668
155686
  }
155669
155687
  function _setDeviceOrientation2() {
155670
- _setDeviceOrientation2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee15(options) {
155688
+ _setDeviceOrientation2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee20(options) {
155671
155689
  var isSupported;
155672
- return _regeneratorRuntime().wrap(function _callee15$(_context15) {
155673
- while (1) switch (_context15.prev = _context15.next) {
155690
+ return _regeneratorRuntime().wrap(function _callee20$(_context20) {
155691
+ while (1) switch (_context20.prev = _context20.next) {
155674
155692
  case 0:
155675
155693
  isSupported = _isMinVersionSupported({
155676
155694
  android: "5.215.0",
155677
155695
  ios: "5.215.0"
155678
155696
  });
155679
155697
  if (isSupported) {
155680
- _context15.next = 3;
155698
+ _context20.next = 3;
155681
155699
  break;
155682
155700
  }
155683
- return _context15.abrupt("return");
155701
+ return _context20.abrupt("return");
155684
155702
  case 3:
155685
- return _context15.abrupt("return", AppsInTossModule.setDeviceOrientation(options));
155703
+ return _context20.abrupt("return", AppsInTossModule.setDeviceOrientation(options));
155686
155704
  case 4:
155687
155705
  case "end":
155688
- return _context15.stop();
155706
+ return _context20.stop();
155689
155707
  }
155690
- }, _callee15);
155708
+ }, _callee20);
155691
155709
  }));
155692
155710
  return _setDeviceOrientation2.apply(this, arguments);
155693
155711
  }
@@ -155695,32 +155713,115 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155695
155713
  return _saveBase64Data2.apply(this, arguments);
155696
155714
  }
155697
155715
  function _saveBase64Data2() {
155698
- _saveBase64Data2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee16(params) {
155716
+ _saveBase64Data2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee21(params) {
155699
155717
  var isSupported;
155700
- return _regeneratorRuntime().wrap(function _callee16$(_context16) {
155701
- while (1) switch (_context16.prev = _context16.next) {
155718
+ return _regeneratorRuntime().wrap(function _callee21$(_context21) {
155719
+ while (1) switch (_context21.prev = _context21.next) {
155702
155720
  case 0:
155703
155721
  isSupported = _isMinVersionSupported({
155704
155722
  android: "5.218.0",
155705
155723
  ios: "5.216.0"
155706
155724
  });
155707
155725
  if (isSupported) {
155708
- _context16.next = 4;
155726
+ _context21.next = 4;
155709
155727
  break;
155710
155728
  }
155711
155729
  console.warn("saveBase64Data is not supported in this app version");
155712
- return _context16.abrupt("return");
155730
+ return _context21.abrupt("return");
155713
155731
  case 4:
155714
- _context16.next = 6;
155732
+ _context21.next = 6;
155715
155733
  return AppsInTossModule.saveBase64Data(params);
155716
155734
  case 6:
155717
155735
  case "end":
155718
- return _context16.stop();
155736
+ return _context21.stop();
155719
155737
  }
155720
- }, _callee16);
155738
+ }, _callee21);
155721
155739
  }));
155722
155740
  return _saveBase64Data2.apply(this, arguments);
155723
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
+ }
155724
155825
  var import_jsx_runtime = _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime");
155725
155826
  function AppsInTossContainer(Container, _ref7) {
155726
155827
  var children = _ref7.children,
@@ -155758,7 +155859,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155758
155859
  },
155759
155860
  debug: (_analytics$debug = analytics === null || analytics === void 0 ? void 0 : analytics.debug) !== null && _analytics$debug !== void 0 ? _analytics$debug : __DEV__
155760
155861
  });
155761
- return import_react_native_bedrock8.Bedrock.registerApp(AppsInTossContainer.bind(null, container), {
155862
+ return import_react_native_bedrock9.Bedrock.registerApp(AppsInTossContainer.bind(null, container), {
155762
155863
  appName: getAppName(),
155763
155864
  context: context,
155764
155865
  router: {
@@ -155932,62 +156033,37 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155932
156033
  loadAdMobRewardedAd.isSupported = createIsSupported();
155933
156034
  showAdMobInterstitialAd.isSupported = createIsSupported();
155934
156035
  showAdMobRewardedAd.isSupported = createIsSupported();
155935
- function _getTossAppVersion() {
155936
- return AppsInTossModule.tossAppVersion;
155937
- }
155938
156036
  function _getDeviceId() {
155939
156037
  return AppsInTossModule.deviceId;
155940
156038
  }
155941
- function getItem(key) {
155942
- return AppsInTossModule.getStorageItem({
155943
- key: key
155944
- });
155945
- }
155946
- function setItem(key, value) {
155947
- return AppsInTossModule.setStorageItem({
155948
- key: key,
155949
- value: value
155950
- });
155951
- }
155952
- function removeItem(key) {
155953
- return AppsInTossModule.removeStorageItem({
155954
- key: key
155955
- });
155956
- }
155957
- function clearItems() {
155958
- return AppsInTossModule.clearStorage({});
156039
+ function _getTossAppVersion() {
156040
+ return AppsInTossModule.tossAppVersion;
155959
156041
  }
155960
- var _Storage = {
155961
- getItem: getItem,
155962
- setItem: setItem,
155963
- removeItem: removeItem,
155964
- clearItems: clearItems
155965
- };
155966
- function createOneTimePurchaseOrder(_x12) {
156042
+ function createOneTimePurchaseOrder(_x13) {
155967
156043
  return _createOneTimePurchaseOrder.apply(this, arguments);
155968
156044
  }
155969
156045
  function _createOneTimePurchaseOrder() {
155970
- _createOneTimePurchaseOrder = _asyncToGenerator(_regeneratorRuntime().mark(function _callee17(params) {
156046
+ _createOneTimePurchaseOrder = _asyncToGenerator(_regeneratorRuntime().mark(function _callee25(params) {
155971
156047
  var isSupported;
155972
- return _regeneratorRuntime().wrap(function _callee17$(_context17) {
155973
- while (1) switch (_context17.prev = _context17.next) {
156048
+ return _regeneratorRuntime().wrap(function _callee25$(_context25) {
156049
+ while (1) switch (_context25.prev = _context25.next) {
155974
156050
  case 0:
155975
156051
  isSupported = _isMinVersionSupported({
155976
156052
  android: "5.219.0",
155977
156053
  ios: "5.219.0"
155978
156054
  });
155979
156055
  if (isSupported) {
155980
- _context17.next = 3;
156056
+ _context25.next = 3;
155981
156057
  break;
155982
156058
  }
155983
- return _context17.abrupt("return");
156059
+ return _context25.abrupt("return");
155984
156060
  case 3:
155985
- return _context17.abrupt("return", AppsInTossModule.iapCreateOneTimePurchaseOrder(params));
156061
+ return _context25.abrupt("return", AppsInTossModule.iapCreateOneTimePurchaseOrder(params));
155986
156062
  case 4:
155987
156063
  case "end":
155988
- return _context17.stop();
156064
+ return _context25.stop();
155989
156065
  }
155990
- }, _callee17);
156066
+ }, _callee25);
155991
156067
  }));
155992
156068
  return _createOneTimePurchaseOrder.apply(this, arguments);
155993
156069
  }
@@ -155995,27 +156071,27 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155995
156071
  return _getProductItemList.apply(this, arguments);
155996
156072
  }
155997
156073
  function _getProductItemList() {
155998
- _getProductItemList = _asyncToGenerator(_regeneratorRuntime().mark(function _callee18() {
156074
+ _getProductItemList = _asyncToGenerator(_regeneratorRuntime().mark(function _callee26() {
155999
156075
  var isSupported;
156000
- return _regeneratorRuntime().wrap(function _callee18$(_context18) {
156001
- while (1) switch (_context18.prev = _context18.next) {
156076
+ return _regeneratorRuntime().wrap(function _callee26$(_context26) {
156077
+ while (1) switch (_context26.prev = _context26.next) {
156002
156078
  case 0:
156003
156079
  isSupported = _isMinVersionSupported({
156004
156080
  android: "5.219.0",
156005
156081
  ios: "5.219.0"
156006
156082
  });
156007
156083
  if (isSupported) {
156008
- _context18.next = 3;
156084
+ _context26.next = 3;
156009
156085
  break;
156010
156086
  }
156011
- return _context18.abrupt("return");
156087
+ return _context26.abrupt("return");
156012
156088
  case 3:
156013
- return _context18.abrupt("return", AppsInTossModule.iapGetProductItemList({}));
156089
+ return _context26.abrupt("return", AppsInTossModule.iapGetProductItemList({}));
156014
156090
  case 4:
156015
156091
  case "end":
156016
- return _context18.stop();
156092
+ return _context26.stop();
156017
156093
  }
156018
- }, _callee18);
156094
+ }, _callee26);
156019
156095
  }));
156020
156096
  return _getProductItemList.apply(this, arguments);
156021
156097
  }
@@ -156023,6 +156099,31 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156023
156099
  createOneTimePurchaseOrder: createOneTimePurchaseOrder,
156024
156100
  getProductItemList: getProductItemList
156025
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
+ };
156026
156127
  var _TossPay = {
156027
156128
  checkoutPayment: _checkoutPayment
156028
156129
  };
@@ -156032,56 +156133,471 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156032
156133
  loadAdMobRewardedAd: loadAdMobRewardedAd,
156033
156134
  showAdMobRewardedAd: showAdMobRewardedAd
156034
156135
  };
156035
- var import_react_native15 = _$$_REQUIRE(_dependencyMap[1], "@toss-design-system/react-native");
156036
- var import_private = _$$_REQUIRE(_dependencyMap[6], "@toss-design-system/react-native/private");
156037
- var import_react7 = _$$_REQUIRE(_dependencyMap[3], "react");
156038
- var import_react_native16 = _$$_REQUIRE(_dependencyMap[4], "react-native");
156039
- var import_react_native_bedrock13 = _$$_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");
156040
156141
  var bedrockAsyncBridges = __toESM(_$$_REQUIRE(_dependencyMap[7], "react-native-bedrock/async-bridges"), 1);
156041
156142
  var bedrockConstantBridges = __toESM(_$$_REQUIRE(_dependencyMap[8], "react-native-bedrock/constant-bridges"), 1);
156042
156143
  var import_react_native_webview = _$$_REQUIRE(_dependencyMap[9], "@react-native-bedrock/native/react-native-webview");
156043
- var import_react_native12 = _$$_REQUIRE(_dependencyMap[1], "@toss-design-system/react-native");
156044
- var import_es_hangul = _$$_REQUIRE(_dependencyMap[10], "es-hangul");
156045
- var import_react4 = _$$_REQUIRE(_dependencyMap[3], "react");
156046
- var import_react_native13 = _$$_REQUIRE(_dependencyMap[4], "react-native");
156047
- var import_react_native_bedrock9 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
156048
- 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");
156049
156149
  var import_react_native10 = _$$_REQUIRE(_dependencyMap[1], "@toss-design-system/react-native");
156150
+ var import_react5 = _$$_REQUIRE(_dependencyMap[3], "react");
156050
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
+ };
156051
156203
  var import_react_native8 = _$$_REQUIRE(_dependencyMap[4], "react-native");
156052
- var import_react_native7 = _$$_REQUIRE(_dependencyMap[4], "react-native");
156053
- 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) {
156054
156570
  var _props$import_react_n;
156055
- var props = _extends({}, (_objectDestructuringEmpty(_ref10), _ref10));
156056
- 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)();
156057
156573
  }
156058
156574
  var RIGHT_MARGIN = 24;
156059
156575
  var IOS_DEFAULT_MARGIN = 20;
156060
- var import_jsx_runtime2 = _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime");
156576
+ var import_jsx_runtime4 = _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime");
156061
156577
  function IOSHeaderRight(props) {
156062
- return (0, import_jsx_runtime2.jsx)(import_react_native8.View, _objectSpread({
156578
+ return (0, import_jsx_runtime4.jsx)(import_react_native13.View, _objectSpread({
156063
156579
  style: styles.ios
156064
156580
  }, props));
156065
156581
  }
156066
156582
  function AndroidHeaderRight(props) {
156067
- return (0, import_jsx_runtime2.jsx)(import_react_native8.View, _objectSpread({
156583
+ return (0, import_jsx_runtime4.jsx)(import_react_native13.View, _objectSpread({
156068
156584
  style: styles.android
156069
156585
  }, props));
156070
156586
  }
156071
156587
  function HeaderRight(props) {
156072
156588
  return byPlatform({
156073
156589
  ios: function ios() {
156074
- return (0, import_jsx_runtime2.jsx)(IOSHeaderRight, _objectSpread({}, props));
156590
+ return (0, import_jsx_runtime4.jsx)(IOSHeaderRight, _objectSpread({}, props));
156075
156591
  },
156076
156592
  android: function android() {
156077
- return (0, import_jsx_runtime2.jsx)(AndroidHeaderRight, _objectSpread({}, props));
156593
+ return (0, import_jsx_runtime4.jsx)(AndroidHeaderRight, _objectSpread({}, props));
156078
156594
  },
156079
156595
  fallback: function fallback() {
156080
- return (0, import_jsx_runtime2.jsx)(IOSHeaderRight, _objectSpread({}, props));
156596
+ return (0, import_jsx_runtime4.jsx)(IOSHeaderRight, _objectSpread({}, props));
156081
156597
  }
156082
156598
  });
156083
156599
  }
156084
- var styles = import_react_native8.StyleSheet.create({
156600
+ var styles = import_react_native13.StyleSheet.create({
156085
156601
  ios: {
156086
156602
  marginRight: -IOS_DEFAULT_MARGIN + RIGHT_MARGIN,
156087
156603
  flexDirection: "row"
@@ -156091,38 +156607,38 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156091
156607
  }
156092
156608
  });
156093
156609
  var import_react_native_safe_area_context = _$$_REQUIRE(_dependencyMap[12], "@react-native-bedrock/native/react-native-safe-area-context");
156094
- var import_react_native9 = _$$_REQUIRE(_dependencyMap[4], "react-native");
156610
+ var import_react_native14 = _$$_REQUIRE(_dependencyMap[4], "react-native");
156095
156611
  function useSafeAreaTop() {
156096
156612
  var safeAreaInsets = (0, import_react_native_safe_area_context.useSafeAreaInsets)();
156097
- var hasDynamicIsland = import_react_native9.Platform.OS === "ios" && safeAreaInsets.top > 50;
156613
+ var hasDynamicIsland = import_react_native14.Platform.OS === "ios" && safeAreaInsets.top > 50;
156098
156614
  var safeAreaTop = hasDynamicIsland ? safeAreaInsets.top - 5 : safeAreaInsets.top;
156099
156615
  return safeAreaTop;
156100
156616
  }
156101
- var import_jsx_runtime3 = _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime");
156617
+ var import_jsx_runtime5 = _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime");
156102
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>';
156103
- function GameNavigationBar(_ref11) {
156104
- var onClose = _ref11.onClose;
156619
+ function GameNavigationBar(_ref29) {
156620
+ var onClose = _ref29.onClose;
156105
156621
  var safeAreaTop = useSafeAreaTop();
156106
- return (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, {
156107
- 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, {
156108
156624
  preference: {
156109
156625
  type: "none"
156110
156626
  }
156111
- }), (0, import_jsx_runtime3.jsx)(import_react_native11.View, {
156627
+ }), (0, import_jsx_runtime5.jsx)(import_react_native16.View, {
156112
156628
  style: {
156113
156629
  width: "100%",
156114
- height: import_react_native11.Platform.OS === "ios" ? 44 : 54,
156630
+ height: import_react_native16.Platform.OS === "ios" ? 44 : 54,
156115
156631
  flexDirection: "row",
156116
156632
  alignItems: "center",
156117
156633
  justifyContent: "flex-end",
156118
156634
  position: "absolute",
156119
- zIndex: 9999,
156635
+ zIndex: Z_INDEX.CLOSE_BUTTON,
156120
156636
  marginTop: safeAreaTop,
156121
- paddingRight: import_react_native11.Platform.OS === "ios" ? 10 : 8
156637
+ paddingRight: import_react_native16.Platform.OS === "ios" ? 10 : 8
156122
156638
  },
156123
156639
  pointerEvents: "box-none",
156124
- children: (0, import_jsx_runtime3.jsx)(HeaderRight, {
156125
- 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, {
156126
156642
  hitSlop: {
156127
156643
  left: 8,
156128
156644
  right: 8
@@ -156131,10 +156647,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156131
156647
  accessible: true,
156132
156648
  accessibilityLabel: "\uAC8C\uC784\uC885\uB8CC",
156133
156649
  style: {
156134
- padding: import_react_native11.Platform.OS === "ios" ? 7 : 9
156650
+ padding: import_react_native16.Platform.OS === "ios" ? 7 : 9
156135
156651
  },
156136
156652
  onPress: onClose,
156137
- children: (0, import_jsx_runtime3.jsx)(import_react_native_svg.SvgXml, {
156653
+ children: (0, import_jsx_runtime5.jsx)(import_react_native_svg.SvgXml, {
156138
156654
  xml: originXML,
156139
156655
  width: 30,
156140
156656
  height: 30
@@ -156144,72 +156660,83 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156144
156660
  })]
156145
156661
  });
156146
156662
  }
156147
- var import_jsx_runtime4 = _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime");
156148
- var GameWebView = (0, import_react4.forwardRef)(function GameWebView2(props, ref) {
156149
- var _ref12 = (0, import_react_native12.useDialog)(),
156150
- 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;
156151
156667
  var _getAppsInTossGlobals = getAppsInTossGlobals(),
156152
156668
  brandDisplayName = _getAppsInTossGlobals.brandDisplayName;
156153
- 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() {
156154
156674
  var isConfirmed;
156155
- return _regeneratorRuntime().wrap(function _callee$(_context) {
156156
- while (1) switch (_context.prev = _context.next) {
156675
+ return _regeneratorRuntime().wrap(function _callee6$(_context6) {
156676
+ while (1) switch (_context6.prev = _context6.next) {
156157
156677
  case 0:
156158
- _context.next = 2;
156678
+ _context6.next = 2;
156159
156679
  return openConfirm({
156160
- 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?"),
156161
156681
  leftButton: "\uCDE8\uC18C",
156162
156682
  rightButton: "\uC885\uB8CC\uD558\uAE30",
156163
156683
  closeOnDimmerClick: true
156164
156684
  });
156165
156685
  case 2:
156166
- isConfirmed = _context.sent;
156686
+ isConfirmed = _context6.sent;
156167
156687
  if (isConfirmed) {
156168
- (0, import_react_native_bedrock9.closeView)();
156688
+ (0, import_react_native_bedrock12.closeView)();
156169
156689
  }
156170
156690
  case 4:
156171
156691
  case "end":
156172
- return _context.stop();
156692
+ return _context6.stop();
156173
156693
  }
156174
- }, _callee);
156694
+ }, _callee6);
156175
156695
  })), [brandDisplayName, openConfirm]);
156176
- (0, import_react4.useEffect)(function () {
156177
- if (import_react_native13.Platform.OS === "ios") {
156178
- (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)({
156179
156699
  isEnabled: false
156180
156700
  });
156181
156701
  return function () {
156182
- (0, import_react_native_bedrock9.setIosSwipeGestureEnabled)({
156702
+ (0, import_react_native_bedrock12.setIosSwipeGestureEnabled)({
156183
156703
  isEnabled: true
156184
156704
  });
156185
156705
  };
156186
156706
  }
156187
156707
  return;
156188
156708
  }, []);
156189
- (0, import_react4.useEffect)(function () {
156709
+ (0, import_react6.useEffect)(function () {
156190
156710
  var backHandler = function backHandler() {
156191
156711
  handleClose();
156192
156712
  return true;
156193
156713
  };
156194
- import_react_native13.BackHandler.addEventListener("hardwareBackPress", backHandler);
156714
+ import_react_native18.BackHandler.addEventListener("hardwareBackPress", backHandler);
156195
156715
  return function () {
156196
- import_react_native13.BackHandler.removeEventListener("hardwareBackPress", backHandler);
156716
+ import_react_native18.BackHandler.removeEventListener("hardwareBackPress", backHandler);
156197
156717
  };
156198
156718
  }, [handleClose]);
156199
- return (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, {
156200
- 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, {
156201
156728
  onClose: handleClose
156202
- }), (0, import_jsx_runtime4.jsx)(import_react_native13.View, {
156203
- style: {
156204
- flex: 1
156205
- },
156206
- 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({
156207
156732
  ref: ref
156208
156733
  }, props))
156209
- })]
156734
+ }) : (0, import_jsx_runtime6.jsx)(import_react_native_webview.WebView, _objectSpread({
156735
+ ref: ref
156736
+ }, props))]
156210
156737
  });
156211
156738
  });
156212
- var import_react5 = _$$_REQUIRE(_dependencyMap[3], "react");
156739
+ var import_react7 = _$$_REQUIRE(_dependencyMap[3], "react");
156213
156740
  function serializeError(error) {
156214
156741
  return JSON.stringify(error, function (_, value) {
156215
156742
  if (value instanceof Error) {
@@ -156223,37 +156750,37 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156223
156750
  return value;
156224
156751
  });
156225
156752
  }
156226
- function methodHandler(_ref14) {
156227
- var args = _ref14.args,
156228
- eventId = _ref14.eventId,
156229
- functionName = _ref14.functionName,
156230
- handlerMap = _ref14.handlerMap,
156231
- 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;
156232
156759
  var func = handlerMap[functionName];
156233
156760
  if (!func) {
156234
156761
  console.error("".concat(functionName, " is not a function"));
156235
156762
  return;
156236
156763
  }
156237
156764
  var wrappedFunc = function () {
156238
- var _ref15 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee2() {
156765
+ var _ref35 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee7() {
156239
156766
  var result,
156240
- _args2 = arguments;
156241
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
156242
- 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) {
156243
156770
  case 0:
156244
- _context2.next = 2;
156245
- return func.apply(void 0, _args2);
156771
+ _context7.next = 2;
156772
+ return func.apply(void 0, _args7);
156246
156773
  case 2:
156247
- result = _context2.sent;
156248
- return _context2.abrupt("return", result);
156774
+ result = _context7.sent;
156775
+ return _context7.abrupt("return", result);
156249
156776
  case 4:
156250
156777
  case "end":
156251
- return _context2.stop();
156778
+ return _context7.stop();
156252
156779
  }
156253
- }, _callee2);
156780
+ }, _callee7);
156254
156781
  }));
156255
156782
  return function wrappedFunc() {
156256
- return _ref15.apply(this, arguments);
156783
+ return _ref35.apply(this, arguments);
156257
156784
  };
156258
156785
  }();
156259
156786
  wrappedFunc.apply(void 0, _toConsumableArray(args)).then(function (result) {
@@ -156264,18 +156791,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156264
156791
  });
156265
156792
  }
156266
156793
  var globalEventListenerMap = new Map();
156267
- function useBridgeHandler(_ref16) {
156268
- var onMessage = _ref16.onMessage,
156269
- constantHandlerMap = _ref16.constantHandlerMap,
156270
- asyncHandlerMap = _ref16.asyncHandlerMap,
156271
- eventListenerMap = _ref16.eventListenerMap,
156272
- originalInjectedJavaScript = _ref16.injectedJavaScript;
156273
- var ref = (0, import_react5.useRef)(null);
156274
- var injectedJavaScript = (0, import_react5.useMemo)(function () {
156275
- return ["window.__CONSTANT_HANDLER_MAP = ".concat(JSON.stringify(Object.entries(constantHandlerMap).reduce(function (acc, _ref17) {
156276
- var _ref18 = _slicedToArray(_ref17, 2),
156277
- key = _ref18[0],
156278
- 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];
156279
156806
  acc[key] = typeof value === "function" ? value() : value;
156280
156807
  return acc;
156281
156808
  }, {}))), originalInjectedJavaScript, "true"].join("\n");
@@ -156292,22 +156819,22 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156292
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 "));
156293
156820
  };
156294
156821
  };
156295
- var $onMessage = (0, import_react5.useCallback)(function () {
156296
- 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) {
156297
156824
  var data, _eventListenerMap$dat, handleOnEvent, handleOnError, remove, key, _remove, _ref$current3;
156298
- return _regeneratorRuntime().wrap(function _callee3$(_context3) {
156299
- while (1) switch (_context3.prev = _context3.next) {
156825
+ return _regeneratorRuntime().wrap(function _callee8$(_context8) {
156826
+ while (1) switch (_context8.prev = _context8.next) {
156300
156827
  case 0:
156301
156828
  onMessage === null || onMessage === void 0 || onMessage(e);
156302
156829
  data = JSON.parse(e.nativeEvent.data);
156303
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))) {
156304
- _context3.next = 4;
156831
+ _context8.next = 4;
156305
156832
  break;
156306
156833
  }
156307
- return _context3.abrupt("return");
156834
+ return _context8.abrupt("return");
156308
156835
  case 4:
156309
- _context3.t0 = data.type;
156310
- _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;
156311
156838
  break;
156312
156839
  case 7:
156313
156840
  handleOnEvent = createHandleOnEvent(data.functionName, data.eventId);
@@ -156320,13 +156847,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156320
156847
  if (remove) {
156321
156848
  globalEventListenerMap.set("".concat(data.functionName, "/").concat(data.eventId), remove);
156322
156849
  }
156323
- return _context3.abrupt("break", 19);
156850
+ return _context8.abrupt("break", 19);
156324
156851
  case 12:
156325
156852
  key = "".concat(data.functionName, "/").concat(data.eventId);
156326
156853
  _remove = globalEventListenerMap.get(key);
156327
156854
  _remove === null || _remove === void 0 || _remove();
156328
156855
  globalEventListenerMap.delete(key);
156329
- return _context3.abrupt("break", 19);
156856
+ return _context8.abrupt("break", 19);
156330
156857
  case 17:
156331
156858
  methodHandler({
156332
156859
  args: data.args,
@@ -156335,15 +156862,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156335
156862
  handlerMap: asyncHandlerMap,
156336
156863
  injectJavaScript: (_ref$current3 = ref.current) === null || _ref$current3 === void 0 ? void 0 : _ref$current3.injectJavaScript
156337
156864
  });
156338
- return _context3.abrupt("break", 19);
156865
+ return _context8.abrupt("break", 19);
156339
156866
  case 19:
156340
156867
  case "end":
156341
- return _context3.stop();
156868
+ return _context8.stop();
156342
156869
  }
156343
- }, _callee3);
156870
+ }, _callee8);
156344
156871
  }));
156345
- return function (_x13) {
156346
- return _ref19.apply(this, arguments);
156872
+ return function (_x15) {
156873
+ return _ref39.apply(this, arguments);
156347
156874
  };
156348
156875
  }(), [onMessage]);
156349
156876
  return {
@@ -156370,35 +156897,191 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156370
156897
  return _startUpdateLocation;
156371
156898
  }
156372
156899
  });
156373
- var import_react_native14 = _$$_REQUIRE(_dependencyMap[4], "react-native");
156374
- var import_react_native_bedrock10 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
156375
- function _useCreateUserAgent(_ref20) {
156376
- var batteryModePreference = _ref20.batteryModePreference,
156377
- colorPreference = _ref20.colorPreference,
156378
- fontA11y = _ref20.fontA11y,
156379
- locale = _ref20.locale,
156380
- navbarPreference = _ref20.navbarPreference,
156381
- pureSafeArea = _ref20.pureSafeArea,
156382
- safeArea = _ref20.safeArea,
156383
- safeAreaBottomTransparency = _ref20.safeAreaBottomTransparency;
156384
- var platform = (0, import_react_native_bedrock10.getPlatformOS)();
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)();
156385
157065
  var appVersion = _getTossAppVersion();
156386
- var fontScale = (0, import_react_native14.useWindowDimensions)().fontScale;
157066
+ var _ref41 = (0, import_react_native19.useWindowDimensions)(),
157067
+ fontScale = _ref41.fontScale;
156387
157068
  var platformString = platform === "ios" ? "iPhone" : "Android";
156388
- return ["TossApp/".concat(appVersion), batteryModePreference && "TossBatteryModePreference/".concat(batteryModePreference), colorPreference && "TossColorPreference/".concat(colorPreference), fontA11y && "TossFontAccessibility/".concat(fontA11y), fontScale && "TossFontScale/".concat(fontScale), locale && "TossLocale/".concat(locale), navbarPreference && "TossNavbarPreference/".concat(navbarPreference), pureSafeArea && "TossPureSafeArea/".concat(pureSafeArea), safeArea && "TossSafeArea/".concat(safeArea), safeAreaBottomTransparency && "TossSafeAreaBottomTransparency/".concat(safeAreaBottomTransparency), platformString].filter(Boolean).join(" ");
156389
- }
156390
- var import_react6 = _$$_REQUIRE(_dependencyMap[3], "react");
156391
- var import_react_native_bedrock11 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
156392
- function _useGeolocation(_ref21) {
156393
- var accuracy = _ref21.accuracy,
156394
- distanceInterval = _ref21.distanceInterval,
156395
- timeInterval = _ref21.timeInterval;
156396
- var isVisible = (0, import_react_native_bedrock11.useVisibility)();
156397
- var _ref22 = (0, import_react6.useState)(null),
156398
- _ref23 = _slicedToArray(_ref22, 2),
156399
- location = _ref23[0],
156400
- setLocation = _ref23[1];
156401
- (0, import_react6.useEffect)(function () {
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 () {
156402
157085
  if (!isVisible) {
156403
157086
  return;
156404
157087
  }
@@ -156414,7 +157097,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156414
157097
  }, [accuracy, distanceInterval, timeInterval, isVisible]);
156415
157098
  return location;
156416
157099
  }
156417
- var import_react_native_bedrock12 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
157100
+ var import_react_native_bedrock15 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
156418
157101
  var extractDateFromUUIDv7 = function extractDateFromUUIDv7(uuid) {
156419
157102
  var timestampHex = uuid.split("-").join("").slice(0, 12);
156420
157103
  var timestamp = Number.parseInt(timestampHex, 16);
@@ -156436,7 +157119,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156436
157119
  };
156437
157120
  var getReferrer = function getReferrer() {
156438
157121
  try {
156439
- var referrer = new URL((0, import_react_native_bedrock12.getSchemeUri)());
157122
+ var referrer = new URL((0, import_react_native_bedrock15.getSchemeUri)());
156440
157123
  return referrer.searchParams.get("referrer");
156441
157124
  } catch (_unused4) {
156442
157125
  return "";
@@ -156458,32 +157141,32 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156458
157141
  };
156459
157142
  return _eventLog(log);
156460
157143
  };
156461
- var import_jsx_runtime5 = _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime");
157144
+ var import_jsx_runtime7 = _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime");
156462
157145
  var appsInTossGlobals = getAppsInTossGlobals();
156463
157146
  var operationalEnvironment = _getOperationalEnvironment();
156464
157147
  var TYPES = ["partner", "external", "game"];
156465
157148
  var WEBVIEW_TYPES = {
156466
- partner: import_react_native15.PartnerWebViewScreen,
156467
- external: import_react_native15.ExternalWebViewScreen,
157149
+ partner: import_react_native20.PartnerWebViewScreen,
157150
+ external: import_react_native20.ExternalWebViewScreen,
156468
157151
  game: GameWebView
156469
157152
  };
156470
157153
  function mergeSchemeQueryParamsInto(url) {
156471
157154
  var baseUrl = new URL(url);
156472
- var schemeUrl = new URL((0, import_react_native_bedrock13.getSchemeUri)());
157155
+ var schemeUrl = new URL((0, import_react_native_bedrock16.getSchemeUri)());
156473
157156
  baseUrl.pathname = schemeUrl.pathname;
156474
- var _iterator2 = _createForOfIteratorHelper(schemeUrl.searchParams.entries()),
156475
- _step2;
157157
+ var _iterator5 = _createForOfIteratorHelper(schemeUrl.searchParams.entries()),
157158
+ _step5;
156476
157159
  try {
156477
- for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
156478
- var _step2$value = _slicedToArray(_step2.value, 2),
156479
- key = _step2$value[0],
156480
- 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];
156481
157164
  baseUrl.searchParams.set(key, value);
156482
157165
  }
156483
157166
  } catch (err) {
156484
- _iterator2.e(err);
157167
+ _iterator5.e(err);
156485
157168
  } finally {
156486
- _iterator2.f();
157169
+ _iterator5.f();
156487
157170
  }
156488
157171
  return baseUrl;
156489
157172
  }
@@ -156501,56 +157184,56 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156501
157184
  }
156502
157185
  return url.toString();
156503
157186
  }
156504
- function _WebView(_ref24) {
156505
- var type = _ref24.type,
156506
- local = _ref24.local,
156507
- onMessage = _ref24.onMessage,
156508
- props = _objectWithoutProperties(_ref24, _excluded3);
157187
+ function _WebView(_ref45) {
157188
+ var type = _ref45.type,
157189
+ local = _ref45.local,
157190
+ onMessage = _ref45.onMessage,
157191
+ props = _objectWithoutProperties(_ref45, _excluded3);
156509
157192
  if (!TYPES.includes(type)) {
156510
157193
  throw new Error("Invalid WebView type: '".concat(type, "'"));
156511
157194
  }
156512
- var bedrockEvent = (0, import_react_native_bedrock13.useBedrockEvent)();
156513
- var uri = (0, import_react7.useMemo)(function () {
157195
+ var bedrockEvent = (0, import_react_native_bedrock16.useBedrockEvent)();
157196
+ var uri = (0, import_react9.useMemo)(function () {
156514
157197
  return getWebViewUri(local);
156515
157198
  }, [local]);
156516
- var top = (0, import_private.useSafeAreaTop)();
156517
- var bottom = (0, import_private.useSafeAreaBottom)();
157199
+ var top = (0, import_private3.useSafeAreaTop)();
157200
+ var bottom = (0, import_private3.useSafeAreaBottom)();
156518
157201
  var global2 = getAppsInTossGlobals();
156519
157202
  var handler = useBridgeHandler({
156520
157203
  onMessage: onMessage,
156521
157204
  eventListenerMap: _objectSpread(_objectSpread({}, event_bridges_exports), {}, {
156522
- backEvent: function backEvent(_ref25) {
156523
- var onEvent = _ref25.onEvent,
156524
- onError = _ref25.onError,
156525
- options = _ref25.options;
157205
+ backEvent: function backEvent(_ref46) {
157206
+ var onEvent = _ref46.onEvent,
157207
+ onError = _ref46.onError,
157208
+ options = _ref46.options;
156526
157209
  return bedrockEvent.addEventListener("backEvent", {
156527
157210
  onEvent: onEvent,
156528
157211
  onError: onError,
156529
157212
  options: options
156530
157213
  });
156531
157214
  },
156532
- entryMessageExited: function entryMessageExited(_ref26) {
156533
- var onEvent = _ref26.onEvent,
156534
- onError = _ref26.onError;
157215
+ entryMessageExited: function entryMessageExited(_ref47) {
157216
+ var onEvent = _ref47.onEvent,
157217
+ onError = _ref47.onError;
156535
157218
  return _appsInTossEvent.addEventListener("entryMessageExited", {
156536
157219
  onEvent: onEvent,
156537
157220
  onError: onError
156538
157221
  });
156539
157222
  },
156540
- updateLocationEvent: function updateLocationEvent(_ref27) {
156541
- var onEvent = _ref27.onEvent,
156542
- onError = _ref27.onError,
156543
- options = _ref27.options;
157223
+ updateLocationEvent: function updateLocationEvent(_ref48) {
157224
+ var onEvent = _ref48.onEvent,
157225
+ onError = _ref48.onError,
157226
+ options = _ref48.options;
156544
157227
  return _appsInTossEvent.addEventListener("updateLocationEvent", {
156545
157228
  onEvent: onEvent,
156546
157229
  onError: onError,
156547
157230
  options: options
156548
157231
  });
156549
157232
  },
156550
- appBridgeCallbackEvent: function appBridgeCallbackEvent(_ref28) {
156551
- var onEvent = _ref28.onEvent,
156552
- onError = _ref28.onError,
156553
- options = _ref28.options;
157233
+ appBridgeCallbackEvent: function appBridgeCallbackEvent(_ref49) {
157234
+ var onEvent = _ref49.onEvent,
157235
+ onError = _ref49.onError,
157236
+ options = _ref49.options;
156554
157237
  return _appsInTossEvent.addEventListener("appBridgeCallbackEvent", {
156555
157238
  onEvent: onEvent,
156556
157239
  onError: onError,
@@ -156569,10 +157252,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156569
157252
  getSafeAreaBottom: function getSafeAreaBottom() {
156570
157253
  return bottom;
156571
157254
  }
156572
- }, Object.fromEntries(Object.entries(global2).map(function (_ref29) {
156573
- var _ref30 = _slicedToArray(_ref29, 2),
156574
- key = _ref30[0],
156575
- value = _ref30[1];
157255
+ }, Object.fromEntries(Object.entries(global2).map(function (_ref50) {
157256
+ var _ref51 = _slicedToArray(_ref50, 2),
157257
+ key = _ref51[0],
157258
+ value = _ref51[1];
156576
157259
  return [key, function () {
156577
157260
  return value;
156578
157261
  }];
@@ -156593,7 +157276,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156593
157276
  iapGetProductItemList: _IAP.getProductItemList
156594
157277
  })
156595
157278
  });
156596
- var baseProps = (0, import_react7.useMemo)(function () {
157279
+ var baseProps = (0, import_react9.useMemo)(function () {
156597
157280
  switch (type) {
156598
157281
  case "partner":
156599
157282
  {
@@ -156624,7 +157307,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156624
157307
  }, [type, props]);
156625
157308
  var BaseWebView = WEBVIEW_TYPES[type];
156626
157309
  var webViewDebuggingEnabled = operationalEnvironment === "sandbox";
156627
- var handleNavigationStateChange = (0, import_react7.useCallback)(function (event) {
157310
+ var handleNavigationStateChange = (0, import_react9.useCallback)(function (event) {
156628
157311
  if (event.url) {
156629
157312
  trackScreen(event.url);
156630
157313
  }
@@ -156632,7 +157315,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156632
157315
  var userAgent = _useCreateUserAgent({
156633
157316
  colorPreference: "light"
156634
157317
  });
156635
- return (0, import_jsx_runtime5.jsx)(BaseWebView, _objectSpread(_objectSpread(_objectSpread({
157318
+ return (0, import_jsx_runtime7.jsx)(BaseWebView, _objectSpread(_objectSpread(_objectSpread({
156636
157319
  ref: handler.ref
156637
157320
  }, props), baseProps), {}, {
156638
157321
  source: {
@@ -156641,14 +157324,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156641
157324
  "User-Agent": userAgent
156642
157325
  }
156643
157326
  },
156644
- userAgent: import_react_native16.Platform.OS === "ios" ? userAgent : void 0,
157327
+ userAgent: import_react_native21.Platform.OS === "ios" ? userAgent : void 0,
156645
157328
  sharedCookiesEnabled: true,
156646
157329
  webviewDebuggingEnabled: webViewDebuggingEnabled,
156647
157330
  thirdPartyCookiesEnabled: true,
156648
157331
  onMessage: handler.onMessage,
156649
157332
  onNavigationStateChange: handleNavigationStateChange,
156650
157333
  injectedJavaScript: handler.injectedJavaScript,
156651
- injectedJavaScriptBeforeContentLoaded: handler.injectedJavaScript
157334
+ injectedJavaScriptBeforeContentLoaded: handler.injectedJavaScript,
157335
+ decelerationRate: import_react_native21.Platform.OS === "ios" ? 1 : void 0
156652
157336
  }));
156653
157337
  }
156654
157338
  function ensureValue(value, name) {
@@ -156666,10 +157350,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156666
157350
  Accuracy3[Accuracy3["BestForNavigation"] = 6] = "BestForNavigation";
156667
157351
  return Accuracy3;
156668
157352
  }(Accuracy2 || {});
156669
- function onVisibilityChangedByTransparentServiceWeb(eventParams) {
156670
- return _appsInTossEvent.addEventListener("onVisibilityChangedByTransparentServiceWeb", eventParams);
156671
- }
156672
- var _INTERNAL__onVisibilityChangedByTransparentServiceWeb = onVisibilityChangedByTransparentServiceWeb;
156673
157353
  __reExport(src_exports, _$$_REQUIRE(_dependencyMap[0], "@apps-in-toss/analytics"), module.exports);
156674
157354
  var Analytics2 = {
156675
157355
  init: import_analytics2.Analytics.init,
@@ -156696,15 +157376,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156696
157376
  getClipboardText: _getClipboardText,
156697
157377
  getCurrentLocation: _getCurrentLocation,
156698
157378
  getDeviceId: _getDeviceId,
157379
+ getGameCenterGameProfile: _getGameCenterGameProfile,
156699
157380
  getOperationalEnvironment: _getOperationalEnvironment,
156700
157381
  getTossAppVersion: _getTossAppVersion,
156701
157382
  getTossShareLink: _getTossShareLink,
156702
157383
  isMinVersionSupported: _isMinVersionSupported,
156703
157384
  openCamera: _openCamera,
157385
+ openGameCenterLeaderboard: _openGameCenterLeaderboard,
156704
157386
  saveBase64Data: _saveBase64Data,
156705
157387
  setClipboardText: _setClipboardText,
156706
157388
  setDeviceOrientation: _setDeviceOrientation,
156707
157389
  startUpdateLocation: _startUpdateLocation,
157390
+ submitGameCenterLeaderBoardScore: _submitGameCenterLeaderBoardScore,
156708
157391
  useCreateUserAgent: _useCreateUserAgent,
156709
157392
  useGeolocation: _useGeolocation
156710
157393
  }, _$$_REQUIRE(_dependencyMap[0], "@apps-in-toss/analytics")));
@@ -224507,7 +225190,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
224507
225190
  }
224508
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");
224509
225192
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
224510
- module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/geunhyeok.lee/workspace/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({
224511
225194
  "__packager_asset": true,
224512
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",
224513
225196
  "width": 24,
@@ -224519,7 +225202,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
224519
225202
  });
224520
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");
224521
225204
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
224522
- module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/geunhyeok.lee/workspace/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({
224523
225206
  "__packager_asset": true,
224524
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",
224525
225208
  "width": 50,