| @@ -1,4 +1,5 @@ | ||
| 1 | +/*! elementor - v3.7.6 - 19-09-2022 */ | |
| 1 | 2 | /******/ (() => { // webpackBootstrap |
| 2 | 3 | /******/ var __webpack_modules__ = ({ |
| 3 | 4 | |
| 4 | 5 | /***/ "../modules/notes/assets/js/e-component.js": |
| @@ -10,45 +11,67 @@ | ||
| 10 | 11 | "use strict"; |
| 11 | 12 | |
| 12 | 13 | |
| 13 | 14 | var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); |
| 15 | + | |
| 14 | 16 | var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js"); |
| 17 | + | |
| 15 | 18 | Object.defineProperty(exports, "__esModule", ({ |
| 16 | 19 | value: true |
| 17 | 20 | })); |
| 18 | 21 | exports["default"] = void 0; |
| 22 | + | |
| 19 | 23 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 24 | + | |
| 20 | 25 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 26 | + | |
| 27 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 28 | + | |
| 21 | 29 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 30 | + | |
| 22 | 31 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 23 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 32 | + | |
| 24 | 33 | var modules = _interopRequireWildcard(__webpack_require__(/*! ./modules/ */ "../modules/notes/assets/js/modules/index.js")); |
| 34 | + | |
| 25 | 35 | var hooks = _interopRequireWildcard(__webpack_require__(/*! ./hooks/ */ "../modules/notes/assets/js/hooks/index.js")); |
| 26 | -function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); } | |
| 27 | -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } | |
| 28 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 29 | -var EComponent = exports["default"] = /*#__PURE__*/function (_$e$modules$Component) { | |
| 36 | + | |
| 37 | +function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } | |
| 38 | + | |
| 39 | +function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } | |
| 40 | + | |
| 41 | +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | |
| 42 | + | |
| 43 | +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | |
| 44 | + | |
| 45 | +var EComponent = /*#__PURE__*/function (_$e$modules$Component) { | |
| 46 | + (0, _inherits2.default)(EComponent, _$e$modules$Component); | |
| 47 | + | |
| 48 | + var _super = _createSuper(EComponent); | |
| 49 | + | |
| 30 | 50 | function EComponent(args) { |
| 31 | 51 | var _this; |
| 52 | + | |
| 32 | 53 | (0, _classCallCheck2.default)(this, EComponent); |
| 33 | - _this = _callSuper(this, EComponent, [args]); | |
| 54 | + _this = _super.call(this, args); | |
| 55 | + | |
| 34 | 56 | _this.loadModules(); |
| 57 | + | |
| 35 | 58 | return _this; |
| 36 | 59 | } |
| 37 | - | |
| 38 | 60 | /** |
| 39 | 61 | * @return {string} The namespace of the component |
| 40 | 62 | */ |
| 41 | - (0, _inherits2.default)(EComponent, _$e$modules$Component); | |
| 42 | - return (0, _createClass2.default)(EComponent, [{ | |
| 63 | + | |
| 64 | + | |
| 65 | + (0, _createClass2.default)(EComponent, [{ | |
| 43 | 66 | key: "getNamespace", |
| 44 | 67 | value: function getNamespace() { |
| 45 | 68 | return 'notes'; |
| 46 | 69 | } |
| 47 | - | |
| 48 | 70 | /** |
| 49 | 71 | * @return {*} All the hooks |
| 50 | 72 | */ |
| 73 | + | |
| 51 | 74 | }, { |
| 52 | 75 | key: "defaultHooks", |
| 53 | 76 | value: function defaultHooks() { |
| 54 | 77 | return this.importHooks(hooks); |
| @@ -60,10 +83,13 @@ | ||
| 60 | 83 | new modules[key](); |
| 61 | 84 | } |
| 62 | 85 | } |
| 63 | 86 | }]); |
| 87 | + return EComponent; | |
| 64 | 88 | }($e.modules.ComponentBase); |
| 65 | 89 | |
| 90 | +exports["default"] = EComponent; | |
| 91 | + | |
| 66 | 92 | /***/ }), |
| 67 | 93 | |
| 68 | 94 | /***/ "../modules/notes/assets/js/hooks/index.js": |
| 69 | 95 | /*!*************************************************!*\ |
| @@ -82,8 +108,9 @@ | ||
| 82 | 108 | get: function get() { |
| 83 | 109 | return _notesAddPanelMenuItem.NotesAddPanelMenuItem; |
| 84 | 110 | } |
| 85 | 111 | })); |
| 112 | + | |
| 86 | 113 | var _notesAddPanelMenuItem = __webpack_require__(/*! ./ui/panel/state-ready/notes-add-panel-menu-item */ "../modules/notes/assets/js/hooks/ui/panel/state-ready/notes-add-panel-menu-item.js"); |
| 87 | 114 | |
| 88 | 115 | /***/ }), |
| 89 | 116 | |
| @@ -97,26 +124,39 @@ | ||
| 97 | 124 | /* provided dependency */ var __ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["__"]; |
| 98 | 125 | |
| 99 | 126 | |
| 100 | 127 | var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); |
| 128 | + | |
| 101 | 129 | Object.defineProperty(exports, "__esModule", ({ |
| 102 | 130 | value: true |
| 103 | 131 | })); |
| 104 | 132 | exports["default"] = exports.NotesAddPanelMenuItem = void 0; |
| 133 | + | |
| 105 | 134 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 135 | + | |
| 106 | 136 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 137 | + | |
| 138 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 139 | + | |
| 107 | 140 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 141 | + | |
| 108 | 142 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 109 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 110 | -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } | |
| 111 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 112 | -var NotesAddPanelMenuItem = exports.NotesAddPanelMenuItem = /*#__PURE__*/function (_$e$modules$hookUI$Af) { | |
| 143 | + | |
| 144 | +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | |
| 145 | + | |
| 146 | +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | |
| 147 | + | |
| 148 | +var NotesAddPanelMenuItem = /*#__PURE__*/function (_$e$modules$hookUI$Af) { | |
| 149 | + (0, _inherits2.default)(NotesAddPanelMenuItem, _$e$modules$hookUI$Af); | |
| 150 | + | |
| 151 | + var _super = _createSuper(NotesAddPanelMenuItem); | |
| 152 | + | |
| 113 | 153 | function NotesAddPanelMenuItem() { |
| 114 | 154 | (0, _classCallCheck2.default)(this, NotesAddPanelMenuItem); |
| 115 | - return _callSuper(this, NotesAddPanelMenuItem, arguments); | |
| 155 | + return _super.apply(this, arguments); | |
| 116 | 156 | } |
| 117 | - (0, _inherits2.default)(NotesAddPanelMenuItem, _$e$modules$hookUI$Af); | |
| 118 | - return (0, _createClass2.default)(NotesAddPanelMenuItem, [{ | |
| 157 | + | |
| 158 | + (0, _createClass2.default)(NotesAddPanelMenuItem, [{ | |
| 119 | 159 | key: "getCommand", |
| 120 | 160 | value: function getCommand() { |
| 121 | 161 | return 'panel/state-ready'; |
| 122 | 162 | } |
| @@ -142,9 +182,9 @@ | ||
| 142 | 182 | inlineStart: '+10' |
| 143 | 183 | }, |
| 144 | 184 | targetElement: this.$el, |
| 145 | 185 | actionButton: { |
| 146 | - url: hasProAndNotConnected ? elementorProEditorConfig.urls.connect : elementor.config.promotions.notes.upgrade_url || 'https://go.elementor.com/go-pro-notes/', | |
| 186 | + url: hasProAndNotConnected ? elementorProEditorConfig.urls.connect : 'https://go.elementor.com/go-pro-notes/', | |
| 147 | 187 | text: hasProAndNotConnected ? __('Connect & Activate', 'elementor') : __('Upgrade', 'elementor') |
| 148 | 188 | } |
| 149 | 189 | }); |
| 150 | 190 | } |
| @@ -150,11 +190,15 @@ | ||
| 150 | 190 | } |
| 151 | 191 | }, 'navigate_from_page', 'finder'); |
| 152 | 192 | } |
| 153 | 193 | }]); |
| 194 | + return NotesAddPanelMenuItem; | |
| 154 | 195 | }($e.modules.hookUI.After); |
| 155 | -var _default = exports["default"] = NotesAddPanelMenuItem; | |
| 156 | 196 | |
| 197 | +exports.NotesAddPanelMenuItem = NotesAddPanelMenuItem; | |
| 198 | +var _default = NotesAddPanelMenuItem; | |
| 199 | +exports["default"] = _default; | |
| 200 | + | |
| 157 | 201 | /***/ }), |
| 158 | 202 | |
| 159 | 203 | /***/ "../modules/notes/assets/js/modules/context-menu/notes-context-menu.js": |
| 160 | 204 | /*!*****************************************************************************!*\ |
| @@ -166,26 +210,39 @@ | ||
| 166 | 210 | /* provided dependency */ var __ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["__"]; |
| 167 | 211 | |
| 168 | 212 | |
| 169 | 213 | var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); |
| 214 | + | |
| 170 | 215 | Object.defineProperty(exports, "__esModule", ({ |
| 171 | 216 | value: true |
| 172 | 217 | })); |
| 173 | 218 | exports["default"] = exports.NotesContextMenu = void 0; |
| 219 | + | |
| 174 | 220 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 221 | + | |
| 175 | 222 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 223 | + | |
| 224 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 225 | + | |
| 176 | 226 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 227 | + | |
| 177 | 228 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 178 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 179 | -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } | |
| 180 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 181 | -var NotesContextMenu = exports.NotesContextMenu = /*#__PURE__*/function (_elementorModules$edi) { | |
| 229 | + | |
| 230 | +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | |
| 231 | + | |
| 232 | +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | |
| 233 | + | |
| 234 | +var NotesContextMenu = /*#__PURE__*/function (_elementorModules$edi) { | |
| 235 | + (0, _inherits2.default)(NotesContextMenu, _elementorModules$edi); | |
| 236 | + | |
| 237 | + var _super = _createSuper(NotesContextMenu); | |
| 238 | + | |
| 182 | 239 | function NotesContextMenu() { |
| 183 | 240 | (0, _classCallCheck2.default)(this, NotesContextMenu); |
| 184 | - return _callSuper(this, NotesContextMenu, arguments); | |
| 241 | + return _super.apply(this, arguments); | |
| 185 | 242 | } |
| 186 | - (0, _inherits2.default)(NotesContextMenu, _elementorModules$edi); | |
| 187 | - return (0, _createClass2.default)(NotesContextMenu, [{ | |
| 243 | + | |
| 244 | + (0, _createClass2.default)(NotesContextMenu, [{ | |
| 188 | 245 | key: "onInit", |
| 189 | 246 | value: function onInit() { |
| 190 | 247 | this.contextMenuNotesGroup(); |
| 191 | 248 | } |
| @@ -192,14 +249,14 @@ | ||
| 192 | 249 | }, { |
| 193 | 250 | key: "contextMenuNotesGroup", |
| 194 | 251 | value: function contextMenuNotesGroup() { |
| 195 | 252 | var _this = this; |
| 253 | + | |
| 196 | 254 | var elTypes = ['widget', 'section', 'column', 'container']; |
| 197 | 255 | elTypes.forEach(function (type) { |
| 198 | 256 | elementor.hooks.addFilter("elements/".concat(type, "/contextMenuGroups"), _this.contextMenuAddGroup); |
| 199 | 257 | }); |
| 200 | 258 | } |
| 201 | - | |
| 202 | 259 | /** |
| 203 | 260 | * Append the 'Notes' context menu group |
| 204 | 261 | * |
| 205 | 262 | * @since 3.8.0 |
| @@ -206,8 +263,9 @@ | ||
| 206 | 263 | * |
| 207 | 264 | * @param {Array} groups |
| 208 | 265 | * @return {Array} The updated groups. |
| 209 | 266 | */ |
| 267 | + | |
| 210 | 268 | }, { |
| 211 | 269 | key: "contextMenuAddGroup", |
| 212 | 270 | value: function contextMenuAddGroup(groups) { |
| 213 | 271 | var deleteGroup = _.findWhere(groups, { |
| @@ -212,12 +270,15 @@ | ||
| 212 | 270 | value: function contextMenuAddGroup(groups) { |
| 213 | 271 | var deleteGroup = _.findWhere(groups, { |
| 214 | 272 | name: 'delete' |
| 215 | 273 | }); |
| 274 | + | |
| 216 | 275 | var deleteGroupIndex = groups.indexOf(deleteGroup); |
| 276 | + | |
| 217 | 277 | if (-1 === deleteGroupIndex) { |
| 218 | 278 | deleteGroupIndex = groups.length; |
| 219 | 279 | } |
| 280 | + | |
| 220 | 281 | groups.splice(deleteGroupIndex, 0, { |
| 221 | 282 | name: 'notes', |
| 222 | 283 | actions: [{ |
| 223 | 284 | name: 'open_notes', |
| @@ -222,9 +283,8 @@ | ||
| 222 | 283 | actions: [{ |
| 223 | 284 | name: 'open_notes', |
| 224 | 285 | title: __('Notes', 'elementor'), |
| 225 | 286 | shortcut: '<i class="eicon-pro-icon"></i>', |
| 226 | - promotionURL: 'https://go.elementor.com/go-pro-notes-context-menu/', | |
| 227 | 287 | isEnabled: function isEnabled() { |
| 228 | 288 | return false; |
| 229 | 289 | }, |
| 230 | 290 | callback: function callback() {} |
| @@ -232,11 +292,15 @@ | ||
| 232 | 292 | }); |
| 233 | 293 | return groups; |
| 234 | 294 | } |
| 235 | 295 | }]); |
| 296 | + return NotesContextMenu; | |
| 236 | 297 | }(elementorModules.editor.utils.Module); |
| 237 | -var _default = exports["default"] = NotesContextMenu; | |
| 238 | 298 | |
| 299 | +exports.NotesContextMenu = NotesContextMenu; | |
| 300 | +var _default = NotesContextMenu; | |
| 301 | +exports["default"] = _default; | |
| 302 | + | |
| 239 | 303 | /***/ }), |
| 240 | 304 | |
| 241 | 305 | /***/ "../modules/notes/assets/js/modules/index.js": |
| 242 | 306 | /*!***************************************************!*\ |
| @@ -255,12 +319,24 @@ | ||
| 255 | 319 | get: function get() { |
| 256 | 320 | return _notesContextMenu.NotesContextMenu; |
| 257 | 321 | } |
| 258 | 322 | })); |
| 323 | + | |
| 259 | 324 | var _notesContextMenu = __webpack_require__(/*! ./context-menu/notes-context-menu */ "../modules/notes/assets/js/modules/context-menu/notes-context-menu.js"); |
| 260 | 325 | |
| 261 | 326 | /***/ }), |
| 262 | 327 | |
| 328 | +/***/ "@wordpress/i18n": | |
| 329 | +/*!**************************!*\ | |
| 330 | + !*** external "wp.i18n" ***! | |
| 331 | + \**************************/ | |
| 332 | +/***/ ((module) => { | |
| 333 | + | |
| 334 | +"use strict"; | |
| 335 | +module.exports = wp.i18n; | |
| 336 | + | |
| 337 | +/***/ }), | |
| 338 | + | |
| 263 | 339 | /***/ "../node_modules/@babel/runtime/helpers/assertThisInitialized.js": |
| 264 | 340 | /*!***********************************************************************!*\ |
| 265 | 341 | !*** ../node_modules/@babel/runtime/helpers/assertThisInitialized.js ***! |
| 266 | 342 | \***********************************************************************/ |
| @@ -265,12 +341,16 @@ | ||
| 265 | 341 | !*** ../node_modules/@babel/runtime/helpers/assertThisInitialized.js ***! |
| 266 | 342 | \***********************************************************************/ |
| 267 | 343 | /***/ ((module) => { |
| 268 | 344 | |
| 269 | -function _assertThisInitialized(e) { | |
| 270 | - if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
| 271 | - return e; | |
| 345 | +function _assertThisInitialized(self) { | |
| 346 | + if (self === void 0) { | |
| 347 | + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
| 348 | + } | |
| 349 | + | |
| 350 | + return self; | |
| 272 | 351 | } |
| 352 | + | |
| 273 | 353 | module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 274 | 354 | |
| 275 | 355 | /***/ }), |
| 276 | 356 | |
| @@ -279,11 +359,14 @@ | ||
| 279 | 359 | !*** ../node_modules/@babel/runtime/helpers/classCallCheck.js ***! |
| 280 | 360 | \****************************************************************/ |
| 281 | 361 | /***/ ((module) => { |
| 282 | 362 | |
| 283 | -function _classCallCheck(a, n) { | |
| 284 | - if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); | |
| 363 | +function _classCallCheck(instance, Constructor) { | |
| 364 | + if (!(instance instanceof Constructor)) { | |
| 365 | + throw new TypeError("Cannot call a class as a function"); | |
| 366 | + } | |
| 285 | 367 | } |
| 368 | + | |
| 286 | 369 | module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 287 | 370 | |
| 288 | 371 | /***/ }), |
| 289 | 372 | |
| @@ -290,22 +373,29 @@ | ||
| 290 | 373 | /***/ "../node_modules/@babel/runtime/helpers/createClass.js": |
| 291 | 374 | /*!*************************************************************!*\ |
| 292 | 375 | !*** ../node_modules/@babel/runtime/helpers/createClass.js ***! |
| 293 | 376 | \*************************************************************/ |
| 294 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 377 | +/***/ ((module) => { | |
| 295 | 378 | |
| 296 | -var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/toPropertyKey.js"); | |
| 297 | -function _defineProperties(e, r) { | |
| 298 | - for (var t = 0; t < r.length; t++) { | |
| 299 | - var o = r[t]; | |
| 300 | - o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o); | |
| 379 | +function _defineProperties(target, props) { | |
| 380 | + for (var i = 0; i < props.length; i++) { | |
| 381 | + var descriptor = props[i]; | |
| 382 | + descriptor.enumerable = descriptor.enumerable || false; | |
| 383 | + descriptor.configurable = true; | |
| 384 | + if ("value" in descriptor) descriptor.writable = true; | |
| 385 | + Object.defineProperty(target, descriptor.key, descriptor); | |
| 301 | 386 | } |
| 302 | 387 | } |
| 303 | -function _createClass(e, r, t) { | |
| 304 | - return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { | |
| 305 | - writable: !1 | |
| 306 | - }), e; | |
| 388 | + | |
| 389 | +function _createClass(Constructor, protoProps, staticProps) { | |
| 390 | + if (protoProps) _defineProperties(Constructor.prototype, protoProps); | |
| 391 | + if (staticProps) _defineProperties(Constructor, staticProps); | |
| 392 | + Object.defineProperty(Constructor, "prototype", { | |
| 393 | + writable: false | |
| 394 | + }); | |
| 395 | + return Constructor; | |
| 307 | 396 | } |
| 397 | + | |
| 308 | 398 | module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 309 | 399 | |
| 310 | 400 | /***/ }), |
| 311 | 401 | |
| @@ -314,13 +404,15 @@ | ||
| 314 | 404 | !*** ../node_modules/@babel/runtime/helpers/getPrototypeOf.js ***! |
| 315 | 405 | \****************************************************************/ |
| 316 | 406 | /***/ ((module) => { |
| 317 | 407 | |
| 318 | -function _getPrototypeOf(t) { | |
| 319 | - return module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { | |
| 320 | - return t.__proto__ || Object.getPrototypeOf(t); | |
| 321 | - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _getPrototypeOf(t); | |
| 408 | +function _getPrototypeOf(o) { | |
| 409 | + module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { | |
| 410 | + return o.__proto__ || Object.getPrototypeOf(o); | |
| 411 | + }, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 412 | + return _getPrototypeOf(o); | |
| 322 | 413 | } |
| 414 | + | |
| 323 | 415 | module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 324 | 416 | |
| 325 | 417 | /***/ }), |
| 326 | 418 | |
| @@ -330,20 +422,27 @@ | ||
| 330 | 422 | \**********************************************************/ |
| 331 | 423 | /***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 332 | 424 | |
| 333 | 425 | var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js"); |
| 334 | -function _inherits(t, e) { | |
| 335 | - if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); | |
| 336 | - t.prototype = Object.create(e && e.prototype, { | |
| 426 | + | |
| 427 | +function _inherits(subClass, superClass) { | |
| 428 | + if (typeof superClass !== "function" && superClass !== null) { | |
| 429 | + throw new TypeError("Super expression must either be null or a function"); | |
| 430 | + } | |
| 431 | + | |
| 432 | + subClass.prototype = Object.create(superClass && superClass.prototype, { | |
| 337 | 433 | constructor: { |
| 338 | - value: t, | |
| 339 | - writable: !0, | |
| 340 | - configurable: !0 | |
| 434 | + value: subClass, | |
| 435 | + writable: true, | |
| 436 | + configurable: true | |
| 341 | 437 | } |
| 342 | - }), Object.defineProperty(t, "prototype", { | |
| 343 | - writable: !1 | |
| 344 | - }), e && setPrototypeOf(t, e); | |
| 438 | + }); | |
| 439 | + Object.defineProperty(subClass, "prototype", { | |
| 440 | + writable: false | |
| 441 | + }); | |
| 442 | + if (superClass) setPrototypeOf(subClass, superClass); | |
| 345 | 443 | } |
| 444 | + | |
| 346 | 445 | module.exports = _inherits, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 347 | 446 | |
| 348 | 447 | /***/ }), |
| 349 | 448 | |
| @@ -352,13 +451,14 @@ | ||
| 352 | 451 | !*** ../node_modules/@babel/runtime/helpers/interopRequireDefault.js ***! |
| 353 | 452 | \***********************************************************************/ |
| 354 | 453 | /***/ ((module) => { |
| 355 | 454 | |
| 356 | -function _interopRequireDefault(e) { | |
| 357 | - return e && e.__esModule ? e : { | |
| 358 | - "default": e | |
| 455 | +function _interopRequireDefault(obj) { | |
| 456 | + return obj && obj.__esModule ? obj : { | |
| 457 | + "default": obj | |
| 359 | 458 | }; |
| 360 | 459 | } |
| 460 | + | |
| 361 | 461 | module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 362 | 462 | |
| 363 | 463 | /***/ }), |
| 364 | 464 | |
| @@ -368,14 +468,21 @@ | ||
| 368 | 468 | \***************************************************************************/ |
| 369 | 469 | /***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 370 | 470 | |
| 371 | 471 | var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); |
| 472 | + | |
| 372 | 473 | var assertThisInitialized = __webpack_require__(/*! ./assertThisInitialized.js */ "../node_modules/@babel/runtime/helpers/assertThisInitialized.js"); |
| 373 | -function _possibleConstructorReturn(t, e) { | |
| 374 | - if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; | |
| 375 | - if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); | |
| 376 | - return assertThisInitialized(t); | |
| 474 | + | |
| 475 | +function _possibleConstructorReturn(self, call) { | |
| 476 | + if (call && (_typeof(call) === "object" || typeof call === "function")) { | |
| 477 | + return call; | |
| 478 | + } else if (call !== void 0) { | |
| 479 | + throw new TypeError("Derived constructors may only return object or undefined"); | |
| 480 | + } | |
| 481 | + | |
| 482 | + return assertThisInitialized(self); | |
| 377 | 483 | } |
| 484 | + | |
| 378 | 485 | module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 379 | 486 | |
| 380 | 487 | /***/ }), |
| 381 | 488 | |
| @@ -384,54 +491,20 @@ | ||
| 384 | 491 | !*** ../node_modules/@babel/runtime/helpers/setPrototypeOf.js ***! |
| 385 | 492 | \****************************************************************/ |
| 386 | 493 | /***/ ((module) => { |
| 387 | 494 | |
| 388 | -function _setPrototypeOf(t, e) { | |
| 389 | - return module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { | |
| 390 | - return t.__proto__ = e, t; | |
| 391 | - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _setPrototypeOf(t, e); | |
| 495 | +function _setPrototypeOf(o, p) { | |
| 496 | + module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { | |
| 497 | + o.__proto__ = p; | |
| 498 | + return o; | |
| 499 | + }, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 500 | + return _setPrototypeOf(o, p); | |
| 392 | 501 | } |
| 502 | + | |
| 393 | 503 | module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 394 | 504 | |
| 395 | 505 | /***/ }), |
| 396 | 506 | |
| 397 | -/***/ "../node_modules/@babel/runtime/helpers/toPrimitive.js": | |
| 398 | -/*!*************************************************************!*\ | |
| 399 | - !*** ../node_modules/@babel/runtime/helpers/toPrimitive.js ***! | |
| 400 | - \*************************************************************/ | |
| 401 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 402 | - | |
| 403 | -var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); | |
| 404 | -function toPrimitive(t, r) { | |
| 405 | - if ("object" != _typeof(t) || !t) return t; | |
| 406 | - var e = t[Symbol.toPrimitive]; | |
| 407 | - if (void 0 !== e) { | |
| 408 | - var i = e.call(t, r || "default"); | |
| 409 | - if ("object" != _typeof(i)) return i; | |
| 410 | - throw new TypeError("@@toPrimitive must return a primitive value."); | |
| 411 | - } | |
| 412 | - return ("string" === r ? String : Number)(t); | |
| 413 | -} | |
| 414 | -module.exports = toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 415 | - | |
| 416 | -/***/ }), | |
| 417 | - | |
| 418 | -/***/ "../node_modules/@babel/runtime/helpers/toPropertyKey.js": | |
| 419 | -/*!***************************************************************!*\ | |
| 420 | - !*** ../node_modules/@babel/runtime/helpers/toPropertyKey.js ***! | |
| 421 | - \***************************************************************/ | |
| 422 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 423 | - | |
| 424 | -var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); | |
| 425 | -var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ "../node_modules/@babel/runtime/helpers/toPrimitive.js"); | |
| 426 | -function toPropertyKey(t) { | |
| 427 | - var i = toPrimitive(t, "string"); | |
| 428 | - return "symbol" == _typeof(i) ? i : i + ""; | |
| 429 | -} | |
| 430 | -module.exports = toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 431 | - | |
| 432 | -/***/ }), | |
| 433 | - | |
| 434 | 507 | /***/ "../node_modules/@babel/runtime/helpers/typeof.js": |
| 435 | 508 | /*!********************************************************!*\ |
| 436 | 509 | !*** ../node_modules/@babel/runtime/helpers/typeof.js ***! |
| 437 | 510 | \********************************************************/ |
| @@ -436,30 +509,20 @@ | ||
| 436 | 509 | !*** ../node_modules/@babel/runtime/helpers/typeof.js ***! |
| 437 | 510 | \********************************************************/ |
| 438 | 511 | /***/ ((module) => { |
| 439 | 512 | |
| 440 | -function _typeof(o) { | |
| 513 | +function _typeof(obj) { | |
| 441 | 514 | "@babel/helpers - typeof"; |
| 442 | 515 | |
| 443 | - return module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { | |
| 444 | - return typeof o; | |
| 445 | - } : function (o) { | |
| 446 | - return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; | |
| 447 | - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof(o); | |
| 516 | + return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { | |
| 517 | + return typeof obj; | |
| 518 | + } : function (obj) { | |
| 519 | + return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; | |
| 520 | + }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj); | |
| 448 | 521 | } |
| 522 | + | |
| 449 | 523 | module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 450 | 524 | |
| 451 | -/***/ }), | |
| 452 | - | |
| 453 | -/***/ "@wordpress/i18n": | |
| 454 | -/*!**************************!*\ | |
| 455 | - !*** external "wp.i18n" ***! | |
| 456 | - \**************************/ | |
| 457 | -/***/ ((module) => { | |
| 458 | - | |
| 459 | -"use strict"; | |
| 460 | -module.exports = wp.i18n; | |
| 461 | - | |
| 462 | 525 | /***/ }) |
| 463 | 526 | |
| 464 | 527 | /******/ }); |
| 465 | 528 | /************************************************************************/ |
| @@ -488,9 +551,9 @@ | ||
| 488 | 551 | /******/ } |
| 489 | 552 | /******/ |
| 490 | 553 | /************************************************************************/ |
| 491 | 554 | var __webpack_exports__ = {}; |
| 492 | -// This entry needs to be wrapped in an IIFE because it needs to be in strict mode. | |
| 555 | +// This entry need to be wrapped in an IIFE because it need to be in strict mode. | |
| 493 | 556 | (() => { |
| 494 | 557 | "use strict"; |
| 495 | 558 | /*!*******************************************!*\ |
| 496 | 559 | !*** ../modules/notes/assets/js/notes.js ***! |
| @@ -497,9 +560,11 @@ | ||
| 497 | 560 | \*******************************************/ |
| 498 | 561 | |
| 499 | 562 | |
| 500 | 563 | var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); |
| 564 | + | |
| 501 | 565 | var _eComponent = _interopRequireDefault(__webpack_require__(/*! ./e-component */ "../modules/notes/assets/js/e-component.js")); |
| 566 | + | |
| 502 | 567 | window.top.$e.components.register(new _eComponent.default()); |
| 503 | 568 | })(); |
| 504 | 569 | |
| 505 | 570 | /******/ })() |