test
/*!
* Copyright Collect.chat
*
* WARNING: Modifying or copying this file will result in permanant ban of your domain on collect.chat servers.
* If you have any custom requiremnt don't hesitate to write us at hello@collect.chat
*/!function(o){function p(i){if(n[i])return n[i].exports;var e=n[i]={exports:{},id:i,loaded:!1};return o[i].call(e.exports,e,e.exports,p),e.loaded=!0,e.exports}var n={};return p.m=o,p.c=n,p.p="",p(0)}([function(o,p,n){n(1),n(2),n(3);n(4),n(8)},function(o,p,n){/*!
* Pikaday
*
* Copyright © 2014 David Bushell | BSD & MIT license | https://github.com/dbushell/Pikaday
*/!function(p,i){"use strict";var e;try{e=n(!function(){var o=new Error('Cannot find module "moment"');throw o.code="MODULE_NOT_FOUND",o}())}catch(o){}o.exports=i(e)}(this,function(o){"use strict";var p="function"==typeof o,n=!!window.addEventListener,i=window.document,e=window.setTimeout,t=function(o,p,i,e){n?o.addEventListener(p,i,!!e):o.attachEvent("on"+p,i)},x=function(o,p,i,e){n?o.removeEventListener(p,i,!!e):o.detachEvent("on"+p,i)},a=function(o,p,n){var e;i.createEvent?(e=i.createEvent("HTMLEvents"),e.initEvent(p,!0,!1),e=h(e,n),o.dispatchEvent(e)):i.createEventObject&&(e=i.createEventObject(),e=h(e,n),o.fireEvent("on"+p,e))},s=function(o){return o.trim?o.trim():o.replace(/^\s+|\s+$/g,"")},r=function(o,p){return(" "+o.className+" ").indexOf(" "+p+" ")!==-1},c=function(o,p){r(o,p)||(o.className=""===o.className?p:o.className+" "+p)},u=function(o,p){o.className=s((" "+o.className+" ").replace(" "+p+" "," "))},d=function(o){return/Array/.test(Object.prototype.toString.call(o))},g=function(o){return/Date/.test(Object.prototype.toString.call(o))&&!isNaN(o.getTime())},m=function(o){var p=o.getDay();return 0===p||6===p},b=function(o){return o%4===0&&o%100!==0||o%400===0},k=function(o,p){return[31,b(o)?29:28,31,30,31,30,31,31,30,31,30,31][p]},j=function(o){g(o)&&o.setHours(0,0,0,0)},l=function(o,p){return o.getTime()===p.getTime()},h=function(o,p,n){var i,e;for(i in p)e=void 0!==o[i],e&&"object"==typeof p[i]&&null!==p[i]&&void 0===p[i].nodeName?g(p[i])?n&&(o[i]=new Date(p[i].getTime())):d(p[i])?n&&(o[i]=p[i].slice(0)):o[i]=h({},p[i],n):!n&&e||(o[i]=p[i]);return o},f=function(o){return o.month<0&&(o.year-=Math.ceil(Math.abs(o.month)/12),o.month+=12),o.month>11&&(o.year+=Math.floor(Math.abs(o.month)/12),o.month-=12),o},v={field:null,bound:void 0,position:"bottom left",reposition:!0,format:"YYYY-MM-DD",defaultDate:null,setDefaultDate:!1,firstDay:0,formatStrict:!1,minDate:null,maxDate:null,yearRange:10,showWeekNumber:!1,minYear:0,maxYear:9999,minMonth:void 0,maxMonth:void 0,startRange:null,endRange:null,isRTL:!1,yearSuffix:"",showMonthAfterYear:!1,showDaysInNextAndPreviousMonths:!1,numberOfMonths:1,mainCalendar:"left",container:void 0,i18n:{previousMonth:"Previous Month",nextMonth:"Next Month",months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},theme:null,onSelect:null,onOpen:null,onClose:null,onDraw:null},y=function(o,p,n){for(p+=o.firstDay;p>=7;)p-=7;return n?o.i18n.weekdaysShort[p]:o.i18n.weekdays[p]},w=function(o){var p=[],n="false";if(o.isEmpty){if(!o.showDaysInNextAndPreviousMonths)return'
';p.push("is-outside-current-month")}return o.isDisabled&&p.push("is-disabled"),o.isToday&&p.push("is-today"),o.isSelected&&(p.push("is-selected"),n="true"),o.isInRange&&p.push("is-inrange"),o.isStartRange&&p.push("is-startrange"),o.isEndRange&&p.push("is-endrange"),'
"},D=function(o,p,n){var i=new Date(n,0,1),e=Math.ceil(((new Date(n,p,o)-i)/864e5+i.getDay()+1)/7);return'
"},_=function(o,p){return"
"},A=function(o){return"
"+o.join("")+""},M=function(o){var p,n=[];for(o.showWeekNumber&&n.push("
"),p=0;p<7;p++)n.push('
");return"
"},C=function(o,p,n,i,e,t){var x,a,s,r,c,u=o._o,g=n===u.minYear,m=n===u.maxYear,b='
",d(u.yearRange)?(x=u.yearRange[0],a=u.yearRange[1]+1):(x=n-u.yearRange,a=1+n+u.yearRange),s=[];x=u.minYear&&s.push('");return c='
",b+=u.showMonthAfterYear?c+r:r+c,g&&(0===i||u.minMonth>=i)&&(k=!1),m&&(11===i||u.maxMonth<=i)&&(j=!1),0===p&&(b+='"),p===o._o.numberOfMonths-1&&(b+='"),b+="
"},R=function(o,p,n){return'
"},N=function(x){var a=this,s=a.config(x);a._onMouseDown=function(o){if(a._v){o=o||window.event;var p=o.target||o.srcElement;if(p)if(r(p,"is-disabled")||(!r(p,"pika-button")||r(p,"is-empty")||r(p.parentNode,"is-disabled")?r(p,"pika-prev")?a.prevMonth():r(p,"pika-next")&&a.nextMonth():(a.setDate(new Date(p.getAttribute("data-pika-year"),p.getAttribute("data-pika-month"),p.getAttribute("data-pika-day"))),s.bound&&e(function(){a.hide(),s.field&&s.field.blur()},100))),r(p,"pika-select"))a._c=!0;else{if(!o.preventDefault)return o.returnValue=!1,!1;o.preventDefault()}}},a._onChange=function(o){o=o||window.event;var p=o.target||o.srcElement;p&&(r(p,"pika-select-month")?a.gotoMonth(p.value):r(p,"pika-select-year")&&a.gotoYear(p.value))},a._onKeyChange=function(o){if(o=o||window.event,a.isVisible())switch(o.keyCode){case 13:case 27:s.field.blur();break;case 37:o.preventDefault(),a.adjustDate("subtract",1);break;case 38:a.adjustDate("subtract",7);break;case 39:a.adjustDate("add",1);break;case 40:a.adjustDate("add",7)}},a._onInputChange=function(n){var i;n.firedBy!==a&&(p?(i=o(s.field.value,s.format,s.formatStrict),i=i&&i.isValid()?i.toDate():null):i=new Date(Date.parse(s.field.value)),g(i)&&a.setDate(i),a._v||a.show())},a._onInputFocus=function(){a.show()},a._onInputClick=function(){a.show()},a._onInputBlur=function(){var o=i.activeElement;do if(r(o,"pika-single"))return;while(o=o.parentNode);a._c||(a._b=e(function(){a.hide()},50)),a._c=!1},a._onClick=function(o){o=o||window.event;var p=o.target||o.srcElement,i=p;if(p){!n&&r(p,"pika-select")&&(p.onchange||(p.setAttribute("onchange","return;"),t(p,"change",a._onChange)));do if(r(i,"pika-single")||i===s.trigger)return;while(i=i.parentNode);a._v&&p!==s.trigger&&i!==s.trigger&&a.hide()}},a.el=i.createElement("div"),a.el.className="pika-single"+(s.isRTL?" is-rtl":"")+(s.theme?" "+s.theme:""),t(a.el,"mousedown",a._onMouseDown,!0),t(a.el,"touchend",a._onMouseDown,!0),t(a.el,"change",a._onChange),t(i,"keydown",a._onKeyChange),s.field&&(s.container?s.container.appendChild(a.el):s.bound?i.body.appendChild(a.el):s.field.parentNode.insertBefore(a.el,s.field.nextSibling),t(s.field,"change",a._onInputChange),s.defaultDate||(p&&s.field.value?s.defaultDate=o(s.field.value,s.format).toDate():s.defaultDate=new Date(Date.parse(s.field.value)),s.setDefaultDate=!0));var c=s.defaultDate;g(c)?s.setDefaultDate?a.setDate(c,!0):a.gotoDate(c):a.gotoDate(new Date),s.bound?(this.hide(),a.el.className+=" is-bound",t(s.trigger,"click",a._onInputClick),t(s.trigger,"focus",a._onInputFocus),t(s.trigger,"blur",a._onInputBlur)):this.show()};return N.prototype={config:function(o){this._o||(this._o=h({},v,!0));var p=h(this._o,o,!0);p.isRTL=!!p.isRTL,p.field=p.field&&p.field.nodeName?p.field:null,p.theme="string"==typeof p.theme&&p.theme?p.theme:null,p.bound=!!(void 0!==p.bound?p.field&&p.bound:p.field),p.trigger=p.trigger&&p.trigger.nodeName?p.trigger:p.field,p.disableWeekends=!!p.disableWeekends,p.disableDayFn="function"==typeof p.disableDayFn?p.disableDayFn:null;var n=parseInt(p.numberOfMonths,10)||1;if(p.numberOfMonths=n>4?4:n,g(p.minDate)||(p.minDate=!1),g(p.maxDate)||(p.maxDate=!1),p.minDate&&p.maxDate&&p.maxDate
";this.el.innerHTML=s,n.bound&&"hidden"!==n.field.type&&e(function(){n.trigger.focus()},1),"function"==typeof this._o.onDraw&&this._o.onDraw(this),n.bound&&n.field.setAttribute("aria-label","Use the arrow keys to pick a date")}},adjustPosition:function(){var o,p,n,e,t,x,a,s,r,c;if(!this._o.container){if(this.el.style.position="absolute",o=this._o.trigger,p=o,n=this.el.offsetWidth,e=this.el.offsetHeight,t=window.innerWidth||i.documentElement.clientWidth,x=window.innerHeight||i.documentElement.clientHeight,a=window.pageYOffset||i.body.scrollTop||i.documentElement.scrollTop,"function"==typeof o.getBoundingClientRect)c=o.getBoundingClientRect(),s=c.left+window.pageXOffset,r=c.bottom+window.pageYOffset;else for(s=p.offsetLeft,r=p.offsetTop+p.offsetHeight;p=p.offsetParent;)s+=p.offsetLeft,r+=p.offsetTop;(this._o.reposition&&s+n>t||this._o.position.indexOf("right")>-1&&s-n+o.offsetWidth>0)&&(s=s-n+o.offsetWidth),(this._o.reposition&&r+e>x+a||this._o.position.indexOf("top")>-1&&r-e-o.offsetHeight>0)&&(r=r-e-o.offsetHeight),this.el.style.left=s+"px",this.el.style.top=r+"px"}},render:function(o,p,n){var i=this._o,e=new Date,t=k(o,p),x=new Date(o,p,1).getDay(),a=[],s=[];j(e),i.firstDay>0&&(x-=i.firstDay,x<0&&(x+=7));for(var r=0===p?11:p-1,c=11===p?0:p+1,u=0===p?o-1:o,d=11===p?o+1:o,b=k(u,r),h=t+x,f=h;f>7;)f-=7;h+=7-f;for(var v=0,y=0;v
"},onSelect:function(o,p,n){}};for(var x in o)o.hasOwnProperty(x)&&(t[x]=o[x]);for(var a="object"==typeof t.selector?[t.selector]:document.querySelectorAll(t.selector),s=0;s
Recent Comments