PageSourceSearch

https://scrunkly.cat/vite/D6u3q3t0.js

js scrunkly.cat collected 2026-10-06 18:29:22 UTC 1,724 bytes, 1 lines download raw bytes

1import{av as C,i as g,C as P,b6 as S,_ as D}from"./app-DuXHYj12.js";import{u as W}from"./roMec8IY.js";import{b as L,a as p,u as h,e as N,l as r,h as u,s as c,A as v,q as a,B as _,p as T}from"./BI8qgwQJ.js";import"./BTqQ_sdn.js";const V={key:0},q={key:1},y="slideshow",z=L({__name:"WidgetSlideshow",props:{widget:{}},emits:["updateProps"],setup(k,{expose:w,emit:I}){const b={height:{type:"number",default:300},folderId:{type:"string",default:null,hidden:!0}},i=k,B=I,{widgetProps:s,configure:x,save:A}=W(y,b,i,B),t=p([]),n=p(!0),o=h("slideA"),l=h("slideB"),m=()=>{if(t.value.length===0)return;const e=Math.floor(Math.random()*t.value.length),d=`url(${t.value[e].url})`;l.value.style.backgroundImage=d,l.value.classList.add("anime"),window.setTimeout(()=>{o.value!=null&&(o.value.style.backgroundImage=d,l.value.classList.remove("anime"))},1e3)},f=()=>{n.value=!0,P("drive/files",{folderId:s.folderId,type:"image/*",limit:100}).then(e=>{t.value=e,n.value=!1,o.value.style.backgroundImage="",l.value.style.backgroundImage="",m()})},M=()=>{S(!1).then(e=>{e[0]!=null&&(s.folderId=e[0].id,A(),f())})};return C(m,1e4,{immediate:!1,afterMounted:!0}),N(()=>{s.folderId!=null&&f()}),w({name:y,configure:x,id:i.widget?i.widget.id:null}),(e,d)=>(u(),r("div",{"data-cy-mkw-slideshow":"",class:"kvausudm _panel mkw-slideshow",style:T({height:a(s).height+"px"})},[c("div",{onClick:M},[a(s).folderId==null?(u(),r("p",V,_(a(g).ts.folder),1)):v("",!0),a(s).folderId!=null&&t.value.length===0&&!n.value?(u(),r("p",q,_(a(g).ts["no-image"]),1)):v("",!0),c("div",{ref_key:"slideA",ref:o,class:"slide a"},null,512),c("div",{ref_key:"slideB",ref:l,class:"slide b"},null,512)])],4))}}),j=D(z,[["__scopeId","data-v-005267d2"]]);export{j 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.