1"use strict";(self.webpackChunkdiscovery_nissan=self.webpackChunkdiscovery_nissan||[]).push([[4181],{511:(e,s,t)=>{t.d(s,{X:()=>h,k:()=>u});var n=t(579),r=t(3033),a=t(6417),i=t(4765),l=t(5003),o=t(5158),c=t(7971);const[d,u]=(0,a.q)({name:"TableStylesContext",errorMessage:"useTableStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<Table />\" "}),h=(0,l.R)(((e,s)=>{const t=(0,o.o)("Table",e),{className:a,layout:l,...u}=(0,r.M)(e);return(0,n.jsx)(d,{value:t,children:(0,n.jsx)(c.B.table,{ref:s,__css:{tableLayout:l,...t.table},className:(0,i.cx)("chakra-table",a),...u})})}));h.displayName="Table"},2225:(e,s,t)=>{t.d(s,{S:()=>B});var n=t(579),r=t(3033),a=t(7246),i=t(3019),l=t(4765),o=t(3290),c=t(5043),d=t(6417);const[u,h]=(0,d.q)({name:"CheckboxGroupContext",strict:!1});var p=t(7971);function m(e){return(0,n.jsx)(p.B.svg,{width:"1.2em",viewBox:"0 0 12 10",style:{fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16},...e,children:(0,n.jsx)("polyline",{points:"1.5 6 4.5 9 10.5 1"})})}function x(e){return(0,n.jsx)(p.B.svg,{width:"1.2em",viewBox:"0 0 24 24",style:{stroke:"currentColor",strokeWidth:4},...e,children:(0,n.jsx)("line",{x1:"21",x2:"3",y1:"12",y2:"12"})})}function g(e){const{isIndeterminate:s,isChecked:t,...r}=e,a=s?x:m;return t||s?(0,n.jsx)(p.B.div,{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:(0,n.jsx)(a,{...r})}):null}var f=t(940),v=t(221),b=t(2980),y=t(3194),j=t(4079),k=t(8813),C=t(8952),S=t(3635),w=t(5814);function I(e){e.preventDefault(),e.stopPropagation()}var _=t(5003),R=t(5158);const N={display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0},E={cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"},D=(0,o.i7)({from:{opacity:0,strokeDashoffset:16,transform:"scale(0.95)"},to:{opacity:1,strokeDashoffset:0,transform:"scale(1)"}}),z=(0,o.i7)({from:{opacity:0}
1,to:{opacity:1}}),L=(0,o.i7)({from:{transform:"scaleX(0.65)"},to:{transform:"scaleX(1)"}}),B=(0,_.R)((function(e,s){const t=h(),o={...t,...e},d=(0,R.o)("Checkbox",o),u=(0,r.M)(e),{spacing:m="0.5rem",className:x,children:_,iconColor:B,iconSize:M,icon:T=(0,n.jsx)(g,{}),isChecked:A,isDisabled:O=t?.isDisabled,onChange:$,inputProps:F,...H}=u;let P=A;t?.value&&u.value&&(P=t.value.includes(u.value));let W=$;t?.onChange&&u.value&&(W=(0,a.O)(t.onChange,$));const{state:U,getInputProps:q,getCheckboxProps:G,getLabelProps:K,getRootProps:X}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const s=(0,S.v)(e),{isDisabled:t,isReadOnly:n,isRequired:r,isInvalid:i,id:l,onBlur:o,onFocus:d,"aria-describedby":u}=s,{defaultChecked:h,isChecked:p,isFocusable:m,onChange:x,isIndeterminate:g,name:_,value:R,tabIndex:N,"aria-label":E,"aria-labelledby":D,"aria-invalid":z,...L}=e,B=(0,j.c)(L,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),M=(0,f.c)(x),T=(0,f.c)(o),A=(0,f.c)(d),[O,$]=(0,c.useState)(!1),[F,H]=(0,c.useState)(!1),[P,W]=(0,c.useState)(!1),U=(0,c.useRef)(!1);(0,c.useEffect)((()=>(0,C.Yy)((e=>{U.current=e}))),[]);const q=(0,c.useRef)(null),[G,K]=(0,c.useState)(!0),[X,V]=(0,c.useState)(!!h),Z=void 0!==p,Q=Z?p:X,Y=(0,c.useCallback)((e=>{n||t?e.preventDefault():(Z||V(Q?e.currentTarget.checked:!!g||e.currentTarget.checked),M?.(e))}),[n,t,Q,Z,g,M]);(0,v.U)((()=>{q.current&&(q.current.indeterminate=Boolean(g))}),[g]),(0,b.w)((()=>{t&&$(!1)}),[t,$]),(0,v.U)((()=>{const e=q.current;if(!e?.form)return;const s=()=>{V(!!h)};return e.form.addEventListener("reset",s),()=>e.form?.removeEventListener("reset",s)}),[]);const J=t&&!m,ee=(0,c.useCallback)((e=>{" "===e.key&&W(!0)}),[W]),se=(0,c.useCallback)((e=>{" "===e.key&&W(!1)}),[W]);(0,v.U)((()=>{q.current&&q.current.checked!==Q&&V(q.current.checked)}),[q.current]);const te=(0,c.useCallback)((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...e,ref:s,"data-active":(0,k.s)(P),"data-hover":(0,k.s)(F),"data-checked":(0,k.s)(Q),"data-focus":(0,k.s)(O),"data-focus-visible":(0,k.s)(O&&U.current),"data-indeterminate":(0,k.s)(g),"data-disabled":(0,k.s)(t),"data-invalid":(0,k.s)(i),"data-readonly":(0,k.s)(n),"aria-hidden":!0,onMouseDown:(0,a.H)(e.onMouseDown,(e=>{O&&e.preventDefault(),W(!0)})),onMouseUp:(0,a.H)(e.onMouseUp,(()=>W(!1))),onMouseEnter:(0,a.H)(e.onMouseEnter,(()=>H(!0))),onMouseLeave:(0,a.H)(e.onMouseLeave,(()=>H(!1)))}}),[P,Q,t,O,F,g,i,n]),ne=(0,c.useCallback)((function(){return{...arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},ref:arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,"data-active":(0,k.s)(P),"data-hover":(0,k.s)(F),"data-checked":(0,k.s)(Q),"data-focus":(0,k.s)(O),"data-focus-visible":(0,k.s)(O&&U.current),"data-indeterminate":(0,k.s)(g),"data-disabled":(0,k.s)(t),"data-invalid":(0,k.s)(i),"data-readonly":(0,k.s)(n)}}),[P,Q,t,O,F,g,i,n]),re=(0,c.useCallback)((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...B,...e,ref:(0,y.Px)(s,(e=>{e&&K("LABEL"===e.tagName)})),onClick:(0,a.H)(e.onClick,(()=>{G||(q.current?.click(),requestAnimationFrame((()=>{q.current?.focus({preventScroll:!0})}
1)))})),"data-disabled":(0,k.s)(t),"data-checked":(0,k.s)(Q),"data-invalid":(0,k.s)(i)}}),[B,t,Q,i,G]),ae=(0,c.useCallback)((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...e,ref:(0,y.Px)(q,s),type:"checkbox",name:_,value:R,id:l,tabIndex:N,onChange:(0,a.H)(e.onChange,Y),onBlur:(0,a.H)(e.onBlur,T,(()=>$(!1))),onFocus:(0,a.H)(e.onFocus,A,(()=>$(!0))),onKeyDown:(0,a.H)(e.onKeyDown,ee),onKeyUp:(0,a.H)(e.onKeyUp,se),required:r,checked:Q,disabled:J,readOnly:n,"aria-label":E,"aria-labelledby":D,"aria-invalid":z?Boolean(z):i,"aria-describedby":u,"aria-disabled":t,"aria-checked":g?"mixed":Q,style:w.f}}),[_,R,l,N,Y,T,A,ee,se,r,Q,J,n,E,D,z,i,u,t,g]),ie=(0,c.useCallback)((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...e,ref:s,onMouseDown:(0,a.H)(e.onMouseDown,I),"data-disabled":(0,k.s)(t),"data-checked":(0,k.s)(Q),"data-invalid":(0,k.s)(i)}}),[Q,t,i]);return{state:{isInvalid:i,isFocused:O,isChecked:Q,isActive:P,isHovered:F,isIndeterminate:g,isDisabled:t,isReadOnly:n,isRequired:r},getRootProps:re,getCheckboxProps:te,getIndicatorProps:ne,getInputProps:ae,getLabelProps:ie,htmlProps:B}}({...H,isDisabled:O,isChecked:P,onChange:W}),V=function(e){const[s,t]=(0,c.useState)(e),[n,r]=(0,c.useState)(!1);return e!==s&&(r(!0),t(e)),n}(U.isChecked),Z=(0,c.useMemo)((()=>({animation:V?U.isIndeterminate?`${z} 20ms linear, ${L} 200ms linear`:`${D} 200ms linear`:void 0,...d.icon,...(0,i.o)({fontSize:M,color:B})})),[B,M,V,U.isIndeterminate,d.icon]),Q=(0,c.cloneElement)(T,{__css:Z,isIndeterminate:U.isIndeterminate,isChecked:U.isChecked});return(0,n.jsxs)(p.B.label,{__css:{...E,...d.container},className:(0,l.cx)("chakra-checkbox",x),...X(),children:[(0,n.jsx)("input",{className:"chakra-checkbox__input",...q(F,s)}),(0,n.jsx)(p.B.span,{__css:{...N,...d.control},className:"chakra-checkbox__control",...G(),children:Q}),_&&(0,n.jsx)(p.B.span,{className:"chakra-checkbox__label",...K(),__css:{marginStart:m,...d.label},children:_})]})}));B.displayName="Checkbox"},2595:(e,s,t)=>{t.d(s,{N:()=>l});var n=t(579),r=t(511),a=t(5003),i=t(7971);const l=(0,a.R)(((e,s)=>{const t=(0,r.k)();return(0,n.jsx)(i.B.tbody,{...e,ref:s,__css:t.tbody})}))},3201:(e,s,t)=>{t.d(s,{Th:()=>l});var n=t(579),r=t(511),a=t(5003),i=t(7971);const l=(0,a.R)(((e,s)=>{let{isNumeric:t,...a}=e;const l=(0,r.k)();return(0,n.jsx)(i.B.th,{...a,ref:s,__css:l.th,"data-is-numeric":t})}))},3313:(e,s,t)=>{t.d(s,{d:()=>l});var n=t(579),r=t(511),a=t(5003),i=t(7971);const l=(0,a.R)(((e,s)=>{const t=(0,r.k)();return(0,n.jsx)(i.B.thead,{...e,ref:s,__css:t.thead})}))},3572:(e,s,t)=>{t.d(s,{_:()=>c});var n=t(579),r=t(4079),a=t(5003);const i=(0,a.R)((function(e,s){const{htmlWidth:t,htmlHeight:r,alt:a,...i}=e;return(0,n.jsx)("img",{width:t,height:r,ref:s,alt:a,...i})}));i.displayName="NativeImage";var l=t(7093),o=t(7971);const c=(0,a.R)((function(e,s){const{fallbackSrc:t,fallback:a,src:c,srcSet:d,align:u,fit:h,loading:p,ignoreFallback:m,crossOrigin:x,fallbackStrategy:g="beforeLoadOrError",referrerPolicy:f,...v}=e,b=null!=p||m||!(void 0!==t||void 0!==a),y=(0,l.l)({...e,crossOrigin:x,ignoreFallback:b}),j=(0,l.m)(y,g),k={ref:s,objectFit:h,objectPosition:u,...b?v:(0,r.c)(v,["onError","onLoad"])};return j?a||(0,n.jsx)(o.B.img,{as:i,className:"chakra-image__placeholder",src:t,...k}):(0,n.jsx)(o.B.img,{as:i,src:c,srcSet:d,crossOrigin:x,loading:p,referrerPolicy:f,className:"chakra-image",...k})}));c.displayName="Image"},4181:(e,s,t)=>{t.r(s),t.d(s,{default:()=>P});var n=t(6870),r=t(2107),a=t(3572),i=t(8460),l=t(1054),o=t(5421),c=t(5929),d=t(7516),u=t(7189),h=t(9081),p=t(502),m=t(8939),x=t(5371),g=t(6148),f=t(8846),v=t(7139),b=t(8662),y=t(5973),j=t(9244),k=t(5699),C=t(6659),S=t(511),w=t(3313),I=t(5395),_=t(3201),R=t(2225),N=t(2595),E=t(7813),D=t(8811),z=t(2703),L=t(8455),B=t(5071),M=t(6529),T=t(5043),A=t(7667),O=t(579);const $=()=>(0,O.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,O.jsx)("polyline",{points:"3 6 5 6 21 6"}),(0,O.jsx)("path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"}),(0,O.jsx)("line",{x1:"10",y1:"11",x2:"10",y2:"17"}),(0,O.jsx)("line",{x1:"14",y1:"11",x2:"14",y2:"17"})]}),F=()=>(0,O.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"#A0AEC0",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,O.jsx)("circle",{cx:"11",cy:"11",r:"8"}),(0,O.jsx)("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"})]}),H=e=>{var s;let{url:t}=e;const{isOpen:p,onOpen:m,onClose:x}=(0,n.j)(),g=(null===t||void 0===t||null===(s=t.split("/").pop())||void 0===s?void 0:s.split("?")[0])||"attachment";return t?(e=>/\.(jpg|jpeg|png|gif|webp|svg)(\?.*)?$/i.test(e))(t)?(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(r.a,{as:"button",onClick:m,borderRadius:"md",overflow:"hidden",border:"1px solid",borderColor:"gray.200",_hover:{borderColor:"blue.400",boxShadow:"sm"},transition:"all 0.15s",display:"inline-block",children:(0,O.jsx)(a._,{src:t,alt:"attachment",maxH:"50px",maxW:"70px",objectFit:"cover"})}),(0,O.jsxs)(i.aF,{isOpen:p,onClose:x,size:"xl",isCentered:!0,children:[(0,O.jsx)(l.m,{backdropFilter:"blur(4px)"}),(0,O.jsxs)(o.$,{children:[(0,O.jsx)(c.s,{}),(0,O.jsx)(d.c,{p:4,display:"flex",justifyContent:"center",children:(0,O.jsx)(a._,{src:t,alt:"attachment",maxH:"80vh",borderRadius:"md"})})]})]})]}):(0,O.jsxs)(u.N,{href:t,isExternal:!0,display:"inline-flex",alignItems:"center",gap:1.5,px:2.5,py:1,bg:"gray.50",border:"1px solid",borderColor:"gray.200",borderRadius:"md",fontSize:"xs",color:"blue.600",_hover:{bg:"blue.50",borderColor:"blue.300",textDecoration:"none"},transition:"all 0.15s",maxW:"160px",children:[(0,O.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,style:{flexShrink:0},children:(0,O.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.172 7l-6.586 6.586a2 2 0 002.828 2.828l6.414-6.586a4 4 0 00-5.656-5.656l-6.415 6.585a6 6 0 108.486 8.48
16L20.5 13"})}),(0,O.jsx)(h.E,{noOfLines:1,title:g,children:g})]}):null},P=()=>{const[e,s]=(0,T.useState)([]),[t,n]=(0,T.useState)(!0),[a,i]=(0,T.useState)("all"),[o,c]=(0,T.useState)(""),[u,P]=(0,T.useState)([]),[W,U]=(0,T.useState)(null),[q,G]=(0,T.useState)(!1),[K,X]=(0,T.useState)({isOpen:!1,type:null,targetId:null,count:0}),V=(0,T.useRef)(),Z=(0,p.d)();(0,T.useEffect)((()=>{Q()}),[]);const Q=async()=>{try{const e=await(0,A.hj)();s(Array.isArray(e)?e:[])}catch(e){Z({title:"Error",description:e.message||"Failed to fetch issues",status:"error",duration:3e3,isClosable:!0})}finally{n(!1)}},Y=(0,T.useMemo)((()=>e.filter((e=>!e.resolved)).length),[e]),J=(0,T.useMemo)((()=>e.filter((e=>e.resolved)).length),[e]),ee=(0,T.useMemo)((()=>e.filter((e=>{if("unresolved"===a&&e.resolved)return!1;if("resolved"===a&&!e.resolved)return!1;if(o.trim()){const s=o.toLowerCase(),t=(e.message||"").toLowerCase().includes(s),n=(e.name||"").toLowerCase().includes(s),r=(e.email||"").toLowerCase().includes(s);return t||n||r}return!0}))),[e,a,o]),se=ee.length>0&&ee.every((e=>u.includes(e.id))),te=u.length>0&&!se;return(0,O.jsx)(r.a,{minH:"100vh",bg:"gray.50",py:{base:6,md:10},children:(0,O.jsxs)(m.m,{maxW:"6xl",children:[(0,O.jsxs)(x.s,{justify:"space-between",align:{base:"flex-start",sm:"center"},direction:{base:"column",sm:"row"},gap:4,mb:6,children:[(0,O.jsxs)(g.z,{spacing:3,children:[(0,O.jsx)(f.D,{size:"lg",color:"primary",children:"Developer Issues"}),(0,O.jsx)(v.E,{colorScheme:"orange",fontSize:"0.85em",px:2.5,py:.5,borderRadius:"full",children:e.length})]}),(0,O.jsxs)(g.z,{spacing:2,wrap:"wrap",children:[u.length>0&&(0,O.jsxs)(b.$,{size:"sm",colorScheme:"red",variant:"solid",leftIcon:(0,O.jsx)($,{}),onClick:()=>X({isOpen:!0,type:"selected",targetId:null,count:u.length}),children:["Delete Selected (",u.length,")"]}),ee.length>0&&(0,O.jsx)(b.$,{size:"sm",colorScheme:"red",variant:"outline",leftIcon:(0,O.jsx)($,{}),onClick:()=>X({isOpen:!0,type:"all",targetId:null,count:ee.length}),children:"Delete All"})]})]}),(0,O.jsxs)(x.s,{justify:"space-between",align:"center",direction:{base:"column",md:"row"},gap:3,mb:4,bg:"white",p:3,borderRadius:"lg",boxShadow:"sm",border:"1px solid",borderColor:"gray.200",children:[(0,O.jsxs)(g.z,{spacing:2,wrap:"wrap",children:[(0,O.jsxs)(b.$,{size:"sm",variant:"all"===a?"solid":"ghost",colorScheme:"all"===a?"orange":"gray",onClick:()=>i("all"),children:["All",(0,O.jsx)(v.E,{ml:1.5,colorScheme:"all"===a?"orange":"gray",variant:"all"===a?"solid":"subtle",borderRadius:"full",children:e.length})]}),(0,O.jsxs)(b.$,{size:"sm",variant:"unresolved"===a?"solid":"ghost",colorScheme:"unresolved"===a?"orange":"gray",onClick:()=>i("unresolved"),children:["Unresolved",(0,O.jsx)(v.E,{ml:1.5,colorScheme:"unresolved"===a?"orange":"gray",variant:"unresolved"===a?"solid":"subtle",borderRadius:"full",children:Y})]}),(0,O.jsxs)(b.$,{size:"sm",variant:"resolved"===a?"solid":"ghost",colorScheme:"resolved"===a?"orange":"gray",onClick:()=>i("resolved"),children:["Resolved",(0,O.jsx)(v.E,{ml:1.5,colorScheme:"resolved"===a?"orange":"gray",variant:"resolved"===a?"solid":"subtle",borderRadius:"full",children:J})]})]}),(0,O.jsxs)(y.M,{size:"sm",maxW:{base:"full",md:"260px"},children:[(0,O.jsx)(j.W,{pointerEvents:"none",children:(0,O.jsx)(F,{})}),(0,O.jsx)(k.p,{placeholder:"Search issues...",value:o,onChange:e=>c(e.target.value),borderRadius:"md"})]})]}),t?(0,O.jsx)(x.s,{justify:"center",py:16,children:(0,O.jsx)(C.y,{size:"xl",color:"orange.500",thickness:"3px"})}):0===ee.length?(0,O.jsx)(r.a,{bg:"white",p:12,borderRadius:"lg",boxShadow:"sm",border:"1px solid",borderColor:"gray.200",textAlign:"center",children:(0,O.jsx)(h.E,{color:"gray.500",fontSize:"md",children:o?"No issues match your search.":"unresolved"===a?"No unresolved issues.":"resolved"===a?"No resolved issues.":"No issues found."})}):(0,O.jsx)(r.a,{bg:"white",borderRadius:"lg",boxShadow:"sm",border:"1px solid",borderColor:"gray.200",overflowX:"auto",children:(0,O.jsxs)(S.X,{variant:"simple",size:"md",children:[(0,O.jsx)(w.d,{bg:"gray.50",children:(0,O.jsxs)(I.Tr,{children:[(0,O.jsx)(_.Th,{w:"40p
1x",px:3,children:(0,O.jsx)(R.S,{isChecked:se,isIndeterminate:te,onChange:e=>{e.target.checked?P(ee.map((e=>e.id))):P([])},colorScheme:"orange"})}),(0,O.jsx)(_.Th,{whiteSpace:"nowrap",children:"Date"}),(0,O.jsx)(_.Th,{children:"Issue"}),(0,O.jsx)(_.Th,{children:"Attachment"}),(0,O.jsx)(_.Th,{children:"Status"}),(0,O.jsx)(_.Th,{textAlign:"right",children:"Action"})]})}),(0,O.jsx)(N.N,{children:ee.map((e=>{const s=u.includes(e.id);return(0,O.jsxs)(I.Tr,{bg:s?"orange.50":e.resolved?"gray.50":"white",_hover:{bg:s?"orange.100":"gray.50"},transition:"background 0.15s",children:[(0,O.jsx)(E.Td,{w:"40px",px:3,children:(0,O.jsx)(R.S,{isChecked:s,onChange:()=>{return s=e.id,void P((e=>e.includes(s)?e.filter((e=>e!==s)):[...e,s]));var s},colorScheme:"orange"})}),(0,O.jsx)(E.Td,{whiteSpace:"nowrap",fontSize:"sm",color:"gray.600",children:new Date(e.updatedAt||e.createdAt).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})}),(0,O.jsxs)(E.Td,{maxW:{base:"200px",md:"380px"},children:[(0,O.jsx)(h.E,{fontSize:"sm",color:"gray.800",noOfLines:3,title:e.message,children:e.message}),(e.name||e.email)&&(0,O.jsxs)(h.E,{fontSize:"xs",color:"gray.400",mt:1,children:["From: ",e.name?`${e.name} `:"",e.email?`<${e.email}>`:""]})]}),(0,O.jsx)(E.Td,{children:e.conatctattachment||e.attachment?(0,O.jsx)(H,{url:e.conatctattachment||e.attachment}):(0,O.jsx)(h.E,{fontSize:"xs",color:"gray.400",children:"\u2014"})}),(0,O.jsx)(E.Td,{whiteSpace:"nowrap",children:e.resolved?(0,O.jsx)(v.E,{colorScheme:"green",variant:"subtle",px:2,py:.5,borderRadius:"md",children:"Resolved"}):(0,O.jsx)(v.E,{colorScheme:"yellow",variant:"subtle",px:2,py:.5,borderRadius:"md",children:"Unresolved"})}),(0,O.jsx)(E.Td,{textAlign:"right",whiteSpace:"nowrap",children:(0,O.jsxs)(g.z,{spacing:2,justify:"flex-end",children:[!e.resolved&&(0,O.jsx)(b.$,{size:"xs",colorScheme:"green",variant:"outline",isLoading:W===e.id,onClick:()=>(async e=>{U(e);try{const s=await(0,A.F1)(e);Z({title:"Issue Resolved",description:s.message||"Issue marked as resolved",status:"success",duration:2500,isClosable:!0}),Q()}catch(s){Z({title:"Error",description:s.message||"Failed to resolve issue",status:"error",duration:3e3,isClosable:!0})}finally{U(null)}})(e.id),children:"Mark Resolved"}),(0,O.jsx)(D.m,{label:"Delete issue",placement:"top",hasArrow:!0,children:(0,O.jsx)(z.K,{size:"xs",colorScheme:"red",variant:"ghost","aria-label":"Delete issue",icon:(0,O.jsx)($,{}),onClick:()=>X({isOpen:!0,type:"single",targetId:e.id,count:1})})})]})})]},e.id)}))})]})}),(0,O.jsx)(L.Lt,{isOpen:K.isOpen,leastDestructiveRef:V,onClose:()=>X({isOpen:!1,type:null,targetId:null,count:0}),isCentered:!0,children:(0,O.jsx)(l.m,{backdropFilter:"blur(3px)",children:(0,O.jsxs)(L.EO,{mx:4,children:[(0,O.jsx)(B.r,{fontSize:"lg",fontWeight:"bold",color:"red.600",children:"all"===K.type?"Delete All Issues":"selected"===K.type?`Delete ${K.count} Selected Issues`:"Delete Issue"}),(0,O.jsx)(d.c,{color:"gray.600",fontSize:"sm",children:"all"===K.type?`Are you sure you want to delete all ${K.count} ${"all"!==a?`${a} `:""}issue(s)? This action cannot be undone.`:"selected"===K.type?`Are you sure you want to delete the ${K.count} selected issue(s)? This action cannot be undone.`:"Are you sure you want to delete this developer issue? This action cannot be undone."}),(0,O.jsxs)(M.j,{children:[(0,O.jsx)(b.$,{ref:V,size:"sm",onClick:()=>X({isOpen:!1,type:null,targetId:null,count:0}),isDisabled:q,children:"Cancel"}),(0,O.jsx)(b.$,{colorScheme:"red",size:"sm",ml:3,onClick:async()=>{G(!0);try{if("single"===K.type)await(0,A.rQ)(K.targetId),P((e=>e.filter((e=>e!==K.targetId)))),Z({title:"Issue Deleted",status:"success",duration:2500,isClosable:!0});else if("selected"===K.type)await(0,A.ft)(u),P([]),Z({title:"Selected Issues Deleted",description:`${K.count} issue(s) removed successfully.`,status:"success",duration:2500,isClosable:!0});else if("all"===K.type){const e=ee.map((e=>e.id));await(0,A.ft)(e),P([]),Z({title:"All Issues Deleted",description:`${e.length} issue(s) removed.`,status:"success",duration:2500,isClosable:!0})}X({isOpen:!1,type:null,targetId:null,count:0}),Q()}catch(e){Z({title:"Delete Failed",description:e.message||"Failed to delete issue(s)",status:"error",duration:3e3,isClosable:!0})}finally{G(!1)}},isLoading:q,children:"Delete"})]})]})})})]})})}},5395:(e,s,t)=>{t.d(s,{Tr:()=>l});var n=t(579),r=t(511),a=t(5003),i=t(7971);const l=(0,a.R)(((e,s)=>{const t=(0,r.k)();return(0,n.jsx)(i.B.tr,{...e,ref:s,__css:t.tr})}))},5699:(e,s,t)=>{t.d(s,{p:()=>d});var n=t(579),r=t(3033),a=t(4765),i=t(3635),l=t(5003),o=t(5158),c=t(7971);const d=(0,l.R)((function(e,s){const{htmlSize:t,...l}
1=e,d=(0,o.o)("Input",l),u=(0,r.M)(l),h=(0,i.t)(u),p=(0,a.cx)("chakra-input",e.className);return(0,n.jsx)(c.B.input,{size:t,...h,__css:d.field,ref:s,className:p})}));d.displayName="Input",d.id="Input"},5973:(e,s,t)=>{t.d(s,{M:()=>x,Z:()=>m});var n=t(579),r=t(3033),a=t(6417),i=t(4765),l=t(4881),o=t(3019),c=t(5043),d=t(5003),u=t(5158),h=t(7971);const[p,m]=(0,a.q)({name:"InputGroupStylesContext",errorMessage:"useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<InputGroup />\" "}),x=(0,d.R)((function(e,s){const t=(0,u.o)("Input",e),{children:a,className:d,...m}=(0,r.M)(e),x=(0,i.cx)("chakra-input__group",d),g={},f=(0,l.a)(a),v=t.field;f.forEach((e=>{t&&(v&&"InputLeftElement"===e.type.id&&(g.paddingStart=v.height??v.h),v&&"InputRightElement"===e.type.id&&(g.paddingEnd=v.height??v.h),"InputRightAddon"===e.type.id&&(g.borderEndRadius=0),"InputLeftAddon"===e.type.id&&(g.borderStartRadius=0))}));const b=f.map((s=>{const t=(0,o.o)({size:s.props?.size||e.size,variant:s.props?.variant||e.variant});return"Input"!==s.type.id?(0,c.cloneElement)(s,t):(0,c.cloneElement)(s,Object.assign(t,g,s.props))}));return(0,n.jsx)(h.B.div,{className:x,ref:s,__css:{width:"100%",display:"flex",position:"relative",isolation:"isolate",...t.group},"data-group":!0,...m,children:(0,n.jsx)(p,{value:t,children:b})})}));x.displayName="InputGroup"},7189:(e,s,t)=>{t.d(s,{N:()=>c});var n=t(579),r=t(3033),a=t(4765),i=t(5003),l=t(5158),o=t(7971);const c=(0,i.R)((function(e,s){const t=(0,l.V)("Link",e),{className:i,isExternal:c,...d}=(0,r.M)(e);return(0,n.jsx)(o.B.a,{target:c?"_blank":void 0,rel:c?"noopener":void 0,ref:s,className:(0,a.cx)("chakra-link",i),...d,__css:t})}));c.displayName="Link"},7813:(e,s,t)=>{t.d(s,{Td:()=>l});var n=t(579),r=t(511),a=t(5003),i=t(7971);const l=(0,a.R)(((e,s)=>{let{isNumeric:t,...a}=e;const l=(0,r.k)();return(0,n.jsx)(i.B.td,{...a,ref:s,__css:l.td,"data-is-numeric":t})}))},8939:(e,s,t)=>{t.d(s,{m:()=>c});var n=t(579),r=t(3033),a=t(4765),i=t(5003),l=t(5158),o=t(7971);const c=(0,i.R)((function(e,s){const{className:t,centerContent:i,...c}=(0,r.M)(e),d=(0,l.V)("Container",e);return(0,n.jsx)(o.B.div,{ref:s,className:(0,a.cx)("chakra-container",t),...c,__css:{...d,...i&&{display:"flex",flexDirection:"column",alignItems:"center"}}})}));c.displayName="Container"},9244:(e,s,t)=>{t.d(s,{W:()=>d,t:()=>u});var n=t(579),r=t(4765),a=t(5973),i=t(7971),l=t(5003);const o=(0,i.B)("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),c=(0,l.R)((function(e,s){const{placement:t="left",...r}=e,i=(0,a.Z)(),l=i.field,c="left"===t?"insetStart":"insetEnd",d={[c]:"0",width:l?.height??l?.h,height:l?.height??l?.h,fontSize:l?.fontSize,...i.element};return(0,n.jsx)(o,{ref:s,__css:d,...r})}));c.id="InputElement",c.displayName="InputElement";const d=(0,l.R)((function(e,s){const{className:t,...a}=e,i=(0,r.cx)("chakra-input__left-element",t);return(0,n.jsx)(c,{ref:s,placement:"left",className:i,...a})}));d.id="InputLeftElement",d.displayName="InputLeftElement";const u=(0,l.R)((function(e,s){const{className:t,...a}=e,i=(0,r.cx)("chakra-input__right-element",t);return(0,n.jsx)(c,{ref:s,placement:"right",className:i,...a})}));u.id="InputRightElement",u.displayName="InputRightElement"}}]); 2//# sourceMappingURL=4181.04f24b58.chunk.js.map
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.