PageSourceSearch

https://rentbird.nl/build/assets/HomePage-Crl6XX4g.js

js rentbird.nl collected 2026-10-02 15:46:52 UTC 4,008 bytes, 2 lines download raw bytes

1import{_ as $}from"./B2BLayout-Ba0I_aeQ.js";import{r as h,w as y,z as f,I as B,J as u,B as s,E as c,W as S,u as d,U as x,A as g,K as z,$ as I,a2 as M,V as _,_ as E,N,c as U,Q as D}from"./Button-BhIqzywu.js";import{u as C}from"./B2B-CvWhXy0K.js";import{_ as R}from"./MyRentbirdCard-BUJJAdG_.js";import{e as w}from"./app-B1gNLSdI.js";import{_ as T}from"./DataTable-ZhaVEUJ6.js";import{z as k}from"./ZiggyUrls-BUKqCQlB.js";import"./CustomTransitionExpand-Slh4NNCf.js";import"./Pagination-Kec-_4RS.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};r.SENTRY_RELEASE={id:"0edc38738f2132df4c28a11607056f2247fc760c"},r._sentryModuleMetadata=r._sentryModuleMetadata||{},r._sentryModuleMetadata[new r.Error().stack]=function(i){for(var o=1;o<arguments.length;o++){var a=arguments[o];if(a!=null)for(var n in a)a.hasOwnProperty(n)&&(i[n]=a[n])}return i}({},r._sentryModuleMetadata[new r.Error().stack],{"_sentryBundlerPluginAppKey:rentbird-frontend":!0});var p=new r.Error().stack;p&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[p]="4deab015-3fdc-48b1-8ed7-af247c7e8c89",r._sentryDebugIdIdentifier="sentry-dbid-4deab015-3fdc-48b1-8ed7-af247c7e8c89")}catch{}})();const A={class:"flex items-center"},P={class:"flex justify-between items-center"},V={class:"flex items-center gap-2 cursor-pointer text-sm"},q=["checked"],Q={class:"flex items-center"},K={key:0},L={key:1},Z={__name:"HomePage",setup(r){const p=D(),i=U(()=>p.props.users),{organization:o}=C(),a=h(w("search_query","")),n=h(w("sort_by","created_at")),m=h(w("sort_direction","desc")),b=h(w("show_archived","false")==="true"),v=()=>{let l=`/b2b/${o.value}/`;l+=`?search_query=${encodeURIComponent(a.value)}`,l+=`&sort_by=${encodeURIComponent(n.value)}`,l+=`&sort_direction=${m.value}`,l+=`&show_archived=${b.value}`,N.visit(l,{preserveState:!0,preserveScroll:!0})};return y(a,()=>{const l=a.value;setTimeout(()=>{l===a.value&&v()},500)}),y(n,v),y(m,v),y(b,v),(l,t)=>(f(),B($,{"bread-crumbs":[{label:"Users",url:d(k)("b2b.home",{organization:d(o)})}]},{title:u(()=>[s("div",A,[c(E,{name:"user","icon-width":"w-[40px] mr-2 relative top-[-2px]"}),t[4]||(t[4]=s("span",null,"Users",-1))])]),default:u(()=>[s("div",P,[c(S,{tag:"link",href:d(k)("b2b.user.register",{organization:d(o)}),big:!0,"icon-left":"plus"},{default:u(()=>[...t[5]||(t[5]=[x(" Create new user ",-1)])]),_:1},8,["href"]),s("label",V,[s("input",{type:"checkbox",checked:b.value,class:"w-4 h-4 rounded border-gray-300",onChange:t[0]||(t[0]=e=>b.value=e.target.checked)},null,40,q),t[6]||(t[6]=x(" Show archived users ",-1))])]),c(R,{class:"mt-6","can-expand-on-mobile":!1},{default:u(()=>[c(T,{"search-query":a.value,"sort-by":n.value,"sort-direction":m.value,pagination:i.value,headers:[{label:"Name",value:"name"},{label:"Created at",value:"created_at"},{label:"Status",value:"status",isSortable:!1},{label:"Email",value:"email"},{label:"Expected matches per week",value:"expected_matches_per_week"}],"onUpdate:searchQuery":t[1]||(t[1]=e=>{a.value=e}),"onUpdate:sortBy":t[2]||(t[2]=e=>{n.value=e}),"onUpdate:sortDirection":t[3]||(t[3]=e=>{m.value=e})},{default:u(()=>[(f(!0),g(z,null,I(i.value.data,e=>(f(),g("tr",{key:e==null?void 0:e.random_id,class:"row"},[s("td",null,[c(d(M),{class:"text-blue-base hover:cursor-pointer hover:underline",href:d(k)("b2b.user.details",{organization:d(o),user:e.random_id})},{default:u(()=>[x(_(e.firstname)+" "+_(e.lastname),1)]),_:2},1032,["href"])]),s("td",null,_(e.created_at_formatted),1),s("td",null,[s("div",Q,[c(E,{class:"pr-2 relative top-[-1px]",name:e.is_active?"dot-green":"dot-red"},null,8,["name"]),e.is_active?(f(),g("span",K,"Receiving matches")):(f(),g("span",L,"Not receiving matches"))])]),s("td",null,_(e.email),1),s("td",null,_(e.expected_matches_per_week||0),1)]))),128))]),_:1},8,["search-query","sort-by","sort-direction","pagination"])]),_:1})]),_:1},8,["bread-crumbs"]))}};export{Z as default};
2//# sourceMappingURL=HomePage-Crl6XX4g.js.map

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.