f7cloud_client/apps/deck/js/deck-calendar.js
root 8b6a0139db f7cloud_client
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-17 22:59:26 +00:00

2 lines
13 KiB
JavaScript

(()=>{var e={65606:e=>{var r,t,n=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function o(e){if(r===setTimeout)return setTimeout(e,0);if((r===i||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:i}catch(e){r=i}try{t="function"==typeof clearTimeout?clearTimeout:s}catch(e){t=s}}();var E,a=[],c=!1,l=-1;function h(){c&&E&&(c=!1,E.length?a=E.concat(a):l=-1,a.length&&p())}function p(){if(!c){var e=o(h);c=!0;for(var r=a.length;r;){for(E=a,a=[];++l<r;)E&&E[l].run();l=-1,r=a.length}E=null,c=!1,function(e){if(t===clearTimeout)return clearTimeout(e);if((t===s||!t)&&clearTimeout)return t=clearTimeout,clearTimeout(e);try{return t(e)}catch(r){try{return t.call(null,e)}catch(r){return t.call(this,e)}}}(e)}}function I(e,r){this.fun=e,this.array=r}function u(){}n.nextTick=function(e){var r=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)r[t-1]=arguments[t];a.push(new I(e,r)),1!==a.length||c||o(p)},I.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=u,n.addListener=u,n.once=u,n.off=u,n.removeListener=u,n.removeAllListeners=u,n.emit=u,n.prependListener=u,n.prependOnceListener=u,n.listeners=function(e){return[]},n.binding=function(e){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(e){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},53908:(e,r,t)=>{const n=t(57272),{MAX_LENGTH:i,MAX_SAFE_INTEGER:s}=t(16874),{safeRe:o,safeSrc:E,t:a}=t(99718),c=t(98587),{compareIdentifiers:l}=t(61123);class h{constructor(e,r){if(r=c(r),e instanceof h){if(e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>i)throw new TypeError(`version is longer than ${i} characters`);n("SemVer",e,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;const t=e.trim().match(r.loose?o[a.LOOSE]:o[a.FULL]);if(!t)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+t[1],this.minor=+t[2],this.patch=+t[3],this.major>s||this.major<0)throw new TypeError("Invalid major version");if(this.minor>s||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>s||this.patch<0)throw new TypeError("Invalid patch version");t[4]?this.prerelease=t[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const r=+e;if(r>=0&&r<s)return r}return e})):this.prerelease=[],this.build=t[5]?t[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(n("SemVer.compare",this.version,this.options,e),!(e instanceof h)){if("string"==typeof e&&e===this.version)return 0;e=new h(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof h||(e=new h(e,this.options)),l(this.major,e.major)||l(this.minor,e.minor)||l(this.patch,e.patch)}comparePre(e){if(e instanceof h||(e=new h(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let r=0;do{const t=this.prerelease[r],i=e.prerelease[r];if(n("prerelease compare",r,t,i),void 0===t&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===t)return-1;if(t!==i)return l(t,i)}while(++r)}compareBuild(e){e instanceof h||(e=new h(e,this.options));let r=0;do{const t=this.build[r],i=e.build[r];if(n("build compare",r,t,i),void 0===t&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===t)return-1;if(t!==i)return l(t,i)}while(++r)}inc(e,r,t){if(e.startsWith("pre")){if(!r&&!1===t)throw new Error("invalid increment argument: identifier is empty");if(r){const e=new RegExp(`^${this.options.loose?E[a.PRERELEASELOOSE]:E[a.PRERELEASE]}$`),t=`-${r}`.match(e);if(!t||t[1]!==r)throw new Error(`invalid identifier: ${r}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r,t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r,t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r,t),this.inc("pre",r,t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",r,t),this.inc("pre",r,t);break;case"release":if(0===this.prerelease.length)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(t)?1:0;if(0===this.prerelease.length)this.prerelease=[e];else{let n=this.prerelease.length;for(;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);if(-1===n){if(r===this.prerelease.join(".")&&!1===t)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(r){let n=[r,e];!1===t&&(n=[r]),0===l(this.prerelease[0],r)?isNaN(this.prerelease[1])&&(this.prerelease=n):this.prerelease=n}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}e.exports=h},32938:(e,r,t)=>{const n=t(53908);e.exports=(e,r)=>new n(e,r).major},30144:(e,r,t)=>{const n=t(53908);e.exports=(e,r,t=!1)=>{if(e instanceof n)return e;try{return new n(e,r)}catch(e){if(!t)return null;throw e}}},56953:(e,r,t)=>{const n=t(30144);e.exports=(e,r)=>{const t=n(e,r);return t?t.version:null}},16874:e=>{const r=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:r,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},57272:(e,r,t)=>{var n=t(65606);const i="object"==typeof n&&n.env&&n.env.NODE_DEBUG&&/\bsemver\b/i.test(n.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=i},61123:e=>{const r=/^[0-9]+$/,t=(e,t)=>{const n=r.test(e),i=r.test(t);return n&&i&&(e=+e,t=+t),e===t?0:n&&!i?-1:i&&!n?1:e<t?-1:1};e.exports={compareIdentifiers:t,rcompareIdentifiers:(e,r)=>t(r,e)}},98587:e=>{const r=Object.freeze({loose:!0}),t=Object.freeze({});e.exports=e=>e?"object"!=typeof e?r:e:t},99718:(e,r,t)=>{const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:i,MAX_LENGTH:s}=t(16874),o=t(57272),E=(r=e.exports={}).re=[],a=r.safeRe=[],c=r.src=[],l=r.safeSrc=[],h=r.t={};let p=0;const I="[a-zA-Z0-9-]",u=[["\\s",1],["\\d",s],[I,i]],R=(e,r,t)=>{const n=(e=>{for(const[r,t]of u)e=e.split(`${r}*`).join(`${r}{0,${t}}`).split(`${r}+`).join(`${r}{1,${t}}`);return e})(r),i=p++;o(e,i,r),h[e]=i,c[i]=r,l[i]=n,E[i]=new RegExp(r,t?"g":void 0),a[i]=new RegExp(n,t?"g":void 0)};R("NUMERICIDENTIFIER","0|[1-9]\\d*"),R("NUMERICIDENTIFIERLOOSE","\\d+"),R("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${I}*`),R("MAINVERSION",`(${c[h.NUMERICIDENTIFIER]})\\.(${c[h.NUMERICIDENTIFIER]})\\.(${c[h.NUMERICIDENTIFIER]})`),R("MAINVERSIONLOOSE",`(${c[h.NUMERICIDENTIFIERLOOSE]})\\.(${c[h.NUMERICIDENTIFIERLOOSE]})\\.(${c[h.NUMERICIDENTIFIERLOOSE]})`),R("PRERELEASEIDENTIFIER",`(?:${c[h.NUMERICIDENTIFIER]}|${c[h.NONNUMERICIDENTIFIER]})`),R("PRERELEASEIDENTIFIERLOOSE",`(?:${c[h.NUMERICIDENTIFIERLOOSE]}|${c[h.NONNUMERICIDENTIFIER]})`),R("PRERELEASE",`(?:-(${c[h.PRERELEASEIDENTIFIER]}(?:\\.${c[h.PRERELEASEIDENTIFIER]})*))`),R("PRERELEASELOOSE",`(?:-?(${c[h.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[h.PRERELEASEIDENTIFIERLOOSE]})*))`),R("BUILDIDENTIFIER",`${I}+`),R("BUILD",`(?:\\+(${c[h.BUILDIDENTIFIER]}(?:\\.${c[h.BUILDIDENTIFIER]})*))`),R("FULLPLAIN",`v?${c[h.MAINVERSION]}${c[h.PRERELEASE]}?${c[h.BUILD]}?`),R("FULL",`^${c[h.FULLPLAIN]}$`),R("LOOSEPLAIN",`[v=\\s]*${c[h.MAINVERSIONLOOSE]}${c[h.PRERELEASELOOSE]}?${c[h.BUILD]}?`),R("LOOSE",`^${c[h.LOOSEPLAIN]}$`),R("GTLT","((?:<|>)?=?)"),R("XRANGEIDENTIFIERLOOSE",`${c[h.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),R("XRANGEIDENTIFIER",`${c[h.NUMERICIDENTIFIER]}|x|X|\\*`),R("XRANGEPLAIN",`[v=\\s]*(${c[h.XRANGEIDENTIFIER]})(?:\\.(${c[h.XRANGEIDENTIFIER]})(?:\\.(${c[h.XRANGEIDENTIFIER]})(?:${c[h.PRERELEASE]})?${c[h.BUILD]}?)?)?`),R("XRANGEPLAINLOOSE",`[v=\\s]*(${c[h.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[h.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[h.XRANGEIDENTIFIERLOOSE]})(?:${c[h.PRERELEASELOOSE]})?${c[h.BUILD]}?)?)?`),R("XRANGE",`^${c[h.GTLT]}\\s*${c[h.XRANGEPLAIN]}$`),R("XRANGELOOSE",`^${c[h.GTLT]}\\s*${c[h.XRANGEPLAINLOOSE]}$`),R("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),R("COERCE",`${c[h.COERCEPLAIN]}(?:$|[^\\d])`),R("COERCEFULL",c[h.COERCEPLAIN]+`(?:${c[h.PRERELEASE]})?`+`(?:${c[h.BUILD]})?(?:$|[^\\d])`),R("COERCERTL",c[h.COERCE],!0),R("COERCERTLFULL",c[h.COERCEFULL],!0),R("LONETILDE","(?:~>?)"),R("TILDETRIM",`(\\s*)${c[h.LONETILDE]}\\s+`,!0),r.tildeTrimReplace="$1~",R("TILDE",`^${c[h.LONETILDE]}${c[h.XRANGEPLAIN]}$`),R("TILDELOOSE",`^${c[h.LONETILDE]}${c[h.XRANGEPLAINLOOSE]}$`),R("LONECARET","(?:\\^)"),R("CARETTRIM",`(\\s*)${c[h.LONECARET]}\\s+`,!0),r.caretTrimReplace="$1^",R("CARET",`^${c[h.LONECARET]}${c[h.XRANGEPLAIN]}$`),R("CARETLOOSE",`^${c[h.LONECARET]}${c[h.XRANGEPLAINLOOSE]}$`),R("COMPARATORLOOSE",`^${c[h.GTLT]}\\s*(${c[h.LOOSEPLAIN]})$|^$`),R("COMPARATOR",`^${c[h.GTLT]}\\s*(${c[h.FULLPLAIN]})$|^$`),R("COMPARATORTRIM",`(\\s*)${c[h.GTLT]}\\s*(${c[h.LOOSEPLAIN]}|${c[h.XRANGEPLAIN]})`,!0),r.comparatorTrimReplace="$1$2$3",R("HYPHENRANGE",`^\\s*(${c[h.XRANGEPLAIN]})\\s+-\\s+(${c[h.XRANGEPLAIN]})\\s*$`),R("HYPHENRANGELOOSE",`^\\s*(${c[h.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[h.XRANGEPLAINLOOSE]})\\s*$`),R("STAR","(<|>)?=?\\s*\\*"),R("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),R("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}},r={};function t(n){var i=r[n];if(void 0!==i)return i.exports;var s=r[n]={exports:{}};return e[n](s,s.exports,t),s.exports}t.p="/apps/deck/js/",t.nc=void 0,(()=>{"use strict";var e=t(56953),r=t(32938);class n{bus;constructor(t){"function"==typeof t.getVersion&&e(t.getVersion())?r(t.getVersion())!==r(this.getVersion())&&console.warn("Proxying an event bus of version "+t.getVersion()+" with "+this.getVersion()):console.warn("Proxying an event bus with an unknown or invalid version"),this.bus=t}getVersion(){return"3.3.2"}subscribe(e,r){this.bus.subscribe(e,r)}unsubscribe(e,r){this.bus.unsubscribe(e,r)}emit(e,...r){this.bus.emit(e,...r)}}class i{handlers=new Map;getVersion(){return"3.3.2"}subscribe(e,r){this.handlers.set(e,(this.handlers.get(e)||[]).concat(r))}unsubscribe(e,r){this.handlers.set(e,(this.handlers.get(e)||[]).filter((e=>e!==r)))}emit(e,...r){(this.handlers.get(e)||[]).forEach((e=>{try{e(r[0])}catch(e){console.error("could not invoke event listener",e)}}))}}let s=null;function o(){return null!==s?s:"undefined"==typeof window?new Proxy({},{get:()=>()=>console.error("Window not available, EventBus can not be established!")}):(window.OC?._eventBus&&void 0===window._nc_event_bus&&(console.warn("found old event bus instance at OC._eventBus. Update your version!"),window._nc_event_bus=window.OC._eventBus),s=void 0!==window?._nc_event_bus?new n(window._nc_event_bus):window._nc_event_bus=new i,s)}const E=(e,r,t)=>{const n=Object.assign({escape:!0},t||{});return"/"!==e.charAt(0)&&(e="/"+e),i=(i=r||{})||{},e.replace(/{([^{}]*)}/g,(function(e,r){const t=i[r];return n.escape?encodeURIComponent("string"==typeof t||"number"==typeof t?t.toString():e):"string"==typeof t||"number"==typeof t?t.toString():e}));var i},a=(e,r,t)=>{var n,i,s;const o=null!=(s=null==(i=null==(n=null==window?void 0:window.OC)?void 0:n.coreApps)?void 0:i.includes(e))&&s,E="php"===t.slice(-3);let a=c();return E&&!o?(a+="/index.php/apps/".concat(e),r&&(a+="/".concat(encodeURI(r))),"index.php"!==t&&(a+="/".concat(t))):E||o?(("settings"===e||"core"===e||"search"===e)&&"ajax"===r&&(a+="/index.php"),e&&(a+="/".concat(e)),r&&(a+="/".concat(r)),a+="/".concat(t)):(a=function(e){var r,t;return null!=(t=(null!=(r=window._oc_appswebroots)?r:{})[e])?t:""}(e),r&&(a+="/".concat(r,"/")),"/"!==a.at(-1)&&(a+="/"),a+=t),a};function c(){let e=window._oc_webroot;if(typeof e>"u"){e=location.pathname;const r=e.indexOf("/index.php/");if(-1!==r)e=e.slice(0,r);else{const r=e.indexOf("/",1);e=e.slice(0,r>0?r:void 0)}}return e}var l,h,p=t(65606);t.nc=btoa(OC.requestToken),p.env.WEBPACK_SERVE?t.p="http://127.0.0.1:3000/":t.p=a("deck","","js/"),l="calendar:handle-todo-click",h=e=>{let{calendarId:r,taskId:t}=e;const n="app-generated--deck--board-";if(r.startsWith(n)){const e=r.slice(27),n=t.slice(5).replace(".ics","");console.debug("[deck] Clicked task matches deck calendar pattern"),window.location=((e,r,t)=>{var n,i,s;const o=Object.assign({noRewrite:!1},t||{}),a=null!=(n=null==t?void 0:t.baseURL)?n:c();return!0!==(null==(s=null==(i=null==window?void 0:window.OC)?void 0:i.config)?void 0:s.modRewriteWorking)||o.noRewrite?a+"/index.php"+E(e,r,t):a+E(e,r,t)})(`apps/deck/#/board/${e}/card/${n}`)}},o().subscribe(l,h)})()})();
//# sourceMappingURL=deck-calendar.js.map?v=e831167a9e4419aa5f22