@lunora/studio 1.0.0-alpha.136 → 1.0.0-alpha.138

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 (361) hide show
  1. package/dist/index.d.mts +1515 -0
  2. package/dist/index.d.ts +20 -7
  3. package/dist/index.mjs +1 -0
  4. package/dist/mount.d.mts +21 -0
  5. package/dist/mount.mjs +1 -0
  6. package/dist/packem_chunks/AdvisorHealthPanel.mjs +1 -0
  7. package/dist/packem_chunks/ApiTab.mjs +1 -0
  8. package/dist/packem_chunks/AuditPanel.mjs +1 -0
  9. package/dist/packem_chunks/DeploymentHealthPanel.mjs +1 -0
  10. package/dist/packem_chunks/{ExportImportPanel.js → ExportImportPanel.mjs} +1 -1
  11. package/dist/packem_chunks/{FileBrowser.js → FileBrowser.mjs} +1 -1
  12. package/dist/packem_chunks/FunctionRunner.mjs +1 -0
  13. package/dist/packem_chunks/FunctionStatsPanel.mjs +1 -0
  14. package/dist/packem_chunks/HealthPanel.mjs +1 -0
  15. package/dist/packem_chunks/InsightsPanel.mjs +1 -0
  16. package/dist/packem_chunks/LogsPanel.mjs +1 -0
  17. package/dist/packem_chunks/MailPanel.mjs +2 -0
  18. package/dist/packem_chunks/MetricsPanel.mjs +1 -0
  19. package/dist/packem_chunks/NotificationsPanel.mjs +1 -0
  20. package/dist/packem_chunks/PitrPanel.mjs +1 -0
  21. package/dist/packem_chunks/SchemaViewer.mjs +1 -0
  22. package/dist/packem_chunks/SecurityAdvisorPanel.mjs +1 -0
  23. package/dist/packem_chunks/SettingsPanel.mjs +1 -0
  24. package/dist/packem_chunks/{SqlEditorPanel.js → SqlEditorPanel.mjs} +1 -1
  25. package/dist/packem_chunks/TableEditor.mjs +1 -0
  26. package/dist/packem_chunks/agents-panel.mjs +1 -0
  27. package/dist/packem_chunks/analytics-panel.mjs +1 -0
  28. package/dist/packem_chunks/auth-audit-panel.mjs +1 -0
  29. package/dist/packem_chunks/auth-config-panel.mjs +1 -0
  30. package/dist/packem_chunks/auth-sessions-panel.mjs +1 -0
  31. package/dist/packem_chunks/containers-panel.mjs +1 -0
  32. package/dist/packem_chunks/dashboards-panel.mjs +1 -0
  33. package/dist/packem_chunks/evals-panel.mjs +1 -0
  34. package/dist/packem_chunks/fanout-panel.mjs +1 -0
  35. package/dist/packem_chunks/flags-panel.mjs +1 -0
  36. package/dist/packem_chunks/issues-panel.mjs +1 -0
  37. package/dist/packem_chunks/kv-browser.mjs +1 -0
  38. package/dist/packem_chunks/{log-drains-panel.js → log-drains-panel.mjs} +1 -1
  39. package/dist/packem_chunks/migrations-route.mjs +1 -0
  40. package/dist/packem_chunks/organizations-panel.mjs +1 -0
  41. package/dist/packem_chunks/payments-panel.mjs +1 -0
  42. package/dist/packem_chunks/permissions-panel.mjs +1 -0
  43. package/dist/packem_chunks/queues-panel.mjs +1 -0
  44. package/dist/packem_chunks/reactors-panel.mjs +1 -0
  45. package/dist/packem_chunks/rls-panel.mjs +1 -0
  46. package/dist/packem_chunks/schedule-panel.mjs +1 -0
  47. package/dist/packem_chunks/sparkline.mjs +1 -0
  48. package/dist/packem_chunks/storage-rules-panel.mjs +1 -0
  49. package/dist/packem_chunks/subscriptions-panel.mjs +1 -0
  50. package/dist/packem_chunks/sync-client-panel.mjs +1 -0
  51. package/dist/packem_chunks/traces-panel.mjs +1 -0
  52. package/dist/packem_chunks/users-panel.mjs +1 -0
  53. package/dist/packem_chunks/vector-browser.mjs +1 -0
  54. package/dist/packem_chunks/workflows-panel.mjs +1 -0
  55. package/dist/packem_shared/{ApiDocsPanel-Du1L7Ysj.js → ApiDocsPanel-BOxViKDM.mjs} +1 -1
  56. package/dist/packem_shared/ApiReferencePanel--YThTzHb.mjs +1 -0
  57. package/dist/packem_shared/CommandPalette-C4UrhLxv.mjs +1 -0
  58. package/dist/packem_shared/ConfirmButton-DU4p72Er.mjs +1 -0
  59. package/dist/packem_shared/ConnectionBadge-B_8fcft2.mjs +1 -0
  60. package/dist/packem_shared/DEFAULT_INSIGHT_THRESHOLDS-D5YMT0gM.mjs +1 -0
  61. package/dist/packem_shared/{DataBrowser-W5TxvLB8.js → DataBrowser-CDzwqq4b.mjs} +1 -1
  62. package/dist/packem_shared/GlobalDataBrowser-BKm77TNC.mjs +1 -0
  63. package/dist/packem_shared/HomePanel-T_fBZTEM.mjs +1 -0
  64. package/dist/packem_shared/MigrationsPanel-CYe0ygT8.mjs +1 -0
  65. package/dist/packem_shared/OpenRpcReferencePanel-Bn5UVD7s.mjs +1 -0
  66. package/dist/packem_shared/ScheduledJobs-DN0yQoo6.mjs +1 -0
  67. package/dist/packem_shared/ShardInput-C6mjgAh4.mjs +1 -0
  68. package/dist/packem_shared/Studio-CHCAslfi.mjs +1 -0
  69. package/dist/packem_shared/StudioApp-DVl_E-VZ.mjs +1 -0
  70. package/dist/packem_shared/StudioI18nProvider-fVsCSs5L.mjs +1 -0
  71. package/dist/packem_shared/advisor-view-5mZH6453.mjs +1 -0
  72. package/dist/packem_shared/alert-PB5W11MM.mjs +1 -0
  73. package/dist/packem_shared/app.d-D1bPR8FO.d.mts +252 -0
  74. package/dist/packem_shared/badge-r_5B4LHP.mjs +1 -0
  75. package/dist/packem_shared/{bar-chart-B6gzp_f9.js → bar-chart-BCsEIQoQ.mjs} +1 -1
  76. package/dist/packem_shared/button-q0UYSmrn.mjs +1 -0
  77. package/dist/packem_shared/card--2hKx4L2.mjs +1 -0
  78. package/dist/packem_shared/checkbox-CnS9cyCz.mjs +1 -0
  79. package/dist/packem_shared/data-grid-BqNXJ9PF.mjs +1 -0
  80. package/dist/packem_shared/dropdown-menu-jLZenfWH.mjs +2 -0
  81. package/dist/packem_shared/empty-state-D7jEML_T.mjs +1 -0
  82. package/dist/packem_shared/error-alert-CczbAfst.mjs +1 -0
  83. package/dist/packem_shared/{grid-features-jBzZGauv.js → grid-features-D8w5isjt.mjs} +1 -1
  84. package/dist/packem_shared/home-panel-CSENDmoB.mjs +3 -0
  85. package/dist/packem_shared/input-CXhxesPC.mjs +1 -0
  86. package/dist/packem_shared/label-DKFzyHq6.mjs +1 -0
  87. package/dist/packem_shared/live-status-BuJdUZFU.mjs +1 -0
  88. package/dist/packem_shared/log-line-Dzg4YZ-K.mjs +1 -0
  89. package/dist/packem_shared/modal-shell-CDztwLnv.mjs +1 -0
  90. package/dist/packem_shared/recording-client-BEZ6tVgo.mjs +1 -0
  91. package/dist/packem_shared/{reference-view-BU2dNK9Z.js → reference-view-CZxBZSRo.mjs} +1 -1
  92. package/dist/packem_shared/schema-diagram-DU83ObYH.mjs +2 -0
  93. package/dist/packem_shared/scroll-area-CXCQH7VT.mjs +2 -0
  94. package/dist/packem_shared/select-Cx8-CokP.mjs +2 -0
  95. package/dist/packem_shared/shard-history-CaO3C4KQ.mjs +1 -0
  96. package/dist/packem_shared/shortcuts-B9gDaXmw.mjs +1 -0
  97. package/dist/packem_shared/skeleton-DX1gfixl.mjs +1 -0
  98. package/dist/packem_shared/sparkline-B_sPPO_8.mjs +1 -0
  99. package/dist/packem_shared/sql-result-table-DysT8h5P.mjs +1 -0
  100. package/dist/packem_shared/stat-card-D0Fe04cX.mjs +1 -0
  101. package/dist/packem_shared/studio-DRHuKwbt.mjs +2 -0
  102. package/dist/packem_shared/table-D0SBiDu-.mjs +2 -0
  103. package/dist/packem_shared/table-list-sidebar-BxZm3sBJ.mjs +1 -0
  104. package/dist/packem_shared/textarea--40GKAyz.mjs +1 -0
  105. package/dist/packem_shared/trace-handoff-BV3EWqy_.mjs +1 -0
  106. package/dist/packem_shared/use-admin-query-Cbj2GuHu.mjs +1 -0
  107. package/dist/packem_shared/use-async-submit-DAKymxcP.mjs +1 -0
  108. package/dist/packem_shared/use-auth-config-gxJL0E1r.mjs +1 -0
  109. package/dist/packem_shared/use-open-trace-B5LJ96_0.mjs +1 -0
  110. package/dist/packem_shared/use-sql-assistant-CFRzdA9E.mjs +1 -0
  111. package/dist/standalone/{chunk-7PIHTTND.js → chunk-25NFR6EB.js} +1 -1
  112. package/dist/standalone/{chunk-R7S3ICRW.js → chunk-2AFIMJPZ.js} +1 -1
  113. package/dist/standalone/{chunk-ENLQ6CZE.js → chunk-2DO5EQCU.js} +1 -1
  114. package/dist/standalone/{chunk-XZBLPJZN.js → chunk-2QSOSRNW.js} +1 -1
  115. package/dist/standalone/{chunk-F7JOSNAT.js → chunk-35DM4JJG.js} +1 -1
  116. package/dist/standalone/{chunk-EHQU74ST.js → chunk-3FFEVZUV.js} +1 -1
  117. package/dist/standalone/{chunk-OE4KGVJW.js → chunk-3ILVYCWG.js} +1 -1
  118. package/dist/standalone/{chunk-TRS5ABTX.js → chunk-3PKWDMXA.js} +1 -1
  119. package/dist/standalone/{chunk-2KR32476.js → chunk-3ZKYTFKY.js} +1 -1
  120. package/dist/standalone/{chunk-XLU6W4LI.js → chunk-43Y54D7O.js} +1 -1
  121. package/dist/standalone/{chunk-AOAJGSYZ.js → chunk-46ZJ3TM4.js} +1 -1
  122. package/dist/standalone/{chunk-2SFSTQS4.js → chunk-4GTO7FL5.js} +1 -1
  123. package/dist/standalone/{chunk-TFMQSCGC.js → chunk-4L4WTGN5.js} +1 -1
  124. package/dist/standalone/{chunk-HOQ2PFO6.js → chunk-56AFJWER.js} +1 -1
  125. package/dist/standalone/chunk-5AUOM7FK.js +1 -0
  126. package/dist/standalone/{chunk-XQS7KSHL.js → chunk-5GFSKIB2.js} +1 -1
  127. package/dist/standalone/{chunk-JV7KTJPY.js → chunk-5JDWLCSH.js} +1 -1
  128. package/dist/standalone/{chunk-WSNONR2E.js → chunk-5PCGB55O.js} +1 -1
  129. package/dist/standalone/{chunk-MCLM2QJI.js → chunk-5WJXVZMZ.js} +1 -1
  130. package/dist/standalone/{chunk-WUW4ZHRL.js → chunk-66UGPQVC.js} +1 -1
  131. package/dist/standalone/{chunk-QHQTOESO.js → chunk-7EYQVAUQ.js} +1 -1
  132. package/dist/standalone/{chunk-AVBOVXQK.js → chunk-7QMV55PO.js} +1 -1
  133. package/dist/standalone/{chunk-JURAVSE7.js → chunk-7QRRR3K6.js} +1 -1
  134. package/dist/standalone/{chunk-EDHW2EEG.js → chunk-7RIRJD2P.js} +1 -1
  135. package/dist/standalone/{chunk-ITNXWR5K.js → chunk-B5FXTB7H.js} +1 -1
  136. package/dist/standalone/{chunk-NNJW6LZK.js → chunk-BFXBBUU6.js} +1 -1
  137. package/dist/standalone/{chunk-DBMUPDVJ.js → chunk-BX3F7MXP.js} +1 -1
  138. package/dist/standalone/{chunk-ZSOLGJFC.js → chunk-C3TOZ4LG.js} +1 -1
  139. package/dist/standalone/{chunk-54TELYX4.js → chunk-C5L4BSYY.js} +1 -1
  140. package/dist/standalone/{chunk-U5D3ABAW.js → chunk-CKZQXAZE.js} +1 -1
  141. package/dist/standalone/{chunk-7SROZWKL.js → chunk-CSUROWL2.js} +1 -1
  142. package/dist/standalone/{chunk-DUDQV6XJ.js → chunk-D27D4UUI.js} +1 -1
  143. package/dist/standalone/chunk-DEJLINCJ.js +1 -0
  144. package/dist/standalone/{chunk-KZ5V7F4W.js → chunk-DQHYNFE4.js} +1 -1
  145. package/dist/standalone/{chunk-METRMDIQ.js → chunk-EA2JKR5D.js} +1 -1
  146. package/dist/standalone/{chunk-BWEXJENB.js → chunk-EBWXFG4H.js} +1 -1
  147. package/dist/standalone/{chunk-4U5PYZLE.js → chunk-ECQTVV2J.js} +1 -1
  148. package/dist/standalone/{chunk-JUWOEHDD.js → chunk-EG6XHY7N.js} +1 -1
  149. package/dist/standalone/{chunk-MOVUB3HI.js → chunk-EIKBBMM4.js} +1 -1
  150. package/dist/standalone/{chunk-5BEXGGHV.js → chunk-EILTQDXX.js} +1 -1
  151. package/dist/standalone/{chunk-XYD65F6K.js → chunk-ERWZGAOA.js} +1 -1
  152. package/dist/standalone/{chunk-ZPGNTTQ3.js → chunk-F7UC63UN.js} +1 -1
  153. package/dist/standalone/{chunk-UANVABQG.js → chunk-FKVZRPV5.js} +1 -1
  154. package/dist/standalone/{chunk-DKSLOJDQ.js → chunk-FO26ZU7E.js} +1 -1
  155. package/dist/standalone/{chunk-RCZTUWG3.js → chunk-FSRSK4LY.js} +1 -1
  156. package/dist/standalone/{chunk-IS2BTYON.js → chunk-GD3ZRVZH.js} +1 -1
  157. package/dist/standalone/{chunk-L4EZAHCD.js → chunk-HEAQVSNS.js} +1 -1
  158. package/dist/standalone/{chunk-GD4GUF75.js → chunk-HODZXHVK.js} +1 -1
  159. package/dist/standalone/chunk-HPUOZHDA.js +1 -0
  160. package/dist/standalone/{chunk-AFKLFS74.js → chunk-I52I2DJG.js} +1 -1
  161. package/dist/standalone/{chunk-OG57FC7W.js → chunk-I5OKDKON.js} +1 -1
  162. package/dist/standalone/{chunk-TB5N24CM.js → chunk-IFLTA2OD.js} +1 -1
  163. package/dist/standalone/{chunk-NXXGISFB.js → chunk-IMOHEGMV.js} +1 -1
  164. package/dist/standalone/{chunk-5U6757U7.js → chunk-JAZCU2PP.js} +1 -1
  165. package/dist/standalone/{chunk-CG5OTGTR.js → chunk-JBIN7W2B.js} +1 -1
  166. package/dist/standalone/{chunk-BA6TK2PS.js → chunk-JHEUUNXM.js} +1 -1
  167. package/dist/standalone/chunk-JJA7KHJK.js +1 -0
  168. package/dist/standalone/{chunk-4YTSKL4R.js → chunk-JVUZEYKQ.js} +1 -1
  169. package/dist/standalone/{chunk-INFALEU6.js → chunk-JYMXJUJ2.js} +1 -1
  170. package/dist/standalone/chunk-K7AJEMKE.js +1 -0
  171. package/dist/standalone/{chunk-ZZBE7O77.js → chunk-KDWJAKFX.js} +1 -1
  172. package/dist/standalone/{chunk-EQFBG7TB.js → chunk-KEZZGUYY.js} +1 -1
  173. package/dist/standalone/{chunk-6DAH3SMG.js → chunk-KTTYWH6A.js} +1 -1
  174. package/dist/standalone/{chunk-LVZKEWNM.js → chunk-LC3XGRNU.js} +1 -1
  175. package/dist/standalone/{chunk-LJFIXPDF.js → chunk-LJC5BM3X.js} +1 -1
  176. package/dist/standalone/{chunk-6XME7G3Q.js → chunk-LWYAZ2H7.js} +1 -1
  177. package/dist/standalone/{chunk-B3QSXX4O.js → chunk-M6MCQSPI.js} +1 -1
  178. package/dist/standalone/{chunk-AFH3KSFW.js → chunk-MIVYBFY3.js} +1 -1
  179. package/dist/standalone/{chunk-BQK2C2Z4.js → chunk-MNAASONZ.js} +1 -1
  180. package/dist/standalone/{chunk-BGOEMFLU.js → chunk-MRJNT4OH.js} +1 -1
  181. package/dist/standalone/{chunk-OQOBY6X3.js → chunk-N6KHKQJH.js} +1 -1
  182. package/dist/standalone/{chunk-V6QPVFDL.js → chunk-NBC6NJFJ.js} +1 -1
  183. package/dist/standalone/{chunk-SPDZUX4P.js → chunk-NCCAMFB6.js} +1 -1
  184. package/dist/standalone/{chunk-NGQTRDBQ.js → chunk-NE7AR3N3.js} +1 -1
  185. package/dist/standalone/chunk-NPERN4YF.js +1 -0
  186. package/dist/standalone/{chunk-YNZQSHFG.js → chunk-O2FV34ZD.js} +1 -1
  187. package/dist/standalone/{chunk-KVSQKUWD.js → chunk-OGUKYRFM.js} +1 -1
  188. package/dist/standalone/{chunk-ZHPDAJBM.js → chunk-OKG3HWSJ.js} +1 -1
  189. package/dist/standalone/{chunk-FUVCG23X.js → chunk-OOESPRIZ.js} +1 -1
  190. package/dist/standalone/{chunk-443UDYWL.js → chunk-OOKV3V3X.js} +1 -1
  191. package/dist/standalone/{chunk-ATES7QMQ.js → chunk-PAUQAU23.js} +1 -1
  192. package/dist/standalone/{chunk-Q7ZPWO67.js → chunk-PKCC4J5W.js} +1 -1
  193. package/dist/standalone/{chunk-DPNEFSEC.js → chunk-PYT4RZJH.js} +1 -1
  194. package/dist/standalone/{chunk-W7ETXRN4.js → chunk-Q3HF6P2M.js} +1 -1
  195. package/dist/standalone/{chunk-TPAZM36C.js → chunk-Q4CAKBWN.js} +1 -1
  196. package/dist/standalone/{chunk-M3NNNOD5.js → chunk-QKEJLVC5.js} +1 -1
  197. package/dist/standalone/{chunk-U6RNLNVU.js → chunk-QSOJFV42.js} +1 -1
  198. package/dist/standalone/{chunk-K6O3UDLX.js → chunk-RK3WWWTT.js} +1 -1
  199. package/dist/standalone/{chunk-XJSWM47N.js → chunk-RLLKECZT.js} +1 -1
  200. package/dist/standalone/{chunk-CAOUXOL7.js → chunk-RPQL45FL.js} +1 -1
  201. package/dist/standalone/{chunk-CKTKI4IY.js → chunk-S3CRZLGS.js} +1 -1
  202. package/dist/standalone/{chunk-L6DNHL3L.js → chunk-S63ID2FC.js} +1 -1
  203. package/dist/standalone/{chunk-VZCS5GXZ.js → chunk-SB35BJ7A.js} +1 -1
  204. package/dist/standalone/{chunk-26VREVWU.js → chunk-SSNHCN4D.js} +1 -1
  205. package/dist/standalone/{chunk-3KLX63D7.js → chunk-T2IE5GKA.js} +1 -1
  206. package/dist/standalone/{chunk-74ASA4WU.js → chunk-TGHH7ZFA.js} +1 -1
  207. package/dist/standalone/{chunk-FJ6G6FNE.js → chunk-TJRQUJFS.js} +1 -1
  208. package/dist/standalone/{chunk-EYGF6TQS.js → chunk-TQCXJX4I.js} +1 -1
  209. package/dist/standalone/{chunk-EYENA7HZ.js → chunk-TRL7AHZK.js} +1 -1
  210. package/dist/standalone/{chunk-CP4ZFBVW.js → chunk-TWTNWOJU.js} +1 -1
  211. package/dist/standalone/{chunk-UUO257GV.js → chunk-TZI3JW3Q.js} +1 -1
  212. package/dist/standalone/{chunk-M3PFFLSD.js → chunk-UBVWMMQG.js} +1 -1
  213. package/dist/standalone/{chunk-CYX3OHJ3.js → chunk-UDCVU3Z5.js} +1 -1
  214. package/dist/standalone/{chunk-BNNRPK47.js → chunk-UKL4FSKP.js} +1 -1
  215. package/dist/standalone/{chunk-PZ4QDWTI.js → chunk-ULIQFBZU.js} +1 -1
  216. package/dist/standalone/{chunk-XVJIEJ5R.js → chunk-USC5APTS.js} +1 -1
  217. package/dist/standalone/{chunk-QO645HJU.js → chunk-UWDFH35E.js} +1 -1
  218. package/dist/standalone/{chunk-YN4VXWMW.js → chunk-VPPKG2IW.js} +1 -1
  219. package/dist/standalone/{chunk-NIX2QSSN.js → chunk-VVOVVU53.js} +1 -1
  220. package/dist/standalone/{chunk-BSACLUQK.js → chunk-WLGZOFKE.js} +2 -2
  221. package/dist/standalone/{chunk-CN2AINNY.js → chunk-WQYWA7U6.js} +1 -1
  222. package/dist/standalone/{chunk-ZJK2XCP3.js → chunk-WR675JUF.js} +1 -1
  223. package/dist/standalone/{chunk-IYWVSMAY.js → chunk-WUWBZPUK.js} +1 -1
  224. package/dist/standalone/{chunk-K76OQSTQ.js → chunk-X43AA6RX.js} +1 -1
  225. package/dist/standalone/{chunk-EGSG64TS.js → chunk-XSLMHPP2.js} +1 -1
  226. package/dist/standalone/{chunk-5JLIP2HH.js → chunk-XZMOZFE6.js} +1 -1
  227. package/dist/standalone/{chunk-6ZPTNC34.js → chunk-Y4Q25F6X.js} +1 -1
  228. package/dist/standalone/{chunk-INQICZYC.js → chunk-Y6CXU7T4.js} +1 -1
  229. package/dist/standalone/{chunk-VR3UJA7B.js → chunk-YEBHHIAY.js} +1 -1
  230. package/dist/standalone/{chunk-MSXT3KG5.js → chunk-YFLOZILV.js} +1 -1
  231. package/dist/standalone/{chunk-MIGH67EO.js → chunk-YFPU55K4.js} +1 -1
  232. package/dist/standalone/{chunk-2I2F6IEF.js → chunk-ZE2Q22OK.js} +1 -1
  233. package/dist/standalone/studio.js +1 -1
  234. package/package.json +11 -9
  235. package/dist/index.js +0 -1
  236. package/dist/mount.js +0 -1
  237. package/dist/packem_chunks/AdvisorHealthPanel.js +0 -1
  238. package/dist/packem_chunks/ApiTab.js +0 -1
  239. package/dist/packem_chunks/AuditPanel.js +0 -1
  240. package/dist/packem_chunks/DeploymentHealthPanel.js +0 -1
  241. package/dist/packem_chunks/FunctionRunner.js +0 -1
  242. package/dist/packem_chunks/FunctionStatsPanel.js +0 -1
  243. package/dist/packem_chunks/HealthPanel.js +0 -1
  244. package/dist/packem_chunks/InsightsPanel.js +0 -1
  245. package/dist/packem_chunks/LogsPanel.js +0 -1
  246. package/dist/packem_chunks/MailPanel.js +0 -2
  247. package/dist/packem_chunks/MetricsPanel.js +0 -1
  248. package/dist/packem_chunks/NotificationsPanel.js +0 -1
  249. package/dist/packem_chunks/PitrPanel.js +0 -1
  250. package/dist/packem_chunks/SchemaViewer.js +0 -1
  251. package/dist/packem_chunks/SecurityAdvisorPanel.js +0 -1
  252. package/dist/packem_chunks/SettingsPanel.js +0 -1
  253. package/dist/packem_chunks/TableEditor.js +0 -1
  254. package/dist/packem_chunks/agents-panel.js +0 -1
  255. package/dist/packem_chunks/analytics-panel.js +0 -1
  256. package/dist/packem_chunks/auth-audit-panel.js +0 -1
  257. package/dist/packem_chunks/auth-config-panel.js +0 -1
  258. package/dist/packem_chunks/auth-sessions-panel.js +0 -1
  259. package/dist/packem_chunks/containers-panel.js +0 -1
  260. package/dist/packem_chunks/dashboards-panel.js +0 -1
  261. package/dist/packem_chunks/evals-panel.js +0 -1
  262. package/dist/packem_chunks/fanout-panel.js +0 -1
  263. package/dist/packem_chunks/flags-panel.js +0 -1
  264. package/dist/packem_chunks/issues-panel.js +0 -1
  265. package/dist/packem_chunks/kv-browser.js +0 -1
  266. package/dist/packem_chunks/migrations-route.js +0 -1
  267. package/dist/packem_chunks/organizations-panel.js +0 -1
  268. package/dist/packem_chunks/payments-panel.js +0 -1
  269. package/dist/packem_chunks/permissions-panel.js +0 -1
  270. package/dist/packem_chunks/queues-panel.js +0 -1
  271. package/dist/packem_chunks/reactors-panel.js +0 -1
  272. package/dist/packem_chunks/rls-panel.js +0 -1
  273. package/dist/packem_chunks/schedule-panel.js +0 -1
  274. package/dist/packem_chunks/sparkline.js +0 -1
  275. package/dist/packem_chunks/storage-rules-panel.js +0 -1
  276. package/dist/packem_chunks/subscriptions-panel.js +0 -1
  277. package/dist/packem_chunks/sync-client-panel.js +0 -1
  278. package/dist/packem_chunks/traces-panel.js +0 -1
  279. package/dist/packem_chunks/users-panel.js +0 -1
  280. package/dist/packem_chunks/vector-browser.js +0 -1
  281. package/dist/packem_chunks/workflows-panel.js +0 -1
  282. package/dist/packem_shared/ApiReferencePanel-uGgGOBYj.js +0 -1
  283. package/dist/packem_shared/CommandPalette-HqiXrWIm.js +0 -1
  284. package/dist/packem_shared/ConfirmButton-Cj2SOapE.js +0 -1
  285. package/dist/packem_shared/ConnectionBadge-Bh16X9-u.js +0 -1
  286. package/dist/packem_shared/DEFAULT_INSIGHT_THRESHOLDS-1Lrg55IV.js +0 -1
  287. package/dist/packem_shared/GlobalDataBrowser-LFznuyGe.js +0 -1
  288. package/dist/packem_shared/HomePanel-DmB0EKjl.js +0 -1
  289. package/dist/packem_shared/MigrationsPanel-BDNt136v.js +0 -1
  290. package/dist/packem_shared/OpenRpcReferencePanel-DgrpASYD.js +0 -1
  291. package/dist/packem_shared/ScheduledJobs-CiO3eXgI.js +0 -1
  292. package/dist/packem_shared/ShardInput-CdawpUiS.js +0 -1
  293. package/dist/packem_shared/Studio-CkNE_tEy.js +0 -1
  294. package/dist/packem_shared/StudioApp-BZP_0E2n.js +0 -1
  295. package/dist/packem_shared/StudioI18nProvider-Bl547evf.js +0 -1
  296. package/dist/packem_shared/advisor-view-C1KFTXSH.js +0 -1
  297. package/dist/packem_shared/alert-C2SEhYS9.js +0 -1
  298. package/dist/packem_shared/badge-cAk9Di1Q.js +0 -1
  299. package/dist/packem_shared/button-BOPLD1un.js +0 -1
  300. package/dist/packem_shared/card-BGlQzQY-.js +0 -1
  301. package/dist/packem_shared/checkbox-C5w53W-E.js +0 -1
  302. package/dist/packem_shared/data-grid-BFTQnkXq.js +0 -1
  303. package/dist/packem_shared/dropdown-menu-U7Tjg1Nb.js +0 -2
  304. package/dist/packem_shared/empty-state-B939z6K2.js +0 -1
  305. package/dist/packem_shared/error-alert-TYdKetJd.js +0 -1
  306. package/dist/packem_shared/home-panel-DHOa3sxt.js +0 -3
  307. package/dist/packem_shared/input-CY5W3wzv.js +0 -1
  308. package/dist/packem_shared/label-BOUo-DP0.js +0 -1
  309. package/dist/packem_shared/live-status-Bf7rR8o8.js +0 -1
  310. package/dist/packem_shared/log-line-UnE93Ovi.js +0 -1
  311. package/dist/packem_shared/modal-shell-wGW4CKEW.js +0 -1
  312. package/dist/packem_shared/recording-client-CKn4-vUx.js +0 -1
  313. package/dist/packem_shared/schema-diagram-DOaIh1y6.js +0 -2
  314. package/dist/packem_shared/scroll-area-DSJftwu_.js +0 -2
  315. package/dist/packem_shared/select-BPISLTcv.js +0 -2
  316. package/dist/packem_shared/shard-history-DU5b3QDI.js +0 -1
  317. package/dist/packem_shared/shortcuts-lH4Vaqjc.js +0 -1
  318. package/dist/packem_shared/skeleton-DFBBaJU6.js +0 -1
  319. package/dist/packem_shared/sparkline-CYbJzfA1.js +0 -1
  320. package/dist/packem_shared/sql-result-table-CqlZo2QN.js +0 -1
  321. package/dist/packem_shared/stat-card-B9uIvAHg.js +0 -1
  322. package/dist/packem_shared/studio-CXai1O2K.js +0 -2
  323. package/dist/packem_shared/table-BMsuYFhk.js +0 -2
  324. package/dist/packem_shared/table-list-sidebar-BWq_-gtu.js +0 -1
  325. package/dist/packem_shared/textarea-DpO3i-Qo.js +0 -1
  326. package/dist/packem_shared/trace-handoff-z9sy89Ci.js +0 -1
  327. package/dist/packem_shared/use-admin-query-P0RJrjsD.js +0 -1
  328. package/dist/packem_shared/use-async-submit-DdLd0MdK.js +0 -1
  329. package/dist/packem_shared/use-auth-config-z3KRWAqD.js +0 -1
  330. package/dist/packem_shared/use-open-trace-4mqqFWrn.js +0 -1
  331. package/dist/packem_shared/use-sql-assistant-D1K2LqpO.js +0 -1
  332. package/dist/standalone/chunk-35O3VETX.js +0 -1
  333. package/dist/standalone/chunk-57VX76PR.js +0 -1
  334. package/dist/standalone/chunk-76YLMHR3.js +0 -1
  335. package/dist/standalone/chunk-N5OS5NUG.js +0 -1
  336. package/dist/standalone/chunk-O5MAFDY2.js +0 -1
  337. package/dist/standalone/chunk-TNKECJW4.js +0 -1
  338. /package/dist/packem_shared/{ADMIN_FUNCTIONS-B6z7VLYt.js → ADMIN_FUNCTIONS-B6z7VLYt.mjs} +0 -0
  339. /package/dist/packem_shared/{DEFAULT_AUTO_REFRESH_MS-DuULO4XM.js → DEFAULT_AUTO_REFRESH_MS-DuULO4XM.mjs} +0 -0
  340. /package/dist/packem_shared/{DEFAULT_LOCALE-A1Yg5ORA.js → DEFAULT_LOCALE-A1Yg5ORA.mjs} +0 -0
  341. /package/dist/packem_shared/{DataFilters-3nbW0uax.js → DataFilters-3nbW0uax.mjs} +0 -0
  342. /package/dist/packem_shared/{ErrorBoundary-BWNF98VF.js → ErrorBoundary-BWNF98VF.mjs} +0 -0
  343. /package/dist/packem_shared/{STUDIO_ROOT_CLASS-C6MccdVk.js → STUDIO_ROOT_CLASS-C6MccdVk.mjs} +0 -0
  344. /package/dist/packem_shared/{aggregateMetrics-A-Y7OH6R.js → aggregateMetrics-A-Y7OH6R.mjs} +0 -0
  345. /package/dist/packem_shared/{browser-storage-BH1MxLZs.js → browser-storage-BH1MxLZs.mjs} +0 -0
  346. /package/dist/packem_shared/{cf-links-CBJ5SywP.js → cf-links-CBJ5SywP.mjs} +0 -0
  347. /package/dist/packem_shared/{control-button-BOZ5K-FC.js → control-button-BOZ5K-FC.mjs} +0 -0
  348. /package/dist/packem_shared/{data-view-params-qoSTqjAj.js → data-view-params-qoSTqjAj.mjs} +0 -0
  349. /package/dist/packem_shared/{internal-CwaF9YNk.js → internal-CwaF9YNk.mjs} +0 -0
  350. /package/dist/packem_shared/{log-fields-SBxKyBug.js → log-fields-SBxKyBug.mjs} +0 -0
  351. /package/dist/packem_shared/{operation-console-provider-DoloEvon.js → operation-console-provider-DoloEvon.mjs} +0 -0
  352. /package/dist/packem_shared/{quote-identifier-CGiYFBvY.js → quote-identifier-CGiYFBvY.mjs} +0 -0
  353. /package/dist/packem_shared/{storage-tier-C2mKwYRj.js → storage-tier-C2mKwYRj.mjs} +0 -0
  354. /package/dist/packem_shared/{use-shard-key-BsP3o5wT.js → use-shard-key-BsP3o5wT.mjs} +0 -0
  355. /package/dist/packem_shared/{useDebounced-DVeQ5-oW.js → useDebounced-DVeQ5-oW.mjs} +0 -0
  356. /package/dist/packem_shared/{utils-bhneXptQ.js → utils-bhneXptQ.mjs} +0 -0
  357. /package/dist/packem_shared/{virtual-rect-D_j7aLxX.js → virtual-rect-D_j7aLxX.mjs} +0 -0
  358. /package/dist/packem_shared/{wire-codec-Dl3VeNrd.js → wire-codec-Dl3VeNrd.mjs} +0 -0
  359. /package/dist/standalone/{chunk-DZGOHOOE.js → chunk-CXNZVJ3S.js} +0 -0
  360. /package/dist/standalone/{chunk-W2JBKQNU.js → chunk-UYEZR3BI.js} +0 -0
  361. /package/dist/standalone/{chunk-R5ZTCHCE.js → chunk-YKXDMIHQ.js} +0 -0
@@ -1 +1 @@
1
- import{b as y}from"./chunk-SPDZUX4P.js";import"./chunk-7PIHTTND.js";import{a as R}from"./chunk-5U6757U7.js";import"./chunk-PZ4QDWTI.js";import"./chunk-FUVCG23X.js";import"./chunk-F7JOSNAT.js";import{a as v}from"./chunk-DZGOHOOE.js";import{c as $}from"./chunk-4U5PYZLE.js";import"./chunk-CG5OTGTR.js";import"./chunk-RCZTUWG3.js";import{a as S}from"./chunk-UANVABQG.js";import{a as A,b as C,c as I,d as x,e as c,f as n}from"./chunk-L4EZAHCD.js";import{a as k,e as w}from"./chunk-IYWVSMAY.js";import{d as N}from"./chunk-6ZPTNC34.js";import"./chunk-3KLX63D7.js";import{a as f,d as b,f as E,g as O}from"./chunk-R5ZTCHCE.js";var j=b(E(),1);var r=b(O(),1);var _=f((e,t)=>({delete:e("Delete"),list:e("List"),read:e("Read"),write:e("Write")})[t],"I"),T={delete:2,list:3,read:0,write:1},B=f(e=>[...e].toSorted((t,a)=>t.bucket.localeCompare(a.bucket)||T[t.on]-T[a.on]||(t.prefix??"").localeCompare(a.prefix??"")),"O"),q=f(()=>{let e=(0,j.c)(14),t=N(),a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={},e[0]=a):a=e[0];let{data:l,error:i,errorSource:d}=$(v.storageRules,a),h=l!==void 0,m;if(e[1]!==l||e[2]!==i||e[3]!==d||e[4]!==h||e[5]!==t){let g=B(Array.isArray(l?.rules)?l.rules:[]),u;e[7]!==i||e[8]!==d?(u=i!==null&&(0,r.jsx)(R,{error:d,testId:"storage-rules-error"}),e[7]=i,e[8]=d,e[9]=u):u=e[9];let o;e[10]!==t?(o=t("Storage rules are declared in code with defineStorageRule and gate ctx.storage access per bucket. This view is read-only."),e[10]=t,e[11]=o):o=e[11];let p;e[12]!==o?(p=(0,r.jsx)("p",{className:"text-sm text-muted-foreground","data-testid":"storage-rules-note",children:o}),e[12]=o,e[13]=p):p=e[13],m=(0,r.jsxs)("div",{className:"flex flex-col gap-4","data-testid":"lunora-storage-rules-panel",children:[u,p,h&&g.length===0?(0,r.jsx)(S,{description:t("No defineStorageRule is wired through .use(storageRules(...)) in this deployment. Add one to gate object access by key prefix."),testId:"storage-rules-empty",title:t("No storage rules defined")}):(0,r.jsx)(k,{className:"overflow-hidden py-0",children:(0,r.jsx)(w,{className:"px-0",children:(0,r.jsxs)(A,{"data-testid":"storage-rules-table",children:[(0,r.jsx)(C,{children:(0,r.jsxs)(x,{children:[(0,r.jsx)(c,{children:t("Bucket")}),(0,r.jsx)(c,{children:t("Operation")}),(0,r.jsx)(c,{children:t("Key prefix")}),(0,r.jsx)(c,{children:t("Guarded by")})]})}),(0,r.jsx)(I,{children:g.map(s=>(0,r.jsxs)(x,{"data-testid":`storage-rule-${s.bucket}-${s.on}-${s.prefix??""}`,children:[(0,r.jsx)(n,{className:"font-mono text-xs",children:s.bucket}),(0,r.jsx)(n,{children:(0,r.jsx)(y,{variant:"secondary",children:_(t,s.on)})}),(0,r.jsx)(n,{className:"font-mono text-xs",children:s.prefix??(0,r.jsx)("span",{className:"text-muted-foreground",children:t("(whole bucket)")})}),(0,r.jsx)(n,{className:"font-mono text-xs text-muted-foreground",children:s.procedure})]},`${s.bucket}:${s.on}:${s.prefix??""}:${s.procedure}`))})]})})})]}),e[1]=l,e[2]=i,e[3]=d,e[4]=h,e[5]=t,e[6]=m}else m=e[6];return m},"M");export{q as default};
1
+ import{b as y}from"./chunk-NCCAMFB6.js";import"./chunk-25NFR6EB.js";import{a as R}from"./chunk-JAZCU2PP.js";import"./chunk-ULIQFBZU.js";import"./chunk-OOESPRIZ.js";import"./chunk-35DM4JJG.js";import{a as v}from"./chunk-CXNZVJ3S.js";import{c as $}from"./chunk-ECQTVV2J.js";import"./chunk-JBIN7W2B.js";import"./chunk-FSRSK4LY.js";import{a as S}from"./chunk-FKVZRPV5.js";import{a as A,b as C,c as I,d as x,e as c,f as n}from"./chunk-HEAQVSNS.js";import{a as k,e as w}from"./chunk-WUWBZPUK.js";import{d as N}from"./chunk-Y4Q25F6X.js";import"./chunk-T2IE5GKA.js";import{a as f,d as b,f as E,g as O}from"./chunk-YKXDMIHQ.js";var j=b(E(),1);var r=b(O(),1);var _=f((e,t)=>({delete:e("Delete"),list:e("List"),read:e("Read"),write:e("Write")})[t],"I"),T={delete:2,list:3,read:0,write:1},B=f(e=>[...e].toSorted((t,a)=>t.bucket.localeCompare(a.bucket)||T[t.on]-T[a.on]||(t.prefix??"").localeCompare(a.prefix??"")),"O"),q=f(()=>{let e=(0,j.c)(14),t=N(),a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={},e[0]=a):a=e[0];let{data:l,error:i,errorSource:d}=$(v.storageRules,a),h=l!==void 0,m;if(e[1]!==l||e[2]!==i||e[3]!==d||e[4]!==h||e[5]!==t){let g=B(Array.isArray(l?.rules)?l.rules:[]),u;e[7]!==i||e[8]!==d?(u=i!==null&&(0,r.jsx)(R,{error:d,testId:"storage-rules-error"}),e[7]=i,e[8]=d,e[9]=u):u=e[9];let o;e[10]!==t?(o=t("Storage rules are declared in code with defineStorageRule and gate ctx.storage access per bucket. This view is read-only."),e[10]=t,e[11]=o):o=e[11];let p;e[12]!==o?(p=(0,r.jsx)("p",{className:"text-sm text-muted-foreground","data-testid":"storage-rules-note",children:o}),e[12]=o,e[13]=p):p=e[13],m=(0,r.jsxs)("div",{className:"flex flex-col gap-4","data-testid":"lunora-storage-rules-panel",children:[u,p,h&&g.length===0?(0,r.jsx)(S,{description:t("No defineStorageRule is wired through .use(storageRules(...)) in this deployment. Add one to gate object access by key prefix."),testId:"storage-rules-empty",title:t("No storage rules defined")}):(0,r.jsx)(k,{className:"overflow-hidden py-0",children:(0,r.jsx)(w,{className:"px-0",children:(0,r.jsxs)(A,{"data-testid":"storage-rules-table",children:[(0,r.jsx)(C,{children:(0,r.jsxs)(x,{children:[(0,r.jsx)(c,{children:t("Bucket")}),(0,r.jsx)(c,{children:t("Operation")}),(0,r.jsx)(c,{children:t("Key prefix")}),(0,r.jsx)(c,{children:t("Guarded by")})]})}),(0,r.jsx)(I,{children:g.map(s=>(0,r.jsxs)(x,{"data-testid":`storage-rule-${s.bucket}-${s.on}-${s.prefix??""}`,children:[(0,r.jsx)(n,{className:"font-mono text-xs",children:s.bucket}),(0,r.jsx)(n,{children:(0,r.jsx)(y,{variant:"secondary",children:_(t,s.on)})}),(0,r.jsx)(n,{className:"font-mono text-xs",children:s.prefix??(0,r.jsx)("span",{className:"text-muted-foreground",children:t("(whole bucket)")})}),(0,r.jsx)(n,{className:"font-mono text-xs text-muted-foreground",children:s.procedure})]},`${s.bucket}:${s.on}:${s.prefix??""}:${s.procedure}`))})]})})})]}),e[1]=l,e[2]=i,e[3]=d,e[4]=h,e[5]=t,e[6]=m}else m=e[6];return m},"M");export{q as default};
@@ -1 +1 @@
1
- import{b as p}from"./chunk-F7JOSNAT.js";import{d as f}from"./chunk-6ZPTNC34.js";import{a as v,d,f as g,g as h}from"./chunk-R5ZTCHCE.js";var x=d(g(),1);var c=d(h(),1);var y=v(b=>{let e=(0,x.c)(14),{message:i,prefix:n}=b,r=f(),t=p(),l;e[0]!==t?(l=v(()=>{t?.openConsole({errorsOnly:!0})},"l"),e[0]=t,e[1]=l):l=e[1];let u=l;if(i===void 0)return null;let m=`${n}-live-error`,o;e[2]!==i||e[3]!==r?(o=r("Live unavailable: {liveError}",{liveError:i}),e[2]=i,e[3]=r,e[4]=o):o=e[4];let s;e[5]!==t||e[6]!==n||e[7]!==u||e[8]!==r?(s=t===void 0?null:(0,c.jsx)("button",{className:"underline outline-none focus-visible:ring-1 focus-visible:ring-ring","data-testid":`${n}-live-error-console`,onClick:u,type:"button",children:r("Show in console")}),e[5]=t,e[6]=n,e[7]=u,e[8]=r,e[9]=s):s=e[9];let a;return e[10]!==m||e[11]!==o||e[12]!==s?(a=(0,c.jsxs)("span",{className:"flex items-center gap-1.5 text-xs text-destructive","data-testid":m,role:"status",children:[o,s]}),e[10]=m,e[11]=o,e[12]=s,e[13]=a):a=e[13],a},"E");export{y as a};
1
+ import{b as p}from"./chunk-35DM4JJG.js";import{d as f}from"./chunk-Y4Q25F6X.js";import{a as v,d,f as g,g as h}from"./chunk-YKXDMIHQ.js";var x=d(g(),1);var c=d(h(),1);var y=v(b=>{let e=(0,x.c)(14),{message:i,prefix:n}=b,r=f(),t=p(),l;e[0]!==t?(l=v(()=>{t?.openConsole({errorsOnly:!0})},"l"),e[0]=t,e[1]=l):l=e[1];let u=l;if(i===void 0)return null;let m=`${n}-live-error`,o;e[2]!==i||e[3]!==r?(o=r("Live unavailable: {liveError}",{liveError:i}),e[2]=i,e[3]=r,e[4]=o):o=e[4];let s;e[5]!==t||e[6]!==n||e[7]!==u||e[8]!==r?(s=t===void 0?null:(0,c.jsx)("button",{className:"underline outline-none focus-visible:ring-1 focus-visible:ring-ring","data-testid":`${n}-live-error-console`,onClick:u,type:"button",children:r("Show in console")}),e[5]=t,e[6]=n,e[7]=u,e[8]=r,e[9]=s):s=e[9];let a;return e[10]!==m||e[11]!==o||e[12]!==s?(a=(0,c.jsxs)("span",{className:"flex items-center gap-1.5 text-xs text-destructive","data-testid":m,role:"status",children:[o,s]}),e[10]=m,e[11]=o,e[12]=s,e[13]=a):a=e[13],a},"E");export{y as a};
@@ -1 +1 @@
1
- import{H as Se,I as W,X as ve,c as Q,d as de,f as me,g as he,h as ge,i as ye,ka as Re,la as Y,ua as we}from"./chunk-ZSOLGJFC.js";import{b as j}from"./chunk-DUDQV6XJ.js";import{E as U,G as H,N,O as F,o as fe}from"./chunk-AOAJGSYZ.js";import{a as ke}from"./chunk-INQICZYC.js";import{a as ae}from"./chunk-TFMQSCGC.js";import{a as v,c as x,e as ce,i as le,r as pe,w as B}from"./chunk-XQS7KSHL.js";import{c as ue,g as E,i as D}from"./chunk-7PIHTTND.js";import{a as o,d as P,e as k,g as _e}from"./chunk-R5ZTCHCE.js";var Pe=class{static{o(this,"BasePopupHandle")}attachedStores=[];attachedStoreValue=null;storeListeners=new Set;constructor(t,n,r=!0){this.fallbackStore=t,this.componentName=n,this.throwOnMissingTrigger=r}get attachedStore(){return this.attachedStoreValue}get store(){return this.attachedStoreValue??this.fallbackStore}get serverStore(){return this.fallbackStore}subscribeStore(t){return this.storeListeners.add(t),()=>{this.storeListeners.delete(t)}}attachStore(t){return this.attachedStores.push(t),this.setActiveStore(t),()=>{let n=this.attachedStores.lastIndexOf(t);n!==-1&&this.attachedStores.splice(n,1),this.setActiveStore(this.attachedStores[this.attachedStores.length-1]??null)}}setActiveStore(t){this.attachedStoreValue!==t&&(this.attachedStoreValue=t,this.storeListeners.forEach(n=>{n()}))}openByTrigger(t){let n=this.attachedStore;if(n===null)return;let r;if(t){for(let s=this.attachedStores.length-1;s>=0&&!r;s-=1)r=this.attachedStores[s].context.triggerElements.getById(t);r??=this.fallbackStore.context.triggerElements.getById(t)}if(t&&!r&&this.throwOnMissingTrigger)throw new Error(ue(99,this.componentName,t,this.componentName));n.setOpen(!0,F(N.imperativeAction,void 0,r))}closePopup(){let t=this.attachedStore;t!==null&&t.setOpen(!1,F(N.imperativeAction))}};var Z=P(k(),1),Ee=P(ke(),1);function ze(e){let t=Z.useCallback(r=>e===void 0?E:e.subscribeStore(r),[e]),n=Z.useCallback(()=>e===void 0?void 0:e.store,[e]);return(0,Ee.useSyncExternalStore)(t,n,()=>e?.serverStore)}o(ze,"usePopupHandleStore");var be=P(k(),1),ee=P(ae(),1);function ot(e,t){let n=be.useRef(null);function r(i){ee.flushSync(()=>{e.setOpen(!1,F(N.focusOut,i.nativeEvent,i.currentTarget))}),ge(n.current)?.focus()}o(r,"handlePreFocusGuardFocus");function s(i){let u=e.select("positionerElement");if(u&&ye(i,u))e.context.beforeContentFocusGuardRef.current?.focus();else{ee.flushSync(()=>{e.setOpen(!1,F(N.focusOut,i.nativeEvent,i.currentTarget))});let a=he(e.context.triggerFocusTargetRef.current||t.current);for(;a!==null&&fe(u,a);){let l=a;if(a=me(a),a===l)break}a?.focus()}}return o(s,"handleFocusTargetFocus"),{preFocusGuardRef:n,handlePreFocusGuardFocus:r,handleFocusTargetFocus:s}}o(ot,"useTriggerFocusGuards");var c=P(k(),1),Ae=P(ae(),1);var M=P(k(),1);function te(e){let t=pe(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,s=le(e),i=s?e.offsetWidth:n,u=s?e.offsetHeight:r;return(Q(n)!==i||Q(r)!==u)&&(n=i,r=u),{width:n,height:r}}o(te,"getCssDimensions");function Ce(e){let{popupElement:t,positionerElement:n,content:r,mounted:s,onMeasureLayout:i,onMeasureLayoutComplete:u,side:a,direction:l}=e,g=H(t,!0),R=U(),p=M.useRef(null),d=M.useRef(!0),f=M.useRef(E),y=x(i),h=x(u),b=M.useMemo(()=>Be(a,l),[a,l]);v(()=>{if(!s){f.current=E,d.current=!0,p.current=null;return}if(!t||!n)return;f.current=xe(t,b),ne(t,"auto");let V=K(t,"position","static"),C=K(t,"transform","none"),S=K(t,"scale","1"),O=xe(n,{"--available-width":"max-content","--available-height":"max-content"});function q(){V(),C(),O()}o(q,"restoreMeasurementOverrides");function L(){q(),S()}if(o(L,"restoreMeasurementOverridesIncludingScale"),y?.(),d.current||p.current===null){G(n,"max-content");let A=te(t);return p.current=A,G(n,A),L(),h?.(null,A),d.current=!1,()=>{f.current(),f.current=E}}G(n,"max-content");let T=p.current,w=te(t);p.current=w,ne(t,T),L(),h?.(T,w),G(n,w);let $=new AbortController;return R.request(()=>{ne(t,w),g(()=>{t.style.setProperty("--popup-width","auto"),t.style.setProperty("--popup-height","auto")},$.signal)}),()=>{$.abort(),R.cancel(),f.current(),f.current=E}},[r,t,n,g,R,s,y,h,b])}o(Ce,"usePopupAutoResize");function Be(e,t){let n=e==="top",r=e==="left"||e===(t==="rtl"?"inline-end":"inline-start");return!n&&!r?D:{position:"absolute",[n?"bottom":"top"]:"0",[r?"right":"left"]:"0"}}o(Be,"getPopupAnchoringStyles");function K(e,t,n){let r=e.style.getPropertyValue(t);return e.style.setProperty(t,n),()=>{e.style.setProperty(t,r)}}o(K,"overrideElementStyle");function xe(e,t){let n=[];for(let[r,s]of Object.entries(t))n.push(K(e,r,s));return n.length?()=>{n.forEach(r=>r())}:E}o(xe,"applyElementStyles");function ne(e,t){let n=t==="auto"?"auto":`${t.width}px`,r=t==="auto"?"auto":`${t.height}px`;e.style.setProperty("--popup-width",n),e.style.setProperty("--popup-height",r)}o(ne,"setPopupCssSize");function G(e,t){let n=t==="max-content"?"max-content":`${t.width}px`,r=t==="max-content"?"max-content":`${t.height}px`;e.style.setProperty("--positioner-width",n),e.style.setProperty("--positioner-height",r)}o(G,"setPositionerCssSize");var Oe={name:"adaptiveOrigin",async fn(e){let{x:t,y:n,rects:{floating:r},elements:{floating:s},platform:i,strategy:u,placement:a}=e,l=ce(s),g=l.getComputedStyle(s);if(!(g.transitionDuration!=="0s"&&g.transitionDuration!==""))return{x:t,y:n,data:Y};let p=await i.getOffsetParent?.(s),d={width:0,height:0};if(u==="fixed"&&l?.visualViewport)d={width:l.visualViewport.width,height:l.visualViewport.height};else if(p===l){let C=B(s);d={width:C.documentElement.clientWidth,height:C.documentElement.clientHeight}}else await i.isElement?.(p)&&(d=await i.getDimensions(p));let f=de(a),y=t,h=n;f==="left"&&(y=d.width-(t+r.width)),f==="top"&&(h=d.height-(n+r.height));let b=f==="left"?"right":Y.sideX,V=f==="top"?"bottom":Y.sideY;return{x:y,y:h,data:{sideX:b,sideY:V}}}};var I=P(_e(),1);var $t={activationDirection:o(e=>e?{"data-activation-direction":e}:null,"activationDirection")};function _t(e){let{store:t,side:n,children:r}=e,s=j(),i=t.useState("activeTriggerElement"),u=t.useState("activeTriggerId"),a=t.useState("open"),l=t.useState("payload"),g=t.useState("mounted"),R=t.useState("popupElement"),p=t.useState("positionerElement"),d=we(a?i:null),f=We(u,l),y=c.useRef(null),[h,b]=c.useState(null),[V,C]=c.useState(null),S=c.useRef(null),O=c.useRef(null),q=H(S,!0),L=U(),T=c.useRef(null),[w,$]=c.useState(null),[A,X]=c.useState(!1);v(()=>(t.set("adaptiveOrigin",Oe),()=>{t.set("adaptiveOrigin",void 0)}),[t]);let Ie=x(()=>{S.current?.style.setProperty("animation","none"),S.current?.style.setProperty("transition","none"),O.current?.style.setProperty("display","none")}),Ve=x(m=>{S.current?.style.removeProperty("animation"),S.current?.style.removeProperty("transition"),O.current?.style.removeProperty("display"),m&&$(m)}),re=x(()=>{T.current?.abort();let m=new AbortController;T.current=m,q(()=>{b(null),$(null),y.current=null},m.signal)}),J=c.useRef(null);v(()=>{(!a||!g)&&(J.current=null)},[a,g]),v(()=>{if(i&&d&&i!==d&&J.current!==i&&y.current){b(y.current),X(!0);let m=He(d,i);C(m),J.current=i}},[i,d]),v(()=>{h!=null&&(T.current?.abort(),X(!0),L.request(()=>{Ae.flushSync(()=>{X(!1)}),re()}))},[f,h,re,L]),v(()=>{let m=S.current;if(!m)return;let se=B(m).createElement("div");for(let $e of Array.from(m.childNodes))se.appendChild($e.cloneNode(!0));y.current=se});let ie=h!=null,z;ie?z=(0,I.jsxs)(c.Fragment,{children:[(0,I.jsx)("div",{"data-previous":!0,inert:Re(!0),ref:O,style:{...w?{"--popup-width":`${w.width}px`,"--popup-height":`${w.height}px`}:null,position:"absolute"},"data-ending-style":A?void 0:""},"previous"),(0,I.jsx)("div",{"data-current":!0,ref:S,"data-starting-style":A?"":void 0,children:r},f)]}):z=(0,I.jsx)("div",{"data-current":!0,ref:S,children:r},f),v(()=>{let m=O.current;!m||!h||m.replaceChildren(...Array.from(h.childNodes))},[h]),Ce({popupElement:R,positionerElement:p,mounted:g,content:l,onMeasureLayout:Ie,onMeasureLayoutComplete:Ve,side:n,direction:s});let Le={activationDirection:Ue(V),transitioning:ie};return{children:z,state:Le}}o(_t,"usePopupViewport");function Ue(e){if(e)return`${Te(e.horizontal,5,"right","left")} ${Te(e.vertical,5,"down","up")}`}o(Ue,"getActivationDirection");function Te(e,t,n,r){return e>t?n:e<-t?r:""}o(Te,"getValueWithTolerance");function He(e,t){let n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),s={x:n.left+n.width/2,y:n.top+n.height/2},i={x:r.left+r.width/2,y:r.top+r.height/2};return{horizontal:i.x-s.x,vertical:i.y-s.y}}o(He,"calculateRelativePosition");function We(e,t){let[n,r]=c.useState(0),s=c.useRef(e),i=c.useRef(t),u=c.useRef(!1);return v(()=>{let a=s.current,l=i.current,g=e!==a,R=t!==l;g?(r(p=>p+1),u.current=!R):u.current&&R&&(r(p=>p+1),u.current=!1),s.current=e,i.current=t},[e,t]),`${e??"current"}-${n}`}o(We,"usePopupContentKey");function De(){return new W({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:new ve,floatingId:void 0,syncOnly:!1,nested:!1,onOpenChange:void 0})}o(De,"getEmptyRootContext");function qt(){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:De(),floatingId:void 0,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:D,inactiveTriggerProps:D,popupProps:D}}o(qt,"createInitialPopupStoreState");function Xt(e,t,n=!1){return new W({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:t,syncOnly:!0,nested:n,onOpenChange:void 0})}o(Xt,"createPopupFloatingRootContext");var _=o(e=>e.triggerIdProp??e.activeTriggerId,"activeTriggerIdSelector"),oe=o(e=>e.openProp??e.open,"openSelector"),Ne=o(e=>(e.popupElement?.id??e.floatingId)||void 0,"popupIdSelector");function Fe(e,t){return t!==void 0&&oe(e)&&_(e)===t}o(Fe,"triggerOwnsOpenPopup");function je(e,t){return Fe(e,t)?!0:t!==void 0&&oe(e)&&_(e)==null&&e.triggerCount===1}o(je,"triggerOwnsOpenPopupOrIsOnlyTrigger");var Jt={open:oe,mounted:o(e=>e.mounted,"mounted"),transitionStatus:o(e=>e.transitionStatus,"transitionStatus"),floatingRootContext:o(e=>e.floatingRootContext,"floatingRootContext"),triggerCount:o(e=>e.triggerCount,"triggerCount"),preventUnmountingOnClose:o(e=>e.preventUnmountingOnClose,"preventUnmountingOnClose"),payload:o(e=>e.payload,"payload"),activeTriggerId:_,activeTriggerElement:o(e=>e.mounted?e.activeTriggerElement:null,"activeTriggerElement"),popupId:Ne,isTriggerActive:o((e,t)=>t!==void 0&&_(e)===t,"isTriggerActive"),isOpenedByTrigger:o((e,t)=>Fe(e,t),"isOpenedByTrigger"),isMountedByTrigger:o((e,t)=>t!==void 0&&_(e)===t&&e.mounted,"isMountedByTrigger"),triggerProps:o((e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps,"triggerProps"),triggerPopupId:o((e,t)=>je(e,t)?Ne(e):void 0,"triggerPopupId"),popupProps:o(e=>e.popupProps,"popupProps"),popupElement:o(e=>e.popupElement,"popupElement"),positionerElement:o(e=>e.positionerElement,"positionerElement")};var Me=class extends Se{static{o(this,"NullStore")}setState(t){}update(t){}set(t,n){}notifyAll(){}};export{Pe as a,qt as b,Xt as c,Jt as d,ze as e,Me as f,ot as g,$t as h,_t as i};
1
+ import{H as Se,I as W,X as ve,c as Q,d as de,f as me,g as he,h as ge,i as ye,ka as Re,la as Y,ua as we}from"./chunk-C3TOZ4LG.js";import{b as j}from"./chunk-D27D4UUI.js";import{E as U,G as H,N,O as F,o as fe}from"./chunk-46ZJ3TM4.js";import{a as ke}from"./chunk-Y6CXU7T4.js";import{a as ae}from"./chunk-4L4WTGN5.js";import{a as v,c as x,e as ce,i as le,r as pe,w as B}from"./chunk-5GFSKIB2.js";import{c as ue,g as E,i as D}from"./chunk-25NFR6EB.js";import{a as o,d as P,e as k,g as _e}from"./chunk-YKXDMIHQ.js";var Pe=class{static{o(this,"BasePopupHandle")}attachedStores=[];attachedStoreValue=null;storeListeners=new Set;constructor(t,n,r=!0){this.fallbackStore=t,this.componentName=n,this.throwOnMissingTrigger=r}get attachedStore(){return this.attachedStoreValue}get store(){return this.attachedStoreValue??this.fallbackStore}get serverStore(){return this.fallbackStore}subscribeStore(t){return this.storeListeners.add(t),()=>{this.storeListeners.delete(t)}}attachStore(t){return this.attachedStores.push(t),this.setActiveStore(t),()=>{let n=this.attachedStores.lastIndexOf(t);n!==-1&&this.attachedStores.splice(n,1),this.setActiveStore(this.attachedStores[this.attachedStores.length-1]??null)}}setActiveStore(t){this.attachedStoreValue!==t&&(this.attachedStoreValue=t,this.storeListeners.forEach(n=>{n()}))}openByTrigger(t){let n=this.attachedStore;if(n===null)return;let r;if(t){for(let s=this.attachedStores.length-1;s>=0&&!r;s-=1)r=this.attachedStores[s].context.triggerElements.getById(t);r??=this.fallbackStore.context.triggerElements.getById(t)}if(t&&!r&&this.throwOnMissingTrigger)throw new Error(ue(99,this.componentName,t,this.componentName));n.setOpen(!0,F(N.imperativeAction,void 0,r))}closePopup(){let t=this.attachedStore;t!==null&&t.setOpen(!1,F(N.imperativeAction))}};var Z=P(k(),1),Ee=P(ke(),1);function ze(e){let t=Z.useCallback(r=>e===void 0?E:e.subscribeStore(r),[e]),n=Z.useCallback(()=>e===void 0?void 0:e.store,[e]);return(0,Ee.useSyncExternalStore)(t,n,()=>e?.serverStore)}o(ze,"usePopupHandleStore");var be=P(k(),1),ee=P(ae(),1);function ot(e,t){let n=be.useRef(null);function r(i){ee.flushSync(()=>{e.setOpen(!1,F(N.focusOut,i.nativeEvent,i.currentTarget))}),ge(n.current)?.focus()}o(r,"handlePreFocusGuardFocus");function s(i){let u=e.select("positionerElement");if(u&&ye(i,u))e.context.beforeContentFocusGuardRef.current?.focus();else{ee.flushSync(()=>{e.setOpen(!1,F(N.focusOut,i.nativeEvent,i.currentTarget))});let a=he(e.context.triggerFocusTargetRef.current||t.current);for(;a!==null&&fe(u,a);){let l=a;if(a=me(a),a===l)break}a?.focus()}}return o(s,"handleFocusTargetFocus"),{preFocusGuardRef:n,handlePreFocusGuardFocus:r,handleFocusTargetFocus:s}}o(ot,"useTriggerFocusGuards");var c=P(k(),1),Ae=P(ae(),1);var M=P(k(),1);function te(e){let t=pe(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,s=le(e),i=s?e.offsetWidth:n,u=s?e.offsetHeight:r;return(Q(n)!==i||Q(r)!==u)&&(n=i,r=u),{width:n,height:r}}o(te,"getCssDimensions");function Ce(e){let{popupElement:t,positionerElement:n,content:r,mounted:s,onMeasureLayout:i,onMeasureLayoutComplete:u,side:a,direction:l}=e,g=H(t,!0),R=U(),p=M.useRef(null),d=M.useRef(!0),f=M.useRef(E),y=x(i),h=x(u),b=M.useMemo(()=>Be(a,l),[a,l]);v(()=>{if(!s){f.current=E,d.current=!0,p.current=null;return}if(!t||!n)return;f.current=xe(t,b),ne(t,"auto");let V=K(t,"position","static"),C=K(t,"transform","none"),S=K(t,"scale","1"),O=xe(n,{"--available-width":"max-content","--available-height":"max-content"});function q(){V(),C(),O()}o(q,"restoreMeasurementOverrides");function L(){q(),S()}if(o(L,"restoreMeasurementOverridesIncludingScale"),y?.(),d.current||p.current===null){G(n,"max-content");let A=te(t);return p.current=A,G(n,A),L(),h?.(null,A),d.current=!1,()=>{f.current(),f.current=E}}G(n,"max-content");let T=p.current,w=te(t);p.current=w,ne(t,T),L(),h?.(T,w),G(n,w);let $=new AbortController;return R.request(()=>{ne(t,w),g(()=>{t.style.setProperty("--popup-width","auto"),t.style.setProperty("--popup-height","auto")},$.signal)}),()=>{$.abort(),R.cancel(),f.current(),f.current=E}},[r,t,n,g,R,s,y,h,b])}o(Ce,"usePopupAutoResize");function Be(e,t){let n=e==="top",r=e==="left"||e===(t==="rtl"?"inline-end":"inline-start");return!n&&!r?D:{position:"absolute",[n?"bottom":"top"]:"0",[r?"right":"left"]:"0"}}o(Be,"getPopupAnchoringStyles");function K(e,t,n){let r=e.style.getPropertyValue(t);return e.style.setProperty(t,n),()=>{e.style.setProperty(t,r)}}o(K,"overrideElementStyle");function xe(e,t){let n=[];for(let[r,s]of Object.entries(t))n.push(K(e,r,s));return n.length?()=>{n.forEach(r=>r())}:E}o(xe,"applyElementStyles");function ne(e,t){let n=t==="auto"?"auto":`${t.width}px`,r=t==="auto"?"auto":`${t.height}px`;e.style.setProperty("--popup-width",n),e.style.setProperty("--popup-height",r)}o(ne,"setPopupCssSize");function G(e,t){let n=t==="max-content"?"max-content":`${t.width}px`,r=t==="max-content"?"max-content":`${t.height}px`;e.style.setProperty("--positioner-width",n),e.style.setProperty("--positioner-height",r)}o(G,"setPositionerCssSize");var Oe={name:"adaptiveOrigin",async fn(e){let{x:t,y:n,rects:{floating:r},elements:{floating:s},platform:i,strategy:u,placement:a}=e,l=ce(s),g=l.getComputedStyle(s);if(!(g.transitionDuration!=="0s"&&g.transitionDuration!==""))return{x:t,y:n,data:Y};let p=await i.getOffsetParent?.(s),d={width:0,height:0};if(u==="fixed"&&l?.visualViewport)d={width:l.visualViewport.width,height:l.visualViewport.height};else if(p===l){let C=B(s);d={width:C.documentElement.clientWidth,height:C.documentElement.clientHeight}}else await i.isElement?.(p)&&(d=await i.getDimensions(p));let f=de(a),y=t,h=n;f==="left"&&(y=d.width-(t+r.width)),f==="top"&&(h=d.height-(n+r.height));let b=f==="left"?"right":Y.sideX,V=f==="top"?"bottom":Y.sideY;return{x:y,y:h,data:{sideX:b,sideY:V}}}};var I=P(_e(),1);var $t={activationDirection:o(e=>e?{"data-activation-direction":e}:null,"activationDirection")};function _t(e){let{store:t,side:n,children:r}=e,s=j(),i=t.useState("activeTriggerElement"),u=t.useState("activeTriggerId"),a=t.useState("open"),l=t.useState("payload"),g=t.useState("mounted"),R=t.useState("popupElement"),p=t.useState("positionerElement"),d=we(a?i:null),f=We(u,l),y=c.useRef(null),[h,b]=c.useState(null),[V,C]=c.useState(null),S=c.useRef(null),O=c.useRef(null),q=H(S,!0),L=U(),T=c.useRef(null),[w,$]=c.useState(null),[A,X]=c.useState(!1);v(()=>(t.set("adaptiveOrigin",Oe),()=>{t.set("adaptiveOrigin",void 0)}),[t]);let Ie=x(()=>{S.current?.style.setProperty("animation","none"),S.current?.style.setProperty("transition","none"),O.current?.style.setProperty("display","none")}),Ve=x(m=>{S.current?.style.removeProperty("animation"),S.current?.style.removeProperty("transition"),O.current?.style.removeProperty("display"),m&&$(m)}),re=x(()=>{T.current?.abort();let m=new AbortController;T.current=m,q(()=>{b(null),$(null),y.current=null},m.signal)}),J=c.useRef(null);v(()=>{(!a||!g)&&(J.current=null)},[a,g]),v(()=>{if(i&&d&&i!==d&&J.current!==i&&y.current){b(y.current),X(!0);let m=He(d,i);C(m),J.current=i}},[i,d]),v(()=>{h!=null&&(T.current?.abort(),X(!0),L.request(()=>{Ae.flushSync(()=>{X(!1)}),re()}))},[f,h,re,L]),v(()=>{let m=S.current;if(!m)return;let se=B(m).createElement("div");for(let $e of Array.from(m.childNodes))se.appendChild($e.cloneNode(!0));y.current=se});let ie=h!=null,z;ie?z=(0,I.jsxs)(c.Fragment,{children:[(0,I.jsx)("div",{"data-previous":!0,inert:Re(!0),ref:O,style:{...w?{"--popup-width":`${w.width}px`,"--popup-height":`${w.height}px`}:null,position:"absolute"},"data-ending-style":A?void 0:""},"previous"),(0,I.jsx)("div",{"data-current":!0,ref:S,"data-starting-style":A?"":void 0,children:r},f)]}):z=(0,I.jsx)("div",{"data-current":!0,ref:S,children:r},f),v(()=>{let m=O.current;!m||!h||m.replaceChildren(...Array.from(h.childNodes))},[h]),Ce({popupElement:R,positionerElement:p,mounted:g,content:l,onMeasureLayout:Ie,onMeasureLayoutComplete:Ve,side:n,direction:s});let Le={activationDirection:Ue(V),transitioning:ie};return{children:z,state:Le}}o(_t,"usePopupViewport");function Ue(e){if(e)return`${Te(e.horizontal,5,"right","left")} ${Te(e.vertical,5,"down","up")}`}o(Ue,"getActivationDirection");function Te(e,t,n,r){return e>t?n:e<-t?r:""}o(Te,"getValueWithTolerance");function He(e,t){let n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),s={x:n.left+n.width/2,y:n.top+n.height/2},i={x:r.left+r.width/2,y:r.top+r.height/2};return{horizontal:i.x-s.x,vertical:i.y-s.y}}o(He,"calculateRelativePosition");function We(e,t){let[n,r]=c.useState(0),s=c.useRef(e),i=c.useRef(t),u=c.useRef(!1);return v(()=>{let a=s.current,l=i.current,g=e!==a,R=t!==l;g?(r(p=>p+1),u.current=!R):u.current&&R&&(r(p=>p+1),u.current=!1),s.current=e,i.current=t},[e,t]),`${e??"current"}-${n}`}o(We,"usePopupContentKey");function De(){return new W({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:new ve,floatingId:void 0,syncOnly:!1,nested:!1,onOpenChange:void 0})}o(De,"getEmptyRootContext");function qt(){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:De(),floatingId:void 0,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:D,inactiveTriggerProps:D,popupProps:D}}o(qt,"createInitialPopupStoreState");function Xt(e,t,n=!1){return new W({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:t,syncOnly:!0,nested:n,onOpenChange:void 0})}o(Xt,"createPopupFloatingRootContext");var _=o(e=>e.triggerIdProp??e.activeTriggerId,"activeTriggerIdSelector"),oe=o(e=>e.openProp??e.open,"openSelector"),Ne=o(e=>(e.popupElement?.id??e.floatingId)||void 0,"popupIdSelector");function Fe(e,t){return t!==void 0&&oe(e)&&_(e)===t}o(Fe,"triggerOwnsOpenPopup");function je(e,t){return Fe(e,t)?!0:t!==void 0&&oe(e)&&_(e)==null&&e.triggerCount===1}o(je,"triggerOwnsOpenPopupOrIsOnlyTrigger");var Jt={open:oe,mounted:o(e=>e.mounted,"mounted"),transitionStatus:o(e=>e.transitionStatus,"transitionStatus"),floatingRootContext:o(e=>e.floatingRootContext,"floatingRootContext"),triggerCount:o(e=>e.triggerCount,"triggerCount"),preventUnmountingOnClose:o(e=>e.preventUnmountingOnClose,"preventUnmountingOnClose"),payload:o(e=>e.payload,"payload"),activeTriggerId:_,activeTriggerElement:o(e=>e.mounted?e.activeTriggerElement:null,"activeTriggerElement"),popupId:Ne,isTriggerActive:o((e,t)=>t!==void 0&&_(e)===t,"isTriggerActive"),isOpenedByTrigger:o((e,t)=>Fe(e,t),"isOpenedByTrigger"),isMountedByTrigger:o((e,t)=>t!==void 0&&_(e)===t&&e.mounted,"isMountedByTrigger"),triggerProps:o((e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps,"triggerProps"),triggerPopupId:o((e,t)=>je(e,t)?Ne(e):void 0,"triggerPopupId"),popupProps:o(e=>e.popupProps,"popupProps"),popupElement:o(e=>e.popupElement,"popupElement"),positionerElement:o(e=>e.positionerElement,"positionerElement")};var Me=class extends Se{static{o(this,"NullStore")}setState(t){}update(t){}set(t,n){}notifyAll(){}};export{Pe as a,qt as b,Xt as c,Jt as d,ze as e,Me as f,ot as g,$t as h,_t as i};
@@ -1 +1 @@
1
- import{m as u,n as d}from"./chunk-EGSG64TS.js";import"./chunk-JV7KTJPY.js";import"./chunk-DPNEFSEC.js";import"./chunk-INQICZYC.js";import"./chunk-TFMQSCGC.js";import"./chunk-3KLX63D7.js";import{a as c,d as m,f as y,g as b}from"./chunk-R5ZTCHCE.js";var h=m(y(),1);var n=m(b(),1);var p={value:{colors:{dark:["var(--foreground)"],light:["var(--foreground)"]},label:""}},_=c(o=>{let e=(0,h.c)(6),{data:i}=o,a,r;if(e[0]!==i){r=Symbol.for("react.early_return_sentinel");e:{let f=i.slice(-16);if(f.length<3){r=null;break e}a=f.map(g)}e[0]=i,e[1]=a,e[2]=r}else a=e[1],r=e[2];if(r!==Symbol.for("react.early_return_sentinel"))return r;let s=a,t;e[3]===Symbol.for("react.memo_cache_sentinel")?(t=(0,n.jsx)(d,{dataKey:"value"}),e[3]=t):t=e[3];let l;return e[4]!==s?(l=(0,n.jsx)("div",{"aria-hidden":"true",className:"h-8 w-28",children:(0,n.jsx)(u,{animationType:"none",barCategoryGap:1,className:"h-8 w-full",config:p,data:s,children:t})}),e[4]=s,e[5]=l):l=e[5],l},"b");function g(o,e){return{index:e,value:o}}c(g,"h");export{_ as default};
1
+ import{m as u,n as d}from"./chunk-XSLMHPP2.js";import"./chunk-5JDWLCSH.js";import"./chunk-PYT4RZJH.js";import"./chunk-Y6CXU7T4.js";import"./chunk-4L4WTGN5.js";import"./chunk-T2IE5GKA.js";import{a as c,d as m,f as y,g as b}from"./chunk-YKXDMIHQ.js";var h=m(y(),1);var n=m(b(),1);var p={value:{colors:{dark:["var(--foreground)"],light:["var(--foreground)"]},label:""}},_=c(o=>{let e=(0,h.c)(6),{data:i}=o,a,r;if(e[0]!==i){r=Symbol.for("react.early_return_sentinel");e:{let f=i.slice(-16);if(f.length<3){r=null;break e}a=f.map(g)}e[0]=i,e[1]=a,e[2]=r}else a=e[1],r=e[2];if(r!==Symbol.for("react.early_return_sentinel"))return r;let s=a,t;e[3]===Symbol.for("react.memo_cache_sentinel")?(t=(0,n.jsx)(d,{dataKey:"value"}),e[3]=t):t=e[3];let l;return e[4]!==s?(l=(0,n.jsx)("div",{"aria-hidden":"true",className:"h-8 w-28",children:(0,n.jsx)(u,{animationType:"none",barCategoryGap:1,className:"h-8 w-full",config:p,data:s,children:t})}),e[4]=s,e[5]=l):l=e[5],l},"b");function g(o,e){return{index:e,value:o}}c(g,"h");export{_ as default};
@@ -1 +1 @@
1
- import{a as $}from"./chunk-QHQTOESO.js";import{a as b}from"./chunk-5U6757U7.js";import"./chunk-PZ4QDWTI.js";import"./chunk-FUVCG23X.js";import"./chunk-F7JOSNAT.js";import{a as u}from"./chunk-DZGOHOOE.js";import{c as p}from"./chunk-4U5PYZLE.js";import"./chunk-CG5OTGTR.js";import"./chunk-RCZTUWG3.js";import{a as y,b as w,c as j,d as h,e as c,f as i}from"./chunk-L4EZAHCD.js";import{a as d,e as l}from"./chunk-IYWVSMAY.js";import{d as k}from"./chunk-6ZPTNC34.js";import"./chunk-3KLX63D7.js";import{a as o,d as I,g as T,i as x}from"./chunk-R5ZTCHCE.js";var e=I(T(),1);var m={clean:"text-emerald-600 dark:text-emerald-400",exempt:"text-muted-foreground",failing:"text-red-600 dark:text-red-400",warned:"text-amber-600 dark:text-amber-400"},A={"at-risk":"text-red-600 dark:text-red-400",excellent:"text-emerald-600 dark:text-emerald-400",good:"text-emerald-600 dark:text-emerald-400","needs-work":"text-amber-600 dark:text-amber-400"},C=o((r,a)=>`exempt: ${r.exemptReason===void 0||r.exemptReason===""?a:r.exemptReason}`,"E"),E=o(r=>r.toSorted((a,n)=>a.coverage==="clean"&&n.coverage!=="clean"?1:n.coverage==="clean"&&a.coverage!=="clean"?-1:a.score-n.score),"S"),Y=o(({testId:r="advisor-health"})=>{let a=k(),n=p(u.getAdvisories,{},{live:!0}),g=p(u.getAdvisorProcedures,{},{live:!0}),f=n.data?.advisories??null,N=g.data?.procedures??null,t=f===null||N===null?null:$(N,f),v=g.error??n.error;if(v!==null)return(0,e.jsx)(b,{error:v,testId:`${r}-error`});if(t===null)return(0,e.jsx)(d,{children:(0,e.jsx)(l,{className:"py-8 text-center text-muted-foreground","data-testid":`${r}-loading`,children:a("Loading\u2026")})});let R=E(t.procedures);return(0,e.jsxs)("div",{className:"space-y-4","data-testid":r,children:[(0,e.jsx)(d,{children:(0,e.jsxs)(l,{className:"flex flex-wrap items-baseline gap-x-6 gap-y-2 py-6",children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("span",{className:x("text-4xl font-semibold tabular-nums",A[t.grade]),"data-testid":`${r}-score`,children:t.score}),(0,e.jsx)("span",{className:"text-muted-foreground text-lg",children:"/100"})]}),(0,e.jsx)("span",{className:x("text-sm font-medium uppercase tracking-wide",A[t.grade]),"data-testid":`${r}-grade`,children:t.grade}),(0,e.jsxs)("div",{className:"text-muted-foreground flex gap-4 text-sm tabular-nums","data-testid":`${r}-summary`,children:[(0,e.jsxs)("span",{className:m.clean,children:[t.summary.clean," ",a("clean")]}),(0,e.jsxs)("span",{className:m.warned,children:[t.summary.warned," ",a("warned")]}),(0,e.jsxs)("span",{className:m.failing,children:[t.summary.failing," ",a("failing")]}),(0,e.jsxs)("span",{className:m.exempt,children:[t.summary.exempt," ",a("exempt")]})]})]})}),t.project.checks.length>0&&(0,e.jsx)(d,{children:(0,e.jsxs)(l,{className:"py-4 text-sm","data-testid":`${r}-project`,children:[(0,e.jsxs)("span",{className:"font-medium",children:[a("Schema & config")," ",t.project.score,"/100"]}),(0,e.jsxs)("span",{className:"text-muted-foreground",children:[" \u2014 ",t.project.checks.map(s=>s.name).join(", ")]})]})}),(0,e.jsx)(d,{children:(0,e.jsx)(l,{className:"p-0",children:(0,e.jsxs)(y,{children:[(0,e.jsx)(w,{children:(0,e.jsxs)(h,{children:[(0,e.jsx)(c,{className:"w-20",children:a("Score")}),(0,e.jsx)(c,{children:a("Procedure")}),(0,e.jsx)(c,{className:"w-32",children:a("Kind")}),(0,e.jsx)(c,{children:a("Rules fired")})]})}),(0,e.jsx)(j,{children:R.map(s=>(0,e.jsxs)(h,{"data-testid":`${r}-row`,children:[(0,e.jsx)(i,{className:x("tabular-nums font-medium",m[s.coverage]),children:s.coverage==="exempt"?"\u2014":s.score}),(0,e.jsx)(i,{className:"font-mono text-xs",children:s.id}),(0,e.jsxs)(i,{className:"text-muted-foreground text-xs",children:[s.visibility," ",s.kind,s.sensitivity.level==="high"&&(0,e.jsx)("span",{className:"ml-1 text-amber-600 dark:text-amber-400",children:a("sensitive")})]}),(0,e.jsx)(i,{className:"text-muted-foreground text-xs",children:s.coverage==="exempt"?C(s,a("no reason given")):s.checks.map(S=>S.name).join(", ")})]},s.id))})]})})})]})},"Y");export{Y as default};
1
+ import{a as $}from"./chunk-7EYQVAUQ.js";import{a as b}from"./chunk-JAZCU2PP.js";import"./chunk-ULIQFBZU.js";import"./chunk-OOESPRIZ.js";import"./chunk-35DM4JJG.js";import{a as u}from"./chunk-CXNZVJ3S.js";import{c as p}from"./chunk-ECQTVV2J.js";import"./chunk-JBIN7W2B.js";import"./chunk-FSRSK4LY.js";import{a as y,b as w,c as j,d as h,e as c,f as i}from"./chunk-HEAQVSNS.js";import{a as d,e as l}from"./chunk-WUWBZPUK.js";import{d as k}from"./chunk-Y4Q25F6X.js";import"./chunk-T2IE5GKA.js";import{a as o,d as I,g as T,i as x}from"./chunk-YKXDMIHQ.js";var e=I(T(),1);var m={clean:"text-emerald-600 dark:text-emerald-400",exempt:"text-muted-foreground",failing:"text-red-600 dark:text-red-400",warned:"text-amber-600 dark:text-amber-400"},A={"at-risk":"text-red-600 dark:text-red-400",excellent:"text-emerald-600 dark:text-emerald-400",good:"text-emerald-600 dark:text-emerald-400","needs-work":"text-amber-600 dark:text-amber-400"},C=o((r,a)=>`exempt: ${r.exemptReason===void 0||r.exemptReason===""?a:r.exemptReason}`,"E"),E=o(r=>r.toSorted((a,n)=>a.coverage==="clean"&&n.coverage!=="clean"?1:n.coverage==="clean"&&a.coverage!=="clean"?-1:a.score-n.score),"S"),Y=o(({testId:r="advisor-health"})=>{let a=k(),n=p(u.getAdvisories,{},{live:!0}),g=p(u.getAdvisorProcedures,{},{live:!0}),f=n.data?.advisories??null,N=g.data?.procedures??null,t=f===null||N===null?null:$(N,f),v=g.error??n.error;if(v!==null)return(0,e.jsx)(b,{error:v,testId:`${r}-error`});if(t===null)return(0,e.jsx)(d,{children:(0,e.jsx)(l,{className:"py-8 text-center text-muted-foreground","data-testid":`${r}-loading`,children:a("Loading\u2026")})});let R=E(t.procedures);return(0,e.jsxs)("div",{className:"space-y-4","data-testid":r,children:[(0,e.jsx)(d,{children:(0,e.jsxs)(l,{className:"flex flex-wrap items-baseline gap-x-6 gap-y-2 py-6",children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("span",{className:x("text-4xl font-semibold tabular-nums",A[t.grade]),"data-testid":`${r}-score`,children:t.score}),(0,e.jsx)("span",{className:"text-muted-foreground text-lg",children:"/100"})]}),(0,e.jsx)("span",{className:x("text-sm font-medium uppercase tracking-wide",A[t.grade]),"data-testid":`${r}-grade`,children:t.grade}),(0,e.jsxs)("div",{className:"text-muted-foreground flex gap-4 text-sm tabular-nums","data-testid":`${r}-summary`,children:[(0,e.jsxs)("span",{className:m.clean,children:[t.summary.clean," ",a("clean")]}),(0,e.jsxs)("span",{className:m.warned,children:[t.summary.warned," ",a("warned")]}),(0,e.jsxs)("span",{className:m.failing,children:[t.summary.failing," ",a("failing")]}),(0,e.jsxs)("span",{className:m.exempt,children:[t.summary.exempt," ",a("exempt")]})]})]})}),t.project.checks.length>0&&(0,e.jsx)(d,{children:(0,e.jsxs)(l,{className:"py-4 text-sm","data-testid":`${r}-project`,children:[(0,e.jsxs)("span",{className:"font-medium",children:[a("Schema & config")," ",t.project.score,"/100"]}),(0,e.jsxs)("span",{className:"text-muted-foreground",children:[" \u2014 ",t.project.checks.map(s=>s.name).join(", ")]})]})}),(0,e.jsx)(d,{children:(0,e.jsx)(l,{className:"p-0",children:(0,e.jsxs)(y,{children:[(0,e.jsx)(w,{children:(0,e.jsxs)(h,{children:[(0,e.jsx)(c,{className:"w-20",children:a("Score")}),(0,e.jsx)(c,{children:a("Procedure")}),(0,e.jsx)(c,{className:"w-32",children:a("Kind")}),(0,e.jsx)(c,{children:a("Rules fired")})]})}),(0,e.jsx)(j,{children:R.map(s=>(0,e.jsxs)(h,{"data-testid":`${r}-row`,children:[(0,e.jsx)(i,{className:x("tabular-nums font-medium",m[s.coverage]),children:s.coverage==="exempt"?"\u2014":s.score}),(0,e.jsx)(i,{className:"font-mono text-xs",children:s.id}),(0,e.jsxs)(i,{className:"text-muted-foreground text-xs",children:[s.visibility," ",s.kind,s.sensitivity.level==="high"&&(0,e.jsx)("span",{className:"ml-1 text-amber-600 dark:text-amber-400",children:a("sensitive")})]}),(0,e.jsx)(i,{className:"text-muted-foreground text-xs",children:s.coverage==="exempt"?C(s,a("no reason given")):s.checks.map(S=>S.name).join(", ")})]},s.id))})]})})})]})},"Y");export{Y as default};
@@ -1 +1 @@
1
- import{a as O}from"./chunk-METRMDIQ.js";import{a as C}from"./chunk-NXXGISFB.js";import{b as v}from"./chunk-SPDZUX4P.js";import"./chunk-7PIHTTND.js";import{a as k}from"./chunk-5U6757U7.js";import"./chunk-PZ4QDWTI.js";import"./chunk-FUVCG23X.js";import"./chunk-F7JOSNAT.js";import{a as S}from"./chunk-DZGOHOOE.js";import{c as b}from"./chunk-4U5PYZLE.js";import"./chunk-CG5OTGTR.js";import"./chunk-RCZTUWG3.js";import{a as c}from"./chunk-UANVABQG.js";import{a as w,b as T,c as A,d as f,e as s,f as l}from"./chunk-L4EZAHCD.js";import{a as y,e as N}from"./chunk-IYWVSMAY.js";import{d as p}from"./chunk-6ZPTNC34.js";import"./chunk-3KLX63D7.js";import{a as n,d as x,e as R,g as V}from"./chunk-R5ZTCHCE.js";var F=x(R(),1);var e=x(V(),1);var $=n(a=>{let t=a.trim();if(t.length===0)return{context:void 0,error:null};try{let o=JSON.parse(t);return o===null||typeof o!="object"||Array.isArray(o)?{context:void 0,error:"Targeting context must be a JSON object."}:{context:o,error:null}}catch{return{context:void 0,error:"Targeting context is not valid JSON."}}},"H"),q='{ "targetingKey": "user-123", "plan": "premium" }',D=n(a=>a.type==="object"?JSON.stringify(a.value):String(a.value),"R"),Y=n(({initialShardKey:a=""})=>{let t=p(),[o,j]=(0,F.useState)(""),{context:g,error:m}=$(o),I=g===void 0?{}:{context:g},{data:i,error:J,errorSource:K,liveError:E}=b(S.listFlags,I,{live:!0,shardKey:a}),u=i!==void 0,L=i?.configured??!1,h=Array.isArray(i?.flags)?[...i.flags].toSorted((r,B)=>r.key.localeCompare(B.key)):[],d;return u&&!L?d=(0,e.jsx)(c,{description:t("No @lunora/flags provider is wired in this deployment. Add lunora/flags.ts with defineFlags({ provider }) to gate code paths on feature flags."),testId:"flags-unconfigured",title:t("No flags provider configured")}):u&&h.length===0?d=(0,e.jsx)(c,{description:t('A flags provider is configured, but no handler reads a flag yet. Call ctx.flags.boolean("key", false) in a query, mutation, or action.'),testId:"flags-empty",title:t("No flags read")}):d=(0,e.jsx)(y,{className:"overflow-hidden py-0",children:(0,e.jsx)(N,{className:"px-0",children:(0,e.jsxs)(w,{"data-testid":"flags-table",children:[(0,e.jsx)(T,{children:(0,e.jsxs)(f,{children:[(0,e.jsx)(s,{children:t("Key")}),(0,e.jsx)(s,{children:t("Type")}),(0,e.jsx)(s,{children:t("Value")}),(0,e.jsx)(s,{children:t("Reason")}),(0,e.jsx)(s,{children:t("Variant")})]})}),(0,e.jsx)(A,{children:h.map(r=>(0,e.jsxs)(f,{"data-testid":`flags-row-${r.key}`,children:[(0,e.jsx)(l,{className:"font-mono text-xs",children:r.key}),(0,e.jsx)(l,{className:"font-mono text-xs text-muted-foreground",children:r.type}),(0,e.jsx)(l,{className:"font-mono text-xs",children:D(r)}),(0,e.jsx)(l,{children:r.errorCode===void 0?(0,e.jsx)("span",{className:"font-mono text-xs text-muted-foreground",children:r.reason??"\u2014"}):(0,e.jsx)(v,{"data-testid":`flags-error-${r.key}`,variant:"destructive",children:r.errorCode})}),(0,e.jsx)(l,{className:"font-mono text-xs text-muted-foreground",children:r.variant??"\u2014"})]},r.key))})]})})}),(0,e.jsxs)("div",{className:"flex flex-col gap-6","data-testid":"lunora-flags-panel",children:[J!==null&&(0,e.jsx)(k,{error:K,testId:"flags-error"}),(0,e.jsx)("p",{className:"text-sm text-muted-foreground",children:t('Feature flags are read in code with ctx.flags.<type>("key", default). They evaluate through the OpenFeature provider configured in lunora/flags.ts; edit the targeting context below to see how each flag resolves for a given audience.')}),(0,e.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,e.jsx)(C,{htmlFor:"flags-targeting-context",children:t("Targeting context (JSON)")}),(0,e.jsx)(O,{className:"font-mono text-xs","data-testid":"flags-context-input",id:"flags-targeting-context",onChange:n(r=>{j(r.target.value)},"onChange"),placeholder:q,rows:3,value:o}),m!==null&&(0,e.jsx)("p",{className:"text-xs text-destructive","data-testid":"flags-context-error",role:"alert",children:t(m)}),E!==void 0&&(0,e.jsx)("p",{className:"text-xs text-amber-600 dark:text-amber-500","data-testid":"flags-live-error",role:"alert",children:t("Live updates unavailable; showing the last evaluation.")})]}),d]})},"W");export{Y as default};
1
+ import{a as O}from"./chunk-EA2JKR5D.js";import{a as C}from"./chunk-IMOHEGMV.js";import{b as v}from"./chunk-NCCAMFB6.js";import"./chunk-25NFR6EB.js";import{a as k}from"./chunk-JAZCU2PP.js";import"./chunk-ULIQFBZU.js";import"./chunk-OOESPRIZ.js";import"./chunk-35DM4JJG.js";import{a as S}from"./chunk-CXNZVJ3S.js";import{c as b}from"./chunk-ECQTVV2J.js";import"./chunk-JBIN7W2B.js";import"./chunk-FSRSK4LY.js";import{a as c}from"./chunk-FKVZRPV5.js";import{a as w,b as T,c as A,d as f,e as s,f as l}from"./chunk-HEAQVSNS.js";import{a as y,e as N}from"./chunk-WUWBZPUK.js";import{d as p}from"./chunk-Y4Q25F6X.js";import"./chunk-T2IE5GKA.js";import{a as n,d as x,e as R,g as V}from"./chunk-YKXDMIHQ.js";var F=x(R(),1);var e=x(V(),1);var $=n(a=>{let t=a.trim();if(t.length===0)return{context:void 0,error:null};try{let o=JSON.parse(t);return o===null||typeof o!="object"||Array.isArray(o)?{context:void 0,error:"Targeting context must be a JSON object."}:{context:o,error:null}}catch{return{context:void 0,error:"Targeting context is not valid JSON."}}},"H"),q='{ "targetingKey": "user-123", "plan": "premium" }',D=n(a=>a.type==="object"?JSON.stringify(a.value):String(a.value),"R"),Y=n(({initialShardKey:a=""})=>{let t=p(),[o,j]=(0,F.useState)(""),{context:g,error:m}=$(o),I=g===void 0?{}:{context:g},{data:i,error:J,errorSource:K,liveError:E}=b(S.listFlags,I,{live:!0,shardKey:a}),u=i!==void 0,L=i?.configured??!1,h=Array.isArray(i?.flags)?[...i.flags].toSorted((r,B)=>r.key.localeCompare(B.key)):[],d;return u&&!L?d=(0,e.jsx)(c,{description:t("No @lunora/flags provider is wired in this deployment. Add lunora/flags.ts with defineFlags({ provider }) to gate code paths on feature flags."),testId:"flags-unconfigured",title:t("No flags provider configured")}):u&&h.length===0?d=(0,e.jsx)(c,{description:t('A flags provider is configured, but no handler reads a flag yet. Call ctx.flags.boolean("key", false) in a query, mutation, or action.'),testId:"flags-empty",title:t("No flags read")}):d=(0,e.jsx)(y,{className:"overflow-hidden py-0",children:(0,e.jsx)(N,{className:"px-0",children:(0,e.jsxs)(w,{"data-testid":"flags-table",children:[(0,e.jsx)(T,{children:(0,e.jsxs)(f,{children:[(0,e.jsx)(s,{children:t("Key")}),(0,e.jsx)(s,{children:t("Type")}),(0,e.jsx)(s,{children:t("Value")}),(0,e.jsx)(s,{children:t("Reason")}),(0,e.jsx)(s,{children:t("Variant")})]})}),(0,e.jsx)(A,{children:h.map(r=>(0,e.jsxs)(f,{"data-testid":`flags-row-${r.key}`,children:[(0,e.jsx)(l,{className:"font-mono text-xs",children:r.key}),(0,e.jsx)(l,{className:"font-mono text-xs text-muted-foreground",children:r.type}),(0,e.jsx)(l,{className:"font-mono text-xs",children:D(r)}),(0,e.jsx)(l,{children:r.errorCode===void 0?(0,e.jsx)("span",{className:"font-mono text-xs text-muted-foreground",children:r.reason??"\u2014"}):(0,e.jsx)(v,{"data-testid":`flags-error-${r.key}`,variant:"destructive",children:r.errorCode})}),(0,e.jsx)(l,{className:"font-mono text-xs text-muted-foreground",children:r.variant??"\u2014"})]},r.key))})]})})}),(0,e.jsxs)("div",{className:"flex flex-col gap-6","data-testid":"lunora-flags-panel",children:[J!==null&&(0,e.jsx)(k,{error:K,testId:"flags-error"}),(0,e.jsx)("p",{className:"text-sm text-muted-foreground",children:t('Feature flags are read in code with ctx.flags.<type>("key", default). They evaluate through the OpenFeature provider configured in lunora/flags.ts; edit the targeting context below to see how each flag resolves for a given audience.')}),(0,e.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,e.jsx)(C,{htmlFor:"flags-targeting-context",children:t("Targeting context (JSON)")}),(0,e.jsx)(O,{className:"font-mono text-xs","data-testid":"flags-context-input",id:"flags-targeting-context",onChange:n(r=>{j(r.target.value)},"onChange"),placeholder:q,rows:3,value:o}),m!==null&&(0,e.jsx)("p",{className:"text-xs text-destructive","data-testid":"flags-context-error",role:"alert",children:t(m)}),E!==void 0&&(0,e.jsx)("p",{className:"text-xs text-amber-600 dark:text-amber-500","data-testid":"flags-live-error",role:"alert",children:t("Live updates unavailable; showing the last evaluation.")})]}),d]})},"W");export{Y as default};