1 line
2.0 KiB
JavaScript
1 line
2.0 KiB
JavaScript
(()=>{"use strict";var e={879(){const e=window.wp.blocks,t=window.wp.blockEditor,s=window.wp.components,i=window.wp.i18n,o=window.ReactJSXRuntime,n=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","name":"activitypub/posts-and-replies","apiVersion":3,"version":"9.0.1","title":"Posts and Replies","category":"widgets","description":"Display a tab bar to filter between posts only and posts with replies on author archives.","textdomain":"activitypub","icon":"admin-post","keywords":["fediverse","activitypub","posts","replies","tabs"],"supports":{"html":false},"editorScript":"file:./index.js","style":["file:./style-index.css"],"render":"file:./render.php"}');(0,e.registerBlockType)(n,{edit:function(){const e=(0,t.useBlockProps)();return(0,o.jsx)("div",{...e,children:(0,o.jsx)(s.Placeholder,{icon:"admin-post",label:(0,i.__)("Posts and Replies","activitypub"),instructions:(0,i.__)('Displays a tab bar to filter between "Posts" (excluding replies) and "Posts & Replies" on author archives. Place above a Query Loop block with "Inherit query from template" enabled.',"activitypub")})})},save:()=>null})}};const t={};function s(i){const o=t[i];if(void 0!==o)return o.exports;const n=t[i]={exports:{}};return e[i](n,n.exports,s),n.exports}s.m=e,(()=>{const e=[];s.O=(t,i,o,n)=>{if(i){n=n||0;for(var r=e.length;r>0&&e[r-1][2]>n;r--)e[r]=e[r-1];return void(e[r]=[i,o,n])}let l=1/0;for(r=0;r<e.length;r++){let[i,o,n]=e[r],p=!0;for(var a=0;a<i.length;a++)(!1&n||l>=n)&&Object.keys(s.O).every(e=>s.O[e](i[a]))?i.splice(a--,1):(p=!1,n<l&&(l=n));if(p){e.splice(r--,1);const s=o();void 0!==s&&(t=s)}}return t}})(),s.o=(e,t)=>Object.hasOwn(e,t),(()=>{const e={642:0,6:0};s.O.j=t=>0===e[t];const t=(t,i)=>{let[o,n,r]=i;var l,a,p=0;if(o.some(t=>0!==e[t])){for(l in n)s.o(n,l)&&(s.m[l]=n[l]);if(r)var c=r(s)}for(t&&t(i);p<o.length;p++)a=o[p],s.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return s.O(c)},i=globalThis.webpackChunkwordpress_activitypub||=[];i.forEach(t.bind(null,0)),i.push=t.bind(null,i.push.bind(i))})();let i=s.O(void 0,[6],()=>s(879));i=s.O(i)})(); |