formanitor 0.1.10 → 0.2.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 (290) hide show
  1. package/dist/AddInvestigationWidget-G7NPTSFY.cjs +32 -0
  2. package/dist/AddInvestigationWidget-G7NPTSFY.cjs.map +1 -0
  3. package/dist/AddInvestigationWidget-TQUKTGAW.mjs +30 -0
  4. package/dist/AddInvestigationWidget-TQUKTGAW.mjs.map +1 -0
  5. package/dist/AddMedicationWidget-26RHKIA6.cjs +32 -0
  6. package/dist/AddMedicationWidget-26RHKIA6.cjs.map +1 -0
  7. package/dist/AddMedicationWidget-I5UIT3WG.mjs +30 -0
  8. package/dist/AddMedicationWidget-I5UIT3WG.mjs.map +1 -0
  9. package/dist/AddProcedureWidget-B6OUF3BM.cjs +278 -0
  10. package/dist/AddProcedureWidget-B6OUF3BM.cjs.map +1 -0
  11. package/dist/AddProcedureWidget-NB46COB6.mjs +276 -0
  12. package/dist/AddProcedureWidget-NB46COB6.mjs.map +1 -0
  13. package/dist/BiometryIolWorkupWidget-F7HRYMOJ.mjs +298 -0
  14. package/dist/BiometryIolWorkupWidget-F7HRYMOJ.mjs.map +1 -0
  15. package/dist/BiometryIolWorkupWidget-TCU4MMVI.cjs +300 -0
  16. package/dist/BiometryIolWorkupWidget-TCU4MMVI.cjs.map +1 -0
  17. package/dist/DateTimeWidget-72YUK7PX.cjs +61 -0
  18. package/dist/DateTimeWidget-72YUK7PX.cjs.map +1 -0
  19. package/dist/DateTimeWidget-WKQIEQSA.mjs +59 -0
  20. package/dist/DateTimeWidget-WKQIEQSA.mjs.map +1 -0
  21. package/dist/DateWidget-K2TVTZ7Z.mjs +72 -0
  22. package/dist/DateWidget-K2TVTZ7Z.mjs.map +1 -0
  23. package/dist/DateWidget-SYDMSGWO.cjs +74 -0
  24. package/dist/DateWidget-SYDMSGWO.cjs.map +1 -0
  25. package/dist/DiagnosisTextareaWidget-RD65PGDY.mjs +184 -0
  26. package/dist/DiagnosisTextareaWidget-RD65PGDY.mjs.map +1 -0
  27. package/dist/DiagnosisTextareaWidget-UKWLE2SQ.cjs +190 -0
  28. package/dist/DiagnosisTextareaWidget-UKWLE2SQ.cjs.map +1 -0
  29. package/dist/DifferentialDiagnosisWidget-FENJP245.mjs +15 -0
  30. package/dist/DifferentialDiagnosisWidget-FENJP245.mjs.map +1 -0
  31. package/dist/DifferentialDiagnosisWidget-ZGFXP2BH.cjs +17 -0
  32. package/dist/DifferentialDiagnosisWidget-ZGFXP2BH.cjs.map +1 -0
  33. package/dist/DischargeMedicationOrdersWidget-26ALTGJM.mjs +161 -0
  34. package/dist/DischargeMedicationOrdersWidget-26ALTGJM.mjs.map +1 -0
  35. package/dist/DischargeMedicationOrdersWidget-B4CJQ3QS.cjs +163 -0
  36. package/dist/DischargeMedicationOrdersWidget-B4CJQ3QS.cjs.map +1 -0
  37. package/dist/EditableTable-LPAYCK36.mjs +279 -0
  38. package/dist/EditableTable-LPAYCK36.mjs.map +1 -0
  39. package/dist/EditableTable-YB4IC3ZK.cjs +281 -0
  40. package/dist/EditableTable-YB4IC3ZK.cjs.map +1 -0
  41. package/dist/FollowupWidget-EEKOI2TW.cjs +285 -0
  42. package/dist/FollowupWidget-EEKOI2TW.cjs.map +1 -0
  43. package/dist/FollowupWidget-NJ4QDBOG.mjs +283 -0
  44. package/dist/FollowupWidget-NJ4QDBOG.mjs.map +1 -0
  45. package/dist/FunctionalImpairmentScoreWidget-HAAPCMIS.cjs +93 -0
  46. package/dist/FunctionalImpairmentScoreWidget-HAAPCMIS.cjs.map +1 -0
  47. package/dist/FunctionalImpairmentScoreWidget-ZNLKKBYN.mjs +91 -0
  48. package/dist/FunctionalImpairmentScoreWidget-ZNLKKBYN.mjs.map +1 -0
  49. package/dist/GsExaminationWidget-EX6C3EF5.cjs +528 -0
  50. package/dist/GsExaminationWidget-EX6C3EF5.cjs.map +1 -0
  51. package/dist/GsExaminationWidget-MEIUHRQQ.mjs +526 -0
  52. package/dist/GsExaminationWidget-MEIUHRQQ.mjs.map +1 -0
  53. package/dist/GsGradingWidget-4UPOEYNL.mjs +90 -0
  54. package/dist/GsGradingWidget-4UPOEYNL.mjs.map +1 -0
  55. package/dist/GsGradingWidget-IV3UF63W.cjs +92 -0
  56. package/dist/GsGradingWidget-IV3UF63W.cjs.map +1 -0
  57. package/dist/GsSmartHistoryWidget-7QNJZEI4.cjs +398 -0
  58. package/dist/GsSmartHistoryWidget-7QNJZEI4.cjs.map +1 -0
  59. package/dist/GsSmartHistoryWidget-LGN7W2AV.mjs +396 -0
  60. package/dist/GsSmartHistoryWidget-LGN7W2AV.mjs.map +1 -0
  61. package/dist/HiddenVitalsWidget-AMH32HT2.cjs +55 -0
  62. package/dist/HiddenVitalsWidget-AMH32HT2.cjs.map +1 -0
  63. package/dist/HiddenVitalsWidget-W23IFSEF.mjs +53 -0
  64. package/dist/HiddenVitalsWidget-W23IFSEF.mjs.map +1 -0
  65. package/dist/LensAssessmentWidget-LSHBUTT5.cjs +234 -0
  66. package/dist/LensAssessmentWidget-LSHBUTT5.cjs.map +1 -0
  67. package/dist/LensAssessmentWidget-SJ6YUTSN.mjs +232 -0
  68. package/dist/LensAssessmentWidget-SJ6YUTSN.mjs.map +1 -0
  69. package/dist/MarMedicationOrdersWidget-IKMAFPRG.mjs +74 -0
  70. package/dist/MarMedicationOrdersWidget-IKMAFPRG.mjs.map +1 -0
  71. package/dist/MarMedicationOrdersWidget-ZKZLSZRN.cjs +76 -0
  72. package/dist/MarMedicationOrdersWidget-ZKZLSZRN.cjs.map +1 -0
  73. package/dist/OBGExaminationWidget-BK4ERETW.mjs +213 -0
  74. package/dist/OBGExaminationWidget-BK4ERETW.mjs.map +1 -0
  75. package/dist/OBGExaminationWidget-SMFZ2WCL.cjs +215 -0
  76. package/dist/OBGExaminationWidget-SMFZ2WCL.cjs.map +1 -0
  77. package/dist/OBGPathwayWidget-5YTUDBEH.cjs +519 -0
  78. package/dist/OBGPathwayWidget-5YTUDBEH.cjs.map +1 -0
  79. package/dist/OBGPathwayWidget-U5BCAESB.mjs +517 -0
  80. package/dist/OBGPathwayWidget-U5BCAESB.mjs.map +1 -0
  81. package/dist/ObstetricHistoryWidget-GC63CB3U.cjs +1115 -0
  82. package/dist/ObstetricHistoryWidget-GC63CB3U.cjs.map +1 -0
  83. package/dist/ObstetricHistoryWidget-WD572Q7H.mjs +1113 -0
  84. package/dist/ObstetricHistoryWidget-WD572Q7H.mjs.map +1 -0
  85. package/dist/OphthalDiagnosisWidget-QXFK446I.cjs +91 -0
  86. package/dist/OphthalDiagnosisWidget-QXFK446I.cjs.map +1 -0
  87. package/dist/OphthalDiagnosisWidget-Y3AHD6AG.mjs +89 -0
  88. package/dist/OphthalDiagnosisWidget-Y3AHD6AG.mjs.map +1 -0
  89. package/dist/OphthalmologyWidget-CRQMN5QU.mjs +1329 -0
  90. package/dist/OphthalmologyWidget-CRQMN5QU.mjs.map +1 -0
  91. package/dist/OphthalmologyWidget-U2HQMZ4J.cjs +1331 -0
  92. package/dist/OphthalmologyWidget-U2HQMZ4J.cjs.map +1 -0
  93. package/dist/OrthopedicExamWidget-LP7VN3W5.cjs +368 -0
  94. package/dist/OrthopedicExamWidget-LP7VN3W5.cjs.map +1 -0
  95. package/dist/OrthopedicExamWidget-PAOIVU6Z.mjs +366 -0
  96. package/dist/OrthopedicExamWidget-PAOIVU6Z.mjs.map +1 -0
  97. package/dist/PainScaleFlagsWidget-IBNGVVHD.cjs +153 -0
  98. package/dist/PainScaleFlagsWidget-IBNGVVHD.cjs.map +1 -0
  99. package/dist/PainScaleFlagsWidget-MRMQ7HPJ.mjs +151 -0
  100. package/dist/PainScaleFlagsWidget-MRMQ7HPJ.mjs.map +1 -0
  101. package/dist/ReadOnlyTable-4Y2XW4MX.mjs +6 -0
  102. package/dist/ReadOnlyTable-4Y2XW4MX.mjs.map +1 -0
  103. package/dist/ReadOnlyTable-L7G6GWEJ.cjs +15 -0
  104. package/dist/ReadOnlyTable-L7G6GWEJ.cjs.map +1 -0
  105. package/dist/ReferralWidget-IYTS32TS.mjs +169 -0
  106. package/dist/ReferralWidget-IYTS32TS.mjs.map +1 -0
  107. package/dist/ReferralWidget-PDNEKHFO.cjs +171 -0
  108. package/dist/ReferralWidget-PDNEKHFO.cjs.map +1 -0
  109. package/dist/RichTextWidget-5OOJ2LJN.mjs +11 -0
  110. package/dist/RichTextWidget-5OOJ2LJN.mjs.map +1 -0
  111. package/dist/RichTextWidget-XWLOHKLE.cjs +24 -0
  112. package/dist/RichTextWidget-XWLOHKLE.cjs.map +1 -0
  113. package/dist/SmartTextarea-L7Q4CORK.cjs +19 -0
  114. package/dist/SmartTextarea-L7Q4CORK.cjs.map +1 -0
  115. package/dist/SmartTextarea-ZCXGMZLG.mjs +10 -0
  116. package/dist/SmartTextarea-ZCXGMZLG.mjs.map +1 -0
  117. package/dist/SuggestionTextareaWidget-2TEITBPF.cjs +226 -0
  118. package/dist/SuggestionTextareaWidget-2TEITBPF.cjs.map +1 -0
  119. package/dist/SuggestionTextareaWidget-RN5LZYFC.mjs +215 -0
  120. package/dist/SuggestionTextareaWidget-RN5LZYFC.mjs.map +1 -0
  121. package/dist/SurgicalRiskFlagsWidget-DBICX4MB.mjs +144 -0
  122. package/dist/SurgicalRiskFlagsWidget-DBICX4MB.mjs.map +1 -0
  123. package/dist/SurgicalRiskFlagsWidget-JCSL3GWS.cjs +146 -0
  124. package/dist/SurgicalRiskFlagsWidget-JCSL3GWS.cjs.map +1 -0
  125. package/dist/UrologyExaminationWidget-74L3IN2X.cjs +273 -0
  126. package/dist/UrologyExaminationWidget-74L3IN2X.cjs.map +1 -0
  127. package/dist/UrologyExaminationWidget-IQEBP6CI.mjs +271 -0
  128. package/dist/UrologyExaminationWidget-IQEBP6CI.mjs.map +1 -0
  129. package/dist/UrologyPathwayWidget-S4QY6RD6.mjs +153 -0
  130. package/dist/UrologyPathwayWidget-S4QY6RD6.mjs.map +1 -0
  131. package/dist/UrologyPathwayWidget-UJY5EW2G.cjs +155 -0
  132. package/dist/UrologyPathwayWidget-UJY5EW2G.cjs.map +1 -0
  133. package/dist/UrologySmartHistoryWidget-NFTHHK6A.mjs +469 -0
  134. package/dist/UrologySmartHistoryWidget-NFTHHK6A.mjs.map +1 -0
  135. package/dist/UrologySmartHistoryWidget-XKZF63BV.cjs +471 -0
  136. package/dist/UrologySmartHistoryWidget-XKZF63BV.cjs.map +1 -0
  137. package/dist/VitalsWidget-44UWQGIF.cjs +208 -0
  138. package/dist/VitalsWidget-44UWQGIF.cjs.map +1 -0
  139. package/dist/VitalsWidget-MBYDGC7U.mjs +187 -0
  140. package/dist/VitalsWidget-MBYDGC7U.mjs.map +1 -0
  141. package/dist/chunk-4BAKQIPJ.mjs +27 -0
  142. package/dist/chunk-4BAKQIPJ.mjs.map +1 -0
  143. package/dist/chunk-4KSZUIJE.cjs +143 -0
  144. package/dist/chunk-4KSZUIJE.cjs.map +1 -0
  145. package/dist/chunk-4PMNVBJD.mjs +121 -0
  146. package/dist/chunk-4PMNVBJD.mjs.map +1 -0
  147. package/dist/chunk-5E3APMY6.cjs +54 -0
  148. package/dist/chunk-5E3APMY6.cjs.map +1 -0
  149. package/dist/chunk-AIZ3XYEZ.cjs +551 -0
  150. package/dist/chunk-AIZ3XYEZ.cjs.map +1 -0
  151. package/dist/chunk-AZHTIUOL.mjs +116 -0
  152. package/dist/chunk-AZHTIUOL.mjs.map +1 -0
  153. package/dist/chunk-AZSAPO2V.cjs +174 -0
  154. package/dist/chunk-AZSAPO2V.cjs.map +1 -0
  155. package/dist/chunk-AZVJU7NZ.mjs +137 -0
  156. package/dist/chunk-AZVJU7NZ.mjs.map +1 -0
  157. package/dist/chunk-B3GBIAHZ.mjs +285 -0
  158. package/dist/chunk-B3GBIAHZ.mjs.map +1 -0
  159. package/dist/chunk-BMNY7F6H.mjs +148 -0
  160. package/dist/chunk-BMNY7F6H.mjs.map +1 -0
  161. package/dist/chunk-BU4ZEAAP.mjs +102 -0
  162. package/dist/chunk-BU4ZEAAP.mjs.map +1 -0
  163. package/dist/chunk-CTW65YW2.cjs +388 -0
  164. package/dist/chunk-CTW65YW2.cjs.map +1 -0
  165. package/dist/chunk-DE7VZVKR.cjs +140 -0
  166. package/dist/chunk-DE7VZVKR.cjs.map +1 -0
  167. package/dist/chunk-DZYV47QC.mjs +54 -0
  168. package/dist/chunk-DZYV47QC.mjs.map +1 -0
  169. package/dist/chunk-E7WUDHSA.cjs +127 -0
  170. package/dist/chunk-E7WUDHSA.cjs.map +1 -0
  171. package/dist/chunk-FHHISVCH.cjs +13 -0
  172. package/dist/chunk-FHHISVCH.cjs.map +1 -0
  173. package/dist/chunk-FZEEWRW3.cjs +77 -0
  174. package/dist/chunk-FZEEWRW3.cjs.map +1 -0
  175. package/dist/chunk-GFDE2KZC.mjs +228 -0
  176. package/dist/chunk-GFDE2KZC.mjs.map +1 -0
  177. package/dist/chunk-GNZWSVTB.mjs +29 -0
  178. package/dist/chunk-GNZWSVTB.mjs.map +1 -0
  179. package/dist/chunk-GXXWMHAA.mjs +49 -0
  180. package/dist/chunk-GXXWMHAA.mjs.map +1 -0
  181. package/dist/chunk-GZPCYSJK.mjs +104 -0
  182. package/dist/chunk-GZPCYSJK.mjs.map +1 -0
  183. package/dist/chunk-HEFZA2AH.mjs +22 -0
  184. package/dist/chunk-HEFZA2AH.mjs.map +1 -0
  185. package/dist/chunk-I4AV6BQF.mjs +10 -0
  186. package/dist/chunk-I4AV6BQF.mjs.map +1 -0
  187. package/dist/chunk-IDSBJOFY.cjs +1885 -0
  188. package/dist/chunk-IDSBJOFY.cjs.map +1 -0
  189. package/dist/chunk-IFMQKLNW.mjs +39 -0
  190. package/dist/chunk-IFMQKLNW.mjs.map +1 -0
  191. package/dist/chunk-IFSKLIS2.cjs +12 -0
  192. package/dist/chunk-IFSKLIS2.cjs.map +1 -0
  193. package/dist/chunk-IKAKE7TR.mjs +527 -0
  194. package/dist/chunk-IKAKE7TR.mjs.map +1 -0
  195. package/dist/chunk-JE6VXRWW.cjs +86 -0
  196. package/dist/chunk-JE6VXRWW.cjs.map +1 -0
  197. package/dist/chunk-JMGUUFOJ.cjs +45 -0
  198. package/dist/chunk-JMGUUFOJ.cjs.map +1 -0
  199. package/dist/chunk-JNVSA77L.cjs +236 -0
  200. package/dist/chunk-JNVSA77L.cjs.map +1 -0
  201. package/dist/chunk-KJA5BLGX.cjs +31 -0
  202. package/dist/chunk-KJA5BLGX.cjs.map +1 -0
  203. package/dist/chunk-KMJOTMUQ.cjs +109 -0
  204. package/dist/chunk-KMJOTMUQ.cjs.map +1 -0
  205. package/dist/chunk-KPGTPJDH.cjs +32 -0
  206. package/dist/chunk-KPGTPJDH.cjs.map +1 -0
  207. package/dist/chunk-LBWB7MYU.cjs +287 -0
  208. package/dist/chunk-LBWB7MYU.cjs.map +1 -0
  209. package/dist/chunk-LGGOBIEA.mjs +61 -0
  210. package/dist/chunk-LGGOBIEA.mjs.map +1 -0
  211. package/dist/chunk-LQYWMYEC.mjs +28 -0
  212. package/dist/chunk-LQYWMYEC.mjs.map +1 -0
  213. package/dist/chunk-MIUUO4CI.mjs +361 -0
  214. package/dist/chunk-MIUUO4CI.mjs.map +1 -0
  215. package/dist/chunk-N4L76SHJ.cjs +65 -0
  216. package/dist/chunk-N4L76SHJ.cjs.map +1 -0
  217. package/dist/chunk-NJJTIL3U.cjs +73 -0
  218. package/dist/chunk-NJJTIL3U.cjs.map +1 -0
  219. package/dist/chunk-O3VQBPEW.cjs +72 -0
  220. package/dist/chunk-O3VQBPEW.cjs.map +1 -0
  221. package/dist/chunk-P62377LB.cjs +27 -0
  222. package/dist/chunk-P62377LB.cjs.map +1 -0
  223. package/dist/chunk-PHADAQSH.cjs +49 -0
  224. package/dist/chunk-PHADAQSH.cjs.map +1 -0
  225. package/dist/chunk-PZBJYPWW.cjs +52 -0
  226. package/dist/chunk-PZBJYPWW.cjs.map +1 -0
  227. package/dist/chunk-QKJ7BQSR.cjs +538 -0
  228. package/dist/chunk-QKJ7BQSR.cjs.map +1 -0
  229. package/dist/chunk-QS6WG2XJ.cjs +56 -0
  230. package/dist/chunk-QS6WG2XJ.cjs.map +1 -0
  231. package/dist/chunk-S7EMPE2D.cjs +104 -0
  232. package/dist/chunk-S7EMPE2D.cjs.map +1 -0
  233. package/dist/chunk-SCMXLRX5.mjs +42 -0
  234. package/dist/chunk-SCMXLRX5.mjs.map +1 -0
  235. package/dist/chunk-TJHG5WHX.cjs +47 -0
  236. package/dist/chunk-TJHG5WHX.cjs.map +1 -0
  237. package/dist/chunk-UGGUIXUS.cjs +41 -0
  238. package/dist/chunk-UGGUIXUS.cjs.map +1 -0
  239. package/dist/chunk-UULLSS4O.mjs +82 -0
  240. package/dist/chunk-UULLSS4O.mjs.map +1 -0
  241. package/dist/chunk-VNFBUAZD.mjs +25 -0
  242. package/dist/chunk-VNFBUAZD.mjs.map +1 -0
  243. package/dist/chunk-VPU66PI6.mjs +11 -0
  244. package/dist/chunk-VPU66PI6.mjs.map +1 -0
  245. package/dist/chunk-WYVXXEZI.mjs +46 -0
  246. package/dist/chunk-WYVXXEZI.mjs.map +1 -0
  247. package/dist/chunk-XDUVO3IZ.mjs +547 -0
  248. package/dist/chunk-XDUVO3IZ.mjs.map +1 -0
  249. package/dist/chunk-XR2ZM654.mjs +30 -0
  250. package/dist/chunk-XR2ZM654.mjs.map +1 -0
  251. package/dist/chunk-Y7TIWH4I.mjs +25 -0
  252. package/dist/chunk-Y7TIWH4I.mjs.map +1 -0
  253. package/dist/chunk-YEFM2ERQ.cjs +143 -0
  254. package/dist/chunk-YEFM2ERQ.cjs.map +1 -0
  255. package/dist/chunk-YYPMIUDW.mjs +69 -0
  256. package/dist/chunk-YYPMIUDW.mjs.map +1 -0
  257. package/dist/chunk-ZGPHTPAN.mjs +1851 -0
  258. package/dist/chunk-ZGPHTPAN.mjs.map +1 -0
  259. package/dist/chunk-ZSOIQVB3.mjs +75 -0
  260. package/dist/chunk-ZSOIQVB3.mjs.map +1 -0
  261. package/dist/index.cjs +1596 -14537
  262. package/dist/index.cjs.map +1 -1
  263. package/dist/index.d.cts +4 -767
  264. package/dist/index.d.ts +4 -767
  265. package/dist/index.mjs +1358 -14346
  266. package/dist/index.mjs.map +1 -1
  267. package/dist/read-only-table.cjs +15 -0
  268. package/dist/read-only-table.cjs.map +1 -0
  269. package/dist/read-only-table.d.cts +10 -0
  270. package/dist/read-only-table.d.ts +10 -0
  271. package/dist/read-only-table.mjs +6 -0
  272. package/dist/read-only-table.mjs.map +1 -0
  273. package/dist/rich-text.cjs +24 -0
  274. package/dist/rich-text.cjs.map +1 -0
  275. package/dist/rich-text.d.cts +8 -0
  276. package/dist/rich-text.d.ts +8 -0
  277. package/dist/rich-text.mjs +11 -0
  278. package/dist/rich-text.mjs.map +1 -0
  279. package/dist/richTextClassName--8wkuHkW.d.cts +10 -0
  280. package/dist/richTextClassName--8wkuHkW.d.ts +10 -0
  281. package/dist/smart.cjs +23 -0
  282. package/dist/smart.cjs.map +1 -0
  283. package/dist/smart.d.cts +23 -0
  284. package/dist/smart.d.ts +23 -0
  285. package/dist/smart.mjs +10 -0
  286. package/dist/smart.mjs.map +1 -0
  287. package/dist/types-D0iYXUOo.d.cts +736 -0
  288. package/dist/types-D0iYXUOo.d.ts +736 -0
  289. package/package.json +20 -2
  290. package/src/styles/index.css +35 -2
@@ -0,0 +1,1329 @@
1
+ import { Textarea } from './chunk-4BAKQIPJ.mjs';
2
+ import { Input } from './chunk-VNFBUAZD.mjs';
3
+ import { useField } from './chunk-ZGPHTPAN.mjs';
4
+ import { cn } from './chunk-VPU66PI6.mjs';
5
+ import { useMemo } from 'react';
6
+ import { jsxs, jsx } from 'react/jsx-runtime';
7
+
8
+ var UCVA_OPTIONS = ["", "6/6", "6/9", "6/12", "6/18", "6/24", "6/36", "6/60", "CF", "PL"];
9
+ var NEAR_VA_OPTIONS = ["", "N4", "N5", "N6", "N8", "N10", "N12", "N14", "N18", "N24", "N36", "<N36"];
10
+ var PINHOLE_OPTIONS = [
11
+ "",
12
+ "PL\u2212",
13
+ "PL+",
14
+ "FL",
15
+ "HM",
16
+ "CCFCF",
17
+ "FC",
18
+ "1/60",
19
+ "2/60",
20
+ "3/60",
21
+ "4/60",
22
+ "5/60",
23
+ "6/60",
24
+ "6/36",
25
+ "6/24",
26
+ "6/18",
27
+ "6/12",
28
+ "6/9",
29
+ "6/7.5",
30
+ "6/6"
31
+ ];
32
+ var VA_OPTIONS = UCVA_OPTIONS;
33
+ var IOP_METHOD_OPTIONS = ["", "NCT", "Goldmann", "Tonopen", "iCare"];
34
+ function parseFloatOrNull(value) {
35
+ const trimmed = value.trim();
36
+ if (!trimmed) return null;
37
+ const parsed = Number.parseFloat(trimmed);
38
+ return Number.isFinite(parsed) ? parsed : null;
39
+ }
40
+ function parseIntOrNull(value) {
41
+ const trimmed = value.trim();
42
+ if (!trimmed) return null;
43
+ const parsed = Number.parseInt(trimmed, 10);
44
+ return Number.isFinite(parsed) ? parsed : null;
45
+ }
46
+ function ensureRefractionEye(raw) {
47
+ return {
48
+ sph: raw?.sph ?? null,
49
+ cyl: raw?.cyl ?? null,
50
+ axis: raw?.axis ?? null,
51
+ va: raw?.va ?? "",
52
+ pd: raw?.pd ?? null,
53
+ prism: raw?.prism ?? null
54
+ };
55
+ }
56
+ function ensureAddPowers(raw) {
57
+ return {
58
+ right: raw?.right ?? null,
59
+ left: raw?.left ?? null
60
+ };
61
+ }
62
+ function ensureRefraction(raw) {
63
+ return {
64
+ right_eye: ensureRefractionEye(raw?.right_eye),
65
+ left_eye: ensureRefractionEye(raw?.left_eye),
66
+ add: ensureAddPowers(raw?.add)
67
+ };
68
+ }
69
+ function ensureUnaidedEyeVa(raw) {
70
+ return {
71
+ ucva: raw?.ucva ?? "",
72
+ pinhole_va: raw?.pinhole_va ?? "",
73
+ nv: raw?.nv ?? ""
74
+ };
75
+ }
76
+ function ensureIopEye(raw) {
77
+ return {
78
+ iop: raw?.iop ?? null,
79
+ cct: raw?.cct ?? null
80
+ };
81
+ }
82
+ function ensureValue(raw) {
83
+ const v = raw || {};
84
+ return {
85
+ patient_information: {
86
+ systemic_history: v.patient_information?.systemic_history ?? "",
87
+ ocular_history: v.patient_information?.ocular_history ?? "",
88
+ chief_complaints: v.patient_information?.chief_complaints ?? ""
89
+ },
90
+ unaided_visual_acuity: {
91
+ right_eye: ensureUnaidedEyeVa(v.unaided_visual_acuity?.right_eye),
92
+ left_eye: ensureUnaidedEyeVa(v.unaided_visual_acuity?.left_eye)
93
+ },
94
+ current_glass_prescription: ensureRefraction(v.current_glass_prescription),
95
+ iop_pachy_cct: {
96
+ method: v.iop_pachy_cct?.method ?? "",
97
+ time: v.iop_pachy_cct?.time ?? "",
98
+ right_eye: ensureIopEye(v.iop_pachy_cct?.right_eye),
99
+ left_eye: ensureIopEye(v.iop_pachy_cct?.left_eye)
100
+ },
101
+ refraction: ensureRefraction(v.refraction),
102
+ dilated_refraction: ensureRefraction(v.dilated_refraction),
103
+ glass_power_prescription: ensureRefraction(v.glass_power_prescription),
104
+ notes: v.notes ?? ""
105
+ };
106
+ }
107
+ var sectionWrapperClass = "rounded-md overflow-hidden flex flex-col border border-[#D0D0D0] bg-white";
108
+ var sectionHeaderClass = "rounded-t-md bg-[#FEE8EC] px-3 py-1 text-sm shrink-0 z-[1] text-slate-600 font-medium";
109
+ var sectionBodyClass = "rounded-b-md border-t border-[#D0D0D0] bg-white p-3 space-y-3";
110
+ var tableBaseClass = "w-full border-collapse text-xs";
111
+ var tableHeaderCellClass = "border border-[#E0E0E0] bg-[#F7F7F7] px-2 py-1 text-center font-semibold";
112
+ var tableCellClass = "border border-[#E0E0E0] px-1.5 py-1 text-center align-middle";
113
+ var selectClass = "w-full border border-[#D0D0D0] rounded-md bg-white px-2 py-1 text-xs focus-visible:outline-none focus-visible:ring-0";
114
+ var numberInputClass = "w-full border border-[#D0D0D0] rounded-md bg-white px-2 py-1 text-xs text-right focus-visible:outline-none focus-visible:ring-0";
115
+ var textInputClass = "w-full border border-[#D0D0D0] rounded-md bg-white px-2 py-1 text-xs focus-visible:outline-none focus-visible:ring-0";
116
+ var refractionTableClass = "w-full table-fixed border-collapse text-xs";
117
+ var refractionHeaderCellClass = "border border-[#E0E0E0] bg-[#F7F7F7] px-1 py-1 text-center font-semibold text-[11px]";
118
+ var refractionDataCellClass = "border border-[#E0E0E0] p-0 text-center align-middle min-w-0";
119
+ var refractionLabelCellClass = "border border-[#E0E0E0] px-2 py-1 text-left align-middle font-semibold whitespace-nowrap";
120
+ var refractionInputClass = "h-7 w-full min-w-0 border-0 rounded-none bg-transparent px-1 py-0.5 text-xs text-right shadow-none ring-0 focus-visible:ring-0 focus-visible:ring-offset-0 disabled:opacity-50";
121
+ var refractionSelectClass = "box-border h-7 w-full min-w-0 max-w-full cursor-pointer border-0 rounded-none bg-transparent px-1 py-0.5 pr-6 text-xs shadow-none focus-visible:outline-none focus-visible:ring-0 disabled:opacity-50";
122
+ var OphthalmologyWidget = ({ fieldId }) => {
123
+ const { fieldDef, value, setValue, disabled } = useField(fieldId);
124
+ const safe = useMemo(() => ensureValue(value), [value]);
125
+ const label = fieldDef?.label || "";
126
+ const update = (updater) => {
127
+ if (disabled) return;
128
+ setValue(updater(ensureValue(value)));
129
+ };
130
+ const setPatientInfo = (key, next) => {
131
+ update((current) => ({
132
+ ...current,
133
+ patient_information: { ...current.patient_information, [key]: next }
134
+ }));
135
+ };
136
+ const setUnaided = (side, key, next) => {
137
+ update((current) => ({
138
+ ...current,
139
+ unaided_visual_acuity: {
140
+ ...current.unaided_visual_acuity,
141
+ [side]: { ...current.unaided_visual_acuity[side], [key]: next }
142
+ }
143
+ }));
144
+ };
145
+ const setRefractionField = (section, side, key, next, mode) => {
146
+ update((current) => {
147
+ const base = current[section];
148
+ const eye = base[side];
149
+ let val;
150
+ if (mode === "select") {
151
+ val = next;
152
+ } else if (mode === "float") {
153
+ val = parseFloatOrNull(next);
154
+ } else {
155
+ val = parseIntOrNull(next);
156
+ }
157
+ return {
158
+ ...current,
159
+ [section]: {
160
+ ...base,
161
+ [side]: {
162
+ ...eye,
163
+ [key]: val
164
+ }
165
+ }
166
+ };
167
+ });
168
+ };
169
+ const setRefractionAdd = (section, side, next) => {
170
+ update((current) => {
171
+ const base = current[section];
172
+ const add = base.add;
173
+ const val = parseFloatOrNull(next);
174
+ return {
175
+ ...current,
176
+ [section]: {
177
+ ...base,
178
+ add: {
179
+ ...add,
180
+ [side]: val
181
+ }
182
+ }
183
+ };
184
+ });
185
+ };
186
+ const setIopField = (side, key, next) => {
187
+ update((current) => {
188
+ const base = current.iop_pachy_cct;
189
+ const eye = base[side];
190
+ const val = parseIntOrNull(next);
191
+ return {
192
+ ...current,
193
+ iop_pachy_cct: {
194
+ ...base,
195
+ [side]: {
196
+ ...eye,
197
+ [key]: val
198
+ }
199
+ }
200
+ };
201
+ });
202
+ };
203
+ const setIopMeta = (key, next) => {
204
+ update((current) => ({
205
+ ...current,
206
+ iop_pachy_cct: {
207
+ ...current.iop_pachy_cct,
208
+ [key]: next
209
+ }
210
+ }));
211
+ };
212
+ const setNotes = (next) => {
213
+ update((current) => ({
214
+ ...current,
215
+ notes: next
216
+ }));
217
+ };
218
+ return /* @__PURE__ */ jsxs("div", { className: cn("space-y-4", disabled && "opacity-70 pointer-events-none"), children: [
219
+ /* @__PURE__ */ jsx("h3", { className: "text-base font-semibold text-slate-800", children: label }),
220
+ /* @__PURE__ */ jsxs("section", { className: sectionWrapperClass, children: [
221
+ /* @__PURE__ */ jsx("div", { className: sectionHeaderClass, children: /* @__PURE__ */ jsx("span", { children: "Patient Information" }) }),
222
+ /* @__PURE__ */ jsxs("div", { className: cn(sectionBodyClass, "grid gap-3 md:grid-cols-3"), children: [
223
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1", children: [
224
+ /* @__PURE__ */ jsx("span", { className: "text-xs font-medium text-slate-700", children: "Systemic History" }),
225
+ /* @__PURE__ */ jsx(
226
+ Textarea,
227
+ {
228
+ disabled,
229
+ rows: 4,
230
+ className: "min-h-[100px] text-xs",
231
+ value: safe.patient_information.systemic_history,
232
+ onChange: (e) => setPatientInfo("systemic_history", e.target.value),
233
+ placeholder: "Enter systemic history..."
234
+ }
235
+ )
236
+ ] }),
237
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1", children: [
238
+ /* @__PURE__ */ jsx("span", { className: "text-xs font-medium text-slate-700", children: "Ocular History" }),
239
+ /* @__PURE__ */ jsx(
240
+ Textarea,
241
+ {
242
+ disabled,
243
+ rows: 4,
244
+ className: "min-h-[100px] text-xs",
245
+ value: safe.patient_information.ocular_history,
246
+ onChange: (e) => setPatientInfo("ocular_history", e.target.value),
247
+ placeholder: "Enter ocular history..."
248
+ }
249
+ )
250
+ ] }),
251
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1", children: [
252
+ /* @__PURE__ */ jsx("span", { className: "text-xs font-medium text-slate-700", children: "Chief Complaints" }),
253
+ /* @__PURE__ */ jsx(
254
+ Textarea,
255
+ {
256
+ disabled,
257
+ rows: 4,
258
+ className: "min-h-[100px] text-xs",
259
+ value: safe.patient_information.chief_complaints,
260
+ onChange: (e) => setPatientInfo("chief_complaints", e.target.value),
261
+ placeholder: "Enter chief complaints..."
262
+ }
263
+ )
264
+ ] })
265
+ ] })
266
+ ] }),
267
+ /* @__PURE__ */ jsxs("section", { className: sectionWrapperClass, children: [
268
+ /* @__PURE__ */ jsx("div", { className: sectionHeaderClass, children: /* @__PURE__ */ jsx("span", { children: "Unaided Visual Acuity" }) }),
269
+ /* @__PURE__ */ jsx("div", { className: sectionBodyClass, children: /* @__PURE__ */ jsxs("table", { className: tableBaseClass, children: [
270
+ /* @__PURE__ */ jsxs("thead", { children: [
271
+ /* @__PURE__ */ jsxs("tr", { children: [
272
+ /* @__PURE__ */ jsx("th", { className: tableHeaderCellClass }),
273
+ /* @__PURE__ */ jsx("th", { className: tableHeaderCellClass, colSpan: 3, children: "Right Eye" }),
274
+ /* @__PURE__ */ jsx("th", { className: tableHeaderCellClass, colSpan: 3, children: "Left Eye" })
275
+ ] }),
276
+ /* @__PURE__ */ jsxs("tr", { children: [
277
+ /* @__PURE__ */ jsx("th", { className: tableHeaderCellClass }),
278
+ /* @__PURE__ */ jsx("th", { className: tableHeaderCellClass, children: "UCVA" }),
279
+ /* @__PURE__ */ jsx("th", { className: tableHeaderCellClass, children: "Pinhole V/A" }),
280
+ /* @__PURE__ */ jsx("th", { className: tableHeaderCellClass, children: "N/V" }),
281
+ /* @__PURE__ */ jsx("th", { className: tableHeaderCellClass, children: "UCVA" }),
282
+ /* @__PURE__ */ jsx("th", { className: tableHeaderCellClass, children: "Pinhole V/A" }),
283
+ /* @__PURE__ */ jsx("th", { className: tableHeaderCellClass, children: "N/V" })
284
+ ] })
285
+ ] }),
286
+ /* @__PURE__ */ jsx("tbody", { children: /* @__PURE__ */ jsxs("tr", { children: [
287
+ /* @__PURE__ */ jsx("td", { className: cn(tableCellClass, "font-semibold text-left px-2"), children: "Unaided" }),
288
+ /* @__PURE__ */ jsx("td", { className: tableCellClass, children: /* @__PURE__ */ jsx(
289
+ "select",
290
+ {
291
+ disabled,
292
+ className: selectClass,
293
+ value: safe.unaided_visual_acuity.right_eye.ucva,
294
+ onChange: (e) => setUnaided("right_eye", "ucva", e.target.value),
295
+ children: UCVA_OPTIONS.map((opt) => /* @__PURE__ */ jsx("option", { value: opt, children: opt }, opt || "blank"))
296
+ }
297
+ ) }),
298
+ /* @__PURE__ */ jsx("td", { className: tableCellClass, children: /* @__PURE__ */ jsx(
299
+ "select",
300
+ {
301
+ disabled,
302
+ className: selectClass,
303
+ value: safe.unaided_visual_acuity.right_eye.pinhole_va,
304
+ onChange: (e) => setUnaided("right_eye", "pinhole_va", e.target.value),
305
+ children: PINHOLE_OPTIONS.map((opt) => /* @__PURE__ */ jsx("option", { value: opt, children: opt }, opt || "blank"))
306
+ }
307
+ ) }),
308
+ /* @__PURE__ */ jsx("td", { className: tableCellClass, children: /* @__PURE__ */ jsx(
309
+ "select",
310
+ {
311
+ disabled,
312
+ className: selectClass,
313
+ value: safe.unaided_visual_acuity.right_eye.nv,
314
+ onChange: (e) => setUnaided("right_eye", "nv", e.target.value),
315
+ children: NEAR_VA_OPTIONS.map((opt) => /* @__PURE__ */ jsx("option", { value: opt, children: opt }, opt || "blank"))
316
+ }
317
+ ) }),
318
+ /* @__PURE__ */ jsx("td", { className: tableCellClass, children: /* @__PURE__ */ jsx(
319
+ "select",
320
+ {
321
+ disabled,
322
+ className: selectClass,
323
+ value: safe.unaided_visual_acuity.left_eye.ucva,
324
+ onChange: (e) => setUnaided("left_eye", "ucva", e.target.value),
325
+ children: UCVA_OPTIONS.map((opt) => /* @__PURE__ */ jsx("option", { value: opt, children: opt }, opt || "blank"))
326
+ }
327
+ ) }),
328
+ /* @__PURE__ */ jsx("td", { className: tableCellClass, children: /* @__PURE__ */ jsx(
329
+ "select",
330
+ {
331
+ disabled,
332
+ className: selectClass,
333
+ value: safe.unaided_visual_acuity.left_eye.pinhole_va,
334
+ onChange: (e) => setUnaided("left_eye", "pinhole_va", e.target.value),
335
+ children: PINHOLE_OPTIONS.map((opt) => /* @__PURE__ */ jsx("option", { value: opt, children: opt }, opt || "blank"))
336
+ }
337
+ ) }),
338
+ /* @__PURE__ */ jsx("td", { className: tableCellClass, children: /* @__PURE__ */ jsx(
339
+ "select",
340
+ {
341
+ disabled,
342
+ className: selectClass,
343
+ value: safe.unaided_visual_acuity.left_eye.nv,
344
+ onChange: (e) => setUnaided("left_eye", "nv", e.target.value),
345
+ children: NEAR_VA_OPTIONS.map((opt) => /* @__PURE__ */ jsx("option", { value: opt, children: opt }, opt || "blank"))
346
+ }
347
+ ) })
348
+ ] }) })
349
+ ] }) })
350
+ ] }),
351
+ /* @__PURE__ */ jsxs("section", { className: sectionWrapperClass, children: [
352
+ /* @__PURE__ */ jsx("div", { className: sectionHeaderClass, children: /* @__PURE__ */ jsx("span", { children: "Current Glass Prescription" }) }),
353
+ /* @__PURE__ */ jsx("div", { className: sectionBodyClass, children: /* @__PURE__ */ jsxs("table", { className: refractionTableClass, children: [
354
+ /* @__PURE__ */ jsxs("colgroup", { children: [
355
+ /* @__PURE__ */ jsx("col", { className: "w-[10%]" }),
356
+ /* @__PURE__ */ jsx("col", { className: "w-[7%]" }),
357
+ /* @__PURE__ */ jsx("col", { className: "w-[7%]" }),
358
+ /* @__PURE__ */ jsx("col", { className: "w-[6%]" }),
359
+ /* @__PURE__ */ jsx("col", { className: "w-[25%]" }),
360
+ /* @__PURE__ */ jsx("col", { className: "w-[7%]" }),
361
+ /* @__PURE__ */ jsx("col", { className: "w-[7%]" }),
362
+ /* @__PURE__ */ jsx("col", { className: "w-[6%]" }),
363
+ /* @__PURE__ */ jsx("col", { className: "w-[25%]" })
364
+ ] }),
365
+ /* @__PURE__ */ jsxs("thead", { children: [
366
+ /* @__PURE__ */ jsxs("tr", { children: [
367
+ /* @__PURE__ */ jsx("th", { className: refractionHeaderCellClass }),
368
+ /* @__PURE__ */ jsx("th", { className: refractionHeaderCellClass, colSpan: 4, children: "Right Eye" }),
369
+ /* @__PURE__ */ jsx("th", { className: refractionHeaderCellClass, colSpan: 4, children: "Left Eye" })
370
+ ] }),
371
+ /* @__PURE__ */ jsxs("tr", { children: [
372
+ /* @__PURE__ */ jsx("th", { className: refractionHeaderCellClass }),
373
+ /* @__PURE__ */ jsx("th", { className: refractionHeaderCellClass, children: "Sph" }),
374
+ /* @__PURE__ */ jsx("th", { className: refractionHeaderCellClass, children: "Cyl" }),
375
+ /* @__PURE__ */ jsx("th", { className: refractionHeaderCellClass, children: "Axis" }),
376
+ /* @__PURE__ */ jsx("th", { className: refractionHeaderCellClass, children: "V/A" }),
377
+ /* @__PURE__ */ jsx("th", { className: refractionHeaderCellClass, children: "Sph" }),
378
+ /* @__PURE__ */ jsx("th", { className: refractionHeaderCellClass, children: "Cyl" }),
379
+ /* @__PURE__ */ jsx("th", { className: refractionHeaderCellClass, children: "Axis" }),
380
+ /* @__PURE__ */ jsx("th", { className: refractionHeaderCellClass, children: "V/A" })
381
+ ] })
382
+ ] }),
383
+ /* @__PURE__ */ jsx("tbody", { children: /* @__PURE__ */ jsxs("tr", { children: [
384
+ /* @__PURE__ */ jsx("td", { className: `${refractionLabelCellClass} whitespace-normal`, children: /* @__PURE__ */ jsxs("span", { className: "block leading-tight", children: [
385
+ "Current",
386
+ /* @__PURE__ */ jsx("br", {}),
387
+ "Glass"
388
+ ] }) }),
389
+ /* @__PURE__ */ jsx("td", { className: refractionDataCellClass, children: /* @__PURE__ */ jsx(
390
+ Input,
391
+ {
392
+ disabled,
393
+ type: "number",
394
+ step: "0.25",
395
+ className: refractionInputClass,
396
+ value: safe.current_glass_prescription.right_eye.sph ?? "",
397
+ onChange: (e) => setRefractionField(
398
+ "current_glass_prescription",
399
+ "right_eye",
400
+ "sph",
401
+ e.target.value,
402
+ "float"
403
+ )
404
+ }
405
+ ) }),
406
+ /* @__PURE__ */ jsx("td", { className: refractionDataCellClass, children: /* @__PURE__ */ jsx(
407
+ Input,
408
+ {
409
+ disabled,
410
+ type: "number",
411
+ step: "0.25",
412
+ className: refractionInputClass,
413
+ value: safe.current_glass_prescription.right_eye.cyl ?? "",
414
+ onChange: (e) => setRefractionField(
415
+ "current_glass_prescription",
416
+ "right_eye",
417
+ "cyl",
418
+ e.target.value,
419
+ "float"
420
+ )
421
+ }
422
+ ) }),
423
+ /* @__PURE__ */ jsx("td", { className: refractionDataCellClass, children: /* @__PURE__ */ jsx(
424
+ Input,
425
+ {
426
+ disabled,
427
+ type: "number",
428
+ className: refractionInputClass,
429
+ value: safe.current_glass_prescription.right_eye.axis ?? "",
430
+ onChange: (e) => setRefractionField(
431
+ "current_glass_prescription",
432
+ "right_eye",
433
+ "axis",
434
+ e.target.value,
435
+ "int"
436
+ )
437
+ }
438
+ ) }),
439
+ /* @__PURE__ */ jsx("td", { className: refractionDataCellClass, children: /* @__PURE__ */ jsx(
440
+ "select",
441
+ {
442
+ disabled,
443
+ className: refractionSelectClass,
444
+ value: safe.current_glass_prescription.right_eye.va,
445
+ onChange: (e) => setRefractionField(
446
+ "current_glass_prescription",
447
+ "right_eye",
448
+ "va",
449
+ e.target.value,
450
+ "select"
451
+ ),
452
+ children: VA_OPTIONS.map((opt) => /* @__PURE__ */ jsx("option", { value: opt, children: opt }, opt || "blank"))
453
+ }
454
+ ) }),
455
+ /* @__PURE__ */ jsx("td", { className: refractionDataCellClass, children: /* @__PURE__ */ jsx(
456
+ Input,
457
+ {
458
+ disabled,
459
+ type: "number",
460
+ step: "0.25",
461
+ className: refractionInputClass,
462
+ value: safe.current_glass_prescription.left_eye.sph ?? "",
463
+ onChange: (e) => setRefractionField(
464
+ "current_glass_prescription",
465
+ "left_eye",
466
+ "sph",
467
+ e.target.value,
468
+ "float"
469
+ )
470
+ }
471
+ ) }),
472
+ /* @__PURE__ */ jsx("td", { className: refractionDataCellClass, children: /* @__PURE__ */ jsx(
473
+ Input,
474
+ {
475
+ disabled,
476
+ type: "number",
477
+ step: "0.25",
478
+ className: refractionInputClass,
479
+ value: safe.current_glass_prescription.left_eye.cyl ?? "",
480
+ onChange: (e) => setRefractionField(
481
+ "current_glass_prescription",
482
+ "left_eye",
483
+ "cyl",
484
+ e.target.value,
485
+ "float"
486
+ )
487
+ }
488
+ ) }),
489
+ /* @__PURE__ */ jsx("td", { className: refractionDataCellClass, children: /* @__PURE__ */ jsx(
490
+ Input,
491
+ {
492
+ disabled,
493
+ type: "number",
494
+ className: refractionInputClass,
495
+ value: safe.current_glass_prescription.left_eye.axis ?? "",
496
+ onChange: (e) => setRefractionField(
497
+ "current_glass_prescription",
498
+ "left_eye",
499
+ "axis",
500
+ e.target.value,
501
+ "int"
502
+ )
503
+ }
504
+ ) }),
505
+ /* @__PURE__ */ jsx("td", { className: refractionDataCellClass, children: /* @__PURE__ */ jsx(
506
+ "select",
507
+ {
508
+ disabled,
509
+ className: refractionSelectClass,
510
+ value: safe.current_glass_prescription.left_eye.va,
511
+ onChange: (e) => setRefractionField(
512
+ "current_glass_prescription",
513
+ "left_eye",
514
+ "va",
515
+ e.target.value,
516
+ "select"
517
+ ),
518
+ children: VA_OPTIONS.map((opt) => /* @__PURE__ */ jsx("option", { value: opt, children: opt }, opt || "blank"))
519
+ }
520
+ ) })
521
+ ] }) })
522
+ ] }) })
523
+ ] }),
524
+ /* @__PURE__ */ jsxs("section", { className: sectionWrapperClass, children: [
525
+ /* @__PURE__ */ jsx("div", { className: sectionHeaderClass, children: /* @__PURE__ */ jsx("span", { children: "IOP / Pachy / CCT Detail" }) }),
526
+ /* @__PURE__ */ jsxs("div", { className: sectionBodyClass, children: [
527
+ /* @__PURE__ */ jsxs("div", { className: "grid gap-3 md:grid-cols-[2fr,1fr] mb-3", children: [
528
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1", children: [
529
+ /* @__PURE__ */ jsx("span", { className: "text-xs font-medium text-slate-700", children: "Method" }),
530
+ /* @__PURE__ */ jsx(
531
+ "select",
532
+ {
533
+ disabled,
534
+ className: selectClass,
535
+ value: safe.iop_pachy_cct.method,
536
+ onChange: (e) => setIopMeta("method", e.target.value),
537
+ children: IOP_METHOD_OPTIONS.map((opt) => /* @__PURE__ */ jsx("option", { value: opt, children: opt || "Select Method" }, opt || "blank"))
538
+ }
539
+ )
540
+ ] }),
541
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1", children: [
542
+ /* @__PURE__ */ jsx("span", { className: "text-xs font-medium text-slate-700", children: "Time" }),
543
+ /* @__PURE__ */ jsx(
544
+ Input,
545
+ {
546
+ disabled,
547
+ placeholder: "HH:MM",
548
+ className: textInputClass,
549
+ value: safe.iop_pachy_cct.time,
550
+ onChange: (e) => setIopMeta("time", e.target.value)
551
+ }
552
+ )
553
+ ] })
554
+ ] }),
555
+ /* @__PURE__ */ jsxs("table", { className: tableBaseClass, children: [
556
+ /* @__PURE__ */ jsxs("thead", { children: [
557
+ /* @__PURE__ */ jsxs("tr", { children: [
558
+ /* @__PURE__ */ jsx("th", { className: tableHeaderCellClass }),
559
+ /* @__PURE__ */ jsx("th", { className: tableHeaderCellClass, colSpan: 2, children: "Right Eye" }),
560
+ /* @__PURE__ */ jsx("th", { className: tableHeaderCellClass, colSpan: 2, children: "Left Eye" })
561
+ ] }),
562
+ /* @__PURE__ */ jsxs("tr", { children: [
563
+ /* @__PURE__ */ jsx("th", { className: tableHeaderCellClass }),
564
+ /* @__PURE__ */ jsx("th", { className: tableHeaderCellClass, children: "IOP" }),
565
+ /* @__PURE__ */ jsx("th", { className: tableHeaderCellClass, children: "CCT" }),
566
+ /* @__PURE__ */ jsx("th", { className: tableHeaderCellClass, children: "IOP" }),
567
+ /* @__PURE__ */ jsx("th", { className: tableHeaderCellClass, children: "CCT" })
568
+ ] })
569
+ ] }),
570
+ /* @__PURE__ */ jsx("tbody", { children: /* @__PURE__ */ jsxs("tr", { children: [
571
+ /* @__PURE__ */ jsx("td", { className: cn(tableCellClass, "font-semibold text-left px-2"), children: "Values" }),
572
+ /* @__PURE__ */ jsx("td", { className: tableCellClass, children: /* @__PURE__ */ jsx(
573
+ Input,
574
+ {
575
+ disabled,
576
+ type: "number",
577
+ className: numberInputClass,
578
+ value: safe.iop_pachy_cct.right_eye.iop ?? "",
579
+ onChange: (e) => setIopField("right_eye", "iop", e.target.value)
580
+ }
581
+ ) }),
582
+ /* @__PURE__ */ jsx("td", { className: tableCellClass, children: /* @__PURE__ */ jsx(
583
+ Input,
584
+ {
585
+ disabled,
586
+ type: "number",
587
+ className: numberInputClass,
588
+ value: safe.iop_pachy_cct.right_eye.cct ?? "",
589
+ onChange: (e) => setIopField("right_eye", "cct", e.target.value)
590
+ }
591
+ ) }),
592
+ /* @__PURE__ */ jsx("td", { className: tableCellClass, children: /* @__PURE__ */ jsx(
593
+ Input,
594
+ {
595
+ disabled,
596
+ type: "number",
597
+ className: numberInputClass,
598
+ value: safe.iop_pachy_cct.left_eye.iop ?? "",
599
+ onChange: (e) => setIopField("left_eye", "iop", e.target.value)
600
+ }
601
+ ) }),
602
+ /* @__PURE__ */ jsx("td", { className: tableCellClass, children: /* @__PURE__ */ jsx(
603
+ Input,
604
+ {
605
+ disabled,
606
+ type: "number",
607
+ className: numberInputClass,
608
+ value: safe.iop_pachy_cct.left_eye.cct ?? "",
609
+ onChange: (e) => setIopField("left_eye", "cct", e.target.value)
610
+ }
611
+ ) })
612
+ ] }) })
613
+ ] })
614
+ ] })
615
+ ] }),
616
+ /* @__PURE__ */ jsxs("section", { className: sectionWrapperClass, children: [
617
+ /* @__PURE__ */ jsx("div", { className: sectionHeaderClass, children: /* @__PURE__ */ jsx("span", { children: "Refraction (Distance)" }) }),
618
+ /* @__PURE__ */ jsx("div", { className: sectionBodyClass, children: /* @__PURE__ */ jsxs("table", { className: refractionTableClass, children: [
619
+ /* @__PURE__ */ jsxs("colgroup", { children: [
620
+ /* @__PURE__ */ jsx("col", { className: "w-[10%]" }),
621
+ /* @__PURE__ */ jsx("col", { className: "w-[7%]" }),
622
+ /* @__PURE__ */ jsx("col", { className: "w-[7%]" }),
623
+ /* @__PURE__ */ jsx("col", { className: "w-[6%]" }),
624
+ /* @__PURE__ */ jsx("col", { className: "w-[13%]" }),
625
+ /* @__PURE__ */ jsx("col", { className: "w-[12%]" }),
626
+ /* @__PURE__ */ jsx("col", { className: "w-[7%]" }),
627
+ /* @__PURE__ */ jsx("col", { className: "w-[7%]" }),
628
+ /* @__PURE__ */ jsx("col", { className: "w-[6%]" }),
629
+ /* @__PURE__ */ jsx("col", { className: "w-[13%]" }),
630
+ /* @__PURE__ */ jsx("col", { className: "w-[12%]" })
631
+ ] }),
632
+ /* @__PURE__ */ jsxs("thead", { children: [
633
+ /* @__PURE__ */ jsxs("tr", { children: [
634
+ /* @__PURE__ */ jsx("th", { className: refractionHeaderCellClass }),
635
+ /* @__PURE__ */ jsx("th", { className: refractionHeaderCellClass, colSpan: 5, children: "Right Eye" }),
636
+ /* @__PURE__ */ jsx("th", { className: refractionHeaderCellClass, colSpan: 5, children: "Left Eye" })
637
+ ] }),
638
+ /* @__PURE__ */ jsxs("tr", { children: [
639
+ /* @__PURE__ */ jsx("th", { className: refractionHeaderCellClass }),
640
+ /* @__PURE__ */ jsx("th", { className: refractionHeaderCellClass, children: "Sph" }),
641
+ /* @__PURE__ */ jsx("th", { className: refractionHeaderCellClass, children: "Cyl" }),
642
+ /* @__PURE__ */ jsx("th", { className: refractionHeaderCellClass, children: "Axis" }),
643
+ /* @__PURE__ */ jsx("th", { className: refractionHeaderCellClass, children: "BCVA" }),
644
+ /* @__PURE__ */ jsx("th", { className: refractionHeaderCellClass, children: "P/D" }),
645
+ /* @__PURE__ */ jsx("th", { className: refractionHeaderCellClass, children: "Sph" }),
646
+ /* @__PURE__ */ jsx("th", { className: refractionHeaderCellClass, children: "Cyl" }),
647
+ /* @__PURE__ */ jsx("th", { className: refractionHeaderCellClass, children: "Axis" }),
648
+ /* @__PURE__ */ jsx("th", { className: refractionHeaderCellClass, children: "BCVA" }),
649
+ /* @__PURE__ */ jsx("th", { className: refractionHeaderCellClass, children: "P/D" })
650
+ ] })
651
+ ] }),
652
+ /* @__PURE__ */ jsxs("tbody", { children: [
653
+ /* @__PURE__ */ jsxs("tr", { children: [
654
+ /* @__PURE__ */ jsx("td", { className: refractionLabelCellClass, children: "Distance" }),
655
+ /* @__PURE__ */ jsx("td", { className: refractionDataCellClass, children: /* @__PURE__ */ jsx(
656
+ Input,
657
+ {
658
+ disabled,
659
+ type: "number",
660
+ step: "0.25",
661
+ className: refractionInputClass,
662
+ value: safe.refraction.right_eye.sph ?? "",
663
+ onChange: (e) => setRefractionField(
664
+ "refraction",
665
+ "right_eye",
666
+ "sph",
667
+ e.target.value,
668
+ "float"
669
+ )
670
+ }
671
+ ) }),
672
+ /* @__PURE__ */ jsx("td", { className: refractionDataCellClass, children: /* @__PURE__ */ jsx(
673
+ Input,
674
+ {
675
+ disabled,
676
+ type: "number",
677
+ step: "0.25",
678
+ className: refractionInputClass,
679
+ value: safe.refraction.right_eye.cyl ?? "",
680
+ onChange: (e) => setRefractionField(
681
+ "refraction",
682
+ "right_eye",
683
+ "cyl",
684
+ e.target.value,
685
+ "float"
686
+ )
687
+ }
688
+ ) }),
689
+ /* @__PURE__ */ jsx("td", { className: refractionDataCellClass, children: /* @__PURE__ */ jsx(
690
+ Input,
691
+ {
692
+ disabled,
693
+ type: "number",
694
+ className: refractionInputClass,
695
+ value: safe.refraction.right_eye.axis ?? "",
696
+ onChange: (e) => setRefractionField(
697
+ "refraction",
698
+ "right_eye",
699
+ "axis",
700
+ e.target.value,
701
+ "int"
702
+ )
703
+ }
704
+ ) }),
705
+ /* @__PURE__ */ jsx("td", { className: refractionDataCellClass, children: /* @__PURE__ */ jsx(
706
+ "select",
707
+ {
708
+ disabled,
709
+ className: refractionSelectClass,
710
+ value: safe.refraction.right_eye.va,
711
+ onChange: (e) => setRefractionField(
712
+ "refraction",
713
+ "right_eye",
714
+ "va",
715
+ e.target.value,
716
+ "select"
717
+ ),
718
+ children: VA_OPTIONS.map((opt) => /* @__PURE__ */ jsx("option", { value: opt, children: opt }, opt || "blank"))
719
+ }
720
+ ) }),
721
+ /* @__PURE__ */ jsx("td", { className: refractionDataCellClass, children: /* @__PURE__ */ jsx(
722
+ Input,
723
+ {
724
+ disabled,
725
+ type: "number",
726
+ min: 10,
727
+ max: 45,
728
+ step: "1",
729
+ className: refractionInputClass,
730
+ value: safe.refraction.right_eye.pd ?? "",
731
+ onChange: (e) => setRefractionField("refraction", "right_eye", "pd", e.target.value, "int")
732
+ }
733
+ ) }),
734
+ /* @__PURE__ */ jsx("td", { className: refractionDataCellClass, children: /* @__PURE__ */ jsx(
735
+ Input,
736
+ {
737
+ disabled,
738
+ type: "number",
739
+ step: "0.25",
740
+ className: refractionInputClass,
741
+ value: safe.refraction.left_eye.sph ?? "",
742
+ onChange: (e) => setRefractionField(
743
+ "refraction",
744
+ "left_eye",
745
+ "sph",
746
+ e.target.value,
747
+ "float"
748
+ )
749
+ }
750
+ ) }),
751
+ /* @__PURE__ */ jsx("td", { className: refractionDataCellClass, children: /* @__PURE__ */ jsx(
752
+ Input,
753
+ {
754
+ disabled,
755
+ type: "number",
756
+ step: "0.25",
757
+ className: refractionInputClass,
758
+ value: safe.refraction.left_eye.cyl ?? "",
759
+ onChange: (e) => setRefractionField(
760
+ "refraction",
761
+ "left_eye",
762
+ "cyl",
763
+ e.target.value,
764
+ "float"
765
+ )
766
+ }
767
+ ) }),
768
+ /* @__PURE__ */ jsx("td", { className: refractionDataCellClass, children: /* @__PURE__ */ jsx(
769
+ Input,
770
+ {
771
+ disabled,
772
+ type: "number",
773
+ className: refractionInputClass,
774
+ value: safe.refraction.left_eye.axis ?? "",
775
+ onChange: (e) => setRefractionField(
776
+ "refraction",
777
+ "left_eye",
778
+ "axis",
779
+ e.target.value,
780
+ "int"
781
+ )
782
+ }
783
+ ) }),
784
+ /* @__PURE__ */ jsx("td", { className: refractionDataCellClass, children: /* @__PURE__ */ jsx(
785
+ "select",
786
+ {
787
+ disabled,
788
+ className: refractionSelectClass,
789
+ value: safe.refraction.left_eye.va,
790
+ onChange: (e) => setRefractionField(
791
+ "refraction",
792
+ "left_eye",
793
+ "va",
794
+ e.target.value,
795
+ "select"
796
+ ),
797
+ children: VA_OPTIONS.map((opt) => /* @__PURE__ */ jsx("option", { value: opt, children: opt }, opt || "blank"))
798
+ }
799
+ ) }),
800
+ /* @__PURE__ */ jsx("td", { className: refractionDataCellClass, children: /* @__PURE__ */ jsx(
801
+ Input,
802
+ {
803
+ disabled,
804
+ type: "number",
805
+ min: 10,
806
+ max: 45,
807
+ step: "1",
808
+ className: refractionInputClass,
809
+ value: safe.refraction.left_eye.pd ?? "",
810
+ onChange: (e) => setRefractionField("refraction", "left_eye", "pd", e.target.value, "int")
811
+ }
812
+ ) })
813
+ ] }),
814
+ /* @__PURE__ */ jsxs("tr", { children: [
815
+ /* @__PURE__ */ jsx("td", { className: refractionLabelCellClass, children: "Add" }),
816
+ /* @__PURE__ */ jsx("td", { className: refractionDataCellClass, colSpan: 5, children: /* @__PURE__ */ jsx(
817
+ Input,
818
+ {
819
+ disabled,
820
+ type: "number",
821
+ step: "0.25",
822
+ className: refractionInputClass,
823
+ value: safe.refraction.add.right ?? "",
824
+ onChange: (e) => setRefractionAdd("refraction", "right", e.target.value)
825
+ }
826
+ ) }),
827
+ /* @__PURE__ */ jsx("td", { className: refractionDataCellClass, colSpan: 5, children: /* @__PURE__ */ jsx(
828
+ Input,
829
+ {
830
+ disabled,
831
+ type: "number",
832
+ step: "0.25",
833
+ className: refractionInputClass,
834
+ value: safe.refraction.add.left ?? "",
835
+ onChange: (e) => setRefractionAdd("refraction", "left", e.target.value)
836
+ }
837
+ ) })
838
+ ] })
839
+ ] })
840
+ ] }) })
841
+ ] }),
842
+ /* @__PURE__ */ jsxs("section", { className: sectionWrapperClass, children: [
843
+ /* @__PURE__ */ jsx("div", { className: sectionHeaderClass, children: /* @__PURE__ */ jsx("span", { children: "Dilated Refraction" }) }),
844
+ /* @__PURE__ */ jsx("div", { className: sectionBodyClass, children: /* @__PURE__ */ jsxs("table", { className: refractionTableClass, children: [
845
+ /* @__PURE__ */ jsxs("colgroup", { children: [
846
+ /* @__PURE__ */ jsx("col", { className: "w-[10%]" }),
847
+ /* @__PURE__ */ jsx("col", { className: "w-[7%]" }),
848
+ /* @__PURE__ */ jsx("col", { className: "w-[7%]" }),
849
+ /* @__PURE__ */ jsx("col", { className: "w-[6%]" }),
850
+ /* @__PURE__ */ jsx("col", { className: "w-[8%]" }),
851
+ /* @__PURE__ */ jsx("col", { className: "w-[17%]" }),
852
+ /* @__PURE__ */ jsx("col", { className: "w-[7%]" }),
853
+ /* @__PURE__ */ jsx("col", { className: "w-[7%]" }),
854
+ /* @__PURE__ */ jsx("col", { className: "w-[6%]" }),
855
+ /* @__PURE__ */ jsx("col", { className: "w-[8%]" }),
856
+ /* @__PURE__ */ jsx("col", { className: "w-[17%]" })
857
+ ] }),
858
+ /* @__PURE__ */ jsxs("thead", { children: [
859
+ /* @__PURE__ */ jsxs("tr", { children: [
860
+ /* @__PURE__ */ jsx("th", { className: refractionHeaderCellClass }),
861
+ /* @__PURE__ */ jsx("th", { className: refractionHeaderCellClass, colSpan: 5, children: "Right Eye" }),
862
+ /* @__PURE__ */ jsx("th", { className: refractionHeaderCellClass, colSpan: 5, children: "Left Eye" })
863
+ ] }),
864
+ /* @__PURE__ */ jsxs("tr", { children: [
865
+ /* @__PURE__ */ jsx("th", { className: refractionHeaderCellClass }),
866
+ /* @__PURE__ */ jsx("th", { className: refractionHeaderCellClass, children: "Sph" }),
867
+ /* @__PURE__ */ jsx("th", { className: refractionHeaderCellClass, children: "Cyl" }),
868
+ /* @__PURE__ */ jsx("th", { className: refractionHeaderCellClass, children: "Axis" }),
869
+ /* @__PURE__ */ jsx("th", { className: refractionHeaderCellClass, children: "Prism" }),
870
+ /* @__PURE__ */ jsx("th", { className: refractionHeaderCellClass, children: "V/A" }),
871
+ /* @__PURE__ */ jsx("th", { className: refractionHeaderCellClass, children: "Sph" }),
872
+ /* @__PURE__ */ jsx("th", { className: refractionHeaderCellClass, children: "Cyl" }),
873
+ /* @__PURE__ */ jsx("th", { className: refractionHeaderCellClass, children: "Axis" }),
874
+ /* @__PURE__ */ jsx("th", { className: refractionHeaderCellClass, children: "Prism" }),
875
+ /* @__PURE__ */ jsx("th", { className: refractionHeaderCellClass, children: "V/A" })
876
+ ] })
877
+ ] }),
878
+ /* @__PURE__ */ jsxs("tbody", { children: [
879
+ /* @__PURE__ */ jsxs("tr", { children: [
880
+ /* @__PURE__ */ jsx("td", { className: refractionLabelCellClass, children: "Dilated" }),
881
+ /* @__PURE__ */ jsx("td", { className: refractionDataCellClass, children: /* @__PURE__ */ jsx(
882
+ Input,
883
+ {
884
+ disabled,
885
+ type: "number",
886
+ step: "0.25",
887
+ className: refractionInputClass,
888
+ value: safe.dilated_refraction.right_eye.sph ?? "",
889
+ onChange: (e) => setRefractionField(
890
+ "dilated_refraction",
891
+ "right_eye",
892
+ "sph",
893
+ e.target.value,
894
+ "float"
895
+ )
896
+ }
897
+ ) }),
898
+ /* @__PURE__ */ jsx("td", { className: refractionDataCellClass, children: /* @__PURE__ */ jsx(
899
+ Input,
900
+ {
901
+ disabled,
902
+ type: "number",
903
+ step: "0.25",
904
+ className: refractionInputClass,
905
+ value: safe.dilated_refraction.right_eye.cyl ?? "",
906
+ onChange: (e) => setRefractionField(
907
+ "dilated_refraction",
908
+ "right_eye",
909
+ "cyl",
910
+ e.target.value,
911
+ "float"
912
+ )
913
+ }
914
+ ) }),
915
+ /* @__PURE__ */ jsx("td", { className: refractionDataCellClass, children: /* @__PURE__ */ jsx(
916
+ Input,
917
+ {
918
+ disabled,
919
+ type: "number",
920
+ className: refractionInputClass,
921
+ value: safe.dilated_refraction.right_eye.axis ?? "",
922
+ onChange: (e) => setRefractionField(
923
+ "dilated_refraction",
924
+ "right_eye",
925
+ "axis",
926
+ e.target.value,
927
+ "int"
928
+ )
929
+ }
930
+ ) }),
931
+ /* @__PURE__ */ jsx("td", { className: refractionDataCellClass, children: /* @__PURE__ */ jsx(
932
+ Input,
933
+ {
934
+ disabled,
935
+ type: "number",
936
+ step: "0.25",
937
+ className: refractionInputClass,
938
+ value: safe.dilated_refraction.right_eye.prism ?? "",
939
+ onChange: (e) => setRefractionField(
940
+ "dilated_refraction",
941
+ "right_eye",
942
+ "prism",
943
+ e.target.value,
944
+ "float"
945
+ )
946
+ }
947
+ ) }),
948
+ /* @__PURE__ */ jsx("td", { className: refractionDataCellClass, children: /* @__PURE__ */ jsx(
949
+ "select",
950
+ {
951
+ disabled,
952
+ className: refractionSelectClass,
953
+ value: safe.dilated_refraction.right_eye.va,
954
+ onChange: (e) => setRefractionField(
955
+ "dilated_refraction",
956
+ "right_eye",
957
+ "va",
958
+ e.target.value,
959
+ "select"
960
+ ),
961
+ children: VA_OPTIONS.map((opt) => /* @__PURE__ */ jsx("option", { value: opt, children: opt }, opt || "blank"))
962
+ }
963
+ ) }),
964
+ /* @__PURE__ */ jsx("td", { className: refractionDataCellClass, children: /* @__PURE__ */ jsx(
965
+ Input,
966
+ {
967
+ disabled,
968
+ type: "number",
969
+ step: "0.25",
970
+ className: refractionInputClass,
971
+ value: safe.dilated_refraction.left_eye.sph ?? "",
972
+ onChange: (e) => setRefractionField(
973
+ "dilated_refraction",
974
+ "left_eye",
975
+ "sph",
976
+ e.target.value,
977
+ "float"
978
+ )
979
+ }
980
+ ) }),
981
+ /* @__PURE__ */ jsx("td", { className: refractionDataCellClass, children: /* @__PURE__ */ jsx(
982
+ Input,
983
+ {
984
+ disabled,
985
+ type: "number",
986
+ step: "0.25",
987
+ className: refractionInputClass,
988
+ value: safe.dilated_refraction.left_eye.cyl ?? "",
989
+ onChange: (e) => setRefractionField(
990
+ "dilated_refraction",
991
+ "left_eye",
992
+ "cyl",
993
+ e.target.value,
994
+ "float"
995
+ )
996
+ }
997
+ ) }),
998
+ /* @__PURE__ */ jsx("td", { className: refractionDataCellClass, children: /* @__PURE__ */ jsx(
999
+ Input,
1000
+ {
1001
+ disabled,
1002
+ type: "number",
1003
+ className: refractionInputClass,
1004
+ value: safe.dilated_refraction.left_eye.axis ?? "",
1005
+ onChange: (e) => setRefractionField(
1006
+ "dilated_refraction",
1007
+ "left_eye",
1008
+ "axis",
1009
+ e.target.value,
1010
+ "int"
1011
+ )
1012
+ }
1013
+ ) }),
1014
+ /* @__PURE__ */ jsx("td", { className: refractionDataCellClass, children: /* @__PURE__ */ jsx(
1015
+ Input,
1016
+ {
1017
+ disabled,
1018
+ type: "number",
1019
+ step: "0.25",
1020
+ className: refractionInputClass,
1021
+ value: safe.dilated_refraction.left_eye.prism ?? "",
1022
+ onChange: (e) => setRefractionField(
1023
+ "dilated_refraction",
1024
+ "left_eye",
1025
+ "prism",
1026
+ e.target.value,
1027
+ "float"
1028
+ )
1029
+ }
1030
+ ) }),
1031
+ /* @__PURE__ */ jsx("td", { className: refractionDataCellClass, children: /* @__PURE__ */ jsx(
1032
+ "select",
1033
+ {
1034
+ disabled,
1035
+ className: refractionSelectClass,
1036
+ value: safe.dilated_refraction.left_eye.va,
1037
+ onChange: (e) => setRefractionField(
1038
+ "dilated_refraction",
1039
+ "left_eye",
1040
+ "va",
1041
+ e.target.value,
1042
+ "select"
1043
+ ),
1044
+ children: VA_OPTIONS.map((opt) => /* @__PURE__ */ jsx("option", { value: opt, children: opt }, opt || "blank"))
1045
+ }
1046
+ ) })
1047
+ ] }),
1048
+ /* @__PURE__ */ jsxs("tr", { children: [
1049
+ /* @__PURE__ */ jsx("td", { className: refractionLabelCellClass, children: "Add" }),
1050
+ /* @__PURE__ */ jsx("td", { className: refractionDataCellClass, colSpan: 5, children: /* @__PURE__ */ jsx(
1051
+ Input,
1052
+ {
1053
+ disabled,
1054
+ type: "number",
1055
+ step: "0.25",
1056
+ className: refractionInputClass,
1057
+ value: safe.dilated_refraction.add.right ?? "",
1058
+ onChange: (e) => setRefractionAdd("dilated_refraction", "right", e.target.value)
1059
+ }
1060
+ ) }),
1061
+ /* @__PURE__ */ jsx("td", { className: refractionDataCellClass, colSpan: 5, children: /* @__PURE__ */ jsx(
1062
+ Input,
1063
+ {
1064
+ disabled,
1065
+ type: "number",
1066
+ step: "0.25",
1067
+ className: refractionInputClass,
1068
+ value: safe.dilated_refraction.add.left ?? "",
1069
+ onChange: (e) => setRefractionAdd("dilated_refraction", "left", e.target.value)
1070
+ }
1071
+ ) })
1072
+ ] })
1073
+ ] })
1074
+ ] }) })
1075
+ ] }),
1076
+ /* @__PURE__ */ jsxs("section", { className: sectionWrapperClass, children: [
1077
+ /* @__PURE__ */ jsx("div", { className: sectionHeaderClass, children: /* @__PURE__ */ jsx("span", { children: "Glass Power Prescription" }) }),
1078
+ /* @__PURE__ */ jsx("div", { className: sectionBodyClass, children: /* @__PURE__ */ jsxs("table", { className: refractionTableClass, children: [
1079
+ /* @__PURE__ */ jsxs("colgroup", { children: [
1080
+ /* @__PURE__ */ jsx("col", { className: "w-[10%]" }),
1081
+ /* @__PURE__ */ jsx("col", { className: "w-[7%]" }),
1082
+ /* @__PURE__ */ jsx("col", { className: "w-[7%]" }),
1083
+ /* @__PURE__ */ jsx("col", { className: "w-[6%]" }),
1084
+ /* @__PURE__ */ jsx("col", { className: "w-[8%]" }),
1085
+ /* @__PURE__ */ jsx("col", { className: "w-[17%]" }),
1086
+ /* @__PURE__ */ jsx("col", { className: "w-[7%]" }),
1087
+ /* @__PURE__ */ jsx("col", { className: "w-[7%]" }),
1088
+ /* @__PURE__ */ jsx("col", { className: "w-[6%]" }),
1089
+ /* @__PURE__ */ jsx("col", { className: "w-[8%]" }),
1090
+ /* @__PURE__ */ jsx("col", { className: "w-[17%]" })
1091
+ ] }),
1092
+ /* @__PURE__ */ jsxs("thead", { children: [
1093
+ /* @__PURE__ */ jsxs("tr", { children: [
1094
+ /* @__PURE__ */ jsx("th", { className: refractionHeaderCellClass }),
1095
+ /* @__PURE__ */ jsx("th", { className: refractionHeaderCellClass, colSpan: 5, children: "Right Eye" }),
1096
+ /* @__PURE__ */ jsx("th", { className: refractionHeaderCellClass, colSpan: 5, children: "Left Eye" })
1097
+ ] }),
1098
+ /* @__PURE__ */ jsxs("tr", { children: [
1099
+ /* @__PURE__ */ jsx("th", { className: refractionHeaderCellClass }),
1100
+ /* @__PURE__ */ jsx("th", { className: refractionHeaderCellClass, children: "Sph" }),
1101
+ /* @__PURE__ */ jsx("th", { className: refractionHeaderCellClass, children: "Cyl" }),
1102
+ /* @__PURE__ */ jsx("th", { className: refractionHeaderCellClass, children: "Axis" }),
1103
+ /* @__PURE__ */ jsx("th", { className: refractionHeaderCellClass, children: "Prism" }),
1104
+ /* @__PURE__ */ jsx("th", { className: refractionHeaderCellClass, children: "V/A" }),
1105
+ /* @__PURE__ */ jsx("th", { className: refractionHeaderCellClass, children: "Sph" }),
1106
+ /* @__PURE__ */ jsx("th", { className: refractionHeaderCellClass, children: "Cyl" }),
1107
+ /* @__PURE__ */ jsx("th", { className: refractionHeaderCellClass, children: "Axis" }),
1108
+ /* @__PURE__ */ jsx("th", { className: refractionHeaderCellClass, children: "Prism" }),
1109
+ /* @__PURE__ */ jsx("th", { className: refractionHeaderCellClass, children: "V/A" })
1110
+ ] })
1111
+ ] }),
1112
+ /* @__PURE__ */ jsxs("tbody", { children: [
1113
+ /* @__PURE__ */ jsxs("tr", { children: [
1114
+ /* @__PURE__ */ jsx("td", { className: refractionLabelCellClass, children: "Glass Power" }),
1115
+ /* @__PURE__ */ jsx("td", { className: refractionDataCellClass, children: /* @__PURE__ */ jsx(
1116
+ Input,
1117
+ {
1118
+ disabled,
1119
+ type: "number",
1120
+ step: "0.25",
1121
+ className: refractionInputClass,
1122
+ value: safe.glass_power_prescription.right_eye.sph ?? "",
1123
+ onChange: (e) => setRefractionField(
1124
+ "glass_power_prescription",
1125
+ "right_eye",
1126
+ "sph",
1127
+ e.target.value,
1128
+ "float"
1129
+ )
1130
+ }
1131
+ ) }),
1132
+ /* @__PURE__ */ jsx("td", { className: refractionDataCellClass, children: /* @__PURE__ */ jsx(
1133
+ Input,
1134
+ {
1135
+ disabled,
1136
+ type: "number",
1137
+ step: "0.25",
1138
+ className: refractionInputClass,
1139
+ value: safe.glass_power_prescription.right_eye.cyl ?? "",
1140
+ onChange: (e) => setRefractionField(
1141
+ "glass_power_prescription",
1142
+ "right_eye",
1143
+ "cyl",
1144
+ e.target.value,
1145
+ "float"
1146
+ )
1147
+ }
1148
+ ) }),
1149
+ /* @__PURE__ */ jsx("td", { className: refractionDataCellClass, children: /* @__PURE__ */ jsx(
1150
+ Input,
1151
+ {
1152
+ disabled,
1153
+ type: "number",
1154
+ className: refractionInputClass,
1155
+ value: safe.glass_power_prescription.right_eye.axis ?? "",
1156
+ onChange: (e) => setRefractionField(
1157
+ "glass_power_prescription",
1158
+ "right_eye",
1159
+ "axis",
1160
+ e.target.value,
1161
+ "int"
1162
+ )
1163
+ }
1164
+ ) }),
1165
+ /* @__PURE__ */ jsx("td", { className: refractionDataCellClass, children: /* @__PURE__ */ jsx(
1166
+ Input,
1167
+ {
1168
+ disabled,
1169
+ type: "number",
1170
+ step: "0.25",
1171
+ className: refractionInputClass,
1172
+ value: safe.glass_power_prescription.right_eye.prism ?? "",
1173
+ onChange: (e) => setRefractionField(
1174
+ "glass_power_prescription",
1175
+ "right_eye",
1176
+ "prism",
1177
+ e.target.value,
1178
+ "float"
1179
+ )
1180
+ }
1181
+ ) }),
1182
+ /* @__PURE__ */ jsx("td", { className: refractionDataCellClass, children: /* @__PURE__ */ jsx(
1183
+ "select",
1184
+ {
1185
+ disabled,
1186
+ className: refractionSelectClass,
1187
+ value: safe.glass_power_prescription.right_eye.va,
1188
+ onChange: (e) => setRefractionField(
1189
+ "glass_power_prescription",
1190
+ "right_eye",
1191
+ "va",
1192
+ e.target.value,
1193
+ "select"
1194
+ ),
1195
+ children: VA_OPTIONS.map((opt) => /* @__PURE__ */ jsx("option", { value: opt, children: opt }, opt || "blank"))
1196
+ }
1197
+ ) }),
1198
+ /* @__PURE__ */ jsx("td", { className: refractionDataCellClass, children: /* @__PURE__ */ jsx(
1199
+ Input,
1200
+ {
1201
+ disabled,
1202
+ type: "number",
1203
+ step: "0.25",
1204
+ className: refractionInputClass,
1205
+ value: safe.glass_power_prescription.left_eye.sph ?? "",
1206
+ onChange: (e) => setRefractionField(
1207
+ "glass_power_prescription",
1208
+ "left_eye",
1209
+ "sph",
1210
+ e.target.value,
1211
+ "float"
1212
+ )
1213
+ }
1214
+ ) }),
1215
+ /* @__PURE__ */ jsx("td", { className: refractionDataCellClass, children: /* @__PURE__ */ jsx(
1216
+ Input,
1217
+ {
1218
+ disabled,
1219
+ type: "number",
1220
+ step: "0.25",
1221
+ className: refractionInputClass,
1222
+ value: safe.glass_power_prescription.left_eye.cyl ?? "",
1223
+ onChange: (e) => setRefractionField(
1224
+ "glass_power_prescription",
1225
+ "left_eye",
1226
+ "cyl",
1227
+ e.target.value,
1228
+ "float"
1229
+ )
1230
+ }
1231
+ ) }),
1232
+ /* @__PURE__ */ jsx("td", { className: refractionDataCellClass, children: /* @__PURE__ */ jsx(
1233
+ Input,
1234
+ {
1235
+ disabled,
1236
+ type: "number",
1237
+ className: refractionInputClass,
1238
+ value: safe.glass_power_prescription.left_eye.axis ?? "",
1239
+ onChange: (e) => setRefractionField(
1240
+ "glass_power_prescription",
1241
+ "left_eye",
1242
+ "axis",
1243
+ e.target.value,
1244
+ "int"
1245
+ )
1246
+ }
1247
+ ) }),
1248
+ /* @__PURE__ */ jsx("td", { className: refractionDataCellClass, children: /* @__PURE__ */ jsx(
1249
+ Input,
1250
+ {
1251
+ disabled,
1252
+ type: "number",
1253
+ step: "0.25",
1254
+ className: refractionInputClass,
1255
+ value: safe.glass_power_prescription.left_eye.prism ?? "",
1256
+ onChange: (e) => setRefractionField(
1257
+ "glass_power_prescription",
1258
+ "left_eye",
1259
+ "prism",
1260
+ e.target.value,
1261
+ "float"
1262
+ )
1263
+ }
1264
+ ) }),
1265
+ /* @__PURE__ */ jsx("td", { className: refractionDataCellClass, children: /* @__PURE__ */ jsx(
1266
+ "select",
1267
+ {
1268
+ disabled,
1269
+ className: refractionSelectClass,
1270
+ value: safe.glass_power_prescription.left_eye.va,
1271
+ onChange: (e) => setRefractionField(
1272
+ "glass_power_prescription",
1273
+ "left_eye",
1274
+ "va",
1275
+ e.target.value,
1276
+ "select"
1277
+ ),
1278
+ children: VA_OPTIONS.map((opt) => /* @__PURE__ */ jsx("option", { value: opt, children: opt }, opt || "blank"))
1279
+ }
1280
+ ) })
1281
+ ] }),
1282
+ /* @__PURE__ */ jsxs("tr", { children: [
1283
+ /* @__PURE__ */ jsx("td", { className: refractionLabelCellClass, children: "Add" }),
1284
+ /* @__PURE__ */ jsx("td", { className: refractionDataCellClass, colSpan: 5, children: /* @__PURE__ */ jsx(
1285
+ Input,
1286
+ {
1287
+ disabled,
1288
+ type: "number",
1289
+ step: "0.25",
1290
+ className: refractionInputClass,
1291
+ value: safe.glass_power_prescription.add.right ?? "",
1292
+ onChange: (e) => setRefractionAdd("glass_power_prescription", "right", e.target.value)
1293
+ }
1294
+ ) }),
1295
+ /* @__PURE__ */ jsx("td", { className: refractionDataCellClass, colSpan: 5, children: /* @__PURE__ */ jsx(
1296
+ Input,
1297
+ {
1298
+ disabled,
1299
+ type: "number",
1300
+ step: "0.25",
1301
+ className: refractionInputClass,
1302
+ value: safe.glass_power_prescription.add.left ?? "",
1303
+ onChange: (e) => setRefractionAdd("glass_power_prescription", "left", e.target.value)
1304
+ }
1305
+ ) })
1306
+ ] })
1307
+ ] })
1308
+ ] }) })
1309
+ ] }),
1310
+ /* @__PURE__ */ jsxs("section", { className: sectionWrapperClass, children: [
1311
+ /* @__PURE__ */ jsx("div", { className: sectionHeaderClass, children: /* @__PURE__ */ jsx("span", { children: "Notes" }) }),
1312
+ /* @__PURE__ */ jsx("div", { className: sectionBodyClass, children: /* @__PURE__ */ jsx(
1313
+ Textarea,
1314
+ {
1315
+ disabled,
1316
+ rows: 4,
1317
+ className: "w-full text-xs min-h-[100px]",
1318
+ placeholder: "Enter additional notes...",
1319
+ value: safe.notes,
1320
+ onChange: (e) => setNotes(e.target.value)
1321
+ }
1322
+ ) })
1323
+ ] })
1324
+ ] });
1325
+ };
1326
+
1327
+ export { OphthalmologyWidget };
1328
+ //# sourceMappingURL=OphthalmologyWidget-CRQMN5QU.mjs.map
1329
+ //# sourceMappingURL=OphthalmologyWidget-CRQMN5QU.mjs.map