1"use strict";(globalThis.webpackChunkresearchpal=globalThis.webpackChunkresearchpal||[]).push([[6332],{26332(e,t,l){l.r(t),l.d(t,{default:()=>h});var a=l(83910),s=l(65043),n=l(58786),o=l(35475),i=l(97929),r=l(92878),d=l(79438),c=l(97359),m=l(70579);const x=e=>(0,m.jsx)(d.e,{appear:!0,show:null===e||void 0===e?void 0:e.isOpen,as:s.Fragment,children:(0,m.jsxs)(c.l,{as:"div",className:"relative z-10",onClose:null===e||void 0===e?void 0:e.onClose,children:[(0,m.jsx)(d.e.Child,{as:s.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,m.jsx)("div",{className:"fixed inset-0 bg-gray-900 bg-opacity-25"})}),(0,m.jsx)("div",{className:"fixed inset-0 overflow-y-auto",children:(0,m.jsx)("div",{className:`flex min-h-full items-center justify-center ${null!==e&&void 0!==e&&e.contPadding?e.contPadding:" p-4 "} text-center`,children:(0,m.jsx)(d.e.Child,{as:s.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:(0,m.jsx)(c.l.Panel,{className:`w-full transform overflow-hidden ${null!==e&&void 0!==e&&e.radius?e.radius:" rounded-xl "} bg-white p-6 \n text-left align-middle shadow-xl transition-all ${e.xl?" max-w-xl ":e.width?e.width:" max-w-md "} \n ${e.height&&e.height}\n `,children:(0,m.jsxs)("div",{className:"flex w-full h-full",children:[(null===e||void 0===e?void 0:e.icon)&&(0,m.jsx)("div",{className:`mr-5 flex h-12 w-12 flex-shrink-0 items-center justify-center rounded-full \n sm:h-10 sm:w-10 ${e.warning&&" bg-red-100 text-alert "} ${e.info&&" bg-yellow-100 text-fore "}`,children:e.icon}),(0,m.jsxs)("div",{className:"w-full",children:[(0,m.jsx)("div",{className:"flex items-center",children:(null===e||void 0===e?void 0:e.title)&&(0,m.jsx)(c.l.Title,{as:"h3",className:`text-lg ${(null===e||void 0===e?void 0:e.titleCenter)&&" text-center "} font-medium leading-6 text-gray-900 w-full`,children:null===e||void 0===e?void 0:e.title})}),null===e||void 0===e?void 0:e.content]})]})})})})})]})}),u={rows:{style:{borderRadius:"5px",marginBottom:"5px"}},table:{style:{background:"transparent"}},header:{style:{borderRadius:"5px",marginBottom:"5px",backgroundColor:"#01A35F",color:"#fff",textAlign:"center"}},subHeader:{style:{backgroundColor:"#01A35F",borderBottomRightRadius:"5px",borderBottomLeftRadius:"5px",marginBottom:"5px",padding:"5px",minHeight:"20px"}},headRow:{style:{backgroundColor:"#01A35F",color:"white",fontSize:"16px",borderRadius:"5px",marginBottom:"5px"}},cells:{style:{display:"flex",justifyContent:"center",minHeight:"40px"}},headCells:{style:{display:"flex",justifyContent:"center"}}},h=()=>{const e=[{name:"Index",selector:(e,t)=>t+1},{name:"Logs",selector:e=>(0,m.jsx)("button",{className:"rounded text-white font-medium p-2 bg-green-400 hover:bg-green-500 ",onClick:()=>g(e),children:"View logs"})}],[t,l]=(0,s.useState)([]),[d,c]=(0,s.useState)({modalOpen:!1,modalData:[],modalName:""});(0,s.useEffect)(()=>{h()},[]);const h=async()=>{let e={email:localStorage.getItem("userEmail")},t=await(0,r.e4)(e);l(t.feedbacksArr)};console.log(t);const g=e=>{c(t=>({...t,modalOpen:!t.modalOpen,modalData:e.feedbacks.reverse(),modalName:e.modal}))};return(0,m.jsxs)("div",{className:"h-screen bg-gray-100 p-3",children:[(0,m.jsxs)("div",{className:"mb-5",children:[(0,m.jsxs)("div",{className:" grid place-items-center text-center",children:[(0,m.jsx)("h1",{className:"mt-3 font-medium text-lg",children:"Feedback"})," "]}),(0,m.jsx)(o.N_,{to:"/admin/verify-users",children:(0,m.jsx)("button",{className:"absolute top-5 right-10 m-auto h-fit px-4 py-1 hover:bg-blue-600 text-white \r btn-bg transition duration-150 ease-in-out rounded-md text-rose hover:text-white",children:(0,m.jsx)(a.g,{icon:i.Wzs})})})]}),(0,m.jsx)(n.Ay,{columns:e,data:t,customStyles:u}),(0,m.jsx)(x,{isOpen:d.modalOpen,onClose:()=>{c(e=>({...e,modalOpen:!e.modalOpen}))},xl:!0,title:d.modalName,titleCenter:!0,content:(0,m.jsx)("div",{className:"w-fit-content",children:(0,m.jsx)(n.Ay,{columns:[{name:"Date",selector:(e,t)=>
1e.date},{name:"Rating",selector:(e,t)=>e.rating},{name:"Feedback",selector:(e,t)=>e.message,width:900}],data:d.modalData,customStyles:u})})})]})}}}]); 2//# sourceMappingURL=6332.02aaf5dd.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.