@apps-in-toss/web-framework 2.9.0 → 2.9.2
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.rn84.js +511 -360
- package/dist/prebuilt/dev.ios.rn84.js +511 -360
- package/dist/prebuilt/prod.android.rn72.js +585 -251
- package/dist/prebuilt/prod.android.rn84.js +577 -243
- package/dist/prebuilt/prod.ios.rn72.js +585 -251
- package/dist/prebuilt/prod.ios.rn84.js +577 -243
- package/package.json +8 -8
|
@@ -136750,7 +136750,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
136750
136750
|
var import_analytics = _$$_REQUIRE(_dependencyMap[4], "@apps-in-toss/analytics");
|
|
136751
136751
|
var import_native_modules10 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
|
|
136752
136752
|
var import_react_native27 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
136753
|
-
var
|
|
136753
|
+
var import_tds_react_native12 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
|
|
136754
136754
|
var import_react_native28 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
136755
136755
|
var import_react_native2 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
136756
136756
|
var import_react = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
@@ -136864,7 +136864,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
136864
136864
|
return context;
|
|
136865
136865
|
}
|
|
136866
136866
|
var import_native_modules9 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
|
|
136867
|
-
var
|
|
136867
|
+
var import_react17 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
136868
136868
|
var import_react_native26 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
136869
136869
|
var import_native_modules4 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
|
|
136870
136870
|
var import_react_native9 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
@@ -137354,7 +137354,32 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137354
137354
|
}, [handler]);
|
|
137355
137355
|
}
|
|
137356
137356
|
var import_react_native13 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
137357
|
+
var import_react13 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
137358
|
+
var import_tds_react_native5 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
|
|
137359
|
+
var import_es_hangul2 = _$$_REQUIRE(_dependencyMap[11], "es-hangul");
|
|
137357
137360
|
var import_react12 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
137361
|
+
function useCloseConfirm() {
|
|
137362
|
+
var _getAppsInTossGlobals = getAppsInTossGlobals(),
|
|
137363
|
+
brandDisplayName = _getAppsInTossGlobals.brandDisplayName;
|
|
137364
|
+
var _ref19 = (0, import_tds_react_native5.useDialog)(),
|
|
137365
|
+
openConfirm = _ref19.openConfirm;
|
|
137366
|
+
return (0, import_react12.useCallback)(function () {
|
|
137367
|
+
var _ref20 = _asyncToGenerator(function* ({
|
|
137368
|
+
onEntered
|
|
137369
|
+
}) {
|
|
137370
|
+
return yield openConfirm({
|
|
137371
|
+
title: `${(0, import_es_hangul2.josa)(brandDisplayName, "\uC744/\uB97C")} \uC885\uB8CC\uD560\uAE4C\uC694?`,
|
|
137372
|
+
leftButton: "\uB2EB\uAE30",
|
|
137373
|
+
rightButton: "\uC885\uB8CC\uD558\uAE30",
|
|
137374
|
+
closeOnDimmerClick: true,
|
|
137375
|
+
onEntered
|
|
137376
|
+
});
|
|
137377
|
+
});
|
|
137378
|
+
return function (_x3) {
|
|
137379
|
+
return _ref20.apply(this, arguments);
|
|
137380
|
+
};
|
|
137381
|
+
}(), [brandDisplayName, openConfirm]);
|
|
137382
|
+
}
|
|
137358
137383
|
var EventEmitter = function () {
|
|
137359
137384
|
function EventEmitter() {
|
|
137360
137385
|
_classCallCheck(this, EventEmitter);
|
|
@@ -137406,8 +137431,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137406
137431
|
var import_react_native12 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
137407
137432
|
var NAVI_BAR_IMPRESSION_SCHEMA_ID = 1596837;
|
|
137408
137433
|
var NAVI_BAR_IMPRESSION_LOG_NAME = "appsintoss_app_visit__common_module::impression__navigation_bar";
|
|
137434
|
+
var CLOSE_POPUP_SHOW_SCHEMA_ID = 1644490;
|
|
137435
|
+
var CLOSE_POPUP_SHOW_LOG_NAME = "appsintoss_app_visit__common_module::popup__close_app";
|
|
137409
137436
|
var CLOSE_BUTTON_CLICK_SCHEMA_ID = 1596831;
|
|
137410
137437
|
var CLOSE_BUTTON_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::click__icon_close";
|
|
137438
|
+
var CLOSE_POPUP_CTA_CLICK_SCHEMA_ID = 1644492;
|
|
137439
|
+
var CLOSE_POPUP_CTA_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::popup__close_app::click__cta";
|
|
137411
137440
|
var HOME_BUTTON_CLICK_SCHEMA_ID = 1596839;
|
|
137412
137441
|
var HOME_BUTTON_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::click__icon_home";
|
|
137413
137442
|
function useNavigationBarLogging() {
|
|
@@ -137450,8 +137479,32 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137450
137479
|
}
|
|
137451
137480
|
});
|
|
137452
137481
|
};
|
|
137482
|
+
var logClosePopupShow = () => {
|
|
137483
|
+
sendLog({
|
|
137484
|
+
log_name: CLOSE_POPUP_SHOW_LOG_NAME,
|
|
137485
|
+
log_type: "popup",
|
|
137486
|
+
params: {
|
|
137487
|
+
...baseParams,
|
|
137488
|
+
schema_id: CLOSE_POPUP_SHOW_SCHEMA_ID
|
|
137489
|
+
}
|
|
137490
|
+
});
|
|
137491
|
+
};
|
|
137492
|
+
var logClosePopupCtaClick = confirm => {
|
|
137493
|
+
sendLog({
|
|
137494
|
+
log_name: CLOSE_POPUP_CTA_CLICK_LOG_NAME,
|
|
137495
|
+
log_type: "event",
|
|
137496
|
+
params: {
|
|
137497
|
+
...baseParams,
|
|
137498
|
+
close_yn: confirm ? "Y" : "N",
|
|
137499
|
+
schema_id: CLOSE_POPUP_CTA_CLICK_SCHEMA_ID,
|
|
137500
|
+
event_type: "click"
|
|
137501
|
+
}
|
|
137502
|
+
});
|
|
137503
|
+
};
|
|
137453
137504
|
return {
|
|
137454
137505
|
navBarImpression: logNavBarImpression,
|
|
137506
|
+
closePopupShow: logClosePopupShow,
|
|
137507
|
+
closePopupCtaClick: logClosePopupCtaClick,
|
|
137455
137508
|
closeButtonClick: logCloseButtonClick,
|
|
137456
137509
|
homeButtonClick: logHomeButtonClick
|
|
137457
137510
|
};
|
|
@@ -137460,41 +137513,63 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137460
137513
|
var backEventContext = (0, import_react_native13.useBackEventContext)();
|
|
137461
137514
|
var logging = useNavigationBarLogging();
|
|
137462
137515
|
var navigation = (0, import_react_native13.useNavigation)();
|
|
137463
|
-
|
|
137464
|
-
|
|
137465
|
-
|
|
137466
|
-
|
|
137467
|
-
|
|
137468
|
-
|
|
137469
|
-
|
|
137470
|
-
|
|
137471
|
-
|
|
137472
|
-
|
|
137473
|
-
|
|
137474
|
-
logging.homeButtonClick();
|
|
137475
|
-
if (homeEvent.hasSubscriptions()) {
|
|
137476
|
-
homeEvent.emit({});
|
|
137477
|
-
} else {
|
|
137478
|
-
navigation.navigate("/", {}, {
|
|
137479
|
-
pop: true
|
|
137516
|
+
var closeConfirm = useCloseConfirm();
|
|
137517
|
+
var global2 = getAppsInTossGlobals();
|
|
137518
|
+
return (0, import_react13.useMemo)(() => {
|
|
137519
|
+
var close = function () {
|
|
137520
|
+
var _ref21 = _asyncToGenerator(function* () {
|
|
137521
|
+
if (global2.appType !== "game") {
|
|
137522
|
+
(0, import_react_native13.closeView)();
|
|
137523
|
+
return;
|
|
137524
|
+
}
|
|
137525
|
+
var hasConfirmed = yield closeConfirm({
|
|
137526
|
+
onEntered: logging.closePopupShow
|
|
137480
137527
|
});
|
|
137528
|
+
logging.closePopupCtaClick(hasConfirmed);
|
|
137529
|
+
if (hasConfirmed) {
|
|
137530
|
+
(0, import_react_native13.closeView)();
|
|
137531
|
+
}
|
|
137532
|
+
});
|
|
137533
|
+
return function close() {
|
|
137534
|
+
return _ref21.apply(this, arguments);
|
|
137535
|
+
};
|
|
137536
|
+
}();
|
|
137537
|
+
return {
|
|
137538
|
+
handleBack: () => {
|
|
137539
|
+
if (backEventContext.hasBackEvent) {
|
|
137540
|
+
backEventContext.onBack();
|
|
137541
|
+
} else if (navigation.canGoBack()) {
|
|
137542
|
+
navigation.goBack();
|
|
137543
|
+
} else {
|
|
137544
|
+
close();
|
|
137545
|
+
}
|
|
137546
|
+
},
|
|
137547
|
+
handleHomeButtonClick: () => {
|
|
137548
|
+
logging.homeButtonClick();
|
|
137549
|
+
if (homeEvent.hasSubscriptions()) {
|
|
137550
|
+
homeEvent.emit({});
|
|
137551
|
+
} else {
|
|
137552
|
+
navigation.navigate("/", {}, {
|
|
137553
|
+
pop: true
|
|
137554
|
+
});
|
|
137555
|
+
}
|
|
137556
|
+
},
|
|
137557
|
+
handleCloseButtonClick: () => {
|
|
137558
|
+
logging.closeButtonClick();
|
|
137559
|
+
close();
|
|
137481
137560
|
}
|
|
137482
|
-
}
|
|
137483
|
-
|
|
137484
|
-
logging.closeButtonClick();
|
|
137485
|
-
(0, import_react_native13.closeView)();
|
|
137486
|
-
}
|
|
137487
|
-
}), [backEventContext, navigation, logging]);
|
|
137561
|
+
};
|
|
137562
|
+
}, [global2.appType, backEventContext, navigation, closeConfirm, logging]);
|
|
137488
137563
|
}
|
|
137489
137564
|
var import_native_modules8 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
|
|
137490
137565
|
var import_react_native18 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
137491
|
-
var
|
|
137566
|
+
var import_tds_react_native8 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
|
|
137492
137567
|
var import_private4 = _$$_REQUIRE(_dependencyMap[12], "@toss/tds-react-native/private");
|
|
137493
|
-
var
|
|
137568
|
+
var import_react14 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
137494
137569
|
var import_native_modules5 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
|
|
137495
137570
|
var import_react_native16 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
137571
|
+
var import_tds_react_native7 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
|
|
137496
137572
|
var import_tds_react_native6 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
|
|
137497
|
-
var import_tds_react_native5 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
|
|
137498
137573
|
var import_private3 = _$$_REQUIRE(_dependencyMap[12], "@toss/tds-react-native/private");
|
|
137499
137574
|
var import_react_native15 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
137500
137575
|
var import_react_native14 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
@@ -137577,7 +137652,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137577
137652
|
var logging = useMoreButtonBottomSheetLogging();
|
|
137578
137653
|
var brandPrimaryColorRGB = hexToRGB(globals.brandPrimaryColor);
|
|
137579
137654
|
var iconBackgroundColor = brandPrimaryColorRGB ? `rgba(${brandPrimaryColorRGB.join(",")},0.1)` : adaptive.grey100;
|
|
137580
|
-
return (0, import_jsx_runtime5.jsx)(
|
|
137655
|
+
return (0, import_jsx_runtime5.jsx)(import_tds_react_native6.ListRow, {
|
|
137581
137656
|
left: (0, import_jsx_runtime5.jsx)(import_react_native15.View, {
|
|
137582
137657
|
style: {
|
|
137583
137658
|
width: 30,
|
|
@@ -137589,14 +137664,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137589
137664
|
marginRight: 16,
|
|
137590
137665
|
backgroundColor: iconBackgroundColor
|
|
137591
137666
|
},
|
|
137592
|
-
children: iconName ? (0, import_jsx_runtime5.jsx)(
|
|
137667
|
+
children: iconName ? (0, import_jsx_runtime5.jsx)(import_tds_react_native6.Asset.Icon, {
|
|
137593
137668
|
frameShape: {
|
|
137594
137669
|
width: 20,
|
|
137595
137670
|
height: 20
|
|
137596
137671
|
},
|
|
137597
137672
|
color: globals.brandPrimaryColor,
|
|
137598
137673
|
name: iconName
|
|
137599
|
-
}) : (0, import_jsx_runtime5.jsx)(
|
|
137674
|
+
}) : (0, import_jsx_runtime5.jsx)(import_tds_react_native6.Asset.Image, {
|
|
137600
137675
|
frameShape: {
|
|
137601
137676
|
width: 20,
|
|
137602
137677
|
height: 20
|
|
@@ -137606,7 +137681,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137606
137681
|
}
|
|
137607
137682
|
})
|
|
137608
137683
|
}),
|
|
137609
|
-
contents: (0, import_jsx_runtime5.jsx)(
|
|
137684
|
+
contents: (0, import_jsx_runtime5.jsx)(import_tds_react_native6.ListRow.Texts, {
|
|
137610
137685
|
type: "1RowTypeA",
|
|
137611
137686
|
top: title,
|
|
137612
137687
|
topProps: {
|
|
@@ -137642,10 +137717,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137642
137717
|
}
|
|
137643
137718
|
function addParamsToUrl(url, params) {
|
|
137644
137719
|
var urlObj = new URL(url);
|
|
137645
|
-
for (var
|
|
137646
|
-
var
|
|
137647
|
-
var key =
|
|
137648
|
-
var value =
|
|
137720
|
+
for (var _ref22 of Object.entries(params)) {
|
|
137721
|
+
var _ref23 = _slicedToArray(_ref22, 2);
|
|
137722
|
+
var key = _ref23[0];
|
|
137723
|
+
var value = _ref23[1];
|
|
137649
137724
|
urlObj.searchParams.set(key, value);
|
|
137650
137725
|
}
|
|
137651
137726
|
return urlObj.toString();
|
|
@@ -137659,8 +137734,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137659
137734
|
function AppShareListMenu() {
|
|
137660
137735
|
var initialScheme = (0, import_react_native16.getSchemeUri)();
|
|
137661
137736
|
var isSandbox = (0, import_native_modules5.getOperationalEnvironment)() === "sandbox";
|
|
137662
|
-
var
|
|
137663
|
-
openConfirm =
|
|
137737
|
+
var _ref24 = (0, import_tds_react_native7.useDialog)(),
|
|
137738
|
+
openConfirm = _ref24.openConfirm;
|
|
137664
137739
|
var schemeForShare = addParamsToUrl(initialScheme, {
|
|
137665
137740
|
referrer: SHARE_SCHEME_REFERRER
|
|
137666
137741
|
});
|
|
@@ -137750,10 +137825,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137750
137825
|
function useMoreButtonBottomSheet() {
|
|
137751
137826
|
var globals = getAppsInTossGlobals();
|
|
137752
137827
|
var adaptive = (0, import_private4.useAdaptive)();
|
|
137753
|
-
var
|
|
137754
|
-
|
|
137755
|
-
itemList =
|
|
137756
|
-
setItemList =
|
|
137828
|
+
var _ref25 = (0, import_react14.useState)([]),
|
|
137829
|
+
_ref26 = _slicedToArray(_ref25, 2),
|
|
137830
|
+
itemList = _ref26[0],
|
|
137831
|
+
setItemList = _ref26[1];
|
|
137757
137832
|
var appUpdateDialog = useAppUpdateDialog();
|
|
137758
137833
|
var logging = useMoreButtonBottomSheetLogging();
|
|
137759
137834
|
var overlay = (0, import_private4.useOverlay)();
|
|
@@ -137762,7 +137837,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137762
137837
|
var isBottomSheetSupported = (0, import_native_modules8.isMinVersionSupported)(MIN_VERSION.BOTTOM_SHEET);
|
|
137763
137838
|
var isShareListMenuSupported = (0, import_native_modules8.isMinVersionSupported)(MIN_VERSION.SHARE_LIST_MENU);
|
|
137764
137839
|
var isSettingsMenuSupported = (0, import_native_modules8.isMinVersionSupported)(MIN_VERSION.SETTINGS_MENU);
|
|
137765
|
-
(0,
|
|
137840
|
+
(0, import_react14.useEffect)(() => {
|
|
137766
137841
|
if (!isBottomSheetSupported) {
|
|
137767
137842
|
return;
|
|
137768
137843
|
}
|
|
@@ -137774,7 +137849,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137774
137849
|
});
|
|
137775
137850
|
}, [isBottomSheetSupported]);
|
|
137776
137851
|
var onClickHandler = function () {
|
|
137777
|
-
var
|
|
137852
|
+
var _ref27 = _asyncToGenerator(function* () {
|
|
137778
137853
|
logging.open();
|
|
137779
137854
|
if (!isBottomSheetSupported) {
|
|
137780
137855
|
yield appUpdateDialog.open({
|
|
@@ -137793,9 +137868,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137793
137868
|
close();
|
|
137794
137869
|
};
|
|
137795
137870
|
return (0, import_jsx_runtime9.jsx)(BottomSheetImpressionArea, {
|
|
137796
|
-
children: (0, import_jsx_runtime9.jsx)(
|
|
137797
|
-
header: (0, import_jsx_runtime9.jsx)(
|
|
137798
|
-
title: (0, import_jsx_runtime9.jsx)(
|
|
137871
|
+
children: (0, import_jsx_runtime9.jsx)(import_tds_react_native8.BottomSheet.Root, {
|
|
137872
|
+
header: (0, import_jsx_runtime9.jsx)(import_tds_react_native8.ListHeader, {
|
|
137873
|
+
title: (0, import_jsx_runtime9.jsx)(import_tds_react_native8.ListHeader.TitleParagraph, {
|
|
137799
137874
|
color: adaptive.grey800,
|
|
137800
137875
|
fontWeight: "bold",
|
|
137801
137876
|
typography: "t5",
|
|
@@ -137803,7 +137878,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137803
137878
|
})
|
|
137804
137879
|
}),
|
|
137805
137880
|
open: isOpen,
|
|
137806
|
-
cta: (0, import_jsx_runtime9.jsx)(
|
|
137881
|
+
cta: (0, import_jsx_runtime9.jsx)(import_tds_react_native8.BottomSheet.CTA, {
|
|
137807
137882
|
size: "large",
|
|
137808
137883
|
type: "dark",
|
|
137809
137884
|
style: "weak",
|
|
@@ -137814,7 +137889,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137814
137889
|
}),
|
|
137815
137890
|
onClose: handleClose,
|
|
137816
137891
|
onExited: exit,
|
|
137817
|
-
children: (0, import_jsx_runtime9.jsxs)(
|
|
137892
|
+
children: (0, import_jsx_runtime9.jsxs)(import_tds_react_native8.List, {
|
|
137818
137893
|
rowSeparator: "none",
|
|
137819
137894
|
children: [itemList.map(item => (0, import_jsx_runtime9.jsx)(Menu, {
|
|
137820
137895
|
title: item.contactItemName,
|
|
@@ -137827,7 +137902,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137827
137902
|
});
|
|
137828
137903
|
});
|
|
137829
137904
|
return function onClickHandler() {
|
|
137830
|
-
return
|
|
137905
|
+
return _ref27.apply(this, arguments);
|
|
137831
137906
|
};
|
|
137832
137907
|
}();
|
|
137833
137908
|
return {
|
|
@@ -137838,7 +137913,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137838
137913
|
children
|
|
137839
137914
|
}) {
|
|
137840
137915
|
var logging = useMoreButtonBottomSheetLogging();
|
|
137841
|
-
(0,
|
|
137916
|
+
(0, import_react14.useEffect)(() => {
|
|
137842
137917
|
logging.show();
|
|
137843
137918
|
}, [logging]);
|
|
137844
137919
|
return (0, import_jsx_runtime9.jsx)(import_jsx_runtime9.Fragment, {
|
|
@@ -137847,8 +137922,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137847
137922
|
}
|
|
137848
137923
|
var import_react_native_safe_area_context = _$$_REQUIRE(_dependencyMap[13], "@granite-js/native/react-native-safe-area-context");
|
|
137849
137924
|
var import_react_native19 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
137850
|
-
var
|
|
137851
|
-
var
|
|
137925
|
+
var import_tds_react_native9 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
|
|
137926
|
+
var import_react15 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
137852
137927
|
var import_react_native20 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
137853
137928
|
var import_jsx_runtime10 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
137854
137929
|
function TopNavigation({
|
|
@@ -137858,9 +137933,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137858
137933
|
}) {
|
|
137859
137934
|
var insets = (0, import_react_native_safe_area_context.useSafeAreaInsets)();
|
|
137860
137935
|
var navigation = (0, import_react_native19.useNavigation)();
|
|
137861
|
-
(0,
|
|
137862
|
-
var
|
|
137863
|
-
navigationBar =
|
|
137936
|
+
(0, import_react15.useEffect)(() => {
|
|
137937
|
+
var _getAppsInTossGlobals2 = getAppsInTossGlobals(),
|
|
137938
|
+
navigationBar = _getAppsInTossGlobals2.navigationBar;
|
|
137864
137939
|
var parsedNavigationBar = navigationBar ? safeParseNavigationBar(navigationBar) : null;
|
|
137865
137940
|
var transparent = parsedNavigationBar?.transparentBackground ?? false;
|
|
137866
137941
|
var theme = parsedNavigationBar?.theme ?? "light";
|
|
@@ -137869,7 +137944,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137869
137944
|
header: () => (0, import_jsx_runtime10.jsxs)(import_react_native20.View, {
|
|
137870
137945
|
style: {
|
|
137871
137946
|
width: "100%",
|
|
137872
|
-
backgroundColor: transparent ? void 0 : theme === "light" ?
|
|
137947
|
+
backgroundColor: transparent ? void 0 : theme === "light" ? import_tds_react_native9.colors.lightThemeBackground : import_tds_react_native9.colors.darkThemeBackground
|
|
137873
137948
|
},
|
|
137874
137949
|
pointerEvents: "box-none",
|
|
137875
137950
|
children: [(0, import_jsx_runtime10.jsx)(import_react_native20.View, {
|
|
@@ -137948,7 +138023,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137948
138023
|
});
|
|
137949
138024
|
}
|
|
137950
138025
|
var BACK_BUTTON_XML = `<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" viewBox="0 0 24 24"><path d="m20.8 20.7c-.3 0-.6-.1-.8-.4l-7.5-7.5c-.5-.5-.5-1.2 0-1.7l7.5-7.5c.5-.5 1.2-.5 1.7 0s.5 1.2 0 1.7l-6.8 6.7 6.7 6.7c.5.5.5 1.2 0 1.7-.2.2-.5.3-.8.3z" fill="__COLOR__"/></svg>`;
|
|
137951
|
-
var
|
|
138026
|
+
var import_tds_react_native10 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
|
|
137952
138027
|
var import_react_native22 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
137953
138028
|
var import_jsx_runtime12 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
137954
138029
|
function HomeButton({
|
|
@@ -137965,10 +138040,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137965
138040
|
height: 34,
|
|
137966
138041
|
paddingLeft: 10,
|
|
137967
138042
|
paddingRight: 10,
|
|
137968
|
-
backgroundColor: theme === "light" ?
|
|
138043
|
+
backgroundColor: theme === "light" ? import_tds_react_native10.colors.greyOpacity50 : "rgba(0, 0, 1, 0.58)",
|
|
137969
138044
|
borderRadius: 99
|
|
137970
138045
|
},
|
|
137971
|
-
children: [children, (0, import_jsx_runtime12.jsx)(
|
|
138046
|
+
children: [children, (0, import_jsx_runtime12.jsx)(import_tds_react_native10.Icon, {
|
|
137972
138047
|
name: "icon-home-mono",
|
|
137973
138048
|
size: 18
|
|
137974
138049
|
})]
|
|
@@ -138010,7 +138085,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138010
138085
|
})]
|
|
138011
138086
|
});
|
|
138012
138087
|
}
|
|
138013
|
-
var
|
|
138088
|
+
var import_tds_react_native11 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
|
|
138014
138089
|
var import_react_native25 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
138015
138090
|
var import_jsx_runtime14 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
138016
138091
|
function Menu2({
|
|
@@ -138020,8 +138095,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138020
138095
|
onLongPressDots,
|
|
138021
138096
|
onPressClose
|
|
138022
138097
|
}) {
|
|
138023
|
-
var backgroundColor = theme === "light" ?
|
|
138024
|
-
var iconColor = theme === "light" ?
|
|
138098
|
+
var backgroundColor = theme === "light" ? import_tds_react_native11.colors.greyOpacity50 : "rgba(0, 0, 1, 0.58)";
|
|
138099
|
+
var iconColor = theme === "light" ? import_tds_react_native11.colors.greyOpacity600 : "rgba(253, 253, 255, 0.75)";
|
|
138025
138100
|
return (0, import_jsx_runtime14.jsxs)(import_react_native25.View, {
|
|
138026
138101
|
style: {
|
|
138027
138102
|
flexDirection: "row",
|
|
@@ -138040,13 +138115,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138040
138115
|
backgroundColor
|
|
138041
138116
|
},
|
|
138042
138117
|
onPress: () => {
|
|
138043
|
-
|
|
138118
|
+
import_tds_react_native11.tdsEvent.emit("navigationAccessoryEvent", {
|
|
138044
138119
|
id: accessoryButton.id
|
|
138045
138120
|
});
|
|
138046
138121
|
accessoryButton.onPress?.();
|
|
138047
138122
|
},
|
|
138048
138123
|
disabled: accessoryButton.disabled,
|
|
138049
|
-
children: (0, import_jsx_runtime14.jsx)(
|
|
138124
|
+
children: (0, import_jsx_runtime14.jsx)(import_tds_react_native11.Icon, {
|
|
138050
138125
|
name: accessoryButton.icon.name ?? "",
|
|
138051
138126
|
accessibilityLabel: accessoryButton.title,
|
|
138052
138127
|
color: iconColor,
|
|
@@ -138072,7 +138147,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138072
138147
|
children: [(0, import_jsx_runtime14.jsx)(import_react_native25.TouchableOpacity, {
|
|
138073
138148
|
onPress: onPressDots,
|
|
138074
138149
|
onLongPress: onLongPressDots,
|
|
138075
|
-
children: (0, import_jsx_runtime14.jsx)(
|
|
138150
|
+
children: (0, import_jsx_runtime14.jsx)(import_tds_react_native11.Icon, {
|
|
138076
138151
|
name: "icon-dots-mono",
|
|
138077
138152
|
accessibilityLabel: "\uB354\uBCF4\uAE30",
|
|
138078
138153
|
color: iconColor,
|
|
@@ -138082,11 +138157,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138082
138157
|
style: {
|
|
138083
138158
|
width: 1,
|
|
138084
138159
|
height: 16,
|
|
138085
|
-
backgroundColor: theme === "light" ?
|
|
138160
|
+
backgroundColor: theme === "light" ? import_tds_react_native11.colors.greyOpacity200 : "rgba(222, 222, 255, 0.19)"
|
|
138086
138161
|
}
|
|
138087
138162
|
}), (0, import_jsx_runtime14.jsx)(import_react_native25.TouchableOpacity, {
|
|
138088
138163
|
onPress: onPressClose,
|
|
138089
|
-
children: (0, import_jsx_runtime14.jsx)(
|
|
138164
|
+
children: (0, import_jsx_runtime14.jsx)(import_tds_react_native11.Icon, {
|
|
138090
138165
|
name: "icon-appsintoss-close-mono",
|
|
138091
138166
|
accessibilityLabel: "\uB2EB\uAE30",
|
|
138092
138167
|
color: iconColor,
|
|
@@ -138097,15 +138172,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138097
138172
|
})]
|
|
138098
138173
|
});
|
|
138099
138174
|
}
|
|
138100
|
-
var
|
|
138175
|
+
var import_react16 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
138101
138176
|
var import_jsx_runtime15 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
138102
138177
|
function NavigationBarImpressionArea({
|
|
138103
138178
|
children,
|
|
138104
138179
|
withHomeButton
|
|
138105
138180
|
}) {
|
|
138106
|
-
var hasLogged = (0,
|
|
138181
|
+
var hasLogged = (0, import_react16.useRef)(false);
|
|
138107
138182
|
var logging = useNavigationBarLogging();
|
|
138108
|
-
(0,
|
|
138183
|
+
(0, import_react16.useEffect)(() => {
|
|
138109
138184
|
if (hasLogged.current === false) {
|
|
138110
138185
|
logging.navBarImpression({
|
|
138111
138186
|
home_icon_yn: withHomeButton ? "Y" : "N"
|
|
@@ -138166,8 +138241,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138166
138241
|
var navigationEvent = useNavigationEvent();
|
|
138167
138242
|
var _useNavigationBarCont2 = useNavigationBarContext(),
|
|
138168
138243
|
navigationRightButton = _useNavigationBarCont2.navigationRightButton;
|
|
138169
|
-
var
|
|
138170
|
-
navigationBar =
|
|
138244
|
+
var _getAppsInTossGlobals3 = getAppsInTossGlobals(),
|
|
138245
|
+
navigationBar = _getAppsInTossGlobals3.navigationBar;
|
|
138171
138246
|
var parsedNavigationBar = navigationBar ? safeParseNavigationBar(navigationBar) : null;
|
|
138172
138247
|
useHardwareBackPress(navigationEvent.handleBack);
|
|
138173
138248
|
return (0, import_jsx_runtime17.jsx)(TopNavigation, {
|
|
@@ -138207,7 +138282,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138207
138282
|
function GameAppContainer({
|
|
138208
138283
|
children
|
|
138209
138284
|
}) {
|
|
138210
|
-
(0,
|
|
138285
|
+
(0, import_react17.useEffect)(() => {
|
|
138211
138286
|
if (import_react_native26.Platform.OS === "ios") {
|
|
138212
138287
|
(0, import_native_modules9.setIosSwipeGestureEnabled)({
|
|
138213
138288
|
isEnabled: false
|
|
@@ -138253,7 +138328,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138253
138328
|
...initialProps
|
|
138254
138329
|
}), (0, import_jsx_runtime19.jsx)(Container, {
|
|
138255
138330
|
...initialProps,
|
|
138256
|
-
children: (0, import_jsx_runtime19.jsx)(
|
|
138331
|
+
children: (0, import_jsx_runtime19.jsx)(import_tds_react_native12.TDSProvider, {
|
|
138257
138332
|
colorPreference: "light",
|
|
138258
138333
|
token: {
|
|
138259
138334
|
color: {
|
|
@@ -138335,32 +138410,44 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138335
138410
|
var import_user_scripts = _$$_REQUIRE(_dependencyMap[18], "@apps-in-toss/user-scripts");
|
|
138336
138411
|
var import_react_native_safe_area_context3 = _$$_REQUIRE(_dependencyMap[13], "@granite-js/native/react-native-safe-area-context");
|
|
138337
138412
|
var import_react_native41 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
138338
|
-
var
|
|
138339
|
-
var
|
|
138413
|
+
var import_tds_react_native16 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
|
|
138414
|
+
var import_react28 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
138340
138415
|
var import_react_native42 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
138341
138416
|
var import_native_modules11 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
|
|
138342
138417
|
var import_react_native_webview = _$$_REQUIRE(_dependencyMap[19], "@granite-js/native/react-native-webview");
|
|
138343
|
-
var
|
|
138418
|
+
var import_react19 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
138344
138419
|
var import_react_native30 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
138345
138420
|
var import_react_native29 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
138346
|
-
var
|
|
138347
|
-
var
|
|
138421
|
+
var import_tds_react_native13 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
|
|
138422
|
+
var import_es_hangul3 = _$$_REQUIRE(_dependencyMap[11], "es-hangul");
|
|
138423
|
+
var import_react18 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
138348
138424
|
var import_jsx_runtime20 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
138349
138425
|
function GameWebviewNavigationBar() {
|
|
138350
|
-
var
|
|
138351
|
-
openConfirm =
|
|
138426
|
+
var _ref28 = (0, import_tds_react_native13.useDialog)(),
|
|
138427
|
+
openConfirm = _ref28.openConfirm;
|
|
138428
|
+
var global2 = getAppsInTossGlobals();
|
|
138352
138429
|
var logging = useNavigationBarLogging();
|
|
138353
138430
|
var _useMoreButtonBottomS3 = useMoreButtonBottomSheet(),
|
|
138354
138431
|
openMoreButtonBottomSheet = _useMoreButtonBottomS3.open;
|
|
138355
138432
|
var _useNavigationBarCont3 = useNavigationBarContext(),
|
|
138356
138433
|
navigationRightButton = _useNavigationBarCont3.navigationRightButton;
|
|
138357
|
-
var
|
|
138358
|
-
navigationBar =
|
|
138434
|
+
var _getAppsInTossGlobals4 = getAppsInTossGlobals(),
|
|
138435
|
+
navigationBar = _getAppsInTossGlobals4.navigationBar;
|
|
138359
138436
|
var parsedNavigationBar = navigationBar ? safeParseNavigationBar(navigationBar) : null;
|
|
138360
|
-
var handleGameWebviewClose = (0,
|
|
138437
|
+
var handleGameWebviewClose = (0, import_react18.useCallback)(_asyncToGenerator(function* () {
|
|
138361
138438
|
logging.closeButtonClick();
|
|
138362
|
-
|
|
138363
|
-
|
|
138439
|
+
var isConfirmed = yield openConfirm({
|
|
138440
|
+
title: `${(0, import_es_hangul3.josa)(global2.brandDisplayName, "\uC744/\uB97C")} \uC885\uB8CC\uD560\uAE4C\uC694?`,
|
|
138441
|
+
leftButton: "\uB2EB\uAE30",
|
|
138442
|
+
rightButton: "\uC885\uB8CC\uD558\uAE30",
|
|
138443
|
+
closeOnDimmerClick: true,
|
|
138444
|
+
onEntered: logging.closePopupShow
|
|
138445
|
+
});
|
|
138446
|
+
logging.closePopupCtaClick(isConfirmed);
|
|
138447
|
+
if (isConfirmed) {
|
|
138448
|
+
(0, import_react_native29.closeView)();
|
|
138449
|
+
}
|
|
138450
|
+
}), [global2.brandDisplayName, logging, openConfirm]);
|
|
138364
138451
|
return (0, import_jsx_runtime20.jsx)(TopNavigation, {
|
|
138365
138452
|
right: (0, import_jsx_runtime20.jsx)(Menu2, {
|
|
138366
138453
|
theme: parsedNavigationBar?.theme ?? "dark",
|
|
@@ -138371,8 +138458,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138371
138458
|
});
|
|
138372
138459
|
}
|
|
138373
138460
|
var import_jsx_runtime21 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
138374
|
-
var GameWebView = (0,
|
|
138375
|
-
(0,
|
|
138461
|
+
var GameWebView = (0, import_react19.forwardRef)(function GameWebView2(props, ref) {
|
|
138462
|
+
(0, import_react19.useEffect)(() => {
|
|
138376
138463
|
if (import_react_native30.Platform.OS === "ios") {
|
|
138377
138464
|
(0, import_native_modules11.setIosSwipeGestureEnabled)({
|
|
138378
138465
|
isEnabled: false
|
|
@@ -138398,9 +138485,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138398
138485
|
});
|
|
138399
138486
|
});
|
|
138400
138487
|
var import_react_native_webview2 = _$$_REQUIRE(_dependencyMap[19], "@granite-js/native/react-native-webview");
|
|
138401
|
-
var
|
|
138488
|
+
var import_react21 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
138402
138489
|
var import_react_native31 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
138403
|
-
var
|
|
138490
|
+
var import_react20 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
138404
138491
|
var import_jsx_runtime22 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
138405
138492
|
function PartnerWebviewNavigationBar({
|
|
138406
138493
|
onBackButtonClick,
|
|
@@ -138416,7 +138503,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138416
138503
|
var theme = parsedNavigationBar?.theme ?? "light";
|
|
138417
138504
|
var _useNavigationBarCont4 = useNavigationBarContext(),
|
|
138418
138505
|
navigationRightButton = _useNavigationBarCont4.navigationRightButton;
|
|
138419
|
-
var handleClose = (0,
|
|
138506
|
+
var handleClose = (0, import_react20.useCallback)(_asyncToGenerator(function* () {
|
|
138420
138507
|
logging.closeButtonClick();
|
|
138421
138508
|
(0, import_react_native31.closeView)();
|
|
138422
138509
|
}), [logging]);
|
|
@@ -138450,7 +138537,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138450
138537
|
});
|
|
138451
138538
|
}
|
|
138452
138539
|
var import_jsx_runtime23 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
138453
|
-
var PartnerWebView = (0,
|
|
138540
|
+
var PartnerWebView = (0, import_react21.forwardRef)(function PartnerWebViewScreen({
|
|
138454
138541
|
onBackButtonClick,
|
|
138455
138542
|
onHomeButtonClick,
|
|
138456
138543
|
...webViewProps
|
|
@@ -138862,7 +138949,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138862
138949
|
}
|
|
138863
138950
|
showFullScreenAd.isSupported = import_native_modules14.GoogleAdMob.showAppsInTossAdMob.isSupported;
|
|
138864
138951
|
var import_react_native34 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
138865
|
-
function tossAdEventLog(
|
|
138952
|
+
function tossAdEventLog(_x4) {
|
|
138866
138953
|
return _tossAdEventLog.apply(this, arguments);
|
|
138867
138954
|
}
|
|
138868
138955
|
function _tossAdEventLog() {
|
|
@@ -138883,7 +138970,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138883
138970
|
});
|
|
138884
138971
|
return _tossAdEventLog.apply(this, arguments);
|
|
138885
138972
|
}
|
|
138886
|
-
var
|
|
138973
|
+
var import_react22 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
138887
138974
|
function serializeError(error) {
|
|
138888
138975
|
return JSON.stringify(error, (_, value) => {
|
|
138889
138976
|
if (value instanceof Error) {
|
|
@@ -138914,12 +139001,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138914
139001
|
return;
|
|
138915
139002
|
}
|
|
138916
139003
|
var wrappedFunc = function () {
|
|
138917
|
-
var
|
|
139004
|
+
var _ref31 = _asyncToGenerator(function* (...args2) {
|
|
138918
139005
|
var result = yield func(...args2);
|
|
138919
139006
|
return result;
|
|
138920
139007
|
});
|
|
138921
139008
|
return function wrappedFunc() {
|
|
138922
|
-
return
|
|
139009
|
+
return _ref31.apply(this, arguments);
|
|
138923
139010
|
};
|
|
138924
139011
|
}();
|
|
138925
139012
|
wrappedFunc(...args).then(result => {
|
|
@@ -138940,12 +139027,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138940
139027
|
asyncHandlerMap,
|
|
138941
139028
|
eventListenerMap
|
|
138942
139029
|
}) {
|
|
138943
|
-
var ref = (0,
|
|
138944
|
-
var injectedJavaScript = (0,
|
|
139030
|
+
var ref = (0, import_react22.useRef)(null);
|
|
139031
|
+
var injectedJavaScript = (0, import_react22.useMemo)(() => `window.__CONSTANT_HANDLER_MAP = ${JSON.stringify(Object.entries(constantHandlerMap).reduce((acc, [key, value]) => {
|
|
138945
139032
|
acc[key] = typeof value === "function" ? value() : value;
|
|
138946
139033
|
return acc;
|
|
138947
139034
|
}, {}))};`, [constantHandlerMap]);
|
|
138948
|
-
(0,
|
|
139035
|
+
(0, import_react22.useEffect)(() => {
|
|
138949
139036
|
ref.current?.injectJavaScript(injectedJavaScript);
|
|
138950
139037
|
}, [injectedJavaScript]);
|
|
138951
139038
|
var createHandleOnEvent = (functionName, eventId) => response => {
|
|
@@ -138959,8 +139046,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138959
139046
|
window.__GRANITE_NATIVE_EMITTER.emit('${functionName}/onError/${eventId}', ${serializedError});
|
|
138960
139047
|
`);
|
|
138961
139048
|
};
|
|
138962
|
-
var $onMessage = (0,
|
|
138963
|
-
var
|
|
139049
|
+
var $onMessage = (0, import_react22.useCallback)(function () {
|
|
139050
|
+
var _ref32 = _asyncToGenerator(function* (e) {
|
|
138964
139051
|
onMessage?.(e);
|
|
138965
139052
|
var data = parseNativeEventData(e.nativeEvent.data);
|
|
138966
139053
|
if (typeof data !== "object" || data === null || typeof data.functionName !== "string" || typeof data.eventId !== "string" || typeof data.type !== "string" || !["addEventListener", "removeEventListener", "method"].includes(data.type)) {
|
|
@@ -139002,8 +139089,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139002
139089
|
}
|
|
139003
139090
|
}
|
|
139004
139091
|
});
|
|
139005
|
-
return function (
|
|
139006
|
-
return
|
|
139092
|
+
return function (_x5) {
|
|
139093
|
+
return _ref32.apply(this, arguments);
|
|
139007
139094
|
};
|
|
139008
139095
|
}(), [onMessage]);
|
|
139009
139096
|
return {
|
|
@@ -139021,20 +139108,22 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139021
139108
|
}
|
|
139022
139109
|
}
|
|
139023
139110
|
var import_react_native_safe_area_context2 = _$$_REQUIRE(_dependencyMap[13], "@granite-js/native/react-native-safe-area-context");
|
|
139024
|
-
var
|
|
139111
|
+
var import_react23 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
139025
139112
|
function useSafeAreaInsetsEvent() {
|
|
139026
139113
|
var insets = (0, import_react_native_safe_area_context2.useSafeAreaInsets)();
|
|
139027
|
-
(0,
|
|
139114
|
+
(0, import_react23.useEffect)(() => {
|
|
139028
139115
|
safeAreaInsetsChange.emit(insets);
|
|
139029
139116
|
}, [insets]);
|
|
139030
|
-
(0,
|
|
139117
|
+
(0, import_react23.useEffect)(() => {
|
|
139031
139118
|
return () => safeAreaInsetsChange.clearSubscriptions();
|
|
139032
139119
|
}, []);
|
|
139033
139120
|
return safeAreaInsetsChange;
|
|
139034
139121
|
}
|
|
139035
139122
|
var import_react_native35 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
139123
|
+
var import_tds_react_native14 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
|
|
139124
|
+
var import_es_hangul4 = _$$_REQUIRE(_dependencyMap[11], "es-hangul");
|
|
139125
|
+
var import_react25 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
139036
139126
|
var import_react24 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
139037
|
-
var import_react23 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
139038
139127
|
var INITIAL_STATE = {
|
|
139039
139128
|
stack: [],
|
|
139040
139129
|
index: -1
|
|
@@ -139083,11 +139172,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139083
139172
|
}
|
|
139084
139173
|
}
|
|
139085
139174
|
function useWebViewHistory() {
|
|
139086
|
-
var
|
|
139087
|
-
|
|
139088
|
-
state =
|
|
139089
|
-
dispatch =
|
|
139090
|
-
var onNavigationStateChange = (0,
|
|
139175
|
+
var _ref33 = (0, import_react24.useReducer)(reducer, INITIAL_STATE),
|
|
139176
|
+
_ref34 = _slicedToArray(_ref33, 2),
|
|
139177
|
+
state = _ref34[0],
|
|
139178
|
+
dispatch = _ref34[1];
|
|
139179
|
+
var onNavigationStateChange = (0, import_react24.useCallback)(({
|
|
139091
139180
|
url,
|
|
139092
139181
|
canGoForward: canGoForward2
|
|
139093
139182
|
}) => {
|
|
@@ -139097,7 +139186,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139097
139186
|
canGoForward: canGoForward2
|
|
139098
139187
|
});
|
|
139099
139188
|
}, []);
|
|
139100
|
-
var
|
|
139189
|
+
var _ref35 = (0, import_react24.useMemo)(() => {
|
|
139101
139190
|
var canBack = state.index > 0;
|
|
139102
139191
|
var canFwd = state.index >= 0 && state.index < state.stack.length - 1;
|
|
139103
139192
|
return {
|
|
@@ -139105,8 +139194,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139105
139194
|
canGoForward: canFwd
|
|
139106
139195
|
};
|
|
139107
139196
|
}, [state.index, state.stack.length]),
|
|
139108
|
-
canGoBack =
|
|
139109
|
-
canGoForward =
|
|
139197
|
+
canGoBack = _ref35.canGoBack,
|
|
139198
|
+
canGoForward = _ref35.canGoForward;
|
|
139110
139199
|
return {
|
|
139111
139200
|
onNavigationStateChange,
|
|
139112
139201
|
hasHistory: canGoBack,
|
|
@@ -139117,19 +139206,22 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139117
139206
|
var _useWebViewHistory = useWebViewHistory(),
|
|
139118
139207
|
hasHistory = _useWebViewHistory.hasHistory,
|
|
139119
139208
|
onNavigationStateChange = _useWebViewHistory.onNavigationStateChange;
|
|
139120
|
-
var
|
|
139121
|
-
webBackHandlersRef =
|
|
139122
|
-
hasWebBackEvent =
|
|
139123
|
-
addWebBackEventListener =
|
|
139124
|
-
removeWebBackEventListener =
|
|
139209
|
+
var _ref36 = (0, import_react_native35.useBackEventState)(),
|
|
139210
|
+
webBackHandlersRef = _ref36.handlersRef,
|
|
139211
|
+
hasWebBackEvent = _ref36.hasBackEvent,
|
|
139212
|
+
addWebBackEventListener = _ref36.addEventListener,
|
|
139213
|
+
removeWebBackEventListener = _ref36.removeEventListener;
|
|
139125
139214
|
var logging = useNavigationBarLogging();
|
|
139126
|
-
var
|
|
139215
|
+
var _ref37 = (0, import_tds_react_native14.useDialog)(),
|
|
139216
|
+
openConfirm = _ref37.openConfirm;
|
|
139217
|
+
var global2 = getAppsInTossGlobals();
|
|
139218
|
+
var addEventListener = (0, import_react25.useCallback)(handler => {
|
|
139127
139219
|
addWebBackEventListener(handler);
|
|
139128
139220
|
}, [addWebBackEventListener]);
|
|
139129
|
-
var removeEventListener = (0,
|
|
139221
|
+
var removeEventListener = (0, import_react25.useCallback)(handler => {
|
|
139130
139222
|
removeWebBackEventListener(handler);
|
|
139131
139223
|
}, [removeWebBackEventListener]);
|
|
139132
|
-
var handleWebBack = (0,
|
|
139224
|
+
var handleWebBack = (0, import_react25.useCallback)(_asyncToGenerator(function* () {
|
|
139133
139225
|
if (hasWebBackEvent) {
|
|
139134
139226
|
for (var handler of webBackHandlersRef) {
|
|
139135
139227
|
handler();
|
|
@@ -139139,10 +139231,24 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139139
139231
|
if (hasHistory) {
|
|
139140
139232
|
webViewRef.current?.injectJavaScript("window.history.back();");
|
|
139141
139233
|
} else {
|
|
139142
|
-
(
|
|
139234
|
+
if (global2.webViewType !== "game") {
|
|
139235
|
+
(0, import_react_native35.closeView)();
|
|
139236
|
+
return;
|
|
139237
|
+
}
|
|
139238
|
+
var isConfirmed = yield openConfirm({
|
|
139239
|
+
title: `${(0, import_es_hangul4.josa)(global2.brandDisplayName, "\uC744/\uB97C")} \uC885\uB8CC\uD560\uAE4C\uC694?`,
|
|
139240
|
+
leftButton: "\uB2EB\uAE30",
|
|
139241
|
+
rightButton: "\uC885\uB8CC\uD558\uAE30",
|
|
139242
|
+
closeOnDimmerClick: true,
|
|
139243
|
+
onEntered: logging.closePopupShow
|
|
139244
|
+
});
|
|
139245
|
+
logging.closePopupCtaClick(isConfirmed);
|
|
139246
|
+
if (isConfirmed) {
|
|
139247
|
+
(0, import_react_native35.closeView)();
|
|
139248
|
+
}
|
|
139143
139249
|
}
|
|
139144
|
-
}), [hasHistory, hasWebBackEvent, webBackHandlersRef, logging, webViewRef]);
|
|
139145
|
-
var handleWebHome = (0,
|
|
139250
|
+
}), [global2.webViewType, global2.brandDisplayName, hasHistory, hasWebBackEvent, webBackHandlersRef, logging, openConfirm, webViewRef]);
|
|
139251
|
+
var handleWebHome = (0, import_react25.useCallback)(() => {
|
|
139146
139252
|
logging.homeButtonClick();
|
|
139147
139253
|
if (homeEvent.hasSubscriptions()) {
|
|
139148
139254
|
homeEvent.emit({});
|
|
@@ -139155,7 +139261,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139155
139261
|
})();
|
|
139156
139262
|
`);
|
|
139157
139263
|
}, [hasWebBackEvent, webBackHandlersRef, logging, webViewInitialURL, webViewRef]);
|
|
139158
|
-
return (0,
|
|
139264
|
+
return (0, import_react25.useMemo)(() => ({
|
|
139159
139265
|
addEventListener,
|
|
139160
139266
|
removeEventListener,
|
|
139161
139267
|
handleWebBack,
|
|
@@ -139310,8 +139416,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139310
139416
|
}) {
|
|
139311
139417
|
var platform = (0, import_native_modules15.getPlatformOS)();
|
|
139312
139418
|
var appVersion = (0, import_native_modules15.getTossAppVersion)();
|
|
139313
|
-
var
|
|
139314
|
-
fontScale =
|
|
139419
|
+
var _ref39 = (0, import_react_native36.useWindowDimensions)(),
|
|
139420
|
+
fontScale = _ref39.fontScale;
|
|
139315
139421
|
var platformString = platform === "ios" ? "iPhone" : "Android phone";
|
|
139316
139422
|
var fontA11y = mapFontScaleToCategory(fontScale, platform);
|
|
139317
139423
|
var normalizedFontScale = convertToAndroidStyleScale(fontScale, platform);
|
|
@@ -139319,18 +139425,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139319
139425
|
}
|
|
139320
139426
|
var import_native_modules16 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
|
|
139321
139427
|
var import_react_native37 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
139322
|
-
var
|
|
139428
|
+
var import_react26 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
139323
139429
|
function useGeolocation({
|
|
139324
139430
|
accuracy,
|
|
139325
139431
|
distanceInterval,
|
|
139326
139432
|
timeInterval
|
|
139327
139433
|
}) {
|
|
139328
139434
|
var isVisible = (0, import_react_native37.useVisibility)();
|
|
139329
|
-
var
|
|
139330
|
-
|
|
139331
|
-
location =
|
|
139332
|
-
setLocation =
|
|
139333
|
-
(0,
|
|
139435
|
+
var _ref40 = (0, import_react26.useState)(null),
|
|
139436
|
+
_ref41 = _slicedToArray(_ref40, 2),
|
|
139437
|
+
location = _ref41[0],
|
|
139438
|
+
setLocation = _ref41[1];
|
|
139439
|
+
(0, import_react26.useEffect)(() => {
|
|
139334
139440
|
if (!isVisible) {
|
|
139335
139441
|
return;
|
|
139336
139442
|
}
|
|
@@ -139347,17 +139453,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139347
139453
|
return location;
|
|
139348
139454
|
}
|
|
139349
139455
|
var import_react_native38 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
139350
|
-
var
|
|
139456
|
+
var import_react27 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
139351
139457
|
function useWaitForReturnNavigator() {
|
|
139352
|
-
var callbacks = (0,
|
|
139458
|
+
var callbacks = (0, import_react27.useRef)([]).current;
|
|
139353
139459
|
var navigation = (0, import_react_native38.useNavigation)();
|
|
139354
|
-
var startNavigating = (0,
|
|
139460
|
+
var startNavigating = (0, import_react27.useCallback)((route, params) => {
|
|
139355
139461
|
return new Promise(resolve => {
|
|
139356
139462
|
callbacks.push(resolve);
|
|
139357
139463
|
navigation.navigate(route, params);
|
|
139358
139464
|
});
|
|
139359
139465
|
}, [callbacks, navigation]);
|
|
139360
|
-
var handleVisibilityChange = (0,
|
|
139466
|
+
var handleVisibilityChange = (0, import_react27.useCallback)(state => {
|
|
139361
139467
|
if (state === "visible" && callbacks.length > 0) {
|
|
139362
139468
|
for (var callback of callbacks) {
|
|
139363
139469
|
callback();
|
|
@@ -139379,9 +139485,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139379
139485
|
}
|
|
139380
139486
|
var import_native_modules17 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
|
|
139381
139487
|
var import_react_native39 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
139382
|
-
var
|
|
139488
|
+
var import_tds_react_native15 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
|
|
139383
139489
|
function useHandleWebViewProcessDidTerminate(webViewRef) {
|
|
139384
|
-
var toast = (0,
|
|
139490
|
+
var toast = (0, import_tds_react_native15.useToast)();
|
|
139385
139491
|
return () => {
|
|
139386
139492
|
webViewDebugLog("AppsInTossWebViewProcessDidTerminate", {});
|
|
139387
139493
|
toast.open("\uBB38\uC81C\uAC00 \uC0DD\uACA8\uC11C \uBBF8\uB2C8\uC571\uC744 \uB2E4\uC2DC \uC2DC\uC791\uD588\uC5B4\uC694.", {
|
|
@@ -139391,7 +139497,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139391
139497
|
webViewRef.current?.reload();
|
|
139392
139498
|
};
|
|
139393
139499
|
}
|
|
139394
|
-
function webViewMemoryDebugLog(
|
|
139500
|
+
function webViewMemoryDebugLog(_x6) {
|
|
139395
139501
|
return _webViewMemoryDebugLog.apply(this, arguments);
|
|
139396
139502
|
}
|
|
139397
139503
|
function _webViewMemoryDebugLog() {
|
|
@@ -139485,23 +139591,23 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139485
139591
|
var TYPES = ["partner", "external", "game"];
|
|
139486
139592
|
var WEBVIEW_TYPES = {
|
|
139487
139593
|
partner: PartnerWebView,
|
|
139488
|
-
external:
|
|
139594
|
+
external: import_tds_react_native16.ExternalWebViewScreen,
|
|
139489
139595
|
game: GameWebView
|
|
139490
139596
|
};
|
|
139491
139597
|
function mergeSchemeQueryParamsInto(url) {
|
|
139492
139598
|
var baseUrl = new URL(url);
|
|
139493
139599
|
var schemeUrl = new URL((0, import_react_native41.getSchemeUri)());
|
|
139494
139600
|
var resultUrl = new URL(schemeUrl.pathname, baseUrl.origin);
|
|
139495
|
-
for (var
|
|
139496
|
-
var
|
|
139497
|
-
var key =
|
|
139498
|
-
var value =
|
|
139601
|
+
for (var _ref42 of baseUrl.searchParams.entries()) {
|
|
139602
|
+
var _ref43 = _slicedToArray(_ref42, 2);
|
|
139603
|
+
var key = _ref43[0];
|
|
139604
|
+
var value = _ref43[1];
|
|
139499
139605
|
resultUrl.searchParams.set(key, value);
|
|
139500
139606
|
}
|
|
139501
|
-
for (var
|
|
139502
|
-
var
|
|
139503
|
-
var _key =
|
|
139504
|
-
var _value =
|
|
139607
|
+
for (var _ref44 of schemeUrl.searchParams.entries()) {
|
|
139608
|
+
var _ref45 = _slicedToArray(_ref44, 2);
|
|
139609
|
+
var _key = _ref45[0];
|
|
139610
|
+
var _value = _ref45[1];
|
|
139505
139611
|
resultUrl.searchParams.set(_key, _value);
|
|
139506
139612
|
}
|
|
139507
139613
|
return resultUrl;
|
|
@@ -139511,8 +139617,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139511
139617
|
var devUrl = `http://${local.host}:${local.port}`;
|
|
139512
139618
|
return mergeSchemeQueryParamsInto(devUrl);
|
|
139513
139619
|
}
|
|
139514
|
-
var
|
|
139515
|
-
rawUrl =
|
|
139620
|
+
var _ref46 = (0, import_native_modules18.safeSyncPostMessage)("getWebBundleURL", {}),
|
|
139621
|
+
rawUrl = _ref46.url;
|
|
139516
139622
|
var url = mergeSchemeQueryParamsInto(rawUrl);
|
|
139517
139623
|
var deploymentId = env.getDeploymentId();
|
|
139518
139624
|
if (deploymentId) {
|
|
@@ -139529,17 +139635,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139529
139635
|
if (!TYPES.includes(type)) {
|
|
139530
139636
|
throw new Error(`Invalid WebView type: '${type}'`);
|
|
139531
139637
|
}
|
|
139532
|
-
var webViewRef = (0,
|
|
139533
|
-
var url = (0,
|
|
139638
|
+
var webViewRef = (0, import_react28.useRef)(null);
|
|
139639
|
+
var url = (0, import_react28.useMemo)(() => getWebViewURL(local), [local]);
|
|
139534
139640
|
var webBackHandler = useWebBackHandler(url, webViewRef);
|
|
139535
139641
|
var global2 = getAppsInTossGlobals();
|
|
139536
139642
|
var insets = (0, import_react_native_safe_area_context3.useSafeAreaInsets)();
|
|
139537
139643
|
var navigationBarContext = useNavigationBarContext();
|
|
139538
139644
|
var safeAreaInsetsEvent = useSafeAreaInsetsEvent();
|
|
139539
|
-
var
|
|
139540
|
-
|
|
139541
|
-
allowsBackForwardNavigationGestures =
|
|
139542
|
-
setAllowsBackForwardNavigationGestures =
|
|
139645
|
+
var _ref47 = (0, import_react28.useState)(props.allowsBackForwardNavigationGestures),
|
|
139646
|
+
_ref48 = _slicedToArray(_ref47, 2),
|
|
139647
|
+
allowsBackForwardNavigationGestures = _ref48[0],
|
|
139648
|
+
setAllowsBackForwardNavigationGestures = _ref48[1];
|
|
139543
139649
|
var handler = useBridgeHandler({
|
|
139544
139650
|
onMessage,
|
|
139545
139651
|
eventListenerMap: {
|
|
@@ -139547,7 +139653,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139547
139653
|
navigationAccessoryEvent: ({
|
|
139548
139654
|
onEvent,
|
|
139549
139655
|
onError
|
|
139550
|
-
}) =>
|
|
139656
|
+
}) => import_tds_react_native16.tdsEvent.addEventListener("navigationAccessoryEvent", {
|
|
139551
139657
|
onEvent,
|
|
139552
139658
|
onError
|
|
139553
139659
|
}),
|
|
@@ -139617,19 +139723,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139617
139723
|
return appsInTossAsyncBridges.setIosSwipeGestureEnabled(options);
|
|
139618
139724
|
},
|
|
139619
139725
|
addAccessoryButton: function () {
|
|
139620
|
-
var
|
|
139726
|
+
var _ref49 = _asyncToGenerator(function* (params) {
|
|
139621
139727
|
return navigationBarContext.addNavigationRightButton(params);
|
|
139622
139728
|
});
|
|
139623
|
-
return function addAccessoryButton(
|
|
139624
|
-
return
|
|
139729
|
+
return function addAccessoryButton(_x7) {
|
|
139730
|
+
return _ref49.apply(this, arguments);
|
|
139625
139731
|
};
|
|
139626
139732
|
}(),
|
|
139627
139733
|
removeAccessoryButton: function () {
|
|
139628
|
-
var
|
|
139734
|
+
var _ref50 = _asyncToGenerator(function* () {
|
|
139629
139735
|
return navigationBarContext.removeNavigationRightButton();
|
|
139630
139736
|
});
|
|
139631
139737
|
return function removeAccessoryButton() {
|
|
139632
|
-
return
|
|
139738
|
+
return _ref50.apply(this, arguments);
|
|
139633
139739
|
};
|
|
139634
139740
|
}(),
|
|
139635
139741
|
requestPermission: appsInTossAsyncBridges.requestPermission,
|
|
@@ -139656,16 +139762,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139656
139762
|
tossAdEventLog,
|
|
139657
139763
|
memoryDebugLog: webViewMemoryDebugLog,
|
|
139658
139764
|
debugLog: function () {
|
|
139659
|
-
var
|
|
139765
|
+
var _ref51 = _asyncToGenerator(function* (event) {
|
|
139660
139766
|
sendLog(event);
|
|
139661
139767
|
});
|
|
139662
|
-
return function debugLog(
|
|
139663
|
-
return
|
|
139768
|
+
return function debugLog(_x8) {
|
|
139769
|
+
return _ref51.apply(this, arguments);
|
|
139664
139770
|
};
|
|
139665
139771
|
}()
|
|
139666
139772
|
}
|
|
139667
139773
|
});
|
|
139668
|
-
var headerPropForExternalWebView = (0,
|
|
139774
|
+
var headerPropForExternalWebView = (0, import_react28.useMemo)(() => {
|
|
139669
139775
|
var parsedNavigationBar = global2.navigationBar != null ? safeParseNavigationBar(global2.navigationBar) : null;
|
|
139670
139776
|
var initialAccessoryButton = parsedNavigationBar?.initialAccessoryButton;
|
|
139671
139777
|
var withBackButton = parsedNavigationBar?.withBackButton ?? true;
|
|
@@ -139686,7 +139792,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139686
139792
|
colorPreference: "light"
|
|
139687
139793
|
});
|
|
139688
139794
|
var refs = mergeRefs(handler.ref, webViewRef);
|
|
139689
|
-
(0,
|
|
139795
|
+
(0, import_react28.useEffect)(() => {
|
|
139690
139796
|
var callback = () => {
|
|
139691
139797
|
webBackHandler.handleWebBack();
|
|
139692
139798
|
return true;
|
|
@@ -139749,7 +139855,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139749
139855
|
__reExport(src_exports, _$$_REQUIRE(_dependencyMap[20], "@apps-in-toss/types"), module.exports);
|
|
139750
139856
|
var import_types = _$$_REQUIRE(_dependencyMap[20], "@apps-in-toss/types");
|
|
139751
139857
|
var import_react_native46 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
139752
|
-
var
|
|
139858
|
+
var import_react31 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
139753
139859
|
var import_react_native47 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
139754
139860
|
var SDK_ID = "106";
|
|
139755
139861
|
var LIST_BANNER_STYLE_ID = "1";
|
|
@@ -139936,7 +140042,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139936
140042
|
function isStructurallyValidAd(ad) {
|
|
139937
140043
|
return Boolean(ad && ad.creative && typeof ad.creative === "object");
|
|
139938
140044
|
}
|
|
139939
|
-
function loadAd(
|
|
140045
|
+
function loadAd(_x9) {
|
|
139940
140046
|
return _loadAd.apply(this, arguments);
|
|
139941
140047
|
}
|
|
139942
140048
|
function _loadAd() {
|
|
@@ -140122,7 +140228,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140122
140228
|
globalEventDeduplicator.markTracked(this.requestId, this.creativeId, eventType);
|
|
140123
140229
|
}
|
|
140124
140230
|
});
|
|
140125
|
-
function track(
|
|
140231
|
+
function track(_x0) {
|
|
140126
140232
|
return _track.apply(this, arguments);
|
|
140127
140233
|
}
|
|
140128
140234
|
return track;
|
|
@@ -140144,7 +140250,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140144
140250
|
body: JSON.stringify(payload)
|
|
140145
140251
|
});
|
|
140146
140252
|
});
|
|
140147
|
-
function sendTrackingRequest(
|
|
140253
|
+
function sendTrackingRequest(_x1, _x10) {
|
|
140148
140254
|
return _sendTrackingRequest.apply(this, arguments);
|
|
140149
140255
|
}
|
|
140150
140256
|
return sendTrackingRequest;
|
|
@@ -140152,7 +140258,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140152
140258
|
}]);
|
|
140153
140259
|
}();
|
|
140154
140260
|
var import_react_native_svg2 = _$$_REQUIRE(_dependencyMap[14], "@granite-js/native/react-native-svg");
|
|
140155
|
-
var
|
|
140261
|
+
var import_react29 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
140156
140262
|
var import_react_native44 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
140157
140263
|
var import_jsx_runtime25 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
140158
140264
|
var ARROW_PATH = "m7.5 20.4c-.5-.5-.5-1.2 0-1.7l6.7-6.7-6.8-6.7c-.5-.5-.5-1.2 0-1.7s1.2-.5 1.7 0l7.5 7.5c.5.5.5 1.2 0 1.7l-7.5 7.5c-.2.3-.5.4-.8.4s-.6-.1-.8-.3z";
|
|
@@ -140171,7 +140277,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140171
140277
|
paddingStyle,
|
|
140172
140278
|
onPress
|
|
140173
140279
|
}) {
|
|
140174
|
-
var scale = (0,
|
|
140280
|
+
var scale = (0, import_react29.useRef)(new import_react_native44.Animated.Value(1)).current;
|
|
140175
140281
|
var animateScale = toValue => {
|
|
140176
140282
|
import_react_native44.Animated.timing(scale, {
|
|
140177
140283
|
toValue,
|
|
@@ -140448,7 +140554,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140448
140554
|
}
|
|
140449
140555
|
});
|
|
140450
140556
|
var import_react_native_svg3 = _$$_REQUIRE(_dependencyMap[14], "@granite-js/native/react-native-svg");
|
|
140451
|
-
var
|
|
140557
|
+
var import_react30 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
140452
140558
|
var import_react_native45 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
140453
140559
|
var import_jsx_runtime26 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
140454
140560
|
var SQUIRCLE_PATH = "M0 17.352C0 3.564 3.564 0 17.352 0H18.648C32.436 0 36 3.564 36 17.352V18.648C36 32.436 32.436 36 18.648 36H17.352C3.564 36 0 32.436 0 18.648V17.352Z";
|
|
@@ -140462,8 +140568,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140462
140568
|
colors: colors4,
|
|
140463
140569
|
onPress
|
|
140464
140570
|
}) {
|
|
140465
|
-
var scale = (0,
|
|
140466
|
-
var clipIdRef = (0,
|
|
140571
|
+
var scale = (0, import_react30.useRef)(new import_react_native45.Animated.Value(1)).current;
|
|
140572
|
+
var clipIdRef = (0, import_react30.useRef)(`clip-${Math.random().toString(36).slice(2)}`);
|
|
140467
140573
|
var animateScale = toValue => {
|
|
140468
140574
|
import_react_native45.Animated.timing(scale, {
|
|
140469
140575
|
toValue,
|
|
@@ -140776,27 +140882,27 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140776
140882
|
onAdImpression = props.onAdImpression,
|
|
140777
140883
|
onAdFailedToRender = props.onAdFailedToRender,
|
|
140778
140884
|
onNoFill = props.onNoFill;
|
|
140779
|
-
var slotIdRef = (0,
|
|
140780
|
-
var
|
|
140781
|
-
|
|
140782
|
-
ad =
|
|
140783
|
-
setAd =
|
|
140784
|
-
var
|
|
140785
|
-
|
|
140786
|
-
isAdBadgeEnabled =
|
|
140787
|
-
setIsAdBadgeEnabled =
|
|
140788
|
-
var eventTrackerRef = (0,
|
|
140789
|
-
var eventPayloadRef = (0,
|
|
140790
|
-
var hasRenderedRef = (0,
|
|
140791
|
-
var hasLoggedImp1pxRef = (0,
|
|
140792
|
-
var hasLoggedImp100pRef = (0,
|
|
140793
|
-
var hasNotifiedViewableRef = (0,
|
|
140794
|
-
var viewableTimerRef = (0,
|
|
140795
|
-
var refetchIntervalMsRef = (0,
|
|
140796
|
-
var lastImp1pxAtRef = (0,
|
|
140797
|
-
var loadingRef = (0,
|
|
140798
|
-
var loadRef = (0,
|
|
140799
|
-
var callbacksRef = (0,
|
|
140885
|
+
var slotIdRef = (0, import_react31.useRef)(createSlotId());
|
|
140886
|
+
var _ref52 = (0, import_react31.useState)(null),
|
|
140887
|
+
_ref53 = _slicedToArray(_ref52, 2),
|
|
140888
|
+
ad = _ref53[0],
|
|
140889
|
+
setAd = _ref53[1];
|
|
140890
|
+
var _ref54 = (0, import_react31.useState)(true),
|
|
140891
|
+
_ref55 = _slicedToArray(_ref54, 2),
|
|
140892
|
+
isAdBadgeEnabled = _ref55[0],
|
|
140893
|
+
setIsAdBadgeEnabled = _ref55[1];
|
|
140894
|
+
var eventTrackerRef = (0, import_react31.useRef)(null);
|
|
140895
|
+
var eventPayloadRef = (0, import_react31.useRef)(null);
|
|
140896
|
+
var hasRenderedRef = (0, import_react31.useRef)(false);
|
|
140897
|
+
var hasLoggedImp1pxRef = (0, import_react31.useRef)(false);
|
|
140898
|
+
var hasLoggedImp100pRef = (0, import_react31.useRef)(false);
|
|
140899
|
+
var hasNotifiedViewableRef = (0, import_react31.useRef)(false);
|
|
140900
|
+
var viewableTimerRef = (0, import_react31.useRef)(null);
|
|
140901
|
+
var refetchIntervalMsRef = (0, import_react31.useRef)(null);
|
|
140902
|
+
var lastImp1pxAtRef = (0, import_react31.useRef)(null);
|
|
140903
|
+
var loadingRef = (0, import_react31.useRef)(false);
|
|
140904
|
+
var loadRef = (0, import_react31.useRef)(null);
|
|
140905
|
+
var callbacksRef = (0, import_react31.useRef)({
|
|
140800
140906
|
onAdRendered,
|
|
140801
140907
|
onAdViewable,
|
|
140802
140908
|
onAdClicked,
|
|
@@ -140804,7 +140910,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140804
140910
|
onAdFailedToRender,
|
|
140805
140911
|
onNoFill
|
|
140806
140912
|
});
|
|
140807
|
-
var isMountedRef = (0,
|
|
140913
|
+
var isMountedRef = (0, import_react31.useRef)(false);
|
|
140808
140914
|
var colorScheme = (0, import_react_native47.useColorScheme)();
|
|
140809
140915
|
var selectedTheme = theme ?? DEFAULT_INLINE_AD_THEME;
|
|
140810
140916
|
var resolvedTheme = selectedTheme === "auto" ? colorScheme === "dark" ? "dark" : "light" : selectedTheme;
|
|
@@ -140821,7 +140927,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140821
140927
|
onAdFailedToRender,
|
|
140822
140928
|
onNoFill
|
|
140823
140929
|
};
|
|
140824
|
-
(0,
|
|
140930
|
+
(0, import_react31.useEffect)(() => {
|
|
140825
140931
|
isMountedRef.current = true;
|
|
140826
140932
|
return () => {
|
|
140827
140933
|
isMountedRef.current = false;
|
|
@@ -140831,7 +140937,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140831
140937
|
}
|
|
140832
140938
|
};
|
|
140833
140939
|
}, []);
|
|
140834
|
-
(0,
|
|
140940
|
+
(0, import_react31.useEffect)(() => {
|
|
140835
140941
|
var normalizedAdGroupId = normalizeAdGroupId(adGroupId);
|
|
140836
140942
|
var loadAdRequest = () => {
|
|
140837
140943
|
if (loadingRef.current) {
|
|
@@ -140902,7 +141008,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140902
141008
|
loadRef.current?.();
|
|
140903
141009
|
}
|
|
140904
141010
|
});
|
|
140905
|
-
(0,
|
|
141011
|
+
(0, import_react31.useEffect)(() => {
|
|
140906
141012
|
if (!ad || hasRenderedRef.current) {
|
|
140907
141013
|
return;
|
|
140908
141014
|
}
|
|
@@ -142280,6 +142386,47 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
142280
142386
|
});
|
|
142281
142387
|
return _appLogin.apply(this, arguments);
|
|
142282
142388
|
}
|
|
142389
|
+
var GAME_CENTER_MIN_VERSION = {
|
|
142390
|
+
android: "5.221.0",
|
|
142391
|
+
ios: "5.221.0"
|
|
142392
|
+
};
|
|
142393
|
+
var USER_KEY_MIN_VERSION = {
|
|
142394
|
+
android: "5.232.0",
|
|
142395
|
+
ios: "5.232.0"
|
|
142396
|
+
};
|
|
142397
|
+
var PROMOTION_REWARD_MIN_VERSION = {
|
|
142398
|
+
android: "5.232.0",
|
|
142399
|
+
ios: "5.232.0"
|
|
142400
|
+
};
|
|
142401
|
+
var GET_IS_TOSS_LOGIN_INTEGRATED_SERVICE_MIN_VERSION = {
|
|
142402
|
+
android: "5.237.0",
|
|
142403
|
+
ios: "5.237.0"
|
|
142404
|
+
};
|
|
142405
|
+
var GET_SERVER_TIME_MIN_VERSION = {
|
|
142406
|
+
android: "5.245.0",
|
|
142407
|
+
ios: "5.245.0"
|
|
142408
|
+
};
|
|
142409
|
+
function getAnonymousKey() {
|
|
142410
|
+
return _getAnonymousKey.apply(this, arguments);
|
|
142411
|
+
}
|
|
142412
|
+
function _getAnonymousKey() {
|
|
142413
|
+
_getAnonymousKey = _asyncToGenerator(function* () {
|
|
142414
|
+
var isSupported = isMinVersionSupported(USER_KEY_MIN_VERSION);
|
|
142415
|
+
if (!isSupported) {
|
|
142416
|
+
return;
|
|
142417
|
+
}
|
|
142418
|
+
try {
|
|
142419
|
+
var response = yield safePostMessage("getUserKeyForGame", {});
|
|
142420
|
+
if (response.type === "HASH") {
|
|
142421
|
+
return response;
|
|
142422
|
+
}
|
|
142423
|
+
return "ERROR";
|
|
142424
|
+
} catch {
|
|
142425
|
+
return "ERROR";
|
|
142426
|
+
}
|
|
142427
|
+
});
|
|
142428
|
+
return _getAnonymousKey.apply(this, arguments);
|
|
142429
|
+
}
|
|
142283
142430
|
function normalizeParams(params) {
|
|
142284
142431
|
return Object.fromEntries(Object.entries(params).filter(([, value]) => value !== void 0).map(([key, value]) => [key, String(value)]));
|
|
142285
142432
|
}
|
|
@@ -142288,11 +142435,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
142288
142435
|
}
|
|
142289
142436
|
function _eventLog() {
|
|
142290
142437
|
_eventLog = _asyncToGenerator(function* (params) {
|
|
142438
|
+
var logParams = {
|
|
142439
|
+
anonymous_key: yield cache("eventLog.defaultParams.anonymous_key", _asyncToGenerator(function* () {
|
|
142440
|
+
var result = yield getAnonymousKey();
|
|
142441
|
+
return typeof result === "object" ? result.hash : "NONE";
|
|
142442
|
+
})),
|
|
142443
|
+
...params.params
|
|
142444
|
+
};
|
|
142291
142445
|
if (MiniAppModule.getConstants().operationalEnvironment === "sandbox") {
|
|
142292
142446
|
console.log("[eventLogDebug]", {
|
|
142293
142447
|
log_name: params.log_name,
|
|
142294
142448
|
log_type: params.log_type,
|
|
142295
|
-
params: normalizeParams(
|
|
142449
|
+
params: normalizeParams(logParams)
|
|
142296
142450
|
});
|
|
142297
142451
|
return;
|
|
142298
142452
|
}
|
|
@@ -142306,11 +142460,26 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
142306
142460
|
return safePostMessage("eventLog", {
|
|
142307
142461
|
log_name: params.log_name,
|
|
142308
142462
|
log_type: params.log_type,
|
|
142309
|
-
params: normalizeParams(
|
|
142463
|
+
params: normalizeParams(logParams)
|
|
142310
142464
|
});
|
|
142311
142465
|
});
|
|
142312
142466
|
return _eventLog.apply(this, arguments);
|
|
142313
142467
|
}
|
|
142468
|
+
var _cache = {};
|
|
142469
|
+
function cache(_x6, _x7) {
|
|
142470
|
+
return _cache2.apply(this, arguments);
|
|
142471
|
+
}
|
|
142472
|
+
function _cache2() {
|
|
142473
|
+
_cache2 = _asyncToGenerator(function* (key, fetcher) {
|
|
142474
|
+
if (_cache[key]) {
|
|
142475
|
+
return _cache[key];
|
|
142476
|
+
}
|
|
142477
|
+
var value = yield fetcher();
|
|
142478
|
+
_cache[key] = value;
|
|
142479
|
+
return value;
|
|
142480
|
+
});
|
|
142481
|
+
return _cache2.apply(this, arguments);
|
|
142482
|
+
}
|
|
142314
142483
|
var import_types2 = _$$_REQUIRE(_dependencyMap[10], "@apps-in-toss/types");
|
|
142315
142484
|
function createPermissionFunction({
|
|
142316
142485
|
handler,
|
|
@@ -142344,7 +142513,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
142344
142513
|
maxWidth: options?.maxWidth ?? DEFAULT_MAX_WIDTH
|
|
142345
142514
|
});
|
|
142346
142515
|
});
|
|
142347
|
-
return function handler(
|
|
142516
|
+
return function handler(_x8) {
|
|
142348
142517
|
return _ref4.apply(this, arguments);
|
|
142349
142518
|
};
|
|
142350
142519
|
}(),
|
|
@@ -142365,7 +142534,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
142365
142534
|
done: contacts.done
|
|
142366
142535
|
};
|
|
142367
142536
|
});
|
|
142368
|
-
return function handler(
|
|
142537
|
+
return function handler(_x9) {
|
|
142369
142538
|
return _ref5.apply(this, arguments);
|
|
142370
142539
|
};
|
|
142371
142540
|
}(),
|
|
@@ -142392,7 +142561,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
142392
142561
|
var _ref6 = _asyncToGenerator(function* (options) {
|
|
142393
142562
|
return safePostMessage("getCurrentLocation", options);
|
|
142394
142563
|
});
|
|
142395
|
-
return function handler(
|
|
142564
|
+
return function handler(_x0) {
|
|
142396
142565
|
return _ref6.apply(this, arguments);
|
|
142397
142566
|
};
|
|
142398
142567
|
}(),
|
|
@@ -142440,7 +142609,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
142440
142609
|
android: "5.240.0",
|
|
142441
142610
|
ios: "5.239.0"
|
|
142442
142611
|
};
|
|
142443
|
-
function getTossShareLink(
|
|
142612
|
+
function getTossShareLink(_x1, _x10) {
|
|
142444
142613
|
return _getTossShareLink.apply(this, arguments);
|
|
142445
142614
|
}
|
|
142446
142615
|
function _getTossShareLink() {
|
|
@@ -142457,7 +142626,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
142457
142626
|
});
|
|
142458
142627
|
return _getTossShareLink.apply(this, arguments);
|
|
142459
142628
|
}
|
|
142460
|
-
function getTossShareLinkV1(
|
|
142629
|
+
function getTossShareLinkV1(_x11) {
|
|
142461
142630
|
return _getTossShareLinkV.apply(this, arguments);
|
|
142462
142631
|
}
|
|
142463
142632
|
function _getTossShareLinkV() {
|
|
@@ -142587,7 +142756,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
142587
142756
|
isProductGranted
|
|
142588
142757
|
});
|
|
142589
142758
|
});
|
|
142590
|
-
return function onPurchased(
|
|
142759
|
+
return function onPurchased(_x12) {
|
|
142591
142760
|
return _ref7.apply(this, arguments);
|
|
142592
142761
|
};
|
|
142593
142762
|
}(),
|
|
@@ -142635,7 +142804,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
142635
142804
|
});
|
|
142636
142805
|
return _getPendingOrders.apply(this, arguments);
|
|
142637
142806
|
}
|
|
142638
|
-
function getCompletedOrRefundedOrders(
|
|
142807
|
+
function getCompletedOrRefundedOrders(_x13) {
|
|
142639
142808
|
return _getCompletedOrRefundedOrders.apply(this, arguments);
|
|
142640
142809
|
}
|
|
142641
142810
|
function _getCompletedOrRefundedOrders() {
|
|
@@ -142653,7 +142822,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
142653
142822
|
});
|
|
142654
142823
|
return _getCompletedOrRefundedOrders.apply(this, arguments);
|
|
142655
142824
|
}
|
|
142656
|
-
function completeProductGrant(
|
|
142825
|
+
function completeProductGrant(_x14) {
|
|
142657
142826
|
return _completeProductGrant.apply(this, arguments);
|
|
142658
142827
|
}
|
|
142659
142828
|
function _completeProductGrant() {
|
|
@@ -142669,7 +142838,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
142669
142838
|
});
|
|
142670
142839
|
return _completeProductGrant.apply(this, arguments);
|
|
142671
142840
|
}
|
|
142672
|
-
function getSubscriptionInfo(
|
|
142841
|
+
function getSubscriptionInfo(_x15) {
|
|
142673
142842
|
return _getSubscriptionInfo.apply(this, arguments);
|
|
142674
142843
|
}
|
|
142675
142844
|
function _getSubscriptionInfo() {
|
|
@@ -142711,7 +142880,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
142711
142880
|
isProductGranted
|
|
142712
142881
|
});
|
|
142713
142882
|
});
|
|
142714
|
-
return function onPurchased(
|
|
142883
|
+
return function onPurchased(_x16) {
|
|
142715
142884
|
return _ref8.apply(this, arguments);
|
|
142716
142885
|
};
|
|
142717
142886
|
}(),
|
|
@@ -142736,7 +142905,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
142736
142905
|
completeProductGrant,
|
|
142737
142906
|
getSubscriptionInfo
|
|
142738
142907
|
};
|
|
142739
|
-
function saveBase64Data(
|
|
142908
|
+
function saveBase64Data(_x17) {
|
|
142740
142909
|
return _saveBase64Data.apply(this, arguments);
|
|
142741
142910
|
}
|
|
142742
142911
|
function _saveBase64Data() {
|
|
@@ -142753,7 +142922,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
142753
142922
|
});
|
|
142754
142923
|
return _saveBase64Data.apply(this, arguments);
|
|
142755
142924
|
}
|
|
142756
|
-
function openPDFViewer(
|
|
142925
|
+
function openPDFViewer(_x18) {
|
|
142757
142926
|
return _openPDFViewer.apply(this, arguments);
|
|
142758
142927
|
}
|
|
142759
142928
|
function _openPDFViewer() {
|
|
@@ -142771,7 +142940,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
142771
142940
|
});
|
|
142772
142941
|
return _openPDFViewer.apply(this, arguments);
|
|
142773
142942
|
}
|
|
142774
|
-
function fetchAlbumItems(
|
|
142943
|
+
function fetchAlbumItems(_x19) {
|
|
142775
142944
|
return _fetchAlbumItems.apply(this, arguments);
|
|
142776
142945
|
}
|
|
142777
142946
|
function _fetchAlbumItems() {
|
|
@@ -142789,7 +142958,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
142789
142958
|
});
|
|
142790
142959
|
return _fetchAlbumItems.apply(this, arguments);
|
|
142791
142960
|
}
|
|
142792
|
-
function setDeviceOrientation(
|
|
142961
|
+
function setDeviceOrientation(_x20) {
|
|
142793
142962
|
return _setDeviceOrientation.apply(this, arguments);
|
|
142794
142963
|
}
|
|
142795
142964
|
function _setDeviceOrientation() {
|
|
@@ -142831,26 +143000,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
142831
143000
|
clearItems
|
|
142832
143001
|
};
|
|
142833
143002
|
var import_react_native7 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
142834
|
-
var GAME_CENTER_MIN_VERSION = {
|
|
142835
|
-
android: "5.221.0",
|
|
142836
|
-
ios: "5.221.0"
|
|
142837
|
-
};
|
|
142838
|
-
var USER_KEY_MIN_VERSION = {
|
|
142839
|
-
android: "5.232.0",
|
|
142840
|
-
ios: "5.232.0"
|
|
142841
|
-
};
|
|
142842
|
-
var PROMOTION_REWARD_MIN_VERSION = {
|
|
142843
|
-
android: "5.232.0",
|
|
142844
|
-
ios: "5.232.0"
|
|
142845
|
-
};
|
|
142846
|
-
var GET_IS_TOSS_LOGIN_INTEGRATED_SERVICE_MIN_VERSION = {
|
|
142847
|
-
android: "5.237.0",
|
|
142848
|
-
ios: "5.237.0"
|
|
142849
|
-
};
|
|
142850
|
-
var GET_SERVER_TIME_MIN_VERSION = {
|
|
142851
|
-
android: "5.245.0",
|
|
142852
|
-
ios: "5.245.0"
|
|
142853
|
-
};
|
|
142854
143003
|
function openGameCenterLeaderboard() {
|
|
142855
143004
|
return _openGameCenterLeaderboard.apply(this, arguments);
|
|
142856
143005
|
}
|
|
@@ -142883,7 +143032,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
142883
143032
|
});
|
|
142884
143033
|
return _getGameCenterGameProfile.apply(this, arguments);
|
|
142885
143034
|
}
|
|
142886
|
-
function submitGameCenterLeaderBoardScore(
|
|
143035
|
+
function submitGameCenterLeaderBoardScore(_x21) {
|
|
142887
143036
|
return _submitGameCenterLeaderBoardScore.apply(this, arguments);
|
|
142888
143037
|
}
|
|
142889
143038
|
function _submitGameCenterLeaderBoardScore() {
|
|
@@ -142896,27 +143045,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
142896
143045
|
});
|
|
142897
143046
|
return _submitGameCenterLeaderBoardScore.apply(this, arguments);
|
|
142898
143047
|
}
|
|
142899
|
-
function getAnonymousKey() {
|
|
142900
|
-
return _getAnonymousKey.apply(this, arguments);
|
|
142901
|
-
}
|
|
142902
|
-
function _getAnonymousKey() {
|
|
142903
|
-
_getAnonymousKey = _asyncToGenerator(function* () {
|
|
142904
|
-
var isSupported = isMinVersionSupported(USER_KEY_MIN_VERSION);
|
|
142905
|
-
if (!isSupported) {
|
|
142906
|
-
return;
|
|
142907
|
-
}
|
|
142908
|
-
try {
|
|
142909
|
-
var response = yield safePostMessage("getUserKeyForGame", {});
|
|
142910
|
-
if (response.type === "HASH") {
|
|
142911
|
-
return response;
|
|
142912
|
-
}
|
|
142913
|
-
return "ERROR";
|
|
142914
|
-
} catch {
|
|
142915
|
-
return "ERROR";
|
|
142916
|
-
}
|
|
142917
|
-
});
|
|
142918
|
-
return _getAnonymousKey.apply(this, arguments);
|
|
142919
|
-
}
|
|
142920
143048
|
function getUserKeyForGame() {
|
|
142921
143049
|
return _getUserKeyForGame.apply(this, arguments);
|
|
142922
143050
|
}
|
|
@@ -142929,7 +143057,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
142929
143057
|
function isGrantPromotionRewardError(error) {
|
|
142930
143058
|
return typeof error === "object" && error !== null && "code" in error && typeof error.code === "string" && "message" in error && typeof error.message === "string";
|
|
142931
143059
|
}
|
|
142932
|
-
function grantPromotionReward(
|
|
143060
|
+
function grantPromotionReward(_x22) {
|
|
142933
143061
|
return _grantPromotionReward.apply(this, arguments);
|
|
142934
143062
|
}
|
|
142935
143063
|
function _grantPromotionReward() {
|
|
@@ -142956,7 +143084,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
142956
143084
|
});
|
|
142957
143085
|
return _grantPromotionReward.apply(this, arguments);
|
|
142958
143086
|
}
|
|
142959
|
-
function grantPromotionRewardForGame(
|
|
143087
|
+
function grantPromotionRewardForGame(_x23) {
|
|
142960
143088
|
return _grantPromotionRewardForGame.apply(this, arguments);
|
|
142961
143089
|
}
|
|
142962
143090
|
function _grantPromotionRewardForGame() {
|
|
@@ -143007,7 +143135,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
143007
143135
|
});
|
|
143008
143136
|
return unregisterCallbacks;
|
|
143009
143137
|
}
|
|
143010
|
-
function appsInTossSignTossCert(
|
|
143138
|
+
function appsInTossSignTossCert(_x24) {
|
|
143011
143139
|
return _appsInTossSignTossCert.apply(this, arguments);
|
|
143012
143140
|
}
|
|
143013
143141
|
function _appsInTossSignTossCert() {
|
|
@@ -143044,7 +143172,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
143044
143172
|
return _getServerTime.apply(this, arguments);
|
|
143045
143173
|
}
|
|
143046
143174
|
getServerTime.isSupported = () => isMinVersionSupported(GET_SERVER_TIME_MIN_VERSION);
|
|
143047
|
-
function getConsentedUserData(
|
|
143175
|
+
function getConsentedUserData(_x25) {
|
|
143048
143176
|
return _getConsentedUserData.apply(this, arguments);
|
|
143049
143177
|
}
|
|
143050
143178
|
function _getConsentedUserData() {
|
|
@@ -143155,7 +143283,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
143155
143283
|
function generateHapticFeedback(options) {
|
|
143156
143284
|
return CommonModule2.generateHapticFeedback(options);
|
|
143157
143285
|
}
|
|
143158
|
-
function share(
|
|
143286
|
+
function share(_x26) {
|
|
143159
143287
|
return _share.apply(this, arguments);
|
|
143160
143288
|
}
|
|
143161
143289
|
function _share() {
|
|
@@ -143167,7 +143295,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
143167
143295
|
function setSecureScreen(options) {
|
|
143168
143296
|
return CommonModule2.setSecureScreen(options);
|
|
143169
143297
|
}
|
|
143170
|
-
function setScreenAwakeMode(
|
|
143298
|
+
function setScreenAwakeMode(_x27) {
|
|
143171
143299
|
return _setScreenAwakeMode.apply(this, arguments);
|
|
143172
143300
|
}
|
|
143173
143301
|
function _setScreenAwakeMode() {
|
|
@@ -143179,7 +143307,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
143179
143307
|
function getNetworkStatus() {
|
|
143180
143308
|
return CommonModule2.getNetworkStatus();
|
|
143181
143309
|
}
|
|
143182
|
-
function setIosSwipeGestureEnabled(
|
|
143310
|
+
function setIosSwipeGestureEnabled(_x28) {
|
|
143183
143311
|
return _setIosSwipeGestureEnabled.apply(this, arguments);
|
|
143184
143312
|
}
|
|
143185
143313
|
function _setIosSwipeGestureEnabled() {
|
|
@@ -211501,7 +211629,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
211501
211629
|
}
|
|
211502
211630
|
});
|
|
211503
211631
|
});
|
|
211504
|
-
},2520,[2521,2529,2530,2531,2532,2533,2534,2535,2536,2537,2538,2539,2541,2542,2543,2544,2545,2546,2547,
|
|
211632
|
+
},2520,[2521,2529,2530,2531,2532,2533,2534,2535,2536,2537,2538,2539,2541,2542,2543,2544,2545,2546,2547,2552,2553,2554,2555,2556,2557,2558,2559,2560,2561,2562,2548,2563,2564,2565,2566,2567,2568,2569],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/async-bridges.ts");
|
|
211505
211633
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
211506
211634
|
var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
|
|
211507
211635
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -211987,8 +212115,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
211987
212115
|
});
|
|
211988
212116
|
exports.eventLog = eventLog;
|
|
211989
212117
|
var _asyncToGenerator2 = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/asyncToGenerator"));
|
|
211990
|
-
var
|
|
211991
|
-
var
|
|
212118
|
+
var _getAnonymousKey = _$$_REQUIRE(_dependencyMap[2], "./getAnonymousKey");
|
|
212119
|
+
var _isMinVersionSupported = _$$_REQUIRE(_dependencyMap[3], "./isMinVersionSupported");
|
|
212120
|
+
var _natives = _$$_REQUIRE(_dependencyMap[4], "../../natives");
|
|
211992
212121
|
function normalizeParams(params) {
|
|
211993
212122
|
return Object.fromEntries(Object.entries(params).filter(([, value]) => value !== undefined).map(([key, value]) => [key, String(value)]));
|
|
211994
212123
|
}
|
|
@@ -211997,11 +212126,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
211997
212126
|
}
|
|
211998
212127
|
function _eventLog() {
|
|
211999
212128
|
_eventLog = (0, _asyncToGenerator2.default)(function* (params) {
|
|
212129
|
+
var logParams = {
|
|
212130
|
+
anonymous_key: yield cache('eventLog.defaultParams.anonymous_key', (0, _asyncToGenerator2.default)(function* () {
|
|
212131
|
+
var result = yield (0, _getAnonymousKey.getAnonymousKey)();
|
|
212132
|
+
return typeof result === 'object' ? result.hash : 'NONE';
|
|
212133
|
+
})),
|
|
212134
|
+
...params.params
|
|
212135
|
+
};
|
|
212000
212136
|
if (_natives.MiniAppModule.getConstants().operationalEnvironment === 'sandbox') {
|
|
212001
212137
|
console.log('[eventLogDebug]', {
|
|
212002
212138
|
log_name: params.log_name,
|
|
212003
212139
|
log_type: params.log_type,
|
|
212004
|
-
params: normalizeParams(
|
|
212140
|
+
params: normalizeParams(logParams)
|
|
212005
212141
|
});
|
|
212006
212142
|
return;
|
|
212007
212143
|
}
|
|
@@ -212015,12 +212151,59 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
212015
212151
|
return (0, _natives.safePostMessage)('eventLog', {
|
|
212016
212152
|
log_name: params.log_name,
|
|
212017
212153
|
log_type: params.log_type,
|
|
212018
|
-
params: normalizeParams(
|
|
212154
|
+
params: normalizeParams(logParams)
|
|
212019
212155
|
});
|
|
212020
212156
|
});
|
|
212021
212157
|
return _eventLog.apply(this, arguments);
|
|
212022
212158
|
}
|
|
212023
|
-
}
|
|
212159
|
+
var _cache = {};
|
|
212160
|
+
function cache(_x2, _x3) {
|
|
212161
|
+
return _cache2.apply(this, arguments);
|
|
212162
|
+
}
|
|
212163
|
+
function _cache2() {
|
|
212164
|
+
_cache2 = (0, _asyncToGenerator2.default)(function* (key, fetcher) {
|
|
212165
|
+
if (_cache[key]) {
|
|
212166
|
+
return _cache[key];
|
|
212167
|
+
}
|
|
212168
|
+
var value = yield fetcher();
|
|
212169
|
+
_cache[key] = value;
|
|
212170
|
+
return value;
|
|
212171
|
+
});
|
|
212172
|
+
return _cache2.apply(this, arguments);
|
|
212173
|
+
}
|
|
212174
|
+
},2547,[1,17,2548,2549,2523],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/eventLog.ts");
|
|
212175
|
+
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
212176
|
+
var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
|
|
212177
|
+
Object.defineProperty(exports, "__esModule", {
|
|
212178
|
+
value: true
|
|
212179
|
+
});
|
|
212180
|
+
exports.getAnonymousKey = getAnonymousKey;
|
|
212181
|
+
var _asyncToGenerator2 = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/asyncToGenerator"));
|
|
212182
|
+
var _isMinVersionSupported = _$$_REQUIRE(_dependencyMap[2], "./isMinVersionSupported");
|
|
212183
|
+
var _natives = _$$_REQUIRE(_dependencyMap[3], "../../natives");
|
|
212184
|
+
var _constants = _$$_REQUIRE(_dependencyMap[4], "../constants");
|
|
212185
|
+
function getAnonymousKey() {
|
|
212186
|
+
return _getAnonymousKey.apply(this, arguments);
|
|
212187
|
+
}
|
|
212188
|
+
function _getAnonymousKey() {
|
|
212189
|
+
_getAnonymousKey = (0, _asyncToGenerator2.default)(function* () {
|
|
212190
|
+
var isSupported = (0, _isMinVersionSupported.isMinVersionSupported)(_constants.USER_KEY_MIN_VERSION);
|
|
212191
|
+
if (!isSupported) {
|
|
212192
|
+
return;
|
|
212193
|
+
}
|
|
212194
|
+
try {
|
|
212195
|
+
var response = yield (0, _natives.safePostMessage)('getUserKeyForGame', {});
|
|
212196
|
+
if (response.type === 'HASH') {
|
|
212197
|
+
return response;
|
|
212198
|
+
}
|
|
212199
|
+
return 'ERROR';
|
|
212200
|
+
} catch {
|
|
212201
|
+
return 'ERROR';
|
|
212202
|
+
}
|
|
212203
|
+
});
|
|
212204
|
+
return _getAnonymousKey.apply(this, arguments);
|
|
212205
|
+
}
|
|
212206
|
+
},2548,[1,17,2549,2523,2551],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/getAnonymousKey.ts");
|
|
212024
212207
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
212025
212208
|
Object.defineProperty(exports, "__esModule", {
|
|
212026
212209
|
value: true
|
|
@@ -212048,7 +212231,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
212048
212231
|
}
|
|
212049
212232
|
return (0, _compareVersion.compareVersions)(currentVersion, minVersion) >= 0;
|
|
212050
212233
|
}
|
|
212051
|
-
},
|
|
212234
|
+
},2549,[34,2523,2550],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/isMinVersionSupported.ts");
|
|
212052
212235
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
212053
212236
|
var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
|
|
212054
212237
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -212130,7 +212313,34 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
212130
212313
|
return 0;
|
|
212131
212314
|
};
|
|
212132
212315
|
exports.compareVersions = compareVersions;
|
|
212133
|
-
},
|
|
212316
|
+
},2550,[1,48],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/utils/compareVersion.ts");
|
|
212317
|
+
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
212318
|
+
Object.defineProperty(exports, "__esModule", {
|
|
212319
|
+
value: true
|
|
212320
|
+
});
|
|
212321
|
+
exports.USER_KEY_MIN_VERSION = exports.PROMOTION_REWARD_MIN_VERSION = exports.GET_SERVER_TIME_MIN_VERSION = exports.GET_IS_TOSS_LOGIN_INTEGRATED_SERVICE_MIN_VERSION = exports.GAME_PROFILE_WEBVIEW_URL = exports.GAME_CENTER_MIN_VERSION = void 0;
|
|
212322
|
+
var GAME_PROFILE_WEBVIEW_URL = exports.GAME_PROFILE_WEBVIEW_URL = 'https://service.toss.im/game-center/profile';
|
|
212323
|
+
var GAME_CENTER_MIN_VERSION = exports.GAME_CENTER_MIN_VERSION = {
|
|
212324
|
+
android: '5.221.0',
|
|
212325
|
+
ios: '5.221.0'
|
|
212326
|
+
};
|
|
212327
|
+
var USER_KEY_MIN_VERSION = exports.USER_KEY_MIN_VERSION = {
|
|
212328
|
+
android: '5.232.0',
|
|
212329
|
+
ios: '5.232.0'
|
|
212330
|
+
};
|
|
212331
|
+
var PROMOTION_REWARD_MIN_VERSION = exports.PROMOTION_REWARD_MIN_VERSION = {
|
|
212332
|
+
android: '5.232.0',
|
|
212333
|
+
ios: '5.232.0'
|
|
212334
|
+
};
|
|
212335
|
+
var GET_IS_TOSS_LOGIN_INTEGRATED_SERVICE_MIN_VERSION = exports.GET_IS_TOSS_LOGIN_INTEGRATED_SERVICE_MIN_VERSION = {
|
|
212336
|
+
android: '5.237.0',
|
|
212337
|
+
ios: '5.237.0'
|
|
212338
|
+
};
|
|
212339
|
+
var GET_SERVER_TIME_MIN_VERSION = exports.GET_SERVER_TIME_MIN_VERSION = {
|
|
212340
|
+
android: '5.245.0',
|
|
212341
|
+
ios: '5.245.0'
|
|
212342
|
+
};
|
|
212343
|
+
},2551,[],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/constants.ts");
|
|
212134
212344
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
212135
212345
|
var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
|
|
212136
212346
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -212175,7 +212385,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
212175
212385
|
});
|
|
212176
212386
|
return _getTossShareLinkV.apply(this, arguments);
|
|
212177
212387
|
}
|
|
212178
|
-
},
|
|
212388
|
+
},2552,[1,17,2549,2523],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/getTossShareLink.ts");
|
|
212179
212389
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
212180
212390
|
var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
|
|
212181
212391
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -212201,7 +212411,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
212201
212411
|
});
|
|
212202
212412
|
return _setDeviceOrientation.apply(this, arguments);
|
|
212203
212413
|
}
|
|
212204
|
-
},
|
|
212414
|
+
},2553,[1,17,2549,2523],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/setDeviceOrientation.ts");
|
|
212205
212415
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
212206
212416
|
var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
|
|
212207
212417
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -212219,7 +212429,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
212219
212429
|
});
|
|
212220
212430
|
return _checkoutPayment.apply(this, arguments);
|
|
212221
212431
|
}
|
|
212222
|
-
},
|
|
212432
|
+
},2554,[1,17,2523],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/checkoutPayment.ts");
|
|
212223
212433
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
212224
212434
|
var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
|
|
212225
212435
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -212247,7 +212457,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
212247
212457
|
return _requestTossPayPaysBilling.apply(this, arguments);
|
|
212248
212458
|
}
|
|
212249
212459
|
requestTossPayPaysBilling.isSupported = () => (0, _isMinVersionSupported.isMinVersionSupported)(MIN_VERSION);
|
|
212250
|
-
},
|
|
212460
|
+
},2555,[1,17,2549,2523],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/requestTossPayPaysBilling.ts");
|
|
212251
212461
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
212252
212462
|
var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
|
|
212253
212463
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -212274,7 +212484,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
212274
212484
|
});
|
|
212275
212485
|
return _saveBase64Data.apply(this, arguments);
|
|
212276
212486
|
}
|
|
212277
|
-
},
|
|
212487
|
+
},2556,[1,17,2549,2523],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/saveBase64Data.ts");
|
|
212278
212488
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
212279
212489
|
var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
|
|
212280
212490
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -212302,7 +212512,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
212302
212512
|
});
|
|
212303
212513
|
return _openPDFViewer.apply(this, arguments);
|
|
212304
212514
|
}
|
|
212305
|
-
},
|
|
212515
|
+
},2557,[1,17,2549,2523],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/openPDFViewer.ts");
|
|
212306
212516
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
212307
212517
|
var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
|
|
212308
212518
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -212330,7 +212540,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
212330
212540
|
});
|
|
212331
212541
|
return _fetchAlbumItems.apply(this, arguments);
|
|
212332
212542
|
}
|
|
212333
|
-
},
|
|
212543
|
+
},2558,[1,17,2549,2523],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/fetchAlbumItems.ts");
|
|
212334
212544
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
212335
212545
|
var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
|
|
212336
212546
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -212357,7 +212567,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
212357
212567
|
});
|
|
212358
212568
|
return _appsInTossSignTossCert.apply(this, arguments);
|
|
212359
212569
|
}
|
|
212360
|
-
},
|
|
212570
|
+
},2559,[1,17,2549,2523],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/appsInTossSignTossCert.ts");
|
|
212361
212571
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
212362
212572
|
var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
|
|
212363
212573
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -212381,34 +212591,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
212381
212591
|
});
|
|
212382
212592
|
return _getGameCenterGameProfile.apply(this, arguments);
|
|
212383
212593
|
}
|
|
212384
|
-
},
|
|
212385
|
-
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
212386
|
-
Object.defineProperty(exports, "__esModule", {
|
|
212387
|
-
value: true
|
|
212388
|
-
});
|
|
212389
|
-
exports.USER_KEY_MIN_VERSION = exports.PROMOTION_REWARD_MIN_VERSION = exports.GET_SERVER_TIME_MIN_VERSION = exports.GET_IS_TOSS_LOGIN_INTEGRATED_SERVICE_MIN_VERSION = exports.GAME_PROFILE_WEBVIEW_URL = exports.GAME_CENTER_MIN_VERSION = void 0;
|
|
212390
|
-
var GAME_PROFILE_WEBVIEW_URL = exports.GAME_PROFILE_WEBVIEW_URL = 'https://service.toss.im/game-center/profile';
|
|
212391
|
-
var GAME_CENTER_MIN_VERSION = exports.GAME_CENTER_MIN_VERSION = {
|
|
212392
|
-
android: '5.221.0',
|
|
212393
|
-
ios: '5.221.0'
|
|
212394
|
-
};
|
|
212395
|
-
var USER_KEY_MIN_VERSION = exports.USER_KEY_MIN_VERSION = {
|
|
212396
|
-
android: '5.232.0',
|
|
212397
|
-
ios: '5.232.0'
|
|
212398
|
-
};
|
|
212399
|
-
var PROMOTION_REWARD_MIN_VERSION = exports.PROMOTION_REWARD_MIN_VERSION = {
|
|
212400
|
-
android: '5.232.0',
|
|
212401
|
-
ios: '5.232.0'
|
|
212402
|
-
};
|
|
212403
|
-
var GET_IS_TOSS_LOGIN_INTEGRATED_SERVICE_MIN_VERSION = exports.GET_IS_TOSS_LOGIN_INTEGRATED_SERVICE_MIN_VERSION = {
|
|
212404
|
-
android: '5.237.0',
|
|
212405
|
-
ios: '5.237.0'
|
|
212406
|
-
};
|
|
212407
|
-
var GET_SERVER_TIME_MIN_VERSION = exports.GET_SERVER_TIME_MIN_VERSION = {
|
|
212408
|
-
android: '5.245.0',
|
|
212409
|
-
ios: '5.245.0'
|
|
212410
|
-
};
|
|
212411
|
-
},2559,[],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/constants.ts");
|
|
212594
|
+
},2560,[1,17,2549,2523,2551],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/getGameCenterGameProfile.ts");
|
|
212412
212595
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
212413
212596
|
var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
|
|
212414
212597
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -212438,7 +212621,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
212438
212621
|
});
|
|
212439
212622
|
return _openGameCenterLeaderboard.apply(this, arguments);
|
|
212440
212623
|
}
|
|
212441
|
-
},
|
|
212624
|
+
},2561,[1,17,2,2549,2551],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/openGameCenterLeaderboard.ts");
|
|
212442
212625
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
212443
212626
|
var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
|
|
212444
212627
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -212462,39 +212645,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
212462
212645
|
});
|
|
212463
212646
|
return _submitGameCenterLeaderBoardScore.apply(this, arguments);
|
|
212464
212647
|
}
|
|
212465
|
-
},
|
|
212466
|
-
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
212467
|
-
var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
|
|
212468
|
-
Object.defineProperty(exports, "__esModule", {
|
|
212469
|
-
value: true
|
|
212470
|
-
});
|
|
212471
|
-
exports.getAnonymousKey = getAnonymousKey;
|
|
212472
|
-
var _asyncToGenerator2 = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/asyncToGenerator"));
|
|
212473
|
-
var _isMinVersionSupported = _$$_REQUIRE(_dependencyMap[2], "./isMinVersionSupported");
|
|
212474
|
-
var _natives = _$$_REQUIRE(_dependencyMap[3], "../../natives");
|
|
212475
|
-
var _constants = _$$_REQUIRE(_dependencyMap[4], "../constants");
|
|
212476
|
-
function getAnonymousKey() {
|
|
212477
|
-
return _getAnonymousKey.apply(this, arguments);
|
|
212478
|
-
}
|
|
212479
|
-
function _getAnonymousKey() {
|
|
212480
|
-
_getAnonymousKey = (0, _asyncToGenerator2.default)(function* () {
|
|
212481
|
-
var isSupported = (0, _isMinVersionSupported.isMinVersionSupported)(_constants.USER_KEY_MIN_VERSION);
|
|
212482
|
-
if (!isSupported) {
|
|
212483
|
-
return;
|
|
212484
|
-
}
|
|
212485
|
-
try {
|
|
212486
|
-
var response = yield (0, _natives.safePostMessage)('getUserKeyForGame', {});
|
|
212487
|
-
if (response.type === 'HASH') {
|
|
212488
|
-
return response;
|
|
212489
|
-
}
|
|
212490
|
-
return 'ERROR';
|
|
212491
|
-
} catch {
|
|
212492
|
-
return 'ERROR';
|
|
212493
|
-
}
|
|
212494
|
-
});
|
|
212495
|
-
return _getAnonymousKey.apply(this, arguments);
|
|
212496
|
-
}
|
|
212497
|
-
},2562,[1,17,2548,2523,2559],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/getAnonymousKey.ts");
|
|
212648
|
+
},2562,[1,17,2549,2523,2551],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/submitGameCenterLeaderBoardScore.ts");
|
|
212498
212649
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
212499
212650
|
var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
|
|
212500
212651
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -212512,7 +212663,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
212512
212663
|
});
|
|
212513
212664
|
return _getUserKeyForGame.apply(this, arguments);
|
|
212514
212665
|
}
|
|
212515
|
-
},2563,[1,17,
|
|
212666
|
+
},2563,[1,17,2548],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/getUserKeyForGame.ts");
|
|
212516
212667
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
212517
212668
|
var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
|
|
212518
212669
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -212553,7 +212704,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
212553
212704
|
});
|
|
212554
212705
|
return _grantPromotionReward.apply(this, arguments);
|
|
212555
212706
|
}
|
|
212556
|
-
},2564,[1,17,
|
|
212707
|
+
},2564,[1,17,2549,2523,2551],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/grantPromotionReward.ts");
|
|
212557
212708
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
212558
212709
|
var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
|
|
212559
212710
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -212596,7 +212747,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
212596
212747
|
});
|
|
212597
212748
|
return _getIsTossLoginIntegratedService.apply(this, arguments);
|
|
212598
212749
|
}
|
|
212599
|
-
},2566,[1,17,
|
|
212750
|
+
},2566,[1,17,2549,2523,2551],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/getIsTossLoginIntegratedService.ts");
|
|
212600
212751
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
212601
212752
|
var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
|
|
212602
212753
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -212621,7 +212772,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
212621
212772
|
return _getServerTime.apply(this, arguments);
|
|
212622
212773
|
}
|
|
212623
212774
|
getServerTime.isSupported = () => (0, _isMinVersionSupported.isMinVersionSupported)(_constants.GET_SERVER_TIME_MIN_VERSION);
|
|
212624
|
-
},2567,[1,17,
|
|
212775
|
+
},2567,[1,17,2549,2523,2551],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/getServerTime.ts");
|
|
212625
212776
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
212626
212777
|
var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
|
|
212627
212778
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -212647,7 +212798,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
212647
212798
|
});
|
|
212648
212799
|
return _getConsentedUserData.apply(this, arguments);
|
|
212649
212800
|
}
|
|
212650
|
-
},2568,[1,17,
|
|
212801
|
+
},2568,[1,17,2549,2523],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/getConsentedUserData.ts");
|
|
212651
212802
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
212652
212803
|
var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
|
|
212653
212804
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -212681,7 +212832,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
212681
212832
|
return _requestReview.apply(this, arguments);
|
|
212682
212833
|
}
|
|
212683
212834
|
requestReview.isSupported = () => (0, _isMinVersionSupported.isMinVersionSupported)(MIN_VERSION);
|
|
212684
|
-
},2569,[1,17,
|
|
212835
|
+
},2569,[1,17,2549,2523],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/requestReview.ts");
|
|
212685
212836
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
212686
212837
|
Object.defineProperty(exports, "__esModule", {
|
|
212687
212838
|
value: true
|
|
@@ -213626,7 +213777,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
213626
213777
|
showAppsInTossAdMob: _googleAdMobV.showAppsInTossAdMob,
|
|
213627
213778
|
isAppsInTossAdMobLoaded: _googleAdMobV.isAppsInTossAdMobLoaded
|
|
213628
213779
|
};
|
|
213629
|
-
},2586,[2587,
|
|
213780
|
+
},2586,[2587,2554,2555,2546,2547,2543,2542,2541,2544,2539,2545,2576,2574,2575,2552,2589,2549,2556,2557,2558,2553,2590,2561,2560,2562,2548,2563,2564,2565,2566,2591,2559,2577,2592,2567,2568,2569,2593],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/index.ts");
|
|
213630
213781
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
213631
213782
|
var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
|
|
213632
213783
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -213759,7 +213910,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
213759
213910
|
});
|
|
213760
213911
|
}
|
|
213761
213912
|
isAppsInTossAdMobLoaded.isSupported = isAppsInTossAdMobLoadedSupported;
|
|
213762
|
-
},2587,[1,17,1284,2588,2583,2574,
|
|
213913
|
+
},2587,[1,17,1284,2588,2583,2574,2549],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/ads/googleAdMobV2.ts");
|
|
213763
213914
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
213764
213915
|
Object.defineProperty(exports, "__esModule", {
|
|
213765
213916
|
value: true
|
|
@@ -214053,7 +214204,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
214053
214204
|
completeProductGrant,
|
|
214054
214205
|
getSubscriptionInfo
|
|
214055
214206
|
};
|
|
214056
|
-
},2589,[1,17,1284,
|
|
214207
|
+
},2589,[1,17,1284,2549,2523,2583],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/iap.ts");
|
|
214057
214208
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
214058
214209
|
Object.defineProperty(exports, "__esModule", {
|
|
214059
214210
|
value: true
|
|
@@ -214121,7 +214272,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
214121
214272
|
});
|
|
214122
214273
|
return unregisterCallbacks;
|
|
214123
214274
|
}
|
|
214124
|
-
},2591,[2583,
|
|
214275
|
+
},2591,[2583,2549],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-event-emitter/contactsViral.ts");
|
|
214125
214276
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
214126
214277
|
Object.defineProperty(exports, "__esModule", {
|
|
214127
214278
|
value: true
|
|
@@ -214165,7 +214316,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
214165
214316
|
}
|
|
214166
214317
|
});
|
|
214167
214318
|
}
|
|
214168
|
-
},2593,[1284,
|
|
214319
|
+
},2593,[1284,2549,2583],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/requestNotificationAgreement.ts");
|
|
214169
214320
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
214170
214321
|
Object.defineProperty(exports, "__esModule", {
|
|
214171
214322
|
value: true
|
|
@@ -214222,7 +214373,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
214222
214373
|
}
|
|
214223
214374
|
\`;document.head.appendChild(e);})();
|
|
214224
214375
|
`,
|
|
214225
|
-
m = '"use strict";(()=>{var ve=class{get _window(){return typeof window<"u"?window:{ReactNativeWebView:{postMessage:()=>{}},__GRANITE_NATIVE_EMITTER:{on:()=>()=>{}},__CONSTANT_HANDLER_MAP:{}}}postMessage(e){let t=this._window.ReactNativeWebView;if(!t)throw new Error("ReactNativeWebView is not available in browser environment");t.postMessage(JSON.stringify(e))}on(e,t){let r=this._window.__GRANITE_NATIVE_EMITTER;if(!r)throw new Error("__GRANITE_NATIVE_EMITTER is not available");return r.on(e,t)}getConstant(e){let t=this._window.__CONSTANT_HANDLER_MAP;if(t&&e in t)return t[e];throw new Error(`${e} is not a constant handler`)}},E=new ve,z=()=>Math.random().toString(36).substring(2,15),$=e=>{if(e&&e.__isError){let t=new Error(e.message);for(let[r,n]of Object.entries(e))t[r]=n;return t}return e};function d(e){return(...t)=>{let r=z(),n=[],o=()=>{for(let s of n)s()};return new Promise((s,a)=>{n.push(E.on(`${e}/resolve/${r}`,i=>{o(),s(i)})),n.push(E.on(`${e}/reject/${r}`,i=>{o(),a($(i))})),E.postMessage({type:"method",functionName:e,eventId:r,args:t})})}}function D(e){return t=>{let r=z(),n=[E.on(`${e}/onEvent/${r}`,o=>{t.onEvent(o)}),E.on(`${e}/onError/${r}`,o=>{t.onError($(o))})];return E.postMessage({type:"addEventListener",functionName:e,eventId:r,args:t.options}),()=>{E.postMessage({type:"removeEventListener",functionName:e,eventId:r}),n.forEach(o=>o())}}}function v(e){return()=>E.getConstant(e)}var he=function(){return{emit:function(t,r){for(var n=this.events[t]||[],o=0,s=n.length;o<s;o++)n[o](r)},events:{},on:function(t,r){var n=this,o,s;return((o=this.events)[s=t]||(o[s]=[])).push(r),function(){var a;n.events[t]=(a=n.events[t])===null||a===void 0?void 0:a.filter(function(i){return r!==i})}}}};typeof window<"u"&&(window.__GRANITE_NATIVE_EMITTER=he());var it=d("closeView"),dt=d("generateHapticFeedback"),ct=d("share"),ut=d("setSecureScreen"),pt=d("setScreenAwakeMode"),mt=d("getNetworkStatus"),lt=d("setIosSwipeGestureEnabled"),gt=d("openURL"),ft=d("openPermissionDialog"),vt=d("getPermission"),ht=d("requestPermission"),wt=v("setClipboardText"),Et=v("getClipboardText"),At=v("fetchContacts"),bt=v("fetchAlbumPhotos"),_t=v("getCurrentLocation"),Ct=v("openCamera"),St=d("appLogin"),It=d("eventLog"),yt=d("getTossShareLink"),Tt=d("setDeviceOrientation"),Rt=d("checkoutPayment"),Lt=d("requestTossPayPaysBilling"),Pt=d("saveBase64Data"),xt=d("openPDFViewer"),Dt=d("fetchAlbumItems"),Nt=d("appsInTossSignTossCert"),Mt=d("getGameCenterGameProfile"),Ft=d("openGameCenterLeaderboard"),Gt=d("submitGameCenterLeaderBoardScore"),Bt=d("getAnonymousKey"),kt=d("getUserKeyForGame"),Ot=d("grantPromotionReward"),Vt=d("grantPromotionRewardForGame"),Ht=d("getIsTossLoginIntegratedService"),Ut=d("getServerTime"),qt=d("getConsentedUserData"),Wt=d("requestReview"),zt=v("getLocale"),$t=v("getSchemeUri"),jt=v("getPlatformOS"),Kt=v("getOperationalEnvironment"),Jt=v("getTossAppVersion"),Xt=v("getDeviceId"),Yt=v("getGroupId"),Zt=D("contactsViral"),Qt=D("startUpdateLocation"),er=D("onVisibilityChangedByTransparentServiceWeb");var S=class extends Error{constructor({methodName:e,message:t}){super(),this.name=`${e} permission error`,this.message=t}},j=class extends S{constructor(){super({methodName:"fetchAlbumPhotos",message:"\\uC0AC\\uC9C4\\uCCA9 \\uAD8C\\uD55C\\uC774 \\uAC70\\uBD80\\uB418\\uC5C8\\uC5B4\\uC694."})}},K=class extends S{constructor(){super({methodName:"fetchContacts",message:"\\uC5F0\\uB77D\\uCC98 \\uAD8C\\uD55C\\uC774 \\uAC70\\uBD80\\uB418\\uC5C8\\uC5B4\\uC694."})}},J=class extends S{constructor(){super({methodName:"openCamera",message:"\\uCE74\\uBA54\\uB77C \\uAD8C\\uD55C\\uC774 \\uAC70\\uBD80\\uB418\\uC5C8\\uC5B4\\uC694."})}};var V=class extends S{constructor(){super({methodName:"getCurrentLocation",message:"\\uC704\\uCE58 \\uAD8C\\uD55C\\uC774 \\uAC70\\uBD80\\uB418\\uC5C8\\uC5B4\\uC694."})}},X=V,Y=class extends S{constructor(){super({methodName:"getClipboardText",message:"\\uD074\\uB9BD\\uBCF4\\uB4DC \\uC77D\\uAE30 \\uAD8C\\uD55C\\uC774 \\uAC70\\uBD80\\uB418\\uC5C8\\uC5B4\\uC694."})}},Z=class extends S{constructor(){super({methodName:"setClipboardText",message:"\\uD074\\uB9BD\\uBCF4\\uB4DC \\uC4F0\\uAE30 \\uAD8C\\uD55C\\uC774 \\uAC70\\uBD80\\uB418\\uC5C8\\uC5B4\\uC694."})}};var we=class{get _window(){return typeof window<"u"?window:{ReactNativeWebView:{postMessage:()=>{}},__GRANITE_NATIVE_EMITTER:{on:()=>()=>{}},__CONSTANT_HANDLER_MAP:{}}}postMessage(e){let t=this._window.ReactNativeWebView;if(!t)throw new Error("ReactNativeWebView is not available in browser environment");t.postMessage(JSON.stringify(e))}on(e,t){let r=this._window.__GRANITE_NATIVE_EMITTER;if(!r)throw new Error("__GRANITE_NATIVE_EMITTER is not available");return r.on(e,t)}getConstant(e){let t=this._window.__CONSTANT_HANDLER_MAP;if(t&&e in t)return t[e];throw new Error(`${e} is not a constant handler`)}},A=new we,de=()=>Math.random().toString(36).substring(2,15),ce=e=>{if(e&&e.__isError){let t=new Error(e.message);for(let[r,n]of Object.entries(e))t[r]=n;return t}return e};function c(e){return(...t)=>{let r=de(),n=[],o=()=>{for(let s of n)s()};return new Promise((s,a)=>{n.push(A.on(`${e}/resolve/${r}`,i=>{o(),s(i)})),n.push(A.on(`${e}/reject/${r}`,i=>{o(),a(ce(i))})),A.postMessage({type:"method",functionName:e,eventId:r,args:t})})}}function b(e){return t=>{let r=de(),n=[A.on(`${e}/onEvent/${r}`,o=>{t.onEvent(o)}),A.on(`${e}/onError/${r}`,o=>{t.onError(ce(o))})];return A.postMessage({type:"addEventListener",functionName:e,eventId:r,args:t.options}),()=>{A.postMessage({type:"removeEventListener",functionName:e,eventId:r}),n.forEach(o=>o())}}}function p(e){return()=>A.getConstant(e)}var ur={getItem:c("getStorageItem"),setItem:c("setStorageItem"),removeItem:c("removeStorageItem"),clearItems:c("clearItems")},Ee=/^[v^~<>=]*?(\\d+)(?:\\.([x*]|\\d+)(?:\\.([x*]|\\d+)(?:\\.([x*]|\\d+))?(?:-([\\da-z\\\\-]+(?:\\.[\\da-z\\\\-]+)*))?(?:\\+[\\da-z\\\\-]+(?:\\.[\\da-z\\\\-]+)*)?)?)?$/i,Q=e=>["*","x","X"].includes(e),ee=e=>{let t=parseInt(e,10);return isNaN(t)?e:t},Ae=(e,t)=>typeof e==typeof t?[e,t]:[String(e),String(t)],be=(e,t)=>{if(Q(e)||Q(t))return 0;let[r,n]=Ae(ee(e),ee(t));return r>n?1:r<n?-1:0},te=e=>{if(typeof e!="string")throw new TypeError("Invalid argument: expected a string");let t=e.match(Ee);if(!t)throw new Error(`Invalid semver: \'${e}\'`);let[,r,n,o,s,a]=t;return[r,n,o,s,a]},re=(e,t)=>{let r=Math.max(e.length,t.length);for(let n=0;n<r;n++){let o=e[n]??"0",s=t[n]??"0",a=be(o,s);if(a!==0)return a}return 0},_e=(e,t)=>{let r=te(e),n=te(t),o=r.pop(),s=n.pop(),a=re(r,n);return a!==0?a:o&&s?re(o.split("."),s.split(".")):o?-1:s?1:0};function H(e){if(p("getOperationalEnvironment")()==="sandbox")return!0;let r=p("getTossAppVersion")(),o=p("getPlatformOS")()==="ios"?e.ios:e.android;return o===void 0?!1:o==="always"?!0:o==="never"?!1:_e(r,o)>=0}function ne(e){return c("processProductGrant")(e)}var pr={createOneTimePurchaseOrder:e=>{let t=H({android:"5.219.0",ios:"5.219.0"}),r=()=>{};if(!t)return r;let n=H({android:"5.231.1",ios:"5.230.0"}),{options:o,onEvent:s,onError:a}=e,i=o.sku??o.productId;return n?b("requestOneTimePurchase")({options:{sku:i},onEvent:async g=>{if(g.type==="purchased"){let u=await o.processProductGrant({orderId:g.data.orderId});await ne({orderId:g.data.orderId,isProductGranted:u}).catch(a)}else s(g)},onError:g=>{a(g)}}):(c("iapCreateOneTimePurchaseOrder")({productId:i}).then(u=>{Promise.resolve(o.processProductGrant({orderId:u.orderId})).then(()=>{s({type:"success",data:u})}).catch(f=>{a(f)})}).catch(u=>{a(u)}),r)},createSubscriptionPurchaseOrder:e=>{let t=H({android:"5.248.0",ios:"5.249.0"}),r=()=>{};if(!t)return r;let{options:n,onEvent:o,onError:s}=e,{sku:a,offerId:i,processProductGrant:l}=n;return b("requestSubscriptionPurchase")({options:{sku:a,offerId:i??null},onEvent:async u=>{if(u.type==="purchased"){let f=await l({orderId:u.data.orderId,subscriptionId:u.data.subscriptionId});await ne({orderId:u.data.orderId,isProductGranted:f}).catch(s)}else o(u)},onError:u=>{s(u)}})},getProductItemList:c("iapGetProductItemList"),getPendingOrders:c("getPendingOrders"),getCompletedOrRefundedOrders:c("getCompletedOrRefundedOrders"),completeProductGrant:c("completeProductGrant"),getSubscriptionInfo:c("getSubscriptionInfo")},mr=p("getSafeAreaInsets");var lr=p("getSafeAreaInsets");var gr={loadAppsInTossAdMob:Object.assign(b("loadAppsInTossAdMob"),{isSupported:p("loadAppsInTossAdMob_isSupported")}),showAppsInTossAdMob:Object.assign(b("showAppsInTossAdMob"),{isSupported:p("showAppsInTossAdMob_isSupported")}),isAppsInTossAdMobLoaded:Object.assign(c("isAppsInTossAdMobLoaded"),{isSupported:p("isAppsInTossAdMobLoaded_isSupported")})};var fr={getDeploymentId:p("getDeploymentId")},vr=p("deploymentId"),hr=p("brandDisplayName"),wr=p("brandIcon"),Er=p("brandPrimaryColor");var Ar={addAccessoryButton:c("addAccessoryButton"),removeAccessoryButton:c("removeAccessoryButton")},Ce=c("requestPermission"),Se=c("getPermission"),Ie=c("openPermissionDialog");function I({permission:e,handler:t,error:r}){let n=async(...o)=>{if(await Ce(e)==="denied")throw new r;return t(...o)};return n.getPermission=()=>Se(e),n.openPermissionDialog=()=>Ie(e),n}var _r=I({handler:e=>c("fetchAlbumPhotos")(e),permission:{name:"photos",access:"read"},error:j}),Sr=I({handler:e=>c("fetchContacts")(e),permission:{name:"contacts",access:"read"},error:K}),yr=I({handler:e=>c("getCurrentLocation")(e),permission:{name:"geolocation",access:"access"},error:V}),Rr=I({handler:e=>c("openCamera")(e),permission:{name:"camera",access:"access"},error:J}),Pr=I({handler:e=>c("setClipboardText")(e),permission:{name:"clipboard",access:"write"},error:Z}),Dr=I({handler:()=>c("getClipboardText")(),permission:{name:"clipboard",access:"read"},error:Y}),ye=c("getPermission"),Te=c("openPermissionDialog"),ue=e=>b("updateLocationEvent")({...e,onError:t=>{let r=new X;return t instanceof Error&&t.name===r.name?e.onError(r):e.onError(t)}});ue.getPermission=()=>ye({name:"geolocation",access:"access"});ue.openPermissionDialog=()=>Te({name:"geolocation",access:"access"});var Mr=Object.assign(b("loadFullScreenAd"),{isSupported:p("loadFullScreenAd_isSupported")}),Fr=Object.assign(b("showFullScreenAd"),{isSupported:p("showFullScreenAd_isSupported")}),P=new WeakMap;function Re(e,t){let r=P.get(e);if(r)return r;let n=t(),o=!1,s={destroy(){o||(o=!0,P.get(e)===s&&P.delete(e),n.destroy())}};return P.set(e,s),s}function Le(){P=new WeakMap}var Pe=c("openURL");function xe(e){let t=De(e);return Pe(t)}function De(e){return["http://","https://"].some(r=>e.startsWith(r))?Ne(e):e}function Ne(e){return`supertoss://web?url=${encodeURIComponent(e)}&external=true`}var oe="https://static.toss.im/ads/sdk/toss-ads-space-kit-1.3.0.js",se=15e3,N=null;function C(){if(!(typeof window>"u"))return window.TossAdsSpaceKit}function Me(){if(typeof window>"u"||typeof document>"u")return Promise.reject(new Error("Ads SDK can only be loaded in a browser environment."));let e=C();if(e)return Promise.resolve(e);if(N)return N;let t=new Promise((r,n)=>{let o=document.createElement("script"),s=()=>{o.removeEventListener("load",a),o.removeEventListener("error",i),window.clearTimeout(l),N=null},a=()=>{let g=C();if(g){s(),r(g);return}s(),n(new Error("Ads SDK script loaded but window.TossAdsSpaceKit was not exposed."))},i=()=>{s(),n(new Error(`Failed to load Ads SDK script from ${oe}.`))},l=window.setTimeout(()=>{s(),n(new Error(`Loading Ads SDK timed out after ${se}ms.`))},se);o.addEventListener("load",a),o.addEventListener("error",i),o.async=!0,o.src=oe,document.head.appendChild(o)});return N=t,t}var _=Object.assign(b("fetchTossAd"),{isSupported:p("fetchTossAd_isSupported")}),Fe=c("tossAdEventLog"),Ge=new Set(["1","2"]),pe="\\uC798\\uBABB\\uB41C \\uC694\\uCCAD\\uC774\\uC5D0\\uC694. \\uD544\\uC694\\uD55C \\uAC12\\uC774 \\uBE44\\uC5B4 \\uC788\\uC5B4\\uC694.";function M(e){return e.trim()}function q(){return new Error(pe)}function Be(){return{resultType:"FAIL",error:{reason:pe}}}function ke(e){return new Promise((t,r)=>{if(!_.isSupported()){r(new Error("fetchTossAd is not supported in this environment."));return}let n=M(e.adGroupId);if(n.length===0){r(q());return}return _({options:{...e,adGroupId:n},onEvent:t,onError:r})})}function ae(e){let t=Array.isArray(e.ads)?e.ads.filter(r=>Ge.has(String(r.styleId))):[];return{requestId:e.requestId??"",status:e.status??"OK",ads:t,ext:e.ext}}function Oe(e){return Ve(e)?e.resultType!=="SUCCESS"?e:e.success?{...e,success:ae(e.success)}:{resultType:"FAIL",error:{reason:"fetchTossAd returned SUCCESS without payload"}}:He(e)?{resultType:"SUCCESS",success:ae(e)}:{resultType:"FAIL",error:{reason:"Invalid response from fetchTossAd"}}}function Ve(e){return!!(e&&typeof e=="object"&&"resultType"in e)}function He(e){return!!(e&&typeof e=="object"&&"ads"in e)}function Ue(){return async(e,t)=>{let r=M(t.spaceUnitId);if(r.length===0)return Be();try{let n=await ke({adGroupId:r,sdkId:"108",availableStyleIds:["1","2"]});return Oe(n)}catch(n){return{resultType:"FAIL",error:{reason:n instanceof Error?n.message:"Unknown fetchTossAd error"}}}}}var L=null;function qe(e){let{callbacks:t}=e,r=()=>t?.onInitialized?.(),n=a=>{let i=a instanceof Error?a:new Error(String(a));t?.onInitializationFailed?.(i)};if(C()?.isInitialized()){r();return}if(L!=null){L.then(r).catch(n);return}let s=Me().then(a=>{if(a.isInitialized())return;let l={environment:"live",customAdFetcher:Ue(),opener:xe};a.init(l)});L=s,s.then(r).catch(n).finally(()=>{L===s&&(L=null)})}function We(e,t,r={}){let{callbacks:n}=r,o=M(e),s=a=>{let i=a instanceof Error?a:new Error(String(a));n?.onAdFailedToRender?.({slotId:"",adGroupId:o,adMetadata:{},error:{code:0,message:i.message}})};try{let a=o;if(a.length===0)throw q();let i=C();if(!i)throw new Error("[toss-ad] Call initialize() before attaching an ad.");if(!i.banner)throw new Error("[toss-ad] Loaded TossAdsSpaceKit does not support banner ads.");let l=typeof t=="string"?document.querySelector(t):t;if(!l)throw new Error(`[toss-ad] Failed to find target element: ${t}`);let g={spaceId:a,autoLoad:!0,theme:r.theme,padding:r.padding,callbacks:le(o,r.callbacks)};i.banner.createSlot(l,g)}catch(a){s(a)}}var ze="16px 20px",$e="20px",je="auto",Ke="blackAndWhite",Je="expanded",h="toss-ads-attach",ie="toss-ads-attach-style",me="data-toss-ads-attach-banner-wrapper",U=\'"Toss Product Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif\';function Xe(e){let t=e.ownerDocument;if(!t||t.getElementById(ie))return;let r=t.createElement("style");r.id=ie,r.textContent=`\n .${h},\n .${h} * {\n font-family: ${U};\n font-style: normal;\n }\n .${h} { background: #ffffff; }\n .${h}.toss-ads-tone-grey { background: #f2f4f7; }\n @media (prefers-color-scheme: dark) {\n .${h} { background: #17171c; }\n .${h}.toss-ads-tone-grey { background: #101013; }\n }\n .${h}.toss-ads-theme-light { background: #ffffff; }\n .${h}.toss-ads-theme-light.toss-ads-tone-grey { background: #f2f4f7; }\n .${h}.toss-ads-theme-dark { background: #17171c; }\n .${h}.toss-ads-theme-dark.toss-ads-tone-grey { background: #101013; }\n `;let n=t.head??t.body??t.documentElement;n&&n.appendChild(r)}function Ye(e){Array.from(e.children).forEach(t=>{t instanceof HTMLElement&&t.getAttribute(me)==="true"&&e.removeChild(t)})}function Ze(e,t,r={}){let{callbacks:n,theme:o=je,tone:s=Ke,variant:a=Je}=r,i=M(e),l=u=>{let f=u instanceof Error?u:new Error(String(u));n?.onAdFailedToRender?.({slotId:"",adGroupId:i,adMetadata:{},error:{code:0,message:f.message}})},g=le(i,n);try{let u=i;if(u.length===0)throw q();let f=C();if(!f)throw new Error("[toss-ad] Call initialize() before attaching an ad.");if(!f.banner)throw new Error("[toss-ad] Loaded TossAdsSpaceKit does not support banner ads.");let R=typeof t=="string"?document.querySelector(t):t;if(!R)throw new Error(`[toss-ad] Failed to find target element: ${t}`);return Re(R,()=>{let m=document.createElement("div");m.style.width="100%",m.style.height="100%",m.style.boxSizing="border-box",m.style.display="flex",m.style.flexDirection="column",m.style.fontFamily=U,m.style.fontStyle="normal",m.style.justifyContent="center",m.style.overflow="hidden",m.setAttribute(me,"true"),a==="card"&&(m.style.padding="0 10px");let w=document.createElement("div");w.classList.add(h),w.style.fontFamily=U,w.style.fontStyle="normal",s==="grey"&&w.classList.add("toss-ads-tone-grey"),o==="light"?w.classList.add("toss-ads-theme-light"):o==="dark"&&w.classList.add("toss-ads-theme-dark"),a==="card"&&(w.style.borderRadius="16px",w.style.overflow="hidden"),m.appendChild(w);let x=!1,W=null;try{Xe(R),Ye(R),R.appendChild(m),x=!0;let O={spaceId:u,autoLoad:!0,theme:o==="auto"?void 0:o,renderPadding:fe=>fe==="1"?ze:$e,callbacks:g};W=f.banner.createSlot(w,O)}catch(O){throw x&&m.parentNode&&m.parentNode.removeChild(m),O}return{destroy(){W?.destroy(),x&&m.parentNode&&m.parentNode.removeChild(m),x=!1}}})}catch(u){return l(u),{destroy(){}}}}function Qe(e){let t=C();t?.banner&&t.banner.destroy(e)}function et(){let e=C();e?.banner&&(e.banner.destroyAll(),Le())}function le(e,t){if(!t)return;let r=n=>{let o={...n??{}};return o.adGroupId=o.adGroupId??o.spaceId??e,delete o.spaceId,o};return{onAdRendered:n=>t.onAdRendered?.(r(n)),onAdViewable:n=>t.onAdViewable?.(r(n)),onAdClicked:n=>t.onAdClicked?.(r(n)),onAdImpression:n=>{Fe({log_name:"display_ads_all::impression__1px_banner",log_type:"event",params:{event_type:"impression",schema_id:1812034,request_id:n?.adMetadata?.requestId??""}}),t.onAdImpression?.(r(n))},onAdFailedToRender:n=>t.onAdFailedToRender?.({...r(n),error:n?.error??{code:0,message:"UNKNOWN"}}),onNoFill:n=>t.onNoFill?.(r(n))}}var Gr={initialize:Object.assign(qe,{isSupported:_.isSupported}),attach:Object.assign(We,{isSupported:_.isSupported}),attachBanner:Object.assign(Ze,{isSupported:_.isSupported}),destroy:Object.assign(Qe,{isSupported:_.isSupported}),destroyAll:Object.assign(et,{isSupported:_.isSupported})},Br=Object.assign(c("getServerTime"),{isSupported:p("getServerTime_isSupported")}),kr=Object.assign(c("requestReview"),{isSupported:p("requestReview_isSupported")});var F=class{_log=c("debugLog");log(t,r){try{this._log({log_name:`apps_in_toss_webview_${t}`,log_type:"debug",params:{...r,...this.getCommonParams()}})}catch{}}getCommonParams(){return{...this.getLocationInfo(),...this.getNavigatorInfo(),...this.getScreenInfo(),appName:window.__appsInToss.appName,deploymentId:window.__appsInToss.deploymentId,sessionId:window.__appsInToss.sessionId,isGame:window.__appsInToss.webViewType==="game",timestampMs:Date.now()}}getLocationInfo(){return{url:window.location.href,urlOrigin:window.location.origin,urlHost:window.location.hostname,urlPath:window.location.pathname,urlSearch:window.location.search}}getNavigatorInfo(){return{userAgent:navigator.userAgent,platform:navigator.platform,language:navigator.language,cookieEnabled:navigator.cookieEnabled,hardwareConcurrency:navigator.hardwareConcurrency,deviceMemory:navigator.deviceMemory?navigator.deviceMemory*1024*1024:void 0,maxTouchPoints:navigator.maxTouchPoints}}getScreenInfo(){return{screenWidth:screen.width,screenHeight:screen.height,availableScreenWidth:screen.availWidth,availableScreenHeight:screen.availHeight,devicePixelRatio:window.devicePixelRatio,colorDepth:screen.colorDepth,pixelDepth:screen.pixelDepth,viewportWidth:window.innerWidth,viewportHeight:window.innerHeight}}};var G=class{callbacks={};on(t,r){return typeof this.callbacks[t]>"u"&&(this.callbacks[t]=[]),this.callbacks[t].push(r),()=>{this.callbacks[t]=this.callbacks[t]?.filter(n=>n!==r)??[]}}emit(t,r){this.callbacks[t]?.forEach(n=>n(r))}};window.__appsInToss={appName:p("getAppName")(),deploymentId:p("getDeploymentId")(),webViewType:p("getWebViewType")(),sessionId:Math.random().toString(36).substring(2),eventEmitter:new G,debugLogger:new F};var y=/\\.(data|wasm|framework\\.js)(?:\\.gz|\\.br|\\.unityweb)?$/;function B(e){window.fetch=new Proxy(window.fetch,{apply:e})}(()=>{if(window.__appsInToss.webViewType!=="game"||typeof caches>"u")return;let e="@apps-in-toss/caches/",t=`${e}${window.__appsInToss.deploymentId}`;window.addEventListener("load",async()=>{let r=await caches.keys();for(let n of r)n.startsWith(e)&&n!==t&&await caches.delete(n)}),B(async(r,n,o)=>{let s=new Request(o[0],o[1]);if(!y.test(s.url))return await r.call(n,s);let a=await caches.open(t),i=await a.match(s);if(i){let g=i.headers.get("ETag"),u=i.headers.get("Last-Modified");g&&s.headers.set("If-None-Match",g),u&&s.headers.set("If-Modified-Since",u);let f=await r.call(n,s);return f.status===304?(i.__revalidateResponse=f,i):(a.put(s,f.clone()),f)}let l=await r.call(n,s);return a.put(s,l.clone()),l})})();B(async(e,t,r)=>{let n=new Request(r[0],r[1]),o=Date.now();window.__appsInToss.eventEmitter.emit("fetchRequest",{request:n});try{let s=await e.call(t,n);return window.__appsInToss.eventEmitter.emit("fetchResponse",{request:n,response:s,requestAt:o}),s}catch(s){throw window.__appsInToss.eventEmitter.emit("fetchError",{request:n,requestAt:o,error:s}),s}});HTMLCanvasElement.prototype.getContext=new Proxy(HTMLCanvasElement.prototype.getContext,{apply:(e,t,r)=>{let n=e.apply(t,r);return(n instanceof WebGL2RenderingContext||n instanceof WebGLRenderingContext)&&window.__appsInToss.eventEmitter.emit("webglGetContext",{canvas:t,context:n}),n}});var ge=window.__appsInToss.debugLogger;ge.log("load_start",{});window.addEventListener("load",()=>{let e=performance.timeOrigin,t=performance.getEntriesByType?.("navigation")[0]??null,r=typeof e<"u"&&t!==null,n=r?{navigationStartAtMs:e+t.startTime,navigationRedirectStartAtMs:e+t.redirectStart,navigationRedirectEndAtMs:e+t.redirectEnd,navigationRedirectCount:t.redirectCount,navigationServiceWorkerStartAtMs:e+t.workerStart,navigationFetchStartAtMs:e+t.fetchStart,navigationDomainLookupStartAtMs:e+t.domainLookupStart,navigationDomainLookupEndAtMs:e+t.domainLookupEnd,navigationConnectStartAtMs:e+t.connectStart,navigationSecureConnectStartAtMs:e+t.secureConnectionStart,navigationConnectEndAtMs:e+t.connectEnd,navigationRequestStartAtMs:e+t.requestStart,navigationResponseStartAtMs:e+t.responseStart,navigationResponseEndAtMs:e+t.responseEnd,navigationDomInteractiveAtMs:e+t.domInteractive,navigationDomContentLoadedEventStartAtMs:e+t.domContentLoadedEventStart,navigationDomContentLoadedEventEndAtMs:e+t.domContentLoadedEventEnd,navigationDomCompleteAtMs:e+t.domComplete}:{};ge.log("load_complete",{isNavigationDebugSupported:r,...n})});function T(e,t){return parseFloat(e.toFixed(t))}(()=>{if(typeof performance.memory>"u"||typeof performance.memory.usedJSHeapSize>"u"||typeof performance.memory.totalJSHeapSize>"u"||typeof performance.memory.jsHeapSizeLimit>"u")return;function e(t){window.__appsInToss.debugLogger.log(t,{usedJSHeapSize:T(performance.memory.usedJSHeapSize/1024,2),totalJSHeapSize:T(performance.memory.totalJSHeapSize/1024,2),jsHeapSizeLimit:T(performance.memory.jsHeapSizeLimit/1024,2)})}e("memory_usage_first_0s"),setTimeout(()=>e("memory_usage_first_1s"),1e3),setTimeout(()=>e("memory_usage_first_10s"),1e4),setTimeout(()=>e("memory_usage_first_30s"),3e4),setTimeout(()=>e("memory_usage_first_60s"),6e4),setInterval(()=>e("memory_usage_every_180s"),18e4)})();(()=>{let e=window.__appsInToss.debugLogger,t=performance.timeOrigin;if(typeof t>"u"||typeof PerformanceObserver>"u")return;new PerformanceObserver(o=>{o.getEntries().forEach(a=>{a.name==="first-paint"?e.log("first_paint",{fpStartAtMs:t+a.startTime}):a.name==="first-contentful-paint"&&e.log("first_contentful_paint",{fcpStartAtMs:t+a.startTime})})}).observe({type:"paint"}),new PerformanceObserver(o=>{o.getEntries().forEach(a=>{e.log("largest_contentful_paint",{lcpStartAtMs:t+a.startTime,lcpRenderSize:a.size})})}).observe({type:"largest-contentful-paint"})})();(()=>{if(window.__appsInToss.webViewType!=="game")return;let e=window.__appsInToss.eventEmitter.on("webglGetContext",({canvas:t,context:r})=>{if(t.getAttribute("id")!=="unity-canvas")return;e();let n=r.getExtension("WEBGL_debug_renderer_info"),o=r.getParameter(r.MAX_VIEWPORT_DIMS),s={webGLRenderer:r.getParameter(r.RENDERER),webGLVendor:r.getParameter(r.VENDOR),webGLVersion:r.getParameter(r.VERSION),webGLShadingLanguageVersion:r.getParameter(r.SHADING_LANGUAGE_VERSION),webGLMaxTextureSize:r.getParameter(r.MAX_TEXTURE_SIZE),webGLMaxViewportWidth:o[0],webGLMaxViewportHeight:o[1],webGLMaxRenderbufferSize:r.getParameter(r.MAX_RENDERBUFFER_SIZE)},a=n?{webGLUnmaskedVendor:r.getParameter(n.UNMASKED_VENDOR_WEBGL),webGLUnmaskedRenderer:r.getParameter(n.UNMASKED_RENDERER_WEBGL)}:{};window.__appsInToss.debugLogger.log("unity_webgl_info",{...s,...a})})})();(()=>{if(window.__appsInToss.webViewType!=="game")return;let e=window.__appsInToss.debugLogger,t=window.__appsInToss.eventEmitter;t.on("fetchRequest",({request:n})=>{y.test(n.url)&&e.log("game_resource_download_start",{gameResourceRequestURL:n.url})});function r({request:n,requestAt:o,error:s}){e.log("game_resource_download_error",{gameResourceRequestURL:n.url,gameResourceRequestAtMs:o,gameResourceError:s instanceof Error?s.message:"Unknown Error"})}t.on("fetchResponse",async({request:n,requestAt:o,response:s})=>{if(!y.test(n.url))return;let a=await s.clone().blob().then(l=>T(l.size/1024,2)).catch(l=>(r({request:n,requestAt:o,error:l}),null));if(a===null)return;let i=Date.now();e.log("game_resource_download_end",{gameResourceRequestURL:n.url,gameResourceRequestAtMs:o,gameResourceResponseAtMs:i,gameResourceResponseSize:a,gameResourceResponseStatus:s.__revalidateResponse?.status??s.status,gameResourceDownloadDurationMs:i-o})}),t.on("fetchError",async({request:n,requestAt:o,error:s})=>{y.test(n.url)&&r({request:n,requestAt:o,error:s})})})();var k=[];function tt(){let e=0;function t(r){let n=performance.now();if(r<n-1e3){k.push(e);return}e+=1,window.requestAnimationFrame(()=>t(r))}window.requestAnimationFrame(()=>t(performance.now()))}function rt(){if(k.length===0)return;let e=k;k=[];let t=nt(e).toSorted(),r={};for(let o=0;o<=100;o+=10){let s=t[Math.floor((t.length-1)*(o/100))];s&&(r[`fpsP${o}`]=s)}let n=t.reduce((o,s)=>o+s,0);r.fpsAverage=n/t.length,window.__appsInToss.debugLogger.log("fps_every_300s",r)}function nt(e){let t=new Set(e);return Array.from(t.values())}setInterval(()=>tt(),1e3);setInterval(()=>rt(),3e5);})();\n';
|
|
214376
|
+
m = '"use strict";(()=>{var ve=class{get _window(){return typeof window<"u"?window:{ReactNativeWebView:{postMessage:()=>{}},__GRANITE_NATIVE_EMITTER:{on:()=>()=>{}},__CONSTANT_HANDLER_MAP:{}}}postMessage(e){let t=this._window.ReactNativeWebView;if(!t)throw new Error("ReactNativeWebView is not available in browser environment");t.postMessage(JSON.stringify(e))}on(e,t){let r=this._window.__GRANITE_NATIVE_EMITTER;if(!r)throw new Error("__GRANITE_NATIVE_EMITTER is not available");return r.on(e,t)}getConstant(e){let t=this._window.__CONSTANT_HANDLER_MAP;if(t&&e in t)return t[e];throw new Error(`${e} is not a constant handler`)}},E=new ve,z=()=>Math.random().toString(36).substring(2,15),$=e=>{if(e&&e.__isError){let t=new Error(e.message);for(let[r,n]of Object.entries(e))t[r]=n;return t}return e};function d(e){return(...t)=>{let r=z(),n=[],o=()=>{for(let s of n)s()};return new Promise((s,a)=>{n.push(E.on(`${e}/resolve/${r}`,i=>{o(),s(i)})),n.push(E.on(`${e}/reject/${r}`,i=>{o(),a($(i))})),E.postMessage({type:"method",functionName:e,eventId:r,args:t})})}}function D(e){return t=>{let r=z(),n=[E.on(`${e}/onEvent/${r}`,o=>{t.onEvent(o)}),E.on(`${e}/onError/${r}`,o=>{t.onError($(o))})];return E.postMessage({type:"addEventListener",functionName:e,eventId:r,args:t.options}),()=>{E.postMessage({type:"removeEventListener",functionName:e,eventId:r}),n.forEach(o=>o())}}}function v(e){return()=>E.getConstant(e)}var he=function(){return{emit:function(t,r){for(var n=this.events[t]||[],o=0,s=n.length;o<s;o++)n[o](r)},events:{},on:function(t,r){var n=this,o,s;return((o=this.events)[s=t]||(o[s]=[])).push(r),function(){var a;n.events[t]=(a=n.events[t])===null||a===void 0?void 0:a.filter(function(i){return r!==i})}}}};typeof window<"u"&&(window.__GRANITE_NATIVE_EMITTER=he());var it=d("closeView"),dt=d("generateHapticFeedback"),ct=d("share"),ut=d("setSecureScreen"),pt=d("setScreenAwakeMode"),mt=d("getNetworkStatus"),lt=d("setIosSwipeGestureEnabled"),gt=d("openURL"),ft=d("openPermissionDialog"),vt=d("getPermission"),ht=d("requestPermission"),wt=v("setClipboardText"),Et=v("getClipboardText"),At=v("fetchContacts"),bt=v("fetchAlbumPhotos"),_t=v("getCurrentLocation"),Ct=v("openCamera"),St=d("appLogin"),It=d("getAnonymousKey"),yt=d("eventLog"),Tt=d("getTossShareLink"),Rt=d("setDeviceOrientation"),Lt=d("checkoutPayment"),Pt=d("requestTossPayPaysBilling"),xt=d("saveBase64Data"),Dt=d("openPDFViewer"),Nt=d("fetchAlbumItems"),Mt=d("appsInTossSignTossCert"),Ft=d("getGameCenterGameProfile"),Gt=d("openGameCenterLeaderboard"),Bt=d("submitGameCenterLeaderBoardScore"),kt=d("getUserKeyForGame"),Ot=d("grantPromotionReward"),Vt=d("grantPromotionRewardForGame"),Ht=d("getIsTossLoginIntegratedService"),Ut=d("getServerTime"),qt=d("getConsentedUserData"),Wt=d("requestReview"),zt=v("getLocale"),$t=v("getSchemeUri"),jt=v("getPlatformOS"),Kt=v("getOperationalEnvironment"),Jt=v("getTossAppVersion"),Xt=v("getDeviceId"),Yt=v("getGroupId"),Zt=D("contactsViral"),Qt=D("startUpdateLocation"),er=D("onVisibilityChangedByTransparentServiceWeb");var S=class extends Error{constructor({methodName:e,message:t}){super(),this.name=`${e} permission error`,this.message=t}},j=class extends S{constructor(){super({methodName:"fetchAlbumPhotos",message:"\\uC0AC\\uC9C4\\uCCA9 \\uAD8C\\uD55C\\uC774 \\uAC70\\uBD80\\uB418\\uC5C8\\uC5B4\\uC694."})}},K=class extends S{constructor(){super({methodName:"fetchContacts",message:"\\uC5F0\\uB77D\\uCC98 \\uAD8C\\uD55C\\uC774 \\uAC70\\uBD80\\uB418\\uC5C8\\uC5B4\\uC694."})}},J=class extends S{constructor(){super({methodName:"openCamera",message:"\\uCE74\\uBA54\\uB77C \\uAD8C\\uD55C\\uC774 \\uAC70\\uBD80\\uB418\\uC5C8\\uC5B4\\uC694."})}};var V=class extends S{constructor(){super({methodName:"getCurrentLocation",message:"\\uC704\\uCE58 \\uAD8C\\uD55C\\uC774 \\uAC70\\uBD80\\uB418\\uC5C8\\uC5B4\\uC694."})}},X=V,Y=class extends S{constructor(){super({methodName:"getClipboardText",message:"\\uD074\\uB9BD\\uBCF4\\uB4DC \\uC77D\\uAE30 \\uAD8C\\uD55C\\uC774 \\uAC70\\uBD80\\uB418\\uC5C8\\uC5B4\\uC694."})}},Z=class extends S{constructor(){super({methodName:"setClipboardText",message:"\\uD074\\uB9BD\\uBCF4\\uB4DC \\uC4F0\\uAE30 \\uAD8C\\uD55C\\uC774 \\uAC70\\uBD80\\uB418\\uC5C8\\uC5B4\\uC694."})}};var we=class{get _window(){return typeof window<"u"?window:{ReactNativeWebView:{postMessage:()=>{}},__GRANITE_NATIVE_EMITTER:{on:()=>()=>{}},__CONSTANT_HANDLER_MAP:{}}}postMessage(e){let t=this._window.ReactNativeWebView;if(!t)throw new Error("ReactNativeWebView is not available in browser environment");t.postMessage(JSON.stringify(e))}on(e,t){let r=this._window.__GRANITE_NATIVE_EMITTER;if(!r)throw new Error("__GRANITE_NATIVE_EMITTER is not available");return r.on(e,t)}getConstant(e){let t=this._window.__CONSTANT_HANDLER_MAP;if(t&&e in t)return t[e];throw new Error(`${e} is not a constant handler`)}},A=new we,de=()=>Math.random().toString(36).substring(2,15),ce=e=>{if(e&&e.__isError){let t=new Error(e.message);for(let[r,n]of Object.entries(e))t[r]=n;return t}return e};function c(e){return(...t)=>{let r=de(),n=[],o=()=>{for(let s of n)s()};return new Promise((s,a)=>{n.push(A.on(`${e}/resolve/${r}`,i=>{o(),s(i)})),n.push(A.on(`${e}/reject/${r}`,i=>{o(),a(ce(i))})),A.postMessage({type:"method",functionName:e,eventId:r,args:t})})}}function b(e){return t=>{let r=de(),n=[A.on(`${e}/onEvent/${r}`,o=>{t.onEvent(o)}),A.on(`${e}/onError/${r}`,o=>{t.onError(ce(o))})];return A.postMessage({type:"addEventListener",functionName:e,eventId:r,args:t.options}),()=>{A.postMessage({type:"removeEventListener",functionName:e,eventId:r}),n.forEach(o=>o())}}}function p(e){return()=>A.getConstant(e)}var ur={getItem:c("getStorageItem"),setItem:c("setStorageItem"),removeItem:c("removeStorageItem"),clearItems:c("clearItems")},Ee=/^[v^~<>=]*?(\\d+)(?:\\.([x*]|\\d+)(?:\\.([x*]|\\d+)(?:\\.([x*]|\\d+))?(?:-([\\da-z\\\\-]+(?:\\.[\\da-z\\\\-]+)*))?(?:\\+[\\da-z\\\\-]+(?:\\.[\\da-z\\\\-]+)*)?)?)?$/i,Q=e=>["*","x","X"].includes(e),ee=e=>{let t=parseInt(e,10);return isNaN(t)?e:t},Ae=(e,t)=>typeof e==typeof t?[e,t]:[String(e),String(t)],be=(e,t)=>{if(Q(e)||Q(t))return 0;let[r,n]=Ae(ee(e),ee(t));return r>n?1:r<n?-1:0},te=e=>{if(typeof e!="string")throw new TypeError("Invalid argument: expected a string");let t=e.match(Ee);if(!t)throw new Error(`Invalid semver: \'${e}\'`);let[,r,n,o,s,a]=t;return[r,n,o,s,a]},re=(e,t)=>{let r=Math.max(e.length,t.length);for(let n=0;n<r;n++){let o=e[n]??"0",s=t[n]??"0",a=be(o,s);if(a!==0)return a}return 0},_e=(e,t)=>{let r=te(e),n=te(t),o=r.pop(),s=n.pop(),a=re(r,n);return a!==0?a:o&&s?re(o.split("."),s.split(".")):o?-1:s?1:0};function H(e){if(p("getOperationalEnvironment")()==="sandbox")return!0;let r=p("getTossAppVersion")(),o=p("getPlatformOS")()==="ios"?e.ios:e.android;return o===void 0?!1:o==="always"?!0:o==="never"?!1:_e(r,o)>=0}function ne(e){return c("processProductGrant")(e)}var pr={createOneTimePurchaseOrder:e=>{let t=H({android:"5.219.0",ios:"5.219.0"}),r=()=>{};if(!t)return r;let n=H({android:"5.231.1",ios:"5.230.0"}),{options:o,onEvent:s,onError:a}=e,i=o.sku??o.productId;return n?b("requestOneTimePurchase")({options:{sku:i},onEvent:async g=>{if(g.type==="purchased"){let u=await o.processProductGrant({orderId:g.data.orderId});await ne({orderId:g.data.orderId,isProductGranted:u}).catch(a)}else s(g)},onError:g=>{a(g)}}):(c("iapCreateOneTimePurchaseOrder")({productId:i}).then(u=>{Promise.resolve(o.processProductGrant({orderId:u.orderId})).then(()=>{s({type:"success",data:u})}).catch(f=>{a(f)})}).catch(u=>{a(u)}),r)},createSubscriptionPurchaseOrder:e=>{let t=H({android:"5.248.0",ios:"5.249.0"}),r=()=>{};if(!t)return r;let{options:n,onEvent:o,onError:s}=e,{sku:a,offerId:i,processProductGrant:l}=n;return b("requestSubscriptionPurchase")({options:{sku:a,offerId:i??null},onEvent:async u=>{if(u.type==="purchased"){let f=await l({orderId:u.data.orderId,subscriptionId:u.data.subscriptionId});await ne({orderId:u.data.orderId,isProductGranted:f}).catch(s)}else o(u)},onError:u=>{s(u)}})},getProductItemList:c("iapGetProductItemList"),getPendingOrders:c("getPendingOrders"),getCompletedOrRefundedOrders:c("getCompletedOrRefundedOrders"),completeProductGrant:c("completeProductGrant"),getSubscriptionInfo:c("getSubscriptionInfo")},mr=p("getSafeAreaInsets");var lr=p("getSafeAreaInsets");var gr={loadAppsInTossAdMob:Object.assign(b("loadAppsInTossAdMob"),{isSupported:p("loadAppsInTossAdMob_isSupported")}),showAppsInTossAdMob:Object.assign(b("showAppsInTossAdMob"),{isSupported:p("showAppsInTossAdMob_isSupported")}),isAppsInTossAdMobLoaded:Object.assign(c("isAppsInTossAdMobLoaded"),{isSupported:p("isAppsInTossAdMobLoaded_isSupported")})};var fr={getDeploymentId:p("getDeploymentId")},vr=p("deploymentId"),hr=p("brandDisplayName"),wr=p("brandIcon"),Er=p("brandPrimaryColor");var Ar={addAccessoryButton:c("addAccessoryButton"),removeAccessoryButton:c("removeAccessoryButton")},Ce=c("requestPermission"),Se=c("getPermission"),Ie=c("openPermissionDialog");function I({permission:e,handler:t,error:r}){let n=async(...o)=>{if(await Ce(e)==="denied")throw new r;return t(...o)};return n.getPermission=()=>Se(e),n.openPermissionDialog=()=>Ie(e),n}var _r=I({handler:e=>c("fetchAlbumPhotos")(e),permission:{name:"photos",access:"read"},error:j}),Sr=I({handler:e=>c("fetchContacts")(e),permission:{name:"contacts",access:"read"},error:K}),yr=I({handler:e=>c("getCurrentLocation")(e),permission:{name:"geolocation",access:"access"},error:V}),Rr=I({handler:e=>c("openCamera")(e),permission:{name:"camera",access:"access"},error:J}),Pr=I({handler:e=>c("setClipboardText")(e),permission:{name:"clipboard",access:"write"},error:Z}),Dr=I({handler:()=>c("getClipboardText")(),permission:{name:"clipboard",access:"read"},error:Y}),ye=c("getPermission"),Te=c("openPermissionDialog"),ue=e=>b("updateLocationEvent")({...e,onError:t=>{let r=new X;return t instanceof Error&&t.name===r.name?e.onError(r):e.onError(t)}});ue.getPermission=()=>ye({name:"geolocation",access:"access"});ue.openPermissionDialog=()=>Te({name:"geolocation",access:"access"});var Mr=Object.assign(b("loadFullScreenAd"),{isSupported:p("loadFullScreenAd_isSupported")}),Fr=Object.assign(b("showFullScreenAd"),{isSupported:p("showFullScreenAd_isSupported")}),P=new WeakMap;function Re(e,t){let r=P.get(e);if(r)return r;let n=t(),o=!1,s={destroy(){o||(o=!0,P.get(e)===s&&P.delete(e),n.destroy())}};return P.set(e,s),s}function Le(){P=new WeakMap}var Pe=c("openURL");function xe(e){let t=De(e);return Pe(t)}function De(e){return["http://","https://"].some(r=>e.startsWith(r))?Ne(e):e}function Ne(e){return`supertoss://web?url=${encodeURIComponent(e)}&external=true`}var oe="https://static.toss.im/ads/sdk/toss-ads-space-kit-1.3.0.js",se=15e3,N=null;function C(){if(!(typeof window>"u"))return window.TossAdsSpaceKit}function Me(){if(typeof window>"u"||typeof document>"u")return Promise.reject(new Error("Ads SDK can only be loaded in a browser environment."));let e=C();if(e)return Promise.resolve(e);if(N)return N;let t=new Promise((r,n)=>{let o=document.createElement("script"),s=()=>{o.removeEventListener("load",a),o.removeEventListener("error",i),window.clearTimeout(l),N=null},a=()=>{let g=C();if(g){s(),r(g);return}s(),n(new Error("Ads SDK script loaded but window.TossAdsSpaceKit was not exposed."))},i=()=>{s(),n(new Error(`Failed to load Ads SDK script from ${oe}.`))},l=window.setTimeout(()=>{s(),n(new Error(`Loading Ads SDK timed out after ${se}ms.`))},se);o.addEventListener("load",a),o.addEventListener("error",i),o.async=!0,o.src=oe,document.head.appendChild(o)});return N=t,t}var _=Object.assign(b("fetchTossAd"),{isSupported:p("fetchTossAd_isSupported")}),Fe=c("tossAdEventLog"),Ge=new Set(["1","2"]),pe="\\uC798\\uBABB\\uB41C \\uC694\\uCCAD\\uC774\\uC5D0\\uC694. \\uD544\\uC694\\uD55C \\uAC12\\uC774 \\uBE44\\uC5B4 \\uC788\\uC5B4\\uC694.";function M(e){return e.trim()}function q(){return new Error(pe)}function Be(){return{resultType:"FAIL",error:{reason:pe}}}function ke(e){return new Promise((t,r)=>{if(!_.isSupported()){r(new Error("fetchTossAd is not supported in this environment."));return}let n=M(e.adGroupId);if(n.length===0){r(q());return}return _({options:{...e,adGroupId:n},onEvent:t,onError:r})})}function ae(e){let t=Array.isArray(e.ads)?e.ads.filter(r=>Ge.has(String(r.styleId))):[];return{requestId:e.requestId??"",status:e.status??"OK",ads:t,ext:e.ext}}function Oe(e){return Ve(e)?e.resultType!=="SUCCESS"?e:e.success?{...e,success:ae(e.success)}:{resultType:"FAIL",error:{reason:"fetchTossAd returned SUCCESS without payload"}}:He(e)?{resultType:"SUCCESS",success:ae(e)}:{resultType:"FAIL",error:{reason:"Invalid response from fetchTossAd"}}}function Ve(e){return!!(e&&typeof e=="object"&&"resultType"in e)}function He(e){return!!(e&&typeof e=="object"&&"ads"in e)}function Ue(){return async(e,t)=>{let r=M(t.spaceUnitId);if(r.length===0)return Be();try{let n=await ke({adGroupId:r,sdkId:"108",availableStyleIds:["1","2"]});return Oe(n)}catch(n){return{resultType:"FAIL",error:{reason:n instanceof Error?n.message:"Unknown fetchTossAd error"}}}}}var L=null;function qe(e){let{callbacks:t}=e,r=()=>t?.onInitialized?.(),n=a=>{let i=a instanceof Error?a:new Error(String(a));t?.onInitializationFailed?.(i)};if(C()?.isInitialized()){r();return}if(L!=null){L.then(r).catch(n);return}let s=Me().then(a=>{if(a.isInitialized())return;let l={environment:"live",customAdFetcher:Ue(),opener:xe};a.init(l)});L=s,s.then(r).catch(n).finally(()=>{L===s&&(L=null)})}function We(e,t,r={}){let{callbacks:n}=r,o=M(e),s=a=>{let i=a instanceof Error?a:new Error(String(a));n?.onAdFailedToRender?.({slotId:"",adGroupId:o,adMetadata:{},error:{code:0,message:i.message}})};try{let a=o;if(a.length===0)throw q();let i=C();if(!i)throw new Error("[toss-ad] Call initialize() before attaching an ad.");if(!i.banner)throw new Error("[toss-ad] Loaded TossAdsSpaceKit does not support banner ads.");let l=typeof t=="string"?document.querySelector(t):t;if(!l)throw new Error(`[toss-ad] Failed to find target element: ${t}`);let g={spaceId:a,autoLoad:!0,theme:r.theme,padding:r.padding,callbacks:le(o,r.callbacks)};i.banner.createSlot(l,g)}catch(a){s(a)}}var ze="16px 20px",$e="20px",je="auto",Ke="blackAndWhite",Je="expanded",h="toss-ads-attach",ie="toss-ads-attach-style",me="data-toss-ads-attach-banner-wrapper",U=\'"Toss Product Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif\';function Xe(e){let t=e.ownerDocument;if(!t||t.getElementById(ie))return;let r=t.createElement("style");r.id=ie,r.textContent=`\n .${h},\n .${h} * {\n font-family: ${U};\n font-style: normal;\n }\n .${h} { background: #ffffff; }\n .${h}.toss-ads-tone-grey { background: #f2f4f7; }\n @media (prefers-color-scheme: dark) {\n .${h} { background: #17171c; }\n .${h}.toss-ads-tone-grey { background: #101013; }\n }\n .${h}.toss-ads-theme-light { background: #ffffff; }\n .${h}.toss-ads-theme-light.toss-ads-tone-grey { background: #f2f4f7; }\n .${h}.toss-ads-theme-dark { background: #17171c; }\n .${h}.toss-ads-theme-dark.toss-ads-tone-grey { background: #101013; }\n `;let n=t.head??t.body??t.documentElement;n&&n.appendChild(r)}function Ye(e){Array.from(e.children).forEach(t=>{t instanceof HTMLElement&&t.getAttribute(me)==="true"&&e.removeChild(t)})}function Ze(e,t,r={}){let{callbacks:n,theme:o=je,tone:s=Ke,variant:a=Je}=r,i=M(e),l=u=>{let f=u instanceof Error?u:new Error(String(u));n?.onAdFailedToRender?.({slotId:"",adGroupId:i,adMetadata:{},error:{code:0,message:f.message}})},g=le(i,n);try{let u=i;if(u.length===0)throw q();let f=C();if(!f)throw new Error("[toss-ad] Call initialize() before attaching an ad.");if(!f.banner)throw new Error("[toss-ad] Loaded TossAdsSpaceKit does not support banner ads.");let R=typeof t=="string"?document.querySelector(t):t;if(!R)throw new Error(`[toss-ad] Failed to find target element: ${t}`);return Re(R,()=>{let m=document.createElement("div");m.style.width="100%",m.style.height="100%",m.style.boxSizing="border-box",m.style.display="flex",m.style.flexDirection="column",m.style.fontFamily=U,m.style.fontStyle="normal",m.style.justifyContent="center",m.style.overflow="hidden",m.setAttribute(me,"true"),a==="card"&&(m.style.padding="0 10px");let w=document.createElement("div");w.classList.add(h),w.style.fontFamily=U,w.style.fontStyle="normal",s==="grey"&&w.classList.add("toss-ads-tone-grey"),o==="light"?w.classList.add("toss-ads-theme-light"):o==="dark"&&w.classList.add("toss-ads-theme-dark"),a==="card"&&(w.style.borderRadius="16px",w.style.overflow="hidden"),m.appendChild(w);let x=!1,W=null;try{Xe(R),Ye(R),R.appendChild(m),x=!0;let O={spaceId:u,autoLoad:!0,theme:o==="auto"?void 0:o,renderPadding:fe=>fe==="1"?ze:$e,callbacks:g};W=f.banner.createSlot(w,O)}catch(O){throw x&&m.parentNode&&m.parentNode.removeChild(m),O}return{destroy(){W?.destroy(),x&&m.parentNode&&m.parentNode.removeChild(m),x=!1}}})}catch(u){return l(u),{destroy(){}}}}function Qe(e){let t=C();t?.banner&&t.banner.destroy(e)}function et(){let e=C();e?.banner&&(e.banner.destroyAll(),Le())}function le(e,t){if(!t)return;let r=n=>{let o={...n??{}};return o.adGroupId=o.adGroupId??o.spaceId??e,delete o.spaceId,o};return{onAdRendered:n=>t.onAdRendered?.(r(n)),onAdViewable:n=>t.onAdViewable?.(r(n)),onAdClicked:n=>t.onAdClicked?.(r(n)),onAdImpression:n=>{Fe({log_name:"display_ads_all::impression__1px_banner",log_type:"event",params:{event_type:"impression",schema_id:1812034,request_id:n?.adMetadata?.requestId??""}}),t.onAdImpression?.(r(n))},onAdFailedToRender:n=>t.onAdFailedToRender?.({...r(n),error:n?.error??{code:0,message:"UNKNOWN"}}),onNoFill:n=>t.onNoFill?.(r(n))}}var Gr={initialize:Object.assign(qe,{isSupported:_.isSupported}),attach:Object.assign(We,{isSupported:_.isSupported}),attachBanner:Object.assign(Ze,{isSupported:_.isSupported}),destroy:Object.assign(Qe,{isSupported:_.isSupported}),destroyAll:Object.assign(et,{isSupported:_.isSupported})},Br=Object.assign(c("getServerTime"),{isSupported:p("getServerTime_isSupported")}),kr=Object.assign(c("requestReview"),{isSupported:p("requestReview_isSupported")});var F=class{_log=c("debugLog");log(t,r){try{this._log({log_name:`apps_in_toss_webview_${t}`,log_type:"debug",params:{...r,...this.getCommonParams()}})}catch{}}getCommonParams(){return{...this.getLocationInfo(),...this.getNavigatorInfo(),...this.getScreenInfo(),appName:window.__appsInToss.appName,deploymentId:window.__appsInToss.deploymentId,sessionId:window.__appsInToss.sessionId,isGame:window.__appsInToss.webViewType==="game",timestampMs:Date.now()}}getLocationInfo(){return{url:window.location.href,urlOrigin:window.location.origin,urlHost:window.location.hostname,urlPath:window.location.pathname,urlSearch:window.location.search}}getNavigatorInfo(){return{userAgent:navigator.userAgent,platform:navigator.platform,language:navigator.language,cookieEnabled:navigator.cookieEnabled,hardwareConcurrency:navigator.hardwareConcurrency,deviceMemory:navigator.deviceMemory?navigator.deviceMemory*1024*1024:void 0,maxTouchPoints:navigator.maxTouchPoints}}getScreenInfo(){return{screenWidth:screen.width,screenHeight:screen.height,availableScreenWidth:screen.availWidth,availableScreenHeight:screen.availHeight,devicePixelRatio:window.devicePixelRatio,colorDepth:screen.colorDepth,pixelDepth:screen.pixelDepth,viewportWidth:window.innerWidth,viewportHeight:window.innerHeight}}};var G=class{callbacks={};on(t,r){return typeof this.callbacks[t]>"u"&&(this.callbacks[t]=[]),this.callbacks[t].push(r),()=>{this.callbacks[t]=this.callbacks[t]?.filter(n=>n!==r)??[]}}emit(t,r){this.callbacks[t]?.forEach(n=>n(r))}};window.__appsInToss={appName:p("getAppName")(),deploymentId:p("getDeploymentId")(),webViewType:p("getWebViewType")(),sessionId:Math.random().toString(36).substring(2),eventEmitter:new G,debugLogger:new F};var y=/\\.(data|wasm|framework\\.js)(?:\\.gz|\\.br|\\.unityweb)?$/;function B(e){window.fetch=new Proxy(window.fetch,{apply:e})}(()=>{if(window.__appsInToss.webViewType!=="game"||typeof caches>"u")return;let e="@apps-in-toss/caches/",t=`${e}${window.__appsInToss.deploymentId}`;window.addEventListener("load",async()=>{let r=await caches.keys();for(let n of r)n.startsWith(e)&&n!==t&&await caches.delete(n)}),B(async(r,n,o)=>{let s=new Request(o[0],o[1]);if(!y.test(s.url))return await r.call(n,s);let a=await caches.open(t),i=await a.match(s);if(i){let g=i.headers.get("ETag"),u=i.headers.get("Last-Modified");g&&s.headers.set("If-None-Match",g),u&&s.headers.set("If-Modified-Since",u);let f=await r.call(n,s);return f.status===304?(i.__revalidateResponse=f,i):(a.put(s,f.clone()),f)}let l=await r.call(n,s);return a.put(s,l.clone()),l})})();B(async(e,t,r)=>{let n=new Request(r[0],r[1]),o=Date.now();window.__appsInToss.eventEmitter.emit("fetchRequest",{request:n});try{let s=await e.call(t,n);return window.__appsInToss.eventEmitter.emit("fetchResponse",{request:n,response:s,requestAt:o}),s}catch(s){throw window.__appsInToss.eventEmitter.emit("fetchError",{request:n,requestAt:o,error:s}),s}});HTMLCanvasElement.prototype.getContext=new Proxy(HTMLCanvasElement.prototype.getContext,{apply:(e,t,r)=>{let n=e.apply(t,r);return(n instanceof WebGL2RenderingContext||n instanceof WebGLRenderingContext)&&window.__appsInToss.eventEmitter.emit("webglGetContext",{canvas:t,context:n}),n}});var ge=window.__appsInToss.debugLogger;ge.log("load_start",{});window.addEventListener("load",()=>{let e=performance.timeOrigin,t=performance.getEntriesByType?.("navigation")[0]??null,r=typeof e<"u"&&t!==null,n=r?{navigationStartAtMs:e+t.startTime,navigationRedirectStartAtMs:e+t.redirectStart,navigationRedirectEndAtMs:e+t.redirectEnd,navigationRedirectCount:t.redirectCount,navigationServiceWorkerStartAtMs:e+t.workerStart,navigationFetchStartAtMs:e+t.fetchStart,navigationDomainLookupStartAtMs:e+t.domainLookupStart,navigationDomainLookupEndAtMs:e+t.domainLookupEnd,navigationConnectStartAtMs:e+t.connectStart,navigationSecureConnectStartAtMs:e+t.secureConnectionStart,navigationConnectEndAtMs:e+t.connectEnd,navigationRequestStartAtMs:e+t.requestStart,navigationResponseStartAtMs:e+t.responseStart,navigationResponseEndAtMs:e+t.responseEnd,navigationDomInteractiveAtMs:e+t.domInteractive,navigationDomContentLoadedEventStartAtMs:e+t.domContentLoadedEventStart,navigationDomContentLoadedEventEndAtMs:e+t.domContentLoadedEventEnd,navigationDomCompleteAtMs:e+t.domComplete}:{};ge.log("load_complete",{isNavigationDebugSupported:r,...n})});function T(e,t){return parseFloat(e.toFixed(t))}(()=>{if(typeof performance.memory>"u"||typeof performance.memory.usedJSHeapSize>"u"||typeof performance.memory.totalJSHeapSize>"u"||typeof performance.memory.jsHeapSizeLimit>"u")return;function e(t){window.__appsInToss.debugLogger.log(t,{usedJSHeapSize:T(performance.memory.usedJSHeapSize/1024,2),totalJSHeapSize:T(performance.memory.totalJSHeapSize/1024,2),jsHeapSizeLimit:T(performance.memory.jsHeapSizeLimit/1024,2)})}e("memory_usage_first_0s"),setTimeout(()=>e("memory_usage_first_1s"),1e3),setTimeout(()=>e("memory_usage_first_10s"),1e4),setTimeout(()=>e("memory_usage_first_30s"),3e4),setTimeout(()=>e("memory_usage_first_60s"),6e4),setInterval(()=>e("memory_usage_every_180s"),18e4)})();(()=>{let e=window.__appsInToss.debugLogger,t=performance.timeOrigin;if(typeof t>"u"||typeof PerformanceObserver>"u")return;new PerformanceObserver(o=>{o.getEntries().forEach(a=>{a.name==="first-paint"?e.log("first_paint",{fpStartAtMs:t+a.startTime}):a.name==="first-contentful-paint"&&e.log("first_contentful_paint",{fcpStartAtMs:t+a.startTime})})}).observe({type:"paint"}),new PerformanceObserver(o=>{o.getEntries().forEach(a=>{e.log("largest_contentful_paint",{lcpStartAtMs:t+a.startTime,lcpRenderSize:a.size})})}).observe({type:"largest-contentful-paint"})})();(()=>{if(window.__appsInToss.webViewType!=="game")return;let e=window.__appsInToss.eventEmitter.on("webglGetContext",({canvas:t,context:r})=>{if(t.getAttribute("id")!=="unity-canvas")return;e();let n=r.getExtension("WEBGL_debug_renderer_info"),o=r.getParameter(r.MAX_VIEWPORT_DIMS),s={webGLRenderer:r.getParameter(r.RENDERER),webGLVendor:r.getParameter(r.VENDOR),webGLVersion:r.getParameter(r.VERSION),webGLShadingLanguageVersion:r.getParameter(r.SHADING_LANGUAGE_VERSION),webGLMaxTextureSize:r.getParameter(r.MAX_TEXTURE_SIZE),webGLMaxViewportWidth:o[0],webGLMaxViewportHeight:o[1],webGLMaxRenderbufferSize:r.getParameter(r.MAX_RENDERBUFFER_SIZE)},a=n?{webGLUnmaskedVendor:r.getParameter(n.UNMASKED_VENDOR_WEBGL),webGLUnmaskedRenderer:r.getParameter(n.UNMASKED_RENDERER_WEBGL)}:{};window.__appsInToss.debugLogger.log("unity_webgl_info",{...s,...a})})})();(()=>{if(window.__appsInToss.webViewType!=="game")return;let e=window.__appsInToss.debugLogger,t=window.__appsInToss.eventEmitter;t.on("fetchRequest",({request:n})=>{y.test(n.url)&&e.log("game_resource_download_start",{gameResourceRequestURL:n.url})});function r({request:n,requestAt:o,error:s}){e.log("game_resource_download_error",{gameResourceRequestURL:n.url,gameResourceRequestAtMs:o,gameResourceError:s instanceof Error?s.message:"Unknown Error"})}t.on("fetchResponse",async({request:n,requestAt:o,response:s})=>{if(!y.test(n.url))return;let a=await s.clone().blob().then(l=>T(l.size/1024,2)).catch(l=>(r({request:n,requestAt:o,error:l}),null));if(a===null)return;let i=Date.now();e.log("game_resource_download_end",{gameResourceRequestURL:n.url,gameResourceRequestAtMs:o,gameResourceResponseAtMs:i,gameResourceResponseSize:a,gameResourceResponseStatus:s.__revalidateResponse?.status??s.status,gameResourceDownloadDurationMs:i-o})}),t.on("fetchError",async({request:n,requestAt:o,error:s})=>{y.test(n.url)&&r({request:n,requestAt:o,error:s})})})();var k=[];function tt(){let e=0;function t(r){let n=performance.now();if(r<n-1e3){k.push(e);return}e+=1,window.requestAnimationFrame(()=>t(r))}window.requestAnimationFrame(()=>t(performance.now()))}function rt(){if(k.length===0)return;let e=k;k=[];let t=nt(e).toSorted(),r={};for(let o=0;o<=100;o+=10){let s=t[Math.floor((t.length-1)*(o/100))];s&&(r[`fpsP${o}`]=s)}let n=t.reduce((o,s)=>o+s,0);r.fpsAverage=n/t.length,window.__appsInToss.debugLogger.log("fps_every_300s",r)}function nt(e){let t=new Set(e);return Array.from(t.values())}setInterval(()=>tt(),1e3);setInterval(()=>rt(),3e5);})();\n';
|
|
214226
214377
|
0 && (module.exports = {
|
|
214227
214378
|
afterDocumentLoad,
|
|
214228
214379
|
beforeDocumentLoad
|