@apps-in-toss/web-framework 2.7.0 → 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 +642 -422
- package/dist/prebuilt/dev.ios.rn84.js +642 -422
- package/dist/prebuilt/prod.android.rn72.js +5439 -5760
- package/dist/prebuilt/prod.android.rn84.js +5429 -5750
- package/dist/prebuilt/prod.ios.rn72.js +5439 -5760
- package/dist/prebuilt/prod.ios.rn84.js +5429 -5750
- 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: {
|
|
@@ -138299,11 +138513,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138299
138513
|
params.onError(createInvalidAdGroupIdError());
|
|
138300
138514
|
return noop;
|
|
138301
138515
|
}
|
|
138516
|
+
var wireHeaders = options.headers;
|
|
138302
138517
|
var unregisterCallbacks = import_native_modules12.INTERNAL__appBridgeHandler.invokeAppBridgeMethod("fetchTossAd", {
|
|
138303
138518
|
spaceUnitId: adGroupId,
|
|
138304
138519
|
sessionId,
|
|
138305
138520
|
sdkId: options.sdkId,
|
|
138306
|
-
availableStyleIds: options.availableStyleIds
|
|
138521
|
+
availableStyleIds: options.availableStyleIds,
|
|
138522
|
+
...(wireHeaders ? {
|
|
138523
|
+
headers: wireHeaders
|
|
138524
|
+
} : {})
|
|
138307
138525
|
}, {
|
|
138308
138526
|
onSuccess: response => {
|
|
138309
138527
|
onEvent(response);
|
|
@@ -138329,19 +138547,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138329
138547
|
var random = Math.random().toString(36).substring(2, 7).toUpperCase();
|
|
138330
138548
|
return `ait-${timestamp}${random}`;
|
|
138331
138549
|
}
|
|
138332
|
-
var
|
|
138550
|
+
var import_react_native32 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
138333
138551
|
function getReferrer() {
|
|
138334
138552
|
try {
|
|
138335
|
-
return new URL((0,
|
|
138553
|
+
return new URL((0, import_react_native32.getSchemeUri)()).searchParams.get("referrer");
|
|
138336
138554
|
} catch {
|
|
138337
138555
|
return null;
|
|
138338
138556
|
}
|
|
138339
138557
|
}
|
|
138340
138558
|
var import_native_modules13 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
|
|
138341
|
-
var
|
|
138559
|
+
var import_react_native33 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
138342
138560
|
function getIsDev() {
|
|
138343
138561
|
try {
|
|
138344
|
-
return new URL((0,
|
|
138562
|
+
return new URL((0, import_react_native33.getSchemeUri)()).searchParams.get("isDev") === "true";
|
|
138345
138563
|
} catch {
|
|
138346
138564
|
return false;
|
|
138347
138565
|
}
|
|
@@ -138405,8 +138623,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138405
138623
|
}
|
|
138406
138624
|
};
|
|
138407
138625
|
if (!integratedAdIsSupported()) {
|
|
138626
|
+
var fallbackOptions = {
|
|
138627
|
+
...normalizedParams.options
|
|
138628
|
+
};
|
|
138629
|
+
delete fallbackOptions.headers;
|
|
138408
138630
|
return import_native_modules14.GoogleAdMob.loadAppsInTossAdMob({
|
|
138409
138631
|
...normalizedParams,
|
|
138632
|
+
options: fallbackOptions,
|
|
138410
138633
|
onEvent: event => {
|
|
138411
138634
|
if (event.type === "loaded") {
|
|
138412
138635
|
var requestId = generateRequestId();
|
|
@@ -138445,11 +138668,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138445
138668
|
options = normalizedParams.options;
|
|
138446
138669
|
var adGroupId = options.adGroupId;
|
|
138447
138670
|
var referrer = getReferrer();
|
|
138671
|
+
var wireHeaders = options.headers;
|
|
138448
138672
|
var unregisterCallbacks = import_native_modules14.INTERNAL__appBridgeHandler.invokeAppBridgeMethod("loadTossAdOrAdmob", {
|
|
138449
138673
|
spaceUnitId: adGroupId,
|
|
138450
138674
|
referrer,
|
|
138451
138675
|
sessionId,
|
|
138452
|
-
sdkId
|
|
138676
|
+
sdkId,
|
|
138677
|
+
...(wireHeaders ? {
|
|
138678
|
+
headers: wireHeaders
|
|
138679
|
+
} : {})
|
|
138453
138680
|
}, {
|
|
138454
138681
|
onSuccess: () => {
|
|
138455
138682
|
onEvent({
|
|
@@ -138634,14 +138861,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138634
138861
|
return unregisterCallbacks;
|
|
138635
138862
|
}
|
|
138636
138863
|
showFullScreenAd.isSupported = import_native_modules14.GoogleAdMob.showAppsInTossAdMob.isSupported;
|
|
138637
|
-
var
|
|
138864
|
+
var import_react_native34 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
138638
138865
|
function tossAdEventLog(_x3) {
|
|
138639
138866
|
return _tossAdEventLog.apply(this, arguments);
|
|
138640
138867
|
}
|
|
138641
138868
|
function _tossAdEventLog() {
|
|
138642
138869
|
_tossAdEventLog = _asyncToGenerator(function* (params) {
|
|
138643
138870
|
var referrer = getReferrer();
|
|
138644
|
-
var appName =
|
|
138871
|
+
var appName = import_react_native34.Granite.appName;
|
|
138645
138872
|
var eventLogParams = {
|
|
138646
138873
|
...params,
|
|
138647
138874
|
params: {
|
|
@@ -138656,7 +138883,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138656
138883
|
});
|
|
138657
138884
|
return _tossAdEventLog.apply(this, arguments);
|
|
138658
138885
|
}
|
|
138659
|
-
var
|
|
138886
|
+
var import_react21 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
138660
138887
|
function serializeError(error) {
|
|
138661
138888
|
return JSON.stringify(error, (_, value) => {
|
|
138662
138889
|
if (value instanceof Error) {
|
|
@@ -138687,12 +138914,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138687
138914
|
return;
|
|
138688
138915
|
}
|
|
138689
138916
|
var wrappedFunc = function () {
|
|
138690
|
-
var
|
|
138917
|
+
var _ref28 = _asyncToGenerator(function* (...args2) {
|
|
138691
138918
|
var result = yield func(...args2);
|
|
138692
138919
|
return result;
|
|
138693
138920
|
});
|
|
138694
138921
|
return function wrappedFunc() {
|
|
138695
|
-
return
|
|
138922
|
+
return _ref28.apply(this, arguments);
|
|
138696
138923
|
};
|
|
138697
138924
|
}();
|
|
138698
138925
|
wrappedFunc(...args).then(result => {
|
|
@@ -138713,12 +138940,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138713
138940
|
asyncHandlerMap,
|
|
138714
138941
|
eventListenerMap
|
|
138715
138942
|
}) {
|
|
138716
|
-
var ref = (0,
|
|
138717
|
-
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]) => {
|
|
138718
138945
|
acc[key] = typeof value === "function" ? value() : value;
|
|
138719
138946
|
return acc;
|
|
138720
138947
|
}, {}))};`, [constantHandlerMap]);
|
|
138721
|
-
(0,
|
|
138948
|
+
(0, import_react21.useEffect)(() => {
|
|
138722
138949
|
ref.current?.injectJavaScript(injectedJavaScript);
|
|
138723
138950
|
}, [injectedJavaScript]);
|
|
138724
138951
|
var createHandleOnEvent = (functionName, eventId) => response => {
|
|
@@ -138732,8 +138959,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138732
138959
|
window.__GRANITE_NATIVE_EMITTER.emit('${functionName}/onError/${eventId}', ${serializedError});
|
|
138733
138960
|
`);
|
|
138734
138961
|
};
|
|
138735
|
-
var $onMessage = (0,
|
|
138736
|
-
var
|
|
138962
|
+
var $onMessage = (0, import_react21.useCallback)(function () {
|
|
138963
|
+
var _ref29 = _asyncToGenerator(function* (e) {
|
|
138737
138964
|
onMessage?.(e);
|
|
138738
138965
|
var data = parseNativeEventData(e.nativeEvent.data);
|
|
138739
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)) {
|
|
@@ -138776,7 +139003,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138776
139003
|
}
|
|
138777
139004
|
});
|
|
138778
139005
|
return function (_x4) {
|
|
138779
|
-
return
|
|
139006
|
+
return _ref29.apply(this, arguments);
|
|
138780
139007
|
};
|
|
138781
139008
|
}(), [onMessage]);
|
|
138782
139009
|
return {
|
|
@@ -138793,21 +139020,21 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138793
139020
|
return null;
|
|
138794
139021
|
}
|
|
138795
139022
|
}
|
|
138796
|
-
var
|
|
138797
|
-
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");
|
|
138798
139025
|
function useSafeAreaInsetsEvent() {
|
|
138799
|
-
var insets = (0,
|
|
138800
|
-
(0,
|
|
139026
|
+
var insets = (0, import_react_native_safe_area_context2.useSafeAreaInsets)();
|
|
139027
|
+
(0, import_react22.useEffect)(() => {
|
|
138801
139028
|
safeAreaInsetsChange.emit(insets);
|
|
138802
139029
|
}, [insets]);
|
|
138803
|
-
(0,
|
|
139030
|
+
(0, import_react22.useEffect)(() => {
|
|
138804
139031
|
return () => safeAreaInsetsChange.clearSubscriptions();
|
|
138805
139032
|
}, []);
|
|
138806
139033
|
return safeAreaInsetsChange;
|
|
138807
139034
|
}
|
|
138808
|
-
var
|
|
139035
|
+
var import_react_native35 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
139036
|
+
var import_react24 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
138809
139037
|
var import_react23 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
138810
|
-
var import_react22 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
138811
139038
|
var INITIAL_STATE = {
|
|
138812
139039
|
stack: [],
|
|
138813
139040
|
index: -1
|
|
@@ -138856,11 +139083,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138856
139083
|
}
|
|
138857
139084
|
}
|
|
138858
139085
|
function useWebViewHistory() {
|
|
138859
|
-
var
|
|
138860
|
-
|
|
138861
|
-
state =
|
|
138862
|
-
dispatch =
|
|
138863
|
-
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)(({
|
|
138864
139091
|
url,
|
|
138865
139092
|
canGoForward: canGoForward2
|
|
138866
139093
|
}) => {
|
|
@@ -138870,7 +139097,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138870
139097
|
canGoForward: canGoForward2
|
|
138871
139098
|
});
|
|
138872
139099
|
}, []);
|
|
138873
|
-
var
|
|
139100
|
+
var _ref32 = (0, import_react23.useMemo)(() => {
|
|
138874
139101
|
var canBack = state.index > 0;
|
|
138875
139102
|
var canFwd = state.index >= 0 && state.index < state.stack.length - 1;
|
|
138876
139103
|
return {
|
|
@@ -138878,8 +139105,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138878
139105
|
canGoForward: canFwd
|
|
138879
139106
|
};
|
|
138880
139107
|
}, [state.index, state.stack.length]),
|
|
138881
|
-
canGoBack =
|
|
138882
|
-
canGoForward =
|
|
139108
|
+
canGoBack = _ref32.canGoBack,
|
|
139109
|
+
canGoForward = _ref32.canGoForward;
|
|
138883
139110
|
return {
|
|
138884
139111
|
onNavigationStateChange,
|
|
138885
139112
|
hasHistory: canGoBack,
|
|
@@ -138890,19 +139117,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138890
139117
|
var _useWebViewHistory = useWebViewHistory(),
|
|
138891
139118
|
hasHistory = _useWebViewHistory.hasHistory,
|
|
138892
139119
|
onNavigationStateChange = _useWebViewHistory.onNavigationStateChange;
|
|
138893
|
-
var
|
|
138894
|
-
webBackHandlersRef =
|
|
138895
|
-
hasWebBackEvent =
|
|
138896
|
-
addWebBackEventListener =
|
|
138897
|
-
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;
|
|
138898
139125
|
var logging = useNavigationBarLogging();
|
|
138899
|
-
var addEventListener = (0,
|
|
139126
|
+
var addEventListener = (0, import_react24.useCallback)(handler => {
|
|
138900
139127
|
addWebBackEventListener(handler);
|
|
138901
139128
|
}, [addWebBackEventListener]);
|
|
138902
|
-
var removeEventListener = (0,
|
|
139129
|
+
var removeEventListener = (0, import_react24.useCallback)(handler => {
|
|
138903
139130
|
removeWebBackEventListener(handler);
|
|
138904
139131
|
}, [removeWebBackEventListener]);
|
|
138905
|
-
var handleWebBack = (0,
|
|
139132
|
+
var handleWebBack = (0, import_react24.useCallback)(_asyncToGenerator(function* () {
|
|
138906
139133
|
if (hasWebBackEvent) {
|
|
138907
139134
|
for (var handler of webBackHandlersRef) {
|
|
138908
139135
|
handler();
|
|
@@ -138912,10 +139139,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138912
139139
|
if (hasHistory) {
|
|
138913
139140
|
webViewRef.current?.injectJavaScript("window.history.back();");
|
|
138914
139141
|
} else {
|
|
138915
|
-
(0,
|
|
139142
|
+
(0, import_react_native35.closeView)();
|
|
138916
139143
|
}
|
|
138917
139144
|
}), [hasHistory, hasWebBackEvent, webBackHandlersRef, logging, webViewRef]);
|
|
138918
|
-
var handleWebHome = (0,
|
|
139145
|
+
var handleWebHome = (0, import_react24.useCallback)(() => {
|
|
138919
139146
|
logging.homeButtonClick();
|
|
138920
139147
|
if (homeEvent.hasSubscriptions()) {
|
|
138921
139148
|
homeEvent.emit({});
|
|
@@ -138928,7 +139155,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138928
139155
|
})();
|
|
138929
139156
|
`);
|
|
138930
139157
|
}, [hasWebBackEvent, webBackHandlersRef, logging, webViewInitialURL, webViewRef]);
|
|
138931
|
-
return (0,
|
|
139158
|
+
return (0, import_react24.useMemo)(() => ({
|
|
138932
139159
|
addEventListener,
|
|
138933
139160
|
removeEventListener,
|
|
138934
139161
|
handleWebBack,
|
|
@@ -138948,7 +139175,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138948
139175
|
};
|
|
138949
139176
|
}
|
|
138950
139177
|
var import_native_modules15 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
|
|
138951
|
-
var
|
|
139178
|
+
var import_react_native36 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
138952
139179
|
var FontA11yCategory = {
|
|
138953
139180
|
Large: "Large",
|
|
138954
139181
|
xLarge: "xLarge",
|
|
@@ -139083,27 +139310,27 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139083
139310
|
}) {
|
|
139084
139311
|
var platform = (0, import_native_modules15.getPlatformOS)();
|
|
139085
139312
|
var appVersion = (0, import_native_modules15.getTossAppVersion)();
|
|
139086
|
-
var
|
|
139087
|
-
fontScale =
|
|
139313
|
+
var _ref35 = (0, import_react_native36.useWindowDimensions)(),
|
|
139314
|
+
fontScale = _ref35.fontScale;
|
|
139088
139315
|
var platformString = platform === "ios" ? "iPhone" : "Android phone";
|
|
139089
139316
|
var fontA11y = mapFontScaleToCategory(fontScale, platform);
|
|
139090
139317
|
var normalizedFontScale = convertToAndroidStyleScale(fontScale, platform);
|
|
139091
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(" ");
|
|
139092
139319
|
}
|
|
139093
139320
|
var import_native_modules16 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
|
|
139094
|
-
var
|
|
139095
|
-
var
|
|
139321
|
+
var import_react_native37 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
139322
|
+
var import_react25 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
139096
139323
|
function useGeolocation({
|
|
139097
139324
|
accuracy,
|
|
139098
139325
|
distanceInterval,
|
|
139099
139326
|
timeInterval
|
|
139100
139327
|
}) {
|
|
139101
|
-
var isVisible = (0,
|
|
139102
|
-
var
|
|
139103
|
-
|
|
139104
|
-
location =
|
|
139105
|
-
setLocation =
|
|
139106
|
-
(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)(() => {
|
|
139107
139334
|
if (!isVisible) {
|
|
139108
139335
|
return;
|
|
139109
139336
|
}
|
|
@@ -139119,18 +139346,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139119
139346
|
}, [accuracy, distanceInterval, timeInterval, isVisible]);
|
|
139120
139347
|
return location;
|
|
139121
139348
|
}
|
|
139122
|
-
var
|
|
139123
|
-
var
|
|
139349
|
+
var import_react_native38 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
139350
|
+
var import_react26 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
139124
139351
|
function useWaitForReturnNavigator() {
|
|
139125
|
-
var callbacks = (0,
|
|
139126
|
-
var navigation = (0,
|
|
139127
|
-
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) => {
|
|
139128
139355
|
return new Promise(resolve => {
|
|
139129
139356
|
callbacks.push(resolve);
|
|
139130
139357
|
navigation.navigate(route, params);
|
|
139131
139358
|
});
|
|
139132
139359
|
}, [callbacks, navigation]);
|
|
139133
|
-
var handleVisibilityChange = (0,
|
|
139360
|
+
var handleVisibilityChange = (0, import_react26.useCallback)(state => {
|
|
139134
139361
|
if (state === "visible" && callbacks.length > 0) {
|
|
139135
139362
|
for (var callback of callbacks) {
|
|
139136
139363
|
callback();
|
|
@@ -139138,7 +139365,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139138
139365
|
callbacks.splice(0, callbacks.length);
|
|
139139
139366
|
}
|
|
139140
139367
|
}, [callbacks]);
|
|
139141
|
-
(0,
|
|
139368
|
+
(0, import_react_native38.useVisibilityChange)(handleVisibilityChange);
|
|
139142
139369
|
return startNavigating;
|
|
139143
139370
|
}
|
|
139144
139371
|
function useTopNavigation() {
|
|
@@ -139151,10 +139378,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139151
139378
|
};
|
|
139152
139379
|
}
|
|
139153
139380
|
var import_native_modules17 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
|
|
139154
|
-
var
|
|
139155
|
-
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");
|
|
139156
139383
|
function useHandleWebViewProcessDidTerminate(webViewRef) {
|
|
139157
|
-
var toast = (0,
|
|
139384
|
+
var toast = (0, import_tds_react_native13.useToast)();
|
|
139158
139385
|
return () => {
|
|
139159
139386
|
webViewDebugLog("AppsInTossWebViewProcessDidTerminate", {});
|
|
139160
139387
|
toast.open("\uBB38\uC81C\uAC00 \uC0DD\uACA8\uC11C \uBBF8\uB2C8\uC571\uC744 \uB2E4\uC2DC \uC2DC\uC791\uD588\uC5B4\uC694.", {
|
|
@@ -139180,7 +139407,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139180
139407
|
log_type: "debug",
|
|
139181
139408
|
params: {
|
|
139182
139409
|
...params,
|
|
139183
|
-
app_name:
|
|
139410
|
+
app_name: import_react_native39.Granite.appName,
|
|
139184
139411
|
deployment_id: global2.deploymentId
|
|
139185
139412
|
}
|
|
139186
139413
|
};
|
|
@@ -139192,7 +139419,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139192
139419
|
console.log("[webViewDebugLog]", event);
|
|
139193
139420
|
}
|
|
139194
139421
|
}
|
|
139195
|
-
var
|
|
139422
|
+
var import_react_native40 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
139196
139423
|
var extractDateFromUUIDv7 = uuid => {
|
|
139197
139424
|
var timestampHex = uuid.split("-").join("").slice(0, 12);
|
|
139198
139425
|
var timestamp = Number.parseInt(timestampHex, 16);
|
|
@@ -139214,7 +139441,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139214
139441
|
};
|
|
139215
139442
|
var getReferrer2 = () => {
|
|
139216
139443
|
try {
|
|
139217
|
-
var referrer = new URL((0,
|
|
139444
|
+
var referrer = new URL((0, import_react_native40.getSchemeUri)());
|
|
139218
139445
|
return referrer.searchParams.get("referrer");
|
|
139219
139446
|
} catch {
|
|
139220
139447
|
return "";
|
|
@@ -139230,7 +139457,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139230
139457
|
search,
|
|
139231
139458
|
referrer: getReferrer2(),
|
|
139232
139459
|
document_title: title,
|
|
139233
|
-
app_name:
|
|
139460
|
+
app_name: import_react_native40.Granite.appName,
|
|
139234
139461
|
deployment_id: env.getDeploymentId(),
|
|
139235
139462
|
deployment_timestamp: extractDateFromUUIDv7(env.getDeploymentId()).getTime()
|
|
139236
139463
|
};
|
|
@@ -139253,28 +139480,28 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139253
139480
|
pipelines: ["core"]
|
|
139254
139481
|
});
|
|
139255
139482
|
};
|
|
139256
|
-
var
|
|
139483
|
+
var import_jsx_runtime24 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
139257
139484
|
var operationalEnvironment = appsInTossConstantBridges.getOperationalEnvironment();
|
|
139258
139485
|
var TYPES = ["partner", "external", "game"];
|
|
139259
139486
|
var WEBVIEW_TYPES = {
|
|
139260
139487
|
partner: PartnerWebView,
|
|
139261
|
-
external:
|
|
139488
|
+
external: import_tds_react_native14.ExternalWebViewScreen,
|
|
139262
139489
|
game: GameWebView
|
|
139263
139490
|
};
|
|
139264
139491
|
function mergeSchemeQueryParamsInto(url) {
|
|
139265
139492
|
var baseUrl = new URL(url);
|
|
139266
|
-
var schemeUrl = new URL((0,
|
|
139493
|
+
var schemeUrl = new URL((0, import_react_native41.getSchemeUri)());
|
|
139267
139494
|
var resultUrl = new URL(schemeUrl.pathname, baseUrl.origin);
|
|
139268
|
-
for (var
|
|
139269
|
-
var
|
|
139270
|
-
var key =
|
|
139271
|
-
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];
|
|
139272
139499
|
resultUrl.searchParams.set(key, value);
|
|
139273
139500
|
}
|
|
139274
|
-
for (var
|
|
139275
|
-
var
|
|
139276
|
-
var _key =
|
|
139277
|
-
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];
|
|
139278
139505
|
resultUrl.searchParams.set(_key, _value);
|
|
139279
139506
|
}
|
|
139280
139507
|
return resultUrl;
|
|
@@ -139284,8 +139511,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139284
139511
|
var devUrl = `http://${local.host}:${local.port}`;
|
|
139285
139512
|
return mergeSchemeQueryParamsInto(devUrl);
|
|
139286
139513
|
}
|
|
139287
|
-
var
|
|
139288
|
-
rawUrl =
|
|
139514
|
+
var _ref42 = (0, import_native_modules18.safeSyncPostMessage)("getWebBundleURL", {}),
|
|
139515
|
+
rawUrl = _ref42.url;
|
|
139289
139516
|
var url = mergeSchemeQueryParamsInto(rawUrl);
|
|
139290
139517
|
var deploymentId = env.getDeploymentId();
|
|
139291
139518
|
if (deploymentId) {
|
|
@@ -139302,19 +139529,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139302
139529
|
if (!TYPES.includes(type)) {
|
|
139303
139530
|
throw new Error(`Invalid WebView type: '${type}'`);
|
|
139304
139531
|
}
|
|
139305
|
-
var webViewRef = (0,
|
|
139306
|
-
var url = (0,
|
|
139532
|
+
var webViewRef = (0, import_react27.useRef)(null);
|
|
139533
|
+
var url = (0, import_react27.useMemo)(() => getWebViewURL(local), [local]);
|
|
139307
139534
|
var webBackHandler = useWebBackHandler(url, webViewRef);
|
|
139308
|
-
var top = (0, import_private9.useSafeAreaTop)();
|
|
139309
|
-
var bottom = (0, import_private9.useSafeAreaBottom)();
|
|
139310
|
-
var insets = (0, import_react_native_safe_area_context4.useSafeAreaInsets)();
|
|
139311
139535
|
var global2 = getAppsInTossGlobals();
|
|
139536
|
+
var insets = (0, import_react_native_safe_area_context3.useSafeAreaInsets)();
|
|
139312
139537
|
var navigationBarContext = useNavigationBarContext();
|
|
139313
139538
|
var safeAreaInsetsEvent = useSafeAreaInsetsEvent();
|
|
139314
|
-
var
|
|
139315
|
-
|
|
139316
|
-
allowsBackForwardNavigationGestures =
|
|
139317
|
-
setAllowsBackForwardNavigationGestures =
|
|
139539
|
+
var _ref43 = (0, import_react27.useState)(props.allowsBackForwardNavigationGestures),
|
|
139540
|
+
_ref44 = _slicedToArray(_ref43, 2),
|
|
139541
|
+
allowsBackForwardNavigationGestures = _ref44[0],
|
|
139542
|
+
setAllowsBackForwardNavigationGestures = _ref44[1];
|
|
139318
139543
|
var handler = useBridgeHandler({
|
|
139319
139544
|
onMessage,
|
|
139320
139545
|
eventListenerMap: {
|
|
@@ -139322,7 +139547,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139322
139547
|
navigationAccessoryEvent: ({
|
|
139323
139548
|
onEvent,
|
|
139324
139549
|
onError
|
|
139325
|
-
}) =>
|
|
139550
|
+
}) => import_tds_react_native14.tdsEvent.addEventListener("navigationAccessoryEvent", {
|
|
139326
139551
|
onEvent,
|
|
139327
139552
|
onError
|
|
139328
139553
|
}),
|
|
@@ -139370,12 +139595,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139370
139595
|
},
|
|
139371
139596
|
constantHandlerMap: {
|
|
139372
139597
|
...appsInTossConstantBridges,
|
|
139373
|
-
getSafeAreaInsets: () =>
|
|
139374
|
-
top,
|
|
139375
|
-
bottom,
|
|
139376
|
-
left: insets.left,
|
|
139377
|
-
right: insets.right
|
|
139378
|
-
}),
|
|
139598
|
+
getSafeAreaInsets: () => insets,
|
|
139379
139599
|
...Object.fromEntries(Object.entries(global2).map(([key, value]) => [key, () => value])),
|
|
139380
139600
|
getServerTime_isSupported: import_native_modules18.getServerTime.isSupported,
|
|
139381
139601
|
requestReview_isSupported: import_native_modules18.requestReview.isSupported,
|
|
@@ -139397,19 +139617,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139397
139617
|
return appsInTossAsyncBridges.setIosSwipeGestureEnabled(options);
|
|
139398
139618
|
},
|
|
139399
139619
|
addAccessoryButton: function () {
|
|
139400
|
-
var
|
|
139620
|
+
var _ref45 = _asyncToGenerator(function* (params) {
|
|
139401
139621
|
return navigationBarContext.addNavigationRightButton(params);
|
|
139402
139622
|
});
|
|
139403
139623
|
return function addAccessoryButton(_x6) {
|
|
139404
|
-
return
|
|
139624
|
+
return _ref45.apply(this, arguments);
|
|
139405
139625
|
};
|
|
139406
139626
|
}(),
|
|
139407
139627
|
removeAccessoryButton: function () {
|
|
139408
|
-
var
|
|
139628
|
+
var _ref46 = _asyncToGenerator(function* () {
|
|
139409
139629
|
return navigationBarContext.removeNavigationRightButton();
|
|
139410
139630
|
});
|
|
139411
139631
|
return function removeAccessoryButton() {
|
|
139412
|
-
return
|
|
139632
|
+
return _ref46.apply(this, arguments);
|
|
139413
139633
|
};
|
|
139414
139634
|
}(),
|
|
139415
139635
|
requestPermission: appsInTossAsyncBridges.requestPermission,
|
|
@@ -139436,16 +139656,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139436
139656
|
tossAdEventLog,
|
|
139437
139657
|
memoryDebugLog: webViewMemoryDebugLog,
|
|
139438
139658
|
debugLog: function () {
|
|
139439
|
-
var
|
|
139659
|
+
var _ref47 = _asyncToGenerator(function* (event) {
|
|
139440
139660
|
sendLog(event);
|
|
139441
139661
|
});
|
|
139442
139662
|
return function debugLog(_x7) {
|
|
139443
|
-
return
|
|
139663
|
+
return _ref47.apply(this, arguments);
|
|
139444
139664
|
};
|
|
139445
139665
|
}()
|
|
139446
139666
|
}
|
|
139447
139667
|
});
|
|
139448
|
-
var headerPropForExternalWebView = (0,
|
|
139668
|
+
var headerPropForExternalWebView = (0, import_react27.useMemo)(() => {
|
|
139449
139669
|
var parsedNavigationBar = global2.navigationBar != null ? safeParseNavigationBar(global2.navigationBar) : null;
|
|
139450
139670
|
var initialAccessoryButton = parsedNavigationBar?.initialAccessoryButton;
|
|
139451
139671
|
var withBackButton = parsedNavigationBar?.withBackButton ?? true;
|
|
@@ -139466,16 +139686,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139466
139686
|
colorPreference: "light"
|
|
139467
139687
|
});
|
|
139468
139688
|
var refs = mergeRefs(handler.ref, webViewRef);
|
|
139469
|
-
(0,
|
|
139689
|
+
(0, import_react27.useEffect)(() => {
|
|
139470
139690
|
var callback = () => {
|
|
139471
139691
|
webBackHandler.handleWebBack();
|
|
139472
139692
|
return true;
|
|
139473
139693
|
};
|
|
139474
|
-
var subscription =
|
|
139694
|
+
var subscription = import_react_native42.BackHandler.addEventListener("hardwareBackPress", callback);
|
|
139475
139695
|
return () => subscription.remove();
|
|
139476
139696
|
}, [webBackHandler]);
|
|
139477
139697
|
var handleWebViewProcessDidTerminate = useHandleWebViewProcessDidTerminate(webViewRef);
|
|
139478
|
-
return (0,
|
|
139698
|
+
return (0, import_jsx_runtime24.jsx)(BaseWebView, {
|
|
139479
139699
|
ref: refs,
|
|
139480
139700
|
...props,
|
|
139481
139701
|
...headerPropForExternalWebView,
|
|
@@ -139495,14 +139715,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139495
139715
|
webBackHandler.onNavigationStateChange(event);
|
|
139496
139716
|
},
|
|
139497
139717
|
textZoom: 100,
|
|
139498
|
-
userAgent:
|
|
139718
|
+
userAgent: import_react_native42.Platform.OS === "ios" ? userAgent : void 0,
|
|
139499
139719
|
sharedCookiesEnabled: true,
|
|
139500
139720
|
webviewDebuggingEnabled: webViewDebuggingEnabled,
|
|
139501
139721
|
thirdPartyCookiesEnabled: true,
|
|
139502
139722
|
onMessage: handler.onMessage,
|
|
139503
139723
|
injectedJavaScript: import_user_scripts.afterDocumentLoad,
|
|
139504
139724
|
injectedJavaScriptBeforeContentLoaded: [handler.injectedJavaScript, import_user_scripts.beforeDocumentLoad].join("\n"),
|
|
139505
|
-
decelerationRate:
|
|
139725
|
+
decelerationRate: import_react_native42.Platform.OS === "ios" ? 1 : void 0,
|
|
139506
139726
|
allowsBackForwardNavigationGestures,
|
|
139507
139727
|
onShouldStartLoadWithRequest: event => {
|
|
139508
139728
|
try {
|
|
@@ -139510,7 +139730,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139510
139730
|
if (["https:", "http:"].includes(url2.protocol) || url2.href === "about:blank") {
|
|
139511
139731
|
return true;
|
|
139512
139732
|
} else {
|
|
139513
|
-
|
|
139733
|
+
import_react_native42.Linking.openURL(convertIntentURL(url2) ?? url2.href);
|
|
139514
139734
|
return false;
|
|
139515
139735
|
}
|
|
139516
139736
|
} catch (error) {
|
|
@@ -139524,13 +139744,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139524
139744
|
});
|
|
139525
139745
|
}
|
|
139526
139746
|
__reExport(src_exports, _$$_REQUIRE(_dependencyMap[4], "@apps-in-toss/analytics"), module.exports);
|
|
139527
|
-
var
|
|
139747
|
+
var import_private5 = _$$_REQUIRE(_dependencyMap[12], "@toss/tds-react-native/private");
|
|
139528
139748
|
__reExport(src_exports, _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules"), module.exports);
|
|
139529
|
-
__reExport(src_exports, _$$_REQUIRE(_dependencyMap[
|
|
139530
|
-
var import_types = _$$_REQUIRE(_dependencyMap[
|
|
139531
|
-
var
|
|
139532
|
-
var
|
|
139533
|
-
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");
|
|
139534
139754
|
var SDK_ID = "106";
|
|
139535
139755
|
var LIST_BANNER_STYLE_ID = "1";
|
|
139536
139756
|
var NATIVE_IMAGE_STYLE_ID = "2";
|
|
@@ -139808,7 +140028,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139808
140028
|
});
|
|
139809
140029
|
return _loadAd.apply(this, arguments);
|
|
139810
140030
|
}
|
|
139811
|
-
var
|
|
140031
|
+
var import_react_native43 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
139812
140032
|
function isSafeUrl(url) {
|
|
139813
140033
|
try {
|
|
139814
140034
|
var parsed = new URL(url);
|
|
@@ -139824,7 +140044,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139824
140044
|
return;
|
|
139825
140045
|
}
|
|
139826
140046
|
try {
|
|
139827
|
-
(0,
|
|
140047
|
+
(0, import_react_native43.openURL)(getWebSchemeOrUri(url));
|
|
139828
140048
|
} catch (error) {
|
|
139829
140049
|
console.error("[InlineAd] Failed to open landing URL:", error);
|
|
139830
140050
|
}
|
|
@@ -139931,10 +140151,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139931
140151
|
}()
|
|
139932
140152
|
}]);
|
|
139933
140153
|
}();
|
|
139934
|
-
var
|
|
139935
|
-
var
|
|
139936
|
-
var
|
|
139937
|
-
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");
|
|
139938
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";
|
|
139939
140159
|
function FeedBannerAdView({
|
|
139940
140160
|
brandName,
|
|
@@ -139946,17 +140166,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139946
140166
|
ctaTextColor,
|
|
139947
140167
|
ctaBackgroundColor,
|
|
139948
140168
|
adClearanceText,
|
|
139949
|
-
colors,
|
|
140169
|
+
colors: colors4,
|
|
139950
140170
|
isAdBadgeEnabled,
|
|
139951
140171
|
paddingStyle,
|
|
139952
140172
|
onPress
|
|
139953
140173
|
}) {
|
|
139954
|
-
var scale = (0,
|
|
140174
|
+
var scale = (0, import_react28.useRef)(new import_react_native44.Animated.Value(1)).current;
|
|
139955
140175
|
var animateScale = toValue => {
|
|
139956
|
-
|
|
140176
|
+
import_react_native44.Animated.timing(scale, {
|
|
139957
140177
|
toValue,
|
|
139958
140178
|
duration: 100,
|
|
139959
|
-
easing:
|
|
140179
|
+
easing: import_react_native44.Easing.inOut(import_react_native44.Easing.ease),
|
|
139960
140180
|
useNativeDriver: true
|
|
139961
140181
|
}).start();
|
|
139962
140182
|
};
|
|
@@ -139968,107 +140188,107 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139968
140188
|
};
|
|
139969
140189
|
var resolvedCtaBackground = ctaBackgroundColor ?? "#3081F9";
|
|
139970
140190
|
var resolvedCtaTextColor = ctaTextColor ?? "#ffffff";
|
|
139971
|
-
return (0,
|
|
140191
|
+
return (0, import_jsx_runtime25.jsx)(import_react_native44.Pressable, {
|
|
139972
140192
|
accessibilityRole: "button",
|
|
139973
140193
|
onPress: () => onPress(null),
|
|
139974
140194
|
onPressIn: handlePressIn,
|
|
139975
140195
|
onPressOut: handlePressOut,
|
|
139976
140196
|
style: styles.pressable,
|
|
139977
|
-
children: (0,
|
|
140197
|
+
children: (0, import_jsx_runtime25.jsxs)(import_react_native44.Animated.View, {
|
|
139978
140198
|
style: [styles.container, paddingStyle, {
|
|
139979
140199
|
transform: [{
|
|
139980
140200
|
scale
|
|
139981
140201
|
}]
|
|
139982
140202
|
}],
|
|
139983
|
-
children: [(0,
|
|
140203
|
+
children: [(0, import_jsx_runtime25.jsxs)(import_react_native44.View, {
|
|
139984
140204
|
style: styles.profileContainer,
|
|
139985
|
-
children: [(0,
|
|
140205
|
+
children: [(0, import_jsx_runtime25.jsxs)(import_react_native44.View, {
|
|
139986
140206
|
style: styles.brandArea,
|
|
139987
|
-
children: [(0,
|
|
140207
|
+
children: [(0, import_jsx_runtime25.jsx)(import_react_native44.Pressable, {
|
|
139988
140208
|
accessibilityRole: "button",
|
|
139989
140209
|
onPress: () => onPress("202"),
|
|
139990
140210
|
onPressIn: handlePressIn,
|
|
139991
140211
|
onPressOut: handlePressOut,
|
|
139992
140212
|
style: styles.logoContainer,
|
|
139993
|
-
children: (0,
|
|
140213
|
+
children: (0, import_jsx_runtime25.jsxs)(import_react_native44.View, {
|
|
139994
140214
|
style: [styles.logoWrapper, {
|
|
139995
|
-
backgroundColor:
|
|
140215
|
+
backgroundColor: colors4.brandLogoBg
|
|
139996
140216
|
}],
|
|
139997
|
-
children: [brandLogoUri ? (0,
|
|
140217
|
+
children: [brandLogoUri ? (0, import_jsx_runtime25.jsx)(import_react_native44.Image, {
|
|
139998
140218
|
source: {
|
|
139999
140219
|
uri: brandLogoUri
|
|
140000
140220
|
},
|
|
140001
140221
|
style: styles.logoImage,
|
|
140002
140222
|
resizeMode: "cover"
|
|
140003
|
-
}) : null, (0,
|
|
140223
|
+
}) : null, (0, import_jsx_runtime25.jsx)(import_react_native44.View, {
|
|
140004
140224
|
style: [styles.logoOverlay, {
|
|
140005
|
-
borderColor:
|
|
140225
|
+
borderColor: colors4.brandLogoBorder
|
|
140006
140226
|
}]
|
|
140007
140227
|
})]
|
|
140008
140228
|
})
|
|
140009
|
-
}), (0,
|
|
140229
|
+
}), (0, import_jsx_runtime25.jsxs)(import_react_native44.View, {
|
|
140010
140230
|
style: styles.brandTextContainer,
|
|
140011
|
-
children: [(0,
|
|
140231
|
+
children: [(0, import_jsx_runtime25.jsx)(import_react_native44.Pressable, {
|
|
140012
140232
|
accessibilityRole: "button",
|
|
140013
140233
|
onPress: () => onPress("103"),
|
|
140014
140234
|
onPressIn: handlePressIn,
|
|
140015
140235
|
onPressOut: handlePressOut,
|
|
140016
|
-
children: (0,
|
|
140236
|
+
children: (0, import_jsx_runtime25.jsx)(import_react_native44.Text, {
|
|
140017
140237
|
allowFontScaling: false,
|
|
140018
140238
|
numberOfLines: 1,
|
|
140019
140239
|
style: [styles.brandName, {
|
|
140020
|
-
color:
|
|
140240
|
+
color: colors4.brandName
|
|
140021
140241
|
}],
|
|
140022
140242
|
children: brandName
|
|
140023
140243
|
})
|
|
140024
|
-
}), isAdBadgeEnabled ? (0,
|
|
140244
|
+
}), isAdBadgeEnabled ? (0, import_jsx_runtime25.jsx)(import_react_native44.Text, {
|
|
140025
140245
|
allowFontScaling: false,
|
|
140026
140246
|
numberOfLines: 1,
|
|
140027
140247
|
style: [styles.adBadge, {
|
|
140028
|
-
color:
|
|
140248
|
+
color: colors4.adBadge
|
|
140029
140249
|
}],
|
|
140030
140250
|
children: "\uAD11\uACE0"
|
|
140031
140251
|
}) : null]
|
|
140032
140252
|
})]
|
|
140033
|
-
}), (0,
|
|
140253
|
+
}), (0, import_jsx_runtime25.jsxs)(import_react_native44.View, {
|
|
140034
140254
|
style: styles.textArea,
|
|
140035
|
-
children: [(0,
|
|
140255
|
+
children: [(0, import_jsx_runtime25.jsx)(import_react_native44.Pressable, {
|
|
140036
140256
|
accessibilityRole: "button",
|
|
140037
140257
|
onPress: () => onPress("101"),
|
|
140038
140258
|
onPressIn: handlePressIn,
|
|
140039
140259
|
onPressOut: handlePressOut,
|
|
140040
|
-
children: (0,
|
|
140260
|
+
children: (0, import_jsx_runtime25.jsx)(import_react_native44.Text, {
|
|
140041
140261
|
allowFontScaling: false,
|
|
140042
140262
|
style: [styles.title, {
|
|
140043
|
-
color:
|
|
140263
|
+
color: colors4.title
|
|
140044
140264
|
}],
|
|
140045
140265
|
children: title
|
|
140046
140266
|
})
|
|
140047
|
-
}), (0,
|
|
140267
|
+
}), (0, import_jsx_runtime25.jsx)(import_react_native44.Pressable, {
|
|
140048
140268
|
accessibilityRole: "button",
|
|
140049
140269
|
onPress: () => onPress("102"),
|
|
140050
140270
|
onPressIn: handlePressIn,
|
|
140051
140271
|
onPressOut: handlePressOut,
|
|
140052
|
-
children: (0,
|
|
140272
|
+
children: (0, import_jsx_runtime25.jsx)(import_react_native44.Text, {
|
|
140053
140273
|
allowFontScaling: false,
|
|
140054
140274
|
style: [styles.subtitle, {
|
|
140055
|
-
color:
|
|
140275
|
+
color: colors4.subtitle
|
|
140056
140276
|
}],
|
|
140057
140277
|
children: subtitle
|
|
140058
140278
|
})
|
|
140059
140279
|
})]
|
|
140060
140280
|
})]
|
|
140061
|
-
}), (0,
|
|
140281
|
+
}), (0, import_jsx_runtime25.jsxs)(import_react_native44.View, {
|
|
140062
140282
|
style: styles.card,
|
|
140063
|
-
children: [(0,
|
|
140283
|
+
children: [(0, import_jsx_runtime25.jsx)(import_react_native44.Pressable, {
|
|
140064
140284
|
accessibilityRole: "button",
|
|
140065
140285
|
onPress: () => onPress("201"),
|
|
140066
140286
|
onPressIn: handlePressIn,
|
|
140067
140287
|
onPressOut: handlePressOut,
|
|
140068
140288
|
style: styles.imageButton,
|
|
140069
|
-
children: (0,
|
|
140289
|
+
children: (0, import_jsx_runtime25.jsx)(import_react_native44.View, {
|
|
140070
140290
|
style: styles.imageContainer,
|
|
140071
|
-
children: mainImageUri ? (0,
|
|
140291
|
+
children: mainImageUri ? (0, import_jsx_runtime25.jsx)(import_react_native44.Image, {
|
|
140072
140292
|
source: {
|
|
140073
140293
|
uri: mainImageUri
|
|
140074
140294
|
},
|
|
@@ -140076,7 +140296,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140076
140296
|
resizeMode: "cover"
|
|
140077
140297
|
}) : null
|
|
140078
140298
|
})
|
|
140079
|
-
}), (0,
|
|
140299
|
+
}), (0, import_jsx_runtime25.jsxs)(import_react_native44.Pressable, {
|
|
140080
140300
|
accessibilityRole: "button",
|
|
140081
140301
|
onPress: () => onPress("0"),
|
|
140082
140302
|
onPressIn: handlePressIn,
|
|
@@ -140084,37 +140304,37 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140084
140304
|
style: [styles.cta, {
|
|
140085
140305
|
backgroundColor: resolvedCtaBackground
|
|
140086
140306
|
}],
|
|
140087
|
-
children: [(0,
|
|
140307
|
+
children: [(0, import_jsx_runtime25.jsx)(import_react_native44.Text, {
|
|
140088
140308
|
allowFontScaling: false,
|
|
140089
140309
|
style: [styles.ctaText, {
|
|
140090
140310
|
color: resolvedCtaTextColor
|
|
140091
140311
|
}],
|
|
140092
140312
|
children: ctaText
|
|
140093
|
-
}), (0,
|
|
140313
|
+
}), (0, import_jsx_runtime25.jsx)(import_react_native_svg2.Svg, {
|
|
140094
140314
|
width: 20,
|
|
140095
140315
|
height: 20,
|
|
140096
140316
|
viewBox: "0 0 24 24",
|
|
140097
|
-
children: (0,
|
|
140317
|
+
children: (0, import_jsx_runtime25.jsx)(import_react_native_svg2.Path, {
|
|
140098
140318
|
d: ARROW_PATH,
|
|
140099
140319
|
fill: resolvedCtaTextColor
|
|
140100
140320
|
})
|
|
140101
140321
|
})]
|
|
140102
|
-
}), (0,
|
|
140322
|
+
}), (0, import_jsx_runtime25.jsx)(import_react_native44.View, {
|
|
140103
140323
|
style: [styles.cardOverlay, {
|
|
140104
|
-
borderColor:
|
|
140324
|
+
borderColor: colors4.imageOverlayBorder
|
|
140105
140325
|
}]
|
|
140106
140326
|
})]
|
|
140107
|
-
}), adClearanceText ? (0,
|
|
140327
|
+
}), adClearanceText ? (0, import_jsx_runtime25.jsx)(import_react_native44.Text, {
|
|
140108
140328
|
allowFontScaling: false,
|
|
140109
140329
|
style: [styles.adClearance, {
|
|
140110
|
-
color:
|
|
140330
|
+
color: colors4.adClearance
|
|
140111
140331
|
}],
|
|
140112
140332
|
children: adClearanceText
|
|
140113
140333
|
}) : null]
|
|
140114
140334
|
})
|
|
140115
140335
|
});
|
|
140116
140336
|
}
|
|
140117
|
-
var styles =
|
|
140337
|
+
var styles = import_react_native44.StyleSheet.create({
|
|
140118
140338
|
pressable: {
|
|
140119
140339
|
width: "100%"
|
|
140120
140340
|
},
|
|
@@ -140153,7 +140373,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140153
140373
|
borderRadius: 18
|
|
140154
140374
|
},
|
|
140155
140375
|
logoOverlay: {
|
|
140156
|
-
...
|
|
140376
|
+
...import_react_native44.StyleSheet.absoluteFillObject,
|
|
140157
140377
|
borderWidth: 1,
|
|
140158
140378
|
borderRadius: 18
|
|
140159
140379
|
},
|
|
@@ -140216,7 +140436,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140216
140436
|
lineHeight: 22.5
|
|
140217
140437
|
},
|
|
140218
140438
|
cardOverlay: {
|
|
140219
|
-
...
|
|
140439
|
+
...import_react_native44.StyleSheet.absoluteFillObject,
|
|
140220
140440
|
borderWidth: 2,
|
|
140221
140441
|
borderRadius: 12,
|
|
140222
140442
|
pointerEvents: "none"
|
|
@@ -140227,10 +140447,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140227
140447
|
fontWeight: "400"
|
|
140228
140448
|
}
|
|
140229
140449
|
});
|
|
140230
|
-
var
|
|
140231
|
-
var
|
|
140232
|
-
var
|
|
140233
|
-
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");
|
|
140234
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";
|
|
140235
140455
|
function ListBannerAdView({
|
|
140236
140456
|
title,
|
|
@@ -140239,16 +140459,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140239
140459
|
adClearanceFontSize,
|
|
140240
140460
|
imageUri,
|
|
140241
140461
|
paddingStyle,
|
|
140242
|
-
colors,
|
|
140462
|
+
colors: colors4,
|
|
140243
140463
|
onPress
|
|
140244
140464
|
}) {
|
|
140245
|
-
var scale = (0,
|
|
140246
|
-
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)}`);
|
|
140247
140467
|
var animateScale = toValue => {
|
|
140248
|
-
|
|
140468
|
+
import_react_native45.Animated.timing(scale, {
|
|
140249
140469
|
toValue,
|
|
140250
140470
|
duration: 100,
|
|
140251
|
-
easing:
|
|
140471
|
+
easing: import_react_native45.Easing.inOut(import_react_native45.Easing.ease),
|
|
140252
140472
|
useNativeDriver: true
|
|
140253
140473
|
}).start();
|
|
140254
140474
|
};
|
|
@@ -140258,41 +140478,41 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140258
140478
|
var handlePressOut = () => {
|
|
140259
140479
|
animateScale(1);
|
|
140260
140480
|
};
|
|
140261
|
-
return (0,
|
|
140481
|
+
return (0, import_jsx_runtime26.jsx)(import_react_native45.Pressable, {
|
|
140262
140482
|
accessibilityRole: "button",
|
|
140263
140483
|
onPress: () => onPress(null),
|
|
140264
140484
|
onPressIn: handlePressIn,
|
|
140265
140485
|
onPressOut: handlePressOut,
|
|
140266
140486
|
style: styles2.pressable,
|
|
140267
|
-
children: (0,
|
|
140487
|
+
children: (0, import_jsx_runtime26.jsxs)(import_react_native45.Animated.View, {
|
|
140268
140488
|
style: [styles2.container, paddingStyle, {
|
|
140269
140489
|
transform: [{
|
|
140270
140490
|
scale
|
|
140271
140491
|
}]
|
|
140272
140492
|
}],
|
|
140273
|
-
children: [(0,
|
|
140493
|
+
children: [(0, import_jsx_runtime26.jsxs)(import_react_native45.View, {
|
|
140274
140494
|
style: styles2.titleRow,
|
|
140275
|
-
children: [(0,
|
|
140495
|
+
children: [(0, import_jsx_runtime26.jsx)(import_react_native45.Pressable, {
|
|
140276
140496
|
accessibilityRole: "button",
|
|
140277
140497
|
onPress: () => onPress("202"),
|
|
140278
140498
|
onPressIn: handlePressIn,
|
|
140279
140499
|
onPressOut: handlePressOut,
|
|
140280
140500
|
style: styles2.iconWrapper,
|
|
140281
|
-
children: (0,
|
|
140501
|
+
children: (0, import_jsx_runtime26.jsxs)(import_react_native_svg3.Svg, {
|
|
140282
140502
|
width: 36,
|
|
140283
140503
|
height: 36,
|
|
140284
140504
|
viewBox: "0 0 36 36",
|
|
140285
|
-
children: [(0,
|
|
140286
|
-
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, {
|
|
140287
140507
|
id: clipIdRef.current,
|
|
140288
|
-
children: (0,
|
|
140508
|
+
children: (0, import_jsx_runtime26.jsx)(import_react_native_svg3.Path, {
|
|
140289
140509
|
d: SQUIRCLE_PATH
|
|
140290
140510
|
})
|
|
140291
140511
|
})
|
|
140292
|
-
}), (0,
|
|
140512
|
+
}), (0, import_jsx_runtime26.jsx)(import_react_native_svg3.Path, {
|
|
140293
140513
|
d: SQUIRCLE_PATH,
|
|
140294
|
-
fill:
|
|
140295
|
-
}), imageUri ? (0,
|
|
140514
|
+
fill: colors4.iconBg
|
|
140515
|
+
}), imageUri ? (0, import_jsx_runtime26.jsx)(import_react_native_svg3.Image, {
|
|
140296
140516
|
href: {
|
|
140297
140517
|
uri: imageUri
|
|
140298
140518
|
},
|
|
@@ -140300,46 +140520,46 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140300
140520
|
height: 36,
|
|
140301
140521
|
preserveAspectRatio: "xMidYMid slice",
|
|
140302
140522
|
clipPath: `url(#${clipIdRef.current})`
|
|
140303
|
-
}) : null, (0,
|
|
140523
|
+
}) : null, (0, import_jsx_runtime26.jsx)(import_react_native_svg3.Path, {
|
|
140304
140524
|
d: SQUIRCLE_PATH,
|
|
140305
140525
|
fill: "none",
|
|
140306
|
-
stroke:
|
|
140526
|
+
stroke: colors4.iconBorder,
|
|
140307
140527
|
strokeWidth: 2,
|
|
140308
140528
|
clipPath: `url(#${clipIdRef.current})`
|
|
140309
140529
|
})]
|
|
140310
140530
|
})
|
|
140311
|
-
}), (0,
|
|
140531
|
+
}), (0, import_jsx_runtime26.jsxs)(import_react_native45.View, {
|
|
140312
140532
|
style: styles2.textWrapper,
|
|
140313
|
-
children: [(0,
|
|
140533
|
+
children: [(0, import_jsx_runtime26.jsx)(import_react_native45.Pressable, {
|
|
140314
140534
|
accessibilityRole: "button",
|
|
140315
140535
|
onPress: () => onPress("101"),
|
|
140316
140536
|
onPressIn: handlePressIn,
|
|
140317
140537
|
onPressOut: handlePressOut,
|
|
140318
|
-
children: (0,
|
|
140538
|
+
children: (0, import_jsx_runtime26.jsx)(import_react_native45.Text, {
|
|
140319
140539
|
allowFontScaling: false,
|
|
140320
140540
|
style: [styles2.title, {
|
|
140321
|
-
color:
|
|
140541
|
+
color: colors4.title
|
|
140322
140542
|
}],
|
|
140323
140543
|
children: title
|
|
140324
140544
|
})
|
|
140325
|
-
}), (0,
|
|
140545
|
+
}), (0, import_jsx_runtime26.jsx)(import_react_native45.Pressable, {
|
|
140326
140546
|
accessibilityRole: "button",
|
|
140327
140547
|
onPress: () => onPress("102"),
|
|
140328
140548
|
onPressIn: handlePressIn,
|
|
140329
140549
|
onPressOut: handlePressOut,
|
|
140330
|
-
children: (0,
|
|
140550
|
+
children: (0, import_jsx_runtime26.jsx)(import_react_native45.Text, {
|
|
140331
140551
|
allowFontScaling: false,
|
|
140332
140552
|
style: [styles2.subtitle, {
|
|
140333
|
-
color:
|
|
140553
|
+
color: colors4.subtitle
|
|
140334
140554
|
}],
|
|
140335
140555
|
children: subtitle
|
|
140336
140556
|
})
|
|
140337
140557
|
})]
|
|
140338
140558
|
})]
|
|
140339
|
-
}), adClearanceText ? (0,
|
|
140559
|
+
}), adClearanceText ? (0, import_jsx_runtime26.jsx)(import_react_native45.Text, {
|
|
140340
140560
|
allowFontScaling: false,
|
|
140341
140561
|
style: [styles2.adClearance, {
|
|
140342
|
-
color:
|
|
140562
|
+
color: colors4.adClearance,
|
|
140343
140563
|
fontSize: adClearanceFontSize,
|
|
140344
140564
|
lineHeight: adClearanceFontSize * 1.2
|
|
140345
140565
|
}],
|
|
@@ -140348,7 +140568,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140348
140568
|
})
|
|
140349
140569
|
});
|
|
140350
140570
|
}
|
|
140351
|
-
var styles2 =
|
|
140571
|
+
var styles2 = import_react_native45.StyleSheet.create({
|
|
140352
140572
|
pressable: {
|
|
140353
140573
|
width: "100%"
|
|
140354
140574
|
},
|
|
@@ -140474,7 +140694,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140474
140694
|
adMetadata: {}
|
|
140475
140695
|
};
|
|
140476
140696
|
}
|
|
140477
|
-
var
|
|
140697
|
+
var import_jsx_runtime27 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
140478
140698
|
var themePalette = {
|
|
140479
140699
|
light: {
|
|
140480
140700
|
title: "#4e5968",
|
|
@@ -140556,27 +140776,27 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140556
140776
|
onAdImpression = props.onAdImpression,
|
|
140557
140777
|
onAdFailedToRender = props.onAdFailedToRender,
|
|
140558
140778
|
onNoFill = props.onNoFill;
|
|
140559
|
-
var slotIdRef = (0,
|
|
140560
|
-
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),
|
|
140561
140785
|
_ref51 = _slicedToArray(_ref50, 2),
|
|
140562
|
-
|
|
140563
|
-
|
|
140564
|
-
var
|
|
140565
|
-
|
|
140566
|
-
|
|
140567
|
-
|
|
140568
|
-
var
|
|
140569
|
-
var
|
|
140570
|
-
var
|
|
140571
|
-
var
|
|
140572
|
-
var
|
|
140573
|
-
var
|
|
140574
|
-
var
|
|
140575
|
-
var
|
|
140576
|
-
var lastImp1pxAtRef = (0, import_react29.useRef)(null);
|
|
140577
|
-
var loadingRef = (0, import_react29.useRef)(false);
|
|
140578
|
-
var loadRef = (0, import_react29.useRef)(null);
|
|
140579
|
-
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)({
|
|
140580
140800
|
onAdRendered,
|
|
140581
140801
|
onAdViewable,
|
|
140582
140802
|
onAdClicked,
|
|
@@ -140584,13 +140804,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140584
140804
|
onAdFailedToRender,
|
|
140585
140805
|
onNoFill
|
|
140586
140806
|
});
|
|
140587
|
-
var isMountedRef = (0,
|
|
140588
|
-
var colorScheme = (0,
|
|
140807
|
+
var isMountedRef = (0, import_react30.useRef)(false);
|
|
140808
|
+
var colorScheme = (0, import_react_native47.useColorScheme)();
|
|
140589
140809
|
var selectedTheme = theme ?? DEFAULT_INLINE_AD_THEME;
|
|
140590
140810
|
var resolvedTheme = selectedTheme === "auto" ? colorScheme === "dark" ? "dark" : "light" : selectedTheme;
|
|
140591
140811
|
var resolvedTone = tone ?? DEFAULT_INLINE_AD_TONE;
|
|
140592
140812
|
var resolvedVariant = variant ?? DEFAULT_INLINE_AD_VARIANT;
|
|
140593
|
-
var
|
|
140813
|
+
var colors4 = themePalette[resolvedTheme];
|
|
140594
140814
|
var feedColors = feedThemePalette[resolvedTheme];
|
|
140595
140815
|
var backgroundColor = resolvedTone === "grey" ? resolvedTheme === "dark" ? "#101013" : "#f2f4f7" : resolvedTheme === "dark" ? "#17171c" : "#ffffff";
|
|
140596
140816
|
callbacksRef.current = {
|
|
@@ -140601,7 +140821,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140601
140821
|
onAdFailedToRender,
|
|
140602
140822
|
onNoFill
|
|
140603
140823
|
};
|
|
140604
|
-
(0,
|
|
140824
|
+
(0, import_react30.useEffect)(() => {
|
|
140605
140825
|
isMountedRef.current = true;
|
|
140606
140826
|
return () => {
|
|
140607
140827
|
isMountedRef.current = false;
|
|
@@ -140611,7 +140831,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140611
140831
|
}
|
|
140612
140832
|
};
|
|
140613
140833
|
}, []);
|
|
140614
|
-
(0,
|
|
140834
|
+
(0, import_react30.useEffect)(() => {
|
|
140615
140835
|
var normalizedAdGroupId = normalizeAdGroupId(adGroupId);
|
|
140616
140836
|
var loadAdRequest = () => {
|
|
140617
140837
|
if (loadingRef.current) {
|
|
@@ -140669,7 +140889,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140669
140889
|
loadRef.current = null;
|
|
140670
140890
|
};
|
|
140671
140891
|
}, [adGroupId]);
|
|
140672
|
-
(0,
|
|
140892
|
+
(0, import_react_native46.useVisibilityChange)(documentVisibility => {
|
|
140673
140893
|
if (documentVisibility !== "visible") {
|
|
140674
140894
|
return;
|
|
140675
140895
|
}
|
|
@@ -140682,7 +140902,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140682
140902
|
loadRef.current?.();
|
|
140683
140903
|
}
|
|
140684
140904
|
});
|
|
140685
|
-
(0,
|
|
140905
|
+
(0, import_react30.useEffect)(() => {
|
|
140686
140906
|
if (!ad || hasRenderedRef.current) {
|
|
140687
140907
|
return;
|
|
140688
140908
|
}
|
|
@@ -140767,36 +140987,36 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140767
140987
|
callbacksRef.current.onAdClicked?.(basePayload);
|
|
140768
140988
|
}
|
|
140769
140989
|
};
|
|
140770
|
-
return (0,
|
|
140990
|
+
return (0, import_jsx_runtime27.jsx)(import_react_native46.ImpressionArea, {
|
|
140771
140991
|
style: styles3.impressionArea,
|
|
140772
140992
|
onImpressionStart: handleImpression1px,
|
|
140773
140993
|
areaThreshold: 0,
|
|
140774
140994
|
UNSAFE__impressFallbackOnMount: Boolean(impressFallbackOnMount),
|
|
140775
|
-
children: (0,
|
|
140995
|
+
children: (0, import_jsx_runtime27.jsx)(import_react_native46.ImpressionArea, {
|
|
140776
140996
|
onImpressionStart: handleImpression100p,
|
|
140777
140997
|
areaThreshold: 1,
|
|
140778
140998
|
UNSAFE__impressFallbackOnMount: Boolean(impressFallbackOnMount),
|
|
140779
|
-
children: (0,
|
|
140999
|
+
children: (0, import_jsx_runtime27.jsx)(import_react_native46.ImpressionArea, {
|
|
140780
141000
|
onImpressionStart: handleViewableStart,
|
|
140781
141001
|
onImpressionEnd: handleViewableEnd,
|
|
140782
141002
|
areaThreshold: 0.5,
|
|
140783
141003
|
UNSAFE__impressFallbackOnMount: Boolean(impressFallbackOnMount),
|
|
140784
|
-
children: (0,
|
|
141004
|
+
children: (0, import_jsx_runtime27.jsx)(import_react_native47.View, {
|
|
140785
141005
|
style: [styles3.wrapper, resolvedVariant === "card" && styles3.cardWrapper],
|
|
140786
|
-
children: (0,
|
|
141006
|
+
children: (0, import_jsx_runtime27.jsxs)(import_react_native47.View, {
|
|
140787
141007
|
style: [styles3.surface, {
|
|
140788
141008
|
backgroundColor
|
|
140789
141009
|
}, resolvedVariant === "card" && styles3.cardSurface],
|
|
140790
|
-
children: [isListBanner && listCreative ? (0,
|
|
141010
|
+
children: [isListBanner && listCreative ? (0, import_jsx_runtime27.jsx)(ListBannerAdView, {
|
|
140791
141011
|
title: listCreative.title,
|
|
140792
141012
|
subtitle: subtitleText,
|
|
140793
141013
|
adClearanceText,
|
|
140794
141014
|
adClearanceFontSize,
|
|
140795
141015
|
imageUri,
|
|
140796
141016
|
paddingStyle,
|
|
140797
|
-
colors,
|
|
141017
|
+
colors: colors4,
|
|
140798
141018
|
onPress: handleClick
|
|
140799
|
-
}) : null, isFeedBanner && feedCreative ? (0,
|
|
141019
|
+
}) : null, isFeedBanner && feedCreative ? (0, import_jsx_runtime27.jsx)(FeedBannerAdView, {
|
|
140800
141020
|
brandName: feedCreative.brandName,
|
|
140801
141021
|
brandLogoUri,
|
|
140802
141022
|
title: feedCreative.title,
|
|
@@ -140817,7 +141037,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140817
141037
|
})
|
|
140818
141038
|
}, impressionKey);
|
|
140819
141039
|
}
|
|
140820
|
-
var styles3 =
|
|
141040
|
+
var styles3 = import_react_native47.StyleSheet.create({
|
|
140821
141041
|
impressionArea: {
|
|
140822
141042
|
width: "100%"
|
|
140823
141043
|
},
|
|
@@ -140861,9 +141081,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140861
141081
|
useWaitForReturnNavigator,
|
|
140862
141082
|
..._$$_REQUIRE(_dependencyMap[4], "@apps-in-toss/analytics"),
|
|
140863
141083
|
..._$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules"),
|
|
140864
|
-
..._$$_REQUIRE(_dependencyMap[
|
|
141084
|
+
..._$$_REQUIRE(_dependencyMap[20], "@apps-in-toss/types")
|
|
140865
141085
|
});
|
|
140866
|
-
},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");
|
|
140867
141087
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
140868
141088
|
"use strict";
|
|
140869
141089
|
|