PageSourceSearch

https://horochan.ru/_app/immutable/nodes/13.DVYuVf9Y.js

js horochan.ru collected 2026-10-06 06:52:33 UTC 16,310 bytes, 5 lines download raw bytes

1import{g as Ie}from"../chunks/B4knj03N.js";import{l as Se,$ as ve,u as ye,B as ne,P as ue,e as x,n as be,q as ke,r as De,s as Be,I as ee,t as Ue,b as fe,H as ce,v as Pe,w as Re,x as Ae}from"../chunks/DyvLYKOZ.js";import{s as ae,k as Y,d as f,a as J,y as m,i as R,b as _,c as g,e as E,f as F,g as W,h as v,t as X,j as L,n as te,B as Q,U as Ve,a0 as Me,V as Ce,W as Oe,O as Z,X as ze,$ as de}from"../chunks/D6yj4WpA.js";import{S as Ee,i as we,d as A,t as y,a as D,m as V,c as M,b as C,g as le,e as oe,f as Te}from"../chunks/CrPGkuYZ.js";import{S as Ne}from"../chunks/BVtS1Npv.js";import{S as He}from"../chunks/PezcuP3q.js";import{E as je}from"../chunks/ur1g7NQP.js";import{B as qe}from"../chunks/DGJdIn0Y.js";import{B as We}from"../chunks/CnYXbHnF.js";import{B as Le}from"../chunks/CVKRO3CH.js";import{I as Fe}from"../chunks/CKuRZhSr.js";import{C as Xe}from"../chunks/zVeBlPoE.js";import{T as Ge}from"../chunks/Ru2LokY9.js";import{B as Je}from"../chunks/CgEWymHb.js";import{p as Ke}from"../chunks/Dhk-7FPJ.js";import{q as Qe}from"../chunks/CIfAMFXW.js";async function Ye({fetch:a,params:t,url:s}){const e=await Se(),r=await Ie();return{stats:e,rolesWithPermissions:r}}const Ot=Object.freeze(Object.defineProperty({__proto__:null,load:Ye},Symbol.toStringTag,{value:"Module"}));function _e(a,t,s){const e=a.slice();return e[5]=t[s],e}function Ze(a){let t,s;return t=new Je({}),{c(){C(t.$$.fragment)},l(e){M(t.$$.fragment,e)},m(e,r){V(t,e,r),s=!0},i(e){s||(D(t.$$.fragment,e),s=!0)},o(e){y(t.$$.fragment,e),s=!1},d(e){A(t,e)}}}function $e(a){let t,s;return t=new ee({props:{size:18,type:a[0].blocked?"error":"",$$slots:{default:[Ze]},$$scope:{ctx:a}}}),{c(){C(t.$$.fragment)},l(e){M(t.$$.fragment,e)},m(e,r){V(t,e,r),s=!0},p(e,r){const n={};r&1&&(n.type=e[0].blocked?"error":""),r&256&&(n.$$scope={dirty:r,ctx:e}),t.$set(n)},i(e){s||(D(t.$$.fragment,e),s=!0)},o(e){y(t.$$.fragment,e),s=!1},d(e){A(t,e)}}}function xe(a){let t=a[0].blocked,s,e,r=$e(a);return{c(){r.c(),s=Q()},l(n){r.l(n),s=Q()},m(n,i){r.m(n,i),R(n,s,i),e=!0},p(n,i){i&1&&ae(t,t=n[0].blocked)?(le(),y(r,1,1,te),oe(),r=$e(n),r.c(),D(r,1),r.m(s.parentNode,s)):r.p(n,i)},i(n){e||(D(r),e=!0)},o(n){y(r),e=!1},d(n){n&&f(s),r.d(n)}}}function et(a){let t=a[5].name+"",s;return{c(){s=X(t)},l(e){s=F(e,t)},m(e,r){R(e,s,r)},p(e,r){r&1&&t!==(t=e[5].name+"")&&J(s,t)},d(e){e&&f(s)}}}function pe(a,t){let s,e,r;return e=new Ge({props:{shape:"round",$$slots:{default:[et]},$$scope:{ctx:t}}}),{key:a,first:null,c(){s=Q(),C(e.$$.fragment),this.h()},l(n){s=Q(),M(e.$$.fragment,n),this.h()},h(){this.first=s},m(n,i){R(n,s,i),V(e,n,i),r=!0},p(n,i){t=n;const $={};i&257&&($.$$scope={dirty:i,ctx:t}),e.$set($)},i(n){r||(D(e.$$.fragment,n),r=!0)},o(n){y(e.$$.fragment,n),r=!1},d(n){n&&f(s),A(e,n)}}}function tt(a){let t,s,e,r,n,i=a[0].id+"",$,p,w,P,B,b,O,U=a[2]("users_created_title")+"",k,N,z=a[0].createdAt.toLocaleString()+"",d,h,c,S=[],H=new Map,T;P=new ne({props:{size:"small",isCircle:!0,isDisabled:a[1]||!a[3].hasPermission(ue.AccessAll),popoverProps:{content:a[0].blocked?a[2]("users_unsuspend_title"):a[2]("users_suspend_title")},$$slots:{default:[xe]},$$scope:{ctx:a}}}),P.$on("click",a[4]);let j=x(a[0].roles);const o=l=>l[5].id;for(let l=0;l<j.length;l+=1){let u=_e(a,j,l),I=o(u);H.set(I,S[l]=pe(I,u))}return{c(){t=v("div"),s=v("header"),e=v("h3"),r=v("a"),n=X("@"),$=X(i),w=L(),C(P.$$.fragment),B=L(),b=v("section"),O=v("b"),k=X(U),N=X(": "),d=X(z),h=L(),c=v("footer");for(let l=0;l<S.length;l+=1)S[l].c();this.h()},l(l){t=g(l,"DIV",{class:!0});var u=E(t);s=g(u,"HEADER",{class:!0});var I=E(s);e=g(I,"H3",{class:!0});var q=E(e);r=g(q,"A",{href:!0});var G=E(r);n=F(G,"@"),$=F(G,i),G.forEach(f),q.forEach(f),w=W(I),M(P.$$.fragment,I),I.forEach(f),B=W(u),b=g(u,"SECTION",{class:!0});var K=E(b);O=g(K,"B",{});var se=E(O);
1k=F(se,U),N=F(se,": "),se.forEach(f),d=F(K,z),K.forEach(f),h=W(u),c=g(u,"FOOTER",{class:!0});var ie=E(c);for(let re=0;re<S.length;re+=1)S[re].l(ie);ie.forEach(f),u.forEach(f),this.h()},h(){m(r,"href",p="/u/"+a[0].id),m(e,"class","truncate-text flex items-center"),m(s,"class","user-card__header flex items-center justify-between"),m(b,"class","user-card__joined svelte-kp6mnz"),m(c,"class","user-card__roles flex items-center svelte-kp6mnz"),m(t,"class","user-card card-body w-100 h-100 flex flex-column justify-between pbs8 pbe8 pis10 pie10 svelte-kp6mnz")},m(l,u){R(l,t,u),_(t,s),_(s,e),_(e,r),_(r,n),_(r,$),_(s,w),V(P,s,null),_(t,B),_(t,b),_(b,O),_(O,k),_(O,N),_(b,d),_(t,h),_(t,c);for(let I=0;I<S.length;I+=1)S[I]&&S[I].m(c,null);T=!0},p(l,u){(!T||u&1)&&i!==(i=l[0].id+"")&&J($,i),(!T||u&1&&p!==(p="/u/"+l[0].id))&&m(r,"href",p);const I={};u&10&&(I.isDisabled=l[1]||!l[3].hasPermission(ue.AccessAll)),u&5&&(I.popoverProps={content:l[0].blocked?l[2]("users_unsuspend_title"):l[2]("users_suspend_title")}),u&257&&(I.$$scope={dirty:u,ctx:l}),P.$set(I),(!T||u&4)&&U!==(U=l[2]("users_created_title")+"")&&J(k,U),(!T||u&1)&&z!==(z=l[0].createdAt.toLocaleString()+"")&&J(d,z),u&1&&(j=x(l[0].roles),le(),S=be(S,u,o,1,l,j,H,c,ke,pe,null,_e),oe())},i(l){if(!T){D(P.$$.fragment,l);for(let u=0;u<j.length;
1u+=1)D(S[u]);T=!0}},o(l){y(P.$$.fragment,l);for(let u=0;u<S.length;u+=1)y(S[u]);T=!1},d(l){l&&f(t),A(P);for(let u=0;u<S.length;u+=1)S[u].d()}}}function st(a){let t,s;return t=new Xe({props:{isBorder:!0,isRounded:!0,isStacked:!0,$$slots:{default:[tt]},$$scope:{ctx:a}}}),{c(){C(t.$$.fragment)},l(e){M(t.$$.fragment,e)},m(e,r){V(t,e,r),s=!0},p(e,[r]){const n={};r&271&&(n.$$scope={dirty:r,ctx:e}),t.$set(n)},i(e){s||(D(t.$$.fragment,e),s=!0)},o(e){y(t.$$.fragment,e),s=!1},d(e){A(t,e)}}}function rt(a,t,s){let e,r;Y(a,ve,p=>s(2,e=p)),Y(a,ye,p=>s(3,r=p));let{userModel:n}=t,i=!1;async function $(){if(!(!n.blocked&&!confirm(e("users_suspend_confirm"))))try{s(1,i=!0),(n.blocked?await De(n.id):await Be(n.id)).ok&&s(0,n.blocked=!n.blocked,n)}finally{s(1,i=!1)}}return a.$$set=p=>{"userModel"in p&&s(0,n=p.userModel)},[n,i,e,r,$]}class nt extends Ee{constructor(t){super(),we(this,t,rt,st,ae,{userModel:0})}}function he(a,t,s){const e=a.slice();return e[15]=t[s],e}function me(a){let t,s,e,r=a[2]("users_stats_counter")+"",n,i,$,p=a[0].stats.usersCount+"",w,P,B,b,O=a[2]("users_stats_today")+"",U,k,N,z=a[0].stats.usersToday+"",d;return{c(){t=v("div"),s=v("a"),e=v("h4"),n=X(r),i=L(),$=v("span"),w=X(p),P=L(),B=v("a"),b=v("h4"),U=X(O),k=L(),N=v("span"),d=X(z),this.h()},l(h){t=g(h,"DIV",{class:!0});var c=E(t);s=g(c,"A",{href:!0,class:!0});var S=E(s);e=g(S,"H4",{});var H=E(e);n=F(H,r),H.forEach(f),i=W(S),$=g(S,"SPAN",{});var T=E($);
1w=F(T,p),T.forEach(f),S.forEach(f),P=W(c),B=g(c,"A",{href:!0,class:!0});var j=E(B);b=g(j,"H4",{});var o=E(b);U=F(o,O),o.forEach(f),k=W(j),N=g(j,"SPAN",{});var l=E(N);d=F(l,z),l.forEach(f),j.forEach(f),c.forEach(f),this.h()},h(){m(s,"href","/dashboard/users"),m(s,"class","users-stats__counter p6 pis12 pie12 svelte-1iyd560"),Z(s,"active",a[5].url.pathname==="/dashboard/users"&&a[5].url.search===""),m(B,"href","?date=today"),m(B,"class","users-stats__counter p6 pis12 pie12 svelte-1iyd560"),Z(B,"active",a[5].url.search==="?date=today"),m(t,"class","users-stats flex mbe20 svelte-1iyd560")},m(h,c){R(h,t,c),_(t,s),_(s,e),_(e,n),_(s,i),_(s,$),_($,w),_(t,P),_(t,B),_(B,b),_(b,U),_(B,k),_(B,N),_(N,d)},p(h,c){c&4&&r!==(r=h[2]("users_stats_counter")+"")&&J(n,r),c&1&&p!==(p=h[0].stats.usersCount+"")&&J(w,p),c&32&&Z(s,"active",h[5].url.pathname==="/dashboard/users"&&h[5].url.search===""),c&4&&O!==(O=h[2]("users_stats_today")+"")&&J(U,O),c&1&&z!==(z=h[0].stats.usersToday+"")&&J(d,z),c&32&&Z(B,"active",h[5].url.search==="?date=today")},d(h){h&&f(t)}}}function at(a){let t,s;return t=new Le({}),{c(){C(t.$$.fragment)},l(e){M(t.$$.fragment,e)},m(e,r){V(t,e,r),s=!0},i(e){s||(D(t.$$.fragment,e),s=!0)},o(e){y(t.$$.fragment,e),s=!1},d(e){A(t,e)}}}function lt(a){let t,s,e;return s=new ee({props:{size:20,$$slots:{default:[at]},$$scope:{ctx:a}}}),{c(){t=v("span"),C(s.$$.fragment),this.h()},l(r){t=g(r,"SPAN",{class:!0});var n=E(t);M(s.$$.fragment,n),n.forEach(f),this.h()},h(){m(t,"class","flex")},m(r,n){R(r,t,n),V(s,t,null),e=!0},p(r,n){const i={};n&262144&&(i.$$scope={dirty:n,ctx:r}),s.$set(i)},i(r){e||(D(s.$$.fragment,r),e=!0)},o(r){y(s.$$.fragment,r),e=!1},d(r){r&&f(t),A(s)}}}function ot(a){let t,s;return t=new qe({}),{c(){C(t.$$.fragment)},l(e){M(t.$$.fragment,e)},m(e,r){V(t,e,r),s=!0},i(e){s||(D(t.$$.fragment,e),s=!0)},o(e){y(t.$$.fragment,e),s=!1},d(e){A(t,e)}}}function it(a){let t,s;return t=new ee({props:{size:20,$$slots:{default:[ot]},$$scope:{ctx:a}}}),{c(){C(t.$$.fragment)},l(e){M(t.$$.fragment,e)},m(e,r){V(t,e,r),s=!0},p(e,r){const n={};r&262144&&(n.$$scope={dirty:r,ctx:e}),t.$set(n)},i(e){s||(D(t.$$.fragment,e),s=!0)},o(e){y(t.$$.fragment,e),s=!1},d(e){A(t,e)}}}function ut(a){let t,s;return t=new ne({props:{isBlank:!0,isBlock:!0,size:"small",$$slots:{default:[it]},$$scope:{ctx:a}}}),t.$on("click",a[9]),{c(){C(t.$$.fragment)},l(e){M(t.$$.fragment,e)},m(e,r){V(t,e,r),s=!0},p(e,r){const n={};r&262144&&(n.$$scope={dirty:r,ctx:e}),t.$set(n)},i(e){s||(D(t.$$.fragment,e),s=!0)},o(e){y(t.$$.fragment,e),s=!1},d(e){A(t,e)}}}function ft(a){let t,s,e;return s=new Pe({props:{addonRight:!0,$$slots:{default:[ut]},$$scope:{ctx:a}}}),{c(){t=v("div"),C(s.$$.fragment),this.h()},l(r){t=g(r,"DIV",{slot:!0});var n=E(t);M(s.$$.fragment,n),n.forEach(f),this.h()},h(){m(t,"slot","addonRight")},m(r,n){R(r,t,n),V(s,t,null),e=!0},p(r,n){const i={};n&262146&&(i.$$scope={dirty:n,ctx:r}),s.$set(i)},i(r){e||(D(s.$$.fragment,r),e=!0)},o(r){y(s.$$.fragment,r),e=!1},d(r){r&&f(t),A(s)}}}function ge(a,t){let s,e,r;return e=new nt({props:{userModel:t[15]}}),{key:a,first:null,c(){s=Q(),C(e.$$.fragment),this.h()},l(n){s=Q(),M(e.$$.fragment,n),this.h()},h(){this.first=s},m(n,i){R(n,s,i),V(e,n,i),r=!0},p(n,i){t=n;const $={};i&8&&($.userModel=t[15]),e.$set($)},i(n){r||(D(e.$$.fragment,n),r=!0)},o(n){y(e.$$.fragment,n),r=!1},d(n){n&&f(s),A(e,n)}}}function ct(a){let t,s,e;return s=new He({}),{c(){t=v("div"),C(s.$$.fragment),this.h()},l(r){t=g(r,"DIV",{slot:!0,class:!0});var n=E(t);M(s.$$.fragment,n),n.forEach(f),this.h()},h(){m(t,"slot","spinner"),m(t,"class","p16")},m(r,n){R(r,t,n),V(s,t,null),e=!0},p:te,i(r){e||(D(s.$$.fragment,r),e=!0)},o(r){y(s.$$.fragment,r),e=!1},d(r){r&&f(t),A(s)}}}function dt(a){let t,s;return t=new We({}),{c(){C(t.$$.fragment)},l(e){M(t.$$.fragment,e)},m(e,r){V(t,e,r),s=!0},i(e){s||(D(t.$$.fragment,e),s=!0)},o(e){y(t.$$.fragment,e),s=!1},d(e){A(t,e)}}}function _t(a){let t,s,e;return s=new ee({props:{size:36,$$slots:{default:[dt]},$$scope:{ctx:a}}}),{c(){t=v("div"),C(s.$$.fragment),this.h()},l(r){t=g(r,"DIV",{slot:!0});var n=E(t);
1M(s.$$.fragment,n),n.forEach(f),this.h()},h(){m(t,"slot","header")},m(r,n){R(r,t,n),V(s,t,null),e=!0},p(r,n){const i={};n&262144&&(i.$$scope={dirty:n,ctx:r}),s.$set(i)},i(r){e||(D(s.$$.fragment,r),e=!0)},o(r){y(s.$$.fragment,r),e=!1},d(r){r&&f(t),A(s)}}}function $t(a){let t,s,e=a[2]("users_empty_title")+"",r;return{c(){t=v("div"),s=v("div"),r=X(e),this.h()},l(n){t=g(n,"DIV",{slot:!0});var i=E(t);s=g(i,"DIV",{class:!0});var $=E(s);r=F($,e),$.forEach(f),i.forEach(f),this.h()},h(){m(s,"class","h4"),m(t,"slot","body")},m(n,i){R(n,t,i),_(t,s),_(s,r)},p(n,i){i&4&&e!==(e=n[2]("users_empty_title")+"")&&J(r,e)},d(n){n&&f(t)}}}function pt(a){let t,s,e;return s=new je({props:{isRounded:!0,isBordered:!0,$$slots:{body:[$t],header:[_t]},$$scope:{ctx:a}}}),{c(){t=v("div"),C(s.$$.fragment),this.h()},l(r){t=g(r,"DIV",{slot:!0});var n=E(t);M(s.$$.fragment,n),n.forEach(f),this.h()},h(){m(t,"slot","noResults")},m(r,n){R(r,t,n),V(s,t,null),e=!0},p(r,n){const i={};n&262148&&(i.$$scope={dirty:n,ctx:r}),s.$set(i)},i(r){e||(D(s.$$.fragment,r),e=!0)},o(r){y(s.$$.fragment,r),e=!1},d(r){r&&f(t),A(s)}}}function ht(a){let t;return{c(){t=v("div"),this.h()},l(s){t=g(s,"DIV",{slot:!0}),E(t).forEach(f),this.h()},h(){m(t,"slot","noMore")},m(s,e){R(s,t,e)},p:te,d(s){s&&f(t)}}}function mt(a){let t,s="Error";return{c(){t=v("div"),t.textContent=s,this.h()},l(e){t=g(e,"DIV",{slot:!0,class:!0,"data-svelte-h":!0}),ze(t)!=="svelte-ef8xtv"&&(t.textContent=s),this.h()},h(){m(t,"slot","error"),m(t,"class","p16")},m(e,r){R(e,t,r)},p:te,d(e){e&&f(t)}}}function gt(a){let t,s,e,r,n,i,$,p,w,P,B,b,O,U,k=[],N=new Map,z,d,h;document.title=t=`\r
2		`+a[2]("users_page_title")+`\r
3	`;let c=a[0].stats&&me(a);i=new ne({props:{isRounded:!0,$$slots:{default:[lt]},$$scope:{ctx:a}}}),i.$on("click",a[7]);function S(o){a[10](o)}let H={id:"users-search-id-input",isLabelHidden:!0,isRounded:!0,isUnderlinedWithBackground:!0,type:"text",hasRightAddon:!0,placeholder:a[2]("users_input_search_by_user_placeholder"),$$slots:{addonRight:[ft]},$$scope:{ctx:a}};a[1].id!==void 0&&(H.value=a[1].id),w=new Ue({props:H}),Ve.push(()=>Te(w,"value",S)),b=new Ne({props:{singleSelected:a[1].role,isDisabled:a[1].id,uniqueId:"users-role-search",name:"users-role-search",options:a[4],defaultOptionLabel:a[2]("users_input_search_by_role_label"),css:"cursor-pointer"}}),b.$on("selected",a[11]);let T=x(a[3]);const j=o=>o[15].id;for(let o=0;o<T.length;o+=1){let l=he(a,T,o),u=j(l);N.set(u,k[o]=ge(u,l))}return d=new Fe({props:{distance:1e3,$$slots:{error:[mt],noMore:[ht],noResults:[pt],spinner:[ct]},$$scope:{ctx:a}}}),d.$on("infinite",a[8]),{c(){s=L(),c&&c.c(),e=L(),r=v("section"),n=v("div"),C(i.$$.fragment),$=L(),p=v("div"),C(w.$$.fragment),B=L(),C(b.$$.fragment),O=L(),U=v("div");for(let o=0;o<k.length;o+=1)k[o].c();z=L(),C(d.$$.fragment),this.h()},l(o){Ce("svelte-im5to0",document.head).forEach(f),s=W(o),c&&c.l(o),e=W(o),r=g(o,"SECTION",{class:!0});var u=E(r);n=g(u,"DIV",{class:!0});var I=E(n);M(i.$$.fragment,I),I.forEach(f),$=W(u),p=g(u,"DIV",{class:!0});var q=E(p);M(w.$$.fragment,q),B=W(q),M(b.$$.fragment,q),q.forEach(f),u.forEach(f),O=W(o),U=g(o,"DIV",{class:!0});var G=E(U);for(let K=0;K<k.length;K+=1)k[K].l(G);G.forEach(f),z=W(o),M(d.$$.fragment,o),this.h()},h(){m(n,"class","flex items-center"),m(p,"class","users-search flex mis8 svelte-1iyd560"),m(r,"class","flex items-center mbe12"),m(U,"class","users-list grid svelte-1iyd560")},m(o,l){R(o,s,l),c&&c.m(o,l),R(o,e,l),R(o,r,l),_(r,n),V(i,n,null),_(r,$),_(r,p),V(w,p,null),_(p,B),V(b,p,null),R(o,O,l),R(o,U,l);for(let u=0;u<k.length;u+=1)k[u]&&k[u].m(U,null);R(o,z,l),V(d,o,l),h=!0},p(o,[l]){(!h||l&4)&&t!==(t=`\r
4		`+o[2]("users_page_title")+`\r
5	`)&&(document.title=t),o[0].stats?c?c.p(o,l):(c=me(o),c.c(),c.m(e.parentNode,e)):c&&(c.d(1),c=null);const u={};l&262144&&(u.$$scope={dirty:l,ctx:o}),i.$set(u);const I={};l&4&&(I.placeholder=o[2]("users_input_search_by_user_placeholder")),l&262146&&(I.$$scope={dirty:l,ctx:o}),!P&&l&2&&(P=!0,I.value=o[1].id,Me(()=>P=!1)),w.$set(I);const q={};l&2&&(q.singleSelected=o[1].role),l&2&&(q.isDisabled=o[1].id),l&16&&(q.options=o[4]),l&4&&(q.defaultOptionLabel=o[2]("users_input_search_by_role_label")),b.$set(q),l&8&&(T=x(o[3]),le(),k=be(k,l,j,1,o,T,N,U,ke,ge,null,he),oe());const G={};l&262148&&(G.$$scope={dirty:l,ctx:o}),d.$set(G)},i(o){if(!h){D(i.$$.fragment,o),D(w.$$.fragment,o),D(b.$$.fragment,o);for(let l=0;l<T.length;l+=1)D(k[l]);D(d.$$.fragment,o),h=!0}},o(o){y(i.$$.fragment,o),y(w.$$.fragment,o),y(b.$$.fragment,o);for(let l=0;l<k.length;l+=1)y(k[l]);y(d.$$.fragment,o),h=!1}
5,d(o){o&&(f(s),f(e),f(r),f(O),f(U),f(z)),c&&c.d(o),A(i),A(w),A(b);for(let l=0;l<k.length;l+=1)k[l].d();A(d,o)}}}function vt(a,t,s){let e,r,n,i;Y(a,ve,d=>s(2,n=d)),Y(a,Ke,d=>s(5,i=d));const $=Qe(void 0,{debounceHistory:350});Y(a,$,d=>s(1,r=d));let{data:p}=t,w=[],P=null,B;function b(){P=null,s(3,w=[]),B&&B()}function O({detail:{loaded:d,complete:h,error:c,reset:S}}){B=S,Ae(P,r.id,r.date,r.role).then(H=>{s(3,w=w.concat(H.users)),H.users.length?(P=H.users[H.users.length-1].id,d(),H.hasMore||h()):h()}).catch(()=>{c()})}function U(d){let h=w.find(c=>c.id==d.userId);h&&Re(h.id).then(c=>{c&&(h.blocked=c.blocked,h.roles=c.roles,s(3,w))})}fe.on(ce.onUserUpdated,U),Oe(()=>{fe.off(ce.onUserUpdated,U)});const k=()=>de($,r.id=null,r);function N(d){a.$$.not_equal(r.id,d)&&(r.id=d,$.set(r))}const z=d=>{de($,r.role=d.detail,r)};return a.$$set=d=>{"data"in d&&s(0,p=d.data)},a.$$.update=()=>{a.$$.dirty&2&&b(),a.$$.dirty&5&&s(4,e=[{value:void 0,label:n("users_input_search_by_role_all_label")},...p.rolesWithPermissions.roles.map(d=>({value:d.name,label:d.name}))])},[p,r,n,w,e,i,$,b,O,k,N,z]}class zt extends Ee{constructor(t){super(),we(this,t,vt,gt,ae,{data:0})}}export{zt as component,Ot as universal};

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.