PageSourceSearch

https://bluebook.business/_nuxt/DdVxz2-b.js

js bluebook.business collected 2026-10-08 06:46:45 UTC 6,797 bytes, 1 lines download raw bytes

1import{f as G,U as q,c as _,I as p,o,a as t,F as T,q as j,s as A,t as u,i as l,r as B,V as z,W as E,g as N,u as H,X as I,b as d,w as r,k as K,h as b,j as R,d as v,y as h,e as W,Y as X,Z as L}from"#entry";import{_ as Y}from"./V78LY4la.js";import{_ as J}from"./C29lQyfm.js";import{_ as Q}from"./De_O3amY.js";import{_ as ee}from"./DizY6iOa.js";import{t as P}from"./yI7HeE6Z.js";const te={key:0,class:"isolate flex justify-center"},se={class:"inline-flex -space-x-px shadow-xs rounded-full"},ne=["disabled"],le=["disabled","onClick"],ae=["disabled"],S=3,oe=G({__name:"Paginator",props:{currentPage:{},totalPages:{}},emits:["goToPage"],setup(x,{emit:i}){const c=i,g=q(()=>{const n=Math.max(1,x.currentPage-S),s=Math.min(x.totalPages,x.currentPage+S),a=[];for(let m=n;m<=s;m++)a.push(m);return a});return(n,s)=>n.totalPages>1?(o(),_("nav",te,[t("div",se,[t("button",{class:"w-10 h-12 relative inline-flex items-center justify-center ring-1 ring-inset ring-neutral-200 cursor-pointer disabled:cursor-not-allowed text-neutral-900 rounded-l-full",disabled:n.currentPage===1,onClick:s[0]||(s[0]=a=>c("goToPage",n.currentPage-1))},[...s[2]||(s[2]=[t("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-4"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 19.5 8.25 12l7.5-7.5"})],-1)])],8,ne),(o(!0),_(T,null,j(l(g),a=>(o(),_("button",{key:a,class:A(["w-10 h-12 relative inline-flex items-center justify-center ring-1 ring-inset ring-neutral-200 cursor-pointer disabled:cursor-not-allowed text-neutral-900",{"bg-accent text-white z-10":n.currentPage===a}]),disabled:n.currentPage===a,onClick:m=>c("goToPage",a)},u(a),11,le))),128)),t("button",{class:"w-10 h-12 relative inline-flex items-center justify-center ring-1 ring-inset ring-neutral-200 cursor-pointer disabled:cursor-not-allowed text-neutral-900 rounded-r-full",disabled:n.currentPage===n.totalPages,onClick:s[1]||(s[1]=a=>c("goToPage",n.currentPage+1))},[...s[3]||(s[3]=[t("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-4"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})],-1)])],8,ae)])])):p("",!0)}}),ie=Object.assign(oe,{__name:"UiPaginator"});class D{currentPage=B(1);itemsPerPage=5;totalPages;collections;url;constructor(i,c,g,n=5){if(this.collections=i,this.url=c,this.itemsPerPage=n,!this.collections.length)this.totalPages=1,this.currentPage.value=1;else if(this.totalPages=Math.ceil(this.collections.length/this.itemsPerPage),"page"in g&&!Number.isNaN(g.page)){const s=Number(g.page);s>0&&s<=this.totalPages?this.currentPage.value=s:z(`${this.url}?page=${this.currentPage.value}`)}}paginatedCollections=()=>{const i=(this.currentPage.value-1)*this.itemsPerPage,c=i+this.itemsPerPage;return this.collections.slice(i,c)};goToPage=i=>{i>0&&i<=this.totalPages&&(this.currentPage.value=i,z(`${this.url}?page=${this.currentPage.value}`))}}const re={class:"bg-mid-blue"},ce={class:"mx-auto max-w-4xl"},ue={class:"mb-4 md:mb-12"},de={key:0},ge={class:"flex flex-wrap gap-2"},_e={key:0,class:"pt-4 mt-4 space-y-8 border-t border-neutral-200 mx-auto max-w-4xl"},me={class:"relative isolate flex flex-col items-center gap-x-8 lg:flex-row lg:items-start"},fe={class:"hidden lg:block relative aspect-16/9 sm:aspect-2/1 lg:w-56 lg:h-56 lg:shrink-0 mt-3"},ve=["src","alt"],he={class:"group relative max-w-3xl"},pe={class:"max-w-3xl mx-auto"},xe={class:"group relative"},w="blog",be=!0,Ne=G({__name:"index",setup(x){const i=E(),c=N(w),g=N("blog_posts");H({title:"Blog",meta:[{name:"description",content:P(c.body,155,b)},{name:"twitter:description",content:P(c.body,155,b)}]});const n=B(g);let s=new D(n.value,`/${w}`,i.query);const a=B(null),m=N("blog_categories");I(n.value,m,"blog_posts","category","name");const O=y=>{y===a.value?(a.value=null,n.value=g):(a.value=y,n.value=g.filter(f=>f.fields.category===a.value)),s=new D(n.value,`/${w}`,i.query)};return(y,f)=>{const k=R,C=Y,$=J,M=K,F=Q,V=ee,U=W,Z=ie;return o(),_("div",re,[d(M,{first:"","outer-class":"bg-secondary relative"},{default:r(()=>[f[1]||(f[1]=t("div",{class:"absolute bottom-1 left-0 w-full translate-y-full pointer-events-none"},[t("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1440 320"},[t("path",{fill:"currentColor",class:"text-secondary","fill-opacity":"1",d:"M1440,32L0,120L0,0L1440,0Z"}
1)])],-1)),t("div",ce,[t("div",ue,[t("h1",null,u(l(c)?.title),1),d(k,{white:"",large:"",content:l(c)?.body},null,8,["content"])]),l(m).length&&be?(o(),_("div",de,[d(C,{class:"mb-3"},{default:r(()=>[...f[0]||(f[0]=[v("Filter by category",-1)])]),_:1}),t("div",ge,[(o(!0),_(T,null,j(l(m),e=>(o(),h($,{key:e.id,class:"cursor-pointer",active:l(a)===e.fields.name,onClick:()=>O(e.fields.name)},{default:r(()=>[v(u(e.fields.name),1)]),_:2},1032,["active","onClick"]))),128))])])):p("",!0)])]),_:1}),d(M,{"outer-class":"relative","inner-class":"!pt-0"},{default:r(()=>[l(s).paginatedCollections().length?(o(),_("div",_e,[(o(!0),_(T,null,j(l(s).paginatedCollections(),e=>(o(),_("article",{key:e.id},[d(U,{to:`/${w}/${e.slug}/${l(X)(e.fields.title)}`},{default:r(()=>[e.fields.image?(o(),h(V,{key:0,class:"hover:bg-neutral-100 transition-all"},{default:r(()=>[e.fields.category?(o(),h($,{key:0,class:"mb-3"},{default:r(()=>[v(u(e.fields.category),1)]),_:2},1024)):p("",!0),t("div",me,[t("div",fe,[t("img",{src:e.fields.image,alt:e.fields.title,class:"absolute inset-0 h-full w-full rounded-2xl bg-neutral-50 object-cover"},null,8,ve),f[2]||(f[2]=t("div",{class:"absolute inset-0 rounded-2xl ring-1 ring-inset ring-neutral-900/10"},null,-1))]),t("div",null,[t("div",he,[d(F,{class:"!text-accent"},{default:r(()=>[v(u(e.fields.subtitle),1)]),_:2},1024),t("h4",null,u(e.fields.title),1),e.fields.date?(o(),h(C,{key:0,class:"text-secondary mb-3"},{default:r(()=>[v(u(l(L)(e.fields.date)),1)]),_:2},1024)):p("",!0),d(k,{content:`${l(P)(e.fields.content,300,l(b))}`},null,8,["content"])])])])]),_:2},1024)):(o(),h(V,{key:1,class:"hover:bg-neutral-100 transition-all"},{default:r(()=>[t("div",pe,[t("div",xe,[e.fields.category?(o(),h($,{key:0,class:"mb-3"},{default:r(()=>[v(u(e.fields.category),1)]),_:2},1024)):p("",!0),d(F,null,{default:r(()=>[v(u(e.fields.subtitle),1)]),_:2},1024),t("h4",null,u(e.fields.title),1),e.fields.date?(o(),h(C,{key:1,class:"text-secondary mb-3"},{default:r(()=>[v(u(l(L)(e.fields.date)),1)]),_:2},1024)):p("",!0),d(k,{white:"",content:`${l(P)(e.fields.content,300,l(b))}`},null,8,["content"])])])]),_:2},1024))]),_:2},1032,["to"])]))),128)),d(Z,{"current-page":l(s).currentPage.value,"total-pages":l(s).totalPages,onGoToPage:l(s).goToPage},null,8,["current-page","total-pages","onGoToPage"])])):p("",!0)]),_:1})])}}});export{Ne 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.