@karan171996/metricflow 0.13.0 → 0.15.1

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 (204) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/app-path-routes-manifest.json +1 -0
  3. package/.next/build-manifest.json +7 -6
  4. package/.next/fallback-build-manifest.json +3 -3
  5. package/.next/next-server.js.nft.json +1 -1
  6. package/.next/prerender-manifest.json +9 -9
  7. package/.next/required-server-files.js +9 -5
  8. package/.next/required-server-files.json +9 -5
  9. package/.next/routes-manifest.json +6 -0
  10. package/.next/server/app/_global-error/page/build-manifest.json +4 -3
  11. package/.next/server/app/_global-error/page.js.nft.json +1 -1
  12. package/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  13. package/.next/server/app/_global-error.html +1 -1
  14. package/.next/server/app/_global-error.rsc +1 -1
  15. package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  16. package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  17. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  18. package/.next/server/app/_not-found/page/build-manifest.json +4 -3
  19. package/.next/server/app/_not-found/page.js +1 -1
  20. package/.next/server/app/_not-found/page.js.nft.json +1 -1
  21. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  22. package/.next/server/app/_not-found.html +2 -2
  23. package/.next/server/app/_not-found.rsc +23 -22
  24. package/.next/server/app/_not-found.segments/_full.segment.rsc +23 -22
  25. package/.next/server/app/_not-found.segments/_index.segment.rsc +12 -11
  26. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +7 -7
  27. package/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  28. package/.next/server/app/api/analyze/route.js +1 -1
  29. package/.next/server/app/api/analyze/route.js.nft.json +1 -1
  30. package/.next/server/app/api/connect/route.js +1 -1
  31. package/.next/server/app/api/connect/route.js.nft.json +1 -1
  32. package/.next/server/app/api/health/route.js.nft.json +1 -1
  33. package/.next/server/app/api/lighthouse/route/app-paths-manifest.json +3 -0
  34. package/.next/server/app/api/lighthouse/route/build-manifest.json +12 -0
  35. package/.next/server/app/api/lighthouse/route/server-reference-manifest.json +4 -0
  36. package/.next/server/app/api/lighthouse/route.js +7 -0
  37. package/.next/server/app/api/lighthouse/route.js.nft.json +1 -0
  38. package/.next/server/app/api/lighthouse/route_client-reference-manifest.js +3 -0
  39. package/.next/server/app/api/metrics/route.js +3 -1
  40. package/.next/server/app/api/metrics/route.js.nft.json +1 -1
  41. package/.next/server/app/api/settings/route.js.nft.json +1 -1
  42. package/.next/server/app/api/setup/ai/route.js +1 -1
  43. package/.next/server/app/api/setup/ai/route.js.nft.json +1 -1
  44. package/.next/server/app/api/setup/route.js +4 -3
  45. package/.next/server/app/api/setup/route.js.nft.json +1 -1
  46. package/.next/server/app/api/timings/route.js.nft.json +1 -1
  47. package/.next/server/app/connect/page/build-manifest.json +4 -3
  48. package/.next/server/app/connect/page.js +1 -1
  49. package/.next/server/app/connect/page.js.nft.json +1 -1
  50. package/.next/server/app/connect/page_client-reference-manifest.js +1 -1
  51. package/.next/server/app/connect.html +2 -2
  52. package/.next/server/app/connect.rsc +24 -23
  53. package/.next/server/app/connect.segments/_full.segment.rsc +24 -23
  54. package/.next/server/app/connect.segments/_index.segment.rsc +12 -11
  55. package/.next/server/app/connect.segments/_tree.segment.rsc +1 -1
  56. package/.next/server/app/connect.segments/connect/__PAGE__.segment.rsc +12 -12
  57. package/.next/server/app/icon.svg/route.js +1 -1
  58. package/.next/server/app/icon.svg/route.js.nft.json +1 -1
  59. package/.next/server/app/icon.svg.body +4 -2
  60. package/.next/server/app/index.html +2 -2
  61. package/.next/server/app/index.rsc +27 -26
  62. package/.next/server/app/index.segments/__PAGE__.segment.rsc +7 -7
  63. package/.next/server/app/index.segments/_full.segment.rsc +27 -26
  64. package/.next/server/app/index.segments/_index.segment.rsc +12 -11
  65. package/.next/server/app/index.segments/_tree.segment.rsc +1 -1
  66. package/.next/server/app/page/build-manifest.json +4 -3
  67. package/.next/server/app/page.js +1 -1
  68. package/.next/server/app/page.js.nft.json +1 -1
  69. package/.next/server/app/page_client-reference-manifest.js +1 -1
  70. package/.next/server/app/performance/[slug]/page/build-manifest.json +4 -3
  71. package/.next/server/app/performance/[slug]/page.js +3 -3
  72. package/.next/server/app/performance/[slug]/page.js.nft.json +1 -1
  73. package/.next/server/app/performance/[slug]/page_client-reference-manifest.js +1 -1
  74. package/.next/server/app/performance/page/build-manifest.json +4 -3
  75. package/.next/server/app/performance/page.js +1 -1
  76. package/.next/server/app/performance/page.js.nft.json +1 -1
  77. package/.next/server/app/performance/page_client-reference-manifest.js +1 -1
  78. package/.next/server/app/performance.html +2 -2
  79. package/.next/server/app/performance.rsc +32 -31
  80. package/.next/server/app/performance.segments/_full.segment.rsc +32 -31
  81. package/.next/server/app/performance.segments/_index.segment.rsc +12 -11
  82. package/.next/server/app/performance.segments/_tree.segment.rsc +1 -1
  83. package/.next/server/app/performance.segments/performance/__PAGE__.segment.rsc +14 -14
  84. package/.next/server/app/settings/page/build-manifest.json +4 -3
  85. package/.next/server/app/settings/page.js +1 -1
  86. package/.next/server/app/settings/page.js.nft.json +1 -1
  87. package/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  88. package/.next/server/app/setup/page/build-manifest.json +4 -3
  89. package/.next/server/app/setup/page.js +1 -1
  90. package/.next/server/app/setup/page.js.nft.json +1 -1
  91. package/.next/server/app/setup/page_client-reference-manifest.js +1 -1
  92. package/.next/server/app/setup.html +2 -2
  93. package/.next/server/app/setup.rsc +25 -24
  94. package/.next/server/app/setup.segments/_full.segment.rsc +25 -24
  95. package/.next/server/app/setup.segments/_index.segment.rsc +12 -11
  96. package/.next/server/app/setup.segments/_tree.segment.rsc +1 -1
  97. package/.next/server/app/setup.segments/setup/__PAGE__.segment.rsc +13 -13
  98. package/.next/server/app/tools/[tool]/page/build-manifest.json +4 -3
  99. package/.next/server/app/tools/[tool]/page.js +2 -2
  100. package/.next/server/app/tools/[tool]/page.js.nft.json +1 -1
  101. package/.next/server/app/tools/[tool]/page_client-reference-manifest.js +1 -1
  102. package/.next/server/app-paths-manifest.json +1 -0
  103. package/.next/server/chunks/[externals]__0_9e0si._.js +3 -0
  104. package/.next/server/chunks/[externals]__1f7xi3d._.js +3 -0
  105. package/.next/server/chunks/{[externals]__0lanngu._.js → [externals]__1rfyr-i._.js} +1 -1
  106. package/.next/server/chunks/[externals]_chrome-launcher_1k_yki1._.js +3 -0
  107. package/.next/server/chunks/[externals]_lighthouse_1su6d37._.js +3 -0
  108. package/.next/server/chunks/[root-of-the-server]__0_6kr31._.js +3 -0
  109. package/.next/server/chunks/[root-of-the-server]__0az11z3._.js +3 -0
  110. package/.next/server/chunks/[root-of-the-server]__0dv0ig6._.js +1 -1
  111. package/.next/server/chunks/[root-of-the-server]__0egyynf._.js +3 -0
  112. package/.next/server/chunks/[root-of-the-server]__0fkj1-q._.js +1 -1
  113. package/.next/server/chunks/[root-of-the-server]__0vbatar._.js +3 -0
  114. package/.next/server/chunks/[root-of-the-server]__1231g--._.js +3 -0
  115. package/.next/server/chunks/[root-of-the-server]__12lkcy1._.js +3 -0
  116. package/.next/server/chunks/[root-of-the-server]__1mj-h97._.js +3 -0
  117. package/.next/server/chunks/[turbopack]_runtime.js +132 -0
  118. package/.next/server/chunks/_0w8wvdn._.js +1 -1
  119. package/.next/server/chunks/_0wct7-r._.js +1 -1
  120. package/.next/server/chunks/_1f80q3b._.js +2 -2
  121. package/.next/server/chunks/_next-internal_server_app_api_lighthouse_route_actions_1_4ee8x.js +3 -0
  122. package/.next/server/chunks/lib_analytics_index_ts_00-ju4e._.js +20 -0
  123. package/.next/server/chunks/ssr/0x0c_next_dist_0lkq344._.js +1 -1
  124. package/.next/server/chunks/ssr/0x0c_next_dist_1icgwks._.js +1 -1
  125. package/.next/server/chunks/ssr/{node_modules__pnpm_1nkgz3w._.js → 10ci_lucide-react_dist_esm_Icon_mjs_05sy43t._.js} +2 -2
  126. package/.next/server/chunks/ssr/[externals]_chrome-launcher_1k_yki1._.js +3 -0
  127. package/.next/server/chunks/ssr/[externals]_lighthouse_1su6d37._.js +3 -0
  128. package/.next/server/chunks/ssr/[root-of-the-server]__02c3m72._.js +1 -1
  129. package/.next/server/chunks/ssr/[root-of-the-server]__0g1dtzd._.js +1 -1
  130. package/.next/server/chunks/ssr/{[root-of-the-server]__11p3jmb._.js → [root-of-the-server]__0hifh__._.js} +2 -2
  131. package/.next/server/chunks/ssr/[root-of-the-server]__0l4t71c._.js +1 -1
  132. package/.next/server/chunks/ssr/[root-of-the-server]__0tz50uc._.js +3 -0
  133. package/.next/server/chunks/ssr/[root-of-the-server]__0xjblsu._.js +3 -0
  134. package/.next/server/chunks/ssr/{[root-of-the-server]__1r29vac._.js → [root-of-the-server]__13w6d6f._.js} +2 -2
  135. package/.next/server/chunks/ssr/[root-of-the-server]__146cm0r._.js +1 -1
  136. package/.next/server/chunks/ssr/[root-of-the-server]__14_2v5e._.js +1 -1
  137. package/.next/server/chunks/ssr/[root-of-the-server]__1cl7b4r._.js +1 -1
  138. package/.next/server/chunks/ssr/[turbopack]_runtime.js +132 -0
  139. package/.next/server/chunks/ssr/_0aid3rp._.js +5 -3
  140. package/.next/server/chunks/ssr/{_1b8x2qw._.js → _0cst0jv._.js} +2 -2
  141. package/.next/server/chunks/ssr/{_1-c62g-._.js → _0vl4jhl._.js} +2 -2
  142. package/.next/server/chunks/ssr/{_1op3e_1._.js → _1-l5u-_._.js} +2 -2
  143. package/.next/server/chunks/ssr/{_0r3gp17._.js → _12brazw._.js} +2 -2
  144. package/.next/server/chunks/ssr/_1cfwie5._.js +3 -0
  145. package/.next/server/chunks/ssr/_1d39141._.js +3 -0
  146. package/.next/server/chunks/ssr/_1h52qq9._.js +3 -0
  147. package/.next/server/chunks/ssr/_1n6kmjf._.js +3 -0
  148. package/.next/server/chunks/ssr/{_0zneont._.js → _1ni54_c._.js} +2 -2
  149. package/.next/server/chunks/ssr/{_0-u65it._.js → _1vv2tlg._.js} +2 -2
  150. package/.next/server/chunks/ssr/node_modules__pnpm_1gezzqr._.js +151 -0
  151. package/.next/server/chunks/ssr/{node_modules__pnpm_0hf3oiy._.js → node_modules__pnpm_20_uz79._.js} +2 -2
  152. package/.next/server/middleware-build-manifest.js +7 -6
  153. package/.next/server/middleware.js.nft.json +1 -1
  154. package/.next/server/pages/404.html +2 -2
  155. package/.next/server/pages/500.html +1 -1
  156. package/.next/server/route-cache/APP_PAGE/41da0ef926a63354a29f601d8e8d0a5951196c45ebcd28b7d4708fb7f56f3bf1/$/_not-found.html +2 -0
  157. package/.next/server/route-cache/APP_PAGE/41da0ef926a63354a29f601d8e8d0a5951196c45ebcd28b7d4708fb7f56f3bf1/$/_not-found.meta +1 -0
  158. package/.next/server/route-cache/APP_PAGE/41da0ef926a63354a29f601d8e8d0a5951196c45ebcd28b7d4708fb7f56f3bf1/$/_not-found.rsc +41 -0
  159. package/.next/server/route-cache/APP_PAGE/41da0ef926a63354a29f601d8e8d0a5951196c45ebcd28b7d4708fb7f56f3bf1/$/_not-found.segments/_full.segment.rsc +41 -0
  160. package/.next/server/route-cache/APP_PAGE/41da0ef926a63354a29f601d8e8d0a5951196c45ebcd28b7d4708fb7f56f3bf1/$/_not-found.segments/_index.segment.rsc +32 -0
  161. package/.next/server/route-cache/APP_PAGE/41da0ef926a63354a29f601d8e8d0a5951196c45ebcd28b7d4708fb7f56f3bf1/$/_not-found.segments/_not-found/__PAGE__.segment.rsc +20 -0
  162. package/.next/server/route-cache/APP_PAGE/41da0ef926a63354a29f601d8e8d0a5951196c45ebcd28b7d4708fb7f56f3bf1/$/_not-found.segments/_tree.segment.rsc +2 -0
  163. package/.next/server/server-reference-manifest.js +1 -1
  164. package/.next/server/server-reference-manifest.json +1 -1
  165. package/.next/static/chunks/09gd7q3y6k-9o.js +1 -0
  166. package/.next/static/chunks/0on9boy9udzsk.js +22 -0
  167. package/.next/static/chunks/{3pxx39yay0ace.js → 0xrcyj-flkrl1.js} +1 -1
  168. package/.next/static/chunks/16dm0t9zkiz1_.js +31 -0
  169. package/.next/static/chunks/1qvxxmozdr7-c.js +1 -0
  170. package/.next/static/chunks/2wutbn1zdrzvx.js +1 -0
  171. package/.next/static/chunks/3somw8tkd8pzf.js +1 -0
  172. package/.next/static/chunks/3twacs-22zdwk.js +1 -0
  173. package/.next/static/chunks/{32-2bttdrtgys.js → 458nt4gshcy9x.js} +1 -1
  174. package/.next/static/chunks/turbopack-3icatqv27j50p.js +1 -0
  175. package/.next/static/media/icon.36lva-cxqp491.svg +6 -0
  176. package/.next/trace +1 -1
  177. package/.next/trace-build +1 -1
  178. package/README.md +6 -1
  179. package/bin/cli.mjs +14 -3
  180. package/bin/output.mjs +2 -0
  181. package/package.json +23 -16
  182. package/.next/server/chunks/[root-of-the-server]__0086g9z._.js +0 -3
  183. package/.next/server/chunks/[root-of-the-server]__0ui-otz._.js +0 -3
  184. package/.next/server/chunks/[root-of-the-server]__0urnrab._.js +0 -3
  185. package/.next/server/chunks/[root-of-the-server]__0wkeqwu._.js +0 -3
  186. package/.next/server/chunks/[root-of-the-server]__0xmaf60._.js +0 -18
  187. package/.next/server/chunks/[root-of-the-server]__0xy2rkf._.js +0 -18
  188. package/.next/server/chunks/ssr/[root-of-the-server]__0kik87u._.js +0 -3
  189. package/.next/server/chunks/ssr/[root-of-the-server]__1jyq1xk._.js +0 -3
  190. package/.next/server/chunks/ssr/_01vg-zb._.js +0 -3
  191. package/.next/server/chunks/ssr/_05t4klq._.js +0 -151
  192. package/.next/server/chunks/ssr/_09p8bi4._.js +0 -3
  193. package/.next/server/chunks/ssr/_1vj5488._.js +0 -3
  194. package/.next/static/chunks/0y_7csdv76zje.js +0 -1
  195. package/.next/static/chunks/2ez5lwfhls4_u.js +0 -1
  196. package/.next/static/chunks/3pn7ef-_3czj3.js +0 -1
  197. package/.next/static/chunks/3u-yh5wnxswb0.js +0 -1
  198. package/.next/static/chunks/3vpvl6gwhuz4w.js +0 -22
  199. package/.next/static/chunks/42z_0gfabqpr_.js +0 -31
  200. package/.next/static/chunks/turbopack-2-umre2j9nu7o.js +0 -1
  201. package/.next/static/media/icon.23mz8iwcatff2.svg +0 -4
  202. /package/.next/static/{RRS37EvIgWi0J_47nxSZN → 8LtMJdCno9wkpYotBJePk}/_buildManifest.js +0 -0
  203. /package/.next/static/{RRS37EvIgWi0J_47nxSZN → 8LtMJdCno9wkpYotBJePk}/_clientMiddlewareManifest.js +0 -0
  204. /package/.next/static/{RRS37EvIgWi0J_47nxSZN → 8LtMJdCno9wkpYotBJePk}/_ssgManifest.js +0 -0
@@ -1,3 +1,3 @@
1
- module.exports=[92994,a=>{"use strict";var b=a.i(47350),c=a.i(56561),d=a.i(3130),e=a.i(40695);a.s(["EmptyState",0,function({title:a="No data yet",reason:f="Keys work, but no page events have arrived.",href:g="/connect",cta:h="Send your first events",onRetry:i}){return(0,b.jsx)(d.Card,{className:"border-[#2d3748] bg-[#1a202c] shadow-md",children:(0,b.jsxs)(d.CardContent,{className:"flex flex-col items-center gap-3 p-10 text-center",children:[(0,b.jsx)("h3",{className:"text-lg font-semibold text-white",children:a}),(0,b.jsx)("p",{className:"max-w-md text-sm text-gray-400",children:f}),(0,b.jsxs)("div",{className:"flex gap-3",children:[g&&(0,b.jsx)(c.default,{href:g,className:(0,e.buttonVariants)(),children:h}),i&&(0,b.jsx)(e.Button,{variant:"outline",onClick:i,children:"Retry"})]})]})})}])},28185,a=>{"use strict";var b=a.i(47350),c=a.i(56561),d=a.i(53840),e=a.i(60663);let f={name:"circle-check",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 9-5.5 5.5L8 12",key:"xofnsj"}]],aliases:["check-circle-2"]};f.node;let g=(0,e.default)(f),h={name:"circle-dashed",size:24,node:[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0",key:"5ilxe3"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0",key:"11zvb9"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7",key:"1iw5b2"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8",key:"c0bmvh"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69",key:"1ruxm7"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8",key:"qkgqxc"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69",key:"1mcia2"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7",key:"1fvljs"}]]};h.node;let i=(0,e.default)(h);var j=a.i(65261),k=a.i(7157),l=a.i(88237),m=a.i(3130),n=a.i(54161),o=a.i(85608),p=a.i(93673),q=a.i(77790),r=a.i(43368);let s="pages-table-title",t=a=>"Warning"===a||"Critical"===a,u={Critical:{Icon:j.OctagonAlert,icon:"text-dash-danger",badge:"border-dash-danger/40 bg-dash-danger/10"},Warning:{Icon:k.TriangleAlert,icon:"text-dash-warning",badge:"border-dash-warning/40 bg-dash-warning/10"},Healthy:{Icon:g,icon:"text-dash-success",badge:"border-dash-success/40 bg-dash-success/10"}},v={Icon:i,icon:"text-dash-muted",badge:"border-dash-border-light"},w="rounded-sm outline-none focus-visible:ring-3 focus-visible:ring-ring/50",x=`font-medium text-dash-foreground underline underline-offset-4 hover:text-dash-muted-light ${w}`,y="hidden px-3 text-right tabular-nums lg:table-cell";function z({page:a}){let c=a.status??((0,r.hasData)(a)?"No performance data":"No data yet"),{Icon:d,icon:e,badge:f}=a.status?u[a.status]:v;return(0,b.jsxs)(n.Badge,{variant:"outline","data-status":c,className:`text-dash-foreground ${f}`,children:[(0,b.jsx)(d,{"aria-hidden":"true",className:e}),c]})}function A({label:a,caption:c}){return(0,b.jsxs)(l.TableHead,{scope:"col",className:`${y} h-12 text-dash-muted`,children:[a,c&&(0,b.jsx)("span",{className:"block text-body-sm",children:c})]})}function B({status:a,children:c}){let d="Critical"===a?j.OctagonAlert:k.TriangleAlert;return(0,b.jsxs)(l.TableCell,{"data-over-limit":t(a)||void 0,className:`${y} ${t(a)?"font-semibold text-dash-foreground":"text-dash-muted"}`,children:[t(a)&&(0,b.jsx)(d,{"aria-hidden":"true",className:`mr-1 inline size-3.5 align-[-2px] ${"Critical"===a?"text-dash-danger":"text-dash-warning"}`}),c,t(a)&&(0,b.jsx)("span",{className:"sr-only",children:" over limit"})]})}function C({rows:a,has:d,failed:e}){let f=a.length,h=a.filter(a=>t(a.status)).length,i=a.filter(a=>a.status).length,j=a.filter(a=>!(0,r.hasData)(a)).length,k=e.filter(p.isToolId).map(a=>p.TOOLS[a].label),l=null,m=0===j?"":1===j?"1 has no data yet.":`${j} have no data yet.`;if(h)l=1===f?"This page is over a limit.":1===h?`1 of ${f} pages is over a limit.`:`${h} of ${f} pages are over a limit. Worst first.`;else if(i){let a=1===f?"This page is within your limits.":i===f?`All ${f} pages are within your limits. Closest to a limit first.`:1===i?`1 of ${f} pages is within your limits.`:`${i} of ${f} pages are within your limits. Closest to a limit first.`;l=(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(g,{"aria-hidden":"true",className:"mr-1 inline size-3.5 align-[-2px] text-dash-success"}),a]})}else k.length?(l=`Could not load ${k.join(" and ")} data, so pages are not checked against your limits.`,m=""):d("loadTime")||(l=(0,b.jsxs)(b.Fragment,{children:["Ranked by Sentry errors in the last 24h. ",(0,b.jsx)(c.default,{href:"/setup",className:x,children:"Connect New Relic"})," to check load time and error rate against your limits."]}));return(i&&k.length&&(m=[m,`Could not load ${k.join(" and ")} data.`].filter(Boolean).join(" ")),l||m)?(0,b.jsxs)("p",{"data-slot":"table-summary",className:"text-body text-dash-muted",children:[l,l&&m&&" ",m]}):null}a.s(["HUB_TABLE_TITLE_ID",0,s,"HubTable",0,function({title:a,pages:e,has:f,thresholds:g,failed:h=[],limit:i}){let j=(0,d.useRouter)(),k=(0,r.rankPages)(e,g),n=k.some(a=>a.status);return(0,b.jsxs)(m.Card,{className:"bg-dash-card text-dash-foreground",children:[(0,b.jsxs)(m.CardHeader,{children:[(0,b.jsx)("h2",{id:s,tabIndex:-1,className:`title-enter w-fit text-h3 text-dash-foreground ${w}`,children:a}),(0,b.jsx)(C,{rows:k,has:f,failed:h})]}),(0,b.jsxs)(m.CardContent,{children:[(0,b.jsxs)(l.Table,{children:[(0,b.jsx)("caption",{className:"sr-only",children:"Pages ranked worst first"}),(0,b.jsx)(l.TableHeader,{children:(0,b.jsxs)(l.TableRow,{className:"border-dash-border hover:bg-transparent",children:[(0,b.jsx)(l.TableHead,{scope:"col",className:"h-12 px-3 text-dash-muted",children:"Page"}),n&&(0,b.jsx)(l.TableHead,{scope:"col",className:"h-12 px-3 text-dash-muted",children:"Status"}),f("loadTime")&&(0,b.jsx)(A,{label:"Load time",caption:(0,r.limitLabel)("loadTime",g)}),f("errorRate")&&(0,b.jsx)(A,{label:"Error rate",caption:(0,r.limitLabel)("errorRate",g)}),f("apdex")&&(0,b.jsx)(A,{label:"Apdex",caption:(0,r.limitLabel)("apdex",g)}),f("errors")&&(0,b.jsx)(A,{label:"Sentry errors",caption:"last 24h, no limit"}),f("traffic")&&(0,b.jsx)(A,{label:(0,o.isSampled)(e)?"Page loads (sampled)":"Views (24h)"})]})}),(0,b.jsx)(l.TableBody,{children:k.slice(0,i).map(a=>{let d=(0,r.hasData)(a),e=(0,r.hasPerformance)(a),h=a.metrics,i=`/performance/${a.slug}`,k=function(a,b,c){if(!(0,r.hasData)(a))return"";if(t(a.status)){let b=(0,r.breachReasons)(a,c).join(", ");return b.charAt(0).toUpperCase()+b.slice(1)}let d=a.metrics,e=(0,r.hasPerformance)(a);return[e&&b("loadTime")&&void 0!==d.loadTime&&`Load ${(0,q.formatDuration)(d.loadTime)}`,e&&b("errorRate")&&void 0!==d.errorRate&&`Errors ${d.errorRate.toFixed(2)}%`,e&&b("apdex")&&void 0!==d.apdex&&`Apdex ${d.apdex.toFixed(2)}`,b("errors")&&d.errors&&`${d.errors.count} Sentry ${1===d.errors.count?"error":"errors"}`].filter(Boolean).join(" · ")}(a,f,g);return(0,b.jsxs)(l.TableRow,{"data-slug":a.slug,className:"h-14 cursor-pointer border-dash-border hover:bg-white/5 focus-within:bg-white/5 lg:h-12",onClick:a=>{a.target.closest("a")||j.push(i)},children:[(0,b.jsxs)("th",{scope:"row","data-slot":"table-cell",className:"w-full max-w-0 px-3 py-2 text-left align-middle font-normal",children:[(0,b.jsxs)(c.default,{href:i,title:a.name,className:`block truncate text-body font-medium text-dash-foreground ${w}`,children:[a.name,(0,b.jsx)("span",{className:"sr-only",children:", view page details"})]}),(0,b.jsx)("span",{title:a.url,className:"block truncate font-mono text-body-sm text-dash-muted",children:a.url}),k&&(0,b.jsx)("span",{"data-slot":"row-summary",className:"mt-0.5 block text-body-sm text-dash-muted lg:hidden",children:k})]}),n&&(0,b.jsx)(l.TableCell,{className:"px-3",children:(0,b.jsx)(z,{page:a})}),f("loadTime")&&(0,b.jsx)(B,{status:e?(0,r.metricStatus)("loadTime",h.loadTime,g):void 0,children:e&&void 0!==h.loadTime?(0,q.formatDuration)(h.loadTime):"—"}),f("errorRate")&&(0,b.jsx)(B,{status:e?(0,r.metricStatus)("errorRate",h.errorRate,g):void 0,children:e&&void 0!==h.errorRate?`${h.errorRate.toFixed(2)}%`:"—"}),f("apdex")&&(0,b.jsx)(B,{status:e?(0,r.metricStatus)("apdex",h.apdex,g):void 0,children:e&&void 0!==h.apdex?h.apdex.toFixed(2):"—"}),f("errors")&&(0,b.jsx)(B,{children:d&&h.errors?h.errors.count:"—"}),f("traffic")&&(0,b.jsx)(B,{children:d&&h.traffic?a.visitors:"—"})]},a.slug)})})]}),void 0!==i&&k.length>i&&(0,b.jsxs)(c.default,{href:"/performance",className:`mt-2 inline-flex min-h-11 items-center px-3 text-body md:min-h-8 ${x}`,children:["View all ",k.length," pages"]})]})]})},"StatusBadge",0,z],28185)},54161,a=>{"use strict";var b=a.i(3927),c=a.i(77896),d=a.i(42261),e=a.i(75540);let f=(0,d.cva)("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",destructive:"bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",outline:"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",ghost:"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",link:"text-primary underline-offset-4 hover:underline"}},defaultVariants:{variant:"default"}});a.s(["Badge",0,function({className:a,variant:d="default",render:g,...h}){return(0,c.useRender)({defaultTagName:"span",props:(0,b.mergeProps)({className:(0,e.cn)(f({variant:d}),a)},h),render:g,state:{slot:"badge",variant:d}})}])},3130,a=>{"use strict";var b=a.i(47350),c=a.i(75540);a.s(["Card",0,function({className:a,size:d="default",...e}){return(0,b.jsx)("div",{"data-slot":"card","data-size":d,className:(0,c.cn)("group/card flex flex-col gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground ring-1 ring-foreground/10 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",a),...e})},"CardContent",0,function({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"card-content",className:(0,c.cn)("px-(--card-spacing)",a),...d})},"CardDescription",0,function({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"card-description",className:(0,c.cn)("text-sm text-muted-foreground",a),...d})},"CardHeader",0,function({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"card-header",className:(0,c.cn)("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-(--card-spacing) has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-(--card-spacing)",a),...d})},"CardTitle",0,function({className:a,...d}){return(0,b.jsx)("h3",{"data-slot":"card-title",className:(0,c.cn)("title-enter font-heading text-base leading-snug font-medium group-data-[size=sm]/card:text-sm",a),...d})}])},88237,a=>{"use strict";var b=a.i(47350),c=a.i(75540);a.s(["Table",0,function({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:(0,b.jsx)("table",{"data-slot":"table",className:(0,c.cn)("w-full caption-bottom text-sm",a),...d})})},"TableBody",0,function({className:a,...d}){return(0,b.jsx)("tbody",{"data-slot":"table-body",className:(0,c.cn)("[&_tr:last-child]:border-0",a),...d})},"TableCell",0,function({className:a,...d}){return(0,b.jsx)("td",{"data-slot":"table-cell",className:(0,c.cn)("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0",a),...d})},"TableHead",0,function({className:a,...d}){return(0,b.jsx)("th",{"data-slot":"table-head",className:(0,c.cn)("h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0",a),...d})},"TableHeader",0,function({className:a,...d}){return(0,b.jsx)("thead",{"data-slot":"table-header",className:(0,c.cn)("[&_tr]:border-b",a),...d})},"TableRow",0,function({className:a,...d}){return(0,b.jsx)("tr",{"data-slot":"table-row",className:(0,c.cn)("border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted",a),...d})}])},9260,a=>{"use strict";var b=a.i(75086);let c=(...a)=>a.filter((a,b,c)=>!!a&&""!==a.trim()&&c.indexOf(a)===b).join(" ").trim(),d={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"},e=(0,b.createContext)({}),f=(0,b.forwardRef)(({color:a,size:f,width:g,height:h,strokeWidth:i,absoluteStrokeWidth:j,nonScalingStroke:k,className:l="",children:m,iconNode:n=[],icon:o={node:n,aliases:[],size:24},...p},q)=>{let{size:r=24,strokeWidth:s=2,absoluteStrokeWidth:t=!1,nonScalingStroke:u=!1,color:v="currentColor",className:w=""}=(0,b.useContext)(e)??{},x=!!m||(a=>{for(let b in a)if(b.startsWith("aria-")||"role"===b||"title"===b)return!0;return!1})(p),[y,z,A=[]]=function(a,b={}){return function(a,b={}){let e=b.attributeNames??{},f=a=>e[a]??a,g=a.size??a.width??d.width,h=a.size??a.height??d.height,i=a.aliases?.filter(a=>"string"==typeof a&&""!==a.trim()).map(a=>`lucide-${a}`)??[],j=[...a.name?[`lucide-${a.name}`]:[],...i],k=b.className?.split(" ").filter(Boolean)??[],l=!1===b.includeDefaultClasses?c(...k):c("lucide",...j,...k),m=b.absoluteStrokeWidth?Number(b.strokeWidth??d["stroke-width"])*Number(a.size??a.width??d.width)/Number(b.size??b.width??d.width):b.strokeWidth??d["stroke-width"];return["svg",{...Object.entries(d).reduce((a,[b,c])=>(a[f(b)]=c,a),{}),..."color"in b&&b.color&&{[f("stroke")]:b.color},..."size"in b&&null!=b.size&&{[f("width")]:b.size,[f("height")]:b.size},..."width"in b&&null!=b.width&&{[f("width")]:b.width},..."height"in b&&null!=b.height&&{[f("height")]:b.height},[f("stroke-width")]:m,...l&&{[f("class")]:l},[f("viewBox")]:`0 0 ${g} ${h}`,...!1===b.hasA11yProp?{[f("aria-hidden")]:"true"}:{},..."attributes"in b&&b.attributes},a.node.map(a=>{let[c,d,e]=a,g=b.nonScalingStroke?{[f("vector-effect")]:"non-scaling-stroke",...d}:d;return e?[c,g,e]:[c,g]})]}(a,{...b,attributeNames:{...b.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}(o,{color:a??v,width:g??f??r,height:h??f??r,strokeWidth:i??s,absoluteStrokeWidth:j??t,nonScalingStroke:k??u,className:c(w,l),hasA11yProp:x,attributes:p});return(0,b.createElement)(y,{ref:q,...z},[...A.map(([a,c])=>(0,b.createElement)(a,c)),...Array.isArray(m)?m:[m]])});a.s(["default",0,f],9260)},66958,a=>{"use strict";var b=a.i(60663);let c={name:"clock",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]};c.node;let d=(0,b.default)(c);a.s(["Clock",0,d],66958)},65261,7157,a=>{"use strict";var b=a.i(60663);let c={name:"octagon-alert",size:24,node:[["path",{d:"M12 16h.01",key:"1drbdi"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z",key:"1fd625"}]],aliases:["alert-octagon"]};c.node;let d=(0,b.default)(c);a.s(["OctagonAlert",0,d],65261);var e=a.i(35342);a.s(["TriangleAlert",()=>e.default],7157)},35342,a=>{"use strict";var b=a.i(60663);let c={name:"triangle-alert",size:24,node:[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],aliases:["alert-triangle"]};c.node;let d=(0,b.default)(c);a.s(["default",0,d])},23904,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={actionAsyncStorage:function(){return f.actionAsyncStorage},workAsyncStorage:function(){return g.workAsyncStorage},workUnitAsyncStorage:function(){return h.workUnitAsyncStorage}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f=a.r(20635),g=a.r(56704),h=a.r(32319);("function"==typeof c.default||"object"==typeof c.default&&null!==c.default)&&void 0===c.default.__esModule&&(Object.defineProperty(c.default,"__esModule",{value:!0}),Object.assign(c.default,c),b.exports=c.default)}];
1
+ module.exports=[92994,a=>{"use strict";var b=a.i(47350),c=a.i(56561),d=a.i(3130),e=a.i(40695);a.s(["EmptyState",0,function({title:a="No data yet",reason:f="Keys work, but no page events have arrived.",href:g="/connect",cta:h="Send your first events",onRetry:i}){return(0,b.jsx)(d.Card,{className:"border-[#2d3748] bg-[#1a202c] shadow-md",children:(0,b.jsxs)(d.CardContent,{className:"flex flex-col items-center gap-3 p-10 text-center",children:[(0,b.jsx)("h3",{className:"text-lg font-semibold text-white",children:a}),(0,b.jsx)("p",{className:"max-w-md text-sm text-gray-400",children:f}),(0,b.jsxs)("div",{className:"flex gap-3",children:[g&&(0,b.jsx)(c.default,{href:g,className:(0,e.buttonVariants)(),children:h}),i&&(0,b.jsx)(e.Button,{variant:"outline",onClick:i,children:"Retry"})]})]})})}])},28185,a=>{"use strict";var b=a.i(47350),c=a.i(56561),d=a.i(53840),e=a.i(60663);let f={name:"circle-check",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 9-5.5 5.5L8 12",key:"xofnsj"}]],aliases:["check-circle-2"]};f.node;let g=(0,e.default)(f),h={name:"circle-dashed",size:24,node:[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0",key:"5ilxe3"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0",key:"11zvb9"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7",key:"1iw5b2"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8",key:"c0bmvh"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69",key:"1ruxm7"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8",key:"qkgqxc"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69",key:"1mcia2"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7",key:"1fvljs"}]]};h.node;let i=(0,e.default)(h);var j=a.i(65261),k=a.i(7157),l=a.i(88237),m=a.i(3130),n=a.i(54161),o=a.i(85608),p=a.i(93673),q=a.i(77790),r=a.i(43368);let s="pages-table-title",t=a=>"Warning"===a||"Critical"===a,u={Critical:{Icon:j.OctagonAlert,icon:"text-dash-danger",badge:"border-dash-danger/40 bg-dash-danger/10"},Warning:{Icon:k.TriangleAlert,icon:"text-dash-warning",badge:"border-dash-warning/40 bg-dash-warning/10"},Healthy:{Icon:g,icon:"text-dash-success",badge:"border-dash-success/40 bg-dash-success/10"}},v={Icon:i,icon:"text-dash-muted",badge:"border-dash-border-light"},w="rounded-sm outline-none focus-visible:ring-3 focus-visible:ring-ring/50",x=`font-medium text-dash-foreground underline underline-offset-4 hover:text-dash-muted-light ${w}`,y="hidden px-3 text-right tabular-nums lg:table-cell";function z({page:a}){let c=a.status??((0,r.hasData)(a)?"No performance data":"No data yet"),{Icon:d,icon:e,badge:f}=a.status?u[a.status]:v;return(0,b.jsxs)(n.Badge,{variant:"outline","data-status":c,className:`text-dash-foreground ${f}`,children:[(0,b.jsx)(d,{"aria-hidden":"true",className:e}),c]})}function A({label:a,caption:c}){return(0,b.jsxs)(l.TableHead,{scope:"col",className:`${y} h-12 text-dash-muted`,children:[a,c&&(0,b.jsx)("span",{className:"block text-body-sm",children:c})]})}function B({status:a,children:c}){let d="Critical"===a?j.OctagonAlert:k.TriangleAlert;return(0,b.jsxs)(l.TableCell,{"data-over-limit":t(a)||void 0,className:`${y} ${t(a)?"font-semibold text-dash-foreground":"text-dash-muted"}`,children:[t(a)&&(0,b.jsx)(d,{"aria-hidden":"true",className:`mr-1 inline size-3.5 align-[-2px] ${"Critical"===a?"text-dash-danger":"text-dash-warning"}`}),c,t(a)&&(0,b.jsx)("span",{className:"sr-only",children:" over limit"})]})}function C({rows:a,has:d,failed:e}){let f=a.length,h=a.filter(a=>t(a.status)).length,i=a.filter(a=>a.status).length,j=a.filter(a=>!(0,r.hasData)(a)).length,k=e.filter(p.isToolId).map(a=>p.TOOLS[a].label),l=null,m=0===j?"":1===j?"1 has no data yet.":`${j} have no data yet.`;if(h)l=1===f?"This page is over a limit.":1===h?`1 of ${f} pages is over a limit.`:`${h} of ${f} pages are over a limit. Worst first.`;else if(i){let a=1===f?"This page is within your limits.":i===f?`All ${f} pages are within your limits. Closest to a limit first.`:1===i?`1 of ${f} pages is within your limits.`:`${i} of ${f} pages are within your limits. Closest to a limit first.`;l=(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(g,{"aria-hidden":"true",className:"mr-1 inline size-3.5 align-[-2px] text-dash-success"}),a]})}else k.length?(l=`Could not load ${k.join(" and ")} data, so pages are not checked against your limits.`,m=""):d("loadTime")||(l=(0,b.jsxs)(b.Fragment,{children:["Ranked by Sentry errors in the last 24h. ",(0,b.jsx)(c.default,{href:"/setup",className:x,children:"Connect New Relic"})," to check load time and error rate against your limits."]}));return(i&&k.length&&(m=[m,`Could not load ${k.join(" and ")} data.`].filter(Boolean).join(" ")),l||m)?(0,b.jsxs)("p",{"data-slot":"table-summary",className:"text-body text-dash-muted",children:[l,l&&m&&" ",m]}):null}a.s(["HUB_TABLE_TITLE_ID",0,s,"HubTable",0,function({title:a,pages:e,has:f,thresholds:g,failed:h=[],limit:i}){let j=(0,d.useRouter)(),k=(0,r.rankPages)(e,g),n=k.some(a=>a.status);return(0,b.jsxs)(m.Card,{className:"bg-dash-card text-dash-foreground",children:[(0,b.jsxs)(m.CardHeader,{children:[(0,b.jsx)("h2",{id:s,tabIndex:-1,className:`title-enter w-fit text-h3 text-dash-foreground ${w}`,children:a}),(0,b.jsx)(C,{rows:k,has:f,failed:h})]}),(0,b.jsxs)(m.CardContent,{children:[(0,b.jsxs)(l.Table,{children:[(0,b.jsx)("caption",{className:"sr-only",children:"Pages ranked worst first"}),(0,b.jsx)(l.TableHeader,{children:(0,b.jsxs)(l.TableRow,{className:"border-dash-border hover:bg-transparent",children:[(0,b.jsx)(l.TableHead,{scope:"col",className:"h-12 px-3 text-dash-muted",children:"Page"}),n&&(0,b.jsx)(l.TableHead,{scope:"col",className:"h-12 px-3 text-dash-muted",children:"Status"}),f("loadTime")&&(0,b.jsx)(A,{label:"Load time",caption:(0,r.limitLabel)("loadTime",g)}),f("errorRate")&&(0,b.jsx)(A,{label:"Error rate",caption:(0,r.limitLabel)("errorRate",g)}),f("apdex")&&(0,b.jsx)(A,{label:"Apdex",caption:(0,r.limitLabel)("apdex",g)}),f("errors")&&(0,b.jsx)(A,{label:"Sentry errors",caption:"last 24h, no limit"}),f("traffic")&&(0,b.jsx)(A,{label:(0,o.isSampled)(e)?"Page loads (sampled)":"Views (24h)"})]})}),(0,b.jsx)(l.TableBody,{children:k.slice(0,i).map(a=>{let d=(0,r.hasData)(a),e=(0,r.hasPerformance)(a),h=a.metrics,i=`/performance/${a.slug}`,k=function(a,b,c){if(!(0,r.hasData)(a))return"";if(t(a.status)){let b=(0,r.breachReasons)(a,c).join(", ");return b.charAt(0).toUpperCase()+b.slice(1)}let d=a.metrics,e=(0,r.hasPerformance)(a);return[e&&b("loadTime")&&void 0!==d.loadTime&&`Load ${(0,q.formatDuration)(d.loadTime)}`,e&&b("errorRate")&&void 0!==d.errorRate&&`Errors ${d.errorRate.toFixed(2)}%`,e&&b("apdex")&&void 0!==d.apdex&&`Apdex ${d.apdex.toFixed(2)}`,b("errors")&&d.errors&&`${d.errors.count} Sentry ${1===d.errors.count?"error":"errors"}`].filter(Boolean).join(" · ")}(a,f,g);return(0,b.jsxs)(l.TableRow,{"data-slug":a.slug,className:"h-14 cursor-pointer border-dash-border hover:bg-white/5 focus-within:bg-white/5 lg:h-12",onClick:a=>{a.target.closest("a")||j.push(i)},children:[(0,b.jsxs)("th",{scope:"row","data-slot":"table-cell",className:"w-full max-w-0 px-3 py-2 text-left align-middle font-normal",children:[(0,b.jsxs)(c.default,{href:i,title:a.name,className:`block truncate text-body font-medium text-dash-foreground ${w}`,children:[a.name,(0,b.jsx)("span",{className:"sr-only",children:", view page details"})]}),(0,b.jsx)("span",{title:a.url,className:"block truncate font-mono text-body-sm text-dash-muted",children:a.url}),k&&(0,b.jsx)("span",{"data-slot":"row-summary",className:"mt-0.5 block text-body-sm text-dash-muted lg:hidden",children:k})]}),n&&(0,b.jsx)(l.TableCell,{className:"px-3",children:(0,b.jsx)(z,{page:a})}),f("loadTime")&&(0,b.jsx)(B,{status:e?(0,r.metricStatus)("loadTime",h.loadTime,g):void 0,children:e&&void 0!==h.loadTime?(0,q.formatDuration)(h.loadTime):"—"}),f("errorRate")&&(0,b.jsx)(B,{status:e?(0,r.metricStatus)("errorRate",h.errorRate,g):void 0,children:e&&void 0!==h.errorRate?`${h.errorRate.toFixed(2)}%`:"—"}),f("apdex")&&(0,b.jsx)(B,{status:e?(0,r.metricStatus)("apdex",h.apdex,g):void 0,children:e&&void 0!==h.apdex?h.apdex.toFixed(2):"—"}),f("errors")&&(0,b.jsx)(B,{children:d&&h.errors?h.errors.count:"—"}),f("traffic")&&(0,b.jsx)(B,{children:d&&h.traffic?a.visitors:"—"})]},a.slug)})})]}),void 0!==i&&k.length>i&&(0,b.jsxs)(c.default,{href:"/performance",className:`mt-2 inline-flex min-h-11 items-center px-3 text-body md:min-h-8 ${x}`,children:["View all ",k.length," pages"]})]})]})},"StatusBadge",0,z],28185)},54161,a=>{"use strict";var b=a.i(3927),c=a.i(77896),d=a.i(42261),e=a.i(75540);let f=(0,d.cva)("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",destructive:"bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",outline:"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",ghost:"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",link:"text-primary underline-offset-4 hover:underline"}},defaultVariants:{variant:"default"}});a.s(["Badge",0,function({className:a,variant:d="default",render:g,...h}){return(0,c.useRender)({defaultTagName:"span",props:(0,b.mergeProps)({className:(0,e.cn)(f({variant:d}),a)},h),render:g,state:{slot:"badge",variant:d}})}])},3130,a=>{"use strict";var b=a.i(47350),c=a.i(75540);a.s(["Card",0,function({className:a,size:d="default",...e}){return(0,b.jsx)("div",{"data-slot":"card","data-size":d,className:(0,c.cn)("group/card flex flex-col gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground ring-1 ring-foreground/10 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",a),...e})},"CardContent",0,function({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"card-content",className:(0,c.cn)("px-(--card-spacing)",a),...d})},"CardDescription",0,function({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"card-description",className:(0,c.cn)("text-sm text-muted-foreground",a),...d})},"CardHeader",0,function({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"card-header",className:(0,c.cn)("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-(--card-spacing) has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-(--card-spacing)",a),...d})},"CardTitle",0,function({className:a,...d}){return(0,b.jsx)("h3",{"data-slot":"card-title",className:(0,c.cn)("title-enter font-heading text-base leading-snug font-medium group-data-[size=sm]/card:text-sm",a),...d})}])},88237,a=>{"use strict";var b=a.i(47350),c=a.i(75540);a.s(["Table",0,function({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:(0,b.jsx)("table",{"data-slot":"table",className:(0,c.cn)("w-full caption-bottom text-sm",a),...d})})},"TableBody",0,function({className:a,...d}){return(0,b.jsx)("tbody",{"data-slot":"table-body",className:(0,c.cn)("[&_tr:last-child]:border-0",a),...d})},"TableCell",0,function({className:a,...d}){return(0,b.jsx)("td",{"data-slot":"table-cell",className:(0,c.cn)("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0",a),...d})},"TableHead",0,function({className:a,...d}){return(0,b.jsx)("th",{"data-slot":"table-head",className:(0,c.cn)("h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0",a),...d})},"TableHeader",0,function({className:a,...d}){return(0,b.jsx)("thead",{"data-slot":"table-header",className:(0,c.cn)("[&_tr]:border-b",a),...d})},"TableRow",0,function({className:a,...d}){return(0,b.jsx)("tr",{"data-slot":"table-row",className:(0,c.cn)("border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted",a),...d})}])},9260,a=>{"use strict";var b=a.i(75086);let c=(...a)=>a.filter((a,b,c)=>!!a&&""!==a.trim()&&c.indexOf(a)===b).join(" ").trim(),d={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"},e=(0,b.createContext)({}),f=(0,b.forwardRef)(({color:a,size:f,width:g,height:h,strokeWidth:i,absoluteStrokeWidth:j,nonScalingStroke:k,className:l="",children:m,iconNode:n=[],icon:o={node:n,aliases:[],size:24},...p},q)=>{let{size:r=24,strokeWidth:s=2,absoluteStrokeWidth:t=!1,nonScalingStroke:u=!1,color:v="currentColor",className:w=""}=(0,b.useContext)(e)??{},x=!!m||(a=>{for(let b in a)if(b.startsWith("aria-")||"role"===b||"title"===b)return!0;return!1})(p),[y,z,A=[]]=function(a,b={}){return function(a,b={}){let e=b.attributeNames??{},f=a=>e[a]??a,g=a.size??a.width??d.width,h=a.size??a.height??d.height,i=a.aliases?.filter(a=>"string"==typeof a&&""!==a.trim()).map(a=>`lucide-${a}`)??[],j=[...a.name?[`lucide-${a.name}`]:[],...i],k=b.className?.split(" ").filter(Boolean)??[],l=!1===b.includeDefaultClasses?c(...k):c("lucide",...j,...k),m=b.absoluteStrokeWidth?Number(b.strokeWidth??d["stroke-width"])*Number(a.size??a.width??d.width)/Number(b.size??b.width??d.width):b.strokeWidth??d["stroke-width"];return["svg",{...Object.entries(d).reduce((a,[b,c])=>(a[f(b)]=c,a),{}),..."color"in b&&b.color&&{[f("stroke")]:b.color},..."size"in b&&null!=b.size&&{[f("width")]:b.size,[f("height")]:b.size},..."width"in b&&null!=b.width&&{[f("width")]:b.width},..."height"in b&&null!=b.height&&{[f("height")]:b.height},[f("stroke-width")]:m,...l&&{[f("class")]:l},[f("viewBox")]:`0 0 ${g} ${h}`,...!1===b.hasA11yProp?{[f("aria-hidden")]:"true"}:{},..."attributes"in b&&b.attributes},a.node.map(a=>{let[c,d,e]=a,g=b.nonScalingStroke?{[f("vector-effect")]:"non-scaling-stroke",...d}:d;return e?[c,g,e]:[c,g]})]}(a,{...b,attributeNames:{...b.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}(o,{color:a??v,width:g??f??r,height:h??f??r,strokeWidth:i??s,absoluteStrokeWidth:j??t,nonScalingStroke:k??u,className:c(w,l),hasA11yProp:x,attributes:p});return(0,b.createElement)(y,{ref:q,...z},[...A.map(([a,c])=>(0,b.createElement)(a,c)),...Array.isArray(m)?m:[m]])});a.s(["default",0,f],9260)},66958,a=>{"use strict";var b=a.i(60663);let c={name:"clock",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]};c.node;let d=(0,b.default)(c);a.s(["Clock",0,d],66958)},65261,7157,a=>{"use strict";var b=a.i(60663);let c={name:"octagon-alert",size:24,node:[["path",{d:"M12 16h.01",key:"1drbdi"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z",key:"1fd625"}]],aliases:["alert-octagon"]};c.node;let d=(0,b.default)(c);a.s(["OctagonAlert",0,d],65261);var e=a.i(35342);a.s(["TriangleAlert",()=>e.default],7157)},35342,a=>{"use strict";var b=a.i(60663);let c={name:"triangle-alert",size:24,node:[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],aliases:["alert-triangle"]};c.node;let d=(0,b.default)(c);a.s(["default",0,d])}];
2
2
 
3
- //# sourceMappingURL=_1b8x2qw._.js.map
3
+ //# sourceMappingURL=_0cst0jv._.js.map
@@ -8,6 +8,6 @@ import { init } from '@karan171996/metricflow/browser';
8
8
 
9
9
  init({
10
10
  ${g.join("\n")}
11
- });`}({tools:a?.tools,accountId:a?.accountId,applicationId:a?.setup?.applicationId,browserKey:a?.setup?.browserKey,region:a?.region,dsn:a?.dsn})}),z&&(0,b.jsx)(k,{n:2,title:"2. Send your own numbers (optional)",help:"Record a custom event from anywhere in your site after init. New Relic only.",code:i}),(0,b.jsx)(e.Card,{className:j,children:(0,b.jsxs)(e.CardHeader,{children:[(0,b.jsxs)(e.CardTitle,{className:"text-base font-bold text-white",children:[B,". Verify"]}),(0,b.jsx)(e.CardDescription,{className:"text-sm text-gray-400",children:z?(0,b.jsx)(b.Fragment,{children:'Reload your site, then watch "Events received" above turn green. Use Send test event to check the custom-event path.'}):(0,b.jsx)(b.Fragment,{children:'Cause an error on your site, then watch "Sentry errors" above turn green.'})})]})})]})}],11510)},3130,a=>{"use strict";var b=a.i(47350),c=a.i(75540);a.s(["Card",0,function({className:a,size:d="default",...e}){return(0,b.jsx)("div",{"data-slot":"card","data-size":d,className:(0,c.cn)("group/card flex flex-col gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground ring-1 ring-foreground/10 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",a),...e})},"CardContent",0,function({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"card-content",className:(0,c.cn)("px-(--card-spacing)",a),...d})},"CardDescription",0,function({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"card-description",className:(0,c.cn)("text-sm text-muted-foreground",a),...d})},"CardHeader",0,function({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"card-header",className:(0,c.cn)("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-(--card-spacing) has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-(--card-spacing)",a),...d})},"CardTitle",0,function({className:a,...d}){return(0,b.jsx)("h3",{"data-slot":"card-title",className:(0,c.cn)("title-enter font-heading text-base leading-snug font-medium group-data-[size=sm]/card:text-sm",a),...d})}])},9260,a=>{"use strict";var b=a.i(75086);let c=(...a)=>a.filter((a,b,c)=>!!a&&""!==a.trim()&&c.indexOf(a)===b).join(" ").trim(),d={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"},e=(0,b.createContext)({}),f=(0,b.forwardRef)(({color:a,size:f,width:g,height:h,strokeWidth:i,absoluteStrokeWidth:j,nonScalingStroke:k,className:l="",children:m,iconNode:n=[],icon:o={node:n,aliases:[],size:24},...p},q)=>{let{size:r=24,strokeWidth:s=2,absoluteStrokeWidth:t=!1,nonScalingStroke:u=!1,color:v="currentColor",className:w=""}=(0,b.useContext)(e)??{},x=!!m||(a=>{for(let b in a)if(b.startsWith("aria-")||"role"===b||"title"===b)return!0;return!1})(p),[y,z,A=[]]=function(a,b={}){return function(a,b={}){let e=b.attributeNames??{},f=a=>e[a]??a,g=a.size??a.width??d.width,h=a.size??a.height??d.height,i=a.aliases?.filter(a=>"string"==typeof a&&""!==a.trim()).map(a=>`lucide-${a}`)??[],j=[...a.name?[`lucide-${a.name}`]:[],...i],k=b.className?.split(" ").filter(Boolean)??[],l=!1===b.includeDefaultClasses?c(...k):c("lucide",...j,...k),m=b.absoluteStrokeWidth?Number(b.strokeWidth??d["stroke-width"])*Number(a.size??a.width??d.width)/Number(b.size??b.width??d.width):b.strokeWidth??d["stroke-width"];return["svg",{...Object.entries(d).reduce((a,[b,c])=>(a[f(b)]=c,a),{}),..."color"in b&&b.color&&{[f("stroke")]:b.color},..."size"in b&&null!=b.size&&{[f("width")]:b.size,[f("height")]:b.size},..."width"in b&&null!=b.width&&{[f("width")]:b.width},..."height"in b&&null!=b.height&&{[f("height")]:b.height},[f("stroke-width")]:m,...l&&{[f("class")]:l},[f("viewBox")]:`0 0 ${g} ${h}`,...!1===b.hasA11yProp?{[f("aria-hidden")]:"true"}:{},..."attributes"in b&&b.attributes},a.node.map(a=>{let[c,d,e]=a,g=b.nonScalingStroke?{[f("vector-effect")]:"non-scaling-stroke",...d}:d;return e?[c,g,e]:[c,g]})]}(a,{...b,attributeNames:{...b.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}(o,{color:a??v,width:g??f??r,height:h??f??r,strokeWidth:i??s,absoluteStrokeWidth:j??t,nonScalingStroke:k??u,className:c(w,l),hasA11yProp:x,attributes:p});return(0,b.createElement)(y,{ref:q,...z},[...A.map(([a,c])=>(0,b.createElement)(a,c)),...Array.isArray(m)?m:[m]])});a.s(["default",0,f],9260)},23904,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={actionAsyncStorage:function(){return f.actionAsyncStorage},workAsyncStorage:function(){return g.workAsyncStorage},workUnitAsyncStorage:function(){return h.workUnitAsyncStorage}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f=a.r(20635),g=a.r(56704),h=a.r(32319);("function"==typeof c.default||"object"==typeof c.default&&null!==c.default)&&void 0===c.default.__esModule&&(Object.defineProperty(c.default,"__esModule",{value:!0}),Object.assign(c.default,c),b.exports=c.default)}];
11
+ });`}({tools:a?.tools,accountId:a?.accountId,applicationId:a?.setup?.applicationId,browserKey:a?.setup?.browserKey,region:a?.region,dsn:a?.dsn})}),z&&(0,b.jsx)(k,{n:2,title:"2. Send your own numbers (optional)",help:"Record a custom event from anywhere in your site after init. New Relic only.",code:i}),(0,b.jsx)(e.Card,{className:j,children:(0,b.jsxs)(e.CardHeader,{children:[(0,b.jsxs)(e.CardTitle,{className:"text-base font-bold text-white",children:[B,". Verify"]}),(0,b.jsx)(e.CardDescription,{className:"text-sm text-gray-400",children:z?(0,b.jsx)(b.Fragment,{children:'Reload your site, then watch "Events received" above turn green. Use Send test event to check the custom-event path.'}):(0,b.jsx)(b.Fragment,{children:'Cause an error on your site, then watch "Sentry errors" above turn green.'})})]})})]})}],11510)},3130,a=>{"use strict";var b=a.i(47350),c=a.i(75540);a.s(["Card",0,function({className:a,size:d="default",...e}){return(0,b.jsx)("div",{"data-slot":"card","data-size":d,className:(0,c.cn)("group/card flex flex-col gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground ring-1 ring-foreground/10 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",a),...e})},"CardContent",0,function({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"card-content",className:(0,c.cn)("px-(--card-spacing)",a),...d})},"CardDescription",0,function({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"card-description",className:(0,c.cn)("text-sm text-muted-foreground",a),...d})},"CardHeader",0,function({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"card-header",className:(0,c.cn)("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-(--card-spacing) has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-(--card-spacing)",a),...d})},"CardTitle",0,function({className:a,...d}){return(0,b.jsx)("h3",{"data-slot":"card-title",className:(0,c.cn)("title-enter font-heading text-base leading-snug font-medium group-data-[size=sm]/card:text-sm",a),...d})}])},9260,a=>{"use strict";var b=a.i(75086);let c=(...a)=>a.filter((a,b,c)=>!!a&&""!==a.trim()&&c.indexOf(a)===b).join(" ").trim(),d={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"},e=(0,b.createContext)({}),f=(0,b.forwardRef)(({color:a,size:f,width:g,height:h,strokeWidth:i,absoluteStrokeWidth:j,nonScalingStroke:k,className:l="",children:m,iconNode:n=[],icon:o={node:n,aliases:[],size:24},...p},q)=>{let{size:r=24,strokeWidth:s=2,absoluteStrokeWidth:t=!1,nonScalingStroke:u=!1,color:v="currentColor",className:w=""}=(0,b.useContext)(e)??{},x=!!m||(a=>{for(let b in a)if(b.startsWith("aria-")||"role"===b||"title"===b)return!0;return!1})(p),[y,z,A=[]]=function(a,b={}){return function(a,b={}){let e=b.attributeNames??{},f=a=>e[a]??a,g=a.size??a.width??d.width,h=a.size??a.height??d.height,i=a.aliases?.filter(a=>"string"==typeof a&&""!==a.trim()).map(a=>`lucide-${a}`)??[],j=[...a.name?[`lucide-${a.name}`]:[],...i],k=b.className?.split(" ").filter(Boolean)??[],l=!1===b.includeDefaultClasses?c(...k):c("lucide",...j,...k),m=b.absoluteStrokeWidth?Number(b.strokeWidth??d["stroke-width"])*Number(a.size??a.width??d.width)/Number(b.size??b.width??d.width):b.strokeWidth??d["stroke-width"];return["svg",{...Object.entries(d).reduce((a,[b,c])=>(a[f(b)]=c,a),{}),..."color"in b&&b.color&&{[f("stroke")]:b.color},..."size"in b&&null!=b.size&&{[f("width")]:b.size,[f("height")]:b.size},..."width"in b&&null!=b.width&&{[f("width")]:b.width},..."height"in b&&null!=b.height&&{[f("height")]:b.height},[f("stroke-width")]:m,...l&&{[f("class")]:l},[f("viewBox")]:`0 0 ${g} ${h}`,...!1===b.hasA11yProp?{[f("aria-hidden")]:"true"}:{},..."attributes"in b&&b.attributes},a.node.map(a=>{let[c,d,e]=a,g=b.nonScalingStroke?{[f("vector-effect")]:"non-scaling-stroke",...d}:d;return e?[c,g,e]:[c,g]})]}(a,{...b,attributeNames:{...b.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}(o,{color:a??v,width:g??f??r,height:h??f??r,strokeWidth:i??s,absoluteStrokeWidth:j??t,nonScalingStroke:k??u,className:c(w,l),hasA11yProp:x,attributes:p});return(0,b.createElement)(y,{ref:q,...z},[...A.map(([a,c])=>(0,b.createElement)(a,c)),...Array.isArray(m)?m:[m]])});a.s(["default",0,f],9260)}];
12
12
 
13
- //# sourceMappingURL=_1-c62g-._.js.map
13
+ //# sourceMappingURL=_0vl4jhl._.js.map
@@ -1,3 +1,3 @@
1
- module.exports=[54161,a=>{"use strict";var b=a.i(3927),c=a.i(77896),d=a.i(42261),e=a.i(75540);let f=(0,d.cva)("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",destructive:"bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",outline:"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",ghost:"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",link:"text-primary underline-offset-4 hover:underline"}},defaultVariants:{variant:"default"}});a.s(["Badge",0,function({className:a,variant:d="default",render:g,...h}){return(0,c.useRender)({defaultTagName:"span",props:(0,b.mergeProps)({className:(0,e.cn)(f({variant:d}),a)},h),render:g,state:{slot:"badge",variant:d}})}])},3130,a=>{"use strict";var b=a.i(47350),c=a.i(75540);a.s(["Card",0,function({className:a,size:d="default",...e}){return(0,b.jsx)("div",{"data-slot":"card","data-size":d,className:(0,c.cn)("group/card flex flex-col gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground ring-1 ring-foreground/10 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",a),...e})},"CardContent",0,function({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"card-content",className:(0,c.cn)("px-(--card-spacing)",a),...d})},"CardDescription",0,function({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"card-description",className:(0,c.cn)("text-sm text-muted-foreground",a),...d})},"CardHeader",0,function({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"card-header",className:(0,c.cn)("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-(--card-spacing) has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-(--card-spacing)",a),...d})},"CardTitle",0,function({className:a,...d}){return(0,b.jsx)("h3",{"data-slot":"card-title",className:(0,c.cn)("title-enter font-heading text-base leading-snug font-medium group-data-[size=sm]/card:text-sm",a),...d})}])},88237,a=>{"use strict";var b=a.i(47350),c=a.i(75540);a.s(["Table",0,function({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:(0,b.jsx)("table",{"data-slot":"table",className:(0,c.cn)("w-full caption-bottom text-sm",a),...d})})},"TableBody",0,function({className:a,...d}){return(0,b.jsx)("tbody",{"data-slot":"table-body",className:(0,c.cn)("[&_tr:last-child]:border-0",a),...d})},"TableCell",0,function({className:a,...d}){return(0,b.jsx)("td",{"data-slot":"table-cell",className:(0,c.cn)("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0",a),...d})},"TableHead",0,function({className:a,...d}){return(0,b.jsx)("th",{"data-slot":"table-head",className:(0,c.cn)("h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0",a),...d})},"TableHeader",0,function({className:a,...d}){return(0,b.jsx)("thead",{"data-slot":"table-header",className:(0,c.cn)("[&_tr]:border-b",a),...d})},"TableRow",0,function({className:a,...d}){return(0,b.jsx)("tr",{"data-slot":"table-row",className:(0,c.cn)("border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted",a),...d})}])},70834,a=>{"use strict";var b=a.i(75086);let c={alert:!0},d="notification-prefs",e=new Set,f=null;function g(){if(f)return f;let a={...c};try{let b=JSON.parse(localStorage.getItem(d)??"{}");for(let c of Object.keys(a))"boolean"==typeof b[c]&&(a[c]=b[c])}catch{}return f=a}function h(a){a.key===d&&(f=null,e.forEach(a=>a()))}function i(a){return e.add(a),window.addEventListener("storage",h),()=>{e.delete(a),window.removeEventListener("storage",h)}}a.s(["setNotificationPrefs",0,function(a){f={...g(),...a};try{localStorage.setItem(d,JSON.stringify(f))}catch{}e.forEach(a=>a())},"useNotificationPrefs",0,function(){return(0,b.useSyncExternalStore)(i,g,()=>c)}])},9260,a=>{"use strict";var b=a.i(75086);let c=(...a)=>a.filter((a,b,c)=>!!a&&""!==a.trim()&&c.indexOf(a)===b).join(" ").trim(),d={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"},e=(0,b.createContext)({}),f=(0,b.forwardRef)(({color:a,size:f,width:g,height:h,strokeWidth:i,absoluteStrokeWidth:j,nonScalingStroke:k,className:l="",children:m,iconNode:n=[],icon:o={node:n,aliases:[],size:24},...p},q)=>{let{size:r=24,strokeWidth:s=2,absoluteStrokeWidth:t=!1,nonScalingStroke:u=!1,color:v="currentColor",className:w=""}=(0,b.useContext)(e)??{},x=!!m||(a=>{for(let b in a)if(b.startsWith("aria-")||"role"===b||"title"===b)return!0;return!1})(p),[y,z,A=[]]=function(a,b={}){return function(a,b={}){let e=b.attributeNames??{},f=a=>e[a]??a,g=a.size??a.width??d.width,h=a.size??a.height??d.height,i=a.aliases?.filter(a=>"string"==typeof a&&""!==a.trim()).map(a=>`lucide-${a}`)??[],j=[...a.name?[`lucide-${a.name}`]:[],...i],k=b.className?.split(" ").filter(Boolean)??[],l=!1===b.includeDefaultClasses?c(...k):c("lucide",...j,...k),m=b.absoluteStrokeWidth?Number(b.strokeWidth??d["stroke-width"])*Number(a.size??a.width??d.width)/Number(b.size??b.width??d.width):b.strokeWidth??d["stroke-width"];return["svg",{...Object.entries(d).reduce((a,[b,c])=>(a[f(b)]=c,a),{}),..."color"in b&&b.color&&{[f("stroke")]:b.color},..."size"in b&&null!=b.size&&{[f("width")]:b.size,[f("height")]:b.size},..."width"in b&&null!=b.width&&{[f("width")]:b.width},..."height"in b&&null!=b.height&&{[f("height")]:b.height},[f("stroke-width")]:m,...l&&{[f("class")]:l},[f("viewBox")]:`0 0 ${g} ${h}`,...!1===b.hasA11yProp?{[f("aria-hidden")]:"true"}:{},..."attributes"in b&&b.attributes},a.node.map(a=>{let[c,d,e]=a,g=b.nonScalingStroke?{[f("vector-effect")]:"non-scaling-stroke",...d}:d;return e?[c,g,e]:[c,g]})]}(a,{...b,attributeNames:{...b.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}(o,{color:a??v,width:g??f??r,height:h??f??r,strokeWidth:i??s,absoluteStrokeWidth:j??t,nonScalingStroke:k??u,className:c(w,l),hasA11yProp:x,attributes:p});return(0,b.createElement)(y,{ref:q,...z},[...A.map(([a,c])=>(0,b.createElement)(a,c)),...Array.isArray(m)?m:[m]])});a.s(["default",0,f],9260)},23904,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={actionAsyncStorage:function(){return f.actionAsyncStorage},workAsyncStorage:function(){return g.workAsyncStorage},workUnitAsyncStorage:function(){return h.workUnitAsyncStorage}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f=a.r(20635),g=a.r(56704),h=a.r(32319);("function"==typeof c.default||"object"==typeof c.default&&null!==c.default)&&void 0===c.default.__esModule&&(Object.defineProperty(c.default,"__esModule",{value:!0}),Object.assign(c.default,c),b.exports=c.default)}];
1
+ module.exports=[54161,a=>{"use strict";var b=a.i(3927),c=a.i(77896),d=a.i(42261),e=a.i(75540);let f=(0,d.cva)("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",destructive:"bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",outline:"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",ghost:"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",link:"text-primary underline-offset-4 hover:underline"}},defaultVariants:{variant:"default"}});a.s(["Badge",0,function({className:a,variant:d="default",render:g,...h}){return(0,c.useRender)({defaultTagName:"span",props:(0,b.mergeProps)({className:(0,e.cn)(f({variant:d}),a)},h),render:g,state:{slot:"badge",variant:d}})}])},3130,a=>{"use strict";var b=a.i(47350),c=a.i(75540);a.s(["Card",0,function({className:a,size:d="default",...e}){return(0,b.jsx)("div",{"data-slot":"card","data-size":d,className:(0,c.cn)("group/card flex flex-col gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground ring-1 ring-foreground/10 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",a),...e})},"CardContent",0,function({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"card-content",className:(0,c.cn)("px-(--card-spacing)",a),...d})},"CardDescription",0,function({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"card-description",className:(0,c.cn)("text-sm text-muted-foreground",a),...d})},"CardHeader",0,function({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"card-header",className:(0,c.cn)("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-(--card-spacing) has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-(--card-spacing)",a),...d})},"CardTitle",0,function({className:a,...d}){return(0,b.jsx)("h3",{"data-slot":"card-title",className:(0,c.cn)("title-enter font-heading text-base leading-snug font-medium group-data-[size=sm]/card:text-sm",a),...d})}])},88237,a=>{"use strict";var b=a.i(47350),c=a.i(75540);a.s(["Table",0,function({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:(0,b.jsx)("table",{"data-slot":"table",className:(0,c.cn)("w-full caption-bottom text-sm",a),...d})})},"TableBody",0,function({className:a,...d}){return(0,b.jsx)("tbody",{"data-slot":"table-body",className:(0,c.cn)("[&_tr:last-child]:border-0",a),...d})},"TableCell",0,function({className:a,...d}){return(0,b.jsx)("td",{"data-slot":"table-cell",className:(0,c.cn)("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0",a),...d})},"TableHead",0,function({className:a,...d}){return(0,b.jsx)("th",{"data-slot":"table-head",className:(0,c.cn)("h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0",a),...d})},"TableHeader",0,function({className:a,...d}){return(0,b.jsx)("thead",{"data-slot":"table-header",className:(0,c.cn)("[&_tr]:border-b",a),...d})},"TableRow",0,function({className:a,...d}){return(0,b.jsx)("tr",{"data-slot":"table-row",className:(0,c.cn)("border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted",a),...d})}])},70834,a=>{"use strict";var b=a.i(75086);let c={alert:!0},d="notification-prefs",e=new Set,f=null;function g(){if(f)return f;let a={...c};try{let b=JSON.parse(localStorage.getItem(d)??"{}");for(let c of Object.keys(a))"boolean"==typeof b[c]&&(a[c]=b[c])}catch{}return f=a}function h(a){a.key===d&&(f=null,e.forEach(a=>a()))}function i(a){return e.add(a),window.addEventListener("storage",h),()=>{e.delete(a),window.removeEventListener("storage",h)}}a.s(["setNotificationPrefs",0,function(a){f={...g(),...a};try{localStorage.setItem(d,JSON.stringify(f))}catch{}e.forEach(a=>a())},"useNotificationPrefs",0,function(){return(0,b.useSyncExternalStore)(i,g,()=>c)}])},9260,a=>{"use strict";var b=a.i(75086);let c=(...a)=>a.filter((a,b,c)=>!!a&&""!==a.trim()&&c.indexOf(a)===b).join(" ").trim(),d={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"},e=(0,b.createContext)({}),f=(0,b.forwardRef)(({color:a,size:f,width:g,height:h,strokeWidth:i,absoluteStrokeWidth:j,nonScalingStroke:k,className:l="",children:m,iconNode:n=[],icon:o={node:n,aliases:[],size:24},...p},q)=>{let{size:r=24,strokeWidth:s=2,absoluteStrokeWidth:t=!1,nonScalingStroke:u=!1,color:v="currentColor",className:w=""}=(0,b.useContext)(e)??{},x=!!m||(a=>{for(let b in a)if(b.startsWith("aria-")||"role"===b||"title"===b)return!0;return!1})(p),[y,z,A=[]]=function(a,b={}){return function(a,b={}){let e=b.attributeNames??{},f=a=>e[a]??a,g=a.size??a.width??d.width,h=a.size??a.height??d.height,i=a.aliases?.filter(a=>"string"==typeof a&&""!==a.trim()).map(a=>`lucide-${a}`)??[],j=[...a.name?[`lucide-${a.name}`]:[],...i],k=b.className?.split(" ").filter(Boolean)??[],l=!1===b.includeDefaultClasses?c(...k):c("lucide",...j,...k),m=b.absoluteStrokeWidth?Number(b.strokeWidth??d["stroke-width"])*Number(a.size??a.width??d.width)/Number(b.size??b.width??d.width):b.strokeWidth??d["stroke-width"];return["svg",{...Object.entries(d).reduce((a,[b,c])=>(a[f(b)]=c,a),{}),..."color"in b&&b.color&&{[f("stroke")]:b.color},..."size"in b&&null!=b.size&&{[f("width")]:b.size,[f("height")]:b.size},..."width"in b&&null!=b.width&&{[f("width")]:b.width},..."height"in b&&null!=b.height&&{[f("height")]:b.height},[f("stroke-width")]:m,...l&&{[f("class")]:l},[f("viewBox")]:`0 0 ${g} ${h}`,...!1===b.hasA11yProp?{[f("aria-hidden")]:"true"}:{},..."attributes"in b&&b.attributes},a.node.map(a=>{let[c,d,e]=a,g=b.nonScalingStroke?{[f("vector-effect")]:"non-scaling-stroke",...d}:d;return e?[c,g,e]:[c,g]})]}(a,{...b,attributeNames:{...b.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}(o,{color:a??v,width:g??f??r,height:h??f??r,strokeWidth:i??s,absoluteStrokeWidth:j??t,nonScalingStroke:k??u,className:c(w,l),hasA11yProp:x,attributes:p});return(0,b.createElement)(y,{ref:q,...z},[...A.map(([a,c])=>(0,b.createElement)(a,c)),...Array.isArray(m)?m:[m]])});a.s(["default",0,f],9260)}];
2
2
 
3
- //# sourceMappingURL=_1op3e_1._.js.map
3
+ //# sourceMappingURL=_1-l5u-_._.js.map
@@ -1,3 +1,3 @@
1
- module.exports=[56672,a=>{"use strict";var b=a.i(47350),c=a.i(3927),d=a.i(77896),e=a.i(75540),f=a.i(60663);let g={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};g.node;let h=(0,f.default)(g),i={name:"ellipsis",size:24,node:[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],aliases:["more-horizontal"]};function j({className:a,...c}){return(0,b.jsx)("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",className:(0,e.cn)(a),...c})}function k({className:a,...c}){return(0,b.jsx)("ol",{"data-slot":"breadcrumb-list",className:(0,e.cn)("flex flex-wrap items-center gap-1.5 text-sm wrap-break-word text-muted-foreground",a),...c})}function l({className:a,...c}){return(0,b.jsx)("li",{"data-slot":"breadcrumb-item",className:(0,e.cn)("inline-flex items-center gap-1",a),...c})}function m({className:a,render:b,...f}){return(0,d.useRender)({defaultTagName:"a",props:(0,c.mergeProps)({className:(0,e.cn)("transition-colors hover:text-foreground",a)},f),render:b,state:{slot:"breadcrumb-link"}})}function n({className:a,...c}){return(0,b.jsx)("span",{"data-slot":"breadcrumb-page",role:"link","aria-disabled":"true","aria-current":"page",className:(0,e.cn)("font-normal text-foreground",a),...c})}function o({children:a,className:c,...d}){return(0,b.jsx)("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:(0,e.cn)("[&>svg]:size-3.5",c),...d,children:a??(0,b.jsx)(h,{})})}i.node,(0,f.default)(i),a.s(["PerformanceBreadcrumb",0,function({pageName:a="Homepage"}){return(0,b.jsx)(j,{className:"mb-6",children:(0,b.jsxs)(k,{children:[(0,b.jsx)(l,{children:(0,b.jsx)(m,{href:"/performance",className:"text-gray-400 hover:text-white",children:"Performance"})}),(0,b.jsx)(o,{}),(0,b.jsx)(l,{children:(0,b.jsx)(n,{className:"text-white font-medium",children:a})})]})})}],56672)},45890,a=>{"use strict";var b=a.i(47350),c=a.i(56561),d=a.i(53840),e=a.i(92994),f=a.i(28185),g=a.i(50463),h=a.i(12351),i=a.i(43368),j=a.i(66219),k=a.i(56672),l=a.i(5800),m=a.i(75339);let n="Keys work, but no page events have arrived.";a.s(["PerformanceDetail",0,function({slug:a}){let{state:o,retry:p}=(0,h.useMetrics)(),q=(0,j.useThresholds)();if("loading"===o.status)return(0,b.jsx)(g.Skeleton,{className:"h-64 w-full bg-[#2d3748]"});if("error"===o.status)return(0,b.jsx)(e.EmptyState,{title:"Could not load metrics",reason:o.message,onRetry:p});if(!o.configured)return(0,b.jsx)(e.EmptyState,{title:"Connect your data",reason:"Add your New Relic or Sentry keys to see real numbers.",href:"/setup",cta:"Set up keys"});if(0===o.pages.length)return(0,b.jsx)(e.EmptyState,{});let r=o.pages.find(b=>b.slug===a);r||(0,d.notFound)();let s=a=>(0,h.provides)(o,a),t=s("loadTime")&&s("errorRate")&&s("apdex")&&(0,i.hasPerformance)(r),u={...r,status:t?(0,i.deriveStatus)(r.metrics,q):void 0},v=(0,i.hasData)(u),w=u.status?(0,i.breachReasons)(u,q):[],x=v?u.status?w.length?`Over a limit: ${w.join(", ")}.`:"Within your limits.":"No performance data from New Relic for this page yet.":n;return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(k.PerformanceBreadcrumb,{pageName:u.name}),(0,b.jsxs)("section",{"aria-labelledby":"page-status-title",className:"mb-6 flex flex-wrap items-center gap-x-4 gap-y-2",children:[(0,b.jsx)("h2",{id:"page-status-title",className:"sr-only",children:"Status"}),(0,b.jsx)(f.StatusBadge,{page:u}),(0,b.jsx)("p",{"data-slot":"status-sentence",className:"text-body text-dash-foreground",children:x}),(0,b.jsx)(c.default,{href:"/settings?tab=thresholds",className:"inline-flex min-h-11 items-center rounded-sm font-medium text-dash-foreground underline underline-offset-4 outline-none hover:text-dash-muted-light focus-visible:ring-3 focus-visible:ring-ring/50 md:min-h-8",children:"Edit limits"})]}),v?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(l.PerformanceKPIs,{page:u,has:s,thresholds:q}),u.metrics.errors&&(0,b.jsx)(m.RelatedErrorsList,{errors:u.metrics.errors.latest})]}):(0,b.jsx)(e.EmptyState,{reason:`${u.name} (${u.url}): ${n}`})]})}])},5800,a=>{"use strict";var b=a.i(47350),c=a.i(3130),d=a.i(84903),e=a.i(66958),f=a.i(23802),g=a.i(65261),h=a.i(7157),i=a.i(67436),j=a.i(77790),k=a.i(85608),l=a.i(43368);a.s(["PerformanceKPIs",0,function({page:a,has:m,thresholds:n}){let o=a.metrics,p=(0,l.hasPerformance)(a),q=(a,b)=>p&&void 0!==a?b(a):"—",r=[{needs:"loadTime",label:"Average Load Time",value:q(o.loadTime,j.formatDuration),icon:(0,b.jsx)(e.Clock,{className:"h-4 w-4 text-[#3ee0a1]"}),limit:"loadTime"},{needs:"errorRate",label:"Error Rate",value:q(o.errorRate,a=>`${a.toFixed(2)}%`),icon:(0,b.jsx)(d.Activity,{className:"h-4 w-4 text-[#ef4444]"}),limit:"errorRate"},{needs:"apdex",label:"Apdex",value:q(o.apdex,a=>a.toFixed(2)),icon:(0,b.jsx)(f.Gauge,{className:"h-4 w-4 text-[#3ee0a1]"}),limit:"apdex"},{needs:"traffic",label:(0,k.isSampled)([a])?"Page loads (sampled)":"Traffic Volume",value:p&&o.traffic?a.visitors:"—",icon:(0,b.jsx)(i.Zap,{className:"h-4 w-4 text-[#06b6d4]"})}];return(0,b.jsx)("div",{className:"grid gap-6 md:grid-cols-3 mb-8",children:r.filter(a=>m(a.needs)).map(a=>{let d=a.limit&&p?(0,l.metricStatus)(a.limit,o[a.limit],n):void 0,e="Warning"===d||"Critical"===d,f="Critical"===d?g.OctagonAlert:h.TriangleAlert;return(0,b.jsx)(c.Card,{className:"border-[#2d3748] bg-[#1a202c] shadow-md",children:(0,b.jsxs)(c.CardContent,{className:"p-6",children:[(0,b.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,b.jsx)("span",{className:"text-sm font-medium text-gray-400",children:a.label}),(0,b.jsx)("div",{className:"flex h-8 w-8 items-center justify-center rounded-lg bg-[#0f1419] border border-[#2d3748]",children:a.icon})]}),(0,b.jsxs)("span",{"data-over-limit":e||void 0,className:"text-3xl font-semibold text-white tracking-tight",children:[e&&(0,b.jsx)(f,{"aria-hidden":"true",className:`mr-2 inline size-6 align-[-2px] ${"Critical"===d?"text-dash-danger":"text-dash-warning"}`}),a.value,e&&(0,b.jsx)("span",{className:"sr-only",children:" over limit"})]}),a.limit&&(0,b.jsx)("span",{className:"mt-1 block text-body-sm text-dash-muted",children:(0,l.limitLabel)(a.limit,n)})]})},a.label)})})}])},75339,a=>{"use strict";var b=a.i(47350),c=a.i(3130),d=a.i(60663);let e={name:"circle-alert",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],aliases:["alert-circle"]};e.node;let f=(0,d.default)(e);var g=a.i(66958);a.s(["RelatedErrorsList",0,function({errors:a}){return(0,b.jsxs)(c.Card,{className:"border-[#2d3748] bg-[#1a202c] shadow-md w-full lg:w-[400px]",children:[(0,b.jsx)(c.CardHeader,{children:(0,b.jsxs)(c.CardTitle,{className:"text-[18px] font-bold text-white tracking-tight flex items-center gap-2",children:[(0,b.jsx)(f,{className:"h-5 w-5 text-[#ef4444]"}),"Related Errors"]})}),(0,b.jsx)(c.CardContent,{children:0===a.length?(0,b.jsx)("p",{className:"text-sm text-gray-400",children:"No errors reported for this page."}):(0,b.jsx)("div",{className:"flex flex-col gap-3",children:a.map(a=>(0,b.jsxs)("div",{className:"flex flex-col gap-2 rounded-lg border border-[#2d3748] bg-[#0f1419] p-4",children:[(0,b.jsx)("div",{className:"flex items-center justify-between",children:(0,b.jsxs)("span",{className:"text-xs font-mono text-gray-500",children:[a.count," events"]})}),(0,b.jsx)("p",{className:"text-sm font-medium text-gray-200 line-clamp-2",children:a.title}),(0,b.jsxs)("div",{className:"flex items-center gap-1 mt-1 text-xs text-gray-500",children:[(0,b.jsx)(g.Clock,{className:"h-3 w-3"}),(0,b.jsx)("span",{children:new Date(a.lastSeen).toLocaleString()})]})]},a.title))})})]})}],75339)},23802,a=>{"use strict";var b=a.i(60663);let c={name:"gauge",size:24,node:[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]};c.node;let d=(0,b.default)(c);a.s(["Gauge",0,d],23802)},67436,a=>{"use strict";var b=a.i(60663);let c={name:"zap",size:24,node:[["path",{d:"M15.914 4a1.5 1.5 0 00-2.474-1.561l-9 9A1.5 1.5 0 005.5 14h4.002a.5.5 0 01.471.666L8.086 20a1.5 1.5 0 002.475 1.56l9-9A1.5 1.5 0 0018.5 10h-3.997a.5.5 0 01-.472-.667z",key:"1v7up4"}]]};c.node;let d=(0,b.default)(c);a.s(["Zap",0,d],67436)}];
1
+ module.exports=[56672,a=>{"use strict";var b=a.i(47350),c=a.i(3927),d=a.i(77896),e=a.i(75540),f=a.i(60663);let g={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};g.node;let h=(0,f.default)(g),i={name:"ellipsis",size:24,node:[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],aliases:["more-horizontal"]};function j({className:a,...c}){return(0,b.jsx)("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",className:(0,e.cn)(a),...c})}function k({className:a,...c}){return(0,b.jsx)("ol",{"data-slot":"breadcrumb-list",className:(0,e.cn)("flex flex-wrap items-center gap-1.5 text-sm wrap-break-word text-muted-foreground",a),...c})}function l({className:a,...c}){return(0,b.jsx)("li",{"data-slot":"breadcrumb-item",className:(0,e.cn)("inline-flex items-center gap-1",a),...c})}function m({className:a,render:b,...f}){return(0,d.useRender)({defaultTagName:"a",props:(0,c.mergeProps)({className:(0,e.cn)("transition-colors hover:text-foreground",a)},f),render:b,state:{slot:"breadcrumb-link"}})}function n({className:a,...c}){return(0,b.jsx)("span",{"data-slot":"breadcrumb-page",role:"link","aria-disabled":"true","aria-current":"page",className:(0,e.cn)("font-normal text-foreground",a),...c})}function o({children:a,className:c,...d}){return(0,b.jsx)("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:(0,e.cn)("[&>svg]:size-3.5",c),...d,children:a??(0,b.jsx)(h,{})})}i.node,(0,f.default)(i),a.s(["PerformanceBreadcrumb",0,function({pageName:a="Homepage"}){return(0,b.jsx)(j,{className:"mb-6",children:(0,b.jsxs)(k,{children:[(0,b.jsx)(l,{children:(0,b.jsx)(m,{href:"/performance",className:"text-gray-400 hover:text-white",children:"Performance"})}),(0,b.jsx)(o,{}),(0,b.jsx)(l,{children:(0,b.jsx)(n,{className:"text-white font-medium",children:a})})]})})}],56672)},45890,a=>{"use strict";var b=a.i(47350),c=a.i(56561),d=a.i(53840),e=a.i(92994),f=a.i(28185),g=a.i(50463),h=a.i(12351),i=a.i(43368),j=a.i(66219),k=a.i(56672),l=a.i(5800),m=a.i(75339);let n="Keys work, but no page events have arrived.";a.s(["PerformanceDetail",0,function({slug:a}){let{state:o,retry:p}=(0,h.useMetrics)(),q=(0,j.useThresholds)();if("loading"===o.status)return(0,b.jsx)(g.Skeleton,{className:"h-64 w-full bg-[#2d3748]"});if("error"===o.status)return(0,b.jsx)(e.EmptyState,{title:"Could not load metrics",reason:o.message,onRetry:p});if(!o.configured)return(0,b.jsx)(e.EmptyState,{title:"Connect your data",reason:"Add your New Relic or Sentry keys to see real numbers.",href:"/setup",cta:"Set up keys"});if(0===o.pages.length)return(0,b.jsx)(e.EmptyState,{});let r=o.pages.find(b=>b.slug===a);r||(0,d.notFound)();let s=a=>(0,h.provides)(o,a),t=s("loadTime")&&s("errorRate")&&s("apdex")&&(0,i.hasPerformance)(r),u={...r,status:t?(0,i.deriveStatus)(r.metrics,q):void 0},v=(0,i.hasData)(u),w=u.status?(0,i.breachReasons)(u,q):[],x=v?u.status?w.length?`Over a limit: ${w.join(", ")}.`:"Within your limits.":"No performance data from New Relic for this page yet.":n;return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(k.PerformanceBreadcrumb,{pageName:u.name}),(0,b.jsxs)("section",{"aria-labelledby":"page-status-title",className:"mb-6 flex flex-wrap items-center gap-x-4 gap-y-2",children:[(0,b.jsx)("h2",{id:"page-status-title",className:"sr-only",children:"Status"}),(0,b.jsx)(f.StatusBadge,{page:u}),(0,b.jsx)("p",{"data-slot":"status-sentence",className:"text-body text-dash-foreground",children:x}),(0,b.jsx)(c.default,{href:"/settings?tab=thresholds",className:"inline-flex min-h-11 items-center rounded-sm font-medium text-dash-foreground underline underline-offset-4 outline-none hover:text-dash-muted-light focus-visible:ring-3 focus-visible:ring-ring/50 md:min-h-8",children:"Edit limits"})]}),v?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(l.PerformanceKPIs,{page:u,has:s,thresholds:q}),u.metrics.errors&&(0,b.jsx)(m.RelatedErrorsList,{errors:u.metrics.errors.latest})]}):(0,b.jsx)(e.EmptyState,{reason:`${u.name} (${u.url}): ${n}`})]})}])},5800,a=>{"use strict";var b=a.i(47350),c=a.i(3130),d=a.i(84903),e=a.i(66958),f=a.i(23802),g=a.i(65261),h=a.i(7157),i=a.i(67436),j=a.i(77790),k=a.i(85608),l=a.i(43368);a.s(["PerformanceKPIs",0,function({page:a,has:m,thresholds:n}){let o=a.metrics,p=(0,l.hasPerformance)(a),q=(a,b)=>p&&void 0!==a?b(a):"—",r=[{needs:"loadTime",label:"Average Load Time",value:q(o.loadTime,j.formatDuration),icon:(0,b.jsx)(e.Clock,{className:"h-4 w-4 text-[#3ee0a1]"}),limit:"loadTime"},{needs:"errorRate",label:"Error Rate",value:q(o.errorRate,a=>`${a.toFixed(2)}%`),icon:(0,b.jsx)(d.Activity,{className:"h-4 w-4 text-[#ef4444]"}),limit:"errorRate"},{needs:"apdex",label:"Apdex",value:q(o.apdex,a=>a.toFixed(2)),icon:(0,b.jsx)(f.Gauge,{className:"h-4 w-4 text-[#3ee0a1]"}),limit:"apdex"},{needs:"traffic",label:(0,k.isSampled)([a])?"Page loads (sampled)":"Traffic Volume",value:p&&o.traffic?a.visitors:"—",icon:(0,b.jsx)(i.Zap,{className:"h-4 w-4 text-[#06b6d4]"})}];return(0,b.jsx)("div",{className:"grid gap-6 md:grid-cols-3 mb-8",children:r.filter(a=>m(a.needs)).map(a=>{let d=a.limit&&p?(0,l.metricStatus)(a.limit,o[a.limit],n):void 0,e="Warning"===d||"Critical"===d,f="Critical"===d?g.OctagonAlert:h.TriangleAlert;return(0,b.jsx)(c.Card,{className:"border-[#2d3748] bg-[#1a202c] shadow-md",children:(0,b.jsxs)(c.CardContent,{className:"p-6",children:[(0,b.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,b.jsx)("span",{className:"text-sm font-medium text-gray-400",children:a.label}),(0,b.jsx)("div",{className:"flex h-8 w-8 items-center justify-center rounded-lg bg-[#0f1419] border border-[#2d3748]",children:a.icon})]}),(0,b.jsxs)("span",{"data-over-limit":e||void 0,className:"text-3xl font-semibold text-white tracking-tight",children:[e&&(0,b.jsx)(f,{"aria-hidden":"true",className:`mr-2 inline size-6 align-[-2px] ${"Critical"===d?"text-dash-danger":"text-dash-warning"}`}),a.value,e&&(0,b.jsx)("span",{className:"sr-only",children:" over limit"})]}),a.limit&&(0,b.jsx)("span",{className:"mt-1 block text-body-sm text-dash-muted",children:(0,l.limitLabel)(a.limit,n)})]})},a.label)})})}])},75339,a=>{"use strict";var b=a.i(47350),c=a.i(3130),d=a.i(60663);let e={name:"circle-alert",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],aliases:["alert-circle"]};e.node;let f=(0,d.default)(e);var g=a.i(66958);a.s(["RelatedErrorsList",0,function({errors:a}){return(0,b.jsxs)(c.Card,{className:"border-[#2d3748] bg-[#1a202c] shadow-md w-full lg:w-[400px]",children:[(0,b.jsx)(c.CardHeader,{children:(0,b.jsxs)(c.CardTitle,{className:"text-[18px] font-bold text-white tracking-tight flex items-center gap-2",children:[(0,b.jsx)(f,{className:"h-5 w-5 text-[#ef4444]"}),"Related Errors"]})}),(0,b.jsx)(c.CardContent,{children:0===a.length?(0,b.jsx)("p",{className:"text-sm text-gray-400",children:"No errors reported for this page."}):(0,b.jsx)("div",{className:"flex flex-col gap-3",children:a.map(a=>(0,b.jsxs)("div",{className:"flex flex-col gap-2 rounded-lg border border-[#2d3748] bg-[#0f1419] p-4",children:[(0,b.jsx)("div",{className:"flex items-center justify-between",children:(0,b.jsxs)("span",{className:"text-xs font-mono text-gray-500",children:[a.count," events"]})}),(0,b.jsx)("p",{className:"text-sm font-medium text-gray-200 line-clamp-2",children:a.title}),(0,b.jsxs)("div",{className:"flex items-center gap-1 mt-1 text-xs text-gray-500",children:[(0,b.jsx)(g.Clock,{className:"h-3 w-3"}),(0,b.jsx)("span",{children:new Date(a.lastSeen).toLocaleString()})]})]},a.title))})})]})}],75339)},67436,a=>{"use strict";var b=a.i(60663);let c={name:"zap",size:24,node:[["path",{d:"M15.914 4a1.5 1.5 0 00-2.474-1.561l-9 9A1.5 1.5 0 005.5 14h4.002a.5.5 0 01.471.666L8.086 20a1.5 1.5 0 002.475 1.56l9-9A1.5 1.5 0 0018.5 10h-3.997a.5.5 0 01-.472-.667z",key:"1v7up4"}]]};c.node;let d=(0,b.default)(c);a.s(["Zap",0,d],67436)}];
2
2
 
3
- //# sourceMappingURL=_0r3gp17._.js.map
3
+ //# sourceMappingURL=_12brazw._.js.map
@@ -0,0 +1,3 @@
1
+ module.exports=[92994,a=>{"use strict";var b=a.i(47350),c=a.i(56561),d=a.i(3130),e=a.i(40695);a.s(["EmptyState",0,function({title:a="No data yet",reason:f="Keys work, but no page events have arrived.",href:g="/connect",cta:h="Send your first events",onRetry:i}){return(0,b.jsx)(d.Card,{className:"border-[#2d3748] bg-[#1a202c] shadow-md",children:(0,b.jsxs)(d.CardContent,{className:"flex flex-col items-center gap-3 p-10 text-center",children:[(0,b.jsx)("h3",{className:"text-lg font-semibold text-white",children:a}),(0,b.jsx)("p",{className:"max-w-md text-sm text-gray-400",children:f}),(0,b.jsxs)("div",{className:"flex gap-3",children:[g&&(0,b.jsx)(c.default,{href:g,className:(0,e.buttonVariants)(),children:h}),i&&(0,b.jsx)(e.Button,{variant:"outline",onClick:i,children:"Retry"})]})]})})}])},90832,a=>{"use strict";var b=a.i(47350),c=a.i(75086),d=a.i(40695),e=a.i(12351),f=a.i(93673);let g="Could not reach the dashboard server.";a.s(["LighthouseRun",0,function(){let[a,h]=(0,c.useState)(null),[i,j]=(0,c.useState)(null),[k,l]=(0,c.useState)(0),m=(0,c.useRef)(!1);async function n(){try{let a=await fetch("/api/lighthouse",{method:"POST",headers:{"Content-Type":"application/json"},body:"{}"});if(409===a.status)return j("Set a project address on Setup first.");if(!a.ok)throw Error();h(await a.json()),j(null)}catch{j(g)}}if((0,c.useEffect)(()=>{let a=!1;return fetch("/api/lighthouse").then(a=>a.ok?a.json():Promise.reject()).then(b=>{a||(h(b),j(null))}).catch(()=>{a||j(g)}),()=>{a=!0}},[k]),(0,c.useEffect)(()=>{let b=a?.state==="running";if(m.current&&!b&&window.dispatchEvent(new Event(e.METRICS_REFRESH_EVENT)),m.current=b,!a?.target)return;let c=setTimeout(()=>l(a=>a+1),a?.state==="running"?2e3:3e4);return()=>clearTimeout(c)},[a,k]),a&&!a.target)return null;let o=a?.state==="running",p=a?o?a.total?`Running ${Math.min(a.done+1,a.total)} of ${a.total}`:"Finding pages…":"error"===a.state?a.error:a.lastRunAt?`Last run ${new Date(a.lastRunAt).toLocaleString()}`:`Not run yet. ${f.LIGHTHOUSE_WAIT}`:"";return(0,b.jsxs)("div",{className:"mt-4 flex flex-wrap items-center gap-4",children:[a&&(0,b.jsx)(d.Button,{type:"button",onClick:n,disabled:o,children:o?"Running…":"Run now"}),(0,b.jsxs)("span",{role:"status","aria-live":"polite",className:`text-sm ${a?.state==="error"?"text-[#f87171]":"text-gray-400"}`,children:[p,o&&(0,b.jsx)("span",{className:"block text-xs text-gray-500",children:f.LIGHTHOUSE_WAIT})]}),i&&(0,b.jsx)("span",{className:"text-sm text-[#f87171]",children:i})]})}])},13392,a=>{"use strict";var b=a.i(47350),c=a.i(53840),d=a.i(88237),e=a.i(3130),f=a.i(50463),g=a.i(92994),h=a.i(12351),i=a.i(43368),j=a.i(93673);a.s(["ToolInsights",0,function({tool:a,empty:k}){let{state:l,retry:m}=(0,h.useMetrics)(),n=(0,c.useRouter)(),{label:o,stats:p}=j.TOOLS[a],q=(0,j.toolColumns)(a);if("loading"===l.status)return(0,b.jsx)(f.Skeleton,{className:"mt-6 h-64 w-full bg-[#2d3748]"});if("error"===l.status)return(0,b.jsx)(g.EmptyState,{title:"Could not load metrics",reason:l.message,onRetry:m});if(!l.configured)return(0,b.jsx)(g.EmptyState,{title:"Connect your data",reason:"Add your New Relic or Sentry keys to see real numbers.",href:"/setup",cta:"Set up keys"});if(l.failed.includes(a))return(0,b.jsx)(g.EmptyState,{title:`Could not load ${o} data`,reason:"The request failed. Your other data is unaffected.",onRetry:m});let r=l.pages.filter(i.hasData);return r.length?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{className:"grid gap-6 sm:grid-cols-2 lg:grid-cols-4 mb-8 mt-4",children:p(r).map(a=>(0,b.jsx)(e.Card,{className:"border-[#2d3748] bg-[#1a202c] shadow-md",children:(0,b.jsxs)(e.CardContent,{className:"p-6",children:[(0,b.jsx)("span",{className:"text-sm font-medium text-gray-400",children:a.label}),(0,b.jsx)("div",{className:"mt-4 truncate text-3xl font-bold text-white tracking-tight",children:a.value})]})},a.label))}),(0,b.jsxs)(e.Card,{className:"border-[#2d3748] bg-[#1a202c] shadow-md flex-1",children:[(0,b.jsx)(e.CardHeader,{children:(0,b.jsxs)(e.CardTitle,{className:"text-[18px] font-bold text-white tracking-tight",children:[o," by Page"]})}),(0,b.jsx)(e.CardContent,{children:(0,b.jsx)("div",{className:"rounded-md border border-[#2d3748] overflow-hidden",children:(0,b.jsxs)(d.Table,{children:[(0,b.jsx)(d.TableHeader,{className:"bg-[#0f1419]",children:(0,b.jsxs)(d.TableRow,{className:"border-[#2d3748] hover:bg-transparent",children:[(0,b.jsx)(d.TableHead,{className:"text-gray-400",children:"Page Name"}),(0,b.jsx)(d.TableHead,{className:"text-gray-400",children:"Path"}),q.map(a=>(0,b.jsx)(d.TableHead,{className:"text-gray-400",children:a.header},a.header))]})}),(0,b.jsx)(d.TableBody,{children:l.pages.map(a=>(0,b.jsxs)(d.TableRow,{className:"border-[#2d3748] hover:bg-white/5 transition-colors cursor-pointer",onClick:()=>n.push(`/performance/${a.slug}`),children:[(0,b.jsx)(d.TableCell,{className:"font-medium text-white",children:a.name}),(0,b.jsx)(d.TableCell,{className:"text-gray-500 font-mono text-xs",children:a.url}),q.map(c=>(0,b.jsx)(d.TableCell,{className:"max-w-[320px] truncate text-gray-400",children:(0,i.hasData)(a)?c.cell(a):"—"},c.header))]},a.slug))})]})})})]})]}):k?(0,b.jsx)(g.EmptyState,{title:k.title,reason:k.reason,href:null}):(0,b.jsx)(g.EmptyState,{})}])},3130,a=>{"use strict";var b=a.i(47350),c=a.i(75540);a.s(["Card",0,function({className:a,size:d="default",...e}){return(0,b.jsx)("div",{"data-slot":"card","data-size":d,className:(0,c.cn)("group/card flex flex-col gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground ring-1 ring-foreground/10 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",a),...e})},"CardContent",0,function({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"card-content",className:(0,c.cn)("px-(--card-spacing)",a),...d})},"CardDescription",0,function({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"card-description",className:(0,c.cn)("text-sm text-muted-foreground",a),...d})},"CardHeader",0,function({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"card-header",className:(0,c.cn)("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-(--card-spacing) has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-(--card-spacing)",a),...d})},"CardTitle",0,function({className:a,...d}){return(0,b.jsx)("h3",{"data-slot":"card-title",className:(0,c.cn)("title-enter font-heading text-base leading-snug font-medium group-data-[size=sm]/card:text-sm",a),...d})}])},88237,a=>{"use strict";var b=a.i(47350),c=a.i(75540);a.s(["Table",0,function({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:(0,b.jsx)("table",{"data-slot":"table",className:(0,c.cn)("w-full caption-bottom text-sm",a),...d})})},"TableBody",0,function({className:a,...d}){return(0,b.jsx)("tbody",{"data-slot":"table-body",className:(0,c.cn)("[&_tr:last-child]:border-0",a),...d})},"TableCell",0,function({className:a,...d}){return(0,b.jsx)("td",{"data-slot":"table-cell",className:(0,c.cn)("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0",a),...d})},"TableHead",0,function({className:a,...d}){return(0,b.jsx)("th",{"data-slot":"table-head",className:(0,c.cn)("h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0",a),...d})},"TableHeader",0,function({className:a,...d}){return(0,b.jsx)("thead",{"data-slot":"table-header",className:(0,c.cn)("[&_tr]:border-b",a),...d})},"TableRow",0,function({className:a,...d}){return(0,b.jsx)("tr",{"data-slot":"table-row",className:(0,c.cn)("border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted",a),...d})}])},9260,a=>{"use strict";var b=a.i(75086);let c=(...a)=>a.filter((a,b,c)=>!!a&&""!==a.trim()&&c.indexOf(a)===b).join(" ").trim(),d={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"},e=(0,b.createContext)({}),f=(0,b.forwardRef)(({color:a,size:f,width:g,height:h,strokeWidth:i,absoluteStrokeWidth:j,nonScalingStroke:k,className:l="",children:m,iconNode:n=[],icon:o={node:n,aliases:[],size:24},...p},q)=>{let{size:r=24,strokeWidth:s=2,absoluteStrokeWidth:t=!1,nonScalingStroke:u=!1,color:v="currentColor",className:w=""}=(0,b.useContext)(e)??{},x=!!m||(a=>{for(let b in a)if(b.startsWith("aria-")||"role"===b||"title"===b)return!0;return!1})(p),[y,z,A=[]]=function(a,b={}){return function(a,b={}){let e=b.attributeNames??{},f=a=>e[a]??a,g=a.size??a.width??d.width,h=a.size??a.height??d.height,i=a.aliases?.filter(a=>"string"==typeof a&&""!==a.trim()).map(a=>`lucide-${a}`)??[],j=[...a.name?[`lucide-${a.name}`]:[],...i],k=b.className?.split(" ").filter(Boolean)??[],l=!1===b.includeDefaultClasses?c(...k):c("lucide",...j,...k),m=b.absoluteStrokeWidth?Number(b.strokeWidth??d["stroke-width"])*Number(a.size??a.width??d.width)/Number(b.size??b.width??d.width):b.strokeWidth??d["stroke-width"];return["svg",{...Object.entries(d).reduce((a,[b,c])=>(a[f(b)]=c,a),{}),..."color"in b&&b.color&&{[f("stroke")]:b.color},..."size"in b&&null!=b.size&&{[f("width")]:b.size,[f("height")]:b.size},..."width"in b&&null!=b.width&&{[f("width")]:b.width},..."height"in b&&null!=b.height&&{[f("height")]:b.height},[f("stroke-width")]:m,...l&&{[f("class")]:l},[f("viewBox")]:`0 0 ${g} ${h}`,...!1===b.hasA11yProp?{[f("aria-hidden")]:"true"}:{},..."attributes"in b&&b.attributes},a.node.map(a=>{let[c,d,e]=a,g=b.nonScalingStroke?{[f("vector-effect")]:"non-scaling-stroke",...d}:d;return e?[c,g,e]:[c,g]})]}(a,{...b,attributeNames:{...b.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}(o,{color:a??v,width:g??f??r,height:h??f??r,strokeWidth:i??s,absoluteStrokeWidth:j??t,nonScalingStroke:k??u,className:c(w,l),hasA11yProp:x,attributes:p});return(0,b.createElement)(y,{ref:q,...z},[...A.map(([a,c])=>(0,b.createElement)(a,c)),...Array.isArray(m)?m:[m]])});a.s(["default",0,f],9260)}];
2
+
3
+ //# sourceMappingURL=_1cfwie5._.js.map
@@ -0,0 +1,3 @@
1
+ module.exports=[47872,a=>{"use strict";var b=a.i(47350),c=a.i(75086),d=a.i(3130),e=a.i(40695),f=a.i(5522);let g=[{id:"gemini",label:"Google Gemini",help:"Create a key at aistudio.google.com/apikey."},{id:"claude",label:"Anthropic Claude",help:"Create a key at console.anthropic.com > API keys."},{id:"openai",label:"OpenAI",help:"Create a key at platform.openai.com/api-keys."}];a.s(["AiKeyForm",0,function(){let[a,h]=(0,c.useState)(g[0].id),[i,j]=(0,c.useState)(""),[k,l]=(0,c.useState)(null),[m,n]=(0,c.useState)({}),[o,p]=(0,c.useState)(null),[q,r]=(0,c.useState)(!1);async function s(b){b.preventDefault(),r(!0),p(null);try{let b=await fetch("/api/setup/ai",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:a,key:i})}),c=await b.json();c.saved?(j(""),l(a),n({...m,[a]:!0}),p({ok:!0,text:"Saved. AI suggestions now use this provider. No restart needed."})):p({ok:!1,text:c.error??"Nothing was saved."})}catch{p({ok:!1,text:"Could not reach the dashboard server."})}finally{r(!1)}}(0,c.useEffect)(()=>{fetch("/api/setup/ai").then(a=>a.json()).then(a=>{a.keys&&(n(a.keys),l(a.provider),a.provider&&h(a.provider))}).catch(()=>{})},[]);let t=g.find(b=>b.id===a);return(0,b.jsxs)(d.Card,{className:"border-[#2d3748] bg-[#1a202c] shadow-md max-w-2xl mt-6",children:[(0,b.jsxs)(d.CardHeader,{children:[(0,b.jsx)(d.CardTitle,{className:"text-[18px] font-bold text-white tracking-tight",children:"AI suggestions (optional)"}),(0,b.jsx)(d.CardDescription,{className:"text-sm text-gray-400",children:"Add a Gemini, Claude or OpenAI key to get AI insights and recommendations for your pages. Only page names, load times and error counts are sent to the provider you pick. Without a key, the dashboard shows sample suggestions."})]}),(0,b.jsx)(d.CardContent,{children:(0,b.jsxs)("form",{onSubmit:s,className:"flex flex-col gap-5",children:[(0,b.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,b.jsx)("label",{htmlFor:"ai-provider",className:"text-sm font-medium text-gray-300",children:"Provider"}),(0,b.jsx)("select",{id:"ai-provider",value:a,onChange:a=>h(a.target.value),className:"h-9 rounded-md border border-[#2d3748] bg-[#0f1419] px-3 text-sm text-gray-200",children:g.map(a=>(0,b.jsxs)("option",{value:a.id,children:[a.label,k===a.id?" (in use)":m[a.id]?" (key saved)":""]},a.id))})]}),(0,b.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,b.jsxs)("label",{htmlFor:"ai-key",className:"text-sm font-medium text-gray-300",children:[t.label," API key ",m[a]&&(0,b.jsx)("span",{className:"ml-2 text-xs text-[#3ee0a1]",children:"✓ Set"})]}),(0,b.jsx)(f.Input,{id:"ai-key",type:"password",autoComplete:"off",spellCheck:!1,placeholder:m[a]?"•••••••• (type to replace)":"",value:i,onChange:a=>j(a.target.value),"aria-describedby":"ai-key-help",className:"bg-[#0f1419] border-[#2d3748] text-gray-200 font-mono text-xs"}),(0,b.jsx)("p",{id:"ai-key-help",className:"text-xs text-gray-400",children:t.help})]}),(0,b.jsxs)("div",{className:"flex items-center gap-4",children:[(0,b.jsx)(e.Button,{type:"submit",disabled:q||!i.trim(),children:q?"Checking…":"Check and save"}),(0,b.jsx)("span",{"aria-live":"polite",className:`text-sm ${o?.ok?"text-[#3ee0a1]":"text-[#f87171]"}`,children:o?.text})]})]})})]})}])},46334,a=>{"use strict";var b=a.i(47350),c=a.i(75086),d=a.i(56561),e=a.i(3130),f=a.i(40695),g=a.i(5522),h=a.i(54161),i=a.i(93673);let j=i.TOOL_IDS.flatMap(a=>{let{required:b,anyOf:c=[]}=i.TOOLS[a].keys;return[...b.map(b=>({name:b,tool:a,anyOf:!1,...i.KEY_FIELDS[b]})),...c.map(b=>({name:b,tool:a,anyOf:!0,...i.KEY_FIELDS[b]}))]});a.s(["SetupForm",0,function(){let[a,k]=(0,c.useState)({}),[l,m]=(0,c.useState)({}),[n,o]=(0,c.useState)({}),[p,q]=(0,c.useState)(null),[r,s]=(0,c.useState)(!1),[t,u]=(0,c.useState)(!1),[v,w]=(0,c.useState)(null),x=(0,c.useRef)(null);async function y(b){b.preventDefault(),s(!0),q(null);try{let b=await fetch("/api/setup",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)}),c=await b.json(),d=c.results??{};o(d);let e=j.find(a=>d[a.name]&&!d[a.name].ok);if(e&&setTimeout(()=>x.current?.querySelector(`#${e.name}`)?.focus(),0),c.saved){u(!0),k({});let b=new Set(j.filter(b=>a[b.name]?.trim()).map(a=>a.tool));m(c=>({...c,...Object.fromEntries(j.filter(c=>b.has(c.tool)&&(!c.anyOf||a[c.name]?.trim())).map(a=>[a.name,!0]))}));let c=i.TOOL_IDS.filter(a=>b.has(a)||v?.includes(a));w(c);let d=a.LIGHTHOUSE_TARGET?.trim()?` Lighthouse is now running on your project; follow it on the Lighthouse CI page. ${i.LIGHTHOUSE_WAIT}`:"";q({ok:!0,text:`Saved. ${c.map(a=>i.TOOLS[a].label).join(" and ")} ${c.length>1?"are":"is"} connected. No restart needed.${d}`})}else q({ok:!1,text:c.error??"Nothing was saved. Fix the fields marked below."})}catch{q({ok:!1,text:"Could not reach the dashboard server."})}finally{s(!1)}}return(0,c.useEffect)(()=>{fetch("/api/setup").then(a=>a.json()).then(a=>{a.keys&&m(a.keys),Array.isArray(a.tools)?w(a.tools):a.error&&q({ok:!1,text:a.error})}).catch(()=>{})},[]),(0,b.jsxs)(e.Card,{className:"border-[#2d3748] bg-[#1a202c] shadow-md max-w-2xl",children:[(0,b.jsxs)(e.CardHeader,{children:[(0,b.jsx)(e.CardTitle,{className:"text-[18px] font-bold text-white tracking-tight",children:"Connect your tools"}),(0,b.jsx)(e.CardDescription,{className:"text-sm text-gray-400",children:"Add keys for the tools you use. You only need one. Keys are checked once, saved to .env.local in this folder, and never shown again."})]}),(0,b.jsx)(e.CardContent,{children:(0,b.jsxs)("form",{ref:x,onSubmit:y,className:"flex flex-col gap-5",children:[i.TOOL_IDS.map(c=>(0,b.jsxs)("fieldset",{id:c,className:"flex flex-col gap-5 rounded-lg border border-[#2d3748] p-4",children:[(0,b.jsxs)("legend",{className:"flex items-center gap-2 px-2 text-sm font-semibold text-white",children:[i.TOOLS[c].label,v?.includes(c)?(0,b.jsx)(h.Badge,{variant:"outline",className:"border-[#3ee0a1] text-[#3ee0a1] bg-[#3ee0a1]/10",children:"✓ Connected"}):(0,b.jsx)(h.Badge,{variant:"outline",className:"border-[#4a5568] text-gray-400",children:"Optional"})]}),j.filter(a=>a.tool===c).map(c=>{let d=n[c.name];return(0,b.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,b.jsxs)("label",{htmlFor:c.name,className:"text-sm font-medium text-gray-300",children:[c.label," ",l[c.name]&&(0,b.jsx)("span",{className:"ml-2 text-xs text-[#3ee0a1]",children:"✓ Set"})]}),(0,b.jsx)(g.Input,{id:c.name,name:c.name,type:c.secret?"password":"text",autoComplete:"off",spellCheck:!1,placeholder:l[c.name]?"•••••••• (leave blank to keep, type to replace)":c.placeholder??"",value:a[c.name]??"",onChange:b=>k({...a,[c.name]:b.target.value}),"aria-invalid":!!d&&!d.ok||void 0,"aria-describedby":`${c.name}-help ${c.name}-result`,className:"bg-[#0f1419] border-[#2d3748] text-gray-200 font-mono text-xs"}),(0,b.jsx)("p",{id:`${c.name}-help`,className:"text-xs text-gray-400",children:c.help}),(0,b.jsxs)("div",{id:`${c.name}-result`,"aria-live":"polite",children:[d&&!d.ok&&(0,b.jsxs)("p",{className:"text-xs text-[#f87171]",children:["✗ ",d.error]}),d?.ok&&(0,b.jsx)("p",{className:"text-xs text-[#3ee0a1]",children:"✓ Checked"}),d?.notice&&(0,b.jsx)("p",{className:"text-xs text-[#fbbf24]",children:d.notice})]})]},c.name)}),i.TOOLS[c].setupNote&&(0,b.jsx)("p",{className:"text-xs text-gray-400",children:i.TOOLS[c].setupNote})]},c)),(0,b.jsxs)("div",{className:"flex items-center gap-4",children:[(0,b.jsx)(f.Button,{type:"submit",disabled:r||!j.some(b=>a[b.name]?.trim()),children:r?"Checking…":"Check and save"}),(0,b.jsx)("span",{"aria-live":"polite",className:`text-sm ${p?.ok?"text-[#3ee0a1]":"text-[#f87171]"}`,children:p?.text}),!j.some(b=>a[b.name]?.trim())&&!p&&!t&&(0,b.jsx)("span",{className:"text-sm text-gray-400",children:v?.length?"Type a new key to change what is saved.":"Fill in every field for at least one tool."}),t&&(0,b.jsx)(d.default,{href:"/connect",className:(0,f.buttonVariants)({variant:"outline"}),children:"Next: connect your app"})]})]})})]})}])},54161,a=>{"use strict";var b=a.i(3927),c=a.i(77896),d=a.i(42261),e=a.i(75540);let f=(0,d.cva)("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",destructive:"bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",outline:"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",ghost:"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",link:"text-primary underline-offset-4 hover:underline"}},defaultVariants:{variant:"default"}});a.s(["Badge",0,function({className:a,variant:d="default",render:g,...h}){return(0,c.useRender)({defaultTagName:"span",props:(0,b.mergeProps)({className:(0,e.cn)(f({variant:d}),a)},h),render:g,state:{slot:"badge",variant:d}})}])},3130,a=>{"use strict";var b=a.i(47350),c=a.i(75540);a.s(["Card",0,function({className:a,size:d="default",...e}){return(0,b.jsx)("div",{"data-slot":"card","data-size":d,className:(0,c.cn)("group/card flex flex-col gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground ring-1 ring-foreground/10 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",a),...e})},"CardContent",0,function({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"card-content",className:(0,c.cn)("px-(--card-spacing)",a),...d})},"CardDescription",0,function({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"card-description",className:(0,c.cn)("text-sm text-muted-foreground",a),...d})},"CardHeader",0,function({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"card-header",className:(0,c.cn)("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-(--card-spacing) has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-(--card-spacing)",a),...d})},"CardTitle",0,function({className:a,...d}){return(0,b.jsx)("h3",{"data-slot":"card-title",className:(0,c.cn)("title-enter font-heading text-base leading-snug font-medium group-data-[size=sm]/card:text-sm",a),...d})}])},9260,a=>{"use strict";var b=a.i(75086);let c=(...a)=>a.filter((a,b,c)=>!!a&&""!==a.trim()&&c.indexOf(a)===b).join(" ").trim(),d={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"},e=(0,b.createContext)({}),f=(0,b.forwardRef)(({color:a,size:f,width:g,height:h,strokeWidth:i,absoluteStrokeWidth:j,nonScalingStroke:k,className:l="",children:m,iconNode:n=[],icon:o={node:n,aliases:[],size:24},...p},q)=>{let{size:r=24,strokeWidth:s=2,absoluteStrokeWidth:t=!1,nonScalingStroke:u=!1,color:v="currentColor",className:w=""}=(0,b.useContext)(e)??{},x=!!m||(a=>{for(let b in a)if(b.startsWith("aria-")||"role"===b||"title"===b)return!0;return!1})(p),[y,z,A=[]]=function(a,b={}){return function(a,b={}){let e=b.attributeNames??{},f=a=>e[a]??a,g=a.size??a.width??d.width,h=a.size??a.height??d.height,i=a.aliases?.filter(a=>"string"==typeof a&&""!==a.trim()).map(a=>`lucide-${a}`)??[],j=[...a.name?[`lucide-${a.name}`]:[],...i],k=b.className?.split(" ").filter(Boolean)??[],l=!1===b.includeDefaultClasses?c(...k):c("lucide",...j,...k),m=b.absoluteStrokeWidth?Number(b.strokeWidth??d["stroke-width"])*Number(a.size??a.width??d.width)/Number(b.size??b.width??d.width):b.strokeWidth??d["stroke-width"];return["svg",{...Object.entries(d).reduce((a,[b,c])=>(a[f(b)]=c,a),{}),..."color"in b&&b.color&&{[f("stroke")]:b.color},..."size"in b&&null!=b.size&&{[f("width")]:b.size,[f("height")]:b.size},..."width"in b&&null!=b.width&&{[f("width")]:b.width},..."height"in b&&null!=b.height&&{[f("height")]:b.height},[f("stroke-width")]:m,...l&&{[f("class")]:l},[f("viewBox")]:`0 0 ${g} ${h}`,...!1===b.hasA11yProp?{[f("aria-hidden")]:"true"}:{},..."attributes"in b&&b.attributes},a.node.map(a=>{let[c,d,e]=a,g=b.nonScalingStroke?{[f("vector-effect")]:"non-scaling-stroke",...d}:d;return e?[c,g,e]:[c,g]})]}(a,{...b,attributeNames:{...b.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}(o,{color:a??v,width:g??f??r,height:h??f??r,strokeWidth:i??s,absoluteStrokeWidth:j??t,nonScalingStroke:k??u,className:c(w,l),hasA11yProp:x,attributes:p});return(0,b.createElement)(y,{ref:q,...z},[...A.map(([a,c])=>(0,b.createElement)(a,c)),...Array.isArray(m)?m:[m]])});a.s(["default",0,f],9260)}];
2
+
3
+ //# sourceMappingURL=_1d39141._.js.map