@apps-in-toss/web-framework 2.7.1 → 2.8.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/dist/config/index.js +12 -2
- package/dist/prebuilt/dev.android.rn84.js +627 -420
- package/dist/prebuilt/dev.ios.rn84.js +627 -420
- package/dist/prebuilt/prod.android.rn72.js +5426 -5756
- package/dist/prebuilt/prod.android.rn84.js +5416 -5746
- package/dist/prebuilt/prod.ios.rn72.js +5426 -5756
- package/dist/prebuilt/prod.ios.rn84.js +5416 -5746
- package/package.json +8 -8
|
@@ -137192,7 +137192,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137192
137192
|
AppsInToss: () => AppsInToss,
|
|
137193
137193
|
INTERNAL__onVisibilityChangedByTransparentServiceWeb: () => INTERNAL__onVisibilityChangedByTransparentServiceWeb,
|
|
137194
137194
|
InlineAd: () => InlineAd,
|
|
137195
|
-
OverlayProvider: () =>
|
|
137195
|
+
OverlayProvider: () => import_private5.OverlayProvider,
|
|
137196
137196
|
StartUpdateLocationPermissionError: () => import_types.StartUpdateLocationPermissionError,
|
|
137197
137197
|
WebView: () => WebView,
|
|
137198
137198
|
env: () => env,
|
|
@@ -137202,7 +137202,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137202
137202
|
showFullScreenAd: () => showFullScreenAd,
|
|
137203
137203
|
useCreateUserAgent: () => useCreateUserAgent,
|
|
137204
137204
|
useGeolocation: () => useGeolocation,
|
|
137205
|
-
useOverlay: () =>
|
|
137205
|
+
useOverlay: () => import_private5.useOverlay,
|
|
137206
137206
|
useTopNavigation: () => useTopNavigation,
|
|
137207
137207
|
useWaitForReturnNavigator: () => useWaitForReturnNavigator
|
|
137208
137208
|
});
|
|
@@ -137210,9 +137210,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137210
137210
|
var import_analytics2 = _$$_REQUIRE(_dependencyMap[4], "@apps-in-toss/analytics");
|
|
137211
137211
|
var import_analytics = _$$_REQUIRE(_dependencyMap[4], "@apps-in-toss/analytics");
|
|
137212
137212
|
var import_native_modules10 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
|
|
137213
|
-
var
|
|
137214
|
-
var
|
|
137215
|
-
var
|
|
137213
|
+
var import_react_native27 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
137214
|
+
var import_tds_react_native11 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
|
|
137215
|
+
var import_react_native28 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
137216
137216
|
var import_react_native2 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
137217
137217
|
var import_react = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
137218
137218
|
var env = {
|
|
@@ -137325,8 +137325,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137325
137325
|
return context;
|
|
137326
137326
|
}
|
|
137327
137327
|
var import_native_modules9 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
|
|
137328
|
-
var
|
|
137329
|
-
var
|
|
137328
|
+
var import_react16 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
137329
|
+
var import_react_native26 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
137330
137330
|
var import_native_modules4 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
|
|
137331
137331
|
var import_react_native9 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
137332
137332
|
var import_tds_react_native4 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
|
|
@@ -137802,7 +137802,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137802
137802
|
bottom: 0,
|
|
137803
137803
|
zIndex: Z_INDEX.PROFILE_OVERLAY
|
|
137804
137804
|
};
|
|
137805
|
-
var import_private5 = _$$_REQUIRE(_dependencyMap[12], "@toss/tds-react-native/private");
|
|
137806
137805
|
var import_react11 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
137807
137806
|
var import_react_native11 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
137808
137807
|
function useHardwareBackPress(handler) {
|
|
@@ -137937,7 +137936,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137937
137936
|
if (homeEvent.hasSubscriptions()) {
|
|
137938
137937
|
homeEvent.emit({});
|
|
137939
137938
|
} else {
|
|
137940
|
-
navigation.navigate("/"
|
|
137939
|
+
navigation.navigate("/", {}, {
|
|
137940
|
+
pop: true
|
|
137941
|
+
});
|
|
137941
137942
|
}
|
|
137942
137943
|
},
|
|
137943
137944
|
handleCloseButtonClick: () => {
|
|
@@ -138305,24 +138306,267 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138305
138306
|
children
|
|
138306
138307
|
});
|
|
138307
138308
|
}
|
|
138308
|
-
|
|
138309
|
-
|
|
138310
|
-
|
|
138311
|
-
uri: source
|
|
138312
|
-
}
|
|
138313
|
-
} : {
|
|
138314
|
-
name: source
|
|
138315
|
-
};
|
|
138316
|
-
}
|
|
138309
|
+
var import_react_native_safe_area_context = _$$_REQUIRE(_dependencyMap[13], "@granite-js/native/react-native-safe-area-context");
|
|
138310
|
+
var import_react_native19 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
138311
|
+
var import_tds_react_native8 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
|
|
138317
138312
|
var import_react14 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
138313
|
+
var import_react_native20 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
138318
138314
|
var import_jsx_runtime10 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
138315
|
+
function TopNavigation({
|
|
138316
|
+
left,
|
|
138317
|
+
center,
|
|
138318
|
+
right
|
|
138319
|
+
}) {
|
|
138320
|
+
var insets = (0, import_react_native_safe_area_context.useSafeAreaInsets)();
|
|
138321
|
+
var navigation = (0, import_react_native19.useNavigation)();
|
|
138322
|
+
(0, import_react14.useEffect)(() => {
|
|
138323
|
+
var _getAppsInTossGlobals = getAppsInTossGlobals(),
|
|
138324
|
+
navigationBar = _getAppsInTossGlobals.navigationBar;
|
|
138325
|
+
var parsedNavigationBar = navigationBar ? safeParseNavigationBar(navigationBar) : null;
|
|
138326
|
+
var transparent = parsedNavigationBar?.transparentBackground ?? false;
|
|
138327
|
+
var theme = parsedNavigationBar?.theme ?? "light";
|
|
138328
|
+
navigation.setOptions({
|
|
138329
|
+
headerTransparent: transparent,
|
|
138330
|
+
header: () => (0, import_jsx_runtime10.jsxs)(import_react_native20.View, {
|
|
138331
|
+
style: {
|
|
138332
|
+
width: "100%",
|
|
138333
|
+
backgroundColor: transparent ? void 0 : theme === "light" ? import_tds_react_native8.colors.lightThemeBackground : import_tds_react_native8.colors.darkThemeBackground
|
|
138334
|
+
},
|
|
138335
|
+
pointerEvents: "box-none",
|
|
138336
|
+
children: [(0, import_jsx_runtime10.jsx)(import_react_native20.View, {
|
|
138337
|
+
style: {
|
|
138338
|
+
width: "100%",
|
|
138339
|
+
height: insets.top
|
|
138340
|
+
}
|
|
138341
|
+
}), (0, import_jsx_runtime10.jsxs)(import_react_native20.View, {
|
|
138342
|
+
style: {
|
|
138343
|
+
width: "100%",
|
|
138344
|
+
height: 44,
|
|
138345
|
+
display: "flex",
|
|
138346
|
+
flexDirection: "row",
|
|
138347
|
+
alignItems: "center",
|
|
138348
|
+
paddingLeft: insets.left,
|
|
138349
|
+
paddingRight: insets.right
|
|
138350
|
+
},
|
|
138351
|
+
children: [(0, import_jsx_runtime10.jsx)(import_react_native20.View, {
|
|
138352
|
+
children: left
|
|
138353
|
+
}), (0, import_jsx_runtime10.jsx)(import_react_native20.View, {
|
|
138354
|
+
style: {
|
|
138355
|
+
flex: 1,
|
|
138356
|
+
display: "flex",
|
|
138357
|
+
flexDirection: "row",
|
|
138358
|
+
alignItems: "center"
|
|
138359
|
+
},
|
|
138360
|
+
children: center
|
|
138361
|
+
}), (0, import_jsx_runtime10.jsx)(import_react_native20.View, {
|
|
138362
|
+
style: {
|
|
138363
|
+
flexDirection: "row",
|
|
138364
|
+
alignItems: "center"
|
|
138365
|
+
},
|
|
138366
|
+
children: right
|
|
138367
|
+
})]
|
|
138368
|
+
})]
|
|
138369
|
+
})
|
|
138370
|
+
});
|
|
138371
|
+
}, [navigation, insets, left, center, right]);
|
|
138372
|
+
return (0, import_jsx_runtime10.jsx)(import_jsx_runtime10.Fragment, {});
|
|
138373
|
+
}
|
|
138374
|
+
var import_react_native_svg = _$$_REQUIRE(_dependencyMap[14], "@granite-js/native/react-native-svg");
|
|
138375
|
+
var import_react_native21 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
138376
|
+
var import_jsx_runtime11 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
138377
|
+
function BackButton({
|
|
138378
|
+
theme = "light",
|
|
138379
|
+
onPress,
|
|
138380
|
+
...restProps
|
|
138381
|
+
}) {
|
|
138382
|
+
return (0, import_jsx_runtime11.jsx)(import_react_native21.TouchableOpacity, {
|
|
138383
|
+
hitSlop: {
|
|
138384
|
+
top: 10,
|
|
138385
|
+
right: 10,
|
|
138386
|
+
bottom: 10,
|
|
138387
|
+
left: 10
|
|
138388
|
+
},
|
|
138389
|
+
style: {
|
|
138390
|
+
width: 24,
|
|
138391
|
+
height: 24,
|
|
138392
|
+
marginRight: 14
|
|
138393
|
+
},
|
|
138394
|
+
onPress,
|
|
138395
|
+
accessibilityRole: "button",
|
|
138396
|
+
accessibilityLabel: "\uB4A4\uB85C\uAC00\uAE30",
|
|
138397
|
+
...restProps,
|
|
138398
|
+
children: (0, import_jsx_runtime11.jsx)(import_react_native21.View, {
|
|
138399
|
+
style: {
|
|
138400
|
+
width: 24,
|
|
138401
|
+
height: 24
|
|
138402
|
+
},
|
|
138403
|
+
children: (0, import_jsx_runtime11.jsx)(import_react_native_svg.SvgXml, {
|
|
138404
|
+
width: 24,
|
|
138405
|
+
height: 24,
|
|
138406
|
+
xml: BACK_BUTTON_XML.replace(/__COLOR__/g, theme === "light" ? "#191F28" : "#FFFFFF")
|
|
138407
|
+
})
|
|
138408
|
+
})
|
|
138409
|
+
});
|
|
138410
|
+
}
|
|
138411
|
+
var BACK_BUTTON_XML = `<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" viewBox="0 0 24 24"><path d="m20.8 20.7c-.3 0-.6-.1-.8-.4l-7.5-7.5c-.5-.5-.5-1.2 0-1.7l7.5-7.5c.5-.5 1.2-.5 1.7 0s.5 1.2 0 1.7l-6.8 6.7 6.7 6.7c.5.5.5 1.2 0 1.7-.2.2-.5.3-.8.3z" fill="__COLOR__"/></svg>`;
|
|
138412
|
+
var import_tds_react_native9 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
|
|
138413
|
+
var import_react_native22 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
138414
|
+
var import_jsx_runtime12 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
138415
|
+
function HomeButton({
|
|
138416
|
+
theme = "light",
|
|
138417
|
+
onPress,
|
|
138418
|
+
children
|
|
138419
|
+
}) {
|
|
138420
|
+
return (0, import_jsx_runtime12.jsxs)(import_react_native22.TouchableOpacity, {
|
|
138421
|
+
onPress,
|
|
138422
|
+
style: {
|
|
138423
|
+
flexDirection: "row",
|
|
138424
|
+
alignItems: "center",
|
|
138425
|
+
gap: 6,
|
|
138426
|
+
height: 34,
|
|
138427
|
+
paddingLeft: 10,
|
|
138428
|
+
paddingRight: 10,
|
|
138429
|
+
backgroundColor: theme === "light" ? import_tds_react_native9.colors.greyOpacity50 : "rgba(0, 0, 1, 0.58)",
|
|
138430
|
+
borderRadius: 99
|
|
138431
|
+
},
|
|
138432
|
+
children: [children, (0, import_jsx_runtime12.jsx)(import_tds_react_native9.Icon, {
|
|
138433
|
+
name: "icon-home-mono",
|
|
138434
|
+
size: 18
|
|
138435
|
+
})]
|
|
138436
|
+
});
|
|
138437
|
+
}
|
|
138438
|
+
var import_react_native23 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
138439
|
+
var import_react_native24 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
138440
|
+
var import_jsx_runtime13 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
138441
|
+
function AppTitle({
|
|
138442
|
+
title,
|
|
138443
|
+
iconUrl,
|
|
138444
|
+
theme = "light"
|
|
138445
|
+
}) {
|
|
138446
|
+
return (0, import_jsx_runtime13.jsxs)(import_react_native24.View, {
|
|
138447
|
+
style: {
|
|
138448
|
+
flexDirection: "row",
|
|
138449
|
+
alignItems: "center",
|
|
138450
|
+
gap: 6
|
|
138451
|
+
},
|
|
138452
|
+
children: [iconUrl != null && iconUrl !== "" && (0, import_jsx_runtime13.jsx)(import_react_native23.Image, {
|
|
138453
|
+
source: {
|
|
138454
|
+
uri: iconUrl
|
|
138455
|
+
},
|
|
138456
|
+
style: {
|
|
138457
|
+
width: 18,
|
|
138458
|
+
height: 18,
|
|
138459
|
+
borderRadius: 6,
|
|
138460
|
+
overflow: "hidden"
|
|
138461
|
+
}
|
|
138462
|
+
}), (0, import_jsx_runtime13.jsx)(import_react_native24.Text, {
|
|
138463
|
+
numberOfLines: 1,
|
|
138464
|
+
ellipsizeMode: "tail",
|
|
138465
|
+
style: {
|
|
138466
|
+
color: theme === "light" ? "#191F28" : "#FFFFFF",
|
|
138467
|
+
fontSize: 16,
|
|
138468
|
+
fontWeight: "600"
|
|
138469
|
+
},
|
|
138470
|
+
children: title
|
|
138471
|
+
})]
|
|
138472
|
+
});
|
|
138473
|
+
}
|
|
138474
|
+
var import_tds_react_native10 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
|
|
138475
|
+
var import_react_native25 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
138476
|
+
var import_jsx_runtime14 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
138477
|
+
function Menu2({
|
|
138478
|
+
theme = "light",
|
|
138479
|
+
accessoryButton,
|
|
138480
|
+
onPressDots,
|
|
138481
|
+
onLongPressDots,
|
|
138482
|
+
onPressClose
|
|
138483
|
+
}) {
|
|
138484
|
+
var backgroundColor = theme === "light" ? import_tds_react_native10.colors.greyOpacity50 : "rgba(0, 0, 1, 0.58)";
|
|
138485
|
+
var iconColor = theme === "light" ? import_tds_react_native10.colors.greyOpacity600 : "rgba(253, 253, 255, 0.75)";
|
|
138486
|
+
return (0, import_jsx_runtime14.jsxs)(import_react_native25.View, {
|
|
138487
|
+
style: {
|
|
138488
|
+
flexDirection: "row",
|
|
138489
|
+
alignItems: "center",
|
|
138490
|
+
gap: 4
|
|
138491
|
+
},
|
|
138492
|
+
children: [accessoryButton && (0, import_jsx_runtime14.jsx)(import_react_native25.View, {
|
|
138493
|
+
style: {
|
|
138494
|
+
borderRadius: 99,
|
|
138495
|
+
overflow: "hidden"
|
|
138496
|
+
},
|
|
138497
|
+
children: (0, import_jsx_runtime14.jsx)(import_react_native25.TouchableOpacity, {
|
|
138498
|
+
style: {
|
|
138499
|
+
paddingVertical: 7,
|
|
138500
|
+
paddingHorizontal: 12,
|
|
138501
|
+
backgroundColor
|
|
138502
|
+
},
|
|
138503
|
+
onPress: () => {
|
|
138504
|
+
import_tds_react_native10.tdsEvent.emit("navigationAccessoryEvent", {
|
|
138505
|
+
id: accessoryButton.id
|
|
138506
|
+
});
|
|
138507
|
+
accessoryButton.onPress?.();
|
|
138508
|
+
},
|
|
138509
|
+
disabled: accessoryButton.disabled,
|
|
138510
|
+
children: (0, import_jsx_runtime14.jsx)(import_tds_react_native10.Icon, {
|
|
138511
|
+
name: accessoryButton.icon.name ?? "",
|
|
138512
|
+
accessibilityLabel: accessoryButton.title,
|
|
138513
|
+
color: iconColor,
|
|
138514
|
+
size: 20
|
|
138515
|
+
})
|
|
138516
|
+
})
|
|
138517
|
+
}), (0, import_jsx_runtime14.jsx)(import_react_native25.View, {
|
|
138518
|
+
style: {
|
|
138519
|
+
borderRadius: 99,
|
|
138520
|
+
overflow: "hidden",
|
|
138521
|
+
marginRight: 12
|
|
138522
|
+
},
|
|
138523
|
+
children: (0, import_jsx_runtime14.jsxs)(import_react_native25.View, {
|
|
138524
|
+
style: {
|
|
138525
|
+
flexDirection: "row",
|
|
138526
|
+
justifyContent: "center",
|
|
138527
|
+
alignItems: "center",
|
|
138528
|
+
gap: 12,
|
|
138529
|
+
height: 34,
|
|
138530
|
+
paddingHorizontal: 12,
|
|
138531
|
+
backgroundColor
|
|
138532
|
+
},
|
|
138533
|
+
children: [(0, import_jsx_runtime14.jsx)(import_react_native25.TouchableOpacity, {
|
|
138534
|
+
onPress: onPressDots,
|
|
138535
|
+
onLongPress: onLongPressDots,
|
|
138536
|
+
children: (0, import_jsx_runtime14.jsx)(import_tds_react_native10.Icon, {
|
|
138537
|
+
name: "icon-dots-mono",
|
|
138538
|
+
accessibilityLabel: "\uB354\uBCF4\uAE30",
|
|
138539
|
+
color: iconColor,
|
|
138540
|
+
size: 20
|
|
138541
|
+
})
|
|
138542
|
+
}), (0, import_jsx_runtime14.jsx)(import_react_native25.View, {
|
|
138543
|
+
style: {
|
|
138544
|
+
width: 1,
|
|
138545
|
+
height: 16,
|
|
138546
|
+
backgroundColor: theme === "light" ? import_tds_react_native10.colors.greyOpacity200 : "rgba(222, 222, 255, 0.19)"
|
|
138547
|
+
}
|
|
138548
|
+
}), (0, import_jsx_runtime14.jsx)(import_react_native25.TouchableOpacity, {
|
|
138549
|
+
onPress: onPressClose,
|
|
138550
|
+
children: (0, import_jsx_runtime14.jsx)(import_tds_react_native10.Icon, {
|
|
138551
|
+
name: "icon-appsintoss-close-mono",
|
|
138552
|
+
accessibilityLabel: "\uB2EB\uAE30",
|
|
138553
|
+
color: iconColor,
|
|
138554
|
+
size: 20
|
|
138555
|
+
})
|
|
138556
|
+
})]
|
|
138557
|
+
})
|
|
138558
|
+
})]
|
|
138559
|
+
});
|
|
138560
|
+
}
|
|
138561
|
+
var import_react15 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
138562
|
+
var import_jsx_runtime15 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
138319
138563
|
function NavigationBarImpressionArea({
|
|
138320
138564
|
children,
|
|
138321
138565
|
withHomeButton
|
|
138322
138566
|
}) {
|
|
138323
|
-
var hasLogged = (0,
|
|
138567
|
+
var hasLogged = (0, import_react15.useRef)(false);
|
|
138324
138568
|
var logging = useNavigationBarLogging();
|
|
138325
|
-
(0,
|
|
138569
|
+
(0, import_react15.useEffect)(() => {
|
|
138326
138570
|
if (hasLogged.current === false) {
|
|
138327
138571
|
logging.navBarImpression({
|
|
138328
138572
|
home_icon_yn: withHomeButton ? "Y" : "N"
|
|
@@ -138330,11 +138574,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138330
138574
|
hasLogged.current = true;
|
|
138331
138575
|
}
|
|
138332
138576
|
}, [logging, withHomeButton]);
|
|
138333
|
-
return (0,
|
|
138577
|
+
return (0, import_jsx_runtime15.jsx)(import_jsx_runtime15.Fragment, {
|
|
138334
138578
|
children
|
|
138335
138579
|
});
|
|
138336
138580
|
}
|
|
138337
|
-
var
|
|
138581
|
+
var import_jsx_runtime16 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
138338
138582
|
function DefaultNavigationBar() {
|
|
138339
138583
|
var globals = getAppsInTossGlobals();
|
|
138340
138584
|
var _useMoreButtonBottomS = useMoreButtonBottomSheet(),
|
|
@@ -138342,72 +138586,58 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138342
138586
|
var parsedNavigationBar = globals.navigationBar != null ? safeParseNavigationBar(globals.navigationBar) : null;
|
|
138343
138587
|
var withHomeButton = parsedNavigationBar?.withHomeButton ?? false;
|
|
138344
138588
|
var withBackButton = parsedNavigationBar?.withBackButton ?? true;
|
|
138589
|
+
var theme = parsedNavigationBar?.theme ?? "light";
|
|
138345
138590
|
var _useNavigationBarCont = useNavigationBarContext(),
|
|
138346
138591
|
navigationRightButton = _useNavigationBarCont.navigationRightButton;
|
|
138347
138592
|
var navigationEvent = useNavigationEvent();
|
|
138348
138593
|
useHardwareBackPress(navigationEvent.handleBack);
|
|
138349
|
-
return (0,
|
|
138594
|
+
return (0, import_jsx_runtime16.jsx)(NavigationBarImpressionArea, {
|
|
138350
138595
|
withHomeButton,
|
|
138351
|
-
children: (0,
|
|
138352
|
-
|
|
138353
|
-
|
|
138354
|
-
|
|
138355
|
-
|
|
138356
|
-
|
|
138357
|
-
|
|
138358
|
-
|
|
138359
|
-
|
|
138360
|
-
|
|
138361
|
-
|
|
138362
|
-
|
|
138363
|
-
children: (0, import_jsx_runtime11.jsx)(import_private5.NavigationBackButton, {
|
|
138364
|
-
onPress: navigationEvent.handleBack,
|
|
138365
|
-
canGoBack: false
|
|
138596
|
+
children: (0, import_jsx_runtime16.jsx)(TopNavigation, {
|
|
138597
|
+
left: withBackButton ? (0, import_jsx_runtime16.jsx)(BackButton, {
|
|
138598
|
+
theme,
|
|
138599
|
+
onPress: navigationEvent.handleBack
|
|
138600
|
+
}) : null,
|
|
138601
|
+
center: withHomeButton ? (0, import_jsx_runtime16.jsx)(HomeButton, {
|
|
138602
|
+
theme,
|
|
138603
|
+
onPress: navigationEvent.handleHomeButtonClick,
|
|
138604
|
+
children: (0, import_jsx_runtime16.jsx)(AppTitle, {
|
|
138605
|
+
theme,
|
|
138606
|
+
title: globals.brandDisplayName,
|
|
138607
|
+
iconUrl: globals.brandIcon
|
|
138366
138608
|
})
|
|
138609
|
+
}) : (0, import_jsx_runtime16.jsx)(AppTitle, {
|
|
138610
|
+
theme,
|
|
138611
|
+
title: globals.brandDisplayName,
|
|
138612
|
+
iconUrl: globals.brandIcon
|
|
138613
|
+
}),
|
|
138614
|
+
right: (0, import_jsx_runtime16.jsx)(Menu2, {
|
|
138615
|
+
theme,
|
|
138616
|
+
accessoryButton: navigationRightButton,
|
|
138617
|
+
onPressDots: openMoreButtonBottomSheet,
|
|
138618
|
+
onPressClose: navigationEvent.handleCloseButtonClick
|
|
138367
138619
|
})
|
|
138368
138620
|
})
|
|
138369
138621
|
});
|
|
138370
138622
|
}
|
|
138371
|
-
var
|
|
138372
|
-
var import_tds_react_native8 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
|
|
138373
|
-
var import_private6 = _$$_REQUIRE(_dependencyMap[12], "@toss/tds-react-native/private");
|
|
138374
|
-
var import_react_native19 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
138375
|
-
var import_jsx_runtime12 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
138623
|
+
var import_jsx_runtime17 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
138376
138624
|
function GameNavigationBar() {
|
|
138377
|
-
var safeAreaTop = (0, import_private6.useSafeAreaTop)();
|
|
138378
138625
|
var _useMoreButtonBottomS2 = useMoreButtonBottomSheet(),
|
|
138379
138626
|
openMoreButtonBottomSheet = _useMoreButtonBottomS2.open;
|
|
138380
138627
|
var navigationEvent = useNavigationEvent();
|
|
138381
138628
|
var _useNavigationBarCont2 = useNavigationBarContext(),
|
|
138382
138629
|
navigationRightButton = _useNavigationBarCont2.navigationRightButton;
|
|
138383
|
-
var
|
|
138384
|
-
|
|
138630
|
+
var _getAppsInTossGlobals2 = getAppsInTossGlobals(),
|
|
138631
|
+
navigationBar = _getAppsInTossGlobals2.navigationBar;
|
|
138632
|
+
var parsedNavigationBar = navigationBar ? safeParseNavigationBar(navigationBar) : null;
|
|
138385
138633
|
useHardwareBackPress(navigationEvent.handleBack);
|
|
138386
|
-
return (0,
|
|
138387
|
-
|
|
138388
|
-
|
|
138389
|
-
|
|
138390
|
-
|
|
138391
|
-
|
|
138392
|
-
|
|
138393
|
-
width: "100%",
|
|
138394
|
-
height: import_react_native19.Platform.OS === "ios" ? 44 : 54,
|
|
138395
|
-
flexDirection: "row",
|
|
138396
|
-
alignItems: "center",
|
|
138397
|
-
justifyContent: "flex-end",
|
|
138398
|
-
position: "absolute",
|
|
138399
|
-
zIndex: Z_INDEX.CLOSE_BUTTON,
|
|
138400
|
-
marginTop: safeAreaTop,
|
|
138401
|
-
paddingRight: safeAreaRight + 10
|
|
138402
|
-
},
|
|
138403
|
-
pointerEvents: "box-none",
|
|
138404
|
-
children: (0, import_jsx_runtime12.jsx)(import_private6.NavigationRightContent, {
|
|
138405
|
-
fixedRightButton: navigationRightButton,
|
|
138406
|
-
onPressDots: openMoreButtonBottomSheet,
|
|
138407
|
-
onPressClose: navigationEvent.handleCloseButtonClick,
|
|
138408
|
-
theme: "dark"
|
|
138409
|
-
})
|
|
138410
|
-
})]
|
|
138634
|
+
return (0, import_jsx_runtime17.jsx)(TopNavigation, {
|
|
138635
|
+
right: (0, import_jsx_runtime17.jsx)(Menu2, {
|
|
138636
|
+
theme: parsedNavigationBar?.theme ?? "dark",
|
|
138637
|
+
accessoryButton: navigationRightButton,
|
|
138638
|
+
onPressDots: openMoreButtonBottomSheet,
|
|
138639
|
+
onPressClose: navigationEvent.handleCloseButtonClick
|
|
138640
|
+
})
|
|
138411
138641
|
});
|
|
138412
138642
|
}
|
|
138413
138643
|
var RNNavigationBar = {
|
|
@@ -138415,22 +138645,22 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138415
138645
|
Game: GameNavigationBar
|
|
138416
138646
|
};
|
|
138417
138647
|
var bridge_entry_exports = {};
|
|
138418
|
-
__reExport(bridge_entry_exports, _$$_REQUIRE(_dependencyMap[
|
|
138419
|
-
__reExport(bridge_entry_exports, _$$_REQUIRE(_dependencyMap[
|
|
138420
|
-
__reExport(bridge_entry_exports, _$$_REQUIRE(_dependencyMap[
|
|
138421
|
-
var
|
|
138648
|
+
__reExport(bridge_entry_exports, _$$_REQUIRE(_dependencyMap[15], "@apps-in-toss/native-modules/async-bridges"));
|
|
138649
|
+
__reExport(bridge_entry_exports, _$$_REQUIRE(_dependencyMap[16], "@apps-in-toss/native-modules/constant-bridges"));
|
|
138650
|
+
__reExport(bridge_entry_exports, _$$_REQUIRE(_dependencyMap[17], "@apps-in-toss/native-modules/event-bridges"));
|
|
138651
|
+
var import_jsx_runtime18 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
138422
138652
|
function RNAppContainer({
|
|
138423
138653
|
children
|
|
138424
138654
|
}) {
|
|
138425
138655
|
var global2 = getAppsInTossGlobals();
|
|
138426
138656
|
switch (global2.appType) {
|
|
138427
138657
|
case "game":
|
|
138428
|
-
return (0,
|
|
138658
|
+
return (0, import_jsx_runtime18.jsx)(GameAppContainer, {
|
|
138429
138659
|
children
|
|
138430
138660
|
});
|
|
138431
138661
|
case "general":
|
|
138432
138662
|
default:
|
|
138433
|
-
return (0,
|
|
138663
|
+
return (0, import_jsx_runtime18.jsx)(GeneralAppContainer, {
|
|
138434
138664
|
children
|
|
138435
138665
|
});
|
|
138436
138666
|
}
|
|
@@ -138438,8 +138668,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138438
138668
|
function GameAppContainer({
|
|
138439
138669
|
children
|
|
138440
138670
|
}) {
|
|
138441
|
-
(0,
|
|
138442
|
-
if (
|
|
138671
|
+
(0, import_react16.useEffect)(() => {
|
|
138672
|
+
if (import_react_native26.Platform.OS === "ios") {
|
|
138443
138673
|
(0, import_native_modules9.setIosSwipeGestureEnabled)({
|
|
138444
138674
|
isEnabled: false
|
|
138445
138675
|
});
|
|
@@ -138451,8 +138681,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138451
138681
|
}
|
|
138452
138682
|
return;
|
|
138453
138683
|
}, []);
|
|
138454
|
-
return (0,
|
|
138455
|
-
children: [(0,
|
|
138684
|
+
return (0, import_jsx_runtime18.jsxs)(import_jsx_runtime18.Fragment, {
|
|
138685
|
+
children: [(0, import_jsx_runtime18.jsx)(RNNavigationBar.Game, {}), (0, bridge_entry_exports.getOperationalEnvironment)() === "toss" ? (0, import_jsx_runtime18.jsx)(GameInitializer, {
|
|
138456
138686
|
children
|
|
138457
138687
|
}) : children]
|
|
138458
138688
|
});
|
|
@@ -138460,11 +138690,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138460
138690
|
function GeneralAppContainer({
|
|
138461
138691
|
children
|
|
138462
138692
|
}) {
|
|
138463
|
-
return (0,
|
|
138464
|
-
children: [(0,
|
|
138693
|
+
return (0, import_jsx_runtime18.jsxs)(import_jsx_runtime18.Fragment, {
|
|
138694
|
+
children: [(0, import_jsx_runtime18.jsx)(RNNavigationBar.Default, {}), children]
|
|
138465
138695
|
});
|
|
138466
138696
|
}
|
|
138467
|
-
var
|
|
138697
|
+
var import_jsx_runtime19 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
138468
138698
|
function AppsInTossContainer(Container, {
|
|
138469
138699
|
children,
|
|
138470
138700
|
...initialProps
|
|
@@ -138473,18 +138703,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138473
138703
|
android: "5.220.0",
|
|
138474
138704
|
ios: "5.221.0"
|
|
138475
138705
|
})) {
|
|
138476
|
-
return (0,
|
|
138477
|
-
children: [(0,
|
|
138706
|
+
return (0, import_jsx_runtime19.jsxs)(import_jsx_runtime19.Fragment, {
|
|
138707
|
+
children: [(0, import_jsx_runtime19.jsx)(AppEvent.System, {
|
|
138478
138708
|
...initialProps
|
|
138479
|
-
}), (0,
|
|
138709
|
+
}), (0, import_jsx_runtime19.jsx)(AppUpdate, {})]
|
|
138480
138710
|
});
|
|
138481
138711
|
}
|
|
138482
|
-
return (0,
|
|
138483
|
-
children: [(0,
|
|
138712
|
+
return (0, import_jsx_runtime19.jsxs)(import_jsx_runtime19.Fragment, {
|
|
138713
|
+
children: [(0, import_jsx_runtime19.jsx)(AppEvent.System, {
|
|
138484
138714
|
...initialProps
|
|
138485
|
-
}), (0,
|
|
138715
|
+
}), (0, import_jsx_runtime19.jsx)(Container, {
|
|
138486
138716
|
...initialProps,
|
|
138487
|
-
children: (0,
|
|
138717
|
+
children: (0, import_jsx_runtime19.jsx)(import_tds_react_native11.TDSProvider, {
|
|
138488
138718
|
colorPreference: "light",
|
|
138489
138719
|
token: {
|
|
138490
138720
|
color: {
|
|
@@ -138501,13 +138731,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138501
138731
|
analytics
|
|
138502
138732
|
}) {
|
|
138503
138733
|
var appName = getAppName();
|
|
138504
|
-
var isRegistered =
|
|
138734
|
+
var isRegistered = import_react_native28.AppRegistry.getAppKeys().includes(appName);
|
|
138505
138735
|
if (!isRegistered) {
|
|
138506
138736
|
import_analytics.Analytics.init({
|
|
138507
138737
|
logger: params => void (0, import_native_modules10.eventLog)(params),
|
|
138508
138738
|
debug: analytics?.debug ?? __DEV__
|
|
138509
138739
|
});
|
|
138510
|
-
var App =
|
|
138740
|
+
var App = import_react_native27.Granite.registerApp(AppsInTossContainer.bind(null, container), {
|
|
138511
138741
|
appName,
|
|
138512
138742
|
context,
|
|
138513
138743
|
initialScheme: (0, import_native_modules10.getSchemeUri)(),
|
|
@@ -138515,7 +138745,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138515
138745
|
router: {
|
|
138516
138746
|
screenContainer: AppsInTossScreenContainer,
|
|
138517
138747
|
defaultScreenOption: {
|
|
138518
|
-
statusBarStyle: "dark"
|
|
138748
|
+
statusBarStyle: "dark",
|
|
138749
|
+
header: () => null
|
|
138519
138750
|
}
|
|
138520
138751
|
}
|
|
138521
138752
|
});
|
|
@@ -138527,21 +138758,21 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138527
138758
|
children
|
|
138528
138759
|
}) {
|
|
138529
138760
|
var isRNApp = getAppsInTossGlobals().webViewType == null;
|
|
138530
|
-
return (0,
|
|
138531
|
-
children: isRNApp ? (0,
|
|
138761
|
+
return (0, import_jsx_runtime19.jsx)(NavigationBarContextProvider, {
|
|
138762
|
+
children: isRNApp ? (0, import_jsx_runtime19.jsx)(import_analytics.Analytics.Screen, {
|
|
138532
138763
|
onLog: params => sendLog({
|
|
138533
138764
|
log_type: params.log_type,
|
|
138534
138765
|
log_name: "appsintoss_app_visit__appssintoss_systemlog",
|
|
138535
138766
|
params: {
|
|
138536
138767
|
...params.params,
|
|
138537
138768
|
schema_id: 5175906,
|
|
138538
|
-
app_name:
|
|
138769
|
+
app_name: import_react_native27.Granite.appName,
|
|
138539
138770
|
log_name: params.log_name
|
|
138540
138771
|
}
|
|
138541
138772
|
}, {
|
|
138542
138773
|
pipelines: ["core"]
|
|
138543
138774
|
}),
|
|
138544
|
-
children: (0,
|
|
138775
|
+
children: (0, import_jsx_runtime19.jsx)(RNAppContainer, {
|
|
138545
138776
|
children
|
|
138546
138777
|
})
|
|
138547
138778
|
}) : children
|
|
@@ -138559,75 +138790,51 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138559
138790
|
registerApp
|
|
138560
138791
|
};
|
|
138561
138792
|
var import_native_modules18 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
|
|
138562
|
-
var appsInTossAsyncBridges = __toESM(_$$_REQUIRE(_dependencyMap[
|
|
138563
|
-
var appsInTossConstantBridges = __toESM(_$$_REQUIRE(_dependencyMap[
|
|
138564
|
-
var appsInTossEventBridges = __toESM(_$$_REQUIRE(_dependencyMap[
|
|
138565
|
-
var import_user_scripts = _$$_REQUIRE(_dependencyMap[
|
|
138566
|
-
var
|
|
138567
|
-
var
|
|
138568
|
-
var
|
|
138569
|
-
var
|
|
138570
|
-
var
|
|
138571
|
-
var import_react_native37 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
138793
|
+
var appsInTossAsyncBridges = __toESM(_$$_REQUIRE(_dependencyMap[15], "@apps-in-toss/native-modules/async-bridges"), 1);
|
|
138794
|
+
var appsInTossConstantBridges = __toESM(_$$_REQUIRE(_dependencyMap[16], "@apps-in-toss/native-modules/constant-bridges"), 1);
|
|
138795
|
+
var appsInTossEventBridges = __toESM(_$$_REQUIRE(_dependencyMap[17], "@apps-in-toss/native-modules/event-bridges"), 1);
|
|
138796
|
+
var import_user_scripts = _$$_REQUIRE(_dependencyMap[18], "@apps-in-toss/user-scripts");
|
|
138797
|
+
var import_react_native_safe_area_context3 = _$$_REQUIRE(_dependencyMap[13], "@granite-js/native/react-native-safe-area-context");
|
|
138798
|
+
var import_react_native41 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
138799
|
+
var import_tds_react_native14 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
|
|
138800
|
+
var import_react27 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
138801
|
+
var import_react_native42 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
138572
138802
|
var import_native_modules11 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
|
|
138573
|
-
var import_react_native_webview = _$$_REQUIRE(_dependencyMap[
|
|
138803
|
+
var import_react_native_webview = _$$_REQUIRE(_dependencyMap[19], "@granite-js/native/react-native-webview");
|
|
138804
|
+
var import_react18 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
138805
|
+
var import_react_native30 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
138806
|
+
var import_react_native29 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
138807
|
+
var import_tds_react_native12 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
|
|
138574
138808
|
var import_react17 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
138575
|
-
var
|
|
138576
|
-
var import_react_native_safe_area_context2 = _$$_REQUIRE(_dependencyMap[13], "@granite-js/native/react-native-safe-area-context");
|
|
138577
|
-
var import_react_native23 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
138578
|
-
var import_tds_react_native10 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
|
|
138579
|
-
var import_private7 = _$$_REQUIRE(_dependencyMap[12], "@toss/tds-react-native/private");
|
|
138580
|
-
var import_react16 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
138581
|
-
var import_react_native24 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
138582
|
-
var import_jsx_runtime15 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
138809
|
+
var import_jsx_runtime20 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
138583
138810
|
function GameWebviewNavigationBar() {
|
|
138584
|
-
var
|
|
138585
|
-
|
|
138586
|
-
openConfirm = _ref26.openConfirm;
|
|
138811
|
+
var _ref25 = (0, import_tds_react_native12.useDialog)(),
|
|
138812
|
+
openConfirm = _ref25.openConfirm;
|
|
138587
138813
|
var logging = useNavigationBarLogging();
|
|
138588
138814
|
var _useMoreButtonBottomS3 = useMoreButtonBottomSheet(),
|
|
138589
138815
|
openMoreButtonBottomSheet = _useMoreButtonBottomS3.open;
|
|
138590
138816
|
var _useNavigationBarCont3 = useNavigationBarContext(),
|
|
138591
138817
|
navigationRightButton = _useNavigationBarCont3.navigationRightButton;
|
|
138592
|
-
var
|
|
138593
|
-
|
|
138594
|
-
var
|
|
138818
|
+
var _getAppsInTossGlobals3 = getAppsInTossGlobals(),
|
|
138819
|
+
navigationBar = _getAppsInTossGlobals3.navigationBar;
|
|
138820
|
+
var parsedNavigationBar = navigationBar ? safeParseNavigationBar(navigationBar) : null;
|
|
138821
|
+
var handleGameWebviewClose = (0, import_react17.useCallback)(_asyncToGenerator(function* () {
|
|
138595
138822
|
logging.closeButtonClick();
|
|
138596
|
-
(0,
|
|
138823
|
+
(0, import_react_native29.closeView)();
|
|
138597
138824
|
}), [logging, openConfirm]);
|
|
138598
|
-
return (0,
|
|
138599
|
-
|
|
138600
|
-
|
|
138601
|
-
|
|
138602
|
-
|
|
138603
|
-
|
|
138604
|
-
|
|
138605
|
-
width: "100%",
|
|
138606
|
-
height: import_react_native24.Platform.OS === "ios" ? 44 : 54,
|
|
138607
|
-
flexDirection: "row",
|
|
138608
|
-
alignItems: "center",
|
|
138609
|
-
justifyContent: "flex-end",
|
|
138610
|
-
position: "absolute",
|
|
138611
|
-
zIndex: Z_INDEX.CLOSE_BUTTON,
|
|
138612
|
-
marginTop: safeAreaTop,
|
|
138613
|
-
paddingRight: safeAreaRight + 10
|
|
138614
|
-
},
|
|
138615
|
-
pointerEvents: "box-none",
|
|
138616
|
-
children: (0, import_jsx_runtime15.jsx)(import_private7.NavigationRightContent, {
|
|
138617
|
-
fixedRightButton: navigationRightButton,
|
|
138618
|
-
onPressDots: openMoreButtonBottomSheet,
|
|
138619
|
-
onPressClose: () => {
|
|
138620
|
-
handleGameWebviewClose();
|
|
138621
|
-
},
|
|
138622
|
-
theme: "dark"
|
|
138623
|
-
})
|
|
138624
|
-
})]
|
|
138825
|
+
return (0, import_jsx_runtime20.jsx)(TopNavigation, {
|
|
138826
|
+
right: (0, import_jsx_runtime20.jsx)(Menu2, {
|
|
138827
|
+
theme: parsedNavigationBar?.theme ?? "dark",
|
|
138828
|
+
accessoryButton: navigationRightButton,
|
|
138829
|
+
onPressDots: openMoreButtonBottomSheet,
|
|
138830
|
+
onPressClose: handleGameWebviewClose
|
|
138831
|
+
})
|
|
138625
138832
|
});
|
|
138626
138833
|
}
|
|
138627
|
-
var
|
|
138628
|
-
var GameWebView = (0,
|
|
138629
|
-
(0,
|
|
138630
|
-
if (
|
|
138834
|
+
var import_jsx_runtime21 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
138835
|
+
var GameWebView = (0, import_react18.forwardRef)(function GameWebView2(props, ref) {
|
|
138836
|
+
(0, import_react18.useEffect)(() => {
|
|
138837
|
+
if (import_react_native30.Platform.OS === "ios") {
|
|
138631
138838
|
(0, import_native_modules11.setIosSwipeGestureEnabled)({
|
|
138632
138839
|
isEnabled: false
|
|
138633
138840
|
});
|
|
@@ -138639,24 +138846,23 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138639
138846
|
}
|
|
138640
138847
|
return;
|
|
138641
138848
|
}, []);
|
|
138642
|
-
return (0,
|
|
138643
|
-
children: [(0,
|
|
138644
|
-
children: (0,
|
|
138849
|
+
return (0, import_jsx_runtime21.jsxs)(import_jsx_runtime21.Fragment, {
|
|
138850
|
+
children: [(0, import_jsx_runtime21.jsx)(GameWebviewNavigationBar, {}), (0, import_native_modules11.getOperationalEnvironment)() === "toss" ? (0, import_jsx_runtime21.jsx)(GameInitializer, {
|
|
138851
|
+
children: (0, import_jsx_runtime21.jsx)(import_react_native_webview.WebView, {
|
|
138645
138852
|
ref,
|
|
138646
138853
|
...props
|
|
138647
138854
|
})
|
|
138648
|
-
}) : (0,
|
|
138855
|
+
}) : (0, import_jsx_runtime21.jsx)(import_react_native_webview.WebView, {
|
|
138649
138856
|
ref,
|
|
138650
138857
|
...props
|
|
138651
138858
|
})]
|
|
138652
138859
|
});
|
|
138653
138860
|
});
|
|
138654
|
-
var import_react_native_webview2 = _$$_REQUIRE(_dependencyMap[
|
|
138861
|
+
var import_react_native_webview2 = _$$_REQUIRE(_dependencyMap[19], "@granite-js/native/react-native-webview");
|
|
138862
|
+
var import_react20 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
138863
|
+
var import_react_native31 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
138655
138864
|
var import_react19 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
138656
|
-
var
|
|
138657
|
-
var import_private8 = _$$_REQUIRE(_dependencyMap[12], "@toss/tds-react-native/private");
|
|
138658
|
-
var import_react18 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
138659
|
-
var import_jsx_runtime17 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
138865
|
+
var import_jsx_runtime22 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
138660
138866
|
function PartnerWebviewNavigationBar({
|
|
138661
138867
|
onBackButtonClick,
|
|
138662
138868
|
onHomeButtonClick
|
|
@@ -138668,45 +138874,53 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138668
138874
|
var parsedNavigationBar = globals.navigationBar != null ? safeParseNavigationBar(globals.navigationBar) : null;
|
|
138669
138875
|
var withHomeButton = parsedNavigationBar?.withHomeButton ?? false;
|
|
138670
138876
|
var withBackButton = parsedNavigationBar?.withBackButton ?? true;
|
|
138877
|
+
var theme = parsedNavigationBar?.theme ?? "light";
|
|
138671
138878
|
var _useNavigationBarCont4 = useNavigationBarContext(),
|
|
138672
138879
|
navigationRightButton = _useNavigationBarCont4.navigationRightButton;
|
|
138673
|
-
var handleClose = (0,
|
|
138880
|
+
var handleClose = (0, import_react19.useCallback)(_asyncToGenerator(function* () {
|
|
138674
138881
|
logging.closeButtonClick();
|
|
138675
|
-
(0,
|
|
138882
|
+
(0, import_react_native31.closeView)();
|
|
138676
138883
|
}), [logging]);
|
|
138677
|
-
return (0,
|
|
138884
|
+
return (0, import_jsx_runtime22.jsx)(NavigationBarImpressionArea, {
|
|
138678
138885
|
withHomeButton,
|
|
138679
|
-
children: (0,
|
|
138680
|
-
|
|
138681
|
-
|
|
138682
|
-
|
|
138683
|
-
|
|
138684
|
-
|
|
138685
|
-
|
|
138686
|
-
|
|
138687
|
-
|
|
138688
|
-
|
|
138689
|
-
|
|
138690
|
-
|
|
138691
|
-
children: (0, import_jsx_runtime17.jsx)(import_private8.NavigationBackButton, {
|
|
138692
|
-
onPress: onBackButtonClick,
|
|
138693
|
-
canGoBack: false
|
|
138886
|
+
children: (0, import_jsx_runtime22.jsx)(TopNavigation, {
|
|
138887
|
+
left: withBackButton ? (0, import_jsx_runtime22.jsx)(BackButton, {
|
|
138888
|
+
theme,
|
|
138889
|
+
onPress: onBackButtonClick
|
|
138890
|
+
}) : null,
|
|
138891
|
+
center: withHomeButton ? (0, import_jsx_runtime22.jsx)(HomeButton, {
|
|
138892
|
+
theme,
|
|
138893
|
+
onPress: onHomeButtonClick,
|
|
138894
|
+
children: (0, import_jsx_runtime22.jsx)(AppTitle, {
|
|
138895
|
+
theme,
|
|
138896
|
+
title: globals.brandDisplayName,
|
|
138897
|
+
iconUrl: globals.brandIcon
|
|
138694
138898
|
})
|
|
138899
|
+
}) : (0, import_jsx_runtime22.jsx)(AppTitle, {
|
|
138900
|
+
theme,
|
|
138901
|
+
title: globals.brandDisplayName,
|
|
138902
|
+
iconUrl: globals.brandIcon
|
|
138903
|
+
}),
|
|
138904
|
+
right: (0, import_jsx_runtime22.jsx)(Menu2, {
|
|
138905
|
+
theme,
|
|
138906
|
+
accessoryButton: navigationRightButton,
|
|
138907
|
+
onPressDots: openMoreButtonBottomSheet,
|
|
138908
|
+
onPressClose: handleClose
|
|
138695
138909
|
})
|
|
138696
138910
|
})
|
|
138697
138911
|
});
|
|
138698
138912
|
}
|
|
138699
|
-
var
|
|
138700
|
-
var PartnerWebView = (0,
|
|
138913
|
+
var import_jsx_runtime23 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
138914
|
+
var PartnerWebView = (0, import_react20.forwardRef)(function PartnerWebViewScreen({
|
|
138701
138915
|
onBackButtonClick,
|
|
138702
138916
|
onHomeButtonClick,
|
|
138703
138917
|
...webViewProps
|
|
138704
138918
|
}, ref) {
|
|
138705
|
-
return (0,
|
|
138706
|
-
children: [(0,
|
|
138919
|
+
return (0, import_jsx_runtime23.jsxs)(import_jsx_runtime23.Fragment, {
|
|
138920
|
+
children: [(0, import_jsx_runtime23.jsx)(PartnerWebviewNavigationBar, {
|
|
138707
138921
|
onBackButtonClick,
|
|
138708
138922
|
onHomeButtonClick
|
|
138709
|
-
}), (0,
|
|
138923
|
+
}), (0, import_jsx_runtime23.jsx)(import_react_native_webview2.WebView, {
|
|
138710
138924
|
ref,
|
|
138711
138925
|
...webViewProps,
|
|
138712
138926
|
style: {
|
|
@@ -138794,19 +139008,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138794
139008
|
var random = Math.random().toString(36).substring(2, 7).toUpperCase();
|
|
138795
139009
|
return `ait-${timestamp}${random}`;
|
|
138796
139010
|
}
|
|
138797
|
-
var
|
|
139011
|
+
var import_react_native32 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
138798
139012
|
function getReferrer() {
|
|
138799
139013
|
try {
|
|
138800
|
-
return new URL((0,
|
|
139014
|
+
return new URL((0, import_react_native32.getSchemeUri)()).searchParams.get("referrer");
|
|
138801
139015
|
} catch {
|
|
138802
139016
|
return null;
|
|
138803
139017
|
}
|
|
138804
139018
|
}
|
|
138805
139019
|
var import_native_modules13 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
|
|
138806
|
-
var
|
|
139020
|
+
var import_react_native33 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
138807
139021
|
function getIsDev() {
|
|
138808
139022
|
try {
|
|
138809
|
-
return new URL((0,
|
|
139023
|
+
return new URL((0, import_react_native33.getSchemeUri)()).searchParams.get("isDev") === "true";
|
|
138810
139024
|
} catch {
|
|
138811
139025
|
return false;
|
|
138812
139026
|
}
|
|
@@ -139108,14 +139322,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139108
139322
|
return unregisterCallbacks;
|
|
139109
139323
|
}
|
|
139110
139324
|
showFullScreenAd.isSupported = import_native_modules14.GoogleAdMob.showAppsInTossAdMob.isSupported;
|
|
139111
|
-
var
|
|
139325
|
+
var import_react_native34 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
139112
139326
|
function tossAdEventLog(_x3) {
|
|
139113
139327
|
return _tossAdEventLog.apply(this, arguments);
|
|
139114
139328
|
}
|
|
139115
139329
|
function _tossAdEventLog() {
|
|
139116
139330
|
_tossAdEventLog = _asyncToGenerator(function* (params) {
|
|
139117
139331
|
var referrer = getReferrer();
|
|
139118
|
-
var appName =
|
|
139332
|
+
var appName = import_react_native34.Granite.appName;
|
|
139119
139333
|
var eventLogParams = {
|
|
139120
139334
|
...params,
|
|
139121
139335
|
params: {
|
|
@@ -139130,7 +139344,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139130
139344
|
});
|
|
139131
139345
|
return _tossAdEventLog.apply(this, arguments);
|
|
139132
139346
|
}
|
|
139133
|
-
var
|
|
139347
|
+
var import_react21 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
139134
139348
|
function serializeError(error) {
|
|
139135
139349
|
return JSON.stringify(error, (_, value) => {
|
|
139136
139350
|
if (value instanceof Error) {
|
|
@@ -139161,12 +139375,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139161
139375
|
return;
|
|
139162
139376
|
}
|
|
139163
139377
|
var wrappedFunc = function () {
|
|
139164
|
-
var
|
|
139378
|
+
var _ref28 = _asyncToGenerator(function* (...args2) {
|
|
139165
139379
|
var result = yield func(...args2);
|
|
139166
139380
|
return result;
|
|
139167
139381
|
});
|
|
139168
139382
|
return function wrappedFunc() {
|
|
139169
|
-
return
|
|
139383
|
+
return _ref28.apply(this, arguments);
|
|
139170
139384
|
};
|
|
139171
139385
|
}();
|
|
139172
139386
|
wrappedFunc(...args).then(result => {
|
|
@@ -139187,12 +139401,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139187
139401
|
asyncHandlerMap,
|
|
139188
139402
|
eventListenerMap
|
|
139189
139403
|
}) {
|
|
139190
|
-
var ref = (0,
|
|
139191
|
-
var injectedJavaScript = (0,
|
|
139404
|
+
var ref = (0, import_react21.useRef)(null);
|
|
139405
|
+
var injectedJavaScript = (0, import_react21.useMemo)(() => `window.__CONSTANT_HANDLER_MAP = ${JSON.stringify(Object.entries(constantHandlerMap).reduce((acc, [key, value]) => {
|
|
139192
139406
|
acc[key] = typeof value === "function" ? value() : value;
|
|
139193
139407
|
return acc;
|
|
139194
139408
|
}, {}))};`, [constantHandlerMap]);
|
|
139195
|
-
(0,
|
|
139409
|
+
(0, import_react21.useEffect)(() => {
|
|
139196
139410
|
ref.current?.injectJavaScript(injectedJavaScript);
|
|
139197
139411
|
}, [injectedJavaScript]);
|
|
139198
139412
|
var createHandleOnEvent = (functionName, eventId) => response => {
|
|
@@ -139206,8 +139420,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139206
139420
|
window.__GRANITE_NATIVE_EMITTER.emit('${functionName}/onError/${eventId}', ${serializedError});
|
|
139207
139421
|
`);
|
|
139208
139422
|
};
|
|
139209
|
-
var $onMessage = (0,
|
|
139210
|
-
var
|
|
139423
|
+
var $onMessage = (0, import_react21.useCallback)(function () {
|
|
139424
|
+
var _ref29 = _asyncToGenerator(function* (e) {
|
|
139211
139425
|
onMessage?.(e);
|
|
139212
139426
|
var data = parseNativeEventData(e.nativeEvent.data);
|
|
139213
139427
|
if (typeof data !== "object" || data === null || typeof data.functionName !== "string" || typeof data.eventId !== "string" || typeof data.type !== "string" || !["addEventListener", "removeEventListener", "method"].includes(data.type)) {
|
|
@@ -139250,7 +139464,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139250
139464
|
}
|
|
139251
139465
|
});
|
|
139252
139466
|
return function (_x4) {
|
|
139253
|
-
return
|
|
139467
|
+
return _ref29.apply(this, arguments);
|
|
139254
139468
|
};
|
|
139255
139469
|
}(), [onMessage]);
|
|
139256
139470
|
return {
|
|
@@ -139267,21 +139481,21 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139267
139481
|
return null;
|
|
139268
139482
|
}
|
|
139269
139483
|
}
|
|
139270
|
-
var
|
|
139271
|
-
var
|
|
139484
|
+
var import_react_native_safe_area_context2 = _$$_REQUIRE(_dependencyMap[13], "@granite-js/native/react-native-safe-area-context");
|
|
139485
|
+
var import_react22 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
139272
139486
|
function useSafeAreaInsetsEvent() {
|
|
139273
|
-
var insets = (0,
|
|
139274
|
-
(0,
|
|
139487
|
+
var insets = (0, import_react_native_safe_area_context2.useSafeAreaInsets)();
|
|
139488
|
+
(0, import_react22.useEffect)(() => {
|
|
139275
139489
|
safeAreaInsetsChange.emit(insets);
|
|
139276
139490
|
}, [insets]);
|
|
139277
|
-
(0,
|
|
139491
|
+
(0, import_react22.useEffect)(() => {
|
|
139278
139492
|
return () => safeAreaInsetsChange.clearSubscriptions();
|
|
139279
139493
|
}, []);
|
|
139280
139494
|
return safeAreaInsetsChange;
|
|
139281
139495
|
}
|
|
139282
|
-
var
|
|
139496
|
+
var import_react_native35 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
139497
|
+
var import_react24 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
139283
139498
|
var import_react23 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
139284
|
-
var import_react22 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
139285
139499
|
var INITIAL_STATE = {
|
|
139286
139500
|
stack: [],
|
|
139287
139501
|
index: -1
|
|
@@ -139330,11 +139544,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139330
139544
|
}
|
|
139331
139545
|
}
|
|
139332
139546
|
function useWebViewHistory() {
|
|
139333
|
-
var
|
|
139334
|
-
|
|
139335
|
-
state =
|
|
139336
|
-
dispatch =
|
|
139337
|
-
var onNavigationStateChange = (0,
|
|
139547
|
+
var _ref30 = (0, import_react23.useReducer)(reducer, INITIAL_STATE),
|
|
139548
|
+
_ref31 = _slicedToArray(_ref30, 2),
|
|
139549
|
+
state = _ref31[0],
|
|
139550
|
+
dispatch = _ref31[1];
|
|
139551
|
+
var onNavigationStateChange = (0, import_react23.useCallback)(({
|
|
139338
139552
|
url,
|
|
139339
139553
|
canGoForward: canGoForward2
|
|
139340
139554
|
}) => {
|
|
@@ -139344,7 +139558,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139344
139558
|
canGoForward: canGoForward2
|
|
139345
139559
|
});
|
|
139346
139560
|
}, []);
|
|
139347
|
-
var
|
|
139561
|
+
var _ref32 = (0, import_react23.useMemo)(() => {
|
|
139348
139562
|
var canBack = state.index > 0;
|
|
139349
139563
|
var canFwd = state.index >= 0 && state.index < state.stack.length - 1;
|
|
139350
139564
|
return {
|
|
@@ -139352,8 +139566,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139352
139566
|
canGoForward: canFwd
|
|
139353
139567
|
};
|
|
139354
139568
|
}, [state.index, state.stack.length]),
|
|
139355
|
-
canGoBack =
|
|
139356
|
-
canGoForward =
|
|
139569
|
+
canGoBack = _ref32.canGoBack,
|
|
139570
|
+
canGoForward = _ref32.canGoForward;
|
|
139357
139571
|
return {
|
|
139358
139572
|
onNavigationStateChange,
|
|
139359
139573
|
hasHistory: canGoBack,
|
|
@@ -139364,19 +139578,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139364
139578
|
var _useWebViewHistory = useWebViewHistory(),
|
|
139365
139579
|
hasHistory = _useWebViewHistory.hasHistory,
|
|
139366
139580
|
onNavigationStateChange = _useWebViewHistory.onNavigationStateChange;
|
|
139367
|
-
var
|
|
139368
|
-
webBackHandlersRef =
|
|
139369
|
-
hasWebBackEvent =
|
|
139370
|
-
addWebBackEventListener =
|
|
139371
|
-
removeWebBackEventListener =
|
|
139581
|
+
var _ref33 = (0, import_react_native35.useBackEventState)(),
|
|
139582
|
+
webBackHandlersRef = _ref33.handlersRef,
|
|
139583
|
+
hasWebBackEvent = _ref33.hasBackEvent,
|
|
139584
|
+
addWebBackEventListener = _ref33.addEventListener,
|
|
139585
|
+
removeWebBackEventListener = _ref33.removeEventListener;
|
|
139372
139586
|
var logging = useNavigationBarLogging();
|
|
139373
|
-
var addEventListener = (0,
|
|
139587
|
+
var addEventListener = (0, import_react24.useCallback)(handler => {
|
|
139374
139588
|
addWebBackEventListener(handler);
|
|
139375
139589
|
}, [addWebBackEventListener]);
|
|
139376
|
-
var removeEventListener = (0,
|
|
139590
|
+
var removeEventListener = (0, import_react24.useCallback)(handler => {
|
|
139377
139591
|
removeWebBackEventListener(handler);
|
|
139378
139592
|
}, [removeWebBackEventListener]);
|
|
139379
|
-
var handleWebBack = (0,
|
|
139593
|
+
var handleWebBack = (0, import_react24.useCallback)(_asyncToGenerator(function* () {
|
|
139380
139594
|
if (hasWebBackEvent) {
|
|
139381
139595
|
for (var handler of webBackHandlersRef) {
|
|
139382
139596
|
handler();
|
|
@@ -139386,10 +139600,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139386
139600
|
if (hasHistory) {
|
|
139387
139601
|
webViewRef.current?.injectJavaScript("window.history.back();");
|
|
139388
139602
|
} else {
|
|
139389
|
-
(0,
|
|
139603
|
+
(0, import_react_native35.closeView)();
|
|
139390
139604
|
}
|
|
139391
139605
|
}), [hasHistory, hasWebBackEvent, webBackHandlersRef, logging, webViewRef]);
|
|
139392
|
-
var handleWebHome = (0,
|
|
139606
|
+
var handleWebHome = (0, import_react24.useCallback)(() => {
|
|
139393
139607
|
logging.homeButtonClick();
|
|
139394
139608
|
if (homeEvent.hasSubscriptions()) {
|
|
139395
139609
|
homeEvent.emit({});
|
|
@@ -139402,7 +139616,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139402
139616
|
})();
|
|
139403
139617
|
`);
|
|
139404
139618
|
}, [hasWebBackEvent, webBackHandlersRef, logging, webViewInitialURL, webViewRef]);
|
|
139405
|
-
return (0,
|
|
139619
|
+
return (0, import_react24.useMemo)(() => ({
|
|
139406
139620
|
addEventListener,
|
|
139407
139621
|
removeEventListener,
|
|
139408
139622
|
handleWebBack,
|
|
@@ -139422,7 +139636,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139422
139636
|
};
|
|
139423
139637
|
}
|
|
139424
139638
|
var import_native_modules15 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
|
|
139425
|
-
var
|
|
139639
|
+
var import_react_native36 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
139426
139640
|
var FontA11yCategory = {
|
|
139427
139641
|
Large: "Large",
|
|
139428
139642
|
xLarge: "xLarge",
|
|
@@ -139557,27 +139771,27 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139557
139771
|
}) {
|
|
139558
139772
|
var platform = (0, import_native_modules15.getPlatformOS)();
|
|
139559
139773
|
var appVersion = (0, import_native_modules15.getTossAppVersion)();
|
|
139560
|
-
var
|
|
139561
|
-
fontScale =
|
|
139774
|
+
var _ref35 = (0, import_react_native36.useWindowDimensions)(),
|
|
139775
|
+
fontScale = _ref35.fontScale;
|
|
139562
139776
|
var platformString = platform === "ios" ? "iPhone" : "Android phone";
|
|
139563
139777
|
var fontA11y = mapFontScaleToCategory(fontScale, platform);
|
|
139564
139778
|
var normalizedFontScale = convertToAndroidStyleScale(fontScale, platform);
|
|
139565
139779
|
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(" ");
|
|
139566
139780
|
}
|
|
139567
139781
|
var import_native_modules16 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
|
|
139568
|
-
var
|
|
139569
|
-
var
|
|
139782
|
+
var import_react_native37 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
139783
|
+
var import_react25 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
139570
139784
|
function useGeolocation({
|
|
139571
139785
|
accuracy,
|
|
139572
139786
|
distanceInterval,
|
|
139573
139787
|
timeInterval
|
|
139574
139788
|
}) {
|
|
139575
|
-
var isVisible = (0,
|
|
139576
|
-
var
|
|
139577
|
-
|
|
139578
|
-
location =
|
|
139579
|
-
setLocation =
|
|
139580
|
-
(0,
|
|
139789
|
+
var isVisible = (0, import_react_native37.useVisibility)();
|
|
139790
|
+
var _ref36 = (0, import_react25.useState)(null),
|
|
139791
|
+
_ref37 = _slicedToArray(_ref36, 2),
|
|
139792
|
+
location = _ref37[0],
|
|
139793
|
+
setLocation = _ref37[1];
|
|
139794
|
+
(0, import_react25.useEffect)(() => {
|
|
139581
139795
|
if (!isVisible) {
|
|
139582
139796
|
return;
|
|
139583
139797
|
}
|
|
@@ -139593,18 +139807,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139593
139807
|
}, [accuracy, distanceInterval, timeInterval, isVisible]);
|
|
139594
139808
|
return location;
|
|
139595
139809
|
}
|
|
139596
|
-
var
|
|
139597
|
-
var
|
|
139810
|
+
var import_react_native38 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
139811
|
+
var import_react26 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
139598
139812
|
function useWaitForReturnNavigator() {
|
|
139599
|
-
var callbacks = (0,
|
|
139600
|
-
var navigation = (0,
|
|
139601
|
-
var startNavigating = (0,
|
|
139813
|
+
var callbacks = (0, import_react26.useRef)([]).current;
|
|
139814
|
+
var navigation = (0, import_react_native38.useNavigation)();
|
|
139815
|
+
var startNavigating = (0, import_react26.useCallback)((route, params) => {
|
|
139602
139816
|
return new Promise(resolve => {
|
|
139603
139817
|
callbacks.push(resolve);
|
|
139604
139818
|
navigation.navigate(route, params);
|
|
139605
139819
|
});
|
|
139606
139820
|
}, [callbacks, navigation]);
|
|
139607
|
-
var handleVisibilityChange = (0,
|
|
139821
|
+
var handleVisibilityChange = (0, import_react26.useCallback)(state => {
|
|
139608
139822
|
if (state === "visible" && callbacks.length > 0) {
|
|
139609
139823
|
for (var callback of callbacks) {
|
|
139610
139824
|
callback();
|
|
@@ -139612,7 +139826,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139612
139826
|
callbacks.splice(0, callbacks.length);
|
|
139613
139827
|
}
|
|
139614
139828
|
}, [callbacks]);
|
|
139615
|
-
(0,
|
|
139829
|
+
(0, import_react_native38.useVisibilityChange)(handleVisibilityChange);
|
|
139616
139830
|
return startNavigating;
|
|
139617
139831
|
}
|
|
139618
139832
|
function useTopNavigation() {
|
|
@@ -139625,10 +139839,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139625
139839
|
};
|
|
139626
139840
|
}
|
|
139627
139841
|
var import_native_modules17 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
|
|
139628
|
-
var
|
|
139629
|
-
var
|
|
139842
|
+
var import_react_native39 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
139843
|
+
var import_tds_react_native13 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
|
|
139630
139844
|
function useHandleWebViewProcessDidTerminate(webViewRef) {
|
|
139631
|
-
var toast = (0,
|
|
139845
|
+
var toast = (0, import_tds_react_native13.useToast)();
|
|
139632
139846
|
return () => {
|
|
139633
139847
|
webViewDebugLog("AppsInTossWebViewProcessDidTerminate", {});
|
|
139634
139848
|
toast.open("\uBB38\uC81C\uAC00 \uC0DD\uACA8\uC11C \uBBF8\uB2C8\uC571\uC744 \uB2E4\uC2DC \uC2DC\uC791\uD588\uC5B4\uC694.", {
|
|
@@ -139654,7 +139868,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139654
139868
|
log_type: "debug",
|
|
139655
139869
|
params: {
|
|
139656
139870
|
...params,
|
|
139657
|
-
app_name:
|
|
139871
|
+
app_name: import_react_native39.Granite.appName,
|
|
139658
139872
|
deployment_id: global2.deploymentId
|
|
139659
139873
|
}
|
|
139660
139874
|
};
|
|
@@ -139666,7 +139880,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139666
139880
|
console.log("[webViewDebugLog]", event);
|
|
139667
139881
|
}
|
|
139668
139882
|
}
|
|
139669
|
-
var
|
|
139883
|
+
var import_react_native40 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
139670
139884
|
var extractDateFromUUIDv7 = uuid => {
|
|
139671
139885
|
var timestampHex = uuid.split("-").join("").slice(0, 12);
|
|
139672
139886
|
var timestamp = Number.parseInt(timestampHex, 16);
|
|
@@ -139688,7 +139902,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139688
139902
|
};
|
|
139689
139903
|
var getReferrer2 = () => {
|
|
139690
139904
|
try {
|
|
139691
|
-
var referrer = new URL((0,
|
|
139905
|
+
var referrer = new URL((0, import_react_native40.getSchemeUri)());
|
|
139692
139906
|
return referrer.searchParams.get("referrer");
|
|
139693
139907
|
} catch {
|
|
139694
139908
|
return "";
|
|
@@ -139704,7 +139918,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139704
139918
|
search,
|
|
139705
139919
|
referrer: getReferrer2(),
|
|
139706
139920
|
document_title: title,
|
|
139707
|
-
app_name:
|
|
139921
|
+
app_name: import_react_native40.Granite.appName,
|
|
139708
139922
|
deployment_id: env.getDeploymentId(),
|
|
139709
139923
|
deployment_timestamp: extractDateFromUUIDv7(env.getDeploymentId()).getTime()
|
|
139710
139924
|
};
|
|
@@ -139727,28 +139941,28 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139727
139941
|
pipelines: ["core"]
|
|
139728
139942
|
});
|
|
139729
139943
|
};
|
|
139730
|
-
var
|
|
139944
|
+
var import_jsx_runtime24 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
139731
139945
|
var operationalEnvironment = appsInTossConstantBridges.getOperationalEnvironment();
|
|
139732
139946
|
var TYPES = ["partner", "external", "game"];
|
|
139733
139947
|
var WEBVIEW_TYPES = {
|
|
139734
139948
|
partner: PartnerWebView,
|
|
139735
|
-
external:
|
|
139949
|
+
external: import_tds_react_native14.ExternalWebViewScreen,
|
|
139736
139950
|
game: GameWebView
|
|
139737
139951
|
};
|
|
139738
139952
|
function mergeSchemeQueryParamsInto(url) {
|
|
139739
139953
|
var baseUrl = new URL(url);
|
|
139740
|
-
var schemeUrl = new URL((0,
|
|
139954
|
+
var schemeUrl = new URL((0, import_react_native41.getSchemeUri)());
|
|
139741
139955
|
var resultUrl = new URL(schemeUrl.pathname, baseUrl.origin);
|
|
139742
|
-
for (var
|
|
139743
|
-
var
|
|
139744
|
-
var key =
|
|
139745
|
-
var value =
|
|
139956
|
+
for (var _ref38 of baseUrl.searchParams.entries()) {
|
|
139957
|
+
var _ref39 = _slicedToArray(_ref38, 2);
|
|
139958
|
+
var key = _ref39[0];
|
|
139959
|
+
var value = _ref39[1];
|
|
139746
139960
|
resultUrl.searchParams.set(key, value);
|
|
139747
139961
|
}
|
|
139748
|
-
for (var
|
|
139749
|
-
var
|
|
139750
|
-
var _key =
|
|
139751
|
-
var _value =
|
|
139962
|
+
for (var _ref40 of schemeUrl.searchParams.entries()) {
|
|
139963
|
+
var _ref41 = _slicedToArray(_ref40, 2);
|
|
139964
|
+
var _key = _ref41[0];
|
|
139965
|
+
var _value = _ref41[1];
|
|
139752
139966
|
resultUrl.searchParams.set(_key, _value);
|
|
139753
139967
|
}
|
|
139754
139968
|
return resultUrl;
|
|
@@ -139758,8 +139972,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139758
139972
|
var devUrl = `http://${local.host}:${local.port}`;
|
|
139759
139973
|
return mergeSchemeQueryParamsInto(devUrl);
|
|
139760
139974
|
}
|
|
139761
|
-
var
|
|
139762
|
-
rawUrl =
|
|
139975
|
+
var _ref42 = (0, import_native_modules18.safeSyncPostMessage)("getWebBundleURL", {}),
|
|
139976
|
+
rawUrl = _ref42.url;
|
|
139763
139977
|
var url = mergeSchemeQueryParamsInto(rawUrl);
|
|
139764
139978
|
var deploymentId = env.getDeploymentId();
|
|
139765
139979
|
if (deploymentId) {
|
|
@@ -139776,19 +139990,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139776
139990
|
if (!TYPES.includes(type)) {
|
|
139777
139991
|
throw new Error(`Invalid WebView type: '${type}'`);
|
|
139778
139992
|
}
|
|
139779
|
-
var webViewRef = (0,
|
|
139780
|
-
var url = (0,
|
|
139993
|
+
var webViewRef = (0, import_react27.useRef)(null);
|
|
139994
|
+
var url = (0, import_react27.useMemo)(() => getWebViewURL(local), [local]);
|
|
139781
139995
|
var webBackHandler = useWebBackHandler(url, webViewRef);
|
|
139782
|
-
var top = (0, import_private9.useSafeAreaTop)();
|
|
139783
|
-
var bottom = (0, import_private9.useSafeAreaBottom)();
|
|
139784
|
-
var insets = (0, import_react_native_safe_area_context4.useSafeAreaInsets)();
|
|
139785
139996
|
var global2 = getAppsInTossGlobals();
|
|
139997
|
+
var insets = (0, import_react_native_safe_area_context3.useSafeAreaInsets)();
|
|
139786
139998
|
var navigationBarContext = useNavigationBarContext();
|
|
139787
139999
|
var safeAreaInsetsEvent = useSafeAreaInsetsEvent();
|
|
139788
|
-
var
|
|
139789
|
-
|
|
139790
|
-
allowsBackForwardNavigationGestures =
|
|
139791
|
-
setAllowsBackForwardNavigationGestures =
|
|
140000
|
+
var _ref43 = (0, import_react27.useState)(props.allowsBackForwardNavigationGestures),
|
|
140001
|
+
_ref44 = _slicedToArray(_ref43, 2),
|
|
140002
|
+
allowsBackForwardNavigationGestures = _ref44[0],
|
|
140003
|
+
setAllowsBackForwardNavigationGestures = _ref44[1];
|
|
139792
140004
|
var handler = useBridgeHandler({
|
|
139793
140005
|
onMessage,
|
|
139794
140006
|
eventListenerMap: {
|
|
@@ -139796,7 +140008,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139796
140008
|
navigationAccessoryEvent: ({
|
|
139797
140009
|
onEvent,
|
|
139798
140010
|
onError
|
|
139799
|
-
}) =>
|
|
140011
|
+
}) => import_tds_react_native14.tdsEvent.addEventListener("navigationAccessoryEvent", {
|
|
139800
140012
|
onEvent,
|
|
139801
140013
|
onError
|
|
139802
140014
|
}),
|
|
@@ -139844,12 +140056,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139844
140056
|
},
|
|
139845
140057
|
constantHandlerMap: {
|
|
139846
140058
|
...appsInTossConstantBridges,
|
|
139847
|
-
getSafeAreaInsets: () =>
|
|
139848
|
-
top,
|
|
139849
|
-
bottom,
|
|
139850
|
-
left: insets.left,
|
|
139851
|
-
right: insets.right
|
|
139852
|
-
}),
|
|
140059
|
+
getSafeAreaInsets: () => insets,
|
|
139853
140060
|
...Object.fromEntries(Object.entries(global2).map(([key, value]) => [key, () => value])),
|
|
139854
140061
|
getServerTime_isSupported: import_native_modules18.getServerTime.isSupported,
|
|
139855
140062
|
requestReview_isSupported: import_native_modules18.requestReview.isSupported,
|
|
@@ -139871,19 +140078,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139871
140078
|
return appsInTossAsyncBridges.setIosSwipeGestureEnabled(options);
|
|
139872
140079
|
},
|
|
139873
140080
|
addAccessoryButton: function () {
|
|
139874
|
-
var
|
|
140081
|
+
var _ref45 = _asyncToGenerator(function* (params) {
|
|
139875
140082
|
return navigationBarContext.addNavigationRightButton(params);
|
|
139876
140083
|
});
|
|
139877
140084
|
return function addAccessoryButton(_x6) {
|
|
139878
|
-
return
|
|
140085
|
+
return _ref45.apply(this, arguments);
|
|
139879
140086
|
};
|
|
139880
140087
|
}(),
|
|
139881
140088
|
removeAccessoryButton: function () {
|
|
139882
|
-
var
|
|
140089
|
+
var _ref46 = _asyncToGenerator(function* () {
|
|
139883
140090
|
return navigationBarContext.removeNavigationRightButton();
|
|
139884
140091
|
});
|
|
139885
140092
|
return function removeAccessoryButton() {
|
|
139886
|
-
return
|
|
140093
|
+
return _ref46.apply(this, arguments);
|
|
139887
140094
|
};
|
|
139888
140095
|
}(),
|
|
139889
140096
|
requestPermission: appsInTossAsyncBridges.requestPermission,
|
|
@@ -139910,16 +140117,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139910
140117
|
tossAdEventLog,
|
|
139911
140118
|
memoryDebugLog: webViewMemoryDebugLog,
|
|
139912
140119
|
debugLog: function () {
|
|
139913
|
-
var
|
|
140120
|
+
var _ref47 = _asyncToGenerator(function* (event) {
|
|
139914
140121
|
sendLog(event);
|
|
139915
140122
|
});
|
|
139916
140123
|
return function debugLog(_x7) {
|
|
139917
|
-
return
|
|
140124
|
+
return _ref47.apply(this, arguments);
|
|
139918
140125
|
};
|
|
139919
140126
|
}()
|
|
139920
140127
|
}
|
|
139921
140128
|
});
|
|
139922
|
-
var headerPropForExternalWebView = (0,
|
|
140129
|
+
var headerPropForExternalWebView = (0, import_react27.useMemo)(() => {
|
|
139923
140130
|
var parsedNavigationBar = global2.navigationBar != null ? safeParseNavigationBar(global2.navigationBar) : null;
|
|
139924
140131
|
var initialAccessoryButton = parsedNavigationBar?.initialAccessoryButton;
|
|
139925
140132
|
var withBackButton = parsedNavigationBar?.withBackButton ?? true;
|
|
@@ -139940,16 +140147,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139940
140147
|
colorPreference: "light"
|
|
139941
140148
|
});
|
|
139942
140149
|
var refs = mergeRefs(handler.ref, webViewRef);
|
|
139943
|
-
(0,
|
|
140150
|
+
(0, import_react27.useEffect)(() => {
|
|
139944
140151
|
var callback = () => {
|
|
139945
140152
|
webBackHandler.handleWebBack();
|
|
139946
140153
|
return true;
|
|
139947
140154
|
};
|
|
139948
|
-
var subscription =
|
|
140155
|
+
var subscription = import_react_native42.BackHandler.addEventListener("hardwareBackPress", callback);
|
|
139949
140156
|
return () => subscription.remove();
|
|
139950
140157
|
}, [webBackHandler]);
|
|
139951
140158
|
var handleWebViewProcessDidTerminate = useHandleWebViewProcessDidTerminate(webViewRef);
|
|
139952
|
-
return (0,
|
|
140159
|
+
return (0, import_jsx_runtime24.jsx)(BaseWebView, {
|
|
139953
140160
|
ref: refs,
|
|
139954
140161
|
...props,
|
|
139955
140162
|
...headerPropForExternalWebView,
|
|
@@ -139969,14 +140176,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139969
140176
|
webBackHandler.onNavigationStateChange(event);
|
|
139970
140177
|
},
|
|
139971
140178
|
textZoom: 100,
|
|
139972
|
-
userAgent:
|
|
140179
|
+
userAgent: import_react_native42.Platform.OS === "ios" ? userAgent : void 0,
|
|
139973
140180
|
sharedCookiesEnabled: true,
|
|
139974
140181
|
webviewDebuggingEnabled: webViewDebuggingEnabled,
|
|
139975
140182
|
thirdPartyCookiesEnabled: true,
|
|
139976
140183
|
onMessage: handler.onMessage,
|
|
139977
140184
|
injectedJavaScript: import_user_scripts.afterDocumentLoad,
|
|
139978
140185
|
injectedJavaScriptBeforeContentLoaded: [handler.injectedJavaScript, import_user_scripts.beforeDocumentLoad].join("\n"),
|
|
139979
|
-
decelerationRate:
|
|
140186
|
+
decelerationRate: import_react_native42.Platform.OS === "ios" ? 1 : void 0,
|
|
139980
140187
|
allowsBackForwardNavigationGestures,
|
|
139981
140188
|
onShouldStartLoadWithRequest: event => {
|
|
139982
140189
|
try {
|
|
@@ -139984,7 +140191,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139984
140191
|
if (["https:", "http:"].includes(url2.protocol) || url2.href === "about:blank") {
|
|
139985
140192
|
return true;
|
|
139986
140193
|
} else {
|
|
139987
|
-
|
|
140194
|
+
import_react_native42.Linking.openURL(convertIntentURL(url2) ?? url2.href);
|
|
139988
140195
|
return false;
|
|
139989
140196
|
}
|
|
139990
140197
|
} catch (error) {
|
|
@@ -139998,13 +140205,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139998
140205
|
});
|
|
139999
140206
|
}
|
|
140000
140207
|
__reExport(src_exports, _$$_REQUIRE(_dependencyMap[4], "@apps-in-toss/analytics"), module.exports);
|
|
140001
|
-
var
|
|
140208
|
+
var import_private5 = _$$_REQUIRE(_dependencyMap[12], "@toss/tds-react-native/private");
|
|
140002
140209
|
__reExport(src_exports, _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules"), module.exports);
|
|
140003
|
-
__reExport(src_exports, _$$_REQUIRE(_dependencyMap[
|
|
140004
|
-
var import_types = _$$_REQUIRE(_dependencyMap[
|
|
140005
|
-
var
|
|
140006
|
-
var
|
|
140007
|
-
var
|
|
140210
|
+
__reExport(src_exports, _$$_REQUIRE(_dependencyMap[20], "@apps-in-toss/types"), module.exports);
|
|
140211
|
+
var import_types = _$$_REQUIRE(_dependencyMap[20], "@apps-in-toss/types");
|
|
140212
|
+
var import_react_native46 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
140213
|
+
var import_react30 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
140214
|
+
var import_react_native47 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
140008
140215
|
var SDK_ID = "106";
|
|
140009
140216
|
var LIST_BANNER_STYLE_ID = "1";
|
|
140010
140217
|
var NATIVE_IMAGE_STYLE_ID = "2";
|
|
@@ -140282,7 +140489,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140282
140489
|
});
|
|
140283
140490
|
return _loadAd.apply(this, arguments);
|
|
140284
140491
|
}
|
|
140285
|
-
var
|
|
140492
|
+
var import_react_native43 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
140286
140493
|
function isSafeUrl(url) {
|
|
140287
140494
|
try {
|
|
140288
140495
|
var parsed = new URL(url);
|
|
@@ -140298,7 +140505,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140298
140505
|
return;
|
|
140299
140506
|
}
|
|
140300
140507
|
try {
|
|
140301
|
-
(0,
|
|
140508
|
+
(0, import_react_native43.openURL)(getWebSchemeOrUri(url));
|
|
140302
140509
|
} catch (error) {
|
|
140303
140510
|
console.error("[InlineAd] Failed to open landing URL:", error);
|
|
140304
140511
|
}
|
|
@@ -140405,10 +140612,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140405
140612
|
}()
|
|
140406
140613
|
}]);
|
|
140407
140614
|
}();
|
|
140408
|
-
var
|
|
140409
|
-
var
|
|
140410
|
-
var
|
|
140411
|
-
var
|
|
140615
|
+
var import_react_native_svg2 = _$$_REQUIRE(_dependencyMap[14], "@granite-js/native/react-native-svg");
|
|
140616
|
+
var import_react28 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
140617
|
+
var import_react_native44 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
140618
|
+
var import_jsx_runtime25 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
140412
140619
|
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";
|
|
140413
140620
|
function FeedBannerAdView({
|
|
140414
140621
|
brandName,
|
|
@@ -140420,17 +140627,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140420
140627
|
ctaTextColor,
|
|
140421
140628
|
ctaBackgroundColor,
|
|
140422
140629
|
adClearanceText,
|
|
140423
|
-
colors,
|
|
140630
|
+
colors: colors4,
|
|
140424
140631
|
isAdBadgeEnabled,
|
|
140425
140632
|
paddingStyle,
|
|
140426
140633
|
onPress
|
|
140427
140634
|
}) {
|
|
140428
|
-
var scale = (0,
|
|
140635
|
+
var scale = (0, import_react28.useRef)(new import_react_native44.Animated.Value(1)).current;
|
|
140429
140636
|
var animateScale = toValue => {
|
|
140430
|
-
|
|
140637
|
+
import_react_native44.Animated.timing(scale, {
|
|
140431
140638
|
toValue,
|
|
140432
140639
|
duration: 100,
|
|
140433
|
-
easing:
|
|
140640
|
+
easing: import_react_native44.Easing.inOut(import_react_native44.Easing.ease),
|
|
140434
140641
|
useNativeDriver: true
|
|
140435
140642
|
}).start();
|
|
140436
140643
|
};
|
|
@@ -140442,107 +140649,107 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140442
140649
|
};
|
|
140443
140650
|
var resolvedCtaBackground = ctaBackgroundColor ?? "#3081F9";
|
|
140444
140651
|
var resolvedCtaTextColor = ctaTextColor ?? "#ffffff";
|
|
140445
|
-
return (0,
|
|
140652
|
+
return (0, import_jsx_runtime25.jsx)(import_react_native44.Pressable, {
|
|
140446
140653
|
accessibilityRole: "button",
|
|
140447
140654
|
onPress: () => onPress(null),
|
|
140448
140655
|
onPressIn: handlePressIn,
|
|
140449
140656
|
onPressOut: handlePressOut,
|
|
140450
140657
|
style: styles.pressable,
|
|
140451
|
-
children: (0,
|
|
140658
|
+
children: (0, import_jsx_runtime25.jsxs)(import_react_native44.Animated.View, {
|
|
140452
140659
|
style: [styles.container, paddingStyle, {
|
|
140453
140660
|
transform: [{
|
|
140454
140661
|
scale
|
|
140455
140662
|
}]
|
|
140456
140663
|
}],
|
|
140457
|
-
children: [(0,
|
|
140664
|
+
children: [(0, import_jsx_runtime25.jsxs)(import_react_native44.View, {
|
|
140458
140665
|
style: styles.profileContainer,
|
|
140459
|
-
children: [(0,
|
|
140666
|
+
children: [(0, import_jsx_runtime25.jsxs)(import_react_native44.View, {
|
|
140460
140667
|
style: styles.brandArea,
|
|
140461
|
-
children: [(0,
|
|
140668
|
+
children: [(0, import_jsx_runtime25.jsx)(import_react_native44.Pressable, {
|
|
140462
140669
|
accessibilityRole: "button",
|
|
140463
140670
|
onPress: () => onPress("202"),
|
|
140464
140671
|
onPressIn: handlePressIn,
|
|
140465
140672
|
onPressOut: handlePressOut,
|
|
140466
140673
|
style: styles.logoContainer,
|
|
140467
|
-
children: (0,
|
|
140674
|
+
children: (0, import_jsx_runtime25.jsxs)(import_react_native44.View, {
|
|
140468
140675
|
style: [styles.logoWrapper, {
|
|
140469
|
-
backgroundColor:
|
|
140676
|
+
backgroundColor: colors4.brandLogoBg
|
|
140470
140677
|
}],
|
|
140471
|
-
children: [brandLogoUri ? (0,
|
|
140678
|
+
children: [brandLogoUri ? (0, import_jsx_runtime25.jsx)(import_react_native44.Image, {
|
|
140472
140679
|
source: {
|
|
140473
140680
|
uri: brandLogoUri
|
|
140474
140681
|
},
|
|
140475
140682
|
style: styles.logoImage,
|
|
140476
140683
|
resizeMode: "cover"
|
|
140477
|
-
}) : null, (0,
|
|
140684
|
+
}) : null, (0, import_jsx_runtime25.jsx)(import_react_native44.View, {
|
|
140478
140685
|
style: [styles.logoOverlay, {
|
|
140479
|
-
borderColor:
|
|
140686
|
+
borderColor: colors4.brandLogoBorder
|
|
140480
140687
|
}]
|
|
140481
140688
|
})]
|
|
140482
140689
|
})
|
|
140483
|
-
}), (0,
|
|
140690
|
+
}), (0, import_jsx_runtime25.jsxs)(import_react_native44.View, {
|
|
140484
140691
|
style: styles.brandTextContainer,
|
|
140485
|
-
children: [(0,
|
|
140692
|
+
children: [(0, import_jsx_runtime25.jsx)(import_react_native44.Pressable, {
|
|
140486
140693
|
accessibilityRole: "button",
|
|
140487
140694
|
onPress: () => onPress("103"),
|
|
140488
140695
|
onPressIn: handlePressIn,
|
|
140489
140696
|
onPressOut: handlePressOut,
|
|
140490
|
-
children: (0,
|
|
140697
|
+
children: (0, import_jsx_runtime25.jsx)(import_react_native44.Text, {
|
|
140491
140698
|
allowFontScaling: false,
|
|
140492
140699
|
numberOfLines: 1,
|
|
140493
140700
|
style: [styles.brandName, {
|
|
140494
|
-
color:
|
|
140701
|
+
color: colors4.brandName
|
|
140495
140702
|
}],
|
|
140496
140703
|
children: brandName
|
|
140497
140704
|
})
|
|
140498
|
-
}), isAdBadgeEnabled ? (0,
|
|
140705
|
+
}), isAdBadgeEnabled ? (0, import_jsx_runtime25.jsx)(import_react_native44.Text, {
|
|
140499
140706
|
allowFontScaling: false,
|
|
140500
140707
|
numberOfLines: 1,
|
|
140501
140708
|
style: [styles.adBadge, {
|
|
140502
|
-
color:
|
|
140709
|
+
color: colors4.adBadge
|
|
140503
140710
|
}],
|
|
140504
140711
|
children: "\uAD11\uACE0"
|
|
140505
140712
|
}) : null]
|
|
140506
140713
|
})]
|
|
140507
|
-
}), (0,
|
|
140714
|
+
}), (0, import_jsx_runtime25.jsxs)(import_react_native44.View, {
|
|
140508
140715
|
style: styles.textArea,
|
|
140509
|
-
children: [(0,
|
|
140716
|
+
children: [(0, import_jsx_runtime25.jsx)(import_react_native44.Pressable, {
|
|
140510
140717
|
accessibilityRole: "button",
|
|
140511
140718
|
onPress: () => onPress("101"),
|
|
140512
140719
|
onPressIn: handlePressIn,
|
|
140513
140720
|
onPressOut: handlePressOut,
|
|
140514
|
-
children: (0,
|
|
140721
|
+
children: (0, import_jsx_runtime25.jsx)(import_react_native44.Text, {
|
|
140515
140722
|
allowFontScaling: false,
|
|
140516
140723
|
style: [styles.title, {
|
|
140517
|
-
color:
|
|
140724
|
+
color: colors4.title
|
|
140518
140725
|
}],
|
|
140519
140726
|
children: title
|
|
140520
140727
|
})
|
|
140521
|
-
}), (0,
|
|
140728
|
+
}), (0, import_jsx_runtime25.jsx)(import_react_native44.Pressable, {
|
|
140522
140729
|
accessibilityRole: "button",
|
|
140523
140730
|
onPress: () => onPress("102"),
|
|
140524
140731
|
onPressIn: handlePressIn,
|
|
140525
140732
|
onPressOut: handlePressOut,
|
|
140526
|
-
children: (0,
|
|
140733
|
+
children: (0, import_jsx_runtime25.jsx)(import_react_native44.Text, {
|
|
140527
140734
|
allowFontScaling: false,
|
|
140528
140735
|
style: [styles.subtitle, {
|
|
140529
|
-
color:
|
|
140736
|
+
color: colors4.subtitle
|
|
140530
140737
|
}],
|
|
140531
140738
|
children: subtitle
|
|
140532
140739
|
})
|
|
140533
140740
|
})]
|
|
140534
140741
|
})]
|
|
140535
|
-
}), (0,
|
|
140742
|
+
}), (0, import_jsx_runtime25.jsxs)(import_react_native44.View, {
|
|
140536
140743
|
style: styles.card,
|
|
140537
|
-
children: [(0,
|
|
140744
|
+
children: [(0, import_jsx_runtime25.jsx)(import_react_native44.Pressable, {
|
|
140538
140745
|
accessibilityRole: "button",
|
|
140539
140746
|
onPress: () => onPress("201"),
|
|
140540
140747
|
onPressIn: handlePressIn,
|
|
140541
140748
|
onPressOut: handlePressOut,
|
|
140542
140749
|
style: styles.imageButton,
|
|
140543
|
-
children: (0,
|
|
140750
|
+
children: (0, import_jsx_runtime25.jsx)(import_react_native44.View, {
|
|
140544
140751
|
style: styles.imageContainer,
|
|
140545
|
-
children: mainImageUri ? (0,
|
|
140752
|
+
children: mainImageUri ? (0, import_jsx_runtime25.jsx)(import_react_native44.Image, {
|
|
140546
140753
|
source: {
|
|
140547
140754
|
uri: mainImageUri
|
|
140548
140755
|
},
|
|
@@ -140550,7 +140757,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140550
140757
|
resizeMode: "cover"
|
|
140551
140758
|
}) : null
|
|
140552
140759
|
})
|
|
140553
|
-
}), (0,
|
|
140760
|
+
}), (0, import_jsx_runtime25.jsxs)(import_react_native44.Pressable, {
|
|
140554
140761
|
accessibilityRole: "button",
|
|
140555
140762
|
onPress: () => onPress("0"),
|
|
140556
140763
|
onPressIn: handlePressIn,
|
|
@@ -140558,37 +140765,37 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140558
140765
|
style: [styles.cta, {
|
|
140559
140766
|
backgroundColor: resolvedCtaBackground
|
|
140560
140767
|
}],
|
|
140561
|
-
children: [(0,
|
|
140768
|
+
children: [(0, import_jsx_runtime25.jsx)(import_react_native44.Text, {
|
|
140562
140769
|
allowFontScaling: false,
|
|
140563
140770
|
style: [styles.ctaText, {
|
|
140564
140771
|
color: resolvedCtaTextColor
|
|
140565
140772
|
}],
|
|
140566
140773
|
children: ctaText
|
|
140567
|
-
}), (0,
|
|
140774
|
+
}), (0, import_jsx_runtime25.jsx)(import_react_native_svg2.Svg, {
|
|
140568
140775
|
width: 20,
|
|
140569
140776
|
height: 20,
|
|
140570
140777
|
viewBox: "0 0 24 24",
|
|
140571
|
-
children: (0,
|
|
140778
|
+
children: (0, import_jsx_runtime25.jsx)(import_react_native_svg2.Path, {
|
|
140572
140779
|
d: ARROW_PATH,
|
|
140573
140780
|
fill: resolvedCtaTextColor
|
|
140574
140781
|
})
|
|
140575
140782
|
})]
|
|
140576
|
-
}), (0,
|
|
140783
|
+
}), (0, import_jsx_runtime25.jsx)(import_react_native44.View, {
|
|
140577
140784
|
style: [styles.cardOverlay, {
|
|
140578
|
-
borderColor:
|
|
140785
|
+
borderColor: colors4.imageOverlayBorder
|
|
140579
140786
|
}]
|
|
140580
140787
|
})]
|
|
140581
|
-
}), adClearanceText ? (0,
|
|
140788
|
+
}), adClearanceText ? (0, import_jsx_runtime25.jsx)(import_react_native44.Text, {
|
|
140582
140789
|
allowFontScaling: false,
|
|
140583
140790
|
style: [styles.adClearance, {
|
|
140584
|
-
color:
|
|
140791
|
+
color: colors4.adClearance
|
|
140585
140792
|
}],
|
|
140586
140793
|
children: adClearanceText
|
|
140587
140794
|
}) : null]
|
|
140588
140795
|
})
|
|
140589
140796
|
});
|
|
140590
140797
|
}
|
|
140591
|
-
var styles =
|
|
140798
|
+
var styles = import_react_native44.StyleSheet.create({
|
|
140592
140799
|
pressable: {
|
|
140593
140800
|
width: "100%"
|
|
140594
140801
|
},
|
|
@@ -140627,7 +140834,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140627
140834
|
borderRadius: 18
|
|
140628
140835
|
},
|
|
140629
140836
|
logoOverlay: {
|
|
140630
|
-
...
|
|
140837
|
+
...import_react_native44.StyleSheet.absoluteFillObject,
|
|
140631
140838
|
borderWidth: 1,
|
|
140632
140839
|
borderRadius: 18
|
|
140633
140840
|
},
|
|
@@ -140690,7 +140897,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140690
140897
|
lineHeight: 22.5
|
|
140691
140898
|
},
|
|
140692
140899
|
cardOverlay: {
|
|
140693
|
-
...
|
|
140900
|
+
...import_react_native44.StyleSheet.absoluteFillObject,
|
|
140694
140901
|
borderWidth: 2,
|
|
140695
140902
|
borderRadius: 12,
|
|
140696
140903
|
pointerEvents: "none"
|
|
@@ -140701,10 +140908,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140701
140908
|
fontWeight: "400"
|
|
140702
140909
|
}
|
|
140703
140910
|
});
|
|
140704
|
-
var
|
|
140705
|
-
var
|
|
140706
|
-
var
|
|
140707
|
-
var
|
|
140911
|
+
var import_react_native_svg3 = _$$_REQUIRE(_dependencyMap[14], "@granite-js/native/react-native-svg");
|
|
140912
|
+
var import_react29 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
140913
|
+
var import_react_native45 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
140914
|
+
var import_jsx_runtime26 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
140708
140915
|
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";
|
|
140709
140916
|
function ListBannerAdView({
|
|
140710
140917
|
title,
|
|
@@ -140713,16 +140920,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140713
140920
|
adClearanceFontSize,
|
|
140714
140921
|
imageUri,
|
|
140715
140922
|
paddingStyle,
|
|
140716
|
-
colors,
|
|
140923
|
+
colors: colors4,
|
|
140717
140924
|
onPress
|
|
140718
140925
|
}) {
|
|
140719
|
-
var scale = (0,
|
|
140720
|
-
var clipIdRef = (0,
|
|
140926
|
+
var scale = (0, import_react29.useRef)(new import_react_native45.Animated.Value(1)).current;
|
|
140927
|
+
var clipIdRef = (0, import_react29.useRef)(`clip-${Math.random().toString(36).slice(2)}`);
|
|
140721
140928
|
var animateScale = toValue => {
|
|
140722
|
-
|
|
140929
|
+
import_react_native45.Animated.timing(scale, {
|
|
140723
140930
|
toValue,
|
|
140724
140931
|
duration: 100,
|
|
140725
|
-
easing:
|
|
140932
|
+
easing: import_react_native45.Easing.inOut(import_react_native45.Easing.ease),
|
|
140726
140933
|
useNativeDriver: true
|
|
140727
140934
|
}).start();
|
|
140728
140935
|
};
|
|
@@ -140732,41 +140939,41 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140732
140939
|
var handlePressOut = () => {
|
|
140733
140940
|
animateScale(1);
|
|
140734
140941
|
};
|
|
140735
|
-
return (0,
|
|
140942
|
+
return (0, import_jsx_runtime26.jsx)(import_react_native45.Pressable, {
|
|
140736
140943
|
accessibilityRole: "button",
|
|
140737
140944
|
onPress: () => onPress(null),
|
|
140738
140945
|
onPressIn: handlePressIn,
|
|
140739
140946
|
onPressOut: handlePressOut,
|
|
140740
140947
|
style: styles2.pressable,
|
|
140741
|
-
children: (0,
|
|
140948
|
+
children: (0, import_jsx_runtime26.jsxs)(import_react_native45.Animated.View, {
|
|
140742
140949
|
style: [styles2.container, paddingStyle, {
|
|
140743
140950
|
transform: [{
|
|
140744
140951
|
scale
|
|
140745
140952
|
}]
|
|
140746
140953
|
}],
|
|
140747
|
-
children: [(0,
|
|
140954
|
+
children: [(0, import_jsx_runtime26.jsxs)(import_react_native45.View, {
|
|
140748
140955
|
style: styles2.titleRow,
|
|
140749
|
-
children: [(0,
|
|
140956
|
+
children: [(0, import_jsx_runtime26.jsx)(import_react_native45.Pressable, {
|
|
140750
140957
|
accessibilityRole: "button",
|
|
140751
140958
|
onPress: () => onPress("202"),
|
|
140752
140959
|
onPressIn: handlePressIn,
|
|
140753
140960
|
onPressOut: handlePressOut,
|
|
140754
140961
|
style: styles2.iconWrapper,
|
|
140755
|
-
children: (0,
|
|
140962
|
+
children: (0, import_jsx_runtime26.jsxs)(import_react_native_svg3.Svg, {
|
|
140756
140963
|
width: 36,
|
|
140757
140964
|
height: 36,
|
|
140758
140965
|
viewBox: "0 0 36 36",
|
|
140759
|
-
children: [(0,
|
|
140760
|
-
children: (0,
|
|
140966
|
+
children: [(0, import_jsx_runtime26.jsx)(import_react_native_svg3.Defs, {
|
|
140967
|
+
children: (0, import_jsx_runtime26.jsx)(import_react_native_svg3.ClipPath, {
|
|
140761
140968
|
id: clipIdRef.current,
|
|
140762
|
-
children: (0,
|
|
140969
|
+
children: (0, import_jsx_runtime26.jsx)(import_react_native_svg3.Path, {
|
|
140763
140970
|
d: SQUIRCLE_PATH
|
|
140764
140971
|
})
|
|
140765
140972
|
})
|
|
140766
|
-
}), (0,
|
|
140973
|
+
}), (0, import_jsx_runtime26.jsx)(import_react_native_svg3.Path, {
|
|
140767
140974
|
d: SQUIRCLE_PATH,
|
|
140768
|
-
fill:
|
|
140769
|
-
}), imageUri ? (0,
|
|
140975
|
+
fill: colors4.iconBg
|
|
140976
|
+
}), imageUri ? (0, import_jsx_runtime26.jsx)(import_react_native_svg3.Image, {
|
|
140770
140977
|
href: {
|
|
140771
140978
|
uri: imageUri
|
|
140772
140979
|
},
|
|
@@ -140774,46 +140981,46 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140774
140981
|
height: 36,
|
|
140775
140982
|
preserveAspectRatio: "xMidYMid slice",
|
|
140776
140983
|
clipPath: `url(#${clipIdRef.current})`
|
|
140777
|
-
}) : null, (0,
|
|
140984
|
+
}) : null, (0, import_jsx_runtime26.jsx)(import_react_native_svg3.Path, {
|
|
140778
140985
|
d: SQUIRCLE_PATH,
|
|
140779
140986
|
fill: "none",
|
|
140780
|
-
stroke:
|
|
140987
|
+
stroke: colors4.iconBorder,
|
|
140781
140988
|
strokeWidth: 2,
|
|
140782
140989
|
clipPath: `url(#${clipIdRef.current})`
|
|
140783
140990
|
})]
|
|
140784
140991
|
})
|
|
140785
|
-
}), (0,
|
|
140992
|
+
}), (0, import_jsx_runtime26.jsxs)(import_react_native45.View, {
|
|
140786
140993
|
style: styles2.textWrapper,
|
|
140787
|
-
children: [(0,
|
|
140994
|
+
children: [(0, import_jsx_runtime26.jsx)(import_react_native45.Pressable, {
|
|
140788
140995
|
accessibilityRole: "button",
|
|
140789
140996
|
onPress: () => onPress("101"),
|
|
140790
140997
|
onPressIn: handlePressIn,
|
|
140791
140998
|
onPressOut: handlePressOut,
|
|
140792
|
-
children: (0,
|
|
140999
|
+
children: (0, import_jsx_runtime26.jsx)(import_react_native45.Text, {
|
|
140793
141000
|
allowFontScaling: false,
|
|
140794
141001
|
style: [styles2.title, {
|
|
140795
|
-
color:
|
|
141002
|
+
color: colors4.title
|
|
140796
141003
|
}],
|
|
140797
141004
|
children: title
|
|
140798
141005
|
})
|
|
140799
|
-
}), (0,
|
|
141006
|
+
}), (0, import_jsx_runtime26.jsx)(import_react_native45.Pressable, {
|
|
140800
141007
|
accessibilityRole: "button",
|
|
140801
141008
|
onPress: () => onPress("102"),
|
|
140802
141009
|
onPressIn: handlePressIn,
|
|
140803
141010
|
onPressOut: handlePressOut,
|
|
140804
|
-
children: (0,
|
|
141011
|
+
children: (0, import_jsx_runtime26.jsx)(import_react_native45.Text, {
|
|
140805
141012
|
allowFontScaling: false,
|
|
140806
141013
|
style: [styles2.subtitle, {
|
|
140807
|
-
color:
|
|
141014
|
+
color: colors4.subtitle
|
|
140808
141015
|
}],
|
|
140809
141016
|
children: subtitle
|
|
140810
141017
|
})
|
|
140811
141018
|
})]
|
|
140812
141019
|
})]
|
|
140813
|
-
}), adClearanceText ? (0,
|
|
141020
|
+
}), adClearanceText ? (0, import_jsx_runtime26.jsx)(import_react_native45.Text, {
|
|
140814
141021
|
allowFontScaling: false,
|
|
140815
141022
|
style: [styles2.adClearance, {
|
|
140816
|
-
color:
|
|
141023
|
+
color: colors4.adClearance,
|
|
140817
141024
|
fontSize: adClearanceFontSize,
|
|
140818
141025
|
lineHeight: adClearanceFontSize * 1.2
|
|
140819
141026
|
}],
|
|
@@ -140822,7 +141029,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140822
141029
|
})
|
|
140823
141030
|
});
|
|
140824
141031
|
}
|
|
140825
|
-
var styles2 =
|
|
141032
|
+
var styles2 = import_react_native45.StyleSheet.create({
|
|
140826
141033
|
pressable: {
|
|
140827
141034
|
width: "100%"
|
|
140828
141035
|
},
|
|
@@ -140948,7 +141155,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140948
141155
|
adMetadata: {}
|
|
140949
141156
|
};
|
|
140950
141157
|
}
|
|
140951
|
-
var
|
|
141158
|
+
var import_jsx_runtime27 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
140952
141159
|
var themePalette = {
|
|
140953
141160
|
light: {
|
|
140954
141161
|
title: "#4e5968",
|
|
@@ -141030,27 +141237,27 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
141030
141237
|
onAdImpression = props.onAdImpression,
|
|
141031
141238
|
onAdFailedToRender = props.onAdFailedToRender,
|
|
141032
141239
|
onNoFill = props.onNoFill;
|
|
141033
|
-
var slotIdRef = (0,
|
|
141034
|
-
var
|
|
141240
|
+
var slotIdRef = (0, import_react30.useRef)(createSlotId());
|
|
141241
|
+
var _ref48 = (0, import_react30.useState)(null),
|
|
141242
|
+
_ref49 = _slicedToArray(_ref48, 2),
|
|
141243
|
+
ad = _ref49[0],
|
|
141244
|
+
setAd = _ref49[1];
|
|
141245
|
+
var _ref50 = (0, import_react30.useState)(true),
|
|
141035
141246
|
_ref51 = _slicedToArray(_ref50, 2),
|
|
141036
|
-
|
|
141037
|
-
|
|
141038
|
-
var
|
|
141039
|
-
|
|
141040
|
-
|
|
141041
|
-
|
|
141042
|
-
var
|
|
141043
|
-
var
|
|
141044
|
-
var
|
|
141045
|
-
var
|
|
141046
|
-
var
|
|
141047
|
-
var
|
|
141048
|
-
var
|
|
141049
|
-
var
|
|
141050
|
-
var lastImp1pxAtRef = (0, import_react29.useRef)(null);
|
|
141051
|
-
var loadingRef = (0, import_react29.useRef)(false);
|
|
141052
|
-
var loadRef = (0, import_react29.useRef)(null);
|
|
141053
|
-
var callbacksRef = (0, import_react29.useRef)({
|
|
141247
|
+
isAdBadgeEnabled = _ref51[0],
|
|
141248
|
+
setIsAdBadgeEnabled = _ref51[1];
|
|
141249
|
+
var eventTrackerRef = (0, import_react30.useRef)(null);
|
|
141250
|
+
var eventPayloadRef = (0, import_react30.useRef)(null);
|
|
141251
|
+
var hasRenderedRef = (0, import_react30.useRef)(false);
|
|
141252
|
+
var hasLoggedImp1pxRef = (0, import_react30.useRef)(false);
|
|
141253
|
+
var hasLoggedImp100pRef = (0, import_react30.useRef)(false);
|
|
141254
|
+
var hasNotifiedViewableRef = (0, import_react30.useRef)(false);
|
|
141255
|
+
var viewableTimerRef = (0, import_react30.useRef)(null);
|
|
141256
|
+
var refetchIntervalMsRef = (0, import_react30.useRef)(null);
|
|
141257
|
+
var lastImp1pxAtRef = (0, import_react30.useRef)(null);
|
|
141258
|
+
var loadingRef = (0, import_react30.useRef)(false);
|
|
141259
|
+
var loadRef = (0, import_react30.useRef)(null);
|
|
141260
|
+
var callbacksRef = (0, import_react30.useRef)({
|
|
141054
141261
|
onAdRendered,
|
|
141055
141262
|
onAdViewable,
|
|
141056
141263
|
onAdClicked,
|
|
@@ -141058,13 +141265,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
141058
141265
|
onAdFailedToRender,
|
|
141059
141266
|
onNoFill
|
|
141060
141267
|
});
|
|
141061
|
-
var isMountedRef = (0,
|
|
141062
|
-
var colorScheme = (0,
|
|
141268
|
+
var isMountedRef = (0, import_react30.useRef)(false);
|
|
141269
|
+
var colorScheme = (0, import_react_native47.useColorScheme)();
|
|
141063
141270
|
var selectedTheme = theme ?? DEFAULT_INLINE_AD_THEME;
|
|
141064
141271
|
var resolvedTheme = selectedTheme === "auto" ? colorScheme === "dark" ? "dark" : "light" : selectedTheme;
|
|
141065
141272
|
var resolvedTone = tone ?? DEFAULT_INLINE_AD_TONE;
|
|
141066
141273
|
var resolvedVariant = variant ?? DEFAULT_INLINE_AD_VARIANT;
|
|
141067
|
-
var
|
|
141274
|
+
var colors4 = themePalette[resolvedTheme];
|
|
141068
141275
|
var feedColors = feedThemePalette[resolvedTheme];
|
|
141069
141276
|
var backgroundColor = resolvedTone === "grey" ? resolvedTheme === "dark" ? "#101013" : "#f2f4f7" : resolvedTheme === "dark" ? "#17171c" : "#ffffff";
|
|
141070
141277
|
callbacksRef.current = {
|
|
@@ -141075,7 +141282,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
141075
141282
|
onAdFailedToRender,
|
|
141076
141283
|
onNoFill
|
|
141077
141284
|
};
|
|
141078
|
-
(0,
|
|
141285
|
+
(0, import_react30.useEffect)(() => {
|
|
141079
141286
|
isMountedRef.current = true;
|
|
141080
141287
|
return () => {
|
|
141081
141288
|
isMountedRef.current = false;
|
|
@@ -141085,7 +141292,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
141085
141292
|
}
|
|
141086
141293
|
};
|
|
141087
141294
|
}, []);
|
|
141088
|
-
(0,
|
|
141295
|
+
(0, import_react30.useEffect)(() => {
|
|
141089
141296
|
var normalizedAdGroupId = normalizeAdGroupId(adGroupId);
|
|
141090
141297
|
var loadAdRequest = () => {
|
|
141091
141298
|
if (loadingRef.current) {
|
|
@@ -141143,7 +141350,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
141143
141350
|
loadRef.current = null;
|
|
141144
141351
|
};
|
|
141145
141352
|
}, [adGroupId]);
|
|
141146
|
-
(0,
|
|
141353
|
+
(0, import_react_native46.useVisibilityChange)(documentVisibility => {
|
|
141147
141354
|
if (documentVisibility !== "visible") {
|
|
141148
141355
|
return;
|
|
141149
141356
|
}
|
|
@@ -141156,7 +141363,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
141156
141363
|
loadRef.current?.();
|
|
141157
141364
|
}
|
|
141158
141365
|
});
|
|
141159
|
-
(0,
|
|
141366
|
+
(0, import_react30.useEffect)(() => {
|
|
141160
141367
|
if (!ad || hasRenderedRef.current) {
|
|
141161
141368
|
return;
|
|
141162
141369
|
}
|
|
@@ -141241,36 +141448,36 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
141241
141448
|
callbacksRef.current.onAdClicked?.(basePayload);
|
|
141242
141449
|
}
|
|
141243
141450
|
};
|
|
141244
|
-
return (0,
|
|
141451
|
+
return (0, import_jsx_runtime27.jsx)(import_react_native46.ImpressionArea, {
|
|
141245
141452
|
style: styles3.impressionArea,
|
|
141246
141453
|
onImpressionStart: handleImpression1px,
|
|
141247
141454
|
areaThreshold: 0,
|
|
141248
141455
|
UNSAFE__impressFallbackOnMount: Boolean(impressFallbackOnMount),
|
|
141249
|
-
children: (0,
|
|
141456
|
+
children: (0, import_jsx_runtime27.jsx)(import_react_native46.ImpressionArea, {
|
|
141250
141457
|
onImpressionStart: handleImpression100p,
|
|
141251
141458
|
areaThreshold: 1,
|
|
141252
141459
|
UNSAFE__impressFallbackOnMount: Boolean(impressFallbackOnMount),
|
|
141253
|
-
children: (0,
|
|
141460
|
+
children: (0, import_jsx_runtime27.jsx)(import_react_native46.ImpressionArea, {
|
|
141254
141461
|
onImpressionStart: handleViewableStart,
|
|
141255
141462
|
onImpressionEnd: handleViewableEnd,
|
|
141256
141463
|
areaThreshold: 0.5,
|
|
141257
141464
|
UNSAFE__impressFallbackOnMount: Boolean(impressFallbackOnMount),
|
|
141258
|
-
children: (0,
|
|
141465
|
+
children: (0, import_jsx_runtime27.jsx)(import_react_native47.View, {
|
|
141259
141466
|
style: [styles3.wrapper, resolvedVariant === "card" && styles3.cardWrapper],
|
|
141260
|
-
children: (0,
|
|
141467
|
+
children: (0, import_jsx_runtime27.jsxs)(import_react_native47.View, {
|
|
141261
141468
|
style: [styles3.surface, {
|
|
141262
141469
|
backgroundColor
|
|
141263
141470
|
}, resolvedVariant === "card" && styles3.cardSurface],
|
|
141264
|
-
children: [isListBanner && listCreative ? (0,
|
|
141471
|
+
children: [isListBanner && listCreative ? (0, import_jsx_runtime27.jsx)(ListBannerAdView, {
|
|
141265
141472
|
title: listCreative.title,
|
|
141266
141473
|
subtitle: subtitleText,
|
|
141267
141474
|
adClearanceText,
|
|
141268
141475
|
adClearanceFontSize,
|
|
141269
141476
|
imageUri,
|
|
141270
141477
|
paddingStyle,
|
|
141271
|
-
colors,
|
|
141478
|
+
colors: colors4,
|
|
141272
141479
|
onPress: handleClick
|
|
141273
|
-
}) : null, isFeedBanner && feedCreative ? (0,
|
|
141480
|
+
}) : null, isFeedBanner && feedCreative ? (0, import_jsx_runtime27.jsx)(FeedBannerAdView, {
|
|
141274
141481
|
brandName: feedCreative.brandName,
|
|
141275
141482
|
brandLogoUri,
|
|
141276
141483
|
title: feedCreative.title,
|
|
@@ -141291,7 +141498,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
141291
141498
|
})
|
|
141292
141499
|
}, impressionKey);
|
|
141293
141500
|
}
|
|
141294
|
-
var styles3 =
|
|
141501
|
+
var styles3 = import_react_native47.StyleSheet.create({
|
|
141295
141502
|
impressionArea: {
|
|
141296
141503
|
width: "100%"
|
|
141297
141504
|
},
|
|
@@ -141335,9 +141542,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
141335
141542
|
useWaitForReturnNavigator,
|
|
141336
141543
|
..._$$_REQUIRE(_dependencyMap[4], "@apps-in-toss/analytics"),
|
|
141337
141544
|
..._$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules"),
|
|
141338
|
-
..._$$_REQUIRE(_dependencyMap[
|
|
141545
|
+
..._$$_REQUIRE(_dependencyMap[20], "@apps-in-toss/types")
|
|
141339
141546
|
});
|
|
141340
|
-
},1283,[21,20,17,48,1284,1285,2,1472,34,6,9,2440,2521,615,2524,2574,2582,2599,2449,1286
|
|
141547
|
+
},1283,[21,20,17,48,1284,1285,2,1472,34,6,9,2440,2521,615,754,2524,2574,2582,2599,2449,1286],"../../../../.yarn/__virtual__/@apps-in-toss-framework-virtual-afbad361af/1/packages/apps-in-toss/framework/dist/index.cjs");
|
|
141341
141548
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
141342
141549
|
"use strict";
|
|
141343
141550
|
|