speice.io/assets/js/621db11d.329bb35b.js

1 line
2.2 KiB
JavaScript

"use strict";(self.webpackChunkspeice_io=self.webpackChunkspeice_io||[]).push([["9854"],{8448:function(e,t,n){n.r(t),n.d(t,{default:()=>j});var r=n("5893");n("7294");var s=n("7026"),i=n("2743"),l=n("4681"),u=n("6025");let a=()=>(0,u.I)({id:"theme.blog.authorsList.pageTitle",message:"Authors",description:"The title of the authors page"});var h=n("979"),o=n("4315"),c=n("4403"),d=n("1389");let g={authorListItem:"authorListItem_n3yI"};function f(e){let{author:t}=e;return(0,r.jsx)("li",{className:g.authorListItem,children:(0,r.jsx)(d.Z,{as:"h2",author:t,count:t.count})})}function p(e){let{authors:t}=e;return(0,r.jsx)("section",{className:(0,s.Z)("margin-vert--lg",g.authorsListSection),children:(0,r.jsx)("ul",{children:t.map(e=>(0,r.jsx)(f,{author:e},e.key))})})}function j(e){let{authors:t,sidebar:n}=e,u=a();return(0,r.jsxs)(i.FG,{className:(0,s.Z)(l.k.wrapper.blogPages,l.k.page.blogAuthorsListPage),children:[(0,r.jsx)(i.d,{title:u}),(0,r.jsx)(o.Z,{tag:"blog_authors_list"}),(0,r.jsxs)(h.Z,{sidebar:n,children:[(0,r.jsx)(c.Z,{as:"h1",children:u}),(0,r.jsx)(p,{authors:t})]})]})}},131:function(e,t,n){n.d(t,{Z:function(){return u}});var r=n(5893),s=n(7294),i=n(4403);function l(e){let{title:t,headingType:n,children:s}=e;return(0,r.jsxs)("div",{role:"group",children:[(0,r.jsx)(i.Z,{as:n,children:t}),s]})}let u=(0,s.memo)(function(e){let{items:t,yearGroupHeadingClassName:n,ListComponent:s}=e;return function(e,t){var n=[],s=[];function i(){if(0===s.length)return;let e=new Date(s[0].date).getFullYear(),i=function(e,t){var n=[],s=[];function i(){if(0===s.length)return;let e=s[0].title.split(":")[0];s=(s=s.map(e=>({...e,title:e.title.split(":")[1].trim()}))).reverse(),n.push((0,r.jsx)(r.Fragment,{children:(0,r.jsx)(l,{title:e,headingType:"h4",children:(0,r.jsx)("ul",{children:(0,r.jsx)(t,{items:s})})})})),s=[]}for(let l of e){if(l.title.includes(":")){s.push(l);continue}i(),n.push((0,r.jsx)(t,{items:[l]}))}return i(),n}(s,t);n.push((0,r.jsx)(r.Fragment,{children:(0,r.jsx)(l,{title:String(e),headingType:"h3",children:i})})),s=[]}for(let t of e){if(0===s.length){s.push(t);continue}let e=new Date(t.date).getFullYear();e!==new Date(s[0].date).getFullYear()&&i(),s.push(t)}return i(),n}(t,s)})}}]);