| 1 |
/* |
| 2 |
* ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development"). |
| 3 |
* This devtool is neither made for production nor for readable output files. |
| 4 |
* It uses "eval()" calls to create a separate source file in the browser devtools. |
| 5 |
* If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/) |
| 6 |
* or disable the default devtool with "devtool: false". |
| 7 |
* If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/). |
| 8 |
*/ |
| 9 |
(self["vcvWebpackJsonp4x"] = self["vcvWebpackJsonp4x"] || []).push([["element"],{ |
| 10 |
|
| 11 |
/***/ "./shortcode/component.js": |
| 12 |
/*!********************************!*\ |
| 13 |
!*** ./shortcode/component.js ***! |
| 14 |
\********************************/ |
| 15 |
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { |
| 16 |
|
| 17 |
"use strict"; |
| 18 |
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ ShortcodeElement; }\n/* harmony export */ });\n/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/extends */ \"./node_modules/@babel/runtime/helpers/esm/extends.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/esm/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/esm/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/get */ \"./node_modules/@babel/runtime/helpers/esm/get.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/esm/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var vc_cake__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! vc-cake */ \"./node_modules/vc-cake/index.js\");\n/* harmony import */ var vc_cake__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(vc_cake__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! lodash */ \"./node_modules/lodash/lodash.js\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_9__);\n\n\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0,_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(this, result); }; }\n\nfunction _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; } }\n\n\n\n\nvar vcvAPI = vc_cake__WEBPACK_IMPORTED_MODULE_8___default().getService('api');\n\nvar ShortcodeElement = /*#__PURE__*/function (_vcvAPI$elementCompon) {\n (0,_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(ShortcodeElement, _vcvAPI$elementCompon);\n\n var _super = _createSuper(ShortcodeElement);\n\n function ShortcodeElement(props) {\n var _this;\n\n (0,_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(this, ShortcodeElement);\n\n _this = _super.call(this, props);\n _this.vcvhelper = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7__.createRef();\n _this.delayedShortcodeUpdate = lodash__WEBPACK_IMPORTED_MODULE_9___default().debounce(_this.updateShortcodeElement, 500);\n return _this;\n }\n\n (0,_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(ShortcodeElement, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n (0,_babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_3__[\"default\"])((0,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(ShortcodeElement.prototype), \"updateShortcodeToHtml\", this).call(this, this.props.atts.shortcode, this.vcvhelper.current);\n }\n }, {\n key: \"updateShortcodeElement\",\n value: function updateShortcodeElement() {\n (0,_babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_3__[\"default\"])((0,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(ShortcodeElement.prototype), \"updateShortcodeToHtml\", this).call(this, this.props.atts.shortcode, this.vcvhelper.current);\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(props) {\n // update only if shortcode field did change\n if (this.props.atts.shortcode !== props.atts.shortcode) {\n this.delayedShortcodeUpdate();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this$props = this.props,\n id = _this$props.id,\n atts = _this$props.atts,\n editor = _this$props.editor;\n var shortcode = atts.shortcode,\n customClass = atts.customClass,\n metaCustomId = atts.metaCustomId;\n var shortcodeClasses = 'vce-shortcode';\n var wrapperClasses = 'vce-shortcode-wrapper vce';\n var customProps = {};\n\n if (typeof customClass === 'string' && customClass) {\n shortcodeClasses = shortcodeClasses.concat(' ' + customClass);\n }\n\n if (metaCustomId) {\n customProps.id = metaCustomId;\n }\n\n var doAll = this.applyDO('all');\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7__.createElement(\"div\", (0,_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n className: shortcodeClasses\n }, editor, customProps), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7__.createElement(\"div\", (0,_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n className: wrapperClasses,\n id: 'el-' + id\n }, doAll), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7__.createElement(\"div\", {\n className: \"vcvhelper\",\n ref: this.vcvhelper,\n \"data-vcvs-html\": shortcode\n })));\n }\n }]);\n\n return ShortcodeElement;\n}(vcvAPI.elementComponent);\n\n\n\n//# sourceURL=webpack:///./shortcode/component.js?"); |
| 19 |
|
| 20 |
/***/ }), |
| 21 |
|
| 22 |
/***/ "./shortcode/index.js": |
| 23 |
/*!****************************!*\ |
| 24 |
!*** ./shortcode/index.js ***! |
| 25 |
\****************************/ |
| 26 |
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { |
| 27 |
|
| 28 |
"use strict"; |
| 29 |
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vc_cake__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vc-cake */ \"./node_modules/vc-cake/index.js\");\n/* harmony import */ var vc_cake__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vc_cake__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./component */ \"./shortcode/component.js\");\n/* eslint-disable import/no-webpack-loader-syntax */\n\n\nvar vcvAddElement = vc_cake__WEBPACK_IMPORTED_MODULE_0___default().getService('cook').add;\nvcvAddElement(__webpack_require__(/*! ./settings.json */ \"./shortcode/settings.json\"), // Component callback\nfunction (component) {\n component.add(_component__WEBPACK_IMPORTED_MODULE_1__[\"default\"]);\n}, // css settings // css for element\n{\n css: false,\n editorCss: __webpack_require__(/*! raw-loader!./editor.css */ \"./node_modules/raw-loader/index.js!./shortcode/editor.css\")\n}, // javascript callback\n'');\n\n//# sourceURL=webpack:///./shortcode/index.js?"); |
| 30 |
|
| 31 |
/***/ }), |
| 32 |
|
| 33 |
/***/ "./node_modules/raw-loader/index.js!./shortcode/editor.css": |
| 34 |
/*!*********************************************************************!*\ |
| 35 |
!*** ../../node_modules/raw-loader/index.js!./shortcode/editor.css ***! |
| 36 |
\*********************************************************************/ |
| 37 |
/***/ (function(module) { |
| 38 |
|
| 39 |
eval("module.exports = \".vce-shortcode {\\n min-height: 1em;\\n}\\n\"\n\n//# sourceURL=webpack:///./shortcode/editor.css?../../node_modules/raw-loader/index.js"); |
| 40 |
|
| 41 |
/***/ }), |
| 42 |
|
| 43 |
/***/ "./shortcode/settings.json": |
| 44 |
/*!*********************************!*\ |
| 45 |
!*** ./shortcode/settings.json ***! |
| 46 |
\*********************************/ |
| 47 |
/***/ (function(module) { |
| 48 |
|
| 49 |
"use strict"; |
| 50 |
eval("module.exports = JSON.parse('{\"shortcode\":{\"type\":\"string\",\"access\":\"public\",\"value\":\"Insert [shortcode] of any WordPress plugin installed on your website.\"},\"designOptions\":{\"type\":\"designOptions\",\"access\":\"public\",\"value\":{},\"options\":{\"label\":\"Design Options\"}},\"editFormTab1\":{\"type\":\"group\",\"access\":\"protected\",\"value\":[\"shortcode\",\"metaCustomId\",\"customClass\"],\"options\":{\"label\":\"General\"}},\"metaEditFormTabs\":{\"type\":\"group\",\"access\":\"protected\",\"value\":[\"editFormTab1\",\"designOptions\"]},\"relatedTo\":{\"type\":\"group\",\"access\":\"protected\",\"value\":[\"General\"]},\"customClass\":{\"type\":\"string\",\"access\":\"public\",\"value\":\"\",\"options\":{\"label\":\"Extra class name\",\"description\":\"Add an extra class name to the element and refer to it from the custom CSS option.\"}},\"assetsLibrary\":{\"access\":\"public\",\"type\":\"string\",\"value\":[\"animate\"]},\"metaCustomId\":{\"type\":\"customId\",\"access\":\"public\",\"value\":\"\",\"options\":{\"label\":\"Element ID\",\"description\":\"Apply a unique ID to the element to link it directly by using #your_id (for element ID use lowercase input only).\"}},\"tag\":{\"access\":\"protected\",\"type\":\"string\",\"value\":\"shortcode\"}}');\n\n//# sourceURL=webpack:///./shortcode/settings.json?"); |
| 51 |
|
| 52 |
/***/ }) |
| 53 |
|
| 54 |
},[['./shortcode/index.js']]]); |