@seliseblocks/genesis-os 4.4.7 → 4.4.8

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 (78) hide show
  1. package/dist/{all-DOPVVJD5.js → all-O45OXFJ7.js} +43 -43
  2. package/dist/all-O45OXFJ7.js.map +1 -0
  3. package/dist/{all-U2EMOAAN.cjs → all-UJTAKIGL.cjs} +43 -43
  4. package/dist/{all-U2EMOAAN.cjs.map → all-UJTAKIGL.cjs.map} +1 -1
  5. package/dist/aspnet-4V2TYHQE.cjs +13 -0
  6. package/dist/{aspnet-7QL7EKM4.cjs.map → aspnet-4V2TYHQE.cjs.map} +1 -1
  7. package/dist/aspnet-R3X2H2AO.js +7 -0
  8. package/dist/{aspnet-I623QV26.js.map → aspnet-R3X2H2AO.js.map} +1 -1
  9. package/dist/{chunk-5L6BSYZR.cjs → chunk-45XWYZ67.cjs} +3 -3
  10. package/dist/{chunk-5L6BSYZR.cjs.map → chunk-45XWYZ67.cjs.map} +1 -1
  11. package/dist/{chunk-5JLLXRMI.cjs → chunk-A373J4BR.cjs} +44 -44
  12. package/dist/{chunk-5JLLXRMI.cjs.map → chunk-A373J4BR.cjs.map} +1 -1
  13. package/dist/{chunk-4RZMYO3F.cjs → chunk-AIUUCMAI.cjs} +6 -6
  14. package/dist/{chunk-4RZMYO3F.cjs.map → chunk-AIUUCMAI.cjs.map} +1 -1
  15. package/dist/{chunk-X3GPJW7R.cjs → chunk-CTIGX76P.cjs} +4 -4
  16. package/dist/{chunk-X3GPJW7R.cjs.map → chunk-CTIGX76P.cjs.map} +1 -1
  17. package/dist/{chunk-KZOSD6FO.js → chunk-ECDNFX6H.js} +3 -3
  18. package/dist/{chunk-KZOSD6FO.js.map → chunk-ECDNFX6H.js.map} +1 -1
  19. package/dist/{chunk-ASX5UGE4.js → chunk-G24RPSJG.js} +42 -42
  20. package/dist/{chunk-ASX5UGE4.js.map → chunk-G24RPSJG.js.map} +1 -1
  21. package/dist/{chunk-VJAVGV6Z.js → chunk-GFUHF4DC.js} +3 -3
  22. package/dist/{chunk-VJAVGV6Z.js.map → chunk-GFUHF4DC.js.map} +1 -1
  23. package/dist/{chunk-F2IEUFPT.js → chunk-KA2OOMCU.js} +39 -33
  24. package/dist/chunk-KA2OOMCU.js.map +1 -0
  25. package/dist/{chunk-KZ3NZCXZ.cjs → chunk-OPMWK5SY.cjs} +14 -2
  26. package/dist/chunk-OPMWK5SY.cjs.map +1 -0
  27. package/dist/{chunk-CSFOG5YH.cjs → chunk-QBL4VIE4.cjs} +174 -168
  28. package/dist/chunk-QBL4VIE4.cjs.map +1 -0
  29. package/dist/{chunk-O7TJN754.js → chunk-QHNZOBXR.js} +3 -3
  30. package/dist/{chunk-O7TJN754.js.map → chunk-QHNZOBXR.js.map} +1 -1
  31. package/dist/{chunk-VGOVEFEP.cjs → chunk-SAK3QQCD.cjs} +3 -3
  32. package/dist/{chunk-VGOVEFEP.cjs.map → chunk-SAK3QQCD.cjs.map} +1 -1
  33. package/dist/{chunk-XL7EULGP.js → chunk-U6GTLTLO.js} +3 -3
  34. package/dist/{chunk-XL7EULGP.js.map → chunk-U6GTLTLO.js.map} +1 -1
  35. package/dist/{chunk-O2MGCS3O.js → chunk-XYPSBVXL.js} +14 -2
  36. package/dist/chunk-XYPSBVXL.js.map +1 -0
  37. package/dist/components/index.cjs +392 -392
  38. package/dist/components/index.js +45 -45
  39. package/dist/cshtml-IPCDTLX7.cjs +13 -0
  40. package/dist/{cshtml-ETL7US3D.cjs.map → cshtml-IPCDTLX7.cjs.map} +1 -1
  41. package/dist/cshtml-XPUEHA6K.js +7 -0
  42. package/dist/{cshtml-TVLCSBKU.js.map → cshtml-XPUEHA6K.js.map} +1 -1
  43. package/dist/eslint/index.cjs +33 -0
  44. package/dist/eslint/index.cjs.map +1 -0
  45. package/dist/eslint/index.d.cts +12 -0
  46. package/dist/eslint/index.d.ts +12 -0
  47. package/dist/eslint/index.js +28 -0
  48. package/dist/eslint/index.js.map +1 -0
  49. package/dist/guards/index.cjs +51 -51
  50. package/dist/guards/index.js +45 -45
  51. package/dist/i18n/index.cjs +29 -29
  52. package/dist/i18n/index.d.cts +4 -4
  53. package/dist/i18n/index.d.ts +4 -4
  54. package/dist/i18n/index.js +1 -1
  55. package/dist/index.cjs +510 -510
  56. package/dist/index.js +45 -45
  57. package/dist/layouts/index.cjs +52 -52
  58. package/dist/layouts/index.js +45 -45
  59. package/dist/observability/index.cjs +27 -21
  60. package/dist/observability/index.cjs.map +1 -1
  61. package/dist/observability/index.js +27 -21
  62. package/dist/observability/index.js.map +1 -1
  63. package/dist/pages/index.cjs +50 -50
  64. package/dist/pages/index.js +45 -45
  65. package/dist/providers/index.cjs +6 -6
  66. package/dist/providers/index.js +2 -2
  67. package/dist/utils/index.cjs +70 -70
  68. package/dist/utils/index.js +2 -2
  69. package/package.json +6 -1
  70. package/dist/all-DOPVVJD5.js.map +0 -1
  71. package/dist/aspnet-7QL7EKM4.cjs +0 -13
  72. package/dist/aspnet-I623QV26.js +0 -7
  73. package/dist/chunk-CSFOG5YH.cjs.map +0 -1
  74. package/dist/chunk-F2IEUFPT.js.map +0 -1
  75. package/dist/chunk-KZ3NZCXZ.cjs.map +0 -1
  76. package/dist/chunk-O2MGCS3O.js.map +0 -1
  77. package/dist/cshtml-ETL7US3D.cjs +0 -13
  78. package/dist/cshtml-TVLCSBKU.js +0 -7
@@ -1,5 +1,7 @@
1
- export { AuthLayout, ConsoleLayout, DashboardLayout, DashboardRoute, OidcLayout, PublicLayout, useOidcContext } from '../chunk-F2IEUFPT.js';
2
- import '../chunk-ASX5UGE4.js';
1
+ export { AuthLayout, ConsoleLayout, DashboardLayout, DashboardRoute, OidcLayout, PublicLayout, useOidcContext } from '../chunk-KA2OOMCU.js';
2
+ import '../chunk-G24RPSJG.js';
3
+ import '../chunk-FGY7QM3Y.js';
4
+ import '../chunk-R3B6KJB4.js';
3
5
  import '../chunk-QGKE6E2R.js';
4
6
  import '../chunk-3PTLRYMI.js';
5
7
  import '../chunk-RYYFLMEK.js';
@@ -7,7 +9,7 @@ import '../chunk-QIHIATNN.js';
7
9
  import '../chunk-ZCIZ6KCM.js';
8
10
  import '../chunk-YMRCM55K.js';
9
11
  import '../chunk-MPPNG7PX.js';
10
- import '../chunk-FGY7QM3Y.js';
12
+ import '../chunk-YBQVKFOF.js';
11
13
  import '../chunk-OKLELDQD.js';
12
14
  import '../chunk-SGKWKPOC.js';
13
15
  import '../chunk-GFCJMLXH.js';
@@ -15,7 +17,7 @@ import '../chunk-NDCCT7CE.js';
15
17
  import '../chunk-TTECJDVP.js';
16
18
  import '../chunk-JDFLEVHA.js';
17
19
  import '../chunk-DHZRN4FK.js';
18
- import '../chunk-R3B6KJB4.js';
20
+ import '../chunk-SGGFS4QK.js';
19
21
  import '../chunk-N3GKQB6D.js';
20
22
  import '../chunk-TFBH2DSI.js';
21
23
  import '../chunk-JKNXEV65.js';
@@ -23,7 +25,7 @@ import '../chunk-5CX22OYW.js';
23
25
  import '../chunk-IMR2MOUI.js';
24
26
  import '../chunk-O4NZ6EXR.js';
25
27
  import '../chunk-VEFP5TZJ.js';
26
- import '../chunk-YBQVKFOF.js';
28
+ import '../chunk-IAS3MAZL.js';
27
29
  import '../chunk-SLHUY4SB.js';
28
30
  import '../chunk-QXLARQJG.js';
29
31
  import '../chunk-DD2RFLWA.js';
@@ -31,23 +33,23 @@ import '../chunk-37D6TVFK.js';
31
33
  import '../chunk-ND6E3LWI.js';
32
34
  import '../chunk-6KRTAWJ2.js';
33
35
  import '../chunk-4HTLIWCM.js';
34
- import '../chunk-SGGFS4QK.js';
36
+ import '../chunk-XTVYCRHC.js';
35
37
  import '../chunk-E54NSTCB.js';
36
38
  import '../chunk-UBZ6REOB.js';
37
39
  import '../chunk-QWPOKZ4X.js';
38
40
  import '../chunk-ZGH7UPWF.js';
39
41
  import '../chunk-GDBLFNLT.js';
40
42
  import '../chunk-DH4AY6Y6.js';
41
- import '../chunk-IAS3MAZL.js';
42
43
  import '../chunk-6BUSXW4D.js';
43
44
  import '../chunk-OJWPT4WP.js';
45
+ import '../chunk-3PSNJAZD.js';
44
46
  import '../chunk-55MQ55OZ.js';
45
47
  import '../chunk-AIMTD4KX.js';
46
48
  import '../chunk-BOWL3YLQ.js';
47
49
  import '../chunk-EV6RF7LM.js';
48
50
  import '../chunk-DD7GQEGU.js';
49
51
  import '../chunk-2QV7Z2A3.js';
50
- import '../chunk-XTVYCRHC.js';
52
+ import '../chunk-3BSXK552.js';
51
53
  import '../chunk-ODUV3C7D.js';
52
54
  import '../chunk-IYDRQQS4.js';
53
55
  import '../chunk-64CYQ4FV.js';
@@ -55,7 +57,7 @@ import '../chunk-W4VPDTO7.js';
55
57
  import '../chunk-NNDIC3XT.js';
56
58
  import '../chunk-RFAANPHB.js';
57
59
  import '../chunk-WIOBKW46.js';
58
- import '../chunk-3PSNJAZD.js';
60
+ import '../chunk-J3KPS4LT.js';
59
61
  import '../chunk-LEASHF66.js';
60
62
  import '../chunk-UG5R234E.js';
61
63
  import '../chunk-LOHOZ2K2.js';
@@ -63,7 +65,7 @@ import '../chunk-MORJFZAZ.js';
63
65
  import '../chunk-SVJ64II2.js';
64
66
  import '../chunk-LQJZ2LCA.js';
65
67
  import '../chunk-JGFSMWFV.js';
66
- import '../chunk-3BSXK552.js';
68
+ import '../chunk-NQOYHUMJ.js';
67
69
  import '../chunk-7PFJYYLU.js';
68
70
  import '../chunk-SCGEKXUS.js';
69
71
  import '../chunk-VTWZTABB.js';
@@ -71,7 +73,7 @@ import '../chunk-WLUQEXDM.js';
71
73
  import '../chunk-PIWZJ7UQ.js';
72
74
  import '../chunk-BUT6MN7S.js';
73
75
  import '../chunk-3OSEVMLV.js';
74
- import '../chunk-J3KPS4LT.js';
76
+ import '../chunk-L4RXADZY.js';
75
77
  import '../chunk-5POVAWXM.js';
76
78
  import '../chunk-2OXHRK2X.js';
77
79
  import '../chunk-ACFO735E.js';
@@ -79,7 +81,7 @@ import '../chunk-ODOLVS5X.js';
79
81
  import '../chunk-JXXRDUZY.js';
80
82
  import '../chunk-BSVLWFDX.js';
81
83
  import '../chunk-MCC4KGHG.js';
82
- import '../chunk-NQOYHUMJ.js';
84
+ import '../chunk-7APSJOUJ.js';
83
85
  import '../chunk-K4HINSGY.js';
84
86
  import '../chunk-77W5EREH.js';
85
87
  import '../chunk-F5MHVAIT.js';
@@ -87,7 +89,7 @@ import '../chunk-63BPWBZX.js';
87
89
  import '../chunk-N3WYC77T.js';
88
90
  import '../chunk-VKNYFEMU.js';
89
91
  import '../chunk-HWQJ4WL5.js';
90
- import '../chunk-L4RXADZY.js';
92
+ import '../chunk-LWRSPFKS.js';
91
93
  import '../chunk-2F6PHJBS.js';
92
94
  import '../chunk-CZKQFVSW.js';
93
95
  import '../chunk-4WCCJ7DU.js';
@@ -95,7 +97,7 @@ import '../chunk-3CHM5N3G.js';
95
97
  import '../chunk-WGXPSORX.js';
96
98
  import '../chunk-7U54VKCG.js';
97
99
  import '../chunk-PCDITZIA.js';
98
- import '../chunk-7APSJOUJ.js';
100
+ import '../chunk-MILSRJIY.js';
99
101
  import '../chunk-CBI4JNHD.js';
100
102
  import '../chunk-6VXWSALL.js';
101
103
  import '../chunk-GA6J3E4M.js';
@@ -103,7 +105,7 @@ import '../chunk-R6GB3GYA.js';
103
105
  import '../chunk-PYGPVE6A.js';
104
106
  import '../chunk-V42IGUUB.js';
105
107
  import '../chunk-QBMIDMMH.js';
106
- import '../chunk-LWRSPFKS.js';
108
+ import '../chunk-QKRK2LDT.js';
107
109
  import '../chunk-DXHY33BU.js';
108
110
  import '../chunk-KCUCVHZL.js';
109
111
  import '../chunk-3XGPQ5BH.js';
@@ -111,7 +113,7 @@ import '../chunk-26CJIKWW.js';
111
113
  import '../chunk-HG6T5F3R.js';
112
114
  import '../chunk-6SW7SD6W.js';
113
115
  import '../chunk-CFL5RKNP.js';
114
- import '../chunk-MILSRJIY.js';
116
+ import '../chunk-4WWISRWW.js';
115
117
  import '../chunk-GH24ZWRO.js';
116
118
  import '../chunk-FIBUPKRF.js';
117
119
  import '../chunk-SSUXYIQM.js';
@@ -119,7 +121,7 @@ import '../chunk-BEVOWAWO.js';
119
121
  import '../chunk-HADXNHMA.js';
120
122
  import '../chunk-A4ZHCH24.js';
121
123
  import '../chunk-JZCAPCYY.js';
122
- import '../chunk-QKRK2LDT.js';
124
+ import '../chunk-UBLKLDPQ.js';
123
125
  import '../chunk-4FLOWWDA.js';
124
126
  import '../chunk-HIXXWETH.js';
125
127
  import '../chunk-MRZDR4LY.js';
@@ -127,7 +129,7 @@ import '../chunk-DEYDTCDP.js';
127
129
  import '../chunk-JYNFLHDQ.js';
128
130
  import '../chunk-UIF3FRC7.js';
129
131
  import '../chunk-UOLEJOBT.js';
130
- import '../chunk-4WWISRWW.js';
132
+ import '../chunk-NJN2TQ42.js';
131
133
  import '../chunk-NZ6CYTYE.js';
132
134
  import '../chunk-SAIVVROO.js';
133
135
  import '../chunk-AKCC73MG.js';
@@ -135,7 +137,7 @@ import '../chunk-JEVQ6XYN.js';
135
137
  import '../chunk-IWN365BJ.js';
136
138
  import '../chunk-PXTRSHSX.js';
137
139
  import '../chunk-EXJC6K7J.js';
138
- import '../chunk-UBLKLDPQ.js';
140
+ import '../chunk-7Y35JJQ6.js';
139
141
  import '../chunk-V3S4F5OM.js';
140
142
  import '../chunk-366HK3XQ.js';
141
143
  import '../chunk-7WPK5AIO.js';
@@ -143,7 +145,7 @@ import '../chunk-7ZZTVX7L.js';
143
145
  import '../chunk-7HCY55BF.js';
144
146
  import '../chunk-KR2NJYYR.js';
145
147
  import '../chunk-J4EZCHXA.js';
146
- import '../chunk-NJN2TQ42.js';
148
+ import '../chunk-RPRE5EWZ.js';
147
149
  import '../chunk-VW5SDBGX.js';
148
150
  import '../chunk-5NKI24T7.js';
149
151
  import '../chunk-GC6MG2A4.js';
@@ -151,7 +153,7 @@ import '../chunk-OL2HLUVJ.js';
151
153
  import '../chunk-W2WSFRPM.js';
152
154
  import '../chunk-GY7XKWD3.js';
153
155
  import '../chunk-25GCN4RS.js';
154
- import '../chunk-7Y35JJQ6.js';
156
+ import '../chunk-PW2A7MEM.js';
155
157
  import '../chunk-DL3GAMAZ.js';
156
158
  import '../chunk-FKBHNAPK.js';
157
159
  import '../chunk-37NE6JRH.js';
@@ -159,7 +161,7 @@ import '../chunk-OGIY6YUE.js';
159
161
  import '../chunk-PB5FUC5Z.js';
160
162
  import '../chunk-XCAXYODX.js';
161
163
  import '../chunk-UJTVLL67.js';
162
- import '../chunk-RPRE5EWZ.js';
164
+ import '../chunk-MQB7SAZK.js';
163
165
  import '../chunk-6NNHIANJ.js';
164
166
  import '../chunk-HQNDGZ3F.js';
165
167
  import '../chunk-3HR4XXAM.js';
@@ -167,7 +169,7 @@ import '../chunk-VW6APHZ4.js';
167
169
  import '../chunk-4FMV2QZA.js';
168
170
  import '../chunk-PTCVCTF6.js';
169
171
  import '../chunk-IWZQTJUM.js';
170
- import '../chunk-PW2A7MEM.js';
172
+ import '../chunk-PREJIFNQ.js';
171
173
  import '../chunk-GCTAT2A6.js';
172
174
  import '../chunk-6NIEAMTY.js';
173
175
  import '../chunk-GORCTV7K.js';
@@ -175,7 +177,7 @@ import '../chunk-MTB3NHQA.js';
175
177
  import '../chunk-MF7MBBWD.js';
176
178
  import '../chunk-NPZHIJ72.js';
177
179
  import '../chunk-MQDXXNB4.js';
178
- import '../chunk-MQB7SAZK.js';
180
+ import '../chunk-FKKSSQ7O.js';
179
181
  import '../chunk-YVYGLUPE.js';
180
182
  import '../chunk-HWG5A3YT.js';
181
183
  import '../chunk-KDJQPKVR.js';
@@ -183,7 +185,7 @@ import '../chunk-TEI2ZXKX.js';
183
185
  import '../chunk-ZWQHBC2H.js';
184
186
  import '../chunk-OAWVJBEQ.js';
185
187
  import '../chunk-FJXWP4C7.js';
186
- import '../chunk-PREJIFNQ.js';
188
+ import '../chunk-WGBYG4KN.js';
187
189
  import '../chunk-UQCZFT4E.js';
188
190
  import '../chunk-QYXSMAGD.js';
189
191
  import '../chunk-2BNYIH2D.js';
@@ -191,7 +193,7 @@ import '../chunk-DD4PLQRX.js';
191
193
  import '../chunk-J7Y7XAZU.js';
192
194
  import '../chunk-SFW2U7WQ.js';
193
195
  import '../chunk-PTDS4YCK.js';
194
- import '../chunk-FKKSSQ7O.js';
196
+ import '../chunk-6KYOUEFN.js';
195
197
  import '../chunk-K236PFCF.js';
196
198
  import '../chunk-6UW6R5FG.js';
197
199
  import '../chunk-R2OOE7LQ.js';
@@ -199,7 +201,7 @@ import '../chunk-OAETZLTA.js';
199
201
  import '../chunk-LAOHKZFN.js';
200
202
  import '../chunk-LLJP62OE.js';
201
203
  import '../chunk-PSLYJPT3.js';
202
- import '../chunk-WGBYG4KN.js';
204
+ import '../chunk-52YHQINR.js';
203
205
  import '../chunk-NJWRBNTZ.js';
204
206
  import '../chunk-LCY7WAYX.js';
205
207
  import '../chunk-Q2NPTR72.js';
@@ -207,7 +209,7 @@ import '../chunk-J2SNKZJQ.js';
207
209
  import '../chunk-ZAWGJ5AB.js';
208
210
  import '../chunk-Z5NVW4GH.js';
209
211
  import '../chunk-LNICM22M.js';
210
- import '../chunk-6KYOUEFN.js';
212
+ import '../chunk-6A7YIUIA.js';
211
213
  import '../chunk-VISYQQCT.js';
212
214
  import '../chunk-WAZ3YKNR.js';
213
215
  import '../chunk-XRNRRKCC.js';
@@ -215,15 +217,15 @@ import '../chunk-LUEGKTPH.js';
215
217
  import '../chunk-LVA46YPR.js';
216
218
  import '../chunk-YM5V7LBM.js';
217
219
  import '../chunk-W35GIUQK.js';
218
- import '../chunk-52YHQINR.js';
219
220
  import '../chunk-NWE7SCD7.js';
221
+ import '../chunk-O55E2MWD.js';
220
222
  import '../chunk-N5FCAJPP.js';
221
223
  import '../chunk-ALPPEMZS.js';
222
224
  import '../chunk-J6UPK454.js';
223
225
  import '../chunk-HXI7BKTG.js';
224
226
  import '../chunk-6XYO43SH.js';
225
227
  import '../chunk-S733PEU3.js';
226
- import '../chunk-6A7YIUIA.js';
228
+ import '../chunk-M42YRNZR.js';
227
229
  import '../chunk-BO42DO7C.js';
228
230
  import '../chunk-PQWG63TI.js';
229
231
  import '../chunk-Y73LDKQ7.js';
@@ -231,15 +233,15 @@ import '../chunk-R6KM2ABY.js';
231
233
  import '../chunk-UCJXBWMF.js';
232
234
  import '../chunk-2NLC7FZW.js';
233
235
  import '../chunk-VYA3UEBK.js';
234
- import '../chunk-O55E2MWD.js';
236
+ import '../chunk-ZFRYGIEH.js';
235
237
  import '../chunk-NUKSASNT.js';
236
238
  import '../chunk-QMAYFVLF.js';
237
- import '../chunk-XL7EULGP.js';
239
+ import '../chunk-U6GTLTLO.js';
238
240
  import '../chunk-6L4NQFU2.js';
239
241
  import '../chunk-7HKN4MK7.js';
240
242
  import '../chunk-NTZIPEHQ.js';
241
243
  import '../chunk-L6Y7JLPP.js';
242
- import '../chunk-M42YRNZR.js';
244
+ import '../chunk-YHQPF2QN.js';
243
245
  import '../chunk-LEFNBY3M.js';
244
246
  import '../chunk-H33GJZU5.js';
245
247
  import '../chunk-LPQASKP4.js';
@@ -247,7 +249,7 @@ import '../chunk-L3H27NED.js';
247
249
  import '../chunk-UNA4CGTD.js';
248
250
  import '../chunk-LDWKEC6F.js';
249
251
  import '../chunk-4VOQAGMT.js';
250
- import '../chunk-ZFRYGIEH.js';
252
+ import '../chunk-Y7TANJJP.js';
251
253
  import '../chunk-HUWL2U45.js';
252
254
  import '../chunk-NWJNWM3J.js';
253
255
  import '../chunk-CTR6KALU.js';
@@ -255,7 +257,7 @@ import '../chunk-GBCQUNQT.js';
255
257
  import '../chunk-KIXOCDB6.js';
256
258
  import '../chunk-UNXAUME3.js';
257
259
  import '../chunk-RHPQI6XC.js';
258
- import '../chunk-YHQPF2QN.js';
260
+ import '../chunk-22ZU4FLC.js';
259
261
  import '../chunk-4OVJQPOQ.js';
260
262
  import '../chunk-J3P76NBG.js';
261
263
  import '../chunk-Y5TCPOPZ.js';
@@ -263,15 +265,15 @@ import '../chunk-IITLJKIN.js';
263
265
  import '../chunk-NW7MBCTO.js';
264
266
  import '../chunk-YHVH6OZB.js';
265
267
  import '../chunk-5FWZJLIL.js';
266
- import '../chunk-Y7TANJJP.js';
267
- import '../chunk-VJAVGV6Z.js';
268
+ import '../chunk-GFUHF4DC.js';
269
+ import '../chunk-MFCBQR5N.js';
268
270
  import '../chunk-FVT6EB5V.js';
269
271
  import '../chunk-AD7JULWZ.js';
270
272
  import '../chunk-P2KDKOEA.js';
271
273
  import '../chunk-EG66DK4J.js';
272
274
  import '../chunk-FGXQ2EA2.js';
273
275
  import '../chunk-HWIE6USG.js';
274
- import '../chunk-22ZU4FLC.js';
276
+ import '../chunk-QSCJ5DQP.js';
275
277
  import '../chunk-Q5RANCTT.js';
276
278
  import '../chunk-OEX5NACM.js';
277
279
  import '../chunk-L7EV4FXF.js';
@@ -279,15 +281,15 @@ import '../chunk-7AI7BT5R.js';
279
281
  import '../chunk-OQBKF2EF.js';
280
282
  import '../chunk-3YQ3M7DE.js';
281
283
  import '../chunk-D2YBHP6K.js';
282
- import '../chunk-MFCBQR5N.js';
284
+ import '../chunk-IDB7RW4T.js';
283
285
  import '../chunk-VJ7YU2MV.js';
284
286
  import '../chunk-BUHTHPNT.js';
285
287
  import '../chunk-K3TN2EUL.js';
286
288
  import '../chunk-EHUHG4SC.js';
287
289
  import '../chunk-7ES4FJS4.js';
288
- import '../chunk-QSCJ5DQP.js';
289
290
  import '../chunk-CCRH6YC3.js';
290
291
  import '../chunk-PPBQIKBD.js';
292
+ import '../chunk-AWP77TL7.js';
291
293
  import '../chunk-NQ5NFREQ.js';
292
294
  import '../chunk-LZESVUX3.js';
293
295
  import '../chunk-A4HVLCC2.js';
@@ -295,19 +297,17 @@ import '../chunk-ORC562IP.js';
295
297
  import '../chunk-RIYDYKGS.js';
296
298
  import '../chunk-WN5PURTO.js';
297
299
  import '../chunk-U4FQB2IK.js';
298
- import '../chunk-IDB7RW4T.js';
299
300
  import '../chunk-B3EJZXGM.js';
300
- import '../chunk-AWP77TL7.js';
301
301
  import '../chunk-3OO2YVXW.js';
302
- import '../chunk-O7TJN754.js';
302
+ import '../chunk-QHNZOBXR.js';
303
303
  import '../chunk-T3FFMBIJ.js';
304
304
  import '../chunk-6QSPMPJD.js';
305
305
  import '../chunk-UDFH7SJI.js';
306
306
  import '../chunk-7ZZ3KLZD.js';
307
- import '../chunk-KZOSD6FO.js';
307
+ import '../chunk-ECDNFX6H.js';
308
308
  import '../chunk-AHCHUUXM.js';
309
309
  import '../chunk-XUQVWFG5.js';
310
- import '../chunk-O2MGCS3O.js';
310
+ import '../chunk-XYPSBVXL.js';
311
311
  import '../chunk-3MLPBMH2.js';
312
312
  import '../chunk-BRHE44FE.js';
313
313
  import '../chunk-POJIHGRY.js';
@@ -1,8 +1,11 @@
1
1
  'use strict';
2
2
 
3
3
  var chunk2MP66EX3_cjs = require('../chunk-2MP66EX3.cjs');
4
+ var chunkOPMWK5SY_cjs = require('../chunk-OPMWK5SY.cjs');
4
5
  var chunkF2LXD7RI_cjs = require('../chunk-F2LXD7RI.cjs');
5
6
  var chunkTSRDXJUG_cjs = require('../chunk-TSRDXJUG.cjs');
7
+ require('../chunk-3LBTW4A3.cjs');
8
+ require('../chunk-GSCW3WIQ.cjs');
6
9
  require('../chunk-QJOVCH5A.cjs');
7
10
  var Rollbar2 = require('rollbar');
8
11
  var react$1 = require('@rollbar/react');
@@ -171,27 +174,30 @@ var attachQueryErrorReporting = (queryClient, rollbar) => {
171
174
  unsubscribeMutations();
172
175
  };
173
176
  };
174
- var DefaultFallback = ({ resetError }) => /* @__PURE__ */ jsxRuntime.jsxs(
175
- "div",
176
- {
177
- className: "flex min-h-screen flex-col items-center justify-center gap-4 bg-background px-6 text-center",
178
- role: "alert",
179
- children: [
180
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1", children: [
181
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-lg font-semibold text-foreground", children: "Something went wrong" }),
182
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-medium-emphasis", children: "The error has been reported. Try again, or reload the page if it keeps happening." })
183
- ] }),
184
- /* @__PURE__ */ jsxRuntime.jsx(
185
- "button",
186
- {
187
- onClick: resetError,
188
- className: "rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground",
189
- children: "Try again"
190
- }
191
- )
192
- ]
193
- }
194
- );
177
+ var DefaultFallback = ({ resetError }) => {
178
+ const { t } = chunkOPMWK5SY_cjs.useT("genesis.shared");
179
+ return /* @__PURE__ */ jsxRuntime.jsxs(
180
+ "div",
181
+ {
182
+ className: "flex min-h-screen flex-col items-center justify-center gap-4 bg-background px-6 text-center",
183
+ role: "alert",
184
+ children: [
185
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1", children: [
186
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-lg font-semibold text-foreground", children: t("ROLLBAR_FALLBACK.TITLE") }),
187
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-medium-emphasis", children: t("ROLLBAR_FALLBACK.MESSAGE") })
188
+ ] }),
189
+ /* @__PURE__ */ jsxRuntime.jsx(
190
+ "button",
191
+ {
192
+ onClick: resetError,
193
+ className: "rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground",
194
+ children: t("ROLLBAR_FALLBACK.TRY_AGAIN")
195
+ }
196
+ )
197
+ ]
198
+ }
199
+ );
200
+ };
195
201
  var RollbarProvider = ({
196
202
  children,
197
203
  fallback = DefaultFallback,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/observability/noise-filter.ts","../../src/observability/rollbar.config.ts","../../src/observability/rollbar.instance.ts","../../src/observability/report-query-errors.ts","../../src/observability/rollbar.provider.tsx","../../src/observability/report-http-errors.ts"],"names":["getRuntimeEnv","Rollbar","HttpError","jsxs","jsx","useMemo","useEffect","getQueryClient","Provider","ErrorBoundary"],"mappings":";;;;;;;;;;;;;;;;AA8BA,IAAM,gBAAA,GAAmB;AA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AAA,EAAU,6EAAA;AAAA,UACX,QAAA,EAAA;AAAA;AAAA;AAED;AAAA;AACF,CAAA;AAsBK,IAAM,kBAAkB,CAAC;AAAA,EAC9B,QAAA;AAAA,EACA,QAAA,GAAW,eAAA;AAAA,EACX,GAAG;AACL,CAAA,KAA4B;AAI1B,EAAA,MAAM,OAAA,GAAUC,aAAA;AAAA,IACd,MAAM,WAAW,aAAa,CAAA;AAAA;AAAA,IAE9B;AAAC,GACH;AAEA,EAAAC,eAAA;AAAA,IACE,MAAM,yBAAA,CAA0BC,gCAAA,EAAe,EAAG,OAAO,CAAA;AAAA,IACzD,CAAC,OAAO;AAAA,GACV;AAEA,EAAA,uBACEH,cAAA,CAACI,gBAAA,EAAA,EAAS,QAAA,EAAU,OAAA,EAClB,QAAA,kBAAAJ,cAAA,CAACK,qBAAA,EAAA,EAAc,UAAA,EAAY,QAAA,EAAU,KAAA,EAAM,UAAA,EACxC,QAAA,EACH,CAAA,EACF,CAAA;AAEJ;;;AC9DO,IAAM,yBAAA,GACX,CAAC,OAAA,KACD,CAAC,OAAA,KAAsC;AACrC,EAAA,IAAI,CAAC,QAAQ,SAAA,EAAW;AACxB,EAAA,IAAI,gBAAA,CAAiB,OAAA,CAAQ,KAAK,CAAA,EAAG;AAErC,EAAA,MAAM,KAAA,GACJ,OAAA,CAAQ,KAAA,YAAiB,KAAA,GACrB,OAAA,CAAQ,KAAA,GACR,IAAI,KAAA,CAAM,MAAA,CAAO,OAAA,CAAQ,KAAK,CAAC,CAAA;AAErC,EAAA,OAAA,CAAQ,MAAM,KAAA,EAAO;AAAA,IACnB,MAAA,EAAQ,aAAA;AAAA,IACR,KAAK,OAAA,CAAQ,GAAA;AAAA,IACb,QAAQ,OAAA,CAAQ;AAAA,GACjB,CAAA;AACH","file":"index.cjs","sourcesContent":["/**\n * Errors the browser raises that say nothing about a Blocks fault, and that Rollbar should therefore\n * never receive.\n *\n * Each rule matches one exact signature seen in production. A broad rule would hide real bugs, so a\n * `TypeError` is noise only with a known network message, and an `InvalidStateError` only when it is\n * about a view transition.\n */\nexport type NoiseRule =\n | \"network\"\n | \"view-transition\"\n | \"extension\"\n | \"cancelation\"\n | \"stale-asset\"\n | \"recaptcha-timeout\";\n\ninterface RollbarTraceLike {\n frames?: unknown[] | null;\n exception?: { class?: unknown; message?: unknown } | null;\n}\n\n/** The parts of a Rollbar item (`item.data`) the rules read. */\nexport interface RollbarPayloadLike {\n body?: {\n trace?: RollbarTraceLike | null;\n trace_chain?: (RollbarTraceLike | null)[] | null;\n message?: { body?: unknown } | null;\n } | null;\n}\n\nconst NETWORK_MESSAGES = [\n \"NetworkError when attempting to fetch resource.\",\n \"Load failed\",\n];\n\n// `AbortError` is listed as the spec lists it, though the network rule, checked first, already\n// drops every `AbortError`.\nconst VIEW_TRANSITION_CLASSES = [\n \"InvalidStateError\",\n \"TimeoutError\",\n \"AbortError\",\n];\n\nconst EXTENSION_URL_PREFIXES = [\n \"chrome-extension://\",\n \"moz-extension://\",\n \"safari-extension://\",\n \"safari-web-extension://\",\n];\n\n// What a bare `Event` turns into once it has been stringified, by Rollbar or by the app.\nconst EVENT_MESSAGES = [\n \"[object Event]\",\n \"[object ErrorEvent]\",\n '{\"isTrusted\":true}',\n];\n\nconst asString = (value: unknown): string | undefined =>\n typeof value === \"string\" ? value : undefined;\n\nconst isPlainObject = (value: unknown): value is Record<string, unknown> => {\n if (typeof value !== \"object\" || value === null) return false;\n const prototype: unknown = Object.getPrototypeOf(value);\n return prototype === Object.prototype || prototype === null;\n};\n\nconst isEvent = (value: unknown): boolean =>\n typeof Event !== \"undefined\" && value instanceof Event;\n\nconst isExtensionFrame = (frame: unknown): boolean => {\n const filename = (frame as { filename?: unknown } | null)?.filename;\n return (\n typeof filename === \"string\" &&\n EXTENSION_URL_PREFIXES.some((prefix) => filename.startsWith(prefix))\n );\n};\n\nconst classify = (\n value: unknown,\n payload: RollbarPayloadLike | undefined,\n): NoiseRule | null => {\n const body = payload?.body;\n const trace = body?.trace ?? body?.trace_chain?.[0];\n const raw =\n typeof value === \"object\" && value !== null\n ? (value as { name?: unknown; message?: unknown })\n : undefined;\n\n const errorClass =\n asString(raw?.name) ?? asString(trace?.exception?.class) ?? \"\";\n const message =\n asString(raw?.message) ??\n asString(trace?.exception?.message) ??\n asString(body?.message?.body) ??\n \"\";\n const frames = trace?.frames ?? [];\n\n if (\n (errorClass === \"TypeError\" &&\n (message.startsWith(\"Failed to fetch\") ||\n NETWORK_MESSAGES.includes(message))) ||\n errorClass === \"AbortError\"\n )\n return \"network\";\n\n if (\n VIEW_TRANSITION_CLASSES.includes(errorClass) &&\n message.toLowerCase().includes(\"transition\")\n )\n return \"view-transition\";\n\n // Every frame, not any: an extension frame on top of app frames is still the app's stack.\n if (frames.length > 0 && frames.every(isExtensionFrame)) return \"extension\";\n\n if (\n (errorClass === \"Canceled\" && message === \"Canceled\") ||\n (isPlainObject(value) && value.type === \"cancelation\")\n )\n return \"cancelation\";\n\n if (\n message.startsWith(\n \"Failed to execute 'importScripts' on 'WorkerGlobalScope'\",\n ) ||\n message === \"Object.hasOwn is not a function\" ||\n isEvent(value) ||\n EVENT_MESSAGES.includes(message)\n )\n return \"stale-asset\";\n\n if (message.startsWith(\"reCAPTCHA Timeout\")) return \"recaptcha-timeout\";\n\n return null;\n};\n\n/**\n * Names the noise rule `value` matches, or `null` when it should be reported.\n *\n * `value` is the raw thrown value (an `Error`, a `DOMException`, an `Event`, a plain object). The\n * Rollbar payload, when given, fills in the class, message and stack frames the value does not\n * carry. Fails open: if reading either one throws, the item is reported.\n */\nexport const classifyReportingNoise = (\n value: unknown,\n payload?: RollbarPayloadLike,\n): NoiseRule | null => {\n try {\n return classify(value, payload);\n } catch {\n return null;\n }\n};\n\n/** True for a browser network failure or an aborted request: nothing the app can fix. */\nexport const isNetworkFailure = (error: unknown): boolean =>\n classifyReportingNoise(error) === \"network\";\n","import Rollbar from \"rollbar\";\nimport { getRuntimeEnv } from \"@/lib/runtime-env\";\nimport { classifyReportingNoise } from \"./noise-filter\";\n\n/**\n * Payload keys and header names that must never leave the browser.\n *\n * Rollbar scrubs a default set already; these are the platform-specific ones. Getting this wrong\n * ships a tenant's credentials to a third party, which is why it lives here rather than being\n * restated in every app.\n */\nconst DEFAULT_SCRUB_FIELDS = [\n \"x-blocks-key\",\n \"X-Blocks-Key\",\n \"Authorization\",\n \"authorization\",\n \"access_token\",\n \"refresh_token\",\n \"accessToken\",\n \"refreshToken\",\n \"password\",\n \"clientSecret\",\n \"client_secret\",\n \"connectionString\",\n \"secretValue\",\n];\n\n/**\n * Noise that reaches `window.onerror` but says nothing about the app: browser extensions,\n * cross-origin frames, and the ResizeObserver warning Chrome raises during ordinary layout.\n */\nconst DEFAULT_IGNORED_MESSAGES = [\n \"ResizeObserver loop limit exceeded\",\n \"ResizeObserver loop completed with undelivered notifications\",\n \"Script error.\",\n];\n\n/**\n * Stands in for a real token when none is seeded.\n *\n * `@rollbar/react`'s `Provider` rejects an instance whose `options.accessToken` is falsy -- it\n * throws \"`instance` must be a configured instance of Rollbar\" from its own constructor, which is\n * above the error boundary, so an unconfigured app renders nothing at all. Reporting is switched\n * off by `enabled`, not by the token: the notifier refuses to send before it reaches a transport\n * and telemetry instrumentation is never installed. A placeholder therefore costs nothing and\n * keeps reporting genuinely optional, which is the point -- no tier should go blank because a\n * secret has not been seeded yet.\n */\nexport const UNCONFIGURED_ACCESS_TOKEN = \"rollbar-reporting-disabled\";\n\n/**\n * Rollbar's `checkIgnore`: drops browser noise before it is sent (see `noise-filter.ts`).\n *\n * For uncaught errors and unhandled rejections Rollbar passes `[message, error, ...]`, so the raw\n * value is `args[1]`; for `rollbar.error(err, ...)` it is `args[0]`. Kept a single expression:\n * Rollbar copies the function's source into every item it does send.\n */\nconst ignoreNoise: NonNullable<Rollbar.Configuration[\"checkIgnore\"]> = (\n isUncaught,\n args,\n payload,\n) =>\n classifyReportingNoise(\n isUncaught ? (args?.[1] ?? args?.[0]) : args?.[0],\n payload,\n ) !== null;\n\nexport interface RollbarConfigOptions {\n /**\n * The app reporting, e.g. `\"blocks-os\"`. Pass the same name the app already gives\n * `BlocksAppLayout`, so items can be traced back to a service without a project-id lookup.\n */\n service: string;\n /** Appended to, not replacing, the platform scrub list. */\n extraScrubFields?: string[];\n /** Appended to, not replacing, the default ignore list. */\n extraIgnoredMessages?: string[];\n /** Identifies the build. Required for source-map deobfuscation once maps are uploaded. */\n codeVersion?: string;\n}\n\n/**\n * Builds the browser Rollbar configuration from runtime env.\n *\n * Separate from the provider so it can be asserted on directly: most of the risk in this module is\n * in the configuration -- scrubbing, and whether reporting is on at all -- not in Rollbar itself.\n */\nexport const createRollbarConfig = (\n options: RollbarConfigOptions,\n): Rollbar.Configuration => {\n const accessToken = getRuntimeEnv(\"BLOCKS_ROLLBAR_CLIENT_TOKEN\");\n\n return {\n accessToken: accessToken || UNCONFIGURED_ACCESS_TOKEN,\n // Reporting is opt-in on a seeded token. Unconfigured environments -- developer machines,\n // tests, any tier not yet seeded -- get an inert client rather than a broken one, so the error\n // boundary still behaves exactly as it does in production.\n enabled: accessToken.length > 0,\n environment: getRuntimeEnv(\"BLOCKS_ROLLBAR_ENV\") || \"unknown\",\n captureUncaught: true,\n captureUnhandledRejections: true,\n scrubFields: [...DEFAULT_SCRUB_FIELDS, ...(options.extraScrubFields ?? [])],\n ignoredMessages: [\n ...DEFAULT_IGNORED_MESSAGES,\n ...(options.extraIgnoredMessages ?? []),\n ],\n checkIgnore: ignoreNoise,\n payload: {\n // Under `custom`, not at the root of `data`. Rollbar recognises a fixed set of top-level\n // fields and gives unknown ones \"no special handling\" -- they are stored but not indexed as\n // custom metadata, so a root-level `service` is neither queryable nor in the same place the\n // .NET side puts it. Here both sides land at `data.custom.*`, which is also where a webhook\n // receiver finds them: `data.item.last_occurrence.custom.service`.\n //\n // `service` identifies the app and `component` which half of it, as two fields rather than\n // one `blocks-os-client` string, so either can be filtered on without parsing.\n custom: {\n service: options.service,\n component: \"client\",\n },\n client: {\n javascript: {\n source_map_enabled: Boolean(options.codeVersion),\n code_version: options.codeVersion,\n },\n },\n },\n };\n};\n","import Rollbar from \"rollbar\";\nimport {\n createRollbarConfig,\n type RollbarConfigOptions,\n} from \"./rollbar.config\";\n\nlet instance: Rollbar | undefined;\n\n/**\n * The one Rollbar instance for the app.\n *\n * Memoised on first call so that code outside the React tree -- an `HttpClient` built at module\n * scope, for instance -- reports through the same client the provider renders. A second instance\n * would install a second set of window handlers and split the telemetry buffer in two.\n *\n * First call wins: later calls return the existing instance and ignore their options. In practice\n * every call site passes the same service, and load order between a module-scope client and the\n * provider is not something an app should have to reason about.\n *\n * Created lazily, so merely importing this module installs nothing.\n */\nexport const getRollbar = (options: RollbarConfigOptions): Rollbar =>\n (instance ??= new Rollbar(createRollbarConfig(options)));\n","import type { QueryClient } from \"@tanstack/react-query\";\nimport type Rollbar from \"rollbar\";\nimport { HttpError } from \"@/lib/http/error\";\nimport { isNetworkFailure } from \"./noise-filter\";\n\n/**\n * Reports errors thrown inside query and mutation functions that are not request failures.\n *\n * Narrow on purpose. Every failure from `HttpClient` arrives as an `HttpError` and is skipped here:\n * transport failures are already handled by `createHttpFailureReporter`, and HTTP statuses are\n * either business outcomes or faults the server reported itself. What remains is a genuine bug in a\n * query function -- a bad mapping, a null dereference on a response -- which React Query catches\n * and stores as query state, so it never reaches `window.onerror` and would otherwise be invisible.\n *\n * Returns an unsubscribe function.\n */\nexport const attachQueryErrorReporting = (\n queryClient: QueryClient,\n rollbar: Rollbar,\n): (() => void) => {\n const report = (error: unknown, context: Record<string, unknown>) => {\n if (error instanceof HttpError) return;\n // Belt and braces: an HttpError that crossed a module boundary may fail `instanceof`.\n if (typeof (error as { status?: unknown })?.status === \"number\") return;\n // A raw `fetch` in a query function rejects with the browser's own network error.\n if (isNetworkFailure(error)) return;\n\n rollbar.error(error instanceof Error ? error : new Error(String(error)), {\n source: \"react-query\",\n ...context,\n });\n };\n\n const unsubscribeQueries = queryClient.getQueryCache().subscribe((event) => {\n if (event.type !== \"updated\" || event.action.type !== \"error\") return;\n\n report(event.action.error, {\n kind: \"query\",\n queryHash: event.query.queryHash,\n });\n });\n\n const unsubscribeMutations = queryClient\n .getMutationCache()\n .subscribe((event) => {\n if (event.type !== \"updated\" || event.action.type !== \"error\") return;\n\n report(event.action.error, {\n kind: \"mutation\",\n mutationKey: event.mutation.options.mutationKey,\n });\n });\n\n return () => {\n unsubscribeQueries();\n unsubscribeMutations();\n };\n};\n","import { ErrorBoundary, Provider } from \"@rollbar/react\";\nimport { useEffect, useMemo, type ComponentType, type ReactNode } from \"react\";\nimport { getQueryClient } from \"@/providers/query-client\";\nimport { attachQueryErrorReporting } from \"./report-query-errors\";\nimport { type RollbarConfigOptions } from \"./rollbar.config\";\nimport { getRollbar } from \"./rollbar.instance\";\n\nexport interface RollbarFallbackProps {\n error: Error | null;\n resetError: () => void;\n}\n\n/**\n * Shown instead of a blank page when a render throws. Deliberately plain: it has to render when the\n * app's own state is already known-bad, so it depends on nothing but theme tokens.\n */\nconst DefaultFallback = ({ resetError }: RollbarFallbackProps) => (\n <div\n className=\"flex min-h-screen flex-col items-center justify-center gap-4 bg-background px-6 text-center\"\n role=\"alert\"\n >\n <div className=\"space-y-1\">\n <p className=\"text-lg font-semibold text-foreground\">\n Something went wrong\n </p>\n <p className=\"text-sm text-medium-emphasis\">\n The error has been reported. Try again, or reload the page if it keeps\n happening.\n </p>\n </div>\n <button\n onClick={resetError}\n className=\"rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground\"\n >\n Try again\n </button>\n </div>\n);\n\nexport interface RollbarProviderProps extends RollbarConfigOptions {\n children: ReactNode;\n /** Replaces the built-in crash screen. */\n fallback?: ComponentType<RollbarFallbackProps>;\n}\n\n/**\n * Puts Rollbar in front of the whole tree.\n *\n * Mount this outermost -- above the query, theme and router providers -- so a throw during their\n * own setup is still caught and reported rather than blanking the page.\n *\n * Reporting is inert until a client token is seeded (see `createRollbarConfig`), but the boundary is\n * always live, so the crash screen behaves identically in local development and in production.\n *\n * Covers uncaught errors, unhandled rejections, render crashes, and bugs thrown inside query\n * functions. Request failures are not covered here: pass `createHttpFailureReporter` to your\n * `HttpClient` as `onError` for those.\n */\nexport const RollbarProvider = ({\n children,\n fallback = DefaultFallback,\n ...configOptions\n}: RollbarProviderProps) => {\n // Shared with anything reporting from outside the tree, and stable for the life of the app:\n // reconstructing it on re-render would reinstall the window handlers and drop Rollbar's own\n // telemetry buffer.\n const rollbar = useMemo(\n () => getRollbar(configOptions),\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [],\n );\n\n useEffect(\n () => attachQueryErrorReporting(getQueryClient(), rollbar),\n [rollbar],\n );\n\n return (\n <Provider instance={rollbar}>\n <ErrorBoundary fallbackUI={fallback} level=\"critical\">\n {children}\n </ErrorBoundary>\n </Provider>\n );\n};\n","import type Rollbar from \"rollbar\";\nimport type { HttpRequestFailure } from \"@/lib/http/types\";\nimport { isNetworkFailure } from \"./noise-filter\";\n\n/**\n * Builds an `onError` handler for `HttpClientConfig` that reports only transport failures that are\n * not browser network failures.\n *\n * Failures that produced an HTTP response are skipped deliberately: a 4xx is a business outcome the\n * UI already surfaces, and a 5xx has already been reported by the server with a real stack trace,\n * so reporting it again from the browser only buries the better item.\n *\n * Browser network failures are skipped too (`isNetworkFailure`: offline, DNS, CORS, TLS and aborted\n * requests all surface as `TypeError: Failed to fetch` and its Firefox/Safari equivalents, or as an\n * `AbortError`). They come from the user's connection rather than from Blocks, and an outage shows\n * up in server-side 5xx items and uptime monitoring instead. What is left -- a body that fails to\n * parse, a throw inside the client itself -- is a client fault the server cannot see.\n *\n * `HttpClient` normalises every failure to an `HttpError` with status 500 before callers see it, so\n * this distinction only exists inside the `onError` hook. Reporting from a `catch` further out\n * cannot tell the two apart.\n */\nexport const createHttpFailureReporter =\n (rollbar: Rollbar) =>\n (failure: HttpRequestFailure): void => {\n if (!failure.transport) return;\n if (isNetworkFailure(failure.error)) return;\n\n const error =\n failure.error instanceof Error\n ? failure.error\n : new Error(String(failure.error));\n\n rollbar.error(error, {\n source: \"http-client\",\n url: failure.url,\n method: failure.method,\n });\n };\n"]}
1
+ {"version":3,"sources":["../../src/observability/noise-filter.ts","../../src/observability/rollbar.config.ts","../../src/observability/rollbar.instance.ts","../../src/observability/report-query-errors.ts","../../src/observability/rollbar.provider.tsx","../../src/observability/report-http-errors.ts"],"names":["getRuntimeEnv","Rollbar","HttpError","useT","jsxs","jsx","useMemo","useEffect","getQueryClient","Provider","ErrorBoundary"],"mappings":";;;;;;;;;;;;;;;;;;;AA8BA,IAAM,gBAAA,GAAmB;AAAA,EACvB,iDAAA;AAAA,EACA;AACF,CAAA;AAIA,IAAM,uBAAA,GAA0B;AAAA,EAC9B,mBAAA;AAAA,EACA,cAAA;AAAA,EACA;AACF,CAAA;AAEA,IAAM,sBAAA,GAAyB;AAAA,EAC7B,qBAAA;AAAA,EACA,kBAAA;AAAA,EACA,qBAAA;AAAA,EACA;AACF,CAAA;AAGA,IAAM,cAAA,GAAiB;AAAA,EACrB,gBAAA;AAAA,EACA,qBAAA;AAAA,EACA;AACF,CAAA;AAEA,IAAM,WAAW,CAAC,KAAA,KAChB,OAAO,KAAA,KAAU,WAAW,KAAA,GAAQ,MAAA;AAEtC,IAAM,aAAA,GAAgB,CAAC,KAAA,KAAqD;AAC1E,EAAA,IAAI,OAAO,KAAA,KAAU,QAAA,IAAY,KAAA,KAAU,MAAM,OAAO,KAAA;AACxD,EAAA,MAAM,SAAA,GAAqB,MAAA,CAAO,cAAA,CAAe,KAAK,CAAA;AACtD,EAAA,OAAO,SAAA,KAAc,MAAA,CAAO,SAAA,IAAa,SAAA,KAAc,IAAA;AACzD,CAAA;AAEA,IAAM,UAAU,CAAC,KAAA,KACf,OAAO,KAAA,KAAU,eAAe,KAAA,YAAiB,KAAA;AAEnD,IAAM,gBAAA,GAAmB,CAAC,KAAA,KAA4B;AACpD,EAAA,MAAM,WAAY,KAAA,EAAyC,QAAA;AAC3D,EAAA,OACE,OAAO,QAAA,KAAa,QAAA,IACp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CAAQ,KAAK,CAAA,EAAG;AAErC,EAAA,MAAM,KAAA,GACJ,OAAA,CAAQ,KAAA,YAAiB,KAAA,GACrB,OAAA,CAAQ,KAAA,GACR,IAAI,KAAA,CAAM,MAAA,CAAO,OAAA,CAAQ,KAAK,CAAC,CAAA;AAErC,EAAA,OAAA,CAAQ,MAAM,KAAA,EAAO;AAAA,IACnB,MAAA,EAAQ,aAAA;AAAA,IACR,KAAK,OAAA,CAAQ,GAAA;AAAA,IACb,QAAQ,OAAA,CAAQ;AAAA,GACjB,CAAA;AACH","file":"index.cjs","sourcesContent":["/**\n * Errors the browser raises that say nothing about a Blocks fault, and that Rollbar should therefore\n * never receive.\n *\n * Each rule matches one exact signature seen in production. A broad rule would hide real bugs, so a\n * `TypeError` is noise only with a known network message, and an `InvalidStateError` only when it is\n * about a view transition.\n */\nexport type NoiseRule =\n | \"network\"\n | \"view-transition\"\n | \"extension\"\n | \"cancelation\"\n | \"stale-asset\"\n | \"recaptcha-timeout\";\n\ninterface RollbarTraceLike {\n frames?: unknown[] | null;\n exception?: { class?: unknown; message?: unknown } | null;\n}\n\n/** The parts of a Rollbar item (`item.data`) the rules read. */\nexport interface RollbarPayloadLike {\n body?: {\n trace?: RollbarTraceLike | null;\n trace_chain?: (RollbarTraceLike | null)[] | null;\n message?: { body?: unknown } | null;\n } | null;\n}\n\nconst NETWORK_MESSAGES = [\n \"NetworkError when attempting to fetch resource.\",\n \"Load failed\",\n];\n\n// `AbortError` is listed as the spec lists it, though the network rule, checked first, already\n// drops every `AbortError`.\nconst VIEW_TRANSITION_CLASSES = [\n \"InvalidStateError\",\n \"TimeoutError\",\n \"AbortError\",\n];\n\nconst EXTENSION_URL_PREFIXES = [\n \"chrome-extension://\",\n \"moz-extension://\",\n \"safari-extension://\",\n \"safari-web-extension://\",\n];\n\n// What a bare `Event` turns into once it has been stringified, by Rollbar or by the app.\nconst EVENT_MESSAGES = [\n \"[object Event]\",\n \"[object ErrorEvent]\",\n '{\"isTrusted\":true}',\n];\n\nconst asString = (value: unknown): string | undefined =>\n typeof value === \"string\" ? value : undefined;\n\nconst isPlainObject = (value: unknown): value is Record<string, unknown> => {\n if (typeof value !== \"object\" || value === null) return false;\n const prototype: unknown = Object.getPrototypeOf(value);\n return prototype === Object.prototype || prototype === null;\n};\n\nconst isEvent = (value: unknown): boolean =>\n typeof Event !== \"undefined\" && value instanceof Event;\n\nconst isExtensionFrame = (frame: unknown): boolean => {\n const filename = (frame as { filename?: unknown } | null)?.filename;\n return (\n typeof filename === \"string\" &&\n EXTENSION_URL_PREFIXES.some((prefix) => filename.startsWith(prefix))\n );\n};\n\nconst classify = (\n value: unknown,\n payload: RollbarPayloadLike | undefined,\n): NoiseRule | null => {\n const body = payload?.body;\n const trace = body?.trace ?? body?.trace_chain?.[0];\n const raw =\n typeof value === \"object\" && value !== null\n ? (value as { name?: unknown; message?: unknown })\n : undefined;\n\n const errorClass =\n asString(raw?.name) ?? asString(trace?.exception?.class) ?? \"\";\n const message =\n asString(raw?.message) ??\n asString(trace?.exception?.message) ??\n asString(body?.message?.body) ??\n \"\";\n const frames = trace?.frames ?? [];\n\n if (\n (errorClass === \"TypeError\" &&\n (message.startsWith(\"Failed to fetch\") ||\n NETWORK_MESSAGES.includes(message))) ||\n errorClass === \"AbortError\"\n )\n return \"network\";\n\n if (\n VIEW_TRANSITION_CLASSES.includes(errorClass) &&\n message.toLowerCase().includes(\"transition\")\n )\n return \"view-transition\";\n\n // Every frame, not any: an extension frame on top of app frames is still the app's stack.\n if (frames.length > 0 && frames.every(isExtensionFrame)) return \"extension\";\n\n if (\n (errorClass === \"Canceled\" && message === \"Canceled\") ||\n (isPlainObject(value) && value.type === \"cancelation\")\n )\n return \"cancelation\";\n\n if (\n message.startsWith(\n \"Failed to execute 'importScripts' on 'WorkerGlobalScope'\",\n ) ||\n message === \"Object.hasOwn is not a function\" ||\n isEvent(value) ||\n EVENT_MESSAGES.includes(message)\n )\n return \"stale-asset\";\n\n if (message.startsWith(\"reCAPTCHA Timeout\")) return \"recaptcha-timeout\";\n\n return null;\n};\n\n/**\n * Names the noise rule `value` matches, or `null` when it should be reported.\n *\n * `value` is the raw thrown value (an `Error`, a `DOMException`, an `Event`, a plain object). The\n * Rollbar payload, when given, fills in the class, message and stack frames the value does not\n * carry. Fails open: if reading either one throws, the item is reported.\n */\nexport const classifyReportingNoise = (\n value: unknown,\n payload?: RollbarPayloadLike,\n): NoiseRule | null => {\n try {\n return classify(value, payload);\n } catch {\n return null;\n }\n};\n\n/** True for a browser network failure or an aborted request: nothing the app can fix. */\nexport const isNetworkFailure = (error: unknown): boolean =>\n classifyReportingNoise(error) === \"network\";\n","import Rollbar from \"rollbar\";\nimport { getRuntimeEnv } from \"@/lib/runtime-env\";\nimport { classifyReportingNoise } from \"./noise-filter\";\n\n/**\n * Payload keys and header names that must never leave the browser.\n *\n * Rollbar scrubs a default set already; these are the platform-specific ones. Getting this wrong\n * ships a tenant's credentials to a third party, which is why it lives here rather than being\n * restated in every app.\n */\nconst DEFAULT_SCRUB_FIELDS = [\n \"x-blocks-key\",\n \"X-Blocks-Key\",\n \"Authorization\",\n \"authorization\",\n \"access_token\",\n \"refresh_token\",\n \"accessToken\",\n \"refreshToken\",\n \"password\",\n \"clientSecret\",\n \"client_secret\",\n \"connectionString\",\n \"secretValue\",\n];\n\n/**\n * Noise that reaches `window.onerror` but says nothing about the app: browser extensions,\n * cross-origin frames, and the ResizeObserver warning Chrome raises during ordinary layout.\n */\nconst DEFAULT_IGNORED_MESSAGES = [\n \"ResizeObserver loop limit exceeded\",\n \"ResizeObserver loop completed with undelivered notifications\",\n \"Script error.\",\n];\n\n/**\n * Stands in for a real token when none is seeded.\n *\n * `@rollbar/react`'s `Provider` rejects an instance whose `options.accessToken` is falsy -- it\n * throws \"`instance` must be a configured instance of Rollbar\" from its own constructor, which is\n * above the error boundary, so an unconfigured app renders nothing at all. Reporting is switched\n * off by `enabled`, not by the token: the notifier refuses to send before it reaches a transport\n * and telemetry instrumentation is never installed. A placeholder therefore costs nothing and\n * keeps reporting genuinely optional, which is the point -- no tier should go blank because a\n * secret has not been seeded yet.\n */\nexport const UNCONFIGURED_ACCESS_TOKEN = \"rollbar-reporting-disabled\";\n\n/**\n * Rollbar's `checkIgnore`: drops browser noise before it is sent (see `noise-filter.ts`).\n *\n * For uncaught errors and unhandled rejections Rollbar passes `[message, error, ...]`, so the raw\n * value is `args[1]`; for `rollbar.error(err, ...)` it is `args[0]`. Kept a single expression:\n * Rollbar copies the function's source into every item it does send.\n */\nconst ignoreNoise: NonNullable<Rollbar.Configuration[\"checkIgnore\"]> = (\n isUncaught,\n args,\n payload,\n) =>\n classifyReportingNoise(\n isUncaught ? (args?.[1] ?? args?.[0]) : args?.[0],\n payload,\n ) !== null;\n\nexport interface RollbarConfigOptions {\n /**\n * The app reporting, e.g. `\"blocks-os\"`. Pass the same name the app already gives\n * `BlocksAppLayout`, so items can be traced back to a service without a project-id lookup.\n */\n service: string;\n /** Appended to, not replacing, the platform scrub list. */\n extraScrubFields?: string[];\n /** Appended to, not replacing, the default ignore list. */\n extraIgnoredMessages?: string[];\n /** Identifies the build. Required for source-map deobfuscation once maps are uploaded. */\n codeVersion?: string;\n}\n\n/**\n * Builds the browser Rollbar configuration from runtime env.\n *\n * Separate from the provider so it can be asserted on directly: most of the risk in this module is\n * in the configuration -- scrubbing, and whether reporting is on at all -- not in Rollbar itself.\n */\nexport const createRollbarConfig = (\n options: RollbarConfigOptions,\n): Rollbar.Configuration => {\n const accessToken = getRuntimeEnv(\"BLOCKS_ROLLBAR_CLIENT_TOKEN\");\n\n return {\n accessToken: accessToken || UNCONFIGURED_ACCESS_TOKEN,\n // Reporting is opt-in on a seeded token. Unconfigured environments -- developer machines,\n // tests, any tier not yet seeded -- get an inert client rather than a broken one, so the error\n // boundary still behaves exactly as it does in production.\n enabled: accessToken.length > 0,\n environment: getRuntimeEnv(\"BLOCKS_ROLLBAR_ENV\") || \"unknown\",\n captureUncaught: true,\n captureUnhandledRejections: true,\n scrubFields: [...DEFAULT_SCRUB_FIELDS, ...(options.extraScrubFields ?? [])],\n ignoredMessages: [\n ...DEFAULT_IGNORED_MESSAGES,\n ...(options.extraIgnoredMessages ?? []),\n ],\n checkIgnore: ignoreNoise,\n payload: {\n // Under `custom`, not at the root of `data`. Rollbar recognises a fixed set of top-level\n // fields and gives unknown ones \"no special handling\" -- they are stored but not indexed as\n // custom metadata, so a root-level `service` is neither queryable nor in the same place the\n // .NET side puts it. Here both sides land at `data.custom.*`, which is also where a webhook\n // receiver finds them: `data.item.last_occurrence.custom.service`.\n //\n // `service` identifies the app and `component` which half of it, as two fields rather than\n // one `blocks-os-client` string, so either can be filtered on without parsing.\n custom: {\n service: options.service,\n component: \"client\",\n },\n client: {\n javascript: {\n source_map_enabled: Boolean(options.codeVersion),\n code_version: options.codeVersion,\n },\n },\n },\n };\n};\n","import Rollbar from \"rollbar\";\nimport {\n createRollbarConfig,\n type RollbarConfigOptions,\n} from \"./rollbar.config\";\n\nlet instance: Rollbar | undefined;\n\n/**\n * The one Rollbar instance for the app.\n *\n * Memoised on first call so that code outside the React tree -- an `HttpClient` built at module\n * scope, for instance -- reports through the same client the provider renders. A second instance\n * would install a second set of window handlers and split the telemetry buffer in two.\n *\n * First call wins: later calls return the existing instance and ignore their options. In practice\n * every call site passes the same service, and load order between a module-scope client and the\n * provider is not something an app should have to reason about.\n *\n * Created lazily, so merely importing this module installs nothing.\n */\nexport const getRollbar = (options: RollbarConfigOptions): Rollbar =>\n (instance ??= new Rollbar(createRollbarConfig(options)));\n","import type { QueryClient } from \"@tanstack/react-query\";\nimport type Rollbar from \"rollbar\";\nimport { HttpError } from \"@/lib/http/error\";\nimport { isNetworkFailure } from \"./noise-filter\";\n\n/**\n * Reports errors thrown inside query and mutation functions that are not request failures.\n *\n * Narrow on purpose. Every failure from `HttpClient` arrives as an `HttpError` and is skipped here:\n * transport failures are already handled by `createHttpFailureReporter`, and HTTP statuses are\n * either business outcomes or faults the server reported itself. What remains is a genuine bug in a\n * query function -- a bad mapping, a null dereference on a response -- which React Query catches\n * and stores as query state, so it never reaches `window.onerror` and would otherwise be invisible.\n *\n * Returns an unsubscribe function.\n */\nexport const attachQueryErrorReporting = (\n queryClient: QueryClient,\n rollbar: Rollbar,\n): (() => void) => {\n const report = (error: unknown, context: Record<string, unknown>) => {\n if (error instanceof HttpError) return;\n // Belt and braces: an HttpError that crossed a module boundary may fail `instanceof`.\n if (typeof (error as { status?: unknown })?.status === \"number\") return;\n // A raw `fetch` in a query function rejects with the browser's own network error.\n if (isNetworkFailure(error)) return;\n\n rollbar.error(error instanceof Error ? error : new Error(String(error)), {\n source: \"react-query\",\n ...context,\n });\n };\n\n const unsubscribeQueries = queryClient.getQueryCache().subscribe((event) => {\n if (event.type !== \"updated\" || event.action.type !== \"error\") return;\n\n report(event.action.error, {\n kind: \"query\",\n queryHash: event.query.queryHash,\n });\n });\n\n const unsubscribeMutations = queryClient\n .getMutationCache()\n .subscribe((event) => {\n if (event.type !== \"updated\" || event.action.type !== \"error\") return;\n\n report(event.action.error, {\n kind: \"mutation\",\n mutationKey: event.mutation.options.mutationKey,\n });\n });\n\n return () => {\n unsubscribeQueries();\n unsubscribeMutations();\n };\n};\n","import { ErrorBoundary, Provider } from \"@rollbar/react\";\nimport { useEffect, useMemo, type ComponentType, type ReactNode } from \"react\";\nimport { getQueryClient } from \"@/providers/query-client\";\nimport { attachQueryErrorReporting } from \"./report-query-errors\";\nimport { type RollbarConfigOptions } from \"./rollbar.config\";\nimport { getRollbar } from \"./rollbar.instance\";\nimport { useT } from \"@/i18n/use-t\";\n\nexport interface RollbarFallbackProps {\n error: Error | null;\n resetError: () => void;\n}\n\n/**\n * Shown instead of a blank page when a render throws. Deliberately plain: it has to render when the\n * app's own state is already known-bad, so it depends only on theme tokens and its i18n keys, which\n * fall back to the bundled English when nothing else loads.\n */\nconst DefaultFallback = ({ resetError }: RollbarFallbackProps) => {\n const { t } = useT(\"genesis.shared\");\n return (\n <div\n className=\"flex min-h-screen flex-col items-center justify-center gap-4 bg-background px-6 text-center\"\n role=\"alert\"\n >\n <div className=\"space-y-1\">\n <p className=\"text-lg font-semibold text-foreground\">\n {t(\"ROLLBAR_FALLBACK.TITLE\")}\n </p>\n <p className=\"text-sm text-medium-emphasis\">\n {t(\"ROLLBAR_FALLBACK.MESSAGE\")}\n </p>\n </div>\n <button\n onClick={resetError}\n className=\"rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground\"\n >\n {t(\"ROLLBAR_FALLBACK.TRY_AGAIN\")}\n </button>\n </div>\n );\n};\n\nexport interface RollbarProviderProps extends RollbarConfigOptions {\n children: ReactNode;\n /** Replaces the built-in crash screen. */\n fallback?: ComponentType<RollbarFallbackProps>;\n}\n\n/**\n * Puts Rollbar in front of the whole tree.\n *\n * Mount this outermost -- above the query, theme and router providers -- so a throw during their\n * own setup is still caught and reported rather than blanking the page.\n *\n * Reporting is inert until a client token is seeded (see `createRollbarConfig`), but the boundary is\n * always live, so the crash screen behaves identically in local development and in production.\n *\n * Covers uncaught errors, unhandled rejections, render crashes, and bugs thrown inside query\n * functions. Request failures are not covered here: pass `createHttpFailureReporter` to your\n * `HttpClient` as `onError` for those.\n */\nexport const RollbarProvider = ({\n children,\n fallback = DefaultFallback,\n ...configOptions\n}: RollbarProviderProps) => {\n // Shared with anything reporting from outside the tree, and stable for the life of the app:\n // reconstructing it on re-render would reinstall the window handlers and drop Rollbar's own\n // telemetry buffer.\n const rollbar = useMemo(\n () => getRollbar(configOptions),\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [],\n );\n\n useEffect(\n () => attachQueryErrorReporting(getQueryClient(), rollbar),\n [rollbar],\n );\n\n return (\n <Provider instance={rollbar}>\n <ErrorBoundary fallbackUI={fallback} level=\"critical\">\n {children}\n </ErrorBoundary>\n </Provider>\n );\n};\n","import type Rollbar from \"rollbar\";\nimport type { HttpRequestFailure } from \"@/lib/http/types\";\nimport { isNetworkFailure } from \"./noise-filter\";\n\n/**\n * Builds an `onError` handler for `HttpClientConfig` that reports only transport failures that are\n * not browser network failures.\n *\n * Failures that produced an HTTP response are skipped deliberately: a 4xx is a business outcome the\n * UI already surfaces, and a 5xx has already been reported by the server with a real stack trace,\n * so reporting it again from the browser only buries the better item.\n *\n * Browser network failures are skipped too (`isNetworkFailure`: offline, DNS, CORS, TLS and aborted\n * requests all surface as `TypeError: Failed to fetch` and its Firefox/Safari equivalents, or as an\n * `AbortError`). They come from the user's connection rather than from Blocks, and an outage shows\n * up in server-side 5xx items and uptime monitoring instead. What is left -- a body that fails to\n * parse, a throw inside the client itself -- is a client fault the server cannot see.\n *\n * `HttpClient` normalises every failure to an `HttpError` with status 500 before callers see it, so\n * this distinction only exists inside the `onError` hook. Reporting from a `catch` further out\n * cannot tell the two apart.\n */\nexport const createHttpFailureReporter =\n (rollbar: Rollbar) =>\n (failure: HttpRequestFailure): void => {\n if (!failure.transport) return;\n if (isNetworkFailure(failure.error)) return;\n\n const error =\n failure.error instanceof Error\n ? failure.error\n : new Error(String(failure.error));\n\n rollbar.error(error, {\n source: \"http-client\",\n url: failure.url,\n method: failure.method,\n });\n };\n"]}
@@ -1,6 +1,9 @@
1
1
  import { HttpError } from '../chunk-7ZZ3KLZD.js';
2
+ import { useT } from '../chunk-XYPSBVXL.js';
2
3
  import { getQueryClient } from '../chunk-BRHE44FE.js';
3
4
  import { getRuntimeEnv } from '../chunk-POJIHGRY.js';
5
+ import '../chunk-SQG7DJNY.js';
6
+ import '../chunk-3V7O45KN.js';
4
7
  import '../chunk-PL4HS6R6.js';
5
8
  import Rollbar2 from 'rollbar';
6
9
  import { Provider, ErrorBoundary } from '@rollbar/react';
@@ -165,27 +168,30 @@ var attachQueryErrorReporting = (queryClient, rollbar) => {
165
168
  unsubscribeMutations();
166
169
  };
167
170
  };
168
- var DefaultFallback = ({ resetError }) => /* @__PURE__ */ jsxs(
169
- "div",
170
- {
171
- className: "flex min-h-screen flex-col items-center justify-center gap-4 bg-background px-6 text-center",
172
- role: "alert",
173
- children: [
174
- /* @__PURE__ */ jsxs("div", { className: "space-y-1", children: [
175
- /* @__PURE__ */ jsx("p", { className: "text-lg font-semibold text-foreground", children: "Something went wrong" }),
176
- /* @__PURE__ */ jsx("p", { className: "text-sm text-medium-emphasis", children: "The error has been reported. Try again, or reload the page if it keeps happening." })
177
- ] }),
178
- /* @__PURE__ */ jsx(
179
- "button",
180
- {
181
- onClick: resetError,
182
- className: "rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground",
183
- children: "Try again"
184
- }
185
- )
186
- ]
187
- }
188
- );
171
+ var DefaultFallback = ({ resetError }) => {
172
+ const { t } = useT("genesis.shared");
173
+ return /* @__PURE__ */ jsxs(
174
+ "div",
175
+ {
176
+ className: "flex min-h-screen flex-col items-center justify-center gap-4 bg-background px-6 text-center",
177
+ role: "alert",
178
+ children: [
179
+ /* @__PURE__ */ jsxs("div", { className: "space-y-1", children: [
180
+ /* @__PURE__ */ jsx("p", { className: "text-lg font-semibold text-foreground", children: t("ROLLBAR_FALLBACK.TITLE") }),
181
+ /* @__PURE__ */ jsx("p", { className: "text-sm text-medium-emphasis", children: t("ROLLBAR_FALLBACK.MESSAGE") })
182
+ ] }),
183
+ /* @__PURE__ */ jsx(
184
+ "button",
185
+ {
186
+ onClick: resetError,
187
+ className: "rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground",
188
+ children: t("ROLLBAR_FALLBACK.TRY_AGAIN")
189
+ }
190
+ )
191
+ ]
192
+ }
193
+ );
194
+ };
189
195
  var RollbarProvider = ({
190
196
  children,
191
197
  fallback = DefaultFallback,