1import{o as ie}from"./rolldown-runtime-ChpBd9eV.js";import{a as ne,n as le}from"./vendor-react-DcWoBPJp.js";import{Di as P,En as de,Ga as ce,Ho as I,Kt as oe,Xr as me,Zr as H,_ as xe,_i as ue,_t as O,es as he,g as x,gs as ge,sn as pe,vo as fe,vt as ve,wi as je,zo as L}from"./vendor-ui-hcrcJjHJ.js";import{u as be}from"./chunk-QUQL4437-DKXSrjJr.js";import{t as G}from"./lib-Dh2qRnXK.js";import{t as w}from"./utils-BYBzgThh.js";import{kt as q,m as M}from"./index-CL2aAkkR.js";import{t as N}from"./Label-iZ6a4SYZ.js";import"./Label-B6SqbI5g.js";import{t as W}from"./Badge-8-nCtEoo.js";import"./Badge-Dyl1iSmB.js";import{t as ye}from"./Checkbox-CHZYF6u_.js";import"./Checkbox-OGUY86Sg.js";import{t as E}from"./Textarea-XM_PYL2Y.js";import"./Textarea-B8YHWNjX.js";import{t as Ne}from"./GlassPageHeader-KtIdCo6i.js";import{n as f}from"./GlassCard-CBeAX9gO.js";import{t as we}from"./useToast-0MB4uEkc.js";import{a as ke,i as X,n as Ce,o as Fe,r as U,t as Se}from"./FeedbackList-B51_JwIg.js";import{n as Re}from"./MetricCard-DGc-3UqW.js";import{n as Te}from"./useFeedback-CVcAUnkK.js";var l=ie(ne(),1),e=le();function u(s,i){return i===0?0:Math.round(s/i*100)}var Ae=({issues:s,successes:i,suggestions:n,total:r})=>{if(r===0)return(0,e.jsx)("div",{className:"h-3 w-full bg-gray-200 dark:bg-gray-700 rounded-full overflow-hidden",children:(0,e.jsx)("div",{className:"h-full w-full bg-gray-300 dark:bg-gray-600"})});const a=u(s,r),d=u(i,r),c=u(n,r);return(0,e.jsxs)("div",{className:"space-y-2",children:[(0,e.jsxs)("div",{className:"h-3 w-full flex rounded-full overflow-hidden",children:[(0,e.jsx)(x.div,{initial:{width:0},animate:{width:`${a}%`},transition:{duration:.5,delay:.1},className:"bg-red-500 h-full"}),(0,e.jsx)(x.div,{initial:{width:0},animate:{width:`${d}%`},transition:{duration:.5,delay:.2},className:"bg-emerald-500 h-full"}),(0,e.jsx)(x.div,{initial:{width:0},animate:{width:`${c}%`},transition:{duration:.5,delay:.3},className:"bg-blue-500 h-full"})]}),(0,e.jsxs)("div",{className:"flex items-center justify-between text-xs text-muted-foreground",children:[(0,e.jsxs)("div",{className:"flex items-center gap-1",children:[(0,e.jsx)("span",{className:"w-2 h-2 rounded-full bg-red-500"}),(0,e.jsxs)("span",{children:["Issues ",a,"%"]})]}),(0,e.jsxs)("div",{className:"flex items-center gap-1",children:[(0,e.jsx)("span",{className:"w-2 h-2 rounded-full bg-emerald-500"}),(0,e.jsxs)("span",{children:["Successes ",d,"%"]})]}),(0,e.jsxs)("div",{className:"flex items-center gap-1",children:[(0,e.jsx)("span",{className:"w-2 h-2 rounded-full bg-blue-500"}),(0,e.jsxs)("span",{children:["Suggestions ",c,"%"]})]})]})]})},Ee=({group:s})=>{const i=s.count;return(0,e.jsxs)(f,{size:"sm",className:"space-y-3",children:[(0,e.jsxs)("div",{className:"flex items-center justify-between",children:[(0,e.jsx)("h4",{className:"font-medium text-sm text-foreground",children:s.name}),(0,e.jsx)("span",{className:"text-lg font-bold text-foreground",children:s.count})]}),(0,e.jsxs)("div",{className:"h-2 w-full flex rounded-full overflow-hidden",children:[(0,e.jsx)("div",{className:"bg-red-500 h-full",style:{width:`${u(s.issueCount,i)}%`}}),(0,e.jsx)("div",{className:"bg-emerald-500 h-full",style:{width:`${u(s.successCount,i)}%`}}),(0,e.jsx)("div",{className:"bg-blue-500 h-full",style:{width:`${u(s.suggestionCount,i)}%`}})]}),(0,e.jsxs)("div",{className:"flex items-center justify-between text-xs text-muted-foreground",children:[(0,e.jsx)("span",{children:"Avg Severity"}),(0,e.jsx)(X,{severity:Math.round(s.avgSeverity),variant:"dots",size:"sm"})]}),s.topIssues.length>0&&(0,e.jsxs)("div",{className:"pt-2 border-t border-gray-200 dark:border-gray-700",children:[(0,e.jsx)("p",{className:"text-xs text-muted-foreground mb-1",children:"Top Issues:"}),(0,e.jsx)("ul",{className:"text-xs text-foreground space-y-1",children:s.topIssues.slice(0,2).map((n,r)=>(0,e.jsx)("li",{className:"truncate",children:n},r))})]})]})},Ie=({recommendations:s})=>s.length===0?(0,e.jsx)("p",{className:"text-sm text-muted-foreground text-center py-4",children:"No recommendations available"}):(0,e.jsx)("ul",{className:"space-y-3",children:s.map((i,n)=>(0,e.jsxs)(x.li,{initial:{opacity:0,x:-10}
1,animate:{opacity:1,x:0},transition:{delay:n*.1},className:"flex items-start gap-3 p-3 rounded-lg bg-amber-50 dark:bg-amber-900/20 border border-amber-200 dark:border-amber-800",children:[(0,e.jsx)(P,{className:"w-5 h-5 text-amber-500 flex-shrink-0 mt-0.5"}),(0,e.jsx)("p",{className:"text-sm text-foreground",children:i})]},n))}),Me=({variant:s="full"})=>(0,e.jsxs)("div",{className:"space-y-6 animate-pulse",children:[(0,e.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4",children:Array.from({length:4}).map((i,n)=>(0,e.jsx)(f,{size:"sm",children:(0,e.jsxs)("div",{className:"space-y-3",children:[(0,e.jsx)("div",{className:"h-4 w-24 bg-gray-200 dark:bg-gray-700 rounded"}),(0,e.jsx)("div",{className:"h-8 w-16 bg-gray-200 dark:bg-gray-700 rounded"})]})},n))}),s==="full"&&(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(f,{children:(0,e.jsxs)("div",{className:"space-y-4",children:[(0,e.jsx)("div",{className:"h-5 w-32 bg-gray-200 dark:bg-gray-700 rounded"}),(0,e.jsx)("div",{className:"h-3 w-full bg-gray-200 dark:bg-gray-700 rounded-full"}),(0,e.jsxs)("div",{className:"flex justify-between",children:[(0,e.jsx)("div",{className:"h-4 w-20 bg-gray-200 dark:bg-gray-700 rounded"}),(0,e.jsx)("div",{className:"h-4 w-20 bg-gray-200 dark:bg-gray-700 rounded"}),(0,e.jsx)("div",{className:"h-4 w-20 bg-gray-200 dark:bg-gray-700 rounded"})]})]})})})]}),K=({stats:s,isLoading:i,error:n,className:r,variant:a="full"})=>
1{if(i)return(0,e.jsx)(Me,{variant:a});if(n)return(0,e.jsx)(f,{variant:"error",className:r,children:(0,e.jsxs)("div",{className:"flex items-center gap-3 text-red-600 dark:text-red-400",children:[(0,e.jsx)(I,{className:"w-5 h-5"}),(0,e.jsxs)("p",{className:"text-sm",children:["Failed to load statistics: ",n.message]})]})});if(!s)return null;const d=a==="summary";return(0,e.jsxs)("div",{className:w("space-y-6",r),children:[(0,e.jsx)(Re,{columns:4,metrics:[{title:"Total Feedback",value:s.totalCount.toString(),icon:H,iconColor:"text-amber-500"},{title:"Issues",value:s.issueCount.toString(),icon:I,iconColor:"text-red-500",change:s.totalCount>0?{value:`${u(s.issueCount,s.totalCount)}%`,type:"neutral"}:void 0},{title:"Successes",value:s.successCount.toString(),icon:L,iconColor:"text-emerald-500",change:s.totalCount>0?{value:`${u(s.successCount,s.totalCount)}%`,type:"increase"}:void 0},{title:"Suggestions",value:s.suggestionCount.toString(),icon:P,iconColor:"text-blue-500",change:s.totalCount>0?{value:`${u(s.suggestionCount,s.totalCount)}%`,type:"neutral"}:void 0}]}),!d&&(0,e.jsx)(f,{children:(0,e.jsxs)("div",{className:"space-y-4",children:[(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsx)(he,{className:"w-5 h-5 text-muted-foreground"}),(0,e.jsx)("h3",{className:"font-medium text-foreground",children:"Type Distribution"})]}),(0,e.jsx)(Ae,{issues:s.issueCount,successes:s.successCount,suggestions:s.suggestionCount,total:s.totalCount})]})}),a==="full"&&s.groups.length>0&&(0,e.jsxs)("div",{className:"space-y-4",children:[(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsx)(oe,{className:"w-5 h-5 text-muted-foreground"}),(0,e.jsx)("h3",{className:"font-medium text-foreground",children:"Breakdown by Group"})]}),(0,e.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:s.groups.map(c=>(0,e.jsx)(Ee,{group:c},c.name))})]}),a==="full"&&s.recommendations.length>0&&(0,e.jsx)(f,{children:(0,e.jsxs)("div",{className:"space-y-4",children:[(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsx)(je,{className:"w-5 h-5 text-muted-foreground"}),(0,e.jsx)("h3",{className:"font-medium text-foreground",children:"Top Recommendations"})]}),(0,e.jsx)(Ie,{recommendations:s.recommendations})]})})]})},Pe=({stats:s,className:i})=>s?(0,e.jsxs)("div",{className:w("flex items-center gap-4 text-sm",i),children:[(0,e.jsxs)("div",{className:"flex items-center gap-1",children:[(0,e.jsx)(I,{className:"w-4 h-4 text-red-500"}),(0,e.jsx)("span",{children:s.issueCount})]}),(0,e.jsxs)("div",{className:"flex items-center gap-1",children:[(0,e.jsx)(L,{className:"w-4 h-4 text-emerald-500"}),(0,e.jsx)("span",{children:s.successCount})]}),(0,e.jsxs)("div",{className:"flex items-center gap-1",children:[(0,e.jsx)(P,{className:"w-4 h-4 text-blue-500"}),(0,e.jsx)("span",{children:s.suggestionCount})]})]}):null;K.displayName="FeedbackStatsPanel";Pe.displayName="MiniStatsBar";function Le(s){return new Date(s).toLocaleString("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit"})}var Z=({feedback:s,isOpen:i,onClose:n,onSubmit:r,isSubmitting:a=!1})=>{const[d,c]=(0,l.useState)(""),[g,k]=(0,l.useState)(!1),[v,C]=(0,l.useState)(""),[j,F]=(0,l.useState)(""),[b,p]=(0,l.useState)(null);l.useEffect(()=>{s&&(c(s.actionTaken||""),k(s.actionApplied||!1),C(s.verifiedVersion||""),F(s.verificationEvidence||""),p(null))},[s]);const S=(0,l.useCallback)(async()=>{if(s){if(!d.trim()){p("Please describe the action taken");return}if(g&&(!v.trim()||!j.trim())){p("Include the verified version and verification evidence before marking an action applied");return}p(null);try{await r(s.id,{actionTaken:d.trim(),actionApplied:g,verifiedVersion:v.trim(),verificationEvidence:j.trim()}),n()}catch(o){p(o instanceof Error?o.message:"Failed to submit review")}}},[s,d,g,v,j,r,n]),y=(0,l.useCallback)(()=>{a||n()},[a,n]);return s?(0,e.jsx)(xe,{children:i&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(x.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},onClick:y,className:"fixed inset-0 bg-black/50 backdrop-blur-sm z-50"}),(0,e.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4 pointer-events-none",children:(0,e.jsx)(x.div,{initial:{opacity:0,scale:.95,y:20},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:20},transition:{type:"spring",damping:25,stiffness:300},className:"w-full max-w-2xl max-h-[90vh] overflow-auto pointer-events-auto",children:(0,e.jsxs)("div",{className:w("bg-white dark:bg-gray-900 rounded-2xl shadow-2xl","border border-gray-200 dark:border-gray-700","overflow-hidden"),children:[(0,e.jsxs)("div",{className:"flex items-center justify-between p-6 border-b border-gray-200 dark:border-gray-700",children:[(0,e.jsxs)("div",{className:"flex items-center gap-3",children:[(0,e.jsx)("div",{className:"p-2 rounded-lg bg-amber-100 dark:bg-amber-900/30",children:(0,e.jsx)(me,{className:"w-5 h-5 text-amber-600 dark:text-amber-400"})}),(0,e.jsxs)("div",{children:[(0,e.jsx)("h2",{className:"text-lg font-semibold text-foreground",children:"Review Feedback"}),(0,e.jsx)("p",{className:"text-sm text-muted-foreground",children:"Provide your response to this AI feedback"})]})]}),(0,e.jsx)("button",{onClick:y,disabled:a,className:w("p-2 rounded-lg transition-colors","hover:bg-gray-100 dark:hover:bg-gray-800","text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200",a&&"opacity-50 cursor-not-allowed"),children:(0,e.jsx)(O,{className:"w-5 h-5"})})]}),(0,e.jsxs)("div",{className:"p-6 space-y-6 max-h-[60vh] overflow-y-auto",children:[(0,e.jsx)(f,{variant:"default",size:"sm",children:(0,e.jsxs)("div",{className:"space-y-4",children:[(0,e.jsxs)("div",{className:"flex items-center gap-3 flex-wrap",children:[(0,e.jsx)(ke,{type:s.feedbackType}),(0,e.jsxs)(W,{variant:"outline",children:[(0,e.jsx)(pe,{className:"w-3 h-3 mr-1"}),Fe(s.category)]}),(0,e.jsx)(X,{severity:s.severity,variant:"dots",size:"default"})]}),(0,e.jsxs)("div",{children:[(0,e.jsx)(N,{className:"text-xs text-muted-foreground",children:"Summary"}),(0,e.jsx)("div",{className:"text-sm text-foreground mt-1 text-left break-words prose prose-sm max-w-none dark:prose-invert prose-p:my-1 prose-ul:my-1 prose-ol:my-1 prose-li:my-0",children:(0,e.jsx)(q,{remarkPlugins:[G],children:s.summary})})]}),s.recommendation&&(0,e.jsxs)("div",{children:[(0,e.jsx)(N,{className:"text-xs text-muted-foreground",children:"AI Recommendation"}),(0,e.jsx)("div",{className:"text-sm text-foreground mt-1 p-3 rounded-lg bg-blue-50 dark:bg-blue-900/20 border border-blue-200 dark:border-blue-800 text-left break-words prose prose-sm max-w-none dark:prose-invert prose-p:my-1 prose-ul:my-1 prose-ol:my-1 prose-li:my-0",children:(0,e.jsx)(q,{remarkPlugins:[G],children:s.recommendation})})]}),(0,e.jsxs)("p",{className:"text-xs text-muted-foreground",children:["Reported version:"," ",s.reportedVersion||"Unknown (not captured)"]}),(0,e.jsxs)("div",{className:"flex items-center gap-4 flex-wrap text-xs text-muted-foreground pt-2 border-t border-gray-200 dark:border-gray-700",children:[s.agentName&&(0,e.jsxs)("div",{className:"flex items-center gap-1",children:[(0,e.jsx)(ge,{className:"w-3.5 h-3.5 flex-shrink-0"}),(0,e.jsx)("span",{className:"break-words",children:s.agentName})]}),s.toolInvolved&&(0,e.jsxs)("div",{className:"flex items-center gap-1",children:[(0,e.jsx)(ve,{className:"w-3.5 h-3.5 flex-shrink-0"}),(0,e.jsx)("span",{className:"break-words",children:s.toolInvolved})]}),(0,e.jsxs)("div",{className:"flex items-center gap-1",children:[(0,e.jsx)(fe,{className:"w-3.5 h-3.5 flex-shrink-0"}),(0,e.jsx)("span",{className:"break-words",children:Le(s.createdAt)})]})]})]})}),(0,e.jsxs)("div",{className:"space-y-4",children:[(0,e.jsxs)("div",{className:"space-y-2",children:[(0,e.jsxs)(N,{htmlFor:"actionTaken",children:["Action Taken ",(0,e.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,e.jsx)(E,{id:"actionTaken",value:d,onChange:o=>c(o.target.value),placeholder:"Describe the action you took in response to this feedback...",rows:4,className:w("resize-none",b&&!d.trim()&&"border-red-500"),disabled:a}),(0,e.jsx)("p",{className:"text-xs text-muted-foreground text-left",children:"Explain what steps were taken to address this feedback, or why no action was needed."})]}),(0,e.jsxs)("div",{className:"flex items-start gap-3",children:[(0,e.jsx)(ye,{id:"actionApplied",checked:g,onCheckedChange:o=>k(o===!0),disabled:a}),(0,e.jsxs)("div",{className:"space-y-1",children:[(0,e.jsx)("label",{htmlFor:"actionApplied",className:"text-sm font-medium text-foreground cursor-pointer text-left block",children:"Action has been applied"}),(0,e.jsx)("p",{className:"text-xs text-muted-foreground text-left",children:"Check this if the changes or fixes have been implemented"})]})]}),g&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("div",{className:"space-y-2",children:[(0,e.jsx)(N,{htmlFor:"verifiedVersion",children:"Verified version"}
1),(0,e.jsx)(E,{id:"verifiedVersion",rows:1,value:v,onChange:o=>C(o.target.value),disabled:a})]}),(0,e.jsxs)("div",{className:"space-y-2",children:[(0,e.jsx)(N,{htmlFor:"verificationEvidence",children:"Verification evidence"}),(0,e.jsx)(E,{id:"verificationEvidence",rows:3,value:j,onChange:o=>F(o.target.value),placeholder:"Test run, results, and evidence reference",disabled:a})]})]}),b&&(0,e.jsx)(x.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},className:"p-3 rounded-lg bg-red-50 dark:bg-red-900/20 border border-red-200 dark:border-red-800 text-sm text-red-600 dark:text-red-400",children:b})]})]}),(0,e.jsxs)("div",{className:"flex items-center justify-end gap-3 p-6 border-t border-gray-200 dark:border-gray-700 bg-gray-50 dark:bg-gray-800/50",children:[(0,e.jsx)(M,{variant:"outline",onClick:y,disabled:a,children:"Cancel"}),(0,e.jsx)(M,{onClick:S,disabled:a||!d.trim(),className:"bg-amber-500 hover:bg-amber-600 text-white",children:a?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(ue,{className:"w-4 h-4 mr-2 animate-spin"}),"Submitting..."]}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(L,{className:"w-4 h-4 mr-2"}),"Mark as Reviewed"]})})]})]})})})]})}):null};function ze(){const[s,i]=(0,l.useState)(null),[n,r]=(0,l.useState)(!1);return{selectedFeedback:s,isOpen:n,openReview:(0,l.useCallback)(a=>{i(a),r(!0)},[]),closeReview:(0,l.useCallback)(()=>{r(!1),setTimeout(()=>i(null),200)},[])}}Z.displayName="FeedbackReviewModal";function ts(){const s=be(),{showSuccess:i,showError:n}=we(),[r,a]=(0,l.useState)({page:1,limit:20,reviewed:!1}),[d,c]=(0,l.useState)(!1),{selectedFeedback:g,isOpen:k,openReview:v,closeReview:C}=ze(),{feedback:j,total:F,page:b,limit:p,isLoadingList:S,listError:y,stats:o,isLoadingStats:J,statsError:Q,unreviewedCount:R,markReviewedAsync:z,isMarkingReviewed:D,refresh:V,isRefreshing:Y,clearUnreviewedFeedbackAsync:_,isClearingFeedback:$}=Te({filters:r,statsParams:{days:30,groupBy:"agent"}}),ee=(0,l.useCallback)(()=>{s(-1)},[s]),se=(0,l.useCallback)(t=>{a(h=>({...h,page:t}))},[]),B=(0,l.useCallback)(t=>{a({...t,page:1})},[]),ae=(0,l.useCallback)((t,h)=>{a(T=>{const m={...T};return t==="feedbackTypes"&&h?(m.feedbackTypes=T.feedbackTypes?.filter(A=>A!==h),m.feedbackTypes?.length===0&&delete m.feedbackTypes):t==="categories"&&h?(m.categories=T.categories?.filter(A=>A!==h),m.categories?.length===0&&delete m.categories):t==="reviewed"?delete m.reviewed:t==="minSeverity"||t==="maxSeverity"?(delete m.minSeverity,delete m.maxSeverity):(t==="startDate"||t==="endDate")&&(delete m.startDate,delete m.endDate),{...m,page:1}})},[]),re=(0,l.useCallback)(async(t,h)=>{await z({id:t,reviewData:h})},[z]),te=(0,l.useCallback)(async()=>{try{const t=await _(r);i(`${t.cleared} feedback item${t.cleared!==1?"s":""} cleared.`)}catch(t){throw n("Failed to clear feedback. Please try again."),t}},[_,r,i,n]);return(0,e.jsx)("div",{className:"min-h-screen",children:(0,e.jsxs)("div",{className:"container mx-auto px-4 py-6 max-w-7xl",children:[(0,e.jsx)("div",{className:"mb-6",children:(0,e.jsx)(Ne,{title:"AI Feedback",description:"Review and respond to AI agent feedback",icon:H,iconGradient:"from-amber-500 to-orange-600",onBack:ee,onRefresh:V,isRefreshing:Y,actions:[{label:"Filters",onClick:()=>c(!0),icon:de},...R>0?[{label:"Clear all",onClick:te,icon:ce,loading:$,disabled:$||S,variant:"danger"}]:[]],meta:R>0?(0,e.jsxs)(W,{variant:"default",className:"bg-amber-500 text-white",children:[R," pending"]}):void 0})}),(0,e.jsx)("div",{className:"mb-6",children:(0,e.jsx)(K,{stats:o,isLoading:J,error:Q,variant:"compact"})}),(0,e.jsx)(Ce,{filters:r,onRemoveFilter:ae,className:"mb-4"}),(0,e.jsxs)("div",{className:"flex gap-6",children:[(0,e.jsx)("aside",{className:"hidden lg:block w-72 flex-shrink-0",children:(0,e.jsx)("div",{className:"sticky top-6",children:(0,e.jsx)(U,{filters:r,onFiltersChange:B,variant:"sidebar"})})}),(0,e.jsxs)("main",{className:"flex-1 min-w-0",children:[r.contextId&&(0,e.jsx)(M,{variant:"ghost",onClick:()=>a(t=>({...t,contextId:void 0,page:1})),children:"Show all sessions"}),(0,e.jsx)(Se,{feedback:j,total:F,page:b,limit:p,isLoading:S,error:y,filters:r,onPageChange:se,onReview:v,onViewContext:t=>a({contextId:t,page:1}),onRefresh:V,isReviewing:D})]})]}),d&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(x.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},onClick:()=>c(!1),className:"fixed inset-0 bg-black/50 backdrop-blur-sm z-40 lg:hidden"}),(0,e.jsx)(x.div,{initial:{x:"100%"},animate:{x:0},exit:{x:"100%"},transition:{type:"spring",damping:25,stiffness:300},className:"fixed inset-y-0 right-0 w-80 bg-white dark:bg-gray-900 shadow-2xl z-50 lg:hidden overflow-y-auto",children:(0,e.jsxs)("div",{className:"p-4",children:[(0,e.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,e.jsx)("h2",{className:"text-lg font-semibold",children:"Filters"}),(0,e.jsx)("button",{onClick:()=>c(!1),className:"p-2 rounded-lg hover:bg-gray-100 dark:hover:bg-gray-800",children:(0,e.jsx)(O,{className:"w-5 h-5"})})]}),(0,e.jsx)(U,{filters:r,onFiltersChange:t=>{B(t),c(!1)},variant:"sidebar",className:"border-0 p-0 bg-transparent"})]})})]}),(0,e.jsx)(Z,{feedback:g,isOpen:k,onClose:C,onSubmit:re,isSubmitting:D})]})})}export{ts as FeedbackDashboardPage,ts as default};
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.