@apps-in-toss/web-framework 0.0.30 → 0.0.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/prebuilt/dev.android.js +1045 -362
- package/dist/prebuilt/dev.ios.js +1045 -362
- package/dist/prebuilt/prod.android.js +2174 -544
- package/dist/prebuilt/prod.ios.js +2176 -546
- package/dist/prebuilt/prod.json +4 -4
- package/package.json +8 -8
- package/dist/cli/chunk-34QS4NNF.js +0 -173587
- package/dist/cli/chunk-HDRFXOPA.js +0 -63
- package/dist/cli/chunk-RUDG2MMT.js +0 -173587
- package/dist/cli/lib-NMFBQRQ2.js +0 -1007
- package/dist/cli/typescript-THSIDFIK.js +0 -6
- package/dist/cli/typescript-YVXHBAAI.js +0 -6
|
@@ -21559,14 +21559,14 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
21559
21559
|
// ../../.yarn/cache/@toss-design-system-spring-easing-npm-0.0.1-e5bc41bd72-fa9b42ff5e.zip/node_modules/@toss-design-system/spring-easing/dist/esm/getSpringEasing.js
|
|
21560
21560
|
function getSpringEasing(param) {
|
|
21561
21561
|
var _param_stiffness = param.stiffness, stiffness = _param_stiffness === void 0 ? 100 : _param_stiffness, _param_damping = param.damping, damping = _param_damping === void 0 ? 10 : _param_damping, _param_mass = param.mass, mass = _param_mass === void 0 ? 1 : _param_mass, _param_velocity = param.velocity, velocity = _param_velocity === void 0 ? 0 : _param_velocity;
|
|
21562
|
-
var
|
|
21562
|
+
var spring5 = new Spring({
|
|
21563
21563
|
stiffness,
|
|
21564
21564
|
damping,
|
|
21565
21565
|
mass,
|
|
21566
21566
|
velocity
|
|
21567
21567
|
});
|
|
21568
|
-
var duration =
|
|
21569
|
-
var easeFunction =
|
|
21568
|
+
var duration = spring5.totalDuration;
|
|
21569
|
+
var easeFunction = spring5.getEaseFunction();
|
|
21570
21570
|
return {
|
|
21571
21571
|
duration,
|
|
21572
21572
|
easeFunction
|
|
@@ -21636,8 +21636,8 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
21636
21636
|
}
|
|
21637
21637
|
};
|
|
21638
21638
|
springEaseWithDuration = Object.fromEntries(Object.entries(spring).map(function(param) {
|
|
21639
|
-
var _param = _sliced_to_array(param, 2), springType = _param[0],
|
|
21640
|
-
var springEasing = getSpringEasing(
|
|
21639
|
+
var _param = _sliced_to_array(param, 2), springType = _param[0], spring5 = _param[1];
|
|
21640
|
+
var springEasing = getSpringEasing(spring5);
|
|
21641
21641
|
return [
|
|
21642
21642
|
springType,
|
|
21643
21643
|
_object_spread_props(_object_spread({}, springEasing), {
|
|
@@ -30695,7 +30695,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
30695
30695
|
};
|
|
30696
30696
|
overlay.open(function(param2) {
|
|
30697
30697
|
var isOpen = param2.isOpen, exit = param2.exit, close = param2.close;
|
|
30698
|
-
var
|
|
30698
|
+
var overlayStyle2 = function() {
|
|
30699
30699
|
if (placement === "bottom-start") {
|
|
30700
30700
|
var _targetLayout_LayoutKey_pageY, _targetLayout_LayoutKey_height;
|
|
30701
30701
|
return {
|
|
@@ -30729,7 +30729,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
30729
30729
|
children: isOpen ? (0, import_jsx_runtime103.jsx)(FloatingOverlay, {
|
|
30730
30730
|
ref: dropdownTmpRef,
|
|
30731
30731
|
style: [
|
|
30732
|
-
|
|
30732
|
+
overlayStyle2
|
|
30733
30733
|
],
|
|
30734
30734
|
placement,
|
|
30735
30735
|
children: dropdown
|
|
@@ -32680,9 +32680,289 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
32680
32680
|
}
|
|
32681
32681
|
});
|
|
32682
32682
|
|
|
32683
|
+
// ../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/components/loader/Loader.js
|
|
32684
|
+
function _Loader(param) {
|
|
32685
|
+
var _param_size = param.size, size = _param_size === void 0 ? DEFAULT_PROPS.size : _param_size, _param_type = param.type, type = _param_type === void 0 ? DEFAULT_PROPS.type : _param_type, customStrokeColor = param.customStrokeColor, customSize = param.customSize;
|
|
32686
|
+
var rotationRef = (0, import_react123.useRef)(new import_react_native102.Animated.Value(0)).current;
|
|
32687
|
+
var turnRef = (0, import_react123.useRef)(new import_react_native102.Animated.Value(0)).current;
|
|
32688
|
+
var progressRef = (0, import_react123.useRef)(new import_react_native102.Animated.Value(0)).current;
|
|
32689
|
+
var rotationAnim = rotationRef.interpolate({
|
|
32690
|
+
inputRange: [
|
|
32691
|
+
0,
|
|
32692
|
+
1
|
|
32693
|
+
],
|
|
32694
|
+
outputRange: [
|
|
32695
|
+
"0deg",
|
|
32696
|
+
"360deg"
|
|
32697
|
+
]
|
|
32698
|
+
});
|
|
32699
|
+
var circleAnim = progressRef.interpolate({
|
|
32700
|
+
inputRange: [
|
|
32701
|
+
0,
|
|
32702
|
+
1,
|
|
32703
|
+
2
|
|
32704
|
+
],
|
|
32705
|
+
outputRange: [
|
|
32706
|
+
180,
|
|
32707
|
+
45,
|
|
32708
|
+
180
|
|
32709
|
+
]
|
|
32710
|
+
});
|
|
32711
|
+
var turnAnim = turnRef.interpolate({
|
|
32712
|
+
inputRange: [
|
|
32713
|
+
0,
|
|
32714
|
+
1,
|
|
32715
|
+
2
|
|
32716
|
+
],
|
|
32717
|
+
outputRange: [
|
|
32718
|
+
"0deg",
|
|
32719
|
+
"108deg",
|
|
32720
|
+
"360deg"
|
|
32721
|
+
]
|
|
32722
|
+
});
|
|
32723
|
+
var strokeColor = customStrokeColor !== null && customStrokeColor !== void 0 ? customStrokeColor : strokeColorByType[type];
|
|
32724
|
+
var svgSize = customSize !== null && customSize !== void 0 ? customSize : sizeMap[size];
|
|
32725
|
+
(0, import_react123.useEffect)(function() {
|
|
32726
|
+
import_react_native102.Animated.loop(import_react_native102.Animated.sequence([
|
|
32727
|
+
import_react_native102.Animated.timing(progressRef, {
|
|
32728
|
+
toValue: 1,
|
|
32729
|
+
duration: 900,
|
|
32730
|
+
useNativeDriver: true,
|
|
32731
|
+
easing: import_react_native102.Easing.inOut(import_react_native102.Easing.ease)
|
|
32732
|
+
}),
|
|
32733
|
+
import_react_native102.Animated.timing(progressRef, {
|
|
32734
|
+
toValue: 2,
|
|
32735
|
+
useNativeDriver: true,
|
|
32736
|
+
duration: 900,
|
|
32737
|
+
easing: import_react_native102.Easing.inOut(import_react_native102.Easing.ease)
|
|
32738
|
+
})
|
|
32739
|
+
]), {
|
|
32740
|
+
iterations: Infinity
|
|
32741
|
+
}).start();
|
|
32742
|
+
import_react_native102.Animated.loop(import_react_native102.Animated.sequence([
|
|
32743
|
+
import_react_native102.Animated.timing(turnRef, {
|
|
32744
|
+
toValue: 1,
|
|
32745
|
+
duration: 900,
|
|
32746
|
+
useNativeDriver: true,
|
|
32747
|
+
easing: import_react_native102.Easing.inOut(import_react_native102.Easing.ease)
|
|
32748
|
+
}),
|
|
32749
|
+
import_react_native102.Animated.timing(turnRef, {
|
|
32750
|
+
toValue: 2,
|
|
32751
|
+
useNativeDriver: true,
|
|
32752
|
+
duration: 900,
|
|
32753
|
+
easing: import_react_native102.Easing.inOut(import_react_native102.Easing.ease)
|
|
32754
|
+
})
|
|
32755
|
+
]), {
|
|
32756
|
+
iterations: Infinity
|
|
32757
|
+
}).start();
|
|
32758
|
+
import_react_native102.Animated.loop(import_react_native102.Animated.sequence([
|
|
32759
|
+
import_react_native102.Animated.timing(rotationRef, {
|
|
32760
|
+
toValue: 0,
|
|
32761
|
+
duration: 0,
|
|
32762
|
+
useNativeDriver: true,
|
|
32763
|
+
easing: import_react_native102.Easing.linear
|
|
32764
|
+
}),
|
|
32765
|
+
import_react_native102.Animated.timing(rotationRef, {
|
|
32766
|
+
toValue: 1,
|
|
32767
|
+
duration: 1800,
|
|
32768
|
+
useNativeDriver: true,
|
|
32769
|
+
easing: import_react_native102.Easing.linear
|
|
32770
|
+
})
|
|
32771
|
+
]), {
|
|
32772
|
+
iterations: Infinity
|
|
32773
|
+
}).start();
|
|
32774
|
+
}, [
|
|
32775
|
+
progressRef,
|
|
32776
|
+
rotationRef,
|
|
32777
|
+
turnRef
|
|
32778
|
+
]);
|
|
32779
|
+
return (0, import_jsx_runtime143.jsx)(AnimatedView, {
|
|
32780
|
+
style: {
|
|
32781
|
+
width: svgSize,
|
|
32782
|
+
height: svgSize,
|
|
32783
|
+
transform: [
|
|
32784
|
+
{
|
|
32785
|
+
rotate: turnAnim
|
|
32786
|
+
}
|
|
32787
|
+
]
|
|
32788
|
+
},
|
|
32789
|
+
children: (0, import_jsx_runtime143.jsx)(AnimatedSvg3, {
|
|
32790
|
+
width: svgSize,
|
|
32791
|
+
height: svgSize,
|
|
32792
|
+
viewBox: "0 0 66 66",
|
|
32793
|
+
stroke: strokeColor,
|
|
32794
|
+
style: [
|
|
32795
|
+
{
|
|
32796
|
+
transform: [
|
|
32797
|
+
{
|
|
32798
|
+
rotate: rotationAnim
|
|
32799
|
+
}
|
|
32800
|
+
]
|
|
32801
|
+
}
|
|
32802
|
+
],
|
|
32803
|
+
children: (0, import_jsx_runtime143.jsx)(AnimatedCircle, {
|
|
32804
|
+
fill: "none",
|
|
32805
|
+
strokeWidth: "6",
|
|
32806
|
+
strokeLinecap: "round",
|
|
32807
|
+
cx: "33",
|
|
32808
|
+
cy: "33",
|
|
32809
|
+
r: "30",
|
|
32810
|
+
strokeDashoffset: circleAnim,
|
|
32811
|
+
strokeDasharray: 180
|
|
32812
|
+
})
|
|
32813
|
+
})
|
|
32814
|
+
});
|
|
32815
|
+
}
|
|
32816
|
+
function DelayLoader(_param) {
|
|
32817
|
+
var _param_delay = _param.delay, delay2 = _param_delay === void 0 ? 700 : _param_delay, props = _object_without_properties(_param, [
|
|
32818
|
+
"delay"
|
|
32819
|
+
]);
|
|
32820
|
+
var opacityRef = (0, import_react123.useRef)(new import_react_native102.Animated.Value(0)).current;
|
|
32821
|
+
(0, import_react123.useEffect)(function() {
|
|
32822
|
+
import_react_native102.Animated.timing(opacityRef, {
|
|
32823
|
+
toValue: 1,
|
|
32824
|
+
delay: delay2,
|
|
32825
|
+
duration: 0,
|
|
32826
|
+
useNativeDriver: true
|
|
32827
|
+
}).start();
|
|
32828
|
+
}, [
|
|
32829
|
+
delay2,
|
|
32830
|
+
opacityRef
|
|
32831
|
+
]);
|
|
32832
|
+
return (0, import_jsx_runtime143.jsx)(AnimatedView, {
|
|
32833
|
+
style: {
|
|
32834
|
+
opacity: opacityRef
|
|
32835
|
+
},
|
|
32836
|
+
children: (0, import_jsx_runtime143.jsx)(_Loader, _object_spread({}, props))
|
|
32837
|
+
});
|
|
32838
|
+
}
|
|
32839
|
+
function Loader(_param) {
|
|
32840
|
+
var delay2 = _param.delay, label = _param.label, _param_size = _param.size, size = _param_size === void 0 ? DEFAULT_PROPS.size : _param_size, _param_type = _param.type, type = _param_type === void 0 ? DEFAULT_PROPS.type : _param_type, style = _param.style, props = _object_without_properties(_param, [
|
|
32841
|
+
"delay",
|
|
32842
|
+
"label",
|
|
32843
|
+
"size",
|
|
32844
|
+
"type",
|
|
32845
|
+
"style"
|
|
32846
|
+
]);
|
|
32847
|
+
var adaptive2 = useAdaptive();
|
|
32848
|
+
var labelColorByType = (0, import_react123.useMemo)(function() {
|
|
32849
|
+
return getLabelColorByType({
|
|
32850
|
+
grey800: adaptive2.grey800
|
|
32851
|
+
});
|
|
32852
|
+
}, [
|
|
32853
|
+
adaptive2.grey800
|
|
32854
|
+
]);
|
|
32855
|
+
return (0, import_jsx_runtime143.jsxs)(import_react_native102.View, {
|
|
32856
|
+
style: [
|
|
32857
|
+
{
|
|
32858
|
+
alignItems: "center"
|
|
32859
|
+
},
|
|
32860
|
+
style
|
|
32861
|
+
],
|
|
32862
|
+
children: [
|
|
32863
|
+
delay2 != null ? (0, import_jsx_runtime143.jsx)(DelayLoader, _object_spread({
|
|
32864
|
+
delay: delay2,
|
|
32865
|
+
size,
|
|
32866
|
+
type
|
|
32867
|
+
}, props)) : (0, import_jsx_runtime143.jsx)(_Loader, _object_spread({
|
|
32868
|
+
size,
|
|
32869
|
+
type
|
|
32870
|
+
}, props)),
|
|
32871
|
+
label != null ? (0, import_jsx_runtime143.jsx)(Txt_default, {
|
|
32872
|
+
typography: "t6",
|
|
32873
|
+
color: labelColorByType[type],
|
|
32874
|
+
style: {
|
|
32875
|
+
marginTop: spacingBySize[size]
|
|
32876
|
+
},
|
|
32877
|
+
children: label
|
|
32878
|
+
}) : null
|
|
32879
|
+
]
|
|
32880
|
+
});
|
|
32881
|
+
}
|
|
32882
|
+
function CenteredLoader(_param) {
|
|
32883
|
+
var style = _param.style, props = _object_without_properties(_param, [
|
|
32884
|
+
"style"
|
|
32885
|
+
]);
|
|
32886
|
+
return (0, import_jsx_runtime143.jsx)(import_react_native102.View, {
|
|
32887
|
+
style: [
|
|
32888
|
+
{
|
|
32889
|
+
padding: 40,
|
|
32890
|
+
alignItems: "center"
|
|
32891
|
+
},
|
|
32892
|
+
style
|
|
32893
|
+
],
|
|
32894
|
+
children: (0, import_jsx_runtime143.jsx)(_Loader, _object_spread({}, props))
|
|
32895
|
+
});
|
|
32896
|
+
}
|
|
32897
|
+
function FullScreenLoader(_param) {
|
|
32898
|
+
var style = _param.style, props = _object_without_properties(_param, [
|
|
32899
|
+
"style"
|
|
32900
|
+
]);
|
|
32901
|
+
return (0, import_jsx_runtime143.jsx)(import_react_native102.View, {
|
|
32902
|
+
style: [
|
|
32903
|
+
{
|
|
32904
|
+
flex: 1,
|
|
32905
|
+
justifyContent: "center",
|
|
32906
|
+
alignItems: "center"
|
|
32907
|
+
},
|
|
32908
|
+
style
|
|
32909
|
+
],
|
|
32910
|
+
children: (0, import_jsx_runtime143.jsx)(Loader, _object_spread({}, props))
|
|
32911
|
+
});
|
|
32912
|
+
}
|
|
32913
|
+
var import_jsx_runtime143, import_react123, import_react_native102, AnimatedView, AnimatedSvg3, AnimatedCircle, DEFAULT_PROPS, sizeMap, strokeColorByType, spacingBySize, getLabelColorByType, Loader_default;
|
|
32914
|
+
var init_Loader = __esm({
|
|
32915
|
+
"../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/components/loader/Loader.js"() {
|
|
32916
|
+
init_object_spread();
|
|
32917
|
+
init_object_without_properties();
|
|
32918
|
+
import_jsx_runtime143 = __toESM(require_jsx_runtime());
|
|
32919
|
+
init_react_native_svg();
|
|
32920
|
+
init_esm();
|
|
32921
|
+
init_core();
|
|
32922
|
+
init_txt();
|
|
32923
|
+
import_react123 = __toESM(require_react());
|
|
32924
|
+
import_react_native102 = __toESM(require_react_native());
|
|
32925
|
+
AnimatedView = import_react_native102.Animated.createAnimatedComponent(import_react_native102.View);
|
|
32926
|
+
AnimatedSvg3 = import_react_native102.Animated.createAnimatedComponent(import_react_native_svg.default);
|
|
32927
|
+
AnimatedCircle = import_react_native102.Animated.createAnimatedComponent(react_native_svg_exports.Circle);
|
|
32928
|
+
DEFAULT_PROPS = {
|
|
32929
|
+
size: "large",
|
|
32930
|
+
type: "primary"
|
|
32931
|
+
};
|
|
32932
|
+
sizeMap = {
|
|
32933
|
+
small: 24,
|
|
32934
|
+
medium: 36,
|
|
32935
|
+
large: 48
|
|
32936
|
+
};
|
|
32937
|
+
strokeColorByType = {
|
|
32938
|
+
primary: "#3188ff",
|
|
32939
|
+
dark: colors.grey600,
|
|
32940
|
+
light: colors.white
|
|
32941
|
+
};
|
|
32942
|
+
spacingBySize = {
|
|
32943
|
+
small: 12,
|
|
32944
|
+
medium: 12,
|
|
32945
|
+
large: 16
|
|
32946
|
+
};
|
|
32947
|
+
getLabelColorByType = function(param) {
|
|
32948
|
+
var grey8004 = param.grey800;
|
|
32949
|
+
return {
|
|
32950
|
+
primary: grey8004,
|
|
32951
|
+
dark: grey8004,
|
|
32952
|
+
light: colors.white
|
|
32953
|
+
};
|
|
32954
|
+
};
|
|
32955
|
+
Loader.Delay = DelayLoader;
|
|
32956
|
+
Loader.FullScreen = FullScreenLoader;
|
|
32957
|
+
Loader.Centered = CenteredLoader;
|
|
32958
|
+
Loader_default = Loader;
|
|
32959
|
+
}
|
|
32960
|
+
});
|
|
32961
|
+
|
|
32683
32962
|
// ../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/components/loader/index.js
|
|
32684
32963
|
var init_loader = __esm({
|
|
32685
32964
|
"../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/components/loader/index.js"() {
|
|
32965
|
+
init_Loader();
|
|
32686
32966
|
}
|
|
32687
32967
|
});
|
|
32688
32968
|
|
|
@@ -32691,15 +32971,15 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
32691
32971
|
var limit = param.limit, children = param.children;
|
|
32692
32972
|
var _useTypographyTheme = useTypographyTheme(), _typographyLevel = _useTypographyTheme.typographyLevel;
|
|
32693
32973
|
var typographyLevel = typeof _typographyLevel === "number" ? _typographyLevel : 100;
|
|
32694
|
-
return (0,
|
|
32974
|
+
return (0, import_jsx_runtime144.jsx)(TypographyThemeProvider, {
|
|
32695
32975
|
typographyLevel: Math.min(typographyLevel, limit),
|
|
32696
32976
|
children
|
|
32697
32977
|
});
|
|
32698
32978
|
}
|
|
32699
|
-
var
|
|
32979
|
+
var import_jsx_runtime144;
|
|
32700
32980
|
var init_PreventFontScaling_android = __esm({
|
|
32701
32981
|
"../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/extensions/prevent-font-scaling/PreventFontScaling.android.js"() {
|
|
32702
|
-
|
|
32982
|
+
import_jsx_runtime144 = __toESM(require_jsx_runtime());
|
|
32703
32983
|
init_core();
|
|
32704
32984
|
}
|
|
32705
32985
|
});
|
|
@@ -32792,15 +33072,678 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
32792
33072
|
}
|
|
32793
33073
|
});
|
|
32794
33074
|
|
|
32795
|
-
// ../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/components/table-row/index.js
|
|
32796
|
-
var init_table_row = __esm({
|
|
32797
|
-
"../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/components/table-row/index.js"() {
|
|
33075
|
+
// ../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/components/table-row/index.js
|
|
33076
|
+
var init_table_row = __esm({
|
|
33077
|
+
"../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/components/table-row/index.js"() {
|
|
33078
|
+
}
|
|
33079
|
+
});
|
|
33080
|
+
|
|
33081
|
+
// ../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/components/toast/hooks/useTextLine.js
|
|
33082
|
+
var import_react124, useTextLine;
|
|
33083
|
+
var init_useTextLine = __esm({
|
|
33084
|
+
"../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/components/toast/hooks/useTextLine.js"() {
|
|
33085
|
+
init_sliced_to_array();
|
|
33086
|
+
import_react124 = __toESM(require_react());
|
|
33087
|
+
useTextLine = function() {
|
|
33088
|
+
var _useState = _sliced_to_array((0, import_react124.useState)("single"), 2), textLine = _useState[0], setTextLine = _useState[1];
|
|
33089
|
+
var updateTextLine = function(param) {
|
|
33090
|
+
var lines = param.nativeEvent.lines;
|
|
33091
|
+
if (lines.length >= 2) {
|
|
33092
|
+
setTextLine("multiple");
|
|
33093
|
+
} else {
|
|
33094
|
+
setTextLine("single");
|
|
33095
|
+
}
|
|
33096
|
+
};
|
|
33097
|
+
return {
|
|
33098
|
+
textLine,
|
|
33099
|
+
updateTextLine
|
|
33100
|
+
};
|
|
33101
|
+
};
|
|
33102
|
+
}
|
|
33103
|
+
});
|
|
33104
|
+
|
|
33105
|
+
// ../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/components/toast/hooks/useTimer.js
|
|
33106
|
+
var import_react125, useTimer;
|
|
33107
|
+
var init_useTimer = __esm({
|
|
33108
|
+
"../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/components/toast/hooks/useTimer.js"() {
|
|
33109
|
+
import_react125 = __toESM(require_react());
|
|
33110
|
+
useTimer = function(param) {
|
|
33111
|
+
var duration = param.duration, callback = param.callback;
|
|
33112
|
+
(0, import_react125.useEffect)(function() {
|
|
33113
|
+
var timeoutId = setTimeout(function() {
|
|
33114
|
+
callback();
|
|
33115
|
+
}, duration * 1e3);
|
|
33116
|
+
return function() {
|
|
33117
|
+
clearTimeout(timeoutId);
|
|
33118
|
+
};
|
|
33119
|
+
}, []);
|
|
33120
|
+
};
|
|
33121
|
+
}
|
|
33122
|
+
});
|
|
33123
|
+
|
|
33124
|
+
// ../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/components/toast/hooks/useToastAnimation.js
|
|
33125
|
+
var import_react126, useToastAnimation;
|
|
33126
|
+
var init_useToastAnimation = __esm({
|
|
33127
|
+
"../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/components/toast/hooks/useToastAnimation.js"() {
|
|
33128
|
+
init_object_spread();
|
|
33129
|
+
import_react126 = __toESM(require_react());
|
|
33130
|
+
init_esm5();
|
|
33131
|
+
init_animated();
|
|
33132
|
+
useToastAnimation = function(param) {
|
|
33133
|
+
var position = param.position, initialY = param.initialY;
|
|
33134
|
+
var opacity = (0, import_react126.useRef)(new Animated20.Value(0)).current;
|
|
33135
|
+
var translateY = (0, import_react126.useRef)(new Animated20.Value(initialY !== null && initialY !== void 0 ? initialY : 0)).current;
|
|
33136
|
+
var enterAnimationStartedRef = (0, import_react126.useRef)(false);
|
|
33137
|
+
var enter = (0, import_react126.useCallback)(function() {
|
|
33138
|
+
return new Promise(function(resolve) {
|
|
33139
|
+
if (initialY === void 0) {
|
|
33140
|
+
resolve();
|
|
33141
|
+
return;
|
|
33142
|
+
}
|
|
33143
|
+
translateY.setValue(initialY);
|
|
33144
|
+
enterAnimationStartedRef.current = true;
|
|
33145
|
+
Animated20.parallel([
|
|
33146
|
+
Animated20.spring(opacity, _object_spread({
|
|
33147
|
+
toValue: 1,
|
|
33148
|
+
useNativeDriver: true
|
|
33149
|
+
}, position === "bottom" ? spring.quick : spring.small)),
|
|
33150
|
+
Animated20.spring(translateY, _object_spread({
|
|
33151
|
+
toValue: 0,
|
|
33152
|
+
useNativeDriver: true
|
|
33153
|
+
}, position === "bottom" ? spring.quick : spring.small))
|
|
33154
|
+
]).start(function() {
|
|
33155
|
+
resolve();
|
|
33156
|
+
});
|
|
33157
|
+
});
|
|
33158
|
+
}, [
|
|
33159
|
+
initialY,
|
|
33160
|
+
opacity,
|
|
33161
|
+
position,
|
|
33162
|
+
translateY
|
|
33163
|
+
]);
|
|
33164
|
+
(0, import_react126.useEffect)(function() {
|
|
33165
|
+
if (!enterAnimationStartedRef.current && initialY != null) {
|
|
33166
|
+
enter();
|
|
33167
|
+
}
|
|
33168
|
+
}, [
|
|
33169
|
+
initialY,
|
|
33170
|
+
enter
|
|
33171
|
+
]);
|
|
33172
|
+
var exit = function() {
|
|
33173
|
+
return new Promise(function(resolve) {
|
|
33174
|
+
if (initialY == null) {
|
|
33175
|
+
resolve();
|
|
33176
|
+
return;
|
|
33177
|
+
}
|
|
33178
|
+
Animated20.parallel([
|
|
33179
|
+
Animated20.spring(opacity, _object_spread({
|
|
33180
|
+
toValue: 0,
|
|
33181
|
+
useNativeDriver: true
|
|
33182
|
+
}, spring.quick)),
|
|
33183
|
+
Animated20.spring(translateY, _object_spread({
|
|
33184
|
+
toValue: initialY,
|
|
33185
|
+
useNativeDriver: true
|
|
33186
|
+
}, spring.quick))
|
|
33187
|
+
]).start(function() {
|
|
33188
|
+
resolve();
|
|
33189
|
+
});
|
|
33190
|
+
});
|
|
33191
|
+
};
|
|
33192
|
+
var animatedStyle = {
|
|
33193
|
+
opacity,
|
|
33194
|
+
transform: [
|
|
33195
|
+
{
|
|
33196
|
+
translateY
|
|
33197
|
+
}
|
|
33198
|
+
]
|
|
33199
|
+
};
|
|
33200
|
+
return {
|
|
33201
|
+
enter,
|
|
33202
|
+
exit,
|
|
33203
|
+
animatedStyle
|
|
33204
|
+
};
|
|
33205
|
+
};
|
|
33206
|
+
}
|
|
33207
|
+
});
|
|
33208
|
+
|
|
33209
|
+
// ../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/components/toast/hooks/useKeyboardAnimatedHeight.js
|
|
33210
|
+
function getInitialKeyboardHeight() {
|
|
33211
|
+
if (import_react_native103.Platform.OS !== "ios") {
|
|
33212
|
+
return 0;
|
|
33213
|
+
}
|
|
33214
|
+
if (typeof (import_react_native103.Keyboard === null || import_react_native103.Keyboard === void 0 ? void 0 : import_react_native103.Keyboard.metrics) === "function") {
|
|
33215
|
+
var _Keyboard_metrics;
|
|
33216
|
+
var _Keyboard_metrics_height;
|
|
33217
|
+
return (_Keyboard_metrics_height = (_Keyboard_metrics = import_react_native103.Keyboard.metrics()) === null || _Keyboard_metrics === void 0 ? void 0 : _Keyboard_metrics.height) !== null && _Keyboard_metrics_height !== void 0 ? _Keyboard_metrics_height : 0;
|
|
33218
|
+
} else {
|
|
33219
|
+
return 0;
|
|
33220
|
+
}
|
|
33221
|
+
}
|
|
33222
|
+
function useKeyboardAnimatedHeight2() {
|
|
33223
|
+
var keyboardHeight = (0, import_react127.useRef)(new import_react_native103.Animated.Value(getInitialKeyboardHeight())).current;
|
|
33224
|
+
(0, import_react127.useEffect)(function() {
|
|
33225
|
+
if (import_react_native103.Platform.OS === "ios") {
|
|
33226
|
+
var willShowSubscription = import_react_native103.Keyboard.addListener("keyboardWillShow", function(event) {
|
|
33227
|
+
var height = event.endCoordinates.height;
|
|
33228
|
+
import_react_native103.Animated.spring(keyboardHeight, _object_spread({
|
|
33229
|
+
toValue: height,
|
|
33230
|
+
useNativeDriver: true
|
|
33231
|
+
}, spring4.quick)).start();
|
|
33232
|
+
});
|
|
33233
|
+
var willHideSubscription = import_react_native103.Keyboard.addListener("keyboardWillHide", function() {
|
|
33234
|
+
import_react_native103.Animated.spring(keyboardHeight, _object_spread({
|
|
33235
|
+
toValue: 0,
|
|
33236
|
+
useNativeDriver: true
|
|
33237
|
+
}, spring4.quick)).start();
|
|
33238
|
+
});
|
|
33239
|
+
return function() {
|
|
33240
|
+
willShowSubscription.remove();
|
|
33241
|
+
willHideSubscription.remove();
|
|
33242
|
+
};
|
|
33243
|
+
} else {
|
|
33244
|
+
return;
|
|
33245
|
+
}
|
|
33246
|
+
}, [
|
|
33247
|
+
keyboardHeight
|
|
33248
|
+
]);
|
|
33249
|
+
return keyboardHeight;
|
|
33250
|
+
}
|
|
33251
|
+
var import_react127, import_react_native103, spring4;
|
|
33252
|
+
var init_useKeyboardAnimatedHeight2 = __esm({
|
|
33253
|
+
"../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/components/toast/hooks/useKeyboardAnimatedHeight.js"() {
|
|
33254
|
+
init_object_spread();
|
|
33255
|
+
import_react127 = __toESM(require_react());
|
|
33256
|
+
import_react_native103 = __toESM(require_react_native());
|
|
33257
|
+
spring4 = {
|
|
33258
|
+
quick: {
|
|
33259
|
+
stiffness: 800,
|
|
33260
|
+
damping: 55,
|
|
33261
|
+
mass: 1
|
|
33262
|
+
}
|
|
33263
|
+
};
|
|
33264
|
+
}
|
|
33265
|
+
});
|
|
33266
|
+
|
|
33267
|
+
// ../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/components/toast/hooks/index.js
|
|
33268
|
+
var init_hooks2 = __esm({
|
|
33269
|
+
"../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/components/toast/hooks/index.js"() {
|
|
33270
|
+
init_useTextLine();
|
|
33271
|
+
init_useTimer();
|
|
33272
|
+
init_useToastAnimation();
|
|
33273
|
+
init_useKeyboardAnimatedHeight2();
|
|
33274
|
+
}
|
|
33275
|
+
});
|
|
33276
|
+
|
|
33277
|
+
// ../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/components/toast/components/ToastBottom.js
|
|
33278
|
+
var import_jsx_runtime145, import_react128, import_react_native104, AnimatedPressable, ToastBottom, marginHorizontal, styles26;
|
|
33279
|
+
var init_ToastBottom = __esm({
|
|
33280
|
+
"../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/components/toast/components/ToastBottom.js"() {
|
|
33281
|
+
init_sliced_to_array();
|
|
33282
|
+
import_jsx_runtime145 = __toESM(require_jsx_runtime());
|
|
33283
|
+
import_react128 = __toESM(require_react());
|
|
33284
|
+
import_react_native104 = __toESM(require_react_native());
|
|
33285
|
+
init_esm();
|
|
33286
|
+
init_core();
|
|
33287
|
+
init_animated();
|
|
33288
|
+
init_utils3();
|
|
33289
|
+
init_txt();
|
|
33290
|
+
init_hooks2();
|
|
33291
|
+
AnimatedPressable = Animated20.createAnimatedComponent(import_react_native104.Pressable);
|
|
33292
|
+
ToastBottom = function(param) {
|
|
33293
|
+
var open = param.open, text = param.text, icon = param.icon, button = param.button, _param_duration = param.duration, duration = _param_duration === void 0 ? button ? 5 : 3 : _param_duration, _param_bottomOffset = param.bottomOffset, bottomOffset = _param_bottomOffset === void 0 ? 20 : _param_bottomOffset, onClose = param.onClose, _param_onExited = param.onExited, onExited = _param_onExited === void 0 ? function() {
|
|
33294
|
+
} : _param_onExited, _param_onEntered = param.onEntered, onEntered = _param_onEntered === void 0 ? function() {
|
|
33295
|
+
} : _param_onEntered;
|
|
33296
|
+
var _animatedStyle_transform_;
|
|
33297
|
+
var _useWindowDimensions = (0, import_react_native104.useWindowDimensions)(), windowWidth = _useWindowDimensions.width;
|
|
33298
|
+
var _useState = _sliced_to_array((0, import_react128.useState)(), 2), height = _useState[0], setHeight = _useState[1];
|
|
33299
|
+
var safeAreaBottom = useSafeAreaBottom();
|
|
33300
|
+
var initialY = height ? bottomOffset + height + safeAreaBottom : void 0;
|
|
33301
|
+
var keyboardHeight = useKeyboardAnimatedHeight2();
|
|
33302
|
+
var _useTextLine = useTextLine(), textLine = _useTextLine.textLine, updateTextLine = _useTextLine.updateTextLine;
|
|
33303
|
+
var colorPreference = useColorPreference().colorPreference;
|
|
33304
|
+
var typographyLevel = useTypographyTheme().typographyLevel;
|
|
33305
|
+
var isLargeFontScale = import_react_native104.Platform.OS === "android" ? typographyLevel > 200 : typographyLevel === null || typographyLevel === void 0 ? void 0 : typographyLevel.startsWith("A11y_x");
|
|
33306
|
+
var _useToastAnimation = useToastAnimation({
|
|
33307
|
+
position: "bottom",
|
|
33308
|
+
initialY
|
|
33309
|
+
}), enter = _useToastAnimation.enter, exit = _useToastAnimation.exit, animatedStyle = _useToastAnimation.animatedStyle;
|
|
33310
|
+
var presenceState = useAnimatePresence(open, {
|
|
33311
|
+
enter,
|
|
33312
|
+
exit,
|
|
33313
|
+
onExited,
|
|
33314
|
+
onEntered
|
|
33315
|
+
}).presenceState;
|
|
33316
|
+
useTimer({
|
|
33317
|
+
duration,
|
|
33318
|
+
callback: onClose
|
|
33319
|
+
});
|
|
33320
|
+
if (presenceState === "invisible") {
|
|
33321
|
+
return null;
|
|
33322
|
+
}
|
|
33323
|
+
var _animatedStyle_transform__translateY;
|
|
33324
|
+
return (0, import_jsx_runtime145.jsxs)(AnimatedPressable, {
|
|
33325
|
+
onPress: onClose,
|
|
33326
|
+
onLayout: function(event) {
|
|
33327
|
+
setHeight(event.nativeEvent.layout.height);
|
|
33328
|
+
},
|
|
33329
|
+
style: [
|
|
33330
|
+
styles26.container,
|
|
33331
|
+
{
|
|
33332
|
+
opacity: animatedStyle.opacity,
|
|
33333
|
+
transform: [
|
|
33334
|
+
{
|
|
33335
|
+
translateY: Animated20.subtract((_animatedStyle_transform__translateY = (_animatedStyle_transform_ = animatedStyle.transform[0]) === null || _animatedStyle_transform_ === void 0 ? void 0 : _animatedStyle_transform_.translateY) !== null && _animatedStyle_transform__translateY !== void 0 ? _animatedStyle_transform__translateY : 0, keyboardHeight)
|
|
33336
|
+
}
|
|
33337
|
+
]
|
|
33338
|
+
},
|
|
33339
|
+
{
|
|
33340
|
+
flexDirection: isLargeFontScale ? "column" : "row",
|
|
33341
|
+
alignItems: isLargeFontScale ? "flex-start" : "center",
|
|
33342
|
+
gap: isLargeFontScale ? 10 : 0,
|
|
33343
|
+
width: button ? windowWidth - marginHorizontal * 2 : "auto",
|
|
33344
|
+
bottom: bottomOffset + safeAreaBottom,
|
|
33345
|
+
paddingLeft: icon ? 16 : 20,
|
|
33346
|
+
paddingRight: button ? 14 : 20,
|
|
33347
|
+
borderRadius: textLine === "single" ? 100 : 20,
|
|
33348
|
+
backgroundColor: colorPreference === "light" ? colors.grey500 : colors.darkThemeGrey200
|
|
33349
|
+
}
|
|
33350
|
+
],
|
|
33351
|
+
children: [
|
|
33352
|
+
(0, import_jsx_runtime145.jsxs)(import_react_native104.View, {
|
|
33353
|
+
style: [
|
|
33354
|
+
styles26.iconTextContainer,
|
|
33355
|
+
isLargeFontScale ? {
|
|
33356
|
+
width: "100%"
|
|
33357
|
+
} : {
|
|
33358
|
+
flexGrow: button ? 1 : 0,
|
|
33359
|
+
width: button ? 0 : "auto"
|
|
33360
|
+
}
|
|
33361
|
+
],
|
|
33362
|
+
children: [
|
|
33363
|
+
icon && (0, import_jsx_runtime145.jsx)(import_react_native104.View, {
|
|
33364
|
+
style: styles26.icon,
|
|
33365
|
+
children: icon
|
|
33366
|
+
}),
|
|
33367
|
+
(0, import_jsx_runtime145.jsx)(Txt_default, {
|
|
33368
|
+
onTextLayout: updateTextLine,
|
|
33369
|
+
typography: "t6",
|
|
33370
|
+
fontWeight: "semiBold",
|
|
33371
|
+
color: colors.white,
|
|
33372
|
+
children: text
|
|
33373
|
+
})
|
|
33374
|
+
]
|
|
33375
|
+
}),
|
|
33376
|
+
button ? (0, import_jsx_runtime145.jsx)(import_react_native104.View, {
|
|
33377
|
+
style: styles26.button,
|
|
33378
|
+
children: button
|
|
33379
|
+
}) : null
|
|
33380
|
+
]
|
|
33381
|
+
});
|
|
33382
|
+
};
|
|
33383
|
+
marginHorizontal = 20;
|
|
33384
|
+
styles26 = import_react_native104.StyleSheet.create({
|
|
33385
|
+
container: {
|
|
33386
|
+
position: "absolute",
|
|
33387
|
+
alignSelf: "center",
|
|
33388
|
+
zIndex: 100,
|
|
33389
|
+
flexDirection: "row",
|
|
33390
|
+
paddingVertical: 14,
|
|
33391
|
+
marginHorizontal
|
|
33392
|
+
},
|
|
33393
|
+
iconTextContainer: {
|
|
33394
|
+
flexDirection: "row",
|
|
33395
|
+
alignItems: "center"
|
|
33396
|
+
},
|
|
33397
|
+
icon: {
|
|
33398
|
+
marginRight: 12
|
|
33399
|
+
},
|
|
33400
|
+
button: {
|
|
33401
|
+
marginLeft: 20,
|
|
33402
|
+
flexShrink: 0
|
|
33403
|
+
}
|
|
33404
|
+
});
|
|
33405
|
+
}
|
|
33406
|
+
});
|
|
33407
|
+
|
|
33408
|
+
// ../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/components/toast/components/ToastButton.js
|
|
33409
|
+
var import_jsx_runtime146, import_react129, import_react_native105, ToastButton, styles27;
|
|
33410
|
+
var init_ToastButton = __esm({
|
|
33411
|
+
"../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/components/toast/components/ToastButton.js"() {
|
|
33412
|
+
init_object_spread();
|
|
33413
|
+
init_object_spread_props();
|
|
33414
|
+
init_object_without_properties();
|
|
33415
|
+
import_jsx_runtime146 = __toESM(require_jsx_runtime());
|
|
33416
|
+
import_react129 = __toESM(require_react());
|
|
33417
|
+
import_react_native105 = __toESM(require_react_native());
|
|
33418
|
+
init_esm();
|
|
33419
|
+
init_animated();
|
|
33420
|
+
init_core();
|
|
33421
|
+
init_txt();
|
|
33422
|
+
ToastButton = function(_param) {
|
|
33423
|
+
var children = _param.children, props = _object_without_properties(_param, [
|
|
33424
|
+
"children"
|
|
33425
|
+
]);
|
|
33426
|
+
var colorPreference = useColorPreference().colorPreference;
|
|
33427
|
+
var overlayOpacityAnim = (0, import_react129.useRef)(new Animated20.Value(0)).current;
|
|
33428
|
+
return (0, import_jsx_runtime146.jsxs)(import_react_native105.Pressable, _object_spread_props(_object_spread({
|
|
33429
|
+
accessibilityRole: "button",
|
|
33430
|
+
onPressIn: function() {
|
|
33431
|
+
overlayOpacityAnim.setValue(0.1);
|
|
33432
|
+
},
|
|
33433
|
+
onPressOut: function() {
|
|
33434
|
+
overlayOpacityAnim.setValue(0);
|
|
33435
|
+
},
|
|
33436
|
+
style: [
|
|
33437
|
+
styles27.button,
|
|
33438
|
+
{
|
|
33439
|
+
backgroundColor: colorPreference === "light" ? colors.greyOpacity400 : colors.whiteOpacity100
|
|
33440
|
+
}
|
|
33441
|
+
]
|
|
33442
|
+
}, props), {
|
|
33443
|
+
children: [
|
|
33444
|
+
(0, import_jsx_runtime146.jsx)(Animated20.View, {
|
|
33445
|
+
style: _object_spread_props(_object_spread({}, import_react_native105.StyleSheet.absoluteFillObject), {
|
|
33446
|
+
backgroundColor: colors.black,
|
|
33447
|
+
opacity: overlayOpacityAnim
|
|
33448
|
+
})
|
|
33449
|
+
}),
|
|
33450
|
+
(0, import_jsx_runtime146.jsx)(Txt_default, {
|
|
33451
|
+
typography: "t7",
|
|
33452
|
+
fontWeight: "semiBold",
|
|
33453
|
+
color: colors.floatBackground,
|
|
33454
|
+
children
|
|
33455
|
+
})
|
|
33456
|
+
]
|
|
33457
|
+
}));
|
|
33458
|
+
};
|
|
33459
|
+
styles27 = import_react_native105.StyleSheet.create({
|
|
33460
|
+
button: {
|
|
33461
|
+
marginLeft: "auto",
|
|
33462
|
+
borderRadius: 100,
|
|
33463
|
+
paddingHorizontal: 12,
|
|
33464
|
+
paddingVertical: 6,
|
|
33465
|
+
overflow: "hidden"
|
|
33466
|
+
}
|
|
33467
|
+
});
|
|
33468
|
+
}
|
|
33469
|
+
});
|
|
33470
|
+
|
|
33471
|
+
// ../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/components/toast/components/ToastIcon.js
|
|
33472
|
+
var import_jsx_runtime147, ToastIcon;
|
|
33473
|
+
var init_ToastIcon = __esm({
|
|
33474
|
+
"../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/components/toast/components/ToastIcon.js"() {
|
|
33475
|
+
init_object_spread();
|
|
33476
|
+
import_jsx_runtime147 = __toESM(require_jsx_runtime());
|
|
33477
|
+
init_icon();
|
|
33478
|
+
ToastIcon = function(props) {
|
|
33479
|
+
return (0, import_jsx_runtime147.jsx)(Icon_default, _object_spread({
|
|
33480
|
+
type: "circle",
|
|
33481
|
+
size: 24
|
|
33482
|
+
}, props));
|
|
33483
|
+
};
|
|
33484
|
+
}
|
|
33485
|
+
});
|
|
33486
|
+
|
|
33487
|
+
// ../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/components/toast/components/ToastLottieIcon/CustomToastLottieIcon.js
|
|
33488
|
+
var import_jsx_runtime148, import_react130, import_react_native106, CustomToastLottieIcon;
|
|
33489
|
+
var init_CustomToastLottieIcon = __esm({
|
|
33490
|
+
"../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/components/toast/components/ToastLottieIcon/CustomToastLottieIcon.js"() {
|
|
33491
|
+
init_async_to_generator();
|
|
33492
|
+
init_object_spread();
|
|
33493
|
+
init_object_without_properties();
|
|
33494
|
+
init_sliced_to_array();
|
|
33495
|
+
init_ts_generator();
|
|
33496
|
+
import_jsx_runtime148 = __toESM(require_jsx_runtime());
|
|
33497
|
+
init_lottie_react_native();
|
|
33498
|
+
import_react130 = __toESM(require_react());
|
|
33499
|
+
import_react_native106 = __toESM(require_react_native());
|
|
33500
|
+
CustomToastLottieIcon = function(_param) {
|
|
33501
|
+
var src = _param.src, _param_play = _param.play, play = _param_play === void 0 ? true : _param_play, _param_loop = _param.loop, loop = _param_loop === void 0 ? false : _param_loop, onFinish = _param.onFinish, style = _param.style, props = _object_without_properties(_param, [
|
|
33502
|
+
"src",
|
|
33503
|
+
"play",
|
|
33504
|
+
"loop",
|
|
33505
|
+
"onFinish",
|
|
33506
|
+
"style"
|
|
33507
|
+
]);
|
|
33508
|
+
var lottie = (0, import_react130.useRef)(null);
|
|
33509
|
+
var _useState = _sliced_to_array((0, import_react130.useState)(), 2), jsonData = _useState[0], setData = _useState[1];
|
|
33510
|
+
(0, import_react130.useEffect)(function() {
|
|
33511
|
+
var fetchLottie = function fetchLottie2() {
|
|
33512
|
+
return _fetchLottie.apply(this, arguments);
|
|
33513
|
+
};
|
|
33514
|
+
function _fetchLottie() {
|
|
33515
|
+
_fetchLottie = _async_to_generator(function() {
|
|
33516
|
+
var response;
|
|
33517
|
+
return __generator(this, function(_state) {
|
|
33518
|
+
switch (_state.label) {
|
|
33519
|
+
case 0:
|
|
33520
|
+
return [
|
|
33521
|
+
4,
|
|
33522
|
+
fetch(src)
|
|
33523
|
+
];
|
|
33524
|
+
case 1:
|
|
33525
|
+
response = _state.sent();
|
|
33526
|
+
return [
|
|
33527
|
+
4,
|
|
33528
|
+
response.json()
|
|
33529
|
+
];
|
|
33530
|
+
case 2:
|
|
33531
|
+
setData.apply(void 0, [
|
|
33532
|
+
_state.sent()
|
|
33533
|
+
]);
|
|
33534
|
+
return [
|
|
33535
|
+
2
|
|
33536
|
+
];
|
|
33537
|
+
}
|
|
33538
|
+
});
|
|
33539
|
+
});
|
|
33540
|
+
return _fetchLottie.apply(this, arguments);
|
|
33541
|
+
}
|
|
33542
|
+
fetchLottie();
|
|
33543
|
+
}, [
|
|
33544
|
+
src
|
|
33545
|
+
]);
|
|
33546
|
+
(0, import_react130.useEffect)(function() {
|
|
33547
|
+
var _lottie_current, _lottie_current1;
|
|
33548
|
+
play ? (_lottie_current = lottie.current) === null || _lottie_current === void 0 ? void 0 : _lottie_current.play() : (_lottie_current1 = lottie.current) === null || _lottie_current1 === void 0 ? void 0 : _lottie_current1.pause();
|
|
33549
|
+
}, [
|
|
33550
|
+
jsonData,
|
|
33551
|
+
play
|
|
33552
|
+
]);
|
|
33553
|
+
if (jsonData == null) {
|
|
33554
|
+
return (0, import_jsx_runtime148.jsx)(import_react_native106.View, {
|
|
33555
|
+
style: {
|
|
33556
|
+
opacity: 1
|
|
33557
|
+
}
|
|
33558
|
+
});
|
|
33559
|
+
}
|
|
33560
|
+
return (0, import_jsx_runtime148.jsx)(import_lottie_react_native.default, _object_spread({
|
|
33561
|
+
ref: lottie,
|
|
33562
|
+
source: jsonData,
|
|
33563
|
+
autoPlay: false,
|
|
33564
|
+
loop,
|
|
33565
|
+
style: [
|
|
33566
|
+
{
|
|
33567
|
+
width: 24,
|
|
33568
|
+
height: 24
|
|
33569
|
+
},
|
|
33570
|
+
style
|
|
33571
|
+
],
|
|
33572
|
+
onAnimationFinish: onFinish
|
|
33573
|
+
}, props));
|
|
33574
|
+
};
|
|
33575
|
+
}
|
|
33576
|
+
});
|
|
33577
|
+
|
|
33578
|
+
// ../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/components/toast/components/ToastLottieIcon/PresetToastLottieIcon.js
|
|
33579
|
+
var import_jsx_runtime149, PresetToastLottieIcon;
|
|
33580
|
+
var init_PresetToastLottieIcon = __esm({
|
|
33581
|
+
"../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/components/toast/components/ToastLottieIcon/PresetToastLottieIcon.js"() {
|
|
33582
|
+
init_object_spread();
|
|
33583
|
+
init_object_without_properties();
|
|
33584
|
+
import_jsx_runtime149 = __toESM(require_jsx_runtime());
|
|
33585
|
+
init_CustomToastLottieIcon();
|
|
33586
|
+
PresetToastLottieIcon = function(_param) {
|
|
33587
|
+
var type = _param.type, props = _object_without_properties(_param, [
|
|
33588
|
+
"type"
|
|
33589
|
+
]);
|
|
33590
|
+
return (0, import_jsx_runtime149.jsx)(CustomToastLottieIcon, _object_spread({
|
|
33591
|
+
src: type === "complete" ? "https://static.toss.im/lotties-common/check-green-spot.json" : "https://static.toss.im/lotties-common/error-yellow-spot.json"
|
|
33592
|
+
}, props));
|
|
33593
|
+
};
|
|
33594
|
+
}
|
|
33595
|
+
});
|
|
33596
|
+
|
|
33597
|
+
// ../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/components/toast/components/ToastLottieIcon/ToastLottieIcon.js
|
|
33598
|
+
function isPresetToastLottieIconProps(props) {
|
|
33599
|
+
return "type" in props && props.preset === true;
|
|
33600
|
+
}
|
|
33601
|
+
var import_jsx_runtime150, ToastLottieIcon;
|
|
33602
|
+
var init_ToastLottieIcon = __esm({
|
|
33603
|
+
"../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/components/toast/components/ToastLottieIcon/ToastLottieIcon.js"() {
|
|
33604
|
+
init_object_spread();
|
|
33605
|
+
import_jsx_runtime150 = __toESM(require_jsx_runtime());
|
|
33606
|
+
init_CustomToastLottieIcon();
|
|
33607
|
+
init_PresetToastLottieIcon();
|
|
33608
|
+
ToastLottieIcon = function(props) {
|
|
33609
|
+
return isPresetToastLottieIconProps(props) ? (0, import_jsx_runtime150.jsx)(PresetToastLottieIcon, _object_spread({}, props)) : (0, import_jsx_runtime150.jsx)(CustomToastLottieIcon, _object_spread({}, props));
|
|
33610
|
+
};
|
|
33611
|
+
}
|
|
33612
|
+
});
|
|
33613
|
+
|
|
33614
|
+
// ../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/components/toast/components/ToastLottieIcon/index.js
|
|
33615
|
+
var init_ToastLottieIcon2 = __esm({
|
|
33616
|
+
"../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/components/toast/components/ToastLottieIcon/index.js"() {
|
|
33617
|
+
init_ToastLottieIcon();
|
|
33618
|
+
}
|
|
33619
|
+
});
|
|
33620
|
+
|
|
33621
|
+
// ../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/components/toast/components/ToastTop.js
|
|
33622
|
+
var import_jsx_runtime151, import_react131, import_react_native107, AnimatedPressable2, ToastTop, styles28;
|
|
33623
|
+
var init_ToastTop = __esm({
|
|
33624
|
+
"../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/components/toast/components/ToastTop.js"() {
|
|
33625
|
+
init_sliced_to_array();
|
|
33626
|
+
import_jsx_runtime151 = __toESM(require_jsx_runtime());
|
|
33627
|
+
import_react131 = __toESM(require_react());
|
|
33628
|
+
import_react_native107 = __toESM(require_react_native());
|
|
33629
|
+
init_esm();
|
|
33630
|
+
init_animated();
|
|
33631
|
+
init_core();
|
|
33632
|
+
init_txt();
|
|
33633
|
+
init_utils3();
|
|
33634
|
+
init_hooks2();
|
|
33635
|
+
AnimatedPressable2 = Animated20.createAnimatedComponent(import_react_native107.Pressable);
|
|
33636
|
+
ToastTop = function(param) {
|
|
33637
|
+
var open = param.open, text = param.text, icon = param.icon, _param_duration = param.duration, duration = _param_duration === void 0 ? 3 : _param_duration, onClose = param.onClose, _param_onExited = param.onExited, onExited = _param_onExited === void 0 ? function() {
|
|
33638
|
+
} : _param_onExited, _param_onEntered = param.onEntered, onEntered = _param_onEntered === void 0 ? function() {
|
|
33639
|
+
} : _param_onEntered;
|
|
33640
|
+
var safeAreaTop = useSafeAreaTop();
|
|
33641
|
+
var _useState = _sliced_to_array((0, import_react131.useState)(), 2), height = _useState[0], setHeight = _useState[1];
|
|
33642
|
+
var initialY = height ? -(safeAreaTop + height) : void 0;
|
|
33643
|
+
var _useTextLine = useTextLine(), textLine = _useTextLine.textLine, updateTextLine = _useTextLine.updateTextLine;
|
|
33644
|
+
var adaptive2 = useAdaptive();
|
|
33645
|
+
var colorPreference = useColorPreference().colorPreference;
|
|
33646
|
+
var _useToastAnimation = useToastAnimation({
|
|
33647
|
+
position: "top",
|
|
33648
|
+
initialY
|
|
33649
|
+
}), enter = _useToastAnimation.enter, exit = _useToastAnimation.exit, animatedStyle = _useToastAnimation.animatedStyle;
|
|
33650
|
+
var presenceState = useAnimatePresence(open, {
|
|
33651
|
+
enter,
|
|
33652
|
+
exit,
|
|
33653
|
+
onExited,
|
|
33654
|
+
onEntered
|
|
33655
|
+
}).presenceState;
|
|
33656
|
+
useTimer({
|
|
33657
|
+
duration,
|
|
33658
|
+
callback: onClose
|
|
33659
|
+
});
|
|
33660
|
+
if (presenceState === "invisible") {
|
|
33661
|
+
return null;
|
|
33662
|
+
}
|
|
33663
|
+
return (0, import_jsx_runtime151.jsxs)(AnimatedPressable2, {
|
|
33664
|
+
onPress: onClose,
|
|
33665
|
+
onLayout: function(event) {
|
|
33666
|
+
setHeight(event.nativeEvent.layout.height);
|
|
33667
|
+
},
|
|
33668
|
+
style: [
|
|
33669
|
+
styles28.container,
|
|
33670
|
+
animatedStyle,
|
|
33671
|
+
{
|
|
33672
|
+
top: safeAreaTop,
|
|
33673
|
+
paddingLeft: icon ? 12 : 16,
|
|
33674
|
+
borderRadius: textLine === "single" ? 100 : 20,
|
|
33675
|
+
backgroundColor: colorPreference === "light" ? colors.white : colors.darkThemeGrey200,
|
|
33676
|
+
shadowColor: colorPreference === "light" ? colors.greyOpacity200 : colors.darkThemeGrey50
|
|
33677
|
+
}
|
|
33678
|
+
],
|
|
33679
|
+
children: [
|
|
33680
|
+
icon && (0, import_jsx_runtime151.jsx)(import_react_native107.View, {
|
|
33681
|
+
style: styles28.icon,
|
|
33682
|
+
children: icon
|
|
33683
|
+
}),
|
|
33684
|
+
(0, import_jsx_runtime151.jsx)(Txt_default, {
|
|
33685
|
+
onTextLayout: updateTextLine,
|
|
33686
|
+
typography: "t6",
|
|
33687
|
+
fontWeight: "semiBold",
|
|
33688
|
+
color: adaptive2.opacity800,
|
|
33689
|
+
children: text
|
|
33690
|
+
})
|
|
33691
|
+
]
|
|
33692
|
+
});
|
|
33693
|
+
};
|
|
33694
|
+
styles28 = import_react_native107.StyleSheet.create({
|
|
33695
|
+
container: {
|
|
33696
|
+
position: "absolute",
|
|
33697
|
+
alignSelf: "center",
|
|
33698
|
+
zIndex: 100,
|
|
33699
|
+
flexDirection: "row",
|
|
33700
|
+
alignItems: "center",
|
|
33701
|
+
paddingVertical: 12,
|
|
33702
|
+
paddingRight: 16,
|
|
33703
|
+
marginHorizontal: import_react_native107.Platform.OS === "ios" ? 18 : import_react_native107.Platform.OS === "android" ? 12 : 0,
|
|
33704
|
+
shadowOffset: {
|
|
33705
|
+
width: 0,
|
|
33706
|
+
height: 2
|
|
33707
|
+
},
|
|
33708
|
+
shadowRadius: 30,
|
|
33709
|
+
shadowOpacity: 1,
|
|
33710
|
+
elevation: 50
|
|
33711
|
+
},
|
|
33712
|
+
icon: {
|
|
33713
|
+
marginRight: 10
|
|
33714
|
+
}
|
|
33715
|
+
});
|
|
33716
|
+
}
|
|
33717
|
+
});
|
|
33718
|
+
|
|
33719
|
+
// ../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/components/toast/Toast.js
|
|
33720
|
+
var import_jsx_runtime152, Toast;
|
|
33721
|
+
var init_Toast = __esm({
|
|
33722
|
+
"../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/components/toast/Toast.js"() {
|
|
33723
|
+
init_object_spread();
|
|
33724
|
+
init_object_without_properties();
|
|
33725
|
+
import_jsx_runtime152 = __toESM(require_jsx_runtime());
|
|
33726
|
+
init_ToastBottom();
|
|
33727
|
+
init_ToastButton();
|
|
33728
|
+
init_ToastIcon();
|
|
33729
|
+
init_ToastLottieIcon2();
|
|
33730
|
+
init_ToastTop();
|
|
33731
|
+
Toast = function(_param) {
|
|
33732
|
+
var _param_position = _param.position, position = _param_position === void 0 ? "bottom" : _param_position, props = _object_without_properties(_param, [
|
|
33733
|
+
"position"
|
|
33734
|
+
]);
|
|
33735
|
+
return position === "bottom" ? (0, import_jsx_runtime152.jsx)(ToastBottom, _object_spread({}, props)) : (0, import_jsx_runtime152.jsx)(ToastTop, _object_spread({}, props));
|
|
33736
|
+
};
|
|
33737
|
+
Toast.Icon = ToastIcon;
|
|
33738
|
+
Toast.LottieIcon = ToastLottieIcon;
|
|
33739
|
+
Toast.Button = ToastButton;
|
|
32798
33740
|
}
|
|
32799
33741
|
});
|
|
32800
33742
|
|
|
32801
33743
|
// ../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/components/toast/index.js
|
|
32802
33744
|
var init_toast = __esm({
|
|
32803
33745
|
"../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/components/toast/index.js"() {
|
|
33746
|
+
init_Toast();
|
|
32804
33747
|
}
|
|
32805
33748
|
});
|
|
32806
33749
|
|
|
@@ -32829,23 +33772,23 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
32829
33772
|
});
|
|
32830
33773
|
|
|
32831
33774
|
// ../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/components/keypad/FullSecureKeypad/index.js
|
|
32832
|
-
var
|
|
33775
|
+
var import_jsx_runtime153, import_react132, import_react_native108;
|
|
32833
33776
|
var init_FullSecureKeypad = __esm({
|
|
32834
33777
|
"../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/components/keypad/FullSecureKeypad/index.js"() {
|
|
32835
|
-
|
|
32836
|
-
|
|
32837
|
-
|
|
33778
|
+
import_jsx_runtime153 = __toESM(require_jsx_runtime());
|
|
33779
|
+
import_react132 = __toESM(require_react());
|
|
33780
|
+
import_react_native108 = __toESM(require_react_native());
|
|
32838
33781
|
}
|
|
32839
33782
|
});
|
|
32840
33783
|
|
|
32841
33784
|
// ../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/components/keypad/NumberKeypad/NumberKeypad.js
|
|
32842
|
-
var
|
|
33785
|
+
var import_jsx_runtime154, import_react133;
|
|
32843
33786
|
var init_NumberKeypad = __esm({
|
|
32844
33787
|
"../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/components/keypad/NumberKeypad/NumberKeypad.js"() {
|
|
32845
33788
|
init_object_spread();
|
|
32846
33789
|
init_object_spread_props();
|
|
32847
|
-
|
|
32848
|
-
|
|
33790
|
+
import_jsx_runtime154 = __toESM(require_jsx_runtime());
|
|
33791
|
+
import_react133 = __toESM(require_react());
|
|
32849
33792
|
}
|
|
32850
33793
|
});
|
|
32851
33794
|
|
|
@@ -32865,18 +33808,18 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
32865
33808
|
});
|
|
32866
33809
|
|
|
32867
33810
|
// ../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/components/chart/BarChart.js
|
|
32868
|
-
var
|
|
33811
|
+
var import_jsx_runtime155, import_react134, import_react_native109, _Dimensions_get, WINDOW_WIDTH;
|
|
32869
33812
|
var init_BarChart = __esm({
|
|
32870
33813
|
"../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/components/chart/BarChart.js"() {
|
|
32871
33814
|
init_object_spread();
|
|
32872
33815
|
init_object_spread_props();
|
|
32873
33816
|
init_object_without_properties();
|
|
32874
33817
|
init_to_consumable_array();
|
|
32875
|
-
|
|
33818
|
+
import_jsx_runtime155 = __toESM(require_jsx_runtime());
|
|
32876
33819
|
init_src4();
|
|
32877
|
-
|
|
32878
|
-
|
|
32879
|
-
_Dimensions_get =
|
|
33820
|
+
import_react134 = __toESM(require_react());
|
|
33821
|
+
import_react_native109 = __toESM(require_react_native());
|
|
33822
|
+
_Dimensions_get = import_react_native109.Dimensions.get("window");
|
|
32880
33823
|
WINDOW_WIDTH = _Dimensions_get.width;
|
|
32881
33824
|
}
|
|
32882
33825
|
});
|
|
@@ -32917,7 +33860,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
32917
33860
|
var prefixedName = name2.startsWith("icn-") || name2.startsWith("icon-") ? name2 : "icn-".concat(name2);
|
|
32918
33861
|
return "".concat(ICON_URL_PREFIX2, "/").concat(prefixedName, ".svg");
|
|
32919
33862
|
}
|
|
32920
|
-
var
|
|
33863
|
+
var import_jsx_runtime156, import_react135, ICON_URL_PREFIX2, cache2, fillAttributesRe, strokeAttributesRe, Icon4, SvgIconClass, SvgIcon;
|
|
32921
33864
|
var init_SvgIcon = __esm({
|
|
32922
33865
|
"../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/components/icon/private/SvgIcon.js"() {
|
|
32923
33866
|
init_async_to_generator();
|
|
@@ -32930,15 +33873,15 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
32930
33873
|
init_sliced_to_array();
|
|
32931
33874
|
init_create_super();
|
|
32932
33875
|
init_ts_generator();
|
|
32933
|
-
|
|
33876
|
+
import_jsx_runtime156 = __toESM(require_jsx_runtime());
|
|
32934
33877
|
init_react_native_svg();
|
|
32935
|
-
|
|
33878
|
+
import_react135 = __toESM(require_react());
|
|
32936
33879
|
init_useCachedData();
|
|
32937
33880
|
ICON_URL_PREFIX2 = "https://static.toss.im/icons/svg";
|
|
32938
33881
|
cache2 = {};
|
|
32939
33882
|
fillAttributesRe = /fill="#[0-9a-fA-F]{6}"/g;
|
|
32940
33883
|
strokeAttributesRe = /stroke="#[0-9a-fA-F]{6}"/g;
|
|
32941
|
-
Icon4 = /* @__PURE__ */ (0,
|
|
33884
|
+
Icon4 = /* @__PURE__ */ (0, import_react135.forwardRef)(function Icon5(_param, ref) {
|
|
32942
33885
|
var name2 = _param.name, color = _param.color, _param_size = _param.size, size = _param_size === void 0 ? 24 : _param_size, accessible = _param.accessible, accessibilityLabel = _param.accessibilityLabel, _param_type = _param.type, type = _param_type === void 0 ? "default" : _param_type, children = _param.children, restProps = _object_without_properties(_param, [
|
|
32943
33886
|
"name",
|
|
32944
33887
|
"color",
|
|
@@ -32951,7 +33894,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
32951
33894
|
var _useCachedData = useCachedData(cache2, name2, fetchIcon2, [
|
|
32952
33895
|
name2
|
|
32953
33896
|
]), iconXml = _useCachedData.data, showFallback = _useCachedData.showFallback;
|
|
32954
|
-
var jsxAST = (0,
|
|
33897
|
+
var jsxAST = (0, import_react135.useMemo)(function() {
|
|
32955
33898
|
if (iconXml === void 0) {
|
|
32956
33899
|
return null;
|
|
32957
33900
|
}
|
|
@@ -32963,7 +33906,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
32963
33906
|
iconXml,
|
|
32964
33907
|
color
|
|
32965
33908
|
]);
|
|
32966
|
-
var svgColorProps = (0,
|
|
33909
|
+
var svgColorProps = (0, import_react135.useMemo)(function() {
|
|
32967
33910
|
if (iconXml === void 0 || color === void 0) {
|
|
32968
33911
|
return {};
|
|
32969
33912
|
}
|
|
@@ -32983,14 +33926,14 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
32983
33926
|
accessible
|
|
32984
33927
|
}, svgColorProps, restProps);
|
|
32985
33928
|
if (jsxAST == null) {
|
|
32986
|
-
return (0,
|
|
33929
|
+
return (0, import_jsx_runtime156.jsx)(react_native_svg_exports.Svg, _object_spread_props(_object_spread({
|
|
32987
33930
|
ref
|
|
32988
33931
|
}, commonProps), {
|
|
32989
33932
|
children
|
|
32990
33933
|
}));
|
|
32991
33934
|
}
|
|
32992
33935
|
if (showFallback) {
|
|
32993
|
-
return (0,
|
|
33936
|
+
return (0, import_jsx_runtime156.jsx)(react_native_svg_exports.SvgUri, _object_spread_props(_object_spread({
|
|
32994
33937
|
uri: getIconUrl2(name2)
|
|
32995
33938
|
}, commonProps), {
|
|
32996
33939
|
children
|
|
@@ -33002,21 +33945,21 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
33002
33945
|
var cx = viewBoxWidth / 2;
|
|
33003
33946
|
var cy = viewBoxHeight / 2;
|
|
33004
33947
|
var r2 = Math.min(viewBoxWidth, viewBoxHeight) / 2;
|
|
33005
|
-
return (0,
|
|
33948
|
+
return (0, import_jsx_runtime156.jsxs)(react_native_svg_exports.Svg, _object_spread_props(_object_spread({
|
|
33006
33949
|
ref
|
|
33007
33950
|
}, jsxAST.props, commonProps), {
|
|
33008
33951
|
children: [
|
|
33009
|
-
(0,
|
|
33010
|
-
children: (0,
|
|
33952
|
+
(0, import_jsx_runtime156.jsx)(react_native_svg_exports.Defs, {
|
|
33953
|
+
children: (0, import_jsx_runtime156.jsx)(react_native_svg_exports.ClipPath, {
|
|
33011
33954
|
id: "clip",
|
|
33012
|
-
children: (0,
|
|
33955
|
+
children: (0, import_jsx_runtime156.jsx)(react_native_svg_exports.Circle, {
|
|
33013
33956
|
cx,
|
|
33014
33957
|
cy,
|
|
33015
33958
|
r: r2
|
|
33016
33959
|
})
|
|
33017
33960
|
})
|
|
33018
33961
|
}),
|
|
33019
|
-
(0,
|
|
33962
|
+
(0, import_jsx_runtime156.jsx)(react_native_svg_exports.G, {
|
|
33020
33963
|
clipPath: "url(#clip)",
|
|
33021
33964
|
children: jsxAST.children
|
|
33022
33965
|
}),
|
|
@@ -33024,11 +33967,11 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
33024
33967
|
]
|
|
33025
33968
|
}));
|
|
33026
33969
|
}
|
|
33027
|
-
return (0,
|
|
33970
|
+
return (0, import_jsx_runtime156.jsxs)(react_native_svg_exports.Svg, _object_spread_props(_object_spread({
|
|
33028
33971
|
ref
|
|
33029
33972
|
}, jsxAST.props, commonProps), {
|
|
33030
33973
|
children: [
|
|
33031
|
-
(0,
|
|
33974
|
+
(0, import_jsx_runtime156.jsx)(react_native_svg_exports.G, {
|
|
33032
33975
|
children: jsxAST.children
|
|
33033
33976
|
}),
|
|
33034
33977
|
children
|
|
@@ -33047,12 +33990,12 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
33047
33990
|
{
|
|
33048
33991
|
key: "render",
|
|
33049
33992
|
value: function render() {
|
|
33050
|
-
return (0,
|
|
33993
|
+
return (0, import_jsx_runtime156.jsx)(Icon4, _object_spread({}, this.props));
|
|
33051
33994
|
}
|
|
33052
33995
|
}
|
|
33053
33996
|
]);
|
|
33054
33997
|
return SvgIconClass2;
|
|
33055
|
-
}(
|
|
33998
|
+
}(import_react135.Component);
|
|
33056
33999
|
SvgIcon = Object.assign(SvgIconClass, {
|
|
33057
34000
|
Root: SvgIconClass,
|
|
33058
34001
|
prefetchIcon: function() {
|
|
@@ -33096,23 +34039,23 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
33096
34039
|
});
|
|
33097
34040
|
|
|
33098
34041
|
// ../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/components/icon-button/IconButton.js
|
|
33099
|
-
var
|
|
34042
|
+
var import_jsx_runtime157, import_react136, import_react_native110, AnimatedSvg4, AnimatedRect, AnimatedPressable3;
|
|
33100
34043
|
var init_IconButton = __esm({
|
|
33101
34044
|
"../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/components/icon-button/IconButton.js"() {
|
|
33102
34045
|
init_object_spread();
|
|
33103
34046
|
init_object_spread_props();
|
|
33104
34047
|
init_object_without_properties();
|
|
33105
34048
|
init_to_consumable_array();
|
|
33106
|
-
|
|
34049
|
+
import_jsx_runtime157 = __toESM(require_jsx_runtime());
|
|
33107
34050
|
init_react_native_svg();
|
|
33108
34051
|
init_esm5();
|
|
33109
34052
|
init_animated();
|
|
33110
34053
|
init_src4();
|
|
33111
|
-
|
|
33112
|
-
|
|
33113
|
-
|
|
34054
|
+
import_react136 = __toESM(require_react());
|
|
34055
|
+
import_react_native110 = __toESM(require_react_native());
|
|
34056
|
+
AnimatedSvg4 = Animated20.createAnimatedComponent(react_native_svg_exports.Svg);
|
|
33114
34057
|
AnimatedRect = Animated20.createAnimatedComponent(react_native_svg_exports.Rect);
|
|
33115
|
-
|
|
34058
|
+
AnimatedPressable3 = Animated20.createAnimatedComponent(import_react_native110.Pressable);
|
|
33116
34059
|
}
|
|
33117
34060
|
});
|
|
33118
34061
|
|
|
@@ -33132,12 +34075,12 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
33132
34075
|
// ../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/components/fixed-bottom-cta/providers/FixedBottomCTAContext.js
|
|
33133
34076
|
function FixedBottomCTAConsumer(param) {
|
|
33134
34077
|
var children = param.children;
|
|
33135
|
-
var controls = (0,
|
|
34078
|
+
var controls = (0, import_react137.useContext)(FixedBottomCTAContext);
|
|
33136
34079
|
if (controls == null) {
|
|
33137
34080
|
throw new Error("FixedBottomCTAContext \uB294 FixedBottomCTAProvider \uC5D0\uC11C \uC2E4\uD589\uD574\uC57C\uD569\uB2C8\uB2E4.");
|
|
33138
34081
|
}
|
|
33139
34082
|
var render = controls.render, cleanup = controls.cleanup;
|
|
33140
|
-
(0,
|
|
34083
|
+
(0, import_react137.useEffect)(function() {
|
|
33141
34084
|
render(children);
|
|
33142
34085
|
return function() {
|
|
33143
34086
|
cleanup();
|
|
@@ -33149,54 +34092,54 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
33149
34092
|
]);
|
|
33150
34093
|
return null;
|
|
33151
34094
|
}
|
|
33152
|
-
var
|
|
34095
|
+
var import_jsx_runtime158, import_react137, import_react_native111, FixedBottomCTAContext;
|
|
33153
34096
|
var init_FixedBottomCTAContext = __esm({
|
|
33154
34097
|
"../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/components/fixed-bottom-cta/providers/FixedBottomCTAContext.js"() {
|
|
33155
34098
|
init_object_spread();
|
|
33156
34099
|
init_object_spread_props();
|
|
33157
34100
|
init_sliced_to_array();
|
|
33158
|
-
|
|
34101
|
+
import_jsx_runtime158 = __toESM(require_jsx_runtime());
|
|
33159
34102
|
init_src4();
|
|
33160
|
-
|
|
33161
|
-
|
|
33162
|
-
FixedBottomCTAContext = /* @__PURE__ */ (0,
|
|
34103
|
+
import_react137 = __toESM(require_react());
|
|
34104
|
+
import_react_native111 = __toESM(require_react_native());
|
|
34105
|
+
FixedBottomCTAContext = /* @__PURE__ */ (0, import_react137.createContext)(null);
|
|
33163
34106
|
}
|
|
33164
34107
|
});
|
|
33165
34108
|
|
|
33166
34109
|
// ../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/components/fixed-bottom-cta/FixedBottomCTA.js
|
|
33167
34110
|
function FixedBottomCTAWithoutConsumer(props) {
|
|
33168
34111
|
var adaptive2 = useAdaptive();
|
|
33169
|
-
return (0,
|
|
34112
|
+
return (0, import_jsx_runtime159.jsx)(BottomCTA.Single, _object_spread({
|
|
33170
34113
|
keyboardStyleEnabled: true,
|
|
33171
|
-
gradient: (0,
|
|
34114
|
+
gradient: (0, import_jsx_runtime159.jsx)(BottomCTAGradient, {
|
|
33172
34115
|
stopColor: adaptive2.background
|
|
33173
34116
|
})
|
|
33174
34117
|
}, props));
|
|
33175
34118
|
}
|
|
33176
34119
|
function FixedBottomCTADoubleWithoutConsumer(props) {
|
|
33177
34120
|
var adaptive2 = useAdaptive();
|
|
33178
|
-
return (0,
|
|
34121
|
+
return (0, import_jsx_runtime159.jsx)(BottomCTA.Double, _object_spread({
|
|
33179
34122
|
keyboardStyleEnabled: true,
|
|
33180
|
-
gradient: (0,
|
|
34123
|
+
gradient: (0, import_jsx_runtime159.jsx)(BottomCTAGradient, {
|
|
33181
34124
|
stopColor: adaptive2.background
|
|
33182
34125
|
})
|
|
33183
34126
|
}, props));
|
|
33184
34127
|
}
|
|
33185
34128
|
function FixedBottomCTA(props) {
|
|
33186
|
-
return (0,
|
|
33187
|
-
children: (0,
|
|
34129
|
+
return (0, import_jsx_runtime159.jsx)(FixedBottomCTAConsumer, {
|
|
34130
|
+
children: (0, import_jsx_runtime159.jsx)(FixedBottomCTAWithoutConsumer, _object_spread({}, props))
|
|
33188
34131
|
});
|
|
33189
34132
|
}
|
|
33190
34133
|
function FixedBottomCTADouble(props) {
|
|
33191
|
-
return (0,
|
|
33192
|
-
children: (0,
|
|
34134
|
+
return (0, import_jsx_runtime159.jsx)(FixedBottomCTAConsumer, {
|
|
34135
|
+
children: (0, import_jsx_runtime159.jsx)(FixedBottomCTADoubleWithoutConsumer, _object_spread({}, props))
|
|
33193
34136
|
});
|
|
33194
34137
|
}
|
|
33195
|
-
var
|
|
34138
|
+
var import_jsx_runtime159;
|
|
33196
34139
|
var init_FixedBottomCTA = __esm({
|
|
33197
34140
|
"../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/components/fixed-bottom-cta/FixedBottomCTA.js"() {
|
|
33198
34141
|
init_object_spread();
|
|
33199
|
-
|
|
34142
|
+
import_jsx_runtime159 = __toESM(require_jsx_runtime());
|
|
33200
34143
|
init_bottom_cta();
|
|
33201
34144
|
init_core();
|
|
33202
34145
|
init_FixedBottomCTAContext();
|
|
@@ -33249,11 +34192,11 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
33249
34192
|
});
|
|
33250
34193
|
|
|
33251
34194
|
// ../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/components/shadow/generateShadowStyle.js
|
|
33252
|
-
var
|
|
34195
|
+
var import_react_native112, generateShadowStyle;
|
|
33253
34196
|
var init_generateShadowStyle = __esm({
|
|
33254
34197
|
"../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/components/shadow/generateShadowStyle.js"() {
|
|
33255
34198
|
init_object_without_properties();
|
|
33256
|
-
|
|
34199
|
+
import_react_native112 = __toESM(require_react_native());
|
|
33257
34200
|
init_calculateElevation();
|
|
33258
34201
|
generateShadowStyle = function(_param) {
|
|
33259
34202
|
var _param_offset = _param.offset, offset = _param_offset === void 0 ? {
|
|
@@ -33267,7 +34210,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
33267
34210
|
]);
|
|
33268
34211
|
var shadowColor = "color" in colorProps ? colorProps.color : colorPreference === "light" ? colorProps.lightColor : colorProps.darkColor;
|
|
33269
34212
|
var _offset_x, _offset_y;
|
|
33270
|
-
return
|
|
34213
|
+
return import_react_native112.Platform.OS === "ios" ? {
|
|
33271
34214
|
shadowColor,
|
|
33272
34215
|
shadowOffset: {
|
|
33273
34216
|
width: (_offset_x = offset.x) !== null && _offset_x !== void 0 ? _offset_x : 0,
|
|
@@ -33315,11 +34258,11 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
33315
34258
|
});
|
|
33316
34259
|
|
|
33317
34260
|
// ../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/components/error-page/ErrorPage.js
|
|
33318
|
-
var
|
|
34261
|
+
var import_jsx_runtime160, import_react_native113;
|
|
33319
34262
|
var init_ErrorPage = __esm({
|
|
33320
34263
|
"../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/components/error-page/ErrorPage.js"() {
|
|
33321
|
-
|
|
33322
|
-
|
|
34264
|
+
import_jsx_runtime160 = __toESM(require_jsx_runtime());
|
|
34265
|
+
import_react_native113 = __toESM(require_react_native());
|
|
33323
34266
|
}
|
|
33324
34267
|
});
|
|
33325
34268
|
|
|
@@ -33334,13 +34277,13 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
33334
34277
|
function useDialog() {
|
|
33335
34278
|
var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
33336
34279
|
var overlay = useOverlay();
|
|
33337
|
-
var close = (0,
|
|
34280
|
+
var close = (0, import_react138.useCallback)(function() {
|
|
33338
34281
|
overlay.close();
|
|
33339
34282
|
}, [
|
|
33340
34283
|
overlay
|
|
33341
34284
|
]);
|
|
33342
34285
|
var _options_closeOnDestroy = options.closeOnDestroy, closeOnDestroy = _options_closeOnDestroy === void 0 ? true : _options_closeOnDestroy;
|
|
33343
|
-
var openAlert = (0,
|
|
34286
|
+
var openAlert = (0, import_react138.useCallback)(function(_param) {
|
|
33344
34287
|
var _param_closeOnDimmerClick = _param.closeOnDimmerClick, closeOnDimmerClick = _param_closeOnDimmerClick === void 0 ? false : _param_closeOnDimmerClick, onEntered = _param.onEntered, onButtonPress = _param.onButtonPress, otherOptions = _object_without_properties(_param, [
|
|
33345
34288
|
"closeOnDimmerClick",
|
|
33346
34289
|
"onEntered",
|
|
@@ -33349,7 +34292,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
33349
34292
|
return new Promise(function(resolve) {
|
|
33350
34293
|
overlay.open(function(param) {
|
|
33351
34294
|
var isOpen = param.isOpen, close2 = param.close, exit = param.exit;
|
|
33352
|
-
return (0,
|
|
34295
|
+
return (0, import_jsx_runtime161.jsx)(AlertDialog_default, _object_spread_props(_object_spread({}, otherOptions), {
|
|
33353
34296
|
open: isOpen,
|
|
33354
34297
|
onEntered,
|
|
33355
34298
|
onClose: function() {
|
|
@@ -33371,23 +34314,23 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
33371
34314
|
}, [
|
|
33372
34315
|
overlay
|
|
33373
34316
|
]);
|
|
33374
|
-
var openConfirm = (0,
|
|
34317
|
+
var openConfirm = (0, import_react138.useCallback)(function(_param) {
|
|
33375
34318
|
var _param_rightButton = _param.rightButton, rightButton = _param_rightButton === void 0 ? "\uD655\uC778" : _param_rightButton, _param_leftButton = _param.leftButton, leftButton = _param_leftButton === void 0 ? "\uCDE8\uC18C" : _param_leftButton, _param_closeOnDimmerClick = _param.closeOnDimmerClick, closeOnDimmerClick = _param_closeOnDimmerClick === void 0 ? false : _param_closeOnDimmerClick, onEntered = _param.onEntered, otherOptions = _object_without_properties(_param, [
|
|
33376
34319
|
"rightButton",
|
|
33377
34320
|
"leftButton",
|
|
33378
34321
|
"closeOnDimmerClick",
|
|
33379
34322
|
"onEntered"
|
|
33380
34323
|
]);
|
|
33381
|
-
var _rightButton = typeof rightButton === "string" ? (0,
|
|
34324
|
+
var _rightButton = typeof rightButton === "string" ? (0, import_jsx_runtime161.jsx)(ConfirmDialog_default.Button, {
|
|
33382
34325
|
children: rightButton
|
|
33383
34326
|
}) : rightButton;
|
|
33384
|
-
var _leftButton = typeof leftButton === "string" ? (0,
|
|
34327
|
+
var _leftButton = typeof leftButton === "string" ? (0, import_jsx_runtime161.jsx)(ConfirmDialog_default.Button, {
|
|
33385
34328
|
children: leftButton
|
|
33386
34329
|
}) : leftButton;
|
|
33387
34330
|
return new Promise(function(resolve) {
|
|
33388
34331
|
overlay.open(function(param) {
|
|
33389
34332
|
var isOpen = param.isOpen, close2 = param.close, exit = param.exit;
|
|
33390
|
-
return (0,
|
|
34333
|
+
return (0, import_jsx_runtime161.jsx)(ConfirmDialog_default, _object_spread_props(_object_spread({}, otherOptions), {
|
|
33391
34334
|
open: isOpen,
|
|
33392
34335
|
onEntered,
|
|
33393
34336
|
onClose: function() {
|
|
@@ -33397,7 +34340,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
33397
34340
|
onExited: function() {
|
|
33398
34341
|
exit();
|
|
33399
34342
|
},
|
|
33400
|
-
rightButton: /* @__PURE__ */ (0,
|
|
34343
|
+
rightButton: /* @__PURE__ */ (0, import_react138.cloneElement)(_rightButton, _object_spread_props(_object_spread({}, _rightButton.props), {
|
|
33401
34344
|
onPress: function(event) {
|
|
33402
34345
|
resolve(true);
|
|
33403
34346
|
if (_rightButton.props.onPress === void 0) {
|
|
@@ -33407,7 +34350,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
33407
34350
|
}
|
|
33408
34351
|
}
|
|
33409
34352
|
})),
|
|
33410
|
-
leftButton: /* @__PURE__ */ (0,
|
|
34353
|
+
leftButton: /* @__PURE__ */ (0, import_react138.cloneElement)(_leftButton, _object_spread_props(_object_spread({}, _leftButton.props), {
|
|
33411
34354
|
type: "dark",
|
|
33412
34355
|
style: "weak",
|
|
33413
34356
|
onPress: function(event) {
|
|
@@ -33426,7 +34369,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
33426
34369
|
}, [
|
|
33427
34370
|
overlay
|
|
33428
34371
|
]);
|
|
33429
|
-
var controls = (0,
|
|
34372
|
+
var controls = (0, import_react138.useMemo)(function() {
|
|
33430
34373
|
return {
|
|
33431
34374
|
close,
|
|
33432
34375
|
openAlert,
|
|
@@ -33437,7 +34380,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
33437
34380
|
openAlert,
|
|
33438
34381
|
openConfirm
|
|
33439
34382
|
]);
|
|
33440
|
-
(0,
|
|
34383
|
+
(0, import_react138.useEffect)(function() {
|
|
33441
34384
|
return function() {
|
|
33442
34385
|
if (closeOnDestroy) {
|
|
33443
34386
|
controls === null || controls === void 0 ? void 0 : controls.close();
|
|
@@ -33449,21 +34392,21 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
33449
34392
|
]);
|
|
33450
34393
|
return controls;
|
|
33451
34394
|
}
|
|
33452
|
-
var
|
|
34395
|
+
var import_jsx_runtime161, import_react138;
|
|
33453
34396
|
var init_useDialog = __esm({
|
|
33454
34397
|
"../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/extensions/overlay-extension/hooks/useDialog.js"() {
|
|
33455
34398
|
init_object_spread();
|
|
33456
34399
|
init_object_spread_props();
|
|
33457
34400
|
init_object_without_properties();
|
|
33458
|
-
|
|
33459
|
-
|
|
34401
|
+
import_jsx_runtime161 = __toESM(require_jsx_runtime());
|
|
34402
|
+
import_react138 = __toESM(require_react());
|
|
33460
34403
|
init_dialog();
|
|
33461
34404
|
init_core();
|
|
33462
34405
|
}
|
|
33463
34406
|
});
|
|
33464
34407
|
|
|
33465
34408
|
// ../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/extensions/overlay-extension/hooks/index.js
|
|
33466
|
-
var
|
|
34409
|
+
var init_hooks3 = __esm({
|
|
33467
34410
|
"../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/extensions/overlay-extension/hooks/index.js"() {
|
|
33468
34411
|
init_useDialog();
|
|
33469
34412
|
}
|
|
@@ -33472,7 +34415,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
33472
34415
|
// ../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/extensions/overlay-extension/index.js
|
|
33473
34416
|
var init_overlay_extension = __esm({
|
|
33474
34417
|
"../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/extensions/overlay-extension/index.js"() {
|
|
33475
|
-
|
|
34418
|
+
init_hooks3();
|
|
33476
34419
|
}
|
|
33477
34420
|
});
|
|
33478
34421
|
|
|
@@ -33486,14 +34429,14 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
33486
34429
|
function BackButton2(param) {
|
|
33487
34430
|
var tintColor = param.tintColor, onPress = param.onPress;
|
|
33488
34431
|
var adaptive2 = useAdaptive();
|
|
33489
|
-
return (0,
|
|
34432
|
+
return (0, import_jsx_runtime162.jsx)(NavbarBackButton2, {
|
|
33490
34433
|
onPress,
|
|
33491
34434
|
color: tintColor !== null && tintColor !== void 0 ? tintColor : adaptive2.grey900
|
|
33492
34435
|
});
|
|
33493
34436
|
}
|
|
33494
34437
|
function NavbarBackButton2(param) {
|
|
33495
34438
|
var onPress = param.onPress, color = param.color;
|
|
33496
|
-
return (0,
|
|
34439
|
+
return (0, import_jsx_runtime162.jsx)(import_react_native114.TouchableOpacity, {
|
|
33497
34440
|
hitSlop: {
|
|
33498
34441
|
top: 10,
|
|
33499
34442
|
right: 10,
|
|
@@ -33508,12 +34451,12 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
33508
34451
|
accessible: true,
|
|
33509
34452
|
accessibilityLabel: "\uB4A4\uB85C\uAC00\uAE30",
|
|
33510
34453
|
accessibilityRole: "button",
|
|
33511
|
-
children: (0,
|
|
34454
|
+
children: (0, import_jsx_runtime162.jsx)(import_react_native114.View, {
|
|
33512
34455
|
style: {
|
|
33513
34456
|
width: 24,
|
|
33514
34457
|
height: 24
|
|
33515
34458
|
},
|
|
33516
|
-
children: (0,
|
|
34459
|
+
children: (0, import_jsx_runtime162.jsx)(react_native_svg_exports.SvgXml, {
|
|
33517
34460
|
width: 24,
|
|
33518
34461
|
height: 24,
|
|
33519
34462
|
xml: BACK_BUTTON_XML2.replace(/fill="#[0-9a-fA-F]{6}"/g, 'fill="'.concat(color, '"')),
|
|
@@ -33524,21 +34467,21 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
33524
34467
|
})
|
|
33525
34468
|
});
|
|
33526
34469
|
}
|
|
33527
|
-
var
|
|
34470
|
+
var import_jsx_runtime162, import_react_native114, ANDROID_BACK_BUTTON2, IOS_BACK_BUTTON2, BACK_BUTTON_XML2, BACK_BUTTON_MARGIN2;
|
|
33528
34471
|
var init_BackButton2 = __esm({
|
|
33529
34472
|
"../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/components/navbar/ReactNavigationHelper/BackButton.js"() {
|
|
33530
|
-
|
|
34473
|
+
import_jsx_runtime162 = __toESM(require_jsx_runtime());
|
|
33531
34474
|
init_react_native_svg();
|
|
33532
34475
|
init_core();
|
|
33533
|
-
|
|
34476
|
+
import_react_native114 = __toESM(require_react_native());
|
|
33534
34477
|
ANDROID_BACK_BUTTON2 = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="line-icon">\n<path fill="#B0B8C1" fill-rule="evenodd" d="M20.966 10.8H6.93l5.451-5.451a1.2 1.2 0 10-1.697-1.697l-7.5 7.5c-.003.002-.004.006-.007.009a1.2 1.2 0 00-.252 1.298c.06.143.145.27.252.38l.007.01 7.5 7.5c.235.234.542.35.848.35a1.2 1.2 0 00.849-2.048L6.931 13.2h14.036a1.2 1.2 0 100-2.4"/>\n</svg>';
|
|
33535
34478
|
IOS_BACK_BUTTON2 = '<svg enable-background="new 0 0 24 24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">\n<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="#b0b8c1"/>\n</svg>';
|
|
33536
|
-
BACK_BUTTON_XML2 =
|
|
34479
|
+
BACK_BUTTON_XML2 = import_react_native114.Platform.select({
|
|
33537
34480
|
android: ANDROID_BACK_BUTTON2,
|
|
33538
34481
|
ios: IOS_BACK_BUTTON2,
|
|
33539
34482
|
default: IOS_BACK_BUTTON2
|
|
33540
34483
|
});
|
|
33541
|
-
BACK_BUTTON_MARGIN2 =
|
|
34484
|
+
BACK_BUTTON_MARGIN2 = import_react_native114.Platform.select({
|
|
33542
34485
|
android: 0,
|
|
33543
34486
|
ios: -12,
|
|
33544
34487
|
default: -12
|
|
@@ -33568,7 +34511,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
33568
34511
|
]);
|
|
33569
34512
|
var adaptive2 = useAdaptive();
|
|
33570
34513
|
var typography = useTypographyTheme().typography;
|
|
33571
|
-
var titleTextStyle = (0,
|
|
34514
|
+
var titleTextStyle = (0, import_react139.useMemo)(function() {
|
|
33572
34515
|
return {
|
|
33573
34516
|
fontSize: Math.min(typography[TEXT_BUTTON_TYPOGRAPHY].fontSize, MAX_FONT_SIZE),
|
|
33574
34517
|
lineHeight: Math.min(typography[TEXT_BUTTON_TYPOGRAPHY].lineHeight, MAX_LINE_HEIGHT)
|
|
@@ -33576,14 +34519,14 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
33576
34519
|
}, [
|
|
33577
34520
|
typography
|
|
33578
34521
|
]);
|
|
33579
|
-
return (0,
|
|
34522
|
+
return (0, import_jsx_runtime163.jsx)(import_react_native115.TouchableOpacity, _object_spread_props(_object_spread({
|
|
33580
34523
|
style: [
|
|
33581
|
-
|
|
33582
|
-
|
|
34524
|
+
styles29.common,
|
|
34525
|
+
styles29.textButton
|
|
33583
34526
|
],
|
|
33584
34527
|
hitSlop: HIT_SLOP
|
|
33585
34528
|
}, props), {
|
|
33586
|
-
children: (0,
|
|
34529
|
+
children: (0, import_jsx_runtime163.jsx)(Txt_default, {
|
|
33587
34530
|
typography: TEXT_BUTTON_TYPOGRAPHY,
|
|
33588
34531
|
color: adaptive2.grey800,
|
|
33589
34532
|
fontWeight: "semiBold",
|
|
@@ -33592,32 +34535,32 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
33592
34535
|
})
|
|
33593
34536
|
}));
|
|
33594
34537
|
}
|
|
33595
|
-
var
|
|
34538
|
+
var import_jsx_runtime163, import_react139, import_react_native115, RightIconButton, TEXT_BUTTON_TYPOGRAPHY, styles29, HIT_SLOP;
|
|
33596
34539
|
var init_Right = __esm({
|
|
33597
34540
|
"../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/components/navbar/ReactNavigationHelper/Right.js"() {
|
|
33598
34541
|
init_object_spread();
|
|
33599
34542
|
init_object_spread_props();
|
|
33600
34543
|
init_object_without_properties();
|
|
33601
|
-
|
|
34544
|
+
import_jsx_runtime163 = __toESM(require_jsx_runtime());
|
|
33602
34545
|
init_core();
|
|
33603
34546
|
init_icon();
|
|
33604
34547
|
init_txt();
|
|
33605
|
-
|
|
33606
|
-
|
|
34548
|
+
import_react139 = __toESM(require_react());
|
|
34549
|
+
import_react_native115 = __toESM(require_react_native());
|
|
33607
34550
|
init_constants11();
|
|
33608
|
-
RightIconButton = /* @__PURE__ */ (0,
|
|
34551
|
+
RightIconButton = /* @__PURE__ */ (0, import_react139.forwardRef)(function RightIconButton2(_param, ref) {
|
|
33609
34552
|
var name2 = _param.name, accessibilityLabel = _param.accessibilityLabel, type = _param.type, pressableProps = _object_without_properties(_param, [
|
|
33610
34553
|
"name",
|
|
33611
34554
|
"accessibilityLabel",
|
|
33612
34555
|
"type"
|
|
33613
34556
|
]);
|
|
33614
34557
|
var adaptive2 = useAdaptive();
|
|
33615
|
-
return (0,
|
|
34558
|
+
return (0, import_jsx_runtime163.jsx)(import_react_native115.TouchableOpacity, _object_spread_props(_object_spread({
|
|
33616
34559
|
ref,
|
|
33617
|
-
style:
|
|
34560
|
+
style: styles29.common,
|
|
33618
34561
|
hitSlop: HIT_SLOP
|
|
33619
34562
|
}, pressableProps), {
|
|
33620
|
-
children: (0,
|
|
34563
|
+
children: (0, import_jsx_runtime163.jsx)(Icon_default, {
|
|
33621
34564
|
color: adaptive2.grey400,
|
|
33622
34565
|
size: 24,
|
|
33623
34566
|
name: name2,
|
|
@@ -33627,7 +34570,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
33627
34570
|
}));
|
|
33628
34571
|
});
|
|
33629
34572
|
TEXT_BUTTON_TYPOGRAPHY = "st10";
|
|
33630
|
-
|
|
34573
|
+
styles29 = import_react_native115.StyleSheet.create({
|
|
33631
34574
|
common: {
|
|
33632
34575
|
marginLeft: 24
|
|
33633
34576
|
},
|
|
@@ -33651,7 +34594,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
33651
34594
|
]);
|
|
33652
34595
|
var adaptive2 = useAdaptive();
|
|
33653
34596
|
var typography = useTypographyTheme().typography;
|
|
33654
|
-
var titleTextStyle = (0,
|
|
34597
|
+
var titleTextStyle = (0, import_react140.useMemo)(function() {
|
|
33655
34598
|
var maxFontSize = preventFontScalingA11y ? defaultTypographyMap[TITLE_TYPOGRAPHY].fontSize : MAX_FONT_SIZE;
|
|
33656
34599
|
var maxLineHeight = preventFontScalingA11y ? defaultTypographyMap[TITLE_TYPOGRAPHY].lineHeight : MAX_LINE_HEIGHT;
|
|
33657
34600
|
return {
|
|
@@ -33662,7 +34605,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
33662
34605
|
preventFontScalingA11y,
|
|
33663
34606
|
typography
|
|
33664
34607
|
]);
|
|
33665
|
-
return (0,
|
|
34608
|
+
return (0, import_jsx_runtime164.jsx)(Txt_default, _object_spread({
|
|
33666
34609
|
typography: TITLE_TYPOGRAPHY,
|
|
33667
34610
|
color: color !== null && color !== void 0 ? color : adaptive2.grey900,
|
|
33668
34611
|
fontWeight,
|
|
@@ -33678,7 +34621,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
33678
34621
|
]);
|
|
33679
34622
|
var adaptive2 = useAdaptive();
|
|
33680
34623
|
var typography = useTypographyTheme().typography;
|
|
33681
|
-
var titleTextStyle = (0,
|
|
34624
|
+
var titleTextStyle = (0, import_react140.useMemo)(function() {
|
|
33682
34625
|
var maxFontSize = preventFontScalingA11y ? defaultTypographyMap[SUBTITLE_TYPOGRAPHY].fontSize : MAX_FONT_SIZE;
|
|
33683
34626
|
var maxLineHeight = preventFontScalingA11y ? defaultTypographyMap[SUBTITLE_TYPOGRAPHY].lineHeight : MAX_LINE_HEIGHT;
|
|
33684
34627
|
return {
|
|
@@ -33689,7 +34632,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
33689
34632
|
preventFontScalingA11y,
|
|
33690
34633
|
typography
|
|
33691
34634
|
]);
|
|
33692
|
-
return (0,
|
|
34635
|
+
return (0, import_jsx_runtime164.jsx)(Txt_default, _object_spread({
|
|
33693
34636
|
typography: SUBTITLE_TYPOGRAPHY,
|
|
33694
34637
|
color: color !== null && color !== void 0 ? color : adaptive2.grey600,
|
|
33695
34638
|
fontWeight: "regular",
|
|
@@ -33700,28 +34643,28 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
33700
34643
|
}
|
|
33701
34644
|
function Title(param) {
|
|
33702
34645
|
var upper = param.upper, lower = param.lower;
|
|
33703
|
-
return (0,
|
|
33704
|
-
style:
|
|
34646
|
+
return (0, import_jsx_runtime164.jsxs)(import_react_native116.View, {
|
|
34647
|
+
style: styles30.title,
|
|
33705
34648
|
children: [
|
|
33706
34649
|
upper,
|
|
33707
34650
|
lower
|
|
33708
34651
|
]
|
|
33709
34652
|
});
|
|
33710
34653
|
}
|
|
33711
|
-
var
|
|
34654
|
+
var import_jsx_runtime164, import_react140, import_react_native116, TITLE_TYPOGRAPHY, SUBTITLE_TYPOGRAPHY, styles30;
|
|
33712
34655
|
var init_Title = __esm({
|
|
33713
34656
|
"../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/components/navbar/ReactNavigationHelper/Title.js"() {
|
|
33714
34657
|
init_object_spread();
|
|
33715
34658
|
init_object_without_properties();
|
|
33716
|
-
|
|
34659
|
+
import_jsx_runtime164 = __toESM(require_jsx_runtime());
|
|
33717
34660
|
init_core();
|
|
33718
34661
|
init_txt();
|
|
33719
|
-
|
|
33720
|
-
|
|
34662
|
+
import_react140 = __toESM(require_react());
|
|
34663
|
+
import_react_native116 = __toESM(require_react_native());
|
|
33721
34664
|
init_constants11();
|
|
33722
34665
|
TITLE_TYPOGRAPHY = "t5";
|
|
33723
34666
|
SUBTITLE_TYPOGRAPHY = "t7";
|
|
33724
|
-
|
|
34667
|
+
styles30 = import_react_native116.StyleSheet.create({
|
|
33725
34668
|
title: {
|
|
33726
34669
|
alignItems: "center"
|
|
33727
34670
|
}
|
|
@@ -33733,14 +34676,14 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
33733
34676
|
function byPlatform(_param) {
|
|
33734
34677
|
var props = _extends({}, _object_destructuring_empty(_param));
|
|
33735
34678
|
var _props_Platform_OS;
|
|
33736
|
-
return ((_props_Platform_OS = props[
|
|
34679
|
+
return ((_props_Platform_OS = props[import_react_native117.Platform.OS]) !== null && _props_Platform_OS !== void 0 ? _props_Platform_OS : props.fallback)();
|
|
33737
34680
|
}
|
|
33738
|
-
var
|
|
34681
|
+
var import_react_native117;
|
|
33739
34682
|
var init_byPlatform = __esm({
|
|
33740
34683
|
"../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/components/navbar/ReactNavigationHelper/byPlatform.js"() {
|
|
33741
34684
|
init_extends();
|
|
33742
34685
|
init_object_destructuring_empty();
|
|
33743
|
-
|
|
34686
|
+
import_react_native117 = __toESM(require_react_native());
|
|
33744
34687
|
}
|
|
33745
34688
|
});
|
|
33746
34689
|
|
|
@@ -33749,12 +34692,12 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
33749
34692
|
var _param_marginLeft = _param.marginLeft, marginLeft = _param_marginLeft === void 0 ? IOS_LEFT_MARGIN : _param_marginLeft, props = _object_without_properties(_param, [
|
|
33750
34693
|
"marginLeft"
|
|
33751
34694
|
]);
|
|
33752
|
-
return (0,
|
|
34695
|
+
return (0, import_jsx_runtime165.jsx)(import_react_native118.View, _object_spread({
|
|
33753
34696
|
style: [
|
|
33754
34697
|
{
|
|
33755
34698
|
marginLeft: -IOS_DEFAULT_MARGIN + marginLeft
|
|
33756
34699
|
},
|
|
33757
|
-
|
|
34700
|
+
styles31.ios
|
|
33758
34701
|
]
|
|
33759
34702
|
}, props));
|
|
33760
34703
|
}
|
|
@@ -33762,38 +34705,38 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
33762
34705
|
var _param_marginLeft = _param.marginLeft, marginLeft = _param_marginLeft === void 0 ? ANDROID_LEFT_MARGIN : _param_marginLeft, props = _object_without_properties(_param, [
|
|
33763
34706
|
"marginLeft"
|
|
33764
34707
|
]);
|
|
33765
|
-
return (0,
|
|
34708
|
+
return (0, import_jsx_runtime165.jsx)(import_react_native118.View, _object_spread({
|
|
33766
34709
|
style: [
|
|
33767
34710
|
{
|
|
33768
34711
|
marginLeft: -ANDROID_DEFAULT_MARGIN + marginLeft
|
|
33769
34712
|
},
|
|
33770
|
-
|
|
34713
|
+
styles31.android
|
|
33771
34714
|
]
|
|
33772
34715
|
}, props));
|
|
33773
34716
|
}
|
|
33774
34717
|
function HeaderLeft(props) {
|
|
33775
34718
|
return byPlatform({
|
|
33776
34719
|
ios: function() {
|
|
33777
|
-
return (0,
|
|
34720
|
+
return (0, import_jsx_runtime165.jsx)(IOSHeaderLeft, _object_spread({}, props));
|
|
33778
34721
|
},
|
|
33779
34722
|
android: function() {
|
|
33780
|
-
return (0,
|
|
34723
|
+
return (0, import_jsx_runtime165.jsx)(AndroidHeaderLeft, _object_spread({}, props));
|
|
33781
34724
|
},
|
|
33782
34725
|
fallback: function() {
|
|
33783
|
-
return (0,
|
|
34726
|
+
return (0, import_jsx_runtime165.jsx)(IOSHeaderLeft, _object_spread({}, props));
|
|
33784
34727
|
}
|
|
33785
34728
|
});
|
|
33786
34729
|
}
|
|
33787
|
-
var
|
|
34730
|
+
var import_jsx_runtime165, import_react_native118, styles31;
|
|
33788
34731
|
var init_HeaderLeft = __esm({
|
|
33789
34732
|
"../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/components/navbar/ReactNavigationHelper/HeaderLeft.js"() {
|
|
33790
34733
|
init_object_spread();
|
|
33791
34734
|
init_object_without_properties();
|
|
33792
|
-
|
|
33793
|
-
|
|
34735
|
+
import_jsx_runtime165 = __toESM(require_jsx_runtime());
|
|
34736
|
+
import_react_native118 = __toESM(require_react_native());
|
|
33794
34737
|
init_byPlatform();
|
|
33795
34738
|
init_constants11();
|
|
33796
|
-
|
|
34739
|
+
styles31 = import_react_native118.StyleSheet.create({
|
|
33797
34740
|
ios: {},
|
|
33798
34741
|
android: {
|
|
33799
34742
|
marginRight: 32
|
|
@@ -33804,37 +34747,37 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
33804
34747
|
|
|
33805
34748
|
// ../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/components/navbar/ReactNavigationHelper/HeaderRight.js
|
|
33806
34749
|
function IOSHeaderRight(props) {
|
|
33807
|
-
return (0,
|
|
33808
|
-
style:
|
|
34750
|
+
return (0, import_jsx_runtime166.jsx)(import_react_native119.View, _object_spread({
|
|
34751
|
+
style: styles32.ios
|
|
33809
34752
|
}, props));
|
|
33810
34753
|
}
|
|
33811
34754
|
function AndroidHeaderRight(props) {
|
|
33812
|
-
return (0,
|
|
33813
|
-
style:
|
|
34755
|
+
return (0, import_jsx_runtime166.jsx)(import_react_native119.View, _object_spread({
|
|
34756
|
+
style: styles32.android
|
|
33814
34757
|
}, props));
|
|
33815
34758
|
}
|
|
33816
34759
|
function HeaderRight(props) {
|
|
33817
34760
|
return byPlatform({
|
|
33818
34761
|
ios: function() {
|
|
33819
|
-
return (0,
|
|
34762
|
+
return (0, import_jsx_runtime166.jsx)(IOSHeaderRight, _object_spread({}, props));
|
|
33820
34763
|
},
|
|
33821
34764
|
android: function() {
|
|
33822
|
-
return (0,
|
|
34765
|
+
return (0, import_jsx_runtime166.jsx)(AndroidHeaderRight, _object_spread({}, props));
|
|
33823
34766
|
},
|
|
33824
34767
|
fallback: function() {
|
|
33825
|
-
return (0,
|
|
34768
|
+
return (0, import_jsx_runtime166.jsx)(IOSHeaderRight, _object_spread({}, props));
|
|
33826
34769
|
}
|
|
33827
34770
|
});
|
|
33828
34771
|
}
|
|
33829
|
-
var
|
|
34772
|
+
var import_jsx_runtime166, import_react_native119, styles32;
|
|
33830
34773
|
var init_HeaderRight = __esm({
|
|
33831
34774
|
"../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/components/navbar/ReactNavigationHelper/HeaderRight.js"() {
|
|
33832
34775
|
init_object_spread();
|
|
33833
|
-
|
|
33834
|
-
|
|
34776
|
+
import_jsx_runtime166 = __toESM(require_jsx_runtime());
|
|
34777
|
+
import_react_native119 = __toESM(require_react_native());
|
|
33835
34778
|
init_byPlatform();
|
|
33836
34779
|
init_constants11();
|
|
33837
|
-
|
|
34780
|
+
styles32 = import_react_native119.StyleSheet.create({
|
|
33838
34781
|
ios: {
|
|
33839
34782
|
marginRight: -IOS_DEFAULT_MARGIN + RIGHT_MARGIN,
|
|
33840
34783
|
flexDirection: "row"
|
|
@@ -33853,7 +34796,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
33853
34796
|
"style",
|
|
33854
34797
|
"withHeaderLeft"
|
|
33855
34798
|
]);
|
|
33856
|
-
return (0,
|
|
34799
|
+
return (0, import_jsx_runtime167.jsx)(import_react_native120.View, _object_spread({
|
|
33857
34800
|
style
|
|
33858
34801
|
}, props));
|
|
33859
34802
|
}
|
|
@@ -33862,7 +34805,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
33862
34805
|
"style",
|
|
33863
34806
|
"withHeaderLeft"
|
|
33864
34807
|
]);
|
|
33865
|
-
return (0,
|
|
34808
|
+
return (0, import_jsx_runtime167.jsx)(import_react_native120.View, _object_spread({
|
|
33866
34809
|
style: [
|
|
33867
34810
|
{
|
|
33868
34811
|
marginLeft: withHeaderLeft ? 0 : -ANDROID_DEFAULT_MARGIN + 24
|
|
@@ -33874,23 +34817,23 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
33874
34817
|
function HeaderTitle(props) {
|
|
33875
34818
|
return byPlatform({
|
|
33876
34819
|
ios: function() {
|
|
33877
|
-
return (0,
|
|
34820
|
+
return (0, import_jsx_runtime167.jsx)(IOSHeaderTitle, _object_spread({}, props));
|
|
33878
34821
|
},
|
|
33879
34822
|
android: function() {
|
|
33880
|
-
return (0,
|
|
34823
|
+
return (0, import_jsx_runtime167.jsx)(AndroidHeaderTitle, _object_spread({}, props));
|
|
33881
34824
|
},
|
|
33882
34825
|
fallback: function() {
|
|
33883
|
-
return (0,
|
|
34826
|
+
return (0, import_jsx_runtime167.jsx)(IOSHeaderTitle, _object_spread({}, props));
|
|
33884
34827
|
}
|
|
33885
34828
|
});
|
|
33886
34829
|
}
|
|
33887
|
-
var
|
|
34830
|
+
var import_jsx_runtime167, import_react_native120;
|
|
33888
34831
|
var init_HeaderTitle = __esm({
|
|
33889
34832
|
"../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/components/navbar/ReactNavigationHelper/HeaderTitle.js"() {
|
|
33890
34833
|
init_object_spread();
|
|
33891
34834
|
init_object_without_properties();
|
|
33892
|
-
|
|
33893
|
-
|
|
34835
|
+
import_jsx_runtime167 = __toESM(require_jsx_runtime());
|
|
34836
|
+
import_react_native120 = __toESM(require_react_native());
|
|
33894
34837
|
init_byPlatform();
|
|
33895
34838
|
init_constants11();
|
|
33896
34839
|
}
|
|
@@ -33900,14 +34843,14 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
33900
34843
|
function CloseButton(param) {
|
|
33901
34844
|
var tintColor = param.tintColor, onPress = param.onPress;
|
|
33902
34845
|
var adaptive2 = useAdaptive();
|
|
33903
|
-
return (0,
|
|
34846
|
+
return (0, import_jsx_runtime168.jsx)(NavbarCloseButton, {
|
|
33904
34847
|
onPress,
|
|
33905
34848
|
color: tintColor !== null && tintColor !== void 0 ? tintColor : adaptive2.grey900
|
|
33906
34849
|
});
|
|
33907
34850
|
}
|
|
33908
34851
|
function NavbarCloseButton(param) {
|
|
33909
34852
|
var onPress = param.onPress, color = param.color;
|
|
33910
|
-
return (0,
|
|
34853
|
+
return (0, import_jsx_runtime168.jsx)(import_react_native121.TouchableOpacity, {
|
|
33911
34854
|
hitSlop: {
|
|
33912
34855
|
top: 10,
|
|
33913
34856
|
right: 10,
|
|
@@ -33922,12 +34865,12 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
33922
34865
|
accessible: true,
|
|
33923
34866
|
accessibilityLabel: "\uB2EB\uAE30",
|
|
33924
34867
|
accessibilityRole: "button",
|
|
33925
|
-
children: (0,
|
|
34868
|
+
children: (0, import_jsx_runtime168.jsx)(import_react_native121.View, {
|
|
33926
34869
|
style: {
|
|
33927
34870
|
width: 24,
|
|
33928
34871
|
height: 24
|
|
33929
34872
|
},
|
|
33930
|
-
children: (0,
|
|
34873
|
+
children: (0, import_jsx_runtime168.jsx)(react_native_svg_exports.SvgXml, {
|
|
33931
34874
|
width: 24,
|
|
33932
34875
|
height: 24,
|
|
33933
34876
|
xml: CLOSE_ICON.replace(/fill="#[0-9a-fA-F]{6}"/g, 'fill="'.concat(color, '"'))
|
|
@@ -33935,12 +34878,12 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
33935
34878
|
})
|
|
33936
34879
|
});
|
|
33937
34880
|
}
|
|
33938
|
-
var
|
|
34881
|
+
var import_jsx_runtime168, import_react_native121, CLOSE_ICON;
|
|
33939
34882
|
var init_CloseButton = __esm({
|
|
33940
34883
|
"../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/components/navbar/ReactNavigationHelper/CloseButton.js"() {
|
|
33941
|
-
|
|
34884
|
+
import_jsx_runtime168 = __toESM(require_jsx_runtime());
|
|
33942
34885
|
init_react_native_svg();
|
|
33943
|
-
|
|
34886
|
+
import_react_native121 = __toESM(require_react_native());
|
|
33944
34887
|
init_core();
|
|
33945
34888
|
CLOSE_ICON = '<svg fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path clip-rule="evenodd" d="m13.8151 11.9999 5.651-5.65096c.1114-.11143.1999-.24373.2603-.38934.0603-.14561.0914-.30168.0915-.45931 0-.15763-.031-.31372-.0913-.45937-.0602-.14564-.1486-.27799-.26-.38948-.1115-.1115-.2438-.19995-.3894-.26031-.1456-.06037-.3017-.09146-.4593-.09151-.1576-.00004-.3137.03096-.4594.09123-.1456.06028-.278.14866-.3894.26009l-5.651 5.65196-5.65205-5.65196c-.22764-.21263-.52899-.32849-.84044-.32313-.31145.00535-.60863.13151-.82883.35184-.2202.22032-.34618.51758-.35135.82903-.00517.31146.11087.61274.32362.84026l5.65205 5.65096-5.65205 5.651c-.16704.1682-.28062.3821-.32645.6146-.04583.2326-.02187.4736.06887.6926s.24421.4062.44111.5382c.19689.132.42842.2029.66547.2036.307 0 .614-.117.848-.351l5.65205-5.652 5.651 5.652c.1112.1117.2435.2003.3891.2607.1456.0605.3017.0916.4594.0916.1576 0 .3137-.0311.4593-.0916.1456-.0604.2779-.149.3892-.2607.1115-.1114.2-.2438.2604-.3894.0604-.1457.0915-.3019.0915-.4596s-.0311-.3138-.0915-.4595-.1489-.278-.2604-.3895z" fill="#b0b8c1" fill-rule="evenodd"/></svg>';
|
|
33946
34889
|
}
|
|
@@ -33985,22 +34928,22 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
33985
34928
|
// ../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/extensions/page-navbar/CompatAccessoryButton.js
|
|
33986
34929
|
function CompatAccessoryButton(props) {
|
|
33987
34930
|
if (props.type === "text") {
|
|
33988
|
-
return (0,
|
|
34931
|
+
return (0, import_jsx_runtime169.jsx)(ReactNavigationNavbar.RightTextButton, {
|
|
33989
34932
|
onPress: props.onClick,
|
|
33990
34933
|
children: props.title
|
|
33991
34934
|
});
|
|
33992
34935
|
}
|
|
33993
|
-
return (0,
|
|
34936
|
+
return (0, import_jsx_runtime169.jsx)(ReactNavigationNavbar.RightIconButton, {
|
|
33994
34937
|
onPress: props.onClick,
|
|
33995
34938
|
type: props.iconType,
|
|
33996
34939
|
name: props.name,
|
|
33997
34940
|
accessibilityLabel: props.alt
|
|
33998
34941
|
});
|
|
33999
34942
|
}
|
|
34000
|
-
var
|
|
34943
|
+
var import_jsx_runtime169;
|
|
34001
34944
|
var init_CompatAccessoryButton = __esm({
|
|
34002
34945
|
"../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/extensions/page-navbar/CompatAccessoryButton.js"() {
|
|
34003
|
-
|
|
34946
|
+
import_jsx_runtime169 = __toESM(require_jsx_runtime());
|
|
34004
34947
|
init_navbar();
|
|
34005
34948
|
}
|
|
34006
34949
|
});
|
|
@@ -34105,20 +35048,20 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
34105
35048
|
});
|
|
34106
35049
|
|
|
34107
35050
|
// ../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/extensions/page-navbar/components/TransparentNavigationBar/TransparentNavigationScrollView.js
|
|
34108
|
-
var
|
|
35051
|
+
var import_jsx_runtime170, import_react141, import_react_native122, TransparentNavigationScrollView;
|
|
34109
35052
|
var init_TransparentNavigationScrollView = __esm({
|
|
34110
35053
|
"../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/extensions/page-navbar/components/TransparentNavigationBar/TransparentNavigationScrollView.js"() {
|
|
34111
35054
|
init_object_spread();
|
|
34112
35055
|
init_object_spread_props();
|
|
34113
35056
|
init_object_without_properties();
|
|
34114
|
-
|
|
35057
|
+
import_jsx_runtime170 = __toESM(require_jsx_runtime());
|
|
34115
35058
|
init_src4();
|
|
34116
35059
|
init_elements();
|
|
34117
35060
|
init_esm5();
|
|
34118
35061
|
init_core();
|
|
34119
|
-
|
|
34120
|
-
|
|
34121
|
-
TransparentNavigationScrollView = /* @__PURE__ */ (0,
|
|
35062
|
+
import_react141 = __toESM(require_react());
|
|
35063
|
+
import_react_native122 = __toESM(require_react_native());
|
|
35064
|
+
TransparentNavigationScrollView = /* @__PURE__ */ (0, import_react141.forwardRef)(function TransparentNavigationScrollView2(_param, ref) {
|
|
34122
35065
|
var scrollEventThrottle = _param.scrollEventThrottle, onScroll = _param.onScroll, props = _object_without_properties(_param, [
|
|
34123
35066
|
"scrollEventThrottle",
|
|
34124
35067
|
"onScroll"
|
|
@@ -34126,22 +35069,22 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
34126
35069
|
var height = useHeaderHeight();
|
|
34127
35070
|
var adaptive2 = useAdaptive();
|
|
34128
35071
|
var colorPreference = useColorPreference().colorPreference;
|
|
34129
|
-
var opacity = (0,
|
|
35072
|
+
var opacity = (0, import_react141.useRef)(new import_react_native122.Animated.Value(0)).current;
|
|
34130
35073
|
var animatedStyle = {
|
|
34131
35074
|
opacity
|
|
34132
35075
|
};
|
|
34133
|
-
var runOpacityAnimation = (0,
|
|
35076
|
+
var runOpacityAnimation = (0, import_react141.useCallback)(function(param) {
|
|
34134
35077
|
var isBlur = param.isBlur;
|
|
34135
|
-
|
|
35078
|
+
import_react_native122.Animated.spring(opacity, _object_spread({
|
|
34136
35079
|
toValue: isBlur ? 1 : 0,
|
|
34137
35080
|
useNativeDriver: true
|
|
34138
35081
|
}, spring.quick)).start();
|
|
34139
35082
|
}, [
|
|
34140
35083
|
opacity
|
|
34141
35084
|
]);
|
|
34142
|
-
return (0,
|
|
35085
|
+
return (0, import_jsx_runtime170.jsxs)(import_jsx_runtime170.Fragment, {
|
|
34143
35086
|
children: [
|
|
34144
|
-
(0,
|
|
35087
|
+
(0, import_jsx_runtime170.jsx)(IOScrollView, _object_spread_props(_object_spread({}, props), {
|
|
34145
35088
|
ref,
|
|
34146
35089
|
scrollEventThrottle: scrollEventThrottle !== null && scrollEventThrottle !== void 0 ? scrollEventThrottle : 300,
|
|
34147
35090
|
onScroll: function(e4) {
|
|
@@ -34152,15 +35095,15 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
34152
35095
|
onScroll === null || onScroll === void 0 ? void 0 : onScroll(e4);
|
|
34153
35096
|
}
|
|
34154
35097
|
})),
|
|
34155
|
-
(0,
|
|
35098
|
+
(0, import_jsx_runtime170.jsx)(import_react_native122.Animated.View, {
|
|
34156
35099
|
style: [
|
|
34157
|
-
|
|
35100
|
+
import_react_native122.StyleSheet.absoluteFill,
|
|
34158
35101
|
{
|
|
34159
35102
|
height
|
|
34160
35103
|
},
|
|
34161
35104
|
animatedStyle
|
|
34162
35105
|
],
|
|
34163
|
-
children: (0,
|
|
35106
|
+
children: (0, import_jsx_runtime170.jsx)(BlurView, {
|
|
34164
35107
|
blurType: colorPreference,
|
|
34165
35108
|
blurAmount: 10,
|
|
34166
35109
|
vibrancyEffect: true,
|
|
@@ -34202,10 +35145,10 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
34202
35145
|
function PageAccessoryButtons(param) {
|
|
34203
35146
|
var children = param.children;
|
|
34204
35147
|
var navigation = (0, native_exports.useNavigation)();
|
|
34205
|
-
(0,
|
|
35148
|
+
(0, import_react142.useLayoutEffect)(function() {
|
|
34206
35149
|
navigation.setOptions({
|
|
34207
35150
|
headerRight: function() {
|
|
34208
|
-
return (0,
|
|
35151
|
+
return (0, import_jsx_runtime171.jsx)(ReactNavigationNavbar.HeaderRight, {
|
|
34209
35152
|
children
|
|
34210
35153
|
});
|
|
34211
35154
|
}
|
|
@@ -34216,13 +35159,13 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
34216
35159
|
]);
|
|
34217
35160
|
return null;
|
|
34218
35161
|
}
|
|
34219
|
-
var
|
|
35162
|
+
var import_jsx_runtime171, import_react142;
|
|
34220
35163
|
var init_PageAccessoryButtons = __esm({
|
|
34221
35164
|
"../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/extensions/page-navbar/PageAccessoryButtons.js"() {
|
|
34222
|
-
|
|
35165
|
+
import_jsx_runtime171 = __toESM(require_jsx_runtime());
|
|
34223
35166
|
init_native();
|
|
34224
35167
|
init_navbar();
|
|
34225
|
-
|
|
35168
|
+
import_react142 = __toESM(require_react());
|
|
34226
35169
|
}
|
|
34227
35170
|
});
|
|
34228
35171
|
|
|
@@ -34234,7 +35177,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
34234
35177
|
"style"
|
|
34235
35178
|
]);
|
|
34236
35179
|
var navigation = (0, native_exports.useNavigation)();
|
|
34237
|
-
(0,
|
|
35180
|
+
(0, import_react143.useLayoutEffect)(function() {
|
|
34238
35181
|
navigation.setOptions({
|
|
34239
35182
|
/**
|
|
34240
35183
|
* headerTitle을 설정하면 뒤로가기 자체 정의한 headerLeft를 무시하고
|
|
@@ -34243,10 +35186,10 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
34243
35186
|
*/
|
|
34244
35187
|
headerBackVisible: false,
|
|
34245
35188
|
headerTitle: function() {
|
|
34246
|
-
return (0,
|
|
35189
|
+
return (0, import_jsx_runtime172.jsx)(ReactNavigationNavbar.HeaderTitle, {
|
|
34247
35190
|
withHeaderLeft,
|
|
34248
35191
|
style,
|
|
34249
|
-
children: typeof children === "string" ? (0,
|
|
35192
|
+
children: typeof children === "string" ? (0, import_jsx_runtime172.jsx)(ReactNavigationNavbar.TitleTxt, _object_spread_props(_object_spread({}, titleTxtProps), {
|
|
34250
35193
|
children
|
|
34251
35194
|
})) : children
|
|
34252
35195
|
});
|
|
@@ -34261,16 +35204,16 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
34261
35204
|
]);
|
|
34262
35205
|
return null;
|
|
34263
35206
|
}
|
|
34264
|
-
var
|
|
35207
|
+
var import_jsx_runtime172, import_react143;
|
|
34265
35208
|
var init_PageTitle = __esm({
|
|
34266
35209
|
"../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/extensions/page-navbar/PageTitle.js"() {
|
|
34267
35210
|
init_object_spread();
|
|
34268
35211
|
init_object_spread_props();
|
|
34269
35212
|
init_object_without_properties();
|
|
34270
|
-
|
|
35213
|
+
import_jsx_runtime172 = __toESM(require_jsx_runtime());
|
|
34271
35214
|
init_native();
|
|
34272
35215
|
init_navbar();
|
|
34273
|
-
|
|
35216
|
+
import_react143 = __toESM(require_react());
|
|
34274
35217
|
}
|
|
34275
35218
|
});
|
|
34276
35219
|
|
|
@@ -34280,7 +35223,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
34280
35223
|
type: "showAlways"
|
|
34281
35224
|
} : _param_preference;
|
|
34282
35225
|
var navigation = (0, native_exports.useNavigation)();
|
|
34283
|
-
(0,
|
|
35226
|
+
(0, import_react144.useLayoutEffect)(function() {
|
|
34284
35227
|
navigation.setOptions({
|
|
34285
35228
|
headerStyle: {
|
|
34286
35229
|
backgroundColor: colors.background
|
|
@@ -34292,23 +35235,23 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
34292
35235
|
navigation
|
|
34293
35236
|
]);
|
|
34294
35237
|
if (preference.type === "transparent") {
|
|
34295
|
-
return (0,
|
|
35238
|
+
return (0, import_jsx_runtime173.jsx)(TransparentPage, {
|
|
34296
35239
|
children
|
|
34297
35240
|
});
|
|
34298
35241
|
}
|
|
34299
35242
|
if (preference.type === "none") {
|
|
34300
|
-
return (0,
|
|
35243
|
+
return (0, import_jsx_runtime173.jsx)(NoneHeaderPage, {
|
|
34301
35244
|
children
|
|
34302
35245
|
});
|
|
34303
35246
|
}
|
|
34304
|
-
return (0,
|
|
35247
|
+
return (0, import_jsx_runtime173.jsx)(import_jsx_runtime173.Fragment, {
|
|
34305
35248
|
children
|
|
34306
35249
|
});
|
|
34307
35250
|
}
|
|
34308
35251
|
function NoneHeaderPage(param) {
|
|
34309
35252
|
var children = param.children;
|
|
34310
35253
|
var navigation = (0, native_exports.useNavigation)();
|
|
34311
|
-
(0,
|
|
35254
|
+
(0, import_react144.useLayoutEffect)(function() {
|
|
34312
35255
|
navigation.setOptions({
|
|
34313
35256
|
headerShown: false,
|
|
34314
35257
|
headerLeft: function() {
|
|
@@ -34324,29 +35267,29 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
34324
35267
|
}, [
|
|
34325
35268
|
navigation
|
|
34326
35269
|
]);
|
|
34327
|
-
return (0,
|
|
35270
|
+
return (0, import_jsx_runtime173.jsx)(import_jsx_runtime173.Fragment, {
|
|
34328
35271
|
children
|
|
34329
35272
|
});
|
|
34330
35273
|
}
|
|
34331
35274
|
function TransparentPage(param) {
|
|
34332
35275
|
var children = param.children;
|
|
34333
35276
|
var navigation = (0, native_exports.useNavigation)();
|
|
34334
|
-
(0,
|
|
35277
|
+
(0, import_react144.useLayoutEffect)(function() {
|
|
34335
35278
|
navigation.setOptions(TransparentNavigation.screenOptions);
|
|
34336
35279
|
}, [
|
|
34337
35280
|
navigation
|
|
34338
35281
|
]);
|
|
34339
|
-
return (0,
|
|
35282
|
+
return (0, import_jsx_runtime173.jsx)(import_jsx_runtime173.Fragment, {
|
|
34340
35283
|
children
|
|
34341
35284
|
});
|
|
34342
35285
|
}
|
|
34343
|
-
var
|
|
35286
|
+
var import_jsx_runtime173, import_react144;
|
|
34344
35287
|
var init_PageNavbar = __esm({
|
|
34345
35288
|
"../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/extensions/page-navbar/PageNavbar.js"() {
|
|
34346
|
-
|
|
35289
|
+
import_jsx_runtime173 = __toESM(require_jsx_runtime());
|
|
34347
35290
|
init_native();
|
|
34348
35291
|
init_esm();
|
|
34349
|
-
|
|
35292
|
+
import_react144 = __toESM(require_react());
|
|
34350
35293
|
init_navbar();
|
|
34351
35294
|
init_CompatAccessoryButton();
|
|
34352
35295
|
init_TransparentNavigationBar();
|
|
@@ -34413,7 +35356,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
34413
35356
|
// ../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/extensions/external-web-view-screen/Navigation.js
|
|
34414
35357
|
function useAdaptive2() {
|
|
34415
35358
|
var colorPreference = useColorPreference().colorPreference;
|
|
34416
|
-
var adaptive2 = (0,
|
|
35359
|
+
var adaptive2 = (0, import_react145.useMemo)(function() {
|
|
34417
35360
|
return {
|
|
34418
35361
|
adaptive: colorsByPreference[colorPreference]
|
|
34419
35362
|
};
|
|
@@ -34423,7 +35366,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
34423
35366
|
return adaptive2;
|
|
34424
35367
|
}
|
|
34425
35368
|
function hasValidChild(children) {
|
|
34426
|
-
return
|
|
35369
|
+
return import_react145.Children.toArray(children).length > 0;
|
|
34427
35370
|
}
|
|
34428
35371
|
function Navigation(param) {
|
|
34429
35372
|
var children = param.children;
|
|
@@ -34431,7 +35374,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
34431
35374
|
var adaptive2 = useAdaptive2();
|
|
34432
35375
|
var colorPreference = useColorPreference().colorPreference;
|
|
34433
35376
|
var isValidChild = hasValidChild(children);
|
|
34434
|
-
(0,
|
|
35377
|
+
(0, import_react145.useLayoutEffect)(function() {
|
|
34435
35378
|
var clearHeaderStyle = function clearHeaderStyle2() {
|
|
34436
35379
|
navigation.setOptions({
|
|
34437
35380
|
headerStyle: null,
|
|
@@ -34457,13 +35400,13 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
34457
35400
|
isValidChild,
|
|
34458
35401
|
adaptive2.background
|
|
34459
35402
|
]);
|
|
34460
|
-
return (0,
|
|
35403
|
+
return (0, import_jsx_runtime174.jsx)(import_jsx_runtime174.Fragment, {
|
|
34461
35404
|
children
|
|
34462
35405
|
});
|
|
34463
35406
|
}
|
|
34464
35407
|
function useBackOrCloseNavigation() {
|
|
34465
35408
|
var navigation = (0, native_exports.useNavigation)();
|
|
34466
|
-
return (0,
|
|
35409
|
+
return (0, import_react145.useCallback)(function() {
|
|
34467
35410
|
if (navigation.canGoBack()) {
|
|
34468
35411
|
navigation.goBack();
|
|
34469
35412
|
} else {
|
|
@@ -34496,7 +35439,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
34496
35439
|
adaptive2.greyOpacity300,
|
|
34497
35440
|
adaptive2.greyOpacity100
|
|
34498
35441
|
];
|
|
34499
|
-
return (0,
|
|
35442
|
+
return (0, import_jsx_runtime174.jsxs)(import_react_native123.View, {
|
|
34500
35443
|
pointerEvents: "none",
|
|
34501
35444
|
style: [
|
|
34502
35445
|
{
|
|
@@ -34510,7 +35453,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
34510
35453
|
}
|
|
34511
35454
|
],
|
|
34512
35455
|
children: [
|
|
34513
|
-
(0,
|
|
35456
|
+
(0, import_jsx_runtime174.jsx)(import_react_native123.View, {
|
|
34514
35457
|
pointerEvents: "none",
|
|
34515
35458
|
style: [
|
|
34516
35459
|
{
|
|
@@ -34525,7 +35468,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
34525
35468
|
shadowStyle
|
|
34526
35469
|
]
|
|
34527
35470
|
}),
|
|
34528
|
-
(0,
|
|
35471
|
+
(0, import_jsx_runtime174.jsx)(LinearGradient2, {
|
|
34529
35472
|
degree: 90,
|
|
34530
35473
|
easing: "linear",
|
|
34531
35474
|
positions: [
|
|
@@ -34541,7 +35484,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
34541
35484
|
function NavigationLeft(param) {
|
|
34542
35485
|
var children = param.children, _param_visible = param.visible, visible = _param_visible === void 0 ? true : _param_visible;
|
|
34543
35486
|
var navigation = (0, native_exports.useNavigation)();
|
|
34544
|
-
(0,
|
|
35487
|
+
(0, import_react145.useLayoutEffect)(function() {
|
|
34545
35488
|
if (!hasValidChild(children) || !visible) {
|
|
34546
35489
|
navigation.setOptions({
|
|
34547
35490
|
headerLeft: null
|
|
@@ -34550,7 +35493,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
34550
35493
|
}
|
|
34551
35494
|
navigation.setOptions({
|
|
34552
35495
|
headerLeft: function() {
|
|
34553
|
-
return (0,
|
|
35496
|
+
return (0, import_jsx_runtime174.jsx)(import_jsx_runtime174.Fragment, {
|
|
34554
35497
|
children
|
|
34555
35498
|
});
|
|
34556
35499
|
}
|
|
@@ -34565,7 +35508,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
34565
35508
|
function NavigationRight(param) {
|
|
34566
35509
|
var children = param.children, _param_visible = param.visible, visible = _param_visible === void 0 ? true : _param_visible;
|
|
34567
35510
|
var navigation = (0, native_exports.useNavigation)();
|
|
34568
|
-
(0,
|
|
35511
|
+
(0, import_react145.useLayoutEffect)(function() {
|
|
34569
35512
|
if (!hasValidChild(children) || !visible) {
|
|
34570
35513
|
navigation.setOptions({
|
|
34571
35514
|
headerRight: null
|
|
@@ -34574,7 +35517,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
34574
35517
|
}
|
|
34575
35518
|
navigation.setOptions({
|
|
34576
35519
|
headerRight: function() {
|
|
34577
|
-
return (0,
|
|
35520
|
+
return (0, import_jsx_runtime174.jsx)(import_react_native123.View, {
|
|
34578
35521
|
style: {
|
|
34579
35522
|
marginRight: 4,
|
|
34580
35523
|
flexDirection: "row"
|
|
@@ -34594,7 +35537,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
34594
35537
|
var children = param.children, _param_visible = param.visible, visible = _param_visible === void 0 ? true : _param_visible;
|
|
34595
35538
|
var TITLE_HORIZONTAL_MARGIN = 100;
|
|
34596
35539
|
var navigation = (0, native_exports.useNavigation)();
|
|
34597
|
-
(0,
|
|
35540
|
+
(0, import_react145.useLayoutEffect)(function() {
|
|
34598
35541
|
if (!hasValidChild(children) || !visible) {
|
|
34599
35542
|
navigation.setOptions({
|
|
34600
35543
|
headerBackVisible: false,
|
|
@@ -34611,7 +35554,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
34611
35554
|
*/
|
|
34612
35555
|
headerBackVisible: false,
|
|
34613
35556
|
headerTitle: function() {
|
|
34614
|
-
return (0,
|
|
35557
|
+
return (0, import_jsx_runtime174.jsx)(import_react_native123.View, {
|
|
34615
35558
|
style: [
|
|
34616
35559
|
{
|
|
34617
35560
|
maxWidth: DEVICE_WIDTH - TITLE_HORIZONTAL_MARGIN,
|
|
@@ -34640,12 +35583,12 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
34640
35583
|
radius: 5
|
|
34641
35584
|
};
|
|
34642
35585
|
if (props.name !== void 0) {
|
|
34643
|
-
return (0,
|
|
35586
|
+
return (0, import_jsx_runtime174.jsx)(Asset2.Icon, {
|
|
34644
35587
|
name: props.name,
|
|
34645
35588
|
frameShape: frameShape2
|
|
34646
35589
|
});
|
|
34647
35590
|
}
|
|
34648
|
-
return (0,
|
|
35591
|
+
return (0, import_jsx_runtime174.jsx)(import_react_native123.Image, {
|
|
34649
35592
|
source: props.source,
|
|
34650
35593
|
style: {
|
|
34651
35594
|
overflow: "hidden",
|
|
@@ -34660,9 +35603,9 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
34660
35603
|
"style"
|
|
34661
35604
|
]);
|
|
34662
35605
|
var adaptive2 = useAdaptive2();
|
|
34663
|
-
return (0,
|
|
35606
|
+
return (0, import_jsx_runtime174.jsx)(PreventFontScaling, {
|
|
34664
35607
|
limit: 100,
|
|
34665
|
-
children: (0,
|
|
35608
|
+
children: (0, import_jsx_runtime174.jsx)(Txt_default, _object_spread({
|
|
34666
35609
|
typography: "st10",
|
|
34667
35610
|
fontWeight: "semibold",
|
|
34668
35611
|
color: adaptive2.grey900,
|
|
@@ -34677,7 +35620,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
34677
35620
|
var adaptive2 = useAdaptive2();
|
|
34678
35621
|
var tintColor = colorPreference === "light" ? adaptive2.greyOpacity400 : adaptive2.greyOpacity500;
|
|
34679
35622
|
var handleBack = useBackOrCloseNavigation();
|
|
34680
|
-
return (0,
|
|
35623
|
+
return (0, import_jsx_runtime174.jsx)(ReactNavigationNavbar.BackButton, {
|
|
34681
35624
|
tintColor,
|
|
34682
35625
|
onPress: function() {
|
|
34683
35626
|
onPress === null || onPress === void 0 ? void 0 : onPress();
|
|
@@ -34692,7 +35635,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
34692
35635
|
var colorPreference = useColorPreference().colorPreference;
|
|
34693
35636
|
var adaptive2 = useAdaptive2();
|
|
34694
35637
|
var tintColor = colorPreference === "light" ? adaptive2.greyOpacity400 : adaptive2.greyOpacity500;
|
|
34695
|
-
return (0,
|
|
35638
|
+
return (0, import_jsx_runtime174.jsx)(ReactNavigationNavbar.CloseButton, {
|
|
34696
35639
|
tintColor,
|
|
34697
35640
|
onPress: function() {
|
|
34698
35641
|
onPress === null || onPress === void 0 ? void 0 : onPress();
|
|
@@ -34700,17 +35643,17 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
34700
35643
|
}
|
|
34701
35644
|
});
|
|
34702
35645
|
}
|
|
34703
|
-
var
|
|
35646
|
+
var import_jsx_runtime174, import_react145, import_react_native123, BACKDROP_SHADOW_COLOR, DEVICE_WIDTH;
|
|
34704
35647
|
var init_Navigation = __esm({
|
|
34705
35648
|
"../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/extensions/external-web-view-screen/Navigation.js"() {
|
|
34706
35649
|
init_object_spread();
|
|
34707
35650
|
init_object_without_properties();
|
|
34708
|
-
|
|
35651
|
+
import_jsx_runtime174 = __toESM(require_jsx_runtime());
|
|
34709
35652
|
init_elements();
|
|
34710
35653
|
init_native();
|
|
34711
35654
|
init_esm();
|
|
34712
|
-
|
|
34713
|
-
|
|
35655
|
+
import_react145 = __toESM(require_react());
|
|
35656
|
+
import_react_native123 = __toESM(require_react_native());
|
|
34714
35657
|
init_src4();
|
|
34715
35658
|
init_asset();
|
|
34716
35659
|
init_gradient();
|
|
@@ -34719,39 +35662,39 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
34719
35662
|
init_txt();
|
|
34720
35663
|
init_ColorPreferenceProvider();
|
|
34721
35664
|
init_prevent_font_scaling();
|
|
34722
|
-
BACKDROP_SHADOW_COLOR =
|
|
35665
|
+
BACKDROP_SHADOW_COLOR = import_react_native123.Platform.select({
|
|
34723
35666
|
android: colors.greyOpacity400,
|
|
34724
35667
|
ios: colors.greyOpacity100,
|
|
34725
35668
|
default: colors.greyOpacity100
|
|
34726
35669
|
});
|
|
34727
|
-
DEVICE_WIDTH =
|
|
35670
|
+
DEVICE_WIDTH = import_react_native123.Dimensions.get("window").width;
|
|
34728
35671
|
}
|
|
34729
35672
|
});
|
|
34730
35673
|
|
|
34731
35674
|
// ../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/extensions/external-web-view-screen/ExternalWebViewScreen.js
|
|
34732
|
-
var
|
|
35675
|
+
var import_jsx_runtime175, import_react146, import_react_native124, ExternalWebViewScreen;
|
|
34733
35676
|
var init_ExternalWebViewScreen = __esm({
|
|
34734
35677
|
"../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/extensions/external-web-view-screen/ExternalWebViewScreen.js"() {
|
|
34735
35678
|
init_object_spread();
|
|
34736
35679
|
init_object_spread_props();
|
|
34737
35680
|
init_object_without_properties();
|
|
34738
|
-
|
|
35681
|
+
import_jsx_runtime175 = __toESM(require_jsx_runtime());
|
|
34739
35682
|
init_react_native_webview();
|
|
34740
|
-
|
|
34741
|
-
|
|
35683
|
+
import_react146 = __toESM(require_react());
|
|
35684
|
+
import_react_native124 = __toESM(require_react_native());
|
|
34742
35685
|
init_mergeRefs2();
|
|
34743
35686
|
init_Navigation();
|
|
34744
|
-
ExternalWebViewScreen = /* @__PURE__ */ (0,
|
|
35687
|
+
ExternalWebViewScreen = /* @__PURE__ */ (0, import_react146.forwardRef)(function ExternalWebViewScreen2(_param, ref) {
|
|
34745
35688
|
var _param_header = _param.header, header = _param_header === void 0 ? {} : _param_header, onNavigationStateChange = _param.onNavigationStateChange, webViewProps = _object_without_properties(_param, [
|
|
34746
35689
|
"header",
|
|
34747
35690
|
"onNavigationStateChange"
|
|
34748
35691
|
]);
|
|
34749
35692
|
var title = header.title, icon = header.icon, _header_withBackButton = header.withBackButton, withBackButton = _header_withBackButton === void 0 ? false : _header_withBackButton;
|
|
34750
|
-
var webviewCanGoBack = (0,
|
|
34751
|
-
var webViewRef = (0,
|
|
35693
|
+
var webviewCanGoBack = (0, import_react146.useRef)(false);
|
|
35694
|
+
var webViewRef = (0, import_react146.useRef)(null);
|
|
34752
35695
|
var refs = mergeRefs2(ref, webViewRef);
|
|
34753
35696
|
var handleBack = useBackOrCloseNavigation();
|
|
34754
|
-
var handleBackButton = (0,
|
|
35697
|
+
var handleBackButton = (0, import_react146.useCallback)(function handleBackButton2() {
|
|
34755
35698
|
if (webViewRef.current != null && webviewCanGoBack.current) {
|
|
34756
35699
|
var _webViewRef_current;
|
|
34757
35700
|
(_webViewRef_current = webViewRef.current) === null || _webViewRef_current === void 0 ? void 0 : _webViewRef_current.goBack();
|
|
@@ -34761,31 +35704,31 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
34761
35704
|
}, [
|
|
34762
35705
|
handleBack
|
|
34763
35706
|
]);
|
|
34764
|
-
return (0,
|
|
35707
|
+
return (0, import_jsx_runtime175.jsxs)(import_jsx_runtime175.Fragment, {
|
|
34765
35708
|
children: [
|
|
34766
|
-
(0,
|
|
35709
|
+
(0, import_jsx_runtime175.jsxs)(Navigation, {
|
|
34767
35710
|
children: [
|
|
34768
|
-
(0,
|
|
35711
|
+
(0, import_jsx_runtime175.jsx)(NavigationLeft, {
|
|
34769
35712
|
visible: withBackButton,
|
|
34770
|
-
children: (0,
|
|
35713
|
+
children: (0, import_jsx_runtime175.jsx)(NavigationBackButton, {
|
|
34771
35714
|
onPress: handleBackButton,
|
|
34772
35715
|
canGoBack: false
|
|
34773
35716
|
})
|
|
34774
35717
|
}),
|
|
34775
|
-
(0,
|
|
35718
|
+
(0, import_jsx_runtime175.jsxs)(NavigationCenter, {
|
|
34776
35719
|
children: [
|
|
34777
|
-
icon != null && (0,
|
|
34778
|
-
title != null && (0,
|
|
35720
|
+
icon != null && (0, import_jsx_runtime175.jsx)(NavigationTitleIcon, _object_spread({}, icon)),
|
|
35721
|
+
title != null && (0, import_jsx_runtime175.jsx)(NavigationTitleText, {
|
|
34779
35722
|
children: title
|
|
34780
35723
|
})
|
|
34781
35724
|
]
|
|
34782
35725
|
}),
|
|
34783
|
-
(0,
|
|
34784
|
-
children: (0,
|
|
35726
|
+
(0, import_jsx_runtime175.jsx)(NavigationRight, {
|
|
35727
|
+
children: (0, import_jsx_runtime175.jsx)(NavigationCloseButton, {})
|
|
34785
35728
|
})
|
|
34786
35729
|
]
|
|
34787
35730
|
}),
|
|
34788
|
-
(0,
|
|
35731
|
+
(0, import_jsx_runtime175.jsxs)(import_react_native124.View, {
|
|
34789
35732
|
style: {
|
|
34790
35733
|
display: "flex",
|
|
34791
35734
|
flexDirection: "column",
|
|
@@ -34793,8 +35736,8 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
34793
35736
|
position: "relative"
|
|
34794
35737
|
},
|
|
34795
35738
|
children: [
|
|
34796
|
-
(0,
|
|
34797
|
-
(0,
|
|
35739
|
+
(0, import_jsx_runtime175.jsx)(NavigationBackdrop, {}),
|
|
35740
|
+
(0, import_jsx_runtime175.jsx)(react_native_webview_exports.WebView, _object_spread_props(_object_spread({
|
|
34798
35741
|
ref: refs
|
|
34799
35742
|
}, webViewProps), {
|
|
34800
35743
|
onNavigationStateChange: function(event) {
|
|
@@ -34822,7 +35765,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
34822
35765
|
|
|
34823
35766
|
// ../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/extensions/navigation/Navigation.js
|
|
34824
35767
|
function hasValidChild2(children) {
|
|
34825
|
-
return
|
|
35768
|
+
return import_react147.Children.toArray(children).length > 0;
|
|
34826
35769
|
}
|
|
34827
35770
|
function Navigation2(param) {
|
|
34828
35771
|
var children = param.children;
|
|
@@ -34830,7 +35773,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
34830
35773
|
var adaptive2 = useAdaptive();
|
|
34831
35774
|
var colorPreference = useColorPreference().colorPreference;
|
|
34832
35775
|
var isValidChild = hasValidChild2(children);
|
|
34833
|
-
(0,
|
|
35776
|
+
(0, import_react147.useLayoutEffect)(function() {
|
|
34834
35777
|
var clearHeaderStyle = function clearHeaderStyle2() {
|
|
34835
35778
|
navigation.setOptions({
|
|
34836
35779
|
headerStyle: null,
|
|
@@ -34857,13 +35800,13 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
34857
35800
|
isValidChild,
|
|
34858
35801
|
navigation
|
|
34859
35802
|
]);
|
|
34860
|
-
return (0,
|
|
35803
|
+
return (0, import_jsx_runtime176.jsx)(import_jsx_runtime176.Fragment, {
|
|
34861
35804
|
children
|
|
34862
35805
|
});
|
|
34863
35806
|
}
|
|
34864
35807
|
function useBackOrCloseNavigation2() {
|
|
34865
35808
|
var navigation = (0, native_exports.useNavigation)();
|
|
34866
|
-
return (0,
|
|
35809
|
+
return (0, import_react147.useCallback)(function() {
|
|
34867
35810
|
if (navigation.canGoBack()) {
|
|
34868
35811
|
navigation.goBack();
|
|
34869
35812
|
} else {
|
|
@@ -34876,7 +35819,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
34876
35819
|
function NavigationLeft2(param) {
|
|
34877
35820
|
var children = param.children, _param_visible = param.visible, visible = _param_visible === void 0 ? true : _param_visible;
|
|
34878
35821
|
var navigation = (0, native_exports.useNavigation)();
|
|
34879
|
-
(0,
|
|
35822
|
+
(0, import_react147.useLayoutEffect)(function() {
|
|
34880
35823
|
if (!hasValidChild2(children) || !visible) {
|
|
34881
35824
|
navigation.setOptions({
|
|
34882
35825
|
headerLeft: null
|
|
@@ -34885,7 +35828,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
34885
35828
|
}
|
|
34886
35829
|
navigation.setOptions({
|
|
34887
35830
|
headerLeft: function() {
|
|
34888
|
-
return (0,
|
|
35831
|
+
return (0, import_jsx_runtime176.jsx)(import_jsx_runtime176.Fragment, {
|
|
34889
35832
|
children
|
|
34890
35833
|
});
|
|
34891
35834
|
}
|
|
@@ -34900,7 +35843,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
34900
35843
|
function NavigationRight2(param) {
|
|
34901
35844
|
var children = param.children, _param_visible = param.visible, visible = _param_visible === void 0 ? true : _param_visible;
|
|
34902
35845
|
var navigation = (0, native_exports.useNavigation)();
|
|
34903
|
-
(0,
|
|
35846
|
+
(0, import_react147.useLayoutEffect)(function() {
|
|
34904
35847
|
if (!hasValidChild2(children) || !visible) {
|
|
34905
35848
|
navigation.setOptions({
|
|
34906
35849
|
headerRight: null
|
|
@@ -34909,7 +35852,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
34909
35852
|
}
|
|
34910
35853
|
navigation.setOptions({
|
|
34911
35854
|
headerRight: function() {
|
|
34912
|
-
return (0,
|
|
35855
|
+
return (0, import_jsx_runtime176.jsx)(import_react_native125.View, {
|
|
34913
35856
|
style: {
|
|
34914
35857
|
marginRight: 4,
|
|
34915
35858
|
flexDirection: "row",
|
|
@@ -34931,7 +35874,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
34931
35874
|
function NavigationCenter2(param) {
|
|
34932
35875
|
var children = param.children, _param_visible = param.visible, visible = _param_visible === void 0 ? true : _param_visible, _param_horizontalSafeMargin = param.horizontalSafeMargin, horizontalSafeMargin = _param_horizontalSafeMargin === void 0 ? 100 : _param_horizontalSafeMargin;
|
|
34933
35876
|
var navigation = (0, native_exports.useNavigation)();
|
|
34934
|
-
(0,
|
|
35877
|
+
(0, import_react147.useLayoutEffect)(function() {
|
|
34935
35878
|
if (!hasValidChild2(children) || !visible) {
|
|
34936
35879
|
navigation.setOptions({
|
|
34937
35880
|
headerBackVisible: false,
|
|
@@ -34948,7 +35891,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
34948
35891
|
*/
|
|
34949
35892
|
headerBackVisible: false,
|
|
34950
35893
|
headerTitle: function() {
|
|
34951
|
-
return (0,
|
|
35894
|
+
return (0, import_jsx_runtime176.jsx)(import_react_native125.View, {
|
|
34952
35895
|
style: [
|
|
34953
35896
|
{
|
|
34954
35897
|
maxWidth: DEVICE_WIDTH2 - horizontalSafeMargin,
|
|
@@ -34979,12 +35922,12 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
34979
35922
|
radius: 5
|
|
34980
35923
|
};
|
|
34981
35924
|
if (props.name !== void 0) {
|
|
34982
|
-
return (0,
|
|
35925
|
+
return (0, import_jsx_runtime176.jsx)(Asset2.Icon, {
|
|
34983
35926
|
name: props.name,
|
|
34984
35927
|
frameShape: frameShape2
|
|
34985
35928
|
});
|
|
34986
35929
|
}
|
|
34987
|
-
return (0,
|
|
35930
|
+
return (0, import_jsx_runtime176.jsx)(import_react_native125.Image, {
|
|
34988
35931
|
source: props.source,
|
|
34989
35932
|
style: {
|
|
34990
35933
|
overflow: "hidden",
|
|
@@ -34999,9 +35942,9 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
34999
35942
|
"style"
|
|
35000
35943
|
]);
|
|
35001
35944
|
var adaptive2 = useAdaptive();
|
|
35002
|
-
return (0,
|
|
35945
|
+
return (0, import_jsx_runtime176.jsx)(PreventFontScaling, {
|
|
35003
35946
|
limit: 100,
|
|
35004
|
-
children: (0,
|
|
35947
|
+
children: (0, import_jsx_runtime176.jsx)(Txt_default, _object_spread({
|
|
35005
35948
|
typography: "st10",
|
|
35006
35949
|
fontWeight: "semibold",
|
|
35007
35950
|
color: adaptive2.grey900,
|
|
@@ -35014,7 +35957,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
35014
35957
|
var onPress = param.onPress, _param_canGoBack = param.canGoBack, canGoBack = _param_canGoBack === void 0 ? true : _param_canGoBack;
|
|
35015
35958
|
var adaptive2 = useAdaptive();
|
|
35016
35959
|
var handleBack = useBackOrCloseNavigation2();
|
|
35017
|
-
return (0,
|
|
35960
|
+
return (0, import_jsx_runtime176.jsx)(ReactNavigationNavbar.BackButton, {
|
|
35018
35961
|
tintColor: adaptive2.grey900,
|
|
35019
35962
|
accessibilityRole: "button",
|
|
35020
35963
|
accessible: true,
|
|
@@ -35032,7 +35975,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
35032
35975
|
var colorPreference = useColorPreference().colorPreference;
|
|
35033
35976
|
var adaptive2 = useAdaptive();
|
|
35034
35977
|
var tintColor = colorPreference === "light" ? adaptive2.greyOpacity400 : adaptive2.greyOpacity500;
|
|
35035
|
-
return (0,
|
|
35978
|
+
return (0, import_jsx_runtime176.jsx)(ReactNavigationNavbar.CloseButton, {
|
|
35036
35979
|
tintColor,
|
|
35037
35980
|
onPress: function() {
|
|
35038
35981
|
onPress === null || onPress === void 0 ? void 0 : onPress();
|
|
@@ -35048,13 +35991,13 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
35048
35991
|
return null;
|
|
35049
35992
|
}
|
|
35050
35993
|
if (icon.name !== void 0) {
|
|
35051
|
-
return (0,
|
|
35994
|
+
return (0, import_jsx_runtime176.jsx)(Icon_default, {
|
|
35052
35995
|
name: icon.name,
|
|
35053
35996
|
size: 20
|
|
35054
35997
|
});
|
|
35055
35998
|
}
|
|
35056
35999
|
if (icon.source !== void 0) {
|
|
35057
|
-
return (0,
|
|
36000
|
+
return (0, import_jsx_runtime176.jsx)(Asset2.Image, _object_spread_props(_object_spread({}, icon), {
|
|
35058
36001
|
frameShape: {
|
|
35059
36002
|
width: 20,
|
|
35060
36003
|
height: 20
|
|
@@ -35063,10 +36006,10 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
35063
36006
|
}
|
|
35064
36007
|
return null;
|
|
35065
36008
|
}();
|
|
35066
|
-
return (0,
|
|
36009
|
+
return (0, import_jsx_runtime176.jsx)(PressableEffect, {
|
|
35067
36010
|
onPress,
|
|
35068
36011
|
disabled,
|
|
35069
|
-
children: (0,
|
|
36012
|
+
children: (0, import_jsx_runtime176.jsxs)(import_react_native125.View, {
|
|
35070
36013
|
style: [
|
|
35071
36014
|
{
|
|
35072
36015
|
flexDirection: "row",
|
|
@@ -35079,7 +36022,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
35079
36022
|
}
|
|
35080
36023
|
],
|
|
35081
36024
|
children: [
|
|
35082
|
-
(0,
|
|
36025
|
+
(0, import_jsx_runtime176.jsx)(Txt_default, {
|
|
35083
36026
|
typography: "t5",
|
|
35084
36027
|
color: adaptive2.grey700,
|
|
35085
36028
|
children: title
|
|
@@ -35091,13 +36034,13 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
35091
36034
|
}
|
|
35092
36035
|
function NavigationDropdownMenu(param) {
|
|
35093
36036
|
var items = param.items;
|
|
35094
|
-
return (0,
|
|
36037
|
+
return (0, import_jsx_runtime176.jsx)(Trigger, {
|
|
35095
36038
|
strategy: "fixed",
|
|
35096
36039
|
placement: "bottom-end",
|
|
35097
36040
|
defaultOpen: false,
|
|
35098
|
-
dropdown: (0,
|
|
36041
|
+
dropdown: (0, import_jsx_runtime176.jsx)(Dropdown, {
|
|
35099
36042
|
children: items === null || items === void 0 ? void 0 : items.map(function(item) {
|
|
35100
|
-
return (0,
|
|
36043
|
+
return (0, import_jsx_runtime176.jsx)(DropdownItem2, {
|
|
35101
36044
|
title: item.title,
|
|
35102
36045
|
icon: item.icon,
|
|
35103
36046
|
onPress: item.onPress,
|
|
@@ -35105,22 +36048,22 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
35105
36048
|
}, item.title);
|
|
35106
36049
|
})
|
|
35107
36050
|
}),
|
|
35108
|
-
children: (0,
|
|
36051
|
+
children: (0, import_jsx_runtime176.jsx)(ReactNavigationNavbar.RightIconButton, {
|
|
35109
36052
|
name: "icon-navigation-menu-mono"
|
|
35110
36053
|
})
|
|
35111
36054
|
});
|
|
35112
36055
|
}
|
|
35113
|
-
var
|
|
36056
|
+
var import_jsx_runtime176, import_react147, import_react_native125, DEVICE_WIDTH2, NavigationIconButton;
|
|
35114
36057
|
var init_Navigation2 = __esm({
|
|
35115
36058
|
"../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/extensions/navigation/Navigation.js"() {
|
|
35116
36059
|
init_object_spread();
|
|
35117
36060
|
init_object_spread_props();
|
|
35118
36061
|
init_object_without_properties();
|
|
35119
|
-
|
|
36062
|
+
import_jsx_runtime176 = __toESM(require_jsx_runtime());
|
|
35120
36063
|
init_native();
|
|
35121
36064
|
init_esm();
|
|
35122
|
-
|
|
35123
|
-
|
|
36065
|
+
import_react147 = __toESM(require_react());
|
|
36066
|
+
import_react_native125 = __toESM(require_react_native());
|
|
35124
36067
|
init_src4();
|
|
35125
36068
|
init_asset();
|
|
35126
36069
|
init_dropdown();
|
|
@@ -35130,9 +36073,9 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
35130
36073
|
init_core();
|
|
35131
36074
|
init_prevent_font_scaling();
|
|
35132
36075
|
init_pressable_effect();
|
|
35133
|
-
DEVICE_WIDTH2 =
|
|
35134
|
-
NavigationIconButton = /* @__PURE__ */ (0,
|
|
35135
|
-
return (0,
|
|
36076
|
+
DEVICE_WIDTH2 = import_react_native125.Dimensions.get("window").width;
|
|
36077
|
+
NavigationIconButton = /* @__PURE__ */ (0, import_react147.forwardRef)(function NavigationIconButton2(props, ref) {
|
|
36078
|
+
return (0, import_jsx_runtime176.jsx)(ReactNavigationNavbar.RightIconButton, _object_spread({
|
|
35136
36079
|
ref
|
|
35137
36080
|
}, props));
|
|
35138
36081
|
});
|
|
@@ -35156,65 +36099,65 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
35156
36099
|
case 1: {
|
|
35157
36100
|
var _rightButtons_;
|
|
35158
36101
|
var _ref = (_rightButtons_ = rightButtons[0]) !== null && _rightButtons_ !== void 0 ? _rightButtons_ : {}, title2 = _ref.title, icon2 = _ref.icon, onPress = _ref.onPress, disabled = _ref.disabled;
|
|
35159
|
-
return (0,
|
|
36102
|
+
return (0, import_jsx_runtime177.jsx)(NavigationIconButton, _object_spread_props(_object_spread({}, icon2), {
|
|
35160
36103
|
accessibilityLabel: title2,
|
|
35161
36104
|
onPress,
|
|
35162
36105
|
disabled
|
|
35163
36106
|
}));
|
|
35164
36107
|
}
|
|
35165
36108
|
default:
|
|
35166
|
-
return (0,
|
|
36109
|
+
return (0, import_jsx_runtime177.jsx)(NavigationDropdownMenu, {
|
|
35167
36110
|
items: rightButtons
|
|
35168
36111
|
});
|
|
35169
36112
|
}
|
|
35170
36113
|
};
|
|
35171
36114
|
var navigationTitleHorizontalSafeMargin = rightButtons.length > 0 ? 240 : 100;
|
|
35172
|
-
return (0,
|
|
36115
|
+
return (0, import_jsx_runtime177.jsxs)(Navigation2, {
|
|
35173
36116
|
children: [
|
|
35174
|
-
(0,
|
|
36117
|
+
(0, import_jsx_runtime177.jsxs)(NavigationCenter2, {
|
|
35175
36118
|
horizontalSafeMargin: navigationTitleHorizontalSafeMargin,
|
|
35176
36119
|
children: [
|
|
35177
|
-
icon != null && (0,
|
|
35178
|
-
title != null && (0,
|
|
36120
|
+
icon != null && (0, import_jsx_runtime177.jsx)(NavigationTitleIcon2, _object_spread({}, icon)),
|
|
36121
|
+
title != null && (0, import_jsx_runtime177.jsx)(NavigationTitleText2, {
|
|
35179
36122
|
children: title
|
|
35180
36123
|
})
|
|
35181
36124
|
]
|
|
35182
36125
|
}),
|
|
35183
|
-
(0,
|
|
36126
|
+
(0, import_jsx_runtime177.jsxs)(NavigationRight2, {
|
|
35184
36127
|
children: [
|
|
35185
36128
|
renderRightButtons(),
|
|
35186
|
-
(0,
|
|
36129
|
+
(0, import_jsx_runtime177.jsx)(NavigationCloseButton2, {})
|
|
35187
36130
|
]
|
|
35188
36131
|
}),
|
|
35189
36132
|
children
|
|
35190
36133
|
]
|
|
35191
36134
|
});
|
|
35192
36135
|
}
|
|
35193
|
-
var
|
|
36136
|
+
var import_jsx_runtime177;
|
|
35194
36137
|
var init_PartnerNavigation = __esm({
|
|
35195
36138
|
"../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/extensions/partner-navigation/PartnerNavigation.js"() {
|
|
35196
36139
|
init_object_spread();
|
|
35197
36140
|
init_object_spread_props();
|
|
35198
|
-
|
|
36141
|
+
import_jsx_runtime177 = __toESM(require_jsx_runtime());
|
|
35199
36142
|
init_navigation();
|
|
35200
36143
|
}
|
|
35201
36144
|
});
|
|
35202
36145
|
|
|
35203
36146
|
// ../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/extensions/partner-web-view-screen/PartnerWebViewScreen.js
|
|
35204
|
-
var
|
|
36147
|
+
var import_jsx_runtime178, import_react148, PartnerWebViewScreen;
|
|
35205
36148
|
var init_PartnerWebViewScreen = __esm({
|
|
35206
36149
|
"../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/extensions/partner-web-view-screen/PartnerWebViewScreen.js"() {
|
|
35207
36150
|
init_object_spread();
|
|
35208
36151
|
init_object_spread_props();
|
|
35209
36152
|
init_object_without_properties();
|
|
35210
|
-
|
|
36153
|
+
import_jsx_runtime178 = __toESM(require_jsx_runtime());
|
|
35211
36154
|
init_react_native_webview();
|
|
35212
|
-
|
|
36155
|
+
import_react148 = __toESM(require_react());
|
|
35213
36156
|
init_src4();
|
|
35214
36157
|
init_mergeRefs2();
|
|
35215
36158
|
init_navigation();
|
|
35216
36159
|
init_PartnerNavigation();
|
|
35217
|
-
PartnerWebViewScreen = /* @__PURE__ */ (0,
|
|
36160
|
+
PartnerWebViewScreen = /* @__PURE__ */ (0, import_react148.forwardRef)(function PartnerWebViewScreen2(_param, ref) {
|
|
35218
36161
|
var header = _param.header, onNavigationStateChange = _param.onNavigationStateChange, webViewProps = _object_without_properties(_param, [
|
|
35219
36162
|
"header",
|
|
35220
36163
|
"onNavigationStateChange"
|
|
@@ -35222,14 +36165,14 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
35222
36165
|
var _header_withBackButton = header.withBackButton, withBackButton = _header_withBackButton === void 0 ? true : _header_withBackButton, partnerNavigationProps = _object_without_properties(header, [
|
|
35223
36166
|
"withBackButton"
|
|
35224
36167
|
]);
|
|
35225
|
-
var webviewCanGoBack = (0,
|
|
36168
|
+
var webviewCanGoBack = (0, import_react148.useRef)(false);
|
|
35226
36169
|
var backEventContext = useBackEventContext();
|
|
35227
|
-
var webViewRef = (0,
|
|
36170
|
+
var webViewRef = (0, import_react148.useRef)(null);
|
|
35228
36171
|
var refs = mergeRefs2(ref, webViewRef);
|
|
35229
36172
|
var overrideCanGoBack = !backEventContext.hasBackEvent;
|
|
35230
36173
|
var onGoBack = backEventContext.onGoBack;
|
|
35231
36174
|
var handleBack = useBackOrCloseNavigation2();
|
|
35232
|
-
var handleBackButton = (0,
|
|
36175
|
+
var handleBackButton = (0, import_react148.useCallback)(function handleBackButton2() {
|
|
35233
36176
|
if (!overrideCanGoBack) {
|
|
35234
36177
|
onGoBack();
|
|
35235
36178
|
return;
|
|
@@ -35245,18 +36188,18 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
35245
36188
|
onGoBack,
|
|
35246
36189
|
handleBack
|
|
35247
36190
|
]);
|
|
35248
|
-
return (0,
|
|
36191
|
+
return (0, import_jsx_runtime178.jsxs)(import_jsx_runtime178.Fragment, {
|
|
35249
36192
|
children: [
|
|
35250
|
-
(0,
|
|
35251
|
-
children: (0,
|
|
36193
|
+
(0, import_jsx_runtime178.jsx)(PartnerNavigation, _object_spread_props(_object_spread({}, partnerNavigationProps), {
|
|
36194
|
+
children: (0, import_jsx_runtime178.jsx)(NavigationLeft2, {
|
|
35252
36195
|
visible: withBackButton,
|
|
35253
|
-
children: (0,
|
|
36196
|
+
children: (0, import_jsx_runtime178.jsx)(NavigationBackButton2, {
|
|
35254
36197
|
onPress: handleBackButton,
|
|
35255
36198
|
canGoBack: false
|
|
35256
36199
|
})
|
|
35257
36200
|
})
|
|
35258
36201
|
})),
|
|
35259
|
-
(0,
|
|
36202
|
+
(0, import_jsx_runtime178.jsx)(react_native_webview_exports.WebView, _object_spread_props(_object_spread({
|
|
35260
36203
|
ref: refs
|
|
35261
36204
|
}, webViewProps), {
|
|
35262
36205
|
onNavigationStateChange: function(event) {
|
|
@@ -35517,29 +36460,29 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
35517
36460
|
});
|
|
35518
36461
|
|
|
35519
36462
|
// ../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/extensions/bridge/components/Icon.js
|
|
35520
|
-
var
|
|
36463
|
+
var import_jsx_runtime179, import_react149, import_react_native126, Icon6;
|
|
35521
36464
|
var init_Icon3 = __esm({
|
|
35522
36465
|
"../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/extensions/bridge/components/Icon.js"() {
|
|
35523
36466
|
init_object_spread();
|
|
35524
36467
|
init_object_spread_props();
|
|
35525
36468
|
init_object_without_properties();
|
|
35526
|
-
|
|
35527
|
-
|
|
35528
|
-
|
|
36469
|
+
import_jsx_runtime179 = __toESM(require_jsx_runtime());
|
|
36470
|
+
import_react149 = __toESM(require_react());
|
|
36471
|
+
import_react_native126 = __toESM(require_react_native());
|
|
35529
36472
|
init_src4();
|
|
35530
36473
|
init_icon();
|
|
35531
|
-
Icon6 = /* @__PURE__ */ (0,
|
|
36474
|
+
Icon6 = /* @__PURE__ */ (0, import_react149.forwardRef)(function Icon7(_param, ref) {
|
|
35532
36475
|
var name2 = _param.name, source = _param.source, restProps = _object_without_properties(_param, [
|
|
35533
36476
|
"name",
|
|
35534
36477
|
"source"
|
|
35535
36478
|
]);
|
|
35536
|
-
var content = name2 !== void 0 ? (0,
|
|
36479
|
+
var content = name2 !== void 0 ? (0, import_jsx_runtime179.jsx)(Icon_default, {
|
|
35537
36480
|
name: name2,
|
|
35538
36481
|
style: {
|
|
35539
36482
|
width: "100%",
|
|
35540
36483
|
aspectRatio: 1
|
|
35541
36484
|
}
|
|
35542
|
-
}) : (0,
|
|
36485
|
+
}) : (0, import_jsx_runtime179.jsx)(Image, {
|
|
35543
36486
|
source,
|
|
35544
36487
|
style: {
|
|
35545
36488
|
width: "100%",
|
|
@@ -35548,7 +36491,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
35548
36491
|
resizeMode: "contain",
|
|
35549
36492
|
accessibilityRole: "image"
|
|
35550
36493
|
});
|
|
35551
|
-
return (0,
|
|
36494
|
+
return (0, import_jsx_runtime179.jsx)(import_react_native126.View, _object_spread_props(_object_spread({
|
|
35552
36495
|
ref
|
|
35553
36496
|
}, restProps), {
|
|
35554
36497
|
children: content
|
|
@@ -35564,28 +36507,28 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
35564
36507
|
"children"
|
|
35565
36508
|
]);
|
|
35566
36509
|
if (shadows.length === 0) {
|
|
35567
|
-
return (0,
|
|
36510
|
+
return (0, import_jsx_runtime180.jsx)(import_jsx_runtime180.Fragment, {
|
|
35568
36511
|
children
|
|
35569
36512
|
});
|
|
35570
36513
|
}
|
|
35571
36514
|
var nestedView = shadows.reduceRight(function(acc, shadow) {
|
|
35572
|
-
return (0,
|
|
36515
|
+
return (0, import_jsx_runtime180.jsx)(import_react_native127.View, {
|
|
35573
36516
|
style: generateShadowStyle(shadow),
|
|
35574
36517
|
children: acc
|
|
35575
36518
|
});
|
|
35576
36519
|
}, children);
|
|
35577
|
-
return (0,
|
|
36520
|
+
return (0, import_jsx_runtime180.jsx)(import_react_native127.View, _object_spread_props(_object_spread({}, restProps), {
|
|
35578
36521
|
children: nestedView
|
|
35579
36522
|
}));
|
|
35580
36523
|
}
|
|
35581
|
-
var
|
|
36524
|
+
var import_jsx_runtime180, import_react_native127;
|
|
35582
36525
|
var init_NestedShadow = __esm({
|
|
35583
36526
|
"../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/extensions/bridge/components/NestedShadow.js"() {
|
|
35584
36527
|
init_object_spread();
|
|
35585
36528
|
init_object_spread_props();
|
|
35586
36529
|
init_object_without_properties();
|
|
35587
|
-
|
|
35588
|
-
|
|
36530
|
+
import_jsx_runtime180 = __toESM(require_jsx_runtime());
|
|
36531
|
+
import_react_native127 = __toESM(require_react_native());
|
|
35589
36532
|
init_generateShadowStyle();
|
|
35590
36533
|
}
|
|
35591
36534
|
});
|
|
@@ -35634,9 +36577,9 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
35634
36577
|
var isBasicColorMode = colorMode === "basic";
|
|
35635
36578
|
var onClose = usePreservedCallback3(_onClose !== null && _onClose !== void 0 ? _onClose : noop4);
|
|
35636
36579
|
var onExited = usePreservedCallback3(_onExited !== null && _onExited !== void 0 ? _onExited : noop4);
|
|
35637
|
-
var _useState = _sliced_to_array((0,
|
|
35638
|
-
var timerRef = (0,
|
|
35639
|
-
var handleDelayedClose = (0,
|
|
36580
|
+
var _useState = _sliced_to_array((0, import_react150.useState)(false), 2), isPressable = _useState[0], setIsPressable = _useState[1];
|
|
36581
|
+
var timerRef = (0, import_react150.useRef)(null);
|
|
36582
|
+
var handleDelayedClose = (0, import_react150.useCallback)(function() {
|
|
35640
36583
|
if (timerRef.current) {
|
|
35641
36584
|
clearTimeout(timerRef.current);
|
|
35642
36585
|
}
|
|
@@ -35647,14 +36590,14 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
35647
36590
|
}, [
|
|
35648
36591
|
onClose
|
|
35649
36592
|
]);
|
|
35650
|
-
(0,
|
|
36593
|
+
(0, import_react150.useEffect)(function() {
|
|
35651
36594
|
return function() {
|
|
35652
36595
|
if (timerRef.current) {
|
|
35653
36596
|
clearTimeout(timerRef.current);
|
|
35654
36597
|
}
|
|
35655
36598
|
};
|
|
35656
36599
|
}, []);
|
|
35657
|
-
(0,
|
|
36600
|
+
(0, import_react150.useEffect)(function() {
|
|
35658
36601
|
var timer = setTimeout(function() {
|
|
35659
36602
|
setIsPressable(true);
|
|
35660
36603
|
}, BRIDGE_TOUCHABLE_DELAY);
|
|
@@ -35667,7 +36610,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
35667
36610
|
small: 375
|
|
35668
36611
|
};
|
|
35669
36612
|
var animation = useBridgeAnimation();
|
|
35670
|
-
(0,
|
|
36613
|
+
(0, import_react150.useEffect)(function() {
|
|
35671
36614
|
if (open) {
|
|
35672
36615
|
animation.controller.open().start();
|
|
35673
36616
|
return function() {
|
|
@@ -35715,16 +36658,16 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
35715
36658
|
}
|
|
35716
36659
|
];
|
|
35717
36660
|
}();
|
|
35718
|
-
var _useState1 = _sliced_to_array((0,
|
|
35719
|
-
var _useState2 = _sliced_to_array((0,
|
|
35720
|
-
var _useState3 = _sliced_to_array((0,
|
|
35721
|
-
var handleContentLayout = (0,
|
|
36661
|
+
var _useState1 = _sliced_to_array((0, import_react150.useState)(null), 2), contentCenterOffset = _useState1[0], setContentCenterOffset = _useState1[1];
|
|
36662
|
+
var _useState2 = _sliced_to_array((0, import_react150.useState)(null), 2), backgroundGroupCenterOffset = _useState2[0], setBackgroundGroupCenterOffset = _useState2[1];
|
|
36663
|
+
var _useState3 = _sliced_to_array((0, import_react150.useState)(0), 2), backgroundGroupYOffset = _useState3[0], setBackgroundGroupYOffset = _useState3[1];
|
|
36664
|
+
var handleContentLayout = (0, import_react150.useCallback)(function(event) {
|
|
35722
36665
|
setContentCenterOffset(getCenterOffset(event.nativeEvent.layout));
|
|
35723
36666
|
}, []);
|
|
35724
|
-
var handleBackgroundGroupLayout = (0,
|
|
36667
|
+
var handleBackgroundGroupLayout = (0, import_react150.useCallback)(function(event) {
|
|
35725
36668
|
setBackgroundGroupCenterOffset(getCenterOffset(event.nativeEvent.layout));
|
|
35726
36669
|
}, []);
|
|
35727
|
-
(0,
|
|
36670
|
+
(0, import_react150.useLayoutEffect)(function() {
|
|
35728
36671
|
if (contentCenterOffset === null || backgroundGroupCenterOffset === null) {
|
|
35729
36672
|
return;
|
|
35730
36673
|
}
|
|
@@ -35733,9 +36676,9 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
35733
36676
|
backgroundGroupCenterOffset,
|
|
35734
36677
|
contentCenterOffset
|
|
35735
36678
|
]);
|
|
35736
|
-
return (0,
|
|
36679
|
+
return (0, import_jsx_runtime181.jsxs)(import_react_native128.Pressable, _object_spread_props(_object_spread({
|
|
35737
36680
|
style: [
|
|
35738
|
-
|
|
36681
|
+
styles33.fullCover,
|
|
35739
36682
|
{
|
|
35740
36683
|
zIndex: 10
|
|
35741
36684
|
},
|
|
@@ -35745,18 +36688,18 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
35745
36688
|
onPress: handleDelayedClose
|
|
35746
36689
|
}, restProps), {
|
|
35747
36690
|
children: [
|
|
35748
|
-
(0,
|
|
36691
|
+
(0, import_jsx_runtime181.jsx)(import_react_native128.View, {
|
|
35749
36692
|
style: {
|
|
35750
36693
|
flex: 1,
|
|
35751
36694
|
//상단 네비 거리
|
|
35752
|
-
paddingTop:
|
|
36695
|
+
paddingTop: import_react_native128.Platform.select({
|
|
35753
36696
|
ios: 103,
|
|
35754
36697
|
android: 56,
|
|
35755
36698
|
default: 56
|
|
35756
36699
|
}),
|
|
35757
36700
|
zIndex: 1
|
|
35758
36701
|
},
|
|
35759
|
-
children: (0,
|
|
36702
|
+
children: (0, import_jsx_runtime181.jsxs)(Animated20.View, {
|
|
35760
36703
|
style: [
|
|
35761
36704
|
{
|
|
35762
36705
|
flexDirection: "column",
|
|
@@ -35767,7 +36710,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
35767
36710
|
],
|
|
35768
36711
|
onLayout: handleContentLayout,
|
|
35769
36712
|
children: [
|
|
35770
|
-
(0,
|
|
36713
|
+
(0, import_jsx_runtime181.jsx)(NestedShadow, {
|
|
35771
36714
|
shadows: isBasicColorMode ? [
|
|
35772
36715
|
{
|
|
35773
36716
|
offset: {
|
|
@@ -35797,14 +36740,14 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
35797
36740
|
color: token.bridge.contentLogoShadowColor
|
|
35798
36741
|
}
|
|
35799
36742
|
] : [],
|
|
35800
|
-
children: (0,
|
|
36743
|
+
children: (0, import_jsx_runtime181.jsx)(AnimatedIcon2, _object_spread_props(_object_spread({}, icon), {
|
|
35801
36744
|
style: [
|
|
35802
|
-
|
|
36745
|
+
styles33.iconBorder,
|
|
35803
36746
|
animation.style.contentLogo
|
|
35804
36747
|
]
|
|
35805
36748
|
}))
|
|
35806
36749
|
}),
|
|
35807
|
-
(0,
|
|
36750
|
+
(0, import_jsx_runtime181.jsx)(AnimatedText, {
|
|
35808
36751
|
style: [
|
|
35809
36752
|
{
|
|
35810
36753
|
textAlign: "center"
|
|
@@ -35813,7 +36756,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
35813
36756
|
],
|
|
35814
36757
|
children: title.map(function(param, index) {
|
|
35815
36758
|
var type = param.type, text = param.text;
|
|
35816
|
-
return (0,
|
|
36759
|
+
return (0, import_jsx_runtime181.jsx)(Txt_default, {
|
|
35817
36760
|
typography: "t3",
|
|
35818
36761
|
fontWeight: "bold",
|
|
35819
36762
|
color: isBasicColorMode ? type === "strong" ? token.bridge.contentTitleStrongColor : token.bridge.contentTitleDefaultColor : type === "strong" ? token.bridge.contentTitleStrongInvertedColor : token.bridge.contentTitleDefaultInvertedColor,
|
|
@@ -35825,24 +36768,24 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
35825
36768
|
]
|
|
35826
36769
|
})
|
|
35827
36770
|
}),
|
|
35828
|
-
(0,
|
|
36771
|
+
(0, import_jsx_runtime181.jsx)(import_react_native128.View, {
|
|
35829
36772
|
style: [
|
|
35830
|
-
|
|
36773
|
+
styles33.fullCover,
|
|
35831
36774
|
{
|
|
35832
36775
|
height: DeviceHeight
|
|
35833
36776
|
}
|
|
35834
36777
|
],
|
|
35835
|
-
children: (0,
|
|
36778
|
+
children: (0, import_jsx_runtime181.jsxs)(Animated20.View, {
|
|
35836
36779
|
style: [
|
|
35837
|
-
|
|
35838
|
-
|
|
36780
|
+
styles33.center,
|
|
36781
|
+
styles33.fullCover,
|
|
35839
36782
|
animation.style.backgroundGroup
|
|
35840
36783
|
],
|
|
35841
36784
|
onLayout: handleBackgroundGroupLayout,
|
|
35842
36785
|
children: [
|
|
35843
|
-
(0,
|
|
35844
|
-
style:
|
|
35845
|
-
children: (0,
|
|
36786
|
+
(0, import_jsx_runtime181.jsx)(import_react_native128.View, {
|
|
36787
|
+
style: styles33.fullCover,
|
|
36788
|
+
children: (0, import_jsx_runtime181.jsx)(LinearGradient2, {
|
|
35846
36789
|
opacity: 1,
|
|
35847
36790
|
degree: 180,
|
|
35848
36791
|
colors: isBasicColorMode ? [
|
|
@@ -35865,7 +36808,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
35865
36808
|
easing: "linear"
|
|
35866
36809
|
})
|
|
35867
36810
|
}),
|
|
35868
|
-
(0,
|
|
36811
|
+
(0, import_jsx_runtime181.jsx)(import_react_native128.View, {
|
|
35869
36812
|
style: {
|
|
35870
36813
|
width: GradientCircleDiameter.large + 135,
|
|
35871
36814
|
height: GradientCircleDiameter.large,
|
|
@@ -35876,25 +36819,25 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
35876
36819
|
}
|
|
35877
36820
|
]
|
|
35878
36821
|
},
|
|
35879
|
-
children: isBasicColorMode && (0,
|
|
36822
|
+
children: isBasicColorMode && (0, import_jsx_runtime181.jsxs)(Animated20.View, {
|
|
35880
36823
|
style: [
|
|
35881
|
-
|
|
36824
|
+
styles33.fullCover,
|
|
35882
36825
|
{
|
|
35883
36826
|
opacity: 0.02
|
|
35884
36827
|
},
|
|
35885
36828
|
animation.style.radialGradientGroup
|
|
35886
36829
|
],
|
|
35887
36830
|
children: [
|
|
35888
|
-
(0,
|
|
36831
|
+
(0, import_jsx_runtime181.jsx)(Animated20.View, {
|
|
35889
36832
|
style: [
|
|
35890
|
-
|
|
36833
|
+
styles33.rightCover,
|
|
35891
36834
|
{
|
|
35892
36835
|
width: GradientCircleDiameter.small,
|
|
35893
36836
|
height: GradientCircleDiameter.small
|
|
35894
36837
|
},
|
|
35895
36838
|
animation.style.rightRadialGradient
|
|
35896
36839
|
],
|
|
35897
|
-
children: (0,
|
|
36840
|
+
children: (0, import_jsx_runtime181.jsx)(RadialGradient, {
|
|
35898
36841
|
colors: [
|
|
35899
36842
|
{
|
|
35900
36843
|
value: token.bridge.rightRadialGradientColor,
|
|
@@ -35907,16 +36850,16 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
35907
36850
|
]
|
|
35908
36851
|
})
|
|
35909
36852
|
}),
|
|
35910
|
-
(0,
|
|
36853
|
+
(0, import_jsx_runtime181.jsx)(Animated20.View, {
|
|
35911
36854
|
style: [
|
|
35912
|
-
|
|
36855
|
+
styles33.leftCover,
|
|
35913
36856
|
{
|
|
35914
36857
|
width: GradientCircleDiameter.large,
|
|
35915
36858
|
height: GradientCircleDiameter.large
|
|
35916
36859
|
},
|
|
35917
36860
|
animation.style.leftRadialGradient
|
|
35918
36861
|
],
|
|
35919
|
-
children: (0,
|
|
36862
|
+
children: (0, import_jsx_runtime181.jsx)(RadialGradient, {
|
|
35920
36863
|
colors: [
|
|
35921
36864
|
{
|
|
35922
36865
|
value: token.bridge.leftRadialGradientColor,
|
|
@@ -35939,17 +36882,17 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
35939
36882
|
}));
|
|
35940
36883
|
}
|
|
35941
36884
|
function useBridgeAnimation() {
|
|
35942
|
-
var backgroundGroupOpacity = (0,
|
|
35943
|
-
var radialGradientGroupScale = (0,
|
|
35944
|
-
var leftRadialGradientOpacity = (0,
|
|
35945
|
-
var rightRadialGradientOpacity = (0,
|
|
35946
|
-
var contentLogoOpacity = (0,
|
|
35947
|
-
var contentLogoScale = (0,
|
|
35948
|
-
var contentLogoTranslateY = (0,
|
|
35949
|
-
var contentTitleTranslateY = (0,
|
|
35950
|
-
var contentTitleOpacity = (0,
|
|
35951
|
-
var contentTitleScale = (0,
|
|
35952
|
-
var openAnimation = (0,
|
|
36885
|
+
var backgroundGroupOpacity = (0, import_react_native128.useAnimatedValue)(0);
|
|
36886
|
+
var radialGradientGroupScale = (0, import_react_native128.useAnimatedValue)(0.5);
|
|
36887
|
+
var leftRadialGradientOpacity = (0, import_react_native128.useAnimatedValue)(0);
|
|
36888
|
+
var rightRadialGradientOpacity = (0, import_react_native128.useAnimatedValue)(0);
|
|
36889
|
+
var contentLogoOpacity = (0, import_react_native128.useAnimatedValue)(0);
|
|
36890
|
+
var contentLogoScale = (0, import_react_native128.useAnimatedValue)(0.6);
|
|
36891
|
+
var contentLogoTranslateY = (0, import_react_native128.useAnimatedValue)(0);
|
|
36892
|
+
var contentTitleTranslateY = (0, import_react_native128.useAnimatedValue)(0);
|
|
36893
|
+
var contentTitleOpacity = (0, import_react_native128.useAnimatedValue)(0);
|
|
36894
|
+
var contentTitleScale = (0, import_react_native128.useAnimatedValue)(0.7);
|
|
36895
|
+
var openAnimation = (0, import_react150.useCallback)(function() {
|
|
35953
36896
|
var _Easing, _Easing1, _Easing2;
|
|
35954
36897
|
return Animated20.parallel([
|
|
35955
36898
|
Animated20.spring(backgroundGroupOpacity, _object_spread_props(_object_spread({
|
|
@@ -35959,7 +36902,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
35959
36902
|
})),
|
|
35960
36903
|
Animated20.timing(radialGradientGroupScale, {
|
|
35961
36904
|
toValue: 1,
|
|
35962
|
-
easing: (_Easing =
|
|
36905
|
+
easing: (_Easing = import_react_native128.Easing).bezier.apply(_Easing, _to_consumable_array(bezier.out)),
|
|
35963
36906
|
duration: 800,
|
|
35964
36907
|
useNativeDriver: false
|
|
35965
36908
|
}),
|
|
@@ -35976,7 +36919,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
35976
36919
|
})),
|
|
35977
36920
|
Animated20.timing(contentLogoOpacity, {
|
|
35978
36921
|
toValue: 1,
|
|
35979
|
-
easing: (_Easing1 =
|
|
36922
|
+
easing: (_Easing1 = import_react_native128.Easing).bezier.apply(_Easing1, _to_consumable_array(bezier.out)),
|
|
35980
36923
|
duration: 600,
|
|
35981
36924
|
useNativeDriver: false,
|
|
35982
36925
|
delay: 40
|
|
@@ -35990,7 +36933,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
35990
36933
|
}),
|
|
35991
36934
|
Animated20.timing(contentTitleOpacity, {
|
|
35992
36935
|
toValue: 1,
|
|
35993
|
-
easing: (_Easing2 =
|
|
36936
|
+
easing: (_Easing2 = import_react_native128.Easing).bezier.apply(_Easing2, _to_consumable_array(bezier.out)),
|
|
35994
36937
|
duration: 600,
|
|
35995
36938
|
useNativeDriver: false,
|
|
35996
36939
|
delay: 80
|
|
@@ -36013,24 +36956,24 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
36013
36956
|
contentTitleOpacity,
|
|
36014
36957
|
contentTitleScale
|
|
36015
36958
|
]);
|
|
36016
|
-
var closeAnimation = (0,
|
|
36959
|
+
var closeAnimation = (0, import_react150.useCallback)(function() {
|
|
36017
36960
|
var _Easing, _Easing1, _Easing2;
|
|
36018
36961
|
return Animated20.parallel([
|
|
36019
36962
|
Animated20.timing(contentLogoOpacity, {
|
|
36020
36963
|
toValue: 0,
|
|
36021
|
-
easing: (_Easing =
|
|
36964
|
+
easing: (_Easing = import_react_native128.Easing).bezier.apply(_Easing, _to_consumable_array(bezier.out)),
|
|
36022
36965
|
duration: 500,
|
|
36023
36966
|
useNativeDriver: false
|
|
36024
36967
|
}),
|
|
36025
36968
|
Animated20.timing(contentTitleOpacity, {
|
|
36026
36969
|
toValue: 0,
|
|
36027
|
-
easing: (_Easing1 =
|
|
36970
|
+
easing: (_Easing1 = import_react_native128.Easing).bezier.apply(_Easing1, _to_consumable_array(bezier.out)),
|
|
36028
36971
|
duration: 500,
|
|
36029
36972
|
useNativeDriver: false
|
|
36030
36973
|
}),
|
|
36031
36974
|
Animated20.timing(backgroundGroupOpacity, {
|
|
36032
36975
|
toValue: 0,
|
|
36033
|
-
easing: (_Easing2 =
|
|
36976
|
+
easing: (_Easing2 = import_react_native128.Easing).bezier.apply(_Easing2, _to_consumable_array(bezier.out)),
|
|
36034
36977
|
duration: 500,
|
|
36035
36978
|
useNativeDriver: false
|
|
36036
36979
|
})
|
|
@@ -36040,7 +36983,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
36040
36983
|
contentLogoOpacity,
|
|
36041
36984
|
contentTitleOpacity
|
|
36042
36985
|
]);
|
|
36043
|
-
return (0,
|
|
36986
|
+
return (0, import_react150.useMemo)(function() {
|
|
36044
36987
|
return {
|
|
36045
36988
|
style: {
|
|
36046
36989
|
backgroundGroup: {
|
|
@@ -36102,7 +37045,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
36102
37045
|
rightRadialGradientOpacity
|
|
36103
37046
|
]);
|
|
36104
37047
|
}
|
|
36105
|
-
var
|
|
37048
|
+
var import_jsx_runtime181, import_react150, import_react_native128, BRIDGE_TOUCHABLE_DELAY, BRIDGE_CLOSE_DELAY, styles33, noop4, DeviceHeight, AnimatedIcon2, AnimatedText;
|
|
36106
37049
|
var init_Bridge = __esm({
|
|
36107
37050
|
"../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/extensions/bridge/Bridge.js"() {
|
|
36108
37051
|
init_object_spread();
|
|
@@ -36110,11 +37053,11 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
36110
37053
|
init_object_without_properties();
|
|
36111
37054
|
init_sliced_to_array();
|
|
36112
37055
|
init_to_consumable_array();
|
|
36113
|
-
|
|
37056
|
+
import_jsx_runtime181 = __toESM(require_jsx_runtime());
|
|
36114
37057
|
init_esm5();
|
|
36115
37058
|
init_dist3();
|
|
36116
|
-
|
|
36117
|
-
|
|
37059
|
+
import_react150 = __toESM(require_react());
|
|
37060
|
+
import_react_native128 = __toESM(require_react_native());
|
|
36118
37061
|
init_usePreservedCallback3();
|
|
36119
37062
|
init_gradient();
|
|
36120
37063
|
init_txt();
|
|
@@ -36124,7 +37067,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
36124
37067
|
init_utils6();
|
|
36125
37068
|
BRIDGE_TOUCHABLE_DELAY = 600;
|
|
36126
37069
|
BRIDGE_CLOSE_DELAY = 400;
|
|
36127
|
-
|
|
37070
|
+
styles33 = import_react_native128.StyleSheet.create({
|
|
36128
37071
|
fullCover: {
|
|
36129
37072
|
position: "absolute",
|
|
36130
37073
|
top: 0,
|
|
@@ -36159,7 +37102,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
36159
37102
|
iconBorder: {
|
|
36160
37103
|
width: 56,
|
|
36161
37104
|
height: 56,
|
|
36162
|
-
borderWidth:
|
|
37105
|
+
borderWidth: import_react_native128.StyleSheet.hairlineWidth,
|
|
36163
37106
|
borderRadius: 14,
|
|
36164
37107
|
borderColor: "rgba(25, 66, 142, 0.12)",
|
|
36165
37108
|
borderStyle: "solid",
|
|
@@ -36168,7 +37111,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
36168
37111
|
});
|
|
36169
37112
|
noop4 = function() {
|
|
36170
37113
|
};
|
|
36171
|
-
DeviceHeight =
|
|
37114
|
+
DeviceHeight = import_react_native128.Dimensions.get("window").height;
|
|
36172
37115
|
AnimatedIcon2 = Animated20.createAnimatedComponent(Icon6);
|
|
36173
37116
|
AnimatedText = Animated20.createAnimatedComponent(Txt_default);
|
|
36174
37117
|
}
|
|
@@ -36177,14 +37120,14 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
36177
37120
|
// ../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/extensions/bridge/useBridge.js
|
|
36178
37121
|
function useBridge() {
|
|
36179
37122
|
var _ref = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, _ref_closeOnDestroy = _ref.closeOnDestroy, closeOnDestroy = _ref_closeOnDestroy === void 0 ? true : _ref_closeOnDestroy;
|
|
36180
|
-
var timer = (0,
|
|
37123
|
+
var timer = (0, import_react151.useRef)();
|
|
36181
37124
|
var overlay = useOverlay();
|
|
36182
|
-
var close = (0,
|
|
37125
|
+
var close = (0, import_react151.useCallback)(function() {
|
|
36183
37126
|
return overlay.close();
|
|
36184
37127
|
}, [
|
|
36185
37128
|
overlay
|
|
36186
37129
|
]);
|
|
36187
|
-
var open = (0,
|
|
37130
|
+
var open = (0, import_react151.useCallback)(function(_param) {
|
|
36188
37131
|
var onExited = _param.onExited, onClose = _param.onClose, color = _param.color, options = _object_without_properties(_param, [
|
|
36189
37132
|
"onExited",
|
|
36190
37133
|
"onClose",
|
|
@@ -36200,13 +37143,13 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
36200
37143
|
onClose === null || onClose === void 0 ? void 0 : onClose();
|
|
36201
37144
|
close2();
|
|
36202
37145
|
};
|
|
36203
|
-
return (0,
|
|
37146
|
+
return (0, import_jsx_runtime182.jsx)(ThemeProvider, {
|
|
36204
37147
|
token: {
|
|
36205
37148
|
color: {
|
|
36206
37149
|
primary: color
|
|
36207
37150
|
}
|
|
36208
37151
|
},
|
|
36209
|
-
children: (0,
|
|
37152
|
+
children: (0, import_jsx_runtime182.jsx)(Bridge, _object_spread({
|
|
36210
37153
|
open: isOpen,
|
|
36211
37154
|
onClose: handleClose,
|
|
36212
37155
|
onExited: function() {
|
|
@@ -36225,7 +37168,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
36225
37168
|
close,
|
|
36226
37169
|
overlay
|
|
36227
37170
|
]);
|
|
36228
|
-
var controls = (0,
|
|
37171
|
+
var controls = (0, import_react151.useMemo)(function() {
|
|
36229
37172
|
return {
|
|
36230
37173
|
close,
|
|
36231
37174
|
open
|
|
@@ -36234,7 +37177,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
36234
37177
|
close,
|
|
36235
37178
|
open
|
|
36236
37179
|
]);
|
|
36237
|
-
(0,
|
|
37180
|
+
(0, import_react151.useEffect)(function() {
|
|
36238
37181
|
return function() {
|
|
36239
37182
|
if (closeOnDestroy) {
|
|
36240
37183
|
controls === null || controls === void 0 ? void 0 : controls.close();
|
|
@@ -36246,13 +37189,13 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
36246
37189
|
]);
|
|
36247
37190
|
return controls;
|
|
36248
37191
|
}
|
|
36249
|
-
var
|
|
37192
|
+
var import_jsx_runtime182, import_react151;
|
|
36250
37193
|
var init_useBridge = __esm({
|
|
36251
37194
|
"../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/extensions/bridge/useBridge.js"() {
|
|
36252
37195
|
init_object_spread();
|
|
36253
37196
|
init_object_without_properties();
|
|
36254
|
-
|
|
36255
|
-
|
|
37197
|
+
import_jsx_runtime182 = __toESM(require_jsx_runtime());
|
|
37198
|
+
import_react151 = __toESM(require_react());
|
|
36256
37199
|
init_core();
|
|
36257
37200
|
init_Bridge();
|
|
36258
37201
|
}
|
|
@@ -36267,12 +37210,12 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
36267
37210
|
});
|
|
36268
37211
|
|
|
36269
37212
|
// ../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/extensions/partner-navigation/usePartnerNavigation.js
|
|
36270
|
-
var
|
|
37213
|
+
var import_jsx_runtime183, import_react152, import_react_native129;
|
|
36271
37214
|
var init_usePartnerNavigation = __esm({
|
|
36272
37215
|
"../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/extensions/partner-navigation/usePartnerNavigation.js"() {
|
|
36273
|
-
|
|
36274
|
-
|
|
36275
|
-
|
|
37216
|
+
import_jsx_runtime183 = __toESM(require_jsx_runtime());
|
|
37217
|
+
import_react152 = __toESM(require_react());
|
|
37218
|
+
import_react_native129 = __toESM(require_react_native());
|
|
36276
37219
|
}
|
|
36277
37220
|
});
|
|
36278
37221
|
|
|
@@ -36286,12 +37229,12 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
36286
37229
|
|
|
36287
37230
|
// ../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/components/carousel/animations/snap.js
|
|
36288
37231
|
function useSnapAnimation(context2) {
|
|
36289
|
-
var translateX = (0,
|
|
36290
|
-
var isAnimating = (0,
|
|
36291
|
-
var _useState = _sliced_to_array((0,
|
|
36292
|
-
var startOffset = (0,
|
|
36293
|
-
var lastOffset = (0,
|
|
36294
|
-
var gesture = (0,
|
|
37232
|
+
var translateX = (0, import_react153.useRef)(new import_react_native130.Animated.Value(context2.padding)).current;
|
|
37233
|
+
var isAnimating = (0, import_react153.useRef)(false);
|
|
37234
|
+
var _useState = _sliced_to_array((0, import_react153.useState)(0), 2), activeIndex = _useState[0], setActiveIndex = _useState[1];
|
|
37235
|
+
var startOffset = (0, import_react153.useRef)(context2.padding);
|
|
37236
|
+
var lastOffset = (0, import_react153.useRef)(context2.padding);
|
|
37237
|
+
var gesture = (0, import_react153.useMemo)(function() {
|
|
36295
37238
|
var panGesture = react_native_gesture_handler_exports.Gesture.Pan().onUpdate(function(e4) {
|
|
36296
37239
|
if (isAnimating.current === true) {
|
|
36297
37240
|
return;
|
|
@@ -36310,7 +37253,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
36310
37253
|
}, context2);
|
|
36311
37254
|
var rounded = roundToSnapPosition(estimatedPosition, snapPositions);
|
|
36312
37255
|
isAnimating.current = true;
|
|
36313
|
-
|
|
37256
|
+
import_react_native130.Animated.spring(translateX, _object_spread({
|
|
36314
37257
|
toValue: rounded,
|
|
36315
37258
|
useNativeDriver: true
|
|
36316
37259
|
}, spring.quick)).start(function() {
|
|
@@ -36328,7 +37271,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
36328
37271
|
context2,
|
|
36329
37272
|
translateX
|
|
36330
37273
|
]);
|
|
36331
|
-
var transforms = (0,
|
|
37274
|
+
var transforms = (0, import_react153.useMemo)(function() {
|
|
36332
37275
|
return [
|
|
36333
37276
|
{
|
|
36334
37277
|
translateX
|
|
@@ -36399,23 +37342,23 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
36399
37342
|
}
|
|
36400
37343
|
return translateX + Math.sign(velocityX) * context2.itemWidth;
|
|
36401
37344
|
}
|
|
36402
|
-
var
|
|
37345
|
+
var import_react153, import_react_native130, WINDOW_WIDTH2;
|
|
36403
37346
|
var init_snap = __esm({
|
|
36404
37347
|
"../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/components/carousel/animations/snap.js"() {
|
|
36405
37348
|
init_object_spread();
|
|
36406
37349
|
init_sliced_to_array();
|
|
36407
37350
|
init_react_native_gesture_handler();
|
|
36408
37351
|
init_esm5();
|
|
36409
|
-
|
|
36410
|
-
|
|
36411
|
-
WINDOW_WIDTH2 =
|
|
37352
|
+
import_react153 = __toESM(require_react());
|
|
37353
|
+
import_react_native130 = __toESM(require_react_native());
|
|
37354
|
+
WINDOW_WIDTH2 = import_react_native130.Dimensions.get("window").width;
|
|
36412
37355
|
}
|
|
36413
37356
|
});
|
|
36414
37357
|
|
|
36415
37358
|
// ../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/components/carousel/CarouselItem.js
|
|
36416
37359
|
function CarouselItem(param) {
|
|
36417
37360
|
var children = param.children;
|
|
36418
|
-
return (0,
|
|
37361
|
+
return (0, import_jsx_runtime184.jsx)(import_react_native131.View, {
|
|
36419
37362
|
style: [
|
|
36420
37363
|
{
|
|
36421
37364
|
borderRadius: 20
|
|
@@ -36424,21 +37367,21 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
36424
37367
|
children
|
|
36425
37368
|
});
|
|
36426
37369
|
}
|
|
36427
|
-
var
|
|
37370
|
+
var import_jsx_runtime184, import_react_native131;
|
|
36428
37371
|
var init_CarouselItem = __esm({
|
|
36429
37372
|
"../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/components/carousel/CarouselItem.js"() {
|
|
36430
|
-
|
|
36431
|
-
|
|
37373
|
+
import_jsx_runtime184 = __toESM(require_jsx_runtime());
|
|
37374
|
+
import_react_native131 = __toESM(require_react_native());
|
|
36432
37375
|
}
|
|
36433
37376
|
});
|
|
36434
37377
|
|
|
36435
37378
|
// ../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/components/carousel/Carousel.js
|
|
36436
37379
|
function Carousel(param) {
|
|
36437
37380
|
var children = param.children, _param_itemWidth = param.itemWidth, itemWidth = _param_itemWidth === void 0 ? 280 : _param_itemWidth, _param_itemGap = param.itemGap, itemGap = _param_itemGap === void 0 ? 12 : _param_itemGap, _param_padding = param.padding, padding2 = _param_padding === void 0 ? 24 : _param_padding, renderIndicators = param.renderIndicators;
|
|
36438
|
-
var itemsCount =
|
|
36439
|
-
return /* @__PURE__ */ (0,
|
|
37381
|
+
var itemsCount = import_react154.Children.toArray(children).filter(function(x) {
|
|
37382
|
+
return /* @__PURE__ */ (0, import_react154.isValidElement)(x);
|
|
36440
37383
|
}).length;
|
|
36441
|
-
var context2 = (0,
|
|
37384
|
+
var context2 = (0, import_react154.useMemo)(function() {
|
|
36442
37385
|
return {
|
|
36443
37386
|
itemsCount,
|
|
36444
37387
|
itemGap,
|
|
@@ -36456,23 +37399,23 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
36456
37399
|
var style = {
|
|
36457
37400
|
transform: _to_consumable_array(snap.transforms)
|
|
36458
37401
|
};
|
|
36459
|
-
var items =
|
|
36460
|
-
return /* @__PURE__ */ (0,
|
|
37402
|
+
var items = import_react154.Children.toArray(children).filter(function(x) {
|
|
37403
|
+
return /* @__PURE__ */ (0, import_react154.isValidElement)(x);
|
|
36461
37404
|
}).map(function(child, index) {
|
|
36462
|
-
return (0,
|
|
37405
|
+
return (0, import_jsx_runtime185.jsx)(import_react_native132.View, {
|
|
36463
37406
|
style: {
|
|
36464
37407
|
width: context2.itemWidth
|
|
36465
37408
|
},
|
|
36466
37409
|
children: child
|
|
36467
37410
|
}, index);
|
|
36468
37411
|
});
|
|
36469
|
-
return (0,
|
|
37412
|
+
return (0, import_jsx_runtime185.jsxs)(import_jsx_runtime185.Fragment, {
|
|
36470
37413
|
children: [
|
|
36471
|
-
(0,
|
|
37414
|
+
(0, import_jsx_runtime185.jsx)(react_native_gesture_handler_exports.GestureDetector, {
|
|
36472
37415
|
gesture,
|
|
36473
|
-
children: (0,
|
|
37416
|
+
children: (0, import_jsx_runtime185.jsx)(import_react_native132.Animated.View, {
|
|
36474
37417
|
style,
|
|
36475
|
-
children: (0,
|
|
37418
|
+
children: (0, import_jsx_runtime185.jsx)(Stack.Horizontal, {
|
|
36476
37419
|
gutter: context2.itemGap,
|
|
36477
37420
|
align: "flex-start",
|
|
36478
37421
|
justify: "center",
|
|
@@ -36487,15 +37430,15 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
36487
37430
|
]
|
|
36488
37431
|
});
|
|
36489
37432
|
}
|
|
36490
|
-
var
|
|
37433
|
+
var import_jsx_runtime185, import_react154, import_react_native132;
|
|
36491
37434
|
var init_Carousel = __esm({
|
|
36492
37435
|
"../../.yarn/__virtual__/@toss-design-system-react-native-virtual-4956d78599/0/cache/@toss-design-system-react-native-npm-0.6.1-f81b89610b-1498ca6e24.zip/node_modules/@toss-design-system/react-native/dist/esm/components/carousel/Carousel.js"() {
|
|
36493
37436
|
init_to_consumable_array();
|
|
36494
|
-
|
|
37437
|
+
import_jsx_runtime185 = __toESM(require_jsx_runtime());
|
|
36495
37438
|
init_react_native_gesture_handler();
|
|
36496
37439
|
init_src4();
|
|
36497
|
-
|
|
36498
|
-
|
|
37440
|
+
import_react154 = __toESM(require_react());
|
|
37441
|
+
import_react_native132 = __toESM(require_react_native());
|
|
36499
37442
|
init_snap();
|
|
36500
37443
|
init_CarouselItem();
|
|
36501
37444
|
Carousel.Item = CarouselItem;
|
|
@@ -36656,7 +37599,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
36656
37599
|
return true;
|
|
36657
37600
|
}
|
|
36658
37601
|
var currentVersion = AppsInTossModule.tossAppVersion;
|
|
36659
|
-
var isIOS =
|
|
37602
|
+
var isIOS = import_react_native136.Platform.OS === "ios";
|
|
36660
37603
|
var minVersion = isIOS ? minVersions.ios : minVersions.android;
|
|
36661
37604
|
if (minVersion === void 0) {
|
|
36662
37605
|
return false;
|
|
@@ -36687,7 +37630,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
36687
37630
|
});
|
|
36688
37631
|
}
|
|
36689
37632
|
function useReferrer() {
|
|
36690
|
-
return (0,
|
|
37633
|
+
return (0, import_react156.useMemo)(function() {
|
|
36691
37634
|
try {
|
|
36692
37635
|
return new URL(getSchemeUri()).searchParams.get("referrer");
|
|
36693
37636
|
} catch (e4) {
|
|
@@ -36705,7 +37648,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
36705
37648
|
function EntryAppEvent() {
|
|
36706
37649
|
var _useReferrer;
|
|
36707
37650
|
var referrer2 = (_useReferrer = useReferrer()) !== null && _useReferrer !== void 0 ? _useReferrer : "";
|
|
36708
|
-
(0,
|
|
37651
|
+
(0, import_react155.useEffect)(function() {
|
|
36709
37652
|
tossCoreEventLog({
|
|
36710
37653
|
log_name: "appsintoss_app_visit::impression__enter_appsintoss",
|
|
36711
37654
|
log_type: "info",
|
|
@@ -36725,7 +37668,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
36725
37668
|
}
|
|
36726
37669
|
function SystemAppEvent(_param) {
|
|
36727
37670
|
var initialProps = _extends({}, _object_destructuring_empty(_param));
|
|
36728
|
-
(0,
|
|
37671
|
+
(0, import_react155.useEffect)(function() {
|
|
36729
37672
|
tossCoreEventLog({
|
|
36730
37673
|
log_name: "AppsInTossInitialProps",
|
|
36731
37674
|
log_type: "debug",
|
|
@@ -36873,7 +37816,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
36873
37816
|
function useAppsInTossBridge() {
|
|
36874
37817
|
var controller = useBridge();
|
|
36875
37818
|
var appsInTossGlobals2 = getAppsInTossGlobals();
|
|
36876
|
-
(0,
|
|
37819
|
+
(0, import_react157.useEffect)(function() {
|
|
36877
37820
|
var commonProps = {
|
|
36878
37821
|
serviceName: appsInTossGlobals2.brandDisplayName,
|
|
36879
37822
|
icon: toIcon(appsInTossGlobals2.brandIcon),
|
|
@@ -37282,23 +38225,90 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
37282
38225
|
});
|
|
37283
38226
|
return _saveBase64Data.apply(this, arguments);
|
|
37284
38227
|
}
|
|
38228
|
+
function getGameCenterGameProfile() {
|
|
38229
|
+
return _getGameCenterGameProfile.apply(this, arguments);
|
|
38230
|
+
}
|
|
38231
|
+
function _getGameCenterGameProfile() {
|
|
38232
|
+
_getGameCenterGameProfile = // src/native-modules/getGameCenterGameProfile.ts
|
|
38233
|
+
_async_to_generator(function() {
|
|
38234
|
+
var isSupported;
|
|
38235
|
+
return __generator(this, function(_state) {
|
|
38236
|
+
isSupported = isMinVersionSupported(GAME_CENTER_MIN_VERSION);
|
|
38237
|
+
if (!isSupported) {
|
|
38238
|
+
return [
|
|
38239
|
+
2
|
|
38240
|
+
];
|
|
38241
|
+
}
|
|
38242
|
+
return [
|
|
38243
|
+
2,
|
|
38244
|
+
AppsInTossModule.getGameCenterGameProfile({})
|
|
38245
|
+
];
|
|
38246
|
+
});
|
|
38247
|
+
});
|
|
38248
|
+
return _getGameCenterGameProfile.apply(this, arguments);
|
|
38249
|
+
}
|
|
38250
|
+
function openGameCenterLeaderboard() {
|
|
38251
|
+
return _openGameCenterLeaderboard.apply(this, arguments);
|
|
38252
|
+
}
|
|
38253
|
+
function _openGameCenterLeaderboard() {
|
|
38254
|
+
_openGameCenterLeaderboard = _async_to_generator(function() {
|
|
38255
|
+
var url;
|
|
38256
|
+
return __generator(this, function(_state) {
|
|
38257
|
+
if (!isMinVersionSupported(GAME_CENTER_MIN_VERSION)) {
|
|
38258
|
+
return [
|
|
38259
|
+
2
|
|
38260
|
+
];
|
|
38261
|
+
}
|
|
38262
|
+
url = new URL("servicetoss://game-center/leaderboard?_navbar=hide");
|
|
38263
|
+
url.searchParams.set("appName", getAppName());
|
|
38264
|
+
url.searchParams.set("referrer", "appsintoss.".concat(getAppName()));
|
|
38265
|
+
return [
|
|
38266
|
+
2,
|
|
38267
|
+
openURL(url.toString())
|
|
38268
|
+
];
|
|
38269
|
+
});
|
|
38270
|
+
});
|
|
38271
|
+
return _openGameCenterLeaderboard.apply(this, arguments);
|
|
38272
|
+
}
|
|
38273
|
+
function submitGameCenterLeaderBoardScore(params) {
|
|
38274
|
+
return _submitGameCenterLeaderBoardScore.apply(this, arguments);
|
|
38275
|
+
}
|
|
38276
|
+
function _submitGameCenterLeaderBoardScore() {
|
|
38277
|
+
_submitGameCenterLeaderBoardScore = // src/native-modules/submitGameCenterLeaderBoardScore.ts
|
|
38278
|
+
_async_to_generator(function(params) {
|
|
38279
|
+
var isSupported;
|
|
38280
|
+
return __generator(this, function(_state) {
|
|
38281
|
+
isSupported = isMinVersionSupported(GAME_CENTER_MIN_VERSION);
|
|
38282
|
+
if (!isSupported) {
|
|
38283
|
+
return [
|
|
38284
|
+
2
|
|
38285
|
+
];
|
|
38286
|
+
}
|
|
38287
|
+
return [
|
|
38288
|
+
2,
|
|
38289
|
+
AppsInTossModule.submitGameCenterLeaderBoardScore(params)
|
|
38290
|
+
];
|
|
38291
|
+
});
|
|
38292
|
+
});
|
|
38293
|
+
return _submitGameCenterLeaderBoardScore.apply(this, arguments);
|
|
38294
|
+
}
|
|
37285
38295
|
function AppsInTossContainer(Container, _param) {
|
|
37286
38296
|
var children = _param.children, initialProps = _object_without_properties(_param, [
|
|
37287
38297
|
"children"
|
|
37288
38298
|
]);
|
|
37289
|
-
return /* @__PURE__ */ (0,
|
|
38299
|
+
return /* @__PURE__ */ (0, import_jsx_runtime186.jsxs)(import_jsx_runtime186.Fragment, {
|
|
37290
38300
|
children: [
|
|
37291
|
-
/* @__PURE__ */ (0,
|
|
37292
|
-
/* @__PURE__ */ (0,
|
|
37293
|
-
/* @__PURE__ */ (0,
|
|
37294
|
-
children: /* @__PURE__ */ (0,
|
|
38301
|
+
/* @__PURE__ */ (0, import_jsx_runtime186.jsx)(AppEvent.Entry, {}),
|
|
38302
|
+
/* @__PURE__ */ (0, import_jsx_runtime186.jsx)(AppEvent.System, _object_spread({}, initialProps)),
|
|
38303
|
+
/* @__PURE__ */ (0, import_jsx_runtime186.jsx)(Container, _object_spread_props(_object_spread({}, initialProps), {
|
|
38304
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime186.jsx)(TDSProvider, {
|
|
37295
38305
|
colorPreference: "light",
|
|
37296
38306
|
token: {
|
|
37297
38307
|
color: {
|
|
37298
38308
|
primary: getAppsInTossGlobals().brandPrimaryColor
|
|
37299
38309
|
}
|
|
37300
38310
|
},
|
|
37301
|
-
children: /* @__PURE__ */ (0,
|
|
38311
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime186.jsx)(TDSContainer, _object_spread_props(_object_spread({}, initialProps), {
|
|
37302
38312
|
children
|
|
37303
38313
|
}))
|
|
37304
38314
|
})
|
|
@@ -37309,7 +38319,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
37309
38319
|
function TDSContainer(param) {
|
|
37310
38320
|
var children = param.children;
|
|
37311
38321
|
useAppsInTossBridge();
|
|
37312
|
-
return /* @__PURE__ */ (0,
|
|
38322
|
+
return /* @__PURE__ */ (0, import_jsx_runtime186.jsx)(import_jsx_runtime186.Fragment, {
|
|
37313
38323
|
children
|
|
37314
38324
|
});
|
|
37315
38325
|
}
|
|
@@ -37478,30 +38488,11 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
37478
38488
|
});
|
|
37479
38489
|
};
|
|
37480
38490
|
}
|
|
37481
|
-
function getTossAppVersion() {
|
|
37482
|
-
return AppsInTossModule.tossAppVersion;
|
|
37483
|
-
}
|
|
37484
38491
|
function getDeviceId() {
|
|
37485
38492
|
return AppsInTossModule.deviceId;
|
|
37486
38493
|
}
|
|
37487
|
-
function
|
|
37488
|
-
return AppsInTossModule.
|
|
37489
|
-
key
|
|
37490
|
-
});
|
|
37491
|
-
}
|
|
37492
|
-
function setItem(key, value) {
|
|
37493
|
-
return AppsInTossModule.setStorageItem({
|
|
37494
|
-
key,
|
|
37495
|
-
value
|
|
37496
|
-
});
|
|
37497
|
-
}
|
|
37498
|
-
function removeItem(key) {
|
|
37499
|
-
return AppsInTossModule.removeStorageItem({
|
|
37500
|
-
key
|
|
37501
|
-
});
|
|
37502
|
-
}
|
|
37503
|
-
function clearItems() {
|
|
37504
|
-
return AppsInTossModule.clearStorage({});
|
|
38494
|
+
function getTossAppVersion() {
|
|
38495
|
+
return AppsInTossModule.tossAppVersion;
|
|
37505
38496
|
}
|
|
37506
38497
|
function createOneTimePurchaseOrder(params) {
|
|
37507
38498
|
return _createOneTimePurchaseOrder.apply(this, arguments);
|
|
@@ -37552,65 +38543,87 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
37552
38543
|
});
|
|
37553
38544
|
return _getProductItemList.apply(this, arguments);
|
|
37554
38545
|
}
|
|
38546
|
+
function getItem(key) {
|
|
38547
|
+
return AppsInTossModule.getStorageItem({
|
|
38548
|
+
key
|
|
38549
|
+
});
|
|
38550
|
+
}
|
|
38551
|
+
function setItem(key, value) {
|
|
38552
|
+
return AppsInTossModule.setStorageItem({
|
|
38553
|
+
key,
|
|
38554
|
+
value
|
|
38555
|
+
});
|
|
38556
|
+
}
|
|
38557
|
+
function removeItem(key) {
|
|
38558
|
+
return AppsInTossModule.removeStorageItem({
|
|
38559
|
+
key
|
|
38560
|
+
});
|
|
38561
|
+
}
|
|
38562
|
+
function clearItems() {
|
|
38563
|
+
return AppsInTossModule.clearStorage({});
|
|
38564
|
+
}
|
|
38565
|
+
function onVisibilityChangedByTransparentServiceWeb(eventParams) {
|
|
38566
|
+
return appsInTossEvent.addEventListener("onVisibilityChangedByTransparentServiceWeb", eventParams);
|
|
38567
|
+
}
|
|
37555
38568
|
function byPlatform2(_param) {
|
|
37556
38569
|
var props = _extends({}, _object_destructuring_empty(_param));
|
|
37557
|
-
var
|
|
37558
|
-
return ((
|
|
38570
|
+
var _props_Platform3_OS;
|
|
38571
|
+
return ((_props_Platform3_OS = props[import_react_native151.Platform.OS]) !== null && _props_Platform3_OS !== void 0 ? _props_Platform3_OS : props.fallback)();
|
|
37559
38572
|
}
|
|
37560
38573
|
function IOSHeaderRight2(props) {
|
|
37561
|
-
return /* @__PURE__ */ (0,
|
|
37562
|
-
style:
|
|
38574
|
+
return /* @__PURE__ */ (0, import_jsx_runtime189.jsx)(import_react_native150.View, _object_spread({
|
|
38575
|
+
style: styles34.ios
|
|
37563
38576
|
}, props));
|
|
37564
38577
|
}
|
|
37565
38578
|
function AndroidHeaderRight2(props) {
|
|
37566
|
-
return /* @__PURE__ */ (0,
|
|
37567
|
-
style:
|
|
38579
|
+
return /* @__PURE__ */ (0, import_jsx_runtime189.jsx)(import_react_native150.View, _object_spread({
|
|
38580
|
+
style: styles34.android
|
|
37568
38581
|
}, props));
|
|
37569
38582
|
}
|
|
37570
38583
|
function HeaderRight2(props) {
|
|
37571
38584
|
return byPlatform2({
|
|
37572
38585
|
ios: function() {
|
|
37573
|
-
return /* @__PURE__ */ (0,
|
|
38586
|
+
return /* @__PURE__ */ (0, import_jsx_runtime189.jsx)(IOSHeaderRight2, _object_spread({}, props));
|
|
37574
38587
|
},
|
|
37575
38588
|
android: function() {
|
|
37576
|
-
return /* @__PURE__ */ (0,
|
|
38589
|
+
return /* @__PURE__ */ (0, import_jsx_runtime189.jsx)(AndroidHeaderRight2, _object_spread({}, props));
|
|
37577
38590
|
},
|
|
37578
38591
|
fallback: function() {
|
|
37579
|
-
return /* @__PURE__ */ (0,
|
|
38592
|
+
return /* @__PURE__ */ (0, import_jsx_runtime189.jsx)(IOSHeaderRight2, _object_spread({}, props));
|
|
37580
38593
|
}
|
|
37581
38594
|
});
|
|
37582
38595
|
}
|
|
37583
38596
|
function useSafeAreaTop2() {
|
|
37584
38597
|
var safeAreaInsets = (0, react_native_safe_area_context_exports.useSafeAreaInsets)();
|
|
37585
|
-
var hasDynamicIsland =
|
|
38598
|
+
var hasDynamicIsland = import_react_native152.Platform.OS === "ios" && safeAreaInsets.top > 50;
|
|
37586
38599
|
var safeAreaTop = hasDynamicIsland ? safeAreaInsets.top - 5 : safeAreaInsets.top;
|
|
37587
38600
|
return safeAreaTop;
|
|
37588
38601
|
}
|
|
37589
38602
|
function GameNavigationBar(param) {
|
|
37590
38603
|
var onClose = param.onClose;
|
|
37591
38604
|
var safeAreaTop = useSafeAreaTop2();
|
|
37592
|
-
return /* @__PURE__ */ (0,
|
|
38605
|
+
return /* @__PURE__ */ (0, import_jsx_runtime190.jsxs)(import_jsx_runtime190.Fragment, {
|
|
37593
38606
|
children: [
|
|
37594
|
-
/* @__PURE__ */ (0,
|
|
38607
|
+
/* @__PURE__ */ (0, import_jsx_runtime190.jsx)(PageNavbar, {
|
|
37595
38608
|
preference: {
|
|
37596
38609
|
type: "none"
|
|
37597
38610
|
}
|
|
37598
38611
|
}),
|
|
37599
|
-
/* @__PURE__ */ (0,
|
|
38612
|
+
/* @__PURE__ */ (0, import_jsx_runtime190.jsx)(import_react_native149.View, {
|
|
37600
38613
|
style: {
|
|
37601
38614
|
width: "100%",
|
|
37602
|
-
height:
|
|
38615
|
+
height: import_react_native149.Platform.OS === "ios" ? 44 : 54,
|
|
37603
38616
|
flexDirection: "row",
|
|
37604
38617
|
alignItems: "center",
|
|
37605
38618
|
justifyContent: "flex-end",
|
|
37606
38619
|
position: "absolute",
|
|
37607
|
-
zIndex:
|
|
38620
|
+
zIndex: Z_INDEX.CLOSE_BUTTON,
|
|
37608
38621
|
marginTop: safeAreaTop,
|
|
37609
|
-
paddingRight:
|
|
38622
|
+
paddingRight: import_react_native149.Platform.OS === "ios" ? 10 : 8
|
|
37610
38623
|
},
|
|
37611
38624
|
pointerEvents: "box-none",
|
|
37612
|
-
children: /* @__PURE__ */ (0,
|
|
37613
|
-
children: /* @__PURE__ */ (0,
|
|
38625
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime190.jsx)(HeaderRight2, {
|
|
38626
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime190.jsx)(import_react_native149.TouchableOpacity, {
|
|
37614
38627
|
hitSlop: {
|
|
37615
38628
|
left: 8,
|
|
37616
38629
|
right: 8
|
|
@@ -37619,10 +38632,10 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
37619
38632
|
accessible: true,
|
|
37620
38633
|
accessibilityLabel: "\uAC8C\uC784\uC885\uB8CC",
|
|
37621
38634
|
style: {
|
|
37622
|
-
padding:
|
|
38635
|
+
padding: import_react_native149.Platform.OS === "ios" ? 7 : 9
|
|
37623
38636
|
},
|
|
37624
38637
|
onPress: onClose,
|
|
37625
|
-
children: /* @__PURE__ */ (0,
|
|
38638
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime190.jsx)(react_native_svg_exports.SvgXml, {
|
|
37626
38639
|
xml: originXML,
|
|
37627
38640
|
width: 30,
|
|
37628
38641
|
height: 30
|
|
@@ -37689,8 +38702,8 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
37689
38702
|
}
|
|
37690
38703
|
function useBridgeHandler(param) {
|
|
37691
38704
|
var onMessage = param.onMessage, constantHandlerMap = param.constantHandlerMap, asyncHandlerMap = param.asyncHandlerMap, eventListenerMap = param.eventListenerMap, originalInjectedJavaScript = param.injectedJavaScript;
|
|
37692
|
-
var ref = (0,
|
|
37693
|
-
var injectedJavaScript = (0,
|
|
38705
|
+
var ref = (0, import_react162.useRef)(null);
|
|
38706
|
+
var injectedJavaScript = (0, import_react162.useMemo)(function() {
|
|
37694
38707
|
return [
|
|
37695
38708
|
"window.__CONSTANT_HANDLER_MAP = ".concat(JSON.stringify(Object.entries(constantHandlerMap).reduce(function(acc, param2) {
|
|
37696
38709
|
var _param = _sliced_to_array(param2, 2), key = _param[0], value = _param[1];
|
|
@@ -37716,7 +38729,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
37716
38729
|
(_ref_current = ref.current) === null || _ref_current === void 0 ? void 0 : _ref_current.injectJavaScript("\n window.__BEDROCK_NATIVE_EMITTER.emit('".concat(functionName, "/onError/").concat(eventId, "', ").concat(JSON.stringify(error, null, 0), ");\n "));
|
|
37717
38730
|
};
|
|
37718
38731
|
};
|
|
37719
|
-
var $onMessage = (0,
|
|
38732
|
+
var $onMessage = (0, import_react162.useCallback)(
|
|
37720
38733
|
function() {
|
|
37721
38734
|
var _ref = _async_to_generator(function(e4) {
|
|
37722
38735
|
var data, _eventListenerMap_data_functionName, handleOnEvent, handleOnError, remove, key, remove1, _ref_current;
|
|
@@ -37786,18 +38799,162 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
37786
38799
|
onMessage: $onMessage
|
|
37787
38800
|
};
|
|
37788
38801
|
}
|
|
38802
|
+
function convertToAndroidStyleScale(fontScale, platform) {
|
|
38803
|
+
if (platform === "android") {
|
|
38804
|
+
if (fontScale <= 1) {
|
|
38805
|
+
return 100;
|
|
38806
|
+
}
|
|
38807
|
+
var scaledValue = Math.round(fontScale * 100);
|
|
38808
|
+
var keys = Object.keys(androidFontScaleMap).map(Number).sort(function(a, b) {
|
|
38809
|
+
return a - b;
|
|
38810
|
+
});
|
|
38811
|
+
var closestKey = keys[0];
|
|
38812
|
+
var minDiff = Math.abs(scaledValue - closestKey);
|
|
38813
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
|
|
38814
|
+
try {
|
|
38815
|
+
for (var _iterator = keys[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
38816
|
+
var key = _step.value;
|
|
38817
|
+
var diff = Math.abs(scaledValue - key);
|
|
38818
|
+
if (diff < minDiff) {
|
|
38819
|
+
minDiff = diff;
|
|
38820
|
+
closestKey = key;
|
|
38821
|
+
}
|
|
38822
|
+
}
|
|
38823
|
+
} catch (err) {
|
|
38824
|
+
_didIteratorError = true;
|
|
38825
|
+
_iteratorError = err;
|
|
38826
|
+
} finally {
|
|
38827
|
+
try {
|
|
38828
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
38829
|
+
_iterator.return();
|
|
38830
|
+
}
|
|
38831
|
+
} finally {
|
|
38832
|
+
if (_didIteratorError) {
|
|
38833
|
+
throw _iteratorError;
|
|
38834
|
+
}
|
|
38835
|
+
}
|
|
38836
|
+
}
|
|
38837
|
+
return closestKey;
|
|
38838
|
+
} else {
|
|
38839
|
+
var iosScales = Object.keys(iosScaleToAndroidScale).map(Number);
|
|
38840
|
+
var closestScale = iosScales[0];
|
|
38841
|
+
var minDiff1 = Math.abs(fontScale - closestScale);
|
|
38842
|
+
var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = void 0;
|
|
38843
|
+
try {
|
|
38844
|
+
for (var _iterator1 = iosScales[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true) {
|
|
38845
|
+
var scale = _step1.value;
|
|
38846
|
+
var diff1 = Math.abs(fontScale - scale);
|
|
38847
|
+
if (diff1 < minDiff1) {
|
|
38848
|
+
minDiff1 = diff1;
|
|
38849
|
+
closestScale = scale;
|
|
38850
|
+
}
|
|
38851
|
+
}
|
|
38852
|
+
} catch (err) {
|
|
38853
|
+
_didIteratorError1 = true;
|
|
38854
|
+
_iteratorError1 = err;
|
|
38855
|
+
} finally {
|
|
38856
|
+
try {
|
|
38857
|
+
if (!_iteratorNormalCompletion1 && _iterator1.return != null) {
|
|
38858
|
+
_iterator1.return();
|
|
38859
|
+
}
|
|
38860
|
+
} finally {
|
|
38861
|
+
if (_didIteratorError1) {
|
|
38862
|
+
throw _iteratorError1;
|
|
38863
|
+
}
|
|
38864
|
+
}
|
|
38865
|
+
}
|
|
38866
|
+
return iosScaleToAndroidScale[closestScale];
|
|
38867
|
+
}
|
|
38868
|
+
}
|
|
38869
|
+
function mapIOSFontScaleToCategory(fontScale) {
|
|
38870
|
+
if (fontScale < 1) {
|
|
38871
|
+
return FontA11yCategory.Large;
|
|
38872
|
+
}
|
|
38873
|
+
if (Math.abs(fontScale - 1) < 0.05) {
|
|
38874
|
+
return FontA11yCategory.Large;
|
|
38875
|
+
}
|
|
38876
|
+
if (Math.abs(fontScale - 1.118) < 0.05) {
|
|
38877
|
+
return FontA11yCategory.xLarge;
|
|
38878
|
+
}
|
|
38879
|
+
if (Math.abs(fontScale - 1.235) < 0.05) {
|
|
38880
|
+
return FontA11yCategory.xxLarge;
|
|
38881
|
+
}
|
|
38882
|
+
if (Math.abs(fontScale - 1.353) < 0.05) {
|
|
38883
|
+
return FontA11yCategory.xxxLarge;
|
|
38884
|
+
}
|
|
38885
|
+
if (Math.abs(fontScale - 1.786) < 0.05) {
|
|
38886
|
+
return FontA11yCategory.A11y_Medium;
|
|
38887
|
+
}
|
|
38888
|
+
if (Math.abs(fontScale - 2.143) < 0.05) {
|
|
38889
|
+
return FontA11yCategory.A11y_Large;
|
|
38890
|
+
}
|
|
38891
|
+
if (Math.abs(fontScale - 2.643) < 0.05) {
|
|
38892
|
+
return FontA11yCategory.A11y_xLarge;
|
|
38893
|
+
}
|
|
38894
|
+
if (Math.abs(fontScale - 3.143) < 0.05) {
|
|
38895
|
+
return FontA11yCategory.A11y_xxLarge;
|
|
38896
|
+
}
|
|
38897
|
+
if (Math.abs(fontScale - 3.571) < 0.05) {
|
|
38898
|
+
return FontA11yCategory.A11y_xxxLarge;
|
|
38899
|
+
}
|
|
38900
|
+
return FontA11yCategory.Large;
|
|
38901
|
+
}
|
|
38902
|
+
function mapAndroidFontScaleToCategory(fontScale) {
|
|
38903
|
+
if (fontScale <= 1) {
|
|
38904
|
+
return androidFontScaleMap[100];
|
|
38905
|
+
}
|
|
38906
|
+
var scaledValue = Math.round(fontScale * 100);
|
|
38907
|
+
var keys = Object.keys(androidFontScaleMap).map(Number).sort(function(a, b) {
|
|
38908
|
+
return a - b;
|
|
38909
|
+
});
|
|
38910
|
+
if (keys.length === 0) {
|
|
38911
|
+
return androidFontScaleMap[100];
|
|
38912
|
+
}
|
|
38913
|
+
var closestKey = keys[0];
|
|
38914
|
+
var minDiff = Math.abs(scaledValue - closestKey);
|
|
38915
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
|
|
38916
|
+
try {
|
|
38917
|
+
for (var _iterator = keys[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
38918
|
+
var key = _step.value;
|
|
38919
|
+
var diff = Math.abs(scaledValue - key);
|
|
38920
|
+
if (diff < minDiff) {
|
|
38921
|
+
minDiff = diff;
|
|
38922
|
+
closestKey = key;
|
|
38923
|
+
}
|
|
38924
|
+
}
|
|
38925
|
+
} catch (err) {
|
|
38926
|
+
_didIteratorError = true;
|
|
38927
|
+
_iteratorError = err;
|
|
38928
|
+
} finally {
|
|
38929
|
+
try {
|
|
38930
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
38931
|
+
_iterator.return();
|
|
38932
|
+
}
|
|
38933
|
+
} finally {
|
|
38934
|
+
if (_didIteratorError) {
|
|
38935
|
+
throw _iteratorError;
|
|
38936
|
+
}
|
|
38937
|
+
}
|
|
38938
|
+
}
|
|
38939
|
+
return androidFontScaleMap[closestKey];
|
|
38940
|
+
}
|
|
38941
|
+
function mapFontScaleToCategory(fontScale, platform) {
|
|
38942
|
+
return platform === "ios" ? mapIOSFontScaleToCategory(fontScale) : mapAndroidFontScaleToCategory(fontScale);
|
|
38943
|
+
}
|
|
37789
38944
|
function useCreateUserAgent(param) {
|
|
37790
|
-
var batteryModePreference = param.batteryModePreference, colorPreference = param.colorPreference,
|
|
38945
|
+
var batteryModePreference = param.batteryModePreference, colorPreference = param.colorPreference, locale = param.locale, navbarPreference = param.navbarPreference, pureSafeArea = param.pureSafeArea, safeArea = param.safeArea, safeAreaBottomTransparency = param.safeAreaBottomTransparency;
|
|
37791
38946
|
var platform = getPlatformOS();
|
|
37792
38947
|
var appVersion = getTossAppVersion();
|
|
37793
|
-
var fontScale = (0,
|
|
38948
|
+
var fontScale = (0, import_react_native153.useWindowDimensions)().fontScale;
|
|
37794
38949
|
var platformString = platform === "ios" ? "iPhone" : "Android";
|
|
38950
|
+
var fontA11y = mapFontScaleToCategory(fontScale, platform);
|
|
38951
|
+
var normalizedFontScale = convertToAndroidStyleScale(fontScale, platform);
|
|
37795
38952
|
return [
|
|
37796
38953
|
"TossApp/".concat(appVersion),
|
|
37797
38954
|
batteryModePreference && "TossBatteryModePreference/".concat(batteryModePreference),
|
|
37798
38955
|
colorPreference && "TossColorPreference/".concat(colorPreference),
|
|
37799
|
-
|
|
37800
|
-
|
|
38956
|
+
"TossFontAccessibility/".concat(fontA11y),
|
|
38957
|
+
"TossFontScale/".concat(normalizedFontScale),
|
|
37801
38958
|
locale && "TossLocale/".concat(locale),
|
|
37802
38959
|
navbarPreference && "TossNavbarPreference/".concat(navbarPreference),
|
|
37803
38960
|
pureSafeArea && "TossPureSafeArea/".concat(pureSafeArea),
|
|
@@ -37855,7 +39012,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
37855
39012
|
throw new Error("Invalid WebView type: '".concat(type, "'"));
|
|
37856
39013
|
}
|
|
37857
39014
|
var bedrockEvent = useBedrockEvent();
|
|
37858
|
-
var uri = (0,
|
|
39015
|
+
var uri = (0, import_react158.useMemo)(function() {
|
|
37859
39016
|
return getWebViewUri(local);
|
|
37860
39017
|
}, [
|
|
37861
39018
|
local
|
|
@@ -37942,7 +39099,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
37942
39099
|
iapGetProductItemList: IAP.getProductItemList
|
|
37943
39100
|
})
|
|
37944
39101
|
});
|
|
37945
|
-
var baseProps = (0,
|
|
39102
|
+
var baseProps = (0, import_react158.useMemo)(function() {
|
|
37946
39103
|
switch (type) {
|
|
37947
39104
|
case "partner": {
|
|
37948
39105
|
var headerOnlyProp = {
|
|
@@ -37973,7 +39130,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
37973
39130
|
]);
|
|
37974
39131
|
var BaseWebView = WEBVIEW_TYPES[type];
|
|
37975
39132
|
var webViewDebuggingEnabled = operationalEnvironment === "sandbox";
|
|
37976
|
-
var handleNavigationStateChange = (0,
|
|
39133
|
+
var handleNavigationStateChange = (0, import_react158.useCallback)(function(event) {
|
|
37977
39134
|
if (event.url) {
|
|
37978
39135
|
trackScreen(event.url);
|
|
37979
39136
|
}
|
|
@@ -37981,7 +39138,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
37981
39138
|
var userAgent = useCreateUserAgent({
|
|
37982
39139
|
colorPreference: "light"
|
|
37983
39140
|
});
|
|
37984
|
-
return /* @__PURE__ */ (0,
|
|
39141
|
+
return /* @__PURE__ */ (0, import_jsx_runtime192.jsx)(BaseWebView, _object_spread_props(_object_spread({
|
|
37985
39142
|
ref: handler.ref
|
|
37986
39143
|
}, props, baseProps), {
|
|
37987
39144
|
source: {
|
|
@@ -37991,14 +39148,15 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
37991
39148
|
"User-Agent": userAgent
|
|
37992
39149
|
}
|
|
37993
39150
|
},
|
|
37994
|
-
userAgent:
|
|
39151
|
+
userAgent: import_react_native140.Platform.OS === "ios" ? userAgent : void 0,
|
|
37995
39152
|
sharedCookiesEnabled: true,
|
|
37996
39153
|
webviewDebuggingEnabled: webViewDebuggingEnabled,
|
|
37997
39154
|
thirdPartyCookiesEnabled: true,
|
|
37998
39155
|
onMessage: handler.onMessage,
|
|
37999
39156
|
onNavigationStateChange: handleNavigationStateChange,
|
|
38000
39157
|
injectedJavaScript: handler.injectedJavaScript,
|
|
38001
|
-
injectedJavaScriptBeforeContentLoaded: handler.injectedJavaScript
|
|
39158
|
+
injectedJavaScriptBeforeContentLoaded: handler.injectedJavaScript,
|
|
39159
|
+
decelerationRate: import_react_native140.Platform.OS === "ios" ? 1 : void 0
|
|
38002
39160
|
}));
|
|
38003
39161
|
}
|
|
38004
39162
|
function ensureValue(value, name2) {
|
|
@@ -38007,7 +39165,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
38007
39165
|
}
|
|
38008
39166
|
return value;
|
|
38009
39167
|
}
|
|
38010
|
-
var
|
|
39168
|
+
var import_react155, import_react_native134, import_react_native135, import_react_native136, import_react156, import_react157, import_react_native138, import_jsx_runtime186, import_react158, import_react_native140, import_react159, import_react_native142, import_react160, import_react_native144, import_react161, import_jsx_runtime187, import_react_native147, import_jsx_runtime188, import_react_native149, import_react_native150, import_react_native151, import_jsx_runtime189, import_react_native152, import_jsx_runtime190, import_jsx_runtime191, import_react162, import_react_native153, import_react163, import_jsx_runtime192, __defProp2, __export2, env, AppsInTossModuleInstance, AppsInTossModule, SEMVER_REGEX, isWildcard, tryParse, coerceTypes, compareValues, parseVersion, compareSegments, compareVersions, TossCoreModule, ENTRY_APP_EVENT_SCHEMA_ID, AppEvent, EntryMessageExitedEvent, nativeEventEmitter2, UpdateLocationEvent, INTERNAL__callbacks, INTERNAL__appBridgeHandler, UNSAFE__nativeEventEmitter, AppBridgeCallbackEvent, VisibilityChangedByTransparentServiceWebEvent, appsInTossEvent, async_bridges_exports2, DEFAULT_MAX_COUNT, DEFAULT_MAX_WIDTH, GAME_PROFILE_WEBVIEW_URL, GAME_CENTER_MIN_VERSION, AppsInToss, ANDROID_GOOGLE_AD_MOB_SUPPORTED_VERSION, IOS_GOOGLE_AD_MOB_SUPPORTED_VERSION, UNSUPPORTED_ERROR_MESSAGE, ENVIRONMENT, IAP, Storage, GoogleAdMob, useGameProfileToast, DEFAULT_ERROR, PLAYSTORE_LINK, APPSTORE_LINK, getMarketLink, INTERNAL__onVisibilityChangedByTransparentServiceWeb, openTransparentWebView, useGameCenterProfile, Z_INDEX, GameProfile, overlayStyle, RIGHT_MARGIN2, IOS_DEFAULT_MARGIN2, styles34, originXML, GameWebView, globalEventListenerMap, constant_bridges_exports2, event_bridges_exports, FontA11yCategory, androidFontScaleMap, iosScaleToAndroidScale, extractDateFromUUIDv7, getGroupId, getReferrer, trackScreen, appsInTossGlobals, operationalEnvironment, TYPES, WEBVIEW_TYPES, Analytics2;
|
|
38011
39169
|
var init_dist4 = __esm({
|
|
38012
39170
|
"../../.yarn/__virtual__/@apps-in-toss-framework-virtual-574b136add/1/apps-in-toss-packages/framework/dist/index.js"() {
|
|
38013
39171
|
"use strict";
|
|
@@ -38030,52 +39188,66 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
38030
39188
|
init_dist2();
|
|
38031
39189
|
init_esm8();
|
|
38032
39190
|
init_src4();
|
|
38033
|
-
|
|
39191
|
+
import_react155 = __toESM(require_react(), 1);
|
|
38034
39192
|
init_src4();
|
|
38035
|
-
|
|
38036
|
-
|
|
38037
|
-
|
|
38038
|
-
|
|
39193
|
+
import_react_native134 = __toESM(require_react_native(), 1);
|
|
39194
|
+
import_react_native135 = __toESM(require_react_native(), 1);
|
|
39195
|
+
import_react_native136 = __toESM(require_react_native(), 1);
|
|
39196
|
+
import_react156 = __toESM(require_react(), 1);
|
|
38039
39197
|
init_src4();
|
|
38040
39198
|
init_esm8();
|
|
38041
|
-
|
|
39199
|
+
import_react157 = __toESM(require_react(), 1);
|
|
39200
|
+
init_src4();
|
|
38042
39201
|
init_src4();
|
|
38043
39202
|
init_src4();
|
|
39203
|
+
import_react_native138 = __toESM(require_react_native(), 1);
|
|
38044
39204
|
init_src4();
|
|
38045
|
-
import_react_native132 = __toESM(require_react_native(), 1);
|
|
38046
39205
|
init_src4();
|
|
38047
39206
|
init_src4();
|
|
38048
|
-
|
|
39207
|
+
import_jsx_runtime186 = __toESM(require_jsx_runtime(), 1);
|
|
38049
39208
|
init_esm8();
|
|
38050
39209
|
init_private2();
|
|
38051
|
-
|
|
38052
|
-
|
|
39210
|
+
import_react158 = __toESM(require_react(), 1);
|
|
39211
|
+
import_react_native140 = __toESM(require_react_native(), 1);
|
|
38053
39212
|
init_src4();
|
|
38054
39213
|
init_async_bridges();
|
|
38055
39214
|
init_constant_bridges();
|
|
38056
39215
|
init_react_native_webview();
|
|
38057
39216
|
init_esm8();
|
|
38058
39217
|
init_dist3();
|
|
38059
|
-
|
|
38060
|
-
|
|
39218
|
+
import_react159 = __toESM(require_react(), 1);
|
|
39219
|
+
import_react_native142 = __toESM(require_react_native(), 1);
|
|
39220
|
+
init_src4();
|
|
39221
|
+
init_esm8();
|
|
39222
|
+
import_react160 = __toESM(require_react(), 1);
|
|
39223
|
+
import_react_native144 = __toESM(require_react_native(), 1);
|
|
39224
|
+
init_esm8();
|
|
39225
|
+
init_dist3();
|
|
39226
|
+
import_react161 = __toESM(require_react(), 1);
|
|
39227
|
+
init_src4();
|
|
39228
|
+
init_esm8();
|
|
39229
|
+
init_private2();
|
|
39230
|
+
import_jsx_runtime187 = __toESM(require_jsx_runtime(), 1);
|
|
39231
|
+
import_react_native147 = __toESM(require_react_native(), 1);
|
|
38061
39232
|
init_src4();
|
|
39233
|
+
import_jsx_runtime188 = __toESM(require_jsx_runtime(), 1);
|
|
38062
39234
|
init_react_native_svg();
|
|
38063
39235
|
init_esm8();
|
|
38064
|
-
|
|
38065
|
-
|
|
38066
|
-
|
|
38067
|
-
|
|
39236
|
+
import_react_native149 = __toESM(require_react_native(), 1);
|
|
39237
|
+
import_react_native150 = __toESM(require_react_native(), 1);
|
|
39238
|
+
import_react_native151 = __toESM(require_react_native(), 1);
|
|
39239
|
+
import_jsx_runtime189 = __toESM(require_jsx_runtime(), 1);
|
|
38068
39240
|
init_react_native_safe_area_context();
|
|
38069
|
-
|
|
38070
|
-
|
|
38071
|
-
|
|
38072
|
-
|
|
38073
|
-
|
|
39241
|
+
import_react_native152 = __toESM(require_react_native(), 1);
|
|
39242
|
+
import_jsx_runtime190 = __toESM(require_jsx_runtime(), 1);
|
|
39243
|
+
import_jsx_runtime191 = __toESM(require_jsx_runtime(), 1);
|
|
39244
|
+
import_react162 = __toESM(require_react(), 1);
|
|
39245
|
+
import_react_native153 = __toESM(require_react_native(), 1);
|
|
38074
39246
|
init_src4();
|
|
38075
|
-
|
|
39247
|
+
import_react163 = __toESM(require_react(), 1);
|
|
38076
39248
|
init_src4();
|
|
38077
39249
|
init_src4();
|
|
38078
|
-
|
|
39250
|
+
import_jsx_runtime192 = __toESM(require_jsx_runtime(), 1);
|
|
38079
39251
|
init_dist2();
|
|
38080
39252
|
__defProp2 = Object.defineProperty;
|
|
38081
39253
|
__export2 = function(target, all) {
|
|
@@ -38090,7 +39262,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
38090
39262
|
return false ? "local" : (_global___appsInToss = window.__appsInToss) === null || _global___appsInToss === void 0 ? void 0 : _global___appsInToss.deploymentId;
|
|
38091
39263
|
}
|
|
38092
39264
|
};
|
|
38093
|
-
AppsInTossModuleInstance =
|
|
39265
|
+
AppsInTossModuleInstance = import_react_native135.NativeModules.AppsInTossModule;
|
|
38094
39266
|
AppsInTossModule = AppsInTossModuleInstance;
|
|
38095
39267
|
SEMVER_REGEX = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\\-]+(?:\.[\da-z\\-]+)*))?(?:\+[\da-z\\-]+(?:\.[\da-z\\-]+)*)?)?)?$/i;
|
|
38096
39268
|
isWildcard = function(val) {
|
|
@@ -38177,7 +39349,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
38177
39349
|
}
|
|
38178
39350
|
return 0;
|
|
38179
39351
|
};
|
|
38180
|
-
TossCoreModule =
|
|
39352
|
+
TossCoreModule = import_react_native134.NativeModules.TossCoreModule;
|
|
38181
39353
|
ENTRY_APP_EVENT_SCHEMA_ID = 1562181;
|
|
38182
39354
|
AppEvent = {
|
|
38183
39355
|
Entry: EntryAppEvent,
|
|
@@ -38209,7 +39381,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
38209
39381
|
]);
|
|
38210
39382
|
return EntryMessageExitedEvent2;
|
|
38211
39383
|
}(BedrockEventDefinition);
|
|
38212
|
-
nativeEventEmitter2 = new
|
|
39384
|
+
nativeEventEmitter2 = new import_react_native138.NativeEventEmitter(AppsInTossModuleInstance);
|
|
38213
39385
|
UpdateLocationEvent = /* @__PURE__ */ function(BedrockEventDefinition22) {
|
|
38214
39386
|
"use strict";
|
|
38215
39387
|
_inherits(UpdateLocationEvent2, BedrockEventDefinition22);
|
|
@@ -38392,12 +39564,18 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
38392
39564
|
getCurrentLocation: function() {
|
|
38393
39565
|
return getCurrentLocation;
|
|
38394
39566
|
},
|
|
39567
|
+
getGameCenterGameProfile: function() {
|
|
39568
|
+
return getGameCenterGameProfile;
|
|
39569
|
+
},
|
|
38395
39570
|
getTossShareLink: function() {
|
|
38396
39571
|
return getTossShareLink;
|
|
38397
39572
|
},
|
|
38398
39573
|
openCamera: function() {
|
|
38399
39574
|
return openCamera;
|
|
38400
39575
|
},
|
|
39576
|
+
openGameCenterLeaderboard: function() {
|
|
39577
|
+
return openGameCenterLeaderboard;
|
|
39578
|
+
},
|
|
38401
39579
|
saveBase64Data: function() {
|
|
38402
39580
|
return saveBase64Data;
|
|
38403
39581
|
},
|
|
@@ -38406,10 +39584,18 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
38406
39584
|
},
|
|
38407
39585
|
setDeviceOrientation: function() {
|
|
38408
39586
|
return setDeviceOrientation;
|
|
39587
|
+
},
|
|
39588
|
+
submitGameCenterLeaderBoardScore: function() {
|
|
39589
|
+
return submitGameCenterLeaderBoardScore;
|
|
38409
39590
|
}
|
|
38410
39591
|
});
|
|
38411
39592
|
DEFAULT_MAX_COUNT = 10;
|
|
38412
39593
|
DEFAULT_MAX_WIDTH = 1024;
|
|
39594
|
+
GAME_PROFILE_WEBVIEW_URL = "https://service.toss.im/game-center/profile";
|
|
39595
|
+
GAME_CENTER_MIN_VERSION = {
|
|
39596
|
+
android: "5.221.0",
|
|
39597
|
+
ios: "5.221.0"
|
|
39598
|
+
};
|
|
38413
39599
|
AppsInToss = {
|
|
38414
39600
|
registerApp
|
|
38415
39601
|
};
|
|
@@ -38421,25 +39607,425 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
38421
39607
|
loadAdMobRewardedAd.isSupported = createIsSupported();
|
|
38422
39608
|
showAdMobInterstitialAd.isSupported = createIsSupported();
|
|
38423
39609
|
showAdMobRewardedAd.isSupported = createIsSupported();
|
|
39610
|
+
IAP = {
|
|
39611
|
+
createOneTimePurchaseOrder,
|
|
39612
|
+
getProductItemList
|
|
39613
|
+
};
|
|
38424
39614
|
Storage = {
|
|
38425
39615
|
getItem,
|
|
38426
39616
|
setItem,
|
|
38427
39617
|
removeItem,
|
|
38428
39618
|
clearItems
|
|
38429
39619
|
};
|
|
38430
|
-
IAP = {
|
|
38431
|
-
createOneTimePurchaseOrder,
|
|
38432
|
-
getProductItemList
|
|
38433
|
-
};
|
|
38434
39620
|
GoogleAdMob = {
|
|
38435
39621
|
loadAdMobInterstitialAd,
|
|
38436
39622
|
showAdMobInterstitialAd,
|
|
38437
39623
|
loadAdMobRewardedAd,
|
|
38438
39624
|
showAdMobRewardedAd
|
|
38439
39625
|
};
|
|
39626
|
+
useGameProfileToast = function() {
|
|
39627
|
+
var overlay = useOverlay();
|
|
39628
|
+
var openGameProfileToast = function(nickname, profileImageUri) {
|
|
39629
|
+
return new Promise(function(resolve) {
|
|
39630
|
+
overlay.open(function(param) {
|
|
39631
|
+
var isOpen = param.isOpen, close = param.close, exit = param.exit;
|
|
39632
|
+
return /* @__PURE__ */ (0, import_jsx_runtime187.jsx)(ColorPreferenceProvider, {
|
|
39633
|
+
colorPreference: "dark",
|
|
39634
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime187.jsx)(AdaptiveColorProvider, {
|
|
39635
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime187.jsx)(Toast, {
|
|
39636
|
+
open: isOpen,
|
|
39637
|
+
onClose: function() {
|
|
39638
|
+
resolve();
|
|
39639
|
+
close();
|
|
39640
|
+
},
|
|
39641
|
+
onExited: exit,
|
|
39642
|
+
position: "top",
|
|
39643
|
+
text: "".concat(nickname, "\uB2D8 \uBC18\uAC00\uC6CC\uC694!"),
|
|
39644
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime187.jsx)(Asset2.Image, {
|
|
39645
|
+
style: {
|
|
39646
|
+
borderRadius: 64,
|
|
39647
|
+
overflow: "hidden"
|
|
39648
|
+
},
|
|
39649
|
+
frameShape: Asset2.frameShape.CleanW32,
|
|
39650
|
+
source: {
|
|
39651
|
+
uri: profileImageUri
|
|
39652
|
+
}
|
|
39653
|
+
})
|
|
39654
|
+
})
|
|
39655
|
+
})
|
|
39656
|
+
});
|
|
39657
|
+
});
|
|
39658
|
+
});
|
|
39659
|
+
};
|
|
39660
|
+
return {
|
|
39661
|
+
openGameProfileToast
|
|
39662
|
+
};
|
|
39663
|
+
};
|
|
39664
|
+
DEFAULT_ERROR = {
|
|
39665
|
+
title: "\uC7A0\uC2DC \uD6C4 \uB2E4\uC2DC \uC2DC\uB3C4\uD574\uC8FC\uC138\uC694",
|
|
39666
|
+
description: "\uBB38\uC81C\uAC00 \uACC4\uC18D\uB418\uBA74 \uD1A0\uC2A4 \uACE0\uAC1D\uC13C\uD130(1599-4905)\uB85C \uBB38\uC758\uD574\uC8FC\uC138\uC694."
|
|
39667
|
+
};
|
|
39668
|
+
PLAYSTORE_LINK = "https://play.google.com/store/apps/details?id=viva.republica.toss";
|
|
39669
|
+
APPSTORE_LINK = "https://itunes.apple.com/app/id839333328";
|
|
39670
|
+
getMarketLink = function() {
|
|
39671
|
+
return import_react_native147.Platform.OS === "android" ? PLAYSTORE_LINK : APPSTORE_LINK;
|
|
39672
|
+
};
|
|
39673
|
+
INTERNAL__onVisibilityChangedByTransparentServiceWeb = onVisibilityChangedByTransparentServiceWeb;
|
|
39674
|
+
openTransparentWebView = function(param) {
|
|
39675
|
+
var webUrl = param.webUrl, _param_cleanupWhenDismissed = param.cleanupWhenDismissed, cleanupWhenDismissed = _param_cleanupWhenDismissed === void 0 ? true : _param_cleanupWhenDismissed, onEvent = param.onEvent, onError = param.onError, _param_callbackId = param.callbackId, callbackId = _param_callbackId === void 0 ? "fn" : _param_callbackId, params = param.params;
|
|
39676
|
+
var url = new URL("supertoss://transparent-service-web");
|
|
39677
|
+
url.searchParams.set("url", webUrl);
|
|
39678
|
+
url.searchParams.set("onVisibilityChangeCallback", callbackId);
|
|
39679
|
+
Object.entries(params !== null && params !== void 0 ? params : {}).forEach(function(param2) {
|
|
39680
|
+
var _param = _sliced_to_array(param2, 2), key = _param[0], value = _param[1];
|
|
39681
|
+
url.searchParams.set(key, value);
|
|
39682
|
+
});
|
|
39683
|
+
var cleanup = INTERNAL__onVisibilityChangedByTransparentServiceWeb({
|
|
39684
|
+
options: {
|
|
39685
|
+
callbackId
|
|
39686
|
+
},
|
|
39687
|
+
onError: function(error) {
|
|
39688
|
+
onError(error);
|
|
39689
|
+
cleanup();
|
|
39690
|
+
},
|
|
39691
|
+
onEvent: function(value) {
|
|
39692
|
+
onEvent(value);
|
|
39693
|
+
if (cleanupWhenDismissed && value === true) {
|
|
39694
|
+
cleanup();
|
|
39695
|
+
}
|
|
39696
|
+
}
|
|
39697
|
+
});
|
|
39698
|
+
openURL(url.toString());
|
|
39699
|
+
};
|
|
39700
|
+
useGameCenterProfile = function(isReadyForProfileUI) {
|
|
39701
|
+
var _useState = _sliced_to_array((0, import_react161.useState)(void 0), 2), profileData = _useState[0], setProfileData = _useState[1];
|
|
39702
|
+
var _useState1 = _sliced_to_array((0, import_react161.useState)(true), 2), isProfileDataLoading = _useState1[0], setIsProfileDataLoading = _useState1[1];
|
|
39703
|
+
var _useState2 = _sliced_to_array((0, import_react161.useState)(false), 2), isProfileDataRefetching = _useState2[0], setIsProfileDataRefetching = _useState2[1];
|
|
39704
|
+
var shouldShowLoadingOverlay = isProfileDataLoading && isReadyForProfileUI;
|
|
39705
|
+
var shouldShowProfileNotFoundOverlay = (profileData === null || profileData === void 0 ? void 0 : profileData.statusCode) === "PROFILE_NOT_FOUND" && isReadyForProfileUI && !isProfileDataRefetching;
|
|
39706
|
+
var canShowBottomSheetOrToast = !isProfileDataLoading && isReadyForProfileUI;
|
|
39707
|
+
var _useState3 = _sliced_to_array((0, import_react161.useState)(false), 2), isWebviewLoading = _useState3[0], setIsWebviewLoading = _useState3[1];
|
|
39708
|
+
var isCompletedProfileFlow = (0, import_react161.useRef)(false);
|
|
39709
|
+
var _useDialog = useDialog(), openAlert = _useDialog.openAlert, openConfirm = _useDialog.openConfirm;
|
|
39710
|
+
var openGameProfileToast = useGameProfileToast().openGameProfileToast;
|
|
39711
|
+
var openErrorAlert = (0, import_react161.useCallback)(/* @__PURE__ */ _async_to_generator(function() {
|
|
39712
|
+
return __generator(this, function(_state) {
|
|
39713
|
+
switch (_state.label) {
|
|
39714
|
+
case 0:
|
|
39715
|
+
return [
|
|
39716
|
+
4,
|
|
39717
|
+
openAlert({
|
|
39718
|
+
title: DEFAULT_ERROR.title,
|
|
39719
|
+
description: DEFAULT_ERROR.description
|
|
39720
|
+
})
|
|
39721
|
+
];
|
|
39722
|
+
case 1:
|
|
39723
|
+
_state.sent();
|
|
39724
|
+
closeView();
|
|
39725
|
+
return [
|
|
39726
|
+
2
|
|
39727
|
+
];
|
|
39728
|
+
}
|
|
39729
|
+
});
|
|
39730
|
+
}), [
|
|
39731
|
+
openAlert
|
|
39732
|
+
]);
|
|
39733
|
+
var openProfileWebview = (0, import_react161.useCallback)(function() {
|
|
39734
|
+
if (isWebviewLoading) {
|
|
39735
|
+
return;
|
|
39736
|
+
}
|
|
39737
|
+
setIsWebviewLoading(true);
|
|
39738
|
+
openTransparentWebView({
|
|
39739
|
+
webUrl: "".concat(GAME_PROFILE_WEBVIEW_URL, "?appName=").concat(getAppName(), "&referrer=appsintoss.").concat(getAppName()),
|
|
39740
|
+
onEvent: function() {
|
|
39741
|
+
var _ref = _async_to_generator(function(isClosedTransparentWebView) {
|
|
39742
|
+
var data, _;
|
|
39743
|
+
return __generator(this, function(_state) {
|
|
39744
|
+
switch (_state.label) {
|
|
39745
|
+
case 0:
|
|
39746
|
+
if (!isClosedTransparentWebView) return [
|
|
39747
|
+
3,
|
|
39748
|
+
4
|
|
39749
|
+
];
|
|
39750
|
+
_state.label = 1;
|
|
39751
|
+
case 1:
|
|
39752
|
+
_state.trys.push([
|
|
39753
|
+
1,
|
|
39754
|
+
3,
|
|
39755
|
+
,
|
|
39756
|
+
4
|
|
39757
|
+
]);
|
|
39758
|
+
setIsWebviewLoading(false);
|
|
39759
|
+
setIsProfileDataRefetching(true);
|
|
39760
|
+
return [
|
|
39761
|
+
4,
|
|
39762
|
+
getGameCenterGameProfile()
|
|
39763
|
+
];
|
|
39764
|
+
case 2:
|
|
39765
|
+
data = _state.sent();
|
|
39766
|
+
setProfileData(data);
|
|
39767
|
+
setIsProfileDataRefetching(false);
|
|
39768
|
+
if ((data === null || data === void 0 ? void 0 : data.statusCode) === "SUCCESS") {
|
|
39769
|
+
openGameProfileToast(data.nickname, data.profileImageUri);
|
|
39770
|
+
}
|
|
39771
|
+
return [
|
|
39772
|
+
3,
|
|
39773
|
+
4
|
|
39774
|
+
];
|
|
39775
|
+
case 3:
|
|
39776
|
+
_ = _state.sent();
|
|
39777
|
+
setIsProfileDataRefetching(false);
|
|
39778
|
+
openErrorAlert();
|
|
39779
|
+
return [
|
|
39780
|
+
3,
|
|
39781
|
+
4
|
|
39782
|
+
];
|
|
39783
|
+
case 4:
|
|
39784
|
+
return [
|
|
39785
|
+
2
|
|
39786
|
+
];
|
|
39787
|
+
}
|
|
39788
|
+
});
|
|
39789
|
+
});
|
|
39790
|
+
return function(isClosedTransparentWebView) {
|
|
39791
|
+
return _ref.apply(this, arguments);
|
|
39792
|
+
};
|
|
39793
|
+
}(),
|
|
39794
|
+
onError: function() {
|
|
39795
|
+
openErrorAlert();
|
|
39796
|
+
}
|
|
39797
|
+
});
|
|
39798
|
+
}, [
|
|
39799
|
+
isWebviewLoading,
|
|
39800
|
+
openGameProfileToast,
|
|
39801
|
+
openErrorAlert
|
|
39802
|
+
]);
|
|
39803
|
+
var updateAppToSupportedMinVersion = (0, import_react161.useCallback)(/* @__PURE__ */ _async_to_generator(function() {
|
|
39804
|
+
var upddateConfirmDialogLabel, isConfirmed, STORE_SCHEME;
|
|
39805
|
+
return __generator(this, function(_state) {
|
|
39806
|
+
switch (_state.label) {
|
|
39807
|
+
case 0:
|
|
39808
|
+
upddateConfirmDialogLabel = {
|
|
39809
|
+
title: "".concat(josa(getAppsInTossGlobals().brandDisplayName, "\uC744/\uB97C"), " \uD558\uB824\uBA74 \n\uC571\uC744 \uC5C5\uB370\uC774\uD2B8\uD574\uC8FC\uC138\uC694"),
|
|
39810
|
+
leftButton: "\uB2EB\uAE30",
|
|
39811
|
+
rightButton: "\uC5C5\uB370\uC774\uD2B8\uD558\uAE30"
|
|
39812
|
+
};
|
|
39813
|
+
return [
|
|
39814
|
+
4,
|
|
39815
|
+
openConfirm({
|
|
39816
|
+
title: upddateConfirmDialogLabel.title,
|
|
39817
|
+
leftButton: upddateConfirmDialogLabel.leftButton,
|
|
39818
|
+
rightButton: upddateConfirmDialogLabel.rightButton,
|
|
39819
|
+
closeOnDimmerClick: true
|
|
39820
|
+
})
|
|
39821
|
+
];
|
|
39822
|
+
case 1:
|
|
39823
|
+
isConfirmed = _state.sent();
|
|
39824
|
+
if (!isConfirmed) {
|
|
39825
|
+
closeView();
|
|
39826
|
+
return [
|
|
39827
|
+
2
|
|
39828
|
+
];
|
|
39829
|
+
}
|
|
39830
|
+
STORE_SCHEME = getMarketLink();
|
|
39831
|
+
openURL("supertoss://web?url=".concat(STORE_SCHEME, "&external=browser"));
|
|
39832
|
+
return [
|
|
39833
|
+
2
|
|
39834
|
+
];
|
|
39835
|
+
}
|
|
39836
|
+
});
|
|
39837
|
+
}), [
|
|
39838
|
+
openConfirm
|
|
39839
|
+
]);
|
|
39840
|
+
return {
|
|
39841
|
+
profileData,
|
|
39842
|
+
isProfileDataLoading,
|
|
39843
|
+
isProfileDataRefetching,
|
|
39844
|
+
shouldShowLoadingOverlay,
|
|
39845
|
+
shouldShowProfileNotFoundOverlay,
|
|
39846
|
+
canShowBottomSheetOrToast,
|
|
39847
|
+
isCompletedProfileFlow,
|
|
39848
|
+
updateAppToSupportedMinVersion,
|
|
39849
|
+
setIsProfileDataLoading,
|
|
39850
|
+
openProfileWebview,
|
|
39851
|
+
setProfileData,
|
|
39852
|
+
openErrorAlert,
|
|
39853
|
+
openGameProfileToast
|
|
39854
|
+
};
|
|
39855
|
+
};
|
|
39856
|
+
Z_INDEX = {
|
|
39857
|
+
/* 게임 프로필을 위한 overlay
|
|
39858
|
+
*/
|
|
39859
|
+
PROFILE_OVERLAY: 9998,
|
|
39860
|
+
// 게임을 종료할 수 있는 X 버튼
|
|
39861
|
+
CLOSE_BUTTON: 9999
|
|
39862
|
+
};
|
|
39863
|
+
GameProfile = function(param) {
|
|
39864
|
+
var children = param.children, isReadyForProfileUI = param.isReadyForProfileUI;
|
|
39865
|
+
var _useGameCenterProfile = useGameCenterProfile(isReadyForProfileUI), profileData = _useGameCenterProfile.profileData, isProfileDataRefetching = _useGameCenterProfile.isProfileDataRefetching, shouldShowLoadingOverlay = _useGameCenterProfile.shouldShowLoadingOverlay, shouldShowProfileNotFoundOverlay = _useGameCenterProfile.shouldShowProfileNotFoundOverlay, canShowBottomSheetOrToast = _useGameCenterProfile.canShowBottomSheetOrToast, isCompletedProfileFlow = _useGameCenterProfile.isCompletedProfileFlow, openProfileWebview = _useGameCenterProfile.openProfileWebview, updateAppToSupportedMinVersion = _useGameCenterProfile.updateAppToSupportedMinVersion, setIsProfileDataLoading = _useGameCenterProfile.setIsProfileDataLoading, setProfileData = _useGameCenterProfile.setProfileData, openErrorAlert = _useGameCenterProfile.openErrorAlert, openGameProfileToast = _useGameCenterProfile.openGameProfileToast;
|
|
39866
|
+
(0, import_react160.useEffect)(function() {
|
|
39867
|
+
try {
|
|
39868
|
+
var getProfileData = function() {
|
|
39869
|
+
var _ref = _async_to_generator(function() {
|
|
39870
|
+
var data;
|
|
39871
|
+
return __generator(this, function(_state) {
|
|
39872
|
+
switch (_state.label) {
|
|
39873
|
+
case 0:
|
|
39874
|
+
return [
|
|
39875
|
+
4,
|
|
39876
|
+
getGameCenterGameProfile()
|
|
39877
|
+
];
|
|
39878
|
+
case 1:
|
|
39879
|
+
data = _state.sent();
|
|
39880
|
+
setProfileData(data);
|
|
39881
|
+
setIsProfileDataLoading(false);
|
|
39882
|
+
return [
|
|
39883
|
+
2
|
|
39884
|
+
];
|
|
39885
|
+
}
|
|
39886
|
+
});
|
|
39887
|
+
});
|
|
39888
|
+
return function getProfileData2() {
|
|
39889
|
+
return _ref.apply(this, arguments);
|
|
39890
|
+
};
|
|
39891
|
+
}();
|
|
39892
|
+
getProfileData();
|
|
39893
|
+
} catch (_) {
|
|
39894
|
+
openErrorAlert();
|
|
39895
|
+
setIsProfileDataLoading(false);
|
|
39896
|
+
}
|
|
39897
|
+
}, []);
|
|
39898
|
+
(0, import_react160.useEffect)(function() {
|
|
39899
|
+
var handleGameProfileFlow = function() {
|
|
39900
|
+
var _ref = _async_to_generator(function() {
|
|
39901
|
+
return __generator(this, function(_state) {
|
|
39902
|
+
if (!canShowBottomSheetOrToast) {
|
|
39903
|
+
return [
|
|
39904
|
+
2
|
|
39905
|
+
];
|
|
39906
|
+
}
|
|
39907
|
+
if (isCompletedProfileFlow.current) {
|
|
39908
|
+
return [
|
|
39909
|
+
2
|
|
39910
|
+
];
|
|
39911
|
+
}
|
|
39912
|
+
isCompletedProfileFlow.current = true;
|
|
39913
|
+
if (!isMinVersionSupported(GAME_CENTER_MIN_VERSION)) {
|
|
39914
|
+
updateAppToSupportedMinVersion();
|
|
39915
|
+
return [
|
|
39916
|
+
2
|
|
39917
|
+
];
|
|
39918
|
+
}
|
|
39919
|
+
if ((profileData === null || profileData === void 0 ? void 0 : profileData.statusCode) === "SUCCESS") {
|
|
39920
|
+
openGameProfileToast(profileData.nickname, profileData.profileImageUri);
|
|
39921
|
+
return [
|
|
39922
|
+
2
|
|
39923
|
+
];
|
|
39924
|
+
}
|
|
39925
|
+
if ((profileData === null || profileData === void 0 ? void 0 : profileData.statusCode) === "PROFILE_NOT_FOUND") {
|
|
39926
|
+
openProfileWebview();
|
|
39927
|
+
}
|
|
39928
|
+
return [
|
|
39929
|
+
2
|
|
39930
|
+
];
|
|
39931
|
+
});
|
|
39932
|
+
});
|
|
39933
|
+
return function handleGameProfileFlow2() {
|
|
39934
|
+
return _ref.apply(this, arguments);
|
|
39935
|
+
};
|
|
39936
|
+
}();
|
|
39937
|
+
handleGameProfileFlow();
|
|
39938
|
+
}, [
|
|
39939
|
+
canShowBottomSheetOrToast,
|
|
39940
|
+
isCompletedProfileFlow,
|
|
39941
|
+
openGameProfileToast,
|
|
39942
|
+
openProfileWebview,
|
|
39943
|
+
profileData,
|
|
39944
|
+
updateAppToSupportedMinVersion
|
|
39945
|
+
]);
|
|
39946
|
+
if (!isMinVersionSupported(GAME_CENTER_MIN_VERSION)) {
|
|
39947
|
+
return /* @__PURE__ */ (0, import_jsx_runtime188.jsxs)(import_jsx_runtime188.Fragment, {
|
|
39948
|
+
children: [
|
|
39949
|
+
/* @__PURE__ */ (0, import_jsx_runtime188.jsx)(import_react_native144.View, {
|
|
39950
|
+
style: {
|
|
39951
|
+
flex: 1,
|
|
39952
|
+
position: "relative"
|
|
39953
|
+
},
|
|
39954
|
+
children
|
|
39955
|
+
}),
|
|
39956
|
+
/* @__PURE__ */ (0, import_jsx_runtime188.jsx)(import_react_native144.Pressable, {
|
|
39957
|
+
style: _object_spread({}, overlayStyle),
|
|
39958
|
+
onPress: function() {
|
|
39959
|
+
updateAppToSupportedMinVersion();
|
|
39960
|
+
}
|
|
39961
|
+
})
|
|
39962
|
+
]
|
|
39963
|
+
});
|
|
39964
|
+
}
|
|
39965
|
+
if (shouldShowLoadingOverlay || isProfileDataRefetching) {
|
|
39966
|
+
return /* @__PURE__ */ (0, import_jsx_runtime188.jsxs)(import_jsx_runtime188.Fragment, {
|
|
39967
|
+
children: [
|
|
39968
|
+
/* @__PURE__ */ (0, import_jsx_runtime188.jsx)(import_react_native144.View, {
|
|
39969
|
+
style: {
|
|
39970
|
+
flex: 1,
|
|
39971
|
+
position: "relative"
|
|
39972
|
+
},
|
|
39973
|
+
children
|
|
39974
|
+
}),
|
|
39975
|
+
/* @__PURE__ */ (0, import_jsx_runtime188.jsx)(import_react_native144.View, {
|
|
39976
|
+
style: _object_spread_props(_object_spread({}, overlayStyle), {
|
|
39977
|
+
justifyContent: "center",
|
|
39978
|
+
alignItems: "center",
|
|
39979
|
+
backgroundColor: "rgba(0, 0, 0, 0.2)"
|
|
39980
|
+
}),
|
|
39981
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime188.jsx)(Loader_default, {
|
|
39982
|
+
size: "large",
|
|
39983
|
+
type: "light"
|
|
39984
|
+
})
|
|
39985
|
+
})
|
|
39986
|
+
]
|
|
39987
|
+
});
|
|
39988
|
+
}
|
|
39989
|
+
if (shouldShowProfileNotFoundOverlay) {
|
|
39990
|
+
return /* @__PURE__ */ (0, import_jsx_runtime188.jsxs)(import_jsx_runtime188.Fragment, {
|
|
39991
|
+
children: [
|
|
39992
|
+
/* @__PURE__ */ (0, import_jsx_runtime188.jsx)(import_react_native144.View, {
|
|
39993
|
+
style: {
|
|
39994
|
+
flex: 1,
|
|
39995
|
+
position: "relative"
|
|
39996
|
+
},
|
|
39997
|
+
children
|
|
39998
|
+
}),
|
|
39999
|
+
shouldShowProfileNotFoundOverlay && /* @__PURE__ */ (0, import_jsx_runtime188.jsx)(import_react_native144.Pressable, {
|
|
40000
|
+
style: _object_spread({}, overlayStyle),
|
|
40001
|
+
onPress: function() {
|
|
40002
|
+
openProfileWebview();
|
|
40003
|
+
}
|
|
40004
|
+
})
|
|
40005
|
+
]
|
|
40006
|
+
});
|
|
40007
|
+
}
|
|
40008
|
+
return /* @__PURE__ */ (0, import_jsx_runtime188.jsx)(import_jsx_runtime188.Fragment, {
|
|
40009
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime188.jsx)(import_react_native144.View, {
|
|
40010
|
+
style: {
|
|
40011
|
+
flex: 1,
|
|
40012
|
+
position: "relative"
|
|
40013
|
+
},
|
|
40014
|
+
children
|
|
40015
|
+
})
|
|
40016
|
+
});
|
|
40017
|
+
};
|
|
40018
|
+
overlayStyle = {
|
|
40019
|
+
position: "absolute",
|
|
40020
|
+
top: 0,
|
|
40021
|
+
left: 0,
|
|
40022
|
+
right: 0,
|
|
40023
|
+
bottom: 0,
|
|
40024
|
+
zIndex: Z_INDEX.PROFILE_OVERLAY
|
|
40025
|
+
};
|
|
38440
40026
|
RIGHT_MARGIN2 = 24;
|
|
38441
40027
|
IOS_DEFAULT_MARGIN2 = 20;
|
|
38442
|
-
|
|
40028
|
+
styles34 = import_react_native150.StyleSheet.create({
|
|
38443
40029
|
ios: {
|
|
38444
40030
|
marginRight: -IOS_DEFAULT_MARGIN2 + RIGHT_MARGIN2,
|
|
38445
40031
|
flexDirection: "row"
|
|
@@ -38449,10 +40035,11 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
38449
40035
|
}
|
|
38450
40036
|
});
|
|
38451
40037
|
originXML = '<svg fill="none" height="30" viewBox="0 0 30 30" width="30" xmlns="https://www.w3.org/2000/svg"><rect fill="#031832" fill-opacity=".46" height="30" rx="15" width="30"/><rect height="29.5" rx="14.75" stroke="#d9d9ff" stroke-opacity=".11" stroke-width=".5" width="29.5" x=".25" y=".25"/><path clip-rule="evenodd" d="m16.5119 15.0014 4.7092-4.7092c.0929-.0928.1666-.2031.2169-.32441.0503-.12134.0762-.25141.0762-.38276.0001-.13136-.0258-.26144-.076-.38281s-.1239-.23166-.2167-.32457c-.0929-.09291-.2031-.16662-.3245-.21692-.1213-.05031-.2514-.07622-.3827-.07626-.1314-.00004-.2615.0258-.3828.07603-.1214.05023-.2317.12388-.3246.21673l-4.7092 4.70997-4.71-4.70997c-.1897-.17718-.4408-.27373-.70034-.26927s-.5072.10959-.69069.2932c-.1835.1836-.28848.43132-.29279.69087-.00432.25954.09238.51057.26968.70017l4.71004 4.7092-4.71004 4.7092c-.1392.1401-.23385.3183-.27204.5121-.0382.1939-.01823.3946.05739.5771s.20351.3386.36759.4486.35702.169.55456.1697c.25583 0 .51164-.0975.70664-.2925l4.71-4.71 4.7092 4.71c.0927.093.2029.1668.3243.2172.1213.0504.2514.0763.3828.0763s.2614-.0259.3828-.0763c.1213-.0504.2315-.1242.3243-.2172.0929-.0929.1667-.2032.217-.3246s.0762-.2515.0762-.3829-.0259-.2616-.0762-.383-.1241-.2317-.217-.3245z" fill="#fdfdfe" fill-opacity=".89" fill-rule="evenodd"/></svg>';
|
|
38452
|
-
GameWebView = /* @__PURE__ */ (0,
|
|
40038
|
+
GameWebView = /* @__PURE__ */ (0, import_react159.forwardRef)(function GameWebView2(props, ref) {
|
|
38453
40039
|
var openConfirm = useDialog().openConfirm;
|
|
38454
40040
|
var brandDisplayName = getAppsInTossGlobals().brandDisplayName;
|
|
38455
|
-
var
|
|
40041
|
+
var _useState2 = _sliced_to_array((0, import_react159.useState)(false), 2), isEntryMessageExited = _useState2[0], setIsEntryMessageExited = _useState2[1];
|
|
40042
|
+
var handleClose = (0, import_react159.useCallback)(/* @__PURE__ */ _async_to_generator(function() {
|
|
38456
40043
|
var isConfirmed;
|
|
38457
40044
|
return __generator(this, function(_state) {
|
|
38458
40045
|
switch (_state.label) {
|
|
@@ -38480,8 +40067,8 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
38480
40067
|
brandDisplayName,
|
|
38481
40068
|
openConfirm
|
|
38482
40069
|
]);
|
|
38483
|
-
(0,
|
|
38484
|
-
if (
|
|
40070
|
+
(0, import_react159.useEffect)(function() {
|
|
40071
|
+
if (import_react_native142.Platform.OS === "ios") {
|
|
38485
40072
|
setIosSwipeGestureEnabled({
|
|
38486
40073
|
isEnabled: false
|
|
38487
40074
|
});
|
|
@@ -38493,31 +40080,38 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
38493
40080
|
}
|
|
38494
40081
|
return;
|
|
38495
40082
|
}, []);
|
|
38496
|
-
(0,
|
|
40083
|
+
(0, import_react159.useEffect)(function() {
|
|
38497
40084
|
var backHandler = function() {
|
|
38498
40085
|
handleClose();
|
|
38499
40086
|
return true;
|
|
38500
40087
|
};
|
|
38501
|
-
|
|
40088
|
+
import_react_native142.BackHandler.addEventListener("hardwareBackPress", backHandler);
|
|
38502
40089
|
return function() {
|
|
38503
|
-
|
|
40090
|
+
import_react_native142.BackHandler.removeEventListener("hardwareBackPress", backHandler);
|
|
38504
40091
|
};
|
|
38505
40092
|
}, [
|
|
38506
40093
|
handleClose
|
|
38507
40094
|
]);
|
|
38508
|
-
|
|
40095
|
+
(0, import_react159.useEffect)(function() {
|
|
40096
|
+
appsInTossEvent.addEventListener("entryMessageExited", {
|
|
40097
|
+
onEvent: function() {
|
|
40098
|
+
setIsEntryMessageExited(true);
|
|
40099
|
+
}
|
|
40100
|
+
});
|
|
40101
|
+
}, []);
|
|
40102
|
+
return /* @__PURE__ */ (0, import_jsx_runtime191.jsxs)(import_jsx_runtime191.Fragment, {
|
|
38509
40103
|
children: [
|
|
38510
|
-
/* @__PURE__ */ (0,
|
|
40104
|
+
/* @__PURE__ */ (0, import_jsx_runtime191.jsx)(GameNavigationBar, {
|
|
38511
40105
|
onClose: handleClose
|
|
38512
40106
|
}),
|
|
38513
|
-
/* @__PURE__ */ (0,
|
|
38514
|
-
|
|
38515
|
-
|
|
38516
|
-
},
|
|
38517
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime180.jsx)(react_native_webview_exports.WebView, _object_spread({
|
|
40107
|
+
getOperationalEnvironment() === "toss" ? /* @__PURE__ */ (0, import_jsx_runtime191.jsx)(GameProfile, {
|
|
40108
|
+
isReadyForProfileUI: isEntryMessageExited,
|
|
40109
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime191.jsx)(react_native_webview_exports.WebView, _object_spread({
|
|
38518
40110
|
ref
|
|
38519
40111
|
}, props))
|
|
38520
|
-
})
|
|
40112
|
+
}) : /* @__PURE__ */ (0, import_jsx_runtime191.jsx)(react_native_webview_exports.WebView, _object_spread({
|
|
40113
|
+
ref
|
|
40114
|
+
}, props))
|
|
38521
40115
|
]
|
|
38522
40116
|
});
|
|
38523
40117
|
});
|
|
@@ -38540,6 +40134,42 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
38540
40134
|
return startUpdateLocation;
|
|
38541
40135
|
}
|
|
38542
40136
|
});
|
|
40137
|
+
FontA11yCategory = {
|
|
40138
|
+
Large: "Large",
|
|
40139
|
+
xLarge: "xLarge",
|
|
40140
|
+
xxLarge: "xxLarge",
|
|
40141
|
+
xxxLarge: "xxxLarge",
|
|
40142
|
+
A11y_Medium: "A11y_Medium",
|
|
40143
|
+
A11y_Large: "A11y_Large",
|
|
40144
|
+
A11y_xLarge: "A11y_xLarge",
|
|
40145
|
+
A11y_xxLarge: "A11y_xxLarge",
|
|
40146
|
+
A11y_xxxLarge: "A11y_xxxLarge"
|
|
40147
|
+
};
|
|
40148
|
+
androidFontScaleMap = {
|
|
40149
|
+
100: FontA11yCategory.Large,
|
|
40150
|
+
110: FontA11yCategory.xLarge,
|
|
40151
|
+
120: FontA11yCategory.xxLarge,
|
|
40152
|
+
135: FontA11yCategory.xxxLarge,
|
|
40153
|
+
160: FontA11yCategory.A11y_Medium,
|
|
40154
|
+
190: FontA11yCategory.A11y_Large,
|
|
40155
|
+
235: FontA11yCategory.A11y_xLarge,
|
|
40156
|
+
275: FontA11yCategory.A11y_xxLarge,
|
|
40157
|
+
310: FontA11yCategory.A11y_xxxLarge
|
|
40158
|
+
};
|
|
40159
|
+
iosScaleToAndroidScale = {
|
|
40160
|
+
0.823: 100,
|
|
40161
|
+
0.882: 100,
|
|
40162
|
+
0.941: 100,
|
|
40163
|
+
1: 100,
|
|
40164
|
+
1.118: 110,
|
|
40165
|
+
1.235: 120,
|
|
40166
|
+
1.353: 135,
|
|
40167
|
+
1.786: 160,
|
|
40168
|
+
2.143: 190,
|
|
40169
|
+
2.643: 235,
|
|
40170
|
+
3.143: 275,
|
|
40171
|
+
3.571: 310
|
|
40172
|
+
};
|
|
38543
40173
|
extractDateFromUUIDv7 = function(uuid) {
|
|
38544
40174
|
var timestampHex = uuid.split("-").join("").slice(0, 12);
|
|
38545
40175
|
var timestamp = Number.parseInt(timestampHex, 16);
|
|
@@ -38610,11 +40240,11 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
38610
40240
|
}
|
|
38611
40241
|
});
|
|
38612
40242
|
function Index() {
|
|
38613
|
-
return /* @__PURE__ */ (0,
|
|
40243
|
+
return /* @__PURE__ */ (0, import_jsx_runtime193.jsx)(import_react_native154.View, {
|
|
38614
40244
|
style: {
|
|
38615
40245
|
flex: 1
|
|
38616
40246
|
},
|
|
38617
|
-
children: /* @__PURE__ */ (0,
|
|
40247
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime193.jsx)(WebView3, {
|
|
38618
40248
|
style: {
|
|
38619
40249
|
flex: 1
|
|
38620
40250
|
},
|
|
@@ -38635,14 +40265,14 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
38635
40265
|
})
|
|
38636
40266
|
});
|
|
38637
40267
|
}
|
|
38638
|
-
var
|
|
40268
|
+
var import_jsx_runtime193, import_react164, import_react_native154;
|
|
38639
40269
|
var init_pages = __esm({
|
|
38640
40270
|
"react-native/pages/index.tsx"() {
|
|
38641
40271
|
"use strict";
|
|
38642
|
-
|
|
40272
|
+
import_jsx_runtime193 = __toESM(require_jsx_runtime(), 1);
|
|
38643
40273
|
init_dist4();
|
|
38644
|
-
|
|
38645
|
-
|
|
40274
|
+
import_react164 = __toESM(require_react(), 1);
|
|
40275
|
+
import_react_native154 = __toESM(require_react_native(), 1);
|
|
38646
40276
|
}
|
|
38647
40277
|
});
|
|
38648
40278
|
|
|
@@ -38661,7 +40291,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
38661
40291
|
});
|
|
38662
40292
|
|
|
38663
40293
|
// react-native/src/_app.tsx
|
|
38664
|
-
var
|
|
40294
|
+
var import_jsx_runtime194 = __toESM(require_jsx_runtime());
|
|
38665
40295
|
init_dist4();
|
|
38666
40296
|
|
|
38667
40297
|
// react-native/context.ts
|
|
@@ -38678,7 +40308,7 @@ window.__bedrock.app = { name: Ait.appName, buildNumber: Ait.buildNumber };
|
|
|
38678
40308
|
// react-native/src/_app.tsx
|
|
38679
40309
|
function AppContainer(param) {
|
|
38680
40310
|
var children = param.children;
|
|
38681
|
-
return /* @__PURE__ */ (0,
|
|
40311
|
+
return /* @__PURE__ */ (0, import_jsx_runtime194.jsx)(import_jsx_runtime194.Fragment, {
|
|
38682
40312
|
children
|
|
38683
40313
|
});
|
|
38684
40314
|
}
|