jodit-pro 2.0.0-beta.12 → 2.0.0-beta.21
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.
- package/es2015/jodit.css +19 -1
- package/es2015/jodit.fat.min.css +1 -1
- package/es2015/jodit.fat.min.js +2 -2
- package/es2015/jodit.js +2121 -105
- package/es2015/jodit.min.css +1 -1
- package/es2015/jodit.min.js +2 -2
- package/es2015/plugins/autocomplete/autocomplete.js +2 -448
- package/es2015/plugins/autocomplete/autocomplete.min.js +2 -2
- package/es2015/plugins/backup/backup.css +1 -1
- package/es2015/plugins/backup/backup.js +24 -19
- package/es2015/plugins/backup/backup.min.js +2 -2
- package/es2015/plugins/button-generator/button-generator.css +1 -1
- package/es2015/plugins/button-generator/button-generator.js +55 -46
- package/es2015/plugins/button-generator/button-generator.min.js +2 -2
- package/es2015/plugins/change-case/change-case.js +10 -7
- package/es2015/plugins/change-case/change-case.min.js +2 -2
- package/es2015/plugins/color-picker/color-picker.css +1 -1
- package/es2015/plugins/color-picker/color-picker.js +10 -8
- package/es2015/plugins/color-picker/color-picker.min.js +2 -2
- package/es2015/plugins/emoji/emoji.css +1 -1
- package/es2015/plugins/emoji/emoji.js +20 -15
- package/es2015/plugins/emoji/emoji.min.js +2 -2
- package/es2015/plugins/export-docs/export-docs.js +9 -6
- package/es2015/plugins/export-docs/export-docs.min.js +2 -2
- package/es2015/plugins/finder/finder.css +6 -6
- package/es2015/plugins/finder/finder.js +215 -199
- package/es2015/plugins/finder/finder.min.css +1 -1
- package/es2015/plugins/finder/finder.min.js +2 -2
- package/es2015/plugins/google-maps/google-maps.css +1 -1
- package/es2015/plugins/google-maps/google-maps.js +149 -116
- package/es2015/plugins/google-maps/google-maps.min.js +2 -2
- package/es2015/plugins/google-search/google-search.js +7 -4
- package/es2015/plugins/google-search/google-search.min.js +2 -2
- package/es2015/plugins/highlight-signature/highlight-signature.js +9 -9
- package/es2015/plugins/highlight-signature/highlight-signature.min.js +2 -2
- package/es2015/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.js +17 -14
- package/es2015/plugins/iframe-editor/iframe-editor.min.js +2 -2
- package/es2015/plugins/keyboard/keyboard.css +1 -1
- package/es2015/plugins/keyboard/keyboard.js +36 -19
- package/es2015/plugins/keyboard/keyboard.min.js +2 -2
- package/es2015/plugins/mobile-view/mobile-view.js +13 -10
- package/es2015/plugins/mobile-view/mobile-view.min.js +2 -2
- package/es2015/plugins/page-break/page-break.js +9 -6
- package/es2015/plugins/page-break/page-break.min.js +2 -2
- package/es2015/plugins/paste-code/paste-code.css +1 -1
- package/es2015/plugins/paste-code/paste-code.js +9 -6
- package/es2015/plugins/paste-code/paste-code.min.js +2 -2
- package/es2015/plugins/paste-from-word/paste-from-word.js +2 -1516
- package/es2015/plugins/paste-from-word/paste-from-word.min.js +2 -2
- package/es2015/plugins/show-blocks/show-blocks.js +15 -10
- package/es2015/plugins/show-blocks/show-blocks.min.js +2 -2
- package/es2015/plugins/todo-list/todo-list.css +1 -1
- package/es2015/plugins/todo-list/todo-list.js +7 -4
- package/es2015/plugins/todo-list/todo-list.min.js +2 -2
- package/es2015/plugins/translate/translate.css +1 -1
- package/es2015/plugins/translate/translate.js +16 -10
- package/es2015/plugins/translate/translate.min.js +2 -2
- package/es2015/plugins/tune-block/tune-block.css +1 -1
- package/es2015/plugins/tune-block/tune-block.js +3 -3
- package/es2015/plugins/tune-block/tune-block.min.js +2 -2
- package/es2018/jodit.css +19 -1
- package/es2018/jodit.fat.min.css +1 -1
- package/es2018/jodit.fat.min.js +2 -2
- package/es2018/jodit.js +2119 -105
- package/es2018/jodit.min.css +1 -1
- package/es2018/jodit.min.js +2 -2
- package/es2018/plugins/autocomplete/autocomplete.js +2 -446
- package/es2018/plugins/autocomplete/autocomplete.min.js +2 -2
- package/es2018/plugins/backup/backup.css +1 -1
- package/es2018/plugins/backup/backup.js +24 -19
- package/es2018/plugins/backup/backup.min.js +2 -2
- package/es2018/plugins/button-generator/button-generator.css +1 -1
- package/es2018/plugins/button-generator/button-generator.js +55 -46
- package/es2018/plugins/button-generator/button-generator.min.js +2 -2
- package/es2018/plugins/change-case/change-case.js +10 -7
- package/es2018/plugins/change-case/change-case.min.js +2 -2
- package/es2018/plugins/color-picker/color-picker.css +1 -1
- package/es2018/plugins/color-picker/color-picker.js +10 -8
- package/es2018/plugins/color-picker/color-picker.min.js +2 -2
- package/es2018/plugins/emoji/emoji.css +1 -1
- package/es2018/plugins/emoji/emoji.js +20 -15
- package/es2018/plugins/emoji/emoji.min.js +2 -2
- package/es2018/plugins/export-docs/export-docs.js +9 -6
- package/es2018/plugins/export-docs/export-docs.min.js +2 -2
- package/es2018/plugins/finder/finder.css +6 -6
- package/es2018/plugins/finder/finder.js +214 -198
- package/es2018/plugins/finder/finder.min.css +1 -1
- package/es2018/plugins/finder/finder.min.js +2 -2
- package/es2018/plugins/google-maps/google-maps.css +1 -1
- package/es2018/plugins/google-maps/google-maps.js +131 -98
- package/es2018/plugins/google-maps/google-maps.min.js +2 -2
- package/es2018/plugins/google-search/google-search.js +7 -4
- package/es2018/plugins/google-search/google-search.min.js +2 -2
- package/es2018/plugins/highlight-signature/highlight-signature.js +9 -9
- package/es2018/plugins/highlight-signature/highlight-signature.min.js +2 -2
- package/es2018/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2018/plugins/iframe-editor/iframe-editor.js +17 -14
- package/es2018/plugins/iframe-editor/iframe-editor.min.js +2 -2
- package/es2018/plugins/keyboard/keyboard.css +1 -1
- package/es2018/plugins/keyboard/keyboard.js +36 -19
- package/es2018/plugins/keyboard/keyboard.min.js +2 -2
- package/es2018/plugins/mobile-view/mobile-view.js +13 -10
- package/es2018/plugins/mobile-view/mobile-view.min.js +2 -2
- package/es2018/plugins/page-break/page-break.js +9 -6
- package/es2018/plugins/page-break/page-break.min.js +2 -2
- package/es2018/plugins/paste-code/paste-code.css +1 -1
- package/es2018/plugins/paste-code/paste-code.js +9 -6
- package/es2018/plugins/paste-code/paste-code.min.js +2 -2
- package/es2018/plugins/paste-from-word/paste-from-word.js +2 -1516
- package/es2018/plugins/paste-from-word/paste-from-word.min.js +2 -2
- package/es2018/plugins/show-blocks/show-blocks.js +15 -10
- package/es2018/plugins/show-blocks/show-blocks.min.js +2 -2
- package/es2018/plugins/todo-list/todo-list.css +1 -1
- package/es2018/plugins/todo-list/todo-list.js +7 -4
- package/es2018/plugins/todo-list/todo-list.min.js +2 -2
- package/es2018/plugins/translate/translate.css +1 -1
- package/es2018/plugins/translate/translate.js +16 -10
- package/es2018/plugins/translate/translate.min.js +2 -2
- package/es2018/plugins/tune-block/tune-block.css +1 -1
- package/es2018/plugins/tune-block/tune-block.js +3 -3
- package/es2018/plugins/tune-block/tune-block.min.js +2 -2
- package/es2021/jodit.css +19 -1
- package/es2021/jodit.fat.min.css +1 -1
- package/es2021/jodit.fat.min.js +2 -2
- package/es2021/jodit.js +2098 -104
- package/es2021/jodit.min.css +1 -1
- package/es2021/jodit.min.js +2 -2
- package/es2021/plugins/autocomplete/autocomplete.js +2 -438
- package/es2021/plugins/autocomplete/autocomplete.min.js +2 -2
- package/es2021/plugins/backup/backup.css +1 -1
- package/es2021/plugins/backup/backup.js +24 -19
- package/es2021/plugins/backup/backup.min.js +2 -2
- package/es2021/plugins/button-generator/button-generator.css +1 -1
- package/es2021/plugins/button-generator/button-generator.js +55 -46
- package/es2021/plugins/button-generator/button-generator.min.js +2 -2
- package/es2021/plugins/change-case/change-case.js +10 -7
- package/es2021/plugins/change-case/change-case.min.js +2 -2
- package/es2021/plugins/color-picker/color-picker.css +1 -1
- package/es2021/plugins/color-picker/color-picker.js +10 -8
- package/es2021/plugins/color-picker/color-picker.min.js +2 -2
- package/es2021/plugins/emoji/emoji.css +1 -1
- package/es2021/plugins/emoji/emoji.js +20 -15
- package/es2021/plugins/emoji/emoji.min.js +2 -2
- package/es2021/plugins/export-docs/export-docs.js +9 -6
- package/es2021/plugins/export-docs/export-docs.min.js +2 -2
- package/es2021/plugins/finder/finder.css +6 -6
- package/es2021/plugins/finder/finder.js +214 -198
- package/es2021/plugins/finder/finder.min.css +1 -1
- package/es2021/plugins/finder/finder.min.js +2 -2
- package/es2021/plugins/google-maps/google-maps.css +1 -1
- package/es2021/plugins/google-maps/google-maps.js +131 -98
- package/es2021/plugins/google-maps/google-maps.min.js +2 -2
- package/es2021/plugins/google-search/google-search.js +7 -4
- package/es2021/plugins/google-search/google-search.min.js +2 -2
- package/es2021/plugins/highlight-signature/highlight-signature.js +9 -9
- package/es2021/plugins/highlight-signature/highlight-signature.min.js +2 -2
- package/es2021/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.js +17 -14
- package/es2021/plugins/iframe-editor/iframe-editor.min.js +2 -2
- package/es2021/plugins/keyboard/keyboard.css +1 -1
- package/es2021/plugins/keyboard/keyboard.js +36 -19
- package/es2021/plugins/keyboard/keyboard.min.js +2 -2
- package/es2021/plugins/mobile-view/mobile-view.js +13 -10
- package/es2021/plugins/mobile-view/mobile-view.min.js +2 -2
- package/es2021/plugins/page-break/page-break.js +9 -6
- package/es2021/plugins/page-break/page-break.min.js +2 -2
- package/es2021/plugins/paste-code/paste-code.css +1 -1
- package/es2021/plugins/paste-code/paste-code.js +9 -6
- package/es2021/plugins/paste-code/paste-code.min.js +2 -2
- package/es2021/plugins/paste-from-word/paste-from-word.js +2 -1503
- package/es2021/plugins/paste-from-word/paste-from-word.min.js +2 -2
- package/es2021/plugins/show-blocks/show-blocks.js +15 -10
- package/es2021/plugins/show-blocks/show-blocks.min.js +2 -2
- package/es2021/plugins/todo-list/todo-list.css +1 -1
- package/es2021/plugins/todo-list/todo-list.js +7 -4
- package/es2021/plugins/todo-list/todo-list.min.js +2 -2
- package/es2021/plugins/translate/translate.css +1 -1
- package/es2021/plugins/translate/translate.js +16 -10
- package/es2021/plugins/translate/translate.min.js +2 -2
- package/es2021/plugins/tune-block/tune-block.css +1 -1
- package/es2021/plugins/tune-block/tune-block.js +3 -3
- package/es2021/plugins/tune-block/tune-block.min.js +2 -2
- package/es2021.en/jodit.css +19 -1
- package/es2021.en/jodit.fat.min.css +1 -1
- package/es2021.en/jodit.fat.min.js +2 -2
- package/es2021.en/jodit.js +2098 -104
- package/es2021.en/jodit.min.css +1 -1
- package/es2021.en/jodit.min.js +2 -2
- package/es2021.en/plugins/autocomplete/autocomplete.js +2 -438
- package/es2021.en/plugins/autocomplete/autocomplete.min.js +2 -2
- package/es2021.en/plugins/backup/backup.css +1 -1
- package/es2021.en/plugins/backup/backup.js +24 -19
- package/es2021.en/plugins/backup/backup.min.js +2 -2
- package/es2021.en/plugins/button-generator/button-generator.css +1 -1
- package/es2021.en/plugins/button-generator/button-generator.js +55 -46
- package/es2021.en/plugins/button-generator/button-generator.min.js +2 -2
- package/es2021.en/plugins/change-case/change-case.js +10 -7
- package/es2021.en/plugins/change-case/change-case.min.js +2 -2
- package/es2021.en/plugins/color-picker/color-picker.css +1 -1
- package/es2021.en/plugins/color-picker/color-picker.js +10 -8
- package/es2021.en/plugins/color-picker/color-picker.min.js +2 -2
- package/es2021.en/plugins/emoji/emoji.css +1 -1
- package/es2021.en/plugins/emoji/emoji.js +20 -15
- package/es2021.en/plugins/emoji/emoji.min.js +2 -2
- package/es2021.en/plugins/export-docs/export-docs.js +9 -6
- package/es2021.en/plugins/export-docs/export-docs.min.js +2 -2
- package/es2021.en/plugins/finder/finder.css +6 -6
- package/es2021.en/plugins/finder/finder.js +214 -198
- package/es2021.en/plugins/finder/finder.min.css +1 -1
- package/es2021.en/plugins/finder/finder.min.js +2 -2
- package/es2021.en/plugins/google-maps/google-maps.css +1 -1
- package/es2021.en/plugins/google-maps/google-maps.js +131 -98
- package/es2021.en/plugins/google-maps/google-maps.min.js +2 -2
- package/es2021.en/plugins/google-search/google-search.js +7 -4
- package/es2021.en/plugins/google-search/google-search.min.js +2 -2
- package/es2021.en/plugins/highlight-signature/highlight-signature.js +9 -9
- package/es2021.en/plugins/highlight-signature/highlight-signature.min.js +2 -2
- package/es2021.en/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.js +17 -14
- package/es2021.en/plugins/iframe-editor/iframe-editor.min.js +2 -2
- package/es2021.en/plugins/keyboard/keyboard.css +1 -1
- package/es2021.en/plugins/keyboard/keyboard.js +36 -19
- package/es2021.en/plugins/keyboard/keyboard.min.js +2 -2
- package/es2021.en/plugins/mobile-view/mobile-view.js +13 -10
- package/es2021.en/plugins/mobile-view/mobile-view.min.js +2 -2
- package/es2021.en/plugins/page-break/page-break.js +9 -6
- package/es2021.en/plugins/page-break/page-break.min.js +2 -2
- package/es2021.en/plugins/paste-code/paste-code.css +1 -1
- package/es2021.en/plugins/paste-code/paste-code.js +9 -6
- package/es2021.en/plugins/paste-code/paste-code.min.js +2 -2
- package/es2021.en/plugins/paste-from-word/paste-from-word.js +2 -1503
- package/es2021.en/plugins/paste-from-word/paste-from-word.min.js +2 -2
- package/es2021.en/plugins/show-blocks/show-blocks.js +15 -10
- package/es2021.en/plugins/show-blocks/show-blocks.min.js +2 -2
- package/es2021.en/plugins/todo-list/todo-list.css +1 -1
- package/es2021.en/plugins/todo-list/todo-list.js +7 -4
- package/es2021.en/plugins/todo-list/todo-list.min.js +2 -2
- package/es2021.en/plugins/translate/translate.css +1 -1
- package/es2021.en/plugins/translate/translate.js +16 -10
- package/es2021.en/plugins/translate/translate.min.js +2 -2
- package/es2021.en/plugins/tune-block/tune-block.css +1 -1
- package/es2021.en/plugins/tune-block/tune-block.js +3 -3
- package/es2021.en/plugins/tune-block/tune-block.min.js +2 -2
- package/es5/jodit.css +30 -51
- package/es5/jodit.fat.min.css +1 -1
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +2320 -108
- package/es5/jodit.min.css +3 -3
- package/es5/jodit.min.js +2 -2
- package/es5/plugins/autocomplete/autocomplete.js +2 -511
- package/es5/plugins/autocomplete/autocomplete.min.js +2 -2
- package/es5/plugins/backup/backup.css +1 -1
- package/es5/plugins/backup/backup.js +26 -21
- package/es5/plugins/backup/backup.min.js +2 -2
- package/es5/plugins/button-generator/button-generator.css +1 -1
- package/es5/plugins/button-generator/button-generator.js +59 -50
- package/es5/plugins/button-generator/button-generator.min.js +2 -2
- package/es5/plugins/change-case/change-case.js +10 -7
- package/es5/plugins/change-case/change-case.min.js +2 -2
- package/es5/plugins/color-picker/color-picker.css +1 -1
- package/es5/plugins/color-picker/color-picker.js +11 -9
- package/es5/plugins/color-picker/color-picker.min.js +2 -2
- package/es5/plugins/emoji/emoji.css +1 -1
- package/es5/plugins/emoji/emoji.js +20 -15
- package/es5/plugins/emoji/emoji.min.js +2 -2
- package/es5/plugins/export-docs/export-docs.js +9 -6
- package/es5/plugins/export-docs/export-docs.min.js +2 -2
- package/es5/plugins/finder/finder.css +6 -6
- package/es5/plugins/finder/finder.js +238 -222
- package/es5/plugins/finder/finder.min.css +1 -1
- package/es5/plugins/finder/finder.min.js +2 -2
- package/es5/plugins/google-maps/google-maps.css +1 -1
- package/es5/plugins/google-maps/google-maps.js +164 -131
- package/es5/plugins/google-maps/google-maps.min.js +2 -2
- package/es5/plugins/google-search/google-search.js +9 -6
- package/es5/plugins/google-search/google-search.min.js +2 -2
- package/es5/plugins/highlight-signature/highlight-signature.js +9 -9
- package/es5/plugins/highlight-signature/highlight-signature.min.js +2 -2
- package/es5/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.js +18 -15
- package/es5/plugins/iframe-editor/iframe-editor.min.js +2 -2
- package/es5/plugins/keyboard/keyboard.css +1 -1
- package/es5/plugins/keyboard/keyboard.js +37 -20
- package/es5/plugins/keyboard/keyboard.min.js +2 -2
- package/es5/plugins/mobile-view/mobile-view.js +13 -10
- package/es5/plugins/mobile-view/mobile-view.min.js +2 -2
- package/es5/plugins/page-break/page-break.js +9 -6
- package/es5/plugins/page-break/page-break.min.js +2 -2
- package/es5/plugins/paste-code/paste-code.css +1 -1
- package/es5/plugins/paste-code/paste-code.js +9 -6
- package/es5/plugins/paste-code/paste-code.min.js +2 -2
- package/es5/plugins/paste-from-word/paste-from-word.js +2 -1645
- package/es5/plugins/paste-from-word/paste-from-word.min.js +2 -2
- package/es5/plugins/show-blocks/show-blocks.js +16 -11
- package/es5/plugins/show-blocks/show-blocks.min.js +2 -2
- package/es5/plugins/todo-list/todo-list.css +1 -1
- package/es5/plugins/todo-list/todo-list.js +7 -4
- package/es5/plugins/todo-list/todo-list.min.js +2 -2
- package/es5/plugins/translate/translate.css +1 -1
- package/es5/plugins/translate/translate.js +17 -11
- package/es5/plugins/translate/translate.min.js +2 -2
- package/es5/plugins/tune-block/tune-block.css +1 -1
- package/es5/plugins/tune-block/tune-block.js +3 -3
- package/es5/plugins/tune-block/tune-block.min.js +2 -2
- package/esm/config.d.ts +11 -0
- package/esm/config.js +6 -0
- package/esm/core/ui/form/range/range.d.ts +23 -0
- package/esm/core/ui/form/range/range.js +6 -0
- package/esm/index.d.ts +7 -0
- package/esm/index.js +6 -0
- package/esm/jodit-pro.d.ts +14 -0
- package/esm/jodit-pro.js +6 -0
- package/esm/plugins/autocomplete/autocomplete.d.ts +40 -0
- package/esm/plugins/autocomplete/autocomplete.js +6 -0
- package/esm/plugins/autocomplete/helpers.d.ts +25 -0
- package/esm/plugins/autocomplete/helpers.js +6 -0
- package/esm/plugins/autocomplete/interface.d.ts +19 -0
- package/esm/plugins/autocomplete/interface.js +6 -0
- package/esm/plugins/autocomplete/ui/autocomplete.d.ts +20 -0
- package/esm/plugins/autocomplete/ui/autocomplete.js +6 -0
- package/esm/plugins/autocomplete/ui/item.d.ts +14 -0
- package/esm/plugins/autocomplete/ui/item.js +6 -0
- package/esm/plugins/backup/assets/restore.svg.js +1 -0
- package/esm/plugins/backup/backup.d.ts +29 -0
- package/esm/plugins/backup/backup.js +6 -0
- package/esm/plugins/backup/config.d.ts +18 -0
- package/esm/plugins/backup/config.js +6 -0
- package/esm/plugins/backup/interface.d.ts +14 -0
- package/esm/plugins/backup/interface.js +6 -0
- package/esm/plugins/backup/langs/index.d.ts +6 -0
- package/esm/plugins/backup/langs/index.js +6 -0
- package/esm/plugins/backup/modules/store.d.ts +15 -0
- package/esm/plugins/backup/modules/store.js +6 -0
- package/esm/plugins/backup/ui/box.d.ts +29 -0
- package/esm/plugins/backup/ui/box.js +6 -0
- package/esm/plugins/backup/ui/item.d.ts +17 -0
- package/esm/plugins/backup/ui/item.js +6 -0
- package/esm/plugins/backup/ui/list.d.ts +24 -0
- package/esm/plugins/backup/ui/list.js +6 -0
- package/esm/plugins/button-generator/assets/check.svg.js +1 -0
- package/esm/plugins/button-generator/assets/styles.json +1162 -0
- package/esm/plugins/button-generator/assets/styles.json.js +1 -0
- package/esm/plugins/button-generator/button-generator.d.ts +25 -0
- package/esm/plugins/button-generator/button-generator.js +1 -0
- package/esm/plugins/button-generator/config.d.ts +6 -0
- package/esm/plugins/button-generator/config.js +6 -0
- package/esm/plugins/button-generator/icon.svg.js +1 -0
- package/esm/plugins/button-generator/ui/button/button.d.ts +21 -0
- package/esm/plugins/button-generator/ui/button/button.js +7 -0
- package/esm/plugins/button-generator/ui/form/form.d.ts +20 -0
- package/esm/plugins/button-generator/ui/form/form.js +6 -0
- package/esm/plugins/button-generator/ui/generator/button-generator.d.ts +22 -0
- package/esm/plugins/button-generator/ui/generator/button-generator.js +6 -0
- package/esm/plugins/button-generator/ui/preview/preview.d.ts +22 -0
- package/esm/plugins/button-generator/ui/preview/preview.js +6 -0
- package/esm/plugins/change-case/change-case.d.ts +22 -0
- package/esm/plugins/change-case/change-case.js +6 -0
- package/esm/plugins/change-case/config.d.ts +6 -0
- package/esm/plugins/change-case/config.js +6 -0
- package/esm/plugins/change-case/icon.svg.js +1 -0
- package/esm/plugins/color-picker/color-picker.d.ts +18 -0
- package/esm/plugins/color-picker/color-picker.js +6 -0
- package/esm/plugins/color-picker/ui/input/color-input.d.ts +19 -0
- package/esm/plugins/color-picker/ui/input/color-input.js +6 -0
- package/esm/plugins/emoji/config.d.ts +10 -0
- package/esm/plugins/emoji/config.js +1 -0
- package/esm/plugins/emoji/emoji.d.ts +22 -0
- package/esm/plugins/emoji/emoji.js +6 -0
- package/esm/plugins/emoji/emoji.json +5667 -0
- package/esm/plugins/emoji/emoji.json.js +1 -0
- package/esm/plugins/emoji/emoji.svg.js +1 -0
- package/esm/plugins/emoji/interface.d.ts +24 -0
- package/esm/plugins/emoji/interface.js +6 -0
- package/esm/plugins/emoji/ui/emoji.d.ts +54 -0
- package/esm/plugins/emoji/ui/emoji.js +6 -0
- package/esm/plugins/export-docs/assets/export.svg.js +1 -0
- package/esm/plugins/export-docs/config.d.ts +21 -0
- package/esm/plugins/export-docs/config.js +6 -0
- package/esm/plugins/export-docs/export-docs.d.ts +18 -0
- package/esm/plugins/export-docs/export-docs.js +6 -0
- package/esm/plugins/finder/browser.d.ts +70 -0
- package/esm/plugins/finder/browser.js +6 -0
- package/esm/plugins/finder/config.d.ts +6 -0
- package/esm/plugins/finder/config.js +6 -0
- package/esm/plugins/finder/finder.d.ts +19 -0
- package/esm/plugins/finder/finder.js +6 -0
- package/esm/plugins/finder/helpers/context-menu.d.ts +19 -0
- package/esm/plugins/finder/helpers/context-menu.js +6 -0
- package/esm/plugins/finder/helpers/helpers.d.ts +6 -0
- package/esm/plugins/finder/helpers/helpers.js +6 -0
- package/esm/plugins/finder/helpers/history-manager.d.ts +24 -0
- package/esm/plugins/finder/helpers/history-manager.js +6 -0
- package/esm/plugins/finder/helpers/loading-manager.d.ts +25 -0
- package/esm/plugins/finder/helpers/loading-manager.js +6 -0
- package/esm/plugins/finder/helpers/persistent-store.d.ts +32 -0
- package/esm/plugins/finder/helpers/persistent-store.js +6 -0
- package/esm/plugins/finder/helpers/state-manager.d.ts +21 -0
- package/esm/plugins/finder/helpers/state-manager.js +6 -0
- package/esm/plugins/finder/langs/index.d.ts +7 -0
- package/esm/plugins/finder/langs/ru.d.ts +22 -0
- package/esm/plugins/finder/ui/assets/icons/heart.svg.js +1 -0
- package/esm/plugins/finder/ui/assets/icons/home.svg.js +1 -0
- package/esm/plugins/finder/ui/assets/icons/index.d.ts +1 -0
- package/esm/plugins/finder/ui/assets/icons/index.js +6 -0
- package/esm/plugins/finder/ui/assets/icons/new-folder.svg.js +1 -0
- package/esm/plugins/finder/ui/folder/folder.d.ts +18 -0
- package/esm/plugins/finder/ui/folder/folder.js +6 -0
- package/esm/plugins/finder/ui/header/header.d.ts +21 -0
- package/esm/plugins/finder/ui/header/header.js +6 -0
- package/esm/plugins/finder/ui/item/item.d.ts +24 -0
- package/esm/plugins/finder/ui/item/item.js +6 -0
- package/esm/plugins/finder/ui/lightboox/lightbox.d.ts +27 -0
- package/esm/plugins/finder/ui/lightboox/lightbox.js +6 -0
- package/esm/plugins/finder/ui/panel/panel.d.ts +60 -0
- package/esm/plugins/finder/ui/panel/panel.js +6 -0
- package/esm/plugins/finder/ui/preview/preview.d.ts +25 -0
- package/esm/plugins/finder/ui/preview/preview.js +6 -0
- package/esm/plugins/finder/ui/progress/progress.d.ts +19 -0
- package/esm/plugins/finder/ui/progress/progress.js +6 -0
- package/esm/plugins/finder/ui/settings/settings.d.ts +25 -0
- package/esm/plugins/finder/ui/settings/settings.js +6 -0
- package/esm/plugins/finder/ui/sidebar/sidebar.d.ts +27 -0
- package/esm/plugins/finder/ui/sidebar/sidebar.js +6 -0
- package/esm/plugins/finder/ui/source/source.d.ts +19 -0
- package/esm/plugins/finder/ui/source/source.js +6 -0
- package/esm/plugins/finder/ui/sources/sources.d.ts +15 -0
- package/esm/plugins/finder/ui/sources/sources.js +6 -0
- package/esm/plugins/finder/ui/statusbar/statusbar.d.ts +14 -0
- package/esm/plugins/finder/ui/statusbar/statusbar.js +6 -0
- package/esm/plugins/finder/ui/tree/tree.d.ts +16 -0
- package/esm/plugins/finder/ui/tree/tree.js +6 -0
- package/esm/plugins/finder/ui/virtual-scroll/virtual-scroll.d.ts +32 -0
- package/esm/plugins/finder/ui/virtual-scroll/virtual-scroll.js +6 -0
- package/esm/plugins/google-maps/assets/circle.svg.js +1 -0
- package/esm/plugins/google-maps/assets/hand.svg.js +1 -0
- package/esm/plugins/google-maps/assets/icon.svg.js +1 -0
- package/esm/plugins/google-maps/assets/index.d.ts +6 -0
- package/esm/plugins/google-maps/assets/index.js +6 -0
- package/esm/plugins/google-maps/assets/marker.svg.js +1 -0
- package/esm/plugins/google-maps/assets/polygon.svg.js +1 -0
- package/esm/plugins/google-maps/assets/polyline.svg.js +1 -0
- package/esm/plugins/google-maps/assets/text.svg.js +1 -0
- package/esm/plugins/google-maps/config.d.ts +45 -0
- package/esm/plugins/google-maps/config.js +6 -0
- package/esm/plugins/google-maps/google-maps.d.ts +29 -0
- package/esm/plugins/google-maps/google-maps.js +6 -0
- package/esm/plugins/google-maps/helpers/const.d.ts +7 -0
- package/esm/plugins/google-maps/helpers/const.js +6 -0
- package/esm/plugins/google-maps/helpers/generate-js-script.d.ts +8 -0
- package/esm/plugins/google-maps/helpers/generate-js-script.js +1 -0
- package/esm/plugins/google-maps/helpers/generate-static-elements.d.ts +7 -0
- package/esm/plugins/google-maps/helpers/generate-static-elements.js +6 -0
- package/esm/plugins/google-maps/helpers/helpers.d.ts +14 -0
- package/esm/plugins/google-maps/helpers/helpers.js +6 -0
- package/esm/plugins/google-maps/helpers/static-url.d.ts +7 -0
- package/esm/plugins/google-maps/helpers/static-url.js +6 -0
- package/esm/plugins/google-maps/ui/combo-box/combo-box.d.ts +12 -0
- package/esm/plugins/google-maps/ui/combo-box/combo-box.js +6 -0
- package/esm/plugins/google-maps/ui/editors/base.d.ts +15 -0
- package/esm/plugins/google-maps/ui/editors/base.js +6 -0
- package/esm/plugins/google-maps/ui/editors/index.d.ts +8 -0
- package/esm/plugins/google-maps/ui/editors/index.js +6 -0
- package/esm/plugins/google-maps/ui/editors/marker/marker.d.ts +10 -0
- package/esm/plugins/google-maps/ui/editors/marker/marker.js +6 -0
- package/esm/plugins/google-maps/ui/editors/polygon/polygon.d.ts +10 -0
- package/esm/plugins/google-maps/ui/editors/polygon/polygon.js +6 -0
- package/esm/plugins/google-maps/ui/editors/polyline/polyline.d.ts +10 -0
- package/esm/plugins/google-maps/ui/editors/polyline/polyline.js +6 -0
- package/esm/plugins/google-maps/ui/index.d.ts +10 -0
- package/esm/plugins/google-maps/ui/index.js +6 -0
- package/esm/plugins/google-maps/ui/map/map.d.ts +39 -0
- package/esm/plugins/google-maps/ui/map/map.js +6 -0
- package/esm/plugins/google-maps/ui/map/modules/add-new-in-state.d.ts +8 -0
- package/esm/plugins/google-maps/ui/map/modules/add-new-in-state.js +6 -0
- package/esm/plugins/google-maps/ui/map/modules/index.d.ts +10 -0
- package/esm/plugins/google-maps/ui/map/modules/index.js +6 -0
- package/esm/plugins/google-maps/ui/map/modules/init-or-update-element-from-state.d.ts +8 -0
- package/esm/plugins/google-maps/ui/map/modules/init-or-update-element-from-state.js +6 -0
- package/esm/plugins/google-maps/ui/map/modules/on-change-geometries.d.ts +8 -0
- package/esm/plugins/google-maps/ui/map/modules/on-change-geometries.js +6 -0
- package/esm/plugins/google-maps/ui/map/modules/open-props-dialog.d.ts +8 -0
- package/esm/plugins/google-maps/ui/map/modules/open-props-dialog.js +6 -0
- package/esm/plugins/google-maps/ui/map/modules/remove-element.d.ts +8 -0
- package/esm/plugins/google-maps/ui/map/modules/remove-element.js +6 -0
- package/esm/plugins/google-maps/ui/map/modules/update-state-and-gme.d.ts +8 -0
- package/esm/plugins/google-maps/ui/map/modules/update-state-and-gme.js +6 -0
- package/esm/plugins/google-maps/ui/maps-controls/maps-controls.d.ts +14 -0
- package/esm/plugins/google-maps/ui/maps-controls/maps-controls.js +6 -0
- package/esm/plugins/google-maps/ui/maps-props/maps-props.d.ts +19 -0
- package/esm/plugins/google-maps/ui/maps-props/maps-props.js +6 -0
- package/esm/plugins/google-maps/ui/wysiwyg/wysiwyg.d.ts +13 -0
- package/esm/plugins/google-maps/ui/wysiwyg/wysiwyg.js +6 -0
- package/esm/plugins/google-search/google-search.d.ts +17 -0
- package/esm/plugins/google-search/google-search.js +6 -0
- package/esm/plugins/google-search/icon.svg.js +1 -0
- package/esm/plugins/highlight-signature/highlight-signature.d.ts +54 -0
- package/esm/plugins/highlight-signature/highlight-signature.js +6 -0
- package/esm/plugins/iframe-editor/config.d.ts +6 -0
- package/esm/plugins/iframe-editor/config.js +6 -0
- package/esm/plugins/iframe-editor/icon.svg.js +1 -0
- package/esm/plugins/iframe-editor/iframe-editor.d.ts +22 -0
- package/esm/plugins/iframe-editor/iframe-editor.js +6 -0
- package/esm/plugins/iframe-editor/interface.d.ts +15 -0
- package/esm/plugins/iframe-editor/interface.js +6 -0
- package/esm/plugins/iframe-editor/ui/iframe-editor/iframe-editor.d.ts +14 -0
- package/esm/plugins/iframe-editor/ui/iframe-editor/iframe-editor.js +6 -0
- package/esm/plugins/index.d.ts +8 -0
- package/esm/plugins/index.js +6 -0
- package/esm/plugins/keyboard/config.d.ts +23 -0
- package/esm/plugins/keyboard/config.js +1 -0
- package/esm/plugins/keyboard/icon.svg.js +1 -0
- package/esm/plugins/keyboard/interface.d.ts +13 -0
- package/esm/plugins/keyboard/interface.js +6 -0
- package/esm/plugins/keyboard/keyboard.d.ts +27 -0
- package/esm/plugins/keyboard/keyboard.js +1 -0
- package/esm/plugins/keyboard/ui/assets/backspace.svg.js +1 -0
- package/esm/plugins/keyboard/ui/assets/caps.svg.js +1 -0
- package/esm/plugins/keyboard/ui/assets/dots.svg.js +1 -0
- package/esm/plugins/keyboard/ui/assets/shift.svg.js +1 -0
- package/esm/plugins/keyboard/ui/assets/tab.svg.js +1 -0
- package/esm/plugins/keyboard/ui/keyboard/keyboard.d.ts +32 -0
- package/esm/plugins/keyboard/ui/keyboard/keyboard.js +6 -0
- package/esm/plugins/license/helpers/helpers.d.ts +14 -0
- package/esm/plugins/license/helpers/helpers.js +7 -0
- package/esm/plugins/license/license.d.ts +16 -0
- package/esm/plugins/license/license.js +6 -0
- package/esm/plugins/mobile-view/config.d.ts +14 -0
- package/esm/plugins/mobile-view/config.js +6 -0
- package/esm/plugins/mobile-view/icon.svg.js +1 -0
- package/esm/plugins/mobile-view/mobile-view.d.ts +6 -0
- package/esm/plugins/mobile-view/mobile-view.js +6 -0
- package/esm/plugins/page-break/assets/page-break.svg.js +1 -0
- package/esm/plugins/page-break/config.d.ts +13 -0
- package/esm/plugins/page-break/config.js +6 -0
- package/esm/plugins/page-break/page-break.css.d.ts +2 -0
- package/esm/plugins/page-break/page-break.css.js +6 -0
- package/esm/plugins/page-break/page-break.d.ts +23 -0
- package/esm/plugins/page-break/page-break.js +6 -0
- package/esm/plugins/paste-code/config.d.ts +36 -0
- package/esm/plugins/paste-code/config.js +6 -0
- package/esm/plugins/paste-code/icon.svg.js +1 -0
- package/esm/plugins/paste-code/paste-code.d.ts +30 -0
- package/esm/plugins/paste-code/paste-code.js +6 -0
- package/esm/plugins/paste-from-word/cases/clean-styles.d.ts +7 -0
- package/esm/plugins/paste-from-word/cases/clean-styles.js +6 -0
- package/esm/plugins/paste-from-word/cases/clear-attributes.d.ts +7 -0
- package/esm/plugins/paste-from-word/cases/clear-attributes.js +6 -0
- package/esm/plugins/paste-from-word/cases/clear-class-name.d.ts +7 -0
- package/esm/plugins/paste-from-word/cases/clear-class-name.js +6 -0
- package/esm/plugins/paste-from-word/cases/convert-style-unit-to-pixels.d.ts +7 -0
- package/esm/plugins/paste-from-word/cases/convert-style-unit-to-pixels.js +6 -0
- package/esm/plugins/paste-from-word/cases/convert-to-list.d.ts +11 -0
- package/esm/plugins/paste-from-word/cases/convert-to-list.js +6 -0
- package/esm/plugins/paste-from-word/cases/index.d.ts +7 -0
- package/esm/plugins/paste-from-word/cases/index.js +6 -0
- package/esm/plugins/paste-from-word/cases/mark-page-break.d.ts +7 -0
- package/esm/plugins/paste-from-word/cases/mark-page-break.js +6 -0
- package/esm/plugins/paste-from-word/cases/normalize-image-props.d.ts +7 -0
- package/esm/plugins/paste-from-word/cases/normalize-image-props.js +6 -0
- package/esm/plugins/paste-from-word/cases/process-image.d.ts +7 -0
- package/esm/plugins/paste-from-word/cases/process-image.js +6 -0
- package/esm/plugins/paste-from-word/cases/process-links.d.ts +7 -0
- package/esm/plugins/paste-from-word/cases/process-links.js +6 -0
- package/esm/plugins/paste-from-word/cases/remove-extra-tags.d.ts +7 -0
- package/esm/plugins/paste-from-word/cases/remove-extra-tags.js +6 -0
- package/esm/plugins/paste-from-word/cases/remove-inside-comment.d.ts +7 -0
- package/esm/plugins/paste-from-word/cases/remove-inside-comment.js +6 -0
- package/esm/plugins/paste-from-word/cases/replace-old-tags.d.ts +7 -0
- package/esm/plugins/paste-from-word/cases/replace-old-tags.js +6 -0
- package/esm/plugins/paste-from-word/cases/table.d.ts +7 -0
- package/esm/plugins/paste-from-word/cases/table.js +6 -0
- package/esm/plugins/paste-from-word/config.d.ts +24 -0
- package/esm/plugins/paste-from-word/config.js +6 -0
- package/esm/plugins/paste-from-word/constants.d.ts +20 -0
- package/esm/plugins/paste-from-word/constants.js +6 -0
- package/esm/plugins/paste-from-word/element/checkers.d.ts +14 -0
- package/esm/plugins/paste-from-word/element/checkers.js +6 -0
- package/esm/plugins/paste-from-word/element/element.d.ts +34 -0
- package/esm/plugins/paste-from-word/element/element.js +6 -0
- package/esm/plugins/paste-from-word/element/index.d.ts +8 -0
- package/esm/plugins/paste-from-word/element/index.js +6 -0
- package/esm/plugins/paste-from-word/element/render.d.ts +9 -0
- package/esm/plugins/paste-from-word/element/render.js +6 -0
- package/esm/plugins/paste-from-word/element/style.d.ts +20 -0
- package/esm/plugins/paste-from-word/element/style.js +6 -0
- package/esm/plugins/paste-from-word/helpers/apply-styles-pro.d.ts +7 -0
- package/esm/plugins/paste-from-word/helpers/apply-styles-pro.js +6 -0
- package/esm/plugins/paste-from-word/helpers/calc-list-levels.d.ts +7 -0
- package/esm/plugins/paste-from-word/helpers/calc-list-levels.js +6 -0
- package/esm/plugins/paste-from-word/helpers/helpers.d.ts +19 -0
- package/esm/plugins/paste-from-word/helpers/helpers.js +6 -0
- package/esm/plugins/paste-from-word/helpers/index.d.ts +9 -0
- package/esm/plugins/paste-from-word/helpers/index.js +6 -0
- package/esm/plugins/paste-from-word/helpers/transform-word-to-html.d.ts +8 -0
- package/esm/plugins/paste-from-word/helpers/transform-word-to-html.js +6 -0
- package/esm/plugins/paste-from-word/interface.d.ts +17 -0
- package/esm/plugins/paste-from-word/interface.js +6 -0
- package/esm/plugins/paste-from-word/paste-from-word.d.ts +14 -0
- package/esm/plugins/paste-from-word/paste-from-word.js +6 -0
- package/esm/plugins/show-blocks/config.d.ts +15 -0
- package/esm/plugins/show-blocks/config.js +6 -0
- package/esm/plugins/show-blocks/langs/ar.d.ts +4 -0
- package/esm/plugins/show-blocks/langs/cs_cz.d.ts +4 -0
- package/esm/plugins/show-blocks/langs/de.d.ts +4 -0
- package/esm/plugins/show-blocks/langs/es.d.ts +4 -0
- package/esm/plugins/show-blocks/langs/fa.d.ts +4 -0
- package/esm/plugins/show-blocks/langs/fr.d.ts +4 -0
- package/esm/plugins/show-blocks/langs/he.d.ts +4 -0
- package/esm/plugins/show-blocks/langs/hu.d.ts +4 -0
- package/esm/plugins/show-blocks/langs/id.d.ts +4 -0
- package/esm/plugins/show-blocks/langs/index.d.ts +25 -0
- package/esm/plugins/show-blocks/langs/index.js +6 -0
- package/esm/plugins/show-blocks/langs/it.d.ts +4 -0
- package/esm/plugins/show-blocks/langs/ja.d.ts +4 -0
- package/esm/plugins/show-blocks/langs/ko.d.ts +4 -0
- package/esm/plugins/show-blocks/langs/nl.d.ts +4 -0
- package/esm/plugins/show-blocks/langs/pl.d.ts +4 -0
- package/esm/plugins/show-blocks/langs/pt_br.d.ts +4 -0
- package/esm/plugins/show-blocks/langs/ru.d.ts +4 -0
- package/esm/plugins/show-blocks/langs/tr.d.ts +4 -0
- package/esm/plugins/show-blocks/langs/zh_cn.d.ts +4 -0
- package/esm/plugins/show-blocks/langs/zh_tw.d.ts +4 -0
- package/esm/plugins/show-blocks/show-blocks.d.ts +39 -0
- package/esm/plugins/show-blocks/show-blocks.js +6 -0
- package/esm/plugins/show-blocks/show-blocks.svg.js +1 -0
- package/esm/plugins/todo-list/assets/todo-list.svg.js +1 -0
- package/esm/plugins/todo-list/config.d.ts +15 -0
- package/esm/plugins/todo-list/config.js +6 -0
- package/esm/plugins/todo-list/todo-list.d.ts +41 -0
- package/esm/plugins/todo-list/todo-list.js +6 -0
- package/esm/plugins/translate/assets/swap.svg.js +1 -0
- package/esm/plugins/translate/assets/translate.svg.js +1 -0
- package/esm/plugins/translate/config.d.ts +20 -0
- package/esm/plugins/translate/config.js +6 -0
- package/esm/plugins/translate/interface.d.ts +50 -0
- package/esm/plugins/translate/interface.js +6 -0
- package/esm/plugins/translate/providers/google/google.d.ts +14 -0
- package/esm/plugins/translate/providers/google/google.js +6 -0
- package/esm/plugins/translate/providers/languages.d.ts +140 -0
- package/esm/plugins/translate/providers/languages.js +6 -0
- package/esm/plugins/translate/translate.d.ts +20 -0
- package/esm/plugins/translate/translate.js +6 -0
- package/esm/plugins/translate/ui/list/list.d.ts +34 -0
- package/esm/plugins/translate/ui/list/list.js +6 -0
- package/esm/plugins/translate/ui/settings/settings.d.ts +35 -0
- package/esm/plugins/translate/ui/settings/settings.js +6 -0
- package/esm/plugins/tune-block/config.d.ts +13 -0
- package/esm/plugins/tune-block/config.js +6 -0
- package/esm/plugins/tune-block/tune-block.d.ts +30 -0
- package/esm/plugins/tune-block/tune-block.js +6 -0
- package/esm/plugins/tune-block/ui/tuner/icon.svg.js +1 -0
- package/esm/plugins/tune-block/ui/tuner/tuner.d.ts +53 -0
- package/esm/plugins/tune-block/ui/tuner/tuner.js +6 -0
- package/esm/traits/resize/resize.d.ts +17 -0
- package/esm/traits/resize/resize.js +6 -0
- package/esm/traits/select-items/select-items.d.ts +16 -0
- package/esm/traits/select-items/select-items.js +6 -0
- package/esm/tsconfig.json +19 -0
- package/esm/types/view.d.ts +9 -0
- package/esm/typings.d.ts +5 -0
- package/package.json +3 -2
- package/types/config.d.ts +11 -0
- package/types/core/ui/form/range/range.d.ts +23 -0
- package/types/index.d.ts +7 -0
- package/types/jodit-pro.d.ts +14 -0
- package/types/plugins/autocomplete/autocomplete.d.ts +40 -0
- package/types/plugins/autocomplete/helpers.d.ts +25 -0
- package/types/plugins/autocomplete/interface.d.ts +19 -0
- package/types/plugins/autocomplete/ui/autocomplete.d.ts +20 -0
- package/types/plugins/autocomplete/ui/item.d.ts +14 -0
- package/types/plugins/backup/backup.d.ts +29 -0
- package/types/plugins/backup/config.d.ts +18 -0
- package/types/plugins/backup/interface.d.ts +14 -0
- package/types/plugins/backup/langs/index.d.ts +6 -0
- package/types/plugins/backup/modules/store.d.ts +15 -0
- package/types/plugins/backup/ui/box.d.ts +29 -0
- package/types/plugins/backup/ui/item.d.ts +17 -0
- package/types/plugins/backup/ui/list.d.ts +24 -0
- package/types/plugins/button-generator/button-generator.d.ts +25 -0
- package/types/plugins/button-generator/config.d.ts +6 -0
- package/types/plugins/button-generator/ui/button/button.d.ts +21 -0
- package/types/plugins/button-generator/ui/form/form.d.ts +20 -0
- package/types/plugins/button-generator/ui/generator/button-generator.d.ts +22 -0
- package/types/plugins/button-generator/ui/preview/preview.d.ts +22 -0
- package/types/plugins/change-case/change-case.d.ts +22 -0
- package/types/plugins/change-case/config.d.ts +6 -0
- package/types/plugins/color-picker/color-picker.d.ts +18 -0
- package/types/plugins/color-picker/ui/input/color-input.d.ts +19 -0
- package/types/plugins/emoji/config.d.ts +10 -0
- package/types/plugins/emoji/emoji.d.ts +22 -0
- package/types/plugins/emoji/interface.d.ts +24 -0
- package/types/plugins/emoji/ui/emoji.d.ts +54 -0
- package/types/plugins/export-docs/config.d.ts +21 -0
- package/types/plugins/export-docs/export-docs.d.ts +18 -0
- package/types/plugins/finder/browser.d.ts +70 -0
- package/types/plugins/finder/config.d.ts +6 -0
- package/types/plugins/finder/finder.d.ts +19 -0
- package/types/plugins/finder/helpers/context-menu.d.ts +19 -0
- package/types/plugins/finder/helpers/helpers.d.ts +6 -0
- package/types/plugins/finder/helpers/history-manager.d.ts +24 -0
- package/types/plugins/finder/helpers/loading-manager.d.ts +25 -0
- package/types/plugins/finder/helpers/persistent-store.d.ts +32 -0
- package/types/plugins/finder/helpers/state-manager.d.ts +21 -0
- package/types/plugins/finder/langs/index.d.ts +7 -0
- package/types/plugins/finder/langs/ru.d.ts +22 -0
- package/types/plugins/finder/ui/assets/icons/index.d.ts +1 -0
- package/types/plugins/finder/ui/folder/folder.d.ts +18 -0
- package/types/plugins/finder/ui/header/header.d.ts +21 -0
- package/types/plugins/finder/ui/item/item.d.ts +24 -0
- package/types/plugins/finder/ui/lightboox/lightbox.d.ts +27 -0
- package/types/plugins/finder/ui/panel/panel.d.ts +60 -0
- package/types/plugins/finder/ui/preview/preview.d.ts +25 -0
- package/types/plugins/finder/ui/progress/progress.d.ts +19 -0
- package/types/plugins/finder/ui/settings/settings.d.ts +25 -0
- package/types/plugins/finder/ui/sidebar/sidebar.d.ts +27 -0
- package/types/plugins/finder/ui/source/source.d.ts +19 -0
- package/types/plugins/finder/ui/sources/sources.d.ts +15 -0
- package/types/plugins/finder/ui/statusbar/statusbar.d.ts +14 -0
- package/types/plugins/finder/ui/tree/tree.d.ts +16 -0
- package/types/plugins/finder/ui/virtual-scroll/virtual-scroll.d.ts +32 -0
- package/types/plugins/google-maps/assets/index.d.ts +6 -0
- package/types/plugins/google-maps/config.d.ts +45 -0
- package/types/plugins/google-maps/google-maps.d.ts +29 -0
- package/types/plugins/google-maps/helpers/const.d.ts +7 -0
- package/types/plugins/google-maps/helpers/generate-js-script.d.ts +8 -0
- package/types/plugins/google-maps/helpers/generate-static-elements.d.ts +7 -0
- package/types/plugins/google-maps/helpers/helpers.d.ts +14 -0
- package/types/plugins/google-maps/helpers/static-url.d.ts +7 -0
- package/types/plugins/google-maps/ui/combo-box/combo-box.d.ts +12 -0
- package/types/plugins/google-maps/ui/editors/base.d.ts +15 -0
- package/types/plugins/google-maps/ui/editors/index.d.ts +8 -0
- package/types/plugins/google-maps/ui/editors/marker/marker.d.ts +10 -0
- package/types/plugins/google-maps/ui/editors/polygon/polygon.d.ts +10 -0
- package/types/plugins/google-maps/ui/editors/polyline/polyline.d.ts +10 -0
- package/types/plugins/google-maps/ui/index.d.ts +10 -0
- package/types/plugins/google-maps/ui/map/map.d.ts +39 -0
- package/types/plugins/google-maps/ui/map/modules/add-new-in-state.d.ts +8 -0
- package/types/plugins/google-maps/ui/map/modules/index.d.ts +10 -0
- package/types/plugins/google-maps/ui/map/modules/init-or-update-element-from-state.d.ts +8 -0
- package/types/plugins/google-maps/ui/map/modules/on-change-geometries.d.ts +8 -0
- package/types/plugins/google-maps/ui/map/modules/open-props-dialog.d.ts +8 -0
- package/types/plugins/google-maps/ui/map/modules/remove-element.d.ts +8 -0
- package/types/plugins/google-maps/ui/map/modules/update-state-and-gme.d.ts +8 -0
- package/types/plugins/google-maps/ui/maps-controls/maps-controls.d.ts +14 -0
- package/types/plugins/google-maps/ui/maps-props/maps-props.d.ts +19 -0
- package/types/plugins/google-maps/ui/wysiwyg/wysiwyg.d.ts +13 -0
- package/types/plugins/google-search/google-search.d.ts +17 -0
- package/types/plugins/highlight-signature/highlight-signature.d.ts +54 -0
- package/types/plugins/iframe-editor/config.d.ts +6 -0
- package/types/plugins/iframe-editor/iframe-editor.d.ts +22 -0
- package/types/plugins/iframe-editor/interface.d.ts +15 -0
- package/types/plugins/iframe-editor/ui/iframe-editor/iframe-editor.d.ts +14 -0
- package/types/plugins/index.d.ts +8 -0
- package/types/plugins/keyboard/config.d.ts +23 -0
- package/types/plugins/keyboard/interface.d.ts +13 -0
- package/types/plugins/keyboard/keyboard.d.ts +27 -0
- package/types/plugins/keyboard/ui/keyboard/keyboard.d.ts +32 -0
- package/types/plugins/license/helpers/helpers.d.ts +14 -0
- package/types/plugins/license/license.d.ts +16 -0
- package/types/plugins/mobile-view/config.d.ts +14 -0
- package/types/plugins/mobile-view/mobile-view.d.ts +6 -0
- package/types/plugins/page-break/config.d.ts +13 -0
- package/types/plugins/page-break/page-break.css.d.ts +2 -0
- package/types/plugins/page-break/page-break.d.ts +23 -0
- package/types/plugins/paste-code/config.d.ts +36 -0
- package/types/plugins/paste-code/paste-code.d.ts +30 -0
- package/types/plugins/paste-from-word/cases/clean-styles.d.ts +7 -0
- package/types/plugins/paste-from-word/cases/clear-attributes.d.ts +7 -0
- package/types/plugins/paste-from-word/cases/clear-class-name.d.ts +7 -0
- package/types/plugins/paste-from-word/cases/convert-style-unit-to-pixels.d.ts +7 -0
- package/types/plugins/paste-from-word/cases/convert-to-list.d.ts +11 -0
- package/types/plugins/paste-from-word/cases/index.d.ts +7 -0
- package/types/plugins/paste-from-word/cases/mark-page-break.d.ts +7 -0
- package/types/plugins/paste-from-word/cases/normalize-image-props.d.ts +7 -0
- package/types/plugins/paste-from-word/cases/process-image.d.ts +7 -0
- package/types/plugins/paste-from-word/cases/process-links.d.ts +7 -0
- package/types/plugins/paste-from-word/cases/remove-extra-tags.d.ts +7 -0
- package/types/plugins/paste-from-word/cases/remove-inside-comment.d.ts +7 -0
- package/types/plugins/paste-from-word/cases/replace-old-tags.d.ts +7 -0
- package/types/plugins/paste-from-word/cases/table.d.ts +7 -0
- package/types/plugins/paste-from-word/config.d.ts +24 -0
- package/types/plugins/paste-from-word/constants.d.ts +20 -0
- package/types/plugins/paste-from-word/element/checkers.d.ts +14 -0
- package/types/plugins/paste-from-word/element/element.d.ts +34 -0
- package/types/plugins/paste-from-word/element/index.d.ts +8 -0
- package/types/plugins/paste-from-word/element/render.d.ts +9 -0
- package/types/plugins/paste-from-word/element/style.d.ts +20 -0
- package/types/plugins/paste-from-word/helpers/apply-styles-pro.d.ts +7 -0
- package/types/plugins/paste-from-word/helpers/calc-list-levels.d.ts +7 -0
- package/types/plugins/paste-from-word/helpers/helpers.d.ts +19 -0
- package/types/plugins/paste-from-word/helpers/index.d.ts +9 -0
- package/types/plugins/paste-from-word/helpers/transform-word-to-html.d.ts +8 -0
- package/types/plugins/paste-from-word/interface.d.ts +17 -0
- package/types/plugins/paste-from-word/paste-from-word.d.ts +14 -0
- package/types/plugins/show-blocks/config.d.ts +15 -0
- package/types/plugins/show-blocks/langs/ar.d.ts +4 -0
- package/types/plugins/show-blocks/langs/cs_cz.d.ts +4 -0
- package/types/plugins/show-blocks/langs/de.d.ts +4 -0
- package/types/plugins/show-blocks/langs/es.d.ts +4 -0
- package/types/plugins/show-blocks/langs/fa.d.ts +4 -0
- package/types/plugins/show-blocks/langs/fr.d.ts +4 -0
- package/types/plugins/show-blocks/langs/he.d.ts +4 -0
- package/types/plugins/show-blocks/langs/hu.d.ts +4 -0
- package/types/plugins/show-blocks/langs/id.d.ts +4 -0
- package/types/plugins/show-blocks/langs/index.d.ts +25 -0
- package/types/plugins/show-blocks/langs/it.d.ts +4 -0
- package/types/plugins/show-blocks/langs/ja.d.ts +4 -0
- package/types/plugins/show-blocks/langs/ko.d.ts +4 -0
- package/types/plugins/show-blocks/langs/nl.d.ts +4 -0
- package/types/plugins/show-blocks/langs/pl.d.ts +4 -0
- package/types/plugins/show-blocks/langs/pt_br.d.ts +4 -0
- package/types/plugins/show-blocks/langs/ru.d.ts +4 -0
- package/types/plugins/show-blocks/langs/tr.d.ts +4 -0
- package/types/plugins/show-blocks/langs/zh_cn.d.ts +4 -0
- package/types/plugins/show-blocks/langs/zh_tw.d.ts +4 -0
- package/types/plugins/show-blocks/show-blocks.d.ts +39 -0
- package/types/plugins/todo-list/config.d.ts +15 -0
- package/types/plugins/todo-list/todo-list.d.ts +41 -0
- package/types/plugins/translate/config.d.ts +20 -0
- package/types/plugins/translate/interface.d.ts +50 -0
- package/types/plugins/translate/providers/google/google.d.ts +14 -0
- package/types/plugins/translate/providers/languages.d.ts +140 -0
- package/types/plugins/translate/translate.d.ts +20 -0
- package/types/plugins/translate/ui/list/list.d.ts +34 -0
- package/types/plugins/translate/ui/settings/settings.d.ts +35 -0
- package/types/plugins/tune-block/config.d.ts +13 -0
- package/types/plugins/tune-block/tune-block.d.ts +30 -0
- package/types/plugins/tune-block/ui/tuner/tuner.d.ts +53 -0
- package/types/traits/resize/resize.d.ts +17 -0
- package/types/traits/select-items/select-items.d.ts +16 -0
- package/types/tsconfig.json +19 -0
- package/types/types/view.d.ts +9 -0
- package/types/typings.d.ts +5 -0
- package/es2015/plugins/autocomplete/autocomplete.css +0 -26
- package/es2015/plugins/autocomplete/autocomplete.min.css +0 -1
- package/es2018/plugins/autocomplete/autocomplete.css +0 -26
- package/es2018/plugins/autocomplete/autocomplete.min.css +0 -1
- package/es2021/plugins/autocomplete/autocomplete.css +0 -26
- package/es2021/plugins/autocomplete/autocomplete.min.css +0 -1
- package/es2021.en/plugins/autocomplete/autocomplete.css +0 -26
- package/es2021.en/plugins/autocomplete/autocomplete.min.css +0 -1
- package/es5/plugins/autocomplete/autocomplete.css +0 -26
- package/es5/plugins/autocomplete/autocomplete.min.css +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit-pro - PRO Version of Jodit Editor
|
|
3
3
|
* Author: Chupurnov Valeriy <chupurnov@gmail.com>
|
|
4
|
-
* Version: v2.0.0-beta.
|
|
4
|
+
* Version: v2.0.0-beta.21
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var o=e();for(var n in o)("object"==typeof exports?exports:t)[n]=o[n]}}(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[917],{50403:function(t){t.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>'},13050:function(t){t.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>'},76941:function(t){t.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>'},9472:function(t){t.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>'},35122:function(t){t.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>'},56712:function(t){t.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>'},78400:function(t){t.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>'},28803:function(t){"use strict";"undefined"!=typeof self&&self,t.exports=function(t){var e={};function o(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,o),i.l=!0,i.exports}return o.m=t,o.c=e,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)o.d(n,i,function(e){return t[e]}.bind(null,i));return n},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=1)}([function(t,e,o){var n=o(3);function i(t){return!0===n(t)&&"[object Object]"===Object.prototype.toString.call(t)}t.exports=function(t){var e,o;return!1!==i(t)&&"function"==typeof(e=t.constructor)&&!1!==i(o=e.prototype)&&!1!==o.hasOwnProperty("isPrototypeOf")}},function(t,e,o){Object.defineProperty(e,"__esModule",{value:!0}),e.VERSION=e.PALETTE_MATERIAL_CHROME=e.PALETTE_MATERIAL_500=e.COLOR_NAMES=e.getLuminance=e.intToRgb=e.rgbToInt=e.rgbToHsv=e.rgbToHsl=e.hslToRgb=e.rgbToHex=e.parseColor=e.parseColorToHsla=e.parseColorToHsl=e.parseColorToRgba=e.parseColorToRgb=e.from=e.createPicker=void 0;var n=function(){function t(t,e){for(var o=0;e.length>o;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}(),i=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var o=[],n=!0,i=!1,a=void 0;try{for(var r,s=t[Symbol.iterator]();!(n=(r=s.next()).done)&&(o.push(r.value),!e||o.length!==e);n=!0);}catch(t){i=!0,a=t}finally{try{!n&&s.return&&s.return()}finally{if(i)throw a}}return o}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},a=o(2),r=l(o(0)),s=l(o(4));function l(t){return t&&t.__esModule?t:{default:t}}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t){if(Array.isArray(t)){for(var e=0,o=Array(t.length);t.length>e;e++)o[e]=t[e];return o}return Array.from(t)}var p="undefined"!=typeof window&&window.navigator.userAgent.indexOf("Edge")>-1,u="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]},g="COLOR",m="RGBA_USER",f="HSLA_USER";function v(t,e,o){return t?t instanceof HTMLElement?t:t instanceof NodeList?t[0]:"string"==typeof t?document.querySelector(t):t.jquery?t.get(0):o?e:null:e}function y(t){var e=t.getContext("2d"),o=+t.width,n=+t.height,r=e.createLinearGradient(1,1,1,n-1);return r.addColorStop(0,"white"),r.addColorStop(1,"black"),{setHue:function(t){var i=e.createLinearGradient(1,0,o-1,0);i.addColorStop(0,"hsla("+t+", 100%, 50%, 0)"),i.addColorStop(1,"hsla("+t+", 100%, 50%, 1)"),e.fillStyle=r,e.fillRect(0,0,o,n),e.fillStyle=i,e.globalCompositeOperation="multiply",e.fillRect(0,0,o,n),e.globalCompositeOperation="source-over"},grabColor:function(t,o){return e.getImageData(t,o,1,1).data},findColor:function(t,e,r){var s=(0,a.rgbToHsv)(t,e,r),l=i(s,3);return[l[1]*o,n-l[2]*n]}}}function b(t,e,o){return null===t?e:/^\s*$/.test(t)?o:!!/true|yes|1/i.test(t)||!/false|no|0/i.test(t)&&e}function C(t,e,o){if(null===t)return e;if(/^\s*$/.test(t))return o;var n=t.split(",").map(Number);return 2===n.length&&n[0]&&n[1]?n:e}var k=function(){function t(e,o){if(c(this,t),o?(e=v(e),this.options=Object.assign({},d,o)):e&&(0,r.default)(e)?(this.options=Object.assign({},d,e),e=v(this.options.attachTo)):(this.options=Object.assign({},d),e=v((0,a.nvl)(e,this.options.attachTo))),!e)throw new Error("Container not found: "+this.options.attachTo);!function(t,e){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"acp-";if(e.hasAttribute(o+"show-hsl")&&(t.showHSL=b(e.getAttribute(o+"show-hsl"),d.showHSL,!0)),e.hasAttribute(o+"show-rgb")&&(t.showRGB=b(e.getAttribute(o+"show-rgb"),d.showRGB,!0)),e.hasAttribute(o+"show-hex")&&(t.showHEX=b(e.getAttribute(o+"show-hex"),d.showHEX,!0)),e.hasAttribute(o+"show-alpha")&&(t.showAlpha=b(e.getAttribute(o+"show-alpha"),d.showAlpha,!0)),e.hasAttribute(o+"palette-editable")&&(t.paletteEditable=b(e.getAttribute(o+"palette-editable"),d.paletteEditable,!0)),e.hasAttribute(o+"sl-bar-size")&&(t.slBarSize=C(e.getAttribute(o+"sl-bar-size"),d.slBarSize,[232,150])),e.hasAttribute(o+"hue-bar-size")&&(t.hueBarSize=C(e.getAttribute(o+"hue-bar-size"),d.hueBarSize,[150,11]),t.alphaBarSize=t.hueBarSize),e.hasAttribute(o+"palette")){var n=e.getAttribute(o+"palette");switch(n){case"PALETTE_MATERIAL_500":t.palette=a.PALETTE_MATERIAL_500;break;case"PALETTE_MATERIAL_CHROME":case"":t.palette=a.PALETTE_MATERIAL_CHROME;break;default:t.palette=n.split(/[;|]/)}}e.hasAttribute(o+"color")&&(t.color=e.getAttribute(o+"color"))}(this.options,e),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=s.default,e.appendChild(this.element);var n=this.element.querySelector(".a-color-picker-h");this.setupHueCanvas(n),this.hueBarHelper=y(n),this.huePointer=this.element.querySelector(".a-color-picker-h+.a-color-picker-dot");var i=this.element.querySelector(".a-color-picker-sl");this.setupSlCanvas(i),this.slBarHelper=y(i),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(g,this.options.color)}return n(t,[{key:"setupHueCanvas",value:function(t){var e=this;t.width=this.options.hueBarSize[0],t.height=this.options.hueBarSize[1];for(var o=t.getContext("2d"),n=o.createLinearGradient(0,0,this.options.hueBarSize[0],0),i=0;1>=i;i+=1/360)n.addColorStop(i,"hsl("+360*i+", 100%, 50%)");o.fillStyle=n,o.fillRect(0,0,this.options.hueBarSize[0],this.options.hueBarSize[1]);var r=function(o){var n=(0,a.limit)(o.clientX-t.getBoundingClientRect().left,0,e.options.hueBarSize[0]),i=Math.round(360*n/e.options.hueBarSize[0]);e.huePointer.style.left=n-7+"px",e.onValueChanged("H",i)},s=function t(){document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",t)};t.addEventListener("mousedown",(function(t){r(t),document.addEventListener("mousemove",r),document.addEventListener("mouseup",s)}))}},{key:"setupSlCanvas",value:function(t){var e=this;t.width=this.options.slBarSize[0],t.height=this.options.slBarSize[1];var o=function(o){var n=(0,a.limit)(o.clientX-t.getBoundingClientRect().left,0,e.options.slBarSize[0]-1),i=(0,a.limit)(o.clientY-t.getBoundingClientRect().top,0,e.options.slBarSize[1]-1),r=e.slBarHelper.grabColor(n,i);e.slPointer.style.left=n-7+"px",e.slPointer.style.top=i-7+"px",e.onValueChanged("RGB",r)},n=function t(){document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",t)};t.addEventListener("mousedown",(function(t){o(t),document.addEventListener("mousemove",o),document.addEventListener("mouseup",n)}))}},{key:"setupAlphaCanvas",value:function(t){var e=this;t.width=this.options.alphaBarSize[0],t.height=this.options.alphaBarSize[1];var o=t.getContext("2d"),n=o.createLinearGradient(0,0,t.width-1,0);n.addColorStop(0,"hsla(0, 0%, 50%, 0)"),n.addColorStop(1,"hsla(0, 0%, 50%, 1)"),o.fillStyle=n,o.fillRect(0,0,this.options.alphaBarSize[0],this.options.alphaBarSize[1]);var i=function(o){var n=(0,a.limit)(o.clientX-t.getBoundingClientRect().left,0,e.options.alphaBarSize[0]),i=+(n/e.options.alphaBarSize[0]).toFixed(2);e.alphaPointer.style.left=n-7+"px",e.onValueChanged("ALPHA",i)},r=function t(){document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",t)};t.addEventListener("mousedown",(function(t){i(t),document.addEventListener("mousemove",i),document.addEventListener("mouseup",r)}))}},{key:"setupInput",value:function(t){var e=this,o=+t.min,n=+t.max,i=t.getAttribute("nameref");t.hasAttribute("select-on-focus")&&t.addEventListener("focus",(function(){t.select()})),"text"===t.type?t.addEventListener("change",(function(){e.onValueChanged(i,t.value)})):((p||u)&&t.addEventListener("keydown",(function(r){"Up"===r.key?(t.value=(0,a.limit)(+t.value+1,o,n),e.onValueChanged(i,t.value),r.returnValue=!1):"Down"===r.key&&(t.value=(0,a.limit)(+t.value-1,o,n),e.onValueChanged(i,t.value),r.returnValue=!1)})),t.addEventListener("change",(function(){e.onValueChanged(i,(0,a.limit)(+t.value,o,n))})))}},{key:"setupClipboard",value:function(t){var e=this;t.title="click to copy",t.addEventListener("click",(function(){t.value=(0,a.parseColor)([e.R,e.G,e.B,e.A],"hexcss4"),t.select(),document.execCommand("copy")}))}},{key:"setPalette",value:function(t){var e=this,o="auto"===this.options.useAlphaInPalette?this.options.showAlpha:this.options.useAlphaInPalette,n=null;switch(this.options.palette){case"PALETTE_MATERIAL_500":n=a.PALETTE_MATERIAL_500;break;case"PALETTE_MATERIAL_CHROME":n=a.PALETTE_MATERIAL_CHROME;break;default:n=(0,a.ensureArray)(this.options.palette)}if(this.options.paletteEditable||n.length>0){var i=function(o,n,i){var a=t.querySelector('.a-color-picker-palette-color[data-color="'+o+'"]')||document.createElement("div");a.className="a-color-picker-palette-color",a.style.backgroundColor=o,a.setAttribute("data-color",o),a.title=o,t.insertBefore(a,n),e.palette[o]=!0,i&&e.onPaletteColorAdd(o)},r=function(o,n){o?(t.removeChild(o),e.palette[o.getAttribute("data-color")]=!1,n&&e.onPaletteColorRemove(o.getAttribute("data-color"))):(t.querySelectorAll(".a-color-picker-palette-color[data-color]").forEach((function(e){t.removeChild(e)})),Object.keys(e.palette).forEach((function(t){e.palette[t]=!1})),n&&e.onPaletteColorRemove())};if(n.map((function(t){return(0,a.parseColor)(t,o?"rgbcss4":"hex")})).filter((function(t){return!!t})).forEach((function(t){return i(t)})),this.options.paletteEditable){var s=document.createElement("div");s.className="a-color-picker-palette-color a-color-picker-palette-add",s.innerHTML="+",t.appendChild(s),t.addEventListener("click",(function(t){/a-color-picker-palette-add/.test(t.target.className)?t.shiftKey?r(null,!0):i(o?(0,a.parseColor)([e.R,e.G,e.B,e.A],"rgbcss4"):(0,a.rgbToHex)(e.R,e.G,e.B),t.target,!0):/a-color-picker-palette-color/.test(t.target.className)&&(t.shiftKey?r(t.target,!0):e.onValueChanged(g,t.target.getAttribute("data-color")))}))}else t.addEventListener("click",(function(t){/a-color-picker-palette-color/.test(t.target.className)&&e.onValueChanged(g,t.target.getAttribute("data-color"))}))}else t.style.display="none"}},{key:"updatePalette",value:function(t){this.paletteRow.innerHTML="",this.palette={},this.paletteRow.parentElement||this.element.appendChild(this.paletteRow),this.options.palette=t,this.setPalette(this.paletteRow)}},{key:"onValueChanged",value:function(t,e){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{silent:!1};switch(t){case"H":this.H=e;var n=(0,a.hslToRgb)(this.H,this.S,this.L),r=i(n,3);this.R=r[0],this.G=r[1],this.B=r[2],this.slBarHelper.setHue(e),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);break;case"S":this.S=e;var s=(0,a.hslToRgb)(this.H,this.S,this.L),l=i(s,3);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);break;case"L":this.L=e;var c=(0,a.hslToRgb)(this.H,this.S,this.L),h=i(c,3);this.R=h[0],this.G=h[1],this.B=h[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);break;case"R":this.R=e;var p=(0,a.rgbToHsl)(this.R,this.G,this.B),u=i(p,3);this.H=u[0],this.S=u[1],this.L=u[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);break;case"G":this.G=e;var d=(0,a.rgbToHsl)(this.R,this.G,this.B),v=i(d,3);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);break;case"B":this.B=e;var y=(0,a.rgbToHsl)(this.R,this.G,this.B),b=i(y,3);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.updateInputRGBHEX(this.R,this.G,this.B);break;case"RGB":var C=i(e,3);this.R=C[0],this.G=C[1],this.B=C[2];var k=(0,a.rgbToHsl)(this.R,this.G,this.B),w=i(k,3);this.H=w[0],this.S=w[1],this.L=w[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);break;case m:var E=i(e,4);this.R=E[0],this.G=E[1],this.B=E[2],this.A=E[3];var x=(0,a.rgbToHsl)(this.R,this.G,this.B),A=i(x,3);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.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B),this.updatePointerA(this.A);break;case f:var S=i(e,4);this.H=S[0],this.S=S[1],this.L=S[2],this.A=S[3];var F=(0,a.hslToRgb)(this.H,this.S,this.L),B=i(F,3);this.R=B[0],this.G=B[1],this.B=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);break;case"RGBHEX":var L=(0,a.cssColorToRgb)(e)||[this.R,this.G,this.B],R=i(L,3);this.R=R[0],this.G=R[1],this.B=R[2];var H=(0,a.rgbToHsl)(this.R,this.G,this.B),T=i(H,3);this.H=T[0],this.S=T[1],this.L=T[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);break;case g:var M=(0,a.parseColor)(e,"rgba")||[0,0,0,1],I=i(M,4);this.R=I[0],this.G=I[1],this.B=I[2],this.A=I[3];var j=(0,a.rgbToHsl)(this.R,this.G,this.B),z=i(j,3);this.H=z[0],this.S=z[1],this.L=z[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);break;case"ALPHA":this.A=e}this.preview.style.backgroundColor=1===this.A?"rgb("+this.R+","+this.G+","+this.B+")":"rgba("+this.R+","+this.G+","+this.B+","+this.A+")",o&&o.silent||this.onchange&&this.onchange(this.preview.style.backgroundColor)}},{key:"onPaletteColorAdd",value:function(t){this.oncoloradd&&this.oncoloradd(t)}},{key:"onPaletteColorRemove",value:function(t){this.oncolorremove&&this.oncolorremove(t)}},{key:"updateInputHSL",value:function(t,e,o){this.options.showHSL&&(this.inputH.value=t,this.inputS.value=e,this.inputL.value=o)}},{key:"updateInputRGB",value:function(t,e,o){this.options.showRGB&&(this.inputR.value=t,this.inputG.value=e,this.inputB.value=o)}},{key:"updateInputRGBHEX",value:function(t,e,o){this.options.showHEX&&(this.inputRGBHEX.value=(0,a.rgbToHex)(t,e,o))}},{key:"updatePointerH",value:function(t){this.huePointer.style.left=this.options.hueBarSize[0]*t/360-7+"px"}},{key:"updatePointerSL",value:function(t,e,o){var n=(0,a.hslToRgb)(t,e,o),r=i(n,3),s=this.slBarHelper.findColor(r[0],r[1],r[2]),l=i(s,2),c=l[0],h=l[1];c>=0&&(this.slPointer.style.left=c-7+"px",this.slPointer.style.top=h-7+"px")}},{key:"updatePointerA",value:function(t){this.options.showAlpha&&(this.alphaPointer.style.left=this.options.alphaBarSize[0]*t-7+"px")}}]),t}(),w=function(){function t(e){c(this,t),this.name=e,this.listeners=[]}return n(t,[{key:"on",value:function(t){t&&this.listeners.push(t)}},{key:"off",value:function(t){this.listeners=t?this.listeners.filter((function(e){return e!==t})):[]}},{key:"emit",value:function(t,e){for(var o=this.listeners.slice(0),n=0;o.length>n;n++)o[n].apply(e,t)}}]),t}();function E(t,e){var o=new k(t,e),n={change:new w("change"),coloradd:new w("coloradd"),colorremove:new w("colorremove")},r=!0,s={},l={get element(){return o.element},get rgb(){return[o.R,o.G,o.B]},set rgb(t){var e=i(t,3),n=e[0],r=e[1],s=e[2],l=[(0,a.limit)(n,0,255),(0,a.limit)(r,0,255),(0,a.limit)(s,0,255)];o.onValueChanged(m,[n=l[0],r=l[1],s=l[2],1])},get hsl(){return[o.H,o.S,o.L]},set hsl(t){var e=i(t,3),n=e[0],r=e[1],s=e[2],l=[(0,a.limit)(n,0,360),(0,a.limit)(r,0,100),(0,a.limit)(s,0,100)];o.onValueChanged(f,[n=l[0],r=l[1],s=l[2],1])},get rgbhex(){return this.all.hex},get rgba(){return[o.R,o.G,o.B,o.A]},set rgba(t){var e=i(t,4),n=e[0],r=e[1],s=e[2],l=e[3],c=[(0,a.limit)(n,0,255),(0,a.limit)(r,0,255),(0,a.limit)(s,0,255),(0,a.limit)(l,0,1)];o.onValueChanged(m,[n=c[0],r=c[1],s=c[2],l=c[3]])},get hsla(){return[o.H,o.S,o.L,o.A]},set hsla(t){var e=i(t,4),n=e[0],r=e[1],s=e[2],l=e[3],c=[(0,a.limit)(n,0,360),(0,a.limit)(r,0,100),(0,a.limit)(s,0,100),(0,a.limit)(l,0,1)];o.onValueChanged(f,[n=c[0],r=c[1],s=c[2],l=c[3]])},get color(){return this.all.toString()},set color(t){o.onValueChanged(g,t)},setColor:function(t){o.onValueChanged(g,t,{silent:arguments.length>1&&void 0!==arguments[1]&&arguments[1]})},get all(){if(r){var t=[o.R,o.G,o.B,o.A],e=1>o.A?"rgba("+o.R+","+o.G+","+o.B+","+o.A+")":a.rgbToHex.apply(void 0,t);(s=(0,a.parseColor)(t,s)).toString=function(){return e},r=!1}return Object.assign({},s)},get onchange(){return n.change&&n.change.listeners[0]},set onchange(t){this.off("change").on("change",t)},get oncoloradd(){return n.coloradd&&n.coloradd.listeners[0]},set oncoloradd(t){this.off("coloradd").on("coloradd",t)},get oncolorremove(){return n.colorremove&&n.colorremove.listeners[0]},set oncolorremove(t){this.off("colorremove").on("colorremove",t)},get palette(){return Object.keys(o.palette).filter((function(t){return o.palette[t]}))},set palette(t){o.updatePalette(t)},show:function(){o.element.classList.remove("hidden")},hide:function(){o.element.classList.add("hidden")},toggle:function(){o.element.classList.toggle("hidden")},on:function(t,e){return t&&n[t]&&n[t].on(e),this},off:function(t,e){return t&&n[t]&&n[t].off(e),this},destroy:function(){n.change.off(),n.coloradd.off(),n.colorremove.off(),o.element.remove(),n=null,o=null}};return o.onchange=function(){for(var t=arguments.length,e=Array(t),o=0;t>o;o++)e[o]=arguments[o];r=!0,n.change.emit([l].concat(e),l)},o.oncoloradd=function(){for(var t=arguments.length,e=Array(t),o=0;t>o;o++)e[o]=arguments[o];n.coloradd.emit([l].concat(e),l)},o.oncolorremove=function(){for(var t=arguments.length,e=Array(t),o=0;t>o;o++)e[o]=arguments[o];n.colorremove.emit([l].concat(e),l)},o.element.ctrl=l,l}if("undefined"!=typeof window&&!document.querySelector('head>style[data-source="a-color-picker"]')){var x=o(5).toString(),A=document.createElement("style");A.setAttribute("type","text/css"),A.setAttribute("data-source","a-color-picker"),A.innerHTML=x,document.querySelector("head").appendChild(A)}e.createPicker=E,e.from=function(t,e){var o=function(t){return t?Array.isArray(t)?t:t instanceof HTMLElement?[t]:t instanceof NodeList?[].concat(h(t)):"string"==typeof t?[].concat(h(document.querySelectorAll(t))):t.jquery?t.get():[]:[]}(t).map((function(t,o){var n=E(t,e);return n.index=o,n}));return o.on=function(t,e){return o.forEach((function(o){return o.on(t,e)})),this},o.off=function(t){return o.forEach((function(e){return e.off(t)})),this},o},e.parseColorToRgb=a.parseColorToRgb,e.parseColorToRgba=a.parseColorToRgba,e.parseColorToHsl=a.parseColorToHsl,e.parseColorToHsla=a.parseColorToHsla,e.parseColor=a.parseColor,e.rgbToHex=a.rgbToHex,e.hslToRgb=a.hslToRgb,e.rgbToHsl=a.rgbToHsl,e.rgbToHsv=a.rgbToHsv,e.rgbToInt=a.rgbToInt,e.intToRgb=a.intToRgb,e.getLuminance=a.getLuminance,e.COLOR_NAMES=a.COLOR_NAMES,e.PALETTE_MATERIAL_500=a.PALETTE_MATERIAL_500,e.PALETTE_MATERIAL_CHROME=a.PALETTE_MATERIAL_CHROME,e.VERSION="1.2.1"},function(t,e,o){Object.defineProperty(e,"__esModule",{value:!0}),e.nvl=e.ensureArray=e.limit=e.getLuminance=e.parseColor=e.parseColorToHsla=e.parseColorToHsl=e.cssHslaToHsla=e.cssHslToHsl=e.parseColorToRgba=e.parseColorToRgb=e.cssRgbaToRgba=e.cssRgbToRgb=e.cssColorToRgba=e.cssColorToRgb=e.intToRgb=e.rgbToInt=e.rgbToHsv=e.rgbToHsl=e.hslToRgb=e.rgbToHex=e.PALETTE_MATERIAL_CHROME=e.PALETTE_MATERIAL_500=e.COLOR_NAMES=void 0;var n=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var o=[],n=!0,i=!1,a=void 0;try{for(var r,s=t[Symbol.iterator]();!(n=(r=s.next()).done)&&(o.push(r.value),!e||o.length!==e);n=!0);}catch(t){i=!0,a=t}finally{try{!n&&s.return&&s.return()}finally{if(i)throw a}}return o}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(t){return t&&t.__esModule?t:{default:t}}(o(0));function a(t){if(Array.isArray(t)){for(var e=0,o=Array(t.length);t.length>e;e++)o[e]=t[e];return o}return Array.from(t)}var r={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"};function s(t,e,o){return t=+t,isNaN(t)||e>t?e:t>o?o:t}function l(t,e){return null==t?e:t}function c(t,e,o){var n=[s(t,0,255),s(e,0,255),s(o,0,255)];return"#"+("000000"+((t=n[0])<<16|(e=n[1])<<8|(o=n[2])).toString(16)).slice(-6)}function h(t,e,o){var n=void 0,i=void 0,a=void 0,r=[s(t,0,360)/360,s(e,0,100)/100,s(o,0,100)/100];if(t=r[0],o=r[2],0==(e=r[1]))n=i=a=o;else{var l=function(t,e,o){return 0>o&&(o+=1),o>1&&(o-=1),1/6>o?t+6*(e-t)*o:.5>o?e:2/3>o?t+(e-t)*(2/3-o)*6:t},c=.5>o?o*(1+e):o+e-o*e,h=2*o-c;n=l(h,c,t+1/3),i=l(h,c,t),a=l(h,c,t-1/3)}return[255*n,255*i,255*a].map(Math.round)}function p(t,e,o){var n=[s(t,0,255)/255,s(e,0,255)/255,s(o,0,255)/255];t=n[0],e=n[1],o=n[2];var i=Math.max(t,e,o),a=Math.min(t,e,o),r=void 0,l=void 0,c=(i+a)/2;if(i==a)r=l=0;else{var h=i-a;switch(l=c>.5?h/(2-i-a):h/(i+a),i){case t:r=(e-o)/h+(o>e?6:0);break;case e:r=(o-t)/h+2;break;case o:r=(t-e)/h+4}r/=6}return[360*r,100*l,100*c].map(Math.round)}function u(t,e,o){return t<<16|e<<8|o}function d(t){if(t){var e=r[t.toString().toLowerCase()],o=/^\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(e||t)||[],i=n(o,10),a=i[3],s=i[4],l=i[5],c=i[7],h=i[8],p=i[9];if(void 0!==a)return[parseInt(a+a,16),parseInt(s+s,16),parseInt(l+l,16)];if(void 0!==c)return[parseInt(c,16),parseInt(h,16),parseInt(p,16)]}}function g(t){if(t){var e=r[t.toString().toLowerCase()],o=/^\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(e||t)||[],i=n(o,12),a=i[3],s=i[4],l=i[5],c=i[6],h=i[8],p=i[9],u=i[10],d=i[11];if(void 0!==a)return[parseInt(a+a,16),parseInt(s+s,16),parseInt(l+l,16),c?+(parseInt(c+c,16)/255).toFixed(2):1];if(void 0!==h)return[parseInt(h,16),parseInt(p,16),parseInt(u,16),d?+(parseInt(d,16)/255).toFixed(2):1]}}function m(t){if(t){var e=/^rgb\((\d+)[\s,](\d+)[\s,](\d+)\)/i.exec(t)||[],o=n(e,4),i=o[2],a=o[3];return o[0]?[s(o[1],0,255),s(i,0,255),s(a,0,255)]:void 0}}function f(t){if(t){var e=/^rgba?\((\d+)\s*[\s,]\s*(\d+)\s*[\s,]\s*(\d+)(\s*[\s,]\s*(\d*(.\d+)?))?\)/i.exec(t)||[],o=n(e,6),i=o[2],a=o[3],r=o[5];return o[0]?[s(o[1],0,255),s(i,0,255),s(a,0,255),s(l(r,1),0,1)]:void 0}}function v(t){if(Array.isArray(t))return[s(t[0],0,255),s(t[1],0,255),s(t[2],0,255),s(l(t[3],1),0,1)];var e=g(t)||f(t);return e&&3===e.length&&e.push(1),e}function y(t){if(t){var e=/^hsl\((\d+)[\s,](\d+)[\s,](\d+)\)/i.exec(t)||[],o=n(e,4),i=o[2],a=o[3];return o[0]?[s(o[1],0,360),s(i,0,100),s(a,0,100)]:void 0}}function b(t){if(t){var e=/^hsla?\((\d+)\s*[\s,]\s*(\d+)\s*[\s,]\s*(\d+)(\s*[\s,]\s*(\d*(.\d+)?))?\)/i.exec(t)||[],o=n(e,6),i=o[2],a=o[3],r=o[5];return o[0]?[s(o[1],0,255),s(i,0,255),s(a,0,255),s(l(r,1),0,1)]:void 0}}function C(t){if(Array.isArray(t))return[s(t[0],0,360),s(t[1],0,100),s(t[2],0,100),s(l(t[3],1),0,1)];var e=b(t);return e&&3===e.length&&e.push(1),e}function k(t,e){switch(e){case"rgb":default:return t.slice(0,3);case"rgbcss":return"rgb("+t[0]+", "+t[1]+", "+t[2]+")";case"rgbcss4":return"rgb("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")";case"rgba":return t;case"rgbacss":return"rgba("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")";case"hsl":return p.apply(void 0,a(t));case"hslcss":return"hsl("+(t=p.apply(void 0,a(t)))[0]+", "+t[1]+", "+t[2]+")";case"hslcss4":var o=p.apply(void 0,a(t));return"hsl("+o[0]+", "+o[1]+", "+o[2]+", "+t[3]+")";case"hsla":return[].concat(a(p.apply(void 0,a(t))),[t[3]]);case"hslacss":var n=p.apply(void 0,a(t));return"hsla("+n[0]+", "+n[1]+", "+n[2]+", "+t[3]+")";case"hex":return c.apply(void 0,a(t));case"hexcss4":return c.apply(void 0,a(t))+("00"+parseInt(255*t[3]).toString(16)).slice(-2);case"int":return u.apply(void 0,a(t))}}e.COLOR_NAMES=r,e.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"],e.PALETTE_MATERIAL_CHROME=["#f44336","#e91e63","#9c27b0","#673ab7","#3f51b5","#2196f3","#03a9f4","#00bcd4","#009688","#4caf50","#8bc34a","#cddc39","#ffeb3b","#ffc107","#ff9800","#ff5722","#795548","#9e9e9e","#607d8b"],e.rgbToHex=c,e.hslToRgb=h,e.rgbToHsl=p,e.rgbToHsv=function(t,e,o){var n=[s(t,0,255)/255,s(e,0,255)/255,s(o,0,255)/255];t=n[0],e=n[1],o=n[2];var i,a=Math.max(t,e,o),r=Math.min(t,e,o),l=void 0,c=a,h=a-r;if(i=0===a?0:h/a,a==r)l=0;else{switch(a){case t:l=(e-o)/h+(o>e?6:0);break;case e:l=(o-t)/h+2;break;case o:l=(t-e)/h+4}l/=6}return[l,i,c]},e.rgbToInt=u,e.intToRgb=function(t){return[t>>16&255,t>>8&255,255&t]},e.cssColorToRgb=d,e.cssColorToRgba=g,e.cssRgbToRgb=m,e.cssRgbaToRgba=f,e.parseColorToRgb=function(t){return Array.isArray(t)?t=[s(t[0],0,255),s(t[1],0,255),s(t[2],0,255)]:d(t)||m(t)},e.parseColorToRgba=v,e.cssHslToHsl=y,e.cssHslaToHsla=b,e.parseColorToHsl=function(t){return Array.isArray(t)?t=[s(t[0],0,360),s(t[1],0,100),s(t[2],0,100)]:y(t)},e.parseColorToHsla=C,e.parseColor=function(t,e){if(e=e||"rgb",null!=t){var o=void 0;if((o=v(t))||(o=C(t))&&(o=[].concat(a(h.apply(void 0,a(o))),[o[3]])))return(0,i.default)(e)?["rgb","rgbcss","rgbcss4","rgba","rgbacss","hsl","hslcss","hslcss4","hsla","hslacss","hex","hexcss4","int"].reduce((function(t,e){return t[e]=k(o,e),t}),e||{}):k(o,e.toString().toLowerCase())}},e.getLuminance=function(t,e,o){return.2126*(t=.03928>(t/=255)?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(e=.03928>(e/=255)?e/12.92:Math.pow((e+.055)/1.055,2.4))+.0722*(.03928>(o/=255)?o/12.92:Math.pow((o+.055)/1.055,2.4))},e.limit=s,e.ensureArray=function(t){return t?Array.from(t):[]},e.nvl=l},function(t,e,o){t.exports=function(t){return null!=t&&"object"==typeof t&&!1===Array.isArray(t)}},function(t,e){t.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(t,e,o){var n=o(6);t.exports="string"==typeof n?n:n.toString()},function(t,e,o){(t.exports=o(7)(!1)).push([t.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(t,e){t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var o=function(t,e){var o=t[1]||"",n=t[3];if(!n)return o;if(e&&"function"==typeof btoa){var i=function(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}(n),a=n.sources.map((function(t){return"/*# sourceURL="+n.sourceRoot+t+" */"}));return[o].concat(a).concat([i]).join("\n")}return[o].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+o+"}":o})).join("")},e.i=function(t,o){"string"==typeof t&&(t=[[null,t,""]]);for(var n={},i=0;this.length>i;i++){var a=this[i][0];"number"==typeof a&&(n[a]=!0)}for(i=0;t.length>i;i++){var r=t[i];"number"==typeof r[0]&&n[r[0]]||(o&&!r[2]?r[2]=o:o&&(r[2]="("+r[2]+") and ("+o+")"),e.push(r))}},e}}])},48163:function(t,e,o){"use strict";o.d(e,{W:function(){return l}});var n=o(97582),i=o(75004),a=o(50526),r=o(95582),s=o(23185);let l=class t extends i.u3{className(){return"UIRange"}constructor(t,e){super(t,{...e,type:"hidden"}),this.state={...i.u3.defaultState,min:0,max:100},this.startValue=0,this.startX=0,this.width=100,Object.assign(this.state,e),this.appendUIRange(),this.onChangeSelfValue()}appendUIRange(){const t=this.j.create.div(this.getFullElName("slider"));this.container.appendChild(t);const e=this.j.create.div(this.getFullElName("handle"));t.appendChild(e);const o=this.j.create.div(this.getFullElName("log"));this.getElm("label").appendChild(o)}onDragStart(t){this.startValue=parseFloat(this.value)||0,this.startX=t.clientX;const e=this.getElm("slider");this.width=e.offsetWidth,this.j.e.on(this.j.ow,"mousemove",this.onDrag)}onDrag(t){const{min:e,max:o}=this.state;let n=this.startValue+(t.clientX-this.startX)/this.width*(this.state.max-this.state.min);e>n&&(n=e),n>o&&(n=o),this.value=n.toString()}onDragEnd(){this.j.e.off(this.j.ow,"mousemove",this.onDrag)}onChangeSelfValue(){const t=this.getElm("handle"),e=parseFloat(this.value)||0;(0,r.css)(t,{left:(e-this.state.min)/(this.state.max-this.state.min)*100+"%"}),this.getElm("log").innerText=e.toString()}destruct(){return this.onDragEnd(),super.destruct()}};(0,n.gn)([(0,a.watch)(["handle:mousedown","handle:touchstart"])],l.prototype,"onDragStart",null),(0,n.gn)([s.ZP],l.prototype,"onDrag",null),(0,n.gn)([(0,a.watch)(["j.ow:mouseup","j.ow:touchend"])],l.prototype,"onDragEnd",null),(0,n.gn)([(0,a.watch)(":change")],l.prototype,"onChangeSelfValue",null),l=(0,n.gn)([a.component],l)},39445:function(t,e,o){"use strict";o.d(e,{T:function(){return h}});var n=o(97582),i=o(75004),a=o(50526),r=o(95582),s=o(28803),l=o(8079),c=o(11612);let h=class t extends i.u3{className(){return"ColorInput"}constructor(t,e){super(t,e);const o=new i.GI(t);this.popup=o,this.trigger=(0,i.zx)(this.j,"ok"),this.getElm("wrapper").appendChild(this.trigger.container),this.trigger.container.classList.add(this.getFullElName("trigger")),this.trigger.onAction((()=>{var t,e;null===(e=(t=this.state).onChange)||void 0===e||e.call(t,this.value),o.close()})),o.setMod("padding",!1).setMod("max-height",!1);const n=this.j.create.div(this.getFullElName("picker")),a=s.createPicker(n,{paletteEditable:!0,showAlpha:!0,palette:"PALETTE_MATERIAL_CHROME"}).on("change",((t,e)=>{this.isFocused||(this.value=s.parseColor(e||"","hex"))}));this.j.e.on(this,"change",(()=>{s.parseColor(this.value,"hex")!==a.color&&(a.color=this.value)})),o.setContent(n),this.j.e.on(this.nativeInput,"click",(()=>{o.parentElement=this,this.jodit instanceof l.Dialog&&o.setZIndex(this.jodit.getZIndex()+1),o.open((()=>(0,r.position)(this.container)))})),this.onChangeValue(),this.onChangeSelfValue()}afterSetMode(t,e){"slim"===t&&e&&this.nativeInput.setAttribute("readonly","true")}onChangeSelfValue(){this.nativeInput.style.backgroundColor=this.value}onEscKeyDown(t){var e;t.key===c.KEY_ESC&&(null===(e=this.popup)||void 0===e||e.close())}};(0,n.gn)([(0,a.watch)(":change")],h.prototype,"onChangeSelfValue",null),(0,n.gn)([(0,a.watch)("nativeInput:keydown")],h.prototype,"onEscKeyDown",null),h=(0,n.gn)([a.component],h)},51852:function(t,e,o){"use strict";o(75004).JO.set("map",o(76941)).set("edit-hand",o(13050)).set("edit-polygon",o(35122)).set("edit-marker",o(9472)).set("edit-text",o(78400)).set("edit-polyline",o(56712)).set("edit-circle",o(50403))},52524:function(t,e,o){"use strict";var n=o(77628),i=o(22709);n.Config.prototype.googleMaps={saveStateInStorage:!0,useStaticImage:!1,apiUrl:"https://maps.googleapis.com/maps/api/js?key=${j.o.googleMaps.API_KEY}&libraries=geometry,places,drawing&language=${j.o.language}&callback=JoditGoogleReadyHandler",API_KEY:"AIzaSyDjnR03hxN8fo0QJ85Jkkvk2DALTh3eynY",dialog:{size:[700,700]},inlineEditorOptions:{buttons:["bold","italic","link","brush","fontsize","image"]},map:{type:"roadmap",layer:"default",center:"auto",defaultCenter:[-34.397,150.644],defaultZoom:10,zoom:10,size:[500,400],defaultStates:{polyline:{strokeColor:"#5ba4f3",strokeWeight:3},polygon:{strokeColor:"#417706",fillColor:"#5b9302",strokeWeight:1,fillOpacity:.5},marker:{},text:{},circle:{strokeColor:"#da767c",fillColor:"#f34ca8",strokeWeight:1,fillOpacity:.5}}}},n.Config.prototype.controls.googleMaps={tooltip:"Google Maps",icon:"map",command:i.o};const a=t=>({icon:`edit-${t}`,isActive:e=>e.buffer.get("createMode.gm")===t,exec:e=>{e.e.fire("changeCreateMode.gm",t)}});n.Config.prototype.controls.gm={hand:a("hand"),marker:a("marker"),polyline:a("polyline"),polygon:a("polygon"),circle:a("circle"),text:a("text")}},177:function(t,e,o){"use strict";o.r(e),o.d(e,{googleMaps:function(){return y}});var n=o(97582),i=o(7324),a=o(88292),r=(o(52524),o(51852),o(68699)),s=o(29788),l=o(95582),c=o(11612),h=o(50526),p=o(1875),u=o(40540),d=o(26239),g=o(3510),m=o(97167),f=o(88408),v=o(22709);window.JoditGoogleReadyHandler=d.VI;class y extends i.S{constructor(){super(...arguments),this.buttons=[{group:"media",name:"googleMaps"}],this.dialog=null}className(){return"google-maps"}afterInit(t){t.registerCommand(v.o,(()=>{this.openMapEditor(null,{})}))}beforeDestruct(t){}onOpenOnDblClick(t){if(t.dataset.googleMaps){let e;try{e=JSON.parse(this.j.ow.atob(t.dataset.googleMaps))}catch(t){}return this.openMapEditor(t,e),!1}}async openMapEditor(t,e){const o=this.j,n=this.getDialog(),i=this.j.o.googleMaps.saveStateInStorage?n.storage.get(v.U):void 0,{apiUrl:a}=this.jodit.o.googleMaps;(0,d.Ez)()||(0,l.appendScriptAsync)(this.jodit,a.replace(/\${([^}]+)}/g,((t,e)=>{var o;return null!==(o=this.get(e))&&void 0!==o?o:""})));const h={type:this.j.o.googleMaps.map.type,layer:this.j.o.googleMaps.map.layer,size:this.j.o.googleMaps.map.size,...i,...e},p=new u.IE(n,h,this.j.options);p.container.classList.add(n.getFullElName("map"));const f=new m.Q(o,{icon:"search",placeholder:"Search",clearButton:!0}).setMod("in-header",!0);f.container.classList.add(n.getFullElName("search")),this.j.async.promise((t=>{if((0,d.Ez)())return void t(0);const e=()=>{(0,d.Ez)()?t(0):this.j.async.setTimeout(e,100)};e(),(0,d.iE)(t)})).then((()=>{p.setStatus("ready"),f.setStatus("ready")})),this.j.e.on(f,"select",((t,e)=>{e?p.map.fitBounds(e):t&&(p.state.center=[t.lat(),t.lng()])})),i||("auto"===this.j.o.googleMaps.map.center?navigator.geolocation.getCurrentPosition((t=>{p.state.center=[t.coords.latitude,t.coords.longitude]}),(()=>{p.state.center=this.j.o.googleMaps.map.defaultCenter})):p.state.center=this.j.o.googleMaps.map.center),n.setSize(...o.o.googleMaps.dialog.size).setHeader([f," ",(0,s.zx)(o,"eye").onAction((()=>{const t=this.jodit.createInside.element("img");t.src=(0,g.v)(p),t.dataset.googleMaps=btoa(p.json());const e={value:t.outerHTML};this.onAfterGetValueFromEditor(e),o.execCommand("preview",null,e.value)}))]).setContent((0,r.IL)(o,[{name:"Map",icon:"map",content:p},{name:"Settings",content:new u.BK(o,p.state)},{name:"Controls",icon:"menu",content:new u.KQ(o,p.state)}])).setFooter([(0,s.zx)(o,"cancel","Cancel","default").onAction((()=>n.close())),(0,s.zx)(o,"ok",t?"Save":"Insert","primary").onAction((()=>{p.destruct(),f.destruct(),n.e.off("beforeClose",y),n.close(),this.insertMap(t,p)}))]).open();const y=()=>{if(p.state.elements.length&&JSON.stringify(p.state.elements)!==JSON.stringify(h.elements)&&!c.IS_TEST&&!confirm(this.i18n("Are you sure?")))return!1;p.destruct(),f.destruct(),n.e.off("beforeClose",y)};n.e.on("beforeClose",y)}getDialog(){if(!this.dialog){const t=new p.V({language:this.j.o.language});t.container.classList.add(this.getFullElName("")),this.dialog=t}return this.dialog}insertMap(t,e){const o=null!=t?t:this.jodit.createInside.element("img");o.src=(0,g.v)(e),o.dataset.googleMaps=btoa(e.json()),t||this.jodit.s.insertImage(o)}onBeforeSetNativeEditorValue(t){t.value=t.value.replace(/<script[^>]+jodit-google-maps-init[^>]+>.*?<\/script>/gs,"")}onAfterGetValueFromEditor(t,e){this.j.o.googleMaps.useStaticImage||e===c.SOURCE_CONSUMER||(t.value=t.value.replace(/(<img[^>]+)(["']?)data-google-maps\2\s*=(["'])([^"']+)\3([^>]*>)/gs,((t,e,o,n,i,a)=>{let r={};try{r=JSON.parse(this.j.ow.atob(i))}catch(t){}return`${e} id="${r.uid}" ${o}data-google-maps${o}=${n}${i}${n}${a}${(0,f.q)(this.j,r)}`})))}}y.requires=["license","color-picker"],(0,n.gn)([(0,h.watch)("?:openOnDblClick")],y.prototype,"onOpenOnDblClick",null),(0,n.gn)([(0,h.watch)(":beforeSetNativeEditorValue")],y.prototype,"onBeforeSetNativeEditorValue",null),(0,n.gn)([(0,h.watch)(":afterGetValueFromEditor")],y.prototype,"onAfterGetValueFromEditor",null),a.y.plugins.add("google-maps",y)},22709:function(t,e,o){"use strict";o.d(e,{U:function(){return n},o:function(){return i}});const n="googleMapsState",i="googleMapsDialog"},88408:function(t,e,o){"use strict";o.d(e,{q:function(){return i}});var n=o(95582);function i(t,e){return`<script class="jodit-google-maps-init" type="text/javascript">\n\t\tvar imgMap = document.getElementById('${e.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${e.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) || ${e.size[0]},\n\t\t\t\th = (imgMap && imgMap.offsetHeight) || ${e.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${e.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: ${e.zoom},\n\t\t\t\tcenter: { lat: ${e.center[0]}, lng: ${e.center[1]}},\n\t\t\t\tmapType: '${e.type}'\n\t\t\t}, ${JSON.stringify(e.controls)}));\n\n\t\t\tif (${"default"!==e.layer}) {\n\t\t\t\tnew google.maps.${(0,n.ucfirst)(e.layer)}Layer().setMap(map);\n\t\t\t}\n\n\t\t\tvar infoWindow = new google.maps.InfoWindow();\n\n\t\t\t${JSON.stringify(e.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${e.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=${t.o.googleMaps.API_KEY}&language=${t.o.language}&callback=CreateGMap${e.uid}';\n\t\t\tdocument.appendChild(scr);\n\t\t}\n\t\t/*]]>*/<\/script>`.replace(/[\n\t]+/g,"")}},29343:function(t,e,o){"use strict";o.d(e,{J:function(){return a}});var n=o(26239),i=o(95582);function a(t){return t.state.elements.map((t=>{var e,o,a,r,s,l;switch(t.type){case"polygon":return`&path=fillcolor:${(0,n.n2)(null!==(e=t.fillColor)&&void 0!==e?e:"#fff")}%7Cweight:${null!==(o=t.strokeWeight)&&void 0!==o?o:1}%7Ccolor:${(0,n.n2)(null!==(a=t.strokeColor)&&void 0!==a?a:"#fff")}%7Cenc:${google.maps.geometry.encoding.encodePath((0,n.lL)(t.coordinates))}`;case"polyline":return`&path=weight:${null!==(r=t.strokeWeight)&&void 0!==r?r:1}%7Ccolor:${(0,n.n2)(null!==(s=t.strokeColor)&&void 0!==s?s:"#fff")}%7Cenc:${google.maps.geometry.encoding.encodePath((0,n.lL)(t.coordinates))}`;case"marker":return`&markers=color:blue%7Clabel:${encodeURIComponent((0,i.stripTags)(null!==(l=t.text)&&void 0!==l?l:"").charAt(0).toUpperCase())}%7C${t.coordinates}`}return""})).join("")}},26239:function(t,e,o){"use strict";o.d(e,{Ez:function(){return h},NI:function(){return l},VI:function(){return r},iE:function(){return a},lL:function(){return s},n2:function(){return c}});let n=!1;const i=[];function a(t){n?t():i.push(t)}function r(){n=!0,i&&i.forEach((t=>t()))}function s(t,e=!1){const o=[];if(Array.isArray(t)){if(!Array.isArray(t[0])&&!Array.isArray(t[1]))return e?{lat:t[0],lng:t[1]}:new google.maps.LatLng(t[0],t[1]);t.forEach((t=>{o.push(s(t,e))}))}return o}function l(t){return t.getArray().map((t=>[t.lat(),t.lng()]))}function c(t){return t.toUpperCase().replace("#","0x").padEnd(10,"F")}function h(){return"undefined"!=typeof google&&void 0!==google.maps&&void 0!==google.maps.Map}},3510:function(t,e,o){"use strict";o.d(e,{v:function(){return i}});var n=o(29343);function i(t){const{state:e}=t;return`https://maps.googleapis.com/maps/api/staticmap?center=${e.center.join(",")}&zoom=${e.zoom}&size=${e.size.join("x")}&maptype=${e.type}&key=${t.options.googleMaps.API_KEY}`+(0,n.J)(t)}},97167:function(t,e,o){"use strict";o.d(e,{Q:function(){return r}});var n=o(97582),i=o(75004),a=o(50526);class r extends i.u3{className(){return"UIComboBox"}onReady(){const t=new google.maps.places.Autocomplete(this.nativeInput,{fields:["address_components","geometry","name"],types:["geocode"]});t.addListener("place_changed",(()=>{var e,o;const n=t.getPlace();this.j.e.fire(this,"select",null===(e=n.geometry)||void 0===e?void 0:e.location,null===(o=n.geometry)||void 0===o?void 0:o.viewport)}))}async onInput(){}}(0,n.gn)([(0,a.hook)("ready")],r.prototype,"onReady",null),(0,n.gn)([(0,a.watch)("nativeInput:input"),(0,a.debounce)()],r.prototype,"onInput",null)},57144:function(t,e,o){"use strict";o.d(e,{z:function(){return i}});var n=o(75004);class i extends n.qe{className(){return"UIBaseEditor"}render(){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>"}onReady(){const t=(0,n.zx)(this.j,"bin").onAction((()=>this.j.e.fire(this,"bin")));this.append(t,"buttons")}constructor(t,e,o){super(t),this.state=e,this.options=o}}},75345:function(t,e,o){"use strict";o.d(e,{Ys:function(){return n.Y},eU:function(){return i.e},yX:function(){return a.y}});var n=o(56143),i=o(93565),a=o(61814)},56143:function(t,e,o){"use strict";o.d(e,{Y:function(){return s}});var n=o(97582),i=o(50526),a=o(15191),r=o(57144);let s=class t extends r.z{onReady(){var t;super.onReady();const e=new a.d(this.j,this.options.googleMaps.inlineEditorOptions,null!==(t=this.state.text)&&void 0!==t?t:"",(t=>this.j.e.fire(this,"change","text",t)));this.append(e,"form")}};(0,n.gn)([(0,i.hook)("ready")],s.prototype,"onReady",null),s=(0,n.gn)([i.component],s)},61814:function(t,e,o){"use strict";o.d(e,{y:function(){return l}});var n=o(97582),i=o(50526),a=o(39445),r=o(93565),s=o(48163);let l=class t extends r.e{onReady(){var t,e;this.append([new a.T(this.j,{label:"Fill color",value:null!==(t=this.state.fillColor)&&void 0!==t?t:"#000",onChange:t=>this.j.e.fire(this,"change","fillColor",t)}).setMod("trigger",!1),new s.W(this.j,{label:"Opacity",min:0,max:1,value:null!==(e=this.state.fillOpacity)&&void 0!==e?e:1,onChange:t=>{this.j.e.fire(this,"change","fillOpacity",parseFloat(t)||0)}}).setMod("log",!1)],"form")}};(0,n.gn)([(0,i.hook)("ready")],l.prototype,"onReady",null),l=(0,n.gn)([i.component],l)},93565:function(t,e,o){"use strict";o.d(e,{e:function(){return l}});var n=o(97582),i=o(50526),a=o(57144),r=o(39445),s=o(75004);let l=class t extends a.z{onReady(){var t,e;super.onReady(),this.append([new s.u3(this.j,{label:"Stroke weight",value:null!==(t=this.state.strokeWeight)&&void 0!==t?t:1,type:"number",onChange:t=>this.j.e.fire(this,"change","strokeWeight",t)}),new r.T(this.j,{label:"Stroke color",value:null!==(e=this.state.strokeColor)&&void 0!==e?e:"#000",onChange:t=>this.j.e.fire(this,"change","strokeColor",t)}).setMod("trigger",!1)],"form")}};(0,n.gn)([(0,i.hook)("ready")],l.prototype,"onReady",null),l=(0,n.gn)([i.component],l)},40540:function(t,e,o){"use strict";o.d(e,{BK:function(){return i.B},IE:function(){return n.I},KQ:function(){return a.K}});var n=o(43436),i=(o(75345),o(15191),o(59342)),a=o(42109)},43436:function(t,e,o){"use strict";o.d(e,{I:function(){return u}});var n=o(97582),i=o(81160),a=o(75004),r=o(50526),s=o(95582),l=o(8079),c=o(22709),h=o(54700),p=(o(98478),o(52524),o(99331));class u extends a.qe{className(){return"UIMap"}json(){return JSON.stringify({...this.state,mode:"hand"})}async onReady(){await this.apiLoaded;const t=this.getElm("map-root");this.map=new google.maps.Map(t,{center:{lat:this.state.center[0],lng:this.state.center[1]},zoom:this.state.zoom,mapTypeId:this.state.type}),this.map.addListener("zoom_changed",(()=>{var t;this.state.zoom=null!==(t=this.map.getZoom())&&void 0!==t?t:10})),this.map.addListener("center_changed",(()=>{var t,e,o,n,i,a;this.state.center=[null!==(o=null===(e=null===(t=this.map)||void 0===t?void 0:t.getCenter())||void 0===e?void 0:e.lat())&&void 0!==o?o:55,null!==(a=null===(i=null===(n=this.map)||void 0===n?void 0:n.getCenter())||void 0===i?void 0:i.lng())&&void 0!==a?a:34]})),this.map.addListener("maptypeid_changed",(()=>{const t=this.map.getMapTypeId();t&&(this.state.type=t)})),this.initDrawManager(),this.onChangeElementsList(),this.onChangeSize(),this.onChangeControls(),this.onChangeLayer(),this.onChangeMapType(),this.onChangeMode(),this.mapInitialized=!0,this.j.async.requestIdleCallback((()=>{this.j.e.fire(this,"GoogleMapsIsReady")}))}initDrawManager(){try{const t=new google.maps.drawing.DrawingManager;t.setMap(this.map),t.setOptions({drawingControl:!1,polygonOptions:{...this.options.googleMaps.map.defaultStates.polygon,clickable:!0,editable:!0},polylineOptions:{...this.options.googleMaps.map.defaultStates.polyline,clickable:!0,editable:!0},markerOptions:{...this.options.googleMaps.map.defaultStates.marker,clickable:!0},circleOptions:{...this.options.googleMaps.map.defaultStates.circle,clickable:!0,editable:!0}}),this.drawingManager=t,google.maps.event.addListener(t,"overlaycomplete",(t=>{t.overlay&&(p.Tf.call(this,t.overlay),t.overlay.setMap(null))}))}catch(t){}}changeCreateMode(t){this.state.mode=this.state.mode===t?"hand":t}onChangeMode(){var t;this.j.buffer.set("createMode.gm",this.state.mode),null===(t=this.drawingManager)||void 0===t||t.setDrawingMode("hand"===this.state.mode?null:this.state.mode),this.j.e.fire("updateToolbar")}onChangeElementsList(){const{state:{elements:t},mapElements:e}=this;e.length>t.length&&e.slice(t.length).forEach((t=>{t.gme.setMap(null)})),e.length=t.length,t.forEach(((t,e)=>h.O.call(this,t,e)))}onChangeCenter(){const t=this.map.getCenter();(null==t?void 0:t.lat())===this.state.center[0]&&(null==t?void 0:t.lng())===this.state.center[1]||this.map.setCenter({lat:this.state.center[0],lng:this.state.center[1]})}onChangeZoom(){var t;null===(t=this.map)||void 0===t||t.setZoom(this.state.zoom)}onChangeControls(){var t;let e;for(e in this.state.controls)null===(t=this.map)||void 0===t||t.set(e,this.state.controls[e])}onChangeBound(){this.options.googleMaps.saveStateInStorage&&this.j.storage.set(c.U,{center:this.state.center,size:this.state.size,zoom:this.state.zoom,type:this.state.type,layer:this.state.layer,controls:this.state.controls})}onChangeSize(){const t=this.getElm("map-size");(0,s.css)(t,{width:this.state.size[0],height:this.state.size[1]})}onChangeMapType(){this.map.setMapTypeId(this.state.type)}onChangeLayer(){switch(this.layers.forEach((t=>t.setMap(null))),this.layers.length=0,this.state.layer){case"traffic":this.layers.push(new google.maps.TrafficLayer);break;case"transit":this.layers.push(new google.maps.TransitLayer);break;case"bicycling":this.layers.push(new google.maps.BicyclingLayer)}this.layers.forEach((t=>t.setMap(this.map)))}render(){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>"}appendChildToContainer(){}constructor(t,e,o){super(t),this.options=o,this.toolbar=new l.ToolbarCollection(this.jodit),this.state={uid:"jd"+(0,i.fe)()+(new Date).toString().replace(/[^0-9]/g,""),layer:this.options.googleMaps.map.layer,center:this.options.googleMaps.map.defaultCenter,zoom:this.options.googleMaps.map.defaultZoom,size:this.options.googleMaps.map.size,type:this.options.googleMaps.map.type,controls:{zoomControl:!0,mapTypeControl:!0,scaleControl:!0,streetViewControl:!0,rotateControl:!0,fullscreenControl:!0},mode:"hand",elements:[]},this.mapElements=[],this.apiLoaded=null,this.mapInitialized=!1,this.layers=[],Object.assign(this.state,e),this.toolbar.build(["gm.hand","gm.marker","gm.polyline","gm.polygon","gm.circle"]),this.getElm("map-palette").appendChild(this.toolbar.container)}}(0,n.gn)([(0,r.hook)("ready")],u.prototype,"onReady",null),(0,n.gn)([(0,r.watch)("?:changeCreateMode.gm")],u.prototype,"changeCreateMode",null),(0,n.gn)([(0,r.watch)("state.mode")],u.prototype,"onChangeMode",null),(0,n.gn)([(0,r.watch)("state.elements")],u.prototype,"onChangeElementsList",null),(0,n.gn)([(0,r.watch)("state.center"),(0,r.wait)((t=>t.mapInitialized)),(0,r.debounce)()],u.prototype,"onChangeCenter",null),(0,n.gn)([(0,r.watch)("state.zoom"),(0,r.debounce)()],u.prototype,"onChangeZoom",null),(0,n.gn)([(0,r.watch)("state.controls")],u.prototype,"onChangeControls",null),(0,n.gn)([(0,r.watch)(["state.center","state.zoom","state.controls","state.size","state.type","state.layer"]),(0,r.wait)((t=>t.mapInitialized)),(0,r.debounce)()],u.prototype,"onChangeBound",null),(0,n.gn)([(0,r.watch)("state.size"),(0,r.debounce)()],u.prototype,"onChangeSize",null),(0,n.gn)([(0,r.watch)("state.type")],u.prototype,"onChangeMapType",null),(0,n.gn)([(0,r.watch)("state.layer")],u.prototype,"onChangeLayer",null)},44629:function(t,e,o){"use strict";o.d(e,{T:function(){return i}});var n=o(26239);function i(t){var e,o,i,a,r,s,l,c;switch(this.state.mode){case"polyline":case"polygon":{const{mode:e}=this.state;this.state.elements=[...this.state.elements,{type:e,coordinates:(0,n.NI)(t.getPath()),...this.options.googleMaps.map.defaultStates[e]}];break}case"circle":{const n=t;this.state.elements=[...this.state.elements,{type:this.state.mode,coordinates:[null!==(o=null===(e=n.getCenter())||void 0===e?void 0:e.lat())&&void 0!==o?o:0,null!==(a=null===(i=n.getCenter())||void 0===i?void 0:i.lng())&&void 0!==a?a:0],radius:n.getRadius(),...this.options.googleMaps.map.defaultStates.circle}];break}case"marker":{const e=t;this.state.elements=[...this.state.elements,{type:this.state.mode,coordinates:[null!==(s=null===(r=e.getPosition())||void 0===r?void 0:r.lat())&&void 0!==s?s:0,null!==(c=null===(l=e.getPosition())||void 0===l?void 0:l.lng())&&void 0!==c?c:0],...this.options.googleMaps.map.defaultStates.marker}];break}}}},99331:function(t,e,o){"use strict";o.d(e,{Tf:function(){return n.T}});var n=o(44629);o(70054)},54700:function(t,e,o){"use strict";o.d(e,{O:function(){return c}});var n=o(22425),i=o(75004),a=o(26239),r=o(81160),s=o(14234),l=o(70054);function c(t,e){var o;const c=this.mapElements[e];if(c){if(c.state.type===t.type)return n.v.call(this,t,e);c.gme.setMap(null)}let h;switch(t.type){case"text":h=new google.maps.Marker({position:new google.maps.LatLng(t.coordinates[0],t.coordinates[1]),draggable:!0,title:t.text,map:this.map});break;case"marker":h=new google.maps.Marker({position:new google.maps.LatLng(t.coordinates[0],t.coordinates[1]),draggable:!0,label:t.showCaption?t.title:"",title:t.title,icon:t.icon?i.JO.get(t.icon):null,map:this.map});break;case"polyline":case"polygon":{const e=(0,a.lL)(t.coordinates);h=new google.maps["polygon"===t.type?"Polygon":"Polyline"]({path:e,strokeColor:t.strokeColor,fillColor:t.fillColor,strokeWeight:t.strokeWeight,editable:!0,draggable:!0,map:this.map,fillOpacity:"polygon"===t.type?t.fillOpacity:1})}break;case"circle":h=new google.maps.Circle({center:new google.maps.LatLng(t.coordinates[0],t.coordinates[1]),radius:t.radius,strokeColor:t.strokeColor,fillColor:t.fillColor,strokeWeight:t.strokeWeight,editable:!0,draggable:!0,map:this.map,fillOpacity:null!==(o=t.fillOpacity)&&void 0!==o?o:1})}const p={type:t.type,uid:(0,r.fe)(),state:t,gme:h};"dragend radius_changed center_changed".split(" ").forEach((t=>h.addListener(t,(()=>s.w.call(this,p,e))))),"polygon"!==p.type&&"polyline"!==p.type||"insert_at set_at remove_at".split(" ").forEach((t=>p.gme.getPath().addListener(t,(()=>s.w.call(this,p,e))))),h.addListener("click",(()=>l.B.call(this,p,e))),this.mapElements[e]=p}},14234:function(t,e,o){"use strict";o.d(e,{w:function(){return a}});var n=o(22425),i=o(26239);function a(t,e){var o,a,r,s;switch(t.type){case"polyline":case"polygon":{const o=(0,i.NI)(t.gme.getPath()),a={...t.state,coordinates:o};n.v.call(this,a,e,!0);break}case"marker":{const i=t.gme.getPosition(),r={...t.state,coordinates:[null!==(o=null==i?void 0:i.lat())&&void 0!==o?o:0,null!==(a=null==i?void 0:i.lng())&&void 0!==a?a:0]};n.v.call(this,r,e,!0);break}case"circle":{const o=t.gme.getCenter(),i={...t.state,radius:t.gme.getRadius(),coordinates:[null!==(r=null==o?void 0:o.lat())&&void 0!==r?r:0,null!==(s=null==o?void 0:o.lng())&&void 0!==s?s:0]};n.v.call(this,i,e,!0);break}}}},70054:function(t,e,o){"use strict";o.d(e,{B:function(){return s}});var n=o(75345),i=o(48207),a=o(22425);function r(){const t=new google.maps.InfoWindow({content:"<div>test</div>"});return t.addListener("domready",(()=>{this.setMod("info-opened",!0)})),t.addListener("closeclick",(()=>{this.setMod("info-opened",!1)})),t}function s(t,e){let o;switch(this.state.mode="hand",t.type){case"polyline":o=new n.eU(this.jodit,t.state,this.options);break;case"marker":o=new n.Ys(this.jodit,t.state,this.options);break;case"circle":case"polygon":o=new n.yX(this.jodit,t.state,this.options)}if(!o)return;this.append(o),this.j.e.on(o,"bin",(()=>{i.b.call(this,t)})).on(o,"change",((o,n)=>{a.v.call(this,{...t.state,[o]:n},e)}));const s=r.call(this);if("polygon"===t.type||"polyline"===t.type){const e=t.gme.getPath().getAt(0);s.setPosition(e)}"circle"===t.type&&s.setPosition(t.gme.getCenter()),s.setContent(o.container),s.open(this.map,t.gme),s.addListener("closeclick",(()=>{o&&(this.remove(o),o.destruct())}))}},48207:function(t,e,o){"use strict";function n(t){const e=this.mapElements.indexOf(t);-1!==e&&(this.mapElements[e].gme.setMap(null),this.mapElements.splice(e,1),this.state.elements.splice(e,1),this.state.elements=[...this.state.elements])}o.d(e,{b:function(){return n}})},22425:function(t,e,o){"use strict";o.d(e,{v:function(){return i}});var n=o(26239);function i(t,e,o=!1){const i=this.mapElements[e];if(i.state===t||i.state.type!==t.type)return;const a=i.state;if(!o){let e;for(e in t){const o=t[e],r=a[e];if(null!=o&&(null==r||o.toString()!==r.toString()))switch(e){case"strokeWeight":case"strokeColor":case"fillColor":case"fillOpacity":switch(i.type){case"polyline":case"circle":case"polygon":i.gme.setOptions({[e]:o})}break;case"coordinates":switch(i.type){case"polygon":case"polyline":i.gme.setPath((0,n.lL)(o))}}}}i.state=t,this.state.elements[e]=t}},42109:function(t,e,o){"use strict";o.d(e,{K:function(){return r}});var n=o(97582),i=o(75004),a=o(50526);let r=class t extends i.x4{className(){return"UIMapsControlsForm"}constructor(t,e){super(t),this.state=e;const o={zoomControl:"Zoom control",mapTypeControl:"Map Type control",scaleControl:"Scale control",streetViewControl:"Street View control ",rotateControl:"Rotate control",fullscreenControl:"Fullscreen control"},n=Object.keys(o);this.append(n.map((e=>new i.mA(t,{label:o[e],name:e,checked:this.state.controls[e],switch:!0,type:"checkbox",onChange:this.onChangeSize.bind(this,e)}))))}onChangeSize(t,e){this.state.controls={...this.state.controls,[t]:"true"===e}}};r=(0,n.gn)([a.component],r)},59342:function(t,e,o){"use strict";o.d(e,{B:function(){return s}});var n=o(97582),i=o(75004),a=o(95582),r=o(50526);let s=class t extends i.x4{className(){return"UIMapsPropsForm"}constructor(t,e){var o;super(t),this.state=e;const[n,a]=e.size,[r,s]=e.center;this.append([new i.u3(t,{label:"Width",name:"width",value:n,type:"number",onChange:this.onChangeSize}),new i.u3(t,{label:"Height",name:"height",value:a,type:"number",onChange:this.onChangeSize}),new i.u3(t,{label:"Latitude",name:"lat",value:r,onChange:this.onChangeCenter}),new i.u3(t,{label:"Longitude",name:"lng",value:s,onChange:this.onChangeCenter}),new i.Cj(t,{label:"Map type",value:e.type,name:"mapType",options:[{value:"hybrid",text:"Hybrid"},{value:"roadmap",text:"Roadmap"},{value:"satellite",text:"Satellite"},{value:"terrain",text:"Terrain"}],onChange:t=>{e.type=t}}),new i.Cj(t,{label:"Layer",value:null!==(o=e.layer)&&void 0!==o?o:"default",name:"layer",options:[{value:"default",text:"Default"},{value:"traffic",text:"Traffic"},{value:"transit",text:"Transit"},{value:"bicycling",text:"Bicycling"}],onChange:t=>{e.layer=t}})])}onChangeSize(){const{width:t,height:e}=(0,a.refs)(this);this.state.size=[parseInt(null==t?void 0:t.value,10)||0,parseInt(null==e?void 0:e.value,10)||0]}onExternalChangeSize(){const{width:t,height:e}=(0,a.refs)(this),[o,n]=this.state.size;o.toString()!==t.value&&(t.value=o.toString()),n.toString()!==e.value&&(e.value=n.toString())}onChangeCenter(){const{lat:t,lng:e}=(0,a.refs)(this);this.state.center=[parseFloat(null==t?void 0:t.value)||0,parseFloat(null==e?void 0:e.value)||0]}onExternalChangeCenter(){const{lat:t,lng:e}=(0,a.refs)(this),[o,n]=this.state.center;o.toString()!==t.value&&(t.value=o.toString()),n.toString()!==e.value&&(e.value=n.toString())}onExternalChangeType(){const{mapType:t}=(0,a.refs)(this);this.state.type!==t.value&&(t.value=this.state.type)}onExternalChangeLayer(){const{layer:t}=(0,a.refs)(this);this.state.layer!==t.value&&(t.value=this.state.layer)}};(0,n.gn)([r.autobind],s.prototype,"onChangeSize",null),(0,n.gn)([(0,r.watch)("state.size")],s.prototype,"onExternalChangeSize",null),(0,n.gn)([r.autobind],s.prototype,"onChangeCenter",null),(0,n.gn)([(0,r.watch)(["state.center"])],s.prototype,"onExternalChangeCenter",null),(0,n.gn)([(0,r.watch)(["state.type"])],s.prototype,"onExternalChangeType",null),(0,n.gn)([(0,r.watch)(["state.layer"])],s.prototype,"onExternalChangeLayer",null),s=(0,n.gn)([r.component],s)},15191:function(t,e,o){"use strict";o.d(e,{d:function(){return s}});var n=o(97582),i=o(15120),a=o(75004),r=o(50526);o(95582);let s=class t extends a.u1{className(){return"UIWysiwyg"}constructor(t,e,o,n){super(t);const a=this.getElm("editor"),r=i.Jodit.make(a,{buttons:["bold","italic","image"],height:100,minHeight:100,allowResizeY:!1,allowResizeX:!1,disablePlugins:["mobile","backup","highlight-signature","tune-block","show-blocks"],toolbarButtonSize:"small",language:t.o.language,direction:t.o.direction,theme:t.o.theme,statusbar:!1,...e});r.value=o,r.e.on("change",(()=>n(r.value)))}render(){return"<div>\n\t\t\t<div class='&__label'>~Info~</div>\n\t\t\t<div class='&__editor'></div>\n\t\t</div>"}};s=(0,n.gn)([r.component],s)}},function(t){return t(t.s=177)}])}));
|
|
10
|
+
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var o=e();for(var n in o)("object"==typeof exports?exports:t)[n]=o[n]}}(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[917],{50403:function(t){t.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>'},13050:function(t){t.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>'},76941:function(t){t.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>'},9472:function(t){t.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>'},35122:function(t){t.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>'},56712:function(t){t.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>'},78400:function(t){t.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>'},28803:function(t){"use strict";"undefined"!=typeof self&&self,t.exports=function(t){var e={};function o(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,o),i.l=!0,i.exports}return o.m=t,o.c=e,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)o.d(n,i,function(e){return t[e]}.bind(null,i));return n},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=1)}([function(t,e,o){var n=o(3);function i(t){return!0===n(t)&&"[object Object]"===Object.prototype.toString.call(t)}t.exports=function(t){var e,o;return!1!==i(t)&&"function"==typeof(e=t.constructor)&&!1!==i(o=e.prototype)&&!1!==o.hasOwnProperty("isPrototypeOf")}},function(t,e,o){Object.defineProperty(e,"__esModule",{value:!0}),e.VERSION=e.PALETTE_MATERIAL_CHROME=e.PALETTE_MATERIAL_500=e.COLOR_NAMES=e.getLuminance=e.intToRgb=e.rgbToInt=e.rgbToHsv=e.rgbToHsl=e.hslToRgb=e.rgbToHex=e.parseColor=e.parseColorToHsla=e.parseColorToHsl=e.parseColorToRgba=e.parseColorToRgb=e.from=e.createPicker=void 0;var n=function(){function t(t,e){for(var o=0;e.length>o;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}(),i=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var o=[],n=!0,i=!1,a=void 0;try{for(var r,s=t[Symbol.iterator]();!(n=(r=s.next()).done)&&(o.push(r.value),!e||o.length!==e);n=!0);}catch(t){i=!0,a=t}finally{try{!n&&s.return&&s.return()}finally{if(i)throw a}}return o}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},a=o(2),r=l(o(0)),s=l(o(4));function l(t){return t&&t.__esModule?t:{default:t}}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t){if(Array.isArray(t)){for(var e=0,o=Array(t.length);t.length>e;e++)o[e]=t[e];return o}return Array.from(t)}var p="undefined"!=typeof window&&window.navigator.userAgent.indexOf("Edge")>-1,u="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]},g="COLOR",m="RGBA_USER",f="HSLA_USER";function v(t,e,o){return t?t instanceof HTMLElement?t:t instanceof NodeList?t[0]:"string"==typeof t?document.querySelector(t):t.jquery?t.get(0):o?e:null:e}function y(t){var e=t.getContext("2d"),o=+t.width,n=+t.height,r=e.createLinearGradient(1,1,1,n-1);return r.addColorStop(0,"white"),r.addColorStop(1,"black"),{setHue:function(t){var i=e.createLinearGradient(1,0,o-1,0);i.addColorStop(0,"hsla("+t+", 100%, 50%, 0)"),i.addColorStop(1,"hsla("+t+", 100%, 50%, 1)"),e.fillStyle=r,e.fillRect(0,0,o,n),e.fillStyle=i,e.globalCompositeOperation="multiply",e.fillRect(0,0,o,n),e.globalCompositeOperation="source-over"},grabColor:function(t,o){return e.getImageData(t,o,1,1).data},findColor:function(t,e,r){var s=(0,a.rgbToHsv)(t,e,r),l=i(s,3);return[l[1]*o,n-l[2]*n]}}}function b(t,e,o){return null===t?e:/^\s*$/.test(t)?o:!!/true|yes|1/i.test(t)||!/false|no|0/i.test(t)&&e}function C(t,e,o){if(null===t)return e;if(/^\s*$/.test(t))return o;var n=t.split(",").map(Number);return 2===n.length&&n[0]&&n[1]?n:e}var k=function(){function t(e,o){if(c(this,t),o?(e=v(e),this.options=Object.assign({},d,o)):e&&(0,r.default)(e)?(this.options=Object.assign({},d,e),e=v(this.options.attachTo)):(this.options=Object.assign({},d),e=v((0,a.nvl)(e,this.options.attachTo))),!e)throw new Error("Container not found: "+this.options.attachTo);!function(t,e){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"acp-";if(e.hasAttribute(o+"show-hsl")&&(t.showHSL=b(e.getAttribute(o+"show-hsl"),d.showHSL,!0)),e.hasAttribute(o+"show-rgb")&&(t.showRGB=b(e.getAttribute(o+"show-rgb"),d.showRGB,!0)),e.hasAttribute(o+"show-hex")&&(t.showHEX=b(e.getAttribute(o+"show-hex"),d.showHEX,!0)),e.hasAttribute(o+"show-alpha")&&(t.showAlpha=b(e.getAttribute(o+"show-alpha"),d.showAlpha,!0)),e.hasAttribute(o+"palette-editable")&&(t.paletteEditable=b(e.getAttribute(o+"palette-editable"),d.paletteEditable,!0)),e.hasAttribute(o+"sl-bar-size")&&(t.slBarSize=C(e.getAttribute(o+"sl-bar-size"),d.slBarSize,[232,150])),e.hasAttribute(o+"hue-bar-size")&&(t.hueBarSize=C(e.getAttribute(o+"hue-bar-size"),d.hueBarSize,[150,11]),t.alphaBarSize=t.hueBarSize),e.hasAttribute(o+"palette")){var n=e.getAttribute(o+"palette");switch(n){case"PALETTE_MATERIAL_500":t.palette=a.PALETTE_MATERIAL_500;break;case"PALETTE_MATERIAL_CHROME":case"":t.palette=a.PALETTE_MATERIAL_CHROME;break;default:t.palette=n.split(/[;|]/)}}e.hasAttribute(o+"color")&&(t.color=e.getAttribute(o+"color"))}(this.options,e),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=s.default,e.appendChild(this.element);var n=this.element.querySelector(".a-color-picker-h");this.setupHueCanvas(n),this.hueBarHelper=y(n),this.huePointer=this.element.querySelector(".a-color-picker-h+.a-color-picker-dot");var i=this.element.querySelector(".a-color-picker-sl");this.setupSlCanvas(i),this.slBarHelper=y(i),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(g,this.options.color)}return n(t,[{key:"setupHueCanvas",value:function(t){var e=this;t.width=this.options.hueBarSize[0],t.height=this.options.hueBarSize[1];for(var o=t.getContext("2d"),n=o.createLinearGradient(0,0,this.options.hueBarSize[0],0),i=0;1>=i;i+=1/360)n.addColorStop(i,"hsl("+360*i+", 100%, 50%)");o.fillStyle=n,o.fillRect(0,0,this.options.hueBarSize[0],this.options.hueBarSize[1]);var r=function(o){var n=(0,a.limit)(o.clientX-t.getBoundingClientRect().left,0,e.options.hueBarSize[0]),i=Math.round(360*n/e.options.hueBarSize[0]);e.huePointer.style.left=n-7+"px",e.onValueChanged("H",i)},s=function t(){document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",t)};t.addEventListener("mousedown",(function(t){r(t),document.addEventListener("mousemove",r),document.addEventListener("mouseup",s)}))}},{key:"setupSlCanvas",value:function(t){var e=this;t.width=this.options.slBarSize[0],t.height=this.options.slBarSize[1];var o=function(o){var n=(0,a.limit)(o.clientX-t.getBoundingClientRect().left,0,e.options.slBarSize[0]-1),i=(0,a.limit)(o.clientY-t.getBoundingClientRect().top,0,e.options.slBarSize[1]-1),r=e.slBarHelper.grabColor(n,i);e.slPointer.style.left=n-7+"px",e.slPointer.style.top=i-7+"px",e.onValueChanged("RGB",r)},n=function t(){document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",t)};t.addEventListener("mousedown",(function(t){o(t),document.addEventListener("mousemove",o),document.addEventListener("mouseup",n)}))}},{key:"setupAlphaCanvas",value:function(t){var e=this;t.width=this.options.alphaBarSize[0],t.height=this.options.alphaBarSize[1];var o=t.getContext("2d"),n=o.createLinearGradient(0,0,t.width-1,0);n.addColorStop(0,"hsla(0, 0%, 50%, 0)"),n.addColorStop(1,"hsla(0, 0%, 50%, 1)"),o.fillStyle=n,o.fillRect(0,0,this.options.alphaBarSize[0],this.options.alphaBarSize[1]);var i=function(o){var n=(0,a.limit)(o.clientX-t.getBoundingClientRect().left,0,e.options.alphaBarSize[0]),i=+(n/e.options.alphaBarSize[0]).toFixed(2);e.alphaPointer.style.left=n-7+"px",e.onValueChanged("ALPHA",i)},r=function t(){document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",t)};t.addEventListener("mousedown",(function(t){i(t),document.addEventListener("mousemove",i),document.addEventListener("mouseup",r)}))}},{key:"setupInput",value:function(t){var e=this,o=+t.min,n=+t.max,i=t.getAttribute("nameref");t.hasAttribute("select-on-focus")&&t.addEventListener("focus",(function(){t.select()})),"text"===t.type?t.addEventListener("change",(function(){e.onValueChanged(i,t.value)})):((p||u)&&t.addEventListener("keydown",(function(r){"Up"===r.key?(t.value=(0,a.limit)(+t.value+1,o,n),e.onValueChanged(i,t.value),r.returnValue=!1):"Down"===r.key&&(t.value=(0,a.limit)(+t.value-1,o,n),e.onValueChanged(i,t.value),r.returnValue=!1)})),t.addEventListener("change",(function(){e.onValueChanged(i,(0,a.limit)(+t.value,o,n))})))}},{key:"setupClipboard",value:function(t){var e=this;t.title="click to copy",t.addEventListener("click",(function(){t.value=(0,a.parseColor)([e.R,e.G,e.B,e.A],"hexcss4"),t.select(),document.execCommand("copy")}))}},{key:"setPalette",value:function(t){var e=this,o="auto"===this.options.useAlphaInPalette?this.options.showAlpha:this.options.useAlphaInPalette,n=null;switch(this.options.palette){case"PALETTE_MATERIAL_500":n=a.PALETTE_MATERIAL_500;break;case"PALETTE_MATERIAL_CHROME":n=a.PALETTE_MATERIAL_CHROME;break;default:n=(0,a.ensureArray)(this.options.palette)}if(this.options.paletteEditable||n.length>0){var i=function(o,n,i){var a=t.querySelector('.a-color-picker-palette-color[data-color="'+o+'"]')||document.createElement("div");a.className="a-color-picker-palette-color",a.style.backgroundColor=o,a.setAttribute("data-color",o),a.title=o,t.insertBefore(a,n),e.palette[o]=!0,i&&e.onPaletteColorAdd(o)},r=function(o,n){o?(t.removeChild(o),e.palette[o.getAttribute("data-color")]=!1,n&&e.onPaletteColorRemove(o.getAttribute("data-color"))):(t.querySelectorAll(".a-color-picker-palette-color[data-color]").forEach((function(e){t.removeChild(e)})),Object.keys(e.palette).forEach((function(t){e.palette[t]=!1})),n&&e.onPaletteColorRemove())};if(n.map((function(t){return(0,a.parseColor)(t,o?"rgbcss4":"hex")})).filter((function(t){return!!t})).forEach((function(t){return i(t)})),this.options.paletteEditable){var s=document.createElement("div");s.className="a-color-picker-palette-color a-color-picker-palette-add",s.innerHTML="+",t.appendChild(s),t.addEventListener("click",(function(t){/a-color-picker-palette-add/.test(t.target.className)?t.shiftKey?r(null,!0):i(o?(0,a.parseColor)([e.R,e.G,e.B,e.A],"rgbcss4"):(0,a.rgbToHex)(e.R,e.G,e.B),t.target,!0):/a-color-picker-palette-color/.test(t.target.className)&&(t.shiftKey?r(t.target,!0):e.onValueChanged(g,t.target.getAttribute("data-color")))}))}else t.addEventListener("click",(function(t){/a-color-picker-palette-color/.test(t.target.className)&&e.onValueChanged(g,t.target.getAttribute("data-color"))}))}else t.style.display="none"}},{key:"updatePalette",value:function(t){this.paletteRow.innerHTML="",this.palette={},this.paletteRow.parentElement||this.element.appendChild(this.paletteRow),this.options.palette=t,this.setPalette(this.paletteRow)}},{key:"onValueChanged",value:function(t,e){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{silent:!1};switch(t){case"H":this.H=e;var n=(0,a.hslToRgb)(this.H,this.S,this.L),r=i(n,3);this.R=r[0],this.G=r[1],this.B=r[2],this.slBarHelper.setHue(e),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);break;case"S":this.S=e;var s=(0,a.hslToRgb)(this.H,this.S,this.L),l=i(s,3);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);break;case"L":this.L=e;var c=(0,a.hslToRgb)(this.H,this.S,this.L),h=i(c,3);this.R=h[0],this.G=h[1],this.B=h[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);break;case"R":this.R=e;var p=(0,a.rgbToHsl)(this.R,this.G,this.B),u=i(p,3);this.H=u[0],this.S=u[1],this.L=u[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);break;case"G":this.G=e;var d=(0,a.rgbToHsl)(this.R,this.G,this.B),v=i(d,3);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);break;case"B":this.B=e;var y=(0,a.rgbToHsl)(this.R,this.G,this.B),b=i(y,3);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.updateInputRGBHEX(this.R,this.G,this.B);break;case"RGB":var C=i(e,3);this.R=C[0],this.G=C[1],this.B=C[2];var k=(0,a.rgbToHsl)(this.R,this.G,this.B),w=i(k,3);this.H=w[0],this.S=w[1],this.L=w[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);break;case m:var E=i(e,4);this.R=E[0],this.G=E[1],this.B=E[2],this.A=E[3];var x=(0,a.rgbToHsl)(this.R,this.G,this.B),A=i(x,3);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.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B),this.updatePointerA(this.A);break;case f:var S=i(e,4);this.H=S[0],this.S=S[1],this.L=S[2],this.A=S[3];var F=(0,a.hslToRgb)(this.H,this.S,this.L),L=i(F,3);this.R=L[0],this.G=L[1],this.B=L[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);break;case"RGBHEX":var B=(0,a.cssColorToRgb)(e)||[this.R,this.G,this.B],R=i(B,3);this.R=R[0],this.G=R[1],this.B=R[2];var H=(0,a.rgbToHsl)(this.R,this.G,this.B),T=i(H,3);this.H=T[0],this.S=T[1],this.L=T[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);break;case g:var M=(0,a.parseColor)(e,"rgba")||[0,0,0,1],I=i(M,4);this.R=I[0],this.G=I[1],this.B=I[2],this.A=I[3];var j=(0,a.rgbToHsl)(this.R,this.G,this.B),z=i(j,3);this.H=z[0],this.S=z[1],this.L=z[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);break;case"ALPHA":this.A=e}this.preview.style.backgroundColor=1===this.A?"rgb("+this.R+","+this.G+","+this.B+")":"rgba("+this.R+","+this.G+","+this.B+","+this.A+")",o&&o.silent||this.onchange&&this.onchange(this.preview.style.backgroundColor)}},{key:"onPaletteColorAdd",value:function(t){this.oncoloradd&&this.oncoloradd(t)}},{key:"onPaletteColorRemove",value:function(t){this.oncolorremove&&this.oncolorremove(t)}},{key:"updateInputHSL",value:function(t,e,o){this.options.showHSL&&(this.inputH.value=t,this.inputS.value=e,this.inputL.value=o)}},{key:"updateInputRGB",value:function(t,e,o){this.options.showRGB&&(this.inputR.value=t,this.inputG.value=e,this.inputB.value=o)}},{key:"updateInputRGBHEX",value:function(t,e,o){this.options.showHEX&&(this.inputRGBHEX.value=(0,a.rgbToHex)(t,e,o))}},{key:"updatePointerH",value:function(t){this.huePointer.style.left=this.options.hueBarSize[0]*t/360-7+"px"}},{key:"updatePointerSL",value:function(t,e,o){var n=(0,a.hslToRgb)(t,e,o),r=i(n,3),s=this.slBarHelper.findColor(r[0],r[1],r[2]),l=i(s,2),c=l[0],h=l[1];c>=0&&(this.slPointer.style.left=c-7+"px",this.slPointer.style.top=h-7+"px")}},{key:"updatePointerA",value:function(t){this.options.showAlpha&&(this.alphaPointer.style.left=this.options.alphaBarSize[0]*t-7+"px")}}]),t}(),w=function(){function t(e){c(this,t),this.name=e,this.listeners=[]}return n(t,[{key:"on",value:function(t){t&&this.listeners.push(t)}},{key:"off",value:function(t){this.listeners=t?this.listeners.filter((function(e){return e!==t})):[]}},{key:"emit",value:function(t,e){for(var o=this.listeners.slice(0),n=0;o.length>n;n++)o[n].apply(e,t)}}]),t}();function E(t,e){var o=new k(t,e),n={change:new w("change"),coloradd:new w("coloradd"),colorremove:new w("colorremove")},r=!0,s={},l={get element(){return o.element},get rgb(){return[o.R,o.G,o.B]},set rgb(t){var e=i(t,3),n=e[0],r=e[1],s=e[2],l=[(0,a.limit)(n,0,255),(0,a.limit)(r,0,255),(0,a.limit)(s,0,255)];o.onValueChanged(m,[n=l[0],r=l[1],s=l[2],1])},get hsl(){return[o.H,o.S,o.L]},set hsl(t){var e=i(t,3),n=e[0],r=e[1],s=e[2],l=[(0,a.limit)(n,0,360),(0,a.limit)(r,0,100),(0,a.limit)(s,0,100)];o.onValueChanged(f,[n=l[0],r=l[1],s=l[2],1])},get rgbhex(){return this.all.hex},get rgba(){return[o.R,o.G,o.B,o.A]},set rgba(t){var e=i(t,4),n=e[0],r=e[1],s=e[2],l=e[3],c=[(0,a.limit)(n,0,255),(0,a.limit)(r,0,255),(0,a.limit)(s,0,255),(0,a.limit)(l,0,1)];o.onValueChanged(m,[n=c[0],r=c[1],s=c[2],l=c[3]])},get hsla(){return[o.H,o.S,o.L,o.A]},set hsla(t){var e=i(t,4),n=e[0],r=e[1],s=e[2],l=e[3],c=[(0,a.limit)(n,0,360),(0,a.limit)(r,0,100),(0,a.limit)(s,0,100),(0,a.limit)(l,0,1)];o.onValueChanged(f,[n=c[0],r=c[1],s=c[2],l=c[3]])},get color(){return this.all.toString()},set color(t){o.onValueChanged(g,t)},setColor:function(t){o.onValueChanged(g,t,{silent:arguments.length>1&&void 0!==arguments[1]&&arguments[1]})},get all(){if(r){var t=[o.R,o.G,o.B,o.A],e=1>o.A?"rgba("+o.R+","+o.G+","+o.B+","+o.A+")":a.rgbToHex.apply(void 0,t);(s=(0,a.parseColor)(t,s)).toString=function(){return e},r=!1}return Object.assign({},s)},get onchange(){return n.change&&n.change.listeners[0]},set onchange(t){this.off("change").on("change",t)},get oncoloradd(){return n.coloradd&&n.coloradd.listeners[0]},set oncoloradd(t){this.off("coloradd").on("coloradd",t)},get oncolorremove(){return n.colorremove&&n.colorremove.listeners[0]},set oncolorremove(t){this.off("colorremove").on("colorremove",t)},get palette(){return Object.keys(o.palette).filter((function(t){return o.palette[t]}))},set palette(t){o.updatePalette(t)},show:function(){o.element.classList.remove("hidden")},hide:function(){o.element.classList.add("hidden")},toggle:function(){o.element.classList.toggle("hidden")},on:function(t,e){return t&&n[t]&&n[t].on(e),this},off:function(t,e){return t&&n[t]&&n[t].off(e),this},destroy:function(){n.change.off(),n.coloradd.off(),n.colorremove.off(),o.element.remove(),n=null,o=null}};return o.onchange=function(){for(var t=arguments.length,e=Array(t),o=0;t>o;o++)e[o]=arguments[o];r=!0,n.change.emit([l].concat(e),l)},o.oncoloradd=function(){for(var t=arguments.length,e=Array(t),o=0;t>o;o++)e[o]=arguments[o];n.coloradd.emit([l].concat(e),l)},o.oncolorremove=function(){for(var t=arguments.length,e=Array(t),o=0;t>o;o++)e[o]=arguments[o];n.colorremove.emit([l].concat(e),l)},o.element.ctrl=l,l}if("undefined"!=typeof window&&!document.querySelector('head>style[data-source="a-color-picker"]')){var x=o(5).toString(),A=document.createElement("style");A.setAttribute("type","text/css"),A.setAttribute("data-source","a-color-picker"),A.innerHTML=x,document.querySelector("head").appendChild(A)}e.createPicker=E,e.from=function(t,e){var o=function(t){return t?Array.isArray(t)?t:t instanceof HTMLElement?[t]:t instanceof NodeList?[].concat(h(t)):"string"==typeof t?[].concat(h(document.querySelectorAll(t))):t.jquery?t.get():[]:[]}(t).map((function(t,o){var n=E(t,e);return n.index=o,n}));return o.on=function(t,e){return o.forEach((function(o){return o.on(t,e)})),this},o.off=function(t){return o.forEach((function(e){return e.off(t)})),this},o},e.parseColorToRgb=a.parseColorToRgb,e.parseColorToRgba=a.parseColorToRgba,e.parseColorToHsl=a.parseColorToHsl,e.parseColorToHsla=a.parseColorToHsla,e.parseColor=a.parseColor,e.rgbToHex=a.rgbToHex,e.hslToRgb=a.hslToRgb,e.rgbToHsl=a.rgbToHsl,e.rgbToHsv=a.rgbToHsv,e.rgbToInt=a.rgbToInt,e.intToRgb=a.intToRgb,e.getLuminance=a.getLuminance,e.COLOR_NAMES=a.COLOR_NAMES,e.PALETTE_MATERIAL_500=a.PALETTE_MATERIAL_500,e.PALETTE_MATERIAL_CHROME=a.PALETTE_MATERIAL_CHROME,e.VERSION="1.2.1"},function(t,e,o){Object.defineProperty(e,"__esModule",{value:!0}),e.nvl=e.ensureArray=e.limit=e.getLuminance=e.parseColor=e.parseColorToHsla=e.parseColorToHsl=e.cssHslaToHsla=e.cssHslToHsl=e.parseColorToRgba=e.parseColorToRgb=e.cssRgbaToRgba=e.cssRgbToRgb=e.cssColorToRgba=e.cssColorToRgb=e.intToRgb=e.rgbToInt=e.rgbToHsv=e.rgbToHsl=e.hslToRgb=e.rgbToHex=e.PALETTE_MATERIAL_CHROME=e.PALETTE_MATERIAL_500=e.COLOR_NAMES=void 0;var n=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var o=[],n=!0,i=!1,a=void 0;try{for(var r,s=t[Symbol.iterator]();!(n=(r=s.next()).done)&&(o.push(r.value),!e||o.length!==e);n=!0);}catch(t){i=!0,a=t}finally{try{!n&&s.return&&s.return()}finally{if(i)throw a}}return o}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(t){return t&&t.__esModule?t:{default:t}}(o(0));function a(t){if(Array.isArray(t)){for(var e=0,o=Array(t.length);t.length>e;e++)o[e]=t[e];return o}return Array.from(t)}var r={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"};function s(t,e,o){return t=+t,isNaN(t)||e>t?e:t>o?o:t}function l(t,e){return null==t?e:t}function c(t,e,o){var n=[s(t,0,255),s(e,0,255),s(o,0,255)];return"#"+("000000"+((t=n[0])<<16|(e=n[1])<<8|(o=n[2])).toString(16)).slice(-6)}function h(t,e,o){var n=void 0,i=void 0,a=void 0,r=[s(t,0,360)/360,s(e,0,100)/100,s(o,0,100)/100];if(t=r[0],o=r[2],0==(e=r[1]))n=i=a=o;else{var l=function(t,e,o){return 0>o&&(o+=1),o>1&&(o-=1),1/6>o?t+6*(e-t)*o:.5>o?e:2/3>o?t+(e-t)*(2/3-o)*6:t},c=.5>o?o*(1+e):o+e-o*e,h=2*o-c;n=l(h,c,t+1/3),i=l(h,c,t),a=l(h,c,t-1/3)}return[255*n,255*i,255*a].map(Math.round)}function p(t,e,o){var n=[s(t,0,255)/255,s(e,0,255)/255,s(o,0,255)/255];t=n[0],e=n[1],o=n[2];var i=Math.max(t,e,o),a=Math.min(t,e,o),r=void 0,l=void 0,c=(i+a)/2;if(i==a)r=l=0;else{var h=i-a;switch(l=c>.5?h/(2-i-a):h/(i+a),i){case t:r=(e-o)/h+(o>e?6:0);break;case e:r=(o-t)/h+2;break;case o:r=(t-e)/h+4}r/=6}return[360*r,100*l,100*c].map(Math.round)}function u(t,e,o){return t<<16|e<<8|o}function d(t){if(t){var e=r[t.toString().toLowerCase()],o=/^\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(e||t)||[],i=n(o,10),a=i[3],s=i[4],l=i[5],c=i[7],h=i[8],p=i[9];if(void 0!==a)return[parseInt(a+a,16),parseInt(s+s,16),parseInt(l+l,16)];if(void 0!==c)return[parseInt(c,16),parseInt(h,16),parseInt(p,16)]}}function g(t){if(t){var e=r[t.toString().toLowerCase()],o=/^\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(e||t)||[],i=n(o,12),a=i[3],s=i[4],l=i[5],c=i[6],h=i[8],p=i[9],u=i[10],d=i[11];if(void 0!==a)return[parseInt(a+a,16),parseInt(s+s,16),parseInt(l+l,16),c?+(parseInt(c+c,16)/255).toFixed(2):1];if(void 0!==h)return[parseInt(h,16),parseInt(p,16),parseInt(u,16),d?+(parseInt(d,16)/255).toFixed(2):1]}}function m(t){if(t){var e=/^rgb\((\d+)[\s,](\d+)[\s,](\d+)\)/i.exec(t)||[],o=n(e,4),i=o[2],a=o[3];return o[0]?[s(o[1],0,255),s(i,0,255),s(a,0,255)]:void 0}}function f(t){if(t){var e=/^rgba?\((\d+)\s*[\s,]\s*(\d+)\s*[\s,]\s*(\d+)(\s*[\s,]\s*(\d*(.\d+)?))?\)/i.exec(t)||[],o=n(e,6),i=o[2],a=o[3],r=o[5];return o[0]?[s(o[1],0,255),s(i,0,255),s(a,0,255),s(l(r,1),0,1)]:void 0}}function v(t){if(Array.isArray(t))return[s(t[0],0,255),s(t[1],0,255),s(t[2],0,255),s(l(t[3],1),0,1)];var e=g(t)||f(t);return e&&3===e.length&&e.push(1),e}function y(t){if(t){var e=/^hsl\((\d+)[\s,](\d+)[\s,](\d+)\)/i.exec(t)||[],o=n(e,4),i=o[2],a=o[3];return o[0]?[s(o[1],0,360),s(i,0,100),s(a,0,100)]:void 0}}function b(t){if(t){var e=/^hsla?\((\d+)\s*[\s,]\s*(\d+)\s*[\s,]\s*(\d+)(\s*[\s,]\s*(\d*(.\d+)?))?\)/i.exec(t)||[],o=n(e,6),i=o[2],a=o[3],r=o[5];return o[0]?[s(o[1],0,255),s(i,0,255),s(a,0,255),s(l(r,1),0,1)]:void 0}}function C(t){if(Array.isArray(t))return[s(t[0],0,360),s(t[1],0,100),s(t[2],0,100),s(l(t[3],1),0,1)];var e=b(t);return e&&3===e.length&&e.push(1),e}function k(t,e){switch(e){case"rgb":default:return t.slice(0,3);case"rgbcss":return"rgb("+t[0]+", "+t[1]+", "+t[2]+")";case"rgbcss4":return"rgb("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")";case"rgba":return t;case"rgbacss":return"rgba("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")";case"hsl":return p.apply(void 0,a(t));case"hslcss":return"hsl("+(t=p.apply(void 0,a(t)))[0]+", "+t[1]+", "+t[2]+")";case"hslcss4":var o=p.apply(void 0,a(t));return"hsl("+o[0]+", "+o[1]+", "+o[2]+", "+t[3]+")";case"hsla":return[].concat(a(p.apply(void 0,a(t))),[t[3]]);case"hslacss":var n=p.apply(void 0,a(t));return"hsla("+n[0]+", "+n[1]+", "+n[2]+", "+t[3]+")";case"hex":return c.apply(void 0,a(t));case"hexcss4":return c.apply(void 0,a(t))+("00"+parseInt(255*t[3]).toString(16)).slice(-2);case"int":return u.apply(void 0,a(t))}}e.COLOR_NAMES=r,e.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"],e.PALETTE_MATERIAL_CHROME=["#f44336","#e91e63","#9c27b0","#673ab7","#3f51b5","#2196f3","#03a9f4","#00bcd4","#009688","#4caf50","#8bc34a","#cddc39","#ffeb3b","#ffc107","#ff9800","#ff5722","#795548","#9e9e9e","#607d8b"],e.rgbToHex=c,e.hslToRgb=h,e.rgbToHsl=p,e.rgbToHsv=function(t,e,o){var n=[s(t,0,255)/255,s(e,0,255)/255,s(o,0,255)/255];t=n[0],e=n[1],o=n[2];var i,a=Math.max(t,e,o),r=Math.min(t,e,o),l=void 0,c=a,h=a-r;if(i=0===a?0:h/a,a==r)l=0;else{switch(a){case t:l=(e-o)/h+(o>e?6:0);break;case e:l=(o-t)/h+2;break;case o:l=(t-e)/h+4}l/=6}return[l,i,c]},e.rgbToInt=u,e.intToRgb=function(t){return[t>>16&255,t>>8&255,255&t]},e.cssColorToRgb=d,e.cssColorToRgba=g,e.cssRgbToRgb=m,e.cssRgbaToRgba=f,e.parseColorToRgb=function(t){return Array.isArray(t)?t=[s(t[0],0,255),s(t[1],0,255),s(t[2],0,255)]:d(t)||m(t)},e.parseColorToRgba=v,e.cssHslToHsl=y,e.cssHslaToHsla=b,e.parseColorToHsl=function(t){return Array.isArray(t)?t=[s(t[0],0,360),s(t[1],0,100),s(t[2],0,100)]:y(t)},e.parseColorToHsla=C,e.parseColor=function(t,e){if(e=e||"rgb",null!=t){var o=void 0;if((o=v(t))||(o=C(t))&&(o=[].concat(a(h.apply(void 0,a(o))),[o[3]])))return(0,i.default)(e)?["rgb","rgbcss","rgbcss4","rgba","rgbacss","hsl","hslcss","hslcss4","hsla","hslacss","hex","hexcss4","int"].reduce((function(t,e){return t[e]=k(o,e),t}),e||{}):k(o,e.toString().toLowerCase())}},e.getLuminance=function(t,e,o){return.2126*(t=.03928>(t/=255)?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(e=.03928>(e/=255)?e/12.92:Math.pow((e+.055)/1.055,2.4))+.0722*(.03928>(o/=255)?o/12.92:Math.pow((o+.055)/1.055,2.4))},e.limit=s,e.ensureArray=function(t){return t?Array.from(t):[]},e.nvl=l},function(t,e,o){t.exports=function(t){return null!=t&&"object"==typeof t&&!1===Array.isArray(t)}},function(t,e){t.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(t,e,o){var n=o(6);t.exports="string"==typeof n?n:n.toString()},function(t,e,o){(t.exports=o(7)(!1)).push([t.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(t,e){t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var o=function(t,e){var o=t[1]||"",n=t[3];if(!n)return o;if(e&&"function"==typeof btoa){var i=function(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}(n),a=n.sources.map((function(t){return"/*# sourceURL="+n.sourceRoot+t+" */"}));return[o].concat(a).concat([i]).join("\n")}return[o].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+o+"}":o})).join("")},e.i=function(t,o){"string"==typeof t&&(t=[[null,t,""]]);for(var n={},i=0;this.length>i;i++){var a=this[i][0];"number"==typeof a&&(n[a]=!0)}for(i=0;t.length>i;i++){var r=t[i];"number"==typeof r[0]&&n[r[0]]||(o&&!r[2]?r[2]=o:o&&(r[2]="("+r[2]+") and ("+o+")"),e.push(r))}},e}}])},48163:function(t,e,o){"use strict";o.d(e,{W:function(){return s}});var n=o(97582),i=o(75004),a=o(50526),r=o(95582);let s=class t extends i.u3{className(){return"UIRange"}constructor(t,e){super(t,{...e,type:"hidden"}),this.state={...i.u3.defaultState,min:0,max:100},this.startValue=0,this.startX=0,this.width=100,Object.assign(this.state,e),this.appendUIRange(),this.onChangeSelfValue()}appendUIRange(){const t=this.j.create.div(this.getFullElName("slider"));this.container.appendChild(t);const e=this.j.create.div(this.getFullElName("handle"));t.appendChild(e);const o=this.j.create.div(this.getFullElName("log"));this.getElm("label").appendChild(o)}onDragStart(t){this.startValue=parseFloat(this.value)||0,this.startX=t.clientX;const e=this.getElm("slider");this.width=e.offsetWidth,this.j.e.on(this.j.ow,"mousemove",this.onDrag)}onDrag(t){const{min:e,max:o}=this.state;let n=this.startValue+(t.clientX-this.startX)/this.width*(this.state.max-this.state.min);e>n&&(n=e),n>o&&(n=o),this.value=n.toString()}onDragEnd(){this.j.e.off(this.j.ow,"mousemove",this.onDrag)}onChangeSelfValue(){const t=this.getElm("handle"),e=parseFloat(this.value)||0;(0,r.css)(t,{left:(e-this.state.min)/(this.state.max-this.state.min)*100+"%"}),this.getElm("log").innerText=e.toString()}destruct(){return this.onDragEnd(),super.destruct()}};(0,n.gn)([(0,a.watch)(["handle:mousedown","handle:touchstart"])],s.prototype,"onDragStart",null),(0,n.gn)([a.autobind],s.prototype,"onDrag",null),(0,n.gn)([(0,a.watch)(["j.ow:mouseup","j.ow:touchend"])],s.prototype,"onDragEnd",null),(0,n.gn)([(0,a.watch)(":change")],s.prototype,"onChangeSelfValue",null),s=(0,n.gn)([a.component],s)},39445:function(t,e,o){"use strict";o.d(e,{T:function(){return h}});var n=o(97582),i=o(75004),a=o(50526),r=o(95582),s=o(28803),l=o(8079),c=o(11612);o(52378);let h=class t extends i.u3{className(){return"ColorInput"}constructor(t,e){super(t,e);const o=new i.GI(t);this.popup=o,this.trigger=(0,i.zx)(this.j,"ok"),this.getElm("wrapper").appendChild(this.trigger.container),this.trigger.container.classList.add(this.getFullElName("trigger")),this.trigger.onAction((()=>{var t,e;null===(e=(t=this.state).onChange)||void 0===e||e.call(t,this.value),o.close()})),o.setMod("padding",!1).setMod("max-height",!1);const n=this.j.create.div(this.getFullElName("picker")),a=s.createPicker(n,{paletteEditable:!0,showAlpha:!0,palette:"PALETTE_MATERIAL_CHROME"}).on("change",((t,e)=>{this.isFocused||(this.value=s.parseColor(e||"","hex"))}));this.j.e.on(this,"change",(()=>{s.parseColor(this.value,"hex")!==a.color&&(a.color=this.value)})),o.setContent(n),this.j.e.on(this.nativeInput,"click",(()=>{o.parentElement=this,this.jodit instanceof l.Dialog&&o.setZIndex(this.jodit.getZIndex()+1),o.open((()=>(0,r.position)(this.container)))})),this.onChangeValue(),this.onChangeSelfValue()}afterSetMode(t,e){"slim"===t&&e&&this.nativeInput.setAttribute("readonly","true")}onChangeSelfValue(){this.nativeInput.style.backgroundColor=this.value}onEscKeyDown(t){var e;t.key===c.KEY_ESC&&(null===(e=this.popup)||void 0===e||e.close())}};(0,n.gn)([(0,a.watch)(":change")],h.prototype,"onChangeSelfValue",null),(0,n.gn)([(0,a.watch)("nativeInput:keydown")],h.prototype,"onEscKeyDown",null),h=(0,n.gn)([a.component],h)},51852:function(t,e,o){"use strict";var n=o(10503),i=o(76941),a=o.n(i),r=o(13050),s=o.n(r),l=o(35122),c=o.n(l),h=o(9472),p=o.n(h),u=o(78400),d=o.n(u),g=o(56712),m=o.n(g),f=o(50403),v=o.n(f);n.J.set("map",a()).set("edit-hand",s()).set("edit-polygon",c()).set("edit-marker",p()).set("edit-text",d()).set("edit-polyline",m()).set("edit-circle",v())},52524:function(t,e,o){"use strict";var n=o(77628),i=o(22709);n.Config.prototype.googleMaps={saveStateInStorage:!0,useStaticImage:!1,apiUrl:"https://maps.googleapis.com/maps/api/js?key=${j.o.googleMaps.API_KEY}&libraries=geometry,places,drawing&language=${j.o.language}&callback=JoditGoogleReadyHandler",API_KEY:"AIzaSyDjnR03hxN8fo0QJ85Jkkvk2DALTh3eynY",dialog:{size:[700,700]},inlineEditorOptions:{buttons:["bold","italic","link","brush","fontsize","image"]},map:{type:"roadmap",layer:"default",center:"auto",defaultCenter:[-34.397,150.644],defaultZoom:10,zoom:10,size:[500,400],defaultStates:{polyline:{strokeColor:"#5ba4f3",strokeWeight:3},polygon:{strokeColor:"#417706",fillColor:"#5b9302",strokeWeight:1,fillOpacity:.5},marker:{},text:{},circle:{strokeColor:"#da767c",fillColor:"#f34ca8",strokeWeight:1,fillOpacity:.5}}}},n.Config.prototype.controls.googleMaps={tooltip:"Google Maps",icon:"map",command:i.o};const a=t=>({icon:`edit-${t}`,isActive:e=>e.buffer.get("createMode.gm")===t,exec:e=>{e.e.fire("changeCreateMode.gm",t)}});n.Config.prototype.controls.gm={hand:a("hand"),marker:a("marker"),polyline:a("polyline"),polygon:a("polygon"),circle:a("circle"),text:a("text")}},177:function(t,e,o){"use strict";o.r(e),o.d(e,{googleMaps:function(){return y}});var n=o(97582),i=o(7324),a=o(53852),r=(o(52524),o(51852),o(68699)),s=o(29788),l=o(95582),c=o(11612),h=o(50526),p=o(1875),u=o(40540),d=o(26239),g=o(3510),m=o(97167),f=o(88408),v=o(22709);window.JoditGoogleReadyHandler=d.VI;class y extends i.S{constructor(){super(...arguments),this.buttons=[{group:"media",name:"googleMaps"}],this.dialog=null}className(){return"google-maps"}afterInit(t){t.registerCommand(v.o,(()=>{this.openMapEditor(null,{})}))}beforeDestruct(t){}onOpenOnDblClick(t){if(t.dataset.googleMaps){let e;try{e=JSON.parse(this.j.ow.atob(t.dataset.googleMaps))}catch(t){}return this.openMapEditor(t,e),!1}}async openMapEditor(t,e){const o=this.j,n=this.getDialog(),i=this.j.o.googleMaps.saveStateInStorage?n.storage.get(v.U):void 0,{apiUrl:a}=this.jodit.o.googleMaps;(0,d.Ez)()||(0,l.appendScriptAsync)(this.jodit,a.replace(/\${([^}]+)}/g,((t,e)=>{var o;return null!==(o=this.get(e))&&void 0!==o?o:""})));const h={type:this.j.o.googleMaps.map.type,layer:this.j.o.googleMaps.map.layer,size:this.j.o.googleMaps.map.size,...i,...e},p=new u.IE(n,h,this.j.options);p.container.classList.add(n.getFullElName("map"));const f=new m.Q(o,{icon:"search",placeholder:"Search",clearButton:!0}).setMod("in-header",!0);f.container.classList.add(n.getFullElName("search")),this.j.async.promise((t=>{if((0,d.Ez)())return void t(0);const e=()=>{(0,d.Ez)()?t(0):this.j.async.setTimeout(e,100)};e(),(0,d.iE)(t)})).then((()=>{p.setStatus("ready"),f.setStatus("ready")})),this.j.e.on(f,"select",((t,e)=>{e?p.map.fitBounds(e):t&&(p.state.center=[t.lat(),t.lng()])})),i||("auto"===this.j.o.googleMaps.map.center?navigator.geolocation.getCurrentPosition((t=>{p.state.center=[t.coords.latitude,t.coords.longitude]}),(()=>{p.state.center=this.j.o.googleMaps.map.defaultCenter})):p.state.center=this.j.o.googleMaps.map.center),n.setSize(...o.o.googleMaps.dialog.size).setHeader([f," ",(0,s.zx)(o,"eye").onAction((()=>{const t=this.jodit.createInside.element("img");t.src=(0,g.v)(p),t.dataset.googleMaps=btoa(p.json());const e={value:t.outerHTML};this.onAfterGetValueFromEditor(e),o.execCommand("preview",null,e.value)}))]).setContent((0,r.IL)(o,[{name:"Map",icon:"map",content:p},{name:"Settings",content:new u.BK(o,p.state)},{name:"Controls",icon:"menu",content:new u.KQ(o,p.state)}])).setFooter([(0,s.zx)(o,"cancel","Cancel","default").onAction((()=>n.close())),(0,s.zx)(o,"ok",t?"Save":"Insert","primary").onAction((()=>{p.destruct(),f.destruct(),n.e.off("beforeClose",y),n.close(),this.insertMap(t,p)}))]).open();const y=()=>{if(p.state.elements.length&&JSON.stringify(p.state.elements)!==JSON.stringify(h.elements)&&!c.IS_TEST&&!confirm(this.i18n("Are you sure?")))return!1;p.destruct(),f.destruct(),n.e.off("beforeClose",y)};n.e.on("beforeClose",y)}getDialog(){if(!this.dialog){const t=new p.V({language:this.j.o.language});t.container.classList.add(this.getFullElName("")),this.dialog=t}return this.dialog}insertMap(t,e){const o=null!=t?t:this.jodit.createInside.element("img");o.src=(0,g.v)(e),o.dataset.googleMaps=btoa(e.json()),t||this.jodit.s.insertImage(o)}onBeforeSetNativeEditorValue(t){t.value=t.value.replace(/<script[^>]+jodit-google-maps-init[^>]+>.*?<\/script>/gs,"")}onAfterGetValueFromEditor(t,e){this.j.o.googleMaps.useStaticImage||e===c.SOURCE_CONSUMER||(t.value=t.value.replace(/(<img[^>]+)(["']?)data-google-maps\2\s*=(["'])([^"']+)\3([^>]*>)/gs,((t,e,o,n,i,a)=>{let r={};try{r=JSON.parse(this.j.ow.atob(i))}catch(t){}return`${e} id="${r.uid}" ${o}data-google-maps${o}=${n}${i}${n}${a}${(0,f.q)(this.j,r)}`})))}}y.requires=["license","color-picker"],(0,n.gn)([(0,h.watch)("?:openOnDblClick")],y.prototype,"onOpenOnDblClick",null),(0,n.gn)([(0,h.watch)(":beforeSetNativeEditorValue")],y.prototype,"onBeforeSetNativeEditorValue",null),(0,n.gn)([(0,h.watch)(":afterGetValueFromEditor")],y.prototype,"onAfterGetValueFromEditor",null),a.y.plugins.add("google-maps",y)},22709:function(t,e,o){"use strict";o.d(e,{U:function(){return n},o:function(){return i}});const n="googleMapsState",i="googleMapsDialog"},88408:function(t,e,o){"use strict";o.d(e,{q:function(){return i}});var n=o(92787);function i(t,e){return`<script class="jodit-google-maps-init" type="text/javascript">\n\t\tvar imgMap = document.getElementById('${e.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${e.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) || ${e.size[0]},\n\t\t\t\th = (imgMap && imgMap.offsetHeight) || ${e.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${e.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: ${e.zoom},\n\t\t\t\tcenter: { lat: ${e.center[0]}, lng: ${e.center[1]}},\n\t\t\t\tmapType: '${e.type}'\n\t\t\t}, ${JSON.stringify(e.controls)}));\n\n\t\t\tif (${"default"!==e.layer}) {\n\t\t\t\tnew google.maps.${(0,n.P)(e.layer)}Layer().setMap(map);\n\t\t\t}\n\n\t\t\tvar infoWindow = new google.maps.InfoWindow();\n\n\t\t\t${JSON.stringify(e.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${e.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=${t.o.googleMaps.API_KEY}&language=${t.o.language}&callback=CreateGMap${e.uid}';\n\t\t\tdocument.appendChild(scr);\n\t\t}\n\t\t/*]]>*/<\/script>`.replace(/[\n\t]+/g,"")}},29343:function(t,e,o){"use strict";o.d(e,{J:function(){return a}});var n=o(2547),i=o(26239);function a(t){return t.state.elements.map((t=>{var e,o,a,r,s,l;switch(t.type){case"polygon":return`&path=fillcolor:${(0,i.n2)(null!==(e=t.fillColor)&&void 0!==e?e:"#fff")}%7Cweight:${null!==(o=t.strokeWeight)&&void 0!==o?o:1}%7Ccolor:${(0,i.n2)(null!==(a=t.strokeColor)&&void 0!==a?a:"#fff")}%7Cenc:${google.maps.geometry.encoding.encodePath((0,i.lL)(t.coordinates))}`;case"polyline":return`&path=weight:${null!==(r=t.strokeWeight)&&void 0!==r?r:1}%7Ccolor:${(0,i.n2)(null!==(s=t.strokeColor)&&void 0!==s?s:"#fff")}%7Cenc:${google.maps.geometry.encoding.encodePath((0,i.lL)(t.coordinates))}`;case"marker":return`&markers=color:blue%7Clabel:${encodeURIComponent((0,n.o)(null!==(l=t.text)&&void 0!==l?l:"").charAt(0).toUpperCase())}%7C${t.coordinates}`}return""})).join("")}},26239:function(t,e,o){"use strict";o.d(e,{Ez:function(){return h},NI:function(){return l},VI:function(){return r},iE:function(){return a},lL:function(){return s},n2:function(){return c}});let n=!1;const i=[];function a(t){n?t():i.push(t)}function r(){n=!0,i&&i.forEach((t=>t()))}function s(t,e=!1){const o=[];if(Array.isArray(t)){if(!Array.isArray(t[0])&&!Array.isArray(t[1]))return e?{lat:t[0],lng:t[1]}:new google.maps.LatLng(t[0],t[1]);t.forEach((t=>{o.push(s(t,e))}))}return o}function l(t){return t.getArray().map((t=>[t.lat(),t.lng()]))}function c(t){return t.toUpperCase().replace("#","0x").padEnd(10,"F")}function h(){return"undefined"!=typeof google&&void 0!==google.maps&&void 0!==google.maps.Map}},3510:function(t,e,o){"use strict";o.d(e,{v:function(){return i}});var n=o(29343);function i(t){const{state:e}=t;return`https://maps.googleapis.com/maps/api/staticmap?center=${e.center.join(",")}&zoom=${e.zoom}&size=${e.size.join("x")}&maptype=${e.type}&key=${t.options.googleMaps.API_KEY}`+(0,n.J)(t)}},97167:function(t,e,o){"use strict";o.d(e,{Q:function(){return r}});var n=o(97582),i=o(75004),a=o(50526);class r extends i.u3{className(){return"UIComboBox"}onReady(){const t=new google.maps.places.Autocomplete(this.nativeInput,{fields:["address_components","geometry","name"],types:["geocode"]});t.addListener("place_changed",(()=>{var e,o;const n=t.getPlace();this.j.e.fire(this,"select",null===(e=n.geometry)||void 0===e?void 0:e.location,null===(o=n.geometry)||void 0===o?void 0:o.viewport)}))}async onInput(){}}(0,n.gn)([(0,a.hook)("ready")],r.prototype,"onReady",null),(0,n.gn)([(0,a.watch)("nativeInput:input"),(0,a.debounce)()],r.prototype,"onInput",null)},57144:function(t,e,o){"use strict";o.d(e,{z:function(){return i}});var n=o(75004);class i extends n.qe{className(){return"UIBaseEditor"}render(){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>"}onReady(){const t=(0,n.zx)(this.j,"bin").onAction((()=>this.j.e.fire(this,"bin")));this.append(t,"buttons")}constructor(t,e,o){super(t),this.state=e,this.options=o}}},75345:function(t,e,o){"use strict";o.d(e,{Ys:function(){return n.Y},eU:function(){return i.e},yX:function(){return a.y}});var n=o(56143),i=o(93565),a=o(61814)},56143:function(t,e,o){"use strict";o.d(e,{Y:function(){return s}});var n=o(97582),i=o(50526),a=o(15191),r=o(57144);let s=class t extends r.z{onReady(){var t;super.onReady();const e=new a.d(this.j,this.options.googleMaps.inlineEditorOptions,null!==(t=this.state.text)&&void 0!==t?t:"",(t=>this.j.e.fire(this,"change","text",t)));this.append(e,"form")}};(0,n.gn)([(0,i.hook)("ready")],s.prototype,"onReady",null),s=(0,n.gn)([i.component],s)},61814:function(t,e,o){"use strict";o.d(e,{y:function(){return l}});var n=o(97582),i=o(50526),a=o(39445),r=o(48163),s=o(93565);let l=class t extends s.e{onReady(){var t,e;this.append([new a.T(this.j,{label:"Fill color",value:null!==(t=this.state.fillColor)&&void 0!==t?t:"#000",onChange:t=>this.j.e.fire(this,"change","fillColor",t)}).setMod("trigger",!1),new r.W(this.j,{label:"Opacity",min:0,max:1,value:null!==(e=this.state.fillOpacity)&&void 0!==e?e:1,onChange:t=>{this.j.e.fire(this,"change","fillOpacity",parseFloat(t)||0)}}).setMod("log",!1)],"form")}};(0,n.gn)([(0,i.hook)("ready")],l.prototype,"onReady",null),l=(0,n.gn)([i.component],l)},93565:function(t,e,o){"use strict";o.d(e,{e:function(){return l}});var n=o(97582),i=o(50526),a=o(77902),r=o(39445),s=o(57144);let l=class t extends s.z{onReady(){var t,e;super.onReady(),this.append([new a.u(this.j,{label:"Stroke weight",value:null!==(t=this.state.strokeWeight)&&void 0!==t?t:1,type:"number",onChange:t=>this.j.e.fire(this,"change","strokeWeight",t)}),new r.T(this.j,{label:"Stroke color",value:null!==(e=this.state.strokeColor)&&void 0!==e?e:"#000",onChange:t=>this.j.e.fire(this,"change","strokeColor",t)}).setMod("trigger",!1)],"form")}};(0,n.gn)([(0,i.hook)("ready")],l.prototype,"onReady",null),l=(0,n.gn)([i.component],l)},40540:function(t,e,o){"use strict";o.d(e,{BK:function(){return i.B},IE:function(){return n.I},KQ:function(){return a.K}});var n=o(43436),i=(o(75345),o(15191),o(59342)),a=o(42109)},43436:function(t,e,o){"use strict";o.d(e,{I:function(){return u}});var n=o(97582),i=o(81160),a=o(75004),r=o(50526),s=o(18002),l=o(60731),c=(o(52378),o(22709)),h=(o(52524),o(54700)),p=o(99331);class u extends a.qe{className(){return"UIMap"}json(){return JSON.stringify({...this.state,mode:"hand"})}async onReady(){await this.apiLoaded;const t=this.getElm("map-root");this.map=new google.maps.Map(t,{center:{lat:this.state.center[0],lng:this.state.center[1]},zoom:this.state.zoom,mapTypeId:this.state.type}),this.map.addListener("zoom_changed",(()=>{var t;this.state.zoom=null!==(t=this.map.getZoom())&&void 0!==t?t:10})),this.map.addListener("center_changed",(()=>{var t,e,o,n,i,a;this.state.center=[null!==(o=null===(e=null===(t=this.map)||void 0===t?void 0:t.getCenter())||void 0===e?void 0:e.lat())&&void 0!==o?o:55,null!==(a=null===(i=null===(n=this.map)||void 0===n?void 0:n.getCenter())||void 0===i?void 0:i.lng())&&void 0!==a?a:34]})),this.map.addListener("maptypeid_changed",(()=>{const t=this.map.getMapTypeId();t&&(this.state.type=t)})),this.initDrawManager(),this.onChangeElementsList(),this.onChangeSize(),this.onChangeControls(),this.onChangeLayer(),this.onChangeMapType(),this.onChangeMode(),this.mapInitialized=!0,this.j.async.requestIdleCallback((()=>{this.j.e.fire(this,"GoogleMapsIsReady")}))}initDrawManager(){try{const t=new google.maps.drawing.DrawingManager;t.setMap(this.map),t.setOptions({drawingControl:!1,polygonOptions:{...this.options.googleMaps.map.defaultStates.polygon,clickable:!0,editable:!0},polylineOptions:{...this.options.googleMaps.map.defaultStates.polyline,clickable:!0,editable:!0},markerOptions:{...this.options.googleMaps.map.defaultStates.marker,clickable:!0},circleOptions:{...this.options.googleMaps.map.defaultStates.circle,clickable:!0,editable:!0}}),this.drawingManager=t,google.maps.event.addListener(t,"overlaycomplete",(t=>{t.overlay&&(p.Tf.call(this,t.overlay),t.overlay.setMap(null))}))}catch(t){}}changeCreateMode(t){this.state.mode=this.state.mode===t?"hand":t}onChangeMode(){var t;this.j.buffer.set("createMode.gm",this.state.mode),null===(t=this.drawingManager)||void 0===t||t.setDrawingMode("hand"===this.state.mode?null:this.state.mode),this.j.e.fire("updateToolbar")}onChangeElementsList(){const{state:{elements:t},mapElements:e}=this;e.length>t.length&&e.slice(t.length).forEach((t=>{t.gme.setMap(null)})),e.length=t.length,t.forEach(((t,e)=>h.O.call(this,t,e)))}onChangeCenter(){const t=this.map.getCenter();(null==t?void 0:t.lat())===this.state.center[0]&&(null==t?void 0:t.lng())===this.state.center[1]||this.map.setCenter({lat:this.state.center[0],lng:this.state.center[1]})}onChangeZoom(){var t;null===(t=this.map)||void 0===t||t.setZoom(this.state.zoom)}onChangeControls(){var t;let e;for(e in this.state.controls)null===(t=this.map)||void 0===t||t.set(e,this.state.controls[e])}onChangeBound(){this.options.googleMaps.saveStateInStorage&&this.j.storage.set(c.U,{center:this.state.center,size:this.state.size,zoom:this.state.zoom,type:this.state.type,layer:this.state.layer,controls:this.state.controls})}onChangeSize(){const t=this.getElm("map-size");(0,s.i)(t,{width:this.state.size[0],height:this.state.size[1]})}onChangeMapType(){this.map.setMapTypeId(this.state.type)}onChangeLayer(){switch(this.layers.forEach((t=>t.setMap(null))),this.layers.length=0,this.state.layer){case"traffic":this.layers.push(new google.maps.TrafficLayer);break;case"transit":this.layers.push(new google.maps.TransitLayer);break;case"bicycling":this.layers.push(new google.maps.BicyclingLayer)}this.layers.forEach((t=>t.setMap(this.map)))}render(){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>"}appendChildToContainer(){}constructor(t,e,o){super(t),this.options=o,this.toolbar=new l.n(this.jodit),this.state={uid:"jd"+(0,i.fe)()+(new Date).toString().replace(/[^0-9]/g,""),layer:this.options.googleMaps.map.layer,center:this.options.googleMaps.map.defaultCenter,zoom:this.options.googleMaps.map.defaultZoom,size:this.options.googleMaps.map.size,type:this.options.googleMaps.map.type,controls:{zoomControl:!0,mapTypeControl:!0,scaleControl:!0,streetViewControl:!0,rotateControl:!0,fullscreenControl:!0},mode:"hand",elements:[]},this.mapElements=[],this.apiLoaded=null,this.mapInitialized=!1,this.layers=[],Object.assign(this.state,e),this.toolbar.build(["gm.hand","gm.marker","gm.polyline","gm.polygon","gm.circle"]),this.getElm("map-palette").appendChild(this.toolbar.container)}}(0,n.gn)([(0,r.hook)("ready")],u.prototype,"onReady",null),(0,n.gn)([(0,r.watch)("?:changeCreateMode.gm")],u.prototype,"changeCreateMode",null),(0,n.gn)([(0,r.watch)("state.mode")],u.prototype,"onChangeMode",null),(0,n.gn)([(0,r.watch)("state.elements")],u.prototype,"onChangeElementsList",null),(0,n.gn)([(0,r.watch)("state.center"),(0,r.wait)((t=>t.mapInitialized)),(0,r.debounce)()],u.prototype,"onChangeCenter",null),(0,n.gn)([(0,r.watch)("state.zoom"),(0,r.debounce)()],u.prototype,"onChangeZoom",null),(0,n.gn)([(0,r.watch)("state.controls")],u.prototype,"onChangeControls",null),(0,n.gn)([(0,r.watch)(["state.center","state.zoom","state.controls","state.size","state.type","state.layer"]),(0,r.wait)((t=>t.mapInitialized)),(0,r.debounce)()],u.prototype,"onChangeBound",null),(0,n.gn)([(0,r.watch)("state.size"),(0,r.debounce)()],u.prototype,"onChangeSize",null),(0,n.gn)([(0,r.watch)("state.type")],u.prototype,"onChangeMapType",null),(0,n.gn)([(0,r.watch)("state.layer")],u.prototype,"onChangeLayer",null)},44629:function(t,e,o){"use strict";o.d(e,{T:function(){return i}});var n=o(26239);function i(t){var e,o,i,a,r,s,l,c;switch(this.state.mode){case"polyline":case"polygon":{const{mode:e}=this.state;this.state.elements=[...this.state.elements,{type:e,coordinates:(0,n.NI)(t.getPath()),...this.options.googleMaps.map.defaultStates[e]}];break}case"circle":{const n=t;this.state.elements=[...this.state.elements,{type:this.state.mode,coordinates:[null!==(o=null===(e=n.getCenter())||void 0===e?void 0:e.lat())&&void 0!==o?o:0,null!==(a=null===(i=n.getCenter())||void 0===i?void 0:i.lng())&&void 0!==a?a:0],radius:n.getRadius(),...this.options.googleMaps.map.defaultStates.circle}];break}case"marker":{const e=t;this.state.elements=[...this.state.elements,{type:this.state.mode,coordinates:[null!==(s=null===(r=e.getPosition())||void 0===r?void 0:r.lat())&&void 0!==s?s:0,null!==(c=null===(l=e.getPosition())||void 0===l?void 0:l.lng())&&void 0!==c?c:0],...this.options.googleMaps.map.defaultStates.marker}];break}}}},99331:function(t,e,o){"use strict";o.d(e,{Tf:function(){return n.T}});var n=o(44629);o(70054)},54700:function(t,e,o){"use strict";o.d(e,{O:function(){return c}});var n=o(81160),i=o(10503),a=o(26239),r=o(14234),s=o(22425),l=o(70054);function c(t,e){var o;const c=this.mapElements[e];if(c){if(c.state.type===t.type)return s.v.call(this,t,e);c.gme.setMap(null)}let h;switch(t.type){case"text":h=new google.maps.Marker({position:new google.maps.LatLng(t.coordinates[0],t.coordinates[1]),draggable:!0,title:t.text,map:this.map});break;case"marker":h=new google.maps.Marker({position:new google.maps.LatLng(t.coordinates[0],t.coordinates[1]),draggable:!0,label:t.showCaption?t.title:"",title:t.title,icon:t.icon?i.J.get(t.icon):null,map:this.map});break;case"polyline":case"polygon":{const e=(0,a.lL)(t.coordinates);h=new google.maps["polygon"===t.type?"Polygon":"Polyline"]({path:e,strokeColor:t.strokeColor,fillColor:t.fillColor,strokeWeight:t.strokeWeight,editable:!0,draggable:!0,map:this.map,fillOpacity:"polygon"===t.type?t.fillOpacity:1})}break;case"circle":h=new google.maps.Circle({center:new google.maps.LatLng(t.coordinates[0],t.coordinates[1]),radius:t.radius,strokeColor:t.strokeColor,fillColor:t.fillColor,strokeWeight:t.strokeWeight,editable:!0,draggable:!0,map:this.map,fillOpacity:null!==(o=t.fillOpacity)&&void 0!==o?o:1})}const p={type:t.type,uid:(0,n.fe)(),state:t,gme:h};"dragend radius_changed center_changed".split(" ").forEach((t=>h.addListener(t,(()=>r.w.call(this,p,e))))),"polygon"!==p.type&&"polyline"!==p.type||"insert_at set_at remove_at".split(" ").forEach((t=>p.gme.getPath().addListener(t,(()=>r.w.call(this,p,e))))),h.addListener("click",(()=>l.B.call(this,p,e))),this.mapElements[e]=p}},14234:function(t,e,o){"use strict";o.d(e,{w:function(){return a}});var n=o(26239),i=o(22425);function a(t,e){var o,a,r,s;switch(t.type){case"polyline":case"polygon":{const o=(0,n.NI)(t.gme.getPath()),a={...t.state,coordinates:o};i.v.call(this,a,e,!0);break}case"marker":{const n=t.gme.getPosition(),r={...t.state,coordinates:[null!==(o=null==n?void 0:n.lat())&&void 0!==o?o:0,null!==(a=null==n?void 0:n.lng())&&void 0!==a?a:0]};i.v.call(this,r,e,!0);break}case"circle":{const o=t.gme.getCenter(),n={...t.state,radius:t.gme.getRadius(),coordinates:[null!==(r=null==o?void 0:o.lat())&&void 0!==r?r:0,null!==(s=null==o?void 0:o.lng())&&void 0!==s?s:0]};i.v.call(this,n,e,!0);break}}}},70054:function(t,e,o){"use strict";o.d(e,{B:function(){return s}});var n=o(75345),i=o(48207),a=o(22425);function r(){const t=new google.maps.InfoWindow({content:"<div>test</div>"});return t.addListener("domready",(()=>{this.setMod("info-opened",!0)})),t.addListener("closeclick",(()=>{this.setMod("info-opened",!1)})),t}function s(t,e){let o;switch(this.state.mode="hand",t.type){case"polyline":o=new n.eU(this.jodit,t.state,this.options);break;case"marker":o=new n.Ys(this.jodit,t.state,this.options);break;case"circle":case"polygon":o=new n.yX(this.jodit,t.state,this.options)}if(!o)return;this.append(o),this.j.e.on(o,"bin",(()=>{i.b.call(this,t)})).on(o,"change",((o,n)=>{a.v.call(this,{...t.state,[o]:n},e)}));const s=r.call(this);if("polygon"===t.type||"polyline"===t.type){const e=t.gme.getPath().getAt(0);s.setPosition(e)}"circle"===t.type&&s.setPosition(t.gme.getCenter()),s.setContent(o.container),s.open(this.map,t.gme),s.addListener("closeclick",(()=>{o&&(this.remove(o),o.destruct())}))}},48207:function(t,e,o){"use strict";function n(t){const e=this.mapElements.indexOf(t);-1!==e&&(this.mapElements[e].gme.setMap(null),this.mapElements.splice(e,1),this.state.elements.splice(e,1),this.state.elements=[...this.state.elements])}o.d(e,{b:function(){return n}})},22425:function(t,e,o){"use strict";o.d(e,{v:function(){return i}});var n=o(26239);function i(t,e,o=!1){const i=this.mapElements[e];if(i.state===t||i.state.type!==t.type)return;const a=i.state;if(!o){let e;for(e in t){const o=t[e],r=a[e];if(null!=o&&(null==r||o.toString()!==r.toString()))switch(e){case"strokeWeight":case"strokeColor":case"fillColor":case"fillOpacity":switch(i.type){case"polyline":case"circle":case"polygon":i.gme.setOptions({[e]:o})}break;case"coordinates":switch(i.type){case"polygon":case"polyline":i.gme.setPath((0,n.lL)(o))}}}}i.state=t,this.state.elements[e]=t}},42109:function(t,e,o){"use strict";o.d(e,{K:function(){return r}});var n=o(97582),i=o(75004),a=o(94707);let r=class t extends i.x4{className(){return"UIMapsControlsForm"}constructor(t,e){super(t),this.state=e;const o={zoomControl:"Zoom control",mapTypeControl:"Map Type control",scaleControl:"Scale control",streetViewControl:"Street View control ",rotateControl:"Rotate control",fullscreenControl:"Fullscreen control"},n=Object.keys(o);this.append(n.map((e=>new i.mA(t,{label:o[e],name:e,checked:this.state.controls[e],switch:!0,type:"checkbox",onChange:this.onChangeSize.bind(this,e)}))))}onChangeSize(t,e){this.state.controls={...this.state.controls,[t]:"true"===e}}};r=(0,n.gn)([a.w],r)},59342:function(t,e,o){"use strict";o.d(e,{B:function(){return s}});var n=o(97582),i=o(75004),a=o(74833),r=o(50526);let s=class t extends i.x4{className(){return"UIMapsPropsForm"}constructor(t,e){var o;super(t),this.state=e;const[n,a]=e.size,[r,s]=e.center;this.append([new i.u3(t,{label:"Width",name:"width",value:n,type:"number",onChange:this.onChangeSize}),new i.u3(t,{label:"Height",name:"height",value:a,type:"number",onChange:this.onChangeSize}),new i.u3(t,{label:"Latitude",name:"lat",value:r,onChange:this.onChangeCenter}),new i.u3(t,{label:"Longitude",name:"lng",value:s,onChange:this.onChangeCenter}),new i.Cj(t,{label:"Map type",value:e.type,name:"mapType",options:[{value:"hybrid",text:"Hybrid"},{value:"roadmap",text:"Roadmap"},{value:"satellite",text:"Satellite"},{value:"terrain",text:"Terrain"}],onChange:t=>{e.type=t}}),new i.Cj(t,{label:"Layer",value:null!==(o=e.layer)&&void 0!==o?o:"default",name:"layer",options:[{value:"default",text:"Default"},{value:"traffic",text:"Traffic"},{value:"transit",text:"Transit"},{value:"bicycling",text:"Bicycling"}],onChange:t=>{e.layer=t}})])}onChangeSize(){const{width:t,height:e}=(0,a.xL)(this);this.state.size=[parseInt(null==t?void 0:t.value,10)||0,parseInt(null==e?void 0:e.value,10)||0]}onExternalChangeSize(){const{width:t,height:e}=(0,a.xL)(this),[o,n]=this.state.size;o.toString()!==t.value&&(t.value=o.toString()),n.toString()!==e.value&&(e.value=n.toString())}onChangeCenter(){const{lat:t,lng:e}=(0,a.xL)(this);this.state.center=[parseFloat(null==t?void 0:t.value)||0,parseFloat(null==e?void 0:e.value)||0]}onExternalChangeCenter(){const{lat:t,lng:e}=(0,a.xL)(this),[o,n]=this.state.center;o.toString()!==t.value&&(t.value=o.toString()),n.toString()!==e.value&&(e.value=n.toString())}onExternalChangeType(){const{mapType:t}=(0,a.xL)(this);this.state.type!==t.value&&(t.value=this.state.type)}onExternalChangeLayer(){const{layer:t}=(0,a.xL)(this);this.state.layer!==t.value&&(t.value=this.state.layer)}};(0,n.gn)([r.autobind],s.prototype,"onChangeSize",null),(0,n.gn)([(0,r.watch)("state.size")],s.prototype,"onExternalChangeSize",null),(0,n.gn)([r.autobind],s.prototype,"onChangeCenter",null),(0,n.gn)([(0,r.watch)(["state.center"])],s.prototype,"onExternalChangeCenter",null),(0,n.gn)([(0,r.watch)(["state.type"])],s.prototype,"onExternalChangeType",null),(0,n.gn)([(0,r.watch)(["state.layer"])],s.prototype,"onExternalChangeLayer",null),s=(0,n.gn)([r.component],s)},15191:function(t,e,o){"use strict";o.d(e,{d:function(){return s}});var n=o(97582),i=o(84789),a=o(94707),r=(o(52378),o(53852));let s=class t extends i.u{className(){return"UIWysiwyg"}constructor(t,e,o,n){super(t);const i=this.getElm("editor"),a=r.y.make(i,{buttons:["bold","italic","image"],height:100,minHeight:100,allowResizeY:!1,allowResizeX:!1,disablePlugins:["mobile","backup","highlight-signature","tune-block","show-blocks"],toolbarButtonSize:"small",language:t.o.language,direction:t.o.direction,theme:t.o.theme,statusbar:!1,...e});a.value=o,a.e.on("change",(()=>n(a.value)))}render(){return"<div>\n\t\t\t<div class='&__label'>~Info~</div>\n\t\t\t<div class='&__editor'></div>\n\t\t</div>"}};s=(0,n.gn)([a.w],s)}},function(t){return t(t.s=177)}])}));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit-pro - PRO Version of Jodit Editor
|
|
3
3
|
* Author: Chupurnov Valeriy <chupurnov@gmail.com>
|
|
4
|
-
* Version: v2.0.0-beta.
|
|
4
|
+
* Version: v2.0.0-beta.21
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
@@ -37,7 +37,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
37
37
|
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(77628);
|
|
38
38
|
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(95582);
|
|
39
39
|
/* harmony import */ var jodit_plugins_placeholder_placeholder__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(86398);
|
|
40
|
-
/* harmony import */ var
|
|
40
|
+
/* harmony import */ var jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(53852);
|
|
41
|
+
/* harmony import */ var _icon_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(97472);
|
|
42
|
+
/* harmony import */ var _icon_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_icon_svg__WEBPACK_IMPORTED_MODULE_5__);
|
|
41
43
|
/*!
|
|
42
44
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
43
45
|
* See LICENSE.md in the project root for license information.
|
|
@@ -48,9 +50,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
48
50
|
|
|
49
51
|
|
|
50
52
|
|
|
53
|
+
|
|
51
54
|
jodit_config__WEBPACK_IMPORTED_MODULE_1__.Config.prototype.controls.google = {
|
|
52
55
|
tooltip: 'Google search',
|
|
53
|
-
icon:
|
|
56
|
+
icon: (_icon_svg__WEBPACK_IMPORTED_MODULE_5___default()),
|
|
54
57
|
isDisabled(e) {
|
|
55
58
|
return (0,jodit_plugins_placeholder_placeholder__WEBPACK_IMPORTED_MODULE_3__/* .isEditorEmpty */ .u)(e.editor);
|
|
56
59
|
},
|
|
@@ -93,7 +96,7 @@ class googleSearch extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_0__/* .Plu
|
|
|
93
96
|
}
|
|
94
97
|
/** @override */
|
|
95
98
|
googleSearch.requires = ['license'];
|
|
96
|
-
|
|
99
|
+
jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_4__/* .JoditPro.plugins.add */ .y.plugins.add('google-search', googleSearch);
|
|
97
100
|
|
|
98
101
|
|
|
99
102
|
/***/ })
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit-pro - PRO Version of Jodit Editor
|
|
3
3
|
* Author: Chupurnov Valeriy <chupurnov@gmail.com>
|
|
4
|
-
* Version: v2.0.0-beta.
|
|
4
|
+
* Version: v2.0.0-beta.21
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
!function(e,o){if("object"==typeof exports&&"object"==typeof module)module.exports=o();else if("function"==typeof define&&define.amd)define([],o);else{var t=o();for(var n in t)("object"==typeof exports?exports:e)[n]=t[n]}}(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[799],{97472:function(e){e.exports='<svg width="11" height="15" viewBox="0 0 11 15" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M10.925 7.122V14H9.747L9.462 13.164C9.044 13.4933 8.55 13.7467 7.98 13.924C7.42267 14.1013 6.82733 14.19 6.194 14.19C5.054 14.19 4.066 13.9177 3.23 13.373C2.394 12.8157 1.75433 12.024 1.311 10.998C0.867667 9.972 0.646 8.756 0.646 7.35C0.646 5.96933 0.880333 4.766 1.349 3.74C1.83033 2.714 2.50167 1.92233 3.363 1.365C4.237 0.794999 5.25667 0.509999 6.422 0.509999C7.41 0.509999 8.284 0.693666 9.044 1.061C9.804 1.42833 10.3613 1.935 10.716 2.581L9.747 3.55C9.41767 3.03067 8.968 2.638 8.398 2.372C7.84067 2.09333 7.18833 1.954 6.441 1.954C5.17433 1.954 4.18633 2.429 3.477 3.379C2.76767 4.329 2.413 5.65267 2.413 7.35C2.413 9.07267 2.755 10.4153 3.439 11.378C4.13567 12.3407 5.10467 12.822 6.346 12.822C6.92867 12.822 7.46067 12.7397 7.942 12.575C8.436 12.4103 8.854 12.1697 9.196 11.853V8.414H6.023V7.122H10.925Z" fill="black"/> </svg>'},93326:function(e,o,t){"use strict";t.r(o),t.d(o,{googleSearch:function(){return
|
|
10
|
+
!function(e,o){if("object"==typeof exports&&"object"==typeof module)module.exports=o();else if("function"==typeof define&&define.amd)define([],o);else{var t=o();for(var n in t)("object"==typeof exports?exports:e)[n]=t[n]}}(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[799],{97472:function(e){e.exports='<svg width="11" height="15" viewBox="0 0 11 15" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M10.925 7.122V14H9.747L9.462 13.164C9.044 13.4933 8.55 13.7467 7.98 13.924C7.42267 14.1013 6.82733 14.19 6.194 14.19C5.054 14.19 4.066 13.9177 3.23 13.373C2.394 12.8157 1.75433 12.024 1.311 10.998C0.867667 9.972 0.646 8.756 0.646 7.35C0.646 5.96933 0.880333 4.766 1.349 3.74C1.83033 2.714 2.50167 1.92233 3.363 1.365C4.237 0.794999 5.25667 0.509999 6.422 0.509999C7.41 0.509999 8.284 0.693666 9.044 1.061C9.804 1.42833 10.3613 1.935 10.716 2.581L9.747 3.55C9.41767 3.03067 8.968 2.638 8.398 2.372C7.84067 2.09333 7.18833 1.954 6.441 1.954C5.17433 1.954 4.18633 2.429 3.477 3.379C2.76767 4.329 2.413 5.65267 2.413 7.35C2.413 9.07267 2.755 10.4153 3.439 11.378C4.13567 12.3407 5.10467 12.822 6.346 12.822C6.92867 12.822 7.46067 12.7397 7.942 12.575C8.436 12.4103 8.854 12.1697 9.196 11.853V8.414H6.023V7.122H10.925Z" fill="black"/> </svg>'},93326:function(e,o,t){"use strict";t.r(o),t.d(o,{googleSearch:function(){return u}});var n=t(7324),r=t(77628),s=t(95582),i=t(86398),l=t(53852),c=t(97472);r.Config.prototype.controls.google={tooltip:"Google search",icon:t.n(c)(),isDisabled(e){return(0,i.u)(e.editor)},command:"startSearch"};class u extends n.S{constructor(){super(...arguments),this.buttons=[{name:"google",group:"search"}]}afterInit(e){e.registerCommand("startSearch",{exec:()=>{var o,t,n;let r;const{s:i}=e;if(r=i.isCollapsed()?null===(t=null===(o=i.current())||void 0===o?void 0:o.parentElement)||void 0===t?void 0:t.innerText:null===(n=i.sel)||void 0===n?void 0:n.toString(),r){const e="https://www.google.com/search?q="+encodeURIComponent((0,s.trim)(r));window.open(e,"_blank")}}})}beforeDestruct(e){}}u.requires=["license"],l.y.plugins.add("google-search",u)}},function(e){return e(e.s=93326)}])}));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit-pro - PRO Version of Jodit Editor
|
|
3
3
|
* Author: Chupurnov Valeriy <chupurnov@gmail.com>
|
|
4
|
-
* Version: v2.0.0-beta.
|
|
4
|
+
* Version: v2.0.0-beta.21
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
@@ -27,12 +27,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
27
27
|
/* harmony export */ "highlightSignature": function() { return /* binding */ highlightSignature; }
|
|
28
28
|
/* harmony export */ });
|
|
29
29
|
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(97582);
|
|
30
|
-
/* harmony import */ var
|
|
30
|
+
/* harmony import */ var jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(35618);
|
|
31
31
|
/* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(50526);
|
|
32
32
|
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(44913);
|
|
33
|
-
/* harmony import */ var
|
|
34
|
-
/* harmony import */ var
|
|
35
|
-
/* harmony import */ var
|
|
33
|
+
/* harmony import */ var jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(77233);
|
|
34
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(77628);
|
|
35
|
+
/* harmony import */ var jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(53852);
|
|
36
36
|
/*!
|
|
37
37
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
38
38
|
* See LICENSE.md in the project root for license information.
|
|
@@ -45,11 +45,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
45
45
|
|
|
46
46
|
|
|
47
47
|
|
|
48
|
-
|
|
48
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_4__.Config.prototype.highlightSignature = {
|
|
49
49
|
schema: {},
|
|
50
50
|
excludeTags: ['pre']
|
|
51
51
|
};
|
|
52
|
-
class highlightSignature extends
|
|
52
|
+
class highlightSignature extends jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_0__/* .Plugin */ .S {
|
|
53
53
|
constructor() {
|
|
54
54
|
super(...arguments);
|
|
55
55
|
this.idleId = 0;
|
|
@@ -197,7 +197,7 @@ class highlightSignature extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_0__/
|
|
|
197
197
|
checkUtilsBoxToSchema() {
|
|
198
198
|
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom.temporaryList */ .i.temporaryList(this.j.editor).forEach((elm) => {
|
|
199
199
|
var _a;
|
|
200
|
-
const schema = (0,
|
|
200
|
+
const schema = (0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_3__/* .attr */ .L)(elm, 'dataHighlightSchema');
|
|
201
201
|
if (!schema) {
|
|
202
202
|
return;
|
|
203
203
|
}
|
|
@@ -218,7 +218,7 @@ highlightSignature.requires = ['license'];
|
|
|
218
218
|
(0,tslib__WEBPACK_IMPORTED_MODULE_6__/* .__decorate */ .gn)([
|
|
219
219
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
220
220
|
], highlightSignature.prototype, "runWorker", null);
|
|
221
|
-
|
|
221
|
+
jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_5__/* .JoditPro.plugins.add */ .y.plugins.add('highlight-signature', highlightSignature);
|
|
222
222
|
|
|
223
223
|
|
|
224
224
|
/***/ })
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit-pro - PRO Version of Jodit Editor
|
|
3
3
|
* Author: Chupurnov Valeriy <chupurnov@gmail.com>
|
|
4
|
-
* Version: v2.0.0-beta.
|
|
4
|
+
* Version: v2.0.0-beta.21
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
"use strict";!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var i=t();for(var r in i)("object"==typeof exports?exports:e)[r]=i[r]}}(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[10],{77842:function(e,t,i){i.r(t),i.d(t,{highlightSignature:function(){return
|
|
10
|
+
"use strict";!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var i=t();for(var r in i)("object"==typeof exports?exports:e)[r]=i[r]}}(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[10],{77842:function(e,t,i){i.r(t),i.d(t,{highlightSignature:function(){return c}});var r=i(97582),o=i(35618),s=i(50526),n=i(44913),a=i(77233),l=i(77628),h=i(53852);l.Config.prototype.highlightSignature={schema:{},excludeTags:["pre"]};class c extends o.S{constructor(){super(...arguments),this.idleId=0}afterInit(e){Object.keys(e.o.highlightSignature.schema).length&&e.e.on("change afterSetMode",this.walkNodes).on("afterGetValueFromEditor",c.removeUtilWrappers)}beforeDestruct(e){e.e.off("change afterSetMode",this.walkNodes).off("afterGetValueFromEditor",c.removeUtilWrappers)}walkNodes(){if(!this.j.isEditorMode())return;this.checkUtilsBoxToSchema();const{j:e}=this,t=e.ed.createNodeIterator(e.editor,NodeFilter.SHOW_TEXT);this.j.async.cancelIdleCallback(this.idleId),this.workLoop(t)}runWorker(e,t){let i;this.j.e.mute();try{do{if(i=t.nextNode(),!i)return;if(this.checkNormalizing(i))return;this.checkReplaceSchemas(i)}while(i&&e.timeRemaining()>0)}finally{this.j.e.unmute()}this.workLoop(t)}workLoop(e){this.idleId=this.j.async.requestIdleCallback((t=>{this.runWorker(t,e)}),{timeout:this.j.defaultTimeout})}checkNormalizing(e){return!!n.i.isText(e.nextSibling)&&(this.j.editor.normalize(),this.walkNodes(),!0)}checkReplaceSchemas(e){if(c.hasUtilWrapper(e))return;const t=e.nodeValue;if(null==t)return;const{j:i}=this,r=i.o.highlightSignature;for(const i in r.schema){const o=RegExp(i);if(o.test(t)){const s=t.match(o);if(!s||void 0===s.index)continue;const a=r.schema[i](this.j,s);if(a)return n.i.markTemporary(a,{dataHighlightSchema:i}),void this.replaceMatchedTextToElm(e,t,s,a)}}}replaceMatchedTextToElm(e,t,i,r){var o;const{j:s}=this,{range:a}=s.s,l=a.startContainer===e,h=a.startOffset,c=null!==(o=i.index)&&void 0!==o?o:0;e.nodeValue=t.substring(0,c);const u=t.substring(c+i[0].length);if(u.length){const t=s.createInside.text(u);n.i.after(e,t)}r.innerText=i[0],n.i.after(e,r),l&&this.restoreCursorPosition(h,e,r.firstChild,r.nextSibling)}static hasUtilWrapper(e){return n.i.isTemporary(e.parentElement)}static removeUtilWrappers(e){e.value=n.i.replaceTemporaryFromString(e.value)}restoreCursorPosition(e,...t){for(const i of t)if(i&&i.nodeValue){const t=i.nodeValue;if(t.length>=e){const t=this.j.s.createRange();t.setStart(i,e),this.j.s.selectRange(t,!1);break}e-=t.length}}checkUtilsBoxToSchema(){n.i.temporaryList(this.j.editor).forEach((e=>{var t;const i=(0,a.L)(e,"dataHighlightSchema");if(!i)return;const r=RegExp(i),o=null!==(t=e.innerText)&&void 0!==t?t:"";r.test(o)&&!o.replace(r,"").length||(this.j.s.save(),n.i.unwrap(e),this.j.s.restore())}))}}c.requires=["license"],(0,r.gn)([(0,s.debounce)()],c.prototype,"walkNodes",null),(0,r.gn)([s.autobind],c.prototype,"runWorker",null),h.y.plugins.add("highlight-signature",c)}},function(e){return e(e.s=77842)}])}));
|