calendar/calendar-preact.min.js

2 lines
18 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

!function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Calendar=void 0;var o,r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=n(2),i=(o=l)&&o.__esModule?o:{default:o};var s=t.Calendar=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default.Component),a(t,[{key:"render",value:function(e,n){return i.default.h("div",{class:"calendar-box",style:{display:"block"}},"months"==e.mode?this.renderMonths(e):null,"years"==e.mode?this.renderYears(e):null,"days"==e.mode?this.renderDays(e):null,i.default.h("a",{class:"calendar-cancel",onclick:function(){return t.hideCalendar()}},e.close_label))}},{key:"componentDidMount",value:function(){this.componentDidUpdate(),this.props.input.addEventListener("blur",function(){(!t.stopBlur||t.stopBlur<Date.now()-200)&&t.hideCalendar()})}},{key:"componentDidUpdate",value:function(){var e,n=this.props.input,o=t.box,r=(e=n).getBoundingClientRect?function(e){var t=e.getBoundingClientRect(),n=document.body,o=document.documentElement,r=window.pageYOffset||o.scrollTop||n.scrollTop,a=window.pageXOffset||o.scrollLeft||n.scrollLeft,l=o.clientTop||n.clientTop||0,i=o.clientLeft||n.clientLeft||0,s=t.top+r-l,u=t.left+a-i;return{top:Math.round(s),left:Math.round(u)}}(e):function(e){for(var t=0,n=0;e;)t+=parseInt(e.offsetTop),n+=parseInt(e.offsetLeft),e=e.offsetParent;return{top:t,left:n}}(e),a=n.clientHeight||n.offsetHeight,l=document.body.clientWidth||document.documentElement.clientWidth,i=document.body.clientHeight||document.documentElement.clientHeight;r.left-1+o.offsetWidth>l?o.style.left=l-o.offsetWidth-1+"px":o.style.left=r.left-1+"px",o.offsetHeight+r.top+a-1>=i&&r.top-o.offsetHeight>=0?o.style.top=r.top-o.offsetHeight+"px":o.style.top=r.top+a-1+"px"}},{key:"selectDate",value:function(e,n,o){var r=this.props.input,a=r.value.split(/\s+/,2)[1]||"";if(n=Number(n)+1,this.props.callback)a=a?a.split(/:/):[0,0,0],a=new Date(e-0,n-1,o-0,a[0]-0,a[1]-0,a[2]-0),(0,this.props.callback)(new Date(a));else if(n<10&&(n="0"+n),o<10&&(o="0"+o),a=("Y-m-d"==this.format?e+"-"+n+"-"+o:o+"."+n+"."+e)+(a?" "+a:""),r.value=a,"Event"in window){var l=document.createEvent("Event");l.initEvent("change",!0,!0),r.dispatchEvent(l)}else r.fireEvent("onchange");t.hideCalendar()}},{key:"showMonths",value:function(e){this.props.onChangeProps({year:e,mode:"months"})}},{key:"showYears",value:function(e){this.props.onChangeProps({year:e,mode:"years"})}},{key:"showDays",value:function(e,t){this.props.onChangeProps({year:e,month:t,mode:"days"})}},{key:"renderMonths",value:function(e){var t=this,n=e.year,o=e.today.getFullYear(),r=e.today.getMonth(),a=e.selected.getFullYear()==n?e.selected.getMonth():-1;return i.default.h("table",null,i.default.h("tr",null,i.default.h("th",{colspan:"4",class:"calendar-title"},i.default.h("a",{href:"javascript:void(0)",onclick:function(){return t.showMonths(n-1)},title:n-1,class:"prev"}),i.default.h("a",{href:"javascript:void(0)",onclick:function(){return t.showYears(n)}},n),i.default.h("a",{href:"javascript:void(0)",onclick:function(){return t.showMonths(n+1)},title:n+1,class:"next"}))),[[0,1,2],[3,4,5],[6,7,8],[9,10,11]].map(function(l){return i.default.h("tr",null,l.map(function(l){return i.default.h("td",{class:"months "+(n<o||n==o&&l<r?"past":n>o||n==o&&l>r?"future":"today")+(l==a?" selected":"")},i.default.h("a",{href:"javascript:void(0)",onclick:function(){return t.showDays(n,l)}},e.month_names[l]))}))}))}},{key:"renderYears",value:function(e){var t=this,n=e.selected,o=e.today,r=e.year,a=-16&r,l=o.getFullYear(),s=n.getFullYear();return i.default.h("table",null,i.default.h("tr",null,i.default.h("th",{colspan:"4",class:"calendar-title"},i.default.h("a",{href:"javascript:void(0)",onclick:function(){return t.showYears(r-16)},title:a-16+" - "+(a-1),class:"prev"}),i.default.h("b",null,a+" - "+(a+15)),i.default.h("a",{href:"javascript:void(0)",onclick:function(){return t.showYears(r+16)},title:a+16+" - "+(a+31),class:"next"}))),[0,1,2,3].map(function(e){return i.default.h("tr",null,[0,1,2,3].map(function(n){var o=a+n+4*e,r=(o<l?"past":o>l?"future":"today")+(o==s?" selected":"");return i.default.h("td",{class:"years "+r},i.default.h("a",{href:"javascript:void(0)",onclick:function(){return t.showMonths(o)}},o))}))}))}},{key:"_yearOptions",value:function(e,t,n){for(var o=[],r=e;r<t;r++)o.push(i.default.h("option",{value:r,selected:r==n},r));return o}},{key:"renderDays",value:function(e){var t=this,n=e.year,o=e.month,r=e.selected,a=e.selectboxes,l=e.sunday,s=e.today,u=e.month_names,c=o+1,d=n;c>=12&&(c=0,d++);var f=o-1,p=n;f<0&&(f=11,p--);var h=s.getFullYear(),v=(new Date(n,o,1).getDay()+l)%7,m=2==o?n%4||!(n%100)&&n%400?28:29:o<7==!(1&o)?31:30,y=s.getFullYear(),_=n-y||o-s.getMonth(),b=r&&n==r.getFullYear()&&o==r.getMonth()?r.getDate():-1;return i.default.h("table",null,i.default.h("tr",null,i.default.h("th",{colspan:"7",class:"calendar-title"},i.default.h("a",{href:"javascript:void(0)",onclick:function(){return t.showDays(p,f)},title:u[f]+" "+p,class:"prev"}),a?[i.default.h("select",{name:"calendar-month",class:"calendar-month",onchange:function(e){return t.showDays(n,e.target.value)}},u.map(function(e,t){return i.default.h("option",{value:t,selected:t==o},e)})),i.default.h("select",{name:"calendar-year",class:"calendar-year",onchange:function(e){return t.showDays(e.target.value,o)}},this._yearOptions(h+e.years.min,h+e.years.max,n))]:[i.default.h("a",{href:"javascript:void(0)",onclick:function(){return t.showMonths(n,o)}},u[o]),i.default.h("a",{href:"javascript:void(0)",onclick:function(){return t.showYears(n)}},n)],i.default.h("a",{href:"javascript:void(0)",onclick:function(){return t.showDays(d,c)},title:e.month_names[c]+" "+d,class:"next"}))),i.default.h("tr",{class:"header"},e.weekdays.map(function(e){return i.default.h("td",null,e)})),[0,1,2,3,4].map(function(r){return 7*r<m+v?i.default.h("tr",null,[0,1,2,3,4,5,6].map(function(a){var l=7*r+a+1-v;if((r>0||a>=v)&&l<=m){var u="days",c=_||l-s.getDate();return u+=c<0?" past":c?" future":" today",l==b&&(u+=" selected"),u+=" "+e.weekdayIds[a].toLowerCase(),i.default.h("td",{class:u},i.default.h("a",{href:"javascript:void(0)",onclick:function(){return t.selectDate(n,o,l)}},l))}return i.default.h("td",{class:"days"}," ")})):null}))}}],[{key:"showCalendar",value:function(e,n){var o=r({},t.defaultProps,n);o.selected=new Date;var a=e.value.replace(/\s+.*$/,"");if(a){var l=!1,s=a.split("-");3==s.length?(s[1]--,l=new Date(s[0],s[1],s[2])):1==s.length&&3==(s=a.split(".")).length&&(s[1]--,l=new Date(s[2],s[1],s[0])),l&&!isNaN(l.getFullYear())&&(o.selected=l)}o.today=new Date,o.year=o.selected.getFullYear(),o.month=o.selected.getMonth(),o.mode=o.start,o.input=e,o.onChangeProps=function(e){o=r({},o,e),i.default.render(i.default.h(t,o),t.box.parentNode,t.box)},t.init(),t.box.style.display="block",t.stopBlur=Date.now(),i.default.render(i.default.h(t,o),t.box.parentNode,t.box)}},{key:"hideCalendar",value:function(){t.box&&(t.box.style.display="none")}},{key:"set",value:function(e,n){"string"==typeof e&&(e=document.getElementById(e)),e&&e.addEventListener("focus",function(o){t.showCalendar(e,n)})}},{key:"init",value:function(){if(!t.box||!t.box.parentNode){var e=document.createElement("div");t.box||(t.box=e),e.className="calendar-box",e.addEventListener("mousedown",function(e){return(e=e||window.event).stopPropagation?e.stopPropagation():e.cancelBubble=!0,t.stopBlur=Date.now(),!0}),document.getElementsByTagName("body")[0].insertBefore(e,document.getElementsByTagName("body")[0].firstChild),t.addedListener||(document.addEventListener("mousedown",function(){t.hideCalendar()}),t.addedListener=!0)}}}]),t}();s.defaultProps={month_names:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],close_label:"Закрыть",weekdays:["Пн","Вт","Ср","Чт","Пт","Сб","Вс"],weekdayIds:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],sunday:6,selectboxes:!1,years:{min:-70,max:10},format:"d.m.Y",today:new Date,start:"days"},window.Calendar=s},function(e,t,n){"use strict";n.r(t),n.d(t,"h",function(){return i}),n.d(t,"createElement",function(){return i}),n.d(t,"cloneElement",function(){return c}),n.d(t,"Component",function(){return L}),n.d(t,"render",function(){return Y}),n.d(t,"rerender",function(){return h}),n.d(t,"options",function(){return r});var o=function(){},r={},a=[],l=[];function i(e,t){var n,i,s,u,c=l;for(u=arguments.length;u-- >2;)a.push(arguments[u]);for(t&&null!=t.children&&(a.length||a.push(t.children),delete t.children);a.length;)if((i=a.pop())&&void 0!==i.pop)for(u=i.length;u--;)a.push(i[u]);else"boolean"==typeof i&&(i=null),(s="function"!=typeof e)&&(null==i?i="":"number"==typeof i?i=String(i):"string"!=typeof i&&(s=!1)),s&&n?c[c.length-1]+=i:c===l?c=[i]:c.push(i),n=s;var d=new o;return d.nodeName=e,d.children=c,d.attributes=null==t?void 0:t,d.key=null==t?void 0:t.key,void 0!==r.vnode&&r.vnode(d),d}function s(e,t){for(var n in t)e[n]=t[n];return e}var u="function"==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):setTimeout;function c(e,t){return i(e.nodeName,s(s({},e.attributes),t),arguments.length>2?[].slice.call(arguments,2):e.children)}var d=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,f=[];function p(e){!e._dirty&&(e._dirty=!0)&&1==f.push(e)&&(r.debounceRendering||u)(h)}function h(){var e,t=f;for(f=[];e=t.pop();)e._dirty&&T(e)}function v(e,t){return e.normalizedNodeName===t||e.nodeName.toLowerCase()===t.toLowerCase()}function m(e){var t=s({},e.attributes);t.children=e.children;var n=e.nodeName.defaultProps;if(void 0!==n)for(var o in n)void 0===t[o]&&(t[o]=n[o]);return t}function y(e){var t=e.parentNode;t&&t.removeChild(e)}function _(e,t,n,o,r){if("className"===t&&(t="class"),"key"===t);else if("ref"===t)n&&n(null),o&&o(e);else if("class"!==t||r)if("style"===t){if(o&&"string"!=typeof o&&"string"!=typeof n||(e.style.cssText=o||""),o&&"object"==typeof o){if("string"!=typeof n)for(var a in n)a in o||(e.style[a]="");for(var a in o)e.style[a]="number"==typeof o[a]&&!1===d.test(a)?o[a]+"px":o[a]}}else if("dangerouslySetInnerHTML"===t)o&&(e.innerHTML=o.__html||"");else if("o"==t[0]&&"n"==t[1]){var l=t!==(t=t.replace(/Capture$/,""));t=t.toLowerCase().substring(2),o?n||e.addEventListener(t,b,l):e.removeEventListener(t,b,l),(e._listeners||(e._listeners={}))[t]=o}else if("list"!==t&&"type"!==t&&!r&&t in e){try{e[t]=null==o?"":o}catch(e){}null!=o&&!1!==o||"spellcheck"==t||e.removeAttribute(t)}else{var i=r&&t!==(t=t.replace(/^xlink:?/,""));null==o||!1===o?i?e.removeAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase()):e.removeAttribute(t):"function"!=typeof o&&(i?e.setAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase(),o):e.setAttribute(t,o))}else e.className=o||""}function b(e){return this._listeners[e.type](r.event&&r.event(e)||e)}var g=[],w=0,x=!1,C=!1;function k(){for(var e;e=g.pop();)r.afterMount&&r.afterMount(e),e.componentDidMount&&e.componentDidMount()}function N(e,t,n,o,r,a){w++||(x=null!=r&&void 0!==r.ownerSVGElement,C=null!=e&&!("__preactattr_"in e));var l=D(e,t,n,o,a);return r&&l.parentNode!==r&&r.appendChild(l),--w||(C=!1,a||k()),l}function D(e,t,n,o,r){var a=e,l=x;if(null!=t&&"boolean"!=typeof t||(t=""),"string"==typeof t||"number"==typeof t)return e&&void 0!==e.splitText&&e.parentNode&&(!e._component||r)?e.nodeValue!=t&&(e.nodeValue=t):(a=document.createTextNode(t),e&&(e.parentNode&&e.parentNode.replaceChild(a,e),P(e,!0))),a.__preactattr_=!0,a;var i,s,u=t.nodeName;if("function"==typeof u)return function(e,t,n,o){var r=e&&e._component,a=r,l=e,i=r&&e._componentConstructor===t.nodeName,s=i,u=m(t);for(;r&&!s&&(r=r._parentComponent);)s=r.constructor===t.nodeName;r&&s&&(!o||r._component)?(O(r,u,3,n,o),e=r.base):(a&&!i&&(B(a),e=l=null),r=E(t.nodeName,u,n),e&&!r.nextBase&&(r.nextBase=e,l=null),O(r,u,1,n,o),e=r.base,l&&e!==l&&(l._component=null,P(l,!1)));return e}(e,t,n,o);if(x="svg"===u||"foreignObject"!==u&&x,u=String(u),(!e||!v(e,u))&&(i=u,(s=x?document.createElementNS("http://www.w3.org/2000/svg",i):document.createElement(i)).normalizedNodeName=i,a=s,e)){for(;e.firstChild;)a.appendChild(e.firstChild);e.parentNode&&e.parentNode.replaceChild(a,e),P(e,!0)}var c=a.firstChild,d=a.__preactattr_,f=t.children;if(null==d){d=a.__preactattr_={};for(var p=a.attributes,h=p.length;h--;)d[p[h].name]=p[h].value}return!C&&f&&1===f.length&&"string"==typeof f[0]&&null!=c&&void 0!==c.splitText&&null==c.nextSibling?c.nodeValue!=f[0]&&(c.nodeValue=f[0]):(f&&f.length||null!=c)&&function(e,t,n,o,r){var a,l,i,s,u,c=e.childNodes,d=[],f={},p=0,h=0,m=c.length,_=0,b=t?t.length:0;if(0!==m)for(var g=0;g<m;g++){var w=c[g],x=w.__preactattr_,C=b&&x?w._component?w._component.__key:x.key:null;null!=C?(p++,f[C]=w):(x||(void 0!==w.splitText?!r||w.nodeValue.trim():r))&&(d[_++]=w)}if(0!==b)for(var g=0;g<b;g++){s=t[g],u=null;var C=s.key;if(null!=C)p&&void 0!==f[C]&&(u=f[C],f[C]=void 0,p--);else if(h<_)for(a=h;a<_;a++)if(void 0!==d[a]&&(k=l=d[a],M=r,"string"==typeof(N=s)||"number"==typeof N?void 0!==k.splitText:"string"==typeof N.nodeName?!k._componentConstructor&&v(k,N.nodeName):M||k._componentConstructor===N.nodeName)){u=l,d[a]=void 0,a===_-1&&_--,a===h&&h++;break}u=D(u,s,n,o),i=c[g],u&&u!==e&&u!==i&&(null==i?e.appendChild(u):u===i.nextSibling?y(i):e.insertBefore(u,i))}var k,N,M;if(p)for(var g in f)void 0!==f[g]&&P(f[g],!1);for(;h<=_;)void 0!==(u=d[_--])&&P(u,!1)}(a,f,n,o,C||null!=d.dangerouslySetInnerHTML),function(e,t,n){var o;for(o in n)t&&null!=t[o]||null==n[o]||_(e,o,n[o],n[o]=void 0,x);for(o in t)"children"===o||"innerHTML"===o||o in n&&t[o]===("value"===o||"checked"===o?e[o]:n[o])||_(e,o,n[o],n[o]=t[o],x)}(a,t.attributes,d),x=l,a}function P(e,t){var n=e._component;n?B(n):(null!=e.__preactattr_&&e.__preactattr_.ref&&e.__preactattr_.ref(null),!1!==t&&null!=e.__preactattr_||y(e),M(e))}function M(e){for(e=e.lastChild;e;){var t=e.previousSibling;P(e,!0),e=t}}var j=[];function E(e,t,n){var o,r=j.length;for(e.prototype&&e.prototype.render?(o=new e(t,n),L.call(o,t,n)):((o=new L(t,n)).constructor=e,o.render=S);r--;)if(j[r].constructor===e)return o.nextBase=j[r].nextBase,j.splice(r,1),o;return o}function S(e,t,n){return this.constructor(e,n)}function O(e,t,n,o,a){e._disable||(e._disable=!0,e.__ref=t.ref,e.__key=t.key,delete t.ref,delete t.key,void 0===e.constructor.getDerivedStateFromProps&&(!e.base||a?e.componentWillMount&&e.componentWillMount():e.componentWillReceiveProps&&e.componentWillReceiveProps(t,o)),o&&o!==e.context&&(e.prevContext||(e.prevContext=e.context),e.context=o),e.prevProps||(e.prevProps=e.props),e.props=t,e._disable=!1,0!==n&&(1!==n&&!1===r.syncComponentUpdates&&e.base?p(e):T(e,1,a)),e.__ref&&e.__ref(e))}function T(e,t,n,o){if(!e._disable){var a,l,i,u=e.props,c=e.state,d=e.context,f=e.prevProps||u,p=e.prevState||c,h=e.prevContext||d,v=e.base,y=e.nextBase,_=v||y,b=e._component,x=!1,C=h;if(e.constructor.getDerivedStateFromProps&&(c=s(s({},c),e.constructor.getDerivedStateFromProps(u,c)),e.state=c),v&&(e.props=f,e.state=p,e.context=h,2!==t&&e.shouldComponentUpdate&&!1===e.shouldComponentUpdate(u,c,d)?x=!0:e.componentWillUpdate&&e.componentWillUpdate(u,c,d),e.props=u,e.state=c,e.context=d),e.prevProps=e.prevState=e.prevContext=e.nextBase=null,e._dirty=!1,!x){a=e.render(u,c,d),e.getChildContext&&(d=s(s({},d),e.getChildContext())),v&&e.getSnapshotBeforeUpdate&&(C=e.getSnapshotBeforeUpdate(f,p));var D,M,j=a&&a.nodeName;if("function"==typeof j){var S=m(a);(l=b)&&l.constructor===j&&S.key==l.__key?O(l,S,1,d,!1):(D=l,e._component=l=E(j,S,d),l.nextBase=l.nextBase||y,l._parentComponent=e,O(l,S,0,d,!1),T(l,1,n,!0)),M=l.base}else i=_,(D=b)&&(i=e._component=null),(_||1===t)&&(i&&(i._component=null),M=N(i,a,d,n||!v,_&&_.parentNode,!0));if(_&&M!==_&&l!==b){var L=_.parentNode;L&&M!==L&&(L.replaceChild(M,_),D||(_._component=null,P(_,!1)))}if(D&&B(D),e.base=M,M&&!o){for(var Y=e,U=e;U=U._parentComponent;)(Y=U).base=M;M._component=Y,M._componentConstructor=Y.constructor}}for(!v||n?g.unshift(e):x||(e.componentDidUpdate&&e.componentDidUpdate(f,p,C),r.afterUpdate&&r.afterUpdate(e));e._renderCallbacks.length;)e._renderCallbacks.pop().call(e);w||o||k()}}function B(e){r.beforeUnmount&&r.beforeUnmount(e);var t=e.base;e._disable=!0,e.componentWillUnmount&&e.componentWillUnmount(),e.base=null;var n=e._component;n?B(n):t&&(t.__preactattr_&&t.__preactattr_.ref&&t.__preactattr_.ref(null),e.nextBase=t,y(t),j.push(e),M(t)),e.__ref&&e.__ref(null)}function L(e,t){this._dirty=!0,this.context=t,this.props=e,this.state=this.state||{},this._renderCallbacks=[]}function Y(e,t,n){return N(n,e,{},!1,t,!1)}s(L.prototype,{setState:function(e,t){this.prevState||(this.prevState=this.state),this.state=s(s({},this.state),"function"==typeof e?e(this.state,this.props):e),t&&this._renderCallbacks.push(t),p(this)},forceUpdate:function(e){e&&this._renderCallbacks.push(e),T(this,2)},render:function(){}});var U={h:i,createElement:i,cloneElement:c,Component:L,render:Y,rerender:h,options:r};t.default=U}]);
//# sourceMappingURL=calendar-preact.min.js.map