Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/wp-conte.../plugins/wpforms-.../assets/lite/js/integrat.../gutenber...
File: formselector.js
/* jshint es3: false, esversion: 6 */
[0] Fix | Delete
[1] Fix | Delete
import education from '../../../../js/integrations/gutenberg/modules/education.js';
[2] Fix | Delete
import common from '../../../../js/integrations/gutenberg/modules/common.js';
[3] Fix | Delete
import themesPanel from '../../../../js/integrations/gutenberg/modules/themes-panel.js';
[4] Fix | Delete
import containerStyles from '../../../../js/integrations/gutenberg/modules/container-styles.js';
[5] Fix | Delete
import backgroundStyles from '../../../../js/integrations/gutenberg/modules/background-styles.js';
[6] Fix | Delete
import buttonStyles from '../../../../js/integrations/gutenberg/modules/button-styles.js';
[7] Fix | Delete
import advancedSettings from '../../../../js/integrations/gutenberg/modules/advanced-settings.js';
[8] Fix | Delete
import fieldStyles from '../../../../js/integrations/gutenberg/modules/field-styles.js';
[9] Fix | Delete
[10] Fix | Delete
/**
[11] Fix | Delete
* Gutenberg editor block for Lite.
[12] Fix | Delete
*
[13] Fix | Delete
* @since 1.8.8
[14] Fix | Delete
*/
[15] Fix | Delete
const WPForms = window.WPForms || {};
[16] Fix | Delete
[17] Fix | Delete
WPForms.FormSelector = WPForms.FormSelector || ( function() {
[18] Fix | Delete
/**
[19] Fix | Delete
* Public functions and properties.
[20] Fix | Delete
*
[21] Fix | Delete
* @since 1.8.8
[22] Fix | Delete
*
[23] Fix | Delete
* @type {Object}
[24] Fix | Delete
*/
[25] Fix | Delete
const app = {
[26] Fix | Delete
/**
[27] Fix | Delete
* Common module object.
[28] Fix | Delete
*
[29] Fix | Delete
* @since 1.8.8
[30] Fix | Delete
*
[31] Fix | Delete
* @type {Object}
[32] Fix | Delete
*/
[33] Fix | Delete
common: {},
[34] Fix | Delete
[35] Fix | Delete
/**
[36] Fix | Delete
* Panel modules objects.
[37] Fix | Delete
*
[38] Fix | Delete
* @since 1.8.8
[39] Fix | Delete
*
[40] Fix | Delete
* @type {Object}
[41] Fix | Delete
*/
[42] Fix | Delete
panels: {},
[43] Fix | Delete
[44] Fix | Delete
/**
[45] Fix | Delete
* Start the engine.
[46] Fix | Delete
*
[47] Fix | Delete
* @since 1.8.8
[48] Fix | Delete
*/
[49] Fix | Delete
init() {
[50] Fix | Delete
app.education = education;
[51] Fix | Delete
app.common = common;
[52] Fix | Delete
app.panels.themes = themesPanel;
[53] Fix | Delete
app.panels.container = containerStyles;
[54] Fix | Delete
app.panels.background = backgroundStyles;
[55] Fix | Delete
app.panels.button = buttonStyles;
[56] Fix | Delete
app.panels.advanced = advancedSettings;
[57] Fix | Delete
app.panels.field = fieldStyles;
[58] Fix | Delete
[59] Fix | Delete
const blockOptions = {
[60] Fix | Delete
panels: app.panels,
[61] Fix | Delete
getThemesPanel: app.panels.themes.getThemesPanel,
[62] Fix | Delete
getFieldStyles: app.panels.field.getFieldStyles,
[63] Fix | Delete
getContainerStyles: app.panels.container.getContainerStyles,
[64] Fix | Delete
getBackgroundStyles: app.panels.background.getBackgroundStyles,
[65] Fix | Delete
getButtonStyles: app.panels.button.getButtonStyles,
[66] Fix | Delete
getCommonAttributes: app.getCommonAttributes,
[67] Fix | Delete
setStylesHandlers: app.getStyleHandlers(),
[68] Fix | Delete
education: app.education,
[69] Fix | Delete
};
[70] Fix | Delete
[71] Fix | Delete
// Initialize Advanced Settings module.
[72] Fix | Delete
app.panels.advanced.init( app.common );
[73] Fix | Delete
[74] Fix | Delete
// Initialize block.
[75] Fix | Delete
app.common.init( blockOptions );
[76] Fix | Delete
},
[77] Fix | Delete
[78] Fix | Delete
/**
[79] Fix | Delete
* Get style handlers.
[80] Fix | Delete
*
[81] Fix | Delete
* @since 1.8.8
[82] Fix | Delete
*
[83] Fix | Delete
* @return {Object} Style handlers.
[84] Fix | Delete
*/
[85] Fix | Delete
getCommonAttributes() {
[86] Fix | Delete
return {
[87] Fix | Delete
...app.panels.field.getBlockAttributes(),
[88] Fix | Delete
...app.panels.container.getBlockAttributes(),
[89] Fix | Delete
...app.panels.background.getBlockAttributes(),
[90] Fix | Delete
...app.panels.button.getBlockAttributes(),
[91] Fix | Delete
};
[92] Fix | Delete
},
[93] Fix | Delete
[94] Fix | Delete
/**
[95] Fix | Delete
* Get style handlers.
[96] Fix | Delete
*
[97] Fix | Delete
* @since 1.8.8
[98] Fix | Delete
*
[99] Fix | Delete
* @return {Object} Style handlers.
[100] Fix | Delete
*/
[101] Fix | Delete
getStyleHandlers() {
[102] Fix | Delete
return {
[103] Fix | Delete
'background-image': app.panels.background.setContainerBackgroundImage,
[104] Fix | Delete
'background-position': app.panels.background.setContainerBackgroundPosition,
[105] Fix | Delete
'background-repeat': app.panels.background.setContainerBackgroundRepeat,
[106] Fix | Delete
'background-width': app.panels.background.setContainerBackgroundWidth,
[107] Fix | Delete
'background-height': app.panels.background.setContainerBackgroundHeight,
[108] Fix | Delete
'background-color': app.panels.background.setBackgroundColor,
[109] Fix | Delete
'background-url': app.panels.background.setBackgroundUrl,
[110] Fix | Delete
};
[111] Fix | Delete
},
[112] Fix | Delete
};
[113] Fix | Delete
[114] Fix | Delete
// Provide access to public functions/properties.
[115] Fix | Delete
return app;
[116] Fix | Delete
}() );
[117] Fix | Delete
[118] Fix | Delete
// Initialize.
[119] Fix | Delete
WPForms.FormSelector.init();
[120] Fix | Delete
[121] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function