(()=>{"use strict";var e={n:n=>{var t=n&&n.__esModule?()=>n.default:()=>n;return e.d(t,{a:t}),t},d:(n,t)=>{for(var o in t)e.o(t,o)&&!e.o(n,o)&&Object.defineProperty(n,o,{enumerable:!0,get:t[o]})},o:(e,n)=>Object.prototype.hasOwnProperty.call(e,n)};const n=window.wp.blocks,t=window.wp.i18n,o=window.wp.components,r=window.wp.blockEditor,a=window.wp.serverSideRender;var s=e.n(a);const i=window.ReactJSXRuntime,l=JSON.parse('{"UU":"feedbackwp/top-rated-posts"}');(0,n.registerBlockType)(l.UU,{edit:function({attributes:e,setAttributes:n}){return(0,i.jsxs)("div",{...(0,r.useBlockProps)(),children:[(0,i.jsx)(r.InspectorControls,{children:(0,i.jsx)(o.Panel,{children:(0,i.jsxs)(o.PanelBody,{children:[(0,i.jsx)(o.PanelRow,{children:(0,i.jsx)(o.TextControl,{label:(0,t.__)("Number of Posts","rate-my-post"),type:"number",value:e.number,onChange:e=>n({number:e})})}),(0,i.jsx)(o.PanelRow,{children:(0,i.jsx)(o.TextControl,{label:(0,t.__)("Minimum Rating","rate-my-post"),value:e.minimum_rating,onChange:e=>n({minimum_rating:e})})}),(0,i.jsx)(o.PanelRow,{children:(0,i.jsx)(o.TextControl,{label:(0,t.__)("Minimum Votes","rate-my-post"),value:e.minimum_votes,type:"number",onChange:e=>n({minimum_votes:e})})}),(0,i.jsx)(o.PanelRow,{children:(0,i.jsx)(o.ToggleControl,{label:(0,t.__)("Show Featured Image","rate-my-post"),checked:e.show_featured_image,onChange:e=>n({show_featured_image:e})})}),(0,i.jsx)(o.PanelRow,{children:(0,i.jsx)(o.ToggleControl,{label:(0,t.__)("Show Star Rating","rate-my-post"),checked:e.show_star_rating,onChange:e=>n({show_star_rating:e})})})]})})},"setting"),(0,i.jsx)(s(),{LoadingResponsePlaceholder:o.Spinner,block:"feedbackwp/top-rated-posts",attributes:e})]})},save:()=>null})})();