@abihealth/goapp-react-native 1.14.0 → 1.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +23 -0
- package/dist/common/animations/Animation.js +1 -1
- package/dist/common/animations/FindingAnimation/index.js +1 -1
- package/dist/common/animations/LoadingCircleAnimation/index.js +1 -1
- package/dist/common/animations/LoadingHeart.js +1 -1
- package/dist/common/api/models/auth.d.ts +8 -0
- package/dist/common/api/models/consultation.d.ts +1 -1
- package/dist/common/components/ActionSheet.js +1 -1
- package/dist/common/components/AnswerScreen/Card.js +1 -1
- package/dist/common/components/AnswerScreen/CloseConsultationActionSheet.js +3 -3
- package/dist/common/components/AnswerScreen/DeliveryAddressCard.d.ts +1 -1
- package/dist/common/components/AnswerScreen/DeliveryAddressCard.js +2 -2
- package/dist/common/components/AnswerScreen/PrescriptionCard/PrescriptionCardHeader.d.ts +1 -1
- package/dist/common/components/AnswerScreen/PrescriptionCard/PrescriptionCardHeader.js +4 -4
- package/dist/common/components/AnswerScreen/PrescriptionCard/index.d.ts +1 -1
- package/dist/common/components/AnswerScreen/PrescriptionCard/index.js +4 -4
- package/dist/common/components/AnswerScreen/Summary.js +3 -3
- package/dist/common/components/BackgroundPattern.js +2 -2
- package/dist/common/components/Button.js +2 -2
- package/dist/common/components/CancelConsultationButton.js +2 -2
- package/dist/common/components/Checkbox.js +2 -2
- package/dist/common/components/DateInput.js +3 -3
- package/dist/common/components/DoctorProfileCard.d.ts +1 -1
- package/dist/common/components/DoctorProfileCard.js +16 -15
- package/dist/common/components/FormControl.js +1 -1
- package/dist/common/components/FormWrapper.d.ts +1 -1
- package/dist/common/components/FormWrapper.js +2 -2
- package/dist/common/components/Header.js +1 -1
- package/dist/common/components/Input.js +2 -2
- package/dist/common/components/Modal/AttachmentPreviewModal.js +4 -4
- package/dist/common/components/Modal/CancelModal.js +3 -3
- package/dist/common/components/Modal/CloseConsultationModal.js +3 -3
- package/dist/common/components/Modal/DoctorProfileModal.js +3 -3
- package/dist/common/components/Modal/ModalHeader.js +2 -2
- package/dist/common/components/Modal/TwoOptionsModal.js +1 -1
- package/dist/common/components/Modal/index.js +2 -2
- package/dist/common/components/PhoneInput.js +2 -2
- package/dist/common/components/Reminder.js +9 -9
- package/dist/common/components/ScreenWrapper.d.ts +2 -1
- package/dist/common/components/ScreenWrapper.js +4 -4
- package/dist/common/components/Select.js +2 -2
- package/dist/common/components/Text.js +3 -3
- package/dist/common/contexts/ConsultationContext.d.ts +2 -1
- package/dist/common/contexts/ConsultationContext.js +21 -9
- package/dist/common/contexts/ThemeContext.d.ts +1 -1
- package/dist/common/contexts/ThemeContext.js +1 -1
- package/dist/{video-consultations → common}/helpers/eventHandler.d.ts +2 -1
- package/dist/{video-consultations → common}/helpers/eventHandler.js +22 -21
- package/dist/common/hooks/useConsultation.js +1 -1
- package/dist/common/hooks/useCustomComponents.js +1 -1
- package/dist/common/hooks/useForm.js +1 -1
- package/dist/common/hooks/useHeader.js +1 -1
- package/dist/common/hooks/useTheme.js +1 -1
- package/dist/common/hooks/useTranslation.d.ts +9 -0
- package/dist/common/hooks/useTranslation.js +47 -0
- package/dist/common/hooks/useUser.js +1 -1
- package/dist/common/icons/AbiLogoIcon.js +1 -1
- package/dist/common/icons/BackArrowIcon.js +1 -1
- package/dist/common/icons/CloseIcon.js +1 -1
- package/dist/common/icons/DoctorIcon.js +1 -1
- package/dist/common/icons/DoctorImagePlaceholderIcon.js +1 -1
- package/dist/common/icons/ExitIcon.js +1 -1
- package/dist/common/icons/InfoIcon.js +1 -1
- package/dist/common/icons/MotorbikeIcon.js +1 -1
- package/dist/common/icons/NoCaseFoundIcon.js +1 -1
- package/dist/common/icons/PdfDownloadIcon.js +1 -1
- package/dist/common/icons/PdfIcon.js +1 -1
- package/dist/common/icons/PersonIcon.js +1 -1
- package/dist/common/icons/PillsIcon.js +1 -1
- package/dist/common/icons/PlaneIcon.js +1 -1
- package/dist/common/icons/RatingIcon.js +1 -1
- package/dist/common/icons/StarIcon.js +1 -1
- package/dist/common/icons/TextConsultationIcon.js +1 -1
- package/dist/common/icons/TrashIcon.js +1 -1
- package/dist/common/locale/i18n.d.ts +0 -1
- package/dist/common/locale/i18n.js +52 -22
- package/dist/common/locale/translations/bg.prescriptionSurveys.json +27 -0
- package/dist/common/locale/translations/de.base.json +328 -0
- package/dist/common/locale/translations/de.prescriptionSurveys.json +183 -0
- package/dist/common/locale/translations/en.base.json +2 -0
- package/dist/common/locale/translations/en.prescriptionSurveys.json +535 -0
- package/dist/common/locale/translations/es-MX.prescriptionSurveys.json +535 -0
- package/dist/common/locale/translations/fr.base.json +16 -0
- package/dist/common/locale/translations/hr.prescriptionSurveys.json +1 -0
- package/dist/common/locale/translations/hu.prescriptionSurveys.json +27 -0
- package/dist/common/locale/translations/it.base.json +328 -0
- package/dist/common/locale/translations/it.prescriptionSurveys.json +376 -0
- package/dist/common/locale/translations/sl.prescriptionSurveys.json +375 -0
- package/dist/common/locale/translations/zh-CN.prescriptionSurveys.json +382 -0
- package/dist/common/locale/translations/zh-HK.prescriptionSurveys.json +535 -0
- package/dist/common/locale/translations/zh-SG.prescriptionSurveys.json +382 -0
- package/dist/common/locale/translations/zh-TW.prescriptionSurveys.json +535 -0
- package/dist/common/screens/AnswerScreen.d.ts +1 -1
- package/dist/common/screens/AnswerScreen.js +5 -5
- package/dist/common/screens/MatchScreen.d.ts +1 -1
- package/dist/common/screens/MatchScreen.js +5 -5
- package/dist/common/screens/MatchingScreen.js +5 -5
- package/dist/common/screens/NoConsultationFoundScreen.js +4 -4
- package/dist/common/screens/NotValidActiveType.d.ts +2 -0
- package/dist/common/screens/NotValidActiveType.js +13 -0
- package/dist/common/screens/PreparingSummaryScreen.d.ts +1 -1
- package/dist/common/screens/PreparingSummaryScreen.js +6 -6
- package/dist/common/screens/RatingScreen.js +5 -5
- package/dist/common/screens/index.d.ts +1 -1
- package/dist/common/screens/index.js +1 -1
- package/dist/common/types/deliveryAddress.js +7 -7
- package/dist/common/types/theme.d.ts +1 -1
- package/dist/common/utils/valid-active-type.d.ts +2 -0
- package/dist/common/utils/valid-active-type.js +10 -0
- package/dist/form-prescriptions/api/models/prescription.d.ts +29 -0
- package/dist/form-prescriptions/api/models/prescription.js +2 -0
- package/dist/form-prescriptions/api/prescription.d.ts +2 -0
- package/dist/form-prescriptions/api/prescription.js +10 -0
- package/dist/form-prescriptions/components/FormPrescription.d.ts +8 -0
- package/dist/form-prescriptions/components/FormPrescription.js +70 -0
- package/dist/form-prescriptions/components/IndicationSurveyButton.d.ts +3 -0
- package/dist/form-prescriptions/components/IndicationSurveyButton.js +36 -0
- package/dist/form-prescriptions/components/Questionnaire/QuestionnaireHeader.d.ts +2 -0
- package/dist/form-prescriptions/components/Questionnaire/QuestionnaireHeader.js +64 -0
- package/dist/form-prescriptions/components/Questionnaire/QuestionnaireQuestion/OpenEnded.d.ts +2 -0
- package/dist/form-prescriptions/components/Questionnaire/QuestionnaireQuestion/OpenEnded.js +73 -0
- package/dist/form-prescriptions/components/Questionnaire/QuestionnaireQuestion/SingleChoice.d.ts +2 -0
- package/dist/form-prescriptions/components/Questionnaire/QuestionnaireQuestion/SingleChoice.js +72 -0
- package/dist/form-prescriptions/components/Questionnaire/QuestionnaireQuestion/index.d.ts +2 -0
- package/dist/form-prescriptions/components/Questionnaire/QuestionnaireQuestion/index.js +34 -0
- package/dist/form-prescriptions/contexts/IndicationSurveyContext.d.ts +19 -0
- package/dist/form-prescriptions/contexts/IndicationSurveyContext.js +55 -0
- package/dist/form-prescriptions/hooks/useIndicationSurvey.d.ts +11 -0
- package/dist/form-prescriptions/hooks/useIndicationSurvey.js +41 -0
- package/dist/form-prescriptions/hooks/useIndicationSurveyAnswers.d.ts +7 -0
- package/dist/form-prescriptions/hooks/useIndicationSurveyAnswers.js +41 -0
- package/dist/form-prescriptions/hooks/useScreens.d.ts +6 -0
- package/dist/form-prescriptions/hooks/useScreens.js +32 -0
- package/dist/form-prescriptions/icons/AlertIcon.d.ts +3 -0
- package/dist/form-prescriptions/icons/AlertIcon.js +53 -0
- package/dist/form-prescriptions/icons/FormPrescriptionIcon.d.ts +3 -0
- package/dist/form-prescriptions/icons/FormPrescriptionIcon.js +47 -0
- package/dist/form-prescriptions/icons/RxIcon.d.ts +3 -0
- package/dist/form-prescriptions/icons/RxIcon.js +47 -0
- package/dist/form-prescriptions/mocks/indication-survey.d.ts +20 -0
- package/dist/form-prescriptions/mocks/indication-survey.js +293 -0
- package/dist/form-prescriptions/screens/HomeScreen.d.ts +2 -0
- package/dist/form-prescriptions/screens/HomeScreen.js +64 -0
- package/dist/form-prescriptions/screens/QuestionnaireScreen.d.ts +2 -0
- package/dist/form-prescriptions/screens/QuestionnaireScreen.js +55 -0
- package/dist/form-prescriptions/types/indications.d.ts +25 -0
- package/dist/form-prescriptions/types/indications.js +8 -0
- package/dist/form-prescriptions/types/screens.d.ts +5 -0
- package/dist/form-prescriptions/types/screens.js +9 -0
- package/dist/index.d.ts +15 -12
- package/dist/index.js +28 -24
- package/dist/video-consultations/animations/CallingAnimation/index.js +4 -3
- package/dist/video-consultations/animations/CallingAnimation/xml.d.ts +2 -1
- package/dist/video-consultations/components/AgoraWrapper/components/BaseRenderUsers.js +10 -9
- package/dist/video-consultations/components/AgoraWrapper/components/BtnControls.js +15 -10
- package/dist/video-consultations/components/AgoraWrapper/components/ui/index.js +4 -4
- package/dist/video-consultations/components/AgoraWrapper/index.d.ts +1 -1
- package/dist/video-consultations/components/AgoraWrapper/index.js +3 -3
- package/dist/video-consultations/components/Modal/EndVideoCallModal.js +5 -4
- package/dist/video-consultations/components/VideoConsultation.d.ts +1 -1
- package/dist/video-consultations/components/VideoConsultation.js +18 -9
- package/dist/video-consultations/hooks/useInitRtcEngine.d.ts +1 -1
- package/dist/video-consultations/hooks/useInitRtcEngine.js +1 -1
- package/dist/video-consultations/icons/EndVideoCallIcon.js +2 -2
- package/dist/video-consultations/icons/HangUpIcon.d.ts +2 -1
- package/dist/video-consultations/icons/HangUpIcon.js +6 -5
- package/dist/video-consultations/icons/MicroOffIcon.d.ts +2 -5
- package/dist/video-consultations/icons/MicroOffIcon.js +4 -4
- package/dist/video-consultations/icons/MicroOnIcon.d.ts +2 -1
- package/dist/video-consultations/icons/MicroOnIcon.js +7 -6
- package/dist/video-consultations/icons/PersonIcon.js +2 -2
- package/dist/video-consultations/icons/SwitchCameraIcon.js +2 -2
- package/dist/{common → video-consultations}/icons/VideoConsultationIcon.js +1 -1
- package/dist/video-consultations/icons/VideoOffIcon.d.ts +2 -3
- package/dist/video-consultations/icons/VideoOffIcon.js +5 -5
- package/dist/video-consultations/icons/VideoOnIcon.d.ts +2 -1
- package/dist/video-consultations/icons/VideoOnIcon.js +6 -5
- package/dist/video-consultations/screens/DeliveryAddressScreen.js +24 -15
- package/dist/video-consultations/screens/EndingVideoScreen.d.ts +1 -1
- package/dist/video-consultations/screens/EndingVideoScreen.js +11 -6
- package/dist/video-consultations/screens/JoinVideoCallScreen.d.ts +1 -1
- package/dist/video-consultations/screens/JoinVideoCallScreen.js +21 -27
- package/dist/video-consultations/screens/ProcessingPrescriptionScreen.js +16 -10
- package/dist/video-consultations/screens/VideoCallScreen.js +16 -9
- package/package.json +4 -2
- package/dist/common/index.d.ts +0 -58
- package/dist/common/index.js +0 -116
- package/dist/video-consultations/index.d.ts +0 -10
- package/dist/video-consultations/index.js +0 -24
- /package/dist/{common → video-consultations}/icons/VideoConsultationIcon.d.ts +0 -0
|
@@ -37,29 +37,30 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.BaseRenderUsers = void 0;
|
|
40
|
-
var
|
|
41
|
-
var
|
|
42
|
-
var react_native_1 = require("react-native");
|
|
43
|
-
var react_native_agora_1 = require("react-native-agora");
|
|
40
|
+
var useTheme_1 = require("../../../../common/hooks/useTheme");
|
|
41
|
+
var DoctorIcon_1 = __importDefault(require("../../../../common/icons/DoctorIcon"));
|
|
44
42
|
var MicroOffIcon_1 = __importDefault(require("../../../icons/MicroOffIcon"));
|
|
45
43
|
var PersonIcon_1 = __importDefault(require("../../../icons/PersonIcon"));
|
|
46
44
|
var VideoOffIcon_1 = __importDefault(require("../../../icons/VideoOffIcon"));
|
|
45
|
+
var react_1 = __importStar(require("react"));
|
|
46
|
+
var react_native_1 = require("react-native");
|
|
47
|
+
var react_native_agora_1 = require("react-native-agora");
|
|
47
48
|
var ui_1 = require("./ui");
|
|
48
49
|
var MutedIndicatorsContainer = function (_a) {
|
|
49
50
|
var muted = _a.muted, isLocalUser = _a.isLocalUser;
|
|
50
|
-
var theme = (0,
|
|
51
|
+
var theme = (0, useTheme_1.useTheme)();
|
|
51
52
|
var styles = getStyles(theme);
|
|
52
53
|
return (<react_native_1.View style={styles.mutedIndicatorsContainer}>
|
|
53
54
|
{muted.audio && (<react_native_1.View style={isLocalUser ? styles.mutedIconSmall : styles.mutedIconLarge}>
|
|
54
|
-
<MicroOffIcon_1.default
|
|
55
|
+
<MicroOffIcon_1.default width={isLocalUser ? 10 : 25} height={isLocalUser ? 10 : 25} color={isLocalUser ? theme.palette.black : theme.palette.white}/>
|
|
55
56
|
</react_native_1.View>)}
|
|
56
57
|
{muted.video && !isLocalUser && (<react_native_1.View style={styles.mutedIconLarge}>
|
|
57
|
-
<VideoOffIcon_1.default
|
|
58
|
+
<VideoOffIcon_1.default width={25} height={25}/>
|
|
58
59
|
</react_native_1.View>)}
|
|
59
60
|
</react_native_1.View>);
|
|
60
61
|
};
|
|
61
62
|
var BaseRenderUsers = function (props) {
|
|
62
|
-
var theme = (0,
|
|
63
|
+
var theme = (0, useTheme_1.useTheme)();
|
|
63
64
|
var styles = getStyles(theme);
|
|
64
65
|
var startPreview = props.startPreview, joinChannelSuccess = props.joinChannelSuccess, remoteUsers = props.remoteUsers, _a = props.localVideoMuted, localVideoMuted = _a === void 0 ? false : _a, _b = props.remoteVideoMuted, remoteVideoMuted = _b === void 0 ? false : _b, _c = props.remoteAudioMuted, remoteAudioMuted = _c === void 0 ? false : _c;
|
|
65
66
|
var showLargeVideo = function (user) { return (user.uid === 0 && !remoteUsers.length) || (remoteUsers.length && user.uid !== 0); };
|
|
@@ -84,7 +85,7 @@ var BaseRenderUsers = function (props) {
|
|
|
84
85
|
})}
|
|
85
86
|
</>) : (<react_native_1.View style={[styles.mutedWrapper, isLocalUser ? { backgroundColor: theme.palette.white } : {}]}>
|
|
86
87
|
<MutedIndicatorsContainer muted={muted} isLocalUser={isLocalUser}/>
|
|
87
|
-
<react_native_1.View style={styles.userIconContainer}>{isLocalUser ? <PersonIcon_1.default /> : <
|
|
88
|
+
<react_native_1.View style={styles.userIconContainer}>{isLocalUser ? <PersonIcon_1.default /> : <DoctorIcon_1.default />}</react_native_1.View>
|
|
88
89
|
</react_native_1.View>);
|
|
89
90
|
};
|
|
90
91
|
if (!startPreview && !joinChannelSuccess) {
|
|
@@ -4,26 +4,30 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.BtnControls = void 0;
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var react_native_1 = require("react-native");
|
|
7
|
+
var useCustomComponents_1 = require("../../../../common/hooks/useCustomComponents");
|
|
8
|
+
var useTheme_1 = require("../../../../common/hooks/useTheme");
|
|
10
9
|
var HangUpIcon_1 = __importDefault(require("../../../icons/HangUpIcon"));
|
|
11
10
|
var MicroOffIcon_1 = __importDefault(require("../../../icons/MicroOffIcon"));
|
|
12
11
|
var MicroOnIcon_1 = __importDefault(require("../../../icons/MicroOnIcon"));
|
|
13
12
|
var SwitchCameraIcon_1 = __importDefault(require("../../../icons/SwitchCameraIcon"));
|
|
14
13
|
var VideoOffIcon_1 = __importDefault(require("../../../icons/VideoOffIcon"));
|
|
15
14
|
var VideoOnIcon_1 = __importDefault(require("../../../icons/VideoOnIcon"));
|
|
15
|
+
var react_1 = __importDefault(require("react"));
|
|
16
|
+
var react_native_1 = require("react-native");
|
|
16
17
|
var ui_1 = require("./ui");
|
|
17
18
|
var BtnControls = function (_a) {
|
|
19
|
+
var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
18
20
|
var controlActions = _a.controlActions, remoteUsers = _a.remoteUsers, muteLocalAudioStream = _a.muteLocalAudioStream, muteLocalVideoStream = _a.muteLocalVideoStream;
|
|
19
|
-
var theme = (0,
|
|
21
|
+
var theme = (0, useTheme_1.useTheme)();
|
|
20
22
|
var styles = getStyles(theme);
|
|
21
|
-
|
|
23
|
+
var screens = (0, useCustomComponents_1.useCustomComponents)().screens;
|
|
24
|
+
var videoCallScreen = screens === null || screens === void 0 ? void 0 : screens.VideoCallScreen;
|
|
25
|
+
return (<react_native_1.View style={[styles.btnContainer, theme.shadows.soft, videoCallScreen === null || videoCallScreen === void 0 ? void 0 : videoCallScreen.buttonsContainerStyle]}>
|
|
22
26
|
<react_native_1.View style={styles.btnContent}>
|
|
23
|
-
<ui_1.VideoCallButton icon={muteLocalAudioStream ? <MicroOffIcon_1.default /> : <MicroOnIcon_1.default />} name={'audiomute'} onPress={controlActions.localAudioStream} isMuted={muteLocalAudioStream}/>
|
|
24
|
-
<ui_1.VideoCallButton icon={muteLocalVideoStream ? <VideoOffIcon_1.default /> : <VideoOnIcon_1.default />} name={'videomute'} onPress={controlActions.localVideoStream} isMuted={muteLocalVideoStream}/>
|
|
25
|
-
<ui_1.VideoCallButton disabled={!remoteUsers.length} icon={<SwitchCameraIcon_1.default />} name={'switchCamera'} onPress={controlActions.switchCamera}/>
|
|
26
|
-
<ui_1.VideoCallButton customStyle={[styles.endCall]} icon={<HangUpIcon_1.default />} name={'endCall'} onPress={controlActions.endCall}/>
|
|
27
|
+
<ui_1.VideoCallButton icon={muteLocalAudioStream ? (<MicroOffIcon_1.default {...(_b = videoCallScreen === null || videoCallScreen === void 0 ? void 0 : videoCallScreen.controlButtons) === null || _b === void 0 ? void 0 : _b.iconStyle}/>) : (<MicroOnIcon_1.default {...(_c = videoCallScreen === null || videoCallScreen === void 0 ? void 0 : videoCallScreen.controlButtons) === null || _c === void 0 ? void 0 : _c.iconStyle}/>)} name={'audiomute'} onPress={controlActions.localAudioStream} isMuted={muteLocalAudioStream} customStyle={(_d = videoCallScreen === null || videoCallScreen === void 0 ? void 0 : videoCallScreen.controlButtons) === null || _d === void 0 ? void 0 : _d.containerStyle}/>
|
|
28
|
+
<ui_1.VideoCallButton icon={muteLocalVideoStream ? (<VideoOffIcon_1.default {...(_e = videoCallScreen === null || videoCallScreen === void 0 ? void 0 : videoCallScreen.controlButtons) === null || _e === void 0 ? void 0 : _e.iconStyle}/>) : (<VideoOnIcon_1.default {...(_f = videoCallScreen === null || videoCallScreen === void 0 ? void 0 : videoCallScreen.controlButtons) === null || _f === void 0 ? void 0 : _f.iconStyle}/>)} name={'videomute'} onPress={controlActions.localVideoStream} isMuted={muteLocalVideoStream} customStyle={(_g = videoCallScreen === null || videoCallScreen === void 0 ? void 0 : videoCallScreen.controlButtons) === null || _g === void 0 ? void 0 : _g.containerStyle}/>
|
|
29
|
+
<ui_1.VideoCallButton disabled={!remoteUsers.length} icon={<SwitchCameraIcon_1.default />} name={'switchCamera'} onPress={controlActions.switchCamera} customStyle={(_h = videoCallScreen === null || videoCallScreen === void 0 ? void 0 : videoCallScreen.controlButtons) === null || _h === void 0 ? void 0 : _h.containerStyle}/>
|
|
30
|
+
{((_j = videoCallScreen === null || videoCallScreen === void 0 ? void 0 : videoCallScreen.EndCallButton) === null || _j === void 0 ? void 0 : _j.customComponent) ? (<videoCallScreen.EndCallButton.customComponent onPress={controlActions.endCall}/>) : (<ui_1.VideoCallButton customStyle={[styles.endCall, (_k = videoCallScreen === null || videoCallScreen === void 0 ? void 0 : videoCallScreen.EndCallButton) === null || _k === void 0 ? void 0 : _k.containerStyle]} icon={<HangUpIcon_1.default {...(_l = videoCallScreen === null || videoCallScreen === void 0 ? void 0 : videoCallScreen.EndCallButton) === null || _l === void 0 ? void 0 : _l.iconStyle}/>} name={'endCall'} onPress={controlActions.endCall}/>)}
|
|
27
31
|
</react_native_1.View>
|
|
28
32
|
</react_native_1.View>);
|
|
29
33
|
};
|
|
@@ -33,7 +37,8 @@ var getStyles = function (_a) {
|
|
|
33
37
|
var palette = _a.palette, spacing = _a.spacing, borderRadius = _a.borderRadius;
|
|
34
38
|
return react_native_1.StyleSheet.create({
|
|
35
39
|
endCall: {
|
|
36
|
-
borderRadius: borderRadius.full
|
|
40
|
+
borderRadius: borderRadius.full,
|
|
41
|
+
backgroundColor: palette.error
|
|
37
42
|
},
|
|
38
43
|
btnContainer: {
|
|
39
44
|
backgroundColor: palette.white,
|
|
@@ -16,13 +16,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.AgoraCard = exports.VideoCallButton = exports.RtcSurfaceView = void 0;
|
|
18
18
|
exports.AgoraList = AgoraList;
|
|
19
|
-
var
|
|
19
|
+
var useTheme_1 = require("../../../../../common/hooks/useTheme");
|
|
20
20
|
var react_1 = __importDefault(require("react"));
|
|
21
21
|
var react_native_1 = require("react-native");
|
|
22
22
|
var react_native_agora_1 = require("react-native-agora");
|
|
23
23
|
Object.defineProperty(exports, "RtcSurfaceView", { enumerable: true, get: function () { return react_native_agora_1.RtcSurfaceView; } });
|
|
24
24
|
var VideoCallButton = function (props) {
|
|
25
|
-
var theme = (0,
|
|
25
|
+
var theme = (0, useTheme_1.useTheme)();
|
|
26
26
|
var styles = getStyles(theme);
|
|
27
27
|
var _a = props.disabled, disabled = _a === void 0 ? false : _a, icon = props.icon, _b = props.isMuted, isMuted = _b === void 0 ? false : _b, _c = props.customStyle, customStyle = _c === void 0 ? {} : _c;
|
|
28
28
|
return (<react_native_1.TouchableOpacity style={styles.buttonPress} disabled={disabled} onPress={props.onPress}>
|
|
@@ -31,7 +31,7 @@ var VideoCallButton = function (props) {
|
|
|
31
31
|
};
|
|
32
32
|
exports.VideoCallButton = VideoCallButton;
|
|
33
33
|
function AgoraList(props) {
|
|
34
|
-
var theme = (0,
|
|
34
|
+
var theme = (0, useTheme_1.useTheme)();
|
|
35
35
|
var styles = getStyles(theme);
|
|
36
36
|
var renderItem = props.renderItem, others = __rest(props, ["renderItem"]);
|
|
37
37
|
return (<react_native_1.FlatList numColumns={1} {...others} renderItem={function (_a) {
|
|
@@ -41,7 +41,7 @@ function AgoraList(props) {
|
|
|
41
41
|
}
|
|
42
42
|
var AgoraCard = function (_a) {
|
|
43
43
|
var children = _a.children;
|
|
44
|
-
var theme = (0,
|
|
44
|
+
var theme = (0, useTheme_1.useTheme)();
|
|
45
45
|
var styles = getStyles(theme);
|
|
46
46
|
return (<react_native_1.View style={[styles.listItem]}>
|
|
47
47
|
<react_native_1.View style={styles.cardContent}>{children}</react_native_1.View>
|
|
@@ -37,11 +37,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.AgoraWrapper = void 0;
|
|
40
|
-
var
|
|
40
|
+
var platform_1 = require("../../../common/utils/platform");
|
|
41
|
+
var useInitRtcEngine_1 = __importDefault(require("../../hooks/useInitRtcEngine"));
|
|
41
42
|
var react_1 = __importStar(require("react"));
|
|
42
43
|
var react_native_1 = require("react-native");
|
|
43
44
|
var react_native_agora_1 = require("react-native-agora");
|
|
44
|
-
var useInitRtcEngine_1 = __importDefault(require("../../hooks/useInitRtcEngine"));
|
|
45
45
|
var BaseRenderUsers_1 = __importDefault(require("./components/BaseRenderUsers"));
|
|
46
46
|
var BtnControls_1 = __importDefault(require("./components/BtnControls"));
|
|
47
47
|
var AgoraWrapper = function (_a) {
|
|
@@ -138,7 +138,7 @@ var AgoraWrapper = function (_a) {
|
|
|
138
138
|
engine.current.leaveChannel();
|
|
139
139
|
};
|
|
140
140
|
}, []);
|
|
141
|
-
return (<react_native_1.KeyboardAvoidingView style={[styles.fullSize, { width: '100%', minHeight: 450, flex: 1 }]} behavior={
|
|
141
|
+
return (<react_native_1.KeyboardAvoidingView style={[styles.fullSize, { width: '100%', minHeight: 450, flex: 1 }]} behavior={platform_1.isIOS ? 'padding' : 'height'}>
|
|
142
142
|
<react_native_1.View style={styles.fullSize} pointerEvents={'box-none'}>
|
|
143
143
|
<BaseRenderUsers_1.default startPreview={startPreview} joinChannelSuccess={joinChannelSuccess} remoteUsers={remoteUsers} localVideoMuted={muteLocalVideoStream} remoteVideoMuted={remoteVideoMuted} remoteAudioMuted={remoteAudioMuted}/>
|
|
144
144
|
</react_native_1.View>
|
|
@@ -4,12 +4,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.EndVideoCallModal = void 0;
|
|
7
|
-
var
|
|
8
|
-
var
|
|
7
|
+
var TwoOptionsModal_1 = require("../../../common/components/Modal/TwoOptionsModal");
|
|
8
|
+
var useTranslation_1 = require("../../../common/hooks/useTranslation");
|
|
9
9
|
var EndVideoCallIcon_1 = require("../../icons/EndVideoCallIcon");
|
|
10
|
+
var react_1 = __importDefault(require("react"));
|
|
10
11
|
var EndVideoCallModal = function (_a) {
|
|
11
12
|
var onConfirm = _a.onConfirm, onCancel = _a.onCancel, visible = _a.visible;
|
|
12
|
-
var t = (0,
|
|
13
|
-
return (<
|
|
13
|
+
var t = (0, useTranslation_1.useTranslation)().t;
|
|
14
|
+
return (<TwoOptionsModal_1.TwoOptionsModal visible={visible} onConfirm={onConfirm} onCancel={onCancel} icon={<EndVideoCallIcon_1.EndVideoCallIcon />} text={t('general.consultation.modal.finish_video_call')} confirmText={t('button.yes')} cancelText={t('button.no')}/>);
|
|
14
15
|
};
|
|
15
16
|
exports.EndVideoCallModal = EndVideoCallModal;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { EventHandlers } from '../../common/helpers/eventHandler';
|
|
1
2
|
import { HeaderT } from '../../common/types/consultation';
|
|
2
|
-
import { EventHandlers } from '../helpers/eventHandler';
|
|
3
3
|
export interface VideoConsultationProps {
|
|
4
4
|
userId: string;
|
|
5
5
|
eventHandlers?: EventHandlers;
|
|
@@ -1,39 +1,48 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.VideoConsultation = void 0;
|
|
4
|
+
var eventHandler_1 = require("../../common/helpers/eventHandler");
|
|
5
|
+
var useConsultation_1 = require("../../common/hooks/useConsultation");
|
|
4
6
|
var useHeader_1 = require("../../common/hooks/useHeader");
|
|
5
|
-
var
|
|
7
|
+
var useUser_1 = require("../../common/hooks/useUser");
|
|
6
8
|
var screens_1 = require("../../common/screens");
|
|
7
|
-
var
|
|
9
|
+
var NoConsultationFoundScreen_1 = require("../../common/screens/NoConsultationFoundScreen");
|
|
10
|
+
var NotValidActiveType_1 = require("../../common/screens/NotValidActiveType");
|
|
11
|
+
var PreparingSummaryScreen_1 = require("../../common/screens/PreparingSummaryScreen");
|
|
12
|
+
var consultation_1 = require("../../common/types/consultation");
|
|
13
|
+
var valid_active_type_1 = require("../../common/utils/valid-active-type");
|
|
8
14
|
var DeliveryAddressScreen_1 = require("../screens/DeliveryAddressScreen");
|
|
9
15
|
var JoinVideoCallScreen_1 = require("../screens/JoinVideoCallScreen");
|
|
10
16
|
var react_1 = require("react");
|
|
11
17
|
var react_native_1 = require("react-native");
|
|
12
|
-
var useUser_1 = require("../../common/hooks/useUser");
|
|
13
18
|
var VideoConsultation = function (_a) {
|
|
14
19
|
var eventHandlers = _a.eventHandlers, userId = _a.userId, header = _a.header;
|
|
15
|
-
var consultation = (0,
|
|
20
|
+
var consultation = (0, useConsultation_1.useConsultation)().consultation;
|
|
16
21
|
var setHeader = (0, useHeader_1.useHeader)().setHeader;
|
|
17
22
|
var setUserId = (0, useUser_1.useUser)().setUserId;
|
|
18
23
|
(0, react_1.useEffect)(function () {
|
|
19
24
|
(0, eventHandler_1.handleEvent)(consultation, eventHandlers);
|
|
20
25
|
}, [consultation, eventHandlers]);
|
|
21
26
|
(0, react_1.useEffect)(function () {
|
|
22
|
-
console.log('userId', userId);
|
|
23
27
|
setUserId(userId);
|
|
24
28
|
}, [userId]);
|
|
25
29
|
(0, react_1.useEffect)(function () { return setHeader(header); }, [header]);
|
|
26
30
|
var getConsultationScreen = (0, react_1.useCallback)(function (consultation) {
|
|
31
|
+
var validActiveType = (0, valid_active_type_1.checkValidActiveType)(consultation, consultation_1.CASE_TYPE.VIDEO);
|
|
32
|
+
if (!validActiveType)
|
|
33
|
+
return <NotValidActiveType_1.NotValidActiveType />;
|
|
27
34
|
var commonScreen = (0, screens_1.getCommonScreen)(consultation);
|
|
28
35
|
if (commonScreen)
|
|
29
36
|
return commonScreen;
|
|
37
|
+
if (!consultation)
|
|
38
|
+
return <NoConsultationFoundScreen_1.NoConsultationFoundScreen />;
|
|
30
39
|
var status = consultation.status, professional = consultation.professional;
|
|
31
40
|
switch (status) {
|
|
32
|
-
case
|
|
41
|
+
case consultation_1.CONSULTATION_STATUS.ONGOING_VIDEO_CALL:
|
|
33
42
|
return <JoinVideoCallScreen_1.JoinVideoCallScreen professional={professional}/>;
|
|
34
|
-
case
|
|
35
|
-
return <
|
|
36
|
-
case
|
|
43
|
+
case consultation_1.CONSULTATION_STATUS.VIDEO_CALL_ENDED:
|
|
44
|
+
return <PreparingSummaryScreen_1.PreparingSummaryScreen professional={professional}/>;
|
|
45
|
+
case consultation_1.CONSULTATION_STATUS.WAITING_FOR_INFO:
|
|
37
46
|
return <DeliveryAddressScreen_1.DeliveryAddressScreen />;
|
|
38
47
|
default:
|
|
39
48
|
react_native_1.Alert.alert('Screen not found', status);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IRtcEngineEx } from 'react-native-agora';
|
|
2
1
|
import { VideoToken } from '../api/models/video';
|
|
2
|
+
import { IRtcEngineEx } from 'react-native-agora';
|
|
3
3
|
declare const useInitRtcEngine: (rtcProps: VideoToken, enableVideo: boolean, listenUserJoinOrLeave?: boolean) => {
|
|
4
4
|
appId: string;
|
|
5
5
|
channelId: string;
|
|
@@ -78,9 +78,9 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
78
78
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
79
79
|
};
|
|
80
80
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
81
|
+
var permission_1 = require("../utils/permission");
|
|
81
82
|
var react_1 = require("react");
|
|
82
83
|
var react_native_agora_1 = __importStar(require("react-native-agora"));
|
|
83
|
-
var permission_1 = require("../utils/permission");
|
|
84
84
|
var useInitRtcEngine = function (rtcProps, enableVideo, listenUserJoinOrLeave) {
|
|
85
85
|
if (listenUserJoinOrLeave === void 0) { listenUserJoinOrLeave = true; }
|
|
86
86
|
var appId = rtcProps.appId, channelId = rtcProps.channel, token = rtcProps.token, uid = rtcProps.uid;
|
|
@@ -37,11 +37,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.EndVideoCallIcon = void 0;
|
|
40
|
-
var
|
|
40
|
+
var useTheme_1 = require("../../common/hooks/useTheme");
|
|
41
41
|
var react_1 = __importDefault(require("react"));
|
|
42
42
|
var react_native_svg_1 = __importStar(require("react-native-svg"));
|
|
43
43
|
var EndVideoCallIcon = function () {
|
|
44
|
-
var palette = (0,
|
|
44
|
+
var palette = (0, useTheme_1.useTheme)().palette;
|
|
45
45
|
return (<react_native_svg_1.default width={61} height={60} viewBox="0 0 61 60" fill="none">
|
|
46
46
|
<react_native_svg_1.Path d="M47.243 43.517l-7.327-.836a5.742 5.742 0 00-4.73 1.644l-5.309 5.308c-8.164-4.154-14.856-10.818-19.01-19.01l5.336-5.338a5.743 5.743 0 001.645-4.73l-.837-7.27a5.773 5.773 0 00-5.74-5.106H6.28C3.02 8.179.309 10.89.51 14.15c1.53 24.636 21.232 44.31 45.84 45.84 3.259.201 5.97-2.51 5.97-5.77v-4.991c.03-2.914-2.163-5.366-5.077-5.712z" fill={palette.primary.base}/>
|
|
47
47
|
<react_native_svg_1.Path d="M60.5 16.5C60.5 25.613 53.113 33 44 33s-16.5-7.387-16.5-16.5S34.887 0 44 0s16.5 7.387 16.5 16.5z" fill={palette.highlight}/>
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Components } from '../../common/types/components';
|
|
1
2
|
import * as React from 'react';
|
|
2
|
-
declare const HangUpIcon: () => React.JSX.Element;
|
|
3
|
+
declare const HangUpIcon: ({ color, width, height }: Components["screens"]["VideoCallScreen"]["EndCallButton"]["iconStyle"]) => React.JSX.Element;
|
|
3
4
|
export default HangUpIcon;
|
|
@@ -33,13 +33,14 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
var useTheme_1 = require("../../common/hooks/useTheme");
|
|
36
37
|
var React = __importStar(require("react"));
|
|
37
38
|
var react_native_svg_1 = __importStar(require("react-native-svg"));
|
|
38
|
-
var
|
|
39
|
-
var
|
|
40
|
-
var palette = (0,
|
|
41
|
-
return (<react_native_svg_1.default width={
|
|
42
|
-
<react_native_svg_1.Path fill={palette.surface} d="m8.011 14.775 3.37-2.671a3.34 3.34 0 0 0 1.273-2.624V5.11a25.4 25.4 0 0 1 15.692 0v4.393a3.34 3.34 0 0 0 1.274 2.624l3.345 2.648a3.377 3.377 0 0 0 4.476-.262l2.06-2.053c1.346-1.342 1.346-3.574-.083-4.832-10.798-9.51-27.05-9.498-37.836 0C.153 8.886.153 11.118 1.5 12.46l2.06 2.053c1.19 1.211 3.107 1.318 4.452.262Z"/>
|
|
39
|
+
var HangUpIcon = function (_a) {
|
|
40
|
+
var color = _a.color, _b = _a.width, width = _b === void 0 ? 41 : _b, _c = _a.height, height = _c === void 0 ? 16 : _c;
|
|
41
|
+
var palette = (0, useTheme_1.useTheme)().palette;
|
|
42
|
+
return (<react_native_svg_1.default width={width} height={height} fill="none">
|
|
43
|
+
<react_native_svg_1.Path fill={color || palette.surface} d="m8.011 14.775 3.37-2.671a3.34 3.34 0 0 0 1.273-2.624V5.11a25.4 25.4 0 0 1 15.692 0v4.393a3.34 3.34 0 0 0 1.274 2.624l3.345 2.648a3.377 3.377 0 0 0 4.476-.262l2.06-2.053c1.346-1.342 1.346-3.574-.083-4.832-10.798-9.51-27.05-9.498-37.836 0C.153 8.886.153 11.118 1.5 12.46l2.06 2.053c1.19 1.211 3.107 1.318 4.452.262Z"/>
|
|
43
44
|
</react_native_svg_1.default>);
|
|
44
45
|
};
|
|
45
46
|
exports.default = HangUpIcon;
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
+
import { Components } from '../../common/types/components';
|
|
1
2
|
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
declare const MicroOffIcon: ({ size, color }: {
|
|
4
|
-
size?: number;
|
|
5
|
-
color?: ColorValue;
|
|
6
|
-
}) => React.JSX.Element;
|
|
3
|
+
declare const MicroOffIcon: ({ color, width, height }: Components["screens"]["VideoCallScreen"]["controlButtons"]["iconStyle"]) => React.JSX.Element;
|
|
7
4
|
export default MicroOffIcon;
|
|
@@ -33,14 +33,14 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
var
|
|
36
|
+
var useTheme_1 = require("../../common/hooks/useTheme");
|
|
37
37
|
var React = __importStar(require("react"));
|
|
38
38
|
var react_native_svg_1 = __importStar(require("react-native-svg"));
|
|
39
39
|
var MicroOffIcon = function (_a) {
|
|
40
|
-
var _b = _a.
|
|
41
|
-
var palette = (0,
|
|
40
|
+
var color = _a.color, _b = _a.width, width = _b === void 0 ? 39 : _b, _c = _a.height, height = _c === void 0 ? 39 : _c;
|
|
41
|
+
var palette = (0, useTheme_1.useTheme)().palette;
|
|
42
42
|
var parsedColor = color || palette.surface;
|
|
43
|
-
return (<react_native_svg_1.default width={
|
|
43
|
+
return (<react_native_svg_1.default width={width} height={height} fill="none" viewBox="0 0 39 39">
|
|
44
44
|
<react_native_svg_1.Path fill={parsedColor} fillRule="evenodd" d="M25.555 14.387v5.5L12.76 7.451c.598-2.392 2.392-4.066 4.305-4.664 4.185-1.196 8.37 1.794 8.49 6.099v5.5Zm-8.251 14.23c-3.707-.597-7.055-4.065-7.294-8.131-.08-.722-.053-1.498-.027-2.255.014-.372.026-.739.026-1.093 0-.838-.597-1.435-1.315-1.435-.717 0-1.315.598-1.315 1.435v2.391c0 1.196.12 2.272.478 3.468.598 2.033 1.674 3.707 3.229 5.142a10.491 10.491 0 0 0 4.903 2.75l1.793.36v2.63H12.76c-.837 0-1.435.598-1.435 1.316 0 .717.598 1.315 1.435 1.315h12.915c.239 0 .598-.12.837-.24.239-.119.358-.358.478-.597.12-.24.12-.598 0-.837-.12-.24-.24-.479-.478-.718-.24-.12-.479-.239-.837-.239H20.533v-2.63c.239-.06.448-.09.657-.12.21-.03.419-.06.658-.12 2.247-.45 4.177-1.532 5.691-3.148l4.38 4.369a.912.912 0 0 0 1.32-.025.99.99 0 0 0-.024-1.365L7.08 4.77a.912.912 0 0 0-1.32.025.99.99 0 0 0 .024 1.366l6.827 6.81c-.091 2.184-.091 4.361-.091 6.438 0 1.674.598 3.348 1.793 4.664 1.794 2.032 4.903 2.75 7.415 1.554.862-.383 1.57-.843 2.126-1.442l1.823 1.82c-2.109 2.073-4.932 3.168-8.374 2.613Zm13.528-10.434a60.43 60.43 0 0 1-.015-1.166c0-.479-.24-.837-.718-1.076-.837-.479-1.913.12-1.913 1.195v2.512c0 .956-.12 1.913-.359 2.75l2.033 1.913c.359-.837.598-1.674.837-2.63.18-1.166.157-2.332.135-3.498Z" clipRule="evenodd"/>
|
|
45
45
|
</react_native_svg_1.default>);
|
|
46
46
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Components } from '../../common/types/components';
|
|
1
2
|
import * as React from 'react';
|
|
2
|
-
declare const MicroOnIcon: () => React.JSX.Element;
|
|
3
|
+
declare const MicroOnIcon: ({ color, width, height }: Components["screens"]["VideoCallScreen"]["controlButtons"]["iconStyle"]) => React.JSX.Element;
|
|
3
4
|
export default MicroOnIcon;
|
|
@@ -33,14 +33,15 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
var useTheme_1 = require("../../common/hooks/useTheme");
|
|
36
37
|
var React = __importStar(require("react"));
|
|
37
38
|
var react_native_svg_1 = __importStar(require("react-native-svg"));
|
|
38
|
-
var
|
|
39
|
-
var
|
|
40
|
-
var palette = (0,
|
|
41
|
-
return (<react_native_svg_1.default width={
|
|
42
|
-
<react_native_svg_1.Path fill={palette.surface} d="M18.627 12.491c0 1.71.022 3.422 0 5.13-.046 2.84-1.408 4.869-3.945 6.071-2.438 1.157-5.584.43-7.386-1.58a6.629 6.629 0 0 1-1.744-4.617c.012-3.4.026-6.799 0-10.198-.031-3.24 2.286-5.602 4.59-6.317 4.118-1.28 8.375 1.742 8.473 6.054.042 1.818.008 3.638.008 5.457h.004Z"/>
|
|
43
|
-
<react_native_svg_1.Path fill={palette.surface} d="M13.41 29.376v2.696h5.163a1.307 1.307 0 0 1 1.292.916 1.196 1.196 0 0 1-.498 1.429c-.245.158-.53.245-.821.252-4.302.016-8.604.019-12.907.01-.785 0-1.392-.584-1.388-1.308.004-.725.615-1.301 1.42-1.308h5.089v-2.668c-.603-.131-1.212-.234-1.811-.385a10.861 10.861 0 0 1-4.898-2.745c-1.515-1.439-2.634-3.148-3.236-5.169a12.46 12.46 0 0 1-.493-3.45v-2.45c0-.814.565-1.425 1.308-1.428.742-.004 1.307.598 1.314 1.412.014 1.122-.022 2.246.05 3.364.261 4.073 3.673 7.492 7.33 8.144 4.819.86 8.719-1.83 10.305-5.638.461-1.11.623-2.283.623-3.48 0-.83-.014-1.657 0-2.484.024-1.005 1.047-1.63 1.899-1.164.418.227.693.592.695 1.073.011 1.577.095 3.16-.162 4.728-.376 2.282-1.396 4.243-2.953 5.934-1.645 1.787-3.644 2.98-6.032 3.493-.422.088-.852.15-1.289.226Z"/>
|
|
39
|
+
var MicroOnIcon = function (_a) {
|
|
40
|
+
var color = _a.color, _b = _a.width, width = _b === void 0 ? 24 : _b, _c = _a.height, height = _c === void 0 ? 35 : _c;
|
|
41
|
+
var palette = (0, useTheme_1.useTheme)().palette;
|
|
42
|
+
return (<react_native_svg_1.default width={width} height={height} fill="none">
|
|
43
|
+
<react_native_svg_1.Path fill={color || palette.surface} d="M18.627 12.491c0 1.71.022 3.422 0 5.13-.046 2.84-1.408 4.869-3.945 6.071-2.438 1.157-5.584.43-7.386-1.58a6.629 6.629 0 0 1-1.744-4.617c.012-3.4.026-6.799 0-10.198-.031-3.24 2.286-5.602 4.59-6.317 4.118-1.28 8.375 1.742 8.473 6.054.042 1.818.008 3.638.008 5.457h.004Z"/>
|
|
44
|
+
<react_native_svg_1.Path fill={color || palette.surface} d="M13.41 29.376v2.696h5.163a1.307 1.307 0 0 1 1.292.916 1.196 1.196 0 0 1-.498 1.429c-.245.158-.53.245-.821.252-4.302.016-8.604.019-12.907.01-.785 0-1.392-.584-1.388-1.308.004-.725.615-1.301 1.42-1.308h5.089v-2.668c-.603-.131-1.212-.234-1.811-.385a10.861 10.861 0 0 1-4.898-2.745c-1.515-1.439-2.634-3.148-3.236-5.169a12.46 12.46 0 0 1-.493-3.45v-2.45c0-.814.565-1.425 1.308-1.428.742-.004 1.307.598 1.314 1.412.014 1.122-.022 2.246.05 3.364.261 4.073 3.673 7.492 7.33 8.144 4.819.86 8.719-1.83 10.305-5.638.461-1.11.623-2.283.623-3.48 0-.83-.014-1.657 0-2.484.024-1.005 1.047-1.63 1.899-1.164.418.227.693.592.695 1.073.011 1.577.095 3.16-.162 4.728-.376 2.282-1.396 4.243-2.953 5.934-1.645 1.787-3.644 2.98-6.032 3.493-.422.088-.852.15-1.289.226Z"/>
|
|
44
45
|
</react_native_svg_1.default>);
|
|
45
46
|
};
|
|
46
47
|
exports.default = MicroOnIcon;
|
|
@@ -33,11 +33,11 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
var
|
|
36
|
+
var useTheme_1 = require("../../common/hooks/useTheme");
|
|
37
37
|
var React = __importStar(require("react"));
|
|
38
38
|
var react_native_svg_1 = __importStar(require("react-native-svg"));
|
|
39
39
|
var PersonIcon = function () {
|
|
40
|
-
var palette = (0,
|
|
40
|
+
var palette = (0, useTheme_1.useTheme)().palette;
|
|
41
41
|
return (<react_native_svg_1.default width={39} height={39} fill="none">
|
|
42
42
|
<react_native_svg_1.Path fill={palette.primary.base} d="M19.5 19.5c-2.681 0-4.977-.955-6.886-2.864-1.91-1.91-2.864-4.205-2.864-6.886s.955-4.977 2.864-6.886C14.524.954 16.82 0 19.5 0s4.977.955 6.886 2.864c1.91 1.91 2.864 4.205 2.864 6.886s-.955 4.977-2.864 6.886c-1.91 1.91-4.205 2.864-6.886 2.864ZM0 34.125v-1.95a7.14 7.14 0 0 1 1.066-3.809 7.108 7.108 0 0 1 2.834-2.65 36.193 36.193 0 0 1 7.678-2.834c2.6-.63 5.24-.945 7.922-.945 2.681 0 5.322.315 7.922.945 2.6.63 5.16 1.574 7.678 2.834a7.108 7.108 0 0 1 2.834 2.65A7.14 7.14 0 0 1 39 32.175v1.95c0 1.34-.477 2.488-1.432 3.443-.955.955-2.102 1.432-3.443 1.432H4.875c-1.34 0-2.488-.477-3.443-1.432C.477 36.613 0 35.466 0 34.125Z"/>
|
|
43
43
|
</react_native_svg_1.default>);
|
|
@@ -33,11 +33,11 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
var useTheme_1 = require("../../common/hooks/useTheme");
|
|
36
37
|
var React = __importStar(require("react"));
|
|
37
38
|
var react_native_svg_1 = __importStar(require("react-native-svg"));
|
|
38
|
-
var common_1 = require("../../common");
|
|
39
39
|
var SwitchCameraIcon = function () {
|
|
40
|
-
var palette = (0,
|
|
40
|
+
var palette = (0, useTheme_1.useTheme)().palette;
|
|
41
41
|
return (<react_native_svg_1.default width={39} height={39} fill="none">
|
|
42
42
|
<react_native_svg_1.Path fill={palette.surface} d="M13.66 26.544a2.768 2.768 0 0 1-2.02-.83 2.712 2.712 0 0 1-.838-2v-8.428c0-.78.279-1.447.838-2a2.768 2.768 0 0 1 2.02-.83h1.4l1.152-1.14c.148-.147.308-.254.48-.322.173-.069.355-.103.545-.103h4.526c.19 0 .372.034.544.103.173.068.333.175.48.322l1.154 1.14h1.399c.788 0 1.462.277 2.02.83.56.553.838 1.22.838 2v8.428c0 .78-.279 1.447-.837 2a2.769 2.769 0 0 1-2.021.83H13.66Zm5.84-4.365c.748 0 1.386-.261 1.915-.784a2.568 2.568 0 0 0 .792-1.895c0-.74-.264-1.372-.792-1.895a2.622 2.622 0 0 0-1.915-.784c-.748 0-1.386.261-1.915.784a2.568 2.568 0 0 0-.792 1.895c0 .74.264 1.372.793 1.895a2.622 2.622 0 0 0 1.914.784Zm.03 15.321c-4.487 0-8.418-1.406-11.794-4.218-3.376-2.813-5.445-6.36-6.208-10.642a1.278 1.278 0 0 1 .173-.965c.185-.29.45-.456.797-.498.347-.043.646.048.898.272.251.224.406.507.465.85.645 3.588 2.339 6.575 5.082 8.961 2.744 2.386 5.98 3.668 9.711 3.844l-1.922-1.902a1.128 1.128 0 0 1-.336-.817 1.101 1.101 0 0 1 .336-.833c.23-.226.507-.34.834-.34.326 0 .604.114.833.34l4.839 4.79c.144.142.188.303.132.482a.462.462 0 0 1-.363.333c-.57.132-1.141.223-1.714.27a21.06 21.06 0 0 1-1.763.073Zm-.06-36c4.487 0 8.418 1.405 11.794 4.214 3.376 2.81 5.445 6.363 6.208 10.662.069.353.011.672-.174.957-.184.285-.45.448-.796.49a1.091 1.091 0 0 1-.898-.272 1.425 1.425 0 0 1-.465-.85c-.645-3.588-2.339-6.575-5.082-8.961s-5.98-3.667-9.711-3.844l1.922 1.902c.219.217.33.49.336.818a1.1 1.1 0 0 1-.336.832 1.14 1.14 0 0 1-.834.34c-.326 0-.604-.113-.833-.34l-4.839-4.79c-.144-.142-.188-.303-.132-.482a.462.462 0 0 1 .363-.333c.57-.132 1.141-.223 1.714-.27.573-.049 1.16-.073 1.763-.073Z"/>
|
|
43
43
|
</react_native_svg_1.default>);
|
|
@@ -37,9 +37,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.VideoConsultationIcon = void 0;
|
|
40
|
+
var useTheme_1 = require("../../common/hooks/useTheme");
|
|
40
41
|
var react_1 = __importDefault(require("react"));
|
|
41
42
|
var react_native_svg_1 = __importStar(require("react-native-svg"));
|
|
42
|
-
var useTheme_1 = require("../hooks/useTheme");
|
|
43
43
|
var VideoConsultationIcon = function (_a) {
|
|
44
44
|
var _b = _a.size, size = _b === void 0 ? 26 : _b;
|
|
45
45
|
var palette = (0, useTheme_1.useTheme)().palette;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
+
import { Components } from '../../common/types/components';
|
|
1
2
|
import * as React from 'react';
|
|
2
|
-
declare const VideoOffIcon: ({
|
|
3
|
-
size?: number;
|
|
4
|
-
}) => React.JSX.Element;
|
|
3
|
+
declare const VideoOffIcon: ({ color, width, height }: Components["screens"]["VideoCallScreen"]["controlButtons"]["iconStyle"]) => React.JSX.Element;
|
|
5
4
|
export default VideoOffIcon;
|
|
@@ -33,14 +33,14 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
var useTheme_1 = require("../../common/hooks/useTheme");
|
|
36
37
|
var React = __importStar(require("react"));
|
|
37
38
|
var react_native_svg_1 = __importStar(require("react-native-svg"));
|
|
38
|
-
var common_1 = require("../../common");
|
|
39
39
|
var VideoOffIcon = function (_a) {
|
|
40
|
-
var _b = _a.
|
|
41
|
-
var palette = (0,
|
|
42
|
-
return (<react_native_svg_1.default width={
|
|
43
|
-
<react_native_svg_1.Path fill={palette.surface} fillRule="evenodd" d="M6.498 4.284a1 1 0 1 0-1.396 1.432L9.495 10H6.1c-.8 0-1.6.6-1.6 1.5v15.4c0 .8.8 1.5 1.6 1.5h19.3c.74 0 1.48-.685 1.587-1.342l6.315 6.158a1 1 0 1 0 1.396-1.432l-28.2-27.5ZM27 21.6l6.4 6.2v-17L27 17v-5.4c0-.9-.8-1.5-1.6-1.5H14.7L26.9 22v-.4h.1Z" clipRule="evenodd"/>
|
|
40
|
+
var color = _a.color, _b = _a.width, width = _b === void 0 ? 38 : _b, _c = _a.height, height = _c === void 0 ? 38 : _c;
|
|
41
|
+
var palette = (0, useTheme_1.useTheme)().palette;
|
|
42
|
+
return (<react_native_svg_1.default width={width} height={height} fill="none" viewBox="0 0 38 38">
|
|
43
|
+
<react_native_svg_1.Path fill={color || palette.surface} fillRule="evenodd" d="M6.498 4.284a1 1 0 1 0-1.396 1.432L9.495 10H6.1c-.8 0-1.6.6-1.6 1.5v15.4c0 .8.8 1.5 1.6 1.5h19.3c.74 0 1.48-.685 1.587-1.342l6.315 6.158a1 1 0 1 0 1.396-1.432l-28.2-27.5ZM27 21.6l6.4 6.2v-17L27 17v-5.4c0-.9-.8-1.5-1.6-1.5H14.7L26.9 22v-.4h.1Z" clipRule="evenodd"/>
|
|
44
44
|
</react_native_svg_1.default>);
|
|
45
45
|
};
|
|
46
46
|
exports.default = VideoOffIcon;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Components } from '../../common/types/components';
|
|
1
2
|
import * as React from 'react';
|
|
2
|
-
declare const VideoOnIcon: () => React.JSX.Element;
|
|
3
|
+
declare const VideoOnIcon: ({ color, width, height }: Components["screens"]["VideoCallScreen"]["controlButtons"]["iconStyle"]) => React.JSX.Element;
|
|
3
4
|
export default VideoOnIcon;
|
|
@@ -33,13 +33,14 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
var useTheme_1 = require("../../common/hooks/useTheme");
|
|
36
37
|
var React = __importStar(require("react"));
|
|
37
38
|
var react_native_svg_1 = __importStar(require("react-native-svg"));
|
|
38
|
-
var
|
|
39
|
-
var
|
|
40
|
-
var palette = (0,
|
|
41
|
-
return (<react_native_svg_1.default width={
|
|
42
|
-
<react_native_svg_1.Path fill={palette.surface} d="M27.97 16.933v-5.392c0-.925-.803-1.541-1.606-1.541H7.104c-.802 0-1.604.616-1.604 1.54v15.408c0 .77.802 1.54 1.605 1.54h19.26c.802 0 1.604-.77 1.604-1.54v-5.392l6.42 6.162V10.77l-6.42 6.163Z"/>
|
|
39
|
+
var VideoOnIcon = function (_a) {
|
|
40
|
+
var color = _a.color, _b = _a.width, width = _b === void 0 ? 39 : _b, _c = _a.height, height = _c === void 0 ? 38 : _c;
|
|
41
|
+
var palette = (0, useTheme_1.useTheme)().palette;
|
|
42
|
+
return (<react_native_svg_1.default width={width} height={height} fill="none">
|
|
43
|
+
<react_native_svg_1.Path fill={color || palette.surface} d="M27.97 16.933v-5.392c0-.925-.803-1.541-1.606-1.541H7.104c-.802 0-1.604.616-1.604 1.54v15.408c0 .77.802 1.54 1.605 1.54h19.26c.802 0 1.604-.77 1.604-1.54v-5.392l6.42 6.162V10.77l-6.42 6.163Z"/>
|
|
43
44
|
</react_native_svg_1.default>);
|
|
44
45
|
};
|
|
45
46
|
exports.default = VideoOnIcon;
|
|
@@ -40,22 +40,31 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
40
40
|
};
|
|
41
41
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
42
|
exports.DeliveryAddressScreen = void 0;
|
|
43
|
-
var
|
|
43
|
+
var Button_1 = require("../../common/components/Button");
|
|
44
|
+
var FormWrapper_1 = require("../../common/components/FormWrapper");
|
|
45
|
+
var Header_1 = require("../../common/components/Header");
|
|
46
|
+
var Input_1 = __importDefault(require("../../common/components/Input"));
|
|
47
|
+
var ScreenWrapper_1 = require("../../common/components/ScreenWrapper");
|
|
48
|
+
var Text_1 = require("../../common/components/Text");
|
|
49
|
+
var useTheme_1 = require("../../common/hooks/useTheme");
|
|
50
|
+
var useTranslation_1 = require("../../common/hooks/useTranslation");
|
|
51
|
+
var deliveryAddress_1 = require("../../common/types/deliveryAddress");
|
|
52
|
+
var VideoConsultationIcon_1 = require("../icons/VideoConsultationIcon");
|
|
44
53
|
var react_1 = __importDefault(require("react"));
|
|
45
54
|
var react_native_1 = require("react-native");
|
|
46
55
|
var DeliveryAddressScreen = function () {
|
|
47
|
-
var t = (0,
|
|
48
|
-
var theme = (0,
|
|
56
|
+
var t = (0, useTranslation_1.useTranslation)().t;
|
|
57
|
+
var theme = (0, useTheme_1.useTheme)();
|
|
49
58
|
var styles = getStyles(theme);
|
|
50
|
-
return (<
|
|
59
|
+
return (<ScreenWrapper_1.ScreenWrapper header={<Header_1.Header title={t('general.consultation.videoConsultation.title')} leftIcon={<VideoConsultationIcon_1.VideoConsultationIcon />}/>} containerStyle={styles.container}>
|
|
51
60
|
<react_native_1.View>
|
|
52
|
-
<
|
|
61
|
+
<Text_1.Text variant="h2" center>
|
|
53
62
|
{t('delivery.address.title')}
|
|
54
|
-
</
|
|
55
|
-
<
|
|
63
|
+
</Text_1.Text>
|
|
64
|
+
<Text_1.Text center>{t('delivery.address.description')}</Text_1.Text>
|
|
56
65
|
</react_native_1.View>
|
|
57
66
|
|
|
58
|
-
<
|
|
67
|
+
<FormWrapper_1.FormWrapper schema={deliveryAddress_1.HKDeliveryAddressSchema} onSubmit={{
|
|
59
68
|
onSuccess: function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
60
69
|
return [2 /*return*/, react_native_1.Alert.alert('Screen:success')];
|
|
61
70
|
}); }); },
|
|
@@ -65,13 +74,13 @@ var DeliveryAddressScreen = function () {
|
|
|
65
74
|
onFinally: function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
66
75
|
return [2 /*return*/, react_native_1.Alert.alert('Screen:finally')];
|
|
67
76
|
}); }); }
|
|
68
|
-
}} submitButton={<
|
|
69
|
-
<
|
|
70
|
-
<
|
|
71
|
-
<
|
|
72
|
-
<
|
|
73
|
-
</
|
|
74
|
-
</
|
|
77
|
+
}} submitButton={<Button_1.Button submit>{t('button.confirm')}</Button_1.Button>}>
|
|
78
|
+
<Input_1.default id="house" label={t('delivery.address.number_and_floor')} placeholder={t('delivery.address.number_and_floor.placeholder')}/>
|
|
79
|
+
<Input_1.default id="street" label={t('delivery.address.street')} placeholder={t('delivery.address.street.placeholder')}/>
|
|
80
|
+
<Input_1.default id="building" label={t('delivery.address.building_name_number')} placeholder={t('delivery.address.building_name_number.placeholder')}/>
|
|
81
|
+
<Input_1.default id="district" label={t('delivery.address.district_city')} placeholder={t('delivery.address.district_city.placeholder')}/>
|
|
82
|
+
</FormWrapper_1.FormWrapper>
|
|
83
|
+
</ScreenWrapper_1.ScreenWrapper>);
|
|
75
84
|
};
|
|
76
85
|
exports.DeliveryAddressScreen = DeliveryAddressScreen;
|
|
77
86
|
var getStyles = function (_a) {
|
|
@@ -4,17 +4,22 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.EndingVideoScreen = void 0;
|
|
7
|
-
var
|
|
7
|
+
var DoctorProfileCard_1 = require("../../common/components/DoctorProfileCard");
|
|
8
|
+
var Header_1 = require("../../common/components/Header");
|
|
9
|
+
var ScreenWrapper_1 = require("../../common/components/ScreenWrapper");
|
|
10
|
+
var useTheme_1 = require("../../common/hooks/useTheme");
|
|
11
|
+
var useTranslation_1 = require("../../common/hooks/useTranslation");
|
|
12
|
+
var VideoConsultationIcon_1 = require("../icons/VideoConsultationIcon");
|
|
8
13
|
var react_1 = __importDefault(require("react"));
|
|
9
14
|
var react_native_1 = require("react-native");
|
|
10
15
|
var EndingVideoScreen = function (_a) {
|
|
11
16
|
var professional = _a.professional;
|
|
12
|
-
var t = (0,
|
|
13
|
-
var theme = (0,
|
|
17
|
+
var t = (0, useTranslation_1.useTranslation)().t;
|
|
18
|
+
var theme = (0, useTheme_1.useTheme)();
|
|
14
19
|
var styles = getStyles(theme);
|
|
15
|
-
return (<
|
|
16
|
-
<
|
|
17
|
-
</
|
|
20
|
+
return (<ScreenWrapper_1.ScreenWrapper header={<Header_1.Header title={t('general.consultation.videoConsultation.title')} leftIcon={<VideoConsultationIcon_1.VideoConsultationIcon />}/>} containerStyle={styles.container}>
|
|
21
|
+
<DoctorProfileCard_1.DoctorProfileCard professional={professional} description={t('general.consultation.videoConsultation.ending')}/>
|
|
22
|
+
</ScreenWrapper_1.ScreenWrapper>);
|
|
18
23
|
};
|
|
19
24
|
exports.EndingVideoScreen = EndingVideoScreen;
|
|
20
25
|
var getStyles = function (_a) {
|