"use strict";(self.webpackChunk_cromwell_admin_panel=self.webpackChunk_cromwell_admin_panel||[]).push([[691],{26245:(e,t,a)=>{a.d(t,{I:()=>l});const l=["administrator","author","customer","guest"]},74691:(e,t,a)=>{a.r(t),a.d(t,{default:()=>u});var l=a(63756),i=a(49352),r=a(2784),s=a(42934),n=a(7736),m=a(26245),o=a(25370);const d=s.Z;function u(){const e=(0,i.getGraphQLClient)();return r.createElement(d,{entityCategory:l.EDBEntity.User,entityListRoute:n.sG.route,entityBaseRoute:n.Uu.baseRoute,listLabel:"Users",entityLabel:"User",nameProperty:"fullName",getManyFiltered:e.getFilteredUsers,deleteOne:e.deleteUser,deleteMany:e.deleteManyUsers,deleteManyFiltered:e.deleteManyFilteredUsers,columns:[{name:"avatar",label:"Avatar",type:"Image",visible:!0,getValueView:e=>r.createElement("div",{style:{height:"40px",width:"40px",borderRadius:"100%",backgroundPosition:"center",backgroundSize:"cover",backgroundImage:`url(${e})`}})},{name:"fullName",label:"Name",type:"Simple text",visible:!0},{name:"email",label:"Email",type:"Simple text",visible:!0},{name:"role",label:"Role",type:"Simple text",exactSearch:!0,searchOptions:m.I.map((e=>({value:e,label:e}))),visible:!0},...o.xz.map((e=>"createDate"===e.name?{...e,visible:!0}:{...e,visible:!1})),{name:"phone",label:"Phone",type:"Simple text",visible:!1},{name:"address",label:"Address",type:"Simple text",visible:!1}]})}}}]);