var e;(e=H5P.jQuery)(document).on("ready",(function(){if(H5PDisableHubData&&H5PDisableHubData.errors&&H5PDisableHubData.errors.length){H5PDisableHubData.selector=H5PDisableHubData.selector||".h5p-settings-disable-hub-checkbox",H5PDisableHubData.overlaySelector=H5PDisableHubData.overlaySelector||".h5p-settings-container";var a="<div><p>"+H5PDisableHubData.errors.join("</p><p>")+"</p><p>"+H5PDisableHubData.confirmationDialogMsg+"</p>",t=new H5P.ConfirmationDialog({headerText:H5PDisableHubData.header,dialogText:a,cancelText:H5PDisableHubData.cancelLabel,confirmText:H5PDisableHubData.confirmLabel}).appendTo(e(H5PDisableHubData.overlaySelector).get(0));t.on("confirmed",(function(){i.get(0).checked=!0})),t.on("canceled",(function(){i.get(0).checked=!1}));var i=e(H5PDisableHubData.selector);i.change((function(){e(this).is(":checked")&&t.show(i.offset().top)}))}}));