1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5241],{5557:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(22222).A)("chart-bar",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M7 16h8",key:"srdodz"}],["path",{d:"M7 11h12",key:"127s9w"}],["path",{d:"M7 6h3",key:"w9rmul"}]])},11012:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(22222).A)("chart-no-axes-column-increasing",[["path",{d:"M5 21v-6",key:"1hz6c0"}],["path",{d:"M12 21V9",key:"uvy0l4"}],["path",{d:"M19 21V3",key:"11j9sm"}]])},13431:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(22222).A)("chevrons-left",[["path",{d:"m11 17-5-5 5-5",key:"13zhaf"}],["path",{d:"m18 17-5-5 5-5",key:"h8a8et"}]])},13882:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(22222).A)("chart-column",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]])},16762:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(22222).A)("chart-pie",[["path",{d:"M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z",key:"pzmjnu"}],["path",{d:"M21.21 15.89A10 10 0 1 1 8 2.83",key:"k2fpak"}]])},17982:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(22222).A)("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]])},18779:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(22222).A)("hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]])},19561:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(22222).A)("rows-2",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 12h18",key:"1i2n21"}]])},21443:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/project/[projectId]/widgets/new",function(){return a(37878)}])},22312:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(22222).A)("chevrons-right",[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]])},37878:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>x});var s=a(73154),r=a(39156),d=a(26159),i=a(93367),c=a(39446),n=a(62583),l=a(8163),o=a(96810),h=a(14183),y=a(86843),u=a(25525);function p(e){var t,a;let{open:r,onOpenChange:d,projectId:c,onSelectDashboard:n,onSkip:l}=e,[p,x]=(0,o.useState)(null),m=i.FH.dashboard.allDashboards.useQuery({projectId:c,orderBy:{column:"updatedAt",order:"DESC"},page:0,limit:100},{enabled:!!c&&r});return(0,s.jsx)(h.lG,{open:r,onOpenChange:d,"data-sentry-element":"Dialog","data-sentry-component":"SelectDashboardDialog","data-sentry-source-file":"SelectDashboardDialog.tsx",children:(0,s.jsxs)(h.Cf,{className:"sm:max-w-[800px]","data-sentry-element":"DialogContent","data-sentry-source-file":"SelectDashboardDialog.tsx",children:[(0,s.jsx)(h.c7,{"data-sentry-element":"DialogHeader","data-sentry-source-file":"SelectDashboardDialog.tsx",children:(0,s.jsx)(h.L3,{"data-sentry-element":"DialogTitle","data-sentry-source-file":"SelectDashboardDialog.tsx",children:"Select dashboard to add widget to"})}),(0,s.jsx)(h.R4,{"data-sentry-element":"DialogBody","data-sentry-source-file":"SelectDashboardDialog.tsx",children:(0,s.jsx)("div",{className:"mt-4 max-h-[400px] overflow-y-auto",children:m.isLoading?(0,s.jsx)("div",{className:"py-8 text-center",children:"Loading dashboards..."}):m.isError?(0,s.jsxs)("div",{className:"py-8 text-center text-destructive",children:["Error: ",m.error.message]}):(null==(t=m.data)?void 0:t.dashboards.length)===0?(0,s.jsx)("div",{className:"py-8 text-center text-muted-foreground",children:"No dashboards found."}):(0,s.jsxs)(u.XI,{children:[(0,s.jsx)(u.A0,{children:(0,s.jsxs)(u.Hj,{children:[(0,s.jsx)(u.nd,{children:"Name"}),(0,s.jsx)(u.nd,{children:"Description"}),(0,s.jsx)(u.nd,{children:"Updated"})]})}),(0,s.jsx)(u.BF,{children:null==(a=m.data)?void 0:a.dashboards.filter(e=>"PROJECT"===e.owner).map(e=>(0,s.jsxs)(u.Hj,{onClick:()=>x(e.id),className:"cursor-pointer hover:bg-muted ".concat(p===e.id?"bg-muted":""),children:[(0,s.jsx)(u.nA,{className:"font-medium",children:e.name}),(0,s.jsx)(u.nA,{className:"truncate",title:e.description,children:e.description}
1),(0,s.jsx)(u.nA,{children:new Date(e.updatedAt).toLocaleString()})]},e.id))})]})})}),(0,s.jsxs)(h.Es,{className:"mt-4 flex justify-between","data-sentry-element":"DialogFooter","data-sentry-source-file":"SelectDashboardDialog.tsx",children:[(0,s.jsx)(y.$,{variant:"outline",onClick:()=>{l(),d(!1)},"data-sentry-element":"Button","data-sentry-source-file":"SelectDashboardDialog.tsx",children:"Skip"}),(0,s.jsx)(y.$,{onClick:()=>{p&&(n(p),d(!1))},disabled:!p,"data-sentry-element":"Button","data-sentry-source-file":"SelectDashboardDialog.tsx",children:"Add to Dashboard"})]})]})})}function x(){let e=(0,r.useRouter)(),{projectId:t,dashboardId:a}=e.query,h=i.FH.dashboardWidgets.create.useMutation({onSuccess:s=>{(0,n.G)({title:"Widget created successfully",description:"Your widget has been created."}),a?e.push("/project/".concat(t,"/dashboards/").concat(a,"?addWidgetId=").concat(s.widget.id)):(m(s.widget.id),u(!0))},onError:e=>{(0,l.N)("Failed to save widget",e.message)}}),[y,u]=(0,o.useState)(!1),[x,m]=(0,o.useState)(null);return(0,s.jsxs)(d.A,{withPadding:!0,headerProps:{title:"New Widget",help:{description:"Create a new widget"}},"data-sentry-element":"Page","data-sentry-component":"NewWidget","data-sentry-source-file":"new.tsx",children:[(0,s.jsx)(c.hf,{projectId:t,onSave:e=>{if(!e.name.trim())return void(0,l.N)("Error","Widget name is required");h.mutate({projectId:t,name:e.name,description:e.description,view:e.view,dimensions:e.dimensions,metrics:e.metrics.map(e=>({measure:e.measure,agg:e.agg})),filters:e.filters,chartType:e.chartType,chartConfig:e.chartConfig})},initialValues:{name:"",description:"",view:"traces",dimension:"none",measure:"count",aggregation:"count",filters:[],chartType:"LINE_TIME_SERIES",chartConfig:{type:"LINE_TIME_SERIES"}},widgetId:void 0,"data-sentry-element":"WidgetForm","data-sentry-source-file":"new.tsx"}),x&&(0,s.jsx)(p,{open:y,onOpenChange:u,projectId:t,onSelectDashboard:a=>{e.push("/project/".concat(t,"/dashboards/").concat(a,"?addWidgetId=").concat(x))},onSkip:()=>{e.push("/project/".concat(t,"/widgets"))}})]})}},38638:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(22222).A)("rows-3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M21 9H3",key:"1338ky"}],["path",{d:"M21 15H3",key:"9uk58r"}]])},40010:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(22222).A)("chart-line",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"m19 9-5 5-4-4-3 3",key:"2osh9i"}]])},46217:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(22222).A)("table",[["path",{d:"M12 3v18",key:"108xh3"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}]])},55247:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(22222).A)("trash",[["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]])},62583:(e,t,a)=>{"use strict";a.d(t,{G:()=>l});var s=a(73154),r=a(54433),d=a(68048),i=a(43035),c=a(41641);let n=e=>{let{title:t,description:a,onDismiss:r,link:n}=e;return(0,s.jsxs)("div",{className:"flex justify-between","data-sentry-component":"SuccessNotification","data-sentry-source-file":"SuccessNotification.tsx",children:[(0,s.jsxs)("div",{className:"flex min-w-[300px] flex-1 flex-col gap-2",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(i.A,{size:20,className:"text-primary-foreground","data-sentry-element":"BadgeCheck","data-sentry-source-file":"SuccessNotification.tsx"}),(0,s.jsx)("div",{className:"m-0 text-sm font-medium leading-tight text-primary-foreground",children:t})]}),a&&(0,s.jsx)("div",{className:"text-sm leading-tight text-primary-foreground",children:a}),n&&(0,s.jsx)(d.r,{href:n.href,size:"sm",variant:"secondary",className:"self-start",children:n.text})]}),(0,s.jsx)("button",{className:"flex h-6 w-6 cursor-pointer items-start justify-end border-none bg-transparent p-0 text-primary-foreground transition-colors duration-200",onClick:r,"aria-label":"Close",children:(0,s.jsx)(c.A,{size:14,"data-sentry-element":"X","data-sentry-source-file":"SuccessNotification.tsx"})})]})},l=e=>{let{duration:t=5e3,...a}=e;r.oR.custom(e=>(0,s.jsx)(n,{...a,onDismiss:()=>r.oR.dismiss(e)}),{duration:t,style:{padding:"1rem",border:"1px solid hsl(var(--dark-green))",borderRadius:"0.5rem",backgroundColor:"hsl(var(--dark-green))"}})}},66798:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});
1let s=(0,a(22222).A)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},72764:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(22222).A)("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]])},74796:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(22222).A)("grip-vertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]])},87067:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(22222).A)("rows-4",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M21 7.5H3",key:"1hm9pq"}],["path",{d:"M21 12H3",key:"2avoz0"}],["path",{d:"M21 16.5H3",key:"n7jzkj"}]])},91163:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(22222).A)("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]])}},e=>{e.O(0,[202,9110,1454,531,9225,9825,6694,8780,1857,672,5061,540,9594,8252,8293,6427,2453,9446,636,6593,8792],()=>e(e.s=21443)),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.