@apps-in-toss/web-framework 1.3.0 → 1.4.0
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 +829 -596
- package/dist/prebuilt/dev.ios.js +829 -596
- package/dist/prebuilt/prod.android.js +623 -420
- package/dist/prebuilt/prod.ios.js +623 -420
- package/package.json +8 -8
package/dist/prebuilt/dev.ios.js
CHANGED
|
@@ -153067,14 +153067,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153067
153067
|
var _default = exports.default = _framework.AppsInToss.registerApp(AppContainer, {
|
|
153068
153068
|
context: _context.context
|
|
153069
153069
|
});
|
|
153070
|
-
},1253,[1254,
|
|
153070
|
+
},1253,[1254,2627,9],"react-native/src/_app.tsx");
|
|
153071
153071
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
153072
153072
|
"use strict";
|
|
153073
153073
|
|
|
153074
153074
|
var _toConsumableArray = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/toConsumableArray");
|
|
153075
153075
|
var _objectWithoutProperties = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/objectWithoutProperties");
|
|
153076
|
-
var
|
|
153077
|
-
var
|
|
153076
|
+
var _slicedToArray = _$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/slicedToArray");
|
|
153077
|
+
var _asyncToGenerator = _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/asyncToGenerator");
|
|
153078
153078
|
var _objectDestructuringEmpty = _$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/objectDestructuringEmpty");
|
|
153079
153079
|
var _excluded = ["children"],
|
|
153080
153080
|
_excluded2 = ["onBackButtonClick", "onHomeButtonClick"],
|
|
@@ -153161,9 +153161,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153161
153161
|
var import_analytics2 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/analytics");
|
|
153162
153162
|
var import_analytics = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/analytics");
|
|
153163
153163
|
var import_native_modules13 = _$$_REQUIRE(_dependencyMap[6], "@apps-in-toss/native-modules");
|
|
153164
|
-
var
|
|
153164
|
+
var import_react_native21 = _$$_REQUIRE(_dependencyMap[7], "@granite-js/react-native");
|
|
153165
153165
|
var import_tds_react_native10 = _$$_REQUIRE(_dependencyMap[8], "@toss/tds-react-native");
|
|
153166
|
-
var
|
|
153166
|
+
var import_react_native22 = _$$_REQUIRE(_dependencyMap[9], "react-native");
|
|
153167
153167
|
var import_native_modules2 = _$$_REQUIRE(_dependencyMap[6], "@apps-in-toss/native-modules");
|
|
153168
153168
|
var import_react_native4 = _$$_REQUIRE(_dependencyMap[7], "@granite-js/react-native");
|
|
153169
153169
|
var import_react3 = _$$_REQUIRE(_dependencyMap[10], "react");
|
|
@@ -153328,94 +153328,157 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153328
153328
|
}, []);
|
|
153329
153329
|
}
|
|
153330
153330
|
var import_native_modules12 = _$$_REQUIRE(_dependencyMap[6], "@apps-in-toss/native-modules");
|
|
153331
|
-
var
|
|
153332
|
-
var
|
|
153333
|
-
var
|
|
153334
|
-
var
|
|
153335
|
-
var
|
|
153336
|
-
var
|
|
153331
|
+
var import_react17 = _$$_REQUIRE(_dependencyMap[10], "react");
|
|
153332
|
+
var import_react_native20 = _$$_REQUIRE(_dependencyMap[9], "react-native");
|
|
153333
|
+
var import_native_modules7 = _$$_REQUIRE(_dependencyMap[6], "@apps-in-toss/native-modules");
|
|
153334
|
+
var import_react_native10 = _$$_REQUIRE(_dependencyMap[7], "@granite-js/react-native");
|
|
153335
|
+
var import_tds_react_native5 = _$$_REQUIRE(_dependencyMap[8], "@toss/tds-react-native");
|
|
153336
|
+
var import_es_hangul = _$$_REQUIRE(_dependencyMap[12], "es-hangul");
|
|
153337
|
+
var import_react11 = _$$_REQUIRE(_dependencyMap[10], "react");
|
|
153338
|
+
var import_react_native11 = _$$_REQUIRE(_dependencyMap[9], "react-native");
|
|
153337
153339
|
var GAME_PROFILE_WEBVIEW_URL = "servicetoss://game-center/profile";
|
|
153338
|
-
var
|
|
153339
|
-
android: "5.
|
|
153340
|
-
ios: "5.
|
|
153340
|
+
var GAME_MIN_VERSION = {
|
|
153341
|
+
android: "5.232.0",
|
|
153342
|
+
ios: "5.232.0"
|
|
153341
153343
|
};
|
|
153342
|
-
var
|
|
153343
|
-
var
|
|
153344
|
-
var import_tds_react_native3 = _$$_REQUIRE(_dependencyMap[8], "@toss/tds-react-native");
|
|
153345
|
-
var import_es_hangul = _$$_REQUIRE(_dependencyMap[12], "es-hangul");
|
|
153346
|
-
var import_react6 = _$$_REQUIRE(_dependencyMap[10], "react");
|
|
153344
|
+
var import_native_modules4 = _$$_REQUIRE(_dependencyMap[6], "@apps-in-toss/native-modules");
|
|
153345
|
+
var import_react_native7 = _$$_REQUIRE(_dependencyMap[7], "@granite-js/react-native");
|
|
153347
153346
|
var import_tds_react_native2 = _$$_REQUIRE(_dependencyMap[8], "@toss/tds-react-native");
|
|
153348
|
-
var
|
|
153349
|
-
var
|
|
153350
|
-
var
|
|
153351
|
-
|
|
153352
|
-
|
|
153353
|
-
|
|
153354
|
-
|
|
153355
|
-
|
|
153356
|
-
|
|
153357
|
-
|
|
153358
|
-
|
|
153359
|
-
|
|
153360
|
-
|
|
153361
|
-
|
|
153362
|
-
|
|
153363
|
-
|
|
153364
|
-
|
|
153365
|
-
|
|
153366
|
-
|
|
153367
|
-
|
|
153368
|
-
|
|
153369
|
-
|
|
153370
|
-
|
|
153371
|
-
|
|
153372
|
-
|
|
153373
|
-
|
|
153374
|
-
|
|
153375
|
-
frameShape: import_tds_react_native2.Asset.frameShape.CleanW32,
|
|
153376
|
-
source: {
|
|
153377
|
-
uri: profileImageUri
|
|
153378
|
-
}
|
|
153379
|
-
})
|
|
153380
|
-
})
|
|
153381
|
-
})
|
|
153382
|
-
});
|
|
153347
|
+
var import_react6 = _$$_REQUIRE(_dependencyMap[10], "react");
|
|
153348
|
+
var import_react_native6 = _$$_REQUIRE(_dependencyMap[9], "react-native");
|
|
153349
|
+
var PLAYSTORE_LINK = "https://play.google.com/store/apps/details?id=viva.republica.toss";
|
|
153350
|
+
var APPSTORE_LINK = "https://itunes.apple.com/app/id839333328";
|
|
153351
|
+
var getMarketLink = function getMarketLink() {
|
|
153352
|
+
return import_react_native6.Platform.OS === "android" ? PLAYSTORE_LINK : APPSTORE_LINK;
|
|
153353
|
+
};
|
|
153354
|
+
function useAppUpdateDialog() {
|
|
153355
|
+
var _ref2 = (0, import_tds_react_native2.useDialog)(),
|
|
153356
|
+
openConfirm = _ref2.openConfirm;
|
|
153357
|
+
var logging = useAppUpdateDialogLogging();
|
|
153358
|
+
var openAppUpdateDialog = (0, import_react6.useCallback)(function () {
|
|
153359
|
+
var _ref4 = _asyncToGenerator(function* (_ref3) {
|
|
153360
|
+
var title = _ref3.title,
|
|
153361
|
+
description = _ref3.description,
|
|
153362
|
+
_ref3$leftButton = _ref3.leftButton,
|
|
153363
|
+
leftButton = _ref3$leftButton === void 0 ? "\uB2EB\uAE30" : _ref3$leftButton,
|
|
153364
|
+
_ref3$rightButton = _ref3.rightButton,
|
|
153365
|
+
rightButton = _ref3$rightButton === void 0 ? "\uC5C5\uB370\uC774\uD2B8\uD558\uAE30" : _ref3$rightButton,
|
|
153366
|
+
onDismiss = _ref3.onDismiss;
|
|
153367
|
+
logging.show();
|
|
153368
|
+
var isConfirmed = yield openConfirm({
|
|
153369
|
+
title: title,
|
|
153370
|
+
description: description,
|
|
153371
|
+
leftButton: leftButton,
|
|
153372
|
+
rightButton: rightButton,
|
|
153373
|
+
closeOnDimmerClick: true
|
|
153383
153374
|
});
|
|
153375
|
+
if (!isConfirmed) {
|
|
153376
|
+
logging.close();
|
|
153377
|
+
onDismiss == null ? void 0 : onDismiss();
|
|
153378
|
+
return;
|
|
153379
|
+
}
|
|
153380
|
+
logging.update();
|
|
153381
|
+
var STORE_SCHEME = getMarketLink();
|
|
153382
|
+
(0, import_react_native7.openURL)("supertoss://web?url=" + STORE_SCHEME + "&external=browser");
|
|
153383
|
+
});
|
|
153384
|
+
return function (_x) {
|
|
153385
|
+
return _ref4.apply(this, arguments);
|
|
153386
|
+
};
|
|
153387
|
+
}(), [logging, openConfirm]);
|
|
153388
|
+
return {
|
|
153389
|
+
open: openAppUpdateDialog
|
|
153390
|
+
};
|
|
153391
|
+
}
|
|
153392
|
+
var UPDATE_DIALOG_SCHEMA_ID = 1634992;
|
|
153393
|
+
var UPDATE_DIALOG_LOG_NAME = "appsintoss_app_visit__common_module::bottomsheet__app_update";
|
|
153394
|
+
var UPDATE_DIALOG_CTA_CLICK_SCHEMA_ID = 1634996;
|
|
153395
|
+
var UPDATE_DIALOG_CTA_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::bottomsheet__app_update::click__cta";
|
|
153396
|
+
function useAppUpdateDialogLogging() {
|
|
153397
|
+
var referrer = useReferrer();
|
|
153398
|
+
var baseParams = {
|
|
153399
|
+
referrer: referrer,
|
|
153400
|
+
app_name: import_react_native7.Granite.appName
|
|
153401
|
+
};
|
|
153402
|
+
var logUpdateClick = function logUpdateClick() {
|
|
153403
|
+
import_native_modules4.INTERNAL__module.tossCoreEventLog({
|
|
153404
|
+
log_name: UPDATE_DIALOG_CTA_CLICK_LOG_NAME,
|
|
153405
|
+
log_type: "event",
|
|
153406
|
+
params: Object.assign({}, baseParams, {
|
|
153407
|
+
schema_id: UPDATE_DIALOG_CTA_CLICK_SCHEMA_ID,
|
|
153408
|
+
event_type: "click",
|
|
153409
|
+
button_type: "update"
|
|
153410
|
+
})
|
|
153411
|
+
});
|
|
153412
|
+
};
|
|
153413
|
+
var logCloseClick = function logCloseClick() {
|
|
153414
|
+
import_native_modules4.INTERNAL__module.tossCoreEventLog({
|
|
153415
|
+
log_name: UPDATE_DIALOG_CTA_CLICK_LOG_NAME,
|
|
153416
|
+
log_type: "event",
|
|
153417
|
+
params: Object.assign({}, baseParams, {
|
|
153418
|
+
schema_id: UPDATE_DIALOG_CTA_CLICK_SCHEMA_ID,
|
|
153419
|
+
event_type: "click",
|
|
153420
|
+
button_type: "close"
|
|
153421
|
+
})
|
|
153422
|
+
});
|
|
153423
|
+
};
|
|
153424
|
+
var logDialogShow = function logDialogShow() {
|
|
153425
|
+
import_native_modules4.INTERNAL__module.tossCoreEventLog({
|
|
153426
|
+
log_name: UPDATE_DIALOG_LOG_NAME,
|
|
153427
|
+
log_type: "popup",
|
|
153428
|
+
params: Object.assign({}, baseParams, {
|
|
153429
|
+
schema_id: UPDATE_DIALOG_SCHEMA_ID
|
|
153430
|
+
})
|
|
153384
153431
|
});
|
|
153385
153432
|
};
|
|
153386
153433
|
return {
|
|
153387
|
-
|
|
153434
|
+
update: logUpdateClick,
|
|
153435
|
+
close: logCloseClick,
|
|
153436
|
+
show: logDialogShow
|
|
153388
153437
|
};
|
|
153389
|
-
}
|
|
153438
|
+
}
|
|
153439
|
+
var import_native_modules6 = _$$_REQUIRE(_dependencyMap[6], "@apps-in-toss/native-modules");
|
|
153440
|
+
var import_react10 = _$$_REQUIRE(_dependencyMap[10], "react");
|
|
153441
|
+
var import_react_native8 = _$$_REQUIRE(_dependencyMap[7], "@granite-js/react-native");
|
|
153442
|
+
var import_tds_react_native3 = _$$_REQUIRE(_dependencyMap[8], "@toss/tds-react-native");
|
|
153443
|
+
var import_react7 = _$$_REQUIRE(_dependencyMap[10], "react");
|
|
153390
153444
|
var DEFAULT_ERROR = {
|
|
153391
153445
|
title: "\uC7A0\uC2DC \uD6C4 \uB2E4\uC2DC \uC2DC\uB3C4\uD574\uC8FC\uC138\uC694",
|
|
153392
153446
|
description: "\uBB38\uC81C\uAC00 \uACC4\uC18D\uB418\uBA74 \uD1A0\uC2A4 \uACE0\uAC1D\uC13C\uD130(1599-4905)\uB85C \uBB38\uC758\uD574\uC8FC\uC138\uC694."
|
|
153393
153447
|
};
|
|
153394
|
-
var
|
|
153395
|
-
|
|
153396
|
-
|
|
153397
|
-
|
|
153398
|
-
|
|
153448
|
+
var useErrorAlert = function useErrorAlert() {
|
|
153449
|
+
var _ref5 = (0, import_tds_react_native3.useDialog)(),
|
|
153450
|
+
openAlert = _ref5.openAlert;
|
|
153451
|
+
var openErrorAlert = (0, import_react7.useCallback)(_asyncToGenerator(function* () {
|
|
153452
|
+
yield openAlert({
|
|
153453
|
+
title: DEFAULT_ERROR.title,
|
|
153454
|
+
description: DEFAULT_ERROR.description
|
|
153455
|
+
});
|
|
153456
|
+
(0, import_react_native8.closeView)();
|
|
153457
|
+
}), [openAlert]);
|
|
153458
|
+
return {
|
|
153459
|
+
open: openErrorAlert
|
|
153460
|
+
};
|
|
153399
153461
|
};
|
|
153400
|
-
var
|
|
153401
|
-
var
|
|
153402
|
-
var
|
|
153403
|
-
var
|
|
153404
|
-
|
|
153405
|
-
|
|
153406
|
-
|
|
153407
|
-
|
|
153408
|
-
|
|
153409
|
-
|
|
153410
|
-
callbackId =
|
|
153411
|
-
|
|
153462
|
+
var import_react8 = _$$_REQUIRE(_dependencyMap[10], "react");
|
|
153463
|
+
var import_react_native9 = _$$_REQUIRE(_dependencyMap[7], "@granite-js/react-native");
|
|
153464
|
+
var import_native_modules5 = _$$_REQUIRE(_dependencyMap[6], "@apps-in-toss/native-modules");
|
|
153465
|
+
var _INTERNAL__onVisibilityChangedByTransparentServiceWeb = import_native_modules5.onVisibilityChangedByTransparentServiceWeb;
|
|
153466
|
+
var openTransparentWebView = function openTransparentWebView(_ref7) {
|
|
153467
|
+
var webUrl = _ref7.webUrl,
|
|
153468
|
+
_ref7$cleanupWhenDism = _ref7.cleanupWhenDismissed,
|
|
153469
|
+
cleanupWhenDismissed = _ref7$cleanupWhenDism === void 0 ? true : _ref7$cleanupWhenDism,
|
|
153470
|
+
_onEvent = _ref7.onEvent,
|
|
153471
|
+
_onError = _ref7.onError,
|
|
153472
|
+
_ref7$callbackId = _ref7.callbackId,
|
|
153473
|
+
callbackId = _ref7$callbackId === void 0 ? "fn" : _ref7$callbackId,
|
|
153474
|
+
params = _ref7.params;
|
|
153412
153475
|
var url = new URL("supertoss://transparent-service-web");
|
|
153413
153476
|
url.searchParams.set("url", webUrl);
|
|
153414
153477
|
url.searchParams.set("onVisibilityChangeCallback", callbackId);
|
|
153415
|
-
Object.entries(params != null ? params : {}).forEach(function (
|
|
153416
|
-
var
|
|
153417
|
-
key =
|
|
153418
|
-
value =
|
|
153478
|
+
Object.entries(params != null ? params : {}).forEach(function (_ref8) {
|
|
153479
|
+
var _ref9 = _slicedToArray(_ref8, 2),
|
|
153480
|
+
key = _ref9[0],
|
|
153481
|
+
value = _ref9[1];
|
|
153419
153482
|
url.searchParams.set(key, value);
|
|
153420
153483
|
});
|
|
153421
153484
|
var cleanup = _INTERNAL__onVisibilityChangedByTransparentServiceWeb({
|
|
@@ -153433,109 +153496,167 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153433
153496
|
}
|
|
153434
153497
|
}
|
|
153435
153498
|
});
|
|
153436
|
-
(0,
|
|
153499
|
+
(0, import_react_native9.openURL)(url.toString());
|
|
153437
153500
|
};
|
|
153438
|
-
var
|
|
153439
|
-
var
|
|
153440
|
-
_ref7 = _slicedToArray(_ref6, 2),
|
|
153441
|
-
profileData = _ref7[0],
|
|
153442
|
-
setProfileData = _ref7[1];
|
|
153443
|
-
var _ref8 = (0, import_react6.useState)(true),
|
|
153444
|
-
_ref9 = _slicedToArray(_ref8, 2),
|
|
153445
|
-
isProfileDataLoading = _ref9[0],
|
|
153446
|
-
setIsProfileDataLoading = _ref9[1];
|
|
153447
|
-
var _ref10 = (0, import_react6.useState)(false),
|
|
153501
|
+
var useTransparentWebview = function useTransparentWebview() {
|
|
153502
|
+
var _ref10 = (0, import_react8.useState)(false),
|
|
153448
153503
|
_ref11 = _slicedToArray(_ref10, 2),
|
|
153449
|
-
|
|
153450
|
-
|
|
153451
|
-
var
|
|
153452
|
-
|
|
153453
|
-
var
|
|
153454
|
-
|
|
153455
|
-
|
|
153456
|
-
|
|
153457
|
-
setIsWebviewLoading = _ref13[1];
|
|
153458
|
-
var isCompletedProfileFlow = (0, import_react6.useRef)(false);
|
|
153459
|
-
var _ref14 = (0, import_tds_react_native3.useDialog)(),
|
|
153460
|
-
openAlert = _ref14.openAlert,
|
|
153461
|
-
openConfirm = _ref14.openConfirm;
|
|
153462
|
-
var _useGameProfileToast = useGameProfileToast(),
|
|
153463
|
-
openGameProfileToast = _useGameProfileToast.openGameProfileToast;
|
|
153464
|
-
var openErrorAlert = (0, import_react6.useCallback)(_asyncToGenerator(function* () {
|
|
153465
|
-
yield openAlert({
|
|
153466
|
-
title: DEFAULT_ERROR.title,
|
|
153467
|
-
description: DEFAULT_ERROR.description
|
|
153468
|
-
});
|
|
153469
|
-
(0, import_react_native8.closeView)();
|
|
153470
|
-
}), [openAlert]);
|
|
153471
|
-
var openProfileWebview = (0, import_react6.useCallback)(function () {
|
|
153504
|
+
isWebviewLoading = _ref11[0],
|
|
153505
|
+
setIsWebviewLoading = _ref11[1];
|
|
153506
|
+
var _useErrorAlert = useErrorAlert(),
|
|
153507
|
+
openErrorAlert = _useErrorAlert.open;
|
|
153508
|
+
var _openTransparentWebview = (0, import_react8.useCallback)(function (_ref12) {
|
|
153509
|
+
var webUrl = _ref12.webUrl,
|
|
153510
|
+
onClose = _ref12.onClose,
|
|
153511
|
+
_onError2 = _ref12.onError;
|
|
153472
153512
|
if (isWebviewLoading) {
|
|
153473
153513
|
return;
|
|
153474
153514
|
}
|
|
153475
153515
|
setIsWebviewLoading(true);
|
|
153476
153516
|
openTransparentWebView({
|
|
153477
|
-
webUrl:
|
|
153517
|
+
webUrl: webUrl,
|
|
153478
153518
|
onEvent: function () {
|
|
153479
153519
|
var _onEvent2 = _asyncToGenerator(function* (isClosedTransparentWebView) {
|
|
153480
153520
|
if (isClosedTransparentWebView) {
|
|
153481
|
-
|
|
153482
|
-
|
|
153483
|
-
setIsProfileDataRefetching(true);
|
|
153484
|
-
var data = yield (0, import_native_modules5.getGameCenterGameProfile)();
|
|
153485
|
-
setProfileData(data);
|
|
153486
|
-
setIsProfileDataRefetching(false);
|
|
153487
|
-
if ((data == null ? void 0 : data.statusCode) === "SUCCESS") {
|
|
153488
|
-
openGameProfileToast(data.nickname, data.profileImageUri);
|
|
153489
|
-
}
|
|
153490
|
-
} catch (_) {
|
|
153491
|
-
setIsProfileDataRefetching(false);
|
|
153492
|
-
openErrorAlert();
|
|
153493
|
-
}
|
|
153521
|
+
setIsWebviewLoading(false);
|
|
153522
|
+
onClose == null ? void 0 : onClose();
|
|
153494
153523
|
}
|
|
153495
153524
|
});
|
|
153496
|
-
function onEvent(
|
|
153525
|
+
function onEvent(_x2) {
|
|
153497
153526
|
return _onEvent2.apply(this, arguments);
|
|
153498
153527
|
}
|
|
153499
153528
|
return onEvent;
|
|
153500
153529
|
}(),
|
|
153501
|
-
onError: function onError() {
|
|
153502
|
-
|
|
153530
|
+
onError: function onError(error) {
|
|
153531
|
+
setIsWebviewLoading(false);
|
|
153532
|
+
if (_onError2) {
|
|
153533
|
+
_onError2(error);
|
|
153534
|
+
} else {
|
|
153535
|
+
openErrorAlert();
|
|
153536
|
+
}
|
|
153503
153537
|
}
|
|
153504
153538
|
});
|
|
153505
|
-
}, [isWebviewLoading,
|
|
153506
|
-
|
|
153507
|
-
|
|
153508
|
-
|
|
153509
|
-
|
|
153510
|
-
|
|
153511
|
-
|
|
153512
|
-
|
|
153513
|
-
|
|
153514
|
-
|
|
153515
|
-
|
|
153516
|
-
|
|
153539
|
+
}, [isWebviewLoading, openErrorAlert]);
|
|
153540
|
+
return {
|
|
153541
|
+
open: _openTransparentWebview
|
|
153542
|
+
};
|
|
153543
|
+
};
|
|
153544
|
+
var import_tds_react_native4 = _$$_REQUIRE(_dependencyMap[8], "@toss/tds-react-native");
|
|
153545
|
+
var import_private2 = _$$_REQUIRE(_dependencyMap[13], "@toss/tds-react-native/private");
|
|
153546
|
+
var import_react9 = _$$_REQUIRE(_dependencyMap[10], "react");
|
|
153547
|
+
var import_jsx_runtime2 = _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime");
|
|
153548
|
+
var useGameProfileToast = function useGameProfileToast() {
|
|
153549
|
+
var overlay = (0, import_private2.useOverlay)();
|
|
153550
|
+
var openGameProfileToast = (0, import_react9.useCallback)(function (nickname, profileImageUri) {
|
|
153551
|
+
return new Promise(function (resolve) {
|
|
153552
|
+
overlay.open(function (_ref13) {
|
|
153553
|
+
var isOpen = _ref13.isOpen,
|
|
153554
|
+
close = _ref13.close,
|
|
153555
|
+
exit = _ref13.exit;
|
|
153556
|
+
return (0, import_jsx_runtime2.jsx)(import_private2.ColorPreferenceProvider, {
|
|
153557
|
+
colorPreference: "dark",
|
|
153558
|
+
children: (0, import_jsx_runtime2.jsx)(import_private2.AdaptiveColorProvider, {
|
|
153559
|
+
children: (0, import_jsx_runtime2.jsx)(import_tds_react_native4.Toast, {
|
|
153560
|
+
open: isOpen,
|
|
153561
|
+
onClose: function onClose() {
|
|
153562
|
+
resolve();
|
|
153563
|
+
close();
|
|
153564
|
+
},
|
|
153565
|
+
onExited: exit,
|
|
153566
|
+
position: "top",
|
|
153567
|
+
text: nickname + "\uB2D8 \uBC18\uAC00\uC6CC\uC694!",
|
|
153568
|
+
icon: (0, import_jsx_runtime2.jsx)(import_tds_react_native4.Asset.Image, {
|
|
153569
|
+
style: {
|
|
153570
|
+
borderRadius: 64,
|
|
153571
|
+
overflow: "hidden"
|
|
153572
|
+
},
|
|
153573
|
+
frameShape: import_tds_react_native4.Asset.frameShape.CleanW32,
|
|
153574
|
+
source: {
|
|
153575
|
+
uri: profileImageUri
|
|
153576
|
+
}
|
|
153577
|
+
})
|
|
153578
|
+
})
|
|
153579
|
+
})
|
|
153580
|
+
});
|
|
153581
|
+
});
|
|
153517
153582
|
});
|
|
153518
|
-
|
|
153519
|
-
|
|
153520
|
-
|
|
153583
|
+
}, [overlay]);
|
|
153584
|
+
return {
|
|
153585
|
+
openGameProfileToast: openGameProfileToast
|
|
153586
|
+
};
|
|
153587
|
+
};
|
|
153588
|
+
var useGameCenterProfile = function useGameCenterProfile(isReadyForProfileUI) {
|
|
153589
|
+
var _ref14 = (0, import_react10.useState)(void 0),
|
|
153590
|
+
_ref15 = _slicedToArray(_ref14, 2),
|
|
153591
|
+
profileData = _ref15[0],
|
|
153592
|
+
setProfileData = _ref15[1];
|
|
153593
|
+
var _ref16 = (0, import_react10.useState)(true),
|
|
153594
|
+
_ref17 = _slicedToArray(_ref16, 2),
|
|
153595
|
+
isProfileDataLoading = _ref17[0],
|
|
153596
|
+
setIsProfileDataLoading = _ref17[1];
|
|
153597
|
+
var _ref18 = (0, import_react10.useState)(false),
|
|
153598
|
+
_ref19 = _slicedToArray(_ref18, 2),
|
|
153599
|
+
isProfileDataRefetching = _ref19[0],
|
|
153600
|
+
setIsProfileDataRefetching = _ref19[1];
|
|
153601
|
+
var shouldShowProfileLoadingOverlay = isProfileDataLoading && isReadyForProfileUI || isProfileDataRefetching;
|
|
153602
|
+
var shouldShowProfileNotFoundOverlay = (profileData == null ? void 0 : profileData.statusCode) === "PROFILE_NOT_FOUND" && isReadyForProfileUI && !isProfileDataRefetching;
|
|
153603
|
+
var canShowBottomSheetOrToast = !isProfileDataLoading && isReadyForProfileUI;
|
|
153604
|
+
var _useGameProfileToast = useGameProfileToast(),
|
|
153605
|
+
openGameProfileToast = _useGameProfileToast.openGameProfileToast;
|
|
153606
|
+
var _useErrorAlert2 = useErrorAlert(),
|
|
153607
|
+
openErrorAlert = _useErrorAlert2.open;
|
|
153608
|
+
var _useTransparentWebvie = useTransparentWebview(),
|
|
153609
|
+
openTransparentWebView2 = _useTransparentWebvie.open;
|
|
153610
|
+
var fetchProfileData = (0, import_react10.useCallback)(_asyncToGenerator(function* () {
|
|
153611
|
+
try {
|
|
153612
|
+
var data = yield (0, import_native_modules6.getGameCenterGameProfile)();
|
|
153613
|
+
setProfileData(data);
|
|
153614
|
+
setIsProfileDataLoading(false);
|
|
153615
|
+
} catch (_) {
|
|
153616
|
+
openErrorAlert();
|
|
153617
|
+
setIsProfileDataLoading(false);
|
|
153618
|
+
}
|
|
153619
|
+
}), [openErrorAlert]);
|
|
153620
|
+
var refetchProfileData = (0, import_react10.useCallback)(_asyncToGenerator(function* () {
|
|
153621
|
+
try {
|
|
153622
|
+
setIsProfileDataRefetching(true);
|
|
153623
|
+
var data = yield (0, import_native_modules6.getGameCenterGameProfile)();
|
|
153624
|
+
setProfileData(data);
|
|
153625
|
+
setIsProfileDataRefetching(false);
|
|
153626
|
+
if ((data == null ? void 0 : data.statusCode) === "SUCCESS") {
|
|
153627
|
+
openGameProfileToast(data.nickname, data.profileImageUri);
|
|
153628
|
+
}
|
|
153629
|
+
} catch (_) {
|
|
153630
|
+
setIsProfileDataRefetching(false);
|
|
153631
|
+
openErrorAlert();
|
|
153521
153632
|
}
|
|
153522
|
-
|
|
153523
|
-
|
|
153524
|
-
|
|
153633
|
+
}), [openErrorAlert, openGameProfileToast]);
|
|
153634
|
+
var openProfileWebview = (0, import_react10.useCallback)(function () {
|
|
153635
|
+
openTransparentWebView2({
|
|
153636
|
+
webUrl: GAME_PROFILE_WEBVIEW_URL + "?appName=" + getAppName() + "&referrer=appsintoss." + getAppName(),
|
|
153637
|
+
onClose: function () {
|
|
153638
|
+
var _onClose = _asyncToGenerator(function* () {
|
|
153639
|
+
refetchProfileData();
|
|
153640
|
+
});
|
|
153641
|
+
function onClose() {
|
|
153642
|
+
return _onClose.apply(this, arguments);
|
|
153643
|
+
}
|
|
153644
|
+
return onClose;
|
|
153645
|
+
}()
|
|
153646
|
+
});
|
|
153647
|
+
}, [openTransparentWebView2, refetchProfileData]);
|
|
153525
153648
|
return {
|
|
153526
153649
|
profileData: profileData,
|
|
153527
153650
|
isProfileDataLoading: isProfileDataLoading,
|
|
153528
|
-
|
|
153529
|
-
shouldShowLoadingOverlay: shouldShowLoadingOverlay,
|
|
153651
|
+
shouldShowProfileLoadingOverlay: shouldShowProfileLoadingOverlay,
|
|
153530
153652
|
shouldShowProfileNotFoundOverlay: shouldShowProfileNotFoundOverlay,
|
|
153531
153653
|
canShowBottomSheetOrToast: canShowBottomSheetOrToast,
|
|
153532
|
-
isCompletedProfileFlow: isCompletedProfileFlow,
|
|
153533
|
-
updateAppToSupportedMinVersion: updateAppToSupportedMinVersion,
|
|
153534
153654
|
setIsProfileDataLoading: setIsProfileDataLoading,
|
|
153535
153655
|
openProfileWebview: openProfileWebview,
|
|
153536
153656
|
setProfileData: setProfileData,
|
|
153537
153657
|
openErrorAlert: openErrorAlert,
|
|
153538
|
-
openGameProfileToast: openGameProfileToast
|
|
153658
|
+
openGameProfileToast: openGameProfileToast,
|
|
153659
|
+
fetchProfileData: fetchProfileData
|
|
153539
153660
|
};
|
|
153540
153661
|
};
|
|
153541
153662
|
var Z_INDEX = {
|
|
@@ -153543,52 +153664,40 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153543
153664
|
CLOSE_BUTTON: 9999
|
|
153544
153665
|
};
|
|
153545
153666
|
var import_jsx_runtime3 = _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime");
|
|
153546
|
-
var
|
|
153547
|
-
var children =
|
|
153548
|
-
isReadyForProfileUI =
|
|
153667
|
+
var GameInitializer = function GameInitializer(_ref22) {
|
|
153668
|
+
var children = _ref22.children,
|
|
153669
|
+
isReadyForProfileUI = _ref22.isReadyForProfileUI;
|
|
153549
153670
|
var _useGameCenterProfile = useGameCenterProfile(isReadyForProfileUI),
|
|
153550
153671
|
profileData = _useGameCenterProfile.profileData,
|
|
153551
|
-
|
|
153552
|
-
shouldShowLoadingOverlay = _useGameCenterProfile.shouldShowLoadingOverlay,
|
|
153672
|
+
shouldShowProfileLoadingOverlay = _useGameCenterProfile.shouldShowProfileLoadingOverlay,
|
|
153553
153673
|
shouldShowProfileNotFoundOverlay = _useGameCenterProfile.shouldShowProfileNotFoundOverlay,
|
|
153554
153674
|
canShowBottomSheetOrToast = _useGameCenterProfile.canShowBottomSheetOrToast,
|
|
153555
|
-
isCompletedProfileFlow = _useGameCenterProfile.isCompletedProfileFlow,
|
|
153556
153675
|
openProfileWebview = _useGameCenterProfile.openProfileWebview,
|
|
153557
|
-
|
|
153558
|
-
|
|
153559
|
-
|
|
153560
|
-
|
|
153561
|
-
|
|
153562
|
-
(0,
|
|
153563
|
-
|
|
153564
|
-
var getProfileData = function () {
|
|
153565
|
-
var _ref18 = _asyncToGenerator(function* () {
|
|
153566
|
-
var data = yield (0, import_native_modules6.getGameCenterGameProfile)();
|
|
153567
|
-
setProfileData(data);
|
|
153568
|
-
setIsProfileDataLoading(false);
|
|
153569
|
-
});
|
|
153570
|
-
return function getProfileData() {
|
|
153571
|
-
return _ref18.apply(this, arguments);
|
|
153572
|
-
};
|
|
153573
|
-
}();
|
|
153574
|
-
getProfileData();
|
|
153575
|
-
} catch (_) {
|
|
153576
|
-
openErrorAlert();
|
|
153577
|
-
setIsProfileDataLoading(false);
|
|
153578
|
-
}
|
|
153676
|
+
openGameProfileToast = _useGameCenterProfile.openGameProfileToast,
|
|
153677
|
+
fetchProfileData = _useGameCenterProfile.fetchProfileData;
|
|
153678
|
+
var isCompletedFlow = (0, import_react11.useRef)(false);
|
|
153679
|
+
var _useAppUpdateDialog = useAppUpdateDialog(),
|
|
153680
|
+
openAppUpdateDialog = _useAppUpdateDialog.open;
|
|
153681
|
+
(0, import_react11.useEffect)(function () {
|
|
153682
|
+
fetchProfileData();
|
|
153579
153683
|
}, []);
|
|
153580
|
-
(0,
|
|
153684
|
+
(0, import_react11.useEffect)(function () {
|
|
153581
153685
|
var handleGameProfileFlow = function () {
|
|
153582
|
-
var
|
|
153686
|
+
var _ref23 = _asyncToGenerator(function* () {
|
|
153583
153687
|
if (!canShowBottomSheetOrToast) {
|
|
153584
153688
|
return;
|
|
153585
153689
|
}
|
|
153586
|
-
if (
|
|
153690
|
+
if (isCompletedFlow.current) {
|
|
153587
153691
|
return;
|
|
153588
153692
|
}
|
|
153589
|
-
|
|
153590
|
-
if (!(0,
|
|
153591
|
-
|
|
153693
|
+
isCompletedFlow.current = true;
|
|
153694
|
+
if (!(0, import_native_modules7.isMinVersionSupported)(GAME_MIN_VERSION)) {
|
|
153695
|
+
openAppUpdateDialog({
|
|
153696
|
+
title: (0, import_es_hangul.josa)(getAppsInTossGlobals().brandDisplayName, "\uC744/\uB97C") + " \uD558\uB824\uBA74 \n\uC571\uC744 \uC5C5\uB370\uC774\uD2B8\uD574\uC8FC\uC138\uC694",
|
|
153697
|
+
onDismiss: function onDismiss() {
|
|
153698
|
+
(0, import_react_native10.closeView)();
|
|
153699
|
+
}
|
|
153700
|
+
});
|
|
153592
153701
|
return;
|
|
153593
153702
|
}
|
|
153594
153703
|
if ((profileData == null ? void 0 : profileData.statusCode) === "SUCCESS") {
|
|
@@ -153600,42 +153709,47 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153600
153709
|
}
|
|
153601
153710
|
});
|
|
153602
153711
|
return function handleGameProfileFlow() {
|
|
153603
|
-
return
|
|
153712
|
+
return _ref23.apply(this, arguments);
|
|
153604
153713
|
};
|
|
153605
153714
|
}();
|
|
153606
153715
|
handleGameProfileFlow();
|
|
153607
|
-
}, [canShowBottomSheetOrToast,
|
|
153608
|
-
if (!(0,
|
|
153716
|
+
}, [canShowBottomSheetOrToast, isCompletedFlow, openAppUpdateDialog, openGameProfileToast, openProfileWebview, profileData]);
|
|
153717
|
+
if (!(0, import_native_modules7.isMinVersionSupported)(GAME_MIN_VERSION)) {
|
|
153609
153718
|
return (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, {
|
|
153610
|
-
children: [(0, import_jsx_runtime3.jsx)(
|
|
153719
|
+
children: [(0, import_jsx_runtime3.jsx)(import_react_native11.View, {
|
|
153611
153720
|
style: {
|
|
153612
153721
|
flex: 1,
|
|
153613
153722
|
position: "relative"
|
|
153614
153723
|
},
|
|
153615
153724
|
children: children
|
|
153616
|
-
}), (0, import_jsx_runtime3.jsx)(
|
|
153725
|
+
}), (0, import_jsx_runtime3.jsx)(import_react_native11.Pressable, {
|
|
153617
153726
|
style: Object.assign({}, overlayStyle),
|
|
153618
153727
|
onPress: function onPress() {
|
|
153619
|
-
|
|
153728
|
+
openAppUpdateDialog({
|
|
153729
|
+
title: (0, import_es_hangul.josa)(getAppsInTossGlobals().brandDisplayName, "\uC744/\uB97C") + " \uD558\uB824\uBA74 \n\uC571\uC744 \uC5C5\uB370\uC774\uD2B8\uD574\uC8FC\uC138\uC694",
|
|
153730
|
+
onDismiss: function onDismiss() {
|
|
153731
|
+
(0, import_react_native10.closeView)();
|
|
153732
|
+
}
|
|
153733
|
+
});
|
|
153620
153734
|
}
|
|
153621
153735
|
})]
|
|
153622
153736
|
});
|
|
153623
153737
|
}
|
|
153624
|
-
if (
|
|
153738
|
+
if (shouldShowProfileLoadingOverlay) {
|
|
153625
153739
|
return (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, {
|
|
153626
|
-
children: [(0, import_jsx_runtime3.jsx)(
|
|
153740
|
+
children: [(0, import_jsx_runtime3.jsx)(import_react_native11.View, {
|
|
153627
153741
|
style: {
|
|
153628
153742
|
flex: 1,
|
|
153629
153743
|
position: "relative"
|
|
153630
153744
|
},
|
|
153631
153745
|
children: children
|
|
153632
|
-
}), (0, import_jsx_runtime3.jsx)(
|
|
153746
|
+
}), (0, import_jsx_runtime3.jsx)(import_react_native11.View, {
|
|
153633
153747
|
style: Object.assign({}, overlayStyle, {
|
|
153634
153748
|
justifyContent: "center",
|
|
153635
153749
|
alignItems: "center",
|
|
153636
153750
|
backgroundColor: "rgba(0, 0, 0, 0.2)"
|
|
153637
153751
|
}),
|
|
153638
|
-
children: (0, import_jsx_runtime3.jsx)(
|
|
153752
|
+
children: (0, import_jsx_runtime3.jsx)(import_tds_react_native5.Loader, {
|
|
153639
153753
|
size: "large",
|
|
153640
153754
|
type: "light"
|
|
153641
153755
|
})
|
|
@@ -153644,13 +153758,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153644
153758
|
}
|
|
153645
153759
|
if (shouldShowProfileNotFoundOverlay) {
|
|
153646
153760
|
return (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, {
|
|
153647
|
-
children: [(0, import_jsx_runtime3.jsx)(
|
|
153761
|
+
children: [(0, import_jsx_runtime3.jsx)(import_react_native11.View, {
|
|
153648
153762
|
style: {
|
|
153649
153763
|
flex: 1,
|
|
153650
153764
|
position: "relative"
|
|
153651
153765
|
},
|
|
153652
153766
|
children: children
|
|
153653
|
-
}), shouldShowProfileNotFoundOverlay && (0, import_jsx_runtime3.jsx)(
|
|
153767
|
+
}), shouldShowProfileNotFoundOverlay && (0, import_jsx_runtime3.jsx)(import_react_native11.Pressable, {
|
|
153654
153768
|
style: Object.assign({}, overlayStyle),
|
|
153655
153769
|
onPress: function onPress() {
|
|
153656
153770
|
openProfileWebview();
|
|
@@ -153659,7 +153773,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153659
153773
|
});
|
|
153660
153774
|
}
|
|
153661
153775
|
return (0, import_jsx_runtime3.jsx)(import_jsx_runtime3.Fragment, {
|
|
153662
|
-
children: (0, import_jsx_runtime3.jsx)(
|
|
153776
|
+
children: (0, import_jsx_runtime3.jsx)(import_react_native11.View, {
|
|
153663
153777
|
style: {
|
|
153664
153778
|
flex: 1,
|
|
153665
153779
|
position: "relative"
|
|
@@ -153677,33 +153791,33 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153677
153791
|
zIndex: Z_INDEX.PROFILE_OVERLAY
|
|
153678
153792
|
};
|
|
153679
153793
|
var import_private5 = _$$_REQUIRE(_dependencyMap[13], "@toss/tds-react-native/private");
|
|
153680
|
-
var
|
|
153681
|
-
var
|
|
153794
|
+
var import_react12 = _$$_REQUIRE(_dependencyMap[10], "react");
|
|
153795
|
+
var import_react_native12 = _$$_REQUIRE(_dependencyMap[9], "react-native");
|
|
153682
153796
|
function useHardwareBackPress(handler) {
|
|
153683
|
-
(0,
|
|
153797
|
+
(0, import_react12.useEffect)(function () {
|
|
153684
153798
|
var handleBackPress = function handleBackPress() {
|
|
153685
153799
|
handler();
|
|
153686
153800
|
return true;
|
|
153687
153801
|
};
|
|
153688
|
-
|
|
153802
|
+
import_react_native12.BackHandler.addEventListener("hardwareBackPress", handleBackPress);
|
|
153689
153803
|
return function () {
|
|
153690
|
-
return
|
|
153804
|
+
return import_react_native12.BackHandler.removeEventListener("hardwareBackPress", handleBackPress);
|
|
153691
153805
|
};
|
|
153692
153806
|
}, [handler]);
|
|
153693
153807
|
}
|
|
153694
|
-
var
|
|
153695
|
-
var
|
|
153696
|
-
var
|
|
153808
|
+
var import_react_native14 = _$$_REQUIRE(_dependencyMap[7], "@granite-js/react-native");
|
|
153809
|
+
var import_react14 = _$$_REQUIRE(_dependencyMap[10], "react");
|
|
153810
|
+
var import_tds_react_native6 = _$$_REQUIRE(_dependencyMap[8], "@toss/tds-react-native");
|
|
153697
153811
|
var import_es_hangul2 = _$$_REQUIRE(_dependencyMap[12], "es-hangul");
|
|
153698
|
-
var
|
|
153812
|
+
var import_react13 = _$$_REQUIRE(_dependencyMap[10], "react");
|
|
153699
153813
|
function useCloseConfirm() {
|
|
153700
153814
|
var _getAppsInTossGlobals = getAppsInTossGlobals(),
|
|
153701
153815
|
brandDisplayName = _getAppsInTossGlobals.brandDisplayName;
|
|
153702
|
-
var
|
|
153703
|
-
openConfirm =
|
|
153704
|
-
return (0,
|
|
153705
|
-
var
|
|
153706
|
-
var onEntered =
|
|
153816
|
+
var _ref24 = (0, import_tds_react_native6.useDialog)(),
|
|
153817
|
+
openConfirm = _ref24.openConfirm;
|
|
153818
|
+
return (0, import_react13.useCallback)(function () {
|
|
153819
|
+
var _ref26 = _asyncToGenerator(function* (_ref25) {
|
|
153820
|
+
var onEntered = _ref25.onEntered;
|
|
153707
153821
|
return yield openConfirm({
|
|
153708
153822
|
title: (0, import_es_hangul2.josa)(brandDisplayName, "\uC744/\uB97C") + " \uC885\uB8CC\uD560\uAE4C\uC694?",
|
|
153709
153823
|
leftButton: "\uCDE8\uC18C",
|
|
@@ -153712,13 +153826,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153712
153826
|
onEntered: onEntered
|
|
153713
153827
|
});
|
|
153714
153828
|
});
|
|
153715
|
-
return function (
|
|
153716
|
-
return
|
|
153829
|
+
return function (_x3) {
|
|
153830
|
+
return _ref26.apply(this, arguments);
|
|
153717
153831
|
};
|
|
153718
153832
|
}(), [brandDisplayName, openConfirm]);
|
|
153719
153833
|
}
|
|
153720
|
-
var
|
|
153721
|
-
var
|
|
153834
|
+
var import_native_modules8 = _$$_REQUIRE(_dependencyMap[6], "@apps-in-toss/native-modules");
|
|
153835
|
+
var import_react_native13 = _$$_REQUIRE(_dependencyMap[7], "@granite-js/react-native");
|
|
153722
153836
|
var NAVI_BAR_IMPRESSION_SCHEMA_ID = 1596837;
|
|
153723
153837
|
var NAVI_BAR_IMPRESSION_LOG_NAME = "appsintoss_app_visit__common_module::impression__navigation_bar";
|
|
153724
153838
|
var CLOSE_POPUP_SHOW_SCHEMA_ID = 1644490;
|
|
@@ -153733,10 +153847,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153733
153847
|
var referrer = useReferrer();
|
|
153734
153848
|
var baseParams = {
|
|
153735
153849
|
referrer: referrer,
|
|
153736
|
-
app_name:
|
|
153850
|
+
app_name: import_react_native13.Granite.appName
|
|
153737
153851
|
};
|
|
153738
153852
|
var logNavBarImpression = function logNavBarImpression(naviBarConfig) {
|
|
153739
|
-
|
|
153853
|
+
import_native_modules8.INTERNAL__module.tossCoreEventLog({
|
|
153740
153854
|
log_name: NAVI_BAR_IMPRESSION_LOG_NAME,
|
|
153741
153855
|
log_type: "event",
|
|
153742
153856
|
params: Object.assign({}, naviBarConfig, baseParams, {
|
|
@@ -153746,7 +153860,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153746
153860
|
});
|
|
153747
153861
|
};
|
|
153748
153862
|
var logHomeButtonClick = function logHomeButtonClick() {
|
|
153749
|
-
|
|
153863
|
+
import_native_modules8.INTERNAL__module.tossCoreEventLog({
|
|
153750
153864
|
log_name: HOME_BUTTON_CLICK_LOG_NAME,
|
|
153751
153865
|
log_type: "event",
|
|
153752
153866
|
params: Object.assign({}, baseParams, {
|
|
@@ -153756,7 +153870,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153756
153870
|
});
|
|
153757
153871
|
};
|
|
153758
153872
|
var logCloseButtonClick = function logCloseButtonClick() {
|
|
153759
|
-
|
|
153873
|
+
import_native_modules8.INTERNAL__module.tossCoreEventLog({
|
|
153760
153874
|
log_name: CLOSE_BUTTON_CLICK_LOG_NAME,
|
|
153761
153875
|
log_type: "event",
|
|
153762
153876
|
params: Object.assign({}, baseParams, {
|
|
@@ -153766,7 +153880,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153766
153880
|
});
|
|
153767
153881
|
};
|
|
153768
153882
|
var logClosePopupShow = function logClosePopupShow() {
|
|
153769
|
-
|
|
153883
|
+
import_native_modules8.INTERNAL__module.tossCoreEventLog({
|
|
153770
153884
|
log_name: CLOSE_POPUP_SHOW_LOG_NAME,
|
|
153771
153885
|
log_type: "popup",
|
|
153772
153886
|
params: Object.assign({}, baseParams, {
|
|
@@ -153775,7 +153889,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153775
153889
|
});
|
|
153776
153890
|
};
|
|
153777
153891
|
var logClosePopupCtaClick = function logClosePopupCtaClick(confirm) {
|
|
153778
|
-
|
|
153892
|
+
import_native_modules8.INTERNAL__module.tossCoreEventLog({
|
|
153779
153893
|
log_name: CLOSE_POPUP_CTA_CLICK_LOG_NAME,
|
|
153780
153894
|
log_type: "event",
|
|
153781
153895
|
params: Object.assign({}, baseParams, {
|
|
@@ -153794,26 +153908,26 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153794
153908
|
};
|
|
153795
153909
|
}
|
|
153796
153910
|
function useNavigationEvent() {
|
|
153797
|
-
var backEventContext = (0,
|
|
153911
|
+
var backEventContext = (0, import_react_native14.useBackEventContext)();
|
|
153798
153912
|
var logging = useNavigationBarLogging();
|
|
153799
|
-
var navigation = (0,
|
|
153913
|
+
var navigation = (0, import_react_native14.useNavigation)();
|
|
153800
153914
|
var closeConfirm = useCloseConfirm();
|
|
153801
153915
|
var _useCaptureExitLog2 = useCaptureExitLog(),
|
|
153802
153916
|
captureExitLog = _useCaptureExitLog2.captureExitLog;
|
|
153803
|
-
return (0,
|
|
153917
|
+
return (0, import_react14.useMemo)(function () {
|
|
153804
153918
|
var close = function () {
|
|
153805
|
-
var
|
|
153919
|
+
var _ref27 = _asyncToGenerator(function* () {
|
|
153806
153920
|
var hasConfirmed = yield closeConfirm({
|
|
153807
153921
|
onEntered: logging.closePopupShow
|
|
153808
153922
|
});
|
|
153809
153923
|
logging.closePopupCtaClick(hasConfirmed);
|
|
153810
153924
|
if (hasConfirmed) {
|
|
153811
153925
|
captureExitLog(Date.now());
|
|
153812
|
-
(0,
|
|
153926
|
+
(0, import_react_native14.closeView)();
|
|
153813
153927
|
}
|
|
153814
153928
|
});
|
|
153815
153929
|
return function close() {
|
|
153816
|
-
return
|
|
153930
|
+
return _ref27.apply(this, arguments);
|
|
153817
153931
|
};
|
|
153818
153932
|
}();
|
|
153819
153933
|
return {
|
|
@@ -153838,17 +153952,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153838
153952
|
}, [backEventContext, navigation, closeConfirm, logging, captureExitLog]);
|
|
153839
153953
|
}
|
|
153840
153954
|
var import_native_modules11 = _$$_REQUIRE(_dependencyMap[6], "@apps-in-toss/native-modules");
|
|
153841
|
-
var
|
|
153955
|
+
var import_react_native18 = _$$_REQUIRE(_dependencyMap[7], "@granite-js/react-native");
|
|
153842
153956
|
var import_tds_react_native8 = _$$_REQUIRE(_dependencyMap[8], "@toss/tds-react-native");
|
|
153843
153957
|
var import_private4 = _$$_REQUIRE(_dependencyMap[13], "@toss/tds-react-native/private");
|
|
153844
|
-
var
|
|
153845
|
-
var
|
|
153846
|
-
var
|
|
153847
|
-
var
|
|
153958
|
+
var import_react15 = _$$_REQUIRE(_dependencyMap[10], "react");
|
|
153959
|
+
var import_native_modules10 = _$$_REQUIRE(_dependencyMap[6], "@apps-in-toss/native-modules");
|
|
153960
|
+
var import_react_native16 = _$$_REQUIRE(_dependencyMap[7], "@granite-js/react-native");
|
|
153961
|
+
var import_tds_react_native7 = _$$_REQUIRE(_dependencyMap[8], "@toss/tds-react-native");
|
|
153848
153962
|
var import_private3 = _$$_REQUIRE(_dependencyMap[13], "@toss/tds-react-native/private");
|
|
153849
|
-
var
|
|
153850
|
-
var
|
|
153851
|
-
var
|
|
153963
|
+
var import_react_native17 = _$$_REQUIRE(_dependencyMap[9], "react-native");
|
|
153964
|
+
var import_native_modules9 = _$$_REQUIRE(_dependencyMap[6], "@apps-in-toss/native-modules");
|
|
153965
|
+
var import_react_native15 = _$$_REQUIRE(_dependencyMap[7], "@granite-js/react-native");
|
|
153852
153966
|
var BOTTOM_SHEET_SCHEMA_ID = 1596825;
|
|
153853
153967
|
var BOTTOM_SHEET_LOG_NAME = "appsintoss_app_visit__common_module::bottomsheet__more";
|
|
153854
153968
|
var BOTTOM_SHEET_OPEN_SCHEMA_ID = 1596829;
|
|
@@ -153861,10 +153975,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153861
153975
|
var referrer = useReferrer();
|
|
153862
153976
|
var baseParams = {
|
|
153863
153977
|
referrer: referrer,
|
|
153864
|
-
app_name:
|
|
153978
|
+
app_name: import_react_native15.Granite.appName
|
|
153865
153979
|
};
|
|
153866
153980
|
var logBottomSheetShow = function logBottomSheetShow() {
|
|
153867
|
-
|
|
153981
|
+
import_native_modules9.INTERNAL__module.tossCoreEventLog({
|
|
153868
153982
|
log_name: BOTTOM_SHEET_LOG_NAME,
|
|
153869
153983
|
log_type: "popup",
|
|
153870
153984
|
params: Object.assign({}, baseParams, {
|
|
@@ -153873,7 +153987,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153873
153987
|
});
|
|
153874
153988
|
};
|
|
153875
153989
|
var logBottomSheetOpen = function logBottomSheetOpen() {
|
|
153876
|
-
|
|
153990
|
+
import_native_modules9.INTERNAL__module.tossCoreEventLog({
|
|
153877
153991
|
log_name: BOTTOM_SHEET_OPEN_LOG_NAME,
|
|
153878
153992
|
log_type: "event",
|
|
153879
153993
|
params: Object.assign({}, baseParams, {
|
|
@@ -153883,7 +153997,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153883
153997
|
});
|
|
153884
153998
|
};
|
|
153885
153999
|
var logBottomSheetCloseClick = function logBottomSheetCloseClick() {
|
|
153886
|
-
|
|
154000
|
+
import_native_modules9.INTERNAL__module.tossCoreEventLog({
|
|
153887
154001
|
log_name: BOTTOM_SHEET_CLOSE_CLICK_LOG_NAME,
|
|
153888
154002
|
log_type: "event",
|
|
153889
154003
|
params: Object.assign({}, baseParams, {
|
|
@@ -153892,9 +154006,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153892
154006
|
})
|
|
153893
154007
|
});
|
|
153894
154008
|
};
|
|
153895
|
-
var logBottomSheetMenuClick = function logBottomSheetMenuClick(
|
|
153896
|
-
var title =
|
|
153897
|
-
|
|
154009
|
+
var logBottomSheetMenuClick = function logBottomSheetMenuClick(_ref28) {
|
|
154010
|
+
var title = _ref28.title;
|
|
154011
|
+
import_native_modules9.INTERNAL__module.tossCoreEventLog({
|
|
153898
154012
|
log_name: BOTTOM_SHEET_MENU_CLICK_LOG_NAME,
|
|
153899
154013
|
log_type: "event",
|
|
153900
154014
|
params: Object.assign({}, baseParams, {
|
|
@@ -153913,10 +154027,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153913
154027
|
}
|
|
153914
154028
|
function addParamsToUrl(url, params) {
|
|
153915
154029
|
var urlObj = new URL(url);
|
|
153916
|
-
for (var
|
|
153917
|
-
var
|
|
153918
|
-
var key =
|
|
153919
|
-
var value =
|
|
154030
|
+
for (var _ref29 of Object.entries(params)) {
|
|
154031
|
+
var _ref30 = _slicedToArray(_ref29, 2);
|
|
154032
|
+
var key = _ref30[0];
|
|
154033
|
+
var value = _ref30[1];
|
|
153920
154034
|
urlObj.searchParams.set(key, value);
|
|
153921
154035
|
}
|
|
153922
154036
|
return urlObj.toString();
|
|
@@ -153931,22 +154045,22 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153931
154045
|
var globals = getAppsInTossGlobals();
|
|
153932
154046
|
var adaptive = (0, import_private3.useAdaptive)();
|
|
153933
154047
|
var logging = useMoreButtonBottomSheetLogging();
|
|
153934
|
-
var initialScheme = (0,
|
|
153935
|
-
var isSandbox = (0,
|
|
153936
|
-
var
|
|
153937
|
-
openConfirm =
|
|
154048
|
+
var initialScheme = (0, import_react_native16.getSchemeUri)();
|
|
154049
|
+
var isSandbox = (0, import_native_modules10.getOperationalEnvironment)() === "sandbox";
|
|
154050
|
+
var _ref31 = (0, import_tds_react_native7.useDialog)(),
|
|
154051
|
+
openConfirm = _ref31.openConfirm;
|
|
153938
154052
|
var schemeForShare = addParamsToUrl(initialScheme, {
|
|
153939
154053
|
referrer: SHARE_SCHEME_REFERRER
|
|
153940
154054
|
});
|
|
153941
|
-
return (0, import_jsx_runtime4.jsx)(
|
|
153942
|
-
left: (0, import_jsx_runtime4.jsx)(
|
|
154055
|
+
return (0, import_jsx_runtime4.jsx)(import_tds_react_native7.ListRow, {
|
|
154056
|
+
left: (0, import_jsx_runtime4.jsx)(import_tds_react_native7.ListRow.Icon, {
|
|
153943
154057
|
color: globals.brandPrimaryColor,
|
|
153944
154058
|
source: {
|
|
153945
154059
|
uri: APP_SHARE_MENU_INFO.contactIconUrl
|
|
153946
154060
|
},
|
|
153947
154061
|
type: "background"
|
|
153948
154062
|
}),
|
|
153949
|
-
contents: (0, import_jsx_runtime4.jsx)(
|
|
154063
|
+
contents: (0, import_jsx_runtime4.jsx)(import_tds_react_native7.ListRow.Texts, {
|
|
153950
154064
|
type: "1RowTypeA",
|
|
153951
154065
|
top: APP_SHARE_MENU_INFO.contactItemName,
|
|
153952
154066
|
topProps: {
|
|
@@ -153967,7 +154081,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153967
154081
|
logging.menuClick({
|
|
153968
154082
|
title: APP_SHARE_MENU_INFO.contactItemName
|
|
153969
154083
|
});
|
|
153970
|
-
|
|
154084
|
+
import_react_native17.NativeModules.AppsInTossModule.shareWithScheme({
|
|
153971
154085
|
params: {
|
|
153972
154086
|
schemeURL: schemeForShare
|
|
153973
154087
|
}
|
|
@@ -153975,93 +154089,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153975
154089
|
}
|
|
153976
154090
|
});
|
|
153977
154091
|
}
|
|
153978
|
-
var import_native_modules10 = _$$_REQUIRE(_dependencyMap[6], "@apps-in-toss/native-modules");
|
|
153979
|
-
var import_react_native16 = _$$_REQUIRE(_dependencyMap[7], "@granite-js/react-native");
|
|
153980
|
-
var import_tds_react_native7 = _$$_REQUIRE(_dependencyMap[8], "@toss/tds-react-native");
|
|
153981
|
-
var import_react11 = _$$_REQUIRE(_dependencyMap[10], "react");
|
|
153982
|
-
function useAppUpdateDialog() {
|
|
153983
|
-
var _ref28 = (0, import_tds_react_native7.useDialog)(),
|
|
153984
|
-
openConfirm = _ref28.openConfirm;
|
|
153985
|
-
var logging = useAppUpdateDialogLogging();
|
|
153986
|
-
var openAppUpdateDialog = (0, import_react11.useCallback)(function () {
|
|
153987
|
-
var _ref30 = _asyncToGenerator(function* (_ref29) {
|
|
153988
|
-
var title = _ref29.title,
|
|
153989
|
-
description = _ref29.description,
|
|
153990
|
-
_ref29$leftButton = _ref29.leftButton,
|
|
153991
|
-
leftButton = _ref29$leftButton === void 0 ? "\uB2EB\uAE30" : _ref29$leftButton,
|
|
153992
|
-
_ref29$rightButton = _ref29.rightButton,
|
|
153993
|
-
rightButton = _ref29$rightButton === void 0 ? "\uC5C5\uB370\uC774\uD2B8\uD558\uAE30" : _ref29$rightButton;
|
|
153994
|
-
logging.show();
|
|
153995
|
-
var isConfirmed = yield openConfirm({
|
|
153996
|
-
title: title,
|
|
153997
|
-
description: description,
|
|
153998
|
-
leftButton: leftButton,
|
|
153999
|
-
rightButton: rightButton,
|
|
154000
|
-
closeOnDimmerClick: true
|
|
154001
|
-
});
|
|
154002
|
-
if (!isConfirmed) {
|
|
154003
|
-
logging.close();
|
|
154004
|
-
return;
|
|
154005
|
-
}
|
|
154006
|
-
logging.update();
|
|
154007
|
-
var STORE_SCHEME = getMarketLink();
|
|
154008
|
-
(0, import_react_native16.openURL)("supertoss://web?url=" + STORE_SCHEME + "&external=browser");
|
|
154009
|
-
});
|
|
154010
|
-
return function (_x3) {
|
|
154011
|
-
return _ref30.apply(this, arguments);
|
|
154012
|
-
};
|
|
154013
|
-
}(), [logging, openConfirm]);
|
|
154014
|
-
return {
|
|
154015
|
-
open: openAppUpdateDialog
|
|
154016
|
-
};
|
|
154017
|
-
}
|
|
154018
|
-
var UPDATE_DIALOG_SCHEMA_ID = 1634992;
|
|
154019
|
-
var UPDATE_DIALOG_LOG_NAME = "appsintoss_app_visit__common_module::bottomsheet__app_update";
|
|
154020
|
-
var UPDATE_DIALOG_CTA_CLICK_SCHEMA_ID = 1634996;
|
|
154021
|
-
var UPDATE_DIALOG_CTA_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::bottomsheet__app_update::click__cta";
|
|
154022
|
-
function useAppUpdateDialogLogging() {
|
|
154023
|
-
var referrer = useReferrer();
|
|
154024
|
-
var baseParams = {
|
|
154025
|
-
referrer: referrer,
|
|
154026
|
-
app_name: import_react_native16.Granite.appName
|
|
154027
|
-
};
|
|
154028
|
-
var logUpdateClick = function logUpdateClick() {
|
|
154029
|
-
import_native_modules10.INTERNAL__module.tossCoreEventLog({
|
|
154030
|
-
log_name: UPDATE_DIALOG_CTA_CLICK_LOG_NAME,
|
|
154031
|
-
log_type: "event",
|
|
154032
|
-
params: Object.assign({}, baseParams, {
|
|
154033
|
-
schema_id: UPDATE_DIALOG_CTA_CLICK_SCHEMA_ID,
|
|
154034
|
-
event_type: "click",
|
|
154035
|
-
button_type: "update"
|
|
154036
|
-
})
|
|
154037
|
-
});
|
|
154038
|
-
};
|
|
154039
|
-
var logCloseClick = function logCloseClick() {
|
|
154040
|
-
import_native_modules10.INTERNAL__module.tossCoreEventLog({
|
|
154041
|
-
log_name: UPDATE_DIALOG_CTA_CLICK_LOG_NAME,
|
|
154042
|
-
log_type: "event",
|
|
154043
|
-
params: Object.assign({}, baseParams, {
|
|
154044
|
-
schema_id: UPDATE_DIALOG_CTA_CLICK_SCHEMA_ID,
|
|
154045
|
-
event_type: "click",
|
|
154046
|
-
button_type: "close"
|
|
154047
|
-
})
|
|
154048
|
-
});
|
|
154049
|
-
};
|
|
154050
|
-
var logDialogShow = function logDialogShow() {
|
|
154051
|
-
import_native_modules10.INTERNAL__module.tossCoreEventLog({
|
|
154052
|
-
log_name: UPDATE_DIALOG_LOG_NAME,
|
|
154053
|
-
log_type: "popup",
|
|
154054
|
-
params: Object.assign({}, baseParams, {
|
|
154055
|
-
schema_id: UPDATE_DIALOG_SCHEMA_ID
|
|
154056
|
-
})
|
|
154057
|
-
});
|
|
154058
|
-
};
|
|
154059
|
-
return {
|
|
154060
|
-
update: logUpdateClick,
|
|
154061
|
-
close: logCloseClick,
|
|
154062
|
-
show: logDialogShow
|
|
154063
|
-
};
|
|
154064
|
-
}
|
|
154065
154092
|
function ensureValue(value, name) {
|
|
154066
154093
|
if (value === void 0) {
|
|
154067
154094
|
throw new Error(name + " is required");
|
|
@@ -154083,23 +154110,23 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154083
154110
|
function useMoreButtonBottomSheet() {
|
|
154084
154111
|
var globals = getAppsInTossGlobals();
|
|
154085
154112
|
var adaptive = (0, import_private4.useAdaptive)();
|
|
154086
|
-
var
|
|
154087
|
-
|
|
154088
|
-
itemList =
|
|
154089
|
-
setItemList =
|
|
154113
|
+
var _ref32 = (0, import_react15.useState)([]),
|
|
154114
|
+
_ref33 = _slicedToArray(_ref32, 2),
|
|
154115
|
+
itemList = _ref33[0],
|
|
154116
|
+
setItemList = _ref33[1];
|
|
154090
154117
|
var appUpdateDialog = useAppUpdateDialog();
|
|
154091
154118
|
var logging = useMoreButtonBottomSheetLogging();
|
|
154092
154119
|
var overlay = (0, import_private4.useOverlay)();
|
|
154093
154120
|
var title = ensureValue(globals.brandDisplayName, "displayName");
|
|
154094
154121
|
var isBottomSheetSupported = (0, import_native_modules11.isMinVersionSupported)(MIN_VERSION.BOTTOM_SHEET);
|
|
154095
154122
|
var isShareListMenuSupported = (0, import_native_modules11.isMinVersionSupported)(MIN_VERSION.SHARE_LIST_MENU);
|
|
154096
|
-
(0,
|
|
154123
|
+
(0, import_react15.useEffect)(function () {
|
|
154097
154124
|
if (!isBottomSheetSupported) {
|
|
154098
154125
|
return;
|
|
154099
154126
|
}
|
|
154100
154127
|
import_native_modules11.INTERNAL__appBridgeHandler.invokeAppBridgeMethod(APP_BRIDGE_METHOD_NAME, {}, {
|
|
154101
|
-
onSuccess: function onSuccess(
|
|
154102
|
-
var items =
|
|
154128
|
+
onSuccess: function onSuccess(_ref34) {
|
|
154129
|
+
var items = _ref34.items;
|
|
154103
154130
|
return setItemList(items);
|
|
154104
154131
|
},
|
|
154105
154132
|
onError: function onError(error) {
|
|
@@ -154108,7 +154135,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154108
154135
|
});
|
|
154109
154136
|
}, [isBottomSheetSupported]);
|
|
154110
154137
|
var onClickHandler = function () {
|
|
154111
|
-
var
|
|
154138
|
+
var _ref35 = _asyncToGenerator(function* () {
|
|
154112
154139
|
logging.open();
|
|
154113
154140
|
if (!isBottomSheetSupported) {
|
|
154114
154141
|
yield appUpdateDialog.open({
|
|
@@ -154117,10 +154144,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154117
154144
|
});
|
|
154118
154145
|
return;
|
|
154119
154146
|
}
|
|
154120
|
-
overlay.open(function (
|
|
154121
|
-
var isOpen =
|
|
154122
|
-
exit =
|
|
154123
|
-
close =
|
|
154147
|
+
overlay.open(function (_ref36) {
|
|
154148
|
+
var isOpen = _ref36.isOpen,
|
|
154149
|
+
exit = _ref36.exit,
|
|
154150
|
+
close = _ref36.close;
|
|
154124
154151
|
var handleClose = function handleClose() {
|
|
154125
154152
|
logging.close();
|
|
154126
154153
|
close();
|
|
@@ -154170,7 +154197,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154170
154197
|
logging.menuClick({
|
|
154171
154198
|
title: item.contactItemName
|
|
154172
154199
|
});
|
|
154173
|
-
(0,
|
|
154200
|
+
(0, import_react_native18.openURL)(item.contactUri);
|
|
154174
154201
|
}
|
|
154175
154202
|
}, item.contactItemName);
|
|
154176
154203
|
}), isShareListMenuSupported && (0, import_jsx_runtime5.jsx)(AppShareListMenu, {})]
|
|
@@ -154180,17 +154207,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154180
154207
|
});
|
|
154181
154208
|
});
|
|
154182
154209
|
return function onClickHandler() {
|
|
154183
|
-
return
|
|
154210
|
+
return _ref35.apply(this, arguments);
|
|
154184
154211
|
};
|
|
154185
154212
|
}();
|
|
154186
154213
|
return {
|
|
154187
154214
|
open: onClickHandler
|
|
154188
154215
|
};
|
|
154189
154216
|
}
|
|
154190
|
-
function BottomSheetImpressionArea(
|
|
154191
|
-
var children =
|
|
154217
|
+
function BottomSheetImpressionArea(_ref37) {
|
|
154218
|
+
var children = _ref37.children;
|
|
154192
154219
|
var logging = useMoreButtonBottomSheetLogging();
|
|
154193
|
-
(0,
|
|
154220
|
+
(0, import_react15.useEffect)(function () {
|
|
154194
154221
|
logging.show();
|
|
154195
154222
|
}, [logging]);
|
|
154196
154223
|
return (0, import_jsx_runtime5.jsx)(import_jsx_runtime5.Fragment, {
|
|
@@ -154207,14 +154234,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154207
154234
|
return null;
|
|
154208
154235
|
}
|
|
154209
154236
|
}
|
|
154210
|
-
var
|
|
154237
|
+
var import_react16 = _$$_REQUIRE(_dependencyMap[10], "react");
|
|
154211
154238
|
var import_jsx_runtime6 = _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime");
|
|
154212
|
-
function NavigationBarImpressionArea(
|
|
154213
|
-
var children =
|
|
154214
|
-
withHomeButton =
|
|
154215
|
-
var hasLogged = (0,
|
|
154239
|
+
function NavigationBarImpressionArea(_ref38) {
|
|
154240
|
+
var children = _ref38.children,
|
|
154241
|
+
withHomeButton = _ref38.withHomeButton;
|
|
154242
|
+
var hasLogged = (0, import_react16.useRef)(false);
|
|
154216
154243
|
var logging = useNavigationBarLogging();
|
|
154217
|
-
(0,
|
|
154244
|
+
(0, import_react16.useEffect)(function () {
|
|
154218
154245
|
if (hasLogged.current === false) {
|
|
154219
154246
|
logging.navBarImpression({
|
|
154220
154247
|
home_icon_yn: withHomeButton ? "Y" : "N"
|
|
@@ -154261,7 +154288,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154261
154288
|
}
|
|
154262
154289
|
var import_tds_react_native9 = _$$_REQUIRE(_dependencyMap[8], "@toss/tds-react-native");
|
|
154263
154290
|
var import_private6 = _$$_REQUIRE(_dependencyMap[13], "@toss/tds-react-native/private");
|
|
154264
|
-
var
|
|
154291
|
+
var import_react_native19 = _$$_REQUIRE(_dependencyMap[9], "react-native");
|
|
154265
154292
|
var import_jsx_runtime8 = _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime");
|
|
154266
154293
|
function GameNavigationBar() {
|
|
154267
154294
|
var safeAreaTop = (0, import_private6.useSafeAreaTop)();
|
|
@@ -154277,10 +154304,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154277
154304
|
preference: {
|
|
154278
154305
|
type: "none"
|
|
154279
154306
|
}
|
|
154280
|
-
}), (0, import_jsx_runtime8.jsx)(
|
|
154307
|
+
}), (0, import_jsx_runtime8.jsx)(import_react_native19.View, {
|
|
154281
154308
|
style: {
|
|
154282
154309
|
width: "100%",
|
|
154283
|
-
height:
|
|
154310
|
+
height: import_react_native19.Platform.OS === "ios" ? 44 : 54,
|
|
154284
154311
|
flexDirection: "row",
|
|
154285
154312
|
alignItems: "center",
|
|
154286
154313
|
justifyContent: "flex-end",
|
|
@@ -154308,8 +154335,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154308
154335
|
__reExport(bridge_entry_exports, _$$_REQUIRE(_dependencyMap[15], "@apps-in-toss/native-modules/constant-bridges"));
|
|
154309
154336
|
__reExport(bridge_entry_exports, _$$_REQUIRE(_dependencyMap[16], "@apps-in-toss/native-modules/event-bridges"));
|
|
154310
154337
|
var import_jsx_runtime9 = _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime");
|
|
154311
|
-
function RNAppContainer(
|
|
154312
|
-
var children =
|
|
154338
|
+
function RNAppContainer(_ref39) {
|
|
154339
|
+
var children = _ref39.children;
|
|
154313
154340
|
var global2 = getAppsInTossGlobals();
|
|
154314
154341
|
switch (global2.appType) {
|
|
154315
154342
|
case "game":
|
|
@@ -154323,14 +154350,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154323
154350
|
});
|
|
154324
154351
|
}
|
|
154325
154352
|
}
|
|
154326
|
-
function GameAppContainer(
|
|
154327
|
-
var children =
|
|
154328
|
-
var
|
|
154329
|
-
|
|
154330
|
-
isEntryMessageExited =
|
|
154331
|
-
setIsEntryMessageExited =
|
|
154332
|
-
(0,
|
|
154333
|
-
if (
|
|
154353
|
+
function GameAppContainer(_ref40) {
|
|
154354
|
+
var children = _ref40.children;
|
|
154355
|
+
var _ref41 = (0, import_react17.useState)(false),
|
|
154356
|
+
_ref42 = _slicedToArray(_ref41, 2),
|
|
154357
|
+
isEntryMessageExited = _ref42[0],
|
|
154358
|
+
setIsEntryMessageExited = _ref42[1];
|
|
154359
|
+
(0, import_react17.useEffect)(function () {
|
|
154360
|
+
if (import_react_native20.Platform.OS === "ios") {
|
|
154334
154361
|
(0, import_native_modules12.setIosSwipeGestureEnabled)({
|
|
154335
154362
|
isEnabled: false
|
|
154336
154363
|
});
|
|
@@ -154342,7 +154369,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154342
154369
|
}
|
|
154343
154370
|
return;
|
|
154344
154371
|
}, []);
|
|
154345
|
-
(0,
|
|
154372
|
+
(0, import_react17.useEffect)(function () {
|
|
154346
154373
|
import_native_modules12.appsInTossEvent.addEventListener("entryMessageExited", {
|
|
154347
154374
|
onEvent: function onEvent() {
|
|
154348
154375
|
setIsEntryMessageExited(true);
|
|
@@ -154350,22 +154377,22 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154350
154377
|
});
|
|
154351
154378
|
}, []);
|
|
154352
154379
|
return (0, import_jsx_runtime9.jsxs)(import_jsx_runtime9.Fragment, {
|
|
154353
|
-
children: [(0, import_jsx_runtime9.jsx)(RNNavigationBar.Game, {}), (0, bridge_entry_exports.getOperationalEnvironment)() === "toss" ? (0, import_jsx_runtime9.jsx)(
|
|
154380
|
+
children: [(0, import_jsx_runtime9.jsx)(RNNavigationBar.Game, {}), (0, bridge_entry_exports.getOperationalEnvironment)() === "toss" ? (0, import_jsx_runtime9.jsx)(GameInitializer, {
|
|
154354
154381
|
isReadyForProfileUI: isEntryMessageExited,
|
|
154355
154382
|
children: children
|
|
154356
154383
|
}) : children]
|
|
154357
154384
|
});
|
|
154358
154385
|
}
|
|
154359
|
-
function GeneralAppContainer(
|
|
154360
|
-
var children =
|
|
154386
|
+
function GeneralAppContainer(_ref43) {
|
|
154387
|
+
var children = _ref43.children;
|
|
154361
154388
|
return (0, import_jsx_runtime9.jsxs)(import_jsx_runtime9.Fragment, {
|
|
154362
154389
|
children: [(0, import_jsx_runtime9.jsx)(RNNavigationBar.Default, {}), children]
|
|
154363
154390
|
});
|
|
154364
154391
|
}
|
|
154365
154392
|
var import_jsx_runtime10 = _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime");
|
|
154366
|
-
function AppsInTossContainer(Container,
|
|
154367
|
-
var children =
|
|
154368
|
-
initialProps = _objectWithoutProperties(
|
|
154393
|
+
function AppsInTossContainer(Container, _ref44) {
|
|
154394
|
+
var children = _ref44.children,
|
|
154395
|
+
initialProps = _objectWithoutProperties(_ref44, _excluded);
|
|
154369
154396
|
if (!(0, import_native_modules13.isMinVersionSupported)({
|
|
154370
154397
|
android: "5.220.0",
|
|
154371
154398
|
ios: "5.221.0"
|
|
@@ -154390,18 +154417,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154390
154417
|
}))]
|
|
154391
154418
|
});
|
|
154392
154419
|
}
|
|
154393
|
-
function TDSContainer(
|
|
154394
|
-
var children =
|
|
154420
|
+
function TDSContainer(_ref45) {
|
|
154421
|
+
var children = _ref45.children;
|
|
154395
154422
|
useAppsInTossBridge();
|
|
154396
154423
|
return (0, import_jsx_runtime10.jsx)(import_jsx_runtime10.Fragment, {
|
|
154397
154424
|
children: children
|
|
154398
154425
|
});
|
|
154399
154426
|
}
|
|
154400
|
-
function registerApp(container,
|
|
154401
|
-
var context =
|
|
154402
|
-
analytics =
|
|
154427
|
+
function registerApp(container, _ref46) {
|
|
154428
|
+
var context = _ref46.context,
|
|
154429
|
+
analytics = _ref46.analytics;
|
|
154403
154430
|
var appName = getAppName();
|
|
154404
|
-
var isRegistered =
|
|
154431
|
+
var isRegistered = import_react_native22.AppRegistry.getAppKeys().includes(appName);
|
|
154405
154432
|
if (!isRegistered) {
|
|
154406
154433
|
var _analytics$debug;
|
|
154407
154434
|
import_analytics.Analytics.init({
|
|
@@ -154410,7 +154437,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154410
154437
|
},
|
|
154411
154438
|
debug: (_analytics$debug = analytics == null ? void 0 : analytics.debug) != null ? _analytics$debug : __DEV__
|
|
154412
154439
|
});
|
|
154413
|
-
var App =
|
|
154440
|
+
var App = import_react_native21.Granite.registerApp(AppsInTossContainer.bind(null, container), {
|
|
154414
154441
|
appName: appName,
|
|
154415
154442
|
context: context,
|
|
154416
154443
|
setIosSwipeGestureEnabled: import_native_modules13.setIosSwipeGestureEnabled,
|
|
@@ -154425,8 +154452,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154425
154452
|
}
|
|
154426
154453
|
return global.Page;
|
|
154427
154454
|
}
|
|
154428
|
-
function AppsInTossScreenContainer(
|
|
154429
|
-
var children =
|
|
154455
|
+
function AppsInTossScreenContainer(_ref47) {
|
|
154456
|
+
var children = _ref47.children;
|
|
154430
154457
|
var isRNApp = getAppsInTossGlobals().webViewType == null;
|
|
154431
154458
|
return (0, import_jsx_runtime10.jsx)(import_analytics.Analytics.Screen, {
|
|
154432
154459
|
children: isRNApp ? (0, import_jsx_runtime10.jsx)(RNAppContainer, {
|
|
@@ -154449,26 +154476,26 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154449
154476
|
var appsInTossAsyncBridges = __toESM(_$$_REQUIRE(_dependencyMap[14], "@apps-in-toss/native-modules/async-bridges"), 1);
|
|
154450
154477
|
var appsInTossConstantBridges = __toESM(_$$_REQUIRE(_dependencyMap[15], "@apps-in-toss/native-modules/constant-bridges"), 1);
|
|
154451
154478
|
var appsInTossEventBridges = __toESM(_$$_REQUIRE(_dependencyMap[16], "@apps-in-toss/native-modules/event-bridges"), 1);
|
|
154452
|
-
var
|
|
154479
|
+
var import_react_native32 = _$$_REQUIRE(_dependencyMap[7], "@granite-js/react-native");
|
|
154453
154480
|
var import_tds_react_native14 = _$$_REQUIRE(_dependencyMap[8], "@toss/tds-react-native");
|
|
154454
154481
|
var import_private9 = _$$_REQUIRE(_dependencyMap[13], "@toss/tds-react-native/private");
|
|
154455
|
-
var
|
|
154456
|
-
var
|
|
154482
|
+
var import_react27 = _$$_REQUIRE(_dependencyMap[10], "react");
|
|
154483
|
+
var import_react_native33 = _$$_REQUIRE(_dependencyMap[9], "react-native");
|
|
154457
154484
|
var import_native_modules14 = _$$_REQUIRE(_dependencyMap[6], "@apps-in-toss/native-modules");
|
|
154458
154485
|
var import_react_native_webview = _$$_REQUIRE(_dependencyMap[17], "@granite-js/native/react-native-webview");
|
|
154459
|
-
var
|
|
154460
|
-
var
|
|
154461
|
-
var
|
|
154486
|
+
var import_react19 = _$$_REQUIRE(_dependencyMap[10], "react");
|
|
154487
|
+
var import_react_native25 = _$$_REQUIRE(_dependencyMap[9], "react-native");
|
|
154488
|
+
var import_react_native23 = _$$_REQUIRE(_dependencyMap[7], "@granite-js/react-native");
|
|
154462
154489
|
var import_tds_react_native11 = _$$_REQUIRE(_dependencyMap[8], "@toss/tds-react-native");
|
|
154463
154490
|
var import_private7 = _$$_REQUIRE(_dependencyMap[13], "@toss/tds-react-native/private");
|
|
154464
154491
|
var import_es_hangul3 = _$$_REQUIRE(_dependencyMap[12], "es-hangul");
|
|
154465
|
-
var
|
|
154466
|
-
var
|
|
154492
|
+
var import_react18 = _$$_REQUIRE(_dependencyMap[10], "react");
|
|
154493
|
+
var import_react_native24 = _$$_REQUIRE(_dependencyMap[9], "react-native");
|
|
154467
154494
|
var import_jsx_runtime11 = _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime");
|
|
154468
154495
|
function GameWebviewNavigationBar() {
|
|
154469
154496
|
var safeAreaTop = (0, import_private7.useSafeAreaTop)();
|
|
154470
|
-
var
|
|
154471
|
-
openConfirm =
|
|
154497
|
+
var _ref48 = (0, import_tds_react_native11.useDialog)(),
|
|
154498
|
+
openConfirm = _ref48.openConfirm;
|
|
154472
154499
|
var _useCaptureExitLog3 = useCaptureExitLog(),
|
|
154473
154500
|
captureExitLog = _useCaptureExitLog3.captureExitLog;
|
|
154474
154501
|
var global2 = getAppsInTossGlobals();
|
|
@@ -154477,7 +154504,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154477
154504
|
openMoreButtonBottomSheet = _useMoreButtonBottomS3.open;
|
|
154478
154505
|
var parsedNavigationBar = global2.navigationBar != null ? safeParseNavigationBar(global2.navigationBar) : null;
|
|
154479
154506
|
var initialAccessoryButton = parsedNavigationBar == null ? void 0 : parsedNavigationBar.initialAccessoryButton;
|
|
154480
|
-
var handleGameWebviewClose = (0,
|
|
154507
|
+
var handleGameWebviewClose = (0, import_react18.useCallback)(_asyncToGenerator(function* () {
|
|
154481
154508
|
logging.closeButtonClick();
|
|
154482
154509
|
var isConfirmed = yield openConfirm({
|
|
154483
154510
|
title: (0, import_es_hangul3.josa)(global2.brandDisplayName, "\uC744/\uB97C") + " \uC885\uB8CC\uD560\uAE4C\uC694?",
|
|
@@ -154489,7 +154516,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154489
154516
|
logging.closePopupCtaClick(isConfirmed);
|
|
154490
154517
|
if (isConfirmed) {
|
|
154491
154518
|
captureExitLog(Date.now());
|
|
154492
|
-
(0,
|
|
154519
|
+
(0, import_react_native23.closeView)();
|
|
154493
154520
|
}
|
|
154494
154521
|
}), [captureExitLog, global2.brandDisplayName, logging, openConfirm]);
|
|
154495
154522
|
return (0, import_jsx_runtime11.jsxs)(import_jsx_runtime11.Fragment, {
|
|
@@ -154497,10 +154524,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154497
154524
|
preference: {
|
|
154498
154525
|
type: "none"
|
|
154499
154526
|
}
|
|
154500
|
-
}), (0, import_jsx_runtime11.jsx)(
|
|
154527
|
+
}), (0, import_jsx_runtime11.jsx)(import_react_native24.View, {
|
|
154501
154528
|
style: {
|
|
154502
154529
|
width: "100%",
|
|
154503
|
-
height:
|
|
154530
|
+
height: import_react_native24.Platform.OS === "ios" ? 44 : 54,
|
|
154504
154531
|
flexDirection: "row",
|
|
154505
154532
|
alignItems: "center",
|
|
154506
154533
|
justifyContent: "flex-end",
|
|
@@ -154522,13 +154549,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154522
154549
|
});
|
|
154523
154550
|
}
|
|
154524
154551
|
var import_jsx_runtime12 = _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime");
|
|
154525
|
-
var GameWebView = (0,
|
|
154526
|
-
var
|
|
154527
|
-
|
|
154528
|
-
isEntryMessageExited =
|
|
154529
|
-
setIsEntryMessageExited =
|
|
154530
|
-
(0,
|
|
154531
|
-
if (
|
|
154552
|
+
var GameWebView = (0, import_react19.forwardRef)(function GameWebView2(props, ref) {
|
|
154553
|
+
var _ref50 = (0, import_react19.useState)(false),
|
|
154554
|
+
_ref51 = _slicedToArray(_ref50, 2),
|
|
154555
|
+
isEntryMessageExited = _ref51[0],
|
|
154556
|
+
setIsEntryMessageExited = _ref51[1];
|
|
154557
|
+
(0, import_react19.useEffect)(function () {
|
|
154558
|
+
if (import_react_native25.Platform.OS === "ios") {
|
|
154532
154559
|
(0, import_native_modules14.setIosSwipeGestureEnabled)({
|
|
154533
154560
|
isEnabled: false
|
|
154534
154561
|
});
|
|
@@ -154540,7 +154567,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154540
154567
|
}
|
|
154541
154568
|
return;
|
|
154542
154569
|
}, []);
|
|
154543
|
-
(0,
|
|
154570
|
+
(0, import_react19.useEffect)(function () {
|
|
154544
154571
|
import_native_modules14.appsInTossEvent.addEventListener("entryMessageExited", {
|
|
154545
154572
|
onEvent: function onEvent() {
|
|
154546
154573
|
setIsEntryMessageExited(true);
|
|
@@ -154548,7 +154575,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154548
154575
|
});
|
|
154549
154576
|
}, []);
|
|
154550
154577
|
return (0, import_jsx_runtime12.jsxs)(import_jsx_runtime12.Fragment, {
|
|
154551
|
-
children: [(0, import_jsx_runtime12.jsx)(GameWebviewNavigationBar, {}), (0, import_native_modules14.getOperationalEnvironment)() === "toss" ? (0, import_jsx_runtime12.jsx)(
|
|
154578
|
+
children: [(0, import_jsx_runtime12.jsx)(GameWebviewNavigationBar, {}), (0, import_native_modules14.getOperationalEnvironment)() === "toss" ? (0, import_jsx_runtime12.jsx)(GameInitializer, {
|
|
154552
154579
|
isReadyForProfileUI: isEntryMessageExited,
|
|
154553
154580
|
children: (0, import_jsx_runtime12.jsx)(import_react_native_webview.WebView, Object.assign({
|
|
154554
154581
|
ref: ref
|
|
@@ -154559,30 +154586,30 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154559
154586
|
});
|
|
154560
154587
|
});
|
|
154561
154588
|
var import_react_native_webview2 = _$$_REQUIRE(_dependencyMap[17], "@granite-js/native/react-native-webview");
|
|
154562
|
-
var
|
|
154563
|
-
var
|
|
154589
|
+
var import_react21 = _$$_REQUIRE(_dependencyMap[10], "react");
|
|
154590
|
+
var import_react_native26 = _$$_REQUIRE(_dependencyMap[7], "@granite-js/react-native");
|
|
154564
154591
|
var import_tds_react_native12 = _$$_REQUIRE(_dependencyMap[8], "@toss/tds-react-native");
|
|
154565
154592
|
var import_private8 = _$$_REQUIRE(_dependencyMap[13], "@toss/tds-react-native/private");
|
|
154566
154593
|
var import_es_hangul4 = _$$_REQUIRE(_dependencyMap[12], "es-hangul");
|
|
154567
|
-
var
|
|
154594
|
+
var import_react20 = _$$_REQUIRE(_dependencyMap[10], "react");
|
|
154568
154595
|
var import_jsx_runtime13 = _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime");
|
|
154569
|
-
function PartnerWebviewNavigationBar(
|
|
154596
|
+
function PartnerWebviewNavigationBar(_ref52) {
|
|
154570
154597
|
var _parsedNavigationBar$3, _parsedNavigationBar$4;
|
|
154571
|
-
var onBackButtonClick =
|
|
154572
|
-
onHomeButtonClick =
|
|
154598
|
+
var onBackButtonClick = _ref52.onBackButtonClick,
|
|
154599
|
+
onHomeButtonClick = _ref52.onHomeButtonClick;
|
|
154573
154600
|
var globals = getAppsInTossGlobals();
|
|
154574
154601
|
var _useCaptureExitLog4 = useCaptureExitLog(),
|
|
154575
154602
|
captureExitLog = _useCaptureExitLog4.captureExitLog;
|
|
154576
154603
|
var logging = useNavigationBarLogging();
|
|
154577
|
-
var
|
|
154578
|
-
openConfirm =
|
|
154604
|
+
var _ref53 = (0, import_tds_react_native12.useDialog)(),
|
|
154605
|
+
openConfirm = _ref53.openConfirm;
|
|
154579
154606
|
var _useMoreButtonBottomS4 = useMoreButtonBottomSheet(),
|
|
154580
154607
|
openMoreButtonBottomSheet = _useMoreButtonBottomS4.open;
|
|
154581
154608
|
var parsedNavigationBar = globals.navigationBar != null ? safeParseNavigationBar(globals.navigationBar) : null;
|
|
154582
154609
|
var withHomeButton = (_parsedNavigationBar$3 = parsedNavigationBar == null ? void 0 : parsedNavigationBar.withHomeButton) != null ? _parsedNavigationBar$3 : false;
|
|
154583
154610
|
var withBackButton = (_parsedNavigationBar$4 = parsedNavigationBar == null ? void 0 : parsedNavigationBar.withBackButton) != null ? _parsedNavigationBar$4 : true;
|
|
154584
154611
|
var initialAccessoryButton = parsedNavigationBar == null ? void 0 : parsedNavigationBar.initialAccessoryButton;
|
|
154585
|
-
var handleClose = (0,
|
|
154612
|
+
var handleClose = (0, import_react20.useCallback)(_asyncToGenerator(function* () {
|
|
154586
154613
|
logging.closeButtonClick();
|
|
154587
154614
|
var isConfirmed = yield openConfirm({
|
|
154588
154615
|
title: (0, import_es_hangul4.josa)(globals.brandDisplayName, "\uC744/\uB97C") + " \uC885\uB8CC\uD560\uAE4C\uC694?",
|
|
@@ -154594,7 +154621,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154594
154621
|
logging.closePopupCtaClick(isConfirmed);
|
|
154595
154622
|
if (isConfirmed) {
|
|
154596
154623
|
captureExitLog(Date.now());
|
|
154597
|
-
(0,
|
|
154624
|
+
(0, import_react_native26.closeView)();
|
|
154598
154625
|
}
|
|
154599
154626
|
}), [captureExitLog, globals.brandDisplayName, logging, openConfirm]);
|
|
154600
154627
|
return (0, import_jsx_runtime13.jsx)(NavigationBarImpressionArea, {
|
|
@@ -154619,10 +154646,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154619
154646
|
});
|
|
154620
154647
|
}
|
|
154621
154648
|
var import_jsx_runtime14 = _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime");
|
|
154622
|
-
var PartnerWebView = (0,
|
|
154623
|
-
var onBackButtonClick =
|
|
154624
|
-
onHomeButtonClick =
|
|
154625
|
-
webViewProps = _objectWithoutProperties(
|
|
154649
|
+
var PartnerWebView = (0, import_react21.forwardRef)(function PartnerWebViewScreen(_ref55, ref) {
|
|
154650
|
+
var onBackButtonClick = _ref55.onBackButtonClick,
|
|
154651
|
+
onHomeButtonClick = _ref55.onHomeButtonClick,
|
|
154652
|
+
webViewProps = _objectWithoutProperties(_ref55, _excluded2);
|
|
154626
154653
|
return (0, import_jsx_runtime14.jsxs)(import_jsx_runtime14.Fragment, {
|
|
154627
154654
|
children: [(0, import_jsx_runtime14.jsx)(PartnerWebviewNavigationBar, {
|
|
154628
154655
|
onBackButtonClick: onBackButtonClick,
|
|
@@ -154636,14 +154663,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154636
154663
|
}))]
|
|
154637
154664
|
});
|
|
154638
154665
|
});
|
|
154639
|
-
var
|
|
154666
|
+
var import_react22 = _$$_REQUIRE(_dependencyMap[10], "react");
|
|
154640
154667
|
function serializeError(error) {
|
|
154641
154668
|
return JSON.stringify(error, function (_, value) {
|
|
154642
154669
|
if (value instanceof Error) {
|
|
154643
|
-
return Object.assign({}, Object.entries(value).reduce(function (acc,
|
|
154644
|
-
var
|
|
154645
|
-
key =
|
|
154646
|
-
value2 =
|
|
154670
|
+
return Object.assign({}, Object.entries(value).reduce(function (acc, _ref56) {
|
|
154671
|
+
var _ref57 = _slicedToArray(_ref56, 2),
|
|
154672
|
+
key = _ref57[0],
|
|
154673
|
+
value2 = _ref57[1];
|
|
154647
154674
|
acc[key] = value2;
|
|
154648
154675
|
return acc;
|
|
154649
154676
|
}, {}), {
|
|
@@ -154656,24 +154683,24 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154656
154683
|
return value;
|
|
154657
154684
|
});
|
|
154658
154685
|
}
|
|
154659
|
-
function methodHandler(
|
|
154660
|
-
var args =
|
|
154661
|
-
eventId =
|
|
154662
|
-
functionName =
|
|
154663
|
-
handlerMap =
|
|
154664
|
-
injectJavaScript =
|
|
154686
|
+
function methodHandler(_ref58) {
|
|
154687
|
+
var args = _ref58.args,
|
|
154688
|
+
eventId = _ref58.eventId,
|
|
154689
|
+
functionName = _ref58.functionName,
|
|
154690
|
+
handlerMap = _ref58.handlerMap,
|
|
154691
|
+
injectJavaScript = _ref58.injectJavaScript;
|
|
154665
154692
|
var func = handlerMap[functionName];
|
|
154666
154693
|
if (!func) {
|
|
154667
154694
|
console.error(functionName + " is not a function");
|
|
154668
154695
|
return;
|
|
154669
154696
|
}
|
|
154670
154697
|
var wrappedFunc = function () {
|
|
154671
|
-
var
|
|
154698
|
+
var _ref59 = _asyncToGenerator(function* () {
|
|
154672
154699
|
var result = yield func.apply(void 0, arguments);
|
|
154673
154700
|
return result;
|
|
154674
154701
|
});
|
|
154675
154702
|
return function wrappedFunc() {
|
|
154676
|
-
return
|
|
154703
|
+
return _ref59.apply(this, arguments);
|
|
154677
154704
|
};
|
|
154678
154705
|
}();
|
|
154679
154706
|
wrappedFunc.apply(void 0, _toConsumableArray(args)).then(function (result) {
|
|
@@ -154684,18 +154711,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154684
154711
|
});
|
|
154685
154712
|
}
|
|
154686
154713
|
var globalEventListenerMap = new Map();
|
|
154687
|
-
function useBridgeHandler(
|
|
154688
|
-
var onMessage =
|
|
154689
|
-
constantHandlerMap =
|
|
154690
|
-
asyncHandlerMap =
|
|
154691
|
-
eventListenerMap =
|
|
154692
|
-
originalInjectedJavaScript =
|
|
154693
|
-
var ref = (0,
|
|
154694
|
-
var injectedJavaScript = (0,
|
|
154695
|
-
return ["window.__CONSTANT_HANDLER_MAP = " + JSON.stringify(Object.entries(constantHandlerMap).reduce(function (acc,
|
|
154696
|
-
var
|
|
154697
|
-
key =
|
|
154698
|
-
value =
|
|
154714
|
+
function useBridgeHandler(_ref60) {
|
|
154715
|
+
var onMessage = _ref60.onMessage,
|
|
154716
|
+
constantHandlerMap = _ref60.constantHandlerMap,
|
|
154717
|
+
asyncHandlerMap = _ref60.asyncHandlerMap,
|
|
154718
|
+
eventListenerMap = _ref60.eventListenerMap,
|
|
154719
|
+
originalInjectedJavaScript = _ref60.injectedJavaScript;
|
|
154720
|
+
var ref = (0, import_react22.useRef)(null);
|
|
154721
|
+
var injectedJavaScript = (0, import_react22.useMemo)(function () {
|
|
154722
|
+
return ["window.__CONSTANT_HANDLER_MAP = " + JSON.stringify(Object.entries(constantHandlerMap).reduce(function (acc, _ref61) {
|
|
154723
|
+
var _ref62 = _slicedToArray(_ref61, 2),
|
|
154724
|
+
key = _ref62[0],
|
|
154725
|
+
value = _ref62[1];
|
|
154699
154726
|
acc[key] = typeof value === "function" ? value() : value;
|
|
154700
154727
|
return acc;
|
|
154701
154728
|
}, {})) + ";", originalInjectedJavaScript, "true"].join("\n");
|
|
@@ -154713,8 +154740,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154713
154740
|
(_ref$current2 = ref.current) == null ? void 0 : _ref$current2.injectJavaScript("\n window.__GRANITE_NATIVE_EMITTER.emit('" + functionName + "/onError/" + eventId + "', " + serializedError + ");\n ");
|
|
154714
154741
|
};
|
|
154715
154742
|
};
|
|
154716
|
-
var $onMessage = (0,
|
|
154717
|
-
var
|
|
154743
|
+
var $onMessage = (0, import_react22.useCallback)(function () {
|
|
154744
|
+
var _ref63 = _asyncToGenerator(function* (e) {
|
|
154718
154745
|
onMessage == null ? void 0 : onMessage(e);
|
|
154719
154746
|
var data = JSON.parse(e.nativeEvent.data);
|
|
154720
154747
|
if (typeof data !== "object" || data === null || typeof data.functionName !== "string" || typeof data.eventId !== "string" || typeof data.type !== "string" || !["addEventListener", "removeEventListener", "method"].includes(data.type)) {
|
|
@@ -154759,7 +154786,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154759
154786
|
}
|
|
154760
154787
|
});
|
|
154761
154788
|
return function (_x4) {
|
|
154762
|
-
return
|
|
154789
|
+
return _ref63.apply(this, arguments);
|
|
154763
154790
|
};
|
|
154764
154791
|
}(), [onMessage]);
|
|
154765
154792
|
return {
|
|
@@ -154768,11 +154795,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154768
154795
|
onMessage: $onMessage
|
|
154769
154796
|
};
|
|
154770
154797
|
}
|
|
154771
|
-
var
|
|
154798
|
+
var import_react_native27 = _$$_REQUIRE(_dependencyMap[7], "@granite-js/react-native");
|
|
154772
154799
|
var import_tds_react_native13 = _$$_REQUIRE(_dependencyMap[8], "@toss/tds-react-native");
|
|
154773
154800
|
var import_es_hangul5 = _$$_REQUIRE(_dependencyMap[12], "es-hangul");
|
|
154774
|
-
var
|
|
154775
|
-
var
|
|
154801
|
+
var import_react24 = _$$_REQUIRE(_dependencyMap[10], "react");
|
|
154802
|
+
var import_react23 = _$$_REQUIRE(_dependencyMap[10], "react");
|
|
154776
154803
|
var INITIAL_STATE = {
|
|
154777
154804
|
stack: [],
|
|
154778
154805
|
index: -1
|
|
@@ -154819,20 +154846,20 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154819
154846
|
}
|
|
154820
154847
|
}
|
|
154821
154848
|
function useWebViewHistory() {
|
|
154822
|
-
var
|
|
154823
|
-
|
|
154824
|
-
state =
|
|
154825
|
-
dispatch =
|
|
154826
|
-
var onNavigationStateChange = (0,
|
|
154827
|
-
var url =
|
|
154828
|
-
canGoForward2 =
|
|
154849
|
+
var _ref64 = (0, import_react23.useReducer)(reducer, INITIAL_STATE),
|
|
154850
|
+
_ref65 = _slicedToArray(_ref64, 2),
|
|
154851
|
+
state = _ref65[0],
|
|
154852
|
+
dispatch = _ref65[1];
|
|
154853
|
+
var onNavigationStateChange = (0, import_react23.useCallback)(function (_ref66) {
|
|
154854
|
+
var url = _ref66.url,
|
|
154855
|
+
canGoForward2 = _ref66.canGoForward;
|
|
154829
154856
|
dispatch({
|
|
154830
154857
|
type: "NAVIGATION_CHANGE",
|
|
154831
154858
|
url: url,
|
|
154832
154859
|
canGoForward: canGoForward2
|
|
154833
154860
|
});
|
|
154834
154861
|
}, []);
|
|
154835
|
-
var
|
|
154862
|
+
var _ref67 = (0, import_react23.useMemo)(function () {
|
|
154836
154863
|
var canBack = state.index > 0;
|
|
154837
154864
|
var canFwd = state.index >= 0 && state.index < state.stack.length - 1;
|
|
154838
154865
|
return {
|
|
@@ -154840,8 +154867,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154840
154867
|
canGoForward: canFwd
|
|
154841
154868
|
};
|
|
154842
154869
|
}, [state.index, state.stack.length]),
|
|
154843
|
-
canGoBack =
|
|
154844
|
-
canGoForward =
|
|
154870
|
+
canGoBack = _ref67.canGoBack,
|
|
154871
|
+
canGoForward = _ref67.canGoForward;
|
|
154845
154872
|
return {
|
|
154846
154873
|
onNavigationStateChange: onNavigationStateChange,
|
|
154847
154874
|
hasHistory: canGoBack,
|
|
@@ -154856,22 +154883,22 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154856
154883
|
var _useWebViewHistory = useWebViewHistory(),
|
|
154857
154884
|
hasHistory = _useWebViewHistory.hasHistory,
|
|
154858
154885
|
onNavigationStateChange = _useWebViewHistory.onNavigationStateChange;
|
|
154859
|
-
var
|
|
154860
|
-
webBackHandlersRef =
|
|
154861
|
-
hasWebBackEvent =
|
|
154862
|
-
addWebBackEventListener =
|
|
154863
|
-
removeWebBackEventListener =
|
|
154886
|
+
var _ref68 = (0, import_react_native27.useBackEventState)(),
|
|
154887
|
+
webBackHandlersRef = _ref68.handlersRef,
|
|
154888
|
+
hasWebBackEvent = _ref68.hasBackEvent,
|
|
154889
|
+
addWebBackEventListener = _ref68.addEventListener,
|
|
154890
|
+
removeWebBackEventListener = _ref68.removeEventListener;
|
|
154864
154891
|
var logging = useNavigationBarLogging();
|
|
154865
|
-
var
|
|
154866
|
-
openConfirm =
|
|
154892
|
+
var _ref69 = (0, import_tds_react_native13.useDialog)(),
|
|
154893
|
+
openConfirm = _ref69.openConfirm;
|
|
154867
154894
|
var global2 = getAppsInTossGlobals();
|
|
154868
|
-
var addEventListener = (0,
|
|
154895
|
+
var addEventListener = (0, import_react24.useCallback)(function (handler) {
|
|
154869
154896
|
addWebBackEventListener(handler);
|
|
154870
154897
|
}, [addWebBackEventListener]);
|
|
154871
|
-
var removeEventListener = (0,
|
|
154898
|
+
var removeEventListener = (0, import_react24.useCallback)(function (handler) {
|
|
154872
154899
|
removeWebBackEventListener(handler);
|
|
154873
154900
|
}, [removeWebBackEventListener]);
|
|
154874
|
-
var handleWebBack = (0,
|
|
154901
|
+
var handleWebBack = (0, import_react24.useCallback)(_asyncToGenerator(function* () {
|
|
154875
154902
|
if (hasWebBackEvent) {
|
|
154876
154903
|
for (var handler of webBackHandlersRef) {
|
|
154877
154904
|
handler();
|
|
@@ -154892,11 +154919,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154892
154919
|
logging.closePopupCtaClick(isConfirmed);
|
|
154893
154920
|
if (isConfirmed) {
|
|
154894
154921
|
captureExitLog(Date.now());
|
|
154895
|
-
(0,
|
|
154922
|
+
(0, import_react_native27.closeView)();
|
|
154896
154923
|
}
|
|
154897
154924
|
}
|
|
154898
154925
|
}), [captureExitLog, global2.brandDisplayName, hasHistory, hasWebBackEvent, webBackHandlersRef, logging, openConfirm, webViewRef]);
|
|
154899
|
-
var handleWebHome = (0,
|
|
154926
|
+
var handleWebHome = (0, import_react24.useCallback)(function () {
|
|
154900
154927
|
var _webViewRef$current2;
|
|
154901
154928
|
logging.homeButtonClick();
|
|
154902
154929
|
if (hasWebBackEvent) {
|
|
@@ -154907,7 +154934,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154907
154934
|
}
|
|
154908
154935
|
(_webViewRef$current2 = webViewRef.current) == null ? void 0 : _webViewRef$current2.injectJavaScript(HISTORY_HOME_SCRIPT);
|
|
154909
154936
|
}, [hasWebBackEvent, webBackHandlersRef, logging, webViewRef]);
|
|
154910
|
-
return (0,
|
|
154937
|
+
return (0, import_react24.useMemo)(function () {
|
|
154911
154938
|
return {
|
|
154912
154939
|
addEventListener: addEventListener,
|
|
154913
154940
|
removeEventListener: removeEventListener,
|
|
@@ -154932,7 +154959,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154932
154959
|
};
|
|
154933
154960
|
}
|
|
154934
154961
|
var import_native_modules15 = _$$_REQUIRE(_dependencyMap[6], "@apps-in-toss/native-modules");
|
|
154935
|
-
var
|
|
154962
|
+
var import_react_native28 = _$$_REQUIRE(_dependencyMap[9], "react-native");
|
|
154936
154963
|
var FontA11yCategory = {
|
|
154937
154964
|
Large: "Large",
|
|
154938
154965
|
xLarge: "xLarge",
|
|
@@ -155060,36 +155087,36 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155060
155087
|
function mapFontScaleToCategory(fontScale, platform) {
|
|
155061
155088
|
return platform === "ios" ? mapIOSFontScaleToCategory(fontScale) : mapAndroidFontScaleToCategory(fontScale);
|
|
155062
155089
|
}
|
|
155063
|
-
function _useCreateUserAgent(
|
|
155064
|
-
var batteryModePreference =
|
|
155065
|
-
colorPreference =
|
|
155066
|
-
locale =
|
|
155067
|
-
navbarPreference =
|
|
155068
|
-
pureSafeArea =
|
|
155069
|
-
safeArea =
|
|
155070
|
-
safeAreaBottomTransparency =
|
|
155090
|
+
function _useCreateUserAgent(_ref71) {
|
|
155091
|
+
var batteryModePreference = _ref71.batteryModePreference,
|
|
155092
|
+
colorPreference = _ref71.colorPreference,
|
|
155093
|
+
locale = _ref71.locale,
|
|
155094
|
+
navbarPreference = _ref71.navbarPreference,
|
|
155095
|
+
pureSafeArea = _ref71.pureSafeArea,
|
|
155096
|
+
safeArea = _ref71.safeArea,
|
|
155097
|
+
safeAreaBottomTransparency = _ref71.safeAreaBottomTransparency;
|
|
155071
155098
|
var platform = (0, import_native_modules15.getPlatformOS)();
|
|
155072
155099
|
var appVersion = (0, import_native_modules15.getTossAppVersion)();
|
|
155073
|
-
var
|
|
155074
|
-
fontScale =
|
|
155100
|
+
var _ref72 = (0, import_react_native28.useWindowDimensions)(),
|
|
155101
|
+
fontScale = _ref72.fontScale;
|
|
155075
155102
|
var platformString = platform === "ios" ? "iPhone" : "Android";
|
|
155076
155103
|
var fontA11y = mapFontScaleToCategory(fontScale, platform);
|
|
155077
155104
|
var normalizedFontScale = convertToAndroidStyleScale(fontScale, platform);
|
|
155078
155105
|
return ["TossApp/" + appVersion, batteryModePreference && "TossBatteryModePreference/" + batteryModePreference, colorPreference && "TossColorPreference/" + colorPreference, "TossFontAccessibility/" + fontA11y, "TossFontScale/" + normalizedFontScale, locale && "TossLocale/" + locale, navbarPreference && "TossNavbarPreference/" + navbarPreference, pureSafeArea && "TossPureSafeArea/" + pureSafeArea, safeArea && "TossSafeArea/" + safeArea, safeAreaBottomTransparency && "TossSafeAreaBottomTransparency/" + safeAreaBottomTransparency, platformString].filter(Boolean).join(" ");
|
|
155079
155106
|
}
|
|
155080
155107
|
var import_native_modules16 = _$$_REQUIRE(_dependencyMap[6], "@apps-in-toss/native-modules");
|
|
155081
|
-
var
|
|
155082
|
-
var
|
|
155083
|
-
function _useGeolocation(
|
|
155084
|
-
var accuracy =
|
|
155085
|
-
distanceInterval =
|
|
155086
|
-
timeInterval =
|
|
155087
|
-
var isVisible = (0,
|
|
155088
|
-
var
|
|
155089
|
-
|
|
155090
|
-
location =
|
|
155091
|
-
setLocation =
|
|
155092
|
-
(0,
|
|
155108
|
+
var import_react_native29 = _$$_REQUIRE(_dependencyMap[7], "@granite-js/react-native");
|
|
155109
|
+
var import_react25 = _$$_REQUIRE(_dependencyMap[10], "react");
|
|
155110
|
+
function _useGeolocation(_ref73) {
|
|
155111
|
+
var accuracy = _ref73.accuracy,
|
|
155112
|
+
distanceInterval = _ref73.distanceInterval,
|
|
155113
|
+
timeInterval = _ref73.timeInterval;
|
|
155114
|
+
var isVisible = (0, import_react_native29.useVisibility)();
|
|
155115
|
+
var _ref74 = (0, import_react25.useState)(null),
|
|
155116
|
+
_ref75 = _slicedToArray(_ref74, 2),
|
|
155117
|
+
location = _ref75[0],
|
|
155118
|
+
setLocation = _ref75[1];
|
|
155119
|
+
(0, import_react25.useEffect)(function () {
|
|
155093
155120
|
if (!isVisible) {
|
|
155094
155121
|
return;
|
|
155095
155122
|
}
|
|
@@ -155105,18 +155132,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155105
155132
|
}, [accuracy, distanceInterval, timeInterval, isVisible]);
|
|
155106
155133
|
return location;
|
|
155107
155134
|
}
|
|
155108
|
-
var
|
|
155109
|
-
var
|
|
155135
|
+
var import_react_native30 = _$$_REQUIRE(_dependencyMap[7], "@granite-js/react-native");
|
|
155136
|
+
var import_react26 = _$$_REQUIRE(_dependencyMap[10], "react");
|
|
155110
155137
|
function _useWaitForReturnNavigator() {
|
|
155111
|
-
var callbacks = (0,
|
|
155112
|
-
var navigation = (0,
|
|
155113
|
-
var startNavigating = (0,
|
|
155138
|
+
var callbacks = (0, import_react26.useRef)([]).current;
|
|
155139
|
+
var navigation = (0, import_react_native30.useNavigation)();
|
|
155140
|
+
var startNavigating = (0, import_react26.useCallback)(function (route, params) {
|
|
155114
155141
|
return new Promise(function (resolve) {
|
|
155115
155142
|
callbacks.push(resolve);
|
|
155116
155143
|
navigation.navigate(route, params);
|
|
155117
155144
|
});
|
|
155118
155145
|
}, [callbacks, navigation]);
|
|
155119
|
-
var handleVisibilityChange = (0,
|
|
155146
|
+
var handleVisibilityChange = (0, import_react26.useCallback)(function (state) {
|
|
155120
155147
|
if (state === "visible" && callbacks.length > 0) {
|
|
155121
155148
|
for (var callback of callbacks) {
|
|
155122
155149
|
callback();
|
|
@@ -155124,11 +155151,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155124
155151
|
callbacks.splice(0, callbacks.length);
|
|
155125
155152
|
}
|
|
155126
155153
|
}, [callbacks]);
|
|
155127
|
-
(0,
|
|
155154
|
+
(0, import_react_native30.useVisibilityChange)(handleVisibilityChange);
|
|
155128
155155
|
return startNavigating;
|
|
155129
155156
|
}
|
|
155130
155157
|
var import_native_modules17 = _$$_REQUIRE(_dependencyMap[6], "@apps-in-toss/native-modules");
|
|
155131
|
-
var
|
|
155158
|
+
var import_react_native31 = _$$_REQUIRE(_dependencyMap[7], "@granite-js/react-native");
|
|
155132
155159
|
var extractDateFromUUIDv7 = function extractDateFromUUIDv7(uuid) {
|
|
155133
155160
|
var timestampHex = uuid.split("-").join("").slice(0, 12);
|
|
155134
155161
|
var timestamp = Number.parseInt(timestampHex, 16);
|
|
@@ -155150,7 +155177,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155150
155177
|
};
|
|
155151
155178
|
var getReferrer = function getReferrer() {
|
|
155152
155179
|
try {
|
|
155153
|
-
var referrer = new URL((0,
|
|
155180
|
+
var referrer = new URL((0, import_react_native31.getSchemeUri)());
|
|
155154
155181
|
return referrer.searchParams.get("referrer");
|
|
155155
155182
|
} catch (_unused5) {
|
|
155156
155183
|
return "";
|
|
@@ -155182,12 +155209,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155182
155209
|
};
|
|
155183
155210
|
function mergeSchemeQueryParamsInto(url) {
|
|
155184
155211
|
var baseUrl = new URL(url);
|
|
155185
|
-
var schemeUrl = new URL((0,
|
|
155212
|
+
var schemeUrl = new URL((0, import_react_native32.getSchemeUri)());
|
|
155186
155213
|
baseUrl.pathname = schemeUrl.pathname;
|
|
155187
|
-
for (var
|
|
155188
|
-
var
|
|
155189
|
-
var key =
|
|
155190
|
-
var value =
|
|
155214
|
+
for (var _ref76 of schemeUrl.searchParams.entries()) {
|
|
155215
|
+
var _ref77 = _slicedToArray(_ref76, 2);
|
|
155216
|
+
var key = _ref77[0];
|
|
155217
|
+
var value = _ref77[1];
|
|
155191
155218
|
baseUrl.searchParams.set(key, value);
|
|
155192
155219
|
}
|
|
155193
155220
|
return baseUrl;
|
|
@@ -155206,17 +155233,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155206
155233
|
}
|
|
155207
155234
|
return url.toString();
|
|
155208
155235
|
}
|
|
155209
|
-
function _WebView(
|
|
155210
|
-
var type =
|
|
155211
|
-
local =
|
|
155212
|
-
onMessage =
|
|
155213
|
-
props = _objectWithoutProperties(
|
|
155236
|
+
function _WebView(_ref78) {
|
|
155237
|
+
var type = _ref78.type,
|
|
155238
|
+
local = _ref78.local,
|
|
155239
|
+
onMessage = _ref78.onMessage,
|
|
155240
|
+
props = _objectWithoutProperties(_ref78, _excluded3);
|
|
155214
155241
|
if (!TYPES.includes(type)) {
|
|
155215
155242
|
throw new Error("Invalid WebView type: '" + type + "'");
|
|
155216
155243
|
}
|
|
155217
|
-
var webViewRef = (0,
|
|
155244
|
+
var webViewRef = (0, import_react27.useRef)(null);
|
|
155218
155245
|
var webBackHandler = useWebBackHandler(webViewRef);
|
|
155219
|
-
var uri = (0,
|
|
155246
|
+
var uri = (0, import_react27.useMemo)(function () {
|
|
155220
155247
|
return getWebViewUri(local);
|
|
155221
155248
|
}, [local]);
|
|
155222
155249
|
var top = (0, import_private9.useSafeAreaTop)();
|
|
@@ -155224,51 +155251,51 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155224
155251
|
var global2 = getAppsInTossGlobals();
|
|
155225
155252
|
var topNavigation = (0, import_private9.useTopNavigation)();
|
|
155226
155253
|
var disableTextSelectionCSS = "\n (function() {\n const style = document.createElement('style');\n style.textContent = '*:not(input):not(textarea) { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; -webkit-touch-callout: none; }';\n document.head.appendChild(style);\n })();\n ";
|
|
155227
|
-
var
|
|
155228
|
-
|
|
155229
|
-
allowsBackForwardNavigationGestures =
|
|
155230
|
-
setAllowsBackForwardNavigationGestures =
|
|
155254
|
+
var _ref79 = (0, import_react27.useState)(props.allowsBackForwardNavigationGestures),
|
|
155255
|
+
_ref80 = _slicedToArray(_ref79, 2),
|
|
155256
|
+
allowsBackForwardNavigationGestures = _ref80[0],
|
|
155257
|
+
setAllowsBackForwardNavigationGestures = _ref80[1];
|
|
155231
155258
|
var handler = useBridgeHandler({
|
|
155232
155259
|
onMessage: onMessage,
|
|
155233
155260
|
injectedJavaScript: [disableTextSelectionCSS].join("\n"),
|
|
155234
155261
|
eventListenerMap: Object.assign({}, appsInTossEventBridges, {
|
|
155235
|
-
navigationAccessoryEvent: function navigationAccessoryEvent(
|
|
155236
|
-
var onEvent =
|
|
155237
|
-
onError =
|
|
155262
|
+
navigationAccessoryEvent: function navigationAccessoryEvent(_ref81) {
|
|
155263
|
+
var onEvent = _ref81.onEvent,
|
|
155264
|
+
onError = _ref81.onError;
|
|
155238
155265
|
return import_tds_react_native14.tdsEvent.addEventListener("navigationAccessoryEvent", {
|
|
155239
155266
|
onEvent: onEvent,
|
|
155240
155267
|
onError: onError
|
|
155241
155268
|
});
|
|
155242
155269
|
},
|
|
155243
|
-
backEvent: function backEvent(
|
|
155244
|
-
var onEvent =
|
|
155270
|
+
backEvent: function backEvent(_ref82) {
|
|
155271
|
+
var onEvent = _ref82.onEvent;
|
|
155245
155272
|
webBackHandler.addEventListener(onEvent);
|
|
155246
155273
|
return function () {
|
|
155247
155274
|
webBackHandler.removeEventListener(onEvent);
|
|
155248
155275
|
};
|
|
155249
155276
|
},
|
|
155250
|
-
entryMessageExited: function entryMessageExited(
|
|
155251
|
-
var onEvent =
|
|
155252
|
-
onError =
|
|
155277
|
+
entryMessageExited: function entryMessageExited(_ref83) {
|
|
155278
|
+
var onEvent = _ref83.onEvent,
|
|
155279
|
+
onError = _ref83.onError;
|
|
155253
155280
|
return import_native_modules18.appsInTossEvent.addEventListener("entryMessageExited", {
|
|
155254
155281
|
onEvent: onEvent,
|
|
155255
155282
|
onError: onError
|
|
155256
155283
|
});
|
|
155257
155284
|
},
|
|
155258
|
-
updateLocationEvent: function updateLocationEvent(
|
|
155259
|
-
var onEvent =
|
|
155260
|
-
onError =
|
|
155261
|
-
options =
|
|
155285
|
+
updateLocationEvent: function updateLocationEvent(_ref84) {
|
|
155286
|
+
var onEvent = _ref84.onEvent,
|
|
155287
|
+
onError = _ref84.onError,
|
|
155288
|
+
options = _ref84.options;
|
|
155262
155289
|
return import_native_modules18.appsInTossEvent.addEventListener("updateLocationEvent", {
|
|
155263
155290
|
onEvent: onEvent,
|
|
155264
155291
|
onError: onError,
|
|
155265
155292
|
options: options
|
|
155266
155293
|
});
|
|
155267
155294
|
},
|
|
155268
|
-
appBridgeCallbackEvent: function appBridgeCallbackEvent(
|
|
155269
|
-
var onEvent =
|
|
155270
|
-
onError =
|
|
155271
|
-
options =
|
|
155295
|
+
appBridgeCallbackEvent: function appBridgeCallbackEvent(_ref85) {
|
|
155296
|
+
var onEvent = _ref85.onEvent,
|
|
155297
|
+
onError = _ref85.onError,
|
|
155298
|
+
options = _ref85.options;
|
|
155272
155299
|
return import_native_modules18.appsInTossEvent.addEventListener("appBridgeCallbackEvent", {
|
|
155273
155300
|
onEvent: onEvent,
|
|
155274
155301
|
onError: onError,
|
|
@@ -155291,10 +155318,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155291
155318
|
getSafeAreaBottom: function getSafeAreaBottom() {
|
|
155292
155319
|
return bottom;
|
|
155293
155320
|
}
|
|
155294
|
-
}, Object.fromEntries(Object.entries(global2).map(function (
|
|
155295
|
-
var
|
|
155296
|
-
key =
|
|
155297
|
-
value =
|
|
155321
|
+
}, Object.fromEntries(Object.entries(global2).map(function (_ref86) {
|
|
155322
|
+
var _ref87 = _slicedToArray(_ref86, 2),
|
|
155323
|
+
key = _ref87[0],
|
|
155324
|
+
value = _ref87[1];
|
|
155298
155325
|
return [key, function () {
|
|
155299
155326
|
return value;
|
|
155300
155327
|
}];
|
|
@@ -155351,7 +155378,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155351
155378
|
completeProductGrant: import_native_modules18.IAP.completeProductGrant
|
|
155352
155379
|
})
|
|
155353
155380
|
});
|
|
155354
|
-
var headerPropForExternalWebView = (0,
|
|
155381
|
+
var headerPropForExternalWebView = (0, import_react27.useMemo)(function () {
|
|
155355
155382
|
var _parsedNavigationBar$5;
|
|
155356
155383
|
var parsedNavigationBar = global2.navigationBar != null ? safeParseNavigationBar(global2.navigationBar) : null;
|
|
155357
155384
|
var initialAccessoryButton = parsedNavigationBar == null ? void 0 : parsedNavigationBar.initialAccessoryButton;
|
|
@@ -155373,14 +155400,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155373
155400
|
colorPreference: "light"
|
|
155374
155401
|
});
|
|
155375
155402
|
var refs = mergeRefs(handler.ref, webViewRef);
|
|
155376
|
-
(0,
|
|
155403
|
+
(0, import_react27.useEffect)(function () {
|
|
155377
155404
|
var callback = function callback() {
|
|
155378
155405
|
webBackHandler.handleWebBack();
|
|
155379
155406
|
return true;
|
|
155380
155407
|
};
|
|
155381
|
-
|
|
155408
|
+
import_react_native33.BackHandler.addEventListener("hardwareBackPress", callback);
|
|
155382
155409
|
return function () {
|
|
155383
|
-
return
|
|
155410
|
+
return import_react_native33.BackHandler.removeEventListener("hardwareBackPress", callback);
|
|
155384
155411
|
};
|
|
155385
155412
|
}, [webBackHandler]);
|
|
155386
155413
|
return (0, import_jsx_runtime15.jsx)(BaseWebView, Object.assign({
|
|
@@ -155401,14 +155428,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155401
155428
|
props.onNavigationStateChange == null ? void 0 : props.onNavigationStateChange(event);
|
|
155402
155429
|
webBackHandler.onNavigationStateChange(event);
|
|
155403
155430
|
},
|
|
155404
|
-
userAgent:
|
|
155431
|
+
userAgent: import_react_native33.Platform.OS === "ios" ? userAgent : void 0,
|
|
155405
155432
|
sharedCookiesEnabled: true,
|
|
155406
155433
|
webviewDebuggingEnabled: webViewDebuggingEnabled,
|
|
155407
155434
|
thirdPartyCookiesEnabled: true,
|
|
155408
155435
|
onMessage: handler.onMessage,
|
|
155409
155436
|
injectedJavaScript: handler.injectedJavaScript,
|
|
155410
155437
|
injectedJavaScriptBeforeContentLoaded: handler.injectedJavaScript,
|
|
155411
|
-
decelerationRate:
|
|
155438
|
+
decelerationRate: import_react_native33.Platform.OS === "ios" ? 1 : void 0,
|
|
155412
155439
|
allowsBackForwardNavigationGestures: allowsBackForwardNavigationGestures
|
|
155413
155440
|
}));
|
|
155414
155441
|
}
|
|
@@ -155435,7 +155462,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155435
155462
|
useTopNavigation: useTopNavigation,
|
|
155436
155463
|
useWaitForReturnNavigator: _useWaitForReturnNavigator
|
|
155437
155464
|
}, _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/analytics"), _$$_REQUIRE(_dependencyMap[6], "@apps-in-toss/native-modules"), _$$_REQUIRE(_dependencyMap[18], "@apps-in-toss/types")));
|
|
155438
|
-
},1254,[32,207,16,
|
|
155465
|
+
},1254,[32,207,61,16,1255,1256,1257,2,1444,18,6,9,2465,2565,2566,2602,2609,2474,1258],"../../.yarn/__virtual__/@apps-in-toss-framework-virtual-574b136add/1/apps-in-toss-packages/framework/dist/index.cjs");
|
|
155439
155466
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
155440
155467
|
function _objectDestructuringEmpty(obj) {
|
|
155441
155468
|
if (obj == null) throw new TypeError("Cannot destructure undefined");
|
|
@@ -156196,6 +156223,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156196
156223
|
getTossShareLink: function getTossShareLink() {
|
|
156197
156224
|
return _getTossShareLink;
|
|
156198
156225
|
},
|
|
156226
|
+
getUserKeyForGame: function getUserKeyForGame() {
|
|
156227
|
+
return _getUserKeyForGame;
|
|
156228
|
+
},
|
|
156229
|
+
grantPromotionRewardForGame: function grantPromotionRewardForGame() {
|
|
156230
|
+
return _grantPromotionRewardForGame;
|
|
156231
|
+
},
|
|
156199
156232
|
iapCreateOneTimePurchaseOrder: function iapCreateOneTimePurchaseOrder() {
|
|
156200
156233
|
return _iapCreateOneTimePurchaseOrder;
|
|
156201
156234
|
},
|
|
@@ -157295,6 +157328,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157295
157328
|
android: "5.221.0",
|
|
157296
157329
|
ios: "5.221.0"
|
|
157297
157330
|
};
|
|
157331
|
+
var GAME_USER_KEY_MIN_VERSION = {
|
|
157332
|
+
android: "5.232.0",
|
|
157333
|
+
ios: "5.232.0"
|
|
157334
|
+
};
|
|
157335
|
+
var GAME_PROMOTION_REWARD_MIN_VERSION = {
|
|
157336
|
+
android: "5.232.0",
|
|
157337
|
+
ios: "5.232.0"
|
|
157338
|
+
};
|
|
157298
157339
|
function _openGameCenterLeaderboard() {
|
|
157299
157340
|
return _openGameCenterLeaderboard2.apply(this, arguments);
|
|
157300
157341
|
}
|
|
@@ -157341,6 +157382,63 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157341
157382
|
});
|
|
157342
157383
|
return _submitGameCenterLeaderBoardScore2.apply(this, arguments);
|
|
157343
157384
|
}
|
|
157385
|
+
function _getUserKeyForGame() {
|
|
157386
|
+
return _getUserKeyForGame2.apply(this, arguments);
|
|
157387
|
+
}
|
|
157388
|
+
function _getUserKeyForGame2() {
|
|
157389
|
+
_getUserKeyForGame2 = _asyncToGenerator(function* () {
|
|
157390
|
+
var isSupported = _isMinVersionSupported(GAME_USER_KEY_MIN_VERSION);
|
|
157391
|
+
if (!isSupported) {
|
|
157392
|
+
return;
|
|
157393
|
+
}
|
|
157394
|
+
try {
|
|
157395
|
+
var response = yield _AppsInTossModule.getUserKeyForGame({});
|
|
157396
|
+
if (response.type === "HASH") {
|
|
157397
|
+
return response;
|
|
157398
|
+
}
|
|
157399
|
+
if (response.type === "NOT_AVAILABLE") {
|
|
157400
|
+
return "INVALID_CATEGORY";
|
|
157401
|
+
}
|
|
157402
|
+
return "ERROR";
|
|
157403
|
+
} catch (_) {
|
|
157404
|
+
return "ERROR";
|
|
157405
|
+
}
|
|
157406
|
+
});
|
|
157407
|
+
return _getUserKeyForGame2.apply(this, arguments);
|
|
157408
|
+
}
|
|
157409
|
+
function isGrantPromotionRewardForGameError(error) {
|
|
157410
|
+
return typeof error === "object" && error !== null && "code" in error && typeof error.code === "string" && "message" in error && typeof error.message === "string";
|
|
157411
|
+
}
|
|
157412
|
+
function _grantPromotionRewardForGame(_x14) {
|
|
157413
|
+
return _grantPromotionRewardForGame2.apply(this, arguments);
|
|
157414
|
+
}
|
|
157415
|
+
function _grantPromotionRewardForGame2() {
|
|
157416
|
+
_grantPromotionRewardForGame2 = _asyncToGenerator(function* (_ref9) {
|
|
157417
|
+
var params = _ref9.params;
|
|
157418
|
+
var isSupported = _isMinVersionSupported(GAME_PROMOTION_REWARD_MIN_VERSION);
|
|
157419
|
+
if (!isSupported) {
|
|
157420
|
+
return;
|
|
157421
|
+
}
|
|
157422
|
+
try {
|
|
157423
|
+
var response = yield _AppsInTossModule.grantPromotionRewardForGame({
|
|
157424
|
+
params: params
|
|
157425
|
+
});
|
|
157426
|
+
if (response.key) {
|
|
157427
|
+
return response;
|
|
157428
|
+
}
|
|
157429
|
+
return "ERROR";
|
|
157430
|
+
} catch (error) {
|
|
157431
|
+
if (isGrantPromotionRewardForGameError(error)) {
|
|
157432
|
+
return {
|
|
157433
|
+
errorCode: error.code,
|
|
157434
|
+
message: error.message
|
|
157435
|
+
};
|
|
157436
|
+
}
|
|
157437
|
+
return "ERROR";
|
|
157438
|
+
}
|
|
157439
|
+
});
|
|
157440
|
+
return _grantPromotionRewardForGame2.apply(this, arguments);
|
|
157441
|
+
}
|
|
157344
157442
|
function _contactsViral(params) {
|
|
157345
157443
|
var isSupported = _isMinVersionSupported({
|
|
157346
157444
|
android: "5.223.0",
|
|
@@ -157369,7 +157467,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157369
157467
|
});
|
|
157370
157468
|
return unregisterCallbacks;
|
|
157371
157469
|
}
|
|
157372
|
-
function _appsInTossSignTossCert(
|
|
157470
|
+
function _appsInTossSignTossCert(_x15) {
|
|
157373
157471
|
return _appsInTossSignTossCert2.apply(this, arguments);
|
|
157374
157472
|
}
|
|
157375
157473
|
function _appsInTossSignTossCert2() {
|
|
@@ -157437,7 +157535,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157437
157535
|
function _generateHapticFeedback(options) {
|
|
157438
157536
|
return _BedrockModule.generateHapticFeedback(options);
|
|
157439
157537
|
}
|
|
157440
|
-
function _share(
|
|
157538
|
+
function _share(_x16) {
|
|
157441
157539
|
return _share2.apply(this, arguments);
|
|
157442
157540
|
}
|
|
157443
157541
|
function _share2() {
|
|
@@ -157449,7 +157547,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157449
157547
|
function _setSecureScreen(options) {
|
|
157450
157548
|
return _BedrockModule.setSecureScreen(options);
|
|
157451
157549
|
}
|
|
157452
|
-
function _setScreenAwakeMode(
|
|
157550
|
+
function _setScreenAwakeMode(_x17) {
|
|
157453
157551
|
return _setScreenAwakeMode2.apply(this, arguments);
|
|
157454
157552
|
}
|
|
157455
157553
|
function _setScreenAwakeMode2() {
|
|
@@ -157461,7 +157559,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157461
157559
|
function _getNetworkStatus() {
|
|
157462
157560
|
return _BedrockModule.getNetworkStatus();
|
|
157463
157561
|
}
|
|
157464
|
-
function _setIosSwipeGestureEnabled(
|
|
157562
|
+
function _setIosSwipeGestureEnabled(_x18) {
|
|
157465
157563
|
return _setIosSwipeGestureEnabled2.apply(this, arguments);
|
|
157466
157564
|
}
|
|
157467
157565
|
function _setIosSwipeGestureEnabled2() {
|
|
@@ -157537,6 +157635,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157537
157635
|
getSchemeUri: getSchemeUri,
|
|
157538
157636
|
getTossAppVersion: _getTossAppVersion,
|
|
157539
157637
|
getTossShareLink: _getTossShareLink,
|
|
157638
|
+
getUserKeyForGame: _getUserKeyForGame,
|
|
157639
|
+
grantPromotionRewardForGame: _grantPromotionRewardForGame,
|
|
157540
157640
|
iapCreateOneTimePurchaseOrder: _iapCreateOneTimePurchaseOrder,
|
|
157541
157641
|
isMinVersionSupported: _isMinVersionSupported,
|
|
157542
157642
|
onVisibilityChangedByTransparentServiceWeb: _onVisibilityChangedByTransparentServiceWeb,
|
|
@@ -231270,7 +231370,29 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
231270
231370
|
}
|
|
231271
231371
|
});
|
|
231272
231372
|
});
|
|
231273
|
-
|
|
231373
|
+
var _getUserKeyForGame = _$$_REQUIRE(_dependencyMap[27], "./AppsInTossModule/native-modules/getUserKeyForGame");
|
|
231374
|
+
Object.keys(_getUserKeyForGame).forEach(function (key) {
|
|
231375
|
+
if (key === "default" || key === "__esModule") return;
|
|
231376
|
+
if (key in exports && exports[key] === _getUserKeyForGame[key]) return;
|
|
231377
|
+
Object.defineProperty(exports, key, {
|
|
231378
|
+
enumerable: true,
|
|
231379
|
+
get: function get() {
|
|
231380
|
+
return _getUserKeyForGame[key];
|
|
231381
|
+
}
|
|
231382
|
+
});
|
|
231383
|
+
});
|
|
231384
|
+
var _grantPromotionRewardForGame = _$$_REQUIRE(_dependencyMap[28], "./AppsInTossModule/native-modules/grantPromotionRewardForGame");
|
|
231385
|
+
Object.keys(_grantPromotionRewardForGame).forEach(function (key) {
|
|
231386
|
+
if (key === "default" || key === "__esModule") return;
|
|
231387
|
+
if (key in exports && exports[key] === _grantPromotionRewardForGame[key]) return;
|
|
231388
|
+
Object.defineProperty(exports, key, {
|
|
231389
|
+
enumerable: true,
|
|
231390
|
+
get: function get() {
|
|
231391
|
+
return _grantPromotionRewardForGame[key];
|
|
231392
|
+
}
|
|
231393
|
+
});
|
|
231394
|
+
});
|
|
231395
|
+
},2566,[2567,2569,2570,2571,2572,2573,2574,2575,2576,2578,2579,2580,2582,2583,2584,2585,2586,2587,2588,2591,2592,2593,2594,2595,2596,2598,2599,2600,2601],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/async-bridges.ts");
|
|
231274
231396
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
231275
231397
|
var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
|
|
231276
231398
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -231974,12 +232096,20 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
231974
232096
|
Object.defineProperty(exports, "__esModule", {
|
|
231975
232097
|
value: true
|
|
231976
232098
|
});
|
|
231977
|
-
exports.GAME_PROFILE_WEBVIEW_URL = exports.GAME_CENTER_MIN_VERSION = void 0;
|
|
232099
|
+
exports.GAME_USER_KEY_MIN_VERSION = exports.GAME_PROMOTION_REWARD_MIN_VERSION = exports.GAME_PROFILE_WEBVIEW_URL = exports.GAME_CENTER_MIN_VERSION = void 0;
|
|
231978
232100
|
var GAME_PROFILE_WEBVIEW_URL = exports.GAME_PROFILE_WEBVIEW_URL = 'https://service.toss.im/game-center/profile';
|
|
231979
232101
|
var GAME_CENTER_MIN_VERSION = exports.GAME_CENTER_MIN_VERSION = {
|
|
231980
232102
|
android: '5.221.0',
|
|
231981
232103
|
ios: '5.221.0'
|
|
231982
232104
|
};
|
|
232105
|
+
var GAME_USER_KEY_MIN_VERSION = exports.GAME_USER_KEY_MIN_VERSION = {
|
|
232106
|
+
android: '5.232.0',
|
|
232107
|
+
ios: '5.232.0'
|
|
232108
|
+
};
|
|
232109
|
+
var GAME_PROMOTION_REWARD_MIN_VERSION = exports.GAME_PROMOTION_REWARD_MIN_VERSION = {
|
|
232110
|
+
android: '5.232.0',
|
|
232111
|
+
ios: '5.232.0'
|
|
232112
|
+
};
|
|
231983
232113
|
},2597,[],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/constants.ts");
|
|
231984
232114
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
231985
232115
|
var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
|
|
@@ -232036,6 +232166,85 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
232036
232166
|
return _submitGameCenterLeaderBoardScore.apply(this, arguments);
|
|
232037
232167
|
}
|
|
232038
232168
|
},2599,[1,16,2577,2589,2597],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/submitGameCenterLeaderBoardScore.ts");
|
|
232169
|
+
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
232170
|
+
var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
|
|
232171
|
+
Object.defineProperty(exports, "__esModule", {
|
|
232172
|
+
value: true
|
|
232173
|
+
});
|
|
232174
|
+
exports.getUserKeyForGame = getUserKeyForGame;
|
|
232175
|
+
var _asyncToGenerator2 = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/asyncToGenerator"));
|
|
232176
|
+
var _AppsInTossModule = _$$_REQUIRE(_dependencyMap[2], "./AppsInTossModule");
|
|
232177
|
+
var _isMinVersionSupported = _$$_REQUIRE(_dependencyMap[3], "./isMinVersionSupported");
|
|
232178
|
+
var _constants = _$$_REQUIRE(_dependencyMap[4], "../constants");
|
|
232179
|
+
function getUserKeyForGame() {
|
|
232180
|
+
return _getUserKeyForGame.apply(this, arguments);
|
|
232181
|
+
}
|
|
232182
|
+
function _getUserKeyForGame() {
|
|
232183
|
+
_getUserKeyForGame = (0, _asyncToGenerator2.default)(function* () {
|
|
232184
|
+
var isSupported = (0, _isMinVersionSupported.isMinVersionSupported)(_constants.GAME_USER_KEY_MIN_VERSION);
|
|
232185
|
+
if (!isSupported) {
|
|
232186
|
+
return;
|
|
232187
|
+
}
|
|
232188
|
+
try {
|
|
232189
|
+
var response = yield _AppsInTossModule.AppsInTossModule.getUserKeyForGame({});
|
|
232190
|
+
if (response.type === 'HASH') {
|
|
232191
|
+
return response;
|
|
232192
|
+
}
|
|
232193
|
+
if (response.type === 'NOT_AVAILABLE') {
|
|
232194
|
+
return 'INVALID_CATEGORY';
|
|
232195
|
+
}
|
|
232196
|
+
return 'ERROR';
|
|
232197
|
+
} catch (_) {
|
|
232198
|
+
return 'ERROR';
|
|
232199
|
+
}
|
|
232200
|
+
});
|
|
232201
|
+
return _getUserKeyForGame.apply(this, arguments);
|
|
232202
|
+
}
|
|
232203
|
+
},2600,[1,16,2577,2589,2597],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/getUserKeyForGame.ts");
|
|
232204
|
+
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
232205
|
+
var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
|
|
232206
|
+
Object.defineProperty(exports, "__esModule", {
|
|
232207
|
+
value: true
|
|
232208
|
+
});
|
|
232209
|
+
exports.grantPromotionRewardForGame = grantPromotionRewardForGame;
|
|
232210
|
+
var _asyncToGenerator2 = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/asyncToGenerator"));
|
|
232211
|
+
var _AppsInTossModule = _$$_REQUIRE(_dependencyMap[2], "./AppsInTossModule");
|
|
232212
|
+
var _isMinVersionSupported = _$$_REQUIRE(_dependencyMap[3], "./isMinVersionSupported");
|
|
232213
|
+
var _constants = _$$_REQUIRE(_dependencyMap[4], "../constants");
|
|
232214
|
+
function isGrantPromotionRewardForGameError(error) {
|
|
232215
|
+
return typeof error === 'object' && error !== null && 'code' in error && typeof error.code === 'string' && 'message' in error && typeof error.message === 'string';
|
|
232216
|
+
}
|
|
232217
|
+
function grantPromotionRewardForGame(_x) {
|
|
232218
|
+
return _grantPromotionRewardForGame.apply(this, arguments);
|
|
232219
|
+
}
|
|
232220
|
+
function _grantPromotionRewardForGame() {
|
|
232221
|
+
_grantPromotionRewardForGame = (0, _asyncToGenerator2.default)(function* (_ref) {
|
|
232222
|
+
var params = _ref.params;
|
|
232223
|
+
var isSupported = (0, _isMinVersionSupported.isMinVersionSupported)(_constants.GAME_PROMOTION_REWARD_MIN_VERSION);
|
|
232224
|
+
if (!isSupported) {
|
|
232225
|
+
return;
|
|
232226
|
+
}
|
|
232227
|
+
try {
|
|
232228
|
+
var response = yield _AppsInTossModule.AppsInTossModule.grantPromotionRewardForGame({
|
|
232229
|
+
params: params
|
|
232230
|
+
});
|
|
232231
|
+
if (response.key) {
|
|
232232
|
+
return response;
|
|
232233
|
+
}
|
|
232234
|
+
return 'ERROR';
|
|
232235
|
+
} catch (error) {
|
|
232236
|
+
if (isGrantPromotionRewardForGameError(error)) {
|
|
232237
|
+
return {
|
|
232238
|
+
errorCode: error.code,
|
|
232239
|
+
message: error.message
|
|
232240
|
+
};
|
|
232241
|
+
}
|
|
232242
|
+
return 'ERROR';
|
|
232243
|
+
}
|
|
232244
|
+
});
|
|
232245
|
+
return _grantPromotionRewardForGame.apply(this, arguments);
|
|
232246
|
+
}
|
|
232247
|
+
},2601,[1,16,2577,2589,2597],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/grantPromotionRewardForGame.ts");
|
|
232039
232248
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
232040
232249
|
Object.defineProperty(exports, "__esModule", {
|
|
232041
232250
|
value: true
|
|
@@ -232106,7 +232315,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
232106
232315
|
}
|
|
232107
232316
|
});
|
|
232108
232317
|
});
|
|
232109
|
-
},
|
|
232318
|
+
},2602,[2603,2604,2605,2606,2607,2608],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/constant-bridges.ts");
|
|
232110
232319
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
232111
232320
|
Object.defineProperty(exports, "__esModule", {
|
|
232112
232321
|
value: true
|
|
@@ -232125,7 +232334,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
232125
232334
|
function replaceUnderbarToHypen(locale) {
|
|
232126
232335
|
return locale.replace(/_/g, '-');
|
|
232127
232336
|
}
|
|
232128
|
-
},
|
|
232337
|
+
},2603,[18,2568],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/BedrockModule/native-modules/natives/getLocale.ts");
|
|
232129
232338
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
232130
232339
|
Object.defineProperty(exports, "__esModule", {
|
|
232131
232340
|
value: true
|
|
@@ -232135,7 +232344,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
232135
232344
|
function getSchemeUri() {
|
|
232136
232345
|
return _BedrockModule.BedrockModule.schemeUri;
|
|
232137
232346
|
}
|
|
232138
|
-
},
|
|
232347
|
+
},2604,[2568],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/BedrockModule/native-modules/natives/getSchemeUri.ts");
|
|
232139
232348
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
232140
232349
|
Object.defineProperty(exports, "__esModule", {
|
|
232141
232350
|
value: true
|
|
@@ -232145,7 +232354,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
232145
232354
|
function getPlatformOS() {
|
|
232146
232355
|
return _reactNative.Platform.OS;
|
|
232147
232356
|
}
|
|
232148
|
-
},
|
|
232357
|
+
},2605,[18],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/BedrockModule/native-modules/natives/getPlatformOS.ts");
|
|
232149
232358
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
232150
232359
|
Object.defineProperty(exports, "__esModule", {
|
|
232151
232360
|
value: true
|
|
@@ -232155,7 +232364,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
232155
232364
|
function getOperationalEnvironment() {
|
|
232156
232365
|
return _AppsInTossModule.AppsInTossModule.operationalEnvironment;
|
|
232157
232366
|
}
|
|
232158
|
-
},
|
|
232367
|
+
},2606,[2577],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/getOperationalEnvironment.ts");
|
|
232159
232368
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
232160
232369
|
Object.defineProperty(exports, "__esModule", {
|
|
232161
232370
|
value: true
|
|
@@ -232165,7 +232374,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
232165
232374
|
function getTossAppVersion() {
|
|
232166
232375
|
return _AppsInTossModule.AppsInTossModule.tossAppVersion;
|
|
232167
232376
|
}
|
|
232168
|
-
},
|
|
232377
|
+
},2607,[2577],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/getTossAppVersion.ts");
|
|
232169
232378
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
232170
232379
|
Object.defineProperty(exports, "__esModule", {
|
|
232171
232380
|
value: true
|
|
@@ -232175,7 +232384,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
232175
232384
|
function getDeviceId() {
|
|
232176
232385
|
return _AppsInTossModule.AppsInTossModule.deviceId;
|
|
232177
232386
|
}
|
|
232178
|
-
},
|
|
232387
|
+
},2608,[2577],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/getDeviceId.ts");
|
|
232179
232388
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
232180
232389
|
Object.defineProperty(exports, "__esModule", {
|
|
232181
232390
|
value: true
|
|
@@ -232213,7 +232422,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
232213
232422
|
}
|
|
232214
232423
|
});
|
|
232215
232424
|
});
|
|
232216
|
-
},
|
|
232425
|
+
},2609,[2610,2626,2625],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/event-bridges.ts");
|
|
232217
232426
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
232218
232427
|
Object.defineProperty(exports, "__esModule", {
|
|
232219
232428
|
value: true
|
|
@@ -232226,7 +232435,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
232226
232435
|
}
|
|
232227
232436
|
startUpdateLocation.openPermissionDialog = _nativeModules.getCurrentLocation.openPermissionDialog;
|
|
232228
232437
|
startUpdateLocation.getPermission = _nativeModules.getCurrentLocation.getPermission;
|
|
232229
|
-
},
|
|
232438
|
+
},2610,[2611,2619],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-event-emitter/startUpdateLocation.ts");
|
|
232230
232439
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
232231
232440
|
Object.defineProperty(exports, "__esModule", {
|
|
232232
232441
|
value: true
|
|
@@ -232238,7 +232447,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
232238
232447
|
var _AppBridgeCallbackEvent = _$$_REQUIRE(_dependencyMap[3], "./internal/AppBridgeCallbackEvent");
|
|
232239
232448
|
var _VisibilityChangedByTransparentServiceWebEvent = _$$_REQUIRE(_dependencyMap[4], "./internal/VisibilityChangedByTransparentServiceWebEvent");
|
|
232240
232449
|
var appsInTossEvent = exports.appsInTossEvent = new _reactNative.GraniteEvent([new _UpdateLocationEvent.UpdateLocationEvent(), new _EntryMessageExitedEvent.EntryMessageExitedEvent(), new _AppBridgeCallbackEvent.AppBridgeCallbackEvent(), new _VisibilityChangedByTransparentServiceWebEvent.VisibilityChangedByTransparentServiceWebEvent()]);
|
|
232241
|
-
},
|
|
232450
|
+
},2611,[2,2612,2613,2615,2618],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-event-emitter/appsInTossEvent.ts");
|
|
232242
232451
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
232243
232452
|
var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
|
|
232244
232453
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -232273,7 +232482,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
232273
232482
|
value: function listener(_) {}
|
|
232274
232483
|
}]);
|
|
232275
232484
|
}(_reactNative.GraniteEventDefinition);
|
|
232276
|
-
},
|
|
232485
|
+
},2612,[1,24,25,43,46,47,2],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-event-emitter/event-plugins/EntryMessageExitedEvent.ts");
|
|
232277
232486
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
232278
232487
|
var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
|
|
232279
232488
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -232340,7 +232549,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
232340
232549
|
}
|
|
232341
232550
|
}]);
|
|
232342
232551
|
}(_reactNative.GraniteEventDefinition);
|
|
232343
|
-
},
|
|
232552
|
+
},2613,[1,24,25,43,46,47,1258,2,2577,2578,2614],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-event-emitter/event-plugins/UpdateLocationEvent.ts");
|
|
232344
232553
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
232345
232554
|
Object.defineProperty(exports, "__esModule", {
|
|
232346
232555
|
value: true
|
|
@@ -232349,7 +232558,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
232349
232558
|
var _reactNative = _$$_REQUIRE(_dependencyMap[0], "react-native");
|
|
232350
232559
|
var _AppsInTossModule = _$$_REQUIRE(_dependencyMap[1], "../native-modules/AppsInTossModule");
|
|
232351
232560
|
var nativeEventEmitter = exports.nativeEventEmitter = new _reactNative.NativeEventEmitter(_AppsInTossModule.AppsInTossModuleInstance);
|
|
232352
|
-
},
|
|
232561
|
+
},2614,[18,2577],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-event-emitter/nativeEventEmitter.ts");
|
|
232353
232562
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
232354
232563
|
var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
|
|
232355
232564
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -232402,7 +232611,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
232402
232611
|
}
|
|
232403
232612
|
}]);
|
|
232404
232613
|
}(_reactNative.GraniteEventDefinition);
|
|
232405
|
-
},
|
|
232614
|
+
},2615,[1,24,25,43,46,47,2,2616,2614],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-event-emitter/internal/AppBridgeCallbackEvent.ts");
|
|
232406
232615
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
232407
232616
|
var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
|
|
232408
232617
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -232479,7 +232688,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
232479
232688
|
unregisterCallback: unregisterCallback,
|
|
232480
232689
|
getCallbackIds: getCallbackIds
|
|
232481
232690
|
};
|
|
232482
|
-
},
|
|
232691
|
+
},2616,[1,61,207,2617,2577],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-event-emitter/internal/appBridge.ts");
|
|
232483
232692
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
232484
232693
|
Object.defineProperty(exports, "__esModule", {
|
|
232485
232694
|
value: true
|
|
@@ -232488,7 +232697,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
232488
232697
|
function generateUUID(placeholder) {
|
|
232489
232698
|
return placeholder ? (placeholder ^ Math.random() * 16 >> placeholder / 4).toString(16) : (String(1e7) + 1e3 + 4e3 + 8e3 + 1e11).replace(/[018]/g, generateUUID);
|
|
232490
232699
|
}
|
|
232491
|
-
},
|
|
232700
|
+
},2617,[],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/utils/generateUUID.ts");
|
|
232492
232701
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
232493
232702
|
var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
|
|
232494
232703
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -232546,7 +232755,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
232546
232755
|
}
|
|
232547
232756
|
}]);
|
|
232548
232757
|
}(_reactNative.GraniteEventDefinition);
|
|
232549
|
-
},
|
|
232758
|
+
},2618,[1,24,25,43,46,47,2,2614],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-event-emitter/internal/VisibilityChangedByTransparentServiceWebEvent.ts");
|
|
232550
232759
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
232551
232760
|
Object.defineProperty(exports, "__esModule", {
|
|
232552
232761
|
value: true
|
|
@@ -232815,7 +233024,31 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
232815
233024
|
}
|
|
232816
233025
|
});
|
|
232817
233026
|
});
|
|
232818
|
-
var
|
|
233027
|
+
var _getUserKeyForGame = _$$_REQUIRE(_dependencyMap[24], "./getUserKeyForGame");
|
|
233028
|
+
Object.keys(_getUserKeyForGame).forEach(function (key) {
|
|
233029
|
+
if (key === "default" || key === "__esModule") return;
|
|
233030
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
233031
|
+
if (key in exports && exports[key] === _getUserKeyForGame[key]) return;
|
|
233032
|
+
Object.defineProperty(exports, key, {
|
|
233033
|
+
enumerable: true,
|
|
233034
|
+
get: function get() {
|
|
233035
|
+
return _getUserKeyForGame[key];
|
|
233036
|
+
}
|
|
233037
|
+
});
|
|
233038
|
+
});
|
|
233039
|
+
var _grantPromotionRewardForGame = _$$_REQUIRE(_dependencyMap[25], "./grantPromotionRewardForGame");
|
|
233040
|
+
Object.keys(_grantPromotionRewardForGame).forEach(function (key) {
|
|
233041
|
+
if (key === "default" || key === "__esModule") return;
|
|
233042
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
233043
|
+
if (key in exports && exports[key] === _grantPromotionRewardForGame[key]) return;
|
|
233044
|
+
Object.defineProperty(exports, key, {
|
|
233045
|
+
enumerable: true,
|
|
233046
|
+
get: function get() {
|
|
233047
|
+
return _grantPromotionRewardForGame[key];
|
|
233048
|
+
}
|
|
233049
|
+
});
|
|
233050
|
+
});
|
|
233051
|
+
var _contactsViral = _$$_REQUIRE(_dependencyMap[26], "../native-event-emitter/contactsViral");
|
|
232819
233052
|
Object.keys(_contactsViral).forEach(function (key) {
|
|
232820
233053
|
if (key === "default" || key === "__esModule") return;
|
|
232821
233054
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -232827,7 +233060,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
232827
233060
|
}
|
|
232828
233061
|
});
|
|
232829
233062
|
});
|
|
232830
|
-
var _appsInTossSignTossCert = _$$_REQUIRE(_dependencyMap[
|
|
233063
|
+
var _appsInTossSignTossCert = _$$_REQUIRE(_dependencyMap[27], "./appsInTossSignTossCert");
|
|
232831
233064
|
Object.keys(_appsInTossSignTossCert).forEach(function (key) {
|
|
232832
233065
|
if (key === "default" || key === "__esModule") return;
|
|
232833
233066
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -232850,7 +233083,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
232850
233083
|
loadAppsInTossAdMob: _googleAdMobV.loadAppsInTossAdMob,
|
|
232851
233084
|
showAppsInTossAdMob: _googleAdMobV.showAppsInTossAdMob
|
|
232852
233085
|
};
|
|
232853
|
-
},
|
|
233086
|
+
},2619,[2620,2621,2593,2577,2587,2588,2584,2583,2582,2585,2580,2586,2608,2606,2607,2591,2623,2589,2594,2592,2624,2598,2596,2599,2600,2601,2625,2595],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/index.ts");
|
|
232854
233087
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
232855
233088
|
Object.defineProperty(exports, "__esModule", {
|
|
232856
233089
|
value: true
|
|
@@ -233011,7 +233244,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
233011
233244
|
loadAdMobRewardedAd.isSupported = createIsSupported();
|
|
233012
233245
|
showAdMobInterstitialAd.isSupported = createIsSupported();
|
|
233013
233246
|
showAdMobRewardedAd.isSupported = createIsSupported();
|
|
233014
|
-
},
|
|
233247
|
+
},2620,[1259,2616,2606,2589],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/ads/googleAdMob.ts");
|
|
233015
233248
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
233016
233249
|
Object.defineProperty(exports, "__esModule", {
|
|
233017
233250
|
value: true
|
|
@@ -233114,7 +233347,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
233114
233347
|
}
|
|
233115
233348
|
loadAppsInTossAdMob.isSupported = createIsSupported();
|
|
233116
233349
|
showAppsInTossAdMob.isSupported = createIsSupported();
|
|
233117
|
-
},
|
|
233350
|
+
},2621,[1259,2622,2616,2606,2589],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/ads/googleAdMobV2.ts");
|
|
233118
233351
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
233119
233352
|
Object.defineProperty(exports, "__esModule", {
|
|
233120
233353
|
value: true
|
|
@@ -233128,7 +233361,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
233128
233361
|
return null;
|
|
233129
233362
|
}
|
|
233130
233363
|
}
|
|
233131
|
-
},
|
|
233364
|
+
},2622,[2],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/utils/getReferrer.ts");
|
|
233132
233365
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
233133
233366
|
var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
|
|
233134
233367
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -233323,7 +233556,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
233323
233556
|
getCompletedOrRefundedOrders: getCompletedOrRefundedOrders,
|
|
233324
233557
|
completeProductGrant: completeProductGrant
|
|
233325
233558
|
};
|
|
233326
|
-
},
|
|
233559
|
+
},2623,[1,16,1259,2577,2589,2616],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/iap.ts");
|
|
233327
233560
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
233328
233561
|
Object.defineProperty(exports, "__esModule", {
|
|
233329
233562
|
value: true
|
|
@@ -233355,7 +233588,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
233355
233588
|
removeItem: removeItem,
|
|
233356
233589
|
clearItems: clearItems
|
|
233357
233590
|
};
|
|
233358
|
-
},
|
|
233591
|
+
},2624,[2577],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/storage.ts");
|
|
233359
233592
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
233360
233593
|
Object.defineProperty(exports, "__esModule", {
|
|
233361
233594
|
value: true
|
|
@@ -233391,7 +233624,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
233391
233624
|
});
|
|
233392
233625
|
return unregisterCallbacks;
|
|
233393
233626
|
}
|
|
233394
|
-
},
|
|
233627
|
+
},2625,[2616,2589],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-event-emitter/contactsViral.ts");
|
|
233395
233628
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
233396
233629
|
Object.defineProperty(exports, "__esModule", {
|
|
233397
233630
|
value: true
|
|
@@ -233401,7 +233634,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
233401
233634
|
function onVisibilityChangedByTransparentServiceWeb(eventParams) {
|
|
233402
233635
|
return _appsInTossEvent.appsInTossEvent.addEventListener('onVisibilityChangedByTransparentServiceWeb', eventParams);
|
|
233403
233636
|
}
|
|
233404
|
-
},
|
|
233637
|
+
},2626,[2611],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-event-emitter/internal/onVisibilityChangedByTransparentServiceWeb.ts");
|
|
233405
233638
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
233406
233639
|
Object.defineProperty(exports, "__esModule", {
|
|
233407
233640
|
value: true
|
|
@@ -233416,7 +233649,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
233416
233649
|
context.keys = function () {
|
|
233417
233650
|
return Array.from(files.keys());
|
|
233418
233651
|
};
|
|
233419
|
-
},
|
|
233652
|
+
},2627,[2628,2629],"react-native/context.ts");
|
|
233420
233653
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
233421
233654
|
Object.defineProperty(exports, "__esModule", {
|
|
233422
233655
|
value: true
|
|
@@ -233449,7 +233682,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
233449
233682
|
})
|
|
233450
233683
|
});
|
|
233451
233684
|
}
|
|
233452
|
-
},
|
|
233685
|
+
},2628,[1254,18,9],"react-native/pages/index.tsx");
|
|
233453
233686
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
233454
233687
|
var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
|
|
233455
233688
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -233462,6 +233695,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
233462
233695
|
}
|
|
233463
233696
|
});
|
|
233464
233697
|
var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./index"));
|
|
233465
|
-
},
|
|
233698
|
+
},2629,[1,2628],"react-native/pages/_404.tsx");
|
|
233466
233699
|
__r(134);
|
|
233467
233700
|
__r(0);
|