@riab/cpm-archiving 1.1.2-beta.58 → 1.1.2-beta.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cpm-archiving.js +1 -1
- package/package.json +1 -1
package/dist/cpm-archiving.js
CHANGED
|
@@ -602,7 +602,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
602
602
|
<br/>
|
|
603
603
|
<p>
|
|
604
604
|
The limit you choose will apply to <strong>all items in a review period</strong>, including those flagged for keywords or appearing from employees on the Heightened Supervision List.
|
|
605
|
-
</p>`}),jsxRuntimeExports.jsx(PageNavigationButtons,{prevLink:"/setup/mobile/firm-accounts",prevProgress:7,nextLink:"/setup/mobile/flagging-keywords",nextProgress:8})]}),MobileGetInfo=()=>jsxRuntimeExports.jsxs("section",{className:"flex flex-col w-full !mb-3",children:[jsxRuntimeExports.jsx("h4",{className:"text-2xl font-semibold leading-9",children:"Native Text-Message Coverage with LeapXpert"}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("p",{className:"mt-5",children:"Comply’s partnership with LeapXpert makes us one of the few vendors who offer truly native iMessage and WhatsApp capture. That means employees can text through iMessage and WhatsApp as they regularly would – no app switching required."}),jsxRuntimeExports.jsxs("ul",{className:"list-disc pl-5 mt-5",children:[jsxRuntimeExports.jsx("li",{children:"Reps can keep their existing phone numbers"}),jsxRuntimeExports.jsx("li",{children:"Full capture of conversation threads, timestamps, attachments and multimedia, edits and updated message versions, and message reactions (i.e. emojis)"}),jsxRuntimeExports.jsx("li",{children:"WORM-compliant, meaning records cannot be altered, edited, or deleted"}),jsxRuntimeExports.jsx("li",{children:"Compliant with Apple and WhatsApp terms of service"}),jsxRuntimeExports.jsx("li",{children:"Full encryption from capture to archive"})]}),jsxRuntimeExports.jsxs("p",{className:"mt-5",children:["Interested in learning more? Reach out to ",jsxRuntimeExports.jsx("a",{className:"text-blue-900",href:"mailto:InstallBaseSales@comply.com",children:"InstallBaseSales@comply.com"})]})]})]}),SetupFinish=()=>jsxRuntimeExports.jsxs("section",{className:"flex flex-col w-full !mb-3",children:[jsxRuntimeExports.jsxs("div",{className:"mb-10",children:[jsxRuntimeExports.jsx("h4",{className:"text-2xl font-semibold leading-9",children:"End of Setup"}),jsxRuntimeExports.jsx("p",{className:"mb-2 text-lg color-black",children:"You have reached the end of the communications archiving and review setup. Further changes can be accessed at any time from the archiving settings page. "})]}),jsxRuntimeExports.jsx(PageNavigationButtons,{prevLink:"/setup/website/review-frequency",prevProgress:24,nextLink:"/",nextIcon:!1,nextText:"Finish Setup",nextProgress:ARCHIVING_SETUP_COMPLETE})]}),emailsQueryOptions=ie=>({queryKey:["emails",ie],queryFn:async()=>ie?(await sharedApi.executeRequest("/emailaccounts/list","POST",{reviewPeriodId:ie,pageIndex:1,pageSize:1e4,filters:[],sortings:[{name:"emailDate",ascending:!0}]})).data||[]:[]}),emailReviewQueryOptions=(ie,ae,ce=!1)=>({queryKey:["emailreview",ae],queryFn:()=>sharedApi.executeRequest(`/emailaccounts/details?ReviewPeriodId=${ie}&ItemId=${ae}&IsSpecialReview=${ce}`,"GET")}),emailReviewMessageQueryOptions=(ie,ae=!1)=>({queryKey:["emailreviewmessage",ie],queryFn:()=>sharedApi.executeRequest(`/emailaccounts/message?S3Path=${ie}&IsKeyword=${ae}`,"GET")}),useEmailMarkReviewedMutation=()=>{const ie=useQueryClient();return useMutation({mutationFn:ae=>sharedApi.executeRequest("/emailreviewresponses","POST",{esId:ae}),onSuccess:()=>{ie.invalidateQueries([emailsQueryOptions,emailReviewQueryOptions])},onError:()=>{Vt.error("Error occurred while updating item")}})},useEmailMarkNeedsFurtherReviewMutation=()=>{const ie=useQueryClient();return useMutation({mutationFn:ae=>sharedApi.executeRequest("/emailreviewresponses/further","POST",{esId:ae}),onSuccess:()=>{ie.invalidateQueries([emailsQueryOptions,emailReviewQueryOptions])},onError:()=>{Vt.error("Error occurred while updating item")}})},useReviewNoteMutation=()=>{const ie=useQueryClient();return useMutation({mutationFn:({esId:ae,note:ce,archivingType:me})=>sharedApi.executeRequest("/accounts/note","POST",{esId:ae.toString(),note:ce,archivingType:me}),onSuccess:()=>{ie.invalidateQueries([emailsQueryOptions,emailReviewQueryOptions])},onError:()=>{Vt.error("Error occurred while updating item")}})},excludeQueryOptions=(ie,ae,ce)=>({queryKey:["emailexclude",ie,ce,ae],queryFn:()=>sharedApi.executeRequest(`/clientdomains/exclude?From=${ie}&ItemType=${ae}&CurrEmailReviewPeriodId=${ce}`,"GET")}),useExcludeItemMutation=()=>{const ie=useQueryClient();return useMutation({mutationFn:({item:ae,itemType:ce,currEmailReviewPeriodId:me,filterType:we="blacklist",isEmailLimit:Ce=!0})=>sharedApi.executeRequest("/emailaccounts/deactivate","POST",{item:ae,itemType:ce,filterType:we,isEmailLimit:Ce,currEmailReviewPeriodId:me,filters:[],sortings:[]}),onSuccess:()=>{ie.invalidateQueries([emailsQueryOptions,emailReviewQueryOptions])},onError:()=>{Vt.error("Error occurred while excluding item. Please try again!")}})},useToggleConfirmationMutation=()=>{const ie=useQueryClient();return useMutation({mutationFn:({reviewPeriodId:ae,isEnable:ce})=>{const me=ce?"/Archiving/disable_exclusion_confirmation_popup":"/Archiving/enable_exclusion_confirmation_popup";return sharedApi.executeRequest(me,"POST",{reviewPeriodId:ae})},onSuccess:()=>{ie.invalidateQueries([emailsQueryOptions,emailReviewQueryOptions])},onError:()=>{Vt.error("Error occurred while excluding item. Please try again!")}})},ButtonText=({children:ie,asButton:ae=!1,className:ce="",onClick:me,disabled:we=!1,type:Ce="button"})=>{const _e="block font-bold";return ae?jsxRuntimeExports.jsx("button",{type:Ce,onClick:me,disabled:we,className:`${_e} ${ce} cursor-pointer`,children:ie}):jsxRuntimeExports.jsx("div",{className:`${_e} ${ce}`,children:ie})},getVisiblePages=(ie,ae)=>{const me=[],we=[],Ce=Math.max(1,ie-1),_e=Math.min(ae,ie+1);for(let Me=Ce;Me<=_e;Me++)me.push(Me);return Ce>1&&we.push(0),we.push(...me),_e<ae&&we.push(0),we};function DataTable({maxHeight:ie=null,table:ae,searchPlaceholder:ce="Search...",itemsLabel:me="Items",hasGlobalFilter:we=!1,filterButtons:Ce=[],pageSizes:_e=[10,20,30,50],onRowClick:Me,emptyMessage:je="No items found",bordered:Fe=!1,rowSelectedCheck:Be=null,paginationControlLabel:qe=null,showItemsPerPageLabel:Ue=!0}){const Ve=ae.getPageCount(),He=ae.getState().pagination.pageIndex+1,Xe=ae.getState().pagination.pageSize,Ge=ae.options.manualPagination?ae.getRowCount():ae.getFilteredRowModel().rows.length,et=He===1?1:(He-1)*Xe+1,rt=Math.min(et+Xe-1,Ge),Ke=it=>{ae.setGlobalFilter(it.target.value)},Ye=getVisiblePages(He,Ve),nt={asc:jsxRuntimeExports.jsx(M$3,{icon:sortAscSmallIcon,size:"large"}),desc:jsxRuntimeExports.jsx(M$3,{icon:sortDescSmallIcon,size:"large"})};return jsxRuntimeExports.jsx("div",{className:"w-full",children:jsxRuntimeExports.jsxs("div",{className:"rounded-t-lg overflow-hidden",children:[we||Ce.length>0?jsxRuntimeExports.jsxs("div",{className:"flex flex-col md:flex-row gap-4 bg-blue-900 p-4",children:[jsxRuntimeExports.jsx("div",{className:"flex-grow",children:jsxRuntimeExports.jsx("div",{className:"relative",children:we&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"absolute left-3 top-1/2 transform -translate-y-1/2 text-white h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:jsxRuntimeExports.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})}),jsxRuntimeExports.jsx("input",{type:"text",placeholder:ce,value:ae.getState().globalFilter,onChange:Ke,className:"w-full pl-10 pr-4 py-3 border border-gray-300 rounded-md bg-[#344D5D] text-white focus:outline-none max-w-80"})]})})}),Ce.map((it,Je)=>jsxRuntimeExports.jsxs("button",{onClick:it.onClick,className:`px-4 py-3 rounded-md border uppercase border-white ${it.classes?it.classes:""} ${it.hasOwnProperty("active")&&!it.active?"text-white hover:bg-blue-400":"text-blue-700 bg-white hover:bg-[#cbe8fc]"} `,children:[it.icon?jsxRuntimeExports.jsx(M$3,{style:{fill:it.active?"var(--color-blue-900)":"white"},icon:it.icon,size:"medium",className:"mr-1"}):"",it.label]},Je))]}):null,jsxRuntimeExports.jsx("div",{className:`overflow-x-auto border-l border-r border-[#344D5D] ${ie}`,children:jsxRuntimeExports.jsxs("table",{className:`w-full border-collapse table-fixed ${Fe?"table-bordered":""}`,children:[jsxRuntimeExports.jsx("thead",{className:"bg-[#012134] text-white",children:jsxRuntimeExports.jsx("tr",{children:ae.getHeaderGroups().map(it=>it.headers.map(Je=>jsxRuntimeExports.jsx("th",{className:"py-4 px-6 text-left",style:{width:Je.getSize()?Je.getSize():"",cursor:Je.column.getCanSort()?"pointer":"default"},children:jsxRuntimeExports.jsxs(ButtonText,{asButton:!0,onClick:Je.column.getToggleSortingHandler(),children:[Je.isPlaceholder?null:Je.column.columnDef.header?flexRender(Je.column.columnDef.header,Je.getContext()):Je.id,Je.column.getIsSorted()&&nt[Je.column.getIsSorted()]]})},Je.id)))})}),jsxRuntimeExports.jsx("tbody",{className:"bg-white",children:ae.getRowModel().rows.length>0?ae.getRowModel().rows.map(it=>jsxRuntimeExports.jsx("tr",{onClick:()=>Me==null?void 0:Me(it),className:`hover:bg-secondary hover:cursor-pointer ${Be?Be(it):it.getIsSelected()?"bg-secondary":""}`,children:it.getVisibleCells().map(Je=>jsxRuntimeExports.jsx("td",{onClick:tt=>{Je.column.id==="id"&&(tt.preventDefault(),tt.stopPropagation())},className:`${Je.column.id==="id"?"":"py-4 px-6"} ${Fe?"border border-gray-200 p-2":""}`,children:flexRender(Je.column.columnDef.cell,Je.getContext())},Je.id))},it.id)):jsxRuntimeExports.jsx("tr",{children:jsxRuntimeExports.jsx("td",{colSpan:ae.getAllColumns().length,className:"py-4 px-6 text-center",children:je})})})]})}),jsxRuntimeExports.jsxs("div",{className:`flex items-center justify-between bg-[#012134] text-white ${Ye.length?"":"py-5"} px-4 rounded-b-lg`,children:[jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx("p",{children:`${et} - ${rt} of ${Ge} ${qe!=null?qe:me.toLowerCase()}`})}),jsxRuntimeExports.jsxs("div",{className:"flex gap-5",children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center space-x-2",children:[jsxRuntimeExports.jsx("button",{className:"p-1 text-white hover:bg-blue-400 rounded disabled:text-gray-400 disabled:hover:bg-transparent",onClick:()=>ae.setPageIndex(0),disabled:!ae.getCanPreviousPage(),children:jsxRuntimeExports.jsx(M$3,{icon:caretAltToLeftIcon,className:"block w-4 h-4 fill-current"})}),jsxRuntimeExports.jsx("button",{className:"p-1 text-white hover:bg-blue-400 rounded disabled:text-gray-400 disabled:hover:bg-transparent",onClick:()=>ae.previousPage(),disabled:!ae.getCanPreviousPage(),children:jsxRuntimeExports.jsx(M$3,{icon:caretAltLeftIcon,className:"block w-4 h-4 fill-current"})}),jsxRuntimeExports.jsx("div",{className:"flex items-center space-x-2",children:Ye.map((it,Je)=>{if(it===0)return jsxRuntimeExports.jsx("span",{children:"..."},Je);const tt=He===it;return jsxRuntimeExports.jsx("button",{className:`px-3 py-5 w-12 ${tt?"shadow-[inset_0_4px_0_0_#21d3ee] text-teal-500":""}`,onClick:()=>ae.setPageIndex(it-1),children:it},Je)})}),jsxRuntimeExports.jsx("button",{className:"p-1 text-white hover:bg-blue-400 rounded disabled:text-gray-400 disabled:hover:bg-transparent",onClick:()=>ae.nextPage(),disabled:!ae.getCanNextPage(),children:jsxRuntimeExports.jsx(M$3,{icon:caretAltRightIcon,className:"block w-4 h-4 fill-current"})}),jsxRuntimeExports.jsx("button",{className:"p-1 text-white hover:bg-blue-400 rounded disabled:text-gray-400 disabled:hover:bg-transparent",onClick:()=>ae.setPageIndex(ae.getPageCount()-1),disabled:!ae.getCanNextPage(),children:jsxRuntimeExports.jsx(M$3,{icon:caretAltToRightIcon,className:"block w-4 h-4 fill-current"})})]}),jsxRuntimeExports.jsxs("div",{className:"flex items-center space-x-2",children:[_e.length===1?jsxRuntimeExports.jsx("span",{children:_e.at(0)}):jsxRuntimeExports.jsx("select",{className:"w-[100px] bg-white text-blue-900 rounded p-1",value:ae.getState().pagination.pageSize,onChange:it=>ae.setPageSize(Number(it.target.value)),children:_e.map(it=>jsxRuntimeExports.jsx("option",{value:it,children:it},it))}),Ue&&jsxRuntimeExports.jsxs("span",{children:[me," per page"]})]})]})]})]})})}function Select({options:ie,value:ae,onChange:ce,placeholder:me="Select an option",className:we="",disabled:Ce=!1}){return jsxRuntimeExports.jsxs("div",{className:"relative inline-block",children:[jsxRuntimeExports.jsxs("select",{value:ae!=null?ae:"",onChange:_e=>ce==null?void 0:ce(_e.target.value),className:`
|
|
605
|
+
</p>`}),jsxRuntimeExports.jsx(PageNavigationButtons,{prevLink:"/setup/mobile/firm-accounts",prevProgress:7,nextLink:"/setup/mobile/flagging-keywords",nextProgress:8})]}),MobileGetInfo=()=>jsxRuntimeExports.jsxs("section",{className:"flex flex-col w-full !mb-3",children:[jsxRuntimeExports.jsx("h4",{className:"text-2xl font-semibold leading-9",children:"Native Text-Message Coverage with LeapXpert"}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("p",{className:"mt-5",children:"Comply’s partnership with LeapXpert makes us one of the few vendors who offer truly native iMessage and WhatsApp capture. That means employees can text through iMessage and WhatsApp as they regularly would – no app switching required."}),jsxRuntimeExports.jsxs("ul",{className:"list-disc pl-5 mt-5",children:[jsxRuntimeExports.jsx("li",{children:"Reps can keep their existing phone numbers"}),jsxRuntimeExports.jsx("li",{children:"Full capture of conversation threads, timestamps, attachments and multimedia, edits and updated message versions, and message reactions (i.e. emojis)"}),jsxRuntimeExports.jsx("li",{children:"WORM-compliant, meaning records cannot be altered, edited, or deleted"}),jsxRuntimeExports.jsx("li",{children:"Compliant with Apple and WhatsApp terms of service"}),jsxRuntimeExports.jsx("li",{children:"Full encryption from capture to archive"})]}),jsxRuntimeExports.jsxs("p",{className:"mt-5",children:["Interested in learning more? Reach out to ",jsxRuntimeExports.jsx("a",{className:"text-blue-500 underline",href:"mailto:InstallBaseSales@comply.com",children:"InstallBaseSales@comply.com"})]})]})]}),SetupFinish=()=>jsxRuntimeExports.jsxs("section",{className:"flex flex-col w-full !mb-3",children:[jsxRuntimeExports.jsxs("div",{className:"mb-10",children:[jsxRuntimeExports.jsx("h4",{className:"text-2xl font-semibold leading-9",children:"End of Setup"}),jsxRuntimeExports.jsx("p",{className:"mb-2 text-lg color-black",children:"You have reached the end of the communications archiving and review setup. Further changes can be accessed at any time from the archiving settings page. "})]}),jsxRuntimeExports.jsx(PageNavigationButtons,{prevLink:"/setup/website/review-frequency",prevProgress:24,nextLink:"/",nextIcon:!1,nextText:"Finish Setup",nextProgress:ARCHIVING_SETUP_COMPLETE})]}),emailsQueryOptions=ie=>({queryKey:["emails",ie],queryFn:async()=>ie?(await sharedApi.executeRequest("/emailaccounts/list","POST",{reviewPeriodId:ie,pageIndex:1,pageSize:1e4,filters:[],sortings:[{name:"emailDate",ascending:!0}]})).data||[]:[]}),emailReviewQueryOptions=(ie,ae,ce=!1)=>({queryKey:["emailreview",ae],queryFn:()=>sharedApi.executeRequest(`/emailaccounts/details?ReviewPeriodId=${ie}&ItemId=${ae}&IsSpecialReview=${ce}`,"GET")}),emailReviewMessageQueryOptions=(ie,ae=!1)=>({queryKey:["emailreviewmessage",ie],queryFn:()=>sharedApi.executeRequest(`/emailaccounts/message?S3Path=${ie}&IsKeyword=${ae}`,"GET")}),useEmailMarkReviewedMutation=()=>{const ie=useQueryClient();return useMutation({mutationFn:ae=>sharedApi.executeRequest("/emailreviewresponses","POST",{esId:ae}),onSuccess:()=>{ie.invalidateQueries([emailsQueryOptions,emailReviewQueryOptions])},onError:()=>{Vt.error("Error occurred while updating item")}})},useEmailMarkNeedsFurtherReviewMutation=()=>{const ie=useQueryClient();return useMutation({mutationFn:ae=>sharedApi.executeRequest("/emailreviewresponses/further","POST",{esId:ae}),onSuccess:()=>{ie.invalidateQueries([emailsQueryOptions,emailReviewQueryOptions])},onError:()=>{Vt.error("Error occurred while updating item")}})},useReviewNoteMutation=()=>{const ie=useQueryClient();return useMutation({mutationFn:({esId:ae,note:ce,archivingType:me})=>sharedApi.executeRequest("/accounts/note","POST",{esId:ae.toString(),note:ce,archivingType:me}),onSuccess:()=>{ie.invalidateQueries([emailsQueryOptions,emailReviewQueryOptions])},onError:()=>{Vt.error("Error occurred while updating item")}})},excludeQueryOptions=(ie,ae,ce)=>({queryKey:["emailexclude",ie,ce,ae],queryFn:()=>sharedApi.executeRequest(`/clientdomains/exclude?From=${ie}&ItemType=${ae}&CurrEmailReviewPeriodId=${ce}`,"GET")}),useExcludeItemMutation=()=>{const ie=useQueryClient();return useMutation({mutationFn:({item:ae,itemType:ce,currEmailReviewPeriodId:me,filterType:we="blacklist",isEmailLimit:Ce=!0})=>sharedApi.executeRequest("/emailaccounts/deactivate","POST",{item:ae,itemType:ce,filterType:we,isEmailLimit:Ce,currEmailReviewPeriodId:me,filters:[],sortings:[]}),onSuccess:()=>{ie.invalidateQueries([emailsQueryOptions,emailReviewQueryOptions])},onError:()=>{Vt.error("Error occurred while excluding item. Please try again!")}})},useToggleConfirmationMutation=()=>{const ie=useQueryClient();return useMutation({mutationFn:({reviewPeriodId:ae,isEnable:ce})=>{const me=ce?"/Archiving/disable_exclusion_confirmation_popup":"/Archiving/enable_exclusion_confirmation_popup";return sharedApi.executeRequest(me,"POST",{reviewPeriodId:ae})},onSuccess:()=>{ie.invalidateQueries([emailsQueryOptions,emailReviewQueryOptions])},onError:()=>{Vt.error("Error occurred while excluding item. Please try again!")}})},ButtonText=({children:ie,asButton:ae=!1,className:ce="",onClick:me,disabled:we=!1,type:Ce="button"})=>{const _e="block font-bold";return ae?jsxRuntimeExports.jsx("button",{type:Ce,onClick:me,disabled:we,className:`${_e} ${ce} cursor-pointer`,children:ie}):jsxRuntimeExports.jsx("div",{className:`${_e} ${ce}`,children:ie})},getVisiblePages=(ie,ae)=>{const me=[],we=[],Ce=Math.max(1,ie-1),_e=Math.min(ae,ie+1);for(let Me=Ce;Me<=_e;Me++)me.push(Me);return Ce>1&&we.push(0),we.push(...me),_e<ae&&we.push(0),we};function DataTable({maxHeight:ie=null,table:ae,searchPlaceholder:ce="Search...",itemsLabel:me="Items",hasGlobalFilter:we=!1,filterButtons:Ce=[],pageSizes:_e=[10,20,30,50],onRowClick:Me,emptyMessage:je="No items found",bordered:Fe=!1,rowSelectedCheck:Be=null,paginationControlLabel:qe=null,showItemsPerPageLabel:Ue=!0}){const Ve=ae.getPageCount(),He=ae.getState().pagination.pageIndex+1,Xe=ae.getState().pagination.pageSize,Ge=ae.options.manualPagination?ae.getRowCount():ae.getFilteredRowModel().rows.length,et=He===1?1:(He-1)*Xe+1,rt=Math.min(et+Xe-1,Ge),Ke=it=>{ae.setGlobalFilter(it.target.value)},Ye=getVisiblePages(He,Ve),nt={asc:jsxRuntimeExports.jsx(M$3,{icon:sortAscSmallIcon,size:"large"}),desc:jsxRuntimeExports.jsx(M$3,{icon:sortDescSmallIcon,size:"large"})};return jsxRuntimeExports.jsx("div",{className:"w-full",children:jsxRuntimeExports.jsxs("div",{className:"rounded-t-lg overflow-hidden",children:[we||Ce.length>0?jsxRuntimeExports.jsxs("div",{className:"flex flex-col md:flex-row gap-4 bg-blue-900 p-4",children:[jsxRuntimeExports.jsx("div",{className:"flex-grow",children:jsxRuntimeExports.jsx("div",{className:"relative",children:we&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"absolute left-3 top-1/2 transform -translate-y-1/2 text-white h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:jsxRuntimeExports.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})}),jsxRuntimeExports.jsx("input",{type:"text",placeholder:ce,value:ae.getState().globalFilter,onChange:Ke,className:"w-full pl-10 pr-4 py-3 border border-gray-300 rounded-md bg-[#344D5D] text-white focus:outline-none max-w-80"})]})})}),Ce.map((it,Je)=>jsxRuntimeExports.jsxs("button",{onClick:it.onClick,className:`px-4 py-3 rounded-md border uppercase border-white ${it.classes?it.classes:""} ${it.hasOwnProperty("active")&&!it.active?"text-white hover:bg-blue-400":"text-blue-700 bg-white hover:bg-[#cbe8fc]"} `,children:[it.icon?jsxRuntimeExports.jsx(M$3,{style:{fill:it.active?"var(--color-blue-900)":"white"},icon:it.icon,size:"medium",className:"mr-1"}):"",it.label]},Je))]}):null,jsxRuntimeExports.jsx("div",{className:`overflow-x-auto border-l border-r border-[#344D5D] ${ie}`,children:jsxRuntimeExports.jsxs("table",{className:`w-full border-collapse table-fixed ${Fe?"table-bordered":""}`,children:[jsxRuntimeExports.jsx("thead",{className:"bg-[#012134] text-white",children:jsxRuntimeExports.jsx("tr",{children:ae.getHeaderGroups().map(it=>it.headers.map(Je=>jsxRuntimeExports.jsx("th",{className:"py-4 px-6 text-left",style:{width:Je.getSize()?Je.getSize():"",cursor:Je.column.getCanSort()?"pointer":"default"},children:jsxRuntimeExports.jsxs(ButtonText,{asButton:!0,onClick:Je.column.getToggleSortingHandler(),children:[Je.isPlaceholder?null:Je.column.columnDef.header?flexRender(Je.column.columnDef.header,Je.getContext()):Je.id,Je.column.getIsSorted()&&nt[Je.column.getIsSorted()]]})},Je.id)))})}),jsxRuntimeExports.jsx("tbody",{className:"bg-white",children:ae.getRowModel().rows.length>0?ae.getRowModel().rows.map(it=>jsxRuntimeExports.jsx("tr",{onClick:()=>Me==null?void 0:Me(it),className:`hover:bg-secondary hover:cursor-pointer ${Be?Be(it):it.getIsSelected()?"bg-secondary":""}`,children:it.getVisibleCells().map(Je=>jsxRuntimeExports.jsx("td",{onClick:tt=>{Je.column.id==="id"&&(tt.preventDefault(),tt.stopPropagation())},className:`${Je.column.id==="id"?"":"py-4 px-6"} ${Fe?"border border-gray-200 p-2":""}`,children:flexRender(Je.column.columnDef.cell,Je.getContext())},Je.id))},it.id)):jsxRuntimeExports.jsx("tr",{children:jsxRuntimeExports.jsx("td",{colSpan:ae.getAllColumns().length,className:"py-4 px-6 text-center",children:je})})})]})}),jsxRuntimeExports.jsxs("div",{className:`flex items-center justify-between bg-[#012134] text-white ${Ye.length?"":"py-5"} px-4 rounded-b-lg`,children:[jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx("p",{children:`${et} - ${rt} of ${Ge} ${qe!=null?qe:me.toLowerCase()}`})}),jsxRuntimeExports.jsxs("div",{className:"flex gap-5",children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center space-x-2",children:[jsxRuntimeExports.jsx("button",{className:"p-1 text-white hover:bg-blue-400 rounded disabled:text-gray-400 disabled:hover:bg-transparent",onClick:()=>ae.setPageIndex(0),disabled:!ae.getCanPreviousPage(),children:jsxRuntimeExports.jsx(M$3,{icon:caretAltToLeftIcon,className:"block w-4 h-4 fill-current"})}),jsxRuntimeExports.jsx("button",{className:"p-1 text-white hover:bg-blue-400 rounded disabled:text-gray-400 disabled:hover:bg-transparent",onClick:()=>ae.previousPage(),disabled:!ae.getCanPreviousPage(),children:jsxRuntimeExports.jsx(M$3,{icon:caretAltLeftIcon,className:"block w-4 h-4 fill-current"})}),jsxRuntimeExports.jsx("div",{className:"flex items-center space-x-2",children:Ye.map((it,Je)=>{if(it===0)return jsxRuntimeExports.jsx("span",{children:"..."},Je);const tt=He===it;return jsxRuntimeExports.jsx("button",{className:`px-3 py-5 w-12 ${tt?"shadow-[inset_0_4px_0_0_#21d3ee] text-teal-500":""}`,onClick:()=>ae.setPageIndex(it-1),children:it},Je)})}),jsxRuntimeExports.jsx("button",{className:"p-1 text-white hover:bg-blue-400 rounded disabled:text-gray-400 disabled:hover:bg-transparent",onClick:()=>ae.nextPage(),disabled:!ae.getCanNextPage(),children:jsxRuntimeExports.jsx(M$3,{icon:caretAltRightIcon,className:"block w-4 h-4 fill-current"})}),jsxRuntimeExports.jsx("button",{className:"p-1 text-white hover:bg-blue-400 rounded disabled:text-gray-400 disabled:hover:bg-transparent",onClick:()=>ae.setPageIndex(ae.getPageCount()-1),disabled:!ae.getCanNextPage(),children:jsxRuntimeExports.jsx(M$3,{icon:caretAltToRightIcon,className:"block w-4 h-4 fill-current"})})]}),jsxRuntimeExports.jsxs("div",{className:"flex items-center space-x-2",children:[_e.length===1?jsxRuntimeExports.jsx("span",{children:_e.at(0)}):jsxRuntimeExports.jsx("select",{className:"w-[100px] bg-white text-blue-900 rounded p-1",value:ae.getState().pagination.pageSize,onChange:it=>ae.setPageSize(Number(it.target.value)),children:_e.map(it=>jsxRuntimeExports.jsx("option",{value:it,children:it},it))}),Ue&&jsxRuntimeExports.jsxs("span",{children:[me," per page"]})]})]})]})]})})}function Select({options:ie,value:ae,onChange:ce,placeholder:me="Select an option",className:we="",disabled:Ce=!1}){return jsxRuntimeExports.jsxs("div",{className:"relative inline-block",children:[jsxRuntimeExports.jsxs("select",{value:ae!=null?ae:"",onChange:_e=>ce==null?void 0:ce(_e.target.value),className:`
|
|
606
606
|
px-4 py-2
|
|
607
607
|
text-[#213F4A]
|
|
608
608
|
bg-[#F5F6F7]
|