jodit-pro
Version:
PRO Version of Jodit Editor
779 lines (691 loc) • 152 kB
JavaScript
/*!
* jodit-pro - PRO Version of Jodit Editor
* Author: Chupurnov Valerii <chupurnov@gmail.com>
* Version: v4.9.27
* Url: https://xdsoft.net/jodit/pro/
* License(s): SEE LICENSE IN LICENSE.md
*/
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], factory);
else {
var a = factory();
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
}
})(self, function() {
return (self["webpackChunkjodit_pro"] = self["webpackChunkjodit_pro"] || []).push([[484],{
/***/ 2868:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ _: function() { return /* binding */ _instanceof1; }
/* harmony export */ });
function _instanceof(left, right) {
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
return !!right[Symbol.hasInstance](left);
} else {
return left instanceof right;
}
}
function _instanceof1(left, right) {
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
return !!right[Symbol.hasInstance](left);
} else return _instanceof(left, right);
}
/***/ }),
/***/ 11886:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ _: function() { return /* binding */ _object_spread_props; }
/* harmony export */ });
function ownKeys(object, enumerableOnly) {
var keys = Object.keys(object);
if (Object.getOwnPropertySymbols) {
var symbols = Object.getOwnPropertySymbols(object);
if (enumerableOnly) {
symbols = symbols.filter(function(sym) {
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
});
}
keys.push.apply(keys, symbols);
}
return keys;
}
function _object_spread_props(target, source) {
source = source != null ? source : {};
if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
else {
ownKeys(Object(source)).forEach(function(key) {
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
});
}
return target;
}
/***/ }),
/***/ 26638:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ UIPreviewButtonGenerator: function() { return /* binding */ UIPreviewButtonGenerator; }
/* harmony export */ });
/* harmony import */ var _swc_helpers_call_super__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(80294);
/* harmony import */ var _swc_helpers_class_call_check__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(20616);
/* harmony import */ var _swc_helpers_create_class__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(67709);
/* harmony import */ var _swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(82749);
/* harmony import */ var _swc_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(18766);
/* harmony import */ var _swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(31635);
/* harmony import */ var jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(65478);
/* harmony import */ var jodit_esm_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(38837);
/* harmony import */ var jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(67510);
/* harmony import */ var jodit_pro_plugins_button_generator_ui_button_button__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(82520);
/* harmony import */ var jodit_pro_plugins_color_picker_ui_input_color_input__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(45128);
/*!
* Jodit Editor PRO (https://xdsoft.net/jodit/)
* See LICENSE.md in the project root for license information.
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
*/
var UIPreviewButtonGenerator = /*#__PURE__*/ function(UIElement) {
"use strict";
(0,_swc_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__._)(UIPreviewButtonGenerator, UIElement);
function UIPreviewButtonGenerator(jodit, state, updateState) {
(0,_swc_helpers_class_call_check__WEBPACK_IMPORTED_MODULE_1__._)(this, UIPreviewButtonGenerator);
var _this;
_this = (0,_swc_helpers_call_super__WEBPACK_IMPORTED_MODULE_0__._)(this, UIPreviewButtonGenerator, [
jodit
]), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_3__._)(_this, "state", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_3__._)(_this, "updateState", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_3__._)(_this, "button", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_3__._)(_this, "lockUpdate", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_3__._)(_this, "colors", void 0), _this.state = state, _this.updateState = updateState, _this.button = new jodit_pro_plugins_button_generator_ui_button_button__WEBPACK_IMPORTED_MODULE_9__.UIGButton(_this.j, _this.state), _this.lockUpdate = false, _this.colors = [
'bgStart',
'bgEnd',
'fontColor',
'borderColor',
'boxShadowColor',
'textShadowColor',
'previewBgColor'
].map(function(key) {
return new jodit_pro_plugins_color_picker_ui_input_color_input__WEBPACK_IMPORTED_MODULE_10__.ColorInput(_this.j, {
name: key,
onChange: function onChange(value) {
if (!_this.lockUpdate) {
if (key === 'bgEnd' && value !== _this.state.bgStart) {
_this.updateState('solid', false);
}
_this.updateState(key, value);
}
}
}).setMod('slim', true);
});
_this.setMod('mode', 'default');
var button = _this.getElm('button');
(0,jodit_esm_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_7__.assert)(button != null, 'button element does not exists');
button.appendChild(_this.button.container);
var colors = _this.getElm('colors');
(0,jodit_esm_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_7__.assert)(colors != null, 'colors element does not exists');
_this.colors.forEach(function(input) {
colors.appendChild(input.container);
});
_this.update();
return _this;
}
(0,_swc_helpers_create_class__WEBPACK_IMPORTED_MODULE_2__._)(UIPreviewButtonGenerator, [
{
key: "className",
value: /** @override */ function className() {
return 'UIPreviewButtonGenerator';
}
},
{
key: "render",
value: /** @override */ function render() {
return "<div>\n <div class='&__button'></div>\n <div class='&__colors'></div>\n </div>";
}
},
{
key: "update",
value: function update() {
var _this = this;
this.button.update();
this.lockUpdate = true;
this.colors.forEach(function(input) {
if (input.value !== _this.state[input.state.name]) {
input.value = _this.state[input.state.name];
}
});
this.lockUpdate = false;
}
}
]);
return UIPreviewButtonGenerator;
}(jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_8__.UIElement);
UIPreviewButtonGenerator = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_5__.__decorate)([
jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_6__.component
], UIPreviewButtonGenerator);
/***/ }),
/***/ 34586:
/***/ (function(module) {
module.exports = "<svg stroke=\"black\" viewBox=\"0 0 32 32\" xml:space=\"preserve\" xmlns=\"http://www.w3.org/2000/svg\"> <style type=\"text/css\"> .st0{fill:none;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;} </style> <path class=\"st0\" d=\"M29,23H3c-1.1,0-2-0.9-2-2V11c0-1.1,0.9-2,2-2h26c1.1,0,2,0.9,2,2v10C31,22.1,30.1,23,29,23z\"/> <path class=\"st0\" d=\"M13,19L13,19c-1.1,0-2-0.9-2-2v-2c0-1.1,0.9-2,2-2h0c1.1,0,2,0.9,2,2v2C15,18.1,14.1,19,13,19z\"/> <line class=\"st0\" x1=\"18\" x2=\"18\" y1=\"13\" y2=\"19\"/> <line class=\"st0\" x1=\"21\" x2=\"18\" y1=\"13\" y2=\"17\"/> <line class=\"st0\" x1=\"21\" x2=\"19\" y1=\"19\" y2=\"16\"/> </svg>"
/***/ }),
/***/ 35987:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ UIButtonGenerator: function() { return /* binding */ UIButtonGenerator; }
/* harmony export */ });
/* harmony import */ var _swc_helpers_call_super__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(80294);
/* harmony import */ var _swc_helpers_class_call_check__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(20616);
/* harmony import */ var _swc_helpers_create_class__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(67709);
/* harmony import */ var _swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(82749);
/* harmony import */ var _swc_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(18766);
/* harmony import */ var _swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(31635);
/* harmony import */ var jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(65478);
/* harmony import */ var jodit_esm_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(38837);
/* harmony import */ var jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(67510);
/* harmony import */ var jodit_pro_plugins_button_generator_assets_styles_json__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(43039);
/* harmony import */ var jodit_pro_plugins_button_generator_ui_button_button__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(82520);
/* harmony import */ var jodit_pro_plugins_button_generator_ui_form_form__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(88572);
/* harmony import */ var jodit_pro_plugins_button_generator_ui_preview_preview__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(26638);
/*!
* Jodit Editor PRO (https://xdsoft.net/jodit/)
* See LICENSE.md in the project root for license information.
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
*/
var UIButtonGenerator = /*#__PURE__*/ function(UIElement) {
"use strict";
(0,_swc_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__._)(UIButtonGenerator, UIElement);
function UIButtonGenerator(jodit) {
(0,_swc_helpers_class_call_check__WEBPACK_IMPORTED_MODULE_1__._)(this, UIButtonGenerator);
var _this;
_this = (0,_swc_helpers_call_super__WEBPACK_IMPORTED_MODULE_0__._)(this, UIButtonGenerator, [
jodit
]), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_3__._)(_this, "state", {
text: '',
className: '',
href: '',
bgEnd: '#5cbf2a',
bgStart: '#44c767',
borderColor: '#18ab29',
borderRadius: 28,
borderSize: 1,
boxShadow: false,
boxShadowBlurRadius: 0,
boxShadowColor: '#3dc21b',
boxShadowInset: false,
boxShadowOffsetX: 0,
boxShadowOffsetY: 0,
boxShadowSpreadRadius: 0,
fontColor: '#fff',
fontFamily: 'Arial',
fontSize: 17,
fontStyle: false,
fontWeight: false,
fontItalic: false,
paddingX: 31,
paddingY: 16,
previewBgColor: '#f5f5f5',
solid: true,
textShadow: true,
textShadowBlurRadius: 0,
textShadowColor: '#2f6627',
textShadowOffsetX: 0,
textShadowOffsetY: 1
}), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_3__._)(_this, "preview", new jodit_pro_plugins_button_generator_ui_preview_preview__WEBPACK_IMPORTED_MODULE_12__.UIPreviewButtonGenerator(_this.j, _this.state, _this.updateState)), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_3__._)(_this, "form", new jodit_pro_plugins_button_generator_ui_form_form__WEBPACK_IMPORTED_MODULE_11__.UIFormButtonGenerator(_this.j, _this.state, _this.updateState)), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_3__._)(_this, "target", void 0);
_this.generateLibrary();
var preview = _this.getElm('preview');
(0,jodit_esm_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_7__.assert)(preview != null, 'preview element does not exists');
preview.appendChild(_this.preview.container);
var form = _this.getElm('form');
(0,jodit_esm_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_7__.assert)(form != null, 'form element does not exists');
form.appendChild(_this.form.container);
return _this;
}
(0,_swc_helpers_create_class__WEBPACK_IMPORTED_MODULE_2__._)(UIButtonGenerator, [
{
key: "className",
value: /** @override */ function className() {
return 'UIButtonGenerator';
}
},
{
key: "render",
value: function render() {
return "<div>\n <div class='&__generator'>\n <div class='&__preview'></div>\n <div class='&__form'></div>\n </div>\n <div class='&__library'></div>\n </div>";
}
},
{
key: "generateLibrary",
value: function generateLibrary() {
var _this = this;
var group = new jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_8__.UIGroup(this.j);
jodit_pro_plugins_button_generator_assets_styles_json__WEBPACK_IMPORTED_MODULE_9__.map(UIButtonGenerator.mapKey).forEach(function(style) {
var button = new jodit_pro_plugins_button_generator_ui_button_button__WEBPACK_IMPORTED_MODULE_10__.UIGButton(_this.j, style);
button.setMod('mode', 'library');
group.append(button);
_this.j.e.on(button.container, 'click', function() {
var text = _this.state.text;
Object.assign(_this.state, style);
Object.assign(_this.state, {
className: '',
text: text
});
_this.update();
});
});
var library = this.getElm('library');
(0,jodit_esm_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_7__.assert)(library != null, 'library element does not exists');
library.appendChild(group.container);
}
},
{
key: "updateState",
value: function updateState(name, value) {
this.state[name] = value;
this.update();
}
},
{
key: "update",
value: function update() {
if (this.isReady) {
this.form.update();
this.preview.update();
}
}
}
], [
{
key: "mapKey",
value: function mapKey(o) {
return {
bgEnd: o.be,
bgStart: o.bs,
borderColor: o.bc,
borderRadius: o.br,
borderSize: o.bse,
boxShadow: o.bsh,
boxShadowBlurRadius: o.bsbr,
boxShadowColor: o.bsc,
boxShadowInset: o.bsi,
boxShadowOffsetX: o.bsox,
boxShadowOffsetY: o.bsoy,
boxShadowSpreadRadius: o.bssr,
fontColor: o.fc,
fontFamily: o.ff,
fontSize: o.fs,
fontStyle: o.fse,
fontWeight: o.fw,
paddingX: o.px,
paddingY: o.py,
previewBgColor: o.pbc,
solid: o.s,
text: o.t,
textShadow: o.ts,
textShadowBlurRadius: o.tsbr,
textShadowColor: o.tsc,
textShadowOffsetX: o.tsox,
textShadowOffsetY: o.tsoy
};
}
}
]);
return UIButtonGenerator;
}(jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_8__.UIElement);
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_5__.__decorate)([
jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_6__.autobind
], UIButtonGenerator.prototype, "updateState", null);
UIButtonGenerator = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_5__.__decorate)([
jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_6__.component
], UIButtonGenerator);
/***/ }),
/***/ 43039:
/***/ (function(module) {
"use strict";
module.exports = /*#__PURE__*/JSON.parse('[{"be":"#5cbf2a","bs":"#44c767","bc":"#18ab29","br":"28px","bse":"1px","bsh":false,"bsbr":0,"bsc":"#3dc21b","bsi":false,"bsox":0,"bsoy":0,"bssr":0,"fc":"#fff","ff":"Arial","fs":"17px","fse":false,"fw":false,"px":"31px","py":"16px","pbc":"#f5f5f5","s":true,"t":"green","ts":true,"tsbr":0,"tsc":"#2f6627","tsox":0,"tsoy":"1px"},{"be":"#476e9e","bs":"#7892c2","bc":"#4e6096","br":"10px","bse":"1px","bsh":true,"bsbr":0,"bsc":"#9fb4f2","bsi":false,"bsox":0,"bsoy":0,"bssr":"2px","fc":"#fff","ff":"Arial","fs":"19px","fse":false,"fw":false,"px":"37px","py":"12px","pbc":"#f5f5f5","s":false,"t":"blue","ts":true,"tsbr":0,"tsc":"#283966","tsox":0,"tsoy":"1px"},{"be":"#408c99","bs":"#599bb3","bc":"#29668f","br":"8px","bse":0,"bsh":true,"bsbr":"14px","bsc":"#276873","bsi":false,"bsox":0,"bsoy":"10px","bssr":"-7px","fc":"#fff","ff":"Arial","fs":"20px","fse":false,"fw":true,"px":"32px","py":"13px","pbc":"#f5f5f5","s":false,"t":"turquoise","ts":true,"tsbr":0,"tsc":"#3d768a","tsox":0,"tsoy":"1px"},{"be":"#6c7c7c","bs":"#768d87","bc":"#566963","br":"5px","bse":"1px","bsh":true,"bsbr":"3px","bsc":"#91b8b3","bsi":true,"bsox":0,"bsoy":"1px","bssr":0,"fc":"#fff","ff":"Arial","fs":"15px","fse":false,"fw":true,"px":"23px","py":"11px","pbc":"#e8e7e2","s":false,"t":"dark grey","ts":true,"tsbr":0,"tsc":"#2b665e","tsox":0,"tsoy":"-1px"},{"be":"#72b352","bs":"#77b55a","bc":"#4b8f29","br":"4px","bse":"1px","bsh":true,"bsbr":"14px","bsc":"#3e7327","bsi":false,"bsox":0,"bsoy":"10px","bssr":"-7px","fc":"#fff","ff":"Arial","fs":"13px","fse":false,"fw":true,"px":"12px","py":"6px","pbc":"#f5f5f5","s":false,"t":"green","ts":true,"tsbr":0,"tsc":"#5b8a3c","tsox":0,"tsoy":"1px"},{"be":"#eb675e","bs":"#e4685d","bc":"#fff","br":"4px","bse":"1px","bsh":true,"bsbr":0,"bsc":"#e67a73","bsi":true,"bsox":0,"bsoy":"39px","bssr":"-24px","fc":"#fff","ff":"Arial","fs":"15px","fse":false,"fw":false,"px":"15px","py":"6px","pbc":"#f2f2f2","s":true,"t":"light red","ts":true,"tsbr":0,"tsc":"#b23e35","tsox":0,"tsoy":"1px"},{"be":"#b34332","bs":"#a73f2d","bc":"#241d13","br":0,"bse":"1px","bsh":true,"bsbr":0,"bsc":"#b54b3a","bsi":true,"bsox":0,"bsoy":"34px","bssr":"-15px","fc":"#fff","ff":"Arial","fs":"15px","fse":false,"fw":true,"px":"23px","py":"9px","pbc":"#2a2218","s":true,"t":"brown","ts":true,"tsbr":0,"tsc":"#7a2a1d","tsox":0,"tsoy":"-1px"},{"be":"#0688fa","bs":"#2dabf9","bc":"#0b0e07","br":"3px","bse":"1px","bsh":true,"bsbr":"7px","bsc":"#29bbff","bsi":true,"bsox":0,"bsoy":"-3px","bssr":0,"fc":"#fff","ff":"Arial","fs":"15px","fse":false,"fw":false,"px":"23px","py":"9px","pbc":"#1c1c1e","s":false,"t":"blue","ts":true,"tsbr":0,"tsc":"#263666","tsox":0,"tsoy":"1px"},{"be":"#415989","bs":"#2e466e","bc":"#1f2f47","br":"17px","bse":"1px","bsh":true,"bsbr":"15px","bsc":"#23395e","bsi":true,"bsox":0,"bsoy":0,"bssr":"3px","fc":"#fff","ff":"Arial","fs":"15px","fse":false,"fw":false,"px":"13px","py":"6px","pbc":"#3f5c93","s":false,"t":"blue","ts":true,"tsbr":0,"tsc":"#263666","tsox":0,"tsoy":"1px"},{"be":"#bc3315","bs":"#d0451b","bc":"#942911","br":"3px","bse":"1px","bsh":true,"bsbr":0,"bsc":"#cf866c","bsi":true,"bsox":0,"bsoy":"1px","bssr":0,"fc":"#fff","ff":"Arial","fs":"13px","fse":false,"fw":false,"px":"24px","py":"6px","pbc":"#f5f5f5","s":false,"t":"codecanyon","ts":true,"tsbr":0,"tsc":"#854629","tsox":0,"tsoy":"1px"},{"be":"#ccc2a6","bs":"#eae0c2","bc":"#333029","br":"15px","bse":"2px","bsh":true,"bsbr":0,"bsc":"#1c1b18","bsi":false,"bsox":0,"bsoy":"1px","bssr":0,"fc":"#505739","ff":"Arial","fs":"14px","fse":false,"fw":true,"px":"16px","py":"12px","pbc":"#2d2e29","s":false,"t":"creme","ts":true,"tsbr":0,"tsc":"#fff","tsox":0,"tsoy":"1px"},{"be":"#634b30","bs":"#7d5d3b","bc":"#54381e","br":"3px","bse":"1px","bsh":true,"bsbr":0,"bsc":"#a6827e","bsi":true,"bsox":0,"bsoy":"1px","bssr":0,"fc":"#fff","ff":"Arial","fs":"13px","fse":false,"fw":false,"px":"24px","py":"6px","pbc":"#f5f5f5","s":false,"t":"themeforest","ts":true,"tsbr":0,"tsc":"#4d3534","tsox":0,"tsoy":"1px"},{"be":"#0061a7","bs":"#007dc1","bc":"#124d77","br":"3px","bse":"1px","bsh":true,"bsbr":0,"bsc":"#54a3f7","bsi":true,"bsox":0,"bsoy":"1px","bssr":0,"fc":"#fff","ff":"Arial","fs":"13px","fse":false,"fw":false,"px":"24px","py":"6px","pbc":"#f5f5f5","s":false,"t":"graphicriver","ts":true,"tsbr":0,"tsc":"#154682","tsox":0,"tsoy":"1px"},{"be":"#019ad2","bs":"#33bdef","bc":"#057fd0","br":"6px","bse":"1px","bsh":true,"bsbr":0,"bsc":"#f0f7fa","bsi":false,"bsox":0,"bsoy":"1px","bssr":0,"fc":"#fff","ff":"Arial","fs":"15px","fse":false,"fw":true,"px":"24px","py":"6px","pbc":"#e2e2e2","s":false,"t":"twitter","ts":true,"tsbr":0,"tsc":"#5b6178","tsox":0,"tsoy":"-1px"},{"be":"#ffab23","bs":"#ffec64","bc":"#ffaa22","br":"6px","bse":"1px","bsh":true,"bsbr":0,"bsc":"#fff6af","bsi":false,"bsox":0,"bsoy":"1px","bssr":0,"fc":"#333333","ff":"Arial","fs":"15px","fse":false,"fw":true,"px":"24px","py":"6px","pbc":"#e2e2e2","s":false,"t":"twitter","ts":true,"tsbr":0,"tsc":"#ffee66","tsox":0,"tsoy":"1px"},{"be":"#68a54b","bs":"#74ad5a","bc":"#3b6e22","br":0,"bse":"1px","bsh":true,"bsbr":0,"bsc":"#9acc85","bsi":true,"bsox":0,"bsoy":"1px","bssr":0,"fc":"#fff","ff":"Arial","fs":"13px","fse":false,"fw":true,"px":"12px","py":"6px","pbc":"#f5f5f5","s":false,"t":"facebook","ts":false,"tsbr":0,"tsc":"#92b879","tsox":0,"tsoy":"1px"},{"be":"#5972a7","bs":"#637aad","bc":"#314179","br":0,"bse":"1px","bsh":true,"bsbr":0,"bsc":"#7a8eb9","bsi":true,"bsox":0,"bsoy":"1px","bssr":0,"fc":"#fff","ff":"Arial","fs":"13px","fse":false,"fw":true,"px":"12px","py":"6px","pbc":"#3b5898","s":false,"t":"facebook","ts":false,"tsbr":0,"tsc":"#7a8eb9","tsox":0,"tsoy":"1px"},{"be":"#bab1ba","bs":"#ededed","bc":"#d6bcd6","br":"15px","bse":"1px","bsh":true,"bsbr":0,"bsc":"#899599","bsi":false,"bsox":"3px","bsoy":"4px","bssr":0,"fc":"#3a8a9e","ff":"Arial","fs":"17px","fse":false,"fw":false,"px":"25px","py":"7px","pbc":"#f5f5f5","s":false,"t":"grey","ts":true,"tsbr":0,"tsc":"#e1e2ed","tsox":0,"tsoy":"1px"},{"be":"#f24437","bs":"#c62d1f","bc":"#d02718","br":"18px","bse":"1px","bsh":true,"bsbr":0,"bsc":"#8a2a21","bsi":false,"bsox":"3px","bsoy":"4px","bssr":0,"fc":"#fff","ff":"Arial","fs":"17px","fse":false,"fw":false,"px":"25px","py":"7px","pbc":"#f5f5f5","s":false,"t":"red","ts":true,"tsbr":0,"tsc":"#810e05","tsox":0,"tsoy":"1px"},{"be":"#378de5","bs":"#79bbff","bc":"#337bc4","br":"5px","bse":"1px","bsh":true,"bsbr":0,"bsc":"#1564ad","bsi":false,"bsox":"3px","bsoy":"4px","bssr":0,"fc":"#fff","ff":"Arial","fs":"17px","fse":false,"fw":true,"px":"44px","py":"12px","pbc":"#f5f5f5","s":false,"t":"blue","ts":true,"tsbr":0,"tsc":"#528ecc","tsox":0,"tsoy":"1px"},{"be":"#9ba892","bs":"#dbe6c4","bc":"#b2b8ad","br":"6px","bse":"1px","bsh":true,"bsbr":"14px","bsc":"#f2fadc","bsi":true,"bsox":0,"bsoy":0,"bssr":"-3px","fc":"#757d6f","ff":"Arial","fs":"15px","fse":false,"fw":true,"px":"24px","py":"6px","pbc":"#f5f5f5","s":false,"t":"olive","ts":true,"tsbr":0,"tsc":"#ced9bf","tsox":0,"tsoy":"1px"},{"be":"#bc80ea","bs":"#dfbdfa","bc":"#c584f3","br":"6px","bse":"1px","bsh":true,"bsbr":0,"bsc":"#efdcfb","bsi":true,"bsox":0,"bsoy":"1px","bssr":0,"fc":"#fff","ff":"Arial","fs":"15px","fse":false,"fw":true,"px":"24px","py":"6px","pbc":"#f5f5f5","s":false,"t":"purple","ts":true,"tsbr":0,"tsc":"#9752cc","tsox":0,"tsoy":"1px"},{"be":"#80b5ea","bs":"#bddbfa","bc":"#84bbf3","br":"6px","bse":"1px","bsh":true,"bsbr":0,"bsc":"#dcecfb","bsi":true,"bsox":0,"bsoy":"1px","bssr":0,"fc":"#fff","ff":"Arial","fs":"15px","fse":false,"fw":true,"px":"24px","py":"6px","pbc":"#f5f5f5","s":false,"t":"light blue","ts":true,"tsbr":0,"tsc":"#528ecc","tsox":0,"tsoy":"1px"},{"be":"#f6f6f6","bs":"#fff","bc":"#dcdcdc","br":"6px","bse":"1px","bsh":true,"bsbr":0,"bsc":"#fff","bsi":true,"bsox":0,"bsoy":"1px","bssr":0,"fc":"#666666","ff":"Arial","fs":"15px","fse":false,"fw":true,"px":"24px","py":"6px","pbc":"#f5f5f5","s":false,"t":"white","ts":true,"tsbr":0,"tsc":"#fff","tsox":0,"tsoy":"1px"},{"be":"#e4685d","bs":"#fc8d83","bc":"#d83526","br":"6px","bse":"1px","bsh":true,"bsbr":0,"bsc":"#f7c5c0","bsi":true,"bsox":0,"bsoy":"1px","bssr":0,"fc":"#fff","ff":"Arial","fs":"15px","fse":false,"fw":true,"px":"24px","py":"6px","pbc":"#f5f5f5","s":false,"t":"light red","ts":true,"tsbr":0,"tsc":"#b23e35","tsox":0,"tsoy":"1px"},{"be":"#468ccf","bs":"#63b8ee","bc":"#3866a3","br":"6px","bse":"1px","bsh":true,"bsbr":0,"bsc":"#bee2f9","bsi":true,"bsox":0,"bsoy":"1px","bssr":0,"fc":"#14396a","ff":"Arial","fs":"15px","fse":false,"fw":true,"px":"24px","py":"6px","pbc":"#f5f5f5","s":false,"t":"dark blue","ts":true,"tsbr":0,"tsc":"#7cacde","tsox":0,"tsoy":"1px"},{"be":"#ffab23","bs":"#ffec64","bc":"#ffaa22","br":"6px","bse":"1px","bsh":true,"bsbr":0,"bsc":"#fff6af","bsi":true,"bsox":0,"bsoy":"1px","bssr":0,"fc":"#333333","ff":"Arial","fs":"15px","fse":false,"fw":true,"px":"24px","py":"6px","pbc":"#f5f5f5","s":false,"t":"orange","ts":true,"tsbr":0,"tsc":"#ffee66","tsox":0,"tsoy":"1px"},{"be":"#77a809","bs":"#89c403","bc":"#74b807","br":"6px","bse":"1px","bsh":true,"bsbr":0,"bsc":"#a4e271","bsi":true,"bsox":0,"bsoy":"1px","bssr":0,"fc":"#fff","ff":"Arial","fs":"15px","fse":false,"fw":true,"px":"24px","py":"6px","pbc":"#f5f5f5","s":false,"t":"green","ts":true,"tsbr":0,"tsc":"#528009","tsox":0,"tsoy":"1px"},{"be":"#e9e9e9","bs":"#f9f9f9","bc":"#dcdcdc","br":"6px","bse":"1px","bsh":true,"bsbr":0,"bsc":"#fff","bsi":true,"bsox":0,"bsoy":"1px","bssr":0,"fc":"#666666","ff":"Arial","fs":"15px","fse":false,"fw":true,"px":"24px","py":"6px","pbc":"#f5f5f5","s":false,"t":"light grey","ts":true,"tsbr":0,"tsc":"#fff","tsox":0,"tsoy":"1px"},{"be":"#a20dbd","bs":"#c123de","bc":"#a511c0","br":"6px","bse":"1px","bsh":true,"bsbr":0,"bsc":"#e184f3","bsi":true,"bsox":0,"bsoy":"1px","bssr":0,"fc":"#fff","ff":"Arial","fs":"15px","fse":false,"fw":true,"px":"24px","py":"6px","pbc":"#f5f5f5","s":false,"t":"purple","ts":true,"tsbr":0,"tsc":"#9b14b3","tsox":0,"tsoy":"1px"},{"be":"#1e62d0","bs":"#3d94f6","bc":"#337fed","br":"6px","bse":"1px","bsh":true,"bsbr":0,"bsc":"#97c4fe","bsi":true,"bsox":0,"bsoy":"1px","bssr":0,"fc":"#fff","ff":"Arial","fs":"15px","fse":false,"fw":true,"px":"24px","py":"6px","pbc":"#f5f5f5","s":false,"t":"blue","ts":true,"tsbr":0,"tsc":"#1570cd","tsox":0,"tsoy":"1px"},{"be":"#ef027d","bs":"#ff5bb0","bc":"#ee1eb5","br":"6px","bse":"1px","bsh":true,"bsbr":0,"bsc":"#fbafe3","bsi":true,"bsox":0,"bsoy":"1px","bssr":0,"fc":"#fff","ff":"Arial","fs":"15px","fse":false,"fw":true,"px":"24px","py":"6px","pbc":"#f5f5f5","s":false,"t":"pink","ts":true,"tsbr":0,"tsc":"#c70067","tsox":0,"tsoy":"1px"},{"be":"#f2ab1e","bs":"#f0c911","bc":"#e65f44","br":"6px","bse":"1px","bsh":true,"bsbr":0,"bsc":"#f9eca0","bsi":true,"bsox":0,"bsoy":"1px","bssr":0,"fc":"#c92200","ff":"Arial","fs":"15px","fse":false,"fw":true,"px":"24px","py":"6px","pbc":"#f5f5f5","s":false,"t":"orange","ts":true,"tsbr":0,"tsc":"#ded17c","tsox":0,"tsoy":"1px"},{"be":"#c62d1f","bs":"#f24537","bc":"#d02718","br":"6px","bse":"1px","bsh":true,"bsbr":0,"bsc":"#f5978e","bsi":true,"bsox":0,"bsoy":"1px","bssr":0,"fc":"#fff","ff":"Arial","fs":"15px","fse":false,"fw":true,"px":"24px","py":"6px","pbc":"#f5f5f5","s":false,"t":"red","ts":true,"tsbr":0,"tsc":"#810e05","tsox":0,"tsoy":"1px"},{"be":"#a5cc52","bs":"#b8e356","bc":"#83c41a","br":"6px","bse":"1px","bsh":true,"bsbr":0,"bsc":"#d9fbbe","bsi":true,"bsox":0,"bsoy":"1px","bssr":0,"fc":"#fff","ff":"Arial","fs":"15px","fse":false,"fw":true,"px":"24px","py":"6px","pbc":"#f5f5f5","s":false,"t":"light green","ts":true,"tsbr":0,"tsc":"#86ae47","tsox":0,"tsoy":"1px"},{"be":"#fb9e25","bs":"#ffc477","bc":"#eeb44f","br":"6px","bse":"1px","bsh":true,"bsbr":0,"bsc":"#fce2c1","bsi":true,"bsox":0,"bsoy":"1px","bssr":0,"fc":"#fff","ff":"Arial","fs":"15px","fse":false,"fw":true,"px":"24px","py":"6px","pbc":"#f5f5f5","s":false,"t":"light orange","ts":true,"tsbr":0,"tsc":"#cc9f52","tsox":0,"tsoy":"1px"},{"be":"#dfdfdf","bs":"#ededed","bc":"#dcdcdc","br":"6px","bse":"1px","bsh":true,"bsbr":0,"bsc":"#fff","bsi":true,"bsox":0,"bsoy":"1px","bssr":0,"fc":"#777777","ff":"Arial","fs":"15px","fse":false,"fw":true,"px":"24px","py":"6px","pbc":"#f5f5f5","s":false,"t":"grey","ts":true,"tsbr":0,"tsc":"#fff","tsox":0,"tsoy":"1px"},{"be":"#378de5","bs":"#79bbff","bc":"#84bbf3","br":"6px","bse":"1px","bsh":true,"bsbr":0,"bsc":"#bbdaf7","bsi":true,"bsox":0,"bsoy":"1px","bssr":0,"fc":"#fff","ff":"Arial","fs":"15px","fse":false,"fw":true,"px":"24px","py":"6px","pbc":"#f5f5f5","s":false,"t":"blue","ts":true,"tsbr":0,"tsc":"#528ecc","tsox":0,"tsoy":"1px"},{"be":"#5cb811","bs":"#77d42a","bc":"#268a16","br":"6px","bse":"1px","bsh":true,"bsbr":0,"bsc":"#caefab","bsi":true,"bsox":0,"bsoy":"1px","bssr":0,"fc":"#306108","ff":"Arial","fs":"15px","fse":false,"fw":true,"px":"24px","py":"6px","pbc":"#f5f5f5","s":false,"t":"green","ts":true,"tsbr":0,"tsc":"#aade7c","tsox":0,"tsoy":"1px"},{"be":"#ce0100","bs":"#fe1a00","bc":"#d83526","br":"6px","bse":"1px","bsh":true,"bsbr":0,"bsc":"#f29c93","bsi":true,"bsox":0,"bsoy":"1px","bssr":0,"fc":"#fff","ff":"Arial","fs":"15px","fse":false,"fw":true,"px":"24px","py":"6px","pbc":"#f5f5f5","s":false,"t":"red","ts":true,"tsbr":0,"tsc":"#b23e35","tsox":0,"tsoy":"1px"}]');
/***/ }),
/***/ 45128:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ ColorInput: function() { return /* binding */ ColorInput; }
/* harmony export */ });
/* harmony import */ var _swc_helpers_call_super__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(80294);
/* harmony import */ var _swc_helpers_class_call_check__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(20616);
/* harmony import */ var _swc_helpers_create_class__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(67709);
/* harmony import */ var _swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(82749);
/* harmony import */ var _swc_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(18766);
/* harmony import */ var _swc_helpers_instanceof__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(2868);
/* harmony import */ var _swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(31635);
/* harmony import */ var a_color_picker__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(46146);
/* harmony import */ var a_color_picker__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(a_color_picker__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var jodit_esm_core_constants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(82758);
/* harmony import */ var jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(65478);
/* harmony import */ var jodit_esm_core_helpers__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(21537);
/* harmony import */ var jodit_esm_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(38837);
/* harmony import */ var jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(67510);
/* harmony import */ var jodit_esm_modules__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(41409);
/*!
* Jodit Editor PRO (https://xdsoft.net/jodit/)
* See LICENSE.md in the project root for license information.
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
*/
var ColorInput = /*#__PURE__*/ function(UIInput) {
"use strict";
(0,_swc_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__._)(ColorInput, UIInput);
function ColorInput(jodit, options) {
(0,_swc_helpers_class_call_check__WEBPACK_IMPORTED_MODULE_1__._)(this, ColorInput);
var _this;
_this = (0,_swc_helpers_call_super__WEBPACK_IMPORTED_MODULE_0__._)(this, ColorInput, [
jodit,
options
]), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_3__._)(_this, "trigger", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_3__._)(_this, "popup", void 0);
var popup = new jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_12__.Popup(jodit), parse = function parse(c) {
return a_color_picker__WEBPACK_IMPORTED_MODULE_7__.parseColor(c, 'hex');
};
_this.popup = popup;
_this.trigger = (0,jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_12__.Button)(_this.j, 'ok');
var wrapper = _this.getElm('wrapper');
(0,jodit_esm_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_11__.assert)(wrapper != null, 'wrapper element does not exist');
wrapper.appendChild(_this.trigger.container);
_this.trigger.container.classList.add(_this.getFullElName('trigger'));
_this.trigger.onAction(function() {
var _this_state_onChange, _this_state;
(_this_state_onChange = (_this_state = _this.state).onChange) === null || _this_state_onChange === void 0 ? void 0 : _this_state_onChange.call(_this_state, _this.value);
popup.close();
});
popup.setMod('padding', false).setMod('max-height', false);
var pickerElement = _this.j.create.div(_this.getFullElName('picker'));
var picker = a_color_picker__WEBPACK_IMPORTED_MODULE_7__.createPicker(pickerElement, {
paletteEditable: true,
showAlpha: true,
palette: 'PALETTE_MATERIAL_CHROME'
}).on('change', function(picker, color) {
if (!_this.isFocused) {
_this.value = a_color_picker__WEBPACK_IMPORTED_MODULE_7__.parseColor(color || '', 'hex');
}
});
_this.j.e.on(_this, 'change', function() {
if (parse(_this.value) !== picker.color) {
picker.color = _this.value;
}
});
popup.setContent(pickerElement);
_this.j.e.on(_this.nativeInput, 'click', function() {
popup.parentElement = _this;
if ((0,_swc_helpers_instanceof__WEBPACK_IMPORTED_MODULE_5__._)(_this.jodit, jodit_esm_modules__WEBPACK_IMPORTED_MODULE_13__.Dialog)) {
popup.setZIndex(_this.jodit.getZIndex() + 1);
}
popup.open(function() {
return (0,jodit_esm_core_helpers__WEBPACK_IMPORTED_MODULE_10__.position)(_this.container);
});
});
_this.onChangeValue();
_this.onChangeSelfValue();
return _this;
}
(0,_swc_helpers_create_class__WEBPACK_IMPORTED_MODULE_2__._)(ColorInput, [
{
key: "className",
value: /** @override */ function className() {
return 'ColorInput';
}
},
{
key: "afterSetMode",
value: function afterSetMode(name, value) {
if (name === 'slim' && value) {
this.nativeInput.setAttribute('readonly', 'true');
}
}
},
{
key: "onChangeSelfValue",
value: function onChangeSelfValue() {
this.nativeInput.style.backgroundColor = this.value;
}
},
{
key: "onEscKeyDown",
value: function onEscKeyDown(e) {
if (e.key === jodit_esm_core_constants__WEBPACK_IMPORTED_MODULE_8__.KEY_ESC) {
var _this_popup;
(_this_popup = this.popup) === null || _this_popup === void 0 ? void 0 : _this_popup.close();
}
}
}
]);
return ColorInput;
}(jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_12__.UIInput);
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_6__.__decorate)([
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_9__.watch)(':change')
], ColorInput.prototype, "onChangeSelfValue", null);
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_6__.__decorate)([
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_9__.watch)('nativeInput:keydown')
], ColorInput.prototype, "onEscKeyDown", null);
ColorInput = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_6__.__decorate)([
jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_9__.component
], ColorInput);
/***/ }),
/***/ 45632:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ buttonGenerator: function() { return /* binding */ buttonGenerator; }
/* harmony export */ });
/* harmony import */ var _swc_helpers_call_super__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(80294);
/* harmony import */ var _swc_helpers_class_call_check__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(20616);
/* harmony import */ var _swc_helpers_create_class__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(67709);
/* harmony import */ var _swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(82749);
/* harmony import */ var _swc_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(18766);
/* harmony import */ var _swc_helpers_wrap_native_super__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(23078);
/* harmony import */ var _swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(31635);
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(82158);
/* harmony import */ var _ui_button_button__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(82520);
/* harmony import */ var _ui_generator_button_generator__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(35987);
/* harmony import */ var jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(65478);
/* harmony import */ var jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(2748);
/* harmony import */ var jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(50911);
/* harmony import */ var jodit_esm_core_ui_button__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(62843);
/* harmony import */ var jodit_esm_modules_dialog_dialog__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(78584);
/* harmony import */ var jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(2692);
/*!
* Jodit Editor PRO (https://xdsoft.net/jodit/)
* See LICENSE.md in the project root for license information.
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
*/
var buttonGenerator = /*#__PURE__*/ function(Plugin) {
"use strict";
(0,_swc_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__._)(buttonGenerator, Plugin);
function buttonGenerator() {
(0,_swc_helpers_class_call_check__WEBPACK_IMPORTED_MODULE_1__._)(this, buttonGenerator);
var _this;
_this = (0,_swc_helpers_call_super__WEBPACK_IMPORTED_MODULE_0__._)(this, buttonGenerator, arguments), /** @override */ (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_3__._)(_this, "hasStyle", !jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_15__.JoditPro.fatMode), /** @override */ (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_3__._)(_this, "buttons", [
{
group: 'form',
name: 'buttonGenerator'
}
]), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_3__._)(_this, "__dialog", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_3__._)(_this, "__ui", void 0);
return _this;
}
(0,_swc_helpers_create_class__WEBPACK_IMPORTED_MODULE_2__._)(buttonGenerator, [
{
key: "afterInit",
value: function afterInit(jodit) {
var _this = this;
jodit.e.on('toggleButtonGenerator', this.toggleButtonGenerator).on('isButtonGeneratorOpened', function() {
var _this___dialog;
return (_this___dialog = _this.__dialog) === null || _this___dialog === void 0 ? void 0 : _this___dialog.isOpened;
});
}
},
{
key: "toggleButtonGenerator",
value: function toggleButtonGenerator(target) {
var _this = this;
if (!this.__dialog) {
this.__dialog = new jodit_esm_modules_dialog_dialog__WEBPACK_IMPORTED_MODULE_14__.Dialog({
language: this.j.o.language,
theme: this.j.o.theme
});
this.__ui = new _ui_generator_button_generator__WEBPACK_IMPORTED_MODULE_9__.UIButtonGenerator(this.__dialog);
this.__dialog.setHeader('Button Generator').setContent(this.__ui).setSize(730, 700);
}
if (target && !jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_11__.Dom.isTag(target, new Set([
'button',
'a'
]))) {
target = undefined;
}
var ui = this.__ui;
var dlg = this.__dialog;
if (dlg.isOpened) {
dlg.close();
} else {
target && _ui_button_button__WEBPACK_IMPORTED_MODULE_8__.UIGButton.extractStyle(ui.state, target);
ui.target = target;
ui.update();
dlg.setFooter([
(0,jodit_esm_core_ui_button__WEBPACK_IMPORTED_MODULE_13__.Button)(dlg, 'cancel', 'Cancel', 'default').onAction(function() {
return dlg.close();
}),
(0,jodit_esm_core_ui_button__WEBPACK_IMPORTED_MODULE_13__.Button)(dlg, 'ok', target ? 'Update' : 'Insert', 'primary').onAction(function() {
if (!target) {
target = _this.j.createInside.element(ui.state.href ? 'a' : 'button');
_this.j.s.insertNode(target, true, false);
}
_ui_button_button__WEBPACK_IMPORTED_MODULE_8__.UIGButton.applyStyle(ui.state, target);
target.className = ui.state.className || '';
_this.jodit.e.fire('synchro');
dlg.close();
})
]).open();
}
}
},
{
key: "onDblClick",
value: /**
* DBLClick handler
*/ function onDblClick(e) {
if (jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_11__.Dom.isTag(e.target, 'button')) {
this.toggleButtonGenerator(e.target);
}
}
},
{
key: "beforeDestruct",
value: function beforeDestruct(jodit) {
var _this___dialog;
(_this___dialog = this.__dialog) === null || _this___dialog === void 0 ? void 0 : _this___dialog.destruct();
}
}
]);
return buttonGenerator;
}((0,_swc_helpers_wrap_native_super__WEBPACK_IMPORTED_MODULE_5__._)(jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_12__.Plugin));
/** @override */ (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_3__._)(buttonGenerator, "requires", [
'license',
'color-picker'
]);
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_6__.__decorate)([
jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_10__.autobind
], buttonGenerator.prototype, "toggleButtonGenerator", null);
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_6__.__decorate)([
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_10__.watch)(':dblclick')
], buttonGenerator.prototype, "onDblClick", null);
jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_15__.JoditPro.plugins.add('button-generator', buttonGenerator);
/***/ }),
/***/ 46146:
/***/ (function(module, exports, __webpack_require__) {
/* module decorator */ module = __webpack_require__.nmd(module);
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;function _instanceof(left, right) {
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
return !!right[Symbol.hasInstance](left);
} else {
return left instanceof right;
}
}
function _type_of(obj) {
"@swc/helpers - typeof";
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
}
/*!
* a-color-picker (https://github.com/narsenico/a-color-picker)
*
* Copyright (c) 2017-2018, Gianfranco Caldi.
* Released under the MIT License.
*/ !function(e1, t) {
"object" == ( false ? 0 : _type_of(exports)) && "object" == ( false ? 0 : _type_of(module)) ? module.exports = t() : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (t),
__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : 0;
}("undefined" != typeof self ? self : this, function() {
return function(e1) {
var t = {};
function r(i) {
if (t[i]) return t[i].exports;
var o = t[i] = {
i: i,
l: !1,
exports: {}
};
return e1[i].call(o.exports, o, o.exports, r), o.l = !0, o.exports;
}
return r.m = e1, r.c = t, r.d = function(e1, t, i) {
r.o(e1, t) || Object.defineProperty(e1, t, {
enumerable: !0,
get: i
});
}, r.r = function(e1) {
"undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e1, Symbol.toStringTag, {
value: "Module"
}), Object.defineProperty(e1, "__esModule", {
value: !0
});
}, r.t = function(e1, t) {
if (1 & t && (e1 = r(e1)), 8 & t) return e1;
if (4 & t && "object" == (typeof e1 === "undefined" ? "undefined" : _type_of(e1)) && e1 && e1.__esModule) return e1;
var i = Object.create(null);
if (r.r(i), Object.defineProperty(i, "default", {
enumerable: !0,
value: e1
}), 2 & t && "string" != typeof e1) for(var o in e1)r.d(i, o, (function(t) {
return e1[t];
}).bind(null, o));
return i;
}, r.n = function(e1) {
var t = e1 && e1.__esModule ? function() {
return e1.default;
} : function() {
return e1;
};
return r.d(t, "a", t), t;
}, r.o = function(e1, t) {
return Object.prototype.hasOwnProperty.call(e1, t);
}, r.p = "", r(r.s = 1);
}([
function(e1, t, r) {
"use strict";
/*!
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/ var i = r(3);
function o(e1) {
return !0 === i(e1) && "[object Object]" === Object.prototype.toString.call(e1);
}
e1.exports = function(e1) {
var t, _$r;
return !1 !== o(e1) && "function" == typeof (t = e1.constructor) && !1 !== o(_$r = t.prototype) && !1 !== _$r.hasOwnProperty("isPrototypeOf");
};
},
function(e1, t, r) {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
}), t.VERSION = t.PALETTE_MATERIAL_CHROME = t.PALETTE_MATERIAL_500 = t.COLOR_NAMES = t.getLuminance = t.intToRgb = t.rgbToInt = t.rgbToHsv = t.rgbToHsl = t.hslToRgb = t.rgbToHex = t.parseColor = t.parseColorToHsla = t.parseColorToHsl = t.parseColorToRgba = t.parseColorToRgb = t.from = t.createPicker = void 0;
var i = function() {
function e1(e1, t) {
for(var _$r = 0; _$r < t.length; _$r++){
var i = t[_$r];
i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.wri