| Server IP : 213.186.33.4 / Your IP : 216.73.216.146 Web Server : Apache System : Linux webm005.cluster103.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64 User : karinebmkh ( 644538) PHP Version : 8.4.22 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/karinebmkh/www2/wp-content/plugins/mailchimp-for-wp/assets/js/ |
Upload File : |
(function () { var require = undefined; var define = undefined; (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
'use strict';
var __ = window.wp.i18n.__;
var registerBlockType = window.wp.blocks.registerBlockType;
var SelectControl = window.wp.components.SelectControl;
var forms = window.mc4wp_forms;
registerBlockType('mailchimp-for-wp/form', {
title: __('Mailchimp for WordPress Form'),
description: __('Block showing a Mailchimp for WordPress sign-up form'),
category: 'widgets',
attributes: {
id: {
type: 'int'
}
},
supports: {
html: false
},
edit: function edit(props) {
var options = forms.map(function (f) {
return {
label: f.name,
value: f.id
};
});
return React.createElement("div", {
style: {
backgroundColor: '#f8f9f9',
padding: '14px'
}
}, React.createElement(SelectControl, {
label: __('Mailchimp for WordPress Sign-up Form'),
value: props.attributes.id,
options: options,
onChange: function onChange(value) {
props.setAttributes({
id: value
});
}
}));
},
// Render nothing in the saved content, because we render in PHP
save: function save(props) {
return null; //return `[mc4wp_form id="${props.attributes.id}"]`;
}
});
},{}]},{},[1]);
})();