(()=>{"use strict";var e,t={270:()=>{const e=window.React,t=window.wp.blocks,s=window.wp.blockEditor,o=(window.wp.i18n,window.wp.components),n=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"icon":"align-full-width","title":"Magazine News Post Footer","name":"susquehanna/magazine-news-post-footer","category":"susquehanna","script":"file:./index.js","viewScript":"file:./script.js","style":"file:./style-index.css","editorStyle":"file:./editor.css","editorScript":"file:./editor.js","render":"file:./render.php","attributes":{"sectionLabel":{"type":"string","default":"Keep Reading","selector":"p"},"sectionTitle":{"type":"string","default":"Related Posts","selector":"h2"},"showAuthor":{"type":"boolean","default":true}}}');(0,t.registerBlockType)(n,{edit:function(t){const{attributes:n,setAttributes:a}=t,{sectionLabel:r,sectionTitle:l,showAuthor:i}=n;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(s.InspectorControls,null,(0,e.createElement)(o.PanelBody,{title:"Settings"},(0,e.createElement)(o.ToggleControl,{label:"Show Author",checked:i,onChange:e=>a({showAuthor:e})}))),(0,e.createElement)("div",{...(0,s.useBlockProps)()},(0,e.createElement)("div",{className:"susqu-magzine-news-post-footer__related-blog-posts"},(0,e.createElement)("div",{className:"susqu-magzine-news-post-footer__heading"},(0,e.createElement)(s.RichText,{value:r,onChange:e=>a({sectionLabel:e}),tagName:"p",className:"susqu-magzine-news-post-footer__label"}),(0,e.createElement)(s.RichText,{value:l,onChange:e=>a({sectionTitle:e}),tagName:"h2",className:"susqu-magzine-news-post-footer__title"})),(0,e.createElement)("div",{className:"susqu-magzine-news-post-footer__items"},(0,e.createElement)("p",{className:"susqu-magzine-news-post-footer__placeholder-text"},"This is the News Related Blog Posts Block. It will display 3 blog posts related to the current blog post based on Category."),(0,e.createElement)("div",{className:"susqu-magzine-news-post-footer__item"}),(0,e.createElement)("div",{className:"susqu-magzine-news-post-footer__item"}),(0,e.createElement)("div",{className:"susqu-magzine-news-post-footer__item"})))))},save:function(){}})}},s={};function o(e){var n=s[e];if(void 0!==n)return n.exports;var a=s[e]={exports:{}};return t[e](a,a.exports,o),a.exports}o.m=t,e=[],o.O=(t,s,n,a)=>{if(!s){var r=1/0;for(u=0;u=a)&&Object.keys(o.O).every((e=>o.O[e](s[i])))?s.splice(i--,1):(l=!1,a0&&e[u-1][2]>a;u--)e[u]=e[u-1];e[u]=[s,n,a]},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={439:0,4239:0};o.O.j=t=>0===e[t];var t=(t,s)=>{var n,a,[r,l,i]=s,c=0;if(r.some((t=>0!==e[t]))){for(n in l)o.o(l,n)&&(o.m[n]=l[n]);if(i)var u=i(o)}for(t&&t(s);co(270)));n=o.O(n)})();