PageSourceSearch

https://edmwarriors.com/_nuxt/CEIA8gq3.js

js edmwarriors.com collected 2026-10-04 07:48:03 UTC 3,785 bytes, 1 lines download raw bytes

1import{aL as w,aX as c,aS as u,aP as e,aQ as i,aV as y,aN as l,aO as d,aR as n,aW as o,a$ as v,b0 as k}from"./DGfe1mPV.js";import{h as D}from"./Cx27IZB1.js";import p from"./tJFh8gHH.js";import{I as m}from"./bb2v1qCj.js";import{_}from"./BxtLIoZW.js";import{_ as f}from"./BK5ZpevN.js";import{_ as h}from"./kbZ6rl6-.js";import"./DWmDygGu.js";import"./DRnbzGmH.js";import"./D3MjPVNK.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};a.SENTRY_RELEASE={id:"[email protected]"};var t=new a.Error().stack;t&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[t]="1d7e64fb-e3aa-467a-9784-db25b31a9aee",a._sentryDebugIdIdentifier="sentry-dbid-1d7e64fb-e3aa-467a-9784-db25b31a9aee")}catch{}})();const E={props:{user:Object},computed:{registerDate(){return this.user.profile&&this.user.profile.created_at?this.localDateFormat(this.user.profile.created_at,"MMM D, YYYY - HH:mm"):"N/A"}}},T={class:"flex-none w-50px text-gray-500 text-sm"},I={class:"flex flex-1 min-w-0 truncate font-medium"},P={class:"flex-none w-20 text-right font-medium capitalize"},S={class:"!hidden !md:flex flex-none w-48 text-sm text-gray-500 truncate justify-end"};function $(a,t,s,r,N,g){const b=y("router-link");return l(),c(b,{to:`/account/admin/users/${s.user.id}`,class:"flex items-center gap-15px py-8px md:mx--20px px-20px !transition-none rounded-full !hover:transition-0s hover:bg-bunker-500 hover:text-white",exact:""},{default:u(()=>[e("div",T,i(s.user.id),1),e("div",I,i(s.user.username),1),e("div",P,i(s.user.role),1),e("div",S,i(g.registerDate),1)]),_:1},8,["to"])}const x=w(E,[["render",$]]),B={class:"flex items-center gap-10px"},R={head(){return D.noIndex("Admin - Users",null,this.getCanonicalUrl())},components:{Block:h,FormInput:f,HeaderSectionSpaceBetween:_,UserBlock:x,InnerPagesTitle:m,Pagination:p}
1,data(){return{users:null,search:null,searchTimeout:null,params:{current_page:(this._.provides[o]||this.$route).query.current_page||1,last_page:(this._.provides[o]||this.$route).query.last_page||1,role:(this._.provides[o]||this.$route).query.role||void 0,...(this._.provides[o]||this.$route).query}}},watch:{search:{handler(a){clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.params.search=a,this.fetch(this.params.current_page)},300)},immediate:!0}},methods:{async fetch(a){let{data:t}=await this.$axios("admin/users",{params:this.params});this.users=t.data,this.params.current_page=a,this.params.last_page=t.last_page,window.scrollTo(0,0)}}},F=Object.assign(R,{__name:"index",setup(a){return(t,s)=>(l(),d("div",null,[n(_,null,{default:u(()=>[n(m,{title:"Users",marginBottom:!1}),e("div",B,[n(f,{modelValue:t.search,"onUpdate:modelValue":s[0]||(s[0]=r=>t.search=r),mini:!0,placeholder:"type anything"},null,8,["modelValue"])])]),_:1}),n(h,null,{default:u(()=>[s[1]||(s[1]=e("div",{class:"flex items-center gap-15px pb-12px md:mx--20px px-20px"},[e("div",{class:"flex-none w-50px"},[e("span",{class:"text-xs font-semibold text-bunker-600 uppercase tracking-wide"},"ID")]),e("div",{class:"flex flex-1 min-w-0"},[e("span",{class:"text-xs font-semibold text-bunker-600 uppercase tracking-wide"},"USERNAME")]),e("div",{class:"flex-none w-20 text-right"},[e("span",{class:"text-xs font-semibold text-bunker-600 uppercase tracking-wide"},"ROLE")]),e("div",{class:"!hidden !md:flex flex-none w-48 justify-end"},[e("span",{class:"text-xs font-semibold text-bunker-600 uppercase tracking-wide"},"REGISTER DATE")])],-1)),(l(!0),d(v,null,k(t.users,r=>(l(),c(x,{key:r.id,user:r},null,8,["user"]))),128))]),_:1}),n(p,{class:"!mt-30px",currentPage:t.params.current_page,lastPage:t.params.last_page,onChangePage:t.fetch},null,8,["currentPage","lastPage","onChangePage"])]))}});export{F 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.