2021-03-11 08:24:16 +08:00
|
|
|
{"version":3,"sources":["webpack://@flarum/markdown/webpack/bootstrap","webpack://@flarum/markdown/external \"flarum.core.compat['extend']\"","webpack://@flarum/markdown/external \"flarum.core.compat['components/TextEditor']\"","webpack://@flarum/markdown/external \"flarum.core.compat['Component']\"","webpack://@flarum/markdown/external \"flarum.core.compat['helpers/icon']\"","webpack://@flarum/markdown/./node_modules/mdarea/dist/index.min.js","webpack://@flarum/markdown/external \"flarum.core.compat['utils/BasicEditorDriver']\"","webpack://@flarum/markdown/./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js","webpack://@flarum/markdown/./src/forum/components/MarkdownToolbar.js","webpack://@flarum/markdown/./node_modules/@babel/runtime/helpers/esm/extends.js","webpack://@flarum/markdown/./src/forum/util/insertText.js","webpack://@flarum/markdown/./src/forum/util/styles.js","webpack://@flarum/markdown/./src/forum/util/apply.js","webpack://@flarum/markdown/./src/forum/components/MarkdownButton.js","webpack://@flarum/markdown/./src/forum/util/MarkdownAreaEditorDriver.js","webpack://@flarum/markdown/./src/forum/index.js"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","flarum","core","compat","e","u","a","h","f","enter","lastIndexOf","substring","exec","line","offset","prefix","charAt","length","shiftKey","indent","test","replace","parseInt","v","outdent","reOutdent","inline","slice","y","this","options","keyMap","find","action","navigator","platform","g","userAgent","x","k","b","Array","isArray","toString","trim","split","push","apply","map","E","forEach","ctrlKey","altKey","metaKey","toLowerCase","K","document","createElement","setAttribute","tabIndex","contentEditable","textContent","addEventListener","setTimeout","blur","style","position","overflow","left","top","width","height","opacity","w","selectionStart","selectionEnd","scrollLeft","scrollTop","L","lock","elem","T","A","defaultPrevented","extensions","handleKey","preventDefault","C","type","execCommand","O","idx","helper","state","history","S","I","$","splice","focus","assign","scrollTo","D","join","RegExp","ed","onKeyDown","onInput","onUndo","body","appendChild","setElement","cleanup","removeEventListener","init","removeChild","destroy","version","_inheritsLoose","subClass","superClass","constructor","__proto__","modifierKey","match","MarkdownToolbar","oncreate","vnode","attrs","setShortcutHandler","shortcut","view","id","data-for","for","display","children","event","button","element","querySelector","click","Component","_extends","target","arguments","source","canInsertText","isMultipleLines","string","repeat","wordSelectionStart","text","index","wordSelectionEnd","multiline","breakpoint","newlinesToSurroundSelectedText","textarea","newlinesToAppend","newlinesToPrepend","beforeSelection","afterSelection","breaksBefore","breaksAfter","newlinesBeforeSelection","newlinesAfterSelection","blockStyle","arg","suffix","blockPrefix","blockSuffix","replaceNext","prefixSpace","scanFor","surroundWithNewlines","originalSelectionStart","originalSelectionEnd","selectedText","prefixToUse","suffixToUse","undefined","expandedSelectionStart","expandedSelectionEnd","beginsWithPrefix","endsWithSuffix","expandSelectedText","hasReplaceNext","indexOf","ref","startsWith","endsWith","replacementText","Math","max","min","whitespaceEdges","trimFirst","leadingWhitespace","trailingWhitespace","styleSelectedText","styleArgs","result","orderedList","startOfLine","endOfLine","orderedListRegex","noInitialSelection","textToUnstyle","lines","linesBefore","linesToUnstyle","every","lengthDiff","len","results","multilineStyle","before","after","error","createEvent","initEvent","dispatchEvent","setSelectionRange","insertText","MarkdownButton","tooltip","className","title","data-hotkey","hotkey","onclick","onkeydown","k
|