PageSourceSearch

https://kokusaibujinrenmei.org/assets/EbookAuthor-GMfnk_-E.js

js kokusaibujinrenmei.org collected 2026-09-25 11:49:48 UTC 5,122 bytes, 5 lines download raw bytes

1import{r as o,j as e}from"./react-vendor-B85QsyED.js";import{a3 as u,s as h,W as g,Y as f,a6 as j,L as n,N}from"./index-Df-PK-QF.js";import{S as b}from"./skeleton-B_PjAYu8.js";import{S as v,a as y}from"./ShopFaq-CnwFZumD.js";import{A as _}from"./arrow-left-BDVGKtKL.js";import{F as k}from"./feather-DVX5QUCA.js";import"./maps-DeNBPk8t.js";import"./accordion-DnlMa-CU.js";import"./index-BVuFAtou.js";import"./index-CUU8Y_On.js";import"./index-A8-gc0Dc.js";import"./index-C0AOaaLp.js";import"./index-cTrnW49R.js";import"./index-BbYlHeJG.js";import"./index-DqSziBWp.js";import"./index-BpIqVjMJ.js";import"./chevron-down-Bv9iu6P6.js";const m=t=>t.replace(/-/g," "),P=()=>{const{slug:t}=u(),[s,d]=o.useState([]),[x,c]=o.useState(!0);o.useEffect(()=>{if(!t)return;let a=!0;c(!0);const l=m(t);return h.from("marketplace_products").select("id, title, slug, price, images, author_name, author_avatar, author_bio, average_rating, martial_art").ilike("author_name",`%${l}%`).eq("published",!0).order("created_at",{ascending:!1}).then(({data:p})=>{a&&(d(p??[]),c(!1))}),()=>{a=!1}},[t]);const r=o.useMemo(()=>s[0]??null,[s]),i=r?.author_name??m(t??"");return e.jsxs("div",{className:"bg-[#0d0b09] text-[#f5f0e6] min-h-screen",children:[e.jsx(g,{title:`${i} · Ebooks de Artes Marciales`,description:`Todos los ebooks publicados por ${i} en la librería premium de Red Marcial. ${s.length} títulos disponibles.`,canonicalUrl:`/tienda/autor/${t}`,ogType:"website",structuredData:{"@context":"https://schema.org","@type":"Person",name:i,description:r?.author_bio??void 0,image:r?.author_avatar??void 0,url:`${f}/tienda/autor/${t}`}}),e.jsxs(j,{children:[e.jsx("link",{href:"https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Work+Sans:wght@300;400;500;600&display=swap",rel:"stylesheet"}),e.jsx("style",{children:`
2          .font-serif-display { font-family: 'Cormorant Garamond', serif; letter-spacing: -0.01em; }
3          .font-refined { font-family: 'Work Sans', system-ui, sans-serif; }
4          .gold-hairline { background: linear-gradient(90deg, transparent, rgba(201,168,76,0.5), transparent); height: 1px; }
5        `})]}),e.jsx("div",{className:"container mx-auto px-4 pt-6",children:e.jsxs(n,{to:"/tienda/ebooks",className:"text-xs uppercase tracking-[0.2em] text-[#f5f0e6]/50 hover:text-[#c9a84c] flex items-center gap-2",children:[e.jsx(_,{className:"w-3 h-3"})," Librería"]})}),e.jsxs("section",{className:"container mx-auto px-4 py-16 text-center max-w-3xl",children:[e.jsx("div",{className:"w-28 h-28 mx-auto mb-6 rounded-full overflow-hidden bg-[#1a1612] ring-1 ring-[#c9a84c]/30",children:r?.author_avatar?e.jsx("img",{src:r.author_avatar,alt:i,className:"w-full h-full object-cover"}):e.jsx("div",{className:"w-full h-full flex items-center justify-center text-[#c9a84c]/50 font-serif-display text-4xl",children:i.charAt(0).toUpperCase()})}),e.jsx("span",{className:"text-[10px] uppercase tracking-[0.3em] text-[#c9a84c]",children:"Autor"}),e.jsx("h1",{className:"font-serif-display text-5xl md:text-6xl mt-3 capitalize",children:i}),e.jsx("div",{className:"gold-hairline w-24 mx-auto my-6"}),r?.author_bio?e.jsx("p",{className:"font-refined text-[#f5f0e6]/70 leading-relaxed",children:r.author_bio}):e.jsxs("p",{className:"font-refined text-[#f5f0e6]/50 italic",children:[s.length," ",s.length===1?"título publicado":"títulos publicados"," en la librería."]})]}),e.jsx("section",{className:"container mx-auto px-4 pb-20",children:x?e.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-5 gap-6",children:Array.from({length:5}).map((a,l)=>e.jsx(b,{className:"aspect-[2/3] bg-[#1a1612]"},l))}):s.length===0?e.jsxs("div",{className:"text-center py-20 text-[#f5f0e6]/50",children:[e.jsx(k,{className:"w-10 h-10 mx-auto mb-4 text-[#c9a84c]/40"}),e.jsx("p",{children:"No se encontraron títulos."})]}):e.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-5 gap-x-6 gap-y-10",children:s.map(a=>e.jsxs(n,{to:`/tienda/ebook/${a.slug}`,className:"group",children:[e.jsx("div",{className:"aspect-[2/3] rounded-sm overflow-hidden bg-[#1a1612] ring-1 ring-[#c9a84c]/10 group-hover:ring-[#c9a84c]/40 transition shadow-[0_20px_40px_-20px_rgba(0,0,0,0.5)]",children:a.images?.[0]&&e.jsx("img",{src:a.images[0],alt:a.title,className:"w-full h-full object-cover",loading:"lazy"})}),e.jsx("h3",{className:"font-serif-display text-base mt-3 line-clamp-2 group-hover:text-[#c9a84c]",children:a.title}),e.jsxs("div",{className:"flex items-center justify-between mt-1",children:[e.jsxs("span",{className:"font-serif-display text-lg text-[#c9a84c]",children:["€",a.price.toFixed(2)]}),a.average_rating?e.jsxs("span",{className:"flex items-center gap-1 text-xs text-[#f5f0e6]/60",children:[e.jsx(N,{className:"w-3 h-3 fill-[#c9a84c] text-[#c9a84c]"}),a.average_rating.toFixed(1)]}):null]})]},a.id))})}),e.jsx("section",{className:"border-t border-[#c9a84c]/15 bg-[#0d0d0d]",children:e.jsxs("div",{className:"container mx-auto px-4 py-20 space-y-16",children:[e.jsx(v,{}),e.jsx(y,{variant:"ebook",title:"Sobre la obra de este autor"})]})})]})};export{P 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.