speice.io/assets/js/621db11d.0568cf63.js

1 line
2.1 KiB
JavaScript

"use strict";(self.webpackChunkspeice_io=self.webpackChunkspeice_io||[]).push([["9854"],{48448:function(e,t,i){i.r(t),i.d(t,{default:()=>j});var n=i("85893");i("67294");var r=i("67026"),s=i("82743"),l=i("84681"),u=i("96025");let a=()=>(0,u.I)({id:"theme.blog.authorsList.pageTitle",message:"Authors",description:"The title of the authors page"});var o=i("40979"),h=i("84315"),c=i("34403"),d=i("21389");let p={authorListItem:"authorListItem_n3yI"};function g(e){let{author:t}=e;return(0,n.jsx)("li",{className:p.authorListItem,children:(0,n.jsx)(d.Z,{as:"h2",author:t,count:t.count})})}function f(e){let{authors:t}=e;return(0,n.jsx)("section",{className:(0,r.Z)("margin-vert--lg",p.authorsListSection),children:(0,n.jsx)("ul",{children:t.map(e=>(0,n.jsx)(g,{author:e},e.key))})})}function j(e){let{authors:t,sidebar:i}=e,u=a();return(0,n.jsxs)(s.FG,{className:(0,r.Z)(l.k.wrapper.blogPages,l.k.page.blogAuthorsListPage),children:[(0,n.jsx)(s.d,{title:u}),(0,n.jsx)(h.Z,{tag:"blog_authors_list"}),(0,n.jsxs)(o.Z,{sidebar:i,children:[(0,n.jsx)(c.Z,{as:"h1",children:u}),(0,n.jsx)(f,{authors:t})]})]})}},40131:function(e,t,i){i.d(t,{Z:function(){return u}});var n=i(85893),r=i(67294),s=i(34403);function l(e){let{title:t,headingType:i,children:r}=e;return(0,n.jsxs)("div",{role:"group",children:[(0,n.jsx)(s.Z,{as:i,children:t}),r]})}let u=(0,r.memo)(function(e){let{items:t,ListComponent:i}=e;return function(e,t){let i=[],r=[];function s(){if(0===r.length)return;let e=new Date(r[0].date).getFullYear(),s=function(e,t){let i=[],r=[];function s(){if(0===r.length)return;let e=r[0].title.split(":")[0];r=(r=r.map(e=>({...e,title:e.title.split(":")[1].trim()}))).reverse(),i.push((0,n.jsx)(l,{title:e,headingType:"h4",children:(0,n.jsx)("div",{role:"group",style:{paddingInlineStart:"1.5em"},children:(0,n.jsx)(t,{items:r})})},e)),r=[]}for(let l of e){if(l.title.includes(":")){r.push(l);continue}s(),i.push((0,n.jsx)(t,{items:[l]},l.permalink))}return s(),i}(r,t);i.push((0,n.jsx)(l,{title:String(e),headingType:"h3",children:s},e)),r=[]}for(let t of e){if(0===r.length){r.push(t);continue}let e=new Date(t.date).getFullYear();e!==new Date(r[0].date).getFullYear()&&s(),r.push(t)}return s(),i}(t,i)})}}]);