jodit-pro 4.2.24 → 4.2.31
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/.nvmrc +1 -1
- package/es2015/889.fat.min.js +10 -0
- package/es2015/889.js +58 -0
- package/es2015/889.min.js +10 -0
- package/es2015/jodit.css +11 -1
- package/es2015/jodit.fat.min.css +1 -1
- package/es2015/jodit.fat.min.js +2 -2
- package/es2015/jodit.js +474 -246
- package/es2015/jodit.min.css +1 -1
- package/es2015/jodit.min.js +2 -2
- package/es2015/plugins/autocomplete/autocomplete.js +1 -1
- package/es2015/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2015/plugins/backup/backup.css +1 -1
- package/es2015/plugins/backup/backup.js +1 -1
- package/es2015/plugins/backup/backup.min.js +1 -1
- package/es2015/plugins/button-generator/button-generator.css +1 -1
- package/es2015/plugins/button-generator/button-generator.js +1 -1
- package/es2015/plugins/button-generator/button-generator.min.js +1 -1
- package/es2015/plugins/change-case/change-case.js +1 -1
- package/es2015/plugins/change-case/change-case.min.js +1 -1
- package/es2015/plugins/color-picker/color-picker.css +1 -1
- package/es2015/plugins/color-picker/color-picker.js +1 -1
- package/es2015/plugins/color-picker/color-picker.min.js +1 -1
- package/es2015/plugins/emoji/emoji.css +1 -1
- package/es2015/plugins/emoji/emoji.js +1 -1
- package/es2015/plugins/emoji/emoji.min.js +1 -1
- package/es2015/plugins/export-docs/export-docs.js +1 -1
- package/es2015/plugins/export-docs/export-docs.min.js +1 -1
- package/es2015/plugins/finder/finder.css +1 -1
- package/es2015/plugins/finder/finder.js +2 -56
- 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 +7 -3
- package/es2015/plugins/google-maps/google-maps.min.js +1 -1
- package/es2015/plugins/google-search/google-search.js +1 -1
- package/es2015/plugins/google-search/google-search.min.js +1 -1
- package/es2015/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2015/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2015/plugins/keyboard/keyboard.css +1 -1
- package/es2015/plugins/keyboard/keyboard.js +1 -1
- package/es2015/plugins/keyboard/keyboard.min.js +1 -1
- package/es2015/plugins/mobile-view/mobile-view.js +1 -1
- package/es2015/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2015/plugins/page-break/page-break.js +1 -1
- package/es2015/plugins/page-break/page-break.min.js +1 -1
- package/es2015/plugins/paste-code/paste-code.css +1 -1
- package/es2015/plugins/paste-code/paste-code.js +47 -43
- package/es2015/plugins/paste-code/paste-code.min.js +1 -1
- package/es2015/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2015/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2015/plugins/show-blocks/show-blocks.js +77 -39
- 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 +1 -1
- package/es2015/plugins/todo-list/todo-list.min.js +1 -1
- package/es2015/plugins/translate/translate.css +1 -1
- package/es2015/plugins/translate/translate.js +18 -18
- package/es2015/plugins/translate/translate.min.js +1 -1
- package/es2015/plugins/tune-block/tune-block.css +1 -1
- package/es2015/plugins/tune-block/tune-block.js +1 -1
- package/es2015/plugins/tune-block/tune-block.min.js +1 -1
- package/es2018/889.fat.min.js +10 -0
- package/es2018/889.js +58 -0
- package/es2018/889.min.js +10 -0
- package/es2018/jodit.css +11 -1
- package/es2018/jodit.fat.min.css +1 -1
- package/es2018/jodit.fat.min.js +2 -2
- package/es2018/jodit.js +467 -239
- package/es2018/jodit.min.css +1 -1
- package/es2018/jodit.min.js +2 -2
- package/es2018/plugins/autocomplete/autocomplete.js +1 -1
- package/es2018/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2018/plugins/backup/backup.css +1 -1
- package/es2018/plugins/backup/backup.js +1 -1
- package/es2018/plugins/backup/backup.min.js +1 -1
- package/es2018/plugins/button-generator/button-generator.css +1 -1
- package/es2018/plugins/button-generator/button-generator.js +1 -1
- package/es2018/plugins/button-generator/button-generator.min.js +1 -1
- package/es2018/plugins/change-case/change-case.js +1 -1
- package/es2018/plugins/change-case/change-case.min.js +1 -1
- package/es2018/plugins/color-picker/color-picker.css +1 -1
- package/es2018/plugins/color-picker/color-picker.js +1 -1
- package/es2018/plugins/color-picker/color-picker.min.js +1 -1
- package/es2018/plugins/emoji/emoji.css +1 -1
- package/es2018/plugins/emoji/emoji.js +1 -1
- package/es2018/plugins/emoji/emoji.min.js +1 -1
- package/es2018/plugins/export-docs/export-docs.js +1 -1
- package/es2018/plugins/export-docs/export-docs.min.js +1 -1
- package/es2018/plugins/finder/finder.css +1 -1
- package/es2018/plugins/finder/finder.js +2 -56
- 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 +7 -3
- package/es2018/plugins/google-maps/google-maps.min.js +1 -1
- package/es2018/plugins/google-search/google-search.js +1 -1
- package/es2018/plugins/google-search/google-search.min.js +1 -1
- package/es2018/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2018/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2018/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2018/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2018/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2018/plugins/keyboard/keyboard.css +1 -1
- package/es2018/plugins/keyboard/keyboard.js +1 -1
- package/es2018/plugins/keyboard/keyboard.min.js +1 -1
- package/es2018/plugins/mobile-view/mobile-view.js +1 -1
- package/es2018/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2018/plugins/page-break/page-break.js +1 -1
- package/es2018/plugins/page-break/page-break.min.js +1 -1
- package/es2018/plugins/paste-code/paste-code.css +1 -1
- package/es2018/plugins/paste-code/paste-code.js +40 -36
- package/es2018/plugins/paste-code/paste-code.min.js +1 -1
- package/es2018/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2018/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2018/plugins/show-blocks/show-blocks.js +77 -39
- 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 +1 -1
- package/es2018/plugins/todo-list/todo-list.min.js +1 -1
- package/es2018/plugins/translate/translate.css +1 -1
- package/es2018/plugins/translate/translate.js +18 -18
- package/es2018/plugins/translate/translate.min.js +1 -1
- package/es2018/plugins/tune-block/tune-block.css +1 -1
- package/es2018/plugins/tune-block/tune-block.js +1 -1
- package/es2018/plugins/tune-block/tune-block.min.js +1 -1
- package/es2021/889.fat.min.js +10 -0
- package/es2021/889.js +58 -0
- package/es2021/889.min.js +10 -0
- package/es2021/jodit.css +11 -1
- package/es2021/jodit.fat.min.css +1 -1
- package/es2021/jodit.fat.min.js +2 -2
- package/es2021/jodit.js +467 -239
- package/es2021/jodit.min.css +1 -1
- package/es2021/jodit.min.js +2 -2
- package/es2021/plugins/autocomplete/autocomplete.js +1 -1
- package/es2021/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2021/plugins/backup/backup.css +1 -1
- package/es2021/plugins/backup/backup.js +1 -1
- package/es2021/plugins/backup/backup.min.js +1 -1
- package/es2021/plugins/button-generator/button-generator.css +1 -1
- package/es2021/plugins/button-generator/button-generator.js +1 -1
- package/es2021/plugins/button-generator/button-generator.min.js +1 -1
- package/es2021/plugins/change-case/change-case.js +1 -1
- package/es2021/plugins/change-case/change-case.min.js +1 -1
- package/es2021/plugins/color-picker/color-picker.css +1 -1
- package/es2021/plugins/color-picker/color-picker.js +1 -1
- package/es2021/plugins/color-picker/color-picker.min.js +1 -1
- package/es2021/plugins/emoji/emoji.css +1 -1
- package/es2021/plugins/emoji/emoji.js +1 -1
- package/es2021/plugins/emoji/emoji.min.js +1 -1
- package/es2021/plugins/export-docs/export-docs.js +1 -1
- package/es2021/plugins/export-docs/export-docs.min.js +1 -1
- package/es2021/plugins/finder/finder.css +1 -1
- package/es2021/plugins/finder/finder.js +2 -56
- 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 +7 -3
- package/es2021/plugins/google-maps/google-maps.min.js +1 -1
- package/es2021/plugins/google-search/google-search.js +1 -1
- package/es2021/plugins/google-search/google-search.min.js +1 -1
- package/es2021/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2021/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2021/plugins/keyboard/keyboard.css +1 -1
- package/es2021/plugins/keyboard/keyboard.js +1 -1
- package/es2021/plugins/keyboard/keyboard.min.js +1 -1
- package/es2021/plugins/mobile-view/mobile-view.js +1 -1
- package/es2021/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2021/plugins/page-break/page-break.js +1 -1
- package/es2021/plugins/page-break/page-break.min.js +1 -1
- package/es2021/plugins/paste-code/paste-code.css +1 -1
- package/es2021/plugins/paste-code/paste-code.js +40 -36
- package/es2021/plugins/paste-code/paste-code.min.js +1 -1
- package/es2021/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2021/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2021/plugins/show-blocks/show-blocks.js +77 -39
- 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 +1 -1
- package/es2021/plugins/todo-list/todo-list.min.js +1 -1
- package/es2021/plugins/translate/translate.css +1 -1
- package/es2021/plugins/translate/translate.js +18 -18
- package/es2021/plugins/translate/translate.min.js +1 -1
- package/es2021/plugins/tune-block/tune-block.css +1 -1
- package/es2021/plugins/tune-block/tune-block.js +1 -1
- package/es2021/plugins/tune-block/tune-block.min.js +1 -1
- package/es2021.en/889.fat.min.js +10 -0
- package/es2021.en/889.js +24 -0
- package/es2021.en/889.min.js +10 -0
- package/es2021.en/jodit.css +11 -1
- package/es2021.en/jodit.fat.min.css +1 -1
- package/es2021.en/jodit.fat.min.js +2 -2
- package/es2021.en/jodit.js +442 -233
- package/es2021.en/jodit.min.css +1 -1
- package/es2021.en/jodit.min.js +2 -2
- package/es2021.en/plugins/autocomplete/autocomplete.js +1 -1
- package/es2021.en/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2021.en/plugins/backup/backup.css +1 -1
- package/es2021.en/plugins/backup/backup.js +1 -1
- package/es2021.en/plugins/backup/backup.min.js +1 -1
- package/es2021.en/plugins/button-generator/button-generator.css +1 -1
- package/es2021.en/plugins/button-generator/button-generator.js +1 -1
- package/es2021.en/plugins/button-generator/button-generator.min.js +1 -1
- package/es2021.en/plugins/change-case/change-case.js +1 -1
- package/es2021.en/plugins/change-case/change-case.min.js +1 -1
- package/es2021.en/plugins/color-picker/color-picker.css +1 -1
- package/es2021.en/plugins/color-picker/color-picker.js +1 -1
- package/es2021.en/plugins/color-picker/color-picker.min.js +1 -1
- package/es2021.en/plugins/emoji/emoji.css +1 -1
- package/es2021.en/plugins/emoji/emoji.js +1 -1
- package/es2021.en/plugins/emoji/emoji.min.js +1 -1
- package/es2021.en/plugins/export-docs/export-docs.js +1 -1
- package/es2021.en/plugins/export-docs/export-docs.min.js +1 -1
- package/es2021.en/plugins/finder/finder.css +1 -1
- package/es2021.en/plugins/finder/finder.js +2 -21
- 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 +7 -3
- package/es2021.en/plugins/google-maps/google-maps.min.js +1 -1
- package/es2021.en/plugins/google-search/google-search.js +1 -1
- package/es2021.en/plugins/google-search/google-search.min.js +1 -1
- package/es2021.en/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2021.en/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2021.en/plugins/keyboard/keyboard.css +1 -1
- package/es2021.en/plugins/keyboard/keyboard.js +1 -1
- package/es2021.en/plugins/keyboard/keyboard.min.js +1 -1
- package/es2021.en/plugins/mobile-view/mobile-view.js +1 -1
- package/es2021.en/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2021.en/plugins/page-break/page-break.js +1 -1
- package/es2021.en/plugins/page-break/page-break.min.js +1 -1
- package/es2021.en/plugins/paste-code/paste-code.css +1 -1
- package/es2021.en/plugins/paste-code/paste-code.js +40 -36
- package/es2021.en/plugins/paste-code/paste-code.min.js +1 -1
- package/es2021.en/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2021.en/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2021.en/plugins/show-blocks/show-blocks.js +41 -39
- 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 +1 -1
- package/es2021.en/plugins/todo-list/todo-list.min.js +1 -1
- package/es2021.en/plugins/translate/translate.css +1 -1
- package/es2021.en/plugins/translate/translate.js +18 -18
- package/es2021.en/plugins/translate/translate.min.js +1 -1
- package/es2021.en/plugins/tune-block/tune-block.css +1 -1
- package/es2021.en/plugins/tune-block/tune-block.js +1 -1
- package/es2021.en/plugins/tune-block/tune-block.min.js +1 -1
- package/es5/292.fat.min.js +10 -0
- package/es5/292.js +5011 -0
- package/es5/292.min.js +10 -0
- package/es5/889.fat.min.js +10 -0
- package/es5/889.js +58 -0
- package/es5/889.min.js +10 -0
- package/es5/jodit.css +12 -2
- package/es5/jodit.fat.min.css +1 -1
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +765 -5675
- package/es5/jodit.min.css +3 -3
- package/es5/jodit.min.js +2 -2
- package/es5/plugins/autocomplete/autocomplete.js +1 -1
- package/es5/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es5/plugins/backup/backup.css +1 -1
- package/es5/plugins/backup/backup.js +1 -1
- package/es5/plugins/backup/backup.min.js +1 -1
- package/es5/plugins/button-generator/button-generator.css +1 -1
- package/es5/plugins/button-generator/button-generator.js +1 -1
- package/es5/plugins/button-generator/button-generator.min.js +1 -1
- package/es5/plugins/change-case/change-case.js +1 -1
- package/es5/plugins/change-case/change-case.min.js +1 -1
- package/es5/plugins/color-picker/color-picker.css +1 -1
- package/es5/plugins/color-picker/color-picker.js +1 -1
- package/es5/plugins/color-picker/color-picker.min.js +1 -1
- package/es5/plugins/emoji/emoji.css +1 -1
- package/es5/plugins/emoji/emoji.js +1 -1
- package/es5/plugins/emoji/emoji.min.js +1 -1
- package/es5/plugins/export-docs/export-docs.js +1 -1
- package/es5/plugins/export-docs/export-docs.min.js +1 -1
- package/es5/plugins/finder/finder.css +1 -1
- package/es5/plugins/finder/finder.js +2 -56
- 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 +7 -3
- package/es5/plugins/google-maps/google-maps.min.js +1 -1
- package/es5/plugins/google-search/google-search.js +1 -1
- package/es5/plugins/google-search/google-search.min.js +1 -1
- package/es5/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es5/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es5/plugins/keyboard/keyboard.css +1 -1
- package/es5/plugins/keyboard/keyboard.js +1 -1
- package/es5/plugins/keyboard/keyboard.min.js +1 -1
- package/es5/plugins/mobile-view/mobile-view.js +1 -1
- package/es5/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es5/plugins/page-break/page-break.js +1 -1
- package/es5/plugins/page-break/page-break.min.js +1 -1
- package/es5/plugins/paste-code/paste-code.css +1 -1
- package/es5/plugins/paste-code/paste-code.js +50 -46
- package/es5/plugins/paste-code/paste-code.min.js +1 -1
- package/es5/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es5/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es5/plugins/show-blocks/show-blocks.js +77 -39
- 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 +1 -1
- package/es5/plugins/todo-list/todo-list.min.js +1 -1
- package/es5/plugins/translate/translate.css +1 -1
- package/es5/plugins/translate/translate.js +24 -24
- package/es5/plugins/translate/translate.min.js +1 -1
- package/es5/plugins/tune-block/tune-block.css +1 -1
- package/es5/plugins/tune-block/tune-block.js +1 -1
- package/es5/plugins/tune-block/tune-block.min.js +1 -1
- package/esm/plugins/finder/config.js +1 -1
- package/esm/plugins/finder/langs/index.d.ts +1 -1
- package/esm/plugins/finder/langs/index.js +6 -0
- package/esm/plugins/finder/langs/ru.js +6 -0
- package/esm/plugins/google-maps/helpers/helpers.d.ts +0 -1
- package/esm/plugins/google-maps/ui/map/map.d.ts +0 -1
- package/esm/plugins/paste-from-word/element/render.js +1 -1
- package/esm/plugins/paste-from-word/element/style.js +1 -1
- package/esm/plugins/show-blocks/langs/ar.js +6 -0
- package/esm/plugins/show-blocks/langs/cs_cz.js +6 -0
- package/esm/plugins/show-blocks/langs/de.js +6 -0
- package/esm/plugins/show-blocks/langs/es.js +6 -0
- package/esm/plugins/show-blocks/langs/fa.js +6 -0
- package/esm/plugins/show-blocks/langs/fr.js +6 -0
- package/esm/plugins/show-blocks/langs/he.js +6 -0
- package/esm/plugins/show-blocks/langs/hu.js +6 -0
- package/esm/plugins/show-blocks/langs/id.js +6 -0
- package/esm/plugins/show-blocks/langs/index.d.ts +19 -19
- package/esm/plugins/show-blocks/langs/index.js +1 -1
- package/esm/plugins/show-blocks/langs/it.js +6 -0
- package/esm/plugins/show-blocks/langs/ja.js +6 -0
- package/esm/plugins/show-blocks/langs/ko.js +6 -0
- package/esm/plugins/show-blocks/langs/nl.js +6 -0
- package/esm/plugins/show-blocks/langs/pl.js +6 -0
- package/esm/plugins/show-blocks/langs/pt_br.js +6 -0
- package/esm/plugins/show-blocks/langs/ru.js +6 -0
- package/esm/plugins/show-blocks/langs/tr.js +6 -0
- package/esm/plugins/show-blocks/langs/zh_cn.js +6 -0
- package/esm/plugins/show-blocks/langs/zh_tw.js +6 -0
- package/package.json +1 -1
- package/types/plugins/finder/langs/index.d.ts +1 -1
- package/types/plugins/google-maps/helpers/helpers.d.ts +0 -1
- package/types/plugins/google-maps/ui/map/map.d.ts +0 -1
- package/types/plugins/show-blocks/langs/index.d.ts +19 -19
package/es2021.en/jodit.js
CHANGED
|
@@ -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: v4.2.
|
|
4
|
+
* Version: v4.2.31
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
@@ -814,16 +814,12 @@ class Config {
|
|
|
814
814
|
showPlaceholder: false
|
|
815
815
|
}
|
|
816
816
|
};
|
|
817
|
-
this.ownerDocument =
|
|
818
|
-
? document
|
|
819
|
-
: null);
|
|
817
|
+
this.ownerDocument = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument;
|
|
820
818
|
/**
|
|
821
819
|
* Allows you to specify the window in which the editor will be created. Default - window
|
|
822
820
|
* This is necessary if you are creating the editor inside an iframe but the code is running in the parent window
|
|
823
821
|
*/
|
|
824
|
-
this.ownerWindow =
|
|
825
|
-
? window
|
|
826
|
-
: null);
|
|
822
|
+
this.ownerWindow = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow;
|
|
827
823
|
/**
|
|
828
824
|
* Shadow root if Jodit was created in it
|
|
829
825
|
*
|
|
@@ -1597,16 +1593,16 @@ Config.prototype.controls = {};
|
|
|
1597
1593
|
/* harmony export */ j: function() { return /* binding */ Async; }
|
|
1598
1594
|
/* harmony export */ });
|
|
1599
1595
|
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
|
|
1600
|
-
/* harmony import */ var
|
|
1596
|
+
/* harmony import */ var jodit_core_helpers_async__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(61239);
|
|
1601
1597
|
/* harmony import */ var jodit_core_helpers_checker_is_abort_error__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(54306);
|
|
1602
1598
|
/* harmony import */ var jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(41959);
|
|
1603
|
-
/* harmony import */ var
|
|
1599
|
+
/* harmony import */ var jodit_core_helpers_checker_is_number__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(72558);
|
|
1604
1600
|
/* harmony import */ var jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(47903);
|
|
1605
1601
|
/* harmony import */ var jodit_core_helpers_checker_is_promise__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(75138);
|
|
1606
1602
|
/* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(26986);
|
|
1607
|
-
/* harmony import */ var
|
|
1608
|
-
/* harmony import */ var
|
|
1609
|
-
/* harmony import */ var
|
|
1603
|
+
/* harmony import */ var jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(74197);
|
|
1604
|
+
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(28712);
|
|
1605
|
+
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2__);
|
|
1610
1606
|
/* harmony import */ var jodit_core_helpers_utils_error_errors_abort_error__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(30126);
|
|
1611
1607
|
/*!
|
|
1612
1608
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
@@ -1657,17 +1653,18 @@ class Async {
|
|
|
1657
1653
|
return 0;
|
|
1658
1654
|
}
|
|
1659
1655
|
let options = {};
|
|
1660
|
-
if ((0,
|
|
1656
|
+
if ((0,jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_3__/* .isVoid */ .R)(timeout)) {
|
|
1661
1657
|
timeout = 0;
|
|
1662
1658
|
}
|
|
1663
|
-
if (!(0,
|
|
1659
|
+
if (!(0,jodit_core_helpers_checker_is_number__WEBPACK_IMPORTED_MODULE_4__/* .isNumber */ .E)(timeout)) {
|
|
1664
1660
|
options = timeout;
|
|
1665
1661
|
timeout = options.timeout || 0;
|
|
1666
1662
|
}
|
|
1667
1663
|
if (options.label) {
|
|
1668
1664
|
this.clearLabel(options.label);
|
|
1669
1665
|
}
|
|
1670
|
-
const timer = (0,
|
|
1666
|
+
const timer = (0,jodit_core_helpers_async__WEBPACK_IMPORTED_MODULE_1__/* .setTimeout */ .w)(callback, timeout, ...args);
|
|
1667
|
+
const key = options.label || timer;
|
|
1671
1668
|
this.timers.set(key, timer);
|
|
1672
1669
|
this.__callbacks.set(key, callback);
|
|
1673
1670
|
return timer;
|
|
@@ -1683,7 +1680,7 @@ class Async {
|
|
|
1683
1680
|
}
|
|
1684
1681
|
clearLabel(label) {
|
|
1685
1682
|
if (label && this.timers.has(label)) {
|
|
1686
|
-
(0,
|
|
1683
|
+
(0,jodit_core_helpers_async__WEBPACK_IMPORTED_MODULE_1__/* .clearTimeout */ .D)(this.timers.get(label));
|
|
1687
1684
|
this.timers.delete(label);
|
|
1688
1685
|
this.__callbacks.delete(label);
|
|
1689
1686
|
}
|
|
@@ -1692,7 +1689,7 @@ class Async {
|
|
|
1692
1689
|
if ((0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_5__/* .isString */ .K)(timerOrLabel)) {
|
|
1693
1690
|
return this.clearLabel(timerOrLabel);
|
|
1694
1691
|
}
|
|
1695
|
-
(0,
|
|
1692
|
+
(0,jodit_core_helpers_async__WEBPACK_IMPORTED_MODULE_1__/* .clearTimeout */ .D)(timerOrLabel);
|
|
1696
1693
|
this.timers.delete(timerOrLabel);
|
|
1697
1694
|
this.__callbacks.delete(timerOrLabel);
|
|
1698
1695
|
}
|
|
@@ -1734,7 +1731,7 @@ class Async {
|
|
|
1734
1731
|
if (!timer && firstCallImmediately) {
|
|
1735
1732
|
callFn(...args);
|
|
1736
1733
|
}
|
|
1737
|
-
(0,
|
|
1734
|
+
(0,jodit_core_helpers_async__WEBPACK_IMPORTED_MODULE_1__/* .clearTimeout */ .D)(timer);
|
|
1738
1735
|
timer = this.setTimeout(() => callFn(...args), (0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_7__/* .isFunction */ .T)(timeout) ? timeout() : timeout);
|
|
1739
1736
|
this.timers.set(fn, timer);
|
|
1740
1737
|
}
|
|
@@ -1888,7 +1885,7 @@ class Async {
|
|
|
1888
1885
|
clear() {
|
|
1889
1886
|
this.requestsIdle.forEach(key => this.cancelIdleCallback(key));
|
|
1890
1887
|
this.requestsRaf.forEach(key => this.cancelAnimationFrame(key));
|
|
1891
|
-
this.timers.forEach(key => (0,
|
|
1888
|
+
this.timers.forEach(key => (0,jodit_core_helpers_async__WEBPACK_IMPORTED_MODULE_1__/* .clearTimeout */ .D)(this.timers.get(key)));
|
|
1892
1889
|
this.timers.clear();
|
|
1893
1890
|
this.promisesRejections.forEach(reject => reject());
|
|
1894
1891
|
this.promisesRejections.clear();
|
|
@@ -2297,6 +2294,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2297
2294
|
/* harmony export */ TEXT_PLAIN: function() { return /* binding */ TEXT_PLAIN; },
|
|
2298
2295
|
/* harmony export */ TEXT_RTF: function() { return /* binding */ TEXT_RTF; },
|
|
2299
2296
|
/* harmony export */ TOKENS: function() { return /* binding */ TOKENS; },
|
|
2297
|
+
/* harmony export */ globalDocument: function() { return /* binding */ globalDocument; },
|
|
2298
|
+
/* harmony export */ globalWindow: function() { return /* binding */ globalWindow; },
|
|
2300
2299
|
/* harmony export */ lang: function() { return /* binding */ lang; }
|
|
2301
2300
|
/* harmony export */ });
|
|
2302
2301
|
/*!
|
|
@@ -2304,7 +2303,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2304
2303
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
2305
2304
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
2306
2305
|
*/
|
|
2307
|
-
const APP_VERSION = "4.2.
|
|
2306
|
+
const APP_VERSION = "4.2.31";
|
|
2308
2307
|
// prettier-ignore
|
|
2309
2308
|
const ES = "es2021";
|
|
2310
2309
|
const IS_ES_MODERN = true;
|
|
@@ -2323,6 +2322,10 @@ const INVISIBLE_SPACE_REG_EXP_START = () => /^[\uFEFF]+/g;
|
|
|
2323
2322
|
const SPACE_REG_EXP = () => /[\s\n\t\r\uFEFF\u200b]+/g;
|
|
2324
2323
|
const SPACE_REG_EXP_START = () => /^[\s\n\t\r\uFEFF\u200b]+/g;
|
|
2325
2324
|
const SPACE_REG_EXP_END = () => /[\s\n\t\r\uFEFF\u200b]+$/g;
|
|
2325
|
+
const globalWindow = typeof window !== 'undefined' ? window : undefined;
|
|
2326
|
+
const globalDocument = typeof document !== 'undefined'
|
|
2327
|
+
? document
|
|
2328
|
+
: undefined;
|
|
2326
2329
|
const IS_BLOCK = /^(ADDRESS|ARTICLE|ASIDE|BLOCKQUOTE|CANVAS|DD|DFN|DIV|DL|DT|FIELDSET|FIGCAPTION|FIGURE|FOOTER|FORM|H[1-6]|HEADER|HGROUP|HR|LI|MAIN|NAV|NOSCRIPT|OUTPUT|P|PRE|RUBY|SCRIPT|STYLE|OBJECT|OL|SECTION|IFRAME|JODIT|JODIT-MEDIA|UL|TR|TD|TH|TBODY|THEAD|TFOOT|TABLE|BODY|HTML|VIDEO)$/i;
|
|
2327
2330
|
const IS_INLINE = /^(STRONG|SPAN|I|EM|B|SUP|SUB|A|U)$/i;
|
|
2328
2331
|
const LIST_TAGS = new Set(['ul', 'ol']);
|
|
@@ -2447,8 +2450,8 @@ const INSERT_AS_TEXT = 'insert_as_text';
|
|
|
2447
2450
|
*/
|
|
2448
2451
|
const INSERT_ONLY_TEXT = 'insert_only_text';
|
|
2449
2452
|
const SAFE_COUNT_CHANGE_CALL = 10;
|
|
2450
|
-
const IS_MAC = typeof
|
|
2451
|
-
/Mac|iPod|iPhone|iPad/.test(
|
|
2453
|
+
const IS_MAC = typeof globalWindow !== 'undefined' &&
|
|
2454
|
+
/Mac|iPod|iPhone|iPad/.test(globalWindow.navigator.platform);
|
|
2452
2455
|
const KEY_ALIASES = {
|
|
2453
2456
|
add: '+',
|
|
2454
2457
|
break: 'pause',
|
|
@@ -2476,7 +2479,7 @@ const BASE_PATH = (() => {
|
|
|
2476
2479
|
if (typeof document === 'undefined') {
|
|
2477
2480
|
return '';
|
|
2478
2481
|
}
|
|
2479
|
-
const script =
|
|
2482
|
+
const script = globalDocument.currentScript, removeScriptName = (s) => {
|
|
2480
2483
|
const parts = s.split('/');
|
|
2481
2484
|
if (/\.js/.test(parts[parts.length - 1])) {
|
|
2482
2485
|
return parts.slice(0, parts.length - 1).join('/') + '/';
|
|
@@ -2486,11 +2489,11 @@ const BASE_PATH = (() => {
|
|
|
2486
2489
|
if (script) {
|
|
2487
2490
|
return removeScriptName(script.src);
|
|
2488
2491
|
}
|
|
2489
|
-
const scripts =
|
|
2492
|
+
const scripts = globalDocument.querySelectorAll('script[src]');
|
|
2490
2493
|
if (scripts && scripts.length) {
|
|
2491
2494
|
return removeScriptName(scripts[scripts.length - 1].src);
|
|
2492
2495
|
}
|
|
2493
|
-
return
|
|
2496
|
+
return globalWindow.location.href;
|
|
2494
2497
|
})();
|
|
2495
2498
|
const TEMP_ATTR = 'data-jodit-temp';
|
|
2496
2499
|
const lang = {};
|
|
@@ -3234,7 +3237,6 @@ function watch(observeFields, opts) {
|
|
|
3234
3237
|
const [objectPath, eventName] = field.split(':');
|
|
3235
3238
|
let ctx = context;
|
|
3236
3239
|
if (objectPath.length) {
|
|
3237
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3238
3240
|
ctx = component.get(objectPath);
|
|
3239
3241
|
}
|
|
3240
3242
|
if ((0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_3__/* .isFunction */ .T)(ctx)) {
|
|
@@ -3895,7 +3897,7 @@ class Dom {
|
|
|
3895
3897
|
* Move all content to another element
|
|
3896
3898
|
*/
|
|
3897
3899
|
static moveContent(from, to, inStart = false, filter = () => true) {
|
|
3898
|
-
const fragment = (from.ownerDocument ||
|
|
3900
|
+
const fragment = (from.ownerDocument || jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument).createDocumentFragment();
|
|
3899
3901
|
(0,jodit_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_1__/* .toArray */ .$)(from.childNodes)
|
|
3900
3902
|
.filter(elm => {
|
|
3901
3903
|
if (filter(elm)) {
|
|
@@ -4352,7 +4354,7 @@ class EventEmitter {
|
|
|
4352
4354
|
passive: true,
|
|
4353
4355
|
capture: options?.capture ?? false
|
|
4354
4356
|
}
|
|
4355
|
-
: options?.capture ?? false;
|
|
4357
|
+
: (options?.capture ?? false);
|
|
4356
4358
|
syntheticCallback.options = eOpts;
|
|
4357
4359
|
subject.addEventListener(event, syntheticCallback, eOpts);
|
|
4358
4360
|
this.__memoryDOMSubjectToHandler(subject, syntheticCallback);
|
|
@@ -4583,7 +4585,7 @@ class EventEmitter {
|
|
|
4583
4585
|
this.__domEventsMap = new Map();
|
|
4584
4586
|
this.__mutedEvents = new Set();
|
|
4585
4587
|
this.__key = '__JoditEventEmitterNamespaces';
|
|
4586
|
-
this.__doc =
|
|
4588
|
+
this.__doc = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument;
|
|
4587
4589
|
this.__prepareEvent = (e) => {
|
|
4588
4590
|
if (e.cancelBubble) {
|
|
4589
4591
|
return;
|
|
@@ -5077,9 +5079,19 @@ function getContainer(jodit, classFunc, tag = 'div', createInsideEditor = false)
|
|
|
5077
5079
|
const view = (0,jodit_core_helpers_checker_is_view_object__WEBPACK_IMPORTED_MODULE_6__/* .isViewObject */ .h)(jodit) ? jodit : jodit.j;
|
|
5078
5080
|
if (!data[key]) {
|
|
5079
5081
|
let c = view.c;
|
|
5080
|
-
let body
|
|
5081
|
-
|
|
5082
|
-
|
|
5082
|
+
let body;
|
|
5083
|
+
if ((0,jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_7__/* .isJoditObject */ .y)(jodit) && jodit.o.shadowRoot) {
|
|
5084
|
+
body = jodit.o.shadowRoot;
|
|
5085
|
+
}
|
|
5086
|
+
else {
|
|
5087
|
+
body = jodit.od.body;
|
|
5088
|
+
if ((0,jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_7__/* .isJoditObject */ .y)(jodit)) {
|
|
5089
|
+
const dialog = _dom__WEBPACK_IMPORTED_MODULE_3__/* .Dom */ .J.closest(jodit.container, 'dialog', jodit.od.body);
|
|
5090
|
+
if (dialog) {
|
|
5091
|
+
body = dialog;
|
|
5092
|
+
}
|
|
5093
|
+
}
|
|
5094
|
+
}
|
|
5083
5095
|
if (createInsideEditor &&
|
|
5084
5096
|
(0,jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_7__/* .isJoditObject */ .y)(jodit) &&
|
|
5085
5097
|
jodit.od !== jodit.ed) {
|
|
@@ -5233,7 +5245,7 @@ function splitArray(a) {
|
|
|
5233
5245
|
const toArray = function toArray(...args) {
|
|
5234
5246
|
const func = (0,jodit_core_helpers_checker_is_native_function__WEBPACK_IMPORTED_MODULE_1__/* .isNativeFunction */ .a)(Array.from)
|
|
5235
5247
|
? Array.from
|
|
5236
|
-
: (0,jodit_core_helpers_utils_reset__WEBPACK_IMPORTED_MODULE_0__/* .reset */ .c)('Array.from') ?? Array.from;
|
|
5248
|
+
: ((0,jodit_core_helpers_utils_reset__WEBPACK_IMPORTED_MODULE_0__/* .reset */ .c)('Array.from') ?? Array.from);
|
|
5237
5249
|
return func.apply(Array, args);
|
|
5238
5250
|
};
|
|
5239
5251
|
|
|
@@ -5270,6 +5282,7 @@ const toArray = function toArray(...args) {
|
|
|
5270
5282
|
/* harmony export */ D: function() { return /* binding */ clearTimeout; },
|
|
5271
5283
|
/* harmony export */ w: function() { return /* binding */ setTimeout; }
|
|
5272
5284
|
/* harmony export */ });
|
|
5285
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
|
|
5273
5286
|
/*!
|
|
5274
5287
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
5275
5288
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -5278,6 +5291,7 @@ const toArray = function toArray(...args) {
|
|
|
5278
5291
|
/**
|
|
5279
5292
|
* @module helpers/async
|
|
5280
5293
|
*/
|
|
5294
|
+
|
|
5281
5295
|
/**
|
|
5282
5296
|
* Create async callback if set timeout value - else call function immediately
|
|
5283
5297
|
*/
|
|
@@ -5286,7 +5300,7 @@ function setTimeout(callback, timeout, ...args) {
|
|
|
5286
5300
|
callback.call(null, ...args);
|
|
5287
5301
|
}
|
|
5288
5302
|
else {
|
|
5289
|
-
return
|
|
5303
|
+
return jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow.setTimeout(callback, timeout, ...args);
|
|
5290
5304
|
}
|
|
5291
5305
|
return 0;
|
|
5292
5306
|
}
|
|
@@ -5294,7 +5308,7 @@ function setTimeout(callback, timeout, ...args) {
|
|
|
5294
5308
|
* Clear timeout
|
|
5295
5309
|
*/
|
|
5296
5310
|
function clearTimeout(timer) {
|
|
5297
|
-
|
|
5311
|
+
jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow.clearTimeout(timer);
|
|
5298
5312
|
}
|
|
5299
5313
|
|
|
5300
5314
|
|
|
@@ -5307,6 +5321,7 @@ function clearTimeout(timer) {
|
|
|
5307
5321
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
5308
5322
|
/* harmony export */ k: function() { return /* binding */ hasBrowserColorPicker; }
|
|
5309
5323
|
/* harmony export */ });
|
|
5324
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
|
|
5310
5325
|
/*!
|
|
5311
5326
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
5312
5327
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -5315,13 +5330,14 @@ function clearTimeout(timer) {
|
|
|
5315
5330
|
/**
|
|
5316
5331
|
* @module helpers/checker
|
|
5317
5332
|
*/
|
|
5333
|
+
|
|
5318
5334
|
/**
|
|
5319
5335
|
* Check if browser has a color picker (a new HTML5 attribute for input tag)
|
|
5320
5336
|
*/
|
|
5321
5337
|
function hasBrowserColorPicker() {
|
|
5322
5338
|
let supportsColor = true;
|
|
5323
5339
|
try {
|
|
5324
|
-
const a =
|
|
5340
|
+
const a = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('input');
|
|
5325
5341
|
a.type = 'color';
|
|
5326
5342
|
a.value = '!';
|
|
5327
5343
|
supportsColor = a.type === 'color' && a.value !== '!';
|
|
@@ -5971,6 +5987,7 @@ function isStringArray(value) {
|
|
|
5971
5987
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
5972
5988
|
/* harmony export */ m: function() { return /* binding */ isURL; }
|
|
5973
5989
|
/* harmony export */ });
|
|
5990
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
|
|
5974
5991
|
/*!
|
|
5975
5992
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
5976
5993
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -5979,6 +5996,7 @@ function isStringArray(value) {
|
|
|
5979
5996
|
/**
|
|
5980
5997
|
* @module helpers/checker
|
|
5981
5998
|
*/
|
|
5999
|
+
|
|
5982
6000
|
/**
|
|
5983
6001
|
* Check if a string is an url
|
|
5984
6002
|
*/
|
|
@@ -5995,7 +6013,7 @@ function isURL(str) {
|
|
|
5995
6013
|
return false;
|
|
5996
6014
|
}
|
|
5997
6015
|
}
|
|
5998
|
-
const a =
|
|
6016
|
+
const a = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('a');
|
|
5999
6017
|
a.href = str;
|
|
6000
6018
|
return Boolean(a.hostname);
|
|
6001
6019
|
}
|
|
@@ -6230,9 +6248,9 @@ function applyStyles(html) {
|
|
|
6230
6248
|
}
|
|
6231
6249
|
html = html.substring(html.indexOf('<html '), html.length);
|
|
6232
6250
|
html = html.substring(0, html.lastIndexOf('</html>') + '</html>'.length);
|
|
6233
|
-
const iframe =
|
|
6251
|
+
const iframe = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('iframe');
|
|
6234
6252
|
iframe.style.display = 'none';
|
|
6235
|
-
|
|
6253
|
+
jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.body.appendChild(iframe);
|
|
6236
6254
|
let convertedString = '', collection = [];
|
|
6237
6255
|
try {
|
|
6238
6256
|
const iframeDoc = iframe.contentDocument ||
|
|
@@ -6303,9 +6321,10 @@ function applyStyles(html) {
|
|
|
6303
6321
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
6304
6322
|
/* harmony export */ w: function() { return /* binding */ cleanFromWord; }
|
|
6305
6323
|
/* harmony export */ });
|
|
6306
|
-
/* harmony import */ var
|
|
6307
|
-
/* harmony import */ var
|
|
6308
|
-
/* harmony import */ var
|
|
6324
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
|
|
6325
|
+
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(23545);
|
|
6326
|
+
/* harmony import */ var jodit_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7773);
|
|
6327
|
+
/* harmony import */ var jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(22718);
|
|
6309
6328
|
/*!
|
|
6310
6329
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
6311
6330
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -6317,6 +6336,7 @@ function applyStyles(html) {
|
|
|
6317
6336
|
|
|
6318
6337
|
|
|
6319
6338
|
|
|
6339
|
+
|
|
6320
6340
|
/**
|
|
6321
6341
|
* The method automatically cleans up content from Microsoft Word and other HTML sources to ensure clean, compliant
|
|
6322
6342
|
* content that matches the look and feel of the site.
|
|
@@ -6328,11 +6348,11 @@ function cleanFromWord(html) {
|
|
|
6328
6348
|
}
|
|
6329
6349
|
let convertedString = '';
|
|
6330
6350
|
try {
|
|
6331
|
-
const div =
|
|
6351
|
+
const div = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('div');
|
|
6332
6352
|
div.innerHTML = html;
|
|
6333
6353
|
const marks = [];
|
|
6334
6354
|
if (div.firstChild) {
|
|
6335
|
-
|
|
6355
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.each(div, node => {
|
|
6336
6356
|
if (!node) {
|
|
6337
6357
|
return;
|
|
6338
6358
|
}
|
|
@@ -6347,10 +6367,10 @@ function cleanFromWord(html) {
|
|
|
6347
6367
|
case 'W:SDT':
|
|
6348
6368
|
case 'W:SDTPR':
|
|
6349
6369
|
case 'FONT':
|
|
6350
|
-
|
|
6370
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.unwrap(node);
|
|
6351
6371
|
break;
|
|
6352
6372
|
default:
|
|
6353
|
-
(0,
|
|
6373
|
+
(0,jodit_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_2__/* .toArray */ .$)(node.attributes).forEach((attr) => {
|
|
6354
6374
|
if ([
|
|
6355
6375
|
'src',
|
|
6356
6376
|
'href',
|
|
@@ -6369,14 +6389,14 @@ function cleanFromWord(html) {
|
|
|
6369
6389
|
}
|
|
6370
6390
|
});
|
|
6371
6391
|
}
|
|
6372
|
-
|
|
6392
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.safeRemove.apply(null, marks);
|
|
6373
6393
|
convertedString = div.innerHTML;
|
|
6374
6394
|
}
|
|
6375
6395
|
catch (e) { }
|
|
6376
6396
|
if (convertedString) {
|
|
6377
6397
|
html = convertedString;
|
|
6378
6398
|
}
|
|
6379
|
-
html = html.split(/(\n)/).filter(
|
|
6399
|
+
html = html.split(/(\n)/).filter(jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_3__/* .trim */ .Bq).join('\n');
|
|
6380
6400
|
return html
|
|
6381
6401
|
.replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g, '')
|
|
6382
6402
|
.replace(/<!--[^>]*>/g, '');
|
|
@@ -6392,6 +6412,7 @@ function cleanFromWord(html) {
|
|
|
6392
6412
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
6393
6413
|
/* harmony export */ G: function() { return /* binding */ htmlspecialchars; }
|
|
6394
6414
|
/* harmony export */ });
|
|
6415
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
|
|
6395
6416
|
/*!
|
|
6396
6417
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
6397
6418
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -6400,11 +6421,12 @@ function cleanFromWord(html) {
|
|
|
6400
6421
|
/**
|
|
6401
6422
|
* @module helpers/html
|
|
6402
6423
|
*/
|
|
6424
|
+
|
|
6403
6425
|
/**
|
|
6404
6426
|
* Convert special characters to HTML entities
|
|
6405
6427
|
*/
|
|
6406
6428
|
function htmlspecialchars(html) {
|
|
6407
|
-
const tmp =
|
|
6429
|
+
const tmp = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('div');
|
|
6408
6430
|
tmp.textContent = html;
|
|
6409
6431
|
return tmp.innerHTML;
|
|
6410
6432
|
}
|
|
@@ -7125,8 +7147,9 @@ const getContentWidth = (element, win) => {
|
|
|
7125
7147
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7126
7148
|
/* harmony export */ m: function() { return /* binding */ getScrollParent; }
|
|
7127
7149
|
/* harmony export */ });
|
|
7128
|
-
/* harmony import */ var
|
|
7129
|
-
/* harmony import */ var
|
|
7150
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
|
|
7151
|
+
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(23545);
|
|
7152
|
+
/* harmony import */ var jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(71122);
|
|
7130
7153
|
/*!
|
|
7131
7154
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
7132
7155
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -7134,19 +7157,20 @@ const getContentWidth = (element, win) => {
|
|
|
7134
7157
|
*/
|
|
7135
7158
|
|
|
7136
7159
|
|
|
7160
|
+
|
|
7137
7161
|
function getScrollParent(node) {
|
|
7138
7162
|
if (!node) {
|
|
7139
7163
|
return null;
|
|
7140
7164
|
}
|
|
7141
|
-
const isElement =
|
|
7142
|
-
const overflowY = isElement && (0,
|
|
7165
|
+
const isElement = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isHTMLElement(node);
|
|
7166
|
+
const overflowY = isElement && (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_2__.css)(node, 'overflowY');
|
|
7143
7167
|
const isScrollable = isElement && overflowY !== 'visible' && overflowY !== 'hidden';
|
|
7144
7168
|
if (isScrollable && node.scrollHeight >= node.clientHeight) {
|
|
7145
7169
|
return node;
|
|
7146
7170
|
}
|
|
7147
7171
|
return (getScrollParent(node.parentNode) ||
|
|
7148
|
-
|
|
7149
|
-
|
|
7172
|
+
jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.scrollingElement ||
|
|
7173
|
+
jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.body);
|
|
7150
7174
|
}
|
|
7151
7175
|
|
|
7152
7176
|
|
|
@@ -8070,16 +8094,18 @@ const buildQuery = (data, prefix) => {
|
|
|
8070
8094
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8071
8095
|
/* harmony export */ X: function() { return /* binding */ completeUrl; }
|
|
8072
8096
|
/* harmony export */ });
|
|
8097
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
|
|
8073
8098
|
/*!
|
|
8074
8099
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
8075
8100
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
8076
8101
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
8077
8102
|
*/
|
|
8103
|
+
|
|
8078
8104
|
/**
|
|
8079
8105
|
* @module helpers/utils
|
|
8080
8106
|
*/
|
|
8081
8107
|
const completeUrl = (url) => {
|
|
8082
|
-
if (
|
|
8108
|
+
if (jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow.location.protocol === 'file:' && /^\/\//.test(url)) {
|
|
8083
8109
|
url = 'https:' + url;
|
|
8084
8110
|
}
|
|
8085
8111
|
return url;
|
|
@@ -8196,8 +8222,9 @@ function ConfigFlatten(obj) {
|
|
|
8196
8222
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8197
8223
|
/* harmony export */ m: function() { return /* binding */ convertMediaUrlToVideoEmbed; }
|
|
8198
8224
|
/* harmony export */ });
|
|
8199
|
-
/* harmony import */ var
|
|
8200
|
-
/* harmony import */ var
|
|
8225
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
|
|
8226
|
+
/* harmony import */ var jodit_core_helpers_checker_is_url__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(20858);
|
|
8227
|
+
/* harmony import */ var _parse_query__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(15896);
|
|
8201
8228
|
/*!
|
|
8202
8229
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
8203
8230
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -8208,14 +8235,15 @@ function ConfigFlatten(obj) {
|
|
|
8208
8235
|
*/
|
|
8209
8236
|
|
|
8210
8237
|
|
|
8238
|
+
|
|
8211
8239
|
/**
|
|
8212
8240
|
* Javascript url pattern converter replace youtube/vimeo url in embed code.
|
|
8213
8241
|
*/
|
|
8214
8242
|
const convertMediaUrlToVideoEmbed = (url, width = 400, height = 345) => {
|
|
8215
|
-
if (!(0,
|
|
8243
|
+
if (!(0,jodit_core_helpers_checker_is_url__WEBPACK_IMPORTED_MODULE_1__/* .isURL */ .m)(url)) {
|
|
8216
8244
|
return url;
|
|
8217
8245
|
}
|
|
8218
|
-
const parser =
|
|
8246
|
+
const parser = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('a'), pattern1 = /(?:http?s?:\/\/)?(?:www\.)?(?:vimeo\.com)\/?(.+)/g;
|
|
8219
8247
|
parser.href = url;
|
|
8220
8248
|
if (!width) {
|
|
8221
8249
|
width = 400;
|
|
@@ -8241,7 +8269,7 @@ const convertMediaUrlToVideoEmbed = (url, width = 400, height = 345) => {
|
|
|
8241
8269
|
case 'youtu.be':
|
|
8242
8270
|
case 'www.youtu.be': {
|
|
8243
8271
|
const query = parser.search
|
|
8244
|
-
? (0,
|
|
8272
|
+
? (0,_parse_query__WEBPACK_IMPORTED_MODULE_2__/* .parseQuery */ .m)(parser.search)
|
|
8245
8273
|
: { v: parser.pathname.substr(1) };
|
|
8246
8274
|
return query.v
|
|
8247
8275
|
? '<iframe width="' +
|
|
@@ -8435,7 +8463,8 @@ const dataBind = (elm, key, value) => {
|
|
|
8435
8463
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8436
8464
|
/* harmony export */ e: function() { return /* binding */ defaultLanguage; }
|
|
8437
8465
|
/* harmony export */ });
|
|
8438
|
-
/* harmony import */ var
|
|
8466
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
|
|
8467
|
+
/* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(26986);
|
|
8439
8468
|
/*!
|
|
8440
8469
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
8441
8470
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -8445,15 +8474,16 @@ const dataBind = (elm, key, value) => {
|
|
|
8445
8474
|
* @module helpers/utils
|
|
8446
8475
|
*/
|
|
8447
8476
|
|
|
8477
|
+
|
|
8448
8478
|
/**
|
|
8449
8479
|
* Try define user language
|
|
8450
8480
|
*/
|
|
8451
8481
|
const defaultLanguage = (language, defaultLanguage = 'en') => {
|
|
8452
|
-
if (language !== 'auto' && (0,
|
|
8482
|
+
if (language !== 'auto' && (0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_1__/* .isString */ .K)(language)) {
|
|
8453
8483
|
return language;
|
|
8454
8484
|
}
|
|
8455
|
-
if (
|
|
8456
|
-
return
|
|
8485
|
+
if (jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.documentElement && jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.documentElement.lang) {
|
|
8486
|
+
return jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.documentElement.lang;
|
|
8457
8487
|
}
|
|
8458
8488
|
if (navigator.language) {
|
|
8459
8489
|
return navigator.language.substring(0, 2);
|
|
@@ -9204,10 +9234,10 @@ const map = {};
|
|
|
9204
9234
|
*/
|
|
9205
9235
|
function reset(key) {
|
|
9206
9236
|
if (!(key in map)) {
|
|
9207
|
-
const iframe =
|
|
9237
|
+
const iframe = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('iframe');
|
|
9208
9238
|
try {
|
|
9209
9239
|
iframe.src = 'about:blank';
|
|
9210
|
-
|
|
9240
|
+
jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.body.appendChild(iframe);
|
|
9211
9241
|
if (!iframe.contentWindow) {
|
|
9212
9242
|
return null;
|
|
9213
9243
|
}
|
|
@@ -10134,14 +10164,15 @@ Plugin.requires = [];
|
|
|
10134
10164
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10135
10165
|
/* harmony export */ d: function() { return /* binding */ Ajax; }
|
|
10136
10166
|
/* harmony export */ });
|
|
10137
|
-
/* harmony import */ var
|
|
10167
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(31635);
|
|
10138
10168
|
/* harmony import */ var jodit_core_async__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(61341);
|
|
10139
|
-
/* harmony import */ var
|
|
10140
|
-
/* harmony import */ var
|
|
10141
|
-
/* harmony import */ var
|
|
10142
|
-
/* harmony import */ var
|
|
10143
|
-
/* harmony import */ var
|
|
10144
|
-
/* harmony import */ var
|
|
10169
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(67259);
|
|
10170
|
+
/* harmony import */ var jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(33442);
|
|
10171
|
+
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9596);
|
|
10172
|
+
/* harmony import */ var jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(24839);
|
|
10173
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(91288);
|
|
10174
|
+
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(91596);
|
|
10175
|
+
/* harmony import */ var _response__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(85349);
|
|
10145
10176
|
/*!
|
|
10146
10177
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
10147
10178
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -10155,33 +10186,34 @@ Plugin.requires = [];
|
|
|
10155
10186
|
|
|
10156
10187
|
|
|
10157
10188
|
|
|
10189
|
+
|
|
10158
10190
|
class Ajax {
|
|
10159
10191
|
className() {
|
|
10160
10192
|
return 'Ajax';
|
|
10161
10193
|
}
|
|
10162
|
-
constructor(options, defaultAjaxOptions =
|
|
10194
|
+
constructor(options, defaultAjaxOptions = jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.defaultAjaxOptions) {
|
|
10163
10195
|
this.__async = new jodit_core_async__WEBPACK_IMPORTED_MODULE_0__/* .Async */ .j();
|
|
10164
10196
|
this.__isFulfilled = false;
|
|
10165
10197
|
this.__activated = false;
|
|
10166
10198
|
this.__isDestructed = false;
|
|
10167
|
-
this.options = (0,
|
|
10199
|
+
this.options = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.ConfigProto)(options || {}, defaultAjaxOptions);
|
|
10168
10200
|
this.xhr = this.o.xhr ? this.o.xhr() : new XMLHttpRequest();
|
|
10169
10201
|
}
|
|
10170
10202
|
__buildParams(obj, prefix) {
|
|
10171
|
-
if ((0,
|
|
10203
|
+
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(obj) &&
|
|
10172
10204
|
this.options.contentType &&
|
|
10173
10205
|
this.options.contentType.includes('application/json')) {
|
|
10174
10206
|
return JSON.stringify(obj);
|
|
10175
10207
|
}
|
|
10176
|
-
if ((0,
|
|
10208
|
+
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isFunction)(this.o.queryBuild)) {
|
|
10177
10209
|
return this.o.queryBuild.call(this, obj, prefix);
|
|
10178
10210
|
}
|
|
10179
|
-
if ((0,
|
|
10180
|
-
obj instanceof
|
|
10181
|
-
(typeof obj === 'object' && obj != null && (0,
|
|
10211
|
+
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isString)(obj) ||
|
|
10212
|
+
obj instanceof jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.globalWindow.FormData ||
|
|
10213
|
+
(typeof obj === 'object' && obj != null && (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isFunction)(obj.append))) {
|
|
10182
10214
|
return obj;
|
|
10183
10215
|
}
|
|
10184
|
-
return (0,
|
|
10216
|
+
return (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.buildQuery)(obj);
|
|
10185
10217
|
}
|
|
10186
10218
|
get o() {
|
|
10187
10219
|
return this.options;
|
|
@@ -10204,16 +10236,16 @@ class Ajax {
|
|
|
10204
10236
|
return this.__async.promise(async (resolve, reject) => {
|
|
10205
10237
|
const onReject = () => {
|
|
10206
10238
|
this.__isFulfilled = true;
|
|
10207
|
-
reject(
|
|
10239
|
+
reject(jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_3__/* .connection */ .FI('Connection error'));
|
|
10208
10240
|
};
|
|
10209
10241
|
const onResolve = () => {
|
|
10210
10242
|
this.__isFulfilled = true;
|
|
10211
|
-
resolve(new
|
|
10243
|
+
resolve(new _response__WEBPACK_IMPORTED_MODULE_6__/* .Response */ .Y(request, xhr.status, xhr.statusText, !xhr.responseType ? xhr.responseText : xhr.response));
|
|
10212
10244
|
};
|
|
10213
10245
|
xhr.onload = onResolve;
|
|
10214
10246
|
xhr.onabort = () => {
|
|
10215
10247
|
this.__isFulfilled = true;
|
|
10216
|
-
reject(
|
|
10248
|
+
reject(jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_3__/* .abort */ .h2('Abort connection'));
|
|
10217
10249
|
};
|
|
10218
10250
|
xhr.onerror = onReject;
|
|
10219
10251
|
xhr.ontimeout = onReject;
|
|
@@ -10235,7 +10267,7 @@ class Ajax {
|
|
|
10235
10267
|
}
|
|
10236
10268
|
else if (xhr.statusText) {
|
|
10237
10269
|
this.__isFulfilled = true;
|
|
10238
|
-
reject(
|
|
10270
|
+
reject(jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_3__/* .connection */ .FI(xhr.statusText));
|
|
10239
10271
|
}
|
|
10240
10272
|
}
|
|
10241
10273
|
};
|
|
@@ -10246,7 +10278,7 @@ class Ajax {
|
|
|
10246
10278
|
xhr.setRequestHeader('Content-type', o.contentType);
|
|
10247
10279
|
}
|
|
10248
10280
|
let { headers } = o;
|
|
10249
|
-
if ((0,
|
|
10281
|
+
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isFunction)(headers)) {
|
|
10250
10282
|
headers = await headers.call(this);
|
|
10251
10283
|
}
|
|
10252
10284
|
if (headers && xhr.setRequestHeader) {
|
|
@@ -10262,22 +10294,22 @@ class Ajax {
|
|
|
10262
10294
|
}
|
|
10263
10295
|
prepareRequest() {
|
|
10264
10296
|
if (!this.o.url) {
|
|
10265
|
-
throw
|
|
10297
|
+
throw jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_3__/* .error */ .z3('Need URL for AJAX request');
|
|
10266
10298
|
}
|
|
10267
10299
|
let url = this.o.url;
|
|
10268
10300
|
const data = this.o.data;
|
|
10269
10301
|
const method = (this.o.method || 'get').toLowerCase();
|
|
10270
|
-
if (method === 'get' && data && (0,
|
|
10302
|
+
if (method === 'get' && data && (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(data)) {
|
|
10271
10303
|
const qIndex = url.indexOf('?');
|
|
10272
10304
|
if (qIndex !== -1) {
|
|
10273
|
-
const urlData = (0,
|
|
10305
|
+
const urlData = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.parseQuery)(url);
|
|
10274
10306
|
url =
|
|
10275
10307
|
url.substring(0, qIndex) +
|
|
10276
10308
|
'?' +
|
|
10277
|
-
(0,
|
|
10309
|
+
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.buildQuery)({ ...urlData, ...data });
|
|
10278
10310
|
}
|
|
10279
10311
|
else {
|
|
10280
|
-
url += '?' + (0,
|
|
10312
|
+
url += '?' + (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.buildQuery)(this.o.data);
|
|
10281
10313
|
}
|
|
10282
10314
|
}
|
|
10283
10315
|
const request = {
|
|
@@ -10301,8 +10333,8 @@ class Ajax {
|
|
|
10301
10333
|
}
|
|
10302
10334
|
}
|
|
10303
10335
|
Ajax.log = [];
|
|
10304
|
-
(0,
|
|
10305
|
-
|
|
10336
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_7__/* .__decorate */ .Cg)([
|
|
10337
|
+
jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Ay
|
|
10306
10338
|
], Ajax.prototype, "destruct", null);
|
|
10307
10339
|
|
|
10308
10340
|
|
|
@@ -11188,6 +11220,7 @@ class Selection {
|
|
|
11188
11220
|
/**
|
|
11189
11221
|
* Call callback for all selection node
|
|
11190
11222
|
*/
|
|
11223
|
+
// eslint-disable-next-line complexity
|
|
11191
11224
|
eachSelection(callback) {
|
|
11192
11225
|
const sel = this.sel;
|
|
11193
11226
|
if (!sel || !sel.rangeCount) {
|
|
@@ -11968,12 +12001,13 @@ function getSuitParent(style, node, root) {
|
|
|
11968
12001
|
/* harmony export */ Y: function() { return /* binding */ hasSameStyleKeys; },
|
|
11969
12002
|
/* harmony export */ g: function() { return /* binding */ hasSameStyle; }
|
|
11970
12003
|
/* harmony export */ });
|
|
11971
|
-
/* harmony import */ var
|
|
11972
|
-
/* harmony import */ var
|
|
11973
|
-
/* harmony import */ var
|
|
11974
|
-
/* harmony import */ var
|
|
11975
|
-
/* harmony import */ var
|
|
11976
|
-
/* harmony import */ var
|
|
12004
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
|
|
12005
|
+
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(23545);
|
|
12006
|
+
/* harmony import */ var jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(74197);
|
|
12007
|
+
/* harmony import */ var jodit_core_helpers_normalize_normalize_css_value__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(43581);
|
|
12008
|
+
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(28712);
|
|
12009
|
+
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2__);
|
|
12010
|
+
/* harmony import */ var jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4401);
|
|
11977
12011
|
/*!
|
|
11978
12012
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
11979
12013
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -11984,48 +12018,53 @@ function getSuitParent(style, node, root) {
|
|
|
11984
12018
|
|
|
11985
12019
|
|
|
11986
12020
|
|
|
12021
|
+
|
|
11987
12022
|
/**
|
|
11988
12023
|
* Element has the same styles as in the commit
|
|
11989
12024
|
* @private
|
|
11990
12025
|
*/
|
|
11991
12026
|
function hasSameStyle(elm, rules) {
|
|
11992
|
-
return Boolean(!
|
|
11993
|
-
|
|
12027
|
+
return Boolean(!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isTag(elm, 'font') &&
|
|
12028
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isHTMLElement(elm) &&
|
|
11994
12029
|
Object.keys(rules).every(property => {
|
|
11995
|
-
const value = (0,
|
|
12030
|
+
const value = (0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_3__/* .css */ .A)(elm, property, true);
|
|
11996
12031
|
if (value === '' &&
|
|
11997
12032
|
(rules[property] === '' || rules[property] == null)) {
|
|
11998
12033
|
return true;
|
|
11999
12034
|
}
|
|
12000
|
-
return (!(0,
|
|
12035
|
+
return (!(0,jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_4__/* .isVoid */ .R)(value) &&
|
|
12001
12036
|
value !== '' &&
|
|
12002
|
-
!(0,
|
|
12003
|
-
(0,
|
|
12037
|
+
!(0,jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_4__/* .isVoid */ .R)(rules[property]) &&
|
|
12038
|
+
(0,jodit_core_helpers_normalize_normalize_css_value__WEBPACK_IMPORTED_MODULE_5__/* .normalizeCssValue */ .iy)(property, rules[property])
|
|
12004
12039
|
.toString()
|
|
12005
12040
|
.toLowerCase() === value.toString().toLowerCase());
|
|
12006
12041
|
}));
|
|
12007
12042
|
}
|
|
12008
|
-
|
|
12009
|
-
elm
|
|
12010
|
-
|
|
12011
|
-
void 0;
|
|
12012
|
-
void 0;
|
|
12043
|
+
if (jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument) {
|
|
12044
|
+
const elm = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('div');
|
|
12045
|
+
elm.style.color = 'red';
|
|
12046
|
+
void 0;
|
|
12047
|
+
void 0;
|
|
12048
|
+
void 0;
|
|
12049
|
+
}
|
|
12013
12050
|
/**
|
|
12014
12051
|
* Element has the similar styles keys
|
|
12015
12052
|
*/
|
|
12016
12053
|
function hasSameStyleKeys(elm, rules) {
|
|
12017
|
-
return Boolean(!
|
|
12018
|
-
|
|
12054
|
+
return Boolean(!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isTag(elm, 'font') &&
|
|
12055
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isHTMLElement(elm) &&
|
|
12019
12056
|
Object.keys(rules).every(property => {
|
|
12020
|
-
const value = (0,
|
|
12057
|
+
const value = (0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_3__/* .css */ .A)(elm, property, true);
|
|
12021
12058
|
return value !== '';
|
|
12022
12059
|
}));
|
|
12023
12060
|
}
|
|
12024
|
-
|
|
12025
|
-
elm2
|
|
12026
|
-
|
|
12027
|
-
void 0;
|
|
12028
|
-
void 0;
|
|
12061
|
+
if (jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument) {
|
|
12062
|
+
const elm2 = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('div');
|
|
12063
|
+
elm2.style.color = 'red';
|
|
12064
|
+
void 0;
|
|
12065
|
+
void 0;
|
|
12066
|
+
void 0;
|
|
12067
|
+
}
|
|
12029
12068
|
|
|
12030
12069
|
|
|
12031
12070
|
/***/ }),
|
|
@@ -12406,16 +12445,17 @@ function wrapList(commitStyle, wrapper, jodit) {
|
|
|
12406
12445
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
12407
12446
|
/* harmony export */ Y: function() { return /* binding */ toggleAttributes; }
|
|
12408
12447
|
/* harmony export */ });
|
|
12409
|
-
/* harmony import */ var
|
|
12410
|
-
/* harmony import */ var
|
|
12411
|
-
/* harmony import */ var
|
|
12412
|
-
/* harmony import */ var
|
|
12413
|
-
/* harmony import */ var
|
|
12414
|
-
/* harmony import */ var
|
|
12415
|
-
/* harmony import */ var
|
|
12416
|
-
/* harmony import */ var
|
|
12417
|
-
/* harmony import */ var
|
|
12418
|
-
/* harmony import */ var
|
|
12448
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
|
|
12449
|
+
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(23545);
|
|
12450
|
+
/* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(51431);
|
|
12451
|
+
/* harmony import */ var jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(58588);
|
|
12452
|
+
/* harmony import */ var jodit_core_helpers_normalize_normalize_css_value__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(43581);
|
|
12453
|
+
/* harmony import */ var jodit_core_helpers_size_object_size__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(88455);
|
|
12454
|
+
/* harmony import */ var jodit_core_helpers_string_kebab_case__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(18014);
|
|
12455
|
+
/* harmony import */ var jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(71122);
|
|
12456
|
+
/* harmony import */ var jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(4401);
|
|
12457
|
+
/* harmony import */ var jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(49382);
|
|
12458
|
+
/* harmony import */ var jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(43072);
|
|
12419
12459
|
/*!
|
|
12420
12460
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
12421
12461
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -12431,6 +12471,7 @@ function wrapList(commitStyle, wrapper, jodit) {
|
|
|
12431
12471
|
|
|
12432
12472
|
|
|
12433
12473
|
|
|
12474
|
+
|
|
12434
12475
|
const tak = 'toggleAttributes';
|
|
12435
12476
|
/**
|
|
12436
12477
|
* Toggles attributes
|
|
@@ -12442,7 +12483,7 @@ function toggleAttributes(commitStyle, elm, jodit, mode, dry = false) {
|
|
|
12442
12483
|
}
|
|
12443
12484
|
!dry && commitStyle.setApplied(elm, tak);
|
|
12444
12485
|
const { attributes } = commitStyle.options;
|
|
12445
|
-
if (attributes && (0,
|
|
12486
|
+
if (attributes && (0,jodit_core_helpers_size_object_size__WEBPACK_IMPORTED_MODULE_4__/* .size */ .E)(attributes) > 0) {
|
|
12446
12487
|
Object.keys(attributes).forEach((key) => {
|
|
12447
12488
|
const value = attributes[key];
|
|
12448
12489
|
switch (key) {
|
|
@@ -12464,24 +12505,24 @@ function toggleAttributes(commitStyle, elm, jodit, mode, dry = false) {
|
|
|
12464
12505
|
function toggleStyle(commitStyle, jodit, style, elm, dry, mode) {
|
|
12465
12506
|
void 0;
|
|
12466
12507
|
Object.keys(style).forEach((rule) => {
|
|
12467
|
-
const inlineValue = elm.style.getPropertyValue((0,
|
|
12508
|
+
const inlineValue = elm.style.getPropertyValue((0,jodit_core_helpers_string_kebab_case__WEBPACK_IMPORTED_MODULE_7__/* .kebabCase */ .k)(rule));
|
|
12468
12509
|
const newValue = style[rule];
|
|
12469
12510
|
if (inlineValue === '' && newValue == null) {
|
|
12470
12511
|
return;
|
|
12471
12512
|
}
|
|
12472
12513
|
if (getNativeCSSValue(jodit, elm, rule) ===
|
|
12473
|
-
(0,
|
|
12514
|
+
(0,jodit_core_helpers_normalize_normalize_css_value__WEBPACK_IMPORTED_MODULE_8__/* .normalizeCssValue */ .iy)(rule, newValue)) {
|
|
12474
12515
|
if (!inlineValue) {
|
|
12475
12516
|
return;
|
|
12476
12517
|
}
|
|
12477
|
-
!dry && (0,
|
|
12478
|
-
mode =
|
|
12518
|
+
!dry && (0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_9__/* .css */ .A)(elm, rule, null);
|
|
12519
|
+
mode = jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__/* .UNSET */ .Ag;
|
|
12479
12520
|
mode = removeExtraStyleAttribute(commitStyle, elm, mode);
|
|
12480
12521
|
return;
|
|
12481
12522
|
}
|
|
12482
|
-
mode =
|
|
12523
|
+
mode = jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__/* .CHANGE */ .PL;
|
|
12483
12524
|
if (!dry) {
|
|
12484
|
-
(0,
|
|
12525
|
+
(0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_9__/* .css */ .A)(elm, rule, newValue);
|
|
12485
12526
|
mode = removeExtraStyleAttribute(commitStyle, elm, mode);
|
|
12486
12527
|
}
|
|
12487
12528
|
});
|
|
@@ -12489,19 +12530,19 @@ function toggleStyle(commitStyle, jodit, style, elm, dry, mode) {
|
|
|
12489
12530
|
}
|
|
12490
12531
|
function toggleClass(jodit, value, elm, mode, dry) {
|
|
12491
12532
|
void 0;
|
|
12492
|
-
const hook = jodit.e.fire.bind(jodit.e, `${
|
|
12533
|
+
const hook = jodit.e.fire.bind(jodit.e, `${jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__/* ._PREFIX */ .ar}AfterToggleAttribute`);
|
|
12493
12534
|
if (elm.classList.contains(value.toString())) {
|
|
12494
|
-
mode =
|
|
12535
|
+
mode = jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__/* .UNSET */ .Ag;
|
|
12495
12536
|
if (!dry) {
|
|
12496
12537
|
elm.classList.remove(value);
|
|
12497
12538
|
if (elm.classList.length === 0) {
|
|
12498
|
-
(0,
|
|
12539
|
+
(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_5__.attr)(elm, 'class', null);
|
|
12499
12540
|
hook(mode, elm, 'class', null);
|
|
12500
12541
|
}
|
|
12501
12542
|
}
|
|
12502
12543
|
}
|
|
12503
12544
|
else {
|
|
12504
|
-
mode =
|
|
12545
|
+
mode = jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__/* .CHANGE */ .PL;
|
|
12505
12546
|
if (!dry) {
|
|
12506
12547
|
elm.classList.add(value);
|
|
12507
12548
|
hook(mode, elm, 'class', value);
|
|
@@ -12511,16 +12552,16 @@ function toggleClass(jodit, value, elm, mode, dry) {
|
|
|
12511
12552
|
}
|
|
12512
12553
|
function toggleAttribute(jodit, value, elm, key, dry, mode) {
|
|
12513
12554
|
void 0;
|
|
12514
|
-
const hook = jodit.e.fire.bind(jodit.e, `${
|
|
12515
|
-
if ((0,
|
|
12516
|
-
!dry && (0,
|
|
12517
|
-
mode =
|
|
12555
|
+
const hook = jodit.e.fire.bind(jodit.e, `${jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__/* ._PREFIX */ .ar}AfterToggleAttribute`);
|
|
12556
|
+
if ((0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_5__.attr)(elm, key) === value) {
|
|
12557
|
+
!dry && (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_5__.attr)(elm, key, null);
|
|
12558
|
+
mode = jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__/* .UNSET */ .Ag;
|
|
12518
12559
|
!dry && hook(mode, elm, key, value);
|
|
12519
12560
|
return mode;
|
|
12520
12561
|
}
|
|
12521
|
-
mode =
|
|
12562
|
+
mode = jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__/* .CHANGE */ .PL;
|
|
12522
12563
|
if (!dry) {
|
|
12523
|
-
(0,
|
|
12564
|
+
(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_5__.attr)(elm, key, value);
|
|
12524
12565
|
hook(mode, elm, key, value);
|
|
12525
12566
|
}
|
|
12526
12567
|
return mode;
|
|
@@ -12530,11 +12571,11 @@ function toggleAttribute(jodit, value, elm, key, dry, mode) {
|
|
|
12530
12571
|
* and if it is default, it removes the element itself
|
|
12531
12572
|
*/
|
|
12532
12573
|
function removeExtraStyleAttribute(commitStyle, elm, mode) {
|
|
12533
|
-
if (!(0,
|
|
12534
|
-
(0,
|
|
12574
|
+
if (!(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_5__.attr)(elm, 'style')) {
|
|
12575
|
+
(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_5__.attr)(elm, 'style', null);
|
|
12535
12576
|
if (elm.tagName.toLowerCase() === commitStyle.defaultTag) {
|
|
12536
|
-
|
|
12537
|
-
mode =
|
|
12577
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.unwrap(elm);
|
|
12578
|
+
mode = jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__/* .UNWRAP */ .OJ;
|
|
12538
12579
|
}
|
|
12539
12580
|
}
|
|
12540
12581
|
return mode;
|
|
@@ -12543,12 +12584,12 @@ function removeExtraStyleAttribute(commitStyle, elm, mode) {
|
|
|
12543
12584
|
* Creates an iframe into which elements will be inserted to test their default styles in the browser
|
|
12544
12585
|
*/
|
|
12545
12586
|
function getShadowRoot(jodit) {
|
|
12546
|
-
if ((0,
|
|
12547
|
-
return (0,
|
|
12587
|
+
if ((0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_6__/* .dataBind */ .m)(jodit, 'shadowRoot') !== undefined) {
|
|
12588
|
+
return (0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_6__/* .dataBind */ .m)(jodit, 'shadowRoot');
|
|
12548
12589
|
}
|
|
12549
|
-
const container = (0,
|
|
12550
|
-
const iframe =
|
|
12551
|
-
(0,
|
|
12590
|
+
const container = (0,jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .getContainer */ .My)(jodit);
|
|
12591
|
+
const iframe = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('iframe');
|
|
12592
|
+
(0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_9__/* .css */ .A)(iframe, {
|
|
12552
12593
|
width: 0,
|
|
12553
12594
|
height: 0,
|
|
12554
12595
|
position: 'absolute',
|
|
@@ -12558,7 +12599,7 @@ function getShadowRoot(jodit) {
|
|
|
12558
12599
|
container.appendChild(iframe);
|
|
12559
12600
|
const doc = iframe.contentWindow?.document;
|
|
12560
12601
|
const shadowRoot = !doc ? jodit.od.body : doc.body;
|
|
12561
|
-
(0,
|
|
12602
|
+
(0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_6__/* .dataBind */ .m)(jodit, 'shadowRoot', shadowRoot);
|
|
12562
12603
|
return shadowRoot;
|
|
12563
12604
|
}
|
|
12564
12605
|
/**
|
|
@@ -12569,8 +12610,8 @@ function getNativeCSSValue(jodit, elm, key) {
|
|
|
12569
12610
|
newElm.style.cssText = elm.style.cssText;
|
|
12570
12611
|
const root = getShadowRoot(jodit);
|
|
12571
12612
|
root.appendChild(newElm);
|
|
12572
|
-
const result = (0,
|
|
12573
|
-
|
|
12613
|
+
const result = (0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_9__/* .css */ .A)(newElm, key);
|
|
12614
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.safeRemove(newElm);
|
|
12574
12615
|
return result;
|
|
12575
12616
|
}
|
|
12576
12617
|
|
|
@@ -14598,6 +14639,7 @@ let UIFileInput = class UIFileInput extends jodit_core_ui_form_inputs_input_inpu
|
|
|
14598
14639
|
}
|
|
14599
14640
|
createContainer(options) {
|
|
14600
14641
|
this.button = new jodit_core_ui_button_button_button__WEBPACK_IMPORTED_MODULE_0__/* .UIButton */ .lD(this.j, {
|
|
14642
|
+
tooltip: options.tooltip,
|
|
14601
14643
|
icon: {
|
|
14602
14644
|
name: 'plus'
|
|
14603
14645
|
}
|
|
@@ -15034,8 +15076,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
15034
15076
|
/* harmony export */ required: function() { return /* binding */ required; },
|
|
15035
15077
|
/* harmony export */ url: function() { return /* binding */ url; }
|
|
15036
15078
|
/* harmony export */ });
|
|
15037
|
-
/* harmony import */ var
|
|
15038
|
-
/* harmony import */ var
|
|
15079
|
+
/* harmony import */ var jodit_core_helpers_checker_is_url__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(20858);
|
|
15080
|
+
/* harmony import */ var jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(22718);
|
|
15039
15081
|
/*!
|
|
15040
15082
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
15041
15083
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -15047,7 +15089,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
15047
15089
|
* Input is required
|
|
15048
15090
|
*/
|
|
15049
15091
|
const required = function (input) {
|
|
15050
|
-
if (!(0,
|
|
15092
|
+
if (!(0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_1__/* .trim */ .Bq)(input.value).length) {
|
|
15051
15093
|
input.error = 'Please fill out this field';
|
|
15052
15094
|
return false;
|
|
15053
15095
|
}
|
|
@@ -15057,7 +15099,7 @@ const required = function (input) {
|
|
|
15057
15099
|
* Input value should be valid URL
|
|
15058
15100
|
*/
|
|
15059
15101
|
const url = function (input) {
|
|
15060
|
-
if (!(0,
|
|
15102
|
+
if (!(0,jodit_core_helpers_checker_is_url__WEBPACK_IMPORTED_MODULE_0__/* .isURL */ .m)((0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_1__/* .trim */ .Bq)(input.value))) {
|
|
15061
15103
|
input.error = 'Please enter a web address';
|
|
15062
15104
|
return false;
|
|
15063
15105
|
}
|
|
@@ -17699,6 +17741,9 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
|
|
|
17699
17741
|
}
|
|
17700
17742
|
}
|
|
17701
17743
|
catch (e) {
|
|
17744
|
+
if (!jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.IS_PROD) {
|
|
17745
|
+
throw e;
|
|
17746
|
+
}
|
|
17702
17747
|
this.destruct();
|
|
17703
17748
|
throw e;
|
|
17704
17749
|
}
|
|
@@ -19670,10 +19715,12 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.filebrowser
|
|
|
19670
19715
|
jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.filebrowser = {
|
|
19671
19716
|
upload: {
|
|
19672
19717
|
icon: 'plus',
|
|
19718
|
+
tooltip: 'Upload file',
|
|
19673
19719
|
isInput: true,
|
|
19674
19720
|
isDisabled: (browser) => !browser.dataProvider.canI('FileUpload'),
|
|
19675
|
-
getContent: (filebrowser) => {
|
|
19721
|
+
getContent: (filebrowser, btnInt) => {
|
|
19676
19722
|
const btn = new jodit_core_ui_form_inputs_file_file__WEBPACK_IMPORTED_MODULE_2__/* .UIFileInput */ .n(filebrowser, {
|
|
19723
|
+
tooltip: btnInt.control.tooltip,
|
|
19677
19724
|
onlyImages: filebrowser.state.onlyImages
|
|
19678
19725
|
});
|
|
19679
19726
|
filebrowser.e.fire('bindUploader.filebrowser', btn.container);
|
|
@@ -19682,6 +19729,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.fil
|
|
|
19682
19729
|
},
|
|
19683
19730
|
remove: {
|
|
19684
19731
|
icon: 'bin',
|
|
19732
|
+
tooltip: 'Remove file',
|
|
19685
19733
|
isDisabled: (browser) => {
|
|
19686
19734
|
return (!browser.state.activeElements.length ||
|
|
19687
19735
|
!browser.dataProvider.canI('FileRemove'));
|
|
@@ -19691,11 +19739,13 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.fil
|
|
|
19691
19739
|
}
|
|
19692
19740
|
},
|
|
19693
19741
|
update: {
|
|
19742
|
+
tooltip: 'Update file list',
|
|
19694
19743
|
exec: (editor) => {
|
|
19695
19744
|
editor.e.fire('update.filebrowser');
|
|
19696
19745
|
}
|
|
19697
19746
|
},
|
|
19698
19747
|
select: {
|
|
19748
|
+
tooltip: 'Select file',
|
|
19699
19749
|
icon: 'check',
|
|
19700
19750
|
isDisabled: (browser) => !browser.state.activeElements.length,
|
|
19701
19751
|
exec: (editor) => {
|
|
@@ -19703,6 +19753,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.fil
|
|
|
19703
19753
|
}
|
|
19704
19754
|
},
|
|
19705
19755
|
edit: {
|
|
19756
|
+
tooltip: 'Edit image',
|
|
19706
19757
|
icon: 'pencil',
|
|
19707
19758
|
isDisabled: (browser) => {
|
|
19708
19759
|
const selected = browser.state.activeElements;
|
|
@@ -19716,6 +19767,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.fil
|
|
|
19716
19767
|
}
|
|
19717
19768
|
},
|
|
19718
19769
|
tiles: {
|
|
19770
|
+
tooltip: 'Tiles view',
|
|
19719
19771
|
icon: 'th',
|
|
19720
19772
|
isActive: (filebrowser) => filebrowser.state.view === 'tiles',
|
|
19721
19773
|
exec: (filebrowser) => {
|
|
@@ -19723,6 +19775,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.fil
|
|
|
19723
19775
|
}
|
|
19724
19776
|
},
|
|
19725
19777
|
list: {
|
|
19778
|
+
tooltip: 'List view',
|
|
19726
19779
|
icon: 'th-list',
|
|
19727
19780
|
isActive: (filebrowser) => filebrowser.state.view === 'list',
|
|
19728
19781
|
exec: (filebrowser) => {
|
|
@@ -20136,7 +20189,6 @@ let DataProvider = class DataProvider {
|
|
|
20136
20189
|
data: {}
|
|
20137
20190
|
};
|
|
20138
20191
|
}
|
|
20139
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
20140
20192
|
const query = this.o[type];
|
|
20141
20193
|
if (query.data === undefined) {
|
|
20142
20194
|
query.data = {
|
|
@@ -20382,7 +20434,6 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
|
|
|
20382
20434
|
get dataProvider() {
|
|
20383
20435
|
return (0,_factories__WEBPACK_IMPORTED_MODULE_16__/* .makeDataProvider */ .S)(this, this.options);
|
|
20384
20436
|
}
|
|
20385
|
-
// eslint-disable-next-line no-unused-vars
|
|
20386
20437
|
onSelect(callback) {
|
|
20387
20438
|
return () => {
|
|
20388
20439
|
if (this.state.activeElements.length) {
|
|
@@ -22895,7 +22946,6 @@ class Table extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .ViewCom
|
|
|
22895
22946
|
const selector = (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.cssPath)(td);
|
|
22896
22947
|
selector && selectors.push(selector);
|
|
22897
22948
|
});
|
|
22898
|
-
// eslint-disable-next-line no-prototype-builtins
|
|
22899
22949
|
style.innerHTML = selectors.length
|
|
22900
22950
|
? selectors.join(',') +
|
|
22901
22951
|
`{${this.jodit.options.table.selectionCellStyle}}`
|
|
@@ -26641,6 +26691,7 @@ function checkNotCollapsed(jodit) {
|
|
|
26641
26691
|
* ```
|
|
26642
26692
|
* @private
|
|
26643
26693
|
*/
|
|
26694
|
+
// eslint-disable-next-line complexity
|
|
26644
26695
|
function checkRemoveChar(jodit, fakeNode, backspace, mode) {
|
|
26645
26696
|
const step = backspace ? -1 : 1;
|
|
26646
26697
|
const anotherSibling = jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.sibling(fakeNode, !backspace);
|
|
@@ -31040,6 +31091,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.iframeStyle
|
|
|
31040
31091
|
'-ms-user-select: none' +
|
|
31041
31092
|
'}';
|
|
31042
31093
|
jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.iframeCSSLinks = [];
|
|
31094
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.iframeSandbox = null;
|
|
31043
31095
|
|
|
31044
31096
|
|
|
31045
31097
|
/***/ }),
|
|
@@ -31116,6 +31168,9 @@ function iframe(editor) {
|
|
|
31116
31168
|
iframe.setAttribute('allowtransparency', 'true');
|
|
31117
31169
|
iframe.setAttribute('tabindex', opt.tabIndex.toString());
|
|
31118
31170
|
iframe.setAttribute('frameborder', '0');
|
|
31171
|
+
if (opt.iframeSandbox != null) {
|
|
31172
|
+
iframe.setAttribute('sandbox', opt.iframeSandbox);
|
|
31173
|
+
}
|
|
31119
31174
|
editor.workplace.appendChild(iframe);
|
|
31120
31175
|
editor.iframe = iframe;
|
|
31121
31176
|
const result = editor.e.fire('generateDocumentStructure.iframe', null, editor);
|
|
@@ -36476,13 +36531,13 @@ function generateCriticalCSS(jodit) {
|
|
|
36476
36531
|
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
|
|
36477
36532
|
/* harmony import */ var jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(33465);
|
|
36478
36533
|
/* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(51431);
|
|
36479
|
-
/* harmony import */ var
|
|
36480
|
-
/* harmony import */ var
|
|
36481
|
-
/* harmony import */ var
|
|
36482
|
-
/* harmony import */ var
|
|
36483
|
-
/* harmony import */ var
|
|
36484
|
-
/* harmony import */ var
|
|
36485
|
-
/* harmony import */ var
|
|
36534
|
+
/* harmony import */ var jodit_core_helpers_utils_default_language__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(54614);
|
|
36535
|
+
/* harmony import */ var jodit_core_helpers_utils_print__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(85769);
|
|
36536
|
+
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(80004);
|
|
36537
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(91288);
|
|
36538
|
+
/* harmony import */ var _lib_generate_critical_css__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(86134);
|
|
36539
|
+
/* harmony import */ var _print_svg__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(26899);
|
|
36540
|
+
/* harmony import */ var _print_svg__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_print_svg__WEBPACK_IMPORTED_MODULE_8__);
|
|
36486
36541
|
/*!
|
|
36487
36542
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
36488
36543
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -36497,8 +36552,8 @@ function generateCriticalCSS(jodit) {
|
|
|
36497
36552
|
|
|
36498
36553
|
|
|
36499
36554
|
|
|
36500
|
-
|
|
36501
|
-
|
|
36555
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_5__/* .Icon */ .I.set('print', (_print_svg__WEBPACK_IMPORTED_MODULE_8___default()));
|
|
36556
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.prototype.controls.print = {
|
|
36502
36557
|
exec: (editor) => {
|
|
36503
36558
|
const iframe = editor.create.element('iframe');
|
|
36504
36559
|
Object.assign(iframe.style, {
|
|
@@ -36509,7 +36564,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.pri
|
|
|
36509
36564
|
height: 0,
|
|
36510
36565
|
border: 0
|
|
36511
36566
|
});
|
|
36512
|
-
(0,jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .getContainer */ .My)(editor,
|
|
36567
|
+
(0,jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .getContainer */ .My)(editor, jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T).appendChild(iframe);
|
|
36513
36568
|
const afterFinishPrint = () => {
|
|
36514
36569
|
editor.e.off(editor.ow, 'mousemove', afterFinishPrint);
|
|
36515
36570
|
jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.safeRemove(iframe);
|
|
@@ -36525,12 +36580,12 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.pri
|
|
|
36525
36580
|
}
|
|
36526
36581
|
else {
|
|
36527
36582
|
myWindow.document.write('<!doctype html><html lang="' +
|
|
36528
|
-
(0,
|
|
36583
|
+
(0,jodit_core_helpers_utils_default_language__WEBPACK_IMPORTED_MODULE_3__/* .defaultLanguage */ .e)(editor.o.language) +
|
|
36529
36584
|
'"><head><title></title></head><style>' +
|
|
36530
|
-
(0,
|
|
36585
|
+
(0,_lib_generate_critical_css__WEBPACK_IMPORTED_MODULE_7__/* .generateCriticalCSS */ .Y)(editor) +
|
|
36531
36586
|
'</style><body></body></html>');
|
|
36532
36587
|
myWindow.document.close();
|
|
36533
|
-
(0,
|
|
36588
|
+
(0,jodit_core_helpers_utils_print__WEBPACK_IMPORTED_MODULE_4__/* .previewBox */ .u)(editor, undefined, 'px', myWindow.document.body);
|
|
36534
36589
|
}
|
|
36535
36590
|
const style = myWindow.document.createElement('style');
|
|
36536
36591
|
style.innerHTML = `@media print {
|
|
@@ -37606,10 +37661,11 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('resiz
|
|
|
37606
37661
|
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
|
37607
37662
|
|
|
37608
37663
|
"use strict";
|
|
37609
|
-
/* harmony import */ var
|
|
37610
|
-
/* harmony import */ var
|
|
37611
|
-
/* harmony import */ var
|
|
37612
|
-
/* harmony import */ var
|
|
37664
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
|
|
37665
|
+
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(80004);
|
|
37666
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(91288);
|
|
37667
|
+
/* harmony import */ var _search_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(98973);
|
|
37668
|
+
/* harmony import */ var _search_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_search_svg__WEBPACK_IMPORTED_MODULE_3__);
|
|
37613
37669
|
/*!
|
|
37614
37670
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
37615
37671
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -37619,14 +37675,14 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('resiz
|
|
|
37619
37675
|
|
|
37620
37676
|
|
|
37621
37677
|
|
|
37622
|
-
|
|
37623
|
-
|
|
37678
|
+
|
|
37679
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.useSearch = true;
|
|
37680
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.search = {
|
|
37624
37681
|
lazyIdleTimeout: 0,
|
|
37625
|
-
|
|
37626
|
-
useCustomHighlightAPI: typeof window.Highlight !== 'undefined'
|
|
37682
|
+
useCustomHighlightAPI: jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow && typeof jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow.Highlight !== 'undefined'
|
|
37627
37683
|
};
|
|
37628
|
-
|
|
37629
|
-
|
|
37684
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('search', (_search_svg__WEBPACK_IMPORTED_MODULE_3___default()));
|
|
37685
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.find = {
|
|
37630
37686
|
tooltip: 'Find',
|
|
37631
37687
|
icon: 'search',
|
|
37632
37688
|
exec(jodit, _, { control }) {
|
|
@@ -37667,8 +37723,10 @@ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.fin
|
|
|
37667
37723
|
/* harmony export */ _B: function() { return /* binding */ highlightTextRanges; },
|
|
37668
37724
|
/* harmony export */ zy: function() { return /* binding */ getSelectionWrappers; }
|
|
37669
37725
|
/* harmony export */ });
|
|
37670
|
-
/* harmony
|
|
37671
|
-
/* harmony import */ var
|
|
37726
|
+
/* unused harmony export clearNativeSelection */
|
|
37727
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
|
|
37728
|
+
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(23545);
|
|
37729
|
+
/* harmony import */ var jodit_core_helpers_utils_selector__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(52989);
|
|
37672
37730
|
/*!
|
|
37673
37731
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
37674
37732
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -37676,6 +37734,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.fin
|
|
|
37676
37734
|
*/
|
|
37677
37735
|
|
|
37678
37736
|
|
|
37737
|
+
|
|
37679
37738
|
/**
|
|
37680
37739
|
* @private
|
|
37681
37740
|
*/
|
|
@@ -37694,15 +37753,15 @@ function highlightTextRanges(jodit, rng, restRanges, ci, root) {
|
|
|
37694
37753
|
const span = ci.element('span', {
|
|
37695
37754
|
[TMP_ATTR]: true
|
|
37696
37755
|
});
|
|
37697
|
-
|
|
37756
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.markTemporary(span);
|
|
37698
37757
|
normalizeRanges(rng, restRanges, ci);
|
|
37699
37758
|
let next = rng.startContainer;
|
|
37700
37759
|
do {
|
|
37701
37760
|
if (!next) {
|
|
37702
37761
|
break;
|
|
37703
37762
|
}
|
|
37704
|
-
if (
|
|
37705
|
-
|
|
37763
|
+
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(next) && !isSelectionWrapper(next.parentNode)) {
|
|
37764
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.wrap(next, span.cloneNode(), ci);
|
|
37706
37765
|
}
|
|
37707
37766
|
if (next === rng.endContainer) {
|
|
37708
37767
|
break;
|
|
@@ -37721,13 +37780,14 @@ function highlightTextRanges(jodit, rng, restRanges, ci, root) {
|
|
|
37721
37780
|
* @private
|
|
37722
37781
|
*/
|
|
37723
37782
|
function getSelectionWrappers(root) {
|
|
37724
|
-
return (0,
|
|
37783
|
+
return (0,jodit_core_helpers_utils_selector__WEBPACK_IMPORTED_MODULE_2__.$$)(`[${TMP_ATTR}]`, root);
|
|
37725
37784
|
}
|
|
37726
37785
|
/**
|
|
37727
37786
|
* @private
|
|
37728
37787
|
*/
|
|
37729
|
-
function clearSelectionWrappers(
|
|
37730
|
-
getSelectionWrappers(
|
|
37788
|
+
function clearSelectionWrappers(jodit) {
|
|
37789
|
+
getSelectionWrappers(jodit.editor).forEach(span => jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.unwrap(span));
|
|
37790
|
+
clearNativeSelection(jodit);
|
|
37731
37791
|
}
|
|
37732
37792
|
/**
|
|
37733
37793
|
* @private
|
|
@@ -37739,19 +37799,19 @@ function clearSelectionWrappersFromHTML(root) {
|
|
|
37739
37799
|
* @private
|
|
37740
37800
|
*/
|
|
37741
37801
|
function isSelectionWrapper(node) {
|
|
37742
|
-
return
|
|
37802
|
+
return jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isElement(node) && node.hasAttribute(TMP_ATTR);
|
|
37743
37803
|
}
|
|
37744
37804
|
function checkNativeSelectionMethod(jodit, rng, restRanges) {
|
|
37745
37805
|
if (jodit.o.search.useCustomHighlightAPI &&
|
|
37746
37806
|
// @ts-ignore Because Highlight is not defined in the types TS 5.3.3
|
|
37747
|
-
|
|
37807
|
+
jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow &&
|
|
37808
|
+
typeof jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow.Highlight !== 'undefined') {
|
|
37748
37809
|
const ranges = [rng, ...restRanges].map(rng => {
|
|
37749
37810
|
const range = jodit.selection.createRange();
|
|
37750
37811
|
range.setStart(rng.startContainer, rng.startOffset);
|
|
37751
37812
|
range.setEnd(rng.endContainer, rng.endOffset);
|
|
37752
37813
|
return range;
|
|
37753
37814
|
});
|
|
37754
|
-
// @ts-ignore Because Highlight is not defined in the types TS 5.3.3
|
|
37755
37815
|
const searchHighlight = new Highlight(...ranges);
|
|
37756
37816
|
// @ts-ignore
|
|
37757
37817
|
CSS.highlights.clear();
|
|
@@ -37762,13 +37822,22 @@ function checkNativeSelectionMethod(jodit, rng, restRanges) {
|
|
|
37762
37822
|
}
|
|
37763
37823
|
return false;
|
|
37764
37824
|
}
|
|
37825
|
+
function clearNativeSelection(jodit) {
|
|
37826
|
+
if (jodit.o.search.useCustomHighlightAPI &&
|
|
37827
|
+
// @ts-ignore Because Highlight is not defined in the types TS 5.3.3
|
|
37828
|
+
jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow &&
|
|
37829
|
+
typeof jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow.Highlight !== 'undefined') {
|
|
37830
|
+
// @ts-ignore
|
|
37831
|
+
CSS.highlights.clear();
|
|
37832
|
+
}
|
|
37833
|
+
}
|
|
37765
37834
|
function normalizeRanges(rng, restRanges, ci) {
|
|
37766
37835
|
const startText = rng.startContainer.nodeValue;
|
|
37767
37836
|
let diff = 0;
|
|
37768
37837
|
if (rng.startOffset !== 0) {
|
|
37769
37838
|
const text = ci.text(startText.substring(0, rng.startOffset));
|
|
37770
37839
|
rng.startContainer.nodeValue = startText.substring(rng.startOffset);
|
|
37771
|
-
|
|
37840
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.before(rng.startContainer, text);
|
|
37772
37841
|
if (rng.startContainer === rng.endContainer) {
|
|
37773
37842
|
diff = rng.startOffset;
|
|
37774
37843
|
rng.endOffset -= diff;
|
|
@@ -37779,7 +37848,7 @@ function normalizeRanges(rng, restRanges, ci) {
|
|
|
37779
37848
|
if (rng.endOffset !== endText.length) {
|
|
37780
37849
|
const text = ci.text(endText.substring(rng.endOffset));
|
|
37781
37850
|
rng.endContainer.nodeValue = endText.substring(0, rng.endOffset);
|
|
37782
|
-
|
|
37851
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.after(rng.endContainer, text);
|
|
37783
37852
|
for (const range of restRanges) {
|
|
37784
37853
|
if (range.startContainer === rng.endContainer) {
|
|
37785
37854
|
range.startContainer = text;
|
|
@@ -37935,11 +38004,11 @@ class SentenceFinder {
|
|
|
37935
38004
|
*
|
|
37936
38005
|
* @example
|
|
37937
38006
|
* ```typescript
|
|
37938
|
-
*
|
|
38007
|
+
* const jodit = Jodit.make('#editor', {
|
|
37939
38008
|
* useSearch: false
|
|
37940
38009
|
* });
|
|
37941
38010
|
* // or
|
|
37942
|
-
*
|
|
38011
|
+
* const jodit = Jodit.make('#editor', {
|
|
37943
38012
|
* disablePlugins: 'search'
|
|
37944
38013
|
* });
|
|
37945
38014
|
* ```
|
|
@@ -38018,7 +38087,7 @@ class search extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_5__/* .Plugin */
|
|
|
38018
38087
|
rng.deleteContents();
|
|
38019
38088
|
const textNode = this.j.createInside.text(this.ui.replace);
|
|
38020
38089
|
jodit_core_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.safeInsertNode(rng, textNode);
|
|
38021
|
-
(0,_helpers__WEBPACK_IMPORTED_MODULE_7__/* .clearSelectionWrappers */ .IJ)(this.j
|
|
38090
|
+
(0,_helpers__WEBPACK_IMPORTED_MODULE_7__/* .clearSelectionWrappers */ .IJ)(this.j);
|
|
38022
38091
|
this.j.s.setCursorAfter(textNode);
|
|
38023
38092
|
this.tryScrollToElement(textNode);
|
|
38024
38093
|
this.cache = {};
|
|
@@ -38045,7 +38114,7 @@ class search extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_5__/* .Plugin */
|
|
|
38045
38114
|
!(0,_helpers__WEBPACK_IMPORTED_MODULE_7__/* .getSelectionWrappers */ .zy)(this.j.editor).length) {
|
|
38046
38115
|
this.drawPromise?.rejectCallback();
|
|
38047
38116
|
this.j.async.cancelAnimationFrame(this.wrapFrameRequest);
|
|
38048
|
-
(0,_helpers__WEBPACK_IMPORTED_MODULE_7__/* .clearSelectionWrappers */ .IJ)(this.j
|
|
38117
|
+
(0,_helpers__WEBPACK_IMPORTED_MODULE_7__/* .clearSelectionWrappers */ .IJ)(this.j);
|
|
38049
38118
|
this.drawPromise = this.__drawSelectionRanges(bounds);
|
|
38050
38119
|
}
|
|
38051
38120
|
this.previousQuery = query;
|
|
@@ -38158,14 +38227,15 @@ class search extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_5__/* .Plugin */
|
|
|
38158
38227
|
this.ui.close();
|
|
38159
38228
|
})
|
|
38160
38229
|
.on(this.ui, 'afterClose', () => {
|
|
38161
|
-
(0,_helpers__WEBPACK_IMPORTED_MODULE_7__/* .clearSelectionWrappers */ .IJ)(editor
|
|
38230
|
+
(0,_helpers__WEBPACK_IMPORTED_MODULE_7__/* .clearSelectionWrappers */ .IJ)(editor);
|
|
38162
38231
|
this.ui.currentIndex = 0;
|
|
38163
38232
|
this.ui.count = 0;
|
|
38164
38233
|
this.cache = {};
|
|
38234
|
+
editor.focus();
|
|
38165
38235
|
})
|
|
38166
38236
|
.on('click', () => {
|
|
38167
38237
|
this.ui.currentIndex = 0;
|
|
38168
|
-
(0,_helpers__WEBPACK_IMPORTED_MODULE_7__/* .clearSelectionWrappers */ .IJ)(editor
|
|
38238
|
+
(0,_helpers__WEBPACK_IMPORTED_MODULE_7__/* .clearSelectionWrappers */ .IJ)(editor);
|
|
38169
38239
|
})
|
|
38170
38240
|
.on('change.search', () => {
|
|
38171
38241
|
this.cache = {};
|
|
@@ -38176,7 +38246,7 @@ class search extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_5__/* .Plugin */
|
|
|
38176
38246
|
this.ui.selInfo = null;
|
|
38177
38247
|
}
|
|
38178
38248
|
if (this.ui.isOpened) {
|
|
38179
|
-
this.updateCounters();
|
|
38249
|
+
void this.updateCounters();
|
|
38180
38250
|
}
|
|
38181
38251
|
}, editor.defaultTimeout))
|
|
38182
38252
|
.on('searchNext.search searchPrevious.search', () => {
|
|
@@ -38356,7 +38426,7 @@ let UISearch = class UISearch extends jodit_core_ui__WEBPACK_IMPORTED_MODULE_4__
|
|
|
38356
38426
|
return false;
|
|
38357
38427
|
})
|
|
38358
38428
|
.on(next, 'pointerdown', () => {
|
|
38359
|
-
jodit.e.fire('searchNext');
|
|
38429
|
+
void jodit.e.fire('searchNext');
|
|
38360
38430
|
return false;
|
|
38361
38431
|
})
|
|
38362
38432
|
.on(prev, 'pointerdown', () => {
|
|
@@ -38366,12 +38436,12 @@ let UISearch = class UISearch extends jodit_core_ui__WEBPACK_IMPORTED_MODULE_4__
|
|
|
38366
38436
|
.on(this.queryInput, 'input', () => {
|
|
38367
38437
|
this.setMod('empty-query', !(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.trim)(this.queryInput.value).length);
|
|
38368
38438
|
})
|
|
38369
|
-
.on(this.queryInput, 'keydown', this.j.async.debounce((e) => {
|
|
38439
|
+
.on(this.queryInput, 'keydown', this.j.async.debounce(async (e) => {
|
|
38370
38440
|
switch (e.key) {
|
|
38371
38441
|
case jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_ENTER:
|
|
38372
38442
|
e.preventDefault();
|
|
38373
38443
|
e.stopImmediatePropagation();
|
|
38374
|
-
if (jodit.e.fire('searchNext')) {
|
|
38444
|
+
if (await jodit.e.fire('searchNext')) {
|
|
38375
38445
|
this.close();
|
|
38376
38446
|
}
|
|
38377
38447
|
break;
|
|
@@ -40234,6 +40304,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('spell
|
|
|
40234
40304
|
|
|
40235
40305
|
jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.showCharsCounter = true;
|
|
40236
40306
|
jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.countHTMLChars = false;
|
|
40307
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.countTextSpaces = false;
|
|
40237
40308
|
jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.showWordsCounter = true;
|
|
40238
40309
|
|
|
40239
40310
|
|
|
@@ -40280,9 +40351,20 @@ class stat extends jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_3__/* .Plug
|
|
|
40280
40351
|
this.calc = this.j.async.throttle(() => {
|
|
40281
40352
|
const text = this.j.text;
|
|
40282
40353
|
if (this.j.o.showCharsCounter && this.charCounter) {
|
|
40283
|
-
|
|
40284
|
-
|
|
40285
|
-
|
|
40354
|
+
let chars;
|
|
40355
|
+
if (this.j.o.countHTMLChars) {
|
|
40356
|
+
chars = this.j.value;
|
|
40357
|
+
}
|
|
40358
|
+
else {
|
|
40359
|
+
if (this.j.o.countTextSpaces) {
|
|
40360
|
+
chars = text
|
|
40361
|
+
.replace((0,jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE_REG_EXP)(), '')
|
|
40362
|
+
.replace(/[\r\n]/g, '');
|
|
40363
|
+
}
|
|
40364
|
+
else {
|
|
40365
|
+
chars = text.replace((0,jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.SPACE_REG_EXP)(), '');
|
|
40366
|
+
}
|
|
40367
|
+
}
|
|
40286
40368
|
this.charCounter.textContent = this.j.i18n('Chars: %d', chars.length);
|
|
40287
40369
|
}
|
|
40288
40370
|
if (this.j.o.showWordsCounter && this.wordCounter) {
|
|
@@ -40746,6 +40828,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
40746
40828
|
/* harmony export */ pt_br: function() { return /* reexport module object */ _ar_js__WEBPACK_IMPORTED_MODULE_0__; },
|
|
40747
40829
|
/* harmony export */ ru: function() { return /* reexport module object */ _ar_js__WEBPACK_IMPORTED_MODULE_0__; },
|
|
40748
40830
|
/* harmony export */ tr: function() { return /* reexport module object */ _ar_js__WEBPACK_IMPORTED_MODULE_0__; },
|
|
40831
|
+
/* harmony export */ ua: function() { return /* reexport module object */ _ar_js__WEBPACK_IMPORTED_MODULE_0__; },
|
|
40749
40832
|
/* harmony export */ zh_cn: function() { return /* reexport module object */ _ar_js__WEBPACK_IMPORTED_MODULE_0__; },
|
|
40750
40833
|
/* harmony export */ zh_tw: function() { return /* reexport module object */ _ar_js__WEBPACK_IMPORTED_MODULE_0__; }
|
|
40751
40834
|
/* harmony export */ });
|
|
@@ -40778,6 +40861,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
40778
40861
|
|
|
40779
40862
|
|
|
40780
40863
|
|
|
40864
|
+
|
|
40781
40865
|
|
|
40782
40866
|
|
|
40783
40867
|
/***/ }),
|
|
@@ -42461,7 +42545,6 @@ function getTextLeftOfCursor(range) {
|
|
|
42461
42545
|
* ```
|
|
42462
42546
|
*/
|
|
42463
42547
|
function replaceTextLeftOfCursorAfterSpace(range, elm) {
|
|
42464
|
-
// eslint-disable-next-line prefer-const
|
|
42465
42548
|
let { startContainer, startOffset } = range;
|
|
42466
42549
|
if (!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isText(startContainer)) {
|
|
42467
42550
|
startContainer = startContainer.childNodes[startOffset - 1];
|
|
@@ -42966,7 +43049,6 @@ function convertToList(elm) {
|
|
|
42966
43049
|
return elm;
|
|
42967
43050
|
}
|
|
42968
43051
|
function moveUp(leaf) {
|
|
42969
|
-
// eslint-disable-next-line no-constant-condition
|
|
42970
43052
|
while (leaf) {
|
|
42971
43053
|
const prev = leaf.previousElement;
|
|
42972
43054
|
// Leaf after P
|
|
@@ -44352,7 +44434,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
44352
44434
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
44353
44435
|
PERFORMANCE OF THIS SOFTWARE.
|
|
44354
44436
|
***************************************************************************** */
|
|
44355
|
-
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
44437
|
+
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
|
|
44356
44438
|
|
|
44357
44439
|
var extendStatics = function(d, b) {
|
|
44358
44440
|
extendStatics = Object.setPrototypeOf ||
|
|
@@ -44463,8 +44545,8 @@ function __awaiter(thisArg, _arguments, P, generator) {
|
|
|
44463
44545
|
}
|
|
44464
44546
|
|
|
44465
44547
|
function __generator(thisArg, body) {
|
|
44466
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
44467
|
-
return g =
|
|
44548
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
44549
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
44468
44550
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
44469
44551
|
function step(op) {
|
|
44470
44552
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -44568,8 +44650,9 @@ function __await(v) {
|
|
|
44568
44650
|
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
44569
44651
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
44570
44652
|
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
44571
|
-
return i =
|
|
44572
|
-
function
|
|
44653
|
+
return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
44654
|
+
function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }
|
|
44655
|
+
function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }
|
|
44573
44656
|
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
|
44574
44657
|
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
44575
44658
|
function fulfill(value) { resume("next", value); }
|
|
@@ -44635,16 +44718,18 @@ function __classPrivateFieldIn(state, receiver) {
|
|
|
44635
44718
|
function __addDisposableResource(env, value, async) {
|
|
44636
44719
|
if (value !== null && value !== void 0) {
|
|
44637
44720
|
if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
|
|
44638
|
-
var dispose;
|
|
44721
|
+
var dispose, inner;
|
|
44639
44722
|
if (async) {
|
|
44640
|
-
|
|
44641
|
-
|
|
44723
|
+
if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
|
|
44724
|
+
dispose = value[Symbol.asyncDispose];
|
|
44642
44725
|
}
|
|
44643
44726
|
if (dispose === void 0) {
|
|
44644
|
-
|
|
44645
|
-
|
|
44727
|
+
if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
|
|
44728
|
+
dispose = value[Symbol.dispose];
|
|
44729
|
+
if (async) inner = dispose;
|
|
44646
44730
|
}
|
|
44647
44731
|
if (typeof dispose !== "function") throw new TypeError("Object not disposable.");
|
|
44732
|
+
if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };
|
|
44648
44733
|
env.stack.push({ value: value, dispose: dispose, async: async });
|
|
44649
44734
|
}
|
|
44650
44735
|
else if (async) {
|
|
@@ -44663,17 +44748,22 @@ function __disposeResources(env) {
|
|
|
44663
44748
|
env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
|
|
44664
44749
|
env.hasError = true;
|
|
44665
44750
|
}
|
|
44751
|
+
var r, s = 0;
|
|
44666
44752
|
function next() {
|
|
44667
|
-
while (env.stack.
|
|
44668
|
-
var rec = env.stack.pop();
|
|
44753
|
+
while (r = env.stack.pop()) {
|
|
44669
44754
|
try {
|
|
44670
|
-
|
|
44671
|
-
if (
|
|
44755
|
+
if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);
|
|
44756
|
+
if (r.dispose) {
|
|
44757
|
+
var result = r.dispose.call(r.value);
|
|
44758
|
+
if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });
|
|
44759
|
+
}
|
|
44760
|
+
else s |= 1;
|
|
44672
44761
|
}
|
|
44673
44762
|
catch (e) {
|
|
44674
|
-
|
|
44763
|
+
fail(e);
|
|
44675
44764
|
}
|
|
44676
44765
|
}
|
|
44766
|
+
if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();
|
|
44677
44767
|
if (env.hasError) throw env.error;
|
|
44678
44768
|
}
|
|
44679
44769
|
return next();
|
|
@@ -44800,11 +44890,88 @@ function __disposeResources(env) {
|
|
|
44800
44890
|
/******/ };
|
|
44801
44891
|
/******/ }();
|
|
44802
44892
|
/******/
|
|
44893
|
+
/******/ /* webpack/runtime/ensure chunk */
|
|
44894
|
+
/******/ !function() {
|
|
44895
|
+
/******/ __webpack_require__.f = {};
|
|
44896
|
+
/******/ // This file contains only the entry chunk.
|
|
44897
|
+
/******/ // The chunk loading function for additional chunks
|
|
44898
|
+
/******/ __webpack_require__.e = function(chunkId) {
|
|
44899
|
+
/******/ return Promise.all(Object.keys(__webpack_require__.f).reduce(function(promises, key) {
|
|
44900
|
+
/******/ __webpack_require__.f[key](chunkId, promises);
|
|
44901
|
+
/******/ return promises;
|
|
44902
|
+
/******/ }, []));
|
|
44903
|
+
/******/ };
|
|
44904
|
+
/******/ }();
|
|
44905
|
+
/******/
|
|
44906
|
+
/******/ /* webpack/runtime/get javascript chunk filename */
|
|
44907
|
+
/******/ !function() {
|
|
44908
|
+
/******/ // This function allow to reference async chunks
|
|
44909
|
+
/******/ __webpack_require__.u = function(chunkId) {
|
|
44910
|
+
/******/ // return url for filenames based on template
|
|
44911
|
+
/******/ return "" + chunkId + ".js";
|
|
44912
|
+
/******/ };
|
|
44913
|
+
/******/ }();
|
|
44914
|
+
/******/
|
|
44915
|
+
/******/ /* webpack/runtime/get mini-css chunk filename */
|
|
44916
|
+
/******/ !function() {
|
|
44917
|
+
/******/ // This function allow to reference async chunks
|
|
44918
|
+
/******/ __webpack_require__.miniCssF = function(chunkId) {
|
|
44919
|
+
/******/ // return url for filenames based on template
|
|
44920
|
+
/******/ return undefined;
|
|
44921
|
+
/******/ };
|
|
44922
|
+
/******/ }();
|
|
44923
|
+
/******/
|
|
44803
44924
|
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
44804
44925
|
/******/ !function() {
|
|
44805
44926
|
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|
|
44806
44927
|
/******/ }();
|
|
44807
44928
|
/******/
|
|
44929
|
+
/******/ /* webpack/runtime/load script */
|
|
44930
|
+
/******/ !function() {
|
|
44931
|
+
/******/ var inProgress = {};
|
|
44932
|
+
/******/ var dataWebpackPrefix = "jodit-pro:";
|
|
44933
|
+
/******/ // loadScript function to load a script via script tag
|
|
44934
|
+
/******/ __webpack_require__.l = function(url, done, key, chunkId) {
|
|
44935
|
+
/******/ if(inProgress[url]) { inProgress[url].push(done); return; }
|
|
44936
|
+
/******/ var script, needAttach;
|
|
44937
|
+
/******/ if(key !== undefined) {
|
|
44938
|
+
/******/ var scripts = document.getElementsByTagName("script");
|
|
44939
|
+
/******/ for(var i = 0; i < scripts.length; i++) {
|
|
44940
|
+
/******/ var s = scripts[i];
|
|
44941
|
+
/******/ if(s.getAttribute("src") == url || s.getAttribute("data-webpack") == dataWebpackPrefix + key) { script = s; break; }
|
|
44942
|
+
/******/ }
|
|
44943
|
+
/******/ }
|
|
44944
|
+
/******/ if(!script) {
|
|
44945
|
+
/******/ needAttach = true;
|
|
44946
|
+
/******/ script = document.createElement('script');
|
|
44947
|
+
/******/
|
|
44948
|
+
/******/ script.charset = 'utf-8';
|
|
44949
|
+
/******/ script.timeout = 120;
|
|
44950
|
+
/******/ if (__webpack_require__.nc) {
|
|
44951
|
+
/******/ script.setAttribute("nonce", __webpack_require__.nc);
|
|
44952
|
+
/******/ }
|
|
44953
|
+
/******/ script.setAttribute("data-webpack", dataWebpackPrefix + key);
|
|
44954
|
+
/******/
|
|
44955
|
+
/******/ script.src = url;
|
|
44956
|
+
/******/ }
|
|
44957
|
+
/******/ inProgress[url] = [done];
|
|
44958
|
+
/******/ var onScriptComplete = function(prev, event) {
|
|
44959
|
+
/******/ // avoid mem leaks in IE.
|
|
44960
|
+
/******/ script.onerror = script.onload = null;
|
|
44961
|
+
/******/ clearTimeout(timeout);
|
|
44962
|
+
/******/ var doneFns = inProgress[url];
|
|
44963
|
+
/******/ delete inProgress[url];
|
|
44964
|
+
/******/ script.parentNode && script.parentNode.removeChild(script);
|
|
44965
|
+
/******/ doneFns && doneFns.forEach(function(fn) { return fn(event); });
|
|
44966
|
+
/******/ if(prev) return prev(event);
|
|
44967
|
+
/******/ }
|
|
44968
|
+
/******/ var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
|
|
44969
|
+
/******/ script.onerror = onScriptComplete.bind(null, script.onerror);
|
|
44970
|
+
/******/ script.onload = onScriptComplete.bind(null, script.onload);
|
|
44971
|
+
/******/ needAttach && document.head.appendChild(script);
|
|
44972
|
+
/******/ };
|
|
44973
|
+
/******/ }();
|
|
44974
|
+
/******/
|
|
44808
44975
|
/******/ /* webpack/runtime/make namespace object */
|
|
44809
44976
|
/******/ !function() {
|
|
44810
44977
|
/******/ // define __esModule on exports
|
|
@@ -44816,6 +44983,11 @@ function __disposeResources(env) {
|
|
|
44816
44983
|
/******/ };
|
|
44817
44984
|
/******/ }();
|
|
44818
44985
|
/******/
|
|
44986
|
+
/******/ /* webpack/runtime/publicPath */
|
|
44987
|
+
/******/ !function() {
|
|
44988
|
+
/******/ __webpack_require__.p = "/build/";
|
|
44989
|
+
/******/ }();
|
|
44990
|
+
/******/
|
|
44819
44991
|
/******/ /* webpack/runtime/jsonp chunk loading */
|
|
44820
44992
|
/******/ !function() {
|
|
44821
44993
|
/******/ // no baseURI
|
|
@@ -44827,7 +44999,44 @@ function __disposeResources(env) {
|
|
|
44827
44999
|
/******/ 521: 0
|
|
44828
45000
|
/******/ };
|
|
44829
45001
|
/******/
|
|
44830
|
-
/******/
|
|
45002
|
+
/******/ __webpack_require__.f.j = function(chunkId, promises) {
|
|
45003
|
+
/******/ // JSONP chunk loading for javascript
|
|
45004
|
+
/******/ var installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;
|
|
45005
|
+
/******/ if(installedChunkData !== 0) { // 0 means "already installed".
|
|
45006
|
+
/******/
|
|
45007
|
+
/******/ // a Promise means "currently loading".
|
|
45008
|
+
/******/ if(installedChunkData) {
|
|
45009
|
+
/******/ promises.push(installedChunkData[2]);
|
|
45010
|
+
/******/ } else {
|
|
45011
|
+
/******/ if(true) { // all chunks have JS
|
|
45012
|
+
/******/ // setup Promise in chunk cache
|
|
45013
|
+
/******/ var promise = new Promise(function(resolve, reject) { installedChunkData = installedChunks[chunkId] = [resolve, reject]; });
|
|
45014
|
+
/******/ promises.push(installedChunkData[2] = promise);
|
|
45015
|
+
/******/
|
|
45016
|
+
/******/ // start chunk loading
|
|
45017
|
+
/******/ var url = __webpack_require__.p + __webpack_require__.u(chunkId);
|
|
45018
|
+
/******/ // create error before stack unwound to get useful stacktrace later
|
|
45019
|
+
/******/ var error = new Error();
|
|
45020
|
+
/******/ var loadingEnded = function(event) {
|
|
45021
|
+
/******/ if(__webpack_require__.o(installedChunks, chunkId)) {
|
|
45022
|
+
/******/ installedChunkData = installedChunks[chunkId];
|
|
45023
|
+
/******/ if(installedChunkData !== 0) installedChunks[chunkId] = undefined;
|
|
45024
|
+
/******/ if(installedChunkData) {
|
|
45025
|
+
/******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
|
|
45026
|
+
/******/ var realSrc = event && event.target && event.target.src;
|
|
45027
|
+
/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
|
|
45028
|
+
/******/ error.name = 'ChunkLoadError';
|
|
45029
|
+
/******/ error.type = errorType;
|
|
45030
|
+
/******/ error.request = realSrc;
|
|
45031
|
+
/******/ installedChunkData[1](error);
|
|
45032
|
+
/******/ }
|
|
45033
|
+
/******/ }
|
|
45034
|
+
/******/ };
|
|
45035
|
+
/******/ __webpack_require__.l(url, loadingEnded, "chunk-" + chunkId, chunkId);
|
|
45036
|
+
/******/ }
|
|
45037
|
+
/******/ }
|
|
45038
|
+
/******/ }
|
|
45039
|
+
/******/ };
|
|
44831
45040
|
/******/
|
|
44832
45041
|
/******/ // no prefetching
|
|
44833
45042
|
/******/
|