PageSourceSearch

https://xmacna.ai/_nuxt/BWLrXIm_.js

js xmacna.ai collected 2026-10-05 13:24:09 UTC 2,541 bytes, 1 lines download raw bytes

1import{d as y,an as h,k as p,b as d,o as m,n as c,E as x,z as s,r as z,e as u,c as k,f as b,t as f}from"./Bcc8-a-q.js";import{_ as v}from"./ClL-Wh03.js";function w(o){const e=parseInt(o.slice(1,3),16),n=parseInt(o.slice(3,5),16),a=parseInt(o.slice(5,7),16);return(.2126*e+.7152*n+.0722*a)/255>.5?"#000000":"#ffffff"}const N=y({__name:"Category",props:{color:{type:String,default:null},size:{type:String,default:"sm"}},setup(o){const e=o,n=h(),a=["gray","green","purple","blue","amber","orange","red","indigo","violet","pink","yellow"];function l(r,g){return g[r%g.length]}const t=p(()=>{if(e.color)return e.color;const r=n.default?n.default()[0]:void 0;return!r||!(r!=null&&r.children)?null:l(r==null?void 0:r.children.length,a)}),i=p(()=>{if(e.color)return{backgroundColor:e.color,color:w(e.color)}});return(r,g)=>(m(),d("span",{style:x(s(i)),class:c(["inline-flex items-center font-display font-medium rounded-button",s(t)==="gray"?"bg-gray-100 text-gray-800":"",s(t)==="green"?"bg-green-100 text-green-800":"",s(t)==="purple"?"bg-purple-100 text-purple-800":"",s(t)==="blue"?"bg-blue-100 text-blue-800":"",s(t)==="amber"?"bg-amber-100 text-amber-800":"",s(t)==="orange"?"bg-orange-100 text-orange-800":"",s(t)==="red"?"bg-red-100 text-red-800":"",s(t)==="indigo"?"bg-indigo-100 text-indigo-800":"",s(t)==="violet"?"bg-violet-100 text-violet-800":"",s(t)==="pink"?"bg-primary-100 text-primary":"",s(t)==="yellow"?"bg-yellow-100 text-yellow-800":"",o.size==="sm"?"text-xs px-2 py-0.5":"",o.size==="lg"?" px-2.5 py-0.5":"",{" bg-gray-100 text-gray-800":!e.color}])},[z(r.$slots,"default")],6))}}),_={class:"flex items-center flex-none group dark:text-gray-100"},C={class:"mr-3"},B={class:"font-semibold font-display"},S=y({__name:"Author",props:{author:{},size:{default:"sm"}},setup(o){return(e,n)=>{var l,t,i;const a=v;return m(),d("div",_,[u("div",C,[(l=e.author)!=null&&l.image?(m(),k(a,{key:0,class:c([{"w-8 h-8 sm:h-10 sm:w-10":e.size==="sm","w-10 h-10 sm:h-14 sm:w-14":e.size==="md","w-12 h-12 sm:h-16 sm:w-16":e.size==="lg"},"object-cover rounded-full dark:brightness-90"]),src:e.author.image},null,8,["class","src"])):b("",!0)]),u("div",{class:c([{"text-sm sm:text-base":e.size==="sm","text-base sm:text-lg":e.size==="md","text-lg sm:text-xl":e.size==="lg"}," "])},[u("span",B,f((t=e.author)==null?void 0:t.name),1),(i=e.author)!=null&&i.job_title?(m(),d("span",{key:0,class:c([{"text-xs":e.size==="sm","text-sm":e.size==="md","":e.size==="lg"},"block   pt-0.5"])},f(e.author.job_title),3)):b("",!0)],2)])}}});export{N as _,S as a};

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.