PageSourceSearch

https://youmewala-controls.pages.dev/assets/list-Cy_a2Y00.js

js youmewala-controls.pages.dev collected 2026-10-03 05:47:17 UTC 2,782 bytes, 1 lines download raw bytes

1import{r as a,l as k,j as e,m as x}from"./index-DccW2Toc.js";import{e as A}from"./cryptoJS-CAu8jzKd.js";import{S as G}from"./ServerSideNewTable-CsAbqMDa.js";import{g as H}from"./chat-DViRadaQ.js";import{i as _}from"./validate-Cz6yNBSL.js";import{t as S}from"./toastAlert-DjON2zrV.js";import{C as $}from"./CTooltip-CiJa8xoq.js";import{C}from"./CInputGroupText-Dk0CLTJW.js";import{c as L}from"./cil-chat-bubble-De0T3Ux-.js";import{C as M,a as O}from"./CCardBody-cUXI5asL.js";import{C as R}from"./CInputGroup-DEH9eOzO.js";import{c as q}from"./cil-magnifying-glass-COgjSVTM.js";import{C as w}from"./CFormInput-BGJX_96S.js";import"./index-D5njKq2z.js";import"./Pagination-nx702GgC.js";import"./CContainer-DCvC6pGG.js";import"./CRow-Bi9EsdNL.js";import"./CCol--SnKRwty.js";import"./CTable-CQyDmBVG.js";import"./logo-DfIG3REU.js";import"./DefaultLayout-ETDcCqg5.js";import"./CFormControlWrapper-Borz1p8d.js";import"./CFormControlValidation-Bqsz4G1J.js";import"./CFormLabel-B7_UlOXz.js";const xe=()=>{const[j,p]=a.useState([]),[b,y]=a.useState(0),[I,m]=a.useState(!0),[d,P]=a.useState(10),[s,v]=a.useState(""),[u,U]=a.useState({pageIndex:0,pageSize:10,filters:[],sortBy:[]}),[W,B]=a.useState([]),N=k(),z=a.useMemo(()=>[{Header:"S.No",disableFilters:!0,Cell:({row:t,state:r})=>r.pageSize*r.pageIndex+t.index+1},{Header:"Name",accessor:t=>`${t.userData.firstName} ${t.userData.lastName}`,disableFilters:!0},{Header:"Action",accessor:"action",Filter:!1,Cell:({row:{original:t}})=>{let r=A(t._id,!0);return e.jsx("div",{className:"d-flex",children:e.jsx($,{content:"Reply Ticket",placement:"top",children:e.jsx(C,{className:"ms-3",style:{cursor:"pointer"},onClick:()=>N("/chat/"+r),children:e.jsx(x,{icon:L})})})})}}],[u.pageIndex,u.pageSize]),D=t=>{v(t)};a.useEffect(()=>{f({pageIndex:0,pageSize:d,filters:[],sortBy:[]})},[s]);const f=async({pageIndex:t,pageSize:r,filters:o,sortBy:n})=>{m(!0);try{let i={};n==null||n.forEach(({id:c,desc:l})=>{i[c]=l?-1:1});let E={};o&&o.length>0&&(o==null||o.forEach(({id:c,value:l})=>{E[`fs_${c}`]=l}));const g={page:parseInt(t),limit:parseInt(r),filter:s,sortObj:i};_(s)||(g.nameSearch=s);const{status:F,result:h,message:T}=await H(g);F?(p(h.data),y(h.count)):(p([]),S("Failed",T,"add"))}catch(i){console.error("fetchData error",i),S("Error","Server Issue: Unable to process","add")}finally{m(!1)}};return e.jsx(e.Fragment,{children:e.jsx(M,{children:e.jsxs(O,{children:[e.jsx("div",{className:"d-flex justify-content-end mb-5",children:e.jsx("div",{children:e.jsxs(R,{className:"input-prepend",children:[e.jsx(C,{children:e.jsx(x,{icon:q})}),e.jsx(w,{type:"text",placeholder:"What are you looking for?",value:s,onChange:t=>D(t.target.value)})]})})}),e.jsx(G,{columns:z,data:j,fetchData:f,loading:I,pageCount:b,_pageSize:d})]})})})};export{xe as default};

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.