(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[289],{2572:function(e,r,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/Manager/Users",function(){return n(1198)}])},1198:function(e,r,n){"use strict";n.r(r),n.d(r,{__N_SSP:function(){return h},default:function(){return _}});var t=n(5893),l=n(4184),s=n(9413),a=n(9852),i=n(1163),u=n(1664),d=n.n(u);let c=e=>{let{pages:r,last_page:n,active:l}=e,s="border border-gray-400 p-2",{query:a,pathname:u}=(0,i.useRouter)();return(0,t.jsx)("div",{children:(0,t.jsxs)("div",{className:"flex flex-row justify-center",children:[(0,t.jsx)(d(),{href:{pathname:u,query:{...a,page:1}},children:(0,t.jsx)("div",{className:s+" rtl:rounded-r-lg ltr:rounded-l-lg",role:"button",children:"ابتدا"})}),r.map((e,r)=>(0,t.jsx)(d(),{href:e.link?{pathname:u,query:{...a,page:e.link}}:{pathname:u,query:{...a}},children:(0,t.jsx)("div",{className:s+(e.link==l?" bg-gray-300":""),role:"button",children:e.text})},r)),(0,t.jsx)(d(),{href:{pathname:u,query:{...a,page:n}},children:(0,t.jsx)("div",{className:s+" rtl:rounded-l-lg ltr:rounded-r-lg",role:"button",children:"انتها"})})]})})},o=e=>{let{status:r,data:n}=e;return(0,t.jsx)(l.Z,{title:"کاربران",children:(0,t.jsxs)(s.Z,{title:"لیست کاربران",create:!0,children:[(0,t.jsx)(a.Z,{rows:n.data,cols:[{field:"userDetail.first_name",use:"نام"},{field:"userDetail.last_name",use:"نام خانوادگی"},{field:"email",use:"ایمیل"},{field:"phone",use:"شماره"},{field:"action_de",use:"عملیات",use_in_search:!1}]}),(0,t.jsx)(c,{pages:n.pages,last_page:n.last_page,active:n.active_page})]})})};var h=!0,_=o}},function(e){e.O(0,[4617,1057,3874,4885,1228,699,7038,8289,4700,4184,332,9774,2888,179],function(){return e(e.s=2572)}),_N_E=e.O()}]);