mirror of
https://github.com/bspeice/speice.io
synced 2024-12-22 16:48:10 -05:00
1 line
4.7 KiB
JavaScript
1 line
4.7 KiB
JavaScript
"use strict";(self.webpackChunkspeice_io=self.webpackChunkspeice_io||[]).push([["8514"],{71434:function(e,n,t){t.r(n),t.d(n,{default:()=>b});var i=t("85893");t("67294");var r=t("67026"),l=t("2933"),s=t("82743"),a=t("84681"),o=t("40979"),c=t("96025"),d=t("50790");function u(e){let{metadata:n}=e,{previousPage:t,nextPage:r}=n;return(0,i.jsxs)("nav",{className:"pagination-nav","aria-label":(0,c.I)({id:"theme.blog.paginator.navAriaLabel",message:"Blog list page navigation",description:"The ARIA label for the blog pagination"}),children:[t&&(0,i.jsx)(d.Z,{permalink:t,title:(0,i.jsx)(c.Z,{id:"theme.blog.paginator.newerEntries",description:"The label used to navigate to the newer blog posts page (previous page)",children:"Newer entries"})}),r&&(0,i.jsx)(d.Z,{permalink:r,title:(0,i.jsx)(c.Z,{id:"theme.blog.paginator.olderEntries",description:"The label used to navigate to the older blog posts page (next page)",children:"Older entries"}),isNext:!0})]})}var h=t("84315"),g=t("41835"),x=t("14378");function j(e){let{items:n,component:t=x.Z}=e;return(0,i.jsx)(i.Fragment,{children:n.map(e=>{let{content:n}=e;return(0,i.jsx)(g.n4,{content:n,children:(0,i.jsx)(t,{children:(0,i.jsx)(n,{})})},n.metadata.permalink)})})}var p=t("94819");function f(e){let n=(0,g.CS)(e);return(0,i.jsx)(p.Z,{children:(0,i.jsx)("script",{type:"application/ld+json",children:JSON.stringify(n)})})}function m(e){let{metadata:n}=e,{siteConfig:{title:t}}=(0,l.Z)(),{blogDescription:r,blogTitle:a,permalink:o}=n;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.d,{title:"/"===o?t:a,description:r}),(0,i.jsx)(h.Z,{tag:"blog_posts_list"})]})}function v(e){let{metadata:n,items:t,sidebar:r}=e;return(0,i.jsxs)(o.Z,{sidebar:r,children:[(0,i.jsx)(j,{items:t}),(0,i.jsx)(u,{metadata:n})]})}function b(e){return(0,i.jsxs)(s.FG,{className:(0,r.Z)(a.k.wrapper.blogPages,a.k.page.blogListPage),children:[(0,i.jsx)(m,{...e}),(0,i.jsx)(f,{...e}),(0,i.jsx)(v,{...e})]})}},40131:function(e,n,t){t.d(n,{Z:function(){return a}});var i=t(85893),r=t(67294),l=t(34403);function s(e){let{title:n,headingType:t,children:r}=e;return(0,i.jsxs)("div",{role:"group",children:[(0,i.jsx)(l.Z,{as:t,children:n}),r]})}let a=(0,r.memo)(function(e){let{items:n,yearGroupHeadingClassName:t,ListComponent:r}=e;return function(e,n){var t=[],r=[];function l(){if(0===r.length)return;let e=new Date(r[0].date).getFullYear(),l=function(e,n){var t=[],r=[];function l(){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(),t.push((0,i.jsx)(i.Fragment,{children:(0,i.jsx)(s,{title:e,headingType:"h4",children:(0,i.jsx)("ul",{children:(0,i.jsx)(n,{items:r})})})})),r=[]}for(let s of e){if(s.title.includes(":")){r.push(s);continue}l(),t.push((0,i.jsx)(n,{items:[s]}))}return l(),t}(r,n);t.push((0,i.jsx)(i.Fragment,{children:(0,i.jsx)(s,{title:String(e),headingType:"h3",children:l})})),r=[]}for(let n of e){if(0===r.length){r.push(n);continue}let e=new Date(n.date).getFullYear();e!==new Date(r[0].date).getFullYear()&&l(),r.push(n)}return l(),t}(n,r)})},40653:function(e,n,t){t.d(n,{Z:()=>w});var i=t("85893");t("67294");var r=t("67026"),l=t("7227"),s=t("34550"),a=t("96025"),o=t("2933"),c=t("70144"),d=t("78720"),u=t("66856"),h=t("16893");let g="playgroundContainer_TGbA",x="playgroundHeader_qwyd",j="playgroundEditor_PvJ1",p="playgroundPreview_bb8I";function f(e){let{children:n}=e;return(0,i.jsx)("div",{className:(0,r.Z)(x),children:n})}function m(){return(0,i.jsx)("div",{children:"Loading..."})}function v(){return(0,i.jsx)(c.Z,{fallback:(0,i.jsx)(m,{}),children:()=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(h.Z,{fallback:e=>(0,i.jsx)(d.Ac,{...e}),children:(0,i.jsx)(s.i5,{})}),(0,i.jsx)(s.IF,{})]})})}function b(){return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(f,{children:(0,i.jsx)(a.Z,{id:"theme.Playground.result",description:"The result label of the live codeblocks",children:"Result"})}),(0,i.jsx)("div",{className:p,children:(0,i.jsx)(v,{})})]})}function Z(){let e=(0,l.Z)();return(0,i.jsx)(s.uz,{className:j},String(e))}function k(){return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(f,{children:(0,i.jsx)(a.Z,{id:"theme.Playground.liveEditor",description:"The live editor label of the live codeblocks",children:"Live Editor"})}),(0,i.jsx)(Z,{})]})}let F=e=>`${e};`;function w(e){let{children:n,transformCode:t,...r}=e,{siteConfig:{themeConfig:l}}=(0,o.Z)(),{liveCodeBlock:{playgroundPosition:a}}=l,c=(0,u.p)(),d=r.metastring?.includes("noInline")??!1;return(0,i.jsx)("div",{className:g,children:(0,i.jsx)(s.nu,{code:n?.replace(/\n$/,""),noInline:d,transformCode:t??F,theme:c,...r,children:"top"===a?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(b,{}),(0,i.jsx)(k,{})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(k,{}),(0,i.jsx)(b,{})]})})})}}}]); |