PageSourceSearch

https://athleticskidscup.com/_next/static/chunks/app/support/page-e4a8dffb3ba6b852.js

js athleticskidscup.com collected 2026-10-06 19:14:19 UTC 21,071 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5451],{44526:function(e,t,s){Promise.resolve().then(s.bind(s,34417))},56974:function(e,t,s){"use strict";s.d(t,{W:function(){return a}});var r,a,i=s(57437),n=s(2265);(r=a||(a={}))[r.RED=0]="RED",r[r.CYAN=1]="CYAN",r[r.GREEN=2]="GREEN",r[r.GRAY=3]="GRAY";let l=e=>2===e?"bg-green-600 text-white":3===e?"bg-gray-500 text-white":0===e?"bg-primary text-white":"bg-cyanAKC text-altTextColor";t.Z=e=>{let{children:t,variant:s,className:r,disabled:a,...o}=e,c=(0,n.useMemo)(()=>l(s),[s]);return(0,i.jsx)("button",{className:"relative w-max ".concat(c," ").concat(a?"cursor-not-allowed":"cursor-pointer"," rounded-full border-2 border-gray-700 px-6 py-3 text-base font-bold shadow-[4px_6px_0_#12141d] transition-all duration-100 ease-out hover:translate-x-0.5 hover:translate-y-[3px] hover:shadow-[2px_3px_0_#12141d] active:translate-x-1 active:translate-y-1.5 active:shadow-[1px_1px_0_#12141d] ").concat(r),disabled:a,...o,children:t})}},34417:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return o}});var r=s(57437),a=s(2265),i=s(56974);function n(e){let{isOpen:t,onRedirectToLogin:s,errorType:n="session_expired"}=e,[l,o]=(0,a.useState)(10);if((0,a.useEffect)(()=>{if(t&&l>0){let e=setTimeout(()=>{o(l-1)},1e3);return()=>clearTimeout(e)}t&&0===l&&s()},[t,l,s]),(0,a.useEffect)(()=>{t&&o(10)},[t]),!t)return null;let{title:c,message:d,icon:m}=(()=>{switch(n){case"session_expired":return{title:"Session Expired",message:"Your session has expired. Please log in again to continue.",icon:(0,r.jsx)("svg",{className:"w-12 h-12 text-yellow-500",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.964-.833-2.732 0L3.732 16.5c-.77.833.192 2.5 1.732 2.5z"})})};case"network_error":return{title:"Network Error",message:"Unable to connect to the server. Please check your internet connection and try again.",icon:(0,r.jsx)("svg",{className:"w-12 h-12 text-red-500",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})};case"authentication_error":return{title:"Authentication Error",message:"There was an authentication error. Please log in again to continue.",icon:(0,r.jsx)("svg",{className:"w-12 h-12 text-red-500",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"})})};default:return{title:"Session Timeout",message:"Your session has timed out. Please log in again to continue.",icon:(0,r.jsx)("svg",{className:"w-12 h-12 text-yellow-500",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"})})}}})();return(0,r.jsx)("div",{className:"fixed inset-0 z-50 overflow-y-auto",children:(0,r.jsxs)("div",{className:"flex min-h-screen items-center justify-center p-4 text-center sm:p-0",children:[(0,r.jsx)("div",{className:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"}),(0,r.jsxs)("div",{className:"relative transform overflow-hidden rounded-lg bg-white text-left shadow-xl transition-all sm:my-8 sm:w-full sm:max-w-lg",children:[(0,r.jsx)("div",{className:"bg-white px-4 pb-4 pt-5 sm:p-6 sm:pb-4",children:(0,r.jsxs)("div",{className:"sm:flex sm:items-start",children:[(0,r.jsx)("div",{className:"mx-auto flex h-12 w-12 flex-shrink-0 items-center justify-center rounded-full bg-gray-100 sm:mx-0 sm:h-10 sm:w-10",children:m}),(0,r.jsxs)("div",{className:"mt-3 text-center sm:ml-4 sm:mt-0 sm:text-left",children:[(0,r.jsx)("h3",{className:"text-lg font-medium leading-6 text-gray-900",children:c}),(0,r.jsxs)("div",{className:"mt-2",children:[(0,r.jsx)("p",{className:"text-sm text-gray-500",children:d}),"session_expired"===n&&(0,r.jsxs)("p",{className:"mt-2 text-sm text-gray-600",children:["You will be redirected to the login page in ",(0,r.jsx)("span",{className:"font-semibold text-yellow-600",children:l})," seconds."]})]})]})]})}),(0,r.jsx)("div",{className:"bg-gray-50 px-4 py-3 sm:flex sm:flex-row-reverse sm:px-6",children:(0,r.jsx)("div",{className:"flex justify-center w-full",children:(0,r.jsx)(i.Z,{variant:i.W.CYAN,onClick:s,className:"px-6 py-2",children:"Go to Login"})})})]})]})})}function l(e){let{isOpen:t,onClose:s,ticketId:n,title:l="Support Ticket Submitted Successfully!",message:o="Your ticket has been created successfully!"}=e;return((0,a.useEffect)(()=>(t?document.body.style.overflow="hidden":document.body.style.overflow="unset",()=>{document.body.style.overflow="unset"}),[t]),t)?(0,r.jsx)("div",{className:"fixed inset-0 z-50 overflow-y-auto",children:(0,r.jsxs)("div",{className:"flex min-h-screen items-center justify-center p-4 text-center sm:p-0",children:[(0,r.jsx)("div",{className:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"}),(0,r.jsxs)("div",{className:"relative transform overflow-hidden rounded-lg bg-white text-left shadow-xl transition-all sm:my-8 sm:w-full sm:max-w-lg",children:[(0,r.jsx)("div",{className:"bg-white px-4 pb-4 pt-5 sm:p-6 sm:pb-4",children:(0,r.jsxs)("div",{className:"sm:flex sm:items-start",children:[(0,r.jsx)("div",{className:"mx-auto flex h-12 w-12 flex-shrink-0 items-center justify-center rounded-full bg-green-100 sm:mx-0 sm:h-10 sm:w-10",children:(0,r.jsx)("svg",{className:"h-6 w-6 text-green-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})})}),(0,r.jsxs)("div",{className:"mt-3 text-center sm:ml-4 sm:mt-0 sm:text-left",children:[(0,r.jsx)("h3",{className:"text-lg font-medium leading-6 text-gray-900",children:l}),(0,r.jsxs)("div",{className:"mt-2",children:[(0,r.jsx)("p",{className:"text-sm text-gray-500",children:o}),(0,r.jsxs)("div",{className:"mt-4 space-y-2",children:[(0,r.jsx)("p",{className:"text-sm text-gray-600",children:"✓ A confirmation email has been sent to your registered email address"}),(0,r.jsxs)("p",{className:"text-sm font-semibold text-gray-900",children:["Ticket ID: ",n]}),(0,r.jsx)("p",{className:"text-xs text-gray-500",children:"Please keep this ticket ID for your records"})]})]})]})]})}),(0,r.jsx)("div",{className:"bg-gray-50 px-4 py-3 sm:flex sm:flex-row-reverse sm:px-6",children:(0,r.jsx)("div",{className:"flex justify-center w-full",children:(0,r.jsx)(i.Z,{variant:i.W.CYAN,onClick:s,className:"px-6 py-2",children:"Close"})})})]})]})}):null}function o(){var e;
1let[t,s]=(0,a.useState)({creatorName:"",shortDescription:"",description:"",attachments:[],watchers:[],priority:"medium"}),[o,c]=(0,a.useState)(!1),[d,m]=(0,a.useState)(null),[u,h]=(0,a.useState)(!1),[x,p]=(0,a.useState)(""),[f,g]=(0,a.useState)(""),[v,b]=(0,a.useState)(""),[j,y]=(0,a.useState)(!0),[w,N]=(0,a.useState)(!1),[k,C]=(0,a.useState)("session_expired"),[D,S]=(0,a.useState)(!1),[L,_]=(0,a.useState)(!1),[E,A]=(0,a.useState)(!1),[T,z]=(0,a.useState)(""),[P,W]=(0,a.useState)([]),[B]=(0,a.useState)(1048576),[F]=(0,a.useState)(5);(0,a.useEffect)(()=>{(async()=>{try{let t=await fetch("/api/admin/getCurrentUser",{method:"GET",credentials:"include"});if(t.ok){var e;let r=await t.json(),a=null!==(e=r.displayName)&&void 0!==e?e:r.email;if(a)s(e=>({...e,creatorName:a})),A(!1);else{C("authentication_error"),N(!0);return}}else if(401===t.status||403===t.status){C("session_expired"),N(!0);return}else{C("authentication_error"),N(!0);return}}catch(e){C("network_error"),N(!0);return}finally{y(!1)}})()},[]);let R=e=>{var t;if(!(null==e?void 0:e.trim()))return!1;let s=e.trim();if(1!==(null!==(t=s.match(/@/g))&&void 0!==t?t:[]).length)return!1;let r=s.split("@"),a=r[0],i=r[1];if(!(null==a?void 0:a.length)||a.startsWith(".")||a.endsWith(".")||a.includes("..")||!/^[a-zA-Z0-9._-]+$/.test(a)||!(null==i?void 0:i.length)||i.startsWith(".")||i.endsWith(".")||i.includes("..")||!i.includes(".")||i.split(".").some(e=>0===e.length))return!1;let n=i.split(".");if(n.length<2)return!1;let l=n[n.length-1];return!!((null==l?void 0:l.length)&&!(l.length<2)&&/^[a-zA-Z]+$/.test(l)&&/^[a-zA-Z0-9.-]+$/.test(i))},M=e=>e.size>B?'File "'.concat(e.name,'" is too large. Maximum size is 1MB.'):["application/pdf","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","text/plain","image/jpeg","image/jpg","image/png","image/gif","text/plain"].includes(e.type)?null:'File "'.concat(e.name,'" has an unsupported file type. Allowed types: PDF, DOC, DOCX, TXT, JPG, PNG, GIF.'),Y=e=>{s(t=>({...t,attachments:t.attachments.filter((t,s)=>s!==e)})),z("")},G=e=>{let s=e.trim();if(!s){b("");return}if(!R(s)){b("Please enter a valid email address");return}if(t.watchers.some(e=>e.toLowerCase()===s.toLowerCase())){b("This email address is already added as a watcher");return}b("")},O=()=>{let e=x.trim();if(g(""),b(""),!e){g("Please enter an email address to add as watcher");return}if(!R(e)){g("Please enter a valid email address");return}if(t.watchers.some(t=>t.toLowerCase()===e.toLowerCase())){g("This email address is already added as a watcher");return}s(t=>({...t,watchers:[...t.watchers,e]})),p(""),b("")},Z=e=>{s(t=>({...t,watchers:t.watchers.filter((t,s)=>s!==e)}))},I=async e=>{var s,r,a,i;e.preventDefault();let n=!(null===(s=t.creatorName)||void 0===s?void 0:s.trim()),l=!(null===(r=t.shortDescription)||void 0===r?void 0:r.trim()),o=!(null===(a=t.description)||void 0===a?void 0:a.trim()),d=[];if(n&&d.push("Creator Name is required"),l&&d.push("Short Description is required"),o&&d.push("Detailed Description is required"),A(n),S(l),_(o),W(d),!(d.length>0)){c(!0),h(!1),m(null);try{let e=new FormData;e.append("creatorName",t.creatorName),e.append("shortDescription",t.shortDescription),e.append("description",t.description),e.append("watchers",JSON.stringify(t.watchers)),e.append("priority",t.priority),e.append("attachmentFlag",t.attachments.length>0?"true":"false"),t.attachments.forEach((t,s)=>{e.append("attachment_".concat(s),t)});let s=await fetch("/api/admin/support",{method:"POST",body:e});if(s.ok){let e=await s.json();m(e.ticketId),h(!0)}else if(401===s.status||403===s.status)C("session_expired"),N(!0);else{let e=await s.json();alert("Failed to submit support ticket: ".concat(null!==(i=e.error)&&void 0!==i?i:"Unknown error"))}}catch(e){C("network_error"),N(!0)}finally{c(!1)}}};return(0,r.jsxs)("div",{className:"container mx-auto p-6",children:[(0,r.jsxs)("div",{className:"mx-auto max-w-2xl",children:[(0,r.jsxs)("div",{className:"mb-8",children:[(0,r.jsx)("h1",{className:"text-3xl font-bold text-gray-900",children:"Support Ticket"}),(0,r.jsx)("p",{className:"mt-2 text-gray-600",children:"Submit a support ticket for technical assistance or incident reporting."})]}),(0,r.jsxs)("form",{onSubmit:I,onKeyDown:e=>{if("Enter"===e.key){let t=e.target;"submit"!==t.type&&null===t.closest("[data-watcher-input]")&&"TEXTAREA"!==t.tagName&&e.preventDefault()}},className:"space-y-6",children:[(0,r.jsxs)("div",{children:[(0,r.jsxs)("label",{htmlFor:"creatorName",className:"block text-sm font-medium text-gray-700 mb-2",children:["Creator Name ",(0,r.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,r.jsx)("input",{type:"text",id:"creatorName",value:j?"Loading...":null!==(e=t.creatorName)&&void 0!==e?e:"Unable to load user information",readOnly:!0,className:"w-full px-3 py-2 border rounded-md bg-gray-50 text-gray-500 cursor-not-allowed ".concat(!E&&(j||t.creatorName)?"border-gray-300":"border-red-300 bg-red-50")}),(0,r.jsx)("p",{className:"mt-1 text-xs ".concat(!E&&(j||t.creatorName)?"text-gray-500":"text-red-500"),children:j?"Loading user information...":t.creatorName?"Name of the logged-in user":"Unable to load user information - please refresh the page"}),E&&(0,r.jsx)("div",{className:"mt-2 p-2 bg-red-50 border border-red-200 rounded-md",children:(0,r.jsx)("p",{className:"text-sm text-red-800",children:(0,r.jsx)("strong",{children:"Creator Name is required"})})})]}),(0,r.jsxs)("div",{children:[(0,r.jsxs)("label",{htmlFor:"shortDescription",className:"block text-sm font-medium text-gray-700 mb-2",children:["Short Description ",(0,r.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,r.jsx)("input",{type:"text",id:"shortDescription",name:"shortDescription",value:t.shortDe
1scription,onChange:e=>{s(t=>({...t,shortDescription:e.target.value})),D&&e.target.value.trim()&&S(!1)},onBlur:()=>{var e;(null===(e=t.shortDescription)||void 0===e?void 0:e.trim())||S(!0)},onKeyDown:e=>{"Enter"===e.key&&e.preventDefault()},placeholder:"Brief summary of the issue (will be used as email subject)",className:"w-full px-3 py-2 border rounded-md focus:ring-2 focus:ring-blue-500 focus:border-blue-500 ".concat(D?"border-red-300":"border-gray-300"),maxLength:100}),(0,r.jsxs)("div",{className:"mt-1 flex justify-between items-center",children:[(0,r.jsx)("p",{className:"text-xs text-gray-500",children:"This will be used as the email subject line. Keep it concise and descriptive."}),(0,r.jsxs)("p",{className:"text-xs ".concat(t.shortDescription.length>90?"text-orange-500":100===t.shortDescription.length?"text-red-500":"text-gray-500"),children:[t.shortDescription.length,"/100"]})]}),D&&(0,r.jsx)("div",{className:"mt-2 p-2 bg-red-50 border border-red-200 rounded-md",children:(0,r.jsx)("p",{className:"text-sm text-red-800",children:(0,r.jsx)("strong",{children:"Short Description is required"})})})]}),(0,r.jsxs)("div",{children:[(0,r.jsxs)("label",{htmlFor:"description",className:"block text-sm font-medium text-gray-700 mb-2",children:["Detailed Description ",(0,r.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,r.jsx)("textarea",{id:"description",name:"description",rows:6,value:t.description,onChange:e=>{let t=e.target.value;s(e=>({...e,description:t})),L&&t.trim()&&_(!1)},onBlur:()=>{var e;(null===(e=t.description)||void 0===e?void 0:e.trim())||_(!0)},placeholder:"Please provide a detailed description of the incident or issue...",className:"w-full px-3 py-2 border rounded-md focus:ring-2 focus:ring-blue-500 focus:border-blue-500 resize-vertical ".concat(L?"border-red-300":"border-gray-300"),maxLength:1e3}),(0,r.jsx)("div",{className:"mt-1 flex justify-end",children:(0,r.jsxs)("p",{className:"text-xs ".concat(t.description.length>900?"text-orange-500":1e3===t.description.length?"text-red-500":"text-gray-500"),children:[t.description.length,"/1000"]})}),L&&(0,r.jsx)("div",{className:"mt-2 p-2 bg-red-50 border border-red-200 rounded-md",children:(0,r.jsx)("p",{className:"text-sm text-red-800",children:(0,r.jsx)("strong",{children:"Detailed Description is required"})})})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{htmlFor:"attachment",className:"block text-sm font-medium text-gray-700 mb-2",children:"Attachments (Optional)"}),(0,r.jsx)("input",{type:"file",id:"attachment",name:"attachment",onChange:e=>{var r;let a=Array.from(null!==(r=e.target.files)&&void 0!==r?r:[]);if(z(""),a.length>F){z("Maximum ".concat(F," files allowed. You selected ").concat(a.length," files."));return}let i=[],n=[];if(a.forEach(e=>{let t=M(e);t?i.push(t):n.push(e)}),i.length>0){z(i.join(" "));return}if(t.attachments.length+n.length>F){z("Maximum ".concat(F," files allowed. You already have ").concat(t.attachments.length," files selected."));return}s(e=>({...e,attachments:[...e.attachments,...n]}))},accept:".pdf,.doc,.docx,.txt,.jpg,.jpeg,.png,.gif",multiple:!0,className:"w-full px-3 py-2 border rounded-md focus:ring-2 focus:ring-blue-500 focus:border-blue-500 file:mr-4 file:py-2 file:px-4 file:rounded-md file:border-0 file:text-sm file:font-medium file:bg-blue-50 file:text-blue-700 hover:file:bg-blue-100 ".concat(T?"border-red-300":"border-gray-300")}),(0,r.jsxs)("p",{className:"mt-1 text-xs text-gray-500",children:["Upload up to ",F," files (max 1MB each). Allowed types: PDF, DOC, DOCX, TXT, JPG, PNG, GIF"]}),T&&(0,r.jsx)("div",{className:"mt-2 p-2 bg-red-50 border border-red-200 rounded-md",children:(0,r.jsx)("p",{className:"text-sm text-red-800",children:(0,r.jsx)("strong",{children:T})})}),t.attachments.length>0&&(0,r.jsxs)("div",{className:"mt-3 space-y-2",children:[(0,r.jsxs)("p",{className:"text-sm font-medium text-gray-700",children:["Selected Files (",t.attachments.length,"/",F,"):"]}),(0,r.jsx)("div",{className:"space-y-2",children:t.attachments.map((e,t)=>(0,r.jsxs)("div",{className:"flex items-center justify-between p-2 bg-green-50 border border-green-200 rounded-md",children:[(0,r.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,r.jsx)("svg",{className:"w-4 h-4 text-green-600",fill:"currentColor",viewBox:"0 0 20 20",children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M4 4a2 2 0 012-2h4.586A2 2 0 0112 2.586L15.414 6A2 2 0 0116 7.414V16a2 2 0 01-2 2H6a2 2 0 01-2-2V4zm2 6a1 1 0 011-1h6a1 1 0 110 2H7a1 1 0 01-1-1zm1 3a1 1 0 100 2h6a1 1 0 100-2H7z",clipRule:"evenodd"})}),(0,r.jsx)("span",{className:"text-sm text-green-700 font-medium",children:e.name}),(0,r.jsxs)("span",{className:"text-xs text-green-600",children:["(",(e.size/1024).toFixed(1)," KB)"]})]}),(0,r.jsx)("button",{type:"button",onClick:()=>Y(t),className:"text-red-600 hover:text-red-800 hover:bg-red-100 rounded-full p-1 transition-colors",children:(0,r.jsx)("svg",{className:"w-4 h-4",fill:"
1currentColor",viewBox:"0 0 20 20",children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})})})]},t))})]})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Watchers (CC Recipients)"}),(0,r.jsx)("div",{className:"space-y-3",children:(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsxs)("div",{className:"flex space-x-2",children:[(0,r.jsx)("div",{className:"flex-1 h-[52px] p-2 border rounded-md focus-within:ring-2 focus-within:ring-blue-500 focus-within:border-blue-500 bg-white min-w-0 ".concat((null!=f?f:v)?"border-red-300 focus-within:ring-red-500 focus-within:border-red-500":"border-gray-300"),children:(0,r.jsx)("div",{className:"h-full flex items-center min-w-0",children:(0,r.jsxs)("div",{className:"flex gap-2 overflow-x-auto overflow-y-hidden w-full min-w-0",style:{scrollbarWidth:"thin",scrollbarColor:"#d1d5db #f3f4f6"},children:[t.watchers.map((e,t)=>(0,r.jsxs)("div",{className:"inline-flex items-center gap-2 px-3 py-1.5 bg-blue-100 text-blue-800 text-sm rounded-full border border-blue-200 whitespace-nowrap flex-shrink-0 h-9",children:[(0,r.jsx)("span",{className:"truncate max-w-[200px]",children:e}),(0,r.jsx)("button",{type:"button",onClick:()=>Z(t),className:"text-blue-600 hover:text-blue-800 hover:bg-blue-200 rounded-full p-0.5 transition-colors flex-shrink-0",children:(0,r.jsx)("svg",{className:"w-4 h-4",fill:"currentColor",viewBox:"0 0 20 20",children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})})})]},t)),(0,r.jsx)("input",{type:"email",value:x,"data-watcher-input":!0,onChange:e=>{p(e.target.value),f&&g(""),G(e.target.value)},placeholder:0===t.watchers.length?"Enter email address to add as watcher":"",className:"min-w-[250px] outline-none border-none bg-transparent text-sm flex-shrink-0 h-9 ".concat(v?"text-red-500":""),onKeyPress:e=>"Enter"===e.key&&(e.preventDefault(),O()),onKeyDown:e=>{"Backspace"===e.key&&!x&&t.watchers.length>0&&Z(t.watchers.length-1)}})]})})}),(0,r.jsx)(i.Z,{type:"button",variant:i.W.CYAN,onClick:O,className:"px-4 py-2 whitespace-nowrap",children:"Add"})]}),(null!=f?f:v)&&(0,r.jsx)("div",{className:"mt-2 p-2 bg-red-50 border border-red-200 rounded-md",children:(0,r.jsx)("p",{className:"text-sm text-red-800",children:(0,r.jsx)("strong",{children:null!=f?f:v})})})]})})]}),(0,r.jsxs)("div",{className:"flex justify-end space-x-4",children:[(0,r.jsx)(i.Z,{type:"button",variant:i.W.RED,onClick:()=>{s(e=>
1({...e,shortDescription:"",description:"",attachments:[],watchers:[],priority:"medium"}));let e=document.getElementById("attachment");e&&(e.value=""),h(!1),m(null),g(""),b(""),z(""),S(!1),_(!1),A(!1),W([]),p("")},className:"px-6 py-2",children:"Clear Form"}),(0,r.jsx)(i.Z,{type:"submit",variant:i.W.CYAN,disabled:o||j,className:"px-6 py-2",children:o?"Submitting...":"Submit Ticket"})]})]})]}),(0,r.jsx)(n,{isOpen:w,onRedirectToLogin:()=>{window.location.href="/login"},errorType:k}),d&&(0,r.jsx)(l,{isOpen:u,onClose:()=>{h(!1),window.location.reload()},ticketId:d})]})}}},function(e){e.O(0,[2971,6997,1744],function(){return e(e.s=44526)}),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.