property_hire/app/assets/javascripts/property_hire_fullcalendar....

19 lines
359 KiB
JavaScript
Raw Normal View History

2017-01-20 09:02:50 +00:00
/*!
FullCalendar Scheduler v5.8.0
Docs & License: https://fullcalendar.io/scheduler
(c) 2021 Adam Shaw
*/
var ie_args=navigator&&navigator.userAgent.match(/MSIE\s+(\d+)/),is_below_es6=!1,ie_ver,global,FullCalendar;ie_args&&(ie_ver=parseInt(ie_args[1]),(ie_ver<=10||!Object.__proto__)&&(Object.setPrototypeOf=function(n,t){n.prototype=Object.create(t.prototype);n.prototype.constructor=n;n.__proto__=t;var i=Object.getOwnPropertyNames(t);return i.forEach(function(i){try{if(i=="caller"||i=="length"||i=="arguments")return;n[i]=t[i]}catch(r){}}),n},global=(typeof globalThis).toLowerCase()=="undefined"?window:globalThis,(typeof DOMTokenList).toLowerCase()=="undefined"&&function(n,t){"use strict";var i="exports";typeof define=="function"&&define["amd"]?define(function(){return t(n)}):typeof module=="function"&&module[i]?module[i]=t(n):t(n)}(this,function(n){"use strict";function o(n){var t=this.prototype[n];this.prototype[n]=function(){for(var r,n=0,i=arguments.length;n<i;n+=1)r=arguments[n],t.call(this,r)}}function r(n){var i=Array.prototype,t;if(!!i.indexOf)return i.indexOf.call(this,n);for(t=this.length-1;t>-1;){if(this[t]===n)return t;t-=1}return-1}function h(){return e+=1}function u(){var n=this.classes,t=n.join(" ");this.isSVG?this.setAttribute("class",t):this.element.className=t;this.list.length=n.length}function c(n){return r.call(t[this.id].classes,n)!==-1}function l(){for(var n=0,f=t[this.id],e=f.classes,s=arguments.length,i,o=!1;n<s;)i=arguments[n],r.call(e,i)===-1&&(e.push(i),o=!0),n+=1;o&&u.call(f)}function a(n){return t[this.id].classes[n]||null}function v(){for(var n=arguments.length-1,f=t[this.id],e=f.classes,i,o,s=!1;n>-1;)o=arguments[n],i=r.call(e,o),i!==-1&&(e.splice(i,1),s=!0),n-=1;s&&u.call(f)}function y(){var n=t[this.id];return u.call(n),n.element.className}function p(n,i){var f=r.call(t[this.id].classes,n)!==-1,u;return f?i!==!0&&(u="remove"):i!==!1&&(u="add"),u&&this[u](n),i===!0||i===!1?i:!f}function f(n){var r,i,u;if(i=n.domTokenListId,i&&i in t)return t[i].list;u=typeof n.className=="object";r=n.className;r=String(u?r.baseVal:r).replace(/^\s+|\s+$/,"");i=h();t[i]={classes:r.length!==0?r.split(/\s+/):[],element:n,list:this,isSVG:u};this.id=i;this.length=t[i].classes.length;n.domTokenListId=i}if(n.Element){var s=n.document,e=0,t={},i=s.createElement("_");"classList"in i?(i.classList.add("c1","c2"),i.classList.contains("c2")||(o.call(n.DOMTokenList,"add"),o.call(n.DOMTokenList,"remove")),i.classList.toggle("c3",!1),i.classList.contains("c3")&&(n.DOMTokenList.prototype.toggle=function(){var t=n.DOMTokenList.prototype.toggle;return function(n,i){var r=!i;return arguments.length>1&&!(this.contains(n)===r)?i:t.call(this,n)}}()),i=null):function(){function h(){var n=this.domTokenListId;return n&&n in t?t[n].list:new f(this)}for(var u=n.Element.prototype,o=[l,c,a,v,y,p],e=["add","contains","item","remove","toString","toggle"],r,s=f.prototype,i=e.length-1;i>-1;)s[e[i]]=o[i],i-=1;if(r={get:h,configurable:!0,enumerable:!0},Object.defineProperty)try{Object.defineProperty(u,"classList",r)}catch(w){w.number===-2146823252&&(r.enumerable=!1,Object.defineProperty(u,"classList",r))}else Object.prototype.__defineGetter__&&u.__defineGetter__("classList",r);n.DOMTokenList=f}()}}),is_below_es6=!0));FullCalendar=function(n){"use strict";
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
function u(n,t){function i(){this.constructor=n}if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");vh(n,t);n.__proto__=t;n.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}function l(n,t){for(var i=0,u=t.length,r=n.length;i<u;i++,r++)n[r]=t[i];return n}function oi(n,t){for(var i in t)n[i]=t[i];return n}function uw(n){var t=n.parentNode;t&&t.removeChild(n)}function si(n,t,i){var f,e,r,o=arguments,u={};for(r in t)"key"==r?f=t[r]:"ref"==r?e=t[r]:u[r]=t[r];if(arguments.length>3)for(i=[i],r=3;r<arguments.length;r++)i.push(o[r]);if(null!=i&&(u.children=i),"function"==typeof n&&null!=n.defaultProps)for(r in n.defaultProps)void 0===u[r]&&(u[r]=n.defaultProps[r]);return re(n,u,f,e,null)}function re(n,t,i,r,u){var f={type:n,props:t,key:i,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==u?++o.__v:u};return null!=o.vnode&&o.vnode(f),f}function rft(){return{current:null}}function gi(n){return n.children}function ct(n,t){this.props=n;this.context=t}function hu(n,t){if(null==t)return n.__?hu(n.__,n.__.__k.indexOf(n)+1):null;for(var i;t<n.__k.length;t++)if(null!=(i=n.__k[t])&&null!=i.__e)return i.__e;return"function"==typeof n.type?hu(n):null}function fw(n){var t,i;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,t=0;t<n.__k.length;t++)if(null!=(i=n.__k[t])&&null!=i.__e){n.__e=n.__c.base=i.__e;break}return fw(n)}}function ph(n){(!n.__d&&(n.__d=!0)&&su.push(n)&&!ue.__r++||iw!==o.debounceRendering)&&((iw=o.debounceRendering)||tw)(ue)}function ue(){for(var n;ue.__r=su.length;)n=su.sort(function(n,t){return n.__v.__b-t.__v.__b}),su=[],n.some(function(n){var r,u,e,t,i,f;n.__d&&(i=(t=(r=n).__v).__e,(f=r.__P)&&(u=[],(e=oi({},t)).__v=t.__v+1,wh(f,t,e,r.__n,void 0!==f.ownerSVGElement,null!=t.__h?[i]:null,u,null==i?hu(t):i,t.__h),aw(u,t),t.__e!=i&&fw(t)))})}function ew(n,t,i,r,u,f,e,o,s,h){var l,p,a,c,w,b,y,v=r&&r.__k||yh,k=v.length;for(i.__k=[],l=0;l<t.length;l++)if(null!=(c=i.__k[l]=null==(c=t[l])||"boolean"==typeof c?null:"string"==typeof c||"number"==typeof c||"bigint"==typeof c?re(null,c,null,null,c):Array.isArray(c)?re(gi,{children:c},null,null,null):c.__b>0?re(c.type,c.props,c.key,null,c.__v):c)){if(c.__=i,c.__b=i.__b+1,null===(a=v[l])||a&&c.key==a.key&&c.type===a.type)v[l]=void 0;else for(p=0;p<k;p++){if((a=v[p])&&c.key==a.key&&c.type===a.type){v[p]=void 0;break}a=null}wh(n,c,a=a||ie,u,f,e,o,s,h);w=c.__e;(p=c.ref)&&a.ref!=p&&(y||(y=[]),a.ref&&y.push(a.ref,null,c),y.push(p,c.__c||w,c));null!=w?(null==b&&(b=w),"function"==typeof c.type&&null!=c.__k&&c.__k===a.__k?c.__d=s=ow(c,s,n):s=sw(n,c,a,v,w,s),h||"option"!==i.type?"function"==typeof i.type&&(i.__d=s):n.value=""):s&&a.__e==s&&s.parentNode!=n&&(s=hu(a))}for(i.__e=b,l=k;l--;)null!=v[l]&&("function"==typeof i.type&&null!=v[l].__e&&v[l].__e==i.__d&&(i.__d=hu(r,l+1)),yw(v[l],v[l]));if(y)for(l=0;l<y.length;l++)vw(y[l],y[++l],y[++l])}function ow(n,t,i){for(var r,u=0;u<n.__k.length;u++)(r=n.__k[u])&&(r.__=n,t="function"==typeof r.type?ow(r,t,i):sw(i,r,r,n.__k,r.__e,t));return t}function fe(n,t){return t=t||[],null==n||"boolean"==typeof n||(Array.isArray(n)?n.some(function(n){fe(n,t)}):t.push(n)),t}function sw(n,t,i,r,u,f){var e,o,s;if(void 0!==t.__d)e=t.__d,t.__d=void 0;else if(null==i||u!=f||null==u.parentNode)n:if(null==f||f.parentNode!==n)n.appendChild(u),e=null;else{for(o=f,s=0;(o=o.nextSibling)&&s<r.length;s+=2)if(o==u)break n;n.insertBefore(u,f);e=f}return void 0!==e?e:u.nextSibling}function uft(n,t,i,r,u){for(var f in i)"children"===f||"key"===f||f in t||ee(n,f,null,i[f],r);for(f in t)u&&"function"!=typeof t[f]||"children"===f||"key"===f||"value"===f||"checked"===f||i[f]===t[f]||ee(n,f,t[f],i[f],r)}function hw(n,t,i){"-"===t[0]?n.setProperty(t,i):n[t]=null==i?"":"number"!=typeof i||ift.test(t)?i:i+"px"}function ee(n,t,i,r,u){var f;n:if("style"===t)if("string"==typeof i)n.style.cssText=i;else{if("string"==typeof r&&(n.style.cssText=r=""),r)for(t in r)i&&t in i||hw(n.style,t,"");if(i)for(t in i)r&&i[t]===r[t]||hw(n.style,t,i[t])}else if("o"===t[0]