@apps-in-toss/web-framework 1.9.2 → 1.9.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/prebuilt/dev.android.js +299 -259
- package/dist/prebuilt/dev.ios.js +299 -259
- package/dist/prebuilt/prod.android.js +2294 -2247
- package/dist/prebuilt/prod.ios.js +2294 -2247
- package/package.json +7 -7
|
@@ -153360,7 +153360,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153360
153360
|
var _default = exports.default = _framework.AppsInToss.registerApp(AppContainer, {
|
|
153361
153361
|
context: _context.context
|
|
153362
153362
|
});
|
|
153363
|
-
},1255,[1256,
|
|
153363
|
+
},1255,[1256,2631,9],"react-native/src/_app.tsx");
|
|
153364
153364
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
153365
153365
|
"use strict";
|
|
153366
153366
|
|
|
@@ -153461,10 +153461,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153461
153461
|
module.exports = __toCommonJS(src_exports);
|
|
153462
153462
|
var import_analytics2 = _$$_REQUIRE(_dependencyMap[7], "@apps-in-toss/analytics");
|
|
153463
153463
|
var import_analytics = _$$_REQUIRE(_dependencyMap[7], "@apps-in-toss/analytics");
|
|
153464
|
-
var
|
|
153465
|
-
var
|
|
153464
|
+
var import_native_modules14 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
153465
|
+
var import_react_native24 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
153466
153466
|
var import_tds_react_native10 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
153467
|
-
var
|
|
153467
|
+
var import_react_native25 = _$$_REQUIRE(_dependencyMap[11], "react-native");
|
|
153468
153468
|
var import_native_modules2 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
153469
153469
|
var import_react_native4 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
153470
153470
|
var import_react3 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
@@ -153472,6 +153472,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153472
153472
|
getDeploymentId: function getDeploymentId() {
|
|
153473
153473
|
var _global$__appsInToss;
|
|
153474
153474
|
return __DEV__ ? "local" : (_global$__appsInToss = global.__appsInToss) == null ? void 0 : _global$__appsInToss.deploymentId;
|
|
153475
|
+
},
|
|
153476
|
+
getWebViewType: function getWebViewType() {
|
|
153477
|
+
return global.__appsInToss.webViewType;
|
|
153478
|
+
},
|
|
153479
|
+
getAppName: function getAppName() {
|
|
153480
|
+
return global.__granite.app.name;
|
|
153475
153481
|
}
|
|
153476
153482
|
};
|
|
153477
153483
|
var import_native_modules = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
@@ -153643,9 +153649,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153643
153649
|
}
|
|
153644
153650
|
return context;
|
|
153645
153651
|
}
|
|
153646
|
-
var
|
|
153652
|
+
var import_native_modules13 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
153647
153653
|
var import_react17 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
153648
|
-
var
|
|
153654
|
+
var import_react_native23 = _$$_REQUIRE(_dependencyMap[11], "react-native");
|
|
153649
153655
|
var import_native_modules6 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
153650
153656
|
var import_react_native10 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
153651
153657
|
var import_tds_react_native4 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
@@ -154268,8 +154274,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154268
154274
|
};
|
|
154269
154275
|
}, [backEventContext, navigation, closeConfirm, logging, captureExitLog]);
|
|
154270
154276
|
}
|
|
154271
|
-
var
|
|
154272
|
-
var
|
|
154277
|
+
var import_native_modules12 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
154278
|
+
var import_react_native21 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
154273
154279
|
var import_tds_react_native8 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
154274
154280
|
var import_private4 = _$$_REQUIRE(_dependencyMap[15], "@toss/tds-react-native/private");
|
|
154275
154281
|
var import_react15 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
@@ -154468,18 +154474,40 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154468
154474
|
});
|
|
154469
154475
|
}
|
|
154470
154476
|
var import_native_modules10 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
154471
|
-
var import_react_native19 = _$$_REQUIRE(_dependencyMap[
|
|
154477
|
+
var import_react_native19 = _$$_REQUIRE(_dependencyMap[11], "react-native");
|
|
154472
154478
|
var import_jsx_runtime7 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
154473
|
-
function
|
|
154479
|
+
function HomeShortcutMenu() {
|
|
154480
|
+
var isSandbox = (0, import_native_modules10.getOperationalEnvironment)() === "sandbox";
|
|
154474
154481
|
var globals = getAppsInTossGlobals();
|
|
154475
|
-
if (
|
|
154482
|
+
if (isSandbox) {
|
|
154476
154483
|
return null;
|
|
154477
154484
|
}
|
|
154478
154485
|
return (0, import_jsx_runtime7.jsx)(Menu, {
|
|
154486
|
+
title: "\uD648 \uD654\uBA74\uC5D0 \uCD94\uAC00",
|
|
154487
|
+
iconURL: "https://static.toss.im/icons/png/4x/icon-plus-circle-mono.png",
|
|
154488
|
+
onPress: function onPress() {
|
|
154489
|
+
import_react_native19.NativeModules.AppsInTossModule.addMiniAppShortcut({
|
|
154490
|
+
title: globals.brandDisplayName,
|
|
154491
|
+
appName: global.__granite.app.name,
|
|
154492
|
+
iconUrl: globals.brandIcon,
|
|
154493
|
+
guideUrl: "https://service.toss.im/app-mini-home/shortcut"
|
|
154494
|
+
});
|
|
154495
|
+
}
|
|
154496
|
+
});
|
|
154497
|
+
}
|
|
154498
|
+
var import_native_modules11 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
154499
|
+
var import_react_native20 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
154500
|
+
var import_jsx_runtime8 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
154501
|
+
function PermissionsMenu() {
|
|
154502
|
+
var globals = getAppsInTossGlobals();
|
|
154503
|
+
if ((0, import_native_modules11.getOperationalEnvironment)() === "sandbox") {
|
|
154504
|
+
return null;
|
|
154505
|
+
}
|
|
154506
|
+
return (0, import_jsx_runtime8.jsx)(Menu, {
|
|
154479
154507
|
title: "\uAD8C\uD55C \uC124\uC815",
|
|
154480
154508
|
iconURL: "https://static.toss.im/icons/png/4x/icon-setting-mono.png",
|
|
154481
154509
|
onPress: function onPress() {
|
|
154482
|
-
return (0,
|
|
154510
|
+
return (0, import_react_native20.openURL)(`servicetoss://apps-in-toss-menu/permissions?appName=${import_react_native20.Granite.appName}&displayAppName=${globals.brandDisplayName}`);
|
|
154483
154511
|
}
|
|
154484
154512
|
});
|
|
154485
154513
|
}
|
|
@@ -154489,7 +154517,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154489
154517
|
}
|
|
154490
154518
|
return value;
|
|
154491
154519
|
}
|
|
154492
|
-
var
|
|
154520
|
+
var import_jsx_runtime9 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
154493
154521
|
var APP_BRIDGE_METHOD_NAME = "getMiniAppsSupportContact";
|
|
154494
154522
|
var MIN_VERSION = {
|
|
154495
154523
|
BOTTOM_SHEET: {
|
|
@@ -154500,6 +154528,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154500
154528
|
android: "5.230.0",
|
|
154501
154529
|
ios: "5.230.0"
|
|
154502
154530
|
},
|
|
154531
|
+
HOME_SHORTCUT_MENU: {
|
|
154532
|
+
android: "5.246.0",
|
|
154533
|
+
ios: "5.246.0"
|
|
154534
|
+
},
|
|
154503
154535
|
PERMISSIONS_MENU: {
|
|
154504
154536
|
android: "5.238.0",
|
|
154505
154537
|
ios: "5.237.0"
|
|
@@ -154516,8 +154548,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154516
154548
|
var logging = useMoreButtonBottomSheetLogging();
|
|
154517
154549
|
var overlay = (0, import_private4.useOverlay)();
|
|
154518
154550
|
var title = ensureValue(globals.brandDisplayName, "displayName");
|
|
154519
|
-
var
|
|
154520
|
-
var
|
|
154551
|
+
var isHomeShortcutSupported = (0, import_native_modules12.isMinVersionSupported)(MIN_VERSION.HOME_SHORTCUT_MENU);
|
|
154552
|
+
var isBottomSheetSupported = (0, import_native_modules12.isMinVersionSupported)(MIN_VERSION.BOTTOM_SHEET);
|
|
154553
|
+
var isShareListMenuSupported = (0, import_native_modules12.isMinVersionSupported)(MIN_VERSION.SHARE_LIST_MENU);
|
|
154521
154554
|
var _ref38 = (0, import_react15.useState)(false),
|
|
154522
154555
|
_ref39 = _slicedToArray(_ref38, 2),
|
|
154523
154556
|
isPermissionsMenuSupported = _ref39[0],
|
|
@@ -154526,7 +154559,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154526
154559
|
if (!isBottomSheetSupported) {
|
|
154527
154560
|
return;
|
|
154528
154561
|
}
|
|
154529
|
-
|
|
154562
|
+
import_native_modules12.INTERNAL__appBridgeHandler.invokeAppBridgeMethod(APP_BRIDGE_METHOD_NAME, {}, {
|
|
154530
154563
|
onSuccess: function onSuccess(_ref40) {
|
|
154531
154564
|
var items = _ref40.items;
|
|
154532
154565
|
return setItemList(items);
|
|
@@ -154535,8 +154568,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154535
154568
|
return console.error("\uBA54\uB274 \uBAA9\uB85D\uC744 \uAC00\uC838\uC624\uB294 \uB370 \uC2E4\uD328\uD588\uC5B4\uC694:", error);
|
|
154536
154569
|
}
|
|
154537
154570
|
});
|
|
154538
|
-
if ((0,
|
|
154539
|
-
|
|
154571
|
+
if ((0, import_native_modules12.isMinVersionSupported)(MIN_VERSION.PERMISSIONS_MENU)) {
|
|
154572
|
+
import_native_modules12.INTERNAL__appBridgeHandler.invokeAppBridgeMethod("getAllPermission", {}, {
|
|
154540
154573
|
onSuccess: function onSuccess(permissions) {
|
|
154541
154574
|
return setIsPermissionsMenuSupported(permissions.length > 0);
|
|
154542
154575
|
},
|
|
@@ -154564,10 +154597,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154564
154597
|
logging.close();
|
|
154565
154598
|
close();
|
|
154566
154599
|
};
|
|
154567
|
-
return (0,
|
|
154568
|
-
children: (0,
|
|
154569
|
-
header: (0,
|
|
154570
|
-
title: (0,
|
|
154600
|
+
return (0, import_jsx_runtime9.jsx)(BottomSheetImpressionArea, {
|
|
154601
|
+
children: (0, import_jsx_runtime9.jsx)(import_tds_react_native8.BottomSheet.Root, {
|
|
154602
|
+
header: (0, import_jsx_runtime9.jsx)(import_tds_react_native8.ListHeader, {
|
|
154603
|
+
title: (0, import_jsx_runtime9.jsx)(import_tds_react_native8.ListHeader.TitleParagraph, {
|
|
154571
154604
|
color: adaptive.grey800,
|
|
154572
154605
|
fontWeight: "bold",
|
|
154573
154606
|
typography: "t5",
|
|
@@ -154575,7 +154608,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154575
154608
|
})
|
|
154576
154609
|
}),
|
|
154577
154610
|
open: isOpen,
|
|
154578
|
-
cta: (0,
|
|
154611
|
+
cta: (0, import_jsx_runtime9.jsx)(import_tds_react_native8.BottomSheet.CTA, {
|
|
154579
154612
|
size: "large",
|
|
154580
154613
|
type: "dark",
|
|
154581
154614
|
style: "weak",
|
|
@@ -154586,17 +154619,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154586
154619
|
}),
|
|
154587
154620
|
onClose: handleClose,
|
|
154588
154621
|
onExited: exit,
|
|
154589
|
-
children: (0,
|
|
154622
|
+
children: (0, import_jsx_runtime9.jsxs)(import_tds_react_native8.List, {
|
|
154590
154623
|
rowSeparator: "none",
|
|
154591
154624
|
children: [itemList.map(function (item) {
|
|
154592
|
-
return (0,
|
|
154625
|
+
return (0, import_jsx_runtime9.jsx)(Menu, {
|
|
154593
154626
|
title: item.contactItemName,
|
|
154594
154627
|
iconURL: item.contactIconUrl,
|
|
154595
154628
|
onPress: function onPress() {
|
|
154596
|
-
return (0,
|
|
154629
|
+
return (0, import_react_native21.openURL)(item.contactUri);
|
|
154597
154630
|
}
|
|
154598
154631
|
}, item.contactItemName);
|
|
154599
|
-
}), isShareListMenuSupported && (0,
|
|
154632
|
+
}), isHomeShortcutSupported && (0, import_jsx_runtime9.jsx)(HomeShortcutMenu, {}), isShareListMenuSupported && (0, import_jsx_runtime9.jsx)(AppShareListMenu, {}), isPermissionsMenuSupported && (0, import_jsx_runtime9.jsx)(PermissionsMenu, {})]
|
|
154600
154633
|
})
|
|
154601
154634
|
})
|
|
154602
154635
|
});
|
|
@@ -154616,7 +154649,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154616
154649
|
(0, import_react15.useEffect)(function () {
|
|
154617
154650
|
logging.show();
|
|
154618
154651
|
}, [logging]);
|
|
154619
|
-
return (0,
|
|
154652
|
+
return (0, import_jsx_runtime9.jsx)(import_jsx_runtime9.Fragment, {
|
|
154620
154653
|
children: children
|
|
154621
154654
|
});
|
|
154622
154655
|
}
|
|
@@ -154630,7 +154663,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154630
154663
|
};
|
|
154631
154664
|
}
|
|
154632
154665
|
var import_react16 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
154633
|
-
var
|
|
154666
|
+
var import_jsx_runtime10 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
154634
154667
|
function NavigationBarImpressionArea(_ref44) {
|
|
154635
154668
|
var children = _ref44.children,
|
|
154636
154669
|
withHomeButton = _ref44.withHomeButton;
|
|
@@ -154644,11 +154677,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154644
154677
|
hasLogged.current = true;
|
|
154645
154678
|
}
|
|
154646
154679
|
}, [logging, withHomeButton]);
|
|
154647
|
-
return (0,
|
|
154680
|
+
return (0, import_jsx_runtime10.jsx)(import_jsx_runtime10.Fragment, {
|
|
154648
154681
|
children: children
|
|
154649
154682
|
});
|
|
154650
154683
|
}
|
|
154651
|
-
var
|
|
154684
|
+
var import_jsx_runtime11 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
154652
154685
|
function DefaultNavigationBar() {
|
|
154653
154686
|
var _parsedNavigationBar$, _parsedNavigationBar$2;
|
|
154654
154687
|
var globals = getAppsInTossGlobals();
|
|
@@ -154661,9 +154694,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154661
154694
|
navigationRightButton = _useNavigationBarCont.navigationRightButton;
|
|
154662
154695
|
var navigationEvent = useNavigationEvent();
|
|
154663
154696
|
useHardwareBackPress(navigationEvent.handleBack);
|
|
154664
|
-
return (0,
|
|
154697
|
+
return (0, import_jsx_runtime11.jsx)(NavigationBarImpressionArea, {
|
|
154665
154698
|
withHomeButton: withHomeButton,
|
|
154666
|
-
children: (0,
|
|
154699
|
+
children: (0, import_jsx_runtime11.jsx)(import_private5.TopNavigation, {
|
|
154667
154700
|
title: globals.brandDisplayName,
|
|
154668
154701
|
icon: toIcon(globals.brandIcon),
|
|
154669
154702
|
onPressDots: openMoreButtonBottomSheet,
|
|
@@ -154673,9 +154706,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154673
154706
|
withHome: withHomeButton,
|
|
154674
154707
|
fixedRightButton: navigationRightButton,
|
|
154675
154708
|
leftVisible: withBackButton,
|
|
154676
|
-
children: (0,
|
|
154709
|
+
children: (0, import_jsx_runtime11.jsx)(import_private5.NavigationLeft, {
|
|
154677
154710
|
visible: withBackButton,
|
|
154678
|
-
children: (0,
|
|
154711
|
+
children: (0, import_jsx_runtime11.jsx)(import_private5.NavigationBackButton, {
|
|
154679
154712
|
onPress: navigationEvent.handleBack,
|
|
154680
154713
|
canGoBack: false
|
|
154681
154714
|
})
|
|
@@ -154686,8 +154719,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154686
154719
|
var import_react_native_safe_area_context = _$$_REQUIRE(_dependencyMap[16], "@granite-js/native/react-native-safe-area-context");
|
|
154687
154720
|
var import_tds_react_native9 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
154688
154721
|
var import_private6 = _$$_REQUIRE(_dependencyMap[15], "@toss/tds-react-native/private");
|
|
154689
|
-
var
|
|
154690
|
-
var
|
|
154722
|
+
var import_react_native22 = _$$_REQUIRE(_dependencyMap[11], "react-native");
|
|
154723
|
+
var import_jsx_runtime12 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
154691
154724
|
function GameNavigationBar() {
|
|
154692
154725
|
var safeAreaTop = (0, import_private6.useSafeAreaTop)();
|
|
154693
154726
|
var _useMoreButtonBottomS2 = useMoreButtonBottomSheet(),
|
|
@@ -154698,15 +154731,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154698
154731
|
var _ref45 = (0, import_react_native_safe_area_context.useSafeAreaInsets)(),
|
|
154699
154732
|
safeAreaRight = _ref45.right;
|
|
154700
154733
|
useHardwareBackPress(navigationEvent.handleBack);
|
|
154701
|
-
return (0,
|
|
154702
|
-
children: [(0,
|
|
154734
|
+
return (0, import_jsx_runtime12.jsxs)(import_jsx_runtime12.Fragment, {
|
|
154735
|
+
children: [(0, import_jsx_runtime12.jsx)(import_tds_react_native9.PageNavbar, {
|
|
154703
154736
|
preference: {
|
|
154704
154737
|
type: "none"
|
|
154705
154738
|
}
|
|
154706
|
-
}), (0,
|
|
154739
|
+
}), (0, import_jsx_runtime12.jsx)(import_react_native22.View, {
|
|
154707
154740
|
style: {
|
|
154708
154741
|
width: "100%",
|
|
154709
|
-
height:
|
|
154742
|
+
height: import_react_native22.Platform.OS === "ios" ? 44 : 54,
|
|
154710
154743
|
flexDirection: "row",
|
|
154711
154744
|
alignItems: "center",
|
|
154712
154745
|
justifyContent: "flex-end",
|
|
@@ -154716,7 +154749,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154716
154749
|
paddingRight: safeAreaRight + 10
|
|
154717
154750
|
},
|
|
154718
154751
|
pointerEvents: "box-none",
|
|
154719
|
-
children: (0,
|
|
154752
|
+
children: (0, import_jsx_runtime12.jsx)(import_private6.NavigationRightContent, {
|
|
154720
154753
|
fixedRightButton: navigationRightButton,
|
|
154721
154754
|
onPressDots: openMoreButtonBottomSheet,
|
|
154722
154755
|
onPressClose: navigationEvent.handleCloseButtonClick,
|
|
@@ -154733,18 +154766,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154733
154766
|
__reExport(bridge_entry_exports, _$$_REQUIRE(_dependencyMap[17], "@apps-in-toss/native-modules/async-bridges"));
|
|
154734
154767
|
__reExport(bridge_entry_exports, _$$_REQUIRE(_dependencyMap[18], "@apps-in-toss/native-modules/constant-bridges"));
|
|
154735
154768
|
__reExport(bridge_entry_exports, _$$_REQUIRE(_dependencyMap[19], "@apps-in-toss/native-modules/event-bridges"));
|
|
154736
|
-
var
|
|
154769
|
+
var import_jsx_runtime13 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
154737
154770
|
function RNAppContainer(_ref46) {
|
|
154738
154771
|
var children = _ref46.children;
|
|
154739
154772
|
var global2 = getAppsInTossGlobals();
|
|
154740
154773
|
switch (global2.appType) {
|
|
154741
154774
|
case "game":
|
|
154742
|
-
return (0,
|
|
154775
|
+
return (0, import_jsx_runtime13.jsx)(GameAppContainer, {
|
|
154743
154776
|
children: children
|
|
154744
154777
|
});
|
|
154745
154778
|
case "general":
|
|
154746
154779
|
default:
|
|
154747
|
-
return (0,
|
|
154780
|
+
return (0, import_jsx_runtime13.jsx)(GeneralAppContainer, {
|
|
154748
154781
|
children: children
|
|
154749
154782
|
});
|
|
154750
154783
|
}
|
|
@@ -154752,45 +154785,45 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154752
154785
|
function GameAppContainer(_ref47) {
|
|
154753
154786
|
var children = _ref47.children;
|
|
154754
154787
|
(0, import_react17.useEffect)(function () {
|
|
154755
|
-
if (
|
|
154756
|
-
(0,
|
|
154788
|
+
if (import_react_native23.Platform.OS === "ios") {
|
|
154789
|
+
(0, import_native_modules13.setIosSwipeGestureEnabled)({
|
|
154757
154790
|
isEnabled: false
|
|
154758
154791
|
});
|
|
154759
154792
|
return function () {
|
|
154760
|
-
(0,
|
|
154793
|
+
(0, import_native_modules13.setIosSwipeGestureEnabled)({
|
|
154761
154794
|
isEnabled: true
|
|
154762
154795
|
});
|
|
154763
154796
|
};
|
|
154764
154797
|
}
|
|
154765
154798
|
return;
|
|
154766
154799
|
}, []);
|
|
154767
|
-
return (0,
|
|
154768
|
-
children: [(0,
|
|
154800
|
+
return (0, import_jsx_runtime13.jsxs)(import_jsx_runtime13.Fragment, {
|
|
154801
|
+
children: [(0, import_jsx_runtime13.jsx)(RNNavigationBar.Game, {}), (0, bridge_entry_exports.getOperationalEnvironment)() === "toss" ? (0, import_jsx_runtime13.jsx)(GameInitializer, {
|
|
154769
154802
|
children: children
|
|
154770
154803
|
}) : children]
|
|
154771
154804
|
});
|
|
154772
154805
|
}
|
|
154773
154806
|
function GeneralAppContainer(_ref48) {
|
|
154774
154807
|
var children = _ref48.children;
|
|
154775
|
-
return (0,
|
|
154776
|
-
children: [(0,
|
|
154808
|
+
return (0, import_jsx_runtime13.jsxs)(import_jsx_runtime13.Fragment, {
|
|
154809
|
+
children: [(0, import_jsx_runtime13.jsx)(RNNavigationBar.Default, {}), children]
|
|
154777
154810
|
});
|
|
154778
154811
|
}
|
|
154779
|
-
var
|
|
154812
|
+
var import_jsx_runtime14 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
154780
154813
|
function AppsInTossContainer(Container, _ref49) {
|
|
154781
154814
|
var children = _ref49.children,
|
|
154782
154815
|
initialProps = _objectWithoutProperties(_ref49, _excluded);
|
|
154783
|
-
if (!(0,
|
|
154816
|
+
if (!(0, import_native_modules14.isMinVersionSupported)({
|
|
154784
154817
|
android: "5.220.0",
|
|
154785
154818
|
ios: "5.221.0"
|
|
154786
154819
|
})) {
|
|
154787
|
-
return (0,
|
|
154788
|
-
children: [(0,
|
|
154820
|
+
return (0, import_jsx_runtime14.jsxs)(import_jsx_runtime14.Fragment, {
|
|
154821
|
+
children: [(0, import_jsx_runtime14.jsx)(AppEvent.Entry, {}), (0, import_jsx_runtime14.jsx)(AppEvent.System, Object.assign({}, initialProps)), (0, import_jsx_runtime14.jsx)(AppUpdate, {})]
|
|
154789
154822
|
});
|
|
154790
154823
|
}
|
|
154791
|
-
return (0,
|
|
154792
|
-
children: [(0,
|
|
154793
|
-
children: (0,
|
|
154824
|
+
return (0, import_jsx_runtime14.jsxs)(import_jsx_runtime14.Fragment, {
|
|
154825
|
+
children: [(0, import_jsx_runtime14.jsx)(AppEvent.StayTime, {}), (0, import_jsx_runtime14.jsx)(AppEvent.Entry, {}), (0, import_jsx_runtime14.jsx)(AppEvent.System, Object.assign({}, initialProps)), (0, import_jsx_runtime14.jsx)(Container, Object.assign({}, initialProps, {
|
|
154826
|
+
children: (0, import_jsx_runtime14.jsx)(import_tds_react_native10.TDSProvider, {
|
|
154794
154827
|
colorPreference: "light",
|
|
154795
154828
|
token: {
|
|
154796
154829
|
color: {
|
|
@@ -154806,19 +154839,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154806
154839
|
var context = _ref50.context,
|
|
154807
154840
|
analytics = _ref50.analytics;
|
|
154808
154841
|
var appName = getAppName();
|
|
154809
|
-
var isRegistered =
|
|
154842
|
+
var isRegistered = import_react_native25.AppRegistry.getAppKeys().includes(appName);
|
|
154810
154843
|
if (!isRegistered) {
|
|
154811
154844
|
var _analytics$debug;
|
|
154812
154845
|
import_analytics.Analytics.init({
|
|
154813
154846
|
logger: function logger(params) {
|
|
154814
|
-
return void (0,
|
|
154847
|
+
return void (0, import_native_modules14.eventLog)(params);
|
|
154815
154848
|
},
|
|
154816
154849
|
debug: (_analytics$debug = analytics == null ? void 0 : analytics.debug) != null ? _analytics$debug : __DEV__
|
|
154817
154850
|
});
|
|
154818
|
-
var App =
|
|
154851
|
+
var App = import_react_native24.Granite.registerApp(AppsInTossContainer.bind(null, container), {
|
|
154819
154852
|
appName: appName,
|
|
154820
154853
|
context: context,
|
|
154821
|
-
setIosSwipeGestureEnabled:
|
|
154854
|
+
setIosSwipeGestureEnabled: import_native_modules14.setIosSwipeGestureEnabled,
|
|
154822
154855
|
router: {
|
|
154823
154856
|
screenContainer: AppsInTossScreenContainer,
|
|
154824
154857
|
defaultScreenOption: {
|
|
@@ -154833,9 +154866,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154833
154866
|
function AppsInTossScreenContainer(_ref51) {
|
|
154834
154867
|
var children = _ref51.children;
|
|
154835
154868
|
var isRNApp = getAppsInTossGlobals().webViewType == null;
|
|
154836
|
-
return (0,
|
|
154837
|
-
children: (0,
|
|
154838
|
-
children: isRNApp ? (0,
|
|
154869
|
+
return (0, import_jsx_runtime14.jsx)(NavigationBarContextProvider, {
|
|
154870
|
+
children: (0, import_jsx_runtime14.jsx)(import_analytics.Analytics.Screen, {
|
|
154871
|
+
children: isRNApp ? (0, import_jsx_runtime14.jsx)(RNAppContainer, {
|
|
154839
154872
|
children: children
|
|
154840
154873
|
}) : children
|
|
154841
154874
|
})
|
|
@@ -154852,28 +154885,29 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154852
154885
|
var _AppsInToss = {
|
|
154853
154886
|
registerApp: registerApp
|
|
154854
154887
|
};
|
|
154855
|
-
var
|
|
154888
|
+
var import_native_modules24 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
154856
154889
|
var appsInTossAsyncBridges = __toESM(_$$_REQUIRE(_dependencyMap[17], "@apps-in-toss/native-modules/async-bridges"), 1);
|
|
154857
154890
|
var appsInTossConstantBridges = __toESM(_$$_REQUIRE(_dependencyMap[18], "@apps-in-toss/native-modules/constant-bridges"), 1);
|
|
154858
154891
|
var appsInTossEventBridges = __toESM(_$$_REQUIRE(_dependencyMap[19], "@apps-in-toss/native-modules/event-bridges"), 1);
|
|
154892
|
+
var import_user_scripts = _$$_REQUIRE(_dependencyMap[20], "@apps-in-toss/user-scripts");
|
|
154859
154893
|
var import_react_native_safe_area_context4 = _$$_REQUIRE(_dependencyMap[16], "@granite-js/native/react-native-safe-area-context");
|
|
154860
|
-
var
|
|
154894
|
+
var import_react_native39 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
154861
154895
|
var import_tds_react_native15 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
154862
154896
|
var import_private9 = _$$_REQUIRE(_dependencyMap[15], "@toss/tds-react-native/private");
|
|
154863
154897
|
var import_react28 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
154864
|
-
var
|
|
154865
|
-
var
|
|
154866
|
-
var import_react_native_webview = _$$_REQUIRE(_dependencyMap[
|
|
154898
|
+
var import_react_native40 = _$$_REQUIRE(_dependencyMap[11], "react-native");
|
|
154899
|
+
var import_native_modules15 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
154900
|
+
var import_react_native_webview = _$$_REQUIRE(_dependencyMap[21], "@granite-js/native/react-native-webview");
|
|
154867
154901
|
var import_react19 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
154868
|
-
var
|
|
154902
|
+
var import_react_native28 = _$$_REQUIRE(_dependencyMap[11], "react-native");
|
|
154869
154903
|
var import_react_native_safe_area_context2 = _$$_REQUIRE(_dependencyMap[16], "@granite-js/native/react-native-safe-area-context");
|
|
154870
|
-
var
|
|
154904
|
+
var import_react_native26 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
154871
154905
|
var import_tds_react_native11 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
154872
154906
|
var import_private7 = _$$_REQUIRE(_dependencyMap[15], "@toss/tds-react-native/private");
|
|
154873
154907
|
var import_es_hangul3 = _$$_REQUIRE(_dependencyMap[14], "es-hangul");
|
|
154874
154908
|
var import_react18 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
154875
|
-
var
|
|
154876
|
-
var
|
|
154909
|
+
var import_react_native27 = _$$_REQUIRE(_dependencyMap[11], "react-native");
|
|
154910
|
+
var import_jsx_runtime15 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
154877
154911
|
function GameWebviewNavigationBar() {
|
|
154878
154912
|
var safeAreaTop = (0, import_private7.useSafeAreaTop)();
|
|
154879
154913
|
var _ref52 = (0, import_tds_react_native11.useDialog)(),
|
|
@@ -154900,18 +154934,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154900
154934
|
logging.closePopupCtaClick(isConfirmed);
|
|
154901
154935
|
if (isConfirmed) {
|
|
154902
154936
|
captureExitLog(Date.now());
|
|
154903
|
-
(0,
|
|
154937
|
+
(0, import_react_native26.closeView)();
|
|
154904
154938
|
}
|
|
154905
154939
|
}), [captureExitLog, global2.brandDisplayName, logging, openConfirm]);
|
|
154906
|
-
return (0,
|
|
154907
|
-
children: [(0,
|
|
154940
|
+
return (0, import_jsx_runtime15.jsxs)(import_jsx_runtime15.Fragment, {
|
|
154941
|
+
children: [(0, import_jsx_runtime15.jsx)(import_tds_react_native11.PageNavbar, {
|
|
154908
154942
|
preference: {
|
|
154909
154943
|
type: "none"
|
|
154910
154944
|
}
|
|
154911
|
-
}), (0,
|
|
154945
|
+
}), (0, import_jsx_runtime15.jsx)(import_react_native27.View, {
|
|
154912
154946
|
style: {
|
|
154913
154947
|
width: "100%",
|
|
154914
|
-
height:
|
|
154948
|
+
height: import_react_native27.Platform.OS === "ios" ? 44 : 54,
|
|
154915
154949
|
flexDirection: "row",
|
|
154916
154950
|
alignItems: "center",
|
|
154917
154951
|
justifyContent: "flex-end",
|
|
@@ -154921,7 +154955,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154921
154955
|
paddingRight: safeAreaRight + 10
|
|
154922
154956
|
},
|
|
154923
154957
|
pointerEvents: "box-none",
|
|
154924
|
-
children: (0,
|
|
154958
|
+
children: (0, import_jsx_runtime15.jsx)(import_private7.NavigationRightContent, {
|
|
154925
154959
|
fixedRightButton: navigationRightButton,
|
|
154926
154960
|
onPressDots: openMoreButtonBottomSheet,
|
|
154927
154961
|
onPressClose: function onPressClose() {
|
|
@@ -154932,39 +154966,39 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154932
154966
|
})]
|
|
154933
154967
|
});
|
|
154934
154968
|
}
|
|
154935
|
-
var
|
|
154969
|
+
var import_jsx_runtime16 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
154936
154970
|
var GameWebView = (0, import_react19.forwardRef)(function GameWebView2(props, ref) {
|
|
154937
154971
|
(0, import_react19.useEffect)(function () {
|
|
154938
|
-
if (
|
|
154939
|
-
(0,
|
|
154972
|
+
if (import_react_native28.Platform.OS === "ios") {
|
|
154973
|
+
(0, import_native_modules15.setIosSwipeGestureEnabled)({
|
|
154940
154974
|
isEnabled: false
|
|
154941
154975
|
});
|
|
154942
154976
|
return function () {
|
|
154943
|
-
(0,
|
|
154977
|
+
(0, import_native_modules15.setIosSwipeGestureEnabled)({
|
|
154944
154978
|
isEnabled: true
|
|
154945
154979
|
});
|
|
154946
154980
|
};
|
|
154947
154981
|
}
|
|
154948
154982
|
return;
|
|
154949
154983
|
}, []);
|
|
154950
|
-
return (0,
|
|
154951
|
-
children: [(0,
|
|
154952
|
-
children: (0,
|
|
154984
|
+
return (0, import_jsx_runtime16.jsxs)(import_jsx_runtime16.Fragment, {
|
|
154985
|
+
children: [(0, import_jsx_runtime16.jsx)(GameWebviewNavigationBar, {}), (0, import_native_modules15.getOperationalEnvironment)() === "toss" ? (0, import_jsx_runtime16.jsx)(GameInitializer, {
|
|
154986
|
+
children: (0, import_jsx_runtime16.jsx)(import_react_native_webview.WebView, Object.assign({
|
|
154953
154987
|
ref: ref
|
|
154954
154988
|
}, props))
|
|
154955
|
-
}) : (0,
|
|
154989
|
+
}) : (0, import_jsx_runtime16.jsx)(import_react_native_webview.WebView, Object.assign({
|
|
154956
154990
|
ref: ref
|
|
154957
154991
|
}, props))]
|
|
154958
154992
|
});
|
|
154959
154993
|
});
|
|
154960
|
-
var import_react_native_webview2 = _$$_REQUIRE(_dependencyMap[
|
|
154994
|
+
var import_react_native_webview2 = _$$_REQUIRE(_dependencyMap[21], "@granite-js/native/react-native-webview");
|
|
154961
154995
|
var import_react21 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
154962
|
-
var
|
|
154996
|
+
var import_react_native29 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
154963
154997
|
var import_tds_react_native12 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
154964
154998
|
var import_private8 = _$$_REQUIRE(_dependencyMap[15], "@toss/tds-react-native/private");
|
|
154965
154999
|
var import_es_hangul4 = _$$_REQUIRE(_dependencyMap[14], "es-hangul");
|
|
154966
155000
|
var import_react20 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
154967
|
-
var
|
|
155001
|
+
var import_jsx_runtime17 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
154968
155002
|
function PartnerWebviewNavigationBar(_ref55) {
|
|
154969
155003
|
var _parsedNavigationBar$3, _parsedNavigationBar$4;
|
|
154970
155004
|
var onBackButtonClick = _ref55.onBackButtonClick,
|
|
@@ -154994,12 +155028,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154994
155028
|
logging.closePopupCtaClick(isConfirmed);
|
|
154995
155029
|
if (isConfirmed) {
|
|
154996
155030
|
captureExitLog(Date.now());
|
|
154997
|
-
(0,
|
|
155031
|
+
(0, import_react_native29.closeView)();
|
|
154998
155032
|
}
|
|
154999
155033
|
}), [captureExitLog, globals.brandDisplayName, logging, openConfirm]);
|
|
155000
|
-
return (0,
|
|
155034
|
+
return (0, import_jsx_runtime17.jsx)(NavigationBarImpressionArea, {
|
|
155001
155035
|
withHomeButton: withHomeButton,
|
|
155002
|
-
children: (0,
|
|
155036
|
+
children: (0, import_jsx_runtime17.jsx)(import_private8.TopNavigation, {
|
|
155003
155037
|
title: globals.brandDisplayName,
|
|
155004
155038
|
icon: toIcon(globals.brandIcon),
|
|
155005
155039
|
onPressDots: openMoreButtonBottomSheet,
|
|
@@ -155009,9 +155043,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155009
155043
|
withHome: withHomeButton,
|
|
155010
155044
|
fixedRightButton: navigationRightButton,
|
|
155011
155045
|
leftVisible: withBackButton,
|
|
155012
|
-
children: (0,
|
|
155046
|
+
children: (0, import_jsx_runtime17.jsx)(import_private8.NavigationLeft, {
|
|
155013
155047
|
visible: withBackButton,
|
|
155014
|
-
children: (0,
|
|
155048
|
+
children: (0, import_jsx_runtime17.jsx)(import_private8.NavigationBackButton, {
|
|
155015
155049
|
onPress: onBackButtonClick,
|
|
155016
155050
|
canGoBack: false
|
|
155017
155051
|
})
|
|
@@ -155019,16 +155053,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155019
155053
|
})
|
|
155020
155054
|
});
|
|
155021
155055
|
}
|
|
155022
|
-
var
|
|
155056
|
+
var import_jsx_runtime18 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
155023
155057
|
var PartnerWebView = (0, import_react21.forwardRef)(function PartnerWebViewScreen(_ref58, ref) {
|
|
155024
155058
|
var onBackButtonClick = _ref58.onBackButtonClick,
|
|
155025
155059
|
onHomeButtonClick = _ref58.onHomeButtonClick,
|
|
155026
155060
|
webViewProps = _objectWithoutProperties(_ref58, _excluded2);
|
|
155027
|
-
return (0,
|
|
155028
|
-
children: [(0,
|
|
155061
|
+
return (0, import_jsx_runtime18.jsxs)(import_jsx_runtime18.Fragment, {
|
|
155062
|
+
children: [(0, import_jsx_runtime18.jsx)(PartnerWebviewNavigationBar, {
|
|
155029
155063
|
onBackButtonClick: onBackButtonClick,
|
|
155030
155064
|
onHomeButtonClick: onHomeButtonClick
|
|
155031
|
-
}), (0,
|
|
155065
|
+
}), (0, import_jsx_runtime18.jsx)(import_react_native_webview2.WebView, Object.assign({
|
|
155032
155066
|
ref: ref
|
|
155033
155067
|
}, webViewProps, {
|
|
155034
155068
|
style: {
|
|
@@ -155055,7 +155089,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155055
155089
|
}
|
|
155056
155090
|
return `${scheme}://${url.hostname}${url.pathname}${url.search}`;
|
|
155057
155091
|
}
|
|
155058
|
-
var
|
|
155092
|
+
var import_native_modules16 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
155059
155093
|
function noop() {}
|
|
155060
155094
|
function generateSessionId() {
|
|
155061
155095
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function (c) {
|
|
@@ -155068,7 +155102,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155068
155102
|
var ANDROID_FETCH_TOSS_AD_SUPPORTED_VERSION = "5.241.0";
|
|
155069
155103
|
var IOS_FETCH_TOSS_AD_SUPPORTED_VERSION = "5.241.0";
|
|
155070
155104
|
var UNSUPPORTED_ERROR_MESSAGE = "This feature is not supported in the current environment";
|
|
155071
|
-
var ENVIRONMENT = (0,
|
|
155105
|
+
var ENVIRONMENT = (0, import_native_modules16.getOperationalEnvironment)();
|
|
155072
155106
|
function fetchTossAd(params) {
|
|
155073
155107
|
if (!fetchTossAd.isSupported()) {
|
|
155074
155108
|
params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE));
|
|
@@ -155078,7 +155112,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155078
155112
|
_onError3 = params.onError,
|
|
155079
155113
|
options = params.options;
|
|
155080
155114
|
var adGroupId = options.adGroupId;
|
|
155081
|
-
var unregisterCallbacks =
|
|
155115
|
+
var unregisterCallbacks = import_native_modules16.INTERNAL__appBridgeHandler.invokeAppBridgeMethod("fetchTossAd", {
|
|
155082
155116
|
spaceUnitId: adGroupId,
|
|
155083
155117
|
sessionId: sessionId,
|
|
155084
155118
|
sdkId: options.sdkId,
|
|
@@ -155097,37 +155131,37 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155097
155131
|
if (ENVIRONMENT !== "toss") {
|
|
155098
155132
|
return false;
|
|
155099
155133
|
}
|
|
155100
|
-
return (0,
|
|
155134
|
+
return (0, import_native_modules16.isMinVersionSupported)({
|
|
155101
155135
|
android: ANDROID_FETCH_TOSS_AD_SUPPORTED_VERSION,
|
|
155102
155136
|
ios: IOS_FETCH_TOSS_AD_SUPPORTED_VERSION
|
|
155103
155137
|
});
|
|
155104
155138
|
};
|
|
155105
|
-
var
|
|
155139
|
+
var import_native_modules18 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
155106
155140
|
function generateRequestId() {
|
|
155107
155141
|
var timestamp = Date.now().toString(36).toUpperCase();
|
|
155108
155142
|
var random = Math.random().toString(36).substring(2, 7).toUpperCase();
|
|
155109
155143
|
return `ait-${timestamp}${random}`;
|
|
155110
155144
|
}
|
|
155111
|
-
var
|
|
155145
|
+
var import_react_native30 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
155112
155146
|
function getReferrer() {
|
|
155113
155147
|
try {
|
|
155114
|
-
return new URL((0,
|
|
155148
|
+
return new URL((0, import_react_native30.getSchemeUri)()).searchParams.get("referrer");
|
|
155115
155149
|
} catch (_unused4) {
|
|
155116
155150
|
return null;
|
|
155117
155151
|
}
|
|
155118
155152
|
}
|
|
155119
|
-
var
|
|
155120
|
-
var
|
|
155153
|
+
var import_native_modules17 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
155154
|
+
var import_react_native31 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
155121
155155
|
function getIsDev() {
|
|
155122
155156
|
try {
|
|
155123
|
-
return new URL((0,
|
|
155157
|
+
return new URL((0, import_react_native31.getSchemeUri)()).searchParams.get("isDev") === "true";
|
|
155124
155158
|
} catch (_unused5) {
|
|
155125
155159
|
return false;
|
|
155126
155160
|
}
|
|
155127
155161
|
}
|
|
155128
|
-
var OPERATIONAL_ENVIRONMENT = (0,
|
|
155129
|
-
var OS = (0,
|
|
155130
|
-
var APP_VER = (0,
|
|
155162
|
+
var OPERATIONAL_ENVIRONMENT = (0, import_native_modules17.getOperationalEnvironment)();
|
|
155163
|
+
var OS = (0, import_native_modules17.getPlatformOS)();
|
|
155164
|
+
var APP_VER = (0, import_native_modules17.getTossAppVersion)();
|
|
155131
155165
|
var ALPHA_EVENT_TRACKER_HTTP_ENDPOINT = "https://alpha-trillion.toss.im/trk/sdk-mediation/event";
|
|
155132
155166
|
var LIVE_EVENT_TRACKER_HTTP_ENDPOINT = "https://trillion.toss.im/trk/sdk-mediation/event";
|
|
155133
155167
|
function getPostEventTrackingUrl() {
|
|
@@ -155159,19 +155193,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155159
155193
|
var UNSUPPORTED_ERROR_MESSAGE2 = "This feature is not supported in the current environment";
|
|
155160
155194
|
var INTG_AD_ADM_FALLBACK_RID_MAP = {};
|
|
155161
155195
|
function integratedAdIsSupported() {
|
|
155162
|
-
return (0,
|
|
155196
|
+
return (0, import_native_modules18.isMinVersionSupported)({
|
|
155163
155197
|
android: ANDROID_INTEGRATED_AD_SUPPORTED_VERSION,
|
|
155164
155198
|
ios: IOS_INTEGRATED_AD_SUPPORTED_VERSION
|
|
155165
155199
|
});
|
|
155166
155200
|
}
|
|
155167
155201
|
function generateLoadFullScreenAd(sdkId) {
|
|
155168
155202
|
var fn = function fn(params) {
|
|
155169
|
-
if (!
|
|
155203
|
+
if (!import_native_modules18.GoogleAdMob.loadAppsInTossAdMob.isSupported()) {
|
|
155170
155204
|
params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE2));
|
|
155171
155205
|
return noop;
|
|
155172
155206
|
}
|
|
155173
155207
|
if (!integratedAdIsSupported()) {
|
|
155174
|
-
return
|
|
155208
|
+
return import_native_modules18.GoogleAdMob.loadAppsInTossAdMob(Object.assign({}, params, {
|
|
155175
155209
|
onEvent: function onEvent(event) {
|
|
155176
155210
|
if (event.type === "loaded") {
|
|
155177
155211
|
var _event$data$responseI, _event$data$responseI2;
|
|
@@ -155212,7 +155246,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155212
155246
|
options = params.options;
|
|
155213
155247
|
var adGroupId = options.adGroupId;
|
|
155214
155248
|
var referrer = getReferrer();
|
|
155215
|
-
var unregisterCallbacks =
|
|
155249
|
+
var unregisterCallbacks = import_native_modules18.INTERNAL__appBridgeHandler.invokeAppBridgeMethod("loadTossAdOrAdmob", {
|
|
155216
155250
|
spaceUnitId: adGroupId,
|
|
155217
155251
|
referrer: referrer,
|
|
155218
155252
|
sessionId: sessionId,
|
|
@@ -155229,18 +155263,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155229
155263
|
});
|
|
155230
155264
|
return unregisterCallbacks;
|
|
155231
155265
|
};
|
|
155232
|
-
fn.isSupported =
|
|
155266
|
+
fn.isSupported = import_native_modules18.GoogleAdMob.loadAppsInTossAdMob.isSupported;
|
|
155233
155267
|
return fn;
|
|
155234
155268
|
}
|
|
155235
155269
|
var _loadFullScreenAd = generateLoadFullScreenAd("107");
|
|
155236
155270
|
var loadFullScreenAdForWeb = generateLoadFullScreenAd("107");
|
|
155237
155271
|
function _showFullScreenAd(params) {
|
|
155238
|
-
if (!
|
|
155272
|
+
if (!import_native_modules18.GoogleAdMob.showAppsInTossAdMob.isSupported()) {
|
|
155239
155273
|
params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE2));
|
|
155240
155274
|
return noop;
|
|
155241
155275
|
}
|
|
155242
155276
|
if (!integratedAdIsSupported()) {
|
|
155243
|
-
return
|
|
155277
|
+
return import_native_modules18.GoogleAdMob.showAppsInTossAdMob(Object.assign({}, params, {
|
|
155244
155278
|
onEvent: function onEvent(event) {
|
|
155245
155279
|
var _INTG_AD_ADM_FALLBACK2;
|
|
155246
155280
|
var requestId = (_INTG_AD_ADM_FALLBACK2 = INTG_AD_ADM_FALLBACK_RID_MAP[params.options.adGroupId]) != null ? _INTG_AD_ADM_FALLBACK2 : "";
|
|
@@ -155342,7 +155376,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155342
155376
|
options = params.options;
|
|
155343
155377
|
var adGroupId = options.adGroupId;
|
|
155344
155378
|
var referrer = getReferrer();
|
|
155345
|
-
var unregisterCallbacks =
|
|
155379
|
+
var unregisterCallbacks = import_native_modules18.INTERNAL__appBridgeHandler.invokeAppBridgeMethod("showTossAdOrAdmob", {
|
|
155346
155380
|
spaceUnitId: adGroupId,
|
|
155347
155381
|
referrer: referrer,
|
|
155348
155382
|
sessionId: sessionId
|
|
@@ -155389,23 +155423,23 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155389
155423
|
});
|
|
155390
155424
|
return unregisterCallbacks;
|
|
155391
155425
|
}
|
|
155392
|
-
_showFullScreenAd.isSupported =
|
|
155393
|
-
var
|
|
155394
|
-
var
|
|
155426
|
+
_showFullScreenAd.isSupported = import_native_modules18.GoogleAdMob.showAppsInTossAdMob.isSupported;
|
|
155427
|
+
var import_native_modules19 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
155428
|
+
var import_react_native32 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
155395
155429
|
function tossAdEventLog(_x4) {
|
|
155396
155430
|
return _tossAdEventLog.apply(this, arguments);
|
|
155397
155431
|
}
|
|
155398
155432
|
function _tossAdEventLog() {
|
|
155399
155433
|
_tossAdEventLog = _asyncToGenerator(function* (params) {
|
|
155400
155434
|
var referrer = getReferrer();
|
|
155401
|
-
var appName =
|
|
155435
|
+
var appName = import_react_native32.Granite.appName;
|
|
155402
155436
|
var eventLogParams = Object.assign({}, params, {
|
|
155403
155437
|
params: Object.assign({}, params.params, {
|
|
155404
155438
|
referrer: referrer,
|
|
155405
155439
|
app_name: appName
|
|
155406
155440
|
})
|
|
155407
155441
|
});
|
|
155408
|
-
return
|
|
155442
|
+
return import_native_modules19.INTERNAL__module.tossCoreEventLog(eventLogParams);
|
|
155409
155443
|
});
|
|
155410
155444
|
return _tossAdEventLog.apply(this, arguments);
|
|
155411
155445
|
}
|
|
@@ -155615,7 +155649,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155615
155649
|
}, [emitter, insets]);
|
|
155616
155650
|
return emitter;
|
|
155617
155651
|
}
|
|
155618
|
-
var
|
|
155652
|
+
var import_react_native33 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
155619
155653
|
var import_tds_react_native13 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
155620
155654
|
var import_es_hangul5 = _$$_REQUIRE(_dependencyMap[14], "es-hangul");
|
|
155621
155655
|
var import_react25 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
@@ -155701,7 +155735,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155701
155735
|
var _useWebViewHistory = useWebViewHistory(),
|
|
155702
155736
|
hasHistory = _useWebViewHistory.hasHistory,
|
|
155703
155737
|
onNavigationStateChange = _useWebViewHistory.onNavigationStateChange;
|
|
155704
|
-
var _ref73 = (0,
|
|
155738
|
+
var _ref73 = (0, import_react_native33.useBackEventState)(),
|
|
155705
155739
|
webBackHandlersRef = _ref73.handlersRef,
|
|
155706
155740
|
hasWebBackEvent = _ref73.hasBackEvent,
|
|
155707
155741
|
addWebBackEventListener = _ref73.addEventListener,
|
|
@@ -155737,7 +155771,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155737
155771
|
logging.closePopupCtaClick(isConfirmed);
|
|
155738
155772
|
if (isConfirmed) {
|
|
155739
155773
|
captureExitLog(Date.now());
|
|
155740
|
-
(0,
|
|
155774
|
+
(0, import_react_native33.closeView)();
|
|
155741
155775
|
}
|
|
155742
155776
|
}
|
|
155743
155777
|
}), [captureExitLog, global2.brandDisplayName, hasHistory, hasWebBackEvent, webBackHandlersRef, logging, openConfirm, webViewRef]);
|
|
@@ -155781,8 +155815,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155781
155815
|
});
|
|
155782
155816
|
};
|
|
155783
155817
|
}
|
|
155784
|
-
var
|
|
155785
|
-
var
|
|
155818
|
+
var import_native_modules20 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
155819
|
+
var import_react_native34 = _$$_REQUIRE(_dependencyMap[11], "react-native");
|
|
155786
155820
|
var FontA11yCategory = {
|
|
155787
155821
|
Large: "Large",
|
|
155788
155822
|
xLarge: "xLarge",
|
|
@@ -155918,23 +155952,23 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155918
155952
|
pureSafeArea = _ref76.pureSafeArea,
|
|
155919
155953
|
safeArea = _ref76.safeArea,
|
|
155920
155954
|
safeAreaBottomTransparency = _ref76.safeAreaBottomTransparency;
|
|
155921
|
-
var platform = (0,
|
|
155922
|
-
var appVersion = (0,
|
|
155923
|
-
var _ref77 = (0,
|
|
155955
|
+
var platform = (0, import_native_modules20.getPlatformOS)();
|
|
155956
|
+
var appVersion = (0, import_native_modules20.getTossAppVersion)();
|
|
155957
|
+
var _ref77 = (0, import_react_native34.useWindowDimensions)(),
|
|
155924
155958
|
fontScale = _ref77.fontScale;
|
|
155925
155959
|
var platformString = platform === "ios" ? "iPhone" : "Android phone";
|
|
155926
155960
|
var fontA11y = mapFontScaleToCategory(fontScale, platform);
|
|
155927
155961
|
var normalizedFontScale = convertToAndroidStyleScale(fontScale, platform);
|
|
155928
155962
|
return ["AppsInToss", `TossApp/${appVersion}`, batteryModePreference && `TossBatteryModePreference/${batteryModePreference}`, colorPreference && `TossColorPreference/${colorPreference}`, `TossFontAccessibility/${fontA11y}`, `TossFontScale/${normalizedFontScale}`, locale && `TossLocale/${locale}`, navbarPreference && `TossNavbarPreference/${navbarPreference}`, pureSafeArea && `TossPureSafeArea/${pureSafeArea}`, safeArea && `TossSafeArea/${safeArea}`, safeAreaBottomTransparency && `TossSafeAreaBottomTransparency/${safeAreaBottomTransparency}`, platformString].filter(Boolean).join(" ");
|
|
155929
155963
|
}
|
|
155930
|
-
var
|
|
155931
|
-
var
|
|
155964
|
+
var import_native_modules21 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
155965
|
+
var import_react_native35 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
155932
155966
|
var import_react26 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
155933
155967
|
function _useGeolocation(_ref78) {
|
|
155934
155968
|
var accuracy = _ref78.accuracy,
|
|
155935
155969
|
distanceInterval = _ref78.distanceInterval,
|
|
155936
155970
|
timeInterval = _ref78.timeInterval;
|
|
155937
|
-
var isVisible = (0,
|
|
155971
|
+
var isVisible = (0, import_react_native35.useVisibility)();
|
|
155938
155972
|
var _ref79 = (0, import_react26.useState)(null),
|
|
155939
155973
|
_ref80 = _slicedToArray(_ref79, 2),
|
|
155940
155974
|
location = _ref80[0],
|
|
@@ -155943,7 +155977,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155943
155977
|
if (!isVisible) {
|
|
155944
155978
|
return;
|
|
155945
155979
|
}
|
|
155946
|
-
return (0,
|
|
155980
|
+
return (0, import_native_modules21.startUpdateLocation)({
|
|
155947
155981
|
options: {
|
|
155948
155982
|
accuracy: accuracy,
|
|
155949
155983
|
distanceInterval: distanceInterval,
|
|
@@ -155955,11 +155989,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155955
155989
|
}, [accuracy, distanceInterval, timeInterval, isVisible]);
|
|
155956
155990
|
return location;
|
|
155957
155991
|
}
|
|
155958
|
-
var
|
|
155992
|
+
var import_react_native36 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
155959
155993
|
var import_react27 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
155960
155994
|
function _useWaitForReturnNavigator() {
|
|
155961
155995
|
var callbacks = (0, import_react27.useRef)([]).current;
|
|
155962
|
-
var navigation = (0,
|
|
155996
|
+
var navigation = (0, import_react_native36.useNavigation)();
|
|
155963
155997
|
var startNavigating = (0, import_react27.useCallback)(function (route, params) {
|
|
155964
155998
|
return new Promise(function (resolve) {
|
|
155965
155999
|
callbacks.push(resolve);
|
|
@@ -155974,7 +156008,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155974
156008
|
callbacks.splice(0, callbacks.length);
|
|
155975
156009
|
}
|
|
155976
156010
|
}, [callbacks]);
|
|
155977
|
-
(0,
|
|
156011
|
+
(0, import_react_native36.useVisibilityChange)(handleVisibilityChange);
|
|
155978
156012
|
return startNavigating;
|
|
155979
156013
|
}
|
|
155980
156014
|
function _useTopNavigation() {
|
|
@@ -155986,8 +156020,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155986
156020
|
removeAccessoryButton: removeNavigationRightButton
|
|
155987
156021
|
};
|
|
155988
156022
|
}
|
|
155989
|
-
var
|
|
155990
|
-
var
|
|
156023
|
+
var import_native_modules22 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
156024
|
+
var import_react_native37 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
155991
156025
|
var import_tds_react_native14 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
155992
156026
|
function useHandleWebViewProcessDidTerminate(webViewRef) {
|
|
155993
156027
|
var toast = (0, import_tds_react_native14.useToast)();
|
|
@@ -156016,18 +156050,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156016
156050
|
log_name: logName,
|
|
156017
156051
|
log_type: "debug",
|
|
156018
156052
|
params: Object.assign({}, params, {
|
|
156019
|
-
app_name:
|
|
156053
|
+
app_name: import_react_native37.Granite.appName,
|
|
156020
156054
|
deployment_id: global2.deploymentId
|
|
156021
156055
|
})
|
|
156022
156056
|
};
|
|
156023
|
-
if ((0,
|
|
156024
|
-
|
|
156057
|
+
if ((0, import_native_modules22.getOperationalEnvironment)() === "toss") {
|
|
156058
|
+
import_native_modules22.INTERNAL__module.tossCoreEventLog(event);
|
|
156025
156059
|
} else {
|
|
156026
156060
|
console.log("[webViewDebugLog]", event);
|
|
156027
156061
|
}
|
|
156028
156062
|
}
|
|
156029
|
-
var
|
|
156030
|
-
var
|
|
156063
|
+
var import_native_modules23 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
156064
|
+
var import_react_native38 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
156031
156065
|
var extractDateFromUUIDv7 = function extractDateFromUUIDv7(uuid) {
|
|
156032
156066
|
var timestampHex = uuid.split("-").join("").slice(0, 12);
|
|
156033
156067
|
var timestamp = Number.parseInt(timestampHex, 16);
|
|
@@ -156049,7 +156083,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156049
156083
|
};
|
|
156050
156084
|
var getReferrer2 = function getReferrer2() {
|
|
156051
156085
|
try {
|
|
156052
|
-
var referrer = new URL((0,
|
|
156086
|
+
var referrer = new URL((0, import_react_native38.getSchemeUri)());
|
|
156053
156087
|
return referrer.searchParams.get("referrer");
|
|
156054
156088
|
} catch (_unused7) {
|
|
156055
156089
|
return "";
|
|
@@ -156069,9 +156103,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156069
156103
|
deployment_timestamp: extractDateFromUUIDv7(_env.getDeploymentId()).getTime()
|
|
156070
156104
|
}
|
|
156071
156105
|
};
|
|
156072
|
-
return (0,
|
|
156106
|
+
return (0, import_native_modules23.eventLog)(log);
|
|
156073
156107
|
};
|
|
156074
|
-
var
|
|
156108
|
+
var import_jsx_runtime19 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
156075
156109
|
var operationalEnvironment = appsInTossConstantBridges.getOperationalEnvironment();
|
|
156076
156110
|
var TYPES = ["partner", "external", "game"];
|
|
156077
156111
|
var WEBVIEW_TYPES = {
|
|
@@ -156081,7 +156115,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156081
156115
|
};
|
|
156082
156116
|
function mergeSchemeQueryParamsInto(url) {
|
|
156083
156117
|
var baseUrl = new URL(url);
|
|
156084
|
-
var schemeUrl = new URL((0,
|
|
156118
|
+
var schemeUrl = new URL((0, import_react_native39.getSchemeUri)());
|
|
156085
156119
|
baseUrl.pathname = schemeUrl.pathname;
|
|
156086
156120
|
for (var _ref81 of schemeUrl.searchParams.entries()) {
|
|
156087
156121
|
var _ref82 = _slicedToArray(_ref81, 2);
|
|
@@ -156096,7 +156130,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156096
156130
|
var devUrl = `http://${local.host}:${local.port}`;
|
|
156097
156131
|
return mergeSchemeQueryParamsInto(devUrl);
|
|
156098
156132
|
}
|
|
156099
|
-
var _import_native_module =
|
|
156133
|
+
var _import_native_module = import_native_modules24.AppsInTossModule.getWebBundleURL({}),
|
|
156100
156134
|
rawUrl = _import_native_module.url;
|
|
156101
156135
|
var url = mergeSchemeQueryParamsInto(rawUrl);
|
|
156102
156136
|
var deploymentId = _env.getDeploymentId();
|
|
@@ -156150,7 +156184,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156150
156184
|
var onEvent = _ref88.onEvent,
|
|
156151
156185
|
onError = _ref88.onError,
|
|
156152
156186
|
options = _ref88.options;
|
|
156153
|
-
return
|
|
156187
|
+
return import_native_modules24.appsInTossEvent.addEventListener("updateLocationEvent", {
|
|
156154
156188
|
onEvent: onEvent,
|
|
156155
156189
|
onError: onError,
|
|
156156
156190
|
options: options
|
|
@@ -156167,19 +156201,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156167
156201
|
var onEvent = _ref90.onEvent,
|
|
156168
156202
|
onError = _ref90.onError,
|
|
156169
156203
|
options = _ref90.options;
|
|
156170
|
-
return
|
|
156204
|
+
return import_native_modules24.appsInTossEvent.addEventListener("appBridgeCallbackEvent", {
|
|
156171
156205
|
onEvent: onEvent,
|
|
156172
156206
|
onError: onError,
|
|
156173
156207
|
options: options
|
|
156174
156208
|
});
|
|
156175
156209
|
},
|
|
156176
|
-
loadAppsInTossAdMob:
|
|
156177
|
-
showAppsInTossAdMob:
|
|
156210
|
+
loadAppsInTossAdMob: import_native_modules24.GoogleAdMob.loadAppsInTossAdMob,
|
|
156211
|
+
showAppsInTossAdMob: import_native_modules24.GoogleAdMob.showAppsInTossAdMob,
|
|
156178
156212
|
loadFullScreenAd: loadFullScreenAdForWeb,
|
|
156179
156213
|
showFullScreenAd: _showFullScreenAd,
|
|
156180
156214
|
fetchTossAd: fetchTossAd,
|
|
156181
|
-
iapCreateOneTimePurchaseOrder:
|
|
156182
|
-
requestOneTimePurchase:
|
|
156215
|
+
iapCreateOneTimePurchaseOrder: import_native_modules24.IAP.createOneTimePurchaseOrder,
|
|
156216
|
+
requestOneTimePurchase: import_native_modules24.requestOneTimePurchase
|
|
156183
156217
|
}),
|
|
156184
156218
|
constantHandlerMap: Object.assign({}, appsInTossConstantBridges, {
|
|
156185
156219
|
getSafeAreaInsets: function getSafeAreaInsets() {
|
|
@@ -156198,17 +156232,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156198
156232
|
return value;
|
|
156199
156233
|
}];
|
|
156200
156234
|
})), {
|
|
156201
|
-
getServerTime_isSupported:
|
|
156202
|
-
loadAppsInTossAdMob_isSupported:
|
|
156203
|
-
showAppsInTossAdMob_isSupported:
|
|
156204
|
-
isAppsInTossAdMobLoaded_isSupported:
|
|
156235
|
+
getServerTime_isSupported: import_native_modules24.getServerTime.isSupported,
|
|
156236
|
+
loadAppsInTossAdMob_isSupported: import_native_modules24.GoogleAdMob.loadAppsInTossAdMob.isSupported,
|
|
156237
|
+
showAppsInTossAdMob_isSupported: import_native_modules24.GoogleAdMob.showAppsInTossAdMob.isSupported,
|
|
156238
|
+
isAppsInTossAdMobLoaded_isSupported: import_native_modules24.GoogleAdMob.isAppsInTossAdMobLoaded.isSupported,
|
|
156205
156239
|
loadFullScreenAd_isSupported: loadFullScreenAdForWeb.isSupported,
|
|
156206
156240
|
showFullScreenAd_isSupported: _showFullScreenAd.isSupported,
|
|
156207
156241
|
fetchTossAd_isSupported: fetchTossAd.isSupported,
|
|
156208
|
-
getDeploymentId: _env.getDeploymentId
|
|
156242
|
+
getDeploymentId: _env.getDeploymentId,
|
|
156243
|
+
getWebViewType: _env.getWebViewType,
|
|
156244
|
+
getAppName: _env.getAppName
|
|
156209
156245
|
}),
|
|
156210
156246
|
asyncHandlerMap: Object.assign({}, appsInTossAsyncBridges, {
|
|
156211
|
-
getServerTime:
|
|
156247
|
+
getServerTime: import_native_modules24.getServerTime,
|
|
156212
156248
|
setIosSwipeGestureEnabled: function setIosSwipeGestureEnabled(options) {
|
|
156213
156249
|
setAllowsBackForwardNavigationGestures(options.isEnabled);
|
|
156214
156250
|
return appsInTossAsyncBridges.setIosSwipeGestureEnabled(options);
|
|
@@ -156240,19 +156276,30 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156240
156276
|
fetchContacts: appsInTossAsyncBridges.fetchContacts,
|
|
156241
156277
|
getCurrentLocation: appsInTossAsyncBridges.getCurrentLocation,
|
|
156242
156278
|
openCamera: appsInTossAsyncBridges.openCamera,
|
|
156243
|
-
getStorageItem:
|
|
156244
|
-
setStorageItem:
|
|
156245
|
-
removeStorageItem:
|
|
156246
|
-
clearItems:
|
|
156247
|
-
iapGetProductItemList:
|
|
156248
|
-
iapCreateOneTimePurchaseOrder:
|
|
156249
|
-
processProductGrant:
|
|
156250
|
-
getPendingOrders:
|
|
156251
|
-
getCompletedOrRefundedOrders:
|
|
156252
|
-
completeProductGrant:
|
|
156253
|
-
isAppsInTossAdMobLoaded:
|
|
156279
|
+
getStorageItem: import_native_modules24.Storage.getItem,
|
|
156280
|
+
setStorageItem: import_native_modules24.Storage.setItem,
|
|
156281
|
+
removeStorageItem: import_native_modules24.Storage.removeItem,
|
|
156282
|
+
clearItems: import_native_modules24.Storage.clearItems,
|
|
156283
|
+
iapGetProductItemList: import_native_modules24.IAP.getProductItemList,
|
|
156284
|
+
iapCreateOneTimePurchaseOrder: import_native_modules24.iapCreateOneTimePurchaseOrder,
|
|
156285
|
+
processProductGrant: import_native_modules24.processProductGrant,
|
|
156286
|
+
getPendingOrders: import_native_modules24.IAP.getPendingOrders,
|
|
156287
|
+
getCompletedOrRefundedOrders: import_native_modules24.IAP.getCompletedOrRefundedOrders,
|
|
156288
|
+
completeProductGrant: import_native_modules24.IAP.completeProductGrant,
|
|
156289
|
+
isAppsInTossAdMobLoaded: import_native_modules24.GoogleAdMob.isAppsInTossAdMobLoaded,
|
|
156254
156290
|
tossAdEventLog: tossAdEventLog,
|
|
156255
|
-
memoryDebugLog: webViewMemoryDebugLog
|
|
156291
|
+
memoryDebugLog: webViewMemoryDebugLog,
|
|
156292
|
+
debugLog: function () {
|
|
156293
|
+
var _debugLog = _asyncToGenerator(function* (event) {
|
|
156294
|
+
var _import_react_native, _import_react_native2;
|
|
156295
|
+
(_import_react_native = import_react_native40.NativeModules.AppsInTossModule) == null ? void 0 : _import_react_native.eventLog(event);
|
|
156296
|
+
(_import_react_native2 = import_react_native40.NativeModules.TossCoreModule) == null ? void 0 : _import_react_native2.eventLog(event);
|
|
156297
|
+
});
|
|
156298
|
+
function debugLog(_x8) {
|
|
156299
|
+
return _debugLog.apply(this, arguments);
|
|
156300
|
+
}
|
|
156301
|
+
return debugLog;
|
|
156302
|
+
}()
|
|
156256
156303
|
})
|
|
156257
156304
|
});
|
|
156258
156305
|
var headerPropForExternalWebView = (0, import_react28.useMemo)(function () {
|
|
@@ -156282,14 +156329,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156282
156329
|
webBackHandler.handleWebBack();
|
|
156283
156330
|
return true;
|
|
156284
156331
|
};
|
|
156285
|
-
|
|
156332
|
+
import_react_native40.BackHandler.addEventListener("hardwareBackPress", callback);
|
|
156286
156333
|
return function () {
|
|
156287
|
-
return
|
|
156334
|
+
return import_react_native40.BackHandler.removeEventListener("hardwareBackPress", callback);
|
|
156288
156335
|
};
|
|
156289
156336
|
}, [webBackHandler]);
|
|
156290
|
-
var globalScripts = useGlobalScripts();
|
|
156291
156337
|
var handleWebViewProcessDidTerminate = useHandleWebViewProcessDidTerminate(webViewRef);
|
|
156292
|
-
return (0,
|
|
156338
|
+
return (0, import_jsx_runtime19.jsx)(BaseWebView, Object.assign({
|
|
156293
156339
|
ref: refs
|
|
156294
156340
|
}, props, headerPropForExternalWebView, {
|
|
156295
156341
|
source: {
|
|
@@ -156307,14 +156353,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156307
156353
|
props.onNavigationStateChange == null ? void 0 : props.onNavigationStateChange(event);
|
|
156308
156354
|
webBackHandler.onNavigationStateChange(event);
|
|
156309
156355
|
},
|
|
156310
|
-
userAgent:
|
|
156356
|
+
userAgent: import_react_native40.Platform.OS === "ios" ? userAgent : void 0,
|
|
156311
156357
|
sharedCookiesEnabled: true,
|
|
156312
156358
|
webviewDebuggingEnabled: webViewDebuggingEnabled,
|
|
156313
156359
|
thirdPartyCookiesEnabled: true,
|
|
156314
156360
|
onMessage: handler.onMessage,
|
|
156315
|
-
injectedJavaScript:
|
|
156316
|
-
injectedJavaScriptBeforeContentLoaded:
|
|
156317
|
-
decelerationRate:
|
|
156361
|
+
injectedJavaScript: import_user_scripts.afterDocumentLoad,
|
|
156362
|
+
injectedJavaScriptBeforeContentLoaded: [handler.injectedJavaScript, import_user_scripts.beforeDocumentLoad].join("\n"),
|
|
156363
|
+
decelerationRate: import_react_native40.Platform.OS === "ios" ? 1 : void 0,
|
|
156318
156364
|
allowsBackForwardNavigationGestures: allowsBackForwardNavigationGestures,
|
|
156319
156365
|
onShouldStartLoadWithRequest: function onShouldStartLoadWithRequest(event) {
|
|
156320
156366
|
try {
|
|
@@ -156323,7 +156369,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156323
156369
|
return true;
|
|
156324
156370
|
} else {
|
|
156325
156371
|
var _convertIntentURL;
|
|
156326
|
-
|
|
156372
|
+
import_react_native40.Linking.openURL((_convertIntentURL = convertIntentURL(url2)) != null ? _convertIntentURL : url2.href);
|
|
156327
156373
|
return false;
|
|
156328
156374
|
}
|
|
156329
156375
|
} catch (error) {
|
|
@@ -156336,76 +156382,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156336
156382
|
onRenderProcessGone: handleWebViewProcessDidTerminate
|
|
156337
156383
|
}));
|
|
156338
156384
|
}
|
|
156339
|
-
function useGlobalScripts() {
|
|
156340
|
-
var global2 = getAppsInTossGlobals();
|
|
156341
|
-
var disableTextSelectionCSS = `
|
|
156342
|
-
const style = document.createElement('style');
|
|
156343
|
-
style.textContent = '*:not(input):not(textarea) { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; -webkit-touch-callout: none; }';
|
|
156344
|
-
document.head.appendChild(style);
|
|
156345
|
-
`;
|
|
156346
|
-
var applyGameResourcesCache = `
|
|
156347
|
-
(function () {
|
|
156348
|
-
if (typeof caches === 'undefined') {
|
|
156349
|
-
return;
|
|
156350
|
-
}
|
|
156351
|
-
const cacheKeyPrefix = '@apps-in-toss/caches/';
|
|
156352
|
-
const cacheKey = \`\${cacheKeyPrefix}${global2.deploymentId}\`;
|
|
156353
|
-
window.addEventListener('load', async () => {
|
|
156354
|
-
const keys = await caches.keys();
|
|
156355
|
-
for (const key of keys) {
|
|
156356
|
-
if (key.startsWith(cacheKeyPrefix) && key !== cacheKey) {
|
|
156357
|
-
await caches.delete(key);
|
|
156358
|
-
}
|
|
156359
|
-
}
|
|
156360
|
-
});
|
|
156361
|
-
window.fetch = new Proxy(window.fetch, {
|
|
156362
|
-
async apply(originalFetch, thisArg, args) {
|
|
156363
|
-
const request = new Request(args[0], args[1]);
|
|
156364
|
-
if (!/\\.(data|wasm|framework\\.js)(?:\\.gz|\\.br|\\.unityweb)?$/.test(request.url)) {
|
|
156365
|
-
return await originalFetch.call(thisArg, request);
|
|
156366
|
-
}
|
|
156367
|
-
const cache = await caches.open(cacheKey);
|
|
156368
|
-
const cached = await cache.match(request);
|
|
156369
|
-
if (cached) {
|
|
156370
|
-
const eTag = cached.headers.get('ETag');
|
|
156371
|
-
const lastModified = cached.headers.get('Last-Modified');
|
|
156372
|
-
if (eTag) {
|
|
156373
|
-
request.headers.set('If-None-Match', eTag);
|
|
156374
|
-
}
|
|
156375
|
-
if (lastModified) {
|
|
156376
|
-
request.headers.set('If-Modified-Since', lastModified);
|
|
156377
|
-
}
|
|
156378
|
-
const revalidated = await originalFetch.call(thisArg, request);
|
|
156379
|
-
if (revalidated.status === 304) {
|
|
156380
|
-
return cached;
|
|
156381
|
-
}
|
|
156382
|
-
cache.put(request, revalidated.clone());
|
|
156383
|
-
return revalidated;
|
|
156384
|
-
}
|
|
156385
|
-
const response = await originalFetch.call(thisArg, request);
|
|
156386
|
-
cache.put(request, response.clone());
|
|
156387
|
-
return response;
|
|
156388
|
-
},
|
|
156389
|
-
});
|
|
156390
|
-
})();
|
|
156391
|
-
`;
|
|
156392
|
-
return {
|
|
156393
|
-
beforeLoad: mergeScripts(global2.webViewType === "game" && applyGameResourcesCache),
|
|
156394
|
-
afterLoad: mergeScripts(disableTextSelectionCSS)
|
|
156395
|
-
};
|
|
156396
|
-
}
|
|
156397
|
-
function mergeScripts() {
|
|
156398
|
-
for (var _len3 = arguments.length, scripts = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
|
|
156399
|
-
scripts[_key3] = arguments[_key3];
|
|
156400
|
-
}
|
|
156401
|
-
return scripts.filter(function (script) {
|
|
156402
|
-
return typeof script === "string";
|
|
156403
|
-
}).join("\n");
|
|
156404
|
-
}
|
|
156405
156385
|
__reExport(src_exports, _$$_REQUIRE(_dependencyMap[7], "@apps-in-toss/analytics"), module.exports);
|
|
156406
156386
|
var import_private10 = _$$_REQUIRE(_dependencyMap[15], "@toss/tds-react-native/private");
|
|
156407
156387
|
__reExport(src_exports, _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules"), module.exports);
|
|
156408
|
-
__reExport(src_exports, _$$_REQUIRE(_dependencyMap[
|
|
156388
|
+
__reExport(src_exports, _$$_REQUIRE(_dependencyMap[22], "@apps-in-toss/types"), module.exports);
|
|
156409
156389
|
var Analytics2 = {
|
|
156410
156390
|
init: import_analytics2.Analytics.init,
|
|
156411
156391
|
Impression: import_analytics2.Analytics.Impression,
|
|
@@ -156426,8 +156406,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156426
156406
|
useOverlay: useOverlay,
|
|
156427
156407
|
useTopNavigation: _useTopNavigation,
|
|
156428
156408
|
useWaitForReturnNavigator: _useWaitForReturnNavigator
|
|
156429
|
-
}, _$$_REQUIRE(_dependencyMap[7], "@apps-in-toss/analytics"), _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules"), _$$_REQUIRE(_dependencyMap[
|
|
156430
|
-
},1256,[24,25,32,207,16,61,1257,1258,1259,2,1446,18,6,9,2468,2568,534,2569,2607,2614,2477,1260],"../../../.yarn/__virtual__/@apps-in-toss-framework-virtual-afbad361af/1/packages/apps-in-toss/framework/dist/index.cjs");
|
|
156409
|
+
}, _$$_REQUIRE(_dependencyMap[7], "@apps-in-toss/analytics"), _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules"), _$$_REQUIRE(_dependencyMap[22], "@apps-in-toss/types")));
|
|
156410
|
+
},1256,[24,25,32,207,16,61,1257,1258,1259,2,1446,18,6,9,2468,2568,534,2569,2607,2614,2630,2477,1260],"../../../.yarn/__virtual__/@apps-in-toss-framework-virtual-afbad361af/1/packages/apps-in-toss/framework/dist/index.cjs");
|
|
156431
156411
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
156432
156412
|
function _objectDestructuringEmpty(obj) {
|
|
156433
156413
|
if (obj == null) throw new TypeError("Cannot destructure undefined");
|
|
@@ -234647,6 +234627,66 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
234647
234627
|
return _appsInTossEvent.appsInTossEvent.addEventListener('onVisibilityChangedByTransparentServiceWeb', eventParams);
|
|
234648
234628
|
}
|
|
234649
234629
|
},2629,[2616],"../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/AppsInTossModule/native-event-emitter/internal/onVisibilityChangedByTransparentServiceWeb.ts");
|
|
234630
|
+
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
234631
|
+
"use strict";
|
|
234632
|
+
|
|
234633
|
+
var a = Object.defineProperty;
|
|
234634
|
+
var i = Object.getOwnPropertyDescriptor;
|
|
234635
|
+
var s = Object.getOwnPropertyNames;
|
|
234636
|
+
var c = Object.prototype.hasOwnProperty;
|
|
234637
|
+
var d = function d(t, e) {
|
|
234638
|
+
for (var o in e) a(t, o, {
|
|
234639
|
+
get: e[o],
|
|
234640
|
+
enumerable: !0
|
|
234641
|
+
});
|
|
234642
|
+
},
|
|
234643
|
+
u = function u(t, e, o, r) {
|
|
234644
|
+
if (e && typeof e == "object" || typeof e == "function") {
|
|
234645
|
+
var _loop = function _loop(n) {
|
|
234646
|
+
!c.call(t, n) && n !== o && a(t, n, {
|
|
234647
|
+
get: function get() {
|
|
234648
|
+
return e[n];
|
|
234649
|
+
},
|
|
234650
|
+
enumerable: !(r = i(e, n)) || r.enumerable
|
|
234651
|
+
});
|
|
234652
|
+
};
|
|
234653
|
+
for (var n of s(e)) {
|
|
234654
|
+
_loop(n);
|
|
234655
|
+
}
|
|
234656
|
+
}
|
|
234657
|
+
return t;
|
|
234658
|
+
};
|
|
234659
|
+
var l = function l(t) {
|
|
234660
|
+
return u(a({}, "__esModule", {
|
|
234661
|
+
value: !0
|
|
234662
|
+
}), t);
|
|
234663
|
+
};
|
|
234664
|
+
var m = {};
|
|
234665
|
+
d(m, {
|
|
234666
|
+
afterDocumentLoad: function afterDocumentLoad() {
|
|
234667
|
+
return p;
|
|
234668
|
+
},
|
|
234669
|
+
beforeDocumentLoad: function beforeDocumentLoad() {
|
|
234670
|
+
return g;
|
|
234671
|
+
}
|
|
234672
|
+
});
|
|
234673
|
+
module.exports = l(m);
|
|
234674
|
+
var p = `"use strict";(()=>{var e=document.createElement("style");e.textContent=\`
|
|
234675
|
+
*:not(input):not(textarea) {
|
|
234676
|
+
-webkit-user-select: none;
|
|
234677
|
+
-moz-user-select: none;
|
|
234678
|
+
-ms-user-select: none;
|
|
234679
|
+
user-select: none;
|
|
234680
|
+
-webkit-touch-callout: none;
|
|
234681
|
+
}
|
|
234682
|
+
\`;document.head.appendChild(e);})();
|
|
234683
|
+
`,
|
|
234684
|
+
g = '"use strict";(()=>{var b=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 n=this._window.__GRANITE_NATIVE_EMITTER;if(!n)throw new Error("__GRANITE_NATIVE_EMITTER is not available");return n.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`)}},u=new b,y=()=>Math.random().toString(36).substring(2,15),R=e=>{if(e&&e.__isError){let t=new Error(e.message);for(let[n,r]of Object.entries(e))t[n]=r;return t}return e};function h(e){return(...t)=>{let n=y(),r=[],a=()=>{for(let o of r)o()};return new Promise((o,i)=>{r.push(u.on(`${e}/resolve/${n}`,s=>{a(),o(s)})),r.push(u.on(`${e}/reject/${n}`,s=>{a(),i(R(s))})),u.postMessage({type:"method",functionName:e,eventId:n,args:t})})}}function g(e){return()=>u.getConstant(e)}var m=class{_log=h("debugLog");log(t,n){try{this._log({log_name:`apps_in_toss_webview_${t}`,log_type:"debug",params:{...n,...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 l=class{callbacks={};on(t,n){typeof this.callbacks[t]>"u"&&(this.callbacks[t]=[]),this.callbacks[t].push(n)}emit(t,n){this.callbacks[t]?.forEach(r=>r(n))}};window.__appsInToss={appName:g("getAppName")(),deploymentId:g("getDeploymentId")(),webViewType:g("getWebViewType")(),sessionId:Math.random().toString(36).substring(2),eventEmitter:new l,debugLogger:new m};var d=/\\.(data|wasm|framework\\.js)(?:\\.gz|\\.br|\\.unityweb)?$/;function f(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 n=await caches.keys();for(let r of n)r.startsWith(e)&&r!==t&&await caches.delete(r)}),f(async(n,r,a)=>{let o=new Request(a[0],a[1]);if(!d.test(o.url))return await n.call(r,o);let i=await caches.open(t),s=await i.match(o);if(s){let v=s.headers.get("ETag"),_=s.headers.get("Last-Modified");v&&o.headers.set("If-None-Match",v),_&&o.headers.set("If-Modified-Since",_);let p=await n.call(r,o);return p.status===304?(s.__revalidateResponse=p,s):(i.put(o,p.clone()),p)}let w=await n.call(r,o);return i.put(o,w.clone()),w})})();f(async(e,t,n)=>{let r=new Request(n[0],n[1]),a=Date.now();window.__appsInToss.eventEmitter.emit("fetchRequest",{request:r});let o=await e.call(t,r);return window.__appsInToss.eventEmitter.emit("fetchResponse",{request:r,response:o,requestAt:a}),o});var E=window.__appsInToss.debugLogger;E.log("load_start",{});window.addEventListener("load",()=>{let e=performance.timeOrigin,t=performance.getEntriesByType?.("navigation")[0]??null,n=typeof e<"u"&&t!==null,r=n?{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}:{};E.log("load_complete",{isNavigationDebugSupported:n,...r})});function c(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:c(performance.memory.usedJSHeapSize/1024,2),totalJSHeapSize:c(performance.memory.totalJSHeapSize/1024,2),jsHeapSizeLimit:c(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(a=>{a.getEntries().forEach(i=>{i.name==="first-paint"?e.log("first_paint",{fpStartAtMs:t+i.startTime}):i.name==="first-contentful-paint"&&e.log("first_contentful_paint",{fcpStartAtMs:t+i.startTime})})}).observe({type:"paint"}),new PerformanceObserver(a=>{a.getEntries().forEach(i=>{e.log("largest_contentful_paint",{lcpStartAtMs:t+i.startTime,lcpRenderSize:i.size})})}).observe({type:"largest-contentful-paint"})})();(()=>{if(window.__appsInToss.webViewType!=="game")return;function e(t){let n=t.getContext("webgl2")??t.getContext("webgl");if(n==null)return;let r=n.getExtension("WEBGL_debug_renderer_info"),a=n.getParameter(n.MAX_VIEWPORT_DIMS),o={webGLRenderer:n.getParameter(n.RENDERER),webGLVendor:n.getParameter(n.VENDOR),webGLVersion:n.getParameter(n.VERSION),webGLShadingLanguageVersion:n.getParameter(n.SHADING_LANGUAGE_VERSION),webGLMaxTextureSize:n.getParameter(n.MAX_TEXTURE_SIZE),webGLMaxViewportWidth:a[0],webGLMaxViewportHeight:a[1],webGLMaxRenderbufferSize:n.getParameter(n.MAX_RENDERBUFFER_SIZE)},i=r?{webGLUnmaskedVendor:n.getParameter(r.UNMASKED_VENDOR_WEBGL),webGLUnmaskedRenderer:n.getParameter(r.UNMASKED_RENDERER_WEBGL)}:{};window.__appsInToss.debugLogger.log("unity_webgl_info",{...o,...i})}window.addEventListener("load",()=>{let t=document.querySelector("#unity-canvas");if(t!=null){e(t);return}new MutationObserver((r,a)=>{for(let o of r)o.type==="childList"&&o.addedNodes.forEach(i=>{if(i instanceof HTMLCanvasElement&&i.getAttribute("id")==="unity-canvas"&&(e(i),a.disconnect()),i instanceof HTMLElement){let s=i.querySelector("#unity-canvas");s!=null&&(e(s),a.disconnect())}})}).observe(document.body,{childList:!0,subtree:!0})})})();(()=>{if(window.__appsInToss.webViewType!=="game")return;let e=window.__appsInToss.debugLogger,t=window.__appsInToss.eventEmitter;t.on("fetchRequest",({request:n})=>{d.test(n.url)&&e.log("game_resource_download_start",{gameResourceRequestURL:n.url})}),t.on("fetchResponse",async({request:n,requestAt:r,response:a})=>{if(!d.test(n.url))return;let o=c((await a.clone().blob()).size/1024,2),i=Date.now();e.log("game_resource_download_end",{gameResourceRequestURL:n.url,gameResourceRequestAtMs:r,gameResourceResponseAtMs:i,gameResourceResponseSize:o,gameResourceResponseStatus:a.__revalidateResponse?.status??a.status,gameResourceDownloadDurationMs:i-r})})})();})();\n';
|
|
234685
|
+
0 && (module.exports = {
|
|
234686
|
+
afterDocumentLoad: afterDocumentLoad,
|
|
234687
|
+
beforeDocumentLoad: beforeDocumentLoad
|
|
234688
|
+
});
|
|
234689
|
+
},2630,[],"../user-scripts/dist/index.js");
|
|
234650
234690
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
234651
234691
|
Object.defineProperty(exports, "__esModule", {
|
|
234652
234692
|
value: true
|
|
@@ -234661,7 +234701,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
234661
234701
|
context.keys = function () {
|
|
234662
234702
|
return Array.from(files.keys());
|
|
234663
234703
|
};
|
|
234664
|
-
},
|
|
234704
|
+
},2631,[2632,2633],"react-native/context.ts");
|
|
234665
234705
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
234666
234706
|
Object.defineProperty(exports, "__esModule", {
|
|
234667
234707
|
value: true
|
|
@@ -234694,7 +234734,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
234694
234734
|
})
|
|
234695
234735
|
});
|
|
234696
234736
|
}
|
|
234697
|
-
},
|
|
234737
|
+
},2632,[1256,18,9],"react-native/pages/index.tsx");
|
|
234698
234738
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
234699
234739
|
var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
|
|
234700
234740
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -234707,6 +234747,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
234707
234747
|
}
|
|
234708
234748
|
});
|
|
234709
234749
|
var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./index"));
|
|
234710
|
-
},
|
|
234750
|
+
},2633,[1,2632],"react-native/pages/_404.tsx");
|
|
234711
234751
|
__r(133);
|
|
234712
234752
|
__r(0);
|