WordPress Page Builder – Beaver Builder - Version 2.1.4.2

Version Description

Download this release

Release Info

Developer pross
Plugin Icon 128x128 WordPress Page Builder – Beaver Builder
Version 2.1.4.2
Comparing to
See all releases

Code changes from version 2.1.4.1 to 2.1.4.2

changelog.txt CHANGED
@@ -1,3 +1,9 @@
 
 
 
 
 
 
1
  <h4>2.1.4.1 - 08/02/2018</h4>
2
  <p><strong>HotFix</strong></p>
3
  <ul>
1
+ <h4>2.1.4.2 - 08/06/2018</h4>
2
+ <p><strong>HotFix</strong></p>
3
+ <ul>
4
+ <li>Fixed text editors losing formatting when publishing because of WP 4.9.8 update.</li>
5
+ </ul>
6
+
7
  <h4>2.1.4.1 - 08/02/2018</h4>
8
  <p><strong>HotFix</strong></p>
9
  <ul>
classes/class-fl-builder-loader.php CHANGED
@@ -46,7 +46,7 @@ if ( ! class_exists( 'FLBuilderLoader' ) ) {
46
  * @return void
47
  */
48
  static private function define_constants() {
49
- define( 'FL_BUILDER_VERSION', '2.1.4.1' );
50
  define( 'FL_BUILDER_FILE', trailingslashit( dirname( dirname( __FILE__ ) ) ) . 'fl-builder.php' );
51
  define( 'FL_BUILDER_DIR', plugin_dir_path( FL_BUILDER_FILE ) );
52
  define( 'FL_BUILDER_URL', plugins_url( '/', FL_BUILDER_FILE ) );
46
  * @return void
47
  */
48
  static private function define_constants() {
49
+ define( 'FL_BUILDER_VERSION', '2.1.4.2' );
50
  define( 'FL_BUILDER_FILE', trailingslashit( dirname( dirname( __FILE__ ) ) ) . 'fl-builder.php' );
51
  define( 'FL_BUILDER_DIR', plugin_dir_path( FL_BUILDER_FILE ) );
52
  define( 'FL_BUILDER_URL', plugins_url( '/', FL_BUILDER_FILE ) );
fl-builder.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Beaver Builder Plugin (Lite Version)
4
  * Plugin URI: https://www.wpbeaverbuilder.com/?utm_medium=bb&utm_source=plugins-admin-page&utm_campaign=plugins-admin-uri
5
  * Description: A drag and drop frontend WordPress page builder plugin that works with almost any theme!
6
- * Version: 2.1.4.1
7
  * Author: The Beaver Builder Team
8
  * Author URI: https://www.wpbeaverbuilder.com/?utm_medium=bb&utm_source=plugins-admin-page&utm_campaign=plugins-admin-author
9
  * Copyright: (c) 2014 Beaver Builder
3
  * Plugin Name: Beaver Builder Plugin (Lite Version)
4
  * Plugin URI: https://www.wpbeaverbuilder.com/?utm_medium=bb&utm_source=plugins-admin-page&utm_campaign=plugins-admin-uri
5
  * Description: A drag and drop frontend WordPress page builder plugin that works with almost any theme!
6
+ * Version: 2.1.4.2
7
  * Author: The Beaver Builder Team
8
  * Author URI: https://www.wpbeaverbuilder.com/?utm_medium=bb&utm_source=plugins-admin-page&utm_campaign=plugins-admin-author
9
  * Copyright: (c) 2014 Beaver Builder
includes/updater-config.php CHANGED
@@ -3,7 +3,7 @@
3
  if ( class_exists( 'FLUpdater' ) ) {
4
  FLUpdater::add_product(array(
5
  'name' => 'Beaver Builder Plugin (Lite Version)',
6
- 'version' => '2.1.4.1',
7
  'slug' => 'bb-plugin',
8
  'type' => 'plugin',
9
  ));
3
  if ( class_exists( 'FLUpdater' ) ) {
4
  FLUpdater::add_product(array(
5
  'name' => 'Beaver Builder Plugin (Lite Version)',
6
+ 'version' => '2.1.4.2',
7
  'slug' => 'bb-plugin',
8
  'type' => 'plugin',
9
  ));
js/build/builder.bundle.js CHANGED
@@ -60,7 +60,7 @@
60
  /******/ __webpack_require__.p = "";
61
  /******/
62
  /******/ // Load entry module and return exports
63
- /******/ return __webpack_require__(__webpack_require__.s = 12);
64
  /******/ })
65
  /************************************************************************/
66
  /******/ ([
@@ -261,9 +261,9 @@ process.umask = function() { return 0; };
261
  /* WEBPACK VAR INJECTION */(function(process) {
262
 
263
  if (process.env.NODE_ENV === 'production') {
264
- module.exports = __webpack_require__(13);
265
- } else {
266
  module.exports = __webpack_require__(14);
 
 
267
  }
268
 
269
  /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
@@ -314,6 +314,90 @@ module.exports = emptyFunction;
314
  /* 3 */
315
  /***/ (function(module, exports, __webpack_require__) {
316
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
317
  "use strict";
318
  /*
319
  object-assign
@@ -407,90 +491,6 @@ module.exports = shouldUseNative() ? Object.assign : function (target, source) {
407
  };
408
 
409
 
410
- /***/ }),
411
- /* 4 */
412
- /***/ (function(module, exports, __webpack_require__) {
413
-
414
- "use strict";
415
- /* WEBPACK VAR INJECTION */(function(process) {/**
416
- * Copyright (c) 2013-present, Facebook, Inc.
417
- *
418
- * This source code is licensed under the MIT license found in the
419
- * LICENSE file in the root directory of this source tree.
420
- *
421
- */
422
-
423
-
424
-
425
- /**
426
- * Use invariant() to assert state which your program assumes to be true.
427
- *
428
- * Provide sprintf-style format (only %s is supported) and arguments
429
- * to provide information about what broke and what you were
430
- * expecting.
431
- *
432
- * The invariant message will be stripped in production, but the invariant
433
- * will remain to ensure logic does not differ in production.
434
- */
435
-
436
- var validateFormat = function validateFormat(format) {};
437
-
438
- if (process.env.NODE_ENV !== 'production') {
439
- validateFormat = function validateFormat(format) {
440
- if (format === undefined) {
441
- throw new Error('invariant requires an error message argument');
442
- }
443
- };
444
- }
445
-
446
- function invariant(condition, format, a, b, c, d, e, f) {
447
- validateFormat(format);
448
-
449
- if (!condition) {
450
- var error;
451
- if (format === undefined) {
452
- error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');
453
- } else {
454
- var args = [a, b, c, d, e, f];
455
- var argIndex = 0;
456
- error = new Error(format.replace(/%s/g, function () {
457
- return args[argIndex++];
458
- }));
459
- error.name = 'Invariant Violation';
460
- }
461
-
462
- error.framesToPop = 1; // we don't care about invariant's own frame
463
- throw error;
464
- }
465
- }
466
-
467
- module.exports = invariant;
468
- /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
469
-
470
- /***/ }),
471
- /* 5 */
472
- /***/ (function(module, exports, __webpack_require__) {
473
-
474
- "use strict";
475
- /* WEBPACK VAR INJECTION */(function(process) {/**
476
- * Copyright (c) 2013-present, Facebook, Inc.
477
- *
478
- * This source code is licensed under the MIT license found in the
479
- * LICENSE file in the root directory of this source tree.
480
- *
481
- */
482
-
483
-
484
-
485
- var emptyObject = {};
486
-
487
- if (process.env.NODE_ENV !== 'production') {
488
- Object.freeze(emptyObject);
489
- }
490
-
491
- module.exports = emptyObject;
492
- /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
493
-
494
  /***/ }),
495
  /* 6 */
496
  /***/ (function(module, exports, __webpack_require__) {
@@ -577,7 +577,7 @@ module.exports = warning;
577
  var printWarning = function() {};
578
 
579
  if (process.env.NODE_ENV !== 'production') {
580
- var ReactPropTypesSecret = __webpack_require__(15);
581
  var loggedTypeFailures = {};
582
 
583
  printWarning = function(text) {
@@ -702,6 +702,103 @@ module.exports = ExecutionEnvironment;
702
  /* 9 */
703
  /***/ (function(module, exports, __webpack_require__) {
704
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
705
  "use strict";
706
 
707
 
@@ -741,7 +838,7 @@ function getActiveElement(doc) /*?DOMElement*/{
741
  module.exports = getActiveElement;
742
 
743
  /***/ }),
744
- /* 10 */
745
  /***/ (function(module, exports, __webpack_require__) {
746
 
747
  "use strict";
@@ -812,7 +909,7 @@ function shallowEqual(objA, objB) {
812
  module.exports = shallowEqual;
813
 
814
  /***/ }),
815
- /* 11 */
816
  /***/ (function(module, exports, __webpack_require__) {
817
 
818
  "use strict";
@@ -827,7 +924,7 @@ module.exports = shallowEqual;
827
  *
828
  */
829
 
830
- var isTextNode = __webpack_require__(18);
831
 
832
  /*eslint-disable no-bitwise */
833
 
@@ -855,7 +952,7 @@ function containsNode(outerNode, innerNode) {
855
  module.exports = containsNode;
856
 
857
  /***/ }),
858
- /* 12 */
859
  /***/ (function(module, exports, __webpack_require__) {
860
 
861
  "use strict";
@@ -865,19 +962,19 @@ var _react = __webpack_require__(1);
865
 
866
  var _react2 = _interopRequireDefault(_react);
867
 
868
- var _reactDom = __webpack_require__(16);
869
 
870
  var _reactDom2 = _interopRequireDefault(_reactDom);
871
 
872
- var _errorBoundary = __webpack_require__(25);
873
 
874
  var _errorBoundary2 = _interopRequireDefault(_errorBoundary);
875
 
876
- var _ui = __webpack_require__(26);
877
 
878
  var _ui2 = _interopRequireDefault(_ui);
879
 
880
- __webpack_require__(31);
881
 
882
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
883
 
@@ -888,7 +985,7 @@ _reactDom2.default.render(_react2.default.createElement(
888
  ), document.getElementById('fl-ui-root'));
889
 
890
  /***/ }),
891
- /* 13 */
892
  /***/ (function(module, exports, __webpack_require__) {
893
 
894
  "use strict";
@@ -901,7 +998,7 @@ _reactDom2.default.render(_react2.default.createElement(
901
  * LICENSE file in the root directory of this source tree.
902
  */
903
 
904
- var k=__webpack_require__(3),n=__webpack_require__(4),p=__webpack_require__(5),q=__webpack_require__(2),r="function"===typeof Symbol&&Symbol.for,t=r?Symbol.for("react.element"):60103,u=r?Symbol.for("react.portal"):60106,v=r?Symbol.for("react.fragment"):60107,w=r?Symbol.for("react.strict_mode"):60108,x=r?Symbol.for("react.profiler"):60114,y=r?Symbol.for("react.provider"):60109,z=r?Symbol.for("react.context"):60110,A=r?Symbol.for("react.async_mode"):60111,B=
905
  r?Symbol.for("react.forward_ref"):60112;r&&Symbol.for("react.timeout");var C="function"===typeof Symbol&&Symbol.iterator;function D(a){for(var b=arguments.length-1,e="https://reactjs.org/docs/error-decoder.html?invariant="+a,c=0;c<b;c++)e+="&args[]="+encodeURIComponent(arguments[c+1]);n(!1,"Minified React error #"+a+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",e)}
906
  var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}};function F(a,b,e){this.props=a;this.context=b;this.refs=p;this.updater=e||E}F.prototype.isReactComponent={};F.prototype.setState=function(a,b){"object"!==typeof a&&"function"!==typeof a&&null!=a?D("85"):void 0;this.updater.enqueueSetState(this,a,b,"setState")};F.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")};function G(){}
907
  G.prototype=F.prototype;function H(a,b,e){this.props=a;this.context=b;this.refs=p;this.updater=e||E}var I=H.prototype=new G;I.constructor=H;k(I,F.prototype);I.isPureReactComponent=!0;var J={current:null},K=Object.prototype.hasOwnProperty,L={key:!0,ref:!0,__self:!0,__source:!0};
@@ -917,7 +1014,7 @@ assign:k}},Y={default:X},Z=Y&&X||Y;module.exports=Z.default?Z.default:Z;
917
 
918
 
919
  /***/ }),
920
- /* 14 */
921
  /***/ (function(module, exports, __webpack_require__) {
922
 
923
  "use strict";
@@ -938,9 +1035,9 @@ if (process.env.NODE_ENV !== "production") {
938
  (function() {
939
  'use strict';
940
 
941
- var _assign = __webpack_require__(3);
942
- var invariant = __webpack_require__(4);
943
- var emptyObject = __webpack_require__(5);
944
  var warning = __webpack_require__(6);
945
  var emptyFunction = __webpack_require__(2);
946
  var checkPropTypes = __webpack_require__(7);
@@ -2411,7 +2508,7 @@ module.exports = react;
2411
  /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
2412
 
2413
  /***/ }),
2414
- /* 15 */
2415
  /***/ (function(module, exports, __webpack_require__) {
2416
 
2417
  "use strict";
@@ -2430,7 +2527,7 @@ module.exports = ReactPropTypesSecret;
2430
 
2431
 
2432
  /***/ }),
2433
- /* 16 */
2434
  /***/ (function(module, exports, __webpack_require__) {
2435
 
2436
  "use strict";
@@ -2468,15 +2565,15 @@ if (process.env.NODE_ENV === 'production') {
2468
  // DCE check should happen before ReactDOM bundle executes so that
2469
  // DevTools can report bad minification during injection.
2470
  checkDCE();
2471
- module.exports = __webpack_require__(17);
2472
  } else {
2473
- module.exports = __webpack_require__(20);
2474
  }
2475
 
2476
  /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
2477
 
2478
  /***/ }),
2479
- /* 17 */
2480
  /***/ (function(module, exports, __webpack_require__) {
2481
 
2482
  "use strict";
@@ -2492,7 +2589,7 @@ if (process.env.NODE_ENV === 'production') {
2492
  /*
2493
  Modernizr 3.0.0pre (Custom Build) | MIT
2494
  */
2495
- var aa=__webpack_require__(4),ba=__webpack_require__(1),m=__webpack_require__(8),p=__webpack_require__(3),v=__webpack_require__(2),da=__webpack_require__(9),ea=__webpack_require__(10),fa=__webpack_require__(11),ha=__webpack_require__(5);
2496
  function A(a){for(var b=arguments.length-1,c="https://reactjs.org/docs/error-decoder.html?invariant="+a,d=0;d<b;d++)c+="&args[]="+encodeURIComponent(arguments[d+1]);aa(!1,"Minified React error #"+a+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",c)}ba?void 0:A("227");
2497
  function ia(a,b,c,d,e,f,g,h,k){this._hasCaughtError=!1;this._caughtError=null;var n=Array.prototype.slice.call(arguments,3);try{b.apply(c,n)}catch(r){this._caughtError=r,this._hasCaughtError=!0}}
2498
  var B={_caughtError:null,_hasCaughtError:!1,_rethrowError:null,_hasRethrowError:!1,invokeGuardedCallback:function(a,b,c,d,e,f,g,h,k){ia.apply(B,arguments)},invokeGuardedCallbackAndCatchFirstError:function(a,b,c,d,e,f,g,h,k){B.invokeGuardedCallback.apply(this,arguments);if(B.hasCaughtError()){var n=B.clearCaughtError();B._hasRethrowError||(B._hasRethrowError=!0,B._rethrowError=n)}},rethrowCaughtError:function(){return ka.apply(B,arguments)},hasCaughtError:function(){return B._hasCaughtError},clearCaughtError:function(){if(B._hasCaughtError){var a=
@@ -2723,7 +2820,7 @@ var Ai={default:vi},Bi=Ai&&vi||Ai;module.exports=Bi.default?Bi.default:Bi;
2723
 
2724
 
2725
  /***/ }),
2726
- /* 18 */
2727
  /***/ (function(module, exports, __webpack_require__) {
2728
 
2729
  "use strict";
@@ -2738,7 +2835,7 @@ var Ai={default:vi},Bi=Ai&&vi||Ai;module.exports=Bi.default?Bi.default:Bi;
2738
  * @typechecks
2739
  */
2740
 
2741
- var isNode = __webpack_require__(19);
2742
 
2743
  /**
2744
  * @param {*} object The object to check.
@@ -2751,7 +2848,7 @@ function isTextNode(object) {
2751
  module.exports = isTextNode;
2752
 
2753
  /***/ }),
2754
- /* 19 */
2755
  /***/ (function(module, exports, __webpack_require__) {
2756
 
2757
  "use strict";
@@ -2779,7 +2876,7 @@ function isNode(object) {
2779
  module.exports = isNode;
2780
 
2781
  /***/ }),
2782
- /* 20 */
2783
  /***/ (function(module, exports, __webpack_require__) {
2784
 
2785
  "use strict";
@@ -2800,19 +2897,19 @@ if (process.env.NODE_ENV !== "production") {
2800
  (function() {
2801
  'use strict';
2802
 
2803
- var invariant = __webpack_require__(4);
2804
  var React = __webpack_require__(1);
2805
  var warning = __webpack_require__(6);
2806
  var ExecutionEnvironment = __webpack_require__(8);
2807
- var _assign = __webpack_require__(3);
2808
  var emptyFunction = __webpack_require__(2);
2809
  var checkPropTypes = __webpack_require__(7);
2810
- var getActiveElement = __webpack_require__(9);
2811
- var shallowEqual = __webpack_require__(10);
2812
- var containsNode = __webpack_require__(11);
2813
- var emptyObject = __webpack_require__(5);
2814
- var hyphenateStyleName = __webpack_require__(21);
2815
- var camelizeStyleName = __webpack_require__(23);
2816
 
2817
  // Relying on the `invariant()` implementation lets us
2818
  // have preserve the format and params in the www builds.
@@ -20217,7 +20314,7 @@ module.exports = reactDom;
20217
  /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
20218
 
20219
  /***/ }),
20220
- /* 21 */
20221
  /***/ (function(module, exports, __webpack_require__) {
20222
 
20223
  "use strict";
@@ -20232,7 +20329,7 @@ module.exports = reactDom;
20232
 
20233
 
20234
 
20235
- var hyphenate = __webpack_require__(22);
20236
 
20237
  var msPattern = /^ms-/;
20238
 
@@ -20259,7 +20356,7 @@ function hyphenateStyleName(string) {
20259
  module.exports = hyphenateStyleName;
20260
 
20261
  /***/ }),
20262
- /* 22 */
20263
  /***/ (function(module, exports, __webpack_require__) {
20264
 
20265
  "use strict";
@@ -20295,7 +20392,7 @@ function hyphenate(string) {
20295
  module.exports = hyphenate;
20296
 
20297
  /***/ }),
20298
- /* 23 */
20299
  /***/ (function(module, exports, __webpack_require__) {
20300
 
20301
  "use strict";
@@ -20310,7 +20407,7 @@ module.exports = hyphenate;
20310
 
20311
 
20312
 
20313
- var camelize = __webpack_require__(24);
20314
 
20315
  var msPattern = /^-ms-/;
20316
 
@@ -20338,7 +20435,7 @@ function camelizeStyleName(string) {
20338
  module.exports = camelizeStyleName;
20339
 
20340
  /***/ }),
20341
- /* 24 */
20342
  /***/ (function(module, exports, __webpack_require__) {
20343
 
20344
  "use strict";
@@ -20373,7 +20470,7 @@ function camelize(string) {
20373
  module.exports = camelize;
20374
 
20375
  /***/ }),
20376
- /* 25 */
20377
  /***/ (function(module, exports, __webpack_require__) {
20378
 
20379
  "use strict";
@@ -20442,7 +20539,7 @@ var ErrorBoundary = function (_React$Component) {
20442
  exports.default = ErrorBoundary;
20443
 
20444
  /***/ }),
20445
- /* 26 */
20446
  /***/ (function(module, exports, __webpack_require__) {
20447
 
20448
  "use strict";
@@ -20458,11 +20555,11 @@ var _react = __webpack_require__(1);
20458
 
20459
  var _react2 = _interopRequireDefault(_react);
20460
 
20461
- var _inlineEditor = __webpack_require__(27);
20462
 
20463
  var _inlineEditor2 = _interopRequireDefault(_inlineEditor);
20464
 
20465
- var _notifications = __webpack_require__(29);
20466
 
20467
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
20468
 
@@ -20506,7 +20603,7 @@ var UI = function (_Component) {
20506
  exports.default = UI;
20507
 
20508
  /***/ }),
20509
- /* 27 */
20510
  /***/ (function(module, exports, __webpack_require__) {
20511
 
20512
  "use strict";
@@ -20520,7 +20617,7 @@ var _createClass = function () { function defineProperties(target, props) { for
20520
 
20521
  var _react = __webpack_require__(1);
20522
 
20523
- __webpack_require__(28);
20524
 
20525
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
20526
 
@@ -20657,8 +20754,12 @@ var InlineEditor = function (_Component) {
20657
  return 'continue';
20658
  }
20659
 
20660
- editable.data('field', data.field);
20661
- editable.on('drop', _this3.onEditorDrop.bind(_this3));
 
 
 
 
20662
 
20663
  tinymce.init({
20664
  selector: selector,
@@ -20727,20 +20828,6 @@ var InlineEditor = function (_Component) {
20727
  modules.removeClass('fl-editable');
20728
  overlays.remove();
20729
  extras.remove();
20730
-
20731
- editables.each(function (i, editable) {
20732
- var id = jQuery(editable).attr('id');
20733
-
20734
- /**
20735
- * Only destroy the editor if there are less than two on the page.
20736
- * There can be more than two when node duplication occurs.
20737
- */
20738
- if (jQuery('[id="' + id + '"]').length < 2) {
20739
- setTimeout(function () {
20740
- return tinymce.execCommand('mceRemoveEditor', true, id);
20741
- }, 1);
20742
- }
20743
- });
20744
  }
20745
  }, {
20746
  key: 'destroyAllEditables',
@@ -21008,13 +21095,13 @@ var InlineEditor = function (_Component) {
21008
  exports.default = InlineEditor;
21009
 
21010
  /***/ }),
21011
- /* 28 */
21012
  /***/ (function(module, exports) {
21013
 
21014
  // removed by extract-text-webpack-plugin
21015
 
21016
  /***/ }),
21017
- /* 29 */
21018
  /***/ (function(module, exports, __webpack_require__) {
21019
 
21020
  "use strict";
@@ -21031,7 +21118,7 @@ var _react = __webpack_require__(1);
21031
 
21032
  var _react2 = _interopRequireDefault(_react);
21033
 
21034
- __webpack_require__(30);
21035
 
21036
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
21037
 
@@ -21240,13 +21327,13 @@ var NotificationsManager = exports.NotificationsManager = function (_Component2)
21240
  }(_react.Component);
21241
 
21242
  /***/ }),
21243
- /* 30 */
21244
  /***/ (function(module, exports) {
21245
 
21246
  // removed by extract-text-webpack-plugin
21247
 
21248
  /***/ }),
21249
- /* 31 */
21250
  /***/ (function(module, exports) {
21251
 
21252
  // removed by extract-text-webpack-plugin
60
  /******/ __webpack_require__.p = "";
61
  /******/
62
  /******/ // Load entry module and return exports
63
+ /******/ return __webpack_require__(__webpack_require__.s = 13);
64
  /******/ })
65
  /************************************************************************/
66
  /******/ ([
261
  /* WEBPACK VAR INJECTION */(function(process) {
262
 
263
  if (process.env.NODE_ENV === 'production') {
 
 
264
  module.exports = __webpack_require__(14);
265
+ } else {
266
+ module.exports = __webpack_require__(15);
267
  }
268
 
269
  /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
314
  /* 3 */
315
  /***/ (function(module, exports, __webpack_require__) {
316
 
317
+ "use strict";
318
+ /* WEBPACK VAR INJECTION */(function(process) {/**
319
+ * Copyright (c) 2013-present, Facebook, Inc.
320
+ *
321
+ * This source code is licensed under the MIT license found in the
322
+ * LICENSE file in the root directory of this source tree.
323
+ *
324
+ */
325
+
326
+
327
+
328
+ /**
329
+ * Use invariant() to assert state which your program assumes to be true.
330
+ *
331
+ * Provide sprintf-style format (only %s is supported) and arguments
332
+ * to provide information about what broke and what you were
333
+ * expecting.
334
+ *
335
+ * The invariant message will be stripped in production, but the invariant
336
+ * will remain to ensure logic does not differ in production.
337
+ */
338
+
339
+ var validateFormat = function validateFormat(format) {};
340
+
341
+ if (process.env.NODE_ENV !== 'production') {
342
+ validateFormat = function validateFormat(format) {
343
+ if (format === undefined) {
344
+ throw new Error('invariant requires an error message argument');
345
+ }
346
+ };
347
+ }
348
+
349
+ function invariant(condition, format, a, b, c, d, e, f) {
350
+ validateFormat(format);
351
+
352
+ if (!condition) {
353
+ var error;
354
+ if (format === undefined) {
355
+ error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');
356
+ } else {
357
+ var args = [a, b, c, d, e, f];
358
+ var argIndex = 0;
359
+ error = new Error(format.replace(/%s/g, function () {
360
+ return args[argIndex++];
361
+ }));
362
+ error.name = 'Invariant Violation';
363
+ }
364
+
365
+ error.framesToPop = 1; // we don't care about invariant's own frame
366
+ throw error;
367
+ }
368
+ }
369
+
370
+ module.exports = invariant;
371
+ /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
372
+
373
+ /***/ }),
374
+ /* 4 */
375
+ /***/ (function(module, exports, __webpack_require__) {
376
+
377
+ "use strict";
378
+ /* WEBPACK VAR INJECTION */(function(process) {/**
379
+ * Copyright (c) 2013-present, Facebook, Inc.
380
+ *
381
+ * This source code is licensed under the MIT license found in the
382
+ * LICENSE file in the root directory of this source tree.
383
+ *
384
+ */
385
+
386
+
387
+
388
+ var emptyObject = {};
389
+
390
+ if (process.env.NODE_ENV !== 'production') {
391
+ Object.freeze(emptyObject);
392
+ }
393
+
394
+ module.exports = emptyObject;
395
+ /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
396
+
397
+ /***/ }),
398
+ /* 5 */
399
+ /***/ (function(module, exports, __webpack_require__) {
400
+
401
  "use strict";
402
  /*
403
  object-assign
491
  };
492
 
493
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
494
  /***/ }),
495
  /* 6 */
496
  /***/ (function(module, exports, __webpack_require__) {
577
  var printWarning = function() {};
578
 
579
  if (process.env.NODE_ENV !== 'production') {
580
+ var ReactPropTypesSecret = __webpack_require__(16);
581
  var loggedTypeFailures = {};
582
 
583
  printWarning = function(text) {
702
  /* 9 */
703
  /***/ (function(module, exports, __webpack_require__) {
704
 
705
+ "use strict";
706
+ /*
707
+ object-assign
708
+ (c) Sindre Sorhus
709
+ @license MIT
710
+ */
711
+
712
+
713
+ /* eslint-disable no-unused-vars */
714
+ var getOwnPropertySymbols = Object.getOwnPropertySymbols;
715
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
716
+ var propIsEnumerable = Object.prototype.propertyIsEnumerable;
717
+
718
+ function toObject(val) {
719
+ if (val === null || val === undefined) {
720
+ throw new TypeError('Object.assign cannot be called with null or undefined');
721
+ }
722
+
723
+ return Object(val);
724
+ }
725
+
726
+ function shouldUseNative() {
727
+ try {
728
+ if (!Object.assign) {
729
+ return false;
730
+ }
731
+
732
+ // Detect buggy property enumeration order in older V8 versions.
733
+
734
+ // https://bugs.chromium.org/p/v8/issues/detail?id=4118
735
+ var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
736
+ test1[5] = 'de';
737
+ if (Object.getOwnPropertyNames(test1)[0] === '5') {
738
+ return false;
739
+ }
740
+
741
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3056
742
+ var test2 = {};
743
+ for (var i = 0; i < 10; i++) {
744
+ test2['_' + String.fromCharCode(i)] = i;
745
+ }
746
+ var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
747
+ return test2[n];
748
+ });
749
+ if (order2.join('') !== '0123456789') {
750
+ return false;
751
+ }
752
+
753
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3056
754
+ var test3 = {};
755
+ 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
756
+ test3[letter] = letter;
757
+ });
758
+ if (Object.keys(Object.assign({}, test3)).join('') !==
759
+ 'abcdefghijklmnopqrst') {
760
+ return false;
761
+ }
762
+
763
+ return true;
764
+ } catch (err) {
765
+ // We don't expect any of the above to throw, but better to be safe.
766
+ return false;
767
+ }
768
+ }
769
+
770
+ module.exports = shouldUseNative() ? Object.assign : function (target, source) {
771
+ var from;
772
+ var to = toObject(target);
773
+ var symbols;
774
+
775
+ for (var s = 1; s < arguments.length; s++) {
776
+ from = Object(arguments[s]);
777
+
778
+ for (var key in from) {
779
+ if (hasOwnProperty.call(from, key)) {
780
+ to[key] = from[key];
781
+ }
782
+ }
783
+
784
+ if (getOwnPropertySymbols) {
785
+ symbols = getOwnPropertySymbols(from);
786
+ for (var i = 0; i < symbols.length; i++) {
787
+ if (propIsEnumerable.call(from, symbols[i])) {
788
+ to[symbols[i]] = from[symbols[i]];
789
+ }
790
+ }
791
+ }
792
+ }
793
+
794
+ return to;
795
+ };
796
+
797
+
798
+ /***/ }),
799
+ /* 10 */
800
+ /***/ (function(module, exports, __webpack_require__) {
801
+
802
  "use strict";
803
 
804
 
838
  module.exports = getActiveElement;
839
 
840
  /***/ }),
841
+ /* 11 */
842
  /***/ (function(module, exports, __webpack_require__) {
843
 
844
  "use strict";
909
  module.exports = shallowEqual;
910
 
911
  /***/ }),
912
+ /* 12 */
913
  /***/ (function(module, exports, __webpack_require__) {
914
 
915
  "use strict";
924
  *
925
  */
926
 
927
+ var isTextNode = __webpack_require__(19);
928
 
929
  /*eslint-disable no-bitwise */
930
 
952
  module.exports = containsNode;
953
 
954
  /***/ }),
955
+ /* 13 */
956
  /***/ (function(module, exports, __webpack_require__) {
957
 
958
  "use strict";
962
 
963
  var _react2 = _interopRequireDefault(_react);
964
 
965
+ var _reactDom = __webpack_require__(17);
966
 
967
  var _reactDom2 = _interopRequireDefault(_reactDom);
968
 
969
+ var _errorBoundary = __webpack_require__(26);
970
 
971
  var _errorBoundary2 = _interopRequireDefault(_errorBoundary);
972
 
973
+ var _ui = __webpack_require__(27);
974
 
975
  var _ui2 = _interopRequireDefault(_ui);
976
 
977
+ __webpack_require__(32);
978
 
979
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
980
 
985
  ), document.getElementById('fl-ui-root'));
986
 
987
  /***/ }),
988
+ /* 14 */
989
  /***/ (function(module, exports, __webpack_require__) {
990
 
991
  "use strict";
998
  * LICENSE file in the root directory of this source tree.
999
  */
1000
 
1001
+ var k=__webpack_require__(5),n=__webpack_require__(3),p=__webpack_require__(4),q=__webpack_require__(2),r="function"===typeof Symbol&&Symbol.for,t=r?Symbol.for("react.element"):60103,u=r?Symbol.for("react.portal"):60106,v=r?Symbol.for("react.fragment"):60107,w=r?Symbol.for("react.strict_mode"):60108,x=r?Symbol.for("react.profiler"):60114,y=r?Symbol.for("react.provider"):60109,z=r?Symbol.for("react.context"):60110,A=r?Symbol.for("react.async_mode"):60111,B=
1002
  r?Symbol.for("react.forward_ref"):60112;r&&Symbol.for("react.timeout");var C="function"===typeof Symbol&&Symbol.iterator;function D(a){for(var b=arguments.length-1,e="https://reactjs.org/docs/error-decoder.html?invariant="+a,c=0;c<b;c++)e+="&args[]="+encodeURIComponent(arguments[c+1]);n(!1,"Minified React error #"+a+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",e)}
1003
  var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}};function F(a,b,e){this.props=a;this.context=b;this.refs=p;this.updater=e||E}F.prototype.isReactComponent={};F.prototype.setState=function(a,b){"object"!==typeof a&&"function"!==typeof a&&null!=a?D("85"):void 0;this.updater.enqueueSetState(this,a,b,"setState")};F.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")};function G(){}
1004
  G.prototype=F.prototype;function H(a,b,e){this.props=a;this.context=b;this.refs=p;this.updater=e||E}var I=H.prototype=new G;I.constructor=H;k(I,F.prototype);I.isPureReactComponent=!0;var J={current:null},K=Object.prototype.hasOwnProperty,L={key:!0,ref:!0,__self:!0,__source:!0};
1014
 
1015
 
1016
  /***/ }),
1017
+ /* 15 */
1018
  /***/ (function(module, exports, __webpack_require__) {
1019
 
1020
  "use strict";
1035
  (function() {
1036
  'use strict';
1037
 
1038
+ var _assign = __webpack_require__(5);
1039
+ var invariant = __webpack_require__(3);
1040
+ var emptyObject = __webpack_require__(4);
1041
  var warning = __webpack_require__(6);
1042
  var emptyFunction = __webpack_require__(2);
1043
  var checkPropTypes = __webpack_require__(7);
2508
  /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
2509
 
2510
  /***/ }),
2511
+ /* 16 */
2512
  /***/ (function(module, exports, __webpack_require__) {
2513
 
2514
  "use strict";
2527
 
2528
 
2529
  /***/ }),
2530
+ /* 17 */
2531
  /***/ (function(module, exports, __webpack_require__) {
2532
 
2533
  "use strict";
2565
  // DCE check should happen before ReactDOM bundle executes so that
2566
  // DevTools can report bad minification during injection.
2567
  checkDCE();
2568
+ module.exports = __webpack_require__(18);
2569
  } else {
2570
+ module.exports = __webpack_require__(21);
2571
  }
2572
 
2573
  /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
2574
 
2575
  /***/ }),
2576
+ /* 18 */
2577
  /***/ (function(module, exports, __webpack_require__) {
2578
 
2579
  "use strict";
2589
  /*
2590
  Modernizr 3.0.0pre (Custom Build) | MIT
2591
  */
2592
+ var aa=__webpack_require__(3),ba=__webpack_require__(1),m=__webpack_require__(8),p=__webpack_require__(9),v=__webpack_require__(2),da=__webpack_require__(10),ea=__webpack_require__(11),fa=__webpack_require__(12),ha=__webpack_require__(4);
2593
  function A(a){for(var b=arguments.length-1,c="https://reactjs.org/docs/error-decoder.html?invariant="+a,d=0;d<b;d++)c+="&args[]="+encodeURIComponent(arguments[d+1]);aa(!1,"Minified React error #"+a+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",c)}ba?void 0:A("227");
2594
  function ia(a,b,c,d,e,f,g,h,k){this._hasCaughtError=!1;this._caughtError=null;var n=Array.prototype.slice.call(arguments,3);try{b.apply(c,n)}catch(r){this._caughtError=r,this._hasCaughtError=!0}}
2595
  var B={_caughtError:null,_hasCaughtError:!1,_rethrowError:null,_hasRethrowError:!1,invokeGuardedCallback:function(a,b,c,d,e,f,g,h,k){ia.apply(B,arguments)},invokeGuardedCallbackAndCatchFirstError:function(a,b,c,d,e,f,g,h,k){B.invokeGuardedCallback.apply(this,arguments);if(B.hasCaughtError()){var n=B.clearCaughtError();B._hasRethrowError||(B._hasRethrowError=!0,B._rethrowError=n)}},rethrowCaughtError:function(){return ka.apply(B,arguments)},hasCaughtError:function(){return B._hasCaughtError},clearCaughtError:function(){if(B._hasCaughtError){var a=
2820
 
2821
 
2822
  /***/ }),
2823
+ /* 19 */
2824
  /***/ (function(module, exports, __webpack_require__) {
2825
 
2826
  "use strict";
2835
  * @typechecks
2836
  */
2837
 
2838
+ var isNode = __webpack_require__(20);
2839
 
2840
  /**
2841
  * @param {*} object The object to check.
2848
  module.exports = isTextNode;
2849
 
2850
  /***/ }),
2851
+ /* 20 */
2852
  /***/ (function(module, exports, __webpack_require__) {
2853
 
2854
  "use strict";
2876
  module.exports = isNode;
2877
 
2878
  /***/ }),
2879
+ /* 21 */
2880
  /***/ (function(module, exports, __webpack_require__) {
2881
 
2882
  "use strict";
2897
  (function() {
2898
  'use strict';
2899
 
2900
+ var invariant = __webpack_require__(3);
2901
  var React = __webpack_require__(1);
2902
  var warning = __webpack_require__(6);
2903
  var ExecutionEnvironment = __webpack_require__(8);
2904
+ var _assign = __webpack_require__(9);
2905
  var emptyFunction = __webpack_require__(2);
2906
  var checkPropTypes = __webpack_require__(7);
2907
+ var getActiveElement = __webpack_require__(10);
2908
+ var shallowEqual = __webpack_require__(11);
2909
+ var containsNode = __webpack_require__(12);
2910
+ var emptyObject = __webpack_require__(4);
2911
+ var hyphenateStyleName = __webpack_require__(22);
2912
+ var camelizeStyleName = __webpack_require__(24);
2913
 
2914
  // Relying on the `invariant()` implementation lets us
2915
  // have preserve the format and params in the www builds.
20314
  /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
20315
 
20316
  /***/ }),
20317
+ /* 22 */
20318
  /***/ (function(module, exports, __webpack_require__) {
20319
 
20320
  "use strict";
20329
 
20330
 
20331
 
20332
+ var hyphenate = __webpack_require__(23);
20333
 
20334
  var msPattern = /^ms-/;
20335
 
20356
  module.exports = hyphenateStyleName;
20357
 
20358
  /***/ }),
20359
+ /* 23 */
20360
  /***/ (function(module, exports, __webpack_require__) {
20361
 
20362
  "use strict";
20392
  module.exports = hyphenate;
20393
 
20394
  /***/ }),
20395
+ /* 24 */
20396
  /***/ (function(module, exports, __webpack_require__) {
20397
 
20398
  "use strict";
20407
 
20408
 
20409
 
20410
+ var camelize = __webpack_require__(25);
20411
 
20412
  var msPattern = /^-ms-/;
20413
 
20435
  module.exports = camelizeStyleName;
20436
 
20437
  /***/ }),
20438
+ /* 25 */
20439
  /***/ (function(module, exports, __webpack_require__) {
20440
 
20441
  "use strict";
20470
  module.exports = camelize;
20471
 
20472
  /***/ }),
20473
+ /* 26 */
20474
  /***/ (function(module, exports, __webpack_require__) {
20475
 
20476
  "use strict";
20539
  exports.default = ErrorBoundary;
20540
 
20541
  /***/ }),
20542
+ /* 27 */
20543
  /***/ (function(module, exports, __webpack_require__) {
20544
 
20545
  "use strict";
20555
 
20556
  var _react2 = _interopRequireDefault(_react);
20557
 
20558
+ var _inlineEditor = __webpack_require__(28);
20559
 
20560
  var _inlineEditor2 = _interopRequireDefault(_inlineEditor);
20561
 
20562
+ var _notifications = __webpack_require__(30);
20563
 
20564
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
20565
 
20603
  exports.default = UI;
20604
 
20605
  /***/ }),
20606
+ /* 28 */
20607
  /***/ (function(module, exports, __webpack_require__) {
20608
 
20609
  "use strict";
20617
 
20618
  var _react = __webpack_require__(1);
20619
 
20620
+ __webpack_require__(29);
20621
 
20622
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
20623
 
20754
  return 'continue';
20755
  }
20756
 
20757
+ if (editable.hasClass('mce-content-body')) {
20758
+ tinymce.execCommand('mceRemoveEditor', true, editable.attr('id'));
20759
+ } else {
20760
+ editable.data('field', data.field);
20761
+ editable.on('drop', _this3.onEditorDrop.bind(_this3));
20762
+ }
20763
 
20764
  tinymce.init({
20765
  selector: selector,
20828
  modules.removeClass('fl-editable');
20829
  overlays.remove();
20830
  extras.remove();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20831
  }
20832
  }, {
20833
  key: 'destroyAllEditables',
21095
  exports.default = InlineEditor;
21096
 
21097
  /***/ }),
21098
+ /* 29 */
21099
  /***/ (function(module, exports) {
21100
 
21101
  // removed by extract-text-webpack-plugin
21102
 
21103
  /***/ }),
21104
+ /* 30 */
21105
  /***/ (function(module, exports, __webpack_require__) {
21106
 
21107
  "use strict";
21118
 
21119
  var _react2 = _interopRequireDefault(_react);
21120
 
21121
+ __webpack_require__(31);
21122
 
21123
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
21124
 
21327
  }(_react.Component);
21328
 
21329
  /***/ }),
21330
+ /* 31 */
21331
  /***/ (function(module, exports) {
21332
 
21333
  // removed by extract-text-webpack-plugin
21334
 
21335
  /***/ }),
21336
+ /* 32 */
21337
  /***/ (function(module, exports) {
21338
 
21339
  // removed by extract-text-webpack-plugin
js/build/builder.bundle.min.js CHANGED
@@ -24,4 +24,4 @@ object-assign
24
  (c) Sindre Sorhus
25
  @license MIT
26
  */
27
- var o=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,l,u=r(e),c=1;c<arguments.length;c++){n=Object(arguments[c]);for(var s in n)i.call(n,s)&&(u[s]=n[s]);if(o){l=o(n);for(var f=0;f<l.length;f++)a.call(n,l[f])&&(u[l[f]]=n[l[f]])}}return u}},function(e,t,n){"use strict";function r(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}e.exports=r},function(e,t,n){"use strict";function r(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!==e&&t!==t}function o(e,t){if(r(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(var a=0;a<n.length;a++)if(!i.call(t,n[a])||!r(e[n[a]],t[n[a]]))return!1;return!0}var i=Object.prototype.hasOwnProperty;e.exports=o},function(e,t,n){"use strict";function r(e,t){return!(!e||!t)&&(e===t||!o(e)&&(o(t)?r(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}var o=n(14);e.exports=r},function(e,t,n){"use strict";function r(e){return o(e)&&3==e.nodeType}var o=n(15);e.exports=r},function(e,t,n){"use strict";function r(e){var t=e?e.ownerDocument||e:document,n=t.defaultView||window;return!(!e||!("function"==typeof n.Node?e instanceof n.Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}e.exports=r},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(0),u=function(e){return e&&e.__esModule?e:{default:e}}(l),c=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={hasError:!1},n}return i(t,e),a(t,[{key:"componentDidCatch",value:function(e,t){this.setState({hasError:!0}),console.log("Builder UI Error:",e,t)}},{key:"render",value:function(){return this.state.hasError,this.props.children}}]),t}(u.default.Component);t.default=c},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),c=r(u),s=n(18),f=r(s),d=n(20),p=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),l(t,[{key:"render",value:function(){return c.default.createElement(u.Fragment,null,c.default.createElement(f.default,null),c.default.createElement(d.NotificationsManager,null))}}]),t}(u.Component);t.default=p},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(0);n(19);var u=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),i=n.props.postId;return n.layoutClass=".fl-builder-content-"+(i||FLBuilderConfig.postId),n}return i(t,e),a(t,[{key:"componentDidMount",value:function(){this.setupHooks=this.setupHooks.bind(this),this.hooked=!1,jQuery(document).on("tinymce-editor-init",this.setupHooks),this.setupHooks()}},{key:"setupHooks",value:function(){if(window.tinymce&&!this.hooked&&FLBuilderConfig.inlineEnabled){var e=this.setupEditables.bind(this),t=this.refreshEditables.bind(this),n=(this.destroyEditables.bind(this),this.destroyAllEditables.bind(this)),r=this.destroyLoadingEditables.bind(this);FLBuilder&&(FLBuilder.addHook("settingsConfigLoaded",e),FLBuilder.addHook("restartEditingSession",e),FLBuilder.addHook("endEditingSession",n),FLBuilder.addHook("didStartNodeLoading",r),FLBuilder.addHook("didRenderLayoutComplete",t),FLBuilder.addHook("didDeleteRow",t),FLBuilder.addHook("didDeleteColumn",t),FLBuilder.addHook("didDeleteModule",t)),this.setupEditables(),this.hooked=!0}}},{key:"setupEditables",value:function(){var e=this,t=FLBuilderSettingsConfig,n=t.editables,r=jQuery(this.layoutClass);if(r.length)for(var o in n){var i='.fl-module[data-type="'+o+'"]:not(.fl-editable):not(.fl-node-global)';r.find(i).each(function(t,n){return e.setupEditable(jQuery(n))})}}},{key:"setupEditable",value:function(e){var t=this,n=e.data("type"),r=e.data("node"),o=FLBuilderSettingsConfig.editables[n],i=".fl-node-"+r+" ",a="fl-inline-editor-"+r,l=jQuery('<div id="'+a+'" class="fl-inline-editor"></div>'),u=jQuery(".fl-builder-settings[data-node="+r+"]"),c=FLBuilderSettingsConfig.nodes[r];if(void 0===c)return!1;var s=c.connections;e.append(l),e.addClass("fl-editable"),e.delegate(".fl-block-overlay","click",this.onModuleOverlayClick.bind(this)),e.on("mouseleave",this.onModuleMouseleave.bind(this));for(var f in o){(function(e){var n=o[e],r=FLBuilderPreview.getFormattedSelector(i,n.selector),l=jQuery(r),c=l.html(),f=u.find("#fl-field-"+e+" .fl-field-connection-value");l.length&&(f.length&&""!==f.val()||(!f.length&&s&&s[e]||(l.data("field",n.field),l.on("drop",t.onEditorDrop.bind(t)),tinymce.init({selector:r,inline:!0,menubar:!1,skin:!FLBuilder&&"lightgray",skin_url:!FLBuilder&&tinyMCEPreInit.baseURL+"/skins/lightgray/",theme:"modern",theme_url:tinyMCEPreInit.baseURL+"/themes/modern/",fixed_toolbar_container:"#"+a,plugins:t.getEditorPluginConfig(n.field.type),toolbar:t.getEditorToolbarConfig(n.field.type),init_instance_callback:function(e){t.onEditorInit(e),l.html(c)}}))))})(f)}}},{key:"getEditorPluginConfig",value:function(e){switch(e){case"editor":return"wordpress, wplink, lists";default:return""}}},{key:"getEditorToolbarConfig",value:function(e){switch(e){case"editor":return"bold italic strikethrough link underline | alignleft aligncenter alignright";case"unit":return!1;default:return"bold italic strikethrough underline"}}},{key:"destroyEditables",value:function(e){var t=e.find(".mce-content-body"),n=e.find(".fl-inline-editor"),r=jQuery(".wplink-autocomplete, .ui-helper-hidden-accessible");t.removeAttr("contenteditable"),e.undelegate(".fl-block-overlay","click"),e.off("mouseleave"),e.removeClass("fl-editable"),n.remove(),r.remove(),t.each(function(e,t){var n=jQuery(t).attr("id");jQuery('[id="'+n+'"]').length<2&&setTimeout(function(){return tinymce.execCommand("mceRemoveEditor",!0,n)},1)})}},{key:"destroyAllEditables",value:function(){var e=jQuery(this.layoutClass),t=e.find(".fl-editable");this.destroyEditables(t)}},{key:"destroyLoadingEditables",value:function(e,t){var n=jQuery(t);n.hasClass("fl-module")||(n=n.find(".fl-module")),this.destroyEditables(n)}},{key:"refreshEditables",value:function(){this.setupEditables(),tinymce.editors.map(function(e,t){e.inline&&!jQuery("#"+e.id).length&&setTimeout(function(){return tinymce.execCommand("mceRemoveEditor",!0,e.id)},1)})}},{key:"getEditorEventVars",value:function(e){var t=jQuery(e).closest(".mce-content-body"),n=tinymce.get(t.attr("id")),r=t.data("field"),o=t.closest(".fl-module");return{editable:t,module:o,editor:n,field:r,nodeId:o.data("node")}}},{key:"onEditorInit",value:function(e){e.on("change",this.onEditorChange.bind(this)),e.on("keyup",this.onEditorChange.bind(this)),e.on("undo",this.onEditorChange.bind(this)),e.on("redo",this.onEditorChange.bind(this)),e.on("focus",this.onEditorFocus.bind(this)),e.on("blur",this.onEditorBlur.bind(this)),e.on("mousedown",this.onEditorMousedown.bind(this))}},{key:"onEditorChange",value:function(e){var t=e.target.bodyElement?e.target.bodyElement:e.target,n=this.getEditorEventVars(t),r=(n.editable,n.editor),o=n.field,i=n.nodeId,a=jQuery('.fl-builder-settings[data-node="'+i+'"]'),l=r.getContent();if(a.length)if("editor"===o.type){var u=a.find("#fl-field-"+o.name+" textarea.wp-editor-area"),c=u.attr("id");u.closest(".tmce-active").length?tinymce.get(c).setContent(l):u.val(l)}else{var s=document.createElement("textarea");s.innerHTML=l,a.find('[name="'+o.name+'"]').val(s.value)}}},{key:"onEditorFocus",value:function(e){var t=this.getEditorEventVars(e.target.bodyElement),n=t.editable,r=t.editor,o=t.module,i=t.field,a=t.nodeId,l=o.find(".fl-inline-editor"),u=this.getSettingHTML(a,i);this.matchHTML(r.getContent(),u)||(n.data("original",{settingHTML:u,editableHTML:n.html()}),n.css("min-height",n.height()),r.setContent(u),r.selection.select(r.getBody(),!0),r.selection.collapse(!1)),r.settings.toolbar?l.removeClass("fl-inline-editor-no-toolbar"):l.addClass("fl-inline-editor-no-toolbar"),o.addClass("fl-editable-focused"),this.showEditorOverlay(o),this.showModuleSettings(o)}},{key:"onEditorBlur",value:function(e){var t=this.getEditorEventVars(e.target.bodyElement),n=t.editable,r=t.editor,o=t.module,i=o.find(".fl-inline-editor"),a=n.data("original");i.removeClass("fl-inline-editor-no-toolbar"),o.removeClass("fl-editable-focused"),a&&this.matchHTML(r.getContent(),a.settingHTML)&&(n.html(a.editableHTML),n.css("min-height",""))}},{key:"onEditorMousedown",value:function(e){var t=this.getEditorEventVars(e.target),n=t.module;this.showEditorOverlay(n)}},{key:"onEditorDrop",value:function(e){return e.preventDefault(),!1}},{key:"onModuleOverlayClick",value:function(e){var t=jQuery(e.target).closest(".fl-block-overlay-actions"),n=jQuery(e.currentTarget).closest(".fl-module"),r=n.find(".mce-content-body").first().attr("id");t.length||FLBuilder._colResizing||r&&(tinymce.get(r).focus(),n.addClass("fl-editable-focused"))}},{key:"onModuleMouseleave",value:function(e){jQuery(".mce-inline-toolbar-grp:visible, .mce-floatpanel:visible").length||(this.hideEditorOverlays(),this.showNodeOverlays())}},{key:"showEditorOverlay",value:function(e){var t=e.find(".fl-inline-editor");this.hideNodeOverlays(),this.hideEditorOverlays(),t.show(),jQuery(".fl-inline-editor-active-toolbar").removeClass("fl-inline-editor-active-toolbar"),t.find("> .mce-panel:visible").addClass("fl-inline-editor-active-toolbar")}},{key:"hideEditorOverlays",value:function(){jQuery(".fl-inline-editor, .mce-floatpanel").hide()}},{key:"showNodeOverlays",value:function(){jQuery(".fl-block-overlay").show()}},{key:"hideNodeOverlays",value:function(){jQuery(".fl-block-overlay").hide()}},{key:"showModuleSettings",value:function(e){var t=e.data("type"),n=e.data("node"),r=e.closest(".fl-col").data("node"),o=e.hasClass("fl-node-global");jQuery('.fl-builder-settings[data-node="'+n+'"]').length||FLBuilder._showModuleSettings({type:t,nodeId:n,parentId:r,global:o})}},{key:"getSettingValue",value:function(e,t){var n=jQuery('.fl-builder-settings[data-node="'+e+'"]'),r={};return r=n.length?FLBuilder._getSettings(n):FLBuilderSettingsConfig.nodes[e],r[t]}},{key:"getSettingHTML",value:function(e,t){var n=this.getSettingValue(e,t.name);return"editor"===t.type&&""!==n?wp.editor.autop(n):n}},{key:"matchHTML",value:function(e,t){return this.cleanHTML(e)===this.cleanHTML(t)}},{key:"cleanHTML",value:function(e){var t=/(\r\n|\n|\r)/gm;return jQuery("<div>"+e+"</div>").html().trim().replace(t,"")}},{key:"render",value:function(){return null}}]),t}(l.Component);t.default=u},function(e,t){},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.NotificationsManager=void 0;var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(0),u=function(e){return e&&e.__esModule?e:{default:e}}(l);n(21);var c=function(e){return u.default.createElement("div",{dangerouslySetInnerHTML:{__html:e}})},s=FLBuilderConfig.lite,f=function(e){var t={__html:e.children},n=new Date(e.date).toDateString(),r=void 0;if("string"==typeof e.url&&""!==e.url){var o=s?e.url+"?utm_medium=bb-lite&utm_source=builder-ui&utm_campaign=notification-center":e.url+"?utm_medium=bb-pro&utm_source=builder-ui&utm_campaign=notification-center";r=u.default.createElement("a",{className:"fl-builder-ui-post",href:o,target:"_blank",rel:"noopener"},u.default.createElement("div",{className:"fl-builder-ui-post-date"},n),u.default.createElement("div",{className:"fl-builder-ui-post-title"},e.title),u.default.createElement("div",{className:"fl-builder-ui-post-content",dangerouslySetInnerHTML:t}))}else r=u.default.createElement("span",{className:"fl-builder-ui-post"},u.default.createElement("div",{className:"fl-builder-ui-post-date"},n),u.default.createElement("div",{className:"fl-builder-ui-post-title"},e.title),u.default.createElement("div",{className:"fl-builder-ui-post-content",dangerouslySetInnerHTML:t}));return r},d=function(e){function t(e){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),a(t,[{key:"getPosts",value:function(e){var t=void 0,n=void 0,r=FLBuilderStrings.notifications;return e.length>0?(n=e.map(function(e){return u.default.createElement(f,{key:e.id,title:c(e.title.rendered),date:e.date,url:e.meta._fl_notification[0]},e.content.rendered)}),t=u.default.createElement(l.Fragment,null,n)):t=u.default.createElement("div",{className:"fl-panel-no-message"},r.none),t}},{key:"componentDidMount",value:function(){FLBuilder._initScrollbars()}},{key:"componentDidUpdate",value:function(){FLBuilder._initScrollbars()}},{key:"render",value:function(){var e=this.getPosts(this.props.posts),t=FLBuilderStrings.notifications;return u.default.createElement("div",{className:"fl-notifications-panel"},u.default.createElement("div",{className:"fl-panel-title"},t.title),u.default.createElement("div",{className:"fl-nanoscroller",ref:this.setupScroller},u.default.createElement("div",{className:"fl-nanoscroller-content"},e)))}}]),t}(l.Component);t.NotificationsManager=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),i="",a=FLBuilderConfig.notifications,l=(a.read,a.data);try{i=JSON.parse(l)}catch(e){i={}}return n.state={shouldShowNotifications:!1,posts:i},FLBuilder.addHook("toggleNotifications",n.onToggleNotifications.bind(n)),n}return i(t,e),a(t,[{key:"onToggleNotifications",value:function(){this.setState({shouldShowNotifications:!this.state.shouldShowNotifications})}},{key:"render",value:function(){var e=this.state,t=e.shouldShowNotifications,n=e.posts;return FLBuilder.triggerHook("notificationsLoaded"),u.default.createElement(l.Fragment,null,t&&u.default.createElement(d,{posts:n}))}}]),t}(l.Component)},function(e,t){},function(e,t){}]);
24
  (c) Sindre Sorhus
25
  @license MIT
26
  */
27
+ var o=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,l,u=r(e),c=1;c<arguments.length;c++){n=Object(arguments[c]);for(var s in n)i.call(n,s)&&(u[s]=n[s]);if(o){l=o(n);for(var f=0;f<l.length;f++)a.call(n,l[f])&&(u[l[f]]=n[l[f]])}}return u}},function(e,t,n){"use strict";function r(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}e.exports=r},function(e,t,n){"use strict";function r(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!==e&&t!==t}function o(e,t){if(r(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(var a=0;a<n.length;a++)if(!i.call(t,n[a])||!r(e[n[a]],t[n[a]]))return!1;return!0}var i=Object.prototype.hasOwnProperty;e.exports=o},function(e,t,n){"use strict";function r(e,t){return!(!e||!t)&&(e===t||!o(e)&&(o(t)?r(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}var o=n(14);e.exports=r},function(e,t,n){"use strict";function r(e){return o(e)&&3==e.nodeType}var o=n(15);e.exports=r},function(e,t,n){"use strict";function r(e){var t=e?e.ownerDocument||e:document,n=t.defaultView||window;return!(!e||!("function"==typeof n.Node?e instanceof n.Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}e.exports=r},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(0),u=function(e){return e&&e.__esModule?e:{default:e}}(l),c=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={hasError:!1},n}return i(t,e),a(t,[{key:"componentDidCatch",value:function(e,t){this.setState({hasError:!0}),console.log("Builder UI Error:",e,t)}},{key:"render",value:function(){return this.state.hasError,this.props.children}}]),t}(u.default.Component);t.default=c},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),c=r(u),s=n(18),f=r(s),d=n(20),p=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),l(t,[{key:"render",value:function(){return c.default.createElement(u.Fragment,null,c.default.createElement(f.default,null),c.default.createElement(d.NotificationsManager,null))}}]),t}(u.Component);t.default=p},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(0);n(19);var u=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),i=n.props.postId;return n.layoutClass=".fl-builder-content-"+(i||FLBuilderConfig.postId),n}return i(t,e),a(t,[{key:"componentDidMount",value:function(){this.setupHooks=this.setupHooks.bind(this),this.hooked=!1,jQuery(document).on("tinymce-editor-init",this.setupHooks),this.setupHooks()}},{key:"setupHooks",value:function(){if(window.tinymce&&!this.hooked&&FLBuilderConfig.inlineEnabled){var e=this.setupEditables.bind(this),t=this.refreshEditables.bind(this),n=(this.destroyEditables.bind(this),this.destroyAllEditables.bind(this)),r=this.destroyLoadingEditables.bind(this);FLBuilder&&(FLBuilder.addHook("settingsConfigLoaded",e),FLBuilder.addHook("restartEditingSession",e),FLBuilder.addHook("endEditingSession",n),FLBuilder.addHook("didStartNodeLoading",r),FLBuilder.addHook("didRenderLayoutComplete",t),FLBuilder.addHook("didDeleteRow",t),FLBuilder.addHook("didDeleteColumn",t),FLBuilder.addHook("didDeleteModule",t)),this.setupEditables(),this.hooked=!0}}},{key:"setupEditables",value:function(){var e=this,t=FLBuilderSettingsConfig,n=t.editables,r=jQuery(this.layoutClass);if(r.length)for(var o in n){var i='.fl-module[data-type="'+o+'"]:not(.fl-editable):not(.fl-node-global)';r.find(i).each(function(t,n){return e.setupEditable(jQuery(n))})}}},{key:"setupEditable",value:function(e){var t=this,n=e.data("type"),r=e.data("node"),o=FLBuilderSettingsConfig.editables[n],i=".fl-node-"+r+" ",a="fl-inline-editor-"+r,l=jQuery('<div id="'+a+'" class="fl-inline-editor"></div>'),u=jQuery(".fl-builder-settings[data-node="+r+"]"),c=FLBuilderSettingsConfig.nodes[r];if(void 0===c)return!1;var s=c.connections;e.append(l),e.addClass("fl-editable"),e.delegate(".fl-block-overlay","click",this.onModuleOverlayClick.bind(this)),e.on("mouseleave",this.onModuleMouseleave.bind(this));for(var f in o){(function(e){var n=o[e],r=FLBuilderPreview.getFormattedSelector(i,n.selector),l=jQuery(r),c=l.html(),f=u.find("#fl-field-"+e+" .fl-field-connection-value");l.length&&(f.length&&""!==f.val()||(!f.length&&s&&s[e]||(l.hasClass("mce-content-body")?tinymce.execCommand("mceRemoveEditor",!0,l.attr("id")):(l.data("field",n.field),l.on("drop",t.onEditorDrop.bind(t))),tinymce.init({selector:r,inline:!0,menubar:!1,skin:!FLBuilder&&"lightgray",skin_url:!FLBuilder&&tinyMCEPreInit.baseURL+"/skins/lightgray/",theme:"modern",theme_url:tinyMCEPreInit.baseURL+"/themes/modern/",fixed_toolbar_container:"#"+a,plugins:t.getEditorPluginConfig(n.field.type),toolbar:t.getEditorToolbarConfig(n.field.type),init_instance_callback:function(e){t.onEditorInit(e),l.html(c)}}))))})(f)}}},{key:"getEditorPluginConfig",value:function(e){switch(e){case"editor":return"wordpress, wplink, lists";default:return""}}},{key:"getEditorToolbarConfig",value:function(e){switch(e){case"editor":return"bold italic strikethrough link underline | alignleft aligncenter alignright";case"unit":return!1;default:return"bold italic strikethrough underline"}}},{key:"destroyEditables",value:function(e){var t=e.find(".mce-content-body"),n=e.find(".fl-inline-editor"),r=jQuery(".wplink-autocomplete, .ui-helper-hidden-accessible");t.removeAttr("contenteditable"),e.undelegate(".fl-block-overlay","click"),e.off("mouseleave"),e.removeClass("fl-editable"),n.remove(),r.remove()}},{key:"destroyAllEditables",value:function(){var e=jQuery(this.layoutClass),t=e.find(".fl-editable");this.destroyEditables(t)}},{key:"destroyLoadingEditables",value:function(e,t){var n=jQuery(t);n.hasClass("fl-module")||(n=n.find(".fl-module")),this.destroyEditables(n)}},{key:"refreshEditables",value:function(){this.setupEditables(),tinymce.editors.map(function(e,t){e.inline&&!jQuery("#"+e.id).length&&setTimeout(function(){return tinymce.execCommand("mceRemoveEditor",!0,e.id)},1)})}},{key:"getEditorEventVars",value:function(e){var t=jQuery(e).closest(".mce-content-body"),n=tinymce.get(t.attr("id")),r=t.data("field"),o=t.closest(".fl-module");return{editable:t,module:o,editor:n,field:r,nodeId:o.data("node")}}},{key:"onEditorInit",value:function(e){e.on("change",this.onEditorChange.bind(this)),e.on("keyup",this.onEditorChange.bind(this)),e.on("undo",this.onEditorChange.bind(this)),e.on("redo",this.onEditorChange.bind(this)),e.on("focus",this.onEditorFocus.bind(this)),e.on("blur",this.onEditorBlur.bind(this)),e.on("mousedown",this.onEditorMousedown.bind(this))}},{key:"onEditorChange",value:function(e){var t=e.target.bodyElement?e.target.bodyElement:e.target,n=this.getEditorEventVars(t),r=(n.editable,n.editor),o=n.field,i=n.nodeId,a=jQuery('.fl-builder-settings[data-node="'+i+'"]'),l=r.getContent();if(a.length)if("editor"===o.type){var u=a.find("#fl-field-"+o.name+" textarea.wp-editor-area"),c=u.attr("id");u.closest(".tmce-active").length?tinymce.get(c).setContent(l):u.val(l)}else{var s=document.createElement("textarea");s.innerHTML=l,a.find('[name="'+o.name+'"]').val(s.value)}}},{key:"onEditorFocus",value:function(e){var t=this.getEditorEventVars(e.target.bodyElement),n=t.editable,r=t.editor,o=t.module,i=t.field,a=t.nodeId,l=o.find(".fl-inline-editor"),u=this.getSettingHTML(a,i);this.matchHTML(r.getContent(),u)||(n.data("original",{settingHTML:u,editableHTML:n.html()}),n.css("min-height",n.height()),r.setContent(u),r.selection.select(r.getBody(),!0),r.selection.collapse(!1)),r.settings.toolbar?l.removeClass("fl-inline-editor-no-toolbar"):l.addClass("fl-inline-editor-no-toolbar"),o.addClass("fl-editable-focused"),this.showEditorOverlay(o),this.showModuleSettings(o)}},{key:"onEditorBlur",value:function(e){var t=this.getEditorEventVars(e.target.bodyElement),n=t.editable,r=t.editor,o=t.module,i=o.find(".fl-inline-editor"),a=n.data("original");i.removeClass("fl-inline-editor-no-toolbar"),o.removeClass("fl-editable-focused"),a&&this.matchHTML(r.getContent(),a.settingHTML)&&(n.html(a.editableHTML),n.css("min-height",""))}},{key:"onEditorMousedown",value:function(e){var t=this.getEditorEventVars(e.target),n=t.module;this.showEditorOverlay(n)}},{key:"onEditorDrop",value:function(e){return e.preventDefault(),!1}},{key:"onModuleOverlayClick",value:function(e){var t=jQuery(e.target).closest(".fl-block-overlay-actions"),n=jQuery(e.currentTarget).closest(".fl-module"),r=n.find(".mce-content-body").first().attr("id");t.length||FLBuilder._colResizing||r&&(tinymce.get(r).focus(),n.addClass("fl-editable-focused"))}},{key:"onModuleMouseleave",value:function(e){jQuery(".mce-inline-toolbar-grp:visible, .mce-floatpanel:visible").length||(this.hideEditorOverlays(),this.showNodeOverlays())}},{key:"showEditorOverlay",value:function(e){var t=e.find(".fl-inline-editor");this.hideNodeOverlays(),this.hideEditorOverlays(),t.show(),jQuery(".fl-inline-editor-active-toolbar").removeClass("fl-inline-editor-active-toolbar"),t.find("> .mce-panel:visible").addClass("fl-inline-editor-active-toolbar")}},{key:"hideEditorOverlays",value:function(){jQuery(".fl-inline-editor, .mce-floatpanel").hide()}},{key:"showNodeOverlays",value:function(){jQuery(".fl-block-overlay").show()}},{key:"hideNodeOverlays",value:function(){jQuery(".fl-block-overlay").hide()}},{key:"showModuleSettings",value:function(e){var t=e.data("type"),n=e.data("node"),r=e.closest(".fl-col").data("node"),o=e.hasClass("fl-node-global");jQuery('.fl-builder-settings[data-node="'+n+'"]').length||FLBuilder._showModuleSettings({type:t,nodeId:n,parentId:r,global:o})}},{key:"getSettingValue",value:function(e,t){var n=jQuery('.fl-builder-settings[data-node="'+e+'"]'),r={};return r=n.length?FLBuilder._getSettings(n):FLBuilderSettingsConfig.nodes[e],r[t]}},{key:"getSettingHTML",value:function(e,t){var n=this.getSettingValue(e,t.name);return"editor"===t.type&&""!==n?wp.editor.autop(n):n}},{key:"matchHTML",value:function(e,t){return this.cleanHTML(e)===this.cleanHTML(t)}},{key:"cleanHTML",value:function(e){var t=/(\r\n|\n|\r)/gm;return jQuery("<div>"+e+"</div>").html().trim().replace(t,"")}},{key:"render",value:function(){return null}}]),t}(l.Component);t.default=u},function(e,t){},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.NotificationsManager=void 0;var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(0),u=function(e){return e&&e.__esModule?e:{default:e}}(l);n(21);var c=function(e){return u.default.createElement("div",{dangerouslySetInnerHTML:{__html:e}})},s=FLBuilderConfig.lite,f=function(e){var t={__html:e.children},n=new Date(e.date).toDateString(),r=void 0;if("string"==typeof e.url&&""!==e.url){var o=s?e.url+"?utm_medium=bb-lite&utm_source=builder-ui&utm_campaign=notification-center":e.url+"?utm_medium=bb-pro&utm_source=builder-ui&utm_campaign=notification-center";r=u.default.createElement("a",{className:"fl-builder-ui-post",href:o,target:"_blank",rel:"noopener"},u.default.createElement("div",{className:"fl-builder-ui-post-date"},n),u.default.createElement("div",{className:"fl-builder-ui-post-title"},e.title),u.default.createElement("div",{className:"fl-builder-ui-post-content",dangerouslySetInnerHTML:t}))}else r=u.default.createElement("span",{className:"fl-builder-ui-post"},u.default.createElement("div",{className:"fl-builder-ui-post-date"},n),u.default.createElement("div",{className:"fl-builder-ui-post-title"},e.title),u.default.createElement("div",{className:"fl-builder-ui-post-content",dangerouslySetInnerHTML:t}));return r},d=function(e){function t(e){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),a(t,[{key:"getPosts",value:function(e){var t=void 0,n=void 0,r=FLBuilderStrings.notifications;return e.length>0?(n=e.map(function(e){return u.default.createElement(f,{key:e.id,title:c(e.title.rendered),date:e.date,url:e.meta._fl_notification[0]},e.content.rendered)}),t=u.default.createElement(l.Fragment,null,n)):t=u.default.createElement("div",{className:"fl-panel-no-message"},r.none),t}},{key:"componentDidMount",value:function(){FLBuilder._initScrollbars()}},{key:"componentDidUpdate",value:function(){FLBuilder._initScrollbars()}},{key:"render",value:function(){var e=this.getPosts(this.props.posts),t=FLBuilderStrings.notifications;return u.default.createElement("div",{className:"fl-notifications-panel"},u.default.createElement("div",{className:"fl-panel-title"},t.title),u.default.createElement("div",{className:"fl-nanoscroller",ref:this.setupScroller},u.default.createElement("div",{className:"fl-nanoscroller-content"},e)))}}]),t}(l.Component);t.NotificationsManager=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),i="",a=FLBuilderConfig.notifications,l=(a.read,a.data);try{i=JSON.parse(l)}catch(e){i={}}return n.state={shouldShowNotifications:!1,posts:i},FLBuilder.addHook("toggleNotifications",n.onToggleNotifications.bind(n)),n}return i(t,e),a(t,[{key:"onToggleNotifications",value:function(){this.setState({shouldShowNotifications:!this.state.shouldShowNotifications})}},{key:"render",value:function(){var e=this.state,t=e.shouldShowNotifications,n=e.posts;return FLBuilder.triggerHook("notificationsLoaded"),u.default.createElement(l.Fragment,null,t&&u.default.createElement(d,{posts:n}))}}]),t}(l.Component)},function(e,t){},function(e,t){}]);
js/build/components.bundle.js CHANGED
@@ -60,12 +60,12 @@
60
  /******/ __webpack_require__.p = "";
61
  /******/
62
  /******/ // Load entry module and return exports
63
- /******/ return __webpack_require__(__webpack_require__.s = 32);
64
  /******/ })
65
  /************************************************************************/
66
  /******/ ({
67
 
68
- /***/ 32:
69
  /***/ (function(module, exports, __webpack_require__) {
70
 
71
  "use strict";
60
  /******/ __webpack_require__.p = "";
61
  /******/
62
  /******/ // Load entry module and return exports
63
+ /******/ return __webpack_require__(__webpack_require__.s = 33);
64
  /******/ })
65
  /************************************************************************/
66
  /******/ ({
67
 
68
+ /***/ 33:
69
  /***/ (function(module, exports, __webpack_require__) {
70
 
71
  "use strict";
js/build/wp-editor.bundle.js CHANGED
@@ -60,24 +60,24 @@
60
  /******/ __webpack_require__.p = "";
61
  /******/
62
  /******/ // Load entry module and return exports
63
- /******/ return __webpack_require__(__webpack_require__.s = 33);
64
  /******/ })
65
  /************************************************************************/
66
  /******/ ({
67
 
68
- /***/ 33:
69
  /***/ (function(module, exports, __webpack_require__) {
70
 
71
  "use strict";
72
 
73
 
74
- __webpack_require__(34);
75
-
76
  __webpack_require__(35);
77
 
 
 
78
  /***/ }),
79
 
80
- /***/ 34:
81
  /***/ (function(module, exports, __webpack_require__) {
82
 
83
  "use strict";
@@ -201,7 +201,7 @@ addFilter('editPost.MoreMenu.tools', 'fl-builder/convert-to-builder/button', fun
201
 
202
  /***/ }),
203
 
204
- /***/ 35:
205
  /***/ (function(module, exports, __webpack_require__) {
206
 
207
  "use strict";
@@ -209,7 +209,7 @@ addFilter('editPost.MoreMenu.tools', 'fl-builder/convert-to-builder/button', fun
209
 
210
  var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
211
 
212
- __webpack_require__(36);
213
 
214
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
215
 
@@ -475,7 +475,7 @@ if (builder.access && builder.unrestricted || builder.enabled) {
475
 
476
  /***/ }),
477
 
478
- /***/ 36:
479
  /***/ (function(module, exports) {
480
 
481
  // removed by extract-text-webpack-plugin
60
  /******/ __webpack_require__.p = "";
61
  /******/
62
  /******/ // Load entry module and return exports
63
+ /******/ return __webpack_require__(__webpack_require__.s = 34);
64
  /******/ })
65
  /************************************************************************/
66
  /******/ ({
67
 
68
+ /***/ 34:
69
  /***/ (function(module, exports, __webpack_require__) {
70
 
71
  "use strict";
72
 
73
 
 
 
74
  __webpack_require__(35);
75
 
76
+ __webpack_require__(36);
77
+
78
  /***/ }),
79
 
80
+ /***/ 35:
81
  /***/ (function(module, exports, __webpack_require__) {
82
 
83
  "use strict";
201
 
202
  /***/ }),
203
 
204
+ /***/ 36:
205
  /***/ (function(module, exports, __webpack_require__) {
206
 
207
  "use strict";
209
 
210
  var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
211
 
212
+ __webpack_require__(37);
213
 
214
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
215
 
475
 
476
  /***/ }),
477
 
478
+ /***/ 37:
479
  /***/ (function(module, exports) {
480
 
481
  // removed by extract-text-webpack-plugin