@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
package/dist/prebuilt/dev.ios.js
CHANGED
|
@@ -153181,7 +153181,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153181
153181
|
var _default = exports.default = _framework.AppsInToss.registerApp(AppContainer, {
|
|
153182
153182
|
context: _context.context
|
|
153183
153183
|
});
|
|
153184
|
-
},1255,[1256,
|
|
153184
|
+
},1255,[1256,2630,9],"react-native/src/_app.tsx");
|
|
153185
153185
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
153186
153186
|
"use strict";
|
|
153187
153187
|
|
|
@@ -153282,10 +153282,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153282
153282
|
module.exports = __toCommonJS(src_exports);
|
|
153283
153283
|
var import_analytics2 = _$$_REQUIRE(_dependencyMap[7], "@apps-in-toss/analytics");
|
|
153284
153284
|
var import_analytics = _$$_REQUIRE(_dependencyMap[7], "@apps-in-toss/analytics");
|
|
153285
|
-
var
|
|
153286
|
-
var
|
|
153285
|
+
var import_native_modules14 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
153286
|
+
var import_react_native24 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
153287
153287
|
var import_tds_react_native10 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
153288
|
-
var
|
|
153288
|
+
var import_react_native25 = _$$_REQUIRE(_dependencyMap[11], "react-native");
|
|
153289
153289
|
var import_native_modules2 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
153290
153290
|
var import_react_native4 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
153291
153291
|
var import_react3 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
@@ -153293,6 +153293,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153293
153293
|
getDeploymentId: function getDeploymentId() {
|
|
153294
153294
|
var _global$__appsInToss;
|
|
153295
153295
|
return __DEV__ ? "local" : (_global$__appsInToss = global.__appsInToss) == null ? void 0 : _global$__appsInToss.deploymentId;
|
|
153296
|
+
},
|
|
153297
|
+
getWebViewType: function getWebViewType() {
|
|
153298
|
+
return global.__appsInToss.webViewType;
|
|
153299
|
+
},
|
|
153300
|
+
getAppName: function getAppName() {
|
|
153301
|
+
return global.__granite.app.name;
|
|
153296
153302
|
}
|
|
153297
153303
|
};
|
|
153298
153304
|
var import_native_modules = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
@@ -153464,9 +153470,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153464
153470
|
}
|
|
153465
153471
|
return context;
|
|
153466
153472
|
}
|
|
153467
|
-
var
|
|
153473
|
+
var import_native_modules13 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
153468
153474
|
var import_react17 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
153469
|
-
var
|
|
153475
|
+
var import_react_native23 = _$$_REQUIRE(_dependencyMap[11], "react-native");
|
|
153470
153476
|
var import_native_modules6 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
153471
153477
|
var import_react_native10 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
153472
153478
|
var import_tds_react_native4 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
@@ -154089,8 +154095,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154089
154095
|
};
|
|
154090
154096
|
}, [backEventContext, navigation, closeConfirm, logging, captureExitLog]);
|
|
154091
154097
|
}
|
|
154092
|
-
var
|
|
154093
|
-
var
|
|
154098
|
+
var import_native_modules12 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
154099
|
+
var import_react_native21 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
154094
154100
|
var import_tds_react_native8 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
154095
154101
|
var import_private4 = _$$_REQUIRE(_dependencyMap[15], "@toss/tds-react-native/private");
|
|
154096
154102
|
var import_react15 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
@@ -154289,18 +154295,40 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154289
154295
|
});
|
|
154290
154296
|
}
|
|
154291
154297
|
var import_native_modules10 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
154292
|
-
var import_react_native19 = _$$_REQUIRE(_dependencyMap[
|
|
154298
|
+
var import_react_native19 = _$$_REQUIRE(_dependencyMap[11], "react-native");
|
|
154293
154299
|
var import_jsx_runtime7 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
154294
|
-
function
|
|
154300
|
+
function HomeShortcutMenu() {
|
|
154301
|
+
var isSandbox = (0, import_native_modules10.getOperationalEnvironment)() === "sandbox";
|
|
154295
154302
|
var globals = getAppsInTossGlobals();
|
|
154296
|
-
if (
|
|
154303
|
+
if (isSandbox) {
|
|
154297
154304
|
return null;
|
|
154298
154305
|
}
|
|
154299
154306
|
return (0, import_jsx_runtime7.jsx)(Menu, {
|
|
154307
|
+
title: "\uD648 \uD654\uBA74\uC5D0 \uCD94\uAC00",
|
|
154308
|
+
iconURL: "https://static.toss.im/icons/png/4x/icon-plus-circle-mono.png",
|
|
154309
|
+
onPress: function onPress() {
|
|
154310
|
+
import_react_native19.NativeModules.AppsInTossModule.addMiniAppShortcut({
|
|
154311
|
+
title: globals.brandDisplayName,
|
|
154312
|
+
appName: global.__granite.app.name,
|
|
154313
|
+
iconUrl: globals.brandIcon,
|
|
154314
|
+
guideUrl: "https://service.toss.im/app-mini-home/shortcut"
|
|
154315
|
+
});
|
|
154316
|
+
}
|
|
154317
|
+
});
|
|
154318
|
+
}
|
|
154319
|
+
var import_native_modules11 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
154320
|
+
var import_react_native20 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
154321
|
+
var import_jsx_runtime8 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
154322
|
+
function PermissionsMenu() {
|
|
154323
|
+
var globals = getAppsInTossGlobals();
|
|
154324
|
+
if ((0, import_native_modules11.getOperationalEnvironment)() === "sandbox") {
|
|
154325
|
+
return null;
|
|
154326
|
+
}
|
|
154327
|
+
return (0, import_jsx_runtime8.jsx)(Menu, {
|
|
154300
154328
|
title: "\uAD8C\uD55C \uC124\uC815",
|
|
154301
154329
|
iconURL: "https://static.toss.im/icons/png/4x/icon-setting-mono.png",
|
|
154302
154330
|
onPress: function onPress() {
|
|
154303
|
-
return (0,
|
|
154331
|
+
return (0, import_react_native20.openURL)(`servicetoss://apps-in-toss-menu/permissions?appName=${import_react_native20.Granite.appName}&displayAppName=${globals.brandDisplayName}`);
|
|
154304
154332
|
}
|
|
154305
154333
|
});
|
|
154306
154334
|
}
|
|
@@ -154310,7 +154338,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154310
154338
|
}
|
|
154311
154339
|
return value;
|
|
154312
154340
|
}
|
|
154313
|
-
var
|
|
154341
|
+
var import_jsx_runtime9 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
154314
154342
|
var APP_BRIDGE_METHOD_NAME = "getMiniAppsSupportContact";
|
|
154315
154343
|
var MIN_VERSION = {
|
|
154316
154344
|
BOTTOM_SHEET: {
|
|
@@ -154321,6 +154349,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154321
154349
|
android: "5.230.0",
|
|
154322
154350
|
ios: "5.230.0"
|
|
154323
154351
|
},
|
|
154352
|
+
HOME_SHORTCUT_MENU: {
|
|
154353
|
+
android: "5.246.0",
|
|
154354
|
+
ios: "5.246.0"
|
|
154355
|
+
},
|
|
154324
154356
|
PERMISSIONS_MENU: {
|
|
154325
154357
|
android: "5.238.0",
|
|
154326
154358
|
ios: "5.237.0"
|
|
@@ -154337,8 +154369,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154337
154369
|
var logging = useMoreButtonBottomSheetLogging();
|
|
154338
154370
|
var overlay = (0, import_private4.useOverlay)();
|
|
154339
154371
|
var title = ensureValue(globals.brandDisplayName, "displayName");
|
|
154340
|
-
var
|
|
154341
|
-
var
|
|
154372
|
+
var isHomeShortcutSupported = (0, import_native_modules12.isMinVersionSupported)(MIN_VERSION.HOME_SHORTCUT_MENU);
|
|
154373
|
+
var isBottomSheetSupported = (0, import_native_modules12.isMinVersionSupported)(MIN_VERSION.BOTTOM_SHEET);
|
|
154374
|
+
var isShareListMenuSupported = (0, import_native_modules12.isMinVersionSupported)(MIN_VERSION.SHARE_LIST_MENU);
|
|
154342
154375
|
var _ref38 = (0, import_react15.useState)(false),
|
|
154343
154376
|
_ref39 = _slicedToArray(_ref38, 2),
|
|
154344
154377
|
isPermissionsMenuSupported = _ref39[0],
|
|
@@ -154347,7 +154380,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154347
154380
|
if (!isBottomSheetSupported) {
|
|
154348
154381
|
return;
|
|
154349
154382
|
}
|
|
154350
|
-
|
|
154383
|
+
import_native_modules12.INTERNAL__appBridgeHandler.invokeAppBridgeMethod(APP_BRIDGE_METHOD_NAME, {}, {
|
|
154351
154384
|
onSuccess: function onSuccess(_ref40) {
|
|
154352
154385
|
var items = _ref40.items;
|
|
154353
154386
|
return setItemList(items);
|
|
@@ -154356,8 +154389,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154356
154389
|
return console.error("\uBA54\uB274 \uBAA9\uB85D\uC744 \uAC00\uC838\uC624\uB294 \uB370 \uC2E4\uD328\uD588\uC5B4\uC694:", error);
|
|
154357
154390
|
}
|
|
154358
154391
|
});
|
|
154359
|
-
if ((0,
|
|
154360
|
-
|
|
154392
|
+
if ((0, import_native_modules12.isMinVersionSupported)(MIN_VERSION.PERMISSIONS_MENU)) {
|
|
154393
|
+
import_native_modules12.INTERNAL__appBridgeHandler.invokeAppBridgeMethod("getAllPermission", {}, {
|
|
154361
154394
|
onSuccess: function onSuccess(permissions) {
|
|
154362
154395
|
return setIsPermissionsMenuSupported(permissions.length > 0);
|
|
154363
154396
|
},
|
|
@@ -154385,10 +154418,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154385
154418
|
logging.close();
|
|
154386
154419
|
close();
|
|
154387
154420
|
};
|
|
154388
|
-
return (0,
|
|
154389
|
-
children: (0,
|
|
154390
|
-
header: (0,
|
|
154391
|
-
title: (0,
|
|
154421
|
+
return (0, import_jsx_runtime9.jsx)(BottomSheetImpressionArea, {
|
|
154422
|
+
children: (0, import_jsx_runtime9.jsx)(import_tds_react_native8.BottomSheet.Root, {
|
|
154423
|
+
header: (0, import_jsx_runtime9.jsx)(import_tds_react_native8.ListHeader, {
|
|
154424
|
+
title: (0, import_jsx_runtime9.jsx)(import_tds_react_native8.ListHeader.TitleParagraph, {
|
|
154392
154425
|
color: adaptive.grey800,
|
|
154393
154426
|
fontWeight: "bold",
|
|
154394
154427
|
typography: "t5",
|
|
@@ -154396,7 +154429,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154396
154429
|
})
|
|
154397
154430
|
}),
|
|
154398
154431
|
open: isOpen,
|
|
154399
|
-
cta: (0,
|
|
154432
|
+
cta: (0, import_jsx_runtime9.jsx)(import_tds_react_native8.BottomSheet.CTA, {
|
|
154400
154433
|
size: "large",
|
|
154401
154434
|
type: "dark",
|
|
154402
154435
|
style: "weak",
|
|
@@ -154407,17 +154440,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154407
154440
|
}),
|
|
154408
154441
|
onClose: handleClose,
|
|
154409
154442
|
onExited: exit,
|
|
154410
|
-
children: (0,
|
|
154443
|
+
children: (0, import_jsx_runtime9.jsxs)(import_tds_react_native8.List, {
|
|
154411
154444
|
rowSeparator: "none",
|
|
154412
154445
|
children: [itemList.map(function (item) {
|
|
154413
|
-
return (0,
|
|
154446
|
+
return (0, import_jsx_runtime9.jsx)(Menu, {
|
|
154414
154447
|
title: item.contactItemName,
|
|
154415
154448
|
iconURL: item.contactIconUrl,
|
|
154416
154449
|
onPress: function onPress() {
|
|
154417
|
-
return (0,
|
|
154450
|
+
return (0, import_react_native21.openURL)(item.contactUri);
|
|
154418
154451
|
}
|
|
154419
154452
|
}, item.contactItemName);
|
|
154420
|
-
}), isShareListMenuSupported && (0,
|
|
154453
|
+
}), isHomeShortcutSupported && (0, import_jsx_runtime9.jsx)(HomeShortcutMenu, {}), isShareListMenuSupported && (0, import_jsx_runtime9.jsx)(AppShareListMenu, {}), isPermissionsMenuSupported && (0, import_jsx_runtime9.jsx)(PermissionsMenu, {})]
|
|
154421
154454
|
})
|
|
154422
154455
|
})
|
|
154423
154456
|
});
|
|
@@ -154437,7 +154470,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154437
154470
|
(0, import_react15.useEffect)(function () {
|
|
154438
154471
|
logging.show();
|
|
154439
154472
|
}, [logging]);
|
|
154440
|
-
return (0,
|
|
154473
|
+
return (0, import_jsx_runtime9.jsx)(import_jsx_runtime9.Fragment, {
|
|
154441
154474
|
children: children
|
|
154442
154475
|
});
|
|
154443
154476
|
}
|
|
@@ -154451,7 +154484,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154451
154484
|
};
|
|
154452
154485
|
}
|
|
154453
154486
|
var import_react16 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
154454
|
-
var
|
|
154487
|
+
var import_jsx_runtime10 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
154455
154488
|
function NavigationBarImpressionArea(_ref44) {
|
|
154456
154489
|
var children = _ref44.children,
|
|
154457
154490
|
withHomeButton = _ref44.withHomeButton;
|
|
@@ -154465,11 +154498,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154465
154498
|
hasLogged.current = true;
|
|
154466
154499
|
}
|
|
154467
154500
|
}, [logging, withHomeButton]);
|
|
154468
|
-
return (0,
|
|
154501
|
+
return (0, import_jsx_runtime10.jsx)(import_jsx_runtime10.Fragment, {
|
|
154469
154502
|
children: children
|
|
154470
154503
|
});
|
|
154471
154504
|
}
|
|
154472
|
-
var
|
|
154505
|
+
var import_jsx_runtime11 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
154473
154506
|
function DefaultNavigationBar() {
|
|
154474
154507
|
var _parsedNavigationBar$, _parsedNavigationBar$2;
|
|
154475
154508
|
var globals = getAppsInTossGlobals();
|
|
@@ -154482,9 +154515,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154482
154515
|
navigationRightButton = _useNavigationBarCont.navigationRightButton;
|
|
154483
154516
|
var navigationEvent = useNavigationEvent();
|
|
154484
154517
|
useHardwareBackPress(navigationEvent.handleBack);
|
|
154485
|
-
return (0,
|
|
154518
|
+
return (0, import_jsx_runtime11.jsx)(NavigationBarImpressionArea, {
|
|
154486
154519
|
withHomeButton: withHomeButton,
|
|
154487
|
-
children: (0,
|
|
154520
|
+
children: (0, import_jsx_runtime11.jsx)(import_private5.TopNavigation, {
|
|
154488
154521
|
title: globals.brandDisplayName,
|
|
154489
154522
|
icon: toIcon(globals.brandIcon),
|
|
154490
154523
|
onPressDots: openMoreButtonBottomSheet,
|
|
@@ -154494,9 +154527,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154494
154527
|
withHome: withHomeButton,
|
|
154495
154528
|
fixedRightButton: navigationRightButton,
|
|
154496
154529
|
leftVisible: withBackButton,
|
|
154497
|
-
children: (0,
|
|
154530
|
+
children: (0, import_jsx_runtime11.jsx)(import_private5.NavigationLeft, {
|
|
154498
154531
|
visible: withBackButton,
|
|
154499
|
-
children: (0,
|
|
154532
|
+
children: (0, import_jsx_runtime11.jsx)(import_private5.NavigationBackButton, {
|
|
154500
154533
|
onPress: navigationEvent.handleBack,
|
|
154501
154534
|
canGoBack: false
|
|
154502
154535
|
})
|
|
@@ -154507,8 +154540,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154507
154540
|
var import_react_native_safe_area_context = _$$_REQUIRE(_dependencyMap[16], "@granite-js/native/react-native-safe-area-context");
|
|
154508
154541
|
var import_tds_react_native9 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
154509
154542
|
var import_private6 = _$$_REQUIRE(_dependencyMap[15], "@toss/tds-react-native/private");
|
|
154510
|
-
var
|
|
154511
|
-
var
|
|
154543
|
+
var import_react_native22 = _$$_REQUIRE(_dependencyMap[11], "react-native");
|
|
154544
|
+
var import_jsx_runtime12 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
154512
154545
|
function GameNavigationBar() {
|
|
154513
154546
|
var safeAreaTop = (0, import_private6.useSafeAreaTop)();
|
|
154514
154547
|
var _useMoreButtonBottomS2 = useMoreButtonBottomSheet(),
|
|
@@ -154519,15 +154552,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154519
154552
|
var _ref45 = (0, import_react_native_safe_area_context.useSafeAreaInsets)(),
|
|
154520
154553
|
safeAreaRight = _ref45.right;
|
|
154521
154554
|
useHardwareBackPress(navigationEvent.handleBack);
|
|
154522
|
-
return (0,
|
|
154523
|
-
children: [(0,
|
|
154555
|
+
return (0, import_jsx_runtime12.jsxs)(import_jsx_runtime12.Fragment, {
|
|
154556
|
+
children: [(0, import_jsx_runtime12.jsx)(import_tds_react_native9.PageNavbar, {
|
|
154524
154557
|
preference: {
|
|
154525
154558
|
type: "none"
|
|
154526
154559
|
}
|
|
154527
|
-
}), (0,
|
|
154560
|
+
}), (0, import_jsx_runtime12.jsx)(import_react_native22.View, {
|
|
154528
154561
|
style: {
|
|
154529
154562
|
width: "100%",
|
|
154530
|
-
height:
|
|
154563
|
+
height: import_react_native22.Platform.OS === "ios" ? 44 : 54,
|
|
154531
154564
|
flexDirection: "row",
|
|
154532
154565
|
alignItems: "center",
|
|
154533
154566
|
justifyContent: "flex-end",
|
|
@@ -154537,7 +154570,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154537
154570
|
paddingRight: safeAreaRight + 10
|
|
154538
154571
|
},
|
|
154539
154572
|
pointerEvents: "box-none",
|
|
154540
|
-
children: (0,
|
|
154573
|
+
children: (0, import_jsx_runtime12.jsx)(import_private6.NavigationRightContent, {
|
|
154541
154574
|
fixedRightButton: navigationRightButton,
|
|
154542
154575
|
onPressDots: openMoreButtonBottomSheet,
|
|
154543
154576
|
onPressClose: navigationEvent.handleCloseButtonClick,
|
|
@@ -154554,18 +154587,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154554
154587
|
__reExport(bridge_entry_exports, _$$_REQUIRE(_dependencyMap[17], "@apps-in-toss/native-modules/async-bridges"));
|
|
154555
154588
|
__reExport(bridge_entry_exports, _$$_REQUIRE(_dependencyMap[18], "@apps-in-toss/native-modules/constant-bridges"));
|
|
154556
154589
|
__reExport(bridge_entry_exports, _$$_REQUIRE(_dependencyMap[19], "@apps-in-toss/native-modules/event-bridges"));
|
|
154557
|
-
var
|
|
154590
|
+
var import_jsx_runtime13 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
154558
154591
|
function RNAppContainer(_ref46) {
|
|
154559
154592
|
var children = _ref46.children;
|
|
154560
154593
|
var global2 = getAppsInTossGlobals();
|
|
154561
154594
|
switch (global2.appType) {
|
|
154562
154595
|
case "game":
|
|
154563
|
-
return (0,
|
|
154596
|
+
return (0, import_jsx_runtime13.jsx)(GameAppContainer, {
|
|
154564
154597
|
children: children
|
|
154565
154598
|
});
|
|
154566
154599
|
case "general":
|
|
154567
154600
|
default:
|
|
154568
|
-
return (0,
|
|
154601
|
+
return (0, import_jsx_runtime13.jsx)(GeneralAppContainer, {
|
|
154569
154602
|
children: children
|
|
154570
154603
|
});
|
|
154571
154604
|
}
|
|
@@ -154573,45 +154606,45 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154573
154606
|
function GameAppContainer(_ref47) {
|
|
154574
154607
|
var children = _ref47.children;
|
|
154575
154608
|
(0, import_react17.useEffect)(function () {
|
|
154576
|
-
if (
|
|
154577
|
-
(0,
|
|
154609
|
+
if (import_react_native23.Platform.OS === "ios") {
|
|
154610
|
+
(0, import_native_modules13.setIosSwipeGestureEnabled)({
|
|
154578
154611
|
isEnabled: false
|
|
154579
154612
|
});
|
|
154580
154613
|
return function () {
|
|
154581
|
-
(0,
|
|
154614
|
+
(0, import_native_modules13.setIosSwipeGestureEnabled)({
|
|
154582
154615
|
isEnabled: true
|
|
154583
154616
|
});
|
|
154584
154617
|
};
|
|
154585
154618
|
}
|
|
154586
154619
|
return;
|
|
154587
154620
|
}, []);
|
|
154588
|
-
return (0,
|
|
154589
|
-
children: [(0,
|
|
154621
|
+
return (0, import_jsx_runtime13.jsxs)(import_jsx_runtime13.Fragment, {
|
|
154622
|
+
children: [(0, import_jsx_runtime13.jsx)(RNNavigationBar.Game, {}), (0, bridge_entry_exports.getOperationalEnvironment)() === "toss" ? (0, import_jsx_runtime13.jsx)(GameInitializer, {
|
|
154590
154623
|
children: children
|
|
154591
154624
|
}) : children]
|
|
154592
154625
|
});
|
|
154593
154626
|
}
|
|
154594
154627
|
function GeneralAppContainer(_ref48) {
|
|
154595
154628
|
var children = _ref48.children;
|
|
154596
|
-
return (0,
|
|
154597
|
-
children: [(0,
|
|
154629
|
+
return (0, import_jsx_runtime13.jsxs)(import_jsx_runtime13.Fragment, {
|
|
154630
|
+
children: [(0, import_jsx_runtime13.jsx)(RNNavigationBar.Default, {}), children]
|
|
154598
154631
|
});
|
|
154599
154632
|
}
|
|
154600
|
-
var
|
|
154633
|
+
var import_jsx_runtime14 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
154601
154634
|
function AppsInTossContainer(Container, _ref49) {
|
|
154602
154635
|
var children = _ref49.children,
|
|
154603
154636
|
initialProps = _objectWithoutProperties(_ref49, _excluded);
|
|
154604
|
-
if (!(0,
|
|
154637
|
+
if (!(0, import_native_modules14.isMinVersionSupported)({
|
|
154605
154638
|
android: "5.220.0",
|
|
154606
154639
|
ios: "5.221.0"
|
|
154607
154640
|
})) {
|
|
154608
|
-
return (0,
|
|
154609
|
-
children: [(0,
|
|
154641
|
+
return (0, import_jsx_runtime14.jsxs)(import_jsx_runtime14.Fragment, {
|
|
154642
|
+
children: [(0, import_jsx_runtime14.jsx)(AppEvent.Entry, {}), (0, import_jsx_runtime14.jsx)(AppEvent.System, Object.assign({}, initialProps)), (0, import_jsx_runtime14.jsx)(AppUpdate, {})]
|
|
154610
154643
|
});
|
|
154611
154644
|
}
|
|
154612
|
-
return (0,
|
|
154613
|
-
children: [(0,
|
|
154614
|
-
children: (0,
|
|
154645
|
+
return (0, import_jsx_runtime14.jsxs)(import_jsx_runtime14.Fragment, {
|
|
154646
|
+
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, {
|
|
154647
|
+
children: (0, import_jsx_runtime14.jsx)(import_tds_react_native10.TDSProvider, {
|
|
154615
154648
|
colorPreference: "light",
|
|
154616
154649
|
token: {
|
|
154617
154650
|
color: {
|
|
@@ -154627,19 +154660,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154627
154660
|
var context = _ref50.context,
|
|
154628
154661
|
analytics = _ref50.analytics;
|
|
154629
154662
|
var appName = getAppName();
|
|
154630
|
-
var isRegistered =
|
|
154663
|
+
var isRegistered = import_react_native25.AppRegistry.getAppKeys().includes(appName);
|
|
154631
154664
|
if (!isRegistered) {
|
|
154632
154665
|
var _analytics$debug;
|
|
154633
154666
|
import_analytics.Analytics.init({
|
|
154634
154667
|
logger: function logger(params) {
|
|
154635
|
-
return void (0,
|
|
154668
|
+
return void (0, import_native_modules14.eventLog)(params);
|
|
154636
154669
|
},
|
|
154637
154670
|
debug: (_analytics$debug = analytics == null ? void 0 : analytics.debug) != null ? _analytics$debug : __DEV__
|
|
154638
154671
|
});
|
|
154639
|
-
var App =
|
|
154672
|
+
var App = import_react_native24.Granite.registerApp(AppsInTossContainer.bind(null, container), {
|
|
154640
154673
|
appName: appName,
|
|
154641
154674
|
context: context,
|
|
154642
|
-
setIosSwipeGestureEnabled:
|
|
154675
|
+
setIosSwipeGestureEnabled: import_native_modules14.setIosSwipeGestureEnabled,
|
|
154643
154676
|
router: {
|
|
154644
154677
|
screenContainer: AppsInTossScreenContainer,
|
|
154645
154678
|
defaultScreenOption: {
|
|
@@ -154654,9 +154687,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154654
154687
|
function AppsInTossScreenContainer(_ref51) {
|
|
154655
154688
|
var children = _ref51.children;
|
|
154656
154689
|
var isRNApp = getAppsInTossGlobals().webViewType == null;
|
|
154657
|
-
return (0,
|
|
154658
|
-
children: (0,
|
|
154659
|
-
children: isRNApp ? (0,
|
|
154690
|
+
return (0, import_jsx_runtime14.jsx)(NavigationBarContextProvider, {
|
|
154691
|
+
children: (0, import_jsx_runtime14.jsx)(import_analytics.Analytics.Screen, {
|
|
154692
|
+
children: isRNApp ? (0, import_jsx_runtime14.jsx)(RNAppContainer, {
|
|
154660
154693
|
children: children
|
|
154661
154694
|
}) : children
|
|
154662
154695
|
})
|
|
@@ -154673,28 +154706,29 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154673
154706
|
var _AppsInToss = {
|
|
154674
154707
|
registerApp: registerApp
|
|
154675
154708
|
};
|
|
154676
|
-
var
|
|
154709
|
+
var import_native_modules24 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
154677
154710
|
var appsInTossAsyncBridges = __toESM(_$$_REQUIRE(_dependencyMap[17], "@apps-in-toss/native-modules/async-bridges"), 1);
|
|
154678
154711
|
var appsInTossConstantBridges = __toESM(_$$_REQUIRE(_dependencyMap[18], "@apps-in-toss/native-modules/constant-bridges"), 1);
|
|
154679
154712
|
var appsInTossEventBridges = __toESM(_$$_REQUIRE(_dependencyMap[19], "@apps-in-toss/native-modules/event-bridges"), 1);
|
|
154713
|
+
var import_user_scripts = _$$_REQUIRE(_dependencyMap[20], "@apps-in-toss/user-scripts");
|
|
154680
154714
|
var import_react_native_safe_area_context4 = _$$_REQUIRE(_dependencyMap[16], "@granite-js/native/react-native-safe-area-context");
|
|
154681
|
-
var
|
|
154715
|
+
var import_react_native39 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
154682
154716
|
var import_tds_react_native15 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
154683
154717
|
var import_private9 = _$$_REQUIRE(_dependencyMap[15], "@toss/tds-react-native/private");
|
|
154684
154718
|
var import_react28 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
154685
|
-
var
|
|
154686
|
-
var
|
|
154687
|
-
var import_react_native_webview = _$$_REQUIRE(_dependencyMap[
|
|
154719
|
+
var import_react_native40 = _$$_REQUIRE(_dependencyMap[11], "react-native");
|
|
154720
|
+
var import_native_modules15 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
154721
|
+
var import_react_native_webview = _$$_REQUIRE(_dependencyMap[21], "@granite-js/native/react-native-webview");
|
|
154688
154722
|
var import_react19 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
154689
|
-
var
|
|
154723
|
+
var import_react_native28 = _$$_REQUIRE(_dependencyMap[11], "react-native");
|
|
154690
154724
|
var import_react_native_safe_area_context2 = _$$_REQUIRE(_dependencyMap[16], "@granite-js/native/react-native-safe-area-context");
|
|
154691
|
-
var
|
|
154725
|
+
var import_react_native26 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
154692
154726
|
var import_tds_react_native11 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
154693
154727
|
var import_private7 = _$$_REQUIRE(_dependencyMap[15], "@toss/tds-react-native/private");
|
|
154694
154728
|
var import_es_hangul3 = _$$_REQUIRE(_dependencyMap[14], "es-hangul");
|
|
154695
154729
|
var import_react18 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
154696
|
-
var
|
|
154697
|
-
var
|
|
154730
|
+
var import_react_native27 = _$$_REQUIRE(_dependencyMap[11], "react-native");
|
|
154731
|
+
var import_jsx_runtime15 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
154698
154732
|
function GameWebviewNavigationBar() {
|
|
154699
154733
|
var safeAreaTop = (0, import_private7.useSafeAreaTop)();
|
|
154700
154734
|
var _ref52 = (0, import_tds_react_native11.useDialog)(),
|
|
@@ -154721,18 +154755,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154721
154755
|
logging.closePopupCtaClick(isConfirmed);
|
|
154722
154756
|
if (isConfirmed) {
|
|
154723
154757
|
captureExitLog(Date.now());
|
|
154724
|
-
(0,
|
|
154758
|
+
(0, import_react_native26.closeView)();
|
|
154725
154759
|
}
|
|
154726
154760
|
}), [captureExitLog, global2.brandDisplayName, logging, openConfirm]);
|
|
154727
|
-
return (0,
|
|
154728
|
-
children: [(0,
|
|
154761
|
+
return (0, import_jsx_runtime15.jsxs)(import_jsx_runtime15.Fragment, {
|
|
154762
|
+
children: [(0, import_jsx_runtime15.jsx)(import_tds_react_native11.PageNavbar, {
|
|
154729
154763
|
preference: {
|
|
154730
154764
|
type: "none"
|
|
154731
154765
|
}
|
|
154732
|
-
}), (0,
|
|
154766
|
+
}), (0, import_jsx_runtime15.jsx)(import_react_native27.View, {
|
|
154733
154767
|
style: {
|
|
154734
154768
|
width: "100%",
|
|
154735
|
-
height:
|
|
154769
|
+
height: import_react_native27.Platform.OS === "ios" ? 44 : 54,
|
|
154736
154770
|
flexDirection: "row",
|
|
154737
154771
|
alignItems: "center",
|
|
154738
154772
|
justifyContent: "flex-end",
|
|
@@ -154742,7 +154776,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154742
154776
|
paddingRight: safeAreaRight + 10
|
|
154743
154777
|
},
|
|
154744
154778
|
pointerEvents: "box-none",
|
|
154745
|
-
children: (0,
|
|
154779
|
+
children: (0, import_jsx_runtime15.jsx)(import_private7.NavigationRightContent, {
|
|
154746
154780
|
fixedRightButton: navigationRightButton,
|
|
154747
154781
|
onPressDots: openMoreButtonBottomSheet,
|
|
154748
154782
|
onPressClose: function onPressClose() {
|
|
@@ -154753,39 +154787,39 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154753
154787
|
})]
|
|
154754
154788
|
});
|
|
154755
154789
|
}
|
|
154756
|
-
var
|
|
154790
|
+
var import_jsx_runtime16 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
154757
154791
|
var GameWebView = (0, import_react19.forwardRef)(function GameWebView2(props, ref) {
|
|
154758
154792
|
(0, import_react19.useEffect)(function () {
|
|
154759
|
-
if (
|
|
154760
|
-
(0,
|
|
154793
|
+
if (import_react_native28.Platform.OS === "ios") {
|
|
154794
|
+
(0, import_native_modules15.setIosSwipeGestureEnabled)({
|
|
154761
154795
|
isEnabled: false
|
|
154762
154796
|
});
|
|
154763
154797
|
return function () {
|
|
154764
|
-
(0,
|
|
154798
|
+
(0, import_native_modules15.setIosSwipeGestureEnabled)({
|
|
154765
154799
|
isEnabled: true
|
|
154766
154800
|
});
|
|
154767
154801
|
};
|
|
154768
154802
|
}
|
|
154769
154803
|
return;
|
|
154770
154804
|
}, []);
|
|
154771
|
-
return (0,
|
|
154772
|
-
children: [(0,
|
|
154773
|
-
children: (0,
|
|
154805
|
+
return (0, import_jsx_runtime16.jsxs)(import_jsx_runtime16.Fragment, {
|
|
154806
|
+
children: [(0, import_jsx_runtime16.jsx)(GameWebviewNavigationBar, {}), (0, import_native_modules15.getOperationalEnvironment)() === "toss" ? (0, import_jsx_runtime16.jsx)(GameInitializer, {
|
|
154807
|
+
children: (0, import_jsx_runtime16.jsx)(import_react_native_webview.WebView, Object.assign({
|
|
154774
154808
|
ref: ref
|
|
154775
154809
|
}, props))
|
|
154776
|
-
}) : (0,
|
|
154810
|
+
}) : (0, import_jsx_runtime16.jsx)(import_react_native_webview.WebView, Object.assign({
|
|
154777
154811
|
ref: ref
|
|
154778
154812
|
}, props))]
|
|
154779
154813
|
});
|
|
154780
154814
|
});
|
|
154781
|
-
var import_react_native_webview2 = _$$_REQUIRE(_dependencyMap[
|
|
154815
|
+
var import_react_native_webview2 = _$$_REQUIRE(_dependencyMap[21], "@granite-js/native/react-native-webview");
|
|
154782
154816
|
var import_react21 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
154783
|
-
var
|
|
154817
|
+
var import_react_native29 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
154784
154818
|
var import_tds_react_native12 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
154785
154819
|
var import_private8 = _$$_REQUIRE(_dependencyMap[15], "@toss/tds-react-native/private");
|
|
154786
154820
|
var import_es_hangul4 = _$$_REQUIRE(_dependencyMap[14], "es-hangul");
|
|
154787
154821
|
var import_react20 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
154788
|
-
var
|
|
154822
|
+
var import_jsx_runtime17 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
154789
154823
|
function PartnerWebviewNavigationBar(_ref55) {
|
|
154790
154824
|
var _parsedNavigationBar$3, _parsedNavigationBar$4;
|
|
154791
154825
|
var onBackButtonClick = _ref55.onBackButtonClick,
|
|
@@ -154815,12 +154849,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154815
154849
|
logging.closePopupCtaClick(isConfirmed);
|
|
154816
154850
|
if (isConfirmed) {
|
|
154817
154851
|
captureExitLog(Date.now());
|
|
154818
|
-
(0,
|
|
154852
|
+
(0, import_react_native29.closeView)();
|
|
154819
154853
|
}
|
|
154820
154854
|
}), [captureExitLog, globals.brandDisplayName, logging, openConfirm]);
|
|
154821
|
-
return (0,
|
|
154855
|
+
return (0, import_jsx_runtime17.jsx)(NavigationBarImpressionArea, {
|
|
154822
154856
|
withHomeButton: withHomeButton,
|
|
154823
|
-
children: (0,
|
|
154857
|
+
children: (0, import_jsx_runtime17.jsx)(import_private8.TopNavigation, {
|
|
154824
154858
|
title: globals.brandDisplayName,
|
|
154825
154859
|
icon: toIcon(globals.brandIcon),
|
|
154826
154860
|
onPressDots: openMoreButtonBottomSheet,
|
|
@@ -154830,9 +154864,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154830
154864
|
withHome: withHomeButton,
|
|
154831
154865
|
fixedRightButton: navigationRightButton,
|
|
154832
154866
|
leftVisible: withBackButton,
|
|
154833
|
-
children: (0,
|
|
154867
|
+
children: (0, import_jsx_runtime17.jsx)(import_private8.NavigationLeft, {
|
|
154834
154868
|
visible: withBackButton,
|
|
154835
|
-
children: (0,
|
|
154869
|
+
children: (0, import_jsx_runtime17.jsx)(import_private8.NavigationBackButton, {
|
|
154836
154870
|
onPress: onBackButtonClick,
|
|
154837
154871
|
canGoBack: false
|
|
154838
154872
|
})
|
|
@@ -154840,16 +154874,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154840
154874
|
})
|
|
154841
154875
|
});
|
|
154842
154876
|
}
|
|
154843
|
-
var
|
|
154877
|
+
var import_jsx_runtime18 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
154844
154878
|
var PartnerWebView = (0, import_react21.forwardRef)(function PartnerWebViewScreen(_ref58, ref) {
|
|
154845
154879
|
var onBackButtonClick = _ref58.onBackButtonClick,
|
|
154846
154880
|
onHomeButtonClick = _ref58.onHomeButtonClick,
|
|
154847
154881
|
webViewProps = _objectWithoutProperties(_ref58, _excluded2);
|
|
154848
|
-
return (0,
|
|
154849
|
-
children: [(0,
|
|
154882
|
+
return (0, import_jsx_runtime18.jsxs)(import_jsx_runtime18.Fragment, {
|
|
154883
|
+
children: [(0, import_jsx_runtime18.jsx)(PartnerWebviewNavigationBar, {
|
|
154850
154884
|
onBackButtonClick: onBackButtonClick,
|
|
154851
154885
|
onHomeButtonClick: onHomeButtonClick
|
|
154852
|
-
}), (0,
|
|
154886
|
+
}), (0, import_jsx_runtime18.jsx)(import_react_native_webview2.WebView, Object.assign({
|
|
154853
154887
|
ref: ref
|
|
154854
154888
|
}, webViewProps, {
|
|
154855
154889
|
style: {
|
|
@@ -154876,7 +154910,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154876
154910
|
}
|
|
154877
154911
|
return `${scheme}://${url.hostname}${url.pathname}${url.search}`;
|
|
154878
154912
|
}
|
|
154879
|
-
var
|
|
154913
|
+
var import_native_modules16 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
154880
154914
|
function noop() {}
|
|
154881
154915
|
function generateSessionId() {
|
|
154882
154916
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function (c) {
|
|
@@ -154889,7 +154923,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154889
154923
|
var ANDROID_FETCH_TOSS_AD_SUPPORTED_VERSION = "5.241.0";
|
|
154890
154924
|
var IOS_FETCH_TOSS_AD_SUPPORTED_VERSION = "5.241.0";
|
|
154891
154925
|
var UNSUPPORTED_ERROR_MESSAGE = "This feature is not supported in the current environment";
|
|
154892
|
-
var ENVIRONMENT = (0,
|
|
154926
|
+
var ENVIRONMENT = (0, import_native_modules16.getOperationalEnvironment)();
|
|
154893
154927
|
function fetchTossAd(params) {
|
|
154894
154928
|
if (!fetchTossAd.isSupported()) {
|
|
154895
154929
|
params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE));
|
|
@@ -154899,7 +154933,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154899
154933
|
_onError3 = params.onError,
|
|
154900
154934
|
options = params.options;
|
|
154901
154935
|
var adGroupId = options.adGroupId;
|
|
154902
|
-
var unregisterCallbacks =
|
|
154936
|
+
var unregisterCallbacks = import_native_modules16.INTERNAL__appBridgeHandler.invokeAppBridgeMethod("fetchTossAd", {
|
|
154903
154937
|
spaceUnitId: adGroupId,
|
|
154904
154938
|
sessionId: sessionId,
|
|
154905
154939
|
sdkId: options.sdkId,
|
|
@@ -154918,37 +154952,37 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154918
154952
|
if (ENVIRONMENT !== "toss") {
|
|
154919
154953
|
return false;
|
|
154920
154954
|
}
|
|
154921
|
-
return (0,
|
|
154955
|
+
return (0, import_native_modules16.isMinVersionSupported)({
|
|
154922
154956
|
android: ANDROID_FETCH_TOSS_AD_SUPPORTED_VERSION,
|
|
154923
154957
|
ios: IOS_FETCH_TOSS_AD_SUPPORTED_VERSION
|
|
154924
154958
|
});
|
|
154925
154959
|
};
|
|
154926
|
-
var
|
|
154960
|
+
var import_native_modules18 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
154927
154961
|
function generateRequestId() {
|
|
154928
154962
|
var timestamp = Date.now().toString(36).toUpperCase();
|
|
154929
154963
|
var random = Math.random().toString(36).substring(2, 7).toUpperCase();
|
|
154930
154964
|
return `ait-${timestamp}${random}`;
|
|
154931
154965
|
}
|
|
154932
|
-
var
|
|
154966
|
+
var import_react_native30 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
154933
154967
|
function getReferrer() {
|
|
154934
154968
|
try {
|
|
154935
|
-
return new URL((0,
|
|
154969
|
+
return new URL((0, import_react_native30.getSchemeUri)()).searchParams.get("referrer");
|
|
154936
154970
|
} catch (_unused4) {
|
|
154937
154971
|
return null;
|
|
154938
154972
|
}
|
|
154939
154973
|
}
|
|
154940
|
-
var
|
|
154941
|
-
var
|
|
154974
|
+
var import_native_modules17 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
154975
|
+
var import_react_native31 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
154942
154976
|
function getIsDev() {
|
|
154943
154977
|
try {
|
|
154944
|
-
return new URL((0,
|
|
154978
|
+
return new URL((0, import_react_native31.getSchemeUri)()).searchParams.get("isDev") === "true";
|
|
154945
154979
|
} catch (_unused5) {
|
|
154946
154980
|
return false;
|
|
154947
154981
|
}
|
|
154948
154982
|
}
|
|
154949
|
-
var OPERATIONAL_ENVIRONMENT = (0,
|
|
154950
|
-
var OS = (0,
|
|
154951
|
-
var APP_VER = (0,
|
|
154983
|
+
var OPERATIONAL_ENVIRONMENT = (0, import_native_modules17.getOperationalEnvironment)();
|
|
154984
|
+
var OS = (0, import_native_modules17.getPlatformOS)();
|
|
154985
|
+
var APP_VER = (0, import_native_modules17.getTossAppVersion)();
|
|
154952
154986
|
var ALPHA_EVENT_TRACKER_HTTP_ENDPOINT = "https://alpha-trillion.toss.im/trk/sdk-mediation/event";
|
|
154953
154987
|
var LIVE_EVENT_TRACKER_HTTP_ENDPOINT = "https://trillion.toss.im/trk/sdk-mediation/event";
|
|
154954
154988
|
function getPostEventTrackingUrl() {
|
|
@@ -154980,19 +155014,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154980
155014
|
var UNSUPPORTED_ERROR_MESSAGE2 = "This feature is not supported in the current environment";
|
|
154981
155015
|
var INTG_AD_ADM_FALLBACK_RID_MAP = {};
|
|
154982
155016
|
function integratedAdIsSupported() {
|
|
154983
|
-
return (0,
|
|
155017
|
+
return (0, import_native_modules18.isMinVersionSupported)({
|
|
154984
155018
|
android: ANDROID_INTEGRATED_AD_SUPPORTED_VERSION,
|
|
154985
155019
|
ios: IOS_INTEGRATED_AD_SUPPORTED_VERSION
|
|
154986
155020
|
});
|
|
154987
155021
|
}
|
|
154988
155022
|
function generateLoadFullScreenAd(sdkId) {
|
|
154989
155023
|
var fn = function fn(params) {
|
|
154990
|
-
if (!
|
|
155024
|
+
if (!import_native_modules18.GoogleAdMob.loadAppsInTossAdMob.isSupported()) {
|
|
154991
155025
|
params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE2));
|
|
154992
155026
|
return noop;
|
|
154993
155027
|
}
|
|
154994
155028
|
if (!integratedAdIsSupported()) {
|
|
154995
|
-
return
|
|
155029
|
+
return import_native_modules18.GoogleAdMob.loadAppsInTossAdMob(Object.assign({}, params, {
|
|
154996
155030
|
onEvent: function onEvent(event) {
|
|
154997
155031
|
if (event.type === "loaded") {
|
|
154998
155032
|
var _event$data$responseI, _event$data$responseI2;
|
|
@@ -155033,7 +155067,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155033
155067
|
options = params.options;
|
|
155034
155068
|
var adGroupId = options.adGroupId;
|
|
155035
155069
|
var referrer = getReferrer();
|
|
155036
|
-
var unregisterCallbacks =
|
|
155070
|
+
var unregisterCallbacks = import_native_modules18.INTERNAL__appBridgeHandler.invokeAppBridgeMethod("loadTossAdOrAdmob", {
|
|
155037
155071
|
spaceUnitId: adGroupId,
|
|
155038
155072
|
referrer: referrer,
|
|
155039
155073
|
sessionId: sessionId,
|
|
@@ -155050,18 +155084,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155050
155084
|
});
|
|
155051
155085
|
return unregisterCallbacks;
|
|
155052
155086
|
};
|
|
155053
|
-
fn.isSupported =
|
|
155087
|
+
fn.isSupported = import_native_modules18.GoogleAdMob.loadAppsInTossAdMob.isSupported;
|
|
155054
155088
|
return fn;
|
|
155055
155089
|
}
|
|
155056
155090
|
var _loadFullScreenAd = generateLoadFullScreenAd("107");
|
|
155057
155091
|
var loadFullScreenAdForWeb = generateLoadFullScreenAd("107");
|
|
155058
155092
|
function _showFullScreenAd(params) {
|
|
155059
|
-
if (!
|
|
155093
|
+
if (!import_native_modules18.GoogleAdMob.showAppsInTossAdMob.isSupported()) {
|
|
155060
155094
|
params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE2));
|
|
155061
155095
|
return noop;
|
|
155062
155096
|
}
|
|
155063
155097
|
if (!integratedAdIsSupported()) {
|
|
155064
|
-
return
|
|
155098
|
+
return import_native_modules18.GoogleAdMob.showAppsInTossAdMob(Object.assign({}, params, {
|
|
155065
155099
|
onEvent: function onEvent(event) {
|
|
155066
155100
|
var _INTG_AD_ADM_FALLBACK2;
|
|
155067
155101
|
var requestId = (_INTG_AD_ADM_FALLBACK2 = INTG_AD_ADM_FALLBACK_RID_MAP[params.options.adGroupId]) != null ? _INTG_AD_ADM_FALLBACK2 : "";
|
|
@@ -155163,7 +155197,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155163
155197
|
options = params.options;
|
|
155164
155198
|
var adGroupId = options.adGroupId;
|
|
155165
155199
|
var referrer = getReferrer();
|
|
155166
|
-
var unregisterCallbacks =
|
|
155200
|
+
var unregisterCallbacks = import_native_modules18.INTERNAL__appBridgeHandler.invokeAppBridgeMethod("showTossAdOrAdmob", {
|
|
155167
155201
|
spaceUnitId: adGroupId,
|
|
155168
155202
|
referrer: referrer,
|
|
155169
155203
|
sessionId: sessionId
|
|
@@ -155210,23 +155244,23 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155210
155244
|
});
|
|
155211
155245
|
return unregisterCallbacks;
|
|
155212
155246
|
}
|
|
155213
|
-
_showFullScreenAd.isSupported =
|
|
155214
|
-
var
|
|
155215
|
-
var
|
|
155247
|
+
_showFullScreenAd.isSupported = import_native_modules18.GoogleAdMob.showAppsInTossAdMob.isSupported;
|
|
155248
|
+
var import_native_modules19 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
155249
|
+
var import_react_native32 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
155216
155250
|
function tossAdEventLog(_x4) {
|
|
155217
155251
|
return _tossAdEventLog.apply(this, arguments);
|
|
155218
155252
|
}
|
|
155219
155253
|
function _tossAdEventLog() {
|
|
155220
155254
|
_tossAdEventLog = _asyncToGenerator(function* (params) {
|
|
155221
155255
|
var referrer = getReferrer();
|
|
155222
|
-
var appName =
|
|
155256
|
+
var appName = import_react_native32.Granite.appName;
|
|
155223
155257
|
var eventLogParams = Object.assign({}, params, {
|
|
155224
155258
|
params: Object.assign({}, params.params, {
|
|
155225
155259
|
referrer: referrer,
|
|
155226
155260
|
app_name: appName
|
|
155227
155261
|
})
|
|
155228
155262
|
});
|
|
155229
|
-
return
|
|
155263
|
+
return import_native_modules19.INTERNAL__module.tossCoreEventLog(eventLogParams);
|
|
155230
155264
|
});
|
|
155231
155265
|
return _tossAdEventLog.apply(this, arguments);
|
|
155232
155266
|
}
|
|
@@ -155436,7 +155470,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155436
155470
|
}, [emitter, insets]);
|
|
155437
155471
|
return emitter;
|
|
155438
155472
|
}
|
|
155439
|
-
var
|
|
155473
|
+
var import_react_native33 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
155440
155474
|
var import_tds_react_native13 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
155441
155475
|
var import_es_hangul5 = _$$_REQUIRE(_dependencyMap[14], "es-hangul");
|
|
155442
155476
|
var import_react25 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
@@ -155522,7 +155556,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155522
155556
|
var _useWebViewHistory = useWebViewHistory(),
|
|
155523
155557
|
hasHistory = _useWebViewHistory.hasHistory,
|
|
155524
155558
|
onNavigationStateChange = _useWebViewHistory.onNavigationStateChange;
|
|
155525
|
-
var _ref73 = (0,
|
|
155559
|
+
var _ref73 = (0, import_react_native33.useBackEventState)(),
|
|
155526
155560
|
webBackHandlersRef = _ref73.handlersRef,
|
|
155527
155561
|
hasWebBackEvent = _ref73.hasBackEvent,
|
|
155528
155562
|
addWebBackEventListener = _ref73.addEventListener,
|
|
@@ -155558,7 +155592,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155558
155592
|
logging.closePopupCtaClick(isConfirmed);
|
|
155559
155593
|
if (isConfirmed) {
|
|
155560
155594
|
captureExitLog(Date.now());
|
|
155561
|
-
(0,
|
|
155595
|
+
(0, import_react_native33.closeView)();
|
|
155562
155596
|
}
|
|
155563
155597
|
}
|
|
155564
155598
|
}), [captureExitLog, global2.brandDisplayName, hasHistory, hasWebBackEvent, webBackHandlersRef, logging, openConfirm, webViewRef]);
|
|
@@ -155602,8 +155636,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155602
155636
|
});
|
|
155603
155637
|
};
|
|
155604
155638
|
}
|
|
155605
|
-
var
|
|
155606
|
-
var
|
|
155639
|
+
var import_native_modules20 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
155640
|
+
var import_react_native34 = _$$_REQUIRE(_dependencyMap[11], "react-native");
|
|
155607
155641
|
var FontA11yCategory = {
|
|
155608
155642
|
Large: "Large",
|
|
155609
155643
|
xLarge: "xLarge",
|
|
@@ -155739,23 +155773,23 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155739
155773
|
pureSafeArea = _ref76.pureSafeArea,
|
|
155740
155774
|
safeArea = _ref76.safeArea,
|
|
155741
155775
|
safeAreaBottomTransparency = _ref76.safeAreaBottomTransparency;
|
|
155742
|
-
var platform = (0,
|
|
155743
|
-
var appVersion = (0,
|
|
155744
|
-
var _ref77 = (0,
|
|
155776
|
+
var platform = (0, import_native_modules20.getPlatformOS)();
|
|
155777
|
+
var appVersion = (0, import_native_modules20.getTossAppVersion)();
|
|
155778
|
+
var _ref77 = (0, import_react_native34.useWindowDimensions)(),
|
|
155745
155779
|
fontScale = _ref77.fontScale;
|
|
155746
155780
|
var platformString = platform === "ios" ? "iPhone" : "Android phone";
|
|
155747
155781
|
var fontA11y = mapFontScaleToCategory(fontScale, platform);
|
|
155748
155782
|
var normalizedFontScale = convertToAndroidStyleScale(fontScale, platform);
|
|
155749
155783
|
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(" ");
|
|
155750
155784
|
}
|
|
155751
|
-
var
|
|
155752
|
-
var
|
|
155785
|
+
var import_native_modules21 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
155786
|
+
var import_react_native35 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
155753
155787
|
var import_react26 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
155754
155788
|
function _useGeolocation(_ref78) {
|
|
155755
155789
|
var accuracy = _ref78.accuracy,
|
|
155756
155790
|
distanceInterval = _ref78.distanceInterval,
|
|
155757
155791
|
timeInterval = _ref78.timeInterval;
|
|
155758
|
-
var isVisible = (0,
|
|
155792
|
+
var isVisible = (0, import_react_native35.useVisibility)();
|
|
155759
155793
|
var _ref79 = (0, import_react26.useState)(null),
|
|
155760
155794
|
_ref80 = _slicedToArray(_ref79, 2),
|
|
155761
155795
|
location = _ref80[0],
|
|
@@ -155764,7 +155798,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155764
155798
|
if (!isVisible) {
|
|
155765
155799
|
return;
|
|
155766
155800
|
}
|
|
155767
|
-
return (0,
|
|
155801
|
+
return (0, import_native_modules21.startUpdateLocation)({
|
|
155768
155802
|
options: {
|
|
155769
155803
|
accuracy: accuracy,
|
|
155770
155804
|
distanceInterval: distanceInterval,
|
|
@@ -155776,11 +155810,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155776
155810
|
}, [accuracy, distanceInterval, timeInterval, isVisible]);
|
|
155777
155811
|
return location;
|
|
155778
155812
|
}
|
|
155779
|
-
var
|
|
155813
|
+
var import_react_native36 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
155780
155814
|
var import_react27 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
155781
155815
|
function _useWaitForReturnNavigator() {
|
|
155782
155816
|
var callbacks = (0, import_react27.useRef)([]).current;
|
|
155783
|
-
var navigation = (0,
|
|
155817
|
+
var navigation = (0, import_react_native36.useNavigation)();
|
|
155784
155818
|
var startNavigating = (0, import_react27.useCallback)(function (route, params) {
|
|
155785
155819
|
return new Promise(function (resolve) {
|
|
155786
155820
|
callbacks.push(resolve);
|
|
@@ -155795,7 +155829,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155795
155829
|
callbacks.splice(0, callbacks.length);
|
|
155796
155830
|
}
|
|
155797
155831
|
}, [callbacks]);
|
|
155798
|
-
(0,
|
|
155832
|
+
(0, import_react_native36.useVisibilityChange)(handleVisibilityChange);
|
|
155799
155833
|
return startNavigating;
|
|
155800
155834
|
}
|
|
155801
155835
|
function _useTopNavigation() {
|
|
@@ -155807,8 +155841,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155807
155841
|
removeAccessoryButton: removeNavigationRightButton
|
|
155808
155842
|
};
|
|
155809
155843
|
}
|
|
155810
|
-
var
|
|
155811
|
-
var
|
|
155844
|
+
var import_native_modules22 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
155845
|
+
var import_react_native37 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
155812
155846
|
var import_tds_react_native14 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
155813
155847
|
function useHandleWebViewProcessDidTerminate(webViewRef) {
|
|
155814
155848
|
var toast = (0, import_tds_react_native14.useToast)();
|
|
@@ -155837,18 +155871,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155837
155871
|
log_name: logName,
|
|
155838
155872
|
log_type: "debug",
|
|
155839
155873
|
params: Object.assign({}, params, {
|
|
155840
|
-
app_name:
|
|
155874
|
+
app_name: import_react_native37.Granite.appName,
|
|
155841
155875
|
deployment_id: global2.deploymentId
|
|
155842
155876
|
})
|
|
155843
155877
|
};
|
|
155844
|
-
if ((0,
|
|
155845
|
-
|
|
155878
|
+
if ((0, import_native_modules22.getOperationalEnvironment)() === "toss") {
|
|
155879
|
+
import_native_modules22.INTERNAL__module.tossCoreEventLog(event);
|
|
155846
155880
|
} else {
|
|
155847
155881
|
console.log("[webViewDebugLog]", event);
|
|
155848
155882
|
}
|
|
155849
155883
|
}
|
|
155850
|
-
var
|
|
155851
|
-
var
|
|
155884
|
+
var import_native_modules23 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
155885
|
+
var import_react_native38 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
155852
155886
|
var extractDateFromUUIDv7 = function extractDateFromUUIDv7(uuid) {
|
|
155853
155887
|
var timestampHex = uuid.split("-").join("").slice(0, 12);
|
|
155854
155888
|
var timestamp = Number.parseInt(timestampHex, 16);
|
|
@@ -155870,7 +155904,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155870
155904
|
};
|
|
155871
155905
|
var getReferrer2 = function getReferrer2() {
|
|
155872
155906
|
try {
|
|
155873
|
-
var referrer = new URL((0,
|
|
155907
|
+
var referrer = new URL((0, import_react_native38.getSchemeUri)());
|
|
155874
155908
|
return referrer.searchParams.get("referrer");
|
|
155875
155909
|
} catch (_unused7) {
|
|
155876
155910
|
return "";
|
|
@@ -155890,9 +155924,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155890
155924
|
deployment_timestamp: extractDateFromUUIDv7(_env.getDeploymentId()).getTime()
|
|
155891
155925
|
}
|
|
155892
155926
|
};
|
|
155893
|
-
return (0,
|
|
155927
|
+
return (0, import_native_modules23.eventLog)(log);
|
|
155894
155928
|
};
|
|
155895
|
-
var
|
|
155929
|
+
var import_jsx_runtime19 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
155896
155930
|
var operationalEnvironment = appsInTossConstantBridges.getOperationalEnvironment();
|
|
155897
155931
|
var TYPES = ["partner", "external", "game"];
|
|
155898
155932
|
var WEBVIEW_TYPES = {
|
|
@@ -155902,7 +155936,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155902
155936
|
};
|
|
155903
155937
|
function mergeSchemeQueryParamsInto(url) {
|
|
155904
155938
|
var baseUrl = new URL(url);
|
|
155905
|
-
var schemeUrl = new URL((0,
|
|
155939
|
+
var schemeUrl = new URL((0, import_react_native39.getSchemeUri)());
|
|
155906
155940
|
baseUrl.pathname = schemeUrl.pathname;
|
|
155907
155941
|
for (var _ref81 of schemeUrl.searchParams.entries()) {
|
|
155908
155942
|
var _ref82 = _slicedToArray(_ref81, 2);
|
|
@@ -155917,7 +155951,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155917
155951
|
var devUrl = `http://${local.host}:${local.port}`;
|
|
155918
155952
|
return mergeSchemeQueryParamsInto(devUrl);
|
|
155919
155953
|
}
|
|
155920
|
-
var _import_native_module =
|
|
155954
|
+
var _import_native_module = import_native_modules24.AppsInTossModule.getWebBundleURL({}),
|
|
155921
155955
|
rawUrl = _import_native_module.url;
|
|
155922
155956
|
var url = mergeSchemeQueryParamsInto(rawUrl);
|
|
155923
155957
|
var deploymentId = _env.getDeploymentId();
|
|
@@ -155971,7 +156005,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155971
156005
|
var onEvent = _ref88.onEvent,
|
|
155972
156006
|
onError = _ref88.onError,
|
|
155973
156007
|
options = _ref88.options;
|
|
155974
|
-
return
|
|
156008
|
+
return import_native_modules24.appsInTossEvent.addEventListener("updateLocationEvent", {
|
|
155975
156009
|
onEvent: onEvent,
|
|
155976
156010
|
onError: onError,
|
|
155977
156011
|
options: options
|
|
@@ -155988,19 +156022,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155988
156022
|
var onEvent = _ref90.onEvent,
|
|
155989
156023
|
onError = _ref90.onError,
|
|
155990
156024
|
options = _ref90.options;
|
|
155991
|
-
return
|
|
156025
|
+
return import_native_modules24.appsInTossEvent.addEventListener("appBridgeCallbackEvent", {
|
|
155992
156026
|
onEvent: onEvent,
|
|
155993
156027
|
onError: onError,
|
|
155994
156028
|
options: options
|
|
155995
156029
|
});
|
|
155996
156030
|
},
|
|
155997
|
-
loadAppsInTossAdMob:
|
|
155998
|
-
showAppsInTossAdMob:
|
|
156031
|
+
loadAppsInTossAdMob: import_native_modules24.GoogleAdMob.loadAppsInTossAdMob,
|
|
156032
|
+
showAppsInTossAdMob: import_native_modules24.GoogleAdMob.showAppsInTossAdMob,
|
|
155999
156033
|
loadFullScreenAd: loadFullScreenAdForWeb,
|
|
156000
156034
|
showFullScreenAd: _showFullScreenAd,
|
|
156001
156035
|
fetchTossAd: fetchTossAd,
|
|
156002
|
-
iapCreateOneTimePurchaseOrder:
|
|
156003
|
-
requestOneTimePurchase:
|
|
156036
|
+
iapCreateOneTimePurchaseOrder: import_native_modules24.IAP.createOneTimePurchaseOrder,
|
|
156037
|
+
requestOneTimePurchase: import_native_modules24.requestOneTimePurchase
|
|
156004
156038
|
}),
|
|
156005
156039
|
constantHandlerMap: Object.assign({}, appsInTossConstantBridges, {
|
|
156006
156040
|
getSafeAreaInsets: function getSafeAreaInsets() {
|
|
@@ -156019,17 +156053,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156019
156053
|
return value;
|
|
156020
156054
|
}];
|
|
156021
156055
|
})), {
|
|
156022
|
-
getServerTime_isSupported:
|
|
156023
|
-
loadAppsInTossAdMob_isSupported:
|
|
156024
|
-
showAppsInTossAdMob_isSupported:
|
|
156025
|
-
isAppsInTossAdMobLoaded_isSupported:
|
|
156056
|
+
getServerTime_isSupported: import_native_modules24.getServerTime.isSupported,
|
|
156057
|
+
loadAppsInTossAdMob_isSupported: import_native_modules24.GoogleAdMob.loadAppsInTossAdMob.isSupported,
|
|
156058
|
+
showAppsInTossAdMob_isSupported: import_native_modules24.GoogleAdMob.showAppsInTossAdMob.isSupported,
|
|
156059
|
+
isAppsInTossAdMobLoaded_isSupported: import_native_modules24.GoogleAdMob.isAppsInTossAdMobLoaded.isSupported,
|
|
156026
156060
|
loadFullScreenAd_isSupported: loadFullScreenAdForWeb.isSupported,
|
|
156027
156061
|
showFullScreenAd_isSupported: _showFullScreenAd.isSupported,
|
|
156028
156062
|
fetchTossAd_isSupported: fetchTossAd.isSupported,
|
|
156029
|
-
getDeploymentId: _env.getDeploymentId
|
|
156063
|
+
getDeploymentId: _env.getDeploymentId,
|
|
156064
|
+
getWebViewType: _env.getWebViewType,
|
|
156065
|
+
getAppName: _env.getAppName
|
|
156030
156066
|
}),
|
|
156031
156067
|
asyncHandlerMap: Object.assign({}, appsInTossAsyncBridges, {
|
|
156032
|
-
getServerTime:
|
|
156068
|
+
getServerTime: import_native_modules24.getServerTime,
|
|
156033
156069
|
setIosSwipeGestureEnabled: function setIosSwipeGestureEnabled(options) {
|
|
156034
156070
|
setAllowsBackForwardNavigationGestures(options.isEnabled);
|
|
156035
156071
|
return appsInTossAsyncBridges.setIosSwipeGestureEnabled(options);
|
|
@@ -156061,19 +156097,30 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156061
156097
|
fetchContacts: appsInTossAsyncBridges.fetchContacts,
|
|
156062
156098
|
getCurrentLocation: appsInTossAsyncBridges.getCurrentLocation,
|
|
156063
156099
|
openCamera: appsInTossAsyncBridges.openCamera,
|
|
156064
|
-
getStorageItem:
|
|
156065
|
-
setStorageItem:
|
|
156066
|
-
removeStorageItem:
|
|
156067
|
-
clearItems:
|
|
156068
|
-
iapGetProductItemList:
|
|
156069
|
-
iapCreateOneTimePurchaseOrder:
|
|
156070
|
-
processProductGrant:
|
|
156071
|
-
getPendingOrders:
|
|
156072
|
-
getCompletedOrRefundedOrders:
|
|
156073
|
-
completeProductGrant:
|
|
156074
|
-
isAppsInTossAdMobLoaded:
|
|
156100
|
+
getStorageItem: import_native_modules24.Storage.getItem,
|
|
156101
|
+
setStorageItem: import_native_modules24.Storage.setItem,
|
|
156102
|
+
removeStorageItem: import_native_modules24.Storage.removeItem,
|
|
156103
|
+
clearItems: import_native_modules24.Storage.clearItems,
|
|
156104
|
+
iapGetProductItemList: import_native_modules24.IAP.getProductItemList,
|
|
156105
|
+
iapCreateOneTimePurchaseOrder: import_native_modules24.iapCreateOneTimePurchaseOrder,
|
|
156106
|
+
processProductGrant: import_native_modules24.processProductGrant,
|
|
156107
|
+
getPendingOrders: import_native_modules24.IAP.getPendingOrders,
|
|
156108
|
+
getCompletedOrRefundedOrders: import_native_modules24.IAP.getCompletedOrRefundedOrders,
|
|
156109
|
+
completeProductGrant: import_native_modules24.IAP.completeProductGrant,
|
|
156110
|
+
isAppsInTossAdMobLoaded: import_native_modules24.GoogleAdMob.isAppsInTossAdMobLoaded,
|
|
156075
156111
|
tossAdEventLog: tossAdEventLog,
|
|
156076
|
-
memoryDebugLog: webViewMemoryDebugLog
|
|
156112
|
+
memoryDebugLog: webViewMemoryDebugLog,
|
|
156113
|
+
debugLog: function () {
|
|
156114
|
+
var _debugLog = _asyncToGenerator(function* (event) {
|
|
156115
|
+
var _import_react_native, _import_react_native2;
|
|
156116
|
+
(_import_react_native = import_react_native40.NativeModules.AppsInTossModule) == null ? void 0 : _import_react_native.eventLog(event);
|
|
156117
|
+
(_import_react_native2 = import_react_native40.NativeModules.TossCoreModule) == null ? void 0 : _import_react_native2.eventLog(event);
|
|
156118
|
+
});
|
|
156119
|
+
function debugLog(_x8) {
|
|
156120
|
+
return _debugLog.apply(this, arguments);
|
|
156121
|
+
}
|
|
156122
|
+
return debugLog;
|
|
156123
|
+
}()
|
|
156077
156124
|
})
|
|
156078
156125
|
});
|
|
156079
156126
|
var headerPropForExternalWebView = (0, import_react28.useMemo)(function () {
|
|
@@ -156103,14 +156150,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156103
156150
|
webBackHandler.handleWebBack();
|
|
156104
156151
|
return true;
|
|
156105
156152
|
};
|
|
156106
|
-
|
|
156153
|
+
import_react_native40.BackHandler.addEventListener("hardwareBackPress", callback);
|
|
156107
156154
|
return function () {
|
|
156108
|
-
return
|
|
156155
|
+
return import_react_native40.BackHandler.removeEventListener("hardwareBackPress", callback);
|
|
156109
156156
|
};
|
|
156110
156157
|
}, [webBackHandler]);
|
|
156111
|
-
var globalScripts = useGlobalScripts();
|
|
156112
156158
|
var handleWebViewProcessDidTerminate = useHandleWebViewProcessDidTerminate(webViewRef);
|
|
156113
|
-
return (0,
|
|
156159
|
+
return (0, import_jsx_runtime19.jsx)(BaseWebView, Object.assign({
|
|
156114
156160
|
ref: refs
|
|
156115
156161
|
}, props, headerPropForExternalWebView, {
|
|
156116
156162
|
source: {
|
|
@@ -156128,14 +156174,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156128
156174
|
props.onNavigationStateChange == null ? void 0 : props.onNavigationStateChange(event);
|
|
156129
156175
|
webBackHandler.onNavigationStateChange(event);
|
|
156130
156176
|
},
|
|
156131
|
-
userAgent:
|
|
156177
|
+
userAgent: import_react_native40.Platform.OS === "ios" ? userAgent : void 0,
|
|
156132
156178
|
sharedCookiesEnabled: true,
|
|
156133
156179
|
webviewDebuggingEnabled: webViewDebuggingEnabled,
|
|
156134
156180
|
thirdPartyCookiesEnabled: true,
|
|
156135
156181
|
onMessage: handler.onMessage,
|
|
156136
|
-
injectedJavaScript:
|
|
156137
|
-
injectedJavaScriptBeforeContentLoaded:
|
|
156138
|
-
decelerationRate:
|
|
156182
|
+
injectedJavaScript: import_user_scripts.afterDocumentLoad,
|
|
156183
|
+
injectedJavaScriptBeforeContentLoaded: [handler.injectedJavaScript, import_user_scripts.beforeDocumentLoad].join("\n"),
|
|
156184
|
+
decelerationRate: import_react_native40.Platform.OS === "ios" ? 1 : void 0,
|
|
156139
156185
|
allowsBackForwardNavigationGestures: allowsBackForwardNavigationGestures,
|
|
156140
156186
|
onShouldStartLoadWithRequest: function onShouldStartLoadWithRequest(event) {
|
|
156141
156187
|
try {
|
|
@@ -156144,7 +156190,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156144
156190
|
return true;
|
|
156145
156191
|
} else {
|
|
156146
156192
|
var _convertIntentURL;
|
|
156147
|
-
|
|
156193
|
+
import_react_native40.Linking.openURL((_convertIntentURL = convertIntentURL(url2)) != null ? _convertIntentURL : url2.href);
|
|
156148
156194
|
return false;
|
|
156149
156195
|
}
|
|
156150
156196
|
} catch (error) {
|
|
@@ -156157,76 +156203,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156157
156203
|
onRenderProcessGone: handleWebViewProcessDidTerminate
|
|
156158
156204
|
}));
|
|
156159
156205
|
}
|
|
156160
|
-
function useGlobalScripts() {
|
|
156161
|
-
var global2 = getAppsInTossGlobals();
|
|
156162
|
-
var disableTextSelectionCSS = `
|
|
156163
|
-
const style = document.createElement('style');
|
|
156164
|
-
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; }';
|
|
156165
|
-
document.head.appendChild(style);
|
|
156166
|
-
`;
|
|
156167
|
-
var applyGameResourcesCache = `
|
|
156168
|
-
(function () {
|
|
156169
|
-
if (typeof caches === 'undefined') {
|
|
156170
|
-
return;
|
|
156171
|
-
}
|
|
156172
|
-
const cacheKeyPrefix = '@apps-in-toss/caches/';
|
|
156173
|
-
const cacheKey = \`\${cacheKeyPrefix}${global2.deploymentId}\`;
|
|
156174
|
-
window.addEventListener('load', async () => {
|
|
156175
|
-
const keys = await caches.keys();
|
|
156176
|
-
for (const key of keys) {
|
|
156177
|
-
if (key.startsWith(cacheKeyPrefix) && key !== cacheKey) {
|
|
156178
|
-
await caches.delete(key);
|
|
156179
|
-
}
|
|
156180
|
-
}
|
|
156181
|
-
});
|
|
156182
|
-
window.fetch = new Proxy(window.fetch, {
|
|
156183
|
-
async apply(originalFetch, thisArg, args) {
|
|
156184
|
-
const request = new Request(args[0], args[1]);
|
|
156185
|
-
if (!/\\.(data|wasm|framework\\.js)(?:\\.gz|\\.br|\\.unityweb)?$/.test(request.url)) {
|
|
156186
|
-
return await originalFetch.call(thisArg, request);
|
|
156187
|
-
}
|
|
156188
|
-
const cache = await caches.open(cacheKey);
|
|
156189
|
-
const cached = await cache.match(request);
|
|
156190
|
-
if (cached) {
|
|
156191
|
-
const eTag = cached.headers.get('ETag');
|
|
156192
|
-
const lastModified = cached.headers.get('Last-Modified');
|
|
156193
|
-
if (eTag) {
|
|
156194
|
-
request.headers.set('If-None-Match', eTag);
|
|
156195
|
-
}
|
|
156196
|
-
if (lastModified) {
|
|
156197
|
-
request.headers.set('If-Modified-Since', lastModified);
|
|
156198
|
-
}
|
|
156199
|
-
const revalidated = await originalFetch.call(thisArg, request);
|
|
156200
|
-
if (revalidated.status === 304) {
|
|
156201
|
-
return cached;
|
|
156202
|
-
}
|
|
156203
|
-
cache.put(request, revalidated.clone());
|
|
156204
|
-
return revalidated;
|
|
156205
|
-
}
|
|
156206
|
-
const response = await originalFetch.call(thisArg, request);
|
|
156207
|
-
cache.put(request, response.clone());
|
|
156208
|
-
return response;
|
|
156209
|
-
},
|
|
156210
|
-
});
|
|
156211
|
-
})();
|
|
156212
|
-
`;
|
|
156213
|
-
return {
|
|
156214
|
-
beforeLoad: mergeScripts(global2.webViewType === "game" && applyGameResourcesCache),
|
|
156215
|
-
afterLoad: mergeScripts(disableTextSelectionCSS)
|
|
156216
|
-
};
|
|
156217
|
-
}
|
|
156218
|
-
function mergeScripts() {
|
|
156219
|
-
for (var _len3 = arguments.length, scripts = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
|
|
156220
|
-
scripts[_key3] = arguments[_key3];
|
|
156221
|
-
}
|
|
156222
|
-
return scripts.filter(function (script) {
|
|
156223
|
-
return typeof script === "string";
|
|
156224
|
-
}).join("\n");
|
|
156225
|
-
}
|
|
156226
156206
|
__reExport(src_exports, _$$_REQUIRE(_dependencyMap[7], "@apps-in-toss/analytics"), module.exports);
|
|
156227
156207
|
var import_private10 = _$$_REQUIRE(_dependencyMap[15], "@toss/tds-react-native/private");
|
|
156228
156208
|
__reExport(src_exports, _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules"), module.exports);
|
|
156229
|
-
__reExport(src_exports, _$$_REQUIRE(_dependencyMap[
|
|
156209
|
+
__reExport(src_exports, _$$_REQUIRE(_dependencyMap[22], "@apps-in-toss/types"), module.exports);
|
|
156230
156210
|
var Analytics2 = {
|
|
156231
156211
|
init: import_analytics2.Analytics.init,
|
|
156232
156212
|
Impression: import_analytics2.Analytics.Impression,
|
|
@@ -156247,8 +156227,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156247
156227
|
useOverlay: useOverlay,
|
|
156248
156228
|
useTopNavigation: _useTopNavigation,
|
|
156249
156229
|
useWaitForReturnNavigator: _useWaitForReturnNavigator
|
|
156250
|
-
}, _$$_REQUIRE(_dependencyMap[7], "@apps-in-toss/analytics"), _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules"), _$$_REQUIRE(_dependencyMap[
|
|
156251
|
-
},1256,[24,25,32,207,16,61,1257,1258,1259,2,1446,18,6,9,2467,2567,532,2568,2606,2613,2476,1260],"../../../.yarn/__virtual__/@apps-in-toss-framework-virtual-afbad361af/1/packages/apps-in-toss/framework/dist/index.cjs");
|
|
156230
|
+
}, _$$_REQUIRE(_dependencyMap[7], "@apps-in-toss/analytics"), _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules"), _$$_REQUIRE(_dependencyMap[22], "@apps-in-toss/types")));
|
|
156231
|
+
},1256,[24,25,32,207,16,61,1257,1258,1259,2,1446,18,6,9,2467,2567,532,2568,2606,2613,2629,2476,1260],"../../../.yarn/__virtual__/@apps-in-toss-framework-virtual-afbad361af/1/packages/apps-in-toss/framework/dist/index.cjs");
|
|
156252
156232
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
156253
156233
|
function _objectDestructuringEmpty(obj) {
|
|
156254
156234
|
if (obj == null) throw new TypeError("Cannot destructure undefined");
|
|
@@ -234487,6 +234467,66 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
234487
234467
|
return _appsInTossEvent.appsInTossEvent.addEventListener('onVisibilityChangedByTransparentServiceWeb', eventParams);
|
|
234488
234468
|
}
|
|
234489
234469
|
},2628,[2615],"../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/AppsInTossModule/native-event-emitter/internal/onVisibilityChangedByTransparentServiceWeb.ts");
|
|
234470
|
+
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
234471
|
+
"use strict";
|
|
234472
|
+
|
|
234473
|
+
var a = Object.defineProperty;
|
|
234474
|
+
var i = Object.getOwnPropertyDescriptor;
|
|
234475
|
+
var s = Object.getOwnPropertyNames;
|
|
234476
|
+
var c = Object.prototype.hasOwnProperty;
|
|
234477
|
+
var d = function d(t, e) {
|
|
234478
|
+
for (var o in e) a(t, o, {
|
|
234479
|
+
get: e[o],
|
|
234480
|
+
enumerable: !0
|
|
234481
|
+
});
|
|
234482
|
+
},
|
|
234483
|
+
u = function u(t, e, o, r) {
|
|
234484
|
+
if (e && typeof e == "object" || typeof e == "function") {
|
|
234485
|
+
var _loop = function _loop(n) {
|
|
234486
|
+
!c.call(t, n) && n !== o && a(t, n, {
|
|
234487
|
+
get: function get() {
|
|
234488
|
+
return e[n];
|
|
234489
|
+
},
|
|
234490
|
+
enumerable: !(r = i(e, n)) || r.enumerable
|
|
234491
|
+
});
|
|
234492
|
+
};
|
|
234493
|
+
for (var n of s(e)) {
|
|
234494
|
+
_loop(n);
|
|
234495
|
+
}
|
|
234496
|
+
}
|
|
234497
|
+
return t;
|
|
234498
|
+
};
|
|
234499
|
+
var l = function l(t) {
|
|
234500
|
+
return u(a({}, "__esModule", {
|
|
234501
|
+
value: !0
|
|
234502
|
+
}), t);
|
|
234503
|
+
};
|
|
234504
|
+
var m = {};
|
|
234505
|
+
d(m, {
|
|
234506
|
+
afterDocumentLoad: function afterDocumentLoad() {
|
|
234507
|
+
return p;
|
|
234508
|
+
},
|
|
234509
|
+
beforeDocumentLoad: function beforeDocumentLoad() {
|
|
234510
|
+
return g;
|
|
234511
|
+
}
|
|
234512
|
+
});
|
|
234513
|
+
module.exports = l(m);
|
|
234514
|
+
var p = `"use strict";(()=>{var e=document.createElement("style");e.textContent=\`
|
|
234515
|
+
*:not(input):not(textarea) {
|
|
234516
|
+
-webkit-user-select: none;
|
|
234517
|
+
-moz-user-select: none;
|
|
234518
|
+
-ms-user-select: none;
|
|
234519
|
+
user-select: none;
|
|
234520
|
+
-webkit-touch-callout: none;
|
|
234521
|
+
}
|
|
234522
|
+
\`;document.head.appendChild(e);})();
|
|
234523
|
+
`,
|
|
234524
|
+
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';
|
|
234525
|
+
0 && (module.exports = {
|
|
234526
|
+
afterDocumentLoad: afterDocumentLoad,
|
|
234527
|
+
beforeDocumentLoad: beforeDocumentLoad
|
|
234528
|
+
});
|
|
234529
|
+
},2629,[],"../user-scripts/dist/index.js");
|
|
234490
234530
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
234491
234531
|
Object.defineProperty(exports, "__esModule", {
|
|
234492
234532
|
value: true
|
|
@@ -234501,7 +234541,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
234501
234541
|
context.keys = function () {
|
|
234502
234542
|
return Array.from(files.keys());
|
|
234503
234543
|
};
|
|
234504
|
-
},
|
|
234544
|
+
},2630,[2631,2632],"react-native/context.ts");
|
|
234505
234545
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
234506
234546
|
Object.defineProperty(exports, "__esModule", {
|
|
234507
234547
|
value: true
|
|
@@ -234534,7 +234574,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
234534
234574
|
})
|
|
234535
234575
|
});
|
|
234536
234576
|
}
|
|
234537
|
-
},
|
|
234577
|
+
},2631,[1256,18,9],"react-native/pages/index.tsx");
|
|
234538
234578
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
234539
234579
|
var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
|
|
234540
234580
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -234547,6 +234587,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
234547
234587
|
}
|
|
234548
234588
|
});
|
|
234549
234589
|
var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./index"));
|
|
234550
|
-
},
|
|
234590
|
+
},2632,[1,2631],"react-native/pages/_404.tsx");
|
|
234551
234591
|
__r(134);
|
|
234552
234592
|
__r(0);
|