@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
|
@@ -136731,7 +136731,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
136731
136731
|
AppsInToss: () => AppsInToss,
|
|
136732
136732
|
INTERNAL__onVisibilityChangedByTransparentServiceWeb: () => INTERNAL__onVisibilityChangedByTransparentServiceWeb,
|
|
136733
136733
|
InlineAd: () => InlineAd,
|
|
136734
|
-
OverlayProvider: () =>
|
|
136734
|
+
OverlayProvider: () => import_private5.OverlayProvider,
|
|
136735
136735
|
StartUpdateLocationPermissionError: () => import_types.StartUpdateLocationPermissionError,
|
|
136736
136736
|
WebView: () => WebView,
|
|
136737
136737
|
env: () => env,
|
|
@@ -136741,7 +136741,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
136741
136741
|
showFullScreenAd: () => showFullScreenAd,
|
|
136742
136742
|
useCreateUserAgent: () => useCreateUserAgent,
|
|
136743
136743
|
useGeolocation: () => useGeolocation,
|
|
136744
|
-
useOverlay: () =>
|
|
136744
|
+
useOverlay: () => import_private5.useOverlay,
|
|
136745
136745
|
useTopNavigation: () => useTopNavigation,
|
|
136746
136746
|
useWaitForReturnNavigator: () => useWaitForReturnNavigator
|
|
136747
136747
|
});
|
|
@@ -136749,9 +136749,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
136749
136749
|
var import_analytics2 = _$$_REQUIRE(_dependencyMap[4], "@apps-in-toss/analytics");
|
|
136750
136750
|
var import_analytics = _$$_REQUIRE(_dependencyMap[4], "@apps-in-toss/analytics");
|
|
136751
136751
|
var import_native_modules10 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
|
|
136752
|
-
var
|
|
136753
|
-
var
|
|
136754
|
-
var
|
|
136752
|
+
var import_react_native27 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
136753
|
+
var import_tds_react_native11 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
|
|
136754
|
+
var import_react_native28 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
136755
136755
|
var import_react_native2 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
136756
136756
|
var import_react = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
136757
136757
|
var env = {
|
|
@@ -136864,8 +136864,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
136864
136864
|
return context;
|
|
136865
136865
|
}
|
|
136866
136866
|
var import_native_modules9 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
|
|
136867
|
-
var
|
|
136868
|
-
var
|
|
136867
|
+
var import_react16 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
136868
|
+
var import_react_native26 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
136869
136869
|
var import_native_modules4 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
|
|
136870
136870
|
var import_react_native9 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
136871
136871
|
var import_tds_react_native4 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
|
|
@@ -137341,7 +137341,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137341
137341
|
bottom: 0,
|
|
137342
137342
|
zIndex: Z_INDEX.PROFILE_OVERLAY
|
|
137343
137343
|
};
|
|
137344
|
-
var import_private5 = _$$_REQUIRE(_dependencyMap[12], "@toss/tds-react-native/private");
|
|
137345
137344
|
var import_react11 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
137346
137345
|
var import_react_native11 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
137347
137346
|
function useHardwareBackPress(handler) {
|
|
@@ -137476,7 +137475,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137476
137475
|
if (homeEvent.hasSubscriptions()) {
|
|
137477
137476
|
homeEvent.emit({});
|
|
137478
137477
|
} else {
|
|
137479
|
-
navigation.navigate("/"
|
|
137478
|
+
navigation.navigate("/", {}, {
|
|
137479
|
+
pop: true
|
|
137480
|
+
});
|
|
137480
137481
|
}
|
|
137481
137482
|
},
|
|
137482
137483
|
handleCloseButtonClick: () => {
|
|
@@ -137844,24 +137845,267 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137844
137845
|
children
|
|
137845
137846
|
});
|
|
137846
137847
|
}
|
|
137847
|
-
|
|
137848
|
-
|
|
137849
|
-
|
|
137850
|
-
uri: source
|
|
137851
|
-
}
|
|
137852
|
-
} : {
|
|
137853
|
-
name: source
|
|
137854
|
-
};
|
|
137855
|
-
}
|
|
137848
|
+
var import_react_native_safe_area_context = _$$_REQUIRE(_dependencyMap[13], "@granite-js/native/react-native-safe-area-context");
|
|
137849
|
+
var import_react_native19 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
137850
|
+
var import_tds_react_native8 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
|
|
137856
137851
|
var import_react14 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
137852
|
+
var import_react_native20 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
137857
137853
|
var import_jsx_runtime10 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
137854
|
+
function TopNavigation({
|
|
137855
|
+
left,
|
|
137856
|
+
center,
|
|
137857
|
+
right
|
|
137858
|
+
}) {
|
|
137859
|
+
var insets = (0, import_react_native_safe_area_context.useSafeAreaInsets)();
|
|
137860
|
+
var navigation = (0, import_react_native19.useNavigation)();
|
|
137861
|
+
(0, import_react14.useEffect)(() => {
|
|
137862
|
+
var _getAppsInTossGlobals = getAppsInTossGlobals(),
|
|
137863
|
+
navigationBar = _getAppsInTossGlobals.navigationBar;
|
|
137864
|
+
var parsedNavigationBar = navigationBar ? safeParseNavigationBar(navigationBar) : null;
|
|
137865
|
+
var transparent = parsedNavigationBar?.transparentBackground ?? false;
|
|
137866
|
+
var theme = parsedNavigationBar?.theme ?? "light";
|
|
137867
|
+
navigation.setOptions({
|
|
137868
|
+
headerTransparent: transparent,
|
|
137869
|
+
header: () => (0, import_jsx_runtime10.jsxs)(import_react_native20.View, {
|
|
137870
|
+
style: {
|
|
137871
|
+
width: "100%",
|
|
137872
|
+
backgroundColor: transparent ? void 0 : theme === "light" ? import_tds_react_native8.colors.lightThemeBackground : import_tds_react_native8.colors.darkThemeBackground
|
|
137873
|
+
},
|
|
137874
|
+
pointerEvents: "box-none",
|
|
137875
|
+
children: [(0, import_jsx_runtime10.jsx)(import_react_native20.View, {
|
|
137876
|
+
style: {
|
|
137877
|
+
width: "100%",
|
|
137878
|
+
height: insets.top
|
|
137879
|
+
}
|
|
137880
|
+
}), (0, import_jsx_runtime10.jsxs)(import_react_native20.View, {
|
|
137881
|
+
style: {
|
|
137882
|
+
width: "100%",
|
|
137883
|
+
height: 44,
|
|
137884
|
+
display: "flex",
|
|
137885
|
+
flexDirection: "row",
|
|
137886
|
+
alignItems: "center",
|
|
137887
|
+
paddingLeft: insets.left,
|
|
137888
|
+
paddingRight: insets.right
|
|
137889
|
+
},
|
|
137890
|
+
children: [(0, import_jsx_runtime10.jsx)(import_react_native20.View, {
|
|
137891
|
+
children: left
|
|
137892
|
+
}), (0, import_jsx_runtime10.jsx)(import_react_native20.View, {
|
|
137893
|
+
style: {
|
|
137894
|
+
flex: 1,
|
|
137895
|
+
display: "flex",
|
|
137896
|
+
flexDirection: "row",
|
|
137897
|
+
alignItems: "center"
|
|
137898
|
+
},
|
|
137899
|
+
children: center
|
|
137900
|
+
}), (0, import_jsx_runtime10.jsx)(import_react_native20.View, {
|
|
137901
|
+
style: {
|
|
137902
|
+
flexDirection: "row",
|
|
137903
|
+
alignItems: "center"
|
|
137904
|
+
},
|
|
137905
|
+
children: right
|
|
137906
|
+
})]
|
|
137907
|
+
})]
|
|
137908
|
+
})
|
|
137909
|
+
});
|
|
137910
|
+
}, [navigation, insets, left, center, right]);
|
|
137911
|
+
return (0, import_jsx_runtime10.jsx)(import_jsx_runtime10.Fragment, {});
|
|
137912
|
+
}
|
|
137913
|
+
var import_react_native_svg = _$$_REQUIRE(_dependencyMap[14], "@granite-js/native/react-native-svg");
|
|
137914
|
+
var import_react_native21 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
137915
|
+
var import_jsx_runtime11 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
137916
|
+
function BackButton({
|
|
137917
|
+
theme = "light",
|
|
137918
|
+
onPress,
|
|
137919
|
+
...restProps
|
|
137920
|
+
}) {
|
|
137921
|
+
return (0, import_jsx_runtime11.jsx)(import_react_native21.TouchableOpacity, {
|
|
137922
|
+
hitSlop: {
|
|
137923
|
+
top: 10,
|
|
137924
|
+
right: 10,
|
|
137925
|
+
bottom: 10,
|
|
137926
|
+
left: 10
|
|
137927
|
+
},
|
|
137928
|
+
style: {
|
|
137929
|
+
width: 24,
|
|
137930
|
+
height: 24,
|
|
137931
|
+
marginRight: 14
|
|
137932
|
+
},
|
|
137933
|
+
onPress,
|
|
137934
|
+
accessibilityRole: "button",
|
|
137935
|
+
accessibilityLabel: "\uB4A4\uB85C\uAC00\uAE30",
|
|
137936
|
+
...restProps,
|
|
137937
|
+
children: (0, import_jsx_runtime11.jsx)(import_react_native21.View, {
|
|
137938
|
+
style: {
|
|
137939
|
+
width: 24,
|
|
137940
|
+
height: 24
|
|
137941
|
+
},
|
|
137942
|
+
children: (0, import_jsx_runtime11.jsx)(import_react_native_svg.SvgXml, {
|
|
137943
|
+
width: 24,
|
|
137944
|
+
height: 24,
|
|
137945
|
+
xml: BACK_BUTTON_XML.replace(/__COLOR__/g, theme === "light" ? "#191F28" : "#FFFFFF")
|
|
137946
|
+
})
|
|
137947
|
+
})
|
|
137948
|
+
});
|
|
137949
|
+
}
|
|
137950
|
+
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>`;
|
|
137951
|
+
var import_tds_react_native9 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
|
|
137952
|
+
var import_react_native22 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
137953
|
+
var import_jsx_runtime12 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
137954
|
+
function HomeButton({
|
|
137955
|
+
theme = "light",
|
|
137956
|
+
onPress,
|
|
137957
|
+
children
|
|
137958
|
+
}) {
|
|
137959
|
+
return (0, import_jsx_runtime12.jsxs)(import_react_native22.TouchableOpacity, {
|
|
137960
|
+
onPress,
|
|
137961
|
+
style: {
|
|
137962
|
+
flexDirection: "row",
|
|
137963
|
+
alignItems: "center",
|
|
137964
|
+
gap: 6,
|
|
137965
|
+
height: 34,
|
|
137966
|
+
paddingLeft: 10,
|
|
137967
|
+
paddingRight: 10,
|
|
137968
|
+
backgroundColor: theme === "light" ? import_tds_react_native9.colors.greyOpacity50 : "rgba(0, 0, 1, 0.58)",
|
|
137969
|
+
borderRadius: 99
|
|
137970
|
+
},
|
|
137971
|
+
children: [children, (0, import_jsx_runtime12.jsx)(import_tds_react_native9.Icon, {
|
|
137972
|
+
name: "icon-home-mono",
|
|
137973
|
+
size: 18
|
|
137974
|
+
})]
|
|
137975
|
+
});
|
|
137976
|
+
}
|
|
137977
|
+
var import_react_native23 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
137978
|
+
var import_react_native24 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
137979
|
+
var import_jsx_runtime13 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
137980
|
+
function AppTitle({
|
|
137981
|
+
title,
|
|
137982
|
+
iconUrl,
|
|
137983
|
+
theme = "light"
|
|
137984
|
+
}) {
|
|
137985
|
+
return (0, import_jsx_runtime13.jsxs)(import_react_native24.View, {
|
|
137986
|
+
style: {
|
|
137987
|
+
flexDirection: "row",
|
|
137988
|
+
alignItems: "center",
|
|
137989
|
+
gap: 6
|
|
137990
|
+
},
|
|
137991
|
+
children: [iconUrl != null && iconUrl !== "" && (0, import_jsx_runtime13.jsx)(import_react_native23.Image, {
|
|
137992
|
+
source: {
|
|
137993
|
+
uri: iconUrl
|
|
137994
|
+
},
|
|
137995
|
+
style: {
|
|
137996
|
+
width: 18,
|
|
137997
|
+
height: 18,
|
|
137998
|
+
borderRadius: 6,
|
|
137999
|
+
overflow: "hidden"
|
|
138000
|
+
}
|
|
138001
|
+
}), (0, import_jsx_runtime13.jsx)(import_react_native24.Text, {
|
|
138002
|
+
numberOfLines: 1,
|
|
138003
|
+
ellipsizeMode: "tail",
|
|
138004
|
+
style: {
|
|
138005
|
+
color: theme === "light" ? "#191F28" : "#FFFFFF",
|
|
138006
|
+
fontSize: 16,
|
|
138007
|
+
fontWeight: "600"
|
|
138008
|
+
},
|
|
138009
|
+
children: title
|
|
138010
|
+
})]
|
|
138011
|
+
});
|
|
138012
|
+
}
|
|
138013
|
+
var import_tds_react_native10 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
|
|
138014
|
+
var import_react_native25 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
138015
|
+
var import_jsx_runtime14 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
138016
|
+
function Menu2({
|
|
138017
|
+
theme = "light",
|
|
138018
|
+
accessoryButton,
|
|
138019
|
+
onPressDots,
|
|
138020
|
+
onLongPressDots,
|
|
138021
|
+
onPressClose
|
|
138022
|
+
}) {
|
|
138023
|
+
var backgroundColor = theme === "light" ? import_tds_react_native10.colors.greyOpacity50 : "rgba(0, 0, 1, 0.58)";
|
|
138024
|
+
var iconColor = theme === "light" ? import_tds_react_native10.colors.greyOpacity600 : "rgba(253, 253, 255, 0.75)";
|
|
138025
|
+
return (0, import_jsx_runtime14.jsxs)(import_react_native25.View, {
|
|
138026
|
+
style: {
|
|
138027
|
+
flexDirection: "row",
|
|
138028
|
+
alignItems: "center",
|
|
138029
|
+
gap: 4
|
|
138030
|
+
},
|
|
138031
|
+
children: [accessoryButton && (0, import_jsx_runtime14.jsx)(import_react_native25.View, {
|
|
138032
|
+
style: {
|
|
138033
|
+
borderRadius: 99,
|
|
138034
|
+
overflow: "hidden"
|
|
138035
|
+
},
|
|
138036
|
+
children: (0, import_jsx_runtime14.jsx)(import_react_native25.TouchableOpacity, {
|
|
138037
|
+
style: {
|
|
138038
|
+
paddingVertical: 7,
|
|
138039
|
+
paddingHorizontal: 12,
|
|
138040
|
+
backgroundColor
|
|
138041
|
+
},
|
|
138042
|
+
onPress: () => {
|
|
138043
|
+
import_tds_react_native10.tdsEvent.emit("navigationAccessoryEvent", {
|
|
138044
|
+
id: accessoryButton.id
|
|
138045
|
+
});
|
|
138046
|
+
accessoryButton.onPress?.();
|
|
138047
|
+
},
|
|
138048
|
+
disabled: accessoryButton.disabled,
|
|
138049
|
+
children: (0, import_jsx_runtime14.jsx)(import_tds_react_native10.Icon, {
|
|
138050
|
+
name: accessoryButton.icon.name ?? "",
|
|
138051
|
+
accessibilityLabel: accessoryButton.title,
|
|
138052
|
+
color: iconColor,
|
|
138053
|
+
size: 20
|
|
138054
|
+
})
|
|
138055
|
+
})
|
|
138056
|
+
}), (0, import_jsx_runtime14.jsx)(import_react_native25.View, {
|
|
138057
|
+
style: {
|
|
138058
|
+
borderRadius: 99,
|
|
138059
|
+
overflow: "hidden",
|
|
138060
|
+
marginRight: 12
|
|
138061
|
+
},
|
|
138062
|
+
children: (0, import_jsx_runtime14.jsxs)(import_react_native25.View, {
|
|
138063
|
+
style: {
|
|
138064
|
+
flexDirection: "row",
|
|
138065
|
+
justifyContent: "center",
|
|
138066
|
+
alignItems: "center",
|
|
138067
|
+
gap: 12,
|
|
138068
|
+
height: 34,
|
|
138069
|
+
paddingHorizontal: 12,
|
|
138070
|
+
backgroundColor
|
|
138071
|
+
},
|
|
138072
|
+
children: [(0, import_jsx_runtime14.jsx)(import_react_native25.TouchableOpacity, {
|
|
138073
|
+
onPress: onPressDots,
|
|
138074
|
+
onLongPress: onLongPressDots,
|
|
138075
|
+
children: (0, import_jsx_runtime14.jsx)(import_tds_react_native10.Icon, {
|
|
138076
|
+
name: "icon-dots-mono",
|
|
138077
|
+
accessibilityLabel: "\uB354\uBCF4\uAE30",
|
|
138078
|
+
color: iconColor,
|
|
138079
|
+
size: 20
|
|
138080
|
+
})
|
|
138081
|
+
}), (0, import_jsx_runtime14.jsx)(import_react_native25.View, {
|
|
138082
|
+
style: {
|
|
138083
|
+
width: 1,
|
|
138084
|
+
height: 16,
|
|
138085
|
+
backgroundColor: theme === "light" ? import_tds_react_native10.colors.greyOpacity200 : "rgba(222, 222, 255, 0.19)"
|
|
138086
|
+
}
|
|
138087
|
+
}), (0, import_jsx_runtime14.jsx)(import_react_native25.TouchableOpacity, {
|
|
138088
|
+
onPress: onPressClose,
|
|
138089
|
+
children: (0, import_jsx_runtime14.jsx)(import_tds_react_native10.Icon, {
|
|
138090
|
+
name: "icon-appsintoss-close-mono",
|
|
138091
|
+
accessibilityLabel: "\uB2EB\uAE30",
|
|
138092
|
+
color: iconColor,
|
|
138093
|
+
size: 20
|
|
138094
|
+
})
|
|
138095
|
+
})]
|
|
138096
|
+
})
|
|
138097
|
+
})]
|
|
138098
|
+
});
|
|
138099
|
+
}
|
|
138100
|
+
var import_react15 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
138101
|
+
var import_jsx_runtime15 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
137858
138102
|
function NavigationBarImpressionArea({
|
|
137859
138103
|
children,
|
|
137860
138104
|
withHomeButton
|
|
137861
138105
|
}) {
|
|
137862
|
-
var hasLogged = (0,
|
|
138106
|
+
var hasLogged = (0, import_react15.useRef)(false);
|
|
137863
138107
|
var logging = useNavigationBarLogging();
|
|
137864
|
-
(0,
|
|
138108
|
+
(0, import_react15.useEffect)(() => {
|
|
137865
138109
|
if (hasLogged.current === false) {
|
|
137866
138110
|
logging.navBarImpression({
|
|
137867
138111
|
home_icon_yn: withHomeButton ? "Y" : "N"
|
|
@@ -137869,11 +138113,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137869
138113
|
hasLogged.current = true;
|
|
137870
138114
|
}
|
|
137871
138115
|
}, [logging, withHomeButton]);
|
|
137872
|
-
return (0,
|
|
138116
|
+
return (0, import_jsx_runtime15.jsx)(import_jsx_runtime15.Fragment, {
|
|
137873
138117
|
children
|
|
137874
138118
|
});
|
|
137875
138119
|
}
|
|
137876
|
-
var
|
|
138120
|
+
var import_jsx_runtime16 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
137877
138121
|
function DefaultNavigationBar() {
|
|
137878
138122
|
var globals = getAppsInTossGlobals();
|
|
137879
138123
|
var _useMoreButtonBottomS = useMoreButtonBottomSheet(),
|
|
@@ -137881,72 +138125,58 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137881
138125
|
var parsedNavigationBar = globals.navigationBar != null ? safeParseNavigationBar(globals.navigationBar) : null;
|
|
137882
138126
|
var withHomeButton = parsedNavigationBar?.withHomeButton ?? false;
|
|
137883
138127
|
var withBackButton = parsedNavigationBar?.withBackButton ?? true;
|
|
138128
|
+
var theme = parsedNavigationBar?.theme ?? "light";
|
|
137884
138129
|
var _useNavigationBarCont = useNavigationBarContext(),
|
|
137885
138130
|
navigationRightButton = _useNavigationBarCont.navigationRightButton;
|
|
137886
138131
|
var navigationEvent = useNavigationEvent();
|
|
137887
138132
|
useHardwareBackPress(navigationEvent.handleBack);
|
|
137888
|
-
return (0,
|
|
138133
|
+
return (0, import_jsx_runtime16.jsx)(NavigationBarImpressionArea, {
|
|
137889
138134
|
withHomeButton,
|
|
137890
|
-
children: (0,
|
|
137891
|
-
|
|
137892
|
-
|
|
137893
|
-
|
|
137894
|
-
|
|
137895
|
-
|
|
137896
|
-
|
|
137897
|
-
|
|
137898
|
-
|
|
137899
|
-
|
|
137900
|
-
|
|
137901
|
-
|
|
137902
|
-
children: (0, import_jsx_runtime11.jsx)(import_private5.NavigationBackButton, {
|
|
137903
|
-
onPress: navigationEvent.handleBack,
|
|
137904
|
-
canGoBack: false
|
|
138135
|
+
children: (0, import_jsx_runtime16.jsx)(TopNavigation, {
|
|
138136
|
+
left: withBackButton ? (0, import_jsx_runtime16.jsx)(BackButton, {
|
|
138137
|
+
theme,
|
|
138138
|
+
onPress: navigationEvent.handleBack
|
|
138139
|
+
}) : null,
|
|
138140
|
+
center: withHomeButton ? (0, import_jsx_runtime16.jsx)(HomeButton, {
|
|
138141
|
+
theme,
|
|
138142
|
+
onPress: navigationEvent.handleHomeButtonClick,
|
|
138143
|
+
children: (0, import_jsx_runtime16.jsx)(AppTitle, {
|
|
138144
|
+
theme,
|
|
138145
|
+
title: globals.brandDisplayName,
|
|
138146
|
+
iconUrl: globals.brandIcon
|
|
137905
138147
|
})
|
|
138148
|
+
}) : (0, import_jsx_runtime16.jsx)(AppTitle, {
|
|
138149
|
+
theme,
|
|
138150
|
+
title: globals.brandDisplayName,
|
|
138151
|
+
iconUrl: globals.brandIcon
|
|
138152
|
+
}),
|
|
138153
|
+
right: (0, import_jsx_runtime16.jsx)(Menu2, {
|
|
138154
|
+
theme,
|
|
138155
|
+
accessoryButton: navigationRightButton,
|
|
138156
|
+
onPressDots: openMoreButtonBottomSheet,
|
|
138157
|
+
onPressClose: navigationEvent.handleCloseButtonClick
|
|
137906
138158
|
})
|
|
137907
138159
|
})
|
|
137908
138160
|
});
|
|
137909
138161
|
}
|
|
137910
|
-
var
|
|
137911
|
-
var import_tds_react_native8 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
|
|
137912
|
-
var import_private6 = _$$_REQUIRE(_dependencyMap[12], "@toss/tds-react-native/private");
|
|
137913
|
-
var import_react_native19 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
137914
|
-
var import_jsx_runtime12 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
138162
|
+
var import_jsx_runtime17 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
137915
138163
|
function GameNavigationBar() {
|
|
137916
|
-
var safeAreaTop = (0, import_private6.useSafeAreaTop)();
|
|
137917
138164
|
var _useMoreButtonBottomS2 = useMoreButtonBottomSheet(),
|
|
137918
138165
|
openMoreButtonBottomSheet = _useMoreButtonBottomS2.open;
|
|
137919
138166
|
var navigationEvent = useNavigationEvent();
|
|
137920
138167
|
var _useNavigationBarCont2 = useNavigationBarContext(),
|
|
137921
138168
|
navigationRightButton = _useNavigationBarCont2.navigationRightButton;
|
|
137922
|
-
var
|
|
137923
|
-
|
|
138169
|
+
var _getAppsInTossGlobals2 = getAppsInTossGlobals(),
|
|
138170
|
+
navigationBar = _getAppsInTossGlobals2.navigationBar;
|
|
138171
|
+
var parsedNavigationBar = navigationBar ? safeParseNavigationBar(navigationBar) : null;
|
|
137924
138172
|
useHardwareBackPress(navigationEvent.handleBack);
|
|
137925
|
-
return (0,
|
|
137926
|
-
|
|
137927
|
-
|
|
137928
|
-
|
|
137929
|
-
|
|
137930
|
-
|
|
137931
|
-
|
|
137932
|
-
width: "100%",
|
|
137933
|
-
height: import_react_native19.Platform.OS === "ios" ? 44 : 54,
|
|
137934
|
-
flexDirection: "row",
|
|
137935
|
-
alignItems: "center",
|
|
137936
|
-
justifyContent: "flex-end",
|
|
137937
|
-
position: "absolute",
|
|
137938
|
-
zIndex: Z_INDEX.CLOSE_BUTTON,
|
|
137939
|
-
marginTop: safeAreaTop,
|
|
137940
|
-
paddingRight: safeAreaRight + 10
|
|
137941
|
-
},
|
|
137942
|
-
pointerEvents: "box-none",
|
|
137943
|
-
children: (0, import_jsx_runtime12.jsx)(import_private6.NavigationRightContent, {
|
|
137944
|
-
fixedRightButton: navigationRightButton,
|
|
137945
|
-
onPressDots: openMoreButtonBottomSheet,
|
|
137946
|
-
onPressClose: navigationEvent.handleCloseButtonClick,
|
|
137947
|
-
theme: "dark"
|
|
137948
|
-
})
|
|
137949
|
-
})]
|
|
138173
|
+
return (0, import_jsx_runtime17.jsx)(TopNavigation, {
|
|
138174
|
+
right: (0, import_jsx_runtime17.jsx)(Menu2, {
|
|
138175
|
+
theme: parsedNavigationBar?.theme ?? "dark",
|
|
138176
|
+
accessoryButton: navigationRightButton,
|
|
138177
|
+
onPressDots: openMoreButtonBottomSheet,
|
|
138178
|
+
onPressClose: navigationEvent.handleCloseButtonClick
|
|
138179
|
+
})
|
|
137950
138180
|
});
|
|
137951
138181
|
}
|
|
137952
138182
|
var RNNavigationBar = {
|
|
@@ -137954,22 +138184,22 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137954
138184
|
Game: GameNavigationBar
|
|
137955
138185
|
};
|
|
137956
138186
|
var bridge_entry_exports = {};
|
|
137957
|
-
__reExport(bridge_entry_exports, _$$_REQUIRE(_dependencyMap[
|
|
137958
|
-
__reExport(bridge_entry_exports, _$$_REQUIRE(_dependencyMap[
|
|
137959
|
-
__reExport(bridge_entry_exports, _$$_REQUIRE(_dependencyMap[
|
|
137960
|
-
var
|
|
138187
|
+
__reExport(bridge_entry_exports, _$$_REQUIRE(_dependencyMap[15], "@apps-in-toss/native-modules/async-bridges"));
|
|
138188
|
+
__reExport(bridge_entry_exports, _$$_REQUIRE(_dependencyMap[16], "@apps-in-toss/native-modules/constant-bridges"));
|
|
138189
|
+
__reExport(bridge_entry_exports, _$$_REQUIRE(_dependencyMap[17], "@apps-in-toss/native-modules/event-bridges"));
|
|
138190
|
+
var import_jsx_runtime18 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
137961
138191
|
function RNAppContainer({
|
|
137962
138192
|
children
|
|
137963
138193
|
}) {
|
|
137964
138194
|
var global2 = getAppsInTossGlobals();
|
|
137965
138195
|
switch (global2.appType) {
|
|
137966
138196
|
case "game":
|
|
137967
|
-
return (0,
|
|
138197
|
+
return (0, import_jsx_runtime18.jsx)(GameAppContainer, {
|
|
137968
138198
|
children
|
|
137969
138199
|
});
|
|
137970
138200
|
case "general":
|
|
137971
138201
|
default:
|
|
137972
|
-
return (0,
|
|
138202
|
+
return (0, import_jsx_runtime18.jsx)(GeneralAppContainer, {
|
|
137973
138203
|
children
|
|
137974
138204
|
});
|
|
137975
138205
|
}
|
|
@@ -137977,8 +138207,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137977
138207
|
function GameAppContainer({
|
|
137978
138208
|
children
|
|
137979
138209
|
}) {
|
|
137980
|
-
(0,
|
|
137981
|
-
if (
|
|
138210
|
+
(0, import_react16.useEffect)(() => {
|
|
138211
|
+
if (import_react_native26.Platform.OS === "ios") {
|
|
137982
138212
|
(0, import_native_modules9.setIosSwipeGestureEnabled)({
|
|
137983
138213
|
isEnabled: false
|
|
137984
138214
|
});
|
|
@@ -137990,8 +138220,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137990
138220
|
}
|
|
137991
138221
|
return;
|
|
137992
138222
|
}, []);
|
|
137993
|
-
return (0,
|
|
137994
|
-
children: [(0,
|
|
138223
|
+
return (0, import_jsx_runtime18.jsxs)(import_jsx_runtime18.Fragment, {
|
|
138224
|
+
children: [(0, import_jsx_runtime18.jsx)(RNNavigationBar.Game, {}), (0, bridge_entry_exports.getOperationalEnvironment)() === "toss" ? (0, import_jsx_runtime18.jsx)(GameInitializer, {
|
|
137995
138225
|
children
|
|
137996
138226
|
}) : children]
|
|
137997
138227
|
});
|
|
@@ -137999,11 +138229,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137999
138229
|
function GeneralAppContainer({
|
|
138000
138230
|
children
|
|
138001
138231
|
}) {
|
|
138002
|
-
return (0,
|
|
138003
|
-
children: [(0,
|
|
138232
|
+
return (0, import_jsx_runtime18.jsxs)(import_jsx_runtime18.Fragment, {
|
|
138233
|
+
children: [(0, import_jsx_runtime18.jsx)(RNNavigationBar.Default, {}), children]
|
|
138004
138234
|
});
|
|
138005
138235
|
}
|
|
138006
|
-
var
|
|
138236
|
+
var import_jsx_runtime19 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
138007
138237
|
function AppsInTossContainer(Container, {
|
|
138008
138238
|
children,
|
|
138009
138239
|
...initialProps
|
|
@@ -138012,18 +138242,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138012
138242
|
android: "5.220.0",
|
|
138013
138243
|
ios: "5.221.0"
|
|
138014
138244
|
})) {
|
|
138015
|
-
return (0,
|
|
138016
|
-
children: [(0,
|
|
138245
|
+
return (0, import_jsx_runtime19.jsxs)(import_jsx_runtime19.Fragment, {
|
|
138246
|
+
children: [(0, import_jsx_runtime19.jsx)(AppEvent.System, {
|
|
138017
138247
|
...initialProps
|
|
138018
|
-
}), (0,
|
|
138248
|
+
}), (0, import_jsx_runtime19.jsx)(AppUpdate, {})]
|
|
138019
138249
|
});
|
|
138020
138250
|
}
|
|
138021
|
-
return (0,
|
|
138022
|
-
children: [(0,
|
|
138251
|
+
return (0, import_jsx_runtime19.jsxs)(import_jsx_runtime19.Fragment, {
|
|
138252
|
+
children: [(0, import_jsx_runtime19.jsx)(AppEvent.System, {
|
|
138023
138253
|
...initialProps
|
|
138024
|
-
}), (0,
|
|
138254
|
+
}), (0, import_jsx_runtime19.jsx)(Container, {
|
|
138025
138255
|
...initialProps,
|
|
138026
|
-
children: (0,
|
|
138256
|
+
children: (0, import_jsx_runtime19.jsx)(import_tds_react_native11.TDSProvider, {
|
|
138027
138257
|
colorPreference: "light",
|
|
138028
138258
|
token: {
|
|
138029
138259
|
color: {
|
|
@@ -138040,13 +138270,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138040
138270
|
analytics
|
|
138041
138271
|
}) {
|
|
138042
138272
|
var appName = getAppName();
|
|
138043
|
-
var isRegistered =
|
|
138273
|
+
var isRegistered = import_react_native28.AppRegistry.getAppKeys().includes(appName);
|
|
138044
138274
|
if (!isRegistered) {
|
|
138045
138275
|
import_analytics.Analytics.init({
|
|
138046
138276
|
logger: params => void (0, import_native_modules10.eventLog)(params),
|
|
138047
138277
|
debug: analytics?.debug ?? __DEV__
|
|
138048
138278
|
});
|
|
138049
|
-
var App =
|
|
138279
|
+
var App = import_react_native27.Granite.registerApp(AppsInTossContainer.bind(null, container), {
|
|
138050
138280
|
appName,
|
|
138051
138281
|
context,
|
|
138052
138282
|
initialScheme: (0, import_native_modules10.getSchemeUri)(),
|
|
@@ -138054,7 +138284,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138054
138284
|
router: {
|
|
138055
138285
|
screenContainer: AppsInTossScreenContainer,
|
|
138056
138286
|
defaultScreenOption: {
|
|
138057
|
-
statusBarStyle: "dark"
|
|
138287
|
+
statusBarStyle: "dark",
|
|
138288
|
+
header: () => null
|
|
138058
138289
|
}
|
|
138059
138290
|
}
|
|
138060
138291
|
});
|
|
@@ -138066,21 +138297,21 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138066
138297
|
children
|
|
138067
138298
|
}) {
|
|
138068
138299
|
var isRNApp = getAppsInTossGlobals().webViewType == null;
|
|
138069
|
-
return (0,
|
|
138070
|
-
children: isRNApp ? (0,
|
|
138300
|
+
return (0, import_jsx_runtime19.jsx)(NavigationBarContextProvider, {
|
|
138301
|
+
children: isRNApp ? (0, import_jsx_runtime19.jsx)(import_analytics.Analytics.Screen, {
|
|
138071
138302
|
onLog: params => sendLog({
|
|
138072
138303
|
log_type: params.log_type,
|
|
138073
138304
|
log_name: "appsintoss_app_visit__appssintoss_systemlog",
|
|
138074
138305
|
params: {
|
|
138075
138306
|
...params.params,
|
|
138076
138307
|
schema_id: 5175906,
|
|
138077
|
-
app_name:
|
|
138308
|
+
app_name: import_react_native27.Granite.appName,
|
|
138078
138309
|
log_name: params.log_name
|
|
138079
138310
|
}
|
|
138080
138311
|
}, {
|
|
138081
138312
|
pipelines: ["core"]
|
|
138082
138313
|
}),
|
|
138083
|
-
children: (0,
|
|
138314
|
+
children: (0, import_jsx_runtime19.jsx)(RNAppContainer, {
|
|
138084
138315
|
children
|
|
138085
138316
|
})
|
|
138086
138317
|
}) : children
|
|
@@ -138098,75 +138329,51 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138098
138329
|
registerApp
|
|
138099
138330
|
};
|
|
138100
138331
|
var import_native_modules18 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
|
|
138101
|
-
var appsInTossAsyncBridges = __toESM(_$$_REQUIRE(_dependencyMap[
|
|
138102
|
-
var appsInTossConstantBridges = __toESM(_$$_REQUIRE(_dependencyMap[
|
|
138103
|
-
var appsInTossEventBridges = __toESM(_$$_REQUIRE(_dependencyMap[
|
|
138104
|
-
var import_user_scripts = _$$_REQUIRE(_dependencyMap[
|
|
138105
|
-
var
|
|
138106
|
-
var
|
|
138107
|
-
var
|
|
138108
|
-
var
|
|
138109
|
-
var
|
|
138110
|
-
var import_react_native37 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
138332
|
+
var appsInTossAsyncBridges = __toESM(_$$_REQUIRE(_dependencyMap[15], "@apps-in-toss/native-modules/async-bridges"), 1);
|
|
138333
|
+
var appsInTossConstantBridges = __toESM(_$$_REQUIRE(_dependencyMap[16], "@apps-in-toss/native-modules/constant-bridges"), 1);
|
|
138334
|
+
var appsInTossEventBridges = __toESM(_$$_REQUIRE(_dependencyMap[17], "@apps-in-toss/native-modules/event-bridges"), 1);
|
|
138335
|
+
var import_user_scripts = _$$_REQUIRE(_dependencyMap[18], "@apps-in-toss/user-scripts");
|
|
138336
|
+
var import_react_native_safe_area_context3 = _$$_REQUIRE(_dependencyMap[13], "@granite-js/native/react-native-safe-area-context");
|
|
138337
|
+
var import_react_native41 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
138338
|
+
var import_tds_react_native14 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
|
|
138339
|
+
var import_react27 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
138340
|
+
var import_react_native42 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
138111
138341
|
var import_native_modules11 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
|
|
138112
|
-
var import_react_native_webview = _$$_REQUIRE(_dependencyMap[
|
|
138342
|
+
var import_react_native_webview = _$$_REQUIRE(_dependencyMap[19], "@granite-js/native/react-native-webview");
|
|
138343
|
+
var import_react18 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
138344
|
+
var import_react_native30 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
138345
|
+
var import_react_native29 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
138346
|
+
var import_tds_react_native12 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
|
|
138113
138347
|
var import_react17 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
138114
|
-
var
|
|
138115
|
-
var import_react_native_safe_area_context2 = _$$_REQUIRE(_dependencyMap[13], "@granite-js/native/react-native-safe-area-context");
|
|
138116
|
-
var import_react_native23 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
138117
|
-
var import_tds_react_native10 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
|
|
138118
|
-
var import_private7 = _$$_REQUIRE(_dependencyMap[12], "@toss/tds-react-native/private");
|
|
138119
|
-
var import_react16 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
138120
|
-
var import_react_native24 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
138121
|
-
var import_jsx_runtime15 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
138348
|
+
var import_jsx_runtime20 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
138122
138349
|
function GameWebviewNavigationBar() {
|
|
138123
|
-
var
|
|
138124
|
-
|
|
138125
|
-
openConfirm = _ref26.openConfirm;
|
|
138350
|
+
var _ref25 = (0, import_tds_react_native12.useDialog)(),
|
|
138351
|
+
openConfirm = _ref25.openConfirm;
|
|
138126
138352
|
var logging = useNavigationBarLogging();
|
|
138127
138353
|
var _useMoreButtonBottomS3 = useMoreButtonBottomSheet(),
|
|
138128
138354
|
openMoreButtonBottomSheet = _useMoreButtonBottomS3.open;
|
|
138129
138355
|
var _useNavigationBarCont3 = useNavigationBarContext(),
|
|
138130
138356
|
navigationRightButton = _useNavigationBarCont3.navigationRightButton;
|
|
138131
|
-
var
|
|
138132
|
-
|
|
138133
|
-
var
|
|
138357
|
+
var _getAppsInTossGlobals3 = getAppsInTossGlobals(),
|
|
138358
|
+
navigationBar = _getAppsInTossGlobals3.navigationBar;
|
|
138359
|
+
var parsedNavigationBar = navigationBar ? safeParseNavigationBar(navigationBar) : null;
|
|
138360
|
+
var handleGameWebviewClose = (0, import_react17.useCallback)(_asyncToGenerator(function* () {
|
|
138134
138361
|
logging.closeButtonClick();
|
|
138135
|
-
(0,
|
|
138362
|
+
(0, import_react_native29.closeView)();
|
|
138136
138363
|
}), [logging, openConfirm]);
|
|
138137
|
-
return (0,
|
|
138138
|
-
|
|
138139
|
-
|
|
138140
|
-
|
|
138141
|
-
|
|
138142
|
-
|
|
138143
|
-
|
|
138144
|
-
width: "100%",
|
|
138145
|
-
height: import_react_native24.Platform.OS === "ios" ? 44 : 54,
|
|
138146
|
-
flexDirection: "row",
|
|
138147
|
-
alignItems: "center",
|
|
138148
|
-
justifyContent: "flex-end",
|
|
138149
|
-
position: "absolute",
|
|
138150
|
-
zIndex: Z_INDEX.CLOSE_BUTTON,
|
|
138151
|
-
marginTop: safeAreaTop,
|
|
138152
|
-
paddingRight: safeAreaRight + 10
|
|
138153
|
-
},
|
|
138154
|
-
pointerEvents: "box-none",
|
|
138155
|
-
children: (0, import_jsx_runtime15.jsx)(import_private7.NavigationRightContent, {
|
|
138156
|
-
fixedRightButton: navigationRightButton,
|
|
138157
|
-
onPressDots: openMoreButtonBottomSheet,
|
|
138158
|
-
onPressClose: () => {
|
|
138159
|
-
handleGameWebviewClose();
|
|
138160
|
-
},
|
|
138161
|
-
theme: "dark"
|
|
138162
|
-
})
|
|
138163
|
-
})]
|
|
138364
|
+
return (0, import_jsx_runtime20.jsx)(TopNavigation, {
|
|
138365
|
+
right: (0, import_jsx_runtime20.jsx)(Menu2, {
|
|
138366
|
+
theme: parsedNavigationBar?.theme ?? "dark",
|
|
138367
|
+
accessoryButton: navigationRightButton,
|
|
138368
|
+
onPressDots: openMoreButtonBottomSheet,
|
|
138369
|
+
onPressClose: handleGameWebviewClose
|
|
138370
|
+
})
|
|
138164
138371
|
});
|
|
138165
138372
|
}
|
|
138166
|
-
var
|
|
138167
|
-
var GameWebView = (0,
|
|
138168
|
-
(0,
|
|
138169
|
-
if (
|
|
138373
|
+
var import_jsx_runtime21 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
138374
|
+
var GameWebView = (0, import_react18.forwardRef)(function GameWebView2(props, ref) {
|
|
138375
|
+
(0, import_react18.useEffect)(() => {
|
|
138376
|
+
if (import_react_native30.Platform.OS === "ios") {
|
|
138170
138377
|
(0, import_native_modules11.setIosSwipeGestureEnabled)({
|
|
138171
138378
|
isEnabled: false
|
|
138172
138379
|
});
|
|
@@ -138178,24 +138385,23 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138178
138385
|
}
|
|
138179
138386
|
return;
|
|
138180
138387
|
}, []);
|
|
138181
|
-
return (0,
|
|
138182
|
-
children: [(0,
|
|
138183
|
-
children: (0,
|
|
138388
|
+
return (0, import_jsx_runtime21.jsxs)(import_jsx_runtime21.Fragment, {
|
|
138389
|
+
children: [(0, import_jsx_runtime21.jsx)(GameWebviewNavigationBar, {}), (0, import_native_modules11.getOperationalEnvironment)() === "toss" ? (0, import_jsx_runtime21.jsx)(GameInitializer, {
|
|
138390
|
+
children: (0, import_jsx_runtime21.jsx)(import_react_native_webview.WebView, {
|
|
138184
138391
|
ref,
|
|
138185
138392
|
...props
|
|
138186
138393
|
})
|
|
138187
|
-
}) : (0,
|
|
138394
|
+
}) : (0, import_jsx_runtime21.jsx)(import_react_native_webview.WebView, {
|
|
138188
138395
|
ref,
|
|
138189
138396
|
...props
|
|
138190
138397
|
})]
|
|
138191
138398
|
});
|
|
138192
138399
|
});
|
|
138193
|
-
var import_react_native_webview2 = _$$_REQUIRE(_dependencyMap[
|
|
138400
|
+
var import_react_native_webview2 = _$$_REQUIRE(_dependencyMap[19], "@granite-js/native/react-native-webview");
|
|
138401
|
+
var import_react20 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
138402
|
+
var import_react_native31 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
138194
138403
|
var import_react19 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
138195
|
-
var
|
|
138196
|
-
var import_private8 = _$$_REQUIRE(_dependencyMap[12], "@toss/tds-react-native/private");
|
|
138197
|
-
var import_react18 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
138198
|
-
var import_jsx_runtime17 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
138404
|
+
var import_jsx_runtime22 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
138199
138405
|
function PartnerWebviewNavigationBar({
|
|
138200
138406
|
onBackButtonClick,
|
|
138201
138407
|
onHomeButtonClick
|
|
@@ -138207,45 +138413,53 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138207
138413
|
var parsedNavigationBar = globals.navigationBar != null ? safeParseNavigationBar(globals.navigationBar) : null;
|
|
138208
138414
|
var withHomeButton = parsedNavigationBar?.withHomeButton ?? false;
|
|
138209
138415
|
var withBackButton = parsedNavigationBar?.withBackButton ?? true;
|
|
138416
|
+
var theme = parsedNavigationBar?.theme ?? "light";
|
|
138210
138417
|
var _useNavigationBarCont4 = useNavigationBarContext(),
|
|
138211
138418
|
navigationRightButton = _useNavigationBarCont4.navigationRightButton;
|
|
138212
|
-
var handleClose = (0,
|
|
138419
|
+
var handleClose = (0, import_react19.useCallback)(_asyncToGenerator(function* () {
|
|
138213
138420
|
logging.closeButtonClick();
|
|
138214
|
-
(0,
|
|
138421
|
+
(0, import_react_native31.closeView)();
|
|
138215
138422
|
}), [logging]);
|
|
138216
|
-
return (0,
|
|
138423
|
+
return (0, import_jsx_runtime22.jsx)(NavigationBarImpressionArea, {
|
|
138217
138424
|
withHomeButton,
|
|
138218
|
-
children: (0,
|
|
138219
|
-
|
|
138220
|
-
|
|
138221
|
-
|
|
138222
|
-
|
|
138223
|
-
|
|
138224
|
-
|
|
138225
|
-
|
|
138226
|
-
|
|
138227
|
-
|
|
138228
|
-
|
|
138229
|
-
|
|
138230
|
-
children: (0, import_jsx_runtime17.jsx)(import_private8.NavigationBackButton, {
|
|
138231
|
-
onPress: onBackButtonClick,
|
|
138232
|
-
canGoBack: false
|
|
138425
|
+
children: (0, import_jsx_runtime22.jsx)(TopNavigation, {
|
|
138426
|
+
left: withBackButton ? (0, import_jsx_runtime22.jsx)(BackButton, {
|
|
138427
|
+
theme,
|
|
138428
|
+
onPress: onBackButtonClick
|
|
138429
|
+
}) : null,
|
|
138430
|
+
center: withHomeButton ? (0, import_jsx_runtime22.jsx)(HomeButton, {
|
|
138431
|
+
theme,
|
|
138432
|
+
onPress: onHomeButtonClick,
|
|
138433
|
+
children: (0, import_jsx_runtime22.jsx)(AppTitle, {
|
|
138434
|
+
theme,
|
|
138435
|
+
title: globals.brandDisplayName,
|
|
138436
|
+
iconUrl: globals.brandIcon
|
|
138233
138437
|
})
|
|
138438
|
+
}) : (0, import_jsx_runtime22.jsx)(AppTitle, {
|
|
138439
|
+
theme,
|
|
138440
|
+
title: globals.brandDisplayName,
|
|
138441
|
+
iconUrl: globals.brandIcon
|
|
138442
|
+
}),
|
|
138443
|
+
right: (0, import_jsx_runtime22.jsx)(Menu2, {
|
|
138444
|
+
theme,
|
|
138445
|
+
accessoryButton: navigationRightButton,
|
|
138446
|
+
onPressDots: openMoreButtonBottomSheet,
|
|
138447
|
+
onPressClose: handleClose
|
|
138234
138448
|
})
|
|
138235
138449
|
})
|
|
138236
138450
|
});
|
|
138237
138451
|
}
|
|
138238
|
-
var
|
|
138239
|
-
var PartnerWebView = (0,
|
|
138452
|
+
var import_jsx_runtime23 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
138453
|
+
var PartnerWebView = (0, import_react20.forwardRef)(function PartnerWebViewScreen({
|
|
138240
138454
|
onBackButtonClick,
|
|
138241
138455
|
onHomeButtonClick,
|
|
138242
138456
|
...webViewProps
|
|
138243
138457
|
}, ref) {
|
|
138244
|
-
return (0,
|
|
138245
|
-
children: [(0,
|
|
138458
|
+
return (0, import_jsx_runtime23.jsxs)(import_jsx_runtime23.Fragment, {
|
|
138459
|
+
children: [(0, import_jsx_runtime23.jsx)(PartnerWebviewNavigationBar, {
|
|
138246
138460
|
onBackButtonClick,
|
|
138247
138461
|
onHomeButtonClick
|
|
138248
|
-
}), (0,
|
|
138462
|
+
}), (0, import_jsx_runtime23.jsx)(import_react_native_webview2.WebView, {
|
|
138249
138463
|
ref,
|
|
138250
138464
|
...webViewProps,
|
|
138251
138465
|
style: {
|
|
@@ -138333,19 +138547,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138333
138547
|
var random = Math.random().toString(36).substring(2, 7).toUpperCase();
|
|
138334
138548
|
return `ait-${timestamp}${random}`;
|
|
138335
138549
|
}
|
|
138336
|
-
var
|
|
138550
|
+
var import_react_native32 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
138337
138551
|
function getReferrer() {
|
|
138338
138552
|
try {
|
|
138339
|
-
return new URL((0,
|
|
138553
|
+
return new URL((0, import_react_native32.getSchemeUri)()).searchParams.get("referrer");
|
|
138340
138554
|
} catch {
|
|
138341
138555
|
return null;
|
|
138342
138556
|
}
|
|
138343
138557
|
}
|
|
138344
138558
|
var import_native_modules13 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
|
|
138345
|
-
var
|
|
138559
|
+
var import_react_native33 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
138346
138560
|
function getIsDev() {
|
|
138347
138561
|
try {
|
|
138348
|
-
return new URL((0,
|
|
138562
|
+
return new URL((0, import_react_native33.getSchemeUri)()).searchParams.get("isDev") === "true";
|
|
138349
138563
|
} catch {
|
|
138350
138564
|
return false;
|
|
138351
138565
|
}
|
|
@@ -138647,14 +138861,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138647
138861
|
return unregisterCallbacks;
|
|
138648
138862
|
}
|
|
138649
138863
|
showFullScreenAd.isSupported = import_native_modules14.GoogleAdMob.showAppsInTossAdMob.isSupported;
|
|
138650
|
-
var
|
|
138864
|
+
var import_react_native34 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
138651
138865
|
function tossAdEventLog(_x3) {
|
|
138652
138866
|
return _tossAdEventLog.apply(this, arguments);
|
|
138653
138867
|
}
|
|
138654
138868
|
function _tossAdEventLog() {
|
|
138655
138869
|
_tossAdEventLog = _asyncToGenerator(function* (params) {
|
|
138656
138870
|
var referrer = getReferrer();
|
|
138657
|
-
var appName =
|
|
138871
|
+
var appName = import_react_native34.Granite.appName;
|
|
138658
138872
|
var eventLogParams = {
|
|
138659
138873
|
...params,
|
|
138660
138874
|
params: {
|
|
@@ -138669,7 +138883,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138669
138883
|
});
|
|
138670
138884
|
return _tossAdEventLog.apply(this, arguments);
|
|
138671
138885
|
}
|
|
138672
|
-
var
|
|
138886
|
+
var import_react21 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
138673
138887
|
function serializeError(error) {
|
|
138674
138888
|
return JSON.stringify(error, (_, value) => {
|
|
138675
138889
|
if (value instanceof Error) {
|
|
@@ -138700,12 +138914,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138700
138914
|
return;
|
|
138701
138915
|
}
|
|
138702
138916
|
var wrappedFunc = function () {
|
|
138703
|
-
var
|
|
138917
|
+
var _ref28 = _asyncToGenerator(function* (...args2) {
|
|
138704
138918
|
var result = yield func(...args2);
|
|
138705
138919
|
return result;
|
|
138706
138920
|
});
|
|
138707
138921
|
return function wrappedFunc() {
|
|
138708
|
-
return
|
|
138922
|
+
return _ref28.apply(this, arguments);
|
|
138709
138923
|
};
|
|
138710
138924
|
}();
|
|
138711
138925
|
wrappedFunc(...args).then(result => {
|
|
@@ -138726,12 +138940,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138726
138940
|
asyncHandlerMap,
|
|
138727
138941
|
eventListenerMap
|
|
138728
138942
|
}) {
|
|
138729
|
-
var ref = (0,
|
|
138730
|
-
var injectedJavaScript = (0,
|
|
138943
|
+
var ref = (0, import_react21.useRef)(null);
|
|
138944
|
+
var injectedJavaScript = (0, import_react21.useMemo)(() => `window.__CONSTANT_HANDLER_MAP = ${JSON.stringify(Object.entries(constantHandlerMap).reduce((acc, [key, value]) => {
|
|
138731
138945
|
acc[key] = typeof value === "function" ? value() : value;
|
|
138732
138946
|
return acc;
|
|
138733
138947
|
}, {}))};`, [constantHandlerMap]);
|
|
138734
|
-
(0,
|
|
138948
|
+
(0, import_react21.useEffect)(() => {
|
|
138735
138949
|
ref.current?.injectJavaScript(injectedJavaScript);
|
|
138736
138950
|
}, [injectedJavaScript]);
|
|
138737
138951
|
var createHandleOnEvent = (functionName, eventId) => response => {
|
|
@@ -138745,8 +138959,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138745
138959
|
window.__GRANITE_NATIVE_EMITTER.emit('${functionName}/onError/${eventId}', ${serializedError});
|
|
138746
138960
|
`);
|
|
138747
138961
|
};
|
|
138748
|
-
var $onMessage = (0,
|
|
138749
|
-
var
|
|
138962
|
+
var $onMessage = (0, import_react21.useCallback)(function () {
|
|
138963
|
+
var _ref29 = _asyncToGenerator(function* (e) {
|
|
138750
138964
|
onMessage?.(e);
|
|
138751
138965
|
var data = parseNativeEventData(e.nativeEvent.data);
|
|
138752
138966
|
if (typeof data !== "object" || data === null || typeof data.functionName !== "string" || typeof data.eventId !== "string" || typeof data.type !== "string" || !["addEventListener", "removeEventListener", "method"].includes(data.type)) {
|
|
@@ -138789,7 +139003,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138789
139003
|
}
|
|
138790
139004
|
});
|
|
138791
139005
|
return function (_x4) {
|
|
138792
|
-
return
|
|
139006
|
+
return _ref29.apply(this, arguments);
|
|
138793
139007
|
};
|
|
138794
139008
|
}(), [onMessage]);
|
|
138795
139009
|
return {
|
|
@@ -138806,21 +139020,21 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138806
139020
|
return null;
|
|
138807
139021
|
}
|
|
138808
139022
|
}
|
|
138809
|
-
var
|
|
138810
|
-
var
|
|
139023
|
+
var import_react_native_safe_area_context2 = _$$_REQUIRE(_dependencyMap[13], "@granite-js/native/react-native-safe-area-context");
|
|
139024
|
+
var import_react22 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
138811
139025
|
function useSafeAreaInsetsEvent() {
|
|
138812
|
-
var insets = (0,
|
|
138813
|
-
(0,
|
|
139026
|
+
var insets = (0, import_react_native_safe_area_context2.useSafeAreaInsets)();
|
|
139027
|
+
(0, import_react22.useEffect)(() => {
|
|
138814
139028
|
safeAreaInsetsChange.emit(insets);
|
|
138815
139029
|
}, [insets]);
|
|
138816
|
-
(0,
|
|
139030
|
+
(0, import_react22.useEffect)(() => {
|
|
138817
139031
|
return () => safeAreaInsetsChange.clearSubscriptions();
|
|
138818
139032
|
}, []);
|
|
138819
139033
|
return safeAreaInsetsChange;
|
|
138820
139034
|
}
|
|
138821
|
-
var
|
|
139035
|
+
var import_react_native35 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
139036
|
+
var import_react24 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
138822
139037
|
var import_react23 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
138823
|
-
var import_react22 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
138824
139038
|
var INITIAL_STATE = {
|
|
138825
139039
|
stack: [],
|
|
138826
139040
|
index: -1
|
|
@@ -138869,11 +139083,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138869
139083
|
}
|
|
138870
139084
|
}
|
|
138871
139085
|
function useWebViewHistory() {
|
|
138872
|
-
var
|
|
138873
|
-
|
|
138874
|
-
state =
|
|
138875
|
-
dispatch =
|
|
138876
|
-
var onNavigationStateChange = (0,
|
|
139086
|
+
var _ref30 = (0, import_react23.useReducer)(reducer, INITIAL_STATE),
|
|
139087
|
+
_ref31 = _slicedToArray(_ref30, 2),
|
|
139088
|
+
state = _ref31[0],
|
|
139089
|
+
dispatch = _ref31[1];
|
|
139090
|
+
var onNavigationStateChange = (0, import_react23.useCallback)(({
|
|
138877
139091
|
url,
|
|
138878
139092
|
canGoForward: canGoForward2
|
|
138879
139093
|
}) => {
|
|
@@ -138883,7 +139097,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138883
139097
|
canGoForward: canGoForward2
|
|
138884
139098
|
});
|
|
138885
139099
|
}, []);
|
|
138886
|
-
var
|
|
139100
|
+
var _ref32 = (0, import_react23.useMemo)(() => {
|
|
138887
139101
|
var canBack = state.index > 0;
|
|
138888
139102
|
var canFwd = state.index >= 0 && state.index < state.stack.length - 1;
|
|
138889
139103
|
return {
|
|
@@ -138891,8 +139105,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138891
139105
|
canGoForward: canFwd
|
|
138892
139106
|
};
|
|
138893
139107
|
}, [state.index, state.stack.length]),
|
|
138894
|
-
canGoBack =
|
|
138895
|
-
canGoForward =
|
|
139108
|
+
canGoBack = _ref32.canGoBack,
|
|
139109
|
+
canGoForward = _ref32.canGoForward;
|
|
138896
139110
|
return {
|
|
138897
139111
|
onNavigationStateChange,
|
|
138898
139112
|
hasHistory: canGoBack,
|
|
@@ -138903,19 +139117,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138903
139117
|
var _useWebViewHistory = useWebViewHistory(),
|
|
138904
139118
|
hasHistory = _useWebViewHistory.hasHistory,
|
|
138905
139119
|
onNavigationStateChange = _useWebViewHistory.onNavigationStateChange;
|
|
138906
|
-
var
|
|
138907
|
-
webBackHandlersRef =
|
|
138908
|
-
hasWebBackEvent =
|
|
138909
|
-
addWebBackEventListener =
|
|
138910
|
-
removeWebBackEventListener =
|
|
139120
|
+
var _ref33 = (0, import_react_native35.useBackEventState)(),
|
|
139121
|
+
webBackHandlersRef = _ref33.handlersRef,
|
|
139122
|
+
hasWebBackEvent = _ref33.hasBackEvent,
|
|
139123
|
+
addWebBackEventListener = _ref33.addEventListener,
|
|
139124
|
+
removeWebBackEventListener = _ref33.removeEventListener;
|
|
138911
139125
|
var logging = useNavigationBarLogging();
|
|
138912
|
-
var addEventListener = (0,
|
|
139126
|
+
var addEventListener = (0, import_react24.useCallback)(handler => {
|
|
138913
139127
|
addWebBackEventListener(handler);
|
|
138914
139128
|
}, [addWebBackEventListener]);
|
|
138915
|
-
var removeEventListener = (0,
|
|
139129
|
+
var removeEventListener = (0, import_react24.useCallback)(handler => {
|
|
138916
139130
|
removeWebBackEventListener(handler);
|
|
138917
139131
|
}, [removeWebBackEventListener]);
|
|
138918
|
-
var handleWebBack = (0,
|
|
139132
|
+
var handleWebBack = (0, import_react24.useCallback)(_asyncToGenerator(function* () {
|
|
138919
139133
|
if (hasWebBackEvent) {
|
|
138920
139134
|
for (var handler of webBackHandlersRef) {
|
|
138921
139135
|
handler();
|
|
@@ -138925,10 +139139,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138925
139139
|
if (hasHistory) {
|
|
138926
139140
|
webViewRef.current?.injectJavaScript("window.history.back();");
|
|
138927
139141
|
} else {
|
|
138928
|
-
(0,
|
|
139142
|
+
(0, import_react_native35.closeView)();
|
|
138929
139143
|
}
|
|
138930
139144
|
}), [hasHistory, hasWebBackEvent, webBackHandlersRef, logging, webViewRef]);
|
|
138931
|
-
var handleWebHome = (0,
|
|
139145
|
+
var handleWebHome = (0, import_react24.useCallback)(() => {
|
|
138932
139146
|
logging.homeButtonClick();
|
|
138933
139147
|
if (homeEvent.hasSubscriptions()) {
|
|
138934
139148
|
homeEvent.emit({});
|
|
@@ -138941,7 +139155,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138941
139155
|
})();
|
|
138942
139156
|
`);
|
|
138943
139157
|
}, [hasWebBackEvent, webBackHandlersRef, logging, webViewInitialURL, webViewRef]);
|
|
138944
|
-
return (0,
|
|
139158
|
+
return (0, import_react24.useMemo)(() => ({
|
|
138945
139159
|
addEventListener,
|
|
138946
139160
|
removeEventListener,
|
|
138947
139161
|
handleWebBack,
|
|
@@ -138961,7 +139175,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138961
139175
|
};
|
|
138962
139176
|
}
|
|
138963
139177
|
var import_native_modules15 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
|
|
138964
|
-
var
|
|
139178
|
+
var import_react_native36 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
138965
139179
|
var FontA11yCategory = {
|
|
138966
139180
|
Large: "Large",
|
|
138967
139181
|
xLarge: "xLarge",
|
|
@@ -139096,27 +139310,27 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139096
139310
|
}) {
|
|
139097
139311
|
var platform = (0, import_native_modules15.getPlatformOS)();
|
|
139098
139312
|
var appVersion = (0, import_native_modules15.getTossAppVersion)();
|
|
139099
|
-
var
|
|
139100
|
-
fontScale =
|
|
139313
|
+
var _ref35 = (0, import_react_native36.useWindowDimensions)(),
|
|
139314
|
+
fontScale = _ref35.fontScale;
|
|
139101
139315
|
var platformString = platform === "ios" ? "iPhone" : "Android phone";
|
|
139102
139316
|
var fontA11y = mapFontScaleToCategory(fontScale, platform);
|
|
139103
139317
|
var normalizedFontScale = convertToAndroidStyleScale(fontScale, platform);
|
|
139104
139318
|
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(" ");
|
|
139105
139319
|
}
|
|
139106
139320
|
var import_native_modules16 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
|
|
139107
|
-
var
|
|
139108
|
-
var
|
|
139321
|
+
var import_react_native37 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
139322
|
+
var import_react25 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
139109
139323
|
function useGeolocation({
|
|
139110
139324
|
accuracy,
|
|
139111
139325
|
distanceInterval,
|
|
139112
139326
|
timeInterval
|
|
139113
139327
|
}) {
|
|
139114
|
-
var isVisible = (0,
|
|
139115
|
-
var
|
|
139116
|
-
|
|
139117
|
-
location =
|
|
139118
|
-
setLocation =
|
|
139119
|
-
(0,
|
|
139328
|
+
var isVisible = (0, import_react_native37.useVisibility)();
|
|
139329
|
+
var _ref36 = (0, import_react25.useState)(null),
|
|
139330
|
+
_ref37 = _slicedToArray(_ref36, 2),
|
|
139331
|
+
location = _ref37[0],
|
|
139332
|
+
setLocation = _ref37[1];
|
|
139333
|
+
(0, import_react25.useEffect)(() => {
|
|
139120
139334
|
if (!isVisible) {
|
|
139121
139335
|
return;
|
|
139122
139336
|
}
|
|
@@ -139132,18 +139346,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139132
139346
|
}, [accuracy, distanceInterval, timeInterval, isVisible]);
|
|
139133
139347
|
return location;
|
|
139134
139348
|
}
|
|
139135
|
-
var
|
|
139136
|
-
var
|
|
139349
|
+
var import_react_native38 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
139350
|
+
var import_react26 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
139137
139351
|
function useWaitForReturnNavigator() {
|
|
139138
|
-
var callbacks = (0,
|
|
139139
|
-
var navigation = (0,
|
|
139140
|
-
var startNavigating = (0,
|
|
139352
|
+
var callbacks = (0, import_react26.useRef)([]).current;
|
|
139353
|
+
var navigation = (0, import_react_native38.useNavigation)();
|
|
139354
|
+
var startNavigating = (0, import_react26.useCallback)((route, params) => {
|
|
139141
139355
|
return new Promise(resolve => {
|
|
139142
139356
|
callbacks.push(resolve);
|
|
139143
139357
|
navigation.navigate(route, params);
|
|
139144
139358
|
});
|
|
139145
139359
|
}, [callbacks, navigation]);
|
|
139146
|
-
var handleVisibilityChange = (0,
|
|
139360
|
+
var handleVisibilityChange = (0, import_react26.useCallback)(state => {
|
|
139147
139361
|
if (state === "visible" && callbacks.length > 0) {
|
|
139148
139362
|
for (var callback of callbacks) {
|
|
139149
139363
|
callback();
|
|
@@ -139151,7 +139365,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139151
139365
|
callbacks.splice(0, callbacks.length);
|
|
139152
139366
|
}
|
|
139153
139367
|
}, [callbacks]);
|
|
139154
|
-
(0,
|
|
139368
|
+
(0, import_react_native38.useVisibilityChange)(handleVisibilityChange);
|
|
139155
139369
|
return startNavigating;
|
|
139156
139370
|
}
|
|
139157
139371
|
function useTopNavigation() {
|
|
@@ -139164,10 +139378,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139164
139378
|
};
|
|
139165
139379
|
}
|
|
139166
139380
|
var import_native_modules17 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
|
|
139167
|
-
var
|
|
139168
|
-
var
|
|
139381
|
+
var import_react_native39 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
139382
|
+
var import_tds_react_native13 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
|
|
139169
139383
|
function useHandleWebViewProcessDidTerminate(webViewRef) {
|
|
139170
|
-
var toast = (0,
|
|
139384
|
+
var toast = (0, import_tds_react_native13.useToast)();
|
|
139171
139385
|
return () => {
|
|
139172
139386
|
webViewDebugLog("AppsInTossWebViewProcessDidTerminate", {});
|
|
139173
139387
|
toast.open("\uBB38\uC81C\uAC00 \uC0DD\uACA8\uC11C \uBBF8\uB2C8\uC571\uC744 \uB2E4\uC2DC \uC2DC\uC791\uD588\uC5B4\uC694.", {
|
|
@@ -139193,7 +139407,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139193
139407
|
log_type: "debug",
|
|
139194
139408
|
params: {
|
|
139195
139409
|
...params,
|
|
139196
|
-
app_name:
|
|
139410
|
+
app_name: import_react_native39.Granite.appName,
|
|
139197
139411
|
deployment_id: global2.deploymentId
|
|
139198
139412
|
}
|
|
139199
139413
|
};
|
|
@@ -139205,7 +139419,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139205
139419
|
console.log("[webViewDebugLog]", event);
|
|
139206
139420
|
}
|
|
139207
139421
|
}
|
|
139208
|
-
var
|
|
139422
|
+
var import_react_native40 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
139209
139423
|
var extractDateFromUUIDv7 = uuid => {
|
|
139210
139424
|
var timestampHex = uuid.split("-").join("").slice(0, 12);
|
|
139211
139425
|
var timestamp = Number.parseInt(timestampHex, 16);
|
|
@@ -139227,7 +139441,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139227
139441
|
};
|
|
139228
139442
|
var getReferrer2 = () => {
|
|
139229
139443
|
try {
|
|
139230
|
-
var referrer = new URL((0,
|
|
139444
|
+
var referrer = new URL((0, import_react_native40.getSchemeUri)());
|
|
139231
139445
|
return referrer.searchParams.get("referrer");
|
|
139232
139446
|
} catch {
|
|
139233
139447
|
return "";
|
|
@@ -139243,7 +139457,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139243
139457
|
search,
|
|
139244
139458
|
referrer: getReferrer2(),
|
|
139245
139459
|
document_title: title,
|
|
139246
|
-
app_name:
|
|
139460
|
+
app_name: import_react_native40.Granite.appName,
|
|
139247
139461
|
deployment_id: env.getDeploymentId(),
|
|
139248
139462
|
deployment_timestamp: extractDateFromUUIDv7(env.getDeploymentId()).getTime()
|
|
139249
139463
|
};
|
|
@@ -139266,28 +139480,28 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139266
139480
|
pipelines: ["core"]
|
|
139267
139481
|
});
|
|
139268
139482
|
};
|
|
139269
|
-
var
|
|
139483
|
+
var import_jsx_runtime24 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
139270
139484
|
var operationalEnvironment = appsInTossConstantBridges.getOperationalEnvironment();
|
|
139271
139485
|
var TYPES = ["partner", "external", "game"];
|
|
139272
139486
|
var WEBVIEW_TYPES = {
|
|
139273
139487
|
partner: PartnerWebView,
|
|
139274
|
-
external:
|
|
139488
|
+
external: import_tds_react_native14.ExternalWebViewScreen,
|
|
139275
139489
|
game: GameWebView
|
|
139276
139490
|
};
|
|
139277
139491
|
function mergeSchemeQueryParamsInto(url) {
|
|
139278
139492
|
var baseUrl = new URL(url);
|
|
139279
|
-
var schemeUrl = new URL((0,
|
|
139493
|
+
var schemeUrl = new URL((0, import_react_native41.getSchemeUri)());
|
|
139280
139494
|
var resultUrl = new URL(schemeUrl.pathname, baseUrl.origin);
|
|
139281
|
-
for (var
|
|
139282
|
-
var
|
|
139283
|
-
var key =
|
|
139284
|
-
var value =
|
|
139495
|
+
for (var _ref38 of baseUrl.searchParams.entries()) {
|
|
139496
|
+
var _ref39 = _slicedToArray(_ref38, 2);
|
|
139497
|
+
var key = _ref39[0];
|
|
139498
|
+
var value = _ref39[1];
|
|
139285
139499
|
resultUrl.searchParams.set(key, value);
|
|
139286
139500
|
}
|
|
139287
|
-
for (var
|
|
139288
|
-
var
|
|
139289
|
-
var _key =
|
|
139290
|
-
var _value =
|
|
139501
|
+
for (var _ref40 of schemeUrl.searchParams.entries()) {
|
|
139502
|
+
var _ref41 = _slicedToArray(_ref40, 2);
|
|
139503
|
+
var _key = _ref41[0];
|
|
139504
|
+
var _value = _ref41[1];
|
|
139291
139505
|
resultUrl.searchParams.set(_key, _value);
|
|
139292
139506
|
}
|
|
139293
139507
|
return resultUrl;
|
|
@@ -139297,8 +139511,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139297
139511
|
var devUrl = `http://${local.host}:${local.port}`;
|
|
139298
139512
|
return mergeSchemeQueryParamsInto(devUrl);
|
|
139299
139513
|
}
|
|
139300
|
-
var
|
|
139301
|
-
rawUrl =
|
|
139514
|
+
var _ref42 = (0, import_native_modules18.safeSyncPostMessage)("getWebBundleURL", {}),
|
|
139515
|
+
rawUrl = _ref42.url;
|
|
139302
139516
|
var url = mergeSchemeQueryParamsInto(rawUrl);
|
|
139303
139517
|
var deploymentId = env.getDeploymentId();
|
|
139304
139518
|
if (deploymentId) {
|
|
@@ -139315,19 +139529,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139315
139529
|
if (!TYPES.includes(type)) {
|
|
139316
139530
|
throw new Error(`Invalid WebView type: '${type}'`);
|
|
139317
139531
|
}
|
|
139318
|
-
var webViewRef = (0,
|
|
139319
|
-
var url = (0,
|
|
139532
|
+
var webViewRef = (0, import_react27.useRef)(null);
|
|
139533
|
+
var url = (0, import_react27.useMemo)(() => getWebViewURL(local), [local]);
|
|
139320
139534
|
var webBackHandler = useWebBackHandler(url, webViewRef);
|
|
139321
|
-
var top = (0, import_private9.useSafeAreaTop)();
|
|
139322
|
-
var bottom = (0, import_private9.useSafeAreaBottom)();
|
|
139323
|
-
var insets = (0, import_react_native_safe_area_context4.useSafeAreaInsets)();
|
|
139324
139535
|
var global2 = getAppsInTossGlobals();
|
|
139536
|
+
var insets = (0, import_react_native_safe_area_context3.useSafeAreaInsets)();
|
|
139325
139537
|
var navigationBarContext = useNavigationBarContext();
|
|
139326
139538
|
var safeAreaInsetsEvent = useSafeAreaInsetsEvent();
|
|
139327
|
-
var
|
|
139328
|
-
|
|
139329
|
-
allowsBackForwardNavigationGestures =
|
|
139330
|
-
setAllowsBackForwardNavigationGestures =
|
|
139539
|
+
var _ref43 = (0, import_react27.useState)(props.allowsBackForwardNavigationGestures),
|
|
139540
|
+
_ref44 = _slicedToArray(_ref43, 2),
|
|
139541
|
+
allowsBackForwardNavigationGestures = _ref44[0],
|
|
139542
|
+
setAllowsBackForwardNavigationGestures = _ref44[1];
|
|
139331
139543
|
var handler = useBridgeHandler({
|
|
139332
139544
|
onMessage,
|
|
139333
139545
|
eventListenerMap: {
|
|
@@ -139335,7 +139547,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139335
139547
|
navigationAccessoryEvent: ({
|
|
139336
139548
|
onEvent,
|
|
139337
139549
|
onError
|
|
139338
|
-
}) =>
|
|
139550
|
+
}) => import_tds_react_native14.tdsEvent.addEventListener("navigationAccessoryEvent", {
|
|
139339
139551
|
onEvent,
|
|
139340
139552
|
onError
|
|
139341
139553
|
}),
|
|
@@ -139383,12 +139595,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139383
139595
|
},
|
|
139384
139596
|
constantHandlerMap: {
|
|
139385
139597
|
...appsInTossConstantBridges,
|
|
139386
|
-
getSafeAreaInsets: () =>
|
|
139387
|
-
top,
|
|
139388
|
-
bottom,
|
|
139389
|
-
left: insets.left,
|
|
139390
|
-
right: insets.right
|
|
139391
|
-
}),
|
|
139598
|
+
getSafeAreaInsets: () => insets,
|
|
139392
139599
|
...Object.fromEntries(Object.entries(global2).map(([key, value]) => [key, () => value])),
|
|
139393
139600
|
getServerTime_isSupported: import_native_modules18.getServerTime.isSupported,
|
|
139394
139601
|
requestReview_isSupported: import_native_modules18.requestReview.isSupported,
|
|
@@ -139410,19 +139617,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139410
139617
|
return appsInTossAsyncBridges.setIosSwipeGestureEnabled(options);
|
|
139411
139618
|
},
|
|
139412
139619
|
addAccessoryButton: function () {
|
|
139413
|
-
var
|
|
139620
|
+
var _ref45 = _asyncToGenerator(function* (params) {
|
|
139414
139621
|
return navigationBarContext.addNavigationRightButton(params);
|
|
139415
139622
|
});
|
|
139416
139623
|
return function addAccessoryButton(_x6) {
|
|
139417
|
-
return
|
|
139624
|
+
return _ref45.apply(this, arguments);
|
|
139418
139625
|
};
|
|
139419
139626
|
}(),
|
|
139420
139627
|
removeAccessoryButton: function () {
|
|
139421
|
-
var
|
|
139628
|
+
var _ref46 = _asyncToGenerator(function* () {
|
|
139422
139629
|
return navigationBarContext.removeNavigationRightButton();
|
|
139423
139630
|
});
|
|
139424
139631
|
return function removeAccessoryButton() {
|
|
139425
|
-
return
|
|
139632
|
+
return _ref46.apply(this, arguments);
|
|
139426
139633
|
};
|
|
139427
139634
|
}(),
|
|
139428
139635
|
requestPermission: appsInTossAsyncBridges.requestPermission,
|
|
@@ -139449,16 +139656,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139449
139656
|
tossAdEventLog,
|
|
139450
139657
|
memoryDebugLog: webViewMemoryDebugLog,
|
|
139451
139658
|
debugLog: function () {
|
|
139452
|
-
var
|
|
139659
|
+
var _ref47 = _asyncToGenerator(function* (event) {
|
|
139453
139660
|
sendLog(event);
|
|
139454
139661
|
});
|
|
139455
139662
|
return function debugLog(_x7) {
|
|
139456
|
-
return
|
|
139663
|
+
return _ref47.apply(this, arguments);
|
|
139457
139664
|
};
|
|
139458
139665
|
}()
|
|
139459
139666
|
}
|
|
139460
139667
|
});
|
|
139461
|
-
var headerPropForExternalWebView = (0,
|
|
139668
|
+
var headerPropForExternalWebView = (0, import_react27.useMemo)(() => {
|
|
139462
139669
|
var parsedNavigationBar = global2.navigationBar != null ? safeParseNavigationBar(global2.navigationBar) : null;
|
|
139463
139670
|
var initialAccessoryButton = parsedNavigationBar?.initialAccessoryButton;
|
|
139464
139671
|
var withBackButton = parsedNavigationBar?.withBackButton ?? true;
|
|
@@ -139479,16 +139686,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139479
139686
|
colorPreference: "light"
|
|
139480
139687
|
});
|
|
139481
139688
|
var refs = mergeRefs(handler.ref, webViewRef);
|
|
139482
|
-
(0,
|
|
139689
|
+
(0, import_react27.useEffect)(() => {
|
|
139483
139690
|
var callback = () => {
|
|
139484
139691
|
webBackHandler.handleWebBack();
|
|
139485
139692
|
return true;
|
|
139486
139693
|
};
|
|
139487
|
-
var subscription =
|
|
139694
|
+
var subscription = import_react_native42.BackHandler.addEventListener("hardwareBackPress", callback);
|
|
139488
139695
|
return () => subscription.remove();
|
|
139489
139696
|
}, [webBackHandler]);
|
|
139490
139697
|
var handleWebViewProcessDidTerminate = useHandleWebViewProcessDidTerminate(webViewRef);
|
|
139491
|
-
return (0,
|
|
139698
|
+
return (0, import_jsx_runtime24.jsx)(BaseWebView, {
|
|
139492
139699
|
ref: refs,
|
|
139493
139700
|
...props,
|
|
139494
139701
|
...headerPropForExternalWebView,
|
|
@@ -139508,14 +139715,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139508
139715
|
webBackHandler.onNavigationStateChange(event);
|
|
139509
139716
|
},
|
|
139510
139717
|
textZoom: 100,
|
|
139511
|
-
userAgent:
|
|
139718
|
+
userAgent: import_react_native42.Platform.OS === "ios" ? userAgent : void 0,
|
|
139512
139719
|
sharedCookiesEnabled: true,
|
|
139513
139720
|
webviewDebuggingEnabled: webViewDebuggingEnabled,
|
|
139514
139721
|
thirdPartyCookiesEnabled: true,
|
|
139515
139722
|
onMessage: handler.onMessage,
|
|
139516
139723
|
injectedJavaScript: import_user_scripts.afterDocumentLoad,
|
|
139517
139724
|
injectedJavaScriptBeforeContentLoaded: [handler.injectedJavaScript, import_user_scripts.beforeDocumentLoad].join("\n"),
|
|
139518
|
-
decelerationRate:
|
|
139725
|
+
decelerationRate: import_react_native42.Platform.OS === "ios" ? 1 : void 0,
|
|
139519
139726
|
allowsBackForwardNavigationGestures,
|
|
139520
139727
|
onShouldStartLoadWithRequest: event => {
|
|
139521
139728
|
try {
|
|
@@ -139523,7 +139730,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139523
139730
|
if (["https:", "http:"].includes(url2.protocol) || url2.href === "about:blank") {
|
|
139524
139731
|
return true;
|
|
139525
139732
|
} else {
|
|
139526
|
-
|
|
139733
|
+
import_react_native42.Linking.openURL(convertIntentURL(url2) ?? url2.href);
|
|
139527
139734
|
return false;
|
|
139528
139735
|
}
|
|
139529
139736
|
} catch (error) {
|
|
@@ -139537,13 +139744,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139537
139744
|
});
|
|
139538
139745
|
}
|
|
139539
139746
|
__reExport(src_exports, _$$_REQUIRE(_dependencyMap[4], "@apps-in-toss/analytics"), module.exports);
|
|
139540
|
-
var
|
|
139747
|
+
var import_private5 = _$$_REQUIRE(_dependencyMap[12], "@toss/tds-react-native/private");
|
|
139541
139748
|
__reExport(src_exports, _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules"), module.exports);
|
|
139542
|
-
__reExport(src_exports, _$$_REQUIRE(_dependencyMap[
|
|
139543
|
-
var import_types = _$$_REQUIRE(_dependencyMap[
|
|
139544
|
-
var
|
|
139545
|
-
var
|
|
139546
|
-
var
|
|
139749
|
+
__reExport(src_exports, _$$_REQUIRE(_dependencyMap[20], "@apps-in-toss/types"), module.exports);
|
|
139750
|
+
var import_types = _$$_REQUIRE(_dependencyMap[20], "@apps-in-toss/types");
|
|
139751
|
+
var import_react_native46 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
139752
|
+
var import_react30 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
139753
|
+
var import_react_native47 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
139547
139754
|
var SDK_ID = "106";
|
|
139548
139755
|
var LIST_BANNER_STYLE_ID = "1";
|
|
139549
139756
|
var NATIVE_IMAGE_STYLE_ID = "2";
|
|
@@ -139821,7 +140028,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139821
140028
|
});
|
|
139822
140029
|
return _loadAd.apply(this, arguments);
|
|
139823
140030
|
}
|
|
139824
|
-
var
|
|
140031
|
+
var import_react_native43 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
139825
140032
|
function isSafeUrl(url) {
|
|
139826
140033
|
try {
|
|
139827
140034
|
var parsed = new URL(url);
|
|
@@ -139837,7 +140044,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139837
140044
|
return;
|
|
139838
140045
|
}
|
|
139839
140046
|
try {
|
|
139840
|
-
(0,
|
|
140047
|
+
(0, import_react_native43.openURL)(getWebSchemeOrUri(url));
|
|
139841
140048
|
} catch (error) {
|
|
139842
140049
|
console.error("[InlineAd] Failed to open landing URL:", error);
|
|
139843
140050
|
}
|
|
@@ -139944,10 +140151,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139944
140151
|
}()
|
|
139945
140152
|
}]);
|
|
139946
140153
|
}();
|
|
139947
|
-
var
|
|
139948
|
-
var
|
|
139949
|
-
var
|
|
139950
|
-
var
|
|
140154
|
+
var import_react_native_svg2 = _$$_REQUIRE(_dependencyMap[14], "@granite-js/native/react-native-svg");
|
|
140155
|
+
var import_react28 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
140156
|
+
var import_react_native44 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
140157
|
+
var import_jsx_runtime25 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
139951
140158
|
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";
|
|
139952
140159
|
function FeedBannerAdView({
|
|
139953
140160
|
brandName,
|
|
@@ -139959,17 +140166,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139959
140166
|
ctaTextColor,
|
|
139960
140167
|
ctaBackgroundColor,
|
|
139961
140168
|
adClearanceText,
|
|
139962
|
-
colors,
|
|
140169
|
+
colors: colors4,
|
|
139963
140170
|
isAdBadgeEnabled,
|
|
139964
140171
|
paddingStyle,
|
|
139965
140172
|
onPress
|
|
139966
140173
|
}) {
|
|
139967
|
-
var scale = (0,
|
|
140174
|
+
var scale = (0, import_react28.useRef)(new import_react_native44.Animated.Value(1)).current;
|
|
139968
140175
|
var animateScale = toValue => {
|
|
139969
|
-
|
|
140176
|
+
import_react_native44.Animated.timing(scale, {
|
|
139970
140177
|
toValue,
|
|
139971
140178
|
duration: 100,
|
|
139972
|
-
easing:
|
|
140179
|
+
easing: import_react_native44.Easing.inOut(import_react_native44.Easing.ease),
|
|
139973
140180
|
useNativeDriver: true
|
|
139974
140181
|
}).start();
|
|
139975
140182
|
};
|
|
@@ -139981,107 +140188,107 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139981
140188
|
};
|
|
139982
140189
|
var resolvedCtaBackground = ctaBackgroundColor ?? "#3081F9";
|
|
139983
140190
|
var resolvedCtaTextColor = ctaTextColor ?? "#ffffff";
|
|
139984
|
-
return (0,
|
|
140191
|
+
return (0, import_jsx_runtime25.jsx)(import_react_native44.Pressable, {
|
|
139985
140192
|
accessibilityRole: "button",
|
|
139986
140193
|
onPress: () => onPress(null),
|
|
139987
140194
|
onPressIn: handlePressIn,
|
|
139988
140195
|
onPressOut: handlePressOut,
|
|
139989
140196
|
style: styles.pressable,
|
|
139990
|
-
children: (0,
|
|
140197
|
+
children: (0, import_jsx_runtime25.jsxs)(import_react_native44.Animated.View, {
|
|
139991
140198
|
style: [styles.container, paddingStyle, {
|
|
139992
140199
|
transform: [{
|
|
139993
140200
|
scale
|
|
139994
140201
|
}]
|
|
139995
140202
|
}],
|
|
139996
|
-
children: [(0,
|
|
140203
|
+
children: [(0, import_jsx_runtime25.jsxs)(import_react_native44.View, {
|
|
139997
140204
|
style: styles.profileContainer,
|
|
139998
|
-
children: [(0,
|
|
140205
|
+
children: [(0, import_jsx_runtime25.jsxs)(import_react_native44.View, {
|
|
139999
140206
|
style: styles.brandArea,
|
|
140000
|
-
children: [(0,
|
|
140207
|
+
children: [(0, import_jsx_runtime25.jsx)(import_react_native44.Pressable, {
|
|
140001
140208
|
accessibilityRole: "button",
|
|
140002
140209
|
onPress: () => onPress("202"),
|
|
140003
140210
|
onPressIn: handlePressIn,
|
|
140004
140211
|
onPressOut: handlePressOut,
|
|
140005
140212
|
style: styles.logoContainer,
|
|
140006
|
-
children: (0,
|
|
140213
|
+
children: (0, import_jsx_runtime25.jsxs)(import_react_native44.View, {
|
|
140007
140214
|
style: [styles.logoWrapper, {
|
|
140008
|
-
backgroundColor:
|
|
140215
|
+
backgroundColor: colors4.brandLogoBg
|
|
140009
140216
|
}],
|
|
140010
|
-
children: [brandLogoUri ? (0,
|
|
140217
|
+
children: [brandLogoUri ? (0, import_jsx_runtime25.jsx)(import_react_native44.Image, {
|
|
140011
140218
|
source: {
|
|
140012
140219
|
uri: brandLogoUri
|
|
140013
140220
|
},
|
|
140014
140221
|
style: styles.logoImage,
|
|
140015
140222
|
resizeMode: "cover"
|
|
140016
|
-
}) : null, (0,
|
|
140223
|
+
}) : null, (0, import_jsx_runtime25.jsx)(import_react_native44.View, {
|
|
140017
140224
|
style: [styles.logoOverlay, {
|
|
140018
|
-
borderColor:
|
|
140225
|
+
borderColor: colors4.brandLogoBorder
|
|
140019
140226
|
}]
|
|
140020
140227
|
})]
|
|
140021
140228
|
})
|
|
140022
|
-
}), (0,
|
|
140229
|
+
}), (0, import_jsx_runtime25.jsxs)(import_react_native44.View, {
|
|
140023
140230
|
style: styles.brandTextContainer,
|
|
140024
|
-
children: [(0,
|
|
140231
|
+
children: [(0, import_jsx_runtime25.jsx)(import_react_native44.Pressable, {
|
|
140025
140232
|
accessibilityRole: "button",
|
|
140026
140233
|
onPress: () => onPress("103"),
|
|
140027
140234
|
onPressIn: handlePressIn,
|
|
140028
140235
|
onPressOut: handlePressOut,
|
|
140029
|
-
children: (0,
|
|
140236
|
+
children: (0, import_jsx_runtime25.jsx)(import_react_native44.Text, {
|
|
140030
140237
|
allowFontScaling: false,
|
|
140031
140238
|
numberOfLines: 1,
|
|
140032
140239
|
style: [styles.brandName, {
|
|
140033
|
-
color:
|
|
140240
|
+
color: colors4.brandName
|
|
140034
140241
|
}],
|
|
140035
140242
|
children: brandName
|
|
140036
140243
|
})
|
|
140037
|
-
}), isAdBadgeEnabled ? (0,
|
|
140244
|
+
}), isAdBadgeEnabled ? (0, import_jsx_runtime25.jsx)(import_react_native44.Text, {
|
|
140038
140245
|
allowFontScaling: false,
|
|
140039
140246
|
numberOfLines: 1,
|
|
140040
140247
|
style: [styles.adBadge, {
|
|
140041
|
-
color:
|
|
140248
|
+
color: colors4.adBadge
|
|
140042
140249
|
}],
|
|
140043
140250
|
children: "\uAD11\uACE0"
|
|
140044
140251
|
}) : null]
|
|
140045
140252
|
})]
|
|
140046
|
-
}), (0,
|
|
140253
|
+
}), (0, import_jsx_runtime25.jsxs)(import_react_native44.View, {
|
|
140047
140254
|
style: styles.textArea,
|
|
140048
|
-
children: [(0,
|
|
140255
|
+
children: [(0, import_jsx_runtime25.jsx)(import_react_native44.Pressable, {
|
|
140049
140256
|
accessibilityRole: "button",
|
|
140050
140257
|
onPress: () => onPress("101"),
|
|
140051
140258
|
onPressIn: handlePressIn,
|
|
140052
140259
|
onPressOut: handlePressOut,
|
|
140053
|
-
children: (0,
|
|
140260
|
+
children: (0, import_jsx_runtime25.jsx)(import_react_native44.Text, {
|
|
140054
140261
|
allowFontScaling: false,
|
|
140055
140262
|
style: [styles.title, {
|
|
140056
|
-
color:
|
|
140263
|
+
color: colors4.title
|
|
140057
140264
|
}],
|
|
140058
140265
|
children: title
|
|
140059
140266
|
})
|
|
140060
|
-
}), (0,
|
|
140267
|
+
}), (0, import_jsx_runtime25.jsx)(import_react_native44.Pressable, {
|
|
140061
140268
|
accessibilityRole: "button",
|
|
140062
140269
|
onPress: () => onPress("102"),
|
|
140063
140270
|
onPressIn: handlePressIn,
|
|
140064
140271
|
onPressOut: handlePressOut,
|
|
140065
|
-
children: (0,
|
|
140272
|
+
children: (0, import_jsx_runtime25.jsx)(import_react_native44.Text, {
|
|
140066
140273
|
allowFontScaling: false,
|
|
140067
140274
|
style: [styles.subtitle, {
|
|
140068
|
-
color:
|
|
140275
|
+
color: colors4.subtitle
|
|
140069
140276
|
}],
|
|
140070
140277
|
children: subtitle
|
|
140071
140278
|
})
|
|
140072
140279
|
})]
|
|
140073
140280
|
})]
|
|
140074
|
-
}), (0,
|
|
140281
|
+
}), (0, import_jsx_runtime25.jsxs)(import_react_native44.View, {
|
|
140075
140282
|
style: styles.card,
|
|
140076
|
-
children: [(0,
|
|
140283
|
+
children: [(0, import_jsx_runtime25.jsx)(import_react_native44.Pressable, {
|
|
140077
140284
|
accessibilityRole: "button",
|
|
140078
140285
|
onPress: () => onPress("201"),
|
|
140079
140286
|
onPressIn: handlePressIn,
|
|
140080
140287
|
onPressOut: handlePressOut,
|
|
140081
140288
|
style: styles.imageButton,
|
|
140082
|
-
children: (0,
|
|
140289
|
+
children: (0, import_jsx_runtime25.jsx)(import_react_native44.View, {
|
|
140083
140290
|
style: styles.imageContainer,
|
|
140084
|
-
children: mainImageUri ? (0,
|
|
140291
|
+
children: mainImageUri ? (0, import_jsx_runtime25.jsx)(import_react_native44.Image, {
|
|
140085
140292
|
source: {
|
|
140086
140293
|
uri: mainImageUri
|
|
140087
140294
|
},
|
|
@@ -140089,7 +140296,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140089
140296
|
resizeMode: "cover"
|
|
140090
140297
|
}) : null
|
|
140091
140298
|
})
|
|
140092
|
-
}), (0,
|
|
140299
|
+
}), (0, import_jsx_runtime25.jsxs)(import_react_native44.Pressable, {
|
|
140093
140300
|
accessibilityRole: "button",
|
|
140094
140301
|
onPress: () => onPress("0"),
|
|
140095
140302
|
onPressIn: handlePressIn,
|
|
@@ -140097,37 +140304,37 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140097
140304
|
style: [styles.cta, {
|
|
140098
140305
|
backgroundColor: resolvedCtaBackground
|
|
140099
140306
|
}],
|
|
140100
|
-
children: [(0,
|
|
140307
|
+
children: [(0, import_jsx_runtime25.jsx)(import_react_native44.Text, {
|
|
140101
140308
|
allowFontScaling: false,
|
|
140102
140309
|
style: [styles.ctaText, {
|
|
140103
140310
|
color: resolvedCtaTextColor
|
|
140104
140311
|
}],
|
|
140105
140312
|
children: ctaText
|
|
140106
|
-
}), (0,
|
|
140313
|
+
}), (0, import_jsx_runtime25.jsx)(import_react_native_svg2.Svg, {
|
|
140107
140314
|
width: 20,
|
|
140108
140315
|
height: 20,
|
|
140109
140316
|
viewBox: "0 0 24 24",
|
|
140110
|
-
children: (0,
|
|
140317
|
+
children: (0, import_jsx_runtime25.jsx)(import_react_native_svg2.Path, {
|
|
140111
140318
|
d: ARROW_PATH,
|
|
140112
140319
|
fill: resolvedCtaTextColor
|
|
140113
140320
|
})
|
|
140114
140321
|
})]
|
|
140115
|
-
}), (0,
|
|
140322
|
+
}), (0, import_jsx_runtime25.jsx)(import_react_native44.View, {
|
|
140116
140323
|
style: [styles.cardOverlay, {
|
|
140117
|
-
borderColor:
|
|
140324
|
+
borderColor: colors4.imageOverlayBorder
|
|
140118
140325
|
}]
|
|
140119
140326
|
})]
|
|
140120
|
-
}), adClearanceText ? (0,
|
|
140327
|
+
}), adClearanceText ? (0, import_jsx_runtime25.jsx)(import_react_native44.Text, {
|
|
140121
140328
|
allowFontScaling: false,
|
|
140122
140329
|
style: [styles.adClearance, {
|
|
140123
|
-
color:
|
|
140330
|
+
color: colors4.adClearance
|
|
140124
140331
|
}],
|
|
140125
140332
|
children: adClearanceText
|
|
140126
140333
|
}) : null]
|
|
140127
140334
|
})
|
|
140128
140335
|
});
|
|
140129
140336
|
}
|
|
140130
|
-
var styles =
|
|
140337
|
+
var styles = import_react_native44.StyleSheet.create({
|
|
140131
140338
|
pressable: {
|
|
140132
140339
|
width: "100%"
|
|
140133
140340
|
},
|
|
@@ -140166,7 +140373,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140166
140373
|
borderRadius: 18
|
|
140167
140374
|
},
|
|
140168
140375
|
logoOverlay: {
|
|
140169
|
-
...
|
|
140376
|
+
...import_react_native44.StyleSheet.absoluteFillObject,
|
|
140170
140377
|
borderWidth: 1,
|
|
140171
140378
|
borderRadius: 18
|
|
140172
140379
|
},
|
|
@@ -140229,7 +140436,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140229
140436
|
lineHeight: 22.5
|
|
140230
140437
|
},
|
|
140231
140438
|
cardOverlay: {
|
|
140232
|
-
...
|
|
140439
|
+
...import_react_native44.StyleSheet.absoluteFillObject,
|
|
140233
140440
|
borderWidth: 2,
|
|
140234
140441
|
borderRadius: 12,
|
|
140235
140442
|
pointerEvents: "none"
|
|
@@ -140240,10 +140447,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140240
140447
|
fontWeight: "400"
|
|
140241
140448
|
}
|
|
140242
140449
|
});
|
|
140243
|
-
var
|
|
140244
|
-
var
|
|
140245
|
-
var
|
|
140246
|
-
var
|
|
140450
|
+
var import_react_native_svg3 = _$$_REQUIRE(_dependencyMap[14], "@granite-js/native/react-native-svg");
|
|
140451
|
+
var import_react29 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
140452
|
+
var import_react_native45 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
140453
|
+
var import_jsx_runtime26 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
140247
140454
|
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";
|
|
140248
140455
|
function ListBannerAdView({
|
|
140249
140456
|
title,
|
|
@@ -140252,16 +140459,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140252
140459
|
adClearanceFontSize,
|
|
140253
140460
|
imageUri,
|
|
140254
140461
|
paddingStyle,
|
|
140255
|
-
colors,
|
|
140462
|
+
colors: colors4,
|
|
140256
140463
|
onPress
|
|
140257
140464
|
}) {
|
|
140258
|
-
var scale = (0,
|
|
140259
|
-
var clipIdRef = (0,
|
|
140465
|
+
var scale = (0, import_react29.useRef)(new import_react_native45.Animated.Value(1)).current;
|
|
140466
|
+
var clipIdRef = (0, import_react29.useRef)(`clip-${Math.random().toString(36).slice(2)}`);
|
|
140260
140467
|
var animateScale = toValue => {
|
|
140261
|
-
|
|
140468
|
+
import_react_native45.Animated.timing(scale, {
|
|
140262
140469
|
toValue,
|
|
140263
140470
|
duration: 100,
|
|
140264
|
-
easing:
|
|
140471
|
+
easing: import_react_native45.Easing.inOut(import_react_native45.Easing.ease),
|
|
140265
140472
|
useNativeDriver: true
|
|
140266
140473
|
}).start();
|
|
140267
140474
|
};
|
|
@@ -140271,41 +140478,41 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140271
140478
|
var handlePressOut = () => {
|
|
140272
140479
|
animateScale(1);
|
|
140273
140480
|
};
|
|
140274
|
-
return (0,
|
|
140481
|
+
return (0, import_jsx_runtime26.jsx)(import_react_native45.Pressable, {
|
|
140275
140482
|
accessibilityRole: "button",
|
|
140276
140483
|
onPress: () => onPress(null),
|
|
140277
140484
|
onPressIn: handlePressIn,
|
|
140278
140485
|
onPressOut: handlePressOut,
|
|
140279
140486
|
style: styles2.pressable,
|
|
140280
|
-
children: (0,
|
|
140487
|
+
children: (0, import_jsx_runtime26.jsxs)(import_react_native45.Animated.View, {
|
|
140281
140488
|
style: [styles2.container, paddingStyle, {
|
|
140282
140489
|
transform: [{
|
|
140283
140490
|
scale
|
|
140284
140491
|
}]
|
|
140285
140492
|
}],
|
|
140286
|
-
children: [(0,
|
|
140493
|
+
children: [(0, import_jsx_runtime26.jsxs)(import_react_native45.View, {
|
|
140287
140494
|
style: styles2.titleRow,
|
|
140288
|
-
children: [(0,
|
|
140495
|
+
children: [(0, import_jsx_runtime26.jsx)(import_react_native45.Pressable, {
|
|
140289
140496
|
accessibilityRole: "button",
|
|
140290
140497
|
onPress: () => onPress("202"),
|
|
140291
140498
|
onPressIn: handlePressIn,
|
|
140292
140499
|
onPressOut: handlePressOut,
|
|
140293
140500
|
style: styles2.iconWrapper,
|
|
140294
|
-
children: (0,
|
|
140501
|
+
children: (0, import_jsx_runtime26.jsxs)(import_react_native_svg3.Svg, {
|
|
140295
140502
|
width: 36,
|
|
140296
140503
|
height: 36,
|
|
140297
140504
|
viewBox: "0 0 36 36",
|
|
140298
|
-
children: [(0,
|
|
140299
|
-
children: (0,
|
|
140505
|
+
children: [(0, import_jsx_runtime26.jsx)(import_react_native_svg3.Defs, {
|
|
140506
|
+
children: (0, import_jsx_runtime26.jsx)(import_react_native_svg3.ClipPath, {
|
|
140300
140507
|
id: clipIdRef.current,
|
|
140301
|
-
children: (0,
|
|
140508
|
+
children: (0, import_jsx_runtime26.jsx)(import_react_native_svg3.Path, {
|
|
140302
140509
|
d: SQUIRCLE_PATH
|
|
140303
140510
|
})
|
|
140304
140511
|
})
|
|
140305
|
-
}), (0,
|
|
140512
|
+
}), (0, import_jsx_runtime26.jsx)(import_react_native_svg3.Path, {
|
|
140306
140513
|
d: SQUIRCLE_PATH,
|
|
140307
|
-
fill:
|
|
140308
|
-
}), imageUri ? (0,
|
|
140514
|
+
fill: colors4.iconBg
|
|
140515
|
+
}), imageUri ? (0, import_jsx_runtime26.jsx)(import_react_native_svg3.Image, {
|
|
140309
140516
|
href: {
|
|
140310
140517
|
uri: imageUri
|
|
140311
140518
|
},
|
|
@@ -140313,46 +140520,46 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140313
140520
|
height: 36,
|
|
140314
140521
|
preserveAspectRatio: "xMidYMid slice",
|
|
140315
140522
|
clipPath: `url(#${clipIdRef.current})`
|
|
140316
|
-
}) : null, (0,
|
|
140523
|
+
}) : null, (0, import_jsx_runtime26.jsx)(import_react_native_svg3.Path, {
|
|
140317
140524
|
d: SQUIRCLE_PATH,
|
|
140318
140525
|
fill: "none",
|
|
140319
|
-
stroke:
|
|
140526
|
+
stroke: colors4.iconBorder,
|
|
140320
140527
|
strokeWidth: 2,
|
|
140321
140528
|
clipPath: `url(#${clipIdRef.current})`
|
|
140322
140529
|
})]
|
|
140323
140530
|
})
|
|
140324
|
-
}), (0,
|
|
140531
|
+
}), (0, import_jsx_runtime26.jsxs)(import_react_native45.View, {
|
|
140325
140532
|
style: styles2.textWrapper,
|
|
140326
|
-
children: [(0,
|
|
140533
|
+
children: [(0, import_jsx_runtime26.jsx)(import_react_native45.Pressable, {
|
|
140327
140534
|
accessibilityRole: "button",
|
|
140328
140535
|
onPress: () => onPress("101"),
|
|
140329
140536
|
onPressIn: handlePressIn,
|
|
140330
140537
|
onPressOut: handlePressOut,
|
|
140331
|
-
children: (0,
|
|
140538
|
+
children: (0, import_jsx_runtime26.jsx)(import_react_native45.Text, {
|
|
140332
140539
|
allowFontScaling: false,
|
|
140333
140540
|
style: [styles2.title, {
|
|
140334
|
-
color:
|
|
140541
|
+
color: colors4.title
|
|
140335
140542
|
}],
|
|
140336
140543
|
children: title
|
|
140337
140544
|
})
|
|
140338
|
-
}), (0,
|
|
140545
|
+
}), (0, import_jsx_runtime26.jsx)(import_react_native45.Pressable, {
|
|
140339
140546
|
accessibilityRole: "button",
|
|
140340
140547
|
onPress: () => onPress("102"),
|
|
140341
140548
|
onPressIn: handlePressIn,
|
|
140342
140549
|
onPressOut: handlePressOut,
|
|
140343
|
-
children: (0,
|
|
140550
|
+
children: (0, import_jsx_runtime26.jsx)(import_react_native45.Text, {
|
|
140344
140551
|
allowFontScaling: false,
|
|
140345
140552
|
style: [styles2.subtitle, {
|
|
140346
|
-
color:
|
|
140553
|
+
color: colors4.subtitle
|
|
140347
140554
|
}],
|
|
140348
140555
|
children: subtitle
|
|
140349
140556
|
})
|
|
140350
140557
|
})]
|
|
140351
140558
|
})]
|
|
140352
|
-
}), adClearanceText ? (0,
|
|
140559
|
+
}), adClearanceText ? (0, import_jsx_runtime26.jsx)(import_react_native45.Text, {
|
|
140353
140560
|
allowFontScaling: false,
|
|
140354
140561
|
style: [styles2.adClearance, {
|
|
140355
|
-
color:
|
|
140562
|
+
color: colors4.adClearance,
|
|
140356
140563
|
fontSize: adClearanceFontSize,
|
|
140357
140564
|
lineHeight: adClearanceFontSize * 1.2
|
|
140358
140565
|
}],
|
|
@@ -140361,7 +140568,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140361
140568
|
})
|
|
140362
140569
|
});
|
|
140363
140570
|
}
|
|
140364
|
-
var styles2 =
|
|
140571
|
+
var styles2 = import_react_native45.StyleSheet.create({
|
|
140365
140572
|
pressable: {
|
|
140366
140573
|
width: "100%"
|
|
140367
140574
|
},
|
|
@@ -140487,7 +140694,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140487
140694
|
adMetadata: {}
|
|
140488
140695
|
};
|
|
140489
140696
|
}
|
|
140490
|
-
var
|
|
140697
|
+
var import_jsx_runtime27 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
140491
140698
|
var themePalette = {
|
|
140492
140699
|
light: {
|
|
140493
140700
|
title: "#4e5968",
|
|
@@ -140569,27 +140776,27 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140569
140776
|
onAdImpression = props.onAdImpression,
|
|
140570
140777
|
onAdFailedToRender = props.onAdFailedToRender,
|
|
140571
140778
|
onNoFill = props.onNoFill;
|
|
140572
|
-
var slotIdRef = (0,
|
|
140573
|
-
var
|
|
140779
|
+
var slotIdRef = (0, import_react30.useRef)(createSlotId());
|
|
140780
|
+
var _ref48 = (0, import_react30.useState)(null),
|
|
140781
|
+
_ref49 = _slicedToArray(_ref48, 2),
|
|
140782
|
+
ad = _ref49[0],
|
|
140783
|
+
setAd = _ref49[1];
|
|
140784
|
+
var _ref50 = (0, import_react30.useState)(true),
|
|
140574
140785
|
_ref51 = _slicedToArray(_ref50, 2),
|
|
140575
|
-
|
|
140576
|
-
|
|
140577
|
-
var
|
|
140578
|
-
|
|
140579
|
-
|
|
140580
|
-
|
|
140581
|
-
var
|
|
140582
|
-
var
|
|
140583
|
-
var
|
|
140584
|
-
var
|
|
140585
|
-
var
|
|
140586
|
-
var
|
|
140587
|
-
var
|
|
140588
|
-
var
|
|
140589
|
-
var lastImp1pxAtRef = (0, import_react29.useRef)(null);
|
|
140590
|
-
var loadingRef = (0, import_react29.useRef)(false);
|
|
140591
|
-
var loadRef = (0, import_react29.useRef)(null);
|
|
140592
|
-
var callbacksRef = (0, import_react29.useRef)({
|
|
140786
|
+
isAdBadgeEnabled = _ref51[0],
|
|
140787
|
+
setIsAdBadgeEnabled = _ref51[1];
|
|
140788
|
+
var eventTrackerRef = (0, import_react30.useRef)(null);
|
|
140789
|
+
var eventPayloadRef = (0, import_react30.useRef)(null);
|
|
140790
|
+
var hasRenderedRef = (0, import_react30.useRef)(false);
|
|
140791
|
+
var hasLoggedImp1pxRef = (0, import_react30.useRef)(false);
|
|
140792
|
+
var hasLoggedImp100pRef = (0, import_react30.useRef)(false);
|
|
140793
|
+
var hasNotifiedViewableRef = (0, import_react30.useRef)(false);
|
|
140794
|
+
var viewableTimerRef = (0, import_react30.useRef)(null);
|
|
140795
|
+
var refetchIntervalMsRef = (0, import_react30.useRef)(null);
|
|
140796
|
+
var lastImp1pxAtRef = (0, import_react30.useRef)(null);
|
|
140797
|
+
var loadingRef = (0, import_react30.useRef)(false);
|
|
140798
|
+
var loadRef = (0, import_react30.useRef)(null);
|
|
140799
|
+
var callbacksRef = (0, import_react30.useRef)({
|
|
140593
140800
|
onAdRendered,
|
|
140594
140801
|
onAdViewable,
|
|
140595
140802
|
onAdClicked,
|
|
@@ -140597,13 +140804,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140597
140804
|
onAdFailedToRender,
|
|
140598
140805
|
onNoFill
|
|
140599
140806
|
});
|
|
140600
|
-
var isMountedRef = (0,
|
|
140601
|
-
var colorScheme = (0,
|
|
140807
|
+
var isMountedRef = (0, import_react30.useRef)(false);
|
|
140808
|
+
var colorScheme = (0, import_react_native47.useColorScheme)();
|
|
140602
140809
|
var selectedTheme = theme ?? DEFAULT_INLINE_AD_THEME;
|
|
140603
140810
|
var resolvedTheme = selectedTheme === "auto" ? colorScheme === "dark" ? "dark" : "light" : selectedTheme;
|
|
140604
140811
|
var resolvedTone = tone ?? DEFAULT_INLINE_AD_TONE;
|
|
140605
140812
|
var resolvedVariant = variant ?? DEFAULT_INLINE_AD_VARIANT;
|
|
140606
|
-
var
|
|
140813
|
+
var colors4 = themePalette[resolvedTheme];
|
|
140607
140814
|
var feedColors = feedThemePalette[resolvedTheme];
|
|
140608
140815
|
var backgroundColor = resolvedTone === "grey" ? resolvedTheme === "dark" ? "#101013" : "#f2f4f7" : resolvedTheme === "dark" ? "#17171c" : "#ffffff";
|
|
140609
140816
|
callbacksRef.current = {
|
|
@@ -140614,7 +140821,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140614
140821
|
onAdFailedToRender,
|
|
140615
140822
|
onNoFill
|
|
140616
140823
|
};
|
|
140617
|
-
(0,
|
|
140824
|
+
(0, import_react30.useEffect)(() => {
|
|
140618
140825
|
isMountedRef.current = true;
|
|
140619
140826
|
return () => {
|
|
140620
140827
|
isMountedRef.current = false;
|
|
@@ -140624,7 +140831,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140624
140831
|
}
|
|
140625
140832
|
};
|
|
140626
140833
|
}, []);
|
|
140627
|
-
(0,
|
|
140834
|
+
(0, import_react30.useEffect)(() => {
|
|
140628
140835
|
var normalizedAdGroupId = normalizeAdGroupId(adGroupId);
|
|
140629
140836
|
var loadAdRequest = () => {
|
|
140630
140837
|
if (loadingRef.current) {
|
|
@@ -140682,7 +140889,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140682
140889
|
loadRef.current = null;
|
|
140683
140890
|
};
|
|
140684
140891
|
}, [adGroupId]);
|
|
140685
|
-
(0,
|
|
140892
|
+
(0, import_react_native46.useVisibilityChange)(documentVisibility => {
|
|
140686
140893
|
if (documentVisibility !== "visible") {
|
|
140687
140894
|
return;
|
|
140688
140895
|
}
|
|
@@ -140695,7 +140902,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140695
140902
|
loadRef.current?.();
|
|
140696
140903
|
}
|
|
140697
140904
|
});
|
|
140698
|
-
(0,
|
|
140905
|
+
(0, import_react30.useEffect)(() => {
|
|
140699
140906
|
if (!ad || hasRenderedRef.current) {
|
|
140700
140907
|
return;
|
|
140701
140908
|
}
|
|
@@ -140780,36 +140987,36 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140780
140987
|
callbacksRef.current.onAdClicked?.(basePayload);
|
|
140781
140988
|
}
|
|
140782
140989
|
};
|
|
140783
|
-
return (0,
|
|
140990
|
+
return (0, import_jsx_runtime27.jsx)(import_react_native46.ImpressionArea, {
|
|
140784
140991
|
style: styles3.impressionArea,
|
|
140785
140992
|
onImpressionStart: handleImpression1px,
|
|
140786
140993
|
areaThreshold: 0,
|
|
140787
140994
|
UNSAFE__impressFallbackOnMount: Boolean(impressFallbackOnMount),
|
|
140788
|
-
children: (0,
|
|
140995
|
+
children: (0, import_jsx_runtime27.jsx)(import_react_native46.ImpressionArea, {
|
|
140789
140996
|
onImpressionStart: handleImpression100p,
|
|
140790
140997
|
areaThreshold: 1,
|
|
140791
140998
|
UNSAFE__impressFallbackOnMount: Boolean(impressFallbackOnMount),
|
|
140792
|
-
children: (0,
|
|
140999
|
+
children: (0, import_jsx_runtime27.jsx)(import_react_native46.ImpressionArea, {
|
|
140793
141000
|
onImpressionStart: handleViewableStart,
|
|
140794
141001
|
onImpressionEnd: handleViewableEnd,
|
|
140795
141002
|
areaThreshold: 0.5,
|
|
140796
141003
|
UNSAFE__impressFallbackOnMount: Boolean(impressFallbackOnMount),
|
|
140797
|
-
children: (0,
|
|
141004
|
+
children: (0, import_jsx_runtime27.jsx)(import_react_native47.View, {
|
|
140798
141005
|
style: [styles3.wrapper, resolvedVariant === "card" && styles3.cardWrapper],
|
|
140799
|
-
children: (0,
|
|
141006
|
+
children: (0, import_jsx_runtime27.jsxs)(import_react_native47.View, {
|
|
140800
141007
|
style: [styles3.surface, {
|
|
140801
141008
|
backgroundColor
|
|
140802
141009
|
}, resolvedVariant === "card" && styles3.cardSurface],
|
|
140803
|
-
children: [isListBanner && listCreative ? (0,
|
|
141010
|
+
children: [isListBanner && listCreative ? (0, import_jsx_runtime27.jsx)(ListBannerAdView, {
|
|
140804
141011
|
title: listCreative.title,
|
|
140805
141012
|
subtitle: subtitleText,
|
|
140806
141013
|
adClearanceText,
|
|
140807
141014
|
adClearanceFontSize,
|
|
140808
141015
|
imageUri,
|
|
140809
141016
|
paddingStyle,
|
|
140810
|
-
colors,
|
|
141017
|
+
colors: colors4,
|
|
140811
141018
|
onPress: handleClick
|
|
140812
|
-
}) : null, isFeedBanner && feedCreative ? (0,
|
|
141019
|
+
}) : null, isFeedBanner && feedCreative ? (0, import_jsx_runtime27.jsx)(FeedBannerAdView, {
|
|
140813
141020
|
brandName: feedCreative.brandName,
|
|
140814
141021
|
brandLogoUri,
|
|
140815
141022
|
title: feedCreative.title,
|
|
@@ -140830,7 +141037,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140830
141037
|
})
|
|
140831
141038
|
}, impressionKey);
|
|
140832
141039
|
}
|
|
140833
|
-
var styles3 =
|
|
141040
|
+
var styles3 = import_react_native47.StyleSheet.create({
|
|
140834
141041
|
impressionArea: {
|
|
140835
141042
|
width: "100%"
|
|
140836
141043
|
},
|
|
@@ -140874,9 +141081,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140874
141081
|
useWaitForReturnNavigator,
|
|
140875
141082
|
..._$$_REQUIRE(_dependencyMap[4], "@apps-in-toss/analytics"),
|
|
140876
141083
|
..._$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules"),
|
|
140877
|
-
..._$$_REQUIRE(_dependencyMap[
|
|
141084
|
+
..._$$_REQUIRE(_dependencyMap[20], "@apps-in-toss/types")
|
|
140878
141085
|
});
|
|
140879
|
-
},1280,[21,20,17,48,1281,1282,2,1469,34,6,9,2436,2517,611,2520,2570,2578,2595,2445,1283
|
|
141086
|
+
},1280,[21,20,17,48,1281,1282,2,1469,34,6,9,2436,2517,611,750,2520,2570,2578,2595,2445,1283],"../../../../.yarn/__virtual__/@apps-in-toss-framework-virtual-afbad361af/1/packages/apps-in-toss/framework/dist/index.cjs");
|
|
140880
141087
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
140881
141088
|
"use strict";
|
|
140882
141089
|
|