import{r as a,h as e}from"./p-3d23a42a.js";import{B as i,F as n}from"./p-10bcf9e6.js";const r=class{constructor(e){a(this,e),this.page={title:null,path:null,body:null,pageInfo:null}}render(){const{previousText:a,previousUrl:r,nextText:t,nextUrl:l}=this.page,o=t&&l,p=[];return a&&r&&p.push(e("stencil-route-link",{url:r,key:"previous",class:"previous",anchorTitle:a},e("div",{class:"pagination__title"},"Previous"),e("div",{class:"pagination__text"},e(i,null),e("span",null,a)))),o&&p.push(e("stencil-route-link",{url:l,key:"next",class:"next",anchorTitle:t},e("div",{class:"pagination__title"},"Next"),e("div",{class:"pagination__text"},e("span",null,t),e(n,null)))),p}};r.style="sparkle-pagination{border-color:var(--line-rule-color);border-style:solid;border-width:0 0 1px;display:flex;flex-wrap:wrap-reverse;padding:var(--page-padding, 2rem 0rem) 0}sparkle-pagination .next,sparkle-pagination .previous{max-width:100%;overflow:hidden}sparkle-pagination .next{margin-left:auto}sparkle-pagination a{border-radius:4px;display:flex;align-items:flex-start;flex-direction:column;padding:1em 1.5em;color:rgb(var(--accent-color-rgb))}sparkle-pagination .previous a{padding-left:0}sparkle-pagination .next a{padding-right:0;align-items:flex-end}@media (max-width: 700px){sparkle-pagination .previous a{padding-right:.5rem}sparkle-pagination .next a{padding-left:.5rem}}@media (hover: hover){sparkle-pagination a:hover,sparkle-pagination a:active{filter:brightness(0.8)}}sparkle-pagination .pagination__title{color:var(--text-color--lighter);font-size:12px;display:block}sparkle-pagination .pagination__text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;color:var(--ion-color-sparkle)}sparkle-pagination span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}sparkle-pagination svg{fill:currentColor;flex:none;height:1em;margin-bottom:-0.125em;width:1em}sparkle-pagination .next svg{margin-left:0.5em}sparkle-pagination .previous svg{margin-right:0.5em}";export{r as sparkle_pagination}