@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
|
@@ -153246,14 +153246,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153246
153246
|
var _default = exports.default = _framework.AppsInToss.registerApp(AppContainer, {
|
|
153247
153247
|
context: _context.context
|
|
153248
153248
|
});
|
|
153249
|
-
},1253,[1254,
|
|
153249
|
+
},1253,[1254,2628,9],"react-native/src/_app.tsx");
|
|
153250
153250
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
153251
153251
|
"use strict";
|
|
153252
153252
|
|
|
153253
153253
|
var _toConsumableArray = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/toConsumableArray");
|
|
153254
153254
|
var _objectWithoutProperties = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/objectWithoutProperties");
|
|
153255
|
-
var
|
|
153256
|
-
var
|
|
153255
|
+
var _slicedToArray = _$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/slicedToArray");
|
|
153256
|
+
var _asyncToGenerator = _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/asyncToGenerator");
|
|
153257
153257
|
var _objectDestructuringEmpty = _$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/objectDestructuringEmpty");
|
|
153258
153258
|
var _excluded = ["children"],
|
|
153259
153259
|
_excluded2 = ["onBackButtonClick", "onHomeButtonClick"],
|
|
@@ -153340,9 +153340,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153340
153340
|
var import_analytics2 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/analytics");
|
|
153341
153341
|
var import_analytics = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/analytics");
|
|
153342
153342
|
var import_native_modules13 = _$$_REQUIRE(_dependencyMap[6], "@apps-in-toss/native-modules");
|
|
153343
|
-
var
|
|
153343
|
+
var import_react_native21 = _$$_REQUIRE(_dependencyMap[7], "@granite-js/react-native");
|
|
153344
153344
|
var import_tds_react_native10 = _$$_REQUIRE(_dependencyMap[8], "@toss/tds-react-native");
|
|
153345
|
-
var
|
|
153345
|
+
var import_react_native22 = _$$_REQUIRE(_dependencyMap[9], "react-native");
|
|
153346
153346
|
var import_native_modules2 = _$$_REQUIRE(_dependencyMap[6], "@apps-in-toss/native-modules");
|
|
153347
153347
|
var import_react_native4 = _$$_REQUIRE(_dependencyMap[7], "@granite-js/react-native");
|
|
153348
153348
|
var import_react3 = _$$_REQUIRE(_dependencyMap[10], "react");
|
|
@@ -153507,94 +153507,157 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153507
153507
|
}, []);
|
|
153508
153508
|
}
|
|
153509
153509
|
var import_native_modules12 = _$$_REQUIRE(_dependencyMap[6], "@apps-in-toss/native-modules");
|
|
153510
|
-
var
|
|
153511
|
-
var
|
|
153512
|
-
var
|
|
153513
|
-
var
|
|
153514
|
-
var
|
|
153515
|
-
var
|
|
153510
|
+
var import_react17 = _$$_REQUIRE(_dependencyMap[10], "react");
|
|
153511
|
+
var import_react_native20 = _$$_REQUIRE(_dependencyMap[9], "react-native");
|
|
153512
|
+
var import_native_modules7 = _$$_REQUIRE(_dependencyMap[6], "@apps-in-toss/native-modules");
|
|
153513
|
+
var import_react_native10 = _$$_REQUIRE(_dependencyMap[7], "@granite-js/react-native");
|
|
153514
|
+
var import_tds_react_native5 = _$$_REQUIRE(_dependencyMap[8], "@toss/tds-react-native");
|
|
153515
|
+
var import_es_hangul = _$$_REQUIRE(_dependencyMap[12], "es-hangul");
|
|
153516
|
+
var import_react11 = _$$_REQUIRE(_dependencyMap[10], "react");
|
|
153517
|
+
var import_react_native11 = _$$_REQUIRE(_dependencyMap[9], "react-native");
|
|
153516
153518
|
var GAME_PROFILE_WEBVIEW_URL = "servicetoss://game-center/profile";
|
|
153517
|
-
var
|
|
153518
|
-
android: "5.
|
|
153519
|
-
ios: "5.
|
|
153519
|
+
var GAME_MIN_VERSION = {
|
|
153520
|
+
android: "5.232.0",
|
|
153521
|
+
ios: "5.232.0"
|
|
153520
153522
|
};
|
|
153521
|
-
var
|
|
153522
|
-
var
|
|
153523
|
-
var import_tds_react_native3 = _$$_REQUIRE(_dependencyMap[8], "@toss/tds-react-native");
|
|
153524
|
-
var import_es_hangul = _$$_REQUIRE(_dependencyMap[12], "es-hangul");
|
|
153525
|
-
var import_react6 = _$$_REQUIRE(_dependencyMap[10], "react");
|
|
153523
|
+
var import_native_modules4 = _$$_REQUIRE(_dependencyMap[6], "@apps-in-toss/native-modules");
|
|
153524
|
+
var import_react_native7 = _$$_REQUIRE(_dependencyMap[7], "@granite-js/react-native");
|
|
153526
153525
|
var import_tds_react_native2 = _$$_REQUIRE(_dependencyMap[8], "@toss/tds-react-native");
|
|
153527
|
-
var
|
|
153528
|
-
var
|
|
153529
|
-
var
|
|
153530
|
-
|
|
153531
|
-
|
|
153532
|
-
|
|
153533
|
-
|
|
153534
|
-
|
|
153535
|
-
|
|
153536
|
-
|
|
153537
|
-
|
|
153538
|
-
|
|
153539
|
-
|
|
153540
|
-
|
|
153541
|
-
|
|
153542
|
-
|
|
153543
|
-
|
|
153544
|
-
|
|
153545
|
-
|
|
153546
|
-
|
|
153547
|
-
|
|
153548
|
-
|
|
153549
|
-
|
|
153550
|
-
|
|
153551
|
-
|
|
153552
|
-
|
|
153553
|
-
|
|
153554
|
-
frameShape: import_tds_react_native2.Asset.frameShape.CleanW32,
|
|
153555
|
-
source: {
|
|
153556
|
-
uri: profileImageUri
|
|
153557
|
-
}
|
|
153558
|
-
})
|
|
153559
|
-
})
|
|
153560
|
-
})
|
|
153561
|
-
});
|
|
153526
|
+
var import_react6 = _$$_REQUIRE(_dependencyMap[10], "react");
|
|
153527
|
+
var import_react_native6 = _$$_REQUIRE(_dependencyMap[9], "react-native");
|
|
153528
|
+
var PLAYSTORE_LINK = "https://play.google.com/store/apps/details?id=viva.republica.toss";
|
|
153529
|
+
var APPSTORE_LINK = "https://itunes.apple.com/app/id839333328";
|
|
153530
|
+
var getMarketLink = function getMarketLink() {
|
|
153531
|
+
return import_react_native6.Platform.OS === "android" ? PLAYSTORE_LINK : APPSTORE_LINK;
|
|
153532
|
+
};
|
|
153533
|
+
function useAppUpdateDialog() {
|
|
153534
|
+
var _ref2 = (0, import_tds_react_native2.useDialog)(),
|
|
153535
|
+
openConfirm = _ref2.openConfirm;
|
|
153536
|
+
var logging = useAppUpdateDialogLogging();
|
|
153537
|
+
var openAppUpdateDialog = (0, import_react6.useCallback)(function () {
|
|
153538
|
+
var _ref4 = _asyncToGenerator(function* (_ref3) {
|
|
153539
|
+
var title = _ref3.title,
|
|
153540
|
+
description = _ref3.description,
|
|
153541
|
+
_ref3$leftButton = _ref3.leftButton,
|
|
153542
|
+
leftButton = _ref3$leftButton === void 0 ? "\uB2EB\uAE30" : _ref3$leftButton,
|
|
153543
|
+
_ref3$rightButton = _ref3.rightButton,
|
|
153544
|
+
rightButton = _ref3$rightButton === void 0 ? "\uC5C5\uB370\uC774\uD2B8\uD558\uAE30" : _ref3$rightButton,
|
|
153545
|
+
onDismiss = _ref3.onDismiss;
|
|
153546
|
+
logging.show();
|
|
153547
|
+
var isConfirmed = yield openConfirm({
|
|
153548
|
+
title: title,
|
|
153549
|
+
description: description,
|
|
153550
|
+
leftButton: leftButton,
|
|
153551
|
+
rightButton: rightButton,
|
|
153552
|
+
closeOnDimmerClick: true
|
|
153562
153553
|
});
|
|
153554
|
+
if (!isConfirmed) {
|
|
153555
|
+
logging.close();
|
|
153556
|
+
onDismiss == null ? void 0 : onDismiss();
|
|
153557
|
+
return;
|
|
153558
|
+
}
|
|
153559
|
+
logging.update();
|
|
153560
|
+
var STORE_SCHEME = getMarketLink();
|
|
153561
|
+
(0, import_react_native7.openURL)("supertoss://web?url=" + STORE_SCHEME + "&external=browser");
|
|
153562
|
+
});
|
|
153563
|
+
return function (_x) {
|
|
153564
|
+
return _ref4.apply(this, arguments);
|
|
153565
|
+
};
|
|
153566
|
+
}(), [logging, openConfirm]);
|
|
153567
|
+
return {
|
|
153568
|
+
open: openAppUpdateDialog
|
|
153569
|
+
};
|
|
153570
|
+
}
|
|
153571
|
+
var UPDATE_DIALOG_SCHEMA_ID = 1634992;
|
|
153572
|
+
var UPDATE_DIALOG_LOG_NAME = "appsintoss_app_visit__common_module::bottomsheet__app_update";
|
|
153573
|
+
var UPDATE_DIALOG_CTA_CLICK_SCHEMA_ID = 1634996;
|
|
153574
|
+
var UPDATE_DIALOG_CTA_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::bottomsheet__app_update::click__cta";
|
|
153575
|
+
function useAppUpdateDialogLogging() {
|
|
153576
|
+
var referrer = useReferrer();
|
|
153577
|
+
var baseParams = {
|
|
153578
|
+
referrer: referrer,
|
|
153579
|
+
app_name: import_react_native7.Granite.appName
|
|
153580
|
+
};
|
|
153581
|
+
var logUpdateClick = function logUpdateClick() {
|
|
153582
|
+
import_native_modules4.INTERNAL__module.tossCoreEventLog({
|
|
153583
|
+
log_name: UPDATE_DIALOG_CTA_CLICK_LOG_NAME,
|
|
153584
|
+
log_type: "event",
|
|
153585
|
+
params: Object.assign({}, baseParams, {
|
|
153586
|
+
schema_id: UPDATE_DIALOG_CTA_CLICK_SCHEMA_ID,
|
|
153587
|
+
event_type: "click",
|
|
153588
|
+
button_type: "update"
|
|
153589
|
+
})
|
|
153590
|
+
});
|
|
153591
|
+
};
|
|
153592
|
+
var logCloseClick = function logCloseClick() {
|
|
153593
|
+
import_native_modules4.INTERNAL__module.tossCoreEventLog({
|
|
153594
|
+
log_name: UPDATE_DIALOG_CTA_CLICK_LOG_NAME,
|
|
153595
|
+
log_type: "event",
|
|
153596
|
+
params: Object.assign({}, baseParams, {
|
|
153597
|
+
schema_id: UPDATE_DIALOG_CTA_CLICK_SCHEMA_ID,
|
|
153598
|
+
event_type: "click",
|
|
153599
|
+
button_type: "close"
|
|
153600
|
+
})
|
|
153601
|
+
});
|
|
153602
|
+
};
|
|
153603
|
+
var logDialogShow = function logDialogShow() {
|
|
153604
|
+
import_native_modules4.INTERNAL__module.tossCoreEventLog({
|
|
153605
|
+
log_name: UPDATE_DIALOG_LOG_NAME,
|
|
153606
|
+
log_type: "popup",
|
|
153607
|
+
params: Object.assign({}, baseParams, {
|
|
153608
|
+
schema_id: UPDATE_DIALOG_SCHEMA_ID
|
|
153609
|
+
})
|
|
153563
153610
|
});
|
|
153564
153611
|
};
|
|
153565
153612
|
return {
|
|
153566
|
-
|
|
153613
|
+
update: logUpdateClick,
|
|
153614
|
+
close: logCloseClick,
|
|
153615
|
+
show: logDialogShow
|
|
153567
153616
|
};
|
|
153568
|
-
}
|
|
153617
|
+
}
|
|
153618
|
+
var import_native_modules6 = _$$_REQUIRE(_dependencyMap[6], "@apps-in-toss/native-modules");
|
|
153619
|
+
var import_react10 = _$$_REQUIRE(_dependencyMap[10], "react");
|
|
153620
|
+
var import_react_native8 = _$$_REQUIRE(_dependencyMap[7], "@granite-js/react-native");
|
|
153621
|
+
var import_tds_react_native3 = _$$_REQUIRE(_dependencyMap[8], "@toss/tds-react-native");
|
|
153622
|
+
var import_react7 = _$$_REQUIRE(_dependencyMap[10], "react");
|
|
153569
153623
|
var DEFAULT_ERROR = {
|
|
153570
153624
|
title: "\uC7A0\uC2DC \uD6C4 \uB2E4\uC2DC \uC2DC\uB3C4\uD574\uC8FC\uC138\uC694",
|
|
153571
153625
|
description: "\uBB38\uC81C\uAC00 \uACC4\uC18D\uB418\uBA74 \uD1A0\uC2A4 \uACE0\uAC1D\uC13C\uD130(1599-4905)\uB85C \uBB38\uC758\uD574\uC8FC\uC138\uC694."
|
|
153572
153626
|
};
|
|
153573
|
-
var
|
|
153574
|
-
|
|
153575
|
-
|
|
153576
|
-
|
|
153577
|
-
|
|
153627
|
+
var useErrorAlert = function useErrorAlert() {
|
|
153628
|
+
var _ref5 = (0, import_tds_react_native3.useDialog)(),
|
|
153629
|
+
openAlert = _ref5.openAlert;
|
|
153630
|
+
var openErrorAlert = (0, import_react7.useCallback)(_asyncToGenerator(function* () {
|
|
153631
|
+
yield openAlert({
|
|
153632
|
+
title: DEFAULT_ERROR.title,
|
|
153633
|
+
description: DEFAULT_ERROR.description
|
|
153634
|
+
});
|
|
153635
|
+
(0, import_react_native8.closeView)();
|
|
153636
|
+
}), [openAlert]);
|
|
153637
|
+
return {
|
|
153638
|
+
open: openErrorAlert
|
|
153639
|
+
};
|
|
153578
153640
|
};
|
|
153579
|
-
var
|
|
153580
|
-
var
|
|
153581
|
-
var
|
|
153582
|
-
var
|
|
153583
|
-
|
|
153584
|
-
|
|
153585
|
-
|
|
153586
|
-
|
|
153587
|
-
|
|
153588
|
-
|
|
153589
|
-
callbackId =
|
|
153590
|
-
|
|
153641
|
+
var import_react8 = _$$_REQUIRE(_dependencyMap[10], "react");
|
|
153642
|
+
var import_react_native9 = _$$_REQUIRE(_dependencyMap[7], "@granite-js/react-native");
|
|
153643
|
+
var import_native_modules5 = _$$_REQUIRE(_dependencyMap[6], "@apps-in-toss/native-modules");
|
|
153644
|
+
var _INTERNAL__onVisibilityChangedByTransparentServiceWeb = import_native_modules5.onVisibilityChangedByTransparentServiceWeb;
|
|
153645
|
+
var openTransparentWebView = function openTransparentWebView(_ref7) {
|
|
153646
|
+
var webUrl = _ref7.webUrl,
|
|
153647
|
+
_ref7$cleanupWhenDism = _ref7.cleanupWhenDismissed,
|
|
153648
|
+
cleanupWhenDismissed = _ref7$cleanupWhenDism === void 0 ? true : _ref7$cleanupWhenDism,
|
|
153649
|
+
_onEvent = _ref7.onEvent,
|
|
153650
|
+
_onError = _ref7.onError,
|
|
153651
|
+
_ref7$callbackId = _ref7.callbackId,
|
|
153652
|
+
callbackId = _ref7$callbackId === void 0 ? "fn" : _ref7$callbackId,
|
|
153653
|
+
params = _ref7.params;
|
|
153591
153654
|
var url = new URL("supertoss://transparent-service-web");
|
|
153592
153655
|
url.searchParams.set("url", webUrl);
|
|
153593
153656
|
url.searchParams.set("onVisibilityChangeCallback", callbackId);
|
|
153594
|
-
Object.entries(params != null ? params : {}).forEach(function (
|
|
153595
|
-
var
|
|
153596
|
-
key =
|
|
153597
|
-
value =
|
|
153657
|
+
Object.entries(params != null ? params : {}).forEach(function (_ref8) {
|
|
153658
|
+
var _ref9 = _slicedToArray(_ref8, 2),
|
|
153659
|
+
key = _ref9[0],
|
|
153660
|
+
value = _ref9[1];
|
|
153598
153661
|
url.searchParams.set(key, value);
|
|
153599
153662
|
});
|
|
153600
153663
|
var cleanup = _INTERNAL__onVisibilityChangedByTransparentServiceWeb({
|
|
@@ -153612,109 +153675,167 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153612
153675
|
}
|
|
153613
153676
|
}
|
|
153614
153677
|
});
|
|
153615
|
-
(0,
|
|
153678
|
+
(0, import_react_native9.openURL)(url.toString());
|
|
153616
153679
|
};
|
|
153617
|
-
var
|
|
153618
|
-
var
|
|
153619
|
-
_ref7 = _slicedToArray(_ref6, 2),
|
|
153620
|
-
profileData = _ref7[0],
|
|
153621
|
-
setProfileData = _ref7[1];
|
|
153622
|
-
var _ref8 = (0, import_react6.useState)(true),
|
|
153623
|
-
_ref9 = _slicedToArray(_ref8, 2),
|
|
153624
|
-
isProfileDataLoading = _ref9[0],
|
|
153625
|
-
setIsProfileDataLoading = _ref9[1];
|
|
153626
|
-
var _ref10 = (0, import_react6.useState)(false),
|
|
153680
|
+
var useTransparentWebview = function useTransparentWebview() {
|
|
153681
|
+
var _ref10 = (0, import_react8.useState)(false),
|
|
153627
153682
|
_ref11 = _slicedToArray(_ref10, 2),
|
|
153628
|
-
|
|
153629
|
-
|
|
153630
|
-
var
|
|
153631
|
-
|
|
153632
|
-
var
|
|
153633
|
-
|
|
153634
|
-
|
|
153635
|
-
|
|
153636
|
-
setIsWebviewLoading = _ref13[1];
|
|
153637
|
-
var isCompletedProfileFlow = (0, import_react6.useRef)(false);
|
|
153638
|
-
var _ref14 = (0, import_tds_react_native3.useDialog)(),
|
|
153639
|
-
openAlert = _ref14.openAlert,
|
|
153640
|
-
openConfirm = _ref14.openConfirm;
|
|
153641
|
-
var _useGameProfileToast = useGameProfileToast(),
|
|
153642
|
-
openGameProfileToast = _useGameProfileToast.openGameProfileToast;
|
|
153643
|
-
var openErrorAlert = (0, import_react6.useCallback)(_asyncToGenerator(function* () {
|
|
153644
|
-
yield openAlert({
|
|
153645
|
-
title: DEFAULT_ERROR.title,
|
|
153646
|
-
description: DEFAULT_ERROR.description
|
|
153647
|
-
});
|
|
153648
|
-
(0, import_react_native8.closeView)();
|
|
153649
|
-
}), [openAlert]);
|
|
153650
|
-
var openProfileWebview = (0, import_react6.useCallback)(function () {
|
|
153683
|
+
isWebviewLoading = _ref11[0],
|
|
153684
|
+
setIsWebviewLoading = _ref11[1];
|
|
153685
|
+
var _useErrorAlert = useErrorAlert(),
|
|
153686
|
+
openErrorAlert = _useErrorAlert.open;
|
|
153687
|
+
var _openTransparentWebview = (0, import_react8.useCallback)(function (_ref12) {
|
|
153688
|
+
var webUrl = _ref12.webUrl,
|
|
153689
|
+
onClose = _ref12.onClose,
|
|
153690
|
+
_onError2 = _ref12.onError;
|
|
153651
153691
|
if (isWebviewLoading) {
|
|
153652
153692
|
return;
|
|
153653
153693
|
}
|
|
153654
153694
|
setIsWebviewLoading(true);
|
|
153655
153695
|
openTransparentWebView({
|
|
153656
|
-
webUrl:
|
|
153696
|
+
webUrl: webUrl,
|
|
153657
153697
|
onEvent: function () {
|
|
153658
153698
|
var _onEvent2 = _asyncToGenerator(function* (isClosedTransparentWebView) {
|
|
153659
153699
|
if (isClosedTransparentWebView) {
|
|
153660
|
-
|
|
153661
|
-
|
|
153662
|
-
setIsProfileDataRefetching(true);
|
|
153663
|
-
var data = yield (0, import_native_modules5.getGameCenterGameProfile)();
|
|
153664
|
-
setProfileData(data);
|
|
153665
|
-
setIsProfileDataRefetching(false);
|
|
153666
|
-
if ((data == null ? void 0 : data.statusCode) === "SUCCESS") {
|
|
153667
|
-
openGameProfileToast(data.nickname, data.profileImageUri);
|
|
153668
|
-
}
|
|
153669
|
-
} catch (_) {
|
|
153670
|
-
setIsProfileDataRefetching(false);
|
|
153671
|
-
openErrorAlert();
|
|
153672
|
-
}
|
|
153700
|
+
setIsWebviewLoading(false);
|
|
153701
|
+
onClose == null ? void 0 : onClose();
|
|
153673
153702
|
}
|
|
153674
153703
|
});
|
|
153675
|
-
function onEvent(
|
|
153704
|
+
function onEvent(_x2) {
|
|
153676
153705
|
return _onEvent2.apply(this, arguments);
|
|
153677
153706
|
}
|
|
153678
153707
|
return onEvent;
|
|
153679
153708
|
}(),
|
|
153680
|
-
onError: function onError() {
|
|
153681
|
-
|
|
153709
|
+
onError: function onError(error) {
|
|
153710
|
+
setIsWebviewLoading(false);
|
|
153711
|
+
if (_onError2) {
|
|
153712
|
+
_onError2(error);
|
|
153713
|
+
} else {
|
|
153714
|
+
openErrorAlert();
|
|
153715
|
+
}
|
|
153682
153716
|
}
|
|
153683
153717
|
});
|
|
153684
|
-
}, [isWebviewLoading,
|
|
153685
|
-
|
|
153686
|
-
|
|
153687
|
-
|
|
153688
|
-
|
|
153689
|
-
|
|
153690
|
-
|
|
153691
|
-
|
|
153692
|
-
|
|
153693
|
-
|
|
153694
|
-
|
|
153695
|
-
|
|
153718
|
+
}, [isWebviewLoading, openErrorAlert]);
|
|
153719
|
+
return {
|
|
153720
|
+
open: _openTransparentWebview
|
|
153721
|
+
};
|
|
153722
|
+
};
|
|
153723
|
+
var import_tds_react_native4 = _$$_REQUIRE(_dependencyMap[8], "@toss/tds-react-native");
|
|
153724
|
+
var import_private2 = _$$_REQUIRE(_dependencyMap[13], "@toss/tds-react-native/private");
|
|
153725
|
+
var import_react9 = _$$_REQUIRE(_dependencyMap[10], "react");
|
|
153726
|
+
var import_jsx_runtime2 = _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime");
|
|
153727
|
+
var useGameProfileToast = function useGameProfileToast() {
|
|
153728
|
+
var overlay = (0, import_private2.useOverlay)();
|
|
153729
|
+
var openGameProfileToast = (0, import_react9.useCallback)(function (nickname, profileImageUri) {
|
|
153730
|
+
return new Promise(function (resolve) {
|
|
153731
|
+
overlay.open(function (_ref13) {
|
|
153732
|
+
var isOpen = _ref13.isOpen,
|
|
153733
|
+
close = _ref13.close,
|
|
153734
|
+
exit = _ref13.exit;
|
|
153735
|
+
return (0, import_jsx_runtime2.jsx)(import_private2.ColorPreferenceProvider, {
|
|
153736
|
+
colorPreference: "dark",
|
|
153737
|
+
children: (0, import_jsx_runtime2.jsx)(import_private2.AdaptiveColorProvider, {
|
|
153738
|
+
children: (0, import_jsx_runtime2.jsx)(import_tds_react_native4.Toast, {
|
|
153739
|
+
open: isOpen,
|
|
153740
|
+
onClose: function onClose() {
|
|
153741
|
+
resolve();
|
|
153742
|
+
close();
|
|
153743
|
+
},
|
|
153744
|
+
onExited: exit,
|
|
153745
|
+
position: "top",
|
|
153746
|
+
text: nickname + "\uB2D8 \uBC18\uAC00\uC6CC\uC694!",
|
|
153747
|
+
icon: (0, import_jsx_runtime2.jsx)(import_tds_react_native4.Asset.Image, {
|
|
153748
|
+
style: {
|
|
153749
|
+
borderRadius: 64,
|
|
153750
|
+
overflow: "hidden"
|
|
153751
|
+
},
|
|
153752
|
+
frameShape: import_tds_react_native4.Asset.frameShape.CleanW32,
|
|
153753
|
+
source: {
|
|
153754
|
+
uri: profileImageUri
|
|
153755
|
+
}
|
|
153756
|
+
})
|
|
153757
|
+
})
|
|
153758
|
+
})
|
|
153759
|
+
});
|
|
153760
|
+
});
|
|
153696
153761
|
});
|
|
153697
|
-
|
|
153698
|
-
|
|
153699
|
-
|
|
153762
|
+
}, [overlay]);
|
|
153763
|
+
return {
|
|
153764
|
+
openGameProfileToast: openGameProfileToast
|
|
153765
|
+
};
|
|
153766
|
+
};
|
|
153767
|
+
var useGameCenterProfile = function useGameCenterProfile(isReadyForProfileUI) {
|
|
153768
|
+
var _ref14 = (0, import_react10.useState)(void 0),
|
|
153769
|
+
_ref15 = _slicedToArray(_ref14, 2),
|
|
153770
|
+
profileData = _ref15[0],
|
|
153771
|
+
setProfileData = _ref15[1];
|
|
153772
|
+
var _ref16 = (0, import_react10.useState)(true),
|
|
153773
|
+
_ref17 = _slicedToArray(_ref16, 2),
|
|
153774
|
+
isProfileDataLoading = _ref17[0],
|
|
153775
|
+
setIsProfileDataLoading = _ref17[1];
|
|
153776
|
+
var _ref18 = (0, import_react10.useState)(false),
|
|
153777
|
+
_ref19 = _slicedToArray(_ref18, 2),
|
|
153778
|
+
isProfileDataRefetching = _ref19[0],
|
|
153779
|
+
setIsProfileDataRefetching = _ref19[1];
|
|
153780
|
+
var shouldShowProfileLoadingOverlay = isProfileDataLoading && isReadyForProfileUI || isProfileDataRefetching;
|
|
153781
|
+
var shouldShowProfileNotFoundOverlay = (profileData == null ? void 0 : profileData.statusCode) === "PROFILE_NOT_FOUND" && isReadyForProfileUI && !isProfileDataRefetching;
|
|
153782
|
+
var canShowBottomSheetOrToast = !isProfileDataLoading && isReadyForProfileUI;
|
|
153783
|
+
var _useGameProfileToast = useGameProfileToast(),
|
|
153784
|
+
openGameProfileToast = _useGameProfileToast.openGameProfileToast;
|
|
153785
|
+
var _useErrorAlert2 = useErrorAlert(),
|
|
153786
|
+
openErrorAlert = _useErrorAlert2.open;
|
|
153787
|
+
var _useTransparentWebvie = useTransparentWebview(),
|
|
153788
|
+
openTransparentWebView2 = _useTransparentWebvie.open;
|
|
153789
|
+
var fetchProfileData = (0, import_react10.useCallback)(_asyncToGenerator(function* () {
|
|
153790
|
+
try {
|
|
153791
|
+
var data = yield (0, import_native_modules6.getGameCenterGameProfile)();
|
|
153792
|
+
setProfileData(data);
|
|
153793
|
+
setIsProfileDataLoading(false);
|
|
153794
|
+
} catch (_) {
|
|
153795
|
+
openErrorAlert();
|
|
153796
|
+
setIsProfileDataLoading(false);
|
|
153797
|
+
}
|
|
153798
|
+
}), [openErrorAlert]);
|
|
153799
|
+
var refetchProfileData = (0, import_react10.useCallback)(_asyncToGenerator(function* () {
|
|
153800
|
+
try {
|
|
153801
|
+
setIsProfileDataRefetching(true);
|
|
153802
|
+
var data = yield (0, import_native_modules6.getGameCenterGameProfile)();
|
|
153803
|
+
setProfileData(data);
|
|
153804
|
+
setIsProfileDataRefetching(false);
|
|
153805
|
+
if ((data == null ? void 0 : data.statusCode) === "SUCCESS") {
|
|
153806
|
+
openGameProfileToast(data.nickname, data.profileImageUri);
|
|
153807
|
+
}
|
|
153808
|
+
} catch (_) {
|
|
153809
|
+
setIsProfileDataRefetching(false);
|
|
153810
|
+
openErrorAlert();
|
|
153700
153811
|
}
|
|
153701
|
-
|
|
153702
|
-
|
|
153703
|
-
|
|
153812
|
+
}), [openErrorAlert, openGameProfileToast]);
|
|
153813
|
+
var openProfileWebview = (0, import_react10.useCallback)(function () {
|
|
153814
|
+
openTransparentWebView2({
|
|
153815
|
+
webUrl: GAME_PROFILE_WEBVIEW_URL + "?appName=" + getAppName() + "&referrer=appsintoss." + getAppName(),
|
|
153816
|
+
onClose: function () {
|
|
153817
|
+
var _onClose = _asyncToGenerator(function* () {
|
|
153818
|
+
refetchProfileData();
|
|
153819
|
+
});
|
|
153820
|
+
function onClose() {
|
|
153821
|
+
return _onClose.apply(this, arguments);
|
|
153822
|
+
}
|
|
153823
|
+
return onClose;
|
|
153824
|
+
}()
|
|
153825
|
+
});
|
|
153826
|
+
}, [openTransparentWebView2, refetchProfileData]);
|
|
153704
153827
|
return {
|
|
153705
153828
|
profileData: profileData,
|
|
153706
153829
|
isProfileDataLoading: isProfileDataLoading,
|
|
153707
|
-
|
|
153708
|
-
shouldShowLoadingOverlay: shouldShowLoadingOverlay,
|
|
153830
|
+
shouldShowProfileLoadingOverlay: shouldShowProfileLoadingOverlay,
|
|
153709
153831
|
shouldShowProfileNotFoundOverlay: shouldShowProfileNotFoundOverlay,
|
|
153710
153832
|
canShowBottomSheetOrToast: canShowBottomSheetOrToast,
|
|
153711
|
-
isCompletedProfileFlow: isCompletedProfileFlow,
|
|
153712
|
-
updateAppToSupportedMinVersion: updateAppToSupportedMinVersion,
|
|
153713
153833
|
setIsProfileDataLoading: setIsProfileDataLoading,
|
|
153714
153834
|
openProfileWebview: openProfileWebview,
|
|
153715
153835
|
setProfileData: setProfileData,
|
|
153716
153836
|
openErrorAlert: openErrorAlert,
|
|
153717
|
-
openGameProfileToast: openGameProfileToast
|
|
153837
|
+
openGameProfileToast: openGameProfileToast,
|
|
153838
|
+
fetchProfileData: fetchProfileData
|
|
153718
153839
|
};
|
|
153719
153840
|
};
|
|
153720
153841
|
var Z_INDEX = {
|
|
@@ -153722,52 +153843,40 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153722
153843
|
CLOSE_BUTTON: 9999
|
|
153723
153844
|
};
|
|
153724
153845
|
var import_jsx_runtime3 = _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime");
|
|
153725
|
-
var
|
|
153726
|
-
var children =
|
|
153727
|
-
isReadyForProfileUI =
|
|
153846
|
+
var GameInitializer = function GameInitializer(_ref22) {
|
|
153847
|
+
var children = _ref22.children,
|
|
153848
|
+
isReadyForProfileUI = _ref22.isReadyForProfileUI;
|
|
153728
153849
|
var _useGameCenterProfile = useGameCenterProfile(isReadyForProfileUI),
|
|
153729
153850
|
profileData = _useGameCenterProfile.profileData,
|
|
153730
|
-
|
|
153731
|
-
shouldShowLoadingOverlay = _useGameCenterProfile.shouldShowLoadingOverlay,
|
|
153851
|
+
shouldShowProfileLoadingOverlay = _useGameCenterProfile.shouldShowProfileLoadingOverlay,
|
|
153732
153852
|
shouldShowProfileNotFoundOverlay = _useGameCenterProfile.shouldShowProfileNotFoundOverlay,
|
|
153733
153853
|
canShowBottomSheetOrToast = _useGameCenterProfile.canShowBottomSheetOrToast,
|
|
153734
|
-
isCompletedProfileFlow = _useGameCenterProfile.isCompletedProfileFlow,
|
|
153735
153854
|
openProfileWebview = _useGameCenterProfile.openProfileWebview,
|
|
153736
|
-
|
|
153737
|
-
|
|
153738
|
-
|
|
153739
|
-
|
|
153740
|
-
|
|
153741
|
-
(0,
|
|
153742
|
-
|
|
153743
|
-
var getProfileData = function () {
|
|
153744
|
-
var _ref18 = _asyncToGenerator(function* () {
|
|
153745
|
-
var data = yield (0, import_native_modules6.getGameCenterGameProfile)();
|
|
153746
|
-
setProfileData(data);
|
|
153747
|
-
setIsProfileDataLoading(false);
|
|
153748
|
-
});
|
|
153749
|
-
return function getProfileData() {
|
|
153750
|
-
return _ref18.apply(this, arguments);
|
|
153751
|
-
};
|
|
153752
|
-
}();
|
|
153753
|
-
getProfileData();
|
|
153754
|
-
} catch (_) {
|
|
153755
|
-
openErrorAlert();
|
|
153756
|
-
setIsProfileDataLoading(false);
|
|
153757
|
-
}
|
|
153855
|
+
openGameProfileToast = _useGameCenterProfile.openGameProfileToast,
|
|
153856
|
+
fetchProfileData = _useGameCenterProfile.fetchProfileData;
|
|
153857
|
+
var isCompletedFlow = (0, import_react11.useRef)(false);
|
|
153858
|
+
var _useAppUpdateDialog = useAppUpdateDialog(),
|
|
153859
|
+
openAppUpdateDialog = _useAppUpdateDialog.open;
|
|
153860
|
+
(0, import_react11.useEffect)(function () {
|
|
153861
|
+
fetchProfileData();
|
|
153758
153862
|
}, []);
|
|
153759
|
-
(0,
|
|
153863
|
+
(0, import_react11.useEffect)(function () {
|
|
153760
153864
|
var handleGameProfileFlow = function () {
|
|
153761
|
-
var
|
|
153865
|
+
var _ref23 = _asyncToGenerator(function* () {
|
|
153762
153866
|
if (!canShowBottomSheetOrToast) {
|
|
153763
153867
|
return;
|
|
153764
153868
|
}
|
|
153765
|
-
if (
|
|
153869
|
+
if (isCompletedFlow.current) {
|
|
153766
153870
|
return;
|
|
153767
153871
|
}
|
|
153768
|
-
|
|
153769
|
-
if (!(0,
|
|
153770
|
-
|
|
153872
|
+
isCompletedFlow.current = true;
|
|
153873
|
+
if (!(0, import_native_modules7.isMinVersionSupported)(GAME_MIN_VERSION)) {
|
|
153874
|
+
openAppUpdateDialog({
|
|
153875
|
+
title: (0, import_es_hangul.josa)(getAppsInTossGlobals().brandDisplayName, "\uC744/\uB97C") + " \uD558\uB824\uBA74 \n\uC571\uC744 \uC5C5\uB370\uC774\uD2B8\uD574\uC8FC\uC138\uC694",
|
|
153876
|
+
onDismiss: function onDismiss() {
|
|
153877
|
+
(0, import_react_native10.closeView)();
|
|
153878
|
+
}
|
|
153879
|
+
});
|
|
153771
153880
|
return;
|
|
153772
153881
|
}
|
|
153773
153882
|
if ((profileData == null ? void 0 : profileData.statusCode) === "SUCCESS") {
|
|
@@ -153779,42 +153888,47 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153779
153888
|
}
|
|
153780
153889
|
});
|
|
153781
153890
|
return function handleGameProfileFlow() {
|
|
153782
|
-
return
|
|
153891
|
+
return _ref23.apply(this, arguments);
|
|
153783
153892
|
};
|
|
153784
153893
|
}();
|
|
153785
153894
|
handleGameProfileFlow();
|
|
153786
|
-
}, [canShowBottomSheetOrToast,
|
|
153787
|
-
if (!(0,
|
|
153895
|
+
}, [canShowBottomSheetOrToast, isCompletedFlow, openAppUpdateDialog, openGameProfileToast, openProfileWebview, profileData]);
|
|
153896
|
+
if (!(0, import_native_modules7.isMinVersionSupported)(GAME_MIN_VERSION)) {
|
|
153788
153897
|
return (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, {
|
|
153789
|
-
children: [(0, import_jsx_runtime3.jsx)(
|
|
153898
|
+
children: [(0, import_jsx_runtime3.jsx)(import_react_native11.View, {
|
|
153790
153899
|
style: {
|
|
153791
153900
|
flex: 1,
|
|
153792
153901
|
position: "relative"
|
|
153793
153902
|
},
|
|
153794
153903
|
children: children
|
|
153795
|
-
}), (0, import_jsx_runtime3.jsx)(
|
|
153904
|
+
}), (0, import_jsx_runtime3.jsx)(import_react_native11.Pressable, {
|
|
153796
153905
|
style: Object.assign({}, overlayStyle),
|
|
153797
153906
|
onPress: function onPress() {
|
|
153798
|
-
|
|
153907
|
+
openAppUpdateDialog({
|
|
153908
|
+
title: (0, import_es_hangul.josa)(getAppsInTossGlobals().brandDisplayName, "\uC744/\uB97C") + " \uD558\uB824\uBA74 \n\uC571\uC744 \uC5C5\uB370\uC774\uD2B8\uD574\uC8FC\uC138\uC694",
|
|
153909
|
+
onDismiss: function onDismiss() {
|
|
153910
|
+
(0, import_react_native10.closeView)();
|
|
153911
|
+
}
|
|
153912
|
+
});
|
|
153799
153913
|
}
|
|
153800
153914
|
})]
|
|
153801
153915
|
});
|
|
153802
153916
|
}
|
|
153803
|
-
if (
|
|
153917
|
+
if (shouldShowProfileLoadingOverlay) {
|
|
153804
153918
|
return (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, {
|
|
153805
|
-
children: [(0, import_jsx_runtime3.jsx)(
|
|
153919
|
+
children: [(0, import_jsx_runtime3.jsx)(import_react_native11.View, {
|
|
153806
153920
|
style: {
|
|
153807
153921
|
flex: 1,
|
|
153808
153922
|
position: "relative"
|
|
153809
153923
|
},
|
|
153810
153924
|
children: children
|
|
153811
|
-
}), (0, import_jsx_runtime3.jsx)(
|
|
153925
|
+
}), (0, import_jsx_runtime3.jsx)(import_react_native11.View, {
|
|
153812
153926
|
style: Object.assign({}, overlayStyle, {
|
|
153813
153927
|
justifyContent: "center",
|
|
153814
153928
|
alignItems: "center",
|
|
153815
153929
|
backgroundColor: "rgba(0, 0, 0, 0.2)"
|
|
153816
153930
|
}),
|
|
153817
|
-
children: (0, import_jsx_runtime3.jsx)(
|
|
153931
|
+
children: (0, import_jsx_runtime3.jsx)(import_tds_react_native5.Loader, {
|
|
153818
153932
|
size: "large",
|
|
153819
153933
|
type: "light"
|
|
153820
153934
|
})
|
|
@@ -153823,13 +153937,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153823
153937
|
}
|
|
153824
153938
|
if (shouldShowProfileNotFoundOverlay) {
|
|
153825
153939
|
return (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, {
|
|
153826
|
-
children: [(0, import_jsx_runtime3.jsx)(
|
|
153940
|
+
children: [(0, import_jsx_runtime3.jsx)(import_react_native11.View, {
|
|
153827
153941
|
style: {
|
|
153828
153942
|
flex: 1,
|
|
153829
153943
|
position: "relative"
|
|
153830
153944
|
},
|
|
153831
153945
|
children: children
|
|
153832
|
-
}), shouldShowProfileNotFoundOverlay && (0, import_jsx_runtime3.jsx)(
|
|
153946
|
+
}), shouldShowProfileNotFoundOverlay && (0, import_jsx_runtime3.jsx)(import_react_native11.Pressable, {
|
|
153833
153947
|
style: Object.assign({}, overlayStyle),
|
|
153834
153948
|
onPress: function onPress() {
|
|
153835
153949
|
openProfileWebview();
|
|
@@ -153838,7 +153952,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153838
153952
|
});
|
|
153839
153953
|
}
|
|
153840
153954
|
return (0, import_jsx_runtime3.jsx)(import_jsx_runtime3.Fragment, {
|
|
153841
|
-
children: (0, import_jsx_runtime3.jsx)(
|
|
153955
|
+
children: (0, import_jsx_runtime3.jsx)(import_react_native11.View, {
|
|
153842
153956
|
style: {
|
|
153843
153957
|
flex: 1,
|
|
153844
153958
|
position: "relative"
|
|
@@ -153856,33 +153970,33 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153856
153970
|
zIndex: Z_INDEX.PROFILE_OVERLAY
|
|
153857
153971
|
};
|
|
153858
153972
|
var import_private5 = _$$_REQUIRE(_dependencyMap[13], "@toss/tds-react-native/private");
|
|
153859
|
-
var
|
|
153860
|
-
var
|
|
153973
|
+
var import_react12 = _$$_REQUIRE(_dependencyMap[10], "react");
|
|
153974
|
+
var import_react_native12 = _$$_REQUIRE(_dependencyMap[9], "react-native");
|
|
153861
153975
|
function useHardwareBackPress(handler) {
|
|
153862
|
-
(0,
|
|
153976
|
+
(0, import_react12.useEffect)(function () {
|
|
153863
153977
|
var handleBackPress = function handleBackPress() {
|
|
153864
153978
|
handler();
|
|
153865
153979
|
return true;
|
|
153866
153980
|
};
|
|
153867
|
-
|
|
153981
|
+
import_react_native12.BackHandler.addEventListener("hardwareBackPress", handleBackPress);
|
|
153868
153982
|
return function () {
|
|
153869
|
-
return
|
|
153983
|
+
return import_react_native12.BackHandler.removeEventListener("hardwareBackPress", handleBackPress);
|
|
153870
153984
|
};
|
|
153871
153985
|
}, [handler]);
|
|
153872
153986
|
}
|
|
153873
|
-
var
|
|
153874
|
-
var
|
|
153875
|
-
var
|
|
153987
|
+
var import_react_native14 = _$$_REQUIRE(_dependencyMap[7], "@granite-js/react-native");
|
|
153988
|
+
var import_react14 = _$$_REQUIRE(_dependencyMap[10], "react");
|
|
153989
|
+
var import_tds_react_native6 = _$$_REQUIRE(_dependencyMap[8], "@toss/tds-react-native");
|
|
153876
153990
|
var import_es_hangul2 = _$$_REQUIRE(_dependencyMap[12], "es-hangul");
|
|
153877
|
-
var
|
|
153991
|
+
var import_react13 = _$$_REQUIRE(_dependencyMap[10], "react");
|
|
153878
153992
|
function useCloseConfirm() {
|
|
153879
153993
|
var _getAppsInTossGlobals = getAppsInTossGlobals(),
|
|
153880
153994
|
brandDisplayName = _getAppsInTossGlobals.brandDisplayName;
|
|
153881
|
-
var
|
|
153882
|
-
openConfirm =
|
|
153883
|
-
return (0,
|
|
153884
|
-
var
|
|
153885
|
-
var onEntered =
|
|
153995
|
+
var _ref24 = (0, import_tds_react_native6.useDialog)(),
|
|
153996
|
+
openConfirm = _ref24.openConfirm;
|
|
153997
|
+
return (0, import_react13.useCallback)(function () {
|
|
153998
|
+
var _ref26 = _asyncToGenerator(function* (_ref25) {
|
|
153999
|
+
var onEntered = _ref25.onEntered;
|
|
153886
154000
|
return yield openConfirm({
|
|
153887
154001
|
title: (0, import_es_hangul2.josa)(brandDisplayName, "\uC744/\uB97C") + " \uC885\uB8CC\uD560\uAE4C\uC694?",
|
|
153888
154002
|
leftButton: "\uCDE8\uC18C",
|
|
@@ -153891,13 +154005,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153891
154005
|
onEntered: onEntered
|
|
153892
154006
|
});
|
|
153893
154007
|
});
|
|
153894
|
-
return function (
|
|
153895
|
-
return
|
|
154008
|
+
return function (_x3) {
|
|
154009
|
+
return _ref26.apply(this, arguments);
|
|
153896
154010
|
};
|
|
153897
154011
|
}(), [brandDisplayName, openConfirm]);
|
|
153898
154012
|
}
|
|
153899
|
-
var
|
|
153900
|
-
var
|
|
154013
|
+
var import_native_modules8 = _$$_REQUIRE(_dependencyMap[6], "@apps-in-toss/native-modules");
|
|
154014
|
+
var import_react_native13 = _$$_REQUIRE(_dependencyMap[7], "@granite-js/react-native");
|
|
153901
154015
|
var NAVI_BAR_IMPRESSION_SCHEMA_ID = 1596837;
|
|
153902
154016
|
var NAVI_BAR_IMPRESSION_LOG_NAME = "appsintoss_app_visit__common_module::impression__navigation_bar";
|
|
153903
154017
|
var CLOSE_POPUP_SHOW_SCHEMA_ID = 1644490;
|
|
@@ -153912,10 +154026,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153912
154026
|
var referrer = useReferrer();
|
|
153913
154027
|
var baseParams = {
|
|
153914
154028
|
referrer: referrer,
|
|
153915
|
-
app_name:
|
|
154029
|
+
app_name: import_react_native13.Granite.appName
|
|
153916
154030
|
};
|
|
153917
154031
|
var logNavBarImpression = function logNavBarImpression(naviBarConfig) {
|
|
153918
|
-
|
|
154032
|
+
import_native_modules8.INTERNAL__module.tossCoreEventLog({
|
|
153919
154033
|
log_name: NAVI_BAR_IMPRESSION_LOG_NAME,
|
|
153920
154034
|
log_type: "event",
|
|
153921
154035
|
params: Object.assign({}, naviBarConfig, baseParams, {
|
|
@@ -153925,7 +154039,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153925
154039
|
});
|
|
153926
154040
|
};
|
|
153927
154041
|
var logHomeButtonClick = function logHomeButtonClick() {
|
|
153928
|
-
|
|
154042
|
+
import_native_modules8.INTERNAL__module.tossCoreEventLog({
|
|
153929
154043
|
log_name: HOME_BUTTON_CLICK_LOG_NAME,
|
|
153930
154044
|
log_type: "event",
|
|
153931
154045
|
params: Object.assign({}, baseParams, {
|
|
@@ -153935,7 +154049,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153935
154049
|
});
|
|
153936
154050
|
};
|
|
153937
154051
|
var logCloseButtonClick = function logCloseButtonClick() {
|
|
153938
|
-
|
|
154052
|
+
import_native_modules8.INTERNAL__module.tossCoreEventLog({
|
|
153939
154053
|
log_name: CLOSE_BUTTON_CLICK_LOG_NAME,
|
|
153940
154054
|
log_type: "event",
|
|
153941
154055
|
params: Object.assign({}, baseParams, {
|
|
@@ -153945,7 +154059,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153945
154059
|
});
|
|
153946
154060
|
};
|
|
153947
154061
|
var logClosePopupShow = function logClosePopupShow() {
|
|
153948
|
-
|
|
154062
|
+
import_native_modules8.INTERNAL__module.tossCoreEventLog({
|
|
153949
154063
|
log_name: CLOSE_POPUP_SHOW_LOG_NAME,
|
|
153950
154064
|
log_type: "popup",
|
|
153951
154065
|
params: Object.assign({}, baseParams, {
|
|
@@ -153954,7 +154068,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153954
154068
|
});
|
|
153955
154069
|
};
|
|
153956
154070
|
var logClosePopupCtaClick = function logClosePopupCtaClick(confirm) {
|
|
153957
|
-
|
|
154071
|
+
import_native_modules8.INTERNAL__module.tossCoreEventLog({
|
|
153958
154072
|
log_name: CLOSE_POPUP_CTA_CLICK_LOG_NAME,
|
|
153959
154073
|
log_type: "event",
|
|
153960
154074
|
params: Object.assign({}, baseParams, {
|
|
@@ -153973,26 +154087,26 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153973
154087
|
};
|
|
153974
154088
|
}
|
|
153975
154089
|
function useNavigationEvent() {
|
|
153976
|
-
var backEventContext = (0,
|
|
154090
|
+
var backEventContext = (0, import_react_native14.useBackEventContext)();
|
|
153977
154091
|
var logging = useNavigationBarLogging();
|
|
153978
|
-
var navigation = (0,
|
|
154092
|
+
var navigation = (0, import_react_native14.useNavigation)();
|
|
153979
154093
|
var closeConfirm = useCloseConfirm();
|
|
153980
154094
|
var _useCaptureExitLog2 = useCaptureExitLog(),
|
|
153981
154095
|
captureExitLog = _useCaptureExitLog2.captureExitLog;
|
|
153982
|
-
return (0,
|
|
154096
|
+
return (0, import_react14.useMemo)(function () {
|
|
153983
154097
|
var close = function () {
|
|
153984
|
-
var
|
|
154098
|
+
var _ref27 = _asyncToGenerator(function* () {
|
|
153985
154099
|
var hasConfirmed = yield closeConfirm({
|
|
153986
154100
|
onEntered: logging.closePopupShow
|
|
153987
154101
|
});
|
|
153988
154102
|
logging.closePopupCtaClick(hasConfirmed);
|
|
153989
154103
|
if (hasConfirmed) {
|
|
153990
154104
|
captureExitLog(Date.now());
|
|
153991
|
-
(0,
|
|
154105
|
+
(0, import_react_native14.closeView)();
|
|
153992
154106
|
}
|
|
153993
154107
|
});
|
|
153994
154108
|
return function close() {
|
|
153995
|
-
return
|
|
154109
|
+
return _ref27.apply(this, arguments);
|
|
153996
154110
|
};
|
|
153997
154111
|
}();
|
|
153998
154112
|
return {
|
|
@@ -154017,17 +154131,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154017
154131
|
}, [backEventContext, navigation, closeConfirm, logging, captureExitLog]);
|
|
154018
154132
|
}
|
|
154019
154133
|
var import_native_modules11 = _$$_REQUIRE(_dependencyMap[6], "@apps-in-toss/native-modules");
|
|
154020
|
-
var
|
|
154134
|
+
var import_react_native18 = _$$_REQUIRE(_dependencyMap[7], "@granite-js/react-native");
|
|
154021
154135
|
var import_tds_react_native8 = _$$_REQUIRE(_dependencyMap[8], "@toss/tds-react-native");
|
|
154022
154136
|
var import_private4 = _$$_REQUIRE(_dependencyMap[13], "@toss/tds-react-native/private");
|
|
154023
|
-
var
|
|
154024
|
-
var
|
|
154025
|
-
var
|
|
154026
|
-
var
|
|
154137
|
+
var import_react15 = _$$_REQUIRE(_dependencyMap[10], "react");
|
|
154138
|
+
var import_native_modules10 = _$$_REQUIRE(_dependencyMap[6], "@apps-in-toss/native-modules");
|
|
154139
|
+
var import_react_native16 = _$$_REQUIRE(_dependencyMap[7], "@granite-js/react-native");
|
|
154140
|
+
var import_tds_react_native7 = _$$_REQUIRE(_dependencyMap[8], "@toss/tds-react-native");
|
|
154027
154141
|
var import_private3 = _$$_REQUIRE(_dependencyMap[13], "@toss/tds-react-native/private");
|
|
154028
|
-
var
|
|
154029
|
-
var
|
|
154030
|
-
var
|
|
154142
|
+
var import_react_native17 = _$$_REQUIRE(_dependencyMap[9], "react-native");
|
|
154143
|
+
var import_native_modules9 = _$$_REQUIRE(_dependencyMap[6], "@apps-in-toss/native-modules");
|
|
154144
|
+
var import_react_native15 = _$$_REQUIRE(_dependencyMap[7], "@granite-js/react-native");
|
|
154031
154145
|
var BOTTOM_SHEET_SCHEMA_ID = 1596825;
|
|
154032
154146
|
var BOTTOM_SHEET_LOG_NAME = "appsintoss_app_visit__common_module::bottomsheet__more";
|
|
154033
154147
|
var BOTTOM_SHEET_OPEN_SCHEMA_ID = 1596829;
|
|
@@ -154040,10 +154154,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154040
154154
|
var referrer = useReferrer();
|
|
154041
154155
|
var baseParams = {
|
|
154042
154156
|
referrer: referrer,
|
|
154043
|
-
app_name:
|
|
154157
|
+
app_name: import_react_native15.Granite.appName
|
|
154044
154158
|
};
|
|
154045
154159
|
var logBottomSheetShow = function logBottomSheetShow() {
|
|
154046
|
-
|
|
154160
|
+
import_native_modules9.INTERNAL__module.tossCoreEventLog({
|
|
154047
154161
|
log_name: BOTTOM_SHEET_LOG_NAME,
|
|
154048
154162
|
log_type: "popup",
|
|
154049
154163
|
params: Object.assign({}, baseParams, {
|
|
@@ -154052,7 +154166,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154052
154166
|
});
|
|
154053
154167
|
};
|
|
154054
154168
|
var logBottomSheetOpen = function logBottomSheetOpen() {
|
|
154055
|
-
|
|
154169
|
+
import_native_modules9.INTERNAL__module.tossCoreEventLog({
|
|
154056
154170
|
log_name: BOTTOM_SHEET_OPEN_LOG_NAME,
|
|
154057
154171
|
log_type: "event",
|
|
154058
154172
|
params: Object.assign({}, baseParams, {
|
|
@@ -154062,7 +154176,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154062
154176
|
});
|
|
154063
154177
|
};
|
|
154064
154178
|
var logBottomSheetCloseClick = function logBottomSheetCloseClick() {
|
|
154065
|
-
|
|
154179
|
+
import_native_modules9.INTERNAL__module.tossCoreEventLog({
|
|
154066
154180
|
log_name: BOTTOM_SHEET_CLOSE_CLICK_LOG_NAME,
|
|
154067
154181
|
log_type: "event",
|
|
154068
154182
|
params: Object.assign({}, baseParams, {
|
|
@@ -154071,9 +154185,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154071
154185
|
})
|
|
154072
154186
|
});
|
|
154073
154187
|
};
|
|
154074
|
-
var logBottomSheetMenuClick = function logBottomSheetMenuClick(
|
|
154075
|
-
var title =
|
|
154076
|
-
|
|
154188
|
+
var logBottomSheetMenuClick = function logBottomSheetMenuClick(_ref28) {
|
|
154189
|
+
var title = _ref28.title;
|
|
154190
|
+
import_native_modules9.INTERNAL__module.tossCoreEventLog({
|
|
154077
154191
|
log_name: BOTTOM_SHEET_MENU_CLICK_LOG_NAME,
|
|
154078
154192
|
log_type: "event",
|
|
154079
154193
|
params: Object.assign({}, baseParams, {
|
|
@@ -154092,10 +154206,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154092
154206
|
}
|
|
154093
154207
|
function addParamsToUrl(url, params) {
|
|
154094
154208
|
var urlObj = new URL(url);
|
|
154095
|
-
for (var
|
|
154096
|
-
var
|
|
154097
|
-
var key =
|
|
154098
|
-
var value =
|
|
154209
|
+
for (var _ref29 of Object.entries(params)) {
|
|
154210
|
+
var _ref30 = _slicedToArray(_ref29, 2);
|
|
154211
|
+
var key = _ref30[0];
|
|
154212
|
+
var value = _ref30[1];
|
|
154099
154213
|
urlObj.searchParams.set(key, value);
|
|
154100
154214
|
}
|
|
154101
154215
|
return urlObj.toString();
|
|
@@ -154110,22 +154224,22 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154110
154224
|
var globals = getAppsInTossGlobals();
|
|
154111
154225
|
var adaptive = (0, import_private3.useAdaptive)();
|
|
154112
154226
|
var logging = useMoreButtonBottomSheetLogging();
|
|
154113
|
-
var initialScheme = (0,
|
|
154114
|
-
var isSandbox = (0,
|
|
154115
|
-
var
|
|
154116
|
-
openConfirm =
|
|
154227
|
+
var initialScheme = (0, import_react_native16.getSchemeUri)();
|
|
154228
|
+
var isSandbox = (0, import_native_modules10.getOperationalEnvironment)() === "sandbox";
|
|
154229
|
+
var _ref31 = (0, import_tds_react_native7.useDialog)(),
|
|
154230
|
+
openConfirm = _ref31.openConfirm;
|
|
154117
154231
|
var schemeForShare = addParamsToUrl(initialScheme, {
|
|
154118
154232
|
referrer: SHARE_SCHEME_REFERRER
|
|
154119
154233
|
});
|
|
154120
|
-
return (0, import_jsx_runtime4.jsx)(
|
|
154121
|
-
left: (0, import_jsx_runtime4.jsx)(
|
|
154234
|
+
return (0, import_jsx_runtime4.jsx)(import_tds_react_native7.ListRow, {
|
|
154235
|
+
left: (0, import_jsx_runtime4.jsx)(import_tds_react_native7.ListRow.Icon, {
|
|
154122
154236
|
color: globals.brandPrimaryColor,
|
|
154123
154237
|
source: {
|
|
154124
154238
|
uri: APP_SHARE_MENU_INFO.contactIconUrl
|
|
154125
154239
|
},
|
|
154126
154240
|
type: "background"
|
|
154127
154241
|
}),
|
|
154128
|
-
contents: (0, import_jsx_runtime4.jsx)(
|
|
154242
|
+
contents: (0, import_jsx_runtime4.jsx)(import_tds_react_native7.ListRow.Texts, {
|
|
154129
154243
|
type: "1RowTypeA",
|
|
154130
154244
|
top: APP_SHARE_MENU_INFO.contactItemName,
|
|
154131
154245
|
topProps: {
|
|
@@ -154146,7 +154260,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154146
154260
|
logging.menuClick({
|
|
154147
154261
|
title: APP_SHARE_MENU_INFO.contactItemName
|
|
154148
154262
|
});
|
|
154149
|
-
|
|
154263
|
+
import_react_native17.NativeModules.AppsInTossModule.shareWithScheme({
|
|
154150
154264
|
params: {
|
|
154151
154265
|
schemeURL: schemeForShare
|
|
154152
154266
|
}
|
|
@@ -154154,93 +154268,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154154
154268
|
}
|
|
154155
154269
|
});
|
|
154156
154270
|
}
|
|
154157
|
-
var import_native_modules10 = _$$_REQUIRE(_dependencyMap[6], "@apps-in-toss/native-modules");
|
|
154158
|
-
var import_react_native16 = _$$_REQUIRE(_dependencyMap[7], "@granite-js/react-native");
|
|
154159
|
-
var import_tds_react_native7 = _$$_REQUIRE(_dependencyMap[8], "@toss/tds-react-native");
|
|
154160
|
-
var import_react11 = _$$_REQUIRE(_dependencyMap[10], "react");
|
|
154161
|
-
function useAppUpdateDialog() {
|
|
154162
|
-
var _ref28 = (0, import_tds_react_native7.useDialog)(),
|
|
154163
|
-
openConfirm = _ref28.openConfirm;
|
|
154164
|
-
var logging = useAppUpdateDialogLogging();
|
|
154165
|
-
var openAppUpdateDialog = (0, import_react11.useCallback)(function () {
|
|
154166
|
-
var _ref30 = _asyncToGenerator(function* (_ref29) {
|
|
154167
|
-
var title = _ref29.title,
|
|
154168
|
-
description = _ref29.description,
|
|
154169
|
-
_ref29$leftButton = _ref29.leftButton,
|
|
154170
|
-
leftButton = _ref29$leftButton === void 0 ? "\uB2EB\uAE30" : _ref29$leftButton,
|
|
154171
|
-
_ref29$rightButton = _ref29.rightButton,
|
|
154172
|
-
rightButton = _ref29$rightButton === void 0 ? "\uC5C5\uB370\uC774\uD2B8\uD558\uAE30" : _ref29$rightButton;
|
|
154173
|
-
logging.show();
|
|
154174
|
-
var isConfirmed = yield openConfirm({
|
|
154175
|
-
title: title,
|
|
154176
|
-
description: description,
|
|
154177
|
-
leftButton: leftButton,
|
|
154178
|
-
rightButton: rightButton,
|
|
154179
|
-
closeOnDimmerClick: true
|
|
154180
|
-
});
|
|
154181
|
-
if (!isConfirmed) {
|
|
154182
|
-
logging.close();
|
|
154183
|
-
return;
|
|
154184
|
-
}
|
|
154185
|
-
logging.update();
|
|
154186
|
-
var STORE_SCHEME = getMarketLink();
|
|
154187
|
-
(0, import_react_native16.openURL)("supertoss://web?url=" + STORE_SCHEME + "&external=browser");
|
|
154188
|
-
});
|
|
154189
|
-
return function (_x3) {
|
|
154190
|
-
return _ref30.apply(this, arguments);
|
|
154191
|
-
};
|
|
154192
|
-
}(), [logging, openConfirm]);
|
|
154193
|
-
return {
|
|
154194
|
-
open: openAppUpdateDialog
|
|
154195
|
-
};
|
|
154196
|
-
}
|
|
154197
|
-
var UPDATE_DIALOG_SCHEMA_ID = 1634992;
|
|
154198
|
-
var UPDATE_DIALOG_LOG_NAME = "appsintoss_app_visit__common_module::bottomsheet__app_update";
|
|
154199
|
-
var UPDATE_DIALOG_CTA_CLICK_SCHEMA_ID = 1634996;
|
|
154200
|
-
var UPDATE_DIALOG_CTA_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::bottomsheet__app_update::click__cta";
|
|
154201
|
-
function useAppUpdateDialogLogging() {
|
|
154202
|
-
var referrer = useReferrer();
|
|
154203
|
-
var baseParams = {
|
|
154204
|
-
referrer: referrer,
|
|
154205
|
-
app_name: import_react_native16.Granite.appName
|
|
154206
|
-
};
|
|
154207
|
-
var logUpdateClick = function logUpdateClick() {
|
|
154208
|
-
import_native_modules10.INTERNAL__module.tossCoreEventLog({
|
|
154209
|
-
log_name: UPDATE_DIALOG_CTA_CLICK_LOG_NAME,
|
|
154210
|
-
log_type: "event",
|
|
154211
|
-
params: Object.assign({}, baseParams, {
|
|
154212
|
-
schema_id: UPDATE_DIALOG_CTA_CLICK_SCHEMA_ID,
|
|
154213
|
-
event_type: "click",
|
|
154214
|
-
button_type: "update"
|
|
154215
|
-
})
|
|
154216
|
-
});
|
|
154217
|
-
};
|
|
154218
|
-
var logCloseClick = function logCloseClick() {
|
|
154219
|
-
import_native_modules10.INTERNAL__module.tossCoreEventLog({
|
|
154220
|
-
log_name: UPDATE_DIALOG_CTA_CLICK_LOG_NAME,
|
|
154221
|
-
log_type: "event",
|
|
154222
|
-
params: Object.assign({}, baseParams, {
|
|
154223
|
-
schema_id: UPDATE_DIALOG_CTA_CLICK_SCHEMA_ID,
|
|
154224
|
-
event_type: "click",
|
|
154225
|
-
button_type: "close"
|
|
154226
|
-
})
|
|
154227
|
-
});
|
|
154228
|
-
};
|
|
154229
|
-
var logDialogShow = function logDialogShow() {
|
|
154230
|
-
import_native_modules10.INTERNAL__module.tossCoreEventLog({
|
|
154231
|
-
log_name: UPDATE_DIALOG_LOG_NAME,
|
|
154232
|
-
log_type: "popup",
|
|
154233
|
-
params: Object.assign({}, baseParams, {
|
|
154234
|
-
schema_id: UPDATE_DIALOG_SCHEMA_ID
|
|
154235
|
-
})
|
|
154236
|
-
});
|
|
154237
|
-
};
|
|
154238
|
-
return {
|
|
154239
|
-
update: logUpdateClick,
|
|
154240
|
-
close: logCloseClick,
|
|
154241
|
-
show: logDialogShow
|
|
154242
|
-
};
|
|
154243
|
-
}
|
|
154244
154271
|
function ensureValue(value, name) {
|
|
154245
154272
|
if (value === void 0) {
|
|
154246
154273
|
throw new Error(name + " is required");
|
|
@@ -154262,23 +154289,23 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154262
154289
|
function useMoreButtonBottomSheet() {
|
|
154263
154290
|
var globals = getAppsInTossGlobals();
|
|
154264
154291
|
var adaptive = (0, import_private4.useAdaptive)();
|
|
154265
|
-
var
|
|
154266
|
-
|
|
154267
|
-
itemList =
|
|
154268
|
-
setItemList =
|
|
154292
|
+
var _ref32 = (0, import_react15.useState)([]),
|
|
154293
|
+
_ref33 = _slicedToArray(_ref32, 2),
|
|
154294
|
+
itemList = _ref33[0],
|
|
154295
|
+
setItemList = _ref33[1];
|
|
154269
154296
|
var appUpdateDialog = useAppUpdateDialog();
|
|
154270
154297
|
var logging = useMoreButtonBottomSheetLogging();
|
|
154271
154298
|
var overlay = (0, import_private4.useOverlay)();
|
|
154272
154299
|
var title = ensureValue(globals.brandDisplayName, "displayName");
|
|
154273
154300
|
var isBottomSheetSupported = (0, import_native_modules11.isMinVersionSupported)(MIN_VERSION.BOTTOM_SHEET);
|
|
154274
154301
|
var isShareListMenuSupported = (0, import_native_modules11.isMinVersionSupported)(MIN_VERSION.SHARE_LIST_MENU);
|
|
154275
|
-
(0,
|
|
154302
|
+
(0, import_react15.useEffect)(function () {
|
|
154276
154303
|
if (!isBottomSheetSupported) {
|
|
154277
154304
|
return;
|
|
154278
154305
|
}
|
|
154279
154306
|
import_native_modules11.INTERNAL__appBridgeHandler.invokeAppBridgeMethod(APP_BRIDGE_METHOD_NAME, {}, {
|
|
154280
|
-
onSuccess: function onSuccess(
|
|
154281
|
-
var items =
|
|
154307
|
+
onSuccess: function onSuccess(_ref34) {
|
|
154308
|
+
var items = _ref34.items;
|
|
154282
154309
|
return setItemList(items);
|
|
154283
154310
|
},
|
|
154284
154311
|
onError: function onError(error) {
|
|
@@ -154287,7 +154314,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154287
154314
|
});
|
|
154288
154315
|
}, [isBottomSheetSupported]);
|
|
154289
154316
|
var onClickHandler = function () {
|
|
154290
|
-
var
|
|
154317
|
+
var _ref35 = _asyncToGenerator(function* () {
|
|
154291
154318
|
logging.open();
|
|
154292
154319
|
if (!isBottomSheetSupported) {
|
|
154293
154320
|
yield appUpdateDialog.open({
|
|
@@ -154296,10 +154323,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154296
154323
|
});
|
|
154297
154324
|
return;
|
|
154298
154325
|
}
|
|
154299
|
-
overlay.open(function (
|
|
154300
|
-
var isOpen =
|
|
154301
|
-
exit =
|
|
154302
|
-
close =
|
|
154326
|
+
overlay.open(function (_ref36) {
|
|
154327
|
+
var isOpen = _ref36.isOpen,
|
|
154328
|
+
exit = _ref36.exit,
|
|
154329
|
+
close = _ref36.close;
|
|
154303
154330
|
var handleClose = function handleClose() {
|
|
154304
154331
|
logging.close();
|
|
154305
154332
|
close();
|
|
@@ -154349,7 +154376,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154349
154376
|
logging.menuClick({
|
|
154350
154377
|
title: item.contactItemName
|
|
154351
154378
|
});
|
|
154352
|
-
(0,
|
|
154379
|
+
(0, import_react_native18.openURL)(item.contactUri);
|
|
154353
154380
|
}
|
|
154354
154381
|
}, item.contactItemName);
|
|
154355
154382
|
}), isShareListMenuSupported && (0, import_jsx_runtime5.jsx)(AppShareListMenu, {})]
|
|
@@ -154359,17 +154386,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154359
154386
|
});
|
|
154360
154387
|
});
|
|
154361
154388
|
return function onClickHandler() {
|
|
154362
|
-
return
|
|
154389
|
+
return _ref35.apply(this, arguments);
|
|
154363
154390
|
};
|
|
154364
154391
|
}();
|
|
154365
154392
|
return {
|
|
154366
154393
|
open: onClickHandler
|
|
154367
154394
|
};
|
|
154368
154395
|
}
|
|
154369
|
-
function BottomSheetImpressionArea(
|
|
154370
|
-
var children =
|
|
154396
|
+
function BottomSheetImpressionArea(_ref37) {
|
|
154397
|
+
var children = _ref37.children;
|
|
154371
154398
|
var logging = useMoreButtonBottomSheetLogging();
|
|
154372
|
-
(0,
|
|
154399
|
+
(0, import_react15.useEffect)(function () {
|
|
154373
154400
|
logging.show();
|
|
154374
154401
|
}, [logging]);
|
|
154375
154402
|
return (0, import_jsx_runtime5.jsx)(import_jsx_runtime5.Fragment, {
|
|
@@ -154386,14 +154413,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154386
154413
|
return null;
|
|
154387
154414
|
}
|
|
154388
154415
|
}
|
|
154389
|
-
var
|
|
154416
|
+
var import_react16 = _$$_REQUIRE(_dependencyMap[10], "react");
|
|
154390
154417
|
var import_jsx_runtime6 = _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime");
|
|
154391
|
-
function NavigationBarImpressionArea(
|
|
154392
|
-
var children =
|
|
154393
|
-
withHomeButton =
|
|
154394
|
-
var hasLogged = (0,
|
|
154418
|
+
function NavigationBarImpressionArea(_ref38) {
|
|
154419
|
+
var children = _ref38.children,
|
|
154420
|
+
withHomeButton = _ref38.withHomeButton;
|
|
154421
|
+
var hasLogged = (0, import_react16.useRef)(false);
|
|
154395
154422
|
var logging = useNavigationBarLogging();
|
|
154396
|
-
(0,
|
|
154423
|
+
(0, import_react16.useEffect)(function () {
|
|
154397
154424
|
if (hasLogged.current === false) {
|
|
154398
154425
|
logging.navBarImpression({
|
|
154399
154426
|
home_icon_yn: withHomeButton ? "Y" : "N"
|
|
@@ -154440,7 +154467,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154440
154467
|
}
|
|
154441
154468
|
var import_tds_react_native9 = _$$_REQUIRE(_dependencyMap[8], "@toss/tds-react-native");
|
|
154442
154469
|
var import_private6 = _$$_REQUIRE(_dependencyMap[13], "@toss/tds-react-native/private");
|
|
154443
|
-
var
|
|
154470
|
+
var import_react_native19 = _$$_REQUIRE(_dependencyMap[9], "react-native");
|
|
154444
154471
|
var import_jsx_runtime8 = _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime");
|
|
154445
154472
|
function GameNavigationBar() {
|
|
154446
154473
|
var safeAreaTop = (0, import_private6.useSafeAreaTop)();
|
|
@@ -154456,10 +154483,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154456
154483
|
preference: {
|
|
154457
154484
|
type: "none"
|
|
154458
154485
|
}
|
|
154459
|
-
}), (0, import_jsx_runtime8.jsx)(
|
|
154486
|
+
}), (0, import_jsx_runtime8.jsx)(import_react_native19.View, {
|
|
154460
154487
|
style: {
|
|
154461
154488
|
width: "100%",
|
|
154462
|
-
height:
|
|
154489
|
+
height: import_react_native19.Platform.OS === "ios" ? 44 : 54,
|
|
154463
154490
|
flexDirection: "row",
|
|
154464
154491
|
alignItems: "center",
|
|
154465
154492
|
justifyContent: "flex-end",
|
|
@@ -154487,8 +154514,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154487
154514
|
__reExport(bridge_entry_exports, _$$_REQUIRE(_dependencyMap[15], "@apps-in-toss/native-modules/constant-bridges"));
|
|
154488
154515
|
__reExport(bridge_entry_exports, _$$_REQUIRE(_dependencyMap[16], "@apps-in-toss/native-modules/event-bridges"));
|
|
154489
154516
|
var import_jsx_runtime9 = _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime");
|
|
154490
|
-
function RNAppContainer(
|
|
154491
|
-
var children =
|
|
154517
|
+
function RNAppContainer(_ref39) {
|
|
154518
|
+
var children = _ref39.children;
|
|
154492
154519
|
var global2 = getAppsInTossGlobals();
|
|
154493
154520
|
switch (global2.appType) {
|
|
154494
154521
|
case "game":
|
|
@@ -154502,14 +154529,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154502
154529
|
});
|
|
154503
154530
|
}
|
|
154504
154531
|
}
|
|
154505
|
-
function GameAppContainer(
|
|
154506
|
-
var children =
|
|
154507
|
-
var
|
|
154508
|
-
|
|
154509
|
-
isEntryMessageExited =
|
|
154510
|
-
setIsEntryMessageExited =
|
|
154511
|
-
(0,
|
|
154512
|
-
if (
|
|
154532
|
+
function GameAppContainer(_ref40) {
|
|
154533
|
+
var children = _ref40.children;
|
|
154534
|
+
var _ref41 = (0, import_react17.useState)(false),
|
|
154535
|
+
_ref42 = _slicedToArray(_ref41, 2),
|
|
154536
|
+
isEntryMessageExited = _ref42[0],
|
|
154537
|
+
setIsEntryMessageExited = _ref42[1];
|
|
154538
|
+
(0, import_react17.useEffect)(function () {
|
|
154539
|
+
if (import_react_native20.Platform.OS === "ios") {
|
|
154513
154540
|
(0, import_native_modules12.setIosSwipeGestureEnabled)({
|
|
154514
154541
|
isEnabled: false
|
|
154515
154542
|
});
|
|
@@ -154521,7 +154548,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154521
154548
|
}
|
|
154522
154549
|
return;
|
|
154523
154550
|
}, []);
|
|
154524
|
-
(0,
|
|
154551
|
+
(0, import_react17.useEffect)(function () {
|
|
154525
154552
|
import_native_modules12.appsInTossEvent.addEventListener("entryMessageExited", {
|
|
154526
154553
|
onEvent: function onEvent() {
|
|
154527
154554
|
setIsEntryMessageExited(true);
|
|
@@ -154529,22 +154556,22 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154529
154556
|
});
|
|
154530
154557
|
}, []);
|
|
154531
154558
|
return (0, import_jsx_runtime9.jsxs)(import_jsx_runtime9.Fragment, {
|
|
154532
|
-
children: [(0, import_jsx_runtime9.jsx)(RNNavigationBar.Game, {}), (0, bridge_entry_exports.getOperationalEnvironment)() === "toss" ? (0, import_jsx_runtime9.jsx)(
|
|
154559
|
+
children: [(0, import_jsx_runtime9.jsx)(RNNavigationBar.Game, {}), (0, bridge_entry_exports.getOperationalEnvironment)() === "toss" ? (0, import_jsx_runtime9.jsx)(GameInitializer, {
|
|
154533
154560
|
isReadyForProfileUI: isEntryMessageExited,
|
|
154534
154561
|
children: children
|
|
154535
154562
|
}) : children]
|
|
154536
154563
|
});
|
|
154537
154564
|
}
|
|
154538
|
-
function GeneralAppContainer(
|
|
154539
|
-
var children =
|
|
154565
|
+
function GeneralAppContainer(_ref43) {
|
|
154566
|
+
var children = _ref43.children;
|
|
154540
154567
|
return (0, import_jsx_runtime9.jsxs)(import_jsx_runtime9.Fragment, {
|
|
154541
154568
|
children: [(0, import_jsx_runtime9.jsx)(RNNavigationBar.Default, {}), children]
|
|
154542
154569
|
});
|
|
154543
154570
|
}
|
|
154544
154571
|
var import_jsx_runtime10 = _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime");
|
|
154545
|
-
function AppsInTossContainer(Container,
|
|
154546
|
-
var children =
|
|
154547
|
-
initialProps = _objectWithoutProperties(
|
|
154572
|
+
function AppsInTossContainer(Container, _ref44) {
|
|
154573
|
+
var children = _ref44.children,
|
|
154574
|
+
initialProps = _objectWithoutProperties(_ref44, _excluded);
|
|
154548
154575
|
if (!(0, import_native_modules13.isMinVersionSupported)({
|
|
154549
154576
|
android: "5.220.0",
|
|
154550
154577
|
ios: "5.221.0"
|
|
@@ -154569,18 +154596,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154569
154596
|
}))]
|
|
154570
154597
|
});
|
|
154571
154598
|
}
|
|
154572
|
-
function TDSContainer(
|
|
154573
|
-
var children =
|
|
154599
|
+
function TDSContainer(_ref45) {
|
|
154600
|
+
var children = _ref45.children;
|
|
154574
154601
|
useAppsInTossBridge();
|
|
154575
154602
|
return (0, import_jsx_runtime10.jsx)(import_jsx_runtime10.Fragment, {
|
|
154576
154603
|
children: children
|
|
154577
154604
|
});
|
|
154578
154605
|
}
|
|
154579
|
-
function registerApp(container,
|
|
154580
|
-
var context =
|
|
154581
|
-
analytics =
|
|
154606
|
+
function registerApp(container, _ref46) {
|
|
154607
|
+
var context = _ref46.context,
|
|
154608
|
+
analytics = _ref46.analytics;
|
|
154582
154609
|
var appName = getAppName();
|
|
154583
|
-
var isRegistered =
|
|
154610
|
+
var isRegistered = import_react_native22.AppRegistry.getAppKeys().includes(appName);
|
|
154584
154611
|
if (!isRegistered) {
|
|
154585
154612
|
var _analytics$debug;
|
|
154586
154613
|
import_analytics.Analytics.init({
|
|
@@ -154589,7 +154616,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154589
154616
|
},
|
|
154590
154617
|
debug: (_analytics$debug = analytics == null ? void 0 : analytics.debug) != null ? _analytics$debug : __DEV__
|
|
154591
154618
|
});
|
|
154592
|
-
var App =
|
|
154619
|
+
var App = import_react_native21.Granite.registerApp(AppsInTossContainer.bind(null, container), {
|
|
154593
154620
|
appName: appName,
|
|
154594
154621
|
context: context,
|
|
154595
154622
|
setIosSwipeGestureEnabled: import_native_modules13.setIosSwipeGestureEnabled,
|
|
@@ -154604,8 +154631,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154604
154631
|
}
|
|
154605
154632
|
return global.Page;
|
|
154606
154633
|
}
|
|
154607
|
-
function AppsInTossScreenContainer(
|
|
154608
|
-
var children =
|
|
154634
|
+
function AppsInTossScreenContainer(_ref47) {
|
|
154635
|
+
var children = _ref47.children;
|
|
154609
154636
|
var isRNApp = getAppsInTossGlobals().webViewType == null;
|
|
154610
154637
|
return (0, import_jsx_runtime10.jsx)(import_analytics.Analytics.Screen, {
|
|
154611
154638
|
children: isRNApp ? (0, import_jsx_runtime10.jsx)(RNAppContainer, {
|
|
@@ -154628,26 +154655,26 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154628
154655
|
var appsInTossAsyncBridges = __toESM(_$$_REQUIRE(_dependencyMap[14], "@apps-in-toss/native-modules/async-bridges"), 1);
|
|
154629
154656
|
var appsInTossConstantBridges = __toESM(_$$_REQUIRE(_dependencyMap[15], "@apps-in-toss/native-modules/constant-bridges"), 1);
|
|
154630
154657
|
var appsInTossEventBridges = __toESM(_$$_REQUIRE(_dependencyMap[16], "@apps-in-toss/native-modules/event-bridges"), 1);
|
|
154631
|
-
var
|
|
154658
|
+
var import_react_native32 = _$$_REQUIRE(_dependencyMap[7], "@granite-js/react-native");
|
|
154632
154659
|
var import_tds_react_native14 = _$$_REQUIRE(_dependencyMap[8], "@toss/tds-react-native");
|
|
154633
154660
|
var import_private9 = _$$_REQUIRE(_dependencyMap[13], "@toss/tds-react-native/private");
|
|
154634
|
-
var
|
|
154635
|
-
var
|
|
154661
|
+
var import_react27 = _$$_REQUIRE(_dependencyMap[10], "react");
|
|
154662
|
+
var import_react_native33 = _$$_REQUIRE(_dependencyMap[9], "react-native");
|
|
154636
154663
|
var import_native_modules14 = _$$_REQUIRE(_dependencyMap[6], "@apps-in-toss/native-modules");
|
|
154637
154664
|
var import_react_native_webview = _$$_REQUIRE(_dependencyMap[17], "@granite-js/native/react-native-webview");
|
|
154638
|
-
var
|
|
154639
|
-
var
|
|
154640
|
-
var
|
|
154665
|
+
var import_react19 = _$$_REQUIRE(_dependencyMap[10], "react");
|
|
154666
|
+
var import_react_native25 = _$$_REQUIRE(_dependencyMap[9], "react-native");
|
|
154667
|
+
var import_react_native23 = _$$_REQUIRE(_dependencyMap[7], "@granite-js/react-native");
|
|
154641
154668
|
var import_tds_react_native11 = _$$_REQUIRE(_dependencyMap[8], "@toss/tds-react-native");
|
|
154642
154669
|
var import_private7 = _$$_REQUIRE(_dependencyMap[13], "@toss/tds-react-native/private");
|
|
154643
154670
|
var import_es_hangul3 = _$$_REQUIRE(_dependencyMap[12], "es-hangul");
|
|
154644
|
-
var
|
|
154645
|
-
var
|
|
154671
|
+
var import_react18 = _$$_REQUIRE(_dependencyMap[10], "react");
|
|
154672
|
+
var import_react_native24 = _$$_REQUIRE(_dependencyMap[9], "react-native");
|
|
154646
154673
|
var import_jsx_runtime11 = _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime");
|
|
154647
154674
|
function GameWebviewNavigationBar() {
|
|
154648
154675
|
var safeAreaTop = (0, import_private7.useSafeAreaTop)();
|
|
154649
|
-
var
|
|
154650
|
-
openConfirm =
|
|
154676
|
+
var _ref48 = (0, import_tds_react_native11.useDialog)(),
|
|
154677
|
+
openConfirm = _ref48.openConfirm;
|
|
154651
154678
|
var _useCaptureExitLog3 = useCaptureExitLog(),
|
|
154652
154679
|
captureExitLog = _useCaptureExitLog3.captureExitLog;
|
|
154653
154680
|
var global2 = getAppsInTossGlobals();
|
|
@@ -154656,7 +154683,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154656
154683
|
openMoreButtonBottomSheet = _useMoreButtonBottomS3.open;
|
|
154657
154684
|
var parsedNavigationBar = global2.navigationBar != null ? safeParseNavigationBar(global2.navigationBar) : null;
|
|
154658
154685
|
var initialAccessoryButton = parsedNavigationBar == null ? void 0 : parsedNavigationBar.initialAccessoryButton;
|
|
154659
|
-
var handleGameWebviewClose = (0,
|
|
154686
|
+
var handleGameWebviewClose = (0, import_react18.useCallback)(_asyncToGenerator(function* () {
|
|
154660
154687
|
logging.closeButtonClick();
|
|
154661
154688
|
var isConfirmed = yield openConfirm({
|
|
154662
154689
|
title: (0, import_es_hangul3.josa)(global2.brandDisplayName, "\uC744/\uB97C") + " \uC885\uB8CC\uD560\uAE4C\uC694?",
|
|
@@ -154668,7 +154695,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154668
154695
|
logging.closePopupCtaClick(isConfirmed);
|
|
154669
154696
|
if (isConfirmed) {
|
|
154670
154697
|
captureExitLog(Date.now());
|
|
154671
|
-
(0,
|
|
154698
|
+
(0, import_react_native23.closeView)();
|
|
154672
154699
|
}
|
|
154673
154700
|
}), [captureExitLog, global2.brandDisplayName, logging, openConfirm]);
|
|
154674
154701
|
return (0, import_jsx_runtime11.jsxs)(import_jsx_runtime11.Fragment, {
|
|
@@ -154676,10 +154703,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154676
154703
|
preference: {
|
|
154677
154704
|
type: "none"
|
|
154678
154705
|
}
|
|
154679
|
-
}), (0, import_jsx_runtime11.jsx)(
|
|
154706
|
+
}), (0, import_jsx_runtime11.jsx)(import_react_native24.View, {
|
|
154680
154707
|
style: {
|
|
154681
154708
|
width: "100%",
|
|
154682
|
-
height:
|
|
154709
|
+
height: import_react_native24.Platform.OS === "ios" ? 44 : 54,
|
|
154683
154710
|
flexDirection: "row",
|
|
154684
154711
|
alignItems: "center",
|
|
154685
154712
|
justifyContent: "flex-end",
|
|
@@ -154701,13 +154728,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154701
154728
|
});
|
|
154702
154729
|
}
|
|
154703
154730
|
var import_jsx_runtime12 = _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime");
|
|
154704
|
-
var GameWebView = (0,
|
|
154705
|
-
var
|
|
154706
|
-
|
|
154707
|
-
isEntryMessageExited =
|
|
154708
|
-
setIsEntryMessageExited =
|
|
154709
|
-
(0,
|
|
154710
|
-
if (
|
|
154731
|
+
var GameWebView = (0, import_react19.forwardRef)(function GameWebView2(props, ref) {
|
|
154732
|
+
var _ref50 = (0, import_react19.useState)(false),
|
|
154733
|
+
_ref51 = _slicedToArray(_ref50, 2),
|
|
154734
|
+
isEntryMessageExited = _ref51[0],
|
|
154735
|
+
setIsEntryMessageExited = _ref51[1];
|
|
154736
|
+
(0, import_react19.useEffect)(function () {
|
|
154737
|
+
if (import_react_native25.Platform.OS === "ios") {
|
|
154711
154738
|
(0, import_native_modules14.setIosSwipeGestureEnabled)({
|
|
154712
154739
|
isEnabled: false
|
|
154713
154740
|
});
|
|
@@ -154719,7 +154746,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154719
154746
|
}
|
|
154720
154747
|
return;
|
|
154721
154748
|
}, []);
|
|
154722
|
-
(0,
|
|
154749
|
+
(0, import_react19.useEffect)(function () {
|
|
154723
154750
|
import_native_modules14.appsInTossEvent.addEventListener("entryMessageExited", {
|
|
154724
154751
|
onEvent: function onEvent() {
|
|
154725
154752
|
setIsEntryMessageExited(true);
|
|
@@ -154727,7 +154754,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154727
154754
|
});
|
|
154728
154755
|
}, []);
|
|
154729
154756
|
return (0, import_jsx_runtime12.jsxs)(import_jsx_runtime12.Fragment, {
|
|
154730
|
-
children: [(0, import_jsx_runtime12.jsx)(GameWebviewNavigationBar, {}), (0, import_native_modules14.getOperationalEnvironment)() === "toss" ? (0, import_jsx_runtime12.jsx)(
|
|
154757
|
+
children: [(0, import_jsx_runtime12.jsx)(GameWebviewNavigationBar, {}), (0, import_native_modules14.getOperationalEnvironment)() === "toss" ? (0, import_jsx_runtime12.jsx)(GameInitializer, {
|
|
154731
154758
|
isReadyForProfileUI: isEntryMessageExited,
|
|
154732
154759
|
children: (0, import_jsx_runtime12.jsx)(import_react_native_webview.WebView, Object.assign({
|
|
154733
154760
|
ref: ref
|
|
@@ -154738,30 +154765,30 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154738
154765
|
});
|
|
154739
154766
|
});
|
|
154740
154767
|
var import_react_native_webview2 = _$$_REQUIRE(_dependencyMap[17], "@granite-js/native/react-native-webview");
|
|
154741
|
-
var
|
|
154742
|
-
var
|
|
154768
|
+
var import_react21 = _$$_REQUIRE(_dependencyMap[10], "react");
|
|
154769
|
+
var import_react_native26 = _$$_REQUIRE(_dependencyMap[7], "@granite-js/react-native");
|
|
154743
154770
|
var import_tds_react_native12 = _$$_REQUIRE(_dependencyMap[8], "@toss/tds-react-native");
|
|
154744
154771
|
var import_private8 = _$$_REQUIRE(_dependencyMap[13], "@toss/tds-react-native/private");
|
|
154745
154772
|
var import_es_hangul4 = _$$_REQUIRE(_dependencyMap[12], "es-hangul");
|
|
154746
|
-
var
|
|
154773
|
+
var import_react20 = _$$_REQUIRE(_dependencyMap[10], "react");
|
|
154747
154774
|
var import_jsx_runtime13 = _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime");
|
|
154748
|
-
function PartnerWebviewNavigationBar(
|
|
154775
|
+
function PartnerWebviewNavigationBar(_ref52) {
|
|
154749
154776
|
var _parsedNavigationBar$3, _parsedNavigationBar$4;
|
|
154750
|
-
var onBackButtonClick =
|
|
154751
|
-
onHomeButtonClick =
|
|
154777
|
+
var onBackButtonClick = _ref52.onBackButtonClick,
|
|
154778
|
+
onHomeButtonClick = _ref52.onHomeButtonClick;
|
|
154752
154779
|
var globals = getAppsInTossGlobals();
|
|
154753
154780
|
var _useCaptureExitLog4 = useCaptureExitLog(),
|
|
154754
154781
|
captureExitLog = _useCaptureExitLog4.captureExitLog;
|
|
154755
154782
|
var logging = useNavigationBarLogging();
|
|
154756
|
-
var
|
|
154757
|
-
openConfirm =
|
|
154783
|
+
var _ref53 = (0, import_tds_react_native12.useDialog)(),
|
|
154784
|
+
openConfirm = _ref53.openConfirm;
|
|
154758
154785
|
var _useMoreButtonBottomS4 = useMoreButtonBottomSheet(),
|
|
154759
154786
|
openMoreButtonBottomSheet = _useMoreButtonBottomS4.open;
|
|
154760
154787
|
var parsedNavigationBar = globals.navigationBar != null ? safeParseNavigationBar(globals.navigationBar) : null;
|
|
154761
154788
|
var withHomeButton = (_parsedNavigationBar$3 = parsedNavigationBar == null ? void 0 : parsedNavigationBar.withHomeButton) != null ? _parsedNavigationBar$3 : false;
|
|
154762
154789
|
var withBackButton = (_parsedNavigationBar$4 = parsedNavigationBar == null ? void 0 : parsedNavigationBar.withBackButton) != null ? _parsedNavigationBar$4 : true;
|
|
154763
154790
|
var initialAccessoryButton = parsedNavigationBar == null ? void 0 : parsedNavigationBar.initialAccessoryButton;
|
|
154764
|
-
var handleClose = (0,
|
|
154791
|
+
var handleClose = (0, import_react20.useCallback)(_asyncToGenerator(function* () {
|
|
154765
154792
|
logging.closeButtonClick();
|
|
154766
154793
|
var isConfirmed = yield openConfirm({
|
|
154767
154794
|
title: (0, import_es_hangul4.josa)(globals.brandDisplayName, "\uC744/\uB97C") + " \uC885\uB8CC\uD560\uAE4C\uC694?",
|
|
@@ -154773,7 +154800,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154773
154800
|
logging.closePopupCtaClick(isConfirmed);
|
|
154774
154801
|
if (isConfirmed) {
|
|
154775
154802
|
captureExitLog(Date.now());
|
|
154776
|
-
(0,
|
|
154803
|
+
(0, import_react_native26.closeView)();
|
|
154777
154804
|
}
|
|
154778
154805
|
}), [captureExitLog, globals.brandDisplayName, logging, openConfirm]);
|
|
154779
154806
|
return (0, import_jsx_runtime13.jsx)(NavigationBarImpressionArea, {
|
|
@@ -154798,10 +154825,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154798
154825
|
});
|
|
154799
154826
|
}
|
|
154800
154827
|
var import_jsx_runtime14 = _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime");
|
|
154801
|
-
var PartnerWebView = (0,
|
|
154802
|
-
var onBackButtonClick =
|
|
154803
|
-
onHomeButtonClick =
|
|
154804
|
-
webViewProps = _objectWithoutProperties(
|
|
154828
|
+
var PartnerWebView = (0, import_react21.forwardRef)(function PartnerWebViewScreen(_ref55, ref) {
|
|
154829
|
+
var onBackButtonClick = _ref55.onBackButtonClick,
|
|
154830
|
+
onHomeButtonClick = _ref55.onHomeButtonClick,
|
|
154831
|
+
webViewProps = _objectWithoutProperties(_ref55, _excluded2);
|
|
154805
154832
|
return (0, import_jsx_runtime14.jsxs)(import_jsx_runtime14.Fragment, {
|
|
154806
154833
|
children: [(0, import_jsx_runtime14.jsx)(PartnerWebviewNavigationBar, {
|
|
154807
154834
|
onBackButtonClick: onBackButtonClick,
|
|
@@ -154815,14 +154842,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154815
154842
|
}))]
|
|
154816
154843
|
});
|
|
154817
154844
|
});
|
|
154818
|
-
var
|
|
154845
|
+
var import_react22 = _$$_REQUIRE(_dependencyMap[10], "react");
|
|
154819
154846
|
function serializeError(error) {
|
|
154820
154847
|
return JSON.stringify(error, function (_, value) {
|
|
154821
154848
|
if (value instanceof Error) {
|
|
154822
|
-
return Object.assign({}, Object.entries(value).reduce(function (acc,
|
|
154823
|
-
var
|
|
154824
|
-
key =
|
|
154825
|
-
value2 =
|
|
154849
|
+
return Object.assign({}, Object.entries(value).reduce(function (acc, _ref56) {
|
|
154850
|
+
var _ref57 = _slicedToArray(_ref56, 2),
|
|
154851
|
+
key = _ref57[0],
|
|
154852
|
+
value2 = _ref57[1];
|
|
154826
154853
|
acc[key] = value2;
|
|
154827
154854
|
return acc;
|
|
154828
154855
|
}, {}), {
|
|
@@ -154835,24 +154862,24 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154835
154862
|
return value;
|
|
154836
154863
|
});
|
|
154837
154864
|
}
|
|
154838
|
-
function methodHandler(
|
|
154839
|
-
var args =
|
|
154840
|
-
eventId =
|
|
154841
|
-
functionName =
|
|
154842
|
-
handlerMap =
|
|
154843
|
-
injectJavaScript =
|
|
154865
|
+
function methodHandler(_ref58) {
|
|
154866
|
+
var args = _ref58.args,
|
|
154867
|
+
eventId = _ref58.eventId,
|
|
154868
|
+
functionName = _ref58.functionName,
|
|
154869
|
+
handlerMap = _ref58.handlerMap,
|
|
154870
|
+
injectJavaScript = _ref58.injectJavaScript;
|
|
154844
154871
|
var func = handlerMap[functionName];
|
|
154845
154872
|
if (!func) {
|
|
154846
154873
|
console.error(functionName + " is not a function");
|
|
154847
154874
|
return;
|
|
154848
154875
|
}
|
|
154849
154876
|
var wrappedFunc = function () {
|
|
154850
|
-
var
|
|
154877
|
+
var _ref59 = _asyncToGenerator(function* () {
|
|
154851
154878
|
var result = yield func.apply(void 0, arguments);
|
|
154852
154879
|
return result;
|
|
154853
154880
|
});
|
|
154854
154881
|
return function wrappedFunc() {
|
|
154855
|
-
return
|
|
154882
|
+
return _ref59.apply(this, arguments);
|
|
154856
154883
|
};
|
|
154857
154884
|
}();
|
|
154858
154885
|
wrappedFunc.apply(void 0, _toConsumableArray(args)).then(function (result) {
|
|
@@ -154863,18 +154890,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154863
154890
|
});
|
|
154864
154891
|
}
|
|
154865
154892
|
var globalEventListenerMap = new Map();
|
|
154866
|
-
function useBridgeHandler(
|
|
154867
|
-
var onMessage =
|
|
154868
|
-
constantHandlerMap =
|
|
154869
|
-
asyncHandlerMap =
|
|
154870
|
-
eventListenerMap =
|
|
154871
|
-
originalInjectedJavaScript =
|
|
154872
|
-
var ref = (0,
|
|
154873
|
-
var injectedJavaScript = (0,
|
|
154874
|
-
return ["window.__CONSTANT_HANDLER_MAP = " + JSON.stringify(Object.entries(constantHandlerMap).reduce(function (acc,
|
|
154875
|
-
var
|
|
154876
|
-
key =
|
|
154877
|
-
value =
|
|
154893
|
+
function useBridgeHandler(_ref60) {
|
|
154894
|
+
var onMessage = _ref60.onMessage,
|
|
154895
|
+
constantHandlerMap = _ref60.constantHandlerMap,
|
|
154896
|
+
asyncHandlerMap = _ref60.asyncHandlerMap,
|
|
154897
|
+
eventListenerMap = _ref60.eventListenerMap,
|
|
154898
|
+
originalInjectedJavaScript = _ref60.injectedJavaScript;
|
|
154899
|
+
var ref = (0, import_react22.useRef)(null);
|
|
154900
|
+
var injectedJavaScript = (0, import_react22.useMemo)(function () {
|
|
154901
|
+
return ["window.__CONSTANT_HANDLER_MAP = " + JSON.stringify(Object.entries(constantHandlerMap).reduce(function (acc, _ref61) {
|
|
154902
|
+
var _ref62 = _slicedToArray(_ref61, 2),
|
|
154903
|
+
key = _ref62[0],
|
|
154904
|
+
value = _ref62[1];
|
|
154878
154905
|
acc[key] = typeof value === "function" ? value() : value;
|
|
154879
154906
|
return acc;
|
|
154880
154907
|
}, {})) + ";", originalInjectedJavaScript, "true"].join("\n");
|
|
@@ -154892,8 +154919,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154892
154919
|
(_ref$current2 = ref.current) == null ? void 0 : _ref$current2.injectJavaScript("\n window.__GRANITE_NATIVE_EMITTER.emit('" + functionName + "/onError/" + eventId + "', " + serializedError + ");\n ");
|
|
154893
154920
|
};
|
|
154894
154921
|
};
|
|
154895
|
-
var $onMessage = (0,
|
|
154896
|
-
var
|
|
154922
|
+
var $onMessage = (0, import_react22.useCallback)(function () {
|
|
154923
|
+
var _ref63 = _asyncToGenerator(function* (e) {
|
|
154897
154924
|
onMessage == null ? void 0 : onMessage(e);
|
|
154898
154925
|
var data = JSON.parse(e.nativeEvent.data);
|
|
154899
154926
|
if (typeof data !== "object" || data === null || typeof data.functionName !== "string" || typeof data.eventId !== "string" || typeof data.type !== "string" || !["addEventListener", "removeEventListener", "method"].includes(data.type)) {
|
|
@@ -154938,7 +154965,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154938
154965
|
}
|
|
154939
154966
|
});
|
|
154940
154967
|
return function (_x4) {
|
|
154941
|
-
return
|
|
154968
|
+
return _ref63.apply(this, arguments);
|
|
154942
154969
|
};
|
|
154943
154970
|
}(), [onMessage]);
|
|
154944
154971
|
return {
|
|
@@ -154947,11 +154974,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154947
154974
|
onMessage: $onMessage
|
|
154948
154975
|
};
|
|
154949
154976
|
}
|
|
154950
|
-
var
|
|
154977
|
+
var import_react_native27 = _$$_REQUIRE(_dependencyMap[7], "@granite-js/react-native");
|
|
154951
154978
|
var import_tds_react_native13 = _$$_REQUIRE(_dependencyMap[8], "@toss/tds-react-native");
|
|
154952
154979
|
var import_es_hangul5 = _$$_REQUIRE(_dependencyMap[12], "es-hangul");
|
|
154953
|
-
var
|
|
154954
|
-
var
|
|
154980
|
+
var import_react24 = _$$_REQUIRE(_dependencyMap[10], "react");
|
|
154981
|
+
var import_react23 = _$$_REQUIRE(_dependencyMap[10], "react");
|
|
154955
154982
|
var INITIAL_STATE = {
|
|
154956
154983
|
stack: [],
|
|
154957
154984
|
index: -1
|
|
@@ -154998,20 +155025,20 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154998
155025
|
}
|
|
154999
155026
|
}
|
|
155000
155027
|
function useWebViewHistory() {
|
|
155001
|
-
var
|
|
155002
|
-
|
|
155003
|
-
state =
|
|
155004
|
-
dispatch =
|
|
155005
|
-
var onNavigationStateChange = (0,
|
|
155006
|
-
var url =
|
|
155007
|
-
canGoForward2 =
|
|
155028
|
+
var _ref64 = (0, import_react23.useReducer)(reducer, INITIAL_STATE),
|
|
155029
|
+
_ref65 = _slicedToArray(_ref64, 2),
|
|
155030
|
+
state = _ref65[0],
|
|
155031
|
+
dispatch = _ref65[1];
|
|
155032
|
+
var onNavigationStateChange = (0, import_react23.useCallback)(function (_ref66) {
|
|
155033
|
+
var url = _ref66.url,
|
|
155034
|
+
canGoForward2 = _ref66.canGoForward;
|
|
155008
155035
|
dispatch({
|
|
155009
155036
|
type: "NAVIGATION_CHANGE",
|
|
155010
155037
|
url: url,
|
|
155011
155038
|
canGoForward: canGoForward2
|
|
155012
155039
|
});
|
|
155013
155040
|
}, []);
|
|
155014
|
-
var
|
|
155041
|
+
var _ref67 = (0, import_react23.useMemo)(function () {
|
|
155015
155042
|
var canBack = state.index > 0;
|
|
155016
155043
|
var canFwd = state.index >= 0 && state.index < state.stack.length - 1;
|
|
155017
155044
|
return {
|
|
@@ -155019,8 +155046,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155019
155046
|
canGoForward: canFwd
|
|
155020
155047
|
};
|
|
155021
155048
|
}, [state.index, state.stack.length]),
|
|
155022
|
-
canGoBack =
|
|
155023
|
-
canGoForward =
|
|
155049
|
+
canGoBack = _ref67.canGoBack,
|
|
155050
|
+
canGoForward = _ref67.canGoForward;
|
|
155024
155051
|
return {
|
|
155025
155052
|
onNavigationStateChange: onNavigationStateChange,
|
|
155026
155053
|
hasHistory: canGoBack,
|
|
@@ -155035,22 +155062,22 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155035
155062
|
var _useWebViewHistory = useWebViewHistory(),
|
|
155036
155063
|
hasHistory = _useWebViewHistory.hasHistory,
|
|
155037
155064
|
onNavigationStateChange = _useWebViewHistory.onNavigationStateChange;
|
|
155038
|
-
var
|
|
155039
|
-
webBackHandlersRef =
|
|
155040
|
-
hasWebBackEvent =
|
|
155041
|
-
addWebBackEventListener =
|
|
155042
|
-
removeWebBackEventListener =
|
|
155065
|
+
var _ref68 = (0, import_react_native27.useBackEventState)(),
|
|
155066
|
+
webBackHandlersRef = _ref68.handlersRef,
|
|
155067
|
+
hasWebBackEvent = _ref68.hasBackEvent,
|
|
155068
|
+
addWebBackEventListener = _ref68.addEventListener,
|
|
155069
|
+
removeWebBackEventListener = _ref68.removeEventListener;
|
|
155043
155070
|
var logging = useNavigationBarLogging();
|
|
155044
|
-
var
|
|
155045
|
-
openConfirm =
|
|
155071
|
+
var _ref69 = (0, import_tds_react_native13.useDialog)(),
|
|
155072
|
+
openConfirm = _ref69.openConfirm;
|
|
155046
155073
|
var global2 = getAppsInTossGlobals();
|
|
155047
|
-
var addEventListener = (0,
|
|
155074
|
+
var addEventListener = (0, import_react24.useCallback)(function (handler) {
|
|
155048
155075
|
addWebBackEventListener(handler);
|
|
155049
155076
|
}, [addWebBackEventListener]);
|
|
155050
|
-
var removeEventListener = (0,
|
|
155077
|
+
var removeEventListener = (0, import_react24.useCallback)(function (handler) {
|
|
155051
155078
|
removeWebBackEventListener(handler);
|
|
155052
155079
|
}, [removeWebBackEventListener]);
|
|
155053
|
-
var handleWebBack = (0,
|
|
155080
|
+
var handleWebBack = (0, import_react24.useCallback)(_asyncToGenerator(function* () {
|
|
155054
155081
|
if (hasWebBackEvent) {
|
|
155055
155082
|
for (var handler of webBackHandlersRef) {
|
|
155056
155083
|
handler();
|
|
@@ -155071,11 +155098,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155071
155098
|
logging.closePopupCtaClick(isConfirmed);
|
|
155072
155099
|
if (isConfirmed) {
|
|
155073
155100
|
captureExitLog(Date.now());
|
|
155074
|
-
(0,
|
|
155101
|
+
(0, import_react_native27.closeView)();
|
|
155075
155102
|
}
|
|
155076
155103
|
}
|
|
155077
155104
|
}), [captureExitLog, global2.brandDisplayName, hasHistory, hasWebBackEvent, webBackHandlersRef, logging, openConfirm, webViewRef]);
|
|
155078
|
-
var handleWebHome = (0,
|
|
155105
|
+
var handleWebHome = (0, import_react24.useCallback)(function () {
|
|
155079
155106
|
var _webViewRef$current2;
|
|
155080
155107
|
logging.homeButtonClick();
|
|
155081
155108
|
if (hasWebBackEvent) {
|
|
@@ -155086,7 +155113,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155086
155113
|
}
|
|
155087
155114
|
(_webViewRef$current2 = webViewRef.current) == null ? void 0 : _webViewRef$current2.injectJavaScript(HISTORY_HOME_SCRIPT);
|
|
155088
155115
|
}, [hasWebBackEvent, webBackHandlersRef, logging, webViewRef]);
|
|
155089
|
-
return (0,
|
|
155116
|
+
return (0, import_react24.useMemo)(function () {
|
|
155090
155117
|
return {
|
|
155091
155118
|
addEventListener: addEventListener,
|
|
155092
155119
|
removeEventListener: removeEventListener,
|
|
@@ -155111,7 +155138,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155111
155138
|
};
|
|
155112
155139
|
}
|
|
155113
155140
|
var import_native_modules15 = _$$_REQUIRE(_dependencyMap[6], "@apps-in-toss/native-modules");
|
|
155114
|
-
var
|
|
155141
|
+
var import_react_native28 = _$$_REQUIRE(_dependencyMap[9], "react-native");
|
|
155115
155142
|
var FontA11yCategory = {
|
|
155116
155143
|
Large: "Large",
|
|
155117
155144
|
xLarge: "xLarge",
|
|
@@ -155239,36 +155266,36 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155239
155266
|
function mapFontScaleToCategory(fontScale, platform) {
|
|
155240
155267
|
return platform === "ios" ? mapIOSFontScaleToCategory(fontScale) : mapAndroidFontScaleToCategory(fontScale);
|
|
155241
155268
|
}
|
|
155242
|
-
function _useCreateUserAgent(
|
|
155243
|
-
var batteryModePreference =
|
|
155244
|
-
colorPreference =
|
|
155245
|
-
locale =
|
|
155246
|
-
navbarPreference =
|
|
155247
|
-
pureSafeArea =
|
|
155248
|
-
safeArea =
|
|
155249
|
-
safeAreaBottomTransparency =
|
|
155269
|
+
function _useCreateUserAgent(_ref71) {
|
|
155270
|
+
var batteryModePreference = _ref71.batteryModePreference,
|
|
155271
|
+
colorPreference = _ref71.colorPreference,
|
|
155272
|
+
locale = _ref71.locale,
|
|
155273
|
+
navbarPreference = _ref71.navbarPreference,
|
|
155274
|
+
pureSafeArea = _ref71.pureSafeArea,
|
|
155275
|
+
safeArea = _ref71.safeArea,
|
|
155276
|
+
safeAreaBottomTransparency = _ref71.safeAreaBottomTransparency;
|
|
155250
155277
|
var platform = (0, import_native_modules15.getPlatformOS)();
|
|
155251
155278
|
var appVersion = (0, import_native_modules15.getTossAppVersion)();
|
|
155252
|
-
var
|
|
155253
|
-
fontScale =
|
|
155279
|
+
var _ref72 = (0, import_react_native28.useWindowDimensions)(),
|
|
155280
|
+
fontScale = _ref72.fontScale;
|
|
155254
155281
|
var platformString = platform === "ios" ? "iPhone" : "Android";
|
|
155255
155282
|
var fontA11y = mapFontScaleToCategory(fontScale, platform);
|
|
155256
155283
|
var normalizedFontScale = convertToAndroidStyleScale(fontScale, platform);
|
|
155257
155284
|
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(" ");
|
|
155258
155285
|
}
|
|
155259
155286
|
var import_native_modules16 = _$$_REQUIRE(_dependencyMap[6], "@apps-in-toss/native-modules");
|
|
155260
|
-
var
|
|
155261
|
-
var
|
|
155262
|
-
function _useGeolocation(
|
|
155263
|
-
var accuracy =
|
|
155264
|
-
distanceInterval =
|
|
155265
|
-
timeInterval =
|
|
155266
|
-
var isVisible = (0,
|
|
155267
|
-
var
|
|
155268
|
-
|
|
155269
|
-
location =
|
|
155270
|
-
setLocation =
|
|
155271
|
-
(0,
|
|
155287
|
+
var import_react_native29 = _$$_REQUIRE(_dependencyMap[7], "@granite-js/react-native");
|
|
155288
|
+
var import_react25 = _$$_REQUIRE(_dependencyMap[10], "react");
|
|
155289
|
+
function _useGeolocation(_ref73) {
|
|
155290
|
+
var accuracy = _ref73.accuracy,
|
|
155291
|
+
distanceInterval = _ref73.distanceInterval,
|
|
155292
|
+
timeInterval = _ref73.timeInterval;
|
|
155293
|
+
var isVisible = (0, import_react_native29.useVisibility)();
|
|
155294
|
+
var _ref74 = (0, import_react25.useState)(null),
|
|
155295
|
+
_ref75 = _slicedToArray(_ref74, 2),
|
|
155296
|
+
location = _ref75[0],
|
|
155297
|
+
setLocation = _ref75[1];
|
|
155298
|
+
(0, import_react25.useEffect)(function () {
|
|
155272
155299
|
if (!isVisible) {
|
|
155273
155300
|
return;
|
|
155274
155301
|
}
|
|
@@ -155284,18 +155311,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155284
155311
|
}, [accuracy, distanceInterval, timeInterval, isVisible]);
|
|
155285
155312
|
return location;
|
|
155286
155313
|
}
|
|
155287
|
-
var
|
|
155288
|
-
var
|
|
155314
|
+
var import_react_native30 = _$$_REQUIRE(_dependencyMap[7], "@granite-js/react-native");
|
|
155315
|
+
var import_react26 = _$$_REQUIRE(_dependencyMap[10], "react");
|
|
155289
155316
|
function _useWaitForReturnNavigator() {
|
|
155290
|
-
var callbacks = (0,
|
|
155291
|
-
var navigation = (0,
|
|
155292
|
-
var startNavigating = (0,
|
|
155317
|
+
var callbacks = (0, import_react26.useRef)([]).current;
|
|
155318
|
+
var navigation = (0, import_react_native30.useNavigation)();
|
|
155319
|
+
var startNavigating = (0, import_react26.useCallback)(function (route, params) {
|
|
155293
155320
|
return new Promise(function (resolve) {
|
|
155294
155321
|
callbacks.push(resolve);
|
|
155295
155322
|
navigation.navigate(route, params);
|
|
155296
155323
|
});
|
|
155297
155324
|
}, [callbacks, navigation]);
|
|
155298
|
-
var handleVisibilityChange = (0,
|
|
155325
|
+
var handleVisibilityChange = (0, import_react26.useCallback)(function (state) {
|
|
155299
155326
|
if (state === "visible" && callbacks.length > 0) {
|
|
155300
155327
|
for (var callback of callbacks) {
|
|
155301
155328
|
callback();
|
|
@@ -155303,11 +155330,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155303
155330
|
callbacks.splice(0, callbacks.length);
|
|
155304
155331
|
}
|
|
155305
155332
|
}, [callbacks]);
|
|
155306
|
-
(0,
|
|
155333
|
+
(0, import_react_native30.useVisibilityChange)(handleVisibilityChange);
|
|
155307
155334
|
return startNavigating;
|
|
155308
155335
|
}
|
|
155309
155336
|
var import_native_modules17 = _$$_REQUIRE(_dependencyMap[6], "@apps-in-toss/native-modules");
|
|
155310
|
-
var
|
|
155337
|
+
var import_react_native31 = _$$_REQUIRE(_dependencyMap[7], "@granite-js/react-native");
|
|
155311
155338
|
var extractDateFromUUIDv7 = function extractDateFromUUIDv7(uuid) {
|
|
155312
155339
|
var timestampHex = uuid.split("-").join("").slice(0, 12);
|
|
155313
155340
|
var timestamp = Number.parseInt(timestampHex, 16);
|
|
@@ -155329,7 +155356,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155329
155356
|
};
|
|
155330
155357
|
var getReferrer = function getReferrer() {
|
|
155331
155358
|
try {
|
|
155332
|
-
var referrer = new URL((0,
|
|
155359
|
+
var referrer = new URL((0, import_react_native31.getSchemeUri)());
|
|
155333
155360
|
return referrer.searchParams.get("referrer");
|
|
155334
155361
|
} catch (_unused5) {
|
|
155335
155362
|
return "";
|
|
@@ -155361,12 +155388,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155361
155388
|
};
|
|
155362
155389
|
function mergeSchemeQueryParamsInto(url) {
|
|
155363
155390
|
var baseUrl = new URL(url);
|
|
155364
|
-
var schemeUrl = new URL((0,
|
|
155391
|
+
var schemeUrl = new URL((0, import_react_native32.getSchemeUri)());
|
|
155365
155392
|
baseUrl.pathname = schemeUrl.pathname;
|
|
155366
|
-
for (var
|
|
155367
|
-
var
|
|
155368
|
-
var key =
|
|
155369
|
-
var value =
|
|
155393
|
+
for (var _ref76 of schemeUrl.searchParams.entries()) {
|
|
155394
|
+
var _ref77 = _slicedToArray(_ref76, 2);
|
|
155395
|
+
var key = _ref77[0];
|
|
155396
|
+
var value = _ref77[1];
|
|
155370
155397
|
baseUrl.searchParams.set(key, value);
|
|
155371
155398
|
}
|
|
155372
155399
|
return baseUrl;
|
|
@@ -155385,17 +155412,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155385
155412
|
}
|
|
155386
155413
|
return url.toString();
|
|
155387
155414
|
}
|
|
155388
|
-
function _WebView(
|
|
155389
|
-
var type =
|
|
155390
|
-
local =
|
|
155391
|
-
onMessage =
|
|
155392
|
-
props = _objectWithoutProperties(
|
|
155415
|
+
function _WebView(_ref78) {
|
|
155416
|
+
var type = _ref78.type,
|
|
155417
|
+
local = _ref78.local,
|
|
155418
|
+
onMessage = _ref78.onMessage,
|
|
155419
|
+
props = _objectWithoutProperties(_ref78, _excluded3);
|
|
155393
155420
|
if (!TYPES.includes(type)) {
|
|
155394
155421
|
throw new Error("Invalid WebView type: '" + type + "'");
|
|
155395
155422
|
}
|
|
155396
|
-
var webViewRef = (0,
|
|
155423
|
+
var webViewRef = (0, import_react27.useRef)(null);
|
|
155397
155424
|
var webBackHandler = useWebBackHandler(webViewRef);
|
|
155398
|
-
var uri = (0,
|
|
155425
|
+
var uri = (0, import_react27.useMemo)(function () {
|
|
155399
155426
|
return getWebViewUri(local);
|
|
155400
155427
|
}, [local]);
|
|
155401
155428
|
var top = (0, import_private9.useSafeAreaTop)();
|
|
@@ -155403,51 +155430,51 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155403
155430
|
var global2 = getAppsInTossGlobals();
|
|
155404
155431
|
var topNavigation = (0, import_private9.useTopNavigation)();
|
|
155405
155432
|
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 ";
|
|
155406
|
-
var
|
|
155407
|
-
|
|
155408
|
-
allowsBackForwardNavigationGestures =
|
|
155409
|
-
setAllowsBackForwardNavigationGestures =
|
|
155433
|
+
var _ref79 = (0, import_react27.useState)(props.allowsBackForwardNavigationGestures),
|
|
155434
|
+
_ref80 = _slicedToArray(_ref79, 2),
|
|
155435
|
+
allowsBackForwardNavigationGestures = _ref80[0],
|
|
155436
|
+
setAllowsBackForwardNavigationGestures = _ref80[1];
|
|
155410
155437
|
var handler = useBridgeHandler({
|
|
155411
155438
|
onMessage: onMessage,
|
|
155412
155439
|
injectedJavaScript: [disableTextSelectionCSS].join("\n"),
|
|
155413
155440
|
eventListenerMap: Object.assign({}, appsInTossEventBridges, {
|
|
155414
|
-
navigationAccessoryEvent: function navigationAccessoryEvent(
|
|
155415
|
-
var onEvent =
|
|
155416
|
-
onError =
|
|
155441
|
+
navigationAccessoryEvent: function navigationAccessoryEvent(_ref81) {
|
|
155442
|
+
var onEvent = _ref81.onEvent,
|
|
155443
|
+
onError = _ref81.onError;
|
|
155417
155444
|
return import_tds_react_native14.tdsEvent.addEventListener("navigationAccessoryEvent", {
|
|
155418
155445
|
onEvent: onEvent,
|
|
155419
155446
|
onError: onError
|
|
155420
155447
|
});
|
|
155421
155448
|
},
|
|
155422
|
-
backEvent: function backEvent(
|
|
155423
|
-
var onEvent =
|
|
155449
|
+
backEvent: function backEvent(_ref82) {
|
|
155450
|
+
var onEvent = _ref82.onEvent;
|
|
155424
155451
|
webBackHandler.addEventListener(onEvent);
|
|
155425
155452
|
return function () {
|
|
155426
155453
|
webBackHandler.removeEventListener(onEvent);
|
|
155427
155454
|
};
|
|
155428
155455
|
},
|
|
155429
|
-
entryMessageExited: function entryMessageExited(
|
|
155430
|
-
var onEvent =
|
|
155431
|
-
onError =
|
|
155456
|
+
entryMessageExited: function entryMessageExited(_ref83) {
|
|
155457
|
+
var onEvent = _ref83.onEvent,
|
|
155458
|
+
onError = _ref83.onError;
|
|
155432
155459
|
return import_native_modules18.appsInTossEvent.addEventListener("entryMessageExited", {
|
|
155433
155460
|
onEvent: onEvent,
|
|
155434
155461
|
onError: onError
|
|
155435
155462
|
});
|
|
155436
155463
|
},
|
|
155437
|
-
updateLocationEvent: function updateLocationEvent(
|
|
155438
|
-
var onEvent =
|
|
155439
|
-
onError =
|
|
155440
|
-
options =
|
|
155464
|
+
updateLocationEvent: function updateLocationEvent(_ref84) {
|
|
155465
|
+
var onEvent = _ref84.onEvent,
|
|
155466
|
+
onError = _ref84.onError,
|
|
155467
|
+
options = _ref84.options;
|
|
155441
155468
|
return import_native_modules18.appsInTossEvent.addEventListener("updateLocationEvent", {
|
|
155442
155469
|
onEvent: onEvent,
|
|
155443
155470
|
onError: onError,
|
|
155444
155471
|
options: options
|
|
155445
155472
|
});
|
|
155446
155473
|
},
|
|
155447
|
-
appBridgeCallbackEvent: function appBridgeCallbackEvent(
|
|
155448
|
-
var onEvent =
|
|
155449
|
-
onError =
|
|
155450
|
-
options =
|
|
155474
|
+
appBridgeCallbackEvent: function appBridgeCallbackEvent(_ref85) {
|
|
155475
|
+
var onEvent = _ref85.onEvent,
|
|
155476
|
+
onError = _ref85.onError,
|
|
155477
|
+
options = _ref85.options;
|
|
155451
155478
|
return import_native_modules18.appsInTossEvent.addEventListener("appBridgeCallbackEvent", {
|
|
155452
155479
|
onEvent: onEvent,
|
|
155453
155480
|
onError: onError,
|
|
@@ -155470,10 +155497,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155470
155497
|
getSafeAreaBottom: function getSafeAreaBottom() {
|
|
155471
155498
|
return bottom;
|
|
155472
155499
|
}
|
|
155473
|
-
}, Object.fromEntries(Object.entries(global2).map(function (
|
|
155474
|
-
var
|
|
155475
|
-
key =
|
|
155476
|
-
value =
|
|
155500
|
+
}, Object.fromEntries(Object.entries(global2).map(function (_ref86) {
|
|
155501
|
+
var _ref87 = _slicedToArray(_ref86, 2),
|
|
155502
|
+
key = _ref87[0],
|
|
155503
|
+
value = _ref87[1];
|
|
155477
155504
|
return [key, function () {
|
|
155478
155505
|
return value;
|
|
155479
155506
|
}];
|
|
@@ -155530,7 +155557,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155530
155557
|
completeProductGrant: import_native_modules18.IAP.completeProductGrant
|
|
155531
155558
|
})
|
|
155532
155559
|
});
|
|
155533
|
-
var headerPropForExternalWebView = (0,
|
|
155560
|
+
var headerPropForExternalWebView = (0, import_react27.useMemo)(function () {
|
|
155534
155561
|
var _parsedNavigationBar$5;
|
|
155535
155562
|
var parsedNavigationBar = global2.navigationBar != null ? safeParseNavigationBar(global2.navigationBar) : null;
|
|
155536
155563
|
var initialAccessoryButton = parsedNavigationBar == null ? void 0 : parsedNavigationBar.initialAccessoryButton;
|
|
@@ -155552,14 +155579,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155552
155579
|
colorPreference: "light"
|
|
155553
155580
|
});
|
|
155554
155581
|
var refs = mergeRefs(handler.ref, webViewRef);
|
|
155555
|
-
(0,
|
|
155582
|
+
(0, import_react27.useEffect)(function () {
|
|
155556
155583
|
var callback = function callback() {
|
|
155557
155584
|
webBackHandler.handleWebBack();
|
|
155558
155585
|
return true;
|
|
155559
155586
|
};
|
|
155560
|
-
|
|
155587
|
+
import_react_native33.BackHandler.addEventListener("hardwareBackPress", callback);
|
|
155561
155588
|
return function () {
|
|
155562
|
-
return
|
|
155589
|
+
return import_react_native33.BackHandler.removeEventListener("hardwareBackPress", callback);
|
|
155563
155590
|
};
|
|
155564
155591
|
}, [webBackHandler]);
|
|
155565
155592
|
return (0, import_jsx_runtime15.jsx)(BaseWebView, Object.assign({
|
|
@@ -155580,14 +155607,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155580
155607
|
props.onNavigationStateChange == null ? void 0 : props.onNavigationStateChange(event);
|
|
155581
155608
|
webBackHandler.onNavigationStateChange(event);
|
|
155582
155609
|
},
|
|
155583
|
-
userAgent:
|
|
155610
|
+
userAgent: import_react_native33.Platform.OS === "ios" ? userAgent : void 0,
|
|
155584
155611
|
sharedCookiesEnabled: true,
|
|
155585
155612
|
webviewDebuggingEnabled: webViewDebuggingEnabled,
|
|
155586
155613
|
thirdPartyCookiesEnabled: true,
|
|
155587
155614
|
onMessage: handler.onMessage,
|
|
155588
155615
|
injectedJavaScript: handler.injectedJavaScript,
|
|
155589
155616
|
injectedJavaScriptBeforeContentLoaded: handler.injectedJavaScript,
|
|
155590
|
-
decelerationRate:
|
|
155617
|
+
decelerationRate: import_react_native33.Platform.OS === "ios" ? 1 : void 0,
|
|
155591
155618
|
allowsBackForwardNavigationGestures: allowsBackForwardNavigationGestures
|
|
155592
155619
|
}));
|
|
155593
155620
|
}
|
|
@@ -155614,7 +155641,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155614
155641
|
useTopNavigation: useTopNavigation,
|
|
155615
155642
|
useWaitForReturnNavigator: _useWaitForReturnNavigator
|
|
155616
155643
|
}, _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/analytics"), _$$_REQUIRE(_dependencyMap[6], "@apps-in-toss/native-modules"), _$$_REQUIRE(_dependencyMap[18], "@apps-in-toss/types")));
|
|
155617
|
-
},1254,[32,207,16,
|
|
155644
|
+
},1254,[32,207,61,16,1255,1256,1257,2,1444,18,6,9,2466,2566,2567,2603,2610,2475,1258],"../../.yarn/__virtual__/@apps-in-toss-framework-virtual-574b136add/1/apps-in-toss-packages/framework/dist/index.cjs");
|
|
155618
155645
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
155619
155646
|
function _objectDestructuringEmpty(obj) {
|
|
155620
155647
|
if (obj == null) throw new TypeError("Cannot destructure undefined");
|
|
@@ -156375,6 +156402,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156375
156402
|
getTossShareLink: function getTossShareLink() {
|
|
156376
156403
|
return _getTossShareLink;
|
|
156377
156404
|
},
|
|
156405
|
+
getUserKeyForGame: function getUserKeyForGame() {
|
|
156406
|
+
return _getUserKeyForGame;
|
|
156407
|
+
},
|
|
156408
|
+
grantPromotionRewardForGame: function grantPromotionRewardForGame() {
|
|
156409
|
+
return _grantPromotionRewardForGame;
|
|
156410
|
+
},
|
|
156378
156411
|
iapCreateOneTimePurchaseOrder: function iapCreateOneTimePurchaseOrder() {
|
|
156379
156412
|
return _iapCreateOneTimePurchaseOrder;
|
|
156380
156413
|
},
|
|
@@ -157474,6 +157507,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157474
157507
|
android: "5.221.0",
|
|
157475
157508
|
ios: "5.221.0"
|
|
157476
157509
|
};
|
|
157510
|
+
var GAME_USER_KEY_MIN_VERSION = {
|
|
157511
|
+
android: "5.232.0",
|
|
157512
|
+
ios: "5.232.0"
|
|
157513
|
+
};
|
|
157514
|
+
var GAME_PROMOTION_REWARD_MIN_VERSION = {
|
|
157515
|
+
android: "5.232.0",
|
|
157516
|
+
ios: "5.232.0"
|
|
157517
|
+
};
|
|
157477
157518
|
function _openGameCenterLeaderboard() {
|
|
157478
157519
|
return _openGameCenterLeaderboard2.apply(this, arguments);
|
|
157479
157520
|
}
|
|
@@ -157520,6 +157561,63 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157520
157561
|
});
|
|
157521
157562
|
return _submitGameCenterLeaderBoardScore2.apply(this, arguments);
|
|
157522
157563
|
}
|
|
157564
|
+
function _getUserKeyForGame() {
|
|
157565
|
+
return _getUserKeyForGame2.apply(this, arguments);
|
|
157566
|
+
}
|
|
157567
|
+
function _getUserKeyForGame2() {
|
|
157568
|
+
_getUserKeyForGame2 = _asyncToGenerator(function* () {
|
|
157569
|
+
var isSupported = _isMinVersionSupported(GAME_USER_KEY_MIN_VERSION);
|
|
157570
|
+
if (!isSupported) {
|
|
157571
|
+
return;
|
|
157572
|
+
}
|
|
157573
|
+
try {
|
|
157574
|
+
var response = yield _AppsInTossModule.getUserKeyForGame({});
|
|
157575
|
+
if (response.type === "HASH") {
|
|
157576
|
+
return response;
|
|
157577
|
+
}
|
|
157578
|
+
if (response.type === "NOT_AVAILABLE") {
|
|
157579
|
+
return "INVALID_CATEGORY";
|
|
157580
|
+
}
|
|
157581
|
+
return "ERROR";
|
|
157582
|
+
} catch (_) {
|
|
157583
|
+
return "ERROR";
|
|
157584
|
+
}
|
|
157585
|
+
});
|
|
157586
|
+
return _getUserKeyForGame2.apply(this, arguments);
|
|
157587
|
+
}
|
|
157588
|
+
function isGrantPromotionRewardForGameError(error) {
|
|
157589
|
+
return typeof error === "object" && error !== null && "code" in error && typeof error.code === "string" && "message" in error && typeof error.message === "string";
|
|
157590
|
+
}
|
|
157591
|
+
function _grantPromotionRewardForGame(_x14) {
|
|
157592
|
+
return _grantPromotionRewardForGame2.apply(this, arguments);
|
|
157593
|
+
}
|
|
157594
|
+
function _grantPromotionRewardForGame2() {
|
|
157595
|
+
_grantPromotionRewardForGame2 = _asyncToGenerator(function* (_ref9) {
|
|
157596
|
+
var params = _ref9.params;
|
|
157597
|
+
var isSupported = _isMinVersionSupported(GAME_PROMOTION_REWARD_MIN_VERSION);
|
|
157598
|
+
if (!isSupported) {
|
|
157599
|
+
return;
|
|
157600
|
+
}
|
|
157601
|
+
try {
|
|
157602
|
+
var response = yield _AppsInTossModule.grantPromotionRewardForGame({
|
|
157603
|
+
params: params
|
|
157604
|
+
});
|
|
157605
|
+
if (response.key) {
|
|
157606
|
+
return response;
|
|
157607
|
+
}
|
|
157608
|
+
return "ERROR";
|
|
157609
|
+
} catch (error) {
|
|
157610
|
+
if (isGrantPromotionRewardForGameError(error)) {
|
|
157611
|
+
return {
|
|
157612
|
+
errorCode: error.code,
|
|
157613
|
+
message: error.message
|
|
157614
|
+
};
|
|
157615
|
+
}
|
|
157616
|
+
return "ERROR";
|
|
157617
|
+
}
|
|
157618
|
+
});
|
|
157619
|
+
return _grantPromotionRewardForGame2.apply(this, arguments);
|
|
157620
|
+
}
|
|
157523
157621
|
function _contactsViral(params) {
|
|
157524
157622
|
var isSupported = _isMinVersionSupported({
|
|
157525
157623
|
android: "5.223.0",
|
|
@@ -157548,7 +157646,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157548
157646
|
});
|
|
157549
157647
|
return unregisterCallbacks;
|
|
157550
157648
|
}
|
|
157551
|
-
function _appsInTossSignTossCert(
|
|
157649
|
+
function _appsInTossSignTossCert(_x15) {
|
|
157552
157650
|
return _appsInTossSignTossCert2.apply(this, arguments);
|
|
157553
157651
|
}
|
|
157554
157652
|
function _appsInTossSignTossCert2() {
|
|
@@ -157616,7 +157714,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157616
157714
|
function _generateHapticFeedback(options) {
|
|
157617
157715
|
return _BedrockModule.generateHapticFeedback(options);
|
|
157618
157716
|
}
|
|
157619
|
-
function _share(
|
|
157717
|
+
function _share(_x16) {
|
|
157620
157718
|
return _share2.apply(this, arguments);
|
|
157621
157719
|
}
|
|
157622
157720
|
function _share2() {
|
|
@@ -157628,7 +157726,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157628
157726
|
function _setSecureScreen(options) {
|
|
157629
157727
|
return _BedrockModule.setSecureScreen(options);
|
|
157630
157728
|
}
|
|
157631
|
-
function _setScreenAwakeMode(
|
|
157729
|
+
function _setScreenAwakeMode(_x17) {
|
|
157632
157730
|
return _setScreenAwakeMode2.apply(this, arguments);
|
|
157633
157731
|
}
|
|
157634
157732
|
function _setScreenAwakeMode2() {
|
|
@@ -157640,7 +157738,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157640
157738
|
function _getNetworkStatus() {
|
|
157641
157739
|
return _BedrockModule.getNetworkStatus();
|
|
157642
157740
|
}
|
|
157643
|
-
function _setIosSwipeGestureEnabled(
|
|
157741
|
+
function _setIosSwipeGestureEnabled(_x18) {
|
|
157644
157742
|
return _setIosSwipeGestureEnabled2.apply(this, arguments);
|
|
157645
157743
|
}
|
|
157646
157744
|
function _setIosSwipeGestureEnabled2() {
|
|
@@ -157716,6 +157814,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157716
157814
|
getSchemeUri: getSchemeUri,
|
|
157717
157815
|
getTossAppVersion: _getTossAppVersion,
|
|
157718
157816
|
getTossShareLink: _getTossShareLink,
|
|
157817
|
+
getUserKeyForGame: _getUserKeyForGame,
|
|
157818
|
+
grantPromotionRewardForGame: _grantPromotionRewardForGame,
|
|
157719
157819
|
iapCreateOneTimePurchaseOrder: _iapCreateOneTimePurchaseOrder,
|
|
157720
157820
|
isMinVersionSupported: _isMinVersionSupported,
|
|
157721
157821
|
onVisibilityChangedByTransparentServiceWeb: _onVisibilityChangedByTransparentServiceWeb,
|
|
@@ -231430,7 +231530,29 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
231430
231530
|
}
|
|
231431
231531
|
});
|
|
231432
231532
|
});
|
|
231433
|
-
|
|
231533
|
+
var _getUserKeyForGame = _$$_REQUIRE(_dependencyMap[27], "./AppsInTossModule/native-modules/getUserKeyForGame");
|
|
231534
|
+
Object.keys(_getUserKeyForGame).forEach(function (key) {
|
|
231535
|
+
if (key === "default" || key === "__esModule") return;
|
|
231536
|
+
if (key in exports && exports[key] === _getUserKeyForGame[key]) return;
|
|
231537
|
+
Object.defineProperty(exports, key, {
|
|
231538
|
+
enumerable: true,
|
|
231539
|
+
get: function get() {
|
|
231540
|
+
return _getUserKeyForGame[key];
|
|
231541
|
+
}
|
|
231542
|
+
});
|
|
231543
|
+
});
|
|
231544
|
+
var _grantPromotionRewardForGame = _$$_REQUIRE(_dependencyMap[28], "./AppsInTossModule/native-modules/grantPromotionRewardForGame");
|
|
231545
|
+
Object.keys(_grantPromotionRewardForGame).forEach(function (key) {
|
|
231546
|
+
if (key === "default" || key === "__esModule") return;
|
|
231547
|
+
if (key in exports && exports[key] === _grantPromotionRewardForGame[key]) return;
|
|
231548
|
+
Object.defineProperty(exports, key, {
|
|
231549
|
+
enumerable: true,
|
|
231550
|
+
get: function get() {
|
|
231551
|
+
return _grantPromotionRewardForGame[key];
|
|
231552
|
+
}
|
|
231553
|
+
});
|
|
231554
|
+
});
|
|
231555
|
+
},2567,[2568,2570,2571,2572,2573,2574,2575,2576,2577,2579,2580,2581,2583,2584,2585,2586,2587,2588,2589,2592,2593,2594,2595,2596,2597,2599,2600,2601,2602],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/async-bridges.ts");
|
|
231434
231556
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
231435
231557
|
var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
|
|
231436
231558
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -232134,12 +232256,20 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
232134
232256
|
Object.defineProperty(exports, "__esModule", {
|
|
232135
232257
|
value: true
|
|
232136
232258
|
});
|
|
232137
|
-
exports.GAME_PROFILE_WEBVIEW_URL = exports.GAME_CENTER_MIN_VERSION = void 0;
|
|
232259
|
+
exports.GAME_USER_KEY_MIN_VERSION = exports.GAME_PROMOTION_REWARD_MIN_VERSION = exports.GAME_PROFILE_WEBVIEW_URL = exports.GAME_CENTER_MIN_VERSION = void 0;
|
|
232138
232260
|
var GAME_PROFILE_WEBVIEW_URL = exports.GAME_PROFILE_WEBVIEW_URL = 'https://service.toss.im/game-center/profile';
|
|
232139
232261
|
var GAME_CENTER_MIN_VERSION = exports.GAME_CENTER_MIN_VERSION = {
|
|
232140
232262
|
android: '5.221.0',
|
|
232141
232263
|
ios: '5.221.0'
|
|
232142
232264
|
};
|
|
232265
|
+
var GAME_USER_KEY_MIN_VERSION = exports.GAME_USER_KEY_MIN_VERSION = {
|
|
232266
|
+
android: '5.232.0',
|
|
232267
|
+
ios: '5.232.0'
|
|
232268
|
+
};
|
|
232269
|
+
var GAME_PROMOTION_REWARD_MIN_VERSION = exports.GAME_PROMOTION_REWARD_MIN_VERSION = {
|
|
232270
|
+
android: '5.232.0',
|
|
232271
|
+
ios: '5.232.0'
|
|
232272
|
+
};
|
|
232143
232273
|
},2598,[],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/constants.ts");
|
|
232144
232274
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
232145
232275
|
var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
|
|
@@ -232196,6 +232326,85 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
232196
232326
|
return _submitGameCenterLeaderBoardScore.apply(this, arguments);
|
|
232197
232327
|
}
|
|
232198
232328
|
},2600,[1,16,2578,2590,2598],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/submitGameCenterLeaderBoardScore.ts");
|
|
232329
|
+
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
232330
|
+
var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
|
|
232331
|
+
Object.defineProperty(exports, "__esModule", {
|
|
232332
|
+
value: true
|
|
232333
|
+
});
|
|
232334
|
+
exports.getUserKeyForGame = getUserKeyForGame;
|
|
232335
|
+
var _asyncToGenerator2 = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/asyncToGenerator"));
|
|
232336
|
+
var _AppsInTossModule = _$$_REQUIRE(_dependencyMap[2], "./AppsInTossModule");
|
|
232337
|
+
var _isMinVersionSupported = _$$_REQUIRE(_dependencyMap[3], "./isMinVersionSupported");
|
|
232338
|
+
var _constants = _$$_REQUIRE(_dependencyMap[4], "../constants");
|
|
232339
|
+
function getUserKeyForGame() {
|
|
232340
|
+
return _getUserKeyForGame.apply(this, arguments);
|
|
232341
|
+
}
|
|
232342
|
+
function _getUserKeyForGame() {
|
|
232343
|
+
_getUserKeyForGame = (0, _asyncToGenerator2.default)(function* () {
|
|
232344
|
+
var isSupported = (0, _isMinVersionSupported.isMinVersionSupported)(_constants.GAME_USER_KEY_MIN_VERSION);
|
|
232345
|
+
if (!isSupported) {
|
|
232346
|
+
return;
|
|
232347
|
+
}
|
|
232348
|
+
try {
|
|
232349
|
+
var response = yield _AppsInTossModule.AppsInTossModule.getUserKeyForGame({});
|
|
232350
|
+
if (response.type === 'HASH') {
|
|
232351
|
+
return response;
|
|
232352
|
+
}
|
|
232353
|
+
if (response.type === 'NOT_AVAILABLE') {
|
|
232354
|
+
return 'INVALID_CATEGORY';
|
|
232355
|
+
}
|
|
232356
|
+
return 'ERROR';
|
|
232357
|
+
} catch (_) {
|
|
232358
|
+
return 'ERROR';
|
|
232359
|
+
}
|
|
232360
|
+
});
|
|
232361
|
+
return _getUserKeyForGame.apply(this, arguments);
|
|
232362
|
+
}
|
|
232363
|
+
},2601,[1,16,2578,2590,2598],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/getUserKeyForGame.ts");
|
|
232364
|
+
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
232365
|
+
var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
|
|
232366
|
+
Object.defineProperty(exports, "__esModule", {
|
|
232367
|
+
value: true
|
|
232368
|
+
});
|
|
232369
|
+
exports.grantPromotionRewardForGame = grantPromotionRewardForGame;
|
|
232370
|
+
var _asyncToGenerator2 = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/asyncToGenerator"));
|
|
232371
|
+
var _AppsInTossModule = _$$_REQUIRE(_dependencyMap[2], "./AppsInTossModule");
|
|
232372
|
+
var _isMinVersionSupported = _$$_REQUIRE(_dependencyMap[3], "./isMinVersionSupported");
|
|
232373
|
+
var _constants = _$$_REQUIRE(_dependencyMap[4], "../constants");
|
|
232374
|
+
function isGrantPromotionRewardForGameError(error) {
|
|
232375
|
+
return typeof error === 'object' && error !== null && 'code' in error && typeof error.code === 'string' && 'message' in error && typeof error.message === 'string';
|
|
232376
|
+
}
|
|
232377
|
+
function grantPromotionRewardForGame(_x) {
|
|
232378
|
+
return _grantPromotionRewardForGame.apply(this, arguments);
|
|
232379
|
+
}
|
|
232380
|
+
function _grantPromotionRewardForGame() {
|
|
232381
|
+
_grantPromotionRewardForGame = (0, _asyncToGenerator2.default)(function* (_ref) {
|
|
232382
|
+
var params = _ref.params;
|
|
232383
|
+
var isSupported = (0, _isMinVersionSupported.isMinVersionSupported)(_constants.GAME_PROMOTION_REWARD_MIN_VERSION);
|
|
232384
|
+
if (!isSupported) {
|
|
232385
|
+
return;
|
|
232386
|
+
}
|
|
232387
|
+
try {
|
|
232388
|
+
var response = yield _AppsInTossModule.AppsInTossModule.grantPromotionRewardForGame({
|
|
232389
|
+
params: params
|
|
232390
|
+
});
|
|
232391
|
+
if (response.key) {
|
|
232392
|
+
return response;
|
|
232393
|
+
}
|
|
232394
|
+
return 'ERROR';
|
|
232395
|
+
} catch (error) {
|
|
232396
|
+
if (isGrantPromotionRewardForGameError(error)) {
|
|
232397
|
+
return {
|
|
232398
|
+
errorCode: error.code,
|
|
232399
|
+
message: error.message
|
|
232400
|
+
};
|
|
232401
|
+
}
|
|
232402
|
+
return 'ERROR';
|
|
232403
|
+
}
|
|
232404
|
+
});
|
|
232405
|
+
return _grantPromotionRewardForGame.apply(this, arguments);
|
|
232406
|
+
}
|
|
232407
|
+
},2602,[1,16,2578,2590,2598],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/grantPromotionRewardForGame.ts");
|
|
232199
232408
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
232200
232409
|
Object.defineProperty(exports, "__esModule", {
|
|
232201
232410
|
value: true
|
|
@@ -232266,7 +232475,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
232266
232475
|
}
|
|
232267
232476
|
});
|
|
232268
232477
|
});
|
|
232269
|
-
},
|
|
232478
|
+
},2603,[2604,2605,2606,2607,2608,2609],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/constant-bridges.ts");
|
|
232270
232479
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
232271
232480
|
Object.defineProperty(exports, "__esModule", {
|
|
232272
232481
|
value: true
|
|
@@ -232285,7 +232494,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
232285
232494
|
function replaceUnderbarToHypen(locale) {
|
|
232286
232495
|
return locale.replace(/_/g, '-');
|
|
232287
232496
|
}
|
|
232288
|
-
},
|
|
232497
|
+
},2604,[18,2569],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/BedrockModule/native-modules/natives/getLocale.ts");
|
|
232289
232498
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
232290
232499
|
Object.defineProperty(exports, "__esModule", {
|
|
232291
232500
|
value: true
|
|
@@ -232295,7 +232504,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
232295
232504
|
function getSchemeUri() {
|
|
232296
232505
|
return _BedrockModule.BedrockModule.schemeUri;
|
|
232297
232506
|
}
|
|
232298
|
-
},
|
|
232507
|
+
},2605,[2569],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/BedrockModule/native-modules/natives/getSchemeUri.ts");
|
|
232299
232508
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
232300
232509
|
Object.defineProperty(exports, "__esModule", {
|
|
232301
232510
|
value: true
|
|
@@ -232305,7 +232514,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
232305
232514
|
function getPlatformOS() {
|
|
232306
232515
|
return _reactNative.Platform.OS;
|
|
232307
232516
|
}
|
|
232308
|
-
},
|
|
232517
|
+
},2606,[18],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/BedrockModule/native-modules/natives/getPlatformOS.ts");
|
|
232309
232518
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
232310
232519
|
Object.defineProperty(exports, "__esModule", {
|
|
232311
232520
|
value: true
|
|
@@ -232315,7 +232524,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
232315
232524
|
function getOperationalEnvironment() {
|
|
232316
232525
|
return _AppsInTossModule.AppsInTossModule.operationalEnvironment;
|
|
232317
232526
|
}
|
|
232318
|
-
},
|
|
232527
|
+
},2607,[2578],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/getOperationalEnvironment.ts");
|
|
232319
232528
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
232320
232529
|
Object.defineProperty(exports, "__esModule", {
|
|
232321
232530
|
value: true
|
|
@@ -232325,7 +232534,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
232325
232534
|
function getTossAppVersion() {
|
|
232326
232535
|
return _AppsInTossModule.AppsInTossModule.tossAppVersion;
|
|
232327
232536
|
}
|
|
232328
|
-
},
|
|
232537
|
+
},2608,[2578],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/getTossAppVersion.ts");
|
|
232329
232538
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
232330
232539
|
Object.defineProperty(exports, "__esModule", {
|
|
232331
232540
|
value: true
|
|
@@ -232335,7 +232544,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
232335
232544
|
function getDeviceId() {
|
|
232336
232545
|
return _AppsInTossModule.AppsInTossModule.deviceId;
|
|
232337
232546
|
}
|
|
232338
|
-
},
|
|
232547
|
+
},2609,[2578],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/getDeviceId.ts");
|
|
232339
232548
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
232340
232549
|
Object.defineProperty(exports, "__esModule", {
|
|
232341
232550
|
value: true
|
|
@@ -232373,7 +232582,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
232373
232582
|
}
|
|
232374
232583
|
});
|
|
232375
232584
|
});
|
|
232376
|
-
},
|
|
232585
|
+
},2610,[2611,2627,2626],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/event-bridges.ts");
|
|
232377
232586
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
232378
232587
|
Object.defineProperty(exports, "__esModule", {
|
|
232379
232588
|
value: true
|
|
@@ -232386,7 +232595,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
232386
232595
|
}
|
|
232387
232596
|
startUpdateLocation.openPermissionDialog = _nativeModules.getCurrentLocation.openPermissionDialog;
|
|
232388
232597
|
startUpdateLocation.getPermission = _nativeModules.getCurrentLocation.getPermission;
|
|
232389
|
-
},
|
|
232598
|
+
},2611,[2612,2620],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-event-emitter/startUpdateLocation.ts");
|
|
232390
232599
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
232391
232600
|
Object.defineProperty(exports, "__esModule", {
|
|
232392
232601
|
value: true
|
|
@@ -232398,7 +232607,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
232398
232607
|
var _AppBridgeCallbackEvent = _$$_REQUIRE(_dependencyMap[3], "./internal/AppBridgeCallbackEvent");
|
|
232399
232608
|
var _VisibilityChangedByTransparentServiceWebEvent = _$$_REQUIRE(_dependencyMap[4], "./internal/VisibilityChangedByTransparentServiceWebEvent");
|
|
232400
232609
|
var appsInTossEvent = exports.appsInTossEvent = new _reactNative.GraniteEvent([new _UpdateLocationEvent.UpdateLocationEvent(), new _EntryMessageExitedEvent.EntryMessageExitedEvent(), new _AppBridgeCallbackEvent.AppBridgeCallbackEvent(), new _VisibilityChangedByTransparentServiceWebEvent.VisibilityChangedByTransparentServiceWebEvent()]);
|
|
232401
|
-
},
|
|
232610
|
+
},2612,[2,2613,2614,2616,2619],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-event-emitter/appsInTossEvent.ts");
|
|
232402
232611
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
232403
232612
|
var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
|
|
232404
232613
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -232433,7 +232642,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
232433
232642
|
value: function listener(_) {}
|
|
232434
232643
|
}]);
|
|
232435
232644
|
}(_reactNative.GraniteEventDefinition);
|
|
232436
|
-
},
|
|
232645
|
+
},2613,[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");
|
|
232437
232646
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
232438
232647
|
var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
|
|
232439
232648
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -232500,7 +232709,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
232500
232709
|
}
|
|
232501
232710
|
}]);
|
|
232502
232711
|
}(_reactNative.GraniteEventDefinition);
|
|
232503
|
-
},
|
|
232712
|
+
},2614,[1,24,25,43,46,47,1258,2,2578,2579,2615],"../../.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");
|
|
232504
232713
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
232505
232714
|
Object.defineProperty(exports, "__esModule", {
|
|
232506
232715
|
value: true
|
|
@@ -232509,7 +232718,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
232509
232718
|
var _reactNative = _$$_REQUIRE(_dependencyMap[0], "react-native");
|
|
232510
232719
|
var _AppsInTossModule = _$$_REQUIRE(_dependencyMap[1], "../native-modules/AppsInTossModule");
|
|
232511
232720
|
var nativeEventEmitter = exports.nativeEventEmitter = new _reactNative.NativeEventEmitter(_AppsInTossModule.AppsInTossModuleInstance);
|
|
232512
|
-
},
|
|
232721
|
+
},2615,[18,2578],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-event-emitter/nativeEventEmitter.ts");
|
|
232513
232722
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
232514
232723
|
var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
|
|
232515
232724
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -232562,7 +232771,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
232562
232771
|
}
|
|
232563
232772
|
}]);
|
|
232564
232773
|
}(_reactNative.GraniteEventDefinition);
|
|
232565
|
-
},
|
|
232774
|
+
},2616,[1,24,25,43,46,47,2,2617,2615],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-event-emitter/internal/AppBridgeCallbackEvent.ts");
|
|
232566
232775
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
232567
232776
|
var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
|
|
232568
232777
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -232639,7 +232848,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
232639
232848
|
unregisterCallback: unregisterCallback,
|
|
232640
232849
|
getCallbackIds: getCallbackIds
|
|
232641
232850
|
};
|
|
232642
|
-
},
|
|
232851
|
+
},2617,[1,61,207,2618,2578],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-event-emitter/internal/appBridge.ts");
|
|
232643
232852
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
232644
232853
|
Object.defineProperty(exports, "__esModule", {
|
|
232645
232854
|
value: true
|
|
@@ -232648,7 +232857,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
232648
232857
|
function generateUUID(placeholder) {
|
|
232649
232858
|
return placeholder ? (placeholder ^ Math.random() * 16 >> placeholder / 4).toString(16) : (String(1e7) + 1e3 + 4e3 + 8e3 + 1e11).replace(/[018]/g, generateUUID);
|
|
232650
232859
|
}
|
|
232651
|
-
},
|
|
232860
|
+
},2618,[],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/utils/generateUUID.ts");
|
|
232652
232861
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
232653
232862
|
var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
|
|
232654
232863
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -232706,7 +232915,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
232706
232915
|
}
|
|
232707
232916
|
}]);
|
|
232708
232917
|
}(_reactNative.GraniteEventDefinition);
|
|
232709
|
-
},
|
|
232918
|
+
},2619,[1,24,25,43,46,47,2,2615],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-event-emitter/internal/VisibilityChangedByTransparentServiceWebEvent.ts");
|
|
232710
232919
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
232711
232920
|
Object.defineProperty(exports, "__esModule", {
|
|
232712
232921
|
value: true
|
|
@@ -232975,7 +233184,31 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
232975
233184
|
}
|
|
232976
233185
|
});
|
|
232977
233186
|
});
|
|
232978
|
-
var
|
|
233187
|
+
var _getUserKeyForGame = _$$_REQUIRE(_dependencyMap[24], "./getUserKeyForGame");
|
|
233188
|
+
Object.keys(_getUserKeyForGame).forEach(function (key) {
|
|
233189
|
+
if (key === "default" || key === "__esModule") return;
|
|
233190
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
233191
|
+
if (key in exports && exports[key] === _getUserKeyForGame[key]) return;
|
|
233192
|
+
Object.defineProperty(exports, key, {
|
|
233193
|
+
enumerable: true,
|
|
233194
|
+
get: function get() {
|
|
233195
|
+
return _getUserKeyForGame[key];
|
|
233196
|
+
}
|
|
233197
|
+
});
|
|
233198
|
+
});
|
|
233199
|
+
var _grantPromotionRewardForGame = _$$_REQUIRE(_dependencyMap[25], "./grantPromotionRewardForGame");
|
|
233200
|
+
Object.keys(_grantPromotionRewardForGame).forEach(function (key) {
|
|
233201
|
+
if (key === "default" || key === "__esModule") return;
|
|
233202
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
233203
|
+
if (key in exports && exports[key] === _grantPromotionRewardForGame[key]) return;
|
|
233204
|
+
Object.defineProperty(exports, key, {
|
|
233205
|
+
enumerable: true,
|
|
233206
|
+
get: function get() {
|
|
233207
|
+
return _grantPromotionRewardForGame[key];
|
|
233208
|
+
}
|
|
233209
|
+
});
|
|
233210
|
+
});
|
|
233211
|
+
var _contactsViral = _$$_REQUIRE(_dependencyMap[26], "../native-event-emitter/contactsViral");
|
|
232979
233212
|
Object.keys(_contactsViral).forEach(function (key) {
|
|
232980
233213
|
if (key === "default" || key === "__esModule") return;
|
|
232981
233214
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -232987,7 +233220,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
232987
233220
|
}
|
|
232988
233221
|
});
|
|
232989
233222
|
});
|
|
232990
|
-
var _appsInTossSignTossCert = _$$_REQUIRE(_dependencyMap[
|
|
233223
|
+
var _appsInTossSignTossCert = _$$_REQUIRE(_dependencyMap[27], "./appsInTossSignTossCert");
|
|
232991
233224
|
Object.keys(_appsInTossSignTossCert).forEach(function (key) {
|
|
232992
233225
|
if (key === "default" || key === "__esModule") return;
|
|
232993
233226
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -233010,7 +233243,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
233010
233243
|
loadAppsInTossAdMob: _googleAdMobV.loadAppsInTossAdMob,
|
|
233011
233244
|
showAppsInTossAdMob: _googleAdMobV.showAppsInTossAdMob
|
|
233012
233245
|
};
|
|
233013
|
-
},
|
|
233246
|
+
},2620,[2621,2622,2594,2578,2588,2589,2585,2584,2583,2586,2581,2587,2609,2607,2608,2592,2624,2590,2595,2593,2625,2599,2597,2600,2601,2602,2626,2596],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/index.ts");
|
|
233014
233247
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
233015
233248
|
Object.defineProperty(exports, "__esModule", {
|
|
233016
233249
|
value: true
|
|
@@ -233171,7 +233404,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
233171
233404
|
loadAdMobRewardedAd.isSupported = createIsSupported();
|
|
233172
233405
|
showAdMobInterstitialAd.isSupported = createIsSupported();
|
|
233173
233406
|
showAdMobRewardedAd.isSupported = createIsSupported();
|
|
233174
|
-
},
|
|
233407
|
+
},2621,[1259,2617,2607,2590],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/ads/googleAdMob.ts");
|
|
233175
233408
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
233176
233409
|
Object.defineProperty(exports, "__esModule", {
|
|
233177
233410
|
value: true
|
|
@@ -233274,7 +233507,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
233274
233507
|
}
|
|
233275
233508
|
loadAppsInTossAdMob.isSupported = createIsSupported();
|
|
233276
233509
|
showAppsInTossAdMob.isSupported = createIsSupported();
|
|
233277
|
-
},
|
|
233510
|
+
},2622,[1259,2623,2617,2607,2590],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/ads/googleAdMobV2.ts");
|
|
233278
233511
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
233279
233512
|
Object.defineProperty(exports, "__esModule", {
|
|
233280
233513
|
value: true
|
|
@@ -233288,7 +233521,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
233288
233521
|
return null;
|
|
233289
233522
|
}
|
|
233290
233523
|
}
|
|
233291
|
-
},
|
|
233524
|
+
},2623,[2],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/utils/getReferrer.ts");
|
|
233292
233525
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
233293
233526
|
var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
|
|
233294
233527
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -233483,7 +233716,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
233483
233716
|
getCompletedOrRefundedOrders: getCompletedOrRefundedOrders,
|
|
233484
233717
|
completeProductGrant: completeProductGrant
|
|
233485
233718
|
};
|
|
233486
|
-
},
|
|
233719
|
+
},2624,[1,16,1259,2578,2590,2617],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/iap.ts");
|
|
233487
233720
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
233488
233721
|
Object.defineProperty(exports, "__esModule", {
|
|
233489
233722
|
value: true
|
|
@@ -233515,7 +233748,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
233515
233748
|
removeItem: removeItem,
|
|
233516
233749
|
clearItems: clearItems
|
|
233517
233750
|
};
|
|
233518
|
-
},
|
|
233751
|
+
},2625,[2578],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/storage.ts");
|
|
233519
233752
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
233520
233753
|
Object.defineProperty(exports, "__esModule", {
|
|
233521
233754
|
value: true
|
|
@@ -233551,7 +233784,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
233551
233784
|
});
|
|
233552
233785
|
return unregisterCallbacks;
|
|
233553
233786
|
}
|
|
233554
|
-
},
|
|
233787
|
+
},2626,[2617,2590],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-event-emitter/contactsViral.ts");
|
|
233555
233788
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
233556
233789
|
Object.defineProperty(exports, "__esModule", {
|
|
233557
233790
|
value: true
|
|
@@ -233561,7 +233794,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
233561
233794
|
function onVisibilityChangedByTransparentServiceWeb(eventParams) {
|
|
233562
233795
|
return _appsInTossEvent.appsInTossEvent.addEventListener('onVisibilityChangedByTransparentServiceWeb', eventParams);
|
|
233563
233796
|
}
|
|
233564
|
-
},
|
|
233797
|
+
},2627,[2612],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-event-emitter/internal/onVisibilityChangedByTransparentServiceWeb.ts");
|
|
233565
233798
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
233566
233799
|
Object.defineProperty(exports, "__esModule", {
|
|
233567
233800
|
value: true
|
|
@@ -233576,7 +233809,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
233576
233809
|
context.keys = function () {
|
|
233577
233810
|
return Array.from(files.keys());
|
|
233578
233811
|
};
|
|
233579
|
-
},
|
|
233812
|
+
},2628,[2629,2630],"react-native/context.ts");
|
|
233580
233813
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
233581
233814
|
Object.defineProperty(exports, "__esModule", {
|
|
233582
233815
|
value: true
|
|
@@ -233609,7 +233842,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
233609
233842
|
})
|
|
233610
233843
|
});
|
|
233611
233844
|
}
|
|
233612
|
-
},
|
|
233845
|
+
},2629,[1254,18,9],"react-native/pages/index.tsx");
|
|
233613
233846
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
233614
233847
|
var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
|
|
233615
233848
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -233622,6 +233855,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
233622
233855
|
}
|
|
233623
233856
|
});
|
|
233624
233857
|
var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./index"));
|
|
233625
|
-
},
|
|
233858
|
+
},2630,[1,2629],"react-native/pages/_404.tsx");
|
|
233626
233859
|
__r(133);
|
|
233627
233860
|
__r(0);
|