| @@ -1,130 +1,951 @@ | ||
| 1 | -(function(_wordpress_i18n) { | |
| 1 | +/*! elementor - v3.2.5 - 29-06-2021 */ | |
| 2 | +/******/ (() => { // webpackBootstrap | |
| 3 | +/******/ var __webpack_modules__ = ({ | |
| 2 | 4 | |
| 3 | -//#region \0rolldown/runtime.js | |
| 4 | - var __defProp = Object.defineProperty; | |
| 5 | - var __name = (target, value) => __defProp(target, "name", { | |
| 6 | - value, | |
| 7 | - configurable: true | |
| 8 | - }); | |
| 5 | +/***/ "../node_modules/core-js/modules/_a-function.js": | |
| 6 | +/*!******************************************************!*\ | |
| 7 | + !*** ../node_modules/core-js/modules/_a-function.js ***! | |
| 8 | + \******************************************************/ | |
| 9 | +/*! unknown exports (runtime-defined) */ | |
| 10 | +/*! runtime requirements: module */ | |
| 11 | +/*! CommonJS bailout: module.exports is used directly at 1:0-14 */ | |
| 12 | +/***/ ((module) => { | |
| 9 | 13 | |
| 10 | -//#endregion | |
| 14 | +module.exports = function (it) { | |
| 15 | + if (typeof it != 'function') throw TypeError(it + ' is not a function!'); | |
| 16 | + return it; | |
| 17 | +}; | |
| 11 | 18 | |
| 12 | -//#region assets/dev/js/admin/gutenberg.js | |
| 13 | - (function($) { | |
| 14 | - "use strict"; | |
| 15 | - var ElementorGutenbergApp = { | |
| 16 | - cacheElements: function cacheElements() { | |
| 17 | - var self = this; | |
| 18 | - self.isElementorMode = ElementorGutenbergSettings.isElementorMode; | |
| 19 | - self.cache = {}; | |
| 20 | - self.cache.$gutenberg = $("#editor"); | |
| 21 | - self.cache.$switchMode = $($("#elementor-gutenberg-button-switch-mode").html()); | |
| 22 | - self.cache.$switchModeButton = self.cache.$switchMode.find("#elementor-switch-mode-button"); | |
| 23 | - self.bindEvents(); | |
| 24 | - self.toggleStatus(); | |
| 25 | - wp.data.subscribe(function() { | |
| 26 | - setTimeout(function() { | |
| 27 | - self.buildPanel(); | |
| 28 | - }, 1); | |
| 29 | - }); | |
| 30 | - }, | |
| 31 | - buildPanel: function buildPanel() { | |
| 32 | - var self = this; | |
| 33 | - if (!self.cache.$gutenberg.find("#elementor-switch-mode").length) self.cache.$gutenberg.find(".edit-post-header-toolbar").append(self.cache.$switchMode); | |
| 34 | - if (this.hasIframe()) this.handleIframe(); | |
| 35 | - if (!$("#elementor-editor").length) { | |
| 36 | - self.cache.$editorPanel = $($("#elementor-gutenberg-panel").html()); | |
| 37 | - var editorButtonParent = self.cache.$gutenberg.find(".block-editor-writing-flow"); | |
| 38 | - if (!editorButtonParent.length) editorButtonParent = self.cache.$gutenberg.find(".is-desktop-preview"); | |
| 39 | - self.cache.$gurenbergBlockList = editorButtonParent; | |
| 40 | - self.cache.$gurenbergBlockList.append(self.cache.$editorPanel); | |
| 41 | - self.cache.$editorPanelButton = self.cache.$editorPanel.find("#elementor-go-to-edit-page-link"); | |
| 42 | - self.cache.$editorPanelButton.on("click", function(event) { | |
| 43 | - event.preventDefault(); | |
| 44 | - self.handleEditButtonClick(); | |
| 45 | - }); | |
| 46 | - } | |
| 47 | - }, | |
| 48 | - handleIframe: function handleIframe() { | |
| 49 | - this.hideIframeContent(); | |
| 50 | - this.buildPanelTopBar(); | |
| 51 | - }, | |
| 52 | - hasIframe: function hasIframe() { | |
| 53 | - return !!this.cache.$gutenberg.find("iframe[name=\"editor-canvas\"]").length; | |
| 54 | - }, | |
| 55 | - hideIframeContent: function hideIframeContent() { | |
| 56 | - if (!this.isElementorMode) return; | |
| 57 | - this.cache.$gutenberg.find("iframe[name=\"editor-canvas\"]").contents().find("body").append("<style>\n .editor-post-text-editor,\n .block-editor-block-list__layout {\n display: none;\n }\n\n body {\n padding: 0 !important;\n }\n </style>"); | |
| 58 | - }, | |
| 59 | - buildPanelTopBar: function buildPanelTopBar() { | |
| 60 | - var self = this; | |
| 61 | - if (!$("#elementor-edit-mode-button").length && this.isElementorMode) { | |
| 62 | - self.cache.$editorBtnTop = $($("#elementor-gutenberg-button-tmpl").html()); | |
| 63 | - self.cache.$gutenberg.find(".edit-post-header-toolbar").append(self.cache.$editorBtnTop); | |
| 64 | - $("#elementor-edit-mode-button").on("click", function(event) { | |
| 65 | - event.preventDefault(); | |
| 66 | - self.handleEditButtonClick(false); | |
| 67 | - }); | |
| 68 | - } | |
| 69 | - }, | |
| 70 | - handleEditButtonClick: function handleEditButtonClick() { | |
| 71 | - var withAnimation = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : true; | |
| 72 | - var self = this; | |
| 73 | - if (withAnimation) self.animateLoader(); | |
| 74 | - if ("auto-draft" === wp.data.select("core/editor").getCurrentPost().status) { | |
| 75 | - if (!wp.data.select("core/editor").getEditedPostAttribute("title")) wp.data.dispatch("core/editor").editPost({ title: "Elementor #" + $("#post_ID").val() }); | |
| 76 | - wp.data.dispatch("core/editor").savePost(); | |
| 77 | - } | |
| 78 | - self.redirectWhenSave(); | |
| 79 | - }, | |
| 80 | - bindEvents: function bindEvents() { | |
| 81 | - var self = this; | |
| 82 | - self.cache.$switchModeButton.on("click", function() { | |
| 83 | - if (self.isElementorMode) elementorCommon.dialogsManager.createWidget("confirm", { | |
| 84 | - message: (0, _wordpress_i18n.__)("You are about to switch this page from the Elementor editor to the WordPress editor. Your current layout, design, and content may break and need to be rebuilt. Are you sure you want to continue?", "elementor"), | |
| 85 | - headerMessage: (0, _wordpress_i18n.__)("Edit with WordPress?", "elementor"), | |
| 86 | - strings: { | |
| 87 | - confirm: (0, _wordpress_i18n.__)("Continue", "elementor"), | |
| 88 | - cancel: (0, _wordpress_i18n.__)("Cancel", "elementor") | |
| 89 | - }, | |
| 90 | - defaultOption: "cancel", | |
| 91 | - onConfirm: function onConfirm() { | |
| 92 | - var wpEditor = wp.data.dispatch("core/editor"); | |
| 93 | - wpEditor.editPost({ gutenberg_elementor_mode: false }); | |
| 94 | - wpEditor.savePost(); | |
| 95 | - self.isElementorMode = !self.isElementorMode; | |
| 96 | - self.toggleStatus(); | |
| 97 | - } | |
| 98 | - }).show(); | |
| 99 | - else { | |
| 100 | - self.isElementorMode = !self.isElementorMode; | |
| 101 | - self.toggleStatus(); | |
| 102 | - self.cache.$editorPanelButton.trigger("click"); | |
| 103 | - } | |
| 104 | - }); | |
| 105 | - }, | |
| 106 | - redirectWhenSave: function redirectWhenSave() { | |
| 107 | - var self = this; | |
| 108 | - setTimeout(function() { | |
| 109 | - if (wp.data.select("core/editor").isSavingPost()) self.redirectWhenSave(); | |
| 110 | - else location.href = ElementorGutenbergSettings.editLink; | |
| 111 | - }, 300); | |
| 112 | - }, | |
| 113 | - animateLoader: function animateLoader() { | |
| 114 | - this.cache.$editorPanelButton.addClass("elementor-animate"); | |
| 115 | - }, | |
| 116 | - toggleStatus: function toggleStatus() { | |
| 117 | - jQuery("body").toggleClass("elementor-editor-active", this.isElementorMode).toggleClass("elementor-editor-inactive", !this.isElementorMode); | |
| 118 | - }, | |
| 119 | - init: function init() { | |
| 120 | - this.cacheElements(); | |
| 121 | - } | |
| 122 | - }; | |
| 123 | - $(function() { | |
| 124 | - ElementorGutenbergApp.init(); | |
| 125 | - }); | |
| 126 | - })(jQuery); | |
| 127 | 19 | |
| 128 | -//#endregion | |
| 129 | -})(wp.i18n); | |
| 20 | +/***/ }), | |
| 21 | + | |
| 22 | +/***/ "../node_modules/core-js/modules/_add-to-unscopables.js": | |
| 23 | +/*!**************************************************************!*\ | |
| 24 | + !*** ../node_modules/core-js/modules/_add-to-unscopables.js ***! | |
| 25 | + \**************************************************************/ | |
| 26 | +/*! unknown exports (runtime-defined) */ | |
| 27 | +/*! runtime requirements: module, __webpack_require__ */ | |
| 28 | +/*! CommonJS bailout: module.exports is used directly at 5:0-14 */ | |
| 29 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 30 | + | |
| 31 | +// 22.1.3.31 Array.prototype[@@unscopables] | |
| 32 | +var UNSCOPABLES = __webpack_require__(/*! ./_wks */ "../node_modules/core-js/modules/_wks.js")('unscopables'); | |
| 33 | +var ArrayProto = Array.prototype; | |
| 34 | +if (ArrayProto[UNSCOPABLES] == undefined) __webpack_require__(/*! ./_hide */ "../node_modules/core-js/modules/_hide.js")(ArrayProto, UNSCOPABLES, {}); | |
| 35 | +module.exports = function (key) { | |
| 36 | + ArrayProto[UNSCOPABLES][key] = true; | |
| 37 | +}; | |
| 38 | + | |
| 39 | + | |
| 40 | +/***/ }), | |
| 41 | + | |
| 42 | +/***/ "../node_modules/core-js/modules/_an-object.js": | |
| 43 | +/*!*****************************************************!*\ | |
| 44 | + !*** ../node_modules/core-js/modules/_an-object.js ***! | |
| 45 | + \*****************************************************/ | |
| 46 | +/*! unknown exports (runtime-defined) */ | |
| 47 | +/*! runtime requirements: module, __webpack_require__ */ | |
| 48 | +/*! CommonJS bailout: module.exports is used directly at 2:0-14 */ | |
| 49 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 50 | + | |
| 51 | +var isObject = __webpack_require__(/*! ./_is-object */ "../node_modules/core-js/modules/_is-object.js"); | |
| 52 | +module.exports = function (it) { | |
| 53 | + if (!isObject(it)) throw TypeError(it + ' is not an object!'); | |
| 54 | + return it; | |
| 55 | +}; | |
| 56 | + | |
| 57 | + | |
| 58 | +/***/ }), | |
| 59 | + | |
| 60 | +/***/ "../node_modules/core-js/modules/_array-methods.js": | |
| 61 | +/*!*********************************************************!*\ | |
| 62 | + !*** ../node_modules/core-js/modules/_array-methods.js ***! | |
| 63 | + \*********************************************************/ | |
| 64 | +/*! unknown exports (runtime-defined) */ | |
| 65 | +/*! runtime requirements: module, __webpack_require__ */ | |
| 66 | +/*! CommonJS bailout: module.exports is used directly at 13:0-14 */ | |
| 67 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 68 | + | |
| 69 | +// 0 -> Array#forEach | |
| 70 | +// 1 -> Array#map | |
| 71 | +// 2 -> Array#filter | |
| 72 | +// 3 -> Array#some | |
| 73 | +// 4 -> Array#every | |
| 74 | +// 5 -> Array#find | |
| 75 | +// 6 -> Array#findIndex | |
| 76 | +var ctx = __webpack_require__(/*! ./_ctx */ "../node_modules/core-js/modules/_ctx.js"); | |
| 77 | +var IObject = __webpack_require__(/*! ./_iobject */ "../node_modules/core-js/modules/_iobject.js"); | |
| 78 | +var toObject = __webpack_require__(/*! ./_to-object */ "../node_modules/core-js/modules/_to-object.js"); | |
| 79 | +var toLength = __webpack_require__(/*! ./_to-length */ "../node_modules/core-js/modules/_to-length.js"); | |
| 80 | +var asc = __webpack_require__(/*! ./_array-species-create */ "../node_modules/core-js/modules/_array-species-create.js"); | |
| 81 | +module.exports = function (TYPE, $create) { | |
| 82 | + var IS_MAP = TYPE == 1; | |
| 83 | + var IS_FILTER = TYPE == 2; | |
| 84 | + var IS_SOME = TYPE == 3; | |
| 85 | + var IS_EVERY = TYPE == 4; | |
| 86 | + var IS_FIND_INDEX = TYPE == 6; | |
| 87 | + var NO_HOLES = TYPE == 5 || IS_FIND_INDEX; | |
| 88 | + var create = $create || asc; | |
| 89 | + return function ($this, callbackfn, that) { | |
| 90 | + var O = toObject($this); | |
| 91 | + var self = IObject(O); | |
| 92 | + var f = ctx(callbackfn, that, 3); | |
| 93 | + var length = toLength(self.length); | |
| 94 | + var index = 0; | |
| 95 | + var result = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined; | |
| 96 | + var val, res; | |
| 97 | + for (;length > index; index++) if (NO_HOLES || index in self) { | |
| 98 | + val = self[index]; | |
| 99 | + res = f(val, index, O); | |
| 100 | + if (TYPE) { | |
| 101 | + if (IS_MAP) result[index] = res; // map | |
| 102 | + else if (res) switch (TYPE) { | |
| 103 | + case 3: return true; // some | |
| 104 | + case 5: return val; // find | |
| 105 | + case 6: return index; // findIndex | |
| 106 | + case 2: result.push(val); // filter | |
| 107 | + } else if (IS_EVERY) return false; // every | |
| 108 | + } | |
| 109 | + } | |
| 110 | + return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result; | |
| 111 | + }; | |
| 112 | +}; | |
| 113 | + | |
| 114 | + | |
| 115 | +/***/ }), | |
| 116 | + | |
| 117 | +/***/ "../node_modules/core-js/modules/_array-species-constructor.js": | |
| 118 | +/*!*********************************************************************!*\ | |
| 119 | + !*** ../node_modules/core-js/modules/_array-species-constructor.js ***! | |
| 120 | + \*********************************************************************/ | |
| 121 | +/*! unknown exports (runtime-defined) */ | |
| 122 | +/*! runtime requirements: module, __webpack_require__ */ | |
| 123 | +/*! CommonJS bailout: module.exports is used directly at 5:0-14 */ | |
| 124 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 125 | + | |
| 126 | +var isObject = __webpack_require__(/*! ./_is-object */ "../node_modules/core-js/modules/_is-object.js"); | |
| 127 | +var isArray = __webpack_require__(/*! ./_is-array */ "../node_modules/core-js/modules/_is-array.js"); | |
| 128 | +var SPECIES = __webpack_require__(/*! ./_wks */ "../node_modules/core-js/modules/_wks.js")('species'); | |
| 129 | + | |
| 130 | +module.exports = function (original) { | |
| 131 | + var C; | |
| 132 | + if (isArray(original)) { | |
| 133 | + C = original.constructor; | |
| 134 | + // cross-realm fallback | |
| 135 | + if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined; | |
| 136 | + if (isObject(C)) { | |
| 137 | + C = C[SPECIES]; | |
| 138 | + if (C === null) C = undefined; | |
| 139 | + } | |
| 140 | + } return C === undefined ? Array : C; | |
| 141 | +}; | |
| 142 | + | |
| 143 | + | |
| 144 | +/***/ }), | |
| 145 | + | |
| 146 | +/***/ "../node_modules/core-js/modules/_array-species-create.js": | |
| 147 | +/*!****************************************************************!*\ | |
| 148 | + !*** ../node_modules/core-js/modules/_array-species-create.js ***! | |
| 149 | + \****************************************************************/ | |
| 150 | +/*! unknown exports (runtime-defined) */ | |
| 151 | +/*! runtime requirements: module, __webpack_require__ */ | |
| 152 | +/*! CommonJS bailout: module.exports is used directly at 4:0-14 */ | |
| 153 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 154 | + | |
| 155 | +// 9.4.2.3 ArraySpeciesCreate(originalArray, length) | |
| 156 | +var speciesConstructor = __webpack_require__(/*! ./_array-species-constructor */ "../node_modules/core-js/modules/_array-species-constructor.js"); | |
| 157 | + | |
| 158 | +module.exports = function (original, length) { | |
| 159 | + return new (speciesConstructor(original))(length); | |
| 160 | +}; | |
| 161 | + | |
| 162 | + | |
| 163 | +/***/ }), | |
| 164 | + | |
| 165 | +/***/ "../node_modules/core-js/modules/_cof.js": | |
| 166 | +/*!***********************************************!*\ | |
| 167 | + !*** ../node_modules/core-js/modules/_cof.js ***! | |
| 168 | + \***********************************************/ | |
| 169 | +/*! unknown exports (runtime-defined) */ | |
| 170 | +/*! runtime requirements: module */ | |
| 171 | +/*! CommonJS bailout: module.exports is used directly at 3:0-14 */ | |
| 172 | +/***/ ((module) => { | |
| 173 | + | |
| 174 | +var toString = {}.toString; | |
| 175 | + | |
| 176 | +module.exports = function (it) { | |
| 177 | + return toString.call(it).slice(8, -1); | |
| 178 | +}; | |
| 179 | + | |
| 180 | + | |
| 181 | +/***/ }), | |
| 182 | + | |
| 183 | +/***/ "../node_modules/core-js/modules/_core.js": | |
| 184 | +/*!************************************************!*\ | |
| 185 | + !*** ../node_modules/core-js/modules/_core.js ***! | |
| 186 | + \************************************************/ | |
| 187 | +/*! unknown exports (runtime-defined) */ | |
| 188 | +/*! runtime requirements: module */ | |
| 189 | +/*! CommonJS bailout: module.exports is used directly at 1:11-25 */ | |
| 190 | +/***/ ((module) => { | |
| 191 | + | |
| 192 | +var core = module.exports = { version: '2.6.12' }; | |
| 193 | +if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef | |
| 194 | + | |
| 195 | + | |
| 196 | +/***/ }), | |
| 197 | + | |
| 198 | +/***/ "../node_modules/core-js/modules/_ctx.js": | |
| 199 | +/*!***********************************************!*\ | |
| 200 | + !*** ../node_modules/core-js/modules/_ctx.js ***! | |
| 201 | + \***********************************************/ | |
| 202 | +/*! unknown exports (runtime-defined) */ | |
| 203 | +/*! runtime requirements: module, __webpack_require__ */ | |
| 204 | +/*! CommonJS bailout: module.exports is used directly at 3:0-14 */ | |
| 205 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 206 | + | |
| 207 | +// optional / simple context binding | |
| 208 | +var aFunction = __webpack_require__(/*! ./_a-function */ "../node_modules/core-js/modules/_a-function.js"); | |
| 209 | +module.exports = function (fn, that, length) { | |
| 210 | + aFunction(fn); | |
| 211 | + if (that === undefined) return fn; | |
| 212 | + switch (length) { | |
| 213 | + case 1: return function (a) { | |
| 214 | + return fn.call(that, a); | |
| 215 | + }; | |
| 216 | + case 2: return function (a, b) { | |
| 217 | + return fn.call(that, a, b); | |
| 218 | + }; | |
| 219 | + case 3: return function (a, b, c) { | |
| 220 | + return fn.call(that, a, b, c); | |
| 221 | + }; | |
| 222 | + } | |
| 223 | + return function (/* ...args */) { | |
| 224 | + return fn.apply(that, arguments); | |
| 225 | + }; | |
| 226 | +}; | |
| 227 | + | |
| 228 | + | |
| 229 | +/***/ }), | |
| 230 | + | |
| 231 | +/***/ "../node_modules/core-js/modules/_defined.js": | |
| 232 | +/*!***************************************************!*\ | |
| 233 | + !*** ../node_modules/core-js/modules/_defined.js ***! | |
| 234 | + \***************************************************/ | |
| 235 | +/*! unknown exports (runtime-defined) */ | |
| 236 | +/*! runtime requirements: module */ | |
| 237 | +/*! CommonJS bailout: module.exports is used directly at 2:0-14 */ | |
| 238 | +/***/ ((module) => { | |
| 239 | + | |
| 240 | +// 7.2.1 RequireObjectCoercible(argument) | |
| 241 | +module.exports = function (it) { | |
| 242 | + if (it == undefined) throw TypeError("Can't call method on " + it); | |
| 243 | + return it; | |
| 244 | +}; | |
| 245 | + | |
| 246 | + | |
| 247 | +/***/ }), | |
| 248 | + | |
| 249 | +/***/ "../node_modules/core-js/modules/_descriptors.js": | |
| 250 | +/*!*******************************************************!*\ | |
| 251 | + !*** ../node_modules/core-js/modules/_descriptors.js ***! | |
| 252 | + \*******************************************************/ | |
| 253 | +/*! unknown exports (runtime-defined) */ | |
| 254 | +/*! runtime requirements: module, __webpack_require__ */ | |
| 255 | +/*! CommonJS bailout: module.exports is used directly at 2:0-14 */ | |
| 256 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 257 | + | |
| 258 | +// Thank's IE8 for his funny defineProperty | |
| 259 | +module.exports = !__webpack_require__(/*! ./_fails */ "../node_modules/core-js/modules/_fails.js")(function () { | |
| 260 | + return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7; | |
| 261 | +}); | |
| 262 | + | |
| 263 | + | |
| 264 | +/***/ }), | |
| 265 | + | |
| 266 | +/***/ "../node_modules/core-js/modules/_dom-create.js": | |
| 267 | +/*!******************************************************!*\ | |
| 268 | + !*** ../node_modules/core-js/modules/_dom-create.js ***! | |
| 269 | + \******************************************************/ | |
| 270 | +/*! unknown exports (runtime-defined) */ | |
| 271 | +/*! runtime requirements: __webpack_require__, module */ | |
| 272 | +/*! CommonJS bailout: module.exports is used directly at 5:0-14 */ | |
| 273 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 274 | + | |
| 275 | +var isObject = __webpack_require__(/*! ./_is-object */ "../node_modules/core-js/modules/_is-object.js"); | |
| 276 | +var document = __webpack_require__(/*! ./_global */ "../node_modules/core-js/modules/_global.js").document; | |
| 277 | +// typeof document.createElement is 'object' in old IE | |
| 278 | +var is = isObject(document) && isObject(document.createElement); | |
| 279 | +module.exports = function (it) { | |
| 280 | + return is ? document.createElement(it) : {}; | |
| 281 | +}; | |
| 282 | + | |
| 283 | + | |
| 284 | +/***/ }), | |
| 285 | + | |
| 286 | +/***/ "../node_modules/core-js/modules/_export.js": | |
| 287 | +/*!**************************************************!*\ | |
| 288 | + !*** ../node_modules/core-js/modules/_export.js ***! | |
| 289 | + \**************************************************/ | |
| 290 | +/*! unknown exports (runtime-defined) */ | |
| 291 | +/*! runtime requirements: module, __webpack_require__ */ | |
| 292 | +/*! CommonJS bailout: module.exports is used directly at 43:0-14 */ | |
| 293 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 294 | + | |
| 295 | +var global = __webpack_require__(/*! ./_global */ "../node_modules/core-js/modules/_global.js"); | |
| 296 | +var core = __webpack_require__(/*! ./_core */ "../node_modules/core-js/modules/_core.js"); | |
| 297 | +var hide = __webpack_require__(/*! ./_hide */ "../node_modules/core-js/modules/_hide.js"); | |
| 298 | +var redefine = __webpack_require__(/*! ./_redefine */ "../node_modules/core-js/modules/_redefine.js"); | |
| 299 | +var ctx = __webpack_require__(/*! ./_ctx */ "../node_modules/core-js/modules/_ctx.js"); | |
| 300 | +var PROTOTYPE = 'prototype'; | |
| 301 | + | |
| 302 | +var $export = function (type, name, source) { | |
| 303 | + var IS_FORCED = type & $export.F; | |
| 304 | + var IS_GLOBAL = type & $export.G; | |
| 305 | + var IS_STATIC = type & $export.S; | |
| 306 | + var IS_PROTO = type & $export.P; | |
| 307 | + var IS_BIND = type & $export.B; | |
| 308 | + var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE]; | |
| 309 | + var exports = IS_GLOBAL ? core : core[name] || (core[name] = {}); | |
| 310 | + var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {}); | |
| 311 | + var key, own, out, exp; | |
| 312 | + if (IS_GLOBAL) source = name; | |
| 313 | + for (key in source) { | |
| 314 | + // contains in native | |
| 315 | + own = !IS_FORCED && target && target[key] !== undefined; | |
| 316 | + // export native or passed | |
| 317 | + out = (own ? target : source)[key]; | |
| 318 | + // bind timers to global for call from export context | |
| 319 | + exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out; | |
| 320 | + // extend global | |
| 321 | + if (target) redefine(target, key, out, type & $export.U); | |
| 322 | + // export | |
| 323 | + if (exports[key] != out) hide(exports, key, exp); | |
| 324 | + if (IS_PROTO && expProto[key] != out) expProto[key] = out; | |
| 325 | + } | |
| 326 | +}; | |
| 327 | +global.core = core; | |
| 328 | +// type bitmap | |
| 329 | +$export.F = 1; // forced | |
| 330 | +$export.G = 2; // global | |
| 331 | +$export.S = 4; // static | |
| 332 | +$export.P = 8; // proto | |
| 333 | +$export.B = 16; // bind | |
| 334 | +$export.W = 32; // wrap | |
| 335 | +$export.U = 64; // safe | |
| 336 | +$export.R = 128; // real proto method for `library` | |
| 337 | +module.exports = $export; | |
| 338 | + | |
| 339 | + | |
| 340 | +/***/ }), | |
| 341 | + | |
| 342 | +/***/ "../node_modules/core-js/modules/_fails.js": | |
| 343 | +/*!*************************************************!*\ | |
| 344 | + !*** ../node_modules/core-js/modules/_fails.js ***! | |
| 345 | + \*************************************************/ | |
| 346 | +/*! unknown exports (runtime-defined) */ | |
| 347 | +/*! runtime requirements: module */ | |
| 348 | +/*! CommonJS bailout: module.exports is used directly at 1:0-14 */ | |
| 349 | +/***/ ((module) => { | |
| 350 | + | |
| 351 | +module.exports = function (exec) { | |
| 352 | + try { | |
| 353 | + return !!exec(); | |
| 354 | + } catch (e) { | |
| 355 | + return true; | |
| 356 | + } | |
| 357 | +}; | |
| 358 | + | |
| 359 | + | |
| 360 | +/***/ }), | |
| 361 | + | |
| 362 | +/***/ "../node_modules/core-js/modules/_function-to-string.js": | |
| 363 | +/*!**************************************************************!*\ | |
| 364 | + !*** ../node_modules/core-js/modules/_function-to-string.js ***! | |
| 365 | + \**************************************************************/ | |
| 366 | +/*! unknown exports (runtime-defined) */ | |
| 367 | +/*! runtime requirements: module, __webpack_require__ */ | |
| 368 | +/*! CommonJS bailout: module.exports is used directly at 1:0-14 */ | |
| 369 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 370 | + | |
| 371 | +module.exports = __webpack_require__(/*! ./_shared */ "../node_modules/core-js/modules/_shared.js")('native-function-to-string', Function.toString); | |
| 372 | + | |
| 373 | + | |
| 374 | +/***/ }), | |
| 375 | + | |
| 376 | +/***/ "../node_modules/core-js/modules/_global.js": | |
| 377 | +/*!**************************************************!*\ | |
| 378 | + !*** ../node_modules/core-js/modules/_global.js ***! | |
| 379 | + \**************************************************/ | |
| 380 | +/*! unknown exports (runtime-defined) */ | |
| 381 | +/*! runtime requirements: module */ | |
| 382 | +/*! CommonJS bailout: module.exports is used directly at 2:13-27 */ | |
| 383 | +/***/ ((module) => { | |
| 384 | + | |
| 385 | +// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 | |
| 386 | +var global = module.exports = typeof window != 'undefined' && window.Math == Math | |
| 387 | + ? window : typeof self != 'undefined' && self.Math == Math ? self | |
| 388 | + // eslint-disable-next-line no-new-func | |
| 389 | + : Function('return this')(); | |
| 390 | +if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef | |
| 391 | + | |
| 392 | + | |
| 393 | +/***/ }), | |
| 394 | + | |
| 395 | +/***/ "../node_modules/core-js/modules/_has.js": | |
| 396 | +/*!***********************************************!*\ | |
| 397 | + !*** ../node_modules/core-js/modules/_has.js ***! | |
| 398 | + \***********************************************/ | |
| 399 | +/*! unknown exports (runtime-defined) */ | |
| 400 | +/*! runtime requirements: module */ | |
| 401 | +/*! CommonJS bailout: module.exports is used directly at 2:0-14 */ | |
| 402 | +/***/ ((module) => { | |
| 403 | + | |
| 404 | +var hasOwnProperty = {}.hasOwnProperty; | |
| 405 | +module.exports = function (it, key) { | |
| 406 | + return hasOwnProperty.call(it, key); | |
| 407 | +}; | |
| 408 | + | |
| 409 | + | |
| 410 | +/***/ }), | |
| 411 | + | |
| 412 | +/***/ "../node_modules/core-js/modules/_hide.js": | |
| 413 | +/*!************************************************!*\ | |
| 414 | + !*** ../node_modules/core-js/modules/_hide.js ***! | |
| 415 | + \************************************************/ | |
| 416 | +/*! unknown exports (runtime-defined) */ | |
| 417 | +/*! runtime requirements: module, __webpack_require__ */ | |
| 418 | +/*! CommonJS bailout: module.exports is used directly at 3:0-14 */ | |
| 419 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 420 | + | |
| 421 | +var dP = __webpack_require__(/*! ./_object-dp */ "../node_modules/core-js/modules/_object-dp.js"); | |
| 422 | +var createDesc = __webpack_require__(/*! ./_property-desc */ "../node_modules/core-js/modules/_property-desc.js"); | |
| 423 | +module.exports = __webpack_require__(/*! ./_descriptors */ "../node_modules/core-js/modules/_descriptors.js") ? function (object, key, value) { | |
| 424 | + return dP.f(object, key, createDesc(1, value)); | |
| 425 | +} : function (object, key, value) { | |
| 426 | + object[key] = value; | |
| 427 | + return object; | |
| 428 | +}; | |
| 429 | + | |
| 430 | + | |
| 431 | +/***/ }), | |
| 432 | + | |
| 433 | +/***/ "../node_modules/core-js/modules/_ie8-dom-define.js": | |
| 434 | +/*!**********************************************************!*\ | |
| 435 | + !*** ../node_modules/core-js/modules/_ie8-dom-define.js ***! | |
| 436 | + \**********************************************************/ | |
| 437 | +/*! unknown exports (runtime-defined) */ | |
| 438 | +/*! runtime requirements: module, __webpack_require__ */ | |
| 439 | +/*! CommonJS bailout: module.exports is used directly at 1:0-14 */ | |
| 440 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 441 | + | |
| 442 | +module.exports = !__webpack_require__(/*! ./_descriptors */ "../node_modules/core-js/modules/_descriptors.js") && !__webpack_require__(/*! ./_fails */ "../node_modules/core-js/modules/_fails.js")(function () { | |
| 443 | + return Object.defineProperty(__webpack_require__(/*! ./_dom-create */ "../node_modules/core-js/modules/_dom-create.js")('div'), 'a', { get: function () { return 7; } }).a != 7; | |
| 444 | +}); | |
| 445 | + | |
| 446 | + | |
| 447 | +/***/ }), | |
| 448 | + | |
| 449 | +/***/ "../node_modules/core-js/modules/_iobject.js": | |
| 450 | +/*!***************************************************!*\ | |
| 451 | + !*** ../node_modules/core-js/modules/_iobject.js ***! | |
| 452 | + \***************************************************/ | |
| 453 | +/*! unknown exports (runtime-defined) */ | |
| 454 | +/*! runtime requirements: module, __webpack_require__ */ | |
| 455 | +/*! CommonJS bailout: module.exports is used directly at 4:0-14 */ | |
| 456 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 457 | + | |
| 458 | +// fallback for non-array-like ES3 and non-enumerable old V8 strings | |
| 459 | +var cof = __webpack_require__(/*! ./_cof */ "../node_modules/core-js/modules/_cof.js"); | |
| 460 | +// eslint-disable-next-line no-prototype-builtins | |
| 461 | +module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) { | |
| 462 | + return cof(it) == 'String' ? it.split('') : Object(it); | |
| 463 | +}; | |
| 464 | + | |
| 465 | + | |
| 466 | +/***/ }), | |
| 467 | + | |
| 468 | +/***/ "../node_modules/core-js/modules/_is-array.js": | |
| 469 | +/*!****************************************************!*\ | |
| 470 | + !*** ../node_modules/core-js/modules/_is-array.js ***! | |
| 471 | + \****************************************************/ | |
| 472 | +/*! unknown exports (runtime-defined) */ | |
| 473 | +/*! runtime requirements: module, __webpack_require__ */ | |
| 474 | +/*! CommonJS bailout: module.exports is used directly at 3:0-14 */ | |
| 475 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 476 | + | |
| 477 | +// 7.2.2 IsArray(argument) | |
| 478 | +var cof = __webpack_require__(/*! ./_cof */ "../node_modules/core-js/modules/_cof.js"); | |
| 479 | +module.exports = Array.isArray || function isArray(arg) { | |
| 480 | + return cof(arg) == 'Array'; | |
| 481 | +}; | |
| 482 | + | |
| 483 | + | |
| 484 | +/***/ }), | |
| 485 | + | |
| 486 | +/***/ "../node_modules/core-js/modules/_is-object.js": | |
| 487 | +/*!*****************************************************!*\ | |
| 488 | + !*** ../node_modules/core-js/modules/_is-object.js ***! | |
| 489 | + \*****************************************************/ | |
| 490 | +/*! unknown exports (runtime-defined) */ | |
| 491 | +/*! runtime requirements: module */ | |
| 492 | +/*! CommonJS bailout: module.exports is used directly at 1:0-14 */ | |
| 493 | +/***/ ((module) => { | |
| 494 | + | |
| 495 | +module.exports = function (it) { | |
| 496 | + return typeof it === 'object' ? it !== null : typeof it === 'function'; | |
| 497 | +}; | |
| 498 | + | |
| 499 | + | |
| 500 | +/***/ }), | |
| 501 | + | |
| 502 | +/***/ "../node_modules/core-js/modules/_library.js": | |
| 503 | +/*!***************************************************!*\ | |
| 504 | + !*** ../node_modules/core-js/modules/_library.js ***! | |
| 505 | + \***************************************************/ | |
| 506 | +/*! unknown exports (runtime-defined) */ | |
| 507 | +/*! runtime requirements: module */ | |
| 508 | +/*! CommonJS bailout: module.exports is used directly at 1:0-14 */ | |
| 509 | +/***/ ((module) => { | |
| 510 | + | |
| 511 | +module.exports = false; | |
| 512 | + | |
| 513 | + | |
| 514 | +/***/ }), | |
| 515 | + | |
| 516 | +/***/ "../node_modules/core-js/modules/_object-dp.js": | |
| 517 | +/*!*****************************************************!*\ | |
| 518 | + !*** ../node_modules/core-js/modules/_object-dp.js ***! | |
| 519 | + \*****************************************************/ | |
| 520 | +/*! default exports */ | |
| 521 | +/*! export f [provided] [no usage info] [missing usage info prevents renaming] */ | |
| 522 | +/*! other exports [not provided] [no usage info] */ | |
| 523 | +/*! runtime requirements: __webpack_exports__, __webpack_require__ */ | |
| 524 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 525 | + | |
| 526 | +var anObject = __webpack_require__(/*! ./_an-object */ "../node_modules/core-js/modules/_an-object.js"); | |
| 527 | +var IE8_DOM_DEFINE = __webpack_require__(/*! ./_ie8-dom-define */ "../node_modules/core-js/modules/_ie8-dom-define.js"); | |
| 528 | +var toPrimitive = __webpack_require__(/*! ./_to-primitive */ "../node_modules/core-js/modules/_to-primitive.js"); | |
| 529 | +var dP = Object.defineProperty; | |
| 530 | + | |
| 531 | +exports.f = __webpack_require__(/*! ./_descriptors */ "../node_modules/core-js/modules/_descriptors.js") ? Object.defineProperty : function defineProperty(O, P, Attributes) { | |
| 532 | + anObject(O); | |
| 533 | + P = toPrimitive(P, true); | |
| 534 | + anObject(Attributes); | |
| 535 | + if (IE8_DOM_DEFINE) try { | |
| 536 | + return dP(O, P, Attributes); | |
| 537 | + } catch (e) { /* empty */ } | |
| 538 | + if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!'); | |
| 539 | + if ('value' in Attributes) O[P] = Attributes.value; | |
| 540 | + return O; | |
| 541 | +}; | |
| 542 | + | |
| 543 | + | |
| 544 | +/***/ }), | |
| 545 | + | |
| 546 | +/***/ "../node_modules/core-js/modules/_property-desc.js": | |
| 547 | +/*!*********************************************************!*\ | |
| 548 | + !*** ../node_modules/core-js/modules/_property-desc.js ***! | |
| 549 | + \*********************************************************/ | |
| 550 | +/*! unknown exports (runtime-defined) */ | |
| 551 | +/*! runtime requirements: module */ | |
| 552 | +/*! CommonJS bailout: module.exports is used directly at 1:0-14 */ | |
| 553 | +/***/ ((module) => { | |
| 554 | + | |
| 555 | +module.exports = function (bitmap, value) { | |
| 556 | + return { | |
| 557 | + enumerable: !(bitmap & 1), | |
| 558 | + configurable: !(bitmap & 2), | |
| 559 | + writable: !(bitmap & 4), | |
| 560 | + value: value | |
| 561 | + }; | |
| 562 | +}; | |
| 563 | + | |
| 564 | + | |
| 565 | +/***/ }), | |
| 566 | + | |
| 567 | +/***/ "../node_modules/core-js/modules/_redefine.js": | |
| 568 | +/*!****************************************************!*\ | |
| 569 | + !*** ../node_modules/core-js/modules/_redefine.js ***! | |
| 570 | + \****************************************************/ | |
| 571 | +/*! unknown exports (runtime-defined) */ | |
| 572 | +/*! runtime requirements: __webpack_require__, module */ | |
| 573 | +/*! CommonJS bailout: module.exports is used directly at 13:1-15 */ | |
| 574 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 575 | + | |
| 576 | +var global = __webpack_require__(/*! ./_global */ "../node_modules/core-js/modules/_global.js"); | |
| 577 | +var hide = __webpack_require__(/*! ./_hide */ "../node_modules/core-js/modules/_hide.js"); | |
| 578 | +var has = __webpack_require__(/*! ./_has */ "../node_modules/core-js/modules/_has.js"); | |
| 579 | +var SRC = __webpack_require__(/*! ./_uid */ "../node_modules/core-js/modules/_uid.js")('src'); | |
| 580 | +var $toString = __webpack_require__(/*! ./_function-to-string */ "../node_modules/core-js/modules/_function-to-string.js"); | |
| 581 | +var TO_STRING = 'toString'; | |
| 582 | +var TPL = ('' + $toString).split(TO_STRING); | |
| 583 | + | |
| 584 | +__webpack_require__(/*! ./_core */ "../node_modules/core-js/modules/_core.js").inspectSource = function (it) { | |
| 585 | + return $toString.call(it); | |
| 586 | +}; | |
| 587 | + | |
| 588 | +(module.exports = function (O, key, val, safe) { | |
| 589 | + var isFunction = typeof val == 'function'; | |
| 590 | + if (isFunction) has(val, 'name') || hide(val, 'name', key); | |
| 591 | + if (O[key] === val) return; | |
| 592 | + if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key))); | |
| 593 | + if (O === global) { | |
| 594 | + O[key] = val; | |
| 595 | + } else if (!safe) { | |
| 596 | + delete O[key]; | |
| 597 | + hide(O, key, val); | |
| 598 | + } else if (O[key]) { | |
| 599 | + O[key] = val; | |
| 600 | + } else { | |
| 601 | + hide(O, key, val); | |
| 602 | + } | |
| 603 | +// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative | |
| 604 | +})(Function.prototype, TO_STRING, function toString() { | |
| 605 | + return typeof this == 'function' && this[SRC] || $toString.call(this); | |
| 606 | +}); | |
| 607 | + | |
| 608 | + | |
| 609 | +/***/ }), | |
| 610 | + | |
| 611 | +/***/ "../node_modules/core-js/modules/_shared.js": | |
| 612 | +/*!**************************************************!*\ | |
| 613 | + !*** ../node_modules/core-js/modules/_shared.js ***! | |
| 614 | + \**************************************************/ | |
| 615 | +/*! unknown exports (runtime-defined) */ | |
| 616 | +/*! runtime requirements: module, __webpack_require__ */ | |
| 617 | +/*! CommonJS bailout: module.exports is used directly at 6:1-15 */ | |
| 618 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 619 | + | |
| 620 | +var core = __webpack_require__(/*! ./_core */ "../node_modules/core-js/modules/_core.js"); | |
| 621 | +var global = __webpack_require__(/*! ./_global */ "../node_modules/core-js/modules/_global.js"); | |
| 622 | +var SHARED = '__core-js_shared__'; | |
| 623 | +var store = global[SHARED] || (global[SHARED] = {}); | |
| 624 | + | |
| 625 | +(module.exports = function (key, value) { | |
| 626 | + return store[key] || (store[key] = value !== undefined ? value : {}); | |
| 627 | +})('versions', []).push({ | |
| 628 | + version: core.version, | |
| 629 | + mode: __webpack_require__(/*! ./_library */ "../node_modules/core-js/modules/_library.js") ? 'pure' : 'global', | |
| 630 | + copyright: '© 2020 Denis Pushkarev (zloirock.ru)' | |
| 631 | +}); | |
| 632 | + | |
| 633 | + | |
| 634 | +/***/ }), | |
| 635 | + | |
| 636 | +/***/ "../node_modules/core-js/modules/_to-integer.js": | |
| 637 | +/*!******************************************************!*\ | |
| 638 | + !*** ../node_modules/core-js/modules/_to-integer.js ***! | |
| 639 | + \******************************************************/ | |
| 640 | +/*! unknown exports (runtime-defined) */ | |
| 641 | +/*! runtime requirements: module */ | |
| 642 | +/*! CommonJS bailout: module.exports is used directly at 4:0-14 */ | |
| 643 | +/***/ ((module) => { | |
| 644 | + | |
| 645 | +// 7.1.4 ToInteger | |
| 646 | +var ceil = Math.ceil; | |
| 647 | +var floor = Math.floor; | |
| 648 | +module.exports = function (it) { | |
| 649 | + return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it); | |
| 650 | +}; | |
| 651 | + | |
| 652 | + | |
| 653 | +/***/ }), | |
| 654 | + | |
| 655 | +/***/ "../node_modules/core-js/modules/_to-length.js": | |
| 656 | +/*!*****************************************************!*\ | |
| 657 | + !*** ../node_modules/core-js/modules/_to-length.js ***! | |
| 658 | + \*****************************************************/ | |
| 659 | +/*! unknown exports (runtime-defined) */ | |
| 660 | +/*! runtime requirements: module, __webpack_require__ */ | |
| 661 | +/*! CommonJS bailout: module.exports is used directly at 4:0-14 */ | |
| 662 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 663 | + | |
| 664 | +// 7.1.15 ToLength | |
| 665 | +var toInteger = __webpack_require__(/*! ./_to-integer */ "../node_modules/core-js/modules/_to-integer.js"); | |
| 666 | +var min = Math.min; | |
| 667 | +module.exports = function (it) { | |
| 668 | + return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991 | |
| 669 | +}; | |
| 670 | + | |
| 671 | + | |
| 672 | +/***/ }), | |
| 673 | + | |
| 674 | +/***/ "../node_modules/core-js/modules/_to-object.js": | |
| 675 | +/*!*****************************************************!*\ | |
| 676 | + !*** ../node_modules/core-js/modules/_to-object.js ***! | |
| 677 | + \*****************************************************/ | |
| 678 | +/*! unknown exports (runtime-defined) */ | |
| 679 | +/*! runtime requirements: module, __webpack_require__ */ | |
| 680 | +/*! CommonJS bailout: module.exports is used directly at 3:0-14 */ | |
| 681 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 682 | + | |
| 683 | +// 7.1.13 ToObject(argument) | |
| 684 | +var defined = __webpack_require__(/*! ./_defined */ "../node_modules/core-js/modules/_defined.js"); | |
| 685 | +module.exports = function (it) { | |
| 686 | + return Object(defined(it)); | |
| 687 | +}; | |
| 688 | + | |
| 689 | + | |
| 690 | +/***/ }), | |
| 691 | + | |
| 692 | +/***/ "../node_modules/core-js/modules/_to-primitive.js": | |
| 693 | +/*!********************************************************!*\ | |
| 694 | + !*** ../node_modules/core-js/modules/_to-primitive.js ***! | |
| 695 | + \********************************************************/ | |
| 696 | +/*! unknown exports (runtime-defined) */ | |
| 697 | +/*! runtime requirements: module, __webpack_require__ */ | |
| 698 | +/*! CommonJS bailout: module.exports is used directly at 5:0-14 */ | |
| 699 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 700 | + | |
| 701 | +// 7.1.1 ToPrimitive(input [, PreferredType]) | |
| 702 | +var isObject = __webpack_require__(/*! ./_is-object */ "../node_modules/core-js/modules/_is-object.js"); | |
| 703 | +// instead of the ES6 spec version, we didn't implement @@toPrimitive case | |
| 704 | +// and the second argument - flag - preferred type is a string | |
| 705 | +module.exports = function (it, S) { | |
| 706 | + if (!isObject(it)) return it; | |
| 707 | + var fn, val; | |
| 708 | + if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; | |
| 709 | + if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val; | |
| 710 | + if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; | |
| 711 | + throw TypeError("Can't convert object to primitive value"); | |
| 712 | +}; | |
| 713 | + | |
| 714 | + | |
| 715 | +/***/ }), | |
| 716 | + | |
| 717 | +/***/ "../node_modules/core-js/modules/_uid.js": | |
| 718 | +/*!***********************************************!*\ | |
| 719 | + !*** ../node_modules/core-js/modules/_uid.js ***! | |
| 720 | + \***********************************************/ | |
| 721 | +/*! unknown exports (runtime-defined) */ | |
| 722 | +/*! runtime requirements: module */ | |
| 723 | +/*! CommonJS bailout: module.exports is used directly at 3:0-14 */ | |
| 724 | +/***/ ((module) => { | |
| 725 | + | |
| 726 | +var id = 0; | |
| 727 | +var px = Math.random(); | |
| 728 | +module.exports = function (key) { | |
| 729 | + return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36)); | |
| 730 | +}; | |
| 731 | + | |
| 732 | + | |
| 733 | +/***/ }), | |
| 734 | + | |
| 735 | +/***/ "../node_modules/core-js/modules/_wks.js": | |
| 736 | +/*!***********************************************!*\ | |
| 737 | + !*** ../node_modules/core-js/modules/_wks.js ***! | |
| 738 | + \***********************************************/ | |
| 739 | +/*! unknown exports (runtime-defined) */ | |
| 740 | +/*! runtime requirements: __webpack_require__, module */ | |
| 741 | +/*! CommonJS bailout: module.exports is used directly at 6:15-29 */ | |
| 742 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 743 | + | |
| 744 | +var store = __webpack_require__(/*! ./_shared */ "../node_modules/core-js/modules/_shared.js")('wks'); | |
| 745 | +var uid = __webpack_require__(/*! ./_uid */ "../node_modules/core-js/modules/_uid.js"); | |
| 746 | +var Symbol = __webpack_require__(/*! ./_global */ "../node_modules/core-js/modules/_global.js").Symbol; | |
| 747 | +var USE_SYMBOL = typeof Symbol == 'function'; | |
| 748 | + | |
| 749 | +var $exports = module.exports = function (name) { | |
| 750 | + return store[name] || (store[name] = | |
| 751 | + USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name)); | |
| 752 | +}; | |
| 753 | + | |
| 754 | +$exports.store = store; | |
| 755 | + | |
| 756 | + | |
| 757 | +/***/ }), | |
| 758 | + | |
| 759 | +/***/ "../node_modules/core-js/modules/es6.array.find.js": | |
| 760 | +/*!*********************************************************!*\ | |
| 761 | + !*** ../node_modules/core-js/modules/es6.array.find.js ***! | |
| 762 | + \*********************************************************/ | |
| 763 | +/*! unknown exports (runtime-defined) */ | |
| 764 | +/*! runtime requirements: __webpack_require__ */ | |
| 765 | +/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { | |
| 766 | + | |
| 767 | +"use strict"; | |
| 768 | + | |
| 769 | +// 22.1.3.8 Array.prototype.find(predicate, thisArg = undefined) | |
| 770 | +var $export = __webpack_require__(/*! ./_export */ "../node_modules/core-js/modules/_export.js"); | |
| 771 | +var $find = __webpack_require__(/*! ./_array-methods */ "../node_modules/core-js/modules/_array-methods.js")(5); | |
| 772 | +var KEY = 'find'; | |
| 773 | +var forced = true; | |
| 774 | +// Shouldn't skip holes | |
| 775 | +if (KEY in []) Array(1)[KEY](function () { forced = false; }); | |
| 776 | +$export($export.P + $export.F * forced, 'Array', { | |
| 777 | + find: function find(callbackfn /* , that = undefined */) { | |
| 778 | + return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); | |
| 779 | + } | |
| 780 | +}); | |
| 781 | +__webpack_require__(/*! ./_add-to-unscopables */ "../node_modules/core-js/modules/_add-to-unscopables.js")(KEY); | |
| 782 | + | |
| 783 | + | |
| 784 | +/***/ }), | |
| 785 | + | |
| 786 | +/***/ "@wordpress/i18n": | |
| 787 | +/*!**************************!*\ | |
| 788 | + !*** external "wp.i18n" ***! | |
| 789 | + \**************************/ | |
| 790 | +/*! dynamic exports */ | |
| 791 | +/*! exports [maybe provided (runtime-defined)] [no usage info] */ | |
| 792 | +/*! runtime requirements: module */ | |
| 793 | +/***/ ((module) => { | |
| 794 | + | |
| 795 | +"use strict"; | |
| 796 | +module.exports = wp.i18n; | |
| 797 | + | |
| 798 | +/***/ }) | |
| 799 | + | |
| 800 | +/******/ }); | |
| 801 | +/************************************************************************/ | |
| 802 | +/******/ // The module cache | |
| 803 | +/******/ var __webpack_module_cache__ = {}; | |
| 804 | +/******/ | |
| 805 | +/******/ // The require function | |
| 806 | +/******/ function __webpack_require__(moduleId) { | |
| 807 | +/******/ // Check if module is in cache | |
| 808 | +/******/ if(__webpack_module_cache__[moduleId]) { | |
| 809 | +/******/ return __webpack_module_cache__[moduleId].exports; | |
| 810 | +/******/ } | |
| 811 | +/******/ // Create a new module (and put it into the cache) | |
| 812 | +/******/ var module = __webpack_module_cache__[moduleId] = { | |
| 813 | +/******/ // no module.id needed | |
| 814 | +/******/ // no module.loaded needed | |
| 815 | +/******/ exports: {} | |
| 816 | +/******/ }; | |
| 817 | +/******/ | |
| 818 | +/******/ // Execute the module function | |
| 819 | +/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); | |
| 820 | +/******/ | |
| 821 | +/******/ // Return the exports of the module | |
| 822 | +/******/ return module.exports; | |
| 823 | +/******/ } | |
| 824 | +/******/ | |
| 825 | +/************************************************************************/ | |
| 826 | +(() => { | |
| 827 | +"use strict"; | |
| 828 | +/*!*******************************************!*\ | |
| 829 | + !*** ../assets/dev/js/admin/gutenberg.js ***! | |
| 830 | + \*******************************************/ | |
| 831 | +/*! unknown exports (runtime-defined) */ | |
| 832 | +/*! runtime requirements: __webpack_require__ */ | |
| 833 | +/* provided dependency */ var __ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["__"]; | |
| 834 | + | |
| 835 | + | |
| 836 | +__webpack_require__(/*! core-js/modules/es6.array.find.js */ "../node_modules/core-js/modules/es6.array.find.js"); | |
| 837 | + | |
| 838 | +/* global jQuery, ElementorGutenbergSettings */ | |
| 839 | +(function ($) { | |
| 840 | + 'use strict'; | |
| 841 | + | |
| 842 | + var ElementorGutenbergApp = { | |
| 843 | + cacheElements: function cacheElements() { | |
| 844 | + var self = this; | |
| 845 | + self.isElementorMode = ElementorGutenbergSettings.isElementorMode; | |
| 846 | + self.cache = {}; | |
| 847 | + self.cache.$gutenberg = $('#editor'); | |
| 848 | + self.cache.$switchMode = $($('#elementor-gutenberg-button-switch-mode').html()); | |
| 849 | + self.cache.$switchModeButton = self.cache.$switchMode.find('#elementor-switch-mode-button'); | |
| 850 | + self.bindEvents(); | |
| 851 | + self.toggleStatus(); | |
| 852 | + wp.data.subscribe(function () { | |
| 853 | + setTimeout(function () { | |
| 854 | + self.buildPanel(); | |
| 855 | + }, 1); | |
| 856 | + }); | |
| 857 | + }, | |
| 858 | + buildPanel: function buildPanel() { | |
| 859 | + var self = this; | |
| 860 | + | |
| 861 | + if (!self.cache.$gutenberg.find('#elementor-switch-mode').length) { | |
| 862 | + self.cache.$gutenberg.find('.edit-post-header-toolbar').append(self.cache.$switchMode); | |
| 863 | + } | |
| 864 | + | |
| 865 | + if (!$('#elementor-editor').length) { | |
| 866 | + self.cache.$editorPanel = $($('#elementor-gutenberg-panel').html()); // TODO: `editor-block-list__layout` class for WP < 5.3 support. | |
| 867 | + | |
| 868 | + self.cache.$gurenbergBlockList = self.cache.$gutenberg.find('.editor-block-list__layout, .editor-post-text-editor, .block-editor-block-list__layout'); | |
| 869 | + self.cache.$gurenbergBlockList.after(self.cache.$editorPanel); | |
| 870 | + self.cache.$editorPanelButton = self.cache.$editorPanel.find('#elementor-go-to-edit-page-link'); | |
| 871 | + self.cache.$editorPanelButton.on('click', function (event) { | |
| 872 | + event.preventDefault(); | |
| 873 | + self.animateLoader(); // A new post is initialized as an 'auto-draft'. | |
| 874 | + // if the post is not a new post it should not save it to avoid some saving conflict between elementor and gutenberg. | |
| 875 | + | |
| 876 | + var isNewPost = 'auto-draft' === wp.data.select('core/editor').getCurrentPost().status; | |
| 877 | + | |
| 878 | + if (isNewPost) { | |
| 879 | + var documentTitle = wp.data.select('core/editor').getEditedPostAttribute('title'); | |
| 880 | + | |
| 881 | + if (!documentTitle) { | |
| 882 | + wp.data.dispatch('core/editor').editPost({ | |
| 883 | + title: 'Elementor #' + $('#post_ID').val() | |
| 884 | + }); | |
| 885 | + } | |
| 886 | + | |
| 887 | + wp.data.dispatch('core/editor').savePost(); | |
| 888 | + } | |
| 889 | + | |
| 890 | + self.redirectWhenSave(); | |
| 891 | + }); | |
| 892 | + } | |
| 893 | + }, | |
| 894 | + bindEvents: function bindEvents() { | |
| 895 | + var self = this; | |
| 896 | + self.cache.$switchModeButton.on('click', function () { | |
| 897 | + if (self.isElementorMode) { | |
| 898 | + elementorCommon.dialogsManager.createWidget('confirm', { | |
| 899 | + message: __('Please note that you are switching to WordPress default editor. Your current layout, design and content might break.', 'elementor'), | |
| 900 | + headerMessage: __('Back to WordPress Editor', 'elementor'), | |
| 901 | + strings: { | |
| 902 | + confirm: __('Continue', 'elementor'), | |
| 903 | + cancel: __('Cancel', 'elementor') | |
| 904 | + }, | |
| 905 | + defaultOption: 'confirm', | |
| 906 | + onConfirm: function onConfirm() { | |
| 907 | + var wpEditor = wp.data.dispatch('core/editor'); | |
| 908 | + wpEditor.editPost({ | |
| 909 | + gutenberg_elementor_mode: false | |
| 910 | + }); | |
| 911 | + wpEditor.savePost(); | |
| 912 | + self.isElementorMode = !self.isElementorMode; | |
| 913 | + self.toggleStatus(); | |
| 914 | + } | |
| 915 | + }).show(); | |
| 916 | + } else { | |
| 917 | + self.isElementorMode = !self.isElementorMode; | |
| 918 | + self.toggleStatus(); | |
| 919 | + self.cache.$editorPanelButton.trigger('click'); | |
| 920 | + } | |
| 921 | + }); | |
| 922 | + }, | |
| 923 | + redirectWhenSave: function redirectWhenSave() { | |
| 924 | + var self = this; | |
| 925 | + setTimeout(function () { | |
| 926 | + if (wp.data.select('core/editor').isSavingPost()) { | |
| 927 | + self.redirectWhenSave(); | |
| 928 | + } else { | |
| 929 | + location.href = ElementorGutenbergSettings.editLink; | |
| 930 | + } | |
| 931 | + }, 300); | |
| 932 | + }, | |
| 933 | + animateLoader: function animateLoader() { | |
| 934 | + this.cache.$editorPanelButton.addClass('elementor-animate'); | |
| 935 | + }, | |
| 936 | + toggleStatus: function toggleStatus() { | |
| 937 | + jQuery('body').toggleClass('elementor-editor-active', this.isElementorMode).toggleClass('elementor-editor-inactive', !this.isElementorMode); | |
| 938 | + }, | |
| 939 | + init: function init() { | |
| 940 | + this.cacheElements(); | |
| 941 | + } | |
| 942 | + }; | |
| 943 | + $(function () { | |
| 944 | + ElementorGutenbergApp.init(); | |
| 945 | + }); | |
| 946 | +})(jQuery); | |
| 947 | +})(); | |
| 948 | + | |
| 949 | +/******/ })() | |
| 950 | +; | |
| 130 | 951 | //# sourceMappingURL=gutenberg.js.map |