(this.webpackJsonp=this.webpackJsonp||[]).push([[3],{39:function(e,t,i){(function(e,t){(function(){var i,n,r,s,o,l,a,u,c=[].slice,p={}.hasOwnProperty;a=function(){},n=function(){function e(){}return e.prototype.addEventListener=e.prototype.on,e.prototype.on=function(e,t){return this._callbacks=this._callbacks||{},this._callbacks[e]||(this._callbacks[e]=[]),this._callbacks[e].push(t),this},e.prototype.emit=function(){var e,t,i,n,r;if(i=arguments[0],e=2<=arguments.length?c.call(arguments,1):[],this._callbacks=this._callbacks||{},t=this._callbacks[i])for(n=0,r=t.length;n'),this.element.appendChild(t)),(i=t.getElementsByTagName("span")[0])&&(null!=i.textContent?i.textContent=this.options.dictFallbackMessage:null!=i.innerText&&(i.innerText=this.options.dictFallbackMessage)),this.element.appendChild(this.getFallbackForm())},resize:function(e){var t,i,n;return t={srcX:0,srcY:0,srcWidth:e.width,srcHeight:e.height},i=e.width/e.height,t.optWidth=this.options.thumbnailWidth,t.optHeight=this.options.thumbnailHeight,null==t.optWidth&&null==t.optHeight?(t.optWidth=t.srcWidth,t.optHeight=t.srcHeight):null==t.optWidth?t.optWidth=i*t.optHeight:null==t.optHeight&&(t.optHeight=1/i*t.optWidth),n=t.optWidth/t.optHeight,e.heightn?(t.srcHeight=e.height,t.srcWidth=t.srcHeight*n):(t.srcWidth=e.width,t.srcHeight=t.srcWidth/n),t.srcX=(e.width-t.srcWidth)/2,t.srcY=(e.height-t.srcHeight)/2,t},drop:function(e){return this.element.classList.remove("dz-drag-hover")},dragstart:a,dragend:function(e){return this.element.classList.remove("dz-drag-hover")},dragenter:function(e){return this.element.classList.add("dz-drag-hover")},dragover:function(e){return this.element.classList.add("dz-drag-hover")},dragleave:function(e){return this.element.classList.remove("dz-drag-hover")},paste:a,reset:function(){return this.element.classList.remove("dz-started")},addedfile:function(e){var t,i,n,s,o,l,a,u,c,p,d,h,f;if(this.element===this.previewsContainer&&this.element.classList.add("dz-started"),this.previewsContainer){for(e.previewElement=r.createElement(this.options.previewTemplate.trim()),e.previewTemplate=e.previewElement,this.previewsContainer.appendChild(e.previewElement),n=0,l=(c=e.previewElement.querySelectorAll("[data-dz-name]")).length;n'+this.options.dictRemoveFile+""),e.previewElement.appendChild(e._removeLink)),f=this,t=function(t){return t.preventDefault(),t.stopPropagation(),e.status===r.UPLOADING?r.confirm(f.options.dictCancelUploadConfirmation,function(){return f.removeFile(e)}):f.options.dictRemoveFileConfirmation?r.confirm(f.options.dictRemoveFileConfirmation,function(){return f.removeFile(e)}):f.removeFile(e)},h=[],o=0,u=(d=e.previewElement.querySelectorAll("[data-dz-remove]")).length;o\n
\n
\n
\n
\n
\n
\n
\n
\n \n Check\n \n \n \n \n \n
\n
\n \n Error\n \n \n \n \n \n \n \n
\n'},t=function(){var e,t,i,n,r,s,o;for(n=arguments[0],s=0,o=(i=2<=arguments.length?c.call(arguments,1):[]).length;s'+this.options.dictDefaultMessage+"")),this.clickableElements.length&&(a=this,(i=function(){return a.hiddenFileInput&&a.hiddenFileInput.parentNode.removeChild(a.hiddenFileInput),a.hiddenFileInput=document.createElement("input"),a.hiddenFileInput.setAttribute("type","file"),(null==a.options.maxFiles||a.options.maxFiles>1)&&a.hiddenFileInput.setAttribute("multiple","multiple"),a.hiddenFileInput.className="dz-hidden-input",null!=a.options.acceptedFiles&&a.hiddenFileInput.setAttribute("accept",a.options.acceptedFiles),null!=a.options.capture&&a.hiddenFileInput.setAttribute("capture",a.options.capture),a.hiddenFileInput.style.visibility="hidden",a.hiddenFileInput.style.position="absolute",a.hiddenFileInput.style.top="0",a.hiddenFileInput.style.left="0",a.hiddenFileInput.style.height="0",a.hiddenFileInput.style.width="0",document.querySelector(a.options.hiddenInputContainer).appendChild(a.hiddenFileInput),a.hiddenFileInput.addEventListener("change",function(){var e,t,n,r;if((t=a.hiddenFileInput.files).length)for(n=0,r=t.length;n',this.options.dictFallbackText&&(i+="

"+this.options.dictFallbackText+"

"),i+='',t=r.createElement(i),"FORM"!==this.element.tagName?(n=r.createElement('
')).appendChild(t):(this.element.setAttribute("enctype","multipart/form-data"),this.element.setAttribute("method",this.options.method)),null!=n?n:t)},r.prototype.getExistingFallback=function(){var e,t,i,n,r,s;for(t=function(e){var t,i,n;for(i=0,n=e.length;i0){for(t=o=0,l=(s=["TB","GB","MB","KB","b"]).length;o=Math.pow(this.options.filesizeBase,4-t)/10){i=e/Math.pow(this.options.filesizeBase,4-t),n=r;break}i=Math.round(10*i)/10}return""+i+" "+n},r.prototype._updateMaxFilesReachedClass=function(){return null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(this.getAcceptedFiles().length===this.options.maxFiles&&this.emit("maxfilesreached",this.files),this.element.classList.add("dz-max-files-reached")):this.element.classList.remove("dz-max-files-reached")},r.prototype.drop=function(e){var t,i;e.dataTransfer&&(this.emit("drop",e),t=e.dataTransfer.files,this.emit("addedfiles",t),t.length&&((i=e.dataTransfer.items)&&i.length&&null!=i[0].webkitGetAsEntry?this._addFilesFromItems(i):this.handleFiles(t)))},r.prototype.paste=function(e){var t,i;if(null!=(null!=e&&null!=(i=e.clipboardData)?i.items:void 0))return this.emit("paste",e),(t=e.clipboardData.items).length?this._addFilesFromItems(t):void 0},r.prototype.handleFiles=function(e){var t,i,n,r;for(r=[],i=0,n=e.length;i1024*this.options.maxFilesize*1024?t(this.options.dictFileTooBig.replace("{{filesize}}",Math.round(e.size/1024/10.24)/100).replace("{{maxFilesize}}",this.options.maxFilesize)):r.isValidFile(e,this.options.acceptedFiles)?null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(t(this.options.dictMaxFilesExceeded.replace("{{maxFiles}}",this.options.maxFiles)),this.emit("maxfilesexceeded",e)):this.options.accept.call(this,e,t):t(this.options.dictInvalidFileType)},r.prototype.addFile=function(e){return e.upload={progress:0,total:e.size,bytesSent:0},this.files.push(e),e.status=r.ADDED,this.emit("addedfile",e),this._enqueueThumbnail(e),this.accept(e,(t=this,function(i){return i?(e.accepted=!1,t._errorProcessing([e],i)):(e.accepted=!0,t.options.autoQueue&&t.enqueueFile(e)),t._updateMaxFilesReachedClass()}));var t},r.prototype.enqueueFiles=function(e){var t,i,n;for(i=0,n=e.length;i=t)&&(n=this.getQueuedFiles()).length>0){if(this.options.uploadMultiple)return this.processFiles(n.slice(0,t-i));for(;e=I;c=0<=I?++A:--A)s.append(this._getParamName(c),e[c],e[c].name);return this.submitRequest(b,s,e)},r.prototype.submitRequest=function(e,t,i){return e.send(t)},r.prototype._finished=function(e,t,i){var n,s,o;for(s=0,o=e.length;sa;)0===n[4*(o-1)+3]?r=o:a=o,o=r+a>>1;return 0===(l=o/s)?1:l},l=function(e,t,i,n,r,s,l,a,u,c){var p;return p=o(t),e.drawImage(t,i,n,r,s,l,a,u,c/p)},s=function(e,t){var i,n,r,s,o,l,a,u,c;if(r=!1,c=!0,n=e.document,u=n.documentElement,i=n.addEventListener?"addEventListener":"attachEvent",a=n.addEventListener?"removeEventListener":"detachEvent",l=n.addEventListener?"":"on",s=function(i){if("readystatechange"!==i.type||"complete"===n.readyState)return("load"===i.type?e:n)[a](l+i.type,s,!1),!r&&(r=!0)?t.call(e,i.type||i):void 0},o=function(){try{u.doScroll("left")}catch(e){return e,void setTimeout(o,50)}return s("poll")},"complete"!==n.readyState){if(n.createEventObject&&u.doScroll){try{c=!e.frameElement}catch(e){}c&&o()}return n[i](l+"DOMContentLoaded",s,!1),n[i](l+"readystatechange",s,!1),e[i](l+"load",s,!1)}},i._autoDiscoverFunction=function(){if(i.autoDiscover)return i.discover()},s(window,i._autoDiscoverFunction)}).call(this)}).call(this,i(0),i(491)(e))},89:function(e,t,i){"use strict";i.d(t,"b",function(){return u}),i.d(t,"a",function(){return c}),i.d(t,"c",function(){return p});var n=i(0),r=i.n(n),s=i(13),o="[{text}](url)";function l(e,t){return"".concat(e,"\n").concat(t,"\n").concat(e)}function a(e){var t,i,n,r,a,u,c,p,d,h=e.textArea,f=e.text,m=e.tag,g=e.cursorOffset,v=e.blockTag,y=e.selected,w=void 0===y?"":y,F=e.wrap,b=e.select,E=e.editor;if(r=!1,a=!1,u=!1,E){var k=E.getSelectionRange();p=k.start,d=k.end}if(m===o&&URL)try{new URL(w);m="[text]({text})",b="text"}catch(e){}0===w.indexOf("\n")&&(a=!0,w=w.replace(/\n+/,"")),h?h.selectionEnd-h.selectionStart>w.replace(/\n$/,"").length&&(r=!0,w=w.replace(/\n$/,"")):E&&p.row!==d.row&&(r=!0,w=w.replace(/\n$/,"")),i=w.split("\n"),E&&!F?(c=E.getValue().split("\n")[p.row],/^\s*$/.test(c)&&(u=!0)):h&&!F&&(c=h.value.substr(0,h.selectionStart).lastIndexOf("\n"),/^\s*$/.test(h.value.substring(c,h.selectionStart))&&(u=!0));var x=h&&0===h.selectionStart||E&&0===p.column&&0===p.row;n=F||u||x?"":"\n";return t=i.length>1&&(!F||null!=v&&""!==v)?null!=v&&""!==v?E?function(e,t,i,n){var r=e.split("\n"),s=n.getSelectionRange();if(r[s.start.row-1]===t&&r[s.end.row+1]===t){if(null!==t){var o=ace.require("ace/range").Range,a=r[s.end.row+1],u=new o(r[s.start.row-1],0,s.end.row+1,a.length);n.getSelection().setSelectionRange(u)}return i}return l(t,i)}(f,v,w,E):function(e,t,i,n){return function(e,t){var i;return(i=e.substring(0,t.selectionStart).trim().split("\n"))[i.length-1]}(e,t)===i&&function(e,t){return e.substring(t.selectionEnd).trim().split("\n")[0]}(e,t)===i?(null!=i&&(t.selectionStart=t.selectionStart-(i.length+1),t.selectionEnd=t.selectionEnd+(i.length+1)),n):l(i,n)}(f,h,v,w):i.map(function(e){return m.indexOf("{text}")>-1?m.replace("{text}",e):0===e.indexOf(m)?""+e.replace(m,""):""+m+e}).join("\n"):m.indexOf("{text}")>-1?m.replace("{text}",w):""+n+m+w+(F?m:" "),a&&(t="\n"+t),r&&(t+="\n"),E?E.insert(t):Object(s.p)(h,t),function(e){var t,i=e.textArea,n=e.tag,r=e.cursorOffset,s=e.positionBetweenTags,o=e.removedLastNewLine,l=e.select,a=e.editor,u=e.editorSelectionStart,c=e.editorSelectionEnd;if(!i||i.setSelectionRange){if(l&&l.length>0){if(i){var p=i.selectionStart-(n.length-n.indexOf(l)),d=p+l.length;return i.setSelectionRange(p,d)}if(a)return a.navigateLeft(n.length-n.indexOf(l)),void a.getSelection().selectAWord()}if(i){if(i.selectionStart===i.selectionEnd)return t=s?i.selectionStart-n.length:i.selectionStart,o&&(t-=1),r&&(t-=r),i.setSelectionRange(t,t)}else a&&u.row===c.row&&s&&a.navigateLeft(n.length)}}({textArea:h,tag:m.replace("{text}",w),cursorOffset:g,positionBetweenTags:F&&0===w.length,removedLastNewLine:r,select:b,editor:E,editorSelectionStart:p,editorSelectionEnd:d})}function u(e){return r()(".js-md",e).off("click").on("click",function(){var e,t,i,n,s,o,l,u,c,p,d,h=r()(this);return e={textArea:h.closest(".md-area").find("textarea"),tag:h.data("mdTag"),cursorOffset:h.data("mdCursorOffset"),blockTag:h.data("mdBlock"),wrap:!h.data("mdPrepend"),select:h.data("mdSelect"),tagContent:h.data("mdTagContent")},s=e.textArea,o=e.tag,l=e.cursorOffset,u=e.blockTag,c=e.wrap,p=e.select,d=e.tagContent,s=(t=r()(s)).get(0),i=function(e,t){return e.substring(t.selectionStart,t.selectionEnd)}(n=t.val(),s)||d,t.focus(),a({textArea:s,text:n,tag:o,cursorOffset:l,blockTag:u,selected:i,wrap:c,select:p})})}function c(e){r()(".js-md").off("click").on("click",function(t){var i=r()(t.currentTarget).data();a({tag:i.mdTag,blockTag:i.mdBlock,wrap:!i.mdPrepend,select:i.mdSelect,selected:e.getSelectedText(),text:e.getValue(),editor:e}),e.focus()})}function p(e){return r()(".js-md",e).off("click")}}}]); //# sourceMappingURL=commons~pages.groups.epics.show~pages.groups.milestones.edit~pages.groups.milestones.new~pages.proje~72f9ad42.08241c18.chunk.js.map