Calculated Fields Form - Version 1.1.67

Version Description

  • Fixes a conflict with the latest update of Visual Composer.
Download this release

Release Info

Developer codepeople
Plugin Icon 128x128 Calculated Fields Form
Version 1.1.67
Comparing to
See all releases

Code changes from version 1.1.65 to 1.1.67

README.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://cff.dwbooster.com
4
  Tags: form,quote form,contact form,form builder,calculator,calculated,quote calculator,forms,form editor,advanced forms,payment calculator,payment,recurring payment,quote,fields,calculated field,price calculator,email,form design,paypal,equation editor,formula,equation,quote calculator,post,posts,plugin,widget,admin,sidebar,images,image,page,shortcode,products form,woocommerce,addons,layout,session,post,cookie,get,webhook,Dropbox,pdf,language
5
  Requires at least: 3.0.5
6
  Tested up to: 5.9
7
- Stable tag: 1.1.65
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -965,6 +965,14 @@ A: Please, follow the steps below:
965
 
966
  == Changelog ==
967
 
 
 
 
 
 
 
 
 
968
  = 1.1.65 =
969
 
970
  * Implements a new option in the form settings tab to activate animations in the page breaks (for multipage forms) and dependencies.
@@ -1005,11 +1013,4 @@ A: Please, follow the steps below:
1005
 
1006
  * Modifies the way the plugin enqueues the SELECT2 library.
1007
  * Modifies the Number DS and Currency DS fields (Developer and Platinum versions).
1008
- * Modifies the eWay add-on to support the iFrame integration method (Platinum version).
1009
-
1010
- = 1.1.58 =
1011
-
1012
- * Implements the operations DECIMALTOSCIENTIFIC, FRACTIONSUM, FRACTIONSUB, FRACTIONMULT, and FRACTIONDIV.
1013
- * Modifies the calculated fields settings.
1014
- * Fixes a minor error with the minimum price of WooCommerce add-on (Developer and Platinum versions).
1015
- * Modifies the events in the DS fields (Developer and Platinum versions).
4
  Tags: form,quote form,contact form,form builder,calculator,calculated,quote calculator,forms,form editor,advanced forms,payment calculator,payment,recurring payment,quote,fields,calculated field,price calculator,email,form design,paypal,equation editor,formula,equation,quote calculator,post,posts,plugin,widget,admin,sidebar,images,image,page,shortcode,products form,woocommerce,addons,layout,session,post,cookie,get,webhook,Dropbox,pdf,language
5
  Requires at least: 3.0.5
6
  Tested up to: 5.9
7
+ Stable tag: 1.1.67
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
965
 
966
  == Changelog ==
967
 
968
+ = 1.1.67 =
969
+
970
+ * Fixes a conflict with the latest update of Visual Composer.
971
+
972
+ = 1.1.66 =
973
+
974
+ * Fixes an issue in the new animation feature.
975
+
976
  = 1.1.65 =
977
 
978
  * Implements a new option in the form settings tab to activate animations in the page breaks (for multipage forms) and dependencies.
1013
 
1014
  * Modifies the way the plugin enqueues the SELECT2 library.
1015
  * Modifies the Number DS and Currency DS fields (Developer and Platinum versions).
1016
+ * Modifies the eWay add-on to support the iFrame integration method (Platinum version).
 
 
 
 
 
 
 
changelog.txt CHANGED
@@ -1,5 +1,13 @@
1
  == Changelog ==
2
 
 
 
 
 
 
 
 
 
3
  = 1.1.65 =
4
 
5
  * Implements a new option in the form settings tab to activate animations in the page breaks (for multipage forms) and dependencies.
@@ -520,14 +528,4 @@
520
  * Modifies the button control for accepting OnMouseDown button.
521
  * Modifies the media control to allow the width and height attributes to affect the audio tags.
522
  * Modifies the template 13 to allow printing the ticked radio buttons and checkbox fields.
523
- * Fixes a minor conflict between the no-cache attribute and the thank you pages URLs with bookmarks (Professional, Developer, and Platinum versions).
524
-
525
- = 1.0.435 =
526
-
527
- * Implements the REMAINDER operation.
528
-
529
- = 1.0.434 =
530
-
531
- * Fixes a minor issue in the radio buttons controls.
532
- * Modifies the WooCommerce add-on to allow editing the products added to the cart (Developer and Platinum versions).
533
- * Modifies the Users Permissions add-on (Developer and Platinum versions).
1
  == Changelog ==
2
 
3
+ = 1.1.67 =
4
+
5
+ * Fixes a conflict with the latest update of Visual Composer.
6
+
7
+ = 1.1.66 =
8
+
9
+ * Fixes an issue in the new animation feature.
10
+
11
  = 1.1.65 =
12
 
13
  * Implements a new option in the form settings tab to activate animations in the page breaks (for multipage forms) and dependencies.
528
  * Modifies the button control for accepting OnMouseDown button.
529
  * Modifies the media control to allow the width and height attributes to affect the audio tags.
530
  * Modifies the template 13 to allow printing the ticked radio buttons and checkbox fields.
531
+ * Fixes a minor conflict between the no-cache attribute and the thank you pages URLs with bookmarks (Professional, Developer, and Platinum versions).
 
 
 
 
 
 
 
 
 
 
cp_calculatedfieldsf_free.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Calculated Fields Form
4
  Plugin URI: https://cff.dwbooster.com
5
  Description: Create forms with field values calculated based in other form field values.
6
- Version: 1.1.65
7
  Text Domain: calculated-fields-form
8
  Author: CodePeople
9
  Author URI: https://cff.dwbooster.com
@@ -16,7 +16,7 @@ if(!defined('WP_DEBUG') || true != WP_DEBUG)
16
  }
17
 
18
  // Defining main constants
19
- define('CP_CALCULATEDFIELDSF_VERSION', '1.1.65' );
20
  define('CP_CALCULATEDFIELDSF_MAIN_FILE_PATH', __FILE__ );
21
  define('CP_CALCULATEDFIELDSF_BASE_PATH', dirname( CP_CALCULATEDFIELDSF_MAIN_FILE_PATH ) );
22
  define('CP_CALCULATEDFIELDSF_BASE_NAME', plugin_basename( CP_CALCULATEDFIELDSF_MAIN_FILE_PATH ) );
3
  Plugin Name: Calculated Fields Form
4
  Plugin URI: https://cff.dwbooster.com
5
  Description: Create forms with field values calculated based in other form field values.
6
+ Version: 1.1.67
7
  Text Domain: calculated-fields-form
8
  Author: CodePeople
9
  Author URI: https://cff.dwbooster.com
16
  }
17
 
18
  // Defining main constants
19
+ define('CP_CALCULATEDFIELDSF_VERSION', '1.1.67' );
20
  define('CP_CALCULATEDFIELDSF_MAIN_FILE_PATH', __FILE__ );
21
  define('CP_CALCULATEDFIELDSF_BASE_PATH', dirname( CP_CALCULATEDFIELDSF_MAIN_FILE_PATH ) );
22
  define('CP_CALCULATEDFIELDSF_BASE_NAME', plugin_basename( CP_CALCULATEDFIELDSF_MAIN_FILE_PATH ) );
js/fbuilder-pro-public.jquery.js CHANGED
@@ -1,4 +1,4 @@
1
- $.fbuilder['version'] = '1.1.65';
2
  $.fbuilder['controls'] = $.fbuilder['controls'] || {};
3
  $.fbuilder['forms'] = $.fbuilder['forms'] || {};
4
 
@@ -189,15 +189,7 @@
189
 
190
  $.fbuilder[ 'showHideDep' ] = function( config )
191
  {
192
- $.fn.original_show = $.fn.show;
193
- $.fn.show = function(){
194
- var t =0;
195
- if($(this).closest('form').data('animate_form')) t = 250;
196
- $(this).fadeIn(t);
197
- return $(this);
198
- };
199
-
200
- // If isNotFirstTime the enqueue the equations associated to the fields
201
  var processItems = function( items, isNotFirstTime )
202
  {
203
  for( var i = 0, h = items.length; i < h; i++ )
@@ -212,7 +204,7 @@
212
  }
213
  if('showHideDep' in items[i])
214
  {
215
- var list = items[i]['showHideDep']( toShow, toHide, hiddenByContainer );
216
  if(list && list.length) processItems( list, true );
217
  }
218
  }
@@ -225,7 +217,8 @@
225
 
226
  if(id in $.fbuilder['forms'])
227
  {
228
- var toShow = $.fbuilder['forms'][id]['toShow'],
 
229
  toHide = $.fbuilder['forms'][id]['toHide'],
230
  hiddenByContainer = $.fbuilder['forms'][id]['hiddenByContainer'],
231
  items = ('fieldIdentifier' in config) ? [$.fbuilder['forms'][id].getItem(config['fieldIdentifier'].replace(/_[cr]b\d+$/i, ''))] : $.fbuilder['forms'][id].getItems();
@@ -234,8 +227,6 @@
234
  $(document).trigger('showHideDepEvent', $.fbuilder['forms'][id]['formId']);
235
  }
236
  }
237
-
238
- $.fn.show = $.fn.original_show;
239
  };
240
 
241
  // Load default values
1
+ $.fbuilder['version'] = '1.1.67';
2
  $.fbuilder['controls'] = $.fbuilder['controls'] || {};
3
  $.fbuilder['forms'] = $.fbuilder['forms'] || {};
4
 
189
 
190
  $.fbuilder[ 'showHideDep' ] = function( config )
191
  {
192
+ // If isNotFirstTime the enqueue the equations associated to the fields
 
 
 
 
 
 
 
 
193
  var processItems = function( items, isNotFirstTime )
194
  {
195
  for( var i = 0, h = items.length; i < h; i++ )
204
  }
205
  if('showHideDep' in items[i])
206
  {
207
+ var list = items[i]['showHideDep']( toShow, toHide, hiddenByContainer, interval );
208
  if(list && list.length) processItems( list, true );
209
  }
210
  }
217
 
218
  if(id in $.fbuilder['forms'])
219
  {
220
+ var interval = $('#'+$.fbuilder['forms'][id]['formId']).data('animate_form') ? 250 : 0,
221
+ toShow = $.fbuilder['forms'][id]['toShow'],
222
  toHide = $.fbuilder['forms'][id]['toHide'],
223
  hiddenByContainer = $.fbuilder['forms'][id]['hiddenByContainer'],
224
  items = ('fieldIdentifier' in config) ? [$.fbuilder['forms'][id].getItem(config['fieldIdentifier'].replace(/_[cr]b\d+$/i, ''))] : $.fbuilder['forms'][id].getItems();
227
  $(document).trigger('showHideDepEvent', $.fbuilder['forms'][id]['formId']);
228
  }
229
  }
 
 
230
  };
231
 
232
  // Load default values
js/fields-public/06_fbuilder.fcheck.js CHANGED
@@ -57,7 +57,7 @@
57
  if(0 < m.max)
58
  $('[id*="'+m.name+'"]').rules('add',{maxlength:m.max, messages:{maxlength:m.maxError}});
59
  },
60
- showHideDep:function( toShow, toHide, hiddenByContainer )
61
  {
62
  if(typeof hiddenByContainer == 'undefined') hiddenByContainer = {};
63
  var me = this,
@@ -100,7 +100,7 @@
100
  toShow[ dep ][ 'ref' ][ me.name+'_'+i ] = 1;
101
  if(!(dep in hiddenByContainer))
102
  {
103
- $( '[id*="'+dep+'"],.'+dep ).closest( '.fields' ).show();
104
  $( '[id*="'+dep+'"].ignore' ).removeClass( 'ignore' );
105
  }
106
  }
57
  if(0 < m.max)
58
  $('[id*="'+m.name+'"]').rules('add',{maxlength:m.max, messages:{maxlength:m.maxError}});
59
  },
60
+ showHideDep:function( toShow, toHide, hiddenByContainer, interval )
61
  {
62
  if(typeof hiddenByContainer == 'undefined') hiddenByContainer = {};
63
  var me = this,
100
  toShow[ dep ][ 'ref' ][ me.name+'_'+i ] = 1;
101
  if(!(dep in hiddenByContainer))
102
  {
103
+ $( '[id*="'+dep+'"],.'+dep ).closest( '.fields' ).fadeIn(interval || 0);
104
  $( '[id*="'+dep+'"].ignore' ).removeClass( 'ignore' );
105
  }
106
  }
js/fields-public/07_fbuilder.fradio.js CHANGED
@@ -60,7 +60,7 @@
60
  });
61
  }
62
  },
63
- showHideDep:function( toShow, toHide, hiddenByContainer )
64
  {
65
  if(typeof hiddenByContainer == 'undefined') hiddenByContainer = {};
66
  var me = this,
@@ -103,7 +103,7 @@
103
  toShow[ dep ][ 'ref' ][ me.name+'_'+i ] = 1;
104
  if(!(dep in hiddenByContainer))
105
  {
106
- $( '[id*="'+dep+'"],.'+dep ).closest( '.fields' ).show();
107
  $( '[id*="'+dep+'"].ignore' ).removeClass( 'ignore' );
108
  }
109
  }
60
  });
61
  }
62
  },
63
+ showHideDep:function( toShow, toHide, hiddenByContainer, interval )
64
  {
65
  if(typeof hiddenByContainer == 'undefined') hiddenByContainer = {};
66
  var me = this,
103
  toShow[ dep ][ 'ref' ][ me.name+'_'+i ] = 1;
104
  if(!(dep in hiddenByContainer))
105
  {
106
+ $( '[id*="'+dep+'"],.'+dep ).closest( '.fields' ).fadeIn(interval || 0);
107
  $( '[id*="'+dep+'"].ignore' ).removeClass( 'ignore' );
108
  }
109
  }
js/fields-public/08_fbuilder.fdropdown.js CHANGED
@@ -70,7 +70,7 @@
70
  $(document).ready(function(){if('select2' in $.fn) $('#'+me.name).select2({'dropdownParent':$('#'+me.name).next('.cff-select2-container')});});
71
  }
72
  },
73
- showHideDep:function( toShow, toHide, hiddenByContainer )
74
  {
75
  if(typeof hiddenByContainer == 'undefined') hiddenByContainer = {};
76
  var me = this,
@@ -118,7 +118,7 @@
118
  toShow[ dep ][ 'ref' ][ me.name+'_'+i ] = 1;
119
  if(!(dep in hiddenByContainer))
120
  {
121
- $( '[id*="'+dep+'"],.'+dep ).closest( '.fields' ).show();
122
  $( '[id*="'+dep+'"].ignore' ).removeClass( 'ignore' );
123
  }
124
  }
70
  $(document).ready(function(){if('select2' in $.fn) $('#'+me.name).select2({'dropdownParent':$('#'+me.name).next('.cff-select2-container')});});
71
  }
72
  },
73
+ showHideDep:function( toShow, toHide, hiddenByContainer, interval )
74
  {
75
  if(typeof hiddenByContainer == 'undefined') hiddenByContainer = {};
76
  var me = this,
118
  toShow[ dep ][ 'ref' ][ me.name+'_'+i ] = 1;
119
  if(!(dep in hiddenByContainer))
120
  {
121
+ $( '[id*="'+dep+'"],.'+dep ).closest( '.fields' ).fadeIn(interval || 0);
122
  $( '[id*="'+dep+'"].ignore' ).removeClass( 'ignore' );
123
  }
124
  }
js/fields-public/28_fbuilder.fcontainer.js CHANGED
@@ -17,7 +17,7 @@
17
  f.appendTo( e );
18
  }
19
  },
20
- showHideDep:function( toShow, toHide, hiddenByContainer )
21
  {
22
  if(typeof hiddenByContainer == 'undefined') hiddenByContainer = {};
23
  var me = this,
@@ -54,7 +54,7 @@
54
  delete hiddenByContainer[ fId ];
55
  if( typeof toHide[ fId ] == 'undefined' )
56
  {
57
- $( '[id*="'+fId+'"],.'+fId ).closest( '.fields' ).show();
58
  $( '[id*="'+fId+'"].ignore' ).removeClass( 'ignore' );
59
  result.push( fId );
60
  }
17
  f.appendTo( e );
18
  }
19
  },
20
+ showHideDep:function( toShow, toHide, hiddenByContainer, interval )
21
  {
22
  if(typeof hiddenByContainer == 'undefined') hiddenByContainer = {};
23
  var me = this,
54
  delete hiddenByContainer[ fId ];
55
  if( typeof toHide[ fId ] == 'undefined' )
56
  {
57
+ $( '[id*="'+fId+'"],.'+fId ).closest( '.fields' ).fadeIn(interval || 0);
58
  $( '[id*="'+fId+'"].ignore' ).removeClass( 'ignore' );
59
  result.push( fId );
60
  }
js/fields-public/fbuilder.fcalculated.js CHANGED
@@ -102,7 +102,7 @@
102
 
103
  $('#cp_calculatedfieldsf_pform'+me.form_identifier).bind('reset', function(){e.removeData('manually');});
104
  },
105
- showHideDep: function( toShow, toHide, hiddenByContainer )
106
  {
107
  if(typeof hiddenByContainer == 'undefined') hiddenByContainer = {};
108
  var me = this,
@@ -154,7 +154,7 @@
154
  toShow[ dep ][ 'ref' ][ me.name ] = 1;
155
  if(!(dep in hiddenByContainer))
156
  {
157
- $( '[id*="'+dep+'"],.'+dep).closest( '.fields' ).show();
158
  $( '[id*="'+dep+'"].ignore' ).removeClass( 'ignore' );
159
  }
160
  if($.inArray(dep,result) == -1) result.push( dep );
102
 
103
  $('#cp_calculatedfieldsf_pform'+me.form_identifier).bind('reset', function(){e.removeData('manually');});
104
  },
105
+ showHideDep: function( toShow, toHide, hiddenByContainer, interval )
106
  {
107
  if(typeof hiddenByContainer == 'undefined') hiddenByContainer = {};
108
  var me = this,
154
  toShow[ dep ][ 'ref' ][ me.name ] = 1;
155
  if(!(dep in hiddenByContainer))
156
  {
157
+ $( '[id*="'+dep+'"],.'+dep).closest( '.fields' ).fadeIn(interval || 0);
158
  $( '[id*="'+dep+'"].ignore' ).removeClass( 'ignore' );
159
  }
160
  if($.inArray(dep,result) == -1) result.push( dep );
pagebuilders/visualcomposer/CFFForm/public/dist/element.bundle.js CHANGED
@@ -8,7 +8,7 @@
8
  /***/ (function(module, exports, __webpack_require__) {
9
 
10
  "use strict";
11
- eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n\tvalue: true\n});\n\nvar _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ \"./node_modules/babel-runtime/helpers/extends.js\");\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nvar _getPrototypeOf = __webpack_require__(/*! babel-runtime/core-js/object/get-prototype-of */ \"./node_modules/babel-runtime/core-js/object/get-prototype-of.js\");\n\nvar _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);\n\nvar _classCallCheck2 = __webpack_require__(/*! babel-runtime/helpers/classCallCheck */ \"./node_modules/babel-runtime/helpers/classCallCheck.js\");\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = __webpack_require__(/*! babel-runtime/helpers/createClass */ \"./node_modules/babel-runtime/helpers/createClass.js\");\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = __webpack_require__(/*! babel-runtime/helpers/possibleConstructorReturn */ \"./node_modules/babel-runtime/helpers/possibleConstructorReturn.js\");\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _get2 = __webpack_require__(/*! babel-runtime/helpers/get */ \"./node_modules/babel-runtime/helpers/get.js\");\n\nvar _get3 = _interopRequireDefault(_get2);\n\nvar _inherits2 = __webpack_require__(/*! babel-runtime/helpers/inherits */ \"./node_modules/babel-runtime/helpers/inherits.js\");\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _react = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _vcCake = __webpack_require__(/*! vc-cake */ \"./node_modules/vc-cake/index.js\");\n\nvar _vcCake2 = _interopRequireDefault(_vcCake);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar vcvAPI = _vcCake2.default.getService('api');\n\nvar CFFFormElement = function (_vcvAPI$elementCompon) {\n\t(0, _inherits3.default)(CFFFormElement, _vcvAPI$elementCompon);\n\n\tfunction CFFFormElement() {\n\t\t(0, _classCallCheck3.default)(this, CFFFormElement);\n\t\treturn (0, _possibleConstructorReturn3.default)(this, (CFFFormElement.__proto__ || (0, _getPrototypeOf2.default)(CFFFormElement)).apply(this, arguments));\n\t}\n\n\t(0, _createClass3.default)(CFFFormElement, [{\n\t\tkey: 'sanitize',\n\t\tvalue: function sanitize(str, args) {\n\t\t\tif (typeof args == 'undefined') args = {};\n\t\t\tif (!('quotes' in args)) args['quotes'] = false;\n\t\t\tif (!('spaces' in args)) args['spaces'] = false;\n\n\t\t\tstr = str.replace(/[^a-zA-Z0-9\\.\\-_\\s\"'=]/g, '');\n\t\t\tif (!args.quotes) str = str.replace(/'\"/g, '');\n\t\t\tif (!args.spaces) str = str.replace(/\\s/g, '');\n\n\t\t\treturn str;\n\t\t}\n\t}, {\n\t\tkey: 'getTheShortcode',\n\t\tvalue: function getTheShortcode(atts) {\n\t\t\t// Generates the form's shortcode\n\t\t\tvar _atts$fId = atts.fId,\n\t\t\t fId = _atts$fId === undefined ? \"\" : _atts$fId,\n\t\t\t _atts$clssName = atts.clssName,\n\t\t\t clssName = _atts$clssName === undefined ? \"\" : _atts$clssName,\n\t\t\t _atts$attrs = atts.attrs,\n\t\t\t attrs = _atts$attrs === undefined ? \"\" : _atts$attrs;\n\n\t\t\tif (fId == '') return '';\n\t\t\tvar shortcode = '[CP_CALCULATED_FIELDS id=\"' + this.sanitize(fId) + '\"';\n\t\t\tif (clssName != '') shortcode += ' class=\"' + this.sanitize(clssName, { spaces: true }) + '\"';\n\t\t\tif (attrs != '') shortcode += ' ' + this.sanitize(attrs, { quotes: true, spaces: true });\n\t\t\tshortcode += ']';\n\n\t\t\treturn shortcode;\n\t\t}\n\t}, {\n\t\tkey: 'addFormGeneratorForVSEditor',\n\t\tvalue: function addFormGeneratorForVSEditor(base) {\n\t\t\treturn base != '' ? base + '<script>delete fbuilderjQuery.fbuilderGeneratorFlag; if(\"fbuilderjQuery\" in window && \"fbuilderjQueryGenerator\" in fbuilderjQuery) fbuilderjQuery.fbuilderjQueryGenerator();</script>' : base;\n\t\t}\n\t}, {\n\t\tkey: 'componentDidMount',\n\t\tvalue: function componentDidMount() {\n\n\t\t\tvar shortcode = this.addFormGeneratorForVSEditor(this.getTheShortcode(this.props.atts));\n\t\t\t(0, _get3.default)(CFFFormElement.prototype.__proto__ || (0, _getPrototypeOf2.default)(CFFFormElement.prototype), 'updateShortcodeToHtml', this).call(this, shortcode, this.refs.vcvhelper);\n\t\t\tif (!window.wp || !window.wp.shortcode || !window.VCV_API_WPBAKERY_WPB_MAP) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tthis.multipleShortcodesRegex = window.wp.shortcode.regexp(window.VCV_API_WPBAKERY_WPB_MAP().join('|'));\n\t\t\tthis.localShortcodesRegex = new RegExp(this.multipleShortcodesRegex.source);\n\t\t}\n\t}, {\n\t\tkey: 'componentDidUpdate',\n\t\tvalue: function componentDidUpdate(props) {\n\n\t\t\tvar shortcode = this.addFormGeneratorForVSEditor(this.getTheShortcode(this.props.atts));\n\t\t\tvar shortcodeCmp = this.getTheShortcode(props.atts);\n\t\t\t// update only if shortcode changed\n\t\t\tif (shortcode !== shortcodeCmp) {\n\t\t\t\t(0, _get3.default)(CFFFormElement.prototype.__proto__ || (0, _getPrototypeOf2.default)(CFFFormElement.prototype), 'updateShortcodeToHtml', this).call(this, shortcode, this.refs.vcvhelper);\n\t\t\t}\n\t\t}\n\t}, {\n\t\tkey: 'render',\n\t\tvalue: function render() {\n\t\t\tvar _props = this.props,\n\t\t\t id = _props.id,\n\t\t\t atts = _props.atts,\n\t\t\t editor = _props.editor;\n\n\n\t\t\tvar shortcode = this.getTheShortcode(atts);\n\t\t\tvar elementClasses = 'vce-cff-form';\n\t\t\tvar wrapperClasses = 'vce-cff-form-wrapper vce';\n\t\t\tvar customProps = {};\n\n\t\t\tvar doAll = this.applyDO('all');\n\n\t\t\treturn _react2.default.createElement(\n\t\t\t\t'div',\n\t\t\t\t(0, _extends3.default)({ className: elementClasses }, editor, customProps),\n\t\t\t\t_react2.default.createElement(\n\t\t\t\t\t'div',\n\t\t\t\t\t(0, _extends3.default)({ className: wrapperClasses, id: 'el-' + id }, doAll),\n\t\t\t\t\t_react2.default.createElement('style', { className: 'vcvhelper', ref: 'style' }),\n\t\t\t\t\t_react2.default.createElement('div', { className: 'vcvhelper', ref: 'vcvhelper', 'data-vcvs-html': shortcode })\n\t\t\t\t)\n\t\t\t);\n\t\t}\n\t}]);\n\treturn CFFFormElement;\n}(vcvAPI.elementComponent);\n\nexports.default = CFFFormElement;\n\n//# sourceURL=webpack:///./CFFForm/component.js?");
12
 
13
  /***/ }),
14
 
8
  /***/ (function(module, exports, __webpack_require__) {
9
 
10
  "use strict";
11
+ eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n\tvalue: true\n});\n\nvar _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ \"./node_modules/babel-runtime/helpers/extends.js\");\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nvar _getPrototypeOf = __webpack_require__(/*! babel-runtime/core-js/object/get-prototype-of */ \"./node_modules/babel-runtime/core-js/object/get-prototype-of.js\");\n\nvar _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);\n\nvar _classCallCheck2 = __webpack_require__(/*! babel-runtime/helpers/classCallCheck */ \"./node_modules/babel-runtime/helpers/classCallCheck.js\");\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = __webpack_require__(/*! babel-runtime/helpers/createClass */ \"./node_modules/babel-runtime/helpers/createClass.js\");\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = __webpack_require__(/*! babel-runtime/helpers/possibleConstructorReturn */ \"./node_modules/babel-runtime/helpers/possibleConstructorReturn.js\");\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _get2 = __webpack_require__(/*! babel-runtime/helpers/get */ \"./node_modules/babel-runtime/helpers/get.js\");\n\nvar _get3 = _interopRequireDefault(_get2);\n\nvar _inherits2 = __webpack_require__(/*! babel-runtime/helpers/inherits */ \"./node_modules/babel-runtime/helpers/inherits.js\");\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _react = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _vcCake = __webpack_require__(/*! vc-cake */ \"./node_modules/vc-cake/index.js\");\n\nvar _vcCake2 = _interopRequireDefault(_vcCake);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar vcvAPI = _vcCake2.default.getService('api');\n\nvar CFFFormElement = function (_vcvAPI$elementCompon) {\n\t(0, _inherits3.default.default)(CFFFormElement, _vcvAPI$elementCompon);\n\n\tfunction CFFFormElement() {\n\t\t(0, _classCallCheck3.default.default)(this, CFFFormElement);\n\t\treturn (0, _possibleConstructorReturn3.default.default)(this, (CFFFormElement.__proto__ || (0, _getPrototypeOf2.default)(CFFFormElement)).apply(this, arguments));\n\t}\n\n\t(0, _createClass3.default.default)(CFFFormElement, [{\n\t\tkey: 'sanitize',\n\t\tvalue: function sanitize(str, args) {\n\t\t\tif (typeof args == 'undefined') args = {};\n\t\t\tif (!('quotes' in args)) args['quotes'] = false;\n\t\t\tif (!('spaces' in args)) args['spaces'] = false;\n\n\t\t\tstr = str.replace(/[^a-zA-Z0-9\\.\\-_\\s\"'=]/g, '');\n\t\t\tif (!args.quotes) str = str.replace(/'\"/g, '');\n\t\t\tif (!args.spaces) str = str.replace(/\\s/g, '');\n\n\t\t\treturn str;\n\t\t}\n\t}, {\n\t\tkey: 'getTheShortcode',\n\t\tvalue: function getTheShortcode(atts) {\n\t\t\t// Generates the form's shortcode\n\t\t\tvar _atts$fId = atts.fId,\n\t\t\t fId = _atts$fId === undefined ? \"\" : _atts$fId,\n\t\t\t _atts$clssName = atts.clssName,\n\t\t\t clssName = _atts$clssName === undefined ? \"\" : _atts$clssName,\n\t\t\t _atts$attrs = atts.attrs,\n\t\t\t attrs = _atts$attrs === undefined ? \"\" : _atts$attrs;\n\n\t\t\tif (fId == '') return '';\n\t\t\tvar shortcode = '[CP_CALCULATED_FIELDS id=\"' + this.sanitize(fId) + '\"';\n\t\t\tif (clssName != '') shortcode += ' class=\"' + this.sanitize(clssName, { spaces: true }) + '\"';\n\t\t\tif (attrs != '') shortcode += ' ' + this.sanitize(attrs, { quotes: true, spaces: true });\n\t\t\tshortcode += ']';\n\n\t\t\treturn shortcode;\n\t\t}\n\t}, {\n\t\tkey: 'addFormGeneratorForVSEditor',\n\t\tvalue: function addFormGeneratorForVSEditor(base) {\n\t\t\treturn base != '' ? base + '<script>delete fbuilderjQuery.fbuilderGeneratorFlag; if(\"fbuilderjQuery\" in window && \"fbuilderjQueryGenerator\" in fbuilderjQuery) fbuilderjQuery.fbuilderjQueryGenerator();</script>' : base;\n\t\t}\n\t}, {\n\t\tkey: 'componentDidMount',\n\t\tvalue: function componentDidMount() {\n\n\t\t\tvar shortcode = this.addFormGeneratorForVSEditor(this.getTheShortcode(this.props.atts));\n\t\t\t(0, _get3.default.default)(CFFFormElement.prototype.__proto__ || (0, _getPrototypeOf2.default)(CFFFormElement.prototype), 'updateShortcodeToHtml', this).call(this, shortcode, this.refs.vcvhelper);\n\t\t\tif (!window.wp || !window.wp.shortcode || !window.VCV_API_WPBAKERY_WPB_MAP) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tthis.multipleShortcodesRegex = window.wp.shortcode.regexp(window.VCV_API_WPBAKERY_WPB_MAP().join('|'));\n\t\t\tthis.localShortcodesRegex = new RegExp(this.multipleShortcodesRegex.source);\n\t\t}\n\t}, {\n\t\tkey: 'componentDidUpdate',\n\t\tvalue: function componentDidUpdate(props) {\n\n\t\t\tvar shortcode = this.addFormGeneratorForVSEditor(this.getTheShortcode(this.props.atts));\n\t\t\tvar shortcodeCmp = this.getTheShortcode(props.atts);\n\t\t\t// update only if shortcode changed\n\t\t\tif (shortcode !== shortcodeCmp) {\n\t\t\t\t(0, _get3.default.default)(CFFFormElement.prototype.__proto__ || (0, _getPrototypeOf2.default)(CFFFormElement.prototype), 'updateShortcodeToHtml', this).call(this, shortcode, this.refs.vcvhelper);\n\t\t\t}\n\t\t}\n\t}, {\n\t\tkey: 'render',\n\t\tvalue: function render() {\n\t\t\tvar _props = this.props,\n\t\t\t id = _props.id,\n\t\t\t atts = _props.atts,\n\t\t\t editor = _props.editor;\n\n\n\t\t\tvar shortcode = this.getTheShortcode(atts);\n\t\t\tvar elementClasses = 'vce-cff-form';\n\t\t\tvar wrapperClasses = 'vce-cff-form-wrapper vce';\n\t\t\tvar customProps = {};\n\n\t\t\tvar doAll = this.applyDO('all');\n\n\t\t\treturn _react2.default.createElement(\n\t\t\t\t'div',\n\t\t\t\t(0, _extends3.default.default)({ className: elementClasses }, editor, customProps),\n\t\t\t\t_react2.default.createElement(\n\t\t\t\t\t'div',\n\t\t\t\t\t(0, _extends3.default.default)({ className: wrapperClasses, id: 'el-' + id }, doAll),\n\t\t\t\t\t_react2.default.createElement('style', { className: 'vcvhelper', ref: 'style' }),\n\t\t\t\t\t_react2.default.createElement('div', { className: 'vcvhelper', ref: 'vcvhelper', 'data-vcvs-html': shortcode })\n\t\t\t\t)\n\t\t\t);\n\t\t}\n\t}]);\n\treturn CFFFormElement;\n}(vcvAPI.elementComponent);\n\nexports.default = CFFFormElement;\n\n//# sourceURL=webpack:///./CFFForm/component.js?");
12
 
13
  /***/ }),
14