jodit-pro
Version:
PRO Version of Jodit Editor
1,061 lines (946 loc) • 181 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([[946],{
/***/ 482:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ googleMaps: function() { return /* binding */ googleMaps; }
/* harmony export */ });
/* harmony import */ var _swc_helpers_async_to_generator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(77688);
/* harmony import */ var _swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(82749);
/* harmony import */ var _swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(56075);
/* harmony import */ var _swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(31635);
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(55029);
/* harmony import */ var _assets__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(99413);
/* harmony import */ var _helpers_const__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(17298);
/* harmony import */ var _helpers_generate_js_script__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(61818);
/* harmony import */ var _helpers_helpers__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(67912);
/* harmony import */ var _helpers_static_url__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(92931);
/* harmony import */ var _ui_combo_box_combo_box__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(65805);
/* harmony import */ var _ui__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(4774);
/* harmony import */ var jodit_esm_core_constants__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(82758);
/* harmony import */ var jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(65478);
/* harmony import */ var jodit_esm_core_helpers__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(21537);
/* harmony import */ var jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(50911);
/* harmony import */ var jodit_esm_core_ui_button__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(62843);
/* harmony import */ var jodit_esm_modules_dialog_dialog__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(78584);
/* harmony import */ var jodit_esm_modules_widget__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(92762);
/* harmony import */ var jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_19__ = __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/
*/
// @ts-ignore
window['JoditGoogleReadyHandler'] = _helpers_helpers__WEBPACK_IMPORTED_MODULE_8__.GoogleReadyHandler;
class googleMaps extends jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_15__.Plugin {
className() {
return 'google-maps';
}
afterInit(jodit) {
jodit.registerCommand(_helpers_const__WEBPACK_IMPORTED_MODULE_6__.COMMAND_OPEN_DIALOG, ()=>{
void this.openMapEditor(null, {});
});
}
beforeDestruct(jodit) {}
onOpenOnDblClick(image) {
if (image.dataset.googleMaps) {
let json;
try {
json = JSON.parse(this.j.ow.atob(image.dataset.googleMaps));
} catch (unused) {}
void this.openMapEditor(image, json);
return false;
}
}
openMapEditor(target, initialState) {
return (0,_swc_helpers_async_to_generator__WEBPACK_IMPORTED_MODULE_0__._)(function*() {
const jodit = this.j;
const dialog = this.getDialog();
const state = this.j.o.googleMaps.saveStateInStorage ? dialog.storage.get(_helpers_const__WEBPACK_IMPORTED_MODULE_6__.STORAGE_KEY) : undefined;
const { apiUrl } = this.jodit.o.googleMaps;
if (!(0,_helpers_helpers__WEBPACK_IMPORTED_MODULE_8__.isApiAvailable)()) {
void (0,jodit_esm_core_helpers__WEBPACK_IMPORTED_MODULE_14__.appendScriptAsync)(this.jodit, apiUrl.replace(/\${([^}]+)}/g, (_, key)=>{
var _this_get;
return (_this_get = this.get(key)) !== null && _this_get !== void 0 ? _this_get : '';
}));
}
const openState = (0,_swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_2__._)({
type: this.j.o.googleMaps.map.type,
layer: this.j.o.googleMaps.map.layer,
size: this.j.o.googleMaps.map.size
}, state, initialState);
const uiMap = new _ui__WEBPACK_IMPORTED_MODULE_11__.UIMap(dialog, openState, this.j.options);
uiMap.container.classList.add(dialog.getFullElName('map'));
const search = new _ui_combo_box_combo_box__WEBPACK_IMPORTED_MODULE_10__.UIComboBox(jodit, {
icon: 'search',
placeholder: 'Search',
clearButton: true
}).setMod('in-header', true);
search.container.classList.add(dialog.getFullElName('search'));
this.j.async.promise((resolve)=>{
if ((0,_helpers_helpers__WEBPACK_IMPORTED_MODULE_8__.isApiAvailable)()) {
resolve(0);
return;
}
// TODO - Need check googleReady
const intervalChecker = ()=>{
if ((0,_helpers_helpers__WEBPACK_IMPORTED_MODULE_8__.isApiAvailable)()) {
resolve(0);
} else {
this.j.async.setTimeout(intervalChecker, 100);
}
};
intervalChecker();
(0,_helpers_helpers__WEBPACK_IMPORTED_MODULE_8__.googleReady)(resolve);
}).then(()=>{
uiMap.setStatus('ready');
search.setStatus('ready');
});
this.j.e.on(search, 'select', (marker, bound)=>{
if (bound) {
uiMap.map.fitBounds(bound);
return;
}
if (marker) {
uiMap.state.center = [
marker.lat(),
marker.lng()
];
}
});
if (!state) {
if (this.j.o.googleMaps.map.center === 'auto') {
navigator.geolocation.getCurrentPosition((position)=>{
uiMap.state.center = [
position.coords.latitude,
position.coords.longitude
];
}, ()=>{
uiMap.state.center = this.j.o.googleMaps.map.defaultCenter;
});
} else {
uiMap.state.center = this.j.o.googleMaps.map.center;
}
}
dialog.setSize(...jodit.o.googleMaps.dialog.size).setHeader([
search,
' ',
(0,jodit_esm_core_ui_button__WEBPACK_IMPORTED_MODULE_16__.Button)(jodit, 'eye').onAction(()=>{
const image = this.jodit.createInside.element('img');
image.src = (0,_helpers_static_url__WEBPACK_IMPORTED_MODULE_9__.staticUrl)(uiMap);
image.dataset.googleMaps = btoa(uiMap.json());
const data = {
value: image.outerHTML
};
this.onAfterGetValueFromEditor(data);
jodit.execCommand('preview', null, data.value);
})
]).setContent((0,jodit_esm_modules_widget__WEBPACK_IMPORTED_MODULE_18__.TabsWidget)(jodit, [
{
name: 'Map',
icon: 'map',
content: uiMap
},
{
name: 'Settings',
content: new _ui__WEBPACK_IMPORTED_MODULE_11__.UIMapsPropsForm(jodit, uiMap.state)
},
{
name: 'Controls',
icon: 'menu',
content: new _ui__WEBPACK_IMPORTED_MODULE_11__.UIMapsControlsForm(jodit, uiMap.state)
}
])).setFooter([
(0,jodit_esm_core_ui_button__WEBPACK_IMPORTED_MODULE_16__.Button)(jodit, 'cancel', 'Cancel', 'default').onAction(()=>dialog.close()),
(0,jodit_esm_core_ui_button__WEBPACK_IMPORTED_MODULE_16__.Button)(jodit, 'ok', target ? 'Save' : 'Insert', 'primary').onAction(()=>{
uiMap.destruct();
search.destruct();
dialog.e.off('beforeClose', onCLose);
dialog.close();
this.insertMap(target, uiMap);
})
]).open();
const onCLose = ()=>{
if (uiMap.state.elements.length && JSON.stringify(uiMap.state.elements) !== JSON.stringify(openState.elements)) {
if (!jodit_esm_core_constants__WEBPACK_IMPORTED_MODULE_12__.IS_TEST && !confirm(this.i18n('Are you sure?'))) {
return false;
}
}
uiMap.destruct();
search.destruct();
dialog.e.off('beforeClose', onCLose);
};
dialog.e.on('beforeClose', onCLose);
}).call(this);
}
getDialog() {
if (!this.dialog) {
const dialog = new jodit_esm_modules_dialog_dialog__WEBPACK_IMPORTED_MODULE_17__.Dialog({
language: this.j.o.language
});
dialog.container.classList.add(this.getFullElName(''));
this.dialog = dialog;
}
return this.dialog;
}
insertMap(target, uiMap) {
const image = target !== null && target !== void 0 ? target : this.jodit.createInside.element('img');
image.src = (0,_helpers_static_url__WEBPACK_IMPORTED_MODULE_9__.staticUrl)(uiMap);
image.dataset.googleMaps = btoa(uiMap.json());
target || this.jodit.s.insertImage(image);
}
onBeforeSetNativeEditorValue(data) {
data.value = data.value.replace(// @ts-ignore
RegExp("<script[^>]+jodit-google-maps-init[^>]+>.*?<\\/script>", "gs"), '');
}
onAfterGetValueFromEditor(data, consumer) {
if (this.j.o.googleMaps.useStaticImage || consumer === jodit_esm_core_constants__WEBPACK_IMPORTED_MODULE_12__.SOURCE_CONSUMER) {
return;
}
data.value = data.value.replace(// @ts-ignore
RegExp("(<img[^>]+)([\"']?)data-google-maps\\2\\s*=([\"'])([^\"']+)\\3([^>]*>)", "gs"), (_, _1, q, q2, jsonB64, rest)=>{
let json = {};
try {
json = JSON.parse(this.j.ow.atob(jsonB64));
} catch (unused) {}
return `${_1} id="${json.uid}" ${q}data-google-maps${q}=${q2}${jsonB64}${q2}${rest}${(0,_helpers_generate_js_script__WEBPACK_IMPORTED_MODULE_7__.generateJSScript)(this.j, json)}`;
});
}
constructor(...args){
super(...args), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_1__._)(this, "buttons", [
{
group: 'media',
name: 'googleMaps'
}
]), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_1__._)(this, "dialog", null);
}
}
(0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_1__._)(googleMaps, "requires", [
'license',
'color-picker'
]);
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_3__.__decorate)([
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_13__.watch)('?:openOnDblClick')
], googleMaps.prototype, "onOpenOnDblClick", null);
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_3__.__decorate)([
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_13__.watch)(':beforeSetNativeEditorValue')
], googleMaps.prototype, "onBeforeSetNativeEditorValue", null);
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_3__.__decorate)([
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_13__.watch)(':afterGetValueFromEditor')
], googleMaps.prototype, "onAfterGetValueFromEditor", null);
jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_19__.JoditPro.plugins.add('google-maps', googleMaps);
/***/ }),
/***/ 1475:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ initOrUpdateElementFromState: function() { return /* binding */ initOrUpdateElementFromState; }
/* harmony export */ });
/* harmony import */ var _on_change_geometries__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(53454);
/* harmony import */ var _open_props_dialog__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(11079);
/* harmony import */ var _update_state_and_gme__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(72690);
/* harmony import */ var jodit_esm_core_global__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(580);
/* harmony import */ var jodit_esm_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(12153);
/* harmony import */ var jodit_pro_plugins_google_maps_helpers_helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(67912);
/*!
* 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/
*/
function initOrUpdateElementFromState(state, index) {
const elm = this.mapElements[index];
if (elm) {
if (elm.state.type === state.type) {
return _update_state_and_gme__WEBPACK_IMPORTED_MODULE_2__.updateStateAndGme.call(this, state, index);
}
elm.gme.setMap(null);
}
let gme;
switch(state.type){
case 'text':
gme = new google.maps.Marker({
position: new google.maps.LatLng(state.coordinates[0], state.coordinates[1]),
draggable: true,
title: state.text,
map: this.map
});
break;
case 'marker':
gme = new google.maps.Marker({
position: new google.maps.LatLng(state.coordinates[0], state.coordinates[1]),
draggable: true,
label: state.showCaption ? state.title : '',
title: state.title,
icon: state.icon ? jodit_esm_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__.Icon.get(state.icon) : undefined,
map: this.map
});
break;
case 'polyline':
case 'polygon':
{
const coordinates = (0,jodit_pro_plugins_google_maps_helpers_helpers__WEBPACK_IMPORTED_MODULE_5__.arrayToPath)(state.coordinates);
gme = new google.maps[state.type === 'polygon' ? 'Polygon' : 'Polyline']({
path: coordinates,
strokeColor: state.strokeColor,
fillColor: state.fillColor,
strokeWeight: state.strokeWeight,
editable: true,
draggable: true,
map: this.map,
fillOpacity: state.type === 'polygon' ? state.fillOpacity : 1
});
}
break;
case 'circle':
var _state_fillOpacity;
gme = new google.maps.Circle({
center: new google.maps.LatLng(state.coordinates[0], state.coordinates[1]),
radius: state.radius,
strokeColor: state.strokeColor,
fillColor: state.fillColor,
strokeWeight: state.strokeWeight,
editable: true,
draggable: true,
map: this.map,
fillOpacity: (_state_fillOpacity = state.fillOpacity) !== null && _state_fillOpacity !== void 0 ? _state_fillOpacity : 1
});
break;
}
const newElm = {
type: state.type,
uid: (0,jodit_esm_core_global__WEBPACK_IMPORTED_MODULE_3__.uniqueUid)(),
state,
gme
};
'dragend radius_changed center_changed'.split(' ').forEach((event)=>gme.addListener(event, ()=>_on_change_geometries__WEBPACK_IMPORTED_MODULE_0__.onChangeGeometries.call(this, newElm, index)));
if (newElm.type === 'polygon' || newElm.type === 'polyline') {
'insert_at set_at remove_at'.split(' ').forEach((event)=>newElm.gme.getPath().addListener(event, ()=>_on_change_geometries__WEBPACK_IMPORTED_MODULE_0__.onChangeGeometries.call(this, newElm, index)));
}
gme.addListener('click', ()=>_open_props_dialog__WEBPACK_IMPORTED_MODULE_1__.openPropsDialog.call(this, newElm, index));
this.mapElements[index] = newElm;
}
/***/ }),
/***/ 4169:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ UIMap: function() { return /* binding */ UIMap; }
/* harmony export */ });
/* harmony import */ var _swc_helpers_async_to_generator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(77688);
/* harmony import */ var _swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(82749);
/* harmony import */ var _swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(56075);
/* harmony import */ var _swc_helpers_object_spread_props__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(11886);
/* harmony import */ var _swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(31635);
/* harmony import */ var jodit_pro_plugins_google_maps_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(55029);
/* harmony import */ var _modules_add_new_in_state__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(22125);
/* harmony import */ var _modules_init_or_update_element_from_state__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(1475);
/* harmony import */ var jodit_esm_core_decorators_debounce_debounce__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(81577);
/* harmony import */ var jodit_esm_core_decorators_hook_hook__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(97357);
/* harmony import */ var jodit_esm_core_decorators_wait_wait__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(13525);
/* harmony import */ var jodit_esm_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(37133);
/* harmony import */ var jodit_esm_core_global__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(580);
/* harmony import */ var jodit_esm_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(38837);
/* harmony import */ var jodit_esm_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(41180);
/* harmony import */ var jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(67510);
/* harmony import */ var jodit_esm_modules_toolbar_collection_collection__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(11676);
/* harmony import */ var jodit_pro_plugins_google_maps_helpers_const__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(17298);
/*!
* 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/
*/
class UIMap extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_15__.UIGroup {
className() {
return 'UIMap';
}
json() {
return JSON.stringify((0,_swc_helpers_object_spread_props__WEBPACK_IMPORTED_MODULE_3__._)((0,_swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_2__._)({}, this.state), {
mode: 'hand'
}));
}
onReady() {
return (0,_swc_helpers_async_to_generator__WEBPACK_IMPORTED_MODULE_0__._)(function*() {
yield this.apiLoaded;
const container = this.getElm('map-root');
(0,jodit_esm_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_13__.assert)(container != null, 'map-root element does not exists');
this.map = new google.maps.Map(container, {
center: {
lat: this.state.center[0],
lng: this.state.center[1]
},
zoom: this.state.zoom,
mapTypeId: this.state.type
});
this.map.addListener('zoom_changed', ()=>{
var _this_map_getZoom;
this.state.zoom = (_this_map_getZoom = this.map.getZoom()) !== null && _this_map_getZoom !== void 0 ? _this_map_getZoom : 10;
});
this.map.addListener('center_changed', ()=>{
var _ref, _ref1;
var _this_map_getCenter, _this_map, _this_map_getCenter1, _this_map1;
this.state.center = [
(_ref = (_this_map = this.map) === null || _this_map === void 0 ? void 0 : (_this_map_getCenter = _this_map.getCenter()) === null || _this_map_getCenter === void 0 ? void 0 : _this_map_getCenter.lat()) !== null && _ref !== void 0 ? _ref : 55,
(_ref1 = (_this_map1 = this.map) === null || _this_map1 === void 0 ? void 0 : (_this_map_getCenter1 = _this_map1.getCenter()) === null || _this_map_getCenter1 === void 0 ? void 0 : _this_map_getCenter1.lng()) !== null && _ref1 !== void 0 ? _ref1 : 34
];
});
this.map.addListener('maptypeid_changed', ()=>{
const type = this.map.getMapTypeId();
if (type) {
this.state.type = type;
}
});
this.initDrawManager();
this.onChangeElementsList();
this.onChangeSize();
this.onChangeControls();
this.onChangeLayer();
this.onChangeMapType();
this.onChangeMode();
this.mapInitialized = true;
this.j.async.requestIdleCallback(()=>{
this.j.e.fire(this, 'GoogleMapsIsReady');
});
}).call(this);
}
initDrawManager() {
try {
const drawingManager = new google.maps.drawing.DrawingManager();
drawingManager.setMap(this.map);
drawingManager.setOptions({
drawingControl: false,
polygonOptions: (0,_swc_helpers_object_spread_props__WEBPACK_IMPORTED_MODULE_3__._)((0,_swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_2__._)({}, this.options.googleMaps.map.defaultStates.polygon), {
clickable: true,
editable: true
}),
polylineOptions: (0,_swc_helpers_object_spread_props__WEBPACK_IMPORTED_MODULE_3__._)((0,_swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_2__._)({}, this.options.googleMaps.map.defaultStates.polyline), {
clickable: true,
editable: true
}),
markerOptions: (0,_swc_helpers_object_spread_props__WEBPACK_IMPORTED_MODULE_3__._)((0,_swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_2__._)({}, this.options.googleMaps.map.defaultStates.marker), {
clickable: true
}),
circleOptions: (0,_swc_helpers_object_spread_props__WEBPACK_IMPORTED_MODULE_3__._)((0,_swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_2__._)({}, this.options.googleMaps.map.defaultStates.circle), {
clickable: true,
editable: true
})
});
this.drawingManager = drawingManager;
google.maps.event.addListener(drawingManager, 'overlaycomplete', (event)=>{
if (event.overlay) {
_modules_add_new_in_state__WEBPACK_IMPORTED_MODULE_6__.addNewInState.call(this, event.overlay);
event.overlay.setMap(null);
}
});
} catch (unused) {}
}
changeCreateMode(mode) {
this.state.mode = this.state.mode === mode ? 'hand' : mode;
}
onChangeMode() {
var _this_drawingManager;
this.j.buffer.set('createMode.gm', this.state.mode);
(_this_drawingManager = this.drawingManager) === null || _this_drawingManager === void 0 ? void 0 : _this_drawingManager.setDrawingMode(this.state.mode === 'hand' ? null : this.state.mode);
this.j.e.fire('updateToolbar');
}
onChangeElementsList() {
const { state: { elements }, mapElements } = this;
if (elements.length < mapElements.length) {
mapElements.slice(elements.length).forEach((elm)=>{
elm.gme.setMap(null);
});
}
mapElements.length = elements.length;
elements.forEach((state, index)=>_modules_init_or_update_element_from_state__WEBPACK_IMPORTED_MODULE_7__.initOrUpdateElementFromState.call(this, state, index));
}
onChangeCenter() {
const center = this.map.getCenter();
if ((center === null || center === void 0 ? void 0 : center.lat()) !== this.state.center[0] || (center === null || center === void 0 ? void 0 : center.lng()) !== this.state.center[1]) {
this.map.setCenter({
lat: this.state.center[0],
lng: this.state.center[1]
});
}
}
onChangeZoom() {
var _this_map;
(_this_map = this.map) === null || _this_map === void 0 ? void 0 : _this_map.setZoom(this.state.zoom);
}
onChangeControls() {
let key;
for(key in this.state.controls){
var _this_map;
(_this_map = this.map) === null || _this_map === void 0 ? void 0 : _this_map.set(key, this.state.controls[key]);
}
}
onChangeBound() {
this.options.googleMaps.saveStateInStorage && this.j.storage.set(jodit_pro_plugins_google_maps_helpers_const__WEBPACK_IMPORTED_MODULE_17__.STORAGE_KEY, {
center: this.state.center,
size: this.state.size,
zoom: this.state.zoom,
type: this.state.type,
layer: this.state.layer,
controls: this.state.controls
});
}
onChangeSize() {
const mapSize = this.getElm('map-size');
(0,jodit_esm_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_13__.assert)(mapSize != null, 'map-size element does not exists');
(0,jodit_esm_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_14__.css)(mapSize, {
width: this.state.size[0],
height: this.state.size[1]
});
}
onChangeMapType() {
this.map.setMapTypeId(this.state.type);
}
onChangeLayer() {
this.layers.forEach((layer)=>layer.setMap(null));
this.layers.length = 0;
switch(this.state.layer){
case 'traffic':
this.layers.push(new google.maps.TrafficLayer());
break;
case 'transit':
this.layers.push(new google.maps.TransitLayer());
break;
case 'bicycling':
this.layers.push(new google.maps.BicyclingLayer());
break;
}
this.layers.forEach((layer)=>layer.setMap(this.map));
}
render() {
return `<div>
<div class='&__map-root'></div>
<div class='&__map-size'></div>
<div class='&__map-palette'></div>
</div>`;
}
appendChildToContainer() {}
constructor(jodit, state, options){
super(jodit), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_1__._)(this, "options", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_1__._)(this, "drawingManager", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_1__._)(this, "toolbar", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_1__._)(this, "state", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_1__._)(this, "mapElements", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_1__._)(this, "apiLoaded", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_1__._)(this, "mapInitialized", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_1__._)(this, "map", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_1__._)(this, "layers", void 0), this.options = options, this.toolbar = new jodit_esm_modules_toolbar_collection_collection__WEBPACK_IMPORTED_MODULE_16__.ToolbarCollection(this.jodit), this.state = {
uid: 'jd' + (0,jodit_esm_core_global__WEBPACK_IMPORTED_MODULE_12__.uniqueUid)() + new Date().toString().replace(/[^0-9]/g, ''),
layer: this.options.googleMaps.map.layer,
center: this.options.googleMaps.map.defaultCenter,
zoom: this.options.googleMaps.map.defaultZoom,
size: this.options.googleMaps.map.size,
type: this.options.googleMaps.map.type,
controls: {
zoomControl: true,
mapTypeControl: true,
scaleControl: true,
streetViewControl: true,
rotateControl: true,
fullscreenControl: true
},
mode: 'hand',
elements: []
}, this.mapElements = [], this.apiLoaded = null, this.mapInitialized = false, this.layers = [];
Object.assign(this.state, state);
this.toolbar.build([
'gm.hand',
'gm.marker',
'gm.polyline',
'gm.polygon',
'gm.circle'
]);
const palette = this.getElm('map-palette');
(0,jodit_esm_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_13__.assert)(palette != null, 'palette element does not exists');
palette.appendChild(this.toolbar.container);
}
}
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_4__.__decorate)([
(0,jodit_esm_core_decorators_hook_hook__WEBPACK_IMPORTED_MODULE_9__.hook)('ready')
], UIMap.prototype, "onReady", null);
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_4__.__decorate)([
(0,jodit_esm_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_11__.watch)('?:changeCreateMode.gm')
], UIMap.prototype, "changeCreateMode", null);
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_4__.__decorate)([
(0,jodit_esm_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_11__.watch)('state.mode')
], UIMap.prototype, "onChangeMode", null);
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_4__.__decorate)([
(0,jodit_esm_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_11__.watch)('state.elements')
], UIMap.prototype, "onChangeElementsList", null);
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_4__.__decorate)([
(0,jodit_esm_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_11__.watch)('state.center'),
(0,jodit_esm_core_decorators_wait_wait__WEBPACK_IMPORTED_MODULE_10__.wait)((ctx)=>ctx.mapInitialized),
(0,jodit_esm_core_decorators_debounce_debounce__WEBPACK_IMPORTED_MODULE_8__.debounce)()
], UIMap.prototype, "onChangeCenter", null);
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_4__.__decorate)([
(0,jodit_esm_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_11__.watch)('state.zoom'),
(0,jodit_esm_core_decorators_debounce_debounce__WEBPACK_IMPORTED_MODULE_8__.debounce)()
], UIMap.prototype, "onChangeZoom", null);
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_4__.__decorate)([
(0,jodit_esm_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_11__.watch)('state.controls')
], UIMap.prototype, "onChangeControls", null);
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_4__.__decorate)([
(0,jodit_esm_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_11__.watch)([
'state.center',
'state.zoom',
'state.controls',
'state.size',
'state.type',
'state.layer'
]),
(0,jodit_esm_core_decorators_wait_wait__WEBPACK_IMPORTED_MODULE_10__.wait)((ctx)=>ctx.mapInitialized),
(0,jodit_esm_core_decorators_debounce_debounce__WEBPACK_IMPORTED_MODULE_8__.debounce)()
], UIMap.prototype, "onChangeBound", null);
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_4__.__decorate)([
(0,jodit_esm_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_11__.watch)('state.size'),
(0,jodit_esm_core_decorators_debounce_debounce__WEBPACK_IMPORTED_MODULE_8__.debounce)()
], UIMap.prototype, "onChangeSize", null);
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_4__.__decorate)([
(0,jodit_esm_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_11__.watch)('state.type')
], UIMap.prototype, "onChangeMapType", null);
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_4__.__decorate)([
(0,jodit_esm_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_11__.watch)('state.layer')
], UIMap.prototype, "onChangeLayer", null);
/***/ }),
/***/ 4774:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ UIMap: function() { return /* reexport safe */ _map_map__WEBPACK_IMPORTED_MODULE_1__.UIMap; },
/* harmony export */ UIMapsControlsForm: function() { return /* reexport safe */ _maps_controls_maps_controls__WEBPACK_IMPORTED_MODULE_2__.UIMapsControlsForm; },
/* harmony export */ UIMapsPropsForm: function() { return /* reexport safe */ _maps_props_maps_props__WEBPACK_IMPORTED_MODULE_3__.UIMapsPropsForm; }
/* harmony export */ });
/* harmony import */ var _editors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(90835);
/* harmony import */ var _map_map__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4169);
/* harmony import */ var _maps_controls_maps_controls__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8073);
/* harmony import */ var _maps_props_maps_props__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(83039);
/* harmony import */ var _wysiwyg_wysiwyg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(11093);
/*!
* 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/
*/
/***/ }),
/***/ 8073:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ UIMapsControlsForm: function() { return /* binding */ UIMapsControlsForm; }
/* harmony export */ });
/* harmony import */ var _swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(82749);
/* harmony import */ var _swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(56075);
/* harmony import */ var _swc_helpers_object_spread_props__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(11886);
/* harmony import */ var _swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(31635);
/* harmony import */ var jodit_esm_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(87325);
/* harmony import */ var jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(67510);
/*!
* 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/
*/
class UIMapsControlsForm extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_5__.UIForm {
className() {
return 'UIMapsControlsForm';
}
onChangeSize(key, value) {
this.state.controls = (0,_swc_helpers_object_spread_props__WEBPACK_IMPORTED_MODULE_2__._)((0,_swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_1__._)({}, this.state.controls), {
[key]: value === 'true'
});
}
constructor(jodit, state){
super(jodit), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "state", void 0), this.state = state;
const controlsNames = {
zoomControl: 'Zoom control',
mapTypeControl: 'Map Type control',
scaleControl: 'Scale control',
streetViewControl: 'Street View control ',
rotateControl: 'Rotate control',
fullscreenControl: 'Fullscreen control'
};
const controls = Object.keys(controlsNames);
this.append(controls.map((key)=>new jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_5__.UICheckbox(jodit, {
label: controlsNames[key],
name: key,
checked: this.state.controls[key],
switch: true,
type: 'checkbox',
onChange: this.onChangeSize.bind(this, key)
})));
}
}
UIMapsControlsForm = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_3__.__decorate)([
jodit_esm_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_4__.component
], UIMapsControlsForm);
/***/ }),
/***/ 11079:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ openPropsDialog: function() { return /* binding */ openPropsDialog; }
/* harmony export */ });
/* harmony import */ var _swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(56075);
/* harmony import */ var _swc_helpers_object_spread_props__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(11886);
/* harmony import */ var _remove_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(47660);
/* harmony import */ var _update_state_and_gme__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(72690);
/* harmony import */ var jodit_pro_plugins_google_maps_ui_editors__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(90835);
/*!
* 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/
*/
function getInfoWindow() {
const infoWindow = new google.maps.InfoWindow({
content: '<div>test</div>'
});
infoWindow.addListener('domready', ()=>{
this.setMod('info-opened', true);
});
infoWindow.addListener('closeclick', ()=>{
this.setMod('info-opened', false);
});
return infoWindow;
}
function openPropsDialog(newElm, index) {
let editor;
this.state.mode = 'hand';
switch(newElm.type){
case 'polyline':
editor = new jodit_pro_plugins_google_maps_ui_editors__WEBPACK_IMPORTED_MODULE_4__.UIPolylineEditor(this.jodit, newElm.state, this.options);
break;
case 'marker':
editor = new jodit_pro_plugins_google_maps_ui_editors__WEBPACK_IMPORTED_MODULE_4__.UIMarkerEditor(this.jodit, newElm.state, this.options);
break;
case 'circle':
case 'polygon':
editor = new jodit_pro_plugins_google_maps_ui_editors__WEBPACK_IMPORTED_MODULE_4__.UIPolygonEditor(this.jodit, newElm.state, this.options);
break;
}
if (!editor) {
return;
}
this.append(editor);
this.j.e.on(editor, 'bin', ()=>{
_remove_element__WEBPACK_IMPORTED_MODULE_2__.removeElement.call(this, newElm);
}).on(editor, 'change', (key, value)=>{
_update_state_and_gme__WEBPACK_IMPORTED_MODULE_3__.updateStateAndGme.call(this, (0,_swc_helpers_object_spread_props__WEBPACK_IMPORTED_MODULE_1__._)((0,_swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_0__._)({}, newElm.state), {
[key]: value
}), index);
});
const w = getInfoWindow.call(this);
if (newElm.type === 'polygon' || newElm.type === 'polyline') {
const pos = newElm.gme.getPath().getAt(0);
w.setPosition(pos);
}
if (newElm.type === 'circle') {
w.setPosition(newElm.gme.getCenter());
}
w.setContent(editor.container);
w.open(this.map, newElm.gme);
w.addListener('closeclick', ()=>{
if (editor) {
this.remove(editor);
editor.destruct();
}
});
}
/***/ }),
/***/ 11093:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ UIWysiwyg: function() { return /* binding */ UIWysiwyg; }
/* harmony export */ });
/* harmony import */ var _swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(56075);
/* harmony import */ var _swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(31635);
/* harmony import */ var jodit_esm_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(87325);
/* harmony import */ var jodit_esm_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(38837);
/* harmony import */ var jodit_esm_core_ui_element__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(48538);
/* harmony import */ var jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_5__ = __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/
*/
class UIWysiwyg extends jodit_esm_core_ui_element__WEBPACK_IMPORTED_MODULE_4__.UIElement {
className() {
return 'UIWysiwyg';
}
render() {
return `<div>
<div class='&__label'>~Info~</div>
<div class='&__editor'></div>
</div>`;
}
constructor(jodit, options, value, onChange){
super(jodit);
const wysiwyg = this.getElm('editor');
(0,jodit_esm_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_3__.assert)(wysiwyg != null, 'editor element does not exist');
const editor = jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_5__.JoditPro.make(wysiwyg, (0,_swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_0__._)({
buttons: [
'bold',
'italic',
'image'
],
height: 100,
minHeight: 100,
allowResizeY: false,
allowResizeX: false,
disablePlugins: [
'mobile',
'backup',
'highlight-signature',
'tune-block',
'show-blocks'
],
toolbarButtonSize: 'small',
language: jodit.o.language,
direction: jodit.o.direction,
theme: jodit.o.theme,
statusbar: false
}, options));
editor.value = value;
editor.e.on('change', ()=>onChange(editor.value));
}
}
UIWysiwyg = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
jodit_esm_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_2__.component
], UIWysiwyg);
/***/ }),
/***/ 11696:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ UIPolygonEditor: function() { return /* binding */ UIPolygonEditor; }
/* harmony export */ });
/* harmony import */ var _swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(31635);
/* harmony import */ var jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65478);
/* harmony import */ var jodit_pro_core_ui_form_range_range__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(62357);
/* harmony import */ var jodit_pro_plugins_color_picker_ui_input_color_input__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(45128);
/* harmony import */ var jodit_pro_plugins_google_maps_ui_editors_polyline_polyline__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(69398);
/*!
* 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/
*/
class UIPolygonEditor extends jodit_pro_plugins_google_maps_ui_editors_polyline_polyline__WEBPACK_IMPORTED_MODULE_4__.UIPolylineEditor {
className() {
return 'UIPolygonEditor';
}
onReady() {
var _this_state_fillColor, _this_state_fillOpacity;
this.append([
new jodit_pro_plugins_color_picker_ui_input_color_input__WEBPACK_IMPORTED_MODULE_3__.ColorInput(this.j, {
label: 'Fill color',
value: (_this_state_fillColor = this.state.fillColor) !== null && _this_state_fillColor !== void 0 ? _this_state_fillColor : '#000',
onChange: (value)=>this.j.e.fire(this, 'change', 'fillColor', value)
}).setMod('trigger', false),
new jodit_pro_core_ui_form_range_range__WEBPACK_IMPORTED_MODULE_2__.UIRange(this.j, {
label: 'Opacity',
min: 0,
max: 1,
value: (_this_state_fillOpacity = this.state.fillOpacity) !== null && _this_state_fillOpacity !== void 0 ? _this_state_fillOpacity : 1,
onChange: (value)=>{
this.j.e.fire(this, 'change', 'fillOpacity', parseFloat(value) || 0);
}
}).setMod('log', false)
], 'form');
}
}
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_0__.__decorate)([
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__.hook)('ready')
], UIPolygonEditor.prototype, "onReady", null);
UIPolygonEditor = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_0__.__decorate)([
jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__.component
], UIPolygonEditor);
/***/ }),
/***/ 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;
}
/***/ }),
/***/ 14002:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ UIBaseEditor: function() { return /* binding */ UIBaseEditor; }
/* harmony export */ });
/* harmony import */ var _swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(82749);
/* harmony import */ var jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(67510);
/*!
* 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/
*/
class UIBaseEditor extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_1__.UIGroup {
className() {
return 'UIBaseEditor';
}
render() {
return `<div>
<div class='&__header'></div>
<div class='&__form'></div>
<div class='&__buttons'></div>
</div>`;
}
onReady() {
const remove = (0,jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_1__.Button)(this.j, 'bin').onAction(()=>this.j.e.fire(this, 'bin'));
this.append(remove, 'buttons');
}
constructor(jodit, state, options){
super(jodit), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "state", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "options", void 0), this.state = state, this.options = options;
}
}
/***/ }),
/***/ 17298:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ COMMAND_OPEN_DIALOG: function() { return /* binding */ COMMAND_OPEN_DIALOG; },
/* harmony export */ STORAGE_KEY: function() { return /* binding */ STORAGE_KEY; }
/* harmony export */ });
/*!
* 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/
*/ const STORAGE_KEY = 'googleMapsState';
const COMMAND_OPEN_DIALOG = 'googleMapsDialog';
/***/ }),
/***/ 22125:
/***/ (function(__unused_webpack_module, __webpack_exports__, __w