{"action":"created","comment":{"url":"https://api.github.com/repos/Wolf-Rost/joomla-cms/pulls/comments/233429658","pull_request_review_id":174838682,"id":233429658,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMzQyOTY1OA==","diff_hunk":"@@ -1 +1,112 @@\n-!function(e,a){\"use strict\";Date.convertNumbers=function(e){var e=e.toString();if(\"[object Array]\"===Object.prototype.toString.call(JoomlaCalLocale.localLangNumbers))for(var a=0;a<JoomlaCalLocale.localLangNumbers.length;a++)e=e.replace(new RegExp(a,\"g\"),JoomlaCalLocale.localLangNumbers[a]);return e},Date.toEnglish=function(e){e=this.toString();for(var a=[0,1,2,3,4,5,6,7,8,9],t=0;10>t;t++)e=e.replace(new RegExp(a[t],\"g\"),t);return e};var t=function(e){if(!e)throw new Error(\"Calendar setup failed:\\n  No valid element found, Please check your code\");if(\"function\"!=typeof Date.parseFieldDate)throw new Error(\"Calendar setup failed:\\n  No valid date helper, Please check your code\");if(e._joomlaCalendar)throw new Error(\"JoomlaCalendar instance already exists for the element\");if(e._joomlaCalendar=this,this.writable=!0,this.hidden=!0,this.params={},this.element=e,this.inputField=e.getElementsByTagName(\"input\")[0],this.button=e.getElementsByTagName(\"button\")[0],!this.inputField)throw new Error(\"Calendar setup failed:\\n  No valid input found, Please check your code\");this.params={debug:!1,clicked:!1,element:{style:{display:\"none\"}},writable:!0};var t=this,r=this.button,s={inputField:this.inputField,dateType:JoomlaCalLocale.dateType?JoomlaCalLocale.dateType:\"gregorian\",direction:void 0!==a.dir?a.dir:a.getElementsByTagName(\"html\")[0].getAttribute(\"dir\"),firstDayOfWeek:r.getAttribute(\"data-firstday\")?parseInt(r.getAttribute(\"data-firstday\")):0,dateFormat:\"%Y-%m-%d %H:%M:%S\",weekend:JoomlaCalLocale.weekend?JoomlaCalLocale.weekend:[0,6],minYear:JoomlaCalLocale.minYear?JoomlaCalLocale.minYear:1900,maxYear:JoomlaCalLocale.maxYear?JoomlaCalLocale.maxYear:2100,minYearTmp:r.getAttribute(\"data-min-year\"),maxYearTmp:r.getAttribute(\"data-max-year\"),weekendTmp:r.getAttribute(\"data-weekend\"),time24:!0,showsOthers:1===parseInt(r.getAttribute(\"data-show-others\"))?!0:!1,showsTime:!0,weekNumbers:1===parseInt(r.getAttribute(\"data-week-numbers\"))?!0:!1,showsTodayBtn:!0,compressedHeader:1===parseInt(r.getAttribute(\"data-only-months-nav\"))?!0:!1};r.getAttribute(\"data-dayformat\")&&(s.dateFormat=r.getAttribute(\"data-dayformat\")?r.getAttribute(\"data-dayformat\"):\"%Y-%m-%d %H:%M:%S\"),r.getAttribute(\"data-time-24\")&&(s.time24=24===parseInt(r.getAttribute(\"data-time-24\"))?!0:!1),r.getAttribute(\"data-show-time\")&&(s.showsTime=1===parseInt(r.getAttribute(\"data-show-time\"))?!0:!1),r.getAttribute(\"data-today-btn\")&&(s.showsTodayBtn=1===parseInt(r.getAttribute(\"data-today-btn\"))?!0:!1);for(var i in s)this.params[i]=s[i];l(t.params.minYearTmp)&&(t.params.minYear=o(parseInt(t.params.minYearTmp),t.params.dateType)),l(t.params.maxYearTmp)&&(t.params.maxYear=o(parseInt(t.params.maxYearTmp),t.params.dateType)),\"undefined\"!==t.params.weekendTmp&&(t.params.weekend=t.params.weekendTmp.split(\",\").map(function(e){return parseInt(e,10)})),this._dayMouseDown=function(e){return t._handleDayMouseDown(e)},this._calKeyEvent=function(e){return t._handleCalKeyEvent(e)},this._documentClick=function(e){return t._handleDocumentClick(e)},this.checkInputs(),this.inputField.getAttribute(\"readonly\")||(this._create(),this._bindEvents())};t.prototype.checkInputs=function(){var e=Date.parseFieldDate(this.inputField.getAttribute(\"data-alt-value\"),this.params.dateFormat,\"gregorian\");\"\"!==this.inputField.value?(this.date=e,this.inputField.value=e.print(this.params.dateFormat,this.params.dateType,!0)):this.date=new Date},t.prototype.recreate=function(){var e=this.element,a=e.querySelector(\".js-calendar\");a&&(e._joomlaCalendar=null,a.parentNode.removeChild(a),new t(e))},t.prototype.updateTime=function(e,a,t){var r=this,s=r.date,l=r.date.getLocalDate(r.params.dateType),o=r.date.getLocalMonth(r.params.dateType),i=r.date.getLocalFullYear(r.params.dateType),n=this.inputField.parentNode.parentNode.querySelectorAll(\".time-ampm\")[0];r.params.time24||(/pm/i.test(n.value)&&12>e?e=parseInt(e)+12:/am/i.test(n.value)&&12===e&&(e=0)),s.setHours(e),s.setMinutes(parseInt(a,10)),s.setSeconds(s.getSeconds()),s.setLocalFullYear(r.params.dateType,i),s.setLocalMonth(r.params.dateType,o),s.setLocalDate(r.params.dateType,l),r.dateClicked=!1,this.callHandler()},t.prototype.setDate=function(e){e.equalsTo(this.date)||(this.date=e,this.processCalendar(this.params.firstDayOfWeek,e))},t.prototype.moveCursorBy=function(e){var a=new Date(this.date);a.setDate(a.getDate()-e),this.setDate(a)},t.prototype.resetSelected=function(e){for(var a=e.options,t=a.length;t--;){var r=a[t];r.selected&&(r.selected=!1)}},t.prototype.callHandler=function(){this.inputField.setAttribute(\"data-alt-value\",this.date.print(this.params.dateFormat,\"gregorian\",!1)),this.inputField.getAttribute(\"data-alt-value\")&&\"0000-00-00 00:00:00\"!==this.inputField.getAttribute(\"data-alt-value\")&&(this.inputField.value=this.date.print(this.params.dateFormat,this.params.dateType,!0),\"gregorian\"!==this.params.dateType&&this.inputField.setAttribute(\"data-local-value\",this.date.print(this.params.dateFormat,this.params.dateType,!0))),this.inputField.value=this.date.print(this.params.dateFormat,this.params.dateType,!0),\"function\"==typeof this.inputField.onchange&&this.inputField.onchange(),this.dateClicked&&\"function\"==typeof this.params.onUpdate&&this.params.onUpdate(this),this.dateClicked?this.close():this.processCalendar()},t.prototype.close=function(){a.activeElement.blur(),this.hide()},t.prototype.show=function(){if(-1!==navigator.appName.indexOf(\"Internet Explorer\")){var t=-1===navigator.appVersion.indexOf(\"MSIE 9\")&&-1===navigator.appVersion.indexOf(\"MSIE 1\");if(t&&e.jQuery&&jQuery().chosen)for(var r=this.element.getElementsByTagName(\"select\"),s=0;s<r.length;s++)jQuery(r[s]).chosen(\"destroy\")}this.checkInputs(),this.inputField.focus(),this.dropdownElement.style.display=\"block\",this.hidden=!1,a.addEventListener(\"keydown\",this._calKeyEvent,!0),a.addEventListener(\"keypress\",this._calKeyEvent,!0),a.addEventListener(\"mousedown\",this._documentClick,!0);var l=this.element.querySelector(\".js-calendar\");e.innerHeight+e.scrollY<l.getBoundingClientRect().bottom+20&&(l.style.marginTop=-(l.getBoundingClientRect().height+this.inputField.getBoundingClientRect().height)+\"px\"),this.processCalendar()},t.prototype.hide=function(){a.removeEventListener(\"keydown\",this._calKeyEvent,!0),a.removeEventListener(\"keypress\",this._calKeyEvent,!0),a.removeEventListener(\"mousedown\",this._documentClick,!0),this.dropdownElement.style.display=\"none\",this.hidden=!0},t.prototype._handleDocumentClick=function(e){var t=e.target;if(null!==t&&!t.classList.contains(\"time\"))for(;null!==t&&t!==this.element;t=t.parentNode);return null===t?(a.activeElement.blur(),this.hide(),r(e)):void 0},t.prototype._handleDayMouseDown=function(e){var a=this,t=e.currentTarget,s=e.target||e.srcElement;if(!s||!s.hasAttribute(\"data-action\")){if(\"TD\"!==t.nodeName){var l=t.getParent(\"TD\");\"TD\"===l.nodeName?t=l:(t=t.getParent(\"TD\"),t.classList.contains(\"js-calendar\")&&(t=t.getElementsByTagName(\"table\")[0]))}else if(!s.classList.contains(\"js-btn\")&&!t.classList.contains(\"day\")&&!t.classList.contains(\"title\"))return;if(!t||t.disabled)return!1;if(\"undefined\"==typeof t.navtype||300!==t.navtype){50===t.navtype&&(t._current=t.innerHTML),(s===t||s.parentNode===t)&&a.cellClick(t,e);var o=null;\"undefined\"!=typeof t.month&&(o=t),\"undefined\"!=typeof t.parentNode.month&&(o=t.parentNode);var i=null;if(o)i=new Date(a.date),o.month!==i.getLocalMonth(a.params.dateType)&&(i.setLocalMonth(a.params.dateType,o.month),a.setDate(i),a.dateClicked=!1,this.callHandler());else{var n=null;\"undefined\"!=typeof t.year&&(n=s),\"undefined\"!=typeof t.parentNode.year&&(n=s.parentNode),n&&(i=new Date(a.date),n.year!==i.getLocalFullYear(a.params.dateType)&&(i.setFullYear(a.params.dateType,n.year),a.setDate(i),a.dateClicked=!1,this.callHandler()))}}return r(e)}},t.prototype.cellClick=function(e,a){var t=this,r=!1,s=!1,l=null;if(\"undefined\"==typeof e.navtype){t.currentDateEl&&(e.classList.add(\"selected\"),t.currentDateEl=e.caldate,r=t.currentDateEl===e.caldate,r||(t.currentDateEl=e.caldate)),t.date.setLocalDateOnly(\"gregorian\",e.caldate);var o=!(t.dateClicked=!e.otherMonth);t.currentDateEl&&(s=!e.disabled),o&&this.processCalendar()}else{l=new Date(t.date),t.dateClicked=!1;var i=l.getOtherFullYear(t.params.dateType),n=l.getLocalMonth(t.params.dateType);switch(e.navtype){case 400:break;case-2:t.params.compressedHeader||i>t.params.minYear&&l.setOtherFullYear(t.params.dateType,i-1);break;case-1:var d=l.getLocalDate(t.params.dateType);if(n>0){var p=l.getLocalMonthDays(t.params.dateType,n-1);d>p&&l.setLocalDate(t.params.dateType,p),l.setLocalMonth(t.params.dateType,n-1)}else if(i-->t.params.minYear){l.setOtherFullYear(t.params.dateType,i);var p=l.getLocalMonthDays(t.params.dateType,11);d>p&&l.setLocalDate(t.params.dateType,p),l.setLocalMonth(t.params.dateType,11)}break;case 1:var d=l.getLocalDate(t.params.dateType);if(11>n){var p=l.getLocalMonthDays(t.params.dateType,n+1);d>p&&l.setLocalDate(t.params.dateType,p),l.setLocalMonth(t.params.dateType,n+1)}else if(i<t.params.maxYear){l.setOtherFullYear(t.params.dateType,i+1);var p=l.getLocalMonthDays(t.params.dateType,0);d>p&&l.setLocalDate(t.params.dateType,p),l.setLocalMonth(t.params.dateType,0)}break;case 2:t.params.compressedHeader||i<t.params.maxYear&&l.setOtherFullYear(t.params.dateType,i+1);break;case 0:}l.equalsTo(t.date)?0===e.navtype&&(s=r=!0):(this.setDate(l),s=!0)}s&&(t.params.showsTime&&(this.dateClicked=!1),a&&this.callHandler()),e.classList.remove(\"hilite\"),r&&!t.params.showsTime&&(t.dateClicked=!1,a&&this.close())},t.prototype._handleCalKeyEvent=function(e){var a=this,t=e.keyCode;return e.target!==this.inputField||13!==t&&9!==t||this.close(),\"rtl\"===a.params.direction&&(37===t?t=39:39===t&&(t=37)),32===t&&e.shiftKey&&(e.preventDefault(),this.cellClick(a._nav_now,e),a.close()),27===t&&this.close(),38===t&&this.moveCursorBy(7),40===t&&this.moveCursorBy(-7),37===t&&this.moveCursorBy(1),39===t&&this.moveCursorBy(-1),e.target!==this.inputField||t>48||57>t||186===t||189===t||190===t||32===t?void 0:r(e)},t.prototype._create=function(){var e=this,a=this.element,t=s(\"table\"),r=s(\"div\");this.table=t,t.className=\"table\",t.cellSpacing=0,t.cellPadding=0,t.style.marginBottom=0,this.dropdownElement=r,a.appendChild(r),this.params.direction&&(r.style.direction=this.params.direction),r.className=\"js-calendar\",r.style.position=\"absolute\",r.style.boxShadow=\"0px 0px 70px 0px rgba(0,0,0,0.67)\",r.style.minWidth=this.inputField.width,r.style.padding=\"0\",r.style.display=\"none\",r.style.left=\"auto\",r.style.top=\"auto\",r.style.zIndex=1060,r.style.borderRadius=\"20px\",this.wrapper=s(\"div\"),this.wrapper.className=\"calendar-container\",r.appendChild(this.wrapper),this.wrapper.appendChild(t);var l=s(\"thead\",t);l.className=\"calendar-header\";var o=null,i=null,n=this,d=function(a,t,r,l,d,p,m){l=l?l:\"td\",d=d?d:{},o=s(l,i),t&&(p=p?'class=\"'+p+'\"':\"\",o.colSpan=t);for(var c in d)o.style[c]=d[c];for(var c in m)o.setAttribute(c,m[c]);return 0!==r&&Math.abs(r)<=2&&(o.className+=\" nav\"),t&&o.addEventListener(\"mousedown\",e._dayMouseDown,!0),o.calendar=n,o.navtype=r,0!==r&&Math.abs(r)<=2?o.innerHTML=\"<a \"+p+\" style='display:inline;padding:2px 6px;cursor:pointer;text-decoration:none;' unselectable='on'>\"+a+\"</a>\":(o.innerHTML=t?\"<div unselectable='on'\"+p+\">\"+a+\"</div>\":a,!t&&p&&(o.className=p)),o};this.params.compressedHeader===!1&&(i=s(\"tr\",l),i.className=\"calendar-head-row\",this._nav_py=d(\"&lsaquo;\",1,-2,\"\",{\"text-align\":\"center\",\"font-size\":\"18px\",\"line-height\":\"18px\"},\"js-btn btn-prev-year\"),this.title=d('<div style=\"text-align:center;font-size:18px\"><span></span></div>',this.params.weekNumbers?6:5,300),this.title.className=\"title\",this._nav_ny=d(\" &rsaquo;\",1,2,\"\",{\"text-align\":\"center\",\"font-size\":\"18px\",\"line-height\":\"18px\"},\"js-btn btn-next-year\")),i=s(\"tr\",l),i.className=\"calendar-head-row\",this._nav_pm=d(\"&lsaquo;\",1,-1,\"\",{\"text-align\":\"center\",\"font-size\":\"2em\",\"line-height\":\"1em\"},\"js-btn btn-prev-month\"),this._nav_month=d('<div style=\"text-align:center;font-size:1.2em\"><span></span></div>',this.params.weekNumbers?6:5,888,\"td\",{textAlign:\"center\"}),this._nav_month.className=\"title\",this._nav_nm=d(\" &rsaquo;\",1,1,\"\",{\"text-align\":\"center\",\"font-size\":\"2em\",\"line-height\":\"1em\"},\"js-btn btn-next-month\"),i=s(\"tr\",l),i.className=e.params.weekNumbers?\"daynames wk\":\"daynames\",this.params.weekNumbers&&(o=s(\"td\",i),o.className=\"day-name wn\",o.innerHTML=JoomlaCalLocale.wk);for(var p=7;p>0;--p)o=s(\"td\",i),p||(o.calendar=e);this.firstdayname=this.params.weekNumbers?i.firstChild.nextSibling:i.firstChild;for(var m=this.params.firstDayOfWeek,o=this.firstdayname,c=JoomlaCalLocale.weekend,p=0;7>p;++p){var u=(p+m)%7;o.classList.add(\"day-name\"),this.params.weekNumbers?o.classList.add(\"day-name-week\"):\"\",p&&(o.calendar=e,o.fdow=u),-1!==c.indexOf(c)&&o.classList.add(\"weekend\"),o.innerHTML=JoomlaCalLocale.shortDays[(p+m)%7],o=o.nextSibling}var h=s(\"tbody\",t);for(this.tbody=h,p=6;p>0;--p){i=s(\"tr\",h),this.params.weekNumbers&&(o=s(\"td\",i));for(var y=7;y>0;--y)o=s(\"td\",i),o.calendar=this,o.addEventListener(\"mousedown\",this._dayMouseDown,!0)}if(this.params.showsTime){i=s(\"tr\",h),i.className=\"time\",o=s(\"td\",i),o.className=\"time time-title\",o.colSpan=1,o.style.verticalAlign=\"middle\",o.innerHTML=\" \";var v=s(\"td\",i);v.className=\"time hours-select\",v.colSpan=2;var g=s(\"td\",i);g.className=\"time minutes-select\",g.colSpan=2,function(){function a(a,t,r,l,o){var i,n=s(\"select\",o);n.calendar=e,n.className=a,n.setAttribute(\"data-chosen\",!0),n.style.width=\"100%\",n.navtype=50,n._range=[];for(var d=r;l>=d;++d){var p,m=\"\";d===t&&(m=!0),10>d&&l>=10?(i=\"0\"+d,p=Date.convertNumbers(\"0\")+Date.convertNumbers(d)):(i=\"\"+d,p=\"\"+Date.convertNumbers(d)),n.options.add(new Option(p,i,m,m))}return n}var t=e.date.getHours(),r=e.date.getMinutes(),l=!e.params.time24,n=e.date.getHours()>12;l&&n&&(t-=12);var d=a(\"time time-hours\",t,l?1:0,l?12:23,v),p=a(\"time time-minutes\",r,0,59,g),m=null;if(o=s(\"td\",i),o.className=\"time ampm-select\",o.colSpan=e.params.weekNumbers?1:2,l){var c=!0,u=Date.parseFieldDate(e.inputField.getAttribute(\"data-alt-value\"),e.params.dateFormat,\"gregorian\");n=u.getHours()>12;var h=s(\"select\",o);h.className=\"time-ampm\",h.style.width=\"100%\",h.options.add(new Option(JoomlaCalLocale.PM,\"pm\",n?c:\"\",n?c:\"\")),h.options.add(new Option(JoomlaCalLocale.AM,\"am\",n?\"\":c,n?\"\":c)),m=h,m.addEventListener(\"change\",function(a){e.updateTime(a.target.parentNode.parentNode.childNodes[1].childNodes[0].value,a.target.parentNode.parentNode.childNodes[2].childNodes[0].value,a.target.parentNode.parentNode.childNodes[3].childNodes[0].value)},!1)}else o.innerHTML=\"&#160;\",o.colSpan=e.params.weekNumbers?3:2;d.addEventListener(\"change\",function(a){e.updateTime(a.target.parentNode.parentNode.childNodes[1].childNodes[0].value,a.target.parentNode.parentNode.childNodes[2].childNodes[0].value,a.target.parentNode.parentNode.childNodes[3].childNodes[0].value)},!1),p.addEventListener(\"change\",function(a){e.updateTime(a.target.parentNode.parentNode.childNodes[1].childNodes[0].value,a.target.parentNode.parentNode.childNodes[2].childNodes[0].value,a.target.parentNode.parentNode.childNodes[3].childNodes[0].value)},!1)}()}if(i=s(\"div\",this.wrapper),i.className=\"buttons-wrapper btn-group\",this._nav_save=d(JoomlaCalLocale.save,\"\",100,\"button\",\"\",\"js-btn btn btn-clear\",{type:\"button\",\"data-action\":\"clear\"}),!this.inputField.hasAttribute(\"required\")){var f=i.querySelector('[data-action=\"clear\"]');f.addEventListener(\"click\",function(a){a.preventDefault();for(var t=e.table.querySelectorAll(\"td\"),r=0;r<t.length;r++)if(t[r].classList.contains(\"selected\")){t[r].classList.remove(\"selected\");break}e.inputField.setAttribute(\"data-alt-value\",\"0000-00-00 00:00:00\"),e.inputField.setAttribute(\"value\",\"\"),e.inputField.value=\"\"})}if(this.params.showsTodayBtn){this._nav_now=d(JoomlaCalLocale.today,\"\",0,\"button\",\"\",\"js-btn btn btn-today\",{type:\"button\",\"data-action\":\"today\"});var b=this.wrapper.querySelector('[data-action=\"today\"]');b.addEventListener(\"click\",function(a){a.preventDefault(),e.date.setLocalDateOnly(\"gregorian\",new Date),e.dateClicked=!0,e.callHandler(),e.close()})}this._nav_exit=d(JoomlaCalLocale.exit,\"\",999,\"button\",\"\",\"js-btn btn btn-exit\",{type:\"button\",\"data-action\":\"exit\"});var L=this.wrapper.querySelector('[data-action=\"exit\"]');L.addEventListener(\"click\",function(a){a.preventDefault(),e.dateClicked||(e.inputField.value?(\"gregorian\"!==e.params.dateType&&e.inputField.setAttribute(\"data-local-value\",e.inputField.value),\"undefined\"==typeof e.dateClicked?e.inputField.setAttribute(\"data-alt-value\",Date.parseFieldDate(e.inputField.value,e.params.dateFormat,e.params.dateType).print(e.params.dateFormat,\"gregorian\",!1)):e.inputField.setAttribute(\"data-alt-value\",e.date.print(e.params.dateFormat,\"gregorian\",!1))):e.inputField.setAttribute(\"data-alt-value\",\"0000-00-00 00:00:00\"),e.date=Date.parseFieldDate(e.inputField.getAttribute(\"data-alt-value\"),e.params.dateFormat,e.params.dateType)),e.close()}),this.processCalendar()},t.prototype.processCalendar=function(){this.table.style.visibility=\"hidden\";var e=this.params.firstDayOfWeek,a=this.date,t=new Date,r=t.getLocalFullYear(this.params.dateType),s=t.getLocalMonth(this.params.dateType),l=t.getLocalDate(this.params.dateType),o=a.getOtherFullYear(this.params.dateType),i=a.getHours(),n=a.getMinutes(),d=(a.getSeconds(),!this.params.time24);o<this.params.minYear?(o=this.params.minYear,a.getOtherFullYear(this.params.dateType,o)):o>this.params.maxYear&&(o=this.params.maxYear,a.getOtherFullYear(this.params.dateType,o)),this.params.firstDayOfWeek=e,this.date=new Date(a);var p=a.getLocalMonth(this.params.dateType),m=a.getLocalDate(this.params.dateType);a.setLocalDate(this.params.dateType,1);var c=(a.getLocalDay(this.params.dateType)-this.params.firstDayOfWeek)%7;0>c&&(c+=7),a.setLocalDate(this.params.dateType,-c),a.setLocalDate(this.params.dateType,a.getLocalDate(this.params.dateType)+1);for(var u=this.tbody.firstChild,h=this.ar_days=new Array,y=JoomlaCalLocale.weekend,v=parseInt(a.getLocalWeekDays(this.params.dateType)),g=0;v>g;++g,u=u.nextSibling){var f=u.firstChild;this.params.weekNumbers&&(f.className=\"day wn\",f.innerHTML=a.getLocalWeekNumber(this.params.dateType),f=f.nextSibling),u.className=this.params.weekNumbers?\"daysrow wk\":\"daysrow\";for(var b,L=!1,C=h[g]=[],w=v+1,T=0;w>T;++T,f=f.nextSibling,a.setLocalDate(this.params.dateType,b+1)){f.className=\"day\",f.style.textAlign=\"center\",b=a.getLocalDate(this.params.dateType);var N=a.getLocalDay(this.params.dateType);f.pos=g<<4|T,C[T]=f;var D=a.getLocalMonth(this.params.dateType)===p;if(D)f.otherMonth=!1,L=!0,f.style.cursor=\"pointer\";else{if(!this.params.showsOthers){f.className+=\" emptycell\",f.innerHTML=\"&#160;\",f.disabled=!0;continue}f.className+=\" disabled othermonth \",f.otherMonth=!0}f.disabled=!1,f.innerHTML=this.params.debug?b:Date.convertNumbers(b),f.disabled||(f.caldate=new Date(a),D&&b===m&&(f.className+=\" selected\",this.currentDateEl=f),a.getLocalFullYear(this.params.dateType)===r&&a.getLocalMonth(this.params.dateType)===s&&b===l&&(f.className+=\" today\"),-1!==y.indexOf(N)&&(f.className+=\" weekend\"))}L||this.params.showsOthers?u.style.display=\"\":(u.style.display=\"none\",u.className=\"emptyrow\")}if(this.params.showsTime){i>12&&d&&(i-=12),i=10>i?\"0\"+i:i,n=10>n?\"0\"+n:n;var F=this.table.querySelector(\".time-hours\"),k=this.table.querySelector(\".time-minutes\");if(this.resetSelected(F),F.value=i,this.resetSelected(k),k.value=n,!this.params.time24){var J=new Date(this.inputField.getAttribute(\"data-alt-value\")),A=this.table.querySelector(\".time-ampm\"),M=J.getHours();M>12&&(this.resetSelected(A),A.value=\"pm\")}}if(this.params.compressedHeader){var x=Date.convertNumbers(o.toString());this._nav_month.getElementsByTagName(\"span\")[0].innerHTML=this.params.monthBefore?x+\" - \"+JoomlaCalLocale.months[p]:JoomlaCalLocale.months[p]+\" - \"+x}else this._nav_month.getElementsByTagName(\"span\")[0].innerHTML=this.params.debug?p+\" \"+JoomlaCalLocale.months[p]:JoomlaCalLocale.months[p],this.title.getElementsByTagName(\"span\")[0].innerHTML=this.params.debug?o+\" \"+Date.convertNumbers(o.toString()):Date.convertNumbers(o.toString());this.table.style.visibility=\"visible\"},t.prototype._bindEvents=function(){var e=this;this.inputField.addEventListener(\"blur\",function(a){var r=t.getCalObject(this)._joomlaCalendar;if(\"block\"===r.dropdownElement.style.display)return void a.preventDefault();if(r){if(r.inputField.value)if(\"undefined\"==typeof r.params.dateClicked)if(r.inputField.setAttribute(\"data-local-value\",r.inputField.value),\"gregorian\"!==r.params.dateType){var s,l=Date.parseFieldDate(r.inputField.value,r.params.dateFormat,r.params.dateType);s=Date.localCalToGregorian(l.getFullYear(),l.getMonth(),l.getDate()),l.setFullYear(s[0]),l.setMonth(s[1]),l.setDate(s[2]),r.inputField.setAttribute(\"data-alt-value\",l.print(r.params.dateFormat,\"gregorian\",!1))}else r.inputField.setAttribute(\"data-alt-value\",Date.parseFieldDate(r.inputField.value,r.params.dateFormat,r.params.dateType).print(r.params.dateFormat,\"gregorian\",!1));else r.inputField.setAttribute(\"data-alt-value\",r.date.print(r.params.dateFormat,\"gregorian\",!1));else r.inputField.setAttribute(\"data-alt-value\",\"0000-00-00 00:00:00\");r.date=Date.parseFieldDate(r.inputField.getAttribute(\"data-alt-value\"),r.params.dateFormat,r.params.dateType)}e.close()},!0),this.button.addEventListener(\"click\",function(){e.show()},!1)};var r=function(a){return a||(a=e.event),a.preventDefault(),a.stopPropagation(),!1},s=function(e,t){var r=null;return r=a.createElement(e),\"undefined\"!=typeof t&&t.appendChild(r),r},l=function(e){return!isNaN(e)&&function(e){return(0|e)===e}(parseFloat(e))},o=function(e,a){var t=new Date,r=t.getLocalFullYear(a);return r+e};Array.prototype.indexOf||(Array.prototype.indexOf=function(e){var a=this.length>>>0,t=Number(arguments[1])||0;for(t=0>t?Math.ceil(t):Math.floor(t),0>t&&(t+=a);a>t;t++)if(t in this&&this[t]===e)return t;return-1}),t.getCalObject=function(e){if(!e)return!1;for(;e.parentNode;)if(e=e.parentNode,e.classList.contains(\"field-calendar\"))return e;return!1},t.prototype.setAltValue=function(){var e=this.inputField;e.getAttribute(\"disabled\")||(e.value=e.getAttribute(\"data-alt-value\")?e.getAttribute(\"data-alt-value\"):\"\")},t.onSubmit=function(){if(Joomla=e.Joomla||{},!Joomla.calendarProcessed){Joomla.calendarProcessed=!0;for(var t=a.querySelectorAll(\".field-calendar\"),r=0;r<t.length;r++){var s=t[r],l=s._joomlaCalendar;l&&l.setAltValue()}}},t.init=function(a,r){e.JoomlaCalLocale=e.JoomlaCalLocale?JoomlaCalLocale:{},JoomlaCalLocale.today=JoomlaCalLocale.today?JoomlaCalLocale.today:\"today\",JoomlaCalLocale.weekend=JoomlaCalLocale.weekend?JoomlaCalLocale.weekend:[0,6],JoomlaCalLocale.localLangNumbers=JoomlaCalLocale.localLangNumbers?JoomlaCalLocale.localLangNumbers:[0,1,2,3,4,5,6,7,8,9],JoomlaCalLocale.wk=JoomlaCalLocale.wk?JoomlaCalLocale.wk:\"wk\",JoomlaCalLocale.AM=JoomlaCalLocale.AM?JoomlaCalLocale.AM:\"AM\",JoomlaCalLocale.PM=JoomlaCalLocale.PM?JoomlaCalLocale.PM:\"PM\",JoomlaCalLocale.am=JoomlaCalLocale.am?JoomlaCalLocale.am:\"am\",JoomlaCalLocale.pm=JoomlaCalLocale.pm?JoomlaCalLocale.pm:\"pm\",JoomlaCalLocale.dateType=JoomlaCalLocale.dateType?JoomlaCalLocale.dateType:\"gregorian\",JoomlaCalLocale.time=JoomlaCalLocale.time?JoomlaCalLocale.time:\"time\",JoomlaCalLocale.days=JoomlaCalLocale.days?JoomlaCalLocale.days:'[\"Sunday\", \"Monday\", \"Tuesday\", \"Wednesday\", \"Thursday\", \"Friday\", \"Saturday\", \"Sunday\"]',JoomlaCalLocale.shortDays=JoomlaCalLocale.shortDays?JoomlaCalLocale.shortDays:[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\",\"Sun\"],JoomlaCalLocale.months=JoomlaCalLocale.months?JoomlaCalLocale.months:[\"January\",\"February\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October\",\"November\",\"December\"],JoomlaCalLocale.shortMonths=JoomlaCalLocale.shortMonths?JoomlaCalLocale.shortMonths:[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"],JoomlaCalLocale.minYear=JoomlaCalLocale.minYear?JoomlaCalLocale.minYear:1900,JoomlaCalLocale.maxYear=JoomlaCalLocale.maxYear?JoomlaCalLocale.maxYear:2100,JoomlaCalLocale.exit=JoomlaCalLocale.exit?JoomlaCalLocale.exit:\"Cancel\",JoomlaCalLocale.clear=JoomlaCalLocale.clear?JoomlaCalLocale.clear:\"Clear\";var s=a._joomlaCalendar;s?s.recreate():new t(a),a&&a.getElementsByTagName(\"input\")[0]&&a.getElementsByTagName(\"input\")[0].form&&!a.getElementsByTagName(\"input\")[0].disabled&&a.getElementsByTagName(\"input\")[0].form.addEventListener(\"submit\",t.onSubmit)},e.JoomlaCalendar=t,a.addEventListener(\"DOMContentLoaded\",function(){var r,s;for(r=a.querySelectorAll(\".field-calendar\"),s=0;s<r.length;s++)t.init(r[s]);e.jQuery&&jQuery(a).on(\"subform-row-add\",function(e,a){for(r=a.querySelectorAll(\".field-calendar\"),s=0;s<r.length;s++)t.init(r[s])}),e.Calendar={},Calendar.setup=function(e){if(e.inputField&&a.getElementById(e.inputField)){var r=a.getElementById(e.inputField),s=r.parentNode.querySelectorAll(\"button\")[0];for(var l in e)if(e.hasOwnProperty(l))switch(l){case\"ifFormat\":s&&s.setAttribute(\"data-dayformat\",e.ifFormat);break;case\"firstDay\":s&&s.setAttribute(\"data-firstday\",parseInt(e.firstDay));break;case\"weekNumbers\":s&&s.setAttribute(\"data-week-numbers\",\"true\"===e.weekNumbers||e.weekNumbers===!0?\"1\":\"0\");break;case\"showOthers\":s&&s.setAttribute(\"data-show-others\",\"true\"===e.showOthers||e.showOthers===!0?\"1\":\"0\");break;case\"showsTime\":s&&s.setAttribute(\"data-show-time\",\"true\"===e.showsTime||e.showsTime===!0?\"1\":\"0\");break;case\"timeFormat\":s&&s.setAttribute(\"data-time-24\",parseInt(e.timeFormat));break;case\"displayArea\":case\"inputField\":case\"button\":case\"eventName\":case\"daFormat\":case\"disableFunc\":case\"dateStatusFunc\":case\"dateTooltipFunc\":case\"dateText\":case\"align\":case\"range\":case\"flat\":case\"flatCallback\":case\"onSelect\":case\"onClose\":case\"onUpdate\":case\"date\":case\"electric\":case\"step\":case\"position\":case\"cache\":case\"multiple\":}t.init(r.parentNode.parentNode)}return null}})}(window,document);\n\\ No newline at end of file\n+!(function(window,document){'use strict';Date.convertNumbers=function(str){var str=str.toString();if(Object.prototype.toString.call(JoomlaCalLocale.localLangNumbers)==='[object Array]'){for(var i=0;i<JoomlaCalLocale.localLangNumbers.length;i++){str=str.replace(new RegExp(i,'g'),JoomlaCalLocale.localLangNumbers[i])}}\n+return str};Date.toEnglish=function(str){str=this.toString();var nums=[0,1,2,3,4,5,6,7,8,9];for(var i=0;i<10;i++){str=str.replace(new RegExp(nums[i],'g'),i)}\n+return str};var JoomlaCalendar=function(element){if(!element){throw new Error(\"Calendar setup failed:\\n  No valid element found, Please check your code\")}\n+if(typeof Date.parseFieldDate!=='function'){throw new Error(\"Calendar setup failed:\\n  No valid date helper, Please check your code\")}\n+if(element._joomlaCalendar){throw new Error('JoomlaCalendar instance already exists for the element')}\n+element._joomlaCalendar=this;this.writable=!0;this.hidden=!0;this.params={};this.element=element;this.inputField=element.getElementsByTagName('input')[0];this.button=element.getElementsByTagName('button')[0];if(!this.inputField){throw new Error(\"Calendar setup failed:\\n  No valid input found, Please check your code\")}\n+this.params={debug:!1,clicked:!1,element:{style:{display:\"none\"}},writable:!0};var self=this,btn=this.button,instanceParams={inputField:this.inputField,dateType:JoomlaCalLocale.dateType?JoomlaCalLocale.dateType:'gregorian',direction:(document.dir!==undefined)?document.dir:document.getElementsByTagName(\"html\")[0].getAttribute(\"dir\"),firstDayOfWeek:btn.getAttribute(\"data-firstday\")?parseInt(btn.getAttribute(\"data-firstday\")):0,dateFormat:\"%Y-%m-%d %H:%M:%S\",weekend:JoomlaCalLocale.weekend?JoomlaCalLocale.weekend:[0,6],minYear:JoomlaCalLocale.minYear?JoomlaCalLocale.minYear:1900,maxYear:JoomlaCalLocale.maxYear?JoomlaCalLocale.maxYear:2100,minYearTmp:btn.getAttribute(\"data-min-year\"),maxYearTmp:btn.getAttribute(\"data-max-year\"),weekendTmp:btn.getAttribute(\"data-weekend\"),time24:!0,showsOthers:(parseInt(btn.getAttribute(\"data-show-others\"))===1)?!0:!1,showsTime:!0,weekNumbers:(parseInt(btn.getAttribute(\"data-week-numbers\"))===1)?!0:!1,showsTodayBtn:!0,compressedHeader:(parseInt(btn.getAttribute(\"data-only-months-nav\"))===1)?!0:!1,};if(btn.getAttribute(\"data-dayformat\")){instanceParams.dateFormat=btn.getAttribute(\"data-dayformat\")?btn.getAttribute(\"data-dayformat\"):\"%Y-%m-%d %H:%M:%S\"}\n+if(btn.getAttribute(\"data-time-24\")){instanceParams.time24=parseInt(btn.getAttribute(\"data-time-24\"))===24?!0:!1}\n+if(btn.getAttribute(\"data-show-time\")){instanceParams.showsTime=parseInt(btn.getAttribute(\"data-show-time\"))===1?!0:!1}\n+if(btn.getAttribute(\"data-today-btn\")){instanceParams.showsTodayBtn=parseInt(btn.getAttribute(\"data-today-btn\"))===1?!0:!1}\n+for(var param in instanceParams){this.params[param]=instanceParams[param]}\n+if(isInt(self.params.minYearTmp)){self.params.minYear=getBoundary(parseInt(self.params.minYearTmp),self.params.dateType)}\n+if(isInt(self.params.maxYearTmp)){self.params.maxYear=getBoundary(parseInt(self.params.maxYearTmp),self.params.dateType)}\n+if(self.params.weekendTmp!==\"undefined\"){self.params.weekend=self.params.weekendTmp.split(',').map(function(item){return parseInt(item,10)})}\n+this._dayMouseDown=function(event){return self._handleDayMouseDown(event)};this._calKeyEvent=function(event){return self._handleCalKeyEvent(event)};this._documentClick=function(event){return self._handleDocumentClick(event)};this.checkInputs();if(this.inputField.getAttribute('readonly')){return}\n+this._create();this._bindEvents()};JoomlaCalendar.prototype.checkInputs=function(){var inputAltValueDate=Date.parseFieldDate(this.inputField.getAttribute('data-alt-value'),this.params.dateFormat,'gregorian');if(this.inputField.value!==''){this.date=inputAltValueDate;this.inputField.value=inputAltValueDate.print(this.params.dateFormat,this.params.dateType,!0)}else{this.date=new Date()}};JoomlaCalendar.prototype.recreate=function(){var element=this.element,el=element.querySelector('.js-calendar');if(el){element._joomlaCalendar=null;el.parentNode.removeChild(el);new JoomlaCalendar(element)}};JoomlaCalendar.prototype.updateTime=function(hours,mins,secs){var self=this,date=self.date;var d=self.date.getLocalDate(self.params.dateType),m=self.date.getLocalMonth(self.params.dateType),y=self.date.getLocalFullYear(self.params.dateType),ampm=this.inputField.parentNode.parentNode.querySelectorAll('.time-ampm')[0];if(!self.params.time24){if(/pm/i.test(ampm.value)&&hours<12){hours=parseInt(hours)+12}else if(/am/i.test(ampm.value)&&hours==12){hours=0}}\n+date.setHours(hours);date.setMinutes(parseInt(mins,10));date.setSeconds(date.getSeconds());date.setLocalFullYear(self.params.dateType,y);date.setLocalMonth(self.params.dateType,m);date.setLocalDate(self.params.dateType,d);self.dateClicked=!1;this.callHandler()};JoomlaCalendar.prototype.setDate=function(date){if(!date.equalsTo(this.date)){this.date=date;this.processCalendar(this.params.firstDayOfWeek,date)}};JoomlaCalendar.prototype.moveCursorBy=function(step){var date=new Date(this.date);date.setDate(date.getDate()-step);this.setDate(date)};JoomlaCalendar.prototype.resetSelected=function(element){var options=element.options;var i=options.length;while(i--){var current=options[i];if(current.selected){current.selected=!1}}};JoomlaCalendar.prototype.callHandler=function(){this.inputField.setAttribute('data-alt-value',this.date.print(this.params.dateFormat,'gregorian',!1));if(this.inputField.getAttribute('data-alt-value')&&this.inputField.getAttribute('data-alt-value')!=='0000-00-00 00:00:00'){this.inputField.value=this.date.print(this.params.dateFormat,this.params.dateType,!0);if(this.params.dateType!=='gregorian'){this.inputField.setAttribute('data-local-value',this.date.print(this.params.dateFormat,this.params.dateType,!0))}}\n+this.inputField.value=this.date.print(this.params.dateFormat,this.params.dateType,!0);if(typeof this.inputField.onchange==\"function\"){this.inputField.onchange()}\n+if(this.dateClicked&&typeof this.params.onUpdate===\"function\"){this.params.onUpdate(this)}\n+if(this.dateClicked){this.close()}else{this.processCalendar()}};JoomlaCalendar.prototype.close=function(){document.activeElement.blur();this.hide()};JoomlaCalendar.prototype.show=function(){if(navigator.appName.indexOf(\"Internet Explorer\")!==-1){var badBrowser=(navigator.appVersion.indexOf(\"MSIE 9\")===-1&&navigator.appVersion.indexOf(\"MSIE 1\")===-1);if(badBrowser){if(window.jQuery&&jQuery().chosen){var selItems=this.element.getElementsByTagName('select');for(var i=0;i<selItems.length;i++){jQuery(selItems[i]).chosen('destroy')}}}}\n+this.checkInputs();this.inputField.focus();this.dropdownElement.style.display=\"block\";this.hidden=!1;document.addEventListener(\"keydown\",this._calKeyEvent,!0);document.addEventListener(\"keypress\",this._calKeyEvent,!0);document.addEventListener(\"mousedown\",this._documentClick,!0);var containerTmp=this.element.querySelector('.js-calendar');if((window.innerHeight+window.scrollY)<containerTmp.getBoundingClientRect().bottom+20){containerTmp.style.marginTop=-(containerTmp.getBoundingClientRect().height+this.inputField.getBoundingClientRect().height)+\"px\"}\n+this.processCalendar()};JoomlaCalendar.prototype.hide=function(){document.removeEventListener(\"keydown\",this._calKeyEvent,!0);document.removeEventListener(\"keypress\",this._calKeyEvent,!0);document.removeEventListener(\"mousedown\",this._documentClick,!0);this.dropdownElement.style.display=\"none\";this.hidden=!0};JoomlaCalendar.prototype._handleDocumentClick=function(ev){var el=ev.target;if(el!==null&&!el.classList.contains('time')){for(;el!==null&&el!==this.element;el=el.parentNode);}\n+if(el===null){document.activeElement.blur();this.hide();return stopCalEvent(ev)}};JoomlaCalendar.prototype._handleDayMouseDown=function(ev){var self=this,el=ev.currentTarget,target=ev.target||ev.srcElement;if(target&&target.hasAttribute('data-action')){return}\n+if(el.nodeName!=='TD'){var testel=el.getParent('TD');if(testel.nodeName==='TD'){el=testel}else{el=el.getParent('TD');if(el.classList.contains('js-calendar')){el=el.getElementsByTagName('table')[0]}}}else{if(!(target.classList.contains('js-btn'))&&!el.classList.contains('day')&&!el.classList.contains('title')){return}}\n+if(!el||el.disabled){return!1}\n+if(typeof el.navtype===\"undefined\"||el.navtype!==300){if(el.navtype===50){el._current=el.innerHTML}\n+if(target===el||target.parentNode===el){self.cellClick(el,ev)}\n+var mon=null;if(typeof el.month!==\"undefined\"){mon=el}\n+if(typeof el.parentNode.month!==\"undefined\"){mon=el.parentNode}\n+var date=null;if(mon){date=new Date(self.date);if(mon.month!==date.getLocalMonth(self.params.dateType)){date.setLocalMonth(self.params.dateType,mon.month);self.setDate(date);self.dateClicked=!1;this.callHandler()}}else{var year=null;if(typeof el.year!==\"undefined\"){year=target}\n+if(typeof el.parentNode.year!==\"undefined\"){year=target.parentNode}\n+if(year){date=new Date(self.date);if(year.year!==date.getLocalFullYear(self.params.dateType)){date.setFullYear(self.params.dateType,year.year);self.setDate(date);self.dateClicked=!1;this.callHandler()}}}}\n+return stopCalEvent(ev)};JoomlaCalendar.prototype.cellClick=function(el,ev){var self=this,closing=!1,newdate=!1,date=null;if(typeof el.navtype===\"undefined\"){if(self.currentDateEl){el.classList.add(\"selected\");self.currentDateEl=el.caldate;closing=(self.currentDateEl===el.caldate);if(!closing){self.currentDateEl=el.caldate}}\n+self.date.setLocalDateOnly('gregorian',el.caldate);var other_month=!(self.dateClicked=!el.otherMonth);if(self.currentDateEl){newdate=!el.disabled}\n+if(other_month){this.processCalendar()}}else{date=new Date(self.date);self.dateClicked=!1;var year=date.getOtherFullYear(self.params.dateType),mon=date.getLocalMonth(self.params.dateType);switch(el.navtype){case 400:break;case-2:if(!self.params.compressedHeader){if(year>self.params.minYear){date.setOtherFullYear(self.params.dateType,year-1)}}\n+break;case-1:var day=date.getLocalDate(self.params.dateType);if(mon>0){var max=date.getLocalMonthDays(self.params.dateType,mon-1);if(day>max){date.setLocalDate(self.params.dateType,max)}\n+date.setLocalMonth(self.params.dateType,mon-1)}else if(year-->self.params.minYear){date.setOtherFullYear(self.params.dateType,year);var max=date.getLocalMonthDays(self.params.dateType,11);if(day>max){date.setLocalDate(self.params.dateType,max)}\n+date.setLocalMonth(self.params.dateType,11)}\n+break;case 1:var day=date.getLocalDate(self.params.dateType);if(mon<11){var max=date.getLocalMonthDays(self.params.dateType,mon+1);if(day>max){date.setLocalDate(self.params.dateType,max)}","path":"media/system/js/fields/calendar.min.js","position":41,"original_position":41,"commit_id":"95e82e669574921178f2fab5a3c67f2c3a2a70f1","original_commit_id":"95e82e669574921178f2fab5a3c67f2c3a2a70f1","user":{"login":"houndci-bot","id":6697940,"node_id":"MDQ6VXNlcjY2OTc5NDA=","avatar_url":"https://avatars0.githubusercontent.com/u/6697940?v=4","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"'max' is already defined                   no-redeclare","created_at":"2018-11-14T12:40:06Z","updated_at":"2018-11-14T12:40:07Z","html_url":"https://github.com/Wolf-Rost/joomla-cms/pull/1#discussion_r233429658","pull_request_url":"https://api.github.com/repos/Wolf-Rost/joomla-cms/pulls/1","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/Wolf-Rost/joomla-cms/pulls/comments/233429658"},"html":{"href":"https://github.com/Wolf-Rost/joomla-cms/pull/1#discussion_r233429658"},"pull_request":{"href":"https://api.github.com/repos/Wolf-Rost/joomla-cms/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/Wolf-Rost/joomla-cms/pulls/1","id":230820287,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMwODIwMjg3","html_url":"https://github.com/Wolf-Rost/joomla-cms/pull/1","diff_url":"https://github.com/Wolf-Rost/joomla-cms/pull/1.diff","patch_url":"https://github.com/Wolf-Rost/joomla-cms/pull/1.patch","issue_url":"https://api.github.com/repos/Wolf-Rost/joomla-cms/issues/1","number":1,"state":"open","locked":false,"title":"test","user":{"login":"Wolf-Rost","id":5592940,"node_id":"MDQ6VXNlcjU1OTI5NDA=","avatar_url":"https://avatars2.githubusercontent.com/u/5592940?v=4","gravatar_id":"","url":"https://api.github.com/users/Wolf-Rost","html_url":"https://github.com/Wolf-Rost","followers_url":"https://api.github.com/users/Wolf-Rost/followers","following_url":"https://api.github.com/users/Wolf-Rost/following{/other_user}","gists_url":"https://api.github.com/users/Wolf-Rost/gists{/gist_id}","starred_url":"https://api.github.com/users/Wolf-Rost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wolf-Rost/subscriptions","organizations_url":"https://api.github.com/users/Wolf-Rost/orgs","repos_url":"https://api.github.com/users/Wolf-Rost/repos","events_url":"https://api.github.com/users/Wolf-Rost/events{/privacy}","received_events_url":"https://api.github.com/users/Wolf-Rost/received_events","type":"User","site_admin":false},"body":"Pull Request for Issue # .\r\n\r\n### Summary of Changes\r\n\r\n\r\n\r\n### Testing Instructions\r\n\r\n\r\n\r\n### Expected result\r\n\r\n\r\n\r\n### Actual result\r\n\r\n\r\n\r\n### Documentation Changes Required\r\n\r\n","created_at":"2018-11-14T12:38:11Z","updated_at":"2018-11-14T12:40:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Wolf-Rost/joomla-cms/pulls/1/commits","review_comments_url":"https://api.github.com/repos/Wolf-Rost/joomla-cms/pulls/1/comments","review_comment_url":"https://api.github.com/repos/Wolf-Rost/joomla-cms/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Wolf-Rost/joomla-cms/issues/1/comments","statuses_url":"https://api.github.com/repos/Wolf-Rost/joomla-cms/statuses/95e82e669574921178f2fab5a3c67f2c3a2a70f1","head":{"label":"Wolf-Rost:staging","ref":"staging","sha":"95e82e669574921178f2fab5a3c67f2c3a2a70f1","user":{"login":"Wolf-Rost","id":5592940,"node_id":"MDQ6VXNlcjU1OTI5NDA=","avatar_url":"https://avatars2.githubusercontent.com/u/5592940?v=4","gravatar_id":"","url":"https://api.github.com/users/Wolf-Rost","html_url":"https://github.com/Wolf-Rost","followers_url":"https://api.github.com/users/Wolf-Rost/followers","following_url":"https://api.github.com/users/Wolf-Rost/following{/other_user}","gists_url":"https://api.github.com/users/Wolf-Rost/gists{/gist_id}","starred_url":"https://api.github.com/users/Wolf-Rost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wolf-Rost/subscriptions","organizations_url":"https://api.github.com/users/Wolf-Rost/orgs","repos_url":"https://api.github.com/users/Wolf-Rost/repos","events_url":"https://api.github.com/users/Wolf-Rost/events{/privacy}","received_events_url":"https://api.github.com/users/Wolf-Rost/received_events","type":"User","site_admin":false},"repo":{"id":113036549,"node_id":"MDEwOlJlcG9zaXRvcnkxMTMwMzY1NDk=","name":"joomla-cms","full_name":"Wolf-Rost/joomla-cms","private":false,"owner":{"login":"Wolf-Rost","id":5592940,"node_id":"MDQ6VXNlcjU1OTI5NDA=","avatar_url":"https://avatars2.githubusercontent.com/u/5592940?v=4","gravatar_id":"","url":"https://api.github.com/users/Wolf-Rost","html_url":"https://github.com/Wolf-Rost","followers_url":"https://api.github.com/users/Wolf-Rost/followers","following_url":"https://api.github.com/users/Wolf-Rost/following{/other_user}","gists_url":"https://api.github.com/users/Wolf-Rost/gists{/gist_id}","starred_url":"https://api.github.com/users/Wolf-Rost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wolf-Rost/subscriptions","organizations_url":"https://api.github.com/users/Wolf-Rost/orgs","repos_url":"https://api.github.com/users/Wolf-Rost/repos","events_url":"https://api.github.com/users/Wolf-Rost/events{/privacy}","received_events_url":"https://api.github.com/users/Wolf-Rost/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Wolf-Rost/joomla-cms","description":"Home of the Joomla! Content Management System","fork":true,"url":"https://api.github.com/repos/Wolf-Rost/joomla-cms","forks_url":"https://api.github.com/repos/Wolf-Rost/joomla-cms/forks","keys_url":"https://api.github.com/repos/Wolf-Rost/joomla-cms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Wolf-Rost/joomla-cms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Wolf-Rost/joomla-cms/teams","hooks_url":"https://api.github.com/repos/Wolf-Rost/joomla-cms/hooks","issue_events_url":"https://api.github.com/repos/Wolf-Rost/joomla-cms/issues/events{/number}","events_url":"https://api.github.com/repos/Wolf-Rost/joomla-cms/events","assignees_url":"https://api.github.com/repos/Wolf-Rost/joomla-cms/assignees{/user}","branches_url":"https://api.github.com/repos/Wolf-Rost/joomla-cms/branches{/branch}","tags_url":"https://api.github.com/repos/Wolf-Rost/joomla-cms/tags","blobs_url":"https://api.github.com/repos/Wolf-Rost/joomla-cms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Wolf-Rost/joomla-cms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Wolf-Rost/joomla-cms/git/refs{/sha}","trees_url":"https://api.github.com/repos/Wolf-Rost/joomla-cms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Wolf-Rost/joomla-cms/statuses/{sha}","languages_url":"https://api.github.com/repos/Wolf-Rost/joomla-cms/languages","stargazers_url":"https://api.github.com/repos/Wolf-Rost/joomla-cms/stargazers","contributors_url":"https://api.github.com/repos/Wolf-Rost/joomla-cms/contributors","subscribers_url":"https://api.github.com/repos/Wolf-Rost/joomla-cms/subscribers","subscription_url":"https://api.github.com/repos/Wolf-Rost/joomla-cms/subscription","commits_url":"https://api.github.com/repos/Wolf-Rost/joomla-cms/commits{/sha}","git_commits_url":"https://api.github.com/repos/Wolf-Rost/joomla-cms/git/commits{/sha}","comments_url":"https://api.github.com/repos/Wolf-Rost/joomla-cms/comments{/number}","issue_comment_url":"https://api.github.com/repos/Wolf-Rost/joomla-cms/issues/comments{/number}","contents_url":"https://api.github.com/repos/Wolf-Rost/joomla-cms/contents/{+path}","compare_url":"https://api.github.com/repos/Wolf-Rost/joomla-cms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Wolf-Rost/joomla-cms/merges","archive_url":"https://api.github.com/repos/Wolf-Rost/joomla-cms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Wolf-Rost/joomla-cms/downloads","issues_url":"https://api.github.com/repos/Wolf-Rost/joomla-cms/issues{/number}","pulls_url":"https://api.github.com/repos/Wolf-Rost/joomla-cms/pulls{/number}","milestones_url":"https://api.github.com/repos/Wolf-Rost/joomla-cms/milestones{/number}","notifications_url":"https://api.github.com/repos/Wolf-Rost/joomla-cms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Wolf-Rost/joomla-cms/labels{/name}","releases_url":"https://api.github.com/repos/Wolf-Rost/joomla-cms/releases{/id}","deployments_url":"https://api.github.com/repos/Wolf-Rost/joomla-cms/deployments","created_at":"2017-12-04T11:55:25Z","updated_at":"2018-11-14T12:40:01Z","pushed_at":"2018-11-14T12:39:47Z","git_url":"git://github.com/Wolf-Rost/joomla-cms.git","ssh_url":"git@github.com:Wolf-Rost/joomla-cms.git","clone_url":"https://github.com/Wolf-Rost/joomla-cms.git","svn_url":"https://github.com/Wolf-Rost/joomla-cms","homepage":"https://www.joomla.org","size":217486,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0","node_id":"MDc6TGljZW5zZTg="},"forks":0,"open_issues":1,"watchers":0,"default_branch":"staging"}},"base":{"label":"Wolf-Rost:4.0-dev","ref":"4.0-dev","sha":"4e21575a1e0cc7110e64fca33680cabee4200f63","user":{"login":"Wolf-Rost","id":5592940,"node_id":"MDQ6VXNlcjU1OTI5NDA=","avatar_url":"https://avatars2.githubusercontent.com/u/5592940?v=4","gravatar_id":"","url":"https://api.github.com/users/Wolf-Rost","html_url":"https://github.com/Wolf-Rost","followers_url":"https://api.github.com/users/Wolf-Rost/followers","following_url":"https://api.github.com/users/Wolf-Rost/following{/other_user}","gists_url":"https://api.github.com/users/Wolf-Rost/gists{/gist_id}","starred_url":"https://api.github.com/users/Wolf-Rost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wolf-Rost/subscriptions","organizations_url":"https://api.github.com/users/Wolf-Rost/orgs","repos_url":"https://api.github.com/users/Wolf-Rost/repos","events_url":"https://api.github.com/users/Wolf-Rost/events{/privacy}","received_events_url":"https://api.github.com/users/Wolf-Rost/received_events","type":"User","site_admin":false},"repo":{"id":113036549,"node_id":"MDEwOlJlcG9zaXRvcnkxMTMwMzY1NDk=","name":"joomla-cms","full_name":"Wolf-Rost/joomla-cms","private":false,"owner":{"login":"Wolf-Rost","id":5592940,"node_id":"MDQ6VXNlcjU1OTI5NDA=","avatar_url":"https://avatars2.githubusercontent.com/u/5592940?v=4","gravatar_id":"","url":"https://api.github.com/users/Wolf-Rost","html_url":"https://github.com/Wolf-Rost","followers_url":"https://api.github.com/users/Wolf-Rost/followers","following_url":"https://api.github.com/users/Wolf-Rost/following{/other_user}","gists_url":"https://api.github.com/users/Wolf-Rost/gists{/gist_id}","starred_url":"https://api.github.com/users/Wolf-Rost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wolf-Rost/subscriptions","organizations_url":"https://api.github.com/users/Wolf-Rost/orgs","repos_url":"https://api.github.com/users/Wolf-Rost/repos","events_url":"https://api.github.com/users/Wolf-Rost/events{/privacy}","received_events_url":"https://api.github.com/users/Wolf-Rost/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Wolf-Rost/joomla-cms","description":"Home of the Joomla! Content Management System","fork":true,"url":"https://api.github.com/repos/Wolf-Rost/joomla-cms","forks_url":"https://api.github.com/repos/Wolf-Rost/joomla-cms/forks","keys_url":"https://api.github.com/repos/Wolf-Rost/joomla-cms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Wolf-Rost/joomla-cms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Wolf-Rost/joomla-cms/teams","hooks_url":"https://api.github.com/repos/Wolf-Rost/joomla-cms/hooks","issue_events_url":"https://api.github.com/repos/Wolf-Rost/joomla-cms/issues/events{/number}","events_url":"https://api.github.com/repos/Wolf-Rost/joomla-cms/events","assignees_url":"https://api.github.com/repos/Wolf-Rost/joomla-cms/assignees{/user}","branches_url":"https://api.github.com/repos/Wolf-Rost/joomla-cms/branches{/branch}","tags_url":"https://api.github.com/repos/Wolf-Rost/joomla-cms/tags","blobs_url":"https://api.github.com/repos/Wolf-Rost/joomla-cms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Wolf-Rost/joomla-cms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Wolf-Rost/joomla-cms/git/refs{/sha}","trees_url":"https://api.github.com/repos/Wolf-Rost/joomla-cms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Wolf-Rost/joomla-cms/statuses/{sha}","languages_url":"https://api.github.com/repos/Wolf-Rost/joomla-cms/languages","stargazers_url":"https://api.github.com/repos/Wolf-Rost/joomla-cms/stargazers","contributors_url":"https://api.github.com/repos/Wolf-Rost/joomla-cms/contributors","subscribers_url":"https://api.github.com/repos/Wolf-Rost/joomla-cms/subscribers","subscription_url":"https://api.github.com/repos/Wolf-Rost/joomla-cms/subscription","commits_url":"https://api.github.com/repos/Wolf-Rost/joomla-cms/commits{/sha}","git_commits_url":"https://api.github.com/repos/Wolf-Rost/joomla-cms/git/commits{/sha}","comments_url":"https://api.github.com/repos/Wolf-Rost/joomla-cms/comments{/number}","issue_comment_url":"https://api.github.com/repos/Wolf-Rost/joomla-cms/issues/comments{/number}","contents_url":"https://api.github.com/repos/Wolf-Rost/joomla-cms/contents/{+path}","compare_url":"https://api.github.com/repos/Wolf-Rost/joomla-cms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Wolf-Rost/joomla-cms/merges","archive_url":"https://api.github.com/repos/Wolf-Rost/joomla-cms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Wolf-Rost/joomla-cms/downloads","issues_url":"https://api.github.com/repos/Wolf-Rost/joomla-cms/issues{/number}","pulls_url":"https://api.github.com/repos/Wolf-Rost/joomla-cms/pulls{/number}","milestones_url":"https://api.github.com/repos/Wolf-Rost/joomla-cms/milestones{/number}","notifications_url":"https://api.github.com/repos/Wolf-Rost/joomla-cms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Wolf-Rost/joomla-cms/labels{/name}","releases_url":"https://api.github.com/repos/Wolf-Rost/joomla-cms/releases{/id}","deployments_url":"https://api.github.com/repos/Wolf-Rost/joomla-cms/deployments","created_at":"2017-12-04T11:55:25Z","updated_at":"2018-11-14T12:40:01Z","pushed_at":"2018-11-14T12:39:47Z","git_url":"git://github.com/Wolf-Rost/joomla-cms.git","ssh_url":"git@github.com:Wolf-Rost/joomla-cms.git","clone_url":"https://github.com/Wolf-Rost/joomla-cms.git","svn_url":"https://github.com/Wolf-Rost/joomla-cms","homepage":"https://www.joomla.org","size":217486,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0","node_id":"MDc6TGljZW5zZTg="},"forks":0,"open_issues":1,"watchers":0,"default_branch":"staging"}},"_links":{"self":{"href":"https://api.github.com/repos/Wolf-Rost/joomla-cms/pulls/1"},"html":{"href":"https://github.com/Wolf-Rost/joomla-cms/pull/1"},"issue":{"href":"https://api.github.com/repos/Wolf-Rost/joomla-cms/issues/1"},"comments":{"href":"https://api.github.com/repos/Wolf-Rost/joomla-cms/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/Wolf-Rost/joomla-cms/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/Wolf-Rost/joomla-cms/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Wolf-Rost/joomla-cms/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/Wolf-Rost/joomla-cms/statuses/95e82e669574921178f2fab5a3c67f2c3a2a70f1"}},"author_association":"OWNER"}}
{"actor":{"display_login":"houndci-bot"}}