@abihealth/goapp-react-native 1.15.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.
Files changed (190) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/common/animations/Animation.js +1 -1
  3. package/dist/common/animations/FindingAnimation/index.js +1 -1
  4. package/dist/common/animations/LoadingCircleAnimation/index.js +1 -1
  5. package/dist/common/animations/LoadingHeart.js +1 -1
  6. package/dist/common/api/models/auth.d.ts +8 -0
  7. package/dist/common/api/models/consultation.d.ts +1 -1
  8. package/dist/common/components/ActionSheet.js +1 -1
  9. package/dist/common/components/AnswerScreen/Card.js +1 -1
  10. package/dist/common/components/AnswerScreen/CloseConsultationActionSheet.js +3 -3
  11. package/dist/common/components/AnswerScreen/DeliveryAddressCard.d.ts +1 -1
  12. package/dist/common/components/AnswerScreen/DeliveryAddressCard.js +2 -2
  13. package/dist/common/components/AnswerScreen/PrescriptionCard/PrescriptionCardHeader.d.ts +1 -1
  14. package/dist/common/components/AnswerScreen/PrescriptionCard/PrescriptionCardHeader.js +4 -4
  15. package/dist/common/components/AnswerScreen/PrescriptionCard/index.d.ts +1 -1
  16. package/dist/common/components/AnswerScreen/PrescriptionCard/index.js +4 -4
  17. package/dist/common/components/AnswerScreen/Summary.js +3 -3
  18. package/dist/common/components/BackgroundPattern.js +2 -2
  19. package/dist/common/components/Button.js +2 -2
  20. package/dist/common/components/CancelConsultationButton.js +2 -2
  21. package/dist/common/components/Checkbox.js +2 -2
  22. package/dist/common/components/DateInput.js +3 -3
  23. package/dist/common/components/DoctorProfileCard.d.ts +1 -1
  24. package/dist/common/components/DoctorProfileCard.js +16 -15
  25. package/dist/common/components/FormControl.js +1 -1
  26. package/dist/common/components/FormWrapper.d.ts +1 -1
  27. package/dist/common/components/FormWrapper.js +2 -2
  28. package/dist/common/components/Header.js +1 -1
  29. package/dist/common/components/Input.js +2 -2
  30. package/dist/common/components/Modal/AttachmentPreviewModal.js +4 -4
  31. package/dist/common/components/Modal/CancelModal.js +3 -3
  32. package/dist/common/components/Modal/CloseConsultationModal.js +3 -3
  33. package/dist/common/components/Modal/DoctorProfileModal.js +3 -3
  34. package/dist/common/components/Modal/ModalHeader.js +2 -2
  35. package/dist/common/components/Modal/TwoOptionsModal.js +1 -1
  36. package/dist/common/components/Modal/index.js +2 -2
  37. package/dist/common/components/PhoneInput.js +2 -2
  38. package/dist/common/components/Reminder.js +8 -8
  39. package/dist/common/components/ScreenWrapper.d.ts +2 -1
  40. package/dist/common/components/ScreenWrapper.js +4 -4
  41. package/dist/common/components/Select.js +2 -2
  42. package/dist/common/components/Text.js +3 -3
  43. package/dist/common/contexts/ConsultationContext.d.ts +2 -1
  44. package/dist/common/contexts/ConsultationContext.js +21 -9
  45. package/dist/common/contexts/ThemeContext.d.ts +1 -1
  46. package/dist/common/contexts/ThemeContext.js +1 -1
  47. package/dist/{video-consultations → common}/helpers/eventHandler.d.ts +2 -1
  48. package/dist/{video-consultations → common}/helpers/eventHandler.js +22 -21
  49. package/dist/common/hooks/useConsultation.js +1 -1
  50. package/dist/common/hooks/useCustomComponents.js +1 -1
  51. package/dist/common/hooks/useForm.js +1 -1
  52. package/dist/common/hooks/useHeader.js +1 -1
  53. package/dist/common/hooks/useTheme.js +1 -1
  54. package/dist/common/hooks/useTranslation.d.ts +9 -0
  55. package/dist/common/hooks/useTranslation.js +47 -0
  56. package/dist/common/hooks/useUser.js +1 -1
  57. package/dist/common/icons/AbiLogoIcon.js +1 -1
  58. package/dist/common/icons/BackArrowIcon.js +1 -1
  59. package/dist/common/icons/CloseIcon.js +1 -1
  60. package/dist/common/icons/DoctorIcon.js +1 -1
  61. package/dist/common/icons/DoctorImagePlaceholderIcon.js +1 -1
  62. package/dist/common/icons/ExitIcon.js +1 -1
  63. package/dist/common/icons/InfoIcon.js +1 -1
  64. package/dist/common/icons/MotorbikeIcon.js +1 -1
  65. package/dist/common/icons/NoCaseFoundIcon.js +1 -1
  66. package/dist/common/icons/PdfDownloadIcon.js +1 -1
  67. package/dist/common/icons/PdfIcon.js +1 -1
  68. package/dist/common/icons/PersonIcon.js +1 -1
  69. package/dist/common/icons/PillsIcon.js +1 -1
  70. package/dist/common/icons/PlaneIcon.js +1 -1
  71. package/dist/common/icons/RatingIcon.js +1 -1
  72. package/dist/common/icons/StarIcon.js +1 -1
  73. package/dist/common/icons/TextConsultationIcon.js +1 -1
  74. package/dist/common/icons/TrashIcon.js +1 -1
  75. package/dist/common/locale/i18n.d.ts +0 -1
  76. package/dist/common/locale/i18n.js +52 -22
  77. package/dist/common/locale/translations/bg.prescriptionSurveys.json +27 -0
  78. package/dist/common/locale/translations/de.base.json +328 -0
  79. package/dist/common/locale/translations/de.prescriptionSurveys.json +183 -0
  80. package/dist/common/locale/translations/en.base.json +2 -0
  81. package/dist/common/locale/translations/en.prescriptionSurveys.json +535 -0
  82. package/dist/common/locale/translations/es-MX.prescriptionSurveys.json +535 -0
  83. package/dist/common/locale/translations/fr.base.json +16 -0
  84. package/dist/common/locale/translations/hr.prescriptionSurveys.json +1 -0
  85. package/dist/common/locale/translations/hu.prescriptionSurveys.json +27 -0
  86. package/dist/common/locale/translations/it.base.json +328 -0
  87. package/dist/common/locale/translations/it.prescriptionSurveys.json +376 -0
  88. package/dist/common/locale/translations/sl.prescriptionSurveys.json +375 -0
  89. package/dist/common/locale/translations/zh-CN.prescriptionSurveys.json +382 -0
  90. package/dist/common/locale/translations/zh-HK.prescriptionSurveys.json +535 -0
  91. package/dist/common/locale/translations/zh-SG.prescriptionSurveys.json +382 -0
  92. package/dist/common/locale/translations/zh-TW.prescriptionSurveys.json +535 -0
  93. package/dist/common/screens/AnswerScreen.d.ts +1 -1
  94. package/dist/common/screens/AnswerScreen.js +5 -5
  95. package/dist/common/screens/MatchScreen.d.ts +1 -1
  96. package/dist/common/screens/MatchScreen.js +5 -5
  97. package/dist/common/screens/MatchingScreen.js +5 -5
  98. package/dist/common/screens/NoConsultationFoundScreen.js +4 -4
  99. package/dist/common/screens/NotValidActiveType.d.ts +2 -0
  100. package/dist/common/screens/NotValidActiveType.js +13 -0
  101. package/dist/common/screens/PreparingSummaryScreen.d.ts +1 -1
  102. package/dist/common/screens/PreparingSummaryScreen.js +5 -5
  103. package/dist/common/screens/RatingScreen.js +5 -5
  104. package/dist/common/screens/index.d.ts +1 -1
  105. package/dist/common/screens/index.js +1 -1
  106. package/dist/common/types/deliveryAddress.js +7 -7
  107. package/dist/common/types/theme.d.ts +1 -1
  108. package/dist/common/utils/valid-active-type.d.ts +2 -0
  109. package/dist/common/utils/valid-active-type.js +10 -0
  110. package/dist/form-prescriptions/api/models/prescription.d.ts +29 -0
  111. package/dist/form-prescriptions/api/models/prescription.js +2 -0
  112. package/dist/form-prescriptions/api/prescription.d.ts +2 -0
  113. package/dist/form-prescriptions/api/prescription.js +10 -0
  114. package/dist/form-prescriptions/components/FormPrescription.d.ts +8 -0
  115. package/dist/form-prescriptions/components/FormPrescription.js +70 -0
  116. package/dist/form-prescriptions/components/IndicationSurveyButton.d.ts +3 -0
  117. package/dist/form-prescriptions/components/IndicationSurveyButton.js +36 -0
  118. package/dist/form-prescriptions/components/Questionnaire/QuestionnaireHeader.d.ts +2 -0
  119. package/dist/form-prescriptions/components/Questionnaire/QuestionnaireHeader.js +64 -0
  120. package/dist/form-prescriptions/components/Questionnaire/QuestionnaireQuestion/OpenEnded.d.ts +2 -0
  121. package/dist/form-prescriptions/components/Questionnaire/QuestionnaireQuestion/OpenEnded.js +73 -0
  122. package/dist/form-prescriptions/components/Questionnaire/QuestionnaireQuestion/SingleChoice.d.ts +2 -0
  123. package/dist/form-prescriptions/components/Questionnaire/QuestionnaireQuestion/SingleChoice.js +72 -0
  124. package/dist/form-prescriptions/components/Questionnaire/QuestionnaireQuestion/index.d.ts +2 -0
  125. package/dist/form-prescriptions/components/Questionnaire/QuestionnaireQuestion/index.js +34 -0
  126. package/dist/form-prescriptions/contexts/IndicationSurveyContext.d.ts +19 -0
  127. package/dist/form-prescriptions/contexts/IndicationSurveyContext.js +55 -0
  128. package/dist/form-prescriptions/hooks/useIndicationSurvey.d.ts +11 -0
  129. package/dist/form-prescriptions/hooks/useIndicationSurvey.js +41 -0
  130. package/dist/form-prescriptions/hooks/useIndicationSurveyAnswers.d.ts +7 -0
  131. package/dist/form-prescriptions/hooks/useIndicationSurveyAnswers.js +41 -0
  132. package/dist/form-prescriptions/hooks/useScreens.d.ts +6 -0
  133. package/dist/form-prescriptions/hooks/useScreens.js +32 -0
  134. package/dist/form-prescriptions/icons/AlertIcon.d.ts +3 -0
  135. package/dist/form-prescriptions/icons/AlertIcon.js +53 -0
  136. package/dist/form-prescriptions/icons/FormPrescriptionIcon.d.ts +3 -0
  137. package/dist/form-prescriptions/icons/FormPrescriptionIcon.js +47 -0
  138. package/dist/form-prescriptions/icons/RxIcon.d.ts +3 -0
  139. package/dist/form-prescriptions/icons/RxIcon.js +47 -0
  140. package/dist/form-prescriptions/mocks/indication-survey.d.ts +20 -0
  141. package/dist/form-prescriptions/mocks/indication-survey.js +293 -0
  142. package/dist/form-prescriptions/screens/HomeScreen.d.ts +2 -0
  143. package/dist/form-prescriptions/screens/HomeScreen.js +64 -0
  144. package/dist/form-prescriptions/screens/QuestionnaireScreen.d.ts +2 -0
  145. package/dist/form-prescriptions/screens/QuestionnaireScreen.js +55 -0
  146. package/dist/form-prescriptions/types/indications.d.ts +25 -0
  147. package/dist/form-prescriptions/types/indications.js +8 -0
  148. package/dist/form-prescriptions/types/screens.d.ts +5 -0
  149. package/dist/form-prescriptions/types/screens.js +9 -0
  150. package/dist/index.d.ts +15 -12
  151. package/dist/index.js +28 -24
  152. package/dist/video-consultations/animations/CallingAnimation/index.js +4 -3
  153. package/dist/video-consultations/animations/CallingAnimation/xml.d.ts +2 -1
  154. package/dist/video-consultations/components/AgoraWrapper/components/BaseRenderUsers.js +10 -9
  155. package/dist/video-consultations/components/AgoraWrapper/components/BtnControls.js +15 -10
  156. package/dist/video-consultations/components/AgoraWrapper/components/ui/index.js +4 -4
  157. package/dist/video-consultations/components/AgoraWrapper/index.d.ts +1 -1
  158. package/dist/video-consultations/components/AgoraWrapper/index.js +3 -3
  159. package/dist/video-consultations/components/Modal/EndVideoCallModal.js +5 -4
  160. package/dist/video-consultations/components/VideoConsultation.d.ts +1 -1
  161. package/dist/video-consultations/components/VideoConsultation.js +18 -9
  162. package/dist/video-consultations/hooks/useInitRtcEngine.d.ts +1 -1
  163. package/dist/video-consultations/hooks/useInitRtcEngine.js +1 -1
  164. package/dist/video-consultations/icons/EndVideoCallIcon.js +2 -2
  165. package/dist/video-consultations/icons/HangUpIcon.d.ts +2 -1
  166. package/dist/video-consultations/icons/HangUpIcon.js +6 -5
  167. package/dist/video-consultations/icons/MicroOffIcon.d.ts +2 -5
  168. package/dist/video-consultations/icons/MicroOffIcon.js +4 -4
  169. package/dist/video-consultations/icons/MicroOnIcon.d.ts +2 -1
  170. package/dist/video-consultations/icons/MicroOnIcon.js +7 -6
  171. package/dist/video-consultations/icons/PersonIcon.js +2 -2
  172. package/dist/video-consultations/icons/SwitchCameraIcon.js +2 -2
  173. package/dist/{common → video-consultations}/icons/VideoConsultationIcon.js +1 -1
  174. package/dist/video-consultations/icons/VideoOffIcon.d.ts +2 -3
  175. package/dist/video-consultations/icons/VideoOffIcon.js +5 -5
  176. package/dist/video-consultations/icons/VideoOnIcon.d.ts +2 -1
  177. package/dist/video-consultations/icons/VideoOnIcon.js +6 -5
  178. package/dist/video-consultations/screens/DeliveryAddressScreen.js +24 -15
  179. package/dist/video-consultations/screens/EndingVideoScreen.d.ts +1 -1
  180. package/dist/video-consultations/screens/EndingVideoScreen.js +11 -6
  181. package/dist/video-consultations/screens/JoinVideoCallScreen.d.ts +1 -1
  182. package/dist/video-consultations/screens/JoinVideoCallScreen.js +21 -13
  183. package/dist/video-consultations/screens/ProcessingPrescriptionScreen.js +16 -10
  184. package/dist/video-consultations/screens/VideoCallScreen.js +16 -9
  185. package/package.json +4 -2
  186. package/dist/common/index.d.ts +0 -58
  187. package/dist/common/index.js +0 -116
  188. package/dist/video-consultations/index.d.ts +0 -10
  189. package/dist/video-consultations/index.js +0 -24
  190. /package/dist/{common → video-consultations}/icons/VideoConsultationIcon.d.ts +0 -0
@@ -0,0 +1,293 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.INDICATION_SURVEY_MOCK = void 0;
4
+ var indications_1 = require("../types/indications");
5
+ exports.INDICATION_SURVEY_MOCK = {
6
+ id: 16,
7
+ titleKey: 'indication.title.314315661',
8
+ indications: [
9
+ {
10
+ id: 98,
11
+ questionKey: 'survey.emergency_contraception.1',
12
+ type: indications_1.INDICATION_TYPE.SINGLE_CHOICE,
13
+ isRequired: true,
14
+ order: 1,
15
+ answers: [
16
+ {
17
+ id: 107,
18
+ titleKey: null,
19
+ text: 'choice.yes',
20
+ indicationSurveyQuestionId: 98,
21
+ isExitLogic: false,
22
+ order: 1
23
+ },
24
+ {
25
+ id: 127,
26
+ titleKey: null,
27
+ text: 'choice.no',
28
+ indicationSurveyQuestionId: 98,
29
+ isExitLogic: true,
30
+ order: 2
31
+ }
32
+ ]
33
+ },
34
+ {
35
+ id: 117,
36
+ questionKey: 'survey.emergency_contraception.2',
37
+ type: indications_1.INDICATION_TYPE.SINGLE_CHOICE,
38
+ isRequired: true,
39
+ order: 2,
40
+ answers: [
41
+ {
42
+ id: 147,
43
+ titleKey: null,
44
+ text: 'choice.yes',
45
+ indicationSurveyQuestionId: 117,
46
+ isExitLogic: true,
47
+ order: 1
48
+ },
49
+ {
50
+ id: 164,
51
+ titleKey: null,
52
+ text: 'choice.no',
53
+ indicationSurveyQuestionId: 117,
54
+ isExitLogic: false,
55
+ order: 2
56
+ }
57
+ ]
58
+ },
59
+ {
60
+ id: 138,
61
+ questionKey: 'survey.emergency_contraception.3',
62
+ type: indications_1.INDICATION_TYPE.SINGLE_CHOICE,
63
+ isRequired: true,
64
+ order: 3,
65
+ answers: [
66
+ {
67
+ id: 185,
68
+ titleKey: null,
69
+ text: 'choice.yes',
70
+ indicationSurveyQuestionId: 138,
71
+ isExitLogic: true,
72
+ order: 1
73
+ },
74
+ {
75
+ id: 196,
76
+ titleKey: null,
77
+ text: 'choice.no',
78
+ indicationSurveyQuestionId: 138,
79
+ isExitLogic: false,
80
+ order: 2
81
+ }
82
+ ]
83
+ },
84
+ {
85
+ id: 170,
86
+ questionKey: 'survey.emergency_contraception.4',
87
+ type: indications_1.INDICATION_TYPE.SINGLE_CHOICE,
88
+ isRequired: true,
89
+ order: 4,
90
+ answers: [
91
+ {
92
+ id: 218,
93
+ titleKey: null,
94
+ text: 'choice.yes',
95
+ indicationSurveyQuestionId: 170,
96
+ isExitLogic: true,
97
+ order: 1
98
+ },
99
+ {
100
+ id: 235,
101
+ titleKey: null,
102
+ text: 'choice.no',
103
+ indicationSurveyQuestionId: 170,
104
+ isExitLogic: false,
105
+ order: 2
106
+ }
107
+ ]
108
+ },
109
+ {
110
+ id: 189,
111
+ questionKey: 'survey.emergency_contraception.5',
112
+ type: indications_1.INDICATION_TYPE.SINGLE_CHOICE,
113
+ isRequired: true,
114
+ order: 5,
115
+ answers: [
116
+ {
117
+ id: 252,
118
+ titleKey: null,
119
+ text: 'choice.yes',
120
+ indicationSurveyQuestionId: 189,
121
+ isExitLogic: true,
122
+ order: 1
123
+ },
124
+ {
125
+ id: 272,
126
+ titleKey: null,
127
+ text: 'choice.no',
128
+ indicationSurveyQuestionId: 189,
129
+ isExitLogic: false,
130
+ order: 2
131
+ }
132
+ ]
133
+ },
134
+ {
135
+ id: 210,
136
+ questionKey: 'survey.emergency_contraception.6',
137
+ type: indications_1.INDICATION_TYPE.SINGLE_CHOICE,
138
+ isRequired: true,
139
+ order: 6,
140
+ answers: [
141
+ {
142
+ id: 288,
143
+ titleKey: null,
144
+ text: 'choice.yes',
145
+ indicationSurveyQuestionId: 210,
146
+ isExitLogic: true,
147
+ order: 1
148
+ },
149
+ {
150
+ id: 302,
151
+ titleKey: null,
152
+ text: 'choice.no',
153
+ indicationSurveyQuestionId: 210,
154
+ isExitLogic: false,
155
+ order: 2
156
+ }
157
+ ]
158
+ },
159
+ {
160
+ id: 229,
161
+ questionKey: 'survey.emergency_contraception.7',
162
+ type: indications_1.INDICATION_TYPE.SINGLE_CHOICE,
163
+ isRequired: true,
164
+ order: 7,
165
+ answers: [
166
+ {
167
+ id: 323,
168
+ titleKey: null,
169
+ text: 'choice.yes',
170
+ indicationSurveyQuestionId: 229,
171
+ isExitLogic: true,
172
+ order: 1
173
+ },
174
+ {
175
+ id: 331,
176
+ titleKey: null,
177
+ text: 'choice.no',
178
+ indicationSurveyQuestionId: 229,
179
+ isExitLogic: false,
180
+ order: 2
181
+ }
182
+ ]
183
+ },
184
+ {
185
+ id: 250,
186
+ questionKey: 'survey.emergency_contraception.8',
187
+ type: indications_1.INDICATION_TYPE.SINGLE_CHOICE,
188
+ isRequired: true,
189
+ order: 8,
190
+ answers: [
191
+ {
192
+ id: 355,
193
+ titleKey: null,
194
+ text: 'choice.yes',
195
+ indicationSurveyQuestionId: 250,
196
+ isExitLogic: true,
197
+ order: 1
198
+ },
199
+ {
200
+ id: 361,
201
+ titleKey: null,
202
+ text: 'choice.no',
203
+ indicationSurveyQuestionId: 250,
204
+ isExitLogic: false,
205
+ order: 2
206
+ }
207
+ ]
208
+ },
209
+ {
210
+ id: 449,
211
+ questionKey: 'survey.emergency_contraception.9',
212
+ type: indications_1.INDICATION_TYPE.OPEN_ENDED,
213
+ isRequired: false,
214
+ order: 9,
215
+ answers: []
216
+ },
217
+ {
218
+ id: 459,
219
+ questionKey: 'survey.emergency_contraception.10',
220
+ type: indications_1.INDICATION_TYPE.SINGLE_CHOICE,
221
+ isRequired: true,
222
+ order: 10,
223
+ answers: [
224
+ {
225
+ id: 600,
226
+ titleKey: null,
227
+ text: 'choice.understand_agree',
228
+ indicationSurveyQuestionId: 459,
229
+ isExitLogic: false,
230
+ order: 1
231
+ },
232
+ {
233
+ id: 601,
234
+ titleKey: null,
235
+ text: 'choice.not_understand_not_agree',
236
+ indicationSurveyQuestionId: 459,
237
+ isExitLogic: true,
238
+ order: 2
239
+ }
240
+ ]
241
+ },
242
+ {
243
+ id: 470,
244
+ questionKey: 'survey.emergency_contraception.11',
245
+ type: indications_1.INDICATION_TYPE.SINGLE_CHOICE,
246
+ isRequired: true,
247
+ order: 11,
248
+ answers: [
249
+ {
250
+ id: 608,
251
+ titleKey: null,
252
+ text: 'choice.understand_agree',
253
+ indicationSurveyQuestionId: 470,
254
+ isExitLogic: false,
255
+ order: 1
256
+ },
257
+ {
258
+ id: 609,
259
+ titleKey: null,
260
+ text: 'choice.not_understand_not_agree',
261
+ indicationSurveyQuestionId: 470,
262
+ isExitLogic: true,
263
+ order: 2
264
+ }
265
+ ]
266
+ },
267
+ {
268
+ id: 475,
269
+ questionKey: 'survey.emergency_contraception.12',
270
+ type: indications_1.INDICATION_TYPE.SINGLE_CHOICE,
271
+ isRequired: true,
272
+ order: 12,
273
+ answers: [
274
+ {
275
+ id: 611,
276
+ titleKey: null,
277
+ text: 'choice.understand_agree',
278
+ indicationSurveyQuestionId: 475,
279
+ isExitLogic: false,
280
+ order: 1
281
+ },
282
+ {
283
+ id: 613,
284
+ titleKey: null,
285
+ text: 'choice.not_understand_not_agree',
286
+ indicationSurveyQuestionId: 475,
287
+ isExitLogic: true,
288
+ order: 2
289
+ }
290
+ ]
291
+ }
292
+ ]
293
+ };
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const HomeScreen: () => React.JSX.Element;
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ var __rest = (this && this.__rest) || function (s, e) {
3
+ var t = {};
4
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
5
+ t[p] = s[p];
6
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
7
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
8
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
9
+ t[p[i]] = s[p[i]];
10
+ }
11
+ return t;
12
+ };
13
+ var __importDefault = (this && this.__importDefault) || function (mod) {
14
+ return (mod && mod.__esModule) ? mod : { "default": mod };
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.HomeScreen = void 0;
18
+ var Header_1 = require("../../common/components/Header");
19
+ var ScreenWrapper_1 = require("../../common/components/ScreenWrapper");
20
+ var useTheme_1 = require("../../common/hooks/useTheme");
21
+ var useTranslation_1 = require("../../common/hooks/useTranslation");
22
+ var IndicationSurveyButton_1 = __importDefault(require("../components/IndicationSurveyButton"));
23
+ var FormPrescriptionIcon_1 = require("../icons/FormPrescriptionIcon");
24
+ var react_1 = __importDefault(require("react"));
25
+ var react_native_1 = require("react-native");
26
+ var HomeScreen = function () {
27
+ var t = (0, useTranslation_1.useTranslation)().t;
28
+ var theme = (0, useTheme_1.useTheme)();
29
+ var styles = getStyles(theme);
30
+ return (<ScreenWrapper_1.ScreenWrapper header={<Header_1.Header title={t('general.consultation.prescriptionRequest.title')} leftIcon={<FormPrescriptionIcon_1.FormPrescriptionIcon />}/>} containerStyle={styles.container}>
31
+ {[
32
+ {
33
+ id: 13,
34
+ textKey: 'indication.title.314316147',
35
+ iconUrl: 'https://assets.abi.ai/indication-surveys/acid-reflux-icon.svg',
36
+ order: 1
37
+ },
38
+ {
39
+ id: 14,
40
+ textKey: 'indication.title.314316009',
41
+ iconUrl: 'https://assets.abi.ai/indication-surveys/acid-reflux-icon.svg',
42
+ order: 2
43
+ },
44
+ {
45
+ id: 15,
46
+ textKey: 'indication.title.314315777',
47
+ iconUrl: 'https://assets.abi.ai/indication-surveys/acid-reflux-icon.svg',
48
+ order: 3
49
+ }
50
+ ].map(function (_a) {
51
+ var id = _a.id, indicationSurvey = __rest(_a, ["id"]);
52
+ return (<IndicationSurveyButton_1.default key={id} id={id} {...indicationSurvey}/>);
53
+ })}
54
+ </ScreenWrapper_1.ScreenWrapper>);
55
+ };
56
+ exports.HomeScreen = HomeScreen;
57
+ var getStyles = function (_a) {
58
+ var spacing = _a.spacing;
59
+ return react_native_1.StyleSheet.create({
60
+ container: {
61
+ rowGap: spacing.sm
62
+ }
63
+ });
64
+ };
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const QuestionnaireScreen: () => React.JSX.Element;
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.QuestionnaireScreen = void 0;
7
+ var Header_1 = require("../../common/components/Header");
8
+ var ScreenWrapper_1 = require("../../common/components/ScreenWrapper");
9
+ var Text_1 = require("../../common/components/Text");
10
+ var useTheme_1 = require("../../common/hooks/useTheme");
11
+ var useTranslation_1 = require("../../common/hooks/useTranslation");
12
+ var BackArrowIcon_1 = require("../../common/icons/BackArrowIcon");
13
+ var CloseIcon_1 = require("../../common/icons/CloseIcon");
14
+ var i18n_1 = __importDefault(require("../../common/locale/i18n"));
15
+ var QuestionnaireHeader_1 = require("../components/Questionnaire/QuestionnaireHeader");
16
+ var QuestionnaireQuestion_1 = require("../components/Questionnaire/QuestionnaireQuestion");
17
+ var useIndicationSurvey_1 = require("../hooks/useIndicationSurvey");
18
+ var react_1 = __importDefault(require("react"));
19
+ var react_native_1 = require("react-native");
20
+ var QuestionnaireScreen = function () {
21
+ var t = (0, useTranslation_1.useTranslation)().t;
22
+ var _a = (0, useIndicationSurvey_1.useIndicationSurvey)(), currentQuestion = _a.currentQuestion, previousStep = _a.previousStep, resetIndicationSurvey = _a.resetIndicationSurvey;
23
+ var theme = (0, useTheme_1.useTheme)();
24
+ var styles = getStyles(theme);
25
+ var titleKey = "".concat(currentQuestion === null || currentQuestion === void 0 ? void 0 : currentQuestion.questionKey, ".title");
26
+ var descriptionKey = "".concat(currentQuestion === null || currentQuestion === void 0 ? void 0 : currentQuestion.questionKey, ".description");
27
+ return (<ScreenWrapper_1.ScreenWrapper scrollEnabled={false} header={<Header_1.Header title={t('general.consultation.prescription.title')} leftIcon={<react_native_1.TouchableOpacity onPress={previousStep}>
28
+ <BackArrowIcon_1.BackArrowIcon />
29
+ </react_native_1.TouchableOpacity>} rightIcon={<react_native_1.TouchableOpacity activeOpacity={0.6} onPress={resetIndicationSurvey}>
30
+ <CloseIcon_1.CloseIcon />
31
+ </react_native_1.TouchableOpacity>}/>} containerStyle={styles.container}>
32
+ <QuestionnaireHeader_1.QuestionnaireHeader />
33
+
34
+ <react_native_1.ScrollView style={styles.container}>
35
+ <react_native_1.View style={styles.container}>
36
+ <Text_1.Text style={styles.questionText}>{t(titleKey)}</Text_1.Text>
37
+ {i18n_1.default.exists(descriptionKey) && <Text_1.Text style={styles.questionText}>{t(descriptionKey)}</Text_1.Text>}
38
+ <QuestionnaireQuestion_1.QuestionnaireQuestion />
39
+ </react_native_1.View>
40
+ </react_native_1.ScrollView>
41
+ </ScreenWrapper_1.ScreenWrapper>);
42
+ };
43
+ exports.QuestionnaireScreen = QuestionnaireScreen;
44
+ var getStyles = function (_a) {
45
+ var spacing = _a.spacing;
46
+ return react_native_1.StyleSheet.create({
47
+ container: {
48
+ rowGap: spacing.sm,
49
+ width: '100%'
50
+ },
51
+ questionText: {
52
+ width: '100%'
53
+ }
54
+ });
55
+ };
@@ -0,0 +1,25 @@
1
+ export interface IndicationQuestionAnswerOption {
2
+ id: number;
3
+ titleKey: null;
4
+ text: string;
5
+ indicationSurveyQuestionId: number;
6
+ isExitLogic: boolean;
7
+ order: number;
8
+ }
9
+ export declare enum INDICATION_TYPE {
10
+ SINGLE_CHOICE = "single_choice",
11
+ OPEN_ENDED = "open_ended"
12
+ }
13
+ export interface IndicationQuestion {
14
+ id: number;
15
+ questionKey: string;
16
+ type: INDICATION_TYPE;
17
+ isRequired: boolean;
18
+ order: number;
19
+ answers: IndicationQuestionAnswerOption[];
20
+ }
21
+ export interface IndicationSurveyQuestions {
22
+ id: number;
23
+ titleKey: string;
24
+ indications: IndicationQuestion[];
25
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.INDICATION_TYPE = void 0;
4
+ var INDICATION_TYPE;
5
+ (function (INDICATION_TYPE) {
6
+ INDICATION_TYPE["SINGLE_CHOICE"] = "single_choice";
7
+ INDICATION_TYPE["OPEN_ENDED"] = "open_ended";
8
+ })(INDICATION_TYPE || (exports.INDICATION_TYPE = INDICATION_TYPE = {}));
@@ -0,0 +1,5 @@
1
+ export declare enum FORM_PRESCRIPTION_SCREENS {
2
+ HOME = 0,
3
+ QUESTIONNAIRE = 1,
4
+ FORM = 2
5
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FORM_PRESCRIPTION_SCREENS = void 0;
4
+ var FORM_PRESCRIPTION_SCREENS;
5
+ (function (FORM_PRESCRIPTION_SCREENS) {
6
+ FORM_PRESCRIPTION_SCREENS[FORM_PRESCRIPTION_SCREENS["HOME"] = 0] = "HOME";
7
+ FORM_PRESCRIPTION_SCREENS[FORM_PRESCRIPTION_SCREENS["QUESTIONNAIRE"] = 1] = "QUESTIONNAIRE";
8
+ FORM_PRESCRIPTION_SCREENS[FORM_PRESCRIPTION_SCREENS["FORM"] = 2] = "FORM";
9
+ })(FORM_PRESCRIPTION_SCREENS || (exports.FORM_PRESCRIPTION_SCREENS = FORM_PRESCRIPTION_SCREENS = {}));
package/dist/index.d.ts CHANGED
@@ -1,13 +1,3 @@
1
- import { CallingAnimation } from './video-consultations/animations/CallingAnimation';
2
- import AgoraWrapper from './video-consultations/components/AgoraWrapper';
3
- import { EndVideoCallModal } from './video-consultations/components/Modal/EndVideoCallModal';
4
- import { VideoConsultation } from './video-consultations/components/VideoConsultation';
5
- import { DeliveryAddressScreen } from './video-consultations/screens/DeliveryAddressScreen';
6
- import { EndingVideoScreen } from './video-consultations/screens/EndingVideoScreen';
7
- import { JoinVideoCallScreen } from './video-consultations/screens/JoinVideoCallScreen';
8
- import { ProcessingPrescriptionScreen } from './video-consultations/screens/ProcessingPrescriptionScreen';
9
- import VideoCallScreen from './video-consultations/screens/VideoCallScreen';
10
- import { useTranslation } from 'react-i18next';
11
1
  import { Animation } from './common/animations/Animation';
12
2
  import { FindingAnimation } from './common/animations/FindingAnimation';
13
3
  import { HorizontalLoadingAnimation } from './common/animations/HorizontalLoadingAnimation';
@@ -40,6 +30,7 @@ import { Text } from './common/components/Text';
40
30
  import { ConsultationProvider } from './common/contexts/ConsultationContext';
41
31
  import { useConsultation } from './common/hooks/useConsultation';
42
32
  import { useTheme } from './common/hooks/useTheme';
33
+ import { useTranslation } from './common/hooks/useTranslation';
43
34
  import { AbiLogoIcon } from './common/icons/AbiLogoIcon';
44
35
  import { BackArrowIcon } from './common/icons/BackArrowIcon';
45
36
  import { CloseIcon } from './common/icons/CloseIcon';
@@ -47,7 +38,6 @@ import { DoctorIcon } from './common/icons/DoctorIcon';
47
38
  import { InfoIcon } from './common/icons/InfoIcon';
48
39
  import { PlaneIcon } from './common/icons/PlaneIcon';
49
40
  import { TextConsultationIcon } from './common/icons/TextConsultationIcon';
50
- import { VideoConsultationIcon } from './common/icons/VideoConsultationIcon';
51
41
  import { AnswerScreen } from './common/screens/AnswerScreen';
52
42
  import { MatchingScreen } from './common/screens/MatchingScreen';
53
43
  import { MatchScreen } from './common/screens/MatchScreen';
@@ -62,5 +52,18 @@ import { Theme } from './common/types/theme';
62
52
  import { isAndroid, isIOS } from './common/utils/platform';
63
53
  import { getProfessionalLabel } from './common/utils/professional';
64
54
  import { requiredCheckbox, requiredString, validPhone } from './common/utils/zod';
55
+ import { IndicationCategory } from './form-prescriptions/api/models/prescription';
56
+ import { FormPrescription } from './form-prescriptions/components/FormPrescription';
57
+ import { HomeScreen } from './form-prescriptions/screens/HomeScreen';
58
+ import { CallingAnimation } from './video-consultations/animations/CallingAnimation';
59
+ import AgoraWrapper from './video-consultations/components/AgoraWrapper';
60
+ import { EndVideoCallModal } from './video-consultations/components/Modal/EndVideoCallModal';
61
+ import { VideoConsultation } from './video-consultations/components/VideoConsultation';
62
+ import { VideoConsultationIcon } from './video-consultations/icons/VideoConsultationIcon';
63
+ import { DeliveryAddressScreen } from './video-consultations/screens/DeliveryAddressScreen';
64
+ import { EndingVideoScreen } from './video-consultations/screens/EndingVideoScreen';
65
+ import { JoinVideoCallScreen } from './video-consultations/screens/JoinVideoCallScreen';
66
+ import { ProcessingPrescriptionScreen } from './video-consultations/screens/ProcessingPrescriptionScreen';
67
+ import VideoCallScreen from './video-consultations/screens/VideoCallScreen';
65
68
  export { AbiLogoIcon, AgoraWrapper, Animation, AnswerScreen, AttachmentPreviewModal, authorization, BackArrowIcon, BackgroundPattern, Button, CallingAnimation, CancelConsultationButton, CancelModal, Card, CASE_TYPE, Checkbox, CloseConsultationModal, CloseIcon, Consultation, CONSULTATION_STATUS, // TODO check this after last refactor
66
- ConsultationProvider, DateInput, DeliveryAddressScreen, DoctorIcon, DoctorProfileCard, DoctorProfileModal, EndingVideoScreen, EndVideoCallModal, FadeIn, FindingAnimation, FormWrapper, getProfessionalLabel, Header, HKDeliveryAddressSchema, HorizontalLoadingAnimation, InfoIcon, Input, isAndroid, isIOS, JoinVideoCallScreen, License, LoadingCircleAnimation, LoadingDotsAnimation, MatchingScreen, MatchScreen, Modal, NoConsultationFoundScreen, PhoneInput, PlaneIcon, PreparingSummaryScreen, Prescription, PRESCRIPTION_STATUS, ProcessingPrescriptionScreen, Professional, Question, QuestionType, RatingScreen, Reminder, requiredCheckbox, requiredString, ScreenWrapper, Select, Slide, Text, TextConsultationIcon, Theme, TwoOptionsModal, useConsultation, useTheme, useTranslation, validPhone, VideoCallScreen, VideoConsultation, VideoConsultationIcon };
69
+ ConsultationProvider, DateInput, DeliveryAddressScreen, DoctorIcon, DoctorProfileCard, DoctorProfileModal, EndingVideoScreen, EndVideoCallModal, FadeIn, FindingAnimation, FormPrescription, FormWrapper, getProfessionalLabel, Header, HKDeliveryAddressSchema, HomeScreen, HorizontalLoadingAnimation, IndicationCategory, InfoIcon, Input, isAndroid, isIOS, JoinVideoCallScreen, License, LoadingCircleAnimation, LoadingDotsAnimation, MatchingScreen, MatchScreen, Modal, NoConsultationFoundScreen, PhoneInput, PlaneIcon, PreparingSummaryScreen, Prescription, PRESCRIPTION_STATUS, ProcessingPrescriptionScreen, Professional, Question, QuestionType, RatingScreen, Reminder, requiredCheckbox, requiredString, ScreenWrapper, Select, Slide, Text, TextConsultationIcon, Theme, TwoOptionsModal, useConsultation, useTheme, useTranslation, validPhone, VideoCallScreen, VideoConsultation, VideoConsultationIcon };
package/dist/index.js CHANGED
@@ -3,28 +3,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.QuestionType = exports.ProcessingPrescriptionScreen = exports.PRESCRIPTION_STATUS = exports.PreparingSummaryScreen = exports.PlaneIcon = exports.PhoneInput = exports.NoConsultationFoundScreen = exports.Modal = exports.MatchScreen = exports.MatchingScreen = exports.LoadingDotsAnimation = exports.LoadingCircleAnimation = exports.JoinVideoCallScreen = exports.isIOS = exports.isAndroid = exports.Input = exports.InfoIcon = exports.HorizontalLoadingAnimation = exports.HKDeliveryAddressSchema = exports.Header = exports.getProfessionalLabel = exports.FormWrapper = exports.FindingAnimation = exports.FadeIn = exports.EndVideoCallModal = exports.EndingVideoScreen = exports.DoctorProfileModal = exports.DoctorProfileCard = exports.DoctorIcon = exports.DeliveryAddressScreen = exports.DateInput = exports.ConsultationProvider = exports.CONSULTATION_STATUS = exports.CloseIcon = exports.CloseConsultationModal = exports.Checkbox = exports.CASE_TYPE = exports.Card = exports.CancelModal = exports.CancelConsultationButton = exports.CallingAnimation = exports.Button = exports.BackgroundPattern = exports.BackArrowIcon = exports.authorization = exports.AttachmentPreviewModal = exports.AnswerScreen = exports.Animation = exports.AgoraWrapper = exports.AbiLogoIcon = void 0;
7
- exports.VideoConsultationIcon = exports.VideoConsultation = exports.VideoCallScreen = exports.validPhone = exports.useTranslation = exports.useTheme = exports.useConsultation = exports.TwoOptionsModal = exports.TextConsultationIcon = exports.Text = exports.Slide = exports.Select = exports.ScreenWrapper = exports.requiredString = exports.requiredCheckbox = exports.Reminder = exports.RatingScreen = void 0;
8
- var CallingAnimation_1 = require("./video-consultations/animations/CallingAnimation");
9
- Object.defineProperty(exports, "CallingAnimation", { enumerable: true, get: function () { return CallingAnimation_1.CallingAnimation; } });
10
- var AgoraWrapper_1 = __importDefault(require("./video-consultations/components/AgoraWrapper"));
11
- exports.AgoraWrapper = AgoraWrapper_1.default;
12
- var EndVideoCallModal_1 = require("./video-consultations/components/Modal/EndVideoCallModal");
13
- Object.defineProperty(exports, "EndVideoCallModal", { enumerable: true, get: function () { return EndVideoCallModal_1.EndVideoCallModal; } });
14
- var VideoConsultation_1 = require("./video-consultations/components/VideoConsultation");
15
- Object.defineProperty(exports, "VideoConsultation", { enumerable: true, get: function () { return VideoConsultation_1.VideoConsultation; } });
16
- var DeliveryAddressScreen_1 = require("./video-consultations/screens/DeliveryAddressScreen");
17
- Object.defineProperty(exports, "DeliveryAddressScreen", { enumerable: true, get: function () { return DeliveryAddressScreen_1.DeliveryAddressScreen; } });
18
- var EndingVideoScreen_1 = require("./video-consultations/screens/EndingVideoScreen");
19
- Object.defineProperty(exports, "EndingVideoScreen", { enumerable: true, get: function () { return EndingVideoScreen_1.EndingVideoScreen; } });
20
- var JoinVideoCallScreen_1 = require("./video-consultations/screens/JoinVideoCallScreen");
21
- Object.defineProperty(exports, "JoinVideoCallScreen", { enumerable: true, get: function () { return JoinVideoCallScreen_1.JoinVideoCallScreen; } });
22
- var ProcessingPrescriptionScreen_1 = require("./video-consultations/screens/ProcessingPrescriptionScreen");
23
- Object.defineProperty(exports, "ProcessingPrescriptionScreen", { enumerable: true, get: function () { return ProcessingPrescriptionScreen_1.ProcessingPrescriptionScreen; } });
24
- var VideoCallScreen_1 = __importDefault(require("./video-consultations/screens/VideoCallScreen"));
25
- exports.VideoCallScreen = VideoCallScreen_1.default;
26
- var react_i18next_1 = require("react-i18next");
27
- Object.defineProperty(exports, "useTranslation", { enumerable: true, get: function () { return react_i18next_1.useTranslation; } });
6
+ exports.PRESCRIPTION_STATUS = exports.PreparingSummaryScreen = exports.PlaneIcon = exports.PhoneInput = exports.NoConsultationFoundScreen = exports.Modal = exports.MatchScreen = exports.MatchingScreen = exports.LoadingDotsAnimation = exports.LoadingCircleAnimation = exports.JoinVideoCallScreen = exports.isIOS = exports.isAndroid = exports.Input = exports.InfoIcon = exports.HorizontalLoadingAnimation = exports.HomeScreen = exports.HKDeliveryAddressSchema = exports.Header = exports.getProfessionalLabel = exports.FormWrapper = exports.FormPrescription = exports.FindingAnimation = exports.FadeIn = exports.EndVideoCallModal = exports.EndingVideoScreen = exports.DoctorProfileModal = exports.DoctorProfileCard = exports.DoctorIcon = exports.DeliveryAddressScreen = exports.DateInput = exports.ConsultationProvider = exports.CONSULTATION_STATUS = exports.CloseIcon = exports.CloseConsultationModal = exports.Checkbox = exports.CASE_TYPE = exports.Card = exports.CancelModal = exports.CancelConsultationButton = exports.CallingAnimation = exports.Button = exports.BackgroundPattern = exports.BackArrowIcon = exports.authorization = exports.AttachmentPreviewModal = exports.AnswerScreen = exports.Animation = exports.AgoraWrapper = exports.AbiLogoIcon = void 0;
7
+ exports.VideoConsultationIcon = exports.VideoConsultation = exports.VideoCallScreen = exports.validPhone = exports.useTranslation = exports.useTheme = exports.useConsultation = exports.TwoOptionsModal = exports.TextConsultationIcon = exports.Text = exports.Slide = exports.Select = exports.ScreenWrapper = exports.requiredString = exports.requiredCheckbox = exports.Reminder = exports.RatingScreen = exports.QuestionType = exports.ProcessingPrescriptionScreen = void 0;
28
8
  var Animation_1 = require("./common/animations/Animation");
29
9
  Object.defineProperty(exports, "Animation", { enumerable: true, get: function () { return Animation_1.Animation; } });
30
10
  var FindingAnimation_1 = require("./common/animations/FindingAnimation");
@@ -89,6 +69,8 @@ var useConsultation_1 = require("./common/hooks/useConsultation");
89
69
  Object.defineProperty(exports, "useConsultation", { enumerable: true, get: function () { return useConsultation_1.useConsultation; } });
90
70
  var useTheme_1 = require("./common/hooks/useTheme");
91
71
  Object.defineProperty(exports, "useTheme", { enumerable: true, get: function () { return useTheme_1.useTheme; } });
72
+ var useTranslation_1 = require("./common/hooks/useTranslation");
73
+ Object.defineProperty(exports, "useTranslation", { enumerable: true, get: function () { return useTranslation_1.useTranslation; } });
92
74
  var AbiLogoIcon_1 = require("./common/icons/AbiLogoIcon");
93
75
  Object.defineProperty(exports, "AbiLogoIcon", { enumerable: true, get: function () { return AbiLogoIcon_1.AbiLogoIcon; } });
94
76
  var BackArrowIcon_1 = require("./common/icons/BackArrowIcon");
@@ -103,8 +85,6 @@ var PlaneIcon_1 = require("./common/icons/PlaneIcon");
103
85
  Object.defineProperty(exports, "PlaneIcon", { enumerable: true, get: function () { return PlaneIcon_1.PlaneIcon; } });
104
86
  var TextConsultationIcon_1 = require("./common/icons/TextConsultationIcon");
105
87
  Object.defineProperty(exports, "TextConsultationIcon", { enumerable: true, get: function () { return TextConsultationIcon_1.TextConsultationIcon; } });
106
- var VideoConsultationIcon_1 = require("./common/icons/VideoConsultationIcon");
107
- Object.defineProperty(exports, "VideoConsultationIcon", { enumerable: true, get: function () { return VideoConsultationIcon_1.VideoConsultationIcon; } });
108
88
  var AnswerScreen_1 = require("./common/screens/AnswerScreen");
109
89
  Object.defineProperty(exports, "AnswerScreen", { enumerable: true, get: function () { return AnswerScreen_1.AnswerScreen; } });
110
90
  var MatchingScreen_1 = require("./common/screens/MatchingScreen");
@@ -134,3 +114,27 @@ var zod_1 = require("./common/utils/zod");
134
114
  Object.defineProperty(exports, "requiredCheckbox", { enumerable: true, get: function () { return zod_1.requiredCheckbox; } });
135
115
  Object.defineProperty(exports, "requiredString", { enumerable: true, get: function () { return zod_1.requiredString; } });
136
116
  Object.defineProperty(exports, "validPhone", { enumerable: true, get: function () { return zod_1.validPhone; } });
117
+ var FormPrescription_1 = require("./form-prescriptions/components/FormPrescription");
118
+ Object.defineProperty(exports, "FormPrescription", { enumerable: true, get: function () { return FormPrescription_1.FormPrescription; } });
119
+ var HomeScreen_1 = require("./form-prescriptions/screens/HomeScreen");
120
+ Object.defineProperty(exports, "HomeScreen", { enumerable: true, get: function () { return HomeScreen_1.HomeScreen; } });
121
+ var CallingAnimation_1 = require("./video-consultations/animations/CallingAnimation");
122
+ Object.defineProperty(exports, "CallingAnimation", { enumerable: true, get: function () { return CallingAnimation_1.CallingAnimation; } });
123
+ var AgoraWrapper_1 = __importDefault(require("./video-consultations/components/AgoraWrapper"));
124
+ exports.AgoraWrapper = AgoraWrapper_1.default;
125
+ var EndVideoCallModal_1 = require("./video-consultations/components/Modal/EndVideoCallModal");
126
+ Object.defineProperty(exports, "EndVideoCallModal", { enumerable: true, get: function () { return EndVideoCallModal_1.EndVideoCallModal; } });
127
+ var VideoConsultation_1 = require("./video-consultations/components/VideoConsultation");
128
+ Object.defineProperty(exports, "VideoConsultation", { enumerable: true, get: function () { return VideoConsultation_1.VideoConsultation; } });
129
+ var VideoConsultationIcon_1 = require("./video-consultations/icons/VideoConsultationIcon");
130
+ Object.defineProperty(exports, "VideoConsultationIcon", { enumerable: true, get: function () { return VideoConsultationIcon_1.VideoConsultationIcon; } });
131
+ var DeliveryAddressScreen_1 = require("./video-consultations/screens/DeliveryAddressScreen");
132
+ Object.defineProperty(exports, "DeliveryAddressScreen", { enumerable: true, get: function () { return DeliveryAddressScreen_1.DeliveryAddressScreen; } });
133
+ var EndingVideoScreen_1 = require("./video-consultations/screens/EndingVideoScreen");
134
+ Object.defineProperty(exports, "EndingVideoScreen", { enumerable: true, get: function () { return EndingVideoScreen_1.EndingVideoScreen; } });
135
+ var JoinVideoCallScreen_1 = require("./video-consultations/screens/JoinVideoCallScreen");
136
+ Object.defineProperty(exports, "JoinVideoCallScreen", { enumerable: true, get: function () { return JoinVideoCallScreen_1.JoinVideoCallScreen; } });
137
+ var ProcessingPrescriptionScreen_1 = require("./video-consultations/screens/ProcessingPrescriptionScreen");
138
+ Object.defineProperty(exports, "ProcessingPrescriptionScreen", { enumerable: true, get: function () { return ProcessingPrescriptionScreen_1.ProcessingPrescriptionScreen; } });
139
+ var VideoCallScreen_1 = __importDefault(require("./video-consultations/screens/VideoCallScreen"));
140
+ exports.VideoCallScreen = VideoCallScreen_1.default;
@@ -4,14 +4,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.CallingAnimation = void 0;
7
- var index_1 = require("../../../common/index");
7
+ var Animation_1 = __importDefault(require("../../../common/animations/Animation"));
8
+ var useTheme_1 = require("../../../common/hooks/useTheme");
8
9
  var react_1 = __importDefault(require("react"));
9
10
  var react_native_1 = require("react-native");
10
11
  var xml_1 = require("./xml");
11
12
  var windowWidth = react_native_1.Dimensions.get('window').width;
12
13
  var width = windowWidth * 0.7;
13
14
  var CallingAnimation = function () {
14
- var palette = (0, index_1.useTheme)().palette;
15
- return <index_1.Animation source={(0, xml_1.getXml)(palette)} width={width} height={width}/>;
15
+ var palette = (0, useTheme_1.useTheme)().palette;
16
+ return <Animation_1.default source={(0, xml_1.getXml)(palette)} width={width} height={width}/>;
16
17
  };
17
18
  exports.CallingAnimation = CallingAnimation;
@@ -1 +1,2 @@
1
- export declare const getXml: (palette: any) => string;
1
+ import { Palette } from '../../../common/types/theme';
2
+ export declare const getXml: (palette: Palette) => string;