web-interface.assets.07567125b93045706d81f17f7d04e262.js Maven / Gradle / Ivy
(()=>{var x=(s,r)=>()=>(r||s((r={exports:{}}).exports,r),r.exports);var y=x(($,c)=>{ace.define("ace/ext/rtl",["require","exports","module","ace/editor","ace/config"],function(s,r,L){"use strict";var d=[{name:"leftToRight",bindKey:{win:"Ctrl-Alt-Shift-L",mac:"Command-Alt-Shift-L"},exec:function(e){e.session.$bidiHandler.setRtlDirection(e,!1)},readOnly:!0},{name:"rightToLeft",bindKey:{win:"Ctrl-Alt-Shift-R",mac:"Command-Alt-Shift-R"},exec:function(e){e.session.$bidiHandler.setRtlDirection(e,!0)},readOnly:!0}],b=s("../editor").Editor;s("../config").defineOptions(b.prototype,"editor",{rtlText:{set:function(e){e?(this.on("change",m),this.on("changeSelection",f),this.renderer.on("afterRender",a),this.commands.on("exec",h),this.commands.addCommands(d)):(this.off("change",m),this.off("changeSelection",f),this.renderer.off("afterRender",a),this.commands.off("exec",h),this.commands.removeCommands(d),u(this.renderer)),this.renderer.updateFull()}},rtl:{set:function(e){this.session.$bidiHandler.$isRtl=e,e?(this.setOption("rtlText",!1),this.renderer.on("afterRender",a),this.session.$bidiHandler.seenBidi=!0):(this.renderer.off("afterRender",a),u(this.renderer)),this.renderer.updateFull()}}});function f(e,t){var i=t.getSelection().lead;t.session.$bidiHandler.isRtlLine(i.row)&&i.column===0&&(t.session.$bidiHandler.isMoveLeftOperation&&i.row>0?t.getSelection().moveCursorTo(i.row-1,t.session.getLine(i.row-1).length):t.getSelection().isEmpty()?i.column+=1:i.setPosition(i.row,i.column+1))}function h(e){e.editor.session.$bidiHandler.isMoveLeftOperation=/gotoleft|selectleft|backspace|removewordleft/.test(e.command.name)}function m(e,t){var i=t.session;if(i.$bidiHandler.currentRow=null,i.$bidiHandler.isRtlLine(e.start.row)&&e.action==="insert"&&e.lines.length>1)for(var n=e.start.row;n
© 2015 - 2024 Weber Informatics LLC | Privacy Policy