@apps-in-toss/web-framework 1.9.1 → 1.9.3
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 +206 -179
- package/dist/prebuilt/dev.ios.js +206 -179
- package/dist/prebuilt/prod.android.js +114 -86
- package/dist/prebuilt/prod.ios.js +114 -86
- package/package.json +7 -7
- package/CHANGELOG.md +0 -23
|
@@ -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");
|
|
@@ -153643,9 +153643,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153643
153643
|
}
|
|
153644
153644
|
return context;
|
|
153645
153645
|
}
|
|
153646
|
-
var
|
|
153646
|
+
var import_native_modules13 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
153647
153647
|
var import_react17 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
153648
|
-
var
|
|
153648
|
+
var import_react_native23 = _$$_REQUIRE(_dependencyMap[11], "react-native");
|
|
153649
153649
|
var import_native_modules6 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
153650
153650
|
var import_react_native10 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
153651
153651
|
var import_tds_react_native4 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
@@ -154268,8 +154268,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154268
154268
|
};
|
|
154269
154269
|
}, [backEventContext, navigation, closeConfirm, logging, captureExitLog]);
|
|
154270
154270
|
}
|
|
154271
|
-
var
|
|
154272
|
-
var
|
|
154271
|
+
var import_native_modules12 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
154272
|
+
var import_react_native21 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
154273
154273
|
var import_tds_react_native8 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
154274
154274
|
var import_private4 = _$$_REQUIRE(_dependencyMap[15], "@toss/tds-react-native/private");
|
|
154275
154275
|
var import_react15 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
@@ -154468,18 +154468,40 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154468
154468
|
});
|
|
154469
154469
|
}
|
|
154470
154470
|
var import_native_modules10 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
154471
|
-
var import_react_native19 = _$$_REQUIRE(_dependencyMap[
|
|
154471
|
+
var import_react_native19 = _$$_REQUIRE(_dependencyMap[11], "react-native");
|
|
154472
154472
|
var import_jsx_runtime7 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
154473
|
-
function
|
|
154473
|
+
function HomeShortcutMenu() {
|
|
154474
|
+
var isSandbox = (0, import_native_modules10.getOperationalEnvironment)() === "sandbox";
|
|
154474
154475
|
var globals = getAppsInTossGlobals();
|
|
154475
|
-
if (
|
|
154476
|
+
if (isSandbox) {
|
|
154476
154477
|
return null;
|
|
154477
154478
|
}
|
|
154478
154479
|
return (0, import_jsx_runtime7.jsx)(Menu, {
|
|
154480
|
+
title: "\uD648 \uD654\uBA74\uC5D0 \uCD94\uAC00",
|
|
154481
|
+
iconURL: "https://static.toss.im/icons/png/4x/icon-plus-circle-mono.png",
|
|
154482
|
+
onPress: function onPress() {
|
|
154483
|
+
import_react_native19.NativeModules.AppsInTossModule.addMiniAppShortcut({
|
|
154484
|
+
title: globals.brandDisplayName,
|
|
154485
|
+
appName: global.__granite.app.name,
|
|
154486
|
+
iconUrl: globals.brandIcon,
|
|
154487
|
+
guideUrl: "https://service.toss.im/app-mini-home/shortcut"
|
|
154488
|
+
});
|
|
154489
|
+
}
|
|
154490
|
+
});
|
|
154491
|
+
}
|
|
154492
|
+
var import_native_modules11 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
154493
|
+
var import_react_native20 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
154494
|
+
var import_jsx_runtime8 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
154495
|
+
function PermissionsMenu() {
|
|
154496
|
+
var globals = getAppsInTossGlobals();
|
|
154497
|
+
if ((0, import_native_modules11.getOperationalEnvironment)() === "sandbox") {
|
|
154498
|
+
return null;
|
|
154499
|
+
}
|
|
154500
|
+
return (0, import_jsx_runtime8.jsx)(Menu, {
|
|
154479
154501
|
title: "\uAD8C\uD55C \uC124\uC815",
|
|
154480
154502
|
iconURL: "https://static.toss.im/icons/png/4x/icon-setting-mono.png",
|
|
154481
154503
|
onPress: function onPress() {
|
|
154482
|
-
return (0,
|
|
154504
|
+
return (0, import_react_native20.openURL)(`servicetoss://apps-in-toss-menu/permissions?appName=${import_react_native20.Granite.appName}&displayAppName=${globals.brandDisplayName}`);
|
|
154483
154505
|
}
|
|
154484
154506
|
});
|
|
154485
154507
|
}
|
|
@@ -154489,7 +154511,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154489
154511
|
}
|
|
154490
154512
|
return value;
|
|
154491
154513
|
}
|
|
154492
|
-
var
|
|
154514
|
+
var import_jsx_runtime9 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
154493
154515
|
var APP_BRIDGE_METHOD_NAME = "getMiniAppsSupportContact";
|
|
154494
154516
|
var MIN_VERSION = {
|
|
154495
154517
|
BOTTOM_SHEET: {
|
|
@@ -154500,6 +154522,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154500
154522
|
android: "5.230.0",
|
|
154501
154523
|
ios: "5.230.0"
|
|
154502
154524
|
},
|
|
154525
|
+
HOME_SHORTCUT_MENU: {
|
|
154526
|
+
android: "5.246.0",
|
|
154527
|
+
ios: "5.246.0"
|
|
154528
|
+
},
|
|
154503
154529
|
PERMISSIONS_MENU: {
|
|
154504
154530
|
android: "5.238.0",
|
|
154505
154531
|
ios: "5.237.0"
|
|
@@ -154516,8 +154542,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154516
154542
|
var logging = useMoreButtonBottomSheetLogging();
|
|
154517
154543
|
var overlay = (0, import_private4.useOverlay)();
|
|
154518
154544
|
var title = ensureValue(globals.brandDisplayName, "displayName");
|
|
154519
|
-
var
|
|
154520
|
-
var
|
|
154545
|
+
var isHomeShortcutSupported = (0, import_native_modules12.isMinVersionSupported)(MIN_VERSION.HOME_SHORTCUT_MENU);
|
|
154546
|
+
var isBottomSheetSupported = (0, import_native_modules12.isMinVersionSupported)(MIN_VERSION.BOTTOM_SHEET);
|
|
154547
|
+
var isShareListMenuSupported = (0, import_native_modules12.isMinVersionSupported)(MIN_VERSION.SHARE_LIST_MENU);
|
|
154521
154548
|
var _ref38 = (0, import_react15.useState)(false),
|
|
154522
154549
|
_ref39 = _slicedToArray(_ref38, 2),
|
|
154523
154550
|
isPermissionsMenuSupported = _ref39[0],
|
|
@@ -154526,7 +154553,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154526
154553
|
if (!isBottomSheetSupported) {
|
|
154527
154554
|
return;
|
|
154528
154555
|
}
|
|
154529
|
-
|
|
154556
|
+
import_native_modules12.INTERNAL__appBridgeHandler.invokeAppBridgeMethod(APP_BRIDGE_METHOD_NAME, {}, {
|
|
154530
154557
|
onSuccess: function onSuccess(_ref40) {
|
|
154531
154558
|
var items = _ref40.items;
|
|
154532
154559
|
return setItemList(items);
|
|
@@ -154535,8 +154562,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154535
154562
|
return console.error("\uBA54\uB274 \uBAA9\uB85D\uC744 \uAC00\uC838\uC624\uB294 \uB370 \uC2E4\uD328\uD588\uC5B4\uC694:", error);
|
|
154536
154563
|
}
|
|
154537
154564
|
});
|
|
154538
|
-
if ((0,
|
|
154539
|
-
|
|
154565
|
+
if ((0, import_native_modules12.isMinVersionSupported)(MIN_VERSION.PERMISSIONS_MENU)) {
|
|
154566
|
+
import_native_modules12.INTERNAL__appBridgeHandler.invokeAppBridgeMethod("getAllPermission", {}, {
|
|
154540
154567
|
onSuccess: function onSuccess(permissions) {
|
|
154541
154568
|
return setIsPermissionsMenuSupported(permissions.length > 0);
|
|
154542
154569
|
},
|
|
@@ -154564,10 +154591,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154564
154591
|
logging.close();
|
|
154565
154592
|
close();
|
|
154566
154593
|
};
|
|
154567
|
-
return (0,
|
|
154568
|
-
children: (0,
|
|
154569
|
-
header: (0,
|
|
154570
|
-
title: (0,
|
|
154594
|
+
return (0, import_jsx_runtime9.jsx)(BottomSheetImpressionArea, {
|
|
154595
|
+
children: (0, import_jsx_runtime9.jsx)(import_tds_react_native8.BottomSheet.Root, {
|
|
154596
|
+
header: (0, import_jsx_runtime9.jsx)(import_tds_react_native8.ListHeader, {
|
|
154597
|
+
title: (0, import_jsx_runtime9.jsx)(import_tds_react_native8.ListHeader.TitleParagraph, {
|
|
154571
154598
|
color: adaptive.grey800,
|
|
154572
154599
|
fontWeight: "bold",
|
|
154573
154600
|
typography: "t5",
|
|
@@ -154575,7 +154602,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154575
154602
|
})
|
|
154576
154603
|
}),
|
|
154577
154604
|
open: isOpen,
|
|
154578
|
-
cta: (0,
|
|
154605
|
+
cta: (0, import_jsx_runtime9.jsx)(import_tds_react_native8.BottomSheet.CTA, {
|
|
154579
154606
|
size: "large",
|
|
154580
154607
|
type: "dark",
|
|
154581
154608
|
style: "weak",
|
|
@@ -154586,17 +154613,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154586
154613
|
}),
|
|
154587
154614
|
onClose: handleClose,
|
|
154588
154615
|
onExited: exit,
|
|
154589
|
-
children: (0,
|
|
154616
|
+
children: (0, import_jsx_runtime9.jsxs)(import_tds_react_native8.List, {
|
|
154590
154617
|
rowSeparator: "none",
|
|
154591
154618
|
children: [itemList.map(function (item) {
|
|
154592
|
-
return (0,
|
|
154619
|
+
return (0, import_jsx_runtime9.jsx)(Menu, {
|
|
154593
154620
|
title: item.contactItemName,
|
|
154594
154621
|
iconURL: item.contactIconUrl,
|
|
154595
154622
|
onPress: function onPress() {
|
|
154596
|
-
return (0,
|
|
154623
|
+
return (0, import_react_native21.openURL)(item.contactUri);
|
|
154597
154624
|
}
|
|
154598
154625
|
}, item.contactItemName);
|
|
154599
|
-
}), isShareListMenuSupported && (0,
|
|
154626
|
+
}), isHomeShortcutSupported && (0, import_jsx_runtime9.jsx)(HomeShortcutMenu, {}), isShareListMenuSupported && (0, import_jsx_runtime9.jsx)(AppShareListMenu, {}), isPermissionsMenuSupported && (0, import_jsx_runtime9.jsx)(PermissionsMenu, {})]
|
|
154600
154627
|
})
|
|
154601
154628
|
})
|
|
154602
154629
|
});
|
|
@@ -154616,7 +154643,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154616
154643
|
(0, import_react15.useEffect)(function () {
|
|
154617
154644
|
logging.show();
|
|
154618
154645
|
}, [logging]);
|
|
154619
|
-
return (0,
|
|
154646
|
+
return (0, import_jsx_runtime9.jsx)(import_jsx_runtime9.Fragment, {
|
|
154620
154647
|
children: children
|
|
154621
154648
|
});
|
|
154622
154649
|
}
|
|
@@ -154630,7 +154657,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154630
154657
|
};
|
|
154631
154658
|
}
|
|
154632
154659
|
var import_react16 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
154633
|
-
var
|
|
154660
|
+
var import_jsx_runtime10 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
154634
154661
|
function NavigationBarImpressionArea(_ref44) {
|
|
154635
154662
|
var children = _ref44.children,
|
|
154636
154663
|
withHomeButton = _ref44.withHomeButton;
|
|
@@ -154644,11 +154671,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154644
154671
|
hasLogged.current = true;
|
|
154645
154672
|
}
|
|
154646
154673
|
}, [logging, withHomeButton]);
|
|
154647
|
-
return (0,
|
|
154674
|
+
return (0, import_jsx_runtime10.jsx)(import_jsx_runtime10.Fragment, {
|
|
154648
154675
|
children: children
|
|
154649
154676
|
});
|
|
154650
154677
|
}
|
|
154651
|
-
var
|
|
154678
|
+
var import_jsx_runtime11 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
154652
154679
|
function DefaultNavigationBar() {
|
|
154653
154680
|
var _parsedNavigationBar$, _parsedNavigationBar$2;
|
|
154654
154681
|
var globals = getAppsInTossGlobals();
|
|
@@ -154661,9 +154688,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154661
154688
|
navigationRightButton = _useNavigationBarCont.navigationRightButton;
|
|
154662
154689
|
var navigationEvent = useNavigationEvent();
|
|
154663
154690
|
useHardwareBackPress(navigationEvent.handleBack);
|
|
154664
|
-
return (0,
|
|
154691
|
+
return (0, import_jsx_runtime11.jsx)(NavigationBarImpressionArea, {
|
|
154665
154692
|
withHomeButton: withHomeButton,
|
|
154666
|
-
children: (0,
|
|
154693
|
+
children: (0, import_jsx_runtime11.jsx)(import_private5.TopNavigation, {
|
|
154667
154694
|
title: globals.brandDisplayName,
|
|
154668
154695
|
icon: toIcon(globals.brandIcon),
|
|
154669
154696
|
onPressDots: openMoreButtonBottomSheet,
|
|
@@ -154673,9 +154700,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154673
154700
|
withHome: withHomeButton,
|
|
154674
154701
|
fixedRightButton: navigationRightButton,
|
|
154675
154702
|
leftVisible: withBackButton,
|
|
154676
|
-
children: (0,
|
|
154703
|
+
children: (0, import_jsx_runtime11.jsx)(import_private5.NavigationLeft, {
|
|
154677
154704
|
visible: withBackButton,
|
|
154678
|
-
children: (0,
|
|
154705
|
+
children: (0, import_jsx_runtime11.jsx)(import_private5.NavigationBackButton, {
|
|
154679
154706
|
onPress: navigationEvent.handleBack,
|
|
154680
154707
|
canGoBack: false
|
|
154681
154708
|
})
|
|
@@ -154686,8 +154713,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154686
154713
|
var import_react_native_safe_area_context = _$$_REQUIRE(_dependencyMap[16], "@granite-js/native/react-native-safe-area-context");
|
|
154687
154714
|
var import_tds_react_native9 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
154688
154715
|
var import_private6 = _$$_REQUIRE(_dependencyMap[15], "@toss/tds-react-native/private");
|
|
154689
|
-
var
|
|
154690
|
-
var
|
|
154716
|
+
var import_react_native22 = _$$_REQUIRE(_dependencyMap[11], "react-native");
|
|
154717
|
+
var import_jsx_runtime12 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
154691
154718
|
function GameNavigationBar() {
|
|
154692
154719
|
var safeAreaTop = (0, import_private6.useSafeAreaTop)();
|
|
154693
154720
|
var _useMoreButtonBottomS2 = useMoreButtonBottomSheet(),
|
|
@@ -154698,15 +154725,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154698
154725
|
var _ref45 = (0, import_react_native_safe_area_context.useSafeAreaInsets)(),
|
|
154699
154726
|
safeAreaRight = _ref45.right;
|
|
154700
154727
|
useHardwareBackPress(navigationEvent.handleBack);
|
|
154701
|
-
return (0,
|
|
154702
|
-
children: [(0,
|
|
154728
|
+
return (0, import_jsx_runtime12.jsxs)(import_jsx_runtime12.Fragment, {
|
|
154729
|
+
children: [(0, import_jsx_runtime12.jsx)(import_tds_react_native9.PageNavbar, {
|
|
154703
154730
|
preference: {
|
|
154704
154731
|
type: "none"
|
|
154705
154732
|
}
|
|
154706
|
-
}), (0,
|
|
154733
|
+
}), (0, import_jsx_runtime12.jsx)(import_react_native22.View, {
|
|
154707
154734
|
style: {
|
|
154708
154735
|
width: "100%",
|
|
154709
|
-
height:
|
|
154736
|
+
height: import_react_native22.Platform.OS === "ios" ? 44 : 54,
|
|
154710
154737
|
flexDirection: "row",
|
|
154711
154738
|
alignItems: "center",
|
|
154712
154739
|
justifyContent: "flex-end",
|
|
@@ -154716,7 +154743,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154716
154743
|
paddingRight: safeAreaRight + 10
|
|
154717
154744
|
},
|
|
154718
154745
|
pointerEvents: "box-none",
|
|
154719
|
-
children: (0,
|
|
154746
|
+
children: (0, import_jsx_runtime12.jsx)(import_private6.NavigationRightContent, {
|
|
154720
154747
|
fixedRightButton: navigationRightButton,
|
|
154721
154748
|
onPressDots: openMoreButtonBottomSheet,
|
|
154722
154749
|
onPressClose: navigationEvent.handleCloseButtonClick,
|
|
@@ -154733,18 +154760,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154733
154760
|
__reExport(bridge_entry_exports, _$$_REQUIRE(_dependencyMap[17], "@apps-in-toss/native-modules/async-bridges"));
|
|
154734
154761
|
__reExport(bridge_entry_exports, _$$_REQUIRE(_dependencyMap[18], "@apps-in-toss/native-modules/constant-bridges"));
|
|
154735
154762
|
__reExport(bridge_entry_exports, _$$_REQUIRE(_dependencyMap[19], "@apps-in-toss/native-modules/event-bridges"));
|
|
154736
|
-
var
|
|
154763
|
+
var import_jsx_runtime13 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
154737
154764
|
function RNAppContainer(_ref46) {
|
|
154738
154765
|
var children = _ref46.children;
|
|
154739
154766
|
var global2 = getAppsInTossGlobals();
|
|
154740
154767
|
switch (global2.appType) {
|
|
154741
154768
|
case "game":
|
|
154742
|
-
return (0,
|
|
154769
|
+
return (0, import_jsx_runtime13.jsx)(GameAppContainer, {
|
|
154743
154770
|
children: children
|
|
154744
154771
|
});
|
|
154745
154772
|
case "general":
|
|
154746
154773
|
default:
|
|
154747
|
-
return (0,
|
|
154774
|
+
return (0, import_jsx_runtime13.jsx)(GeneralAppContainer, {
|
|
154748
154775
|
children: children
|
|
154749
154776
|
});
|
|
154750
154777
|
}
|
|
@@ -154752,45 +154779,45 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154752
154779
|
function GameAppContainer(_ref47) {
|
|
154753
154780
|
var children = _ref47.children;
|
|
154754
154781
|
(0, import_react17.useEffect)(function () {
|
|
154755
|
-
if (
|
|
154756
|
-
(0,
|
|
154782
|
+
if (import_react_native23.Platform.OS === "ios") {
|
|
154783
|
+
(0, import_native_modules13.setIosSwipeGestureEnabled)({
|
|
154757
154784
|
isEnabled: false
|
|
154758
154785
|
});
|
|
154759
154786
|
return function () {
|
|
154760
|
-
(0,
|
|
154787
|
+
(0, import_native_modules13.setIosSwipeGestureEnabled)({
|
|
154761
154788
|
isEnabled: true
|
|
154762
154789
|
});
|
|
154763
154790
|
};
|
|
154764
154791
|
}
|
|
154765
154792
|
return;
|
|
154766
154793
|
}, []);
|
|
154767
|
-
return (0,
|
|
154768
|
-
children: [(0,
|
|
154794
|
+
return (0, import_jsx_runtime13.jsxs)(import_jsx_runtime13.Fragment, {
|
|
154795
|
+
children: [(0, import_jsx_runtime13.jsx)(RNNavigationBar.Game, {}), (0, bridge_entry_exports.getOperationalEnvironment)() === "toss" ? (0, import_jsx_runtime13.jsx)(GameInitializer, {
|
|
154769
154796
|
children: children
|
|
154770
154797
|
}) : children]
|
|
154771
154798
|
});
|
|
154772
154799
|
}
|
|
154773
154800
|
function GeneralAppContainer(_ref48) {
|
|
154774
154801
|
var children = _ref48.children;
|
|
154775
|
-
return (0,
|
|
154776
|
-
children: [(0,
|
|
154802
|
+
return (0, import_jsx_runtime13.jsxs)(import_jsx_runtime13.Fragment, {
|
|
154803
|
+
children: [(0, import_jsx_runtime13.jsx)(RNNavigationBar.Default, {}), children]
|
|
154777
154804
|
});
|
|
154778
154805
|
}
|
|
154779
|
-
var
|
|
154806
|
+
var import_jsx_runtime14 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
154780
154807
|
function AppsInTossContainer(Container, _ref49) {
|
|
154781
154808
|
var children = _ref49.children,
|
|
154782
154809
|
initialProps = _objectWithoutProperties(_ref49, _excluded);
|
|
154783
|
-
if (!(0,
|
|
154810
|
+
if (!(0, import_native_modules14.isMinVersionSupported)({
|
|
154784
154811
|
android: "5.220.0",
|
|
154785
154812
|
ios: "5.221.0"
|
|
154786
154813
|
})) {
|
|
154787
|
-
return (0,
|
|
154788
|
-
children: [(0,
|
|
154814
|
+
return (0, import_jsx_runtime14.jsxs)(import_jsx_runtime14.Fragment, {
|
|
154815
|
+
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
154816
|
});
|
|
154790
154817
|
}
|
|
154791
|
-
return (0,
|
|
154792
|
-
children: [(0,
|
|
154793
|
-
children: (0,
|
|
154818
|
+
return (0, import_jsx_runtime14.jsxs)(import_jsx_runtime14.Fragment, {
|
|
154819
|
+
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, {
|
|
154820
|
+
children: (0, import_jsx_runtime14.jsx)(import_tds_react_native10.TDSProvider, {
|
|
154794
154821
|
colorPreference: "light",
|
|
154795
154822
|
token: {
|
|
154796
154823
|
color: {
|
|
@@ -154806,19 +154833,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154806
154833
|
var context = _ref50.context,
|
|
154807
154834
|
analytics = _ref50.analytics;
|
|
154808
154835
|
var appName = getAppName();
|
|
154809
|
-
var isRegistered =
|
|
154836
|
+
var isRegistered = import_react_native25.AppRegistry.getAppKeys().includes(appName);
|
|
154810
154837
|
if (!isRegistered) {
|
|
154811
154838
|
var _analytics$debug;
|
|
154812
154839
|
import_analytics.Analytics.init({
|
|
154813
154840
|
logger: function logger(params) {
|
|
154814
|
-
return void (0,
|
|
154841
|
+
return void (0, import_native_modules14.eventLog)(params);
|
|
154815
154842
|
},
|
|
154816
154843
|
debug: (_analytics$debug = analytics == null ? void 0 : analytics.debug) != null ? _analytics$debug : __DEV__
|
|
154817
154844
|
});
|
|
154818
|
-
var App =
|
|
154845
|
+
var App = import_react_native24.Granite.registerApp(AppsInTossContainer.bind(null, container), {
|
|
154819
154846
|
appName: appName,
|
|
154820
154847
|
context: context,
|
|
154821
|
-
setIosSwipeGestureEnabled:
|
|
154848
|
+
setIosSwipeGestureEnabled: import_native_modules14.setIosSwipeGestureEnabled,
|
|
154822
154849
|
router: {
|
|
154823
154850
|
screenContainer: AppsInTossScreenContainer,
|
|
154824
154851
|
defaultScreenOption: {
|
|
@@ -154833,9 +154860,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154833
154860
|
function AppsInTossScreenContainer(_ref51) {
|
|
154834
154861
|
var children = _ref51.children;
|
|
154835
154862
|
var isRNApp = getAppsInTossGlobals().webViewType == null;
|
|
154836
|
-
return (0,
|
|
154837
|
-
children: (0,
|
|
154838
|
-
children: isRNApp ? (0,
|
|
154863
|
+
return (0, import_jsx_runtime14.jsx)(NavigationBarContextProvider, {
|
|
154864
|
+
children: (0, import_jsx_runtime14.jsx)(import_analytics.Analytics.Screen, {
|
|
154865
|
+
children: isRNApp ? (0, import_jsx_runtime14.jsx)(RNAppContainer, {
|
|
154839
154866
|
children: children
|
|
154840
154867
|
}) : children
|
|
154841
154868
|
})
|
|
@@ -154852,28 +154879,28 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154852
154879
|
var _AppsInToss = {
|
|
154853
154880
|
registerApp: registerApp
|
|
154854
154881
|
};
|
|
154855
|
-
var
|
|
154882
|
+
var import_native_modules24 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
154856
154883
|
var appsInTossAsyncBridges = __toESM(_$$_REQUIRE(_dependencyMap[17], "@apps-in-toss/native-modules/async-bridges"), 1);
|
|
154857
154884
|
var appsInTossConstantBridges = __toESM(_$$_REQUIRE(_dependencyMap[18], "@apps-in-toss/native-modules/constant-bridges"), 1);
|
|
154858
154885
|
var appsInTossEventBridges = __toESM(_$$_REQUIRE(_dependencyMap[19], "@apps-in-toss/native-modules/event-bridges"), 1);
|
|
154859
154886
|
var import_react_native_safe_area_context4 = _$$_REQUIRE(_dependencyMap[16], "@granite-js/native/react-native-safe-area-context");
|
|
154860
|
-
var
|
|
154887
|
+
var import_react_native39 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
154861
154888
|
var import_tds_react_native15 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
154862
154889
|
var import_private9 = _$$_REQUIRE(_dependencyMap[15], "@toss/tds-react-native/private");
|
|
154863
154890
|
var import_react28 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
154864
|
-
var
|
|
154865
|
-
var
|
|
154891
|
+
var import_react_native40 = _$$_REQUIRE(_dependencyMap[11], "react-native");
|
|
154892
|
+
var import_native_modules15 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
154866
154893
|
var import_react_native_webview = _$$_REQUIRE(_dependencyMap[20], "@granite-js/native/react-native-webview");
|
|
154867
154894
|
var import_react19 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
154868
|
-
var
|
|
154895
|
+
var import_react_native28 = _$$_REQUIRE(_dependencyMap[11], "react-native");
|
|
154869
154896
|
var import_react_native_safe_area_context2 = _$$_REQUIRE(_dependencyMap[16], "@granite-js/native/react-native-safe-area-context");
|
|
154870
|
-
var
|
|
154897
|
+
var import_react_native26 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
154871
154898
|
var import_tds_react_native11 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
154872
154899
|
var import_private7 = _$$_REQUIRE(_dependencyMap[15], "@toss/tds-react-native/private");
|
|
154873
154900
|
var import_es_hangul3 = _$$_REQUIRE(_dependencyMap[14], "es-hangul");
|
|
154874
154901
|
var import_react18 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
154875
|
-
var
|
|
154876
|
-
var
|
|
154902
|
+
var import_react_native27 = _$$_REQUIRE(_dependencyMap[11], "react-native");
|
|
154903
|
+
var import_jsx_runtime15 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
154877
154904
|
function GameWebviewNavigationBar() {
|
|
154878
154905
|
var safeAreaTop = (0, import_private7.useSafeAreaTop)();
|
|
154879
154906
|
var _ref52 = (0, import_tds_react_native11.useDialog)(),
|
|
@@ -154900,18 +154927,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154900
154927
|
logging.closePopupCtaClick(isConfirmed);
|
|
154901
154928
|
if (isConfirmed) {
|
|
154902
154929
|
captureExitLog(Date.now());
|
|
154903
|
-
(0,
|
|
154930
|
+
(0, import_react_native26.closeView)();
|
|
154904
154931
|
}
|
|
154905
154932
|
}), [captureExitLog, global2.brandDisplayName, logging, openConfirm]);
|
|
154906
|
-
return (0,
|
|
154907
|
-
children: [(0,
|
|
154933
|
+
return (0, import_jsx_runtime15.jsxs)(import_jsx_runtime15.Fragment, {
|
|
154934
|
+
children: [(0, import_jsx_runtime15.jsx)(import_tds_react_native11.PageNavbar, {
|
|
154908
154935
|
preference: {
|
|
154909
154936
|
type: "none"
|
|
154910
154937
|
}
|
|
154911
|
-
}), (0,
|
|
154938
|
+
}), (0, import_jsx_runtime15.jsx)(import_react_native27.View, {
|
|
154912
154939
|
style: {
|
|
154913
154940
|
width: "100%",
|
|
154914
|
-
height:
|
|
154941
|
+
height: import_react_native27.Platform.OS === "ios" ? 44 : 54,
|
|
154915
154942
|
flexDirection: "row",
|
|
154916
154943
|
alignItems: "center",
|
|
154917
154944
|
justifyContent: "flex-end",
|
|
@@ -154921,7 +154948,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154921
154948
|
paddingRight: safeAreaRight + 10
|
|
154922
154949
|
},
|
|
154923
154950
|
pointerEvents: "box-none",
|
|
154924
|
-
children: (0,
|
|
154951
|
+
children: (0, import_jsx_runtime15.jsx)(import_private7.NavigationRightContent, {
|
|
154925
154952
|
fixedRightButton: navigationRightButton,
|
|
154926
154953
|
onPressDots: openMoreButtonBottomSheet,
|
|
154927
154954
|
onPressClose: function onPressClose() {
|
|
@@ -154932,39 +154959,39 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154932
154959
|
})]
|
|
154933
154960
|
});
|
|
154934
154961
|
}
|
|
154935
|
-
var
|
|
154962
|
+
var import_jsx_runtime16 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
154936
154963
|
var GameWebView = (0, import_react19.forwardRef)(function GameWebView2(props, ref) {
|
|
154937
154964
|
(0, import_react19.useEffect)(function () {
|
|
154938
|
-
if (
|
|
154939
|
-
(0,
|
|
154965
|
+
if (import_react_native28.Platform.OS === "ios") {
|
|
154966
|
+
(0, import_native_modules15.setIosSwipeGestureEnabled)({
|
|
154940
154967
|
isEnabled: false
|
|
154941
154968
|
});
|
|
154942
154969
|
return function () {
|
|
154943
|
-
(0,
|
|
154970
|
+
(0, import_native_modules15.setIosSwipeGestureEnabled)({
|
|
154944
154971
|
isEnabled: true
|
|
154945
154972
|
});
|
|
154946
154973
|
};
|
|
154947
154974
|
}
|
|
154948
154975
|
return;
|
|
154949
154976
|
}, []);
|
|
154950
|
-
return (0,
|
|
154951
|
-
children: [(0,
|
|
154952
|
-
children: (0,
|
|
154977
|
+
return (0, import_jsx_runtime16.jsxs)(import_jsx_runtime16.Fragment, {
|
|
154978
|
+
children: [(0, import_jsx_runtime16.jsx)(GameWebviewNavigationBar, {}), (0, import_native_modules15.getOperationalEnvironment)() === "toss" ? (0, import_jsx_runtime16.jsx)(GameInitializer, {
|
|
154979
|
+
children: (0, import_jsx_runtime16.jsx)(import_react_native_webview.WebView, Object.assign({
|
|
154953
154980
|
ref: ref
|
|
154954
154981
|
}, props))
|
|
154955
|
-
}) : (0,
|
|
154982
|
+
}) : (0, import_jsx_runtime16.jsx)(import_react_native_webview.WebView, Object.assign({
|
|
154956
154983
|
ref: ref
|
|
154957
154984
|
}, props))]
|
|
154958
154985
|
});
|
|
154959
154986
|
});
|
|
154960
154987
|
var import_react_native_webview2 = _$$_REQUIRE(_dependencyMap[20], "@granite-js/native/react-native-webview");
|
|
154961
154988
|
var import_react21 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
154962
|
-
var
|
|
154989
|
+
var import_react_native29 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
154963
154990
|
var import_tds_react_native12 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
154964
154991
|
var import_private8 = _$$_REQUIRE(_dependencyMap[15], "@toss/tds-react-native/private");
|
|
154965
154992
|
var import_es_hangul4 = _$$_REQUIRE(_dependencyMap[14], "es-hangul");
|
|
154966
154993
|
var import_react20 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
154967
|
-
var
|
|
154994
|
+
var import_jsx_runtime17 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
154968
154995
|
function PartnerWebviewNavigationBar(_ref55) {
|
|
154969
154996
|
var _parsedNavigationBar$3, _parsedNavigationBar$4;
|
|
154970
154997
|
var onBackButtonClick = _ref55.onBackButtonClick,
|
|
@@ -154994,12 +155021,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154994
155021
|
logging.closePopupCtaClick(isConfirmed);
|
|
154995
155022
|
if (isConfirmed) {
|
|
154996
155023
|
captureExitLog(Date.now());
|
|
154997
|
-
(0,
|
|
155024
|
+
(0, import_react_native29.closeView)();
|
|
154998
155025
|
}
|
|
154999
155026
|
}), [captureExitLog, globals.brandDisplayName, logging, openConfirm]);
|
|
155000
|
-
return (0,
|
|
155027
|
+
return (0, import_jsx_runtime17.jsx)(NavigationBarImpressionArea, {
|
|
155001
155028
|
withHomeButton: withHomeButton,
|
|
155002
|
-
children: (0,
|
|
155029
|
+
children: (0, import_jsx_runtime17.jsx)(import_private8.TopNavigation, {
|
|
155003
155030
|
title: globals.brandDisplayName,
|
|
155004
155031
|
icon: toIcon(globals.brandIcon),
|
|
155005
155032
|
onPressDots: openMoreButtonBottomSheet,
|
|
@@ -155009,9 +155036,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155009
155036
|
withHome: withHomeButton,
|
|
155010
155037
|
fixedRightButton: navigationRightButton,
|
|
155011
155038
|
leftVisible: withBackButton,
|
|
155012
|
-
children: (0,
|
|
155039
|
+
children: (0, import_jsx_runtime17.jsx)(import_private8.NavigationLeft, {
|
|
155013
155040
|
visible: withBackButton,
|
|
155014
|
-
children: (0,
|
|
155041
|
+
children: (0, import_jsx_runtime17.jsx)(import_private8.NavigationBackButton, {
|
|
155015
155042
|
onPress: onBackButtonClick,
|
|
155016
155043
|
canGoBack: false
|
|
155017
155044
|
})
|
|
@@ -155019,16 +155046,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155019
155046
|
})
|
|
155020
155047
|
});
|
|
155021
155048
|
}
|
|
155022
|
-
var
|
|
155049
|
+
var import_jsx_runtime18 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
155023
155050
|
var PartnerWebView = (0, import_react21.forwardRef)(function PartnerWebViewScreen(_ref58, ref) {
|
|
155024
155051
|
var onBackButtonClick = _ref58.onBackButtonClick,
|
|
155025
155052
|
onHomeButtonClick = _ref58.onHomeButtonClick,
|
|
155026
155053
|
webViewProps = _objectWithoutProperties(_ref58, _excluded2);
|
|
155027
|
-
return (0,
|
|
155028
|
-
children: [(0,
|
|
155054
|
+
return (0, import_jsx_runtime18.jsxs)(import_jsx_runtime18.Fragment, {
|
|
155055
|
+
children: [(0, import_jsx_runtime18.jsx)(PartnerWebviewNavigationBar, {
|
|
155029
155056
|
onBackButtonClick: onBackButtonClick,
|
|
155030
155057
|
onHomeButtonClick: onHomeButtonClick
|
|
155031
|
-
}), (0,
|
|
155058
|
+
}), (0, import_jsx_runtime18.jsx)(import_react_native_webview2.WebView, Object.assign({
|
|
155032
155059
|
ref: ref
|
|
155033
155060
|
}, webViewProps, {
|
|
155034
155061
|
style: {
|
|
@@ -155055,7 +155082,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155055
155082
|
}
|
|
155056
155083
|
return `${scheme}://${url.hostname}${url.pathname}${url.search}`;
|
|
155057
155084
|
}
|
|
155058
|
-
var
|
|
155085
|
+
var import_native_modules16 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
155059
155086
|
function noop() {}
|
|
155060
155087
|
function generateSessionId() {
|
|
155061
155088
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function (c) {
|
|
@@ -155068,7 +155095,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155068
155095
|
var ANDROID_FETCH_TOSS_AD_SUPPORTED_VERSION = "5.241.0";
|
|
155069
155096
|
var IOS_FETCH_TOSS_AD_SUPPORTED_VERSION = "5.241.0";
|
|
155070
155097
|
var UNSUPPORTED_ERROR_MESSAGE = "This feature is not supported in the current environment";
|
|
155071
|
-
var ENVIRONMENT = (0,
|
|
155098
|
+
var ENVIRONMENT = (0, import_native_modules16.getOperationalEnvironment)();
|
|
155072
155099
|
function fetchTossAd(params) {
|
|
155073
155100
|
if (!fetchTossAd.isSupported()) {
|
|
155074
155101
|
params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE));
|
|
@@ -155078,7 +155105,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155078
155105
|
_onError3 = params.onError,
|
|
155079
155106
|
options = params.options;
|
|
155080
155107
|
var adGroupId = options.adGroupId;
|
|
155081
|
-
var unregisterCallbacks =
|
|
155108
|
+
var unregisterCallbacks = import_native_modules16.INTERNAL__appBridgeHandler.invokeAppBridgeMethod("fetchTossAd", {
|
|
155082
155109
|
spaceUnitId: adGroupId,
|
|
155083
155110
|
sessionId: sessionId,
|
|
155084
155111
|
sdkId: options.sdkId,
|
|
@@ -155097,37 +155124,37 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155097
155124
|
if (ENVIRONMENT !== "toss") {
|
|
155098
155125
|
return false;
|
|
155099
155126
|
}
|
|
155100
|
-
return (0,
|
|
155127
|
+
return (0, import_native_modules16.isMinVersionSupported)({
|
|
155101
155128
|
android: ANDROID_FETCH_TOSS_AD_SUPPORTED_VERSION,
|
|
155102
155129
|
ios: IOS_FETCH_TOSS_AD_SUPPORTED_VERSION
|
|
155103
155130
|
});
|
|
155104
155131
|
};
|
|
155105
|
-
var
|
|
155132
|
+
var import_native_modules18 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
155106
155133
|
function generateRequestId() {
|
|
155107
155134
|
var timestamp = Date.now().toString(36).toUpperCase();
|
|
155108
155135
|
var random = Math.random().toString(36).substring(2, 7).toUpperCase();
|
|
155109
155136
|
return `ait-${timestamp}${random}`;
|
|
155110
155137
|
}
|
|
155111
|
-
var
|
|
155138
|
+
var import_react_native30 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
155112
155139
|
function getReferrer() {
|
|
155113
155140
|
try {
|
|
155114
|
-
return new URL((0,
|
|
155141
|
+
return new URL((0, import_react_native30.getSchemeUri)()).searchParams.get("referrer");
|
|
155115
155142
|
} catch (_unused4) {
|
|
155116
155143
|
return null;
|
|
155117
155144
|
}
|
|
155118
155145
|
}
|
|
155119
|
-
var
|
|
155120
|
-
var
|
|
155146
|
+
var import_native_modules17 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
155147
|
+
var import_react_native31 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
155121
155148
|
function getIsDev() {
|
|
155122
155149
|
try {
|
|
155123
|
-
return new URL((0,
|
|
155150
|
+
return new URL((0, import_react_native31.getSchemeUri)()).searchParams.get("isDev") === "true";
|
|
155124
155151
|
} catch (_unused5) {
|
|
155125
155152
|
return false;
|
|
155126
155153
|
}
|
|
155127
155154
|
}
|
|
155128
|
-
var OPERATIONAL_ENVIRONMENT = (0,
|
|
155129
|
-
var OS = (0,
|
|
155130
|
-
var APP_VER = (0,
|
|
155155
|
+
var OPERATIONAL_ENVIRONMENT = (0, import_native_modules17.getOperationalEnvironment)();
|
|
155156
|
+
var OS = (0, import_native_modules17.getPlatformOS)();
|
|
155157
|
+
var APP_VER = (0, import_native_modules17.getTossAppVersion)();
|
|
155131
155158
|
var ALPHA_EVENT_TRACKER_HTTP_ENDPOINT = "https://alpha-trillion.toss.im/trk/sdk-mediation/event";
|
|
155132
155159
|
var LIVE_EVENT_TRACKER_HTTP_ENDPOINT = "https://trillion.toss.im/trk/sdk-mediation/event";
|
|
155133
155160
|
function getPostEventTrackingUrl() {
|
|
@@ -155159,19 +155186,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155159
155186
|
var UNSUPPORTED_ERROR_MESSAGE2 = "This feature is not supported in the current environment";
|
|
155160
155187
|
var INTG_AD_ADM_FALLBACK_RID_MAP = {};
|
|
155161
155188
|
function integratedAdIsSupported() {
|
|
155162
|
-
return (0,
|
|
155189
|
+
return (0, import_native_modules18.isMinVersionSupported)({
|
|
155163
155190
|
android: ANDROID_INTEGRATED_AD_SUPPORTED_VERSION,
|
|
155164
155191
|
ios: IOS_INTEGRATED_AD_SUPPORTED_VERSION
|
|
155165
155192
|
});
|
|
155166
155193
|
}
|
|
155167
155194
|
function generateLoadFullScreenAd(sdkId) {
|
|
155168
155195
|
var fn = function fn(params) {
|
|
155169
|
-
if (!
|
|
155196
|
+
if (!import_native_modules18.GoogleAdMob.loadAppsInTossAdMob.isSupported()) {
|
|
155170
155197
|
params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE2));
|
|
155171
155198
|
return noop;
|
|
155172
155199
|
}
|
|
155173
155200
|
if (!integratedAdIsSupported()) {
|
|
155174
|
-
return
|
|
155201
|
+
return import_native_modules18.GoogleAdMob.loadAppsInTossAdMob(Object.assign({}, params, {
|
|
155175
155202
|
onEvent: function onEvent(event) {
|
|
155176
155203
|
if (event.type === "loaded") {
|
|
155177
155204
|
var _event$data$responseI, _event$data$responseI2;
|
|
@@ -155212,7 +155239,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155212
155239
|
options = params.options;
|
|
155213
155240
|
var adGroupId = options.adGroupId;
|
|
155214
155241
|
var referrer = getReferrer();
|
|
155215
|
-
var unregisterCallbacks =
|
|
155242
|
+
var unregisterCallbacks = import_native_modules18.INTERNAL__appBridgeHandler.invokeAppBridgeMethod("loadTossAdOrAdmob", {
|
|
155216
155243
|
spaceUnitId: adGroupId,
|
|
155217
155244
|
referrer: referrer,
|
|
155218
155245
|
sessionId: sessionId,
|
|
@@ -155229,18 +155256,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155229
155256
|
});
|
|
155230
155257
|
return unregisterCallbacks;
|
|
155231
155258
|
};
|
|
155232
|
-
fn.isSupported =
|
|
155259
|
+
fn.isSupported = import_native_modules18.GoogleAdMob.loadAppsInTossAdMob.isSupported;
|
|
155233
155260
|
return fn;
|
|
155234
155261
|
}
|
|
155235
155262
|
var _loadFullScreenAd = generateLoadFullScreenAd("107");
|
|
155236
155263
|
var loadFullScreenAdForWeb = generateLoadFullScreenAd("107");
|
|
155237
155264
|
function _showFullScreenAd(params) {
|
|
155238
|
-
if (!
|
|
155265
|
+
if (!import_native_modules18.GoogleAdMob.showAppsInTossAdMob.isSupported()) {
|
|
155239
155266
|
params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE2));
|
|
155240
155267
|
return noop;
|
|
155241
155268
|
}
|
|
155242
155269
|
if (!integratedAdIsSupported()) {
|
|
155243
|
-
return
|
|
155270
|
+
return import_native_modules18.GoogleAdMob.showAppsInTossAdMob(Object.assign({}, params, {
|
|
155244
155271
|
onEvent: function onEvent(event) {
|
|
155245
155272
|
var _INTG_AD_ADM_FALLBACK2;
|
|
155246
155273
|
var requestId = (_INTG_AD_ADM_FALLBACK2 = INTG_AD_ADM_FALLBACK_RID_MAP[params.options.adGroupId]) != null ? _INTG_AD_ADM_FALLBACK2 : "";
|
|
@@ -155342,7 +155369,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155342
155369
|
options = params.options;
|
|
155343
155370
|
var adGroupId = options.adGroupId;
|
|
155344
155371
|
var referrer = getReferrer();
|
|
155345
|
-
var unregisterCallbacks =
|
|
155372
|
+
var unregisterCallbacks = import_native_modules18.INTERNAL__appBridgeHandler.invokeAppBridgeMethod("showTossAdOrAdmob", {
|
|
155346
155373
|
spaceUnitId: adGroupId,
|
|
155347
155374
|
referrer: referrer,
|
|
155348
155375
|
sessionId: sessionId
|
|
@@ -155389,23 +155416,23 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155389
155416
|
});
|
|
155390
155417
|
return unregisterCallbacks;
|
|
155391
155418
|
}
|
|
155392
|
-
_showFullScreenAd.isSupported =
|
|
155393
|
-
var
|
|
155394
|
-
var
|
|
155419
|
+
_showFullScreenAd.isSupported = import_native_modules18.GoogleAdMob.showAppsInTossAdMob.isSupported;
|
|
155420
|
+
var import_native_modules19 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
155421
|
+
var import_react_native32 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
155395
155422
|
function tossAdEventLog(_x4) {
|
|
155396
155423
|
return _tossAdEventLog.apply(this, arguments);
|
|
155397
155424
|
}
|
|
155398
155425
|
function _tossAdEventLog() {
|
|
155399
155426
|
_tossAdEventLog = _asyncToGenerator(function* (params) {
|
|
155400
155427
|
var referrer = getReferrer();
|
|
155401
|
-
var appName =
|
|
155428
|
+
var appName = import_react_native32.Granite.appName;
|
|
155402
155429
|
var eventLogParams = Object.assign({}, params, {
|
|
155403
155430
|
params: Object.assign({}, params.params, {
|
|
155404
155431
|
referrer: referrer,
|
|
155405
155432
|
app_name: appName
|
|
155406
155433
|
})
|
|
155407
155434
|
});
|
|
155408
|
-
return
|
|
155435
|
+
return import_native_modules19.INTERNAL__module.tossCoreEventLog(eventLogParams);
|
|
155409
155436
|
});
|
|
155410
155437
|
return _tossAdEventLog.apply(this, arguments);
|
|
155411
155438
|
}
|
|
@@ -155615,7 +155642,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155615
155642
|
}, [emitter, insets]);
|
|
155616
155643
|
return emitter;
|
|
155617
155644
|
}
|
|
155618
|
-
var
|
|
155645
|
+
var import_react_native33 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
155619
155646
|
var import_tds_react_native13 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
155620
155647
|
var import_es_hangul5 = _$$_REQUIRE(_dependencyMap[14], "es-hangul");
|
|
155621
155648
|
var import_react25 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
@@ -155701,7 +155728,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155701
155728
|
var _useWebViewHistory = useWebViewHistory(),
|
|
155702
155729
|
hasHistory = _useWebViewHistory.hasHistory,
|
|
155703
155730
|
onNavigationStateChange = _useWebViewHistory.onNavigationStateChange;
|
|
155704
|
-
var _ref73 = (0,
|
|
155731
|
+
var _ref73 = (0, import_react_native33.useBackEventState)(),
|
|
155705
155732
|
webBackHandlersRef = _ref73.handlersRef,
|
|
155706
155733
|
hasWebBackEvent = _ref73.hasBackEvent,
|
|
155707
155734
|
addWebBackEventListener = _ref73.addEventListener,
|
|
@@ -155737,7 +155764,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155737
155764
|
logging.closePopupCtaClick(isConfirmed);
|
|
155738
155765
|
if (isConfirmed) {
|
|
155739
155766
|
captureExitLog(Date.now());
|
|
155740
|
-
(0,
|
|
155767
|
+
(0, import_react_native33.closeView)();
|
|
155741
155768
|
}
|
|
155742
155769
|
}
|
|
155743
155770
|
}), [captureExitLog, global2.brandDisplayName, hasHistory, hasWebBackEvent, webBackHandlersRef, logging, openConfirm, webViewRef]);
|
|
@@ -155781,8 +155808,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155781
155808
|
});
|
|
155782
155809
|
};
|
|
155783
155810
|
}
|
|
155784
|
-
var
|
|
155785
|
-
var
|
|
155811
|
+
var import_native_modules20 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
155812
|
+
var import_react_native34 = _$$_REQUIRE(_dependencyMap[11], "react-native");
|
|
155786
155813
|
var FontA11yCategory = {
|
|
155787
155814
|
Large: "Large",
|
|
155788
155815
|
xLarge: "xLarge",
|
|
@@ -155918,23 +155945,23 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155918
155945
|
pureSafeArea = _ref76.pureSafeArea,
|
|
155919
155946
|
safeArea = _ref76.safeArea,
|
|
155920
155947
|
safeAreaBottomTransparency = _ref76.safeAreaBottomTransparency;
|
|
155921
|
-
var platform = (0,
|
|
155922
|
-
var appVersion = (0,
|
|
155923
|
-
var _ref77 = (0,
|
|
155948
|
+
var platform = (0, import_native_modules20.getPlatformOS)();
|
|
155949
|
+
var appVersion = (0, import_native_modules20.getTossAppVersion)();
|
|
155950
|
+
var _ref77 = (0, import_react_native34.useWindowDimensions)(),
|
|
155924
155951
|
fontScale = _ref77.fontScale;
|
|
155925
155952
|
var platformString = platform === "ios" ? "iPhone" : "Android phone";
|
|
155926
155953
|
var fontA11y = mapFontScaleToCategory(fontScale, platform);
|
|
155927
155954
|
var normalizedFontScale = convertToAndroidStyleScale(fontScale, platform);
|
|
155928
155955
|
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
155956
|
}
|
|
155930
|
-
var
|
|
155931
|
-
var
|
|
155957
|
+
var import_native_modules21 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
155958
|
+
var import_react_native35 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
155932
155959
|
var import_react26 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
155933
155960
|
function _useGeolocation(_ref78) {
|
|
155934
155961
|
var accuracy = _ref78.accuracy,
|
|
155935
155962
|
distanceInterval = _ref78.distanceInterval,
|
|
155936
155963
|
timeInterval = _ref78.timeInterval;
|
|
155937
|
-
var isVisible = (0,
|
|
155964
|
+
var isVisible = (0, import_react_native35.useVisibility)();
|
|
155938
155965
|
var _ref79 = (0, import_react26.useState)(null),
|
|
155939
155966
|
_ref80 = _slicedToArray(_ref79, 2),
|
|
155940
155967
|
location = _ref80[0],
|
|
@@ -155943,7 +155970,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155943
155970
|
if (!isVisible) {
|
|
155944
155971
|
return;
|
|
155945
155972
|
}
|
|
155946
|
-
return (0,
|
|
155973
|
+
return (0, import_native_modules21.startUpdateLocation)({
|
|
155947
155974
|
options: {
|
|
155948
155975
|
accuracy: accuracy,
|
|
155949
155976
|
distanceInterval: distanceInterval,
|
|
@@ -155955,11 +155982,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155955
155982
|
}, [accuracy, distanceInterval, timeInterval, isVisible]);
|
|
155956
155983
|
return location;
|
|
155957
155984
|
}
|
|
155958
|
-
var
|
|
155985
|
+
var import_react_native36 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
155959
155986
|
var import_react27 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
155960
155987
|
function _useWaitForReturnNavigator() {
|
|
155961
155988
|
var callbacks = (0, import_react27.useRef)([]).current;
|
|
155962
|
-
var navigation = (0,
|
|
155989
|
+
var navigation = (0, import_react_native36.useNavigation)();
|
|
155963
155990
|
var startNavigating = (0, import_react27.useCallback)(function (route, params) {
|
|
155964
155991
|
return new Promise(function (resolve) {
|
|
155965
155992
|
callbacks.push(resolve);
|
|
@@ -155974,7 +156001,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155974
156001
|
callbacks.splice(0, callbacks.length);
|
|
155975
156002
|
}
|
|
155976
156003
|
}, [callbacks]);
|
|
155977
|
-
(0,
|
|
156004
|
+
(0, import_react_native36.useVisibilityChange)(handleVisibilityChange);
|
|
155978
156005
|
return startNavigating;
|
|
155979
156006
|
}
|
|
155980
156007
|
function _useTopNavigation() {
|
|
@@ -155986,8 +156013,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155986
156013
|
removeAccessoryButton: removeNavigationRightButton
|
|
155987
156014
|
};
|
|
155988
156015
|
}
|
|
155989
|
-
var
|
|
155990
|
-
var
|
|
156016
|
+
var import_native_modules22 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
156017
|
+
var import_react_native37 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
155991
156018
|
var import_tds_react_native14 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
155992
156019
|
function useHandleWebViewProcessDidTerminate(webViewRef) {
|
|
155993
156020
|
var toast = (0, import_tds_react_native14.useToast)();
|
|
@@ -156016,18 +156043,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156016
156043
|
log_name: logName,
|
|
156017
156044
|
log_type: "debug",
|
|
156018
156045
|
params: Object.assign({}, params, {
|
|
156019
|
-
app_name:
|
|
156046
|
+
app_name: import_react_native37.Granite.appName,
|
|
156020
156047
|
deployment_id: global2.deploymentId
|
|
156021
156048
|
})
|
|
156022
156049
|
};
|
|
156023
|
-
if ((0,
|
|
156024
|
-
|
|
156050
|
+
if ((0, import_native_modules22.getOperationalEnvironment)() === "toss") {
|
|
156051
|
+
import_native_modules22.INTERNAL__module.tossCoreEventLog(event);
|
|
156025
156052
|
} else {
|
|
156026
156053
|
console.log("[webViewDebugLog]", event);
|
|
156027
156054
|
}
|
|
156028
156055
|
}
|
|
156029
|
-
var
|
|
156030
|
-
var
|
|
156056
|
+
var import_native_modules23 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
156057
|
+
var import_react_native38 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
156031
156058
|
var extractDateFromUUIDv7 = function extractDateFromUUIDv7(uuid) {
|
|
156032
156059
|
var timestampHex = uuid.split("-").join("").slice(0, 12);
|
|
156033
156060
|
var timestamp = Number.parseInt(timestampHex, 16);
|
|
@@ -156049,7 +156076,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156049
156076
|
};
|
|
156050
156077
|
var getReferrer2 = function getReferrer2() {
|
|
156051
156078
|
try {
|
|
156052
|
-
var referrer = new URL((0,
|
|
156079
|
+
var referrer = new URL((0, import_react_native38.getSchemeUri)());
|
|
156053
156080
|
return referrer.searchParams.get("referrer");
|
|
156054
156081
|
} catch (_unused7) {
|
|
156055
156082
|
return "";
|
|
@@ -156069,9 +156096,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156069
156096
|
deployment_timestamp: extractDateFromUUIDv7(_env.getDeploymentId()).getTime()
|
|
156070
156097
|
}
|
|
156071
156098
|
};
|
|
156072
|
-
return (0,
|
|
156099
|
+
return (0, import_native_modules23.eventLog)(log);
|
|
156073
156100
|
};
|
|
156074
|
-
var
|
|
156101
|
+
var import_jsx_runtime19 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
156075
156102
|
var operationalEnvironment = appsInTossConstantBridges.getOperationalEnvironment();
|
|
156076
156103
|
var TYPES = ["partner", "external", "game"];
|
|
156077
156104
|
var WEBVIEW_TYPES = {
|
|
@@ -156081,7 +156108,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156081
156108
|
};
|
|
156082
156109
|
function mergeSchemeQueryParamsInto(url) {
|
|
156083
156110
|
var baseUrl = new URL(url);
|
|
156084
|
-
var schemeUrl = new URL((0,
|
|
156111
|
+
var schemeUrl = new URL((0, import_react_native39.getSchemeUri)());
|
|
156085
156112
|
baseUrl.pathname = schemeUrl.pathname;
|
|
156086
156113
|
for (var _ref81 of schemeUrl.searchParams.entries()) {
|
|
156087
156114
|
var _ref82 = _slicedToArray(_ref81, 2);
|
|
@@ -156096,7 +156123,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156096
156123
|
var devUrl = `http://${local.host}:${local.port}`;
|
|
156097
156124
|
return mergeSchemeQueryParamsInto(devUrl);
|
|
156098
156125
|
}
|
|
156099
|
-
var _import_native_module =
|
|
156126
|
+
var _import_native_module = import_native_modules24.AppsInTossModule.getWebBundleURL({}),
|
|
156100
156127
|
rawUrl = _import_native_module.url;
|
|
156101
156128
|
var url = mergeSchemeQueryParamsInto(rawUrl);
|
|
156102
156129
|
var deploymentId = _env.getDeploymentId();
|
|
@@ -156150,7 +156177,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156150
156177
|
var onEvent = _ref88.onEvent,
|
|
156151
156178
|
onError = _ref88.onError,
|
|
156152
156179
|
options = _ref88.options;
|
|
156153
|
-
return
|
|
156180
|
+
return import_native_modules24.appsInTossEvent.addEventListener("updateLocationEvent", {
|
|
156154
156181
|
onEvent: onEvent,
|
|
156155
156182
|
onError: onError,
|
|
156156
156183
|
options: options
|
|
@@ -156167,19 +156194,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156167
156194
|
var onEvent = _ref90.onEvent,
|
|
156168
156195
|
onError = _ref90.onError,
|
|
156169
156196
|
options = _ref90.options;
|
|
156170
|
-
return
|
|
156197
|
+
return import_native_modules24.appsInTossEvent.addEventListener("appBridgeCallbackEvent", {
|
|
156171
156198
|
onEvent: onEvent,
|
|
156172
156199
|
onError: onError,
|
|
156173
156200
|
options: options
|
|
156174
156201
|
});
|
|
156175
156202
|
},
|
|
156176
|
-
loadAppsInTossAdMob:
|
|
156177
|
-
showAppsInTossAdMob:
|
|
156203
|
+
loadAppsInTossAdMob: import_native_modules24.GoogleAdMob.loadAppsInTossAdMob,
|
|
156204
|
+
showAppsInTossAdMob: import_native_modules24.GoogleAdMob.showAppsInTossAdMob,
|
|
156178
156205
|
loadFullScreenAd: loadFullScreenAdForWeb,
|
|
156179
156206
|
showFullScreenAd: _showFullScreenAd,
|
|
156180
156207
|
fetchTossAd: fetchTossAd,
|
|
156181
|
-
iapCreateOneTimePurchaseOrder:
|
|
156182
|
-
requestOneTimePurchase:
|
|
156208
|
+
iapCreateOneTimePurchaseOrder: import_native_modules24.IAP.createOneTimePurchaseOrder,
|
|
156209
|
+
requestOneTimePurchase: import_native_modules24.requestOneTimePurchase
|
|
156183
156210
|
}),
|
|
156184
156211
|
constantHandlerMap: Object.assign({}, appsInTossConstantBridges, {
|
|
156185
156212
|
getSafeAreaInsets: function getSafeAreaInsets() {
|
|
@@ -156198,17 +156225,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156198
156225
|
return value;
|
|
156199
156226
|
}];
|
|
156200
156227
|
})), {
|
|
156201
|
-
getServerTime_isSupported:
|
|
156202
|
-
loadAppsInTossAdMob_isSupported:
|
|
156203
|
-
showAppsInTossAdMob_isSupported:
|
|
156204
|
-
isAppsInTossAdMobLoaded_isSupported:
|
|
156228
|
+
getServerTime_isSupported: import_native_modules24.getServerTime.isSupported,
|
|
156229
|
+
loadAppsInTossAdMob_isSupported: import_native_modules24.GoogleAdMob.loadAppsInTossAdMob.isSupported,
|
|
156230
|
+
showAppsInTossAdMob_isSupported: import_native_modules24.GoogleAdMob.showAppsInTossAdMob.isSupported,
|
|
156231
|
+
isAppsInTossAdMobLoaded_isSupported: import_native_modules24.GoogleAdMob.isAppsInTossAdMobLoaded.isSupported,
|
|
156205
156232
|
loadFullScreenAd_isSupported: loadFullScreenAdForWeb.isSupported,
|
|
156206
156233
|
showFullScreenAd_isSupported: _showFullScreenAd.isSupported,
|
|
156207
156234
|
fetchTossAd_isSupported: fetchTossAd.isSupported,
|
|
156208
156235
|
getDeploymentId: _env.getDeploymentId
|
|
156209
156236
|
}),
|
|
156210
156237
|
asyncHandlerMap: Object.assign({}, appsInTossAsyncBridges, {
|
|
156211
|
-
getServerTime:
|
|
156238
|
+
getServerTime: import_native_modules24.getServerTime,
|
|
156212
156239
|
setIosSwipeGestureEnabled: function setIosSwipeGestureEnabled(options) {
|
|
156213
156240
|
setAllowsBackForwardNavigationGestures(options.isEnabled);
|
|
156214
156241
|
return appsInTossAsyncBridges.setIosSwipeGestureEnabled(options);
|
|
@@ -156240,17 +156267,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156240
156267
|
fetchContacts: appsInTossAsyncBridges.fetchContacts,
|
|
156241
156268
|
getCurrentLocation: appsInTossAsyncBridges.getCurrentLocation,
|
|
156242
156269
|
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:
|
|
156270
|
+
getStorageItem: import_native_modules24.Storage.getItem,
|
|
156271
|
+
setStorageItem: import_native_modules24.Storage.setItem,
|
|
156272
|
+
removeStorageItem: import_native_modules24.Storage.removeItem,
|
|
156273
|
+
clearItems: import_native_modules24.Storage.clearItems,
|
|
156274
|
+
iapGetProductItemList: import_native_modules24.IAP.getProductItemList,
|
|
156275
|
+
iapCreateOneTimePurchaseOrder: import_native_modules24.iapCreateOneTimePurchaseOrder,
|
|
156276
|
+
processProductGrant: import_native_modules24.processProductGrant,
|
|
156277
|
+
getPendingOrders: import_native_modules24.IAP.getPendingOrders,
|
|
156278
|
+
getCompletedOrRefundedOrders: import_native_modules24.IAP.getCompletedOrRefundedOrders,
|
|
156279
|
+
completeProductGrant: import_native_modules24.IAP.completeProductGrant,
|
|
156280
|
+
isAppsInTossAdMobLoaded: import_native_modules24.GoogleAdMob.isAppsInTossAdMobLoaded,
|
|
156254
156281
|
tossAdEventLog: tossAdEventLog,
|
|
156255
156282
|
memoryDebugLog: webViewMemoryDebugLog
|
|
156256
156283
|
})
|
|
@@ -156282,14 +156309,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156282
156309
|
webBackHandler.handleWebBack();
|
|
156283
156310
|
return true;
|
|
156284
156311
|
};
|
|
156285
|
-
|
|
156312
|
+
import_react_native40.BackHandler.addEventListener("hardwareBackPress", callback);
|
|
156286
156313
|
return function () {
|
|
156287
|
-
return
|
|
156314
|
+
return import_react_native40.BackHandler.removeEventListener("hardwareBackPress", callback);
|
|
156288
156315
|
};
|
|
156289
156316
|
}, [webBackHandler]);
|
|
156290
156317
|
var globalScripts = useGlobalScripts();
|
|
156291
156318
|
var handleWebViewProcessDidTerminate = useHandleWebViewProcessDidTerminate(webViewRef);
|
|
156292
|
-
return (0,
|
|
156319
|
+
return (0, import_jsx_runtime19.jsx)(BaseWebView, Object.assign({
|
|
156293
156320
|
ref: refs
|
|
156294
156321
|
}, props, headerPropForExternalWebView, {
|
|
156295
156322
|
source: {
|
|
@@ -156307,14 +156334,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156307
156334
|
props.onNavigationStateChange == null ? void 0 : props.onNavigationStateChange(event);
|
|
156308
156335
|
webBackHandler.onNavigationStateChange(event);
|
|
156309
156336
|
},
|
|
156310
|
-
userAgent:
|
|
156337
|
+
userAgent: import_react_native40.Platform.OS === "ios" ? userAgent : void 0,
|
|
156311
156338
|
sharedCookiesEnabled: true,
|
|
156312
156339
|
webviewDebuggingEnabled: webViewDebuggingEnabled,
|
|
156313
156340
|
thirdPartyCookiesEnabled: true,
|
|
156314
156341
|
onMessage: handler.onMessage,
|
|
156315
156342
|
injectedJavaScript: globalScripts.afterLoad,
|
|
156316
156343
|
injectedJavaScriptBeforeContentLoaded: mergeScripts(handler.injectedJavaScript, globalScripts.beforeLoad),
|
|
156317
|
-
decelerationRate:
|
|
156344
|
+
decelerationRate: import_react_native40.Platform.OS === "ios" ? 1 : void 0,
|
|
156318
156345
|
allowsBackForwardNavigationGestures: allowsBackForwardNavigationGestures,
|
|
156319
156346
|
onShouldStartLoadWithRequest: function onShouldStartLoadWithRequest(event) {
|
|
156320
156347
|
try {
|
|
@@ -156323,7 +156350,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156323
156350
|
return true;
|
|
156324
156351
|
} else {
|
|
156325
156352
|
var _convertIntentURL;
|
|
156326
|
-
|
|
156353
|
+
import_react_native40.Linking.openURL((_convertIntentURL = convertIntentURL(url2)) != null ? _convertIntentURL : url2.href);
|
|
156327
156354
|
return false;
|
|
156328
156355
|
}
|
|
156329
156356
|
} catch (error) {
|