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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -87621,7 +87621,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
87621
87621
  var _default = exports.default = TurboModuleRegistry.get('LinkingManager');
87622
87622
  },415,[34],"../../../.yarn/unplugged/react-native-virtual-b5f6484574/node_modules/react-native/Libraries/Linking/NativeLinkingManager.js");
87623
87623
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
87624
- module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/line0/Dev/frontend-bedrock/.yarn/cache/@react-native-bedrock-mpack-next-npm-0.0.25-382cd22a0f-6b37accd87.zip/node_modules/@react-native-bedrock/mpack-next/dist/metro/bedrockAssetRegistry.js").registerAsset({
87624
+ 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({
87625
87625
  "__packager_asset": true,
87626
87626
  "httpServerLocation": "/assets/../../../.yarn/unplugged/react-native-virtual-b5f6484574/node_modules/react-native/Libraries/LogBox/UI/LogBoxImages",
87627
87627
  "width": 28,
@@ -89309,7 +89309,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
89309
89309
  var _default = exports.default = NativeStatusBarManager;
89310
89310
  },432,[34],"../../../.yarn/unplugged/react-native-virtual-b5f6484574/node_modules/react-native/Libraries/Components/StatusBar/NativeStatusBarManagerIOS.js");
89311
89311
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
89312
- module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/line0/Dev/frontend-bedrock/.yarn/cache/@react-native-bedrock-mpack-next-npm-0.0.25-382cd22a0f-6b37accd87.zip/node_modules/@react-native-bedrock/mpack-next/dist/metro/bedrockAssetRegistry.js").registerAsset({
89312
+ 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({
89313
89313
  "__packager_asset": true,
89314
89314
  "httpServerLocation": "/assets/../../../.yarn/unplugged/react-native-virtual-b5f6484574/node_modules/react-native/Libraries/LogBox/UI/LogBoxImages",
89315
89315
  "width": 16,
@@ -89321,7 +89321,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
89321
89321
  });
89322
89322
  },433,[417],"../../../.yarn/unplugged/react-native-virtual-b5f6484574/node_modules/react-native/Libraries/LogBox/UI/LogBoxImages/chevron-left.png");
89323
89323
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
89324
- module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/line0/Dev/frontend-bedrock/.yarn/cache/@react-native-bedrock-mpack-next-npm-0.0.25-382cd22a0f-6b37accd87.zip/node_modules/@react-native-bedrock/mpack-next/dist/metro/bedrockAssetRegistry.js").registerAsset({
89324
+ 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({
89325
89325
  "__packager_asset": true,
89326
89326
  "httpServerLocation": "/assets/../../../.yarn/unplugged/react-native-virtual-b5f6484574/node_modules/react-native/Libraries/LogBox/UI/LogBoxImages",
89327
89327
  "width": 16,
@@ -89955,7 +89955,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
89955
89955
  var _default = exports.default = LogBoxInspectorSourceMapStatus;
89956
89956
  },438,[318,277,246,382,410,411,8,49,439,440],"../../../.yarn/unplugged/react-native-virtual-b5f6484574/node_modules/react-native/Libraries/LogBox/UI/LogBoxInspectorSourceMapStatus.js");
89957
89957
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
89958
- module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/line0/Dev/frontend-bedrock/.yarn/cache/@react-native-bedrock-mpack-next-npm-0.0.25-382cd22a0f-6b37accd87.zip/node_modules/@react-native-bedrock/mpack-next/dist/metro/bedrockAssetRegistry.js").registerAsset({
89958
+ 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({
89959
89959
  "__packager_asset": true,
89960
89960
  "httpServerLocation": "/assets/../../../.yarn/unplugged/react-native-virtual-b5f6484574/node_modules/react-native/Libraries/LogBox/UI/LogBoxImages",
89961
89961
  "width": 48,
@@ -89967,7 +89967,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
89967
89967
  });
89968
89968
  },439,[417],"../../../.yarn/unplugged/react-native-virtual-b5f6484574/node_modules/react-native/Libraries/LogBox/UI/LogBoxImages/alert-triangle.png");
89969
89969
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
89970
- module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/line0/Dev/frontend-bedrock/.yarn/cache/@react-native-bedrock-mpack-next-npm-0.0.25-382cd22a0f-6b37accd87.zip/node_modules/@react-native-bedrock/mpack-next/dist/metro/bedrockAssetRegistry.js").registerAsset({
89970
+ 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({
89971
89971
  "__packager_asset": true,
89972
89972
  "httpServerLocation": "/assets/../../../.yarn/unplugged/react-native-virtual-b5f6484574/node_modules/react-native/Libraries/LogBox/UI/LogBoxImages",
89973
89973
  "width": 44,
@@ -108298,7 +108298,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
108298
108298
  }
108299
108299
  },648,[509,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");
108300
108300
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
108301
- module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/line0/Dev/frontend-bedrock/.yarn/cache/@react-native-bedrock-mpack-next-npm-0.0.25-382cd22a0f-6b37accd87.zip/node_modules/@react-native-bedrock/mpack-next/dist/metro/bedrockAssetRegistry.js").registerAsset({
108301
+ 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({
108302
108302
  "__packager_asset": true,
108303
108303
  "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",
108304
108304
  "width": 12,
@@ -108310,7 +108310,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
108310
108310
  });
108311
108311
  },649,[417],"../../../.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");
108312
108312
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
108313
- module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/line0/Dev/frontend-bedrock/.yarn/cache/@react-native-bedrock-mpack-next-npm-0.0.25-382cd22a0f-6b37accd87.zip/node_modules/@react-native-bedrock/mpack-next/dist/metro/bedrockAssetRegistry.js").registerAsset({
108313
+ 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({
108314
108314
  "__packager_asset": true,
108315
108315
  "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",
108316
108316
  "width": 50,
@@ -154562,6 +154562,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
154562
154562
  getDeviceId: function getDeviceId() {
154563
154563
  return _getDeviceId;
154564
154564
  },
154565
+ getGameCenterGameProfile: function getGameCenterGameProfile() {
154566
+ return _getGameCenterGameProfile;
154567
+ },
154565
154568
  getOperationalEnvironment: function getOperationalEnvironment() {
154566
154569
  return _getOperationalEnvironment;
154567
154570
  },
@@ -154577,6 +154580,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
154577
154580
  openCamera: function openCamera() {
154578
154581
  return _openCamera;
154579
154582
  },
154583
+ openGameCenterLeaderboard: function openGameCenterLeaderboard() {
154584
+ return _openGameCenterLeaderboard;
154585
+ },
154580
154586
  saveBase64Data: function saveBase64Data() {
154581
154587
  return _saveBase64Data;
154582
154588
  },
@@ -154589,6 +154595,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
154589
154595
  startUpdateLocation: function startUpdateLocation() {
154590
154596
  return _startUpdateLocation;
154591
154597
  },
154598
+ submitGameCenterLeaderBoardScore: function submitGameCenterLeaderBoardScore() {
154599
+ return _submitGameCenterLeaderBoardScore;
154600
+ },
154601
+ useCreateUserAgent: function useCreateUserAgent() {
154602
+ return _useCreateUserAgent;
154603
+ },
154592
154604
  useGeolocation: function useGeolocation() {
154593
154605
  return _useGeolocation;
154594
154606
  }
@@ -154597,7 +154609,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
154597
154609
  var import_analytics2 = _$$_REQUIRE(_dependencyMap[0], "@apps-in-toss/analytics");
154598
154610
  var import_analytics = _$$_REQUIRE(_dependencyMap[0], "@apps-in-toss/analytics");
154599
154611
  var import_react_native6 = _$$_REQUIRE(_dependencyMap[1], "@toss-design-system/react-native");
154600
- var import_react_native_bedrock8 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
154612
+ var import_react_native_bedrock9 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
154601
154613
  var import_react2 = _$$_REQUIRE(_dependencyMap[3], "react");
154602
154614
  var import_react_native_bedrock2 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
154603
154615
  var _env = {
@@ -154820,27 +154832,27 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
154820
154832
  return _requestPermission.apply(this, arguments);
154821
154833
  }
154822
154834
  function _requestPermission() {
154823
- _requestPermission = _asyncToGenerator(_regeneratorRuntime().mark(function _callee4(permission) {
154835
+ _requestPermission = _asyncToGenerator(_regeneratorRuntime().mark(function _callee9(permission) {
154824
154836
  var permissionStatus;
154825
- return _regeneratorRuntime().wrap(function _callee4$(_context4) {
154826
- while (1) switch (_context4.prev = _context4.next) {
154837
+ return _regeneratorRuntime().wrap(function _callee9$(_context9) {
154838
+ while (1) switch (_context9.prev = _context9.next) {
154827
154839
  case 0:
154828
- _context4.next = 2;
154840
+ _context9.next = 2;
154829
154841
  return getPermission(permission);
154830
154842
  case 2:
154831
- permissionStatus = _context4.sent;
154832
- _context4.t0 = permissionStatus;
154833
- _context4.next = _context4.t0 === "allowed" ? 6 : _context4.t0 === "denied" ? 6 : 7;
154843
+ permissionStatus = _context9.sent;
154844
+ _context9.t0 = permissionStatus;
154845
+ _context9.next = _context9.t0 === "allowed" ? 6 : _context9.t0 === "denied" ? 6 : 7;
154834
154846
  break;
154835
154847
  case 6:
154836
- return _context4.abrupt("return", permissionStatus);
154848
+ return _context9.abrupt("return", permissionStatus);
154837
154849
  case 7:
154838
- return _context4.abrupt("return", openPermissionDialog(permission));
154850
+ return _context9.abrupt("return", openPermissionDialog(permission));
154839
154851
  case 8:
154840
154852
  case "end":
154841
- return _context4.stop();
154853
+ return _context9.stop();
154842
154854
  }
154843
- }, _callee4);
154855
+ }, _callee9);
154844
154856
  }));
154845
154857
  return _requestPermission.apply(this, arguments);
154846
154858
  }
@@ -155093,12 +155105,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155093
155105
  getCurrentLocation: function getCurrentLocation() {
155094
155106
  return _getCurrentLocation;
155095
155107
  },
155108
+ getGameCenterGameProfile: function getGameCenterGameProfile() {
155109
+ return _getGameCenterGameProfile;
155110
+ },
155096
155111
  getTossShareLink: function getTossShareLink() {
155097
155112
  return _getTossShareLink;
155098
155113
  },
155099
155114
  openCamera: function openCamera() {
155100
155115
  return _openCamera;
155101
155116
  },
155117
+ openGameCenterLeaderboard: function openGameCenterLeaderboard() {
155118
+ return _openGameCenterLeaderboard;
155119
+ },
155102
155120
  saveBase64Data: function saveBase64Data() {
155103
155121
  return _saveBase64Data;
155104
155122
  },
@@ -155107,38 +155125,41 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155107
155125
  },
155108
155126
  setDeviceOrientation: function setDeviceOrientation() {
155109
155127
  return _setDeviceOrientation;
155128
+ },
155129
+ submitGameCenterLeaderBoardScore: function submitGameCenterLeaderBoardScore() {
155130
+ return _submitGameCenterLeaderBoardScore;
155110
155131
  }
155111
155132
  });
155112
155133
  function _setClipboardText(_x2) {
155113
155134
  return _setClipboardText2.apply(this, arguments);
155114
155135
  }
155115
155136
  function _setClipboardText2() {
155116
- _setClipboardText2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee5(text) {
155137
+ _setClipboardText2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee10(text) {
155117
155138
  var permissionStatus;
155118
- return _regeneratorRuntime().wrap(function _callee5$(_context5) {
155119
- while (1) switch (_context5.prev = _context5.next) {
155139
+ return _regeneratorRuntime().wrap(function _callee10$(_context10) {
155140
+ while (1) switch (_context10.prev = _context10.next) {
155120
155141
  case 0:
155121
- _context5.next = 2;
155142
+ _context10.next = 2;
155122
155143
  return requestPermission({
155123
155144
  name: "clipboard",
155124
155145
  access: "write"
155125
155146
  });
155126
155147
  case 2:
155127
- permissionStatus = _context5.sent;
155148
+ permissionStatus = _context10.sent;
155128
155149
  if (!(permissionStatus === "denied")) {
155129
- _context5.next = 5;
155150
+ _context10.next = 5;
155130
155151
  break;
155131
155152
  }
155132
155153
  throw new Error("\uD074\uB9BD\uBCF4\uB4DC \uC4F0\uAE30 \uAD8C\uD55C\uC774 \uAC70\uBD80\uB418\uC5C8\uC5B4\uC694.");
155133
155154
  case 5:
155134
- return _context5.abrupt("return", AppsInTossModule.setClipboardText({
155155
+ return _context10.abrupt("return", AppsInTossModule.setClipboardText({
155135
155156
  text: text
155136
155157
  }));
155137
155158
  case 6:
155138
155159
  case "end":
155139
- return _context5.stop();
155160
+ return _context10.stop();
155140
155161
  }
155141
- }, _callee5);
155162
+ }, _callee10);
155142
155163
  }));
155143
155164
  return _setClipboardText2.apply(this, arguments);
155144
155165
  }
@@ -155146,30 +155167,30 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155146
155167
  return _getClipboardText2.apply(this, arguments);
155147
155168
  }
155148
155169
  function _getClipboardText2() {
155149
- _getClipboardText2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee6() {
155170
+ _getClipboardText2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee11() {
155150
155171
  var permissionStatus;
155151
- return _regeneratorRuntime().wrap(function _callee6$(_context6) {
155152
- while (1) switch (_context6.prev = _context6.next) {
155172
+ return _regeneratorRuntime().wrap(function _callee11$(_context11) {
155173
+ while (1) switch (_context11.prev = _context11.next) {
155153
155174
  case 0:
155154
- _context6.next = 2;
155175
+ _context11.next = 2;
155155
155176
  return requestPermission({
155156
155177
  name: "clipboard",
155157
155178
  access: "read"
155158
155179
  });
155159
155180
  case 2:
155160
- permissionStatus = _context6.sent;
155181
+ permissionStatus = _context11.sent;
155161
155182
  if (!(permissionStatus === "denied")) {
155162
- _context6.next = 5;
155183
+ _context11.next = 5;
155163
155184
  break;
155164
155185
  }
155165
155186
  throw new Error("\uD074\uB9BD\uBCF4\uB4DC \uC77D\uAE30 \uAD8C\uD55C\uC774 \uAC70\uBD80\uB418\uC5C8\uC5B4\uC694.");
155166
155187
  case 5:
155167
- return _context6.abrupt("return", AppsInTossModule.getClipboardText({}));
155188
+ return _context11.abrupt("return", AppsInTossModule.getClipboardText({}));
155168
155189
  case 6:
155169
155190
  case "end":
155170
- return _context6.stop();
155191
+ return _context11.stop();
155171
155192
  }
155172
- }, _callee6);
155193
+ }, _callee11);
155173
155194
  }));
155174
155195
  return _getClipboardText2.apply(this, arguments);
155175
155196
  }
@@ -155177,44 +155198,44 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155177
155198
  return _fetchContacts2.apply(this, arguments);
155178
155199
  }
155179
155200
  function _fetchContacts2() {
155180
- _fetchContacts2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee7(_ref2) {
155201
+ _fetchContacts2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee12(_ref2) {
155181
155202
  var _contacts$nextOffset;
155182
155203
  var size, offset, query, permissionStatus, contacts;
155183
- return _regeneratorRuntime().wrap(function _callee7$(_context7) {
155184
- while (1) switch (_context7.prev = _context7.next) {
155204
+ return _regeneratorRuntime().wrap(function _callee12$(_context12) {
155205
+ while (1) switch (_context12.prev = _context12.next) {
155185
155206
  case 0:
155186
155207
  size = _ref2.size, offset = _ref2.offset, query = _ref2.query;
155187
- _context7.next = 3;
155208
+ _context12.next = 3;
155188
155209
  return requestPermission({
155189
155210
  name: "contacts",
155190
155211
  access: "read"
155191
155212
  });
155192
155213
  case 3:
155193
- permissionStatus = _context7.sent;
155214
+ permissionStatus = _context12.sent;
155194
155215
  if (!(permissionStatus === "denied")) {
155195
- _context7.next = 6;
155216
+ _context12.next = 6;
155196
155217
  break;
155197
155218
  }
155198
155219
  throw new Error("\uC5F0\uB77D\uCC98 \uAD8C\uD55C\uC774 \uAC70\uBD80\uB418\uC5C8\uC5B4\uC694.");
155199
155220
  case 6:
155200
- _context7.next = 8;
155221
+ _context12.next = 8;
155201
155222
  return AppsInTossModule.fetchContacts({
155202
155223
  size: size,
155203
155224
  offset: offset,
155204
155225
  query: query
155205
155226
  });
155206
155227
  case 8:
155207
- contacts = _context7.sent;
155208
- return _context7.abrupt("return", {
155228
+ contacts = _context12.sent;
155229
+ return _context12.abrupt("return", {
155209
155230
  result: contacts.result,
155210
155231
  nextOffset: (_contacts$nextOffset = contacts.nextOffset) !== null && _contacts$nextOffset !== void 0 ? _contacts$nextOffset : null,
155211
155232
  done: contacts.done
155212
155233
  });
155213
155234
  case 10:
155214
155235
  case "end":
155215
- return _context7.stop();
155236
+ return _context12.stop();
155216
155237
  }
155217
- }, _callee7);
155238
+ }, _callee12);
155218
155239
  }));
155219
155240
  return _fetchContacts2.apply(this, arguments);
155220
155241
  }
@@ -155224,38 +155245,38 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155224
155245
  return _fetchAlbumPhotos2.apply(this, arguments);
155225
155246
  }
155226
155247
  function _fetchAlbumPhotos2() {
155227
- _fetchAlbumPhotos2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee8(options) {
155248
+ _fetchAlbumPhotos2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee13(options) {
155228
155249
  var _options$maxCount, _options$maxWidth;
155229
155250
  var permissionStatus, albumPhotos;
155230
- return _regeneratorRuntime().wrap(function _callee8$(_context8) {
155231
- while (1) switch (_context8.prev = _context8.next) {
155251
+ return _regeneratorRuntime().wrap(function _callee13$(_context13) {
155252
+ while (1) switch (_context13.prev = _context13.next) {
155232
155253
  case 0:
155233
- _context8.next = 2;
155254
+ _context13.next = 2;
155234
155255
  return requestPermission({
155235
155256
  name: "photos",
155236
155257
  access: "read"
155237
155258
  });
155238
155259
  case 2:
155239
- permissionStatus = _context8.sent;
155260
+ permissionStatus = _context13.sent;
155240
155261
  if (!(permissionStatus === "denied")) {
155241
- _context8.next = 5;
155262
+ _context13.next = 5;
155242
155263
  break;
155243
155264
  }
155244
155265
  throw new Error("\uC0AC\uC9C4\uCCA9 \uAD8C\uD55C\uC774 \uAC70\uBD80\uB418\uC5C8\uC5B4\uC694.");
155245
155266
  case 5:
155246
- _context8.next = 7;
155267
+ _context13.next = 7;
155247
155268
  return AppsInTossModule.fetchAlbumPhotos(_objectSpread(_objectSpread({}, options), {}, {
155248
155269
  maxCount: (_options$maxCount = options.maxCount) !== null && _options$maxCount !== void 0 ? _options$maxCount : DEFAULT_MAX_COUNT,
155249
155270
  maxWidth: (_options$maxWidth = options.maxWidth) !== null && _options$maxWidth !== void 0 ? _options$maxWidth : DEFAULT_MAX_WIDTH
155250
155271
  }));
155251
155272
  case 7:
155252
- albumPhotos = _context8.sent;
155253
- return _context8.abrupt("return", albumPhotos);
155273
+ albumPhotos = _context13.sent;
155274
+ return _context13.abrupt("return", albumPhotos);
155254
155275
  case 9:
155255
155276
  case "end":
155256
- return _context8.stop();
155277
+ return _context13.stop();
155257
155278
  }
155258
- }, _callee8);
155279
+ }, _callee13);
155259
155280
  }));
155260
155281
  return _fetchAlbumPhotos2.apply(this, arguments);
155261
155282
  }
@@ -155263,34 +155284,34 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155263
155284
  return _getCurrentLocation2.apply(this, arguments);
155264
155285
  }
155265
155286
  function _getCurrentLocation2() {
155266
- _getCurrentLocation2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee9(options) {
155287
+ _getCurrentLocation2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee14(options) {
155267
155288
  var permissionStatus, position;
155268
- return _regeneratorRuntime().wrap(function _callee9$(_context9) {
155269
- while (1) switch (_context9.prev = _context9.next) {
155289
+ return _regeneratorRuntime().wrap(function _callee14$(_context14) {
155290
+ while (1) switch (_context14.prev = _context14.next) {
155270
155291
  case 0:
155271
- _context9.next = 2;
155292
+ _context14.next = 2;
155272
155293
  return requestPermission({
155273
155294
  name: "geolocation",
155274
155295
  access: "access"
155275
155296
  });
155276
155297
  case 2:
155277
- permissionStatus = _context9.sent;
155298
+ permissionStatus = _context14.sent;
155278
155299
  if (!(permissionStatus === "denied")) {
155279
- _context9.next = 5;
155300
+ _context14.next = 5;
155280
155301
  break;
155281
155302
  }
155282
155303
  throw new Error("\uC704\uCE58 \uAD8C\uD55C\uC774 \uAC70\uBD80\uB418\uC5C8\uC5B4\uC694.");
155283
155304
  case 5:
155284
- _context9.next = 7;
155305
+ _context14.next = 7;
155285
155306
  return AppsInTossModule.getCurrentLocation(options);
155286
155307
  case 7:
155287
- position = _context9.sent;
155288
- return _context9.abrupt("return", position);
155308
+ position = _context14.sent;
155309
+ return _context14.abrupt("return", position);
155289
155310
  case 9:
155290
155311
  case "end":
155291
- return _context9.stop();
155312
+ return _context14.stop();
155292
155313
  }
155293
- }, _callee9);
155314
+ }, _callee14);
155294
155315
  }));
155295
155316
  return _getCurrentLocation2.apply(this, arguments);
155296
155317
  }
@@ -155298,37 +155319,37 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155298
155319
  return _openCamera2.apply(this, arguments);
155299
155320
  }
155300
155321
  function _openCamera2() {
155301
- _openCamera2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee10(options) {
155322
+ _openCamera2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee15(options) {
155302
155323
  var permissionStatus, photo;
155303
- return _regeneratorRuntime().wrap(function _callee10$(_context10) {
155304
- while (1) switch (_context10.prev = _context10.next) {
155324
+ return _regeneratorRuntime().wrap(function _callee15$(_context15) {
155325
+ while (1) switch (_context15.prev = _context15.next) {
155305
155326
  case 0:
155306
- _context10.next = 2;
155327
+ _context15.next = 2;
155307
155328
  return requestPermission({
155308
155329
  name: "camera",
155309
155330
  access: "access"
155310
155331
  });
155311
155332
  case 2:
155312
- permissionStatus = _context10.sent;
155333
+ permissionStatus = _context15.sent;
155313
155334
  if (!(permissionStatus === "denied")) {
155314
- _context10.next = 5;
155335
+ _context15.next = 5;
155315
155336
  break;
155316
155337
  }
155317
155338
  throw new Error("\uCE74\uBA54\uB77C \uAD8C\uD55C\uC774 \uAC70\uBD80\uB418\uC5C8\uC5B4\uC694.");
155318
155339
  case 5:
155319
- _context10.next = 7;
155340
+ _context15.next = 7;
155320
155341
  return AppsInTossModule.openCamera(_objectSpread({
155321
155342
  base64: false,
155322
155343
  maxWidth: 1024
155323
155344
  }, options));
155324
155345
  case 7:
155325
- photo = _context10.sent;
155326
- return _context10.abrupt("return", photo);
155346
+ photo = _context15.sent;
155347
+ return _context15.abrupt("return", photo);
155327
155348
  case 9:
155328
155349
  case "end":
155329
- return _context10.stop();
155350
+ return _context15.stop();
155330
155351
  }
155331
- }, _callee10);
155352
+ }, _callee15);
155332
155353
  }));
155333
155354
  return _openCamera2.apply(this, arguments);
155334
155355
  }
@@ -155336,16 +155357,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155336
155357
  return _appLogin2.apply(this, arguments);
155337
155358
  }
155338
155359
  function _appLogin2() {
155339
- _appLogin2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee11() {
155340
- return _regeneratorRuntime().wrap(function _callee11$(_context11) {
155341
- while (1) switch (_context11.prev = _context11.next) {
155360
+ _appLogin2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee16() {
155361
+ return _regeneratorRuntime().wrap(function _callee16$(_context16) {
155362
+ while (1) switch (_context16.prev = _context16.next) {
155342
155363
  case 0:
155343
- return _context11.abrupt("return", AppsInTossModule.appLogin({}));
155364
+ return _context16.abrupt("return", AppsInTossModule.appLogin({}));
155344
155365
  case 1:
155345
155366
  case "end":
155346
- return _context11.stop();
155367
+ return _context16.stop();
155347
155368
  }
155348
- }, _callee11);
155369
+ }, _callee16);
155349
155370
  }));
155350
155371
  return _appLogin2.apply(this, arguments);
155351
155372
  }
@@ -155353,18 +155374,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155353
155374
  return _checkoutPayment2.apply(this, arguments);
155354
155375
  }
155355
155376
  function _checkoutPayment2() {
155356
- _checkoutPayment2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee12(options) {
155357
- return _regeneratorRuntime().wrap(function _callee12$(_context12) {
155358
- while (1) switch (_context12.prev = _context12.next) {
155377
+ _checkoutPayment2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee17(options) {
155378
+ return _regeneratorRuntime().wrap(function _callee17$(_context17) {
155379
+ while (1) switch (_context17.prev = _context17.next) {
155359
155380
  case 0:
155360
- return _context12.abrupt("return", AppsInTossModule.checkoutPayment({
155381
+ return _context17.abrupt("return", AppsInTossModule.checkoutPayment({
155361
155382
  params: options
155362
155383
  }));
155363
155384
  case 1:
155364
155385
  case "end":
155365
- return _context12.stop();
155386
+ return _context17.stop();
155366
155387
  }
155367
- }, _callee12);
155388
+ }, _callee17);
155368
155389
  }));
155369
155390
  return _checkoutPayment2.apply(this, arguments);
155370
155391
  }
@@ -155384,13 +155405,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155384
155405
  return _eventLog2.apply(this, arguments);
155385
155406
  }
155386
155407
  function _eventLog2() {
155387
- _eventLog2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee13(params) {
155408
+ _eventLog2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee18(params) {
155388
155409
  var isSupported;
155389
- return _regeneratorRuntime().wrap(function _callee13$(_context13) {
155390
- while (1) switch (_context13.prev = _context13.next) {
155410
+ return _regeneratorRuntime().wrap(function _callee18$(_context18) {
155411
+ while (1) switch (_context18.prev = _context18.next) {
155391
155412
  case 0:
155392
155413
  if (!(AppsInTossModule.operationalEnvironment === "sandbox")) {
155393
- _context13.next = 3;
155414
+ _context18.next = 3;
155394
155415
  break;
155395
155416
  }
155396
155417
  console.log("[eventLogDebug]", {
@@ -155398,28 +155419,28 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155398
155419
  log_type: params.log_type,
155399
155420
  params: normalizeParams(params.params)
155400
155421
  });
155401
- return _context13.abrupt("return");
155422
+ return _context18.abrupt("return");
155402
155423
  case 3:
155403
155424
  isSupported = _isMinVersionSupported({
155404
155425
  android: "5.208.0",
155405
155426
  ios: "5.208.0"
155406
155427
  });
155407
155428
  if (isSupported) {
155408
- _context13.next = 6;
155429
+ _context18.next = 6;
155409
155430
  break;
155410
155431
  }
155411
- return _context13.abrupt("return");
155432
+ return _context18.abrupt("return");
155412
155433
  case 6:
155413
- return _context13.abrupt("return", AppsInTossModule.eventLog({
155434
+ return _context18.abrupt("return", AppsInTossModule.eventLog({
155414
155435
  log_name: params.log_name,
155415
155436
  log_type: params.log_type,
155416
155437
  params: normalizeParams(params.params)
155417
155438
  }));
155418
155439
  case 7:
155419
155440
  case "end":
155420
- return _context13.stop();
155441
+ return _context18.stop();
155421
155442
  }
155422
- }, _callee13);
155443
+ }, _callee18);
155423
155444
  }));
155424
155445
  return _eventLog2.apply(this, arguments);
155425
155446
  }
@@ -155427,25 +155448,25 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155427
155448
  return _getTossShareLink2.apply(this, arguments);
155428
155449
  }
155429
155450
  function _getTossShareLink2() {
155430
- _getTossShareLink2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee14(path) {
155451
+ _getTossShareLink2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee19(path) {
155431
155452
  var _yield$AppsInTossModu, shareLink, shareUrl;
155432
- return _regeneratorRuntime().wrap(function _callee14$(_context14) {
155433
- while (1) switch (_context14.prev = _context14.next) {
155453
+ return _regeneratorRuntime().wrap(function _callee19$(_context19) {
155454
+ while (1) switch (_context19.prev = _context19.next) {
155434
155455
  case 0:
155435
- _context14.next = 2;
155456
+ _context19.next = 2;
155436
155457
  return AppsInTossModule.getTossShareLink({});
155437
155458
  case 2:
155438
- _yield$AppsInTossModu = _context14.sent;
155459
+ _yield$AppsInTossModu = _context19.sent;
155439
155460
  shareLink = _yield$AppsInTossModu.shareLink;
155440
155461
  shareUrl = new URL(shareLink);
155441
155462
  shareUrl.searchParams.set("deep_link_value", path);
155442
155463
  shareUrl.searchParams.set("af_dp", path);
155443
- return _context14.abrupt("return", shareUrl.toString());
155464
+ return _context19.abrupt("return", shareUrl.toString());
155444
155465
  case 8:
155445
155466
  case "end":
155446
- return _context14.stop();
155467
+ return _context19.stop();
155447
155468
  }
155448
- }, _callee14);
155469
+ }, _callee19);
155449
155470
  }));
155450
155471
  return _getTossShareLink2.apply(this, arguments);
155451
155472
  }
@@ -155453,27 +155474,27 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155453
155474
  return _setDeviceOrientation2.apply(this, arguments);
155454
155475
  }
155455
155476
  function _setDeviceOrientation2() {
155456
- _setDeviceOrientation2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee15(options) {
155477
+ _setDeviceOrientation2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee20(options) {
155457
155478
  var isSupported;
155458
- return _regeneratorRuntime().wrap(function _callee15$(_context15) {
155459
- while (1) switch (_context15.prev = _context15.next) {
155479
+ return _regeneratorRuntime().wrap(function _callee20$(_context20) {
155480
+ while (1) switch (_context20.prev = _context20.next) {
155460
155481
  case 0:
155461
155482
  isSupported = _isMinVersionSupported({
155462
155483
  android: "5.215.0",
155463
155484
  ios: "5.215.0"
155464
155485
  });
155465
155486
  if (isSupported) {
155466
- _context15.next = 3;
155487
+ _context20.next = 3;
155467
155488
  break;
155468
155489
  }
155469
- return _context15.abrupt("return");
155490
+ return _context20.abrupt("return");
155470
155491
  case 3:
155471
- return _context15.abrupt("return", AppsInTossModule.setDeviceOrientation(options));
155492
+ return _context20.abrupt("return", AppsInTossModule.setDeviceOrientation(options));
155472
155493
  case 4:
155473
155494
  case "end":
155474
- return _context15.stop();
155495
+ return _context20.stop();
155475
155496
  }
155476
- }, _callee15);
155497
+ }, _callee20);
155477
155498
  }));
155478
155499
  return _setDeviceOrientation2.apply(this, arguments);
155479
155500
  }
@@ -155481,32 +155502,115 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155481
155502
  return _saveBase64Data2.apply(this, arguments);
155482
155503
  }
155483
155504
  function _saveBase64Data2() {
155484
- _saveBase64Data2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee16(params) {
155505
+ _saveBase64Data2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee21(params) {
155485
155506
  var isSupported;
155486
- return _regeneratorRuntime().wrap(function _callee16$(_context16) {
155487
- while (1) switch (_context16.prev = _context16.next) {
155507
+ return _regeneratorRuntime().wrap(function _callee21$(_context21) {
155508
+ while (1) switch (_context21.prev = _context21.next) {
155488
155509
  case 0:
155489
155510
  isSupported = _isMinVersionSupported({
155490
155511
  android: "5.218.0",
155491
155512
  ios: "5.216.0"
155492
155513
  });
155493
155514
  if (isSupported) {
155494
- _context16.next = 4;
155515
+ _context21.next = 4;
155495
155516
  break;
155496
155517
  }
155497
155518
  console.warn("saveBase64Data is not supported in this app version");
155498
- return _context16.abrupt("return");
155519
+ return _context21.abrupt("return");
155499
155520
  case 4:
155500
- _context16.next = 6;
155521
+ _context21.next = 6;
155501
155522
  return AppsInTossModule.saveBase64Data(params);
155502
155523
  case 6:
155503
155524
  case "end":
155504
- return _context16.stop();
155525
+ return _context21.stop();
155505
155526
  }
155506
- }, _callee16);
155527
+ }, _callee21);
155507
155528
  }));
155508
155529
  return _saveBase64Data2.apply(this, arguments);
155509
155530
  }
155531
+ var GAME_PROFILE_WEBVIEW_URL = "https://service.toss.im/game-center/profile";
155532
+ var GAME_CENTER_MIN_VERSION = {
155533
+ android: "5.221.0",
155534
+ ios: "5.221.0"
155535
+ };
155536
+ function _getGameCenterGameProfile() {
155537
+ return _getGameCenterGameProfile2.apply(this, arguments);
155538
+ }
155539
+ function _getGameCenterGameProfile2() {
155540
+ _getGameCenterGameProfile2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee22() {
155541
+ var isSupported;
155542
+ return _regeneratorRuntime().wrap(function _callee22$(_context22) {
155543
+ while (1) switch (_context22.prev = _context22.next) {
155544
+ case 0:
155545
+ isSupported = _isMinVersionSupported(GAME_CENTER_MIN_VERSION);
155546
+ if (isSupported) {
155547
+ _context22.next = 3;
155548
+ break;
155549
+ }
155550
+ return _context22.abrupt("return");
155551
+ case 3:
155552
+ return _context22.abrupt("return", AppsInTossModule.getGameCenterGameProfile({}));
155553
+ case 4:
155554
+ case "end":
155555
+ return _context22.stop();
155556
+ }
155557
+ }, _callee22);
155558
+ }));
155559
+ return _getGameCenterGameProfile2.apply(this, arguments);
155560
+ }
155561
+ var import_react_native_bedrock8 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
155562
+ function _openGameCenterLeaderboard() {
155563
+ return _openGameCenterLeaderboard2.apply(this, arguments);
155564
+ }
155565
+ function _openGameCenterLeaderboard2() {
155566
+ _openGameCenterLeaderboard2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee23() {
155567
+ var url;
155568
+ return _regeneratorRuntime().wrap(function _callee23$(_context23) {
155569
+ while (1) switch (_context23.prev = _context23.next) {
155570
+ case 0:
155571
+ if (_isMinVersionSupported(GAME_CENTER_MIN_VERSION)) {
155572
+ _context23.next = 2;
155573
+ break;
155574
+ }
155575
+ return _context23.abrupt("return");
155576
+ case 2:
155577
+ url = new URL("servicetoss://game-center/leaderboard?_navbar=hide");
155578
+ url.searchParams.set("appName", getAppName());
155579
+ url.searchParams.set("referrer", "appsintoss.".concat(getAppName()));
155580
+ return _context23.abrupt("return", (0, import_react_native_bedrock8.openURL)(url.toString()));
155581
+ case 6:
155582
+ case "end":
155583
+ return _context23.stop();
155584
+ }
155585
+ }, _callee23);
155586
+ }));
155587
+ return _openGameCenterLeaderboard2.apply(this, arguments);
155588
+ }
155589
+ function _submitGameCenterLeaderBoardScore(_x12) {
155590
+ return _submitGameCenterLeaderBoardScore2.apply(this, arguments);
155591
+ }
155592
+ function _submitGameCenterLeaderBoardScore2() {
155593
+ _submitGameCenterLeaderBoardScore2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee24(params) {
155594
+ var isSupported;
155595
+ return _regeneratorRuntime().wrap(function _callee24$(_context24) {
155596
+ while (1) switch (_context24.prev = _context24.next) {
155597
+ case 0:
155598
+ isSupported = _isMinVersionSupported(GAME_CENTER_MIN_VERSION);
155599
+ if (isSupported) {
155600
+ _context24.next = 3;
155601
+ break;
155602
+ }
155603
+ return _context24.abrupt("return");
155604
+ case 3:
155605
+ return _context24.abrupt("return", AppsInTossModule.submitGameCenterLeaderBoardScore(params));
155606
+ case 4:
155607
+ case "end":
155608
+ return _context24.stop();
155609
+ }
155610
+ }, _callee24);
155611
+ }));
155612
+ return _submitGameCenterLeaderBoardScore2.apply(this, arguments);
155613
+ }
155510
155614
  var import_jsx_runtime = _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime");
155511
155615
  function AppsInTossContainer(Container, _ref7) {
155512
155616
  var children = _ref7.children,
@@ -155544,7 +155648,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155544
155648
  },
155545
155649
  debug: (_analytics$debug = analytics === null || analytics === void 0 ? void 0 : analytics.debug) !== null && _analytics$debug !== void 0 ? _analytics$debug : __DEV__
155546
155650
  });
155547
- return import_react_native_bedrock8.Bedrock.registerApp(AppsInTossContainer.bind(null, container), {
155651
+ return import_react_native_bedrock9.Bedrock.registerApp(AppsInTossContainer.bind(null, container), {
155548
155652
  appName: getAppName(),
155549
155653
  context: context,
155550
155654
  router: {
@@ -155718,62 +155822,37 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155718
155822
  loadAdMobRewardedAd.isSupported = createIsSupported();
155719
155823
  showAdMobInterstitialAd.isSupported = createIsSupported();
155720
155824
  showAdMobRewardedAd.isSupported = createIsSupported();
155721
- function _getTossAppVersion() {
155722
- return AppsInTossModule.tossAppVersion;
155723
- }
155724
155825
  function _getDeviceId() {
155725
155826
  return AppsInTossModule.deviceId;
155726
155827
  }
155727
- function getItem(key) {
155728
- return AppsInTossModule.getStorageItem({
155729
- key: key
155730
- });
155731
- }
155732
- function setItem(key, value) {
155733
- return AppsInTossModule.setStorageItem({
155734
- key: key,
155735
- value: value
155736
- });
155737
- }
155738
- function removeItem(key) {
155739
- return AppsInTossModule.removeStorageItem({
155740
- key: key
155741
- });
155742
- }
155743
- function clearItems() {
155744
- return AppsInTossModule.clearStorage({});
155828
+ function _getTossAppVersion() {
155829
+ return AppsInTossModule.tossAppVersion;
155745
155830
  }
155746
- var _Storage = {
155747
- getItem: getItem,
155748
- setItem: setItem,
155749
- removeItem: removeItem,
155750
- clearItems: clearItems
155751
- };
155752
- function createOneTimePurchaseOrder(_x12) {
155831
+ function createOneTimePurchaseOrder(_x13) {
155753
155832
  return _createOneTimePurchaseOrder.apply(this, arguments);
155754
155833
  }
155755
155834
  function _createOneTimePurchaseOrder() {
155756
- _createOneTimePurchaseOrder = _asyncToGenerator(_regeneratorRuntime().mark(function _callee17(params) {
155835
+ _createOneTimePurchaseOrder = _asyncToGenerator(_regeneratorRuntime().mark(function _callee25(params) {
155757
155836
  var isSupported;
155758
- return _regeneratorRuntime().wrap(function _callee17$(_context17) {
155759
- while (1) switch (_context17.prev = _context17.next) {
155837
+ return _regeneratorRuntime().wrap(function _callee25$(_context25) {
155838
+ while (1) switch (_context25.prev = _context25.next) {
155760
155839
  case 0:
155761
155840
  isSupported = _isMinVersionSupported({
155762
155841
  android: "5.219.0",
155763
155842
  ios: "5.219.0"
155764
155843
  });
155765
155844
  if (isSupported) {
155766
- _context17.next = 3;
155845
+ _context25.next = 3;
155767
155846
  break;
155768
155847
  }
155769
- return _context17.abrupt("return");
155848
+ return _context25.abrupt("return");
155770
155849
  case 3:
155771
- return _context17.abrupt("return", AppsInTossModule.iapCreateOneTimePurchaseOrder(params));
155850
+ return _context25.abrupt("return", AppsInTossModule.iapCreateOneTimePurchaseOrder(params));
155772
155851
  case 4:
155773
155852
  case "end":
155774
- return _context17.stop();
155853
+ return _context25.stop();
155775
155854
  }
155776
- }, _callee17);
155855
+ }, _callee25);
155777
155856
  }));
155778
155857
  return _createOneTimePurchaseOrder.apply(this, arguments);
155779
155858
  }
@@ -155781,27 +155860,27 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155781
155860
  return _getProductItemList.apply(this, arguments);
155782
155861
  }
155783
155862
  function _getProductItemList() {
155784
- _getProductItemList = _asyncToGenerator(_regeneratorRuntime().mark(function _callee18() {
155863
+ _getProductItemList = _asyncToGenerator(_regeneratorRuntime().mark(function _callee26() {
155785
155864
  var isSupported;
155786
- return _regeneratorRuntime().wrap(function _callee18$(_context18) {
155787
- while (1) switch (_context18.prev = _context18.next) {
155865
+ return _regeneratorRuntime().wrap(function _callee26$(_context26) {
155866
+ while (1) switch (_context26.prev = _context26.next) {
155788
155867
  case 0:
155789
155868
  isSupported = _isMinVersionSupported({
155790
155869
  android: "5.219.0",
155791
155870
  ios: "5.219.0"
155792
155871
  });
155793
155872
  if (isSupported) {
155794
- _context18.next = 3;
155873
+ _context26.next = 3;
155795
155874
  break;
155796
155875
  }
155797
- return _context18.abrupt("return");
155876
+ return _context26.abrupt("return");
155798
155877
  case 3:
155799
- return _context18.abrupt("return", AppsInTossModule.iapGetProductItemList({}));
155878
+ return _context26.abrupt("return", AppsInTossModule.iapGetProductItemList({}));
155800
155879
  case 4:
155801
155880
  case "end":
155802
- return _context18.stop();
155881
+ return _context26.stop();
155803
155882
  }
155804
- }, _callee18);
155883
+ }, _callee26);
155805
155884
  }));
155806
155885
  return _getProductItemList.apply(this, arguments);
155807
155886
  }
@@ -155809,6 +155888,31 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155809
155888
  createOneTimePurchaseOrder: createOneTimePurchaseOrder,
155810
155889
  getProductItemList: getProductItemList
155811
155890
  };
155891
+ function getItem(key) {
155892
+ return AppsInTossModule.getStorageItem({
155893
+ key: key
155894
+ });
155895
+ }
155896
+ function setItem(key, value) {
155897
+ return AppsInTossModule.setStorageItem({
155898
+ key: key,
155899
+ value: value
155900
+ });
155901
+ }
155902
+ function removeItem(key) {
155903
+ return AppsInTossModule.removeStorageItem({
155904
+ key: key
155905
+ });
155906
+ }
155907
+ function clearItems() {
155908
+ return AppsInTossModule.clearStorage({});
155909
+ }
155910
+ var _Storage = {
155911
+ getItem: getItem,
155912
+ setItem: setItem,
155913
+ removeItem: removeItem,
155914
+ clearItems: clearItems
155915
+ };
155812
155916
  var _TossPay = {
155813
155917
  checkoutPayment: _checkoutPayment
155814
155918
  };
@@ -155818,55 +155922,471 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155818
155922
  loadAdMobRewardedAd: loadAdMobRewardedAd,
155819
155923
  showAdMobRewardedAd: showAdMobRewardedAd
155820
155924
  };
155821
- var import_react_native14 = _$$_REQUIRE(_dependencyMap[1], "@toss-design-system/react-native");
155822
- var import_private = _$$_REQUIRE(_dependencyMap[6], "@toss-design-system/react-native/private");
155823
- var import_react6 = _$$_REQUIRE(_dependencyMap[3], "react");
155824
- var import_react_native_bedrock11 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
155925
+ var import_react_native20 = _$$_REQUIRE(_dependencyMap[1], "@toss-design-system/react-native");
155926
+ var import_private3 = _$$_REQUIRE(_dependencyMap[6], "@toss-design-system/react-native/private");
155927
+ var import_react9 = _$$_REQUIRE(_dependencyMap[3], "react");
155928
+ var import_react_native21 = _$$_REQUIRE(_dependencyMap[4], "react-native");
155929
+ var import_react_native_bedrock16 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
155825
155930
  var bedrockAsyncBridges = __toESM(_$$_REQUIRE(_dependencyMap[7], "react-native-bedrock/async-bridges"), 1);
155826
155931
  var bedrockConstantBridges = __toESM(_$$_REQUIRE(_dependencyMap[8], "react-native-bedrock/constant-bridges"), 1);
155827
155932
  var import_react_native_webview = _$$_REQUIRE(_dependencyMap[9], "@react-native-bedrock/native/react-native-webview");
155828
- var import_react_native12 = _$$_REQUIRE(_dependencyMap[1], "@toss-design-system/react-native");
155829
- var import_es_hangul = _$$_REQUIRE(_dependencyMap[10], "es-hangul");
155830
- var import_react4 = _$$_REQUIRE(_dependencyMap[3], "react");
155831
- var import_react_native13 = _$$_REQUIRE(_dependencyMap[4], "react-native");
155832
- var import_react_native_bedrock9 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
155833
- var import_react_native_svg = _$$_REQUIRE(_dependencyMap[11], "@react-native-bedrock/native/react-native-svg");
155933
+ var import_react_native17 = _$$_REQUIRE(_dependencyMap[1], "@toss-design-system/react-native");
155934
+ var import_es_hangul2 = _$$_REQUIRE(_dependencyMap[10], "es-hangul");
155935
+ var import_react6 = _$$_REQUIRE(_dependencyMap[3], "react");
155936
+ var import_react_native18 = _$$_REQUIRE(_dependencyMap[4], "react-native");
155937
+ var import_react_native_bedrock12 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
155834
155938
  var import_react_native10 = _$$_REQUIRE(_dependencyMap[1], "@toss-design-system/react-native");
155939
+ var import_react5 = _$$_REQUIRE(_dependencyMap[3], "react");
155835
155940
  var import_react_native11 = _$$_REQUIRE(_dependencyMap[4], "react-native");
155941
+ var import_react_native9 = _$$_REQUIRE(_dependencyMap[1], "@toss-design-system/react-native");
155942
+ var import_es_hangul = _$$_REQUIRE(_dependencyMap[10], "es-hangul");
155943
+ var import_react4 = _$$_REQUIRE(_dependencyMap[3], "react");
155944
+ var import_react_native_bedrock11 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
155945
+ var import_react_native7 = _$$_REQUIRE(_dependencyMap[1], "@toss-design-system/react-native");
155946
+ var import_private = _$$_REQUIRE(_dependencyMap[6], "@toss-design-system/react-native/private");
155947
+ var import_jsx_runtime2 = _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime");
155948
+ var useGameProfileToast = function useGameProfileToast() {
155949
+ var overlay = (0, import_private.useOverlay)();
155950
+ var openGameProfileToast = function openGameProfileToast(nickname, profileImageUri) {
155951
+ return new Promise(function (resolve) {
155952
+ overlay.open(function (_ref10) {
155953
+ var isOpen = _ref10.isOpen,
155954
+ close = _ref10.close,
155955
+ exit = _ref10.exit;
155956
+ return (0, import_jsx_runtime2.jsx)(import_private.ColorPreferenceProvider, {
155957
+ colorPreference: "dark",
155958
+ children: (0, import_jsx_runtime2.jsx)(import_private.AdaptiveColorProvider, {
155959
+ children: (0, import_jsx_runtime2.jsx)(import_react_native7.Toast, {
155960
+ open: isOpen,
155961
+ onClose: function onClose() {
155962
+ resolve();
155963
+ close();
155964
+ },
155965
+ onExited: exit,
155966
+ position: "top",
155967
+ text: "".concat(nickname, "\uB2D8 \uBC18\uAC00\uC6CC\uC694!"),
155968
+ icon: (0, import_jsx_runtime2.jsx)(import_react_native7.Asset.Image, {
155969
+ style: {
155970
+ borderRadius: 64,
155971
+ overflow: "hidden"
155972
+ },
155973
+ frameShape: import_react_native7.Asset.frameShape.CleanW32,
155974
+ source: {
155975
+ uri: profileImageUri
155976
+ }
155977
+ })
155978
+ })
155979
+ })
155980
+ });
155981
+ });
155982
+ });
155983
+ };
155984
+ return {
155985
+ openGameProfileToast: openGameProfileToast
155986
+ };
155987
+ };
155988
+ var DEFAULT_ERROR = {
155989
+ title: "\uC7A0\uC2DC \uD6C4 \uB2E4\uC2DC \uC2DC\uB3C4\uD574\uC8FC\uC138\uC694",
155990
+ description: "\uBB38\uC81C\uAC00 \uACC4\uC18D\uB418\uBA74 \uD1A0\uC2A4 \uACE0\uAC1D\uC13C\uD130(1599-4905)\uB85C \uBB38\uC758\uD574\uC8FC\uC138\uC694."
155991
+ };
155836
155992
  var import_react_native8 = _$$_REQUIRE(_dependencyMap[4], "react-native");
155837
- var import_react_native7 = _$$_REQUIRE(_dependencyMap[4], "react-native");
155838
- function byPlatform(_ref10) {
155993
+ var PLAYSTORE_LINK = "https://play.google.com/store/apps/details?id=viva.republica.toss";
155994
+ var APPSTORE_LINK = "https://itunes.apple.com/app/id839333328";
155995
+ var getMarketLink = function getMarketLink() {
155996
+ return import_react_native8.Platform.OS === "android" ? PLAYSTORE_LINK : APPSTORE_LINK;
155997
+ };
155998
+ var import_react_native_bedrock10 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
155999
+ function onVisibilityChangedByTransparentServiceWeb(eventParams) {
156000
+ return _appsInTossEvent.addEventListener("onVisibilityChangedByTransparentServiceWeb", eventParams);
156001
+ }
156002
+ var _INTERNAL__onVisibilityChangedByTransparentServiceWeb = onVisibilityChangedByTransparentServiceWeb;
156003
+ var openTransparentWebView = function openTransparentWebView(_ref11) {
156004
+ var webUrl = _ref11.webUrl,
156005
+ _ref11$cleanupWhenDis = _ref11.cleanupWhenDismissed,
156006
+ cleanupWhenDismissed = _ref11$cleanupWhenDis === void 0 ? true : _ref11$cleanupWhenDis,
156007
+ _onEvent = _ref11.onEvent,
156008
+ _onError = _ref11.onError,
156009
+ _ref11$callbackId = _ref11.callbackId,
156010
+ callbackId = _ref11$callbackId === void 0 ? "fn" : _ref11$callbackId,
156011
+ params = _ref11.params;
156012
+ var url = new URL("supertoss://transparent-service-web");
156013
+ url.searchParams.set("url", webUrl);
156014
+ url.searchParams.set("onVisibilityChangeCallback", callbackId);
156015
+ Object.entries(params !== null && params !== void 0 ? params : {}).forEach(function (_ref12) {
156016
+ var _ref13 = _slicedToArray(_ref12, 2),
156017
+ key = _ref13[0],
156018
+ value = _ref13[1];
156019
+ url.searchParams.set(key, value);
156020
+ });
156021
+ var cleanup = _INTERNAL__onVisibilityChangedByTransparentServiceWeb({
156022
+ options: {
156023
+ callbackId: callbackId
156024
+ },
156025
+ onError: function onError(error) {
156026
+ _onError(error);
156027
+ cleanup();
156028
+ },
156029
+ onEvent: function onEvent(value) {
156030
+ _onEvent(value);
156031
+ if (cleanupWhenDismissed && value === true) {
156032
+ cleanup();
156033
+ }
156034
+ }
156035
+ });
156036
+ (0, import_react_native_bedrock10.openURL)(url.toString());
156037
+ };
156038
+ var useGameCenterProfile = function useGameCenterProfile(isReadyForProfileUI) {
156039
+ var _ref14 = (0, import_react4.useState)(void 0),
156040
+ _ref15 = _slicedToArray(_ref14, 2),
156041
+ profileData = _ref15[0],
156042
+ setProfileData = _ref15[1];
156043
+ var _ref16 = (0, import_react4.useState)(true),
156044
+ _ref17 = _slicedToArray(_ref16, 2),
156045
+ isProfileDataLoading = _ref17[0],
156046
+ setIsProfileDataLoading = _ref17[1];
156047
+ var _ref18 = (0, import_react4.useState)(false),
156048
+ _ref19 = _slicedToArray(_ref18, 2),
156049
+ isProfileDataRefetching = _ref19[0],
156050
+ setIsProfileDataRefetching = _ref19[1];
156051
+ var shouldShowLoadingOverlay = isProfileDataLoading && isReadyForProfileUI;
156052
+ var shouldShowProfileNotFoundOverlay = (profileData === null || profileData === void 0 ? void 0 : profileData.statusCode) === "PROFILE_NOT_FOUND" && isReadyForProfileUI && !isProfileDataRefetching;
156053
+ var canShowBottomSheetOrToast = !isProfileDataLoading && isReadyForProfileUI;
156054
+ var _ref20 = (0, import_react4.useState)(false),
156055
+ _ref21 = _slicedToArray(_ref20, 2),
156056
+ isWebviewLoading = _ref21[0],
156057
+ setIsWebviewLoading = _ref21[1];
156058
+ var isCompletedProfileFlow = (0, import_react4.useRef)(false);
156059
+ var _ref22 = (0, import_react_native9.useDialog)(),
156060
+ openAlert = _ref22.openAlert,
156061
+ openConfirm = _ref22.openConfirm;
156062
+ var _useGameProfileToast = useGameProfileToast(),
156063
+ openGameProfileToast = _useGameProfileToast.openGameProfileToast;
156064
+ var openErrorAlert = (0, import_react4.useCallback)(_asyncToGenerator(_regeneratorRuntime().mark(function _callee() {
156065
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
156066
+ while (1) switch (_context.prev = _context.next) {
156067
+ case 0:
156068
+ _context.next = 2;
156069
+ return openAlert({
156070
+ title: DEFAULT_ERROR.title,
156071
+ description: DEFAULT_ERROR.description
156072
+ });
156073
+ case 2:
156074
+ (0, import_react_native_bedrock11.closeView)();
156075
+ case 3:
156076
+ case "end":
156077
+ return _context.stop();
156078
+ }
156079
+ }, _callee);
156080
+ })), [openAlert]);
156081
+ var openProfileWebview = (0, import_react4.useCallback)(function () {
156082
+ if (isWebviewLoading) {
156083
+ return;
156084
+ }
156085
+ setIsWebviewLoading(true);
156086
+ openTransparentWebView({
156087
+ webUrl: "".concat(GAME_PROFILE_WEBVIEW_URL, "?appName=").concat(getAppName(), "&referrer=appsintoss.").concat(getAppName()),
156088
+ onEvent: function () {
156089
+ var _onEvent2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee2(isClosedTransparentWebView) {
156090
+ var data;
156091
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
156092
+ while (1) switch (_context2.prev = _context2.next) {
156093
+ case 0:
156094
+ if (!isClosedTransparentWebView) {
156095
+ _context2.next = 16;
156096
+ break;
156097
+ }
156098
+ _context2.prev = 1;
156099
+ setIsWebviewLoading(false);
156100
+ setIsProfileDataRefetching(true);
156101
+ _context2.next = 6;
156102
+ return _getGameCenterGameProfile();
156103
+ case 6:
156104
+ data = _context2.sent;
156105
+ setProfileData(data);
156106
+ setIsProfileDataRefetching(false);
156107
+ if ((data === null || data === void 0 ? void 0 : data.statusCode) === "SUCCESS") {
156108
+ openGameProfileToast(data.nickname, data.profileImageUri);
156109
+ }
156110
+ _context2.next = 16;
156111
+ break;
156112
+ case 12:
156113
+ _context2.prev = 12;
156114
+ _context2.t0 = _context2["catch"](1);
156115
+ setIsProfileDataRefetching(false);
156116
+ openErrorAlert();
156117
+ case 16:
156118
+ case "end":
156119
+ return _context2.stop();
156120
+ }
156121
+ }, _callee2, null, [[1, 12]]);
156122
+ }));
156123
+ function onEvent(_x14) {
156124
+ return _onEvent2.apply(this, arguments);
156125
+ }
156126
+ return onEvent;
156127
+ }(),
156128
+ onError: function onError() {
156129
+ openErrorAlert();
156130
+ }
156131
+ });
156132
+ }, [isWebviewLoading, openGameProfileToast, openErrorAlert]);
156133
+ var updateAppToSupportedMinVersion = (0, import_react4.useCallback)(_asyncToGenerator(_regeneratorRuntime().mark(function _callee3() {
156134
+ var upddateConfirmDialogLabel, isConfirmed, STORE_SCHEME;
156135
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
156136
+ while (1) switch (_context3.prev = _context3.next) {
156137
+ case 0:
156138
+ upddateConfirmDialogLabel = {
156139
+ 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"),
156140
+ leftButton: "\uB2EB\uAE30",
156141
+ rightButton: "\uC5C5\uB370\uC774\uD2B8\uD558\uAE30"
156142
+ };
156143
+ _context3.next = 3;
156144
+ return openConfirm({
156145
+ title: upddateConfirmDialogLabel.title,
156146
+ leftButton: upddateConfirmDialogLabel.leftButton,
156147
+ rightButton: upddateConfirmDialogLabel.rightButton,
156148
+ closeOnDimmerClick: true
156149
+ });
156150
+ case 3:
156151
+ isConfirmed = _context3.sent;
156152
+ if (isConfirmed) {
156153
+ _context3.next = 7;
156154
+ break;
156155
+ }
156156
+ (0, import_react_native_bedrock11.closeView)();
156157
+ return _context3.abrupt("return");
156158
+ case 7:
156159
+ STORE_SCHEME = getMarketLink();
156160
+ (0, import_react_native_bedrock11.openURL)("supertoss://web?url=".concat(STORE_SCHEME, "&external=browser"));
156161
+ case 9:
156162
+ case "end":
156163
+ return _context3.stop();
156164
+ }
156165
+ }, _callee3);
156166
+ })), [openConfirm]);
156167
+ return {
156168
+ profileData: profileData,
156169
+ isProfileDataLoading: isProfileDataLoading,
156170
+ isProfileDataRefetching: isProfileDataRefetching,
156171
+ shouldShowLoadingOverlay: shouldShowLoadingOverlay,
156172
+ shouldShowProfileNotFoundOverlay: shouldShowProfileNotFoundOverlay,
156173
+ canShowBottomSheetOrToast: canShowBottomSheetOrToast,
156174
+ isCompletedProfileFlow: isCompletedProfileFlow,
156175
+ updateAppToSupportedMinVersion: updateAppToSupportedMinVersion,
156176
+ setIsProfileDataLoading: setIsProfileDataLoading,
156177
+ openProfileWebview: openProfileWebview,
156178
+ setProfileData: setProfileData,
156179
+ openErrorAlert: openErrorAlert,
156180
+ openGameProfileToast: openGameProfileToast
156181
+ };
156182
+ };
156183
+ var Z_INDEX = {
156184
+ PROFILE_OVERLAY: 9998,
156185
+ CLOSE_BUTTON: 9999
156186
+ };
156187
+ var import_jsx_runtime3 = _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime");
156188
+ var GameProfile = function GameProfile(_ref25) {
156189
+ var children = _ref25.children,
156190
+ isReadyForProfileUI = _ref25.isReadyForProfileUI;
156191
+ var _useGameCenterProfile = useGameCenterProfile(isReadyForProfileUI),
156192
+ profileData = _useGameCenterProfile.profileData,
156193
+ isProfileDataRefetching = _useGameCenterProfile.isProfileDataRefetching,
156194
+ shouldShowLoadingOverlay = _useGameCenterProfile.shouldShowLoadingOverlay,
156195
+ shouldShowProfileNotFoundOverlay = _useGameCenterProfile.shouldShowProfileNotFoundOverlay,
156196
+ canShowBottomSheetOrToast = _useGameCenterProfile.canShowBottomSheetOrToast,
156197
+ isCompletedProfileFlow = _useGameCenterProfile.isCompletedProfileFlow,
156198
+ openProfileWebview = _useGameCenterProfile.openProfileWebview,
156199
+ updateAppToSupportedMinVersion = _useGameCenterProfile.updateAppToSupportedMinVersion,
156200
+ setIsProfileDataLoading = _useGameCenterProfile.setIsProfileDataLoading,
156201
+ setProfileData = _useGameCenterProfile.setProfileData,
156202
+ openErrorAlert = _useGameCenterProfile.openErrorAlert,
156203
+ openGameProfileToast = _useGameCenterProfile.openGameProfileToast;
156204
+ (0, import_react5.useEffect)(function () {
156205
+ try {
156206
+ var getProfileData = function () {
156207
+ var _ref26 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee4() {
156208
+ var data;
156209
+ return _regeneratorRuntime().wrap(function _callee4$(_context4) {
156210
+ while (1) switch (_context4.prev = _context4.next) {
156211
+ case 0:
156212
+ _context4.next = 2;
156213
+ return _getGameCenterGameProfile();
156214
+ case 2:
156215
+ data = _context4.sent;
156216
+ setProfileData(data);
156217
+ setIsProfileDataLoading(false);
156218
+ case 5:
156219
+ case "end":
156220
+ return _context4.stop();
156221
+ }
156222
+ }, _callee4);
156223
+ }));
156224
+ return function getProfileData() {
156225
+ return _ref26.apply(this, arguments);
156226
+ };
156227
+ }();
156228
+ getProfileData();
156229
+ } catch (_) {
156230
+ openErrorAlert();
156231
+ setIsProfileDataLoading(false);
156232
+ }
156233
+ }, []);
156234
+ (0, import_react5.useEffect)(function () {
156235
+ var handleGameProfileFlow = function () {
156236
+ var _ref27 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee5() {
156237
+ return _regeneratorRuntime().wrap(function _callee5$(_context5) {
156238
+ while (1) switch (_context5.prev = _context5.next) {
156239
+ case 0:
156240
+ if (canShowBottomSheetOrToast) {
156241
+ _context5.next = 2;
156242
+ break;
156243
+ }
156244
+ return _context5.abrupt("return");
156245
+ case 2:
156246
+ if (!isCompletedProfileFlow.current) {
156247
+ _context5.next = 4;
156248
+ break;
156249
+ }
156250
+ return _context5.abrupt("return");
156251
+ case 4:
156252
+ isCompletedProfileFlow.current = true;
156253
+ if (_isMinVersionSupported(GAME_CENTER_MIN_VERSION)) {
156254
+ _context5.next = 8;
156255
+ break;
156256
+ }
156257
+ updateAppToSupportedMinVersion();
156258
+ return _context5.abrupt("return");
156259
+ case 8:
156260
+ if (!((profileData === null || profileData === void 0 ? void 0 : profileData.statusCode) === "SUCCESS")) {
156261
+ _context5.next = 11;
156262
+ break;
156263
+ }
156264
+ openGameProfileToast(profileData.nickname, profileData.profileImageUri);
156265
+ return _context5.abrupt("return");
156266
+ case 11:
156267
+ if ((profileData === null || profileData === void 0 ? void 0 : profileData.statusCode) === "PROFILE_NOT_FOUND") {
156268
+ openProfileWebview();
156269
+ }
156270
+ case 12:
156271
+ case "end":
156272
+ return _context5.stop();
156273
+ }
156274
+ }, _callee5);
156275
+ }));
156276
+ return function handleGameProfileFlow() {
156277
+ return _ref27.apply(this, arguments);
156278
+ };
156279
+ }();
156280
+ handleGameProfileFlow();
156281
+ }, [canShowBottomSheetOrToast, isCompletedProfileFlow, openGameProfileToast, openProfileWebview, profileData, updateAppToSupportedMinVersion]);
156282
+ if (!_isMinVersionSupported(GAME_CENTER_MIN_VERSION)) {
156283
+ return (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, {
156284
+ children: [(0, import_jsx_runtime3.jsx)(import_react_native11.View, {
156285
+ style: {
156286
+ flex: 1,
156287
+ position: "relative"
156288
+ },
156289
+ children: children
156290
+ }), (0, import_jsx_runtime3.jsx)(import_react_native11.Pressable, {
156291
+ style: _objectSpread({}, overlayStyle),
156292
+ onPress: function onPress() {
156293
+ updateAppToSupportedMinVersion();
156294
+ }
156295
+ })]
156296
+ });
156297
+ }
156298
+ if (shouldShowLoadingOverlay || isProfileDataRefetching) {
156299
+ return (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, {
156300
+ children: [(0, import_jsx_runtime3.jsx)(import_react_native11.View, {
156301
+ style: {
156302
+ flex: 1,
156303
+ position: "relative"
156304
+ },
156305
+ children: children
156306
+ }), (0, import_jsx_runtime3.jsx)(import_react_native11.View, {
156307
+ style: _objectSpread(_objectSpread({}, overlayStyle), {}, {
156308
+ justifyContent: "center",
156309
+ alignItems: "center",
156310
+ backgroundColor: "rgba(0, 0, 0, 0.2)"
156311
+ }),
156312
+ children: (0, import_jsx_runtime3.jsx)(import_react_native10.Loader, {
156313
+ size: "large",
156314
+ type: "light"
156315
+ })
156316
+ })]
156317
+ });
156318
+ }
156319
+ if (shouldShowProfileNotFoundOverlay) {
156320
+ return (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, {
156321
+ children: [(0, import_jsx_runtime3.jsx)(import_react_native11.View, {
156322
+ style: {
156323
+ flex: 1,
156324
+ position: "relative"
156325
+ },
156326
+ children: children
156327
+ }), shouldShowProfileNotFoundOverlay && (0, import_jsx_runtime3.jsx)(import_react_native11.Pressable, {
156328
+ style: _objectSpread({}, overlayStyle),
156329
+ onPress: function onPress() {
156330
+ openProfileWebview();
156331
+ }
156332
+ })]
156333
+ });
156334
+ }
156335
+ return (0, import_jsx_runtime3.jsx)(import_jsx_runtime3.Fragment, {
156336
+ children: (0, import_jsx_runtime3.jsx)(import_react_native11.View, {
156337
+ style: {
156338
+ flex: 1,
156339
+ position: "relative"
156340
+ },
156341
+ children: children
156342
+ })
156343
+ });
156344
+ };
156345
+ var overlayStyle = {
156346
+ position: "absolute",
156347
+ top: 0,
156348
+ left: 0,
156349
+ right: 0,
156350
+ bottom: 0,
156351
+ zIndex: Z_INDEX.PROFILE_OVERLAY
156352
+ };
156353
+ var import_react_native_svg = _$$_REQUIRE(_dependencyMap[11], "@react-native-bedrock/native/react-native-svg");
156354
+ var import_react_native15 = _$$_REQUIRE(_dependencyMap[1], "@toss-design-system/react-native");
156355
+ var import_react_native16 = _$$_REQUIRE(_dependencyMap[4], "react-native");
156356
+ var import_react_native13 = _$$_REQUIRE(_dependencyMap[4], "react-native");
156357
+ var import_react_native12 = _$$_REQUIRE(_dependencyMap[4], "react-native");
156358
+ function byPlatform(_ref28) {
155839
156359
  var _props$import_react_n;
155840
- var props = _extends({}, (_objectDestructuringEmpty(_ref10), _ref10));
155841
- return ((_props$import_react_n = props[import_react_native7.Platform.OS]) !== null && _props$import_react_n !== void 0 ? _props$import_react_n : props.fallback)();
156360
+ var props = _extends({}, (_objectDestructuringEmpty(_ref28), _ref28));
156361
+ return ((_props$import_react_n = props[import_react_native12.Platform.OS]) !== null && _props$import_react_n !== void 0 ? _props$import_react_n : props.fallback)();
155842
156362
  }
155843
156363
  var RIGHT_MARGIN = 24;
155844
156364
  var IOS_DEFAULT_MARGIN = 20;
155845
- var import_jsx_runtime2 = _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime");
156365
+ var import_jsx_runtime4 = _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime");
155846
156366
  function IOSHeaderRight(props) {
155847
- return (0, import_jsx_runtime2.jsx)(import_react_native8.View, _objectSpread({
156367
+ return (0, import_jsx_runtime4.jsx)(import_react_native13.View, _objectSpread({
155848
156368
  style: styles.ios
155849
156369
  }, props));
155850
156370
  }
155851
156371
  function AndroidHeaderRight(props) {
155852
- return (0, import_jsx_runtime2.jsx)(import_react_native8.View, _objectSpread({
156372
+ return (0, import_jsx_runtime4.jsx)(import_react_native13.View, _objectSpread({
155853
156373
  style: styles.android
155854
156374
  }, props));
155855
156375
  }
155856
156376
  function HeaderRight(props) {
155857
156377
  return byPlatform({
155858
156378
  ios: function ios() {
155859
- return (0, import_jsx_runtime2.jsx)(IOSHeaderRight, _objectSpread({}, props));
156379
+ return (0, import_jsx_runtime4.jsx)(IOSHeaderRight, _objectSpread({}, props));
155860
156380
  },
155861
156381
  android: function android() {
155862
- return (0, import_jsx_runtime2.jsx)(AndroidHeaderRight, _objectSpread({}, props));
156382
+ return (0, import_jsx_runtime4.jsx)(AndroidHeaderRight, _objectSpread({}, props));
155863
156383
  },
155864
156384
  fallback: function fallback() {
155865
- return (0, import_jsx_runtime2.jsx)(IOSHeaderRight, _objectSpread({}, props));
156385
+ return (0, import_jsx_runtime4.jsx)(IOSHeaderRight, _objectSpread({}, props));
155866
156386
  }
155867
156387
  });
155868
156388
  }
155869
- var styles = import_react_native8.StyleSheet.create({
156389
+ var styles = import_react_native13.StyleSheet.create({
155870
156390
  ios: {
155871
156391
  marginRight: -IOS_DEFAULT_MARGIN + RIGHT_MARGIN,
155872
156392
  flexDirection: "row"
@@ -155876,38 +156396,38 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155876
156396
  }
155877
156397
  });
155878
156398
  var import_react_native_safe_area_context = _$$_REQUIRE(_dependencyMap[12], "@react-native-bedrock/native/react-native-safe-area-context");
155879
- var import_react_native9 = _$$_REQUIRE(_dependencyMap[4], "react-native");
156399
+ var import_react_native14 = _$$_REQUIRE(_dependencyMap[4], "react-native");
155880
156400
  function useSafeAreaTop() {
155881
156401
  var safeAreaInsets = (0, import_react_native_safe_area_context.useSafeAreaInsets)();
155882
- var hasDynamicIsland = import_react_native9.Platform.OS === "ios" && safeAreaInsets.top > 50;
156402
+ var hasDynamicIsland = import_react_native14.Platform.OS === "ios" && safeAreaInsets.top > 50;
155883
156403
  var safeAreaTop = hasDynamicIsland ? safeAreaInsets.top - 5 : safeAreaInsets.top;
155884
156404
  return safeAreaTop;
155885
156405
  }
155886
- var import_jsx_runtime3 = _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime");
156406
+ var import_jsx_runtime5 = _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime");
155887
156407
  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>';
155888
- function GameNavigationBar(_ref11) {
155889
- var onClose = _ref11.onClose;
156408
+ function GameNavigationBar(_ref29) {
156409
+ var onClose = _ref29.onClose;
155890
156410
  var safeAreaTop = useSafeAreaTop();
155891
- return (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, {
155892
- children: [(0, import_jsx_runtime3.jsx)(import_react_native10.PageNavbar, {
156411
+ return (0, import_jsx_runtime5.jsxs)(import_jsx_runtime5.Fragment, {
156412
+ children: [(0, import_jsx_runtime5.jsx)(import_react_native15.PageNavbar, {
155893
156413
  preference: {
155894
156414
  type: "none"
155895
156415
  }
155896
- }), (0, import_jsx_runtime3.jsx)(import_react_native11.View, {
156416
+ }), (0, import_jsx_runtime5.jsx)(import_react_native16.View, {
155897
156417
  style: {
155898
156418
  width: "100%",
155899
- height: import_react_native11.Platform.OS === "ios" ? 44 : 54,
156419
+ height: import_react_native16.Platform.OS === "ios" ? 44 : 54,
155900
156420
  flexDirection: "row",
155901
156421
  alignItems: "center",
155902
156422
  justifyContent: "flex-end",
155903
156423
  position: "absolute",
155904
- zIndex: 9999,
156424
+ zIndex: Z_INDEX.CLOSE_BUTTON,
155905
156425
  marginTop: safeAreaTop,
155906
- paddingRight: import_react_native11.Platform.OS === "ios" ? 10 : 8
156426
+ paddingRight: import_react_native16.Platform.OS === "ios" ? 10 : 8
155907
156427
  },
155908
156428
  pointerEvents: "box-none",
155909
- children: (0, import_jsx_runtime3.jsx)(HeaderRight, {
155910
- children: (0, import_jsx_runtime3.jsx)(import_react_native11.TouchableOpacity, {
156429
+ children: (0, import_jsx_runtime5.jsx)(HeaderRight, {
156430
+ children: (0, import_jsx_runtime5.jsx)(import_react_native16.TouchableOpacity, {
155911
156431
  hitSlop: {
155912
156432
  left: 8,
155913
156433
  right: 8
@@ -155916,10 +156436,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155916
156436
  accessible: true,
155917
156437
  accessibilityLabel: "\uAC8C\uC784\uC885\uB8CC",
155918
156438
  style: {
155919
- padding: import_react_native11.Platform.OS === "ios" ? 7 : 9
156439
+ padding: import_react_native16.Platform.OS === "ios" ? 7 : 9
155920
156440
  },
155921
156441
  onPress: onClose,
155922
- children: (0, import_jsx_runtime3.jsx)(import_react_native_svg.SvgXml, {
156442
+ children: (0, import_jsx_runtime5.jsx)(import_react_native_svg.SvgXml, {
155923
156443
  xml: originXML,
155924
156444
  width: 30,
155925
156445
  height: 30
@@ -155929,72 +156449,83 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155929
156449
  })]
155930
156450
  });
155931
156451
  }
155932
- var import_jsx_runtime4 = _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime");
155933
- var GameWebView = (0, import_react4.forwardRef)(function GameWebView2(props, ref) {
155934
- var _ref12 = (0, import_react_native12.useDialog)(),
155935
- openConfirm = _ref12.openConfirm;
156452
+ var import_jsx_runtime6 = _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime");
156453
+ var GameWebView = (0, import_react6.forwardRef)(function GameWebView2(props, ref) {
156454
+ var _ref30 = (0, import_react_native17.useDialog)(),
156455
+ openConfirm = _ref30.openConfirm;
155936
156456
  var _getAppsInTossGlobals = getAppsInTossGlobals(),
155937
156457
  brandDisplayName = _getAppsInTossGlobals.brandDisplayName;
155938
- var handleClose = (0, import_react4.useCallback)(_asyncToGenerator(_regeneratorRuntime().mark(function _callee() {
156458
+ var _ref31 = (0, import_react6.useState)(false),
156459
+ _ref32 = _slicedToArray(_ref31, 2),
156460
+ isEntryMessageExited = _ref32[0],
156461
+ setIsEntryMessageExited = _ref32[1];
156462
+ var handleClose = (0, import_react6.useCallback)(_asyncToGenerator(_regeneratorRuntime().mark(function _callee6() {
155939
156463
  var isConfirmed;
155940
- return _regeneratorRuntime().wrap(function _callee$(_context) {
155941
- while (1) switch (_context.prev = _context.next) {
156464
+ return _regeneratorRuntime().wrap(function _callee6$(_context6) {
156465
+ while (1) switch (_context6.prev = _context6.next) {
155942
156466
  case 0:
155943
- _context.next = 2;
156467
+ _context6.next = 2;
155944
156468
  return openConfirm({
155945
- title: "".concat((0, import_es_hangul.josa)(brandDisplayName, "\uC744/\uB97C"), " \uC885\uB8CC\uD560\uAE4C\uC694?"),
156469
+ title: "".concat((0, import_es_hangul2.josa)(brandDisplayName, "\uC744/\uB97C"), " \uC885\uB8CC\uD560\uAE4C\uC694?"),
155946
156470
  leftButton: "\uCDE8\uC18C",
155947
156471
  rightButton: "\uC885\uB8CC\uD558\uAE30",
155948
156472
  closeOnDimmerClick: true
155949
156473
  });
155950
156474
  case 2:
155951
- isConfirmed = _context.sent;
156475
+ isConfirmed = _context6.sent;
155952
156476
  if (isConfirmed) {
155953
- (0, import_react_native_bedrock9.closeView)();
156477
+ (0, import_react_native_bedrock12.closeView)();
155954
156478
  }
155955
156479
  case 4:
155956
156480
  case "end":
155957
- return _context.stop();
156481
+ return _context6.stop();
155958
156482
  }
155959
- }, _callee);
156483
+ }, _callee6);
155960
156484
  })), [brandDisplayName, openConfirm]);
155961
- (0, import_react4.useEffect)(function () {
155962
- if (import_react_native13.Platform.OS === "ios") {
155963
- (0, import_react_native_bedrock9.setIosSwipeGestureEnabled)({
156485
+ (0, import_react6.useEffect)(function () {
156486
+ if (import_react_native18.Platform.OS === "ios") {
156487
+ (0, import_react_native_bedrock12.setIosSwipeGestureEnabled)({
155964
156488
  isEnabled: false
155965
156489
  });
155966
156490
  return function () {
155967
- (0, import_react_native_bedrock9.setIosSwipeGestureEnabled)({
156491
+ (0, import_react_native_bedrock12.setIosSwipeGestureEnabled)({
155968
156492
  isEnabled: true
155969
156493
  });
155970
156494
  };
155971
156495
  }
155972
156496
  return;
155973
156497
  }, []);
155974
- (0, import_react4.useEffect)(function () {
156498
+ (0, import_react6.useEffect)(function () {
155975
156499
  var backHandler = function backHandler() {
155976
156500
  handleClose();
155977
156501
  return true;
155978
156502
  };
155979
- import_react_native13.BackHandler.addEventListener("hardwareBackPress", backHandler);
156503
+ import_react_native18.BackHandler.addEventListener("hardwareBackPress", backHandler);
155980
156504
  return function () {
155981
- import_react_native13.BackHandler.removeEventListener("hardwareBackPress", backHandler);
156505
+ import_react_native18.BackHandler.removeEventListener("hardwareBackPress", backHandler);
155982
156506
  };
155983
156507
  }, [handleClose]);
155984
- return (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, {
155985
- children: [(0, import_jsx_runtime4.jsx)(GameNavigationBar, {
156508
+ (0, import_react6.useEffect)(function () {
156509
+ _appsInTossEvent.addEventListener("entryMessageExited", {
156510
+ onEvent: function onEvent() {
156511
+ setIsEntryMessageExited(true);
156512
+ }
156513
+ });
156514
+ }, []);
156515
+ return (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, {
156516
+ children: [(0, import_jsx_runtime6.jsx)(GameNavigationBar, {
155986
156517
  onClose: handleClose
155987
- }), (0, import_jsx_runtime4.jsx)(import_react_native13.View, {
155988
- style: {
155989
- flex: 1
155990
- },
155991
- children: (0, import_jsx_runtime4.jsx)(import_react_native_webview.WebView, _objectSpread({
156518
+ }), _getOperationalEnvironment() === "toss" ? (0, import_jsx_runtime6.jsx)(GameProfile, {
156519
+ isReadyForProfileUI: isEntryMessageExited,
156520
+ children: (0, import_jsx_runtime6.jsx)(import_react_native_webview.WebView, _objectSpread({
155992
156521
  ref: ref
155993
156522
  }, props))
155994
- })]
156523
+ }) : (0, import_jsx_runtime6.jsx)(import_react_native_webview.WebView, _objectSpread({
156524
+ ref: ref
156525
+ }, props))]
155995
156526
  });
155996
156527
  });
155997
- var import_react5 = _$$_REQUIRE(_dependencyMap[3], "react");
156528
+ var import_react7 = _$$_REQUIRE(_dependencyMap[3], "react");
155998
156529
  function serializeError(error) {
155999
156530
  return JSON.stringify(error, function (_, value) {
156000
156531
  if (value instanceof Error) {
@@ -156008,37 +156539,37 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156008
156539
  return value;
156009
156540
  });
156010
156541
  }
156011
- function methodHandler(_ref14) {
156012
- var args = _ref14.args,
156013
- eventId = _ref14.eventId,
156014
- functionName = _ref14.functionName,
156015
- handlerMap = _ref14.handlerMap,
156016
- injectJavaScript = _ref14.injectJavaScript;
156542
+ function methodHandler(_ref34) {
156543
+ var args = _ref34.args,
156544
+ eventId = _ref34.eventId,
156545
+ functionName = _ref34.functionName,
156546
+ handlerMap = _ref34.handlerMap,
156547
+ injectJavaScript = _ref34.injectJavaScript;
156017
156548
  var func = handlerMap[functionName];
156018
156549
  if (!func) {
156019
156550
  console.error("".concat(functionName, " is not a function"));
156020
156551
  return;
156021
156552
  }
156022
156553
  var wrappedFunc = function () {
156023
- var _ref15 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee2() {
156554
+ var _ref35 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee7() {
156024
156555
  var result,
156025
- _args2 = arguments;
156026
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
156027
- while (1) switch (_context2.prev = _context2.next) {
156556
+ _args7 = arguments;
156557
+ return _regeneratorRuntime().wrap(function _callee7$(_context7) {
156558
+ while (1) switch (_context7.prev = _context7.next) {
156028
156559
  case 0:
156029
- _context2.next = 2;
156030
- return func.apply(void 0, _args2);
156560
+ _context7.next = 2;
156561
+ return func.apply(void 0, _args7);
156031
156562
  case 2:
156032
- result = _context2.sent;
156033
- return _context2.abrupt("return", result);
156563
+ result = _context7.sent;
156564
+ return _context7.abrupt("return", result);
156034
156565
  case 4:
156035
156566
  case "end":
156036
- return _context2.stop();
156567
+ return _context7.stop();
156037
156568
  }
156038
- }, _callee2);
156569
+ }, _callee7);
156039
156570
  }));
156040
156571
  return function wrappedFunc() {
156041
- return _ref15.apply(this, arguments);
156572
+ return _ref35.apply(this, arguments);
156042
156573
  };
156043
156574
  }();
156044
156575
  wrappedFunc.apply(void 0, _toConsumableArray(args)).then(function (result) {
@@ -156049,18 +156580,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156049
156580
  });
156050
156581
  }
156051
156582
  var globalEventListenerMap = new Map();
156052
- function useBridgeHandler(_ref16) {
156053
- var onMessage = _ref16.onMessage,
156054
- constantHandlerMap = _ref16.constantHandlerMap,
156055
- asyncHandlerMap = _ref16.asyncHandlerMap,
156056
- eventListenerMap = _ref16.eventListenerMap,
156057
- originalInjectedJavaScript = _ref16.injectedJavaScript;
156058
- var ref = (0, import_react5.useRef)(null);
156059
- var injectedJavaScript = (0, import_react5.useMemo)(function () {
156060
- return ["window.__CONSTANT_HANDLER_MAP = ".concat(JSON.stringify(Object.entries(constantHandlerMap).reduce(function (acc, _ref17) {
156061
- var _ref18 = _slicedToArray(_ref17, 2),
156062
- key = _ref18[0],
156063
- value = _ref18[1];
156583
+ function useBridgeHandler(_ref36) {
156584
+ var onMessage = _ref36.onMessage,
156585
+ constantHandlerMap = _ref36.constantHandlerMap,
156586
+ asyncHandlerMap = _ref36.asyncHandlerMap,
156587
+ eventListenerMap = _ref36.eventListenerMap,
156588
+ originalInjectedJavaScript = _ref36.injectedJavaScript;
156589
+ var ref = (0, import_react7.useRef)(null);
156590
+ var injectedJavaScript = (0, import_react7.useMemo)(function () {
156591
+ return ["window.__CONSTANT_HANDLER_MAP = ".concat(JSON.stringify(Object.entries(constantHandlerMap).reduce(function (acc, _ref37) {
156592
+ var _ref38 = _slicedToArray(_ref37, 2),
156593
+ key = _ref38[0],
156594
+ value = _ref38[1];
156064
156595
  acc[key] = typeof value === "function" ? value() : value;
156065
156596
  return acc;
156066
156597
  }, {}))), originalInjectedJavaScript, "true"].join("\n");
@@ -156077,22 +156608,22 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156077
156608
  (_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 "));
156078
156609
  };
156079
156610
  };
156080
- var $onMessage = (0, import_react5.useCallback)(function () {
156081
- var _ref19 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee3(e) {
156611
+ var $onMessage = (0, import_react7.useCallback)(function () {
156612
+ var _ref39 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee8(e) {
156082
156613
  var data, _eventListenerMap$dat, handleOnEvent, handleOnError, remove, key, _remove, _ref$current3;
156083
- return _regeneratorRuntime().wrap(function _callee3$(_context3) {
156084
- while (1) switch (_context3.prev = _context3.next) {
156614
+ return _regeneratorRuntime().wrap(function _callee8$(_context8) {
156615
+ while (1) switch (_context8.prev = _context8.next) {
156085
156616
  case 0:
156086
156617
  onMessage === null || onMessage === void 0 || onMessage(e);
156087
156618
  data = JSON.parse(e.nativeEvent.data);
156088
156619
  if (!(_typeof(data) !== "object" || data === null || typeof data.functionName !== "string" || typeof data.eventId !== "string" || typeof data.type !== "string" || !["addEventListener", "removeEventListener", "method"].includes(data.type))) {
156089
- _context3.next = 4;
156620
+ _context8.next = 4;
156090
156621
  break;
156091
156622
  }
156092
- return _context3.abrupt("return");
156623
+ return _context8.abrupt("return");
156093
156624
  case 4:
156094
- _context3.t0 = data.type;
156095
- _context3.next = _context3.t0 === "addEventListener" ? 7 : _context3.t0 === "removeEventListener" ? 12 : _context3.t0 === "method" ? 17 : 19;
156625
+ _context8.t0 = data.type;
156626
+ _context8.next = _context8.t0 === "addEventListener" ? 7 : _context8.t0 === "removeEventListener" ? 12 : _context8.t0 === "method" ? 17 : 19;
156096
156627
  break;
156097
156628
  case 7:
156098
156629
  handleOnEvent = createHandleOnEvent(data.functionName, data.eventId);
@@ -156105,13 +156636,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156105
156636
  if (remove) {
156106
156637
  globalEventListenerMap.set("".concat(data.functionName, "/").concat(data.eventId), remove);
156107
156638
  }
156108
- return _context3.abrupt("break", 19);
156639
+ return _context8.abrupt("break", 19);
156109
156640
  case 12:
156110
156641
  key = "".concat(data.functionName, "/").concat(data.eventId);
156111
156642
  _remove = globalEventListenerMap.get(key);
156112
156643
  _remove === null || _remove === void 0 || _remove();
156113
156644
  globalEventListenerMap.delete(key);
156114
- return _context3.abrupt("break", 19);
156645
+ return _context8.abrupt("break", 19);
156115
156646
  case 17:
156116
156647
  methodHandler({
156117
156648
  args: data.args,
@@ -156120,15 +156651,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156120
156651
  handlerMap: asyncHandlerMap,
156121
156652
  injectJavaScript: (_ref$current3 = ref.current) === null || _ref$current3 === void 0 ? void 0 : _ref$current3.injectJavaScript
156122
156653
  });
156123
- return _context3.abrupt("break", 19);
156654
+ return _context8.abrupt("break", 19);
156124
156655
  case 19:
156125
156656
  case "end":
156126
- return _context3.stop();
156657
+ return _context8.stop();
156127
156658
  }
156128
- }, _callee3);
156659
+ }, _callee8);
156129
156660
  }));
156130
- return function (_x13) {
156131
- return _ref19.apply(this, arguments);
156661
+ return function (_x15) {
156662
+ return _ref39.apply(this, arguments);
156132
156663
  };
156133
156664
  }(), [onMessage]);
156134
156665
  return {
@@ -156155,7 +156686,207 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156155
156686
  return _startUpdateLocation;
156156
156687
  }
156157
156688
  });
156158
- var import_react_native_bedrock10 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
156689
+ var import_react_native19 = _$$_REQUIRE(_dependencyMap[4], "react-native");
156690
+ var import_react_native_bedrock13 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
156691
+ var FontA11yCategory = {
156692
+ Large: "Large",
156693
+ xLarge: "xLarge",
156694
+ xxLarge: "xxLarge",
156695
+ xxxLarge: "xxxLarge",
156696
+ A11y_Medium: "A11y_Medium",
156697
+ A11y_Large: "A11y_Large",
156698
+ A11y_xLarge: "A11y_xLarge",
156699
+ A11y_xxLarge: "A11y_xxLarge",
156700
+ A11y_xxxLarge: "A11y_xxxLarge"
156701
+ };
156702
+ var androidFontScaleMap = {
156703
+ 100: FontA11yCategory.Large,
156704
+ 110: FontA11yCategory.xLarge,
156705
+ 120: FontA11yCategory.xxLarge,
156706
+ 135: FontA11yCategory.xxxLarge,
156707
+ 160: FontA11yCategory.A11y_Medium,
156708
+ 190: FontA11yCategory.A11y_Large,
156709
+ 235: FontA11yCategory.A11y_xLarge,
156710
+ 275: FontA11yCategory.A11y_xxLarge,
156711
+ 310: FontA11yCategory.A11y_xxxLarge
156712
+ };
156713
+ var iosScaleToAndroidScale = {
156714
+ 0.823: 100,
156715
+ 0.882: 100,
156716
+ 0.941: 100,
156717
+ 1: 100,
156718
+ 1.118: 110,
156719
+ 1.235: 120,
156720
+ 1.353: 135,
156721
+ 1.786: 160,
156722
+ 2.143: 190,
156723
+ 2.643: 235,
156724
+ 3.143: 275,
156725
+ 3.571: 310
156726
+ };
156727
+ function convertToAndroidStyleScale(fontScale, platform) {
156728
+ if (platform === "android") {
156729
+ if (fontScale <= 1) {
156730
+ return 100;
156731
+ }
156732
+ var scaledValue = Math.round(fontScale * 100);
156733
+ var keys = Object.keys(androidFontScaleMap).map(Number).sort(function (a, b) {
156734
+ return a - b;
156735
+ });
156736
+ var closestKey = keys[0];
156737
+ var minDiff = Math.abs(scaledValue - closestKey);
156738
+ var _iterator2 = _createForOfIteratorHelper(keys),
156739
+ _step2;
156740
+ try {
156741
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
156742
+ var key = _step2.value;
156743
+ var diff = Math.abs(scaledValue - key);
156744
+ if (diff < minDiff) {
156745
+ minDiff = diff;
156746
+ closestKey = key;
156747
+ }
156748
+ }
156749
+ } catch (err) {
156750
+ _iterator2.e(err);
156751
+ } finally {
156752
+ _iterator2.f();
156753
+ }
156754
+ return closestKey;
156755
+ } else {
156756
+ var iosScales = Object.keys(iosScaleToAndroidScale).map(Number);
156757
+ var closestScale = iosScales[0];
156758
+ var _minDiff = Math.abs(fontScale - closestScale);
156759
+ var _iterator3 = _createForOfIteratorHelper(iosScales),
156760
+ _step3;
156761
+ try {
156762
+ for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
156763
+ var scale = _step3.value;
156764
+ var _diff = Math.abs(fontScale - scale);
156765
+ if (_diff < _minDiff) {
156766
+ _minDiff = _diff;
156767
+ closestScale = scale;
156768
+ }
156769
+ }
156770
+ } catch (err) {
156771
+ _iterator3.e(err);
156772
+ } finally {
156773
+ _iterator3.f();
156774
+ }
156775
+ return iosScaleToAndroidScale[closestScale];
156776
+ }
156777
+ }
156778
+ function mapIOSFontScaleToCategory(fontScale) {
156779
+ if (fontScale < 1) {
156780
+ return FontA11yCategory.Large;
156781
+ }
156782
+ if (Math.abs(fontScale - 1) < 0.05) {
156783
+ return FontA11yCategory.Large;
156784
+ }
156785
+ if (Math.abs(fontScale - 1.118) < 0.05) {
156786
+ return FontA11yCategory.xLarge;
156787
+ }
156788
+ if (Math.abs(fontScale - 1.235) < 0.05) {
156789
+ return FontA11yCategory.xxLarge;
156790
+ }
156791
+ if (Math.abs(fontScale - 1.353) < 0.05) {
156792
+ return FontA11yCategory.xxxLarge;
156793
+ }
156794
+ if (Math.abs(fontScale - 1.786) < 0.05) {
156795
+ return FontA11yCategory.A11y_Medium;
156796
+ }
156797
+ if (Math.abs(fontScale - 2.143) < 0.05) {
156798
+ return FontA11yCategory.A11y_Large;
156799
+ }
156800
+ if (Math.abs(fontScale - 2.643) < 0.05) {
156801
+ return FontA11yCategory.A11y_xLarge;
156802
+ }
156803
+ if (Math.abs(fontScale - 3.143) < 0.05) {
156804
+ return FontA11yCategory.A11y_xxLarge;
156805
+ }
156806
+ if (Math.abs(fontScale - 3.571) < 0.05) {
156807
+ return FontA11yCategory.A11y_xxxLarge;
156808
+ }
156809
+ return FontA11yCategory.Large;
156810
+ }
156811
+ function mapAndroidFontScaleToCategory(fontScale) {
156812
+ if (fontScale <= 1) {
156813
+ return androidFontScaleMap[100];
156814
+ }
156815
+ var scaledValue = Math.round(fontScale * 100);
156816
+ var keys = Object.keys(androidFontScaleMap).map(Number).sort(function (a, b) {
156817
+ return a - b;
156818
+ });
156819
+ if (keys.length === 0) {
156820
+ return androidFontScaleMap[100];
156821
+ }
156822
+ var closestKey = keys[0];
156823
+ var minDiff = Math.abs(scaledValue - closestKey);
156824
+ var _iterator4 = _createForOfIteratorHelper(keys),
156825
+ _step4;
156826
+ try {
156827
+ for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
156828
+ var key = _step4.value;
156829
+ var diff = Math.abs(scaledValue - key);
156830
+ if (diff < minDiff) {
156831
+ minDiff = diff;
156832
+ closestKey = key;
156833
+ }
156834
+ }
156835
+ } catch (err) {
156836
+ _iterator4.e(err);
156837
+ } finally {
156838
+ _iterator4.f();
156839
+ }
156840
+ return androidFontScaleMap[closestKey];
156841
+ }
156842
+ function mapFontScaleToCategory(fontScale, platform) {
156843
+ return platform === "ios" ? mapIOSFontScaleToCategory(fontScale) : mapAndroidFontScaleToCategory(fontScale);
156844
+ }
156845
+ function _useCreateUserAgent(_ref40) {
156846
+ var batteryModePreference = _ref40.batteryModePreference,
156847
+ colorPreference = _ref40.colorPreference,
156848
+ locale = _ref40.locale,
156849
+ navbarPreference = _ref40.navbarPreference,
156850
+ pureSafeArea = _ref40.pureSafeArea,
156851
+ safeArea = _ref40.safeArea,
156852
+ safeAreaBottomTransparency = _ref40.safeAreaBottomTransparency;
156853
+ var platform = (0, import_react_native_bedrock13.getPlatformOS)();
156854
+ var appVersion = _getTossAppVersion();
156855
+ var _ref41 = (0, import_react_native19.useWindowDimensions)(),
156856
+ fontScale = _ref41.fontScale;
156857
+ var platformString = platform === "ios" ? "iPhone" : "Android";
156858
+ var fontA11y = mapFontScaleToCategory(fontScale, platform);
156859
+ var normalizedFontScale = convertToAndroidStyleScale(fontScale, platform);
156860
+ 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(" ");
156861
+ }
156862
+ var import_react8 = _$$_REQUIRE(_dependencyMap[3], "react");
156863
+ var import_react_native_bedrock14 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
156864
+ function _useGeolocation(_ref42) {
156865
+ var accuracy = _ref42.accuracy,
156866
+ distanceInterval = _ref42.distanceInterval,
156867
+ timeInterval = _ref42.timeInterval;
156868
+ var isVisible = (0, import_react_native_bedrock14.useVisibility)();
156869
+ var _ref43 = (0, import_react8.useState)(null),
156870
+ _ref44 = _slicedToArray(_ref43, 2),
156871
+ location = _ref44[0],
156872
+ setLocation = _ref44[1];
156873
+ (0, import_react8.useEffect)(function () {
156874
+ if (!isVisible) {
156875
+ return;
156876
+ }
156877
+ return _startUpdateLocation({
156878
+ options: {
156879
+ accuracy: accuracy,
156880
+ distanceInterval: distanceInterval,
156881
+ timeInterval: timeInterval
156882
+ },
156883
+ onEvent: setLocation,
156884
+ onError: console.error
156885
+ });
156886
+ }, [accuracy, distanceInterval, timeInterval, isVisible]);
156887
+ return location;
156888
+ }
156889
+ var import_react_native_bedrock15 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
156159
156890
  var extractDateFromUUIDv7 = function extractDateFromUUIDv7(uuid) {
156160
156891
  var timestampHex = uuid.split("-").join("").slice(0, 12);
156161
156892
  var timestamp = Number.parseInt(timestampHex, 16);
@@ -156177,7 +156908,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156177
156908
  };
156178
156909
  var getReferrer = function getReferrer() {
156179
156910
  try {
156180
- var referrer = new URL((0, import_react_native_bedrock10.getSchemeUri)());
156911
+ var referrer = new URL((0, import_react_native_bedrock15.getSchemeUri)());
156181
156912
  return referrer.searchParams.get("referrer");
156182
156913
  } catch (_unused4) {
156183
156914
  return "";
@@ -156199,32 +156930,32 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156199
156930
  };
156200
156931
  return _eventLog(log);
156201
156932
  };
156202
- var import_jsx_runtime5 = _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime");
156933
+ var import_jsx_runtime7 = _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime");
156203
156934
  var appsInTossGlobals = getAppsInTossGlobals();
156204
156935
  var operationalEnvironment = _getOperationalEnvironment();
156205
156936
  var TYPES = ["partner", "external", "game"];
156206
156937
  var WEBVIEW_TYPES = {
156207
- partner: import_react_native14.PartnerWebViewScreen,
156208
- external: import_react_native14.ExternalWebViewScreen,
156938
+ partner: import_react_native20.PartnerWebViewScreen,
156939
+ external: import_react_native20.ExternalWebViewScreen,
156209
156940
  game: GameWebView
156210
156941
  };
156211
156942
  function mergeSchemeQueryParamsInto(url) {
156212
156943
  var baseUrl = new URL(url);
156213
- var schemeUrl = new URL((0, import_react_native_bedrock11.getSchemeUri)());
156944
+ var schemeUrl = new URL((0, import_react_native_bedrock16.getSchemeUri)());
156214
156945
  baseUrl.pathname = schemeUrl.pathname;
156215
- var _iterator2 = _createForOfIteratorHelper(schemeUrl.searchParams.entries()),
156216
- _step2;
156946
+ var _iterator5 = _createForOfIteratorHelper(schemeUrl.searchParams.entries()),
156947
+ _step5;
156217
156948
  try {
156218
- for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
156219
- var _step2$value = _slicedToArray(_step2.value, 2),
156220
- key = _step2$value[0],
156221
- value = _step2$value[1];
156949
+ for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
156950
+ var _step5$value = _slicedToArray(_step5.value, 2),
156951
+ key = _step5$value[0],
156952
+ value = _step5$value[1];
156222
156953
  baseUrl.searchParams.set(key, value);
156223
156954
  }
156224
156955
  } catch (err) {
156225
- _iterator2.e(err);
156956
+ _iterator5.e(err);
156226
156957
  } finally {
156227
- _iterator2.f();
156958
+ _iterator5.f();
156228
156959
  }
156229
156960
  return baseUrl;
156230
156961
  }
@@ -156242,55 +156973,56 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156242
156973
  }
156243
156974
  return url.toString();
156244
156975
  }
156245
- function _WebView(_ref20) {
156246
- var type = _ref20.type,
156247
- local = _ref20.local,
156248
- onMessage = _ref20.onMessage,
156249
- props = _objectWithoutProperties(_ref20, _excluded3);
156976
+ function _WebView(_ref45) {
156977
+ var type = _ref45.type,
156978
+ local = _ref45.local,
156979
+ onMessage = _ref45.onMessage,
156980
+ props = _objectWithoutProperties(_ref45, _excluded3);
156250
156981
  if (!TYPES.includes(type)) {
156251
156982
  throw new Error("Invalid WebView type: '".concat(type, "'"));
156252
156983
  }
156253
- var bedrockEvent = (0, import_react_native_bedrock11.useBedrockEvent)();
156254
- var uri = (0, import_react6.useMemo)(function () {
156984
+ var bedrockEvent = (0, import_react_native_bedrock16.useBedrockEvent)();
156985
+ var uri = (0, import_react9.useMemo)(function () {
156255
156986
  return getWebViewUri(local);
156256
156987
  }, [local]);
156257
- var top = (0, import_private.useSafeAreaTop)();
156258
- var bottom = (0, import_private.useSafeAreaBottom)();
156988
+ var top = (0, import_private3.useSafeAreaTop)();
156989
+ var bottom = (0, import_private3.useSafeAreaBottom)();
156990
+ var global2 = getAppsInTossGlobals();
156259
156991
  var handler = useBridgeHandler({
156260
156992
  onMessage: onMessage,
156261
156993
  eventListenerMap: _objectSpread(_objectSpread({}, event_bridges_exports), {}, {
156262
- backEvent: function backEvent(_ref21) {
156263
- var onEvent = _ref21.onEvent,
156264
- onError = _ref21.onError,
156265
- options = _ref21.options;
156994
+ backEvent: function backEvent(_ref46) {
156995
+ var onEvent = _ref46.onEvent,
156996
+ onError = _ref46.onError,
156997
+ options = _ref46.options;
156266
156998
  return bedrockEvent.addEventListener("backEvent", {
156267
156999
  onEvent: onEvent,
156268
157000
  onError: onError,
156269
157001
  options: options
156270
157002
  });
156271
157003
  },
156272
- entryMessageExited: function entryMessageExited(_ref22) {
156273
- var onEvent = _ref22.onEvent,
156274
- onError = _ref22.onError;
157004
+ entryMessageExited: function entryMessageExited(_ref47) {
157005
+ var onEvent = _ref47.onEvent,
157006
+ onError = _ref47.onError;
156275
157007
  return _appsInTossEvent.addEventListener("entryMessageExited", {
156276
157008
  onEvent: onEvent,
156277
157009
  onError: onError
156278
157010
  });
156279
157011
  },
156280
- updateLocationEvent: function updateLocationEvent(_ref23) {
156281
- var onEvent = _ref23.onEvent,
156282
- onError = _ref23.onError,
156283
- options = _ref23.options;
157012
+ updateLocationEvent: function updateLocationEvent(_ref48) {
157013
+ var onEvent = _ref48.onEvent,
157014
+ onError = _ref48.onError,
157015
+ options = _ref48.options;
156284
157016
  return _appsInTossEvent.addEventListener("updateLocationEvent", {
156285
157017
  onEvent: onEvent,
156286
157018
  onError: onError,
156287
157019
  options: options
156288
157020
  });
156289
157021
  },
156290
- appBridgeCallbackEvent: function appBridgeCallbackEvent(_ref24) {
156291
- var onEvent = _ref24.onEvent,
156292
- onError = _ref24.onError,
156293
- options = _ref24.options;
157022
+ appBridgeCallbackEvent: function appBridgeCallbackEvent(_ref49) {
157023
+ var onEvent = _ref49.onEvent,
157024
+ onError = _ref49.onError,
157025
+ options = _ref49.options;
156294
157026
  return _appsInTossEvent.addEventListener("appBridgeCallbackEvent", {
156295
157027
  onEvent: onEvent,
156296
157028
  onError: onError,
@@ -156302,13 +157034,21 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156302
157034
  loadAdMobRewardedAd: _GoogleAdMob.loadAdMobRewardedAd,
156303
157035
  showAdMobRewardedAd: _GoogleAdMob.showAdMobRewardedAd
156304
157036
  }),
156305
- constantHandlerMap: _objectSpread(_objectSpread(_objectSpread({}, bedrockConstantBridges), constant_bridges_exports), {}, {
157037
+ constantHandlerMap: _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, bedrockConstantBridges), constant_bridges_exports), {}, {
156306
157038
  getSafeAreaTop: function getSafeAreaTop() {
156307
157039
  return top;
156308
157040
  },
156309
157041
  getSafeAreaBottom: function getSafeAreaBottom() {
156310
157042
  return bottom;
156311
- },
157043
+ }
157044
+ }, Object.fromEntries(Object.entries(global2).map(function (_ref50) {
157045
+ var _ref51 = _slicedToArray(_ref50, 2),
157046
+ key = _ref51[0],
157047
+ value = _ref51[1];
157048
+ return [key, function () {
157049
+ return value;
157050
+ }];
157051
+ }))), {}, {
156312
157052
  loadAdMobInterstitialAd_isSupported: _GoogleAdMob.loadAdMobInterstitialAd.isSupported,
156313
157053
  showAdMobInterstitialAd_isSupported: _GoogleAdMob.showAdMobInterstitialAd.isSupported,
156314
157054
  loadAdMobRewardedAd_isSupported: _GoogleAdMob.loadAdMobRewardedAd.isSupported,
@@ -156325,7 +157065,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156325
157065
  iapGetProductItemList: _IAP.getProductItemList
156326
157066
  })
156327
157067
  });
156328
- var baseProps = (0, import_react6.useMemo)(function () {
157068
+ var baseProps = (0, import_react9.useMemo)(function () {
156329
157069
  switch (type) {
156330
157070
  case "partner":
156331
157071
  {
@@ -156356,24 +157096,32 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156356
157096
  }, [type, props]);
156357
157097
  var BaseWebView = WEBVIEW_TYPES[type];
156358
157098
  var webViewDebuggingEnabled = operationalEnvironment === "sandbox";
156359
- var handleNavigationStateChange = (0, import_react6.useCallback)(function (event) {
157099
+ var handleNavigationStateChange = (0, import_react9.useCallback)(function (event) {
156360
157100
  if (event.url) {
156361
157101
  trackScreen(event.url);
156362
157102
  }
156363
157103
  }, []);
156364
- return (0, import_jsx_runtime5.jsx)(BaseWebView, _objectSpread(_objectSpread(_objectSpread({
157104
+ var userAgent = _useCreateUserAgent({
157105
+ colorPreference: "light"
157106
+ });
157107
+ return (0, import_jsx_runtime7.jsx)(BaseWebView, _objectSpread(_objectSpread(_objectSpread({
156365
157108
  ref: handler.ref
156366
157109
  }, props), baseProps), {}, {
156367
157110
  source: {
156368
- uri: uri
157111
+ uri: uri,
157112
+ headers: {
157113
+ "User-Agent": userAgent
157114
+ }
156369
157115
  },
157116
+ userAgent: import_react_native21.Platform.OS === "ios" ? userAgent : void 0,
156370
157117
  sharedCookiesEnabled: true,
156371
157118
  webviewDebuggingEnabled: webViewDebuggingEnabled,
156372
157119
  thirdPartyCookiesEnabled: true,
156373
157120
  onMessage: handler.onMessage,
156374
157121
  onNavigationStateChange: handleNavigationStateChange,
156375
157122
  injectedJavaScript: handler.injectedJavaScript,
156376
- injectedJavaScriptBeforeContentLoaded: handler.injectedJavaScript
157123
+ injectedJavaScriptBeforeContentLoaded: handler.injectedJavaScript,
157124
+ decelerationRate: import_react_native21.Platform.OS === "ios" ? 1 : void 0
156377
157125
  }));
156378
157126
  }
156379
157127
  function ensureValue(value, name) {
@@ -156382,33 +157130,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156382
157130
  }
156383
157131
  return value;
156384
157132
  }
156385
- var import_react7 = _$$_REQUIRE(_dependencyMap[3], "react");
156386
- var import_react_native_bedrock12 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
156387
- function _useGeolocation(_ref25) {
156388
- var accuracy = _ref25.accuracy,
156389
- distanceInterval = _ref25.distanceInterval,
156390
- timeInterval = _ref25.timeInterval;
156391
- var isVisible = (0, import_react_native_bedrock12.useVisibility)();
156392
- var _ref26 = (0, import_react7.useState)(null),
156393
- _ref27 = _slicedToArray(_ref26, 2),
156394
- location = _ref27[0],
156395
- setLocation = _ref27[1];
156396
- (0, import_react7.useEffect)(function () {
156397
- if (!isVisible) {
156398
- return;
156399
- }
156400
- return _startUpdateLocation({
156401
- options: {
156402
- accuracy: accuracy,
156403
- distanceInterval: distanceInterval,
156404
- timeInterval: timeInterval
156405
- },
156406
- onEvent: setLocation,
156407
- onError: console.error
156408
- });
156409
- }, [accuracy, distanceInterval, timeInterval, isVisible]);
156410
- return location;
156411
- }
156412
157133
  var Accuracy2 = function (Accuracy3) {
156413
157134
  Accuracy3[Accuracy3["Lowest"] = 1] = "Lowest";
156414
157135
  Accuracy3[Accuracy3["Low"] = 2] = "Low";
@@ -156418,10 +157139,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156418
157139
  Accuracy3[Accuracy3["BestForNavigation"] = 6] = "BestForNavigation";
156419
157140
  return Accuracy3;
156420
157141
  }(Accuracy2 || {});
156421
- function onVisibilityChangedByTransparentServiceWeb(eventParams) {
156422
- return _appsInTossEvent.addEventListener("onVisibilityChangedByTransparentServiceWeb", eventParams);
156423
- }
156424
- var _INTERNAL__onVisibilityChangedByTransparentServiceWeb = onVisibilityChangedByTransparentServiceWeb;
156425
157142
  __reExport(src_exports, _$$_REQUIRE(_dependencyMap[0], "@apps-in-toss/analytics"), module.exports);
156426
157143
  var Analytics2 = {
156427
157144
  init: import_analytics2.Analytics.init,
@@ -156448,15 +157165,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156448
157165
  getClipboardText: _getClipboardText,
156449
157166
  getCurrentLocation: _getCurrentLocation,
156450
157167
  getDeviceId: _getDeviceId,
157168
+ getGameCenterGameProfile: _getGameCenterGameProfile,
156451
157169
  getOperationalEnvironment: _getOperationalEnvironment,
156452
157170
  getTossAppVersion: _getTossAppVersion,
156453
157171
  getTossShareLink: _getTossShareLink,
156454
157172
  isMinVersionSupported: _isMinVersionSupported,
156455
157173
  openCamera: _openCamera,
157174
+ openGameCenterLeaderboard: _openGameCenterLeaderboard,
156456
157175
  saveBase64Data: _saveBase64Data,
156457
157176
  setClipboardText: _setClipboardText,
156458
157177
  setDeviceOrientation: _setDeviceOrientation,
156459
157178
  startUpdateLocation: _startUpdateLocation,
157179
+ submitGameCenterLeaderBoardScore: _submitGameCenterLeaderBoardScore,
157180
+ useCreateUserAgent: _useCreateUserAgent,
156460
157181
  useGeolocation: _useGeolocation
156461
157182
  }, _$$_REQUIRE(_dependencyMap[0], "@apps-in-toss/analytics")));
156462
157183
  },1071,[1072,1073,1,8,11,49,2248,2249,2250,2218,2235,683,5],"../../../.yarn/__virtual__/@apps-in-toss-framework-virtual-574b136add/1/apps-in-toss-packages/framework/dist/index.cjs");
@@ -224181,7 +224902,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
224181
224902
  }
224182
224903
  },2203,[509,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");
224183
224904
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
224184
- module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/line0/Dev/frontend-bedrock/.yarn/cache/@react-native-bedrock-mpack-next-npm-0.0.25-382cd22a0f-6b37accd87.zip/node_modules/@react-native-bedrock/mpack-next/dist/metro/bedrockAssetRegistry.js").registerAsset({
224905
+ 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({
224185
224906
  "__packager_asset": true,
224186
224907
  "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",
224187
224908
  "width": 12,
@@ -224193,7 +224914,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
224193
224914
  });
224194
224915
  },2204,[417],"../../../.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");
224195
224916
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
224196
- module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/line0/Dev/frontend-bedrock/.yarn/cache/@react-native-bedrock-mpack-next-npm-0.0.25-382cd22a0f-6b37accd87.zip/node_modules/@react-native-bedrock/mpack-next/dist/metro/bedrockAssetRegistry.js").registerAsset({
224917
+ 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({
224197
224918
  "__packager_asset": true,
224198
224919
  "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",
224199
224920
  "width": 50,