@ovok/native 1.16.1-rc.4 → 1.16.1-rc.6

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 (506) hide show
  1. package/lib/commonjs/modules/auth/google-return-page/index.js +24 -0
  2. package/lib/commonjs/modules/auth/google-return-page/index.js.map +1 -0
  3. package/lib/commonjs/modules/auth/hooks/use-social-sign-in.web.js +15 -0
  4. package/lib/commonjs/modules/auth/hooks/use-social-sign-in.web.js.map +1 -0
  5. package/lib/commonjs/modules/auth/index.js +21 -10
  6. package/lib/commonjs/modules/auth/index.js.map +1 -1
  7. package/lib/commonjs/modules/auth/session/logout-session.js +1 -1
  8. package/lib/commonjs/modules/auth/sign-in/components/social-logins/apple-login-button.web.js +73 -0
  9. package/lib/commonjs/modules/auth/sign-in/components/social-logins/apple-login-button.web.js.map +1 -0
  10. package/lib/commonjs/modules/auth/sign-in/components/social-logins/apple-login.js +1 -1
  11. package/lib/commonjs/modules/auth/sign-in/components/social-logins/google-login-button.web.js +73 -0
  12. package/lib/commonjs/modules/auth/sign-in/components/social-logins/google-login-button.web.js.map +1 -0
  13. package/lib/commonjs/modules/auth/sign-in/components/social-logins/google-login.js +1 -1
  14. package/lib/commonjs/modules/auth/sign-in/index.js +24 -0
  15. package/lib/commonjs/modules/auth/sign-in/index.js.map +1 -1
  16. package/lib/commonjs/modules/auth/sign-in/utils/apple-web-sign-in.js +90 -0
  17. package/lib/commonjs/modules/auth/sign-in/utils/apple-web-sign-in.js.map +1 -0
  18. package/lib/commonjs/modules/auth/sign-in/utils/google-redirect-sign-in.js +89 -0
  19. package/lib/commonjs/modules/auth/sign-in/utils/google-redirect-sign-in.js.map +1 -0
  20. package/lib/commonjs/modules/auth/sign-in/utils/jwt-claims.js +21 -0
  21. package/lib/commonjs/modules/auth/sign-in/utils/jwt-claims.js.map +1 -0
  22. package/lib/commonjs/modules/auth/utils/sign-out-google.web.js +10 -0
  23. package/lib/commonjs/modules/auth/utils/sign-out-google.web.js.map +1 -0
  24. package/lib/commonjs/modules/bt-management/services/custom/compile-custom-lepu.js +3 -2
  25. package/lib/commonjs/modules/bt-management/services/custom/compile-custom-lepu.js.map +1 -1
  26. package/lib/commonjs/modules/bt-management/services/devices/blood-glucose/blood-glucose.device.js +64 -44
  27. package/lib/commonjs/modules/bt-management/services/devices/blood-glucose/blood-glucose.device.js.map +1 -1
  28. package/lib/commonjs/modules/bt-management/services/devices/blood-glucose/telebgm.protocol.js +98 -0
  29. package/lib/commonjs/modules/bt-management/services/devices/blood-glucose/telebgm.protocol.js.map +1 -0
  30. package/lib/commonjs/modules/bt-management/services/devices/blood-glucose/telebgm.sequencer.js +127 -0
  31. package/lib/commonjs/modules/bt-management/services/devices/blood-glucose/telebgm.sequencer.js.map +1 -0
  32. package/lib/commonjs/modules/bt-management/services/devices/bp2/bp2.device.js +12 -7
  33. package/lib/commonjs/modules/bt-management/services/devices/bp2/bp2.device.js.map +1 -1
  34. package/lib/commonjs/modules/bt-management/services/devices/bp2/bp2.history-sequencer.js +16 -1
  35. package/lib/commonjs/modules/bt-management/services/devices/bp2/bp2.history-sequencer.js.map +1 -1
  36. package/lib/commonjs/modules/bt-management/services/devices/bt-data-processor.js +10 -2
  37. package/lib/commonjs/modules/bt-management/services/devices/bt-data-processor.js.map +1 -1
  38. package/lib/commonjs/modules/bt-management/services/devices/cofoe/cofoe.records.js +2 -7
  39. package/lib/commonjs/modules/bt-management/services/devices/cofoe/cofoe.records.js.map +1 -1
  40. package/lib/commonjs/modules/bt-management/services/devices/custom/custom.device.js +2 -2
  41. package/lib/commonjs/modules/bt-management/services/devices/custom/custom.device.js.map +1 -1
  42. package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.transports.js.map +1 -1
  43. package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.ecg-files.js +74 -17
  44. package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.ecg-files.js.map +1 -1
  45. package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.ecg-recorders.js +4 -4
  46. package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.ecg-recorders.js.map +1 -1
  47. package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.wbp02.protocol.js +3 -7
  48. package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.wbp02.protocol.js.map +1 -1
  49. package/lib/commonjs/modules/bt-management/utils/calculate-crc-16-modbus.js +23 -0
  50. package/lib/commonjs/modules/bt-management/utils/calculate-crc-16-modbus.js.map +1 -0
  51. package/lib/commonjs/modules/bt-management/utils/tenths-mmol-to-mg-per-dl.js +13 -0
  52. package/lib/commonjs/modules/bt-management/utils/tenths-mmol-to-mg-per-dl.js.map +1 -0
  53. package/lib/commonjs/modules/data-sync/services/managers/data-processor.js +7 -7
  54. package/lib/commonjs/modules/data-sync/services/managers/data-processor.js.map +1 -1
  55. package/lib/commonjs/modules/data-sync/utils/convert-generic-health-data.js +8 -3
  56. package/lib/commonjs/modules/data-sync/utils/convert-generic-health-data.js.map +1 -1
  57. package/lib/commonjs/modules/data-sync/utils/default-health-coding.js +47 -0
  58. package/lib/commonjs/modules/data-sync/utils/default-health-coding.js.map +1 -0
  59. package/lib/commonjs/modules/data-sync/utils/health-units.js +6 -1
  60. package/lib/commonjs/modules/data-sync/utils/health-units.js.map +1 -1
  61. package/lib/commonjs/modules/next/bluetooth/ble-plx/ble-peripheral.js +35 -0
  62. package/lib/commonjs/modules/next/bluetooth/ble-plx/ble-peripheral.js.map +1 -0
  63. package/lib/commonjs/modules/next/bluetooth/ble-plx/ble-scanner.js +3 -30
  64. package/lib/commonjs/modules/next/bluetooth/ble-plx/ble-scanner.js.map +1 -1
  65. package/lib/commonjs/modules/next/bluetooth/ble-plx/legacy-driver.js +2 -2
  66. package/lib/commonjs/modules/next/bluetooth/ble-plx/legacy-driver.js.map +1 -1
  67. package/lib/commonjs/modules/next/bluetooth/react-native/ovok-sink.js.map +1 -1
  68. package/lib/commonjs/modules/next/bluetooth/web/create-web-bluetooth-runtime.js +28 -0
  69. package/lib/commonjs/modules/next/bluetooth/web/create-web-bluetooth-runtime.js.map +1 -0
  70. package/lib/commonjs/modules/next/bluetooth/web/index.js +208 -0
  71. package/lib/commonjs/modules/next/bluetooth/web/index.js.map +1 -0
  72. package/lib/commonjs/modules/next/bluetooth/web/web-ble-device.js +143 -0
  73. package/lib/commonjs/modules/next/bluetooth/web/web-ble-device.js.map +1 -0
  74. package/lib/commonjs/modules/next/bluetooth/web/web-ble-shapes.js +43 -0
  75. package/lib/commonjs/modules/next/bluetooth/web/web-ble-shapes.js.map +1 -0
  76. package/lib/commonjs/modules/next/bluetooth/web/web-bluetooth-permissions.js +21 -0
  77. package/lib/commonjs/modules/next/bluetooth/web/web-bluetooth-permissions.js.map +1 -0
  78. package/lib/commonjs/modules/next/bluetooth/web/web-bluetooth-scanner.js +133 -0
  79. package/lib/commonjs/modules/next/bluetooth/web/web-bluetooth-scanner.js.map +1 -0
  80. package/lib/commonjs/modules/next/bluetooth/web/web-bluetooth-services.js +28 -0
  81. package/lib/commonjs/modules/next/bluetooth/web/web-bluetooth-services.js.map +1 -0
  82. package/lib/commonjs/modules/next/bluetooth/web/web-bluetooth-values.js +37 -0
  83. package/lib/commonjs/modules/next/bluetooth/web/web-bluetooth-values.js.map +1 -0
  84. package/lib/commonjs/modules/next/bluetooth/web/web-bluetooth.types.js +2 -0
  85. package/lib/commonjs/modules/next/bluetooth/web/web-bluetooth.types.js.map +1 -0
  86. package/lib/commonjs/modules/next/bluetooth/web/web-gatt.js +83 -0
  87. package/lib/commonjs/modules/next/bluetooth/web/web-gatt.js.map +1 -0
  88. package/lib/commonjs/modules/next/breathing-exercise/index.js +17 -0
  89. package/lib/commonjs/modules/next/breathing-exercise/index.js.map +1 -0
  90. package/lib/commonjs/modules/next/cms/index.js +17 -0
  91. package/lib/commonjs/modules/next/cms/index.js.map +1 -0
  92. package/lib/commonjs/modules/next/content/index.js +17 -0
  93. package/lib/commonjs/modules/next/content/index.js.map +1 -0
  94. package/lib/commonjs/modules/next/diary/index.js +17 -0
  95. package/lib/commonjs/modules/next/diary/index.js.map +1 -0
  96. package/lib/commonjs/modules/next/image/index.js +17 -0
  97. package/lib/commonjs/modules/next/image/index.js.map +1 -0
  98. package/lib/commonjs/modules/next/journal/index.js +17 -0
  99. package/lib/commonjs/modules/next/journal/index.js.map +1 -0
  100. package/lib/commonjs/modules/next/language-switcher/index.js +17 -0
  101. package/lib/commonjs/modules/next/language-switcher/index.js.map +1 -0
  102. package/lib/commonjs/modules/next/measurement/index.js +17 -0
  103. package/lib/commonjs/modules/next/measurement/index.js.map +1 -0
  104. package/lib/commonjs/modules/next/observation-detail/index.js +17 -0
  105. package/lib/commonjs/modules/next/observation-detail/index.js.map +1 -0
  106. package/lib/commonjs/modules/next/patient/index.js +17 -0
  107. package/lib/commonjs/modules/next/patient/index.js.map +1 -0
  108. package/lib/commonjs/modules/next/pdf/index.js +17 -0
  109. package/lib/commonjs/modules/next/pdf/index.js.map +1 -0
  110. package/lib/commonjs/modules/next/picker-sheet/index.js +17 -0
  111. package/lib/commonjs/modules/next/picker-sheet/index.js.map +1 -0
  112. package/lib/commonjs/modules/next/progress-bar/index.js +17 -0
  113. package/lib/commonjs/modules/next/progress-bar/index.js.map +1 -0
  114. package/lib/commonjs/modules/next/progress-ring/index.js +17 -0
  115. package/lib/commonjs/modules/next/progress-ring/index.js.map +1 -0
  116. package/lib/commonjs/modules/next/setting/index.js +17 -0
  117. package/lib/commonjs/modules/next/setting/index.js.map +1 -0
  118. package/lib/commonjs/modules/next/tab/index.js +17 -0
  119. package/lib/commonjs/modules/next/tab/index.js.map +1 -0
  120. package/lib/commonjs/modules/next/theme/index.js +17 -0
  121. package/lib/commonjs/modules/next/theme/index.js.map +1 -0
  122. package/lib/commonjs/modules/next/tile/index.js +17 -0
  123. package/lib/commonjs/modules/next/tile/index.js.map +1 -0
  124. package/lib/commonjs/modules/next/ui/index.js +17 -0
  125. package/lib/commonjs/modules/next/ui/index.js.map +1 -0
  126. package/lib/module/modules/auth/google-return-page/index.js +21 -0
  127. package/lib/module/modules/auth/google-return-page/index.js.map +1 -0
  128. package/lib/module/modules/auth/hooks/use-social-sign-in.web.js +10 -0
  129. package/lib/module/modules/auth/hooks/use-social-sign-in.web.js.map +1 -0
  130. package/lib/module/modules/auth/index.js +2 -1
  131. package/lib/module/modules/auth/index.js.map +1 -1
  132. package/lib/module/modules/auth/session/logout-session.js +1 -1
  133. package/lib/module/modules/auth/session/logout-session.js.map +1 -1
  134. package/lib/module/modules/auth/sign-in/components/social-logins/apple-login-button.web.js +67 -0
  135. package/lib/module/modules/auth/sign-in/components/social-logins/apple-login-button.web.js.map +1 -0
  136. package/lib/module/modules/auth/sign-in/components/social-logins/apple-login.js +1 -1
  137. package/lib/module/modules/auth/sign-in/components/social-logins/apple-login.js.map +1 -1
  138. package/lib/module/modules/auth/sign-in/components/social-logins/google-login-button.web.js +68 -0
  139. package/lib/module/modules/auth/sign-in/components/social-logins/google-login-button.web.js.map +1 -0
  140. package/lib/module/modules/auth/sign-in/components/social-logins/google-login.js +1 -1
  141. package/lib/module/modules/auth/sign-in/components/social-logins/google-login.js.map +1 -1
  142. package/lib/module/modules/auth/sign-in/index.js +2 -0
  143. package/lib/module/modules/auth/sign-in/index.js.map +1 -1
  144. package/lib/module/modules/auth/sign-in/utils/apple-web-sign-in.js +84 -0
  145. package/lib/module/modules/auth/sign-in/utils/apple-web-sign-in.js.map +1 -0
  146. package/lib/module/modules/auth/sign-in/utils/google-redirect-sign-in.js +84 -0
  147. package/lib/module/modules/auth/sign-in/utils/google-redirect-sign-in.js.map +1 -0
  148. package/lib/module/modules/auth/sign-in/utils/jwt-claims.js +17 -0
  149. package/lib/module/modules/auth/sign-in/utils/jwt-claims.js.map +1 -0
  150. package/lib/module/modules/auth/utils/sign-out-google.web.js +5 -0
  151. package/lib/module/modules/auth/utils/sign-out-google.web.js.map +1 -0
  152. package/lib/module/modules/bt-management/services/custom/compile-custom-lepu.js +3 -2
  153. package/lib/module/modules/bt-management/services/custom/compile-custom-lepu.js.map +1 -1
  154. package/lib/module/modules/bt-management/services/devices/blood-glucose/blood-glucose.device.js +64 -44
  155. package/lib/module/modules/bt-management/services/devices/blood-glucose/blood-glucose.device.js.map +1 -1
  156. package/lib/module/modules/bt-management/services/devices/blood-glucose/telebgm.protocol.js +91 -0
  157. package/lib/module/modules/bt-management/services/devices/blood-glucose/telebgm.protocol.js.map +1 -0
  158. package/lib/module/modules/bt-management/services/devices/blood-glucose/telebgm.sequencer.js +123 -0
  159. package/lib/module/modules/bt-management/services/devices/blood-glucose/telebgm.sequencer.js.map +1 -0
  160. package/lib/module/modules/bt-management/services/devices/bp2/bp2.device.js +12 -7
  161. package/lib/module/modules/bt-management/services/devices/bp2/bp2.device.js.map +1 -1
  162. package/lib/module/modules/bt-management/services/devices/bp2/bp2.history-sequencer.js +16 -1
  163. package/lib/module/modules/bt-management/services/devices/bp2/bp2.history-sequencer.js.map +1 -1
  164. package/lib/module/modules/bt-management/services/devices/bt-data-processor.js +10 -2
  165. package/lib/module/modules/bt-management/services/devices/bt-data-processor.js.map +1 -1
  166. package/lib/module/modules/bt-management/services/devices/cofoe/cofoe.records.js +2 -7
  167. package/lib/module/modules/bt-management/services/devices/cofoe/cofoe.records.js.map +1 -1
  168. package/lib/module/modules/bt-management/services/devices/custom/custom.device.js +2 -2
  169. package/lib/module/modules/bt-management/services/devices/custom/custom.device.js.map +1 -1
  170. package/lib/module/modules/bt-management/services/devices/lepu/lepu.transports.js.map +1 -1
  171. package/lib/module/modules/bt-management/services/devices/viatom/viatom.ecg-files.js +74 -17
  172. package/lib/module/modules/bt-management/services/devices/viatom/viatom.ecg-files.js.map +1 -1
  173. package/lib/module/modules/bt-management/services/devices/viatom/viatom.ecg-recorders.js +4 -4
  174. package/lib/module/modules/bt-management/services/devices/viatom/viatom.ecg-recorders.js.map +1 -1
  175. package/lib/module/modules/bt-management/services/devices/viatom/viatom.wbp02.protocol.js +3 -7
  176. package/lib/module/modules/bt-management/services/devices/viatom/viatom.wbp02.protocol.js.map +1 -1
  177. package/lib/module/modules/bt-management/utils/calculate-crc-16-modbus.js +18 -0
  178. package/lib/module/modules/bt-management/utils/calculate-crc-16-modbus.js.map +1 -0
  179. package/lib/module/modules/bt-management/utils/tenths-mmol-to-mg-per-dl.js +8 -0
  180. package/lib/module/modules/bt-management/utils/tenths-mmol-to-mg-per-dl.js.map +1 -0
  181. package/lib/module/modules/data-sync/services/managers/data-processor.js +7 -7
  182. package/lib/module/modules/data-sync/services/managers/data-processor.js.map +1 -1
  183. package/lib/module/modules/data-sync/utils/convert-generic-health-data.js +8 -3
  184. package/lib/module/modules/data-sync/utils/convert-generic-health-data.js.map +1 -1
  185. package/lib/module/modules/data-sync/utils/default-health-coding.js +44 -0
  186. package/lib/module/modules/data-sync/utils/default-health-coding.js.map +1 -0
  187. package/lib/module/modules/data-sync/utils/health-units.js +6 -1
  188. package/lib/module/modules/data-sync/utils/health-units.js.map +1 -1
  189. package/lib/module/modules/next/bluetooth/ble-plx/ble-peripheral.js +30 -0
  190. package/lib/module/modules/next/bluetooth/ble-plx/ble-peripheral.js.map +1 -0
  191. package/lib/module/modules/next/bluetooth/ble-plx/ble-scanner.js +2 -27
  192. package/lib/module/modules/next/bluetooth/ble-plx/ble-scanner.js.map +1 -1
  193. package/lib/module/modules/next/bluetooth/ble-plx/legacy-driver.js +1 -1
  194. package/lib/module/modules/next/bluetooth/ble-plx/legacy-driver.js.map +1 -1
  195. package/lib/module/modules/next/bluetooth/react-native/ovok-sink.js.map +1 -1
  196. package/lib/module/modules/next/bluetooth/web/create-web-bluetooth-runtime.js +25 -0
  197. package/lib/module/modules/next/bluetooth/web/create-web-bluetooth-runtime.js.map +1 -0
  198. package/lib/module/modules/next/bluetooth/web/index.js +28 -0
  199. package/lib/module/modules/next/bluetooth/web/index.js.map +1 -0
  200. package/lib/module/modules/next/bluetooth/web/web-ble-device.js +140 -0
  201. package/lib/module/modules/next/bluetooth/web/web-ble-device.js.map +1 -0
  202. package/lib/module/modules/next/bluetooth/web/web-ble-shapes.js +39 -0
  203. package/lib/module/modules/next/bluetooth/web/web-ble-shapes.js.map +1 -0
  204. package/lib/module/modules/next/bluetooth/web/web-bluetooth-permissions.js +18 -0
  205. package/lib/module/modules/next/bluetooth/web/web-bluetooth-permissions.js.map +1 -0
  206. package/lib/module/modules/next/bluetooth/web/web-bluetooth-scanner.js +128 -0
  207. package/lib/module/modules/next/bluetooth/web/web-bluetooth-scanner.js.map +1 -0
  208. package/lib/module/modules/next/bluetooth/web/web-bluetooth-services.js +25 -0
  209. package/lib/module/modules/next/bluetooth/web/web-bluetooth-services.js.map +1 -0
  210. package/lib/module/modules/next/bluetooth/web/web-bluetooth-values.js +29 -0
  211. package/lib/module/modules/next/bluetooth/web/web-bluetooth-values.js.map +1 -0
  212. package/lib/module/modules/next/bluetooth/web/web-bluetooth.types.js +2 -0
  213. package/lib/module/modules/next/bluetooth/web/web-bluetooth.types.js.map +1 -0
  214. package/lib/module/modules/next/bluetooth/web/web-gatt.js +79 -0
  215. package/lib/module/modules/next/bluetooth/web/web-gatt.js.map +1 -0
  216. package/lib/module/modules/next/breathing-exercise/index.js +5 -0
  217. package/lib/module/modules/next/breathing-exercise/index.js.map +1 -0
  218. package/lib/module/modules/next/cms/index.js +5 -0
  219. package/lib/module/modules/next/cms/index.js.map +1 -0
  220. package/lib/module/modules/next/content/index.js +5 -0
  221. package/lib/module/modules/next/content/index.js.map +1 -0
  222. package/lib/module/modules/next/diary/index.js +5 -0
  223. package/lib/module/modules/next/diary/index.js.map +1 -0
  224. package/lib/module/modules/next/image/index.js +5 -0
  225. package/lib/module/modules/next/image/index.js.map +1 -0
  226. package/lib/module/modules/next/journal/index.js +5 -0
  227. package/lib/module/modules/next/journal/index.js.map +1 -0
  228. package/lib/module/modules/next/language-switcher/index.js +5 -0
  229. package/lib/module/modules/next/language-switcher/index.js.map +1 -0
  230. package/lib/module/modules/next/measurement/index.js +5 -0
  231. package/lib/module/modules/next/measurement/index.js.map +1 -0
  232. package/lib/module/modules/next/observation-detail/index.js +5 -0
  233. package/lib/module/modules/next/observation-detail/index.js.map +1 -0
  234. package/lib/module/modules/next/patient/index.js +5 -0
  235. package/lib/module/modules/next/patient/index.js.map +1 -0
  236. package/lib/module/modules/next/pdf/index.js +5 -0
  237. package/lib/module/modules/next/pdf/index.js.map +1 -0
  238. package/lib/module/modules/next/picker-sheet/index.js +5 -0
  239. package/lib/module/modules/next/picker-sheet/index.js.map +1 -0
  240. package/lib/module/modules/next/progress-bar/index.js +5 -0
  241. package/lib/module/modules/next/progress-bar/index.js.map +1 -0
  242. package/lib/module/modules/next/progress-ring/index.js +5 -0
  243. package/lib/module/modules/next/progress-ring/index.js.map +1 -0
  244. package/lib/module/modules/next/setting/index.js +5 -0
  245. package/lib/module/modules/next/setting/index.js.map +1 -0
  246. package/lib/module/modules/next/tab/index.js +5 -0
  247. package/lib/module/modules/next/tab/index.js.map +1 -0
  248. package/lib/module/modules/next/theme/index.js +5 -0
  249. package/lib/module/modules/next/theme/index.js.map +1 -0
  250. package/lib/module/modules/next/tile/index.js +5 -0
  251. package/lib/module/modules/next/tile/index.js.map +1 -0
  252. package/lib/module/modules/next/ui/index.js +5 -0
  253. package/lib/module/modules/next/ui/index.js.map +1 -0
  254. package/lib/typescript/commonjs/src/modules/auth/google-return-page/index.d.ts +8 -0
  255. package/lib/typescript/commonjs/src/modules/auth/google-return-page/index.d.ts.map +1 -0
  256. package/lib/typescript/commonjs/src/modules/auth/hooks/use-social-sign-in.web.d.ts +7 -0
  257. package/lib/typescript/commonjs/src/modules/auth/hooks/use-social-sign-in.web.d.ts.map +1 -0
  258. package/lib/typescript/commonjs/src/modules/auth/index.d.ts +1 -0
  259. package/lib/typescript/commonjs/src/modules/auth/index.d.ts.map +1 -1
  260. package/lib/typescript/commonjs/src/modules/auth/register/components/register.d.ts +2 -2
  261. package/lib/typescript/commonjs/src/modules/auth/sign-in/components/sign-in.d.ts +2 -2
  262. package/lib/typescript/commonjs/src/modules/auth/sign-in/components/social-logins/apple-login-button.web.d.ts +5 -0
  263. package/lib/typescript/commonjs/src/modules/auth/sign-in/components/social-logins/apple-login-button.web.d.ts.map +1 -0
  264. package/lib/typescript/commonjs/src/modules/auth/sign-in/components/social-logins/apple-login.d.ts +1 -1
  265. package/lib/typescript/commonjs/src/modules/auth/sign-in/components/social-logins/google-login-button.web.d.ts +5 -0
  266. package/lib/typescript/commonjs/src/modules/auth/sign-in/components/social-logins/google-login-button.web.d.ts.map +1 -0
  267. package/lib/typescript/commonjs/src/modules/auth/sign-in/components/social-logins/google-login.d.ts +1 -1
  268. package/lib/typescript/commonjs/src/modules/auth/sign-in/components/social-logins/social-logins.d.ts +2 -2
  269. package/lib/typescript/commonjs/src/modules/auth/sign-in/index.d.ts +2 -0
  270. package/lib/typescript/commonjs/src/modules/auth/sign-in/index.d.ts.map +1 -1
  271. package/lib/typescript/commonjs/src/modules/auth/sign-in/types/apple-login-props.d.ts +13 -0
  272. package/lib/typescript/commonjs/src/modules/auth/sign-in/types/apple-login-props.d.ts.map +1 -1
  273. package/lib/typescript/commonjs/src/modules/auth/sign-in/types/google-login-props.d.ts +13 -0
  274. package/lib/typescript/commonjs/src/modules/auth/sign-in/types/google-login-props.d.ts.map +1 -1
  275. package/lib/typescript/commonjs/src/modules/auth/sign-in/utils/apple-web-sign-in.d.ts +17 -0
  276. package/lib/typescript/commonjs/src/modules/auth/sign-in/utils/apple-web-sign-in.d.ts.map +1 -0
  277. package/lib/typescript/commonjs/src/modules/auth/sign-in/utils/google-redirect-sign-in.d.ts +14 -0
  278. package/lib/typescript/commonjs/src/modules/auth/sign-in/utils/google-redirect-sign-in.d.ts.map +1 -0
  279. package/lib/typescript/commonjs/src/modules/auth/sign-in/utils/jwt-claims.d.ts +9 -0
  280. package/lib/typescript/commonjs/src/modules/auth/sign-in/utils/jwt-claims.d.ts.map +1 -0
  281. package/lib/typescript/commonjs/src/modules/auth/utils/sign-out-google.web.d.ts +3 -0
  282. package/lib/typescript/commonjs/src/modules/auth/utils/sign-out-google.web.d.ts.map +1 -0
  283. package/lib/typescript/commonjs/src/modules/bt-management/services/custom/compile-custom-lepu.d.ts.map +1 -1
  284. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/blood-glucose/blood-glucose.device.d.ts.map +1 -1
  285. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/blood-glucose/telebgm.protocol.d.ts +34 -0
  286. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/blood-glucose/telebgm.protocol.d.ts.map +1 -0
  287. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/blood-glucose/telebgm.sequencer.d.ts +32 -0
  288. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/blood-glucose/telebgm.sequencer.d.ts.map +1 -0
  289. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bp2/bp2.device.d.ts.map +1 -1
  290. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bp2/bp2.history-sequencer.d.ts +7 -1
  291. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bp2/bp2.history-sequencer.d.ts.map +1 -1
  292. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bt-data-processor.d.ts +2 -0
  293. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bt-data-processor.d.ts.map +1 -1
  294. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/cofoe/cofoe.records.d.ts.map +1 -1
  295. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/custom/custom.device.d.ts.map +1 -1
  296. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.transports.d.ts +2 -1
  297. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.transports.d.ts.map +1 -1
  298. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.ecg-files.d.ts +9 -3
  299. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.ecg-files.d.ts.map +1 -1
  300. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.wbp02.protocol.d.ts.map +1 -1
  301. package/lib/typescript/commonjs/src/modules/bt-management/types/custom-lepu-spec.d.ts +5 -2
  302. package/lib/typescript/commonjs/src/modules/bt-management/types/custom-lepu-spec.d.ts.map +1 -1
  303. package/lib/typescript/commonjs/src/modules/bt-management/utils/calculate-crc-16-modbus.d.ts +3 -0
  304. package/lib/typescript/commonjs/src/modules/bt-management/utils/calculate-crc-16-modbus.d.ts.map +1 -0
  305. package/lib/typescript/commonjs/src/modules/bt-management/utils/tenths-mmol-to-mg-per-dl.d.ts +3 -0
  306. package/lib/typescript/commonjs/src/modules/bt-management/utils/tenths-mmol-to-mg-per-dl.d.ts.map +1 -0
  307. package/lib/typescript/commonjs/src/modules/data-sync/services/managers/data-processor.d.ts.map +1 -1
  308. package/lib/typescript/commonjs/src/modules/data-sync/types/health-sync-props.d.ts +1 -1
  309. package/lib/typescript/commonjs/src/modules/data-sync/types/health-sync-props.d.ts.map +1 -1
  310. package/lib/typescript/commonjs/src/modules/data-sync/utils/convert-generic-health-data.d.ts.map +1 -1
  311. package/lib/typescript/commonjs/src/modules/data-sync/utils/default-health-coding.d.ts +10 -0
  312. package/lib/typescript/commonjs/src/modules/data-sync/utils/default-health-coding.d.ts.map +1 -0
  313. package/lib/typescript/commonjs/src/modules/data-sync/utils/health-units.d.ts.map +1 -1
  314. package/lib/typescript/commonjs/src/modules/next/bluetooth/ble-plx/ble-link.d.ts +1 -1
  315. package/lib/typescript/commonjs/src/modules/next/bluetooth/ble-plx/ble-link.d.ts.map +1 -1
  316. package/lib/typescript/commonjs/src/modules/next/bluetooth/ble-plx/ble-peripheral.d.ts +8 -0
  317. package/lib/typescript/commonjs/src/modules/next/bluetooth/ble-plx/ble-peripheral.d.ts.map +1 -0
  318. package/lib/typescript/commonjs/src/modules/next/bluetooth/ble-plx/ble-scanner.d.ts +3 -7
  319. package/lib/typescript/commonjs/src/modules/next/bluetooth/ble-plx/ble-scanner.d.ts.map +1 -1
  320. package/lib/typescript/commonjs/src/modules/next/bluetooth/react-native/ovok-sink.d.ts +2 -2
  321. package/lib/typescript/commonjs/src/modules/next/bluetooth/react-native/ovok-sink.d.ts.map +1 -1
  322. package/lib/typescript/commonjs/src/modules/next/bluetooth/web/create-web-bluetooth-runtime.d.ts +23 -0
  323. package/lib/typescript/commonjs/src/modules/next/bluetooth/web/create-web-bluetooth-runtime.d.ts.map +1 -0
  324. package/lib/typescript/commonjs/src/modules/next/bluetooth/web/index.d.ts +41 -0
  325. package/lib/typescript/commonjs/src/modules/next/bluetooth/web/index.d.ts.map +1 -0
  326. package/lib/typescript/commonjs/src/modules/next/bluetooth/web/web-ble-device.d.ts +53 -0
  327. package/lib/typescript/commonjs/src/modules/next/bluetooth/web/web-ble-device.d.ts.map +1 -0
  328. package/lib/typescript/commonjs/src/modules/next/bluetooth/web/web-ble-shapes.d.ts +27 -0
  329. package/lib/typescript/commonjs/src/modules/next/bluetooth/web/web-ble-shapes.d.ts.map +1 -0
  330. package/lib/typescript/commonjs/src/modules/next/bluetooth/web/web-bluetooth-permissions.d.ts +8 -0
  331. package/lib/typescript/commonjs/src/modules/next/bluetooth/web/web-bluetooth-permissions.d.ts.map +1 -0
  332. package/lib/typescript/commonjs/src/modules/next/bluetooth/web/web-bluetooth-scanner.d.ts +29 -0
  333. package/lib/typescript/commonjs/src/modules/next/bluetooth/web/web-bluetooth-scanner.d.ts.map +1 -0
  334. package/lib/typescript/commonjs/src/modules/next/bluetooth/web/web-bluetooth-services.d.ts +10 -0
  335. package/lib/typescript/commonjs/src/modules/next/bluetooth/web/web-bluetooth-services.d.ts.map +1 -0
  336. package/lib/typescript/commonjs/src/modules/next/bluetooth/web/web-bluetooth-values.d.ts +9 -0
  337. package/lib/typescript/commonjs/src/modules/next/bluetooth/web/web-bluetooth-values.d.ts.map +1 -0
  338. package/lib/typescript/commonjs/src/modules/next/bluetooth/web/web-bluetooth.types.d.ts +56 -0
  339. package/lib/typescript/commonjs/src/modules/next/bluetooth/web/web-bluetooth.types.d.ts.map +1 -0
  340. package/lib/typescript/commonjs/src/modules/next/bluetooth/web/web-gatt.d.ts +27 -0
  341. package/lib/typescript/commonjs/src/modules/next/bluetooth/web/web-gatt.d.ts.map +1 -0
  342. package/lib/typescript/commonjs/src/modules/next/breathing-exercise/index.d.ts +3 -0
  343. package/lib/typescript/commonjs/src/modules/next/breathing-exercise/index.d.ts.map +1 -0
  344. package/lib/typescript/commonjs/src/modules/next/cms/index.d.ts +3 -0
  345. package/lib/typescript/commonjs/src/modules/next/cms/index.d.ts.map +1 -0
  346. package/lib/typescript/commonjs/src/modules/next/content/index.d.ts +3 -0
  347. package/lib/typescript/commonjs/src/modules/next/content/index.d.ts.map +1 -0
  348. package/lib/typescript/commonjs/src/modules/next/diary/index.d.ts +3 -0
  349. package/lib/typescript/commonjs/src/modules/next/diary/index.d.ts.map +1 -0
  350. package/lib/typescript/commonjs/src/modules/next/image/index.d.ts +3 -0
  351. package/lib/typescript/commonjs/src/modules/next/image/index.d.ts.map +1 -0
  352. package/lib/typescript/commonjs/src/modules/next/journal/index.d.ts +3 -0
  353. package/lib/typescript/commonjs/src/modules/next/journal/index.d.ts.map +1 -0
  354. package/lib/typescript/commonjs/src/modules/next/language-switcher/index.d.ts +3 -0
  355. package/lib/typescript/commonjs/src/modules/next/language-switcher/index.d.ts.map +1 -0
  356. package/lib/typescript/commonjs/src/modules/next/measurement/index.d.ts +3 -0
  357. package/lib/typescript/commonjs/src/modules/next/measurement/index.d.ts.map +1 -0
  358. package/lib/typescript/commonjs/src/modules/next/observation-detail/index.d.ts +3 -0
  359. package/lib/typescript/commonjs/src/modules/next/observation-detail/index.d.ts.map +1 -0
  360. package/lib/typescript/commonjs/src/modules/next/patient/index.d.ts +3 -0
  361. package/lib/typescript/commonjs/src/modules/next/patient/index.d.ts.map +1 -0
  362. package/lib/typescript/commonjs/src/modules/next/pdf/index.d.ts +3 -0
  363. package/lib/typescript/commonjs/src/modules/next/pdf/index.d.ts.map +1 -0
  364. package/lib/typescript/commonjs/src/modules/next/picker-sheet/index.d.ts +3 -0
  365. package/lib/typescript/commonjs/src/modules/next/picker-sheet/index.d.ts.map +1 -0
  366. package/lib/typescript/commonjs/src/modules/next/progress-bar/index.d.ts +3 -0
  367. package/lib/typescript/commonjs/src/modules/next/progress-bar/index.d.ts.map +1 -0
  368. package/lib/typescript/commonjs/src/modules/next/progress-ring/index.d.ts +3 -0
  369. package/lib/typescript/commonjs/src/modules/next/progress-ring/index.d.ts.map +1 -0
  370. package/lib/typescript/commonjs/src/modules/next/setting/index.d.ts +3 -0
  371. package/lib/typescript/commonjs/src/modules/next/setting/index.d.ts.map +1 -0
  372. package/lib/typescript/commonjs/src/modules/next/tab/index.d.ts +3 -0
  373. package/lib/typescript/commonjs/src/modules/next/tab/index.d.ts.map +1 -0
  374. package/lib/typescript/commonjs/src/modules/next/theme/index.d.ts +3 -0
  375. package/lib/typescript/commonjs/src/modules/next/theme/index.d.ts.map +1 -0
  376. package/lib/typescript/commonjs/src/modules/next/tile/index.d.ts +3 -0
  377. package/lib/typescript/commonjs/src/modules/next/tile/index.d.ts.map +1 -0
  378. package/lib/typescript/commonjs/src/modules/next/ui/index.d.ts +3 -0
  379. package/lib/typescript/commonjs/src/modules/next/ui/index.d.ts.map +1 -0
  380. package/lib/typescript/module/src/modules/auth/google-return-page/index.d.ts +8 -0
  381. package/lib/typescript/module/src/modules/auth/google-return-page/index.d.ts.map +1 -0
  382. package/lib/typescript/module/src/modules/auth/hooks/use-social-sign-in.web.d.ts +7 -0
  383. package/lib/typescript/module/src/modules/auth/hooks/use-social-sign-in.web.d.ts.map +1 -0
  384. package/lib/typescript/module/src/modules/auth/index.d.ts +1 -0
  385. package/lib/typescript/module/src/modules/auth/index.d.ts.map +1 -1
  386. package/lib/typescript/module/src/modules/auth/register/components/register.d.ts +2 -2
  387. package/lib/typescript/module/src/modules/auth/sign-in/components/sign-in.d.ts +2 -2
  388. package/lib/typescript/module/src/modules/auth/sign-in/components/social-logins/apple-login-button.web.d.ts +5 -0
  389. package/lib/typescript/module/src/modules/auth/sign-in/components/social-logins/apple-login-button.web.d.ts.map +1 -0
  390. package/lib/typescript/module/src/modules/auth/sign-in/components/social-logins/apple-login.d.ts +1 -1
  391. package/lib/typescript/module/src/modules/auth/sign-in/components/social-logins/google-login-button.web.d.ts +5 -0
  392. package/lib/typescript/module/src/modules/auth/sign-in/components/social-logins/google-login-button.web.d.ts.map +1 -0
  393. package/lib/typescript/module/src/modules/auth/sign-in/components/social-logins/google-login.d.ts +1 -1
  394. package/lib/typescript/module/src/modules/auth/sign-in/components/social-logins/social-logins.d.ts +2 -2
  395. package/lib/typescript/module/src/modules/auth/sign-in/index.d.ts +2 -0
  396. package/lib/typescript/module/src/modules/auth/sign-in/index.d.ts.map +1 -1
  397. package/lib/typescript/module/src/modules/auth/sign-in/types/apple-login-props.d.ts +13 -0
  398. package/lib/typescript/module/src/modules/auth/sign-in/types/apple-login-props.d.ts.map +1 -1
  399. package/lib/typescript/module/src/modules/auth/sign-in/types/google-login-props.d.ts +13 -0
  400. package/lib/typescript/module/src/modules/auth/sign-in/types/google-login-props.d.ts.map +1 -1
  401. package/lib/typescript/module/src/modules/auth/sign-in/utils/apple-web-sign-in.d.ts +17 -0
  402. package/lib/typescript/module/src/modules/auth/sign-in/utils/apple-web-sign-in.d.ts.map +1 -0
  403. package/lib/typescript/module/src/modules/auth/sign-in/utils/google-redirect-sign-in.d.ts +14 -0
  404. package/lib/typescript/module/src/modules/auth/sign-in/utils/google-redirect-sign-in.d.ts.map +1 -0
  405. package/lib/typescript/module/src/modules/auth/sign-in/utils/jwt-claims.d.ts +9 -0
  406. package/lib/typescript/module/src/modules/auth/sign-in/utils/jwt-claims.d.ts.map +1 -0
  407. package/lib/typescript/module/src/modules/auth/utils/sign-out-google.web.d.ts +3 -0
  408. package/lib/typescript/module/src/modules/auth/utils/sign-out-google.web.d.ts.map +1 -0
  409. package/lib/typescript/module/src/modules/bt-management/services/custom/compile-custom-lepu.d.ts.map +1 -1
  410. package/lib/typescript/module/src/modules/bt-management/services/devices/blood-glucose/blood-glucose.device.d.ts.map +1 -1
  411. package/lib/typescript/module/src/modules/bt-management/services/devices/blood-glucose/telebgm.protocol.d.ts +34 -0
  412. package/lib/typescript/module/src/modules/bt-management/services/devices/blood-glucose/telebgm.protocol.d.ts.map +1 -0
  413. package/lib/typescript/module/src/modules/bt-management/services/devices/blood-glucose/telebgm.sequencer.d.ts +32 -0
  414. package/lib/typescript/module/src/modules/bt-management/services/devices/blood-glucose/telebgm.sequencer.d.ts.map +1 -0
  415. package/lib/typescript/module/src/modules/bt-management/services/devices/bp2/bp2.device.d.ts.map +1 -1
  416. package/lib/typescript/module/src/modules/bt-management/services/devices/bp2/bp2.history-sequencer.d.ts +7 -1
  417. package/lib/typescript/module/src/modules/bt-management/services/devices/bp2/bp2.history-sequencer.d.ts.map +1 -1
  418. package/lib/typescript/module/src/modules/bt-management/services/devices/bt-data-processor.d.ts +2 -0
  419. package/lib/typescript/module/src/modules/bt-management/services/devices/bt-data-processor.d.ts.map +1 -1
  420. package/lib/typescript/module/src/modules/bt-management/services/devices/cofoe/cofoe.records.d.ts.map +1 -1
  421. package/lib/typescript/module/src/modules/bt-management/services/devices/custom/custom.device.d.ts.map +1 -1
  422. package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.transports.d.ts +2 -1
  423. package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.transports.d.ts.map +1 -1
  424. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.ecg-files.d.ts +9 -3
  425. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.ecg-files.d.ts.map +1 -1
  426. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.wbp02.protocol.d.ts.map +1 -1
  427. package/lib/typescript/module/src/modules/bt-management/types/custom-lepu-spec.d.ts +5 -2
  428. package/lib/typescript/module/src/modules/bt-management/types/custom-lepu-spec.d.ts.map +1 -1
  429. package/lib/typescript/module/src/modules/bt-management/utils/calculate-crc-16-modbus.d.ts +3 -0
  430. package/lib/typescript/module/src/modules/bt-management/utils/calculate-crc-16-modbus.d.ts.map +1 -0
  431. package/lib/typescript/module/src/modules/bt-management/utils/tenths-mmol-to-mg-per-dl.d.ts +3 -0
  432. package/lib/typescript/module/src/modules/bt-management/utils/tenths-mmol-to-mg-per-dl.d.ts.map +1 -0
  433. package/lib/typescript/module/src/modules/data-sync/services/managers/data-processor.d.ts.map +1 -1
  434. package/lib/typescript/module/src/modules/data-sync/types/health-sync-props.d.ts +1 -1
  435. package/lib/typescript/module/src/modules/data-sync/types/health-sync-props.d.ts.map +1 -1
  436. package/lib/typescript/module/src/modules/data-sync/utils/convert-generic-health-data.d.ts.map +1 -1
  437. package/lib/typescript/module/src/modules/data-sync/utils/default-health-coding.d.ts +10 -0
  438. package/lib/typescript/module/src/modules/data-sync/utils/default-health-coding.d.ts.map +1 -0
  439. package/lib/typescript/module/src/modules/data-sync/utils/health-units.d.ts.map +1 -1
  440. package/lib/typescript/module/src/modules/next/bluetooth/ble-plx/ble-link.d.ts +1 -1
  441. package/lib/typescript/module/src/modules/next/bluetooth/ble-plx/ble-link.d.ts.map +1 -1
  442. package/lib/typescript/module/src/modules/next/bluetooth/ble-plx/ble-peripheral.d.ts +8 -0
  443. package/lib/typescript/module/src/modules/next/bluetooth/ble-plx/ble-peripheral.d.ts.map +1 -0
  444. package/lib/typescript/module/src/modules/next/bluetooth/ble-plx/ble-scanner.d.ts +3 -7
  445. package/lib/typescript/module/src/modules/next/bluetooth/ble-plx/ble-scanner.d.ts.map +1 -1
  446. package/lib/typescript/module/src/modules/next/bluetooth/react-native/ovok-sink.d.ts +2 -2
  447. package/lib/typescript/module/src/modules/next/bluetooth/react-native/ovok-sink.d.ts.map +1 -1
  448. package/lib/typescript/module/src/modules/next/bluetooth/web/create-web-bluetooth-runtime.d.ts +23 -0
  449. package/lib/typescript/module/src/modules/next/bluetooth/web/create-web-bluetooth-runtime.d.ts.map +1 -0
  450. package/lib/typescript/module/src/modules/next/bluetooth/web/index.d.ts +41 -0
  451. package/lib/typescript/module/src/modules/next/bluetooth/web/index.d.ts.map +1 -0
  452. package/lib/typescript/module/src/modules/next/bluetooth/web/web-ble-device.d.ts +53 -0
  453. package/lib/typescript/module/src/modules/next/bluetooth/web/web-ble-device.d.ts.map +1 -0
  454. package/lib/typescript/module/src/modules/next/bluetooth/web/web-ble-shapes.d.ts +27 -0
  455. package/lib/typescript/module/src/modules/next/bluetooth/web/web-ble-shapes.d.ts.map +1 -0
  456. package/lib/typescript/module/src/modules/next/bluetooth/web/web-bluetooth-permissions.d.ts +8 -0
  457. package/lib/typescript/module/src/modules/next/bluetooth/web/web-bluetooth-permissions.d.ts.map +1 -0
  458. package/lib/typescript/module/src/modules/next/bluetooth/web/web-bluetooth-scanner.d.ts +29 -0
  459. package/lib/typescript/module/src/modules/next/bluetooth/web/web-bluetooth-scanner.d.ts.map +1 -0
  460. package/lib/typescript/module/src/modules/next/bluetooth/web/web-bluetooth-services.d.ts +10 -0
  461. package/lib/typescript/module/src/modules/next/bluetooth/web/web-bluetooth-services.d.ts.map +1 -0
  462. package/lib/typescript/module/src/modules/next/bluetooth/web/web-bluetooth-values.d.ts +9 -0
  463. package/lib/typescript/module/src/modules/next/bluetooth/web/web-bluetooth-values.d.ts.map +1 -0
  464. package/lib/typescript/module/src/modules/next/bluetooth/web/web-bluetooth.types.d.ts +56 -0
  465. package/lib/typescript/module/src/modules/next/bluetooth/web/web-bluetooth.types.d.ts.map +1 -0
  466. package/lib/typescript/module/src/modules/next/bluetooth/web/web-gatt.d.ts +27 -0
  467. package/lib/typescript/module/src/modules/next/bluetooth/web/web-gatt.d.ts.map +1 -0
  468. package/lib/typescript/module/src/modules/next/breathing-exercise/index.d.ts +3 -0
  469. package/lib/typescript/module/src/modules/next/breathing-exercise/index.d.ts.map +1 -0
  470. package/lib/typescript/module/src/modules/next/cms/index.d.ts +3 -0
  471. package/lib/typescript/module/src/modules/next/cms/index.d.ts.map +1 -0
  472. package/lib/typescript/module/src/modules/next/content/index.d.ts +3 -0
  473. package/lib/typescript/module/src/modules/next/content/index.d.ts.map +1 -0
  474. package/lib/typescript/module/src/modules/next/diary/index.d.ts +3 -0
  475. package/lib/typescript/module/src/modules/next/diary/index.d.ts.map +1 -0
  476. package/lib/typescript/module/src/modules/next/image/index.d.ts +3 -0
  477. package/lib/typescript/module/src/modules/next/image/index.d.ts.map +1 -0
  478. package/lib/typescript/module/src/modules/next/journal/index.d.ts +3 -0
  479. package/lib/typescript/module/src/modules/next/journal/index.d.ts.map +1 -0
  480. package/lib/typescript/module/src/modules/next/language-switcher/index.d.ts +3 -0
  481. package/lib/typescript/module/src/modules/next/language-switcher/index.d.ts.map +1 -0
  482. package/lib/typescript/module/src/modules/next/measurement/index.d.ts +3 -0
  483. package/lib/typescript/module/src/modules/next/measurement/index.d.ts.map +1 -0
  484. package/lib/typescript/module/src/modules/next/observation-detail/index.d.ts +3 -0
  485. package/lib/typescript/module/src/modules/next/observation-detail/index.d.ts.map +1 -0
  486. package/lib/typescript/module/src/modules/next/patient/index.d.ts +3 -0
  487. package/lib/typescript/module/src/modules/next/patient/index.d.ts.map +1 -0
  488. package/lib/typescript/module/src/modules/next/pdf/index.d.ts +3 -0
  489. package/lib/typescript/module/src/modules/next/pdf/index.d.ts.map +1 -0
  490. package/lib/typescript/module/src/modules/next/picker-sheet/index.d.ts +3 -0
  491. package/lib/typescript/module/src/modules/next/picker-sheet/index.d.ts.map +1 -0
  492. package/lib/typescript/module/src/modules/next/progress-bar/index.d.ts +3 -0
  493. package/lib/typescript/module/src/modules/next/progress-bar/index.d.ts.map +1 -0
  494. package/lib/typescript/module/src/modules/next/progress-ring/index.d.ts +3 -0
  495. package/lib/typescript/module/src/modules/next/progress-ring/index.d.ts.map +1 -0
  496. package/lib/typescript/module/src/modules/next/setting/index.d.ts +3 -0
  497. package/lib/typescript/module/src/modules/next/setting/index.d.ts.map +1 -0
  498. package/lib/typescript/module/src/modules/next/tab/index.d.ts +3 -0
  499. package/lib/typescript/module/src/modules/next/tab/index.d.ts.map +1 -0
  500. package/lib/typescript/module/src/modules/next/theme/index.d.ts +3 -0
  501. package/lib/typescript/module/src/modules/next/theme/index.d.ts.map +1 -0
  502. package/lib/typescript/module/src/modules/next/tile/index.d.ts +3 -0
  503. package/lib/typescript/module/src/modules/next/tile/index.d.ts.map +1 -0
  504. package/lib/typescript/module/src/modules/next/ui/index.d.ts +3 -0
  505. package/lib/typescript/module/src/modules/next/ui/index.d.ts.map +1 -0
  506. package/package.json +1 -1
@@ -9,6 +9,7 @@
9
9
  */
10
10
  import "./default-translation.js";
11
11
  export * from "./sign-in/index.js";
12
+ export * from "./google-return-page/index.js";
12
13
  export * from "./register/index.js";
13
14
  export * from "./profile/index.js";
14
15
  export * from "./delete-account-button/index.js";
@@ -18,7 +19,7 @@ export * from "./hooks/use-rate-limit-cooldown.js";
18
19
  export * from "./hooks/use-auth-action.js";
19
20
  export * from "./hooks/use-sign-in.js";
20
21
  export * from "./hooks/use-accept-invite-link.js";
21
- export * from "./hooks/use-social-sign-in.js";
22
+ export * from "./hooks/use-social-sign-in";
22
23
  export * from "./hooks/use-sign-out.js";
23
24
  export * from "./hooks/use-delete-account.js";
24
25
  export * from "./utils/rate-limit.js";
@@ -1 +1 @@
1
- {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["modules/auth/index.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,0BAAuB;AAE9B,cAAc,oBAAW;AACzB,cAAc,qBAAY;AAC1B,cAAc,oBAAW;AACzB,cAAc,kCAAyB;AACvC,cAAc,0BAAiB;AAC/B,cAAc,2BAAkB;AAChC,cAAc,oCAAiC;AAC/C,cAAc,4BAAyB;AACvC,cAAc,wBAAqB;AACnC,cAAc,mCAAgC;AAC9C,cAAc,+BAA4B;AAC1C,cAAc,yBAAsB;AACpC,cAAc,+BAA4B;AAC1C,cAAc,uBAAoB;AAClC,cAAc,0BAAuB;AACrC,cAAc,wBAAqB;AACnC,cAAc,oBAAW","ignoreList":[]}
1
+ {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["modules/auth/index.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,0BAAuB;AAE9B,cAAc,oBAAW;AACzB,cAAc,+BAAsB;AACpC,cAAc,qBAAY;AAC1B,cAAc,oBAAW;AACzB,cAAc,kCAAyB;AACvC,cAAc,0BAAiB;AAC/B,cAAc,2BAAkB;AAChC,cAAc,oCAAiC;AAC/C,cAAc,4BAAyB;AACvC,cAAc,wBAAqB;AACnC,cAAc,mCAAgC;AAC9C,cAAc,4BAA4B;AAC1C,cAAc,yBAAsB;AACpC,cAAc,+BAA4B;AAC1C,cAAc,uBAAoB;AAClC,cAAc,0BAAuB;AACrC,cAAc,wBAAqB;AACnC,cAAc,oBAAW","ignoreList":[]}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- import { signOutGoogleIfNeeded } from "../utils/sign-out-google.js";
3
+ import { signOutGoogleIfNeeded } from "../utils/sign-out-google";
4
4
  const logoutRequests = new WeakMap();
5
5
  const logoutInProgress = new WeakSet();
6
6
  const isLogoutInProgress = client => logoutInProgress.has(client);
@@ -1 +1 @@
1
- {"version":3,"names":["signOutGoogleIfNeeded","logoutRequests","WeakMap","logoutInProgress","WeakSet","isLogoutInProgress","client","has","logoutSession","key","pending","get","add","request","auth","logout","finally","delete","set"],"sourceRoot":"../../../../../src","sources":["modules/auth/session/logout-session.ts"],"mappings":";;AAEA,SAASA,qBAAqB,QAAQ,6BAA0B;AAEhE,MAAMC,cAAc,GAAG,IAAIC,OAAO,CAAwB,CAAC;AAC3D,MAAMC,gBAAgB,GAAG,IAAIC,OAAO,CAAS,CAAC;AAE9C,MAAMC,kBAAkB,GAAIC,MAAc,IACxCH,gBAAgB,CAACI,GAAG,CAACD,MAAM,CAAC;;AAE9B;AACA,MAAME,aAAa,GAAIF,MAAY,IAAoB;EACrD,MAAMG,GAAG,GAAGH,MAAgB;EAC5B,MAAMI,OAAO,GAAGT,cAAc,CAACU,GAAG,CAACF,GAAG,CAAC;EAEvC,IAAIC,OAAO,EAAE;IACX,OAAOA,OAAO;EAChB;EAEAP,gBAAgB,CAACS,GAAG,CAACH,GAAG,CAAC;EAEzB,MAAMI,OAAO,GAAG,CAAC,YAAY;IAC3B,IAAI;MACF,MAAMP,MAAM,CAACQ,IAAI,CAACC,MAAM,CAAC,CAAC;IAC5B,CAAC,SAAS;MACR,MAAMf,qBAAqB,CAAC,CAAC;IAC/B;EACF,CAAC,EAAE,CAAC,CAACgB,OAAO,CAAC,MAAM;IACjBf,cAAc,CAACgB,MAAM,CAACR,GAAG,CAAC;IAC1BN,gBAAgB,CAACc,MAAM,CAACR,GAAG,CAAC;EAC9B,CAAC,CAAC;EAEFR,cAAc,CAACiB,GAAG,CAACT,GAAG,EAAEI,OAAO,CAAC;EAEhC,OAAOA,OAAO;AAChB,CAAC;AAED,SAASR,kBAAkB,EAAEG,aAAa","ignoreList":[]}
1
+ {"version":3,"names":["signOutGoogleIfNeeded","logoutRequests","WeakMap","logoutInProgress","WeakSet","isLogoutInProgress","client","has","logoutSession","key","pending","get","add","request","auth","logout","finally","delete","set"],"sourceRoot":"../../../../../src","sources":["modules/auth/session/logout-session.ts"],"mappings":";;AAEA,SAASA,qBAAqB,QAAQ,0BAA0B;AAEhE,MAAMC,cAAc,GAAG,IAAIC,OAAO,CAAwB,CAAC;AAC3D,MAAMC,gBAAgB,GAAG,IAAIC,OAAO,CAAS,CAAC;AAE9C,MAAMC,kBAAkB,GAAIC,MAAc,IACxCH,gBAAgB,CAACI,GAAG,CAACD,MAAM,CAAC;;AAE9B;AACA,MAAME,aAAa,GAAIF,MAAY,IAAoB;EACrD,MAAMG,GAAG,GAAGH,MAAgB;EAC5B,MAAMI,OAAO,GAAGT,cAAc,CAACU,GAAG,CAACF,GAAG,CAAC;EAEvC,IAAIC,OAAO,EAAE;IACX,OAAOA,OAAO;EAChB;EAEAP,gBAAgB,CAACS,GAAG,CAACH,GAAG,CAAC;EAEzB,MAAMI,OAAO,GAAG,CAAC,YAAY;IAC3B,IAAI;MACF,MAAMP,MAAM,CAACQ,IAAI,CAACC,MAAM,CAAC,CAAC;IAC5B,CAAC,SAAS;MACR,MAAMf,qBAAqB,CAAC,CAAC;IAC/B;EACF,CAAC,EAAE,CAAC,CAACgB,OAAO,CAAC,MAAM;IACjBf,cAAc,CAACgB,MAAM,CAACR,GAAG,CAAC;IAC1BN,gBAAgB,CAACc,MAAM,CAACR,GAAG,CAAC;EAC9B,CAAC,CAAC;EAEFR,cAAc,CAACiB,GAAG,CAACT,GAAG,EAAEI,OAAO,CAAC;EAEhC,OAAOA,OAAO;AAChB,CAAC;AAED,SAASR,kBAAkB,EAAEG,aAAa","ignoreList":[]}
@@ -0,0 +1,67 @@
1
+ "use strict";
2
+
3
+ import { useOvok } from "@ovok/core/next/react";
4
+ import * as React from "react";
5
+ import { parseSignInError } from "../../../utils/sign-in-error.js";
6
+ import { isAppleCancel, loadAppleScript, signInWithApple } from "../../utils/apple-web-sign-in.js";
7
+ import { SocialLoginButton } from "./social-login-button.js";
8
+ import { jsx as _jsx } from "react/jsx-runtime";
9
+ const AppleServicesLoginButton = ({
10
+ appleServicesId,
11
+ appleRedirectUri,
12
+ internalId,
13
+ onSuccess,
14
+ onError,
15
+ testID,
16
+ style,
17
+ disabled,
18
+ children,
19
+ ...props
20
+ }) => {
21
+ const client = useOvok();
22
+ const [isLoading, setIsLoading] = React.useState(false);
23
+ const handleAppleLogin = React.useCallback(async () => {
24
+ try {
25
+ setIsLoading(true);
26
+ const credentials = await signInWithApple({
27
+ servicesId: appleServicesId,
28
+ redirectUri: appleRedirectUri
29
+ });
30
+ const loginResponse = await client.auth.socialLogin("apple", {
31
+ ...credentials,
32
+ internalId
33
+ });
34
+ onSuccess?.(loginResponse);
35
+ } catch (cause) {
36
+ if (!isAppleCancel(cause)) {
37
+ onError?.(parseSignInError(cause).error);
38
+ }
39
+ } finally {
40
+ setIsLoading(false);
41
+ }
42
+ }, [appleRedirectUri, appleServicesId, client, internalId, onError, onSuccess]);
43
+
44
+ // Browsers only open the popup right after a tap, so Apple's script is loaded before one.
45
+ React.useEffect(() => {
46
+ loadAppleScript().catch(() => undefined);
47
+ }, []);
48
+ return /*#__PURE__*/_jsx(SocialLoginButton, {
49
+ ...props,
50
+ backgroundColor: "#000",
51
+ style: style,
52
+ disabled: disabled || isLoading,
53
+ onPress: handleAppleLogin,
54
+ testID: testID,
55
+ children: children
56
+ });
57
+ };
58
+
59
+ /** Sign in with Apple in a popup, for the Services ID registered for this site; renders nothing without one. */
60
+ export const AppleLoginButton = ({
61
+ appleServicesId,
62
+ ...props
63
+ }) => appleServicesId ? /*#__PURE__*/_jsx(AppleServicesLoginButton, {
64
+ ...props,
65
+ appleServicesId: appleServicesId
66
+ }) : null;
67
+ //# sourceMappingURL=apple-login-button.web.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["useOvok","React","parseSignInError","isAppleCancel","loadAppleScript","signInWithApple","SocialLoginButton","jsx","_jsx","AppleServicesLoginButton","appleServicesId","appleRedirectUri","internalId","onSuccess","onError","testID","style","disabled","children","props","client","isLoading","setIsLoading","useState","handleAppleLogin","useCallback","credentials","servicesId","redirectUri","loginResponse","auth","socialLogin","cause","error","useEffect","catch","undefined","backgroundColor","onPress","AppleLoginButton"],"sourceRoot":"../../../../../../../src","sources":["modules/auth/sign-in/components/social-logins/apple-login-button.web.tsx"],"mappings":";;AAAA,SAASA,OAAO,QAAQ,uBAAuB;AAC/C,OAAO,KAAKC,KAAK,MAAM,OAAO;AAE9B,SAASC,gBAAgB,QAAQ,iCAA8B;AAE/D,SACEC,aAAa,EACbC,eAAe,EACfC,eAAe,QACV,kCAA+B;AAEtC,SAASC,iBAAiB,QAAQ,0BAAuB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAM1D,MAAMC,wBAAwB,GAAGA,CAAC;E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A,KAAM;IACbC,QAAQ,EAAEA,QAAQ,IAAII,SAAU;IAChCiB,OAAO,EAAEd,gBAAiB;IAC1BT,MAAM,EAAEA,MAAO;IAAAG,QAAA,EAEdA;EAAQ,CACQ,CAAC;AAExB,CAAC;;AAED;AACA,OAAO,MAAMqB,gBAAgB,GAAGA,CAAC;EAC/B7B,eAAe;EACf,GAAGS;AACqC,CAAC,KACzCT,eAAe,gBACbF,IAAA,CAACC,wBAAwB;EAAA,GAAKU,KAAK;EAAET,eAAe,EAAEA;AAAgB,CAAE,CAAC,GACvE,IAAI","ignoreList":[]}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- import { AppleLoginButton } from "./apple-login-button.js";
3
+ import { AppleLoginButton } from "./apple-login-button";
4
4
  import { AppleLoginIcon } from "./apple-login-icon.js";
5
5
  import { AppleLoginText } from "./apple-login-text.js";
6
6
 
@@ -1 +1 @@
1
- {"version":3,"names":["AppleLoginButton","AppleLoginIcon","AppleLoginText","AppleLogin","Object","assign","Icon","Text"],"sourceRoot":"../../../../../../../src","sources":["modules/auth/sign-in/components/social-logins/apple-login.tsx"],"mappings":";;AAAA,SAASA,gBAAgB,QAAQ,yBAAsB;AACvD,SAASC,cAAc,QAAQ,uBAAoB;AACnD,SAASC,cAAc,QAAQ,uBAAoB;;AAEnD;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,UAAU,GAAGC,MAAM,CAACC,MAAM,CAACL,gBAAgB,EAAE;EACxD;EACAM,IAAI,EAAEL,cAAc;EAEpB;EACAM,IAAI,EAAEL;AACR,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["AppleLoginButton","AppleLoginIcon","AppleLoginText","AppleLogin","Object","assign","Icon","Text"],"sourceRoot":"../../../../../../../src","sources":["modules/auth/sign-in/components/social-logins/apple-login.tsx"],"mappings":";;AAAA,SAASA,gBAAgB,QAAQ,sBAAsB;AACvD,SAASC,cAAc,QAAQ,uBAAoB;AACnD,SAASC,cAAc,QAAQ,uBAAoB;;AAEnD;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,UAAU,GAAGC,MAAM,CAACC,MAAM,CAACL,gBAAgB,EAAE;EACxD;EACAM,IAAI,EAAEL,cAAc;EAEpB;EACAM,IAAI,EAAEL;AACR,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+
3
+ import { useOvok } from "@ovok/core/next/react";
4
+ import * as React from "react";
5
+ import { useAppTheme } from "../../../../theme/index.js";
6
+ import { parseSignInError } from "../../../utils/sign-in-error.js";
7
+ import { startGoogleSignIn, takeGoogleIdToken } from "../../utils/google-redirect-sign-in.js";
8
+ import { SocialLoginButton } from "./social-login-button.js";
9
+
10
+ /** Google's sign-in page in this tab; back on the sign-in screen, the ID token it sent signs the user in. */
11
+ import { jsx as _jsx } from "react/jsx-runtime";
12
+ export const GoogleLoginButton = ({
13
+ googleIosClientId: _googleIosClientId,
14
+ googleWebClientId,
15
+ googleRedirectUri,
16
+ internalId,
17
+ onSuccess,
18
+ onError,
19
+ testID,
20
+ style,
21
+ disabled,
22
+ children,
23
+ ...props
24
+ }) => {
25
+ const theme = useAppTheme();
26
+ const client = useOvok();
27
+ const [isLoading, setIsLoading] = React.useState(false);
28
+ const signInWithIdToken = React.useCallback(async idToken => {
29
+ try {
30
+ setIsLoading(true);
31
+ const loginResponse = await client.auth.socialLogin("google", {
32
+ idToken,
33
+ internalId
34
+ });
35
+ onSuccess?.(loginResponse);
36
+ } catch (error) {
37
+ onError?.(parseSignInError(error).error);
38
+ } finally {
39
+ setIsLoading(false);
40
+ }
41
+ }, [client, internalId, onError, onSuccess]);
42
+ const handleGoogleSignIn = React.useCallback(() => {
43
+ try {
44
+ startGoogleSignIn({
45
+ clientId: googleWebClientId,
46
+ redirectUri: googleRedirectUri
47
+ });
48
+ } catch (error) {
49
+ onError?.(parseSignInError(error).error);
50
+ }
51
+ }, [googleRedirectUri, googleWebClientId, onError]);
52
+ React.useEffect(() => {
53
+ const idToken = takeGoogleIdToken();
54
+ if (idToken) {
55
+ void signInWithIdToken(idToken);
56
+ }
57
+ }, [signInWithIdToken]);
58
+ return /*#__PURE__*/_jsx(SocialLoginButton, {
59
+ ...props,
60
+ backgroundColor: theme.dark ? "#000" : "#fff",
61
+ style: style,
62
+ disabled: isLoading || disabled,
63
+ onPress: handleGoogleSignIn,
64
+ testID: testID,
65
+ children: children
66
+ });
67
+ };
68
+ //# sourceMappingURL=google-login-button.web.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["useOvok","React","useAppTheme","parseSignInError","startGoogleSignIn","takeGoogleIdToken","SocialLoginButton","jsx","_jsx","GoogleLoginButton","googleIosClientId","_googleIosClientId","googleWebClientId","googleRedirectUri","internalId","onSuccess","onError","testID","style","disabled","children","props","theme","client","isLoading","setIsLoading","useState","signInWithIdToken","useCallback","idToken","loginResponse","auth","socialLogin","error","handleGoogleSignIn","clientId","redirectUri","useEffect","backgroundColor","dark","onPress"],"sourceRoot":"../../../../../../../src","sources":["modules/auth/sign-in/components/social-logins/google-login-button.web.tsx"],"mappings":";;AAAA,SAASA,OAAO,QAAQ,uBAAuB;AAC/C,OAAO,KAAKC,KAAK,MAAM,OAAO;AAE9B,SAASC,WAAW,QAAQ,4BAAmB;AAC/C,SAASC,gBAAgB,QAAQ,iCAA8B;AAE/D,SACEC,iBAAiB,EACjBC,iBAAiB,QACZ,wCAAqC;AAE5C,SAASC,iBAAiB,QAAQ,0BAAuB;;AAEzD;AAAA,SAAAC,GAAA,IAAAC,IAAA;AACA,OAAO,MAAMC,iBAAiB,GAAGA,CAAC;EAChCC,iBAAiB,EAAEC,kBAAkB;EACrCC,iBAAiB;EACjBC,iBAAiB;EACjBC,UAAU;EACVC,SAAS;EACTC,OAAO;EACPC,MAAM;EACNC,KAAK;EACLC,QAAQ;EACRC,QAAQ;EACR,GAAGC;AACsC,CAAC,KAAK;EAC/C,MAAMC,KAAK,GAAGpB,WAAW,CAAC,CAAC;EAC3B,MAAMqB,MAAM,GA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ACZe,KAAK;IACTiB,eAAe,EAAEhB,KAAK,CAACiB,IAAI,GAAG,MAAM,GAAG,MAAO;IAC9CrB,KAAK,EAAEA,KAAM;IACbC,QAAQ,EAAEK,SAAS,IAAIL,QAAS;IAChCqB,OAAO,EAAEN,kBAAmB;IAC5BjB,MAAM,EAAEA,MAAO;IAAAG,QAAA,EAEdA;EAAQ,CACQ,CAAC;AAExB,CAAC","ignoreList":[]}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
 
3
3
  import { GoogleIcon } from "./google-icon.js";
4
- import { GoogleLoginButton } from "./google-login-button.js";
4
+ import { GoogleLoginButton } from "./google-login-button";
5
5
  import { GoogleLoginText } from "./google-login-text.js";
6
6
 
7
7
  /**
@@ -1 +1 @@
1
- {"version":3,"names":["GoogleIcon","GoogleLoginButton","GoogleLoginText","GoogleLogin","Object","assign","Icon","Text"],"sourceRoot":"../../../../../../../src","sources":["modules/auth/sign-in/components/social-logins/google-login.tsx"],"mappings":";;AAAA,SAASA,UAAU,QAAQ,kBAAe;AAC1C,SAASC,iBAAiB,QAAQ,0BAAuB;AACzD,SAASC,eAAe,QAAQ,wBAAqB;;AAErD;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,WAAW,GAAGC,MAAM,CAACC,MAAM,CAACJ,iBAAiB,EAAE;EAC1D;EACAK,IAAI,EAAEN,UAAU;EAEhB;EACAO,IAAI,EAAEL;AACR,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["GoogleIcon","GoogleLoginButton","GoogleLoginText","GoogleLogin","Object","assign","Icon","Text"],"sourceRoot":"../../../../../../../src","sources":["modules/auth/sign-in/components/social-logins/google-login.tsx"],"mappings":";;AAAA,SAASA,UAAU,QAAQ,kBAAe;AAC1C,SAASC,iBAAiB,QAAQ,uBAAuB;AACzD,SAASC,eAAe,QAAQ,wBAAqB;;AAErD;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,WAAW,GAAGC,MAAM,CAACC,MAAM,CAACJ,iBAAiB,EAAE;EAC1D;EACAK,IAAI,EAAEN,UAAU;EAEhB;EACAO,IAAI,EAAEL;AACR,CAAC,CAAC","ignoreList":[]}
@@ -9,5 +9,7 @@ export * from "./types/spacing-props.js";
9
9
  export * from "./types/signin-form-forgot-password-props.js";
10
10
  export * from "./types/login-with-separator-props.js";
11
11
  export * from "./types/social-logins-props.js";
12
+ export * from "./types/google-login-props.js";
13
+ export * from "./types/apple-login-props.js";
12
14
  export * from "./types/footer-props.js";
13
15
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["SignIn"],"sourceRoot":"../../../../../src","sources":["modules/auth/sign-in/index.tsx"],"mappings":";;AAAA,SAASA,MAAM,QAAQ,yBAAsB;AAE7C,cAAc,0BAAuB;AACrC,cAAc,iCAA8B;AAC5C,cAAc,6BAA0B;AACxC,cAAc,gCAA6B;AAC3C,cAAc,0BAAuB;AACrC,cAAc,8CAA2C;AACzD,cAAc,uCAAoC;AAClD,cAAc,gCAA6B;AAC3C,cAAc,yBAAsB","ignoreList":[]}
1
+ {"version":3,"names":["SignIn"],"sourceRoot":"../../../../../src","sources":["modules/auth/sign-in/index.tsx"],"mappings":";;AAAA,SAASA,MAAM,QAAQ,yBAAsB;AAE7C,cAAc,0BAAuB;AACrC,cAAc,iCAA8B;AAC5C,cAAc,6BAA0B;AACxC,cAAc,gCAA6B;AAC3C,cAAc,0BAAuB;AACrC,cAAc,8CAA2C;AACzD,cAAc,uCAAoC;AAClD,cAAc,gCAA6B;AAC3C,cAAc,+BAA4B;AAC1C,cAAc,8BAA2B;AACzC,cAAc,yBAAsB","ignoreList":[]}
@@ -0,0 +1,84 @@
1
+ "use strict";
2
+
3
+ import { jwtClaims } from "./jwt-claims.js";
4
+ const APPLE_SCRIPT_URL = "https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js";
5
+ const APPLE_CANCEL_ERRORS = new Set(["popup_closed_by_user", "user_cancelled_authorize"]);
6
+ const APPLE_REAL_USER_STATUS_UNKNOWN = 1;
7
+
8
+ /** The Apple credentials Ovok takes, without the `internalId` of the sign-in entry. */
9
+
10
+ /** The Services ID Apple signs the user in for, and the return URL registered for it. */
11
+
12
+ const browser = () => globalThis;
13
+ let appleScript;
14
+
15
+ /** Loads Sign in with Apple JS once; a failed load is tried again on the next call. */
16
+ const loadAppleScript = () => {
17
+ appleScript ??= new Promise((resolve, reject) => {
18
+ const {
19
+ document
20
+ } = browser();
21
+ const script = document.createElement("script");
22
+ script.src = APPLE_SCRIPT_URL;
23
+ script.async = true;
24
+ script.onload = () => resolve();
25
+ script.onerror = () => {
26
+ appleScript = undefined;
27
+ reject(new Error("Sign in with Apple could not be loaded"));
28
+ };
29
+ document.head.append(script);
30
+ });
31
+ return appleScript;
32
+ };
33
+ const appleId = () => {
34
+ const {
35
+ AppleID
36
+ } = browser();
37
+ if (!AppleID) {
38
+ throw new Error("Sign in with Apple is not available");
39
+ }
40
+ return AppleID;
41
+ };
42
+
43
+ // Apple sends the name only the first time the user signs in.
44
+ const appleFullName = name => name ? {
45
+ givenName: name.firstName ?? null,
46
+ familyName: name.lastName ?? null,
47
+ middleName: null,
48
+ namePrefix: null,
49
+ nameSuffix: null,
50
+ nickname: null
51
+ } : null;
52
+ const appleCredentials = ({
53
+ authorization,
54
+ user
55
+ }) => ({
56
+ identityToken: authorization.id_token,
57
+ authorizationCode: authorization.code,
58
+ state: authorization.state ?? null,
59
+ user: jwtClaims(authorization.id_token).sub ?? "",
60
+ email: user?.email ?? "",
61
+ fullName: appleFullName(user?.name),
62
+ realUserStatus: APPLE_REAL_USER_STATUS_UNKNOWN
63
+ });
64
+
65
+ /** Opens Apple's sign-in popup; it must run from a user gesture such as a tap. */
66
+ const signInWithApple = async ({
67
+ servicesId,
68
+ redirectUri
69
+ }) => {
70
+ await loadAppleScript();
71
+ const apple = appleId();
72
+ apple.auth.init({
73
+ clientId: servicesId,
74
+ scope: "name email",
75
+ redirectURI: redirectUri ?? browser().location.origin,
76
+ usePopup: true
77
+ });
78
+ return appleCredentials(await apple.auth.signIn());
79
+ };
80
+
81
+ /** Whether the user closed Apple's popup or declined, which is not an error to report. */
82
+ const isAppleCancel = cause => typeof cause === "object" && cause !== null && APPLE_CANCEL_ERRORS.has(cause.error ?? "");
83
+ export { isAppleCancel, loadAppleScript, signInWithApple };
84
+ //# sourceMappingURL=apple-web-sign-in.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["jwtClaims","APPLE_SCRIPT_URL","APPLE_CANCEL_ERRORS","Set","APPLE_REAL_USER_STATUS_UNKNOWN","browser","globalThis","appleScript","loadAppleScript","Promise","resolve","reject","document","script","createElement","src","async","onload","onerror","undefined","Error","head","append","appleId","AppleID","appleFullName","name","givenName","firstName","familyName","lastName","middleName","namePrefix","nameSuffix","nickname","appleCredentials","authorization","user","identityToken","id_token","authorizationCode","code","state","sub","email","fullName","realUserStatus","signInWithApple","servicesId","redirectUri","apple","auth","init","clientId","scope","redirectURI","location","origin","usePopup","signIn","isAppleCancel","cause","has","error"],"sourceRoot":"../../../../../../src","sources":["modules/auth/sign-in/utils/apple-web-sign-in.ts"],"mappings":";;AAEA,SAASA,SAAS,QAAQ,iBAAc;AAExC,MAAMC,gBAAgB,GACpB,sFAAsF;AAExF,MAAMC,mBAAmB,GAAG,IAAIC,GAAG,CAAC,CAAC,sBAAsB,EAAE,0BAA0B,CAAC,CAAC;AACzF,MAAMC,8BAA8B,GAAG,CAAC;;AAExC;;AAGA;;AAsCA,MAAMC,OAAO,GAAGA,CAAA,KAAMC,UAAuC;AAE7D,IAAIC,WAAsC;;AAE1C;AACA,MAAMC,eAAe,GAAGA,CAAA,KAAqB;EAC3CD,WAAW,KAAK,IAAIE,OAAO,CAAO,CAACC,OAAO,EAAEC,MAAM,KAAK;IACrD,MAAM;MAAEC;IAAS,CAAC,GAAGP,OAAO,CAAC,CAAC;IAC9B,MAAMQ,MAAM,GAAGD,QAAQ,CAACE,aAAa,CAAC,QAAQ,CAAC;IAE/CD,M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a,CAACY,IAAI,EAAEX,IAAI,CAAC;EACnCoB,cAAc,EAAE1C;AAClB,CAAC,CAAC;;AAEF;AACA,MAAM2C,eAAe,GAAG,MAAAA,CAAO;EAC7BC,UAAU;EACVC;AACe,CAAC,KAAmC;EACnD,MAAMzC,eAAe,CAAC,CAAC;EAEvB,MAAM0C,KAAK,GAAG3B,OAAO,CAAC,CAAC;EAEvB2B,KAAK,CAACC,IAAI,CAACC,IAAI,CAAC;IACdC,QAAQ,EAAEL,UAAU;IACpBM,KAAK,EAAE,YAAY;IACnBC,WAAW,EAAEN,WAAW,IAAI5C,OAAO,CAAC,CAAC,CAACmD,QAAQ,CAACC,MAAM;IACrDC,QAAQ,EAAE;EACZ,CAAC,CAAC;EAEF,OAAOvB,gBAAgB,CAAC,MAAMe,KAAK,CAACC,IAAI,CAACQ,MAAM,CAAC,CAAC,CAAC;AACpD,CAAC;;AAED;AACA,MAAMC,aAAa,GAAIC,KAAc,IACnC,OAAOA,KAAK,KAAK,QAAQ,IACzBA,KAAK,KAAK,IAAI,IACd3D,mBAAmB,CAAC4D,GAAG,CAAED,KAAK,CAAwBE,KAAK,IAAI,EAAE,CAAC;AAEpE,SACEH,aAAa,EACbpD,eAAe,EACfuC,eAAe","ignoreList":[]}
@@ -0,0 +1,84 @@
1
+ "use strict";
2
+
3
+ import { jwtClaims } from "./jwt-claims.js";
4
+ const GOOGLE_AUTHORIZE_URL = "https://accounts.google.com/o/oauth2/v2/auth";
5
+ const GOOGLE_RETURN_PATH = "/oauth/google.html";
6
+ const GOOGLE_REQUEST_KEY = "ovok.google-sign-in";
7
+ const GOOGLE_ANSWER_KEY = "ovok.google-sign-in.answer";
8
+
9
+ /** What this tab asked Google for, kept until the answer comes back. */
10
+
11
+ /** Where the tab goes for the ID token, and which address Google returns it to. */
12
+
13
+ const browser = () => globalThis;
14
+ const authorizeUrl = ({
15
+ clientId,
16
+ redirectUri
17
+ }, {
18
+ state,
19
+ nonce
20
+ }) => {
21
+ const query = new URLSearchParams({
22
+ client_id: clientId,
23
+ redirect_uri: redirectUri,
24
+ response_type: "id_token",
25
+ scope: "openid email profile",
26
+ prompt: "select_account",
27
+ state,
28
+ nonce
29
+ });
30
+ return `${GOOGLE_AUTHORIZE_URL}?${query.toString()}`;
31
+ };
32
+
33
+ /** Sends this tab to Google's sign-in page, remembering the request its answer must match. */
34
+ const startGoogleSignIn = ({
35
+ clientId,
36
+ redirectUri
37
+ }) => {
38
+ const {
39
+ sessionStorage,
40
+ location,
41
+ crypto
42
+ } = browser();
43
+ const request = {
44
+ state: crypto.randomUUID(),
45
+ nonce: crypto.randomUUID(),
46
+ returnTo: `${location.pathname}${location.search}`
47
+ };
48
+ sessionStorage.setItem(GOOGLE_REQUEST_KEY, JSON.stringify(request));
49
+ location.assign(authorizeUrl({
50
+ clientId,
51
+ redirectUri: redirectUri ?? `${location.origin}${GOOGLE_RETURN_PATH}`
52
+ }, request));
53
+ };
54
+ const parseRequest = stored => {
55
+ try {
56
+ return JSON.parse(stored ?? "null") ?? undefined;
57
+ } catch {
58
+ return undefined;
59
+ }
60
+ };
61
+ const answeredIdToken = (answer, request) => {
62
+ const idToken = answer.get("id_token");
63
+ if (!request || !idToken || answer.get("state") !== request.state) {
64
+ return undefined;
65
+ }
66
+ return jwtClaims(idToken).nonce === request.nonce ? idToken : undefined;
67
+ };
68
+
69
+ /** The ID token Google sent back for this tab's own request; the request and the answer are forgotten either way. */
70
+ const takeGoogleIdToken = () => {
71
+ const {
72
+ sessionStorage
73
+ } = browser();
74
+ const answer = sessionStorage.getItem(GOOGLE_ANSWER_KEY);
75
+ if (answer === null) {
76
+ return undefined;
77
+ }
78
+ const request = parseRequest(sessionStorage.getItem(GOOGLE_REQUEST_KEY));
79
+ sessionStorage.removeItem(GOOGLE_ANSWER_KEY);
80
+ sessionStorage.removeItem(GOOGLE_REQUEST_KEY);
81
+ return answeredIdToken(new URLSearchParams(answer), request);
82
+ };
83
+ export { GOOGLE_ANSWER_KEY, GOOGLE_REQUEST_KEY, startGoogleSignIn, takeGoogleIdToken };
84
+ //# sourceMappingURL=google-redirect-sign-in.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["jwtClaims","GOOGLE_AUTHORIZE_URL","GOOGLE_RETURN_PATH","GOOGLE_REQUEST_KEY","GOOGLE_ANSWER_KEY","browser","globalThis","authorizeUrl","clientId","redirectUri","state","nonce","query","URLSearchParams","client_id","redirect_uri","response_type","scope","prompt","toString","startGoogleSignIn","sessionStorage","location","crypto","request","randomUUID","returnTo","pathname","search","setItem","JSON","stringify","assign","origin","parseRequest","stored","parse","undefined","answeredIdToken","answer","idToken","get","takeGoogleIdToken","getItem","removeItem"],"sourceRoot":"../../../../../../src","sources":["modules/auth/sign-in/utils/google-redirect-sign-in.ts"],"mappings":";;AAAA,SAASA,SAAS,QAAQ,iBAAc;AAExC,MAAMC,oBAAoB,GAAG,8CAA8C;AAC3E,MAAMC,kBAAkB,GAAG,oBAAoB;AAC/C,MAAMC,kBAAkB,GAAG,qBAAqB;AAChD,MAAMC,iBAAiB,GAAG,4BAA4B;;AAEtD;;AASA;;AAuBA,MAAMC,OAAO,GAAGA,CAAA,KAAMC,UAAuC;AAE7D,MAAMC,YAAY,GAAGA,CACnB;EAAEC,QAAQ;EAAEC;AAA6C,CAAC,EAC1D;EAAEC,KAAK;EAAEC;AAAqB,CAAC,KAC5B;EACH,MAAMC,KAAK,GAAG,IAAIC,eAAe,CAAC;IAChCC,SAAS,EAAEN,QAAQ;IACnBO,YAAY,EAAEN,WAAW;IACzBO,aAAa,EAAE,UAAU;IACzBC,KAAK,EAAE,sBAAsB;IAC7BC,MAAM,EAAE,gBAAgB;IACxBR,KAAK;IACLC;EACF,CAAC,CAAC;EAEF,OAAO,GAAGV,oBAAoB,IAAIW,KAAK,CAACO,QAAQ,CAAC,CAAC,EAAE;AACtD,CAAC;;AAED;AACA,MAAMC,iBAAiB,GAAGA,CAAC;EAAEZ,QAAQ;EAAEC;AAAmC,CAAC,KAAW;EACpF,MAAM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B,OAAO,CAAC,CAAC;EACpC,MAAMkC,MAAM,GAAGlB,cAAc,CAACsB,OAAO,CAACvC,iBAAiB,CAAC;EAExD,IAAImC,MAAM,KAAK,IAAI,EAAE;IACnB,OAAOF,SAAS;EAClB;EAEA,MAAMb,OAAO,GAAGU,YAAY,CAACb,cAAc,CAACsB,OAAO,CAACxC,kBAAkB,CAAC,CAAC;EAExEkB,cAAc,CAACuB,UAAU,CAACxC,iBAAiB,CAAC;EAC5CiB,cAAc,CAACuB,UAAU,CAACzC,kBAAkB,CAAC;EAE7C,OAAOmC,eAAe,CAAC,IAAIzB,eAAe,CAAC0B,MAAM,CAAC,EAAEf,OAAO,CAAC;AAC9D,CAAC;AAED,SACEpB,iBAAiB,EACjBD,kBAAkB,EAClBiB,iBAAiB,EACjBsB,iBAAiB","ignoreList":[]}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+
3
+ /** The claims web sign-in reads from a provider's JWT. */
4
+
5
+ const asClaims = value => typeof value === "object" && value !== null ? value : {};
6
+
7
+ /** A JWT's claims, read without checking the signature; Ovok verifies the token itself. */
8
+ const jwtClaims = jwt => {
9
+ try {
10
+ const payload = (jwt.split(".")[1] ?? "").replace(/-/g, "+").replace(/_/g, "/");
11
+ return asClaims(JSON.parse(atob(payload)));
12
+ } catch {
13
+ return {};
14
+ }
15
+ };
16
+ export { jwtClaims };
17
+ //# sourceMappingURL=jwt-claims.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["asClaims","value","jwtClaims","jwt","payload","split","replace","JSON","parse","atob"],"sourceRoot":"../../../../../../src","sources":["modules/auth/sign-in/utils/jwt-claims.ts"],"mappings":";;AAAA;;AAMA,MAAMA,QAAQ,GAAIC,KAAc,IAC9B,OAAOA,KAAK,KAAK,QAAQ,IAAIA,KAAK,KAAK,IAAI,GAAIA,KAAK,GAAiB,CAAC,CAAC;;AAEzE;AACA,MAAMC,SAAS,GAAIC,GAAW,IAAgB;EAC5C,IAAI;IACF,MAAMC,OAAO,GAAG,CAACD,GAAG,CAACE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,EAAEC,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC,CAACA,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC;IAE/E,OAAON,QAAQ,CAACO,IAAI,CAACC,KAAK,CAACC,IAAI,CAACL,OAAO,CAAC,CAAC,CAAC;EAC5C,CAAC,CAAC,MAAM;IACN,OAAO,CAAC,CAAC;EACX;AACF,CAAC;AAED,SAASF,SAAS","ignoreList":[]}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ /** The web keeps no Google account in the app, so there is nothing to clear. */
4
+ export const signOutGoogleIfNeeded = async () => undefined;
5
+ //# sourceMappingURL=sign-out-google.web.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["signOutGoogleIfNeeded","undefined"],"sourceRoot":"../../../../../src","sources":["modules/auth/utils/sign-out-google.web.ts"],"mappings":";;AAAA;AACA,OAAO,MAAMA,qBAAqB,GAAG,MAAAA,CAAA,KAA2BC,SAAS","ignoreList":[]}
@@ -9,6 +9,7 @@ const HEX_BYTE = /^[0-9a-f]{2}$/;
9
9
  const MAX_OPCODE = 0xff;
10
10
  const MAX_DEVICE_TYPE = 0xffff;
11
11
  const MAX_POLL_INTERVAL_MS = 6_000_000;
12
+ const ECG_FILE_DECODERS = ["viatom-compressed", "raw-int16"];
12
13
  const assertFileTransfer = (id, fileTransfer) => {
13
14
  if (fileTransfer === undefined) {
14
15
  return undefined;
@@ -105,8 +106,8 @@ export const compileCustomLepu = (id, spec, serviceUuids) => {
105
106
  const pollIntervalMs = assertPollInterval(id, lepu.pollIntervalMs);
106
107
  const fileTransfer = assertFileTransfer(id, lepu.fileTransfer);
107
108
  const ecgFileDecoder = lepu.ecgFileDecoder;
108
- if (ecgFileDecoder !== undefined && ecgFileDecoder !== "raw-int16") {
109
- throw customDeviceError(id, "lepu.ecgFileDecoder", `is "${String(ecgFileDecoder)}"; expected "raw-int16"`);
109
+ if (ecgFileDecoder !== undefined && !ECG_FILE_DECODERS.includes(ecgFileDecoder)) {
110
+ throw customDeviceError(id, "lepu.ecgFileDecoder", `is "${String(ecgFileDecoder)}"; expected "viatom-compressed"`);
110
111
  }
111
112
  const requestStartByte = lepu.requestStartByte ?? startBytes[0];
112
113
  if (!requestStartByte || !HEX_BYTE.test(requestStartByte.toLowerCase())) {
@@ -1 +1 @@
1
- {"version":3,"names":["assertIntegerInRange","customDeviceError","normalizeBleUuid","HEX_BYTE","MAX_OPCODE","MAX_DEVICE_TYPE","MAX_POLL_INTERVAL_MS","assertFileTransfer","id","fileTransfer","undefined","String","assertProtocol","protocol","assertClockSyncProtocol","assertStartBytes","startBytes","Array","isArray","length","map","byte","index","normalized","toLowerCase","test","assertDeviceTypes","deviceTypes","deviceType","Number","isInteger","assertPollCommand","lepu","pollCommand","assertPollInterval","interval","compileCustomLepu","spec","serviceUuids","services","some","service","write","clockSyncProtocol","expectedDeviceTypes","pollIntervalMs","ecgFileDecoder","requestStartByte","serviceUuid","includes","rejectEncryptionAtBytes","writeWithoutResponse","Boolean","setClockBeforeInfo","manufacturerDataProtocol","characteristicUuid"],"sourceRoot":"../../../../../../src","sources":["modules/bt-management/services/custom/compile-custom-lepu.ts"],"mappings":";;AAAA;;AAKA,SAASA,oBAAoB,QAAQ,8BAA2B;AAChE,SAASC,iBAAiB,QAAQ,0BAAuB;AACzD,SAASC,gBAAgB,QAAQ,yBAAsB;AAEvD,MAAMC,QAAQ,GAAG,eAAe;AAChC,MAAMC,UAAU,GAAG,IAAI;AACvB,MAAMC,eAAe,GAAG,MAAM;AAC9B,MAAMC,oBAAoB,GAAG,SAAS;AAEtC,MAAMC,kBAAkB,GAAGA,CACzBC,EAAU,EACVC,YAAqB,KACiB;EACtC,IAAIA,YAAY,KAAKC,SAAS,EAAE;IAC9B,OAAOA,SAAS;EAClB;EAEA,IACED,YAAY,KAAK,KAAK,IACtBA,YAAY,KAAK,KAAK,IACtBA,YAA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","MAX_DEVICE_TYPE","MAX_POLL_INTERVAL_MS","ECG_FILE_DECODERS","assertFileTransfer","id","fileTransfer","undefined","String","assertProtocol","protocol","assertClockSyncProtocol","assertStartBytes","startBytes","Array","isArray","length","map","byte","index","normalized","toLowerCase","test","assertDeviceTypes","deviceTypes","deviceType","Number","isInteger","assertPollCommand","lepu","pollCommand","assertPollInterval","interval","compileCustomLepu","spec","serviceUuids","services","some","service","write","clockSyncProtocol","expectedDeviceTypes","pollIntervalMs","ecgFileDecoder","includes","requestStartByte","serviceUuid","rejectEncryptionAtBytes","writeWithoutResponse","Boolean","setClockBeforeInfo","manufacturerDataProtocol","characteristicUuid"],"sourceRoot":"../../../../../../src","sources":["modules/bt-management/services/custom/compile-custom-lepu.ts"],"mappings":";;AAAA;;AAKA,SAASA,oBAAoB,QAAQ,8BAA2B;AAChE,SAASC,iBAAiB,QAAQ,0BAAuB;AACzD,SAASC,gBAAgB,QAAQ,yBAAsB;AAEvD,MAAMC,QAAQ,GAAG,eAAe;AAChC,MAAMC,UAAU,GAAG,IAAI;AACvB,MAAMC,eAAe,GAAG,MAAM;AAC9B,MAAMC,oBAAoB,GAAG,SAAS;AAEtC,MAAMC,iBAAqC,GAAG,CAAC,mBAAmB,EAAE,WAAW,CAAC;AAEhF,MAAMC,kBAAkB,GAAGA,CACzBC,EAAU,EACVC,YAAqB,KACiB;EACtC,IAAIA,YAAY,KAAKC,SAAS,EAAE;IAC9B,OAAOA,SAAS;EAClB;EAEA,IACED,YAAY,KAAK,KAAK,IACtBA,YAAY,KAAK,KAAK,IACtBA,YAAY,KAAK,KAAK,EACtB;IACA,MAAMT,iBAAiB,CACrBQ,EAAE,EACF,mBAAmB,EACnB,OAAOG,MAAM,CAACF,YAAY,CAAC,mCAC7B,CAAC;EACH;EAEA,OAAOA,YAAY;AACrB,CAAC;AAED,MAAMG,cAAc,GAAGA,CACrBJ,EAAU,EACVK,QAAiB,KACsB;EACvC,IAAIA,QAAQ,KAAKH,SAAS,EAAE;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