@apps-in-toss/web-framework 1.12.0 → 1.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -2
- package/dist/cli/index.js +1 -1
- package/dist/prebuilt/dev.android.js +175 -188
- package/dist/prebuilt/dev.ios.js +175 -188
- package/dist/prebuilt/prod.android.js +6 -16
- package/dist/prebuilt/prod.ios.js +6 -16
- package/package.json +7 -7
package/dist/prebuilt/dev.ios.js
CHANGED
|
@@ -154324,16 +154324,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154324
154324
|
var import_native_modules11 = _$$_REQUIRE(_dependencyMap[9], "@apps-in-toss/native-modules");
|
|
154325
154325
|
var import_react_native20 = _$$_REQUIRE(_dependencyMap[10], "@granite-js/react-native");
|
|
154326
154326
|
var import_jsx_runtime8 = _$$_REQUIRE(_dependencyMap[14], "react/jsx-runtime");
|
|
154327
|
-
function
|
|
154327
|
+
function SettingsMenu() {
|
|
154328
154328
|
var globals = getAppsInTossGlobals();
|
|
154329
154329
|
if ((0, import_native_modules11.getOperationalEnvironment)() === "sandbox") {
|
|
154330
154330
|
return null;
|
|
154331
154331
|
}
|
|
154332
154332
|
return (0, import_jsx_runtime8.jsx)(Menu, {
|
|
154333
|
-
title: "\
|
|
154333
|
+
title: "\uC124\uC815",
|
|
154334
154334
|
iconURL: "https://static.toss.im/icons/png/4x/icon-setting-mono.png",
|
|
154335
154335
|
onPress: function onPress() {
|
|
154336
|
-
return (0, import_react_native20.openURL)(`servicetoss://apps-in-toss-menu/
|
|
154336
|
+
return (0, import_react_native20.openURL)(`servicetoss://apps-in-toss-menu/settings?appName=${import_react_native20.Granite.appName}&displayAppName=${globals.brandDisplayName}`);
|
|
154337
154337
|
}
|
|
154338
154338
|
});
|
|
154339
154339
|
}
|
|
@@ -154358,7 +154358,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154358
154358
|
android: "5.246.0",
|
|
154359
154359
|
ios: "5.246.0"
|
|
154360
154360
|
},
|
|
154361
|
-
|
|
154361
|
+
SETTINGS_MENU: {
|
|
154362
154362
|
android: "5.238.0",
|
|
154363
154363
|
ios: "5.237.0"
|
|
154364
154364
|
}
|
|
@@ -154377,36 +154377,23 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154377
154377
|
var isHomeShortcutSupported = (0, import_native_modules12.isMinVersionSupported)(MIN_VERSION.HOME_SHORTCUT_MENU);
|
|
154378
154378
|
var isBottomSheetSupported = (0, import_native_modules12.isMinVersionSupported)(MIN_VERSION.BOTTOM_SHEET);
|
|
154379
154379
|
var isShareListMenuSupported = (0, import_native_modules12.isMinVersionSupported)(MIN_VERSION.SHARE_LIST_MENU);
|
|
154380
|
-
var
|
|
154381
|
-
_ref39 = _slicedToArray(_ref38, 2),
|
|
154382
|
-
isPermissionsMenuSupported = _ref39[0],
|
|
154383
|
-
setIsPermissionsMenuSupported = _ref39[1];
|
|
154380
|
+
var isSettingsMenuSupported = (0, import_native_modules12.isMinVersionSupported)(MIN_VERSION.SETTINGS_MENU);
|
|
154384
154381
|
(0, import_react15.useEffect)(function () {
|
|
154385
154382
|
if (!isBottomSheetSupported) {
|
|
154386
154383
|
return;
|
|
154387
154384
|
}
|
|
154388
154385
|
import_native_modules12.INTERNAL__appBridgeHandler.invokeAppBridgeMethod(APP_BRIDGE_METHOD_NAME, {}, {
|
|
154389
|
-
onSuccess: function onSuccess(
|
|
154390
|
-
var items =
|
|
154386
|
+
onSuccess: function onSuccess(_ref38) {
|
|
154387
|
+
var items = _ref38.items;
|
|
154391
154388
|
return setItemList(items);
|
|
154392
154389
|
},
|
|
154393
154390
|
onError: function onError(error) {
|
|
154394
154391
|
return console.error("\uBA54\uB274 \uBAA9\uB85D\uC744 \uAC00\uC838\uC624\uB294 \uB370 \uC2E4\uD328\uD588\uC5B4\uC694:", error);
|
|
154395
154392
|
}
|
|
154396
154393
|
});
|
|
154397
|
-
if ((0, import_native_modules12.isMinVersionSupported)(MIN_VERSION.PERMISSIONS_MENU)) {
|
|
154398
|
-
import_native_modules12.INTERNAL__appBridgeHandler.invokeAppBridgeMethod("getAllPermission", {}, {
|
|
154399
|
-
onSuccess: function onSuccess(permissions) {
|
|
154400
|
-
return setIsPermissionsMenuSupported(permissions.length > 0);
|
|
154401
|
-
},
|
|
154402
|
-
onError: function onError(error) {
|
|
154403
|
-
return console.error("\uAD8C\uD55C \uBAA9\uB85D\uC744 \uAC00\uC838\uC624\uB294 \uB370 \uC2E4\uD328\uD588\uC5B4\uC694:", error);
|
|
154404
|
-
}
|
|
154405
|
-
});
|
|
154406
|
-
}
|
|
154407
154394
|
}, [isBottomSheetSupported]);
|
|
154408
154395
|
var onClickHandler = function () {
|
|
154409
|
-
var
|
|
154396
|
+
var _ref39 = _asyncToGenerator(function* () {
|
|
154410
154397
|
logging.open();
|
|
154411
154398
|
if (!isBottomSheetSupported) {
|
|
154412
154399
|
yield appUpdateDialog.open({
|
|
@@ -154415,10 +154402,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154415
154402
|
});
|
|
154416
154403
|
return;
|
|
154417
154404
|
}
|
|
154418
|
-
overlay.open(function (
|
|
154419
|
-
var isOpen =
|
|
154420
|
-
exit =
|
|
154421
|
-
close =
|
|
154405
|
+
overlay.open(function (_ref40) {
|
|
154406
|
+
var isOpen = _ref40.isOpen,
|
|
154407
|
+
exit = _ref40.exit,
|
|
154408
|
+
close = _ref40.close;
|
|
154422
154409
|
var handleClose = function handleClose() {
|
|
154423
154410
|
logging.close();
|
|
154424
154411
|
close();
|
|
@@ -154455,22 +154442,22 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154455
154442
|
return (0, import_react_native21.openURL)(item.contactUri);
|
|
154456
154443
|
}
|
|
154457
154444
|
}, item.contactItemName);
|
|
154458
|
-
}), isHomeShortcutSupported && (0, import_jsx_runtime9.jsx)(HomeShortcutMenu, {}), isShareListMenuSupported && (0, import_jsx_runtime9.jsx)(AppShareListMenu, {}),
|
|
154445
|
+
}), isHomeShortcutSupported && (0, import_jsx_runtime9.jsx)(HomeShortcutMenu, {}), isShareListMenuSupported && (0, import_jsx_runtime9.jsx)(AppShareListMenu, {}), isSettingsMenuSupported && (0, import_jsx_runtime9.jsx)(SettingsMenu, {})]
|
|
154459
154446
|
})
|
|
154460
154447
|
})
|
|
154461
154448
|
});
|
|
154462
154449
|
});
|
|
154463
154450
|
});
|
|
154464
154451
|
return function onClickHandler() {
|
|
154465
|
-
return
|
|
154452
|
+
return _ref39.apply(this, arguments);
|
|
154466
154453
|
};
|
|
154467
154454
|
}();
|
|
154468
154455
|
return {
|
|
154469
154456
|
open: onClickHandler
|
|
154470
154457
|
};
|
|
154471
154458
|
}
|
|
154472
|
-
function BottomSheetImpressionArea(
|
|
154473
|
-
var children =
|
|
154459
|
+
function BottomSheetImpressionArea(_ref41) {
|
|
154460
|
+
var children = _ref41.children;
|
|
154474
154461
|
var logging = useMoreButtonBottomSheetLogging();
|
|
154475
154462
|
(0, import_react15.useEffect)(function () {
|
|
154476
154463
|
logging.show();
|
|
@@ -154490,9 +154477,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154490
154477
|
}
|
|
154491
154478
|
var import_react16 = _$$_REQUIRE(_dependencyMap[13], "react");
|
|
154492
154479
|
var import_jsx_runtime10 = _$$_REQUIRE(_dependencyMap[14], "react/jsx-runtime");
|
|
154493
|
-
function NavigationBarImpressionArea(
|
|
154494
|
-
var children =
|
|
154495
|
-
withHomeButton =
|
|
154480
|
+
function NavigationBarImpressionArea(_ref42) {
|
|
154481
|
+
var children = _ref42.children,
|
|
154482
|
+
withHomeButton = _ref42.withHomeButton;
|
|
154496
154483
|
var hasLogged = (0, import_react16.useRef)(false);
|
|
154497
154484
|
var logging = useNavigationBarLogging();
|
|
154498
154485
|
(0, import_react16.useEffect)(function () {
|
|
@@ -154554,8 +154541,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154554
154541
|
var navigationEvent = useNavigationEvent();
|
|
154555
154542
|
var _useNavigationBarCont2 = useNavigationBarContext(),
|
|
154556
154543
|
navigationRightButton = _useNavigationBarCont2.navigationRightButton;
|
|
154557
|
-
var
|
|
154558
|
-
safeAreaRight =
|
|
154544
|
+
var _ref43 = (0, import_react_native_safe_area_context.useSafeAreaInsets)(),
|
|
154545
|
+
safeAreaRight = _ref43.right;
|
|
154559
154546
|
useHardwareBackPress(navigationEvent.handleBack);
|
|
154560
154547
|
return (0, import_jsx_runtime12.jsxs)(import_jsx_runtime12.Fragment, {
|
|
154561
154548
|
children: [(0, import_jsx_runtime12.jsx)(import_tds_react_native9.PageNavbar, {
|
|
@@ -154593,8 +154580,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154593
154580
|
__reExport(bridge_entry_exports, _$$_REQUIRE(_dependencyMap[19], "@apps-in-toss/native-modules/constant-bridges"));
|
|
154594
154581
|
__reExport(bridge_entry_exports, _$$_REQUIRE(_dependencyMap[20], "@apps-in-toss/native-modules/event-bridges"));
|
|
154595
154582
|
var import_jsx_runtime13 = _$$_REQUIRE(_dependencyMap[14], "react/jsx-runtime");
|
|
154596
|
-
function RNAppContainer(
|
|
154597
|
-
var children =
|
|
154583
|
+
function RNAppContainer(_ref44) {
|
|
154584
|
+
var children = _ref44.children;
|
|
154598
154585
|
var global2 = getAppsInTossGlobals();
|
|
154599
154586
|
switch (global2.appType) {
|
|
154600
154587
|
case "game":
|
|
@@ -154608,8 +154595,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154608
154595
|
});
|
|
154609
154596
|
}
|
|
154610
154597
|
}
|
|
154611
|
-
function GameAppContainer(
|
|
154612
|
-
var children =
|
|
154598
|
+
function GameAppContainer(_ref45) {
|
|
154599
|
+
var children = _ref45.children;
|
|
154613
154600
|
(0, import_react17.useEffect)(function () {
|
|
154614
154601
|
if (import_react_native23.Platform.OS === "ios") {
|
|
154615
154602
|
(0, import_native_modules13.setIosSwipeGestureEnabled)({
|
|
@@ -154629,16 +154616,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154629
154616
|
}) : children]
|
|
154630
154617
|
});
|
|
154631
154618
|
}
|
|
154632
|
-
function GeneralAppContainer(
|
|
154633
|
-
var children =
|
|
154619
|
+
function GeneralAppContainer(_ref46) {
|
|
154620
|
+
var children = _ref46.children;
|
|
154634
154621
|
return (0, import_jsx_runtime13.jsxs)(import_jsx_runtime13.Fragment, {
|
|
154635
154622
|
children: [(0, import_jsx_runtime13.jsx)(RNNavigationBar.Default, {}), children]
|
|
154636
154623
|
});
|
|
154637
154624
|
}
|
|
154638
154625
|
var import_jsx_runtime14 = _$$_REQUIRE(_dependencyMap[14], "react/jsx-runtime");
|
|
154639
|
-
function AppsInTossContainer(Container,
|
|
154640
|
-
var children =
|
|
154641
|
-
initialProps = _objectWithoutProperties(
|
|
154626
|
+
function AppsInTossContainer(Container, _ref47) {
|
|
154627
|
+
var children = _ref47.children,
|
|
154628
|
+
initialProps = _objectWithoutProperties(_ref47, _excluded);
|
|
154642
154629
|
if (!(0, import_native_modules14.isMinVersionSupported)({
|
|
154643
154630
|
android: "5.220.0",
|
|
154644
154631
|
ios: "5.221.0"
|
|
@@ -154661,9 +154648,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154661
154648
|
}))]
|
|
154662
154649
|
});
|
|
154663
154650
|
}
|
|
154664
|
-
function registerApp(container,
|
|
154665
|
-
var context =
|
|
154666
|
-
analytics =
|
|
154651
|
+
function registerApp(container, _ref48) {
|
|
154652
|
+
var context = _ref48.context,
|
|
154653
|
+
analytics = _ref48.analytics;
|
|
154667
154654
|
var appName = getAppName();
|
|
154668
154655
|
var isRegistered = import_react_native25.AppRegistry.getAppKeys().includes(appName);
|
|
154669
154656
|
if (!isRegistered) {
|
|
@@ -154689,8 +154676,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154689
154676
|
}
|
|
154690
154677
|
return global.Page;
|
|
154691
154678
|
}
|
|
154692
|
-
function AppsInTossScreenContainer(
|
|
154693
|
-
var children =
|
|
154679
|
+
function AppsInTossScreenContainer(_ref49) {
|
|
154680
|
+
var children = _ref49.children;
|
|
154694
154681
|
var isRNApp = getAppsInTossGlobals().webViewType == null;
|
|
154695
154682
|
return (0, import_jsx_runtime14.jsx)(NavigationBarContextProvider, {
|
|
154696
154683
|
children: (0, import_jsx_runtime14.jsx)(import_analytics.Analytics.Screen, {
|
|
@@ -154736,8 +154723,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154736
154723
|
var import_jsx_runtime15 = _$$_REQUIRE(_dependencyMap[14], "react/jsx-runtime");
|
|
154737
154724
|
function GameWebviewNavigationBar() {
|
|
154738
154725
|
var safeAreaTop = (0, import_private7.useSafeAreaTop)();
|
|
154739
|
-
var
|
|
154740
|
-
openConfirm =
|
|
154726
|
+
var _ref50 = (0, import_tds_react_native11.useDialog)(),
|
|
154727
|
+
openConfirm = _ref50.openConfirm;
|
|
154741
154728
|
var _useCaptureExitLog3 = useCaptureExitLog(),
|
|
154742
154729
|
captureExitLog = _useCaptureExitLog3.captureExitLog;
|
|
154743
154730
|
var global2 = getAppsInTossGlobals();
|
|
@@ -154746,8 +154733,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154746
154733
|
openMoreButtonBottomSheet = _useMoreButtonBottomS3.open;
|
|
154747
154734
|
var _useNavigationBarCont3 = useNavigationBarContext(),
|
|
154748
154735
|
navigationRightButton = _useNavigationBarCont3.navigationRightButton;
|
|
154749
|
-
var
|
|
154750
|
-
safeAreaRight =
|
|
154736
|
+
var _ref51 = (0, import_react_native_safe_area_context2.useSafeAreaInsets)(),
|
|
154737
|
+
safeAreaRight = _ref51.right;
|
|
154751
154738
|
var handleGameWebviewClose = (0, import_react18.useCallback)(_asyncToGenerator(function* () {
|
|
154752
154739
|
logging.closeButtonClick();
|
|
154753
154740
|
var isConfirmed = yield openConfirm({
|
|
@@ -154825,16 +154812,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154825
154812
|
var import_es_hangul4 = _$$_REQUIRE(_dependencyMap[15], "es-hangul");
|
|
154826
154813
|
var import_react20 = _$$_REQUIRE(_dependencyMap[13], "react");
|
|
154827
154814
|
var import_jsx_runtime17 = _$$_REQUIRE(_dependencyMap[14], "react/jsx-runtime");
|
|
154828
|
-
function PartnerWebviewNavigationBar(
|
|
154815
|
+
function PartnerWebviewNavigationBar(_ref53) {
|
|
154829
154816
|
var _parsedNavigationBar$3, _parsedNavigationBar$4;
|
|
154830
|
-
var onBackButtonClick =
|
|
154831
|
-
onHomeButtonClick =
|
|
154817
|
+
var onBackButtonClick = _ref53.onBackButtonClick,
|
|
154818
|
+
onHomeButtonClick = _ref53.onHomeButtonClick;
|
|
154832
154819
|
var globals = getAppsInTossGlobals();
|
|
154833
154820
|
var _useCaptureExitLog4 = useCaptureExitLog(),
|
|
154834
154821
|
captureExitLog = _useCaptureExitLog4.captureExitLog;
|
|
154835
154822
|
var logging = useNavigationBarLogging();
|
|
154836
|
-
var
|
|
154837
|
-
openConfirm =
|
|
154823
|
+
var _ref54 = (0, import_tds_react_native12.useDialog)(),
|
|
154824
|
+
openConfirm = _ref54.openConfirm;
|
|
154838
154825
|
var _useMoreButtonBottomS4 = useMoreButtonBottomSheet(),
|
|
154839
154826
|
openMoreButtonBottomSheet = _useMoreButtonBottomS4.open;
|
|
154840
154827
|
var parsedNavigationBar = globals.navigationBar != null ? safeParseNavigationBar(globals.navigationBar) : null;
|
|
@@ -154880,10 +154867,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154880
154867
|
});
|
|
154881
154868
|
}
|
|
154882
154869
|
var import_jsx_runtime18 = _$$_REQUIRE(_dependencyMap[14], "react/jsx-runtime");
|
|
154883
|
-
var PartnerWebView = (0, import_react21.forwardRef)(function PartnerWebViewScreen(
|
|
154884
|
-
var onBackButtonClick =
|
|
154885
|
-
onHomeButtonClick =
|
|
154886
|
-
webViewProps = _objectWithoutProperties(
|
|
154870
|
+
var PartnerWebView = (0, import_react21.forwardRef)(function PartnerWebViewScreen(_ref56, ref) {
|
|
154871
|
+
var onBackButtonClick = _ref56.onBackButtonClick,
|
|
154872
|
+
onHomeButtonClick = _ref56.onHomeButtonClick,
|
|
154873
|
+
webViewProps = _objectWithoutProperties(_ref56, _excluded2);
|
|
154887
154874
|
return (0, import_jsx_runtime18.jsxs)(import_jsx_runtime18.Fragment, {
|
|
154888
154875
|
children: [(0, import_jsx_runtime18.jsx)(PartnerWebviewNavigationBar, {
|
|
154889
154876
|
onBackButtonClick: onBackButtonClick,
|
|
@@ -154905,9 +154892,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154905
154892
|
var components = url.hash.replace("#Intent;", "").split(";").map(function (component) {
|
|
154906
154893
|
return component.split("=");
|
|
154907
154894
|
});
|
|
154908
|
-
var scheme = (_components$find = components.find(function (
|
|
154909
|
-
var
|
|
154910
|
-
key =
|
|
154895
|
+
var scheme = (_components$find = components.find(function (_ref57) {
|
|
154896
|
+
var _ref58 = _slicedToArray(_ref57, 1),
|
|
154897
|
+
key = _ref58[0];
|
|
154911
154898
|
return key === "scheme";
|
|
154912
154899
|
})) == null ? void 0 : _components$find[1];
|
|
154913
154900
|
if (!scheme) {
|
|
@@ -155273,10 +155260,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155273
155260
|
function serializeError(error) {
|
|
155274
155261
|
return JSON.stringify(error, function (_, value) {
|
|
155275
155262
|
if (value instanceof Error) {
|
|
155276
|
-
return Object.assign({}, Object.entries(value).reduce(function (acc,
|
|
155277
|
-
var
|
|
155278
|
-
key =
|
|
155279
|
-
value2 =
|
|
155263
|
+
return Object.assign({}, Object.entries(value).reduce(function (acc, _ref59) {
|
|
155264
|
+
var _ref60 = _slicedToArray(_ref59, 2),
|
|
155265
|
+
key = _ref60[0],
|
|
155266
|
+
value2 = _ref60[1];
|
|
155280
155267
|
acc[key] = value2;
|
|
155281
155268
|
return acc;
|
|
155282
155269
|
}, {}), {
|
|
@@ -155289,24 +155276,24 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155289
155276
|
return value;
|
|
155290
155277
|
});
|
|
155291
155278
|
}
|
|
155292
|
-
function methodHandler(
|
|
155293
|
-
var args =
|
|
155294
|
-
eventId =
|
|
155295
|
-
functionName =
|
|
155296
|
-
handlerMap =
|
|
155297
|
-
injectJavaScript =
|
|
155279
|
+
function methodHandler(_ref61) {
|
|
155280
|
+
var args = _ref61.args,
|
|
155281
|
+
eventId = _ref61.eventId,
|
|
155282
|
+
functionName = _ref61.functionName,
|
|
155283
|
+
handlerMap = _ref61.handlerMap,
|
|
155284
|
+
injectJavaScript = _ref61.injectJavaScript;
|
|
155298
155285
|
var func = handlerMap[functionName];
|
|
155299
155286
|
if (!func) {
|
|
155300
155287
|
console.error(`${functionName} is not a function`);
|
|
155301
155288
|
return;
|
|
155302
155289
|
}
|
|
155303
155290
|
var wrappedFunc = function () {
|
|
155304
|
-
var
|
|
155291
|
+
var _ref62 = _asyncToGenerator(function* () {
|
|
155305
155292
|
var result = yield func.apply(void 0, arguments);
|
|
155306
155293
|
return result;
|
|
155307
155294
|
});
|
|
155308
155295
|
return function wrappedFunc() {
|
|
155309
|
-
return
|
|
155296
|
+
return _ref62.apply(this, arguments);
|
|
155310
155297
|
};
|
|
155311
155298
|
}();
|
|
155312
155299
|
wrappedFunc.apply(void 0, _toConsumableArray(args)).then(function (result) {
|
|
@@ -155321,17 +155308,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155321
155308
|
});
|
|
155322
155309
|
}
|
|
155323
155310
|
var globalEventListenerMap = new Map();
|
|
155324
|
-
function useBridgeHandler(
|
|
155325
|
-
var onMessage =
|
|
155326
|
-
constantHandlerMap =
|
|
155327
|
-
asyncHandlerMap =
|
|
155328
|
-
eventListenerMap =
|
|
155311
|
+
function useBridgeHandler(_ref63) {
|
|
155312
|
+
var onMessage = _ref63.onMessage,
|
|
155313
|
+
constantHandlerMap = _ref63.constantHandlerMap,
|
|
155314
|
+
asyncHandlerMap = _ref63.asyncHandlerMap,
|
|
155315
|
+
eventListenerMap = _ref63.eventListenerMap;
|
|
155329
155316
|
var ref = (0, import_react22.useRef)(null);
|
|
155330
155317
|
var injectedJavaScript = (0, import_react22.useMemo)(function () {
|
|
155331
|
-
return `window.__CONSTANT_HANDLER_MAP = ${JSON.stringify(Object.entries(constantHandlerMap).reduce(function (acc,
|
|
155332
|
-
var
|
|
155333
|
-
key =
|
|
155334
|
-
value =
|
|
155318
|
+
return `window.__CONSTANT_HANDLER_MAP = ${JSON.stringify(Object.entries(constantHandlerMap).reduce(function (acc, _ref64) {
|
|
155319
|
+
var _ref65 = _slicedToArray(_ref64, 2),
|
|
155320
|
+
key = _ref65[0],
|
|
155321
|
+
value = _ref65[1];
|
|
155335
155322
|
acc[key] = typeof value === "function" ? value() : value;
|
|
155336
155323
|
return acc;
|
|
155337
155324
|
}, {}))};`;
|
|
@@ -155358,7 +155345,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155358
155345
|
};
|
|
155359
155346
|
};
|
|
155360
155347
|
var $onMessage = (0, import_react22.useCallback)(function () {
|
|
155361
|
-
var
|
|
155348
|
+
var _ref66 = _asyncToGenerator(function* (e) {
|
|
155362
155349
|
onMessage == null ? void 0 : onMessage(e);
|
|
155363
155350
|
var data = parseNativeEventData(e.nativeEvent.data);
|
|
155364
155351
|
if (typeof data !== "object" || data === null || typeof data.functionName !== "string" || typeof data.eventId !== "string" || typeof data.type !== "string" || !["addEventListener", "removeEventListener", "method"].includes(data.type)) {
|
|
@@ -155403,7 +155390,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155403
155390
|
}
|
|
155404
155391
|
});
|
|
155405
155392
|
return function (_x5) {
|
|
155406
|
-
return
|
|
155393
|
+
return _ref66.apply(this, arguments);
|
|
155407
155394
|
};
|
|
155408
155395
|
}(), [onMessage]);
|
|
155409
155396
|
return {
|
|
@@ -155526,20 +155513,20 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155526
155513
|
}
|
|
155527
155514
|
}
|
|
155528
155515
|
function useWebViewHistory() {
|
|
155529
|
-
var
|
|
155530
|
-
|
|
155531
|
-
state =
|
|
155532
|
-
dispatch =
|
|
155533
|
-
var onNavigationStateChange = (0, import_react24.useCallback)(function (
|
|
155534
|
-
var url =
|
|
155535
|
-
canGoForward2 =
|
|
155516
|
+
var _ref67 = (0, import_react24.useReducer)(reducer, INITIAL_STATE),
|
|
155517
|
+
_ref68 = _slicedToArray(_ref67, 2),
|
|
155518
|
+
state = _ref68[0],
|
|
155519
|
+
dispatch = _ref68[1];
|
|
155520
|
+
var onNavigationStateChange = (0, import_react24.useCallback)(function (_ref69) {
|
|
155521
|
+
var url = _ref69.url,
|
|
155522
|
+
canGoForward2 = _ref69.canGoForward;
|
|
155536
155523
|
dispatch({
|
|
155537
155524
|
type: "NAVIGATION_CHANGE",
|
|
155538
155525
|
url: url,
|
|
155539
155526
|
canGoForward: canGoForward2
|
|
155540
155527
|
});
|
|
155541
155528
|
}, []);
|
|
155542
|
-
var
|
|
155529
|
+
var _ref70 = (0, import_react24.useMemo)(function () {
|
|
155543
155530
|
var canBack = state.index > 0;
|
|
155544
155531
|
var canFwd = state.index >= 0 && state.index < state.stack.length - 1;
|
|
155545
155532
|
return {
|
|
@@ -155547,8 +155534,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155547
155534
|
canGoForward: canFwd
|
|
155548
155535
|
};
|
|
155549
155536
|
}, [state.index, state.stack.length]),
|
|
155550
|
-
canGoBack =
|
|
155551
|
-
canGoForward =
|
|
155537
|
+
canGoBack = _ref70.canGoBack,
|
|
155538
|
+
canGoForward = _ref70.canGoForward;
|
|
155552
155539
|
return {
|
|
155553
155540
|
onNavigationStateChange: onNavigationStateChange,
|
|
155554
155541
|
hasHistory: canGoBack,
|
|
@@ -155561,14 +155548,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155561
155548
|
var _useWebViewHistory = useWebViewHistory(),
|
|
155562
155549
|
hasHistory = _useWebViewHistory.hasHistory,
|
|
155563
155550
|
onNavigationStateChange = _useWebViewHistory.onNavigationStateChange;
|
|
155564
|
-
var
|
|
155565
|
-
webBackHandlersRef =
|
|
155566
|
-
hasWebBackEvent =
|
|
155567
|
-
addWebBackEventListener =
|
|
155568
|
-
removeWebBackEventListener =
|
|
155551
|
+
var _ref71 = (0, import_react_native33.useBackEventState)(),
|
|
155552
|
+
webBackHandlersRef = _ref71.handlersRef,
|
|
155553
|
+
hasWebBackEvent = _ref71.hasBackEvent,
|
|
155554
|
+
addWebBackEventListener = _ref71.addEventListener,
|
|
155555
|
+
removeWebBackEventListener = _ref71.removeEventListener;
|
|
155569
155556
|
var logging = useNavigationBarLogging();
|
|
155570
|
-
var
|
|
155571
|
-
openConfirm =
|
|
155557
|
+
var _ref72 = (0, import_tds_react_native13.useDialog)(),
|
|
155558
|
+
openConfirm = _ref72.openConfirm;
|
|
155572
155559
|
var global2 = getAppsInTossGlobals();
|
|
155573
155560
|
var addEventListener = (0, import_react25.useCallback)(function (handler) {
|
|
155574
155561
|
addWebBackEventListener(handler);
|
|
@@ -155770,18 +155757,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155770
155757
|
function mapFontScaleToCategory(fontScale, platform) {
|
|
155771
155758
|
return platform === "ios" ? mapIOSFontScaleToCategory(fontScale) : mapAndroidFontScaleToCategory(fontScale);
|
|
155772
155759
|
}
|
|
155773
|
-
function _useCreateUserAgent(
|
|
155774
|
-
var batteryModePreference =
|
|
155775
|
-
colorPreference =
|
|
155776
|
-
locale =
|
|
155777
|
-
navbarPreference =
|
|
155778
|
-
pureSafeArea =
|
|
155779
|
-
safeArea =
|
|
155780
|
-
safeAreaBottomTransparency =
|
|
155760
|
+
function _useCreateUserAgent(_ref74) {
|
|
155761
|
+
var batteryModePreference = _ref74.batteryModePreference,
|
|
155762
|
+
colorPreference = _ref74.colorPreference,
|
|
155763
|
+
locale = _ref74.locale,
|
|
155764
|
+
navbarPreference = _ref74.navbarPreference,
|
|
155765
|
+
pureSafeArea = _ref74.pureSafeArea,
|
|
155766
|
+
safeArea = _ref74.safeArea,
|
|
155767
|
+
safeAreaBottomTransparency = _ref74.safeAreaBottomTransparency;
|
|
155781
155768
|
var platform = (0, import_native_modules20.getPlatformOS)();
|
|
155782
155769
|
var appVersion = (0, import_native_modules20.getTossAppVersion)();
|
|
155783
|
-
var
|
|
155784
|
-
fontScale =
|
|
155770
|
+
var _ref75 = (0, import_react_native34.useWindowDimensions)(),
|
|
155771
|
+
fontScale = _ref75.fontScale;
|
|
155785
155772
|
var platformString = platform === "ios" ? "iPhone" : "Android phone";
|
|
155786
155773
|
var fontA11y = mapFontScaleToCategory(fontScale, platform);
|
|
155787
155774
|
var normalizedFontScale = convertToAndroidStyleScale(fontScale, platform);
|
|
@@ -155790,15 +155777,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155790
155777
|
var import_native_modules21 = _$$_REQUIRE(_dependencyMap[9], "@apps-in-toss/native-modules");
|
|
155791
155778
|
var import_react_native35 = _$$_REQUIRE(_dependencyMap[10], "@granite-js/react-native");
|
|
155792
155779
|
var import_react26 = _$$_REQUIRE(_dependencyMap[13], "react");
|
|
155793
|
-
function _useGeolocation(
|
|
155794
|
-
var accuracy =
|
|
155795
|
-
distanceInterval =
|
|
155796
|
-
timeInterval =
|
|
155780
|
+
function _useGeolocation(_ref76) {
|
|
155781
|
+
var accuracy = _ref76.accuracy,
|
|
155782
|
+
distanceInterval = _ref76.distanceInterval,
|
|
155783
|
+
timeInterval = _ref76.timeInterval;
|
|
155797
155784
|
var isVisible = (0, import_react_native35.useVisibility)();
|
|
155798
|
-
var
|
|
155799
|
-
|
|
155800
|
-
location =
|
|
155801
|
-
setLocation =
|
|
155785
|
+
var _ref77 = (0, import_react26.useState)(null),
|
|
155786
|
+
_ref78 = _slicedToArray(_ref77, 2),
|
|
155787
|
+
location = _ref78[0],
|
|
155788
|
+
setLocation = _ref78[1];
|
|
155802
155789
|
(0, import_react26.useEffect)(function () {
|
|
155803
155790
|
if (!isVisible) {
|
|
155804
155791
|
return;
|
|
@@ -155943,10 +155930,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155943
155930
|
var baseUrl = new URL(url);
|
|
155944
155931
|
var schemeUrl = new URL((0, import_react_native39.getSchemeUri)());
|
|
155945
155932
|
baseUrl.pathname = schemeUrl.pathname;
|
|
155946
|
-
for (var
|
|
155947
|
-
var
|
|
155948
|
-
var key =
|
|
155949
|
-
var value =
|
|
155933
|
+
for (var _ref79 of schemeUrl.searchParams.entries()) {
|
|
155934
|
+
var _ref80 = _slicedToArray(_ref79, 2);
|
|
155935
|
+
var key = _ref80[0];
|
|
155936
|
+
var value = _ref80[1];
|
|
155950
155937
|
baseUrl.searchParams.set(key, value);
|
|
155951
155938
|
}
|
|
155952
155939
|
return baseUrl;
|
|
@@ -155965,11 +155952,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155965
155952
|
}
|
|
155966
155953
|
return url;
|
|
155967
155954
|
}
|
|
155968
|
-
function _WebView(
|
|
155969
|
-
var type =
|
|
155970
|
-
local =
|
|
155971
|
-
onMessage =
|
|
155972
|
-
props = _objectWithoutProperties(
|
|
155955
|
+
function _WebView(_ref81) {
|
|
155956
|
+
var type = _ref81.type,
|
|
155957
|
+
local = _ref81.local,
|
|
155958
|
+
onMessage = _ref81.onMessage,
|
|
155959
|
+
props = _objectWithoutProperties(_ref81, _excluded3);
|
|
155973
155960
|
if (!TYPES.includes(type)) {
|
|
155974
155961
|
throw new Error(`Invalid WebView type: '${type}'`);
|
|
155975
155962
|
}
|
|
@@ -155984,49 +155971,49 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155984
155971
|
var global2 = getAppsInTossGlobals();
|
|
155985
155972
|
var navigationBarContext = useNavigationBarContext();
|
|
155986
155973
|
var safeAreaInsetsEmitter = useSafeAreaInsetsEmitter();
|
|
155987
|
-
var
|
|
155988
|
-
|
|
155989
|
-
allowsBackForwardNavigationGestures =
|
|
155990
|
-
setAllowsBackForwardNavigationGestures =
|
|
155974
|
+
var _ref82 = (0, import_react28.useState)(props.allowsBackForwardNavigationGestures),
|
|
155975
|
+
_ref83 = _slicedToArray(_ref82, 2),
|
|
155976
|
+
allowsBackForwardNavigationGestures = _ref83[0],
|
|
155977
|
+
setAllowsBackForwardNavigationGestures = _ref83[1];
|
|
155991
155978
|
var handler = useBridgeHandler({
|
|
155992
155979
|
onMessage: onMessage,
|
|
155993
155980
|
eventListenerMap: Object.assign({}, appsInTossEventBridges, {
|
|
155994
|
-
navigationAccessoryEvent: function navigationAccessoryEvent(
|
|
155995
|
-
var onEvent =
|
|
155996
|
-
onError =
|
|
155981
|
+
navigationAccessoryEvent: function navigationAccessoryEvent(_ref84) {
|
|
155982
|
+
var onEvent = _ref84.onEvent,
|
|
155983
|
+
onError = _ref84.onError;
|
|
155997
155984
|
return import_tds_react_native15.tdsEvent.addEventListener("navigationAccessoryEvent", {
|
|
155998
155985
|
onEvent: onEvent,
|
|
155999
155986
|
onError: onError
|
|
156000
155987
|
});
|
|
156001
155988
|
},
|
|
156002
|
-
backEvent: function backEvent(
|
|
156003
|
-
var onEvent =
|
|
155989
|
+
backEvent: function backEvent(_ref85) {
|
|
155990
|
+
var onEvent = _ref85.onEvent;
|
|
156004
155991
|
webBackHandler.addEventListener(onEvent);
|
|
156005
155992
|
return function () {
|
|
156006
155993
|
webBackHandler.removeEventListener(onEvent);
|
|
156007
155994
|
};
|
|
156008
155995
|
},
|
|
156009
|
-
updateLocationEvent: function updateLocationEvent(
|
|
156010
|
-
var onEvent =
|
|
156011
|
-
onError =
|
|
156012
|
-
options =
|
|
155996
|
+
updateLocationEvent: function updateLocationEvent(_ref86) {
|
|
155997
|
+
var onEvent = _ref86.onEvent,
|
|
155998
|
+
onError = _ref86.onError,
|
|
155999
|
+
options = _ref86.options;
|
|
156013
156000
|
return import_native_modules24.appsInTossEvent.addEventListener("updateLocationEvent", {
|
|
156014
156001
|
onEvent: onEvent,
|
|
156015
156002
|
onError: onError,
|
|
156016
156003
|
options: options
|
|
156017
156004
|
});
|
|
156018
156005
|
},
|
|
156019
|
-
safeAreaInsetsChange: function safeAreaInsetsChange(
|
|
156020
|
-
var onEvent =
|
|
156006
|
+
safeAreaInsetsChange: function safeAreaInsetsChange(_ref87) {
|
|
156007
|
+
var onEvent = _ref87.onEvent;
|
|
156021
156008
|
safeAreaInsetsEmitter.on("safeAreaInsetsChange", onEvent);
|
|
156022
156009
|
return function () {
|
|
156023
156010
|
safeAreaInsetsEmitter.off("safeAreaInsetsChange", onEvent);
|
|
156024
156011
|
};
|
|
156025
156012
|
},
|
|
156026
|
-
appBridgeCallbackEvent: function appBridgeCallbackEvent(
|
|
156027
|
-
var onEvent =
|
|
156028
|
-
onError =
|
|
156029
|
-
options =
|
|
156013
|
+
appBridgeCallbackEvent: function appBridgeCallbackEvent(_ref88) {
|
|
156014
|
+
var onEvent = _ref88.onEvent,
|
|
156015
|
+
onError = _ref88.onError,
|
|
156016
|
+
options = _ref88.options;
|
|
156030
156017
|
return import_native_modules24.appsInTossEvent.addEventListener("appBridgeCallbackEvent", {
|
|
156031
156018
|
onEvent: onEvent,
|
|
156032
156019
|
onError: onError,
|
|
@@ -156051,10 +156038,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156051
156038
|
right: insets.right
|
|
156052
156039
|
};
|
|
156053
156040
|
}
|
|
156054
|
-
}, Object.fromEntries(Object.entries(global2).map(function (
|
|
156055
|
-
var
|
|
156056
|
-
key =
|
|
156057
|
-
value =
|
|
156041
|
+
}, Object.fromEntries(Object.entries(global2).map(function (_ref89) {
|
|
156042
|
+
var _ref90 = _slicedToArray(_ref89, 2),
|
|
156043
|
+
key = _ref90[0],
|
|
156044
|
+
value = _ref90[1];
|
|
156058
156045
|
return [key, function () {
|
|
156059
156046
|
return value;
|
|
156060
156047
|
}];
|
|
@@ -156430,9 +156417,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156430
156417
|
};
|
|
156431
156418
|
}
|
|
156432
156419
|
if (response.resultType !== "SUCCESS") {
|
|
156433
|
-
var
|
|
156420
|
+
var _ref98, _response$error$reaso, _response$error, _mappedError$code;
|
|
156434
156421
|
var mappedError = API_RESULT_ERROR_MAP[response.resultType];
|
|
156435
|
-
var errorMessage = (
|
|
156422
|
+
var errorMessage = (_ref98 = (_response$error$reaso = (_response$error = response.error) == null ? void 0 : _response$error.reason) != null ? _response$error$reaso : mappedError == null ? void 0 : mappedError.message) != null ? _ref98 : ERROR_MESSAGES[ERROR_CODES.INTERNAL_ERROR];
|
|
156436
156423
|
var errorCode = (_mappedError$code = mappedError == null ? void 0 : mappedError.code) != null ? _mappedError$code : ERROR_CODES.INTERNAL_ERROR;
|
|
156437
156424
|
return {
|
|
156438
156425
|
type: "error",
|
|
@@ -156623,20 +156610,20 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156623
156610
|
var import_react_native42 = _$$_REQUIRE(_dependencyMap[12], "react-native");
|
|
156624
156611
|
var import_jsx_runtime20 = _$$_REQUIRE(_dependencyMap[14], "react/jsx-runtime");
|
|
156625
156612
|
var ARROW_PATH = "m7.5 20.4c-.5-.5-.5-1.2 0-1.7l6.7-6.7-6.8-6.7c-.5-.5-.5-1.2 0-1.7s1.2-.5 1.7 0l7.5 7.5c.5.5.5 1.2 0 1.7l-7.5 7.5c-.2.3-.5.4-.8.4s-.6-.1-.8-.3z";
|
|
156626
|
-
function FeedBannerAdView(
|
|
156627
|
-
var brandName =
|
|
156628
|
-
brandLogoUri =
|
|
156629
|
-
title =
|
|
156630
|
-
subtitle =
|
|
156631
|
-
mainImageUri =
|
|
156632
|
-
ctaText =
|
|
156633
|
-
ctaTextColor =
|
|
156634
|
-
ctaBackgroundColor =
|
|
156635
|
-
adClearanceText =
|
|
156636
|
-
colors =
|
|
156637
|
-
isAdBadgeEnabled =
|
|
156638
|
-
paddingStyle =
|
|
156639
|
-
_onPress2 =
|
|
156613
|
+
function FeedBannerAdView(_ref91) {
|
|
156614
|
+
var brandName = _ref91.brandName,
|
|
156615
|
+
brandLogoUri = _ref91.brandLogoUri,
|
|
156616
|
+
title = _ref91.title,
|
|
156617
|
+
subtitle = _ref91.subtitle,
|
|
156618
|
+
mainImageUri = _ref91.mainImageUri,
|
|
156619
|
+
ctaText = _ref91.ctaText,
|
|
156620
|
+
ctaTextColor = _ref91.ctaTextColor,
|
|
156621
|
+
ctaBackgroundColor = _ref91.ctaBackgroundColor,
|
|
156622
|
+
adClearanceText = _ref91.adClearanceText,
|
|
156623
|
+
colors = _ref91.colors,
|
|
156624
|
+
isAdBadgeEnabled = _ref91.isAdBadgeEnabled,
|
|
156625
|
+
paddingStyle = _ref91.paddingStyle,
|
|
156626
|
+
_onPress2 = _ref91.onPress;
|
|
156640
156627
|
var scale = (0, import_react29.useRef)(new import_react_native42.Animated.Value(1)).current;
|
|
156641
156628
|
var animateScale = function animateScale(toValue) {
|
|
156642
156629
|
import_react_native42.Animated.timing(scale, {
|
|
@@ -156924,15 +156911,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156924
156911
|
var import_react_native43 = _$$_REQUIRE(_dependencyMap[12], "react-native");
|
|
156925
156912
|
var import_jsx_runtime21 = _$$_REQUIRE(_dependencyMap[14], "react/jsx-runtime");
|
|
156926
156913
|
var SQUIRCLE_PATH = "M0 17.352C0 3.564 3.564 0 17.352 0H18.648C32.436 0 36 3.564 36 17.352V18.648C36 32.436 32.436 36 18.648 36H17.352C3.564 36 0 32.436 0 18.648V17.352Z";
|
|
156927
|
-
function ListBannerAdView(
|
|
156928
|
-
var title =
|
|
156929
|
-
subtitle =
|
|
156930
|
-
adClearanceText =
|
|
156931
|
-
adClearanceFontSize =
|
|
156932
|
-
imageUri =
|
|
156933
|
-
paddingStyle =
|
|
156934
|
-
colors =
|
|
156935
|
-
_onPress3 =
|
|
156914
|
+
function ListBannerAdView(_ref92) {
|
|
156915
|
+
var title = _ref92.title,
|
|
156916
|
+
subtitle = _ref92.subtitle,
|
|
156917
|
+
adClearanceText = _ref92.adClearanceText,
|
|
156918
|
+
adClearanceFontSize = _ref92.adClearanceFontSize,
|
|
156919
|
+
imageUri = _ref92.imageUri,
|
|
156920
|
+
paddingStyle = _ref92.paddingStyle,
|
|
156921
|
+
colors = _ref92.colors,
|
|
156922
|
+
_onPress3 = _ref92.onPress;
|
|
156936
156923
|
var scale = (0, import_react30.useRef)(new import_react_native43.Animated.Value(1)).current;
|
|
156937
156924
|
var clipIdRef = (0, import_react30.useRef)(`clip-${Math.random().toString(36).slice(2)}`);
|
|
156938
156925
|
var animateScale = function animateScale(toValue) {
|
|
@@ -157244,7 +157231,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157244
157231
|
return false;
|
|
157245
157232
|
}
|
|
157246
157233
|
function _InlineAd(props) {
|
|
157247
|
-
var _ad$requestId3, _ad$creative$id2, _ad$creative2, _listCreative$subTitl,
|
|
157234
|
+
var _ad$requestId3, _ad$creative$id2, _ad$creative2, _listCreative$subTitl, _ref97, _listCreative$adClear;
|
|
157248
157235
|
var adGroupId = props.adGroupId,
|
|
157249
157236
|
theme = props.theme,
|
|
157250
157237
|
tone = props.tone,
|
|
@@ -157257,14 +157244,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157257
157244
|
onAdFailedToRender = props.onAdFailedToRender,
|
|
157258
157245
|
onNoFill = props.onNoFill;
|
|
157259
157246
|
var slotIdRef = (0, import_react31.useRef)(createSlotId());
|
|
157260
|
-
var
|
|
157247
|
+
var _ref93 = (0, import_react31.useState)(null),
|
|
157248
|
+
_ref94 = _slicedToArray(_ref93, 2),
|
|
157249
|
+
ad = _ref94[0],
|
|
157250
|
+
setAd = _ref94[1];
|
|
157251
|
+
var _ref95 = (0, import_react31.useState)(true),
|
|
157261
157252
|
_ref96 = _slicedToArray(_ref95, 2),
|
|
157262
|
-
|
|
157263
|
-
|
|
157264
|
-
var _ref97 = (0, import_react31.useState)(true),
|
|
157265
|
-
_ref98 = _slicedToArray(_ref97, 2),
|
|
157266
|
-
isAdBadgeEnabled = _ref98[0],
|
|
157267
|
-
setIsAdBadgeEnabled = _ref98[1];
|
|
157253
|
+
isAdBadgeEnabled = _ref96[0],
|
|
157254
|
+
setIsAdBadgeEnabled = _ref96[1];
|
|
157268
157255
|
var eventTrackerRef = (0, import_react31.useRef)(null);
|
|
157269
157256
|
var eventPayloadRef = (0, import_react31.useRef)(null);
|
|
157270
157257
|
var hasRenderedRef = (0, import_react31.useRef)(false);
|
|
@@ -157404,7 +157391,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157404
157391
|
var listCreative = isListBanner ? ad.creative : null;
|
|
157405
157392
|
var feedCreative = isFeedBanner ? ad.creative : null;
|
|
157406
157393
|
var subtitleText = listCreative && isAdBadgeEnabled ? `${listCreative.subTitle} \u2022 AD` : (_listCreative$subTitl = listCreative == null ? void 0 : listCreative.subTitle) != null ? _listCreative$subTitl : "";
|
|
157407
|
-
var adClearanceText = (
|
|
157394
|
+
var adClearanceText = (_ref97 = (_listCreative$adClear = listCreative == null ? void 0 : listCreative.adClearanceText) != null ? _listCreative$adClear : feedCreative == null ? void 0 : feedCreative.adClearanceText) != null ? _ref97 : void 0;
|
|
157408
157395
|
var adClearanceFontSize = adClearanceText && adClearanceText.length >= 60 ? 6 : 8;
|
|
157409
157396
|
var imageUri = listCreative != null && listCreative.imageUrl && isSafeUrl(listCreative.imageUrl) ? listCreative.imageUrl : null;
|
|
157410
157397
|
var brandLogoUri = feedCreative != null && feedCreative.brandLogoUrl && isSafeUrl(feedCreative.brandLogoUrl) ? feedCreative.brandLogoUrl : null;
|