PageSourceSearch

https://samply.app/assets/Archive.45304bec.js

js samply.app collected 2026-10-02 03:22:55 UTC 2,395 bytes, 1 lines download raw bytes

1import{d as y,i5 as g,i6 as b,s as j,U as S,x as w,o as s,c as n,a as A,b as r,u as c,g as i,p as P,j as B,t as d,e as m,F as C}from"./index.3c7c4d4c.js";import{B as p}from"./BaseButton.f75a334a.js";import{_ as D}from"./Icon.vue_vue_type_script_setup_true_lang.303cc5a5.js";import{P as F}from"./PageLayout.510a81cf.js";import{_ as I}from"./_plugin-vue_export-helper.cdc0426e.js";import"./useFilesStore.c14189fa.js";import"./useBoxes.5be4a2e4.js";import"./files.2fab989e.js";import"./index.16998e75.js";import"./usePlayerUtil.f9dd331c.js";import"./useFileInput.bea13f93.js";import"./useLayout.cffa93e8.js";import"./useSharedDragAndDrop.3a3c9705.js";import"./useBreakpoint.aba3750f.js";const N={class:"d-flex flex-column gap-4 pa-2"},V={key:0,class:"text-center my-8"},$=["src","alt"],L={class:"flex-grow-1 flex-shrink-1",style:{"min-width":"0"}},R={class:"s-text-primary s-heading-sm mb-0 text-truncate"},U={class:"s-text-secondary s-body text-truncate"},z=y({__name:"Archive",setup(E){const o=g(),a=b(),u=j(),_=S(),h=w();o.init(),a.init(u.uid);function f(t){!a.canDeleteProjects([t])||(o.restoreItems([t]),_.show("Project restored",{details:"Any public links will also be restored.",action:{label:"Go to project",callback:()=>{h.push({name:"project",params:{projectid:t}})}}}))}function k(t){!a.canDeleteProjects([t])||o.deleteItems([t])}return(t,l)=>(s(),n(F,{title:"Archive"},{default:A(()=>[r("div",N,[c(o).itemsFilteredAndSorted.length?(s(!0),i(C,{key:1},B(c(o).itemsFilteredAndSorted,(e,x)=>(s(),i("div",{key:x,class:"d-flex align-center gap-3 pa-2 s-rounded-md archive-item"},[r("img",{src:e.artwork?.small?.src??"",alt:e.name,class:"desaturated s-rounded s-outlined flex-shrink-0",width:"64",height:"64"},null,8,$),r("div",L,[r("h6",R,d(e.name),1),r("div",U,d(e.creator?.displayName??"Unknown creator"),1)]),c(a).canDeleteProjects([e.projectid??""])?(s(),n(p,{key:0,label:"Delete",variant:"text",class:"flex-shrink-0",onClick:v=>k(e.projectid??"")},null,8,["onClick"])):m("",!0),c(a).canDeleteProjects([e.projectid??""])?(s(),n(p,{key:1,label:"Restore",onClick:v=>f(e.projectid??""),class:"mr-2 flex-shrink-0"},null,8,["onClick"])):m("",!0)]))),128)):(s(),i("div",V,[P(D,{icon:"mdi-archive",size:36,class:"mb-2"}),l[0]||(l[0]=r("h4",{class:"font-weight-bold s-text-primary"},"Archive is empty.",-1))]))])]),_:1}))}});const te=I(z,[["__scopeId","data-v-cd6d774f"]]);export{te 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.