1import{_ as e,f as t,t as n}from"./app-B7jRAMJf.js";import{t as r}from"./compiler-runtime-BGM8FbVI.js";import{t as i}from"./utils-ClntfFx1.js";import{t as a}from"./icon-gjubBm1H.js";import{t as o}from"./badge-DlxYSjFb.js";import{t as s}from"./skeleton-eT7xWS8e.js";var c=r(),l=e(t(),1),u=n();function d(e){let t=(0,c.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let a;t[3]===n?a=t[4]:(a=i(`flex flex-1 gap-3 rounded-lg bg-white pt-0 pb-3`,n),t[3]=n,t[4]=a);let o;return t[5]!==r||t[6]!==a?(o=(0,u.jsx)(`div`,{"data-slot":`book-list-item`,className:a,...r}),t[5]=r,t[6]=a,t[7]=o):o=t[7],o}function f(e){let t=(0,c.c)(17),n,r,o,s,d,f;t[0]===e?(n=t[1],r=t[2],o=t[3],s=t[4],d=t[5],f=t[6]):({className:r,src:d,fallbackSrc:o,alt:n,placeholderColor:f,...s}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=o,t[4]=s,t[5]=d,t[6]=f);let m=f===void 0?`gray`:f,h={blue:`bg-blue-500`,green:`bg-green-500`,gray:`bg-gray-500`},[g,_]=l.useState(p),v=d??null,y=o??null,b=v!==null&&!g.has(v)?v:y!==null&&y!==v&&!g.has(y)?y:null,x;t[7]===b?x=t[8]:(x=()=>{b!==null&&_(e=>new Set(e).add(b))},t[7]=b,t[8]=x);let S=x,C=i(`flex h-[123px] w-[88px] shrink-0 items-center justify-center overflow-hidden rounded-lg border border-gray-100`,b?`bg-white`:h[m],r),w;t[9]!==n||t[10]!==b||t[11]!==S?(w=b?(0,u.jsx)(`img`,{src:b,alt:n,className:`h-full w-full object-cover`,onError:S}):(0,u.jsx)(a,{name:`book`,className:`size-4 text-white`}),t[9]=n,t[10]=b,t[11]=S,t[12]=w):w=t[12];let T;return t[13]!==s||t[14]!==C||t[15]!==w?(T=(0,u.jsx)(`div`,{"data-slot":`book-list-item-image`,className:C,...s,children:w}),t[13]=s,t[14]=C,t[15]=w,t[16]=T):T=t[16],T}function p(){return new Set}function m(e){let t=(0,c.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let a;t[3]===n?a=t[4]:(a=i(`flex flex-1 flex-col gap-0.5`,n),t[3]=n,t[4]=a);let o;return t[5]!==r||t[6]!==a?(o=(0,u.jsx)(`div`,{"data-slot":`book-list-item-content`,className:a,...r}),t[5]=r,t[6]=a,t[7]=o):o=t[7],o}function h(e){let t=(0,c.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let a;t[3]===n?a=t[4]:(a=i(`text-h6 line-clamp-1 leading-6 font-bold`,n),t[3]=n,t[4]=a);let o;return t[5]!==r||t[6]!==a?(o=(0,u.jsx)(`h4`,{"data-slot":`book-list-item-title`,className:a,...r}),t[5]=r,t[6]=a,t[7]=o):o=t[7],o}function g(e){let t=(0,c.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let a;t[3]===n?a=t[4]:(a=i(`line-clamp-1 text-sm text-gray-700`,n),t[3]=n,t[4]=a);let o;return t[5]!==r||t[6]!==a?(o=(0,u.jsx)(`p`,{"data-slot":`book-list-item-subtitle`,className:a,...r}),t[5]=r,t[6]=a,t[7]=o):o=t[7],o}function _(e){let t=(0,c.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let a;t[3]===n?a=t[4]:(a=i(`mt-2 flex flex-col gap-1.5`,n),t[3]=n,t[4]=a);let o;return t[5]!==r||t[6]!==a?(o=(0,u.jsx)(`div`,{"data-slot":`book-list-item-meta`,className:a,...r}),t[5]=r,t[6]=a,t[7]=o):o=t[7],o}function v(e){let t=(0,c.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let a;t[3]===n?a=t[4]:(a=i(n),t[3]=n,t[4]=a);let s;return t[5]!==r||t[6]!==a?(s=(0,u.jsx)(o,{"data-slot":`book-list-item-badge`,variant:`notice`,size:`sm`,className:a,...r}),t[5]=r,t[6]=a,t[7]=s):s=t[7],s}function y(e){let t=(0,c.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let a;t[3]===n?a=t[4]:(a=i(`line-clamp-1 text-xs text-gray-500`,n),t[3]=n,t[4]=a);let o;return t[5]!==r||t[6]!==a?(o=(0,u.jsx)(`p`,{"data-slot":`book-list-item-date`,className:a,...r}),t[5]=r,t[6]=a,t[7]=o):o=t[7],o}function b(e){let t=(0,c.c)(10),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,u.jsx)(s,{className:`h-[123px] w-[88px] shrink-0 rounded-lg`}),t[3]=i):i=t[3];let a,o;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,u.jsx)(s,{className:`h-5 w-3/4`}),o=(0,u.jsx)(s,{className:`h-4 w-1/2`}),t[4]=a,t[5]=o):(a=t[4],o=t[5]);let l;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,u.jsxs)(m,{children:[a,o,(0,u.jsxs)(_,{children:[(0,u.jsx)(s,{className:`h-4 w-1/3`}),(0,u.jsx)(s,{className:`h-6 w-16`})]})]}),t[6]=l):l=t[6];let f;return t[7]!==n||t[8]!==r?(f=(0,u.jsxs)(d,{className:n,...r,children:[i,l]}),t[7]=n,t[8]=r,t[9]=f):f=t[9],f}export{f as a,g as c,y as i,h as l,v as n,_ as o,m as r,b as s,d as t};
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.