ext-statusbar-60b38b06.js 1.5 KB

1
  1. import{g as S}from"./index-15e3682d.js";function v(r,l){for(var a=0;a<l.length;a++){const n=l[a];if(typeof n!="string"&&!Array.isArray(n)){for(const s in n)if(s!=="default"&&!(s in r)){const o=Object.getOwnPropertyDescriptor(n,s);o&&Object.defineProperty(r,s,o.get?o:{enumerable:!0,get:()=>n[s]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var m={exports:{}};(function(r,l){ace.define("ace/ext/statusbar",["require","exports","module","ace/lib/dom","ace/lib/lang"],function(a,n,s){var o=a("../lib/dom"),b=a("../lib/lang"),x=function(){function f(t,i){this.element=o.createElement("div"),this.element.className="ace_status-indicator",this.element.style.cssText="display: inline-block;",i.appendChild(this.element);var e=b.delayedCall(function(){this.updateStatus(t)}.bind(this)).schedule.bind(null,100);t.on("changeStatus",e),t.on("changeSelection",e),t.on("keyboardActivity",e)}return f.prototype.updateStatus=function(t){var i=[];function e(d,y){d&&i.push(d,y||"|")}e(t.keyBinding.getStatusText(t)),t.commands.recording&&e("REC");var u=t.selection,p=u.lead;if(!u.isEmpty()){var c=t.getSelectionRange();e("("+(c.end.row-c.start.row)+":"+(c.end.column-c.start.column)+")"," ")}e(p.row+":"+p.column," "),u.rangeCount&&e("["+u.rangeCount+"]"," "),i.pop(),this.element.textContent=i.join("")},f}();n.StatusBar=x}),function(){ace.require(["ace/ext/statusbar"],function(a){r&&(r.exports=a)})}()})(m);var g=m.exports;const h=S(g),j=v({__proto__:null,default:h},[g]);export{j as e};