1var p=Object.defineProperty,_=Object.defineProperties;var g=Object.getOwnPropertyDescriptors;var l=Object.getOwnPropertySymbols;var f=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable;var c=(e,o,t)=>o in e?p(e,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[o]=t,d=(e,o)=>{for(var t in o||(o={}))f.call(o,t)&&c(e,t,o[t]);if(l)for(var t of l(o))m.call(o,t)&&c(e,t,o[t]);return e},h=(e,o)=>_(e,g(o));import{C as v,V as x,n as w}from"./index.a83a0d04.js";import{D as C}from"./DesktopNotificationTypes.34e3d1c3.js";import{H as P}from"./Highlighter.80aa2632.js";var y=Object.defineProperty,S=Object.getOwnPropertyDescriptor,A=(e,o,t,r)=>{for(var s=r>1?void 0:r?S(o,t):o,n=e.length-1,i;n>=0;n--)(i=e[n])&&(s=(r?i(o,t,s):i(s))||s);return r&&s&&y(o,t,s),s};let a=class extends x{constructor(){super(...arguments),this.isDragging=!1,this.loading=!1,this.startPoint=null,this.stopPoint=null,this.showEscapeExplanation=!0}async mounted(){const e=window.require("electron");e.ipcRenderer.send("selectRecordArea:ready"),e.ipcRenderer.on("tutorials:hideEscapeExplanation",()=>{this.showEscapeExplanation=!1})}get selectedAreaClass(){return this.selectionIsTooSmall?"selected-area-warning":""}get selectedCoord(){if(!this.startPoint||!this.stopPoint)return;const e=[this.startPoint.x,this.stopPoint.x].sort((t,r)=>t-r),o=[this.startPoint.y,this.stopPoint.y].sort((t,r)=>t-r);return{x:e[0],y:o[0],width:e[1]-e[0],height:o[1]-o[0]}}get selectionIsTooSmall(){if(this.loading||!this.selectedCoord)return!1;const e=this.$config.recorder.minRecorderAreaSize;return this.selectedCoord.width<e||this.selectedCoord.height<e}async selectArea(e){window.require("electron").ipcRenderer.send("areaSelector:selected",h(d({},e),{displayId:parseInt(this.$route.params.displayId)}))}onClickFullScreen(){this.loading=!0,this.selectArea({isFullscreen:!0})}onMouseDown(e){this.loading||(this.isDragging=!0,this.startPoint={x:e.clientX,y:e.clientY},this.stopPoint=null)}onMouseMove(e){this.loading||(this.stopPoint={x:e.clientX,y:e.clientY})}onMouseUp(){const e=window.require("electron");if(!(this.loading||!this.selectedCoord)){if(this.selectionIsTooSmall){this.startPoint=null,this.stopPoint=null,this.isDragging=!1,e.ipcRenderer.send("desktopNotifications:show",{type:C.WARNING,title:this.$i18n.t("notifications.recorder.error.title"),content:this.$i18n.t("notifications.recorder.error.dimension")});return}this.loading=!0,this.selectArea({rectangle:this.transformRectangleWithoutScaleFactor(this.selectedCoord)})}}transformRectangleWithoutScaleFactor(e){const t=window.require("electron").webFrame.getZoomFactor();return{x:e.x*t,y:e.y*t,width:e.width*t,height:e.height*t}}};a=A([v({components:{Highlighter:P}})],a);var E=function(){var e=this,o=e.$createElement,t=e._self._c||o;return t("div",{staticClass:"min-h-screen",class:{"recorder-area":!0,"has-selected-coord":e.selectedCoord,loading:e.loading},on:{mousedown:e.onMouseDown,mousemove:e.onMouseMove,mouseup:e.onMouseUp}},[e.selectedCoord?t("highlighter",{staticClass:"min-h-screen",attrs:{coord:e.selectedCoord}},[t("div",{staticClass:"selected-dimension",attrs:{"data-top":e.selectedCoord.y,"data-left":e.selectedCoord.x}},[e._v(e._s(e.selectedCoord.width)+"x"+e._s(e.selectedCoord.height)+" ")])]):e._e(),e.isDragging?e._e():t("div",{key:"explanation",staticClass:"explanation"},[t("div",{staticClass:"explanation__wrapper"},[t("h1",[e._v(e._s(e.$i18n.t("recorder.explanation.drag"))+" "),t("small",[e._v(e._s(e.$i18n.t("recorder.explanation.toSelect")))])]),t("p",[e._v(e._s(e.$i18n.t("recorder.explanation.or")))]),t("button",{on:{mousedown:function(r){r.preventDefault(),r.stopPropagation()},click:function(r){return r.preventDefault(),r.stopPropagation(),e.onClickFullScreen(r)}}},[t("span",[e._v(e._s(e.$t("recorder.explanation.createFullscreenRecording")))])]),e.showEscapeExplanation?t("p",[e._v(e._s(e.$i18n.t("recorder.explanation.esc")))]):e._e()])])],1)},D=[];const u={};var R=w(a,E,D,!1,F,"22593bc8",null,null);function F(e){for(let o in u)this[o]=u[o]}var T=function(){return R.exports}();export{T as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.