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