@burdenoff/microfe-govcitizenhub 2026.525.1 → 2026.704.2

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 (912) hide show
  1. package/dist/_virtual/_rolldown/runtime.js +20 -0
  2. package/dist/govcitizenhub/GovCitizenHubRoot.js +134 -147
  3. package/dist/govcitizenhub/GovCitizenHubRoot.js.map +1 -1
  4. package/dist/govcitizenhub/GovCitizenHubRoutes.js +78 -54
  5. package/dist/govcitizenhub/GovCitizenHubRoutes.js.map +1 -1
  6. package/dist/govcitizenhub/components/ConfirmDialog.js +56 -0
  7. package/dist/govcitizenhub/components/ConfirmDialog.js.map +1 -0
  8. package/dist/govcitizenhub/components/DocumentUploadField.js +62 -0
  9. package/dist/govcitizenhub/components/DocumentUploadField.js.map +1 -0
  10. package/dist/govcitizenhub/components/EmptyState.js +35 -0
  11. package/dist/govcitizenhub/components/EmptyState.js.map +1 -0
  12. package/dist/govcitizenhub/components/FilterTabs.js +27 -0
  13. package/dist/govcitizenhub/components/FilterTabs.js.map +1 -0
  14. package/dist/govcitizenhub/components/GovCharts.js +184 -0
  15. package/dist/govcitizenhub/components/GovCharts.js.map +1 -0
  16. package/dist/govcitizenhub/components/MetricsCard.js +46 -0
  17. package/dist/govcitizenhub/components/MetricsCard.js.map +1 -0
  18. package/dist/govcitizenhub/components/PageLayout.js +59 -0
  19. package/dist/govcitizenhub/components/PageLayout.js.map +1 -0
  20. package/dist/govcitizenhub/components/Pagination.js +50 -0
  21. package/dist/govcitizenhub/components/Pagination.js.map +1 -0
  22. package/dist/govcitizenhub/components/StateViews.js +49 -0
  23. package/dist/govcitizenhub/components/StateViews.js.map +1 -0
  24. package/dist/govcitizenhub/components/StatusBadge.js +66 -0
  25. package/dist/govcitizenhub/components/StatusBadge.js.map +1 -0
  26. package/dist/govcitizenhub/components/TagInput.js +45 -0
  27. package/dist/govcitizenhub/components/TagInput.js.map +1 -0
  28. package/dist/govcitizenhub/context/GovCitizenHubContext.js +85 -0
  29. package/dist/govcitizenhub/context/GovCitizenHubContext.js.map +1 -0
  30. package/dist/govcitizenhub/context/index.js +1 -0
  31. package/dist/govcitizenhub/hooks/index.js +3 -0
  32. package/dist/govcitizenhub/hooks/useCursorPager.js +25 -0
  33. package/dist/govcitizenhub/hooks/useCursorPager.js.map +1 -0
  34. package/dist/govcitizenhub/hooks/useFiles.js +67 -0
  35. package/dist/govcitizenhub/hooks/useFiles.js.map +1 -0
  36. package/dist/govcitizenhub/hooks/useGovApi.js +390 -0
  37. package/dist/govcitizenhub/hooks/useGovApi.js.map +1 -0
  38. package/dist/govcitizenhub/index.js +2 -2
  39. package/dist/govcitizenhub/lib/graphql-cache.js +9 -0
  40. package/dist/govcitizenhub/lib/graphql-cache.js.map +1 -0
  41. package/dist/govcitizenhub/lib/toast.js +39 -0
  42. package/dist/govcitizenhub/lib/toast.js.map +1 -0
  43. package/dist/govcitizenhub/pages/DashboardPage.js +209 -237
  44. package/dist/govcitizenhub/pages/DashboardPage.js.map +1 -1
  45. package/dist/govcitizenhub/pages/agencies/AgenciesPage.js +186 -0
  46. package/dist/govcitizenhub/pages/agencies/AgenciesPage.js.map +1 -0
  47. package/dist/govcitizenhub/pages/agencies/AgencyFormDialog.js +189 -0
  48. package/dist/govcitizenhub/pages/agencies/AgencyFormDialog.js.map +1 -0
  49. package/dist/govcitizenhub/pages/applications/ApplicationDetailPage.js +672 -0
  50. package/dist/govcitizenhub/pages/applications/ApplicationDetailPage.js.map +1 -0
  51. package/dist/govcitizenhub/pages/applications/ApplicationsPage.js +131 -0
  52. package/dist/govcitizenhub/pages/applications/ApplicationsPage.js.map +1 -0
  53. package/dist/govcitizenhub/pages/applications/NewApplicationPage.js +250 -0
  54. package/dist/govcitizenhub/pages/applications/NewApplicationPage.js.map +1 -0
  55. package/dist/govcitizenhub/pages/documents/DocumentsPage.js +161 -0
  56. package/dist/govcitizenhub/pages/documents/DocumentsPage.js.map +1 -0
  57. package/dist/govcitizenhub/pages/grievances/GrievanceDetailPage.js +275 -0
  58. package/dist/govcitizenhub/pages/grievances/GrievanceDetailPage.js.map +1 -0
  59. package/dist/govcitizenhub/pages/grievances/GrievancesPage.js +326 -0
  60. package/dist/govcitizenhub/pages/grievances/GrievancesPage.js.map +1 -0
  61. package/dist/govcitizenhub/pages/payments/PaymentsPage.js +251 -0
  62. package/dist/govcitizenhub/pages/payments/PaymentsPage.js.map +1 -0
  63. package/dist/govcitizenhub/pages/permits/IssuePermitDialog.js +161 -0
  64. package/dist/govcitizenhub/pages/permits/IssuePermitDialog.js.map +1 -0
  65. package/dist/govcitizenhub/pages/permits/PermitsPage.js +168 -0
  66. package/dist/govcitizenhub/pages/permits/PermitsPage.js.map +1 -0
  67. package/dist/govcitizenhub/pages/permits/VerifyPermitPage.js +131 -0
  68. package/dist/govcitizenhub/pages/permits/VerifyPermitPage.js.map +1 -0
  69. package/dist/govcitizenhub/pages/services/ServiceDetailPage.js +217 -0
  70. package/dist/govcitizenhub/pages/services/ServiceDetailPage.js.map +1 -0
  71. package/dist/govcitizenhub/pages/services/ServiceFormDialog.js +293 -0
  72. package/dist/govcitizenhub/pages/services/ServiceFormDialog.js.map +1 -0
  73. package/dist/govcitizenhub/pages/services/ServicesPage.js +186 -0
  74. package/dist/govcitizenhub/pages/services/ServicesPage.js.map +1 -0
  75. package/dist/govcitizenhub/utils/cn.js +2 -0
  76. package/dist/govcitizenhub/utils/formatters.js +58 -0
  77. package/dist/govcitizenhub/utils/formatters.js.map +1 -0
  78. package/dist/govcitizenhub/utils/navigation.js +1 -1
  79. package/dist/govcitizenhub/utils/navigation.js.map +1 -1
  80. package/dist/index.js +2 -3
  81. package/dist/node_modules/clsx/dist/clsx.js +18 -0
  82. package/dist/node_modules/clsx/dist/clsx.js.map +1 -0
  83. package/dist/node_modules/d3-array/src/ascending.js +8 -0
  84. package/dist/node_modules/d3-array/src/ascending.js.map +1 -0
  85. package/dist/node_modules/d3-array/src/bisect.js +10 -0
  86. package/dist/node_modules/d3-array/src/bisect.js.map +1 -0
  87. package/dist/node_modules/d3-array/src/bisector.js +43 -0
  88. package/dist/node_modules/d3-array/src/bisector.js.map +1 -0
  89. package/dist/node_modules/d3-array/src/descending.js +8 -0
  90. package/dist/node_modules/d3-array/src/descending.js.map +1 -0
  91. package/dist/node_modules/d3-array/src/max.js +14 -0
  92. package/dist/node_modules/d3-array/src/max.js.map +1 -0
  93. package/dist/node_modules/d3-array/src/min.js +14 -0
  94. package/dist/node_modules/d3-array/src/min.js.map +1 -0
  95. package/dist/node_modules/d3-array/src/number.js +15 -0
  96. package/dist/node_modules/d3-array/src/number.js.map +1 -0
  97. package/dist/node_modules/d3-array/src/quantile.js +25 -0
  98. package/dist/node_modules/d3-array/src/quantile.js.map +1 -0
  99. package/dist/node_modules/d3-array/src/quickselect.js +26 -0
  100. package/dist/node_modules/d3-array/src/quickselect.js.map +1 -0
  101. package/dist/node_modules/d3-array/src/range.js +10 -0
  102. package/dist/node_modules/d3-array/src/range.js.map +1 -0
  103. package/dist/node_modules/d3-array/src/sort.js +17 -0
  104. package/dist/node_modules/d3-array/src/sort.js.map +1 -0
  105. package/dist/node_modules/d3-array/src/ticks.js +34 -0
  106. package/dist/node_modules/d3-array/src/ticks.js.map +1 -0
  107. package/dist/node_modules/d3-color/src/color.js +291 -0
  108. package/dist/node_modules/d3-color/src/color.js.map +1 -0
  109. package/dist/node_modules/d3-color/src/define.js +13 -0
  110. package/dist/node_modules/d3-color/src/define.js.map +1 -0
  111. package/dist/node_modules/d3-format/src/defaultLocale.js +15 -0
  112. package/dist/node_modules/d3-format/src/defaultLocale.js.map +1 -0
  113. package/dist/node_modules/d3-format/src/exponent.js +9 -0
  114. package/dist/node_modules/d3-format/src/exponent.js.map +1 -0
  115. package/dist/node_modules/d3-format/src/formatDecimal.js +13 -0
  116. package/dist/node_modules/d3-format/src/formatDecimal.js.map +1 -0
  117. package/dist/node_modules/d3-format/src/formatGroup.js +11 -0
  118. package/dist/node_modules/d3-format/src/formatGroup.js.map +1 -0
  119. package/dist/node_modules/d3-format/src/formatNumerals.js +12 -0
  120. package/dist/node_modules/d3-format/src/formatNumerals.js.map +1 -0
  121. package/dist/node_modules/d3-format/src/formatPrefixAuto.js +13 -0
  122. package/dist/node_modules/d3-format/src/formatPrefixAuto.js.map +1 -0
  123. package/dist/node_modules/d3-format/src/formatRounded.js +12 -0
  124. package/dist/node_modules/d3-format/src/formatRounded.js.map +1 -0
  125. package/dist/node_modules/d3-format/src/formatSpecifier.js +29 -0
  126. package/dist/node_modules/d3-format/src/formatSpecifier.js.map +1 -0
  127. package/dist/node_modules/d3-format/src/formatTrim.js +20 -0
  128. package/dist/node_modules/d3-format/src/formatTrim.js.map +1 -0
  129. package/dist/node_modules/d3-format/src/formatTypes.js +23 -0
  130. package/dist/node_modules/d3-format/src/formatTypes.js.map +1 -0
  131. package/dist/node_modules/d3-format/src/identity.js +8 -0
  132. package/dist/node_modules/d3-format/src/identity.js.map +1 -0
  133. package/dist/node_modules/d3-format/src/locale.js +86 -0
  134. package/dist/node_modules/d3-format/src/locale.js.map +1 -0
  135. package/dist/node_modules/d3-format/src/precisionFixed.js +9 -0
  136. package/dist/node_modules/d3-format/src/precisionFixed.js.map +1 -0
  137. package/dist/node_modules/d3-format/src/precisionPrefix.js +9 -0
  138. package/dist/node_modules/d3-format/src/precisionPrefix.js.map +1 -0
  139. package/dist/node_modules/d3-format/src/precisionRound.js +9 -0
  140. package/dist/node_modules/d3-format/src/precisionRound.js.map +1 -0
  141. package/dist/node_modules/d3-interpolate/src/array.js +15 -0
  142. package/dist/node_modules/d3-interpolate/src/array.js.map +1 -0
  143. package/dist/node_modules/d3-interpolate/src/basis.js +16 -0
  144. package/dist/node_modules/d3-interpolate/src/basis.js.map +1 -0
  145. package/dist/node_modules/d3-interpolate/src/basisClosed.js +13 -0
  146. package/dist/node_modules/d3-interpolate/src/basisClosed.js.map +1 -0
  147. package/dist/node_modules/d3-interpolate/src/color.js +25 -0
  148. package/dist/node_modules/d3-interpolate/src/color.js.map +1 -0
  149. package/dist/node_modules/d3-interpolate/src/constant.js +6 -0
  150. package/dist/node_modules/d3-interpolate/src/constant.js.map +1 -0
  151. package/dist/node_modules/d3-interpolate/src/date.js +11 -0
  152. package/dist/node_modules/d3-interpolate/src/date.js.map +1 -0
  153. package/dist/node_modules/d3-interpolate/src/number.js +10 -0
  154. package/dist/node_modules/d3-interpolate/src/number.js.map +1 -0
  155. package/dist/node_modules/d3-interpolate/src/numberArray.js +16 -0
  156. package/dist/node_modules/d3-interpolate/src/numberArray.js.map +1 -0
  157. package/dist/node_modules/d3-interpolate/src/object.js +14 -0
  158. package/dist/node_modules/d3-interpolate/src/object.js.map +1 -0
  159. package/dist/node_modules/d3-interpolate/src/piecewise.js +14 -0
  160. package/dist/node_modules/d3-interpolate/src/piecewise.js.map +1 -0
  161. package/dist/node_modules/d3-interpolate/src/rgb.js +19 -0
  162. package/dist/node_modules/d3-interpolate/src/rgb.js.map +1 -0
  163. package/dist/node_modules/d3-interpolate/src/round.js +10 -0
  164. package/dist/node_modules/d3-interpolate/src/round.js.map +1 -0
  165. package/dist/node_modules/d3-interpolate/src/string.js +28 -0
  166. package/dist/node_modules/d3-interpolate/src/string.js.map +1 -0
  167. package/dist/node_modules/d3-interpolate/src/value.js +18 -0
  168. package/dist/node_modules/d3-interpolate/src/value.js.map +1 -0
  169. package/dist/node_modules/d3-path/src/path.js +65 -0
  170. package/dist/node_modules/d3-path/src/path.js.map +1 -0
  171. package/dist/node_modules/d3-scale/src/band.js +52 -0
  172. package/dist/node_modules/d3-scale/src/band.js.map +1 -0
  173. package/dist/node_modules/d3-scale/src/constant.js +10 -0
  174. package/dist/node_modules/d3-scale/src/constant.js.map +1 -0
  175. package/dist/node_modules/d3-scale/src/continuous.js +73 -0
  176. package/dist/node_modules/d3-scale/src/continuous.js.map +1 -0
  177. package/dist/node_modules/d3-scale/src/diverging.js +82 -0
  178. package/dist/node_modules/d3-scale/src/diverging.js.map +1 -0
  179. package/dist/node_modules/d3-scale/src/identity.js +20 -0
  180. package/dist/node_modules/d3-scale/src/identity.js.map +1 -0
  181. package/dist/node_modules/d3-scale/src/init.js +29 -0
  182. package/dist/node_modules/d3-scale/src/init.js.map +1 -0
  183. package/dist/node_modules/d3-scale/src/linear.js +36 -0
  184. package/dist/node_modules/d3-scale/src/linear.js.map +1 -0
  185. package/dist/node_modules/d3-scale/src/log.js +77 -0
  186. package/dist/node_modules/d3-scale/src/log.js.map +1 -0
  187. package/dist/node_modules/d3-scale/src/nice.js +10 -0
  188. package/dist/node_modules/d3-scale/src/nice.js.map +1 -0
  189. package/dist/node_modules/d3-scale/src/number.js +8 -0
  190. package/dist/node_modules/d3-scale/src/number.js.map +1 -0
  191. package/dist/node_modules/d3-scale/src/ordinal.js +31 -0
  192. package/dist/node_modules/d3-scale/src/ordinal.js.map +1 -0
  193. package/dist/node_modules/d3-scale/src/pow.js +37 -0
  194. package/dist/node_modules/d3-scale/src/pow.js.map +1 -0
  195. package/dist/node_modules/d3-scale/src/quantile.js +37 -0
  196. package/dist/node_modules/d3-scale/src/quantile.js.map +1 -0
  197. package/dist/node_modules/d3-scale/src/quantize.js +33 -0
  198. package/dist/node_modules/d3-scale/src/quantize.js.map +1 -0
  199. package/dist/node_modules/d3-scale/src/radial.js +39 -0
  200. package/dist/node_modules/d3-scale/src/radial.js.map +1 -0
  201. package/dist/node_modules/d3-scale/src/sequential.js +67 -0
  202. package/dist/node_modules/d3-scale/src/sequential.js.map +1 -0
  203. package/dist/node_modules/d3-scale/src/sequentialQuantile.js +30 -0
  204. package/dist/node_modules/d3-scale/src/sequentialQuantile.js.map +1 -0
  205. package/dist/node_modules/d3-scale/src/symlog.js +30 -0
  206. package/dist/node_modules/d3-scale/src/symlog.js.map +1 -0
  207. package/dist/node_modules/d3-scale/src/threshold.js +25 -0
  208. package/dist/node_modules/d3-scale/src/threshold.js.map +1 -0
  209. package/dist/node_modules/d3-scale/src/tickFormat.js +31 -0
  210. package/dist/node_modules/d3-scale/src/tickFormat.js.map +1 -0
  211. package/dist/node_modules/d3-scale/src/time.js +47 -0
  212. package/dist/node_modules/d3-scale/src/time.js.map +1 -0
  213. package/dist/node_modules/d3-scale/src/utcTime.js +19 -0
  214. package/dist/node_modules/d3-scale/src/utcTime.js.map +1 -0
  215. package/dist/node_modules/d3-shape/src/area.js +55 -0
  216. package/dist/node_modules/d3-shape/src/area.js.map +1 -0
  217. package/dist/node_modules/d3-shape/src/array.js +8 -0
  218. package/dist/node_modules/d3-shape/src/array.js.map +1 -0
  219. package/dist/node_modules/d3-shape/src/constant.js +10 -0
  220. package/dist/node_modules/d3-shape/src/constant.js.map +1 -0
  221. package/dist/node_modules/d3-shape/src/curve/basis.js +49 -0
  222. package/dist/node_modules/d3-shape/src/curve/basis.js.map +1 -0
  223. package/dist/node_modules/d3-shape/src/curve/basisClosed.js +50 -0
  224. package/dist/node_modules/d3-shape/src/curve/basisClosed.js.map +1 -0
  225. package/dist/node_modules/d3-shape/src/curve/basisOpen.js +46 -0
  226. package/dist/node_modules/d3-shape/src/curve/basisOpen.js.map +1 -0
  227. package/dist/node_modules/d3-shape/src/curve/bump.js +40 -0
  228. package/dist/node_modules/d3-shape/src/curve/bump.js.map +1 -0
  229. package/dist/node_modules/d3-shape/src/curve/linear.js +36 -0
  230. package/dist/node_modules/d3-shape/src/curve/linear.js.map +1 -0
  231. package/dist/node_modules/d3-shape/src/curve/linearClosed.js +25 -0
  232. package/dist/node_modules/d3-shape/src/curve/linearClosed.js.map +1 -0
  233. package/dist/node_modules/d3-shape/src/curve/monotone.js +94 -0
  234. package/dist/node_modules/d3-shape/src/curve/monotone.js.map +1 -0
  235. package/dist/node_modules/d3-shape/src/curve/natural.js +39 -0
  236. package/dist/node_modules/d3-shape/src/curve/natural.js.map +1 -0
  237. package/dist/node_modules/d3-shape/src/curve/step.js +47 -0
  238. package/dist/node_modules/d3-shape/src/curve/step.js.map +1 -0
  239. package/dist/node_modules/d3-shape/src/line.js +30 -0
  240. package/dist/node_modules/d3-shape/src/line.js.map +1 -0
  241. package/dist/node_modules/d3-shape/src/math.js +8 -0
  242. package/dist/node_modules/d3-shape/src/math.js.map +1 -0
  243. package/dist/node_modules/d3-shape/src/noop.js +6 -0
  244. package/dist/node_modules/d3-shape/src/noop.js.map +1 -0
  245. package/dist/node_modules/d3-shape/src/offset/expand.js +15 -0
  246. package/dist/node_modules/d3-shape/src/offset/expand.js.map +1 -0
  247. package/dist/node_modules/d3-shape/src/offset/none.js +8 -0
  248. package/dist/node_modules/d3-shape/src/offset/none.js.map +1 -0
  249. package/dist/node_modules/d3-shape/src/offset/silhouette.js +15 -0
  250. package/dist/node_modules/d3-shape/src/offset/silhouette.js.map +1 -0
  251. package/dist/node_modules/d3-shape/src/offset/wiggle.js +21 -0
  252. package/dist/node_modules/d3-shape/src/offset/wiggle.js.map +1 -0
  253. package/dist/node_modules/d3-shape/src/order/none.js +9 -0
  254. package/dist/node_modules/d3-shape/src/order/none.js.map +1 -0
  255. package/dist/node_modules/d3-shape/src/path.js +19 -0
  256. package/dist/node_modules/d3-shape/src/path.js.map +1 -0
  257. package/dist/node_modules/d3-shape/src/point.js +11 -0
  258. package/dist/node_modules/d3-shape/src/point.js.map +1 -0
  259. package/dist/node_modules/d3-shape/src/stack.js +34 -0
  260. package/dist/node_modules/d3-shape/src/stack.js.map +1 -0
  261. package/dist/node_modules/d3-shape/src/symbol/circle.js +10 -0
  262. package/dist/node_modules/d3-shape/src/symbol/circle.js.map +1 -0
  263. package/dist/node_modules/d3-shape/src/symbol/cross.js +10 -0
  264. package/dist/node_modules/d3-shape/src/symbol/cross.js.map +1 -0
  265. package/dist/node_modules/d3-shape/src/symbol/diamond.js +10 -0
  266. package/dist/node_modules/d3-shape/src/symbol/diamond.js.map +1 -0
  267. package/dist/node_modules/d3-shape/src/symbol/square.js +10 -0
  268. package/dist/node_modules/d3-shape/src/symbol/square.js.map +1 -0
  269. package/dist/node_modules/d3-shape/src/symbol/star.js +15 -0
  270. package/dist/node_modules/d3-shape/src/symbol/star.js.map +1 -0
  271. package/dist/node_modules/d3-shape/src/symbol/triangle.js +10 -0
  272. package/dist/node_modules/d3-shape/src/symbol/triangle.js.map +1 -0
  273. package/dist/node_modules/d3-shape/src/symbol/wye.js +10 -0
  274. package/dist/node_modules/d3-shape/src/symbol/wye.js.map +1 -0
  275. package/dist/node_modules/d3-shape/src/symbol.js +23 -0
  276. package/dist/node_modules/d3-shape/src/symbol.js.map +1 -0
  277. package/dist/node_modules/d3-time/src/day.js +21 -0
  278. package/dist/node_modules/d3-time/src/day.js.map +1 -0
  279. package/dist/node_modules/d3-time/src/duration.js +6 -0
  280. package/dist/node_modules/d3-time/src/duration.js.map +1 -0
  281. package/dist/node_modules/d3-time/src/hour.js +19 -0
  282. package/dist/node_modules/d3-time/src/hour.js.map +1 -0
  283. package/dist/node_modules/d3-time/src/interval.js +28 -0
  284. package/dist/node_modules/d3-time/src/interval.js.map +1 -0
  285. package/dist/node_modules/d3-time/src/millisecond.js +14 -0
  286. package/dist/node_modules/d3-time/src/millisecond.js.map +1 -0
  287. package/dist/node_modules/d3-time/src/minute.js +19 -0
  288. package/dist/node_modules/d3-time/src/minute.js.map +1 -0
  289. package/dist/node_modules/d3-time/src/month.js +18 -0
  290. package/dist/node_modules/d3-time/src/month.js.map +1 -0
  291. package/dist/node_modules/d3-time/src/second.js +13 -0
  292. package/dist/node_modules/d3-time/src/second.js.map +1 -0
  293. package/dist/node_modules/d3-time/src/ticks.js +125 -0
  294. package/dist/node_modules/d3-time/src/ticks.js.map +1 -0
  295. package/dist/node_modules/d3-time/src/week.js +25 -0
  296. package/dist/node_modules/d3-time/src/week.js.map +1 -0
  297. package/dist/node_modules/d3-time/src/year.js +26 -0
  298. package/dist/node_modules/d3-time/src/year.js.map +1 -0
  299. package/dist/node_modules/d3-time-format/src/defaultLocale.js +62 -0
  300. package/dist/node_modules/d3-time-format/src/defaultLocale.js.map +1 -0
  301. package/dist/node_modules/d3-time-format/src/locale.js +490 -0
  302. package/dist/node_modules/d3-time-format/src/locale.js.map +1 -0
  303. package/dist/node_modules/decimal.js-light/decimal.js +378 -0
  304. package/dist/node_modules/decimal.js-light/decimal.js.map +1 -0
  305. package/dist/node_modules/eventemitter3/index.js +95 -0
  306. package/dist/node_modules/eventemitter3/index.js.map +1 -0
  307. package/dist/node_modules/fast-equals/dist/es/index.js +267 -0
  308. package/dist/node_modules/fast-equals/dist/es/index.js.map +1 -0
  309. package/dist/node_modules/internmap/src/index.js +40 -0
  310. package/dist/node_modules/internmap/src/index.js.map +1 -0
  311. package/dist/node_modules/lodash/_DataView.js +12 -0
  312. package/dist/node_modules/lodash/_DataView.js.map +1 -0
  313. package/dist/node_modules/lodash/_Hash.js +23 -0
  314. package/dist/node_modules/lodash/_Hash.js.map +1 -0
  315. package/dist/node_modules/lodash/_ListCache.js +23 -0
  316. package/dist/node_modules/lodash/_ListCache.js.map +1 -0
  317. package/dist/node_modules/lodash/_Map.js +12 -0
  318. package/dist/node_modules/lodash/_Map.js.map +1 -0
  319. package/dist/node_modules/lodash/_MapCache.js +23 -0
  320. package/dist/node_modules/lodash/_MapCache.js.map +1 -0
  321. package/dist/node_modules/lodash/_Promise.js +12 -0
  322. package/dist/node_modules/lodash/_Promise.js.map +1 -0
  323. package/dist/node_modules/lodash/_Set.js +12 -0
  324. package/dist/node_modules/lodash/_Set.js.map +1 -0
  325. package/dist/node_modules/lodash/_SetCache.js +18 -0
  326. package/dist/node_modules/lodash/_SetCache.js.map +1 -0
  327. package/dist/node_modules/lodash/_Stack.js +20 -0
  328. package/dist/node_modules/lodash/_Stack.js.map +1 -0
  329. package/dist/node_modules/lodash/_Symbol.js +11 -0
  330. package/dist/node_modules/lodash/_Symbol.js.map +1 -0
  331. package/dist/node_modules/lodash/_Uint8Array.js +11 -0
  332. package/dist/node_modules/lodash/_Uint8Array.js.map +1 -0
  333. package/dist/node_modules/lodash/_WeakMap.js +12 -0
  334. package/dist/node_modules/lodash/_WeakMap.js.map +1 -0
  335. package/dist/node_modules/lodash/_apply.js +19 -0
  336. package/dist/node_modules/lodash/_apply.js.map +1 -0
  337. package/dist/node_modules/lodash/_arrayEvery.js +14 -0
  338. package/dist/node_modules/lodash/_arrayEvery.js.map +1 -0
  339. package/dist/node_modules/lodash/_arrayFilter.js +17 -0
  340. package/dist/node_modules/lodash/_arrayFilter.js.map +1 -0
  341. package/dist/node_modules/lodash/_arrayIncludes.js +15 -0
  342. package/dist/node_modules/lodash/_arrayIncludes.js.map +1 -0
  343. package/dist/node_modules/lodash/_arrayIncludesWith.js +14 -0
  344. package/dist/node_modules/lodash/_arrayIncludesWith.js.map +1 -0
  345. package/dist/node_modules/lodash/_arrayLikeKeys.js +22 -0
  346. package/dist/node_modules/lodash/_arrayLikeKeys.js.map +1 -0
  347. package/dist/node_modules/lodash/_arrayMap.js +14 -0
  348. package/dist/node_modules/lodash/_arrayMap.js.map +1 -0
  349. package/dist/node_modules/lodash/_arrayPush.js +14 -0
  350. package/dist/node_modules/lodash/_arrayPush.js.map +1 -0
  351. package/dist/node_modules/lodash/_arraySome.js +14 -0
  352. package/dist/node_modules/lodash/_arraySome.js.map +1 -0
  353. package/dist/node_modules/lodash/_asciiToArray.js +13 -0
  354. package/dist/node_modules/lodash/_asciiToArray.js.map +1 -0
  355. package/dist/node_modules/lodash/_assocIndexOf.js +16 -0
  356. package/dist/node_modules/lodash/_assocIndexOf.js.map +1 -0
  357. package/dist/node_modules/lodash/_baseAssignValue.js +20 -0
  358. package/dist/node_modules/lodash/_baseAssignValue.js.map +1 -0
  359. package/dist/node_modules/lodash/_baseEach.js +13 -0
  360. package/dist/node_modules/lodash/_baseEach.js.map +1 -0
  361. package/dist/node_modules/lodash/_baseEvery.js +18 -0
  362. package/dist/node_modules/lodash/_baseEvery.js.map +1 -0
  363. package/dist/node_modules/lodash/_baseExtremum.js +19 -0
  364. package/dist/node_modules/lodash/_baseExtremum.js.map +1 -0
  365. package/dist/node_modules/lodash/_baseFindIndex.js +14 -0
  366. package/dist/node_modules/lodash/_baseFindIndex.js.map +1 -0
  367. package/dist/node_modules/lodash/_baseFlatten.js +21 -0
  368. package/dist/node_modules/lodash/_baseFlatten.js.map +1 -0
  369. package/dist/node_modules/lodash/_baseFor.js +11 -0
  370. package/dist/node_modules/lodash/_baseFor.js.map +1 -0
  371. package/dist/node_modules/lodash/_baseForOwn.js +16 -0
  372. package/dist/node_modules/lodash/_baseForOwn.js.map +1 -0
  373. package/dist/node_modules/lodash/_baseGet.js +18 -0
  374. package/dist/node_modules/lodash/_baseGet.js.map +1 -0
  375. package/dist/node_modules/lodash/_baseGetAllKeys.js +17 -0
  376. package/dist/node_modules/lodash/_baseGetAllKeys.js.map +1 -0
  377. package/dist/node_modules/lodash/_baseGetTag.js +17 -0
  378. package/dist/node_modules/lodash/_baseGetTag.js.map +1 -0
  379. package/dist/node_modules/lodash/_baseGt.js +13 -0
  380. package/dist/node_modules/lodash/_baseGt.js.map +1 -0
  381. package/dist/node_modules/lodash/_baseHasIn.js +13 -0
  382. package/dist/node_modules/lodash/_baseHasIn.js.map +1 -0
  383. package/dist/node_modules/lodash/_baseIndexOf.js +17 -0
  384. package/dist/node_modules/lodash/_baseIndexOf.js.map +1 -0
  385. package/dist/node_modules/lodash/_baseIsArguments.js +16 -0
  386. package/dist/node_modules/lodash/_baseIsArguments.js.map +1 -0
  387. package/dist/node_modules/lodash/_baseIsEqual.js +16 -0
  388. package/dist/node_modules/lodash/_baseIsEqual.js.map +1 -0
  389. package/dist/node_modules/lodash/_baseIsEqualDeep.js +37 -0
  390. package/dist/node_modules/lodash/_baseIsEqualDeep.js.map +1 -0
  391. package/dist/node_modules/lodash/_baseIsMatch.js +33 -0
  392. package/dist/node_modules/lodash/_baseIsMatch.js.map +1 -0
  393. package/dist/node_modules/lodash/_baseIsNaN.js +13 -0
  394. package/dist/node_modules/lodash/_baseIsNaN.js.map +1 -0
  395. package/dist/node_modules/lodash/_baseIsNative.js +18 -0
  396. package/dist/node_modules/lodash/_baseIsNative.js.map +1 -0
  397. package/dist/node_modules/lodash/_baseIsTypedArray.js +18 -0
  398. package/dist/node_modules/lodash/_baseIsTypedArray.js.map +1 -0
  399. package/dist/node_modules/lodash/_baseIteratee.js +19 -0
  400. package/dist/node_modules/lodash/_baseIteratee.js.map +1 -0
  401. package/dist/node_modules/lodash/_baseKeys.js +19 -0
  402. package/dist/node_modules/lodash/_baseKeys.js.map +1 -0
  403. package/dist/node_modules/lodash/_baseLt.js +13 -0
  404. package/dist/node_modules/lodash/_baseLt.js.map +1 -0
  405. package/dist/node_modules/lodash/_baseMap.js +19 -0
  406. package/dist/node_modules/lodash/_baseMap.js.map +1 -0
  407. package/dist/node_modules/lodash/_baseMatches.js +20 -0
  408. package/dist/node_modules/lodash/_baseMatches.js.map +1 -0
  409. package/dist/node_modules/lodash/_baseMatchesProperty.js +24 -0
  410. package/dist/node_modules/lodash/_baseMatchesProperty.js.map +1 -0
  411. package/dist/node_modules/lodash/_baseOrderBy.js +39 -0
  412. package/dist/node_modules/lodash/_baseOrderBy.js.map +1 -0
  413. package/dist/node_modules/lodash/_baseProperty.js +15 -0
  414. package/dist/node_modules/lodash/_baseProperty.js.map +1 -0
  415. package/dist/node_modules/lodash/_basePropertyDeep.js +17 -0
  416. package/dist/node_modules/lodash/_basePropertyDeep.js.map +1 -0
  417. package/dist/node_modules/lodash/_baseRange.js +15 -0
  418. package/dist/node_modules/lodash/_baseRange.js.map +1 -0
  419. package/dist/node_modules/lodash/_baseRest.js +17 -0
  420. package/dist/node_modules/lodash/_baseRest.js.map +1 -0
  421. package/dist/node_modules/lodash/_baseSetToString.js +21 -0
  422. package/dist/node_modules/lodash/_baseSetToString.js.map +1 -0
  423. package/dist/node_modules/lodash/_baseSlice.js +16 -0
  424. package/dist/node_modules/lodash/_baseSlice.js.map +1 -0
  425. package/dist/node_modules/lodash/_baseSome.js +18 -0
  426. package/dist/node_modules/lodash/_baseSome.js.map +1 -0
  427. package/dist/node_modules/lodash/_baseSortBy.js +15 -0
  428. package/dist/node_modules/lodash/_baseSortBy.js.map +1 -0
  429. package/dist/node_modules/lodash/_baseTimes.js +14 -0
  430. package/dist/node_modules/lodash/_baseTimes.js.map +1 -0
  431. package/dist/node_modules/lodash/_baseToString.js +22 -0
  432. package/dist/node_modules/lodash/_baseToString.js.map +1 -0
  433. package/dist/node_modules/lodash/_baseTrim.js +15 -0
  434. package/dist/node_modules/lodash/_baseTrim.js.map +1 -0
  435. package/dist/node_modules/lodash/_baseUnary.js +15 -0
  436. package/dist/node_modules/lodash/_baseUnary.js.map +1 -0
  437. package/dist/node_modules/lodash/_baseUniq.js +34 -0
  438. package/dist/node_modules/lodash/_baseUniq.js.map +1 -0
  439. package/dist/node_modules/lodash/_cacheHas.js +13 -0
  440. package/dist/node_modules/lodash/_cacheHas.js.map +1 -0
  441. package/dist/node_modules/lodash/_castPath.js +18 -0
  442. package/dist/node_modules/lodash/_castPath.js.map +1 -0
  443. package/dist/node_modules/lodash/_castSlice.js +16 -0
  444. package/dist/node_modules/lodash/_castSlice.js.map +1 -0
  445. package/dist/node_modules/lodash/_compareAscending.js +20 -0
  446. package/dist/node_modules/lodash/_compareAscending.js.map +1 -0
  447. package/dist/node_modules/lodash/_compareMultiple.js +19 -0
  448. package/dist/node_modules/lodash/_compareMultiple.js.map +1 -0
  449. package/dist/node_modules/lodash/_coreJsData.js +11 -0
  450. package/dist/node_modules/lodash/_coreJsData.js.map +1 -0
  451. package/dist/node_modules/lodash/_createBaseEach.js +20 -0
  452. package/dist/node_modules/lodash/_createBaseEach.js.map +1 -0
  453. package/dist/node_modules/lodash/_createBaseFor.js +19 -0
  454. package/dist/node_modules/lodash/_createBaseFor.js.map +1 -0
  455. package/dist/node_modules/lodash/_createCaseFirst.js +22 -0
  456. package/dist/node_modules/lodash/_createCaseFirst.js.map +1 -0
  457. package/dist/node_modules/lodash/_createFind.js +27 -0
  458. package/dist/node_modules/lodash/_createFind.js.map +1 -0
  459. package/dist/node_modules/lodash/_createRange.js +19 -0
  460. package/dist/node_modules/lodash/_createRange.js.map +1 -0
  461. package/dist/node_modules/lodash/_createSet.js +16 -0
  462. package/dist/node_modules/lodash/_createSet.js.map +1 -0
  463. package/dist/node_modules/lodash/_defineProperty.js +17 -0
  464. package/dist/node_modules/lodash/_defineProperty.js.map +1 -0
  465. package/dist/node_modules/lodash/_equalArrays.js +42 -0
  466. package/dist/node_modules/lodash/_equalArrays.js.map +1 -0
  467. package/dist/node_modules/lodash/_equalByTag.js +42 -0
  468. package/dist/node_modules/lodash/_equalByTag.js.map +1 -0
  469. package/dist/node_modules/lodash/_equalObjects.js +39 -0
  470. package/dist/node_modules/lodash/_equalObjects.js.map +1 -0
  471. package/dist/node_modules/lodash/_freeGlobal.js +10 -0
  472. package/dist/node_modules/lodash/_freeGlobal.js.map +1 -0
  473. package/dist/node_modules/lodash/_getAllKeys.js +17 -0
  474. package/dist/node_modules/lodash/_getAllKeys.js.map +1 -0
  475. package/dist/node_modules/lodash/_getMapData.js +16 -0
  476. package/dist/node_modules/lodash/_getMapData.js.map +1 -0
  477. package/dist/node_modules/lodash/_getMatchData.js +24 -0
  478. package/dist/node_modules/lodash/_getMatchData.js.map +1 -0
  479. package/dist/node_modules/lodash/_getNative.js +17 -0
  480. package/dist/node_modules/lodash/_getNative.js.map +1 -0
  481. package/dist/node_modules/lodash/_getPrototype.js +11 -0
  482. package/dist/node_modules/lodash/_getPrototype.js.map +1 -0
  483. package/dist/node_modules/lodash/_getRawTag.js +21 -0
  484. package/dist/node_modules/lodash/_getRawTag.js.map +1 -0
  485. package/dist/node_modules/lodash/_getSymbols.js +17 -0
  486. package/dist/node_modules/lodash/_getSymbols.js.map +1 -0
  487. package/dist/node_modules/lodash/_getTag.js +28 -0
  488. package/dist/node_modules/lodash/_getTag.js.map +1 -0
  489. package/dist/node_modules/lodash/_getValue.js +13 -0
  490. package/dist/node_modules/lodash/_getValue.js.map +1 -0
  491. package/dist/node_modules/lodash/_hasPath.js +26 -0
  492. package/dist/node_modules/lodash/_hasPath.js.map +1 -0
  493. package/dist/node_modules/lodash/_hasUnicode.js +14 -0
  494. package/dist/node_modules/lodash/_hasUnicode.js.map +1 -0
  495. package/dist/node_modules/lodash/_hashClear.js +15 -0
  496. package/dist/node_modules/lodash/_hashClear.js.map +1 -0
  497. package/dist/node_modules/lodash/_hashDelete.js +14 -0
  498. package/dist/node_modules/lodash/_hashDelete.js.map +1 -0
  499. package/dist/node_modules/lodash/_hashGet.js +20 -0
  500. package/dist/node_modules/lodash/_hashGet.js.map +1 -0
  501. package/dist/node_modules/lodash/_hashHas.js +16 -0
  502. package/dist/node_modules/lodash/_hashHas.js.map +1 -0
  503. package/dist/node_modules/lodash/_hashSet.js +16 -0
  504. package/dist/node_modules/lodash/_hashSet.js.map +1 -0
  505. package/dist/node_modules/lodash/_isFlattenable.js +17 -0
  506. package/dist/node_modules/lodash/_isFlattenable.js.map +1 -0
  507. package/dist/node_modules/lodash/_isIndex.js +15 -0
  508. package/dist/node_modules/lodash/_isIndex.js.map +1 -0
  509. package/dist/node_modules/lodash/_isIterateeCall.js +20 -0
  510. package/dist/node_modules/lodash/_isIterateeCall.js.map +1 -0
  511. package/dist/node_modules/lodash/_isKey.js +18 -0
  512. package/dist/node_modules/lodash/_isKey.js.map +1 -0
  513. package/dist/node_modules/lodash/_isKeyable.js +14 -0
  514. package/dist/node_modules/lodash/_isKeyable.js.map +1 -0
  515. package/dist/node_modules/lodash/_isMasked.js +18 -0
  516. package/dist/node_modules/lodash/_isMasked.js.map +1 -0
  517. package/dist/node_modules/lodash/_isPrototype.js +15 -0
  518. package/dist/node_modules/lodash/_isPrototype.js.map +1 -0
  519. package/dist/node_modules/lodash/_isStrictComparable.js +15 -0
  520. package/dist/node_modules/lodash/_isStrictComparable.js.map +1 -0
  521. package/dist/node_modules/lodash/_listCacheClear.js +13 -0
  522. package/dist/node_modules/lodash/_listCacheClear.js.map +1 -0
  523. package/dist/node_modules/lodash/_listCacheDelete.js +16 -0
  524. package/dist/node_modules/lodash/_listCacheDelete.js.map +1 -0
  525. package/dist/node_modules/lodash/_listCacheGet.js +16 -0
  526. package/dist/node_modules/lodash/_listCacheGet.js.map +1 -0
  527. package/dist/node_modules/lodash/_listCacheHas.js +15 -0
  528. package/dist/node_modules/lodash/_listCacheHas.js.map +1 -0
  529. package/dist/node_modules/lodash/_listCacheSet.js +16 -0
  530. package/dist/node_modules/lodash/_listCacheSet.js.map +1 -0
  531. package/dist/node_modules/lodash/_mapCacheClear.js +21 -0
  532. package/dist/node_modules/lodash/_mapCacheClear.js.map +1 -0
  533. package/dist/node_modules/lodash/_mapCacheDelete.js +16 -0
  534. package/dist/node_modules/lodash/_mapCacheDelete.js.map +1 -0
  535. package/dist/node_modules/lodash/_mapCacheGet.js +15 -0
  536. package/dist/node_modules/lodash/_mapCacheGet.js.map +1 -0
  537. package/dist/node_modules/lodash/_mapCacheHas.js +15 -0
  538. package/dist/node_modules/lodash/_mapCacheHas.js.map +1 -0
  539. package/dist/node_modules/lodash/_mapCacheSet.js +16 -0
  540. package/dist/node_modules/lodash/_mapCacheSet.js.map +1 -0
  541. package/dist/node_modules/lodash/_mapToArray.js +16 -0
  542. package/dist/node_modules/lodash/_mapToArray.js.map +1 -0
  543. package/dist/node_modules/lodash/_matchesStrictComparable.js +15 -0
  544. package/dist/node_modules/lodash/_matchesStrictComparable.js.map +1 -0
  545. package/dist/node_modules/lodash/_memoizeCapped.js +18 -0
  546. package/dist/node_modules/lodash/_memoizeCapped.js.map +1 -0
  547. package/dist/node_modules/lodash/_nativeCreate.js +11 -0
  548. package/dist/node_modules/lodash/_nativeCreate.js.map +1 -0
  549. package/dist/node_modules/lodash/_nativeKeys.js +11 -0
  550. package/dist/node_modules/lodash/_nativeKeys.js.map +1 -0
  551. package/dist/node_modules/lodash/_nodeUtil.js +16 -0
  552. package/dist/node_modules/lodash/_nodeUtil.js.map +1 -0
  553. package/dist/node_modules/lodash/_objectToString.js +14 -0
  554. package/dist/node_modules/lodash/_objectToString.js.map +1 -0
  555. package/dist/node_modules/lodash/_overArg.js +15 -0
  556. package/dist/node_modules/lodash/_overArg.js.map +1 -0
  557. package/dist/node_modules/lodash/_overRest.js +20 -0
  558. package/dist/node_modules/lodash/_overRest.js.map +1 -0
  559. package/dist/node_modules/lodash/_root.js +12 -0
  560. package/dist/node_modules/lodash/_root.js.map +1 -0
  561. package/dist/node_modules/lodash/_setCacheAdd.js +14 -0
  562. package/dist/node_modules/lodash/_setCacheAdd.js.map +1 -0
  563. package/dist/node_modules/lodash/_setCacheHas.js +13 -0
  564. package/dist/node_modules/lodash/_setCacheHas.js.map +1 -0
  565. package/dist/node_modules/lodash/_setToArray.js +16 -0
  566. package/dist/node_modules/lodash/_setToArray.js.map +1 -0
  567. package/dist/node_modules/lodash/_setToString.js +13 -0
  568. package/dist/node_modules/lodash/_setToString.js.map +1 -0
  569. package/dist/node_modules/lodash/_shortOut.js +21 -0
  570. package/dist/node_modules/lodash/_shortOut.js.map +1 -0
  571. package/dist/node_modules/lodash/_stackClear.js +15 -0
  572. package/dist/node_modules/lodash/_stackClear.js.map +1 -0
  573. package/dist/node_modules/lodash/_stackDelete.js +14 -0
  574. package/dist/node_modules/lodash/_stackDelete.js.map +1 -0
  575. package/dist/node_modules/lodash/_stackGet.js +13 -0
  576. package/dist/node_modules/lodash/_stackGet.js.map +1 -0
  577. package/dist/node_modules/lodash/_stackHas.js +13 -0
  578. package/dist/node_modules/lodash/_stackHas.js.map +1 -0
  579. package/dist/node_modules/lodash/_stackSet.js +23 -0
  580. package/dist/node_modules/lodash/_stackSet.js.map +1 -0
  581. package/dist/node_modules/lodash/_strictIndexOf.js +14 -0
  582. package/dist/node_modules/lodash/_strictIndexOf.js.map +1 -0
  583. package/dist/node_modules/lodash/_stringToArray.js +17 -0
  584. package/dist/node_modules/lodash/_stringToArray.js.map +1 -0
  585. package/dist/node_modules/lodash/_stringToPath.js +17 -0
  586. package/dist/node_modules/lodash/_stringToPath.js.map +1 -0
  587. package/dist/node_modules/lodash/_toKey.js +17 -0
  588. package/dist/node_modules/lodash/_toKey.js.map +1 -0
  589. package/dist/node_modules/lodash/_toSource.js +22 -0
  590. package/dist/node_modules/lodash/_toSource.js.map +1 -0
  591. package/dist/node_modules/lodash/_trimmedEndIndex.js +15 -0
  592. package/dist/node_modules/lodash/_trimmedEndIndex.js.map +1 -0
  593. package/dist/node_modules/lodash/_unicodeToArray.js +24 -0
  594. package/dist/node_modules/lodash/_unicodeToArray.js.map +1 -0
  595. package/dist/node_modules/lodash/constant.js +15 -0
  596. package/dist/node_modules/lodash/constant.js.map +1 -0
  597. package/dist/node_modules/lodash/debounce.js +57 -0
  598. package/dist/node_modules/lodash/debounce.js.map +1 -0
  599. package/dist/node_modules/lodash/eq.js +13 -0
  600. package/dist/node_modules/lodash/eq.js.map +1 -0
  601. package/dist/node_modules/lodash/every.js +20 -0
  602. package/dist/node_modules/lodash/every.js.map +1 -0
  603. package/dist/node_modules/lodash/find.js +12 -0
  604. package/dist/node_modules/lodash/find.js.map +1 -0
  605. package/dist/node_modules/lodash/findIndex.js +20 -0
  606. package/dist/node_modules/lodash/findIndex.js.map +1 -0
  607. package/dist/node_modules/lodash/flatMap.js +16 -0
  608. package/dist/node_modules/lodash/flatMap.js.map +1 -0
  609. package/dist/node_modules/lodash/get.js +16 -0
  610. package/dist/node_modules/lodash/get.js.map +1 -0
  611. package/dist/node_modules/lodash/hasIn.js +16 -0
  612. package/dist/node_modules/lodash/hasIn.js.map +1 -0
  613. package/dist/node_modules/lodash/identity.js +13 -0
  614. package/dist/node_modules/lodash/identity.js.map +1 -0
  615. package/dist/node_modules/lodash/isArguments.js +17 -0
  616. package/dist/node_modules/lodash/isArguments.js.map +1 -0
  617. package/dist/node_modules/lodash/isArray.js +10 -0
  618. package/dist/node_modules/lodash/isArray.js.map +1 -0
  619. package/dist/node_modules/lodash/isArrayLike.js +16 -0
  620. package/dist/node_modules/lodash/isArrayLike.js.map +1 -0
  621. package/dist/node_modules/lodash/isBoolean.js +16 -0
  622. package/dist/node_modules/lodash/isBoolean.js.map +1 -0
  623. package/dist/node_modules/lodash/isBuffer.js +13 -0
  624. package/dist/node_modules/lodash/isBuffer.js.map +1 -0
  625. package/dist/node_modules/lodash/isEqual.js +15 -0
  626. package/dist/node_modules/lodash/isEqual.js.map +1 -0
  627. package/dist/node_modules/lodash/isFunction.js +18 -0
  628. package/dist/node_modules/lodash/isFunction.js.map +1 -0
  629. package/dist/node_modules/lodash/isLength.js +14 -0
  630. package/dist/node_modules/lodash/isLength.js.map +1 -0
  631. package/dist/node_modules/lodash/isNaN.js +15 -0
  632. package/dist/node_modules/lodash/isNaN.js.map +1 -0
  633. package/dist/node_modules/lodash/isNil.js +13 -0
  634. package/dist/node_modules/lodash/isNil.js.map +1 -0
  635. package/dist/node_modules/lodash/isNumber.js +16 -0
  636. package/dist/node_modules/lodash/isNumber.js.map +1 -0
  637. package/dist/node_modules/lodash/isObject.js +14 -0
  638. package/dist/node_modules/lodash/isObject.js.map +1 -0
  639. package/dist/node_modules/lodash/isObjectLike.js +13 -0
  640. package/dist/node_modules/lodash/isObjectLike.js.map +1 -0
  641. package/dist/node_modules/lodash/isPlainObject.js +21 -0
  642. package/dist/node_modules/lodash/isPlainObject.js.map +1 -0
  643. package/dist/node_modules/lodash/isString.js +17 -0
  644. package/dist/node_modules/lodash/isString.js.map +1 -0
  645. package/dist/node_modules/lodash/isSymbol.js +16 -0
  646. package/dist/node_modules/lodash/isSymbol.js.map +1 -0
  647. package/dist/node_modules/lodash/isTypedArray.js +14 -0
  648. package/dist/node_modules/lodash/isTypedArray.js.map +1 -0
  649. package/dist/node_modules/lodash/keys.js +17 -0
  650. package/dist/node_modules/lodash/keys.js.map +1 -0
  651. package/dist/node_modules/lodash/last.js +14 -0
  652. package/dist/node_modules/lodash/last.js.map +1 -0
  653. package/dist/node_modules/lodash/map.js +18 -0
  654. package/dist/node_modules/lodash/map.js.map +1 -0
  655. package/dist/node_modules/lodash/mapValues.js +20 -0
  656. package/dist/node_modules/lodash/mapValues.js.map +1 -0
  657. package/dist/node_modules/lodash/max.js +17 -0
  658. package/dist/node_modules/lodash/max.js.map +1 -0
  659. package/dist/node_modules/lodash/maxBy.js +17 -0
  660. package/dist/node_modules/lodash/maxBy.js.map +1 -0
  661. package/dist/node_modules/lodash/memoize.js +22 -0
  662. package/dist/node_modules/lodash/memoize.js.map +1 -0
  663. package/dist/node_modules/lodash/min.js +17 -0
  664. package/dist/node_modules/lodash/min.js.map +1 -0
  665. package/dist/node_modules/lodash/minBy.js +17 -0
  666. package/dist/node_modules/lodash/minBy.js.map +1 -0
  667. package/dist/node_modules/lodash/noop.js +11 -0
  668. package/dist/node_modules/lodash/noop.js.map +1 -0
  669. package/dist/node_modules/lodash/now.js +14 -0
  670. package/dist/node_modules/lodash/now.js.map +1 -0
  671. package/dist/node_modules/lodash/property.js +18 -0
  672. package/dist/node_modules/lodash/property.js.map +1 -0
  673. package/dist/node_modules/lodash/range.js +11 -0
  674. package/dist/node_modules/lodash/range.js.map +1 -0
  675. package/dist/node_modules/lodash/some.js +20 -0
  676. package/dist/node_modules/lodash/some.js.map +1 -0
  677. package/dist/node_modules/lodash/sortBy.js +19 -0
  678. package/dist/node_modules/lodash/sortBy.js.map +1 -0
  679. package/dist/node_modules/lodash/stubArray.js +13 -0
  680. package/dist/node_modules/lodash/stubArray.js.map +1 -0
  681. package/dist/node_modules/lodash/stubFalse.js +13 -0
  682. package/dist/node_modules/lodash/stubFalse.js.map +1 -0
  683. package/dist/node_modules/lodash/throttle.js +22 -0
  684. package/dist/node_modules/lodash/throttle.js.map +1 -0
  685. package/dist/node_modules/lodash/toFinite.js +15 -0
  686. package/dist/node_modules/lodash/toFinite.js.map +1 -0
  687. package/dist/node_modules/lodash/toInteger.js +16 -0
  688. package/dist/node_modules/lodash/toInteger.js.map +1 -0
  689. package/dist/node_modules/lodash/toNumber.js +26 -0
  690. package/dist/node_modules/lodash/toNumber.js.map +1 -0
  691. package/dist/node_modules/lodash/toString.js +15 -0
  692. package/dist/node_modules/lodash/toString.js.map +1 -0
  693. package/dist/node_modules/lodash/uniqBy.js +16 -0
  694. package/dist/node_modules/lodash/uniqBy.js.map +1 -0
  695. package/dist/node_modules/lodash/upperFirst.js +11 -0
  696. package/dist/node_modules/lodash/upperFirst.js.map +1 -0
  697. package/dist/node_modules/object-assign/index.js +41 -0
  698. package/dist/node_modules/object-assign/index.js.map +1 -0
  699. package/dist/node_modules/prop-types/checkPropTypes.js +46 -0
  700. package/dist/node_modules/prop-types/checkPropTypes.js.map +1 -0
  701. package/dist/node_modules/prop-types/factoryWithThrowingShims.js +49 -0
  702. package/dist/node_modules/prop-types/factoryWithThrowingShims.js.map +1 -0
  703. package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +272 -0
  704. package/dist/node_modules/prop-types/factoryWithTypeCheckers.js.map +1 -0
  705. package/dist/node_modules/prop-types/index.js +16 -0
  706. package/dist/node_modules/prop-types/index.js.map +1 -0
  707. package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js +10 -0
  708. package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js.map +1 -0
  709. package/dist/node_modules/prop-types/lib/has.js +10 -0
  710. package/dist/node_modules/prop-types/lib/has.js.map +1 -0
  711. package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +84 -0
  712. package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js.map +1 -0
  713. package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +64 -0
  714. package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js.map +1 -0
  715. package/dist/node_modules/prop-types/node_modules/react-is/index.js +12 -0
  716. package/dist/node_modules/prop-types/node_modules/react-is/index.js.map +1 -0
  717. package/dist/node_modules/react-is/cjs/react-is.development.js +87 -0
  718. package/dist/node_modules/react-is/cjs/react-is.development.js.map +1 -0
  719. package/dist/node_modules/react-is/cjs/react-is.production.min.js +65 -0
  720. package/dist/node_modules/react-is/cjs/react-is.production.min.js.map +1 -0
  721. package/dist/node_modules/react-is/index.js +12 -0
  722. package/dist/node_modules/react-is/index.js.map +1 -0
  723. package/dist/node_modules/react-smooth/es6/Animate.js +374 -0
  724. package/dist/node_modules/react-smooth/es6/Animate.js.map +1 -0
  725. package/dist/node_modules/react-smooth/es6/AnimateManager.js +73 -0
  726. package/dist/node_modules/react-smooth/es6/AnimateManager.js.map +1 -0
  727. package/dist/node_modules/react-smooth/es6/configUpdate.js +173 -0
  728. package/dist/node_modules/react-smooth/es6/configUpdate.js.map +1 -0
  729. package/dist/node_modules/react-smooth/es6/easing.js +152 -0
  730. package/dist/node_modules/react-smooth/es6/easing.js.map +1 -0
  731. package/dist/node_modules/react-smooth/es6/index.js +9 -0
  732. package/dist/node_modules/react-smooth/es6/index.js.map +1 -0
  733. package/dist/node_modules/react-smooth/es6/setRafTimeout.js +14 -0
  734. package/dist/node_modules/react-smooth/es6/setRafTimeout.js.map +1 -0
  735. package/dist/node_modules/react-smooth/es6/util.js +92 -0
  736. package/dist/node_modules/react-smooth/es6/util.js.map +1 -0
  737. package/dist/node_modules/recharts/es6/cartesian/Area.js +435 -0
  738. package/dist/node_modules/recharts/es6/cartesian/Area.js.map +1 -0
  739. package/dist/node_modules/recharts/es6/cartesian/Bar.js +387 -0
  740. package/dist/node_modules/recharts/es6/cartesian/Bar.js.map +1 -0
  741. package/dist/node_modules/recharts/es6/cartesian/Brush.js +499 -0
  742. package/dist/node_modules/recharts/es6/cartesian/Brush.js.map +1 -0
  743. package/dist/node_modules/recharts/es6/cartesian/CartesianAxis.js +338 -0
  744. package/dist/node_modules/recharts/es6/cartesian/CartesianAxis.js.map +1 -0
  745. package/dist/node_modules/recharts/es6/cartesian/ErrorBar.js +243 -0
  746. package/dist/node_modules/recharts/es6/cartesian/ErrorBar.js.map +1 -0
  747. package/dist/node_modules/recharts/es6/cartesian/ReferenceArea.js +173 -0
  748. package/dist/node_modules/recharts/es6/cartesian/ReferenceArea.js.map +1 -0
  749. package/dist/node_modules/recharts/es6/cartesian/ReferenceDot.js +178 -0
  750. package/dist/node_modules/recharts/es6/cartesian/ReferenceDot.js.map +1 -0
  751. package/dist/node_modules/recharts/es6/cartesian/ReferenceLine.js +254 -0
  752. package/dist/node_modules/recharts/es6/cartesian/ReferenceLine.js.map +1 -0
  753. package/dist/node_modules/recharts/es6/cartesian/XAxis.js +144 -0
  754. package/dist/node_modules/recharts/es6/cartesian/XAxis.js.map +1 -0
  755. package/dist/node_modules/recharts/es6/cartesian/YAxis.js +143 -0
  756. package/dist/node_modules/recharts/es6/cartesian/YAxis.js.map +1 -0
  757. package/dist/node_modules/recharts/es6/cartesian/getEquidistantTicks.js +18 -0
  758. package/dist/node_modules/recharts/es6/cartesian/getEquidistantTicks.js.map +1 -0
  759. package/dist/node_modules/recharts/es6/cartesian/getTicks.js +121 -0
  760. package/dist/node_modules/recharts/es6/cartesian/getTicks.js.map +1 -0
  761. package/dist/node_modules/recharts/es6/chart/AccessibilityManager.js +101 -0
  762. package/dist/node_modules/recharts/es6/chart/AccessibilityManager.js.map +1 -0
  763. package/dist/node_modules/recharts/es6/chart/AreaChart.js +22 -0
  764. package/dist/node_modules/recharts/es6/chart/AreaChart.js.map +1 -0
  765. package/dist/node_modules/recharts/es6/chart/PieChart.js +34 -0
  766. package/dist/node_modules/recharts/es6/chart/PieChart.js.map +1 -0
  767. package/dist/node_modules/recharts/es6/chart/generateCategoricalChart.js +1245 -0
  768. package/dist/node_modules/recharts/es6/chart/generateCategoricalChart.js.map +1 -0
  769. package/dist/node_modules/recharts/es6/component/Cell.js +9 -0
  770. package/dist/node_modules/recharts/es6/component/Cell.js.map +1 -0
  771. package/dist/node_modules/recharts/es6/component/Cursor.js +93 -0
  772. package/dist/node_modules/recharts/es6/component/Cursor.js.map +1 -0
  773. package/dist/node_modules/recharts/es6/component/DefaultLegendContent.js +237 -0
  774. package/dist/node_modules/recharts/es6/component/DefaultLegendContent.js.map +1 -0
  775. package/dist/node_modules/recharts/es6/component/DefaultTooltipContent.js +171 -0
  776. package/dist/node_modules/recharts/es6/component/DefaultTooltipContent.js.map +1 -0
  777. package/dist/node_modules/recharts/es6/component/Label.js +353 -0
  778. package/dist/node_modules/recharts/es6/component/Label.js.map +1 -0
  779. package/dist/node_modules/recharts/es6/component/LabelList.js +166 -0
  780. package/dist/node_modules/recharts/es6/component/LabelList.js.map +1 -0
  781. package/dist/node_modules/recharts/es6/component/Legend.js +234 -0
  782. package/dist/node_modules/recharts/es6/component/Legend.js.map +1 -0
  783. package/dist/node_modules/recharts/es6/component/ResponsiveContainer.js +187 -0
  784. package/dist/node_modules/recharts/es6/component/ResponsiveContainer.js.map +1 -0
  785. package/dist/node_modules/recharts/es6/component/Text.js +225 -0
  786. package/dist/node_modules/recharts/es6/component/Text.js.map +1 -0
  787. package/dist/node_modules/recharts/es6/component/Tooltip.js +182 -0
  788. package/dist/node_modules/recharts/es6/component/Tooltip.js.map +1 -0
  789. package/dist/node_modules/recharts/es6/component/TooltipBoundingBox.js +198 -0
  790. package/dist/node_modules/recharts/es6/component/TooltipBoundingBox.js.map +1 -0
  791. package/dist/node_modules/recharts/es6/container/Layer.js +40 -0
  792. package/dist/node_modules/recharts/es6/container/Layer.js.map +1 -0
  793. package/dist/node_modules/recharts/es6/container/Surface.js +60 -0
  794. package/dist/node_modules/recharts/es6/container/Surface.js.map +1 -0
  795. package/dist/node_modules/recharts/es6/context/chartLayoutContext.js +46 -0
  796. package/dist/node_modules/recharts/es6/context/chartLayoutContext.js.map +1 -0
  797. package/dist/node_modules/recharts/es6/polar/Pie.js +435 -0
  798. package/dist/node_modules/recharts/es6/polar/Pie.js.map +1 -0
  799. package/dist/node_modules/recharts/es6/polar/PolarAngleAxis.js +215 -0
  800. package/dist/node_modules/recharts/es6/polar/PolarAngleAxis.js.map +1 -0
  801. package/dist/node_modules/recharts/es6/polar/PolarRadiusAxis.js +268 -0
  802. package/dist/node_modules/recharts/es6/polar/PolarRadiusAxis.js.map +1 -0
  803. package/dist/node_modules/recharts/es6/shape/Cross.js +112 -0
  804. package/dist/node_modules/recharts/es6/shape/Cross.js.map +1 -0
  805. package/dist/node_modules/recharts/es6/shape/Curve.js +136 -0
  806. package/dist/node_modules/recharts/es6/shape/Curve.js.map +1 -0
  807. package/dist/node_modules/recharts/es6/shape/Dot.js +27 -0
  808. package/dist/node_modules/recharts/es6/shape/Dot.js.map +1 -0
  809. package/dist/node_modules/recharts/es6/shape/Polygon.js +112 -0
  810. package/dist/node_modules/recharts/es6/shape/Polygon.js.map +1 -0
  811. package/dist/node_modules/recharts/es6/shape/Rectangle.js +205 -0
  812. package/dist/node_modules/recharts/es6/shape/Rectangle.js.map +1 -0
  813. package/dist/node_modules/recharts/es6/shape/Sector.js +192 -0
  814. package/dist/node_modules/recharts/es6/shape/Sector.js.map +1 -0
  815. package/dist/node_modules/recharts/es6/shape/Symbols.js +143 -0
  816. package/dist/node_modules/recharts/es6/shape/Symbols.js.map +1 -0
  817. package/dist/node_modules/recharts/es6/shape/Trapezoid.js +175 -0
  818. package/dist/node_modules/recharts/es6/shape/Trapezoid.js.map +1 -0
  819. package/dist/node_modules/recharts/es6/util/ActiveShapeUtils.js +181 -0
  820. package/dist/node_modules/recharts/es6/util/ActiveShapeUtils.js.map +1 -0
  821. package/dist/node_modules/recharts/es6/util/BarUtils.js +112 -0
  822. package/dist/node_modules/recharts/es6/util/BarUtils.js.map +1 -0
  823. package/dist/node_modules/recharts/es6/util/CartesianUtils.js +234 -0
  824. package/dist/node_modules/recharts/es6/util/CartesianUtils.js.map +1 -0
  825. package/dist/node_modules/recharts/es6/util/ChartUtils.js +554 -0
  826. package/dist/node_modules/recharts/es6/util/ChartUtils.js.map +1 -0
  827. package/dist/node_modules/recharts/es6/util/CssPrefixUtils.js +70 -0
  828. package/dist/node_modules/recharts/es6/util/CssPrefixUtils.js.map +1 -0
  829. package/dist/node_modules/recharts/es6/util/DOMUtils.js +108 -0
  830. package/dist/node_modules/recharts/es6/util/DOMUtils.js.map +1 -0
  831. package/dist/node_modules/recharts/es6/util/DataUtils.js +57 -0
  832. package/dist/node_modules/recharts/es6/util/DataUtils.js.map +1 -0
  833. package/dist/node_modules/recharts/es6/util/DetectReferenceElementsDomain.js +58 -0
  834. package/dist/node_modules/recharts/es6/util/DetectReferenceElementsDomain.js.map +1 -0
  835. package/dist/node_modules/recharts/es6/util/Events.js +7 -0
  836. package/dist/node_modules/recharts/es6/util/Events.js.map +1 -0
  837. package/dist/node_modules/recharts/es6/util/Global.js +21 -0
  838. package/dist/node_modules/recharts/es6/util/Global.js.map +1 -0
  839. package/dist/node_modules/recharts/es6/util/IfOverflowMatches.js +9 -0
  840. package/dist/node_modules/recharts/es6/util/IfOverflowMatches.js.map +1 -0
  841. package/dist/node_modules/recharts/es6/util/LogUtils.js +15 -0
  842. package/dist/node_modules/recharts/es6/util/LogUtils.js.map +1 -0
  843. package/dist/node_modules/recharts/es6/util/PolarUtils.js +198 -0
  844. package/dist/node_modules/recharts/es6/util/PolarUtils.js.map +1 -0
  845. package/dist/node_modules/recharts/es6/util/ReactUtils.js +137 -0
  846. package/dist/node_modules/recharts/es6/util/ReactUtils.js.map +1 -0
  847. package/dist/node_modules/recharts/es6/util/ReduceCSSCalc.js +181 -0
  848. package/dist/node_modules/recharts/es6/util/ReduceCSSCalc.js.map +1 -0
  849. package/dist/node_modules/recharts/es6/util/ShallowEqual.js +10 -0
  850. package/dist/node_modules/recharts/es6/util/ShallowEqual.js.map +1 -0
  851. package/dist/node_modules/recharts/es6/util/TickUtils.js +31 -0
  852. package/dist/node_modules/recharts/es6/util/TickUtils.js.map +1 -0
  853. package/dist/node_modules/recharts/es6/util/calculateViewBox.js +25 -0
  854. package/dist/node_modules/recharts/es6/util/calculateViewBox.js.map +1 -0
  855. package/dist/node_modules/recharts/es6/util/cursor/getCursorPoints.js +23 -0
  856. package/dist/node_modules/recharts/es6/util/cursor/getCursorPoints.js.map +1 -0
  857. package/dist/node_modules/recharts/es6/util/cursor/getCursorRectangle.js +16 -0
  858. package/dist/node_modules/recharts/es6/util/cursor/getCursorRectangle.js.map +1 -0
  859. package/dist/node_modules/recharts/es6/util/cursor/getRadialCursorPoints.js +17 -0
  860. package/dist/node_modules/recharts/es6/util/cursor/getRadialCursorPoints.js.map +1 -0
  861. package/dist/node_modules/recharts/es6/util/getEveryNthWithCondition.js +12 -0
  862. package/dist/node_modules/recharts/es6/util/getEveryNthWithCondition.js.map +1 -0
  863. package/dist/node_modules/recharts/es6/util/getLegendProps.js +88 -0
  864. package/dist/node_modules/recharts/es6/util/getLegendProps.js.map +1 -0
  865. package/dist/node_modules/recharts/es6/util/isDomainSpecifiedByUser.js +13 -0
  866. package/dist/node_modules/recharts/es6/util/isDomainSpecifiedByUser.js.map +1 -0
  867. package/dist/node_modules/recharts/es6/util/payload/getUniqPayload.js +12 -0
  868. package/dist/node_modules/recharts/es6/util/payload/getUniqPayload.js.map +1 -0
  869. package/dist/node_modules/recharts/es6/util/tooltip/translate.js +87 -0
  870. package/dist/node_modules/recharts/es6/util/tooltip/translate.js.map +1 -0
  871. package/dist/node_modules/recharts/es6/util/types.js +43 -0
  872. package/dist/node_modules/recharts/es6/util/types.js.map +1 -0
  873. package/dist/node_modules/recharts-scale/es6/getNiceTickValues.js +132 -0
  874. package/dist/node_modules/recharts-scale/es6/getNiceTickValues.js.map +1 -0
  875. package/dist/node_modules/recharts-scale/es6/index.js +1 -0
  876. package/dist/node_modules/recharts-scale/es6/util/arithmetic.js +32 -0
  877. package/dist/node_modules/recharts-scale/es6/util/arithmetic.js.map +1 -0
  878. package/dist/node_modules/recharts-scale/es6/util/utils.js +79 -0
  879. package/dist/node_modules/recharts-scale/es6/util/utils.js.map +1 -0
  880. package/dist/node_modules/sonner/dist/index.js +163 -0
  881. package/dist/node_modules/sonner/dist/index.js.map +1 -0
  882. package/dist/node_modules/tiny-invariant/dist/esm/tiny-invariant.js +13 -0
  883. package/dist/node_modules/tiny-invariant/dist/esm/tiny-invariant.js.map +1 -0
  884. package/dist/node_modules/victory-vendor/es/d3-scale.js +53 -0
  885. package/dist/node_modules/victory-vendor/es/d3-scale.js.map +1 -0
  886. package/package.json +6 -7
  887. package/dist/govcitizenhub/pages/ApplicationDetailPage.js +0 -477
  888. package/dist/govcitizenhub/pages/ApplicationDetailPage.js.map +0 -1
  889. package/dist/govcitizenhub/pages/ApplicationsPage.js +0 -239
  890. package/dist/govcitizenhub/pages/ApplicationsPage.js.map +0 -1
  891. package/dist/govcitizenhub/pages/CookiesPage.js +0 -18
  892. package/dist/govcitizenhub/pages/CookiesPage.js.map +0 -1
  893. package/dist/govcitizenhub/pages/DocumentsPage.js +0 -257
  894. package/dist/govcitizenhub/pages/DocumentsPage.js.map +0 -1
  895. package/dist/govcitizenhub/pages/NewApplicationPage.js +0 -185
  896. package/dist/govcitizenhub/pages/NewApplicationPage.js.map +0 -1
  897. package/dist/govcitizenhub/pages/NotificationsPage.js +0 -18
  898. package/dist/govcitizenhub/pages/NotificationsPage.js.map +0 -1
  899. package/dist/govcitizenhub/pages/PaymentsPage.js +0 -417
  900. package/dist/govcitizenhub/pages/PaymentsPage.js.map +0 -1
  901. package/dist/govcitizenhub/pages/PrivacyPage.js +0 -18
  902. package/dist/govcitizenhub/pages/PrivacyPage.js.map +0 -1
  903. package/dist/govcitizenhub/pages/ProfilePage.js +0 -18
  904. package/dist/govcitizenhub/pages/ProfilePage.js.map +0 -1
  905. package/dist/govcitizenhub/pages/ServicesPage.js +0 -299
  906. package/dist/govcitizenhub/pages/ServicesPage.js.map +0 -1
  907. package/dist/govcitizenhub/pages/SettingsPage.js +0 -18
  908. package/dist/govcitizenhub/pages/SettingsPage.js.map +0 -1
  909. package/dist/govcitizenhub/providers/GovCitizenHubProvider.js +0 -27
  910. package/dist/govcitizenhub/providers/GovCitizenHubProvider.js.map +0 -1
  911. package/dist/govcitizenhub/store/govcitizenhubStore.js +0 -529
  912. package/dist/govcitizenhub/store/govcitizenhubStore.js.map +0 -1
@@ -0,0 +1,390 @@
1
+ import { useGovCitizenHub as e } from "../context/GovCitizenHubContext.js";
2
+ import "../context/index.js";
3
+ import { clearGraphqlResponseCache as t } from "../lib/graphql-cache.js";
4
+ import { useMutation as n, useQuery as r, useQueryClient as i } from "@tanstack/react-query";
5
+ import { graphqlFetch as a } from "@burdenoff/fe-libs/shared/graphql";
6
+ //#region src/govcitizenhub/hooks/useGovApi.ts
7
+ var o = (e) => /^\s*mutation\b/.test(e), s = async (e, n, r) => {
8
+ let i = o(e);
9
+ i && t();
10
+ let s = await a({
11
+ gateway: "workspace",
12
+ baseUrl: r,
13
+ query: e,
14
+ variables: n,
15
+ workspaceToken: !0
16
+ });
17
+ if (i && t(), s.errors?.length) throw Error(s.errors[0]?.message ?? "GraphQL request failed");
18
+ if (!s.data) throw Error("GraphQL response did not include data");
19
+ return s.data;
20
+ }, c = {
21
+ agencies: ["govcitizenhub", "agencies"],
22
+ agency: (e) => [
23
+ "govcitizenhub",
24
+ "agency",
25
+ e
26
+ ],
27
+ services: ["govcitizenhub", "services"],
28
+ service: (e) => [
29
+ "govcitizenhub",
30
+ "service",
31
+ e
32
+ ],
33
+ applications: ["govcitizenhub", "applications"],
34
+ application: (e) => [
35
+ "govcitizenhub",
36
+ "application",
37
+ e
38
+ ],
39
+ payments: ["govcitizenhub", "payments"],
40
+ payment: (e) => [
41
+ "govcitizenhub",
42
+ "payment",
43
+ e
44
+ ],
45
+ permits: ["govcitizenhub", "permits"],
46
+ grievances: ["govcitizenhub", "grievances"],
47
+ grievance: (e) => [
48
+ "govcitizenhub",
49
+ "grievance",
50
+ e
51
+ ]
52
+ }, l = { limit: 50 }, u = (e) => {
53
+ let t = e ?? l, n = { limit: t.limit ?? l.limit };
54
+ return t.offset != null && (n.offset = t.offset), t.cursor != null && (n.cursor = t.cursor), n;
55
+ }, d = "\n id workspaceId code contactEmail contactPhone description isActive jurisdiction\n name tags createdAt updatedAt\n", f = "\n id workspaceId agencyId category currency eligibility feeAmount feeType formSchema\n name publishedAt requiredDocuments slaDays slug status summary tags createdAt updatedAt\n", p = "\n id workspaceId applicationId name status requirement rejectionReason\n file { id } createdAt updatedAt\n", m = "\n id workspaceId applicationId authorId body type createdAt updatedAt\n", h = "\n id workspaceId applicationId serviceId holderId title verificationCode status\n issuedAt expiresAt revokedAt revokeReason file { id } createdAt updatedAt\n", g = "\n id workspaceId applicationId payerId amount currency status receiptNumber\n providerRef lineItems paidAt refundedAt createdAt updatedAt\n", _ = "\n id workspaceId reference serviceId citizenId assignedToId status priority dueDate\n submittedAt decidedAt decisionReason tags createdAt updatedAt\n", v = "\n id workspaceId title description category status priority location latitude longitude\n photoFileIds reporterId agencyId assignedToId resolution resolvedAt tags createdAt updatedAt\n", y = (t = {}) => {
56
+ let { apiGatewayUrl: n } = e();
57
+ return r({
58
+ queryKey: [...c.agencies, t],
59
+ queryFn: async () => (await s(`query GovListAgencies($isActive: Boolean, $pagination: PaginationInput) {
60
+ govListAgencies(isActive: $isActive, pagination: $pagination) { ${d} }
61
+ }`, {
62
+ isActive: t.isActive,
63
+ pagination: u(t.pagination ?? { limit: 100 })
64
+ }, n)).govListAgencies
65
+ });
66
+ }, b = () => {
67
+ let { apiGatewayUrl: t } = e(), r = i();
68
+ return n({
69
+ mutationFn: async (e) => (await s(`mutation GovCreateAgency($input: GovCreateAgencyInput!) {
70
+ govCreateAgency(input: $input) { ${d} }
71
+ }`, { input: e }, t)).govCreateAgency,
72
+ onSuccess: () => r.invalidateQueries({ queryKey: c.agencies })
73
+ });
74
+ }, x = () => {
75
+ let { apiGatewayUrl: t } = e(), r = i();
76
+ return n({
77
+ mutationFn: async (e) => (await s(`mutation GovUpdateAgency($id: ID!, $input: GovUpdateAgencyInput!) {
78
+ govUpdateAgency(id: $id, input: $input) { ${d} }
79
+ }`, e, t)).govUpdateAgency,
80
+ onSuccess: (e) => {
81
+ r.invalidateQueries({ queryKey: c.agencies }), r.invalidateQueries({ queryKey: c.agency(e.id) });
82
+ }
83
+ });
84
+ }, S = () => {
85
+ let { apiGatewayUrl: t } = e(), r = i();
86
+ return n({
87
+ mutationFn: async (e) => (await s("mutation GovArchiveAgency($id: ID!) { govArchiveAgency(id: $id) }", { id: e }, t)).govArchiveAgency,
88
+ onSuccess: () => r.invalidateQueries({ queryKey: c.agencies })
89
+ });
90
+ }, C = (t = {}) => {
91
+ let { apiGatewayUrl: n } = e();
92
+ return r({
93
+ queryKey: [...c.services, t],
94
+ queryFn: async () => (await s(`query GovListServices($agencyId: ID, $category: GovServiceCategory, $status: GovServiceStatus, $pagination: PaginationInput) {
95
+ govListServices(agencyId: $agencyId, category: $category, status: $status, pagination: $pagination) {
96
+ items { ${f} agency { id name } }
97
+ pageInfo { cursor hasMore }
98
+ }
99
+ }`, {
100
+ agencyId: t.agencyId,
101
+ category: t.category,
102
+ status: t.status,
103
+ pagination: u(t.pagination)
104
+ }, n)).govListServices
105
+ });
106
+ }, w = (t) => {
107
+ let { apiGatewayUrl: n } = e();
108
+ return r({
109
+ queryKey: c.service(t ?? ""),
110
+ enabled: !!t,
111
+ queryFn: async () => (await s(`query GovService($id: ID!) {
112
+ govService(id: $id) { ${f} agency { ${d} } }
113
+ }`, { id: t }, n)).govService
114
+ });
115
+ }, T = () => {
116
+ let { apiGatewayUrl: t } = e(), r = i();
117
+ return n({
118
+ mutationFn: async (e) => (await s(`mutation GovCreateService($input: GovCreateServiceInput!) {
119
+ govCreateService(input: $input) { ${f} }
120
+ }`, { input: e }, t)).govCreateService,
121
+ onSuccess: () => r.invalidateQueries({ queryKey: c.services })
122
+ });
123
+ }, E = () => {
124
+ let { apiGatewayUrl: t } = e(), r = i();
125
+ return n({
126
+ mutationFn: async (e) => (await s(`mutation GovUpdateService($id: ID!, $input: GovUpdateServiceInput!) {
127
+ govUpdateService(id: $id, input: $input) { ${f} }
128
+ }`, e, t)).govUpdateService,
129
+ onSuccess: (e) => {
130
+ r.invalidateQueries({ queryKey: c.services }), r.invalidateQueries({ queryKey: c.service(e.id) });
131
+ }
132
+ });
133
+ }, D = () => {
134
+ let { apiGatewayUrl: t } = e(), r = i();
135
+ return n({
136
+ mutationFn: async (e) => (await s(`mutation GovTransitionService($id: ID!, $status: GovServiceStatus!) {
137
+ govTransitionService(id: $id, status: $status) { ${f} }
138
+ }`, e, t)).govTransitionService,
139
+ onSuccess: (e) => {
140
+ r.invalidateQueries({ queryKey: c.services }), r.invalidateQueries({ queryKey: c.service(e.id) });
141
+ }
142
+ });
143
+ }, O = (t = {}) => {
144
+ let { apiGatewayUrl: n } = e();
145
+ return r({
146
+ queryKey: [...c.applications, t],
147
+ queryFn: async () => (await s(`query GovListApplications($assignedToId: ID, $citizenId: ID, $serviceId: ID, $status: GovApplicationStatus, $pagination: PaginationInput) {
148
+ govListApplications(assignedToId: $assignedToId, citizenId: $citizenId, serviceId: $serviceId, status: $status, pagination: $pagination) {
149
+ items { ${_} }
150
+ pageInfo { cursor hasMore }
151
+ }
152
+ }`, {
153
+ assignedToId: t.assignedToId,
154
+ citizenId: t.citizenId,
155
+ serviceId: t.serviceId,
156
+ status: t.status,
157
+ pagination: u(t.pagination)
158
+ }, n)).govListApplications
159
+ });
160
+ }, k = (t) => {
161
+ let { apiGatewayUrl: n } = e();
162
+ return r({
163
+ queryKey: c.application(t ?? ""),
164
+ enabled: !!t,
165
+ queryFn: async () => (await s(`query GovApplication($id: ID!) {
166
+ govApplication(id: $id) {
167
+ ${_}
168
+ formData
169
+ documents { ${p} }
170
+ notes { ${m} }
171
+ permits { ${h} }
172
+ }
173
+ }`, { id: t }, n)).govApplication
174
+ });
175
+ }, A = () => {
176
+ let { apiGatewayUrl: t } = e(), r = i();
177
+ return n({
178
+ mutationFn: async (e) => (await s(`mutation GovCreateApplication($input: GovCreateApplicationInput!) {
179
+ govCreateApplication(input: $input) { ${_} }
180
+ }`, { input: e }, t)).govCreateApplication,
181
+ onSuccess: () => r.invalidateQueries({ queryKey: c.applications })
182
+ });
183
+ }, j = () => {
184
+ let { apiGatewayUrl: t } = e(), r = i();
185
+ return n({
186
+ mutationFn: async (e) => (await s(`mutation GovUpdateApplication($id: ID!, $input: GovUpdateApplicationInput!) {
187
+ govUpdateApplication(id: $id, input: $input) { ${_} }
188
+ }`, e, t)).govUpdateApplication,
189
+ onSuccess: (e) => {
190
+ r.invalidateQueries({ queryKey: c.applications }), r.invalidateQueries({ queryKey: c.application(e.id) });
191
+ }
192
+ });
193
+ }, M = () => {
194
+ let { apiGatewayUrl: t } = e(), r = i();
195
+ return n({
196
+ mutationFn: async (e) => (await s(`mutation GovSubmitApplication($id: ID!) {
197
+ govSubmitApplication(id: $id) { ${_} }
198
+ }`, { id: e }, t)).govSubmitApplication,
199
+ onSuccess: (e) => {
200
+ r.invalidateQueries({ queryKey: c.applications }), r.invalidateQueries({ queryKey: c.application(e.id) });
201
+ }
202
+ });
203
+ }, N = () => {
204
+ let { apiGatewayUrl: t } = e(), r = i();
205
+ return n({
206
+ mutationFn: async (e) => (await s(`mutation GovTransitionApplication($id: ID!, $status: GovApplicationStatus!, $reason: String) {
207
+ govTransitionApplication(id: $id, status: $status, reason: $reason) { ${_} }
208
+ }`, e, t)).govTransitionApplication,
209
+ onSuccess: (e) => {
210
+ r.invalidateQueries({ queryKey: c.applications }), r.invalidateQueries({ queryKey: c.application(e.id) });
211
+ }
212
+ });
213
+ }, P = () => {
214
+ let { apiGatewayUrl: t } = e(), r = i();
215
+ return n({
216
+ mutationFn: async (e) => (await s(`mutation GovAddDocument($input: GovAddDocumentInput!) {
217
+ govAddDocument(input: $input) { ${p} }
218
+ }`, { input: e }, t)).govAddDocument,
219
+ onSuccess: (e) => {
220
+ r.invalidateQueries({ queryKey: c.application(e.applicationId) }), r.invalidateQueries({ queryKey: c.applications });
221
+ }
222
+ });
223
+ }, F = () => {
224
+ let { apiGatewayUrl: t } = e(), r = i();
225
+ return n({
226
+ mutationFn: async (e) => (await s(`mutation GovReviewDocument($id: ID!, $status: GovDocumentStatus!, $rejectionReason: String) {
227
+ govReviewDocument(id: $id, status: $status, rejectionReason: $rejectionReason) { ${p} }
228
+ }`, {
229
+ id: e.id,
230
+ status: e.status,
231
+ rejectionReason: e.rejectionReason
232
+ }, t)).govReviewDocument,
233
+ onSuccess: (e) => {
234
+ r.invalidateQueries({ queryKey: c.application(e.applicationId) });
235
+ }
236
+ });
237
+ }, I = () => {
238
+ let { apiGatewayUrl: t } = e(), r = i();
239
+ return n({
240
+ mutationFn: async (e) => (await s(`mutation GovAddCaseNote($input: GovAddCaseNoteInput!) {
241
+ govAddCaseNote(input: $input) { ${m} }
242
+ }`, { input: e }, t)).govAddCaseNote,
243
+ onSuccess: (e) => {
244
+ r.invalidateQueries({ queryKey: c.application(e.applicationId) });
245
+ }
246
+ });
247
+ }, L = (t = {}) => {
248
+ let { apiGatewayUrl: n } = e();
249
+ return r({
250
+ queryKey: [...c.payments, t],
251
+ queryFn: async () => (await s(`query GovListPayments($applicationId: ID, $payerId: ID, $status: GovPaymentStatus, $pagination: PaginationInput) {
252
+ govListPayments(applicationId: $applicationId, payerId: $payerId, status: $status, pagination: $pagination) {
253
+ items { ${g} }
254
+ pageInfo { cursor hasMore }
255
+ }
256
+ }`, {
257
+ applicationId: t.applicationId,
258
+ payerId: t.payerId,
259
+ status: t.status,
260
+ pagination: u(t.pagination)
261
+ }, n)).govListPayments
262
+ });
263
+ }, R = () => {
264
+ let { apiGatewayUrl: t } = e(), r = i();
265
+ return n({
266
+ mutationFn: async (e) => (await s(`mutation GovCreatePayment($input: GovCreatePaymentInput!) {
267
+ govCreatePayment(input: $input) { ${g} }
268
+ }`, { input: e }, t)).govCreatePayment,
269
+ onSuccess: (e) => {
270
+ r.invalidateQueries({ queryKey: c.payments }), e.applicationId && r.invalidateQueries({ queryKey: c.application(e.applicationId) });
271
+ }
272
+ });
273
+ }, z = () => {
274
+ let { apiGatewayUrl: t } = e(), r = i();
275
+ return n({
276
+ mutationFn: async (e) => (await s(`mutation GovMarkPaymentPaid($id: ID!, $providerRef: String) {
277
+ govMarkPaymentPaid(id: $id, providerRef: $providerRef) { ${g} }
278
+ }`, e, t)).govMarkPaymentPaid,
279
+ onSuccess: () => r.invalidateQueries({ queryKey: c.payments })
280
+ });
281
+ }, B = () => {
282
+ let { apiGatewayUrl: t } = e(), r = i();
283
+ return n({
284
+ mutationFn: async (e) => (await s(`mutation GovRefundPayment($id: ID!) {
285
+ govRefundPayment(id: $id) { ${g} }
286
+ }`, { id: e }, t)).govRefundPayment,
287
+ onSuccess: () => r.invalidateQueries({ queryKey: c.payments })
288
+ });
289
+ }, V = (t = {}) => {
290
+ let { apiGatewayUrl: n } = e();
291
+ return r({
292
+ queryKey: [...c.permits, t],
293
+ queryFn: async () => (await s(`query GovListPermits($holderId: ID, $serviceId: ID, $status: GovPermitStatus) {
294
+ govListPermits(holderId: $holderId, serviceId: $serviceId, status: $status) { ${h} }
295
+ }`, {
296
+ holderId: t.holderId,
297
+ serviceId: t.serviceId,
298
+ status: t.status
299
+ }, n)).govListPermits
300
+ });
301
+ }, H = () => {
302
+ let { apiGatewayUrl: t } = e(), r = i();
303
+ return n({
304
+ mutationFn: async (e) => (await s(`mutation GovIssuePermit($input: GovIssuePermitInput!) {
305
+ govIssuePermit(input: $input) { ${h} }
306
+ }`, { input: e }, t)).govIssuePermit,
307
+ onSuccess: (e) => {
308
+ r.invalidateQueries({ queryKey: c.permits }), e.applicationId && r.invalidateQueries({ queryKey: c.application(e.applicationId) });
309
+ }
310
+ });
311
+ }, U = () => {
312
+ let { apiGatewayUrl: t } = e(), r = i();
313
+ return n({
314
+ mutationFn: async (e) => (await s(`mutation GovRevokePermit($id: ID!, $reason: String) {
315
+ govRevokePermit(id: $id, reason: $reason) { ${h} }
316
+ }`, e, t)).govRevokePermit,
317
+ onSuccess: () => r.invalidateQueries({ queryKey: c.permits })
318
+ });
319
+ }, W = (t) => {
320
+ let { apiGatewayUrl: n } = e();
321
+ return r({
322
+ queryKey: [
323
+ "govcitizenhub",
324
+ "verify-permit",
325
+ t ?? ""
326
+ ],
327
+ enabled: !!t,
328
+ retry: !1,
329
+ queryFn: async () => (await s(`query GovVerifyPermit($verificationCode: String!) {
330
+ govVerifyPermit(verificationCode: $verificationCode) { ${h} }
331
+ }`, { verificationCode: t }, n)).govVerifyPermit
332
+ });
333
+ }, G = (t = {}) => {
334
+ let { apiGatewayUrl: n } = e();
335
+ return r({
336
+ queryKey: [...c.grievances, t],
337
+ queryFn: async () => (await s(`query GovListGrievances($agencyId: ID, $reporterId: ID, $status: GovGrievanceStatus, $pagination: PaginationInput) {
338
+ govListGrievances(agencyId: $agencyId, reporterId: $reporterId, status: $status, pagination: $pagination) {
339
+ items { ${v} }
340
+ pageInfo { cursor hasMore }
341
+ }
342
+ }`, {
343
+ agencyId: t.agencyId,
344
+ reporterId: t.reporterId,
345
+ status: t.status,
346
+ pagination: u(t.pagination)
347
+ }, n)).govListGrievances
348
+ });
349
+ }, K = (t) => {
350
+ let { apiGatewayUrl: n } = e();
351
+ return r({
352
+ queryKey: c.grievance(t ?? ""),
353
+ enabled: !!t,
354
+ queryFn: async () => (await s(`query GovGrievance($id: ID!) {
355
+ govGrievance(id: $id) { ${v} }
356
+ }`, { id: t }, n)).govGrievance
357
+ });
358
+ }, q = () => {
359
+ let { apiGatewayUrl: t } = e(), r = i();
360
+ return n({
361
+ mutationFn: async (e) => (await s(`mutation GovReportGrievance($input: GovReportGrievanceInput!) {
362
+ govReportGrievance(input: $input) { ${v} }
363
+ }`, { input: e }, t)).govReportGrievance,
364
+ onSuccess: () => r.invalidateQueries({ queryKey: c.grievances })
365
+ });
366
+ }, J = () => {
367
+ let { apiGatewayUrl: t } = e(), r = i();
368
+ return n({
369
+ mutationFn: async (e) => (await s(`mutation GovUpdateGrievance($id: ID!, $input: GovUpdateGrievanceInput!) {
370
+ govUpdateGrievance(id: $id, input: $input) { ${v} }
371
+ }`, e, t)).govUpdateGrievance,
372
+ onSuccess: (e) => {
373
+ r.invalidateQueries({ queryKey: c.grievances }), r.invalidateQueries({ queryKey: c.grievance(e.id) });
374
+ }
375
+ });
376
+ }, Y = () => {
377
+ let { apiGatewayUrl: t } = e(), r = i();
378
+ return n({
379
+ mutationFn: async (e) => (await s(`mutation GovTransitionGrievance($id: ID!, $status: GovGrievanceStatus!, $resolution: String) {
380
+ govTransitionGrievance(id: $id, status: $status, resolution: $resolution) { ${v} }
381
+ }`, e, t)).govTransitionGrievance,
382
+ onSuccess: (e) => {
383
+ r.invalidateQueries({ queryKey: c.grievances }), r.invalidateQueries({ queryKey: c.grievance(e.id) });
384
+ }
385
+ });
386
+ };
387
+ //#endregion
388
+ export { I as useGovAddCaseNote, P as useGovAddDocument, y as useGovAgencies, k as useGovApplication, O as useGovApplications, S as useGovArchiveAgency, b as useGovCreateAgency, A as useGovCreateApplication, R as useGovCreatePayment, T as useGovCreateService, K as useGovGrievance, G as useGovGrievances, H as useGovIssuePermit, z as useGovMarkPaymentPaid, L as useGovPayments, V as useGovPermits, B as useGovRefundPayment, q as useGovReportGrievance, F as useGovReviewDocument, U as useGovRevokePermit, w as useGovService, C as useGovServices, M as useGovSubmitApplication, N as useGovTransitionApplication, Y as useGovTransitionGrievance, D as useGovTransitionService, x as useGovUpdateAgency, j as useGovUpdateApplication, J as useGovUpdateGrievance, E as useGovUpdateService, W as useGovVerifyPermit };
389
+
390
+ //# sourceMappingURL=useGovApi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useGovApi.js","names":[],"sources":["../../../src/govcitizenhub/hooks/useGovApi.ts"],"sourcesContent":["/**\n * GovCitizenHub API hooks\n * @module govcitizenhub/hooks\n *\n * React-Query hooks wired DIRECTLY to the real `wspace-govcitizenhub-svc`\n * federated GraphQL contract (the `gov*` operations). Every query/mutation below\n * uses an inline gql string whose fields match the svc `.hive-schema.graphql`\n * exactly. No mock data.\n *\n * Transport: `graphqlFetch({ gateway: 'workspace', workspaceToken: true })` — the\n * host shell supplies the gateway base URL + a workspace-scoped token.\n *\n * IMPORTANT: `User`/`File` are id-only federation stubs in this subgraph. We\n * never select `citizen { firstName }` or `file { url }`.\n */\n\nimport { useMutation, useQuery, useQueryClient } from '@tanstack/react-query';\nimport { graphqlFetch } from '@burdenoff/fe-libs/shared/graphql';\n\nimport { useGovCitizenHub } from '../context';\nimport { clearGraphqlResponseCache } from '../lib/graphql-cache';\nimport type {\n GovConnection,\n GovAgency,\n GovService,\n GovServiceCategory,\n GovServiceStatus,\n GovApplication,\n GovApplicationStatus,\n GovDocument,\n GovDocumentStatus,\n GovCaseNote,\n GovPermit,\n GovPermitStatus,\n GovPayment,\n GovPaymentStatus,\n GovGrievance,\n GovGrievanceStatus,\n GovCreateAgencyInput,\n GovUpdateAgencyInput,\n GovCreateServiceInput,\n GovUpdateServiceInput,\n GovCreateApplicationInput,\n GovUpdateApplicationInput,\n GovAddDocumentInput,\n GovAddCaseNoteInput,\n GovCreatePaymentInput,\n GovIssuePermitInput,\n GovReportGrievanceInput,\n GovUpdateGrievanceInput,\n PaginationInput,\n} from '../types';\n\n// ============================================================================\n// Transport\n// ============================================================================\n\nconst isMutation = (query: string): boolean => /^\\s*mutation\\b/.test(query);\n\nconst govQuery = async <TData>(\n query: string,\n variables: Record<string, unknown>,\n baseUrl?: string\n): Promise<TData> => {\n // A mutation must never be served from — or coalesced onto — the read cache,\n // and the resolved read cache must be dropped once it commits so the\n // React-Query refetch that follows sees the new state, not a stale (≤15s)\n // pre-write response. Clear before AND after the write.\n const mutating = isMutation(query);\n if (mutating) clearGraphqlResponseCache();\n\n const response = await graphqlFetch<TData>({\n gateway: 'workspace',\n baseUrl,\n query,\n variables,\n workspaceToken: true,\n });\n\n if (mutating) clearGraphqlResponseCache();\n\n if (response.errors?.length) {\n throw new Error(response.errors[0]?.message ?? 'GraphQL request failed');\n }\n if (!response.data) {\n throw new Error('GraphQL response did not include data');\n }\n return response.data;\n};\n\n// React-Query key roots (one namespace per domain entity).\nconst KEY = {\n agencies: ['govcitizenhub', 'agencies'] as const,\n agency: (id: string) => ['govcitizenhub', 'agency', id] as const,\n services: ['govcitizenhub', 'services'] as const,\n service: (id: string) => ['govcitizenhub', 'service', id] as const,\n applications: ['govcitizenhub', 'applications'] as const,\n application: (id: string) => ['govcitizenhub', 'application', id] as const,\n payments: ['govcitizenhub', 'payments'] as const,\n payment: (id: string) => ['govcitizenhub', 'payment', id] as const,\n permits: ['govcitizenhub', 'permits'] as const,\n grievances: ['govcitizenhub', 'grievances'] as const,\n grievance: (id: string) => ['govcitizenhub', 'grievance', id] as const,\n};\n\nconst DEFAULT_PAGE: PaginationInput = { limit: 50 };\n\n/** Build a clean PaginationInput, dropping nullish cursor so the svc never sees `cursor: null`. */\nconst page = (p?: PaginationInput): PaginationInput => {\n const base = p ?? DEFAULT_PAGE;\n const result: PaginationInput = { limit: base.limit ?? DEFAULT_PAGE.limit };\n if (base.offset != null) result.offset = base.offset;\n if (base.cursor != null) result.cursor = base.cursor;\n return result;\n};\n\n// ============================================================================\n// Reusable gql field selections (codegen-free strictness)\n// ============================================================================\n\nconst AGENCY_FIELDS = `\n id workspaceId code contactEmail contactPhone description isActive jurisdiction\n name tags createdAt updatedAt\n`;\n\nconst SERVICE_FIELDS = `\n id workspaceId agencyId category currency eligibility feeAmount feeType formSchema\n name publishedAt requiredDocuments slaDays slug status summary tags createdAt updatedAt\n`;\n\nconst DOCUMENT_FIELDS = `\n id workspaceId applicationId name status requirement rejectionReason\n file { id } createdAt updatedAt\n`;\n\nconst CASE_NOTE_FIELDS = `\n id workspaceId applicationId authorId body type createdAt updatedAt\n`;\n\nconst PERMIT_FIELDS = `\n id workspaceId applicationId serviceId holderId title verificationCode status\n issuedAt expiresAt revokedAt revokeReason file { id } createdAt updatedAt\n`;\n\nconst PAYMENT_FIELDS = `\n id workspaceId applicationId payerId amount currency status receiptNumber\n providerRef lineItems paidAt refundedAt createdAt updatedAt\n`;\n\nconst APPLICATION_FIELDS = `\n id workspaceId reference serviceId citizenId assignedToId status priority dueDate\n submittedAt decidedAt decisionReason tags createdAt updatedAt\n`;\n\nconst GRIEVANCE_FIELDS = `\n id workspaceId title description category status priority location latitude longitude\n photoFileIds reporterId agencyId assignedToId resolution resolvedAt tags createdAt updatedAt\n`;\n\n// ============================================================================\n// Agencies (list = ARRAY, not a connection)\n// ============================================================================\n\nexport interface AgencyFilters {\n isActive?: boolean;\n pagination?: PaginationInput;\n}\n\nexport const useGovAgencies = (filters: AgencyFilters = {}) => {\n const { apiGatewayUrl } = useGovCitizenHub();\n return useQuery({\n queryKey: [...KEY.agencies, filters],\n queryFn: async () => {\n const result = await govQuery<{ govListAgencies: GovAgency[] }>(\n `query GovListAgencies($isActive: Boolean, $pagination: PaginationInput) {\n govListAgencies(isActive: $isActive, pagination: $pagination) { ${AGENCY_FIELDS} }\n }`,\n { isActive: filters.isActive, pagination: page(filters.pagination ?? { limit: 100 }) },\n apiGatewayUrl\n );\n return result.govListAgencies;\n },\n });\n};\n\nexport const useGovAgency = (id: string | undefined) => {\n const { apiGatewayUrl } = useGovCitizenHub();\n return useQuery({\n queryKey: KEY.agency(id ?? ''),\n enabled: Boolean(id),\n queryFn: async () => {\n const result = await govQuery<{ govAgency: GovAgency | null }>(\n `query GovAgency($id: ID!) {\n govAgency(id: $id) { ${AGENCY_FIELDS} services { ${SERVICE_FIELDS} } }\n }`,\n { id },\n apiGatewayUrl\n );\n return result.govAgency;\n },\n });\n};\n\nexport const useGovCreateAgency = () => {\n const { apiGatewayUrl } = useGovCitizenHub();\n const qc = useQueryClient();\n return useMutation({\n mutationFn: async (input: GovCreateAgencyInput) => {\n const result = await govQuery<{ govCreateAgency: GovAgency }>(\n `mutation GovCreateAgency($input: GovCreateAgencyInput!) {\n govCreateAgency(input: $input) { ${AGENCY_FIELDS} }\n }`,\n { input },\n apiGatewayUrl\n );\n return result.govCreateAgency;\n },\n onSuccess: () => qc.invalidateQueries({ queryKey: KEY.agencies }),\n });\n};\n\nexport const useGovUpdateAgency = () => {\n const { apiGatewayUrl } = useGovCitizenHub();\n const qc = useQueryClient();\n return useMutation({\n mutationFn: async (vars: { id: string; input: GovUpdateAgencyInput }) => {\n const result = await govQuery<{ govUpdateAgency: GovAgency }>(\n `mutation GovUpdateAgency($id: ID!, $input: GovUpdateAgencyInput!) {\n govUpdateAgency(id: $id, input: $input) { ${AGENCY_FIELDS} }\n }`,\n vars,\n apiGatewayUrl\n );\n return result.govUpdateAgency;\n },\n onSuccess: (data) => {\n qc.invalidateQueries({ queryKey: KEY.agencies });\n qc.invalidateQueries({ queryKey: KEY.agency(data.id) });\n },\n });\n};\n\nexport const useGovArchiveAgency = () => {\n const { apiGatewayUrl } = useGovCitizenHub();\n const qc = useQueryClient();\n return useMutation({\n mutationFn: async (id: string) => {\n const result = await govQuery<{ govArchiveAgency: boolean }>(\n `mutation GovArchiveAgency($id: ID!) { govArchiveAgency(id: $id) }`,\n { id },\n apiGatewayUrl\n );\n return result.govArchiveAgency;\n },\n onSuccess: () => qc.invalidateQueries({ queryKey: KEY.agencies }),\n });\n};\n\n// ============================================================================\n// Services (connection)\n// ============================================================================\n\nexport interface ServiceFilters {\n agencyId?: string;\n category?: GovServiceCategory;\n status?: GovServiceStatus;\n pagination?: PaginationInput;\n}\n\nexport const useGovServices = (filters: ServiceFilters = {}) => {\n const { apiGatewayUrl } = useGovCitizenHub();\n return useQuery({\n queryKey: [...KEY.services, filters],\n queryFn: async () => {\n const result = await govQuery<{ govListServices: GovConnection<GovService> }>(\n `query GovListServices($agencyId: ID, $category: GovServiceCategory, $status: GovServiceStatus, $pagination: PaginationInput) {\n govListServices(agencyId: $agencyId, category: $category, status: $status, pagination: $pagination) {\n items { ${SERVICE_FIELDS} agency { id name } }\n pageInfo { cursor hasMore }\n }\n }`,\n {\n agencyId: filters.agencyId,\n category: filters.category,\n status: filters.status,\n pagination: page(filters.pagination),\n },\n apiGatewayUrl\n );\n return result.govListServices;\n },\n });\n};\n\nexport const useGovService = (id: string | undefined) => {\n const { apiGatewayUrl } = useGovCitizenHub();\n return useQuery({\n queryKey: KEY.service(id ?? ''),\n enabled: Boolean(id),\n queryFn: async () => {\n const result = await govQuery<{ govService: GovService | null }>(\n `query GovService($id: ID!) {\n govService(id: $id) { ${SERVICE_FIELDS} agency { ${AGENCY_FIELDS} } }\n }`,\n { id },\n apiGatewayUrl\n );\n return result.govService;\n },\n });\n};\n\nexport const useGovCreateService = () => {\n const { apiGatewayUrl } = useGovCitizenHub();\n const qc = useQueryClient();\n return useMutation({\n mutationFn: async (input: GovCreateServiceInput) => {\n const result = await govQuery<{ govCreateService: GovService }>(\n `mutation GovCreateService($input: GovCreateServiceInput!) {\n govCreateService(input: $input) { ${SERVICE_FIELDS} }\n }`,\n { input },\n apiGatewayUrl\n );\n return result.govCreateService;\n },\n onSuccess: () => qc.invalidateQueries({ queryKey: KEY.services }),\n });\n};\n\nexport const useGovUpdateService = () => {\n const { apiGatewayUrl } = useGovCitizenHub();\n const qc = useQueryClient();\n return useMutation({\n mutationFn: async (vars: { id: string; input: GovUpdateServiceInput }) => {\n const result = await govQuery<{ govUpdateService: GovService }>(\n `mutation GovUpdateService($id: ID!, $input: GovUpdateServiceInput!) {\n govUpdateService(id: $id, input: $input) { ${SERVICE_FIELDS} }\n }`,\n vars,\n apiGatewayUrl\n );\n return result.govUpdateService;\n },\n onSuccess: (data) => {\n qc.invalidateQueries({ queryKey: KEY.services });\n qc.invalidateQueries({ queryKey: KEY.service(data.id) });\n },\n });\n};\n\nexport const useGovTransitionService = () => {\n const { apiGatewayUrl } = useGovCitizenHub();\n const qc = useQueryClient();\n return useMutation({\n mutationFn: async (vars: { id: string; status: GovServiceStatus }) => {\n const result = await govQuery<{ govTransitionService: GovService }>(\n `mutation GovTransitionService($id: ID!, $status: GovServiceStatus!) {\n govTransitionService(id: $id, status: $status) { ${SERVICE_FIELDS} }\n }`,\n vars,\n apiGatewayUrl\n );\n return result.govTransitionService;\n },\n onSuccess: (data) => {\n qc.invalidateQueries({ queryKey: KEY.services });\n qc.invalidateQueries({ queryKey: KEY.service(data.id) });\n },\n });\n};\n\n// ============================================================================\n// Applications (connection)\n// ============================================================================\n\nexport interface ApplicationFilters {\n assignedToId?: string;\n citizenId?: string;\n serviceId?: string;\n status?: GovApplicationStatus;\n pagination?: PaginationInput;\n}\n\nexport const useGovApplications = (filters: ApplicationFilters = {}) => {\n const { apiGatewayUrl } = useGovCitizenHub();\n return useQuery({\n queryKey: [...KEY.applications, filters],\n queryFn: async () => {\n const result = await govQuery<{ govListApplications: GovConnection<GovApplication> }>(\n `query GovListApplications($assignedToId: ID, $citizenId: ID, $serviceId: ID, $status: GovApplicationStatus, $pagination: PaginationInput) {\n govListApplications(assignedToId: $assignedToId, citizenId: $citizenId, serviceId: $serviceId, status: $status, pagination: $pagination) {\n items { ${APPLICATION_FIELDS} }\n pageInfo { cursor hasMore }\n }\n }`,\n {\n assignedToId: filters.assignedToId,\n citizenId: filters.citizenId,\n serviceId: filters.serviceId,\n status: filters.status,\n pagination: page(filters.pagination),\n },\n apiGatewayUrl\n );\n return result.govListApplications;\n },\n });\n};\n\nexport const useGovApplication = (id: string | undefined) => {\n const { apiGatewayUrl } = useGovCitizenHub();\n return useQuery({\n queryKey: KEY.application(id ?? ''),\n enabled: Boolean(id),\n queryFn: async () => {\n const result = await govQuery<{ govApplication: GovApplication | null }>(\n `query GovApplication($id: ID!) {\n govApplication(id: $id) {\n ${APPLICATION_FIELDS}\n formData\n documents { ${DOCUMENT_FIELDS} }\n notes { ${CASE_NOTE_FIELDS} }\n permits { ${PERMIT_FIELDS} }\n }\n }`,\n { id },\n apiGatewayUrl\n );\n return result.govApplication;\n },\n });\n};\n\nexport const useGovCreateApplication = () => {\n const { apiGatewayUrl } = useGovCitizenHub();\n const qc = useQueryClient();\n return useMutation({\n mutationFn: async (input: GovCreateApplicationInput) => {\n const result = await govQuery<{ govCreateApplication: GovApplication }>(\n `mutation GovCreateApplication($input: GovCreateApplicationInput!) {\n govCreateApplication(input: $input) { ${APPLICATION_FIELDS} }\n }`,\n { input },\n apiGatewayUrl\n );\n return result.govCreateApplication;\n },\n onSuccess: () => qc.invalidateQueries({ queryKey: KEY.applications }),\n });\n};\n\nexport const useGovUpdateApplication = () => {\n const { apiGatewayUrl } = useGovCitizenHub();\n const qc = useQueryClient();\n return useMutation({\n mutationFn: async (vars: { id: string; input: GovUpdateApplicationInput }) => {\n const result = await govQuery<{ govUpdateApplication: GovApplication }>(\n `mutation GovUpdateApplication($id: ID!, $input: GovUpdateApplicationInput!) {\n govUpdateApplication(id: $id, input: $input) { ${APPLICATION_FIELDS} }\n }`,\n vars,\n apiGatewayUrl\n );\n return result.govUpdateApplication;\n },\n onSuccess: (data) => {\n qc.invalidateQueries({ queryKey: KEY.applications });\n qc.invalidateQueries({ queryKey: KEY.application(data.id) });\n },\n });\n};\n\nexport const useGovSubmitApplication = () => {\n const { apiGatewayUrl } = useGovCitizenHub();\n const qc = useQueryClient();\n return useMutation({\n mutationFn: async (id: string) => {\n const result = await govQuery<{ govSubmitApplication: GovApplication }>(\n `mutation GovSubmitApplication($id: ID!) {\n govSubmitApplication(id: $id) { ${APPLICATION_FIELDS} }\n }`,\n { id },\n apiGatewayUrl\n );\n return result.govSubmitApplication;\n },\n onSuccess: (data) => {\n qc.invalidateQueries({ queryKey: KEY.applications });\n qc.invalidateQueries({ queryKey: KEY.application(data.id) });\n },\n });\n};\n\nexport const useGovTransitionApplication = () => {\n const { apiGatewayUrl } = useGovCitizenHub();\n const qc = useQueryClient();\n return useMutation({\n mutationFn: async (vars: {\n id: string;\n status: GovApplicationStatus;\n reason?: string | null;\n }) => {\n const result = await govQuery<{ govTransitionApplication: GovApplication }>(\n `mutation GovTransitionApplication($id: ID!, $status: GovApplicationStatus!, $reason: String) {\n govTransitionApplication(id: $id, status: $status, reason: $reason) { ${APPLICATION_FIELDS} }\n }`,\n vars,\n apiGatewayUrl\n );\n return result.govTransitionApplication;\n },\n onSuccess: (data) => {\n qc.invalidateQueries({ queryKey: KEY.applications });\n qc.invalidateQueries({ queryKey: KEY.application(data.id) });\n },\n });\n};\n\n// ============================================================================\n// Documents (attached to an application)\n// ============================================================================\n\nexport const useGovAddDocument = () => {\n const { apiGatewayUrl } = useGovCitizenHub();\n const qc = useQueryClient();\n return useMutation({\n mutationFn: async (input: GovAddDocumentInput) => {\n const result = await govQuery<{ govAddDocument: GovDocument }>(\n `mutation GovAddDocument($input: GovAddDocumentInput!) {\n govAddDocument(input: $input) { ${DOCUMENT_FIELDS} }\n }`,\n { input },\n apiGatewayUrl\n );\n return result.govAddDocument;\n },\n onSuccess: (data) => {\n qc.invalidateQueries({ queryKey: KEY.application(data.applicationId) });\n qc.invalidateQueries({ queryKey: KEY.applications });\n },\n });\n};\n\nexport const useGovReviewDocument = () => {\n const { apiGatewayUrl } = useGovCitizenHub();\n const qc = useQueryClient();\n return useMutation({\n mutationFn: async (vars: {\n id: string;\n status: GovDocumentStatus;\n rejectionReason?: string | null;\n applicationId?: string;\n }) => {\n const result = await govQuery<{ govReviewDocument: GovDocument }>(\n `mutation GovReviewDocument($id: ID!, $status: GovDocumentStatus!, $rejectionReason: String) {\n govReviewDocument(id: $id, status: $status, rejectionReason: $rejectionReason) { ${DOCUMENT_FIELDS} }\n }`,\n { id: vars.id, status: vars.status, rejectionReason: vars.rejectionReason },\n apiGatewayUrl\n );\n return result.govReviewDocument;\n },\n onSuccess: (data) => {\n qc.invalidateQueries({ queryKey: KEY.application(data.applicationId) });\n },\n });\n};\n\n// ============================================================================\n// Case notes (domain-owned casework timeline)\n// ============================================================================\n\nexport const useGovAddCaseNote = () => {\n const { apiGatewayUrl } = useGovCitizenHub();\n const qc = useQueryClient();\n return useMutation({\n mutationFn: async (input: GovAddCaseNoteInput) => {\n const result = await govQuery<{ govAddCaseNote: GovCaseNote }>(\n `mutation GovAddCaseNote($input: GovAddCaseNoteInput!) {\n govAddCaseNote(input: $input) { ${CASE_NOTE_FIELDS} }\n }`,\n { input },\n apiGatewayUrl\n );\n return result.govAddCaseNote;\n },\n onSuccess: (data) => {\n qc.invalidateQueries({ queryKey: KEY.application(data.applicationId) });\n },\n });\n};\n\n// ============================================================================\n// Payments (connection)\n// ============================================================================\n\nexport interface PaymentFilters {\n applicationId?: string;\n payerId?: string;\n status?: GovPaymentStatus;\n pagination?: PaginationInput;\n}\n\nexport const useGovPayments = (filters: PaymentFilters = {}) => {\n const { apiGatewayUrl } = useGovCitizenHub();\n return useQuery({\n queryKey: [...KEY.payments, filters],\n queryFn: async () => {\n const result = await govQuery<{ govListPayments: GovConnection<GovPayment> }>(\n `query GovListPayments($applicationId: ID, $payerId: ID, $status: GovPaymentStatus, $pagination: PaginationInput) {\n govListPayments(applicationId: $applicationId, payerId: $payerId, status: $status, pagination: $pagination) {\n items { ${PAYMENT_FIELDS} }\n pageInfo { cursor hasMore }\n }\n }`,\n {\n applicationId: filters.applicationId,\n payerId: filters.payerId,\n status: filters.status,\n pagination: page(filters.pagination),\n },\n apiGatewayUrl\n );\n return result.govListPayments;\n },\n });\n};\n\nexport const useGovCreatePayment = () => {\n const { apiGatewayUrl } = useGovCitizenHub();\n const qc = useQueryClient();\n return useMutation({\n mutationFn: async (input: GovCreatePaymentInput) => {\n const result = await govQuery<{ govCreatePayment: GovPayment }>(\n `mutation GovCreatePayment($input: GovCreatePaymentInput!) {\n govCreatePayment(input: $input) { ${PAYMENT_FIELDS} }\n }`,\n { input },\n apiGatewayUrl\n );\n return result.govCreatePayment;\n },\n onSuccess: (data) => {\n qc.invalidateQueries({ queryKey: KEY.payments });\n if (data.applicationId)\n qc.invalidateQueries({ queryKey: KEY.application(data.applicationId) });\n },\n });\n};\n\nexport const useGovMarkPaymentPaid = () => {\n const { apiGatewayUrl } = useGovCitizenHub();\n const qc = useQueryClient();\n return useMutation({\n mutationFn: async (vars: { id: string; providerRef?: string | null }) => {\n const result = await govQuery<{ govMarkPaymentPaid: GovPayment }>(\n `mutation GovMarkPaymentPaid($id: ID!, $providerRef: String) {\n govMarkPaymentPaid(id: $id, providerRef: $providerRef) { ${PAYMENT_FIELDS} }\n }`,\n vars,\n apiGatewayUrl\n );\n return result.govMarkPaymentPaid;\n },\n onSuccess: () => qc.invalidateQueries({ queryKey: KEY.payments }),\n });\n};\n\nexport const useGovRefundPayment = () => {\n const { apiGatewayUrl } = useGovCitizenHub();\n const qc = useQueryClient();\n return useMutation({\n mutationFn: async (id: string) => {\n const result = await govQuery<{ govRefundPayment: GovPayment }>(\n `mutation GovRefundPayment($id: ID!) {\n govRefundPayment(id: $id) { ${PAYMENT_FIELDS} }\n }`,\n { id },\n apiGatewayUrl\n );\n return result.govRefundPayment;\n },\n onSuccess: () => qc.invalidateQueries({ queryKey: KEY.payments }),\n });\n};\n\n// ============================================================================\n// Permits (list = ARRAY, no pagination) + public verification\n// ============================================================================\n\nexport interface PermitFilters {\n holderId?: string;\n serviceId?: string;\n status?: GovPermitStatus;\n}\n\nexport const useGovPermits = (filters: PermitFilters = {}) => {\n const { apiGatewayUrl } = useGovCitizenHub();\n return useQuery({\n queryKey: [...KEY.permits, filters],\n queryFn: async () => {\n const result = await govQuery<{ govListPermits: GovPermit[] }>(\n `query GovListPermits($holderId: ID, $serviceId: ID, $status: GovPermitStatus) {\n govListPermits(holderId: $holderId, serviceId: $serviceId, status: $status) { ${PERMIT_FIELDS} }\n }`,\n { holderId: filters.holderId, serviceId: filters.serviceId, status: filters.status },\n apiGatewayUrl\n );\n return result.govListPermits;\n },\n });\n};\n\nexport const useGovIssuePermit = () => {\n const { apiGatewayUrl } = useGovCitizenHub();\n const qc = useQueryClient();\n return useMutation({\n mutationFn: async (input: GovIssuePermitInput) => {\n const result = await govQuery<{ govIssuePermit: GovPermit }>(\n `mutation GovIssuePermit($input: GovIssuePermitInput!) {\n govIssuePermit(input: $input) { ${PERMIT_FIELDS} }\n }`,\n { input },\n apiGatewayUrl\n );\n return result.govIssuePermit;\n },\n onSuccess: (data) => {\n qc.invalidateQueries({ queryKey: KEY.permits });\n if (data.applicationId)\n qc.invalidateQueries({ queryKey: KEY.application(data.applicationId) });\n },\n });\n};\n\nexport const useGovRevokePermit = () => {\n const { apiGatewayUrl } = useGovCitizenHub();\n const qc = useQueryClient();\n return useMutation({\n mutationFn: async (vars: { id: string; reason?: string | null }) => {\n const result = await govQuery<{ govRevokePermit: GovPermit }>(\n `mutation GovRevokePermit($id: ID!, $reason: String) {\n govRevokePermit(id: $id, reason: $reason) { ${PERMIT_FIELDS} }\n }`,\n vars,\n apiGatewayUrl\n );\n return result.govRevokePermit;\n },\n onSuccess: () => qc.invalidateQueries({ queryKey: KEY.permits }),\n });\n};\n\n/**\n * Public permit verification by printed code. `govVerifyPermit` is a PUBLIC field\n * (no auth), but we keep the workspace-token transport for a consistent gateway\n * path. `enabled` is false until a code is supplied so the query is manual.\n */\nexport const useGovVerifyPermit = (verificationCode: string | undefined) => {\n const { apiGatewayUrl } = useGovCitizenHub();\n return useQuery({\n queryKey: ['govcitizenhub', 'verify-permit', verificationCode ?? ''],\n enabled: Boolean(verificationCode),\n retry: false,\n queryFn: async () => {\n const result = await govQuery<{ govVerifyPermit: GovPermit | null }>(\n `query GovVerifyPermit($verificationCode: String!) {\n govVerifyPermit(verificationCode: $verificationCode) { ${PERMIT_FIELDS} }\n }`,\n { verificationCode },\n apiGatewayUrl\n );\n return result.govVerifyPermit;\n },\n });\n};\n\n// ============================================================================\n// Grievances (connection)\n// ============================================================================\n\nexport interface GrievanceFilters {\n agencyId?: string;\n reporterId?: string;\n status?: GovGrievanceStatus;\n pagination?: PaginationInput;\n}\n\nexport const useGovGrievances = (filters: GrievanceFilters = {}) => {\n const { apiGatewayUrl } = useGovCitizenHub();\n return useQuery({\n queryKey: [...KEY.grievances, filters],\n queryFn: async () => {\n const result = await govQuery<{ govListGrievances: GovConnection<GovGrievance> }>(\n `query GovListGrievances($agencyId: ID, $reporterId: ID, $status: GovGrievanceStatus, $pagination: PaginationInput) {\n govListGrievances(agencyId: $agencyId, reporterId: $reporterId, status: $status, pagination: $pagination) {\n items { ${GRIEVANCE_FIELDS} }\n pageInfo { cursor hasMore }\n }\n }`,\n {\n agencyId: filters.agencyId,\n reporterId: filters.reporterId,\n status: filters.status,\n pagination: page(filters.pagination),\n },\n apiGatewayUrl\n );\n return result.govListGrievances;\n },\n });\n};\n\nexport const useGovGrievance = (id: string | undefined) => {\n const { apiGatewayUrl } = useGovCitizenHub();\n return useQuery({\n queryKey: KEY.grievance(id ?? ''),\n enabled: Boolean(id),\n queryFn: async () => {\n const result = await govQuery<{ govGrievance: GovGrievance | null }>(\n `query GovGrievance($id: ID!) {\n govGrievance(id: $id) { ${GRIEVANCE_FIELDS} }\n }`,\n { id },\n apiGatewayUrl\n );\n return result.govGrievance;\n },\n });\n};\n\nexport const useGovReportGrievance = () => {\n const { apiGatewayUrl } = useGovCitizenHub();\n const qc = useQueryClient();\n return useMutation({\n mutationFn: async (input: GovReportGrievanceInput) => {\n const result = await govQuery<{ govReportGrievance: GovGrievance }>(\n `mutation GovReportGrievance($input: GovReportGrievanceInput!) {\n govReportGrievance(input: $input) { ${GRIEVANCE_FIELDS} }\n }`,\n { input },\n apiGatewayUrl\n );\n return result.govReportGrievance;\n },\n onSuccess: () => qc.invalidateQueries({ queryKey: KEY.grievances }),\n });\n};\n\nexport const useGovUpdateGrievance = () => {\n const { apiGatewayUrl } = useGovCitizenHub();\n const qc = useQueryClient();\n return useMutation({\n mutationFn: async (vars: { id: string; input: GovUpdateGrievanceInput }) => {\n const result = await govQuery<{ govUpdateGrievance: GovGrievance }>(\n `mutation GovUpdateGrievance($id: ID!, $input: GovUpdateGrievanceInput!) {\n govUpdateGrievance(id: $id, input: $input) { ${GRIEVANCE_FIELDS} }\n }`,\n vars,\n apiGatewayUrl\n );\n return result.govUpdateGrievance;\n },\n onSuccess: (data) => {\n qc.invalidateQueries({ queryKey: KEY.grievances });\n qc.invalidateQueries({ queryKey: KEY.grievance(data.id) });\n },\n });\n};\n\nexport const useGovTransitionGrievance = () => {\n const { apiGatewayUrl } = useGovCitizenHub();\n const qc = useQueryClient();\n return useMutation({\n mutationFn: async (vars: {\n id: string;\n status: GovGrievanceStatus;\n resolution?: string | null;\n }) => {\n const result = await govQuery<{ govTransitionGrievance: GovGrievance }>(\n `mutation GovTransitionGrievance($id: ID!, $status: GovGrievanceStatus!, $resolution: String) {\n govTransitionGrievance(id: $id, status: $status, resolution: $resolution) { ${GRIEVANCE_FIELDS} }\n }`,\n vars,\n apiGatewayUrl\n );\n return result.govTransitionGrievance;\n },\n onSuccess: (data) => {\n qc.invalidateQueries({ queryKey: KEY.grievances });\n qc.invalidateQueries({ queryKey: KEY.grievance(data.id) });\n },\n });\n};\n"],"mappings":";;;;;;AAyDA,IAAM,KAAc,MAA2B,iBAAiB,KAAK,EAAM,EAErE,IAAW,OACf,GACA,GACA,MACmB;CAKnB,IAAM,IAAW,EAAW,EAAM;AAClC,CAAI,KAAU,GAA2B;CAEzC,IAAM,IAAW,MAAM,EAAoB;EACzC,SAAS;EACT;EACA;EACA;EACA,gBAAgB;EACjB,CAAC;AAIF,KAFI,KAAU,GAA2B,EAErC,EAAS,QAAQ,OACnB,OAAU,MAAM,EAAS,OAAO,IAAI,WAAW,yBAAyB;AAE1E,KAAI,CAAC,EAAS,KACZ,OAAU,MAAM,wCAAwC;AAE1D,QAAO,EAAS;GAIZ,IAAM;CACV,UAAU,CAAC,iBAAiB,WAAW;CACvC,SAAS,MAAe;EAAC;EAAiB;EAAU;EAAG;CACvD,UAAU,CAAC,iBAAiB,WAAW;CACvC,UAAU,MAAe;EAAC;EAAiB;EAAW;EAAG;CACzD,cAAc,CAAC,iBAAiB,eAAe;CAC/C,cAAc,MAAe;EAAC;EAAiB;EAAe;EAAG;CACjE,UAAU,CAAC,iBAAiB,WAAW;CACvC,UAAU,MAAe;EAAC;EAAiB;EAAW;EAAG;CACzD,SAAS,CAAC,iBAAiB,UAAU;CACrC,YAAY,CAAC,iBAAiB,aAAa;CAC3C,YAAY,MAAe;EAAC;EAAiB;EAAa;EAAG;CAC9D,EAEK,IAAgC,EAAE,OAAO,IAAI,EAG7C,KAAQ,MAAyC;CACrD,IAAM,IAAO,KAAK,GACZ,IAA0B,EAAE,OAAO,EAAK,SAAS,EAAa,OAAO;AAG3E,QAFI,EAAK,UAAU,SAAM,EAAO,SAAS,EAAK,SAC1C,EAAK,UAAU,SAAM,EAAO,SAA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;CAC7C,IAAM,EAAE,qBAAkB,GAAkB,EACtC,IAAK,GAAgB;AAC3B,QAAO,EAAY;EACjB,YAAY,OAAO,OAKF,MAAM,EACnB;wFACgF,EAAiB;YAEjG,GACA,EACD,EACa;EAEhB,YAAY,MAAS;AAEnB,GADA,EAAG,kBAAkB,EAAE,UAAU,EAAI,YAAY,CAAC,EAClD,EAAG,kBAAkB,EAAE,UAAU,EAAI,UAAU,EAAK,GAAG,EAAE,CAAC;;EAE7D,CAAC"}
@@ -1,3 +1,3 @@
1
- import "./providers/GovCitizenHubProvider.js";
2
- import "./store/govcitizenhubStore.js";
1
+ import "./context/GovCitizenHubContext.js";
2
+ import "./context/index.js";
3
3
  import "./GovCitizenHubRoot.js";
@@ -0,0 +1,9 @@
1
+ //#region src/govcitizenhub/lib/graphql-cache.ts
2
+ function e() {
3
+ let e = globalThis;
4
+ e.__graphqlFetchResponseCache?.clear(), e.__graphqlFetchPendingResponses?.clear();
5
+ }
6
+ //#endregion
7
+ export { e as clearGraphqlResponseCache };
8
+
9
+ //# sourceMappingURL=graphql-cache.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graphql-cache.js","names":[],"sources":["../../../src/govcitizenhub/lib/graphql-cache.ts"],"sourcesContent":["/**\n * graphql-cache — invalidate fe-libs' imperative-fetch response cache after writes.\n * @module govcitizenhub/lib\n *\n * `graphqlFetch` (from `@burdenoff/fe-libs/shared/graphql`) caches every RESOLVED\n * `query` response for ~15s (keyed by operationName + variables) and de-dupes\n * in-flight requests. A refetch issued right after a mutation — exactly what our\n * React-Query `invalidateQueries` triggers — otherwise gets served the\n * PRE-mutation response, so created/updated/deleted rows stay invisible until a\n * full page reload. We clear the two globals fe-libs stores on `globalThis` to\n * force every post-write read back onto the network.\n */\n\ninterface GraphqlFetchGlobals {\n __graphqlFetchResponseCache?: { clear: () => void };\n __graphqlFetchPendingResponses?: { clear: () => void };\n}\n\n/** Clear fe-libs' resolved-response cache and in-flight de-dupe map. */\nexport function clearGraphqlResponseCache(): void {\n const g = globalThis as unknown as GraphqlFetchGlobals;\n g.__graphqlFetchResponseCache?.clear();\n g.__graphqlFetchPendingResponses?.clear();\n}\n"],"mappings":";AAmBA,SAAgB,IAAkC;CAChD,IAAM,IAAI;AAEV,CADA,EAAE,6BAA6B,OAAO,EACtC,EAAE,gCAAgC,OAAO"}
@@ -0,0 +1,39 @@
1
+ import { toast as e } from "../../node_modules/sonner/dist/index.js";
2
+ //#region src/govcitizenhub/lib/toast.ts
3
+ var t = {
4
+ success(t, n) {
5
+ e.success(t, {
6
+ description: n,
7
+ duration: 4e3
8
+ });
9
+ },
10
+ info(t, n) {
11
+ e.info(t, {
12
+ description: n,
13
+ duration: 4e3
14
+ });
15
+ },
16
+ warning(t, n) {
17
+ e.warning(t, {
18
+ description: n,
19
+ duration: 8e3
20
+ });
21
+ },
22
+ error(t, n) {
23
+ e.error(t, {
24
+ description: n,
25
+ duration: Infinity,
26
+ closeButton: !0
27
+ });
28
+ },
29
+ dismiss(t) {
30
+ e.dismiss(t);
31
+ }
32
+ };
33
+ function n(e) {
34
+ return e instanceof Error ? e.message : typeof e == "string" ? e : "Something went wrong. Please try again.";
35
+ }
36
+ //#endregion
37
+ export { n as describeError, t as notify };
38
+
39
+ //# sourceMappingURL=toast.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toast.js","names":[],"sources":["../../../src/govcitizenhub/lib/toast.ts"],"sourcesContent":["import { toast } from 'sonner';\n\n/**\n * Module-wide toast API. sonner is a global singleton; the matching <Toaster>\n * is owned by the HOST app shell. Every page/component surfaces feedback through\n * these helpers instead of hand-rolling fixed-position toast markup, so\n * success/error notifications stay consistent with the rest of the platform.\n */\nexport const notify = {\n success(message: string, description?: string): void {\n toast.success(message, { description, duration: 4000 });\n },\n info(message: string, description?: string): void {\n toast.info(message, { description, duration: 4000 });\n },\n warning(message: string, description?: string): void {\n toast.warning(message, { description, duration: 8000 });\n },\n error(message: string, description?: string): void {\n toast.error(message, { description, duration: Infinity, closeButton: true });\n },\n dismiss(id?: string | number): void {\n toast.dismiss(id);\n },\n};\n\n/** Normalize an unknown thrown value into a human-readable message. */\nexport function describeError(error: unknown): string {\n if (error instanceof Error) return error.message;\n if (typeof error === 'string') return error;\n return 'Something went wrong. Please try again.';\n}\n\nexport { toast };\n"],"mappings":";;AAQA,IAAa,IAAS;CACpB,QAAQ,GAAiB,GAA4B;AACnD,IAAM,QAAQ,GAAS;GAAE;GAAa,UAAU;GAAM,CAAC;;CAEzD,KAAK,GAAiB,GAA4B;AAChD,IAAM,KAAK,GAAS;GAAE;GAAa,UAAU;GAAM,CAAC;;CAEtD,QAAQ,GAAiB,GAA4B;AACnD,IAAM,QAAQ,GAAS;GAAE;GAAa,UAAU;GAAM,CAAC;;CAEzD,MAAM,GAAiB,GAA4B;AACjD,IAAM,MAAM,GAAS;GAAE;GAAa,UAAU;GAAU,aAAa;GAAM,CAAC;;CAE9E,QAAQ,GAA4B;AAClC,IAAM,QAAQ,EAAG;;CAEpB;AAGD,SAAgB,EAAc,GAAwB;AAGpD,QAFI,aAAiB,QAAc,EAAM,UACrC,OAAO,KAAU,WAAiB,IAC/B"}