1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1370],{42203:function(e,t,n){var o=n(90948);n(93780);let r=(0,o.ZP)("div")(e=>{let{theme:t}=e;return{"& .keen-slider":{direction:"ltr","& .keen-slider__slide":{"& img":{height:"auto",maxWidth:"100%"}},"&.thumbnail .keen-slider__slide:not(.active)":{opacity:.4},"&.zoom-out":{perspective:"1000px","& .zoom-out__slide":{"& .slider-content-wrapper":{width:"100%",height:"100%",position:"absolute","& img":{width:"100%",height:"100%",objectFit:"cover",position:"absolute",backgroundColor:"transparent"}}}},"& .default-slide":{height:200,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:t.palette.background.default}},"& .fader":{position:"relative",overflow:"hidden","& .fader__slide":{width:"100%",height:"100%",position:"absolute",top:"0","& img":{width:" 100%",height:" 100%",objectFit:"cover",position:"absolute"}}},"& .navigation-wrapper":{position:"relative","& .arrow":{top:"50%",width:"3rem",height:"3rem",cursor:"pointer",position:"absolute",transform:"translateY(-50%)",color:t.palette.common.white,..."rtl"===t.direction?{transform:"translateY(-50%) rotate(180deg)"}:{},"&.arrow-disabled":{cursor:"not-allowed",pointerEvents:"none",color:t.palette.action.disabled},"&.arrow-left":{left:0},"&.arrow-right":{right:0}}},"& .swiper-dots":{display:"flex",justifyContent:"center",marginTop:t.spacing(4),"& .MuiBadge-root":{"&:not(:last-child)":{marginRight:t.spacing(4)},"& .MuiBadge-dot":{width:10,height:10,cursor:"pointer",borderRadius:"50%",backgroundColor:t.palette.action.disabled},"&.active .MuiBadge-dot":{backgroundColor:t.palette.primary.main}}}}});t.Z=r},90215:function(e,t,n){var o=n(90948);let r=(0,o.ZP)("div")(e=>{let{theme:t}=e;return{"& .apexcharts-canvas":{"& line[stroke='transparent']":{display:"none"},"& .apexcharts-tooltip":{boxShadow:t.shadows[3],borderColor:t.palette.divider,background:t.palette.background.paper,"& .apexcharts-tooltip-title":{fontWeight:600,borderColor:t.palette.divider,background:t.palette.background.paper},"&.apexcharts-theme-light":{color:t.palette.text.primary},"&.apexcharts-theme-dark":{color:t.palette.common.white},"& .apexcharts-tooltip-series-group:first-of-type":{paddingBottom:0},"& .bar-chart":{padding:t.spacing(2,2.5)}},"& .apexcharts-xaxistooltip":{borderColor:t.palette.divider,background:"light"===t.palette.mode?t.palette.grey[50]:t.palette.customColors.bodyBg,"&:after":{borderBottomColor:"light"===t.palette.mode?t.palette.grey[50]:t.palette.customColors.bodyBg},"&:before":{borderBottomColor:t.palette.divider}},"& .apexcharts-yaxistooltip":{borderColor:t.palette.divider,background:"light"===t.palette.mode?t.palette.grey[50]:t.palette.customColors.bodyBg,"&:after":{borderLeftColor:"light"===t.palette.mode?t.palette.grey[50]:t.palette.customColors.bodyBg},"&:before":{borderLeftColor:t.palette.divider}},"& .apexcharts-xaxistooltip-text, & .apexcharts-yaxistooltip-text":{color:t.palette.text.primary},"& .apexcharts-yaxis .apexcharts-yaxis-texts-g .apexcharts-yaxis-label":{textAnchor:"rtl"===t.direction?"start":void 0},"& .apexcharts-text, & .apexcharts-tooltip-text, & .apexcharts-datalabel-label, & .apexcharts-datalabel, & .apexcharts-xaxistooltip-text, & .apexcharts-yaxistooltip-text, & .apexcharts-legend-text":{fontFamily:"".concat(t.typography.fontFamily," !important")},"& .apexcharts-pie-label":{filter:"none",fill:t.palette.common.white},"& .apexcharts-marker":{boxShadow:"none"}}}});t.Z=r},31262:function(e,t,n){n.r(t),n.d(t,{default:function(){return tx}});var o=n(85893),r=n(86886),i=n(9473),s=n(42203),a=n(90215),l=n(11163),c=n(39332),d=n(98396),p=n(15861),x=n(34386),u=n(93946),g=n(98456),h=n(46901),m=n(92401),f=n(66500),b=n(41664),k=n.n(b),j=n(79878),y=n(67294),v=n(66242),w=n(87357),Z=n(2734),S=n(81931),R=n(6734),C=n(52042),I={tooltipDelayMs:1e3},z=n(78310);function W(e,t,n){let o=e.replace("#",""),r=t.replace("#",""),i=(e,t)=>parseInt(e.substr(t,2),16),s=e=>Math.round(e).toString(16).padStart(2,"0");return"#".concat(s(i(o,0)+n*(i(r,0)-i(o,0)))).concat(s(i(o,2)+n*(i(r,2)-i(o,2)))).concat(s(i(o,4)+n*(i(r,4)-i(o,4))))}function M(e){let{pct:t,color:n,trackColor:r,size:i=174,stroke:s=11}=e,a=(i-s)/2,l=2*Math.PI*a;return(0,o.jsxs)("svg",{width:i,height:i,viewBox:"0 0 ".concat(i," ").concat(i),style:{transform:"rotate(-90deg)"},"aria-hidden":"true",children:[(0,o.jsx)("circle",{cx:i/2,cy:i/2,r:a,fill:"none",stroke:r,strokeWidth:s}),(0,o.jsx)("circle",{cx:i/2,cy:i/2,r:a,fill:"none",stroke:n,strokeWidth:s,strokeLinecap:"round",strokeDasharray:l,strokeDashoffset:l*(1-t/100),style:{transition:"stroke-dashoffset 1.4s cubic-bezier(0.4,0,0.2,1), stroke 0.8s ease"}})]})}function F(e){let{target:t,duration:n=1400,easePower:r=3}=e,[i,s]=(0,y.useState)(0),a=(0,y.useRef)(0),l=(0,y.useRef)();return(0,y.useEffect)(()=>{let e=a.current;if(e===t){s(t);return}let o=performance.now(),i=c=>{let d=Math.min((c-o)/n,1);s(Math.round(e+(t-e)*(1-Math.pow(1-d,r)))),d<1?l.current=requestAnimationFrame(i):a.current=t};return l.current=requestAnimationFrame(i),()=>cancelAnimationFrame(l.current)},[t,n,r]),(0,o.jsx)(o.Fragment,{children:i})}function A(e){let{title:t,body:n,ariaLabel:r,children:i}=e,s=(0,Z.Z)(),a="dark"===s.palette.mode,l=a?"#222530":"#FFFFFF";return(0,o.jsx)(x.Z,{enterDelay:I.tooltipDelayMs,enterTouchDelay:I.tooltipDelayMs,enterNextDelay:I.tooltipDelayMs,title:(0,o.jsxs)(w.Z,{children:[(0,o.jsx)(p.Z,{sx:{fontSize:12,fontWeight:700,lineHeight:1.35,mb:"2px",color:l},children:t}),(0,o.jsx)(p.Z,{sx:{fontSize:11,fontWeight:400,lineHeight:1.45,color:l,opacity:.82},children:n})]}),placement:"bottom",componentsProps:{tooltip:{sx:{maxWidth:220,px:"10px",py:"8px",borderRadius:"8px",bgcolor:a?"#E8EAF6":"#12101E",boxShadow:"0 8px 22px rgba(0,0,0,0.4)"}}},children:i||(0,o.jsx)(w.Z,{component:"button",type:"button","aria-label":r,sx:{dis
1play:"inline-flex",alignItems:"center",justifyContent:"center",width:16,height:16,p:0,ml:"4px",border:"none",background:"transparent",color:"inherit",opacity:.55,cursor:"help",verticalAlign:"middle",flexShrink:0,"&:hover":{opacity:.85},"&:focus-visible":{outline:"2px solid ".concat(s.palette.primary.main),outlineOffset:2,borderRadius:"50%"}},children:(0,o.jsx)(C.Z,{size:15,stroke:1.75,"aria-hidden":"true"})})})}n(85985);let T=e=>{var t,n,r,i,s,a;let{wCAGReportSummaryData:l,reportData:c,localScan:d=!1,accessProgressTrackerDataBackend:x,accessProgressTrackerData:u}=e,g=(0,Z.Z)(),h=(0,S.Z)(),{t:m}=(0,R.$G)(),f="dark"===g.palette.mode,b=null!=u?u:x,k=null!==(n=null!==(t=null==l?void 0:l.accessibilityScore)&&void 0!==t?t:null==b?void 0:b.accessibilityScore)&&void 0!==n?n:0,j=f?k<50?"#E6A1A2":k<70?W("#E6A1A2","#E6CCA1",(k-50)/20):k<90?W("#E6CCA1","#D9E6A1",(k-70)/20):W("#D9E6A1","#BAFFCF",Math.min((k-90)/10,1)):k<50?"#CF1818":k<70?W("#CF1818","#B06000",(k-50)/20):k<90?W("#B06000","#5A7A00",(k-70)/20):W("#5A7A00","#1A7A40",Math.min((k-90)/10,1)),C=f?"#5E6172":"#EBEBEB",I=null!==(r=null==b?void 0:b.violationsTotal)&&void 0!==r?r:0,T=null!==(i=null==b?void 0:b.violationsSolved)&&void 0!==i?i:0,B=null!==(a=null!==(s=null==c?void 0:c.length)&&void 0!==s?s:null==l?void 0:l.pagesScanned)&&void 0!==a?a:0,L=I>0?T/I*100:100,E=h.primaryLight.color,D=h.successLight.color,[P,N]=(0,y.useState)(!1);(0,y.useEffect)(()=>{if(!l){N(!1);return}N(!1);let e=setTimeout(()=>N(!0),50);return()=>clearTimeout(e)},[l,k,L,I,T,B]);let H=P?k:0;return l?(0,o.jsx)(v.Z,{sx:{height:"100%"},children:(0,o.jsx)(w.Z,{sx:{p:"20px 28px"},children:(0,o.jsxs)(w.Z,{sx:{display:"flex",flexWrap:"wrap",justifyContent:"space-between",alignItems:"flex-start",gap:6},children:[(0,o.jsxs)(w.Z,{sx:{flex:"1 1 240px",minWidth:0},children:[(0,o.jsxs)(w.Z,{sx:{display:"flex",alignItems:"center",gap:2,flexWrap:"wrap",mb:"6px"},children:[(0,o.jsx)(p.Z,{component:"h1",sx:{fontSize:26,fontWeight:700,letterSpacing:"-0.02em",lineHeight:1.2,color:g.palette.text.enterprise},children:m("reportInfo.title")}),d&&(0,o.jsx)(z.b8,{})]}),(0,o.jsx)(p.Z,{sx:{fontSize:12,opacity:.7,mb:"22px"},children:"".concat(m("myScans.dateTime"),": ").concat(l.scanDate)}),(0,o.jsx)(p.Z,{sx:{fontSize:44,fontWeight:700,lineHeight:1,mb:"5px",color:g.palette.error.main,fontVariantNumeric:"tabular-nums"},children:(0,o.jsx)(F,{target:P?I:0,duration:1900,easePower:5})}),(0,o.jsxs)(w.Z,{sx:{display:"flex",alignItems:"center",gap:"4px",mb:"18px"},children:[(0,o.jsx)(p.Z,{sx:{fontSize:13,opacity:.7},children:m("scanReport.totalIssuesFound",{defaultValue:"Total Issues found"})}),(0,o.jsx)(A,{title:m("scanReport.headerTooltips.totalIssuesTitle"),body:m("scanReport.headerTooltips.totalIssuesBody"),ariaLabel:m("scanReport.headerTooltips.totalIssuesTitle")})]}),(0,o.jsx)(w.Z,{sx:{height:"1px",bgcolor:"divider",mb:"14px"}}),(0,o.jsxs)(w.Z,{sx:{display:"flex",alignItems:"center",gap:5,flexWrap:"wrap"},children:[(0,o.jsxs)(w.Z,{sx:{display:"flex",alignItems:"center",gap:2,py:"4px"},children:[(0,o.jsx)(w.Z,{sx:{width:28,height:28,borderRadius:"7px",flexShrink:0,...h.primaryLight,display:"flex",alignItems:"center",justifyContent:"center"},children:(0,o.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,o.jsx)("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z",stroke:E}),(0,o.jsx)("polyline",{points:"14 2 14 8 20 8",stroke:E})]})}),(0,o.jsx)(p.Z,{sx:{fontSize:12,opacity:.7},children:m("myScans.pagesScanned")}),(0,o.jsx)(p.Z,{sx:{fontSize:13,fontWeight:600,fontVariantNumeric:"tabular-nums"},children:(0,o.jsx)(F,{target:P?B:0})}),(0,o.jsx)(A,{title:m("scanReport.headerTooltips.pagesScannedTitle"),body:m("scanReport.headerTooltips.pagesScannedBody"),ariaLabel:m("scanReport.headerTooltips.pagesScannedTitle")})]}),(0,o.jsx)(w.Z,{sx:{width:"1px",height:28,bgcolor:"divider",flexShrink:0}}),(0,o.jsxs)(w.Z,{sx:{display:"flex",alignItems:"center",gap:2,py:"4px"},children:[(0,o.jsx)(w.Z,{sx:{width:28,height:28,borderRadius:"7px",flexShrink:0,...h.successLight,display:"flex",alignItems:"center",justifyContent:"center"},children:(0,o.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 25 25",fill:"none","aria-hidden":"true",children:[(0,o.jsx)("path",{d:"M9.375 12.4974L11.4583 14.5807L15.625 10.4141",stroke:D,strokeWidth:"1.5625",strokeLinecap:"round",strokeLinejoin:"round"}),(0,o.jsx)("path",{d:"M12.5 3.125C20 3.125 21.875 5 21.875 12.5C21.875 20 20 21.875 12.5 21.875C5 21.875 3.125 20 3.125 12.5C3.125 5 5 3.125 12.5 3.125Z",stroke:D,strokeWidth:"1.5625",strokeLinecap:"round",strokeLinejoin:"round"})]})}),(0,o.jsx)(p.Z,{sx:{fontSize:12,opacity:.7},children:m("scanReport.fixProgress",{defaultValue:"Fix progress"})}),(0,o.jsx)(p.Z,{sx:{fontSize:13,fontWeight:600,fontVariantNumeric:"tabular-nums"},children:(0,o.jsx)(F,{target:P?T:0})}),(0,o.jsx)(p.Z,{sx:{fontSize:12,opacity:.35},children:"/"}),(0,o.jsx)(p.Z,{sx:{fontSize:13,fontWeight:600,fontVariantNumeric:"tabular-nums"},children:(0,o.jsx)(F,{target:P?I:0})}),(0,o.jsx)(w.Z,{sx:{width:72,height:6,borderRadius:"6px",bgcolor:C,overflow:"hidden"},children:(0,o.jsx)(w.Z,{sx:{height:"100%",borderRadius:"6px",width:"".concat(P?L:0,"%"),bgcolor:j,transition:"width 1.4s ease, background-color 0.8s"}})}),(0,o.jsx)(A,{title:m("scanReport.headerTooltips.fixProgressTitle"),body:m("scanReport.headerTooltips.fixProgressBody"),ariaLabel:m("scanReport.headerTooltips.fixProgressTitle")})]})]})]}),(0,o.jsxs)(w.Z,{sx:{flex:"0 0 auto",display:"flex",flexDirection:"column",alignItems:"center",alignSelf:"center",width:"100%",maxWidth:174},children:[(0,o.jsxs)(w.Z,{sx:{position:"relative",width:174,height:174},children:[(0,o.jsx)(M,{pct:H,color:j,trackColor:C}),(0,o.jsx)(w.Z,{sx:{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center"},children:(0,o.jsxs)(w.Z,{sx:{display:"flex",alignItems:"baseline",gap:"1px",color:j,transition:"color 0.5s"},children:[(0,o.jsx)(p.Z,{sx:{fontSize:38,fontWeight:400,lineHeight:1,letterSpacing:"-0.01em",color:"inherit",fontVariantNumeric:"tabular-nums"},children:(0,o.jsx)(F,{target:H})}),(0,o.jsx)(p.Z,{sx:{fontSize:38,fontWeight:300,lineHeight:1,color:"inherit"},children:"%"})]})})]}),(0,o.jsxs)(w.Z,{sx:{display:"flex",alignItems:"center",justifyContent:"center",gap:"4px",mt:"10px"},children:[(0,o.jsx)(p.Z,{sx:{fontSize:12,opacity:.7},children:m("scanReport.accessibilityScore")}),(0,o.jsx)(A,{title:m("scanReport.headerTooltips.accessibilityScoreTitle"),body:m("scanReport.headerTooltips.accessibilityScoreBody"),ariaLabel:m("scanReport.headerTooltips.accessibilityScoreTitle")})]})]})]})})}):null};var B=n(17297),L=n(73563),E=n(63093),D=n(71577);let P="monitoringReportPinnedPages";function N(e){if(!e)return new Set;try{let t=localStorage.getItem(P);if(!t)return new Set;let n=JSON.parse(t),o=n[String(e)];return Array.isArray(o)?new Set(o):new Set}catch(e){return new Set}}
1function H(e,t){let n=["failed","solved","ignored"].filter(t=>e[t]);return 3===n.length?t("monitoringReport.common.all"):0===n.length?t("monitoringReport.common.none"):n.map(e=>t("monitoringReport.status.".concat(e))).join(", ")}function O(e,t){let n=E.t3.filter(t=>e[t.key]);return n.length===E.t3.length?t("monitoringReport.common.all"):0===n.length?t("monitoringReport.common.none"):n.map(e=>t("monitoringReport.severity.".concat(e.key))).join(", ")}function U(e,t){let n=E.sQ.filter(t=>e[t]);return n.length===E.sQ.length?t("monitoringReport.common.all"):0===n.length?t("monitoringReport.common.none"):n.join(", ")}function _(e){let{t,children:n,style:r,tipLabel:i,tipBody:s}=e,a=(0,o.jsxs)(w.Z,{component:"div",tabIndex:i?0:void 0,role:i?"button":void 0,"aria-label":i?"".concat(i,". ").concat(s):void 0,sx:{fontSize:10.5,fontWeight:700,color:t.txt4,textTransform:"uppercase",letterSpacing:"0.1em",marginBottom:2.5,display:"inline-flex",alignItems:"center",gap:"5px",border:"none",background:"transparent",py:0,pr:0,pl:2,cursor:i?"help":void 0,outline:"none","&:focus-visible":i?{outline:"2px solid ".concat(t.primary),outlineOffset:2,borderRadius:"4px"}:void 0,...r},children:[n,i&&(0,o.jsx)(L.Z,{name:"help",size:11,stroke:t.txt4,"aria-hidden":"true"})]});return i?(0,o.jsx)(D.O1,{t:t,label:i,body:s,align:"left",delay:500,children:a}):a}function G(e){let{t,children:n,active:r,dot:i,onClick:s,activeFontWeight:a=600}=e,l=t.dark?"#FFFFFF":t.txt1,c=t.dark?"rgba(255, 255, 255, 0.1)":(0,E.aJ)(t.txt1,.06);return(0,o.jsxs)(w.Z,{component:"button",onClick:s,"aria-current":r?"true":void 0,sx:{width:"100%",display:"flex",alignItems:"center",gap:10,padding:"9px 12px",marginBottom:2,borderRadius:1,textAlign:"left",cursor:"pointer",fontSize:13.5,fontWeight:r?a:400,color:r?l:t.txt2,background:r?c:"transparent",border:"none",borderLeft:r?"2px solid ".concat((0,E.aJ)(l,.4)):"2px solid transparent",wordBreak:"break-all"},children:[i&&(0,o.jsx)(w.Z,{component:"span",sx:{width:6,height:6,borderRadius:"50%",flexShrink:0,background:r?l:t.txt4}}),n]})}function q(e){let{t,tr:n,pinned:r,onClick:i}=e,[s,a]=(0,y.useState)(!1),l=n(r?"monitoringReport.pagesNav.pinBringBack":"monitoringReport.pagesNav.pinMoveToTop");return(0,o.jsxs)(w.Z,{component:"span",sx:{position:"relative",flexShrink:0,display:"flex"},onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),children:[(0,o.jsx)(w.Z,{component:"button",onClick:i,"aria-label":l,sx:{width:28,height:28,borderRadius:7,border:"none",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",background:r?t.primarySoft:s?t.dark?"rgba(255,255,255,0.06)":"rgba(0,0,0,0.05)":"transparent",color:r?t.primary:t.txt4,transition:"background 0.12s"},children:(0,o.jsx)(L.Z,{name:"toTop",size:15,stroke:r?t.primary:t.txt4})}),s&&(0,o.jsx)(w.Z,{component:"span",role:"tooltip",sx:{position:"absolute",bottom:"calc(100% + 6px)",right:0,whiteSpace:"nowrap",padding:"5px 9px",borderRadius:7,fontSize:11.5,fontWeight:600,color:t.txt1,background:t.paper2,border:"1px solid ".concat(t.border),boxShadow:"0 6px 18px rgba(0,0,0,0.28)",zIndex:20,pointerEvents:"none",animation:"tnv-fade 0.12s ease"},children:l})]})}var J=n(51336),V=n(80376);function Y(e){return e.f+e.s+e.ig}function $(e,t){return!0===e.filtered||e.total>0&&0===Y(t)}function Q(e){let{t,checks:n,search:r,setSearch:i,counts:s,onOpen:a,isMobile:l,openIds:c=[]}=e,{t:d}=(0,R.$G)(),p=E.aA.map(e=>({key:e.id,label:(0,J.lX)(d,e.id),icon:e.icon,accent:t[e.color]||t.primary,soft:t[e.color+"Soft"]||t.primarySoft,items:n.filter(t=>t.cat===e.id)})).filter(e=>e.items.length).map(e=>({...e,issues:e.items.reduce((e,t)=>e+(s(t).f||0),0)})).sort((e,t)=>t.issues-e.issues);return(0,o.jsxs)(w.Z,{sx:{background:t.paper,border:"1px solid ".concat(t.border),borderRadius:"10px",overflow:"hidden"},children:[(0,o.jsx)(w.Z,{sx:{display:"flex",gap:"12px",alignItems:"center",padding:l?"12px":"12px 16px",borderBottom:"1px solid ".concat(t.divider)},children:(0,o.jsxs)(w.Z,{sx:{flex:"1 1 auto",maxWidth:380,display:"flex",alignItems:"center",gap:"9px",background:t.inputBg,border:"1px solid ".concat(t.border),borderRadius:"8px",padding:"8px 11px"},children:[(0,o.jsx)(L.Z,{name:"search",size:16,stroke:t.txt3}),(0,o.jsx)(w.Z,{component:"input",value:r,onChange:e=>i(e.target.value),placeholder:d("monitoringReport.checksList.searchPlaceholder"),"aria-label":d("monitoringReport.checksList.searchAria"),sx:{flex:1,border:"none",outline:"none",background:"transparent",color:t.txt1,fontWeight:500,fontSize:"13.5px !important","&::placeholder":{color:"".concat(t.placeholder," !important"),fontSize:"13.5px !important",fontWeight:400,opacity:1},"&::-webkit-input-placeholder":{color:"".concat(t.placeholder," !important"),fontSize:"13.5px !important",fontWeight:400,opacity:1},"&::-moz-placeholder":{color:"".concat(t.placeholder," !important"),fontSize:"13.5px !important",fontWeight:400,opacity:1}}})]})}),0===n.length?(0,o.jsxs)(w.Z,{sx:{padding:"48px 32px",textAlign:"center"}
1,children:[(0,o.jsxs)(w.Z,{component:"span",sx:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:56,height:56,borderRadius:"14px",background:t.primarySoft,marginBottom:"16px",position:"relative"},children:[(0,o.jsx)(L.Z,{name:"filter",size:26,stroke:t.primary}),(0,o.jsx)(w.Z,{component:"span",sx:{position:"absolute",top:-3,right:-3,width:18,height:18,borderRadius:"50%",background:t.primaryStrong,border:"2px solid ".concat(t.paper),display:"flex",alignItems:"center",justifyContent:"center"},children:(0,o.jsx)(L.Z,{name:"check",size:10,stroke:"#fff"})})]}),(0,o.jsx)(w.Z,{sx:{fontSize:15,fontWeight:700,color:t.txt1,marginBottom:"6px"},children:d("monitoringReport.checksList.emptyTitle")}),(0,o.jsx)(w.Z,{sx:{fontSize:13.5,color:t.txt3,lineHeight:1.6,maxWidth:380,margin:"0 auto"},children:d("monitoringReport.checksList.emptyBody")})]}):p.map(e=>(0,o.jsx)(X,{t:t,tr:d,group:e,counts:s,onOpen:a,isMobile:l,groupBy:"category",openIds:c,defaultOpen:!1},e.key))]})}function K(e){let{t,accent:n,isMobile:r}=e,i=r?22:34,s=(0,E.aJ)(n,t.dark?.45:.38);return(0,o.jsxs)(w.Z,{sx:{width:i,flexShrink:0,position:"relative"},"aria-hidden":"true",children:[(0,o.jsx)(w.Z,{sx:{position:"absolute",left:Math.round(i/2)-1,top:0,bottom:0,width:"2px",background:s}}),(0,o.jsx)(w.Z,{sx:{position:"absolute",left:Math.round(i/2)-1,top:"50%",width:i/2-3,height:"2px",background:s}})]})}function X(e){let{t,tr:n,group:r,counts:i,onOpen:s,isMobile:a,groupBy:l,openIds:c=[],defaultOpen:d=!1}=e,[p,x]=(0,y.useState)(d),[u,g]=(0,y.useState)(!1),h=r.items.filter(e=>{let t=i(e);return!$(e,t)&&e.total>0&&Y(t)>0}),m=r.items.filter(e=>$(e,i(e))),f=r.items.filter(e=>!$(e,i(e))&&0===e.total&&!e.na),b=r.items.filter(e=>!$(e,i(e))&&0===e.total&&e.na),k=[...m,...f,...b],j=h.reduce((e,t)=>{let n=i(t);return e.f+=n.f,e.s+=n.s,e},{f:0,s:0}),v=[];h.length&&v.push(n("monitoringReport.checksList.flagged",{count:h.length})),m.length&&v.push(n("monitoringReport.checksList.filtered",{count:m.length})),f.length&&v.push(n("monitoringReport.checksList.passing",{count:f.length})),b.length&&v.push(n("monitoringReport.checksList.notApplicableCount",{count:b.length}));let Z=v.join(" \xb7 ")||n("monitoringReport.checksList.checksCount",{count:r.items.length}),S=[];return m.length&&S.push(n("monitoringReport.checksList.filteredOut",{count:m.length})),f.length&&S.push(n("monitoringReport.checksList.passingCount",{count:f.length})),b.length&&S.push(n("monitoringReport.checksList.notApplicableShort",{count:b.length})),(0,o.jsxs)(w.Z,{sx:{borderBottom:"1px solid ".concat(t.divider)},children:[(0,o.jsxs)(w.Z,{component:"button",onClick:()=>x(e=>!e),"aria-expanded":p,sx:{width:"100%",display:"flex",alignItems:"center",gap:"12px",padding:a?"13px 14px":"14px 20px",background:t.paper2,border:"none",borderLeft:"3px solid ".concat(r.accent),cursor:"pointer",textAlign:"left"},children:[(0,o.jsx)(w.Z,{component:"span",sx:{width:34,height:34,borderRadius:"9px",flexShrink:0,display:"grid",placeItems:"center",background:t.dark?"rgba(255,255,255,0.06)":"rgba(0,0,0,0.045)"},children:(0,o.jsx)(L.Z,{name:r.icon,size:18,stroke:t.txt2})}),(0,o.jsxs)(w.Z,{sx:{flex:1,minWidth:0},children:[(0,o.jsx)(w.Z,{sx:{fontSize:14.5,fontWeight:700,color:t.txt1,letterSpacing:"-0.01em",lineHeight:1.2},children:r.label}),(0,o.jsxs)(w.Z,{sx:{marginTop:"3px",display:"inline-flex",alignItems:"center",gap:"6px",fontSize:12,fontWeight:600,lineHeight:1,color:t.txt2,whiteSpace:"nowrap"},children:[(0,o.jsx)(w.Z,{component:"span",sx:{width:7,height:7,borderRadius:"50%",flexShrink:0,background:j.f>0?t.error:m.length>0?t.warning:t.success}}),j.f>0?n("monitoringReport.checksList.failing",{count:j.f}):m.length>0?n("monitoringReport.checksList.filtered",{count:m.length}):n("monitoringReport.checksList.allClear")]})]}),(0,o.jsx)(w.Z,{component:"span",sx:{fontSize:11,color:t.txt4,textTransform:"uppercase",letterSpacing:"0.06em",fontWeight:600,whiteSpace:"nowrap",textAlign:"right"},children:Z}),(0,o.jsx)(L.Z,{name:p?"chevUp":"chevDown",size:18,stroke:t.txt3})]}),(0,o.jsx)(D.UO,{open:p,children:(0,o.jsxs)(w.Z,{sx:{padding:"4px 0 6px",background:t.dark?"#282C39":t.pageBg},children:[h.map((e,d)=>(0,o.jsx)(ee,{t:t,tr:n,c:e,rowCounts:i(e),onOpen:s,accent:r.accent,isMobile:a,first:0===d,groupBy:l,isOpen:c.includes(e.id)},e.id)),k.length>0&&(0,o.jsxs)(w.Z,{children:[(0,o.jsxs)(w.Z,{sx:{display:"flex",alignItems:"stretch"},children:[(0,o.jsx)(K,{t:t,accent:r.accent,isMobile:a}),(0,o.jsxs)(w.Z,{component:"button",onClick:()=>g(e=>!e),"aria-expanded":u,sx:{flex:1,display:"flex",alignItems:"center",gap:"9px",textAlign:"left",cursor:"pointer",padding:a?"10px 12px 10px 2px":"11px 18px 11px 4px",border:"none",borderTop:h.length?"1px solid ".concat(t.divider):"none",background:"transparent"},children:[(0,o.jsx)(L.Z,{name:"checkCircle",size:15,stroke:t.txt3}),(0,o.jsxs)(w.Z,{component:"span",sx:{flex:1,fontSize:12.5,fontWeight:500,color:t.txt3},children:[u?n("monitoringReport.checksList.hide"):n("monitoringReport.checksList.show")," ",S.join(" \xb7 ")]}),(0,o.jsx)(L.Z,{name:u?"chevUp":"chevDown",size:15,stroke:t.txt4})]})]}),(0,o.jsx)(D.UO,{open:u,children:(0,o.jsx)(w.Z,{sx:{background:t.dark?"#282C39":t.pageBg},children:k.map(e=>(0,o.jsx)(ee,{t:t,tr:n,c:e,rowCounts:i(e),onOpen:s,accent:r.accent,isMobile:a,first:!0,groupBy:l,isOpen:c.includes(e.id)},e.id))})})]})]})})]})}function ee(e){let{t,tr:n,c:r,rowCounts:i,onOpen:s,accent:a,isMobile:l,first:c,groupBy:d,isOpen:p}=e,[x,u]=(0,y.useState)(!1),g=$(r,i),h=!g&&0===r.total&&r.na,m=!g&&0===r.total&&!r.na,f=i.f>0,b=f?t.error:t.success,k=n("A"===r.level?"monitoringReport.checksList.wcagLevelEssential":"AA"===r.level?"monitoringReport.checksList.wcagLevelRecommended":"monitoringReport.checksList.wcagLevelEnhanced",{level:r.level}),j=null;if("severity"===d){let e=E.Ef[r.cat];e&&(j={label:(0,J.lX)(n,e.id),col:t[e.color]||t.primary,icon:e.icon})}else r.total>0&&(j={label:(0,J.Wy)(n,r.sev),col:(0,E.yG)(t,r.sev),dot:!0});let v=g?n("monitoringReport.checksList.checkAriaHidden",{title:r.title}):h?n("monitoringReport.checksList.checkAriaNa",{title:r.title}):m?n("monitoringReport.checksList.checkAriaNoIssues",{title:r.title}):n("monitoringReport.checksList.checkAriaIssues",{title:r.title,failed:i.f,s
1olved:i.s});return(0,o.jsxs)(w.Z,{sx:{display:"flex",alignItems:"stretch"},children:[(0,o.jsx)(K,{t:t,accent:a,isMobile:l}),(0,o.jsxs)(w.Z,{component:"button",onClick:()=>s(r.id),onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),"aria-label":v,sx:{flex:1,minWidth:0,display:"flex",alignItems:"center",gap:"11px",textAlign:"left",padding:l?"11px 12px 11px 2px":"12px 18px 12px 4px",background:p?t.primarySoft:x?t.dark?"rgba(255,255,255,0.03)":"rgba(0,0,0,0.022)":"transparent",border:"none",borderTop:c?"none":"1px solid ".concat(t.divider),cursor:"pointer",flexWrap:l?"wrap":"nowrap",transition:"background 0.12s"},children:[g?(0,o.jsx)(L.Z,{name:"filter",size:16,stroke:t.txt4,style:{flexShrink:0}}):r.total>0?(0,o.jsx)(w.Z,{component:"span",sx:{width:8,height:8,borderRadius:"50%",flexShrink:0,background:b}}):(0,o.jsx)(L.Z,{name:h?"minusCircle":"checkCircle",size:18,stroke:h?t.txt4:t.success,style:{flexShrink:0}}),(0,o.jsxs)(w.Z,{component:"span",sx:{flex:1,minWidth:l?"100%":0,order:l?-1:0,paddingLeft:l?0:"2px",display:"flex",alignItems:"center",gap:"8px",flexWrap:"wrap"},children:[(0,o.jsx)(w.Z,{component:"span",sx:{fontSize:13,fontWeight:500,color:r.total>0&&!g?t.txt2:t.txt3,lineHeight:1.4},children:r.title}),(0,o.jsx)(w.Z,{component:"span",title:k,sx:{fontSize:10.5,fontWeight:600,color:t.txt3,border:"1px solid ".concat(t.border),borderRadius:"5px",padding:"1px 6px",flexShrink:0,cursor:"default"},children:r.level})]}),j&&(0,o.jsxs)(w.Z,{component:"span",sx:{display:"inline-flex",alignItems:"center",gap:"6px",fontSize:11.5,fontWeight:600,lineHeight:1,color:t.txt3,whiteSpace:"nowrap",flexShrink:0},children:[j.dot?(0,o.jsx)(w.Z,{component:"span",sx:{position:"relative",top:"-1px",width:7,height:7,borderRadius:"50%",flexShrink:0,background:j.col}}):(0,o.jsx)(L.Z,{name:j.icon,size:12,stroke:t.txt4}),j.label]}),g?(0,o.jsx)(D.O1,{t:t,label:n("monitoringReport.checksList.hiddenByFilters"),body:n("monitoringReport.checksList.hiddenByFiltersBody"),children:(0,o.jsxs)(w.Z,{component:"span",sx:{display:"inline-flex",alignItems:"center",gap:"5px",padding:"5px 11px",fontSize:12,fontWeight:600,color:t.warning,background:t.warningSoft,border:"1px solid ".concat((0,E.aJ)(t.warning,.3)),borderRadius:"7px",whiteSpace:"nowrap",cursor:"default"},children:[(0,o.jsx)(L.Z,{name:"filter",size:12,stroke:t.warning})," ",n("monitoringReport.checksList.filteredOutBadge")]})}):r.total>0?(0,o.jsx)(D.jG,{t:t,tr:n,failed:i.f,solved:i.s}):h?(0,o.jsxs)(w.Z,{component:"span",sx:{display:"inline-flex",alignItems:"center",gap:"5px",padding:"5px 11px",fontSize:12,fontWeight:600,color:t.txt3,background:t.track,borderRadius:"7px",whiteSpace:"nowrap"},children:[(0,o.jsx)(L.Z,{name:"minus",size:13,stroke:t.txt3})," ",n("monitoringReport.status.notApplicable")]}):(0,o.jsxs)(w.Z,{component:"span",sx:{display:"inline-flex",alignItems:"center",gap:"5px",padding:"5px 11px",fontSize:12,fontWeight:600,color:t.txt2,background:t.track,borderRadius:"7px",whiteSpace:"nowrap"},children:[(0,o.jsx)(L.Z,{name:"check",size:13,stroke:t.success})," ",n("monitoringReport.status.noIssues")]}),p&&(0,o.jsxs)(w.Z,{component:"span",sx:{display:"inline-flex",alignItems:"center",gap:"5px",padding:"3px 9px",borderRadius:"6px",fontSize:11,fontWeight:700,color:t.primary,background:(0,E.aJ)(t.primary,t.dark?.2:.14),whiteSpace:"nowrap",flexShrink:0},children:[(0,o.jsx)(L.Z,{name:"sidebar",size:12,stroke:t.primary})," ",n("monitoringReport.status.open")]}),(0,o.jsx)(L.Z,{name:"chevRight",size:15,stroke:x?t.txt2:t.txt4,style:{transition:"stroke 0.15s"}})]})]})}function et(e){let{dark:t,size:n=13,children:r}=e,i=n+5;return(0,o.jsx)(w.Z,{component:"span",sx:{width:i,height:i,borderRadius:"50%",display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,background:t?"#FFFFFF":"#000000"},children:r})}function en(e){let{size:t=13,children:n}=e;return(0,o.jsx)(w.Z,{component:"svg",width:t,height:t,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",sx:{flexShrink:0,display:"block"},children:n})}let eo=[{id:"chatgpt",label:"ChatGPT",Logo:function(e){let{size:t=13}=e;return(0,o.jsx)(en,{size:t,children:(0,o.jsx)("path",{fill:"#10A37F",d:"M22.2819 9.8211a5.9847 5.9847 0 0 0-.5157-4.9106 6.0462 6.0462 0 0 0-6.5096-2.9A6.0651 6.0651 0 0 0 4.9807 4.1818a5.9847 5.9847 0 0 0-3.9977 2.9006 6.0462 6.0462 0 0 0 .7427 7.0966 5.98 5.98 0 0 0 .511 4.9107 6.051 6.051 0 0 0 6.5146 2.9001A5.9847 5.9847 0 0 0 13.2599 24a6.0557 6.0557 0 0 0 5.7718-4.2058 5.9894 5.9894 0 0 0 3.9977-2.9001 6.0557 6.0557 0 0 0-.747-7.0729zM13.2599 22.4304a4.4755 4.4755 0 0 1-2.8764-1.0408l.1419-.0815 4.7785-2.7584a.7958.7958 0 0 0 .3918-.6813v-6.7369l2.02 1.1688a.0741.0741 0 0 1 .038.0516v5.5826a4.504 4.504 0 0 1-4.4945 4.4944zm-9.6607-4.1254a4.47 4.47 0 0 1-.5349-3.0137l.142.0854 4.7825 2.7589a.771.771 0 0 0 .7798 0l5.8428-3.369v2.332a.0804.0804 0 0 1-.0332.0614L9.74 19.9502a4.4992 4.4992 0 0 1-6.1408-1.6464zM2.3408 7.8956a4.485 4.485 0 0 1 2.3651-1.9728V11.6a.766.766 0 0 0 .3879.6765l5.8144 3.3543-2.0202 1.1682a.0757.0757 0 0 1-.071 0l-4.8303-2.7861A4.504 4.504 0 0 1 2.3408 7.872zm16.5963 3.8558L13.1038 8.364 15.1192 7.2a.0757.0757 0 0 1 .071 0l4.8303 2.7861a4.4944 4.4944 0 0 1-.6767 8.1042v-5.6778a.79.79 0 0 0-.407-.667zm2.0107-3.0231l-.1419-.0815-4.7735-2.7814a.7759.7759 0 0 0-.7854 0L9.409 9.2297V6.8974a.0662.0662 0 0 1 .0284-.0615l4.8303-2.7866a4.4992 4.4992 0 0 1 6.6802 4.66zM8.3065 12.863l-2.02-1.1638a.0804.0804 0 0 1-.038-.0567V6.0742a4.4992 4.4992 0 0 1 7.3757-3.453L13.4779 5.6l-2.773 1.6008a.7958.7958 0 0 0-.3987.6813l-.0003 2.9809zm1.0976-2.3652l2.602-1.4998 2.6075 1.5v2.9984l-2.5976 1.4997-2.6075-1.4997V10.4978z"})})}},{id:"claude",label:"Claude",Logo:function(e){let{size:t=13}=e;return(0,o.jsx)(en,{size:t,children:(0,o.jsx)("path",{fill:"#D97757",d:"M17.304 3.541h-3.672l7.28 17.459h3.673l-7.281-17.46ZM8.696 3.541 1.416 21h3.751l1.588-3.803h8.217l1.588 3.803h3.751L11.297 3.541H8.696ZM8.348 15.177l2.76-6.616 2.761 6.616H8.348Z"})})}},{id:"gemini",label:"Gemini",Logo:function(e){let{size:t=13}=e;return(0,o.jsxs)(en,{size:t,children:[(0,o.jsx)("path",{fill:"#3186FF",d:"M12 11.18V3.355c3.5 0 6.335 2.835 6.335 6.335H12z"}),(0,o.jsx)("path",{fill:"#F9AB00",d:"M12 20.645v-7.825H5.665c0 3.5 2.835 6.335 6.335 6.335z"}),(0,o.jsx)("path",{fill:"#EA4335",d:"M20.645 12.82H12.82c0-3.5-2.835-6.335-6.335-6.335v6.335h14.16z"}),(0,o.jsx)("path",{fill:"#34A853",d:"M3.355 12.82h7.825v7.825c-3.5 0-6.335-2.835-6.335-6.335z"})]})}},{id:"copilot",label:"Copilot",Logo:function(e){let{size:t=13}=e;return(0,o.jsxs)(en,{size:t,children:[(0,o.jsx)("path",{fill:"#0FBFFF",d:"M12 2.25c-2.9 0-5.5 1.2-7.4 3.1l2.8 2.8A6.7 6.7 0 0 1 12 4.75c3.45 0 6.25 2.8 6.25 6.25 0 1.15-.31 2.23-.85 3.16l2.8 2.8A9.73 9.73 0 0 0 21.75 11C21.75 6.16 17.34 2.25 12 2.25z"}),(0,o.jsx)("path",{fill:"#874FFF",d:"M4.15 7.35A9.73 9.73 0 0 0 2.25 11c0 4.84 4.41 8.75 9.75 8.75 2.9 0 5.5-1.2 7.4-3.1l-2.8-2.8a6.7 6.7 0 0 1-4.6 1.85C8.55 15.7 5.75 12.9 5.75 9.45c0-1.15.31-2.23.85-3.16L4.15 7.35z"}),(0,o.jsx)("path",{fill:"#41D8A8",d:"M12 19.25a6.7 6.7 0 0 1-4.6-1.85l-2.8 2.8A9.73 9.73 0 0 0 12 21.75c2.2 0 4.22-.74 5.85-1.98l-2.8-2.8A6.66 6.66 0 0 1 12 19.25z"}),(0,o.jsx)("path",{fill:"#FFA74F",d:"M18.6 9.45c0 1.15-.31 2.23-.85 3.16l2.8 2.8c.97-1.45 1.55-3.18 1.55-5.06 0-3.45-2.8-6.25-6.25-6.25-1.15 0-2.23.31-3.16.85l2.8 2.8c.63-.54 1.45-.85 2.36-.85 1.7 0 3.1 1.4 3.1 3.1z"})]})}}];var er=n(98029),ei=n(98643),es=n(33613);function ea(e){let{t,value:n,placeholder:r,options:i,onChange:s}=e,[a,l]=(0,y.useState)(!1),[c,d]=(0,y.useState)(0),p=(0,y.useRef)(null),x=(0,y.useRef)(null),u=(0,y.useRef)("fs-"+Math.random().toString(36).slice(2,8)).current,g=u+"-list",h=e=>"".concat(u,"-opt-").concat(e),m=i.find(e=>e.value===n),f=Math.max(0,i.findIndex(e=>e.value===n)),b=()=>{d(f),l(!0)},k=e=>{s(i[e].value),l(!1),x.current&&x.current.focus()};(0,y.useEffect)(()=>
1{if(!a)return;let e=e=>{p.current&&!p.current.contains(e.target)&&l(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[a]);let j=e=>{if(!a){("ArrowDown"===e.key||"ArrowUp"===e.key||"Enter"===e.key||" "===e.key)&&(e.preventDefault(),b());return}"ArrowDown"===e.key?(e.preventDefault(),d(e=>(e+1)%i.length)):"ArrowUp"===e.key?(e.preventDefault(),d(e=>(e-1+i.length)%i.length)):"Home"===e.key?(e.preventDefault(),d(0)):"End"===e.key?(e.preventDefault(),d(i.length-1)):"Enter"===e.key||" "===e.key?(e.preventDefault(),k(c)):"Escape"===e.key?(e.preventDefault(),e.stopPropagation(),l(!1)):"Tab"===e.key&&l(!1)};return(0,o.jsxs)(w.Z,{ref:p,sx:{position:"relative"},children:[(0,o.jsxs)(w.Z,{component:"button",ref:x,type:"button",role:"combobox","aria-haspopup":"listbox","aria-expanded":a,"aria-controls":g,"aria-activedescendant":a?h(c):void 0,onClick:()=>a?l(!1):b(),onKeyDown:j,sx:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",gap:8,padding:"12px 14px",borderRadius:2,cursor:"pointer",border:"1px solid ".concat(a?t.primary:t.border),background:t.inputBg,color:m?t.txt1:t.txt4,fontSize:14,fontWeight:m?600:500,textAlign:"left",boxShadow:a?"0 0 0 3px ".concat((0,E.aJ)(t.primary,.16)):"none",transition:"border-color 0.15s, box-shadow 0.15s"},children:[(0,o.jsxs)(w.Z,{component:"span",sx:{display:"flex",alignItems:"center",gap:2,overflow:"hidden"},children:[m&&m.icon&&(0,o.jsx)(w.Z,{component:"span",sx:{width:26,height:26,borderRadius:2,flexShrink:0,display:"grid",placeItems:"center",background:(0,E.aJ)(t.primary,t.dark?.16:.1)},children:(0,o.jsx)(L.Z,{name:m.icon,size:14,stroke:t.primary})}),(0,o.jsx)(w.Z,{component:"span",sx:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:m?m.label:r})]}),(0,o.jsx)(L.Z,{name:"chevDown",size:16,stroke:a?t.primary:t.txt3,style:{transform:a?"rotate(180deg)":"none",transition:"transform 0.2s"}})]}),a&&(0,o.jsx)(w.Z,{component:"ul",id:g,role:"listbox","aria-label":r,sx:{position:"absolute",top:"calc(100% + 7px)",left:0,right:0,zIndex:400,background:t.paper,listStyle:"none",margin:0,border:"1px solid ".concat(t.border),borderRadius:2,padding:2,boxShadow:t.dark?"0 20px 48px rgba(0,0,0,0.6)":"0 20px 48px rgba(16,24,40,0.18)",animation:"tnv-drop 0.18s ease"},children:i.map((e,r)=>{let i=e.value===n,s=r===c;return(0,o.jsxs)(w.Z,{component:"li",id:h(r),role:"option","aria-selected":i,onMouseEnter:()=>d(r),onClick:()=>k(r),sx:{display:"flex",alignItems:"center",gap:2,padding:"10px 11px",borderRadius:2,cursor:"pointer",background:i?t.primarySoft:s?t.dark?"rgba(255,255,255,0.06)":"rgba(0,0,0,0.04)":"transparent",border:"1px solid ".concat(s?(0,E.aJ)(t.primary,.5):"transparent"),color:i?t.txt1:t.txt2,fontSize:14,fontWeight:i?600:500,transition:"background 0.12s"},children:[e.icon&&(0,o.jsx)(w.Z,{component:"span",sx:{width:28,height:28,borderRadius:2,flexShrink:0,display:"grid",placeItems:"center",background:i?(0,E.aJ)(t.primary,t.dark?.2:.12):t.dark?"rgba(255,255,255,0.05)":"rgba(0,0,0,0.04)"},children:(0,o.jsx)(L.Z,{name:e.icon,size:15,stroke:i?t.primary:t.txt3})}),(0,o.jsx)(w.Z,{component:"span",sx:{flex:1},children:e.label}),i&&(0,o.jsx)(L.Z,{name:"check",size:16,stroke:t.primary})]},e.value)})})]})}let el=[];function ec(){let e=Date.now();return(el=el.filter(t=>e-t<864e5)).length}function ed(e){let{t,checkName:n,checkId:r,monitorScanId:i,onClose:s}=e,{t:a}=(0,R.$G)(),l=(0,y.useMemo)(()=>[{value:"question",label:a("monitoringReport.supportModal.reasons.question"),icon:"help"},{value:"false_positive",label:a("monitoringReport.supportModal.reasons.false_positive"),icon:"eyeOff"},{value:"not_working",label:a("monitoringReport.supportModal.reasons.not_working"),icon:"alertCircle"},{value:"other",label:a("monitoringReport.supportModal.reasons.other"),icon:"sparkles"}],[a]),c=(0,y.useMemo)(()=>[{value:"entire",label:a("monitoringReport.supportModal.scopes.entire"),icon:"list"},{value:"element",label:a("monitoringReport.supportModal.scopes.element"),icon:"code"}],[a]),[d,p]=(0,y.useState)("question"),[x,u]=(0,y.useState)("entire"),[g,h]=(0,y.useState)(""),[m,f]=(0,y.useState)(!1),[b,k]=(0,y.useState)("form"),j="false_positive"===d,v=g.trim().length,Z=v>=10,S=Z&&"form"===b,C=(0,er.D)({mutationFn:()=>ei.Z.post("/api/v1/monitorScan/support-request",{monitorScanId:i,checkId:r,checkName:n,reason:d,scope:j?x:void 0,message:g.trim()}),onSuccess:()=>{el.push(Date.now()),k("done")},onError:e=>{var t,n;k("form"),es.C.error((null==e?void 0:null===(t=e.response)||void 0===t?void 0:null===(n=t.data)||void 0===n?void 0:n.message)||a("contact.form.error"))}}),I=()=>
1{if(!S){f(!0);return}if(ec()>=3){k("limited");return}k("sending"),C.mutate()},z=()=>{if(ec()>=3){k("limited");return}h(""),p("question"),u("entire"),f(!1),k("form")},W={fontSize:11.5,fontWeight:600,letterSpacing:"0.04em",textTransform:"uppercase",color:t.txt4,marginBottom:2,display:"block",lineHeight:1.3};return(0,o.jsxs)(D.u_,{t:t,onClose:s,labelId:"support-title",maxWidth:520,children:[(0,o.jsx)(D.dg,{t:t,onClose:s}),(0,o.jsx)(w.Z,{sx:{padding:"30px 28px 26px"},children:"done"===b?(0,o.jsxs)(w.Z,{sx:{textAlign:"center"},children:[(0,o.jsx)(w.Z,{component:"span",sx:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:56,height:56,borderRadius:"16px",marginBottom:"15px",background:"linear-gradient(150deg, ".concat((0,E.aJ)(t.success,t.dark?.24:.16),", ").concat((0,E.aJ)(t.success,t.dark?.12:.08),")"),border:"1px solid ".concat((0,E.aJ)(t.success,.28))},children:(0,o.jsx)(L.Z,{name:"checkCircle",size:26,stroke:t.success})}),(0,o.jsx)(w.Z,{component:"h2",id:"support-title",sx:{fontSize:20,fontWeight:700,color:t.txt1,marginBottom:"8px"},children:a("monitoringReport.supportModal.receivedTitle")}),(0,o.jsx)(w.Z,{component:"p",sx:{fontSize:13.5,lineHeight:1.6,color:t.txt3,maxWidth:360,margin:"0 auto 22px"},children:a("monitoringReport.supportModal.receivedBody")}),(0,o.jsxs)(w.Z,{sx:{display:"flex",gap:"11px"},children:[(0,o.jsxs)(w.Z,{component:"button",onClick:z,sx:{flex:1,display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"8px",padding:"12px 0",borderRadius:"9px",cursor:"pointer",border:"1px solid ".concat(t.border),background:"transparent",color:t.txt2,fontSize:14,fontWeight:600},children:[(0,o.jsx)(L.Z,{name:"plus",size:15,stroke:t.txt2})," ",a("monitoringReport.supportModal.submitAnother")]}),(0,o.jsx)(w.Z,{component:"button",onClick:s,sx:{flex:1,padding:"12px 0",borderRadius:"9px",cursor:"pointer",border:"none",background:t.primaryBtn,color:t.onPrimary,fontSize:14,fontWeight:700},children:a("monitoringReport.supportModal.close")})]})]}):"limited"===b?(0,o.jsxs)(w.Z,{sx:{textAlign:"center"},children:[(0,o.jsx)(w.Z,{component:"span",sx:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:56,height:56,borderRadius:"16px",marginBottom:"15px",background:"linear-gradient(150deg, ".concat((0,E.aJ)(t.warning,t.dark?.22:.16),", ").concat((0,E.aJ)(t.warning,t.dark?.12:.08),")"),border:"1px solid ".concat((0,E.aJ)(t.warning,.24))},children:(0,o.jsx)(L.Z,{name:"activity",size:26,stroke:t.warning})}),(0,o.jsx)(w.Z,{component:"h2",id:"support-title",sx:{fontSize:20,fontWeight:700,color:t.txt1,marginBottom:"8px"},children:a("monitoringReport.supportModal.limitedTitle")}),(0,o.jsx)(w.Z,{component:"p",sx:{fontSize:13.5,lineHeight:1.6,color:t.txt3,maxWidth:360,margin:"0 auto 22px"},children:a("monitoringReport.supportModal.limitedBody")}),(0,o.jsx)(w.Z,{component:"button",onClick:s,sx:{width:"100%",padding:"12px 0",borderRadius:"9px",cursor:"pointer",border:"none",background:t.primaryBtn,color:t.onPrimary,fontSize:14,fontWeight:700},children:a("monitoringReport.supportModal.close")})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(w.Z,{sx:{textAlign:"center",marginBottom:6},children:[(0,o.jsx)(w.Z,{sx:{marginBottom:2,display:"flex",justifyContent:"center"},children:(0,o.jsx)(D.Q0,{t:t,name:"report-support",width:100})}),(0,o.jsx)(w.Z,{component:"h2",id:"support-title",sx:{fontSize:20,fontWeight:700,color:t.txt1,marginBottom:2,lineHeight:1.3},children:a("monitoringReport.supportModal.title")}),(0,o.jsx)(w.Z,{component:"p",sx:{fontSize:13.5,lineHeight:1.55,color:t.txt3,maxWidth:380,margin:"0 auto"},children:a("monitoringReport.supportModal.subtitle")})]}),(0,o.jsxs)(w.Z,{sx:{marginBottom:6},children:[(0,o.jsx)(w.Z,{component:"span",sx:W,children:a("monitoringReport.supportModal.aboutCheck")}),(0,o.jsxs)(w.Z,{sx:{display:"flex",alignItems:"center",gap:2,padding:"11px 13px",borderRadius:2,background:t.paper2,border:"1px solid ".concat(t.border)},children:[(0,o.jsx)(L.Z,{name:"file",size:15,stroke:t.txt3}),(0,o.jsx)(w.Z,{component:"span",sx:{fontSize:13.5,fontWeight:600,color:t.txt1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:n})]})]}),(0,o.jsxs)(w.Z,{sx:{marginBottom:6},children:[(0,o.jsx)(w.Z,{component:"span",sx:W,children:a("monitoringReport.supportModal.howCanWeHelp")}),(0,o.jsx)(ea,{t:t,value:d,onChange:p,options:l,placeholder:a("monitoringReport.supportModal.chooseReason")})]}),j&&(0,o.jsxs)(w.Z,{className:"tnv-in",sx:{marginBottom:6},children:[(0,o.jsx)(w.Z,{component:"span",sx:W,children:a("monitoringReport.supportModal.falsePositiveScope")}),(0,o.jsx)(ea,{t:t,value:x,onChange:u,options:c,placeholder:a("monitoringReport.supportModal.chooseScope")})]}),(0,o.jsxs)(w.Z,{sx:{marginBottom:6},children:[(0,o.jsxs)(w.Z,{component:"span",sx:W,children:[a("monitoringReport.supportModal.yourMe
1ssage")," ",(0,o.jsx)(w.Z,{component:"span",sx:{color:t.error},children:"*"})]}),(0,o.jsx)(w.Z,{component:"textarea",value:g,onChange:e=>h(e.target.value),onBlur:()=>f(!0),rows:4,"aria-invalid":m&&!Z,"aria-required":"true",placeholder:j?a("monitoringReport.supportModal.messagePlaceholderFp"):a("monitoringReport.supportModal.messagePlaceholder"),sx:{width:"100%",resize:"vertical",minHeight:96,padding:"12px 13px",borderRadius:2,fontFamily:"inherit",border:"1px solid ".concat(m&&!Z?t.error:t.border),background:t.inputBg,color:t.txt1,fontSize:"13.5px !important",fontWeight:500,lineHeight:1.5,outline:"none",boxSizing:"border-box",display:"block"}}),(0,o.jsxs)(w.Z,{sx:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",gap:8,marginTop:8},children:[(0,o.jsx)(w.Z,{component:"span",sx:{fontSize:11.5,color:m&&!Z?t.error:t.txt4},children:m&&!Z?a("monitoringReport.supportModal.minCharsError",{min:10}):a("monitoringReport.supportModal.minCharsHint",{min:10})}),(0,o.jsxs)(w.Z,{component:"span",sx:{fontSize:11.5,fontWeight:600,color:Z?t.success:t.txt4,flexShrink:0},children:[v,"/",10]})]})]}),(0,o.jsx)(w.Z,{component:"button",onClick:I,disabled:!S||"sending"===b,sx:{display:"flex",width:"100%",alignItems:"center",justifyContent:"center",gap:8,padding:"12px 0",borderRadius:1,border:"none",background:S||"sending"===b?t.primaryBtn:t.track,color:S||"sending"===b?t.onPrimary:t.txt4,fontSize:14,fontWeight:600,cursor:S&&"sending"!==b?"pointer":"not-allowed",transition:"background 0.2s"},children:"sending"===b?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(D.$j,{t:t,color:t.onPrimary,size:15})," ",a("monitoringReport.supportModal.sending")]}):(0,o.jsx)(o.Fragment,{children:a("monitoringReport.supportModal.sendRequest")})})]})})]})}function ep(e){let{t,v:n,onClose:r}=e,{t:i}=(0,R.$G)(),[s,a]=(0,y.useState)(!1);return(0,y.useEffect)(()=>{a(!1)},[null==n?void 0:n.screenshotUrl]),(0,o.jsxs)(D.u_,{t:t,onClose:r,labelId:"shot-title",maxWidth:760,children:[(0,o.jsx)(D.dg,{t:t,onClose:r}),(0,o.jsxs)(w.Z,{sx:{padding:"30px 28px 26px"},children:[(0,o.jsx)(w.Z,{component:"h2",id:"shot-title",sx:{fontSize:20,fontWeight:700,color:t.txt1,textAlign:"center",marginBottom:"20px"},children:i("mobile"===n.device?"pageResults.actions.mobile":"pageResults.actions.desktop")}),n.screenshotUrl?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(w.Z,{sx:{position:"relative",display:"flex",justifyContent:"center",minHeight:240,border:"1px solid ".concat(t.border),borderRadius:"12px",padding:"16px",background:t.pageBg},children:[!s&&(0,o.jsx)(w.Z,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"},children:(0,o.jsx)(g.Z,{size:36,sx:{color:t.primary}})}),(0,o.jsx)(w.Z,{component:"img",src:n.screenshotUrl,alt:i("pageResults.actions.screenshot"),onLoad:()=>a(!0),sx:{display:"block",width:"100%",maxWidth:"100%",maxHeight:"60vh",height:"auto",objectFit:"contain",borderRadius:"8px",opacity:s?1:0,transition:"opacity 0.25s ease"}})]}),(0,o.jsx)(w.Z,{component:"p",sx:{fontSize:13,color:t.txt3,textAlign:"center",marginTop:"18px",lineHeight:1.5},children:i("pageResults.screenshotDescription")})]}):(0,o.jsx)(w.Z,{sx:{display:"flex",alignItems:"center",justifyContent:"center",minHeight:160,border:"1px solid ".concat(t.border),borderRadius:"12px",background:t.paper2,fontSize:13.5,color:t.txt3},children:i("pageResults.actions.screenshotUnavailable")})]})]})}function ex(e){let{t,v:n,count:r,site:i,isLocal:s=!1,onClose:a,onConfirm:l}=e,{t:c}=(0,R.$G)(),[d,p]=(0,y.useState)(!1),x=null!=r,u=(null==n?void 0:n.device)==="mobile"?c("monitoringReport.common.mobile"):c("monitoringReport.common.desktop"),g=(0,y.useMemo)(()=>[{h:c("monitoringReport.ignoreModal.whatItMeans"),b:c("monitoringReport.ignoreModal.whatItMeansBody")},{h:c("monitoringReport.ignoreModal.inFutureScans"),b:c("monitoringReport.ignoreModal.inFutureScansBody")},{h:c("monitoringReport.ignoreModal.howToUndo"),b:c("monitoringReport.ignoreModal.howToUndoBody")}],[c]),h=(0,y.useMemo)(()=>{if(!i)return"/monitor/scans-settings#manage";try{let e=new URL(i.startsWith("http")?i:"https://".concat(i)).hostname;return"/monitor/scans-settings?domain=".concat(encodeURIComponent(e),"#manage")}catch(e){return"/monitor/scans-settings#manage"}},[i]),m={display:"flex",alignItems:"baseline",gap:8,padding:"13px 0"},f=t.dark?"rgba(180, 120, 40, 0.22)":"rgba(180, 120, 40, 0.16)",b=t.dark?"rgba(212, 168, 67, 0.35)":"rgba(180, 120, 40, 0.28)",k=t.dark?"#E8B84B":"#B8860B";return(0,o.jsxs)(D.u_,{t:t,onClose:a,labelId:"ignore-title",maxWidth:560,children:[(0,o.jsx)(D.dg,{t:t,onClose:a}),(0,o.jsxs)(w.Z,{sx:{padding:"30px 28px 26px"},children:[(0,o.jsxs)(w.Z,{sx:{textAlign:"center",marginBottom:6}
1,children:[(0,o.jsx)(w.Z,{component:"span",sx:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:56,height:56,borderRadius:16,marginBottom:2,background:"linear-gradient(150deg, ".concat(f,", ").concat(t.dark?"rgba(139, 105, 20, 0.12)":"rgba(180, 120, 40, 0.08)",")"),border:"1px solid ".concat(b)},children:(0,o.jsx)(L.Z,{name:"eyeOff",size:24,stroke:k})}),(0,o.jsx)(w.Z,{component:"h2",id:"ignore-title",sx:{fontSize:20,fontWeight:700,color:t.txt1,marginBottom:2},children:x?"Ignore all violations":c("monitoringReport.ignoreModal.title")}),(0,o.jsx)(w.Z,{component:"p",sx:{fontSize:13.5,lineHeight:1.6,color:t.txt3,maxWidth:380,margin:"0 auto"},children:x?"All ".concat(r," violation").concat(1===r?"":"s"," will be hidden from this report and skipped in future scans until restored."):c("monitoringReport.ignoreModal.subtitle")})]}),(0,o.jsx)(w.Z,{sx:{background:t.paper2,border:"1px solid ".concat(t.border),borderRadius:2,padding:"4px 16px",marginBottom:6},children:x?(0,o.jsxs)(w.Z,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:2,padding:"12px 0"},children:[(0,o.jsx)(w.Z,{component:"span",sx:{fontSize:13,fontWeight:600,color:t.txt3},children:c("monitoringReport.ignoreModal.violation")}),(0,o.jsxs)(w.Z,{component:"span",sx:{fontSize:13,fontWeight:600,color:t.txt1},children:[r," violation",1===r?"":"s"]})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(w.Z,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:2,padding:"12px 0",borderBottom:"1px solid ".concat(t.divider)},children:[(0,o.jsx)(w.Z,{component:"span",sx:{fontSize:13,fontWeight:600,color:t.txt3},children:c("monitoringReport.ignoreModal.page")}),(0,o.jsx)(w.Z,{component:"span",sx:{fontSize:13,fontWeight:600,color:t.txt1,wordBreak:"break-all",textAlign:"right"},children:(0,E.Qv)((0,z.i2)(i,n.page||"/",s))})]}),(0,o.jsxs)(w.Z,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:2,padding:"12px 0"},children:[(0,o.jsx)(w.Z,{component:"span",sx:{fontSize:13,fontWeight:600,color:t.txt3},children:c("monitoringReport.ignoreModal.violation")}),(0,o.jsx)(w.Z,{component:"span",sx:{fontSize:13,fontWeight:600,color:t.txt1},children:n.device?c("monitoringReport.ignoreModal.violationLabel",{n:n.n||1,device:u}):"#".concat(n.n||1)})]})]})}),(0,o.jsx)(w.Z,{sx:{marginBottom:6},children:g.map((e,n)=>(0,o.jsxs)(w.Z,{sx:{...m,borderTop:n?"1px solid ".concat(t.divider):"none"},children:[(0,o.jsx)(w.Z,{component:"span",sx:{flex:"0 0 124px",fontSize:13.5,fontWeight:700,color:t.txt1},children:e.h}),(0,o.jsx)(w.Z,{component:"span",sx:{flex:1,fontSize:13,lineHeight:1.6,color:t.txt3},children:e.b})]},n))}),(0,o.jsx)(w.Z,{component:"a",href:h,target:"_blank",rel:"noopener noreferrer",sx:{display:"inline-flex",alignItems:"center",gap:2,marginBottom:6,textDecoration:"none",color:t.primary,fontSize:12.5,fontWeight:600,"&:hover":{textDecoration:"underline"},"&:focus-visible":{outline:"2px solid ".concat(t.primary),outlineOffset:2}},children:(0,o.jsxs)(w.Z,{component:"span",sx:{display:"flex",alignItems:"center",mt:4,gap:2},children:[(0,o.jsx)(L.Z,{name:"gear",size:15,stroke:t.primary})," ",c("monitoringReport.ignoreModal.manageLink"),(0,o.jsx)(L.Z,{name:"external",size:15,stroke:t.primary})]})}),(0,o.jsxs)(w.Z,{component:"button",onClick:()=>p(e=>!e),role:"checkbox","aria-checked":d,sx:{display:"flex",alignItems:"center",gap:2,marginBottom:6,fontSize:13,color:t.txt2,cursor:"pointer",background:"transparent",border:"none",padding:0,textAlign:"left"},children:[(0,o.jsx)(D.Jr,{t:t,checked:d}),c("monitoringReport.ignoreModal.dontShowAgain")]}),(0,o.jsxs)(w.Z,{sx:{display:"flex",gap:2},children:[(0,o.jsx)(w.Z,{component:"button",onClick:a,sx:{flex:1,padding:"12px 0",borderRadius:1,border:"1px solid ".concat(t.border),background:"transparent",color:t.txt2,fontSize:14,fontWeight:600,cursor:"pointer"},children:c("monitoringReport.ignoreModal.cancel")}),(0,o.jsxs)(w.Z,{component:"button",onClick:()=>l(d),sx:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",gap:8,padding:"12px 0",borderRadius:1,border:"none",background:t.primaryBtn,color:t.onPrimary,fontSize:14,fontWeight:600,cursor:"pointer"},children:[(0,o.jsx)(L.Z,{name:"eyeOff",size:16,stroke:t.onPrimary})," ",x?"Ignore ".concat(r," violation").concat(1===r?"":"s"):c("monitoringReport.ignoreModal.confirm")]})]})]})]})}var eu=n(30202),eg=n(71650);let eh=e=>{if(!e)return null;try{let t=localStorage.getItem(e);return t?JSON.parse(t):null}catch(e){return null}};var em=n(46828);function ef(e){let{t,isMobile:n,skClass:r}=e,i=e=>{let{sx:t}=e;return(0,o.jsx)(w.Z,{className:r,sx:t})};return(0,o.jsxs)(w.Z,{sx:{border:"1px solid ".concat(t.border),borderRadius:"10px",overflow:"hidden"},children:[(0,o.jsxs)(w.Z,{sx:{display:"flex",alignItems:"center",gap:"8px",padding:"10px 12px",background:t.paper2,borderBottom:"1px solid ".concat(t.border)},children:[(0,o.jsx)(i,{sx:{width:18,height:18,borderRadius:"4px",flexShrink:0}}),(0,o.jsx)(i,{sx:{width:n?140:178,height:22,borderRadius:"6px",flexShrink:0}}),(0,o.jsx)(w.Z,{sx:{flex:1}}),[0,1,2,3].map(e=>(0,o.jsx)(i,{sx:{width:30,height:30,borderRadius:"7px",flexShrink:0}},e))]}),(0,o.jsxs)(w.Z,{sx:{display:"flex",alignItems:"center",gap:"8px",padding:"8px 12px",background:t.paper,borderBottom:"1px solid ".concat(t.border)},children:[(0,o.jsx)(i,{sx:{width:18,height:18,borderRadius:"4px",flexShrink:0}}),(0,o.jsx)(i,{sx:{width:64,height:24,borderRadius:"5px",flexShrink:0}}),(0,o.jsx)(i,{sx:{width:44,height:24,borderRadius:"5px",flexShrink:0}}),(0,o.jsx)(w.Z,{sx:{flex:1}}),(0,o.jsx)(i,{sx:{width:68,height:28,borderRadius:"6px",flexShrink:0}})]}),(0,o.jsxs)(w.Z,{sx:{background:t.codeBg,padding:"12px 0"},children:[(0,o.jsxs)(w.Z,{sx:{display:"flex",alignItems:"center",gap:"0",paddingLeft:"12px",paddingRight:"14px",marginBottom:"10px"},children:[(0,o.jsx)(i,{sx:{width:18,height:12,borderRadius:"3px",flexShrink:0,marginRight:"12px",opacity:.7}}),(0,o.jsx)(i,{sx:{flex:1,height:12,borderRadius:"5px"}})]}),(0,o.jsx)(w.Z,{sx:{paddingLeft:"12px",paddingRight:"14px"},children:(0,o.jsx)(i,{sx:{width:"55%",height:6,borderRadius:"3px",opacity:.5}})})]})]})}function eb(e){let{t,isMobile:n,skClass:r,urlWidth:i="62%",cards:s=2,isLast:a=!1}=e,l=e=>{let{sx:t}=e;return(0,o.jsx)(w.Z,{className:r,sx:t})};return(0,o.jsxs)(w.Z,{sx:{marginBottom:a?0:"22px"},children:[(0,o.jsxs)(w.Z,{sx:{display:"flex",alignItems:"center",gap:"10px",marginBottom:"6px"},children:[(0,o.jsx)(w.Z,{component:"span",sx:{width:26,display:"flex",justifyContent:"center",flexShrink:0},children:(0,o.jsx)(w.Z,{sx:{width:10,height:10,borderRadius:"50%",background:t.divider}})}),(0,o.jsxs)(w.Z,{sx:{flex:1,display:"flex",alignItems:"center",gap:"8px",padding:"10px 14px",background:t.paper2,border:"1px solid ".concat(t.border),borderRadius:"8px",flexWrap:"wrap"},children:[(0,o.jsx)(l,{sx:{width:36,height:11,borderRadius:"5px",flexShrink:0}}),(0,o.jsx)(l,{sx:{width:i,maxWidth:380,height:11,borderRadius:"5px"}})]})]}),(0,o.jsxs)(w.Z,{sx:{position:"relative"},children:[(0,o.jsx)(w.Z,{component:"span",sx:{position:"absolute",left:13,top:-6,bottom:10,width:"2px",background:t.divider,borderRadius:"2px"}}),(0,o.jsx)(w.Z,{sx:{display:"flex",flexDirection:"column",gap:"14px"},children:Array.from({length:s},(e,i)=>(0,o.jsxs)(w.Z,{sx:{display:"flex",alignItems:"flex-start"},children:[(0,o.jsx)(w.Z,{component:"span",sx:{width:26,height:"2px",background:t.divider,borderRadius:"2px",marginTop:"22px",marginLeft:"".concat(13,"px"),flexShrink:0,alignSelf:"flex-start"}}),(0,o.jsx)(w.Z,{sx:{flex:1,minWidth:0,marginLeft:"4px"},children:(0,o.jsx)(ef,{t:t,isMobile:n,skClass:r})})]},i))})]})]})}function ek(e){let{t,isMobile:n,skClass:r="tnv-sk"}=e;return(0,o.jsx)(ef,{t:t,isMobile:n,skClass:r})}function ej(e){let{t,isMobile:n=!1,skClass:r="tnv-sk",empty:i=!1,embedded:s=!1}
1=e,a=e=>{let{w:t,h:n=12,r:i=6,mb:s=0,style:a}=e;return(0,o.jsx)(w.Z,{className:r,sx:{width:t,height:n,borderRadius:"".concat(i,"px"),marginBottom:"".concat(s,"px"),...a}})},l=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(w.Z,{sx:{display:"flex",alignItems:"center",gap:"8px",padding:n?"12px 14px":"13px 18px",borderBottom:"1px solid ".concat(t.border),background:t.paper2,flexWrap:"wrap",...s?{position:"sticky",top:0,zIndex:6}:{}},children:[(0,o.jsx)(a,{w:28,h:28,r:7,style:{flexShrink:0}}),(0,o.jsx)(a,{w:n?"52%":"38%",h:14,style:{flex:"0 1 auto",maxWidth:340}}),(0,o.jsx)(w.Z,{sx:{flex:1}}),!n&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(a,{w:68,h:22,r:11,style:{flexShrink:0}}),(0,o.jsx)(a,{w:86,h:22,r:11,style:{flexShrink:0}}),(0,o.jsx)(a,{w:58,h:22,r:11,style:{flexShrink:0}})]}),(0,o.jsx)(a,{w:28,h:28,r:7,style:{flexShrink:0}})]}),(0,o.jsxs)(w.Z,{sx:{display:"flex",alignItems:"center",gap:"10px",padding:n?"10px 14px":"10px 18px",borderBottom:"1px solid ".concat(t.border),background:t.paper2,flexWrap:"wrap"},children:[(0,o.jsx)(a,{w:n?110:128,h:26,r:13,style:{flexShrink:0}}),(0,o.jsx)(a,{w:n?"40%":160,h:18,r:9,style:{flexShrink:0}}),(0,o.jsx)(w.Z,{sx:{flex:1}}),(0,o.jsx)(a,{w:82,h:32,r:8,style:{flexShrink:0}}),(0,o.jsx)(a,{w:90,h:32,r:8,style:{flexShrink:0}})]}),(0,o.jsx)(w.Z,{sx:{border:"1px solid ".concat(t.border),borderTop:"none",background:t.paper2},children:(0,o.jsx)(w.Z,{sx:{display:"flex"},children:[0,1,2].map(e=>(0,o.jsxs)(w.Z,{sx:{flex:1,minWidth:0,display:"flex",justifyContent:"center",alignItems:"center",gap:"6px",padding:"12px 8px",borderLeft:e?"1px solid ".concat(t.border):"none",borderBottom:"2px solid ".concat(0===e?t.border:"transparent")},children:[(0,o.jsx)(a,{w:14,h:14,r:4,style:{flexShrink:0}}),(0,o.jsx)(a,{w:"55%",h:11,style:{maxWidth:100}})]},e))})}),(0,o.jsxs)(w.Z,{sx:{padding:n?"14px":"16px 18px 20px"},children:[(0,o.jsx)(a,{w:180,h:11,r:5,mb:16}),i?(0,o.jsxs)(w.Z,{sx:{padding:"48px 24px",display:"flex",flexDirection:"column",alignItems:"center",gap:"14px",border:"1px solid ".concat(t.border),borderRadius:"10px",background:t.paper2},children:[(0,o.jsx)(a,{w:52,h:52,r:12}),(0,o.jsx)(a,{w:160,h:14,r:7}),(0,o.jsx)(a,{w:240,h:11,r:6})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(eb,{t:t,isMobile:n,skClass:r,urlWidth:"62%",cards:2}),(0,o.jsx)(eb,{t:t,isMobile:n,skClass:r,urlWidth:"48%",cards:2,isLast:!0})]})]})]});return s?(0,o.jsxs)(w.Z,{children:[(0,o.jsx)(em._q,{dark:t.dark}),l]}):(0,o.jsxs)(w.Z,{sx:{flex:1,minWidth:0,border:"1px solid ".concat(t.border),borderRadius:"10px",overflow:"hidden",background:t.paper},children:[(0,o.jsx)(em._q,{dark:t.dark}),l]})}let ey=new Set(["Links that open in new windows should have clear indicators"]),ev=(e,t,n)=>(0,z.i2)(e,t,n)||"#";function ew(e){let{t,check:n,embedded:r}=e,{t:i}=(0,R.$G)(),[s,a]=(0,y.useState)(null);(0,y.useEffect)(()=>{a(null)},[n.id]);let l=[{key:"summary",label:i("monitoringReport.knowledge.issueSummary"),icon:"bug",color:t.warning,body:n.summary},{key:"why",label:i("monitoringReport.knowledge.whyItMatters"),icon:"help",color:t.info,body:n.why},{key:"wcag",label:i("monitoringReport.knowledge.wcagAcademy"),icon:"academy",color:t.success,body:n.wcag}],c=l.find(e=>e.key===s),d=r?{overflow:"hidden"}:{border:"1px solid ".concat(t.border),borderRadius:"9px",background:t.paper2,overflow:"hidden",marginBottom:"16px"};return(0,o.jsxs)(w.Z,{sx:d,children:[(0,o.jsx)(w.Z,{sx:{display:"flex",borderTop:r?"1px solid ".concat(t.border):"none"},children:l.map((e,n)=>{let i=s===e.key;return(0,o.jsxs)(w.Z,{component:"button",onClick:()=>a(i?null:e.key),"aria-expanded":i,sx:{flex:1,minWidth:0,display:"flex",alignItems:"center",justifyContent:"center",gap:"8px",padding:"10px",cursor:"pointer",background:i?r?t.paper2:t.paper:"transparent",border:"none",borderLeft:n?"1px solid ".concat(t.border):"none",borderBottom:i?"2px solid ".concat(e.color):"2px solid transparent",transition:"all 0.15s"},children:[(0,o.jsx)(L.Z,{name:e.icon,size:15,stroke:e.color}),(0,o.jsx)(w.Z,{component:"span",sx:{fontSize:12.5,fontWeight:600,color:i?t.txt1:t.txt3,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e.label}),(0,o.jsx)(L.Z,{name:i?"chevUp":"chevDown",size:13,stroke:t.txt4})]},e.key)})}),(0,o.jsx)(D.UO,{open:null!=s,children:(0,o.jsx)(w.Z,{className:"tnv-in",sx:{padding:"13px 16px 15px",borderTop:"1px solid ".concat(t.border),background:r?t.paper2:"transparent"},children:"wcag"===s&&n.sc?(0,o.jsxs)(w.Z,{children:[(0,o.jsxs)(w.Z,{sx:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:"12px"},children:[(0,o.jsxs)(w.Z,{sx:{minWidth:0},children:[(0,o.jsxs)(w.Z,{sx:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:"8px"},children:[(0,o.jsxs)(w.Z,{component:"span",sx:{fontSize:14,fontWeight:700,color:t.txt1,lineHeight:1.4},children:["SC ",n.sc.id,n.sc.name?" â ".concat(n.sc.name):""]}
1),(0,o.jsxs)(w.Z,{component:"span",sx:{display:"inline-flex",alignItems:"center",gap:"5px",fontSize:10.5,fontWeight:600,color:t.txt2,border:"1px solid ".concat(t.border),borderRadius:"6px",padding:"2px 7px",whiteSpace:"nowrap"},children:[(0,o.jsx)(w.Z,{component:"span",sx:{color:t.txt4},children:"Level"}),(0,o.jsx)(w.Z,{component:"span",sx:{fontWeight:700,color:t.primary},children:n.sc.level})]}),(0,o.jsxs)(w.Z,{component:"span",sx:{display:"inline-flex",alignItems:"center",gap:"5px",fontSize:10.5,fontWeight:600,color:t.txt2,border:"1px solid ".concat(t.border),borderRadius:"6px",padding:"2px 7px",whiteSpace:"nowrap"},children:[(0,o.jsx)(w.Z,{component:"span",sx:{color:t.txt4},children:"WCAG"}),(0,o.jsx)(w.Z,{component:"span",sx:{fontWeight:700,color:t.txt1},children:n.sc.ver})]}),n.wcagVersionLabel&&(0,o.jsx)(w.Z,{component:"span",sx:{display:"inline-flex",alignItems:"center",fontSize:10.5,fontWeight:600,color:t.success,border:"1px solid ".concat((0,E.aJ)(t.success,.35)),borderRadius:"6px",padding:"2px 7px",whiteSpace:"nowrap"},children:n.wcagVersionLabel})]}),(n.sc.principle||n.sc.guideline)&&(0,o.jsxs)(w.Z,{sx:{fontSize:12,color:t.txt3,marginTop:"4px"},children:[n.sc.principle,n.sc.principle&&n.sc.guideline?" \xb7 ":"",n.sc.guideline]})]}),!ey.has(n.title)&&(0,o.jsxs)(w.Z,{component:"a",href:(0,E.Km)(n.sc.id),target:"_blank",rel:"noopener noreferrer",sx:{display:"inline-flex",alignItems:"center",gap:"5px",textDecoration:"none",color:t.primary,fontSize:11.5,fontWeight:600,whiteSpace:"nowrap",flexShrink:0,paddingTop:"2px"},children:["Read more ",(0,o.jsx)(L.Z,{name:"external",size:12,stroke:t.primary})]})]}),(n.wcag||n.sc.desc)&&(0,o.jsxs)(w.Z,{sx:{marginTop:"13px",padding:"11px 13px",borderRadius:"10px",border:"1px solid ".concat(t.border),background:t.dark?"rgba(0,0,0,0.2)":"rgba(0,0,0,0.035)"},children:[(0,o.jsx)(w.Z,{sx:{fontSize:10.5,fontWeight:700,letterSpacing:"0.06em",textTransform:"uppercase",color:t.txt4,marginBottom:"6px"},children:"Summary"}),(0,o.jsx)(w.Z,{component:"p",sx:{fontSize:13.5,lineHeight:1.6,color:t.txt2,margin:0},children:n.wcag||n.sc.desc})]})]}):(0,o.jsx)(w.Z,{component:"p",sx:{fontSize:13.5,lineHeight:1.6,color:t.txt2,margin:0},children:c?c.body:""})},s)})]})}function eZ(e){let{t,check:n,violations:r,site:i,isLocal:s,onClose:a}=e,[l,c]=(0,y.useState)(null),[d,p]=(0,y.useState)(null),x=(0,y.useRef)(null);(0,y.useEffect)(()=>()=>clearTimeout(x.current),[]);let u={check:n.title,issueSummary:n.summary,whyItMatters:n.why,wcag:n.wcag,totals:{failed:n.failed,solved:n.solved,total:n.total},violations:r.map(e=>({page:(0,E.Qv)(ev(i,e.page,s)),views:e.views||[e.device],code:e.code}))},g={check:n.title,code:r.map(e=>e.code)},h=async e=>{if(d)return;let t=JSON.stringify("context"===e?u:g,null,2);p(e);try{var n;let[,o]=await Promise.allSettled([new Promise(e=>setTimeout(e,1e3)),null===(n=navigator.clipboard)||void 0===n?void 0:n.writeText(t)]);if("rejected"===o.status)throw o.reason;c(e),es.C.success("Copied to clipboard",{description:"Your issues are ready to paste."}),clearTimeout(x.current),x.current=setTimeout(()=>c(null),1600)}catch(e){es.C.error("Could not copy to clipboard")}finally{p(null)}},m=e=>{let{which:n,icon:r,title:i,desc:s,ai:a,recommended:c}=e,p=l===n,x=d===n;return(0,o.jsxs)(w.Z,{component:"button",type:"button",disabled:!!d,"aria-busy":x||void 0,"aria-label":x?"Copying":p?"Copied":i,onClick:()=>h(n),sx:{display:"flex",alignItems:"flex-start",gap:"15px",width:"100%",textAlign:"left",padding:"18px 20px",borderRadius:"12px",cursor:d?"wait":"pointer",border:"1px solid ".concat(p?(0,E.aJ)(t.success,.5):t.border),background:t.paper2,transition:"border-color 0.2s",opacity:d&&!x?.7:1}
1,children:[(0,o.jsx)(w.Z,{component:"span",sx:{width:42,height:42,borderRadius:"11px",flexShrink:0,display:"grid",placeItems:"center",background:t.dark?"rgba(255,255,255,0.05)":"rgba(0,0,0,0.04)"},children:(0,o.jsx)(L.Z,{name:r,size:20,stroke:t.txt2})}),(0,o.jsxs)(w.Z,{sx:{flex:1,minWidth:0},children:[(0,o.jsxs)(w.Z,{sx:{display:"flex",alignItems:"center",gap:"8px",marginBottom:"5px",flexWrap:"wrap"},children:[(0,o.jsx)(w.Z,{component:"span",sx:{fontSize:15,fontWeight:700,color:t.txt1},children:i}),c&&(0,o.jsx)(w.Z,{component:"span",sx:{fontSize:10,fontWeight:700,letterSpacing:"0.05em",textTransform:"uppercase",color:t.txt3,border:"1px solid ".concat(t.border),borderRadius:"20px",padding:"2px 8px"},children:"Recommended"})]}),(0,o.jsx)(w.Z,{sx:{fontSize:13,color:t.txt3,lineHeight:1.55},children:s}),a&&(0,o.jsxs)(w.Z,{sx:{display:"flex",alignItems:"center",gap:"6px",marginTop:"13px",flexWrap:"wrap"},children:[(0,o.jsx)(w.Z,{component:"span",sx:{fontSize:11,fontWeight:600,color:t.txt4},children:"Works with"}),eo.map(e=>{let{id:n,label:r,Logo:i}=e;return(0,o.jsxs)(w.Z,{component:"span",sx:{display:"inline-flex",alignItems:"center",gap:"5px",padding:"3px 9px",borderRadius:"6px",border:"1px solid ".concat(t.border),background:t.dark?"rgba(255,255,255,0.03)":"rgba(0,0,0,0.02)",fontSize:11,fontWeight:600,color:t.txt2},children:[(0,o.jsx)(et,{dark:t.dark,size:13,children:(0,o.jsx)(i,{size:13})}),r]},n)})]})]}),(0,o.jsx)(w.Z,{component:"span",sx:{display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"6px",marginTop:"1px",flexShrink:0,minWidth:84,padding:"7px 0",borderRadius:"8px",fontSize:12,fontWeight:600,border:"1px solid ".concat(p?t.successStrong:t.border),background:p?t.successSoft:"transparent",color:p?t.successStrong:t.txt2,transition:"color 0.2s, border-color 0.2s, background 0.2s"},children:x?(0,o.jsx)(D.$j,{t:t,color:t.primary,size:16}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(L.Z,{name:p?"check":"copy",size:15,stroke:p?t.successStrong:t.txt2}),p?"Copied":"Copy"]})})]})};return(0,o.jsxs)(D.u_,{t:t,onClose:a,labelId:"copy-title",maxWidth:560,children:[(0,o.jsx)(D.dg,{t:t,onClose:a}),(0,o.jsxs)(w.Z,{sx:{padding:"30px 28px 26px"},children:[(0,o.jsxs)(w.Z,{sx:{textAlign:"center",marginBottom:"22px"},children:[(0,o.jsx)(w.Z,{sx:{display:"flex",justifyContent:"center"},children:(0,o.jsx)(D.Q0,{t:t,name:"copy-all-issues",width:132})}),(0,o.jsx)(w.Z,{component:"h2",id:"copy-title",sx:{margin:0,fontSize:20,fontWeight:700,color:t.txt1,marginBottom:"8px"},children:"Copy all issues"}),(0,o.jsxs)(w.Z,{component:"p",sx:{fontSize:13.5,lineHeight:1.6,color:t.txt3,maxWidth:380,margin:"0 auto"},children:[r.length," violations \xb7 choose what to export."]})]}),(0,o.jsxs)(w.Z,{sx:{display:"flex",flexDirection:"column",gap:"12px"},children:[(0,o.jsx)(m,{which:"context",icon:"sparkles",title:"Copy with explanation",desc:"Issue name, summary, why it matters, WCAG, plus every violation with its page and code - ready to drop into an AI assistant for fixes.",ai:!0,recommended:!0}),(0,o.jsx)(m,{which:"code",icon:"code",title:"Copy code only",desc:"Just the offending HTML for each violation - no descriptions."})]})]})]})}function eS(e){var t;let{t:n,v:r,n:i,check:s,device:a="all",solved:l,ignored:c,onSolve:p,onIgnore:x,onScreenshot:u,screenshotUrls:g,screenshotsLoading:h,domain:m,monitorScanId:f,onAiFixLimitReached:b,isMobile:k,isShared:j=!1}=e,{t:v}=(0,R.$G)(),Z=function(e){let{pageResultId:t,issueId:n,aiInfo:o,techniqueId:r,domain:i,monitorScanId:s,onAiFixLimitReached:a}=e,{t:l,i18n:c}=(0,R.$G)(),p=(0,eu.NL)(),{isAiFixInProgress:x,setAiFixInProgress:u,activeAiFixKey:g,setActiveAiFixKey:h,activeAiFixStartedAt:m,setActiveAiFixStartedAt:f}=(0,y.useContext)(eg.av),b=(0,d.Z)("(prefers-reduced-motion: reduce)",{defaultMatches:!1}),k=t&&n?"aiFix_".concat(t,"_").concat(n):null,j=t&&n?"aiFix_tooLong_".concat(t,"_").concat(n):null,v=t&&n?"".concat(t,"_").concat(n):null,w=x&&!!v&&g===v,[,Z]=(0,y.useState)(0),S=!!v&&g===v&&!!m&&Date.now()-m<1200;(0,y.useEffect)(()=>{if(!S)return;let e=1200-(Date.now()-m),t=setTimeout(()=>Z(e=>e+1),Math.max(0,e));return()=>clearTimeout(t)},[S,m]);let C=!!v&&g===v,[I,z]=(0,y.useState)(!1),[W,M]=(0,y.useState)(()=>eh(k)),[F,A]=(0,y.useState)(()=>
1{if(!j)return null;try{return localStorage.getItem(j)?eg.BC:null}catch(e){return null}}),T=eh(k),[B,L]=(0,y.useState)(()=>(null==T?void 0:T.response)||(null==T?void 0:T.explanation)||(null==T?void 0:T.description)||""),[E,D]=(0,y.useState)(()=>(null==T?void 0:T.html)||(null==T?void 0:T.suggestedFix)||(null==T?void 0:T.fixedCode)||(null==T?void 0:T.code)||""),[P,N]=(0,y.useState)("idle"),H=(0,y.useRef)(!1),O=(0,y.useRef)(null);(0,y.useEffect)(()=>{if(!C||W||F)return;let e=()=>{let e=eh(k);if(e)return H.current=!0,M(e),!0;if(j)try{if(localStorage.getItem(j))return A(eg.BC),!0}catch(e){}return!1};if(e())return;let t=setInterval(()=>{e()&&clearInterval(t)},300),n=setTimeout(()=>clearInterval(t),6e4);return()=>{clearInterval(t),clearTimeout(n)}},[C,W,F,k,j]);let U=(0,y.useMemo)(()=>{if(!r)return null;let e=eg.IE[r]||r;return eg.u4[e]||null},[r]),_=(0,y.useCallback)(async()=>{var e,t,n,r,d;if(!x){if(!o||!U){A(l("pageResults.aiFix.notAvailable",{defaultValue:"AI fix is not available for this rule yet."}));return}if(!W){if(j)try{if(localStorage.getItem(j)){A(eg.BC);return}}catch(e){}z(!0),u(!0),h(v),f(Date.now()),A(null);try{let n=await ei.Z.post("/api/v1/ai/dashboard/fix",{issueId:U,aiInfo:o,domain:i,scanId:s,origin:c.language});if(null===(e=n.data)||void 0===e?void 0:e.success){if(H.current=!0,M(n.data.data),k)try{localStorage.setItem(k,JSON.stringify(n.data.data))}catch(e){}p.invalidateQueries({queryKey:["fetchCurrentPlan"]})}else{let e=(null===(t=n.data)||void 0===t?void 0:t.message)||l("pageResults.aiFix.error");
1if(e===eg.BC&&j)try{localStorage.setItem(j,"1")}catch(e){}A(e)}}catch(t){if((null===(n=t.response)||void 0===n?void 0:n.status)===429){null==a||a();return}let e=(null===(r=t.response)||void 0===r?void 0:null===(d=r.data)||void 0===d?void 0:d.message)||l("pageResults.aiFix.error");if(e===eg.BC&&j)try{localStorage.setItem(j,"1")}catch(e){}A(e)}finally{z(!1),u(!1)}}}},[o,x,U,W,j,k,i,s,c.language,l,a,u,h,f,v,p]);return(0,y.useEffect)(()=>{let e=()=>{null!==O.current&&(clearTimeout(O.current),O.current=null)};if(!W){e(),L(""),D(""),N("idle");return}let t=W.response||W.explanation||W.description||"",n=W.html||W.suggestedFix||W.fixedCode||W.code||"",o=H.current&&!b;if(!o){H.current=!1,e(),L(t),D(n),N("idle");return}H.current=!1,e(),L(""),D(""),N(t.length>0?"explanation":"code");let r=!1,i=e=>{if(!r){if(D(n.slice(0,e)),e>=n.length){N("idle");return}O.current=window.setTimeout(()=>i(e+1),5)}},s=e=>{if(r)return;if(L(t.slice(0,e)),e>=t.length){N(n.length>0?"code":"idle"),i(0);return}let o=t[e],a=15;"\n"===o?a=60:("."===o||"!"===o||"?"===o)&&(a=30),O.current=window.setTimeout(()=>s(e+1),a)};return t.length>0?s(0):i(0),()=>{r=!0,e()}},[W,b]),{trigger:_,loading:I,error:F,data:W,text:B,code:E,typingPhase:P,canRequest:!!o&&!!U,isAiFixInProgress:x,isThisFixInProgress:w,isThisFixSettling:w||S||C&&!W&&!F}}({pageResultId:r.pageResultId,issueId:r.id,aiInfo:j?null:r.aiInfo,techniqueId:s.id,domain:m,monitorScanId:f,onAiFixLimitReached:b}),[S,C]=(0,y.useState)(Z.isThisFixSettling||!!Z.data||!!Z.error),[I,z]=(0,y.useState)(!0),[W,M]=(0,y.useState)(!1),F=Z.loading||Z.isThisFixSettling,A=Z.error?"error":F?"thinking":"idle"!==Z.typingPhase?"typing":Z.data?"done":"idle",T=Z.text,B=Z.code,P="done"===A||"code"===Z.typingPhase,[N,H]=(0,y.useState)(!1),O=l?n.success:c?n.txt4:n.error,U=l?n.success:c?n.txt2:n.error,_=l?n.successSoft:c?n.track:n.errorSoft,G=v(l?"monitoringReport.status.solved":c?"monitoringReport.status.ignored":"monitoringReport.status.violation"),q=e=>{let{icon:t,color:r,label:i,tip:s,onClick:a,active:l,disabled:c,spinner:d}=e,[p,x]=(0,y.useState)(!1),u=(0,y.useRef)(null),g=(0,y.useRef)(!1),h=()=>{clearTimeout(u.current),u.current=setTimeout(()=>x(!0),1400)},m=()=>{clearTimeout(u.current),x(!1)};return(0,y.useEffect)(()=>()=>clearTimeout(u.current),[]),(0,o.jsxs)(w.Z,{component:"span",sx:{position:"relative",display:"inline-flex"},onMouseEnter:h,onMouseLeave:m,children:[(0,o.jsx)(w.Z,{component:"button",type:"button",disabled:c,onClick:c?void 0:a,"aria-label":i,"aria-busy":d||void 0,"aria-disabled":c||void 0,onPointerDown:()=>{g.current=!0,m()},onFocus:()=>{if(g.current){g.current=!1;return}x(!0)},onBlur:()=>{g.current=!1,m()},onKeyDown:e=>{"Escape"===e.key&&p&&(e.stopPropagation(),m())},sx:{width:30,height:28,borderRadius:"7px",cursor:c?"not-allowed":"pointer",opacity:c?.45:1,border:"1px solid ".concat(l?r+"66":n.border),background:l?r+"22":n.dark?"rgba(255,255,255,0.05)":"rgba(0,0,0,0.03)",color:r,display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.15s"},children:d?(0,o.jsx)(D.$j,{t:n,color:r,size:13}):(0,o.jsx)(L.Z,{name:t,size:15,stroke:"currentColor"})}),p&&(0,o.jsxs)(w.Z,{component:"span",role:"tooltip",sx:{position:"absolute",top:"calc(100% + 7px)",right:0,zIndex:30,width:s?200:"auto",background:n.txt1,color:n.paper,borderRadius:"8px",padding:s?"8px 10px":"5px 9px",boxShadow:"0 8px 22px rgba(0,0,0,0.35)",animation:"tnv-drop 0.14s ease",pointerEvents:"none"},children:[(0,o.jsx)(w.Z,{component:"span",sx:{display:"block",fontSize:12,fontWeight:700,whiteSpace:s?"normal":"nowrap"},children:i}),s&&(0,o.jsx)(w.Z,{component:"span",sx:{display:"block",fontSize:11,lineHeight:1.45,opacity:.8,marginTop:"2px"},children:s})]})]})},J={desktop:{label:v("monitoringReport.common.desktop"),icon:"monitor",code:r.html||r.code},mobile:{label:v("monitoringReport.common.mobile"),icon:"mobile",code:r.mobileHTML||r.code}},V=r.views&&r.views.length?r.views:[r.device],Y="all"!==a?V.filter(e=>e===a):V,$=(Y.length?Y:V).map(e=>({key:e,label:J[e].label,icon:J[e].icon,code:J[e].code})),[Q,K]=(0,y.useState)((null===(t=$[0])||void 0===t?void 0:t.key)||r.device);(0,y.useEffect)(()=>{var e;K((null===(e=$[0])||void 0===e?void 0:e.key)||r.device)},[r.id,a]);let X=r.screenshot?r.screenshot[Q]:null,ee=X?null==g?void 0:g[X]:null,et=h?"loading":ee?"ready":"unavailable";return(0,o.jsxs)(w.Z,{sx:{borderRadius:"10px",overflow:"hidden",border:"1px solid ".concat(n.border),borderLeft:"3px solid ".concat(O),background:n.paper},children:[(0,o.jsxs)(w.Z,{sx:{display:"flex",alignItems:"center",gap:"10px",padding:"10px 12px",background:n.paper2,opacity:c?.62:1,transition:"opacity 0.2s"}
1,children:[(0,o.jsxs)(w.Z,{component:"span",sx:{display:"flex",alignItems:"center",gap:"7px",padding:"5px 11px",borderRadius:"7px",minWidth:0,background:_,color:U,fontSize:12,fontWeight:700,whiteSpace:"nowrap"},children:[(0,o.jsx)(L.Z,{name:"mobile"===Q?"mobile":"monitor",size:13,stroke:U}),"#",i," \xb7"," ",v("mobile"===Q?"monitoringReport.common.mobile":"monitoringReport.common.desktop"),(0,o.jsx)(w.Z,{component:"span",sx:{opacity:.55},children:"\xb7"})," ",G]}),(0,o.jsx)(w.Z,{sx:{flex:1}}),(0,o.jsxs)(w.Z,{sx:{display:"flex",alignItems:"center",gap:"6px"},children:[("ready"===et||"loading"===et)&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(q,{icon:"camera",spinner:"loading"===et,color:n.txt3,label:v("ready"===et?"monitoringReport.checkWindow.viewScreenshot":"monitoringReport.checkWindow.loadingScreenshot"),tip:v("ready"===et?"monitoringReport.checkWindow.screenshotTip":"monitoringReport.checkWindow.screenshotLoadingTip"),disabled:"ready"!==et,onClick:()=>u({...r,device:Q,screenshotUrl:ee},s)}),!j&&(0,o.jsx)(w.Z,{component:"span",sx:{width:"1px",height:20,background:n.border}})]}),!j&&(l||c?(0,o.jsx)(q,{icon:"undo",color:n.primary,label:v("monitoringReport.checkWindow.restoreViolation"),tip:v("monitoringReport.checkWindow.restoreTip"),onClick:()=>{p(r.id,!1)}}):(0,o.jsxs)(o.Fragment,{children:[Z.canRequest&&(0,o.jsx)(q,{icon:"sparkles",color:n.primary,label:v("monitoringReport.checkWindow.aiFix"),tip:v("monitoringReport.checkWindow.aiFixTip"),active:S,disabled:Z.isAiFixInProgress,spinner:F,onClick:()=>{Z.isAiFixInProgress||(C(e=>!e),S||Z.trigger())}}),(0,o.jsx)(q,{icon:"eyeOff",color:n.warning,label:v("monitoringReport.checkWindow.ignoreViolation"),onClick:()=>x(r,s)}),(0,o.jsx)(q,{icon:"check",color:n.success,label:v("monitoringReport.checkWindow.markSolved"),onClick:()=>p(r.id,!0)})]}))]})]}),(0,o.jsx)(w.Z,{children:(0,o.jsx)(D.wh,{t:n,views:$,lang:"HTML",selected:Q,onSelect:K})}),(0,o.jsx)(D.UO,{open:!j&&S&&!l&&!c,children:(0,o.jsx)(w.Z,{sx:{padding:"14px",background:n.paper,borderTop:"1px solid ".concat(n.border)},children:(0,o.jsxs)(w.Z,{sx:{border:"1px solid ".concat(n.border),borderRadius:"9px",background:n.paper2,overflow:"hidden"},children:[(0,o.jsxs)(w.Z,{component:"button",onClick:()=>z(e=>!e),"aria-expanded":I,sx:{width:"100%",display:"flex",alignItems:"center",gap:"8px",padding:"12px 14px",background:"transparent",border:"none",cursor:"pointer",textAlign:"left"},children:[(0,o.jsx)(L.Z,{name:"sparkles",size:16,stroke:n.primary}),(0,o.jsx)(w.Z,{component:"span",sx:{flex:1,fontSize:13.5,fontWeight:700,color:n.txt1},children:v("monitoringReport.checkWindow.aiSuggestedFix")}),("thinking"===A||"typing"===A)&&(0,o.jsx)(D.$j,{t:n,color:n.primary,size:14}),(0,o.jsx)(L.Z,{name:I?"chevUp":"chevDown",size:16,stroke:n.txt3})]}),(0,o.jsx)(D.UO,{open:I,children:(0,o.jsx)(w.Z,{sx:{padding:"0 14px 14px"},children:"error"===A?(0,o.jsxs)(w.Z,{role:"alert",sx:{display:"flex",alignItems:"flex-start",gap:"9px",padding:"11px 12px",borderRadius:"8px",background:n.errorSoft,border:"1px solid ".concat((0,E.aJ)(n.error,.35))},children:[(0,o.jsx)(L.Z,{name:"alertCircle",size:16,stroke:n.error,style:{flexShrink:0,marginTop:1}}),(0,o.jsx)(w.Z,{component:"span",sx:{flex:1,fontSize:12.5,lineHeight:1.5,color:n.txt1},children:Z.error})]}):"thinking"===A?(0,o.jsx)(w.Z,{sx:{display:"flex",alignItems:"center",gap:"9px",padding:"4px 0 2px"},children:(0,o.jsx)(w.Z,{component:"span",className:"tnv-shine",sx:{fontSize:13},children:v("monitoringReport.checkWindow.aiAnalyzing")})}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(w.Z,{component:"p",sx:{fontSize:13,lineHeight:1.6,color:n.txt2,margin:"0 0 12px",minHeight:20},children:[T,"explanation"===Z.typingPhase&&(0,o.jsx)(w.Z,{component:"span",className:"tnv-caret"})]}),P&&(0,o.jsxs)(w.Z,{className:"tnv-in",sx:{borderRadius:"8px",overflow:"hidden",border:"1px solid ".concat(n.border)},children:[(0,o.jsxs)(w.Z,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"8px",padding:"7px 10px",background:n.codeBg,borderBottom:"1px solid rgba(".concat(n.dark?"255,255,255":"0,0,0",",0.08)")}
1,children:[(0,o.jsxs)(w.Z,{component:"span",sx:{display:"flex",alignItems:"center",gap:"7px",fontSize:11,fontWeight:600,color:"rgba(".concat(n.dark?"255,255,255":"0,0,0",",0.6)")},children:[(0,o.jsx)(L.Z,{name:"code",size:13,stroke:"rgba(".concat(n.dark?"255,255,255":"0,0,0",",0.6)"),style:{marginTop:"-1px"}})," ",v("monitoringReport.checkWindow.suggestedFix")]}),(0,o.jsxs)(w.Z,{component:"button","aria-label":v("monitoringReport.checkWindow.copySuggestedFix"),onClick:()=>{var e;null===(e=navigator.clipboard)||void 0===e||e.writeText(B),M(!0),setTimeout(()=>M(!1),1400)},sx:{display:"flex",alignItems:"center",gap:"5px",padding:"3px 8px",borderRadius:"6px",cursor:"pointer",border:"1px solid rgba(".concat(n.dark?"255,255,255":"0,0,0",",0.14)"),background:"rgba(".concat(n.dark?"255,255,255":"0,0,0",",0.04)"),color:W?n.successStrong:"rgba(".concat(n.dark?"255,255,255":"0,0,0",",0.65)"),fontSize:11,fontWeight:600,transition:"background 0.15s ease, border-color 0.15s ease, color 0.15s ease",...(0,E.pz)(n,{active:W})},children:[(0,o.jsx)(L.Z,{name:W?"check":"copy",size:12,stroke:"currentColor"})," ",v(W?"monitoringReport.common.copied":"monitoringReport.common.copy")]})]}),(0,o.jsx)(w.Z,{component:"pre",sx:{margin:0,padding:"10px 12px",background:n.codeBg,color:n.dark?"#E8EAF6":"#000000",fontSize:12.5,fontFamily:"monospace",lineHeight:1.55,whiteSpace:"pre",overflowX:"auto"},children:B})]})]})})})]})})})]})}function eR(e){let{t,isMobile:n}=e;return(0,o.jsx)(w.Z,{sx:{display:"flex",flexDirection:"column",gap:"12px"},children:[0,1,2,3].map(e=>(0,o.jsx)(ek,{t:t,isMobile:n,skClass:"tnv-sk"},e))})}function eC(e){let{t,page:n,totalPages:r,onGo:i}=e,{t:s}=(0,R.$G)(),a=[];for(let e=0;e<r;e++)0===e||e===r-1||1>=Math.abs(e-n)?a.push(e):"â¦"!==a[a.length-1]&&a.push("â¦");let l=e=>
1({minWidth:34,height:34,padding:"0 9px",borderRadius:"8px",cursor:"pointer",fontSize:13,fontWeight:600,border:"1px solid ".concat(e?t.primaryBtn:"transparent"),background:e?t.primaryBtn:"transparent",color:e?t.onPrimary:t.txt2,display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.15s"}),c=e=>({display:"flex",alignItems:"center",gap:"6px",height:34,padding:"0 12px",borderRadius:"8px",fontSize:13,fontWeight:600,border:"1px solid ".concat(t.border),background:t.paper,color:e?t.txt4:t.txt2,cursor:e?"not-allowed":"pointer",opacity:e?.55:1}),d=0===n,p=n===r-1;return(0,o.jsxs)(w.Z,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"10px",flexWrap:"wrap",marginTop:"20px",background:t.paper,border:"1px solid ".concat(t.border),borderRadius:"10px",padding:"10px 12px"},children:[(0,o.jsxs)(w.Z,{component:"button",onClick:()=>i(n-1),disabled:d,"aria-label":s("monitoringReport.checkWindow.previousPage"),sx:c(d),children:[(0,o.jsx)(L.Z,{name:"chevLeft",size:15,stroke:d?t.txt4:t.txt2})," ",s("monitoringReport.common.prev")]}),(0,o.jsx)(w.Z,{sx:{display:"flex",alignItems:"center",gap:"5px",flexWrap:"wrap",justifyContent:"center"},children:a.map((e,r)=>"â¦"===e?(0,o.jsx)(w.Z,{component:"span",sx:{color:t.txt4,padding:"0 2px"},children:"â¦"},"e".concat(r)):(0,o.jsx)(w.Z,{component:"button",onClick:()=>i(e),"aria-label":s("monitoringReport.checkWindow.pageNumber",{number:e+1}),"aria-current":e===n?"page":void 0,sx:l(e===n),children:e+1},e))}),(0,o.jsxs)(w.Z,{component:"button",onClick:()=>i(n+1),disabled:p,"aria-label":s("monitoringReport.checkWindow.nextPage"),sx:c(p),children:[s("monitoringReport.common.next")," ",(0,o.jsx)(L.Z,{name:"chevRight",size:15,stroke:p?t.txt4:t.txt2})]})]})}function eI(e){var t;let{t:n,check:r,scope:i,site:s,isLocal:a=!1,device:l="all",accordion:c,setAccordion:d,onClose:p,scrollRef:x,violations:u,solvedSet:g,ignoredSet:h,onSolve:m,onIgnore:f,onIgnoreOne:b,onBulkStatus:k,onScreenshot:j,screenshotUrls:v,screenshotsLoading:Z,domain:S,monitorScanId:C,onAiFixLimitReached:I,isMobile:z,isShared:W=!1}=e,{t:M}=(0,R.$G)(),[F,A]=(0,y.useState)(0),[T,B]=(0,y.useState)(!1),[P,N]=(0,y.useState)(!1);(0,y.useEffect)(()=>{A(0)},[r.id]);let[H,O]=(0,y.useState)(null),[U,_]=(0,y.useState)(!1),[G,q]=(0,y.useState)(!1),[V,Y]=(0,y.useState)(!1),[$,Q]=(0,y.useState)(!1);(0,y.useEffect)(()=>{let e=x&&x.current;if(!e)return;let t=()=>Q(e.scrollTop>360);return e.addEventListener("scroll",t,{passive:!0}),t(),()=>e.removeEventListener("scroll",t)},[x,r.id]);let K=u.filter(e=>!g.has(e.id)&&!h.has(e.id)).length,X=u.filter(e=>g.has(e.id)).length,ee=u.filter(e=>h.has(e.id)).length,et=(e,t)=>{!H&&t.length&&k&&(O(e),Promise.resolve(k(t,e)).finally(()=>{O(null)}))},en=()=>et("solve",u.filter(e=>!g.has(e.id)).map(e=>e.id)),eo=()=>u.filter(e=>!h.has(e.id)).map(e=>e.id),er=eo().length,ei=()=>et("ignore",eo()),es=()=>
1{if("true"===window.sessionStorage.getItem("hideMonitoringIgnoreModal-".concat(C))){ei();return}_(!0)},ea=e=>{ei(),e&&C&&window.sessionStorage.setItem("hideMonitoringIgnoreModal-".concat(C),"true"),_(!1)},el=()=>et("restore",u.filter(e=>g.has(e.id)||h.has(e.id)).map(e=>e.id)),ec=Math.max(1,Math.ceil(u.length/20)),ep=Math.min(F,ec-1),eu=u.slice(20*ep,20*ep+20).map((e,t)=>({v:e,n:20*ep+t+1})),eg={};eu.forEach(e=>{(eg[e.v.page]=eg[e.v.page]||[]).push(e)});let eh=()=>{x&&x.current&&x.current.scrollTo({top:0,behavior:"smooth"})},em=e=>{e<0||e>=ec||e===ep||T||(B(!0),eh(),setTimeout(()=>{A(e),B(!1)},420))},ef=Math.min(u.length,(ep+1)*20),eb=!0===r.filtered,ek=!eb&&0===r.total&&!r.na,ej=!eb&&0===r.total&&r.na,ey=Math.max(0,((null===(t=r.violations)||void 0===t?void 0:t.length)||0)-u.length),eI=ek?n.success:ej?n.txt4:n.error,ez=e=>{let{icon:t,label:r,onClick:i}=e;return(0,o.jsx)(w.Z,{component:"button",onClick:i,"aria-label":r,title:r,sx:{width:32,height:32,borderRadius:"8px",border:"1px solid ".concat(n.border),background:n.paper,color:n.txt2,cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,transition:"background 0.15s ease, border-color 0.15s ease, color 0.15s ease",...(0,E.pz)(n)},children:(0,o.jsx)(L.Z,{name:t,size:16,stroke:"currentColor"})})},eW=u.length,eM=eW>0&&X===eW,eF=eW>0&&ee===eW,eA=X>0||ee>0,eT=0===eW,eB=e=>{let{kind:t,color:r,icon:i,label:s,body:a,onClick:l,disabled:c}=e,d=H===t,p=H&&!d||c;return(0,o.jsx)(D.Ch,{t:n,label:d?M("monitoringReport.common.working"):s,body:d?void 0:a,place:"bottom",align:"right",children:(0,o.jsx)(w.Z,{component:"button",onClick:()=>{p||l()},disabled:!!H||c,"aria-label":s,sx:{display:"flex",alignItems:"center",justifyContent:"center",height:36,width:36,borderRadius:"8px",flexShrink:0,cursor:p?"not-allowed":"pointer",border:"1px solid ".concat(n.border),background:n.paper2,color:n.txt2,opacity:p&&!d?.45:1},children:d?(0,o.jsx)(D.$j,{t:n,color:r,size:15}):(0,o.jsx)(L.Z,{name:i,size:16,stroke:r})})})},eL=0===eW?{label:M("monitoringReport.checkWindow.noViolations"),color:n.success,icon:"checkCircle",tip:M("monitoringReport.checkWindow.noViolationsTip")}:0===K?eF?{label:M("monitoringReport.checkWindow.allIgnored"),color:n.txt3,icon:"eyeOff",tip:M("monitoringReport.checkWindow.allIgnoredTip")}:eM?{label:M("monitoringReport.checkWindow.allSolved"),color:n.success,icon:"checkCircle",tip:M("monitoringReport.checkWindow.allSolvedTip")}:{label:M("monitoringReport.checkWindow.allResolved"),color:n.success,icon:"checkCircle",tip:M("monitoringReport.checkWindow.allResolvedTip")}:eA?{label:M("monitoringReport.checkWindow.inProgress"),color:n.warning,icon:"activity",tip:M("monitoringReport.checkWindow.inProgressTip",{failed:K,solved:X,ignored:ee})}:{label:M("monitoringReport.checkWindow.needsAttention"),color:n.error,icon:"alertCircle",tip:M("monitoringReport.checkWindow.needsAttentionTip",{failed:K,count:K})};return(0,o.jsxs)(w.Z,{children:[(0,o.jsxs)(w.Z,{sx:{position:"sticky",top:0,zIndex:6,background:n.paper2,borderBottom:"1px solid ".concat(n.border),padding:z?"12px 14px":"14px 22px",display:"flex",alignItems:"center",gap:"12px",flexWrap:"nowrap",backdropFilter:"blur(6px)"},children:[(0,o.jsx)(w.Z,{component:"span",sx:{width:36,height:36,borderRadius:"50%",background:(0,E.aJ)(eI,n.dark?.18:.12),display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,lineHeight:0},children:(0,o.jsx)(L.Z,{name:ek?"checkCircle":ej?"minusCircle":"xCircle",size:24,stroke:eI})}),(0,o.jsx)(w.Z,{component:"h2",sx:{flex:1,minWidth:0,fontSize:z?14.5:16,fontWeight:700,color:n.txt1,lineHeight:1.3,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:r.title}),!z&&(()=>{let e=E.Ef[r.cat],t=(0,E.yG)(n,r.sev),i=()=>(0,o.jsx)(w.Z,{component:"span","aria-hidden":"true",sx:{width:"1px",height:14,background:n.border,flexShrink:0,alignSelf:"center"}}),s={display:"inline-flex",alignItems:"center",gap:"6px",height:20,fontSize:12,fontWeight:600,lineHeight:1,color:n.txt2,cursor:"default"};return(0,o.jsxs)(w.Z,{sx:{display:"flex",alignItems:"center",gap:"10px",flexShrink:0,whiteSpace:"nowrap",height:32},children:[(0,o.jsxs)(w.Z,{component:"span",title:M("monitoringReport.checkWindow.severity",{severity:r.sev}),sx:s,children:[(0,o.jsx)(w.Z,{component:"span",sx:{width:8,height:8,borderRadius:"50%",flexShrink:0,background:t,display:"block"}}),(0,o.jsx)(w.Z,{component:"span",sx:{lineHeight:1,display:"block"},children:(0,J.Wy)(M,r.sev)})]}),e&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(i,{}),(0,o.jsxs)(w.Z,{component:"span",title:M("monitoringReport.checkWindow.category",{category:(0,J.lX)(M,e.id)}),sx:s,children:[(0,o.jsx)(L.Z,{name:e.icon,size:13,stroke:n[e.color]||n.txt3,style:{display:"block"}}),(0,o.jsx)(w.Z,{component:"span",sx:{lineHeight:1,display:"block"},children:(0,J.lX)(M,e.id)})]})]}),(0,o.jsx)(i,{}),(0,o.jsxs)(w.Z,{component:"span",title:M("monitoringReport.checkWindow.wcagLevel",{level:r.level}),sx:s,children:[(0,o.jsx)(w.Z,{component:"span",sx:{color:n.txt4,lineHeight:1,display:"block"},children:M("monitoringReport.common.level")}),(0,o.jsx)(w.Z,{component:"span",sx:{fontWeight:700,color:n.primary,lineHeight:1,display:"block"},children:r.level})]})]})})(),(0,o.jsx)(w.Z,{component:"span",sx:{width:"1px",height:26,background:n.border,flexShrink:0}}),(0,o.jsx)(ez,{icon:"x",label:M("monitoringReport.checkWindow.closeCheck"),onClick:p})]}),(0,o.jsxs)(w.Z,{sx:{padding:z?"16px":"18px 22px 44px"},children:[(0,o.jsxs)(w.Z,{sx:{display:"flex",alignItems:"center",gap:"8px",marginBottom:"16
1px",flexWrap:"wrap"},children:[(0,o.jsxs)(w.Z,{sx:{display:"flex",alignItems:"center",gap:"8px",flexWrap:"wrap"},children:[(0,o.jsxs)(w.Z,{component:"span",sx:{position:"relative",display:"inline-flex"},onMouseEnter:()=>Y(!0),onMouseLeave:()=>Y(!1),children:[(0,o.jsxs)(w.Z,{component:"span",tabIndex:0,role:"status","aria-label":M("monitoringReport.checkWindow.statusAria",{label:eL.label,tip:eL.tip}),onFocus:()=>Y(!0),onBlur:()=>Y(!1),onKeyDown:e=>{"Escape"===e.key&&V&&(e.stopPropagation(),Y(!1))},sx:{display:"inline-flex",alignItems:"center",gap:"6px",cursor:"default",fontSize:12,fontWeight:600,lineHeight:1,color:eL.color,background:(0,E.aJ)(eL.color,n.dark?.16:.1),border:"1px solid ".concat((0,E.aJ)(eL.color,.35)),borderRadius:"7px",padding:"6px 10px"},children:[(0,o.jsx)(L.Z,{name:eL.icon,size:18,stroke:eL.color,sw:1.5,style:{flexShrink:0}}),(0,o.jsxs)(w.Z,{component:"span",sx:{position:"relative",display:"inline-flex",paddingRight:"9px"},children:[eL.label,(0,o.jsx)(L.Z,{name:"help",size:13,stroke:(0,E.aJ)(eL.color,.75),style:{position:"absolute",top:-5,right:-6,flexShrink:0}})]})]}),V&&(0,o.jsx)(w.Z,{component:"span",role:"tooltip",sx:{position:"absolute",top:"100%",left:0,zIndex:70,width:260,paddingTop:"8px"},children:(0,o.jsxs)(w.Z,{component:"span",sx:{display:"block",background:n.txt1,color:n.paper,borderRadius:"8px",padding:"8px 10px",boxShadow:"0 8px 22px rgba(0,0,0,0.4)",animation:"tnv-drop 0.14s ease"},children:[(0,o.jsx)(w.Z,{component:"span",sx:{display:"block",fontSize:12,fontWeight:700,marginBottom:"2px"},children:M("monitoringReport.checkWindow.currentStatus",{label:eL.label})}),(0,o.jsx)(w.Z,{component:"span",sx:{display:"block",fontSize:11,lineHeight:1.45,opacity:.82},children:eL.tip}),(0,o.jsx)(w.Z,{component:"span",sx:{display:"block",fontSize:11,lineHeight:1.45,opacity:.65,marginTop:"6px"},children:M("monitoringReport.checkWindow.statusUpdatesAuto")})]})})]}),(()=>{let e=X+ee,t=u.length?Math.round(e/u.length*100):0,r=(0,E.Uz)(t,n.dark);return(0,o.jsxs)(w.Z,{component:"span",title:M("monitoringReport.checkWindow.resolvedProgress",{resolved:e,total:u.length,solved:X,ignored:ee,failed:K}),sx:{display:"inline-flex",alignItems:"center",gap:"9px",border:"1px solid ".concat(n.border),borderRadius:"7px",padding:"5px 11px"},children:[(0,o.jsx)(w.Z,{component:"span",sx:{fontSize:11.5,fontWeight:600,color:n.txt3,whiteSpace:"nowrap"},children:M("monitoringReport.checkWindow.resolved")}),(0,o.jsx)(w.Z,{component:"span",sx:{position:"relative",width:96,height:6,borderRadius:"4px",background:n.track,overflow:"hidden"},children:(0,o.jsx)(w.Z,{component:"span",sx:{position:"absolute",inset:0,width:"".concat(t,"%"),borderRadius:"4px",background:r,transition:"width 0.5s cubic-bezier(0.3,0.8,0.3,1), background 0.3s ease"}})}),(0,o.jsxs)(w.Z,{component:"span",sx:{fontSize:12,fontWeight:700,color:r,whiteSpace:"nowrap"},children:[e,"/",u.length]})]})})()]}),(0,o.jsx)(w.Z,{sx:{flex:1}}),(0,o.jsxs)(w.Z,{sx:{display:"flex",alignItems:"center",gap:"8px",marginRight:"8px",flexShrink:0},children:[(0,o.jsx)(eB,{kind:"copy",color:n.primary,icon:"copy",label:M("monitoringReport.checkWindow.copyAllIssues"),body:M("monitoringReport.checkWindow.copyAllIssuesTip"),onClick:()=>N(!0),disabled:eT}),!W&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(eB,{kind:"solve",color:n.success,icon:"checkCircle",label:M("monitoringReport.checkWindow.solveAll"),body:M("monitoringReport.checkWindow.solveAllTip"),onClick:en,disabled:eM||eT}),(0,o.jsx)(eB,{kind:"ignore",color:n.txt2,icon:"eyeOff",label:M("monitoringReport.checkWindow.ignoreAll"),body:M("monitoringReport.checkWindow.ignoreAllTip"),onClick:es,disabled:eF||eT}),eA&&(0,o.jsx)(eB,{kind:"restore",color:n.txt3,icon:"undo",label:M("monitoringReport.checkWindow.undoChanges"),body:M("monitoringReport.checkWindow.undoChangesTip"),onClick:el})]})]}),(0,o.jsx)(D.Ch,{t:n,place:"bottom",align:"right",label:M("monitoringReport.checkWindow.getHelp"),body:M("monitoringReport.checkWindow.getHelpBody"),children:(0,o.jsxs)(w.Z,{component:"button",onClick:()=>q(!0),"aria-label":M("monitoringReport.checkWindow.contactSupport"),sx:{display:"flex",alignItems:"center",gap:"7px",height:36,padding:"0 13px",borderRadius:"8px",cursor:"pointer",border:"1px solid ".concat(n.border),background:n.paper2,color:n.txt2,flexShrink:0,fontSize:12.5,fontWeight:600,transition:"background 0.15s ease, border-color 0.15s ease, color 0.15s ease",...(0,E.pz)(n)},children:[(0,o.jsx)(L.Z,{name:"lifesaver",size:16,stroke:"currentColor"}),!z&&(0,o.jsx)(w.Z,{component:"span",sx:{position:"relative",top:"1px",lineHeight:1},children:M("monitoringReport.checkWindow.support")})]})})]}),(0,o.jsx)(ew,{t:n,check:r}),!(ek||ej)&&(0,o.jsxs)(w.Z,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"10px",marginBottom:"16
1px",flexWrap:"wrap"},children:[(0,o.jsx)(w.Z,{component:"span",sx:{fontSize:13,color:n.txt3},children:u.length>20?M("monitoringReport.checkWindow.showingViolations",{start:20*ep+1,end:ef,total:u.length}):M("monitoringReport.checkWindow.violationCount",{count:u.length})}),u.length>0&&ey>0&&(0,o.jsx)(D.Ch,{t:n,place:"bottom",align:"right",label:M("monitoringReport.checkWindow.hiddenByFiltersCount",{count:ey}),body:M("monitoringReport.checkWindow.hiddenByFiltersDetail"),children:(0,o.jsxs)(w.Z,{component:"span",sx:{display:"inline-flex",alignItems:"center",gap:"6px",fontSize:11.5,fontWeight:600,color:n.warning,background:n.warningSoft,border:"1px solid ".concat((0,E.aJ)(n.warning,.3)),borderRadius:"7px",padding:"4px 9px",cursor:"default"},children:[(0,o.jsx)(L.Z,{name:"filter",size:13,stroke:n.warning})," ",M("monitoringReport.checkWindow.filtersApplied",{count:ey})]})})]}),0===u.length||eb?ek||ej?(0,o.jsxs)(w.Z,{sx:{padding:"48px 32px",textAlign:"center",background:n.paper,border:"1px solid ".concat(n.border),borderRadius:"10px"},children:[(0,o.jsx)(w.Z,{component:"img",src:ek?n.dark?"/images/pages/Passed-status.png":"/images/pages/Passed-status-light.png":n.dark?"/images/irrelevant-status.png":"/images/pages/irrelevant-status-light.png",alt:"","aria-hidden":"true",sx:{display:"block",width:140,height:"auto",margin:"0 auto 16px"}}),(0,o.jsx)(w.Z,{sx:{fontSize:15,fontWeight:700,color:n.txt1,marginBottom:"6px"},children:ek?M("monitoringReport.checkWindow.checkPassed"):M("monitoringReport.checkWindow.notApplicableSite")}),(0,o.jsx)(w.Z,{sx:{fontSize:13.5,color:n.txt3,lineHeight:1.6,maxWidth:380,margin:"0 auto"},children:ek?M("monitoringReport.checkWindow.checkPassedBody"):M("monitoringReport.checkWindow.notApplicableBody")})]}):(0,o.jsxs)(w.Z,{sx:{padding:"48px 32px",textAlign:"center",background:n.paper,border:"1px solid ".concat(n.border),borderRadius:"10px"},children:[(0,o.jsxs)(w.Z,{component:"span",sx:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:56,height:56,borderRadius:"14px",background:n.primarySoft,marginBottom:"16px",position:"relative"},children:[(0,o.jsx)(L.Z,{name:"filter",size:26,stroke:n.primary}),(0,o.jsx)(w.Z,{component:"span",sx:{position:"absolute",top:-3,right:-3,width:18,height:18,borderRadius:"50%",background:n.primaryStrong,border:"2px solid ".concat(n.paper),display:"flex",alignItems:"center",justifyContent:"center"},children:(0,o.jsx)(L.Z,{name:"check",size:10,stroke:"#fff"})})]}),(0,o.jsx)(w.Z,{sx:{fontSize:15,fontWeight:700,color:n.txt1,marginBottom:"6px"},children:M("monitoringReport.checkWindow.noViolationsMatch")}),(0,o.jsx)(w.Z,{sx:{fontSize:13.5,color:n.txt3,lineHeight:1.6,maxWidth:360,margin:"0 auto"},children:M("monitoringReport.checkWindow.noViolationsMatchBody")})]}):(0,o.jsxs)(w.Z,{children:[(0,o.jsx)(w.Z,{sx:{background:n.paper,border:"1px solid ".concat(n.border),borderRadius:"10px",padding:z?"12px":"18px"},children:T?(0,o.jsx)(eR,{t:n,isMobile:z}):Object.entries(eg).map((e,t)=>{let[i,c]=e,d=z?9:13,p=ev(s,i,a),x=(0,E.Qv)(p);return(0,o.jsxs)(w.Z,{sx:{marginBottom:t===Object.keys(eg).length-1?0:"22px"},children:[(0,o.jsxs)(w.Z,{sx:{display:"flex",alignItems:"center",gap:"10px",marginBottom:"6px"},children:[(0,o.jsx)(w.Z,{component:"span","aria-hidden":"true",sx:{width:2*d,display:"flex",justifyContent:"center",flexShrink:0},children:(0,o.jsx)(w.Z,{component:"span",sx:{width:9,height:9,borderRadius:"50%",background:n.primary,boxShadow:"0 0 0 4px ".concat(n.primarySoft)}})}),(0,o.jsxs)(w.Z,{sx:{flex:1,minWidth:0,display:"flex",alignItems:"center",gap:"8px",padding:"10px 14px",background:n.paper2,border:"1px solid ".concat(n.border),borderRadius:"8px",flexWrap:"wrap"},children:[(0,o.jsx)(w.Z,{component:"span",sx:{fontSize:13,fontWeight:600,color:n.txt3},children:M("monitoringReport.checkWindow.pageLabel")}),(0,o.jsxs)(w.Z,{component:"a",href:p,target:"_blank",rel:"noopener noreferrer",sx:{fontSize:13,fontWeight:600,color:n.primary,textDecoration:"none",display:"inline-flex",alignItems:"center",gap:"5px",wordBreak:"break-all"},children:[x," ",(0,o.jsx)(L.Z,{name:"external",size:13,stroke:n.primary})]})]})]}),(0,o.jsxs)(w.Z,{sx:{position:"relative"},children:[(0,o.jsx)(w.Z,{component:"span","aria-hidden":"true",sx:{position:"absolute",left:d,top:-6,bottom:10,width:"2px",background:n.divider,borderRadius:"2px"}}),(0,o.jsx)(w.Z,{sx:{display:"flex",flexDirection:"column",gap:"14px"},children:c.map(e=>{let{v:t,n:i}=e;return(0,o.jsxs)(w.Z,{sx:{display:"flex",alignItems:"flex-start"},children:[(0,o.jsx)(w.Z,{component:"span","aria-hidden":"true",sx:{width:2*d,height:"2px",background:n.divider,borderRadius:"2px",marginTop:"22px",marginLeft:"".concat(d,"px"),flexShrink:0,alignSelf:"flex-start"}}),(0,o.jsx)(w.Z,{sx:{flex:1,minWidth:0,marginLeft:"4px"},children:(0,o.jsx)(eS,{t:n,v:t,n:i,check:r,device:l,solved:g.has(t.id),ignored:h.has(t.id),onSolve:m,onIgnore:b,onScreenshot:j,screenshotUrls:v,screenshotsLoading:Z,domain:S,monitorScanId:C,onAiFixLimitReached:I,isMobile:z,isShared:W})})]},t.id)})})]})]},i)})}),ec>1&&(0,o.jsx)(eC,{t:n,page:ep,totalPages:ec,onGo:em})]}),(0,o.jsxs)(w.Z,{component:"button",onClick:eh,"aria-label":M("monitoringReport.checkWindow.backToTop"),title:M("monitoringReport.checkWindow.backToTop"),sx:{position:"sticky",bottom:20,marginLeft:"auto",marginRight:"72px",display:"flex",alignItems:"center",gap:"7px",padding:"9px 14px",borderRadius:"22px",border:"1px solid ".concat(n.border),background:n.paper2,color:n.txt1,fontSize:12.5,fontWeight:600,cursor:"pointer",width:"fit-content",zIndex:8,boxShadow:n.dark?"0 10px 30px rgba(0,0,0,0.5)":"0 10px 30px rgba(16,24,40,0.18)",opacity:$?1:0,transform:$?"translateY(0)":"translateY(12px)",pointerEvents:$?"auto":"none",transition:"opacity 0.25s ease, transform 0.25s ease"},children:[(0,o.jsx)(L.Z,{name:"toTop",size:15,stroke:n.txt1})," ",M("monitoringReport.common.top")]}),P&&(0,o.jsx)(eZ,{t:n,check:r,violations:u,site:s,isLocal:a,onClose:()=>N(!1)}),G&&(0,o.jsx)(ed,{t:n,checkName:r.title,checkId:r.id,monitorScanId:C,onClose:()=>q(!1)}),U&&(0,o.jsx)(ex,{t:n,count:er,site:s,isLocal:a,onClose:()=>_(!1),onConfirm:ea})]})]})}function ez(e){let{t,check:n,scope:r,site:i,isLocal:s=!1,device:a="all",isMobile:l,isShared:c=!1,loadingViolations:d,onClose:p,violations:x,solvedSet:u,ignoredSet:g,onSolve:h,onIgnore:m,onIgnoreOne:f,onBulkStatus:b,onScreenshot:k,screenshotUrls:j,screenshotsLoading:v,domain:Z,monitorScanId:S,onAiFixLimitReached:C,accordion:I,setA
1ccordion:z}=e,{t:W}=(0,R.$G)(),[M,F]=(0,y.useState)(!1),[A,T]=(0,y.useState)(!1),B=(0,y.useRef)(null),L=(0,y.useRef)({check:null,violations:[]});n&&(L.current={check:n,violations:x}),(0,y.useEffect)(()=>{if(n){F(!0);return}T(!1);let e=setTimeout(()=>F(!1),380);return()=>clearTimeout(e)},[n]),(0,y.useEffect)(()=>{if(!M||!n)return;B.current&&(B.current.scrollTop=0);let e=requestAnimationFrame(()=>T(!0));return()=>cancelAnimationFrame(e)},[M,null==n?void 0:n.id]),(0,y.useEffect)(()=>{if(!M)return;let e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}},[M]);let E=(0,y.useRef)(null);if((0,y.useEffect)(()=>{if(!n)return;E.current=document.activeElement;let e=setTimeout(()=>{let e=B.current;if(!e)return;let t=e.querySelector('button:not([disabled]), [href], input:not([disabled]), select, textarea, [tabindex]:not([tabindex="-1"])');(t||e).focus({preventScroll:!0})},80),t=e=>{if("Escape"===e.key){p();return}if("Tab"!==e.key)return;let t=B.current;if(!t)return;let n=Array.from(t.querySelectorAll('button:not([disabled]), [href], input:not([disabled]), select, textarea, [tabindex]:not([tabindex="-1"])')).filter(e=>e.offsetWidth||e.offsetHeight||e===document.activeElement);if(!n.length)return;let o=n[0],r=n[n.length-1];e.shiftKey&&document.activeElement===o?(e.preventDefault(),r.focus()):e.shiftKey||document.activeElement!==r||(e.preventDefault(),o.focus())};return document.addEventListener("keydown",t),()=>{clearTimeout(e),document.removeEventListener("keydown",t),E.current&&E.current.focus&&E.current.focus({preventScroll:!0})}},[null==n?void 0:n.id,p]),!M)return null;let D=n||L.current.check,P=n?x:L.current.violations;return D?(0,o.jsx)(w.Z,{role:"presentation",onMouseDown:e=>{e.target===e.currentTarget&&p()},sx:{position:"fixed",inset:0,zIndex:1290,display:"flex",justifyContent:"flex-end",background:t.overlay,opacity:A?1:0,transition:"opacity 0.32s ease",backdropFilter:"blur(2px)"},children:(0,o.jsx)(w.Z,{ref:B,role:"dialog","aria-modal":"true","aria-label":W("monitoringReport.checkWindow.checkDialog",{title:D.title}),tabIndex:-1,sx:{width:l?"100%":"min(1280px, calc(100vw - 170px))",maxWidth:"100%",height:"100%",background:t.pageBg,borderLeft:"1px solid ".concat(t.border),outline:"none",boxShadow:"-24px 0 60px rgba(0,0,0,0.42)",overflowY:"auto",transform:A?"none":"translateX(100%)",transition:"transform 0.38s cubic-bezier(0.3,0.85,0.3,1)"},children:d?(0,o.jsx)(ej,{t:t,isMobile:l,empty:!1,skClass:"tnv-sk",embedded:!0}):(0,o.jsx)(eI,{t:t,check:D,scope:r,site:i,isLocal:s,device:a,isMobile:l,isShared:c,onClose:p,scrollRef:B,violations:P,solvedSet:u,ignoredSet:g,onSolve:h,onIgnore:m,onIgnoreOne:f,onBulkStatus:b,onScreenshot:k,screenshotUrls:j,screenshotsLoading:v,domain:Z,monitorScanId:S,onAiFixLimitReached:C,accordion:I,setAccordion:z})})}):null}let eW={};for(let[e,t]of Object.entries({"2.0":{A:["1.1.1","1.2.1","1.2.2","1.2.3","1.3.1","1.3.2","1.3.3","1.4.1","1.4.2","2.1.1","2.1.2","2.2.1","2.2.2","2.3.1","2.4.1","2.4.2","2.4.3","2.4.4","3.1.1","3.2.1","3.2.2","3.3.1","3.3.2","4.1.1","4.1.2"],AA:["1.2.4","1.2.5","1.4.3","1.4.4","1.4.5","2.4.5","2.4.6","2.4.7","3.1.2","3.2.3","3.2.4","3.3.3","3.3.4"],AAA:["1.2.6","1.2.7","1.2.8","1.2.9","1.4.6","1.4.7","1.4.8","1.4.9","2.1.3","2.2.3","2.2.4","2.2.5","2.3.2","2.4.8","2.4.9","2.4.10","3.1.3","3.1.4","3.1.5","3.1.6","3.2.5","3.3.5","3.3.6"]},"2.1":{A:["2.1.4","2.5.1","2.5.2","2.5.3","2.5.4"],AA:["1.3.4","1.3.5","1.4.10","1.4.11","1.4.12","1.4.13","4.1.3"],AAA:["1.3.6","2.2.6","2.3.3","2.5.5","2.5.6"]},"2.2":{A:["3.2.6","3.3.7"],AA:["2.4.11","2.5.7","2.5.8","3.3.8"],AAA:["2.4.12","2.4.13","3.3.9"]}}))for(let[n,o]of Object.entries(t))for(let t of o)eW[t]={version:e,level:n};let eM={gfx:"Every <img> element must include an alt attribute. For decorative images, use an empty alt value: alt=``. Images that convey meaningful information should have text that reflects their content. <input type=`image`> elements must always include alternative text, as they serve a functional purpose.",text:"Text must maintain a contrast ratio of at least 4.5:1 against its background (3:1 for large text). Low-contrast text is difficult to read for users with low vision and in bright environments.",default:"This check verifies that the page meets the related WCAG success criterion. Resolve each flagged element below to bring the page into compliance."},eF={gfx:"Screen reader users rely on alternative text to understand images. Without it, meaningful content is silently skipped, leaving users without information that sighted users receive instantly.",text:"Roughly 1 in 12 people have some form of color vision deficiency, and many more read on low-quality or sun-lit screens. Sufficient contrast keeps content legible for everyone.",default:"Meeting this criterion ensures assistive technology can convey the page accurately, and that keyboard and screen-reader users can complete the same tasks as everyone else."},eA={gfx:"WCAG 2.1 â 1.1.1 Non-text Content (Level A). Provide text alternatives for any non-text content so it can be changed into other forms people need.",text:"WCAG 2.1 â 1.4.3 Contrast (Minimum) (Level AA). The visual presentation of text has a contrast ratio of at least 4.5:1.",default:"Maps to the relevant WCAG 2.1 success criterion. Open WCAG Academy for guided examples and remediation patterns."},eT=(e,t)=>
1{if(!e||!t)return"";let n=String(t);return e[n]||""},eB=(e,t,n)=>{let o=eD(e,["criteriaId","successCriterion","sc","wcagId","criterion"]);return o||t.scId||(n?n(e.techniqueId||e.id):void 0)},eL=Object.fromEntries(E.nS.map(e=>[e.id,e])),eE=[],eD=(e,t)=>{if(e){for(let n of t)if(void 0!==e[n]&&null!==e[n]&&""!==e[n])return e[n]}},eP=e=>{if(!e)return;let t=String(e).trim();if(E.Ch[t])return E.Ch[t];let n=t.toLowerCase(),o=Object.keys(E.Ch).find(e=>e.toLowerCase()===n);return o?E.Ch[o]:E.Ef[n]?n:void 0},eN={critical:"Critical",serious:"Serious",high:"Serious",moderate:"Moderate",medium:"Moderate",minor:"Minor",low:"Minor"},eH=e=>{if(e)return eN[String(e).toLowerCase().trim()]},eO=(e,t)=>"all"===t||("desktop"===t?!!e.isDesktop:!!e.isMobile);var eU=n(91913),e_=n(45107);let eG=e=>({"@keyframes tnv-fade":{from:{opacity:0,transform:"translateY(4px)"},to:{opacity:1,transform:"translateY(0)"}},"@keyframes tnv-pop":{from:{opacity:0,transform:"scale(0.96) translateY(8px)"},to:{opacity:1,transform:"scale(1) translateY(0)"}},"@keyframes tnv-drop":{from:{opacity:0,transform:"translateY(-8px) scale(0.97)"},to:{opacity:1,transform:"translateY(0) scale(1)"}},"@keyframes tnv-drop-above":{from:{opacity:0,transform:"translateY(-100%) translateY(-8px) scale(0.97)"},to:{opacity:1,transform:"translateY(-100%) translateY(0) scale(1)"}},"@keyframes tnv-spin":{to:{transform:"rotate(360deg)"}},"@keyframes tnv-shimmer":{"0%":{backgroundPosition:"-600px 0"},"100%":{backgroundPosition:"600px 0"}},"@keyframes tnv-shine":{"0%":{backgroundPosition:"200% 0"},"100%":{backgroundPosition:"-200% 0"}},"@keyframes tnv-blink":{"0%,100%":{opacity:1},"50%":{opacity:0}},".tnv-in":{animation:"tnv-fade 0.3s ease"},".tnv-sk":{background:"linear-gradient(90deg,".concat(e.dark?"#2a2f42":"#ECECEF"," 25%,").concat(e.dark?"#353c56":"#F6F6F8"," 50%,").concat(e.dark?"#2a2f42":"#ECECEF"," 75%)"),backgroundSize:"600px 100%",animation:"tnv-shimmer 1.6s infinite",borderRadius:6},".tnv-shine":{backgroundImage:"linear-gradient(90deg,".concat(e.dark?(0,E.B5)(e.primary,"#FFFFFF",.15):(0,E.B5)(e.primary,"#000000",.3)," 30%,").concat(e.dark?"#FFFFFF":e.primary," 50%,").concat(e.dark?(0,E.B5)(e.primary,"#FFFFFF",.15):(0,E.B5)(e.primary,"#000000",.3)," 70%)"),backgroundSize:"200% 100%",WebkitBackgroundClip:"text",backgroundClip:"text",WebkitTextFillColor:"transparent",color:"transparent",animation:"tnv-shine 3.2s linear infinite",fontWeight:600},".tnv-caret":{display:"inline-block",width:2,height:"1em",verticalAlign:"text-bottom",marginLeft:1,background:e.primary,animation:"tnv-blink 0.9s step-end infinite"}}),eq=(e,t)=>e?t&&e.startsWith(t)?e.slice(t.length)||"/":e.replace(/^https?:\/\/[^/]+/,"")||"/":"",eJ=e=>{let{reportData:t,scanReportId:n,token:r=null,isShared:s=!1,isMobileView:a=!1,localScan:l=!1,onAiFixLimitReached:p}=e,x=(0,E.Fc)(),{t:u}=(0,R.$G)(),g=(0,i.I0)(),h=(0,c.useSearchParams)(),m=h.get("x-api-key"),f=(0,d.Z)("(max-width:760px)")||a,b=(0,d.Z)("(max-width:1080px)"),{techniqueLabelMap:k,techniqueIssueSummaryMap:j,techniqueWhyItMattersMap:v,techniqueDescriptionMap:Z,wcagDescriptionMap:S,wcagVersionLevelMap:C,resolveScNumber:I}=(0,eU.e)(),W=(0,y.useMemo)(()=>({techniqueLabelMap:k,techniqueIssueSummaryMap:j,techniqueWhyItMattersMap:v,techniqueDescriptionMap:Z,wcagDescriptionMap:S,wcagVersionLevelMap:C,resolveScNumber:I}),[k,j,v,Z,S,C,I]),{site:M,domain:F,isLocal:A,checks:T,loading:Y}=function(){var e,t,n,o,r,s,a,l,c;let{reportData:d,techniqueLabels:p,localScan:x=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},u=null!==(t=(0,i.v9)(e=>e.pageResultReducer.allPagesTechniques))&&void 0!==t?t:eE,g=null!==(n=(0,i.v9)(e=>e.pageResultReducer.allPagesCriteria))&&void 0!==n?n:eE,h=(0,i.v9)(e=>e.pageResultReducer.allPagesLoading),m=(0,y.useMemo)(()=>Object.fromEntries(g.map(e=>[e.id,e])),[g]),f=null==d?void 0:d.wCAGReportSummaryData,b=null==d?void 0:d.accessProgressTrackerData,k=(0,y.useMemo)(()=>u.map(e=>(function(e,t,n){var o,r,i,s,a,l;let c=e.techniqueId||e.id||(null==t?void 0:t.id),{techniqueLabelMap:d,techniqueIssueSummaryMap:p,techniqueWhyItMattersMap:x,techniqueDescriptionMap:u,wcagDescriptionMap:g,wcagVersionLevelMap:h,resolveScNumber:m}=n||{},f=(null==d?void 0:d[c])||e.name||e.title||c,b=null!==(i=null!==(r=null!==(o=e.totalIssues)&&void 0!==o?o:e.issuesCount)&&void 0!==r?r:null==t?void 0:t.totalIssues)&&void 0!==i?i:0,k=null!==(a=null!==(s=e.solvedCount)&&void 0!==s?s:e.solvedIssues)&&void 0!==a?a:0,j=null!==(l=e.ignoredCount)&&void 0!==l?l:0,y=function(e){let t=eP(eD(e,["category","categoryKey","categoryId"])),n=eH(eD(e,["
1severity","severityLevel","impact"])),o=eD(e,["criteriaId","successCriterion","sc","wcagId","criterion"]),r=o?eL[String(o)]:void 0,i=o?eW[String(o)]:void 0,s=eD(e,["wcagLevel","level","conformanceLevel"])||(null==r?void 0:r.level)||(null==i?void 0:i.level),a=eD(e,["wcagVersion","version","wcagVer"])||(null==r?void 0:r.ver)||(null==i?void 0:i.version),l=r||(o?{id:String(o),name:"",level:s||(null==i?void 0:i.level)||"",ver:a||(null==i?void 0:i.version)||"",principle:"",guideline:"",desc:""}:null);return{category:t,severity:n,sc:l,level:s,ver:a,scId:o}}(e),v=y.category,w=eB(e,y,m),Z=!0===e.irrelevant||"irrelevant"===e.status||(null==t?void 0:t.irrelevant)===!0,S=eT(p,c)||v&&eM[v]||eM.default,R=eT(x,c)||v&&eF[v]||eF.default,C=eT(g,w)||eT(u,c)||v&&eA[v]||eA.default,I=w&&(null==h?void 0:h[String(w)])||null;return{id:c,title:f,cat:v,failed:Math.max(0,b-k-j),solved:k,ignored:j,total:b,sev:y.severity||"Minor",level:y.level||"A",wcagVer:y.ver||"2.0",sc:y.sc,scCriteriaId:w?String(w):null,na:0===b&&Z,filtered:!0===e.filtered,irrelevant:Z,status:e.status,summary:S,why:R,wcag:C,wcagVersionLabel:I,raw:e,violations:[]}})(e,m[e.techniqueId],p)),[u,m,p]),j=(null==f?void 0:f.domain)||"",v=j?j.startsWith("http")?j:"https://".concat(j):"",w=(0,z.b)(null==f?void 0:f.source)||!!x;return{loading:h,site:v,domain:j,isLocal:w,scannedAt:(null==f?void 0:f.scanDate)||"",pagesScanned:null!==(r=null!==(o=null==d?void 0:null===(e=d.reportData)||void 0===e?void 0:e.length)&&void 0!==o?o:null==f?void 0:f.pagesScanned)&&void 0!==r?r:0,score:null!==(a=null!==(s=null==f?void 0:f.accessibilityScore)&&void 0!==s?s:null==b?void 0:b.accessibilityScore)&&void 0!==a?a:0,violationsTotal:null!==(l=null==b?void 0:b.violationsTotal)&&void 0!==l?l:0,violationsSolved:null!==(c=null==b?void 0:b.violationsSolved)&&void 0!==c?c:0,checks:k}}({reportData:t,techniqueLabels:W,localScan:l}),$=(0,y.useMemo)(()=>F.replace(/^www\./,""),[F]),K=(0,y.useRef)(!1),[X,ee]=(0,y.useState)(!1);(0,y.useEffect)(()=>{Y?K.current=!0:K.current&&ee(!0)},[Y]);let et=!X&&0===T.length,en=(0,y.useRef)(0),[eo,er]=(0,y.useState)(!1);(0,y.useEffect)(()=>{if(!X)return;if(Y){en.current=Date.now(),er(!0);return}if(!eo)return;let e=Math.max(0,500-(Date.now()-en.current)),t=setTimeout(()=>er(!1),e);return()=>clearTimeout(t)},[Y,X,eo]);let[es,ea]=(0,y.useState)("all"),[el,ec]=(0,y.useState)({failed:!0,solved:!0,ignored:!0}),[ed,eu]=(0,y.useState)(!1),[eh,em]=(0,y.useState)({Critical:!0,Serious:!0,Moderate:!0,Minor:!0}),[ef,eb]=(0,y.useState)(!1),[ek,ej]=(0,y.useState)({A:!0,AA:!0,AAA:!0}),[ey,ev]=(0,y.useState)(!1),[ew,eZ]=(0,y.useState)("2.2"),[eS,eR]=(0,y.useState)(!1),[eC,eI]=(0,y.useState)(!1),[eN,eJ]=(0,y.useState)(!1);(0,y.useEffect)(()=>{eC||eJ(!1)},[eC]);let[eV,eY]=(0,y.useState)(!1),e$=(0,y.useRef)(0),eQ=(0,y.useRef)(!0);(0,y.useEffect)(()=>{if(eQ.current){eQ.current=!1;return}e$.current=Date.now(),eY(!0);let e=setTimeout(()=>eY(!1),500);return()=>clearTimeout(e)},[el,eh,ek,ew]);let[eK,eX]=(0,y.useState)("all"),[e0,e1]=(0,y.useState)(""),[e2,e5]=(0,y.useState)(""),[e3,e6]=(0,y.useState)(null),[e4,e8]=(0,y.useState)(()=>N(n)),[e7,e9]=(0,y.useState)(!1),[te,tt]=(0,y.useState)(!1);(0,y.useEffect)(()=>{e8(N(n))},[n]);let tn=(0,y.useRef)(null),[to,tr]=(0,y.useState)({left:0,width:0});(0,y.useEffect)(()=>{let e=()=>{let e=tn.current;if(!e)return;let t=e.querySelector('[data-device="'.concat(es,'"]'));t&&tr({left:t.offsetLeft,width:t.offsetWidth})};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[es,f]);let[ti,ts]=(0,y.useState)(null),[ta,tl]=(0,y.useState)({summary:!0,why:!1,wcag:!1}),[tc,td]=(0,y.useState)(()=>new Set),[tp,tx]=(0,y.useState)(()=>new Set),[tu,tg]=(0,y.useState)(null),[th,tm]=(0,y.useState)(null),tf=(0,y.useMemo)(()=>{if("all"===eK)return null;let e=(null==t?void 0:t.reportData)||[],n=e.find(e=>(e.url||e.pageUrl||e.urlName||e.page||"")===eK);return n?n._id||n.pageResultId||n.id:null},[eK,t]),{counts:tb,loading:tk,invalidate:tj}=function(){let{scope:e,pageResultId:t,device:n,token:o,xApiKey:r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[i,s]=(0,y.useState)({}),[a,l]=(0,y.useState)(!1),c="all"!==e&&!!t,d=c&&void 0!==i[t],p=(0,y.useCallback)(e=>{let t=new URLSearchParams;r&&t.set("x-api-key",r),o&&t.set("token",o);let n=t.toString(),i="/api/v1/pageResult/criteria/".concat(e).concat(n?"?".concat(n):"");return ei.Z.get(i,o?{skipAuth:!0}:{}).then(t=>{s(n=>{var o;return{...n,[e]:(null===(o=t.data)||void 0===o?void 0:o.criteria)||[]}})}).catch(t=>{console.error("Error fetching per-page criteria:",t),s(t=>({...t,[e]:[]}))})},[o,r]);(0,y.useEffect)(()=>{c&&!d&&(l(!0),p(t).finally(()=>l(!1)))},[c,d,t,p]);let x=(0,y.useCallback)(e=>{let n=e||t;n&&void 0!==i[n]&&p(n)},[t,i,p]),u=(0,y.useMemo)(()=>
1{if(!c)return null;let e=i[t];if(void 0===e)return null;let o={};return e.forEach(e=>{(e.techniques||[]).forEach(e=>{let t=e.techniqueId||e.techniqueName;if(!t)return;let r=e.issues||[],i=o[t]||{total:0,solved:0,ignored:0,allTotal:0};r.forEach(e=>{i.allTotal+=1,eO(e,n)&&(i.total+=1,"solved"===e.solveStatus?i.solved+=1:"ignored"===e.solveStatus&&(i.ignored+=1))}),o[t]=i})}),o},[c,i,t,n]);return{counts:u,loading:c&&a&&!d,invalidate:x}}({scope:eK,pageResultId:tf,device:es,token:r,xApiKey:m}),[ty,tv]=(0,y.useState)(!1),tw=(0,y.useRef)(0),tZ=(0,y.useRef)(!0);(0,y.useEffect)(()=>{if(tZ.current){tZ.current=!1;return}tw.current=Date.now(),tv(!0)},[eK]),(0,y.useEffect)(()=>{if(!ty||tk)return;let e=Math.max(0,1e3-(Date.now()-tw.current)),t=setTimeout(()=>tv(!1),e);return()=>clearTimeout(t)},[ty,tk]);let tS=(0,y.useRef)(s);(0,y.useEffect)(()=>{if(n){if(tS.current){tS.current=!1;return}g((0,e_.Rb)({monitorScanId:n,xApiKey:m,token:r,deviceFilter:es}))}},[g,n,es,m,r]),(0,y.useEffect)(()=>{if(!ed&&!ef&&!ey&&!eS&&!eC)return;let e=()=>{eu(!1),eb(!1),ev(!1),eR(!1),eI(!1)},t=t=>{t.target.closest("[data-tnv-dd]")||e()},n=t=>{"Escape"===t.key&&e()};return document.addEventListener("mousedown",t),document.addEventListener("keydown",n),()=>{document.removeEventListener("mousedown",t),document.removeEventListener("keydown",n)}},[ed,ef,ey,eS,eC]);let tR=(0,i.v9)(e=>e.pageResultReducer.techniquePages),tC=(0,i.v9)(e=>e.pageResultReducer.techniquePagesLoading),tI=(0,i.v9)(e=>e.pageResultReducer.selectedTechniqueId),tz=(0,y.useMemo)(()=>{let e=ti?T.find(e=>e.id===ti):null;return!!e&&e.total>0},[ti,T]);(0,y.useEffect)(()=>{ti&&n&&tz&&g((0,e_.QA)({monitorScanId:n,techniqueId:ti,page:1,limit:1e3,xApiKey:m,token:r}))},[g,ti,n,tz,m,r]);let[tW,tM]=(0,y.useState)(null);(0,y.useEffect)(()=>{tM(null)},[ti]);let tF=(0,y.useRef)(!1);(0,y.useEffect)(()=>{tF.current&&!tC&&ti&&tM(ti),tF.current=tC},[tC,ti]);let tA=(0,y.useMemo)(()=>ti&&tz&&tI===ti?function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[];return e.forEach(e=>{let n=e.pageUrl||e.url||e.techniqueName||"";(e.issues||[]).forEach(o=>{let r=[];o.isDesktop&&r.push("desktop"),o.isMobile&&r.push("mobile"),r.length||r.push("desktop"),t.push({id:o.id||o._id,device:r[0],views:r,page:n,pageResultId:o.pageResultId||e.pageResultId,code:o.html||o.mobileHTML||"",html:o.html||"",mobileHTML:o.mobileHTML||"",shot:!!o.screenshot,screenshot:o.screenshot||null,certainty:o.certainty||null,solveStatus:o.solveStatus||"unhandled",seedSolved:"solved"===o.solveStatus,seedIgnored:"ignored"===o.solveStatus,aiInfo:o.aiInfo||null,raw:o})})}),t}(tR):[],[ti,tz,tI,tR]),{data:tT,isLoading:tB}=(0,e_.px)(ti&&tz?n:null,ti&&tz?ti:null,{xApiKey:m,token:r}),tL=(0,y.useMemo)(()=>{let e={};return((null==tT?void 0:tT.pages)||[]).forEach(t=>{t.screenshotUrls&&"object"==typeof t.screenshotUrls&&Object.assign(e,t.screenshotUrls)}),e},[tT]);(0,y.useEffect)(()=>{tA.length&&(td(e=>{let t=new Set(e);return tA.forEach(e=>e.seedSolved&&t.add(e.id)),t}),tx(e=>{let t=new Set(e);return tA.forEach(e=>e.seedIgnored&&t.add(e.id)),t}))},[tA]);let tE=(0,y.useCallback)((e,t)=>{let n=tA.find(t=>t.id===e);(null==n?void 0:n.pageResultId)&&g((0,e_.DI)({pageResultId:n.pageResultId,issueId:e,solveStatus:t})),tj()},[g,tA,tj]),tD=(0,y.useCallback)((e,t)=>{s||(td(n=>{let o=new Set(n);return t?o.add(e):o.delete(e),o}),tx(t=>{if(!t.has(e))return t;let n=new Set(t);return n.delete(e),n}),tE(e,t?"solved":"unhandled"))},[tE,s]),tP=(0,y.useCallback)((e,t)=>{s||(tx(n=>{let o=new Set(n);return t?o.add(e):o.delete(e),o}),t&&td(t=>{let n=new Set(t);return n.delete(e),n}),tE(e,t?"ignored":"unhandled"))},[tE,s]),tN=(0,y.useCallback)(async(e,t)=>{if(s||!ti||!n)return;let o=Array.isArray(e)?e:[],i=o.some(e=>tc.has(e)),a=o.some(e=>tp.has(e));td(e=>{let n=new Set(e);return o.forEach(e=>"solve"===t?n.add(e):n.delete(e)),n}),tx(e=>{let n=new Set(e);return o.forEach(e=>"ignore"===t?n.add(e):n.delete(e)),n});let l=e=>g((0,e_.EU)({monitorScanId:n,techniqueId:ti,status:e,deviceFilter:es}));"solve"===t?(a&&await l("unignore"),await l("pass")):"ignore"===t?await l("ignore"):(!i&&(i||a)||await l("fail"),a&&await l("unignore")),g((0,e_.QA)({monitorScanId:n,techniqueId:ti,page:1,limit:1e3,xApiKey:m,token:r})),g((0,e_.Rb)({monitorScanId:n,xApiKey:m,token:r,deviceFilter:es,silent:!0})),tj()},[g,ti,n,es,m,r,tc,tp,s,tj]),tH=(0,y.useCallback)(e=>{if("true"===window.sessionStorage.getItem("hideMonitoringIgnoreModal-".concat(n))){tP(e.id,!0);return}tm(e)},[n,tP]),tO=(0,y.useCallback)(e=>{th&&tP(th.id,!0),e&&n&&window.sessionStorage.setItem("hideMonitoringIgnoreModal-".concat(n),"true"),tm(null)},[th,tP,n]),tU=(0,y.useCallback)(e=>
1({f:el.failed?e.failed:0,s:el.solved?e.solved:0,ig:el.ignored?e.ignored:0}),[el]),t_=(0,y.useCallback)(e=>!!(e.total>0&&!eh[e.sev]||!ek[e.level]||E.Qm.indexOf(e.wcagVer)>E.Qm.indexOf(ew)),[eh,ek,ew]),tG=(0,y.useCallback)(e=>({...e,filtered:!0===e.filtered||t_(e)}),[t_]),tq=(0,y.useMemo)(()=>"all"!==eK&&tb?T.map(e=>{let t=tb[e.id],n=t?t.total:0,o=t?t.solved:0,r=t?t.ignored:0,i=!!t&&0===t.total&&t.allTotal>0;return{...e,total:n,solved:o,ignored:r,failed:Math.max(0,n-o-r),filtered:i,na:e.na&&0===n}}):T,[eK,tb,T]),tJ=(0,y.useMemo)(()=>tq.filter(e=>!e0||e.title.toLowerCase().includes(e0.toLowerCase())).map(tG),[tq,e0,tG]),tV=(0,y.useMemo)(()=>tq.reduce((e,t)=>{if(t_(t))return e;let n=tU(t);return e+n.f+n.s+n.ig},0),[tq,tU,t_]),tY=(0,y.useMemo)(()=>{let e=(null==t?void 0:t.reportData)||[];return e.map(e=>{let t=e.url||e.pageUrl||e.urlName||e.page||"",n=eq(t,M);return{url:t,path:n,displayPath:(0,E.Qv)(n),displayUrl:(0,E.Qv)((0,z.KF)(t,M,A)),pageResultId:e._id||e.pageResultId||e.id}}).filter(e=>e.url)},[t,M,A]),t$=(0,y.useMemo)(()=>tY.filter(e=>{let t=e2.toLowerCase();return e.path.toLowerCase().includes(t)||(e.displayPath||"").toLowerCase().includes(t)}).sort((e,t)=>(e4.has(t.url)?1:0)-(e4.has(e.url)?1:0)),[tY,e2,e4]),tQ=e=>e8(t=>{let o=new Set(t);return o.has(e)?o.delete(e):o.add(e),!function(e,t){if(e)try{let n=localStorage.getItem(P),o=n?JSON.parse(n):{},r=String(e);t.size?o[r]=Array.from(t):delete o[r],localStorage.setItem(P,JSON.stringify(o))}catch(e){}}(n,o),o}),tK=ti?T.find(e=>e.id===ti):null,tX=(0,y.useMemo)(()=>tK?tG(tK):null,[tK,tG]),t0=(0,y.useMemo)(()=>tX?{...tX,violations:tA}:null,[tX,tA]),t1=e=>"all"===eK||e.page===eK||eq(e.page,M)===eq(eK,M),t2=t0?tA.filter(e=>{if("all"!==es&&!(e.views&&e.views.length?e.views:[e.device]).includes(es)||!t1(e))return!1;let t=tp.has(e.id),n=tc.has(e.id);return t?el.ignored:n?el.solved:el.failed}):[],t5=e=>ts(e),t3=()=>ts(null),t6="all"===eK?u("monitoringReport.scope.allPages"):(0,E.Qv)((0,z.KF)(eK,M,A)),t4=!(el.failed&&el.solved&&el.ignored),t8=E.t3.some(e=>!eh[e.key]),t7=E.sQ.some(e=>!ek[e]),t9="2.2"!==ew,ne=()=>{ec({failed:!0,solved:!0,ignored:!0}),em({Critical:!0,Serious:!0,Moderate:!0,Minor:!0}),ej({A:!0,AA:!0,AAA:!0}),eZ("2.2")},nt=()=>{eI(!0),eu(!1),eb(!1),ev(!1),eR(!1)},nn=[t4&&{key:"status",label:"".concat(u("monitoringReport.filters.status"),": ").concat(H(el,u)),onClick:nt},t8&&{key:"severity",label:"".concat(u("monitoringReport.filters.severity"),": ").concat(O(eh,u)),onClick:nt},t7&&{key:"level",label:"".concat(u("monitoringReport.filters.level"),": ").concat(U(ek,u)),onClick:nt},t9&&{key:"version",label:"".concat(u("monitoringReport.common.wcag")," ").concat(ew),onClick:nt}].filter(Boolean),no=x.dark?"#FFFFFF":x.txt1,nr=x.dark?"rgba(255, 255, 255, 0.1)":(0,E.aJ)(x.txt1,.06),ni=e=>{let{id:t,icon:n,label:r}=e,i=es===t;return(0,o.jsxs)(w.Z,{component:"button","data-device":t,onClick:()=>ea(t),"aria-pressed":i,sx:{position:"relative",zIndex:1,display:"flex",alignItems:"center",gap:"7px",padding:"8px 14px",borderRadius:"7px",fontSize:13,fontWeight:600,cursor:"pointer",whiteSpace:"nowrap",border:"1px solid transparent",background:"transparent",color:i?no:x.txt3,fontWeight:i?700:600,transition:"color 0.2s"},children:[n&&(0,o.jsx)(L.Z,{name:n,size:15,stroke:"currentColor"})," ",r]})},ns=e=>({display:"flex",alignItems:"center",gap:"7px",padding:"8px 14px",borderRadius:"7px",fontSize:13,fontWeight:600,cursor:"pointer",border:"1px solid ".concat(e?(0,E.aJ)(no,.4):x.border),background:e?nr:"transparent",color:e?no:x.txt2,whiteSpace:"nowrap",transition:"border-color 0.15s ease, color 0.15s ease"});return(0,o.jsx)(eg.dW,{children:(0,o.jsxs)(w.Z,{sx:{color:x.txt1},children:[(0,o.jsx)(B.Z,{styles:eG(x)}),!et&&(0,o.jsxs)(w.Z,{className:"tnv-in",sx:{margin:"4px 0 18px",display:"flex",alignItems:"center",gap:"10px",flexWrap:"wrap",position:"relative",zIndex:40},children:[(0,o.jsxs)(w.Z,{sx:{display:"flex",gap:"4px",background:x.paper,border:"1px solid ".concat(x.border),borderRadius:"9px",padding:"4px",flexWrap:"wrap"},children:[(0,o.jsxs)(w.Z,{ref:tn,sx:{position:"relative",display:"flex",gap:"4px"},children:[(0,o.jsx)(w.Z,{"aria-hidden":"true",sx:{position:"absolute",top:0,bottom:0,left:"".concat(to.left,"px"),width:"".concat(to.width,"px"),borderRadius:"7px",background:nr,border:"1px solid ".concat((0,E.aJ)(no,.4)),pointerEvents:"none",transition:to.width?"left 0.28s cubic-bezier(0.4,0,0.2,1), width 0.28s cubic-bezier(0.4,0,0.2,1)":"none"}}),(0,o.jsx)(ni,{id:"all",label:u("monitoringReport.common.all")}),(0,o.jsx)(ni,{id:"desktop",icon:"monitor",label:u("monitoringReport.common.desktop")}),(0,o.jsx)(ni,{id:"mobile",icon:"mobile",label:u("monitoringReport.common.mobile")})]}),(0,o.jsxs)(w.Z,{"data-tnv-dd":!0,sx:{display:"flex",alignItems:"center",gap:"8px",flexWrap:"wrap",position:"relative"},children:[!eC&&nn.map(e=>(0,o.jsx)(w.Z,{component:"button",onClick:e.onClick,sx:{display:"flex",alignItems:"center",gap:"6px",padding:"8px 12px",borderRadius:"8px",fontSize:13,fontWeight:600,cursor:"pointer",whiteSpace:"nowrap",flexShrink:0,border:"1px solid ".concat((0,E.aJ)(no,.4)),background:nr,color:no},children:e.label},e.key)),(t4||t8||t7||t9)&&(0,o.jsxs)(w.Z,{component:"button",onClick:ne,title:u("monitoringReport.filters.resetAll"),sx:{display:"flex",alignItems:"center",gap:"5px",padding:"8px 11px",borderRadius:"8px",cursor:"pointer",whiteSpace:"nowrap",flexShrink:0,border:"none",background:"transparent",color:x.txt3,fontSize:13,fontWeight:600},children:[(0,o.jsx)(L.Z,{name:"undo",size:14,stroke:"currentColor"})," ",u("monitoringReport.common.clear")]}),(0,o.jsxs)(w.Z,{component:"button",onClick:()=>eI(e=>{let t=!e;return t||(eu(!1),eb(!1),ev(!1),eR(!1)),t}),"aria-expanded":eC,sx:{display:"flex",alignItems:"center",gap:"6px",padding:"8px 12px",borderRadius:"8px",cursor:"pointer",whiteSpace:"nowrap",flexShrink:0,border:"none",background:"transparent",color:eC?x.primary:x.txt2,fontSize:13,fontWeight:600,transition:"color 0.15s ease"},children:[(0,o.jsx)(L.Z,{name:"filter",size:15,stroke:"currentColor"}),u("monitoringReport.filters.moreFilters"),(0,o.jsx)(L.Z,{name:eC?"chevLeft":"chevRight",size:15,stroke:"currentColor"})]}),(0,o.jsxs)(w.Z,{onTransitionEnd:e=>{"max-width"===e.propertyName&&eC&&eJ(!0)},sx:{display:"flex",alignItems:"center",gap:"8px",flexWrap:"nowrap",maxWidth:eC?1100:0,opacity:eC?1:0,overflow:eN?"visible":"hidden",pointerEvents:eC?"auto":"none",transition:"max-width 0.42s cubic-bezier(0.3,0.8,0.3,1), opacity 0.3s ease"},children:[(0,o.jsxs)(w.Z,{"data-tnv-dd":!0,sx:{position:"relative"},children:[(0,o.jsxs)(w.Z,{component:"button",onClick:()=>{eu(e=>!e),eb(!1),ev(!1),eR(!1)},"aria-expanded":ed,sx:ns(t4),children:[(0,o.jsx)(L.Z,{name:"filter",size:15,stroke:"currentColor"}),u("monitoringReport.filters.status"),": ",H(el,u),(0,o.jsx)(L.Z,{name:ed?"chevUp":"chevDown",size:15,stroke:"currentColor"})]}),ed&&(0,o.jsx)(D.MD,{t:x,title:u("monitoringReport.filters.violationStatus"),onClose:()=>eu(!1),options:[{value:"failed",render:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(w.Z,{component:"span",sx:{width:8,height:8,borderRadius:"50%",background:x.error,flexShrink:0}})," ",u("monitoringReport.status.failed")]})},{value:"solved",render:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(w.Z,{component:"span",sx:{width:8,height:8,borderRadius:"50%",background:x.success,flexShrink:0}})," ",u("monitoringReport.status.solved")]})},{value:"ignored",render:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(w.Z,{component:"span",sx:{width:8,height:8,borderRadius:"50%",background:x.txt4,flexShrink:0}})," ",u("monitoringReport.status.ignored")]})}],isChecked:e=>el[e],onToggle:e=>ec(t=>({...t,[e]:!t[e]}))})]}),(0,o.jsxs)(w.Z,{"data-tnv-dd":!0,sx:{position:"relative"},children:[(0,o.jsxs)(w.Z,{component:"button",onClick:()=>{eb(e=>!e),eu(!1),ev(!1),eR(!1)},"aria-expanded":ef,sx:ns(t8),children:[(0,o.jsx)(L.Z,{name:"octa",size:15,stroke:"currentColor"}),u("monitoringReport.filters.severity"),": ",O(eh,u),(0,o.jsx)(L.Z,{name:ef?"chevUp":"chevDown",size:15,stroke:"currentColor"})]}),ef&&(0,o.jsx)(D.MD,{t:x,title:u("monitoringReport.filters.severity"),onClose:()=>eb(!1),options:E.t3.map(e=>({value:e.key,render:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(w.Z,{component:"span",sx:{width:8,height:8,borderRadius:"50%",background:(0,E.yG)(x,e.key),flexShrink:0}})," ",(0,J.Wy)(u,e.key)]})})),isChecked:e=>eh[e],onToggle:e=>em(t=>({...t,[e]:!t[e]}))})]}),(0,o.jsxs)(w.Z,{"data-tnv-dd":!0,sx:{position:"relative"},children:[(0,o.jsxs)(w.Z,{component:"button",onClick:()=>{ev(e=>!e),eu(!1),eb(!1),eR(!1)},"aria-expanded":ey,sx:ns(t7),children:[(0,o.jsx)(L.Z,{name:"shield",size:15,stroke:"currentColor"}),u("monitoringReport.filters.level"),": ",U(ek,u),(0,o.jsx)(L.Z,{name:ey?"chevUp":"chevDown",size:15,stroke:"currentColor"})]}),ey&&(0,o.jsx)(D.MD,{t:x,title:u("monitoringReport.filters.wcagConformanceLevel"),minWidth:196,onClose:()=>ev(!1),options:E.sQ.map(e=>({value:e,render:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(w.Z,{component:"span",sx:{fontSize:11,fontWeight:700,color:x.primary,background:x.primarySoft,borderRadius:"5px",padding:"2px 8px",minWidth:38,textAlign:"center",flexShrink:0},children:e}),u("monitoringReport.filters.levelOption",{level:e})]})})),isChecked:e=>ek[e],onToggle:e=>ej(t=>({...t,[e]:!t[e]}))})]}),(0,o.jsxs)(w.Z,{"data-tnv-dd":!0,sx:{position:"relative"},children:[(0,o.jsxs)(w.Z,{component:"button",onClick:()=>{eR(e=>!e),eu(!1),eb(!1),ev(!1)},"aria-expanded":eS,sx:ns(t9),children:[(0,o.jsx)(L.Z,{name:"academy",size:15,stroke:"currentColor"}),u("monitoringReport.common.wcag")," ",ew,(0,o.jsx)(L.Z,{name:eS?"chevUp":"chevDown",size:15,stroke:"currentColor"})]}),eS&&(0,o.jsx)(D.MD,{t:x,title:u("monitoringReport.filters.wcagVersion"),minWidth:210,radio:!0,onClose:()=>eR(!1),options:E.Qm.map(e=>({value:e,render:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(w.Z,{component:"span",sx:{fontSize:11,fontWeight:700,color:x.txt2,border:"1px solid ".concat(x.border),borderRadius:"5px",padding:"2px 8px",minWidth:42,textAlign:"center",flexShrink:0},children:e}
1),(0,o.jsxs)(w.Z,{component:"span",sx:{display:"flex",flexDirection:"column",lineHeight:1.3},children:[(0,o.jsxs)(w.Z,{component:"span",children:[u("monitoringReport.common.wcag")," ",e]}),(0,o.jsx)(w.Z,{component:"span",sx:{fontSize:11,color:x.txt4,fontWeight:500},children:"2.2"===e?u("monitoringReport.filters.allCriteria"):u("monitoringReport.filters.versionAndEarlier",{version:e})})]})]})})),isChecked:e=>ew===e,onToggle:e=>eZ(e)})]})]})]})]}),(0,o.jsx)(w.Z,{sx:{flex:1}}),(0,o.jsx)(w.Z,{component:"span",sx:{fontSize:13.5,fontWeight:600,color:x.primary,whiteSpace:"nowrap"},children:u("monitoringReport.filters.elementsFound",{count:tV})})]}),!et&&(0,o.jsxs)(w.Z,{className:"tnv-in",sx:{display:"flex",alignItems:"center",gap:"9px",marginBottom:"14px",flexWrap:"wrap"},children:[(0,o.jsx)(L.Z,{name:"list",size:18,stroke:x.txt2}),(0,o.jsx)(w.Z,{component:"span",sx:{fontSize:15,fontWeight:600,color:x.txt1},children:u("monitoringReport.scope.reportFor")}),"all"===eK?(0,o.jsx)(w.Z,{component:"span",sx:{fontSize:15,fontWeight:500,color:x.primary,wordBreak:"break-all"},children:t6}):(0,o.jsx)(D.QV,{t:x,url:t6,isMobile:f})]}),et?(0,o.jsx)(V.X1,{t:x,isTablet:b}):(0,o.jsxs)(w.Z,{className:"tnv-in",sx:{display:"flex",gap:"18px",flexDirection:b?"column":"row",alignItems:"flex-start",position:"relative"},children:[(0,o.jsx)(w.Z,{sx:{width:b?"100%":te?52:248,flexShrink:0,overflow:"hidden",position:"relative",zIndex:30,transition:b?"none":"width 0.34s cubic-bezier(0.4,0,0.2,1)"},children:!b&&te?(0,o.jsx)(w.Z,{component:"button",onClick:()=>tt(!1),"aria-label":u("monitoringReport.pagesNav.showPanel"),title:u("monitoringReport.pagesNav.showPages"),sx:{width:44,height:44,display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"10px",border:"1px solid ".concat(x.border),background:x.paper,color:x.primary,cursor:"pointer",transition:"background 0.15s ease, border-color 0.15s ease, color 0.15s ease",...(0,E.pz)(x)},children:(0,o.jsx)(L.Z,{name:"sidebar",size:18,stroke:"currentColor"})}):(0,o.jsxs)(w.Z,{component:"nav","aria-label":u("monitoringReport.pagesNav.reportNavigation"),sx:{width:b?"100%":248,background:b?x.paper:"transparent",border:b?"1px solid ".concat(x.border):"none",borderRadius:"10px",padding:b?"14px":0},children:[!b&&(0,o.jsxs)(w.Z,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"8px",marginBottom:"12px"},children:[(0,o.jsxs)(w.Z,{component:"span",sx:{display:"flex",alignItems:"center",gap:"7px",marginTop:"2px",fontSize:11,fontWeight:600,letterSpacing:"0.08em",textTransform:"uppercase",color:x.txt3},children:[(0,o.jsx)(L.Z,{name:"pages",size:18,stroke:x.txt3})," ",u("monitoringReport.pagesNav.pages")]}),(0,o.jsx)(w.Z,{component:"button",onClick:()=>tt(!0),"aria-label":u("monitoringReport.pagesNav.hidePanel"),title:u("monitoringReport.pagesNav.hidePanelTitle"),sx:{display:"flex",alignItems:"center",justifyContent:"center",width:28,height:28,borderRadius:"7px",border:"1px solid ".concat(x.border),background:"transparent",color:x.txt2,cursor:"pointer",transition:"background 0.15s ease, border-color 0.15s ease, color 0.15s ease",...(0,E.pz)(x)},children:(0,o.jsx)(L.Z,{name:"chevLeft",size:15,stroke:"currentColor"})})]}),b&&(0,o.jsxs)(w.Z,{component:"button",onClick:()=>e9(e=>!e),"aria-expanded":e7,sx:{display:"flex",width:"100%",alignItems:"center",justifyContent:"space-between",background:"transparent",border:"none",cursor:"pointer",color:x.txt2,fontSize:13,fontWeight:600,borderRadius:"7px",padding:"4px 2px",transition:"background 0.15s ease, color 0.15s ease",...(0,E.pz)(x)},children:[(0,o.jsxs)(w.Z,{component:"span",sx:{display:"flex",alignItems:"center",gap:"8px"},children:[(0,o.jsx)(L.Z,{name:"list",size:16,stroke:"currentColor"})," ",u("monitoringReport.pagesNav.browsePages")]}),(0,o.jsx)(L.Z,{name:e7?"chevUp":"chevDown",size:16,stroke:"currentColor"})]}),(!b||e7)&&(0,o.jsxs)(w.Z,{sx:{marginTop:b?"14px":0},children:[(0,o.jsx)(_,{t:x,tipLabel:u("monitoringReport.pagesNav.viewByIssuesTipTitle"),tipBody:u("monitoringReport.pagesNav.viewByIssuesTipBody"),children:u("monitoringReport.pagesNav.viewByIssues")}),(0,o.jsx)(G,{t:x,active:"all"===eK,activeFontWeight:500,onClick:()=>{eX("all"),e9(!1)},children:u("monitoringReport.scope.allPages")}),(0,o.jsx)(_,{t:x,style:{marginTop:6},tipLabel:u("monitoringReport.pagesNav.reportByPageTipTitle"),tipBody:u("monitoringReport.pagesNav.reportByPageTipBo
1dy"),children:u("monitoringReport.pagesNav.reportByPage")}),(0,o.jsxs)(w.Z,{sx:{display:"flex",alignItems:"center",gap:"8px",background:x.inputBg,border:"1px solid ".concat(x.border),borderRadius:"8px",padding:"7px 10px",margin:"0 4px 8px"},children:[(0,o.jsx)(L.Z,{name:"search",size:15,stroke:x.txt3}),(0,o.jsx)(w.Z,{component:"input",value:e2,onChange:e=>e5(e.target.value),placeholder:u("monitoringReport.pagesNav.searchPagesPlaceholder"),"aria-label":u("monitoringReport.pagesNav.searchPages"),sx:{flex:1,minWidth:0,border:"none",outline:"none",background:"transparent",color:x.txt1,fontWeight:500,fontSize:"13px !important","&::placeholder":{color:"".concat(x.placeholder," !important"),fontSize:"13px !important",fontWeight:400,opacity:1},"&::-webkit-input-placeholder":{color:"".concat(x.placeholder," !important"),fontSize:"13px !important",fontWeight:400,opacity:1},"&::-moz-placeholder":{color:"".concat(x.placeholder," !important"),fontSize:"13px !important",fontWeight:400,opacity:1}}})]}),0===t$.length?(0,o.jsx)(w.Z,{sx:{padding:"8px 12px",fontSize:12.5,color:x.txt4},children:u("monitoringReport.pagesNav.noPagesMatch")}):(0,o.jsx)(w.Z,{sx:{maxHeight:420,overflowY:"auto",overflowX:"hidden",paddingRight:"2px"},children:t$.map(e=>{let t=eK===e.url,n=e4.has(e.url);return(0,o.jsxs)(w.Z,{sx:{display:"flex",alignItems:"center",gap:"2px",marginBottom:"2px"},children:[(0,o.jsxs)(w.Z,{component:"button",onClick:()=>{eX(e.url),e9(!1)},"aria-current":t?"true":void 0,sx:{flex:1,minWidth:0,display:"flex",alignItems:"center",gap:"10px",padding:"9px 12px",borderRadius:"8px",textAlign:"left",cursor:"pointer",fontSize:13.5,fontWeight:t?600:400,color:t?x.primary:x.txt2,background:t?x.primarySoft:"transparent",border:"none",borderLeft:t?"2px solid ".concat(x.primary):"2px solid transparent"},children:[(0,o.jsx)(w.Z,{component:"span",sx:{width:6,height:6,borderRadius:"50%",flexShrink:0,background:t?x.primary:x.txt4}}),(0,o.jsx)(D.li,{t:x,label:e.displayUrl,onShow:e6,onHide:()=>e6(null),children:(0,o.jsx)(w.Z,{component:"span",dir:"ltr",sx:{display:"block",overflow:"hidden",textOverflow:"ellipsis",textAlign:"left"},children:e.displayPath})})]}),(0,o.jsx)(q,{t:x,tr:u,pinned:n,onClick:()=>tQ(e.url)})]},e.url)})})]})]})}),(0,o.jsx)(w.Z,{sx:{flex:1,minWidth:0,width:"100%"},"aria-busy":eo||tk||ty||eV||void 0,children:eo||tk||ty||eV?(0,o.jsx)(V.J4,{t:x,isMobile:f}):(0,o.jsx)(Q,{t:x,checks:tJ,search:e0,setSearch:e1,openIds:ti?[ti]:[],counts:tU,onOpen:t5,isMobile:f})})]}),(0,o.jsx)(ez,{t:x,check:t0,scope:eK,site:M,isLocal:A,device:es,isMobile:f,isShared:s,loadingViolations:!!ti&&tz&&tI!==ti&&tW!==ti,onClose:t3,violations:t2,solvedSet:tc,ignoredSet:tp,onSolve:tD,onIgnore:tP,onIgnoreOne:tH,onBulkStatus:tN,onScreenshot:e=>tg(e),screenshotUrls:tL,screenshotsLoading:tB,domain:$,monitorScanId:n,onAiFixLimitReached:p,accordion:ta,setAccordion:tl}),tu&&(0,o.jsx)(ep,{t:x,v:tu,onClose:()=>tg(null)}),th&&!s&&(0,o.jsx)(ex,{t:x,v:th,site:M,isLocal:A,onClose:()=>tm(null),onConfirm:tO}),(0,o.jsx)(D.VG,{t:x,tip:e3})]})})};var eV=n(88943);n(95600),n(25675);var eY=n(11169),e$=n(56997),eQ=n(97322),eK=n(49189);n(28022),n(95758);let eX=e=>{let{tone:t="primary",icon:n,label:r,onView:i,viewLabel:s,viewAriaLabel:a}=e,l=(0,E.Fc)(),c="warning"===t?l.warning:l.primary,d=(0,E.aJ)(c,l.dark?.16:.12),p=(0,E.aJ)(c,.35);return(0,o.jsxs)(w.Z,{role:"status",sx:{display:"inline-flex",alignItems:"center",gap:"8px",padding:"8px 14px",borderRadius:"999px",border:"1px solid ".concat(p),background:d,maxWidth:"100%",flexWrap:"wrap"},children:[(0,o.jsx)(L.Z,{name:n,size:16,stroke:c,"aria-hidden":"true"}),(0,o.jsx)(w.Z,{component:"span",sx:{fontSize:13,fontWeight:600,color:c,lineHeight:1.4},children:r}),(0,o.jsxs)(w.Z,{component:"button",type:"button",onClick:i,"aria-label":a||s,sx:{fontSize:13,fontWeight:600,color:c,background:"transparent",border:"none",padding:0,cursor:"pointer",lineHeight:1.4,"&:hover":{textDecoration:"underline"},"&:focus-visible":{outline:"2px solid ".concat(c),outlineOffset:2,borderRadius:"4px"}},children:["\xb7 ",s]})]})},e0=e=>{var t;let{wCAGReportSummaryData:n,defaultExpanded:r,minimized:i=!1,onMinimize:s,onExpand:a}=e,l=(0,E.Fc)(),{t:c}=(0,R.$G)(),[d,p]=(0,y.useState)(null==r||r),x=null==n?void 0:null===(t=n.widget)||void 0===t?void 0:t.provider,u={width:28,height:28,borderRadius:"7px",border:"none",background:"transparent",curs
1or:"pointer",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,lineHeight:0,p:0};return(0,o.jsxs)(w.Z,{children:[(0,o.jsx)(D.UO,{open:!i,children:(0,o.jsxs)(w.Z,{sx:{borderRadius:"12px",border:"1px solid ".concat((0,E.aJ)(l.primary,.4)),background:l.primarySoft,overflow:"hidden",position:"relative"},children:[(0,o.jsxs)(w.Z,{sx:{display:"flex",alignItems:"center",gap:"6px",padding:"11px 12px 11px 16px"},children:[(0,o.jsx)(L.Z,{name:"shield",size:22,stroke:l.primary}),(0,o.jsx)(w.Z,{component:"button",onClick:()=>p(e=>!e),"aria-expanded":d,sx:{flex:1,minWidth:0,textAlign:"left",background:"transparent",border:"none",cursor:"pointer",fontSize:14,fontWeight:700,color:l.primary},children:c("customerWidgetInfoBox.title")}),(0,o.jsx)(w.Z,{component:"button",onClick:()=>p(e=>!e),"aria-label":c(d?"customerWidgetInfoBox.collapse":"customerWidgetInfoBox.expand"),"aria-expanded":d,sx:u,children:(0,o.jsx)(L.Z,{name:d?"chevUp":"chevDown",size:17,stroke:l.primary})}),(0,o.jsx)(w.Z,{component:"button",onClick:s,"aria-label":c("customerWidgetInfoBox.dismiss"),sx:u,children:(0,o.jsx)(L.Z,{name:"x",size:15,stroke:l.txt3})})]}),(0,o.jsx)(D.UO,{open:d,children:(0,o.jsxs)(w.Z,{sx:{padding:"0 16px 15px 16px"},children:[(0,o.jsx)(w.Z,{component:"p",sx:{fontSize:13.5,lineHeight:1.6,color:l.txt2,margin:0},children:c("customerWidgetInfoBox.description")}),x&&""!==x&&(0,o.jsxs)(w.Z,{sx:{display:"flex",alignItems:"center",gap:"8px",marginTop:"12px",flexWrap:"wrap"},children:[(0,o.jsx)(w.Z,{component:"span",sx:{fontSize:12.5,color:l.txt3},children:c("customerWidgetInfoBox.detectedProvider")}),(0,o.jsxs)(w.Z,{component:"span",sx:{display:"inline-flex",alignItems:"center",gap:"6px",padding:"4px 11px",borderRadius:"7px",fontSize:12.5,fontWeight:700,color:l.primary,background:(0,E.aJ)(l.primary,l.dark?.2:.14)},children:[(0,o.jsx)(L.Z,{name:"shield",size:16,stroke:l.primary})," ",x]})]})]})})]})}),(0,o.jsx)(D.UO,{open:i,children:(0,o.jsx)(eX,{tone:"primary",icon:"checkCircle",label:c("customerWidgetInfoBox.minimizedBadge"),viewLabel:c("customerWidgetInfoBox.viewMinimized"),viewAriaLabel:c("customerWidgetInfoBox.viewMinimizedAria"),onView:()=>{null==a||a(),p(!0)}})})]})};var e1=n(55551),e2=n(63431),e5=n(75006),e3=n(50657),e6=n(6514),e4=n(19074);let e8=e=>{let{open:t,onClose:n,domainValue:r}=e,i=(0,Z.Z)(),s=(0,d.Z)(i.breakpoints.down("md"));return(0,o.jsxs)(e3.Z,{open:t,onClose:n,fullScreen:s,maxWidth:!1,scroll:"paper","aria-labelledby":"statistics-modal",PaperProps:{sx:{width:{xs:"100%",md:"1150px"},maxWidth:"95vw",maxHeight:"92vh",position:"relative",overflow:"visible",backgroundColor:i.palette.background.paper}},sx:{"& .MuiDialog-container":{alignItems:s?"stretch":"flex-start",pt:s?0:4}},children:[(0,o.jsx)(eK.Z,{onClick:n,sx:s?{top:16,right:16}:{zIndex:10}}),(0,o.jsx)(e6.Z,{sx:{p:3,overflowX:"hidden",overflowY:"auto",maxHeight:s?"none":"calc(92vh - 24px)"},children:(0,o.jsx)(e4.Z,{domainValue:r,embedded:!0})})]})};var e7=n(12421),e9=n(80070);let te=e=>{if(!e||"string"!=typeof e)return"";let t=e.trim(),n=/^https?:\/\//i.test(t)?t:"https://".concat(t);try{let e=new URL(n);return e.pathname=e.pathname.replace(/\/+$/,""),e.toString().toLowerCase()}catch(e){return n.toLowerCase()}},tt=e=>{if("string"!=typeof e||0===e.length)return e;try{return decodeURIComponent(e)}catch(t){return e}},tn=e=>{if(null==e?void 0:e.statusCode)return Number(e.statusCode);let t=String((null==e?void 0:e.errorTitle)||"").match(/\b(\d{3})\b/);return t?Number(t[1]):null},to={"@keyframes tnv-spin":{to:{transform:"rotate(360deg)"}},"@keyframes tnv-drop":{from:{opacity:0,transform:"translateY(-8px) scale(0.97)"},to:{opacity:1,transform:"translateY(0) scale(1)"}},"@keyframes tnv-drop-above":{from:{opacity:0,transform:"translateY(-100%) translateY(-8px) scale(0.97)"},to:{opacity:1,transform:"translateY(-100%) translateY(0) scale(1)"}},"@keyframes tnv-fade":{from:{opacity:0,transform:"translateY(4px)"},to:{opacity:1,transform:"translateY(0)"}}},tr=(e,t)=>{let n=(0,E.bG)(e),o=E.VX[e]?String(e):"unknown";return{...n,label:t("scanReport.scanIssues.status.".concat(o,".label")),fix:t("scanReport.scanIssues.status.".concat(o,".fix"))}},ti=e=>{let{fetchFailedPagesData:t=[],isTotalScanFailure:n=!1,domain:r="",localScan:i=!1,minimized:s=!1,onExpand:a}=e,l=(0,E.Fc)(),{t:c}=(0,R.$G)(),{openContactModal:d}=(0,e7.KS)(),[p,x]=(0,y.useState)(null),u=()=>d(),[g,h]=(0,y.useState)({}),{data:m=[]}=(0,e9.hT)({enabled:!!r}),f=(0,y.useMemo)(()=>{let e=m.find(e=>(e.domain||"").toLowerCase()===r.toLowerCase());return(null==e?void 0:e._id)||null},[m,r]),{data:b=[],isFetched:k}=(0,e9.BG)(f,{enabled:!!f,staleTime:0,refetchOnMount:!0}),j=(0,e9.bG)(),v=t||[];if(!v.length)return null;let Z=e=>{if(!f||!k)return;let t=te(e),n=b.find(e=>te(e.url)===t);return n?!1===n.selected?"skipped":void 0:"removed"},S=async(e,t)=>{if(g[e])return;if(!f||!(null==b?void 0:b.length)){es.C.error(c("scanReport.scanIssues.mapUnavailable"));return}let n=te(e),o=b.find(e=>te(e.url)===n);if(!o){es.C.error(c("scanReport.scanIssues.routeNotFound"));return}h(n=>
1({...n,[e]:"skip"===t?"skipping":"removing"}));let r="skip"===t?b.map(e=>te(e.url)===n?{...e,selected:!1}:e):b.filter(e=>te(e.url)!==n);try{await j.mutateAsync({mappingId:f,routes:r}),h(n=>({...n,[e]:"skip"===t?"skipped":"removed"}))}catch(n){h(t=>{let n={...t};return delete n[e],n}),es.C.error(c("skip"===t?"scanReport.scanIssues.skipFailed":"scanReport.scanIssues.removeFailed"))}};return(0,o.jsxs)(w.Z,{children:[(0,o.jsx)(B.Z,{styles:to}),(0,o.jsx)(D.UO,{open:!s,children:(0,o.jsxs)(w.Z,{sx:{background:l.paper,border:"1px solid ".concat(l.border),borderRadius:"8px",overflow:"hidden"},children:[(0,o.jsxs)(w.Z,{sx:{padding:"16px 18px 0"},children:[(0,o.jsxs)(w.Z,{sx:{display:"flex",alignItems:"center",gap:"7px",fontSize:15,fontWeight:700,color:l.txt1},children:[c(n?"scanReport.scanIssues.whatBlockedTheScan":"scanReport.scanIssuesReport"),(0,o.jsx)(D.Ch,{t:l,place:"bottom",label:c(n?"scanReport.scanIssues.whatBlockedTheScan":"scanReport.scanIssuesReport"),body:c("scanReport.scanIssuesReportDescription"),children:(0,o.jsx)(w.Z,{component:"span",sx:{display:"flex",cursor:"help"},children:(0,o.jsx)(L.Z,{name:"help",size:14,stroke:l.txt4})})})]}),(0,o.jsx)(w.Z,{sx:{fontSize:12.5,color:l.txt3,marginTop:"3px"},children:c(1===v.length?"scanReport.scanIssuesReportSubtitle":"scanReport.scanIssuesReportSubtitle_plural",{count:v.length})})]}),(0,o.jsx)(w.Z,{sx:{padding:"14px 12px 12px",display:"flex",flexDirection:"column",gap:"8px"},children:v.map((e,t)=>{let n=e.urlName||e.url||"",s=(0,z.KF)(n,r?"https://".concat(r):"",i),a=tn(e),d=tr(a,c),h="error"===d.tone?l.error:l.warning,m=p===t,b=g[n]||Z(n),j="skipping"===b||"removing"===b,y="skipped"===b||"removed"===b,v=!g[n]&&!!f&&!k;return(0,o.jsxs)(w.Z,{sx:{border:"1px solid ".concat(y?l.divider:l.border),borderRadius:"10px",overflow:"hidden",background:y?l.dark?"rgba(255,255,255,0.02)":"rgba(0,0,0,0.015)":"transparent"},children:[(0,o.jsxs)(w.Z,{sx:{display:"flex",alignItems:"center",gap:"8px",padding:"8px 10px 8px 14px",flexWrap:"wrap"},children:[(0,o.jsxs)(w.Z,{component:"button",onClick:()=>x(m?null:t),"aria-expanded":m,sx:{flex:1,minWidth:150,display:"flex",alignItems:"center",gap:"12px",padding:"4px 0",background:"transparent",border:"none",cursor:"pointer",textAlign:"left",flexWrap:"wrap",opacity:y?.6:1},children:[(0,o.jsxs)(w.Z,{component:"span",sx:{display:"inline-flex",alignItems:"center",gap:"6px",padding:"4px 10px",borderRadius:"7px",fontSize:12,fontWeight:700,color:h,background:(0,E.aJ)(h,.16),whiteSpace:"nowrap"},children:[(0,o.jsx)(L.Z,{name:"alertCircle",size:13,stroke:h})," ",a?"".concat(a," "):"",d.label]}),(0,o.jsx)(w.Z,{component:"span",dir:"ltr",sx:{flex:1,minWidth:120,fontSize:13,color:l.txt2,wordBreak:"break-all",textAlign:"left",textDecoration:y?"line-through":"none"},children:tt(s)})]}),v?(0,o.jsx)(w.Z,{component:"span",sx:{display:"inline-flex",alignItems:"center",padding:"5px 10px",borderRadius:"7px",background:l.divider,flexShrink:0},children:(0,o.jsx)(D.$j,{t:l,color:l.txt3,size:12})}):"removed"===b?(0,o.jsxs)(w.Z,{component:"span",sx:{display:"inline-flex",alignItems:"center",gap:"5px",fontSize:11.5,fontWeight:600,color:l.error,background:l.errorSoft,borderRadius:"7px",padding:"5px 10px",whiteSpace:"nowrap",flexShrink:0},children:[(0,o.jsx)(L.Z,{name:"checkCircle",size:13,stroke:l.error})," Removed from mapping"]}):"skipped"===b?(0,o.jsxs)(w.Z,{component:"span",sx:{display:"inline-flex",alignItems:"center",gap:"5px",fontSize:11.5,fontWeight:600,color:l.success,background:l.successSoft,borderRadius:"7px",padding:"5px 10px",whiteSpace:"nowrap",flexShrink:0},children:[(0,o.jsx)(L.Z,{name:"checkCircle",size:13,stroke:l.success})," ",c("scanReport.scanIssues.wontBeScanned")]}):(0,o.jsxs)(w.Z,{component:"span",sx:{display:"inline-flex",alignItems:"center",gap:"6px",flexShrink:0},children:[(0,o.jsx)(D.O1,{t:l,label:c("scanReport.scanIssues.skipTooltipLabel"),body:c("scanReport.scanIssues.skipTooltipBody"),children:(0,o.jsx)(w.Z,{component:"button",onClick:()=>S(n,"skip"),disabled:j,"aria-label":c("scanReport.scanIssues.skipAriaLabel",{url:s}),sx:{display:"flex",alignItems:"center",gap:"6px",padding:"6px 11px",borderRadius:"7px",cursor:j?"default":"pointer",minWidth:78,justifyContent:"center",border:"1px solid ".concat(l.border),background:"transparent",color:l.txt2,fontSize:12,fontWeight:600,opacity:"removing"===b?.5:1},children:"skipping"===b?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(D.$j,{t:l,color:l.txt2,size:13})," ",c("scanReport.scanIssues.skipping")]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(L.Z,{name:"eyeOff",size:13,stroke:l.txt2})," ",c("scanReport.scanIssues.skip")]})})}),(0,o.jsx)(D.O1,{t:l,label:c("scanReport.scanIssues.removeTooltipLabel"),body:c("scanReport.scanIssues.removeTooltipBody"),children:(0,o.jsx)(w.Z,{component:"button",onClick:()=>S(n,"remove"),disabled:j,"aria-label":c("scanReport.scanIssues.removeAriaLabel",{url:s}),sx:{display:"flex",alignItems:"center",gap:"6px",padding:"6px 11px",borderRadius:"7px",cursor:j?"default":"pointer",minWidth:92,justifyContent:"center",border:"1px solid ".concat((0,E.aJ)(l.error,.4)),background:"transparent",color:l.error,fontSize:12,fontWeight:600,opacity:"skipping"===b?.5:1},children:"removing"===b?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(D.$j,{t:l,color:l.error,size:13})," ",c("scanReport.scanIssues.removing")]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(L.Z,{name:"x",size:13,stroke:l.error})," ",c("scanReport.scanIssues.remove")]})})})]}),(0,o.jsx)(w.Z,{component:"button",onClick:()=>x(m?null:t),"aria-label":m?c("scanReport.scanIssues.collapseGuidance"):c("scanReport.scanIssues.expandGuidance"),"aria-expanded":m,sx:{dis
1play:"flex",alignItems:"center",justifyContent:"center",width:28,height:28,borderRadius:"7px",border:"none",background:"transparent",cursor:"pointer",flexShrink:0},children:(0,o.jsx)(L.Z,{name:m?"chevUp":"chevDown",size:16,stroke:l.txt3})})]}),(0,o.jsx)(D.UO,{open:m,children:(0,o.jsxs)(w.Z,{sx:{padding:"0 14px 14px 14px",display:"flex",gap:"9px"},children:[(0,o.jsx)(L.Z,{name:"help",size:15,stroke:h,style:{marginTop:2,flexShrink:0}}),(0,o.jsxs)(w.Z,{component:"span",sx:{fontSize:13,lineHeight:1.6,color:l.txt2},children:[d.fix,d.internal&&(0,o.jsxs)(o.Fragment,{children:[" ",(0,o.jsx)(w.Z,{component:"button",type:"button",onClick:u,sx:{color:l.primary,fontWeight:600,textDecoration:"none",background:"none",border:"none",padding:0,cursor:"pointer",font:"inherit"},children:c("scanReport.scanIssues.contactSupport")}),"."]})]})]})})]},t)})}),n&&(0,o.jsxs)(w.Z,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:2,flexWrap:"wrap",padding:"16px 18px",borderTop:"1px solid ".concat(l.divider),background:l.paper2},children:[(0,o.jsxs)(w.Z,{sx:{display:"flex",alignItems:"flex-start",gap:2,flex:1,minWidth:220},children:[(0,o.jsx)(w.Z,{sx:{width:36,height:36,borderRadius:1,flexShrink:0,display:"grid",placeItems:"center",background:(0,E.aJ)(l.primary,l.dark?.2:.12)},children:(0,o.jsx)(L.Z,{name:"lifesaver",size:18,stroke:l.primary})}),(0,o.jsxs)(w.Z,{children:[(0,o.jsx)(w.Z,{component:"p",sx:{fontSize:14,fontWeight:700,color:l.txt1,margin:"0 0 4px"},children:c("scanReport.totalFail.stillStuckTitle")}),(0,o.jsx)(w.Z,{component:"p",sx:{fontSize:13,lineHeight:1.55,color:l.txt3,margin:0},children:c("scanReport.totalFail.stillStuckBody")})]})]}),(0,o.jsxs)(w.Z,{component:"button",type:"button",onClick:u,sx:{display:"inline-flex",alignItems:"center",gap:1,padding:"10px 18px",borderRadius:1,border:"none",background:l.primaryBtn,color:l.onPrimary,fontSize:13,fontWeight:600,cursor:"pointer",flexShrink:0,whiteSpace:"nowrap"},children:[(0,o.jsx)(L.Z,{name:"lifesaver",size:16,stroke:l.onPrimary}),c("scanReport.totalFail.contactSupport")]})]})]})}),(0,o.jsx)(D.UO,{open:s,children:(0,o.jsx)(eX,{tone:"warning",icon:"alert",label:c(1===v.length?"scanReport.scanIssuesMinimizedBadge":"scanReport.scanIssuesMinimizedBadge_plural",{count:v.length}),viewLabel:c("scanReport.viewMinimized"),viewAriaLabel:c("scanReport.scanIssues.viewMinimizedAria"),onView:a})})]})};var ts=n(47640),ta=n(28756),tl=n(59746),tc=n(70728),td=n(56);(0,f.Z)({breakpoints:{values:{wide:1700}}});let tp=e=>{var t,n,f,b,v,C,I,W,M,F,A;let{token:B}=e,L=(0,i.I0)(),E=(0,l.useRouter)(),D=(0,c.useSearchParams)(),P=(0,Z.Z)(),N=(0,d.Z)(P.breakpoints.down("sm"));(0,d.Z)("(min-width:1612px)");let H=null===(t=E.query)||void 0===t?void 0:t.scanReportId,O=D.get("scanReportId")||H||(0,e$.gr)(),U=D.get("x-api-key"),_=D.get("pageResultId")||"",{t:G}=(0,R.$G)(),{scanReportId:q,tokenCreated:J,reportData:V,isLoading:Y}=(0,eY.w8)(O,B,U),$=q||O,Q=(0,i.v9)(e=>e.monitorScanReducer.currentScan),K=(0,i.v9)(e=>e.monitorScanReducer.closedAlerts),X=(0,i.v9)(e=>e.monitorScanReducer.closedCustWidgetBoxes),ee=null!==(M=null!==(W=null==V?void 0:V.failedPagesData)&&void 0!==W?W:null==Q?void 0:Q.failedPagesData)&&void 0!==M?M:[],et=null!==(A=null!==(F=null==V?void 0:V.reportData)&&void 0!==F?F:null==Q?void 0:Q.reportData)&&void 0!==A?A:[],en=!!$&&(K[$]||(0,e$.W7)($,e$.wB)),eo=!!$&&(X[$]||(0,e$.W7)($,e$.AX)),[er,ei]=(0,y.useState)(en),[ea,el]=(0,y.useState)(eo),[ec,ed]=(0,y.useState)(!1),[ep,ex]=(0,y.useState)(_||""),eu=(0,S.Z)(),[eg,eh]=(0,y.useState)(!1),[em,ef]=(0,y.useState)(!1),[eb,ek]=(0,y.useState)(!1),[ej,ey]=(0,y.useState)(!1),ev=(0,y.useRef)(null),{settings:ew}=(0,ta.r)(),eZ=(0,tl.ay)(null==ew?void 0:ew.mode),{openUpgradeLimitModal:eS}=(0,ts.Me)(),{data:eR}=(0,e2.ue)(),eC=()=>{eh(!1)},eI=()=>{eh(!0)},ez=()=>{ef(!1)},eW=(0,eY.oT)(),[eM,eF]=(0,y.useState)(null),[eA,eT]=(0,y.useState)(!1),eB=(0,y.useRef)(!1),eL=(0,y.useRef)(0),eE=(0,y.useRef)(null),eD=(0,y.useRef)(!1);eB.current=eA;let eP=(0,eY.tp)(eM,!!eM),eN=()=>{eB.current||ey(e=>!e)},eH=()=>{eB.current||ey(!1)};(0,y.useEffect)(()=>{if(!ej)return;let e=e=>{eB.current||!ev.current||ev.current.contains(e.target)||ey(!1)},t=e=>{eB.current||"Escape"!==e.key||ey(!1)};return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)}},[ej]);let eO=()=>{eH(),ef(!0)},eG=e=>{let t=document.createElement("a");t.href=e,t.rel="noopener",document.body.appendChild(t),t.click(),t.remove()},eq=e=>{if(eD.current)return;eD.current=!0,eF(null);let t=Date.now()-eL.current;clearTimeout(eE.current),eE.current=setTimeout(()=>{e(),eT(!1),ey(!1),eE.current=null},Math.max(0,3e3-t))};(0,y.useEffect)(()=>()=>{clearTimeout(eE.current)},[]),(0,y.useEffect)(()=>
1{if(!eM)return;let e=eP.data;if((null==e?void 0:e.ready)&&(null==e?void 0:e.downloadUrl)){let t=e.downloadUrl;eq(()=>{eG(t),es.C.success(G("scanReport.exportCsv.successMessage"))})}else(null==e?void 0:e.status)==="failed"&&eq(()=>{es.C.error(G("scanReport.exportCsv.failedMessage"))})},[eP.data,eM,G]);let eK=()=>{$&&!eA&&(clearTimeout(eE.current),eD.current=!1,eL.current=Date.now(),eT(!0),ey(!0),eW.mutate({scanId:$},{onSuccess:e=>{if((null==e?void 0:e.ready)&&(null==e?void 0:e.downloadUrl)){let t=e.downloadUrl;eq(()=>{eG(t),es.C.success(G("scanReport.exportCsv.successMessage"))})}else eF($)},onError:()=>{eq(()=>{es.C.error(G("scanReport.exportCsv.errorMessage"))})}}))},eX=(0,i.v9)(e=>e.monitorScanReducer.scans),e3=D.get("domain")||"",e6=(0,y.useMemo)(()=>$&&Array.isArray(eX)&&eX.find(e=>(null==e?void 0:e._id)===$||String(null==e?void 0:e._id)===String($))||null,[eX,$]),e4="string"==typeof(null==e6?void 0:e6.domain)?e6.domain:"",e7=(0,z.b)(null==V?void 0:null===(n=V.wCAGReportSummaryData)||void 0===n?void 0:n.source)||(0,z.b)(null==e6?void 0:e6.source),e9=(0,y.useMemo)(()=>{var e;let t=(null==V?void 0:null===(e=V.wCAGReportSummaryData)||void 0===e?void 0:e.domain)||e4||e3||"";return t?"/monitor/scans-settings?domain=".concat(encodeURIComponent(t)):"/monitor/scans-settings"},[V,e4,e3]),te=(null==V?void 0:null===(f=V.wCAGReportSummaryData)||void 0===f?void 0:f.domain)||e4||e3||"";(0,y.useEffect)(()=>{$&&L((0,e_.Rb)({monitorScanId:$,xApiKey:U,token:B}))},[L,$,U,B]),(0,y.useEffect)(()=>{_&&ex(_)},[_]);let tt=()=>{$&&L((0,e$.Yu)($)),ei(!0)},tn=()=>{$&&L((0,e$.AW)($)),ei(!1)},to=()=>{$&&L((0,e$.Ef)($)),el(!0)},tr=()=>{$&&L((0,e$.Lz)($)),el(!1)};if((0,y.useEffect)(()=>{ei(en)},[$,en]),(0,y.useEffect)(()=>{el(eo)},[$,eo]),Y||!V)return(0,o.jsx)(eV.Z,{monitoringHref:e9,scanReportId:$,isShared:!!B});let tp=et.length>0||(null==V?void 0:null===(b=V.reportData)||void 0===b?void 0:b.length)>0,tx=ee.length>0&&!tp,tu=(e=>{if(!ee.length)return null;let t=!e,n=ee.every(e=>500===e.statusCode||e.errorTitle&&e.errorTitle.includes("500")),o=t?{...eu.errorLight,fontWeight:500,fontSize:"1rem"}:{...eu.warningLight,fontWeight:500,fontSize:"1rem"},r="",i="";return n&&!e?(r=G("scanReport.serverErrorsDetected"),i=G("scanReport.serverErrorsMessage")):e?(r=G("scanReport.unscannedPagesIdentified"),i=G("scanReport.unscannedPagesMessage",{count:ee.length})):(r=G("scanReport.scanCouldNotBeCompleted"),i=G("scanReport.scanFailedMessage")),{title:r,message:i,styles:o,isTotalFail:t}})(tp),tg="dark"===P.palette.mode?"rgba(255,255,255,0.22)":"rgba(47, 43, 61, 0.2)",th={width:36,height:36,border:"1px solid ".concat(tg),backgroundColor:"dark"===P.palette.mode?"rgba(255, 255, 255, 0.05)":"rgba(47, 43, 61, 0.05)",color:"dark"===P.palette.mode?"#E8EAF6":P.palette.text.primary,"&:hover":{backgroundColor:"dark"===P.palette.mode?"rgba(255, 255, 255, 0.08)":"rgba(47, 43, 61, 0.08)",borderColor:"dark"===P.palette.mode?"rgba(255,255,255,0.32)":"rgba(47, 43, 61, 0.32)"}},tm={width:36,height:36,border:"none",backgroundColor:"dark"===P.palette.mode?"rgb(207, 171, 255)":P.palette.primary.main,color:"dark"===P.palette.mode?"#170B28":P.palette.primary.contrastText,"&:hover":{backgroundColor:"dark"===P.palette.mode?"rgb(207, 171, 255)":P.palette.primary.main,opacity:.9}},tf="dark"===P.palette.mode,tb={componentsProps:{tooltip:{sx:{bgcolor:tf?"#E8EAF6":"#12101E",color:tf?"#222530":"#FFFFFF",borderRadius:"8px",boxShadow:"0 8px 22px rgba(0,0,0,0.4)",fontSize:12,fontWeight:600,px:"10px",py:"6px"}}}};return(0,o.jsxs)(a.Z,{sx:{p:B?3:0,margin:"auto auto",maxWidth:"1800px"},children:[(0,o.jsx)(s.Z,{children:(0,o.jsxs)(r.ZP,{container:!0,spacing:6,sx:{"& > .MuiGrid-item":{pt:"".concat("13px"," !important")}},children:[(0,o.jsx)(r.ZP,{className:"no-print",item:!0,xs:12,lg:12,sx:{mt:B?3:0},children:(0,o.jsxs)(w.Z,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",gap:2},children:[(0,o.jsxs)(w.Z,{component:"nav",className:"no-print","aria-label":"breadcrumb",sx:{display:"flex",alignItems:"center",gap:1.5,flexWrap:"wrap"},children:[(0,o.jsx)(p.Z,{component:k(),href:e9,variant:"body1",sx:{textDecoration:"none",color:P.palette.text.secondary,fontSize:13,fontWeight:400,"&:hover":{color:P.palette.text.primary}},children:G("navigation.menu.monitor.title")}),(0,o.jsx)(eQ.Z,{size:16,style:{color:P.palette.text.secondary,flexShrink:0},role:"img","aria-hidden":"true"}),(0,o.jsx)(p.Z,{variant:"body1",sx:{color:P.palette.text.primary,fontSize:13,fontWeight:600},children:G("notifications.links.reportSummary")}
1),te&&(0,o.jsxs)(w.Z,{component:k(),href:"https://".concat(te),target:"_blank",rel:"noopener noreferrer","aria-label":G("monitoringReport.checkWindow.openInNewTab",{url:te}),sx:{display:"inline-flex",alignItems:"center",gap:1,ml:.5,px:2,py:.75,borderRadius:"6px",backgroundColor:eu.primaryLight.backgroundColor,textDecoration:"none",color:eu.primaryLight.color,fontSize:13,fontWeight:400,"&:hover":{backgroundColor:"dark"===P.palette.mode?"#FFFFFF1F":"#8e56df33"}},children:[(0,o.jsx)(j.Z,{icon:"tabler:link",fontSize:13,color:eu.primaryLight.color}),te,(0,o.jsx)(j.Z,{icon:"tabler:external-link",fontSize:14,color:eu.primaryLight.color})]})]}),J&&(0,o.jsxs)(w.Z,{sx:{display:"flex",gap:2,alignItems:"center"},children:[(0,o.jsx)(x.Z,{title:G("scanReport.options.statistics"),...tb,children:(0,o.jsx)(u.Z,{onClick:()=>ek(!0),"aria-label":G("scanReport.options.statistics"),sx:th,children:(0,o.jsxs)(w.Z,{component:"svg",width:16,height:16,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",sx:{flexShrink:0},children:[(0,o.jsx)("path",{d:"M5 20V11"}),(0,o.jsx)("path",{d:"M10 20V5"}),(0,o.jsx)("path",{d:"M15 20v-7"}),(0,o.jsx)("path",{d:"M20 20V8"}),(0,o.jsx)("path",{d:"M4 20h16"})]})})}),(0,o.jsxs)(w.Z,{ref:ev,sx:{position:"relative"},children:[(0,o.jsx)(x.Z,{title:G("scanReport.options.shareReport"),...tb,children:(0,o.jsx)(u.Z,{onClick:eN,"aria-label":G("scanReport.options.shareReport"),"aria-haspopup":"menu","aria-expanded":ej,sx:th,children:(0,o.jsx)(j.Z,{icon:"tabler:share",fontSize:18})})}),ej&&(0,o.jsxs)(tc.Z,{tokens:eZ,width:190,children:[(0,o.jsx)(td.h,{tokens:eZ,label:G("scanReport.options.shareAsLink"),onClick:eO,icon:(0,o.jsx)(j.Z,{icon:"tabler:link",fontSize:17,color:eZ.txt3})}),(0,o.jsx)(td.h,{tokens:eZ,label:eA?G("scanReport.exportCsv.loadingMessage","Exporting CSV..."):G("scanReport.options.exportCsv"),onClick:eK,icon:eA?(0,o.jsx)(g.Z,{size:14,thickness:4,sx:{color:eZ.txt3}}):(0,o.jsx)(j.Z,{icon:"tabler:file-type-csv",fontSize:17,color:eZ.txt3})})]})]}),(0,o.jsx)(x.Z,{title:G("scanReport.options.scanAgain"),...tb,children:(0,o.jsx)(u.Z,{onClick:eI,"aria-label":G("scanReport.options.scanAgain"),sx:tm,children:(0,o.jsx)(j.Z,{icon:"tabler:search",fontSize:18})})})]})]})}),tu&&!B&&!en&&(0,o.jsx)(r.ZP,{item:!0,xs:12,lg:12,children:(0,o.jsxs)(h.Z,{severity:tu.isTotalFail?"error":"warning",sx:{border:"1px solid ".concat(tu.isTotalFail?eu.errorLight.color:eu.warningLight.color),...tu.styles,"& .MuiAlert-icon":{p:0,mr:2.5,backgroundColor:"transparent"}},action:(0,o.jsx)(u.Z,{onClick:tt,color:tu.isTotalFail?"error":"warning",children:(0,o.jsx)(j.Z,{icon:"tabler:x",fontSize:"2.5rem",sx:{mb:2}})}),icon:(0,o.jsx)(w.Z,{component:"span",sx:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:40,height:40,borderRadius:1,backgroundColor:tu.isTotalFail?"rgba(249, 154, 154, 0.22)":"rgba(255, 194, 133, 0.22)",color:tu.isTotalFail?eu.errorLight.color:eu.warningLight.color},children:(0,o.jsx)(j.Z,{icon:tu.isTotalFail?"tabler:circle-x":"tabler:alert-triangle",fontSize:"28px",color:"inherit"})}),children:[(0,o.jsx)(m.Z,{children:(0,o.jsxs)(w.Z,{sx:{display:"flex",alignItems:"center",gap:1.5,flexWrap:"wrap"},children:[(0,o.jsx)(p.Z,{sx:{...tu.styles,fontWeight:500,fontSize:"15px"},children:tu.title}),tu.isTotalFail&&(0,o.jsx)(w.Z,{component:"span",sx:{fontSize:11,fontWeight:700,letterSpacing:"0.04em",textTransform:"uppercase",color:eu.errorLight.color,border:"1px solid ".concat(eu.errorLight.color),borderRadius:"20px",px:1.5,py:.25,lineHeight:1.4},children:G("scanReport.totalFail.actionNeeded")})]})}),(0,o.jsx)(p.Z,{sx:{...tu.styles,fontWeight:400,fontSize:"13px",color:"dark"===P.palette.mode?"rgba(255, 255, 255, 0.85)":"rgba(18, 16, 30, 0.85)"},children:tu.message})]})}),ee.length>0&&!B&&(0,o.jsx)(r.ZP,{item:!0,xs:12,lg:12,children:(0,o.jsx)(ti,{fetchFailedPagesData:ee,isTotalScanFailure:tx,domain:te,localScan:e7,minimized:er,onExpand:tn})}),!tx&&V.enabledCustWidgetBox&&(0,o.jsx)(r.ZP,{item:!0,xs:12,lg:12,children:(0,o.jsx)(e0,{wCAGReportSummaryData:V.wCAGReportSummaryData,defaultExpanded:V.expandCustWidgetBox,minimized:ea,onMinimize:to,onExpand:tr})}),!tx&&(0,o.jsx)(r.ZP,{item:!0,xs:12,children:(0,o.jsx)(T,{failedPagesData:ee,localScan:e7,wCAGReportSummaryData:V.wCAGReportSummaryData,token:J,reportData:V.reportData,accessProgressTrackerDataBackend:V.accessProgressTrackerData,accessProgressTrackerData:V.accessProgressTrackerData})}),(et.length>0||(null==V?void 0:null===(v=V.reportData)||void 0===v?void 0:v.length)>0)&&(0,o.jsx)(r.ZP,{item:!0,xs:12,lg:12,children:(0,o.jsx)(eU.w,{children:(0,o.jsx)(eJ,{reportData:V,scanReportId:q||O,isShared:!!B,token:B,isMobileView:N,localScan:e7,onAiFixLimitReached:()=>eS("aiFix")})})})]})}),(0,o.jsx)(e1.Z,{open:eg,onClose:eC,domain:null==V?void 0:null===(C=V.wCAGReportSummaryData)||void 0===C?void 0:C.domain,currentPlanData:eR,onMapNewDomain:()=>{eC(),E.push("/monitor/scans-settings?addDomain=true")}}),(0,o.jsx)(e5.Z,{open:em,onClose:ez,token:J}),(0,o.jsx)(e8,{open:eb,onClose:()=>ek(!1),domainValue:null==V?void 0:null===(I=V.wCAGReportSummaryData)||void 0===I?void 0:I.domain})]})};var tx=tp},80376:function(e,t,n){n.d(t,{J4:function(){return l},X1:function(){return c}});var o=n(85893),r=n(87357),i=n(98396),s=n(46828);function a(e){let{t,isTablet:n}=e;return(0,o.jsxs)(r.Z,{"aria-hidden":"true",children:[(0,o.jsx)(s._q,{dark:t.dark}),(0,o.jsx)(r.Z,{className:"tnv-sk-onbg",sx:{width:360,maxWidth:"70%",height:40,borderRadius:"8px",margin:"18px 0"}}),(0,o.jsx)(r.Z,{className:"tnv-sk-onbg",sx:{width:240,height:18,marginBottom:"14px"}}),(0,o.jsxs)(r.Z,{sx:{display:"flex",gap:"18px",flexDirection:n?"column":"row"},children:[!n&&(0,o.jsx)(r.Z,{sx:{width:240,flexShrink:0},children:Array.from({length:7},(e,t)=>(0,o.jsx)(r.Z,{className:"tnv-sk-onbg",sx:{width:"85%",height:12,marginBottom:"18px"}},t))}),(0,o.jsxs)(r.Z,{sx:{flex:1,background:t.paper,border:"1px solid ".concat(t.border),borderRadius:"10px",padding:"18px"},children:[(0,o.jsx)(r.Z,{className:"tnv-sk",sx:{width:"100%",height:40,borderRadius:"8px",marginBottom:"18px"}}),Array.from({length:6},(e,t)=>(0,o.jsxs)(r.Z,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:"14px",marginBottom:"16
1px"},children:[(0,o.jsx)(r.Z,{className:"tnv-sk",sx:{flex:1,height:14}}),(0,o.jsx)(r.Z,{className:"tnv-sk",sx:{width:150,height:28,borderRadius:"8px",flexShrink:0}})]},t))]})]})]})}function l(e){let{t,isMobile:n}=e;return(0,o.jsxs)(r.Z,{"aria-hidden":"true",sx:{width:"100%",border:"1px solid ".concat(t.border),borderRadius:"10px",overflow:"hidden"},children:[(0,o.jsx)(s._q,{dark:t.dark}),(0,o.jsx)(r.Z,{sx:{padding:n?"12px":"12px 16px",borderBottom:"1px solid ".concat(t.divider)},children:(0,o.jsx)(r.Z,{className:"tnv-sk",sx:{width:"100%",maxWidth:380,height:36,borderRadius:"8px"}})}),Array.from({length:8},(e,i)=>(0,o.jsxs)(r.Z,{sx:{display:"flex",alignItems:"center",gap:"12px",padding:n?"13px 14px":"14px 20px",background:t.paper2,borderBottom:"1px solid ".concat(t.divider),borderLeft:"3px solid ".concat(t.border)},children:[(0,o.jsx)(r.Z,{className:"tnv-sk",sx:{width:34,height:34,borderRadius:"9px",flexShrink:0}}),(0,o.jsxs)(r.Z,{sx:{flex:1},children:[(0,o.jsx)(r.Z,{className:"tnv-sk",sx:{width:"42%",maxWidth:190,height:13,marginBottom:"7px"}}),(0,o.jsx)(r.Z,{className:"tnv-sk",sx:{width:"28%",maxWidth:130,height:9}})]}),(0,o.jsx)(r.Z,{className:"tnv-sk",sx:{width:74,height:16,borderRadius:"6px",flexShrink:0}}),(0,o.jsx)(r.Z,{className:"tnv-sk",sx:{width:18,height:18,borderRadius:"5px",flexShrink:0}})]},i))]})}function c(e){let{t,isTablet:n}=e;return(0,o.jsx)(a,{t:t,isTablet:n})}let d=()=>{let e=(0,i.Z)("(max-width:1080px)"),{t}=(0,s.zH)();return(0,o.jsx)(a,{t:t,isTablet:e})};t.ZP=d},88943:function(e,t,n){var o=n(85893),r=n(86886),i=n(87357),s=n(15861),a=n(2734),l=n(41664),c=n.n(l),d=n(97322),p=n(6734),x=n(42203),u=n(90215),g=n(85985),h=n(80376),m=n(46828);let f=e=>{let{monitoringHref:t="/monitor/scans-settings",isShared:n=!1}=e,l=(0,a.Z)(),{t:f}=(0,p.$G)(),{dark:b}=(0,m.zH)();return(0,o.jsxs)(u.Z,{sx:{p:n?3:0,margin:"auto auto",maxWidth:"1800px"},children:[(0,o.jsx)(m._q,{dark:b}),(0,o.jsx)(x.Z,{children:(0,o.jsxs)(r.ZP,{container:!0,spacing:6,sx:{"& > .MuiGrid-item":{pt:"".concat("10px"," !important")}},children:[(0,o.jsx)(r.ZP,{className:"no-print",item:!0,xs:12,lg:12,sx:{mt:n?3:0},children:(0,o.jsxs)(i.Z,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",gap:2},children:[(0,o.jsxs)(i.Z,{component:"nav","aria-label":"breadcrumb",sx:{display:"flex",alignItems:"center",gap:1.5,flexWrap:"wrap"},children:[(0,o.jsx)(s.Z,{component:c(),href:t,variant:"body1",sx:{textDecoration:"none",color:l.palette.text.secondary,fontSize:13,fontWeight:400,"&:hover":{color:l.palette.text.primary}},children:f("navigation.menu.monitor.title")}),(0,o.jsx)(d.Z,{size:16,style:{color:l.palette.text.secondary,flexShrink:0},role:"img","aria-hidden":"true"}),(0,o.jsx)(s.Z,{variant:"body1",sx:{color:l.palette.text.primary,fontSize:13,fontWeight:600},children:f("notifications.links.reportSummary")}),(0,o.jsx)(i.Z,{className:"tnv-sk",sx:{ml:.5,width:168,height:30,borderRadius:"6px"}})]}),(0,o.jsxs)(i.Z,{sx:{display:"flex",gap:3,alignItems:"center"},children:[(0,o.jsx)(i.Z,{className:"tnv-sk",sx:{width:33,height:33,borderRadius:"50%"}}),(0,o.jsx)(i.Z,{className:"tnv-sk",sx:{width:33,height:33,borderRadius:"50%"}}),(0,o.jsx)(i.Z,{className:"tnv-sk",sx:{width:33,height:33,borderRadius:"50%"}})]})]})}),(0,o.jsx)(r.ZP,{item:!0,xs:12,children:(0,o.jsx)(g.b,{})}),(0,o.jsx)(r.ZP,{item:!0,xs:12,lg:12,children:(0,o.jsx)(h.ZP,{})})]})})]})};t.Z=f},85985:function(e,t,n){n.d(t,{b:function(){return l}});var o=n(85893),r=n(87357),i=n(66242),s=n(46828);function a(e){let{t}=e;return(0,o.jsxs)(r.Z,{sx:{background:t.paper,borderRadius:"10px",padding:"22px 28px",border:"1px solid ".concat(t.border)},children:[(0,o.jsx)(s._q,{dark:t.dark}),(0,o.jsxs)(r.Z,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:"24px",flexWrap:"wrap"},children:[(0,o.jsxs)(r.Z,{sx:{flex:1,minWidth:200},children:[(0,o.jsx)(r.Z,{className:"tnv-sk",sx:{width:"70%",maxWidth:230,height:22,marginBottom:"8px"}}),(0,o.jsx)(r.Z,{className:"tnv-sk",sx:{width:"50%",maxWidth:170,height:11,marginBottom:"26px"}}),(0,o.jsx)(r.Z,{className:"tnv-sk",sx:{width:64,height:42,marginBottom:"6px"}}),(0,o.jsx)(r.Z,{className:"tnv-sk",sx:{width:110,height:11,marginBottom:"20px"}}),(0,o.jsx)(r.Z,{sx:{height:1,background:t.divider,marginBottom:"14px"}}),(0,o.jsxs)(r.Z,{sx:{display:"flex",gap:"16px",flexWrap:"wrap"},children:[(0,o.jsx)(r.Z,{className:"tnv-sk",sx:{width:130,height:11}}),(0,o.jsx)(r.Z,{className:"tnv-sk",sx:{width:130,height:11}})]})]}),(0,o.jsx)(r.Z,{className:"tnv-sk",sx:{width:174,height:174,borderRadius:"50%",flexShrink:0}})]})]})}function l(){let{t:e}=(0,s.zH)();return(0,o.jsx)(i.Z,{sx:{height:"100%"},children:(0,o.jsx)(a,{t:e})})}},46828:function(e,t,n){n.d(t,{_q:function(){return s},zH:function(){return i}});var o=n(85893),r=n(2734);function i(){let e=(0,r.Z)(),t="dark"===e.palette.mode;return{dark:t,t:{dark:t,border:t?"rgba(255,255,255,0.12)":"rgba(47,43,61,0.16)",divider:t?"rgba(255,255,255,0.08)":"rgba(47,43,61,0.1)",paper:t?"#222530":"#FFFFFF",paper2:t?"#282C39":"#F6F6F7"}}}function s(e){let{dark:t}=e;
1return(0,o.jsx)("style",{children:"\n @keyframes tnv-shimmer{0%{background-position:-600px 0}100%{background-position:600px 0}}\n .tnv-sk{background:linear-gradient(90deg,".concat(t?"#2a2f42":"#ECECEF"," 25%,").concat(t?"#353c56":"#F6F6F8"," 50%,").concat(t?"#2a2f42":"#ECECEF"," 75%);background-size:600px 100%;animation:tnv-shimmer 1.6s infinite;border-radius:6px}\n\n /* Stronger-contrast variant for skeleton bars that sit directly on the page's own gray\n background rather than on a white card. In light mode the page background is #EFEFEF â\n almost identical to .tnv-sk's #ECECEF base â so those bars were nearly invisible. */\n .tnv-sk-onbg{background:linear-gradient(90deg,").concat(t?"#2a2f42":"#D2D2D8"," 25%,").concat(t?"#353c56":"#E4E4E9"," 50%,").concat(t?"#2a2f42":"#D2D2D8"," 75%);background-size:600px 100%;animation:tnv-shimmer 1.6s infinite;border-radius:6px}\n ")})}},55620:function(e,t,n){n.d(t,{$n:function(){return w},Ah:function(){return j},BW:function(){return f},Fm:function(){return i},GN:function(){return g},Ig:function(){return Z},Y4:function(){return c},_8:function(){return u},cQ:function(){return x},iI:function(){return a},kK:function(){return m},mz:function(){return v},nb:function(){return y},o4:function(){return p},pq:function(){return l},rl:function(){return k},vf:function(){return s},vm:function(){return h}});var o=n(63093),r=n(78310);let i="__all__",s="all",a=e=>e===i||e===s,l=e=>(e||"").replace(/^https?:\/\//,"").replace(/^www\./,"").split("/")[0],c=e=>{let t=(e||"").replace(/^https?:\/\//,"").replace(/^www\./,""),n=t.indexOf("/");return -1===n?"/":t.slice(n)||"/"},d={queued:{key:"queued",label:"Queued",tone:"info",icon:"clock",sr:"Queued, not started yet",blurb:"Waiting in line. The scan will begin shortly."},running:{key:"running",label:"Scanning",tone:"primary",icon:"activity",sr:"Scan in progress",blurb:"Crawling and testing pages right now."},completed:{key:"completed",label:"Completed",tone:"success",icon:"checkCircle",sr:"Completed successfully",blurb:"Finished successfully. The report is ready."},clean:{key:"clean",label:"No issues",tone:"success",icon:"shield",sr:"Completed, no accessibility issues",blurb:"Finished â no accessibility issues were found."},partial:{key:"partial",label:"Page errors",tone:"warning",icon:"alert",sr:"Completed, but some pages had errors",blurb:"Finished, but some pages couldn't be reached."},failed:{key:"failed",label:"Failed",tone:"error",icon:"xCircle",sr:"Scan failed",blurb:"The scan could not be completed."}},p=["queued","running"],x={queued:["delete"],running:[],completed:["view","runAgain","share","delete"],clean:["view","runAgain","share","delete"],partial:["view","viewErrors","runAgain","share","delete"],failed:["viewDetails","retry","delete"]},u={view:{label:"Report summary",icon:"chevRight",kind:"primary"},viewDetails:{label:"View details",icon:"alertCircle",kind:"primary"},retry:{label:"Retry scan",icon:"refresh",kind:"default"},runAgain:{label:"Run again",icon:"refresh",kind:"default"},viewErrors:{label:"View page errors",icon:"alert",kind:"default"},share:{label:"Share report",icon:"share",kind:"default"},delete:{label:"Delete scan",icon:"trash",kind:"danger"}};function g(e){return"completed"===e.status&&e.violations&&0===e.violations.failed&&0===e.violations.solved?d.clean:d[e.status]||d.queued}let h=(e,t)=>"neutral"===t?e.txt3:e[t]||e.txt3,m=e=>["completed","partial"].includes(e.status),f=e=>"partial"===e.status?d.completed:g(e),b=[{key:"Critical",short:"C",pct:.12,tone:"error"},{key:"Serious",short:"S",pct:.23,tone:"warning"},{key:"Moderate",short:"M",pct:.35,tone:"yellow"},{key:"Minor",short:"m",pct:.3,tone:"neutral"}],k=e=>{let t=(0,o.sB)(e,b.map(e=>e.pct));return b.map((e,n)=>({...e,count:t[n]}))},j=(e,t)=>{let n=b.find(e=>e.key===t);return n&&"neutral"!==n.tone?e[n.tone]:e.txt3},y=e=>new Date(e).toLocaleString("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit"}),v=e=>new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),w=e=>{let t=Math.max(0,Math.floor((Date.now()-new Date(e).getTime())/1e3));if(t<60)return"just now";let n=Math.floor(t/60);if(n<60)return"".concat(n,"m ago");let o=Math.floor(n/60);if(o<24)return"".concat(o,"h ago");let r=Math.floor(o/24);if(r<30)return"".concat(r,"d ago");let i=Math.floor(r/30);return i<12?"".concat(i,"mo ago"):"".concat(Math.floor(i/12),"y ago")};function Z(e){var t,n,o,i,s,a;let l;
1let c=e.monitorStatus,d=Array.isArray(e.pagesFailedScan)?e.pagesFailedScan:[],x=Array.isArray(e.pagesScanned)?e.pagesScanned:[],u=[...x].sort(),g=d.map(e=>e.url).sort(),h=new Set(g),m=u.filter(e=>!h.has(e)),f=g.length>0&&0===m.length,b=[...new Set([...x,...g])],k=(null===(t=e.summary)||void 0===t?void 0:t.totalIssues)||0,j=(null===(n=e.summary)||void 0===n?void 0:n.issuesSolved)||0,y=(null===(o=e.summary)||void 0===o?void 0:o.accessibilityScore)!=null;l="pending"===c?"queued":"in_progress"===c?"running":f||"failed"===c&&0===k?"failed":"completed"===c||"failed"===c&&k>0?d.length>0?"partial":"completed":"queued";let v=e.urlsCompleted||0,w=e.totalRoutesCount||x.length+d.length||1,Z=(0,r.b)(e.source),S=e.domain?e.domain.startsWith("http")?e.domain:"https://".concat(e.domain):"",R=e=>(0,r.KF)(e,S,Z),C=d.map(e=>({url:R(e.url),code:Number(e.code)||e.code}));return{id:e._id,scanId:e._id,domain:e.domain,url:S,status:l,createdAt:e.createdAt,updatedAt:e.updatedAt||e.createdAt,trigger:"automation"===e.startedBy?"auto":"manual",local:Z,overlay:!!(null===(i=e.widget)||void 0===i?void 0:i.detected),pagesScanned:b.length,pageUrls:b.map(R),pagesTotal:w,pageErrors:d.length,pageErrorList:C,progress:{done:v,total:w},initialScore:"failed"!==l&&y?Math.floor(e.summary.accessibilityScore):null,progressScore:"failed"===l||(null===(s=e.summary)||void 0===s?void 0:s.accessibilityScoreProgress)==null?null:Math.round(e.summary.accessibilityScoreProgress),violations:p.includes(l)?null:{failed:Math.max(0,k-j),solved:j},failureCode:null===(a=C[0])||void 0===a?void 0:a.code,_raw:e}}},50945:function(e,t,n){var o=n(85893),r=n(52443),i=n(69661);let s="".concat("https://api.tabnav.com"),a=e=>{let{domain:t,sx:n,variant:a}=e,l=(0,r.u)(),c="dark"===l.palette.mode;return(0,o.jsx)(i.Z,{alt:"".concat(t," favicon"),variant:a,src:"".concat(s,"/api/v1/sites/get-domain-icon/").concat(c,"?domain=").concat(t),sx:n})};t.Z=a}}]);
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.