PageSourceSearch

https://rekrutiq.ai/static/js/751.eab843f8.chunk.js

js rekrutiq.ai collected 2026-10-05 15:24:50 UTC 36,790 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkyfy_employee=self.webpackChunkyfy_employee||[]).push([[751],{80751(e,t,a){a.r(t),a.d(t,{default:()=>Z});var l=a(84740),s=a(91949),n=a.n(s),r=a(16250),i=a(76865),o=a(63850),c=a(29303),d=a(66301),u=a(72108),m=a(32092),p=a(41094),h=a(78061),x=a(79687),v=a(57149),b=a(71468),f=a(97087),j=a(91739),g=a(39197),y=a(80573),N=a(18667),_=a(45305),k=a.n(_),w=a(10171),S=a.n(w),C=a(36551),A=a(99443),O=a(31310),P=a(75793),F=a(31248),D=a(93339),R=a.n(D),z=a(47363),I=a(59879),T=a(9336);function Y(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,l)}return a}function U(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?Y(Object(a),!0).forEach(function(t){H(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Y(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}function H(e,t,a){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var l=a.call(e,t||"default");if("object"!=typeof l)return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const M=function(e){let t=e.isOpen,a=e.handleModal,s=e.data,n=e.handleForm,r=e.attachment,d=void 0!==r&&r;const u=h.Ik().shape({to:h.Yj().required("To is required"),content:h.Yj().required("Content is required"),subject:h.Yj().required("Subject is required")}),m=(0,l.useRef)(null);return(0,T.jsx)(l.Fragment,{children:(0,T.jsx)(z.A,{handle:".modal-header",nodeRef:m,children:(0,T.jsx)("div",{ref:m,children:(0,T.jsxs)(i.A,{isOpen:t,size:"lg",children:[(0,T.jsx)("strong",{className:"w-100",children:(0,T.jsx)(o.A,{toggle:()=>a(!1),className:"modal-header",children:"Send Mail"})}),(0,T.jsx)(p.l1,{initialValues:U({to:"",cc:"",bcc:"",subject:"",content:"",attachment:[]},s||{}),enableReinitialize:!0,validationSchema:u,onSubmit:e=>{n(e)},children:e=>{var t;let l=e.values,s=e.errors,n=e.touched,r=e.handleChange,i=e.handleSubmit,o=e.setFieldValue;e.isSubmitting;return(0,T.jsx)("form",{onSubmit:i,children:(0,T.jsxs)(c.A,{className:"p-4 py-2",children:[(0,T.jsxs)("div",{className:"compose-content",children:[(0,T.jsxs)("div",{className:"form-group mb-2",children:[(0,T.jsx)("label",{className:"text-black font-w500",children:"To:"}),(0,T.jsx)("input",{type:"text",className:"form-control bg-transparent",placeholder:" To:",value:l.to,name:"to",onChange:r}),(0,T.jsx)("div",{className:"invalid-feedback animated fadeInUp",style:{display:"block"},children:s.to&&n.to&&s.to})]}),(0,T.jsxs)("div",{className:"form-group mb-2",children:[(0,T.jsx)("label",{className:"text-black font-w500",children:"Cc:"}),(0,T.jsx)("input",{type:"text",className:"form-control bg-transparent",placeholder:" Cc:",value:l.cc,name:"cc",onChange:r}),(0,T.jsx)("div",{className:"invalid-feedback animated fadeInUp",style:{display:"block"},children:s.cc&&n.cc&&s.cc})]}),(0,T.jsxs)("div",{className:"form-group mb-2",children:[(0,T.jsx)("label",{className:"text-black font-w500",children:"Bcc:"}),(0,T.jsx)("input",{type:"text",className:"form-control bg-transparent",placeholder:" Bcc:",value:l.bcc,name:"bcc",onChange:r}),(0,T.jsx)("div",{className:"invalid-feedback animated fadeInUp",style:{display:"block"},children:s.bcc&&n.bcc&&s.bcc})]}),(0,T.jsxs)("div",{className:"form-group mb-2",children:[(0,T.jsx)("label",{className:"text-black font-w500",children:"Subject:"}),(0,T.jsx)("input",{type:"text",className:"form-control bg-transparent",placeholder:" Subject:",value:l.subject,name:"subject",onChange:r}),(0,T.jsx)("div",{className:"invalid-feedback animated fadeInUp",style:{display:"block"},children:s.subject&&n.subject&&s.subject})]}),(0,T.jsxs)("div",{className:"form-group mb-2",children:[(0,T.jsx)(F.aF,{editor:R(),data:l.content||"",config:{toolbar:["heading","|","bold","italic","link","bulletedList","numberedList","blockQuote","undo","redo"]},onReady:e=>{},onChange:(e,t)=>
1{o("content",t.getData())}}),(0,T.jsx)("div",{className:"invalid-feedback animated fadeInUp",style:{display:"block"},children:s.content&&n.content&&s.content})]}),d&&(0,T.jsxs)("div",{className:"form-group mb-2",children:[(0,T.jsx)("label",{className:"form-label font-w600",children:"Attachment:"}),(0,T.jsxs)("div",{className:"input-group",children:[(0,T.jsx)(S(),{style:{display:"flex",alignItems:"center",padding:"6px 12px",height:"36px",border:"1px solid #ced4da",borderRadius:"0.25rem",flex:1,cursor:"pointer"},multiple:!0,maxFileSize:5e6,minFileSize:0,clickable:!0,onChange:e=>{const t=["image/jpeg","image/jpg","image/png","application/pdf","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/msword","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],a=[];for(let l of e)t.includes(l.type)?l.size>5242880?k().fire({icon:"error",title:"File is too large",text:"Files must be smaller than 5 MB."}):a.push(l):k().fire({icon:"error",title:"Invalid file type",text:"Only JPEG, PNG or PDF files are allowed."});a.length>0&&o("attachment",a)},children:(null===(t=l.attachment)||void 0===t?void 0:t.length)>0?"Files Uploaded":"Click to Upload"}),(0,T.jsx)("div",{className:"input-group-append",style:{display:"flex",alignItems:"center",border:"1px solid #ced4da",borderRadius:"0 0.25rem 0.25rem 0",height:"36px",padding:"0 0.75rem",backgroundColor:"#e9ecef"},children:(0,T.jsx)("span",{children:(0,T.jsx)(I.t76,{size:20})})})]}),(0,T.jsx)("div",{className:"text-danger mt-2",children:"You may upload multiple files, including images, PDFs, DOCX documents, and Excel files."})]})]}),(0,T.jsx)("hr",{}),(0,T.jsxs)("div",{className:"d-flex justify-content-end m-3",children:[(0,T.jsxs)("button",{className:"btn btn-primary btn-sl-sm mx-2",type:"submit",children:[(0,T.jsx)("span",{className:"mx-2",children:(0,T.jsx)("i",{className:"fa fa-paper-plane"})}),"Send"]}),(0,T.jsxs)("button",{className:"btn btn-danger light btn-sl-sm",type:"button",onClick:()=>a(),children:[(0,T.jsx)("span",{className:"mx-2",children:(0,T.jsx)("i",{className:"fa fa-times","aria-hidden":"true"})}),"Discard"]})]})]})})}})]})})})})};var q=a(68133),W=a(89954),E=a(31465),L=a(78865),B=a(9679),V=a.n(B);const G=["resolution_remarks","assigned_tester"];function J(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,l)}return a}function Q(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?J(Object(a),!0).forEach(function(t){K(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):J(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}function K(e,t,a){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var l=a.call(e,t||"default");if("object"!=typeof l)return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function X(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var l,s,n,r,i=[],o=!0,c=!1;try{if(n=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;o=!1}else for(;!(o=(l=n.call(a)).done)&&(i.push(l.value),i.length!==t);o=!0);}catch(e){c=!0,s=e}finally{try{if(!o&&null!=a.return&&(r=a.return(),Object(r)!==r))return}finally{if(c)throw s}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return $(e,t);var a={}.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?$(e,t):void 0}}
1(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,l=Array(t);a<t;a++)l[a]=e[a];return l}const Z=(0,b.Ng)(e=>({orgData:e.master.orgData}))(function(e){const t=X((0,l.useState)({client:"",screen:"",ticket_status:"",assignto:[],status:""}),2),a=t[0],s=t[1],b=X((0,l.useState)(null),2),_=b[0],w=b[1],F=X((0,l.useState)(10),2),D=F[0],R=F[1],z=X((0,l.useState)(1),2),I=z[0],Y=z[1],U=X((0,l.useState)(!0),2),H=(U[0],U[1]),B=X((0,l.useState)(""),2),J=(B[0],B[1],X((0,l.useState)([]),2)),K=J[0],$=J[1],Z=X((0,l.useState)(),2),ee=(Z[0],Z[1]),te=X((0,l.useState)([]),2),ae=te[0],le=te[1],se=X((0,l.useState)(!1),2),ne=se[0],re=se[1],ie=X((0,l.useState)(!1),2),oe=ie[0],ce=ie[1],de=X((0,l.useState)({}),2),ue=de[0],me=de[1],pe=X((0,l.useState)([]),2),he=pe[0],xe=(pe[1],X((0,l.useState)(!1),2)),ve=xe[0],be=xe[1],fe=X((0,l.useState)([]),2),je=fe[0],ge=fe[1],ye=X((0,l.useState)(""),2),Ne=(ye[0],ye[1]),_e=X((0,l.useState)(!0),2),ke=_e[0],we=_e[1],Se=()=>{we(!ke)},Ce=(0,l.useRef)(null),Ae=(0,l.useRef)(Math.random()),Oe=X((0,l.useState)([]),2),Pe=(Oe[0],Oe[1]);(0,l.useEffect)(()=>{Ve(),Le()},[]),(0,l.useEffect)(()=>{Be()},[I,D,a]),(0,l.useEffect)(()=>{var t;if((null===(t=e.orgData)||void 0===t?void 0:t.length)>0){var a;const t={addr:Object.values((null===e||void 0===e||null===(a=e.orgData[0])||void 0===a?void 0:a.Corp_offcadr)||{}).reduce((e,t)=>t?e+t+", ":e+t,""),org_name:e.orgData[0].org_name};ee(t)}},[e.orgData]);const Fe=()=>{re(!ne)},De=(0,A._Uh)().mutate,Re=(0,A.UJG)().mutate,ze=(0,A.zL5)().mutate,Ie=(0,A.hiA)().mutate,Te=(0,A.Akg)().mutate,Ye=(0,A.hHP)().mutate,Ue=(0,O.ct)().mutate,He=X((0,l.useState)([]),2),Me=He[0],qe=He[1],We=(0,A.YI0)().mutate,Ee=(0,O.Uz)().mutate,Le=()=>{We({},{onSuccess:async e=>{Array.isArray(e)?qe(e.map((e,t)=>Q(Q({},e),{},{sno:t+1}))):qe([])}})},Be=()=>{De(Q(Q({},a),{},{page:I,page_size:D}),{onSuccess:async e=>{let t=e.count,a=(e.next,e.previous,e.results);null!==a&&void 0!==a&&a.length?($(a),w(t),H(!0)):($([]),w(0))}}),Ye({},{onSuccess:async e=>{Pe(e)}})},Ve=()=>{Ie({},{onSuccess:async e=>{le(e.map(e=>({label:e.co_name,value:e.id})))}})},Ge=e=>{if(delete e.attachment,oe)if("resolved"!==e.status&&"closed"!==e.status){e.resolution_remarks;const t=e.assigned_tester,a=function(e,t){if(null==e)return{};var a,l,s=function(e,t){if(null==e)return{};var a={};for(var l in e)if({}.hasOwnProperty.call(e,l)){if(-1!==t.indexOf(l))continue;a[l]=e[l]}return a}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],-1===t.indexOf(a)&&{}.propertyIsEnumerable.call(e,a)&&(s[a]=e[a])}return s}(e,G);ze(Q(Q({},a),{},{assigned_tester_id:t}),{onSuccess:async()=>{Be(),Fe()}})}else"resolved"===e.status&&Ue({id:e.id,resolution_remarks:e.resolution_remarks,status:e.status},{onSuccess:async()=>{Be(),Fe()}})},Je=e=>{Re({id:e},{onSuccess:async e=>{var t,a,l;me(e);const s=null===(t=JSON.parse(localStorage.getItem("user")))||void 0===t?void 0:t.emp_code;ge(null!==(a=null===e||void 0===e||null===(l=e.ticket_log)||void 0===l?void 0:l.map(e=>{var t,a;return{[s===(null===e||void 0===e||null===(t=e.user)||void 0===t?void 0:t.id)?"sent":"received"]:e.to,timestamp:e.timestamp,user:null===e||void 0===e||null===(a=e.user)||void 0===a?void 0:a.emp_name,desc:null===e||void 0===e?void 0:e.desc,from:null===e||void 0===e?void 0:e.from,person:null===e||void 0===e?void 0:e.person,for:null===e||void 0===e?void 0:e.for,attachment:null===e||void 0===e?void 0:e.attachment}}))&&void 0!==a?a:[]),re(!0),ce(!0)}})},Qe=[{Header:"Track id",accessor:"trackid",width:130},{Header:"User",accessor:"user_name",width:200,Cell:e=>{let t=e.value;return(0,T.jsx)(x.A,{title:(0,P.n)(t),children:(0,T.jsx)("span",{className:"text-capitalize",children:t?(0,P.n)(t):""})})}},{Header:"Subject",accessor:"subject",width:250,Cell:e=>{let t=e.value;return(0,T.jsx)(x.A,{title:(0,P.n)(t),children:(0,T.jsx)("span",{className:"text-capitalize",children:t?(0,P.n)(t):""})})}},{Header:"Created at",accessor:"created_at",width:180,Cell:e=>{let t=e.value;return t?n()(t).format("DD-MM-YYYY HH:mm:ss"):""}},{Header:"Status",accessor:"status",Cell:e=>{let t=e.value;return(0,T.jsx)("span",{className:"text-capitalize",children:null===t||void 0===t?void 0:t.replace("_"," ")})}},{Header:"Closed On",accessor:e=>e,Cell:e=>{let t=e.value;return t.ticket_close_date?n()(t.ticket_close_date).format("DD-MM-YYYY"):t.updated_at&&"00:20:01"===n()(t.updated_at).format("HH:mm:ss")?(0,T.jsx)(x.A,{title:(0,T.jsx)("span",{className:"text-white",style:{fontSize:"13px"},children:"Auto-Closed"}),className:"m-0",children:(0,T.jsx)("span",{className:"text-danger cursor-pointer",children:(0,T.jsx)("strong",{children:n()(null===t||void 0===t?void 0:t.updated_at).format("DD-MM-YYYY")}
1)})}):"Pending"}},{Header:"User Rating",accessor:"rating",Cell:e=>{var t;let a=e.value,l=e.row;return a?(0,T.jsx)(T.Fragment,{children:Array.from({length:a},(e,t)=>(0,T.jsx)(g.gt3,{color:"#ffd900",size:16},t))}):l.original.updated_at&&"00:20:01"===n()(null===l||void 0===l||null===(t=l.original)||void 0===t?void 0:t.updated_at).format("HH:mm:ss")?"":"Pending"}},{Header:"Action",accessor:e=>e,disableSortBy:!0,textAlign:"center",Cell:e=>{let t=e.value;return(0,T.jsxs)("div",{children:["reopened"===t.team_status&&(0,T.jsx)(x.A,{title:"Reopened",children:(0,T.jsx)("span",{children:(0,T.jsx)(r.Qk3,{size:25,color:"red",style:{marginRight:"10px",cursor:"pointer"}})})}),(0,T.jsx)(x.A,{title:"Edit",children:(0,T.jsx)(m.A,{style:{marginRight:"10px",cursor:"pointer",color:"blue"},onClick:()=>Je(t.id)},"edit")})]})}}],Ke=h.Ik().shape({priority:h.Yj().nullable().required("Priority is Required"),ticket_status:h.Yj().nullable().required("Ticket Status is Required"),status:h.Yj().nullable().required("Status is Required"),classification:h.Yj().nullable().required("Classification is Required"),assignto:h.YO().of(h.Ik().shape({employee_name:h.Yj().required("Employee name is required")})).min(1,"Please assign to at least one employee").required("Assign To is required"),assigned_tester:h.ai().typeError("Please select a Testing Member").required("Please assign a tester")}),Xe=K.map(e=>{const t=e.trackid,a=e.schema_name,l=e.screen,s=e.issue,r=e.attachment_url,i=e.user_mail,o=e.user_name,c=e.created_on,d=void 0===c?e.created_at?n()(e.created_at).format("lll"):"":c,u=e.priority,m=e.classification,p=e.assign_to,h=void 0===p?String(e.assignto):p,x=e.ticket_status,v=e.updated_on,b=void 0===v?e.updated_at?n()(e.updated_at).format("lll"):"":v,f=e.status,j=e.ticket_closed_on;return{trackid:t,schema_name:a,screen:l,issue:s,attachment_url:r,user_mail:i,user_name:o,created_on:d,priority:u,classification:m,assign_to:h,ticket_status:x,updated_on:b,status:f,ticket_closed_on:void 0===j?e.ticket_close_date?n()(e.ticket_close_date).format("lll"):"":j,resolution_remarks:e.resolution_remarks}}),$e=Object.entries(Me.reduce((e,t)=>{const a=t.extra_details.team||"Others";return e[a]||(e[a]=[]),e[a].push({label:t.employee_name,value:t}),e},{})).map(e=>{let t=X(e,2);return{label:t[0],options:t[1]}}),Ze=Object.entries(Me.reduce((e,t)=>{const a=t.extra_details.team||"Others";return e[a]||(e[a]=[]),e[a].push({label:t.employee_name,value:t.id}),e},{})).map(e=>{let t=X(e,2);return{label:t[0],options:t[1]}}),et=(0,l.useCallback)(e=>{e?De(Q(Q({},a),{},{search:e}),{onSuccess:async e=>{let t=e.count,a=(e.next,e.previous,e.results);null!==a&&void 0!==a&&a.length?($(a),H(!0),w(t)):($([]),w(0))}}):(H(!0),Be())},[a]);return(0,l.useCallback)((0,C.debounce)(e=>{et(e)},500),[a]),(0,T.jsxs)(l.Fragment,{children:[(0,T.jsx)(L.A,{title:"Support Tickets",parent:"Masters",actionBtn:(0,T.jsxs)("div",{className:"d-flex justify-content-between align-items-center",children:[(0,T.jsxs)("div",{className:"col me-2",children:[(0,T.jsx)("label",{htmlFor:"validationCustom01",className:"text-black font-w600",children:"Client:"}),(0,T.jsx)(W.A,{name:"client",value:a.client,onChange:e=>{s(t=>Q(Q({},t),{},{client:e}))},options:[{label:"All",value:""},...ae.map(e=>({label:e.label,value:e.value}))],label_field:"label",val_field:"value"})]}),(0,T.jsxs)("div",{className:"col me-2",children:[(0,T.jsx)("label",{htmlFor:"validationCustom01",className:"text-black font-w600",children:"Status:"}),(0,T.jsx)(W.A,{name:"status",value:a.status,onChange:e=>{s(t=>Q(Q({},t),{},{status:e}))},options:[{label:"All",value:""},{label:"Open",value:"open"},{label:"Assigned",value:"assigned"},{label:"In Progress",value:"work_in_progress"},{label:"Not Resolved",value:"not_resolved"},{label:"Resolved",value:"resolved"},{label:"Closed",value:"closed"}],val_field:"value",label_field:"label"})]}),(0,T.jsxs)("div",{className:"col-md-6 me-2",children:[(0,T.jsx)("label",{htmlFor:"validationCustom01",className:"text-black font-w600",children:"Search:"}),(0,T.jsx)("input",{className:"form-control",name:"screen",value:a.screen,placeholder:"Search Screens",onChange:e=>{s(t=>Q(Q({},t),{},{screen:e.target.value}))},style:{width:"100%"}})]})]})}),(0,T.jsx)(M,{isOpen:ve,data:{to:ne?null===ue||void 0===ue?void 0:ue.user_mail:[...new Set(he.map(e=>e.user_mail))].toString(),cc:"",bcc:"",subject:"yfy\xae Support Ticket Id (#".concat(null===ue||void 0===ue?void 0:ue.trackid,") \u2013 Resolution Update \u2705"),content:"\n      <p>Dear ".concat(ne?null===ue||void 0===ue?void 0:ue.user_name:"User",",</p>\n      <p>Thank you for reaching out to Team yfy.</p>\n      <p>We are pleased to inform you that your support ticket Id <strong>(#").concat(null===ue||void 0===ue?void 0:ue.trackid,")</strong> regarding the yfy\xae application has been successfully resolved.</p>\n      <p>We sincerely appreciate your cooperation and patience throughout this process. If you experience any further issues or have additional questions, please feel free to contact us.</p>\n      <p>Thank you for choosing yfy\xae platform services. We value your trust and remain committed to providing you with exceptional support.</p>\n      <p><strong>Note: </strong>For any future concerns or issues, please raise a new ticket through yfyapp.com using your login. This will help us track and provide a faster and more efficient resolution.</p>")},attachment:!0,handleForm:e=>(e=>{const t=e.to,a=e.cc,l=e.bcc,s=e.subject,n=e.content,r=e.attachment,i={to:t.split(","),cc:a?a.split(","):[],bcc:l?l.split(","):[],subject:s,content:n+'<table cellpadding="0" cellspacing="0" border="0" width="100%">\n                            <tr>\n                              <td style="line-height:15px;">\n                                Best regards,\n                              </td>\n                            </tr>\n                            <tr>\n                              <td style="line-height:15px;">\n                                Teamyfy\n                              </td>\n                            </tr>\n                            <tr>\n                              <td style="line-height:15px;">\n                                Support Team\n                              </td>\n                            </tr>\n                            <tr>\n                              <td style="line-height:15px;">\n                                +91 812 138 2224\n                              </td>\n                            </tr>\n                        </table>'},o=new FormData;o.append("data",JSON.stringify(i)),r&&r.length>
10&&r.forEach(e=>{o.append(e.name,e)}),Te(o,{onSuccess:async e=>{"done"===e&&be(!1)}})})(e),handleModal:e=>{be(e)}}),(0,T.jsx)(i.A,{isOpen:ne,toggle:Fe,style:{maxWidth:"1100px"},children:(0,T.jsx)("div",{children:(0,T.jsx)(p.l1,{initialValues:ue,validationSchema:Ke,enableReinitialize:!0,onSubmit:e=>{Ge(e)},children:e=>{let t=e.values,a=e.errors,l=e.handleChange,s=e.handleSubmit,r=e.setFieldValue,i=e.isSubmitting;return(0,T.jsxs)("form",{className:"needs-validation",onSubmit:s,children:[(0,T.jsx)("strong",{className:"w-100",children:(0,T.jsx)(o.A,{toggle:Fe,children:(0,T.jsxs)("div",{children:[t.trackid," :"," ",n()(t.created_at).format("LLL")," ",t.updated_at&&"00:20:01"===n()(t.updated_at).format("HH:mm:ss")?(0,T.jsx)("span",{className:"text-danger",children:(0,T.jsx)("strong",{children:" (Auto-Closed)"})}):""]})})}),(0,T.jsx)(c.A,{children:(0,T.jsxs)("div",{className:"row",children:[(0,T.jsxs)("div",{className:"col-md-6",children:[(0,T.jsx)(f.A,{activeKey:ke?"0":null,style:{border:"1px solid #ccc",borderRadius:"8px",marginBottom:"20px",backgroundColor:"#f9f9f9",boxShadow:"0 2px 4px rgba(0,0,0,0.1)",padding:"5px"},children:(0,T.jsx)(j.A,{children:(0,T.jsxs)(f.A.Item,{eventKey:"0",children:[(0,T.jsxs)(f.A.Header,{as:j.A.Header,eventKey:"0",onClick:Se,style:{cursor:"pointer",fontWeight:"bold",padding:"10px",fontSize:"18px",display:"flex",color:"#4d4d4d",justifyContent:"space-between",alignItems:"center"},children:["Ticket Details"," ",ke?(0,T.jsx)(g.Ucs,{}):(0,T.jsx)(g.Vr3,{})]}),(0,T.jsx)(f.A.Body,{eventKey:"0",children:(0,T.jsx)(j.A.Body,{children:(0,T.jsxs)("div",{className:"row",children:[(0,T.jsxs)("div",{className:"col-md-4 mb-2",children:[(0,T.jsx)("label",{children:"Subscriber"}),(0,T.jsx)("div",{className:"contact-name",children:t.schema_name})]}),(0,T.jsxs)("div",{className:"col-md-4 mb-2",children:[(0,T.jsx)("label",{children:"User"}),(0,T.jsx)("div",{className:"contact-name",children:t.user_name})]}),(0,T.jsxs)("div",{className:"col-md-4 mb-2",children:[(0,T.jsx)("label",{children:"User Mail"}),(0,T.jsx)("div",{className:"contact-name",children:t.user_mail})]}),(0,T.jsxs)("div",{className:"col-md-4 mb-2",children:[(0,T.jsx)("label",{children:"Created on"}),(0,T.jsx)("div",{className:"contact-name",children:n()(t.created_at).format("DD-MMM-YYYY HH:mm A")})]}),(0,T.jsxs)("div",{className:"col-md-4 mb-2",children:[(0,T.jsx)("label",{htmlFor:"validationCustom01",children:"Task Id"}),(0,T.jsx)("div",{className:"contact-name",children:t.id})]}),(0,T.jsxs)("div",{className:"col-md-4 mb-2",children:[(0,T.jsx)("label",{htmlFor:"validationCustom01",children:"SLA Id"}),t.sla_configid]}),(0,T.jsxs)("div",{className:"col-md-8 mb-2",children:[(0,T.jsx)("label",{children:"Screen"}),(0,T.jsx)("div",{className:"contact-name",style:{wordWrap:"break-word",overflowWrap:"break-word",whiteSpace:"pre-wrap"},children:t.screen})]}),(0,T.jsxs)("div",{className:"col-md-4 mb-2",children:[(0,T.jsx)("label",{children:"Attachment"}),(0,T.jsx)("div",{className:"contact-name",children:t.attachment_url?t.attachment_url.includes(".docx")||t.attachment_url.includes(".xlsx")||t.attachment_url.includes(".xls")?(0,T.jsx)("div",{className:"action-buttons cursor-pointer",onClick:()=>{(0,q.iQ)(t.attachment_url)},children:(0,T.jsx)(x.A,{title:"Download Attachment",children:(0,T.jsx)("span",{children:(0,T.jsx)(g.WCW,{size:20,color:"red"})})})}):(0,T.jsx)(T.Fragment,{children:t.attachment_url.includes(".docx")&&t.attachment_url.includes(".xlsx")&&t.attachment_url.includes(".xls")?"":(0,T.jsx)("div",{className:"action-buttons cursor-pointer",onClick:()=>{(0,q.e4)(t.attachment_url)},children:(0,T.jsx)(x.A,{title:"View Attachment",children:(0,T.jsx)("span",{children:(0,T.jsx)(g.Ny1,{size:20,color:"green"})})})})}):(0,T.jsx)("p",{className:"text-danger",children:"No file attached"})})]}),(0,T.jsxs)("div",{className:"col-md-4 mb-2",children:[(0,T.jsx)("label",{children:"User Priority"}),(0,T.jsx)("div",{className:"contact-name",children:(0,P.n)(t.user_priority)})]}),(0,T.jsxs)("div",{className:"col-md-8 mb-2",children:[(0,T.jsx)("label",{children:"Subject"}),(0,T.jsx)("div",{className:"contact-name",children:t.subject})]}),(0,T.jsxs)("div",{className:"col-md-12 mb-2",children:[(0,T.jsx)("label",{children:"Issue"}),(0,T.jsx)("textarea",{className:"form-control",name:"resolution_remarks",rows:3,value:t.issue,disabled:!0})]})]})})})]})})}),(0,T.jsxs)("div",{className:"row",children:[(0,T.jsxs)("div",{className:"col-md-6 mb-2",children:[(0,T.jsx)("label",{htmlFor:"validationCustom01",children:"Priority"}),(0,T.jsx)(W.A,{name:"priority",value:t.priority,options:[{label:"P1",value:"p1"},{label:"P2",value:"p2"},{label:"P3",value:"p3"},{label:"P4",value:"p4"}],onChange:e=>r("priority",e),label_field:"label",val_field:"value"}),(0,T.jsx)("span",{className:"text-danger",children:a.priority})]}),(0,T.jsxs)("div",{className:"col-md-6 mb-2",children:[(0,T.jsx)("label",{htmlFor:"validationCustom01",children:"Classification"}),(0,T.jsx)(W.A,{name:"classification",value:t.classification,options:[{label:"Technical",value:"technical"},{label:"Functional",value:"Functional"},{label:"Usability",value:"usability"}],onChange:e=>r("classification",e),label_field:"label",val_field:"value"}),(0,T.jsx)("span",{className:"text-danger",children:a.classification})]}),(0,T.jsxs)("div",{className:"col-md-6 mb-2",children:[(0,T.jsx)("label",{htmlFor:"validationCustom01",children:"Assign To"}),(0,T.jsx)(v.Ay,{isSearchable:!0,isMulti:!0,name:"assignto",value:t.assignto.map(e=>({label:e.employee_name,value:e})),options:$e,onChange:e=>{r("assignto",e.map(e=>e.value))},styles:{menu:e=>Q(Q({},e),{},{zIndex:9999,width:"max-content",minWidth:"100%"}),menuPortal:e=>Q(Q({},e),{},{zIndex:9999,textTransform:"capitalize"}),control:(e,t)=>Q(Q({},e),{},{borderColor:t.isFocused?"var(--purple-medium)":"var(--soft-purple-border)",boxShadow:"none",minHeight:"2rem",height:t.isMulti?"auto":"2.8rem","&:hover":{borderColor:"var(--purple-light)",color:"var(--purple-light)"}})},theme:e=>Q(Q({},e),{},{borderRadius:"12px",colors:Q(Q({},e.colors),{},{text:"var(--soft-text-dark)",primary25:"var(--purple-extra-light)",primary:"var(--purple-medium)",neutral10:"var(--soft-purple-border)",neutral50:"var(--soft-text-light)"})})}),(0,T.jsx)("span",{className:"text-danger",children:a.assignto})]}),(0,T.jsxs)("div",{className:"col-md-6 mb-2",children:[(0,T.jsx)("label",{htmlFor:"validationCustom01",children:"Testing Assigned to:"}),(0,T.jsx)(W.A,{isSearchable:!0,name:"assigned_tester",value:t.assigned_tester,options:Ze,onChange:e=>{r("assigned_tester",e,!0)},styles:{menu:e=>Q(Q({},e),{},{zIndex:9999,width:"max-content",minWidth:"100%"}),menuPortal:e=>Q(Q({},e),{},{zIndex:9999,textTransform:"capitalize"}),control:(e,t)=>Q(Q({},e),{},{borderColor:t.isFocused?"var(--purple-medium)":"var(--soft-purple-border)",boxShadow:"none",minHeight:"1.8rem",height:t.isMulti?"auto":"2.8rem","&:hover":{borderColor:"var(--purple-light)",color:"var(--purple-light)"}})},theme:e=>Q(Q({},e),{},{borderRadius:"12px",colors:Q(Q({},e.colors),{},{text:"var(--soft-text-dark)",primary25:"var(--purple-extra-light)",primary:"var(--purple-medium)",neutral10:"var(--soft-purple-border)",neutral50:"var(--soft-text-light)"})}),val_field:"value",label_field:"label"}),(0,T.jsx)("span",{className:"text-danger",children:a.assigned_tester})]}),"resolved"===t.status&&(0,T.jsxs)("div",{className:"col-md-12 mb-2",children:[(0,T.jsx)("label",{htmlFor:"validationCustom01",children:"Resolution Remarks"}),(0,T.jsx)("input",{className:"form-control",name:"resolution_remarks",value:t.resolution_remarks,placeholder:"Remarks",onChange:l})]})]}),(0,T.jsxs)("div",{className:"d-flex justify-content-end align-items-center",children:["\xa0",(0,T.jsx)(d.A,{type:"submit",disabled:i,color:"secondary",children:oe?"Update":"Save"})]})]}),(0,T.jsxs)("div",{className:"col-md-6",children:[(0,T.jsxs)("div",{className:"row",children:[(0,T.jsxs)("div",{className:"col-md-6 mb-3",children:[(0,T.jsx)("label",{htmlFor:"validationCustom01",children:"Send to:"}),(0,T.jsx)(W.A,{name:"for",value:t.for,options:[{label:"Team",value:"team"},{label:"User",value:"user"}],onChange:e=>r("for",e),val_field:"value",label_field:"label"})]}),(0,T.jsxs)("div",{className:"col-md-6 mb-3",children:[(0,T.jsx)("label",{htmlFor:"validationCustom01",children:"Team Status:"}),(0,T.jsx)(W.A,{name:"team_status",value:t.team_status,options:[{label:"Not Resolved",value:"not_resolved"},{label:"Resolved",value:"resolved"}
1],label_field:"label",val_field:"value",onChange:e=>{r("team_status",e)},disabled:"closed"===t.status})]})]}),(0,T.jsx)("div",{className:"ticket-chatbox active",children:(0,T.jsx)("div",{className:"card-body msg_card_body dlab-scroll ".concat("ps ps--active-y"," "),style:{height:"70vh",overflowY:"scroll",border:"1px solid #d9d9d9",borderRadius:"15px",padding:"7px",display:"flex",flexDirection:"column",flexGrow:"0",backgroundImage:"user"===t.for?"url(".concat(N,")"):"url(".concat(y,")"),backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"user"===t.for?"200px":"250px"},children:(0,T.jsx)(V(),{children:je.map((e,a)=>{const l="".concat(null===je||void 0===je?void 0:je.id,"_").concat(a,"_").concat(Ae.current);return e.sent?(0,T.jsx)("div",{className:"d-flex justify-content-end mb-2",children:(0,T.jsxs)("div",{className:"d-flex flex-column",style:{flexShrink:0,width:"45%"},children:[(0,T.jsxs)("small",{className:"mb-1 text-end",children:["[Sent to"," ",(0,T.jsx)("strong",{children:(0,P.n)(null===e||void 0===e?void 0:e.for)}),"] You"]}),(0,T.jsxs)("div",{className:"d-flex flex-column p-2",style:{border:"1px solid #d9d9d9",borderRadius:"10px",wordWrap:"break-word",overflowWrap:"break-word",backgroundColor:"#f2f2f2"}
1,children:[(0,T.jsx)("span",{id:"ticket_send_".concat(l),className:"ticket-subtitle",children:null===e||void 0===e?void 0:e.desc}),null!==e&&void 0!==e&&e.attachment?e.attachment.includes(".docx")||e.attachment.includes(".xlsx")||e.attachment.includes(".xls")?(0,T.jsx)("div",{className:"action-buttons cursor-pointer",onClick:()=>{(0,q.iQ)(null===e||void 0===e?void 0:e.attachment)},children:(0,T.jsx)(x.A,{title:"Download Attachment",children:(0,T.jsx)("span",{children:(0,T.jsx)(g.WCW,{size:20,color:"red"})})})}):(0,T.jsx)(T.Fragment,{children:e.attachment.includes(".docx")&&e.attachment.includes(".xlsx")&&e.attachment.includes(".xls")?"":(0,T.jsx)("div",{className:"action-buttons cursor-pointer",onClick:()=>{(0,q.gy)(null===e||void 0===e?void 0:e.attachment)},children:(0,T.jsx)(x.A,{title:"View Attachment",children:(0,T.jsx)("span",{children:(0,T.jsx)(g.Ny1,{size:20,color:"green"})})})})}):"",(0,T.jsx)("small",{className:"text-end",children:n()(e.timestamp).format("LLL")})]})]})},a):e.received?(0,T.jsxs)("div",{className:"d-flex flex-column justify-content-start mb-2",children:[(0,T.jsxs)("div",{className:"d-flex flex-column",style:{flexShrink:0,width:"45%"},children:[(0,T.jsxs)("small",{className:"mb-1",children:[(0,T.jsx)("strong",{children:(0,P.n)(null===e||void 0===e?void 0:e.person)}),":"," ",(0,P.n)(null===e||void 0===e?void 0:e.user)]}),(0,T.jsxs)("div",{className:"d-flex flex-column p-2",style:{border:"1px solid #d9d9d9",borderRadius:"10px",wordWrap:"break-word",overflowWrap:"break-word",backgroundColor:"#f2f2f2"}
1,children:[(0,T.jsx)("span",{id:"ticket_send_".concat(l),className:"ticket-subtitle",children:null===e||void 0===e?void 0:e.desc}),null!==e&&void 0!==e&&e.attachment?e.attachment.includes(".docx")||e.attachment.includes(".xlsx")||e.attachment.includes(".xls")?(0,T.jsx)("div",{className:"action-buttons cursor-pointer",onClick:()=>{(0,q.iQ)(null===e||void 0===e?void 0:e.attachment)},children:(0,T.jsx)(x.A,{title:"Download Attachment",children:(0,T.jsx)("span",{children:(0,T.jsx)(g.WCW,{size:20,color:"red"})})})}):(0,T.jsx)(T.Fragment,{children:e.attachment.includes(".docx")&&e.attachment.includes(".xlsx")&&e.attachment.includes(".xls")?"":(0,T.jsx)("div",{className:"action-buttons cursor-pointer",onClick:()=>{(0,q.gy)(null===e||void 0===e?void 0:e.attachment)},children:(0,T.jsx)(x.A,{title:"View Attachment",children:(0,T.jsx)("span",{children:(0,T.jsx)(g.Ny1,{size:20,color:"green"})})})})}):"",(0,T.jsx)("small",{children:n()(e.timestamp).format("LLL")})]})]}),je.length-1===a&&(0,T.jsx)(T.Fragment,{children:null!==t.user_remarks&&(0,T.jsxs)("div",{className:"d-flex flex-column mt-2",style:{flexShrink:0,width:"45%"},children:[(0,T.jsxs)("small",{className:"mb-1",children:[(0,T.jsx)("strong",{children:"User"}),":"," ",(0,P.n)(null===t||void 0===t?void 0:t.user_name)]}),(0,T.jsxs)("div",{className:"d-flex flex-column p-2",style:{border:"1px solid #d9d9d9",borderRadius:"10px",wordWrap:"break-word",overflowWrap:"break-word",backgroundColor:"#f2f2f2"}
1,children:[(0,T.jsx)("span",{id:"ticket_send_".concat(l),className:"ticket-subtitle",children:null===t||void 0===t?void 0:t.user_remarks}),(0,T.jsx)("small",{children:n()(t.updated_at).format("LLL")})]})]})})]},a):""})})})}),(0,T.jsx)("label",{htmlFor:"validationCustom01",className:"me-2 mb-0",children:"Status:"}),(0,T.jsx)("div",{className:"d-flex justify-content-center",children:(0,T.jsxs)("div",{className:"d-flex align-items-center w-100",style:{maxWidth:"900px"},children:[(0,T.jsx)("div",{style:{width:"25%",marginRight:"10px"},children:(0,T.jsx)(W.A,{name:"status",value:t.status,options:[{label:"In Progress",value:"work_in_progress"},{label:"Assigned",value:"assigned"},{label:"Not Resolved",value:"not_resolved"},{label:"Resolved",value:"resolved"},{label:"Closed",value:"closed",isdisabled:!0}],label_field:"label",val_field:"value",onChange:e=>r("status",e),disabled:"closed"===t.status})}),(0,T.jsxs)("div",{className:"d-flex align-items-center flex-grow-1",children:[(0,T.jsx)(S(),{name:"chatAttachment",style:{width:"36px",height:"36px",border:"1px solid #ced4da",borderRadius:"6px",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",marginRight:"8px",backgroundColor:"#f8f9fa"},multiple:!1,maxFileSize:5e6,clickable:!0,onChange:e=>{const t=e[0];if(t){const e=5242880;if(!["image/jpeg","image/jpg","image/png","application/pdf","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/msword","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"].includes(t.type))return void k().fire({icon:"error",title:"Invalid file type",text:"Please upload a JPEG, PNG, or PDF file."});if(t.size>e)return void k().fire({icon:"error",title:"File too large",text:"Please upload a file smaller than 5 MB."});r("chatAttachment",t)}},children:null!==t&&void 0!==t&&t.chatAttachment?(0,T.jsx)(x.A,{title:"File uploaded",children:(0,T.jsx)("i",{className:"fa fa-check-square",style:{fontSize:"16px",color:"green"}})}):(0,T.jsx)(x.A,{title:"Click to upload file (Only Images, PDF's, Docx and Excel Files are allowed)",children:(0,T.jsx)("i",{className:"fa fa-paperclip",style:{fontSize:"16px",color:"#6c757d"}})})}),(0,T.jsx)("textarea",{ref:Ce,type:"text",className:"form-control",placeholder:"Type your message...",value:t.desc,rows:1,style:{resize:"none"},onChange:e=>{l(e),Ne("")},name:"desc",disabled:"closed"===t.status,onInput:e=>{e.target.style.height="auto",e.target.style.height="".concat(e.target.scrollHeight,"px")}}),(0,T.jsx)("button",{onClick:e=>{if(e.preventDefault(),"closed"===t.status)return;const a=(t.desc||"").trim();if(!a)return void Ne("Message is required.");Ne("");const l={title:"user"===t.for?"This message will be delivered to User":"This message will be delivered to Team",icon:"warning",showConfirmButton:!0,confirmButtonText:"Okay",showCancelButton:!0,cancelButtonText:"Cancel"};k().fire(l).then(e=>{if(e.isConfirmed){const e=new FormData;e.append("id",t.id),e.append("desc",a),e.append("to_status",t.status),e.append("team_status",t.team_status),e.append("for",t.for||"team"),e.append("sent",!0),e.append("attachment",t.chatAttachment),Ee({id:null===t||void 0===t?void 0:t.id,data:e},{onSuccess:async e=>{Je(null===t||void 0===t?void 0:t.id)}}),r("desc",""),r("chatAttachment",null),Ce.current&&(Ce.current.style.height="auto")}})},className:"btn btn-primary ms-2",style:{height:"36px",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,T.jsx)("i",{className:"fa fa-location-arrow"})})]})]})})]})]})}),(0,T.jsxs)(u.A,{children:[(0,T.jsx)("button",{type:"button",className:"btn btn-danger px-2",onClick:()=>be(!0),children:"Send mail"}),(0,T.jsx)("button",{className:"btn btn-primary",type:"button",onClick:()=>re(!1),children:"Close"})]})]})}})})}),(0,T.jsx)(E.A,{title:"Support Tickets",COLUMNS:Qe,DATA:K,showGlobalFilter:!1,showColumnCheck:!0,striped:!0,manualPagination:!0,totalCount:_,pageSize:D,setPage_Size:R,currentPage:I,setCurrentPage:Y,fileName:"Support Tickets",csvData:Xe,headerRow:2,heading:[["Support Tickets"]]})]})})},80573(e,t,a){e.exports=a.p+"images/group.de0d3a6da05e2bf27a7b.png"},18667(e,t,a){e.exports=a.p+"images/user.222c83076984d2e30c77.png"}}]);

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.