jodit-pro
Version:
PRO Version of Jodit Editor
1,128 lines (1,010 loc) • 171 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_define_property__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(82749);
/* harmony import */ var _swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(31635);
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(55029);
/* harmony import */ var _assets__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(99413);
/* harmony import */ var _helpers_const__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(17298);
/* harmony import */ var _helpers_generate_js_script__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(61818);
/* harmony import */ var _helpers_helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(67912);
/* harmony import */ var _helpers_static_url__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(92931);
/* harmony import */ var _ui_combo_box_combo_box__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(65805);
/* harmony import */ var _ui__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(4774);
/* harmony import */ var jodit_esm_core_constants__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(82758);
/* harmony import */ var jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(65478);
/* harmony import */ var jodit_esm_core_helpers__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(21537);
/* harmony import */ var jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(50911);
/* harmony import */ var jodit_esm_core_ui_button__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(62843);
/* harmony import */ var jodit_esm_modules_dialog_dialog__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(78584);
/* harmony import */ var jodit_esm_modules_widget__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(92762);
/* harmony import */ var jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_17__ = __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_6__.GoogleReadyHandler;
class googleMaps extends jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_13__.Plugin {
className() {
return 'google-maps';
}
afterInit(jodit) {
jodit.registerCommand(_helpers_const__WEBPACK_IMPORTED_MODULE_4__.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 {}
void this.openMapEditor(image, json);
return false;
}
}
async openMapEditor(target, initialState) {
const jodit = this.j;
const dialog = this.getDialog();
const state = this.j.o.googleMaps.saveStateInStorage ? dialog.storage.get(_helpers_const__WEBPACK_IMPORTED_MODULE_4__.STORAGE_KEY) : undefined;
const { apiUrl } = this.jodit.o.googleMaps;
if (!(0,_helpers_helpers__WEBPACK_IMPORTED_MODULE_6__.isApiAvailable)()) {
void (0,jodit_esm_core_helpers__WEBPACK_IMPORTED_MODULE_12__.appendScriptAsync)(this.jodit, apiUrl.replace(/\${([^}]+)}/g, (_, key)=>this.get(key) ?? ''));
}
const openState = {
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_9__.UIMap(dialog, openState, this.j.options);
uiMap.container.classList.add(dialog.getFullElName('map'));
const search = new _ui_combo_box_combo_box__WEBPACK_IMPORTED_MODULE_8__.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_6__.isApiAvailable)()) {
resolve(0);
return;
}
// TODO - Need check googleReady
const intervalChecker = ()=>{
if ((0,_helpers_helpers__WEBPACK_IMPORTED_MODULE_6__.isApiAvailable)()) {
resolve(0);
} else {
this.j.async.setTimeout(intervalChecker, 100);
}
};
intervalChecker();
(0,_helpers_helpers__WEBPACK_IMPORTED_MODULE_6__.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_14__.Button)(jodit, 'eye').onAction(()=>{
const image = this.jodit.createInside.element('img');
image.src = (0,_helpers_static_url__WEBPACK_IMPORTED_MODULE_7__.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_16__.TabsWidget)(jodit, [
{
name: 'Map',
icon: 'map',
content: uiMap
},
{
name: 'Settings',
content: new _ui__WEBPACK_IMPORTED_MODULE_9__.UIMapsPropsForm(jodit, uiMap.state)
},
{
name: 'Controls',
icon: 'menu',
content: new _ui__WEBPACK_IMPORTED_MODULE_9__.UIMapsControlsForm(jodit, uiMap.state)
}
])).setFooter([
(0,jodit_esm_core_ui_button__WEBPACK_IMPORTED_MODULE_14__.Button)(jodit, 'cancel', 'Cancel', 'default').onAction(()=>dialog.close()),
(0,jodit_esm_core_ui_button__WEBPACK_IMPORTED_MODULE_14__.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_10__.IS_TEST && !confirm(this.i18n('Are you sure?'))) {
return false;
}
}
uiMap.destruct();
search.destruct();
dialog.e.off('beforeClose', onCLose);
};
dialog.e.on('beforeClose', onCLose);
}
getDialog() {
if (!this.dialog) {
const dialog = new jodit_esm_modules_dialog_dialog__WEBPACK_IMPORTED_MODULE_15__.Dialog({
language: this.j.o.language
});
dialog.container.classList.add(this.getFullElName(''));
this.dialog = dialog;
}
return this.dialog;
}
insertMap(target, uiMap) {
const image = target ?? this.jodit.createInside.element('img');
image.src = (0,_helpers_static_url__WEBPACK_IMPORTED_MODULE_7__.staticUrl)(uiMap);
image.dataset.googleMaps = btoa(uiMap.json());
target || this.jodit.s.insertImage(image);
}
onBeforeSetNativeEditorValue(data) {
data.value = data.value.replace(// @ts-ignore
/<script[^>]+jodit-google-maps-init[^>]+>.*?<\/script>/gs, '');
}
onAfterGetValueFromEditor(data, consumer) {
if (this.j.o.googleMaps.useStaticImage || consumer === jodit_esm_core_constants__WEBPACK_IMPORTED_MODULE_10__.SOURCE_CONSUMER) {
return;
}
data.value = data.value.replace(// @ts-ignore
/(<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 {}
return `${_1} id="${json.uid}" ${q}data-google-maps${q}=${q2}${jsonB64}${q2}${rest}${(0,_helpers_generate_js_script__WEBPACK_IMPORTED_MODULE_5__.generateJSScript)(this.j, json)}`;
});
}
constructor(...args){
super(...args), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "buttons", [
{
group: 'media',
name: 'googleMaps'
}
]), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "dialog", null);
}
}
(0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(googleMaps, "requires", [
'license',
'color-picker'
]);
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_11__.watch)('?:openOnDblClick')
], googleMaps.prototype, "onOpenOnDblClick", null);
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_11__.watch)(':beforeSetNativeEditorValue')
], googleMaps.prototype, "onBeforeSetNativeEditorValue", null);
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_11__.watch)(':afterGetValueFromEditor')
], googleMaps.prototype, "onAfterGetValueFromEditor", null);
jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_17__.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':
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 ?? 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_define_property__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(82749);
/* harmony import */ var _swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(31635);
/* harmony import */ var jodit_pro_plugins_google_maps_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(55029);
/* harmony import */ var _modules_add_new_in_state__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(22125);
/* harmony import */ var _modules_init_or_update_element_from_state__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1475);
/* harmony import */ var jodit_esm_core_decorators_debounce_debounce__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(81577);
/* harmony import */ var jodit_esm_core_decorators_hook_hook__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(97357);
/* harmony import */ var jodit_esm_core_decorators_wait_wait__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(13525);
/* harmony import */ var jodit_esm_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(37133);
/* harmony import */ var jodit_esm_core_global__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(580);
/* harmony import */ var jodit_esm_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(38837);
/* harmony import */ var jodit_esm_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(41180);
/* harmony import */ var jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(67510);
/* harmony import */ var jodit_esm_modules_toolbar_collection_collection__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(11676);
/* harmony import */ var jodit_pro_plugins_google_maps_helpers_const__WEBPACK_IMPORTED_MODULE_14__ = __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_12__.UIGroup {
className() {
return 'UIMap';
}
json() {
return JSON.stringify({
...this.state,
mode: 'hand'
});
}
async onReady() {
await this.apiLoaded;
const container = this.getElm('map-root');
(0,jodit_esm_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_10__.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', ()=>{
this.state.zoom = this.map.getZoom() ?? 10;
});
this.map.addListener('center_changed', ()=>{
this.state.center = [
this.map?.getCenter()?.lat() ?? 55,
this.map?.getCenter()?.lng() ?? 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');
});
}
initDrawManager() {
try {
const drawingManager = new google.maps.drawing.DrawingManager();
drawingManager.setMap(this.map);
drawingManager.setOptions({
drawingControl: false,
polygonOptions: {
...this.options.googleMaps.map.defaultStates.polygon,
clickable: true,
editable: true
},
polylineOptions: {
...this.options.googleMaps.map.defaultStates.polyline,
clickable: true,
editable: true
},
markerOptions: {
...this.options.googleMaps.map.defaultStates.marker,
clickable: true
},
circleOptions: {
...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_3__.addNewInState.call(this, event.overlay);
event.overlay.setMap(null);
}
});
} catch {}
}
changeCreateMode(mode) {
this.state.mode = this.state.mode === mode ? 'hand' : mode;
}
onChangeMode() {
this.j.buffer.set('createMode.gm', this.state.mode);
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_4__.initOrUpdateElementFromState.call(this, state, index));
}
onChangeCenter() {
const center = this.map.getCenter();
if (center?.lat() !== this.state.center[0] || center?.lng() !== this.state.center[1]) {
this.map.setCenter({
lat: this.state.center[0],
lng: this.state.center[1]
});
}
}
onChangeZoom() {
this.map?.setZoom(this.state.zoom);
}
onChangeControls() {
let key;
for(key in this.state.controls){
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_14__.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_10__.assert)(mapSize != null, 'map-size element does not exists');
(0,jodit_esm_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_11__.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_0__._)(this, "options", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "drawingManager", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "toolbar", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "state", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "mapElements", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "apiLoaded", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "mapInitialized", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "map", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "layers", void 0), this.options = options, this.toolbar = new jodit_esm_modules_toolbar_collection_collection__WEBPACK_IMPORTED_MODULE_13__.ToolbarCollection(this.jodit), this.state = {
uid: 'jd' + (0,jodit_esm_core_global__WEBPACK_IMPORTED_MODULE_9__.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_10__.assert)(palette != null, 'palette element does not exists');
palette.appendChild(this.toolbar.container);
}
}
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
(0,jodit_esm_core_decorators_hook_hook__WEBPACK_IMPORTED_MODULE_6__.hook)('ready')
], UIMap.prototype, "onReady", null);
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
(0,jodit_esm_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_8__.watch)('?:changeCreateMode.gm')
], UIMap.prototype, "changeCreateMode", null);
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
(0,jodit_esm_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_8__.watch)('state.mode')
], UIMap.prototype, "onChangeMode", null);
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
(0,jodit_esm_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_8__.watch)('state.elements')
], UIMap.prototype, "onChangeElementsList", null);
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
(0,jodit_esm_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_8__.watch)('state.center'),
(0,jodit_esm_core_decorators_wait_wait__WEBPACK_IMPORTED_MODULE_7__.wait)((ctx)=>ctx.mapInitialized),
(0,jodit_esm_core_decorators_debounce_debounce__WEBPACK_IMPORTED_MODULE_5__.debounce)()
], UIMap.prototype, "onChangeCenter", null);
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
(0,jodit_esm_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_8__.watch)('state.zoom'),
(0,jodit_esm_core_decorators_debounce_debounce__WEBPACK_IMPORTED_MODULE_5__.debounce)()
], UIMap.prototype, "onChangeZoom", null);
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
(0,jodit_esm_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_8__.watch)('state.controls')
], UIMap.prototype, "onChangeControls", null);
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
(0,jodit_esm_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_8__.watch)([
'state.center',
'state.zoom',
'state.controls',
'state.size',
'state.type',
'state.layer'
]),
(0,jodit_esm_core_decorators_wait_wait__WEBPACK_IMPORTED_MODULE_7__.wait)((ctx)=>ctx.mapInitialized),
(0,jodit_esm_core_decorators_debounce_debounce__WEBPACK_IMPORTED_MODULE_5__.debounce)()
], UIMap.prototype, "onChangeBound", null);
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
(0,jodit_esm_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_8__.watch)('state.size'),
(0,jodit_esm_core_decorators_debounce_debounce__WEBPACK_IMPORTED_MODULE_5__.debounce)()
], UIMap.prototype, "onChangeSize", null);
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
(0,jodit_esm_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_8__.watch)('state.type')
], UIMap.prototype, "onChangeMapType", null);
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
(0,jodit_esm_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_8__.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_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_ui__WEBPACK_IMPORTED_MODULE_3__ = __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_3__.UIForm {
className() {
return 'UIMapsControlsForm';
}
onChangeSize(key, value) {
this.state.controls = {
...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_3__.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_1__.__decorate)([
jodit_esm_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_2__.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 _remove_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(47660);
/* harmony import */ var _update_state_and_gme__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(72690);
/* harmony import */ var jodit_pro_plugins_google_maps_ui_editors__WEBPACK_IMPORTED_MODULE_2__ = __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_2__.UIPolylineEditor(this.jodit, newElm.state, this.options);
break;
case 'marker':
editor = new jodit_pro_plugins_google_maps_ui_editors__WEBPACK_IMPORTED_MODULE_2__.UIMarkerEditor(this.jodit, newElm.state, this.options);
break;
case 'circle':
case 'polygon':
editor = new jodit_pro_plugins_google_maps_ui_editors__WEBPACK_IMPORTED_MODULE_2__.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_0__.removeElement.call(this, newElm);
}).on(editor, 'change', (key, value)=>{
_update_state_and_gme__WEBPACK_IMPORTED_MODULE_1__.updateStateAndGme.call(this, {
...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_ts_decorate__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(31635);
/* harmony import */ var jodit_esm_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(87325);
/* harmony import */ var jodit_esm_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(38837);
/* harmony import */ var jodit_esm_core_ui_element__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(48538);
/* harmony import */ var jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_4__ = __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_3__.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_2__.assert)(wysiwyg != null, 'editor element does not exist');
const editor = jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_4__.JoditPro.make(wysiwyg, {
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_0__.__decorate)([
jodit_esm_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_1__.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() {
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 ?? '#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 ?? 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);
/***/ }),
/***/ 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__, __webpack_require__) {
"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ addNewInState: function() { return /* binding */ addNewInState; }
/* harmony export */ });
/* harmony import */ var jodit_pro_plugins_google_maps_helpers_helpers__WEBPACK_IMPORTED_MODULE_0__ = __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 addNewInState(mvc) {
switch(this.state.mode){
case 'polyline':
case 'polygon':
{
const { mode } = this.state;
this.state.elements = [
...this.state.elements,
{
type: mode,
coordinates: (0,jodit_pro_plugins_google_maps_helpers_helpers__WEBPACK_IMPORTED_MODULE_0__.pathToArray)(mvc.getPath()),
...this.options.googleMaps.map.defaultStates[mode]
}
];
break;
}
case 'circle':
{
const circle = mvc;
this.state.elements = [
...this.state.elements,
{
type: this.state.mode,
coordinates: [
circle.getCenter()?.lat() ?? 0,
circle.getCenter()?.lng() ?? 0
],
radius: circle.getRadius(),
...this.options.googleMaps.map.defaultStates.circle
}
];
break;
}
case 'marker':
{
const marker = mvc;
this.state.elements = [
...this.state.elements,
{
type: this.state.mode,
coordinates: [
marker.getPosition()?.lat() ?? 0,
marker.getPosition()?.lng() ?? 0
],
...this.options.googleMaps.map.defaultStates.marker
}
];
break;
}
}
}
/***/ }),
/***/ 27622:
/***/ (function(module) {
module.exports = "<svg width=\"72\" height=\"86\" viewBox=\"0 0 72 86\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"> <path d=\"M17.1832 79.1351L13.6833 45.0811L49.6832 58.4595L47.6832 5.35135\" stroke=\"black\" stroke-width=\"6\"/> <circle cx=\"13\" cy=\"44\" r=\"6\" fill=\"#C8C8C8\"/> <circle cx=\"17\" cy=\"77\" r=\"6\" fill=\"#C8C8C8\"/> <circle cx=\"51\" cy=\"59\" r=\"6\" fill=\"#C8C8C8\"/> <circle cx=\"48\" cy=\"6\" r=\"6\" fill=\"#C8C8C8\"/> </svg>"
/***/ }),
/***/ 36576:
/***/ (function(module) {
module.exports = "<svg viewBox=\"0 0 77 86\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"> <path d=\"M7 38.6056L33.1367 7.96263L69.5477 45.7058L36.2444 72.166L7 76.9673V38.6056Z\" stroke=\"black\" stroke-width=\"6\"/> <circle cx=\"71\" cy=\"45\" r=\"6\" fill=\"#C8C8C8\"/> <circle cx=\"35\" cy=\"73\" r=\"6\" fill=\"#C8C8C8\"/> <circle cx=\"6\" cy=\"79\" r=\"6\" fill=\"#C8C8C8\"/> <circle cx=\"6\" cy=\"39\" r=\"6\" fill=\"#C8C8C8\"/> <circle cx=\"33\" cy=\"6\" r=\"6\" fill=\"#C8C8C8\"/> </svg>"
/***/ }),
/***/ 42370:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ UIMarkerEditor: function() { return /* binding */ UIMarkerEditor; }
/* 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_plugins_google_maps_ui_editors_base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(14002);
/* harmony import */ var jodit_pro_plugins_google_maps_ui_wysiwyg_wysiwyg__WEBPACK_IMPORTED_MODULE_3__ = __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/
*/
class UIMarkerEditor extends jodit_pro_plugins_google_maps_ui_editors_base__WEBPACK_IMPORTED_MODULE_2__.UIBaseEditor {
className() {
return 'UIMarkerEditor';
}
onReady() {
super.onReady();
const editor = new jodit_pro_plugins_google_maps_ui_wysiwyg_wysiwyg__WEBPACK_IMPORTED_MODULE_3__.UIWysiwyg(this.j, this.options.googleMaps.inlineEditorOptions, this.state.text ?? '', (value)=>this.j.e.fire(this, 'change', 'text', value));
this.append(editor, 'form');
}
}
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_0__.__decorate)([
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__.hook)('ready')
], UIMarkerEditor.prototype, "onReady", null);
UIMarkerEditor = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_0__.__decorate)([
jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__.component
], UIMarkerEditor);
/***/ }),
/***/ 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_define_property__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(82749);