(()=>{"use strict";var e,t={86:()=>{const e=window.wp.blocks,t=window.wp.i18n,n=window.wp.blockEditor,o=window.wp.components,l=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"wp-sites-monitor/sites-monitor-list","title":"Sites Monitor List","category":"widgets","icon":"desktop","description":"Display a list of all the sites","version":"1.0.0","textdomain":"sites-monitor","attributes":{"perPage":{"type":"number","default":10},"showClients":{"type":"boolean","default":true},"showHealth":{"type":"boolean","default":true},"showMaintainers":{"type":"boolean","default":true},"showPluginUpdates":{"type":"boolean","default":true},"showVersion":{"type":"boolean","default":true}},"supports":{"html":false,"multiple":false,"reusable":false},"editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css","viewScript":"file:./view.js"}');(0,e.registerBlockType)(l,{edit:function(l){var r=l.attributes,a=l.setAttributes,s=l.name,i=(0,e.getBlockType)(s);return React.createElement(React.Fragment,null,React.createElement(n.InspectorControls,null,React.createElement(o.PanelBody,{title:"Settings",initialOpen:!1},React.createElement(o.PanelRow,null,React.createElement(o.ToggleControl,{label:(0,t.__)("Show site health","sites-monitor"),checked:r.showHealth,onChange:function(e){return a({showHealth:e})}})),React.createElement(o.PanelRow,null,React.createElement(o.ToggleControl,{label:(0,t.__)("Show WordPress version","sites-monitor"),checked:r.showVersion,onChange:function(e){return a({showVersion:e})}})),React.createElement(o.PanelRow,null,React.createElement(o.ToggleControl,{label:(0,t.__)("Show plugin updates","sites-monitor"),checked:r.showPluginUpdates,onChange:function(e){return a({showPluginUpdates:e})}})),wpsmSettings.isPremium&&React.createElement(React.Fragment,null,React.createElement(o.PanelRow,null,React.createElement(o.ToggleControl,{label:(0,t.__)("Show clients","sites-monitor"),checked:r.showClients,onChange:function(e){return a({showClients:e})}})),React.createElement(o.PanelRow,null,React.createElement(o.ToggleControl,{label:(0,t.__)("Show maintainers","sites-monitor"),checked:r.showMaintainers,onChange:function(e){return a({showMaintainers:e})}}))),React.createElement(o.PanelRow,null,React.createElement(o.TextControl,{label:(0,t.__)("Items per page","sites-monitor"),onChange:function(e){return a({perPage:Number(e)})},value:r.perPage})))),React.createElement(o.Card,(0,n.useBlockProps)(),React.createElement(o.CardHeader,{isShady:!0},i.title),React.createElement(o.CardBody,null,(0,t.__)("This block displays a list of all the sites on the front-end","sites-monitor"))))},save:function(){return null}})}},n={};function o(e){var l=n[e];if(void 0!==l)return l.exports;var r=n[e]={exports:{}};return t[e](r,r.exports,o),r.exports}o.m=t,e=[],o.O=(t,n,l,r)=>{if(!n){var a=1/0;for(u=0;u<e.length;u++){n=e[u][0],l=e[u][1],r=e[u][2];for(var s=!0,i=0;i<n.length;i++)(!1&r||a>=r)&&Object.keys(o.O).every((e=>o.O[e](n[i])))?n.splice(i--,1):(s=!1,r<a&&(a=r));if(s){e.splice(u--,1);var c=l();void 0!==c&&(t=c)}}return t}r=r||0;for(var u=e.length;u>0&&e[u-1][2]>r;u--)e[u]=e[u-1];e[u]=[n,l,r]},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={836:0,76:0};o.O.j=t=>0===e[t];var t=(t,n)=>{var l,r,a=n[0],s=n[1],i=n[2],c=0;if(a.some((t=>0!==e[t]))){for(l in s)o.o(s,l)&&(o.m[l]=s[l]);if(i)var u=i(o)}for(t&&t(n);c<a.length;c++)r=a[c],o.o(e,r)&&e[r]&&e[r][0](),e[r]=0;return o.O(u)},n=self.webpackChunkwp_sites_monitor=self.webpackChunkwp_sites_monitor||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var l=o.O(void 0,[76],(()=>o(86)));l=o.O(l)})();