1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./BPCD1XKA.js","./PqQgIEx6.js","../assets/m.DHSFK8qJ.css","./CROQUw2E.js","./CWHkE1lO.js","./ByBdDHPw.js"])))=>i.map(i=>d[i]); 2import{p as $,g as l,o as I,aX as V,e as x,f as P,h as c,H as y,O as D,bE as d,bF as L,P as T,Q as p,E as w}from"./PqQgIEx6.js";import{p as j,q as B}from"./BPCD1XKA.js";function z(F,f){$(f,!1);const a=()=>w(n,"$palette",u),[u,g]=P(),n=l("palette"),m=l("storeEditor");l("user");const v=(e,i)=>{for(let t=0;t<e.boards.length;t++)for(let s=0;s<e.boards[t].cols.length;s++)if(e.boards[t].cols[s].id===i)return{p:e.boards[t].cols[s],boardIndex:t,colIndex:s}};async function h(){try{let e=j();const i=[];for(const t of e){const{vignette:s,boardIndex:O,colIndex:R}=D(a(),t.v.id);if(s){if(s.pub===!1){s.canEdit===!1&&(delete s.canEdit,c(n,a()));continue}i.push(t.v)}else{const r=await fetch(`/api/vignette/get?site=${a().id}&vid=${t.v.id}`,{method:"GET"});if(r.status===200)t.v=await r.json();else if(r.status===404){i.push(t.v);continue}const{p:o,boardIndex:b,colIndex:E}=v(a(),t.page);o&&(o.items=o.items.filter(_=>_.id!==t.v.id),o.items.push(t.v),o.p.sort?o.p.pubEdit?o.items.sort(d):o.items.sort(L):o.items.sort(d),T(n,p(a).boards[b].cols[E]=o,p(a)))}}i.length>0&&(i.map(t=>{e=e.filter(s=>s.v.id!==t.id)}),B(e))}catch(e){console.error("can't load local vignette:",e)}}I(async()=>{c(m,await y(()=>import("./BPCD1XKA.js").then(e=>e.aT),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url)),setTimeout(()=>{h()},500)}),V(),x(),g()}export{z 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.