PageSourceSearch

https://social.louis-vallat.dev/vite/5MDRjG0Y.js

js louis-vallat.dev collected 2026-10-08 02:43:14 UTC 2,195 bytes, 1 lines download raw bytes

1import{i as g,av as I,a8 as C,$ as u,C as D}from"./app-BAclpbpz.js";import{u as $}from"./ekSX7_HF.js";import{M as A}from"./DKNgDMmf.js";import{b as z,a as b,z as m,g as c,h as a,j as n,s as o,i as G,l as y,M as P,N as R,q as r,B as f,H as T}from"./BI8qgwQJ.js";import"./BTqQ_sdn.js";const j=["src"],Y=z({__name:"WidgetBirthdayFollowings",props:{widget:{}},emits:["updateProps"],setup(h,{expose:k,emit:v}){const F=g.ts._widgets.birthdayFollowings,B={showHeader:{type:"boolean",default:!0}},d=h,M=v,{widgetProps:W,configure:_}=$(F,B,d,M),s=b([]),l=b(!0);let w="1970-01-01";const S=()=>{if(!u){s.value=[],l.value=!1;return}const e=new Date(w);e.setHours(0,0,0,0);const t=new Date;t.setHours(0,0,0,0),t>e&&(p(),w=t.toISOString())};function p(){if(u==null){s.value=[],l.value=!1;return}const e=new Date;e.setHours(0,0,0,0),l.value=!0,D("users/following",{limit:18,birthday:`${e.getFullYear().toString().padStart(4,"0")}-${(e.getMonth()+1).toString().padStart(2,"0")}-${e.getDate().toString().padStart(2,"0")}`,userId:u.id}).then(t=>{s.value=t,window.setTimeout(()=>{l.value=!1},100)})}return I(S,1e3*60,{immediate:!0,afterMounted:!0}),k({name:F,configure:_,id:d.widget?d.widget.id:null}),(e,t)=>{const x=m("MkLoading"),H=m("MkAvatar");return a(),c(A,{showHeader:r(W).showHeader,class:"mkw-bdayfollowings"},{icon:n(()=>t[1]||(t[1]=[o("i",{class:"ph-cake ph-bold ph-lg"},null,-1)])),header:n(()=>[T(f(r(g).ts._widgets.birthdayFollowings),1)]),func:n(({buttonStyleClass:i})=>[o("button",{class:G(["_button",i]),onClick:t[0]||(t[0]=L=>p())},t[2]||(t[2]=[o("i",{class:"ph-arrows-counter-clockwise ph-bold ph-lg"},null,-1)]),2)]),default:n(()=>[o("div",{class:"WidgetBirthdayFollowings-bdayFRoot-yxoT"},[l.value?(a(),c(x,{key:0})):s.value.length>0?(a(),y("div",{key:1,class:"WidgetBirthdayFollowings-bdayFGrid-u2fz"},[(a(!0),y(P,null,R(s.value,i=>(a(),c(H,{key:i.id,user:i.followee,link:"",preview:""},null,8,["user"]))),128))],2)):(a(),y("div",{key:2,class:"WidgetBirthdayFollowings-bdayFFallback-eyma"},[o("img",{src:r(C),draggable:"false",class:"WidgetBirthdayFollowings-bdayFFallbackImage-jslv"},null,10,j),o("div",null,f(r(g).ts.nothing),1)],2))],2)]),_:1},8,["showHeader"])}}});export{Y 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.