1import{p as S,c as q,ak as A,g as B,x as E,a9 as o,a6 as D,aa as i,B as l,ac as d,T as g,C as n,y as H,z as m,S as G,t as K,aA as L,aE as V,aG as F,az as I,aH as J,ag as M,e as N,G as v,ae as O}from"./PqQgIEx6.js";var P=v('<img class="_i l-sc3v2s" draggable="false" width="60" alt="logo"/>'),Q=v('<!> <div class="_t l-sc3v2s"> </div>',1),U=v('<span style="color: red"> </span>'),W=v("<div> </div>"),X=v('<details class="d l-sc3v2s"><summary class="l-sc3v2s"><!></summary> <br/> <div class="vtags l-sc3v2s"></div></details> <button class="v" style="flex: 1 1 0px">Visiter</button>',1);const Y={hash:"l-sc3v2s",code:"@layer components {._i.l-sc3v2s {border-radius:50%;height:45px;width:45px;-o-object-fit:cover;object-fit:cover;}._t.l-sc3v2s {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%;}.d.l-sc3v2s {flex:1 1 auto;min-width:0; /* important pour permettre au div de ne pas sortir du parent */margin-left:var(--input-pad);border-radius:15px;transition:100ms;width:100%;}.d.l-sc3v2s summary:where(.l-sc3v2s) {margin-left:calc(var(--input-pad) * -1);display:flex;gap:var(--input-pad);align-items:center;padding:var(--input-pad);font-weight:700;cursor:pointer;transition:100ms;border-radius:15px;}.d.l-sc3v2s summary:where(.l-sc3v2s):hover {background:rgba(41, 41, 41, 0.1294117647);}.d[open].l-sc3v2s {padding:10px 0;}.d[open].l-sc3v2s ._t:where(.l-sc3v2s) {white-space:unset;}.vtags.l-sc3v2s {justify-content:flex-start;padding-top:var(--input-pad);} }"};function tt(w,x){S(x,!0),q(w,Y);let t=A(x,"item",15,void 0);B("palette");const T=async()=>{var s,r;try{const e=await fetch(`/api/vignette?id=${t().id}&fields=title,c,tags,version`,{method:"GET"});switch(e.status){case 200:const a=await e.json();t(t().v=a.version,!0),t(t().tags=a.tags,!0);let p=!1;return t().title!==a.title&&(t(t().title=a.title,!0),p=!0),((s=t().c)==null?void 0:s.hex)!==((r=a.c)==null?void 0:r.hex)&&(t(t().c=a.c,!0),p=!0),a.title;default:throw new Error("Site introuvable...")}}catch{return t().title||"aucun titre"}},c=t().files;var b=X(),f=E(b),h=o(f),$=o(h);D($,T,s=>{var r=V();l(()=>d(r,t().title)),n(s,r)},(s,r)=>{var e=Q(),a=E(e);{var p=_=>{var u=P();l(()=>G(u,"src",`${c[0].specimen}`)),K("load",u,R=>{R.target.classList.add("imgl")}),L(u),n(_,u)};H(a,_=>{(c==null?void 0:c.length)>0&&_(p)})}var j=m(a,2),C=o(j,!0);i(j),l(()=>d(C,g(r))),n(s,e)},(s,r)=>{var e=U(),a=o(e,!0);i(e),l(()=>d(a,g(r).message)),n(s,e)}),i(h);var y=m(h),k=m(y,3);F(k,21,()=>t().tags||[],J,(s,r)=>{var e=W();I(e,1,"vtag","l-sc3v2s");var a=o(e,!0);i(e),l(()=>{G(e,"aria-label",g(r)),d(a,g(r))}),n(s,e)}),i(k),i(f);var z=m(f,2);l(()=>d(y,` ${t().text??""}`)),M("click",z,s=>{s.preventDefault(),t().v?window.open(`https://${t().domains&&t().domains[0]?t().domains[0].fqdn:"vignette.eco/"+t().id}`,"_blank"):window.open(`/${t().id}`,"_blank")}),n(w,b),N()}O(["click"]);export{tt 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.