{"version":3,"sources":["webpack:///./node_modules/@ckeditor/ckeditor5-editor-classic/src/classiceditorui.js","webpack:///./node_modules/@ckeditor/ckeditor5-editor-classic/src/classiceditoruiview.js","webpack:///./node_modules/@ckeditor/ckeditor5-editor-classic/src/classiceditor.js"],"names":["ClassicEditorUI","editor","view","_this","Object","classCallCheck","this","_super","call","_toolbarConfig","normalizeToolbarConfig","config","get","_elementReplacer","ElementReplacer","element","replacementElement","editingView","editing","editable","editingRoot","document","getRoot","name","rootName","render","editableElement","setEditableElement","focusTracker","add","bind","to","attachDomRoot","replace","_initPlaceholder","_initToolbar","fire","restore","detachDomRoot","destroy","getPrototypeOf","prototype","stickyPanel","limiterElement","viewportTopOffset","toolbar","fillFromConfig","componentFactory","enableToolbarKeyboardFocus","origin","originFocusTracker","originKeystrokeHandler","keystrokes","sourceElement","placeholderText","tagName","toLowerCase","getAttribute","enablePlaceholder","text","isDirectHost","keepOnFocus","EditorUI","ClassicEditorUIView","locale","options","arguments","length","undefined","StickyPanelView","ToolbarView","shouldGroupWhenFull","shouldToolbarGroupWhenFull","InlineEditableUIView","content","top","main","BoxedEditorUIView","ClassicEditor","sourceElementOrData","isElement","model","createRoot","ui","assertThisInitialized","attachToForm","updateSourceElement","_this2","Promise","resolve","initPlugins","then","init","initialData","CKEditorError","getInitialData","data","Editor","getDataFromElement","mix","DataApiMixin","ElementApiMixin"],"mappings":";;;;OAmBqBA,6CAOpB,SAAAA,EAAaC,EAAQC,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,KAAAD,CAAAE,KAAAN,GAC3BG,EAAAI,EAAAC,KAAAF,KAAOL,GAQPE,EAAKD,KAAOA,EAQZC,EAAKM,eAAiBC,eAAwBT,EAAOU,OAAOC,IAAK,YAQjET,EAAKU,iBAAmB,IAAIC,OAzBDX,8CA+B5B,WACC,OAAOG,KAAKJ,KAAKa,4BAQlB,SAAMC,GACL,IAAMf,EAASK,KAAKL,OACdC,EAAOI,KAAKJ,KACZe,EAAchB,EAA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AhF,CAAAD,IAhB6BA,gDA0B3C,WAOC,OANKG,KAAK+C,eACT/C,KAAKgF,sBAGNhF,KAAK6E,GAAG5C,UAERnC,OAAAQ,EAAA,KAAAR,QAAAoC,EAAA,KAAApC,CAAA0E,EAAArC,WAAA,UAAAnC,MAAAE,KAAAF,8BAgGD,SAAeyE,GAAmC,IAAAQ,EAAAjF,KAAdK,EAAcuD,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,MACjD,OAAO,IAAIsB,QAAS,SAAAC,GACnB,IAAMxF,EAAS,IAAIsF,EAAMR,EAAqBpE,GAE9C8E,EACCxF,EAAOyF,cACLC,KAAM,kBAAM1F,EAAOkF,GAAGS,KAAMZ,eAAWD,GAAwBA,EAAsB,QACrFY,KAAM,WACN,IAAMX,eAAWD,IAAyBpE,EAAOkF,YAGhD,MAAM,IAAIC,OAAe,6BAA8B,MAGxD,IAAMD,OAAqCzB,IAAvBzD,EAAOkF,YAA4BlF,EAAOkF,YAAcE,EAAgBhB,GAE5F,OAAO9E,EAAO+F,KAAKJ,KAAMC,KAEzBF,KAAM,kBAAM1F,EAAOmC,KAAM,WACzBuD,KAAM,kBAAM1F,cAjKyBgG,QA0K3C,SAASF,EAAgBhB,GACxB,OAAOC,eAAWD,GAAwBmB,eAAoBnB,GAAwBA,EAJvFoB,eAAKrB,EAAesB,QACpBD,eAAKrB,EAAeuB","file":"js/chunk-2308e64b.e3b431bc.js","sourcesContent":["/**\n * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * @module editor-classic/classiceditorui\n */\n\nimport { EditorUI } from 'ckeditor5/src/core';\nimport { enableToolbarKeyboardFocus, normalizeToolbarConfig } from 'ckeditor5/src/ui';\nimport { enablePlaceholder } from 'ckeditor5/src/engine';\nimport { ElementReplacer } from 'ckeditor5/src/utils';\n\n/**\n * The classic editor UI class.\n *\n * @extends module:core/editor/editorui~EditorUI\n */\nexport default class ClassicEditorUI extends EditorUI {\n\t/**\n\t * Creates an instance of the classic editor UI class.\n\t *\n\t * @param {module:core/editor/editor~Editor} editor The editor instance.\n\t * @param {module:ui/editorui/editoruiview~EditorUIView} view The view of the UI.\n\t */\n\tconstructor( editor, view ) {\n\t\tsuper( editor );\n\n\t\t/**\n\t\t * The main (top–most) view of the editor UI.\n\t\t *\n\t\t * @readonly\n\t\t * @member {module:ui/editorui/editoruiview~EditorUIView} #view\n\t\t */\n\t\tthis.view = view;\n\n\t\t/**\n\t\t * A normalized `config.toolbar` object.\n\t\t *\n\t\t * @private\n\t\t * @member {Object}\n\t\t */\n\t\tthis._toolbarConfig = normalizeToolbarConfig( editor.config.get( 'toolbar' ) );\n\n\t\t/**\n\t\t * The element replacer instance used to hide the editor's source element.\n\t\t *\n\t\t * @protected\n\t\t * @member {module:utils/elementreplacer~ElementReplacer}\n\t\t */\n\t\tthis._elementReplacer = new ElementReplacer();\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tget element() {\n\t\treturn this.view.element;\n\t}\n\n\t/**\n\t * Initializes the UI.\n\t *\n\t * @param {HTMLElement|null} replacementElement The DOM element that will be the source for the created editor.\n\t */\n\tinit( replacementElement ) {\n\t\tconst editor = this.editor;\n\t\tconst view = this.view;\n\t\tconst editingView = editor.editing.view;\n\t\tconst editable = view.editable;\n\t\tconst editingRoot = editingView.document.getRoot();\n\n\t\t// The editable UI and editing root should share the same name. Then name is used\n\t\t// to recognize the particular editable, for instance in ARIA attributes.\n\t\teditable.name = editingRoot.rootName;\n\n\t\tview.render();\n\n\t\t// The editable UI element in DOM is available for sure only after the editor UI view has been rendered.\n\t\t// But it can be available earlier if a DOM element has been passed to BalloonEditor.create().\n\t\tconst editableElement = editable.element;\n\n\t\t// Register the editable UI view in the editor. A single editor instance can aggregate multiple\n\t\t// editable areas (roots) but the classic editor has only one.\n\t\tthis.setEditableElement( editable.name, editableElement );\n\n\t\t// Let the global focus tracker know that the editable UI element is focusable and\n\t\t// belongs to the editor. From now on, the focus tracker will sustain the editor focus\n\t\t// as long as the editable is focused (e.g. the user is typing).\n\t\tthis.focusTracker.add( editableElement );\n\n\t\t// Let the editable UI element respond to the changes in the global editor focus\n\t\t// tracker. It has been added to the same tracker a few lines above but, in reality, there are\n\t\t// many focusable areas in the editor, like balloons, toolbars or dropdowns and as long\n\t\t// as they have focus, the editable should act like it is focused too (although technically\n\t\t// it isn't), e.g. by setting the proper CSS class, visually announcing focus to the user.\n\t\t// Doing otherwise will result in editable focus styles disappearing, once e.g. the\n\t\t// toolbar gets focused.\n\t\tview.editable.bind( 'isFocused' ).to( this.focusTracker );\n\n\t\t// Bind the editable UI element to the editing view, making it an end– and entry–point\n\t\t// of the editor's engine. This is where the engine meets the UI.\n\t\teditingView.attachDomRoot( editableElement );\n\n\t\t// If an element containing the initial data of the editor was provided, replace it with\n\t\t// an editor instance's UI in DOM until the editor is destroyed. For instance, a