1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6854],{90696:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/control-panel-41A3xB/dashboard/police-verification",function(){return s(41324)}])},56771:function(e,t,s){"use strict";s.d(t,{w_:function(){return i}});var n=s(67294),r={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},o=n.createContext&&n.createContext(r),a=function(){return(a=Object.assign||function(e){for(var t,s=1,n=arguments.length;s<n;s++)for(var r in t=arguments[s])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},l=function(e,t){var s={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(s[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,n=Object.getOwnPropertySymbols(e);r<n.length;r++)0>t.indexOf(n[r])&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(s[n[r]]=e[n[r]]);return s};function i(e){return function(t){return n.createElement(c,a({attr:a({},e.attr)},t),function e(t){return t&&t.map(function(t,s){return n.createElement(t.tag,a({key:s},t.attr),e(t.child))})}(e.child))}}function c(e){var t=function(t){var s,r=e.attr,o=e.size,i=e.title,c=l(e,["attr","size","title"]),d=o||t.size||"1em";return t.className&&(s=t.className),e.className&&(s=(s?s+" ":"")+e.className),n.createElement("svg",a({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,r,c,{className:s,style:a(a({color:e.color||t.color},t.style),e.style),height:d,width:d,xmlns:"http://www.w3.org/2000/svg"}),i&&n.createElement("title",null,i),e.children)};return void 0!==o?n.createElement(o.Consumer,null,function(e){return t(e)}):t(r)}},41324:function(e,t,s){"use strict";s.r(t);var n=s(85893),r=s(67294),o=s(9008),a=s.n(o),l=s(669),i=s(35898);s(37677);var c=s(22920),d=s(94050),u=s(64749),m=s(13246),p=s(41664),h=s.n(p);s(4641);var f=s(31190),x=s(38837),g=s(31955);t.default=()=>{let[e,t]=(0,r.useState)([]),[s,o]=(0,r.useState)(""),[p,b]=(0,r.useState)(10),[v,y]=(0,r.useState)(1),[j,N]=(0,r.useState)(1),[w,E]=(0,r.useState)(!1),[T,C]=(0,r.useState)(!1),[_,I]=(0,r.useState)(null),O=e=>{I(e),C(!0)},P=e=>{o(e),E(!0)},A=()=>{o(""),E(!1)};(0,r.useEffect)(()=>{L(v)},[p,v]);let L=async e=>{let s=g.Z.get("token");try{let n=await fetch("".concat("https://api.pcpc.gov.in","/api/get-police-verifications?limit=").concat(p,"&page=").concat(e),{method:"GET",headers:{Authorization:"Bearer ".concat(s)}}),r=await n.json();!0===r.success?(t(r.data),N(r.total_pages)):c.Am.warn("Oops, something went wrong!")}catch(e){c.Am.error("Network error!")}},k=async e=>{A();let t=g.Z.get("token");try{let s=await fetch("".concat("https://api.pcpc.gov.in","/api/delete-police-verification?Id=").concat(e),{method:"DELETE",headers:{Authorization:"Bearer ".concat(t)}}),n=await s.json();!0===n.success?(c.Am.success("Record Deleted successfully!"),L(1)):c.Am.warn("Oops, something went wrong!")}catch(e){c.Am.error("Network error!")}};return(0,n.jsx)(x.Z,{children:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a(),{children:(0,n.jsx)("title",{children:"Police Verification | Admin Dashboard"})}),(0,n.jsxs)("main",{className:"bg-gray-100 min-h-screen",children:[(0,n.jsx)(l.Z,{}),(0,n.jsx)(c.Ix,{autoClose:2e3}),(0,n.jsxs)("div",{className:"flex flex-row",children:[(0,n.jsx)(i.Z,{}),(0,n.jsx)("div",{className:"hidden lg:block w-1/5"}),(0,n.jsx)("div",{className:"w-full lg:w-4/5 mt-20 mx-5 bg-white shadow p-5",children:(0,n.jsxs)("div",{className:"mb-52 w-full bg-white",children:[(0,n.jsx)("h1",{className:"font-semibold text-xl mt-20",children:"Police Verification / Character Certificate Records"}),(0,n.jsx)("div",{className:"flex flex-row justify-between py-0 mt-5",children:(0,n.jsxs)("div",{className:"flex flex-row space-x-1",children:[(0,n.jsx)("div",{children:"Show"}),(0,n.jsxs)("select",{value:p,onChange:e=>b(e.target.value),className:"text-sm border px-1 py-1 h-7 rounded-md shadow-md outline-none",children:[(0,n.jsx)("option",{value:"10",children:"10"}),(0,n.jsx)("option",{value:"25",children:"25"}),(0,n.jsx)("option",{value:"50",children:"50"}),(0,n.jsx)("option",{value:"100",children:"100"})]}),(0,n.jsx)("div",{children:"entries"})]})}),(0,n.jsx)("div",{className:"overflow-x-auto max-w-full",children:(0,n.jsxs)("table",{className:"w-full min-w-[900px] mx-auto mt-5 text-left border-collapse",children:[(0,n.jsx)("thead",{children:(0,n.jsxs)("tr",{className:"border flex flex-row justify-between bg-gray-100 font-bold",children:[(0,n.jsx)("th",{className:"p-2 w-[8%] border-r text-center",children:"Delete"}),(0,n.jsx)("th",{className:"p-2 w-[15%] border-r",children:"Reg ID"}),(0,n.jsx)("th",{className:"p-2 w-[22%] border-r",children:"Full Name"}),(0,n.jsx)("th",{className:"p-2 w-[15%] border-r",children:"Contact No."}),(0,n.jsx)("th",{className:"p-2 w-[20%] border-r",children:"Police Station"}),(0,n.jsx)("th",{className:"p-2 w-[12%] border-r",children:"Date"}),(0,n.jsx)("th",{className:"p-2 w-[8%] text-center",children:"View"})]})}),(0,n.jsxs)("tbody",{children:[e.map(e=>{let{_id:t,reg_id:s,fullName:r,contactNo:o,psId:a,createdAt:l}=e,i=l.substring(0,10);return(0,n.jsxs)("tr",{className:"border flex flex-row justify-between items-center",children:[(0,n.jsx)("td",{className:"p-2 w-[8%] border-r text-center",children:(0,n.jsx)("button",{className:"bg-red-600 hover:bg-red-700 text-white p-2 rounded",onClick:()=>P(t),children:(0,n.jsx)(d.uaR,{})})}),(0,n.jsx)("td",{className:"p-2 w-[15%] border-r font-mono text-xs",children:s||t}),(0,n.jsx)("td",{className:"p-2 w-[22%] border-r truncate",children:r}),(0,n.jsx)("td",{className:"p-2 w-[15%] border-r",children:o}),(0,n.jsx)("td",{className:"p-2 w-[20%] border-r truncate",children:a?a.name:"-"}),(0,n.jsx)("td",{className:"p-2 w-[12%] border-r",children:i}),(0,n.jsx)("td",{className:"p-2 w-[8%] text-center",children:(0,n.jsx)("button",{className:"bg-blue-600 hover:bg-blue-700 text-white p-2 rounded",onClick:()=>O(e),children:(0,n.jsx)(m.w8I,{})})})]},t)}),0===e.length&&(0,n.jsx)("tr",{className:"p-5 text-center text-slate-500",children:(0,n.jsx)("td",{colSpan:7,children:"No verification records submitted yet."})})]})]})}),(0,n.jsxs)("div",{className:"mt-5 flex justify-between items-center",children:[(0,n.jsxs)("div",{children:["Page ",v," of ",j||1]}),(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsx)("button",{onClick:()=>{v>1&&y(v-1)},disabled:1===v,className:"border rounded-md px-3 py-1 bg-gray-100 shadow disabled:opacity-50",children:"Previous"}),(0,n.jsx)("button",{onClick:()=>{v<j&&y(v+1)},disabled:v===j||0===j,className:"border rounded-md px-3 py-1 bg-gray-100 shadow disabled:opacity-50",children:"Next"})]})]}),(0,n.jsx)(f.u,{open:w,onClose:A,center:!0,children:(0,n.jsxs)("div",{className:"p-5",children:[(0,n.jsx)("p",{className:"font-semibold text-lg",children:"Are you sure to delete this record?"}),(0,n.jsxs)("div",{className:"flex flex-row justify-between mt-5 gap-10",children:[(0,n.jsx)("button",{className:"px-4 py-2 bg-white border rounded",onClick:A,children:"Cancel"}),(0,n.jsx)("button",{className:"px-4 py-2 bg-red-600 hover:bg-red-700 font-semibold text-white border rounded",onClick:()=>k(s),children:"Delete"})]})]})}),(0,n.jsx)(f.u,{open:T,onClose:()=>C(!1),center:!0,children:_&&(0,n.jsxs)("div",{className:"p-5 w-[700px] max-h-[85vh] overflow-y-auto",children:[(0,n.jsx)("h3",{className:"font-bold text-xl mb-4 border-b pb-2",children:"Character Certificate / Police Verification"}),(0,n.jsxs)("div",{className:"grid grid-cols-2 gap-4 text-sm mb-6",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"font-semibold text-slate-500",children:"Registration ID:"}),(0,n.jsx)("p",{className:"font-mono text-xs bg-slate-50 p-1 rounded mt-1",children:_.reg_id||_._id})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"font-semibold text-slate-500",children:"Assigned Police Station:"}
1),(0,n.jsx)("p",{className:"font-medium mt-1",children:_.psId?_.psId.name:"-"})]})]}),(0,n.jsxs)("div",{className:"mb-6",children:[(0,n.jsx)("h4",{className:"font-bold text-base text-slate-700 border-b pb-1 mb-3",children:"1. Personal Information"}),(0,n.jsxs)("div",{className:"grid grid-cols-2 gap-y-3 gap-x-4",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("span",{className:"font-semibold",children:"Full Name:"})," ",_.fullName]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("span",{className:"font-semibold",children:"Aliases:"})," ",_.aliases||"None"]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("span",{className:"font-semibold",children:"Father/Husband Name:"})," ",_.fatherOrHusbandName]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("span",{className:"font-semibold",children:"DOB:"})," ",_.dob]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("span",{className:"font-semibold",children:"Gender:"})," ",_.gender||"-"]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("span",{className:"font-semibold",children:"Birth Place:"})," ",_.placeOfBirth||"-"]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("span",{className:"font-semibold",children:"Contact:"})," ",_.contactNo]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("span",{className:"font-semibold",children:"Email:"})," ",_.email||"-"]})]})]}),(0,n.jsxs)("div",{className:"mb-6",children:[(0,n.jsx)("h4",{className:"font-bold text-base text-slate-700 border-b pb-1 mb-3",children:"2. Address Details"}),(0,n.jsxs)("div",{className:"space-y-3",children:[(0,n.jsxs)("div",{className:"bg-slate-50 p-2.5 rounded",children:[(0,n.jsxs)("p",{className:"font-bold text-xs text-slate-500 uppercase",children:["Current Address (Residing since: ",_.currentSince||"-",")"]}),(0,n.jsxs)("p",{className:"mt-1",children:[_.currentAddress,", ",_.currentCity,", ",_.currentState," - ",_.currentPincode]})]}),_.previousAddress&&(0,n.jsxs)("div",{className:"bg-slate-50 p-2.5 rounded",children:[(0,n.jsxs)("p",{className:"font-bold text-xs text-slate-500 uppercase",children:["Previous Address (From: ",_.previousSince||"-"," Till: ",_.previousTill||"-",")"]}),(0,n.jsxs)("p",{className:"mt-1",children:[_.previousAddress,", ",_.previousCity,", ",_.previousState," - ",_.previousPincode]})]})]})]}),(0,n.jsxs)("div",{className:"mb-6",children:[(0,n.jsx)("h4",{className:"font-bold text-base text-slate-700 border-b pb-1 mb-3",children:"3. Purpose & Employment"}),(0,n.jsxs)("div",{className:"grid grid-cols-2 gap-y-3 gap-x-4",children:[(0,n.jsxs)("div",{className:"col-span-2",children:[(0,n.jsx)("span",{className:"font-semibold",children:"Purpose of Verification:"})," ",_.purpose]}),_.purposeDetails&&(0,n.jsxs)("div",{className:"col-span-2",children:[(0,n.jsx)("span",{className:"font-semibold",children:"Purpose Details:"})," ",_.purposeDetails]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("span",{className:"font-semibold",children:"Occupation:"})," ",_.occupation||"-"]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("span",{className:"font-semibold",children:"Employer/Institute:"})," ",_.employerOrInstitute||"-"]}),(0,n.jsxs)("div",{className:"col-span-2",children:[(0,n.jsx)("span",{className:"font-semibold",children:"Employer Address:"})," ",_.employerAddress||"-"]})]})]}),(0,n.jsxs)("div",{className:"mb-6",children:[(0,n.jsx)("h4",{className:"font-bold text-base text-slate-700 border-b pb-1 mb-3",children:"4. Acquaintances (Local References)"}),(0,n.jsxs)("div",{className:"bg-amber-50/50 p-3 rounded border border-amber-100 grid grid-cols-2 gap-y-2 text-xs",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("span",{className:"font-semibold",children:"Name:"})," ",_.acquaintanceName||"-"]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("span",{className:"font-semibold",children:"Contact:"})," ",_.acquaintanceContact||"-"]}),(0,n.jsxs)("div",{className:"col-span-2",children:[(0,n.jsx)("span",{className:"font-semibold",children:"Address:"})," ",_.acquaintanceAddress||"-"]}),_.acquaintanceIdType&&(0,n.jsxs)("div",{children:[(0,n.jsx)("span",{className:"font-semibold",children:"ID Type:"})," ",_.acquaintanceIdType]})]})]}),(0,n.jsxs)("div",{className:"mb-2",children:[(0,n.jsx)("h4",{className:"font-bold text-base text-slate-700 border-b pb-1 mb-3",children:"5. Uploaded Documents"}),(0,n.jsxs)("div",{className:"flex flex-wrap gap-3",children:[_.photoUrl&&(0,n.jsxs)(h(),{href:_.photoUrl,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1.5 bg-yellow-50 hover:bg-yellow-100 text-yellow-800 border border-yellow-200 px-3 py-1.5 rounded text-xs",children:[(0,n.jsx)(u.Ljp,{})," Photo"]}),_.identityProofUrl&&(0,n.jsxs)(h(),{href:_.identityProofUrl,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1.5 bg-yellow-50 hover:bg-yellow-100 text-yellow-800 border border-yellow-200 px-3 py-1.5 rounded text-xs",children:[(0,n.jsx)(u.Ljp,{})," ID Proof"]}),_.currentAddressProofUrl&&(0,n.jsxs)(h(),{href:_.currentAddressProofUrl,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1.5 bg-yellow-50 hover:bg-yellow-100 text-yellow-800 border border-yellow-200 px-3 py-1.5 rounded text-xs",children:[(0,n.jsx)(u.Ljp,{})," Curr Address Proof"]}),_.previousAddressProofUrl&&(0,n.jsxs)(h(),{href:_.previousAddressProofUrl,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1.5 bg-yellow-50 hover:bg-yellow-100 text-yellow-800 border border-yellow-200 px-3 py-1.5 rounded text-xs",children:[(0,n.jsx)(u.Ljp,{})," Prev Address Proof"]}),_.supportingDocUrl&&(0,n.jsxs)(h(),{href:_.supportingDocUrl,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1.5 bg-yellow-50 hover:bg-yellow-100 text-yellow-800 border border-yellow-200 px-3 py-1.5 rounded text-xs",children:[(0,n.jsx)(u.Ljp,{})," Supporting Doc"]})]})]})]})})]})})]})]})]})})}},37677:function(){},22920:function(e,t,s){"use strict";s.d(t,{Ix:function(){return N},Am:function(){return P}});var n=s(67294),r=function(){for(var e,t,s=0,n="";s<arguments.length;)(e=arguments[s++])&&(t=function e(t){var s,n,r="";if("string"==typeof t||"number"==typeof t)r+=t;else if("object"==typeof t){if(Array.isArray(t))for(s=0;s<t.length;s++)t[s]&&(n=e(t[s]))&&(r&&(r+=" "),r+=n);else for(s in t)t[s]&&(r&&(r+=" "),r+=s)}return r}(e))&&(n&&(n+=" "),n+=t);return n};let o=e=>"number"==typeof e&&!isNaN(e),a=e=>"string"==typeof e,l=e=>"function"==typeof e,i=e=>a(e)||l(e)?e:null,c=e=>(0,n.isValidElement)(e)||a(e)||l(e)||o(e);function d(e){let{enter:t,exit:s,appendPosition:r=!1,collapse:o=!0,collapseDuration:a=300}=e;return function(e){let{children:l,position:i,preventExitTransition:c,done:d,nodeRef:u,isIn:m}=e,p=r?`${t}--${i}`:t,h=r?`${s}--${i}`:s,f=(0,n.useRef)(0);return(0,n.useLayoutEffect)(()=>{let e=u.current,t=p.split(" "),s=n=>
1{n.target===u.current&&(e.dispatchEvent(new Event("d")),e.removeEventListener("animationend",s),e.removeEventListener("animationcancel",s),0===f.current&&"animationcancel"!==n.type&&e.classList.remove(...t))};e.classList.add(...t),e.addEventListener("animationend",s),e.addEventListener("animationcancel",s)},[]),(0,n.useEffect)(()=>{let e=u.current,t=()=>{e.removeEventListener("animationend",t),o?function(e,t,s){void 0===s&&(s=300);let{scrollHeight:n,style:r}=e;requestAnimationFrame(()=>{r.minHeight="initial",r.height=n+"px",r.transition=`all ${s}ms`,requestAnimationFrame(()=>{r.height="0",r.padding="0",r.margin="0",setTimeout(t,s)})})}(e,d,a):d()};m||(c?t():(f.current=1,e.className+=` ${h}`,e.addEventListener("animationend",t)))},[m]),n.createElement(n.Fragment,null,l)}}function u(e,t){return null!=e?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}let m={list:new Map,emitQueue:new Map,on(e,t){return this.list.has(e)||this.list.set(e,[]),this.list.get(e).push(t),this},off(e,t){if(t){let s=this.list.get(e).filter(e=>e!==t);return this.list.set(e,s),this}return this.list.delete(e),this},cancelEmit(e){let t=this.emitQueue.get(e);return t&&(t.forEach(clearTimeout),this.emitQueue.delete(e)),this},emit(e){this.list.has(e)&&this.list.get(e).forEach(t=>{let s=setTimeout(()=>{t(...[].slice.call(arguments,1))},0);this.emitQueue.has(e)||this.emitQueue.set(e,[]),this.emitQueue.get(e).push(s)})}},p=e=>{let{theme:t,type:s,...r}=e;return n.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===t?"currentColor":`var(--toastify-icon-color-${s})`,...r})},h={info:function(e){return n.createElement(p,{...e},n.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return n.createElement(p,{...e},n.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return n.createElement(p,{...e},n.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return n.createElement(p,{...e},n.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return n.createElement("div",{className:"Toastify__spinner"})}};function f(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function x(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}function g(e){let{closeToast:t,theme:s,ariaLabel:r="close"}=e;return n.createElement("button",{className:`Toastify__close-button Toastify__close-button--${s}`,type:"button",onClick:e=>{e.stopPropagation(),t(e)},"aria-label":r},n.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},n.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function b(e){let{delay:t,isRunning:s,closeToast:o,type:a="default",hide:i,className:c,style:d,controlledProgress:u,progress:m,rtl:p,isIn:h,theme:f}=e,x=i||u&&0===m,g={...d,animationDuration:`${t}ms`,animationPlayState:s?"running":"paused",opacity:x?0:1};u&&(g.transform=`scaleX(${m})`);let b=r("Toastify__progress-bar",u?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${f}`,`Toastify__progress-bar--${a}`,{"Toastify__progress-bar--rtl":p}),v=l(c)?c({rtl:p,type:a,defaultClassName:b}):r(b,c);return n.createElement("div",{role:"progressbar","aria-hidden":x?"true":"false","aria-label":"notification timer",className:v,style:g,[u&&m>=1?"onTransitionEnd":"onAnimationEnd"]:u&&m<1?null:()=>{h&&o()}})}let v=e=>{let{isRunning:t,preventExitTransition:s,toastRef:o,eventHandlers:a}
1=function(e){let[t,s]=(0,n.useState)(!1),[r,o]=(0,n.useState)(!1),a=(0,n.useRef)(null),i=(0,n.useRef)({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,c=(0,n.useRef)(e),{autoClose:d,pauseOnHover:u,closeToast:m,onClick:p,closeOnClick:h}=e;function g(t){if(e.draggable){"touchstart"===t.nativeEvent.type&&t.nativeEvent.preventDefault(),i.didMove=!1,document.addEventListener("mousemove",j),document.addEventListener("mouseup",N),document.addEventListener("touchmove",j),document.addEventListener("touchend",N);let s=a.current;i.canCloseOnClick=!0,i.canDrag=!0,i.boundingRect=s.getBoundingClientRect(),s.style.transition="",i.x=f(t.nativeEvent),i.y=x(t.nativeEvent),"x"===e.draggableDirection?(i.start=i.x,i.removalDistance=s.offsetWidth*(e.draggablePercent/100)):(i.start=i.y,i.removalDistance=s.offsetHeight*(80===e.draggablePercent?1.5*e.draggablePercent:e.draggablePercent/100))}}function b(t){if(i.boundingRect){let{top:s,bottom:n,left:r,right:o}=i.boundingRect;"touchend"!==t.nativeEvent.type&&e.pauseOnHover&&i.x>=r&&i.x<=o&&i.y>=s&&i.y<=n?y():v()}}function v(){s(!0)}function y(){s(!1)}function j(s){let n=a.current;i.canDrag&&n&&(i.didMove=!0,t&&y(),i.x=f(s),i.y=x(s),i.delta="x"===e.draggableDirection?i.x-i.start:i.y-i.start,i.start!==i.x&&(i.canCloseOnClick=!1),n.style.transform=`translate${e.draggableDirection}(${i.delta}px)`,n.style.opacity=""+(1-Math.abs(i.delta/i.removalDistance)))}function N(){document.removeEventListener("mousemove",j),document.removeEventListener("mouseup",N),document.removeEventListener("touchmove",j),document.removeEventListener("touchend",N);let t=a.current;if(i.canDrag&&i.didMove&&t){if(i.canDrag=!1,Math.abs(i.delta)>i.removalDistance)return o(!0),void e.closeToast();t.style.transition="transform 0.2s, opacity 0.2s",t.style.transform=`translate${e.draggableDirection}(0)`,t.style.opacity="1"}}(0,n.useEffect)(()=>{c.current=e}),(0,n.useEffect)(()=>(a.current&&a.current.addEventListener("d",v,{once:!0}),l(e.onOpen)&&e.onOpen((0,n.isValidElement)(e.children)&&e.children.props),()=>{let e=c.current;l(e.onClose)&&e.onClose((0,n.isValidElement)(e.children)&&e.children.props)}),[]),(0,n.useEffect)(()=>(e.pauseOnFocusLoss&&(document.hasFocus()||y(),window.addEventListener("focus",v),window.addEventListener("blur",y)),()=>{e.pauseOnFocusLoss&&(window.removeEventListener("focus",v),window.removeEventListener("blur",y))}),[e.pauseOnFocusLoss]);let w={onMouseDown:g,onTouchStart:g,onMouseUp:b,onTouchEnd:b};return d&&u&&(w.onMouseEnter=y,w.onMouseLeave=v),h&&(w.onClick=e=>{p&&p(e),i.canCloseOnClick&&m()}),{playToast:v,pauseToast:y,isRunning:t,preventExitTransition:r,toastRef:a,eventHandlers:w}}(e),{closeButton:i,children:c,autoClose:d,onClick:u,type:m,hideProgressBar:p,closeToast:h,transition:v,position:y,className:j,style:N,bodyClassName:w,bodyStyle:E,progressClassName:T,progressStyle:C,updateId:_,role:I,progress:O,rtl:P,toastId:A,deleteToast:L,isIn:k,isLoading:R,iconOut:D,closeOnClick:S,theme:B}=e,M=r("Toastify__toast",`Toastify__toast-theme--${B}`,`Toastify__toast--${m}`,{"Toastify__toast--rtl":P},{"Toastify__toast--close-on-click":S}),z=l(j)?j({rtl:P,position:y,type:m,defaultClassName:M}):r(M,j),$=!!O||!d,F={closeToast:h,type:m,theme:B},q=null;return!1===i||(q=l(i)?i(F):(0,n.isValidElement)(i)?(0,n.cloneElement)(i,F):g(F)),n.createElement(v,{isIn:k,done:L,position:y,preventExitTransition:s,nodeRef:o},n.createElement("div",{id:A,onClick:u,className:z,...a,style:N,ref:o},n.createElement("div",{...k&&{role:I},className:l(w)?w({type:m}):r("Toastify__toast-body",w),style:E},null!=D&&n.createElement("div",{className:r("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!R})},D),n.createElement("div",null,c)),q,n.createElement(b,{..._&&!$?{key:`pb-${_}`}:{},rtl:P,theme:B,delay:d,isRunning:t,isIn:k,closeToast:h,hide:p,type:m,style:C,className:T,controlledProgress:$,progress:O||0})))}
1,y=function(e,t){return void 0===t&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},j=d(y("bounce",!0)),N=(d(y("slide",!0)),d(y("zoom")),d(y("flip")),(0,n.forwardRef)((e,t)=>{let{getToastToRender:s,containerRef:d,isToastActive:p}=function(e){let[,t]=(0,n.useReducer)(e=>e+1,0),[s,r]=(0,n.useState)([]),d=(0,n.useRef)(null),p=(0,n.useRef)(new Map).current,f=e=>-1!==s.indexOf(e),x=(0,n.useRef)({toastKey:1,displayedToast:0,count:0,queue:[],props:e,containerId:null,isToastActive:f,getToast:e=>p.get(e)}).current;function g(e){let{containerId:t}=e,{limit:s}=x.props;!s||t&&x.containerId!==t||(x.count-=x.queue.length,x.queue=[])}function b(e){r(t=>null==e?[]:t.filter(t=>t!==e))}function v(){let{toastContent:e,toastProps:t,staleId:s}=x.queue.shift();j(e,t,s)}function y(e,s){var r,f;let{delay:g,staleId:y,...N}=s;if(!c(e)||!d.current||x.props.enableMultiContainer&&N.containerId!==x.props.containerId||p.has(N.toastId)&&null==N.updateId)return;let{toastId:w,updateId:E,data:T}=N,{props:C}=x,_=()=>b(w),I=null==E;I&&x.count++;let O={...C,style:C.toastStyle,key:x.toastKey++,...Object.fromEntries(Object.entries(N).filter(e=>{let[t,s]=e;return null!=s})),toastId:w,updateId:E,data:T,closeToast:_,isIn:!1,className:i(N.className||C.toastClassName),bodyClassName:i(N.bodyClassName||C.bodyClassName),progressClassName:i(N.progressClassName||C.progressClassName),autoClose:!N.isLoading&&(r=N.autoClose,f=C.autoClose,!1===r||o(r)&&r>0?r:f),deleteToast(){let e=u(p.get(w),"removed");p.delete(w),m.emit(4,e);let s=x.queue.length;if(x.count=null==w?x.count-x.displayedToast:x.count-1,x.count<0&&(x.count=0),s>0){let e=null==w?x.props.limit:1;if(1===s||1===e)x.displayedToast++,v();else{let t=e>s?s:e;x.displayedToast=t;for(let e=0;e<t;e++)v()}}else t()}};O.iconOut=function(e){let{theme:t,type:s,isLoading:r,icon:i}=e,c=null,d={theme:t,type:s};return!1===i||(l(i)?c=i(d):(0,n.isValidElement)(i)?c=(0,n.cloneElement)(i,d):a(i)||o(i)?c=i:r?c=h.spinner():s in h&&(c=h[s](d))),c}(O),l(N.onOpen)&&(O.onOpen=N.onOpen),l(N.onClose)&&(O.onClose=N.onClose),O.closeButton=C.closeButton,!1===N.closeButton||c(N.closeButton)?O.closeButton=N.closeButton:!0===N.closeButton&&(O.closeButton=!c(C.closeButton)||C.closeButton);let P=e;(0,n.isValidElement)(e)&&!a(e.type)?P=(0,n.cloneElement)(e,{closeToast:_,toastProps:O,data:T}):l(e)&&(P=e({closeToast:_,toastProps:O,data:T})),C.limit&&C.limit>0&&x.count>C.limit&&I?x.queue.push({toastContent:P,toastProps:O,staleId:y}):o(g)?setTimeout(()=>{j(P,O,y)},g):j(P,O,y)}function j(e,t,s){let{toastId:n}=t;s&&p.delete(s);let o={content:e,props:t};p.set(n,o),r(e=>[...e,n].filter(e=>e!==s)),m.emit(4,u(o,null==o.props.updateId?"added":"updated"))}return(0,n.useEffect)(()=>(x.containerId=e.containerId,m.cancelEmit(3).on(0,y).on(1,e=>d.current&&b(e)).on(5,g).emit(2,x),()=>{p.clear(),m.emit(3,x)}),[]),(0,n.useEffect)(()=>{x.props=e,x.isToastActive=f,x.displayedToast=s.length}),{getToastToRender:function(t){let s=new Map,n=Array.from(p.values());return e.newestOnTop&&n.reverse(),n.forEach(e=>{let{position:t}=e.props;s.has(t)||s.set(t,[]),s.get(t).push(e)}),Array.from(s,e=>t(e[0],e[1]))},containerRef:d,isToastActive:f}}(e),{className:f,style:x,rtl:g,containerId:b}=e;return(0,n.useEffect)(()=>{t&&(t.current=d.current)},[]),n.createElement("div",{ref:d,className:"Toastify",id:b},s((e,t)=>{let s=t.length?{...x}:{...x,pointerEvents:"none"};return n.createElement("div",{className:function(e){let t=r("Toastify__toast-container",`Toastify__toast-container--${e}`,{"Toastify__toast-container--rtl":g});return l(f)?f({position:e,rtl:g,defaultClassName:t}):r(t,i(f))}(e),style:s,key:`container-${e}`},t.map((e,s)=>{let{content:r,props:o}=e;return n.createElement(v,{...o,isIn:p(o.toastId),style:{...o.style,"--nth":s+1,"--len":t.length},key:`toast-${o.key}`},r)}))}))}));N.displayName="ToastContainer",N.defaultProps={position:"top-right",transition:j,autoClose:5e3,closeButton:g,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};let w,E=new Map,T=[],C=1;function _(e,t){return E.size>0?m.emit(0,e,t):T.push({content:e,options:t}),t.toastId}function I(e,t){return{...t,type:t&&t.type||e,toastId:t&&(a(t.toastId)||o(t.toastId))?t.toastId:""+C++}}function O(e){return(t,s)=>_(t,I(e,s))}function P(e,t){return _(e,I("default",t))}P.loading=(e,t)=>
1_(e,I("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),P.promise=function(e,t,s){let n,{pending:r,error:o,success:i}=t;r&&(n=a(r)?P.loading(r,s):P.loading(r.render,{...s,...r}));let c={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},d=(e,t,r)=>{if(null==t)return void P.dismiss(n);let o={type:e,...c,...s,data:r},l=a(t)?{render:t}:t;return n?P.update(n,{...o,...l}):P(l.render,{...o,...l}),r},u=l(e)?e():e;return u.then(e=>d("success",i,e)).catch(e=>d("error",o,e)),u},P.success=O("success"),P.info=O("info"),P.error=O("error"),P.warning=O("warning"),P.warn=P.warning,P.dark=(e,t)=>_(e,I("default",{theme:"dark",...t})),P.dismiss=e=>{E.size>0?m.emit(1,e):T=T.filter(t=>null!=e&&t.options.toastId!==e)},P.clearWaitingQueue=function(e){return void 0===e&&(e={}),m.emit(5,e)},P.isActive=e=>{let t=!1;return E.forEach(s=>{s.isToastActive&&s.isToastActive(e)&&(t=!0)}),t},P.update=function(e,t){void 0===t&&(t={}),setTimeout(()=>{let s=function(e,t){let{containerId:s}=t,n=E.get(s||w);return n&&n.getToast(e)}(e,t);if(s){let{props:n,content:r}=s,o={delay:100,...n,...t,toastId:t.toastId||e,updateId:""+C++};o.toastId!==e&&(o.staleId=e);let a=o.render||r;delete o.render,_(a,o)}},0)},P.done=e=>{P.update(e,{progress:1})},P.onChange=e=>(m.on(4,e),()=>{m.off(4,e)}),P.POSITION={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},P.TYPE={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},m.on(2,e=>{w=e.containerId||e,E.set(w,e),T.forEach(e=>{m.emit(0,e.content,e.options)}),T=[]}).on(3,e=>{E.delete(e.containerId||e),0===E.size&&m.off(0).off(1).off(5)})}},function(e){e.O(0,[4617,3874,5937,9814,1190,3362,2888,9774,179],function(){return e(e.s=90696)}),_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.