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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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/geunhyeok.lee/workspace/frontend-bedrock/.yarn/cache/@react-native-bedrock-mpack-next-npm-0.0.25-382cd22a0f-6b37accd87.zip/node_modules/@react-native-bedrock/mpack-next/dist/metro/bedrockAssetRegistry.js").registerAsset({
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/geunhyeok.lee/workspace/frontend-bedrock/.yarn/cache/@react-native-bedrock-mpack-next-npm-0.0.25-382cd22a0f-6b37accd87.zip/node_modules/@react-native-bedrock/mpack-next/dist/metro/bedrockAssetRegistry.js").registerAsset({
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/geunhyeok.lee/workspace/frontend-bedrock/.yarn/cache/@react-native-bedrock-mpack-next-npm-0.0.25-382cd22a0f-6b37accd87.zip/node_modules/@react-native-bedrock/mpack-next/dist/metro/bedrockAssetRegistry.js").registerAsset({
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/geunhyeok.lee/workspace/frontend-bedrock/.yarn/cache/@react-native-bedrock-mpack-next-npm-0.0.25-382cd22a0f-6b37accd87.zip/node_modules/@react-native-bedrock/mpack-next/dist/metro/bedrockAssetRegistry.js").registerAsset({
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/geunhyeok.lee/workspace/frontend-bedrock/.yarn/cache/@react-native-bedrock-mpack-next-npm-0.0.25-382cd22a0f-6b37accd87.zip/node_modules/@react-native-bedrock/mpack-next/dist/metro/bedrockAssetRegistry.js").registerAsset({
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/geunhyeok.lee/workspace/frontend-bedrock/.yarn/cache/@react-native-bedrock-mpack-next-npm-0.0.25-382cd22a0f-6b37accd87.zip/node_modules/@react-native-bedrock/mpack-next/dist/metro/bedrockAssetRegistry.js").registerAsset({
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/geunhyeok.lee/workspace/frontend-bedrock/.yarn/cache/@react-native-bedrock-mpack-next-npm-0.0.25-382cd22a0f-6b37accd87.zip/node_modules/@react-native-bedrock/mpack-next/dist/metro/bedrockAssetRegistry.js").registerAsset({
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,9 @@ __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
+ },
154592
154601
  useCreateUserAgent: function useCreateUserAgent() {
154593
154602
  return _useCreateUserAgent;
154594
154603
  },
@@ -154600,7 +154609,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
154600
154609
  var import_analytics2 = _$$_REQUIRE(_dependencyMap[0], "@apps-in-toss/analytics");
154601
154610
  var import_analytics = _$$_REQUIRE(_dependencyMap[0], "@apps-in-toss/analytics");
154602
154611
  var import_react_native6 = _$$_REQUIRE(_dependencyMap[1], "@toss-design-system/react-native");
154603
- var import_react_native_bedrock8 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
154612
+ var import_react_native_bedrock9 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
154604
154613
  var import_react2 = _$$_REQUIRE(_dependencyMap[3], "react");
154605
154614
  var import_react_native_bedrock2 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
154606
154615
  var _env = {
@@ -154823,27 +154832,27 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
154823
154832
  return _requestPermission.apply(this, arguments);
154824
154833
  }
154825
154834
  function _requestPermission() {
154826
- _requestPermission = _asyncToGenerator(_regeneratorRuntime().mark(function _callee4(permission) {
154835
+ _requestPermission = _asyncToGenerator(_regeneratorRuntime().mark(function _callee9(permission) {
154827
154836
  var permissionStatus;
154828
- return _regeneratorRuntime().wrap(function _callee4$(_context4) {
154829
- while (1) switch (_context4.prev = _context4.next) {
154837
+ return _regeneratorRuntime().wrap(function _callee9$(_context9) {
154838
+ while (1) switch (_context9.prev = _context9.next) {
154830
154839
  case 0:
154831
- _context4.next = 2;
154840
+ _context9.next = 2;
154832
154841
  return getPermission(permission);
154833
154842
  case 2:
154834
- permissionStatus = _context4.sent;
154835
- _context4.t0 = permissionStatus;
154836
- _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;
154837
154846
  break;
154838
154847
  case 6:
154839
- return _context4.abrupt("return", permissionStatus);
154848
+ return _context9.abrupt("return", permissionStatus);
154840
154849
  case 7:
154841
- return _context4.abrupt("return", openPermissionDialog(permission));
154850
+ return _context9.abrupt("return", openPermissionDialog(permission));
154842
154851
  case 8:
154843
154852
  case "end":
154844
- return _context4.stop();
154853
+ return _context9.stop();
154845
154854
  }
154846
- }, _callee4);
154855
+ }, _callee9);
154847
154856
  }));
154848
154857
  return _requestPermission.apply(this, arguments);
154849
154858
  }
@@ -155096,12 +155105,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155096
155105
  getCurrentLocation: function getCurrentLocation() {
155097
155106
  return _getCurrentLocation;
155098
155107
  },
155108
+ getGameCenterGameProfile: function getGameCenterGameProfile() {
155109
+ return _getGameCenterGameProfile;
155110
+ },
155099
155111
  getTossShareLink: function getTossShareLink() {
155100
155112
  return _getTossShareLink;
155101
155113
  },
155102
155114
  openCamera: function openCamera() {
155103
155115
  return _openCamera;
155104
155116
  },
155117
+ openGameCenterLeaderboard: function openGameCenterLeaderboard() {
155118
+ return _openGameCenterLeaderboard;
155119
+ },
155105
155120
  saveBase64Data: function saveBase64Data() {
155106
155121
  return _saveBase64Data;
155107
155122
  },
@@ -155110,38 +155125,41 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155110
155125
  },
155111
155126
  setDeviceOrientation: function setDeviceOrientation() {
155112
155127
  return _setDeviceOrientation;
155128
+ },
155129
+ submitGameCenterLeaderBoardScore: function submitGameCenterLeaderBoardScore() {
155130
+ return _submitGameCenterLeaderBoardScore;
155113
155131
  }
155114
155132
  });
155115
155133
  function _setClipboardText(_x2) {
155116
155134
  return _setClipboardText2.apply(this, arguments);
155117
155135
  }
155118
155136
  function _setClipboardText2() {
155119
- _setClipboardText2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee5(text) {
155137
+ _setClipboardText2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee10(text) {
155120
155138
  var permissionStatus;
155121
- return _regeneratorRuntime().wrap(function _callee5$(_context5) {
155122
- while (1) switch (_context5.prev = _context5.next) {
155139
+ return _regeneratorRuntime().wrap(function _callee10$(_context10) {
155140
+ while (1) switch (_context10.prev = _context10.next) {
155123
155141
  case 0:
155124
- _context5.next = 2;
155142
+ _context10.next = 2;
155125
155143
  return requestPermission({
155126
155144
  name: "clipboard",
155127
155145
  access: "write"
155128
155146
  });
155129
155147
  case 2:
155130
- permissionStatus = _context5.sent;
155148
+ permissionStatus = _context10.sent;
155131
155149
  if (!(permissionStatus === "denied")) {
155132
- _context5.next = 5;
155150
+ _context10.next = 5;
155133
155151
  break;
155134
155152
  }
155135
155153
  throw new Error("\uD074\uB9BD\uBCF4\uB4DC \uC4F0\uAE30 \uAD8C\uD55C\uC774 \uAC70\uBD80\uB418\uC5C8\uC5B4\uC694.");
155136
155154
  case 5:
155137
- return _context5.abrupt("return", AppsInTossModule.setClipboardText({
155155
+ return _context10.abrupt("return", AppsInTossModule.setClipboardText({
155138
155156
  text: text
155139
155157
  }));
155140
155158
  case 6:
155141
155159
  case "end":
155142
- return _context5.stop();
155160
+ return _context10.stop();
155143
155161
  }
155144
- }, _callee5);
155162
+ }, _callee10);
155145
155163
  }));
155146
155164
  return _setClipboardText2.apply(this, arguments);
155147
155165
  }
@@ -155149,30 +155167,30 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155149
155167
  return _getClipboardText2.apply(this, arguments);
155150
155168
  }
155151
155169
  function _getClipboardText2() {
155152
- _getClipboardText2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee6() {
155170
+ _getClipboardText2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee11() {
155153
155171
  var permissionStatus;
155154
- return _regeneratorRuntime().wrap(function _callee6$(_context6) {
155155
- while (1) switch (_context6.prev = _context6.next) {
155172
+ return _regeneratorRuntime().wrap(function _callee11$(_context11) {
155173
+ while (1) switch (_context11.prev = _context11.next) {
155156
155174
  case 0:
155157
- _context6.next = 2;
155175
+ _context11.next = 2;
155158
155176
  return requestPermission({
155159
155177
  name: "clipboard",
155160
155178
  access: "read"
155161
155179
  });
155162
155180
  case 2:
155163
- permissionStatus = _context6.sent;
155181
+ permissionStatus = _context11.sent;
155164
155182
  if (!(permissionStatus === "denied")) {
155165
- _context6.next = 5;
155183
+ _context11.next = 5;
155166
155184
  break;
155167
155185
  }
155168
155186
  throw new Error("\uD074\uB9BD\uBCF4\uB4DC \uC77D\uAE30 \uAD8C\uD55C\uC774 \uAC70\uBD80\uB418\uC5C8\uC5B4\uC694.");
155169
155187
  case 5:
155170
- return _context6.abrupt("return", AppsInTossModule.getClipboardText({}));
155188
+ return _context11.abrupt("return", AppsInTossModule.getClipboardText({}));
155171
155189
  case 6:
155172
155190
  case "end":
155173
- return _context6.stop();
155191
+ return _context11.stop();
155174
155192
  }
155175
- }, _callee6);
155193
+ }, _callee11);
155176
155194
  }));
155177
155195
  return _getClipboardText2.apply(this, arguments);
155178
155196
  }
@@ -155180,44 +155198,44 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155180
155198
  return _fetchContacts2.apply(this, arguments);
155181
155199
  }
155182
155200
  function _fetchContacts2() {
155183
- _fetchContacts2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee7(_ref2) {
155201
+ _fetchContacts2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee12(_ref2) {
155184
155202
  var _contacts$nextOffset;
155185
155203
  var size, offset, query, permissionStatus, contacts;
155186
- return _regeneratorRuntime().wrap(function _callee7$(_context7) {
155187
- while (1) switch (_context7.prev = _context7.next) {
155204
+ return _regeneratorRuntime().wrap(function _callee12$(_context12) {
155205
+ while (1) switch (_context12.prev = _context12.next) {
155188
155206
  case 0:
155189
155207
  size = _ref2.size, offset = _ref2.offset, query = _ref2.query;
155190
- _context7.next = 3;
155208
+ _context12.next = 3;
155191
155209
  return requestPermission({
155192
155210
  name: "contacts",
155193
155211
  access: "read"
155194
155212
  });
155195
155213
  case 3:
155196
- permissionStatus = _context7.sent;
155214
+ permissionStatus = _context12.sent;
155197
155215
  if (!(permissionStatus === "denied")) {
155198
- _context7.next = 6;
155216
+ _context12.next = 6;
155199
155217
  break;
155200
155218
  }
155201
155219
  throw new Error("\uC5F0\uB77D\uCC98 \uAD8C\uD55C\uC774 \uAC70\uBD80\uB418\uC5C8\uC5B4\uC694.");
155202
155220
  case 6:
155203
- _context7.next = 8;
155221
+ _context12.next = 8;
155204
155222
  return AppsInTossModule.fetchContacts({
155205
155223
  size: size,
155206
155224
  offset: offset,
155207
155225
  query: query
155208
155226
  });
155209
155227
  case 8:
155210
- contacts = _context7.sent;
155211
- return _context7.abrupt("return", {
155228
+ contacts = _context12.sent;
155229
+ return _context12.abrupt("return", {
155212
155230
  result: contacts.result,
155213
155231
  nextOffset: (_contacts$nextOffset = contacts.nextOffset) !== null && _contacts$nextOffset !== void 0 ? _contacts$nextOffset : null,
155214
155232
  done: contacts.done
155215
155233
  });
155216
155234
  case 10:
155217
155235
  case "end":
155218
- return _context7.stop();
155236
+ return _context12.stop();
155219
155237
  }
155220
- }, _callee7);
155238
+ }, _callee12);
155221
155239
  }));
155222
155240
  return _fetchContacts2.apply(this, arguments);
155223
155241
  }
@@ -155227,38 +155245,38 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155227
155245
  return _fetchAlbumPhotos2.apply(this, arguments);
155228
155246
  }
155229
155247
  function _fetchAlbumPhotos2() {
155230
- _fetchAlbumPhotos2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee8(options) {
155248
+ _fetchAlbumPhotos2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee13(options) {
155231
155249
  var _options$maxCount, _options$maxWidth;
155232
155250
  var permissionStatus, albumPhotos;
155233
- return _regeneratorRuntime().wrap(function _callee8$(_context8) {
155234
- while (1) switch (_context8.prev = _context8.next) {
155251
+ return _regeneratorRuntime().wrap(function _callee13$(_context13) {
155252
+ while (1) switch (_context13.prev = _context13.next) {
155235
155253
  case 0:
155236
- _context8.next = 2;
155254
+ _context13.next = 2;
155237
155255
  return requestPermission({
155238
155256
  name: "photos",
155239
155257
  access: "read"
155240
155258
  });
155241
155259
  case 2:
155242
- permissionStatus = _context8.sent;
155260
+ permissionStatus = _context13.sent;
155243
155261
  if (!(permissionStatus === "denied")) {
155244
- _context8.next = 5;
155262
+ _context13.next = 5;
155245
155263
  break;
155246
155264
  }
155247
155265
  throw new Error("\uC0AC\uC9C4\uCCA9 \uAD8C\uD55C\uC774 \uAC70\uBD80\uB418\uC5C8\uC5B4\uC694.");
155248
155266
  case 5:
155249
- _context8.next = 7;
155267
+ _context13.next = 7;
155250
155268
  return AppsInTossModule.fetchAlbumPhotos(_objectSpread(_objectSpread({}, options), {}, {
155251
155269
  maxCount: (_options$maxCount = options.maxCount) !== null && _options$maxCount !== void 0 ? _options$maxCount : DEFAULT_MAX_COUNT,
155252
155270
  maxWidth: (_options$maxWidth = options.maxWidth) !== null && _options$maxWidth !== void 0 ? _options$maxWidth : DEFAULT_MAX_WIDTH
155253
155271
  }));
155254
155272
  case 7:
155255
- albumPhotos = _context8.sent;
155256
- return _context8.abrupt("return", albumPhotos);
155273
+ albumPhotos = _context13.sent;
155274
+ return _context13.abrupt("return", albumPhotos);
155257
155275
  case 9:
155258
155276
  case "end":
155259
- return _context8.stop();
155277
+ return _context13.stop();
155260
155278
  }
155261
- }, _callee8);
155279
+ }, _callee13);
155262
155280
  }));
155263
155281
  return _fetchAlbumPhotos2.apply(this, arguments);
155264
155282
  }
@@ -155266,34 +155284,34 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155266
155284
  return _getCurrentLocation2.apply(this, arguments);
155267
155285
  }
155268
155286
  function _getCurrentLocation2() {
155269
- _getCurrentLocation2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee9(options) {
155287
+ _getCurrentLocation2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee14(options) {
155270
155288
  var permissionStatus, position;
155271
- return _regeneratorRuntime().wrap(function _callee9$(_context9) {
155272
- while (1) switch (_context9.prev = _context9.next) {
155289
+ return _regeneratorRuntime().wrap(function _callee14$(_context14) {
155290
+ while (1) switch (_context14.prev = _context14.next) {
155273
155291
  case 0:
155274
- _context9.next = 2;
155292
+ _context14.next = 2;
155275
155293
  return requestPermission({
155276
155294
  name: "geolocation",
155277
155295
  access: "access"
155278
155296
  });
155279
155297
  case 2:
155280
- permissionStatus = _context9.sent;
155298
+ permissionStatus = _context14.sent;
155281
155299
  if (!(permissionStatus === "denied")) {
155282
- _context9.next = 5;
155300
+ _context14.next = 5;
155283
155301
  break;
155284
155302
  }
155285
155303
  throw new Error("\uC704\uCE58 \uAD8C\uD55C\uC774 \uAC70\uBD80\uB418\uC5C8\uC5B4\uC694.");
155286
155304
  case 5:
155287
- _context9.next = 7;
155305
+ _context14.next = 7;
155288
155306
  return AppsInTossModule.getCurrentLocation(options);
155289
155307
  case 7:
155290
- position = _context9.sent;
155291
- return _context9.abrupt("return", position);
155308
+ position = _context14.sent;
155309
+ return _context14.abrupt("return", position);
155292
155310
  case 9:
155293
155311
  case "end":
155294
- return _context9.stop();
155312
+ return _context14.stop();
155295
155313
  }
155296
- }, _callee9);
155314
+ }, _callee14);
155297
155315
  }));
155298
155316
  return _getCurrentLocation2.apply(this, arguments);
155299
155317
  }
@@ -155301,37 +155319,37 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155301
155319
  return _openCamera2.apply(this, arguments);
155302
155320
  }
155303
155321
  function _openCamera2() {
155304
- _openCamera2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee10(options) {
155322
+ _openCamera2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee15(options) {
155305
155323
  var permissionStatus, photo;
155306
- return _regeneratorRuntime().wrap(function _callee10$(_context10) {
155307
- while (1) switch (_context10.prev = _context10.next) {
155324
+ return _regeneratorRuntime().wrap(function _callee15$(_context15) {
155325
+ while (1) switch (_context15.prev = _context15.next) {
155308
155326
  case 0:
155309
- _context10.next = 2;
155327
+ _context15.next = 2;
155310
155328
  return requestPermission({
155311
155329
  name: "camera",
155312
155330
  access: "access"
155313
155331
  });
155314
155332
  case 2:
155315
- permissionStatus = _context10.sent;
155333
+ permissionStatus = _context15.sent;
155316
155334
  if (!(permissionStatus === "denied")) {
155317
- _context10.next = 5;
155335
+ _context15.next = 5;
155318
155336
  break;
155319
155337
  }
155320
155338
  throw new Error("\uCE74\uBA54\uB77C \uAD8C\uD55C\uC774 \uAC70\uBD80\uB418\uC5C8\uC5B4\uC694.");
155321
155339
  case 5:
155322
- _context10.next = 7;
155340
+ _context15.next = 7;
155323
155341
  return AppsInTossModule.openCamera(_objectSpread({
155324
155342
  base64: false,
155325
155343
  maxWidth: 1024
155326
155344
  }, options));
155327
155345
  case 7:
155328
- photo = _context10.sent;
155329
- return _context10.abrupt("return", photo);
155346
+ photo = _context15.sent;
155347
+ return _context15.abrupt("return", photo);
155330
155348
  case 9:
155331
155349
  case "end":
155332
- return _context10.stop();
155350
+ return _context15.stop();
155333
155351
  }
155334
- }, _callee10);
155352
+ }, _callee15);
155335
155353
  }));
155336
155354
  return _openCamera2.apply(this, arguments);
155337
155355
  }
@@ -155339,16 +155357,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155339
155357
  return _appLogin2.apply(this, arguments);
155340
155358
  }
155341
155359
  function _appLogin2() {
155342
- _appLogin2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee11() {
155343
- return _regeneratorRuntime().wrap(function _callee11$(_context11) {
155344
- 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) {
155345
155363
  case 0:
155346
- return _context11.abrupt("return", AppsInTossModule.appLogin({}));
155364
+ return _context16.abrupt("return", AppsInTossModule.appLogin({}));
155347
155365
  case 1:
155348
155366
  case "end":
155349
- return _context11.stop();
155367
+ return _context16.stop();
155350
155368
  }
155351
- }, _callee11);
155369
+ }, _callee16);
155352
155370
  }));
155353
155371
  return _appLogin2.apply(this, arguments);
155354
155372
  }
@@ -155356,18 +155374,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155356
155374
  return _checkoutPayment2.apply(this, arguments);
155357
155375
  }
155358
155376
  function _checkoutPayment2() {
155359
- _checkoutPayment2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee12(options) {
155360
- return _regeneratorRuntime().wrap(function _callee12$(_context12) {
155361
- 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) {
155362
155380
  case 0:
155363
- return _context12.abrupt("return", AppsInTossModule.checkoutPayment({
155381
+ return _context17.abrupt("return", AppsInTossModule.checkoutPayment({
155364
155382
  params: options
155365
155383
  }));
155366
155384
  case 1:
155367
155385
  case "end":
155368
- return _context12.stop();
155386
+ return _context17.stop();
155369
155387
  }
155370
- }, _callee12);
155388
+ }, _callee17);
155371
155389
  }));
155372
155390
  return _checkoutPayment2.apply(this, arguments);
155373
155391
  }
@@ -155387,13 +155405,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155387
155405
  return _eventLog2.apply(this, arguments);
155388
155406
  }
155389
155407
  function _eventLog2() {
155390
- _eventLog2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee13(params) {
155408
+ _eventLog2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee18(params) {
155391
155409
  var isSupported;
155392
- return _regeneratorRuntime().wrap(function _callee13$(_context13) {
155393
- while (1) switch (_context13.prev = _context13.next) {
155410
+ return _regeneratorRuntime().wrap(function _callee18$(_context18) {
155411
+ while (1) switch (_context18.prev = _context18.next) {
155394
155412
  case 0:
155395
155413
  if (!(AppsInTossModule.operationalEnvironment === "sandbox")) {
155396
- _context13.next = 3;
155414
+ _context18.next = 3;
155397
155415
  break;
155398
155416
  }
155399
155417
  console.log("[eventLogDebug]", {
@@ -155401,28 +155419,28 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155401
155419
  log_type: params.log_type,
155402
155420
  params: normalizeParams(params.params)
155403
155421
  });
155404
- return _context13.abrupt("return");
155422
+ return _context18.abrupt("return");
155405
155423
  case 3:
155406
155424
  isSupported = _isMinVersionSupported({
155407
155425
  android: "5.208.0",
155408
155426
  ios: "5.208.0"
155409
155427
  });
155410
155428
  if (isSupported) {
155411
- _context13.next = 6;
155429
+ _context18.next = 6;
155412
155430
  break;
155413
155431
  }
155414
- return _context13.abrupt("return");
155432
+ return _context18.abrupt("return");
155415
155433
  case 6:
155416
- return _context13.abrupt("return", AppsInTossModule.eventLog({
155434
+ return _context18.abrupt("return", AppsInTossModule.eventLog({
155417
155435
  log_name: params.log_name,
155418
155436
  log_type: params.log_type,
155419
155437
  params: normalizeParams(params.params)
155420
155438
  }));
155421
155439
  case 7:
155422
155440
  case "end":
155423
- return _context13.stop();
155441
+ return _context18.stop();
155424
155442
  }
155425
- }, _callee13);
155443
+ }, _callee18);
155426
155444
  }));
155427
155445
  return _eventLog2.apply(this, arguments);
155428
155446
  }
@@ -155430,25 +155448,25 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155430
155448
  return _getTossShareLink2.apply(this, arguments);
155431
155449
  }
155432
155450
  function _getTossShareLink2() {
155433
- _getTossShareLink2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee14(path) {
155451
+ _getTossShareLink2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee19(path) {
155434
155452
  var _yield$AppsInTossModu, shareLink, shareUrl;
155435
- return _regeneratorRuntime().wrap(function _callee14$(_context14) {
155436
- while (1) switch (_context14.prev = _context14.next) {
155453
+ return _regeneratorRuntime().wrap(function _callee19$(_context19) {
155454
+ while (1) switch (_context19.prev = _context19.next) {
155437
155455
  case 0:
155438
- _context14.next = 2;
155456
+ _context19.next = 2;
155439
155457
  return AppsInTossModule.getTossShareLink({});
155440
155458
  case 2:
155441
- _yield$AppsInTossModu = _context14.sent;
155459
+ _yield$AppsInTossModu = _context19.sent;
155442
155460
  shareLink = _yield$AppsInTossModu.shareLink;
155443
155461
  shareUrl = new URL(shareLink);
155444
155462
  shareUrl.searchParams.set("deep_link_value", path);
155445
155463
  shareUrl.searchParams.set("af_dp", path);
155446
- return _context14.abrupt("return", shareUrl.toString());
155464
+ return _context19.abrupt("return", shareUrl.toString());
155447
155465
  case 8:
155448
155466
  case "end":
155449
- return _context14.stop();
155467
+ return _context19.stop();
155450
155468
  }
155451
- }, _callee14);
155469
+ }, _callee19);
155452
155470
  }));
155453
155471
  return _getTossShareLink2.apply(this, arguments);
155454
155472
  }
@@ -155456,27 +155474,27 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155456
155474
  return _setDeviceOrientation2.apply(this, arguments);
155457
155475
  }
155458
155476
  function _setDeviceOrientation2() {
155459
- _setDeviceOrientation2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee15(options) {
155477
+ _setDeviceOrientation2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee20(options) {
155460
155478
  var isSupported;
155461
- return _regeneratorRuntime().wrap(function _callee15$(_context15) {
155462
- while (1) switch (_context15.prev = _context15.next) {
155479
+ return _regeneratorRuntime().wrap(function _callee20$(_context20) {
155480
+ while (1) switch (_context20.prev = _context20.next) {
155463
155481
  case 0:
155464
155482
  isSupported = _isMinVersionSupported({
155465
155483
  android: "5.215.0",
155466
155484
  ios: "5.215.0"
155467
155485
  });
155468
155486
  if (isSupported) {
155469
- _context15.next = 3;
155487
+ _context20.next = 3;
155470
155488
  break;
155471
155489
  }
155472
- return _context15.abrupt("return");
155490
+ return _context20.abrupt("return");
155473
155491
  case 3:
155474
- return _context15.abrupt("return", AppsInTossModule.setDeviceOrientation(options));
155492
+ return _context20.abrupt("return", AppsInTossModule.setDeviceOrientation(options));
155475
155493
  case 4:
155476
155494
  case "end":
155477
- return _context15.stop();
155495
+ return _context20.stop();
155478
155496
  }
155479
- }, _callee15);
155497
+ }, _callee20);
155480
155498
  }));
155481
155499
  return _setDeviceOrientation2.apply(this, arguments);
155482
155500
  }
@@ -155484,32 +155502,115 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155484
155502
  return _saveBase64Data2.apply(this, arguments);
155485
155503
  }
155486
155504
  function _saveBase64Data2() {
155487
- _saveBase64Data2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee16(params) {
155505
+ _saveBase64Data2 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee21(params) {
155488
155506
  var isSupported;
155489
- return _regeneratorRuntime().wrap(function _callee16$(_context16) {
155490
- while (1) switch (_context16.prev = _context16.next) {
155507
+ return _regeneratorRuntime().wrap(function _callee21$(_context21) {
155508
+ while (1) switch (_context21.prev = _context21.next) {
155491
155509
  case 0:
155492
155510
  isSupported = _isMinVersionSupported({
155493
155511
  android: "5.218.0",
155494
155512
  ios: "5.216.0"
155495
155513
  });
155496
155514
  if (isSupported) {
155497
- _context16.next = 4;
155515
+ _context21.next = 4;
155498
155516
  break;
155499
155517
  }
155500
155518
  console.warn("saveBase64Data is not supported in this app version");
155501
- return _context16.abrupt("return");
155519
+ return _context21.abrupt("return");
155502
155520
  case 4:
155503
- _context16.next = 6;
155521
+ _context21.next = 6;
155504
155522
  return AppsInTossModule.saveBase64Data(params);
155505
155523
  case 6:
155506
155524
  case "end":
155507
- return _context16.stop();
155525
+ return _context21.stop();
155508
155526
  }
155509
- }, _callee16);
155527
+ }, _callee21);
155510
155528
  }));
155511
155529
  return _saveBase64Data2.apply(this, arguments);
155512
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
+ }
155513
155614
  var import_jsx_runtime = _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime");
155514
155615
  function AppsInTossContainer(Container, _ref7) {
155515
155616
  var children = _ref7.children,
@@ -155547,7 +155648,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155547
155648
  },
155548
155649
  debug: (_analytics$debug = analytics === null || analytics === void 0 ? void 0 : analytics.debug) !== null && _analytics$debug !== void 0 ? _analytics$debug : __DEV__
155549
155650
  });
155550
- return import_react_native_bedrock8.Bedrock.registerApp(AppsInTossContainer.bind(null, container), {
155651
+ return import_react_native_bedrock9.Bedrock.registerApp(AppsInTossContainer.bind(null, container), {
155551
155652
  appName: getAppName(),
155552
155653
  context: context,
155553
155654
  router: {
@@ -155721,62 +155822,37 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155721
155822
  loadAdMobRewardedAd.isSupported = createIsSupported();
155722
155823
  showAdMobInterstitialAd.isSupported = createIsSupported();
155723
155824
  showAdMobRewardedAd.isSupported = createIsSupported();
155724
- function _getTossAppVersion() {
155725
- return AppsInTossModule.tossAppVersion;
155726
- }
155727
155825
  function _getDeviceId() {
155728
155826
  return AppsInTossModule.deviceId;
155729
155827
  }
155730
- function getItem(key) {
155731
- return AppsInTossModule.getStorageItem({
155732
- key: key
155733
- });
155734
- }
155735
- function setItem(key, value) {
155736
- return AppsInTossModule.setStorageItem({
155737
- key: key,
155738
- value: value
155739
- });
155740
- }
155741
- function removeItem(key) {
155742
- return AppsInTossModule.removeStorageItem({
155743
- key: key
155744
- });
155745
- }
155746
- function clearItems() {
155747
- return AppsInTossModule.clearStorage({});
155828
+ function _getTossAppVersion() {
155829
+ return AppsInTossModule.tossAppVersion;
155748
155830
  }
155749
- var _Storage = {
155750
- getItem: getItem,
155751
- setItem: setItem,
155752
- removeItem: removeItem,
155753
- clearItems: clearItems
155754
- };
155755
- function createOneTimePurchaseOrder(_x12) {
155831
+ function createOneTimePurchaseOrder(_x13) {
155756
155832
  return _createOneTimePurchaseOrder.apply(this, arguments);
155757
155833
  }
155758
155834
  function _createOneTimePurchaseOrder() {
155759
- _createOneTimePurchaseOrder = _asyncToGenerator(_regeneratorRuntime().mark(function _callee17(params) {
155835
+ _createOneTimePurchaseOrder = _asyncToGenerator(_regeneratorRuntime().mark(function _callee25(params) {
155760
155836
  var isSupported;
155761
- return _regeneratorRuntime().wrap(function _callee17$(_context17) {
155762
- while (1) switch (_context17.prev = _context17.next) {
155837
+ return _regeneratorRuntime().wrap(function _callee25$(_context25) {
155838
+ while (1) switch (_context25.prev = _context25.next) {
155763
155839
  case 0:
155764
155840
  isSupported = _isMinVersionSupported({
155765
155841
  android: "5.219.0",
155766
155842
  ios: "5.219.0"
155767
155843
  });
155768
155844
  if (isSupported) {
155769
- _context17.next = 3;
155845
+ _context25.next = 3;
155770
155846
  break;
155771
155847
  }
155772
- return _context17.abrupt("return");
155848
+ return _context25.abrupt("return");
155773
155849
  case 3:
155774
- return _context17.abrupt("return", AppsInTossModule.iapCreateOneTimePurchaseOrder(params));
155850
+ return _context25.abrupt("return", AppsInTossModule.iapCreateOneTimePurchaseOrder(params));
155775
155851
  case 4:
155776
155852
  case "end":
155777
- return _context17.stop();
155853
+ return _context25.stop();
155778
155854
  }
155779
- }, _callee17);
155855
+ }, _callee25);
155780
155856
  }));
155781
155857
  return _createOneTimePurchaseOrder.apply(this, arguments);
155782
155858
  }
@@ -155784,27 +155860,27 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155784
155860
  return _getProductItemList.apply(this, arguments);
155785
155861
  }
155786
155862
  function _getProductItemList() {
155787
- _getProductItemList = _asyncToGenerator(_regeneratorRuntime().mark(function _callee18() {
155863
+ _getProductItemList = _asyncToGenerator(_regeneratorRuntime().mark(function _callee26() {
155788
155864
  var isSupported;
155789
- return _regeneratorRuntime().wrap(function _callee18$(_context18) {
155790
- while (1) switch (_context18.prev = _context18.next) {
155865
+ return _regeneratorRuntime().wrap(function _callee26$(_context26) {
155866
+ while (1) switch (_context26.prev = _context26.next) {
155791
155867
  case 0:
155792
155868
  isSupported = _isMinVersionSupported({
155793
155869
  android: "5.219.0",
155794
155870
  ios: "5.219.0"
155795
155871
  });
155796
155872
  if (isSupported) {
155797
- _context18.next = 3;
155873
+ _context26.next = 3;
155798
155874
  break;
155799
155875
  }
155800
- return _context18.abrupt("return");
155876
+ return _context26.abrupt("return");
155801
155877
  case 3:
155802
- return _context18.abrupt("return", AppsInTossModule.iapGetProductItemList({}));
155878
+ return _context26.abrupt("return", AppsInTossModule.iapGetProductItemList({}));
155803
155879
  case 4:
155804
155880
  case "end":
155805
- return _context18.stop();
155881
+ return _context26.stop();
155806
155882
  }
155807
- }, _callee18);
155883
+ }, _callee26);
155808
155884
  }));
155809
155885
  return _getProductItemList.apply(this, arguments);
155810
155886
  }
@@ -155812,6 +155888,31 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155812
155888
  createOneTimePurchaseOrder: createOneTimePurchaseOrder,
155813
155889
  getProductItemList: getProductItemList
155814
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
+ };
155815
155916
  var _TossPay = {
155816
155917
  checkoutPayment: _checkoutPayment
155817
155918
  };
@@ -155821,56 +155922,471 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155821
155922
  loadAdMobRewardedAd: loadAdMobRewardedAd,
155822
155923
  showAdMobRewardedAd: showAdMobRewardedAd
155823
155924
  };
155824
- var import_react_native15 = _$$_REQUIRE(_dependencyMap[1], "@toss-design-system/react-native");
155825
- var import_private = _$$_REQUIRE(_dependencyMap[6], "@toss-design-system/react-native/private");
155826
- var import_react7 = _$$_REQUIRE(_dependencyMap[3], "react");
155827
- var import_react_native16 = _$$_REQUIRE(_dependencyMap[4], "react-native");
155828
- var import_react_native_bedrock13 = _$$_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");
155829
155930
  var bedrockAsyncBridges = __toESM(_$$_REQUIRE(_dependencyMap[7], "react-native-bedrock/async-bridges"), 1);
155830
155931
  var bedrockConstantBridges = __toESM(_$$_REQUIRE(_dependencyMap[8], "react-native-bedrock/constant-bridges"), 1);
155831
155932
  var import_react_native_webview = _$$_REQUIRE(_dependencyMap[9], "@react-native-bedrock/native/react-native-webview");
155832
- var import_react_native12 = _$$_REQUIRE(_dependencyMap[1], "@toss-design-system/react-native");
155833
- var import_es_hangul = _$$_REQUIRE(_dependencyMap[10], "es-hangul");
155834
- var import_react4 = _$$_REQUIRE(_dependencyMap[3], "react");
155835
- var import_react_native13 = _$$_REQUIRE(_dependencyMap[4], "react-native");
155836
- var import_react_native_bedrock9 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
155837
- 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");
155838
155938
  var import_react_native10 = _$$_REQUIRE(_dependencyMap[1], "@toss-design-system/react-native");
155939
+ var import_react5 = _$$_REQUIRE(_dependencyMap[3], "react");
155839
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
+ };
155840
155992
  var import_react_native8 = _$$_REQUIRE(_dependencyMap[4], "react-native");
155841
- var import_react_native7 = _$$_REQUIRE(_dependencyMap[4], "react-native");
155842
- 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) {
155843
156359
  var _props$import_react_n;
155844
- var props = _extends({}, (_objectDestructuringEmpty(_ref10), _ref10));
155845
- 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)();
155846
156362
  }
155847
156363
  var RIGHT_MARGIN = 24;
155848
156364
  var IOS_DEFAULT_MARGIN = 20;
155849
- var import_jsx_runtime2 = _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime");
156365
+ var import_jsx_runtime4 = _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime");
155850
156366
  function IOSHeaderRight(props) {
155851
- return (0, import_jsx_runtime2.jsx)(import_react_native8.View, _objectSpread({
156367
+ return (0, import_jsx_runtime4.jsx)(import_react_native13.View, _objectSpread({
155852
156368
  style: styles.ios
155853
156369
  }, props));
155854
156370
  }
155855
156371
  function AndroidHeaderRight(props) {
155856
- return (0, import_jsx_runtime2.jsx)(import_react_native8.View, _objectSpread({
156372
+ return (0, import_jsx_runtime4.jsx)(import_react_native13.View, _objectSpread({
155857
156373
  style: styles.android
155858
156374
  }, props));
155859
156375
  }
155860
156376
  function HeaderRight(props) {
155861
156377
  return byPlatform({
155862
156378
  ios: function ios() {
155863
- return (0, import_jsx_runtime2.jsx)(IOSHeaderRight, _objectSpread({}, props));
156379
+ return (0, import_jsx_runtime4.jsx)(IOSHeaderRight, _objectSpread({}, props));
155864
156380
  },
155865
156381
  android: function android() {
155866
- return (0, import_jsx_runtime2.jsx)(AndroidHeaderRight, _objectSpread({}, props));
156382
+ return (0, import_jsx_runtime4.jsx)(AndroidHeaderRight, _objectSpread({}, props));
155867
156383
  },
155868
156384
  fallback: function fallback() {
155869
- return (0, import_jsx_runtime2.jsx)(IOSHeaderRight, _objectSpread({}, props));
156385
+ return (0, import_jsx_runtime4.jsx)(IOSHeaderRight, _objectSpread({}, props));
155870
156386
  }
155871
156387
  });
155872
156388
  }
155873
- var styles = import_react_native8.StyleSheet.create({
156389
+ var styles = import_react_native13.StyleSheet.create({
155874
156390
  ios: {
155875
156391
  marginRight: -IOS_DEFAULT_MARGIN + RIGHT_MARGIN,
155876
156392
  flexDirection: "row"
@@ -155880,38 +156396,38 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155880
156396
  }
155881
156397
  });
155882
156398
  var import_react_native_safe_area_context = _$$_REQUIRE(_dependencyMap[12], "@react-native-bedrock/native/react-native-safe-area-context");
155883
- var import_react_native9 = _$$_REQUIRE(_dependencyMap[4], "react-native");
156399
+ var import_react_native14 = _$$_REQUIRE(_dependencyMap[4], "react-native");
155884
156400
  function useSafeAreaTop() {
155885
156401
  var safeAreaInsets = (0, import_react_native_safe_area_context.useSafeAreaInsets)();
155886
- var hasDynamicIsland = import_react_native9.Platform.OS === "ios" && safeAreaInsets.top > 50;
156402
+ var hasDynamicIsland = import_react_native14.Platform.OS === "ios" && safeAreaInsets.top > 50;
155887
156403
  var safeAreaTop = hasDynamicIsland ? safeAreaInsets.top - 5 : safeAreaInsets.top;
155888
156404
  return safeAreaTop;
155889
156405
  }
155890
- var import_jsx_runtime3 = _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime");
156406
+ var import_jsx_runtime5 = _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime");
155891
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>';
155892
- function GameNavigationBar(_ref11) {
155893
- var onClose = _ref11.onClose;
156408
+ function GameNavigationBar(_ref29) {
156409
+ var onClose = _ref29.onClose;
155894
156410
  var safeAreaTop = useSafeAreaTop();
155895
- return (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, {
155896
- 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, {
155897
156413
  preference: {
155898
156414
  type: "none"
155899
156415
  }
155900
- }), (0, import_jsx_runtime3.jsx)(import_react_native11.View, {
156416
+ }), (0, import_jsx_runtime5.jsx)(import_react_native16.View, {
155901
156417
  style: {
155902
156418
  width: "100%",
155903
- height: import_react_native11.Platform.OS === "ios" ? 44 : 54,
156419
+ height: import_react_native16.Platform.OS === "ios" ? 44 : 54,
155904
156420
  flexDirection: "row",
155905
156421
  alignItems: "center",
155906
156422
  justifyContent: "flex-end",
155907
156423
  position: "absolute",
155908
- zIndex: 9999,
156424
+ zIndex: Z_INDEX.CLOSE_BUTTON,
155909
156425
  marginTop: safeAreaTop,
155910
- paddingRight: import_react_native11.Platform.OS === "ios" ? 10 : 8
156426
+ paddingRight: import_react_native16.Platform.OS === "ios" ? 10 : 8
155911
156427
  },
155912
156428
  pointerEvents: "box-none",
155913
- children: (0, import_jsx_runtime3.jsx)(HeaderRight, {
155914
- 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, {
155915
156431
  hitSlop: {
155916
156432
  left: 8,
155917
156433
  right: 8
@@ -155920,10 +156436,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155920
156436
  accessible: true,
155921
156437
  accessibilityLabel: "\uAC8C\uC784\uC885\uB8CC",
155922
156438
  style: {
155923
- padding: import_react_native11.Platform.OS === "ios" ? 7 : 9
156439
+ padding: import_react_native16.Platform.OS === "ios" ? 7 : 9
155924
156440
  },
155925
156441
  onPress: onClose,
155926
- children: (0, import_jsx_runtime3.jsx)(import_react_native_svg.SvgXml, {
156442
+ children: (0, import_jsx_runtime5.jsx)(import_react_native_svg.SvgXml, {
155927
156443
  xml: originXML,
155928
156444
  width: 30,
155929
156445
  height: 30
@@ -155933,72 +156449,83 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155933
156449
  })]
155934
156450
  });
155935
156451
  }
155936
- var import_jsx_runtime4 = _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime");
155937
- var GameWebView = (0, import_react4.forwardRef)(function GameWebView2(props, ref) {
155938
- var _ref12 = (0, import_react_native12.useDialog)(),
155939
- 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;
155940
156456
  var _getAppsInTossGlobals = getAppsInTossGlobals(),
155941
156457
  brandDisplayName = _getAppsInTossGlobals.brandDisplayName;
155942
- 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() {
155943
156463
  var isConfirmed;
155944
- return _regeneratorRuntime().wrap(function _callee$(_context) {
155945
- while (1) switch (_context.prev = _context.next) {
156464
+ return _regeneratorRuntime().wrap(function _callee6$(_context6) {
156465
+ while (1) switch (_context6.prev = _context6.next) {
155946
156466
  case 0:
155947
- _context.next = 2;
156467
+ _context6.next = 2;
155948
156468
  return openConfirm({
155949
- 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?"),
155950
156470
  leftButton: "\uCDE8\uC18C",
155951
156471
  rightButton: "\uC885\uB8CC\uD558\uAE30",
155952
156472
  closeOnDimmerClick: true
155953
156473
  });
155954
156474
  case 2:
155955
- isConfirmed = _context.sent;
156475
+ isConfirmed = _context6.sent;
155956
156476
  if (isConfirmed) {
155957
- (0, import_react_native_bedrock9.closeView)();
156477
+ (0, import_react_native_bedrock12.closeView)();
155958
156478
  }
155959
156479
  case 4:
155960
156480
  case "end":
155961
- return _context.stop();
156481
+ return _context6.stop();
155962
156482
  }
155963
- }, _callee);
156483
+ }, _callee6);
155964
156484
  })), [brandDisplayName, openConfirm]);
155965
- (0, import_react4.useEffect)(function () {
155966
- if (import_react_native13.Platform.OS === "ios") {
155967
- (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)({
155968
156488
  isEnabled: false
155969
156489
  });
155970
156490
  return function () {
155971
- (0, import_react_native_bedrock9.setIosSwipeGestureEnabled)({
156491
+ (0, import_react_native_bedrock12.setIosSwipeGestureEnabled)({
155972
156492
  isEnabled: true
155973
156493
  });
155974
156494
  };
155975
156495
  }
155976
156496
  return;
155977
156497
  }, []);
155978
- (0, import_react4.useEffect)(function () {
156498
+ (0, import_react6.useEffect)(function () {
155979
156499
  var backHandler = function backHandler() {
155980
156500
  handleClose();
155981
156501
  return true;
155982
156502
  };
155983
- import_react_native13.BackHandler.addEventListener("hardwareBackPress", backHandler);
156503
+ import_react_native18.BackHandler.addEventListener("hardwareBackPress", backHandler);
155984
156504
  return function () {
155985
- import_react_native13.BackHandler.removeEventListener("hardwareBackPress", backHandler);
156505
+ import_react_native18.BackHandler.removeEventListener("hardwareBackPress", backHandler);
155986
156506
  };
155987
156507
  }, [handleClose]);
155988
- return (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, {
155989
- 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, {
155990
156517
  onClose: handleClose
155991
- }), (0, import_jsx_runtime4.jsx)(import_react_native13.View, {
155992
- style: {
155993
- flex: 1
155994
- },
155995
- 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({
155996
156521
  ref: ref
155997
156522
  }, props))
155998
- })]
156523
+ }) : (0, import_jsx_runtime6.jsx)(import_react_native_webview.WebView, _objectSpread({
156524
+ ref: ref
156525
+ }, props))]
155999
156526
  });
156000
156527
  });
156001
- var import_react5 = _$$_REQUIRE(_dependencyMap[3], "react");
156528
+ var import_react7 = _$$_REQUIRE(_dependencyMap[3], "react");
156002
156529
  function serializeError(error) {
156003
156530
  return JSON.stringify(error, function (_, value) {
156004
156531
  if (value instanceof Error) {
@@ -156012,37 +156539,37 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156012
156539
  return value;
156013
156540
  });
156014
156541
  }
156015
- function methodHandler(_ref14) {
156016
- var args = _ref14.args,
156017
- eventId = _ref14.eventId,
156018
- functionName = _ref14.functionName,
156019
- handlerMap = _ref14.handlerMap,
156020
- 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;
156021
156548
  var func = handlerMap[functionName];
156022
156549
  if (!func) {
156023
156550
  console.error("".concat(functionName, " is not a function"));
156024
156551
  return;
156025
156552
  }
156026
156553
  var wrappedFunc = function () {
156027
- var _ref15 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee2() {
156554
+ var _ref35 = _asyncToGenerator(_regeneratorRuntime().mark(function _callee7() {
156028
156555
  var result,
156029
- _args2 = arguments;
156030
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
156031
- 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) {
156032
156559
  case 0:
156033
- _context2.next = 2;
156034
- return func.apply(void 0, _args2);
156560
+ _context7.next = 2;
156561
+ return func.apply(void 0, _args7);
156035
156562
  case 2:
156036
- result = _context2.sent;
156037
- return _context2.abrupt("return", result);
156563
+ result = _context7.sent;
156564
+ return _context7.abrupt("return", result);
156038
156565
  case 4:
156039
156566
  case "end":
156040
- return _context2.stop();
156567
+ return _context7.stop();
156041
156568
  }
156042
- }, _callee2);
156569
+ }, _callee7);
156043
156570
  }));
156044
156571
  return function wrappedFunc() {
156045
- return _ref15.apply(this, arguments);
156572
+ return _ref35.apply(this, arguments);
156046
156573
  };
156047
156574
  }();
156048
156575
  wrappedFunc.apply(void 0, _toConsumableArray(args)).then(function (result) {
@@ -156053,18 +156580,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156053
156580
  });
156054
156581
  }
156055
156582
  var globalEventListenerMap = new Map();
156056
- function useBridgeHandler(_ref16) {
156057
- var onMessage = _ref16.onMessage,
156058
- constantHandlerMap = _ref16.constantHandlerMap,
156059
- asyncHandlerMap = _ref16.asyncHandlerMap,
156060
- eventListenerMap = _ref16.eventListenerMap,
156061
- originalInjectedJavaScript = _ref16.injectedJavaScript;
156062
- var ref = (0, import_react5.useRef)(null);
156063
- var injectedJavaScript = (0, import_react5.useMemo)(function () {
156064
- return ["window.__CONSTANT_HANDLER_MAP = ".concat(JSON.stringify(Object.entries(constantHandlerMap).reduce(function (acc, _ref17) {
156065
- var _ref18 = _slicedToArray(_ref17, 2),
156066
- key = _ref18[0],
156067
- 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];
156068
156595
  acc[key] = typeof value === "function" ? value() : value;
156069
156596
  return acc;
156070
156597
  }, {}))), originalInjectedJavaScript, "true"].join("\n");
@@ -156081,22 +156608,22 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156081
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 "));
156082
156609
  };
156083
156610
  };
156084
- var $onMessage = (0, import_react5.useCallback)(function () {
156085
- 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) {
156086
156613
  var data, _eventListenerMap$dat, handleOnEvent, handleOnError, remove, key, _remove, _ref$current3;
156087
- return _regeneratorRuntime().wrap(function _callee3$(_context3) {
156088
- while (1) switch (_context3.prev = _context3.next) {
156614
+ return _regeneratorRuntime().wrap(function _callee8$(_context8) {
156615
+ while (1) switch (_context8.prev = _context8.next) {
156089
156616
  case 0:
156090
156617
  onMessage === null || onMessage === void 0 || onMessage(e);
156091
156618
  data = JSON.parse(e.nativeEvent.data);
156092
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))) {
156093
- _context3.next = 4;
156620
+ _context8.next = 4;
156094
156621
  break;
156095
156622
  }
156096
- return _context3.abrupt("return");
156623
+ return _context8.abrupt("return");
156097
156624
  case 4:
156098
- _context3.t0 = data.type;
156099
- _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;
156100
156627
  break;
156101
156628
  case 7:
156102
156629
  handleOnEvent = createHandleOnEvent(data.functionName, data.eventId);
@@ -156109,13 +156636,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156109
156636
  if (remove) {
156110
156637
  globalEventListenerMap.set("".concat(data.functionName, "/").concat(data.eventId), remove);
156111
156638
  }
156112
- return _context3.abrupt("break", 19);
156639
+ return _context8.abrupt("break", 19);
156113
156640
  case 12:
156114
156641
  key = "".concat(data.functionName, "/").concat(data.eventId);
156115
156642
  _remove = globalEventListenerMap.get(key);
156116
156643
  _remove === null || _remove === void 0 || _remove();
156117
156644
  globalEventListenerMap.delete(key);
156118
- return _context3.abrupt("break", 19);
156645
+ return _context8.abrupt("break", 19);
156119
156646
  case 17:
156120
156647
  methodHandler({
156121
156648
  args: data.args,
@@ -156124,15 +156651,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156124
156651
  handlerMap: asyncHandlerMap,
156125
156652
  injectJavaScript: (_ref$current3 = ref.current) === null || _ref$current3 === void 0 ? void 0 : _ref$current3.injectJavaScript
156126
156653
  });
156127
- return _context3.abrupt("break", 19);
156654
+ return _context8.abrupt("break", 19);
156128
156655
  case 19:
156129
156656
  case "end":
156130
- return _context3.stop();
156657
+ return _context8.stop();
156131
156658
  }
156132
- }, _callee3);
156659
+ }, _callee8);
156133
156660
  }));
156134
- return function (_x13) {
156135
- return _ref19.apply(this, arguments);
156661
+ return function (_x15) {
156662
+ return _ref39.apply(this, arguments);
156136
156663
  };
156137
156664
  }(), [onMessage]);
156138
156665
  return {
@@ -156159,35 +156686,191 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156159
156686
  return _startUpdateLocation;
156160
156687
  }
156161
156688
  });
156162
- var import_react_native14 = _$$_REQUIRE(_dependencyMap[4], "react-native");
156163
- var import_react_native_bedrock10 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
156164
- function _useCreateUserAgent(_ref20) {
156165
- var batteryModePreference = _ref20.batteryModePreference,
156166
- colorPreference = _ref20.colorPreference,
156167
- fontA11y = _ref20.fontA11y,
156168
- locale = _ref20.locale,
156169
- navbarPreference = _ref20.navbarPreference,
156170
- pureSafeArea = _ref20.pureSafeArea,
156171
- safeArea = _ref20.safeArea,
156172
- safeAreaBottomTransparency = _ref20.safeAreaBottomTransparency;
156173
- var platform = (0, import_react_native_bedrock10.getPlatformOS)();
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)();
156174
156854
  var appVersion = _getTossAppVersion();
156175
- var fontScale = (0, import_react_native14.useWindowDimensions)().fontScale;
156855
+ var _ref41 = (0, import_react_native19.useWindowDimensions)(),
156856
+ fontScale = _ref41.fontScale;
156176
156857
  var platformString = platform === "ios" ? "iPhone" : "Android";
156177
- return ["TossApp/".concat(appVersion), batteryModePreference && "TossBatteryModePreference/".concat(batteryModePreference), colorPreference && "TossColorPreference/".concat(colorPreference), fontA11y && "TossFontAccessibility/".concat(fontA11y), fontScale && "TossFontScale/".concat(fontScale), locale && "TossLocale/".concat(locale), navbarPreference && "TossNavbarPreference/".concat(navbarPreference), pureSafeArea && "TossPureSafeArea/".concat(pureSafeArea), safeArea && "TossSafeArea/".concat(safeArea), safeAreaBottomTransparency && "TossSafeAreaBottomTransparency/".concat(safeAreaBottomTransparency), platformString].filter(Boolean).join(" ");
156178
- }
156179
- var import_react6 = _$$_REQUIRE(_dependencyMap[3], "react");
156180
- var import_react_native_bedrock11 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
156181
- function _useGeolocation(_ref21) {
156182
- var accuracy = _ref21.accuracy,
156183
- distanceInterval = _ref21.distanceInterval,
156184
- timeInterval = _ref21.timeInterval;
156185
- var isVisible = (0, import_react_native_bedrock11.useVisibility)();
156186
- var _ref22 = (0, import_react6.useState)(null),
156187
- _ref23 = _slicedToArray(_ref22, 2),
156188
- location = _ref23[0],
156189
- setLocation = _ref23[1];
156190
- (0, import_react6.useEffect)(function () {
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 () {
156191
156874
  if (!isVisible) {
156192
156875
  return;
156193
156876
  }
@@ -156203,7 +156886,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156203
156886
  }, [accuracy, distanceInterval, timeInterval, isVisible]);
156204
156887
  return location;
156205
156888
  }
156206
- var import_react_native_bedrock12 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
156889
+ var import_react_native_bedrock15 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
156207
156890
  var extractDateFromUUIDv7 = function extractDateFromUUIDv7(uuid) {
156208
156891
  var timestampHex = uuid.split("-").join("").slice(0, 12);
156209
156892
  var timestamp = Number.parseInt(timestampHex, 16);
@@ -156225,7 +156908,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156225
156908
  };
156226
156909
  var getReferrer = function getReferrer() {
156227
156910
  try {
156228
- var referrer = new URL((0, import_react_native_bedrock12.getSchemeUri)());
156911
+ var referrer = new URL((0, import_react_native_bedrock15.getSchemeUri)());
156229
156912
  return referrer.searchParams.get("referrer");
156230
156913
  } catch (_unused4) {
156231
156914
  return "";
@@ -156247,32 +156930,32 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156247
156930
  };
156248
156931
  return _eventLog(log);
156249
156932
  };
156250
- var import_jsx_runtime5 = _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime");
156933
+ var import_jsx_runtime7 = _$$_REQUIRE(_dependencyMap[5], "react/jsx-runtime");
156251
156934
  var appsInTossGlobals = getAppsInTossGlobals();
156252
156935
  var operationalEnvironment = _getOperationalEnvironment();
156253
156936
  var TYPES = ["partner", "external", "game"];
156254
156937
  var WEBVIEW_TYPES = {
156255
- partner: import_react_native15.PartnerWebViewScreen,
156256
- external: import_react_native15.ExternalWebViewScreen,
156938
+ partner: import_react_native20.PartnerWebViewScreen,
156939
+ external: import_react_native20.ExternalWebViewScreen,
156257
156940
  game: GameWebView
156258
156941
  };
156259
156942
  function mergeSchemeQueryParamsInto(url) {
156260
156943
  var baseUrl = new URL(url);
156261
- var schemeUrl = new URL((0, import_react_native_bedrock13.getSchemeUri)());
156944
+ var schemeUrl = new URL((0, import_react_native_bedrock16.getSchemeUri)());
156262
156945
  baseUrl.pathname = schemeUrl.pathname;
156263
- var _iterator2 = _createForOfIteratorHelper(schemeUrl.searchParams.entries()),
156264
- _step2;
156946
+ var _iterator5 = _createForOfIteratorHelper(schemeUrl.searchParams.entries()),
156947
+ _step5;
156265
156948
  try {
156266
- for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
156267
- var _step2$value = _slicedToArray(_step2.value, 2),
156268
- key = _step2$value[0],
156269
- 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];
156270
156953
  baseUrl.searchParams.set(key, value);
156271
156954
  }
156272
156955
  } catch (err) {
156273
- _iterator2.e(err);
156956
+ _iterator5.e(err);
156274
156957
  } finally {
156275
- _iterator2.f();
156958
+ _iterator5.f();
156276
156959
  }
156277
156960
  return baseUrl;
156278
156961
  }
@@ -156290,56 +156973,56 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156290
156973
  }
156291
156974
  return url.toString();
156292
156975
  }
156293
- function _WebView(_ref24) {
156294
- var type = _ref24.type,
156295
- local = _ref24.local,
156296
- onMessage = _ref24.onMessage,
156297
- props = _objectWithoutProperties(_ref24, _excluded3);
156976
+ function _WebView(_ref45) {
156977
+ var type = _ref45.type,
156978
+ local = _ref45.local,
156979
+ onMessage = _ref45.onMessage,
156980
+ props = _objectWithoutProperties(_ref45, _excluded3);
156298
156981
  if (!TYPES.includes(type)) {
156299
156982
  throw new Error("Invalid WebView type: '".concat(type, "'"));
156300
156983
  }
156301
- var bedrockEvent = (0, import_react_native_bedrock13.useBedrockEvent)();
156302
- var uri = (0, import_react7.useMemo)(function () {
156984
+ var bedrockEvent = (0, import_react_native_bedrock16.useBedrockEvent)();
156985
+ var uri = (0, import_react9.useMemo)(function () {
156303
156986
  return getWebViewUri(local);
156304
156987
  }, [local]);
156305
- var top = (0, import_private.useSafeAreaTop)();
156306
- var bottom = (0, import_private.useSafeAreaBottom)();
156988
+ var top = (0, import_private3.useSafeAreaTop)();
156989
+ var bottom = (0, import_private3.useSafeAreaBottom)();
156307
156990
  var global2 = getAppsInTossGlobals();
156308
156991
  var handler = useBridgeHandler({
156309
156992
  onMessage: onMessage,
156310
156993
  eventListenerMap: _objectSpread(_objectSpread({}, event_bridges_exports), {}, {
156311
- backEvent: function backEvent(_ref25) {
156312
- var onEvent = _ref25.onEvent,
156313
- onError = _ref25.onError,
156314
- options = _ref25.options;
156994
+ backEvent: function backEvent(_ref46) {
156995
+ var onEvent = _ref46.onEvent,
156996
+ onError = _ref46.onError,
156997
+ options = _ref46.options;
156315
156998
  return bedrockEvent.addEventListener("backEvent", {
156316
156999
  onEvent: onEvent,
156317
157000
  onError: onError,
156318
157001
  options: options
156319
157002
  });
156320
157003
  },
156321
- entryMessageExited: function entryMessageExited(_ref26) {
156322
- var onEvent = _ref26.onEvent,
156323
- onError = _ref26.onError;
157004
+ entryMessageExited: function entryMessageExited(_ref47) {
157005
+ var onEvent = _ref47.onEvent,
157006
+ onError = _ref47.onError;
156324
157007
  return _appsInTossEvent.addEventListener("entryMessageExited", {
156325
157008
  onEvent: onEvent,
156326
157009
  onError: onError
156327
157010
  });
156328
157011
  },
156329
- updateLocationEvent: function updateLocationEvent(_ref27) {
156330
- var onEvent = _ref27.onEvent,
156331
- onError = _ref27.onError,
156332
- options = _ref27.options;
157012
+ updateLocationEvent: function updateLocationEvent(_ref48) {
157013
+ var onEvent = _ref48.onEvent,
157014
+ onError = _ref48.onError,
157015
+ options = _ref48.options;
156333
157016
  return _appsInTossEvent.addEventListener("updateLocationEvent", {
156334
157017
  onEvent: onEvent,
156335
157018
  onError: onError,
156336
157019
  options: options
156337
157020
  });
156338
157021
  },
156339
- appBridgeCallbackEvent: function appBridgeCallbackEvent(_ref28) {
156340
- var onEvent = _ref28.onEvent,
156341
- onError = _ref28.onError,
156342
- options = _ref28.options;
157022
+ appBridgeCallbackEvent: function appBridgeCallbackEvent(_ref49) {
157023
+ var onEvent = _ref49.onEvent,
157024
+ onError = _ref49.onError,
157025
+ options = _ref49.options;
156343
157026
  return _appsInTossEvent.addEventListener("appBridgeCallbackEvent", {
156344
157027
  onEvent: onEvent,
156345
157028
  onError: onError,
@@ -156358,10 +157041,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156358
157041
  getSafeAreaBottom: function getSafeAreaBottom() {
156359
157042
  return bottom;
156360
157043
  }
156361
- }, Object.fromEntries(Object.entries(global2).map(function (_ref29) {
156362
- var _ref30 = _slicedToArray(_ref29, 2),
156363
- key = _ref30[0],
156364
- value = _ref30[1];
157044
+ }, Object.fromEntries(Object.entries(global2).map(function (_ref50) {
157045
+ var _ref51 = _slicedToArray(_ref50, 2),
157046
+ key = _ref51[0],
157047
+ value = _ref51[1];
156365
157048
  return [key, function () {
156366
157049
  return value;
156367
157050
  }];
@@ -156382,7 +157065,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156382
157065
  iapGetProductItemList: _IAP.getProductItemList
156383
157066
  })
156384
157067
  });
156385
- var baseProps = (0, import_react7.useMemo)(function () {
157068
+ var baseProps = (0, import_react9.useMemo)(function () {
156386
157069
  switch (type) {
156387
157070
  case "partner":
156388
157071
  {
@@ -156413,7 +157096,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156413
157096
  }, [type, props]);
156414
157097
  var BaseWebView = WEBVIEW_TYPES[type];
156415
157098
  var webViewDebuggingEnabled = operationalEnvironment === "sandbox";
156416
- var handleNavigationStateChange = (0, import_react7.useCallback)(function (event) {
157099
+ var handleNavigationStateChange = (0, import_react9.useCallback)(function (event) {
156417
157100
  if (event.url) {
156418
157101
  trackScreen(event.url);
156419
157102
  }
@@ -156421,7 +157104,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156421
157104
  var userAgent = _useCreateUserAgent({
156422
157105
  colorPreference: "light"
156423
157106
  });
156424
- return (0, import_jsx_runtime5.jsx)(BaseWebView, _objectSpread(_objectSpread(_objectSpread({
157107
+ return (0, import_jsx_runtime7.jsx)(BaseWebView, _objectSpread(_objectSpread(_objectSpread({
156425
157108
  ref: handler.ref
156426
157109
  }, props), baseProps), {}, {
156427
157110
  source: {
@@ -156430,14 +157113,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156430
157113
  "User-Agent": userAgent
156431
157114
  }
156432
157115
  },
156433
- userAgent: import_react_native16.Platform.OS === "ios" ? userAgent : void 0,
157116
+ userAgent: import_react_native21.Platform.OS === "ios" ? userAgent : void 0,
156434
157117
  sharedCookiesEnabled: true,
156435
157118
  webviewDebuggingEnabled: webViewDebuggingEnabled,
156436
157119
  thirdPartyCookiesEnabled: true,
156437
157120
  onMessage: handler.onMessage,
156438
157121
  onNavigationStateChange: handleNavigationStateChange,
156439
157122
  injectedJavaScript: handler.injectedJavaScript,
156440
- injectedJavaScriptBeforeContentLoaded: handler.injectedJavaScript
157123
+ injectedJavaScriptBeforeContentLoaded: handler.injectedJavaScript,
157124
+ decelerationRate: import_react_native21.Platform.OS === "ios" ? 1 : void 0
156441
157125
  }));
156442
157126
  }
156443
157127
  function ensureValue(value, name) {
@@ -156455,10 +157139,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156455
157139
  Accuracy3[Accuracy3["BestForNavigation"] = 6] = "BestForNavigation";
156456
157140
  return Accuracy3;
156457
157141
  }(Accuracy2 || {});
156458
- function onVisibilityChangedByTransparentServiceWeb(eventParams) {
156459
- return _appsInTossEvent.addEventListener("onVisibilityChangedByTransparentServiceWeb", eventParams);
156460
- }
156461
- var _INTERNAL__onVisibilityChangedByTransparentServiceWeb = onVisibilityChangedByTransparentServiceWeb;
156462
157142
  __reExport(src_exports, _$$_REQUIRE(_dependencyMap[0], "@apps-in-toss/analytics"), module.exports);
156463
157143
  var Analytics2 = {
156464
157144
  init: import_analytics2.Analytics.init,
@@ -156485,15 +157165,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156485
157165
  getClipboardText: _getClipboardText,
156486
157166
  getCurrentLocation: _getCurrentLocation,
156487
157167
  getDeviceId: _getDeviceId,
157168
+ getGameCenterGameProfile: _getGameCenterGameProfile,
156488
157169
  getOperationalEnvironment: _getOperationalEnvironment,
156489
157170
  getTossAppVersion: _getTossAppVersion,
156490
157171
  getTossShareLink: _getTossShareLink,
156491
157172
  isMinVersionSupported: _isMinVersionSupported,
156492
157173
  openCamera: _openCamera,
157174
+ openGameCenterLeaderboard: _openGameCenterLeaderboard,
156493
157175
  saveBase64Data: _saveBase64Data,
156494
157176
  setClipboardText: _setClipboardText,
156495
157177
  setDeviceOrientation: _setDeviceOrientation,
156496
157178
  startUpdateLocation: _startUpdateLocation,
157179
+ submitGameCenterLeaderBoardScore: _submitGameCenterLeaderBoardScore,
156497
157180
  useCreateUserAgent: _useCreateUserAgent,
156498
157181
  useGeolocation: _useGeolocation
156499
157182
  }, _$$_REQUIRE(_dependencyMap[0], "@apps-in-toss/analytics")));
@@ -224219,7 +224902,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
224219
224902
  }
224220
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");
224221
224904
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
224222
- module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/geunhyeok.lee/workspace/frontend-bedrock/.yarn/cache/@react-native-bedrock-mpack-next-npm-0.0.25-382cd22a0f-6b37accd87.zip/node_modules/@react-native-bedrock/mpack-next/dist/metro/bedrockAssetRegistry.js").registerAsset({
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({
224223
224906
  "__packager_asset": true,
224224
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",
224225
224908
  "width": 12,
@@ -224231,7 +224914,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
224231
224914
  });
224232
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");
224233
224916
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
224234
- module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/geunhyeok.lee/workspace/frontend-bedrock/.yarn/cache/@react-native-bedrock-mpack-next-npm-0.0.25-382cd22a0f-6b37accd87.zip/node_modules/@react-native-bedrock/mpack-next/dist/metro/bedrockAssetRegistry.js").registerAsset({
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({
224235
224918
  "__packager_asset": true,
224236
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",
224237
224920
  "width": 50,