PageSourceSearch

https://foralltime.icu/vite/TOf5Z0lr.js

js foralltime.icu collected 2026-10-04 01:40:51 UTC 1,925 bytes, 1 lines download raw bytes

1import{u as D}from"./AImC4Z4_.js";import{M as E}from"./hSB3w-zq.js";import{bx as F,f,M as V,F as _,E as W}from"./app-LxRIDceF.js";import{b as U,a as g,A as k,g as t,h as L,i as a,K as y,E as M,u as i,q as c,j as $,l as u,B as I,F as j,D as q}from"./c_mtvhGZ.js";import"./00Uemgv0.js";const z=c("i",{class:"ti ti-users"},null,-1),K=c("i",{class:"ti ti-settings"},null,-1),S=[K],T={key:0,class:"init"},G={key:2,class:"users"},x="userList",ss=U({__name:"WidgetUserList",props:{widget:{}},emits:["updateProps"],setup(C,{expose:B,emit:b}){const N={showHeader:{type:"boolean",default:!0},listId:{type:"string",default:null,hidden:!0}},d=C,H=b,{widgetProps:s,configure:h,save:P}=D(x,N,d,H),o=g(),v=g([]),m=g(!0);async function A(){const n=await _("users/lists/list"),{canceled:e,result:p}=await W({title:f.ts.selectList,items:n.map(r=>({value:r,text:r.name})),default:s.listId});e||(s.listId=p.id,P(),w())}const w=()=>{if(s.listId==null){m.value=!1;return}_("users/lists/show",{listId:s.listId}).then(n=>{o.value=n,_("users/show",{userIds:o.value.userIds}).then(e=>{v.value=e,m.value=!1})})};return F(w,1e3*60,{immediate:!0,afterMounted:!0}),B({name:x,configure:h,id:d.widget?d.widget.id:null}),(n,e)=>{const p=k("MkLoading"),r=k("MkAvatar");return t(),L(E,{showHeader:i(s).showHeader,class:"mkw-userList"},{icon:a(()=>[z]),header:a(()=>[y(M(o.value?o.value.name:i(f).ts._widgets.userList),1)]),func:a(({buttonStyleClass:l})=>[c("button",{class:$(["_button",l]),onClick:e[0]||(e[0]=J=>i(h)())},S,2)]),default:a(()=>[c("div",{class:"xrNgm"},[i(s).listId==null?(t(),u("div",T,[I(V,{primary:"",onClick:A},{default:a(()=>[y(M(i(f).ts._widgets._userList.chooseList),1)]),_:1})])):m.value?(t(),L(p,{key:1})):(t(),u("div",G,[(t(!0),u(j,null,q(v.value,l=>(t(),u("span",{key:l.id,class:"user"},[I(r,{user:l,class:"avatar",indicator:"",link:"",preview:""},null,8,["user"])]))),128))]))],2)]),_:1},8,["showHeader"])}}});export{ss 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.