jodit-pro 1.3.39 → 2.0.0-beta.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (455) hide show
  1. package/.nvmrc +1 -0
  2. package/CHANGELOG.md +982 -0
  3. package/LICENSE.txt +1 -0
  4. package/README.md +27 -27
  5. package/SECURITY.md +10 -0
  6. package/es2015/jodit.css +4945 -0
  7. package/es2015/jodit.fat.min.css +1 -0
  8. package/es2015/jodit.fat.min.js +10 -0
  9. package/es2015/jodit.js +42706 -0
  10. package/es2015/jodit.min.css +1 -0
  11. package/es2015/jodit.min.js +10 -0
  12. package/es2015/plugins/autocomplete/autocomplete.css +26 -0
  13. package/es2015/plugins/autocomplete/autocomplete.js +473 -0
  14. package/es2015/plugins/autocomplete/autocomplete.min.js +10 -0
  15. package/es2015/plugins/backup/backup.css +48 -0
  16. package/es2015/plugins/backup/backup.js +567 -0
  17. package/{build/plugins/backup/backup.css → es2015/plugins/backup/backup.min.css} +1 -1
  18. package/es2015/plugins/backup/backup.min.js +10 -0
  19. package/es2015/plugins/button-generator/button-generator.css +316 -0
  20. package/es2015/plugins/button-generator/button-generator.js +1363 -0
  21. package/es2015/plugins/button-generator/button-generator.min.css +1 -0
  22. package/es2015/plugins/button-generator/button-generator.min.js +10 -0
  23. package/es2015/plugins/change-case/change-case.js +171 -0
  24. package/es2015/plugins/change-case/change-case.min.js +10 -0
  25. package/es2015/plugins/color-picker/color-picker.css +133 -0
  26. package/es2015/plugins/color-picker/color-picker.js +519 -0
  27. package/es2015/plugins/color-picker/color-picker.min.css +1 -0
  28. package/es2015/plugins/color-picker/color-picker.min.js +10 -0
  29. package/es2015/plugins/emoji/emoji.css +108 -0
  30. package/es2015/plugins/emoji/emoji.js +421 -0
  31. package/es2015/plugins/emoji/emoji.min.css +1 -0
  32. package/es2015/plugins/emoji/emoji.min.js +10 -0
  33. package/es2015/plugins/export-docs/export-docs.js +153 -0
  34. package/es2015/plugins/export-docs/export-docs.min.js +10 -0
  35. package/es2015/plugins/finder/finder.css +1342 -0
  36. package/es2015/plugins/finder/finder.js +3175 -0
  37. package/es2015/plugins/finder/finder.min.css +1 -0
  38. package/es2015/plugins/finder/finder.min.js +10 -0
  39. package/es2015/plugins/google-maps/google-maps.css +397 -0
  40. package/es2015/plugins/google-maps/google-maps.js +2492 -0
  41. package/es2015/plugins/google-maps/google-maps.min.css +1 -0
  42. package/es2015/plugins/google-maps/google-maps.min.js +10 -0
  43. package/es2015/plugins/google-search/google-search.js +108 -0
  44. package/es2015/plugins/google-search/google-search.min.js +10 -0
  45. package/es2015/plugins/highlight-signature/highlight-signature.js +233 -0
  46. package/es2015/plugins/highlight-signature/highlight-signature.min.js +10 -0
  47. package/es2015/plugins/iframe-editor/iframe-editor.css +16 -0
  48. package/es2015/plugins/iframe-editor/iframe-editor.js +310 -0
  49. package/es2015/plugins/iframe-editor/iframe-editor.min.js +10 -0
  50. package/es2015/plugins/keyboard/keyboard.css +48 -0
  51. package/es2015/plugins/keyboard/keyboard.js +539 -0
  52. package/es2015/plugins/keyboard/keyboard.min.js +10 -0
  53. package/es2015/plugins/mobile-view/mobile-view.js +170 -0
  54. package/es2015/plugins/mobile-view/mobile-view.min.js +10 -0
  55. package/es2015/plugins/page-break/page-break.js +181 -0
  56. package/es2015/plugins/page-break/page-break.min.js +10 -0
  57. package/es2015/plugins/paste-code/paste-code.css +21 -0
  58. package/es2015/plugins/paste-code/paste-code.js +320 -0
  59. package/es2015/plugins/paste-code/paste-code.min.js +10 -0
  60. package/es2015/plugins/paste-from-word/paste-from-word.js +1541 -0
  61. package/es2015/plugins/paste-from-word/paste-from-word.min.js +10 -0
  62. package/es2015/plugins/show-blocks/show-blocks.js +645 -0
  63. package/es2015/plugins/show-blocks/show-blocks.min.js +10 -0
  64. package/es2015/plugins/todo-list/todo-list.css +77 -0
  65. package/es2015/plugins/todo-list/todo-list.js +314 -0
  66. package/es2015/plugins/todo-list/todo-list.min.css +1 -0
  67. package/es2015/plugins/todo-list/todo-list.min.js +10 -0
  68. package/es2015/plugins/translate/translate.css +91 -0
  69. package/es2015/plugins/translate/translate.js +630 -0
  70. package/es2015/plugins/translate/translate.min.js +10 -0
  71. package/es2015/plugins/tune-block/tune-block.css +37 -0
  72. package/es2015/plugins/tune-block/tune-block.js +387 -0
  73. package/{build/plugins/tune-block/tune-block.css → es2015/plugins/tune-block/tune-block.min.css} +1 -1
  74. package/es2015/plugins/tune-block/tune-block.min.js +10 -0
  75. package/es2018/jodit.css +4945 -0
  76. package/es2018/jodit.fat.min.css +1 -0
  77. package/es2018/jodit.fat.min.js +10 -0
  78. package/es2018/jodit.js +42762 -0
  79. package/es2018/jodit.min.css +1 -0
  80. package/es2018/jodit.min.js +10 -0
  81. package/es2018/plugins/autocomplete/autocomplete.css +26 -0
  82. package/es2018/plugins/autocomplete/autocomplete.js +471 -0
  83. package/es2018/plugins/autocomplete/autocomplete.min.js +10 -0
  84. package/es2018/plugins/backup/backup.css +48 -0
  85. package/es2018/plugins/backup/backup.js +561 -0
  86. package/{build/plugins/backup/backup.es5.css → es2018/plugins/backup/backup.min.css} +1 -1
  87. package/es2018/plugins/backup/backup.min.js +10 -0
  88. package/es2018/plugins/button-generator/button-generator.css +316 -0
  89. package/es2018/plugins/button-generator/button-generator.js +1387 -0
  90. package/es2018/plugins/button-generator/button-generator.min.css +1 -0
  91. package/es2018/plugins/button-generator/button-generator.min.js +10 -0
  92. package/es2018/plugins/change-case/change-case.js +171 -0
  93. package/es2018/plugins/change-case/change-case.min.js +10 -0
  94. package/es2018/plugins/color-picker/color-picker.css +133 -0
  95. package/es2018/plugins/color-picker/color-picker.js +519 -0
  96. package/es2018/plugins/color-picker/color-picker.min.css +1 -0
  97. package/es2018/plugins/color-picker/color-picker.min.js +10 -0
  98. package/es2018/plugins/emoji/emoji.css +108 -0
  99. package/es2018/plugins/emoji/emoji.js +425 -0
  100. package/es2018/plugins/emoji/emoji.min.css +1 -0
  101. package/es2018/plugins/emoji/emoji.min.js +10 -0
  102. package/es2018/plugins/export-docs/export-docs.js +157 -0
  103. package/es2018/plugins/export-docs/export-docs.min.js +10 -0
  104. package/es2018/plugins/finder/finder.css +1342 -0
  105. package/es2018/plugins/finder/finder.js +3160 -0
  106. package/es2018/plugins/finder/finder.min.css +1 -0
  107. package/es2018/plugins/finder/finder.min.js +10 -0
  108. package/es2018/plugins/google-maps/google-maps.css +397 -0
  109. package/es2018/plugins/google-maps/google-maps.js +2556 -0
  110. package/es2018/plugins/google-maps/google-maps.min.css +1 -0
  111. package/es2018/plugins/google-maps/google-maps.min.js +10 -0
  112. package/es2018/plugins/google-search/google-search.js +108 -0
  113. package/es2018/plugins/google-search/google-search.min.js +10 -0
  114. package/es2018/plugins/highlight-signature/highlight-signature.js +233 -0
  115. package/es2018/plugins/highlight-signature/highlight-signature.min.js +10 -0
  116. package/es2018/plugins/iframe-editor/iframe-editor.css +16 -0
  117. package/es2018/plugins/iframe-editor/iframe-editor.js +310 -0
  118. package/es2018/plugins/iframe-editor/iframe-editor.min.js +10 -0
  119. package/es2018/plugins/keyboard/keyboard.css +48 -0
  120. package/es2018/plugins/keyboard/keyboard.js +539 -0
  121. package/es2018/plugins/keyboard/keyboard.min.js +10 -0
  122. package/es2018/plugins/mobile-view/mobile-view.js +170 -0
  123. package/es2018/plugins/mobile-view/mobile-view.min.js +10 -0
  124. package/es2018/plugins/page-break/page-break.js +181 -0
  125. package/es2018/plugins/page-break/page-break.min.js +10 -0
  126. package/es2018/plugins/paste-code/paste-code.css +21 -0
  127. package/es2018/plugins/paste-code/paste-code.js +318 -0
  128. package/es2018/plugins/paste-code/paste-code.min.js +10 -0
  129. package/es2018/plugins/paste-from-word/paste-from-word.js +1541 -0
  130. package/es2018/plugins/paste-from-word/paste-from-word.min.js +10 -0
  131. package/es2018/plugins/show-blocks/show-blocks.js +645 -0
  132. package/es2018/plugins/show-blocks/show-blocks.min.js +10 -0
  133. package/es2018/plugins/todo-list/todo-list.css +77 -0
  134. package/es2018/plugins/todo-list/todo-list.js +314 -0
  135. package/es2018/plugins/todo-list/todo-list.min.css +1 -0
  136. package/es2018/plugins/todo-list/todo-list.min.js +10 -0
  137. package/es2018/plugins/translate/translate.css +91 -0
  138. package/es2018/plugins/translate/translate.js +639 -0
  139. package/es2018/plugins/translate/translate.min.js +10 -0
  140. package/es2018/plugins/tune-block/tune-block.css +37 -0
  141. package/es2018/plugins/tune-block/tune-block.js +387 -0
  142. package/{build/plugins/tune-block/tune-block.es5.css → es2018/plugins/tune-block/tune-block.min.css} +1 -1
  143. package/es2018/plugins/tune-block/tune-block.min.js +10 -0
  144. package/es2021/jodit.css +4945 -0
  145. package/es2021/jodit.fat.min.css +1 -0
  146. package/es2021/jodit.fat.min.js +10 -0
  147. package/es2021/jodit.js +42643 -0
  148. package/es2021/jodit.min.css +1 -0
  149. package/es2021/jodit.min.js +10 -0
  150. package/es2021/plugins/autocomplete/autocomplete.css +26 -0
  151. package/es2021/plugins/autocomplete/autocomplete.js +463 -0
  152. package/es2021/plugins/autocomplete/autocomplete.min.css +1 -0
  153. package/es2021/plugins/autocomplete/autocomplete.min.js +10 -0
  154. package/es2021/plugins/backup/backup.css +48 -0
  155. package/es2021/plugins/backup/backup.js +554 -0
  156. package/es2021/plugins/backup/backup.min.css +1 -0
  157. package/es2021/plugins/backup/backup.min.js +10 -0
  158. package/es2021/plugins/button-generator/button-generator.css +316 -0
  159. package/es2021/plugins/button-generator/button-generator.js +1382 -0
  160. package/es2021/plugins/button-generator/button-generator.min.css +1 -0
  161. package/es2021/plugins/button-generator/button-generator.min.js +10 -0
  162. package/es2021/plugins/change-case/change-case.js +171 -0
  163. package/es2021/plugins/change-case/change-case.min.js +10 -0
  164. package/es2021/plugins/color-picker/color-picker.css +133 -0
  165. package/es2021/plugins/color-picker/color-picker.js +517 -0
  166. package/es2021/plugins/color-picker/color-picker.min.css +1 -0
  167. package/es2021/plugins/color-picker/color-picker.min.js +10 -0
  168. package/es2021/plugins/emoji/emoji.css +108 -0
  169. package/es2021/plugins/emoji/emoji.js +425 -0
  170. package/es2021/plugins/emoji/emoji.min.css +1 -0
  171. package/es2021/plugins/emoji/emoji.min.js +10 -0
  172. package/es2021/plugins/export-docs/export-docs.js +156 -0
  173. package/es2021/plugins/export-docs/export-docs.min.js +10 -0
  174. package/es2021/plugins/finder/finder.css +1342 -0
  175. package/es2021/plugins/finder/finder.js +3152 -0
  176. package/es2021/plugins/finder/finder.min.css +1 -0
  177. package/es2021/plugins/finder/finder.min.js +10 -0
  178. package/es2021/plugins/google-maps/google-maps.css +397 -0
  179. package/es2021/plugins/google-maps/google-maps.js +2540 -0
  180. package/es2021/plugins/google-maps/google-maps.min.css +1 -0
  181. package/es2021/plugins/google-maps/google-maps.min.js +10 -0
  182. package/es2021/plugins/google-search/google-search.js +107 -0
  183. package/es2021/plugins/google-search/google-search.min.js +10 -0
  184. package/es2021/plugins/highlight-signature/highlight-signature.js +231 -0
  185. package/es2021/plugins/highlight-signature/highlight-signature.min.js +10 -0
  186. package/es2021/plugins/iframe-editor/iframe-editor.css +16 -0
  187. package/es2021/plugins/iframe-editor/iframe-editor.js +308 -0
  188. package/es2021/plugins/iframe-editor/iframe-editor.min.css +1 -0
  189. package/es2021/plugins/iframe-editor/iframe-editor.min.js +10 -0
  190. package/es2021/plugins/keyboard/keyboard.css +48 -0
  191. package/es2021/plugins/keyboard/keyboard.js +537 -0
  192. package/es2021/plugins/keyboard/keyboard.min.css +1 -0
  193. package/es2021/plugins/keyboard/keyboard.min.js +10 -0
  194. package/es2021/plugins/mobile-view/mobile-view.js +168 -0
  195. package/es2021/plugins/mobile-view/mobile-view.min.js +10 -0
  196. package/es2021/plugins/page-break/page-break.js +181 -0
  197. package/es2021/plugins/page-break/page-break.min.js +10 -0
  198. package/es2021/plugins/paste-code/paste-code.css +21 -0
  199. package/es2021/plugins/paste-code/paste-code.js +318 -0
  200. package/es2021/plugins/paste-code/paste-code.min.css +1 -0
  201. package/es2021/plugins/paste-code/paste-code.min.js +10 -0
  202. package/es2021/plugins/paste-from-word/paste-from-word.js +1528 -0
  203. package/es2021/plugins/paste-from-word/paste-from-word.min.js +10 -0
  204. package/es2021/plugins/show-blocks/show-blocks.js +645 -0
  205. package/es2021/plugins/show-blocks/show-blocks.min.js +10 -0
  206. package/es2021/plugins/todo-list/todo-list.css +77 -0
  207. package/es2021/plugins/todo-list/todo-list.js +313 -0
  208. package/es2021/plugins/todo-list/todo-list.min.css +1 -0
  209. package/es2021/plugins/todo-list/todo-list.min.js +10 -0
  210. package/es2021/plugins/translate/translate.css +91 -0
  211. package/es2021/plugins/translate/translate.js +636 -0
  212. package/es2021/plugins/translate/translate.min.css +1 -0
  213. package/es2021/plugins/translate/translate.min.js +10 -0
  214. package/es2021/plugins/tune-block/tune-block.css +37 -0
  215. package/es2021/plugins/tune-block/tune-block.js +385 -0
  216. package/es2021/plugins/tune-block/tune-block.min.css +1 -0
  217. package/es2021/plugins/tune-block/tune-block.min.js +10 -0
  218. package/es2021.en/jodit.css +4945 -0
  219. package/es2021.en/jodit.fat.min.css +1 -0
  220. package/es2021.en/jodit.fat.min.js +10 -0
  221. package/es2021.en/jodit.js +40989 -0
  222. package/es2021.en/jodit.min.css +1 -0
  223. package/es2021.en/jodit.min.js +10 -0
  224. package/es2021.en/plugins/autocomplete/autocomplete.css +26 -0
  225. package/es2021.en/plugins/autocomplete/autocomplete.js +463 -0
  226. package/es2021.en/plugins/autocomplete/autocomplete.min.css +1 -0
  227. package/es2021.en/plugins/autocomplete/autocomplete.min.js +10 -0
  228. package/es2021.en/plugins/backup/backup.css +48 -0
  229. package/es2021.en/plugins/backup/backup.js +554 -0
  230. package/es2021.en/plugins/backup/backup.min.css +1 -0
  231. package/es2021.en/plugins/backup/backup.min.js +10 -0
  232. package/es2021.en/plugins/button-generator/button-generator.css +316 -0
  233. package/es2021.en/plugins/button-generator/button-generator.js +1382 -0
  234. package/es2021.en/plugins/button-generator/button-generator.min.css +1 -0
  235. package/es2021.en/plugins/button-generator/button-generator.min.js +10 -0
  236. package/es2021.en/plugins/change-case/change-case.js +171 -0
  237. package/es2021.en/plugins/change-case/change-case.min.js +10 -0
  238. package/es2021.en/plugins/color-picker/color-picker.css +133 -0
  239. package/es2021.en/plugins/color-picker/color-picker.js +517 -0
  240. package/es2021.en/plugins/color-picker/color-picker.min.css +1 -0
  241. package/es2021.en/plugins/color-picker/color-picker.min.js +10 -0
  242. package/es2021.en/plugins/emoji/emoji.css +108 -0
  243. package/es2021.en/plugins/emoji/emoji.js +425 -0
  244. package/es2021.en/plugins/emoji/emoji.min.css +1 -0
  245. package/es2021.en/plugins/emoji/emoji.min.js +10 -0
  246. package/es2021.en/plugins/export-docs/export-docs.js +156 -0
  247. package/es2021.en/plugins/export-docs/export-docs.min.js +10 -0
  248. package/es2021.en/plugins/finder/finder.css +1342 -0
  249. package/es2021.en/plugins/finder/finder.js +3117 -0
  250. package/es2021.en/plugins/finder/finder.min.css +1 -0
  251. package/es2021.en/plugins/finder/finder.min.js +10 -0
  252. package/es2021.en/plugins/google-maps/google-maps.css +397 -0
  253. package/es2021.en/plugins/google-maps/google-maps.js +2540 -0
  254. package/es2021.en/plugins/google-maps/google-maps.min.css +1 -0
  255. package/es2021.en/plugins/google-maps/google-maps.min.js +10 -0
  256. package/es2021.en/plugins/google-search/google-search.js +107 -0
  257. package/es2021.en/plugins/google-search/google-search.min.js +10 -0
  258. package/es2021.en/plugins/highlight-signature/highlight-signature.js +231 -0
  259. package/es2021.en/plugins/highlight-signature/highlight-signature.min.js +10 -0
  260. package/es2021.en/plugins/iframe-editor/iframe-editor.css +16 -0
  261. package/es2021.en/plugins/iframe-editor/iframe-editor.js +308 -0
  262. package/es2021.en/plugins/iframe-editor/iframe-editor.min.css +1 -0
  263. package/es2021.en/plugins/iframe-editor/iframe-editor.min.js +10 -0
  264. package/es2021.en/plugins/keyboard/keyboard.css +48 -0
  265. package/es2021.en/plugins/keyboard/keyboard.js +537 -0
  266. package/es2021.en/plugins/keyboard/keyboard.min.css +1 -0
  267. package/es2021.en/plugins/keyboard/keyboard.min.js +10 -0
  268. package/es2021.en/plugins/mobile-view/mobile-view.js +168 -0
  269. package/es2021.en/plugins/mobile-view/mobile-view.min.js +10 -0
  270. package/es2021.en/plugins/page-break/page-break.js +181 -0
  271. package/es2021.en/plugins/page-break/page-break.min.js +10 -0
  272. package/es2021.en/plugins/paste-code/paste-code.css +21 -0
  273. package/es2021.en/plugins/paste-code/paste-code.js +318 -0
  274. package/es2021.en/plugins/paste-code/paste-code.min.css +1 -0
  275. package/es2021.en/plugins/paste-code/paste-code.min.js +10 -0
  276. package/es2021.en/plugins/paste-from-word/paste-from-word.js +1528 -0
  277. package/es2021.en/plugins/paste-from-word/paste-from-word.min.js +10 -0
  278. package/es2021.en/plugins/show-blocks/show-blocks.js +322 -0
  279. package/es2021.en/plugins/show-blocks/show-blocks.min.js +10 -0
  280. package/es2021.en/plugins/todo-list/todo-list.css +77 -0
  281. package/es2021.en/plugins/todo-list/todo-list.js +313 -0
  282. package/es2021.en/plugins/todo-list/todo-list.min.css +1 -0
  283. package/es2021.en/plugins/todo-list/todo-list.min.js +10 -0
  284. package/es2021.en/plugins/translate/translate.css +91 -0
  285. package/es2021.en/plugins/translate/translate.js +636 -0
  286. package/es2021.en/plugins/translate/translate.min.css +1 -0
  287. package/es2021.en/plugins/translate/translate.min.js +10 -0
  288. package/es2021.en/plugins/tune-block/tune-block.css +37 -0
  289. package/es2021.en/plugins/tune-block/tune-block.js +385 -0
  290. package/es2021.en/plugins/tune-block/tune-block.min.css +1 -0
  291. package/es2021.en/plugins/tune-block/tune-block.min.js +10 -0
  292. package/es5/jodit.css +5956 -0
  293. package/es5/jodit.fat.min.css +1 -0
  294. package/es5/jodit.fat.min.js +10 -0
  295. package/es5/jodit.js +49879 -0
  296. package/es5/jodit.min.css +15 -0
  297. package/es5/jodit.min.js +10 -0
  298. package/es5/plugins/autocomplete/autocomplete.css +26 -0
  299. package/es5/plugins/autocomplete/autocomplete.js +536 -0
  300. package/es5/plugins/autocomplete/autocomplete.min.css +1 -0
  301. package/es5/plugins/autocomplete/autocomplete.min.js +10 -0
  302. package/es5/plugins/backup/backup.css +48 -0
  303. package/es5/plugins/backup/backup.js +599 -0
  304. package/es5/plugins/backup/backup.min.css +1 -0
  305. package/es5/plugins/backup/backup.min.js +10 -0
  306. package/es5/plugins/button-generator/button-generator.css +316 -0
  307. package/es5/plugins/button-generator/button-generator.js +1310 -0
  308. package/es5/plugins/button-generator/button-generator.min.css +1 -0
  309. package/es5/plugins/button-generator/button-generator.min.js +10 -0
  310. package/es5/plugins/change-case/change-case.js +179 -0
  311. package/es5/plugins/change-case/change-case.min.js +10 -0
  312. package/es5/plugins/color-picker/color-picker.css +133 -0
  313. package/es5/plugins/color-picker/color-picker.js +525 -0
  314. package/es5/plugins/color-picker/color-picker.min.css +1 -0
  315. package/es5/plugins/color-picker/color-picker.min.js +10 -0
  316. package/es5/plugins/emoji/emoji.css +108 -0
  317. package/es5/plugins/emoji/emoji.js +459 -0
  318. package/es5/plugins/emoji/emoji.min.css +1 -0
  319. package/es5/plugins/emoji/emoji.min.js +10 -0
  320. package/es5/plugins/export-docs/export-docs.js +174 -0
  321. package/es5/plugins/export-docs/export-docs.min.js +10 -0
  322. package/es5/plugins/finder/finder.css +1342 -0
  323. package/es5/plugins/finder/finder.js +3335 -0
  324. package/es5/plugins/finder/finder.min.css +1 -0
  325. package/es5/plugins/finder/finder.min.js +10 -0
  326. package/es5/plugins/google-maps/google-maps.css +397 -0
  327. package/es5/plugins/google-maps/google-maps.js +2463 -0
  328. package/es5/plugins/google-maps/google-maps.min.css +1 -0
  329. package/es5/plugins/google-maps/google-maps.min.js +10 -0
  330. package/es5/plugins/google-search/google-search.js +113 -0
  331. package/es5/plugins/google-search/google-search.min.js +10 -0
  332. package/es5/plugins/highlight-signature/highlight-signature.js +253 -0
  333. package/es5/plugins/highlight-signature/highlight-signature.min.js +10 -0
  334. package/es5/plugins/iframe-editor/iframe-editor.css +16 -0
  335. package/es5/plugins/iframe-editor/iframe-editor.js +319 -0
  336. package/es5/plugins/iframe-editor/iframe-editor.min.css +1 -0
  337. package/es5/plugins/iframe-editor/iframe-editor.min.js +10 -0
  338. package/es5/plugins/keyboard/keyboard.css +48 -0
  339. package/es5/plugins/keyboard/keyboard.js +556 -0
  340. package/es5/plugins/keyboard/keyboard.min.css +1 -0
  341. package/es5/plugins/keyboard/keyboard.min.js +10 -0
  342. package/es5/plugins/mobile-view/mobile-view.js +176 -0
  343. package/es5/plugins/mobile-view/mobile-view.min.js +10 -0
  344. package/es5/plugins/page-break/page-break.js +169 -0
  345. package/es5/plugins/page-break/page-break.min.js +10 -0
  346. package/es5/plugins/paste-code/paste-code.css +21 -0
  347. package/es5/plugins/paste-code/paste-code.js +348 -0
  348. package/es5/plugins/paste-code/paste-code.min.css +1 -0
  349. package/es5/plugins/paste-code/paste-code.min.js +10 -0
  350. package/es5/plugins/paste-from-word/paste-from-word.js +1670 -0
  351. package/es5/plugins/paste-from-word/paste-from-word.min.js +10 -0
  352. package/es5/plugins/show-blocks/show-blocks.js +649 -0
  353. package/es5/plugins/show-blocks/show-blocks.min.js +10 -0
  354. package/es5/plugins/todo-list/todo-list.css +77 -0
  355. package/es5/plugins/todo-list/todo-list.js +324 -0
  356. package/es5/plugins/todo-list/todo-list.min.css +1 -0
  357. package/es5/plugins/todo-list/todo-list.min.js +10 -0
  358. package/es5/plugins/translate/translate.css +91 -0
  359. package/es5/plugins/translate/translate.js +657 -0
  360. package/es5/plugins/translate/translate.min.css +1 -0
  361. package/es5/plugins/translate/translate.min.js +10 -0
  362. package/es5/plugins/tune-block/tune-block.css +37 -0
  363. package/es5/plugins/tune-block/tune-block.js +397 -0
  364. package/es5/plugins/tune-block/tune-block.min.css +1 -0
  365. package/es5/plugins/tune-block/tune-block.min.js +10 -0
  366. package/examples/arabic.lang.html +8 -8
  367. package/examples/color-picker.html +6 -6
  368. package/examples/custom-icons.html +8 -8
  369. package/examples/custom-toolbar.html +8 -8
  370. package/examples/example.default.html +6 -6
  371. package/examples/fullsize.html +8 -8
  372. package/examples/index.html +6 -6
  373. package/examples/inline-mode.html +8 -8
  374. package/examples/oneinstance.html +8 -8
  375. package/examples/theme.html +6 -6
  376. package/package.json +6 -22
  377. package/LICENSE.md +0 -3
  378. package/build/jodit.css +0 -1
  379. package/build/jodit.es5.css +0 -8
  380. package/build/jodit.es5.js +0 -1
  381. package/build/jodit.fat.css +0 -1
  382. package/build/jodit.fat.es5.css +0 -1
  383. package/build/jodit.fat.es5.js +0 -1
  384. package/build/jodit.fat.js +0 -1
  385. package/build/jodit.js +0 -1
  386. package/build/plugins/autocomplete/autocomplete.es5.js +0 -1
  387. package/build/plugins/autocomplete/autocomplete.js +0 -1
  388. package/build/plugins/backup/backup.es5.js +0 -1
  389. package/build/plugins/backup/backup.js +0 -1
  390. package/build/plugins/button-generator/button-generator.css +0 -1
  391. package/build/plugins/button-generator/button-generator.es5.css +0 -1
  392. package/build/plugins/button-generator/button-generator.es5.js +0 -1
  393. package/build/plugins/button-generator/button-generator.js +0 -1
  394. package/build/plugins/change-case/change-case.es5.js +0 -1
  395. package/build/plugins/change-case/change-case.js +0 -1
  396. package/build/plugins/color-picker/color-picker.css +0 -1
  397. package/build/plugins/color-picker/color-picker.es5.css +0 -1
  398. package/build/plugins/color-picker/color-picker.es5.js +0 -1
  399. package/build/plugins/color-picker/color-picker.js +0 -1
  400. package/build/plugins/emoji/emoji.css +0 -1
  401. package/build/plugins/emoji/emoji.es5.css +0 -1
  402. package/build/plugins/emoji/emoji.es5.js +0 -1
  403. package/build/plugins/emoji/emoji.js +0 -1
  404. package/build/plugins/export-docs/export-docs.es5.js +0 -1
  405. package/build/plugins/export-docs/export-docs.js +0 -1
  406. package/build/plugins/finder/finder.css +0 -1
  407. package/build/plugins/finder/finder.es5.css +0 -1
  408. package/build/plugins/finder/finder.es5.js +0 -1
  409. package/build/plugins/finder/finder.js +0 -1
  410. package/build/plugins/google-maps/google-maps.css +0 -1
  411. package/build/plugins/google-maps/google-maps.es5.css +0 -1
  412. package/build/plugins/google-maps/google-maps.es5.js +0 -1
  413. package/build/plugins/google-maps/google-maps.js +0 -1
  414. package/build/plugins/google-search/google-search.es5.js +0 -1
  415. package/build/plugins/google-search/google-search.js +0 -1
  416. package/build/plugins/highlight-signature/highlight-signature.es5.js +0 -1
  417. package/build/plugins/highlight-signature/highlight-signature.js +0 -1
  418. package/build/plugins/iframe-editor/iframe-editor.es5.js +0 -1
  419. package/build/plugins/iframe-editor/iframe-editor.js +0 -1
  420. package/build/plugins/keyboard/keyboard.es5.js +0 -1
  421. package/build/plugins/keyboard/keyboard.js +0 -1
  422. package/build/plugins/mobile-view/mobile-view.css +0 -0
  423. package/build/plugins/mobile-view/mobile-view.es5.css +0 -0
  424. package/build/plugins/mobile-view/mobile-view.es5.js +0 -1
  425. package/build/plugins/mobile-view/mobile-view.js +0 -1
  426. package/build/plugins/page-break/page-break.css +0 -1
  427. package/build/plugins/page-break/page-break.es5.css +0 -1
  428. package/build/plugins/page-break/page-break.es5.js +0 -1
  429. package/build/plugins/page-break/page-break.js +0 -1
  430. package/build/plugins/paste-code/paste-code.es5.js +0 -1
  431. package/build/plugins/paste-code/paste-code.js +0 -1
  432. package/build/plugins/paste-from-word/paste-from-word.es5.js +0 -1
  433. package/build/plugins/paste-from-word/paste-from-word.js +0 -1
  434. package/build/plugins/show-blocks/show-blocks.es5.js +0 -1
  435. package/build/plugins/show-blocks/show-blocks.js +0 -1
  436. package/build/plugins/todo-list/todo-list.css +0 -1
  437. package/build/plugins/todo-list/todo-list.es5.css +0 -1
  438. package/build/plugins/todo-list/todo-list.es5.js +0 -1
  439. package/build/plugins/todo-list/todo-list.js +0 -1
  440. package/build/plugins/translate/translate.es5.js +0 -1
  441. package/build/plugins/translate/translate.js +0 -1
  442. package/build/plugins/tune-block/tune-block.es5.js +0 -1
  443. package/build/plugins/tune-block/tune-block.js +0 -1
  444. package/index.html +0 -268
  445. /package/{build/config.js → config.js} +0 -0
  446. /package/{build/plugins/autocomplete/autocomplete.css → es2015/plugins/autocomplete/autocomplete.min.css} +0 -0
  447. /package/{build/plugins/iframe-editor/iframe-editor.css → es2015/plugins/iframe-editor/iframe-editor.min.css} +0 -0
  448. /package/{build/plugins/keyboard/keyboard.css → es2015/plugins/keyboard/keyboard.min.css} +0 -0
  449. /package/{build/plugins/paste-code/paste-code.css → es2015/plugins/paste-code/paste-code.min.css} +0 -0
  450. /package/{build/plugins/translate/translate.css → es2015/plugins/translate/translate.min.css} +0 -0
  451. /package/{build/plugins/autocomplete/autocomplete.es5.css → es2018/plugins/autocomplete/autocomplete.min.css} +0 -0
  452. /package/{build/plugins/iframe-editor/iframe-editor.es5.css → es2018/plugins/iframe-editor/iframe-editor.min.css} +0 -0
  453. /package/{build/plugins/keyboard/keyboard.es5.css → es2018/plugins/keyboard/keyboard.min.css} +0 -0
  454. /package/{build/plugins/paste-code/paste-code.es5.css → es2018/plugins/paste-code/paste-code.min.css} +0 -0
  455. /package/{build/plugins/translate/translate.es5.css → es2018/plugins/translate/translate.min.css} +0 -0
@@ -0,0 +1,2463 @@
1
+ /*!
2
+ * jodit-pro - PRO Version of Jodit Editor
3
+ * Author: Chupurnov Valeriy <chupurnov@gmail.com>
4
+ * Version: v2.0.0-beta.10
5
+ * Url: https://xdsoft.net/jodit/pro/
6
+ * License(s): SEE LICENSE IN LICENSE.md
7
+ */
8
+
9
+ (function webpackUniversalModuleDefinition(root, factory) {
10
+ if(typeof exports === 'object' && typeof module === 'object')
11
+ module.exports = factory();
12
+ else if(typeof define === 'function' && define.amd)
13
+ define([], factory);
14
+ else {
15
+ var a = factory();
16
+ for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
17
+ }
18
+ })(self, function() {
19
+ return (self["webpackChunkjodit_pro"] = self["webpackChunkjodit_pro"] || []).push([[917],{
20
+
21
+ /***/ 50403:
22
+ /***/ (function(module) {
23
+
24
+ module.exports = "<svg viewBox=\"0 0 83 84\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"> <circle cx=\"40\" cy=\"44\" r=\"37\" stroke=\"black\" stroke-width=\"6\"/> <path d=\"M40 4V44H79\" stroke=\"black\" stroke-width=\"5\"/> <circle cx=\"40\" cy=\"6\" r=\"6\" fill=\"#C8C8C8\"/> <circle cx=\"40\" cy=\"43\" r=\"6\" fill=\"#C8C8C8\"/> <circle cx=\"77\" cy=\"44\" r=\"6\" fill=\"#C8C8C8\"/> </svg>"
25
+
26
+ /***/ }),
27
+
28
+ /***/ 13050:
29
+ /***/ (function(module) {
30
+
31
+ module.exports = "<svg viewBox=\"0 0 76 76\" xmlns=\"http://www.w3.org/2000/svg\"> <path d=\"M38 6.90909C36.2517 6.90909 34.7591 7.58381 33.5221 8.93324C32.2852 10.2827 31.6667 11.911 31.6667 13.8182V20.7273H30.0833V15.7074C30.0833 13.9801 29.5556 12.5137 28.5 11.3082C27.4444 10.1027 26.125 9.5 24.5417 9.5C23.0243 9.5 21.7214 10.0938 20.6328 11.2813C19.5443 12.4688 19 13.8902 19 15.5455V38.7017L17.4167 37.0824V27.7983C17.4167 26.071 16.8889 24.6046 15.8333 23.3991C14.7778 22.1937 13.4583 21.5909 11.875 21.5909C10.3576 21.5909 9.05469 22.1847 7.96615 23.3722C6.8776 24.5597 6.33333 25.9811 6.33333 27.6364V39.7273C6.33333 41.4186 6.91059 42.8939 8.0651 44.1534L23.4036 60.1307C24.6901 61.5341 25.3333 63.3693 25.3333 65.6364C25.3333 66.572 25.6467 67.3816 26.2734 68.0653C26.9002 68.7491 27.6424 69.0909 28.5 69.0909H60.1667C61.0243 69.0909 61.7665 68.7491 62.3932 68.0653C63.02 67.3816 63.3333 66.572 63.3333 65.6364V64.2869C63.3333 62.8116 63.4983 61.4261 63.8281 60.1307L69.1719 36.5966C69.5017 35.3011 69.6667 33.9157 69.6667 32.4403V19.1619C69.6667 17.4347 69.1389 15.9683 68.0833 14.7628C67.0278 13.5573 65.7083 12.9545 64.125 12.9545C62.6076 12.9545 61.3047 13.5483 60.2161 14.7358C59.1276 15.9233 58.5833 17.3447 58.5833 19V20.7273H57V13.9801C57 12.5407 56.5877 11.2363 55.763 10.0668C54.9384 8.89725 53.8828 8.16856 52.5964 7.88068C52.1345 7.80871 51.7552 7.77273 51.4583 7.77273C49.941 7.77273 48.638 8.36648 47.5495 9.55398C46.4609 10.7415 45.9167 12.1629 45.9167 13.8182V20.7273H44.3333V14.142C44.3333 12.3068 43.7973 10.6965 42.7253 9.31108C41.6532 7.92566 40.2925 7.14299 38.6432 6.96307C38.4783 6.92708 38.2639 6.90909 38 6.90909ZM38 0C40.7708 0 43.2283 0.899621 45.3724 2.69886C47.2526 1.47538 49.2813 0.863636 51.4583 0.863636C53.4045 0.863636 55.2352 1.34943 56.9505 2.32102C58.6658 3.29261 60.0842 4.66004 61.2057 6.4233C62.0964 6.1714 63.0694 6.04545 64.125 6.04545C67.4236 6.04545 70.2274 7.33191 72.5365 9.90483C74.8455 12.4777 76 15.5634 76 19.1619V32.4403C76 34.2756 75.7856 36.2188 75.3568 38.2699L69.9635 61.804C69.7656 62.6676 69.6667 63.9451 69.6667 65.6364C69.6667 68.5152 68.7431 70.9621 66.8958 72.9773C65.0486 74.9924 62.8056 76 60.1667 76H28.5C25.7292 76 23.4531 74.9474 21.6719 72.8423C19.8906 70.7372 19 68.1733 19 65.1506L3.76042 49.1733C1.25347 46.5464 0 43.3977 0 39.7273V27.6364C0 24.0739 1.16276 21.0241 3.48828 18.4872C5.8138 15.9503 8.60938 14.6818 11.875 14.6818C12.2378 14.6818 12.5017 14.6998 12.6667 14.7358C12.8646 11.3172 14.1098 8.43845 16.4023 6.09943C18.6949 3.76042 21.408 2.59091 24.5417 2.59091C26.2569 2.59091 27.8733 2.96875 29.3906 3.72443C31.7656 1.24148 34.6354 0 38 0Z\"/> </svg>"
32
+
33
+ /***/ }),
34
+
35
+ /***/ 76941:
36
+ /***/ (function(module) {
37
+
38
+ module.exports = "<svg viewBox=\"0 0 32 32\" xmlns=\"http://www.w3.org/2000/svg\"> <g> <path d=\"M23,13.6l5,5V4c0-0.6-0.4-1-1-1h-4V13.6z\"/> <polygon points=\"12.4,3 16.7,7.3 19.7,10.3 21,11.6 21,3\"/> <path d=\"M14.6,8l-5-5H5C4.4,3,4,3.4,4,4v14.6L14.6,8z\"/> </g> <path d=\"M28.8,29.2L26,26.4c0.7-1,1-2.1,1-3.4c0-3.3-2.7-6-6-6s-6,2.7-6,6s2.7,6,6,6c1.2,0,2.4-0.4,3.4-1l2.8,2.8 c0.4,0.4,1.2,0.4,1.6,0C29.2,30.4,29.2,29.6,28.8,29.2z\"/> <path d=\"M13,23c0-4.4,3.6-8,8-8c0.2,0,0.4,0,0.6,0l-0.3-0.3c0,0,0,0,0,0l-3-3L16,9.4l-12,12V26c0,0.6,0.4,1,1,1h9.1 C13.4,25.8,13,24.5,13,23z\"/> </svg>"
39
+
40
+ /***/ }),
41
+
42
+ /***/ 9472:
43
+ /***/ (function(module) {
44
+
45
+ module.exports = "<svg viewBox=\"0 0 88 88\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"> <g> <path d=\"M44 0.513519C27.2931 0.513519 13.75 13.8981 13.75 30.4095C13.75 46.9208 44 87.4835 44 87.4835C44 87.4835 74.25 46.9208 74.25 30.4095C74.25 13.8981 60.7069 0.513519 44 0.513519ZM19.25 30.4095C19.25 16.921 30.3518 5.94914 44 5.94914C57.6482 5.94914 68.75 16.921 68.75 30.4095C68.75 39.8049 54.9945 62.4871 44 78.1329C33.0055 62.4871 19.25 39.8049 19.25 30.4095ZM44 16.8204C36.4052 16.8204 30.25 22.9035 30.25 30.4095C30.25 37.9154 36.4052 43.9985 44 43.9985C51.5948 43.9985 57.75 37.9154 57.75 30.4095C57.75 22.9035 51.5948 16.8204 44 16.8204ZM44 38.5629C39.4508 38.5629 35.75 34.9054 35.75 30.4095C35.75 25.9135 39.4508 22.256 44 22.256C48.5492 22.256 52.25 25.9135 52.25 30.4095C52.25 34.9054 48.5492 38.5629 44 38.5629Z\" fill=\"#404040\"/> </g> <defs> <rect width=\"88\" height=\"86.97\" fill=\"white\" transform=\"translate(0 0.513519)\"/> </defs> </svg>"
46
+
47
+ /***/ }),
48
+
49
+ /***/ 35122:
50
+ /***/ (function(module) {
51
+
52
+ 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>"
53
+
54
+ /***/ }),
55
+
56
+ /***/ 56712:
57
+ /***/ (function(module) {
58
+
59
+ 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>"
60
+
61
+ /***/ }),
62
+
63
+ /***/ 78400:
64
+ /***/ (function(module) {
65
+
66
+ module.exports = "<svg viewBox=\"0 0 47 61\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"> <path d=\"M46.7671 7.12793H27.3433V61H19.416V7.12793H0.0336914V0.570312H46.7671V7.12793Z\" fill=\"black\"/> </svg>"
67
+
68
+ /***/ }),
69
+
70
+ /***/ 28803:
71
+ /***/ (function(module) {
72
+
73
+ "use strict";
74
+
75
+ /*!
76
+ * a-color-picker (https://github.com/narsenico/a-color-picker)
77
+ *
78
+ * Copyright (c) 2017-2018, Gianfranco Caldi.
79
+ * Released under the MIT License.
80
+ */
81
+ !function (e, t) { true ? module.exports = t() : 0; }("undefined" != typeof self ? self : this, function () {
82
+ return function (e) { var t = {}; function r(i) { if (t[i])
83
+ return t[i].exports; var o = t[i] = { i: i, l: !1, exports: {} }; return e[i].call(o.exports, o, o.exports, r), o.l = !0, o.exports; } return r.m = e, r.c = t, r.d = function (e, t, i) { r.o(e, t) || Object.defineProperty(e, t, { enumerable: !0, get: i }); }, r.r = function (e) { "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(e, "__esModule", { value: !0 }); }, r.t = function (e, t) { if (1 & t && (e = r(e)), 8 & t)
84
+ return e; if (4 & t && "object" == typeof e && e && e.__esModule)
85
+ return e; var i = Object.create(null); if (r.r(i), Object.defineProperty(i, "default", { enumerable: !0, value: e }), 2 & t && "string" != typeof e)
86
+ for (var o in e)
87
+ r.d(i, o, function (t) { return e[t]; }.bind(null, o)); return i; }, r.n = function (e) { var t = e && e.__esModule ? function () { return e.default; } : function () { return e; }; return r.d(t, "a", t), t; }, r.o = function (e, t) { return Object.prototype.hasOwnProperty.call(e, t); }, r.p = "", r(r.s = 1); }([function (e, t, r) {
88
+ "use strict";
89
+ /*!
90
+ * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
91
+ *
92
+ * Copyright (c) 2014-2017, Jon Schlinkert.
93
+ * Released under the MIT License.
94
+ */ var i = r(3);
95
+ function o(e) { return !0 === i(e) && "[object Object]" === Object.prototype.toString.call(e); }
96
+ e.exports = function (e) { var t, r; return !1 !== o(e) && "function" == typeof (t = e.constructor) && !1 !== o(r = t.prototype) && !1 !== r.hasOwnProperty("isPrototypeOf"); };
97
+ }, function (e, t, r) {
98
+ "use strict";
99
+ 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;
100
+ var i = function () { function e(e, t) { for (var r = 0; r < t.length; r++) {
101
+ var i = t[r];
102
+ i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(e, i.key, i);
103
+ } } return function (t, r, i) { return r && e(t.prototype, r), i && e(t, i), t; }; }(), o = function (e, t) { if (Array.isArray(e))
104
+ return e; if (Symbol.iterator in Object(e))
105
+ return function (e, t) { var r = [], i = !0, o = !1, n = void 0; try {
106
+ for (var s, a = e[Symbol.iterator](); !(i = (s = a.next()).done) && (r.push(s.value), !t || r.length !== t); i = !0)
107
+ ;
108
+ }
109
+ catch (e) {
110
+ o = !0, n = e;
111
+ }
112
+ finally {
113
+ try {
114
+ !i && a.return && a.return();
115
+ }
116
+ finally {
117
+ if (o)
118
+ throw n;
119
+ }
120
+ } return r; }(e, t); throw new TypeError("Invalid attempt to destructure non-iterable instance"); }, n = r(2), s = l(r(0)), a = l(r(4));
121
+ function l(e) { return e && e.__esModule ? e : { default: e }; }
122
+ function c(e, t) { if (!(e instanceof t))
123
+ throw new TypeError("Cannot call a class as a function"); }
124
+ function u(e) { if (Array.isArray(e)) {
125
+ for (var t = 0, r = Array(e.length); t < e.length; t++)
126
+ r[t] = e[t];
127
+ return r;
128
+ } return Array.from(e); }
129
+ /*!
130
+ * a-color-picker
131
+ * https://github.com/narsenico/a-color-picker
132
+ *
133
+ * Copyright (c) 2017-2019, Gianfranco Caldi.
134
+ * Released under the MIT License.
135
+ */ var h = "undefined" != typeof window && window.navigator.userAgent.indexOf("Edge") > -1, p = "undefined" != typeof window && window.navigator.userAgent.indexOf("rv:") > -1, d = { id: null, attachTo: "body", showHSL: !0, showRGB: !0, showHEX: !0, showAlpha: !1, color: "#ff0000", palette: null, paletteEditable: !1, useAlphaInPalette: "auto", slBarSize: [232, 150], hueBarSize: [150, 11], alphaBarSize: [150, 11] }, f = "COLOR", g = "RGBA_USER", b = "HSLA_USER";
136
+ function v(e, t, r) { return e ? e instanceof HTMLElement ? e : e instanceof NodeList ? e[0] : "string" == typeof e ? document.querySelector(e) : e.jquery ? e.get(0) : r ? t : null : t; }
137
+ function m(e) { var t = e.getContext("2d"), r = +e.width, i = +e.height, s = t.createLinearGradient(1, 1, 1, i - 1); return s.addColorStop(0, "white"), s.addColorStop(1, "black"), { setHue: function (e) { var o = t.createLinearGradient(1, 0, r - 1, 0); o.addColorStop(0, "hsla(" + e + ", 100%, 50%, 0)"), o.addColorStop(1, "hsla(" + e + ", 100%, 50%, 1)"), t.fillStyle = s, t.fillRect(0, 0, r, i), t.fillStyle = o, t.globalCompositeOperation = "multiply", t.fillRect(0, 0, r, i), t.globalCompositeOperation = "source-over"; }, grabColor: function (e, r) { return t.getImageData(e, r, 1, 1).data; }, findColor: function (e, t, s) { var a = (0, n.rgbToHsv)(e, t, s), l = o(a, 3), c = l[1], u = l[2]; return [c * r, i - u * i]; } }; }
138
+ function A(e, t, r) { return null === e ? t : /^\s*$/.test(e) ? r : !!/true|yes|1/i.test(e) || !/false|no|0/i.test(e) && t; }
139
+ function y(e, t, r) { if (null === e)
140
+ return t; if (/^\s*$/.test(e))
141
+ return r; var i = e.split(",").map(Number); return 2 === i.length && i[0] && i[1] ? i : t; }
142
+ var k = function () { function e(t, r) { if (c(this, e), r ? (t = v(t), this.options = Object.assign({}, d, r)) : t && (0, s.default)(t) ? (this.options = Object.assign({}, d, t), t = v(this.options.attachTo)) : (this.options = Object.assign({}, d), t = v((0, n.nvl)(t, this.options.attachTo))), !t)
143
+ throw new Error("Container not found: " + this.options.attachTo); !function (e, t) { var r = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : "acp-"; if (t.hasAttribute(r + "show-hsl") && (e.showHSL = A(t.getAttribute(r + "show-hsl"), d.showHSL, !0)), t.hasAttribute(r + "show-rgb") && (e.showRGB = A(t.getAttribute(r + "show-rgb"), d.showRGB, !0)), t.hasAttribute(r + "show-hex") && (e.showHEX = A(t.getAttribute(r + "show-hex"), d.showHEX, !0)), t.hasAttribute(r + "show-alpha") && (e.showAlpha = A(t.getAttribute(r + "show-alpha"), d.showAlpha, !0)), t.hasAttribute(r + "palette-editable") && (e.paletteEditable = A(t.getAttribute(r + "palette-editable"), d.paletteEditable, !0)), t.hasAttribute(r + "sl-bar-size") && (e.slBarSize = y(t.getAttribute(r + "sl-bar-size"), d.slBarSize, [232, 150])), t.hasAttribute(r + "hue-bar-size") && (e.hueBarSize = y(t.getAttribute(r + "hue-bar-size"), d.hueBarSize, [150, 11]), e.alphaBarSize = e.hueBarSize), t.hasAttribute(r + "palette")) {
144
+ var i = t.getAttribute(r + "palette");
145
+ switch (i) {
146
+ case "PALETTE_MATERIAL_500":
147
+ e.palette = n.PALETTE_MATERIAL_500;
148
+ break;
149
+ case "PALETTE_MATERIAL_CHROME":
150
+ case "":
151
+ e.palette = n.PALETTE_MATERIAL_CHROME;
152
+ break;
153
+ default: e.palette = i.split(/[;|]/);
154
+ }
155
+ } t.hasAttribute(r + "color") && (e.color = t.getAttribute(r + "color")); }(this.options, t), this.H = 0, this.S = 0, this.L = 0, this.R = 0, this.G = 0, this.B = 0, this.A = 1, this.palette = {}, this.element = document.createElement("div"), this.options.id && (this.element.id = this.options.id), this.element.className = "a-color-picker", this.element.innerHTML = a.default, t.appendChild(this.element); var i = this.element.querySelector(".a-color-picker-h"); this.setupHueCanvas(i), this.hueBarHelper = m(i), this.huePointer = this.element.querySelector(".a-color-picker-h+.a-color-picker-dot"); var o = this.element.querySelector(".a-color-picker-sl"); this.setupSlCanvas(o), this.slBarHelper = m(o), this.slPointer = this.element.querySelector(".a-color-picker-sl+.a-color-picker-dot"), this.preview = this.element.querySelector(".a-color-picker-preview"), this.setupClipboard(this.preview.querySelector(".a-color-picker-clipbaord")), this.options.showHSL ? (this.setupInput(this.inputH = this.element.querySelector(".a-color-picker-hsl>input[nameref=H]")), this.setupInput(this.inputS = this.element.querySelector(".a-color-picker-hsl>input[nameref=S]")), this.setupInput(this.inputL = this.element.querySelector(".a-color-picker-hsl>input[nameref=L]"))) : this.element.querySelector(".a-color-picker-hsl").remove(), this.options.showRGB ? (this.setupInput(this.inputR = this.element.querySelector(".a-color-picker-rgb>input[nameref=R]")), this.setupInput(this.inputG = this.element.querySelector(".a-color-picker-rgb>input[nameref=G]")), this.setupInput(this.inputB = this.element.querySelector(".a-color-picker-rgb>input[nameref=B]"))) : this.element.querySelector(".a-color-picker-rgb").remove(), this.options.showHEX ? this.setupInput(this.inputRGBHEX = this.element.querySelector("input[nameref=RGBHEX]")) : this.element.querySelector(".a-color-picker-rgbhex").remove(), this.options.paletteEditable || this.options.palette && this.options.palette.length > 0 ? this.setPalette(this.paletteRow = this.element.querySelector(".a-color-picker-palette")) : (this.paletteRow = this.element.querySelector(".a-color-picker-palette"), this.paletteRow.remove()), this.options.showAlpha ? (this.setupAlphaCanvas(this.element.querySelector(".a-color-picker-a")), this.alphaPointer = this.element.querySelector(".a-color-picker-a+.a-color-picker-dot")) : this.element.querySelector(".a-color-picker-alpha").remove(), this.element.style.width = this.options.slBarSize[0] + "px", this.onValueChanged(f, this.options.color); } return i(e, [{ key: "setupHueCanvas", value: function (e) { var t = this; e.width = this.options.hueBarSize[0], e.height = this.options.hueBarSize[1]; for (var r = e.getContext("2d"), i = r.createLinearGradient(0, 0, this.options.hueBarSize[0], 0), o = 0; o <= 1; o += 1 / 360)
156
+ i.addColorStop(o, "hsl(" + 360 * o + ", 100%, 50%)"); r.fillStyle = i, r.fillRect(0, 0, this.options.hueBarSize[0], this.options.hueBarSize[1]); var s = function (r) { var i = (0, n.limit)(r.clientX - e.getBoundingClientRect().left, 0, t.options.hueBarSize[0]), o = Math.round(360 * i / t.options.hueBarSize[0]); t.huePointer.style.left = i - 7 + "px", t.onValueChanged("H", o); }, a = function e() { document.removeEventListener("mousemove", s), document.removeEventListener("mouseup", e); }; e.addEventListener("mousedown", function (e) { s(e), document.addEventListener("mousemove", s), document.addEventListener("mouseup", a); }); } }, { key: "setupSlCanvas", value: function (e) { var t = this; e.width = this.options.slBarSize[0], e.height = this.options.slBarSize[1]; var r = function (r) { var i = (0, n.limit)(r.clientX - e.getBoundingClientRect().left, 0, t.options.slBarSize[0] - 1), o = (0, n.limit)(r.clientY - e.getBoundingClientRect().top, 0, t.options.slBarSize[1] - 1), s = t.slBarHelper.grabColor(i, o); t.slPointer.style.left = i - 7 + "px", t.slPointer.style.top = o - 7 + "px", t.onValueChanged("RGB", s); }, i = function e() { document.removeEventListener("mousemove", r), document.removeEventListener("mouseup", e); }; e.addEventListener("mousedown", function (e) { r(e), document.addEventListener("mousemove", r), document.addEventListener("mouseup", i); }); } }, { key: "setupAlphaCanvas", value: function (e) { var t = this; e.width = this.options.alphaBarSize[0], e.height = this.options.alphaBarSize[1]; var r = e.getContext("2d"), i = r.createLinearGradient(0, 0, e.width - 1, 0); i.addColorStop(0, "hsla(0, 0%, 50%, 0)"), i.addColorStop(1, "hsla(0, 0%, 50%, 1)"), r.fillStyle = i, r.fillRect(0, 0, this.options.alphaBarSize[0], this.options.alphaBarSize[1]); var o = function (r) { var i = (0, n.limit)(r.clientX - e.getBoundingClientRect().left, 0, t.options.alphaBarSize[0]), o = +(i / t.options.alphaBarSize[0]).toFixed(2); t.alphaPointer.style.left = i - 7 + "px", t.onValueChanged("ALPHA", o); }, s = function e() { document.removeEventListener("mousemove", o), document.removeEventListener("mouseup", e); }; e.addEventListener("mousedown", function (e) { o(e), document.addEventListener("mousemove", o), document.addEventListener("mouseup", s); }); } }, { key: "setupInput", value: function (e) { var t = this, r = +e.min, i = +e.max, o = e.getAttribute("nameref"); e.hasAttribute("select-on-focus") && e.addEventListener("focus", function () { e.select(); }), "text" === e.type ? e.addEventListener("change", function () { t.onValueChanged(o, e.value); }) : ((h || p) && e.addEventListener("keydown", function (s) { "Up" === s.key ? (e.value = (0, n.limit)(+e.value + 1, r, i), t.onValueChanged(o, e.value), s.returnValue = !1) : "Down" === s.key && (e.value = (0, n.limit)(+e.value - 1, r, i), t.onValueChanged(o, e.value), s.returnValue = !1); }), e.addEventListener("change", function () { var s = +e.value; t.onValueChanged(o, (0, n.limit)(s, r, i)); })); } }, { key: "setupClipboard", value: function (e) { var t = this; e.title = "click to copy", e.addEventListener("click", function () { e.value = (0, n.parseColor)([t.R, t.G, t.B, t.A], "hexcss4"), e.select(), document.execCommand("copy"); }); } }, { key: "setPalette", value: function (e) { var t = this, r = "auto" === this.options.useAlphaInPalette ? this.options.showAlpha : this.options.useAlphaInPalette, i = null; switch (this.options.palette) {
157
+ case "PALETTE_MATERIAL_500":
158
+ i = n.PALETTE_MATERIAL_500;
159
+ break;
160
+ case "PALETTE_MATERIAL_CHROME":
161
+ i = n.PALETTE_MATERIAL_CHROME;
162
+ break;
163
+ default: i = (0, n.ensureArray)(this.options.palette);
164
+ } if (this.options.paletteEditable || i.length > 0) {
165
+ var o = function (r, i, o) { var n = e.querySelector('.a-color-picker-palette-color[data-color="' + r + '"]') || document.createElement("div"); n.className = "a-color-picker-palette-color", n.style.backgroundColor = r, n.setAttribute("data-color", r), n.title = r, e.insertBefore(n, i), t.palette[r] = !0, o && t.onPaletteColorAdd(r); }, s = function (r, i) { r ? (e.removeChild(r), t.palette[r.getAttribute("data-color")] = !1, i && t.onPaletteColorRemove(r.getAttribute("data-color"))) : (e.querySelectorAll(".a-color-picker-palette-color[data-color]").forEach(function (t) { e.removeChild(t); }), Object.keys(t.palette).forEach(function (e) { t.palette[e] = !1; }), i && t.onPaletteColorRemove()); };
166
+ if (i.map(function (e) { return (0, n.parseColor)(e, r ? "rgbcss4" : "hex"); }).filter(function (e) { return !!e; }).forEach(function (e) { return o(e); }), this.options.paletteEditable) {
167
+ var a = document.createElement("div");
168
+ a.className = "a-color-picker-palette-color a-color-picker-palette-add", a.innerHTML = "+", e.appendChild(a), e.addEventListener("click", function (e) { /a-color-picker-palette-add/.test(e.target.className) ? e.shiftKey ? s(null, !0) : o(r ? (0, n.parseColor)([t.R, t.G, t.B, t.A], "rgbcss4") : (0, n.rgbToHex)(t.R, t.G, t.B), e.target, !0) : /a-color-picker-palette-color/.test(e.target.className) && (e.shiftKey ? s(e.target, !0) : t.onValueChanged(f, e.target.getAttribute("data-color"))); });
169
+ }
170
+ else
171
+ e.addEventListener("click", function (e) { /a-color-picker-palette-color/.test(e.target.className) && t.onValueChanged(f, e.target.getAttribute("data-color")); });
172
+ }
173
+ else
174
+ e.style.display = "none"; } }, { key: "updatePalette", value: function (e) { this.paletteRow.innerHTML = "", this.palette = {}, this.paletteRow.parentElement || this.element.appendChild(this.paletteRow), this.options.palette = e, this.setPalette(this.paletteRow); } }, { key: "onValueChanged", value: function (e, t) { var r = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : { silent: !1 }; switch (e) {
175
+ case "H":
176
+ this.H = t;
177
+ var i = (0, n.hslToRgb)(this.H, this.S, this.L), s = o(i, 3);
178
+ this.R = s[0], this.G = s[1], this.B = s[2], this.slBarHelper.setHue(t), this.updatePointerH(this.H), this.updateInputHSL(this.H, this.S, this.L), this.updateInputRGB(this.R, this.G, this.B), this.updateInputRGBHEX(this.R, this.G, this.B);
179
+ break;
180
+ case "S":
181
+ this.S = t;
182
+ var a = (0, n.hslToRgb)(this.H, this.S, this.L), l = o(a, 3);
183
+ this.R = l[0], this.G = l[1], this.B = l[2], this.updatePointerSL(this.H, this.S, this.L), this.updateInputHSL(this.H, this.S, this.L), this.updateInputRGB(this.R, this.G, this.B), this.updateInputRGBHEX(this.R, this.G, this.B);
184
+ break;
185
+ case "L":
186
+ this.L = t;
187
+ var c = (0, n.hslToRgb)(this.H, this.S, this.L), u = o(c, 3);
188
+ this.R = u[0], this.G = u[1], this.B = u[2], this.updatePointerSL(this.H, this.S, this.L), this.updateInputHSL(this.H, this.S, this.L), this.updateInputRGB(this.R, this.G, this.B), this.updateInputRGBHEX(this.R, this.G, this.B);
189
+ break;
190
+ case "R":
191
+ this.R = t;
192
+ var h = (0, n.rgbToHsl)(this.R, this.G, this.B), p = o(h, 3);
193
+ this.H = p[0], this.S = p[1], this.L = p[2], this.slBarHelper.setHue(this.H), this.updatePointerH(this.H), this.updatePointerSL(this.H, this.S, this.L), this.updateInputHSL(this.H, this.S, this.L), this.updateInputRGBHEX(this.R, this.G, this.B);
194
+ break;
195
+ case "G":
196
+ this.G = t;
197
+ var d = (0, n.rgbToHsl)(this.R, this.G, this.B), v = o(d, 3);
198
+ this.H = v[0], this.S = v[1], this.L = v[2], this.slBarHelper.setHue(this.H), this.updatePointerH(this.H), this.updatePointerSL(this.H, this.S, this.L), this.updateInputHSL(this.H, this.S, this.L), this.updateInputRGBHEX(this.R, this.G, this.B);
199
+ break;
200
+ case "B":
201
+ this.B = t;
202
+ var m = (0, n.rgbToHsl)(this.R, this.G, this.B), A = o(m, 3);
203
+ this.H = A[0], this.S = A[1], this.L = A[2], this.slBarHelper.setHue(this.H), this.updatePointerH(this.H), this.updatePointerSL(this.H, this.S, this.L), this.updateInputHSL(this.H, this.S, this.L), this.updateInputRGBHEX(this.R, this.G, this.B);
204
+ break;
205
+ case "RGB":
206
+ var y = o(t, 3);
207
+ this.R = y[0], this.G = y[1], this.B = y[2];
208
+ var k = (0, n.rgbToHsl)(this.R, this.G, this.B), F = o(k, 3);
209
+ this.H = F[0], this.S = F[1], this.L = F[2], this.updateInputHSL(this.H, this.S, this.L), this.updateInputRGB(this.R, this.G, this.B), this.updateInputRGBHEX(this.R, this.G, this.B);
210
+ break;
211
+ case g:
212
+ var E = o(t, 4);
213
+ this.R = E[0], this.G = E[1], this.B = E[2], this.A = E[3];
214
+ var H = (0, n.rgbToHsl)(this.R, this.G, this.B), B = o(H, 3);
215
+ this.H = B[0], this.S = B[1], this.L = B[2], this.slBarHelper.setHue(this.H), this.updatePointerH(this.H), this.updatePointerSL(this.H, this.S, this.L), this.updateInputHSL(this.H, this.S, this.L), this.updateInputRGB(this.R, this.G, this.B), this.updateInputRGBHEX(this.R, this.G, this.B), this.updatePointerA(this.A);
216
+ break;
217
+ case b:
218
+ var R = o(t, 4);
219
+ this.H = R[0], this.S = R[1], this.L = R[2], this.A = R[3];
220
+ var C = (0, n.hslToRgb)(this.H, this.S, this.L), S = o(C, 3);
221
+ this.R = S[0], this.G = S[1], this.B = S[2], this.slBarHelper.setHue(this.H), this.updatePointerH(this.H), this.updatePointerSL(this.H, this.S, this.L), this.updateInputHSL(this.H, this.S, this.L), this.updateInputRGB(this.R, this.G, this.B), this.updateInputRGBHEX(this.R, this.G, this.B), this.updatePointerA(this.A);
222
+ break;
223
+ case "RGBHEX":
224
+ var L = (0, n.cssColorToRgb)(t) || [this.R, this.G, this.B], w = o(L, 3);
225
+ this.R = w[0], this.G = w[1], this.B = w[2];
226
+ var T = (0, n.rgbToHsl)(this.R, this.G, this.B), x = o(T, 3);
227
+ this.H = x[0], this.S = x[1], this.L = x[2], this.slBarHelper.setHue(this.H), this.updatePointerH(this.H), this.updatePointerSL(this.H, this.S, this.L), this.updateInputHSL(this.H, this.S, this.L), this.updateInputRGB(this.R, this.G, this.B);
228
+ break;
229
+ case f:
230
+ var G = (0, n.parseColor)(t, "rgba") || [0, 0, 0, 1], I = o(G, 4);
231
+ this.R = I[0], this.G = I[1], this.B = I[2], this.A = I[3];
232
+ var P = (0, n.rgbToHsl)(this.R, this.G, this.B), D = o(P, 3);
233
+ this.H = D[0], this.S = D[1], this.L = D[2], this.slBarHelper.setHue(this.H), this.updatePointerH(this.H), this.updatePointerSL(this.H, this.S, this.L), this.updateInputHSL(this.H, this.S, this.L), this.updateInputRGB(this.R, this.G, this.B), this.updateInputRGBHEX(this.R, this.G, this.B), this.updatePointerA(this.A);
234
+ break;
235
+ case "ALPHA": this.A = t;
236
+ } 1 === this.A ? this.preview.style.backgroundColor = "rgb(" + this.R + "," + this.G + "," + this.B + ")" : this.preview.style.backgroundColor = "rgba(" + this.R + "," + this.G + "," + this.B + "," + this.A + ")", r && r.silent || this.onchange && this.onchange(this.preview.style.backgroundColor); } }, { key: "onPaletteColorAdd", value: function (e) { this.oncoloradd && this.oncoloradd(e); } }, { key: "onPaletteColorRemove", value: function (e) { this.oncolorremove && this.oncolorremove(e); } }, { key: "updateInputHSL", value: function (e, t, r) { this.options.showHSL && (this.inputH.value = e, this.inputS.value = t, this.inputL.value = r); } }, { key: "updateInputRGB", value: function (e, t, r) { this.options.showRGB && (this.inputR.value = e, this.inputG.value = t, this.inputB.value = r); } }, { key: "updateInputRGBHEX", value: function (e, t, r) { this.options.showHEX && (this.inputRGBHEX.value = (0, n.rgbToHex)(e, t, r)); } }, { key: "updatePointerH", value: function (e) { var t = this.options.hueBarSize[0] * e / 360; this.huePointer.style.left = t - 7 + "px"; } }, { key: "updatePointerSL", value: function (e, t, r) { var i = (0, n.hslToRgb)(e, t, r), s = o(i, 3), a = s[0], l = s[1], c = s[2], u = this.slBarHelper.findColor(a, l, c), h = o(u, 2), p = h[0], d = h[1]; p >= 0 && (this.slPointer.style.left = p - 7 + "px", this.slPointer.style.top = d - 7 + "px"); } }, { key: "updatePointerA", value: function (e) { if (this.options.showAlpha) {
237
+ var t = this.options.alphaBarSize[0] * e;
238
+ this.alphaPointer.style.left = t - 7 + "px";
239
+ } } }]), e; }(), F = function () { function e(t) { c(this, e), this.name = t, this.listeners = []; } return i(e, [{ key: "on", value: function (e) { e && this.listeners.push(e); } }, { key: "off", value: function (e) { this.listeners = e ? this.listeners.filter(function (t) { return t !== e; }) : []; } }, { key: "emit", value: function (e, t) { for (var r = this.listeners.slice(0), i = 0; i < r.length; i++)
240
+ r[i].apply(t, e); } }]), e; }();
241
+ function E(e, t) { var r = new k(e, t), i = { change: new F("change"), coloradd: new F("coloradd"), colorremove: new F("colorremove") }, s = !0, a = {}, l = { get element() { return r.element; }, get rgb() { return [r.R, r.G, r.B]; }, set rgb(e) { var t = o(e, 3), i = t[0], s = t[1], a = t[2], l = [(0, n.limit)(i, 0, 255), (0, n.limit)(s, 0, 255), (0, n.limit)(a, 0, 255)]; i = l[0], s = l[1], a = l[2], r.onValueChanged(g, [i, s, a, 1]); }, get hsl() { return [r.H, r.S, r.L]; }, set hsl(e) { var t = o(e, 3), i = t[0], s = t[1], a = t[2], l = [(0, n.limit)(i, 0, 360), (0, n.limit)(s, 0, 100), (0, n.limit)(a, 0, 100)]; i = l[0], s = l[1], a = l[2], r.onValueChanged(b, [i, s, a, 1]); }, get rgbhex() { return this.all.hex; }, get rgba() { return [r.R, r.G, r.B, r.A]; }, set rgba(e) { var t = o(e, 4), i = t[0], s = t[1], a = t[2], l = t[3], c = [(0, n.limit)(i, 0, 255), (0, n.limit)(s, 0, 255), (0, n.limit)(a, 0, 255), (0, n.limit)(l, 0, 1)]; i = c[0], s = c[1], a = c[2], l = c[3], r.onValueChanged(g, [i, s, a, l]); }, get hsla() { return [r.H, r.S, r.L, r.A]; }, set hsla(e) { var t = o(e, 4), i = t[0], s = t[1], a = t[2], l = t[3], c = [(0, n.limit)(i, 0, 360), (0, n.limit)(s, 0, 100), (0, n.limit)(a, 0, 100), (0, n.limit)(l, 0, 1)]; i = c[0], s = c[1], a = c[2], l = c[3], r.onValueChanged(b, [i, s, a, l]); }, get color() { return this.all.toString(); }, set color(e) { r.onValueChanged(f, e); }, setColor: function (e) { var t = arguments.length > 1 && void 0 !== arguments[1] && arguments[1]; r.onValueChanged(f, e, { silent: t }); }, get all() { if (s) {
242
+ var e = [r.R, r.G, r.B, r.A], t = r.A < 1 ? "rgba(" + r.R + "," + r.G + "," + r.B + "," + r.A + ")" : n.rgbToHex.apply(void 0, e);
243
+ (a = (0, n.parseColor)(e, a)).toString = function () { return t; }, s = !1;
244
+ } return Object.assign({}, a); }, get onchange() { return i.change && i.change.listeners[0]; }, set onchange(e) { this.off("change").on("change", e); }, get oncoloradd() { return i.coloradd && i.coloradd.listeners[0]; }, set oncoloradd(e) { this.off("coloradd").on("coloradd", e); }, get oncolorremove() { return i.colorremove && i.colorremove.listeners[0]; }, set oncolorremove(e) { this.off("colorremove").on("colorremove", e); }, get palette() { return Object.keys(r.palette).filter(function (e) { return r.palette[e]; }); }, set palette(e) { r.updatePalette(e); }, show: function () { r.element.classList.remove("hidden"); }, hide: function () { r.element.classList.add("hidden"); }, toggle: function () { r.element.classList.toggle("hidden"); }, on: function (e, t) { return e && i[e] && i[e].on(t), this; }, off: function (e, t) { return e && i[e] && i[e].off(t), this; }, destroy: function () { i.change.off(), i.coloradd.off(), i.colorremove.off(), r.element.remove(), i = null, r = null; } }; return r.onchange = function () { for (var e = arguments.length, t = Array(e), r = 0; r < e; r++)
245
+ t[r] = arguments[r]; s = !0, i.change.emit([l].concat(t), l); }, r.oncoloradd = function () { for (var e = arguments.length, t = Array(e), r = 0; r < e; r++)
246
+ t[r] = arguments[r]; i.coloradd.emit([l].concat(t), l); }, r.oncolorremove = function () { for (var e = arguments.length, t = Array(e), r = 0; r < e; r++)
247
+ t[r] = arguments[r]; i.colorremove.emit([l].concat(t), l); }, r.element.ctrl = l, l; }
248
+ if ("undefined" != typeof window && !document.querySelector('head>style[data-source="a-color-picker"]')) {
249
+ var H = r(5).toString(), B = document.createElement("style");
250
+ B.setAttribute("type", "text/css"), B.setAttribute("data-source", "a-color-picker"), B.innerHTML = H, document.querySelector("head").appendChild(B);
251
+ }
252
+ t.createPicker = E, t.from = function (e, t) { var r = function (e) { return e ? Array.isArray(e) ? e : e instanceof HTMLElement ? [e] : e instanceof NodeList ? [].concat(u(e)) : "string" == typeof e ? [].concat(u(document.querySelectorAll(e))) : e.jquery ? e.get() : [] : []; }(e).map(function (e, r) { var i = E(e, t); return i.index = r, i; }); return r.on = function (e, t) { return r.forEach(function (r) { return r.on(e, t); }), this; }, r.off = function (e) { return r.forEach(function (t) { return t.off(e); }), this; }, r; }, t.parseColorToRgb = n.parseColorToRgb, t.parseColorToRgba = n.parseColorToRgba, t.parseColorToHsl = n.parseColorToHsl, t.parseColorToHsla = n.parseColorToHsla, t.parseColor = n.parseColor, t.rgbToHex = n.rgbToHex, t.hslToRgb = n.hslToRgb, t.rgbToHsl = n.rgbToHsl, t.rgbToHsv = n.rgbToHsv, t.rgbToInt = n.rgbToInt, t.intToRgb = n.intToRgb, t.getLuminance = n.getLuminance, t.COLOR_NAMES = n.COLOR_NAMES, t.PALETTE_MATERIAL_500 = n.PALETTE_MATERIAL_500, t.PALETTE_MATERIAL_CHROME = n.PALETTE_MATERIAL_CHROME, t.VERSION = "1.2.1";
253
+ }, function (e, t, r) {
254
+ "use strict";
255
+ Object.defineProperty(t, "__esModule", { value: !0 }), t.nvl = t.ensureArray = t.limit = t.getLuminance = t.parseColor = t.parseColorToHsla = t.parseColorToHsl = t.cssHslaToHsla = t.cssHslToHsl = t.parseColorToRgba = t.parseColorToRgb = t.cssRgbaToRgba = t.cssRgbToRgb = t.cssColorToRgba = t.cssColorToRgb = t.intToRgb = t.rgbToInt = t.rgbToHsv = t.rgbToHsl = t.hslToRgb = t.rgbToHex = t.PALETTE_MATERIAL_CHROME = t.PALETTE_MATERIAL_500 = t.COLOR_NAMES = void 0;
256
+ var i = function (e, t) { if (Array.isArray(e))
257
+ return e; if (Symbol.iterator in Object(e))
258
+ return function (e, t) { var r = [], i = !0, o = !1, n = void 0; try {
259
+ for (var s, a = e[Symbol.iterator](); !(i = (s = a.next()).done) && (r.push(s.value), !t || r.length !== t); i = !0)
260
+ ;
261
+ }
262
+ catch (e) {
263
+ o = !0, n = e;
264
+ }
265
+ finally {
266
+ try {
267
+ !i && a.return && a.return();
268
+ }
269
+ finally {
270
+ if (o)
271
+ throw n;
272
+ }
273
+ } return r; }(e, t); throw new TypeError("Invalid attempt to destructure non-iterable instance"); }, o = function (e) { return e && e.__esModule ? e : { default: e }; }(r(0));
274
+ function n(e) { if (Array.isArray(e)) {
275
+ for (var t = 0, r = Array(e.length); t < e.length; t++)
276
+ r[t] = e[t];
277
+ return r;
278
+ } return Array.from(e); }
279
+ var s = { aliceblue: "#F0F8FF", antiquewhite: "#FAEBD7", aqua: "#00FFFF", aquamarine: "#7FFFD4", azure: "#F0FFFF", beige: "#F5F5DC", bisque: "#FFE4C4", black: "#000000", blanchedalmond: "#FFEBCD", blue: "#0000FF", blueviolet: "#8A2BE2", brown: "#A52A2A", burlywood: "#DEB887", cadetblue: "#5F9EA0", chartreuse: "#7FFF00", chocolate: "#D2691E", coral: "#FF7F50", cornflowerblue: "#6495ED", cornsilk: "#FFF8DC", crimson: "#DC143C", cyan: "#00FFFF", darkblue: "#00008B", darkcyan: "#008B8B", darkgoldenrod: "#B8860B", darkgray: "#A9A9A9", darkgrey: "#A9A9A9", darkgreen: "#006400", darkkhaki: "#BDB76B", darkmagenta: "#8B008B", darkolivegreen: "#556B2F", darkorange: "#FF8C00", darkorchid: "#9932CC", darkred: "#8B0000", darksalmon: "#E9967A", darkseagreen: "#8FBC8F", darkslateblue: "#483D8B", darkslategray: "#2F4F4F", darkslategrey: "#2F4F4F", darkturquoise: "#00CED1", darkviolet: "#9400D3", deeppink: "#FF1493", deepskyblue: "#00BFFF", dimgray: "#696969", dimgrey: "#696969", dodgerblue: "#1E90FF", firebrick: "#B22222", floralwhite: "#FFFAF0", forestgreen: "#228B22", fuchsia: "#FF00FF", gainsboro: "#DCDCDC", ghostwhite: "#F8F8FF", gold: "#FFD700", goldenrod: "#DAA520", gray: "#808080", grey: "#808080", green: "#008000", greenyellow: "#ADFF2F", honeydew: "#F0FFF0", hotpink: "#FF69B4", "indianred ": "#CD5C5C", "indigo ": "#4B0082", ivory: "#FFFFF0", khaki: "#F0E68C", lavender: "#E6E6FA", lavenderblush: "#FFF0F5", lawngreen: "#7CFC00", lemonchiffon: "#FFFACD", lightblue: "#ADD8E6", lightcoral: "#F08080", lightcyan: "#E0FFFF", lightgoldenrodyellow: "#FAFAD2", lightgray: "#D3D3D3", lightgrey: "#D3D3D3", lightgreen: "#90EE90", lightpink: "#FFB6C1", lightsalmon: "#FFA07A", lightseagreen: "#20B2AA", lightskyblue: "#87CEFA", lightslategray: "#778899", lightslategrey: "#778899", lightsteelblue: "#B0C4DE", lightyellow: "#FFFFE0", lime: "#00FF00", limegreen: "#32CD32", linen: "#FAF0E6", magenta: "#FF00FF", maroon: "#800000", mediumaquamarine: "#66CDAA", mediumblue: "#0000CD", mediumorchid: "#BA55D3", mediumpurple: "#9370DB", mediumseagreen: "#3CB371", mediumslateblue: "#7B68EE", mediumspringgreen: "#00FA9A", mediumturquoise: "#48D1CC", mediumvioletred: "#C71585", midnightblue: "#191970", mintcream: "#F5FFFA", mistyrose: "#FFE4E1", moccasin: "#FFE4B5", navajowhite: "#FFDEAD", navy: "#000080", oldlace: "#FDF5E6", olive: "#808000", olivedrab: "#6B8E23", orange: "#FFA500", orangered: "#FF4500", orchid: "#DA70D6", palegoldenrod: "#EEE8AA", palegreen: "#98FB98", paleturquoise: "#AFEEEE", palevioletred: "#DB7093", papayawhip: "#FFEFD5", peachpuff: "#FFDAB9", peru: "#CD853F", pink: "#FFC0CB", plum: "#DDA0DD", powderblue: "#B0E0E6", purple: "#800080", rebeccapurple: "#663399", red: "#FF0000", rosybrown: "#BC8F8F", royalblue: "#4169E1", saddlebrown: "#8B4513", salmon: "#FA8072", sandybrown: "#F4A460", seagreen: "#2E8B57", seashell: "#FFF5EE", sienna: "#A0522D", silver: "#C0C0C0", skyblue: "#87CEEB", slateblue: "#6A5ACD", slategray: "#708090", slategrey: "#708090", snow: "#FFFAFA", springgreen: "#00FF7F", steelblue: "#4682B4", tan: "#D2B48C", teal: "#008080", thistle: "#D8BFD8", tomato: "#FF6347", turquoise: "#40E0D0", violet: "#EE82EE", wheat: "#F5DEB3", white: "#FFFFFF", whitesmoke: "#F5F5F5", yellow: "#FFFF00", yellowgreen: "#9ACD32" };
280
+ function a(e, t, r) { return e = +e, isNaN(e) ? t : e < t ? t : e > r ? r : e; }
281
+ function l(e, t) { return null == e ? t : e; }
282
+ function c(e, t, r) { var i = [a(e, 0, 255), a(t, 0, 255), a(r, 0, 255)]; return "#" + ("000000" + ((e = i[0]) << 16 | (t = i[1]) << 8 | (r = i[2])).toString(16)).slice(-6); }
283
+ function u(e, t, r) { var i = void 0, o = void 0, n = void 0, s = [a(e, 0, 360) / 360, a(t, 0, 100) / 100, a(r, 0, 100) / 100]; if (e = s[0], r = s[2], 0 == (t = s[1]))
284
+ i = o = n = r;
285
+ else {
286
+ var l = function (e, t, r) { return r < 0 && (r += 1), r > 1 && (r -= 1), r < 1 / 6 ? e + 6 * (t - e) * r : r < .5 ? t : r < 2 / 3 ? e + (t - e) * (2 / 3 - r) * 6 : e; }, c = r < .5 ? r * (1 + t) : r + t - r * t, u = 2 * r - c;
287
+ i = l(u, c, e + 1 / 3), o = l(u, c, e), n = l(u, c, e - 1 / 3);
288
+ } return [255 * i, 255 * o, 255 * n].map(Math.round); }
289
+ function h(e, t, r) { var i = [a(e, 0, 255) / 255, a(t, 0, 255) / 255, a(r, 0, 255) / 255]; e = i[0], t = i[1], r = i[2]; var o = Math.max(e, t, r), n = Math.min(e, t, r), s = void 0, l = void 0, c = (o + n) / 2; if (o == n)
290
+ s = l = 0;
291
+ else {
292
+ var u = o - n;
293
+ switch (l = c > .5 ? u / (2 - o - n) : u / (o + n), o) {
294
+ case e:
295
+ s = (t - r) / u + (t < r ? 6 : 0);
296
+ break;
297
+ case t:
298
+ s = (r - e) / u + 2;
299
+ break;
300
+ case r: s = (e - t) / u + 4;
301
+ }
302
+ s /= 6;
303
+ } return [360 * s, 100 * l, 100 * c].map(Math.round); }
304
+ function p(e, t, r) { return e << 16 | t << 8 | r; }
305
+ function d(e) { if (e) {
306
+ var t = s[e.toString().toLowerCase()], r = /^\s*#?((([0-9A-F])([0-9A-F])([0-9A-F]))|(([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})))\s*$/i.exec(t || e) || [], o = i(r, 10), n = o[3], a = o[4], l = o[5], c = o[7], u = o[8], h = o[9];
307
+ if (void 0 !== n)
308
+ return [parseInt(n + n, 16), parseInt(a + a, 16), parseInt(l + l, 16)];
309
+ if (void 0 !== c)
310
+ return [parseInt(c, 16), parseInt(u, 16), parseInt(h, 16)];
311
+ } }
312
+ function f(e) { if (e) {
313
+ var t = s[e.toString().toLowerCase()], r = /^\s*#?((([0-9A-F])([0-9A-F])([0-9A-F])([0-9A-F])?)|(([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})?))\s*$/i.exec(t || e) || [], o = i(r, 12), n = o[3], a = o[4], l = o[5], c = o[6], u = o[8], h = o[9], p = o[10], d = o[11];
314
+ if (void 0 !== n)
315
+ return [parseInt(n + n, 16), parseInt(a + a, 16), parseInt(l + l, 16), c ? +(parseInt(c + c, 16) / 255).toFixed(2) : 1];
316
+ if (void 0 !== u)
317
+ return [parseInt(u, 16), parseInt(h, 16), parseInt(p, 16), d ? +(parseInt(d, 16) / 255).toFixed(2) : 1];
318
+ } }
319
+ function g(e) { if (e) {
320
+ var t = /^rgb\((\d+)[\s,](\d+)[\s,](\d+)\)/i.exec(e) || [], r = i(t, 4), o = r[0], n = r[1], s = r[2], l = r[3];
321
+ return o ? [a(n, 0, 255), a(s, 0, 255), a(l, 0, 255)] : void 0;
322
+ } }
323
+ function b(e) { if (e) {
324
+ var t = /^rgba?\((\d+)\s*[\s,]\s*(\d+)\s*[\s,]\s*(\d+)(\s*[\s,]\s*(\d*(.\d+)?))?\)/i.exec(e) || [], r = i(t, 6), o = r[0], n = r[1], s = r[2], c = r[3], u = r[5];
325
+ return o ? [a(n, 0, 255), a(s, 0, 255), a(c, 0, 255), a(l(u, 1), 0, 1)] : void 0;
326
+ } }
327
+ function v(e) { if (Array.isArray(e))
328
+ return [a(e[0], 0, 255), a(e[1], 0, 255), a(e[2], 0, 255), a(l(e[3], 1), 0, 1)]; var t = f(e) || b(e); return t && 3 === t.length && t.push(1), t; }
329
+ function m(e) { if (e) {
330
+ var t = /^hsl\((\d+)[\s,](\d+)[\s,](\d+)\)/i.exec(e) || [], r = i(t, 4), o = r[0], n = r[1], s = r[2], l = r[3];
331
+ return o ? [a(n, 0, 360), a(s, 0, 100), a(l, 0, 100)] : void 0;
332
+ } }
333
+ function A(e) { if (e) {
334
+ var t = /^hsla?\((\d+)\s*[\s,]\s*(\d+)\s*[\s,]\s*(\d+)(\s*[\s,]\s*(\d*(.\d+)?))?\)/i.exec(e) || [], r = i(t, 6), o = r[0], n = r[1], s = r[2], c = r[3], u = r[5];
335
+ return o ? [a(n, 0, 255), a(s, 0, 255), a(c, 0, 255), a(l(u, 1), 0, 1)] : void 0;
336
+ } }
337
+ function y(e) { if (Array.isArray(e))
338
+ return [a(e[0], 0, 360), a(e[1], 0, 100), a(e[2], 0, 100), a(l(e[3], 1), 0, 1)]; var t = A(e); return t && 3 === t.length && t.push(1), t; }
339
+ function k(e, t) { switch (t) {
340
+ case "rgb":
341
+ default: return e.slice(0, 3);
342
+ case "rgbcss": return "rgb(" + e[0] + ", " + e[1] + ", " + e[2] + ")";
343
+ case "rgbcss4": return "rgb(" + e[0] + ", " + e[1] + ", " + e[2] + ", " + e[3] + ")";
344
+ case "rgba": return e;
345
+ case "rgbacss": return "rgba(" + e[0] + ", " + e[1] + ", " + e[2] + ", " + e[3] + ")";
346
+ case "hsl": return h.apply(void 0, n(e));
347
+ case "hslcss": return "hsl(" + (e = h.apply(void 0, n(e)))[0] + ", " + e[1] + ", " + e[2] + ")";
348
+ case "hslcss4":
349
+ var r = h.apply(void 0, n(e));
350
+ return "hsl(" + r[0] + ", " + r[1] + ", " + r[2] + ", " + e[3] + ")";
351
+ case "hsla": return [].concat(n(h.apply(void 0, n(e))), [e[3]]);
352
+ case "hslacss":
353
+ var i = h.apply(void 0, n(e));
354
+ return "hsla(" + i[0] + ", " + i[1] + ", " + i[2] + ", " + e[3] + ")";
355
+ case "hex": return c.apply(void 0, n(e));
356
+ case "hexcss4": return c.apply(void 0, n(e)) + ("00" + parseInt(255 * e[3]).toString(16)).slice(-2);
357
+ case "int": return p.apply(void 0, n(e));
358
+ } }
359
+ t.COLOR_NAMES = s, t.PALETTE_MATERIAL_500 = ["#F44336", "#E91E63", "#E91E63", "#9C27B0", "#9C27B0", "#673AB7", "#673AB7", "#3F51B5", "#3F51B5", "#2196F3", "#2196F3", "#03A9F4", "#03A9F4", "#00BCD4", "#00BCD4", "#009688", "#009688", "#4CAF50", "#4CAF50", "#8BC34A", "#8BC34A", "#CDDC39", "#CDDC39", "#FFEB3B", "#FFEB3B", "#FFC107", "#FFC107", "#FF9800", "#FF9800", "#FF5722", "#FF5722", "#795548", "#795548", "#9E9E9E", "#9E9E9E", "#607D8B", "#607D8B"], t.PALETTE_MATERIAL_CHROME = ["#f44336", "#e91e63", "#9c27b0", "#673ab7", "#3f51b5", "#2196f3", "#03a9f4", "#00bcd4", "#009688", "#4caf50", "#8bc34a", "#cddc39", "#ffeb3b", "#ffc107", "#ff9800", "#ff5722", "#795548", "#9e9e9e", "#607d8b"], t.rgbToHex = c, t.hslToRgb = u, t.rgbToHsl = h, t.rgbToHsv = function (e, t, r) { var i = [a(e, 0, 255) / 255, a(t, 0, 255) / 255, a(r, 0, 255) / 255]; e = i[0], t = i[1], r = i[2]; var o, n = Math.max(e, t, r), s = Math.min(e, t, r), l = void 0, c = n, u = n - s; if (o = 0 === n ? 0 : u / n, n == s)
360
+ l = 0;
361
+ else {
362
+ switch (n) {
363
+ case e:
364
+ l = (t - r) / u + (t < r ? 6 : 0);
365
+ break;
366
+ case t:
367
+ l = (r - e) / u + 2;
368
+ break;
369
+ case r: l = (e - t) / u + 4;
370
+ }
371
+ l /= 6;
372
+ } return [l, o, c]; }, t.rgbToInt = p, t.intToRgb = function (e) { return [e >> 16 & 255, e >> 8 & 255, 255 & e]; }, t.cssColorToRgb = d, t.cssColorToRgba = f, t.cssRgbToRgb = g, t.cssRgbaToRgba = b, t.parseColorToRgb = function (e) { return Array.isArray(e) ? e = [a(e[0], 0, 255), a(e[1], 0, 255), a(e[2], 0, 255)] : d(e) || g(e); }, t.parseColorToRgba = v, t.cssHslToHsl = m, t.cssHslaToHsla = A, t.parseColorToHsl = function (e) { return Array.isArray(e) ? e = [a(e[0], 0, 360), a(e[1], 0, 100), a(e[2], 0, 100)] : m(e); }, t.parseColorToHsla = y, t.parseColor = function (e, t) { if (t = t || "rgb", null != e) {
373
+ var r = void 0;
374
+ if ((r = v(e)) || (r = y(e)) && (r = [].concat(n(u.apply(void 0, n(r))), [r[3]])))
375
+ return (0, o.default)(t) ? ["rgb", "rgbcss", "rgbcss4", "rgba", "rgbacss", "hsl", "hslcss", "hslcss4", "hsla", "hslacss", "hex", "hexcss4", "int"].reduce(function (e, t) { return e[t] = k(r, t), e; }, t || {}) : k(r, t.toString().toLowerCase());
376
+ } }, t.getLuminance = function (e, t, r) { return .2126 * (e = (e /= 255) < .03928 ? e / 12.92 : Math.pow((e + .055) / 1.055, 2.4)) + .7152 * (t = (t /= 255) < .03928 ? t / 12.92 : Math.pow((t + .055) / 1.055, 2.4)) + .0722 * ((r /= 255) < .03928 ? r / 12.92 : Math.pow((r + .055) / 1.055, 2.4)); }, t.limit = a, t.ensureArray = function (e) { return e ? Array.from(e) : []; }, t.nvl = l;
377
+ }, function (e, t, r) {
378
+ "use strict";
379
+ /*!
380
+ * isobject <https://github.com/jonschlinkert/isobject>
381
+ *
382
+ * Copyright (c) 2014-2017, Jon Schlinkert.
383
+ * Released under the MIT License.
384
+ */ e.exports = function (e) { return null != e && "object" == typeof e && !1 === Array.isArray(e); };
385
+ }, function (e, t) { e.exports = '<div class="a-color-picker-row a-color-picker-stack a-color-picker-row-top"> <canvas class="a-color-picker-sl a-color-picker-transparent"></canvas> <div class=a-color-picker-dot></div> </div> <div class=a-color-picker-row> <div class="a-color-picker-stack a-color-picker-transparent a-color-picker-circle"> <div class=a-color-picker-preview> <input class=a-color-picker-clipbaord type=text> </div> </div> <div class=a-color-picker-column> <div class="a-color-picker-cell a-color-picker-stack"> <canvas class=a-color-picker-h></canvas> <div class=a-color-picker-dot></div> </div> <div class="a-color-picker-cell a-color-picker-alpha a-color-picker-stack" show-on-alpha> <canvas class="a-color-picker-a a-color-picker-transparent"></canvas> <div class=a-color-picker-dot></div> </div> </div> </div> <div class="a-color-picker-row a-color-picker-hsl" show-on-hsl> <label>H</label> <input nameref=H type=number maxlength=3 min=0 max=360 value=0> <label>S</label> <input nameref=S type=number maxlength=3 min=0 max=100 value=0> <label>L</label> <input nameref=L type=number maxlength=3 min=0 max=100 value=0> </div> <div class="a-color-picker-row a-color-picker-rgb" show-on-rgb> <label>R</label> <input nameref=R type=number maxlength=3 min=0 max=255 value=0> <label>G</label> <input nameref=G type=number maxlength=3 min=0 max=255 value=0> <label>B</label> <input nameref=B type=number maxlength=3 min=0 max=255 value=0> </div> <div class="a-color-picker-row a-color-picker-rgbhex a-color-picker-single-input" show-on-single-input> <label>HEX</label> <input nameref=RGBHEX type=text select-on-focus> </div> <div class="a-color-picker-row a-color-picker-palette"></div>'; }, function (e, t, r) { var i = r(6); e.exports = "string" == typeof i ? i : i.toString(); }, function (e, t, r) { (e.exports = r(7)(!1)).push([e.i, "/*!\n * a-color-picker\n * https://github.com/narsenico/a-color-picker\n *\n * Copyright (c) 2017-2018, Gianfranco Caldi.\n * Released under the MIT License.\n */.a-color-picker{background-color:#fff;padding:0;display:inline-flex;flex-direction:column;user-select:none;width:232px;font:400 10px Helvetica,Arial,sans-serif;border-radius:3px;box-shadow:0 0 0 1px rgba(0,0,0,.05),0 2px 4px rgba(0,0,0,.25)}.a-color-picker,.a-color-picker-row,.a-color-picker input{box-sizing:border-box}.a-color-picker-row{padding:15px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;user-select:none}.a-color-picker-row-top{padding:0}.a-color-picker-row:not(:first-child){border-top:1px solid #f5f5f5}.a-color-picker-column{display:flex;flex-direction:column}.a-color-picker-cell{flex:1 1 auto;margin-bottom:4px}.a-color-picker-cell:last-child{margin-bottom:0}.a-color-picker-stack{position:relative}.a-color-picker-dot{position:absolute;width:14px;height:14px;top:0;left:0;background:#fff;pointer-events:none;border-radius:50px;z-index:1000;box-shadow:0 1px 2px rgba(0,0,0,.75)}.a-color-picker-a,.a-color-picker-h,.a-color-picker-sl{cursor:cell}.a-color-picker-a+.a-color-picker-dot,.a-color-picker-h+.a-color-picker-dot{top:-2px}.a-color-picker-a,.a-color-picker-h{border-radius:2px}.a-color-picker-preview{box-sizing:border-box;width:30px;height:30px;user-select:none;border-radius:15px}.a-color-picker-circle{border-radius:50px;border:1px solid #eee}.a-color-picker-hsl,.a-color-picker-rgb,.a-color-picker-single-input{justify-content:space-evenly}.a-color-picker-hsl>label,.a-color-picker-rgb>label,.a-color-picker-single-input>label{padding:0 8px;flex:0 0 auto;color:#969696}.a-color-picker-hsl>input,.a-color-picker-rgb>input,.a-color-picker-single-input>input{text-align:center;padding:2px 0;width:0;flex:1 1 auto;border:1px solid #e0e0e0;line-height:20px}.a-color-picker-hsl>input::-webkit-inner-spin-button,.a-color-picker-rgb>input::-webkit-inner-spin-button,.a-color-picker-single-input>input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.a-color-picker-hsl>input:focus,.a-color-picker-rgb>input:focus,.a-color-picker-single-input>input:focus{border-color:#04a9f4;outline:none}.a-color-picker-transparent{background-image:linear-gradient(-45deg,#cdcdcd 25%,transparent 0),linear-gradient(45deg,#cdcdcd 25%,transparent 0),linear-gradient(-45deg,transparent 75%,#cdcdcd 0),linear-gradient(45deg,transparent 75%,#cdcdcd 0);background-size:11px 11px;background-position:0 0,0 -5.5px,-5.5px 5.5px,5.5px 0}.a-color-picker-sl{border-radius:3px 3px 0 0}.a-color-picker.hide-alpha [show-on-alpha],.a-color-picker.hide-hsl [show-on-hsl],.a-color-picker.hide-rgb [show-on-rgb],.a-color-picker.hide-single-input [show-on-single-input]{display:none}.a-color-picker-clipbaord{width:100%;height:100%;opacity:0;cursor:pointer}.a-color-picker-palette{flex-flow:wrap;flex-direction:row;justify-content:flex-start;padding:10px}.a-color-picker-palette-color{width:15px;height:15px;flex:0 1 15px;margin:3px;box-sizing:border-box;cursor:pointer;border-radius:3px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.1)}.a-color-picker-palette-add{text-align:center;line-height:13px;color:#607d8b}.a-color-picker.hidden{display:none}", ""]); }, function (e, t) { e.exports = function (e) { var t = []; return t.toString = function () { return this.map(function (t) { var r = function (e, t) { var r = e[1] || "", i = e[3]; if (!i)
386
+ return r; if (t && "function" == typeof btoa) {
387
+ var o = function (e) { return "/*# sourceMappingURL=data:application/json;charset=utf-8;base64," + btoa(unescape(encodeURIComponent(JSON.stringify(e)))) + " */"; }(i), n = i.sources.map(function (e) { return "/*# sourceURL=" + i.sourceRoot + e + " */"; });
388
+ return [r].concat(n).concat([o]).join("\n");
389
+ } return [r].join("\n"); }(t, e); return t[2] ? "@media " + t[2] + "{" + r + "}" : r; }).join(""); }, t.i = function (e, r) { "string" == typeof e && (e = [[null, e, ""]]); for (var i = {}, o = 0; o < this.length; o++) {
390
+ var n = this[o][0];
391
+ "number" == typeof n && (i[n] = !0);
392
+ } for (o = 0; o < e.length; o++) {
393
+ var s = e[o];
394
+ "number" == typeof s[0] && i[s[0]] || (r && !s[2] ? s[2] = r : r && (s[2] = "(" + s[2] + ") and (" + r + ")"), t.push(s));
395
+ } }, t; }; }]);
396
+ });
397
+
398
+
399
+ /***/ }),
400
+
401
+ /***/ 48163:
402
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
403
+
404
+ "use strict";
405
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
406
+ /* harmony export */ "W": function() { return /* binding */ UIRange; }
407
+ /* harmony export */ });
408
+ /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(97582);
409
+ /* harmony import */ var jodit_core_ui__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(75004);
410
+ /* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(50526);
411
+ /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(95582);
412
+ /* harmony import */ var autobind_decorator__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(23185);
413
+ /*!
414
+ * Jodit Editor PRO (https://xdsoft.net/jodit/)
415
+ * See LICENSE.md in the project root for license information.
416
+ * Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
417
+ */
418
+
419
+
420
+
421
+
422
+
423
+
424
+ var UIRange = /** @class */ (function (_super) {
425
+ (0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__extends */ .ZT)(UIRange, _super);
426
+ function UIRange(jodit, options) {
427
+ var _this = _super.call(this, jodit, (0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__assign */ .pi)((0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__assign */ .pi)({}, options), { type: 'hidden' })) || this;
428
+ _this.state = (0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__assign */ .pi)((0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__assign */ .pi)({}, jodit_core_ui__WEBPACK_IMPORTED_MODULE_0__/* .UIInput.defaultState */ .u3.defaultState), { min: 0, max: 100 });
429
+ _this.startValue = 0;
430
+ _this.startX = 0;
431
+ _this.width = 100;
432
+ Object.assign(_this.state, options);
433
+ _this.appendUIRange();
434
+ _this.onChangeSelfValue();
435
+ return _this;
436
+ }
437
+ /** @override */
438
+ UIRange.prototype.className = function () {
439
+ return 'UIRange';
440
+ };
441
+ UIRange.prototype.appendUIRange = function () {
442
+ var slider = this.j.create.div(this.getFullElName('slider'));
443
+ this.container.appendChild(slider);
444
+ var handle = this.j.create.div(this.getFullElName('handle'));
445
+ slider.appendChild(handle);
446
+ var log = this.j.create.div(this.getFullElName('log'));
447
+ var label = this.getElm('label');
448
+ void 0;
449
+ label.appendChild(log);
450
+ };
451
+ UIRange.prototype.onDragStart = function (e) {
452
+ this.startValue = parseFloat(this.value) || 0;
453
+ this.startX = e.clientX;
454
+ var slider = this.getElm('slider');
455
+ void 0;
456
+ this.width = slider.offsetWidth;
457
+ this.j.e.on(this.j.ow, 'mousemove', this.onDrag);
458
+ };
459
+ UIRange.prototype.onDrag = function (e) {
460
+ var _a;
461
+ var min = (_a = this.state, _a.min), max = _a.max;
462
+ var diff = ((e.clientX - this.startX) / this.width) *
463
+ (this.state.max - this.state.min);
464
+ var value = this.startValue + diff;
465
+ if (value < min) {
466
+ value = min;
467
+ }
468
+ if (value > max) {
469
+ value = max;
470
+ }
471
+ this.value = value.toString();
472
+ };
473
+ UIRange.prototype.onDragEnd = function () {
474
+ this.j.e.off(this.j.ow, 'mousemove', this.onDrag);
475
+ };
476
+ UIRange.prototype.onChangeSelfValue = function () {
477
+ var handle = this.getElm('handle'), value = parseFloat(this.value) || 0;
478
+ void 0;
479
+ (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.css)(handle, {
480
+ left: ((value - this.state.min) / (this.state.max - this.state.min)) *
481
+ 100 +
482
+ '%'
483
+ });
484
+ var log = this.getElm('log');
485
+ void 0;
486
+ log.innerText = value.toString();
487
+ };
488
+ UIRange.prototype.destruct = function () {
489
+ this.onDragEnd();
490
+ return _super.prototype.destruct.call(this);
491
+ };
492
+ (0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__decorate */ .gn)([
493
+ (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.watch)(['handle:mousedown', 'handle:touchstart'])
494
+ ], UIRange.prototype, "onDragStart", null);
495
+ (0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__decorate */ .gn)([
496
+ autobind_decorator__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .ZP
497
+ ], UIRange.prototype, "onDrag", null);
498
+ (0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__decorate */ .gn)([
499
+ (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.watch)(['j.ow:mouseup', 'j.ow:touchend'])
500
+ ], UIRange.prototype, "onDragEnd", null);
501
+ (0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__decorate */ .gn)([
502
+ (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.watch)(':change')
503
+ ], UIRange.prototype, "onChangeSelfValue", null);
504
+ UIRange = (0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__decorate */ .gn)([
505
+ jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.component
506
+ ], UIRange);
507
+ return UIRange;
508
+ }(jodit_core_ui__WEBPACK_IMPORTED_MODULE_0__/* .UIInput */ .u3));
509
+
510
+
511
+ /***/ }),
512
+
513
+ /***/ 39445:
514
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
515
+
516
+ "use strict";
517
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
518
+ /* harmony export */ "T": function() { return /* binding */ ColorInput; }
519
+ /* harmony export */ });
520
+ /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(97582);
521
+ /* harmony import */ var jodit_core_ui__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(75004);
522
+ /* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(50526);
523
+ /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(95582);
524
+ /* harmony import */ var a_color_picker__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(28803);
525
+ /* harmony import */ var a_color_picker__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(a_color_picker__WEBPACK_IMPORTED_MODULE_3__);
526
+ /* harmony import */ var jodit_modules__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(8079);
527
+ /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(11612);
528
+ /*!
529
+ * Jodit Editor PRO (https://xdsoft.net/jodit/)
530
+ * See LICENSE.md in the project root for license information.
531
+ * Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
532
+ */
533
+
534
+
535
+
536
+
537
+
538
+
539
+
540
+
541
+
542
+ var ColorInput = /** @class */ (function (_super) {
543
+ (0,tslib__WEBPACK_IMPORTED_MODULE_6__/* .__extends */ .ZT)(ColorInput, _super);
544
+ /** @override */
545
+ function ColorInput(jodit, options) {
546
+ var _this = _super.call(this, jodit, options) || this;
547
+ var popup = new jodit_core_ui__WEBPACK_IMPORTED_MODULE_0__/* .Popup */ .GI(jodit), parse = function (c) { return a_color_picker__WEBPACK_IMPORTED_MODULE_3__.parseColor(c, 'hex'); };
548
+ _this.popup = popup;
549
+ _this.trigger = (0,jodit_core_ui__WEBPACK_IMPORTED_MODULE_0__/* .Button */ .zx)(_this.j, 'ok');
550
+ var wrapper = _this.getElm('wrapper');
551
+ void 0;
552
+ wrapper.appendChild(_this.trigger.container);
553
+ _this.trigger.container.classList.add(_this.getFullElName('trigger'));
554
+ _this.trigger.onAction(function () {
555
+ var _a, _b;
556
+ (_b = (_a = _this.state).onChange) === null || _b === void 0 ? void 0 : _b.call(_a, _this.value);
557
+ popup.close();
558
+ });
559
+ popup.setMod('padding', false).setMod('max-height', false);
560
+ var pickerElement = _this.j.create.div(_this.getFullElName('picker'));
561
+ var picker = a_color_picker__WEBPACK_IMPORTED_MODULE_3__.createPicker(pickerElement, {
562
+ paletteEditable: true,
563
+ showAlpha: true,
564
+ palette: 'PALETTE_MATERIAL_CHROME'
565
+ }).on('change', function (picker, color) {
566
+ if (!_this.isFocused) {
567
+ _this.value = a_color_picker__WEBPACK_IMPORTED_MODULE_3__.parseColor(color || '', 'hex');
568
+ }
569
+ });
570
+ _this.j.e.on(_this, 'change', function () {
571
+ if (parse(_this.value) !== picker.color) {
572
+ picker.color = _this.value;
573
+ }
574
+ });
575
+ popup.setContent(pickerElement);
576
+ _this.j.e.on(_this.nativeInput, 'click', function () {
577
+ popup.parentElement = _this;
578
+ if (_this.jodit instanceof jodit_modules__WEBPACK_IMPORTED_MODULE_4__.Dialog) {
579
+ popup.setZIndex(_this.jodit.getZIndex() + 1);
580
+ }
581
+ popup.open(function () { return (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.position)(_this.container); });
582
+ });
583
+ _this.onChangeValue();
584
+ _this.onChangeSelfValue();
585
+ return _this;
586
+ }
587
+ /** @override */
588
+ ColorInput.prototype.className = function () {
589
+ return 'ColorInput';
590
+ };
591
+ ColorInput.prototype.afterSetMode = function (name, value) {
592
+ if (name === 'slim' && value) {
593
+ this.nativeInput.setAttribute('readonly', 'true');
594
+ }
595
+ };
596
+ ColorInput.prototype.onChangeSelfValue = function () {
597
+ this.nativeInput.style.backgroundColor = this.value;
598
+ };
599
+ ColorInput.prototype.onEscKeyDown = function (e) {
600
+ var _a;
601
+ if (e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_5__.KEY_ESC) {
602
+ (_a = this.popup) === null || _a === void 0 ? void 0 : _a.close();
603
+ }
604
+ };
605
+ (0,tslib__WEBPACK_IMPORTED_MODULE_6__/* .__decorate */ .gn)([
606
+ (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.watch)(':change')
607
+ ], ColorInput.prototype, "onChangeSelfValue", null);
608
+ (0,tslib__WEBPACK_IMPORTED_MODULE_6__/* .__decorate */ .gn)([
609
+ (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.watch)('nativeInput:keydown')
610
+ ], ColorInput.prototype, "onEscKeyDown", null);
611
+ ColorInput = (0,tslib__WEBPACK_IMPORTED_MODULE_6__/* .__decorate */ .gn)([
612
+ jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.component
613
+ ], ColorInput);
614
+ return ColorInput;
615
+ }(jodit_core_ui__WEBPACK_IMPORTED_MODULE_0__/* .UIInput */ .u3));
616
+
617
+
618
+ /***/ }),
619
+
620
+ /***/ 51852:
621
+ /***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
622
+
623
+ "use strict";
624
+ /* harmony import */ var jodit_core_ui__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(75004);
625
+ /*!
626
+ * Jodit Editor PRO (https://xdsoft.net/jodit/)
627
+ * See LICENSE.md in the project root for license information.
628
+ * Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
629
+ */
630
+
631
+ jodit_core_ui__WEBPACK_IMPORTED_MODULE_0__/* .Icon.set */ .JO.set('map', __webpack_require__(76941))
632
+ .set('edit-hand', __webpack_require__(13050))
633
+ .set('edit-polygon', __webpack_require__(35122))
634
+ .set('edit-marker', __webpack_require__(9472))
635
+ .set('edit-text', __webpack_require__(78400))
636
+ .set('edit-polyline', __webpack_require__(56712))
637
+ .set('edit-circle', __webpack_require__(50403));
638
+
639
+
640
+ /***/ }),
641
+
642
+ /***/ 52524:
643
+ /***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
644
+
645
+ "use strict";
646
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(77628);
647
+ /* harmony import */ var _helpers_const__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(22709);
648
+ /*!
649
+ * Jodit Editor PRO (https://xdsoft.net/jodit/)
650
+ * See LICENSE.md in the project root for license information.
651
+ * Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
652
+ */
653
+
654
+
655
+ jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config.prototype.googleMaps */ .D.prototype.googleMaps = {
656
+ saveStateInStorage: true,
657
+ useStaticImage: false,
658
+ apiUrl: 'https://maps.googleapis.com/maps/api/js?key=${j.o.googleMaps.API_KEY}&libraries=geometry,places,drawing&language=${j.o.language}&callback=JoditGoogleReadyHandler',
659
+ API_KEY: 'AIzaSyDjnR03hxN8fo0QJ85Jkkvk2DALTh3eynY',
660
+ dialog: {
661
+ size: [700, 700]
662
+ },
663
+ inlineEditorOptions: {
664
+ buttons: ['bold', 'italic', 'link', 'brush', 'fontsize', 'image']
665
+ },
666
+ map: {
667
+ type: 'roadmap',
668
+ layer: 'default',
669
+ center: 'auto',
670
+ defaultCenter: [-34.397, 150.644],
671
+ defaultZoom: 10,
672
+ zoom: 10,
673
+ size: [500, 400],
674
+ defaultStates: {
675
+ polyline: {
676
+ strokeColor: '#5ba4f3',
677
+ strokeWeight: 3
678
+ },
679
+ polygon: {
680
+ strokeColor: '#417706',
681
+ fillColor: '#5b9302',
682
+ strokeWeight: 1,
683
+ fillOpacity: 0.5
684
+ },
685
+ marker: {},
686
+ text: {},
687
+ circle: {
688
+ strokeColor: '#da767c',
689
+ fillColor: '#f34ca8',
690
+ strokeWeight: 1,
691
+ fillOpacity: 0.5
692
+ }
693
+ }
694
+ }
695
+ };
696
+ jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config.prototype.controls.googleMaps */ .D.prototype.controls.googleMaps = {
697
+ tooltip: 'Google Maps',
698
+ icon: 'map',
699
+ command: _helpers_const__WEBPACK_IMPORTED_MODULE_1__/* .COMMAND_OPEN_DIALOG */ .o
700
+ };
701
+ var gmButton = function (name) { return ({
702
+ icon: "edit-".concat(name),
703
+ isActive: function (editor) {
704
+ return editor.buffer.get('createMode.gm') === name;
705
+ },
706
+ exec: function (editor) {
707
+ editor.e.fire('changeCreateMode.gm', name);
708
+ }
709
+ }); };
710
+ jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config.prototype.controls.gm */ .D.prototype.controls.gm = {
711
+ hand: gmButton('hand'),
712
+ marker: gmButton('marker'),
713
+ polyline: gmButton('polyline'),
714
+ polygon: gmButton('polygon'),
715
+ circle: gmButton('circle'),
716
+ text: gmButton('text')
717
+ };
718
+
719
+
720
+ /***/ }),
721
+
722
+ /***/ 177:
723
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
724
+
725
+ "use strict";
726
+ __webpack_require__.r(__webpack_exports__);
727
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
728
+ /* harmony export */ "googleMaps": function() { return /* binding */ googleMaps; }
729
+ /* harmony export */ });
730
+ /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(97582);
731
+ /* harmony import */ var jodit_core_plugin__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7324);
732
+ /* harmony import */ var _JoditPro__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(88292);
733
+ /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(52524);
734
+ /* harmony import */ var _assets__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(51852);
735
+ /* harmony import */ var jodit_modules_widget__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(68699);
736
+ /* harmony import */ var jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(29788);
737
+ /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(95582);
738
+ /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(11612);
739
+ /* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(50526);
740
+ /* harmony import */ var jodit_modules_dialog_dialog__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(1875);
741
+ /* harmony import */ var _ui__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(40540);
742
+ /* harmony import */ var _helpers_helpers__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(26239);
743
+ /* harmony import */ var _helpers_static_url__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(3510);
744
+ /* harmony import */ var _ui_combo_box_combo_box__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(97167);
745
+ /* harmony import */ var _helpers_generate_js_script__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(88408);
746
+ /* harmony import */ var _helpers_const__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(22709);
747
+ /*!
748
+ * Jodit Editor PRO (https://xdsoft.net/jodit/)
749
+ * See LICENSE.md in the project root for license information.
750
+ * Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
751
+ */
752
+
753
+
754
+
755
+
756
+
757
+
758
+
759
+
760
+
761
+
762
+
763
+
764
+
765
+
766
+
767
+
768
+
769
+
770
+ // @ts-ignore
771
+ window['JoditGoogleReadyHandler'] = _helpers_helpers__WEBPACK_IMPORTED_MODULE_14__/* .GoogleReadyHandler */ .VI;
772
+ var googleMaps = /** @class */ (function (_super) {
773
+ (0,tslib__WEBPACK_IMPORTED_MODULE_15__/* .__extends */ .ZT)(googleMaps, _super);
774
+ function googleMaps() {
775
+ var _this = _super !== null && _super.apply(this, arguments) || this;
776
+ _this.buttons = [
777
+ { group: 'media', name: 'googleMaps' }
778
+ ];
779
+ _this.dialog = null;
780
+ return _this;
781
+ }
782
+ googleMaps.prototype.className = function () {
783
+ return 'google-maps';
784
+ };
785
+ googleMaps.prototype.afterInit = function (jodit) {
786
+ var _this = this;
787
+ jodit.registerCommand(_helpers_const__WEBPACK_IMPORTED_MODULE_16__/* .COMMAND_OPEN_DIALOG */ .o, function () {
788
+ void _this.openMapEditor(null, {});
789
+ });
790
+ };
791
+ googleMaps.prototype.beforeDestruct = function (jodit) { };
792
+ googleMaps.prototype.onOpenOnDblClick = function (image) {
793
+ if (image.dataset.googleMaps) {
794
+ var json = void 0;
795
+ try {
796
+ json = JSON.parse(this.j.ow.atob(image.dataset.googleMaps));
797
+ }
798
+ catch (_a) { }
799
+ void this.openMapEditor(image, json);
800
+ return false;
801
+ }
802
+ };
803
+ googleMaps.prototype.openMapEditor = function (target, initialState) {
804
+ return (0,tslib__WEBPACK_IMPORTED_MODULE_15__/* .__awaiter */ .mG)(this, void 0, Promise, function () {
805
+ var jodit, dialog, state, apiUrl, openState, uiMap, search, onCLose;
806
+ var _this = this;
807
+ return (0,tslib__WEBPACK_IMPORTED_MODULE_15__/* .__generator */ .Jh)(this, function (_a) {
808
+ jodit = this.j;
809
+ dialog = this.getDialog();
810
+ state = this.j.o.googleMaps.saveStateInStorage
811
+ ? dialog.storage.get(_helpers_const__WEBPACK_IMPORTED_MODULE_16__/* .STORAGE_KEY */ .U)
812
+ : undefined;
813
+ apiUrl = this.jodit.o.googleMaps.apiUrl;
814
+ if (!(0,_helpers_helpers__WEBPACK_IMPORTED_MODULE_14__/* .isApiAvailable */ .Ez)()) {
815
+ void (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__.appendScriptAsync)(this.jodit, apiUrl.replace(/\${([^}]+)}/g, function (_, key) { var _a; return (_a = _this.get(key)) !== null && _a !== void 0 ? _a : ''; }));
816
+ }
817
+ openState = (0,tslib__WEBPACK_IMPORTED_MODULE_15__/* .__assign */ .pi)((0,tslib__WEBPACK_IMPORTED_MODULE_15__/* .__assign */ .pi)({ type: this.j.o.googleMaps.map.type, layer: this.j.o.googleMaps.map.layer, size: this.j.o.googleMaps.map.size }, state), initialState);
818
+ uiMap = new _ui__WEBPACK_IMPORTED_MODULE_10__/* .UIMap */ .IE(dialog, openState, this.j.options);
819
+ uiMap.container.classList.add(dialog.getFullElName('map'));
820
+ search = new _ui_combo_box_combo_box__WEBPACK_IMPORTED_MODULE_12__/* .UIComboBox */ .Q(jodit, {
821
+ icon: 'search',
822
+ placeholder: 'Search',
823
+ clearButton: true
824
+ }).setMod('in-header', true);
825
+ search.container.classList.add(dialog.getFullElName('search'));
826
+ this.j.async
827
+ .promise(function (resolve) {
828
+ if ((0,_helpers_helpers__WEBPACK_IMPORTED_MODULE_14__/* .isApiAvailable */ .Ez)()) {
829
+ resolve(0);
830
+ return;
831
+ }
832
+ // TODO - Need check googleReady
833
+ var intervalChecker = function () {
834
+ if ((0,_helpers_helpers__WEBPACK_IMPORTED_MODULE_14__/* .isApiAvailable */ .Ez)()) {
835
+ resolve(0);
836
+ }
837
+ else {
838
+ _this.j.async.setTimeout(intervalChecker, 100);
839
+ }
840
+ };
841
+ intervalChecker();
842
+ (0,_helpers_helpers__WEBPACK_IMPORTED_MODULE_14__/* .googleReady */ .iE)(resolve);
843
+ })
844
+ .then(function () {
845
+ uiMap.setStatus('ready');
846
+ search.setStatus('ready');
847
+ });
848
+ this.j.e.on(search, 'select', function (marker, bound) {
849
+ if (bound) {
850
+ uiMap.map.fitBounds(bound);
851
+ return;
852
+ }
853
+ if (marker) {
854
+ uiMap.state.center = [marker.lat(), marker.lng()];
855
+ }
856
+ });
857
+ if (!state) {
858
+ if (this.j.o.googleMaps.map.center === 'auto') {
859
+ navigator.geolocation.getCurrentPosition(function (position) {
860
+ uiMap.state.center = [
861
+ position.coords.latitude,
862
+ position.coords.longitude
863
+ ];
864
+ }, function () {
865
+ uiMap.state.center =
866
+ _this.j.o.googleMaps.map.defaultCenter;
867
+ });
868
+ }
869
+ else {
870
+ uiMap.state.center = this.j.o.googleMaps.map.center;
871
+ }
872
+ }
873
+ dialog
874
+ .setSize.apply(dialog, (0,tslib__WEBPACK_IMPORTED_MODULE_15__/* .__spreadArray */ .ev)([], (0,tslib__WEBPACK_IMPORTED_MODULE_15__/* .__read */ .CR)(jodit.o.googleMaps.dialog.size), false)).setHeader([
875
+ search,
876
+ '&nbsp;',
877
+ (0,jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_5__/* .Button */ .zx)(jodit, 'eye').onAction(function () {
878
+ var image = _this.jodit.createInside.element('img');
879
+ image.src = (0,_helpers_static_url__WEBPACK_IMPORTED_MODULE_11__/* .staticUrl */ .v)(uiMap);
880
+ image.dataset.googleMaps = btoa(uiMap.json());
881
+ var data = { value: image.outerHTML };
882
+ _this.onAfterGetValueFromEditor(data);
883
+ jodit.execCommand('preview', null, data.value);
884
+ })
885
+ ])
886
+ .setContent((0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_4__/* .TabsWidget */ .IL)(jodit, [
887
+ {
888
+ name: 'Map',
889
+ icon: 'map',
890
+ content: uiMap
891
+ },
892
+ {
893
+ name: 'Settings',
894
+ content: new _ui__WEBPACK_IMPORTED_MODULE_10__/* .UIMapsPropsForm */ .BK(jodit, uiMap.state)
895
+ },
896
+ {
897
+ name: 'Controls',
898
+ icon: 'menu',
899
+ content: new _ui__WEBPACK_IMPORTED_MODULE_10__/* .UIMapsControlsForm */ .KQ(jodit, uiMap.state)
900
+ }
901
+ ]))
902
+ .setFooter([
903
+ (0,jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_5__/* .Button */ .zx)(jodit, 'cancel', 'Cancel', 'default').onAction(function () {
904
+ return dialog.close();
905
+ }),
906
+ (0,jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_5__/* .Button */ .zx)(jodit, 'ok', target ? 'Save' : 'Insert', 'primary').onAction(function () {
907
+ uiMap.destruct();
908
+ search.destruct();
909
+ dialog.e.off('beforeClose', onCLose);
910
+ dialog.close();
911
+ _this.insertMap(target, uiMap);
912
+ })
913
+ ])
914
+ .open();
915
+ onCLose = function () {
916
+ if (uiMap.state.elements.length &&
917
+ JSON.stringify(uiMap.state.elements) !==
918
+ JSON.stringify(openState.elements)) {
919
+ if (!jodit_core_constants__WEBPACK_IMPORTED_MODULE_7__.IS_TEST && !confirm(_this.i18n('Are you sure?'))) {
920
+ return false;
921
+ }
922
+ }
923
+ uiMap.destruct();
924
+ search.destruct();
925
+ dialog.e.off('beforeClose', onCLose);
926
+ };
927
+ dialog.e.on('beforeClose', onCLose);
928
+ return [2 /*return*/];
929
+ });
930
+ });
931
+ };
932
+ googleMaps.prototype.getDialog = function () {
933
+ if (!this.dialog) {
934
+ var dialog = new jodit_modules_dialog_dialog__WEBPACK_IMPORTED_MODULE_9__/* .Dialog */ .V({
935
+ language: this.j.o.language
936
+ });
937
+ dialog.container.classList.add(this.getFullElName(''));
938
+ this.dialog = dialog;
939
+ }
940
+ return this.dialog;
941
+ };
942
+ googleMaps.prototype.insertMap = function (target, uiMap) {
943
+ var image = target !== null && target !== void 0 ? target : this.jodit.createInside.element('img');
944
+ image.src = (0,_helpers_static_url__WEBPACK_IMPORTED_MODULE_11__/* .staticUrl */ .v)(uiMap);
945
+ image.dataset.googleMaps = btoa(uiMap.json());
946
+ target || this.jodit.s.insertImage(image);
947
+ };
948
+ googleMaps.prototype.onBeforeSetNativeEditorValue = function (data) {
949
+ data.value = data.value.replace(/<script[^>]+jodit-google-maps-init[^>]+>.*?<\/script>/gs, '');
950
+ };
951
+ googleMaps.prototype.onAfterGetValueFromEditor = function (data, consumer) {
952
+ var _this = this;
953
+ if (this.j.o.googleMaps.useStaticImage ||
954
+ consumer === jodit_core_constants__WEBPACK_IMPORTED_MODULE_7__.SOURCE_CONSUMER) {
955
+ return;
956
+ }
957
+ data.value = data.value.replace(/(<img[^>]+)(["']?)data-google-maps\2\s*=(["'])([^"']+)\3([^>]*>)/gs, function (_, _1, q, q2, jsonB64, rest) {
958
+ var json = {};
959
+ try {
960
+ json = JSON.parse(_this.j.ow.atob(jsonB64));
961
+ }
962
+ catch (_a) { }
963
+ return "".concat(_1, " id=\"").concat(json.uid, "\" ").concat(q, "data-google-maps").concat(q, "=").concat(q2).concat(jsonB64).concat(q2).concat(rest).concat((0,_helpers_generate_js_script__WEBPACK_IMPORTED_MODULE_13__/* .generateJSScript */ .q)(_this.j, json));
964
+ });
965
+ };
966
+ googleMaps.requires = ['license', 'color-picker'];
967
+ (0,tslib__WEBPACK_IMPORTED_MODULE_15__/* .__decorate */ .gn)([
968
+ (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_8__.watch)('?:openOnDblClick')
969
+ ], googleMaps.prototype, "onOpenOnDblClick", null);
970
+ (0,tslib__WEBPACK_IMPORTED_MODULE_15__/* .__decorate */ .gn)([
971
+ (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_8__.watch)(':beforeSetNativeEditorValue')
972
+ ], googleMaps.prototype, "onBeforeSetNativeEditorValue", null);
973
+ (0,tslib__WEBPACK_IMPORTED_MODULE_15__/* .__decorate */ .gn)([
974
+ (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_8__.watch)(':afterGetValueFromEditor')
975
+ ], googleMaps.prototype, "onAfterGetValueFromEditor", null);
976
+ return googleMaps;
977
+ }(jodit_core_plugin__WEBPACK_IMPORTED_MODULE_0__/* .Plugin */ .S));
978
+ _JoditPro__WEBPACK_IMPORTED_MODULE_1__/* .JoditPro.plugins.add */ .y.plugins.add('google-maps', googleMaps);
979
+
980
+
981
+ /***/ }),
982
+
983
+ /***/ 22709:
984
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
985
+
986
+ "use strict";
987
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
988
+ /* harmony export */ "U": function() { return /* binding */ STORAGE_KEY; },
989
+ /* harmony export */ "o": function() { return /* binding */ COMMAND_OPEN_DIALOG; }
990
+ /* harmony export */ });
991
+ /*!
992
+ * Jodit Editor PRO (https://xdsoft.net/jodit/)
993
+ * See LICENSE.md in the project root for license information.
994
+ * Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
995
+ */
996
+ var STORAGE_KEY = 'googleMapsState';
997
+ var COMMAND_OPEN_DIALOG = 'googleMapsDialog';
998
+
999
+
1000
+ /***/ }),
1001
+
1002
+ /***/ 88408:
1003
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1004
+
1005
+ "use strict";
1006
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1007
+ /* harmony export */ "q": function() { return /* binding */ generateJSScript; }
1008
+ /* harmony export */ });
1009
+ /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(95582);
1010
+
1011
+ function generateJSScript(jodit, state) {
1012
+ return "<".concat('script', " class=\"jodit-google-maps-init\" type=\"text/javascript\">\n\t\tvar imgMap = document.getElementById('").concat(state.uid, "'),\n\t\t\tbox = document.createElement('div'),\n\t\t\tmapBox = document.createElement('div'),\n\t\t\tparentBox = imgMap && imgMap.parentNode,\n\t\t\tassign = Object.assign || function (a, b) {\n\t\t\t\treturn Object.keys(b).reduce(function(acc, key) {\n\t\t\t\t\tacc[key] = b[key];\n\t\t\t\t\treturn acc;\n\t\t\t\t}, a)\n\t\t\t};\n\n\t\tbox.id = 'b").concat(state.uid, "';\n\t\tparentBox ? parentBox.insertBefore(box, imgMap) : document.body.appendChild(box);\n\t\timgMap && box.appendChild(imgMap);\n\t\tbox.appendChild(mapBox);\n\n\t\tif (parentBox && parentBox.style.textAlign === 'center') {\n\t\t\tparentBox.style.margin = '0 auto';\n\t\t}\n\n\t\tbox.style.cssText = imgMap.style.cssText;\n\t\tbox.className = imgMap.className;\n\n\t\tvar w = (imgMap && imgMap.offsetWidth) || ").concat(state.size[0], ",\n\t\t\t\th = (imgMap && imgMap.offsetHeight) || ").concat(state.size[1], ";\n\n\t\tassign(box.style, {\n\t\t\tdisplay: !imgMap.style.cssText ? 'inline-block' : undefined,\n\t\t\twidth: w + 'px',\n\t\t\theight: h + 'px',\n\t\t\tposition: 'relative'\n\t\t});\n\n\t\tassign(mapBox.style, {\n\t\t\twidth: w + 'px',\n\t\t\theight: h + 'px',\n\t\t\tposition: 'absolute',\n\t\t\tleft: 0,\n\t\t\ttop: 0\n\t\t});\n\n\t\tfunction CreateGMap").concat(state.uid, "() {\n\t\t\tif (!mapBox) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tvar map = new google.maps.Map(mapBox, assign({\n\t\t\t\tzoom: ").concat(state.zoom, ",\n\t\t\t\tcenter: { lat: ").concat(state.center[0], ", lng: ").concat(state.center[1], "},\n\t\t\t\tmapType: '").concat(state.type, "'\n\t\t\t}, ").concat(JSON.stringify(state.controls), "));\n\n\t\t\tif (").concat(state.layer !== 'default', ") {\n\t\t\t\tnew google.maps.").concat((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.ucfirst)(state.layer), "Layer().setMap(map);\n\t\t\t}\n\n\t\t\tvar infoWindow = new google.maps.InfoWindow();\n\n\t\t\t").concat(JSON.stringify(state.elements), ".forEach(function (elm) {\n\t\t\t\tswitch (elm.type) {\n\t\t\t\t\tcase 'marker': {\n\t\t\t\t\t\tvar obj = (new google.maps.Marker({\n\t\t\t\t\t\t\tposition: {lat: elm.coordinates[0], lng: elm.coordinates[1]},\n\t\t\t\t\t\t\tmap: map,\n\t\t\t\t\t\t\ttitle: elm.title\n\t\t\t\t\t\t}));\n\n\t\t\t\t\t\telm.text && obj.addListener('click', function () {\n\t\t\t\t\t\t\tinfoWindow.setContent(elm.text);\n\t\t\t\t\t\t\tinfoWindow.open(map, this);\n\t\t\t\t\t\t});\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t\tcase 'circle': {\n\t\t\t\t\t\t(new google.maps.Circle({\n\t\t\t\t\t\t\tcenter: {lat: elm.coordinates[0], lng: elm.coordinates[1]},\n\t\t\t\t\t\t\tradius: elm.radius,\n\t\t\t\t\t\t\tstrokeColor: elm.strokeColor,\n\t\t\t\t\t\t\tfillColor: elm.fillColor,\n\t\t\t\t\t\t\tstrokeWeight: elm.strokeWeight,\n\t\t\t\t\t\t\tfillOpacity: elm.fillOpacity,\n\t\t\t\t\t\t\tmap: map,\n\t\t\t\t\t\t}));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t\tcase 'polygon':\n\t\t\t\t\tcase 'polyline': {\n\t\t\t\t\t\tfunction toPath(array) {\n\t\t\t\t\t\t\treturn array.map(function (item) {\n\t\t\t\t\t\t\t\tif (Array.isArray(item[0])) {\n\t\t\t\t\t\t\t\t\treturn toPath(item);\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\treturn {lat: item[0], lng: item[1]};\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t(new google.maps[elm.type === 'polyline' ? 'Polyline' : 'Polygon']({\n\t\t\t\t\t\t\tpath: toPath(elm.coordinates),\n\t\t\t\t\t\t\tstrokeColor: elm.strokeColor,\n\t\t\t\t\t\t\tfillColor: elm.fillColor,\n\t\t\t\t\t\t\tstrokeWeight: elm.strokeWeight,\n\t\t\t\t\t\t\tfillOpacity: elm.fillOpacity,\n\t\t\t\t\t\t\tmap: map,\n\t\t\t\t\t\t}));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t})\n\t\t}\n\n\t\tif (typeof google !== 'undefined' && typeof google.maps !=='undefined' && typeof google.maps.Map !== 'undefined') {\n\t\t\tCreateGMap").concat(state.uid, "();\n\t\t} else {\n\t\t\tvar scr = document.createElement('script');\n\t\t\tscr.src = 'https://maps.googleapis.com/maps/api/js?key=").concat(
1013
+ // @ts-ignore
1014
+ jodit.o.googleMaps.API_KEY, "&language=").concat(jodit.o.language, "&callback=CreateGMap").concat(state.uid, "';\n\t\t\tdocument.appendChild(scr);\n\t\t}\n\t\t/*]]>*/</").concat('script', ">").replace(/[\n\t]+/g, '');
1015
+ }
1016
+
1017
+
1018
+ /***/ }),
1019
+
1020
+ /***/ 29343:
1021
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1022
+
1023
+ "use strict";
1024
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1025
+ /* harmony export */ "J": function() { return /* binding */ generateStaticElements; }
1026
+ /* harmony export */ });
1027
+ /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(26239);
1028
+ /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(95582);
1029
+ /*!
1030
+ * Jodit Editor PRO (https://xdsoft.net/jodit/)
1031
+ * See LICENSE.md in the project root for license information.
1032
+ * Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
1033
+ */
1034
+
1035
+
1036
+ function generateStaticElements(uiMap) {
1037
+ return uiMap.state.elements
1038
+ .map(function (elm) {
1039
+ var _a, _b, _c, _d, _e, _f;
1040
+ switch (elm.type) {
1041
+ case 'polygon':
1042
+ return "&path=fillcolor:".concat((0,_helpers__WEBPACK_IMPORTED_MODULE_1__/* .specialColor */ .n2)((_a = elm.fillColor) !== null && _a !== void 0 ? _a : '#fff'), "%7Cweight:").concat((_b = elm.strokeWeight) !== null && _b !== void 0 ? _b : 1, "%7Ccolor:").concat((0,_helpers__WEBPACK_IMPORTED_MODULE_1__/* .specialColor */ .n2)((_c = elm.strokeColor) !== null && _c !== void 0 ? _c : '#fff'), "%7Cenc:").concat(google.maps.geometry.encoding.encodePath((0,_helpers__WEBPACK_IMPORTED_MODULE_1__/* .arrayToPath */ .lL)(elm.coordinates)));
1043
+ case 'polyline':
1044
+ return "&path=weight:".concat((_d = elm.strokeWeight) !== null && _d !== void 0 ? _d : 1, "%7Ccolor:").concat((0,_helpers__WEBPACK_IMPORTED_MODULE_1__/* .specialColor */ .n2)((_e = elm.strokeColor) !== null && _e !== void 0 ? _e : '#fff'), "%7Cenc:").concat(google.maps.geometry.encoding.encodePath((0,_helpers__WEBPACK_IMPORTED_MODULE_1__/* .arrayToPath */ .lL)(elm.coordinates)));
1045
+ case 'marker':
1046
+ return "&markers=color:blue%7Clabel:".concat(encodeURIComponent((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.stripTags)((_f = elm.text) !== null && _f !== void 0 ? _f : '')
1047
+ .charAt(0)
1048
+ .toUpperCase()), "%7C").concat(elm.coordinates);
1049
+ }
1050
+ return '';
1051
+ })
1052
+ .join('');
1053
+ }
1054
+
1055
+
1056
+ /***/ }),
1057
+
1058
+ /***/ 26239:
1059
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1060
+
1061
+ "use strict";
1062
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1063
+ /* harmony export */ "Ez": function() { return /* binding */ isApiAvailable; },
1064
+ /* harmony export */ "NI": function() { return /* binding */ pathToArray; },
1065
+ /* harmony export */ "VI": function() { return /* binding */ GoogleReadyHandler; },
1066
+ /* harmony export */ "iE": function() { return /* binding */ googleReady; },
1067
+ /* harmony export */ "lL": function() { return /* binding */ arrayToPath; },
1068
+ /* harmony export */ "n2": function() { return /* binding */ specialColor; }
1069
+ /* harmony export */ });
1070
+ /* unused harmony exports jdGoogleMapsAlreadyLoaded, jdGoogleMapsOnloadHandlers */
1071
+ /*!
1072
+ * Jodit Editor PRO (https://xdsoft.net/jodit/)
1073
+ * See LICENSE.md in the project root for license information.
1074
+ * Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
1075
+ */
1076
+ var jdGoogleMapsAlreadyLoaded = false;
1077
+ var jdGoogleMapsOnloadHandlers = [];
1078
+ function googleReady(callback) {
1079
+ if (jdGoogleMapsAlreadyLoaded) {
1080
+ callback();
1081
+ }
1082
+ else {
1083
+ jdGoogleMapsOnloadHandlers.push(callback);
1084
+ }
1085
+ }
1086
+ function GoogleReadyHandler() {
1087
+ jdGoogleMapsAlreadyLoaded = true;
1088
+ if (jdGoogleMapsOnloadHandlers) {
1089
+ jdGoogleMapsOnloadHandlers.forEach(function (callback) { return callback(); });
1090
+ }
1091
+ }
1092
+ function arrayToPath(array, likePlainObject) {
1093
+ if (likePlainObject === void 0) { likePlainObject = false; }
1094
+ var path = [];
1095
+ if (Array.isArray(array)) {
1096
+ if (Array.isArray(array[0]) || Array.isArray(array[1])) {
1097
+ array.forEach(function (item) {
1098
+ path.push(arrayToPath(item, likePlainObject));
1099
+ });
1100
+ }
1101
+ else {
1102
+ return !likePlainObject
1103
+ ? new google.maps.LatLng(array[0], array[1])
1104
+ : {
1105
+ lat: array[0],
1106
+ lng: array[1]
1107
+ };
1108
+ }
1109
+ }
1110
+ return path;
1111
+ }
1112
+ function pathToArray(path) {
1113
+ return path.getArray().map(function (p) { return [p.lat(), p.lng()]; });
1114
+ }
1115
+ function specialColor(value) {
1116
+ return value.toUpperCase().replace('#', '0x').padEnd(10, 'F');
1117
+ }
1118
+ function isApiAvailable() {
1119
+ return (typeof google !== 'undefined' &&
1120
+ typeof google.maps !== 'undefined' &&
1121
+ typeof google.maps.Map !== 'undefined');
1122
+ }
1123
+
1124
+
1125
+ /***/ }),
1126
+
1127
+ /***/ 3510:
1128
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1129
+
1130
+ "use strict";
1131
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1132
+ /* harmony export */ "v": function() { return /* binding */ staticUrl; }
1133
+ /* harmony export */ });
1134
+ /* harmony import */ var _generate_static_elements__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(29343);
1135
+ /*!
1136
+ * Jodit Editor PRO (https://xdsoft.net/jodit/)
1137
+ * See LICENSE.md in the project root for license information.
1138
+ * Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
1139
+ */
1140
+
1141
+ function staticUrl(uiMap) {
1142
+ var state = uiMap.state;
1143
+ return ("https://maps.googleapis.com/maps/api/staticmap?center=".concat(state.center.join(',')) +
1144
+ "&zoom=".concat(state.zoom) +
1145
+ "&size=".concat(state.size.join('x')) +
1146
+ "&maptype=".concat(state.type) +
1147
+ "&key=".concat(uiMap.options.googleMaps.API_KEY) +
1148
+ (0,_generate_static_elements__WEBPACK_IMPORTED_MODULE_0__/* .generateStaticElements */ .J)(uiMap));
1149
+ }
1150
+
1151
+
1152
+ /***/ }),
1153
+
1154
+ /***/ 97167:
1155
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1156
+
1157
+ "use strict";
1158
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1159
+ /* harmony export */ "Q": function() { return /* binding */ UIComboBox; }
1160
+ /* harmony export */ });
1161
+ /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(97582);
1162
+ /* harmony import */ var jodit_core_ui__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(75004);
1163
+ /* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(50526);
1164
+ /*!
1165
+ * Jodit Editor PRO (https://xdsoft.net/jodit/)
1166
+ * See LICENSE.md in the project root for license information.
1167
+ * Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
1168
+ */
1169
+
1170
+
1171
+
1172
+
1173
+ var UIComboBox = /** @class */ (function (_super) {
1174
+ (0,tslib__WEBPACK_IMPORTED_MODULE_2__/* .__extends */ .ZT)(UIComboBox, _super);
1175
+ function UIComboBox() {
1176
+ return _super !== null && _super.apply(this, arguments) || this;
1177
+ }
1178
+ UIComboBox.prototype.className = function () {
1179
+ return 'UIComboBox';
1180
+ };
1181
+ UIComboBox.prototype.onReady = function () {
1182
+ var _this = this;
1183
+ var autocomplete = new google.maps.places.Autocomplete(this.nativeInput, {
1184
+ fields: ['address_components', 'geometry', 'name'],
1185
+ types: ['geocode']
1186
+ });
1187
+ autocomplete.addListener('place_changed', function () {
1188
+ var _a, _b;
1189
+ var place = autocomplete.getPlace();
1190
+ _this.j.e.fire(_this, 'select', (_a = place.geometry) === null || _a === void 0 ? void 0 : _a.location, (_b = place.geometry) === null || _b === void 0 ? void 0 : _b.viewport);
1191
+ });
1192
+ };
1193
+ UIComboBox.prototype.onInput = function () {
1194
+ return (0,tslib__WEBPACK_IMPORTED_MODULE_2__/* .__awaiter */ .mG)(this, void 0, Promise, function () {
1195
+ return (0,tslib__WEBPACK_IMPORTED_MODULE_2__/* .__generator */ .Jh)(this, function (_a) {
1196
+ return [2 /*return*/];
1197
+ });
1198
+ });
1199
+ };
1200
+ (0,tslib__WEBPACK_IMPORTED_MODULE_2__/* .__decorate */ .gn)([
1201
+ (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.hook)('ready')
1202
+ ], UIComboBox.prototype, "onReady", null);
1203
+ (0,tslib__WEBPACK_IMPORTED_MODULE_2__/* .__decorate */ .gn)([
1204
+ (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.watch)('nativeInput:input'),
1205
+ (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.debounce)()
1206
+ ], UIComboBox.prototype, "onInput", null);
1207
+ return UIComboBox;
1208
+ }(jodit_core_ui__WEBPACK_IMPORTED_MODULE_0__/* .UIInput */ .u3));
1209
+
1210
+
1211
+ /***/ }),
1212
+
1213
+ /***/ 57144:
1214
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1215
+
1216
+ "use strict";
1217
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1218
+ /* harmony export */ "z": function() { return /* binding */ UIBaseEditor; }
1219
+ /* harmony export */ });
1220
+ /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(97582);
1221
+ /* harmony import */ var jodit_core_ui__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(75004);
1222
+ /*!
1223
+ * Jodit Editor PRO (https://xdsoft.net/jodit/)
1224
+ * See LICENSE.md in the project root for license information.
1225
+ * Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
1226
+ */
1227
+
1228
+
1229
+ var UIBaseEditor = /** @class */ (function (_super) {
1230
+ (0,tslib__WEBPACK_IMPORTED_MODULE_1__/* .__extends */ .ZT)(UIBaseEditor, _super);
1231
+ function UIBaseEditor(jodit, state, options) {
1232
+ var _this = _super.call(this, jodit) || this;
1233
+ _this.state = state;
1234
+ _this.options = options;
1235
+ return _this;
1236
+ }
1237
+ UIBaseEditor.prototype.className = function () {
1238
+ return 'UIBaseEditor';
1239
+ };
1240
+ UIBaseEditor.prototype.render = function () {
1241
+ return "<div>\n\t\t\t<div class='&__header'></div>\n\t\t\t<div class='&__form'></div>\n\t\t\t<div class='&__buttons'></div>\n\t\t</div>";
1242
+ };
1243
+ UIBaseEditor.prototype.onReady = function () {
1244
+ var _this = this;
1245
+ var remove = (0,jodit_core_ui__WEBPACK_IMPORTED_MODULE_0__/* .Button */ .zx)(this.j, 'bin').onAction(function () {
1246
+ return _this.j.e.fire(_this, 'bin');
1247
+ });
1248
+ this.append(remove, 'buttons');
1249
+ };
1250
+ return UIBaseEditor;
1251
+ }(jodit_core_ui__WEBPACK_IMPORTED_MODULE_0__/* .UIGroup */ .qe));
1252
+
1253
+
1254
+
1255
+ /***/ }),
1256
+
1257
+ /***/ 75345:
1258
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1259
+
1260
+ "use strict";
1261
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1262
+ /* harmony export */ "Ys": function() { return /* reexport safe */ _marker_marker__WEBPACK_IMPORTED_MODULE_0__.Y; },
1263
+ /* harmony export */ "eU": function() { return /* reexport safe */ _polyline_polyline__WEBPACK_IMPORTED_MODULE_1__.e; },
1264
+ /* harmony export */ "yX": function() { return /* reexport safe */ _polygon_polygon__WEBPACK_IMPORTED_MODULE_2__.y; }
1265
+ /* harmony export */ });
1266
+ /* harmony import */ var _marker_marker__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(56143);
1267
+ /* harmony import */ var _polyline_polyline__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(93565);
1268
+ /* harmony import */ var _polygon_polygon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(61814);
1269
+ /*!
1270
+ * Jodit Editor PRO (https://xdsoft.net/jodit/)
1271
+ * See LICENSE.md in the project root for license information.
1272
+ * Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
1273
+ */
1274
+
1275
+
1276
+
1277
+
1278
+
1279
+ /***/ }),
1280
+
1281
+ /***/ 56143:
1282
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1283
+
1284
+ "use strict";
1285
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1286
+ /* harmony export */ "Y": function() { return /* binding */ UIMarkerEditor; }
1287
+ /* harmony export */ });
1288
+ /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(97582);
1289
+ /* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(50526);
1290
+ /* harmony import */ var _wysiwyg_wysiwyg__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(15191);
1291
+ /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(57144);
1292
+ /*!
1293
+ * Jodit Editor PRO (https://xdsoft.net/jodit/)
1294
+ * See LICENSE.md in the project root for license information.
1295
+ * Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
1296
+ */
1297
+
1298
+
1299
+
1300
+
1301
+ var UIMarkerEditor = /** @class */ (function (_super) {
1302
+ (0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__extends */ .ZT)(UIMarkerEditor, _super);
1303
+ function UIMarkerEditor() {
1304
+ return _super !== null && _super.apply(this, arguments) || this;
1305
+ }
1306
+ UIMarkerEditor.prototype.onReady = function () {
1307
+ var _this = this;
1308
+ var _a;
1309
+ _super.prototype.onReady.call(this);
1310
+ var editor = new _wysiwyg_wysiwyg__WEBPACK_IMPORTED_MODULE_1__/* .UIWysiwyg */ .d(this.j, this.options.googleMaps.inlineEditorOptions, (_a = this.state.text) !== null && _a !== void 0 ? _a : '', function (value) { return _this.j.e.fire(_this, 'change', 'text', value); });
1311
+ this.append(editor, 'form');
1312
+ };
1313
+ (0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__decorate */ .gn)([
1314
+ (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__.hook)('ready')
1315
+ ], UIMarkerEditor.prototype, "onReady", null);
1316
+ UIMarkerEditor = (0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__decorate */ .gn)([
1317
+ jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__.component
1318
+ ], UIMarkerEditor);
1319
+ return UIMarkerEditor;
1320
+ }(_base__WEBPACK_IMPORTED_MODULE_2__/* .UIBaseEditor */ .z));
1321
+
1322
+
1323
+ /***/ }),
1324
+
1325
+ /***/ 61814:
1326
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1327
+
1328
+ "use strict";
1329
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1330
+ /* harmony export */ "y": function() { return /* binding */ UIPolygonEditor; }
1331
+ /* harmony export */ });
1332
+ /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(97582);
1333
+ /* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(50526);
1334
+ /* harmony import */ var _color_picker_ui_input_color_input__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(39445);
1335
+ /* harmony import */ var _polyline_polyline__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(93565);
1336
+ /* harmony import */ var _core_ui_form_range_range__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(48163);
1337
+ /*!
1338
+ * Jodit Editor PRO (https://xdsoft.net/jodit/)
1339
+ * See LICENSE.md in the project root for license information.
1340
+ * Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
1341
+ */
1342
+
1343
+
1344
+
1345
+
1346
+
1347
+ var UIPolygonEditor = /** @class */ (function (_super) {
1348
+ (0,tslib__WEBPACK_IMPORTED_MODULE_4__/* .__extends */ .ZT)(UIPolygonEditor, _super);
1349
+ function UIPolygonEditor() {
1350
+ return _super !== null && _super.apply(this, arguments) || this;
1351
+ }
1352
+ UIPolygonEditor.prototype.onReady = function () {
1353
+ var _this = this;
1354
+ var _a, _b;
1355
+ this.append([
1356
+ new _color_picker_ui_input_color_input__WEBPACK_IMPORTED_MODULE_1__/* .ColorInput */ .T(this.j, {
1357
+ label: 'Fill color',
1358
+ value: (_a = this.state.fillColor) !== null && _a !== void 0 ? _a : '#000',
1359
+ onChange: function (value) {
1360
+ return _this.j.e.fire(_this, 'change', 'fillColor', value);
1361
+ }
1362
+ }).setMod('trigger', false),
1363
+ new _core_ui_form_range_range__WEBPACK_IMPORTED_MODULE_3__/* .UIRange */ .W(this.j, {
1364
+ label: 'Opacity',
1365
+ min: 0,
1366
+ max: 1,
1367
+ value: (_b = this.state.fillOpacity) !== null && _b !== void 0 ? _b : 1,
1368
+ onChange: function (value) {
1369
+ _this.j.e.fire(_this, 'change', 'fillOpacity', parseFloat(value) || 0);
1370
+ }
1371
+ }).setMod('log', false)
1372
+ ], 'form');
1373
+ };
1374
+ (0,tslib__WEBPACK_IMPORTED_MODULE_4__/* .__decorate */ .gn)([
1375
+ (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__.hook)('ready')
1376
+ ], UIPolygonEditor.prototype, "onReady", null);
1377
+ UIPolygonEditor = (0,tslib__WEBPACK_IMPORTED_MODULE_4__/* .__decorate */ .gn)([
1378
+ jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__.component
1379
+ ], UIPolygonEditor);
1380
+ return UIPolygonEditor;
1381
+ }(_polyline_polyline__WEBPACK_IMPORTED_MODULE_2__/* .UIPolylineEditor */ .e));
1382
+
1383
+
1384
+ /***/ }),
1385
+
1386
+ /***/ 93565:
1387
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1388
+
1389
+ "use strict";
1390
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1391
+ /* harmony export */ "e": function() { return /* binding */ UIPolylineEditor; }
1392
+ /* harmony export */ });
1393
+ /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(97582);
1394
+ /* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(50526);
1395
+ /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(57144);
1396
+ /* harmony import */ var _color_picker_ui_input_color_input__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(39445);
1397
+ /* harmony import */ var jodit_core_ui__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(75004);
1398
+ /*!
1399
+ * Jodit Editor PRO (https://xdsoft.net/jodit/)
1400
+ * See LICENSE.md in the project root for license information.
1401
+ * Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
1402
+ */
1403
+
1404
+
1405
+
1406
+
1407
+
1408
+ var UIPolylineEditor = /** @class */ (function (_super) {
1409
+ (0,tslib__WEBPACK_IMPORTED_MODULE_4__/* .__extends */ .ZT)(UIPolylineEditor, _super);
1410
+ function UIPolylineEditor() {
1411
+ return _super !== null && _super.apply(this, arguments) || this;
1412
+ }
1413
+ UIPolylineEditor.prototype.onReady = function () {
1414
+ var _this = this;
1415
+ var _a, _b;
1416
+ _super.prototype.onReady.call(this);
1417
+ this.append([
1418
+ new jodit_core_ui__WEBPACK_IMPORTED_MODULE_3__/* .UIInput */ .u3(this.j, {
1419
+ label: 'Stroke weight',
1420
+ value: (_a = this.state.strokeWeight) !== null && _a !== void 0 ? _a : 1,
1421
+ type: 'number',
1422
+ onChange: function (value) {
1423
+ return _this.j.e.fire(_this, 'change', 'strokeWeight', value);
1424
+ }
1425
+ }),
1426
+ new _color_picker_ui_input_color_input__WEBPACK_IMPORTED_MODULE_2__/* .ColorInput */ .T(this.j, {
1427
+ label: 'Stroke color',
1428
+ value: (_b = this.state.strokeColor) !== null && _b !== void 0 ? _b : '#000',
1429
+ onChange: function (value) {
1430
+ return _this.j.e.fire(_this, 'change', 'strokeColor', value);
1431
+ }
1432
+ }).setMod('trigger', false)
1433
+ ], 'form');
1434
+ };
1435
+ (0,tslib__WEBPACK_IMPORTED_MODULE_4__/* .__decorate */ .gn)([
1436
+ (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__.hook)('ready')
1437
+ ], UIPolylineEditor.prototype, "onReady", null);
1438
+ UIPolylineEditor = (0,tslib__WEBPACK_IMPORTED_MODULE_4__/* .__decorate */ .gn)([
1439
+ jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__.component
1440
+ ], UIPolylineEditor);
1441
+ return UIPolylineEditor;
1442
+ }(_base__WEBPACK_IMPORTED_MODULE_1__/* .UIBaseEditor */ .z));
1443
+
1444
+
1445
+ /***/ }),
1446
+
1447
+ /***/ 40540:
1448
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1449
+
1450
+ "use strict";
1451
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1452
+ /* harmony export */ "BK": function() { return /* reexport safe */ _maps_props_maps_props__WEBPACK_IMPORTED_MODULE_3__.B; },
1453
+ /* harmony export */ "IE": function() { return /* reexport safe */ _map_map__WEBPACK_IMPORTED_MODULE_0__.I; },
1454
+ /* harmony export */ "KQ": function() { return /* reexport safe */ _maps_controls_maps_controls__WEBPACK_IMPORTED_MODULE_4__.K; }
1455
+ /* harmony export */ });
1456
+ /* harmony import */ var _map_map__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(43436);
1457
+ /* harmony import */ var _editors__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(75345);
1458
+ /* harmony import */ var _wysiwyg_wysiwyg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(15191);
1459
+ /* harmony import */ var _maps_props_maps_props__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(59342);
1460
+ /* harmony import */ var _maps_controls_maps_controls__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(42109);
1461
+ /*!
1462
+ * Jodit Editor PRO (https://xdsoft.net/jodit/)
1463
+ * See LICENSE.md in the project root for license information.
1464
+ * Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
1465
+ */
1466
+
1467
+
1468
+
1469
+
1470
+
1471
+
1472
+
1473
+ /***/ }),
1474
+
1475
+ /***/ 43436:
1476
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1477
+
1478
+ "use strict";
1479
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1480
+ /* harmony export */ "I": function() { return /* binding */ UIMap; }
1481
+ /* harmony export */ });
1482
+ /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(97582);
1483
+ /* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(81160);
1484
+ /* harmony import */ var jodit_core_ui__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(75004);
1485
+ /* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(50526);
1486
+ /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(95582);
1487
+ /* harmony import */ var jodit_modules__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(8079);
1488
+ /* harmony import */ var _helpers_const__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(22709);
1489
+ /* harmony import */ var _modules_init_or_update_element_from_state__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(54700);
1490
+ /* harmony import */ var jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(98478);
1491
+ /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(52524);
1492
+ /* harmony import */ var _modules__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(99331);
1493
+ /*!
1494
+ * Jodit Editor PRO (https://xdsoft.net/jodit/)
1495
+ * See LICENSE.md in the project root for license information.
1496
+ * Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
1497
+ */
1498
+
1499
+
1500
+
1501
+
1502
+
1503
+
1504
+
1505
+
1506
+
1507
+
1508
+
1509
+
1510
+ var UIMap = /** @class */ (function (_super) {
1511
+ (0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__extends */ .ZT)(UIMap, _super);
1512
+ function UIMap(jodit, state, options) {
1513
+ var _this = _super.call(this, jodit) || this;
1514
+ _this.options = options;
1515
+ _this.toolbar = new jodit_modules__WEBPACK_IMPORTED_MODULE_4__.ToolbarCollection(_this.jodit);
1516
+ _this.state = {
1517
+ uid: 'jd' + (0,jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .uniqueUid */ .fe)() + new Date().toString().replace(/[^0-9]/g, ''),
1518
+ layer: _this.options.googleMaps.map.layer,
1519
+ center: _this.options.googleMaps.map.defaultCenter,
1520
+ zoom: _this.options.googleMaps.map.defaultZoom,
1521
+ size: _this.options.googleMaps.map.size,
1522
+ type: _this.options.googleMaps.map.type,
1523
+ controls: {
1524
+ zoomControl: true,
1525
+ mapTypeControl: true,
1526
+ scaleControl: true,
1527
+ streetViewControl: true,
1528
+ rotateControl: true,
1529
+ fullscreenControl: true
1530
+ },
1531
+ mode: 'hand',
1532
+ elements: []
1533
+ };
1534
+ _this.mapElements = [];
1535
+ _this.apiLoaded = null;
1536
+ _this.mapInitialized = false;
1537
+ _this.layers = [];
1538
+ Object.assign(_this.state, state);
1539
+ _this.toolbar.build([
1540
+ 'gm.hand',
1541
+ 'gm.marker',
1542
+ 'gm.polyline',
1543
+ 'gm.polygon',
1544
+ 'gm.circle'
1545
+ // 'gm.text'
1546
+ ]);
1547
+ var palette = _this.getElm('map-palette');
1548
+ void 0;
1549
+ palette.appendChild(_this.toolbar.container);
1550
+ return _this;
1551
+ }
1552
+ UIMap.prototype.className = function () {
1553
+ return 'UIMap';
1554
+ };
1555
+ UIMap.prototype.json = function () {
1556
+ return JSON.stringify((0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__assign */ .pi)((0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__assign */ .pi)({}, this.state), { mode: 'hand' }));
1557
+ };
1558
+ UIMap.prototype.onReady = function () {
1559
+ return (0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__awaiter */ .mG)(this, void 0, Promise, function () {
1560
+ var container;
1561
+ var _this = this;
1562
+ return (0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__generator */ .Jh)(this, function (_a) {
1563
+ switch (_a.label) {
1564
+ case 0: return [4 /*yield*/, this.apiLoaded];
1565
+ case 1:
1566
+ _a.sent();
1567
+ container = this.getElm('map-root');
1568
+ void 0;
1569
+ this.map = new google.maps.Map(container, {
1570
+ center: { lat: this.state.center[0], lng: this.state.center[1] },
1571
+ zoom: this.state.zoom,
1572
+ mapTypeId: this.state.type
1573
+ });
1574
+ this.map.addListener('zoom_changed', function () {
1575
+ var _a;
1576
+ _this.state.zoom = (_a = _this.map.getZoom()) !== null && _a !== void 0 ? _a : 10;
1577
+ });
1578
+ this.map.addListener('center_changed', function () {
1579
+ var _a, _b, _c, _d, _e, _f;
1580
+ _this.state.center = [
1581
+ (_c = (_b = (_a = _this.map) === null || _a === void 0 ? void 0 : _a.getCenter()) === null || _b === void 0 ? void 0 : _b.lat()) !== null && _c !== void 0 ? _c : 55,
1582
+ (_f = (_e = (_d = _this.map) === null || _d === void 0 ? void 0 : _d.getCenter()) === null || _e === void 0 ? void 0 : _e.lng()) !== null && _f !== void 0 ? _f : 34
1583
+ ];
1584
+ });
1585
+ this.map.addListener('maptypeid_changed', function () {
1586
+ var type = _this.map.getMapTypeId();
1587
+ if (type) {
1588
+ _this.state.type = type;
1589
+ }
1590
+ });
1591
+ this.initDrawManager();
1592
+ this.onChangeElementsList();
1593
+ this.onChangeSize();
1594
+ this.onChangeControls();
1595
+ this.onChangeLayer();
1596
+ this.onChangeMapType();
1597
+ this.onChangeMode();
1598
+ this.mapInitialized = true;
1599
+ this.j.async.requestIdleCallback(function () {
1600
+ _this.j.e.fire(_this, 'GoogleMapsIsReady');
1601
+ });
1602
+ return [2 /*return*/];
1603
+ }
1604
+ });
1605
+ });
1606
+ };
1607
+ UIMap.prototype.initDrawManager = function () {
1608
+ var _this = this;
1609
+ try {
1610
+ var drawingManager = new google.maps.drawing.DrawingManager();
1611
+ drawingManager.setMap(this.map);
1612
+ drawingManager.setOptions({
1613
+ drawingControl: false,
1614
+ polygonOptions: (0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__assign */ .pi)((0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__assign */ .pi)({}, this.options.googleMaps.map.defaultStates.polygon), { clickable: true, editable: true }),
1615
+ polylineOptions: (0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__assign */ .pi)((0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__assign */ .pi)({}, this.options.googleMaps.map.defaultStates.polyline), { clickable: true, editable: true }),
1616
+ markerOptions: (0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__assign */ .pi)((0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__assign */ .pi)({}, this.options.googleMaps.map.defaultStates.marker), { clickable: true }),
1617
+ circleOptions: (0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__assign */ .pi)((0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__assign */ .pi)({}, this.options.googleMaps.map.defaultStates.circle), { clickable: true, editable: true })
1618
+ });
1619
+ this.drawingManager = drawingManager;
1620
+ google.maps.event.addListener(drawingManager, 'overlaycomplete', function (event) {
1621
+ if (event.overlay) {
1622
+ _modules__WEBPACK_IMPORTED_MODULE_8__/* .addNewInState.call */ .Tf.call(_this, event.overlay);
1623
+ event.overlay.setMap(null);
1624
+ }
1625
+ });
1626
+ }
1627
+ catch (_a) { }
1628
+ };
1629
+ UIMap.prototype.changeCreateMode = function (mode) {
1630
+ this.state.mode = this.state.mode === mode ? 'hand' : mode;
1631
+ };
1632
+ UIMap.prototype.onChangeMode = function () {
1633
+ var _a;
1634
+ this.j.buffer.set('createMode.gm', this.state.mode);
1635
+ (_a = this.drawingManager) === null || _a === void 0 ? void 0 : _a.setDrawingMode(this.state.mode === 'hand'
1636
+ ? null
1637
+ : this.state.mode);
1638
+ this.j.e.fire('updateToolbar');
1639
+ };
1640
+ UIMap.prototype.onChangeElementsList = function () {
1641
+ var _a;
1642
+ var _this = this;
1643
+ var elements = (_a = this, _a.state.elements), mapElements = _a.mapElements;
1644
+ if (elements.length < mapElements.length) {
1645
+ mapElements.slice(elements.length).forEach(function (elm) {
1646
+ elm.gme.setMap(null);
1647
+ });
1648
+ }
1649
+ mapElements.length = elements.length;
1650
+ elements.forEach(function (state, index) {
1651
+ return _modules_init_or_update_element_from_state__WEBPACK_IMPORTED_MODULE_5__/* .initOrUpdateElementFromState.call */ .O.call(_this, state, index);
1652
+ });
1653
+ };
1654
+ UIMap.prototype.onChangeCenter = function () {
1655
+ var center = this.map.getCenter();
1656
+ if ((center === null || center === void 0 ? void 0 : center.lat()) !== this.state.center[0] ||
1657
+ (center === null || center === void 0 ? void 0 : center.lng()) !== this.state.center[1]) {
1658
+ this.map.setCenter({
1659
+ lat: this.state.center[0],
1660
+ lng: this.state.center[1]
1661
+ });
1662
+ }
1663
+ };
1664
+ UIMap.prototype.onChangeZoom = function () {
1665
+ var _a;
1666
+ (_a = this.map) === null || _a === void 0 ? void 0 : _a.setZoom(this.state.zoom);
1667
+ };
1668
+ UIMap.prototype.onChangeControls = function () {
1669
+ var _a;
1670
+ var key;
1671
+ for (key in this.state.controls) {
1672
+ (_a = this.map) === null || _a === void 0 ? void 0 : _a.set(key, this.state.controls[key]);
1673
+ }
1674
+ };
1675
+ UIMap.prototype.onChangeBound = function () {
1676
+ this.options.googleMaps.saveStateInStorage &&
1677
+ this.j.storage.set(_helpers_const__WEBPACK_IMPORTED_MODULE_10__/* .STORAGE_KEY */ .U, {
1678
+ center: this.state.center,
1679
+ size: this.state.size,
1680
+ zoom: this.state.zoom,
1681
+ type: this.state.type,
1682
+ layer: this.state.layer,
1683
+ controls: this.state.controls
1684
+ });
1685
+ };
1686
+ UIMap.prototype.onChangeSize = function () {
1687
+ var mapSize = this.getElm('map-size');
1688
+ void 0;
1689
+ (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.css)(mapSize, {
1690
+ width: this.state.size[0],
1691
+ height: this.state.size[1]
1692
+ });
1693
+ };
1694
+ UIMap.prototype.onChangeMapType = function () {
1695
+ this.map.setMapTypeId(this.state.type);
1696
+ };
1697
+ UIMap.prototype.onChangeLayer = function () {
1698
+ var _this = this;
1699
+ this.layers.forEach(function (layer) { return layer.setMap(null); });
1700
+ this.layers.length = 0;
1701
+ switch (this.state.layer) {
1702
+ case 'traffic':
1703
+ this.layers.push(new google.maps.TrafficLayer());
1704
+ break;
1705
+ case 'transit':
1706
+ this.layers.push(new google.maps.TransitLayer());
1707
+ break;
1708
+ case 'bicycling':
1709
+ this.layers.push(new google.maps.BicyclingLayer());
1710
+ break;
1711
+ }
1712
+ this.layers.forEach(function (layer) { return layer.setMap(_this.map); });
1713
+ };
1714
+ UIMap.prototype.render = function () {
1715
+ return "<div>\n\t\t\t<div class='&__map-root'></div>\n\t\t\t<div class='&__map-size'></div>\n\t\t\t<div class='&__map-palette'></div>\n\t\t</div>";
1716
+ };
1717
+ UIMap.prototype.appendChildToContainer = function () { };
1718
+ (0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__decorate */ .gn)([
1719
+ (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.hook)('ready')
1720
+ ], UIMap.prototype, "onReady", null);
1721
+ (0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__decorate */ .gn)([
1722
+ (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.watch)('?:changeCreateMode.gm')
1723
+ ], UIMap.prototype, "changeCreateMode", null);
1724
+ (0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__decorate */ .gn)([
1725
+ (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.watch)('state.mode')
1726
+ ], UIMap.prototype, "onChangeMode", null);
1727
+ (0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__decorate */ .gn)([
1728
+ (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.watch)('state.elements')
1729
+ ], UIMap.prototype, "onChangeElementsList", null);
1730
+ (0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__decorate */ .gn)([
1731
+ (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.watch)('state.center'),
1732
+ (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.wait)(function (ctx) { return ctx.mapInitialized; }),
1733
+ (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.debounce)()
1734
+ ], UIMap.prototype, "onChangeCenter", null);
1735
+ (0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__decorate */ .gn)([
1736
+ (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.watch)('state.zoom'),
1737
+ (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.debounce)()
1738
+ ], UIMap.prototype, "onChangeZoom", null);
1739
+ (0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__decorate */ .gn)([
1740
+ (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.watch)('state.controls')
1741
+ ], UIMap.prototype, "onChangeControls", null);
1742
+ (0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__decorate */ .gn)([
1743
+ (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.watch)([
1744
+ 'state.center',
1745
+ 'state.zoom',
1746
+ 'state.controls',
1747
+ 'state.size',
1748
+ 'state.type',
1749
+ 'state.layer'
1750
+ ]),
1751
+ (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.wait)(function (ctx) { return ctx.mapInitialized; }),
1752
+ (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.debounce)()
1753
+ ], UIMap.prototype, "onChangeBound", null);
1754
+ (0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__decorate */ .gn)([
1755
+ (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.watch)('state.size'),
1756
+ (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.debounce)()
1757
+ ], UIMap.prototype, "onChangeSize", null);
1758
+ (0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__decorate */ .gn)([
1759
+ (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.watch)('state.type')
1760
+ ], UIMap.prototype, "onChangeMapType", null);
1761
+ (0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__decorate */ .gn)([
1762
+ (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.watch)('state.layer')
1763
+ ], UIMap.prototype, "onChangeLayer", null);
1764
+ return UIMap;
1765
+ }(jodit_core_ui__WEBPACK_IMPORTED_MODULE_1__/* .UIGroup */ .qe));
1766
+
1767
+
1768
+ /***/ }),
1769
+
1770
+ /***/ 44629:
1771
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1772
+
1773
+ "use strict";
1774
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1775
+ /* harmony export */ "T": function() { return /* binding */ addNewInState; }
1776
+ /* harmony export */ });
1777
+ /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(97582);
1778
+ /* harmony import */ var _helpers_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(26239);
1779
+ /*!
1780
+ * Jodit Editor PRO (https://xdsoft.net/jodit/)
1781
+ * See LICENSE.md in the project root for license information.
1782
+ * Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
1783
+ */
1784
+
1785
+
1786
+ function addNewInState(mvc) {
1787
+ var _a, _b, _c, _d, _e, _f, _g, _h;
1788
+ switch (this.state.mode) {
1789
+ case 'polyline':
1790
+ case 'polygon': {
1791
+ var mode = this.state.mode;
1792
+ this.state.elements = (0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__spreadArray */ .ev)((0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__spreadArray */ .ev)([], (0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__read */ .CR)(this.state.elements), false), [
1793
+ (0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__assign */ .pi)({ type: mode, coordinates: (0,_helpers_helpers__WEBPACK_IMPORTED_MODULE_1__/* .pathToArray */ .NI)(mvc.getPath()) }, this.options.googleMaps.map.defaultStates[mode])
1794
+ ], false);
1795
+ break;
1796
+ }
1797
+ case 'circle': {
1798
+ var circle = mvc;
1799
+ this.state.elements = (0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__spreadArray */ .ev)((0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__spreadArray */ .ev)([], (0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__read */ .CR)(this.state.elements), false), [
1800
+ (0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__assign */ .pi)({ type: this.state.mode, coordinates: [
1801
+ (_b = (_a = circle.getCenter()) === null || _a === void 0 ? void 0 : _a.lat()) !== null && _b !== void 0 ? _b : 0,
1802
+ (_d = (_c = circle.getCenter()) === null || _c === void 0 ? void 0 : _c.lng()) !== null && _d !== void 0 ? _d : 0
1803
+ ], radius: circle.getRadius() }, this.options.googleMaps.map.defaultStates.circle)
1804
+ ], false);
1805
+ break;
1806
+ }
1807
+ case 'marker': {
1808
+ var marker = mvc;
1809
+ this.state.elements = (0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__spreadArray */ .ev)((0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__spreadArray */ .ev)([], (0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__read */ .CR)(this.state.elements), false), [
1810
+ (0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__assign */ .pi)({ type: this.state.mode, coordinates: [
1811
+ (_f = (_e = marker.getPosition()) === null || _e === void 0 ? void 0 : _e.lat()) !== null && _f !== void 0 ? _f : 0,
1812
+ (_h = (_g = marker.getPosition()) === null || _g === void 0 ? void 0 : _g.lng()) !== null && _h !== void 0 ? _h : 0
1813
+ ] }, this.options.googleMaps.map.defaultStates.marker)
1814
+ ], false);
1815
+ break;
1816
+ }
1817
+ }
1818
+ }
1819
+
1820
+
1821
+ /***/ }),
1822
+
1823
+ /***/ 99331:
1824
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1825
+
1826
+ "use strict";
1827
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1828
+ /* harmony export */ "Tf": function() { return /* reexport safe */ _add_new_in_state__WEBPACK_IMPORTED_MODULE_0__.T; }
1829
+ /* harmony export */ });
1830
+ /* harmony import */ var _add_new_in_state__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44629);
1831
+ /* harmony import */ var _open_props_dialog__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(70054);
1832
+ /*!
1833
+ * Jodit Editor PRO (https://xdsoft.net/jodit/)
1834
+ * See LICENSE.md in the project root for license information.
1835
+ * Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
1836
+ */
1837
+
1838
+
1839
+
1840
+
1841
+
1842
+
1843
+
1844
+ /***/ }),
1845
+
1846
+ /***/ 54700:
1847
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1848
+
1849
+ "use strict";
1850
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1851
+ /* harmony export */ "O": function() { return /* binding */ initOrUpdateElementFromState; }
1852
+ /* harmony export */ });
1853
+ /* harmony import */ var _update_state_and_gme__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(22425);
1854
+ /* harmony import */ var jodit_core_ui__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(75004);
1855
+ /* harmony import */ var _helpers_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(26239);
1856
+ /* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(81160);
1857
+ /* harmony import */ var _on_change_geometries__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(14234);
1858
+ /* harmony import */ var _open_props_dialog__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(70054);
1859
+
1860
+
1861
+
1862
+
1863
+
1864
+
1865
+ function initOrUpdateElementFromState(state, index) {
1866
+ var _this = this;
1867
+ var _a;
1868
+ var elm = this.mapElements[index];
1869
+ if (elm) {
1870
+ if (elm.state.type === state.type) {
1871
+ return _update_state_and_gme__WEBPACK_IMPORTED_MODULE_3__/* .updateStateAndGme.call */ .v.call(this, state, index);
1872
+ }
1873
+ elm.gme.setMap(null);
1874
+ }
1875
+ var gme;
1876
+ switch (state.type) {
1877
+ case 'text':
1878
+ gme = new google.maps.Marker({
1879
+ position: new google.maps.LatLng(state.coordinates[0], state.coordinates[1]),
1880
+ draggable: true,
1881
+ title: state.text,
1882
+ map: this.map
1883
+ });
1884
+ break;
1885
+ case 'marker':
1886
+ gme = new google.maps.Marker({
1887
+ position: new google.maps.LatLng(state.coordinates[0], state.coordinates[1]),
1888
+ draggable: true,
1889
+ label: state.showCaption ? state.title : '',
1890
+ title: state.title,
1891
+ icon: state.icon ? jodit_core_ui__WEBPACK_IMPORTED_MODULE_0__/* .Icon.get */ .JO.get(state.icon) : null,
1892
+ map: this.map
1893
+ });
1894
+ break;
1895
+ case 'polyline':
1896
+ case 'polygon':
1897
+ {
1898
+ var coordinates = (0,_helpers_helpers__WEBPACK_IMPORTED_MODULE_4__/* .arrayToPath */ .lL)(state.coordinates);
1899
+ gme = new google.maps[state.type === 'polygon' ? 'Polygon' : 'Polyline']({
1900
+ path: coordinates,
1901
+ strokeColor: state.strokeColor,
1902
+ fillColor: state.fillColor,
1903
+ strokeWeight: state.strokeWeight,
1904
+ editable: true,
1905
+ draggable: true,
1906
+ map: this.map,
1907
+ fillOpacity: state.type === 'polygon' ? state.fillOpacity : 1
1908
+ });
1909
+ }
1910
+ break;
1911
+ case 'circle':
1912
+ gme = new google.maps.Circle({
1913
+ center: new google.maps.LatLng(state.coordinates[0], state.coordinates[1]),
1914
+ radius: state.radius,
1915
+ strokeColor: state.strokeColor,
1916
+ fillColor: state.fillColor,
1917
+ strokeWeight: state.strokeWeight,
1918
+ editable: true,
1919
+ draggable: true,
1920
+ map: this.map,
1921
+ fillOpacity: (_a = state.fillOpacity) !== null && _a !== void 0 ? _a : 1
1922
+ });
1923
+ break;
1924
+ }
1925
+ var newElm = {
1926
+ type: state.type,
1927
+ uid: (0,jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .uniqueUid */ .fe)(),
1928
+ state: state,
1929
+ gme: gme
1930
+ };
1931
+ 'dragend radius_changed center_changed'
1932
+ .split(' ')
1933
+ .forEach(function (event) {
1934
+ return gme.addListener(event, function () {
1935
+ return _on_change_geometries__WEBPACK_IMPORTED_MODULE_5__/* .onChangeGeometries.call */ .w.call(_this, newElm, index);
1936
+ });
1937
+ });
1938
+ if (newElm.type === 'polygon' || newElm.type === 'polyline') {
1939
+ 'insert_at set_at remove_at'
1940
+ .split(' ')
1941
+ .forEach(function (event) {
1942
+ return newElm.gme
1943
+ .getPath()
1944
+ .addListener(event, function () {
1945
+ return _on_change_geometries__WEBPACK_IMPORTED_MODULE_5__/* .onChangeGeometries.call */ .w.call(_this, newElm, index);
1946
+ });
1947
+ });
1948
+ }
1949
+ gme.addListener('click', function () { return _open_props_dialog__WEBPACK_IMPORTED_MODULE_2__/* .openPropsDialog.call */ .B.call(_this, newElm, index); });
1950
+ this.mapElements[index] = newElm;
1951
+ }
1952
+
1953
+
1954
+ /***/ }),
1955
+
1956
+ /***/ 14234:
1957
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1958
+
1959
+ "use strict";
1960
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1961
+ /* harmony export */ "w": function() { return /* binding */ onChangeGeometries; }
1962
+ /* harmony export */ });
1963
+ /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(97582);
1964
+ /* harmony import */ var _update_state_and_gme__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(22425);
1965
+ /* harmony import */ var _helpers_helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(26239);
1966
+ /*!
1967
+ * Jodit Editor PRO (https://xdsoft.net/jodit/)
1968
+ * See LICENSE.md in the project root for license information.
1969
+ * Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
1970
+ */
1971
+
1972
+
1973
+
1974
+ function onChangeGeometries(newElm, index) {
1975
+ var _a, _b, _c, _d;
1976
+ switch (newElm.type) {
1977
+ case 'polyline':
1978
+ case 'polygon': {
1979
+ var coordinates = (0,_helpers_helpers__WEBPACK_IMPORTED_MODULE_0__/* .pathToArray */ .NI)(newElm.gme.getPath()), newState = (0,tslib__WEBPACK_IMPORTED_MODULE_1__/* .__assign */ .pi)((0,tslib__WEBPACK_IMPORTED_MODULE_1__/* .__assign */ .pi)({}, newElm.state), { coordinates: coordinates });
1980
+ _update_state_and_gme__WEBPACK_IMPORTED_MODULE_2__/* .updateStateAndGme.call */ .v.call(this, newState, index, true);
1981
+ break;
1982
+ }
1983
+ case 'marker': {
1984
+ var pos = newElm.gme.getPosition(), newState = (0,tslib__WEBPACK_IMPORTED_MODULE_1__/* .__assign */ .pi)((0,tslib__WEBPACK_IMPORTED_MODULE_1__/* .__assign */ .pi)({}, newElm.state), { coordinates: [(_a = pos === null || pos === void 0 ? void 0 : pos.lat()) !== null && _a !== void 0 ? _a : 0, (_b = pos === null || pos === void 0 ? void 0 : pos.lng()) !== null && _b !== void 0 ? _b : 0] });
1985
+ _update_state_and_gme__WEBPACK_IMPORTED_MODULE_2__/* .updateStateAndGme.call */ .v.call(this, newState, index, true);
1986
+ break;
1987
+ }
1988
+ case 'circle': {
1989
+ var pos = newElm.gme.getCenter(), newState = (0,tslib__WEBPACK_IMPORTED_MODULE_1__/* .__assign */ .pi)((0,tslib__WEBPACK_IMPORTED_MODULE_1__/* .__assign */ .pi)({}, newElm.state), { radius: newElm.gme.getRadius(), coordinates: [(_c = pos === null || pos === void 0 ? void 0 : pos.lat()) !== null && _c !== void 0 ? _c : 0, (_d = pos === null || pos === void 0 ? void 0 : pos.lng()) !== null && _d !== void 0 ? _d : 0] });
1990
+ _update_state_and_gme__WEBPACK_IMPORTED_MODULE_2__/* .updateStateAndGme.call */ .v.call(this, newState, index, true);
1991
+ break;
1992
+ }
1993
+ }
1994
+ }
1995
+
1996
+
1997
+ /***/ }),
1998
+
1999
+ /***/ 70054:
2000
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
2001
+
2002
+ "use strict";
2003
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2004
+ /* harmony export */ "B": function() { return /* binding */ openPropsDialog; }
2005
+ /* harmony export */ });
2006
+ /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(97582);
2007
+ /* harmony import */ var _editors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(75345);
2008
+ /* harmony import */ var _remove_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(48207);
2009
+ /* harmony import */ var _update_state_and_gme__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(22425);
2010
+ /*!
2011
+ * Jodit Editor PRO (https://xdsoft.net/jodit/)
2012
+ * See LICENSE.md in the project root for license information.
2013
+ * Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
2014
+ */
2015
+
2016
+
2017
+
2018
+
2019
+ function getInfoWindow() {
2020
+ var _this = this;
2021
+ var infoWindow = new google.maps.InfoWindow({
2022
+ content: '<div>test</div>'
2023
+ });
2024
+ infoWindow.addListener('domready', function () {
2025
+ _this.setMod('info-opened', true);
2026
+ });
2027
+ infoWindow.addListener('closeclick', function () {
2028
+ _this.setMod('info-opened', false);
2029
+ });
2030
+ return infoWindow;
2031
+ }
2032
+ function openPropsDialog(newElm, index) {
2033
+ var _this = this;
2034
+ var editor;
2035
+ this.state.mode = 'hand';
2036
+ switch (newElm.type) {
2037
+ case 'polyline':
2038
+ editor = new _editors__WEBPACK_IMPORTED_MODULE_0__/* .UIPolylineEditor */ .eU(this.jodit, newElm.state, this.options);
2039
+ break;
2040
+ case 'marker':
2041
+ editor = new _editors__WEBPACK_IMPORTED_MODULE_0__/* .UIMarkerEditor */ .Ys(this.jodit, newElm.state, this.options);
2042
+ break;
2043
+ case 'circle':
2044
+ case 'polygon':
2045
+ editor = new _editors__WEBPACK_IMPORTED_MODULE_0__/* .UIPolygonEditor */ .yX(this.jodit, newElm.state, this.options);
2046
+ break;
2047
+ }
2048
+ if (!editor) {
2049
+ return;
2050
+ }
2051
+ this.append(editor);
2052
+ this.j.e
2053
+ .on(editor, 'bin', function () {
2054
+ _remove_element__WEBPACK_IMPORTED_MODULE_1__/* .removeElement.call */ .b.call(_this, newElm);
2055
+ })
2056
+ .on(editor, 'change', function (key, value) {
2057
+ var _a;
2058
+ _update_state_and_gme__WEBPACK_IMPORTED_MODULE_2__/* .updateStateAndGme.call */ .v.call(_this, (0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__assign */ .pi)((0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__assign */ .pi)({}, newElm.state), (_a = {}, _a[key] = value, _a)), index);
2059
+ });
2060
+ var w = getInfoWindow.call(this);
2061
+ if (newElm.type === 'polygon' || newElm.type === 'polyline') {
2062
+ var pos = newElm.gme.getPath().getAt(0);
2063
+ w.setPosition(pos);
2064
+ }
2065
+ if (newElm.type === 'circle') {
2066
+ w.setPosition(newElm.gme.getCenter());
2067
+ }
2068
+ w.setContent(editor.container);
2069
+ w.open(this.map, newElm.gme);
2070
+ w.addListener('closeclick', function () {
2071
+ if (editor) {
2072
+ _this.remove(editor);
2073
+ editor.destruct();
2074
+ }
2075
+ });
2076
+ }
2077
+
2078
+
2079
+ /***/ }),
2080
+
2081
+ /***/ 48207:
2082
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
2083
+
2084
+ "use strict";
2085
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2086
+ /* harmony export */ "b": function() { return /* binding */ removeElement; }
2087
+ /* harmony export */ });
2088
+ /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(97582);
2089
+ /*!
2090
+ * Jodit Editor PRO (https://xdsoft.net/jodit/)
2091
+ * See LICENSE.md in the project root for license information.
2092
+ * Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
2093
+ */
2094
+
2095
+ function removeElement(newElm) {
2096
+ var index = this.mapElements.indexOf(newElm);
2097
+ if (index !== -1) {
2098
+ var elm = this.mapElements[index];
2099
+ elm.gme.setMap(null);
2100
+ this.mapElements.splice(index, 1);
2101
+ this.state.elements.splice(index, 1);
2102
+ this.state.elements = (0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__spreadArray */ .ev)([], (0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__read */ .CR)(this.state.elements), false);
2103
+ }
2104
+ }
2105
+
2106
+
2107
+ /***/ }),
2108
+
2109
+ /***/ 22425:
2110
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
2111
+
2112
+ "use strict";
2113
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2114
+ /* harmony export */ "v": function() { return /* binding */ updateStateAndGme; }
2115
+ /* harmony export */ });
2116
+ /* harmony import */ var _helpers_helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(26239);
2117
+
2118
+ function updateStateAndGme(newState, index, silent) {
2119
+ var _a;
2120
+ if (silent === void 0) { silent = false; }
2121
+ var elm = this.mapElements[index];
2122
+ if (elm.state === newState || elm.state.type !== newState.type) {
2123
+ return;
2124
+ }
2125
+ var oldState = elm.state;
2126
+ if (!silent) {
2127
+ var key = void 0;
2128
+ for (key in newState) {
2129
+ var newValue = newState[key];
2130
+ var oldValue = oldState[key];
2131
+ if (newValue != null &&
2132
+ (oldValue == null ||
2133
+ newValue.toString() !== oldValue.toString())) {
2134
+ switch (key) {
2135
+ case 'strokeWeight':
2136
+ case 'strokeColor':
2137
+ case 'fillColor':
2138
+ case 'fillOpacity':
2139
+ switch (elm.type) {
2140
+ case 'polyline':
2141
+ case 'circle':
2142
+ case 'polygon': {
2143
+ elm.gme.setOptions((_a = {},
2144
+ _a[key] = newValue,
2145
+ _a));
2146
+ break;
2147
+ }
2148
+ }
2149
+ break;
2150
+ // For Edit mode
2151
+ case 'coordinates':
2152
+ switch (elm.type) {
2153
+ case 'polygon':
2154
+ case 'polyline': {
2155
+ elm.gme.setPath((0,_helpers_helpers__WEBPACK_IMPORTED_MODULE_0__/* .arrayToPath */ .lL)(newValue));
2156
+ break;
2157
+ }
2158
+ }
2159
+ break;
2160
+ }
2161
+ }
2162
+ }
2163
+ }
2164
+ elm.state = newState;
2165
+ this.state.elements[index] = newState;
2166
+ }
2167
+
2168
+
2169
+ /***/ }),
2170
+
2171
+ /***/ 42109:
2172
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
2173
+
2174
+ "use strict";
2175
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2176
+ /* harmony export */ "K": function() { return /* binding */ UIMapsControlsForm; }
2177
+ /* harmony export */ });
2178
+ /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(97582);
2179
+ /* harmony import */ var jodit_core_ui__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(75004);
2180
+ /* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(50526);
2181
+ /*!
2182
+ * Jodit Editor PRO (https://xdsoft.net/jodit/)
2183
+ * See LICENSE.md in the project root for license information.
2184
+ * Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
2185
+ */
2186
+
2187
+
2188
+
2189
+
2190
+ var UIMapsControlsForm = /** @class */ (function (_super) {
2191
+ (0,tslib__WEBPACK_IMPORTED_MODULE_2__/* .__extends */ .ZT)(UIMapsControlsForm, _super);
2192
+ function UIMapsControlsForm(jodit, state) {
2193
+ var _this = _super.call(this, jodit) || this;
2194
+ _this.state = state;
2195
+ var controlsNames = {
2196
+ zoomControl: 'Zoom control',
2197
+ mapTypeControl: 'Map Type control',
2198
+ scaleControl: 'Scale control',
2199
+ streetViewControl: 'Street View control ',
2200
+ rotateControl: 'Rotate control',
2201
+ fullscreenControl: 'Fullscreen control'
2202
+ };
2203
+ var controls = Object.keys(controlsNames);
2204
+ _this.append(controls.map(function (key) {
2205
+ return new jodit_core_ui__WEBPACK_IMPORTED_MODULE_0__/* .UICheckbox */ .mA(jodit, {
2206
+ label: controlsNames[key],
2207
+ name: key,
2208
+ checked: _this.state.controls[key],
2209
+ switch: true,
2210
+ type: 'checkbox',
2211
+ onChange: _this.onChangeSize.bind(_this, key)
2212
+ });
2213
+ }));
2214
+ return _this;
2215
+ }
2216
+ UIMapsControlsForm.prototype.className = function () {
2217
+ return 'UIMapsControlsForm';
2218
+ };
2219
+ UIMapsControlsForm.prototype.onChangeSize = function (key, value) {
2220
+ var _a;
2221
+ this.state.controls = (0,tslib__WEBPACK_IMPORTED_MODULE_2__/* .__assign */ .pi)((0,tslib__WEBPACK_IMPORTED_MODULE_2__/* .__assign */ .pi)({}, this.state.controls), (_a = {}, _a[key] = value === 'true', _a));
2222
+ };
2223
+ UIMapsControlsForm = (0,tslib__WEBPACK_IMPORTED_MODULE_2__/* .__decorate */ .gn)([
2224
+ jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.component
2225
+ ], UIMapsControlsForm);
2226
+ return UIMapsControlsForm;
2227
+ }(jodit_core_ui__WEBPACK_IMPORTED_MODULE_0__/* .UIForm */ .x4));
2228
+
2229
+
2230
+ /***/ }),
2231
+
2232
+ /***/ 59342:
2233
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
2234
+
2235
+ "use strict";
2236
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2237
+ /* harmony export */ "B": function() { return /* binding */ UIMapsPropsForm; }
2238
+ /* harmony export */ });
2239
+ /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(97582);
2240
+ /* harmony import */ var jodit_core_ui__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(75004);
2241
+ /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(95582);
2242
+ /* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(50526);
2243
+ /*!
2244
+ * Jodit Editor PRO (https://xdsoft.net/jodit/)
2245
+ * See LICENSE.md in the project root for license information.
2246
+ * Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
2247
+ */
2248
+
2249
+
2250
+
2251
+
2252
+
2253
+ var UIMapsPropsForm = /** @class */ (function (_super) {
2254
+ (0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__extends */ .ZT)(UIMapsPropsForm, _super);
2255
+ function UIMapsPropsForm(jodit, state) {
2256
+ var _a, _b;
2257
+ var _this = this;
2258
+ var _c;
2259
+ _this = _super.call(this, jodit) || this;
2260
+ _this.state = state;
2261
+ var w = (_a = (0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__read */ .CR)(state.size, 2), _a[0]), h = _a[1];
2262
+ var x = (_b = (0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__read */ .CR)(state.center, 2), _b[0]), y = _b[1];
2263
+ _this.append([
2264
+ new jodit_core_ui__WEBPACK_IMPORTED_MODULE_0__/* .UIInput */ .u3(jodit, {
2265
+ label: 'Width',
2266
+ name: 'width',
2267
+ value: w,
2268
+ type: 'number',
2269
+ onChange: _this.onChangeSize
2270
+ }),
2271
+ new jodit_core_ui__WEBPACK_IMPORTED_MODULE_0__/* .UIInput */ .u3(jodit, {
2272
+ label: 'Height',
2273
+ name: 'height',
2274
+ value: h,
2275
+ type: 'number',
2276
+ onChange: _this.onChangeSize
2277
+ }),
2278
+ new jodit_core_ui__WEBPACK_IMPORTED_MODULE_0__/* .UIInput */ .u3(jodit, {
2279
+ label: 'Latitude',
2280
+ name: 'lat',
2281
+ value: x,
2282
+ onChange: _this.onChangeCenter
2283
+ }),
2284
+ new jodit_core_ui__WEBPACK_IMPORTED_MODULE_0__/* .UIInput */ .u3(jodit, {
2285
+ label: 'Longitude',
2286
+ name: 'lng',
2287
+ value: y,
2288
+ onChange: _this.onChangeCenter
2289
+ }),
2290
+ new jodit_core_ui__WEBPACK_IMPORTED_MODULE_0__/* .UISelect */ .Cj(jodit, {
2291
+ label: 'Map type',
2292
+ value: state.type,
2293
+ name: 'mapType',
2294
+ options: [
2295
+ { value: 'hybrid', text: 'Hybrid' },
2296
+ { value: 'roadmap', text: 'Roadmap' },
2297
+ { value: 'satellite', text: 'Satellite' },
2298
+ { value: 'terrain', text: 'Terrain' }
2299
+ ],
2300
+ onChange: function (value) {
2301
+ state.type = value;
2302
+ }
2303
+ }),
2304
+ new jodit_core_ui__WEBPACK_IMPORTED_MODULE_0__/* .UISelect */ .Cj(jodit, {
2305
+ label: 'Layer',
2306
+ value: (_c = state.layer) !== null && _c !== void 0 ? _c : 'default',
2307
+ name: 'layer',
2308
+ options: [
2309
+ { value: 'default', text: 'Default' },
2310
+ { value: 'traffic', text: 'Traffic' },
2311
+ { value: 'transit', text: 'Transit' },
2312
+ { value: 'bicycling', text: 'Bicycling' }
2313
+ ],
2314
+ onChange: function (value) {
2315
+ state.layer = value;
2316
+ }
2317
+ })
2318
+ ]);
2319
+ return _this;
2320
+ }
2321
+ UIMapsPropsForm.prototype.className = function () {
2322
+ return 'UIMapsPropsForm';
2323
+ };
2324
+ UIMapsPropsForm.prototype.onChangeSize = function () {
2325
+ var _a;
2326
+ var width = (_a = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.refs)(this), _a.width), height = _a.height;
2327
+ this.state.size = [
2328
+ parseInt(width === null || width === void 0 ? void 0 : width.value, 10) || 0,
2329
+ parseInt(height === null || height === void 0 ? void 0 : height.value, 10) || 0
2330
+ ];
2331
+ };
2332
+ UIMapsPropsForm.prototype.onExternalChangeSize = function () {
2333
+ var _a, _b;
2334
+ var width = (_a = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.refs)(this), _a.width), height = _a.height;
2335
+ var w = (_b = (0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__read */ .CR)(this.state.size, 2), _b[0]), h = _b[1];
2336
+ if (w.toString() !== width.value) {
2337
+ width.value = w.toString();
2338
+ }
2339
+ if (h.toString() !== height.value) {
2340
+ height.value = h.toString();
2341
+ }
2342
+ };
2343
+ UIMapsPropsForm.prototype.onChangeCenter = function () {
2344
+ var _a;
2345
+ var lat = (_a = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.refs)(this), _a.lat), lng = _a.lng;
2346
+ this.state.center = [
2347
+ parseFloat(lat === null || lat === void 0 ? void 0 : lat.value) || 0,
2348
+ parseFloat(lng === null || lng === void 0 ? void 0 : lng.value) || 0
2349
+ ];
2350
+ };
2351
+ UIMapsPropsForm.prototype.onExternalChangeCenter = function () {
2352
+ var _a, _b;
2353
+ var lat = (_a = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.refs)(this), _a.lat), lng = _a.lng;
2354
+ var x = (_b = (0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__read */ .CR)(this.state.center, 2), _b[0]), y = _b[1];
2355
+ if (x.toString() !== lat.value) {
2356
+ lat.value = x.toString();
2357
+ }
2358
+ if (y.toString() !== lng.value) {
2359
+ lng.value = y.toString();
2360
+ }
2361
+ };
2362
+ UIMapsPropsForm.prototype.onExternalChangeType = function () {
2363
+ var mapType = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.refs)(this).mapType;
2364
+ if (this.state.type !== mapType.value) {
2365
+ mapType.value = this.state.type;
2366
+ }
2367
+ };
2368
+ UIMapsPropsForm.prototype.onExternalChangeLayer = function () {
2369
+ var layer = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.refs)(this).layer;
2370
+ if (this.state.layer !== layer.value) {
2371
+ layer.value = this.state.layer;
2372
+ }
2373
+ };
2374
+ (0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__decorate */ .gn)([
2375
+ jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.autobind
2376
+ ], UIMapsPropsForm.prototype, "onChangeSize", null);
2377
+ (0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__decorate */ .gn)([
2378
+ (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.watch)('state.size')
2379
+ ], UIMapsPropsForm.prototype, "onExternalChangeSize", null);
2380
+ (0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__decorate */ .gn)([
2381
+ jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.autobind
2382
+ ], UIMapsPropsForm.prototype, "onChangeCenter", null);
2383
+ (0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__decorate */ .gn)([
2384
+ (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.watch)(['state.center'])
2385
+ ], UIMapsPropsForm.prototype, "onExternalChangeCenter", null);
2386
+ (0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__decorate */ .gn)([
2387
+ (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.watch)(['state.type'])
2388
+ ], UIMapsPropsForm.prototype, "onExternalChangeType", null);
2389
+ (0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__decorate */ .gn)([
2390
+ (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.watch)(['state.layer'])
2391
+ ], UIMapsPropsForm.prototype, "onExternalChangeLayer", null);
2392
+ UIMapsPropsForm = (0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__decorate */ .gn)([
2393
+ jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.component
2394
+ ], UIMapsPropsForm);
2395
+ return UIMapsPropsForm;
2396
+ }(jodit_core_ui__WEBPACK_IMPORTED_MODULE_0__/* .UIForm */ .x4));
2397
+
2398
+
2399
+ /***/ }),
2400
+
2401
+ /***/ 15191:
2402
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
2403
+
2404
+ "use strict";
2405
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2406
+ /* harmony export */ "d": function() { return /* binding */ UIWysiwyg; }
2407
+ /* harmony export */ });
2408
+ /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(97582);
2409
+ /* harmony import */ var ___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15120);
2410
+ /* harmony import */ var jodit_core_ui__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(75004);
2411
+ /* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(50526);
2412
+ /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(95582);
2413
+ /*!
2414
+ * Jodit Editor PRO (https://xdsoft.net/jodit/)
2415
+ * See LICENSE.md in the project root for license information.
2416
+ * Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
2417
+ */
2418
+
2419
+
2420
+
2421
+
2422
+
2423
+
2424
+ var UIWysiwyg = /** @class */ (function (_super) {
2425
+ (0,tslib__WEBPACK_IMPORTED_MODULE_4__/* .__extends */ .ZT)(UIWysiwyg, _super);
2426
+ function UIWysiwyg(jodit, options, value, onChange) {
2427
+ var _this = _super.call(this, jodit) || this;
2428
+ var wysiwyg = _this.getElm('editor');
2429
+ void 0;
2430
+ var editor = ___WEBPACK_IMPORTED_MODULE_0__.Jodit.make(wysiwyg, (0,tslib__WEBPACK_IMPORTED_MODULE_4__/* .__assign */ .pi)({ buttons: ['bold', 'italic', 'image'], height: 100, minHeight: 100, allowResizeY: false, allowResizeX: false, disablePlugins: [
2431
+ 'mobile',
2432
+ 'backup',
2433
+ 'highlight-signature',
2434
+ 'tune-block',
2435
+ 'show-blocks'
2436
+ ], toolbarButtonSize: 'small', language: jodit.o.language, direction: jodit.o.direction, theme: jodit.o.theme, statusbar: false }, options));
2437
+ editor.value = value;
2438
+ editor.e.on('change', function () { return onChange(editor.value); });
2439
+ return _this;
2440
+ }
2441
+ UIWysiwyg.prototype.className = function () {
2442
+ return 'UIWysiwyg';
2443
+ };
2444
+ UIWysiwyg.prototype.render = function () {
2445
+ return "<div>\n\t\t\t<div class='&__label'>~Info~</div>\n\t\t\t<div class='&__editor'></div>\n\t\t</div>";
2446
+ };
2447
+ UIWysiwyg = (0,tslib__WEBPACK_IMPORTED_MODULE_4__/* .__decorate */ .gn)([
2448
+ jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.component
2449
+ ], UIWysiwyg);
2450
+ return UIWysiwyg;
2451
+ }(jodit_core_ui__WEBPACK_IMPORTED_MODULE_1__/* .UIElement */ .u1));
2452
+
2453
+
2454
+ /***/ })
2455
+
2456
+ },
2457
+ /******/ function(__webpack_require__) { // webpackRuntimeModules
2458
+ /******/ var __webpack_exec__ = function(moduleId) { return __webpack_require__(__webpack_require__.s = moduleId); }
2459
+ /******/ var __webpack_exports__ = (__webpack_exec__(177));
2460
+ /******/ return __webpack_exports__;
2461
+ /******/ }
2462
+ ]);
2463
+ });