!function(){"use strict";var t,n={567:function(t){t.exports=window.jQuery}},e={};function i(t){var r=e[t];if(void 0!==r)return r.exports;var o=e[t]={exports:{}};return n[t](o,o.exports,i),o.exports}i.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(n,{a:n}),n},i.d=function(t,n){for(var e in n)i.o(n,e)&&!i.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:n[e]})},i.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},t=i(567),i.n(t)()((function(t){const n=window.jetpackSocialClassicEditorInitialState??{},e=t("#publicize-form");if(!n||n.sharesRemaining>n.numberOfConnections)return;const i=t("#publicize-form").find('input[type="checkbox"]');0!==n.sharesRemaining?e.click((function(r){const o=t(r.target);if(!o.is("input")||o.is(":disabled"))return;const s=e.find('input[type="checkbox"]:checked').length>=n.sharesRemaining;i.each((function(){this.id!==o.attr("id")&&(this.checked||(t(this).parent().toggleClass("wpas-disabled",s),t(this).prop("disabled",s)))}))})):i.each((function(){t(this).parent().addClass("wpas-disabled"),t(this).prop("disabled",!0)}))}))}();