1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6053],{99828:function(e,s,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/reports",function(){return a(11826)}])},56227:function(e,s,a){"use strict";a.d(s,{Z:function(){return t}});let t=(0,a(1).Z)("ArrowUp",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]])},72003:function(e,s,a){"use strict";a.d(s,{Z:function(){return t}});let t=(0,a(1).Z)("Calendar",[["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",ry:"2",key:"eu3xkr"}],["line",{x1:"16",x2:"16",y1:"2",y2:"6",key:"m3sa8f"}],["line",{x1:"8",x2:"8",y1:"2",y2:"6",key:"18kwsl"}],["line",{x1:"3",x2:"21",y1:"10",y2:"10",key:"xt86sb"}]])},28335:function(e,s,a){"use strict";a.d(s,{Z:function(){return t}});let t=(0,a(1).Z)("CheckCircle",[["path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14",key:"g774vq"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]])},66184:function(e,s,a){"use strict";a.d(s,{Z:function(){return t}});let t=(0,a(1).Z)("Code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]])},63795:function(e,s,a){"use strict";a.d(s,{Z:function(){return t}});let t=(0,a(1).Z)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},67563:function(e,s,a){"use strict";a.d(s,{Z:function(){return t}});let t=(0,a(1).Z)("FileSpreadsheet",[["path",{d:"M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z",key:"1nnpy2"}],["polyline",{points:"14 2 14 8 20 8",key:"1ew0cm"}],["path",{d:"M8 13h2",key:"yr2amv"}],["path",{d:"M8 17h2",key:"2yhykz"}],["path",{d:"M14 13h2",key:"un5t4a"}],["path",{d:"M14 17h2",key:"10kma7"}]])},85438:function(e,s,a){"use strict";a.d(s,{Z:function(){return t}});let t=(0,a(1).Z)("Link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]])},60268:function(e,s,a){"use strict";a.d(s,{Z:function(){return t}});let t=(0,a(1).Z)("XCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]])},14866:function(e,s,a){"use strict";a.d(s,{C:function(){return i}});var t=a(85893);a(67294);var r=a(12003),l=a(91220);let n=(0,r.j)("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground",success:"border-transparent bg-green-500 text-white hover:bg-green-600",warning:"border-transparent bg-orange-500 text-white hover:bg-orange-600"}},defaultVariants:{variant:"default"}});function i(e){let{className:s,variant:a,...r}=e;return(0,t.jsx)("div",{className:(0,l.cn)(n({variant:a}),s),...r})}},50947:function(e,s,a){"use strict";a.d(s,{Ol:function(){return i},SZ:function(){return c},Zb:function(){return n},aY:function(){return o},eW:function(){return m},ll:function(){return d}});var t=a(85893),r=a(67294),l=a(91220);let n=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("div",{ref:s,className:(0,l.cn)("rounded-lg border bg-card text-card-foreground shadow-sm",a),...r})});n.displayName="Card";let i=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("div",{ref:s,className:(0,l.cn)("flex flex-col space-y-1.5 p-6",a),...r})});i.displayName="CardHeader";let d=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("h3",{ref:s,className:(0,l.cn)("text-2xl font-semibold leading-none tracking-tight",a),...r})});d.displayName="CardTitle";let c=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("p",{ref:s,className:(0,l.cn)("text-sm text-muted-foreground",a),...r})});
1c.displayName="CardDescription";let o=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("div",{ref:s,className:(0,l.cn)("p-6 pt-0",a),...r})});o.displayName="CardContent";let m=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("div",{ref:s,className:(0,l.cn)("flex items-center p-6 pt-0",a),...r})});m.displayName="CardFooter"},7825:function(e,s,a){"use strict";a.d(s,{_:function(){return c}});var t=a(85893),r=a(67294),l=a(99489),n=a(12003),i=a(91220);let d=(0,n.j)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),c=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)(l.f,{ref:s,className:(0,i.cn)(d(),a),...r})});c.displayName=l.f.displayName},15659:function(e,s,a){"use strict";a.d(s,{Bw:function(){return p},Ph:function(){return o},Ql:function(){return j},i4:function(){return x},ki:function(){return m}});var t=a(85893),r=a(67294),l=a(21703),n=a(89934),i=a(87493),d=a(80906),c=a(91220);let o=l.fC;l.ZA;let m=l.B4,x=r.forwardRef((e,s)=>{let{className:a,children:r,...i}=e;return(0,t.jsxs)(l.xz,{ref:s,className:(0,c.cn)("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm r
1ing-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",a),...i,children:[r,(0,t.jsx)(l.JO,{asChild:!0,children:(0,t.jsx)(n.Z,{className:"h-4 w-4 opacity-50"})})]})});x.displayName=l.xz.displayName;let h=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)(l.u_,{ref:s,className:(0,c.cn)("flex cursor-default items-center justify-center py-1",a),...r,children:(0,t.jsx)(i.Z,{className:"h-4 w-4"})})});h.displayName=l.u_.displayName;let u=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)(l.$G,{ref:s,className:(0,c.cn)("flex cursor-default items-center justify-center py-1",a),...r,children:(0,t.jsx)(n.Z,{className:"h-4 w-4"})})});u.displayName=l.$G.displayName;let p=r.forwardRef((e,s)=>{let{className:a,children:r,position:n="popper",...i}=e;return(0,t.jsx)(l.h_,{children:(0,t.jsxs)(l.VY,{ref:s,className:(0,c.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===n&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",a),position:n,...i,children:[(0,t.jsx)(h,{}),(0,t.jsx)(l.l_,{className:(0,c.cn)("p-1","popper"===n&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:r}),(0,t.jsx)(u,{})]})})});p.displayName=l.VY.displayName,r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)(l.__,{ref:s,className:(0,c.cn)("py-1.5 pl-8 pr-2 text-sm font-semibold",a),...r})}).displayName=l.__.displayName;let j=r.forwardRef((e,s)=>{let{className:a,children:r,...n}=e;return(0,t.jsxs)(l.ck,{ref:s,className:(0,c.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),...n,children:[(0,t.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,t.jsx)(l.wU,{children:(0,t.jsx)(d.Z,{className:"h-4 w-4"})})}),(0,t.jsx)(l.eT,{children:r})]})});j.displayName=l.ck.displayName,r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)(l.Z0,{ref:s,className:(0,c.cn)("-mx-1 my-1 h-px bg-muted",a),...r})}).displayName=l.Z0.displayName},21728:function(e,s,a){"use strict";a.d(s,{SP:function(){return c},dr:function(){return d},mQ:function(){return i},nU:function(){return o}});var t=a(85893),r=a(67294),l=a(60434),n=a(91220);let i=l.fC,d=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)(l.aV,{ref:s,className:(0,n.cn)("inline-flex h-12 items-center justify-center rounded-lg bg-gray-100 p-1.5 text-muted-foreground gap-1",a),...r})});d.displayName=l.aV.displayName;let c=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)(l.xz,{ref:s,className:(0,n.cn)("inline-flex items-center justify-center whitespace-nowrap rounded-md px-4 py-2 text-sm font-medium ring-offset-background transition-all cursor-pointer","hover:bg-gray-200 hover:text-gray-900","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:pointer-events-none disabled:opacity-50","data-[state=active]:bg-white data-[state=active]:text-gray-900 data-[state=active]:shadow-md data-[state=active]:font-semibold",a),...r})});c.displayName=l.xz.displayName;let o=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)(l.VY,{ref:s,className:(0,n.cn)("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",a),...r})});o.displayName=l.VY.displayName},11826:function(e,s,a){"use strict";a.r(s),a.d(s,{default:function(){return F}});var t=a(85893),r=a(25904),l=a(11163),n=a(33934),i=a(43579),d=a(50947),c=a(95364),o=a(87095),m=a(7825),x=a(21728),h=a(15659),u=a(14866),p=a(418),j=a(42694),f=a(1);let v=(0,f.Z)("LineChart",[["path",{d:"M3 3v18h18",key:"1s2lah"}],["path",{d:"m19 9-5 5-4-4-3 3",key:"2osh9i"}]]),y=(0,f.Z)("PieChart",[["path",{d:"M21.21 15.89A10 10 0 1 1 8 2.83",key:"k2fpak"}],["path",{d:"M22 12A10 10 0 0 0 12 2v10z",key:"1rfc4y"}]]);var g=a(35624),N=a(56227);let b=(0,f.Z)("ArrowDown",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]);var w=a(85438),k=a(35131),Z=a(91579),C=a(94279),R=a(28335),S=a(83917),D=a(11373),_=a(63795),M=a(67563),P=a(33656);let z=(0,f.Z)("Send",[["path",{d:"m22 2-7 20-4-9-9-4Z",key:"1q3vgg"}],["path",{d:"M22 2 11 13",key:"nzbqef"}]]);var T=a(93012),A=a(72003),E=a(60268),Q=a(66184),V=a(42392),B=a(67294),L=a(12987);function q(e){let{data:s,type:a}=e;return(0,t.jsx)("div",{className:"h-64 bg-gray-50 rounded-lg flex items-center justify-center",children:(0,t.jsxs)("p",{className:"text-sm text-muted-foreground",children:["line"===a?(0,t.jsx)(v,{className:"h-8 w-8 mb-2 mx-auto"}):"pie"===a?(0,t.jsx)(y,{className:"h-8 w-8 mb-2 mx-auto"}):(0,t.jsx)(g.Z,{className:"h-8 w-8 mb-2 mx-auto"}),"Chart visualization"]})})}function Y(e){var s;let{metric:a}=e;return(0,t.jsxs)("div",{className:"bg-white rounded-xl p-4 border border-gray-100 shadow-sm hover:shadow-md transition-shadow",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,t.jsx)("div",{className:"w-8 h-8 rounded-lg bg-gradient-to-br ".concat((s=a.label).includes("Backlinks")||s.includes("Links")?"from-cyan-400 to-blue-500":s.includes("Domains")?"from-emerald-400 to-green-500":s.includes("Authority")?"from-violet-500 to-purple-600":s.includes("Trust")?"from-amber-400 to-orange-500":"from-violet-500 to-purple-600"," flex items-center justify-center shadow-sm"),children:a.icon}),(0,t.jsx)("span",{className:"text-xs font-medium text-gray-500",children:a.label})]}),(0,t.jsxs)("div",{className:"flex items-baseline justify-between",children:[(0,t.jsx)("p",{className:"text-3xl font-bold text-gray-900",children:a.value}),void 0!==a.change&&(0,t.jsxs)("div",{className:"flex items-center text-sm ".concat("up"===a.trend?"text-emerald-500":"down"===a.trend?"text-rose-500":"text-gray-500"),children:["up"===a.trend?(0,t.jsx)(N.Z,{className:"h-3 w-3"}):"down"===a.trend?(0,t.jsx)(b,{className:"h-3 w-3"}):null,Math.abs(a.change),"%"]})]})]})}function F(){var e,s,a,f,v,y,N,b;let{user:F,isAuthenticated:O,isLoading:U}=(0,r.a)(),G=(0,l.useRouter)(),{toast:I}=(0,L.pm)(),[H,K]=(0,B.useState)(""),[W,$]=(0,B.useState)("7days"),[X,J]=(0,B.useState)("comprehensive"),[ee,es]=(0,B.useState)(!1),[ea,et]=(0,B.useState)("");(0,B.useEffect)(()=>{U||O||G.push("/auth/signin")},[U,O,G]);let{data:er}=(0,n.a)({queryKey:["tracked-domains"],queryFn:()=>p.trackedDomainsAPI.getAll(),enabled:O});(0,B.useEffect)(()=>{var e,s;(null==er?void 0:null===(s=er.data)||void 0===s?void 0:null===(e=s.domains)||void 0===e?void 0:e[0])&&!H&&K(er.data.domains[0].domain)},[er,H]);let{data:el}=(0,n.a)({queryKey:["domain-overview",H],queryFn:()=>p.Eo.getOverview(H),enabled:!!H}),{data:en}=(0,n.a)({queryKey:["link-check-history",H],queryFn:async()=>{var e,s;let a=null==er?void 0:null===(s=er.data)||void 0===s?void 0:null===(e=s.domains)||void 0===e?void 0:e.find(e=>e.domain===H);
1return a?j.U.getHistory(a.id,30):null},enabled:!!H&&!!er}),{data:ei}=(0,n.a)({queryKey:["backlink-history"],queryFn:()=>p.Eo.getHistory({limit:30}),enabled:O});if(U||!O)return(0,t.jsx)(i.A,{children:(0,t.jsx)("div",{className:"flex justify-center p-8",children:"Loading..."})});let ed=async e=>{es(!0),setTimeout(()=>{es(!1),I({title:"Report generated",description:"Your ".concat(e.toUpperCase()," report has been generated and downloaded.")})},2e3)},ec=(()=>{let e=[];return(null==el?void 0:el.data)&&(e.push({label:"Total Backlinks",value:el.data.total_backlinks.toLocaleString(),change:12.5,trend:"up",icon:(0,t.jsx)(w.Z,{className:"h-4 w-4 text-white"})}),e.push({label:"Unique Domains",value:el.data.unique_domains.toLocaleString(),change:8.3,trend:"up",icon:(0,t.jsx)(k.Z,{className:"h-4 w-4 text-white"})}),e.push({label:"Domain Authority",value:"65",change:2.1,trend:"up",icon:(0,t.jsx)(Z.Z,{className:"h-4 w-4 text-white"})}),e.push({label:"Trust Score",value:"72",change:.5,trend:"neutral",icon:(0,t.jsx)(C.Z,{className:"h-4 w-4 text-white"})})),e})();return(0,t.jsx)(i.A,{children:(0,t.jsxs)("div",{className:"container mx-auto px-4 py-8 max-w-7xl",children:[(0,t.jsx)("div",{className:"bg-white rounded-xl p-6 shadow-sm border border-gray-100 mb-8",children:(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("div",{className:"w-12 h-12 rounded-xl bg-gradient-to-br from-violet-500 to-purple-600 flex items-center justify-center shadow-md",children:(0,t.jsx)(g.Z,{className:"h-6 w-6 text-white"})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h1",{className:"text-2xl font-bold text-gray-900",children:"Reports & Analytics"}),(0,t.jsx)("p",{className:"text-gray-600 text-sm",children:"Generate comprehensive reports, track performance, and export your data"})]})]})}),(0,t.jsxs)(x.mQ,{defaultValue:"dashboard",className:"space-y-6",children:[(0,t.jsxs)(x.dr,{className:"grid w-full grid-cols-5",children:[(0,t.jsx)(x.SP,{value:"dashboard",children:"Dashboard"}),(0,t.jsx)(x.SP,{value:"comprehensive",children:"Comprehensive Report"}),(0,t.jsx)(x.SP,{value:"custom",children:"Custom Reports"}),(0,t.jsx)(x.SP,{value:"scheduled",children:"Scheduled Reports"}),(0,t.jsx)(x.SP,{value:"export",children:"Export Data"})]}),(0,t.jsxs)(x.nU,{value:"dashboard",className:"space-y-6",children:[(0,t.jsxs)(d.Zb,{children:[(0,t.jsxs)(d.Ol,{children:[(0,t.jsx)(d.ll,{children:"Report Dashboard"}),(0,t.jsx)(d.SZ,{children:"Overview of your domain's performance and key metrics"})]}),(0,t.jsxs)(d.aY,{children:[(0,t.jsxs)("div",{className:"grid md:grid-cols-2 gap-4 mb-6",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(m._,{children:"Select Domain"}),(0,t.jsxs)(h.Ph,{value:H,onValueChange:K,children:[(0,t.jsx)(h.i4,{children:(0,t.jsx)(h.ki,{placeholder:"Select a domain"})}),(0,t.jsx)(h.Bw,{children:null==er?void 0:null===(s=er.data)||void 0===s?void 0:null===(e=s.domains)||void 0===e?void 0:e.map(e=>(0,t.jsx)(h.Ql,{value:e.domain,children:e.domain},e.id))})]})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(m._,{children:"Time Period"}),(0,t.jsxs)(h.Ph,{value:W,onValueChange:$,children:[(0,t.jsx)(h.i4,{children:(0,t.jsx)(h.ki,{})}),(0,t.jsxs)(h.Bw,{children:[(0,t.jsx)(h.Ql,{value:"7days",children:"Last 7 Days"}),(0,t.jsx)(h.Ql,{value:"30days",children:"Last 30 Days"}),(0,t.jsx)(h.Ql,{value:"90days",children:"Last 90 Days"}),(0,t.jsx)(h.Ql,{value:"12months",children:"Last 12 Months"})]})]})]})]}),(0,t.jsx)("div",{className:"grid md:grid-cols-4 gap-4",children:ec.map((e,s)=>(0,t.jsx)(Y,{metric:e},s))})]})]}),(0,t.jsxs)("div",{className:"grid md:grid-cols-2 gap-6",children:[(0,t.jsxs)(d.Zb,{children:[(0,t.jsxs)(d.Ol,{children:[(0,t.jsx)(d.ll,{children:"Backlink Growth"}),(0,t.jsx)(d.SZ,{children:"Backlinks acquired over time"})]}),(0,t.jsx)(d.aY,{children:(0,t.jsx)(q,{data:[],type:"line"})})]}),(0,t.jsxs)(d.Zb,{children:[(0,t.jsxs)(d.Ol,{children:[(0,t.jsx)(d.ll,{children:"Link Quality Distribution"}),(0,t.jsx)(d.SZ,{children:"Breakdown by domain authority"})]}),(0,t.jsx)(d.aY,{children:(0,t.jsx)(q,{data:[],type:"pie"})})]}),(0,t.jsxs)(d.Zb,{children:[(0,t.jsxs)(d.Ol,{children:[(0,t.jsx)(d.ll,{children:"Link Health Status"}),(0,t.jsx)(d.SZ,{children:"Active vs broken links over time"})]}),(0,t.jsx)(d.aY,{children:(0,t.jsx)(q,{data:[],type:"bar"})})]}),(0,t.jsxs)(d.Zb,{children:[(0,t.jsxs)(d.Ol,{children:[(0,t.jsx)(d.ll,{children:"Top Referring Domains"}),(0,t.jsx)(d.SZ,{children:"Domains sending the most links"})]}),(0,t.jsx)(d.aY,{children:(0,t.jsx)("div",{className:"space-y-3",children:null==el?void 0:null===(f=el.data)||void 0===f?void 0:null===(a=f.top_referring_domains)||void 0===a?void 0:a.slice(0,5).map((e,s)=>(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(k.Z,{className:"h-4 w-4 text-muted-foreground"}),(0,t.jsx)("span",{className:"text-sm font-medium",children:e.domain})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsxs)(u.C,{variant:"secondary",children:[e.count," links"]}),(0,t.jsx)("div",{className:"w-24 h-2 bg-gray-200 rounded-full overflow-hidden",children:(0,t.jsx)("div",{className:"h-full bg-blue-600 rounded-full",style:{width:"".concat(e.count/el.data.total_backlinks*100,"%")}})})]})]},s))})})]})]})]}),(0,t.jsx)(x.nU,{value:"comprehensive",className:"space-y-6",children:(0,t.jsxs)(d.Zb,{children:[(0,t.jsxs)(d.Ol,{children:[(0,t.jsx)(d.ll,{children:"Comprehensive Domain Report"}),(0,t.jsx)(d.SZ,{children:"Generate a complete analysis report for your domain"})]}),(0,t.jsxs)(d.aY,{className:"space-y-6",children:[(0,t.jsxs)("div",{className:"grid md:grid-cols-2 gap-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(m._,{children:"Domain"}),(0,t.jsxs)(h.Ph,{value:H,onValueChange:K,children:[(0,t.jsx)(h.i4,{children:(0,t.jsx)(h.ki,{placeholder:"Select a domain"})}),(0,t.jsx)(h.Bw,{children:null==er?void 0:null===(y=er.data)||void 0===y?void 0:null===(v=y.domains)||void 0===v?void 0:v.map(e=>(0,t.jsx)(h.Ql,{value:e.domain,children:e.domain},e.id))})]})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(m._,{children:"Report Period"}),(0,t.jsxs)(h.Ph,{value:W,onValueChange:$,children:[(0,t.jsx)(h.i4,{children:(0,t.jsx)(h.ki,{})}),(0,t.jsxs)(h.Bw,{children:[(0,t.jsx)(h.Ql,{value:"7days",children:"Last 7 Days"}),(0,t.jsx)(h.Ql,{value:"30days",children:"Last 30 Days"}),(0,t.jsx)(h.Ql,{value:"90days",children:"Last 90 Days"}),(0,t.jsx)(h.Ql,{value:"custom",children:"Custom Range"})]})]})]})]}),(0,t.jsxs)("div",{className:"border rounded-lg p-6 space-y-4",children:[(0,t.jsx)("h3",{className:"font-semibold text-lg mb-4",children:"Report Contents"}),(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)(R.Z,{className:"h-5 w-5 text-green-500"}),(0,t.jsx)("span",{children:"Executive Summary"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)(R.Z,{className:"h-5 w-5 text-green-500"}),(0,t.jsx)("span",{children:"Backlink Profile Analysis"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)(R.Z,{className:"h-5 w-5 text-green-500"}),(0,t.jsx)("span",{children:"Link Quality Assessment"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)(R.Z,{className:"h-5 w-5 text-green-500"}),(0,t.jsx)("span",{children:"Anchor Text Distribution"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)(R.Z,{className:"h-5 w-5 text-green-500"}),(0,t.jsx)("span",{children:"Referring Domains Analysis"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)(R.Z,{className:"h-5 w-5 text-green-500"}),(0,t.jsx)("span",{children:"Link Health & Broken Links Report"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)(R.Z,{className:"h-5 w-5 text-green-500"}),(0,t.jsx)("span",{children:"Sentiment Analysis Summary"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)(R.Z,{className:"h-5 w-5 text-green-500"}),(0,t.jsx)("span",{children:"Competitor Comparison"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)(R.Z,{className:"h-5 w-5 text-green-500"}),(0,t.jsx)("span",{children:"Recommendations & Action Items"})]})]})]}),(0,t.jsxs)("div",{className:"grid md:grid-cols-3 gap-4",children:[(0,t.jsx)(d.Zb,{children:(0,t.jsxs)(d.aY,{className:"p-6 text-center",children:[(0,t.jsx)(S.Z,{className:"h-10 w-10 text-red-500 mx-auto mb-3"}),(0,t.jsx)("h4",{className:"font-semibold mb-2",children:"PDF Report"}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground mb-4",children:"Professional PDF with charts and visuals"}),(0,t.jsx)(c.z,{onClick:()=>ed("pdf"),disabled:ee||!H,className:"w-full bg-gradient-to-r from-violet-500 to-purple-600 hover:from-violet-600 hover:to-purple-700 shadow-md",children:ee?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(D.Z,{className:"h-4 w-4 mr-2 animate-spin"}),"Generating..."]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(_.Z,{className:"h-4 w-4 mr-2"}),"Generate PDF"]})})]})}),(0,t.jsx)(d.Zb,{children:(0,t.jsxs)(d.aY,{className:"p-6 text-center",children:[(0,t.jsx)(M.Z,{className:"h-10 w-10 text-green-500 mx-auto mb-3"}),(0,t.jsx)("h4",{className:"font-semibold mb-2",children:"Excel Report"}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground mb-4",children:"Detailed data in spreadsheet format"}),(0,t.jsxs)(c.z,{onClick:()=>ed("excel"),disabled:ee||!H,variant:"outline",className:"w-full",children:[(0,t.jsx)(_.Z,{className:"h-4 w-4 mr-2"}),"Generate Excel"]})]})}),(0,t.jsx)(d.Zb,{children:(0,t.jsxs)(d.aY,{className:"p-6 text-center",children:[(0,t.jsx)(P.Z,{className:"h-10 w-10 text-blue-500 mx-auto mb-3"}),(0,t.jsx)("h4",{className:"font-semibold mb-2",children:"Email Report"}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground mb-4",children:"Send report directly to stakeholders"}),(0,t.jsxs)(c.z,{variant:"outline",className:"w-full",disabled:!H,children:[(0,t.jsx)(z,{className:"h-4 w-4 mr-2"}),"Email Report"]})]})})]})]})]})}),(0,t.jsx)(x.nU,{value:"custom",className:"space-y-6",children:(0,t.jsxs)(d.Zb,{children:[(0,t.jsxs)(d.Ol,{children:[(0,t.jsx)(d.ll,{children:"Custom Report Builder"}),(0,t.jsx)(d.SZ,{children:"Create custom reports with specific metrics and data"})]}),(0,t.jsxs)(d.aY,{className:"space-y-6",children:[(0,t.jsxs)("div",{className:"grid md:grid-cols-2 gap-6",children:[(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsx)(m._,{children:"Report Type"}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("label",{className:"flex items-center gap-3 p-3 border rounded-lg cursor-pointer hover:bg-muted",children:[(0,t.jsx)("input",{type:"radio",name:"reportType",value:"backlinks",checked:"backlinks"===X,onChange:e=>J(e.target.value)}),(0,t.jsx)(w.Z,{className:"h-5 w-5"}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"font-medium",children:"Backlinks Report"}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:"Focus on backlink analysis"})]})]}),(0,t.jsxs)("label",{className:"flex items-center gap-3 p-3 border rounded-lg cursor-pointer hover:bg-muted",children:[(0,t.jsx)("input",{type:"radio",name:"reportType",value:"health",checked:"health"===X,onChange:e=>J(e.target.value)}),(0,t.jsx)(C.Z,{className:"h-5 w-5"}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"font-medium",children:"Site Health Report"}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:"Broken links & technical issues"})]})]}),(0,t.jsxs)("label",{className:"flex items-center gap-3 p-3 border rounded-lg cursor-pointer hover:bg-muted",children:[(0,t.jsx)("input",{type:"radio",name:"reportType",value:"sentiment",checked:"sentiment"===X,onChange:e=>J(e.target.value)}),(0,t.jsx)(T.Z,{className:"h-5 w-5"}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"font-medium",children:"Sentiment Report"}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:"Brand perception analysis"})]})]}),(0,t.jsxs)("label",{className:"flex items-center gap-3 p-3 border rounded-lg cursor-pointer hover:bg-muted",children:[(0,t.jsx)("input",{type:"radio",name:"reportType",value:"comprehensive",checked:"comprehensive"===X,onChange:e=>J(e.target.value)}),(0,t.jsx)(g.Z,{className:"h-5 w-5"}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"font-medium",children:"Comprehensive Report"}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:"All metrics combined"})]})]})]})]}),(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsx)(m._,{children:"Include Metrics"}),(0,t.jsxs)("div",{className:"space-y-2 max-h-96 overflow-y-auto pr-2",children:[(0,t.jsxs)("label",{className:"flex items-center gap-2 p-2",children:[(0,t.jsx)("input",{type:"checkbox",defaultChecked:!0}),(0,t.jsx)("span",{className:"text-sm",children:"Total Backlinks Count"})]}),(0,t.jsxs)("label",{className:"flex items-center gap-2 p-2",children:[(0,t.jsx)("input",{type:"checkbox",defaultChecked:!0}),(0,t.jsx)("span",{className:"text-sm",children:"Unique Referring Domains"})]}),(0,t.jsxs)("label",{className:"flex items-center gap-2 p-2",children:[(0,t.jsx)("input",{type:"checkbox",defaultChecked:!0}),(0,t.jsx)("span",{className:"text-sm",children:"Dofollow/Nofollow Ratio"})]}),(0,t.jsxs)("label",{className:"flex items-center gap-2 p-2",children:[(0,t.jsx)("input",{type:"checkbox",defaultChecked:!0}),(0,t.jsx)("span",{className:"text-sm",children:"Anchor Text Distribution"})]}),(0,t.jsxs)("label",{className:"flex items-center gap-2 p-2",children:[(0,t.jsx)("input",{type:"checkbox"}),(0,t.jsx)("span",{className:"text-sm",children:"Link Velocity"})]}),(0,t.jsxs)("label",{className:"flex items-center gap-2 p-2",children:[(0,t.jsx)("input",{type:"checkbox"}),(0,t.jsx)("span",{className:"text-sm",children:"Broken Links Analysis"})]}),(0,t.jsxs)("label",{className:"flex items-center gap-2 p-2",children:[(0,t.jsx)("input",{type:"checkbox"}),(0,t.jsx)("span",{className:"text-sm",children:"Missing Alt Tags"})]}),(0,t.jsxs)("label",{className:"flex items-center gap-2 p-2",children:[(0,t.jsx)("input",{type:"checkbox"}),(0,t.jsx)("span",{className:"text-sm",children:"Sentiment Scores"})]}),(0,t.jsxs)("label",{className:"flex items-center gap-2 p-2",children:[(0,t.jsx)("input",{type:"checkbox"}),(0,t.jsx)("span",{className:"text-sm",children:"Top Keywords"})]}),(0,t.jsxs)("label",{className:"flex items-center gap-2 p-2",children:[(0,t.jsx)("input",{type:"checkbox"}),(0,t.jsx)("span",{className:"text-sm",children:"Competitor Comparison"})]})]})]})]}),(0,t.jsxs)("div",{className:"flex justify-end gap-3",children:[(0,t.jsx)(c.z,{variant:"outline",children:"Save Template"}),(0,t.jsxs)(c.z,{className:"bg-gradient-to-r from-violet-500 to-purple-600 hover:from-violet-600 hover:to-purple-700 shadow-md",children:[(0,t.jsx)(S.Z,{className:"h-4 w-4 mr-2"}),"Generate Custom Report"]})]})]})]})}),(0,t.jsx)(x.nU,{value:"scheduled",className:"space-y-6",children:(0,t.jsxs)(d.Zb,{children:[(0,t.jsxs)(d.Ol,{children:[(0,t.jsx)(d.ll,{children:"Scheduled Reports"}),(0,t.jsx)(d.SZ,{children:"Set up automated reports delivered to your inbox"})]}),(0,t.jsx)(d.aY,{className:"space-y-6",children:(0,t.jsxs)("div",{className:"grid md:grid-cols-2 gap-6",children:[(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsx)("h3",{className:"font-semibold",children:"Create New Schedule"}),(0,t.jsxs)("div",{children:[(0,t.jsx)(m._,{children:"Report Type"}),(0,t.jsxs)(h.Ph,{children:[(0,t.jsx)(h.i4,{children:(0,t.jsx)(h.ki,{placeholder:"Select report type"})}),(0,t.jsxs)(h.Bw,{children:[(0,t.jsx)(h.Ql,{value:"comprehensive",children:"Comprehensive Report"}),(0,t.jsx)(h.Ql,{value:"backlinks",children:"Backlinks Summary"}),(0,t.jsx)(h.Ql,{value:"health",children:"Site Health Report"}),(0,t.jsx)(h.Ql,{value:"sentiment",children:"Sentiment Analysis"})]})]})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(m._,{children:"Frequency"}),(0,t.jsxs)(h.Ph,{children:[(0,t.jsx)(h.i4,{children:(0,t.jsx)(h.ki,{placeholder:"Select frequency"})}),(0,t.jsxs)(h.Bw,{children:[(0,t.jsx)(h.Ql,{value:"daily",children:"Daily"}),(0,t.jsx)(h.Ql,{value:"weekly",children:"Weekly (Mondays)"}),(0,t.jsx)(h.Ql,{value:"biweekly",children:"Bi-weekly"}),(0,t.jsx)(h.Ql,{value:"monthly",children:"Monthly (1st of month)"})]})]})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(m._,{children:"Email Recipients"}),(0,t.jsx
1)(o.I,{placeholder:"[email protected], [email protected]",value:ea,onChange:e=>et(e.target.value)}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground mt-1",children:"Separate multiple emails with commas"})]}),(0,t.jsxs)(c.z,{onClick:()=>{if(!ea){I({title:"Email required",description:"Please enter an email address for scheduled reports.",variant:"destructive"});return}I({title:"Report scheduled",description:"Weekly reports will be sent to ".concat(ea)})},className:"w-full bg-gradient-to-r from-violet-500 to-purple-600 hover:from-violet-600 hover:to-purple-700 shadow-md",children:[(0,t.jsx)(A.Z,{className:"h-4 w-4 mr-2"}),"Schedule Report"]})]}),(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsx)("h3",{className:"font-semibold",children:"Active Schedules"}),(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)(d.Zb,{children:(0,t.jsx)(d.aY,{className:"p-4",children:(0,t.jsxs)("div",{className:"flex items-start justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"font-medium",children:"Weekly Comprehensive Report"}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:"Every Monday at 9:00 AM"}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:"To: [email protected]"})]}),(0,t.jsx)(c.z,{variant:"ghost",size:"sm",children:(0,t.jsx)(E.Z,{className:"h-4 w-4"})})]})})}),(0,t.jsx)(d.Zb,{children:(0,t.jsx)(d.aY,{className:"p-4",children:(0,t.jsxs)("div",{className:"flex items-start justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"font-medium",children:"Monthly Backlinks Report"}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:"1st of every month at 8:00 AM"}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:"To: [email protected]"})]}),(0,t.jsx)(c.z,{variant:"ghost",size:"sm",children:(0,t.jsx)(E.Z,{className:"h-4 w-4"})})]})})})]})]})]})})]})}),(0,t.jsx)(x.nU,{value:"export",className:"space-y-6",children:(0,t.jsxs)(d.Zb,{children:[(0,t.jsxs)(d.Ol,{children:[(0,t.jsx)(d.ll,{children:"Export Data"}),(0,t.jsx)(d.SZ,{children:"Download raw data for external analysis"})]}),(0,t.jsxs)(d.aY,{className:"space-y-6",children:[(0,t.jsxs)("div",{className:"grid md:grid-cols-2 gap-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(m._,{children:"Domain"}),(0,t.jsxs)(h.Ph,{value:H,onValueChange:K,children:[(0,t.jsx)(h.i4,{children:(0,t.jsx)(h.ki,{placeholder:"Select a domain"})}),(0,t.jsx)(h.Bw,{children:null==er?void 0:null===(b=er.data)||void 0===b?void 0:null===(N=b.domains)||void 0===N?void 0:N.map(e=>(0,t.jsx)(h.Ql,{value:e.domain,children:e.domain},e.id))})]})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(m._,{children:"Data Type"}),(0,t.jsxs)(h.Ph,{children:[(0,t.jsx)(h.i4,{children:(0,t.jsx)(h.ki,{placeholder:"Select data type"})}),(0,t.jsxs)(h.Bw,{children:[(0,t.jsx)(h.Ql,{value:"backlinks",children:"All Backlinks"}),(0,t.jsx)(h.Ql,{value:"domains",children:"Referring Domains"}),(0,t.jsx)(h.Ql,{value:"anchors",children:"Anchor Texts"}),(0,t.jsx)(h.Ql,{value:"broken",children:"Broken Links"}),(0,t.jsx)(h.Ql,{value:"sentiment",children:"Sentiment Data"})]})]})]})]}),(0,t.jsxs)("div",{className:"grid md:grid-cols-3 gap-4",children:[(0,t.jsx)(d.Zb,{children:(0,t.jsxs)(d.aY,{className:"p-6 text-center",children:[(0,t.jsx)(M.Z,{className:"h-10 w-10 text-green-500 mx-auto mb-3"}),(0,t.jsx)("h4",{className:"font-semibold mb-2",children:"CSV Export"}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground mb-4",children:"Compatible with Excel and Google Sheets"}),(0,t.jsxs)(c.z,{className:"w-full bg-gradient-to-r from-violet-500 to-purple-600 hover:from-violet-600 hover:to-purple-700 shadow-md",children:[(0,t.jsx)(_.Z,{className:"h-4 w-4 mr-2"}),"Export CSV"]})]})}),(0,t.jsx)(d.Zb,{children:(0,t.jsxs)(d.aY,{className:"p-6 text-center",children:[(0,t.jsx)(Q.Z,{className:"h-10 w-10 text-blue-500 mx-auto mb-3"}),(0,t.jsx)("h4",{className:"font-semibold mb-2",children:"JSON Export"}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground mb-4",children:"For data analysis tools"}),(0,t.jsxs)(c.z,{variant:"outline",className:"w-full",children:[(0,t.jsx)(_.Z,{className:"h-4 w-4 mr-2"}),"Export JSON"]})]})}),(0,t.jsx)(d.Zb,{children:(0,t.jsxs)(d.aY,{className:"p-6 text-center",children:[(0,t.jsx)(S.Z,{className:"h-10 w-10 text-purple-500 mx-auto mb-3"}
1),(0,t.jsx)("h4",{className:"font-semibold mb-2",children:"XML Export"}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground mb-4",children:"Structured data format"}),(0,t.jsxs)(c.z,{variant:"outline",className:"w-full",children:[(0,t.jsx)(_.Z,{className:"h-4 w-4 mr-2"}),"Export XML"]})]})})]}),(0,t.jsxs)("div",{className:"bg-muted p-4 rounded-lg",children:[(0,t.jsxs)("h4",{className:"font-semibold mb-2 flex items-center gap-2",children:[(0,t.jsx)(V.Z,{className:"h-4 w-4"}),"Export Limits"]}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:"Your current plan allows exports up to:"}),(0,t.jsxs)("ul",{className:"list-disc list-inside text-sm text-muted-foreground mt-2",children:[(0,t.jsx)("li",{children:"Free: 1,000 records per export"}),(0,t.jsx)("li",{children:"Professional: 10,000 records per export"}),(0,t.jsx)("li",{children:"Enterprise: Unlimited records"})]})]})]})]})})]})]})})}},99489:function(e,s,a){"use strict";a.d(s,{f:function(){return d}});var t=a(67294);a(73935);var r=a(88426),l=a(85893),n=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,s)=>{let a=(0,r.Z8)(`Primitive.${s}`),n=t.forwardRef((e,t)=>{let{asChild:r,...n}=e,i=r?a:s;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,l.jsx)(i,{...n,ref:t})});return n.displayName=`Primitive.${s}`,{...e,[s]:n}},{}),i=t.forwardRef((e,s)=>(0,l.jsx)(n.label,{...e,ref:s,onMouseDown:s=>{s.target.closest("button, input, select, textarea")||(e.onMouseDown?.(s),!s.defaultPrevented&&s.detail>1&&s.preventDefault())}}));i.displayName="Label";var d=i},60434:function(e,s,a){"use strict";a.d(s,{VY:function(){return M},aV:function(){return D},fC:function(){return S},xz:function(){return _}});var t=a(67294),r=a(36206),l=a(25360),n=a(66681),i=a(29115),d=a(64757),c=a(78990),o=a(77342),m=a(91276),x=a(85893),h="Tabs",[u,p]=(0,l.b)(h,[n.Pc]),j=(0,n.Pc)(),[f,v]=u(h),y=t.forwardRef((e,s)=>{let{__scopeTabs:a,value:t,onValueChange:r,defaultValue:l,orientation:n="horizontal",dir:i,activationMode:u="automatic",...p}=e,j=(0,c.gm)(i),[v,y]=(0,o.T)({prop:t,onChange:r,defaultProp:l??"",caller:h});return(0,x.jsx)(f,{scope:a,baseId:(0,m.M)(),value:v,onValueChange:y,orientation:n,dir:j,activationMode:u,children:(0,x.jsx)(d.WV.div,{dir:j,"data-orientation":n,...p,ref:s})})});y.displayName=h;var g="TabsList",N=t.forwardRef((e,s)=>{let{__scopeTabs:a,loop:t=!0,...r}=e,l=v(g,a),i=j(a);return(0,x.jsx)(n.fC,{asChild:!0,...i,orientation:l.orientation,dir:l.dir,loop:t,children:(0,x.jsx)(d.WV.div,{role:"tablist","aria-orientation":l.orientation,...r,ref:s})})});N.displayName=g;var b="TabsTrigger",w=t.forwardRef((e,s)=>{let{__scopeTabs:a,value:t,disabled:l=!1,...i}=e,c=v(b,a),o=j(a),m=C(c.baseId,t),h=R(c.baseId,t),u=t===c.value;return(0,x.jsx)(n.ck,{asChild:!0,...o,focusable:!l,active:u,children:(0,x.jsx)(d.WV.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":h,"data-state":u?"active":"inactive","data-disabled":l?"":void 0,disabled:l,id:m,...i,ref:s,onMouseDown:(0,r.Mj)(e.onMouseDown,e=>{l||0!==e.button||!1!==e.ctrlKey?e.preventDefault():c.onValueChange(t)}),onKeyDown:(0,r.Mj)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&c.onValueChange(t)}),onFocus:(0,r.Mj)(e.onFocus,()=>{let e="manual"!==c.activationMode;u||l||!e||c.onValueChange(t)})})})});w.displayName=b;var k="TabsContent",Z=t.forwardRef((e,s)=>{let{__scopeTabs:a,value:r,forceMount:l,children:n,...c}=e,o=v(k,a),m=C(o.baseId,r),h=R(o.baseId,r),u=r===o.value,p=t.useRef(u);return t.useEffect(()=>{let e=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,x.jsx)(i.z,{present:l||u,children:({present:a})=>(0,x.jsx)(d.WV.div,{"data-state":u?"active":"inactive","data-orientation":o.orientation,role:"tabpanel","aria-labelledby":m,hidden:!a,id:h,tabIndex:0,...c,ref:s,style:{...e.style,animationDuration:p.current?"0s":void 0},children:a&&n})})});function C(e,s){return`${e}-trigger-${s}`}function R(e,s){return`${e}-content-${s}`}Z.displayName=k;var S=y,D=N,_=w,M=Z}},function(e){e.O(0,[400,9580,3517,5214,3579,2888,9774,179],function(){return e(e.s=99828)}),_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.