mirror of
https://github.com/bspeice/speice.io
synced 2024-12-22 08:38:09 -05:00
1 line
3.6 KiB
JavaScript
1 line
3.6 KiB
JavaScript
"use strict";(self.webpackChunkspeice_io=self.webpackChunkspeice_io||[]).push([["2998"],{28127:function(e,t,n){n.d(t,{Z:function(){return s}});var i=n(85893);n(67294);var r=n(96025),l=n(50790);function s(e){let{nextItem:t,prevItem:n}=e;return(0,i.jsxs)("nav",{className:"pagination-nav docusaurus-mt-lg","aria-label":(0,r.I)({id:"theme.blog.post.paginator.navAriaLabel",message:"Blog post page navigation",description:"The ARIA label for the blog posts pagination"}),children:[t&&(0,i.jsx)(l.Z,{...t,subLabel:(0,i.jsx)(r.Z,{id:"theme.blog.post.paginator.olderPost",description:"The blog post button label to navigate to the older/next post",children:"Older post"})}),n&&(0,i.jsx)(l.Z,{...n,subLabel:(0,i.jsx)(r.Z,{id:"theme.blog.post.paginator.newerPost",description:"The blog post button label to navigate to the newer/previous post",children:"Newer post"}),isNext:!0})]})}},40131:function(e,t,n){n.d(t,{Z:function(){return o}});var i=n(85893),r=n(67294),l=n(34403);function s(e){let{title:t,headingType:n,children:r}=e;return(0,i.jsxs)("div",{role:"group",children:[(0,i.jsx)(l.Z,{as:n,children:t}),r]})}let o=(0,r.memo)(function(e){let{items:t,yearGroupHeadingClassName:n,ListComponent:r}=e;return function(e,t){var n=[],r=[];function l(){if(0===r.length)return;let e=new Date(r[0].date).getFullYear(),l=function(e,t){var n=[],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(),n.push((0,i.jsx)(i.Fragment,{children:(0,i.jsx)(s,{title:e,headingType:"h4",children:(0,i.jsx)("ul",{children:(0,i.jsx)(t,{items:r})})})})),r=[]}for(let s of e){if(s.title.includes(":")){r.push(s);continue}l(),n.push((0,i.jsx)(t,{items:[s]}))}return l(),n}(r,t);n.push((0,i.jsx)(i.Fragment,{children:(0,i.jsx)(s,{title:String(e),headingType:"h3",children:l})})),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()&&l(),r.push(t)}return l(),n}(t,r)})},40653:function(e,t,n){n.d(t,{Z:()=>k});var i=n("85893");n("67294");var r=n("67026"),l=n("7227"),s=n("34550"),o=n("96025"),a=n("2933"),c=n("70144"),d=n("78720"),u=n("66856"),h=n("16893");let p="playgroundContainer_TGbA",g="playgroundHeader_qwyd",x="playgroundEditor_PvJ1",j="playgroundPreview_bb8I";function f(e){let{children:t}=e;return(0,i.jsx)("div",{className:(0,r.Z)(g),children:t})}function b(){return(0,i.jsx)("div",{children:"Loading..."})}function m(){return(0,i.jsx)(c.Z,{fallback:(0,i.jsx)(b,{}),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 v(){return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(f,{children:(0,i.jsx)(o.Z,{id:"theme.Playground.result",description:"The result label of the live codeblocks",children:"Result"})}),(0,i.jsx)("div",{className:j,children:(0,i.jsx)(m,{})})]})}function Z(){let e=(0,l.Z)();return(0,i.jsx)(s.uz,{className:x},String(e))}function F(){return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(f,{children:(0,i.jsx)(o.Z,{id:"theme.Playground.liveEditor",description:"The live editor label of the live codeblocks",children:"Live Editor"})}),(0,i.jsx)(Z,{})]})}let w=e=>`${e};`;function k(e){let{children:t,transformCode:n,...r}=e,{siteConfig:{themeConfig:l}}=(0,a.Z)(),{liveCodeBlock:{playgroundPosition:o}}=l,c=(0,u.p)(),d=r.metastring?.includes("noInline")??!1;return(0,i.jsx)("div",{className:p,children:(0,i.jsx)(s.nu,{code:t?.replace(/\n$/,""),noInline:d,transformCode:n??w,theme:c,...r,children:"top"===o?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(v,{}),(0,i.jsx)(F,{})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(F,{}),(0,i.jsx)(v,{})]})})})}}}]); |