2021-05-11 05:36:25 +08:00
|
|
|
{"version":3,"sources":["webpack://@flarum/markdown/webpack/bootstrap","webpack://@flarum/markdown/external \"flarum.core.compat['Component']\"","webpack://@flarum/markdown/external \"flarum.core.compat['extend']\"","webpack://@flarum/markdown/external \"flarum.core.compat['components/TextEditor']\"","webpack://@flarum/markdown/external \"flarum.core.compat['common/utils/BasicEditorDriver']\"","webpack://@flarum/markdown/external \"flarum.core.compat['common/utils/styleSelectedText']\"","webpack://@flarum/markdown/external \"flarum.core.compat['helpers/icon']\"","webpack://@flarum/markdown/./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js","webpack://@flarum/markdown/./src/forum/components/MarkdownToolbar.js","webpack://@flarum/markdown/./src/forum/components/MarkdownButton.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","_inheritsLoose","subClass","superClass","constructor","__proto__","MarkdownToolbar","view","vnode","class","children","Component","MarkdownButton","oncreate","this","$","tooltip","className","title","attrs","data-hotkey","hotkey","onkeydown","keydown","onclick","icon","event","preventDefault","element","click","modifierKey","navigator","userAgent","match","styles","prefix","suffix","trimFirst","multiline","surroundWithNewlines","blockPrefix","blockSuffix","replaceNext","scanFor","orderedList","applyStyle","id","styleSelectedText","app","composer","editor","el","makeShortcut","e","metaKey","ctrlKey","initializers","add","extend","BasicEditorDriver","items","TextEditor","translator","trans","makeApplyStyle","for","textareaId","setShortcutHandler","handler","shortcutHandler"],"mappings":"2BACE,IAAIA,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUC,QAGnC,IAAIC,EAASJ,EAAiBE,GAAY,CACzCG,EAAGH,EACHI,GAAG,EACHH,QAAS,IAUV,OANAI,EAAQL,GAAUM,KA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