From 31ab16d31a5a4e349f7ab0301365bf310cfa8727 Mon Sep 17 00:00:00 2001 From: romankko2 Date: Thu, 12 Oct 2023 17:34:03 +0200 Subject: [PATCH] Merge --- app/dist/css/{7283.d6ab05a0.css => 5475.970342c8.css} | 2 +- app/dist/css/{7458.49728a72.css => 6811.7fe02c8d.css} | 2 +- app/dist/css/723.da6281d7.css | 1 - app/dist/css/7496.1e01c869.css | 1 + app/dist/css/index.1d798712.css | 1 + app/dist/css/index.b31b0772.css | 1 - app/dist/index.html | 2 +- app/dist/js/{7283.9b796e25.js => 5475.03838edb.js} | 4 ++-- app/dist/js/{7283.9b796e25.js.map => 5475.03838edb.js.map} | 2 +- app/dist/js/{7458.f602cf50.js => 6811.83d9b8d2.js} | 4 ++-- app/dist/js/6811.83d9b8d2.js.map | 1 + app/dist/js/7133.bb841a39.js.map | 1 - app/dist/js/723.5e5ebdc3.js | 2 -- app/dist/js/723.5e5ebdc3.js.map | 1 - app/dist/js/7458.f602cf50.js.map | 1 - app/dist/js/7496.0ed543b2.js | 2 ++ app/dist/js/7496.0ed543b2.js.map | 1 + app/dist/js/{7133.bb841a39.js => 7637.fdf639b1.js} | 4 ++-- app/dist/js/7637.fdf639b1.js.map | 1 + app/dist/js/index.4830c097.js | 2 ++ app/dist/js/index.4830c097.js.map | 1 + app/dist/js/index.e6e95a77.js | 2 -- app/dist/js/index.e6e95a77.js.map | 1 - 23 files changed, 20 insertions(+), 20 deletions(-) rename app/dist/css/{7283.d6ab05a0.css => 5475.970342c8.css} (57%) rename app/dist/css/{7458.49728a72.css => 6811.7fe02c8d.css} (65%) delete mode 100644 app/dist/css/723.da6281d7.css create mode 100644 app/dist/css/7496.1e01c869.css create mode 100644 app/dist/css/index.1d798712.css delete mode 100644 app/dist/css/index.b31b0772.css rename app/dist/js/{7283.9b796e25.js => 5475.03838edb.js} (97%) rename app/dist/js/{7283.9b796e25.js.map => 5475.03838edb.js.map} (99%) rename app/dist/js/{7458.f602cf50.js => 6811.83d9b8d2.js} (93%) create mode 100644 app/dist/js/6811.83d9b8d2.js.map delete mode 100644 app/dist/js/7133.bb841a39.js.map delete mode 100644 app/dist/js/723.5e5ebdc3.js delete mode 100644 app/dist/js/723.5e5ebdc3.js.map delete mode 100644 app/dist/js/7458.f602cf50.js.map create mode 100644 app/dist/js/7496.0ed543b2.js create mode 100644 app/dist/js/7496.0ed543b2.js.map rename app/dist/js/{7133.bb841a39.js => 7637.fdf639b1.js} (58%) create mode 100644 app/dist/js/7637.fdf639b1.js.map create mode 100644 app/dist/js/index.4830c097.js create mode 100644 app/dist/js/index.4830c097.js.map delete mode 100644 app/dist/js/index.e6e95a77.js delete mode 100644 app/dist/js/index.e6e95a77.js.map diff --git a/app/dist/css/7283.d6ab05a0.css b/app/dist/css/5475.970342c8.css similarity index 57% rename from app/dist/css/7283.d6ab05a0.css rename to app/dist/css/5475.970342c8.css index ce3c50c..5f1943a 100644 --- a/app/dist/css/7283.d6ab05a0.css +++ b/app/dist/css/5475.970342c8.css @@ -1 +1 @@ -.subheader[data-v-0f275556]{max-width:100%;margin:0;border-bottom:1px solid rgba(33,33,33,.08);gap:25px;flex-wrap:wrap;flex:0 0 auto}.subheader-icon-button[data-v-0f275556]{border:1px solid #ababab;height:50px;width:50px;min-width:auto!important;padding:0;margin:0}.subheader-icon-button.prev[data-v-0f275556]{margin-right:10px}.subheader-icon-button.next[data-v-0f275556]{margin-left:10px}.subheader-icon-button[data-v-0f275556] .v-btn__append{margin:0}.subheader-input[data-v-0f275556]{max-width:175px;min-width:175px;height:60px!important}.subheader-input[data-v-0f275556]:nth-child(2){max-width:250px!important;min-width:250px!important}.subheader-input[data-v-0f275556] .v-input__control .v-field{height:50px!important;--v-input-control-height:50px!important;--v-input-padding-top:15px!important}.subheader-input[data-v-0f275556] .v-input__details{display:none}.subheader-input.disabled[data-v-0f275556]{pointer-events:none!important}@media(max-width:1312px){.date-wrapper[data-v-0f275556]{order:3}}@media(max-width:600px){.subheader[data-v-0f275556]{gap:15px;padding:20px!important}.subheader-input[data-v-0f275556]{max-width:100%!important;min-width:100%;margin:0 10px 10px 0}.date-wrapper[data-v-0f275556]{flex-wrap:wrap;gap:10px;flex:1 1 100%}.date-wrapper .subheader-icon-button[data-v-0f275556]{order:3;margin:0;flex:1 1 calc(50% - 5px);height:40px}}@media(min-width:601px)and (max-width:825px){.subheader[data-v-0f275556]{flex-wrap:nowrap;padding:8px 20px 8px 20px!important}.subheader-input[data-v-0f275556]{max-width:calc(31.333% - 10px)!important;min-width:calc(31.333% - 10px)!important}.subheader-input[data-v-0f275556]:nth-child(3){max-width:calc(23.333% - 10px)!important;min-width:calc(23.333% - 10px)!important}}.colWidth[data-v-8b9aedf6]{width:120px}.vuecal[data-v-8b9aedf6]{box-shadow:none!important}.calendar-wrapper[data-v-8b9aedf6]{width:100%;height:100%}.calendar-wrapper[data-v-8b9aedf6] .vuecal__cells{-ms-overflow-style:none;scrollbar-width:none;border-left:1px solid rgba(0,0,0,.1);padding-left:20px}.calendar-wrapper[data-v-8b9aedf6] .vuecal__cells::-webkit-scrollbar{display:none}.calendar-wrapper[data-v-8b9aedf6] .vuecal__flex{flex-wrap:nowrap!important}.calendar-wrapper[data-v-8b9aedf6] .vuecal__time-column{width:80px;box-shadow:none!important}.calendar-wrapper[data-v-8b9aedf6] .vuecal__time-column .time-column-line{width:20px;height:0;border:1px solid rgba(33,33,33,.08);margin-left:10px}@media(max-width:450px){.calendar-wrapper[data-v-8b9aedf6] .vuecal__time-column{width:70px}.calendar-wrapper[data-v-8b9aedf6] .vuecal__time-column .time-column-line{width:10px}}.calendar-wrapper[data-v-8b9aedf6] .vuecal__cell:before{border:none}.calendar-wrapper[data-v-8b9aedf6] .vuecal__scrollable-body{position:relative}.calendar-wrapper[data-v-8b9aedf6] .vuecal__split-days-headers{position:absolute;top:0;left:20px;z-index:999;background:#fff;padding-bottom:15px;width:calc(100% - 20px)}.calendar-wrapper[data-v-8b9aedf6] .vuecal__cell-split{margin-right:20px}.calendar-wrapper[data-v-8b9aedf6] .day-split-header{height:-moz-fit-content;height:fit-content;min-height:100%;padding-right:20px}.calendar-wrapper[data-v-8b9aedf6] .day-split-header .weekday-label{justify-content:start!important;font-size:18px;font-weight:700}.calendar-wrapper[data-v-8b9aedf6] .day-split-header .day-name{text-align:left;font-size:17px;font-weight:500;text-transform:capitalize}.calendar-wrapper[data-v-8b9aedf6] .day-split-header .unscheduled-time{background:rgba(0,0,0,.04);border-radius:24px;padding:10px 10px;margin-top:10px}.calendar-wrapper[data-v-8b9aedf6] .day-split-header .unscheduled-time .text-wrap{width:-moz-min-content;width:min-content;margin-left:12px}.calendar-wrapper[data-v-8b9aedf6] .day-split-header .unscheduled-time .text-wrap h1{font-size:14px}.calendar-wrapper[data-v-8b9aedf6] .day-split-header .unscheduled-time .text-wrap p{font-weight:400;font-size:15px;line-height:normal}.calendar-wrapper[data-v-8b9aedf6] .day-split-header .unscheduled-time .unscheduled-time-initials{width:30px;height:30px;background:#6200ee;border-radius:50%}.calendar-wrapper[data-v-8b9aedf6] .day-split-header .unscheduled-time .unscheduled-time-initials p{font-weight:400;font-size:15px;color:#fff}.calendar-wrapper[data-v-8b9aedf6] .vuecal__body{-ms-overflow-style:none;scrollbar-width:none}.calendar-wrapper[data-v-8b9aedf6] .vuecal__body::-webkit-scrollbar{display:none}.calendar-wrapper[data-v-8b9aedf6] .vuecal__body .vuecal__now-line{display:none!important}.calendar-wrapper[data-v-8b9aedf6] .vuecal__body .vuecal:not(.vuecal--day-view) .vuecal__cell--selected:not(.vuecal__cell--today),.calendar-wrapper[data-v-8b9aedf6] .vuecal__body .vuecal__cell--current:not(.vuecal__cell--today),.calendar-wrapper[data-v-8b9aedf6] .vuecal__body .vuecal__cell--highlighted,.calendar-wrapper[data-v-8b9aedf6] .vuecal__body .vuecal__cell--selected,.calendar-wrapper[data-v-8b9aedf6] .vuecal__body .vuecal__cell--today{background-color:#fff;border-radius:16px}.calendar-wrapper[data-v-8b9aedf6] .vuecal__body .vuecal__cell-split--weekend{background-color:hsla(0,100%,74%,.3)!important;border-radius:16px}.calendar-wrapper[data-v-8b9aedf6] .vuecal__body .vuecal__event{border-radius:16px;min-height:70px!important;text-align:left;background:#f8f8f8;transition:min-height .4s,height .4s,box-shadow .4s,width .4s,left .4s}.calendar-wrapper[data-v-8b9aedf6] .vuecal__body .vuecal__event .custom-event-body{padding:20px 10px;width:100%}.calendar-wrapper[data-v-8b9aedf6] .vuecal__body .vuecal__event .event-content.is-blocker *{color:#fff!important}.calendar-wrapper[data-v-8b9aedf6] .vuecal__body .vuecal__event .event-content.is-blocker .event-details .event-initials{border:1px solid #fff}.calendar-wrapper[data-v-8b9aedf6] .vuecal__body .vuecal__event .event-content.is-blocker .event-footer{border-top:1px solid hsla(0,0%,100%,.19)}.calendar-wrapper[data-v-8b9aedf6] .vuecal__body .vuecal__event:has(.completed){background:#fbfbfb!important;border:1px solid #ccc!important}.calendar-wrapper[data-v-8b9aedf6] .vuecal__body .vuecal__event:has(.non-working-event){background:repeating-linear-gradient(135deg,#d7d7d7,#d7d7d7 1px,#e0e0e0 0,#e0e0e0 20px);border:1px solid #d7d7d7}.calendar-wrapper[data-v-8b9aedf6] .vuecal__body .vuecal__event.vuecal__event--focus{z-index:100!important;min-height:350px!important;width:100%!important;left:0!important}.calendar-wrapper[data-v-8b9aedf6] .vuecal__body .vuecal__event:not(.vuecal__event--focus):has(.micro-event) .custom-event-body{padding:5px!important}.calendar-wrapper[data-v-8b9aedf6] .vuecal__body .vuecal__event:not(.vuecal__event--focus):has(.short-event) .custom-event-body:not(.micro-event){padding:10px 5px!important}.calendar-wrapper[data-v-8b9aedf6] .vuecal__body .vuecal__event:not(.vuecal__event--focus) .short-event .project-code{display:none!important}.calendar-wrapper[data-v-8b9aedf6] .vuecal__body .vuecal__event:not(.vuecal__event--focus) .short-event h3{font-size:16px!important}.calendar-wrapper[data-v-8b9aedf6] .vuecal__body .vuecal__event:not(.vuecal__event--focus) .mini-event .event-content{width:100%;padding:5px 10px}.calendar-wrapper[data-v-8b9aedf6] .vuecal__body .vuecal__event:not(.vuecal__event--focus) .mini-event .event-initials-wrapper .event-initials{margin-right:0}.calendar-wrapper[data-v-8b9aedf6] .vuecal__body .vuecal__event:not(.vuecal__event--focus) .mini-event h3{font-size:14px!important;text-overflow:ellipsis;width:calc(100% - 35px);white-space:nowrap;overflow:hidden;margin:0}.calendar-wrapper[data-v-8b9aedf6] .vuecal__body .vuecal__event:not(.vuecal__event--focus) .micro-event .event-footer,.calendar-wrapper[data-v-8b9aedf6] .vuecal__body .vuecal__event:not(.vuecal__event--focus) .mini-event .event-initials-date{display:none!important}.calendar-wrapper[data-v-8b9aedf6] .vuecal__body .vuecal__event .project-code{margin:0 0 20px;display:block}.calendar-wrapper[data-v-8b9aedf6] .vuecal__body .vuecal__event h3{font-size:15px;font-weight:400;color:#000;margin:0 0 10px;max-height:100%}.calendar-wrapper[data-v-8b9aedf6] .vuecal__body .vuecal__event small{color:#000}.calendar-wrapper[data-v-8b9aedf6] .vuecal__body .vuecal__event .event-initials-wrapper{margin-bottom:20px}.calendar-wrapper[data-v-8b9aedf6] .vuecal__body .vuecal__event .event-initials{height:30px;width:30px;border:1px solid #000;border-radius:50%;padding:5px;margin-right:7px}.calendar-wrapper[data-v-8b9aedf6] .vuecal__body .vuecal__event .event-initials small{font-size:11px}.calendar-wrapper[data-v-8b9aedf6] .vuecal__body .vuecal__event .event-footer{flex-flow:row wrap;justify-content:center;alight-items:center;padding-top:15px;border-top:1px solid rgba(33,33,33,.08)}.calendar-wrapper[data-v-8b9aedf6] .vuecal__body .vuecal__event .event-footer .event-footer-button{box-shadow:none!important;margin-bottom:8px;padding:9px!important;min-height:-moz-fit-content;min-height:fit-content;height:-moz-fit-content;height:fit-content;min-width:-moz-fit-content;min-width:fit-content;width:-moz-fit-content;width:fit-content}.calendar-wrapper[data-v-8b9aedf6] .vuecal__body .vuecal__event .event-footer .event-footer-button.completed{background:#06dece}.calendar-wrapper[data-v-8b9aedf6] .vuecal__body .vuecal__event .event-footer .event-footer-button img{width:18px}.w-loadable[data-v-48d26fee]{text-align:center;padding-top:20px;height:calc(100% - 121px)}@media(max-width:1312px){.w-loadable[data-v-48d26fee]{height:calc(100% - 202px)}} \ No newline at end of file +.subheader[data-v-0f275556]{max-width:100%;margin:0;border-bottom:1px solid rgba(33,33,33,.08);gap:25px;flex-wrap:wrap;flex:0 0 auto}.subheader-icon-button[data-v-0f275556]{border:1px solid #ababab;height:50px;width:50px;min-width:auto!important;padding:0;margin:0}.subheader-icon-button.prev[data-v-0f275556]{margin-right:10px}.subheader-icon-button.next[data-v-0f275556]{margin-left:10px}.subheader-icon-button[data-v-0f275556] .v-btn__append{margin:0}.subheader-input[data-v-0f275556]{max-width:175px;min-width:175px;height:60px!important}.subheader-input[data-v-0f275556]:nth-child(2){max-width:250px!important;min-width:250px!important}.subheader-input[data-v-0f275556] .v-input__control .v-field{height:50px!important;--v-input-control-height:50px!important;--v-input-padding-top:15px!important}.subheader-input[data-v-0f275556] .v-input__details{display:none}.subheader-input.disabled[data-v-0f275556]{pointer-events:none!important}@media(max-width:1312px){.date-wrapper[data-v-0f275556]{order:3}}@media(max-width:600px){.subheader[data-v-0f275556]{gap:15px;padding:20px!important}.subheader-input[data-v-0f275556]{max-width:100%!important;min-width:100%;margin:0 10px 10px 0}.date-wrapper[data-v-0f275556]{flex-wrap:wrap;gap:10px;flex:1 1 100%}.date-wrapper .subheader-icon-button[data-v-0f275556]{order:3;margin:0;flex:1 1 calc(50% - 5px);height:40px}}@media(min-width:601px)and (max-width:825px){.subheader[data-v-0f275556]{flex-wrap:nowrap;padding:8px 20px 8px 20px!important}.subheader-input[data-v-0f275556]{max-width:calc(31.333% - 10px)!important;min-width:calc(31.333% - 10px)!important}.subheader-input[data-v-0f275556]:nth-child(3){max-width:calc(23.333% - 10px)!important;min-width:calc(23.333% - 10px)!important}}.colWidth[data-v-0b9e41ad]{width:120px}.vuecal[data-v-0b9e41ad]{box-shadow:none!important}.calendar-wrapper[data-v-0b9e41ad]{width:100%;height:100%}.calendar-wrapper[data-v-0b9e41ad] .vuecal__cells{-ms-overflow-style:none;scrollbar-width:none;border-left:1px solid rgba(0,0,0,.1);padding-left:20px}.calendar-wrapper[data-v-0b9e41ad] .vuecal__cells::-webkit-scrollbar{display:none}.calendar-wrapper[data-v-0b9e41ad] .vuecal__flex{flex-wrap:nowrap!important}.calendar-wrapper[data-v-0b9e41ad] .vuecal__time-column{width:80px;box-shadow:none!important}.calendar-wrapper[data-v-0b9e41ad] .vuecal__time-column .time-column-line{width:20px;height:0;border:1px solid rgba(33,33,33,.08);margin-left:10px}@media(max-width:450px){.calendar-wrapper[data-v-0b9e41ad] .vuecal__time-column{width:70px}.calendar-wrapper[data-v-0b9e41ad] .vuecal__time-column .time-column-line{width:10px}}.calendar-wrapper[data-v-0b9e41ad] .vuecal__cell:before{border:none}.calendar-wrapper[data-v-0b9e41ad] .vuecal__scrollable-body{position:relative}.calendar-wrapper[data-v-0b9e41ad] .vuecal__split-days-headers{position:absolute;top:0;left:20px;z-index:999;background:#fff;padding-bottom:15px;width:calc(100% - 20px)}.calendar-wrapper[data-v-0b9e41ad] .vuecal__cell-split{margin-right:20px}.calendar-wrapper[data-v-0b9e41ad] .day-split-header{height:-moz-fit-content;height:fit-content;min-height:100%;padding-right:20px}.calendar-wrapper[data-v-0b9e41ad] .day-split-header .weekday-label{justify-content:start!important;font-size:18px;font-weight:700}.calendar-wrapper[data-v-0b9e41ad] .day-split-header .day-name{text-align:left;font-size:17px;font-weight:500;text-transform:capitalize}.calendar-wrapper[data-v-0b9e41ad] .day-split-header .unscheduled-time{background:rgba(0,0,0,.04);border-radius:24px;padding:10px 10px;margin-top:10px}.calendar-wrapper[data-v-0b9e41ad] .day-split-header .unscheduled-time .text-wrap{width:-moz-min-content;width:min-content;margin-left:12px}.calendar-wrapper[data-v-0b9e41ad] .day-split-header .unscheduled-time .text-wrap h1{font-size:14px}.calendar-wrapper[data-v-0b9e41ad] .day-split-header .unscheduled-time .text-wrap p{font-weight:400;font-size:15px;line-height:normal}.calendar-wrapper[data-v-0b9e41ad] .day-split-header .unscheduled-time .unscheduled-time-initials{width:30px;height:30px;background:#6200ee;border-radius:50%}.calendar-wrapper[data-v-0b9e41ad] .day-split-header .unscheduled-time .unscheduled-time-initials p{font-weight:400;font-size:15px;color:#fff}.calendar-wrapper[data-v-0b9e41ad] .vuecal__body{-ms-overflow-style:none;scrollbar-width:none}.calendar-wrapper[data-v-0b9e41ad] .vuecal__body::-webkit-scrollbar{display:none}.calendar-wrapper[data-v-0b9e41ad] .vuecal__body .vuecal__now-line{display:none!important}.calendar-wrapper[data-v-0b9e41ad] .vuecal__body .vuecal:not(.vuecal--day-view) .vuecal__cell--selected:not(.vuecal__cell--today),.calendar-wrapper[data-v-0b9e41ad] .vuecal__body .vuecal__cell--current:not(.vuecal__cell--today),.calendar-wrapper[data-v-0b9e41ad] .vuecal__body .vuecal__cell--highlighted,.calendar-wrapper[data-v-0b9e41ad] .vuecal__body .vuecal__cell--selected,.calendar-wrapper[data-v-0b9e41ad] .vuecal__body .vuecal__cell--today{background-color:#fff;border-radius:16px}.calendar-wrapper[data-v-0b9e41ad] .vuecal__body .vuecal__cell-split--weekend{background-color:hsla(0,100%,74%,.3)!important;border-radius:16px}.calendar-wrapper[data-v-0b9e41ad] .vuecal__body .vuecal__event{border-radius:16px;min-height:70px!important;text-align:left;background:#f8f8f8;transition:min-height .4s,height .4s,box-shadow .4s,width .4s,left .4s}.calendar-wrapper[data-v-0b9e41ad] .vuecal__body .vuecal__event .custom-event-body{padding:20px 10px;width:100%}.calendar-wrapper[data-v-0b9e41ad] .vuecal__body .vuecal__event .event-content.is-blocker *{color:#fff!important}.calendar-wrapper[data-v-0b9e41ad] .vuecal__body .vuecal__event .event-content.is-blocker .event-details .event-initials{border:1px solid #fff}.calendar-wrapper[data-v-0b9e41ad] .vuecal__body .vuecal__event .event-content.is-blocker .event-footer{border-top:1px solid hsla(0,0%,100%,.19)}.calendar-wrapper[data-v-0b9e41ad] .vuecal__body .vuecal__event:has(.completed){background:#fbfbfb!important;border:1px solid #ccc!important}.calendar-wrapper[data-v-0b9e41ad] .vuecal__body .vuecal__event:has(.non-working-event){background:repeating-linear-gradient(135deg,#d7d7d7,#d7d7d7 1px,#e0e0e0 0,#e0e0e0 20px);border:1px solid #d7d7d7}.calendar-wrapper[data-v-0b9e41ad] .vuecal__body .vuecal__event.vuecal__event--focus{z-index:100!important;min-height:350px!important;width:100%!important;left:0!important}.calendar-wrapper[data-v-0b9e41ad] .vuecal__body .vuecal__event:not(.vuecal__event--focus):has(.micro-event) .custom-event-body{padding:5px!important}.calendar-wrapper[data-v-0b9e41ad] .vuecal__body .vuecal__event:not(.vuecal__event--focus):has(.short-event) .custom-event-body:not(.micro-event){padding:10px 5px!important}.calendar-wrapper[data-v-0b9e41ad] .vuecal__body .vuecal__event:not(.vuecal__event--focus) .short-event .project-code{display:none!important}.calendar-wrapper[data-v-0b9e41ad] .vuecal__body .vuecal__event:not(.vuecal__event--focus) .short-event h3{font-size:16px!important}.calendar-wrapper[data-v-0b9e41ad] .vuecal__body .vuecal__event:not(.vuecal__event--focus) .mini-event .event-content{width:100%;padding:5px 10px}.calendar-wrapper[data-v-0b9e41ad] .vuecal__body .vuecal__event:not(.vuecal__event--focus) .mini-event .event-initials-wrapper .event-initials{margin-right:0}.calendar-wrapper[data-v-0b9e41ad] .vuecal__body .vuecal__event:not(.vuecal__event--focus) .mini-event h3{font-size:14px!important;text-overflow:ellipsis;width:calc(100% - 35px);white-space:nowrap;overflow:hidden;margin:0}.calendar-wrapper[data-v-0b9e41ad] .vuecal__body .vuecal__event:not(.vuecal__event--focus) .micro-event .event-footer,.calendar-wrapper[data-v-0b9e41ad] .vuecal__body .vuecal__event:not(.vuecal__event--focus) .mini-event .event-initials-date{display:none!important}.calendar-wrapper[data-v-0b9e41ad] .vuecal__body .vuecal__event .project-code{margin:0 0 20px;display:block}.calendar-wrapper[data-v-0b9e41ad] .vuecal__body .vuecal__event h3{font-size:15px;font-weight:400;color:#000;margin:0 0 10px;max-height:100%}.calendar-wrapper[data-v-0b9e41ad] .vuecal__body .vuecal__event small{color:#000}.calendar-wrapper[data-v-0b9e41ad] .vuecal__body .vuecal__event .event-initials-wrapper{margin-bottom:20px}.calendar-wrapper[data-v-0b9e41ad] .vuecal__body .vuecal__event .event-initials{height:30px;width:30px;border:1px solid #000;border-radius:50%;padding:5px;margin-right:7px}.calendar-wrapper[data-v-0b9e41ad] .vuecal__body .vuecal__event .event-initials small{font-size:11px}.calendar-wrapper[data-v-0b9e41ad] .vuecal__body .vuecal__event .event-footer{flex-flow:row wrap;justify-content:center;alight-items:center;padding-top:15px;border-top:1px solid rgba(33,33,33,.08)}.calendar-wrapper[data-v-0b9e41ad] .vuecal__body .vuecal__event .event-footer .event-footer-button{box-shadow:none!important;margin-bottom:8px;padding:9px!important;min-height:-moz-fit-content;min-height:fit-content;height:-moz-fit-content;height:fit-content;min-width:-moz-fit-content;min-width:fit-content;width:-moz-fit-content;width:fit-content}.calendar-wrapper[data-v-0b9e41ad] .vuecal__body .vuecal__event .event-footer .event-footer-button.completed{background:#06dece}.calendar-wrapper[data-v-0b9e41ad] .vuecal__body .vuecal__event .event-footer .event-footer-button img{width:18px}.w-loadable[data-v-48d26fee]{text-align:center;padding-top:20px;height:calc(100% - 121px)}@media(max-width:1312px){.w-loadable[data-v-48d26fee]{height:calc(100% - 202px)}} \ No newline at end of file diff --git a/app/dist/css/7458.49728a72.css b/app/dist/css/6811.7fe02c8d.css similarity index 65% rename from app/dist/css/7458.49728a72.css rename to app/dist/css/6811.7fe02c8d.css index 1218b07..6aafa19 100644 --- a/app/dist/css/7458.49728a72.css +++ b/app/dist/css/6811.7fe02c8d.css @@ -1 +1 @@ -#calendar[data-v-4b337cac] .fc-media-screen{height:57.82rem!important}#calendar[data-v-4b337cac] .w-day-header{text-align:left;padding-left:10px}#calendar[data-v-4b337cac] .fc-daygrid-day-number{color:#000}#calendar[data-v-4b337cac] .fc-col-header-cell-cushion{font-size:20px;font-weight:500;line-height:45px;text-transform:capitalize;color:#000}#calendar[data-v-4b337cac] .fc-theme-standard .fc-scrollgrid{border:none}#calendar[data-v-4b337cac] .fc-event-start{border-top-left-radius:30px;border-bottom-left-radius:30px}#calendar[data-v-4b337cac] .fc-event-end{border-top-right-radius:30px;border-bottom-right-radius:30px}#calendar[data-v-4b337cac] .fc-event-main{color:#000}#calendar[data-v-4b337cac] .fc-event{font-size:12px;padding-left:10px;margin-top:5px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;background:unset}#calendar[data-v-4b337cac] .fc-day-today{background:#fff}#calendar[data-v-4b337cac] .fc-day-today .fc-daygrid-day-top a{background:#3700b3;width:28px;color:#fff;text-align:center;border-radius:50%;height:28px;line-height:27px;position:relative;padding:0;margin:0;border:none;top:2px;right:4px}#calendar[data-v-4b337cac] .fc-daygrid-day-frame{min-height:100px}.v-switch .v-label{-webkit-padding-start:10px;padding-inline-start:10px}.v-switch__loader{display:flex}.v-switch__thumb,.v-switch__track{background-color:currentColor;transition:none}.v-selection-control--error:not(.v-selection-control--disabled) .v-switch__thumb,.v-selection-control--error:not(.v-selection-control--disabled) .v-switch__track{background-color:rgb(var(--v-theme-error))}.v-switch__track{border-radius:8px;height:14px;opacity:.6;width:36px;cursor:pointer}.v-switch--inset .v-switch__track{border-radius:14px;height:28px;width:48px}.v-switch__thumb{align-items:center;border-radius:50%;color:rgb(var(--v-theme-surface));display:flex;height:20px;justify-content:center;width:20px;pointer-events:none;transition:transform .15s cubic-bezier(.4,0,.2,1);box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity,rgba(0,0,0,.2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity,rgba(0,0,0,.14)),0 1px 10px 0 var(--v-shadow-key-penumbra-opacity,rgba(0,0,0,.12))}.v-switch--inset .v-switch__thumb{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity,rgba(0,0,0,.2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity,rgba(0,0,0,.14)),0 0 0 0 var(--v-shadow-key-penumbra-opacity,rgba(0,0,0,.12))}.v-switch--loading .v-selection-control__input>.v-icon,.v-switch:not(.v-switch--loading) .v-icon~.v-switch__thumb{display:none}.v-switch .v-selection-control{height:var(--v-input-control-height)}.v-switch .v-selection-control__wrapper{width:auto}.v-switch .v-selection-control__input{border-radius:50%;transition:transform .15s cubic-bezier(.4,0,.2,1);transform:translateX(-10px);position:absolute}.v-switch .v-selection-control--dirty .v-selection-control__input{transform:translateX(10px)}.v-switch.v-switch--indeterminate .v-selection-control__input{transform:scale(.8)}.v-switch.v-switch--indeterminate .v-switch__thumb{transform:scale(.75);box-shadow:none}.subheader[data-v-4807cf95]{max-width:100%;margin:0;border-bottom:1px solid rgba(33,33,33,.08);gap:20px;flex-wrap:wrap;position:sticky;top:0;z-index:9999;background:#fff;flex:none!important}.subheader-input[data-v-4807cf95]{max-width:250px!important;min-width:250px}.subheader-input[data-v-4807cf95] .v-input__control .v-field{height:50px!important;--v-input-control-height:50px!important;--v-input-padding-top:15px!important}.subheader-input[data-v-4807cf95] .v-input__details{display:none}.subheader-input[data-v-4807cf95] .v-selection-control{height:35px}.subheader-input.disabled[data-v-4807cf95]{pointer-events:none!important}@media(max-width:600px){.subheader-input .subheader[data-v-4807cf95]{gap:15px;padding:20px!important}}.subheader-input .subheader-input[data-v-4807cf95]{max-width:100%!important;min-width:100%}.subheader-input.switch[data-v-4807cf95]{max-width:100px!important;min-width:100px!important}.subheader-input[data-v-4807cf95] .v-selection-control--dirty .v-switch__track{background:rgba(187,134,252,.38)!important}.switch-label[data-v-4807cf95]{font-size:12px;color:rgba(0,0,0,.6)}.non-projects[data-v-2b7fe154]{height:100vw!important} \ No newline at end of file +#calendar[data-v-2e121bf3] .fc-media-screen{height:57.82rem!important}#calendar[data-v-2e121bf3] .w-day-header{text-align:left;padding-left:10px}#calendar[data-v-2e121bf3] .fc-daygrid-day-number{color:#000}#calendar[data-v-2e121bf3] .fc-col-header-cell-cushion{font-size:20px;font-weight:500;line-height:45px;text-transform:capitalize;color:#000}#calendar[data-v-2e121bf3] .fc-theme-standard .fc-scrollgrid{border:none}#calendar[data-v-2e121bf3] .fc-event-start{border-top-left-radius:30px;border-bottom-left-radius:30px}#calendar[data-v-2e121bf3] .fc-event-end{border-top-right-radius:30px;border-bottom-right-radius:30px}#calendar[data-v-2e121bf3] .fc-event-main{color:#000}#calendar[data-v-2e121bf3] .fc-event{font-size:12px;padding-left:10px;margin-top:5px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;background:unset}#calendar[data-v-2e121bf3] .fc-day-today{background:#fff}#calendar[data-v-2e121bf3] .fc-day-today .fc-daygrid-day-top a{background:#3700b3;width:28px;color:#fff;text-align:center;border-radius:50%;height:28px;line-height:27px;position:relative;padding:0;margin:0;border:none;top:2px;right:4px}#calendar[data-v-2e121bf3] .fc-daygrid-day-frame{min-height:100px}.v-switch .v-label{-webkit-padding-start:10px;padding-inline-start:10px}.v-switch__loader{display:flex}.v-switch__thumb,.v-switch__track{background-color:currentColor;transition:none}.v-selection-control--error:not(.v-selection-control--disabled) .v-switch__thumb,.v-selection-control--error:not(.v-selection-control--disabled) .v-switch__track{background-color:rgb(var(--v-theme-error))}.v-switch__track{border-radius:8px;height:14px;opacity:.6;width:36px;cursor:pointer}.v-switch--inset .v-switch__track{border-radius:14px;height:28px;width:48px}.v-switch__thumb{align-items:center;border-radius:50%;color:rgb(var(--v-theme-surface));display:flex;height:20px;justify-content:center;width:20px;pointer-events:none;transition:transform .15s cubic-bezier(.4,0,.2,1);box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity,rgba(0,0,0,.2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity,rgba(0,0,0,.14)),0 1px 10px 0 var(--v-shadow-key-penumbra-opacity,rgba(0,0,0,.12))}.v-switch--inset .v-switch__thumb{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity,rgba(0,0,0,.2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity,rgba(0,0,0,.14)),0 0 0 0 var(--v-shadow-key-penumbra-opacity,rgba(0,0,0,.12))}.v-switch--loading .v-selection-control__input>.v-icon,.v-switch:not(.v-switch--loading) .v-icon~.v-switch__thumb{display:none}.v-switch .v-selection-control{height:var(--v-input-control-height)}.v-switch .v-selection-control__wrapper{width:auto}.v-switch .v-selection-control__input{border-radius:50%;transition:transform .15s cubic-bezier(.4,0,.2,1);transform:translateX(-10px);position:absolute}.v-switch .v-selection-control--dirty .v-selection-control__input{transform:translateX(10px)}.v-switch.v-switch--indeterminate .v-selection-control__input{transform:scale(.8)}.v-switch.v-switch--indeterminate .v-switch__thumb{transform:scale(.75);box-shadow:none}.subheader[data-v-d903f508]{max-width:100%;margin:0;border-bottom:1px solid rgba(33,33,33,.08);gap:20px;flex-wrap:wrap;position:sticky;top:0;z-index:9999;background:#fff;flex:none!important}.subheader-input[data-v-d903f508]{max-width:250px!important;min-width:250px}.subheader-input[data-v-d903f508] .v-input__control .v-field{height:50px!important;--v-input-control-height:50px!important;--v-input-padding-top:15px!important}.subheader-input[data-v-d903f508] .v-input__details{display:none}.subheader-input[data-v-d903f508] .v-selection-control{height:35px}.subheader-input.disabled[data-v-d903f508]{pointer-events:none!important}@media(max-width:600px){.subheader-input .subheader[data-v-d903f508]{gap:15px;padding:20px!important}}.subheader-input .subheader-input[data-v-d903f508]{max-width:100%!important;min-width:100%}.subheader-input.switch[data-v-d903f508]{max-width:100px!important;min-width:100px!important}.subheader-input[data-v-d903f508] .v-selection-control--dirty .v-switch__track{background:rgba(187,134,252,.38)!important}.switch-label[data-v-d903f508]{font-size:12px;color:rgba(0,0,0,.6)}.non-projects[data-v-322213a1]{height:100vw!important} \ No newline at end of file diff --git a/app/dist/css/723.da6281d7.css b/app/dist/css/723.da6281d7.css deleted file mode 100644 index 1feec96..0000000 --- a/app/dist/css/723.da6281d7.css +++ /dev/null @@ -1 +0,0 @@ -.subheader[data-v-52340441]{max-width:100%;margin:0;border-bottom:1px solid rgba(33,33,33,.08);gap:25px;flex-wrap:wrap;flex:0 0 auto}.subheader-icon-button[data-v-52340441]{border:1px solid #ababab;height:50px;width:50px;min-width:auto!important;padding:0;margin:0}.subheader-icon-button.prev[data-v-52340441]{margin-right:10px}.subheader-icon-button.next[data-v-52340441]{margin-left:10px}.subheader-icon-button[data-v-52340441] .v-btn__append{margin:0}.subheader-input[data-v-52340441]{max-width:250px!important;min-width:250px;height:50px!important}.subheader-input[data-v-52340441] .v-input__control .v-field{height:50px!important;--v-input-control-height:50px!important;--v-input-padding-top:15px!important}.subheader-input[data-v-52340441] .v-input__details{display:none}.subheader-input.disabled[data-v-52340441]{pointer-events:none!important}@media(max-width:1312px){.date-wrapper[data-v-52340441]{order:3}}@media(max-width:600px){.subheader[data-v-52340441]{gap:15px;padding:20px!important}.subheader-input[data-v-52340441]{max-width:100%!important;min-width:100%;margin:0 10px 10px 0}.date-wrapper[data-v-52340441]{flex-wrap:wrap;gap:10px;flex:1 1 100%}.date-wrapper .subheader-icon-button[data-v-52340441]{order:3;margin:0;flex:1 1 calc(50% - 5px);height:40px}}.colWidth[data-v-8b9aedf6]{width:120px}.vuecal[data-v-8b9aedf6]{box-shadow:none!important}.calendar-wrapper[data-v-8b9aedf6]{width:100%;height:100%}.calendar-wrapper[data-v-8b9aedf6] .vuecal__cells{-ms-overflow-style:none;scrollbar-width:none;border-left:1px solid rgba(0,0,0,.1);padding-left:20px}.calendar-wrapper[data-v-8b9aedf6] .vuecal__cells::-webkit-scrollbar{display:none}.calendar-wrapper[data-v-8b9aedf6] .vuecal__flex{flex-wrap:nowrap!important}.calendar-wrapper[data-v-8b9aedf6] .vuecal__time-column{width:80px;box-shadow:none!important}.calendar-wrapper[data-v-8b9aedf6] .vuecal__time-column .time-column-line{width:20px;height:0;border:1px solid rgba(33,33,33,.08);margin-left:10px}@media(max-width:450px){.calendar-wrapper[data-v-8b9aedf6] .vuecal__time-column{width:70px}.calendar-wrapper[data-v-8b9aedf6] .vuecal__time-column .time-column-line{width:10px}}.calendar-wrapper[data-v-8b9aedf6] .vuecal__cell:before{border:none}.calendar-wrapper[data-v-8b9aedf6] .vuecal__scrollable-body{position:relative}.calendar-wrapper[data-v-8b9aedf6] .vuecal__split-days-headers{position:absolute;top:0;left:20px;z-index:999;background:#fff;padding-bottom:15px;width:calc(100% - 20px)}.calendar-wrapper[data-v-8b9aedf6] .vuecal__cell-split{margin-right:20px}.calendar-wrapper[data-v-8b9aedf6] .day-split-header{height:-moz-fit-content;height:fit-content;min-height:100%;padding-right:20px}.calendar-wrapper[data-v-8b9aedf6] .day-split-header .weekday-label{justify-content:start!important;font-size:18px;font-weight:700}.calendar-wrapper[data-v-8b9aedf6] .day-split-header .day-name{text-align:left;font-size:17px;font-weight:500;text-transform:capitalize}.calendar-wrapper[data-v-8b9aedf6] .day-split-header .unscheduled-time{background:rgba(0,0,0,.04);border-radius:24px;padding:10px 10px;margin-top:10px}.calendar-wrapper[data-v-8b9aedf6] .day-split-header .unscheduled-time .text-wrap{width:-moz-min-content;width:min-content;margin-left:12px}.calendar-wrapper[data-v-8b9aedf6] .day-split-header .unscheduled-time .text-wrap h1{font-size:14px}.calendar-wrapper[data-v-8b9aedf6] .day-split-header .unscheduled-time .text-wrap p{font-weight:400;font-size:15px;line-height:normal}.calendar-wrapper[data-v-8b9aedf6] .day-split-header .unscheduled-time .unscheduled-time-initials{width:30px;height:30px;background:#6200ee;border-radius:50%}.calendar-wrapper[data-v-8b9aedf6] .day-split-header .unscheduled-time .unscheduled-time-initials p{font-weight:400;font-size:15px;color:#fff}.calendar-wrapper[data-v-8b9aedf6] .vuecal__body{-ms-overflow-style:none;scrollbar-width:none}.calendar-wrapper[data-v-8b9aedf6] .vuecal__body::-webkit-scrollbar{display:none}.calendar-wrapper[data-v-8b9aedf6] .vuecal__body .vuecal__now-line{display:none!important}.calendar-wrapper[data-v-8b9aedf6] .vuecal__body .vuecal:not(.vuecal--day-view) .vuecal__cell--selected:not(.vuecal__cell--today),.calendar-wrapper[data-v-8b9aedf6] .vuecal__body .vuecal__cell--current:not(.vuecal__cell--today),.calendar-wrapper[data-v-8b9aedf6] .vuecal__body .vuecal__cell--highlighted,.calendar-wrapper[data-v-8b9aedf6] .vuecal__body .vuecal__cell--selected,.calendar-wrapper[data-v-8b9aedf6] .vuecal__body .vuecal__cell--today{background-color:#fff;border-radius:16px}.calendar-wrapper[data-v-8b9aedf6] .vuecal__body .vuecal__cell-split--weekend{background-color:hsla(0,100%,74%,.3)!important;border-radius:16px}.calendar-wrapper[data-v-8b9aedf6] .vuecal__body .vuecal__event{border-radius:16px;min-height:70px!important;text-align:left;background:#f8f8f8;transition:min-height .4s,height .4s,box-shadow .4s,width .4s,left .4s}.calendar-wrapper[data-v-8b9aedf6] .vuecal__body .vuecal__event .custom-event-body{padding:20px 10px;width:100%}.calendar-wrapper[data-v-8b9aedf6] .vuecal__body .vuecal__event .event-content.is-blocker *{color:#fff!important}.calendar-wrapper[data-v-8b9aedf6] .vuecal__body .vuecal__event .event-content.is-blocker .event-details .event-initials{border:1px solid #fff}.calendar-wrapper[data-v-8b9aedf6] .vuecal__body .vuecal__event .event-content.is-blocker .event-footer{border-top:1px solid hsla(0,0%,100%,.19)}.calendar-wrapper[data-v-8b9aedf6] .vuecal__body .vuecal__event:has(.completed){background:#fbfbfb!important;border:1px solid #ccc!important}.calendar-wrapper[data-v-8b9aedf6] .vuecal__body .vuecal__event:has(.non-working-event){background:repeating-linear-gradient(135deg,#d7d7d7,#d7d7d7 1px,#e0e0e0 0,#e0e0e0 20px);border:1px solid #d7d7d7}.calendar-wrapper[data-v-8b9aedf6] .vuecal__body .vuecal__event.vuecal__event--focus{z-index:100!important;min-height:350px!important;width:100%!important;left:0!important}.calendar-wrapper[data-v-8b9aedf6] .vuecal__body .vuecal__event:not(.vuecal__event--focus):has(.micro-event) .custom-event-body{padding:5px!important}.calendar-wrapper[data-v-8b9aedf6] .vuecal__body .vuecal__event:not(.vuecal__event--focus):has(.short-event) .custom-event-body:not(.micro-event){padding:10px 5px!important}.calendar-wrapper[data-v-8b9aedf6] .vuecal__body .vuecal__event:not(.vuecal__event--focus) .short-event .project-code{display:none!important}.calendar-wrapper[data-v-8b9aedf6] .vuecal__body .vuecal__event:not(.vuecal__event--focus) .short-event h3{font-size:16px!important}.calendar-wrapper[data-v-8b9aedf6] .vuecal__body .vuecal__event:not(.vuecal__event--focus) .mini-event .event-content{width:100%;padding:5px 10px}.calendar-wrapper[data-v-8b9aedf6] .vuecal__body .vuecal__event:not(.vuecal__event--focus) .mini-event .event-initials-wrapper .event-initials{margin-right:0}.calendar-wrapper[data-v-8b9aedf6] .vuecal__body .vuecal__event:not(.vuecal__event--focus) .mini-event h3{font-size:14px!important;text-overflow:ellipsis;width:calc(100% - 35px);white-space:nowrap;overflow:hidden;margin:0}.calendar-wrapper[data-v-8b9aedf6] .vuecal__body .vuecal__event:not(.vuecal__event--focus) .micro-event .event-footer,.calendar-wrapper[data-v-8b9aedf6] .vuecal__body .vuecal__event:not(.vuecal__event--focus) .mini-event .event-initials-date{display:none!important}.calendar-wrapper[data-v-8b9aedf6] .vuecal__body .vuecal__event .project-code{margin:0 0 20px;display:block}.calendar-wrapper[data-v-8b9aedf6] .vuecal__body .vuecal__event h3{font-size:15px;font-weight:400;color:#000;margin:0 0 10px;max-height:100%}.calendar-wrapper[data-v-8b9aedf6] .vuecal__body .vuecal__event small{color:#000}.calendar-wrapper[data-v-8b9aedf6] .vuecal__body .vuecal__event .event-initials-wrapper{margin-bottom:20px}.calendar-wrapper[data-v-8b9aedf6] .vuecal__body .vuecal__event .event-initials{height:30px;width:30px;border:1px solid #000;border-radius:50%;padding:5px;margin-right:7px}.calendar-wrapper[data-v-8b9aedf6] .vuecal__body .vuecal__event .event-initials small{font-size:11px}.calendar-wrapper[data-v-8b9aedf6] .vuecal__body .vuecal__event .event-footer{flex-flow:row wrap;justify-content:center;alight-items:center;padding-top:15px;border-top:1px solid rgba(33,33,33,.08)}.calendar-wrapper[data-v-8b9aedf6] .vuecal__body .vuecal__event .event-footer .event-footer-button{box-shadow:none!important;margin-bottom:8px;padding:9px!important;min-height:-moz-fit-content;min-height:fit-content;height:-moz-fit-content;height:fit-content;min-width:-moz-fit-content;min-width:fit-content;width:-moz-fit-content;width:fit-content}.calendar-wrapper[data-v-8b9aedf6] .vuecal__body .vuecal__event .event-footer .event-footer-button.completed{background:#06dece}.calendar-wrapper[data-v-8b9aedf6] .vuecal__body .vuecal__event .event-footer .event-footer-button img{width:18px}.w-loadable[data-v-79b7207e]{text-align:center;padding-top:20px;height:calc(100% - 121px)}@media(max-width:1312px){.w-loadable[data-v-79b7207e]{height:calc(100% - 202px)}} \ No newline at end of file diff --git a/app/dist/css/7496.1e01c869.css b/app/dist/css/7496.1e01c869.css new file mode 100644 index 0000000..f1a5afa --- /dev/null +++ b/app/dist/css/7496.1e01c869.css @@ -0,0 +1 @@ +.subheader[data-v-35b7352e]{max-width:100%;margin:0;border-bottom:1px solid rgba(33,33,33,.08);gap:25px;flex-wrap:wrap;flex:0 0 auto}.subheader-icon-button[data-v-35b7352e]{border:1px solid #ababab;height:50px;width:50px;min-width:auto!important;padding:0;margin:0}.subheader-icon-button.prev[data-v-35b7352e]{margin-right:10px}.subheader-icon-button.next[data-v-35b7352e]{margin-left:10px}.subheader-icon-button[data-v-35b7352e] .v-btn__append{margin:0}.subheader-input[data-v-35b7352e]{max-width:250px!important;min-width:250px;height:50px!important}.subheader-input[data-v-35b7352e] .v-input__control .v-field{height:50px!important;--v-input-control-height:50px!important;--v-input-padding-top:15px!important}.subheader-input[data-v-35b7352e] .v-input__details{display:none}.subheader-input.disabled[data-v-35b7352e]{pointer-events:none!important}@media(max-width:1312px){.date-wrapper[data-v-35b7352e]{order:3}}@media(max-width:600px){.subheader[data-v-35b7352e]{gap:15px;padding:20px!important}.subheader-input[data-v-35b7352e]{max-width:100%!important;min-width:100%;margin:0 10px 10px 0}.date-wrapper[data-v-35b7352e]{flex-wrap:wrap;gap:10px;flex:1 1 100%}.date-wrapper .subheader-icon-button[data-v-35b7352e]{order:3;margin:0;flex:1 1 calc(50% - 5px);height:40px}}.colWidth[data-v-0b9e41ad]{width:120px}.vuecal[data-v-0b9e41ad]{box-shadow:none!important}.calendar-wrapper[data-v-0b9e41ad]{width:100%;height:100%}.calendar-wrapper[data-v-0b9e41ad] .vuecal__cells{-ms-overflow-style:none;scrollbar-width:none;border-left:1px solid rgba(0,0,0,.1);padding-left:20px}.calendar-wrapper[data-v-0b9e41ad] .vuecal__cells::-webkit-scrollbar{display:none}.calendar-wrapper[data-v-0b9e41ad] .vuecal__flex{flex-wrap:nowrap!important}.calendar-wrapper[data-v-0b9e41ad] .vuecal__time-column{width:80px;box-shadow:none!important}.calendar-wrapper[data-v-0b9e41ad] .vuecal__time-column .time-column-line{width:20px;height:0;border:1px solid rgba(33,33,33,.08);margin-left:10px}@media(max-width:450px){.calendar-wrapper[data-v-0b9e41ad] .vuecal__time-column{width:70px}.calendar-wrapper[data-v-0b9e41ad] .vuecal__time-column .time-column-line{width:10px}}.calendar-wrapper[data-v-0b9e41ad] .vuecal__cell:before{border:none}.calendar-wrapper[data-v-0b9e41ad] .vuecal__scrollable-body{position:relative}.calendar-wrapper[data-v-0b9e41ad] .vuecal__split-days-headers{position:absolute;top:0;left:20px;z-index:999;background:#fff;padding-bottom:15px;width:calc(100% - 20px)}.calendar-wrapper[data-v-0b9e41ad] .vuecal__cell-split{margin-right:20px}.calendar-wrapper[data-v-0b9e41ad] .day-split-header{height:-moz-fit-content;height:fit-content;min-height:100%;padding-right:20px}.calendar-wrapper[data-v-0b9e41ad] .day-split-header .weekday-label{justify-content:start!important;font-size:18px;font-weight:700}.calendar-wrapper[data-v-0b9e41ad] .day-split-header .day-name{text-align:left;font-size:17px;font-weight:500;text-transform:capitalize}.calendar-wrapper[data-v-0b9e41ad] .day-split-header .unscheduled-time{background:rgba(0,0,0,.04);border-radius:24px;padding:10px 10px;margin-top:10px}.calendar-wrapper[data-v-0b9e41ad] .day-split-header .unscheduled-time .text-wrap{width:-moz-min-content;width:min-content;margin-left:12px}.calendar-wrapper[data-v-0b9e41ad] .day-split-header .unscheduled-time .text-wrap h1{font-size:14px}.calendar-wrapper[data-v-0b9e41ad] .day-split-header .unscheduled-time .text-wrap p{font-weight:400;font-size:15px;line-height:normal}.calendar-wrapper[data-v-0b9e41ad] .day-split-header .unscheduled-time .unscheduled-time-initials{width:30px;height:30px;background:#6200ee;border-radius:50%}.calendar-wrapper[data-v-0b9e41ad] .day-split-header .unscheduled-time .unscheduled-time-initials p{font-weight:400;font-size:15px;color:#fff}.calendar-wrapper[data-v-0b9e41ad] .vuecal__body{-ms-overflow-style:none;scrollbar-width:none}.calendar-wrapper[data-v-0b9e41ad] .vuecal__body::-webkit-scrollbar{display:none}.calendar-wrapper[data-v-0b9e41ad] .vuecal__body .vuecal__now-line{display:none!important}.calendar-wrapper[data-v-0b9e41ad] .vuecal__body .vuecal:not(.vuecal--day-view) .vuecal__cell--selected:not(.vuecal__cell--today),.calendar-wrapper[data-v-0b9e41ad] .vuecal__body .vuecal__cell--current:not(.vuecal__cell--today),.calendar-wrapper[data-v-0b9e41ad] .vuecal__body .vuecal__cell--highlighted,.calendar-wrapper[data-v-0b9e41ad] .vuecal__body .vuecal__cell--selected,.calendar-wrapper[data-v-0b9e41ad] .vuecal__body .vuecal__cell--today{background-color:#fff;border-radius:16px}.calendar-wrapper[data-v-0b9e41ad] .vuecal__body .vuecal__cell-split--weekend{background-color:hsla(0,100%,74%,.3)!important;border-radius:16px}.calendar-wrapper[data-v-0b9e41ad] .vuecal__body .vuecal__event{border-radius:16px;min-height:70px!important;text-align:left;background:#f8f8f8;transition:min-height .4s,height .4s,box-shadow .4s,width .4s,left .4s}.calendar-wrapper[data-v-0b9e41ad] .vuecal__body .vuecal__event .custom-event-body{padding:20px 10px;width:100%}.calendar-wrapper[data-v-0b9e41ad] .vuecal__body .vuecal__event .event-content.is-blocker *{color:#fff!important}.calendar-wrapper[data-v-0b9e41ad] .vuecal__body .vuecal__event .event-content.is-blocker .event-details .event-initials{border:1px solid #fff}.calendar-wrapper[data-v-0b9e41ad] .vuecal__body .vuecal__event .event-content.is-blocker .event-footer{border-top:1px solid hsla(0,0%,100%,.19)}.calendar-wrapper[data-v-0b9e41ad] .vuecal__body .vuecal__event:has(.completed){background:#fbfbfb!important;border:1px solid #ccc!important}.calendar-wrapper[data-v-0b9e41ad] .vuecal__body .vuecal__event:has(.non-working-event){background:repeating-linear-gradient(135deg,#d7d7d7,#d7d7d7 1px,#e0e0e0 0,#e0e0e0 20px);border:1px solid #d7d7d7}.calendar-wrapper[data-v-0b9e41ad] .vuecal__body .vuecal__event.vuecal__event--focus{z-index:100!important;min-height:350px!important;width:100%!important;left:0!important}.calendar-wrapper[data-v-0b9e41ad] .vuecal__body .vuecal__event:not(.vuecal__event--focus):has(.micro-event) .custom-event-body{padding:5px!important}.calendar-wrapper[data-v-0b9e41ad] .vuecal__body .vuecal__event:not(.vuecal__event--focus):has(.short-event) .custom-event-body:not(.micro-event){padding:10px 5px!important}.calendar-wrapper[data-v-0b9e41ad] .vuecal__body .vuecal__event:not(.vuecal__event--focus) .short-event .project-code{display:none!important}.calendar-wrapper[data-v-0b9e41ad] .vuecal__body .vuecal__event:not(.vuecal__event--focus) .short-event h3{font-size:16px!important}.calendar-wrapper[data-v-0b9e41ad] .vuecal__body .vuecal__event:not(.vuecal__event--focus) .mini-event .event-content{width:100%;padding:5px 10px}.calendar-wrapper[data-v-0b9e41ad] .vuecal__body .vuecal__event:not(.vuecal__event--focus) .mini-event .event-initials-wrapper .event-initials{margin-right:0}.calendar-wrapper[data-v-0b9e41ad] .vuecal__body .vuecal__event:not(.vuecal__event--focus) .mini-event h3{font-size:14px!important;text-overflow:ellipsis;width:calc(100% - 35px);white-space:nowrap;overflow:hidden;margin:0}.calendar-wrapper[data-v-0b9e41ad] .vuecal__body .vuecal__event:not(.vuecal__event--focus) .micro-event .event-footer,.calendar-wrapper[data-v-0b9e41ad] .vuecal__body .vuecal__event:not(.vuecal__event--focus) .mini-event .event-initials-date{display:none!important}.calendar-wrapper[data-v-0b9e41ad] .vuecal__body .vuecal__event .project-code{margin:0 0 20px;display:block}.calendar-wrapper[data-v-0b9e41ad] .vuecal__body .vuecal__event h3{font-size:15px;font-weight:400;color:#000;margin:0 0 10px;max-height:100%}.calendar-wrapper[data-v-0b9e41ad] .vuecal__body .vuecal__event small{color:#000}.calendar-wrapper[data-v-0b9e41ad] .vuecal__body .vuecal__event .event-initials-wrapper{margin-bottom:20px}.calendar-wrapper[data-v-0b9e41ad] .vuecal__body .vuecal__event .event-initials{height:30px;width:30px;border:1px solid #000;border-radius:50%;padding:5px;margin-right:7px}.calendar-wrapper[data-v-0b9e41ad] .vuecal__body .vuecal__event .event-initials small{font-size:11px}.calendar-wrapper[data-v-0b9e41ad] .vuecal__body .vuecal__event .event-footer{flex-flow:row wrap;justify-content:center;alight-items:center;padding-top:15px;border-top:1px solid rgba(33,33,33,.08)}.calendar-wrapper[data-v-0b9e41ad] .vuecal__body .vuecal__event .event-footer .event-footer-button{box-shadow:none!important;margin-bottom:8px;padding:9px!important;min-height:-moz-fit-content;min-height:fit-content;height:-moz-fit-content;height:fit-content;min-width:-moz-fit-content;min-width:fit-content;width:-moz-fit-content;width:fit-content}.calendar-wrapper[data-v-0b9e41ad] .vuecal__body .vuecal__event .event-footer .event-footer-button.completed{background:#06dece}.calendar-wrapper[data-v-0b9e41ad] .vuecal__body .vuecal__event .event-footer .event-footer-button img{width:18px}.w-loadable[data-v-79b7207e]{text-align:center;padding-top:20px;height:calc(100% - 121px)}@media(max-width:1312px){.w-loadable[data-v-79b7207e]{height:calc(100% - 202px)}} \ No newline at end of file diff --git a/app/dist/css/index.1d798712.css b/app/dist/css/index.1d798712.css new file mode 100644 index 0000000..eea9bf1 --- /dev/null +++ b/app/dist/css/index.1d798712.css @@ -0,0 +1 @@ +@import url(https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap);.close-icon[data-v-d2c490ee]:hover{background:red;color:#fff!important}.upload-btn[data-v-29172155]{color:#6200ee;border-radius:4px;border:1px solid #e5e5e5}.hidden-input[data-v-29172155]{opacity:0;overflow:hidden;position:absolute;width:1px;height:1px}.gif-loader[data-v-29172155]{height:30px}.completed{background:#06dece}.width-100[data-v-c9f868dc]{width:100%}.gif-loader[data-v-439e5395]{height:30px;margin-left:30px}.w-full[data-v-68445d77]{width:100%}.date-wrap[data-v-68445d77]{display:flex;flex-flow:row;width:100%;gap:20px;margin-bottom:20px}.date-wrap .dp__main[data-v-68445d77]{width:calc(50% - 10px)!important}.scrolling[data-v-68445d77]{overflow:hidden!important}.border-bottom[data-v-68445d77]{border-bottom:1px solid rgba(0,0,0,.1)}.done-btn[data-v-68445d77]{background:#7f39fb!important;border-radius:4px!important;color:#fff!important;height:50px;width:203px}.remove-employee[data-v-68445d77]{position:relative;width:100%}.remove-employee svg[data-v-68445d77]{position:absolute;right:205px;top:28px;z-index:5;opacity:.5}.remove-employee.hide-arrow[data-v-68445d77] .mdi-menu-down,.remove-employee.hide-arrow[data-v-68445d77] .mdi-menu-up{display:none}.employee-wrapper[data-v-68445d77]{position:relative;width:100%}.employee-wrapper svg[data-v-68445d77]{position:absolute;right:4px;top:28px;z-index:5;opacity:.5}.employee-wrapper.hide-arrow[data-v-68445d77] .mdi-menu-down,.employee-wrapper.hide-arrow[data-v-68445d77] .mdi-menu-up{display:none}@media screen and (max-width:522px){.files[data-v-68445d77]{margin-top:104px!important}}tbody[data-v-6a5e57ec],v-table[data-v-6a5e57ec]{border-top:thin solid rgba(var(--v-border-color),var(--v-border-opacity));border-bottom:thin solid rgba(var(--v-border-color),var(--v-border-opacity))}td[data-v-6a5e57ec]:not(:last-child){border-right:thin solid rgba(var(--v-border-color),var(--v-border-opacity))}.line-clamp[data-v-6a5e57ec]{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}.date-wrap[data-v-5d776569]{display:flex;flex-flow:row;width:100%;gap:20px}.date-wrap .dp__main[data-v-5d776569]{width:calc(50% - 10px)!important}.employee-select-avatar[data-v-5d776569]{background:#6200ee;color:#fff;border-radius:50%;padding:13px;font-size:11.5px;height:24px;width:24px;position:absolute;top:50%;right:0;transform:translate(-120%,-50%)}.remove-input[data-v-5d776569]{position:absolute;top:50%;transform:translate(120%,-50%);cursor:pointer}.scrolling[data-v-5d776569]{overflow:hidden!important}.border-bottom[data-v-5d776569]{border-bottom:1px solid rgba(0,0,0,.1)}.subtask-btn[data-v-5d776569]{border:thin solid rgba(var(--v-border-color),var(--v-border-opacity))!important;color:#7f39fb!important;height:53px;text-align:center}.vuecal__weekdays-headings{border-bottom:1px solid #ddd;margin-bottom:-1px}.vuecal--view-with-time .vuecal__weekdays-headings,.vuecal--week-numbers .vuecal__weekdays-headings{padding-left:3em}.vuecal--view-with-time.vuecal--twelve-hour .vuecal__weekdays-headings{font-size:.9em;padding-left:4em}.vuecal--overflow-x.vuecal--view-with-time .vuecal__weekdays-headings{padding-left:0}.vuecal__heading{width:100%;height:2.8em;font-weight:400;justify-content:center;text-align:center;align-items:center;position:relative;overflow:hidden}.vuecal__heading>.vuecal__flex{width:100%;height:100%;align-items:normal!important}.vuecal--sticky-split-labels .vuecal__heading{height:3.4em}.vuecal--day-view .vuecal__heading,.vuecal--month-view .vuecal__heading,.vuecal--week-view .vuecal__heading{width:14.2857%}.vuecal--hide-weekends.vuecal--day-view .vuecal__heading,.vuecal--hide-weekends.vuecal--month-view .vuecal__heading,.vuecal--hide-weekends.vuecal--week-view .vuecal__heading,.vuecal--years-view .vuecal__heading{width:20%}.vuecal--year-view .vuecal__heading{width:33.33%}.vuecal__heading .weekday-label{flex-shrink:0;display:flex;justify-content:center;align-items:center}.vuecal--small .vuecal__heading .small,.vuecal--xsmall .vuecal__heading .xsmall{display:block}.vuecal--small .vuecal__heading .full,.vuecal--small .vuecal__heading .xsmall,.vuecal--xsmall .vuecal__heading .full,.vuecal--xsmall .vuecal__heading .small,.vuecal__heading .small,.vuecal__heading .xsmall{display:none}.vuecal .vuecal__split-days-headers{align-items:center}@media screen and (max-width:550px){.vuecal__heading{line-height:1.2}.vuecal--small .vuecal__heading .small,.vuecal--xsmall .vuecal__heading .xsmall,.vuecal__heading .small{display:block}.vuecal--small .vuecal__heading .full,.vuecal--small .vuecal__heading .xsmall,.vuecal--xsmall .vuecal__heading .full,.vuecal--xsmall .vuecal__heading .small,.vuecal__heading .full,.vuecal__heading .xsmall{display:none}.vuecal--overflow-x .vuecal__heading .full,.vuecal--small.vuecal--overflow-x .vuecal__heading .small,.vuecal--xsmall.vuecal--overflow-x .vuecal__heading .xsmall{display:block}.vuecal--overflow-x .vuecal__heading .small,.vuecal--overflow-x .vuecal__heading .xsmall,.vuecal--small.vuecal--overflow-x .vuecal__heading .full,.vuecal--small.vuecal--overflow-x .vuecal__heading .xsmall,.vuecal--xsmall.vuecal--overflow-x .vuecal__heading .full,.vuecal--xsmall.vuecal--overflow-x .vuecal__heading .small{display:none}}@media screen and (max-width:450px){.vuecal--small .vuecal__heading .xsmall,.vuecal--xsmall .vuecal__heading .xsmall,.vuecal__heading .xsmall{display:block}.vuecal--small .vuecal__heading .full,.vuecal--small .vuecal__heading .small,.vuecal--xsmall .vuecal__heading .full,.vuecal--xsmall .vuecal__heading .small,.vuecal__heading .full,.vuecal__heading .small{display:none}.vuecal--small.vuecal--overflow-x .vuecal__heading .small,.vuecal--xsmall.vuecal--overflow-x .vuecal__heading .xsmall{display:block}.vuecal--small.vuecal--overflow-x .vuecal__heading .full,.vuecal--small.vuecal--overflow-x .vuecal__heading .xsmall,.vuecal--xsmall.vuecal--overflow-x .vuecal__heading .full,.vuecal--xsmall.vuecal--overflow-x .vuecal__heading .small{display:none}}.vuecal__header button{outline:none;font-family:inherit}.vuecal__menu{padding:0;margin:0;list-style-type:none;justify-content:center;background-color:rgba(0,0,0,.02)}.vuecal__view-btn{background:none;border:none;padding:.3em 1em;height:2.2em;font-size:1.3em;border-bottom:0 solid currentColor;cursor:pointer;color:inherit;box-sizing:border-box;transition:.2s}.vuecal__view-btn--active{border-bottom-width:2px;background:hsla(0,0%,100%,.15)}.vuecal__title-bar{background-color:rgba(0,0,0,.1);display:flex;align-items:center;text-align:center;justify-content:space-between;font-size:1.4em;line-height:1.3;min-height:2em}.vuecal--xsmall .vuecal__title-bar{font-size:1.3em}.vuecal__title{position:relative;justify-content:center}.vuecal__title button{cursor:pointer;background:none;border:none}.vuecal__title button.slide-fade--left-leave-active,.vuecal__title button.slide-fade--right-leave-active{width:100%}.vuecal__today-btn{position:relative;align-items:center;display:flex;font-size:.8em;background:none;border:none}.vuecal__today-btn span.default{font-size:.8em;padding:3px 6px;text-transform:uppercase;cursor:pointer}.vuecal__arrow{cursor:pointer;position:relative;z-index:1;background:none;border:none;white-space:nowrap}.vuecal__arrow--prev{margin-left:.6em}.vuecal__arrow--next{margin-right:.6em}.vuecal__arrow i.angle{display:inline-block;border:solid currentColor;border-width:0 2px 2px 0;padding:.25em;transform:rotate(-45deg)}.vuecal__arrow--prev i.angle{border-width:2px 0 0 2px}.vuecal__arrow--highlighted,.vuecal__today-btn--highlighted,.vuecal__view-btn--highlighted{position:relative;background-color:rgba(0,0,0,.04)}.vuecal__arrow--highlighted *,.vuecal__today-btn--highlighted *,.vuecal__view-btn--highlighted *{pointer-events:none}.vuecal__arrow--highlighted:after,.vuecal__arrow--highlighted:before,.vuecal__today-btn--highlighted:after,.vuecal__today-btn--highlighted:before,.vuecal__view-btn--highlighted:after,.vuecal__view-btn--highlighted:before{content:"";background-color:inherit;animation:sonar .8s ease-out infinite;position:absolute;top:50%;left:50%;pointer-events:none}.vuecal__arrow--highlighted:before,.vuecal__today-btn--highlighted:before,.vuecal__view-btn--highlighted:before{width:3em;height:3em;border-radius:3em;margin-top:-1.5em;margin-left:-1.5em}.vuecal__arrow--highlighted:after,.vuecal__today-btn--highlighted:after,.vuecal__view-btn--highlighted:after{animation-duration:1.5s;animation-delay:.1s;width:2.6em;height:2.6em;border-radius:2.6em;margin-top:-1.3em;margin-left:-1.3em}@keyframes sonar{0%,20%{opacity:1}to{transform:scale(2.5);opacity:0}}@media screen and (max-width:450px){.vuecal__title{font-size:.9em}.vuecal__view-btn{padding-left:.6em;padding-right:.6em}}@media screen and (max-width:350px){.vuecal__view-btn{font-size:1.1em}}.vuecal__event{color:#666;background-color:hsla(0,0%,97%,.8);position:relative;box-sizing:border-box;left:0;width:100%;z-index:1;transition:box-shadow .3s,left .3s,width .3s;overflow:hidden}.vuecal--no-time .vuecal__event{min-height:8px}.vuecal:not(.vuecal--dragging-event) .vuecal__event:hover{z-index:2}.vuecal__cell .vuecal__event *{-webkit-user-select:text;-moz-user-select:text;user-select:text}.vuecal--view-with-time .vuecal__event:not(.vuecal__event--all-day){position:absolute}.vuecal--view-with-time .vuecal__bg .vuecal__event--all-day{position:absolute;top:0;bottom:0;z-index:0;opacity:.6;width:auto;right:0}.vuecal--view-with-time .vuecal__all-day .vuecal__event--all-day{position:relative;left:0}.vuecal__event--background{z-index:0}.vuecal__event--focus,.vuecal__event:focus{box-shadow:1px 1px 6px rgba(0,0,0,.2);z-index:3;outline:none}.vuecal__event.vuecal__event--dragging{opacity:.7}.vuecal__event.vuecal__event--static{opacity:0;transition:opacity .1s}@-moz-document url-prefix(){.vuecal__event.vuecal__event--dragging{opacity:1}}.vuecal__event-resize-handle{position:absolute;bottom:0;left:0;right:0;height:1em;background-color:hsla(0,0%,100%,.3);opacity:0;transform:translateY(110%);transition:.3s;cursor:ns-resize}.vuecal__event--focus .vuecal__event-resize-handle,.vuecal__event--resizing .vuecal__event-resize-handle,.vuecal__event:focus .vuecal__event-resize-handle,.vuecal__event:hover .vuecal__event-resize-handle{opacity:1;transform:translateY(0)}.vuecal__event--dragging .vuecal__event-resize-handle{display:none}.vuecal__event-delete{position:absolute;top:0;left:0;right:0;display:flex;flex-direction:column;align-items:center;justify-content:center;height:1.4em;line-height:1.4em;background-color:rgba(221,51,51,.85);color:#fff;z-index:0;cursor:pointer;transform:translateY(-110%);transition:.3s}.vuecal__event .vuecal__event-delete{-webkit-user-select:none;-moz-user-select:none;user-select:none}.vuecal--full-height-delete .vuecal__event-delete{height:auto;bottom:0}.vuecal--full-height-delete .vuecal__event-delete:before{content:"";width:1.7em;height:1.8em;display:block;background-image:url('data:image/svg+xml;utf8,')}.vuecal__event--deletable .vuecal__event-delete{transform:translateY(0);z-index:1}.vuecal__event--deletable.vuecal__event--dragging .vuecal__event-delete{opacity:0;transition:none}.vuecal--month-view .vuecal__event-title{font-size:.85em}.vuecal--short-events .vuecal__event-title{text-align:left;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding:0 3px}.vuecal__event-content,.vuecal__event-title{-webkit-hyphens:auto;hyphens:auto}.vuecal__event-title--edit{border-bottom:1px solid transparent;text-align:center;transition:.3s;color:inherit;background-image:url('data:image/svg+xml;utf8,');background-repeat:no-repeat;background-position:120% .15em;background-size:.4em;outline:none;width:100%}.vuecal__event-title--edit:focus,.vuecal__event-title--edit:hover{border-color:rgba(0,0,0,.4);background-position:99% .15em;background-size:1.2em}.vuecal__cell{position:relative;width:100%;display:flex;justify-content:center;align-items:center;text-align:center;transition:background-color .15s ease-in-out}.vuecal__cells.month-view .vuecal__cell,.vuecal__cells.week-view .vuecal__cell{width:14.2857%}.vuecal--hide-weekends .vuecal__cells.month-view .vuecal__cell,.vuecal--hide-weekends .vuecal__cells.week-view .vuecal__cell,.vuecal__cells.years-view .vuecal__cell{width:20%}.vuecal__cells.year-view .vuecal__cell{width:33.33%}.vuecal__cells.day-view .vuecal__cell{flex:1}.vuecal--overflow-x.vuecal--day-view .vuecal__cell{width:auto}.vuecal--click-to-navigate .vuecal__cell:not(.vuecal__cell--disabled){cursor:pointer}.vuecal--day-view.vuecal--no-time .vuecal__cell:not(.vuecal__cell--has-splits),.vuecal--view-with-time .vuecal__cell,.vuecal--week-view.vuecal--no-time .vuecal__cell:not(.vuecal__cell--has-splits){display:block}.vuecal__cell.vuecal__cell--has-splits{flex-direction:row;display:flex}.vuecal__cell:before{content:"";position:absolute;z-index:0;top:0;left:0;right:-1px;bottom:-1px;border:1px solid hsla(0,0%,77%,.25)}.vuecal--overflow-x.vuecal--day-view .vuecal__cell:before{bottom:0}.vuecal__cell--current,.vuecal__cell--today{background-color:rgba(240,240,255,.4);z-index:1}.vuecal__cell--selected{background-color:rgba(235,255,245,.4);z-index:2}.vuecal--day-view .vuecal__cell--selected{background:none}.vuecal__cell--out-of-scope{color:rgba(0,0,0,.25)}.vuecal__cell--disabled{color:rgba(0,0,0,.25);cursor:not-allowed}.vuecal__cell--highlighted:not(.vuecal__cell--has-splits),.vuecal__cell-split.vuecal__cell-split--highlighted{background-color:rgba(0,0,0,.04);transition-duration:5ms}.vuecal__cell-content{position:relative;width:100%;height:100%;outline:none}.vuecal--month-view .vuecal__cell-content,.vuecal--year-view .vuecal__cell-content,.vuecal--years-view .vuecal__cell-content{justify-content:center}.vuecal__cell .cell-time-labels{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;flex-direction:column}.vuecal__cell .cell-time-label{flex-grow:1;font-size:.8em;opacity:.3;line-height:1.7}.vuecal__cell-split{display:flex;flex-grow:1;flex-direction:column;height:100%;position:relative;transition:background-color .15s ease-in-out}.vuecal__cell-events{width:100%}.vuecal__cell-events-count{position:absolute;left:50%;top:65%;transform:translateX(-50%);min-width:12px;height:12px;line-height:12px;padding:0 3px;background:#999;color:#fff;border-radius:12px;font-size:10px;box-sizing:border-box}.vuecal__cell .vuecal__special-hours{position:absolute;left:0;right:0;box-sizing:border-box}.vuecal--overflow-x.vuecal--week-view .vuecal__cell,.vuecal__cell-split{overflow:hidden}.vuecal__no-event{padding-top:1em;color:#aaa;justify-self:flex-start;margin-bottom:auto}.vuecal__all-day .vuecal__no-event{display:none}.vuecal__now-line{position:absolute;left:0;width:100%;height:0;color:red;border-top:1px solid currentColor;opacity:.6;z-index:1}.vuecal__now-line:before{content:"";position:absolute;top:-6px;left:0;border:5px solid transparent;border-left-color:currentColor}.vuecal{height:100%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.08)}.vuecal *,.vuecal--has-touch :not(.vuecal__event-title--edit){-webkit-user-select:none;-moz-user-select:none;user-select:none}.vuecal--has-touch :not(.vuecal__event-title--edit){-webkit-touch-callout:none}.vuecal .clickable{cursor:pointer}.vuecal--drag-creating-event,.vuecal--resizing-event{cursor:ns-resize}.vuecal--dragging-event{cursor:move;cursor:grabbing}.vuecal .dragging-helper{position:absolute;width:60px;height:40px;background:rgba(138,190,230,.8);border:1px solid #61a9e0;z-index:10}.vuecal--xsmall{font-size:.9em}.vuecal__flex{display:flex;flex-direction:row}.vuecal__flex[column]{flex-direction:column;flex:1 1 auto}.vuecal__flex[grow]{flex:1 1 auto;width:100%}.vuecal__flex[wrap]{flex-wrap:wrap}.vuecal__split-days-headers.slide-fade--right-leave-active{display:none}.vuecal--week-numbers.vuecal--month-view .vuecal__split-days-headers{margin-left:3em}.vuecal--day-view:not(.vuecal--overflow-x) .vuecal__split-days-headers{margin-left:3em;height:2.2em}.vuecal--day-view.vuecal--twelve-hour:not(.vuecal--overflow-x) .vuecal__split-days-headers{margin-left:4em}.vuecal__split-days-headers .day-split-header{display:flex;flex-grow:1;flex-basis:0;justify-content:center;align-items:center;height:100%}.vuecal__split-days-headers .vuecal--day-view.vuecal--overflow-x.vuecal--sticky-split-labels .day-split-header{height:1.5em}.vuecal__body{position:relative;overflow:hidden}.vuecal__all-day{min-height:1.7em;margin-bottom:-1px;flex-shrink:0}.vuecal__all-day-text{width:3em;box-sizing:border-box;color:#999;padding-right:2px;display:flex;flex-shrink:0;align-items:center;justify-content:flex-end;border-bottom:1px solid #ddd;-webkit-hyphens:auto;hyphens:auto}.vuecal__all-day-text span{font-size:.85em;text-align:right;line-height:1.1}.vuecal--twelve-hour .vuecal__all-day>span{width:4em}.vuecal__bg{overflow:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;min-height:60px;position:relative;width:100%}.vuecal--no-time .vuecal__bg{display:flex;flex:1 1 auto;overflow:auto}.vuecal__week-numbers{width:3em;flex-shrink:0!important}.vuecal__week-numbers .vuecal__week-number-cell{opacity:.4;font-size:.9em;align-items:center;justify-items:center;justify-content:center}.vuecal__scrollbar-check{position:absolute;top:0;left:0;right:0;bottom:0;overflow:scroll;visibility:hidden;z-index:-1}.vuecal__scrollbar-check div{height:120%}.vuecal__time-column{width:3em;height:100%;flex-shrink:0}.vuecal--twelve-hour .vuecal__time-column{width:4em;font-size:.9em}.vuecal--overflow-x.vuecal--week-view .vuecal__time-column{margin-top:4em;box-shadow:0 1px 1px rgba(0,0,0,.3)}.vuecal--overflow-x.vuecal--week-view.vuecal--sticky-split-labels .vuecal__time-column{margin-top:3.4em}.vuecal--overflow-x.vuecal--day-view.vuecal--sticky-split-labels .vuecal__time-column{margin-top:1.5em}.vuecal__time-column .vuecal__time-cell{color:#999;text-align:right;padding-right:2px;font-size:.9em}.vuecal__time-column .vuecal__time-cell-line:before{content:"";position:absolute;left:0;right:0;border-top:1px solid hsla(0,0%,77%,.3)}.vuecal__cells{margin:0 1px 1px 0}.vuecal--overflow-x.vuecal--day-view .vuecal__cells{margin:0}.vuecal--events-on-month-view.vuecal--short-events .vuecal__cells{width:99.9%}.vuecal--overflow-x.vuecal--day-view .vuecal__cells,.vuecal--overflow-x.vuecal--week-view .vuecal__cells{flex-wrap:nowrap;overflow:auto}.slide-fade--left-enter-active,.slide-fade--left-leave-active,.slide-fade--right-enter-active,.slide-fade--right-leave-active{transition:.25s ease-out}.slide-fade--left-enter-from,.slide-fade--right-leave-to{transform:translateX(-15px);opacity:0}.slide-fade--left-leave-to,.slide-fade--right-enter-from{transform:translateX(15px);opacity:0}.slide-fade--left-leave-active,.slide-fade--right-leave-active{position:absolute!important;height:100%}.vuecal__title-bar .slide-fade--left-leave-active,.vuecal__title-bar .slide-fade--right-leave-active{left:0;right:0;height:auto}.vuecal__heading .slide-fade--left-leave-active,.vuecal__heading .slide-fade--right-leave-active{display:flex;align-items:center}.vuecal--green-theme .vuecal__cell-events-count,.vuecal--green-theme .vuecal__menu{background-color:#42b983;color:#fff}.vuecal--green-theme .vuecal__title-bar{background-color:#e4f5ef}.vuecal--green-theme .vuecal__cell--current,.vuecal--green-theme .vuecal__cell--today{background-color:rgba(240,240,255,.4)}.vuecal--green-theme:not(.vuecal--day-view) .vuecal__cell--selected{background-color:rgba(235,255,245,.4)}.vuecal--green-theme .vuecal__cell--selected:before{border-color:rgba(66,185,131,.5)}.vuecal--green-theme .vuecal__cell--highlighted:not(.vuecal__cell--has-splits),.vuecal--green-theme .vuecal__cell-split--highlighted{background-color:rgba(195,255,225,.5)}.vuecal--green-theme .vuecal__arrow--highlighted,.vuecal--green-theme .vuecal__today-btn--highlighted,.vuecal--green-theme .vuecal__view-btn--highlighted{background-color:rgba(136,236,191,.25)}.vuecal--blue-theme .vuecal__cell-events-count,.vuecal--blue-theme .vuecal__menu{background-color:rgba(66,163,185,.8);color:#fff}.vuecal--blue-theme .vuecal__title-bar{background-color:rgba(0,165,188,.3)}.vuecal--blue-theme .vuecal__cell--current,.vuecal--blue-theme .vuecal__cell--today{background-color:rgba(240,240,255,.4)}.vuecal--blue-theme:not(.vuecal--day-view) .vuecal__cell--selected{background-color:rgba(235,253,255,.4)}.vuecal--blue-theme .vuecal__cell--selected:before{border-color:rgba(115,191,204,.5)}.vuecal--blue-theme .vuecal__cell--highlighted:not(.vuecal__cell--has-splits),.vuecal--blue-theme .vuecal__cell-split--highlighted{background-color:rgba(0,165,188,.06)}.vuecal--blue-theme .vuecal__arrow--highlighted,.vuecal--blue-theme .vuecal__today-btn--highlighted,.vuecal--blue-theme .vuecal__view-btn--highlighted{background-color:rgba(66,163,185,.2)}.vuecal--rounded-theme .vuecal__weekdays-headings{border:none}.vuecal--rounded-theme .vuecal__cell,.vuecal--rounded-theme .vuecal__cell:before{background:none;border:none}.vuecal--rounded-theme .vuecal__cell--out-of-scope{opacity:.4}.vuecal--rounded-theme .vuecal__cell-content{width:30px;height:30px;flex-grow:0;border:1px solid transparent;border-radius:30px;color:#333}.vuecal--rounded-theme.vuecal--day-view .vuecal__cell-content{width:auto;background:none}.vuecal--rounded-theme.vuecal--year-view .vuecal__cell{width:33.33%}.vuecal--rounded-theme.vuecal--year-view .vuecal__cell-content{width:85px}.vuecal--rounded-theme.vuecal--years-view .vuecal__cell-content{width:52px}.vuecal--rounded-theme .vuecal__cell{background-color:transparent!important}.vuecal--rounded-theme.vuecal--green-theme:not(.vuecal--day-view) .vuecal__cell-content{background-color:#f1faf7}.vuecal--rounded-theme.vuecal--green-theme:not(.vuecal--day-view) .vuecal__cell--today .vuecal__cell-content{background-color:#42b983;color:#fff}.vuecal--rounded-theme.vuecal--green-theme .vuecal--day-view .vuecal__cell--today:before{background-color:rgba(66,185,131,.05)}.vuecal--rounded-theme.vuecal--green-theme:not(.vuecal--day-view) .vuecal__cell--selected .vuecal__cell-content{border-color:#42b983}.vuecal--rounded-theme.vuecal--green-theme .vuecal__cell--highlighted:not(.vuecal__cell--has-splits),.vuecal--rounded-theme.vuecal--green-theme .vuecal__cell-split--highlighted{background-color:rgba(195,255,225,.5)}.vuecal--rounded-theme.vuecal--blue-theme:not(.vuecal--day-view) .vuecal__cell-content{background-color:rgba(100,182,255,.2)}.vuecal--rounded-theme.vuecal--blue-theme:not(.vuecal--day-view) .vuecal__cell--today .vuecal__cell-content{background-color:#8fb7e4;color:#fff}.vuecal--rounded-theme.vuecal--blue-theme .vuecal--day-view .vuecal__cell--today:before{background-color:rgba(143,183,228,.1)}.vuecal--rounded-theme.vuecal--blue-theme:not(.vuecal--day-view) .vuecal__cell--selected .vuecal__cell-content{border-color:#61a9e0}.vuecal--rounded-theme.vuecal--blue-theme .vuecal__cell--highlighted:not(.vuecal__cell--has-splits),.vuecal--rounded-theme.vuecal--blue-theme .vuecal__cell-split--highlighted{background-color:rgba(0,165,188,.06)}.vuecal--date-picker .vuecal__title-bar{font-size:1.2em}.vuecal--date-picker .vuecal__heading{height:2.2em;font-weight:500;opacity:.4}.vuecal--date-picker .vuecal__weekdays-headings{border:none}.vuecal--date-picker .vuecal__body{margin-left:1px}.vuecal--date-picker .vuecal__cell,.vuecal--date-picker .vuecal__cell:before{background:none;border:none}.vuecal--date-picker .vuecal__cell-content{height:26px;flex-grow:0;border:1px solid transparent;border-radius:25px;transition:background-color .2s cubic-bezier(.39,.58,.57,1)}.vuecal--date-picker.vuecal--years-view .vuecal__cell-content{flex:0;padding:0 4px;height:24px}.vuecal--date-picker.vuecal--year-view .vuecal__cell-content{flex:0;padding:0 15px}.vuecal--date-picker.vuecal--month-view .vuecal__cell-content{width:26px}.vuecal--date-picker:not(.vuecal--day-view) .vuecal__cell-content:hover{background-color:rgba(0,0,0,.1)}.vuecal--date-picker:not(.vuecal--day-view) .vuecal__cell--selected .vuecal__cell-content{background-color:#42b982;color:#fff}.vuecal--date-picker:not(.vuecal--day-view) .vuecal__cell--current .vuecal__cell-content,.vuecal--date-picker:not(.vuecal--day-view) .vuecal__cell--today .vuecal__cell-content{border-color:#42b982}*{margin:0;padding:0}html{scroll-behavior:smooth}#app{overflow-x:hidden}.w-app{font:15px Avenir,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:#fff!important;color:#2c3e50;margin-top:8em;padding-top:12em}.page-container{width:100%;max-width:1200px;margin-left:auto;margin-right:auto}a{text-decoration:none;color:#42b983}a[name]{position:relative;top:-4em;display:block}.scrollable{height:250px;overflow-y:scroll;padding-right:1.8em}.footer{font-size:.9em;font-style:italic;margin:3em 0 3.5em}.footer .w-icon{font-size:1.2em}.footer .w-icon.heart{transition:1s ease-out;cursor:pointer}.footer .w-icon.heart:hover{animation:pulse 1.8s ease-out infinite}@keyframes pulse{0%,20%,30%,35%,45%,to{transform:scale(1)}25%,40%{transform:scale(1.3)}}@media screen and (max-width:1240px){:root{--container-padding:20px}.page-container{padding-left:var(--container-padding);padding-right:var(--container-padding)}}@media screen and (max-width:524px){:root{--container-padding:12px}}.v-dialog h1{font-size:26px;font-weight:500}.dp__input{height:56px;border:1px solid #e5e5e5!important}.dp__active_date,.dp__range_end,.dp__range_start{background:#7f39fb!important}.dp__select{color:#7f39fb!important}.dp__today{border:1px solid #7f39fb!important}.dp__range_between{background:#f4e8ff!important}.dp__action{font-weight:500!important}.task-action .trash-icon{margin-left:12px}.task-action .pencil-icon,.task-action .trash-icon{padding:10px;background:rgba(0,0,0,.04);border-radius:50%;cursor:pointer;max-height:32px;max-width:32px}.status-badge{background:#f2e7fe;color:#7f39fb;width:-moz-fit-content;width:fit-content}.hover{cursor:pointer!important}.task-badge{background:rgba(0,0,0,.04);width:-moz-fit-content;width:fit-content;padding:5px 20px;min-width:50px}.description-detail{background:rgba(0,0,0,.04);color:rgba(0,0,0,.6);height:-moz-fit-content;height:fit-content}.employee-selected-avatar{background:#6200ee;color:#fff;border-radius:50%;padding:13px;font-size:11.5px;height:24px;width:24px}.circle-border{border:1px solid rgba(0,0,0,.2);border-radius:50%;padding:13px;height:24px;width:24px}.is-finished{background:#06dece!important}.strike-through{text-decoration:line-through}.add-date{color:#fff;border-radius:50%;background:#6200ee;padding:13px;height:24px;width:24px}th{font-size:16px!important}.task-action{width:50%}.v-card{padding:35px!important}.cursor-pointer:hover{cursor:pointer}.hover-background:hover{background-color:rgba(0,0,0,var(--v-hover-opacity))}.v-input__control{border-radius:4px}.border-select .v-input__control{border:1px solid #e5e5e5!important}input[type=time]::-webkit-calendar-picker-indicator{display:none;border:1px solid #e5e5e5!important}.rich-text-editor .ql-tooltip{left:0!important}.v-toast,.v-toast__item{z-index:10000!important}.vld-overlay .vld-background{opacity:1}.v-row.subheader .v-input{height:40px!important}@media(max-width:534px){.mobile-view{flex-direction:column;gap:20px}}.auth-card{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);border:1px solid rgba(0,0,0,.1);border-radius:16px;padding:30px;width:100%;max-width:486px;margin:auto}.auth-card img{position:absolute;right:60px;bottom:188px;cursor:pointer}.auth-card .button{color:#fff!important}.auth-card .v-field{border-bottom:1px solid transparent}@media screen and (max-width:904px){.auth-card{position:relative;padding:0;border:none;top:0;left:0;transform:translate(0)}.auth-card h1{font-size:19px}.auth-card p{font-size:15px}.auth-card .v-icon{position:absolute!important;right:15px}}.v-field--variant-solo{box-shadow:none!important;border:1px solid rgba(0,0,0,.1)!important}.v-input__append{margin:0!important}.v-input__append .v-icon{position:absolute!important;right:45px}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none}.error-message{position:absolute;top:50%;left:30px;color:red;opacity:.8}.v-select .v-field--variant-solo{border:none!important}.rich-text-editor{border:1px solid rgba(0,0,0,.1)}.error .dp__input,.v-input.error .v-input__control{border:1px solid red!important}.error .ql-container.ql-snow,.error .ql-toolbar.ql-snow{border-color:red!important}.v-messages__message{color:red!important}:root{--color-primary:#7f39fb;--color-primary-contrast:#fff;--color-primary-shade:#5716c6}.button{height:50px!important;min-width:203px;border-radius:4px!important;border-width:1px}.button.half{width:50%}.button.block{width:100%}.button.primary{background-color:var(--color-primary);border-color:var(--color-primary);color:var(--color-primary-contrast)}.button.primary:active,.button.primary:hover{background-color:var(--color-primary-shade);border-color:var(--color-primary-shade);color:var(--color-primary-contrast)}.button.primary.outline{background-color:var(--color-primary-contrast);border-color:var(--color-primary);color:var(--color-primary)}.button.primary.outline:active,.button.primary.outline:hover{background-color:var(--color-primary-shade);border-color:var(--color-primary-shade);color:var(--color-primary-contrast)}.button.cancel{height:50px;width:100%;border:thin solid rgba(var(--v-border-color),var(--v-border-opacity))!important;color:#7f39fb!important}.modal-header{flex:0 0 auto}.modal-header .icon{padding:10px;background:rgba(0,0,0,.04);border-radius:50%}.modal-header .icon:hover{cursor:pointer}.modal-header .icon.trash{margin-left:12px}.modal-input{width:100%!important;flex:0 0 auto}.modal-content{flex:1 1 100%;margin:10px 0;overflow-y:scroll}.remove-input{pointer-events:auto;opacity:1;position:absolute;left:92%;top:25%}.relative{position:relative!important}.splitted-inputs{width:100%;display:flex;justify-content:space-between}.splitted-inputs .left{width:70%!important}.splitted-inputs .right{width:25%!important}*{font-family:Roboto,sans-serif} \ No newline at end of file diff --git a/app/dist/css/index.b31b0772.css b/app/dist/css/index.b31b0772.css deleted file mode 100644 index 4d5cf37..0000000 --- a/app/dist/css/index.b31b0772.css +++ /dev/null @@ -1 +0,0 @@ -@import url(https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap);.upload-btn[data-v-29172155]{color:#6200ee;border-radius:4px;border:1px solid #e5e5e5}.hidden-input[data-v-29172155]{opacity:0;overflow:hidden;position:absolute;width:1px;height:1px}.gif-loader[data-v-29172155]{height:30px}.completed{background:#06dece}.width-100[data-v-c9f868dc]{width:100%}.gif-loader[data-v-439e5395]{height:30px;margin-left:30px}.w-full[data-v-2b134ca3]{width:100%}.date-wrap[data-v-2b134ca3]{display:flex;flex-flow:row;width:100%;gap:20px;margin-bottom:20px}.date-wrap .dp__main[data-v-2b134ca3]{width:calc(50% - 10px)!important}.scrolling[data-v-2b134ca3]{overflow:hidden!important}.border-bottom[data-v-2b134ca3]{border-bottom:1px solid rgba(0,0,0,.1)}.done-btn[data-v-2b134ca3]{background:#7f39fb!important;border-radius:4px!important;color:#fff!important;height:50px;width:203px}.remove-employee[data-v-2b134ca3]{position:relative;width:100%}.remove-employee svg[data-v-2b134ca3]{position:absolute;right:205px;top:28px;z-index:5;opacity:.5}.remove-employee.hide-arrow[data-v-2b134ca3] .mdi-menu-down,.remove-employee.hide-arrow[data-v-2b134ca3] .mdi-menu-up{display:none}.employee-wrapper[data-v-2b134ca3]{position:relative;width:100%}.employee-wrapper svg[data-v-2b134ca3]{position:absolute;right:4px;top:28px;z-index:5;opacity:.5}.employee-wrapper.hide-arrow[data-v-2b134ca3] .mdi-menu-down,.employee-wrapper.hide-arrow[data-v-2b134ca3] .mdi-menu-up{display:none}@media screen and (max-width:522px){.files[data-v-2b134ca3]{margin-top:104px!important}}tbody[data-v-6a5e57ec],v-table[data-v-6a5e57ec]{border-top:thin solid rgba(var(--v-border-color),var(--v-border-opacity));border-bottom:thin solid rgba(var(--v-border-color),var(--v-border-opacity))}td[data-v-6a5e57ec]:not(:last-child){border-right:thin solid rgba(var(--v-border-color),var(--v-border-opacity))}.line-clamp[data-v-6a5e57ec]{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}.date-wrap[data-v-c16440a4]{display:flex;flex-flow:row;width:100%;gap:20px}.date-wrap .dp__main[data-v-c16440a4]{width:calc(50% - 10px)!important}.employee-select-avatar[data-v-c16440a4]{background:#6200ee;color:#fff;border-radius:50%;padding:13px;font-size:11.5px;height:24px;width:24px;position:absolute;top:50%;right:0;transform:translate(-120%,-50%)}.remove-input[data-v-c16440a4]{position:absolute;top:50%;transform:translate(120%,-50%);cursor:pointer}.scrolling[data-v-c16440a4]{overflow:hidden!important}.border-bottom[data-v-c16440a4]{border-bottom:1px solid rgba(0,0,0,.1)}.subtask-btn[data-v-c16440a4]{border:thin solid rgba(var(--v-border-color),var(--v-border-opacity))!important;color:#7f39fb!important;height:53px;text-align:center}.vuecal__weekdays-headings{border-bottom:1px solid #ddd;margin-bottom:-1px}.vuecal--view-with-time .vuecal__weekdays-headings,.vuecal--week-numbers .vuecal__weekdays-headings{padding-left:3em}.vuecal--view-with-time.vuecal--twelve-hour .vuecal__weekdays-headings{font-size:.9em;padding-left:4em}.vuecal--overflow-x.vuecal--view-with-time .vuecal__weekdays-headings{padding-left:0}.vuecal__heading{width:100%;height:2.8em;font-weight:400;justify-content:center;text-align:center;align-items:center;position:relative;overflow:hidden}.vuecal__heading>.vuecal__flex{width:100%;height:100%;align-items:normal!important}.vuecal--sticky-split-labels .vuecal__heading{height:3.4em}.vuecal--day-view .vuecal__heading,.vuecal--month-view .vuecal__heading,.vuecal--week-view .vuecal__heading{width:14.2857%}.vuecal--hide-weekends.vuecal--day-view .vuecal__heading,.vuecal--hide-weekends.vuecal--month-view .vuecal__heading,.vuecal--hide-weekends.vuecal--week-view .vuecal__heading,.vuecal--years-view .vuecal__heading{width:20%}.vuecal--year-view .vuecal__heading{width:33.33%}.vuecal__heading .weekday-label{flex-shrink:0;display:flex;justify-content:center;align-items:center}.vuecal--small .vuecal__heading .small,.vuecal--xsmall .vuecal__heading .xsmall{display:block}.vuecal--small .vuecal__heading .full,.vuecal--small .vuecal__heading .xsmall,.vuecal--xsmall .vuecal__heading .full,.vuecal--xsmall .vuecal__heading .small,.vuecal__heading .small,.vuecal__heading .xsmall{display:none}.vuecal .vuecal__split-days-headers{align-items:center}@media screen and (max-width:550px){.vuecal__heading{line-height:1.2}.vuecal--small .vuecal__heading .small,.vuecal--xsmall .vuecal__heading .xsmall,.vuecal__heading .small{display:block}.vuecal--small .vuecal__heading .full,.vuecal--small .vuecal__heading .xsmall,.vuecal--xsmall .vuecal__heading .full,.vuecal--xsmall .vuecal__heading .small,.vuecal__heading .full,.vuecal__heading .xsmall{display:none}.vuecal--overflow-x .vuecal__heading .full,.vuecal--small.vuecal--overflow-x .vuecal__heading .small,.vuecal--xsmall.vuecal--overflow-x .vuecal__heading .xsmall{display:block}.vuecal--overflow-x .vuecal__heading .small,.vuecal--overflow-x .vuecal__heading .xsmall,.vuecal--small.vuecal--overflow-x .vuecal__heading .full,.vuecal--small.vuecal--overflow-x .vuecal__heading .xsmall,.vuecal--xsmall.vuecal--overflow-x .vuecal__heading .full,.vuecal--xsmall.vuecal--overflow-x .vuecal__heading .small{display:none}}@media screen and (max-width:450px){.vuecal--small .vuecal__heading .xsmall,.vuecal--xsmall .vuecal__heading .xsmall,.vuecal__heading .xsmall{display:block}.vuecal--small .vuecal__heading .full,.vuecal--small .vuecal__heading .small,.vuecal--xsmall .vuecal__heading .full,.vuecal--xsmall .vuecal__heading .small,.vuecal__heading .full,.vuecal__heading .small{display:none}.vuecal--small.vuecal--overflow-x .vuecal__heading .small,.vuecal--xsmall.vuecal--overflow-x .vuecal__heading .xsmall{display:block}.vuecal--small.vuecal--overflow-x .vuecal__heading .full,.vuecal--small.vuecal--overflow-x .vuecal__heading .xsmall,.vuecal--xsmall.vuecal--overflow-x .vuecal__heading .full,.vuecal--xsmall.vuecal--overflow-x .vuecal__heading .small{display:none}}.vuecal__header button{outline:none;font-family:inherit}.vuecal__menu{padding:0;margin:0;list-style-type:none;justify-content:center;background-color:rgba(0,0,0,.02)}.vuecal__view-btn{background:none;border:none;padding:.3em 1em;height:2.2em;font-size:1.3em;border-bottom:0 solid currentColor;cursor:pointer;color:inherit;box-sizing:border-box;transition:.2s}.vuecal__view-btn--active{border-bottom-width:2px;background:hsla(0,0%,100%,.15)}.vuecal__title-bar{background-color:rgba(0,0,0,.1);display:flex;align-items:center;text-align:center;justify-content:space-between;font-size:1.4em;line-height:1.3;min-height:2em}.vuecal--xsmall .vuecal__title-bar{font-size:1.3em}.vuecal__title{position:relative;justify-content:center}.vuecal__title button{cursor:pointer;background:none;border:none}.vuecal__title button.slide-fade--left-leave-active,.vuecal__title button.slide-fade--right-leave-active{width:100%}.vuecal__today-btn{position:relative;align-items:center;display:flex;font-size:.8em;background:none;border:none}.vuecal__today-btn span.default{font-size:.8em;padding:3px 6px;text-transform:uppercase;cursor:pointer}.vuecal__arrow{cursor:pointer;position:relative;z-index:1;background:none;border:none;white-space:nowrap}.vuecal__arrow--prev{margin-left:.6em}.vuecal__arrow--next{margin-right:.6em}.vuecal__arrow i.angle{display:inline-block;border:solid currentColor;border-width:0 2px 2px 0;padding:.25em;transform:rotate(-45deg)}.vuecal__arrow--prev i.angle{border-width:2px 0 0 2px}.vuecal__arrow--highlighted,.vuecal__today-btn--highlighted,.vuecal__view-btn--highlighted{position:relative;background-color:rgba(0,0,0,.04)}.vuecal__arrow--highlighted *,.vuecal__today-btn--highlighted *,.vuecal__view-btn--highlighted *{pointer-events:none}.vuecal__arrow--highlighted:after,.vuecal__arrow--highlighted:before,.vuecal__today-btn--highlighted:after,.vuecal__today-btn--highlighted:before,.vuecal__view-btn--highlighted:after,.vuecal__view-btn--highlighted:before{content:"";background-color:inherit;animation:sonar .8s ease-out infinite;position:absolute;top:50%;left:50%;pointer-events:none}.vuecal__arrow--highlighted:before,.vuecal__today-btn--highlighted:before,.vuecal__view-btn--highlighted:before{width:3em;height:3em;border-radius:3em;margin-top:-1.5em;margin-left:-1.5em}.vuecal__arrow--highlighted:after,.vuecal__today-btn--highlighted:after,.vuecal__view-btn--highlighted:after{animation-duration:1.5s;animation-delay:.1s;width:2.6em;height:2.6em;border-radius:2.6em;margin-top:-1.3em;margin-left:-1.3em}@keyframes sonar{0%,20%{opacity:1}to{transform:scale(2.5);opacity:0}}@media screen and (max-width:450px){.vuecal__title{font-size:.9em}.vuecal__view-btn{padding-left:.6em;padding-right:.6em}}@media screen and (max-width:350px){.vuecal__view-btn{font-size:1.1em}}.vuecal__event{color:#666;background-color:hsla(0,0%,97%,.8);position:relative;box-sizing:border-box;left:0;width:100%;z-index:1;transition:box-shadow .3s,left .3s,width .3s;overflow:hidden}.vuecal--no-time .vuecal__event{min-height:8px}.vuecal:not(.vuecal--dragging-event) .vuecal__event:hover{z-index:2}.vuecal__cell .vuecal__event *{-webkit-user-select:text;-moz-user-select:text;user-select:text}.vuecal--view-with-time .vuecal__event:not(.vuecal__event--all-day){position:absolute}.vuecal--view-with-time .vuecal__bg .vuecal__event--all-day{position:absolute;top:0;bottom:0;z-index:0;opacity:.6;width:auto;right:0}.vuecal--view-with-time .vuecal__all-day .vuecal__event--all-day{position:relative;left:0}.vuecal__event--background{z-index:0}.vuecal__event--focus,.vuecal__event:focus{box-shadow:1px 1px 6px rgba(0,0,0,.2);z-index:3;outline:none}.vuecal__event.vuecal__event--dragging{opacity:.7}.vuecal__event.vuecal__event--static{opacity:0;transition:opacity .1s}@-moz-document url-prefix(){.vuecal__event.vuecal__event--dragging{opacity:1}}.vuecal__event-resize-handle{position:absolute;bottom:0;left:0;right:0;height:1em;background-color:hsla(0,0%,100%,.3);opacity:0;transform:translateY(110%);transition:.3s;cursor:ns-resize}.vuecal__event--focus .vuecal__event-resize-handle,.vuecal__event--resizing .vuecal__event-resize-handle,.vuecal__event:focus .vuecal__event-resize-handle,.vuecal__event:hover .vuecal__event-resize-handle{opacity:1;transform:translateY(0)}.vuecal__event--dragging .vuecal__event-resize-handle{display:none}.vuecal__event-delete{position:absolute;top:0;left:0;right:0;display:flex;flex-direction:column;align-items:center;justify-content:center;height:1.4em;line-height:1.4em;background-color:rgba(221,51,51,.85);color:#fff;z-index:0;cursor:pointer;transform:translateY(-110%);transition:.3s}.vuecal__event .vuecal__event-delete{-webkit-user-select:none;-moz-user-select:none;user-select:none}.vuecal--full-height-delete .vuecal__event-delete{height:auto;bottom:0}.vuecal--full-height-delete .vuecal__event-delete:before{content:"";width:1.7em;height:1.8em;display:block;background-image:url('data:image/svg+xml;utf8,')}.vuecal__event--deletable .vuecal__event-delete{transform:translateY(0);z-index:1}.vuecal__event--deletable.vuecal__event--dragging .vuecal__event-delete{opacity:0;transition:none}.vuecal--month-view .vuecal__event-title{font-size:.85em}.vuecal--short-events .vuecal__event-title{text-align:left;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding:0 3px}.vuecal__event-content,.vuecal__event-title{-webkit-hyphens:auto;hyphens:auto}.vuecal__event-title--edit{border-bottom:1px solid transparent;text-align:center;transition:.3s;color:inherit;background-image:url('data:image/svg+xml;utf8,');background-repeat:no-repeat;background-position:120% .15em;background-size:.4em;outline:none;width:100%}.vuecal__event-title--edit:focus,.vuecal__event-title--edit:hover{border-color:rgba(0,0,0,.4);background-position:99% .15em;background-size:1.2em}.vuecal__cell{position:relative;width:100%;display:flex;justify-content:center;align-items:center;text-align:center;transition:background-color .15s ease-in-out}.vuecal__cells.month-view .vuecal__cell,.vuecal__cells.week-view .vuecal__cell{width:14.2857%}.vuecal--hide-weekends .vuecal__cells.month-view .vuecal__cell,.vuecal--hide-weekends .vuecal__cells.week-view .vuecal__cell,.vuecal__cells.years-view .vuecal__cell{width:20%}.vuecal__cells.year-view .vuecal__cell{width:33.33%}.vuecal__cells.day-view .vuecal__cell{flex:1}.vuecal--overflow-x.vuecal--day-view .vuecal__cell{width:auto}.vuecal--click-to-navigate .vuecal__cell:not(.vuecal__cell--disabled){cursor:pointer}.vuecal--day-view.vuecal--no-time .vuecal__cell:not(.vuecal__cell--has-splits),.vuecal--view-with-time .vuecal__cell,.vuecal--week-view.vuecal--no-time .vuecal__cell:not(.vuecal__cell--has-splits){display:block}.vuecal__cell.vuecal__cell--has-splits{flex-direction:row;display:flex}.vuecal__cell:before{content:"";position:absolute;z-index:0;top:0;left:0;right:-1px;bottom:-1px;border:1px solid hsla(0,0%,77%,.25)}.vuecal--overflow-x.vuecal--day-view .vuecal__cell:before{bottom:0}.vuecal__cell--current,.vuecal__cell--today{background-color:rgba(240,240,255,.4);z-index:1}.vuecal__cell--selected{background-color:rgba(235,255,245,.4);z-index:2}.vuecal--day-view .vuecal__cell--selected{background:none}.vuecal__cell--out-of-scope{color:rgba(0,0,0,.25)}.vuecal__cell--disabled{color:rgba(0,0,0,.25);cursor:not-allowed}.vuecal__cell--highlighted:not(.vuecal__cell--has-splits),.vuecal__cell-split.vuecal__cell-split--highlighted{background-color:rgba(0,0,0,.04);transition-duration:5ms}.vuecal__cell-content{position:relative;width:100%;height:100%;outline:none}.vuecal--month-view .vuecal__cell-content,.vuecal--year-view .vuecal__cell-content,.vuecal--years-view .vuecal__cell-content{justify-content:center}.vuecal__cell .cell-time-labels{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;flex-direction:column}.vuecal__cell .cell-time-label{flex-grow:1;font-size:.8em;opacity:.3;line-height:1.7}.vuecal__cell-split{display:flex;flex-grow:1;flex-direction:column;height:100%;position:relative;transition:background-color .15s ease-in-out}.vuecal__cell-events{width:100%}.vuecal__cell-events-count{position:absolute;left:50%;top:65%;transform:translateX(-50%);min-width:12px;height:12px;line-height:12px;padding:0 3px;background:#999;color:#fff;border-radius:12px;font-size:10px;box-sizing:border-box}.vuecal__cell .vuecal__special-hours{position:absolute;left:0;right:0;box-sizing:border-box}.vuecal--overflow-x.vuecal--week-view .vuecal__cell,.vuecal__cell-split{overflow:hidden}.vuecal__no-event{padding-top:1em;color:#aaa;justify-self:flex-start;margin-bottom:auto}.vuecal__all-day .vuecal__no-event{display:none}.vuecal__now-line{position:absolute;left:0;width:100%;height:0;color:red;border-top:1px solid currentColor;opacity:.6;z-index:1}.vuecal__now-line:before{content:"";position:absolute;top:-6px;left:0;border:5px solid transparent;border-left-color:currentColor}.vuecal{height:100%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.08)}.vuecal *,.vuecal--has-touch :not(.vuecal__event-title--edit){-webkit-user-select:none;-moz-user-select:none;user-select:none}.vuecal--has-touch :not(.vuecal__event-title--edit){-webkit-touch-callout:none}.vuecal .clickable{cursor:pointer}.vuecal--drag-creating-event,.vuecal--resizing-event{cursor:ns-resize}.vuecal--dragging-event{cursor:move;cursor:grabbing}.vuecal .dragging-helper{position:absolute;width:60px;height:40px;background:rgba(138,190,230,.8);border:1px solid #61a9e0;z-index:10}.vuecal--xsmall{font-size:.9em}.vuecal__flex{display:flex;flex-direction:row}.vuecal__flex[column]{flex-direction:column;flex:1 1 auto}.vuecal__flex[grow]{flex:1 1 auto;width:100%}.vuecal__flex[wrap]{flex-wrap:wrap}.vuecal__split-days-headers.slide-fade--right-leave-active{display:none}.vuecal--week-numbers.vuecal--month-view .vuecal__split-days-headers{margin-left:3em}.vuecal--day-view:not(.vuecal--overflow-x) .vuecal__split-days-headers{margin-left:3em;height:2.2em}.vuecal--day-view.vuecal--twelve-hour:not(.vuecal--overflow-x) .vuecal__split-days-headers{margin-left:4em}.vuecal__split-days-headers .day-split-header{display:flex;flex-grow:1;flex-basis:0;justify-content:center;align-items:center;height:100%}.vuecal__split-days-headers .vuecal--day-view.vuecal--overflow-x.vuecal--sticky-split-labels .day-split-header{height:1.5em}.vuecal__body{position:relative;overflow:hidden}.vuecal__all-day{min-height:1.7em;margin-bottom:-1px;flex-shrink:0}.vuecal__all-day-text{width:3em;box-sizing:border-box;color:#999;padding-right:2px;display:flex;flex-shrink:0;align-items:center;justify-content:flex-end;border-bottom:1px solid #ddd;-webkit-hyphens:auto;hyphens:auto}.vuecal__all-day-text span{font-size:.85em;text-align:right;line-height:1.1}.vuecal--twelve-hour .vuecal__all-day>span{width:4em}.vuecal__bg{overflow:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;min-height:60px;position:relative;width:100%}.vuecal--no-time .vuecal__bg{display:flex;flex:1 1 auto;overflow:auto}.vuecal__week-numbers{width:3em;flex-shrink:0!important}.vuecal__week-numbers .vuecal__week-number-cell{opacity:.4;font-size:.9em;align-items:center;justify-items:center;justify-content:center}.vuecal__scrollbar-check{position:absolute;top:0;left:0;right:0;bottom:0;overflow:scroll;visibility:hidden;z-index:-1}.vuecal__scrollbar-check div{height:120%}.vuecal__time-column{width:3em;height:100%;flex-shrink:0}.vuecal--twelve-hour .vuecal__time-column{width:4em;font-size:.9em}.vuecal--overflow-x.vuecal--week-view .vuecal__time-column{margin-top:4em;box-shadow:0 1px 1px rgba(0,0,0,.3)}.vuecal--overflow-x.vuecal--week-view.vuecal--sticky-split-labels .vuecal__time-column{margin-top:3.4em}.vuecal--overflow-x.vuecal--day-view.vuecal--sticky-split-labels .vuecal__time-column{margin-top:1.5em}.vuecal__time-column .vuecal__time-cell{color:#999;text-align:right;padding-right:2px;font-size:.9em}.vuecal__time-column .vuecal__time-cell-line:before{content:"";position:absolute;left:0;right:0;border-top:1px solid hsla(0,0%,77%,.3)}.vuecal__cells{margin:0 1px 1px 0}.vuecal--overflow-x.vuecal--day-view .vuecal__cells{margin:0}.vuecal--events-on-month-view.vuecal--short-events .vuecal__cells{width:99.9%}.vuecal--overflow-x.vuecal--day-view .vuecal__cells,.vuecal--overflow-x.vuecal--week-view .vuecal__cells{flex-wrap:nowrap;overflow:auto}.slide-fade--left-enter-active,.slide-fade--left-leave-active,.slide-fade--right-enter-active,.slide-fade--right-leave-active{transition:.25s ease-out}.slide-fade--left-enter-from,.slide-fade--right-leave-to{transform:translateX(-15px);opacity:0}.slide-fade--left-leave-to,.slide-fade--right-enter-from{transform:translateX(15px);opacity:0}.slide-fade--left-leave-active,.slide-fade--right-leave-active{position:absolute!important;height:100%}.vuecal__title-bar .slide-fade--left-leave-active,.vuecal__title-bar .slide-fade--right-leave-active{left:0;right:0;height:auto}.vuecal__heading .slide-fade--left-leave-active,.vuecal__heading .slide-fade--right-leave-active{display:flex;align-items:center}.vuecal--green-theme .vuecal__cell-events-count,.vuecal--green-theme .vuecal__menu{background-color:#42b983;color:#fff}.vuecal--green-theme .vuecal__title-bar{background-color:#e4f5ef}.vuecal--green-theme .vuecal__cell--current,.vuecal--green-theme .vuecal__cell--today{background-color:rgba(240,240,255,.4)}.vuecal--green-theme:not(.vuecal--day-view) .vuecal__cell--selected{background-color:rgba(235,255,245,.4)}.vuecal--green-theme .vuecal__cell--selected:before{border-color:rgba(66,185,131,.5)}.vuecal--green-theme .vuecal__cell--highlighted:not(.vuecal__cell--has-splits),.vuecal--green-theme .vuecal__cell-split--highlighted{background-color:rgba(195,255,225,.5)}.vuecal--green-theme .vuecal__arrow--highlighted,.vuecal--green-theme .vuecal__today-btn--highlighted,.vuecal--green-theme .vuecal__view-btn--highlighted{background-color:rgba(136,236,191,.25)}.vuecal--blue-theme .vuecal__cell-events-count,.vuecal--blue-theme .vuecal__menu{background-color:rgba(66,163,185,.8);color:#fff}.vuecal--blue-theme .vuecal__title-bar{background-color:rgba(0,165,188,.3)}.vuecal--blue-theme .vuecal__cell--current,.vuecal--blue-theme .vuecal__cell--today{background-color:rgba(240,240,255,.4)}.vuecal--blue-theme:not(.vuecal--day-view) .vuecal__cell--selected{background-color:rgba(235,253,255,.4)}.vuecal--blue-theme .vuecal__cell--selected:before{border-color:rgba(115,191,204,.5)}.vuecal--blue-theme .vuecal__cell--highlighted:not(.vuecal__cell--has-splits),.vuecal--blue-theme .vuecal__cell-split--highlighted{background-color:rgba(0,165,188,.06)}.vuecal--blue-theme .vuecal__arrow--highlighted,.vuecal--blue-theme .vuecal__today-btn--highlighted,.vuecal--blue-theme .vuecal__view-btn--highlighted{background-color:rgba(66,163,185,.2)}.vuecal--rounded-theme .vuecal__weekdays-headings{border:none}.vuecal--rounded-theme .vuecal__cell,.vuecal--rounded-theme .vuecal__cell:before{background:none;border:none}.vuecal--rounded-theme .vuecal__cell--out-of-scope{opacity:.4}.vuecal--rounded-theme .vuecal__cell-content{width:30px;height:30px;flex-grow:0;border:1px solid transparent;border-radius:30px;color:#333}.vuecal--rounded-theme.vuecal--day-view .vuecal__cell-content{width:auto;background:none}.vuecal--rounded-theme.vuecal--year-view .vuecal__cell{width:33.33%}.vuecal--rounded-theme.vuecal--year-view .vuecal__cell-content{width:85px}.vuecal--rounded-theme.vuecal--years-view .vuecal__cell-content{width:52px}.vuecal--rounded-theme .vuecal__cell{background-color:transparent!important}.vuecal--rounded-theme.vuecal--green-theme:not(.vuecal--day-view) .vuecal__cell-content{background-color:#f1faf7}.vuecal--rounded-theme.vuecal--green-theme:not(.vuecal--day-view) .vuecal__cell--today .vuecal__cell-content{background-color:#42b983;color:#fff}.vuecal--rounded-theme.vuecal--green-theme .vuecal--day-view .vuecal__cell--today:before{background-color:rgba(66,185,131,.05)}.vuecal--rounded-theme.vuecal--green-theme:not(.vuecal--day-view) .vuecal__cell--selected .vuecal__cell-content{border-color:#42b983}.vuecal--rounded-theme.vuecal--green-theme .vuecal__cell--highlighted:not(.vuecal__cell--has-splits),.vuecal--rounded-theme.vuecal--green-theme .vuecal__cell-split--highlighted{background-color:rgba(195,255,225,.5)}.vuecal--rounded-theme.vuecal--blue-theme:not(.vuecal--day-view) .vuecal__cell-content{background-color:rgba(100,182,255,.2)}.vuecal--rounded-theme.vuecal--blue-theme:not(.vuecal--day-view) .vuecal__cell--today .vuecal__cell-content{background-color:#8fb7e4;color:#fff}.vuecal--rounded-theme.vuecal--blue-theme .vuecal--day-view .vuecal__cell--today:before{background-color:rgba(143,183,228,.1)}.vuecal--rounded-theme.vuecal--blue-theme:not(.vuecal--day-view) .vuecal__cell--selected .vuecal__cell-content{border-color:#61a9e0}.vuecal--rounded-theme.vuecal--blue-theme .vuecal__cell--highlighted:not(.vuecal__cell--has-splits),.vuecal--rounded-theme.vuecal--blue-theme .vuecal__cell-split--highlighted{background-color:rgba(0,165,188,.06)}.vuecal--date-picker .vuecal__title-bar{font-size:1.2em}.vuecal--date-picker .vuecal__heading{height:2.2em;font-weight:500;opacity:.4}.vuecal--date-picker .vuecal__weekdays-headings{border:none}.vuecal--date-picker .vuecal__body{margin-left:1px}.vuecal--date-picker .vuecal__cell,.vuecal--date-picker .vuecal__cell:before{background:none;border:none}.vuecal--date-picker .vuecal__cell-content{height:26px;flex-grow:0;border:1px solid transparent;border-radius:25px;transition:background-color .2s cubic-bezier(.39,.58,.57,1)}.vuecal--date-picker.vuecal--years-view .vuecal__cell-content{flex:0;padding:0 4px;height:24px}.vuecal--date-picker.vuecal--year-view .vuecal__cell-content{flex:0;padding:0 15px}.vuecal--date-picker.vuecal--month-view .vuecal__cell-content{width:26px}.vuecal--date-picker:not(.vuecal--day-view) .vuecal__cell-content:hover{background-color:rgba(0,0,0,.1)}.vuecal--date-picker:not(.vuecal--day-view) .vuecal__cell--selected .vuecal__cell-content{background-color:#42b982;color:#fff}.vuecal--date-picker:not(.vuecal--day-view) .vuecal__cell--current .vuecal__cell-content,.vuecal--date-picker:not(.vuecal--day-view) .vuecal__cell--today .vuecal__cell-content{border-color:#42b982}*{margin:0;padding:0}html{scroll-behavior:smooth}#app{overflow-x:hidden}.w-app{font:15px Avenir,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:#fff!important;color:#2c3e50;margin-top:8em;padding-top:12em}.page-container{width:100%;max-width:1200px;margin-left:auto;margin-right:auto}a{text-decoration:none;color:#42b983}a[name]{position:relative;top:-4em;display:block}.scrollable{height:250px;overflow-y:scroll;padding-right:1.8em}.footer{font-size:.9em;font-style:italic;margin:3em 0 3.5em}.footer .w-icon{font-size:1.2em}.footer .w-icon.heart{transition:1s ease-out;cursor:pointer}.footer .w-icon.heart:hover{animation:pulse 1.8s ease-out infinite}@keyframes pulse{0%,20%,30%,35%,45%,to{transform:scale(1)}25%,40%{transform:scale(1.3)}}@media screen and (max-width:1240px){:root{--container-padding:20px}.page-container{padding-left:var(--container-padding);padding-right:var(--container-padding)}}@media screen and (max-width:524px){:root{--container-padding:12px}}.v-dialog h1{font-size:26px;font-weight:500}.dp__input{height:56px;border:1px solid #e5e5e5!important}.dp__active_date,.dp__range_end,.dp__range_start{background:#7f39fb!important}.dp__select{color:#7f39fb!important}.dp__today{border:1px solid #7f39fb!important}.dp__range_between{background:#f4e8ff!important}.dp__action{font-weight:500!important}.task-action .trash-icon{margin-left:12px}.task-action .pencil-icon,.task-action .trash-icon{padding:10px;background:rgba(0,0,0,.04);border-radius:50%;cursor:pointer;max-height:32px;max-width:32px}.status-badge{background:#f2e7fe;color:#7f39fb;width:-moz-fit-content;width:fit-content}.hover{cursor:pointer!important}.task-badge{background:rgba(0,0,0,.04);width:-moz-fit-content;width:fit-content;padding:5px 20px;min-width:50px}.description-detail{background:rgba(0,0,0,.04);color:rgba(0,0,0,.6);height:-moz-fit-content;height:fit-content}.employee-selected-avatar{background:#6200ee;color:#fff;border-radius:50%;padding:13px;font-size:11.5px;height:24px;width:24px}.circle-border{border:1px solid rgba(0,0,0,.2);border-radius:50%;padding:13px;height:24px;width:24px}.is-finished{background:#06dece!important}.strike-through{text-decoration:line-through}.add-date{color:#fff;border-radius:50%;background:#6200ee;padding:13px;height:24px;width:24px}th{font-size:16px!important}.task-action{width:50%}.v-card{padding:35px!important}.cursor-pointer:hover{cursor:pointer}.hover-background:hover{background-color:rgba(0,0,0,var(--v-hover-opacity))}.v-input__control{border-radius:4px}.border-select .v-input__control{border:1px solid #e5e5e5!important}input[type=time]::-webkit-calendar-picker-indicator{display:none;border:1px solid #e5e5e5!important}.rich-text-editor .ql-tooltip{left:0!important}.v-toast,.v-toast__item{z-index:10000!important}.vld-overlay .vld-background{opacity:1}.v-row.subheader .v-input{height:40px!important}@media(max-width:534px){.mobile-view{flex-direction:column;gap:20px}}.auth-card{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);border:1px solid rgba(0,0,0,.1);border-radius:16px;padding:30px;width:100%;max-width:486px;margin:auto}.auth-card img{position:absolute;right:60px;bottom:188px;cursor:pointer}.auth-card .button{color:#fff!important}.auth-card .v-field{border-bottom:1px solid transparent}@media screen and (max-width:904px){.auth-card{position:relative;padding:0;border:none;top:0;left:0;transform:translate(0)}.auth-card h1{font-size:19px}.auth-card p{font-size:15px}.auth-card .v-icon{position:absolute!important;right:15px}}.v-field--variant-solo{box-shadow:none!important;border:1px solid rgba(0,0,0,.1)!important}.v-input__append{margin:0!important}.v-input__append .v-icon{position:absolute!important;right:45px}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none}.error-message{position:absolute;top:50%;left:30px;color:red;opacity:.8}.v-select .v-field--variant-solo{border:none!important}.rich-text-editor{border:1px solid rgba(0,0,0,.1)}.error .dp__input,.v-input.error .v-input__control{border:1px solid red!important}.error .ql-container.ql-snow,.error .ql-toolbar.ql-snow{border-color:red!important}.v-messages__message{color:red!important}:root{--color-primary:#7f39fb;--color-primary-contrast:#fff;--color-primary-shade:#5716c6}.button{height:50px!important;min-width:203px;border-radius:4px!important;border-width:1px}.button.half{width:50%}.button.block{width:100%}.button.primary{background-color:var(--color-primary);border-color:var(--color-primary);color:var(--color-primary-contrast)}.button.primary:active,.button.primary:hover{background-color:var(--color-primary-shade);border-color:var(--color-primary-shade);color:var(--color-primary-contrast)}.button.primary.outline{background-color:var(--color-primary-contrast);border-color:var(--color-primary);color:var(--color-primary)}.button.primary.outline:active,.button.primary.outline:hover{background-color:var(--color-primary-shade);border-color:var(--color-primary-shade);color:var(--color-primary-contrast)}.button.cancel{height:50px;width:100%;border:thin solid rgba(var(--v-border-color),var(--v-border-opacity))!important;color:#7f39fb!important}.modal-header{flex:0 0 auto}.modal-header .icon{padding:10px;background:rgba(0,0,0,.04);border-radius:50%}.modal-header .icon:hover{cursor:pointer}.modal-header .icon.trash{margin-left:12px}.modal-input{width:100%!important;flex:0 0 auto}.modal-content{flex:1 1 100%;margin:10px 0;overflow-y:scroll}.remove-input{pointer-events:auto;opacity:1;position:absolute;left:92%;top:25%}.relative{position:relative!important}.splitted-inputs{width:100%;display:flex;justify-content:space-between}.splitted-inputs .left{width:70%!important}.splitted-inputs .right{width:25%!important}*{font-family:Roboto,sans-serif} \ No newline at end of file diff --git a/app/dist/index.html b/app/dist/index.html index 69cd111..85341d1 100644 --- a/app/dist/index.html +++ b/app/dist/index.html @@ -1 +1 @@ -ToDo by JANDL
\ No newline at end of file +ToDo by JANDL
\ No newline at end of file diff --git a/app/dist/js/7283.9b796e25.js b/app/dist/js/5475.03838edb.js similarity index 97% rename from app/dist/js/7283.9b796e25.js rename to app/dist/js/5475.03838edb.js index 87bf964..7dbd6fa 100644 --- a/app/dist/js/7283.9b796e25.js +++ b/app/dist/js/5475.03838edb.js @@ -1,2 +1,2 @@ -"use strict";(self["webpackChunkjandl"]=self["webpackChunkjandl"]||[]).push([[7283],{93212:function(e,t,s){s.r(t),s.d(t,{default:function(){return S}});var i=s(73396);const l={ref:"page"};function a(e,t,s,a,n,r){const o=(0,i.up)("A-task-filter"),d=(0,i.up)("Z-timeline");return(0,i.wg)(),(0,i.iD)("div",l,[e.$store.getters["tm/isInitialized"]?((0,i.wg)(),(0,i.j4)(o,{key:0,"split-days":r.timelineData?r.splitDays:null,onFilterChanged:r.onFilterChanged,ref:"filter"},null,8,["split-days","onFilterChanged"])):(0,i.kq)("",!0),r.timelineData?((0,i.wg)(),(0,i.j4)(d,{key:1,calData:r.timelineData,calConfig:n.config,splits:r.splitDays},null,8,["calData","calConfig","splits"])):(0,i.kq)("",!0)],512)}s(57658);var n=s(60988),r=s(67312),o=s(16824),d=s(45869);const u={class:"d-flex date-wrapper"},h=["src"],m=["src"];function c(e,t,l,a,c,f){return(0,i.wg)(),(0,i.j4)(o.o,{class:"px-7 py-5 subheader"},{default:(0,i.w5)((()=>[(0,i.Wm)(n.f,{"custom-filter":e.customFilter,"match-any":!0,modelValue:c.selectedEmployee,"onUpdate:modelValue":t[0]||(t[0]=e=>c.selectedEmployee=e),class:"subheader-input",items:e.enrichedEmployees,"menu-props":{maxHeight:500},"item-title":"_fullName","item-value":"id",label:"Zamestnanec",variant:"outlined"},null,8,["custom-filter","modelValue","items"]),(0,i._)("div",u,[(0,i.Wm)(r.T,{class:"subheader-icon-button prev",variant:"outlined",onClick:t[1]||(t[1]=e=>f.prevWeek())},{default:(0,i.w5)((()=>[(0,i._)("img",{src:s(38351),alt:""},null,8,h)])),_:1}),(0,i.Wm)(d.hw,{class:"subheader-input disabled",label:"Dátum",modelValue:c.selectedDate,"onUpdate:modelValue":t[2]||(t[2]=e=>c.selectedDate=e),variant:"outlined","append-inner-icon":"mdi-calendar-blank-outline"},null,8,["modelValue"]),(0,i.Wm)(r.T,{class:"subheader-icon-button next",variant:"outlined",onClick:t[3]||(t[3]=e=>f.nextWeek())},{default:(0,i.w5)((()=>[(0,i._)("img",{src:s(35902),alt:""},null,8,m)])),_:1})]),(0,i.Wm)(d.hw,{class:"subheader-input disabled",label:"Nenaplánované hodiny",variant:"outlined",disabled:!0,modelValue:c.time,"onUpdate:modelValue":t[4]||(t[4]=e=>c.time=e)},null,8,["modelValue"])])),_:1})}var f=s(83299),p=s(20065),k=s(11271),y=s(85174),_={mixins:[f.Z],emits:["filter-changed"],props:{splitDays:{type:[Array,null],default:()=>null}},data(){return{date:new Date,selectedEmployee:null,selectedDate:null,time:null,filter:{start:null,end:null,employee:null}}},computed:{...(0,p.Se)("auth",["user"]),...(0,p.Se)("tm",["enrichedEmployees"])},mounted(){this.selectedEmployee=this.user.id,this.$nextTick((()=>this._updateFilters()))},methods:{prevWeek(){this.date=(0,k.Z)(this.date,7),this._updateFilters()},nextWeek(){this.date=(0,y.Z)(this.date,7),this._updateFilters()},_updateFilters(){this.filter.start=(0,k.Z)(this.date,1),this.filter.end=(0,y.Z)(this.date,5),this.selectedDate=String(this.filter.start?.toLocaleDateString("sk-SK")+" - "+this.filter.end?.toLocaleDateString("sk-SK")),this._emitFilterChanged()},_emitFilterChanged(){this.filter.start&&this.filter.end&&this.filter.employee&&this.$emit("filter-changed",this.filter)}},watch:{selectedEmployee(e){this.filter.employee=this.enrichedEmployees.find((t=>t.id==e)),this._emitFilterChanged()},splitDays(){this.time=this.splitDays.map((e=>parseFloat(e.unscheduledTime))).reduce(((e,t)=>e+t),0)}}},g=s(40089);const b=(0,g.Z)(_,[["render",c],["__scopeId","data-v-0f275556"]]);var D=b,v=s(10353),w=s(36797),Z=s.n(w),C=s(2750),F=s(70026),$={mixins:[F.Z],components:{ATaskFilter:D,ZTimeline:v.Z},data(){return{filter:null,subtasks:null,config:{date:(0,k.Z)(new Date,1),scrollHour:7}}},computed:{...(0,p.Se)("auth",["user"]),splitDays(){const e=[],t={},s={},i=Z()(),l=60*(this.user.work_end-this.user.work_start);this.timelineData.tasks.forEach((e=>{"non-working-hours"==e.type||e.subtask?.is_finished||e.blocker?.is_finished||(s[e.split]||(s[e.split]=0),i.isAfter(Z()(e._real_end))||(i.isAfter(Z()(e._real_start))&&i.isBefore(Z()(e._real_end))?s[e.split]+=C.Z._getDifferenceInMinutes(e._real_end,new Date):s[e.split]+=C.Z._getDifferenceInMinutes(e._real_end,e._real_start)))})),s[1]=0,this.timelineData.homeoffices.forEach((e=>{t[e.split-1]=!0}));for(let a=0;a<7;a++){let n;s[a+1]||(s[a+1]=0);const r=Z()((0,y.Z)(this.filter.start,a));if(r.isBefore(Z()(),"days"))n=0;else if(r.isSame(Z()(),"days")){const e=i.diff(i.clone().startOf("day"),"minutes"),t=60*this.user.work_start>e?this.user.work_start:e/60,l=60*(this.user.work_end-t);n=l-s[a+1]/60<0?0:l-s[a+1]}else n=l-s[a+1];isNaN(n)&&(n=l),e.push({id:a+1,fullname:`${this.filter.employee.name} ${this.filter.employee.surname}`,initials:this.filter.employee.name.charAt(0).toUpperCase()+this.filter.employee.surname.charAt(0).toUpperCase(),unscheduledTime:(n/60).toFixed(1),date:(0,y.Z)(this.filter.start,a),isHomeoffice:t[a],isWeekend:C.Z.isWeekend((0,y.Z)(this.filter.start,a))})}return e},unscheduledTime(){return this.subtasks?C.Z.getUnscheduledTime(this.subtasks):0},timelineData(){if(!this.subtasks||!this.filter)return null;const{tasks:e,blockers:t,nonWorkingHours:s,homeoffices:i}=C.Z.generateTimelineTasks(this.subtasks,new Date(this.filter.start),this.filter.employee);return{name:this.filter.employee.name,surname:this.filter.employee.surname,unscheduledTime:this.unscheduledTime,tasks:[...e,...t,...s],homeoffices:i}}},mounted(){this.$events.on("on-subtask-edited",(()=>{this.onFilterChanged(this.filter)})),this.$events.on("on-subtask-deleted",(()=>{this.onFilterChanged(this.filter)})),this.$events.on("on-blocker-edited",(()=>{this.onFilterChanged(this.filter)})),this.$events.on("on-blocker-deleted",(()=>{this.onFilterChanged(this.filter)}))},unmounted(){this.$events.off("on-subtask-edited"),this.$events.off("on-subtask-deleted"),this.$events.off("on-blocker-edited"),this.$events.off("on-blocker-deleted")},methods:{async onFilterChanged(e){this.filter=e;const t={};e.start&&(t.start=Z()(e.start).format("YYYY-MM-DD")),e.end&&(t.end=Z()(e.end).format("YYYY-MM-DD")),e.employee&&(t.employee_id=e.employee.id);const s=new URLSearchParams(t).toString();try{const{subtasks:e,blockers:t}=await this.$axios.get_auth(`v1/subtasks?${s}`);this.config.scrollHour=this.filter?.employee.work_start-1,this.config.date=this.filter.start,this.subtasks=[...e,...t]}catch(i){this.$toast.error("Nepodarilo sa nacitat data!")}this._initScrollListener()}}};const T=(0,g.Z)($,[["render",a],["__scopeId","data-v-48d26fee"]]);var S=T}}]); -//# sourceMappingURL=7283.9b796e25.js.map \ No newline at end of file +"use strict";(self["webpackChunkjandl"]=self["webpackChunkjandl"]||[]).push([[5475],{93212:function(e,t,s){s.r(t),s.d(t,{default:function(){return S}});var i=s(73396);const l={ref:"page"};function a(e,t,s,a,n,r){const o=(0,i.up)("A-task-filter"),d=(0,i.up)("Z-timeline");return(0,i.wg)(),(0,i.iD)("div",l,[e.$store.getters["tm/isInitialized"]?((0,i.wg)(),(0,i.j4)(o,{key:0,"split-days":r.timelineData?r.splitDays:null,onFilterChanged:r.onFilterChanged,ref:"filter"},null,8,["split-days","onFilterChanged"])):(0,i.kq)("",!0),r.timelineData?((0,i.wg)(),(0,i.j4)(d,{key:1,calData:r.timelineData,calConfig:n.config,splits:r.splitDays},null,8,["calData","calConfig","splits"])):(0,i.kq)("",!0)],512)}s(57658);var n=s(60988),r=s(67312),o=s(16824),d=s(45869);const u={class:"d-flex date-wrapper"},h=["src"],m=["src"];function c(e,t,l,a,c,f){return(0,i.wg)(),(0,i.j4)(o.o,{class:"px-7 py-5 subheader"},{default:(0,i.w5)((()=>[(0,i.Wm)(n.f,{"custom-filter":e.customFilter,"match-any":!0,modelValue:c.selectedEmployee,"onUpdate:modelValue":t[0]||(t[0]=e=>c.selectedEmployee=e),class:"subheader-input",items:e.enrichedEmployees,"menu-props":{maxHeight:500},"item-title":"_fullName","item-value":"id",label:"Zamestnanec",variant:"outlined"},null,8,["custom-filter","modelValue","items"]),(0,i._)("div",u,[(0,i.Wm)(r.T,{class:"subheader-icon-button prev",variant:"outlined",onClick:t[1]||(t[1]=e=>f.prevWeek())},{default:(0,i.w5)((()=>[(0,i._)("img",{src:s(38351),alt:""},null,8,h)])),_:1}),(0,i.Wm)(d.hw,{class:"subheader-input disabled",label:"Dátum",modelValue:c.selectedDate,"onUpdate:modelValue":t[2]||(t[2]=e=>c.selectedDate=e),variant:"outlined","append-inner-icon":"mdi-calendar-blank-outline"},null,8,["modelValue"]),(0,i.Wm)(r.T,{class:"subheader-icon-button next",variant:"outlined",onClick:t[3]||(t[3]=e=>f.nextWeek())},{default:(0,i.w5)((()=>[(0,i._)("img",{src:s(35902),alt:""},null,8,m)])),_:1})]),(0,i.Wm)(d.hw,{class:"subheader-input disabled",label:"Nenaplánované hodiny",variant:"outlined",disabled:!0,modelValue:c.time,"onUpdate:modelValue":t[4]||(t[4]=e=>c.time=e)},null,8,["modelValue"])])),_:1})}var f=s(83299),p=s(20065),k=s(11271),y=s(85174),_={mixins:[f.Z],emits:["filter-changed"],props:{splitDays:{type:[Array,null],default:()=>null}},data(){return{date:new Date,selectedEmployee:null,selectedDate:null,time:null,filter:{start:null,end:null,employee:null}}},computed:{...(0,p.Se)("auth",["user"]),...(0,p.Se)("tm",["enrichedEmployees"])},mounted(){this.selectedEmployee=this.user.id,this.$nextTick((()=>this._updateFilters()))},methods:{prevWeek(){this.date=(0,k.Z)(this.date,7),this._updateFilters()},nextWeek(){this.date=(0,y.Z)(this.date,7),this._updateFilters()},_updateFilters(){this.filter.start=(0,k.Z)(this.date,1),this.filter.end=(0,y.Z)(this.date,5),this.selectedDate=String(this.filter.start?.toLocaleDateString("sk-SK")+" - "+this.filter.end?.toLocaleDateString("sk-SK")),this._emitFilterChanged()},_emitFilterChanged(){this.filter.start&&this.filter.end&&this.filter.employee&&this.$emit("filter-changed",this.filter)}},watch:{selectedEmployee(e){this.filter.employee=this.enrichedEmployees.find((t=>t.id==e)),this._emitFilterChanged()},splitDays(){this.time=this.splitDays.map((e=>parseFloat(e.unscheduledTime))).reduce(((e,t)=>e+t),0)}}},g=s(40089);const b=(0,g.Z)(_,[["render",c],["__scopeId","data-v-0f275556"]]);var D=b,v=s(15002),w=s(36797),Z=s.n(w),C=s(2750),F=s(70026),$={mixins:[F.Z],components:{ATaskFilter:D,ZTimeline:v.Z},data(){return{filter:null,subtasks:null,config:{date:(0,k.Z)(new Date,1),scrollHour:7}}},computed:{...(0,p.Se)("auth",["user"]),splitDays(){const e=[],t={},s={},i=Z()(),l=60*(this.user.work_end-this.user.work_start);this.timelineData.tasks.forEach((e=>{"non-working-hours"==e.type||e.subtask?.is_finished||e.blocker?.is_finished||(s[e.split]||(s[e.split]=0),i.isAfter(Z()(e._real_end))||(i.isAfter(Z()(e._real_start))&&i.isBefore(Z()(e._real_end))?s[e.split]+=C.Z._getDifferenceInMinutes(e._real_end,new Date):s[e.split]+=C.Z._getDifferenceInMinutes(e._real_end,e._real_start)))})),s[1]=0,this.timelineData.homeoffices.forEach((e=>{t[e.split-1]=!0}));for(let a=0;a<7;a++){let n;s[a+1]||(s[a+1]=0);const r=Z()((0,y.Z)(this.filter.start,a));if(r.isBefore(Z()(),"days"))n=0;else if(r.isSame(Z()(),"days")){const e=i.diff(i.clone().startOf("day"),"minutes"),t=60*this.user.work_start>e?this.user.work_start:e/60,l=60*(this.user.work_end-t);n=l-s[a+1]/60<0?0:l-s[a+1]}else n=l-s[a+1];isNaN(n)&&(n=l),e.push({id:a+1,fullname:`${this.filter.employee.name} ${this.filter.employee.surname}`,initials:this.filter.employee.name.charAt(0).toUpperCase()+this.filter.employee.surname.charAt(0).toUpperCase(),unscheduledTime:(n/60).toFixed(1),date:(0,y.Z)(this.filter.start,a),isHomeoffice:t[a],isWeekend:C.Z.isWeekend((0,y.Z)(this.filter.start,a))})}return e},unscheduledTime(){return this.subtasks?C.Z.getUnscheduledTime(this.subtasks):0},timelineData(){if(!this.subtasks||!this.filter)return null;const{tasks:e,blockers:t,nonWorkingHours:s,homeoffices:i}=C.Z.generateTimelineTasks(this.subtasks,new Date(this.filter.start),this.filter.employee);return{name:this.filter.employee.name,surname:this.filter.employee.surname,unscheduledTime:this.unscheduledTime,tasks:[...e,...t,...s],homeoffices:i}}},mounted(){this.$events.on("on-subtask-edited",(()=>{this.onFilterChanged(this.filter)})),this.$events.on("on-subtask-deleted",(()=>{this.onFilterChanged(this.filter)})),this.$events.on("on-blocker-edited",(()=>{this.onFilterChanged(this.filter)})),this.$events.on("on-blocker-deleted",(()=>{this.onFilterChanged(this.filter)}))},unmounted(){this.$events.off("on-subtask-edited"),this.$events.off("on-subtask-deleted"),this.$events.off("on-blocker-edited"),this.$events.off("on-blocker-deleted")},methods:{async onFilterChanged(e){this.filter=e;const t={};e.start&&(t.start=Z()(e.start).format("YYYY-MM-DD")),e.end&&(t.end=Z()(e.end).format("YYYY-MM-DD")),e.employee&&(t.employee_id=e.employee.id);const s=new URLSearchParams(t).toString();try{const{subtasks:e,blockers:t}=await this.$axios.get_auth(`v1/subtasks?${s}`);this.config.scrollHour=this.filter?.employee.work_start-1,this.config.date=this.filter.start,this.subtasks=[...e,...t]}catch(i){this.$toast.error("Nepodarilo sa nacitat data!")}this._initScrollListener()}}};const T=(0,g.Z)($,[["render",a],["__scopeId","data-v-48d26fee"]]);var S=T}}]); +//# sourceMappingURL=5475.03838edb.js.map \ No newline at end of file diff --git a/app/dist/js/7283.9b796e25.js.map b/app/dist/js/5475.03838edb.js.map similarity index 99% rename from app/dist/js/7283.9b796e25.js.map rename to app/dist/js/5475.03838edb.js.map index 9e7d9b9..e0f0553 100644 --- a/app/dist/js/7283.9b796e25.js.map +++ b/app/dist/js/5475.03838edb.js.map @@ -1 +1 @@ -{"version":3,"file":"js/7283.9b796e25.js","mappings":"gLACMA,IAAI,Q,qGAATC,EAAAA,EAAAA,IAGM,MAHNC,EAGM,CAFgBC,EAAAA,OAAOC,QAAQ,sBAAD,WAAnCC,EAAAA,EAAAA,IAAwJC,EAAAA,C,MAA9F,aAAYC,EAAAA,aAAeA,EAAAA,UAAY,KAAOC,gBAAgBD,EAAAA,gBAAiBP,IAAI,U,0DAC3HO,EAAAA,eAAY,WAA9BF,EAAAA,EAAAA,IAAkGI,EAAAA,C,MAAjEC,QAASH,EAAAA,aAAeI,UAAWC,EAAAA,OAASC,OAAQN,EAAAA,W,kICEhFO,MAAM,uB,8DAJZT,EAAAA,EAAAA,IAcQU,EAAAA,EAAAA,CAdDD,MAAM,uBAAqB,C,kBACjC,IAEyD,EAFzDE,EAAAA,EAAAA,IAEyDC,EAAAA,EAAAA,CAFxC,gBAAed,EAAAA,aAAe,aAAW,E,WAAeS,EAAAA,iB,qCAAAA,EAAAA,iBAAgB,GAAEE,MAAM,kBA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AQC,GAAG,qBAAqB,KACpC5E,KAAK3C,gBAAgB2C,KAAKP,OAAO,IAGlCO,KAAK2E,QAAQC,GAAG,sBAAsB,KACrC5E,KAAK3C,gBAAgB2C,KAAKP,OAAO,GAEnC,EAEAoF,YACC7E,KAAK2E,QAAQG,IAAI,qBACjB9E,KAAK2E,QAAQG,IAAI,sBACjB9E,KAAK2E,QAAQG,IAAI,qBACjB9E,KAAK2E,QAAQG,IAAI,qBAClB,EAEAzE,QAAS,CACR0E,sBAAsBtF,GACrBO,KAAKP,OAASA,EACd,MAAMuF,EAAiB,CAAC,EAEpBvF,EAAOC,QAASsF,EAAetF,MAAU0C,IAAO3C,EAAOC,OAAOuF,OAAO,eACrExF,EAAOE,MAAOqF,EAAerF,IAASyC,IAAO3C,EAAOE,KAAKsF,OAAO,eAChExF,EAAOG,WAAWoF,EAAeE,YAAezF,EAAOG,SAASM,IAEpE,MAAMiF,EAAkB,IAAIC,gBAAgBJ,GAAgBK,WAE5D,IACC,MAAM,SAAExD,EAAQ,SAAE4C,SAAoBzE,KAAKsF,OAAOC,SAAU,eAAcJ,KAC1EnF,KAAK8B,OAAOC,WAAiB/B,KAAKP,QAAQG,SAAS2C,WAAc,EACjEvC,KAAK8B,OAAO1C,KAAWY,KAAKP,OAAOC,MACnCM,KAAK6B,SAAe,IAAIA,KAAa4C,EAGtC,CAFE,MAAOe,GACRxF,KAAKyF,OAAOD,MAAM,8BACnB,CAEAxF,KAAK0F,qBACN,IG9KF,MAAM,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,GAAQ,CAAC,YAAY,qBAEzF,O","sources":["webpack://jandl/./src/plugins/tm@dashboard/tasks/tasks.vue","webpack://jandl/./src/plugins/tm@dashboard/tasks/_components/a-tasks-filter.vue","webpack://jandl/./src/plugins/tm@dashboard/tasks/_components/a-tasks-filter.vue?1c78","webpack://jandl/./src/plugins/tm@dashboard/tasks/tasks.vue?f083"],"sourcesContent":["\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./a-tasks-filter.vue?vue&type=template&id=0f275556&scoped=true\"\nimport script from \"./a-tasks-filter.vue?vue&type=script&lang=js\"\nexport * from \"./a-tasks-filter.vue?vue&type=script&lang=js\"\n\nimport \"./a-tasks-filter.vue?vue&type=style&index=0&id=0f275556&lang=sass&scoped=true\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-0f275556\"]])\n\nexport default __exports__","import { render } from \"./tasks.vue?vue&type=template&id=48d26fee&scoped=true\"\nimport script from \"./tasks.vue?vue&type=script&lang=js\"\nexport * from \"./tasks.vue?vue&type=script&lang=js\"\n\nimport \"./tasks.vue?vue&type=style&index=0&id=48d26fee&lang=sass&scoped=true\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-48d26fee\"]])\n\nexport default __exports__"],"names":["ref","_createElementBlock","_hoisted_1","_ctx","getters","_createBlock","_component_A_task_filter","$options","onFilterChanged","_component_Z_timeline","calData","calConfig","$data","splits","class","_component_v_row","_createVNode","_component_v_autocomplete","items","maxHeight","label","variant","_createElementVNode","_component_v_btn","onClick","src","require","alt","_component_v_text_field","disabled","mixins","AutocompleteMixin","emits","props","splitDays","type","Array","default","data","date","Date","selectedEmployee","selectedDate","time","filter","start","end","employee","computed","mapGetters","mounted","this","user","id","$nextTick","_updateFilters","methods","prevWeek","subDays","nextWeek","addDays","String","toLocaleDateString","_emitFilterChanged","$emit","watch","enrichedEmployees","find","map","day","parseFloat","unscheduledTime","reduce","acc","val","__exports__","FilterMixin","components","ATaskFilter","ZTimeline","subtasks","config","scrollHour","days","homeoffice","schedulesCapacityBySplit","now","moment","dailyCapacityMinutes","work_end","work_start","timelineData","tasks","forEach","task","subtask","is_finished","blocker","split","isAfter","_real_end","_real_start","isBefore","timelineUtils","homeoffices","i","isSame","elapsedMinutes","diff","clone","startOf","workStart","todayCapacityMinutes","isNaN","push","fullname","name","surname","initials","charAt","toUpperCase","toFixed","isHomeoffice","isWeekend","blockers","nonWorkingHours","$events","on","unmounted","off","async","urlQueryObject","format","employee_id","queryParameters","URLSearchParams","toString","$axios","get_auth","error","$toast","_initScrollListener","render"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"js/5475.03838edb.js","mappings":"gLACMA,IAAI,Q,qGAATC,EAAAA,EAAAA,IAGM,MAHNC,EAGM,CAFgBC,EAAAA,OAAOC,QAAQ,sBAAD,WAAnCC,EAAAA,EAAAA,IAAwJC,EAAAA,C,MAA9F,aAAYC,EAAAA,aAAeA,EAAAA,UAAY,KAAOC,gBAAgBD,EAAAA,gBAAiBP,IAAI,U,0DAC3HO,EAAAA,eAAY,WAA9BF,EAAAA,EAAAA,IAAkGI,EAAAA,C,MAAjEC,QAASH,EAAAA,aAAeI,UAAWC,EAAAA,OAASC,OAAQN,EAAAA,W,kICEhFO,MAAM,uB,8DAJZT,EAAAA,EAAAA,IAcQU,EAAAA,EAAAA,CAdDD,MAAM,uBAAqB,C,kBACjC,IAEyD,EAFzDE,EAAAA,EAAAA,IAEyDC,EAAAA,EAAAA,CAFxC,gBAAed,EAAAA,aAAe,aAAW,E,WAAeS,EAAAA,iB,qCAAAA,EAAAA,iBAAgB,GAAEE,MAAM,kBAC/FI,MAAOf,EAAAA,kBAAoB,aAAY,CAAAgB,UAAAA,KAAoB,aAAW,YAAY,aAAW,KAC9FC,MAAM,cAAcC,QAAQ,Y,gDAC7BC,EAAAA,EAAAA,GAOM,MAPNpB,EAOM,EANLc,EAAAA,EAAAA,IAC0EO,EAAAA,EAAAA,CADnET,MAAM,6BAA6BO,QAAQ,WAAYG,QAAK,eAAEjB,EAAAA,a,mBAAY,IACf,EADee,EAAAA,EAAAA,GACf,OAA/DG,IAAKC,EAAQ,OAA2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rBO,KAAKP,OAASA,EACd,MAAMuF,EAAiB,CAAC,EAEpBvF,EAAOC,QAASsF,EAAetF,MAAU0C,IAAO3C,EAAOC,OAAOuF,OAAO,eACrExF,EAAOE,MAAOqF,EAAerF,IAASyC,IAAO3C,EAAOE,KAAKsF,OAAO,eAChExF,EAAOG,WAAWoF,EAAeE,YAAezF,EAAOG,SAASM,IAEpE,MAAMiF,EAAkB,IAAIC,gBAAgBJ,GAAgBK,WAE5D,IACC,MAAM,SAAExD,EAAQ,SAAE4C,SAAoBzE,KAAKsF,OAAOC,SAAU,eAAcJ,KAC1EnF,KAAK8B,OAAOC,WAAiB/B,KAAKP,QAAQG,SAAS2C,WAAc,EACjEvC,KAAK8B,OAAO1C,KAAWY,KAAKP,OAAOC,MACnCM,KAAK6B,SAAe,IAAIA,KAAa4C,EAGtC,CAFE,MAAOe,GACRxF,KAAKyF,OAAOD,MAAM,8BACnB,CAEAxF,KAAK0F,qBACN,IG9KF,MAAM,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,GAAQ,CAAC,YAAY,qBAEzF,O","sources":["webpack://jandl/./src/plugins/tm@dashboard/tasks/tasks.vue","webpack://jandl/./src/plugins/tm@dashboard/tasks/_components/a-tasks-filter.vue","webpack://jandl/./src/plugins/tm@dashboard/tasks/_components/a-tasks-filter.vue?1c78","webpack://jandl/./src/plugins/tm@dashboard/tasks/tasks.vue?f083"],"sourcesContent":["\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./a-tasks-filter.vue?vue&type=template&id=0f275556&scoped=true\"\nimport script from \"./a-tasks-filter.vue?vue&type=script&lang=js\"\nexport * from \"./a-tasks-filter.vue?vue&type=script&lang=js\"\n\nimport \"./a-tasks-filter.vue?vue&type=style&index=0&id=0f275556&lang=sass&scoped=true\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-0f275556\"]])\n\nexport default __exports__","import { render } from \"./tasks.vue?vue&type=template&id=48d26fee&scoped=true\"\nimport script from \"./tasks.vue?vue&type=script&lang=js\"\nexport * from \"./tasks.vue?vue&type=script&lang=js\"\n\nimport \"./tasks.vue?vue&type=style&index=0&id=48d26fee&lang=sass&scoped=true\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-48d26fee\"]])\n\nexport default __exports__"],"names":["ref","_createElementBlock","_hoisted_1","_ctx","getters","_createBlock","_component_A_task_filter","$options","onFilterChanged","_component_Z_timeline","calData","calConfig","$data","splits","class","_component_v_row","_createVNode","_component_v_autocomplete","items","maxHeight","label","variant","_createElementVNode","_component_v_btn","onClick","src","require","alt","_component_v_text_field","disabled","mixins","AutocompleteMixin","emits","props","splitDays","type","Array","default","data","date","Date","selectedEmployee","selectedDate","time","filter","start","end","employee","computed","mapGetters","mounted","this","user","id","$nextTick","_updateFilters","methods","prevWeek","subDays","nextWeek","addDays","String","toLocaleDateString","_emitFilterChanged","$emit","watch","enrichedEmployees","find","map","day","parseFloat","unscheduledTime","reduce","acc","val","__exports__","FilterMixin","components","ATaskFilter","ZTimeline","subtasks","config","scrollHour","days","homeoffice","schedulesCapacityBySplit","now","moment","dailyCapacityMinutes","work_end","work_start","timelineData","tasks","forEach","task","subtask","is_finished","blocker","split","isAfter","_real_end","_real_start","isBefore","timelineUtils","homeoffices","i","isSame","elapsedMinutes","diff","clone","startOf","workStart","todayCapacityMinutes","isNaN","push","fullname","name","surname","initials","charAt","toUpperCase","toFixed","isHomeoffice","isWeekend","blockers","nonWorkingHours","$events","on","unmounted","off","async","urlQueryObject","format","employee_id","queryParameters","URLSearchParams","toString","$axios","get_auth","error","$toast","_initScrollListener","render"],"sourceRoot":""} \ No newline at end of file diff --git a/app/dist/js/7458.f602cf50.js b/app/dist/js/6811.83d9b8d2.js similarity index 93% rename from app/dist/js/7458.f602cf50.js rename to app/dist/js/6811.83d9b8d2.js index acd8657..70e7753 100644 --- a/app/dist/js/7458.f602cf50.js +++ b/app/dist/js/6811.83d9b8d2.js @@ -1,2 +1,2 @@ -"use strict";(self["webpackChunkjandl"]=self["webpackChunkjandl"]||[]).push([[7458],{70026:function(e,t){t["Z"]={data(){return{header:{initialized:!1,marginTop:0,calendar_previousScrollPosition:0,isVisible:!0}}},unmounted(){this.$refs.page?.querySelector(".vuecal__bg")?.removeEventListener("scroll",this.handleScroll)},methods:{_initScrollListener(e=0){if(this.initialized)return;const t=this.$refs.page?.querySelector(".vuecal__bg");if(!t)return setTimeout((()=>{e<20&&this._initScrollListener(e+1)}),200);t.addEventListener("scroll",this._handleScroll),this.initialized=!0,this.header.calendar_previousScrollPosition=t.scrollTop},_handleScroll(e){const t=document.querySelector("div.subheader");this.initialized?(this.header.calendar_previousScrollPosition>e.target.scrollTop?this.header.isVisible||this.showHeader():(t.offsetHeight,Math.abs(e.target.scrollTop),this.header.isVisible&&this.hideHeader()),this.header.calendar_previousScrollPosition=e.target.scrollTop):this.header.calendar_previousScrollPosition=e.target.scrollTop},hideHeader(){const e=document.querySelector("div.subheader");e.style.transition="margin-top 0.5s",e.style.marginTop=`-${e.offsetHeight}px`,this.header.isVisible=!1,setTimeout((()=>{e.style.transition=""}),500)},showHeader(){const e=document.querySelector("div.subheader");e.style.transition="margin-top 0.5s",e.style.marginTop="0",this.header.isVisible=!0,setTimeout((()=>{e.style.transition=""}),500)}}}},77458:function(e,t,n){n.r(t),n.d(t,{default:function(){return Oc}});var r=n(73396);const i={ref:"page"};function s(e,t,n,s,o,a){const l=(0,r.up)("A-project-filter"),c=(0,r.up)("A-project-calendar"),d=(0,r.up)("W-loadable");return(0,r.wg)(),(0,r.iD)("div",i,[e.$store.getters["tm/isInitialized"]?((0,r.wg)(),(0,r.j4)(l,{key:0,onFilterChanged:a.onFilterChanged},null,8,["onFilterChanged"])):(0,r.kq)("",!0),(0,r.Wm)(d,{class:"non-projects",content:a.filteredProjects,emptyMessage:"Nenašli sa žiadne vyhovujúce projekty"},{default:(0,r.w5)((()=>[(0,r.Wm)(c,{events:a.filteredProjects,month:o.filter.month,onOpenDetail:a.openMasterTaskModal},null,8,["events","month","onOpenDetail"])])),_:1},8,["content"])],512)}const o={id:"calendar",class:"mb-12"};function a(e,t,n,i,s,a){const l=(0,r.up)("V-full-calendar");return(0,r.wg)(),(0,r.iD)("div",o,[(0,r.Wm)(l,{ref:"fullCalendar",options:a.calendarOptions},null,8,["options"])])}n(57658),n(30541);var l,c,d,u,f,h,p,g={},m=[],v=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function b(e,t){for(var n in t)e[n]=t[n];return e}function y(e){var t=e.parentNode;t&&t.removeChild(e)}function A(e,t,n){var r,i,s,o={};for(s in t)"key"==s?r=t[s]:"ref"==s?i=t[s]:o[s]=t[s];if(arguments.length>2&&(o.children=arguments.length>3?l.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(s in e.defaultProps)void 0===o[s]&&(o[s]=e.defaultProps[s]);return _(e,o,r,i,null)}function _(e,t,n,r,i){var s={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==i?++d:i};return null==i&&null!=c.vnode&&c.vnode(s),s}function E(){return{current:null}}function C(e){return e.children}function w(e,t){this.props=e,this.context=t}function D(e,t){if(null==t)return e.__?D(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t0?_(h.type,h.props,h.key,h.ref?h.ref:null,h.__v):h)){if(h.__=n,h.__b=n.__b+1,null===(f=y[d])||f&&h.key==f.key&&h.type===f.type)y[d]=void 0;else for(u=0;u3;)n.pop()();if(n[1]>>1,1),t.i.removeChild(e)}}),L(A(ye,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function _e(e,t){var n=A(Ae,{__v:e,i:t});return n.containerInfo=t,n}(ve.prototype=new w).__a=function(e){var t=this,n=me(t.__v),r=t.o.get(e);return r[0]++,function(i){var s=function(){t.props.revealOrder?(r.push(i),be(t,e,r)):i()};n?n(s):s()}},ve.prototype.render=function(e){this.u=null,this.o=new Map;var t=O(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},ve.prototype.componentDidUpdate=ve.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){be(e,n,t)}))};var Ee="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Ce=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,we="undefined"!=typeof document,De=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};w.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(w.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var Se=c.event;function Re(){}function ke(){return this.cancelBubble}function xe(){return this.defaultPrevented}c.event=function(e){return Se&&(e=Se(e)),e.persist=Re,e.isPropagationStopped=ke,e.isDefaultPrevented=xe,e.nativeEvent=e};var Te={configurable:!0,get:function(){return this.class}},Oe=c.vnode;c.vnode=function(e){var t=e.type,n=e.props,r=n;if("string"==typeof t){var i=-1===t.indexOf("-");for(var s in r={},n){var o=n[s];we&&"children"===s&&"noscript"===t||"value"===s&&"defaultValue"in n&&null==o||("defaultValue"===s&&"value"in n&&null==n.value?s="value":"download"===s&&!0===o?o="":/ondoubleclick/i.test(s)?s="ondblclick":/^onchange(textarea|input)/i.test(s+t)&&!De(n.type)?s="oninput":/^onfocus$/i.test(s)?s="onfocusin":/^onblur$/i.test(s)?s="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(s)?s=s.toLowerCase():i&&Ce.test(s)?s=s.replace(/[A-Z0-9]/g,"-$&").toLowerCase():null===o&&(o=void 0),/^oninput$/i.test(s)&&(s=s.toLowerCase(),r[s]&&(s="oninputCapture")),r[s]=o)}"select"==t&&r.multiple&&Array.isArray(r.value)&&(r.value=O(n.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==t&&null!=r.defaultValue&&(r.value=O(n.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),e.props=r,n.class!=n.className&&(Te.enumerable="className"in n,null!=n.className&&(r.class=n.className),Object.defineProperty(r,"className",Te))}e.$$typeof=Ee,Oe&&Oe(e)};var Me=c.__r;c.__r=function(e){Me&&Me(e),e.__c};var Ie=n(15941);function Ne(e){if(!e||"undefined"===typeof document)return;const t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}class Pe{constructor(e){this.drainedOption=e,this.isRunning=!1,this.isDirty=!1,this.pauseDepths={},this.timeoutId=0}request(e){this.isDirty=!0,this.isPaused()||(this.clearTimeout(),null==e?this.tryDrain():this.timeoutId=setTimeout(this.tryDrain.bind(this),e))}pause(e=""){let{pauseDepths:t}=this;t[e]=(t[e]||0)+1,this.clearTimeout()}resume(e="",t){let{pauseDepths:n}=this;if(e in n){if(t)delete n[e];else{n[e]-=1;let t=n[e];t<=0&&delete n[e]}this.tryDrain()}}isPaused(){return Object.keys(this.pauseDepths).length}tryDrain(){if(!this.isRunning&&!this.isPaused()){this.isRunning=!0;while(this.isDirty)this.isDirty=!1,this.drained();this.isRunning=!1}}clear(){this.clearTimeout(),this.isDirty=!1,this.pauseDepths={}}clearTimeout(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=0)}drained(){this.drainedOption&&this.drainedOption()}}const{hasOwnProperty:He}=Object.prototype;function Be(e,t){let n={};if(t)for(let r in t){let t=[];for(let i=e.length-1;i>=0;i-=1){let s=e[i][r];if("object"===typeof s&&s)t.unshift(s);else if(void 0!==s){n[r]=s;break}}t.length&&(n[r]=Be(t))}for(let r=e.length-1;r>=0;r-=1){let t=e[r];for(let e in t)e in n||(n[e]=t[e])}return n}function je(e,t){let n={};for(let r in e)t(e[r],r)&&(n[r]=e[r]);return n}function ze(e,t){let n={};for(let r in e)n[r]=t(e[r],r);return n}function Ue(e){let t={};for(let n of e)t[n]=!0;return t}function Ve(e){let t=[];for(let n in e)t.push(e[n]);return t}function Fe(e,t){if(e===t)return!0;for(let n in e)if(He.call(e,n)&&!(n in t))return!1;for(let n in t)if(He.call(t,n)&&e[n]!==t[n])return!1;return!0}const We=/^on[A-Z]/;function Le(e,t){const n=Qe(e,t);for(let r of n)if(!We.test(r))return!1;return!0}function Qe(e,t){let n=[];for(let r in e)He.call(e,r)&&(r in t||n.push(r));for(let r in t)He.call(t,r)&&e[r]!==t[r]&&n.push(r);return n}function Ge(e,t,n={}){if(e===t)return!0;for(let r in t)if(!(r in e)||!Ze(e[r],t[r],n[r]))return!1;for(let r in e)if(!(r in t))return!1;return!0}function Ze(e,t,n){return e===t||!0===n||!!n&&n(e,t)}function qe(e,t=0,n,r=1){let i=[];null==n&&(n=Object.keys(e).length);for(let s=t;s{if(r){if(!Fe(r,s)){n&&n(i);let r=e.call(this,s);t&&t(r,i)||(i=r)}}else i=e.call(this,s);return r=s,i}}function Xe(e){e.parentNode&&e.parentNode.removeChild(e)}function Ke(e,t){if(e.closest)return e.closest(t);if(!document.documentElement.contains(e))return null;do{if(et(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}function et(e,t){let n=e.matches||e.matchesSelector||e.msMatchesSelector;return n.call(e,t)}function tt(e,t){let n=e instanceof HTMLElement?[e]:e,r=[];for(let i=0;i{let r=Ke(n.target,e);r&&t.call(r,n,r)}}function ct(e,t,n,r){let i=lt(n,r);return e.addEventListener(t,i),()=>{e.removeEventListener(t,i)}}function dt(e,t,n,r){let i;return ct(e,"mouseover",t,((e,t)=>{if(t!==i){i=t,n(e,t);let s=e=>{i=null,r(e,t),t.removeEventListener("mouseleave",s)};t.addEventListener("mouseleave",s)}}))}function ut(e){return Object.assign({onClick:e},ft(e))}function ft(e){return{tabIndex:0,onKeyDown(t){"Enter"!==t.key&&" "!==t.key||(e(t),t.preventDefault())}}}let ht=0;function pt(){return ht+=1,String(ht)}function gt(e){let t,n,r=[],i=[];for("string"===typeof e?i=e.split(/\s*,\s*/):"function"===typeof e?i=[e]:Array.isArray(e)&&(i=e),t=0;te.replace("$"+n,t||"")),e):n}function _t(e){return e%1===0}function Et(e){let t=e.querySelector(".fc-scrollgrid-shrink-frame"),n=e.querySelector(".fc-scrollgrid-shrink-cushion");if(!t)throw new Error("needs fc-scrollgrid-shrink-frame className");if(!n)throw new Error("needs fc-scrollgrid-shrink-cushion className");return e.getBoundingClientRect().width-t.getBoundingClientRect().width+n.getBoundingClientRect().width}const Ct=["sun","mon","tue","wed","thu","fri","sat"];function wt(e,t){let n=Lt(e);return n[2]+=7*t,Qt(n)}function Dt(e,t){let n=Lt(e);return n[2]+=t,Qt(n)}function St(e,t){let n=Lt(e);return n[6]+=t,Qt(n)}function Rt(e,t){return kt(e,t)/7}function kt(e,t){return(t.valueOf()-e.valueOf())/864e5}function xt(e,t){return(t.valueOf()-e.valueOf())/36e5}function Tt(e,t){return(t.valueOf()-e.valueOf())/6e4}function Ot(e,t){return(t.valueOf()-e.valueOf())/1e3}function Mt(e,t){let n=Pt(e),r=Pt(t);return{years:0,months:0,days:Math.round(kt(n,r)),milliseconds:t.valueOf()-r.valueOf()-(e.valueOf()-n.valueOf())}}function It(e,t){let n=Nt(e,t);return null!==n&&n%7===0?n/7:null}function Nt(e,t){return Zt(e)===Zt(t)?Math.round(kt(e,t)):null}function Pt(e){return Qt([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()])}function Ht(e){return Qt([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours()])}function Bt(e){return Qt([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes()])}function jt(e){return Qt([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds()])}function zt(e,t,n){let r=e.getUTCFullYear(),i=Ut(e,r,t,n);if(i<1)return Ut(e,r-1,t,n);let s=Ut(e,r+1,t,n);return s>=1?Math.min(i,s):i}function Ut(e,t,n,r){let i=Qt([t,0,1+Vt(t,n,r)]),s=Pt(e),o=Math.round(kt(i,s));return Math.floor(o/7)+1}function Vt(e,t,n){let r=7+t-n,i=(7+Qt([e,0,r]).getUTCDay()-t)%7;return-i+r-1}function Ft(e){return[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()]}function Wt(e){return new Date(e[0],e[1]||0,null==e[2]?1:e[2],e[3]||0,e[4]||0,e[5]||0)}function Lt(e){return[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()]}function Qt(e){return 1===e.length&&(e=e.concat([0])),new Date(Date.UTC(...e))}function Gt(e){return!isNaN(e.valueOf())}function Zt(e){return 1e3*e.getUTCHours()*60*60+1e3*e.getUTCMinutes()*60+1e3*e.getUTCSeconds()+e.getUTCMilliseconds()}let qt={};function Yt(e,t){qt[e]=t}function $t(e){return new qt[e]}class Jt{getMarkerYear(e){return e.getUTCFullYear()}getMarkerMonth(e){return e.getUTCMonth()}getMarkerDay(e){return e.getUTCDate()}arrayToMarker(e){return Qt(e)}markerToArray(e){return Lt(e)}}Yt("gregory",Jt);const Xt=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function Kt(e,t){return"string"===typeof e?en(e):"object"===typeof e&&e?tn(e):"number"===typeof e?tn({[t||"milliseconds"]:e}):null}function en(e){let t=Xt.exec(e);if(t){let e=t[1]?-1:1;return{years:0,months:0,days:e*(t[2]?parseInt(t[2],10):0),milliseconds:e*(60*(t[3]?parseInt(t[3],10):0)*60*1e3+60*(t[4]?parseInt(t[4],10):0)*1e3+1e3*(t[5]?parseInt(t[5],10):0)+(t[6]?parseInt(t[6],10):0))}}return null}function tn(e){let t={years:e.years||e.year||0,months:e.months||e.month||0,days:e.days||e.day||0,milliseconds:60*(e.hours||e.hour||0)*60*1e3+60*(e.minutes||e.minute||0)*1e3+1e3*(e.seconds||e.second||0)+(e.milliseconds||e.millisecond||e.ms||0)},n=e.weeks||e.week;return n&&(t.days+=7*n,t.specifiedWeeks=!0),t}function nn(e,t){return e.years===t.years&&e.months===t.months&&e.days===t.days&&e.milliseconds===t.milliseconds}function rn(e,t){return{years:e.years-t.years,months:e.months-t.months,days:e.days-t.days,milliseconds:e.milliseconds-t.milliseconds}}function sn(e){return an(e)/365}function on(e){return an(e)/30}function an(e){return ln(e)/864e5}function ln(e){return 31536e6*e.years+2592e6*e.months+864e5*e.days+e.milliseconds}function cn(e){let t=e.milliseconds;if(t){if(t%1e3!==0)return{unit:"millisecond",value:t};if(t%6e4!==0)return{unit:"second",value:t/1e3};if(t%36e5!==0)return{unit:"minute",value:t/6e4};if(t)return{unit:"hour",value:t/36e5}}return e.days?e.specifiedWeeks&&e.days%7===0?{unit:"week",value:e.days/7}:{unit:"day",value:e.days}:e.months?{unit:"month",value:e.months}:e.years?{unit:"year",value:e.years}:{unit:"millisecond",value:0}}function dn(e,t,n=!1){let r=e.toISOString();return r=r.replace(".000",""),n&&(r=r.replace("T00:00:00Z","")),r.length>10&&(null==t?r=r.replace("Z",""):0!==t&&(r=r.replace("Z",fn(t,!0)))),r}function un(e){return e.toISOString().replace(/T.*$/,"")}function fn(e,t=!1){let n=e<0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),s=Math.round(r%60);return t?`${n+yt(i,2)}:${yt(s,2)}`:`GMT${n}${i}${s?`:${yt(s,2)}`:""}`}const hn=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;function pn(e){let t=hn.exec(e);if(t){let e=new Date(Date.UTC(Number(t[1]),t[3]?Number(t[3])-1:0,Number(t[5]||1),Number(t[7]||0),Number(t[8]||0),Number(t[10]||0),t[12]?1e3*Number(`0.${t[12]}`):0));if(Gt(e)){let n=null;return t[13]&&(n=("-"===t[15]?-1:1)*(60*Number(t[16]||0)+Number(t[18]||0))),{marker:e,isTimeUnspecified:!t[6],timeZoneOffset:n}}}return null}class gn{constructor(e){let t=this.timeZone=e.timeZone,n="local"!==t&&"UTC"!==t;e.namedTimeZoneImpl&&n&&(this.namedTimeZoneImpl=new e.namedTimeZoneImpl(t)),this.canComputeOffset=Boolean(!n||this.namedTimeZoneImpl),this.calendarSystem=$t(e.calendarSystem),this.locale=e.locale,this.weekDow=e.locale.week.dow,this.weekDoy=e.locale.week.doy,"ISO"===e.weekNumberCalculation&&(this.weekDow=1,this.weekDoy=4),"number"===typeof e.firstDay&&(this.weekDow=e.firstDay),"function"===typeof e.weekNumberCalculation&&(this.weekNumberFunc=e.weekNumberCalculation),this.weekText=null!=e.weekText?e.weekText:e.locale.options.weekText,this.weekTextLong=(null!=e.weekTextLong?e.weekTextLong:e.locale.options.weekTextLong)||this.weekText,this.cmdFormatter=e.cmdFormatter,this.defaultSeparator=e.defaultSeparator}createMarker(e){let t=this.createMarkerMeta(e);return null===t?null:t.marker}createNowMarker(){return this.canComputeOffset?this.timestampToMarker((new Date).valueOf()):Qt(Ft(new Date))}createMarkerMeta(e){if("string"===typeof e)return this.parse(e);let t=null;return"number"===typeof e?t=this.timestampToMarker(e):e instanceof Date?(e=e.valueOf(),isNaN(e)||(t=this.timestampToMarker(e))):Array.isArray(e)&&(t=Qt(e)),null!==t&&Gt(t)?{marker:t,isTimeUnspecified:!1,forcedTzo:null}:null}parse(e){let t=pn(e);if(null===t)return null;let{marker:n}=t,r=null;return null!==t.timeZoneOffset&&(this.canComputeOffset?n=this.timestampToMarker(n.valueOf()-60*t.timeZoneOffset*1e3):r=t.timeZoneOffset),{marker:n,isTimeUnspecified:t.isTimeUnspecified,forcedTzo:r}}getYear(e){return this.calendarSystem.getMarkerYear(e)}getMonth(e){return this.calendarSystem.getMarkerMonth(e)}add(e,t){let n=this.calendarSystem.markerToArray(e);return n[0]+=t.years,n[1]+=t.months,n[2]+=t.days,n[6]+=t.milliseconds,this.calendarSystem.arrayToMarker(n)}subtract(e,t){let n=this.calendarSystem.markerToArray(e);return n[0]-=t.years,n[1]-=t.months,n[2]-=t.days,n[6]-=t.milliseconds,this.calendarSystem.arrayToMarker(n)}addYears(e,t){let n=this.calendarSystem.markerToArray(e);return n[0]+=t,this.calendarSystem.arrayToMarker(n)}addMonths(e,t){let n=this.calendarSystem.markerToArray(e);return n[1]+=t,this.calendarSystem.arrayToMarker(n)}diffWholeYears(e,t){let{calendarSystem:n}=this;return Zt(e)===Zt(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)&&n.getMarkerMonth(e)===n.getMarkerMonth(t)?n.getMarkerYear(t)-n.getMarkerYear(e):null}diffWholeMonths(e,t){let{calendarSystem:n}=this;return Zt(e)===Zt(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)?n.getMarkerMonth(t)-n.getMarkerMonth(e)+12*(n.getMarkerYear(t)-n.getMarkerYear(e)):null}greatestWholeUnit(e,t){let n=this.diffWholeYears(e,t);return null!==n?{unit:"year",value:n}:(n=this.diffWholeMonths(e,t),null!==n?{unit:"month",value:n}:(n=It(e,t),null!==n?{unit:"week",value:n}:(n=Nt(e,t),null!==n?{unit:"day",value:n}:(n=xt(e,t),_t(n)?{unit:"hour",value:n}:(n=Tt(e,t),_t(n)?{unit:"minute",value:n}:(n=Ot(e,t),_t(n)?{unit:"second",value:n}:{unit:"millisecond",value:t.valueOf()-e.valueOf()}))))))}countDurationsBetween(e,t,n){let r;return n.years&&(r=this.diffWholeYears(e,t),null!==r)?r/sn(n):n.months&&(r=this.diffWholeMonths(e,t),null!==r)?r/on(n):n.days&&(r=Nt(e,t),null!==r)?r/an(n):(t.valueOf()-e.valueOf())/ln(n)}startOf(e,t){return"year"===t?this.startOfYear(e):"month"===t?this.startOfMonth(e):"week"===t?this.startOfWeek(e):"day"===t?Pt(e):"hour"===t?Ht(e):"minute"===t?Bt(e):"second"===t?jt(e):null}startOfYear(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e)])}startOfMonth(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e)])}startOfWeek(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e),e.getUTCDate()-(e.getUTCDay()-this.weekDow+7)%7])}computeWeekNumber(e){return this.weekNumberFunc?this.weekNumberFunc(this.toDate(e)):zt(e,this.weekDow,this.weekDoy)}format(e,t,n={}){return t.format({marker:e,timeZoneOffset:null!=n.forcedTzo?n.forcedTzo:this.offsetForMarker(e)},this)}formatRange(e,t,n,r={}){return r.isEndExclusive&&(t=St(t,-1)),n.formatRange({marker:e,timeZoneOffset:null!=r.forcedStartTzo?r.forcedStartTzo:this.offsetForMarker(e)},{marker:t,timeZoneOffset:null!=r.forcedEndTzo?r.forcedEndTzo:this.offsetForMarker(t)},this,r.defaultSeparator)}formatIso(e,t={}){let n=null;return t.omitTimeZoneOffset||(n=null!=t.forcedTzo?t.forcedTzo:this.offsetForMarker(e)),dn(e,n,t.omitTime)}timestampToMarker(e){return"local"===this.timeZone?Qt(Ft(new Date(e))):"UTC"!==this.timeZone&&this.namedTimeZoneImpl?Qt(this.namedTimeZoneImpl.timestampToArray(e)):new Date(e)}offsetForMarker(e){return"local"===this.timeZone?-Wt(Lt(e)).getTimezoneOffset():"UTC"===this.timeZone?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(Lt(e)):null}toDate(e,t){return"local"===this.timeZone?Wt(Lt(e)):"UTC"===this.timeZone?new Date(e.valueOf()):this.namedTimeZoneImpl?new Date(e.valueOf()-1e3*this.namedTimeZoneImpl.offsetForArray(Lt(e))*60):new Date(e.valueOf()-(t||0))}}class mn{constructor(e){this.iconOverrideOption&&this.setIconOverride(e[this.iconOverrideOption])}setIconOverride(e){let t,n;if("object"===typeof e&&e){for(n in t=Object.assign({},this.iconClasses),e)t[n]=this.applyIconOverridePrefix(e[n]);this.iconClasses=t}else!1===e&&(this.iconClasses={})}applyIconOverridePrefix(e){let t=this.iconOverridePrefix;return t&&0!==e.indexOf(t)&&(e=t+e),e}getClass(e){return this.classes[e]||""}getIconClass(e,t){let n;return n=t&&this.rtlIconClasses&&this.rtlIconClasses[e]||this.iconClasses[e],n?`${this.baseIconClass} ${n}`:""}getCustomButtonIconClass(e){let t;return this.iconOverrideCustomButtonOption&&(t=e[this.iconOverrideCustomButtonOption],t)?`${this.baseIconClass} ${this.applyIconOverridePrefix(t)}`:""}}mn.prototype.classes={},mn.prototype.iconClasses={},mn.prototype.baseIconClass="",mn.prototype.iconOverridePrefix="";const vn={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},bn={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},yn=/\s*([ap])\.?m\.?/i,An=/,/g,_n=/\s+/g,En=/\u200e/g,Cn=/UTC|GMT/;class wn{constructor(e){let t={},n={},r=0;for(let i in e)i in vn?(n[i]=e[i],r=Math.max(vn[i],r)):(t[i]=e[i],i in bn&&(r=Math.max(bn[i],r)));this.standardDateProps=t,this.extendedSettings=n,this.severity=r,this.buildFormattingFunc=$e(Dn)}format(e,t){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,t)(e)}formatRange(e,t,n,r){let{standardDateProps:i,extendedSettings:s}=this,o=On(e.marker,t.marker,n.calendarSystem);if(!o)return this.format(e,n);let a=o;!(a>1)||"numeric"!==i.year&&"2-digit"!==i.year||"numeric"!==i.month&&"2-digit"!==i.month||"numeric"!==i.day&&"2-digit"!==i.day||(a=1);let l=this.format(e,n),c=this.format(t,n);if(l===c)return l;let d=Mn(i,a),u=Dn(d,s,n),f=u(e),h=u(t),p=In(l,f,c,h),g=s.separator||r||n.defaultSeparator||"";return p?p.before+f+g+h+p.after:l+g+c}getLargestUnit(){switch(this.severity){case 7:case 6:case 5:return"year";case 4:return"month";case 3:return"week";case 2:return"day";default:return"time"}}}function Dn(e,t,n){let r=Object.keys(e).length;return 1===r&&"short"===e.timeZoneName?e=>fn(e.timeZoneOffset):0===r&&t.week?e=>Tn(n.computeWeekNumber(e.marker),n.weekText,n.weekTextLong,n.locale,t.week):Sn(e,t,n)}function Sn(e,t,n){e=Object.assign({},e),t=Object.assign({},t),Rn(e,t),e.timeZone="UTC";let r,i=new Intl.DateTimeFormat(n.locale.codes,e);if(t.omitZeroMinute){let t=Object.assign({},e);delete t.minute,r=new Intl.DateTimeFormat(n.locale.codes,t)}return s=>{let o,{marker:a}=s;o=r&&!a.getUTCMinutes()?r:i;let l=o.format(a);return kn(l,s,e,t,n)}}function Rn(e,t){e.timeZoneName&&(e.hour||(e.hour="2-digit"),e.minute||(e.minute="2-digit")),"long"===e.timeZoneName&&(e.timeZoneName="short"),t.omitZeroMinute&&(e.second||e.millisecond)&&delete t.omitZeroMinute}function kn(e,t,n,r,i){return e=e.replace(En,""),"short"===n.timeZoneName&&(e=xn(e,"UTC"===i.timeZone||null==t.timeZoneOffset?"UTC":fn(t.timeZoneOffset))),r.omitCommas&&(e=e.replace(An,"").trim()),r.omitZeroMinute&&(e=e.replace(":00","")),!1===r.meridiem?e=e.replace(yn,"").trim():"narrow"===r.meridiem?e=e.replace(yn,((e,t)=>t.toLocaleLowerCase())):"short"===r.meridiem?e=e.replace(yn,((e,t)=>`${t.toLocaleLowerCase()}m`)):"lowercase"===r.meridiem&&(e=e.replace(yn,(e=>e.toLocaleLowerCase()))),e=e.replace(_n," "),e=e.trim(),e}function xn(e,t){let n=!1;return e=e.replace(Cn,(()=>(n=!0,t))),n||(e+=` ${t}`),e}function Tn(e,t,n,r,i){let s=[];return"long"===i?s.push(n):"short"!==i&&"narrow"!==i||s.push(t),"long"!==i&&"short"!==i||s.push(" "),s.push(r.simpleNumberFormat.format(e)),"rtl"===r.options.direction&&s.reverse(),s.join("")}function On(e,t,n){return n.getMarkerYear(e)!==n.getMarkerYear(t)?5:n.getMarkerMonth(e)!==n.getMarkerMonth(t)?4:n.getMarkerDay(e)!==n.getMarkerDay(t)?2:Zt(e)!==Zt(t)?1:0}function Mn(e,t){let n={};for(let r in e)(!(r in bn)||bn[r]<=t)&&(n[r]=e[r]);return n}function In(e,t,n,r){let i=0;while(i{this.props.value!==t.value&&e.forEach((e=>{e.context=t.value,e.forceUpdate()}))},this.sub=t=>{e.push(t);let n=t.componentWillUnmount;t.componentWillUnmount=()=>{e.splice(e.indexOf(t),1),n&&n.call(t)}}}return t},t}class Xn{constructor(e,t,n,r){this.execFunc=e,this.emitter=t,this.scrollTime=n,this.scrollTimeReset=r,this.handleScrollRequest=e=>{this.queuedRequest=Object.assign({},this.queuedRequest||{},e),this.drain()},t.on("_scrollRequest",this.handleScrollRequest),this.fireInitialScroll()}detach(){this.emitter.off("_scrollRequest",this.handleScrollRequest)}update(e){e&&this.scrollTimeReset?this.fireInitialScroll():this.drain()}fireInitialScroll(){this.handleScrollRequest({time:this.scrollTime})}drain(){this.queuedRequest&&this.execFunc(this.queuedRequest)&&(this.queuedRequest=null)}}const Kn=Jn({});function er(e,t,n,r,i,s,o,a,l,c,d,u,f){return{dateEnv:i,options:n,pluginHooks:o,emitter:c,dispatch:a,getCurrentData:l,calendarApi:d,viewSpec:e,viewApi:t,dateProfileGenerator:r,theme:s,isRtl:"rtl"===n.direction,addResizeHandler(e){c.on("_resize",e)},removeResizeHandler(e){c.off("_resize",e)},createScrollResponder(e){return new Xn(e,c,Kt(n.scrollTime),n.scrollTimeReset)},registerInteractiveComponent:u,unregisterInteractiveComponent:f}}class tr extends w{shouldComponentUpdate(e,t){return this.debug&&Ie.log(Qe(e,this.props),Qe(t,this.state)),!Ge(this.props,e,this.propEquality)||!Ge(this.state,t,this.stateEquality)}safeSetState(e){Ge(this.state,Object.assign(Object.assign({},this.state),e),this.stateEquality)||this.setState(e)}}tr.addPropsEquality=rr,tr.addStateEquality=ir,tr.contextType=Kn,tr.prototype.propEquality={},tr.prototype.stateEquality={};class nr extends tr{}function rr(e){let t=Object.create(this.prototype.propEquality);Object.assign(t,e),this.prototype.propEquality=t}function ir(e){let t=Object.create(this.prototype.stateEquality);Object.assign(t,e),this.prototype.stateEquality=t}function sr(e,t){"function"===typeof e?e(t):e&&(e.current=t)}nr.contextType=Kn;class or extends nr{constructor(){super(...arguments),this.id=pt(),this.currentDomNodes=[],this.queuedDomNodes=[],this.handleEl=e=>{this.props.elRef&&sr(this.props.elRef,e)}}render(){const{props:e,context:t}=this,{options:n}=t,{generator:r,renderProps:i}=e,s=lr(e);let o,a=[];if(ar(e.generatorName,n))n.customRenderingReplacesEl&&delete s.elRef;else{const e="function"===typeof r?r(i,A):r;"string"===typeof e||u(e)||Array.isArray(e)?o=e:"object"===typeof e&&("html"in e?s.dangerouslySetInnerHTML={__html:e.html}:"domNodes"in e&&(a=Array.prototype.slice.call(e.domNodes)))}return this.queuedDomNodes=a,A(e.elTag,s,o)}componentDidMount(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentDidUpdate(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentWillUnmount(){this.triggerCustomRendering(!1)}triggerCustomRendering(e){const{props:t,context:n}=this,{handleCustomRendering:r,customRenderingMetaMap:i}=n.options;if(r){const n=null===i||void 0===i?void 0:i[t.generatorName];n&&r(Object.assign({id:this.id,isActive:e,containerEl:this.base,reportNewContainerEl:this.handleEl,generatorMeta:n},t))}}applyQueueudDomNodes(){const{queuedDomNodes:e,currentDomNodes:t}=this,n=this.base;if(!Ye(e,t)){t.forEach(Xe);for(let t of e)n.appendChild(t);this.currentDomNodes=e}}}function ar(e,t){var n;return Boolean(t.handleCustomRendering&&e&&(null===(n=t.customRenderingMetaMap)||void 0===n?void 0:n[e]))}function lr(e,t){const n=Object.assign(Object.assign({},e.elAttrs),{ref:e.elRef});return(e.elClasses||t)&&(n.className=(e.elClasses||[]).concat(t||[]).concat(n.className||[]).filter(Boolean).join(" ")),e.elStyle&&(n.style=e.elStyle),n}or.addPropsEquality({elClasses:Ye,elStyle:Fe,elAttrs:Le,renderProps:Fe});const cr=Jn(0);class dr extends w{constructor(){super(...arguments),this.InnerContent=ur.bind(void 0,this)}render(){const{props:e}=this,t=fr(e.classNameGenerator,e.renderProps);if(e.children){const n=lr(e,t),r=e.children(this.InnerContent,e.renderProps,n);return e.elTag?A(e.elTag,n,r):r}return A(or,Object.assign(Object.assign({},e),{elTag:e.elTag||"div",elClasses:(e.elClasses||[]).concat(t),renderId:this.context}))}componentDidMount(){var e,t;null===(t=(e=this.props).didMount)||void 0===t||t.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.base}))}componentWillUnmount(){var e,t;null===(t=(e=this.props).willUnmount)||void 0===t||t.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.base}))}}function ur(e,t){const n=e.props;return A(or,Object.assign({renderProps:n.renderProps,generatorName:n.generatorName,generator:n.generator,renderId:e.context},t))}function fr(e,t){const n="function"===typeof e?e(t):e||[];return"string"===typeof n?[n]:n}dr.contextType=cr;class hr extends nr{render(){let{props:e,context:t}=this,{options:n}=t,r={view:t.viewApi};return A(dr,Object.assign({},e,{elTag:e.elTag||"div",elClasses:[...pr(e.viewSpec),...e.elClasses||[]],renderProps:r,classNameGenerator:n.viewClassNames,generatorName:void 0,generator:void 0,didMount:n.viewDidMount,willUnmount:n.viewWillUnmount}),(()=>e.children))}}function pr(e){return[`fc-${e.type}-view`,"fc-view"]}function gr(e,t){let n=null,r=null;return e.start&&(n=t.createMarker(e.start)),e.end&&(r=t.createMarker(e.end)),n||r?n&&r&&rs&&i.push({start:s,end:r.start}),r.end>s&&(s=r.end);return st.start)&&(null===e.start||null===t.end||e.start=e.start)&&(null===e.end||t=t.end?new Date(t.end.valueOf()-1):e}function Er(e){let t=Math.floor(kt(e.start,e.end))||1,n=Pt(e.start),r=Dt(n,t);return{start:n,end:r}}function Cr(e,t=Kt(0)){let n=null,r=null;if(e.end){r=Pt(e.end);let n=e.end.valueOf()-r.valueOf();n&&n>=ln(t)&&(r=Dt(r,1))}return e.start&&(n=Pt(e.start),r&&r<=n&&(r=Dt(n,1))),{start:n,end:r}}function wr(e,t,n,r){return"year"===r?Kt(n.diffWholeYears(e,t),"year"):"month"===r?Kt(n.diffWholeMonths(e,t),"month"):Mt(e,t)}function Dr(e,t){switch(t.type){case"CHANGE_DATE":return t.dateMarker;default:return e}}function Sr(e,t){let n=e.initialDate;return null!=n?t.createMarker(n):Rr(e.now,t)}function Rr(e,t){return"function"===typeof e&&(e=e()),null==e?t.createNowMarker():t.createMarker(e)}class kr{constructor(e){this.props=e,this.nowDate=Rr(e.nowInput,e.dateEnv),this.initHiddenDays()}buildPrev(e,t,n){let{dateEnv:r}=this.props,i=r.subtract(r.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(i,-1,n)}buildNext(e,t,n){let{dateEnv:r}=this.props,i=r.add(r.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(i,1,n)}build(e,t,n=!0){let r,i,s,o,a,l,{props:c}=this;return r=this.buildValidRange(),r=this.trimHiddenDays(r),n&&(e=_r(e,r)),i=this.buildCurrentRangeInfo(e,t),s=/^(year|month|week|day)$/.test(i.unit),o=this.buildRenderRange(this.trimHiddenDays(i.range),i.unit,s),o=this.trimHiddenDays(o),a=o,c.showNonCurrentDates||(a=br(a,i.range)),a=this.adjustActiveRange(a),a=br(a,r),l=yr(i.range,r),{validRange:r,currentRange:i.range,currentRangeUnit:i.unit,isRangeAllDay:s,activeRange:a,renderRange:o,slotMinTime:c.slotMinTime,slotMaxTime:c.slotMaxTime,isValid:l,dateIncrement:this.buildDateIncrement(i.duration)}}buildValidRange(){let e=this.props.validRangeInput,t="function"===typeof e?e.call(this.props.calendarApi,this.nowDate):e;return this.refineRange(t)||{start:null,end:null}}buildCurrentRangeInfo(e,t){let n,{props:r}=this,i=null,s=null,o=null;return r.duration?(i=r.duration,s=r.durationUnit,o=this.buildRangeFromDuration(e,t,i,s)):(n=this.props.dayCount)?(s="day",o=this.buildRangeFromDayCount(e,t,n)):(o=this.buildCustomVisibleRange(e))?s=r.dateEnv.greatestWholeUnit(o.start,o.end).unit:(i=this.getFallbackDuration(),s=cn(i).unit,o=this.buildRangeFromDuration(e,t,i,s)),{duration:i,unit:s,range:o}}getFallbackDuration(){return Kt({day:1})}adjustActiveRange(e){let{dateEnv:t,usesMinMaxTime:n,slotMinTime:r,slotMaxTime:i}=this.props,{start:s,end:o}=e;return n&&(an(r)<0&&(s=Pt(s),s=t.add(s,r)),an(i)>1&&(o=Pt(o),o=Dt(o,-1),o=t.add(o,i))),{start:s,end:o}}buildRangeFromDuration(e,t,n,r){let i,s,o,{dateEnv:a,dateAlignment:l}=this.props;if(!l){let{dateIncrement:e}=this.props;l=e&&ln(e)!o[e.defId].recurringDef));for(let l in o){let e=o[l];if(e.recurringDef){let{duration:n}=e.recurringDef;n||(n=e.allDay?s.defaultAllDayEventDuration:s.defaultTimedEventDuration);let o=Mr(e,n,t,r,i.recurringTypes);for(let e of o){let t=xr(l,{start:e,end:r.add(e,n)});a[t.instanceId]=t}}}return{defs:o,instances:a}}function Mr(e,t,n,r,i){let s=i[e.recurringDef.typeId],o=s.expand(e.recurringDef.typeData,{start:r.subtract(n.start,t),end:n.end},r);return e.allDay&&(o=o.map(Pt)),o}const Ir={id:String,groupId:String,title:String,url:String,interactive:Boolean},Nr={start:qn,end:qn,date:qn,allDay:Boolean},Pr=Object.assign(Object.assign(Object.assign({},Ir),Nr),{extendedProps:qn});function Hr(e,t,n,r,i=jr(n)){let{refined:s,extra:o}=Br(e,n,i),a=Vr(t,n),l=Tr(s,a,n.dateEnv,n.pluginHooks.recurringTypes);if(l){let e=zr(s,o,t?t.sourceId:"",l.allDay,Boolean(l.duration),n);return e.recurringDef={typeId:l.typeId,typeData:l.typeData,duration:l.duration},{def:e,instance:null}}let c=Ur(s,a,n,r);if(c){let e=zr(s,o,t?t.sourceId:"",c.allDay,c.hasEnd,n),r=xr(e.defId,c.range,c.forcedStartTzo,c.forcedEndTzo);return{def:e,instance:r}}return null}function Br(e,t,n=jr(t)){return Zn(e,n)}function jr(e){return Object.assign(Object.assign(Object.assign({},Xr),Pr),e.pluginHooks.eventRefiners)}function zr(e,t,n,r,i,s){let o={title:e.title||"",groupId:e.groupId||"",publicId:e.id||"",url:e.url||"",recurringDef:null,defId:pt(),sourceId:n,allDay:r,hasEnd:i,interactive:e.interactive,ui:ei(e,s),extendedProps:Object.assign(Object.assign({},e.extendedProps||{}),t)};for(let a of s.pluginHooks.eventDefMemberAdders)Object.assign(o,a(e));return Object.freeze(o.ui.classNames),Object.freeze(o.extendedProps),o}function Ur(e,t,n,r){let i,s,{allDay:o}=e,a=null,l=!1,c=null,d=null!=e.start?e.start:e.date;if(i=n.dateEnv.createMarkerMeta(d),i)a=i.marker;else if(!r)return null;return null!=e.end&&(s=n.dateEnv.createMarkerMeta(e.end)),null==o&&(o=null!=t?t:(!i||i.isTimeUnspecified)&&(!s||s.isTimeUnspecified)),o&&a&&(a=Pt(a)),s&&(c=s.marker,o&&(c=Pt(c)),a&&c<=a&&(c=null)),c?l=!0:r||(l=n.options.forceEventDuration||!1,c=n.dateEnv.add(a,o?n.options.defaultAllDayEventDuration:n.options.defaultTimedEventDuration)),{allDay:o,hasEnd:l,range:{start:a,end:c},forcedStartTzo:i?i.forcedTzo:null,forcedEndTzo:s?s.forcedTzo:null}}function Vr(e,t){let n=null;return e&&(n=e.defaultAllDay),null==n&&(n=t.options.defaultAllDay),n}function Fr(e,t,n,r){let i=Gr(),s=jr(n);for(let o of e){let e=Hr(o,t,n,r,s);e&&Wr(e,i)}return i}function Wr(e,t=Gr()){return t.defs[e.def.defId]=e.def,e.instance&&(t.instances[e.instance.instanceId]=e.instance),t}function Lr(e,t){let n=e.instances[t];if(n){let t=e.defs[n.defId],r=qr(e,(e=>Qr(t,e)));return r.defs[t.defId]=t,r.instances[n.instanceId]=n,r}return Gr()}function Qr(e,t){return Boolean(e.groupId&&e.groupId===t.groupId)}function Gr(){return{defs:{},instances:{}}}function Zr(e,t){return{defs:Object.assign(Object.assign({},e.defs),t.defs),instances:Object.assign(Object.assign({},e.instances),t.instances)}}function qr(e,t){let n=je(e.defs,t),r=je(e.instances,(e=>n[e.defId]));return{defs:n,instances:r}}function Yr(e,t){let{defs:n,instances:r}=e,i={},s={};for(let o in n)t.defs[o]||(i[o]=n[o]);for(let o in r)!t.instances[o]&&i[r[o].defId]&&(s[o]=r[o]);return{defs:i,instances:s}}function $r(e,t){return Array.isArray(e)?Fr(e,null,t,!0):"object"===typeof e&&e?Fr([e],null,t,!0):null!=e?String(e):null}function Jr(e){return Array.isArray(e)?e:"string"===typeof e?e.split(/\s+/):[]}const Xr={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:qn,overlap:qn,allow:qn,className:Jr,classNames:Jr,color:String,backgroundColor:String,borderColor:String,textColor:String},Kr={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function ei(e,t){let n=$r(e.constraint,t);return{display:e.display||null,startEditable:null!=e.startEditable?e.startEditable:e.editable,durationEditable:null!=e.durationEditable?e.durationEditable:e.editable,constraints:null!=n?[n]:[],overlap:null!=e.overlap?e.overlap:null,allows:null!=e.allow?[e.allow]:[],backgroundColor:e.backgroundColor||e.color||"",borderColor:e.borderColor||e.color||"",textColor:e.textColor||"",classNames:(e.className||[]).concat(e.classNames||[])}}function ti(e){return e.reduce(ni,Kr)}function ni(e,t){return{display:null!=t.display?t.display:e.display,startEditable:null!=t.startEditable?t.startEditable:e.startEditable,durationEditable:null!=t.durationEditable?t.durationEditable:e.durationEditable,constraints:e.constraints.concat(t.constraints),overlap:"boolean"===typeof t.overlap?t.overlap:e.overlap,allows:e.allows.concat(t.allows),backgroundColor:t.backgroundColor||e.backgroundColor,borderColor:t.borderColor||e.borderColor,textColor:t.textColor||e.textColor,classNames:e.classNames.concat(t.classNames)}}const ri={id:String,defaultAllDay:Boolean,url:String,format:String,events:qn,eventDataTransform:qn,success:qn,failure:qn};function ii(e,t,n=si(t)){let r;if("string"===typeof e?r={url:e}:"function"===typeof e||Array.isArray(e)?r={events:e}:"object"===typeof e&&e&&(r=e),r){let{refined:i,extra:s}=Zn(r,n),o=oi(i,t);if(o)return{_raw:e,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:i.defaultAllDay,eventDataTransform:i.eventDataTransform,success:i.success,failure:i.failure,publicId:i.id||"",sourceId:pt(),sourceDefId:o.sourceDefId,meta:o.meta,ui:ei(i,t),extendedProps:s}}return null}function si(e){return Object.assign(Object.assign(Object.assign({},Xr),ri),e.pluginHooks.eventSourceRefiners)}function oi(e,t){let n=t.pluginHooks.eventSourceDefs;for(let r=n.length-1;r>=0;r-=1){let t=n[r],i=t.parseMeta(e);if(i)return{sourceDefId:r,meta:i}}return null}function ai(e,t,n,r,i){switch(t.type){case"RECEIVE_EVENTS":return li(e,n[t.sourceId],t.fetchId,t.fetchRange,t.rawEvents,i);case"ADD_EVENTS":return ui(e,t.eventStore,r?r.activeRange:null,i);case"RESET_EVENTS":return t.eventStore;case"MERGE_EVENTS":return Zr(e,t.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return r?Or(e,r.activeRange,i):e;case"REMOVE_EVENTS":return Yr(e,t.eventStore);case"REMOVE_EVENT_SOURCE":return hi(e,t.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return qr(e,(e=>!e.sourceId));case"REMOVE_ALL_EVENTS":return Gr();default:return e}}function li(e,t,n,r,i,s){if(t&&n===t.latestFetchId){let n=Fr(ci(i,t,s),t,s);return r&&(n=Or(n,r,s)),Zr(hi(e,t.sourceId),n)}return e}function ci(e,t,n){let r=n.options.eventDataTransform,i=t?t.eventDataTransform:null;return i&&(e=di(e,i)),r&&(e=di(e,r)),e}function di(e,t){let n;if(t){n=[];for(let r of e){let e=t(r);e?n.push(e):null==e&&n.push(r)}}else n=e;return n}function ui(e,t,n,r){return n&&(t=Or(t,n,r)),Zr(e,t)}function fi(e,t,n){let{defs:r}=e,i=ze(e.instances,(e=>{let i=r[e.defId];return i.allDay||i.recurringDef?e:Object.assign(Object.assign({},e),{range:{start:n.createMarker(t.toDate(e.range.start,e.forcedStartTzo)),end:n.createMarker(t.toDate(e.range.end,e.forcedEndTzo))},forcedStartTzo:n.canComputeOffset?null:e.forcedStartTzo,forcedEndTzo:n.canComputeOffset?null:e.forcedEndTzo})}));return{defs:r,instances:i}}function hi(e,t){return qr(e,(e=>e.sourceId!==t))}class pi{constructor(){this.handlers={},this.thisContext=null}setThisContext(e){this.thisContext=e}setOptions(e){this.options=e}on(e,t){gi(this.handlers,e,t)}off(e,t){mi(this.handlers,e,t)}trigger(e,...t){let n=this.handlers[e]||[],r=this.options&&this.options[e],i=[].concat(r||[],n);for(let s of i)s.apply(this.thisContext,t)}hasHandlers(e){return Boolean(this.handlers[e]&&this.handlers[e].length||this.options&&this.options[e])}}function gi(e,t,n){(e[t]||(e[t]=[])).push(n)}function mi(e,t,n){n?e[t]&&(e[t]=e[t].filter((e=>e!==n))):delete e[t]}const vi={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function bi(e,t){return Fr(yi(e),null,t)}function yi(e){let t;return t=!0===e?[{}]:Array.isArray(e)?e.filter((e=>e.daysOfWeek)):"object"===typeof e&&e?[e]:[],t=t.map((e=>Object.assign(Object.assign({},vi),e))),t}function Ai(e,t,n){n.emitter.trigger("select",Object.assign(Object.assign({},Ei(e,n)),{jsEvent:t?t.origEvent:null,view:n.viewApi||n.calendarApi.view}))}function _i(e,t){t.emitter.trigger("unselect",{jsEvent:e?e.origEvent:null,view:t.viewApi||t.calendarApi.view})}function Ei(e,t){let n={};for(let r of t.pluginHooks.dateSpanTransforms)Object.assign(n,r(e,t));return Object.assign(n,Yi(e,t.dateEnv)),n}function Ci(e,t,n){let{dateEnv:r,options:i}=n,s=t;return e?(s=Pt(s),s=r.add(s,i.defaultAllDayEventDuration)):s=r.add(s,i.defaultTimedEventDuration),s}function wi(e,t,n,r){let i=Ni(e.defs,t),s=Gr();for(let o in e.defs){let t=e.defs[o];s.defs[o]=Di(t,i[o],n,r)}for(let o in e.instances){let t=e.instances[o],a=s.defs[t.defId];s.instances[o]=Si(t,a,i[t.defId],n,r)}return s}function Di(e,t,n,r){let i=n.standardProps||{};null==i.hasEnd&&t.durationEditable&&(n.startDelta||n.endDelta)&&(i.hasEnd=!0);let s=Object.assign(Object.assign(Object.assign({},e),i),{ui:Object.assign(Object.assign({},e.ui),i.ui)});n.extendedProps&&(s.extendedProps=Object.assign(Object.assign({},s.extendedProps),n.extendedProps));for(let o of r.pluginHooks.eventDefMutationAppliers)o(s,n,r);return!s.hasEnd&&r.options.forceEventDuration&&(s.hasEnd=!0),s}function Si(e,t,n,r,i){let{dateEnv:s}=i,o=r.standardProps&&!0===r.standardProps.allDay,a=r.standardProps&&!1===r.standardProps.hasEnd,l=Object.assign({},e);return o&&(l.range=Er(l.range)),r.datesDelta&&n.startEditable&&(l.range={start:s.add(l.range.start,r.datesDelta),end:s.add(l.range.end,r.datesDelta)}),r.startDelta&&n.durationEditable&&(l.range={start:s.add(l.range.start,r.startDelta),end:l.range.end}),r.endDelta&&n.durationEditable&&(l.range={start:l.range.start,end:s.add(l.range.end,r.endDelta)}),a&&(l.range={start:l.range.start,end:Ci(t.allDay,l.range.start,i)}),t.allDay&&(l.range={start:Pt(l.range.start),end:Pt(l.range.end)}),l.range.endPi(e,t)))}function Pi(e,t){let n=[];return t[""]&&n.push(t[""]),t[e.defId]&&n.push(t[e.defId]),n.push(e.ui),ti(n)}function Hi(e,t){let n=e.map(Bi);return n.sort(((e,n)=>mt(e,n,t))),n.map((e=>e._seg))}function Bi(e){let{eventRange:t}=e,n=t.def,r=t.instance?t.instance.range:t.range,i=r.start?r.start.valueOf():0,s=r.end?r.end.valueOf():0;return Object.assign(Object.assign(Object.assign({},n.extendedProps),n),{id:n.publicId,start:i,end:s,duration:s-i,allDay:Number(n.allDay),_seg:e})}function ji(e,t){let{pluginHooks:n}=t,r=n.isDraggableTransformers,{def:i,ui:s}=e.eventRange,o=s.startEditable;for(let a of r)o=a(o,i,s,t);return o}function zi(e,t){return e.isStart&&e.eventRange.ui.durationEditable&&t.options.eventResizableFromStart}function Ui(e,t){return e.isEnd&&e.eventRange.ui.durationEditable}function Vi(e,t,n,r,i,s,o){let{dateEnv:a,options:l}=n,{displayEventTime:c,displayEventEnd:d}=l,u=e.eventRange.def,f=e.eventRange.instance;null==c&&(c=!1!==r),null==d&&(d=!1!==i);let h=f.range.start,p=f.range.end,g=s||e.start||e.eventRange.range.start,m=o||e.end||e.eventRange.range.end,v=Pt(h).valueOf()===Pt(g).valueOf(),b=Pt(St(p,-1)).valueOf()===Pt(St(m,-1)).valueOf();return c&&!u.allDay&&(v||b)?(g=v?h:g,m=b?p:m,d&&u.hasEnd?a.formatRange(g,m,t,{forcedStartTzo:s?null:f.forcedStartTzo,forcedEndTzo:o?null:f.forcedEndTzo}):a.format(g,t,{forcedTzo:s?null:f.forcedStartTzo})):""}function Fi(e,t,n){let r=e.eventRange.range;return{isPast:r.end<(n||t.start),isFuture:r.start>=(n||t.end),isToday:t&&Ar(t,r.start)}}function Wi(e){let t=["fc-event"];return e.isMirror&&t.push("fc-event-mirror"),e.isDraggable&&t.push("fc-event-draggable"),(e.isStartResizable||e.isEndResizable)&&t.push("fc-event-resizable"),e.isDragging&&t.push("fc-event-dragging"),e.isResizing&&t.push("fc-event-resizing"),e.isSelected&&t.push("fc-event-selected"),e.isStart&&t.push("fc-event-start"),e.isEnd&&t.push("fc-event-end"),e.isPast&&t.push("fc-event-past"),e.isToday&&t.push("fc-event-today"),e.isFuture&&t.push("fc-event-future"),t}function Li(e){return e.instance?e.instance.instanceId:`${e.def.defId}:${e.range.start.toISOString()}`}function Qi(e,t){let{def:n,instance:r}=e.eventRange,{url:i}=n;if(i)return{href:i};let{emitter:s,options:o}=t,{eventInteractive:a}=o;return null==a&&(a=n.interactive,null==a&&(a=Boolean(s.hasHandlers("eventClick")))),a?ft((e=>{s.trigger("eventClick",{el:e.target,event:new ki(t,n,r),jsEvent:e,view:t.viewApi})})):{}}const Gi={start:qn,end:qn,allDay:Boolean};function Zi(e,t,n){let r=qi(e,t),{range:i}=r;if(!i.start)return null;if(!i.end){if(null==n)return null;i.end=t.add(i.start,n)}return r}function qi(e,t){let{refined:n,extra:r}=Zn(e,Gi),i=n.start?t.createMarkerMeta(n.start):null,s=n.end?t.createMarkerMeta(n.end):null,{allDay:o}=n;return null==o&&(o=i&&i.isTimeUnspecified&&(!s||s.isTimeUnspecified)),Object.assign({range:{start:i?i.marker:null,end:s?s.marker:null},allDay:o},r)}function Yi(e,t){return Object.assign(Object.assign({},Ji(e.range,t,e.allDay)),{allDay:e.allDay})}function $i(e,t,n){return Object.assign(Object.assign({},Ji(e,t,n)),{timeZone:t.timeZone})}function Ji(e,t,n){return{start:t.toDate(e.start),end:t.toDate(e.end),startStr:t.formatIso(e.start,{omitTime:n}),endStr:t.formatIso(e.end,{omitTime:n})}}function Xi(e,t,n){let r=Br({editable:!1},n),i=zr(r.refined,r.extra,"",e.allDay,!0,n);return{def:i,ui:Pi(i,t),instance:xr(i.defId,e.range),range:e.range,isStart:!0,isEnd:!0}}function Ki(e,t,n){let r=!1,i=function(e){r||(r=!0,t(e))},s=function(e){r||(r=!0,n(e))},o=e(i,s);o&&"function"===typeof o.then&&o.then(i,s)}class es extends Error{constructor(e,t){super(e),this.response=t}}function ts(e,t,n){e=e.toUpperCase();const r={method:e};return"GET"===e?t+=(-1===t.indexOf("?")?"?":"&")+new URLSearchParams(n):(r.body=new URLSearchParams(n),r.headers={"Content-Type":"application/x-www-form-urlencoded"}),fetch(t,r).then((e=>{if(e.ok)return e.json().then((t=>[t,e]),(()=>{throw new es("Failure parsing JSON",e)}));throw new es("Request failed",e)}))}let ns;function rs(){return null==ns&&(ns=is()),ns}function is(){if("undefined"===typeof document)return!0;let e=document.createElement("div");e.style.position="absolute",e.style.top="0px",e.style.left="0px",e.innerHTML="
",e.querySelector("table").style.height="100px",e.querySelector("div").style.height="100%",document.body.appendChild(e);let t=e.querySelector("div"),n=t.offsetHeight>0;return document.body.removeChild(e),n}class ss extends nr{constructor(){super(...arguments),this.state={forPrint:!1},this.handleBeforePrint=()=>{this.setState({forPrint:!0})},this.handleAfterPrint=()=>{this.setState({forPrint:!1})}}render(){let{props:e}=this,{options:t}=e,{forPrint:n}=this.state,r=n||"auto"===t.height||"auto"===t.contentHeight,i=r||null==t.height?"":t.height,s=["fc",n?"fc-media-print":"fc-media-screen",`fc-direction-${t.direction}`,e.theme.getClass("root")];return rs()||s.push("fc-liquid-hack"),e.children(s,i,r,n)}componentDidMount(){let{emitter:e}=this.props;e.on("_beforeprint",this.handleBeforePrint),e.on("_afterprint",this.handleAfterPrint)}componentWillUnmount(){let{emitter:e}=this.props;e.off("_beforeprint",this.handleBeforePrint),e.off("_afterprint",this.handleAfterPrint)}}class os{constructor(e){this.component=e.component,this.isHitComboAllowed=e.isHitComboAllowed||null}destroy(){}}function as(e,t){return{component:e,el:t.el,useEventCenter:null==t.useEventCenter||t.useEventCenter,isHitComboAllowed:t.isHitComboAllowed||null}}const ls={};class cs{getCurrentData(){return this.currentDataManager.getCurrentData()}dispatch(e){this.currentDataManager.dispatch(e)}get view(){return this.getCurrentData().viewApi}batchRendering(e){e()}updateSize(){this.trigger("_resize",!0)}setOption(e,t){this.dispatch({type:"SET_OPTION",optionName:e,rawOptionValue:t})}getOption(e){return this.currentDataManager.currentCalendarOptionsInput[e]}getAvailableLocaleCodes(){return Object.keys(this.getCurrentData().availableRawLocales)}on(e,t){let{currentDataManager:n}=this;n.currentCalendarOptionsRefiners[e]?n.emitter.on(e,t):Ie.warn(`Unknown listener name '${e}'`)}off(e,t){this.currentDataManager.emitter.off(e,t)}trigger(e,...t){this.currentDataManager.emitter.trigger(e,...t)}changeView(e,t){this.batchRendering((()=>{if(this.unselect(),t)if(t.start&&t.end)this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e}),this.dispatch({type:"SET_OPTION",optionName:"visibleRange",rawOptionValue:t});else{let{dateEnv:n}=this.getCurrentData();this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e,dateMarker:n.createMarker(t)})}else this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e})}))}zoomTo(e,t){let n,r=this.getCurrentData();t=t||"day",n=r.viewSpecs[t]||this.getUnitViewSpec(t),this.unselect(),n?this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:n.type,dateMarker:e}):this.dispatch({type:"CHANGE_DATE",dateMarker:e})}getUnitViewSpec(e){let t,n,{viewSpecs:r,toolbarConfig:i}=this.getCurrentData(),s=[].concat(i.header?i.header.viewsWithButtons:[],i.footer?i.footer.viewsWithButtons:[]);for(let o in r)s.push(o);for(t=0;t{this.dispatch({type:"REMOVE_EVENTS",eventStore:xi(e)})}})}getEventById(e){let t=this.getCurrentData(),{defs:n,instances:r}=t.eventStore;e=String(e);for(let i in n){let s=n[i];if(s.publicId===e){if(s.recurringDef)return new ki(t,s,null);for(let e in r){let n=r[e];if(n.defId===s.defId)return new ki(t,s,n)}}}return null}getEvents(){let e=this.getCurrentData();return Ti(e.eventStore,e)}removeAllEvents(){this.dispatch({type:"REMOVE_ALL_EVENTS"})}getEventSources(){let e=this.getCurrentData(),t=e.eventSources,n=[];for(let r in t)n.push(new Ri(e,t[r]));return n}getEventSourceById(e){let t=this.getCurrentData(),n=t.eventSources;e=String(e);for(let r in n)if(n[r].publicId===e)return new Ri(t,n[r]);return null}addEventSource(e){let t=this.getCurrentData();if(e instanceof Ri)return t.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]}),e;let n=ii(e,t);return n?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[n]}),new Ri(t,n)):null}removeAllEventSources(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})}refetchEvents(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})}scrollToTime(e){let t=Kt(e);t&&this.trigger("_scrollRequest",{time:t})}}function ds(e,t){let n={left:Math.max(e.left,t.left),right:Math.min(e.right,t.right),top:Math.max(e.top,t.top),bottom:Math.min(e.bottom,t.bottom)};return n.leftn:!!t&&e>=t.end)}}function fs(e,t){let n=["fc-day",`fc-day-${Ct[e.dow]}`];return e.isDisabled?n.push("fc-day-disabled"):(e.isToday&&(n.push("fc-day-today"),n.push(t.getClass("today"))),e.isPast&&n.push("fc-day-past"),e.isFuture&&n.push("fc-day-future"),e.isOther&&n.push("fc-day-other")),n}const hs=jn({year:"numeric",month:"long",day:"numeric"}),ps=jn({week:"long"});function gs(e,t,n="day",r=!0){const{dateEnv:i,options:s,calendarApi:o}=e;let a=i.format(t,"week"===n?ps:hs);if(s.navLinks){let e=i.toDate(t);const l=e=>{let r="day"===n?s.navLinkDayClick:"week"===n?s.navLinkWeekClick:null;"function"===typeof r?r.call(o,i.toDate(t),e):("string"===typeof r&&(n=r),o.zoomTo(t,n))};return Object.assign({title:At(s.navLinkHint,[a,e],a),"data-navlink":""},r?ut(l):{onClick:l})}return{"aria-label":a}}let ms;function vs(){return ms||(ms=bs()),ms}function bs(){let e=document.createElement("div");e.style.overflow="scroll",e.style.position="absolute",e.style.top="-9999px",e.style.left="-9999px",document.body.appendChild(e);let t=ys(e);return document.body.removeChild(e),t}function ys(e){return{x:e.offsetHeight-e.clientHeight,y:e.offsetWidth-e.clientWidth}}function As(e){let t=_s(e),n=e.getBoundingClientRect();for(let r of t){let e=ds(n,r.getBoundingClientRect());if(!e)return null;n=e}return n}function _s(e){let t=[];while(e instanceof HTMLElement){let n=window.getComputedStyle(e);if("fixed"===n.position)break;/(auto|scroll)/.test(n.overflow+n.overflowY+n.overflowX)&&t.push(e),e=e.parentNode}return t}class Es{constructor(e,t,n,r){this.els=t;let i=this.originClientRect=e.getBoundingClientRect();n&&this.buildElHorizontals(i.left),r&&this.buildElVerticals(i.top)}buildElHorizontals(e){let t=[],n=[];for(let r of this.els){let i=r.getBoundingClientRect();t.push(i.left-e),n.push(i.right-e)}this.lefts=t,this.rights=n}buildElVerticals(e){let t=[],n=[];for(let r of this.els){let i=r.getBoundingClientRect();t.push(i.top-e),n.push(i.bottom-e)}this.tops=t,this.bottoms=n}leftToIndex(e){let t,{lefts:n,rights:r}=this,i=n.length;for(t=0;t=n[t]&&e=n[t]&&eo.end&&(r+=this.insertEntry({index:e.index,thickness:e.thickness,span:{start:o.end,end:s.end}},i)),r?(n.push({index:e.index,thickness:e.thickness,span:Rs(o,s)},...i),r):(n.push(e),0)}insertEntryAt(e,t){let{entriesByLevel:n,levelCoords:r}=this;-1===t.lateral?(ks(r,t.level,t.levelCoord),ks(n,t.level,[e])):ks(n[t.level],t.lateral,e),this.stackCnts[Ss(e)]=t.stackCnt}findInsertion(e){let{levelCoords:t,entriesByLevel:n,strictOrder:r,stackCnts:i}=this,s=t.length,o=0,a=-1,l=-1,c=null,d=0;for(let h=0;h=o+e.thickness)break;let u,f=n[h],p=xs(f,e.span.start,Ds),g=p[0]+p[1];while((u=f[g])&&u.span.starto&&(o=e,c=u,a=h,l=g),e===o&&(d=Math.max(d,i[Ss(u)]+1)),g+=1}}let u=0;if(c){u=a+1;while(un(e[i-1]))return[i,0];while(ro))return[s,1];r=s+1}}return[r,0]}Boolean;function Ts(e,t){return jn(!e||t>10?{weekday:"short"}:t>1?{weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}:{weekday:"long"})}const Os="fc-col-header-cell";function Ms(e){return e.text}class Is extends nr{render(){let{dateEnv:e,options:t,theme:n,viewApi:r}=this.context,{props:i}=this,{date:s,dateProfile:o}=i,a=us(s,i.todayRange,null,o),l=[Os].concat(fs(a,n)),c=e.format(s,i.dayHeaderFormat),d=!a.isDisabled&&i.colCnt>1?gs(this.context,s):{},u=Object.assign(Object.assign(Object.assign({date:e.toDate(s),view:r},i.extraRenderProps),{text:c}),a);return A(dr,{elTag:"th",elClasses:l,elAttrs:Object.assign({role:"columnheader",colSpan:i.colSpan,"data-date":a.isDisabled?void 0:un(s)},i.extraDataAttrs),renderProps:u,generatorName:"dayHeaderContent",generator:t.dayHeaderContent||Ms,classNameGenerator:t.dayHeaderClassNames,didMount:t.dayHeaderDidMount,willUnmount:t.dayHeaderWillUnmount},(e=>A("div",{className:"fc-scrollgrid-sync-inner"},!a.isDisabled&&A(e,{elTag:"a",elAttrs:d,elClasses:["fc-col-header-cell-cushion",i.isSticky&&"fc-sticky"]}))))}}const Ns=jn({weekday:"long"});class Ps extends nr{render(){let{props:e}=this,{dateEnv:t,theme:n,viewApi:r,options:i}=this.context,s=Dt(new Date(2592e5),e.dow),o={dow:e.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},a=t.format(s,e.dayHeaderFormat),l=Object.assign(Object.assign(Object.assign(Object.assign({date:s},o),{view:r}),e.extraRenderProps),{text:a});return A(dr,{elTag:"th",elClasses:[Os,...fs(o,n),...e.extraClassNames||[]],elAttrs:Object.assign({role:"columnheader",colSpan:e.colSpan},e.extraDataAttrs),renderProps:l,generatorName:"dayHeaderContent",generator:i.dayHeaderContent||Ms,classNameGenerator:i.dayHeaderClassNames,didMount:i.dayHeaderDidMount,willUnmount:i.dayHeaderWillUnmount},(n=>A("div",{className:"fc-scrollgrid-sync-inner"},A(n,{elTag:"a",elClasses:["fc-col-header-cell-cushion",e.isSticky&&"fc-sticky"],elAttrs:{"aria-label":t.format(s,Ns)}}))))}}class Hs extends w{constructor(e,t){super(e,t),this.initialNowDate=Rr(t.options.now,t.dateEnv),this.initialNowQueriedMs=(new Date).valueOf(),this.state=this.computeTiming().currentState}render(){let{props:e,state:t}=this;return e.children(t.nowDate,t.todayRange)}componentDidMount(){this.setTimeout()}componentDidUpdate(e){e.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())}componentWillUnmount(){this.clearTimeout()}computeTiming(){let{props:e,context:t}=this,n=St(this.initialNowDate,(new Date).valueOf()-this.initialNowQueriedMs),r=t.dateEnv.startOf(n,e.unit),i=t.dateEnv.add(r,Kt(1,e.unit)),s=i.valueOf()-n.valueOf();return s=Math.min(864e5,s),{currentState:{nowDate:r,todayRange:Bs(r)},nextState:{nowDate:i,todayRange:Bs(i)},waitMs:s}}setTimeout(){let{nextState:e,waitMs:t}=this.computeTiming();this.timeoutId=setTimeout((()=>{this.setState(e,(()=>{this.setTimeout()}))}),t)}clearTimeout(){this.timeoutId&&clearTimeout(this.timeoutId)}}function Bs(e){let t=Pt(e),n=Dt(t,1);return{start:t,end:n}}Hs.contextType=Kn;class js extends nr{constructor(){super(...arguments),this.createDayHeaderFormatter=$e(zs)}render(){let{context:e}=this,{dates:t,dateProfile:n,datesRepDistinctDays:r,renderIntro:i}=this.props,s=this.createDayHeaderFormatter(e.options.dayHeaderFormat,r,t.length);return A(Hs,{unit:"day"},((e,o)=>A("tr",{role:"row"},i&&i("day"),t.map((e=>r?A(Is,{key:e.toISOString(),date:e,dateProfile:n,todayRange:o,colCnt:t.length,dayHeaderFormat:s}):A(Ps,{key:e.getUTCDay(),dow:e.getUTCDay(),dayHeaderFormat:s}))))))}}function zs(e,t,n){return e||Ts(t,n)}class Us{constructor(e,t){let n=e.start,{end:r}=e,i=[],s=[],o=-1;while(n=t.length?t[t.length-1]+1:t[n]}}class Vs{constructor(e,t){let n,r,i,{dates:s}=e;if(t){for(r=s[0].getUTCDay(),n=1;n{this.el=e,sr(this.props.elRef,e)}}render(){let{props:e}=this,{liquid:t,liquidIsAbsolute:n}=e,r=t&&n,i=["fc-scroller"];return t&&(n?i.push("fc-scroller-liquid-absolute"):i.push("fc-scroller-liquid")),A("div",{ref:this.handleEl,className:i.join(" "),style:{overflowX:e.overflowX,overflowY:e.overflowY,left:r&&-(e.overcomeLeft||0)||"",right:r&&-(e.overcomeRight||0)||"",bottom:r&&-(e.overcomeBottom||0)||"",marginLeft:!r&&-(e.overcomeLeft||0)||"",marginRight:!r&&-(e.overcomeRight||0)||"",marginBottom:!r&&-(e.overcomeBottom||0)||"",maxHeight:e.maxHeight||""}},e.children)}needsXScrolling(){if(Ls.test(this.props.overflowX))return!1;let{el:e}=this,t=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),{children:n}=e;for(let r=0;rt)return!0}return!1}needsYScrolling(){if(Ls.test(this.props.overflowY))return!1;let{el:e}=this,t=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),{children:n}=e;for(let r=0;rt)return!0}return!1}getXScrollbarWidth(){return Ls.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight}getYScrollbarWidth(){return Ls.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth}}class Gs{constructor(e){this.masterCallback=e,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=(e,t)=>{let{depths:n,currentMap:r}=this,i=!1,s=!1;null!==e?(i=t in r,r[t]=e,n[t]=(n[t]||0)+1,s=!0):(n[t]-=1,n[t]||(delete r[t],delete this.callbackMap[t],i=!0)),this.masterCallback&&(i&&this.masterCallback(null,String(t)),s&&this.masterCallback(e,String(t)))}}createRef(e){let t=this.callbackMap[e];return t||(t=this.callbackMap[e]=t=>{this.handleValue(t,String(e))}),t}collect(e,t,n){return qe(this.currentMap,e,t,n)}getAll(){return Ve(this.currentMap)}}function Zs(e){let t=tt(e,".fc-scrollgrid-shrink"),n=0;for(let r of t)n=Math.max(n,Et(r));return Math.ceil(n)}function qs(e,t){return e.liquid&&t.liquid}function Ys(e,t){return null!=t.maxHeight||qs(e,t)}function $s(e,t,n,r){let{expandRows:i}=n,s="function"===typeof t.content?t.content(n):A("table",{role:"presentation",className:[t.tableClassName,e.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:n.tableMinWidth,width:n.clientWidth,height:i?n.clientHeight:""}},n.tableColGroupNode,A(r?"thead":"tbody",{role:"presentation"},"function"===typeof t.rowContent?t.rowContent(n):t.rowContent));return s}function Js(e,t){return Ye(e,t,Fe)}function Xs(e,t){let n=[];for(let r of e){let e=r.span||1;for(let i=0;ie),Js),this.renderMicroColGroup=$e(Xs),this.scrollerRefs=new Gs,this.scrollerElRefs=new Gs(this._handleScrollerEl.bind(this)),this.state={shrinkWidth:null,forceYScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{}},this.handleSizing=()=>{this.safeSetState(Object.assign({shrinkWidth:this.computeShrinkWidth()},this.computeScrollerDims()))}}render(){let{props:e,state:t,context:n}=this,r=e.sections||[],i=this.processCols(e.cols),s=this.renderMicroColGroup(i,t.shrinkWidth),o=to(e.liquid,n);e.collapsibleWidth&&o.push("fc-scrollgrid-collapsible");let a,l=r.length,c=0,d=[],u=[],f=[];while(c{}},r);return A(r?"th":"td",{ref:n.elRef,role:"presentation"},A("div",{className:"fc-scroller-harness"+(c?" fc-scroller-harness-liquid":"")},A(Qs,{ref:this.scrollerRefs.createRef(u),elRef:this.scrollerElRefs.createRef(u),overflowY:d,overflowX:i.liquid?"hidden":"visible",maxHeight:e.maxHeight,liquid:c,liquidIsAbsolute:!0},f)))}_handleScrollerEl(e,t){let n=ao(this.props.sections,t);n&&sr(n.chunk.scrollerElRef,e)}componentDidMount(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(){this.handleSizing()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}computeShrinkWidth(){return eo(this.props.cols)?Zs(this.scrollerElRefs.getAll()):0}computeScrollerDims(){let e=vs(),{scrollerRefs:t,scrollerElRefs:n}=this,r=!1,i={},s={};for(let o in t.currentMap){let e=t.currentMap[o];if(e&&e.needsYScrolling()){r=!0;break}}for(let o of this.props.sections){let t=o.key,a=n.currentMap[t];if(a){let n=a.parentNode;i[t]=Math.floor(n.getBoundingClientRect().width-(r?e.y:0)),s[t]=Math.floor(n.getBoundingClientRect().height)}}return{forceYScrollbars:r,scrollerClientWidths:i,scrollerClientHeights:s}}}function ao(e,t){for(let n of e)if(n.key===t)return n;return null}oo.addStateEquality({scrollerClientWidths:Fe,scrollerClientHeights:Fe});class lo extends nr{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,e&&Mi(e,this.props.seg)}}render(){const{props:e,context:t}=this,{options:n}=t,{seg:r}=e,{eventRange:i}=r,{ui:s}=i,o={event:new ki(t,i.def,i.instance),view:t.viewApi,timeText:e.timeText,textColor:s.textColor,backgroundColor:s.backgroundColor,borderColor:s.borderColor,isDraggable:!e.disableDragging&&ji(r,t),isStartResizable:!e.disableResizing&&zi(r,t),isEndResizable:!e.disableResizing&&Ui(r),isMirror:Boolean(e.isDragging||e.isResizing||e.isDateSelecting),isStart:Boolean(r.isStart),isEnd:Boolean(r.isEnd),isPast:Boolean(e.isPast),isFuture:Boolean(e.isFuture),isToday:Boolean(e.isToday),isSelected:Boolean(e.isSelected),isDragging:Boolean(e.isDragging),isResizing:Boolean(e.isResizing)};return A(dr,Object.assign({},e,{elRef:this.handleEl,elClasses:[...Wi(o),...r.eventRange.ui.classNames,...e.elClasses||[]],renderProps:o,generatorName:"eventContent",generator:n.eventContent||e.defaultGenerator,classNameGenerator:n.eventClassNames,didMount:n.eventDidMount,willUnmount:n.eventWillUnmount}))}componentDidUpdate(e){this.el&&this.props.seg!==e.seg&&Mi(this.el,this.props.seg)}}class co extends nr{render(){let{props:e,context:t}=this,{options:n}=t,{seg:r}=e,{ui:i}=r.eventRange,s=n.eventTimeFormat||e.defaultTimeFormat,o=Vi(r,s,t,e.defaultDisplayEventTime,e.defaultDisplayEventEnd);return A(lo,Object.assign({},e,{elTag:"a",elStyle:{borderColor:i.borderColor,backgroundColor:i.backgroundColor},elAttrs:Qi(r,t),defaultGenerator:uo,timeText:o}),((e,t)=>A(C,null,A(e,{elTag:"div",elClasses:["fc-event-main"],elStyle:{color:t.textColor}}),Boolean(t.isStartResizable)&&A("div",{className:"fc-event-resizer fc-event-resizer-start"}),Boolean(t.isEndResizable)&&A("div",{className:"fc-event-resizer fc-event-resizer-end"}))))}}function uo(e){return A("div",{className:"fc-event-main-frame"},e.timeText&&A("div",{className:"fc-event-time"},e.timeText),A("div",{className:"fc-event-title-container"},A("div",{className:"fc-event-title fc-sticky"},e.event.title||A(C,null," "))))}const fo=jn({day:"numeric"});class ho extends nr{constructor(){super(...arguments),this.refineRenderProps=Je(go)}render(){let{props:e,context:t}=this,{options:n}=t,r=this.refineRenderProps({date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,showDayNumber:e.showDayNumber,extraRenderProps:e.extraRenderProps,viewApi:t.viewApi,dateEnv:t.dateEnv});return A(dr,Object.assign({},e,{elClasses:[...fs(r,t.theme),...e.elClasses||[]],elAttrs:Object.assign(Object.assign({},e.elAttrs),r.isDisabled?{}:{"data-date":un(e.date)}),renderProps:r,generatorName:"dayCellContent",generator:n.dayCellContent||e.defaultGenerator,classNameGenerator:r.isDisabled?void 0:n.dayCellClassNames,didMount:n.dayCellDidMount,willUnmount:n.dayCellWillUnmount}))}}function po(e){return Boolean(e.dayCellContent||ar("dayCellContent",e))}function go(e){let{date:t,dateEnv:n}=e,r=us(t,e.todayRange,null,e.dateProfile);return Object.assign(Object.assign(Object.assign({date:n.toDate(t),view:e.viewApi},r),{dayNumberText:e.showDayNumber?n.format(t,fo):""}),e.extraRenderProps)}class mo extends nr{render(){let{props:e}=this,{seg:t}=e;return A(lo,{elTag:"div",elClasses:["fc-bg-event"],elStyle:{backgroundColor:t.eventRange.ui.backgroundColor},defaultGenerator:vo,seg:t,timeText:"",isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday,disableDragging:!0,disableResizing:!0})}}function vo(e){let{title:t}=e.event;return t&&A("div",{className:"fc-event-title"},e.event.title)}function bo(e){return A("div",{className:`fc-${e}`})}const yo=e=>A(Kn.Consumer,null,(t=>{let{dateEnv:n,options:r}=t,{date:i}=e,s=r.weekNumberFormat||e.defaultFormat,o=n.computeWeekNumber(i),a=n.format(i,s),l={num:o,text:a,date:i};return A(dr,Object.assign({},e,{renderProps:l,generatorName:"weekNumberContent",generator:r.weekNumberContent||Ao,classNameGenerator:r.weekNumberClassNames,didMount:r.weekNumberDidMount,willUnmount:r.weekNumberWillUnmount}))}));function Ao(e){return e.text}const _o=10;class Eo extends nr{constructor(){super(...arguments),this.state={titleId:at()},this.handleRootEl=e=>{this.rootEl=e,this.props.elRef&&sr(this.props.elRef,e)},this.handleDocumentMouseDown=e=>{const t=st(e);this.rootEl.contains(t)||this.handleCloseClick()},this.handleDocumentKeyDown=e=>{"Escape"===e.key&&this.handleCloseClick()},this.handleCloseClick=()=>{let{onClose:e}=this.props;e&&e()}}render(){let{theme:e,options:t}=this.context,{props:n,state:r}=this,i=["fc-popover",e.getClass("popover")].concat(n.extraClassNames||[]);return _e(A("div",Object.assign({},n.extraAttrs,{id:n.id,className:i.join(" "),"aria-labelledby":r.titleId,ref:this.handleRootEl}),A("div",{className:"fc-popover-header "+e.getClass("popoverHeader")},A("span",{className:"fc-popover-title",id:r.titleId},n.title),A("span",{className:"fc-popover-close "+e.getIconClass("close"),title:t.closeHint,onClick:this.handleCloseClick})),A("div",{className:"fc-popover-body "+e.getClass("popoverContent")},n.children)),n.parentEl)}componentDidMount(){document.addEventListener("mousedown",this.handleDocumentMouseDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.updateSize()}componentWillUnmount(){document.removeEventListener("mousedown",this.handleDocumentMouseDown),document.removeEventListener("keydown",this.handleDocumentKeyDown)}updateSize(){let{isRtl:e}=this.context,{alignmentEl:t,alignGridTop:n}=this.props,{rootEl:r}=this,i=As(t);if(i){let s=r.getBoundingClientRect(),o=n?Ke(t,".fc-scrollgrid").getBoundingClientRect().top:i.top,a=e?i.right-s.width:i.left;o=Math.max(o,_o),a=Math.min(a,document.documentElement.clientWidth-_o-s.width),a=Math.max(a,_o);let l=r.offsetParent.getBoundingClientRect();rt(r,{top:o-l.top,left:a-l.left})}}}class Co extends Cs{constructor(){super(...arguments),this.handleRootEl=e=>{this.rootEl=e,e?this.context.registerInteractiveComponent(this,{el:e,useEventCenter:!1}):this.context.unregisterInteractiveComponent(this)}}render(){let{options:e,dateEnv:t}=this.context,{props:n}=this,{startDate:r,todayRange:i,dateProfile:s}=n,o=t.format(r,e.dayPopoverFormat);return A(ho,{elRef:this.handleRootEl,date:r,dateProfile:s,todayRange:i},((t,r,i)=>A(Eo,{elRef:i.ref,id:n.id,title:o,extraClassNames:["fc-more-popover"].concat(i.className||[]),extraAttrs:i,parentEl:n.parentEl,alignmentEl:n.alignmentEl,alignGridTop:n.alignGridTop,onClose:n.onClose},po(e)&&A(t,{elTag:"div",elClasses:["fc-more-popover-misc"]}),n.children)))}queryHit(e,t,n,r){let{rootEl:i,props:s}=this;return e>=0&&e=0&&t{let{props:t,context:n}=this,{moreLinkClick:r}=n.options,i=So(t).start;function s(e){let{def:t,instance:r,range:i}=e.eventRange;return{event:new ki(n,t,r),start:n.dateEnv.toDate(i.start),end:n.dateEnv.toDate(i.end),isStart:e.isStart,isEnd:e.isEnd}}"function"===typeof r&&(r=r({date:i,allDay:Boolean(t.allDayDate),allSegs:t.allSegs.map(s),hiddenSegs:t.hiddenSegs.map(s),jsEvent:e,view:n.viewApi})),r&&"popover"!==r?"string"===typeof r&&n.calendarApi.zoomTo(i,r):this.setState({isPopoverOpen:!0})},this.handlePopoverClose=()=>{this.setState({isPopoverOpen:!1})}}render(){let{props:e,state:t}=this;return A(Kn.Consumer,null,(n=>{let{viewApi:r,options:i,calendarApi:s}=n,{moreLinkText:o}=i,{moreCnt:a}=e,l=So(e),c="function"===typeof o?o.call(s,a):`+${a} ${o}`,d=At(i.moreLinkHint,[a],c),u={num:a,shortText:`+${a}`,text:c,view:r};return A(C,null,Boolean(e.moreCnt)&&A(dr,{elTag:e.elTag||"a",elRef:this.linkElRef,elClasses:[...e.elClasses||[],"fc-more-link"],elAttrs:Object.assign(Object.assign(Object.assign({},e.elAttrs),ut(this.handleClick)),{title:d,"aria-expanded":t.isPopoverOpen,"aria-controls":t.isPopoverOpen?t.popoverId:""}),renderProps:u,generatorName:"moreLinkContent",generator:i.moreLinkContent||e.defaultGenerator||Do,classNameGenerator:i.moreLinkClassNames,didMount:i.moreLinkDidMount,willUnmount:i.moreLinkWillUnmount},e.children),t.isPopoverOpen&&A(Co,{id:t.popoverId,startDate:l.start,endDate:l.end,dateProfile:e.dateProfile,todayRange:e.todayRange,extraDateSpan:e.extraDateSpan,parentEl:this.parentEl,alignmentEl:e.alignmentElRef?e.alignmentElRef.current:this.linkElRef.current,alignGridTop:e.alignGridTop,onClose:this.handlePopoverClose},e.popoverContent()))}))}componentDidMount(){this.updateParentEl()}componentDidUpdate(){this.updateParentEl()}updateParentEl(){this.linkElRef.current&&(this.parentEl=Ke(this.linkElRef.current,".fc-view-harness"))}}function Do(e){return e.text}function So(e){if(e.allDayDate)return{start:e.allDayDate,end:Dt(e.allDayDate,1)};let{hiddenSegs:t}=e;return{start:Ro(t),end:xo(t)}}function Ro(e){return e.reduce(ko).eventRange.range.start}function ko(e,t){return e.eventRange.range.startt.eventRange.range.end?e:t}class Oo{constructor(){this.handlers=[]}set(e){this.currentValue=e;for(let t of this.handlers)t(e)}subscribe(e){this.handlers.push(e),void 0!==this.currentValue&&e(this.currentValue)}}class Mo extends Oo{constructor(){super(...arguments),this.map=new Map}handle(e){const{map:t}=this;let n=!1;e.isActive?(t.set(e.id,e),n=!0):t.has(e.id)&&(t.delete(e.id),n=!0),n&&this.set(t)}}var Io=n(15941),No=':root{--fc-small-font-size:.85em;--fc-page-bg-color:#fff;--fc-neutral-bg-color:hsla(0,0%,82%,.3);--fc-neutral-text-color:grey;--fc-border-color:#ddd;--fc-button-text-color:#fff;--fc-button-bg-color:#2c3e50;--fc-button-border-color:#2c3e50;--fc-button-hover-bg-color:#1e2b37;--fc-button-hover-border-color:#1a252f;--fc-button-active-bg-color:#1a252f;--fc-button-active-border-color:#151e27;--fc-event-bg-color:#3788d8;--fc-event-border-color:#3788d8;--fc-event-text-color:#fff;--fc-event-selected-overlay-color:rgba(0,0,0,.25);--fc-more-link-bg-color:#d0d0d0;--fc-more-link-text-color:inherit;--fc-event-resizer-thickness:8px;--fc-event-resizer-dot-total-width:8px;--fc-event-resizer-dot-border-width:1px;--fc-non-business-color:hsla(0,0%,84%,.3);--fc-bg-event-color:#8fdf82;--fc-bg-event-opacity:0.3;--fc-highlight-color:rgba(188,232,241,.3);--fc-today-bg-color:rgba(255,220,40,.15);--fc-now-indicator-color:red}.fc-not-allowed,.fc-not-allowed .fc-event{cursor:not-allowed}.fc-unselectable{-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-user-select:none;-moz-user-select:none;user-select:none}.fc{display:flex;flex-direction:column;font-size:1em}.fc,.fc *,.fc :after,.fc :before{box-sizing:border-box}.fc table{border-collapse:collapse;border-spacing:0;font-size:1em}.fc th{text-align:center}.fc td,.fc th{padding:0;vertical-align:top}.fc a[data-navlink]{cursor:pointer}.fc a[data-navlink]:hover{text-decoration:underline}.fc-direction-ltr{direction:ltr;text-align:left}.fc-direction-rtl{direction:rtl;text-align:right}.fc-theme-standard td,.fc-theme-standard th{border:1px solid var(--fc-border-color)}.fc-liquid-hack td,.fc-liquid-hack th{position:relative}@font-face{font-family:fcicons;font-style:normal;font-weight:400;src:url("data:application/x-font-ttf;charset=utf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gIASGRkSgBkSERmAEhkZEoAZERIZAAABAOIAjQMeAskAIAAAExcHBhQXFjI/ARcWMjc2NC8BNzY0JyYiDwEnJiIHBhQX4uLiDQ0MJAzi4gwkDA0N4uINDQwkDOLiDCQMDQ0CjeLiDSMMDQ3h4Q0NDCMN4uIMIw0MDOLiDAwNIwwAAAABAAAAAQAAa5n0y18PPPUACwQAAAAAANivOVsAAAAA2K85WwAAAAADqwNVAAAACAACAAAAAAAAAAEAAAPA/8AAAAQAAAAAAAOrAAEAAAAAAAAAAAAAAAAAAAALBAAAAAAAAAAAAAAAAgAAAAQAAWIEAAFiBAAA4gQAAOIEAABVBAAAVQQAAOIAAAAAAAoAFAAeAEQAagCqAOoBngJkApoAAQAAAAsAigADAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAA4ArgABAAAAAAABAAcAAAABAAAAAAACAAcAYAABAAAAAAADAAcANgABAAAAAAAEAAcAdQABAAAAAAAFAAsAFQABAAAAAAAGAAcASwABAAAAAAAKABoAigADAAEECQABAA4ABwADAAEECQACAA4AZwADAAEECQADAA4APQADAAEECQAEAA4AfAADAAEECQAFABYAIAADAAEECQAGAA4AUgADAAEECQAKADQApGZjaWNvbnMAZgBjAGkAYwBvAG4Ac1ZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMGZjaWNvbnMAZgBjAGkAYwBvAG4Ac2ZjaWNvbnMAZgBjAGkAYwBvAG4Ac1JlZ3VsYXIAUgBlAGcAdQBsAGEAcmZjaWNvbnMAZgBjAGkAYwBvAG4Ac0ZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=") format("truetype")}.fc-icon{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-block;font-family:fcicons!important;font-style:normal;font-variant:normal;font-weight:400;height:1em;line-height:1;text-align:center;text-transform:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:1em}.fc-icon-chevron-left:before{content:"\\e900"}.fc-icon-chevron-right:before{content:"\\e901"}.fc-icon-chevrons-left:before{content:"\\e902"}.fc-icon-chevrons-right:before{content:"\\e903"}.fc-icon-minus-square:before{content:"\\e904"}.fc-icon-plus-square:before{content:"\\e905"}.fc-icon-x:before{content:"\\e906"}.fc .fc-button{border-radius:0;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;overflow:visible;text-transform:none}.fc .fc-button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}.fc .fc-button{-webkit-appearance:button}.fc .fc-button:not(:disabled){cursor:pointer}.fc .fc-button::-moz-focus-inner{border-style:none;padding:0}.fc .fc-button{background-color:transparent;border:1px solid transparent;border-radius:.25em;display:inline-block;font-size:1em;font-weight:400;line-height:1.5;padding:.4em .65em;text-align:center;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle}.fc .fc-button:hover{text-decoration:none}.fc .fc-button:focus{box-shadow:0 0 0 .2rem rgba(44,62,80,.25);outline:0}.fc .fc-button:disabled{opacity:.65}.fc .fc-button-primary{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:hover{background-color:var(--fc-button-hover-bg-color);border-color:var(--fc-button-hover-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:disabled{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button-primary:not(:disabled).fc-button-active,.fc .fc-button-primary:not(:disabled):active{background-color:var(--fc-button-active-bg-color);border-color:var(--fc-button-active-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:not(:disabled).fc-button-active:focus,.fc .fc-button-primary:not(:disabled):active:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button .fc-icon{font-size:1.5em;vertical-align:middle}.fc .fc-button-group{display:inline-flex;position:relative;vertical-align:middle}.fc .fc-button-group>.fc-button{flex:1 1 auto;position:relative}.fc .fc-button-group>.fc-button.fc-button-active,.fc .fc-button-group>.fc-button:active,.fc .fc-button-group>.fc-button:focus,.fc .fc-button-group>.fc-button:hover{z-index:1}.fc-direction-ltr .fc-button-group>.fc-button:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0;margin-left:-1px}.fc-direction-ltr .fc-button-group>.fc-button:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.fc-direction-rtl .fc-button-group>.fc-button:not(:first-child){border-bottom-right-radius:0;border-top-right-radius:0;margin-right:-1px}.fc-direction-rtl .fc-button-group>.fc-button:not(:last-child){border-bottom-left-radius:0;border-top-left-radius:0}.fc .fc-toolbar{align-items:center;display:flex;justify-content:space-between}.fc .fc-toolbar.fc-header-toolbar{margin-bottom:1.5em}.fc .fc-toolbar.fc-footer-toolbar{margin-top:1.5em}.fc .fc-toolbar-title{font-size:1.75em;margin:0}.fc-direction-ltr .fc-toolbar>*>:not(:first-child){margin-left:.75em}.fc-direction-rtl .fc-toolbar>*>:not(:first-child){margin-right:.75em}.fc-direction-rtl .fc-toolbar-ltr{flex-direction:row-reverse}.fc .fc-scroller{-webkit-overflow-scrolling:touch;position:relative}.fc .fc-scroller-liquid{height:100%}.fc .fc-scroller-liquid-absolute{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-scroller-harness{direction:ltr;overflow:hidden;position:relative}.fc .fc-scroller-harness-liquid{height:100%}.fc-direction-rtl .fc-scroller-harness>.fc-scroller{direction:rtl}.fc-theme-standard .fc-scrollgrid{border:1px solid var(--fc-border-color)}.fc .fc-scrollgrid,.fc .fc-scrollgrid table{table-layout:fixed;width:100%}.fc .fc-scrollgrid table{border-left-style:hidden;border-right-style:hidden;border-top-style:hidden}.fc .fc-scrollgrid{border-bottom-width:0;border-collapse:separate;border-right-width:0}.fc .fc-scrollgrid-liquid{height:100%}.fc .fc-scrollgrid-section,.fc .fc-scrollgrid-section table,.fc .fc-scrollgrid-section>td{height:1px}.fc .fc-scrollgrid-section-liquid>td{height:100%}.fc .fc-scrollgrid-section>*{border-left-width:0;border-top-width:0}.fc .fc-scrollgrid-section-footer>*,.fc .fc-scrollgrid-section-header>*{border-bottom-width:0}.fc .fc-scrollgrid-section-body table,.fc .fc-scrollgrid-section-footer table{border-bottom-style:hidden}.fc .fc-scrollgrid-section-sticky>*{background:var(--fc-page-bg-color);position:sticky;z-index:3}.fc .fc-scrollgrid-section-header.fc-scrollgrid-section-sticky>*{top:0}.fc .fc-scrollgrid-section-footer.fc-scrollgrid-section-sticky>*{bottom:0}.fc .fc-scrollgrid-sticky-shim{height:1px;margin-bottom:-1px}.fc-sticky{position:sticky}.fc .fc-view-harness{flex-grow:1;position:relative}.fc .fc-view-harness-active>.fc-view{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-col-header-cell-cushion{display:inline-block;padding:2px 4px}.fc .fc-bg-event,.fc .fc-highlight,.fc .fc-non-business{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-non-business{background:var(--fc-non-business-color)}.fc .fc-bg-event{background:var(--fc-bg-event-color);opacity:var(--fc-bg-event-opacity)}.fc .fc-bg-event .fc-event-title{font-size:var(--fc-small-font-size);font-style:italic;margin:.5em}.fc .fc-highlight{background:var(--fc-highlight-color)}.fc .fc-cell-shaded,.fc .fc-day-disabled{background:var(--fc-neutral-bg-color)}a.fc-event,a.fc-event:hover{text-decoration:none}.fc-event.fc-event-draggable,.fc-event[href]{cursor:pointer}.fc-event .fc-event-main{position:relative;z-index:2}.fc-event-dragging:not(.fc-event-selected){opacity:.75}.fc-event-dragging.fc-event-selected{box-shadow:0 2px 7px rgba(0,0,0,.3)}.fc-event .fc-event-resizer{display:none;position:absolute;z-index:4}.fc-event-selected .fc-event-resizer,.fc-event:hover .fc-event-resizer{display:block}.fc-event-selected .fc-event-resizer{background:var(--fc-page-bg-color);border-color:inherit;border-radius:calc(var(--fc-event-resizer-dot-total-width)/2);border-style:solid;border-width:var(--fc-event-resizer-dot-border-width);height:var(--fc-event-resizer-dot-total-width);width:var(--fc-event-resizer-dot-total-width)}.fc-event-selected .fc-event-resizer:before{bottom:-20px;content:"";left:-20px;position:absolute;right:-20px;top:-20px}.fc-event-selected,.fc-event:focus{box-shadow:0 2px 5px rgba(0,0,0,.2)}.fc-event-selected:before,.fc-event:focus:before{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:3}.fc-event-selected:after,.fc-event:focus:after{background:var(--fc-event-selected-overlay-color);bottom:-1px;content:"";left:-1px;position:absolute;right:-1px;top:-1px;z-index:1}.fc-h-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-h-event .fc-event-main{color:var(--fc-event-text-color)}.fc-h-event .fc-event-main-frame{display:flex}.fc-h-event .fc-event-time{max-width:100%;overflow:hidden}.fc-h-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-width:0}.fc-h-event .fc-event-title{display:inline-block;left:0;max-width:100%;overflow:hidden;right:0;vertical-align:top}.fc-h-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-start),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-end){border-bottom-left-radius:0;border-left-width:0;border-top-left-radius:0}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-end),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-start){border-bottom-right-radius:0;border-right-width:0;border-top-right-radius:0}.fc-h-event:not(.fc-event-selected) .fc-event-resizer{bottom:0;top:0;width:var(--fc-event-resizer-thickness)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end{cursor:w-resize;left:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start{cursor:e-resize;right:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-h-event.fc-event-selected .fc-event-resizer{margin-top:calc(var(--fc-event-resizer-dot-total-width)*-.5);top:50%}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-start,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-end{left:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-end,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-start{right:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc .fc-popover{box-shadow:0 2px 6px rgba(0,0,0,.15);position:absolute;z-index:9999}.fc .fc-popover-header{align-items:center;display:flex;flex-direction:row;justify-content:space-between;padding:3px 4px}.fc .fc-popover-title{margin:0 2px}.fc .fc-popover-close{cursor:pointer;font-size:1.1em;opacity:.65}.fc-theme-standard .fc-popover{background:var(--fc-page-bg-color);border:1px solid var(--fc-border-color)}.fc-theme-standard .fc-popover-header{background:var(--fc-neutral-bg-color)}';Ne(No);const Po=[],Ho={code:"en",week:{dow:0,doy:4},direction:"ltr",buttonText:{prev:"prev",next:"next",prevYear:"prev year",nextYear:"next year",year:"year",today:"today",month:"month",week:"week",day:"day",list:"list"},weekText:"W",weekTextLong:"Week",closeHint:"Close",timeHint:"Time",eventHint:"Event",allDayText:"all-day",moreLinkText:"more",noEventsText:"No events to display"},Bo=Object.assign(Object.assign({},Ho),{buttonHints:{prev:"Previous $0",next:"Next $0",today(e,t){return"day"===t?"Today":`This ${e}`}},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint(e){return`Show ${e} more event${1===e?"":"s"}`}});function jo(e){let t=e.length>0?e[0].code:"en",n=Po.concat(e),r={en:Bo};for(let i of n)r[i.code]=i;return{map:r,defaultCode:t}}function zo(e,t){return"object"!==typeof e||Array.isArray(e)?Uo(e,t):Fo(e.code,[e.code],e)}function Uo(e,t){let n=[].concat(e||[]),r=Vo(n,t)||Bo;return Fo(e,n,r)}function Vo(e,t){for(let n=0;n0;e-=1){let n=r.slice(0,e).join("-");if(t[n])return t[n]}}return null}function Fo(e,t,n){let r=Be([Ho,n],["buttonText"]);delete r.code;let{week:i}=r;return delete r.week,{codeArg:e,codes:t,week:i,simpleNumberFormat:new Intl.NumberFormat(e),options:r}}function Wo(e){return{id:pt(),name:e.name,premiumReleaseDate:e.premiumReleaseDate?new Date(e.premiumReleaseDate):void 0,deps:e.deps||[],reducers:e.reducers||[],isLoadingFuncs:e.isLoadingFuncs||[],contextInit:[].concat(e.contextInit||[]),eventRefiners:e.eventRefiners||{},eventDefMemberAdders:e.eventDefMemberAdders||[],eventSourceRefiners:e.eventSourceRefiners||{},isDraggableTransformers:e.isDraggableTransformers||[],eventDragMutationMassagers:e.eventDragMutationMassagers||[],eventDefMutationAppliers:e.eventDefMutationAppliers||[],dateSelectionTransformers:e.dateSelectionTransformers||[],datePointTransforms:e.datePointTransforms||[],dateSpanTransforms:e.dateSpanTransforms||[],views:e.views||{},viewPropsTransformers:e.viewPropsTransformers||[],isPropsValid:e.isPropsValid||null,externalDefTransforms:e.externalDefTransforms||[],viewContainerAppends:e.viewContainerAppends||[],eventDropTransformers:e.eventDropTransformers||[],componentInteractions:e.componentInteractions||[],calendarInteractions:e.calendarInteractions||[],themeClasses:e.themeClasses||{},eventSourceDefs:e.eventSourceDefs||[],cmdFormatter:e.cmdFormatter,recurringTypes:e.recurringTypes||[],namedTimeZonedImpl:e.namedTimeZonedImpl,initialView:e.initialView||"",elementDraggingImpl:e.elementDraggingImpl,optionChangeHandlers:e.optionChangeHandlers||{},scrollGridImpl:e.scrollGridImpl||null,listenerRefiners:e.listenerRefiners||{},optionRefiners:e.optionRefiners||{},propSetHandlers:e.propSetHandlers||{}}}function Lo(e,t){let n={},r={premiumReleaseDate:void 0,reducers:[],isLoadingFuncs:[],contextInit:[],eventRefiners:{},eventDefMemberAdders:[],eventSourceRefiners:{},isDraggableTransformers:[],eventDragMutationMassagers:[],eventDefMutationAppliers:[],dateSelectionTransformers:[],datePointTransforms:[],dateSpanTransforms:[],views:{},viewPropsTransformers:[],isPropsValid:null,externalDefTransforms:[],viewContainerAppends:[],eventDropTransformers:[],componentInteractions:[],calendarInteractions:[],themeClasses:{},eventSourceDefs:[],cmdFormatter:null,recurringTypes:[],namedTimeZonedImpl:null,initialView:"",elementDraggingImpl:null,optionChangeHandlers:{},scrollGridImpl:null,listenerRefiners:{},optionRefiners:{},propSetHandlers:{}};function i(e){for(let t of e){const e=t.name,s=n[e];void 0===s?(n[e]=t.id,i(t.deps),r=Go(r,t)):s!==t.id&&Io.warn(`Duplicate plugin '${e}'`)}}return e&&i(e),i(t),r}function Qo(){let e,t=[],n=[];return(r,i)=>(e&&Ye(r,t)&&Ye(i,n)||(e=Lo(r,i)),t=r,n=i,e)}function Go(e,t){return{premiumReleaseDate:Zo(e.premiumReleaseDate,t.premiumReleaseDate),reducers:e.reducers.concat(t.reducers),isLoadingFuncs:e.isLoadingFuncs.concat(t.isLoadingFuncs),contextInit:e.contextInit.concat(t.contextInit),eventRefiners:Object.assign(Object.assign({},e.eventRefiners),t.eventRefiners),eventDefMemberAdders:e.eventDefMemberAdders.concat(t.eventDefMemberAdders),eventSourceRefiners:Object.assign(Object.assign({},e.eventSourceRefiners),t.eventSourceRefiners),isDraggableTransformers:e.isDraggableTransformers.concat(t.isDraggableTransformers),eventDragMutationMassagers:e.eventDragMutationMassagers.concat(t.eventDragMutationMassagers),eventDefMutationAppliers:e.eventDefMutationAppliers.concat(t.eventDefMutationAppliers),dateSelectionTransformers:e.dateSelectionTransformers.concat(t.dateSelectionTransformers),datePointTransforms:e.datePointTransforms.concat(t.datePointTransforms),dateSpanTransforms:e.dateSpanTransforms.concat(t.dateSpanTransforms),views:Object.assign(Object.assign({},e.views),t.views),viewPropsTransformers:e.viewPropsTransformers.concat(t.viewPropsTransformers),isPropsValid:t.isPropsValid||e.isPropsValid,externalDefTransforms:e.externalDefTransforms.concat(t.externalDefTransforms),viewContainerAppends:e.viewContainerAppends.concat(t.viewContainerAppends),eventDropTransformers:e.eventDropTransformers.concat(t.eventDropTransformers),calendarInteractions:e.calendarInteractions.concat(t.calendarInteractions),componentInteractions:e.componentInteractions.concat(t.componentInteractions),themeClasses:Object.assign(Object.assign({},e.themeClasses),t.themeClasses),eventSourceDefs:e.eventSourceDefs.concat(t.eventSourceDefs),cmdFormatter:t.cmdFormatter||e.cmdFormatter,recurringTypes:e.recurringTypes.concat(t.recurringTypes),namedTimeZonedImpl:t.namedTimeZonedImpl||e.namedTimeZonedImpl,initialView:e.initialView||t.initialView,elementDraggingImpl:e.elementDraggingImpl||t.elementDraggingImpl,optionChangeHandlers:Object.assign(Object.assign({},e.optionChangeHandlers),t.optionChangeHandlers),scrollGridImpl:t.scrollGridImpl||e.scrollGridImpl,listenerRefiners:Object.assign(Object.assign({},e.listenerRefiners),t.listenerRefiners),optionRefiners:Object.assign(Object.assign({},e.optionRefiners),t.optionRefiners),propSetHandlers:Object.assign(Object.assign({},e.propSetHandlers),t.propSetHandlers)}}function Zo(e,t){return void 0===e?t:void 0===t?e:new Date(Math.max(e.valueOf(),t.valueOf()))}class qo extends mn{}function Yo(e,t){let n,r={};for(n in e)$o(n,r,e,t);for(n in t)$o(n,r,e,t);return r}function $o(e,t,n,r){if(t[e])return t[e];let i=Jo(e,t,n,r);return i&&(t[e]=i),i}function Jo(e,t,n,r){let i=n[e],s=r[e],o=e=>i&&null!==i[e]?i[e]:s&&null!==s[e]?s[e]:null,a=o("component"),l=o("superType"),c=null;if(l){if(l===e)throw new Error("Can't have a custom view type that references itself");c=$o(l,t,n,r)}return!a&&c&&(a=c.component),a?{type:e,component:a,defaults:Object.assign(Object.assign({},c?c.defaults:{}),i?i.rawOptions:{}),overrides:Object.assign(Object.assign({},c?c.overrides:{}),s?s.rawOptions:{})}:null}function Xo(e){return ze(e,Ko)}function Ko(e){let t="function"===typeof e?{component:e}:e,{component:n}=t;return t.content&&(n=ea(t)),{superType:t.type,component:n,rawOptions:t}}function ea(e){return t=>A(Kn.Consumer,null,(n=>A(dr,{elTag:"div",elClasses:pr(n.viewSpec),renderProps:Object.assign(Object.assign({},t),{nextDayThreshold:n.options.nextDayThreshold}),generatorName:void 0,generator:e.content,classNameGenerator:e.classNames,didMount:e.didMount,willUnmount:e.willUnmount})))}function ta(e,t,n,r){let i=Xo(e),s=Xo(t.views),o=Yo(i,s);return ze(o,(e=>na(e,s,t,n,r)))}function na(e,t,n,r,i){let s=e.overrides.duration||e.defaults.duration||r.duration||n.duration,o=null,a="",l="",c={};if(s&&(o=ia(s),o)){let e=cn(o);a=e.unit,1===e.value&&(l=a,c=t[a]?t[a].rawOptions:{})}let d=t=>{let n=t.buttonText||{},r=e.defaults.buttonTextKey;return null!=r&&null!=n[r]?n[r]:null!=n[e.type]?n[e.type]:null!=n[l]?n[l]:null},u=t=>{let n=t.buttonHints||{},r=e.defaults.buttonTextKey;return null!=r&&null!=n[r]?n[r]:null!=n[e.type]?n[e.type]:null!=n[l]?n[l]:null};return{type:e.type,component:e.component,duration:o,durationUnit:a,singleUnit:l,optionDefaults:e.defaults,optionOverrides:Object.assign(Object.assign({},c),e.overrides),buttonTextOverride:d(r)||d(n)||e.overrides.buttonText,buttonTextDefault:d(i)||e.defaults.buttonText||d(Un)||e.type,buttonTitleOverride:u(r)||u(n)||e.overrides.buttonHint,buttonTitleDefault:u(i)||e.defaults.buttonHint||u(Un)}}qo.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"},qo.prototype.baseIconClass="fc-icon",qo.prototype.iconClasses={close:"fc-icon-x",prev:"fc-icon-chevron-left",next:"fc-icon-chevron-right",prevYear:"fc-icon-chevrons-left",nextYear:"fc-icon-chevrons-right"},qo.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"},qo.prototype.iconOverrideOption="buttonIcons",qo.prototype.iconOverrideCustomButtonOption="icon",qo.prototype.iconOverridePrefix="fc-icon-";let ra={};function ia(e){let t=JSON.stringify(e),n=ra[t];return void 0===n&&(n=Kt(e),ra[t]=n),n}function sa(e,t){switch(t.type){case"CHANGE_VIEW_TYPE":e=t.viewType}return e}function oa(e,t){switch(t.type){case"SET_OPTION":return Object.assign(Object.assign({},e),{[t.optionName]:t.rawOptionValue});default:return e}}function aa(e,t,n,r){let i;switch(t.type){case"CHANGE_VIEW_TYPE":return r.build(t.dateMarker||n);case"CHANGE_DATE":return r.build(t.dateMarker);case"PREV":if(i=r.buildPrev(e,n),i.isValid)return i;break;case"NEXT":if(i=r.buildNext(e,n),i.isValid)return i;break}return e}function la(e,t,n){let r=t?t.activeRange:null;return fa({},Aa(e,n),r,n)}function ca(e,t,n,r){let i=n?n.activeRange:null;switch(t.type){case"ADD_EVENT_SOURCES":return fa(e,t.sources,i,r);case"REMOVE_EVENT_SOURCE":return ha(e,t.sourceId);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return n?pa(e,i,r):e;case"FETCH_EVENT_SOURCES":return ma(e,t.sourceIds?Ue(t.sourceIds):ya(e,r),i,t.isRefetch||!1,r);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return ba(e,t.sourceId,t.fetchId,t.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return e}}function da(e,t,n){let r=t?t.activeRange:null;return ma(e,ya(e,n),r,!0,n)}function ua(e){for(let t in e)if(e[t].isFetching)return!0;return!1}function fa(e,t,n,r){let i={};for(let s of t)i[s.sourceId]=s;return n&&(i=pa(i,n,r)),Object.assign(Object.assign({},e),i)}function ha(e,t){return je(e,(e=>e.sourceId!==t))}function pa(e,t,n){return ma(e,je(e,(e=>ga(e,t,n))),t,!1,n)}function ga(e,t,n){return _a(e,n)?!n.options.lazyFetching||!e.fetchRange||e.isFetching||t.starte.fetchRange.end:!e.latestFetchId}function ma(e,t,n,r,i){let s={};for(let o in e){let a=e[o];t[o]?s[o]=va(a,n,r,i):s[o]=a}return s}function va(e,t,n,r){let{options:i,calendarApi:s}=r,o=r.pluginHooks.eventSourceDefs[e.sourceDefId],a=pt();return o.fetch({eventSource:e,range:t,isRefetch:n,context:r},(n=>{let{rawEvents:o}=n;i.eventSourceSuccess&&(o=i.eventSourceSuccess.call(s,o,n.response)||o),e.success&&(o=e.success.call(s,o,n.response)||o),r.dispatch({type:"RECEIVE_EVENTS",sourceId:e.sourceId,fetchId:a,fetchRange:t,rawEvents:o})}),(n=>{let o=!1;i.eventSourceFailure&&(i.eventSourceFailure.call(s,n),o=!0),e.failure&&(e.failure(n),o=!0),o||Io.warn(n.message,n),r.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:e.sourceId,fetchId:a,fetchRange:t,error:n})})),Object.assign(Object.assign({},e),{isFetching:!0,latestFetchId:a})}function ba(e,t,n,r){let i=e[t];return i&&n===i.latestFetchId?Object.assign(Object.assign({},e),{[t]:Object.assign(Object.assign({},i),{isFetching:!1,fetchRange:r})}):e}function ya(e,t){return je(e,(e=>_a(e,t)))}function Aa(e,t){let n=si(t),r=[].concat(e.eventSources||[]),i=[];e.initialEvents&&r.unshift(e.initialEvents),e.events&&r.unshift(e.events);for(let s of r){let e=ii(s,t,n);e&&i.push(e)}return i}function _a(e,t){let n=t.pluginHooks.eventSourceDefs;return!n[e.sourceDefId].ignoreRange}function Ea(e,t){switch(t.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return t.selection;default:return e}}function Ca(e,t){switch(t.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return t.eventInstanceId;default:return e}}function wa(e,t){let n;switch(t.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":return n=t.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}function Da(e,t){let n;switch(t.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":return n=t.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}function Sa(e,t,n,r,i){let s=e.headerToolbar?Ra(e.headerToolbar,e,t,n,r,i):null,o=e.footerToolbar?Ra(e.footerToolbar,e,t,n,r,i):null;return{header:s,footer:o}}function Ra(e,t,n,r,i,s){let o={},a=[],l=!1;for(let c in e){let d=e[c],u=ka(d,t,n,r,i,s);o[c]=u.widgets,a.push(...u.viewsWithButtons),l=l||u.hasTitle}return{sectionWidgets:o,viewsWithButtons:a,hasTitle:l}}function ka(e,t,n,r,i,s){let o="rtl"===t.direction,a=t.customButtons||{},l=n.buttonText||{},c=t.buttonText||{},d=n.buttonHints||{},u=t.buttonHints||{},f=e?e.split(" "):[],h=[],p=!1,g=f.map((e=>e.split(",").map((e=>{if("title"===e)return p=!0,{buttonName:e};let n,f,g,m,v,b;if(n=a[e])g=e=>{n.click&&n.click.call(e.target,e,e.target)},(m=r.getCustomButtonIconClass(n))||(m=r.getIconClass(e,o))||(v=n.text),b=n.hint||n.text;else if(f=i[e]){h.push(e),g=()=>{s.changeView(e)},(v=f.buttonTextOverride)||(m=r.getIconClass(e,o))||(v=f.buttonTextDefault);let n=f.buttonTextOverride||f.buttonTextDefault;b=At(f.buttonTitleOverride||f.buttonTitleDefault||t.viewHint,[n,e],n)}else if(s[e])if(g=()=>{s[e]()},(v=l[e])||(m=r.getIconClass(e,o))||(v=c[e]),"prevYear"===e||"nextYear"===e){let t="prevYear"===e?"prev":"next";b=At(d[t]||u[t],[c.year||"year","year"],c[e])}else b=t=>At(d[e]||u[e],[c[t]||t,t],c[e]);return{buttonName:e,buttonClick:g,buttonIcon:m,buttonText:v,buttonHint:b}}))));return{widgets:g,viewsWithButtons:h,hasTitle:p}}class xa{constructor(e,t,n){this.type=e,this.getCurrentData=t,this.dateEnv=n}get calendar(){return this.getCurrentData().calendarApi}get title(){return this.getCurrentData().viewTitle}get activeStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.start)}get activeEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.end)}get currentStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.start)}get currentEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.end)}getOption(e){return this.getCurrentData().options[e]}}let Ta={ignoreRange:!0,parseMeta(e){return Array.isArray(e.events)?e.events:null},fetch(e,t){t({rawEvents:e.eventSource.meta})}};const Oa=Wo({name:"array-event-source",eventSourceDefs:[Ta]});let Ma={parseMeta(e){return"function"===typeof e.events?e.events:null},fetch(e,t,n){const{dateEnv:r}=e.context,i=e.eventSource.meta;Ki(i.bind(null,$i(e.range,r)),(e=>t({rawEvents:e})),n)}};const Ia=Wo({name:"func-event-source",eventSourceDefs:[Ma]}),Na={method:String,extraParams:qn,startParam:String,endParam:String,timeZoneParam:String};let Pa={parseMeta(e){return!e.url||"json"!==e.format&&e.format?null:{url:e.url,format:"json",method:(e.method||"GET").toUpperCase(),extraParams:e.extraParams,startParam:e.startParam,endParam:e.endParam,timeZoneParam:e.timeZoneParam}},fetch(e,t,n){const{meta:r}=e.eventSource,i=Ba(r,e.range,e.context);ts(r.method,r.url,i).then((([e,n])=>{t({rawEvents:e,response:n})}),n)}};const Ha=Wo({name:"json-event-source",eventSourceRefiners:Na,eventSourceDefs:[Pa]});function Ba(e,t,n){let r,i,s,o,{dateEnv:a,options:l}=n,c={};return r=e.startParam,null==r&&(r=l.startParam),i=e.endParam,null==i&&(i=l.endParam),s=e.timeZoneParam,null==s&&(s=l.timeZoneParam),o="function"===typeof e.extraParams?e.extraParams():e.extraParams||{},Object.assign(c,o),c[r]=a.formatIso(t.start),c[i]=a.formatIso(t.end),"local"!==a.timeZone&&(c[s]=a.timeZone),c}const ja={daysOfWeek:qn,startTime:Kt,endTime:Kt,duration:Kt,startRecur:qn,endRecur:qn};let za={parse(e,t){if(e.daysOfWeek||e.startTime||e.endTime||e.startRecur||e.endRecur){let n,r={daysOfWeek:e.daysOfWeek||null,startTime:e.startTime||null,endTime:e.endTime||null,startRecur:e.startRecur?t.createMarker(e.startRecur):null,endRecur:e.endRecur?t.createMarker(e.endRecur):null};return e.duration&&(n=e.duration),!n&&e.startTime&&e.endTime&&(n=rn(e.endTime,e.startTime)),{allDayGuess:Boolean(!e.startTime&&!e.endTime),duration:n,typeData:r}}return null},expand(e,t,n){let r=br(t,{start:e.startRecur,end:e.endRecur});return r?Va(e.daysOfWeek,e.startTime,r,n):[]}};const Ua=Wo({name:"simple-recurring-event",recurringTypes:[za],eventRefiners:ja});function Va(e,t,n,r){let i=e?Ue(e):null,s=Pt(n.start),o=n.end,a=[];while(sua(e.eventSources)],propSetHandlers:{dateProfile:La,eventStore:Qa}})];class Za{constructor(e,t){this.runTaskOption=e,this.drainedOption=t,this.queue=[],this.delayedRunner=new Pe(this.drain.bind(this))}request(e,t){this.queue.push(e),this.delayedRunner.request(t)}pause(e){this.delayedRunner.pause(e)}resume(e,t){this.delayedRunner.resume(e,t)}drain(){let{queue:e}=this;while(e.length){let t,n=[];while(t=e.shift())this.runTask(t),n.push(t);this.drained(n)}}runTask(e){this.runTaskOption&&this.runTaskOption(e)}drained(e){this.drainedOption&&this.drainedOption(e)}}function qa(e,t,n){let r;return r=/^(year|month)$/.test(e.currentRangeUnit)?e.currentRange:e.activeRange,n.formatRange(r.start,r.end,jn(t.titleFormat||Ya(e)),{isEndExclusive:e.isRangeAllDay,defaultSeparator:t.titleRangeSeparator})}function Ya(e){let{currentRangeUnit:t}=e;if("year"===t)return{year:"numeric"};if("month"===t)return{year:"numeric",month:"long"};let n=Nt(e.currentRange.start,e.currentRange.end);return null!==n&&n>1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}class $a{constructor(e){this.computeOptionsData=$e(this._computeOptionsData),this.computeCurrentViewData=$e(this._computeCurrentViewData),this.organizeRawLocales=$e(jo),this.buildLocale=$e(zo),this.buildPluginHooks=Qo(),this.buildDateEnv=$e(Ja),this.buildTheme=$e(Xa),this.parseToolbars=$e(Sa),this.buildViewSpecs=$e(ta),this.buildDateProfileGenerator=Je(Ka),this.buildViewApi=$e(el),this.buildViewUiProps=Je(rl),this.buildEventUiBySource=$e(tl,Fe),this.buildEventUiBases=$e(nl),this.parseContextBusinessHours=Je(sl),this.buildTitle=$e(qa),this.emitter=new pi,this.actionRunner=new Za(this._handleAction.bind(this),this.updateData.bind(this)),this.currentCalendarOptionsInput={},this.currentCalendarOptionsRefined={},this.currentViewOptionsInput={},this.currentViewOptionsRefined={},this.currentCalendarOptionsRefiners={},this.getCurrentData=()=>this.data,this.dispatch=e=>{this.actionRunner.request(e)},this.props=e,this.actionRunner.pause();let t={},n=this.computeOptionsData(e.optionOverrides,t,e.calendarApi),r=n.calendarOptions.initialView||n.pluginHooks.initialView,i=this.computeCurrentViewData(r,n,e.optionOverrides,t);e.calendarApi.currentDataManager=this,this.emitter.setThisContext(e.calendarApi),this.emitter.setOptions(i.options);let s=Sr(n.calendarOptions,n.dateEnv),o=i.dateProfileGenerator.build(s);Ar(o.activeRange,s)||(s=o.currentRange.start);let a={dateEnv:n.dateEnv,options:n.calendarOptions,pluginHooks:n.pluginHooks,calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData};for(let u of n.pluginHooks.contextInit)u(a);let l=la(n.calendarOptions,o,a),c={dynamicOptionOverrides:t,currentViewType:r,currentDate:s,dateProfile:o,businessHours:this.parseContextBusinessHours(a),eventSources:l,eventUiBases:{},eventStore:Gr(),renderableEventStore:Gr(),dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(a).selectionConfig},d=Object.assign(Object.assign({},a),c);for(let u of n.pluginHooks.reducers)Object.assign(c,u(null,null,d));il(c,a)&&this.emitter.trigger("loading",!0),this.state=c,this.updateData(),this.actionRunner.resume()}resetOptions(e,t){let{props:n}=this;n.optionOverrides=t?Object.assign(Object.assign({},n.optionOverrides),e):e,this.actionRunner.request({type:"NOTHING"})}_handleAction(e){let{props:t,state:n,emitter:r}=this,i=oa(n.dynamicOptionOverrides,e),s=this.computeOptionsData(t.optionOverrides,i,t.calendarApi),o=sa(n.currentViewType,e),a=this.computeCurrentViewData(o,s,t.optionOverrides,i);t.calendarApi.currentDataManager=this,r.setThisContext(t.calendarApi),r.setOptions(a.options);let l={dateEnv:s.dateEnv,options:s.calendarOptions,pluginHooks:s.pluginHooks,calendarApi:t.calendarApi,dispatch:this.dispatch,emitter:r,getCurrentData:this.getCurrentData},{currentDate:c,dateProfile:d}=n;this.data&&this.data.dateProfileGenerator!==a.dateProfileGenerator&&(d=a.dateProfileGenerator.build(c)),c=Dr(c,e),d=aa(d,e,c,a.dateProfileGenerator),"PREV"!==e.type&&"NEXT"!==e.type&&Ar(d.currentRange,c)||(c=d.currentRange.start);let u=ca(n.eventSources,e,d,l),f=ai(n.eventStore,e,u,d,l),h=ua(u),p=h&&!a.options.progressiveEventRendering&&n.renderableEventStore||f,{eventUiSingleBase:g,selectionConfig:m}=this.buildViewUiProps(l),v=this.buildEventUiBySource(u),b=this.buildEventUiBases(p.defs,g,v),y={dynamicOptionOverrides:i,currentViewType:o,currentDate:c,dateProfile:d,eventSources:u,eventStore:f,renderableEventStore:p,selectionConfig:m,eventUiBases:b,businessHours:this.parseContextBusinessHours(l),dateSelection:Ea(n.dateSelection,e),eventSelection:Ca(n.eventSelection,e),eventDrag:wa(n.eventDrag,e),eventResize:Da(n.eventResize,e)},A=Object.assign(Object.assign({},l),y);for(let C of s.pluginHooks.reducers)Object.assign(y,C(n,e,A));let _=il(n,l),E=il(y,l);!_&&E?r.trigger("loading",!0):_&&!E&&r.trigger("loading",!1),this.state=y,t.onAction&&t.onAction(e)}updateData(){let{props:e,state:t}=this,n=this.data,r=this.computeOptionsData(e.optionOverrides,t.dynamicOptionOverrides,e.calendarApi),i=this.computeCurrentViewData(t.currentViewType,r,e.optionOverrides,t.dynamicOptionOverrides),s=this.data=Object.assign(Object.assign(Object.assign({viewTitle:this.buildTitle(t.dateProfile,i.options,r.dateEnv),calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},r),i),t),o=r.pluginHooks.optionChangeHandlers,a=n&&n.calendarOptions,l=r.calendarOptions;if(a&&a!==l){a.timeZone!==l.timeZone&&(t.eventSources=s.eventSources=da(s.eventSources,t.dateProfile,s),t.eventStore=s.eventStore=fi(s.eventStore,n.dateEnv,s.dateEnv));for(let e in o)a[e]!==l[e]&&o[e](l[e],s)}e.onData&&e.onData(s)}_computeOptionsData(e,t,n){let{refinedOptions:r,pluginHooks:i,localeDefaults:s,availableLocaleData:o,extra:a}=this.processRawCalendarOptions(e,t);ol(a);let l=this.buildDateEnv(r.timeZone,r.locale,r.weekNumberCalculation,r.firstDay,r.weekText,i,o,r.defaultRangeSeparator),c=this.buildViewSpecs(i.views,e,t,s),d=this.buildTheme(r,i),u=this.parseToolbars(r,e,d,c,n);return{calendarOptions:r,pluginHooks:i,dateEnv:l,viewSpecs:c,theme:d,toolbarConfig:u,localeDefaults:s,availableRawLocales:o.map}}processRawCalendarOptions(e,t){let{locales:n,locale:r}=Gn([Un,e,t]),i=this.organizeRawLocales(n),s=i.map,o=this.buildLocale(r||i.defaultCode,s).options,a=this.buildPluginHooks(e.plugins||[],Ga),l=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},zn),Vn),Fn),a.listenerRefiners),a.optionRefiners),c={},d=Gn([Un,o,e,t]),u={},f=this.currentCalendarOptionsInput,h=this.currentCalendarOptionsRefined,p=!1;for(let g in d)"plugins"!==g&&(d[g]===f[g]||Wn[g]&&g in f&&Wn[g](f[g],d[g])?u[g]=h[g]:l[g]?(u[g]=l[g](d[g]),p=!0):c[g]=f[g]);return p&&(this.currentCalendarOptionsInput=d,this.currentCalendarOptionsRefined=u),{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:a,availableLocaleData:i,localeDefaults:o,extra:c}}_computeCurrentViewData(e,t,n,r){let i=t.viewSpecs[e];if(!i)throw new Error(`viewType "${e}" is not available. Please make sure you've loaded all neccessary plugins`);let{refinedOptions:s,extra:o}=this.processRawViewOptions(i,t.pluginHooks,t.localeDefaults,n,r);ol(o);let a=this.buildDateProfileGenerator({dateProfileGeneratorClass:i.optionDefaults.dateProfileGeneratorClass,duration:i.duration,durationUnit:i.durationUnit,usesMinMaxTime:i.optionDefaults.usesMinMaxTime,dateEnv:t.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:s.slotMinTime,slotMaxTime:s.slotMaxTime,showNonCurrentDates:s.showNonCurrentDates,dayCount:s.dayCount,dateAlignment:s.dateAlignment,dateIncrement:s.dateIncrement,hiddenDays:s.hiddenDays,weekends:s.weekends,nowInput:s.now,validRangeInput:s.validRange,visibleRangeInput:s.visibleRange,monthMode:s.monthMode,fixedWeekCount:s.fixedWeekCount}),l=this.buildViewApi(e,this.getCurrentData,t.dateEnv);return{viewSpec:i,options:s,dateProfileGenerator:a,viewApi:l}}processRawViewOptions(e,t,n,r,i){let s=Gn([Un,e.optionDefaults,n,r,e.optionOverrides,i]),o=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},zn),Vn),Fn),Qn),t.listenerRefiners),t.optionRefiners),a={},l=this.currentViewOptionsInput,c=this.currentViewOptionsRefined,d=!1,u={};for(let f in s)s[f]===l[f]||Wn[f]&&Wn[f](s[f],l[f])?a[f]=c[f]:(s[f]===this.currentCalendarOptionsInput[f]||Wn[f]&&Wn[f](s[f],this.currentCalendarOptionsInput[f])?f in this.currentCalendarOptionsRefined&&(a[f]=this.currentCalendarOptionsRefined[f]):o[f]?a[f]=o[f](s[f]):u[f]=s[f],d=!0);return d&&(this.currentViewOptionsInput=s,this.currentViewOptionsRefined=a),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:u}}}function Ja(e,t,n,r,i,s,o,a){let l=zo(t||o.defaultCode,o.map);return new gn({calendarSystem:"gregory",timeZone:e,namedTimeZoneImpl:s.namedTimeZonedImpl,locale:l,weekNumberCalculation:n,firstDay:r,weekText:i,cmdFormatter:s.cmdFormatter,defaultSeparator:a})}function Xa(e,t){let n=t.themeClasses[e.themeSystem]||qo;return new n(e)}function Ka(e){let t=e.dateProfileGeneratorClass||kr;return new t(e)}function el(e,t,n){return new xa(e,t,n)}function tl(e){return ze(e,(e=>e.ui))}function nl(e,t,n){let r={"":t};for(let i in e){let t=e[i];t.sourceId&&n[t.sourceId]&&(r[i]=n[t.sourceId])}return r}function rl(e){let{options:t}=e;return{eventUiSingleBase:ei({display:t.eventDisplay,editable:t.editable,startEditable:t.eventStartEditable,durationEditable:t.eventDurationEditable,constraint:t.eventConstraint,overlap:"boolean"===typeof t.eventOverlap?t.eventOverlap:void 0,allow:t.eventAllow,backgroundColor:t.eventBackgroundColor,borderColor:t.eventBorderColor,textColor:t.eventTextColor,color:t.eventColor},e),selectionConfig:ei({constraint:t.selectConstraint,overlap:"boolean"===typeof t.selectOverlap?t.selectOverlap:void 0,allow:t.selectAllow},e)}}function il(e,t){for(let n of t.pluginHooks.isLoadingFuncs)if(n(e))return!0;return!1}function sl(e){return bi(e.options.businessHours,e)}function ol(e,t){for(let n in e)Io.warn(`Unknown option '${n}'`+(t?` for view '${t}'`:""))}class al extends nr{render(){let e=this.props.widgetGroups.map((e=>this.renderWidgetGroup(e)));return A("div",{className:"fc-toolbar-chunk"},...e)}renderWidgetGroup(e){let{props:t}=this,{theme:n}=this.context,r=[],i=!0;for(let s of e){let{buttonName:e,buttonClick:o,buttonText:a,buttonIcon:l,buttonHint:c}=s;if("title"===e)i=!1,r.push(A("h2",{className:"fc-toolbar-title",id:t.titleId},t.title));else{let i=e===t.activeButton,s=!t.isTodayEnabled&&"today"===e||!t.isPrevEnabled&&"prev"===e||!t.isNextEnabled&&"next"===e,d=[`fc-${e}-button`,n.getClass("button")];i&&d.push(n.getClass("buttonActive")),r.push(A("button",{type:"button",title:"function"===typeof c?c(t.navUnit):c,disabled:s,"aria-pressed":i,className:d.join(" "),onClick:o},a||(l?A("span",{className:l}):"")))}}if(r.length>1){let e=i&&n.getClass("buttonGroup")||"";return A("div",{className:e},...r)}return r[0]}}class ll extends nr{render(){let e,t,{model:n,extraClassName:r}=this.props,i=!1,s=n.sectionWidgets,o=s.center;s.left?(i=!0,e=s.left):e=s.start,s.right?(i=!0,t=s.right):t=s.end;let a=[r||"","fc-toolbar",i?"fc-toolbar-ltr":""];return A("div",{className:a.join(" ")},this.renderSection("start",e||[]),this.renderSection("center",o||[]),this.renderSection("end",t||[]))}renderSection(e,t){let{props:n}=this;return A(al,{key:e,widgetGroups:t,title:n.title,navUnit:n.navUnit,activeButton:n.activeButton,isTodayEnabled:n.isTodayEnabled,isPrevEnabled:n.isPrevEnabled,isNextEnabled:n.isNextEnabled,titleId:n.titleId})}}class cl extends nr{constructor(){super(...arguments),this.state={availableWidth:null},this.handleEl=e=>{this.el=e,sr(this.props.elRef,e),this.updateAvailableWidth()},this.handleResize=()=>{this.updateAvailableWidth()}}render(){let{props:e,state:t}=this,{aspectRatio:n}=e,r=["fc-view-harness",n||e.liquid||e.height?"fc-view-harness-active":"fc-view-harness-passive"],i="",s="";return n?null!==t.availableWidth?i=t.availableWidth/n:s=1/n*100+"%":i=e.height||"",A("div",{"aria-labelledby":e.labeledById,ref:this.handleEl,className:r.join(" "),style:{height:i,paddingBottom:s}},e.children)}componentDidMount(){this.context.addResizeHandler(this.handleResize)}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}updateAvailableWidth(){this.el&&this.props.aspectRatio&&this.setState({availableWidth:this.el.offsetWidth})}}class dl extends os{constructor(e){super(e),this.handleSegClick=(e,t)=>{let{component:n}=this,{context:r}=n,i=Ii(t);if(i&&n.isValidSegDownEl(e.target)){let s=Ke(e.target,".fc-event-forced-url"),o=s?s.querySelector("a[href]").href:"";r.emitter.trigger("eventClick",{el:t,event:new ki(n.context,i.eventRange.def,i.eventRange.instance),jsEvent:e,view:r.viewApi}),o&&!e.defaultPrevented&&(window.location.href=o)}},this.destroy=ct(e.el,"click",".fc-event",this.handleSegClick)}}class ul extends os{constructor(e){super(e),this.handleEventElRemove=e=>{e===this.currentSegEl&&this.handleSegLeave(null,this.currentSegEl)},this.handleSegEnter=(e,t)=>{Ii(t)&&(this.currentSegEl=t,this.triggerEvent("eventMouseEnter",e,t))},this.handleSegLeave=(e,t)=>{this.currentSegEl&&(this.currentSegEl=null,this.triggerEvent("eventMouseLeave",e,t))},this.removeHoverListeners=dt(e.el,".fc-event",this.handleSegEnter,this.handleSegLeave)}destroy(){this.removeHoverListeners()}triggerEvent(e,t,n){let{component:r}=this,{context:i}=r,s=Ii(n);t&&!r.isValidSegDownEl(t.target)||i.emitter.trigger(e,{el:n,event:new ki(i,s.eventRange.def,s.eventRange.instance),jsEvent:t,view:i.viewApi})}}class fl extends tr{constructor(){super(...arguments),this.buildViewContext=$e(er),this.buildViewPropTransformers=$e(pl),this.buildToolbarProps=$e(hl),this.headerRef=E(),this.footerRef=E(),this.interactionsStore={},this.state={viewLabelId:at()},this.registerInteractiveComponent=(e,t)=>{let n=as(e,t),r=[dl,ul],i=r.concat(this.props.pluginHooks.componentInteractions),s=i.map((e=>new e(n)));this.interactionsStore[e.uid]=s,ls[e.uid]=n},this.unregisterInteractiveComponent=e=>{let t=this.interactionsStore[e.uid];if(t){for(let e of t)e.destroy();delete this.interactionsStore[e.uid]}delete ls[e.uid]},this.resizeRunner=new Pe((()=>{this.props.emitter.trigger("_resize",!0),this.props.emitter.trigger("windowResize",{view:this.props.viewApi})})),this.handleWindowResize=e=>{let{options:t}=this.props;t.handleWindowResize&&e.target===window&&this.resizeRunner.request(t.windowResizeDelay)}}render(){let e,{props:t}=this,{toolbarConfig:n,options:r}=t,i=this.buildToolbarProps(t.viewSpec,t.dateProfile,t.dateProfileGenerator,t.currentDate,Rr(t.options.now,t.dateEnv),t.viewTitle),s=!1,o="";t.isHeightAuto||t.forPrint?o="":null!=r.height?s=!0:null!=r.contentHeight?o=r.contentHeight:e=Math.max(r.aspectRatio,.5);let a=this.buildViewContext(t.viewSpec,t.viewApi,t.options,t.dateProfileGenerator,t.dateEnv,t.theme,t.pluginHooks,t.dispatch,t.getCurrentData,t.emitter,t.calendarApi,this.registerInteractiveComponent,this.unregisterInteractiveComponent),l=n.header&&n.header.hasTitle?this.state.viewLabelId:"";return A(Kn.Provider,{value:a},n.header&&A(ll,Object.assign({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:n.header,titleId:l},i)),A(cl,{liquid:s,height:o,aspectRatio:e,labeledById:l},this.renderView(t),this.buildAppendContent()),n.footer&&A(ll,Object.assign({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:n.footer,titleId:""},i)))}componentDidMount(){let{props:e}=this;this.calendarInteractions=e.pluginHooks.calendarInteractions.map((t=>new t(e))),window.addEventListener("resize",this.handleWindowResize);let{propSetHandlers:t}=e.pluginHooks;for(let n in t)t[n](e[n],e)}componentDidUpdate(e){let{props:t}=this,{propSetHandlers:n}=t.pluginHooks;for(let r in n)t[r]!==e[r]&&n[r](t[r],t)}componentWillUnmount(){window.removeEventListener("resize",this.handleWindowResize),this.resizeRunner.clear();for(let e of this.calendarInteractions)e.destroy();this.props.emitter.trigger("_unmount")}buildAppendContent(){let{props:e}=this,t=e.pluginHooks.viewContainerAppends.map((t=>t(e)));return A(C,{},...t)}renderView(e){let{pluginHooks:t}=e,{viewSpec:n}=e,r={dateProfile:e.dateProfile,businessHours:e.businessHours,eventStore:e.renderableEventStore,eventUiBases:e.eventUiBases,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,isHeightAuto:e.isHeightAuto,forPrint:e.forPrint},i=this.buildViewPropTransformers(t.viewPropsTransformers);for(let o of i)Object.assign(r,o.transform(r,e));let s=n.component;return A(s,Object.assign({},r))}}function hl(e,t,n,r,i,s){let o=n.build(i,void 0,!1),a=n.buildPrev(t,r,!1),l=n.buildNext(t,r,!1);return{title:s,activeButton:e.type,navUnit:e.singleUnit,isTodayEnabled:o.isValid&&!Ar(t.currentRange,i),isPrevEnabled:a.isValid,isNextEnabled:l.isValid}}function pl(e){return e.map((e=>new e))}class gl extends cs{constructor(e,t={}){super(),this.isRendering=!1,this.isRendered=!1,this.currentClassNames=[],this.customContentRenderId=0,this.handleAction=e=>{switch(e.type){case"SET_EVENT_DRAG":case"SET_EVENT_RESIZE":this.renderRunner.tryDrain()}},this.handleData=e=>{this.currentData=e,this.renderRunner.request(e.calendarOptions.rerenderDelay)},this.handleRenderRequest=()=>{if(this.isRendering){this.isRendered=!0;let{currentData:e}=this;Yn((()=>{L(A(ss,{options:e.calendarOptions,theme:e.theme,emitter:e.emitter},((t,n,r,i)=>(this.setClassNames(t),this.setHeight(n),A(cr.Provider,{value:this.customContentRenderId},A(fl,Object.assign({isHeightAuto:r,forPrint:i},e)))))),this.el)}))}else this.isRendered&&(this.isRendered=!1,L(null,this.el),this.setClassNames([]),this.setHeight(""))},this.el=e,this.renderRunner=new Pe(this.handleRenderRequest),new $a({optionOverrides:t,calendarApi:this,onAction:this.handleAction,onData:this.handleData})}render(){let e=this.isRendering;e?this.customContentRenderId+=1:this.isRendering=!0,this.renderRunner.request(),e&&this.updateSize()}destroy(){this.isRendering&&(this.isRendering=!1,this.renderRunner.request())}updateSize(){Yn((()=>{super.updateSize()}))}batchRendering(e){this.renderRunner.pause("batchRendering"),e(),this.renderRunner.resume("batchRendering")}pauseRendering(){this.renderRunner.pause("pauseRendering")}resumeRendering(){this.renderRunner.resume("pauseRendering",!0)}resetOptions(e,t){this.currentDataManager.resetOptions(e,t)}setClassNames(e){if(!Ye(e,this.currentClassNames)){let{classList:t}=this.el;for(let e of this.currentClassNames)t.remove(e);for(let n of e)t.add(n);this.currentClassNames=e}}setHeight(e){it(this.el,"height",e)}}const ml={headerToolbar:!0,footerToolbar:!0,events:!0,eventSources:!0,resources:!0};function vl(e){return"object"===typeof e&&(Array.isArray(e)?e=Array.prototype.slice.call(e):e&&(e={...e})),e}const bl=(0,r.aZ)({props:{options:Object},data(){return{renderId:0,customRenderingMap:new Map}},methods:{getApi(){return Al(this).calendar},buildOptions(e){return{...e,customRenderingMetaMap:this.$slots,handleCustomRendering:Al(this).handleCustomRendering}}},render(){const e=[];for(const t of this.customRenderingMap.values())e.push((0,r.h)(r.lR,{key:t.id,to:t.containerEl},t.generatorMeta(t.renderProps)));return(0,r.h)("div",{attrs:{"data-fc-render-id":this.renderId}},(0,r.h)(r.HY,e))},mounted(){const e=new Mo;Al(this).handleCustomRendering=e.handle.bind(e);const t=this.buildOptions(this.options),n=new gl(this.$el,t);Al(this).calendar=n,n.render(),e.subscribe((e=>{this.customRenderingMap=e,this.renderId++,Al(this).needCustomRenderingResize=!0}))},beforeUpdate(){this.getApi().resumeRendering()},updated(){Al(this).needCustomRenderingResize&&(Al(this).needCustomRenderingResize=!1,this.getApi().updateSize())},beforeUnmount(){this.getApi().destroy()},watch:_l()});var yl=bl;function Al(e){return e}function _l(){let e={options:{deep:!0,handler(e){let t=this.getApi();t.pauseRendering();let n=this.buildOptions(e);t.resetOptions(n),this.renderId++}}};for(let t in ml)e[`options.${t}`]={deep:!0,handler(e){if(void 0!==e){let n=this.getApi();n.pauseRendering(),n.resetOptions({[t]:vl(e)},!0),this.renderId++}}};return e}var El=yl;class Cl extends Cs{constructor(){super(...arguments),this.headerElRef=E()}renderSimpleLayout(e,t){let{props:n,context:r}=this,i=[],s=io(r.options);return e&&i.push({type:"header",key:"header",isSticky:s,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),i.push({type:"body",key:"body",liquid:!0,chunk:{content:t}}),A(hr,{elClasses:["fc-daygrid"],viewSpec:r.viewSpec},A(oo,{liquid:!n.isHeightAuto&&!n.forPrint,collapsibleWidth:n.forPrint,cols:[],sections:i}))}renderHScrollLayout(e,t,n,r){let i=this.context.pluginHooks.scrollGridImpl;if(!i)throw new Error("No ScrollGrid implementation");let{props:s,context:o}=this,a=!s.forPrint&&io(o.options),l=!s.forPrint&&so(o.options),c=[];return e&&c.push({type:"header",key:"header",isSticky:a,chunks:[{key:"main",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),c.push({type:"body",key:"body",liquid:!0,chunks:[{key:"main",content:t}]}),l&&c.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"main",content:ro}]}),A(hr,{elClasses:["fc-daygrid"],viewSpec:o.viewSpec},A(i,{liquid:!s.isHeightAuto&&!s.forPrint,collapsibleWidth:s.forPrint,colGroups:[{cols:[{span:n,minWidth:r}]}],sections:c}))}}function wl(e,t){let n=[];for(let r=0;r{let n=(e.eventDrag?e.eventDrag.affectedInstances:null)||(e.eventResize?e.eventResize.affectedInstances:null)||{};return A(C,null,t.map((t=>{let r=t.eventRange.instance.instanceId;return A("div",{className:"fc-daygrid-event-harness",key:r,style:{visibility:n[r]?"hidden":""}},kl(t)?A(Tl,Object.assign({seg:t,isDragging:!1,isSelected:r===e.eventSelection,defaultDisplayEventEnd:!1},Fi(t,e.todayRange))):A(xl,Object.assign({seg:t,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:r===e.eventSelection,defaultDisplayEventEnd:!1},Fi(t,e.todayRange))))})))}})}}function Il(e){let t=[],n=[];for(let r of e)t.push(r.seg),r.isVisible||n.push(r.seg);return{allSegs:t,invisibleSegs:n}}const Nl=jn({week:"narrow"});class Pl extends Cs{constructor(){super(...arguments),this.rootElRef=E(),this.state={dayNumberId:at()},this.handleRootEl=e=>{sr(this.rootElRef,e),sr(this.props.elRef,e)}}render(){let{context:e,props:t,state:n,rootElRef:r}=this,{options:i}=e,{date:s,dateProfile:o}=t;return A(ho,{elTag:"td",elRef:this.handleRootEl,elClasses:["fc-daygrid-day",...t.extraClassNames||[]],elAttrs:Object.assign(Object.assign(Object.assign({},t.extraDataAttrs),t.showDayNumber?{"aria-labelledby":n.dayNumberId}:{}),{role:"gridcell"}),defaultGenerator:Hl,date:s,dateProfile:o,todayRange:t.todayRange,showDayNumber:t.showDayNumber,extraRenderProps:t.extraRenderProps},((o,a)=>A("div",{className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",ref:t.innerElRef},t.showWeekNumber&&A(yo,{elTag:"a",elClasses:["fc-daygrid-week-number"],elAttrs:gs(e,s,"week"),date:s,defaultFormat:Nl}),Boolean(!a.isDisabled&&(t.showDayNumber||po(i)||t.forceDayTop))&&A("div",{className:"fc-daygrid-day-top"},A(o,{elTag:"a",elClasses:["fc-daygrid-day-number"],elAttrs:Object.assign(Object.assign({},gs(e,s)),{id:n.dayNumberId})})),A("div",{className:"fc-daygrid-day-events",ref:t.fgContentElRef},t.fgContent,A("div",{className:"fc-daygrid-day-bottom",style:{marginTop:t.moreMarginTop}},A(Ml,{allDayDate:s,singlePlacements:t.singlePlacements,moreCnt:t.moreCnt,alignmentElRef:r,alignGridTop:!t.showDayNumber,extraDateSpan:t.extraDateSpan,dateProfile:t.dateProfile,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,todayRange:t.todayRange}))),A("div",{className:"fc-daygrid-day-bg"},t.bgContent))))}}function Hl(e){return e.dayNumberText||A(C,null," ")}function Bl(e,t,n,r,i,s,o){let a=new Vl;a.allowReslicing=!0,a.strictOrder=r,!0===t||!0===n?(a.maxCoord=s,a.hiddenConsumes=!0):"number"===typeof t?a.maxStackCnt=t:"number"===typeof n&&(a.maxStackCnt=n,a.hiddenConsumes=!0);let l=[],c=[];for(let v=0;v1,s=r.span.start===a;d+=r.levelCoord-c,c=r.levelCoord+r.thickness,i?(d+=r.thickness,s&&u.push({seg:Ul(e,r.span.start,r.span.end,n),isVisible:!0,isAbsolute:!0,absoluteTop:r.levelCoord,marginTop:0})):s&&(u.push({seg:Ul(e,r.span.start,r.span.end,n),isVisible:!0,isAbsolute:!1,absoluteTop:r.levelCoord,marginTop:d}),d=0)}i.push(l),s.push(u),o.push(d)}return{singleColPlacements:i,multiColPlacements:s,leftoverMargins:o}}function zl(e,t){let n=[];for(let r=0;r!this.forceHidden[Ss(e)];for(let i=0;i{e&&this.updateSizing(!0)}}render(){let{props:e,state:t,context:n}=this,{options:r}=n,i=e.cells.length,s=Dl(e.businessHourSegs,i),o=Dl(e.bgEventSegs,i),a=Dl(this.getHighlightSegs(),i),l=Dl(this.getMirrorSegs(),i),{singleColPlacements:c,multiColPlacements:d,moreCnts:u,moreMarginTops:f}=Bl(Hi(e.fgEventSegs,r.eventOrder),e.dayMaxEvents,e.dayMaxEventRows,r.eventOrderStrict,t.eventInstanceHeights,t.maxContentHeight,e.cells),h=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{};return A("tr",{ref:this.rootElRef,role:"row"},e.renderIntro&&e.renderIntro(),e.cells.map(((t,n)=>{let r=this.renderFgSegs(n,e.forPrint?c[n]:d[n],e.todayRange,h),i=this.renderFgSegs(n,Wl(l[n],d),e.todayRange,{},Boolean(e.eventDrag),Boolean(e.eventResize),!1);return A(Pl,{key:t.key,elRef:this.cellElRefs.createRef(t.key),innerElRef:this.frameElRefs.createRef(t.key),dateProfile:e.dateProfile,date:t.date,showDayNumber:e.showDayNumbers,showWeekNumber:e.showWeekNumbers&&0===n,forceDayTop:e.showWeekNumbers,todayRange:e.todayRange,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,extraRenderProps:t.extraRenderProps,extraDataAttrs:t.extraDataAttrs,extraClassNames:t.extraClassNames,extraDateSpan:t.extraDateSpan,moreCnt:u[n],moreMarginTop:f[n],singlePlacements:c[n],fgContentElRef:this.fgElRefs.createRef(t.key),fgContent:A(C,null,A(C,null,r),A(C,null,i)),bgContent:A(C,null,this.renderFillSegs(a[n],"highlight"),this.renderFillSegs(s[n],"non-business"),this.renderFillSegs(o[n],"bg-event"))})})))}componentDidMount(){this.updateSizing(!0),this.context.addResizeHandler(this.handleResize)}componentDidUpdate(e,t){let n=this.props;this.updateSizing(!Fe(e,n))}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}getHighlightSegs(){let{props:e}=this;return e.eventDrag&&e.eventDrag.segs.length?e.eventDrag.segs:e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:e.dateSelectionSegs}getMirrorSegs(){let{props:e}=this;return e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:[]}renderFgSegs(e,t,n,r,i,s,o){let{context:a}=this,{eventSelection:l}=this.props,{framePositions:c}=this.state,d=1===this.props.cells.length,u=i||s||o,f=[];if(c)for(let h of t){let{seg:t}=h,{instanceId:p}=t.eventRange.instance,g=p+":"+e,m=h.isVisible&&!r[p],v=h.isAbsolute,b="",y="";v&&(a.isRtl?(y=0,b=c.lefts[t.lastCol]-c.lefts[t.firstCol]):(b=0,y=c.rights[t.firstCol]-c.rights[t.lastCol])),f.push(A("div",{className:"fc-daygrid-event-harness"+(v?" fc-daygrid-event-harness-abs":""),key:g,ref:u?null:this.segHarnessRefs.createRef(g),style:{visibility:m?"":"hidden",marginTop:v?"":h.marginTop,top:v?h.absoluteTop:"",left:b,right:y}},kl(t)?A(Tl,Object.assign({seg:t,isDragging:i,isSelected:p===l,defaultDisplayEventEnd:d},Fi(t,n))):A(xl,Object.assign({seg:t,isDragging:i,isResizing:s,isDateSelecting:o,isSelected:p===l,defaultDisplayEventEnd:d},Fi(t,n)))))}return f}renderFillSegs(e,t){let{isRtl:n}=this.context,{todayRange:r}=this.props,{framePositions:i}=this.state,s=[];if(i)for(let o of e){let e=n?{right:0,left:i.lefts[o.lastCol]-i.lefts[o.firstCol]}:{left:0,right:i.rights[o.firstCol]-i.rights[o.lastCol]};s.push(A("div",{key:Li(o.eventRange),className:"fc-daygrid-bg-harness",style:e},"bg-event"===t?A(mo,Object.assign({seg:o},Fi(o,r))):bo(t)))}return A(C,{},...s)}updateSizing(e){let{props:t,frameElRefs:n}=this;if(!t.forPrint&&null!==t.clientWidth){if(e){let e=t.cells.map((e=>n.currentMap[e.key]));if(e.length){let t=this.rootElRef.current;this.setState({framePositions:new Es(t,e,!0,!1)})}}const r=this.state.eventInstanceHeights,i=this.queryEventInstanceHeights(),s=!0===t.dayMaxEvents||!0===t.dayMaxEventRows;this.safeSetState({eventInstanceHeights:Object.assign(Object.assign({},r),i),maxContentHeight:s?this.computeMaxContentHeight():null})}}queryEventInstanceHeights(){let e=this.segHarnessRefs.currentMap,t={};for(let n in e){let r=Math.round(e[n].getBoundingClientRect().height),i=n.split(":")[0];t[i]=Math.max(t[i]||0,r)}return t}computeMaxContentHeight(){let e=this.props.cells[0].key,t=this.cellElRefs.currentMap[e],n=this.fgElRefs.currentMap[e];return t.getBoundingClientRect().bottom-n.getBoundingClientRect().top}getCellEls(){let e=this.cellElRefs.currentMap;return this.props.cells.map((t=>e[t.key]))}}function Wl(e,t){if(!e.length)return[];let n=Ll(t);return e.map((e=>({seg:e,isVisible:!0,isAbsolute:!0,absoluteTop:n[e.eventRange.instance.instanceId],marginTop:0})))}function Ll(e){let t={};for(let n of e)for(let e of n)t[e.seg.eventRange.instance.instanceId]=e.absoluteTop;return t}Fl.addStateEquality({eventInstanceHeights:Fe});class Ql extends Cs{constructor(){super(...arguments),this.splitBusinessHourSegs=$e(wl),this.splitBgEventSegs=$e(wl),this.splitFgEventSegs=$e(wl),this.splitDateSelectionSegs=$e(wl),this.splitEventDrag=$e(Sl),this.splitEventResize=$e(Sl),this.rowRefs=new Gs,this.handleRootEl=e=>{this.rootEl=e,e?this.context.registerInteractiveComponent(this,{el:e,isHitComboAllowed:this.props.isHitComboAllowed}):this.context.unregisterInteractiveComponent(this)}}render(){let{props:e}=this,{dateProfile:t,dayMaxEventRows:n,dayMaxEvents:r,expandRows:i}=e,s=e.cells.length,o=this.splitBusinessHourSegs(e.businessHourSegs,s),a=this.splitBgEventSegs(e.bgEventSegs,s),l=this.splitFgEventSegs(e.fgEventSegs,s),c=this.splitDateSelectionSegs(e.dateSelectionSegs,s),d=this.splitEventDrag(e.eventDrag,s),u=this.splitEventResize(e.eventResize,s),f=!0===r||!0===n;f&&!i&&(f=!1,n=null,r=null);let h=["fc-daygrid-body",f?"fc-daygrid-body-balanced":"fc-daygrid-body-unbalanced",i?"":"fc-daygrid-body-natural"];return A("div",{className:h.join(" "),ref:this.handleRootEl,style:{width:e.clientWidth,minWidth:e.tableMinWidth}},A(Hs,{unit:"day"},((f,h)=>A(C,null,A("table",{role:"presentation",className:"fc-scrollgrid-sync-table",style:{width:e.clientWidth,minWidth:e.tableMinWidth,height:i?e.clientHeight:""}},e.colGroupNode,A("tbody",{role:"presentation"},e.cells.map(((i,f)=>A(Fl,{ref:this.rowRefs.createRef(f),key:i.length?i[0].date.toISOString():f,showDayNumbers:s>1,showWeekNumbers:e.showWeekNumbers,todayRange:h,dateProfile:t,cells:i,renderIntro:e.renderRowIntro,businessHourSegs:o[f],eventSelection:e.eventSelection,bgEventSegs:a[f].filter(Gl),fgEventSegs:l[f],dateSelectionSegs:c[f],eventDrag:d[f],eventResize:u[f],dayMaxEvents:r,dayMaxEventRows:n,clientWidth:e.clientWidth,clientHeight:e.clientHeight,forPrint:e.forPrint})))))))))}prepareHits(){this.rowPositions=new Es(this.rootEl,this.rowRefs.collect().map((e=>e.getCellEls()[0])),!1,!0),this.colPositions=new Es(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)}queryHit(e,t){let{colPositions:n,rowPositions:r}=this,i=n.leftToIndex(e),s=r.topToIndex(t);if(null!=s&&null!=i){let e=this.props.cells[s][i];return{dateProfile:this.props.dateProfile,dateSpan:Object.assign({range:this.getCellRange(s,i),allDay:!0},e.extraDateSpan),dayEl:this.getCellEl(s,i),rect:{left:n.lefts[i],right:n.rights[i],top:r.tops[s],bottom:r.bottoms[s]},layer:0}}return null}getCellEl(e,t){return this.rowRefs.currentMap[e].getCellEls()[t]}getCellRange(e,t){let n=this.props.cells[e][t].date,r=Dt(n,1);return{start:n,end:r}}}function Gl(e){return e.eventRange.def.allDay}class Zl extends Fs{constructor(){super(...arguments),this.forceDayIfListItem=!0}sliceRange(e,t){return t.sliceRange(e)}}class ql extends Cs{constructor(){super(...arguments),this.slicer=new Zl,this.tableRef=E()}render(){let{props:e,context:t}=this;return A(Ql,Object.assign({ref:this.tableRef},this.slicer.sliceProps(e,e.dateProfile,e.nextDayThreshold,t,e.dayTableModel),{dateProfile:e.dateProfile,cells:e.dayTableModel.cells,colGroupNode:e.colGroupNode,tableMinWidth:e.tableMinWidth,renderRowIntro:e.renderRowIntro,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.showWeekNumbers,expandRows:e.expandRows,headerAlignElRef:e.headerAlignElRef,clientWidth:e.clientWidth,clientHeight:e.clientHeight,forPrint:e.forPrint}))}}class Yl extends Cl{constructor(){super(...arguments),this.buildDayTableModel=$e($l),this.headerRef=E(),this.tableRef=E()}render(){let{options:e,dateProfileGenerator:t}=this.context,{props:n}=this,r=this.buildDayTableModel(n.dateProfile,t),i=e.dayHeaders&&A(js,{ref:this.headerRef,dateProfile:n.dateProfile,dates:r.headerDates,datesRepDistinctDays:1===r.rowCnt}),s=t=>A(ql,{ref:this.tableRef,dateProfile:n.dateProfile,dayTableModel:r,businessHours:n.businessHours,dateSelection:n.dateSelection,eventStore:n.eventStore,eventUiBases:n.eventUiBases,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,nextDayThreshold:e.nextDayThreshold,colGroupNode:t.tableColGroupNode,tableMinWidth:t.tableMinWidth,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.weekNumbers,expandRows:!n.isHeightAuto,headerAlignElRef:this.headerElRef,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:n.forPrint});return e.dayMinWidth?this.renderHScrollLayout(i,s,r.colCnt,e.dayMinWidth):this.renderSimpleLayout(i,s)}}function $l(e,t){let n=new Us(e.renderRange,t);return new Vs(n,/year|month|week/.test(e.currentRangeUnit))}class Jl extends kr{buildRenderRange(e,t,n){let r,{dateEnv:i}=this.props,s=super.buildRenderRange(e,t,n),o=s.start,a=s.end;if(/^(year|month)$/.test(t)&&(o=i.startOfWeek(o),r=i.startOfWeek(a),r.valueOf()!==a.valueOf()&&(a=wt(r,1))),this.props.monthMode&&this.props.fixedWeekCount){let e=Math.ceil(Rt(o,a));a=wt(a,6-e)}return{start:o,end:a}}}var Xl=':root{--fc-daygrid-event-dot-width:8px}.fc-daygrid-day-events:after,.fc-daygrid-day-events:before,.fc-daygrid-day-frame:after,.fc-daygrid-day-frame:before,.fc-daygrid-event-harness:after,.fc-daygrid-event-harness:before{clear:both;content:"";display:table}.fc .fc-daygrid-body{position:relative;z-index:1}.fc .fc-daygrid-day.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-daygrid-day-frame{min-height:100%;position:relative}.fc .fc-daygrid-day-top{display:flex;flex-direction:row-reverse}.fc .fc-day-other .fc-daygrid-day-top{opacity:.3}.fc .fc-daygrid-day-number{padding:4px;position:relative;z-index:4}.fc .fc-daygrid-day-events{margin-top:1px}.fc .fc-daygrid-body-balanced .fc-daygrid-day-events{left:0;position:absolute;right:0}.fc .fc-daygrid-body-unbalanced .fc-daygrid-day-events{min-height:2em;position:relative}.fc .fc-daygrid-body-natural .fc-daygrid-day-events{margin-bottom:1em}.fc .fc-daygrid-event-harness{position:relative}.fc .fc-daygrid-event-harness-abs{left:0;position:absolute;right:0;top:0}.fc .fc-daygrid-bg-harness{bottom:0;position:absolute;top:0}.fc .fc-daygrid-day-bg .fc-non-business{z-index:1}.fc .fc-daygrid-day-bg .fc-bg-event{z-index:2}.fc .fc-daygrid-day-bg .fc-highlight{z-index:3}.fc .fc-daygrid-event{margin-top:1px;z-index:6}.fc .fc-daygrid-event.fc-event-mirror{z-index:7}.fc .fc-daygrid-day-bottom{font-size:.85em;padding:2px 3px 0}.fc .fc-daygrid-day-bottom:before{clear:both;content:"";display:table}.fc .fc-daygrid-more-link{cursor:pointer;position:relative;z-index:4}.fc .fc-daygrid-week-number{background-color:var(--fc-neutral-bg-color);color:var(--fc-neutral-text-color);min-width:1.5em;padding:2px;position:absolute;text-align:center;top:0;z-index:5}.fc .fc-more-popover .fc-popover-body{min-width:220px;padding:10px}.fc-direction-ltr .fc-daygrid-event.fc-event-start,.fc-direction-rtl .fc-daygrid-event.fc-event-end{margin-left:2px}.fc-direction-ltr .fc-daygrid-event.fc-event-end,.fc-direction-rtl .fc-daygrid-event.fc-event-start{margin-right:2px}.fc-direction-ltr .fc-daygrid-week-number{border-radius:0 0 3px 0;left:0}.fc-direction-rtl .fc-daygrid-week-number{border-radius:0 0 0 3px;right:0}.fc-liquid-hack .fc-daygrid-day-frame{position:static}.fc-daygrid-event{border-radius:3px;font-size:var(--fc-small-font-size);position:relative;white-space:nowrap}.fc-daygrid-block-event .fc-event-time{font-weight:700}.fc-daygrid-block-event .fc-event-time,.fc-daygrid-block-event .fc-event-title{padding:1px}.fc-daygrid-dot-event{align-items:center;display:flex;padding:2px 0}.fc-daygrid-dot-event .fc-event-title{flex-grow:1;flex-shrink:1;font-weight:700;min-width:0;overflow:hidden}.fc-daygrid-dot-event.fc-event-mirror,.fc-daygrid-dot-event:hover{background:rgba(0,0,0,.1)}.fc-daygrid-dot-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-daygrid-event-dot{border:calc(var(--fc-daygrid-event-dot-width)/2) solid var(--fc-event-border-color);border-radius:calc(var(--fc-daygrid-event-dot-width)/2);box-sizing:content-box;height:0;margin:0 4px;width:0}.fc-direction-ltr .fc-daygrid-event .fc-event-time{margin-right:3px}.fc-direction-rtl .fc-daygrid-event .fc-event-time{margin-left:3px}';Ne(Xl);var Kl=Wo({name:"@fullcalendar/daygrid",initialView:"dayGridMonth",views:{dayGrid:{component:Yl,dateProfileGeneratorClass:Jl},dayGridDay:{type:"dayGrid",duration:{days:1}},dayGridWeek:{type:"dayGrid",duration:{weeks:1}},dayGridMonth:{type:"dayGrid",duration:{months:1},monthMode:!0,fixedWeekCount:!0}}}),ec={emits:["open-detail"],components:{VFullCalendar:El},props:{events:{required:!0},month:{required:!0}},computed:{calendarOptions(){return{plugins:[Kl],initialView:"dayGridMonth",headerToolbar:!1,locale:"sk",height:650,firstDay:1,dayHeaderClassNames:["w-day-header"],events:this.events,eventContent:e=>({html:e.event.extendedProps.title_html}),eventClick:e=>this.$emit("open-detail",e.event._def.publicId)}}},mounted(){const e=(new Date).getFullYear(),t="string"==typeof this.month?parseInt(this.month)-1:this.month-1;this.calendarOptions.events=this.events,this.$refs.fullCalendar?.getApi().gotoDate(new Date(e,t,1))},watch:{month(e){const t=(new Date).getFullYear();this.$refs.fullCalendar?.getApi().gotoDate(new Date(t,e,1))}}},tc=n(40089);const nc=(0,tc.Z)(ec,[["render",a],["__scopeId","data-v-4b337cac"]]);var rc=nc,ic=n(60988),sc=n(16824),oc=n(10240),ac=n(86193),lc=n(49114),cc=n(13173),dc=n(16791),uc=n(84870),fc=n(8717),hc=n(44870),pc=n(80320),gc=n(17514),mc=n(89888),vc=n(131);const bc=(0,pc.a)({name:"VSwitch",inheritAttrs:!1,props:{indeterminate:Boolean,inset:Boolean,flat:Boolean,loading:{type:[Boolean,String],default:!1},...(0,lc.co)(),...(0,ac.$9)()},emits:{"update:focused":e=>!0,"update:modelValue":()=>!0,"update:indeterminate":e=>!0},setup(e,t){let{attrs:n,slots:i}=t;const s=(0,fc.z)(e,"indeterminate"),o=(0,fc.z)(e,"modelValue"),{loaderClasses:a}=(0,dc.U2)(e),{isFocused:l,focus:c,blur:d}=(0,uc.K)(e),u=(0,r.Fl)((()=>"string"===typeof e.loading&&""!==e.loading?e.loading:e.color)),f=(0,gc.sq)(),h=(0,r.Fl)((()=>e.id||`switch-${f}`));function p(){s.value&&(s.value=!1)}return(0,mc.L)((()=>{const[t,f]=(0,vc.An)(n),[g,m]=(0,lc.PE)(e),[v,b]=(0,ac.fU)(e),y=(0,hc.iH)();function A(){var e,t;null==(e=y.value)||null==(t=e.input)||t.click()}return(0,r.Wm)(lc.q8,(0,r.dG)({class:["v-switch",{"v-switch--inset":e.inset},{"v-switch--indeterminate":s.value},a.value]},t,g,{id:h.value,focused:l.value}),{...i,default:t=>{let{id:n,isDisabled:a,isReadonly:l,isValid:h}=t;return(0,r.Wm)(ac.g5,(0,r.dG)({ref:y},v,{modelValue:o.value,"onUpdate:modelValue":[e=>o.value=e,p],id:n.value,type:"checkbox","aria-checked":s.value?"mixed":void 0,disabled:a.value,readonly:l.value,onFocus:c,onBlur:d},f),{...i,default:()=>(0,r.Wm)("div",{class:"v-switch__track",onClick:A},null),input:t=>{let{textColorClasses:n,textColorStyles:s}=t;return(0,r.Wm)("div",{class:["v-switch__thumb",n.value],style:s.value},[e.loading&&(0,r.Wm)(dc.rD,{name:"v-switch",active:!0,color:!1===h.value?void 0:u.value},{default:e=>i.loader?i.loader(e):(0,r.Wm)(cc.L,{active:e.isActive,color:e.color,indeterminate:!0,size:"16",width:"2"},null)})])}})}})})),{}}}),yc=e=>((0,r.dD)("data-v-4807cf95"),e=e(),(0,r.Cn)(),e),Ac={class:"subheader-input switch"},_c=yc((()=>(0,r._)("p",{class:"switch-label"},"Zobraziť ukončené",-1)));function Ec(e,t,n,i,s,o){return(0,r.wg)(),(0,r.j4)(sc.o,{class:"px-10 py-8 subheader"},{default:(0,r.w5)((()=>[(0,r.Wm)(ic.f,{"custom-filter":e.customFilter,"match-any":!0,modelValue:s.filter.projectId,"onUpdate:modelValue":t[0]||(t[0]=e=>s.filter.projectId=e),class:"subheader-input","no-data-text":"reset",items:[{id:null,code:""},...o.projectsOptions],"item-title":"code","item-value":"id",label:"Projekt",variant:"outlined","onUpdate:search":t[1]||(t[1]=e=>s.projectCodeSearch=e)},null,8,["custom-filter","modelValue","items"]),(0,r.Wm)(ic.f,{"custom-filter":e.customFilter,"match-any":!0,modelValue:s.filter.teamId,"onUpdate:modelValue":t[2]||(t[2]=e=>s.filter.teamId=e),class:"subheader-input",items:[{id:null,name:""},...e.teams],"item-title":"name","item-value":"id",label:"Tím",variant:"outlined"},null,8,["custom-filter","modelValue","items"]),(0,r.Wm)(ic.f,{"custom-filter":e.customFilter,"match-any":!0,modelValue:s.filter.employeeId,"onUpdate:modelValue":t[3]||(t[3]=e=>s.filter.employeeId=e),class:"subheader-input",items:[{id:null,_fullName:""},...e.enrichedEmployees],"item-title":"_fullName","item-value":"id",label:"Zamestnanec",variant:"outlined"},null,8,["custom-filter","modelValue","items"]),(0,r.Wm)(ic.f,{"custom-filter":e.customFilter,"match-any":!0,modelValue:s.filter.createdById,"onUpdate:modelValue":t[4]||(t[4]=e=>s.filter.createdById=e),class:"subheader-input",items:[{id:null,_fullName:""},...e.enrichedEmployees],label:"Vytvoril",variant:"outlined","item-title":"_fullName","item-value":"id"},null,8,["custom-filter","modelValue","items"]),(0,r.Wm)(oc.r,{modelValue:s.filter.month,"onUpdate:modelValue":t[5]||(t[5]=e=>s.filter.month=e),class:"subheader-input",items:s.months,label:"Mesiac",variant:"outlined"},null,8,["modelValue","items"]),(0,r._)("div",Ac,[_c,(0,r.Wm)(bc,{modelValue:s.filter.isFinished,"onUpdate:modelValue":t[6]||(t[6]=e=>s.filter.isFinished=e),color:"#6200EE","hide-details":""},null,8,["modelValue"])])])),_:1})}var Cc=n(83299),wc=n(20065),Dc={mixins:[Cc.Z],emits:["filterChanged"],data(){return{months:[{title:"Január",value:"01"},{title:"Február",value:"02"},{title:"Marec",value:"03"},{title:"Apríl",value:"04"},{title:"Máj",value:"05"},{title:"Jún",value:"06"},{title:"Júl",value:"07"},{title:"August",value:"08"},{title:"September",value:"09"},{title:"Október",value:"10"},{title:"November",value:"11"},{title:"December",value:"12"}],projectCodeSearch:null,filter:{projectId:null,teamId:null,employeeId:null,createdById:null,month:null,isFinished:!1}}},mounted(){const e=(new Date).getMonth();this.filter.month=e<9?`0${e+1}`:`${e+1}`},computed:{...(0,wc.Se)("tm",["teams","projects","enrichedEmployees"]),projectsOptions(){const e=/[^a-zA-Z0-9 ]/g,t=this.projectCodeSearch?this.projectCodeSearch.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(e,""):"",n=this.projects.filter((n=>{const r=n.code.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(e,"");return r.toLowerCase().includes(t.toLowerCase())}));return n?.length?n.slice(0,10):this.projects.slice(0,10)}},watch:{filter:{handler(){this.$emit("filterChanged",this.filter)},deep:!0}}};const Sc=(0,tc.Z)(Dc,[["render",Ec],["__scopeId","data-v-4807cf95"]]);var Rc=Sc,kc=n(70026),xc={mixins:[kc.Z],components:{AProjectCalendar:rc,AProjectFilter:Rc},data(){return{mastertasks:null,filter:null}},computed:{filteredProjects(){return this.mastertasks?this.mastertasks.map((e=>({id:e.id,title:`${e.project_code} - ${e.name}`,title_html:`${e.project_code} - ${e.name}`,start:new Date(e.starts_at),end:new Date(e.deadline),is_finished:e.is_finished,project_code:e.project_code,backgroundColor:`${e.color}`,borderColor:e.color}))):null}},mounted(){this.$events.on("on-mastertask-edited",(()=>this.onFilterChanged(this.filter))),this.$events.on("on-mastertask-deleted",(()=>this.onFilterChanged(this.filter)))},unmounted(){this.$events.off("on-mastertask-edited"),this.$events.off("on-mastertask-deleted")},methods:{async onFilterChanged(e){this.mastertasks=null,this.filter=e;const t={};e.employeeId&&(t.employee_id=e.employeeId),e.projectId&&(t.project_id=e.projectId),e.teamId&&(t.team_id=e.teamId),e.createdById&&(t.created_by=e.createdById),e.isFinished&&(t.is_finished=e.isFinished?1:0),e.month&&(t.created_at=e.month);const n=new URLSearchParams(t).toString();try{const{mastertasks:e}=await this.$axios.get_auth(`v1/mastertasks?${n}`);this.mastertasks=e}catch(r){this.$toast.error("Nepodarilo sa nacitat data!")}this._initScrollListener()},openMasterTaskModal(e){const t=this.mastertasks.find((t=>t.id==e));this.$events.emit("show-mastertask-modal",{mastertask:t,editMode:!1})}}};const Tc=(0,tc.Z)(xc,[["render",s],["__scopeId","data-v-2b7fe154"]]);var Oc=Tc}}]); -//# sourceMappingURL=7458.f602cf50.js.map \ No newline at end of file +"use strict";(self["webpackChunkjandl"]=self["webpackChunkjandl"]||[]).push([[6811],{70026:function(e,t){t["Z"]={data(){return{header:{initialized:!1,marginTop:0,calendar_previousScrollPosition:0,isVisible:!0}}},unmounted(){this.$refs.page?.querySelector(".vuecal__bg")?.removeEventListener("scroll",this.handleScroll)},methods:{_initScrollListener(e=0){if(this.initialized)return;const t=this.$refs.page?.querySelector(".vuecal__bg");if(!t)return setTimeout((()=>{e<20&&this._initScrollListener(e+1)}),200);t.addEventListener("scroll",this._handleScroll),this.initialized=!0,this.header.calendar_previousScrollPosition=t.scrollTop},_handleScroll(e){const t=document.querySelector("div.subheader");this.initialized?(this.header.calendar_previousScrollPosition>e.target.scrollTop?this.header.isVisible||this.showHeader():(t.offsetHeight,Math.abs(e.target.scrollTop),this.header.isVisible&&this.hideHeader()),this.header.calendar_previousScrollPosition=e.target.scrollTop):this.header.calendar_previousScrollPosition=e.target.scrollTop},hideHeader(){const e=document.querySelector("div.subheader");e.style.transition="margin-top 0.5s",e.style.marginTop=`-${e.offsetHeight}px`,this.header.isVisible=!1,setTimeout((()=>{e.style.transition=""}),500)},showHeader(){const e=document.querySelector("div.subheader");e.style.transition="margin-top 0.5s",e.style.marginTop="0",this.header.isVisible=!0,setTimeout((()=>{e.style.transition=""}),500)}}}},56811:function(e,t,n){n.r(t),n.d(t,{default:function(){return Oc}});var r=n(73396);const i={ref:"page"};function s(e,t,n,s,o,a){const l=(0,r.up)("A-project-filter"),c=(0,r.up)("A-project-calendar"),d=(0,r.up)("W-loadable");return(0,r.wg)(),(0,r.iD)("div",i,[e.$store.getters["tm/isInitialized"]?((0,r.wg)(),(0,r.j4)(l,{key:0,onFilterChanged:a.onFilterChanged},null,8,["onFilterChanged"])):(0,r.kq)("",!0),(0,r.Wm)(d,{class:"non-projects",content:a.filteredProjects,emptyMessage:"Nenašli sa žiadne vyhovujúce projekty"},{default:(0,r.w5)((()=>[(0,r.Wm)(c,{events:a.filteredProjects,month:o.filter.month,onOpenDetail:a.openMasterTaskModal},null,8,["events","month","onOpenDetail"])])),_:1},8,["content"])],512)}const o={id:"calendar",class:"mb-12"};function a(e,t,n,i,s,a){const l=(0,r.up)("V-full-calendar");return(0,r.wg)(),(0,r.iD)("div",o,[(0,r.Wm)(l,{ref:"fullCalendar",options:a.calendarOptions},null,8,["options"])])}n(57658),n(30541);var l,c,d,u,f,h,p,g={},m=[],v=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function b(e,t){for(var n in t)e[n]=t[n];return e}function y(e){var t=e.parentNode;t&&t.removeChild(e)}function A(e,t,n){var r,i,s,o={};for(s in t)"key"==s?r=t[s]:"ref"==s?i=t[s]:o[s]=t[s];if(arguments.length>2&&(o.children=arguments.length>3?l.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(s in e.defaultProps)void 0===o[s]&&(o[s]=e.defaultProps[s]);return _(e,o,r,i,null)}function _(e,t,n,r,i){var s={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==i?++d:i};return null==i&&null!=c.vnode&&c.vnode(s),s}function E(){return{current:null}}function C(e){return e.children}function w(e,t){this.props=e,this.context=t}function D(e,t){if(null==t)return e.__?D(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t0?_(h.type,h.props,h.key,h.ref?h.ref:null,h.__v):h)){if(h.__=n,h.__b=n.__b+1,null===(f=y[d])||f&&h.key==f.key&&h.type===f.type)y[d]=void 0;else for(u=0;u3;)n.pop()();if(n[1]>>1,1),t.i.removeChild(e)}}),L(A(ye,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function _e(e,t){var n=A(Ae,{__v:e,i:t});return n.containerInfo=t,n}(ve.prototype=new w).__a=function(e){var t=this,n=me(t.__v),r=t.o.get(e);return r[0]++,function(i){var s=function(){t.props.revealOrder?(r.push(i),be(t,e,r)):i()};n?n(s):s()}},ve.prototype.render=function(e){this.u=null,this.o=new Map;var t=O(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},ve.prototype.componentDidUpdate=ve.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){be(e,n,t)}))};var Ee="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Ce=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,we="undefined"!=typeof document,De=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};w.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(w.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var Se=c.event;function Re(){}function ke(){return this.cancelBubble}function Te(){return this.defaultPrevented}c.event=function(e){return Se&&(e=Se(e)),e.persist=Re,e.isPropagationStopped=ke,e.isDefaultPrevented=Te,e.nativeEvent=e};var xe={configurable:!0,get:function(){return this.class}},Oe=c.vnode;c.vnode=function(e){var t=e.type,n=e.props,r=n;if("string"==typeof t){var i=-1===t.indexOf("-");for(var s in r={},n){var o=n[s];we&&"children"===s&&"noscript"===t||"value"===s&&"defaultValue"in n&&null==o||("defaultValue"===s&&"value"in n&&null==n.value?s="value":"download"===s&&!0===o?o="":/ondoubleclick/i.test(s)?s="ondblclick":/^onchange(textarea|input)/i.test(s+t)&&!De(n.type)?s="oninput":/^onfocus$/i.test(s)?s="onfocusin":/^onblur$/i.test(s)?s="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(s)?s=s.toLowerCase():i&&Ce.test(s)?s=s.replace(/[A-Z0-9]/g,"-$&").toLowerCase():null===o&&(o=void 0),/^oninput$/i.test(s)&&(s=s.toLowerCase(),r[s]&&(s="oninputCapture")),r[s]=o)}"select"==t&&r.multiple&&Array.isArray(r.value)&&(r.value=O(n.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==t&&null!=r.defaultValue&&(r.value=O(n.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),e.props=r,n.class!=n.className&&(xe.enumerable="className"in n,null!=n.className&&(r.class=n.className),Object.defineProperty(r,"className",xe))}e.$$typeof=Ee,Oe&&Oe(e)};var Ie=c.__r;c.__r=function(e){Ie&&Ie(e),e.__c};var Me=n(15941);function Ne(e){if(!e||"undefined"===typeof document)return;const t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}class Pe{constructor(e){this.drainedOption=e,this.isRunning=!1,this.isDirty=!1,this.pauseDepths={},this.timeoutId=0}request(e){this.isDirty=!0,this.isPaused()||(this.clearTimeout(),null==e?this.tryDrain():this.timeoutId=setTimeout(this.tryDrain.bind(this),e))}pause(e=""){let{pauseDepths:t}=this;t[e]=(t[e]||0)+1,this.clearTimeout()}resume(e="",t){let{pauseDepths:n}=this;if(e in n){if(t)delete n[e];else{n[e]-=1;let t=n[e];t<=0&&delete n[e]}this.tryDrain()}}isPaused(){return Object.keys(this.pauseDepths).length}tryDrain(){if(!this.isRunning&&!this.isPaused()){this.isRunning=!0;while(this.isDirty)this.isDirty=!1,this.drained();this.isRunning=!1}}clear(){this.clearTimeout(),this.isDirty=!1,this.pauseDepths={}}clearTimeout(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=0)}drained(){this.drainedOption&&this.drainedOption()}}const{hasOwnProperty:Be}=Object.prototype;function He(e,t){let n={};if(t)for(let r in t){let t=[];for(let i=e.length-1;i>=0;i-=1){let s=e[i][r];if("object"===typeof s&&s)t.unshift(s);else if(void 0!==s){n[r]=s;break}}t.length&&(n[r]=He(t))}for(let r=e.length-1;r>=0;r-=1){let t=e[r];for(let e in t)e in n||(n[e]=t[e])}return n}function je(e,t){let n={};for(let r in e)t(e[r],r)&&(n[r]=e[r]);return n}function ze(e,t){let n={};for(let r in e)n[r]=t(e[r],r);return n}function Ue(e){let t={};for(let n of e)t[n]=!0;return t}function Ve(e){let t=[];for(let n in e)t.push(e[n]);return t}function Fe(e,t){if(e===t)return!0;for(let n in e)if(Be.call(e,n)&&!(n in t))return!1;for(let n in t)if(Be.call(t,n)&&e[n]!==t[n])return!1;return!0}const We=/^on[A-Z]/;function Le(e,t){const n=Qe(e,t);for(let r of n)if(!We.test(r))return!1;return!0}function Qe(e,t){let n=[];for(let r in e)Be.call(e,r)&&(r in t||n.push(r));for(let r in t)Be.call(t,r)&&e[r]!==t[r]&&n.push(r);return n}function Ge(e,t,n={}){if(e===t)return!0;for(let r in t)if(!(r in e)||!Ze(e[r],t[r],n[r]))return!1;for(let r in e)if(!(r in t))return!1;return!0}function Ze(e,t,n){return e===t||!0===n||!!n&&n(e,t)}function qe(e,t=0,n,r=1){let i=[];null==n&&(n=Object.keys(e).length);for(let s=t;s{if(r){if(!Fe(r,s)){n&&n(i);let r=e.call(this,s);t&&t(r,i)||(i=r)}}else i=e.call(this,s);return r=s,i}}function Xe(e){e.parentNode&&e.parentNode.removeChild(e)}function Ke(e,t){if(e.closest)return e.closest(t);if(!document.documentElement.contains(e))return null;do{if(et(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}function et(e,t){let n=e.matches||e.matchesSelector||e.msMatchesSelector;return n.call(e,t)}function tt(e,t){let n=e instanceof HTMLElement?[e]:e,r=[];for(let i=0;i{let r=Ke(n.target,e);r&&t.call(r,n,r)}}function ct(e,t,n,r){let i=lt(n,r);return e.addEventListener(t,i),()=>{e.removeEventListener(t,i)}}function dt(e,t,n,r){let i;return ct(e,"mouseover",t,((e,t)=>{if(t!==i){i=t,n(e,t);let s=e=>{i=null,r(e,t),t.removeEventListener("mouseleave",s)};t.addEventListener("mouseleave",s)}}))}function ut(e){return Object.assign({onClick:e},ft(e))}function ft(e){return{tabIndex:0,onKeyDown(t){"Enter"!==t.key&&" "!==t.key||(e(t),t.preventDefault())}}}let ht=0;function pt(){return ht+=1,String(ht)}function gt(e){let t,n,r=[],i=[];for("string"===typeof e?i=e.split(/\s*,\s*/):"function"===typeof e?i=[e]:Array.isArray(e)&&(i=e),t=0;te.replace("$"+n,t||"")),e):n}function _t(e){return e%1===0}function Et(e){let t=e.querySelector(".fc-scrollgrid-shrink-frame"),n=e.querySelector(".fc-scrollgrid-shrink-cushion");if(!t)throw new Error("needs fc-scrollgrid-shrink-frame className");if(!n)throw new Error("needs fc-scrollgrid-shrink-cushion className");return e.getBoundingClientRect().width-t.getBoundingClientRect().width+n.getBoundingClientRect().width}const Ct=["sun","mon","tue","wed","thu","fri","sat"];function wt(e,t){let n=Lt(e);return n[2]+=7*t,Qt(n)}function Dt(e,t){let n=Lt(e);return n[2]+=t,Qt(n)}function St(e,t){let n=Lt(e);return n[6]+=t,Qt(n)}function Rt(e,t){return kt(e,t)/7}function kt(e,t){return(t.valueOf()-e.valueOf())/864e5}function Tt(e,t){return(t.valueOf()-e.valueOf())/36e5}function xt(e,t){return(t.valueOf()-e.valueOf())/6e4}function Ot(e,t){return(t.valueOf()-e.valueOf())/1e3}function It(e,t){let n=Pt(e),r=Pt(t);return{years:0,months:0,days:Math.round(kt(n,r)),milliseconds:t.valueOf()-r.valueOf()-(e.valueOf()-n.valueOf())}}function Mt(e,t){let n=Nt(e,t);return null!==n&&n%7===0?n/7:null}function Nt(e,t){return Zt(e)===Zt(t)?Math.round(kt(e,t)):null}function Pt(e){return Qt([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()])}function Bt(e){return Qt([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours()])}function Ht(e){return Qt([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes()])}function jt(e){return Qt([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds()])}function zt(e,t,n){let r=e.getUTCFullYear(),i=Ut(e,r,t,n);if(i<1)return Ut(e,r-1,t,n);let s=Ut(e,r+1,t,n);return s>=1?Math.min(i,s):i}function Ut(e,t,n,r){let i=Qt([t,0,1+Vt(t,n,r)]),s=Pt(e),o=Math.round(kt(i,s));return Math.floor(o/7)+1}function Vt(e,t,n){let r=7+t-n,i=(7+Qt([e,0,r]).getUTCDay()-t)%7;return-i+r-1}function Ft(e){return[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()]}function Wt(e){return new Date(e[0],e[1]||0,null==e[2]?1:e[2],e[3]||0,e[4]||0,e[5]||0)}function Lt(e){return[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()]}function Qt(e){return 1===e.length&&(e=e.concat([0])),new Date(Date.UTC(...e))}function Gt(e){return!isNaN(e.valueOf())}function Zt(e){return 1e3*e.getUTCHours()*60*60+1e3*e.getUTCMinutes()*60+1e3*e.getUTCSeconds()+e.getUTCMilliseconds()}let qt={};function Yt(e,t){qt[e]=t}function $t(e){return new qt[e]}class Jt{getMarkerYear(e){return e.getUTCFullYear()}getMarkerMonth(e){return e.getUTCMonth()}getMarkerDay(e){return e.getUTCDate()}arrayToMarker(e){return Qt(e)}markerToArray(e){return Lt(e)}}Yt("gregory",Jt);const Xt=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function Kt(e,t){return"string"===typeof e?en(e):"object"===typeof e&&e?tn(e):"number"===typeof e?tn({[t||"milliseconds"]:e}):null}function en(e){let t=Xt.exec(e);if(t){let e=t[1]?-1:1;return{years:0,months:0,days:e*(t[2]?parseInt(t[2],10):0),milliseconds:e*(60*(t[3]?parseInt(t[3],10):0)*60*1e3+60*(t[4]?parseInt(t[4],10):0)*1e3+1e3*(t[5]?parseInt(t[5],10):0)+(t[6]?parseInt(t[6],10):0))}}return null}function tn(e){let t={years:e.years||e.year||0,months:e.months||e.month||0,days:e.days||e.day||0,milliseconds:60*(e.hours||e.hour||0)*60*1e3+60*(e.minutes||e.minute||0)*1e3+1e3*(e.seconds||e.second||0)+(e.milliseconds||e.millisecond||e.ms||0)},n=e.weeks||e.week;return n&&(t.days+=7*n,t.specifiedWeeks=!0),t}function nn(e,t){return e.years===t.years&&e.months===t.months&&e.days===t.days&&e.milliseconds===t.milliseconds}function rn(e,t){return{years:e.years-t.years,months:e.months-t.months,days:e.days-t.days,milliseconds:e.milliseconds-t.milliseconds}}function sn(e){return an(e)/365}function on(e){return an(e)/30}function an(e){return ln(e)/864e5}function ln(e){return 31536e6*e.years+2592e6*e.months+864e5*e.days+e.milliseconds}function cn(e){let t=e.milliseconds;if(t){if(t%1e3!==0)return{unit:"millisecond",value:t};if(t%6e4!==0)return{unit:"second",value:t/1e3};if(t%36e5!==0)return{unit:"minute",value:t/6e4};if(t)return{unit:"hour",value:t/36e5}}return e.days?e.specifiedWeeks&&e.days%7===0?{unit:"week",value:e.days/7}:{unit:"day",value:e.days}:e.months?{unit:"month",value:e.months}:e.years?{unit:"year",value:e.years}:{unit:"millisecond",value:0}}function dn(e,t,n=!1){let r=e.toISOString();return r=r.replace(".000",""),n&&(r=r.replace("T00:00:00Z","")),r.length>10&&(null==t?r=r.replace("Z",""):0!==t&&(r=r.replace("Z",fn(t,!0)))),r}function un(e){return e.toISOString().replace(/T.*$/,"")}function fn(e,t=!1){let n=e<0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),s=Math.round(r%60);return t?`${n+yt(i,2)}:${yt(s,2)}`:`GMT${n}${i}${s?`:${yt(s,2)}`:""}`}const hn=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;function pn(e){let t=hn.exec(e);if(t){let e=new Date(Date.UTC(Number(t[1]),t[3]?Number(t[3])-1:0,Number(t[5]||1),Number(t[7]||0),Number(t[8]||0),Number(t[10]||0),t[12]?1e3*Number(`0.${t[12]}`):0));if(Gt(e)){let n=null;return t[13]&&(n=("-"===t[15]?-1:1)*(60*Number(t[16]||0)+Number(t[18]||0))),{marker:e,isTimeUnspecified:!t[6],timeZoneOffset:n}}}return null}class gn{constructor(e){let t=this.timeZone=e.timeZone,n="local"!==t&&"UTC"!==t;e.namedTimeZoneImpl&&n&&(this.namedTimeZoneImpl=new e.namedTimeZoneImpl(t)),this.canComputeOffset=Boolean(!n||this.namedTimeZoneImpl),this.calendarSystem=$t(e.calendarSystem),this.locale=e.locale,this.weekDow=e.locale.week.dow,this.weekDoy=e.locale.week.doy,"ISO"===e.weekNumberCalculation&&(this.weekDow=1,this.weekDoy=4),"number"===typeof e.firstDay&&(this.weekDow=e.firstDay),"function"===typeof e.weekNumberCalculation&&(this.weekNumberFunc=e.weekNumberCalculation),this.weekText=null!=e.weekText?e.weekText:e.locale.options.weekText,this.weekTextLong=(null!=e.weekTextLong?e.weekTextLong:e.locale.options.weekTextLong)||this.weekText,this.cmdFormatter=e.cmdFormatter,this.defaultSeparator=e.defaultSeparator}createMarker(e){let t=this.createMarkerMeta(e);return null===t?null:t.marker}createNowMarker(){return this.canComputeOffset?this.timestampToMarker((new Date).valueOf()):Qt(Ft(new Date))}createMarkerMeta(e){if("string"===typeof e)return this.parse(e);let t=null;return"number"===typeof e?t=this.timestampToMarker(e):e instanceof Date?(e=e.valueOf(),isNaN(e)||(t=this.timestampToMarker(e))):Array.isArray(e)&&(t=Qt(e)),null!==t&&Gt(t)?{marker:t,isTimeUnspecified:!1,forcedTzo:null}:null}parse(e){let t=pn(e);if(null===t)return null;let{marker:n}=t,r=null;return null!==t.timeZoneOffset&&(this.canComputeOffset?n=this.timestampToMarker(n.valueOf()-60*t.timeZoneOffset*1e3):r=t.timeZoneOffset),{marker:n,isTimeUnspecified:t.isTimeUnspecified,forcedTzo:r}}getYear(e){return this.calendarSystem.getMarkerYear(e)}getMonth(e){return this.calendarSystem.getMarkerMonth(e)}add(e,t){let n=this.calendarSystem.markerToArray(e);return n[0]+=t.years,n[1]+=t.months,n[2]+=t.days,n[6]+=t.milliseconds,this.calendarSystem.arrayToMarker(n)}subtract(e,t){let n=this.calendarSystem.markerToArray(e);return n[0]-=t.years,n[1]-=t.months,n[2]-=t.days,n[6]-=t.milliseconds,this.calendarSystem.arrayToMarker(n)}addYears(e,t){let n=this.calendarSystem.markerToArray(e);return n[0]+=t,this.calendarSystem.arrayToMarker(n)}addMonths(e,t){let n=this.calendarSystem.markerToArray(e);return n[1]+=t,this.calendarSystem.arrayToMarker(n)}diffWholeYears(e,t){let{calendarSystem:n}=this;return Zt(e)===Zt(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)&&n.getMarkerMonth(e)===n.getMarkerMonth(t)?n.getMarkerYear(t)-n.getMarkerYear(e):null}diffWholeMonths(e,t){let{calendarSystem:n}=this;return Zt(e)===Zt(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)?n.getMarkerMonth(t)-n.getMarkerMonth(e)+12*(n.getMarkerYear(t)-n.getMarkerYear(e)):null}greatestWholeUnit(e,t){let n=this.diffWholeYears(e,t);return null!==n?{unit:"year",value:n}:(n=this.diffWholeMonths(e,t),null!==n?{unit:"month",value:n}:(n=Mt(e,t),null!==n?{unit:"week",value:n}:(n=Nt(e,t),null!==n?{unit:"day",value:n}:(n=Tt(e,t),_t(n)?{unit:"hour",value:n}:(n=xt(e,t),_t(n)?{unit:"minute",value:n}:(n=Ot(e,t),_t(n)?{unit:"second",value:n}:{unit:"millisecond",value:t.valueOf()-e.valueOf()}))))))}countDurationsBetween(e,t,n){let r;return n.years&&(r=this.diffWholeYears(e,t),null!==r)?r/sn(n):n.months&&(r=this.diffWholeMonths(e,t),null!==r)?r/on(n):n.days&&(r=Nt(e,t),null!==r)?r/an(n):(t.valueOf()-e.valueOf())/ln(n)}startOf(e,t){return"year"===t?this.startOfYear(e):"month"===t?this.startOfMonth(e):"week"===t?this.startOfWeek(e):"day"===t?Pt(e):"hour"===t?Bt(e):"minute"===t?Ht(e):"second"===t?jt(e):null}startOfYear(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e)])}startOfMonth(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e)])}startOfWeek(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e),e.getUTCDate()-(e.getUTCDay()-this.weekDow+7)%7])}computeWeekNumber(e){return this.weekNumberFunc?this.weekNumberFunc(this.toDate(e)):zt(e,this.weekDow,this.weekDoy)}format(e,t,n={}){return t.format({marker:e,timeZoneOffset:null!=n.forcedTzo?n.forcedTzo:this.offsetForMarker(e)},this)}formatRange(e,t,n,r={}){return r.isEndExclusive&&(t=St(t,-1)),n.formatRange({marker:e,timeZoneOffset:null!=r.forcedStartTzo?r.forcedStartTzo:this.offsetForMarker(e)},{marker:t,timeZoneOffset:null!=r.forcedEndTzo?r.forcedEndTzo:this.offsetForMarker(t)},this,r.defaultSeparator)}formatIso(e,t={}){let n=null;return t.omitTimeZoneOffset||(n=null!=t.forcedTzo?t.forcedTzo:this.offsetForMarker(e)),dn(e,n,t.omitTime)}timestampToMarker(e){return"local"===this.timeZone?Qt(Ft(new Date(e))):"UTC"!==this.timeZone&&this.namedTimeZoneImpl?Qt(this.namedTimeZoneImpl.timestampToArray(e)):new Date(e)}offsetForMarker(e){return"local"===this.timeZone?-Wt(Lt(e)).getTimezoneOffset():"UTC"===this.timeZone?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(Lt(e)):null}toDate(e,t){return"local"===this.timeZone?Wt(Lt(e)):"UTC"===this.timeZone?new Date(e.valueOf()):this.namedTimeZoneImpl?new Date(e.valueOf()-1e3*this.namedTimeZoneImpl.offsetForArray(Lt(e))*60):new Date(e.valueOf()-(t||0))}}class mn{constructor(e){this.iconOverrideOption&&this.setIconOverride(e[this.iconOverrideOption])}setIconOverride(e){let t,n;if("object"===typeof e&&e){for(n in t=Object.assign({},this.iconClasses),e)t[n]=this.applyIconOverridePrefix(e[n]);this.iconClasses=t}else!1===e&&(this.iconClasses={})}applyIconOverridePrefix(e){let t=this.iconOverridePrefix;return t&&0!==e.indexOf(t)&&(e=t+e),e}getClass(e){return this.classes[e]||""}getIconClass(e,t){let n;return n=t&&this.rtlIconClasses&&this.rtlIconClasses[e]||this.iconClasses[e],n?`${this.baseIconClass} ${n}`:""}getCustomButtonIconClass(e){let t;return this.iconOverrideCustomButtonOption&&(t=e[this.iconOverrideCustomButtonOption],t)?`${this.baseIconClass} ${this.applyIconOverridePrefix(t)}`:""}}mn.prototype.classes={},mn.prototype.iconClasses={},mn.prototype.baseIconClass="",mn.prototype.iconOverridePrefix="";const vn={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},bn={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},yn=/\s*([ap])\.?m\.?/i,An=/,/g,_n=/\s+/g,En=/\u200e/g,Cn=/UTC|GMT/;class wn{constructor(e){let t={},n={},r=0;for(let i in e)i in vn?(n[i]=e[i],r=Math.max(vn[i],r)):(t[i]=e[i],i in bn&&(r=Math.max(bn[i],r)));this.standardDateProps=t,this.extendedSettings=n,this.severity=r,this.buildFormattingFunc=$e(Dn)}format(e,t){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,t)(e)}formatRange(e,t,n,r){let{standardDateProps:i,extendedSettings:s}=this,o=On(e.marker,t.marker,n.calendarSystem);if(!o)return this.format(e,n);let a=o;!(a>1)||"numeric"!==i.year&&"2-digit"!==i.year||"numeric"!==i.month&&"2-digit"!==i.month||"numeric"!==i.day&&"2-digit"!==i.day||(a=1);let l=this.format(e,n),c=this.format(t,n);if(l===c)return l;let d=In(i,a),u=Dn(d,s,n),f=u(e),h=u(t),p=Mn(l,f,c,h),g=s.separator||r||n.defaultSeparator||"";return p?p.before+f+g+h+p.after:l+g+c}getLargestUnit(){switch(this.severity){case 7:case 6:case 5:return"year";case 4:return"month";case 3:return"week";case 2:return"day";default:return"time"}}}function Dn(e,t,n){let r=Object.keys(e).length;return 1===r&&"short"===e.timeZoneName?e=>fn(e.timeZoneOffset):0===r&&t.week?e=>xn(n.computeWeekNumber(e.marker),n.weekText,n.weekTextLong,n.locale,t.week):Sn(e,t,n)}function Sn(e,t,n){e=Object.assign({},e),t=Object.assign({},t),Rn(e,t),e.timeZone="UTC";let r,i=new Intl.DateTimeFormat(n.locale.codes,e);if(t.omitZeroMinute){let t=Object.assign({},e);delete t.minute,r=new Intl.DateTimeFormat(n.locale.codes,t)}return s=>{let o,{marker:a}=s;o=r&&!a.getUTCMinutes()?r:i;let l=o.format(a);return kn(l,s,e,t,n)}}function Rn(e,t){e.timeZoneName&&(e.hour||(e.hour="2-digit"),e.minute||(e.minute="2-digit")),"long"===e.timeZoneName&&(e.timeZoneName="short"),t.omitZeroMinute&&(e.second||e.millisecond)&&delete t.omitZeroMinute}function kn(e,t,n,r,i){return e=e.replace(En,""),"short"===n.timeZoneName&&(e=Tn(e,"UTC"===i.timeZone||null==t.timeZoneOffset?"UTC":fn(t.timeZoneOffset))),r.omitCommas&&(e=e.replace(An,"").trim()),r.omitZeroMinute&&(e=e.replace(":00","")),!1===r.meridiem?e=e.replace(yn,"").trim():"narrow"===r.meridiem?e=e.replace(yn,((e,t)=>t.toLocaleLowerCase())):"short"===r.meridiem?e=e.replace(yn,((e,t)=>`${t.toLocaleLowerCase()}m`)):"lowercase"===r.meridiem&&(e=e.replace(yn,(e=>e.toLocaleLowerCase()))),e=e.replace(_n," "),e=e.trim(),e}function Tn(e,t){let n=!1;return e=e.replace(Cn,(()=>(n=!0,t))),n||(e+=` ${t}`),e}function xn(e,t,n,r,i){let s=[];return"long"===i?s.push(n):"short"!==i&&"narrow"!==i||s.push(t),"long"!==i&&"short"!==i||s.push(" "),s.push(r.simpleNumberFormat.format(e)),"rtl"===r.options.direction&&s.reverse(),s.join("")}function On(e,t,n){return n.getMarkerYear(e)!==n.getMarkerYear(t)?5:n.getMarkerMonth(e)!==n.getMarkerMonth(t)?4:n.getMarkerDay(e)!==n.getMarkerDay(t)?2:Zt(e)!==Zt(t)?1:0}function In(e,t){let n={};for(let r in e)(!(r in bn)||bn[r]<=t)&&(n[r]=e[r]);return n}function Mn(e,t,n,r){let i=0;while(i{this.props.value!==t.value&&e.forEach((e=>{e.context=t.value,e.forceUpdate()}))},this.sub=t=>{e.push(t);let n=t.componentWillUnmount;t.componentWillUnmount=()=>{e.splice(e.indexOf(t),1),n&&n.call(t)}}}return t},t}class Xn{constructor(e,t,n,r){this.execFunc=e,this.emitter=t,this.scrollTime=n,this.scrollTimeReset=r,this.handleScrollRequest=e=>{this.queuedRequest=Object.assign({},this.queuedRequest||{},e),this.drain()},t.on("_scrollRequest",this.handleScrollRequest),this.fireInitialScroll()}detach(){this.emitter.off("_scrollRequest",this.handleScrollRequest)}update(e){e&&this.scrollTimeReset?this.fireInitialScroll():this.drain()}fireInitialScroll(){this.handleScrollRequest({time:this.scrollTime})}drain(){this.queuedRequest&&this.execFunc(this.queuedRequest)&&(this.queuedRequest=null)}}const Kn=Jn({});function er(e,t,n,r,i,s,o,a,l,c,d,u,f){return{dateEnv:i,options:n,pluginHooks:o,emitter:c,dispatch:a,getCurrentData:l,calendarApi:d,viewSpec:e,viewApi:t,dateProfileGenerator:r,theme:s,isRtl:"rtl"===n.direction,addResizeHandler(e){c.on("_resize",e)},removeResizeHandler(e){c.off("_resize",e)},createScrollResponder(e){return new Xn(e,c,Kt(n.scrollTime),n.scrollTimeReset)},registerInteractiveComponent:u,unregisterInteractiveComponent:f}}class tr extends w{shouldComponentUpdate(e,t){return this.debug&&Me.log(Qe(e,this.props),Qe(t,this.state)),!Ge(this.props,e,this.propEquality)||!Ge(this.state,t,this.stateEquality)}safeSetState(e){Ge(this.state,Object.assign(Object.assign({},this.state),e),this.stateEquality)||this.setState(e)}}tr.addPropsEquality=rr,tr.addStateEquality=ir,tr.contextType=Kn,tr.prototype.propEquality={},tr.prototype.stateEquality={};class nr extends tr{}function rr(e){let t=Object.create(this.prototype.propEquality);Object.assign(t,e),this.prototype.propEquality=t}function ir(e){let t=Object.create(this.prototype.stateEquality);Object.assign(t,e),this.prototype.stateEquality=t}function sr(e,t){"function"===typeof e?e(t):e&&(e.current=t)}nr.contextType=Kn;class or extends nr{constructor(){super(...arguments),this.id=pt(),this.currentDomNodes=[],this.queuedDomNodes=[],this.handleEl=e=>{this.props.elRef&&sr(this.props.elRef,e)}}render(){const{props:e,context:t}=this,{options:n}=t,{generator:r,renderProps:i}=e,s=lr(e);let o,a=[];if(ar(e.generatorName,n))n.customRenderingReplacesEl&&delete s.elRef;else{const e="function"===typeof r?r(i,A):r;"string"===typeof e||u(e)||Array.isArray(e)?o=e:"object"===typeof e&&("html"in e?s.dangerouslySetInnerHTML={__html:e.html}:"domNodes"in e&&(a=Array.prototype.slice.call(e.domNodes)))}return this.queuedDomNodes=a,A(e.elTag,s,o)}componentDidMount(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentDidUpdate(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentWillUnmount(){this.triggerCustomRendering(!1)}triggerCustomRendering(e){const{props:t,context:n}=this,{handleCustomRendering:r,customRenderingMetaMap:i}=n.options;if(r){const n=null===i||void 0===i?void 0:i[t.generatorName];n&&r(Object.assign({id:this.id,isActive:e,containerEl:this.base,reportNewContainerEl:this.handleEl,generatorMeta:n},t))}}applyQueueudDomNodes(){const{queuedDomNodes:e,currentDomNodes:t}=this,n=this.base;if(!Ye(e,t)){t.forEach(Xe);for(let t of e)n.appendChild(t);this.currentDomNodes=e}}}function ar(e,t){var n;return Boolean(t.handleCustomRendering&&e&&(null===(n=t.customRenderingMetaMap)||void 0===n?void 0:n[e]))}function lr(e,t){const n=Object.assign(Object.assign({},e.elAttrs),{ref:e.elRef});return(e.elClasses||t)&&(n.className=(e.elClasses||[]).concat(t||[]).concat(n.className||[]).filter(Boolean).join(" ")),e.elStyle&&(n.style=e.elStyle),n}or.addPropsEquality({elClasses:Ye,elStyle:Fe,elAttrs:Le,renderProps:Fe});const cr=Jn(0);class dr extends w{constructor(){super(...arguments),this.InnerContent=ur.bind(void 0,this)}render(){const{props:e}=this,t=fr(e.classNameGenerator,e.renderProps);if(e.children){const n=lr(e,t),r=e.children(this.InnerContent,e.renderProps,n);return e.elTag?A(e.elTag,n,r):r}return A(or,Object.assign(Object.assign({},e),{elTag:e.elTag||"div",elClasses:(e.elClasses||[]).concat(t),renderId:this.context}))}componentDidMount(){var e,t;null===(t=(e=this.props).didMount)||void 0===t||t.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.base}))}componentWillUnmount(){var e,t;null===(t=(e=this.props).willUnmount)||void 0===t||t.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.base}))}}function ur(e,t){const n=e.props;return A(or,Object.assign({renderProps:n.renderProps,generatorName:n.generatorName,generator:n.generator,renderId:e.context},t))}function fr(e,t){const n="function"===typeof e?e(t):e||[];return"string"===typeof n?[n]:n}dr.contextType=cr;class hr extends nr{render(){let{props:e,context:t}=this,{options:n}=t,r={view:t.viewApi};return A(dr,Object.assign({},e,{elTag:e.elTag||"div",elClasses:[...pr(e.viewSpec),...e.elClasses||[]],renderProps:r,classNameGenerator:n.viewClassNames,generatorName:void 0,generator:void 0,didMount:n.viewDidMount,willUnmount:n.viewWillUnmount}),(()=>e.children))}}function pr(e){return[`fc-${e.type}-view`,"fc-view"]}function gr(e,t){let n=null,r=null;return e.start&&(n=t.createMarker(e.start)),e.end&&(r=t.createMarker(e.end)),n||r?n&&r&&rs&&i.push({start:s,end:r.start}),r.end>s&&(s=r.end);return st.start)&&(null===e.start||null===t.end||e.start=e.start)&&(null===e.end||t=t.end?new Date(t.end.valueOf()-1):e}function Er(e){let t=Math.floor(kt(e.start,e.end))||1,n=Pt(e.start),r=Dt(n,t);return{start:n,end:r}}function Cr(e,t=Kt(0)){let n=null,r=null;if(e.end){r=Pt(e.end);let n=e.end.valueOf()-r.valueOf();n&&n>=ln(t)&&(r=Dt(r,1))}return e.start&&(n=Pt(e.start),r&&r<=n&&(r=Dt(n,1))),{start:n,end:r}}function wr(e,t,n,r){return"year"===r?Kt(n.diffWholeYears(e,t),"year"):"month"===r?Kt(n.diffWholeMonths(e,t),"month"):It(e,t)}function Dr(e,t){switch(t.type){case"CHANGE_DATE":return t.dateMarker;default:return e}}function Sr(e,t){let n=e.initialDate;return null!=n?t.createMarker(n):Rr(e.now,t)}function Rr(e,t){return"function"===typeof e&&(e=e()),null==e?t.createNowMarker():t.createMarker(e)}class kr{constructor(e){this.props=e,this.nowDate=Rr(e.nowInput,e.dateEnv),this.initHiddenDays()}buildPrev(e,t,n){let{dateEnv:r}=this.props,i=r.subtract(r.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(i,-1,n)}buildNext(e,t,n){let{dateEnv:r}=this.props,i=r.add(r.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(i,1,n)}build(e,t,n=!0){let r,i,s,o,a,l,{props:c}=this;return r=this.buildValidRange(),r=this.trimHiddenDays(r),n&&(e=_r(e,r)),i=this.buildCurrentRangeInfo(e,t),s=/^(year|month|week|day)$/.test(i.unit),o=this.buildRenderRange(this.trimHiddenDays(i.range),i.unit,s),o=this.trimHiddenDays(o),a=o,c.showNonCurrentDates||(a=br(a,i.range)),a=this.adjustActiveRange(a),a=br(a,r),l=yr(i.range,r),{validRange:r,currentRange:i.range,currentRangeUnit:i.unit,isRangeAllDay:s,activeRange:a,renderRange:o,slotMinTime:c.slotMinTime,slotMaxTime:c.slotMaxTime,isValid:l,dateIncrement:this.buildDateIncrement(i.duration)}}buildValidRange(){let e=this.props.validRangeInput,t="function"===typeof e?e.call(this.props.calendarApi,this.nowDate):e;return this.refineRange(t)||{start:null,end:null}}buildCurrentRangeInfo(e,t){let n,{props:r}=this,i=null,s=null,o=null;return r.duration?(i=r.duration,s=r.durationUnit,o=this.buildRangeFromDuration(e,t,i,s)):(n=this.props.dayCount)?(s="day",o=this.buildRangeFromDayCount(e,t,n)):(o=this.buildCustomVisibleRange(e))?s=r.dateEnv.greatestWholeUnit(o.start,o.end).unit:(i=this.getFallbackDuration(),s=cn(i).unit,o=this.buildRangeFromDuration(e,t,i,s)),{duration:i,unit:s,range:o}}getFallbackDuration(){return Kt({day:1})}adjustActiveRange(e){let{dateEnv:t,usesMinMaxTime:n,slotMinTime:r,slotMaxTime:i}=this.props,{start:s,end:o}=e;return n&&(an(r)<0&&(s=Pt(s),s=t.add(s,r)),an(i)>1&&(o=Pt(o),o=Dt(o,-1),o=t.add(o,i))),{start:s,end:o}}buildRangeFromDuration(e,t,n,r){let i,s,o,{dateEnv:a,dateAlignment:l}=this.props;if(!l){let{dateIncrement:e}=this.props;l=e&&ln(e)!o[e.defId].recurringDef));for(let l in o){let e=o[l];if(e.recurringDef){let{duration:n}=e.recurringDef;n||(n=e.allDay?s.defaultAllDayEventDuration:s.defaultTimedEventDuration);let o=Ir(e,n,t,r,i.recurringTypes);for(let e of o){let t=Tr(l,{start:e,end:r.add(e,n)});a[t.instanceId]=t}}}return{defs:o,instances:a}}function Ir(e,t,n,r,i){let s=i[e.recurringDef.typeId],o=s.expand(e.recurringDef.typeData,{start:r.subtract(n.start,t),end:n.end},r);return e.allDay&&(o=o.map(Pt)),o}const Mr={id:String,groupId:String,title:String,url:String,interactive:Boolean},Nr={start:qn,end:qn,date:qn,allDay:Boolean},Pr=Object.assign(Object.assign(Object.assign({},Mr),Nr),{extendedProps:qn});function Br(e,t,n,r,i=jr(n)){let{refined:s,extra:o}=Hr(e,n,i),a=Vr(t,n),l=xr(s,a,n.dateEnv,n.pluginHooks.recurringTypes);if(l){let e=zr(s,o,t?t.sourceId:"",l.allDay,Boolean(l.duration),n);return e.recurringDef={typeId:l.typeId,typeData:l.typeData,duration:l.duration},{def:e,instance:null}}let c=Ur(s,a,n,r);if(c){let e=zr(s,o,t?t.sourceId:"",c.allDay,c.hasEnd,n),r=Tr(e.defId,c.range,c.forcedStartTzo,c.forcedEndTzo);return{def:e,instance:r}}return null}function Hr(e,t,n=jr(t)){return Zn(e,n)}function jr(e){return Object.assign(Object.assign(Object.assign({},Xr),Pr),e.pluginHooks.eventRefiners)}function zr(e,t,n,r,i,s){let o={title:e.title||"",groupId:e.groupId||"",publicId:e.id||"",url:e.url||"",recurringDef:null,defId:pt(),sourceId:n,allDay:r,hasEnd:i,interactive:e.interactive,ui:ei(e,s),extendedProps:Object.assign(Object.assign({},e.extendedProps||{}),t)};for(let a of s.pluginHooks.eventDefMemberAdders)Object.assign(o,a(e));return Object.freeze(o.ui.classNames),Object.freeze(o.extendedProps),o}function Ur(e,t,n,r){let i,s,{allDay:o}=e,a=null,l=!1,c=null,d=null!=e.start?e.start:e.date;if(i=n.dateEnv.createMarkerMeta(d),i)a=i.marker;else if(!r)return null;return null!=e.end&&(s=n.dateEnv.createMarkerMeta(e.end)),null==o&&(o=null!=t?t:(!i||i.isTimeUnspecified)&&(!s||s.isTimeUnspecified)),o&&a&&(a=Pt(a)),s&&(c=s.marker,o&&(c=Pt(c)),a&&c<=a&&(c=null)),c?l=!0:r||(l=n.options.forceEventDuration||!1,c=n.dateEnv.add(a,o?n.options.defaultAllDayEventDuration:n.options.defaultTimedEventDuration)),{allDay:o,hasEnd:l,range:{start:a,end:c},forcedStartTzo:i?i.forcedTzo:null,forcedEndTzo:s?s.forcedTzo:null}}function Vr(e,t){let n=null;return e&&(n=e.defaultAllDay),null==n&&(n=t.options.defaultAllDay),n}function Fr(e,t,n,r){let i=Gr(),s=jr(n);for(let o of e){let e=Br(o,t,n,r,s);e&&Wr(e,i)}return i}function Wr(e,t=Gr()){return t.defs[e.def.defId]=e.def,e.instance&&(t.instances[e.instance.instanceId]=e.instance),t}function Lr(e,t){let n=e.instances[t];if(n){let t=e.defs[n.defId],r=qr(e,(e=>Qr(t,e)));return r.defs[t.defId]=t,r.instances[n.instanceId]=n,r}return Gr()}function Qr(e,t){return Boolean(e.groupId&&e.groupId===t.groupId)}function Gr(){return{defs:{},instances:{}}}function Zr(e,t){return{defs:Object.assign(Object.assign({},e.defs),t.defs),instances:Object.assign(Object.assign({},e.instances),t.instances)}}function qr(e,t){let n=je(e.defs,t),r=je(e.instances,(e=>n[e.defId]));return{defs:n,instances:r}}function Yr(e,t){let{defs:n,instances:r}=e,i={},s={};for(let o in n)t.defs[o]||(i[o]=n[o]);for(let o in r)!t.instances[o]&&i[r[o].defId]&&(s[o]=r[o]);return{defs:i,instances:s}}function $r(e,t){return Array.isArray(e)?Fr(e,null,t,!0):"object"===typeof e&&e?Fr([e],null,t,!0):null!=e?String(e):null}function Jr(e){return Array.isArray(e)?e:"string"===typeof e?e.split(/\s+/):[]}const Xr={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:qn,overlap:qn,allow:qn,className:Jr,classNames:Jr,color:String,backgroundColor:String,borderColor:String,textColor:String},Kr={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function ei(e,t){let n=$r(e.constraint,t);return{display:e.display||null,startEditable:null!=e.startEditable?e.startEditable:e.editable,durationEditable:null!=e.durationEditable?e.durationEditable:e.editable,constraints:null!=n?[n]:[],overlap:null!=e.overlap?e.overlap:null,allows:null!=e.allow?[e.allow]:[],backgroundColor:e.backgroundColor||e.color||"",borderColor:e.borderColor||e.color||"",textColor:e.textColor||"",classNames:(e.className||[]).concat(e.classNames||[])}}function ti(e){return e.reduce(ni,Kr)}function ni(e,t){return{display:null!=t.display?t.display:e.display,startEditable:null!=t.startEditable?t.startEditable:e.startEditable,durationEditable:null!=t.durationEditable?t.durationEditable:e.durationEditable,constraints:e.constraints.concat(t.constraints),overlap:"boolean"===typeof t.overlap?t.overlap:e.overlap,allows:e.allows.concat(t.allows),backgroundColor:t.backgroundColor||e.backgroundColor,borderColor:t.borderColor||e.borderColor,textColor:t.textColor||e.textColor,classNames:e.classNames.concat(t.classNames)}}const ri={id:String,defaultAllDay:Boolean,url:String,format:String,events:qn,eventDataTransform:qn,success:qn,failure:qn};function ii(e,t,n=si(t)){let r;if("string"===typeof e?r={url:e}:"function"===typeof e||Array.isArray(e)?r={events:e}:"object"===typeof e&&e&&(r=e),r){let{refined:i,extra:s}=Zn(r,n),o=oi(i,t);if(o)return{_raw:e,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:i.defaultAllDay,eventDataTransform:i.eventDataTransform,success:i.success,failure:i.failure,publicId:i.id||"",sourceId:pt(),sourceDefId:o.sourceDefId,meta:o.meta,ui:ei(i,t),extendedProps:s}}return null}function si(e){return Object.assign(Object.assign(Object.assign({},Xr),ri),e.pluginHooks.eventSourceRefiners)}function oi(e,t){let n=t.pluginHooks.eventSourceDefs;for(let r=n.length-1;r>=0;r-=1){let t=n[r],i=t.parseMeta(e);if(i)return{sourceDefId:r,meta:i}}return null}function ai(e,t,n,r,i){switch(t.type){case"RECEIVE_EVENTS":return li(e,n[t.sourceId],t.fetchId,t.fetchRange,t.rawEvents,i);case"ADD_EVENTS":return ui(e,t.eventStore,r?r.activeRange:null,i);case"RESET_EVENTS":return t.eventStore;case"MERGE_EVENTS":return Zr(e,t.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return r?Or(e,r.activeRange,i):e;case"REMOVE_EVENTS":return Yr(e,t.eventStore);case"REMOVE_EVENT_SOURCE":return hi(e,t.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return qr(e,(e=>!e.sourceId));case"REMOVE_ALL_EVENTS":return Gr();default:return e}}function li(e,t,n,r,i,s){if(t&&n===t.latestFetchId){let n=Fr(ci(i,t,s),t,s);return r&&(n=Or(n,r,s)),Zr(hi(e,t.sourceId),n)}return e}function ci(e,t,n){let r=n.options.eventDataTransform,i=t?t.eventDataTransform:null;return i&&(e=di(e,i)),r&&(e=di(e,r)),e}function di(e,t){let n;if(t){n=[];for(let r of e){let e=t(r);e?n.push(e):null==e&&n.push(r)}}else n=e;return n}function ui(e,t,n,r){return n&&(t=Or(t,n,r)),Zr(e,t)}function fi(e,t,n){let{defs:r}=e,i=ze(e.instances,(e=>{let i=r[e.defId];return i.allDay||i.recurringDef?e:Object.assign(Object.assign({},e),{range:{start:n.createMarker(t.toDate(e.range.start,e.forcedStartTzo)),end:n.createMarker(t.toDate(e.range.end,e.forcedEndTzo))},forcedStartTzo:n.canComputeOffset?null:e.forcedStartTzo,forcedEndTzo:n.canComputeOffset?null:e.forcedEndTzo})}));return{defs:r,instances:i}}function hi(e,t){return qr(e,(e=>e.sourceId!==t))}class pi{constructor(){this.handlers={},this.thisContext=null}setThisContext(e){this.thisContext=e}setOptions(e){this.options=e}on(e,t){gi(this.handlers,e,t)}off(e,t){mi(this.handlers,e,t)}trigger(e,...t){let n=this.handlers[e]||[],r=this.options&&this.options[e],i=[].concat(r||[],n);for(let s of i)s.apply(this.thisContext,t)}hasHandlers(e){return Boolean(this.handlers[e]&&this.handlers[e].length||this.options&&this.options[e])}}function gi(e,t,n){(e[t]||(e[t]=[])).push(n)}function mi(e,t,n){n?e[t]&&(e[t]=e[t].filter((e=>e!==n))):delete e[t]}const vi={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function bi(e,t){return Fr(yi(e),null,t)}function yi(e){let t;return t=!0===e?[{}]:Array.isArray(e)?e.filter((e=>e.daysOfWeek)):"object"===typeof e&&e?[e]:[],t=t.map((e=>Object.assign(Object.assign({},vi),e))),t}function Ai(e,t,n){n.emitter.trigger("select",Object.assign(Object.assign({},Ei(e,n)),{jsEvent:t?t.origEvent:null,view:n.viewApi||n.calendarApi.view}))}function _i(e,t){t.emitter.trigger("unselect",{jsEvent:e?e.origEvent:null,view:t.viewApi||t.calendarApi.view})}function Ei(e,t){let n={};for(let r of t.pluginHooks.dateSpanTransforms)Object.assign(n,r(e,t));return Object.assign(n,Yi(e,t.dateEnv)),n}function Ci(e,t,n){let{dateEnv:r,options:i}=n,s=t;return e?(s=Pt(s),s=r.add(s,i.defaultAllDayEventDuration)):s=r.add(s,i.defaultTimedEventDuration),s}function wi(e,t,n,r){let i=Ni(e.defs,t),s=Gr();for(let o in e.defs){let t=e.defs[o];s.defs[o]=Di(t,i[o],n,r)}for(let o in e.instances){let t=e.instances[o],a=s.defs[t.defId];s.instances[o]=Si(t,a,i[t.defId],n,r)}return s}function Di(e,t,n,r){let i=n.standardProps||{};null==i.hasEnd&&t.durationEditable&&(n.startDelta||n.endDelta)&&(i.hasEnd=!0);let s=Object.assign(Object.assign(Object.assign({},e),i),{ui:Object.assign(Object.assign({},e.ui),i.ui)});n.extendedProps&&(s.extendedProps=Object.assign(Object.assign({},s.extendedProps),n.extendedProps));for(let o of r.pluginHooks.eventDefMutationAppliers)o(s,n,r);return!s.hasEnd&&r.options.forceEventDuration&&(s.hasEnd=!0),s}function Si(e,t,n,r,i){let{dateEnv:s}=i,o=r.standardProps&&!0===r.standardProps.allDay,a=r.standardProps&&!1===r.standardProps.hasEnd,l=Object.assign({},e);return o&&(l.range=Er(l.range)),r.datesDelta&&n.startEditable&&(l.range={start:s.add(l.range.start,r.datesDelta),end:s.add(l.range.end,r.datesDelta)}),r.startDelta&&n.durationEditable&&(l.range={start:s.add(l.range.start,r.startDelta),end:l.range.end}),r.endDelta&&n.durationEditable&&(l.range={start:l.range.start,end:s.add(l.range.end,r.endDelta)}),a&&(l.range={start:l.range.start,end:Ci(t.allDay,l.range.start,i)}),t.allDay&&(l.range={start:Pt(l.range.start),end:Pt(l.range.end)}),l.range.endPi(e,t)))}function Pi(e,t){let n=[];return t[""]&&n.push(t[""]),t[e.defId]&&n.push(t[e.defId]),n.push(e.ui),ti(n)}function Bi(e,t){let n=e.map(Hi);return n.sort(((e,n)=>mt(e,n,t))),n.map((e=>e._seg))}function Hi(e){let{eventRange:t}=e,n=t.def,r=t.instance?t.instance.range:t.range,i=r.start?r.start.valueOf():0,s=r.end?r.end.valueOf():0;return Object.assign(Object.assign(Object.assign({},n.extendedProps),n),{id:n.publicId,start:i,end:s,duration:s-i,allDay:Number(n.allDay),_seg:e})}function ji(e,t){let{pluginHooks:n}=t,r=n.isDraggableTransformers,{def:i,ui:s}=e.eventRange,o=s.startEditable;for(let a of r)o=a(o,i,s,t);return o}function zi(e,t){return e.isStart&&e.eventRange.ui.durationEditable&&t.options.eventResizableFromStart}function Ui(e,t){return e.isEnd&&e.eventRange.ui.durationEditable}function Vi(e,t,n,r,i,s,o){let{dateEnv:a,options:l}=n,{displayEventTime:c,displayEventEnd:d}=l,u=e.eventRange.def,f=e.eventRange.instance;null==c&&(c=!1!==r),null==d&&(d=!1!==i);let h=f.range.start,p=f.range.end,g=s||e.start||e.eventRange.range.start,m=o||e.end||e.eventRange.range.end,v=Pt(h).valueOf()===Pt(g).valueOf(),b=Pt(St(p,-1)).valueOf()===Pt(St(m,-1)).valueOf();return c&&!u.allDay&&(v||b)?(g=v?h:g,m=b?p:m,d&&u.hasEnd?a.formatRange(g,m,t,{forcedStartTzo:s?null:f.forcedStartTzo,forcedEndTzo:o?null:f.forcedEndTzo}):a.format(g,t,{forcedTzo:s?null:f.forcedStartTzo})):""}function Fi(e,t,n){let r=e.eventRange.range;return{isPast:r.end<(n||t.start),isFuture:r.start>=(n||t.end),isToday:t&&Ar(t,r.start)}}function Wi(e){let t=["fc-event"];return e.isMirror&&t.push("fc-event-mirror"),e.isDraggable&&t.push("fc-event-draggable"),(e.isStartResizable||e.isEndResizable)&&t.push("fc-event-resizable"),e.isDragging&&t.push("fc-event-dragging"),e.isResizing&&t.push("fc-event-resizing"),e.isSelected&&t.push("fc-event-selected"),e.isStart&&t.push("fc-event-start"),e.isEnd&&t.push("fc-event-end"),e.isPast&&t.push("fc-event-past"),e.isToday&&t.push("fc-event-today"),e.isFuture&&t.push("fc-event-future"),t}function Li(e){return e.instance?e.instance.instanceId:`${e.def.defId}:${e.range.start.toISOString()}`}function Qi(e,t){let{def:n,instance:r}=e.eventRange,{url:i}=n;if(i)return{href:i};let{emitter:s,options:o}=t,{eventInteractive:a}=o;return null==a&&(a=n.interactive,null==a&&(a=Boolean(s.hasHandlers("eventClick")))),a?ft((e=>{s.trigger("eventClick",{el:e.target,event:new ki(t,n,r),jsEvent:e,view:t.viewApi})})):{}}const Gi={start:qn,end:qn,allDay:Boolean};function Zi(e,t,n){let r=qi(e,t),{range:i}=r;if(!i.start)return null;if(!i.end){if(null==n)return null;i.end=t.add(i.start,n)}return r}function qi(e,t){let{refined:n,extra:r}=Zn(e,Gi),i=n.start?t.createMarkerMeta(n.start):null,s=n.end?t.createMarkerMeta(n.end):null,{allDay:o}=n;return null==o&&(o=i&&i.isTimeUnspecified&&(!s||s.isTimeUnspecified)),Object.assign({range:{start:i?i.marker:null,end:s?s.marker:null},allDay:o},r)}function Yi(e,t){return Object.assign(Object.assign({},Ji(e.range,t,e.allDay)),{allDay:e.allDay})}function $i(e,t,n){return Object.assign(Object.assign({},Ji(e,t,n)),{timeZone:t.timeZone})}function Ji(e,t,n){return{start:t.toDate(e.start),end:t.toDate(e.end),startStr:t.formatIso(e.start,{omitTime:n}),endStr:t.formatIso(e.end,{omitTime:n})}}function Xi(e,t,n){let r=Hr({editable:!1},n),i=zr(r.refined,r.extra,"",e.allDay,!0,n);return{def:i,ui:Pi(i,t),instance:Tr(i.defId,e.range),range:e.range,isStart:!0,isEnd:!0}}function Ki(e,t,n){let r=!1,i=function(e){r||(r=!0,t(e))},s=function(e){r||(r=!0,n(e))},o=e(i,s);o&&"function"===typeof o.then&&o.then(i,s)}class es extends Error{constructor(e,t){super(e),this.response=t}}function ts(e,t,n){e=e.toUpperCase();const r={method:e};return"GET"===e?t+=(-1===t.indexOf("?")?"?":"&")+new URLSearchParams(n):(r.body=new URLSearchParams(n),r.headers={"Content-Type":"application/x-www-form-urlencoded"}),fetch(t,r).then((e=>{if(e.ok)return e.json().then((t=>[t,e]),(()=>{throw new es("Failure parsing JSON",e)}));throw new es("Request failed",e)}))}let ns;function rs(){return null==ns&&(ns=is()),ns}function is(){if("undefined"===typeof document)return!0;let e=document.createElement("div");e.style.position="absolute",e.style.top="0px",e.style.left="0px",e.innerHTML="
",e.querySelector("table").style.height="100px",e.querySelector("div").style.height="100%",document.body.appendChild(e);let t=e.querySelector("div"),n=t.offsetHeight>0;return document.body.removeChild(e),n}class ss extends nr{constructor(){super(...arguments),this.state={forPrint:!1},this.handleBeforePrint=()=>{this.setState({forPrint:!0})},this.handleAfterPrint=()=>{this.setState({forPrint:!1})}}render(){let{props:e}=this,{options:t}=e,{forPrint:n}=this.state,r=n||"auto"===t.height||"auto"===t.contentHeight,i=r||null==t.height?"":t.height,s=["fc",n?"fc-media-print":"fc-media-screen",`fc-direction-${t.direction}`,e.theme.getClass("root")];return rs()||s.push("fc-liquid-hack"),e.children(s,i,r,n)}componentDidMount(){let{emitter:e}=this.props;e.on("_beforeprint",this.handleBeforePrint),e.on("_afterprint",this.handleAfterPrint)}componentWillUnmount(){let{emitter:e}=this.props;e.off("_beforeprint",this.handleBeforePrint),e.off("_afterprint",this.handleAfterPrint)}}class os{constructor(e){this.component=e.component,this.isHitComboAllowed=e.isHitComboAllowed||null}destroy(){}}function as(e,t){return{component:e,el:t.el,useEventCenter:null==t.useEventCenter||t.useEventCenter,isHitComboAllowed:t.isHitComboAllowed||null}}const ls={};class cs{getCurrentData(){return this.currentDataManager.getCurrentData()}dispatch(e){this.currentDataManager.dispatch(e)}get view(){return this.getCurrentData().viewApi}batchRendering(e){e()}updateSize(){this.trigger("_resize",!0)}setOption(e,t){this.dispatch({type:"SET_OPTION",optionName:e,rawOptionValue:t})}getOption(e){return this.currentDataManager.currentCalendarOptionsInput[e]}getAvailableLocaleCodes(){return Object.keys(this.getCurrentData().availableRawLocales)}on(e,t){let{currentDataManager:n}=this;n.currentCalendarOptionsRefiners[e]?n.emitter.on(e,t):Me.warn(`Unknown listener name '${e}'`)}off(e,t){this.currentDataManager.emitter.off(e,t)}trigger(e,...t){this.currentDataManager.emitter.trigger(e,...t)}changeView(e,t){this.batchRendering((()=>{if(this.unselect(),t)if(t.start&&t.end)this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e}),this.dispatch({type:"SET_OPTION",optionName:"visibleRange",rawOptionValue:t});else{let{dateEnv:n}=this.getCurrentData();this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e,dateMarker:n.createMarker(t)})}else this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e})}))}zoomTo(e,t){let n,r=this.getCurrentData();t=t||"day",n=r.viewSpecs[t]||this.getUnitViewSpec(t),this.unselect(),n?this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:n.type,dateMarker:e}):this.dispatch({type:"CHANGE_DATE",dateMarker:e})}getUnitViewSpec(e){let t,n,{viewSpecs:r,toolbarConfig:i}=this.getCurrentData(),s=[].concat(i.header?i.header.viewsWithButtons:[],i.footer?i.footer.viewsWithButtons:[]);for(let o in r)s.push(o);for(t=0;t{this.dispatch({type:"REMOVE_EVENTS",eventStore:Ti(e)})}})}getEventById(e){let t=this.getCurrentData(),{defs:n,instances:r}=t.eventStore;e=String(e);for(let i in n){let s=n[i];if(s.publicId===e){if(s.recurringDef)return new ki(t,s,null);for(let e in r){let n=r[e];if(n.defId===s.defId)return new ki(t,s,n)}}}return null}getEvents(){let e=this.getCurrentData();return xi(e.eventStore,e)}removeAllEvents(){this.dispatch({type:"REMOVE_ALL_EVENTS"})}getEventSources(){let e=this.getCurrentData(),t=e.eventSources,n=[];for(let r in t)n.push(new Ri(e,t[r]));return n}getEventSourceById(e){let t=this.getCurrentData(),n=t.eventSources;e=String(e);for(let r in n)if(n[r].publicId===e)return new Ri(t,n[r]);return null}addEventSource(e){let t=this.getCurrentData();if(e instanceof Ri)return t.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]}),e;let n=ii(e,t);return n?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[n]}),new Ri(t,n)):null}removeAllEventSources(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})}refetchEvents(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})}scrollToTime(e){let t=Kt(e);t&&this.trigger("_scrollRequest",{time:t})}}function ds(e,t){let n={left:Math.max(e.left,t.left),right:Math.min(e.right,t.right),top:Math.max(e.top,t.top),bottom:Math.min(e.bottom,t.bottom)};return n.leftn:!!t&&e>=t.end)}}function fs(e,t){let n=["fc-day",`fc-day-${Ct[e.dow]}`];return e.isDisabled?n.push("fc-day-disabled"):(e.isToday&&(n.push("fc-day-today"),n.push(t.getClass("today"))),e.isPast&&n.push("fc-day-past"),e.isFuture&&n.push("fc-day-future"),e.isOther&&n.push("fc-day-other")),n}const hs=jn({year:"numeric",month:"long",day:"numeric"}),ps=jn({week:"long"});function gs(e,t,n="day",r=!0){const{dateEnv:i,options:s,calendarApi:o}=e;let a=i.format(t,"week"===n?ps:hs);if(s.navLinks){let e=i.toDate(t);const l=e=>{let r="day"===n?s.navLinkDayClick:"week"===n?s.navLinkWeekClick:null;"function"===typeof r?r.call(o,i.toDate(t),e):("string"===typeof r&&(n=r),o.zoomTo(t,n))};return Object.assign({title:At(s.navLinkHint,[a,e],a),"data-navlink":""},r?ut(l):{onClick:l})}return{"aria-label":a}}let ms;function vs(){return ms||(ms=bs()),ms}function bs(){let e=document.createElement("div");e.style.overflow="scroll",e.style.position="absolute",e.style.top="-9999px",e.style.left="-9999px",document.body.appendChild(e);let t=ys(e);return document.body.removeChild(e),t}function ys(e){return{x:e.offsetHeight-e.clientHeight,y:e.offsetWidth-e.clientWidth}}function As(e){let t=_s(e),n=e.getBoundingClientRect();for(let r of t){let e=ds(n,r.getBoundingClientRect());if(!e)return null;n=e}return n}function _s(e){let t=[];while(e instanceof HTMLElement){let n=window.getComputedStyle(e);if("fixed"===n.position)break;/(auto|scroll)/.test(n.overflow+n.overflowY+n.overflowX)&&t.push(e),e=e.parentNode}return t}class Es{constructor(e,t,n,r){this.els=t;let i=this.originClientRect=e.getBoundingClientRect();n&&this.buildElHorizontals(i.left),r&&this.buildElVerticals(i.top)}buildElHorizontals(e){let t=[],n=[];for(let r of this.els){let i=r.getBoundingClientRect();t.push(i.left-e),n.push(i.right-e)}this.lefts=t,this.rights=n}buildElVerticals(e){let t=[],n=[];for(let r of this.els){let i=r.getBoundingClientRect();t.push(i.top-e),n.push(i.bottom-e)}this.tops=t,this.bottoms=n}leftToIndex(e){let t,{lefts:n,rights:r}=this,i=n.length;for(t=0;t=n[t]&&e=n[t]&&eo.end&&(r+=this.insertEntry({index:e.index,thickness:e.thickness,span:{start:o.end,end:s.end}},i)),r?(n.push({index:e.index,thickness:e.thickness,span:Rs(o,s)},...i),r):(n.push(e),0)}insertEntryAt(e,t){let{entriesByLevel:n,levelCoords:r}=this;-1===t.lateral?(ks(r,t.level,t.levelCoord),ks(n,t.level,[e])):ks(n[t.level],t.lateral,e),this.stackCnts[Ss(e)]=t.stackCnt}findInsertion(e){let{levelCoords:t,entriesByLevel:n,strictOrder:r,stackCnts:i}=this,s=t.length,o=0,a=-1,l=-1,c=null,d=0;for(let h=0;h=o+e.thickness)break;let u,f=n[h],p=Ts(f,e.span.start,Ds),g=p[0]+p[1];while((u=f[g])&&u.span.starto&&(o=e,c=u,a=h,l=g),e===o&&(d=Math.max(d,i[Ss(u)]+1)),g+=1}}let u=0;if(c){u=a+1;while(un(e[i-1]))return[i,0];while(ro))return[s,1];r=s+1}}return[r,0]}Boolean;function xs(e,t){return jn(!e||t>10?{weekday:"short"}:t>1?{weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}:{weekday:"long"})}const Os="fc-col-header-cell";function Is(e){return e.text}class Ms extends nr{render(){let{dateEnv:e,options:t,theme:n,viewApi:r}=this.context,{props:i}=this,{date:s,dateProfile:o}=i,a=us(s,i.todayRange,null,o),l=[Os].concat(fs(a,n)),c=e.format(s,i.dayHeaderFormat),d=!a.isDisabled&&i.colCnt>1?gs(this.context,s):{},u=Object.assign(Object.assign(Object.assign({date:e.toDate(s),view:r},i.extraRenderProps),{text:c}),a);return A(dr,{elTag:"th",elClasses:l,elAttrs:Object.assign({role:"columnheader",colSpan:i.colSpan,"data-date":a.isDisabled?void 0:un(s)},i.extraDataAttrs),renderProps:u,generatorName:"dayHeaderContent",generator:t.dayHeaderContent||Is,classNameGenerator:t.dayHeaderClassNames,didMount:t.dayHeaderDidMount,willUnmount:t.dayHeaderWillUnmount},(e=>A("div",{className:"fc-scrollgrid-sync-inner"},!a.isDisabled&&A(e,{elTag:"a",elAttrs:d,elClasses:["fc-col-header-cell-cushion",i.isSticky&&"fc-sticky"]}))))}}const Ns=jn({weekday:"long"});class Ps extends nr{render(){let{props:e}=this,{dateEnv:t,theme:n,viewApi:r,options:i}=this.context,s=Dt(new Date(2592e5),e.dow),o={dow:e.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},a=t.format(s,e.dayHeaderFormat),l=Object.assign(Object.assign(Object.assign(Object.assign({date:s},o),{view:r}),e.extraRenderProps),{text:a});return A(dr,{elTag:"th",elClasses:[Os,...fs(o,n),...e.extraClassNames||[]],elAttrs:Object.assign({role:"columnheader",colSpan:e.colSpan},e.extraDataAttrs),renderProps:l,generatorName:"dayHeaderContent",generator:i.dayHeaderContent||Is,classNameGenerator:i.dayHeaderClassNames,didMount:i.dayHeaderDidMount,willUnmount:i.dayHeaderWillUnmount},(n=>A("div",{className:"fc-scrollgrid-sync-inner"},A(n,{elTag:"a",elClasses:["fc-col-header-cell-cushion",e.isSticky&&"fc-sticky"],elAttrs:{"aria-label":t.format(s,Ns)}}))))}}class Bs extends w{constructor(e,t){super(e,t),this.initialNowDate=Rr(t.options.now,t.dateEnv),this.initialNowQueriedMs=(new Date).valueOf(),this.state=this.computeTiming().currentState}render(){let{props:e,state:t}=this;return e.children(t.nowDate,t.todayRange)}componentDidMount(){this.setTimeout()}componentDidUpdate(e){e.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())}componentWillUnmount(){this.clearTimeout()}computeTiming(){let{props:e,context:t}=this,n=St(this.initialNowDate,(new Date).valueOf()-this.initialNowQueriedMs),r=t.dateEnv.startOf(n,e.unit),i=t.dateEnv.add(r,Kt(1,e.unit)),s=i.valueOf()-n.valueOf();return s=Math.min(864e5,s),{currentState:{nowDate:r,todayRange:Hs(r)},nextState:{nowDate:i,todayRange:Hs(i)},waitMs:s}}setTimeout(){let{nextState:e,waitMs:t}=this.computeTiming();this.timeoutId=setTimeout((()=>{this.setState(e,(()=>{this.setTimeout()}))}),t)}clearTimeout(){this.timeoutId&&clearTimeout(this.timeoutId)}}function Hs(e){let t=Pt(e),n=Dt(t,1);return{start:t,end:n}}Bs.contextType=Kn;class js extends nr{constructor(){super(...arguments),this.createDayHeaderFormatter=$e(zs)}render(){let{context:e}=this,{dates:t,dateProfile:n,datesRepDistinctDays:r,renderIntro:i}=this.props,s=this.createDayHeaderFormatter(e.options.dayHeaderFormat,r,t.length);return A(Bs,{unit:"day"},((e,o)=>A("tr",{role:"row"},i&&i("day"),t.map((e=>r?A(Ms,{key:e.toISOString(),date:e,dateProfile:n,todayRange:o,colCnt:t.length,dayHeaderFormat:s}):A(Ps,{key:e.getUTCDay(),dow:e.getUTCDay(),dayHeaderFormat:s}))))))}}function zs(e,t,n){return e||xs(t,n)}class Us{constructor(e,t){let n=e.start,{end:r}=e,i=[],s=[],o=-1;while(n=t.length?t[t.length-1]+1:t[n]}}class Vs{constructor(e,t){let n,r,i,{dates:s}=e;if(t){for(r=s[0].getUTCDay(),n=1;n{this.el=e,sr(this.props.elRef,e)}}render(){let{props:e}=this,{liquid:t,liquidIsAbsolute:n}=e,r=t&&n,i=["fc-scroller"];return t&&(n?i.push("fc-scroller-liquid-absolute"):i.push("fc-scroller-liquid")),A("div",{ref:this.handleEl,className:i.join(" "),style:{overflowX:e.overflowX,overflowY:e.overflowY,left:r&&-(e.overcomeLeft||0)||"",right:r&&-(e.overcomeRight||0)||"",bottom:r&&-(e.overcomeBottom||0)||"",marginLeft:!r&&-(e.overcomeLeft||0)||"",marginRight:!r&&-(e.overcomeRight||0)||"",marginBottom:!r&&-(e.overcomeBottom||0)||"",maxHeight:e.maxHeight||""}},e.children)}needsXScrolling(){if(Ls.test(this.props.overflowX))return!1;let{el:e}=this,t=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),{children:n}=e;for(let r=0;rt)return!0}return!1}needsYScrolling(){if(Ls.test(this.props.overflowY))return!1;let{el:e}=this,t=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),{children:n}=e;for(let r=0;rt)return!0}return!1}getXScrollbarWidth(){return Ls.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight}getYScrollbarWidth(){return Ls.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth}}class Gs{constructor(e){this.masterCallback=e,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=(e,t)=>{let{depths:n,currentMap:r}=this,i=!1,s=!1;null!==e?(i=t in r,r[t]=e,n[t]=(n[t]||0)+1,s=!0):(n[t]-=1,n[t]||(delete r[t],delete this.callbackMap[t],i=!0)),this.masterCallback&&(i&&this.masterCallback(null,String(t)),s&&this.masterCallback(e,String(t)))}}createRef(e){let t=this.callbackMap[e];return t||(t=this.callbackMap[e]=t=>{this.handleValue(t,String(e))}),t}collect(e,t,n){return qe(this.currentMap,e,t,n)}getAll(){return Ve(this.currentMap)}}function Zs(e){let t=tt(e,".fc-scrollgrid-shrink"),n=0;for(let r of t)n=Math.max(n,Et(r));return Math.ceil(n)}function qs(e,t){return e.liquid&&t.liquid}function Ys(e,t){return null!=t.maxHeight||qs(e,t)}function $s(e,t,n,r){let{expandRows:i}=n,s="function"===typeof t.content?t.content(n):A("table",{role:"presentation",className:[t.tableClassName,e.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:n.tableMinWidth,width:n.clientWidth,height:i?n.clientHeight:""}},n.tableColGroupNode,A(r?"thead":"tbody",{role:"presentation"},"function"===typeof t.rowContent?t.rowContent(n):t.rowContent));return s}function Js(e,t){return Ye(e,t,Fe)}function Xs(e,t){let n=[];for(let r of e){let e=r.span||1;for(let i=0;ie),Js),this.renderMicroColGroup=$e(Xs),this.scrollerRefs=new Gs,this.scrollerElRefs=new Gs(this._handleScrollerEl.bind(this)),this.state={shrinkWidth:null,forceYScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{}},this.handleSizing=()=>{this.safeSetState(Object.assign({shrinkWidth:this.computeShrinkWidth()},this.computeScrollerDims()))}}render(){let{props:e,state:t,context:n}=this,r=e.sections||[],i=this.processCols(e.cols),s=this.renderMicroColGroup(i,t.shrinkWidth),o=to(e.liquid,n);e.collapsibleWidth&&o.push("fc-scrollgrid-collapsible");let a,l=r.length,c=0,d=[],u=[],f=[];while(c{}},r);return A(r?"th":"td",{ref:n.elRef,role:"presentation"},A("div",{className:"fc-scroller-harness"+(c?" fc-scroller-harness-liquid":"")},A(Qs,{ref:this.scrollerRefs.createRef(u),elRef:this.scrollerElRefs.createRef(u),overflowY:d,overflowX:i.liquid?"hidden":"visible",maxHeight:e.maxHeight,liquid:c,liquidIsAbsolute:!0},f)))}_handleScrollerEl(e,t){let n=ao(this.props.sections,t);n&&sr(n.chunk.scrollerElRef,e)}componentDidMount(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(){this.handleSizing()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}computeShrinkWidth(){return eo(this.props.cols)?Zs(this.scrollerElRefs.getAll()):0}computeScrollerDims(){let e=vs(),{scrollerRefs:t,scrollerElRefs:n}=this,r=!1,i={},s={};for(let o in t.currentMap){let e=t.currentMap[o];if(e&&e.needsYScrolling()){r=!0;break}}for(let o of this.props.sections){let t=o.key,a=n.currentMap[t];if(a){let n=a.parentNode;i[t]=Math.floor(n.getBoundingClientRect().width-(r?e.y:0)),s[t]=Math.floor(n.getBoundingClientRect().height)}}return{forceYScrollbars:r,scrollerClientWidths:i,scrollerClientHeights:s}}}function ao(e,t){for(let n of e)if(n.key===t)return n;return null}oo.addStateEquality({scrollerClientWidths:Fe,scrollerClientHeights:Fe});class lo extends nr{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,e&&Ii(e,this.props.seg)}}render(){const{props:e,context:t}=this,{options:n}=t,{seg:r}=e,{eventRange:i}=r,{ui:s}=i,o={event:new ki(t,i.def,i.instance),view:t.viewApi,timeText:e.timeText,textColor:s.textColor,backgroundColor:s.backgroundColor,borderColor:s.borderColor,isDraggable:!e.disableDragging&&ji(r,t),isStartResizable:!e.disableResizing&&zi(r,t),isEndResizable:!e.disableResizing&&Ui(r),isMirror:Boolean(e.isDragging||e.isResizing||e.isDateSelecting),isStart:Boolean(r.isStart),isEnd:Boolean(r.isEnd),isPast:Boolean(e.isPast),isFuture:Boolean(e.isFuture),isToday:Boolean(e.isToday),isSelected:Boolean(e.isSelected),isDragging:Boolean(e.isDragging),isResizing:Boolean(e.isResizing)};return A(dr,Object.assign({},e,{elRef:this.handleEl,elClasses:[...Wi(o),...r.eventRange.ui.classNames,...e.elClasses||[]],renderProps:o,generatorName:"eventContent",generator:n.eventContent||e.defaultGenerator,classNameGenerator:n.eventClassNames,didMount:n.eventDidMount,willUnmount:n.eventWillUnmount}))}componentDidUpdate(e){this.el&&this.props.seg!==e.seg&&Ii(this.el,this.props.seg)}}class co extends nr{render(){let{props:e,context:t}=this,{options:n}=t,{seg:r}=e,{ui:i}=r.eventRange,s=n.eventTimeFormat||e.defaultTimeFormat,o=Vi(r,s,t,e.defaultDisplayEventTime,e.defaultDisplayEventEnd);return A(lo,Object.assign({},e,{elTag:"a",elStyle:{borderColor:i.borderColor,backgroundColor:i.backgroundColor},elAttrs:Qi(r,t),defaultGenerator:uo,timeText:o}),((e,t)=>A(C,null,A(e,{elTag:"div",elClasses:["fc-event-main"],elStyle:{color:t.textColor}}),Boolean(t.isStartResizable)&&A("div",{className:"fc-event-resizer fc-event-resizer-start"}),Boolean(t.isEndResizable)&&A("div",{className:"fc-event-resizer fc-event-resizer-end"}))))}}function uo(e){return A("div",{className:"fc-event-main-frame"},e.timeText&&A("div",{className:"fc-event-time"},e.timeText),A("div",{className:"fc-event-title-container"},A("div",{className:"fc-event-title fc-sticky"},e.event.title||A(C,null," "))))}const fo=jn({day:"numeric"});class ho extends nr{constructor(){super(...arguments),this.refineRenderProps=Je(go)}render(){let{props:e,context:t}=this,{options:n}=t,r=this.refineRenderProps({date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,showDayNumber:e.showDayNumber,extraRenderProps:e.extraRenderProps,viewApi:t.viewApi,dateEnv:t.dateEnv});return A(dr,Object.assign({},e,{elClasses:[...fs(r,t.theme),...e.elClasses||[]],elAttrs:Object.assign(Object.assign({},e.elAttrs),r.isDisabled?{}:{"data-date":un(e.date)}),renderProps:r,generatorName:"dayCellContent",generator:n.dayCellContent||e.defaultGenerator,classNameGenerator:r.isDisabled?void 0:n.dayCellClassNames,didMount:n.dayCellDidMount,willUnmount:n.dayCellWillUnmount}))}}function po(e){return Boolean(e.dayCellContent||ar("dayCellContent",e))}function go(e){let{date:t,dateEnv:n}=e,r=us(t,e.todayRange,null,e.dateProfile);return Object.assign(Object.assign(Object.assign({date:n.toDate(t),view:e.viewApi},r),{dayNumberText:e.showDayNumber?n.format(t,fo):""}),e.extraRenderProps)}class mo extends nr{render(){let{props:e}=this,{seg:t}=e;return A(lo,{elTag:"div",elClasses:["fc-bg-event"],elStyle:{backgroundColor:t.eventRange.ui.backgroundColor},defaultGenerator:vo,seg:t,timeText:"",isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday,disableDragging:!0,disableResizing:!0})}}function vo(e){let{title:t}=e.event;return t&&A("div",{className:"fc-event-title"},e.event.title)}function bo(e){return A("div",{className:`fc-${e}`})}const yo=e=>A(Kn.Consumer,null,(t=>{let{dateEnv:n,options:r}=t,{date:i}=e,s=r.weekNumberFormat||e.defaultFormat,o=n.computeWeekNumber(i),a=n.format(i,s),l={num:o,text:a,date:i};return A(dr,Object.assign({},e,{renderProps:l,generatorName:"weekNumberContent",generator:r.weekNumberContent||Ao,classNameGenerator:r.weekNumberClassNames,didMount:r.weekNumberDidMount,willUnmount:r.weekNumberWillUnmount}))}));function Ao(e){return e.text}const _o=10;class Eo extends nr{constructor(){super(...arguments),this.state={titleId:at()},this.handleRootEl=e=>{this.rootEl=e,this.props.elRef&&sr(this.props.elRef,e)},this.handleDocumentMouseDown=e=>{const t=st(e);this.rootEl.contains(t)||this.handleCloseClick()},this.handleDocumentKeyDown=e=>{"Escape"===e.key&&this.handleCloseClick()},this.handleCloseClick=()=>{let{onClose:e}=this.props;e&&e()}}render(){let{theme:e,options:t}=this.context,{props:n,state:r}=this,i=["fc-popover",e.getClass("popover")].concat(n.extraClassNames||[]);return _e(A("div",Object.assign({},n.extraAttrs,{id:n.id,className:i.join(" "),"aria-labelledby":r.titleId,ref:this.handleRootEl}),A("div",{className:"fc-popover-header "+e.getClass("popoverHeader")},A("span",{className:"fc-popover-title",id:r.titleId},n.title),A("span",{className:"fc-popover-close "+e.getIconClass("close"),title:t.closeHint,onClick:this.handleCloseClick})),A("div",{className:"fc-popover-body "+e.getClass("popoverContent")},n.children)),n.parentEl)}componentDidMount(){document.addEventListener("mousedown",this.handleDocumentMouseDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.updateSize()}componentWillUnmount(){document.removeEventListener("mousedown",this.handleDocumentMouseDown),document.removeEventListener("keydown",this.handleDocumentKeyDown)}updateSize(){let{isRtl:e}=this.context,{alignmentEl:t,alignGridTop:n}=this.props,{rootEl:r}=this,i=As(t);if(i){let s=r.getBoundingClientRect(),o=n?Ke(t,".fc-scrollgrid").getBoundingClientRect().top:i.top,a=e?i.right-s.width:i.left;o=Math.max(o,_o),a=Math.min(a,document.documentElement.clientWidth-_o-s.width),a=Math.max(a,_o);let l=r.offsetParent.getBoundingClientRect();rt(r,{top:o-l.top,left:a-l.left})}}}class Co extends Cs{constructor(){super(...arguments),this.handleRootEl=e=>{this.rootEl=e,e?this.context.registerInteractiveComponent(this,{el:e,useEventCenter:!1}):this.context.unregisterInteractiveComponent(this)}}render(){let{options:e,dateEnv:t}=this.context,{props:n}=this,{startDate:r,todayRange:i,dateProfile:s}=n,o=t.format(r,e.dayPopoverFormat);return A(ho,{elRef:this.handleRootEl,date:r,dateProfile:s,todayRange:i},((t,r,i)=>A(Eo,{elRef:i.ref,id:n.id,title:o,extraClassNames:["fc-more-popover"].concat(i.className||[]),extraAttrs:i,parentEl:n.parentEl,alignmentEl:n.alignmentEl,alignGridTop:n.alignGridTop,onClose:n.onClose},po(e)&&A(t,{elTag:"div",elClasses:["fc-more-popover-misc"]}),n.children)))}queryHit(e,t,n,r){let{rootEl:i,props:s}=this;return e>=0&&e=0&&t{let{props:t,context:n}=this,{moreLinkClick:r}=n.options,i=So(t).start;function s(e){let{def:t,instance:r,range:i}=e.eventRange;return{event:new ki(n,t,r),start:n.dateEnv.toDate(i.start),end:n.dateEnv.toDate(i.end),isStart:e.isStart,isEnd:e.isEnd}}"function"===typeof r&&(r=r({date:i,allDay:Boolean(t.allDayDate),allSegs:t.allSegs.map(s),hiddenSegs:t.hiddenSegs.map(s),jsEvent:e,view:n.viewApi})),r&&"popover"!==r?"string"===typeof r&&n.calendarApi.zoomTo(i,r):this.setState({isPopoverOpen:!0})},this.handlePopoverClose=()=>{this.setState({isPopoverOpen:!1})}}render(){let{props:e,state:t}=this;return A(Kn.Consumer,null,(n=>{let{viewApi:r,options:i,calendarApi:s}=n,{moreLinkText:o}=i,{moreCnt:a}=e,l=So(e),c="function"===typeof o?o.call(s,a):`+${a} ${o}`,d=At(i.moreLinkHint,[a],c),u={num:a,shortText:`+${a}`,text:c,view:r};return A(C,null,Boolean(e.moreCnt)&&A(dr,{elTag:e.elTag||"a",elRef:this.linkElRef,elClasses:[...e.elClasses||[],"fc-more-link"],elAttrs:Object.assign(Object.assign(Object.assign({},e.elAttrs),ut(this.handleClick)),{title:d,"aria-expanded":t.isPopoverOpen,"aria-controls":t.isPopoverOpen?t.popoverId:""}),renderProps:u,generatorName:"moreLinkContent",generator:i.moreLinkContent||e.defaultGenerator||Do,classNameGenerator:i.moreLinkClassNames,didMount:i.moreLinkDidMount,willUnmount:i.moreLinkWillUnmount},e.children),t.isPopoverOpen&&A(Co,{id:t.popoverId,startDate:l.start,endDate:l.end,dateProfile:e.dateProfile,todayRange:e.todayRange,extraDateSpan:e.extraDateSpan,parentEl:this.parentEl,alignmentEl:e.alignmentElRef?e.alignmentElRef.current:this.linkElRef.current,alignGridTop:e.alignGridTop,onClose:this.handlePopoverClose},e.popoverContent()))}))}componentDidMount(){this.updateParentEl()}componentDidUpdate(){this.updateParentEl()}updateParentEl(){this.linkElRef.current&&(this.parentEl=Ke(this.linkElRef.current,".fc-view-harness"))}}function Do(e){return e.text}function So(e){if(e.allDayDate)return{start:e.allDayDate,end:Dt(e.allDayDate,1)};let{hiddenSegs:t}=e;return{start:Ro(t),end:To(t)}}function Ro(e){return e.reduce(ko).eventRange.range.start}function ko(e,t){return e.eventRange.range.startt.eventRange.range.end?e:t}class Oo{constructor(){this.handlers=[]}set(e){this.currentValue=e;for(let t of this.handlers)t(e)}subscribe(e){this.handlers.push(e),void 0!==this.currentValue&&e(this.currentValue)}}class Io extends Oo{constructor(){super(...arguments),this.map=new Map}handle(e){const{map:t}=this;let n=!1;e.isActive?(t.set(e.id,e),n=!0):t.has(e.id)&&(t.delete(e.id),n=!0),n&&this.set(t)}}var Mo=n(15941),No=':root{--fc-small-font-size:.85em;--fc-page-bg-color:#fff;--fc-neutral-bg-color:hsla(0,0%,82%,.3);--fc-neutral-text-color:grey;--fc-border-color:#ddd;--fc-button-text-color:#fff;--fc-button-bg-color:#2c3e50;--fc-button-border-color:#2c3e50;--fc-button-hover-bg-color:#1e2b37;--fc-button-hover-border-color:#1a252f;--fc-button-active-bg-color:#1a252f;--fc-button-active-border-color:#151e27;--fc-event-bg-color:#3788d8;--fc-event-border-color:#3788d8;--fc-event-text-color:#fff;--fc-event-selected-overlay-color:rgba(0,0,0,.25);--fc-more-link-bg-color:#d0d0d0;--fc-more-link-text-color:inherit;--fc-event-resizer-thickness:8px;--fc-event-resizer-dot-total-width:8px;--fc-event-resizer-dot-border-width:1px;--fc-non-business-color:hsla(0,0%,84%,.3);--fc-bg-event-color:#8fdf82;--fc-bg-event-opacity:0.3;--fc-highlight-color:rgba(188,232,241,.3);--fc-today-bg-color:rgba(255,220,40,.15);--fc-now-indicator-color:red}.fc-not-allowed,.fc-not-allowed .fc-event{cursor:not-allowed}.fc-unselectable{-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-user-select:none;-moz-user-select:none;user-select:none}.fc{display:flex;flex-direction:column;font-size:1em}.fc,.fc *,.fc :after,.fc :before{box-sizing:border-box}.fc table{border-collapse:collapse;border-spacing:0;font-size:1em}.fc th{text-align:center}.fc td,.fc th{padding:0;vertical-align:top}.fc a[data-navlink]{cursor:pointer}.fc a[data-navlink]:hover{text-decoration:underline}.fc-direction-ltr{direction:ltr;text-align:left}.fc-direction-rtl{direction:rtl;text-align:right}.fc-theme-standard td,.fc-theme-standard th{border:1px solid var(--fc-border-color)}.fc-liquid-hack td,.fc-liquid-hack th{position:relative}@font-face{font-family:fcicons;font-style:normal;font-weight:400;src:url("data:application/x-font-ttf;charset=utf-8;base64,AAEAAAALAIAAAwAwT1MvMg8SBfAAAAC8AAAAYGNtYXAXVtKNAAABHAAAAFRnYXNwAAAAEAAAAXAAAAAIZ2x5ZgYydxIAAAF4AAAFNGhlY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DQwkDOLiDCQMDQ0CjeLiDSMMDQ3h4Q0NDCMN4uIMIw0MDOLiDAwNIwwAAAABAAAAAQAAa5n0y18PPPUACwQAAAAAANivOVsAAAAA2K85WwAAAAADqwNVAAAACAACAAAAAAAAAAEAAAPA/8AAAAQAAAAAAAOrAAEAAAAAAAAAAAAAAAAAAAALBAAAAAAAAAAAAAAAAgAAAAQAAWIEAAFiBAAA4gQAAOIEAABVBAAAVQQAAOIAAAAAAAoAFAAeAEQAagCqAOoBngJkApoAAQAAAAsAigADAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAA4ArgABAAAAAAABAAcAAAABAAAAAAACAAcAYAABAAAAAAADAAcANgABAAAAAAAEAAcAdQABAAAAAAAFAAsAFQABAAAAAAAGAAcASwABAAAAAAAKABoAigADAAEECQABAA4ABwADAAEECQACAA4AZwADAAEECQADAA4APQADAAEECQAEAA4AfAADAAEECQAFABYAIAADAAEECQAGAA4AUgADAAEECQAKADQApGZjaWNvbnMAZgBjAGkAYwBvAG4Ac1ZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMGZjaWNvbnMAZgBjAGkAYwBvAG4Ac2ZjaWNvbnMAZgBjAGkAYwBvAG4Ac1JlZ3VsYXIAUgBlAGcAdQBsAGEAcmZjaWNvbnMAZgBjAGkAYwBvAG4Ac0ZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=") format("truetype")}.fc-icon{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-block;font-family:fcicons!important;font-style:normal;font-variant:normal;font-weight:400;height:1em;line-height:1;text-align:center;text-transform:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:1em}.fc-icon-chevron-left:before{content:"\\e900"}.fc-icon-chevron-right:before{content:"\\e901"}.fc-icon-chevrons-left:before{content:"\\e902"}.fc-icon-chevrons-right:before{content:"\\e903"}.fc-icon-minus-square:before{content:"\\e904"}.fc-icon-plus-square:before{content:"\\e905"}.fc-icon-x:before{content:"\\e906"}.fc .fc-button{border-radius:0;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;overflow:visible;text-transform:none}.fc .fc-button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}.fc .fc-button{-webkit-appearance:button}.fc .fc-button:not(:disabled){cursor:pointer}.fc .fc-button::-moz-focus-inner{border-style:none;padding:0}.fc .fc-button{background-color:transparent;border:1px solid transparent;border-radius:.25em;display:inline-block;font-size:1em;font-weight:400;line-height:1.5;padding:.4em .65em;text-align:center;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle}.fc .fc-button:hover{text-decoration:none}.fc .fc-button:focus{box-shadow:0 0 0 .2rem rgba(44,62,80,.25);outline:0}.fc .fc-button:disabled{opacity:.65}.fc .fc-button-primary{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:hover{background-color:var(--fc-button-hover-bg-color);border-color:var(--fc-button-hover-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:disabled{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button-primary:not(:disabled).fc-button-active,.fc .fc-button-primary:not(:disabled):active{background-color:var(--fc-button-active-bg-color);border-color:var(--fc-button-active-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:not(:disabled).fc-button-active:focus,.fc .fc-button-primary:not(:disabled):active:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button .fc-icon{font-size:1.5em;vertical-align:middle}.fc .fc-button-group{display:inline-flex;position:relative;vertical-align:middle}.fc .fc-button-group>.fc-button{flex:1 1 auto;position:relative}.fc .fc-button-group>.fc-button.fc-button-active,.fc .fc-button-group>.fc-button:active,.fc .fc-button-group>.fc-button:focus,.fc .fc-button-group>.fc-button:hover{z-index:1}.fc-direction-ltr .fc-button-group>.fc-button:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0;margin-left:-1px}.fc-direction-ltr .fc-button-group>.fc-button:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.fc-direction-rtl .fc-button-group>.fc-button:not(:first-child){border-bottom-right-radius:0;border-top-right-radius:0;margin-right:-1px}.fc-direction-rtl .fc-button-group>.fc-button:not(:last-child){border-bottom-left-radius:0;border-top-left-radius:0}.fc .fc-toolbar{align-items:center;display:flex;justify-content:space-between}.fc .fc-toolbar.fc-header-toolbar{margin-bottom:1.5em}.fc .fc-toolbar.fc-footer-toolbar{margin-top:1.5em}.fc .fc-toolbar-title{font-size:1.75em;margin:0}.fc-direction-ltr .fc-toolbar>*>:not(:first-child){margin-left:.75em}.fc-direction-rtl .fc-toolbar>*>:not(:first-child){margin-right:.75em}.fc-direction-rtl .fc-toolbar-ltr{flex-direction:row-reverse}.fc .fc-scroller{-webkit-overflow-scrolling:touch;position:relative}.fc .fc-scroller-liquid{height:100%}.fc .fc-scroller-liquid-absolute{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-scroller-harness{direction:ltr;overflow:hidden;position:relative}.fc .fc-scroller-harness-liquid{height:100%}.fc-direction-rtl .fc-scroller-harness>.fc-scroller{direction:rtl}.fc-theme-standard .fc-scrollgrid{border:1px solid var(--fc-border-color)}.fc .fc-scrollgrid,.fc .fc-scrollgrid table{table-layout:fixed;width:100%}.fc .fc-scrollgrid table{border-left-style:hidden;border-right-style:hidden;border-top-style:hidden}.fc .fc-scrollgrid{border-bottom-width:0;border-collapse:separate;border-right-width:0}.fc .fc-scrollgrid-liquid{height:100%}.fc .fc-scrollgrid-section,.fc .fc-scrollgrid-section table,.fc .fc-scrollgrid-section>td{height:1px}.fc .fc-scrollgrid-section-liquid>td{height:100%}.fc .fc-scrollgrid-section>*{border-left-width:0;border-top-width:0}.fc .fc-scrollgrid-section-footer>*,.fc .fc-scrollgrid-section-header>*{border-bottom-width:0}.fc .fc-scrollgrid-section-body table,.fc .fc-scrollgrid-section-footer table{border-bottom-style:hidden}.fc .fc-scrollgrid-section-sticky>*{background:var(--fc-page-bg-color);position:sticky;z-index:3}.fc .fc-scrollgrid-section-header.fc-scrollgrid-section-sticky>*{top:0}.fc .fc-scrollgrid-section-footer.fc-scrollgrid-section-sticky>*{bottom:0}.fc .fc-scrollgrid-sticky-shim{height:1px;margin-bottom:-1px}.fc-sticky{position:sticky}.fc .fc-view-harness{flex-grow:1;position:relative}.fc .fc-view-harness-active>.fc-view{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-col-header-cell-cushion{display:inline-block;padding:2px 4px}.fc .fc-bg-event,.fc .fc-highlight,.fc .fc-non-business{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-non-business{background:var(--fc-non-business-color)}.fc .fc-bg-event{background:var(--fc-bg-event-color);opacity:var(--fc-bg-event-opacity)}.fc .fc-bg-event .fc-event-title{font-size:var(--fc-small-font-size);font-style:italic;margin:.5em}.fc .fc-highlight{background:var(--fc-highlight-color)}.fc .fc-cell-shaded,.fc .fc-day-disabled{background:var(--fc-neutral-bg-color)}a.fc-event,a.fc-event:hover{text-decoration:none}.fc-event.fc-event-draggable,.fc-event[href]{cursor:pointer}.fc-event .fc-event-main{position:relative;z-index:2}.fc-event-dragging:not(.fc-event-selected){opacity:.75}.fc-event-dragging.fc-event-selected{box-shadow:0 2px 7px rgba(0,0,0,.3)}.fc-event .fc-event-resizer{display:none;position:absolute;z-index:4}.fc-event-selected .fc-event-resizer,.fc-event:hover .fc-event-resizer{display:block}.fc-event-selected .fc-event-resizer{background:var(--fc-page-bg-color);border-color:inherit;border-radius:calc(var(--fc-event-resizer-dot-total-width)/2);border-style:solid;border-width:var(--fc-event-resizer-dot-border-width);height:var(--fc-event-resizer-dot-total-width);width:var(--fc-event-resizer-dot-total-width)}.fc-event-selected .fc-event-resizer:before{bottom:-20px;content:"";left:-20px;position:absolute;right:-20px;top:-20px}.fc-event-selected,.fc-event:focus{box-shadow:0 2px 5px rgba(0,0,0,.2)}.fc-event-selected:before,.fc-event:focus:before{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:3}.fc-event-selected:after,.fc-event:focus:after{background:var(--fc-event-selected-overlay-color);bottom:-1px;content:"";left:-1px;position:absolute;right:-1px;top:-1px;z-index:1}.fc-h-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-h-event .fc-event-main{color:var(--fc-event-text-color)}.fc-h-event .fc-event-main-frame{display:flex}.fc-h-event .fc-event-time{max-width:100%;overflow:hidden}.fc-h-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-width:0}.fc-h-event .fc-event-title{display:inline-block;left:0;max-width:100%;overflow:hidden;right:0;vertical-align:top}.fc-h-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-start),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-end){border-bottom-left-radius:0;border-left-width:0;border-top-left-radius:0}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-end),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-start){border-bottom-right-radius:0;border-right-width:0;border-top-right-radius:0}.fc-h-event:not(.fc-event-selected) .fc-event-resizer{bottom:0;top:0;width:var(--fc-event-resizer-thickness)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end{cursor:w-resize;left:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start{cursor:e-resize;right:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-h-event.fc-event-selected .fc-event-resizer{margin-top:calc(var(--fc-event-resizer-dot-total-width)*-.5);top:50%}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-start,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-end{left:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-end,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-start{right:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc .fc-popover{box-shadow:0 2px 6px rgba(0,0,0,.15);position:absolute;z-index:9999}.fc .fc-popover-header{align-items:center;display:flex;flex-direction:row;justify-content:space-between;padding:3px 4px}.fc .fc-popover-title{margin:0 2px}.fc .fc-popover-close{cursor:pointer;font-size:1.1em;opacity:.65}.fc-theme-standard .fc-popover{background:var(--fc-page-bg-color);border:1px solid var(--fc-border-color)}.fc-theme-standard .fc-popover-header{background:var(--fc-neutral-bg-color)}';Ne(No);const Po=[],Bo={code:"en",week:{dow:0,doy:4},direction:"ltr",buttonText:{prev:"prev",next:"next",prevYear:"prev year",nextYear:"next year",year:"year",today:"today",month:"month",week:"week",day:"day",list:"list"},weekText:"W",weekTextLong:"Week",closeHint:"Close",timeHint:"Time",eventHint:"Event",allDayText:"all-day",moreLinkText:"more",noEventsText:"No events to display"},Ho=Object.assign(Object.assign({},Bo),{buttonHints:{prev:"Previous $0",next:"Next $0",today(e,t){return"day"===t?"Today":`This ${e}`}},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint(e){return`Show ${e} more event${1===e?"":"s"}`}});function jo(e){let t=e.length>0?e[0].code:"en",n=Po.concat(e),r={en:Ho};for(let i of n)r[i.code]=i;return{map:r,defaultCode:t}}function zo(e,t){return"object"!==typeof e||Array.isArray(e)?Uo(e,t):Fo(e.code,[e.code],e)}function Uo(e,t){let n=[].concat(e||[]),r=Vo(n,t)||Ho;return Fo(e,n,r)}function Vo(e,t){for(let n=0;n0;e-=1){let n=r.slice(0,e).join("-");if(t[n])return t[n]}}return null}function Fo(e,t,n){let r=He([Bo,n],["buttonText"]);delete r.code;let{week:i}=r;return delete r.week,{codeArg:e,codes:t,week:i,simpleNumberFormat:new Intl.NumberFormat(e),options:r}}function Wo(e){return{id:pt(),name:e.name,premiumReleaseDate:e.premiumReleaseDate?new Date(e.premiumReleaseDate):void 0,deps:e.deps||[],reducers:e.reducers||[],isLoadingFuncs:e.isLoadingFuncs||[],contextInit:[].concat(e.contextInit||[]),eventRefiners:e.eventRefiners||{},eventDefMemberAdders:e.eventDefMemberAdders||[],eventSourceRefiners:e.eventSourceRefiners||{},isDraggableTransformers:e.isDraggableTransformers||[],eventDragMutationMassagers:e.eventDragMutationMassagers||[],eventDefMutationAppliers:e.eventDefMutationAppliers||[],dateSelectionTransformers:e.dateSelectionTransformers||[],datePointTransforms:e.datePointTransforms||[],dateSpanTransforms:e.dateSpanTransforms||[],views:e.views||{},viewPropsTransformers:e.viewPropsTransformers||[],isPropsValid:e.isPropsValid||null,externalDefTransforms:e.externalDefTransforms||[],viewContainerAppends:e.viewContainerAppends||[],eventDropTransformers:e.eventDropTransformers||[],componentInteractions:e.componentInteractions||[],calendarInteractions:e.calendarInteractions||[],themeClasses:e.themeClasses||{},eventSourceDefs:e.eventSourceDefs||[],cmdFormatter:e.cmdFormatter,recurringTypes:e.recurringTypes||[],namedTimeZonedImpl:e.namedTimeZonedImpl,initialView:e.initialView||"",elementDraggingImpl:e.elementDraggingImpl,optionChangeHandlers:e.optionChangeHandlers||{},scrollGridImpl:e.scrollGridImpl||null,listenerRefiners:e.listenerRefiners||{},optionRefiners:e.optionRefiners||{},propSetHandlers:e.propSetHandlers||{}}}function Lo(e,t){let n={},r={premiumReleaseDate:void 0,reducers:[],isLoadingFuncs:[],contextInit:[],eventRefiners:{},eventDefMemberAdders:[],eventSourceRefiners:{},isDraggableTransformers:[],eventDragMutationMassagers:[],eventDefMutationAppliers:[],dateSelectionTransformers:[],datePointTransforms:[],dateSpanTransforms:[],views:{},viewPropsTransformers:[],isPropsValid:null,externalDefTransforms:[],viewContainerAppends:[],eventDropTransformers:[],componentInteractions:[],calendarInteractions:[],themeClasses:{},eventSourceDefs:[],cmdFormatter:null,recurringTypes:[],namedTimeZonedImpl:null,initialView:"",elementDraggingImpl:null,optionChangeHandlers:{},scrollGridImpl:null,listenerRefiners:{},optionRefiners:{},propSetHandlers:{}};function i(e){for(let t of e){const e=t.name,s=n[e];void 0===s?(n[e]=t.id,i(t.deps),r=Go(r,t)):s!==t.id&&Mo.warn(`Duplicate plugin '${e}'`)}}return e&&i(e),i(t),r}function Qo(){let e,t=[],n=[];return(r,i)=>(e&&Ye(r,t)&&Ye(i,n)||(e=Lo(r,i)),t=r,n=i,e)}function Go(e,t){return{premiumReleaseDate:Zo(e.premiumReleaseDate,t.premiumReleaseDate),reducers:e.reducers.concat(t.reducers),isLoadingFuncs:e.isLoadingFuncs.concat(t.isLoadingFuncs),contextInit:e.contextInit.concat(t.contextInit),eventRefiners:Object.assign(Object.assign({},e.eventRefiners),t.eventRefiners),eventDefMemberAdders:e.eventDefMemberAdders.concat(t.eventDefMemberAdders),eventSourceRefiners:Object.assign(Object.assign({},e.eventSourceRefiners),t.eventSourceRefiners),isDraggableTransformers:e.isDraggableTransformers.concat(t.isDraggableTransformers),eventDragMutationMassagers:e.eventDragMutationMassagers.concat(t.eventDragMutationMassagers),eventDefMutationAppliers:e.eventDefMutationAppliers.concat(t.eventDefMutationAppliers),dateSelectionTransformers:e.dateSelectionTransformers.concat(t.dateSelectionTransformers),datePointTransforms:e.datePointTransforms.concat(t.datePointTransforms),dateSpanTransforms:e.dateSpanTransforms.concat(t.dateSpanTransforms),views:Object.assign(Object.assign({},e.views),t.views),viewPropsTransformers:e.viewPropsTransformers.concat(t.viewPropsTransformers),isPropsValid:t.isPropsValid||e.isPropsValid,externalDefTransforms:e.externalDefTransforms.concat(t.externalDefTransforms),viewContainerAppends:e.viewContainerAppends.concat(t.viewContainerAppends),eventDropTransformers:e.eventDropTransformers.concat(t.eventDropTransformers),calendarInteractions:e.calendarInteractions.concat(t.calendarInteractions),componentInteractions:e.componentInteractions.concat(t.componentInteractions),themeClasses:Object.assign(Object.assign({},e.themeClasses),t.themeClasses),eventSourceDefs:e.eventSourceDefs.concat(t.eventSourceDefs),cmdFormatter:t.cmdFormatter||e.cmdFormatter,recurringTypes:e.recurringTypes.concat(t.recurringTypes),namedTimeZonedImpl:t.namedTimeZonedImpl||e.namedTimeZonedImpl,initialView:e.initialView||t.initialView,elementDraggingImpl:e.elementDraggingImpl||t.elementDraggingImpl,optionChangeHandlers:Object.assign(Object.assign({},e.optionChangeHandlers),t.optionChangeHandlers),scrollGridImpl:t.scrollGridImpl||e.scrollGridImpl,listenerRefiners:Object.assign(Object.assign({},e.listenerRefiners),t.listenerRefiners),optionRefiners:Object.assign(Object.assign({},e.optionRefiners),t.optionRefiners),propSetHandlers:Object.assign(Object.assign({},e.propSetHandlers),t.propSetHandlers)}}function Zo(e,t){return void 0===e?t:void 0===t?e:new Date(Math.max(e.valueOf(),t.valueOf()))}class qo extends mn{}function Yo(e,t){let n,r={};for(n in e)$o(n,r,e,t);for(n in t)$o(n,r,e,t);return r}function $o(e,t,n,r){if(t[e])return t[e];let i=Jo(e,t,n,r);return i&&(t[e]=i),i}function Jo(e,t,n,r){let i=n[e],s=r[e],o=e=>i&&null!==i[e]?i[e]:s&&null!==s[e]?s[e]:null,a=o("component"),l=o("superType"),c=null;if(l){if(l===e)throw new Error("Can't have a custom view type that references itself");c=$o(l,t,n,r)}return!a&&c&&(a=c.component),a?{type:e,component:a,defaults:Object.assign(Object.assign({},c?c.defaults:{}),i?i.rawOptions:{}),overrides:Object.assign(Object.assign({},c?c.overrides:{}),s?s.rawOptions:{})}:null}function Xo(e){return ze(e,Ko)}function Ko(e){let t="function"===typeof e?{component:e}:e,{component:n}=t;return t.content&&(n=ea(t)),{superType:t.type,component:n,rawOptions:t}}function ea(e){return t=>A(Kn.Consumer,null,(n=>A(dr,{elTag:"div",elClasses:pr(n.viewSpec),renderProps:Object.assign(Object.assign({},t),{nextDayThreshold:n.options.nextDayThreshold}),generatorName:void 0,generator:e.content,classNameGenerator:e.classNames,didMount:e.didMount,willUnmount:e.willUnmount})))}function ta(e,t,n,r){let i=Xo(e),s=Xo(t.views),o=Yo(i,s);return ze(o,(e=>na(e,s,t,n,r)))}function na(e,t,n,r,i){let s=e.overrides.duration||e.defaults.duration||r.duration||n.duration,o=null,a="",l="",c={};if(s&&(o=ia(s),o)){let e=cn(o);a=e.unit,1===e.value&&(l=a,c=t[a]?t[a].rawOptions:{})}let d=t=>{let n=t.buttonText||{},r=e.defaults.buttonTextKey;return null!=r&&null!=n[r]?n[r]:null!=n[e.type]?n[e.type]:null!=n[l]?n[l]:null},u=t=>{let n=t.buttonHints||{},r=e.defaults.buttonTextKey;return null!=r&&null!=n[r]?n[r]:null!=n[e.type]?n[e.type]:null!=n[l]?n[l]:null};return{type:e.type,component:e.component,duration:o,durationUnit:a,singleUnit:l,optionDefaults:e.defaults,optionOverrides:Object.assign(Object.assign({},c),e.overrides),buttonTextOverride:d(r)||d(n)||e.overrides.buttonText,buttonTextDefault:d(i)||e.defaults.buttonText||d(Un)||e.type,buttonTitleOverride:u(r)||u(n)||e.overrides.buttonHint,buttonTitleDefault:u(i)||e.defaults.buttonHint||u(Un)}}qo.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"},qo.prototype.baseIconClass="fc-icon",qo.prototype.iconClasses={close:"fc-icon-x",prev:"fc-icon-chevron-left",next:"fc-icon-chevron-right",prevYear:"fc-icon-chevrons-left",nextYear:"fc-icon-chevrons-right"},qo.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"},qo.prototype.iconOverrideOption="buttonIcons",qo.prototype.iconOverrideCustomButtonOption="icon",qo.prototype.iconOverridePrefix="fc-icon-";let ra={};function ia(e){let t=JSON.stringify(e),n=ra[t];return void 0===n&&(n=Kt(e),ra[t]=n),n}function sa(e,t){switch(t.type){case"CHANGE_VIEW_TYPE":e=t.viewType}return e}function oa(e,t){switch(t.type){case"SET_OPTION":return Object.assign(Object.assign({},e),{[t.optionName]:t.rawOptionValue});default:return e}}function aa(e,t,n,r){let i;switch(t.type){case"CHANGE_VIEW_TYPE":return r.build(t.dateMarker||n);case"CHANGE_DATE":return r.build(t.dateMarker);case"PREV":if(i=r.buildPrev(e,n),i.isValid)return i;break;case"NEXT":if(i=r.buildNext(e,n),i.isValid)return i;break}return e}function la(e,t,n){let r=t?t.activeRange:null;return fa({},Aa(e,n),r,n)}function ca(e,t,n,r){let i=n?n.activeRange:null;switch(t.type){case"ADD_EVENT_SOURCES":return fa(e,t.sources,i,r);case"REMOVE_EVENT_SOURCE":return ha(e,t.sourceId);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return n?pa(e,i,r):e;case"FETCH_EVENT_SOURCES":return ma(e,t.sourceIds?Ue(t.sourceIds):ya(e,r),i,t.isRefetch||!1,r);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return ba(e,t.sourceId,t.fetchId,t.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return e}}function da(e,t,n){let r=t?t.activeRange:null;return ma(e,ya(e,n),r,!0,n)}function ua(e){for(let t in e)if(e[t].isFetching)return!0;return!1}function fa(e,t,n,r){let i={};for(let s of t)i[s.sourceId]=s;return n&&(i=pa(i,n,r)),Object.assign(Object.assign({},e),i)}function ha(e,t){return je(e,(e=>e.sourceId!==t))}function pa(e,t,n){return ma(e,je(e,(e=>ga(e,t,n))),t,!1,n)}function ga(e,t,n){return _a(e,n)?!n.options.lazyFetching||!e.fetchRange||e.isFetching||t.starte.fetchRange.end:!e.latestFetchId}function ma(e,t,n,r,i){let s={};for(let o in e){let a=e[o];t[o]?s[o]=va(a,n,r,i):s[o]=a}return s}function va(e,t,n,r){let{options:i,calendarApi:s}=r,o=r.pluginHooks.eventSourceDefs[e.sourceDefId],a=pt();return o.fetch({eventSource:e,range:t,isRefetch:n,context:r},(n=>{let{rawEvents:o}=n;i.eventSourceSuccess&&(o=i.eventSourceSuccess.call(s,o,n.response)||o),e.success&&(o=e.success.call(s,o,n.response)||o),r.dispatch({type:"RECEIVE_EVENTS",sourceId:e.sourceId,fetchId:a,fetchRange:t,rawEvents:o})}),(n=>{let o=!1;i.eventSourceFailure&&(i.eventSourceFailure.call(s,n),o=!0),e.failure&&(e.failure(n),o=!0),o||Mo.warn(n.message,n),r.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:e.sourceId,fetchId:a,fetchRange:t,error:n})})),Object.assign(Object.assign({},e),{isFetching:!0,latestFetchId:a})}function ba(e,t,n,r){let i=e[t];return i&&n===i.latestFetchId?Object.assign(Object.assign({},e),{[t]:Object.assign(Object.assign({},i),{isFetching:!1,fetchRange:r})}):e}function ya(e,t){return je(e,(e=>_a(e,t)))}function Aa(e,t){let n=si(t),r=[].concat(e.eventSources||[]),i=[];e.initialEvents&&r.unshift(e.initialEvents),e.events&&r.unshift(e.events);for(let s of r){let e=ii(s,t,n);e&&i.push(e)}return i}function _a(e,t){let n=t.pluginHooks.eventSourceDefs;return!n[e.sourceDefId].ignoreRange}function Ea(e,t){switch(t.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return t.selection;default:return e}}function Ca(e,t){switch(t.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return t.eventInstanceId;default:return e}}function wa(e,t){let n;switch(t.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":return n=t.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}function Da(e,t){let n;switch(t.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":return n=t.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}function Sa(e,t,n,r,i){let s=e.headerToolbar?Ra(e.headerToolbar,e,t,n,r,i):null,o=e.footerToolbar?Ra(e.footerToolbar,e,t,n,r,i):null;return{header:s,footer:o}}function Ra(e,t,n,r,i,s){let o={},a=[],l=!1;for(let c in e){let d=e[c],u=ka(d,t,n,r,i,s);o[c]=u.widgets,a.push(...u.viewsWithButtons),l=l||u.hasTitle}return{sectionWidgets:o,viewsWithButtons:a,hasTitle:l}}function ka(e,t,n,r,i,s){let o="rtl"===t.direction,a=t.customButtons||{},l=n.buttonText||{},c=t.buttonText||{},d=n.buttonHints||{},u=t.buttonHints||{},f=e?e.split(" "):[],h=[],p=!1,g=f.map((e=>e.split(",").map((e=>{if("title"===e)return p=!0,{buttonName:e};let n,f,g,m,v,b;if(n=a[e])g=e=>{n.click&&n.click.call(e.target,e,e.target)},(m=r.getCustomButtonIconClass(n))||(m=r.getIconClass(e,o))||(v=n.text),b=n.hint||n.text;else if(f=i[e]){h.push(e),g=()=>{s.changeView(e)},(v=f.buttonTextOverride)||(m=r.getIconClass(e,o))||(v=f.buttonTextDefault);let n=f.buttonTextOverride||f.buttonTextDefault;b=At(f.buttonTitleOverride||f.buttonTitleDefault||t.viewHint,[n,e],n)}else if(s[e])if(g=()=>{s[e]()},(v=l[e])||(m=r.getIconClass(e,o))||(v=c[e]),"prevYear"===e||"nextYear"===e){let t="prevYear"===e?"prev":"next";b=At(d[t]||u[t],[c.year||"year","year"],c[e])}else b=t=>At(d[e]||u[e],[c[t]||t,t],c[e]);return{buttonName:e,buttonClick:g,buttonIcon:m,buttonText:v,buttonHint:b}}))));return{widgets:g,viewsWithButtons:h,hasTitle:p}}class Ta{constructor(e,t,n){this.type=e,this.getCurrentData=t,this.dateEnv=n}get calendar(){return this.getCurrentData().calendarApi}get title(){return this.getCurrentData().viewTitle}get activeStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.start)}get activeEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.end)}get currentStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.start)}get currentEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.end)}getOption(e){return this.getCurrentData().options[e]}}let xa={ignoreRange:!0,parseMeta(e){return Array.isArray(e.events)?e.events:null},fetch(e,t){t({rawEvents:e.eventSource.meta})}};const Oa=Wo({name:"array-event-source",eventSourceDefs:[xa]});let Ia={parseMeta(e){return"function"===typeof e.events?e.events:null},fetch(e,t,n){const{dateEnv:r}=e.context,i=e.eventSource.meta;Ki(i.bind(null,$i(e.range,r)),(e=>t({rawEvents:e})),n)}};const Ma=Wo({name:"func-event-source",eventSourceDefs:[Ia]}),Na={method:String,extraParams:qn,startParam:String,endParam:String,timeZoneParam:String};let Pa={parseMeta(e){return!e.url||"json"!==e.format&&e.format?null:{url:e.url,format:"json",method:(e.method||"GET").toUpperCase(),extraParams:e.extraParams,startParam:e.startParam,endParam:e.endParam,timeZoneParam:e.timeZoneParam}},fetch(e,t,n){const{meta:r}=e.eventSource,i=Ha(r,e.range,e.context);ts(r.method,r.url,i).then((([e,n])=>{t({rawEvents:e,response:n})}),n)}};const Ba=Wo({name:"json-event-source",eventSourceRefiners:Na,eventSourceDefs:[Pa]});function Ha(e,t,n){let r,i,s,o,{dateEnv:a,options:l}=n,c={};return r=e.startParam,null==r&&(r=l.startParam),i=e.endParam,null==i&&(i=l.endParam),s=e.timeZoneParam,null==s&&(s=l.timeZoneParam),o="function"===typeof e.extraParams?e.extraParams():e.extraParams||{},Object.assign(c,o),c[r]=a.formatIso(t.start),c[i]=a.formatIso(t.end),"local"!==a.timeZone&&(c[s]=a.timeZone),c}const ja={daysOfWeek:qn,startTime:Kt,endTime:Kt,duration:Kt,startRecur:qn,endRecur:qn};let za={parse(e,t){if(e.daysOfWeek||e.startTime||e.endTime||e.startRecur||e.endRecur){let n,r={daysOfWeek:e.daysOfWeek||null,startTime:e.startTime||null,endTime:e.endTime||null,startRecur:e.startRecur?t.createMarker(e.startRecur):null,endRecur:e.endRecur?t.createMarker(e.endRecur):null};return e.duration&&(n=e.duration),!n&&e.startTime&&e.endTime&&(n=rn(e.endTime,e.startTime)),{allDayGuess:Boolean(!e.startTime&&!e.endTime),duration:n,typeData:r}}return null},expand(e,t,n){let r=br(t,{start:e.startRecur,end:e.endRecur});return r?Va(e.daysOfWeek,e.startTime,r,n):[]}};const Ua=Wo({name:"simple-recurring-event",recurringTypes:[za],eventRefiners:ja});function Va(e,t,n,r){let i=e?Ue(e):null,s=Pt(n.start),o=n.end,a=[];while(sua(e.eventSources)],propSetHandlers:{dateProfile:La,eventStore:Qa}})];class Za{constructor(e,t){this.runTaskOption=e,this.drainedOption=t,this.queue=[],this.delayedRunner=new Pe(this.drain.bind(this))}request(e,t){this.queue.push(e),this.delayedRunner.request(t)}pause(e){this.delayedRunner.pause(e)}resume(e,t){this.delayedRunner.resume(e,t)}drain(){let{queue:e}=this;while(e.length){let t,n=[];while(t=e.shift())this.runTask(t),n.push(t);this.drained(n)}}runTask(e){this.runTaskOption&&this.runTaskOption(e)}drained(e){this.drainedOption&&this.drainedOption(e)}}function qa(e,t,n){let r;return r=/^(year|month)$/.test(e.currentRangeUnit)?e.currentRange:e.activeRange,n.formatRange(r.start,r.end,jn(t.titleFormat||Ya(e)),{isEndExclusive:e.isRangeAllDay,defaultSeparator:t.titleRangeSeparator})}function Ya(e){let{currentRangeUnit:t}=e;if("year"===t)return{year:"numeric"};if("month"===t)return{year:"numeric",month:"long"};let n=Nt(e.currentRange.start,e.currentRange.end);return null!==n&&n>1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}class $a{constructor(e){this.computeOptionsData=$e(this._computeOptionsData),this.computeCurrentViewData=$e(this._computeCurrentViewData),this.organizeRawLocales=$e(jo),this.buildLocale=$e(zo),this.buildPluginHooks=Qo(),this.buildDateEnv=$e(Ja),this.buildTheme=$e(Xa),this.parseToolbars=$e(Sa),this.buildViewSpecs=$e(ta),this.buildDateProfileGenerator=Je(Ka),this.buildViewApi=$e(el),this.buildViewUiProps=Je(rl),this.buildEventUiBySource=$e(tl,Fe),this.buildEventUiBases=$e(nl),this.parseContextBusinessHours=Je(sl),this.buildTitle=$e(qa),this.emitter=new pi,this.actionRunner=new Za(this._handleAction.bind(this),this.updateData.bind(this)),this.currentCalendarOptionsInput={},this.currentCalendarOptionsRefined={},this.currentViewOptionsInput={},this.currentViewOptionsRefined={},this.currentCalendarOptionsRefiners={},this.getCurrentData=()=>this.data,this.dispatch=e=>{this.actionRunner.request(e)},this.props=e,this.actionRunner.pause();let t={},n=this.computeOptionsData(e.optionOverrides,t,e.calendarApi),r=n.calendarOptions.initialView||n.pluginHooks.initialView,i=this.computeCurrentViewData(r,n,e.optionOverrides,t);e.calendarApi.currentDataManager=this,this.emitter.setThisContext(e.calendarApi),this.emitter.setOptions(i.options);let s=Sr(n.calendarOptions,n.dateEnv),o=i.dateProfileGenerator.build(s);Ar(o.activeRange,s)||(s=o.currentRange.start);let a={dateEnv:n.dateEnv,options:n.calendarOptions,pluginHooks:n.pluginHooks,calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData};for(let u of n.pluginHooks.contextInit)u(a);let l=la(n.calendarOptions,o,a),c={dynamicOptionOverrides:t,currentViewType:r,currentDate:s,dateProfile:o,businessHours:this.parseContextBusinessHours(a),eventSources:l,eventUiBases:{},eventStore:Gr(),renderableEventStore:Gr(),dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(a).selectionConfig},d=Object.assign(Object.assign({},a),c);for(let u of n.pluginHooks.reducers)Object.assign(c,u(null,null,d));il(c,a)&&this.emitter.trigger("loading",!0),this.state=c,this.updateData(),this.actionRunner.resume()}resetOptions(e,t){let{props:n}=this;n.optionOverrides=t?Object.assign(Object.assign({},n.optionOverrides),e):e,this.actionRunner.request({type:"NOTHING"})}_handleAction(e){let{props:t,state:n,emitter:r}=this,i=oa(n.dynamicOptionOverrides,e),s=this.computeOptionsData(t.optionOverrides,i,t.calendarApi),o=sa(n.currentViewType,e),a=this.computeCurrentViewData(o,s,t.optionOverrides,i);t.calendarApi.currentDataManager=this,r.setThisContext(t.calendarApi),r.setOptions(a.options);let l={dateEnv:s.dateEnv,options:s.calendarOptions,pluginHooks:s.pluginHooks,calendarApi:t.calendarApi,dispatch:this.dispatch,emitter:r,getCurrentData:this.getCurrentData},{currentDate:c,dateProfile:d}=n;this.data&&this.data.dateProfileGenerator!==a.dateProfileGenerator&&(d=a.dateProfileGenerator.build(c)),c=Dr(c,e),d=aa(d,e,c,a.dateProfileGenerator),"PREV"!==e.type&&"NEXT"!==e.type&&Ar(d.currentRange,c)||(c=d.currentRange.start);let u=ca(n.eventSources,e,d,l),f=ai(n.eventStore,e,u,d,l),h=ua(u),p=h&&!a.options.progressiveEventRendering&&n.renderableEventStore||f,{eventUiSingleBase:g,selectionConfig:m}=this.buildViewUiProps(l),v=this.buildEventUiBySource(u),b=this.buildEventUiBases(p.defs,g,v),y={dynamicOptionOverrides:i,currentViewType:o,currentDate:c,dateProfile:d,eventSources:u,eventStore:f,renderableEventStore:p,selectionConfig:m,eventUiBases:b,businessHours:this.parseContextBusinessHours(l),dateSelection:Ea(n.dateSelection,e),eventSelection:Ca(n.eventSelection,e),eventDrag:wa(n.eventDrag,e),eventResize:Da(n.eventResize,e)},A=Object.assign(Object.assign({},l),y);for(let C of s.pluginHooks.reducers)Object.assign(y,C(n,e,A));let _=il(n,l),E=il(y,l);!_&&E?r.trigger("loading",!0):_&&!E&&r.trigger("loading",!1),this.state=y,t.onAction&&t.onAction(e)}updateData(){let{props:e,state:t}=this,n=this.data,r=this.computeOptionsData(e.optionOverrides,t.dynamicOptionOverrides,e.calendarApi),i=this.computeCurrentViewData(t.currentViewType,r,e.optionOverrides,t.dynamicOptionOverrides),s=this.data=Object.assign(Object.assign(Object.assign({viewTitle:this.buildTitle(t.dateProfile,i.options,r.dateEnv),calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},r),i),t),o=r.pluginHooks.optionChangeHandlers,a=n&&n.calendarOptions,l=r.calendarOptions;if(a&&a!==l){a.timeZone!==l.timeZone&&(t.eventSources=s.eventSources=da(s.eventSources,t.dateProfile,s),t.eventStore=s.eventStore=fi(s.eventStore,n.dateEnv,s.dateEnv));for(let e in o)a[e]!==l[e]&&o[e](l[e],s)}e.onData&&e.onData(s)}_computeOptionsData(e,t,n){let{refinedOptions:r,pluginHooks:i,localeDefaults:s,availableLocaleData:o,extra:a}=this.processRawCalendarOptions(e,t);ol(a);let l=this.buildDateEnv(r.timeZone,r.locale,r.weekNumberCalculation,r.firstDay,r.weekText,i,o,r.defaultRangeSeparator),c=this.buildViewSpecs(i.views,e,t,s),d=this.buildTheme(r,i),u=this.parseToolbars(r,e,d,c,n);return{calendarOptions:r,pluginHooks:i,dateEnv:l,viewSpecs:c,theme:d,toolbarConfig:u,localeDefaults:s,availableRawLocales:o.map}}processRawCalendarOptions(e,t){let{locales:n,locale:r}=Gn([Un,e,t]),i=this.organizeRawLocales(n),s=i.map,o=this.buildLocale(r||i.defaultCode,s).options,a=this.buildPluginHooks(e.plugins||[],Ga),l=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},zn),Vn),Fn),a.listenerRefiners),a.optionRefiners),c={},d=Gn([Un,o,e,t]),u={},f=this.currentCalendarOptionsInput,h=this.currentCalendarOptionsRefined,p=!1;for(let g in d)"plugins"!==g&&(d[g]===f[g]||Wn[g]&&g in f&&Wn[g](f[g],d[g])?u[g]=h[g]:l[g]?(u[g]=l[g](d[g]),p=!0):c[g]=f[g]);return p&&(this.currentCalendarOptionsInput=d,this.currentCalendarOptionsRefined=u),{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:a,availableLocaleData:i,localeDefaults:o,extra:c}}_computeCurrentViewData(e,t,n,r){let i=t.viewSpecs[e];if(!i)throw new Error(`viewType "${e}" is not available. Please make sure you've loaded all neccessary plugins`);let{refinedOptions:s,extra:o}=this.processRawViewOptions(i,t.pluginHooks,t.localeDefaults,n,r);ol(o);let a=this.buildDateProfileGenerator({dateProfileGeneratorClass:i.optionDefaults.dateProfileGeneratorClass,duration:i.duration,durationUnit:i.durationUnit,usesMinMaxTime:i.optionDefaults.usesMinMaxTime,dateEnv:t.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:s.slotMinTime,slotMaxTime:s.slotMaxTime,showNonCurrentDates:s.showNonCurrentDates,dayCount:s.dayCount,dateAlignment:s.dateAlignment,dateIncrement:s.dateIncrement,hiddenDays:s.hiddenDays,weekends:s.weekends,nowInput:s.now,validRangeInput:s.validRange,visibleRangeInput:s.visibleRange,monthMode:s.monthMode,fixedWeekCount:s.fixedWeekCount}),l=this.buildViewApi(e,this.getCurrentData,t.dateEnv);return{viewSpec:i,options:s,dateProfileGenerator:a,viewApi:l}}processRawViewOptions(e,t,n,r,i){let s=Gn([Un,e.optionDefaults,n,r,e.optionOverrides,i]),o=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},zn),Vn),Fn),Qn),t.listenerRefiners),t.optionRefiners),a={},l=this.currentViewOptionsInput,c=this.currentViewOptionsRefined,d=!1,u={};for(let f in s)s[f]===l[f]||Wn[f]&&Wn[f](s[f],l[f])?a[f]=c[f]:(s[f]===this.currentCalendarOptionsInput[f]||Wn[f]&&Wn[f](s[f],this.currentCalendarOptionsInput[f])?f in this.currentCalendarOptionsRefined&&(a[f]=this.currentCalendarOptionsRefined[f]):o[f]?a[f]=o[f](s[f]):u[f]=s[f],d=!0);return d&&(this.currentViewOptionsInput=s,this.currentViewOptionsRefined=a),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:u}}}function Ja(e,t,n,r,i,s,o,a){let l=zo(t||o.defaultCode,o.map);return new gn({calendarSystem:"gregory",timeZone:e,namedTimeZoneImpl:s.namedTimeZonedImpl,locale:l,weekNumberCalculation:n,firstDay:r,weekText:i,cmdFormatter:s.cmdFormatter,defaultSeparator:a})}function Xa(e,t){let n=t.themeClasses[e.themeSystem]||qo;return new n(e)}function Ka(e){let t=e.dateProfileGeneratorClass||kr;return new t(e)}function el(e,t,n){return new Ta(e,t,n)}function tl(e){return ze(e,(e=>e.ui))}function nl(e,t,n){let r={"":t};for(let i in e){let t=e[i];t.sourceId&&n[t.sourceId]&&(r[i]=n[t.sourceId])}return r}function rl(e){let{options:t}=e;return{eventUiSingleBase:ei({display:t.eventDisplay,editable:t.editable,startEditable:t.eventStartEditable,durationEditable:t.eventDurationEditable,constraint:t.eventConstraint,overlap:"boolean"===typeof t.eventOverlap?t.eventOverlap:void 0,allow:t.eventAllow,backgroundColor:t.eventBackgroundColor,borderColor:t.eventBorderColor,textColor:t.eventTextColor,color:t.eventColor},e),selectionConfig:ei({constraint:t.selectConstraint,overlap:"boolean"===typeof t.selectOverlap?t.selectOverlap:void 0,allow:t.selectAllow},e)}}function il(e,t){for(let n of t.pluginHooks.isLoadingFuncs)if(n(e))return!0;return!1}function sl(e){return bi(e.options.businessHours,e)}function ol(e,t){for(let n in e)Mo.warn(`Unknown option '${n}'`+(t?` for view '${t}'`:""))}class al extends nr{render(){let e=this.props.widgetGroups.map((e=>this.renderWidgetGroup(e)));return A("div",{className:"fc-toolbar-chunk"},...e)}renderWidgetGroup(e){let{props:t}=this,{theme:n}=this.context,r=[],i=!0;for(let s of e){let{buttonName:e,buttonClick:o,buttonText:a,buttonIcon:l,buttonHint:c}=s;if("title"===e)i=!1,r.push(A("h2",{className:"fc-toolbar-title",id:t.titleId},t.title));else{let i=e===t.activeButton,s=!t.isTodayEnabled&&"today"===e||!t.isPrevEnabled&&"prev"===e||!t.isNextEnabled&&"next"===e,d=[`fc-${e}-button`,n.getClass("button")];i&&d.push(n.getClass("buttonActive")),r.push(A("button",{type:"button",title:"function"===typeof c?c(t.navUnit):c,disabled:s,"aria-pressed":i,className:d.join(" "),onClick:o},a||(l?A("span",{className:l}):"")))}}if(r.length>1){let e=i&&n.getClass("buttonGroup")||"";return A("div",{className:e},...r)}return r[0]}}class ll extends nr{render(){let e,t,{model:n,extraClassName:r}=this.props,i=!1,s=n.sectionWidgets,o=s.center;s.left?(i=!0,e=s.left):e=s.start,s.right?(i=!0,t=s.right):t=s.end;let a=[r||"","fc-toolbar",i?"fc-toolbar-ltr":""];return A("div",{className:a.join(" ")},this.renderSection("start",e||[]),this.renderSection("center",o||[]),this.renderSection("end",t||[]))}renderSection(e,t){let{props:n}=this;return A(al,{key:e,widgetGroups:t,title:n.title,navUnit:n.navUnit,activeButton:n.activeButton,isTodayEnabled:n.isTodayEnabled,isPrevEnabled:n.isPrevEnabled,isNextEnabled:n.isNextEnabled,titleId:n.titleId})}}class cl extends nr{constructor(){super(...arguments),this.state={availableWidth:null},this.handleEl=e=>{this.el=e,sr(this.props.elRef,e),this.updateAvailableWidth()},this.handleResize=()=>{this.updateAvailableWidth()}}render(){let{props:e,state:t}=this,{aspectRatio:n}=e,r=["fc-view-harness",n||e.liquid||e.height?"fc-view-harness-active":"fc-view-harness-passive"],i="",s="";return n?null!==t.availableWidth?i=t.availableWidth/n:s=1/n*100+"%":i=e.height||"",A("div",{"aria-labelledby":e.labeledById,ref:this.handleEl,className:r.join(" "),style:{height:i,paddingBottom:s}},e.children)}componentDidMount(){this.context.addResizeHandler(this.handleResize)}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}updateAvailableWidth(){this.el&&this.props.aspectRatio&&this.setState({availableWidth:this.el.offsetWidth})}}class dl extends os{constructor(e){super(e),this.handleSegClick=(e,t)=>{let{component:n}=this,{context:r}=n,i=Mi(t);if(i&&n.isValidSegDownEl(e.target)){let s=Ke(e.target,".fc-event-forced-url"),o=s?s.querySelector("a[href]").href:"";r.emitter.trigger("eventClick",{el:t,event:new ki(n.context,i.eventRange.def,i.eventRange.instance),jsEvent:e,view:r.viewApi}),o&&!e.defaultPrevented&&(window.location.href=o)}},this.destroy=ct(e.el,"click",".fc-event",this.handleSegClick)}}class ul extends os{constructor(e){super(e),this.handleEventElRemove=e=>{e===this.currentSegEl&&this.handleSegLeave(null,this.currentSegEl)},this.handleSegEnter=(e,t)=>{Mi(t)&&(this.currentSegEl=t,this.triggerEvent("eventMouseEnter",e,t))},this.handleSegLeave=(e,t)=>{this.currentSegEl&&(this.currentSegEl=null,this.triggerEvent("eventMouseLeave",e,t))},this.removeHoverListeners=dt(e.el,".fc-event",this.handleSegEnter,this.handleSegLeave)}destroy(){this.removeHoverListeners()}triggerEvent(e,t,n){let{component:r}=this,{context:i}=r,s=Mi(n);t&&!r.isValidSegDownEl(t.target)||i.emitter.trigger(e,{el:n,event:new ki(i,s.eventRange.def,s.eventRange.instance),jsEvent:t,view:i.viewApi})}}class fl extends tr{constructor(){super(...arguments),this.buildViewContext=$e(er),this.buildViewPropTransformers=$e(pl),this.buildToolbarProps=$e(hl),this.headerRef=E(),this.footerRef=E(),this.interactionsStore={},this.state={viewLabelId:at()},this.registerInteractiveComponent=(e,t)=>{let n=as(e,t),r=[dl,ul],i=r.concat(this.props.pluginHooks.componentInteractions),s=i.map((e=>new e(n)));this.interactionsStore[e.uid]=s,ls[e.uid]=n},this.unregisterInteractiveComponent=e=>{let t=this.interactionsStore[e.uid];if(t){for(let e of t)e.destroy();delete this.interactionsStore[e.uid]}delete ls[e.uid]},this.resizeRunner=new Pe((()=>{this.props.emitter.trigger("_resize",!0),this.props.emitter.trigger("windowResize",{view:this.props.viewApi})})),this.handleWindowResize=e=>{let{options:t}=this.props;t.handleWindowResize&&e.target===window&&this.resizeRunner.request(t.windowResizeDelay)}}render(){let e,{props:t}=this,{toolbarConfig:n,options:r}=t,i=this.buildToolbarProps(t.viewSpec,t.dateProfile,t.dateProfileGenerator,t.currentDate,Rr(t.options.now,t.dateEnv),t.viewTitle),s=!1,o="";t.isHeightAuto||t.forPrint?o="":null!=r.height?s=!0:null!=r.contentHeight?o=r.contentHeight:e=Math.max(r.aspectRatio,.5);let a=this.buildViewContext(t.viewSpec,t.viewApi,t.options,t.dateProfileGenerator,t.dateEnv,t.theme,t.pluginHooks,t.dispatch,t.getCurrentData,t.emitter,t.calendarApi,this.registerInteractiveComponent,this.unregisterInteractiveComponent),l=n.header&&n.header.hasTitle?this.state.viewLabelId:"";return A(Kn.Provider,{value:a},n.header&&A(ll,Object.assign({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:n.header,titleId:l},i)),A(cl,{liquid:s,height:o,aspectRatio:e,labeledById:l},this.renderView(t),this.buildAppendContent()),n.footer&&A(ll,Object.assign({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:n.footer,titleId:""},i)))}componentDidMount(){let{props:e}=this;this.calendarInteractions=e.pluginHooks.calendarInteractions.map((t=>new t(e))),window.addEventListener("resize",this.handleWindowResize);let{propSetHandlers:t}=e.pluginHooks;for(let n in t)t[n](e[n],e)}componentDidUpdate(e){let{props:t}=this,{propSetHandlers:n}=t.pluginHooks;for(let r in n)t[r]!==e[r]&&n[r](t[r],t)}componentWillUnmount(){window.removeEventListener("resize",this.handleWindowResize),this.resizeRunner.clear();for(let e of this.calendarInteractions)e.destroy();this.props.emitter.trigger("_unmount")}buildAppendContent(){let{props:e}=this,t=e.pluginHooks.viewContainerAppends.map((t=>t(e)));return A(C,{},...t)}renderView(e){let{pluginHooks:t}=e,{viewSpec:n}=e,r={dateProfile:e.dateProfile,businessHours:e.businessHours,eventStore:e.renderableEventStore,eventUiBases:e.eventUiBases,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,isHeightAuto:e.isHeightAuto,forPrint:e.forPrint},i=this.buildViewPropTransformers(t.viewPropsTransformers);for(let o of i)Object.assign(r,o.transform(r,e));let s=n.component;return A(s,Object.assign({},r))}}function hl(e,t,n,r,i,s){let o=n.build(i,void 0,!1),a=n.buildPrev(t,r,!1),l=n.buildNext(t,r,!1);return{title:s,activeButton:e.type,navUnit:e.singleUnit,isTodayEnabled:o.isValid&&!Ar(t.currentRange,i),isPrevEnabled:a.isValid,isNextEnabled:l.isValid}}function pl(e){return e.map((e=>new e))}class gl extends cs{constructor(e,t={}){super(),this.isRendering=!1,this.isRendered=!1,this.currentClassNames=[],this.customContentRenderId=0,this.handleAction=e=>{switch(e.type){case"SET_EVENT_DRAG":case"SET_EVENT_RESIZE":this.renderRunner.tryDrain()}},this.handleData=e=>{this.currentData=e,this.renderRunner.request(e.calendarOptions.rerenderDelay)},this.handleRenderRequest=()=>{if(this.isRendering){this.isRendered=!0;let{currentData:e}=this;Yn((()=>{L(A(ss,{options:e.calendarOptions,theme:e.theme,emitter:e.emitter},((t,n,r,i)=>(this.setClassNames(t),this.setHeight(n),A(cr.Provider,{value:this.customContentRenderId},A(fl,Object.assign({isHeightAuto:r,forPrint:i},e)))))),this.el)}))}else this.isRendered&&(this.isRendered=!1,L(null,this.el),this.setClassNames([]),this.setHeight(""))},this.el=e,this.renderRunner=new Pe(this.handleRenderRequest),new $a({optionOverrides:t,calendarApi:this,onAction:this.handleAction,onData:this.handleData})}render(){let e=this.isRendering;e?this.customContentRenderId+=1:this.isRendering=!0,this.renderRunner.request(),e&&this.updateSize()}destroy(){this.isRendering&&(this.isRendering=!1,this.renderRunner.request())}updateSize(){Yn((()=>{super.updateSize()}))}batchRendering(e){this.renderRunner.pause("batchRendering"),e(),this.renderRunner.resume("batchRendering")}pauseRendering(){this.renderRunner.pause("pauseRendering")}resumeRendering(){this.renderRunner.resume("pauseRendering",!0)}resetOptions(e,t){this.currentDataManager.resetOptions(e,t)}setClassNames(e){if(!Ye(e,this.currentClassNames)){let{classList:t}=this.el;for(let e of this.currentClassNames)t.remove(e);for(let n of e)t.add(n);this.currentClassNames=e}}setHeight(e){it(this.el,"height",e)}}const ml={headerToolbar:!0,footerToolbar:!0,events:!0,eventSources:!0,resources:!0};function vl(e){return"object"===typeof e&&(Array.isArray(e)?e=Array.prototype.slice.call(e):e&&(e={...e})),e}const bl=(0,r.aZ)({props:{options:Object},data(){return{renderId:0,customRenderingMap:new Map}},methods:{getApi(){return Al(this).calendar},buildOptions(e){return{...e,customRenderingMetaMap:this.$slots,handleCustomRendering:Al(this).handleCustomRendering}}},render(){const e=[];for(const t of this.customRenderingMap.values())e.push((0,r.h)(r.lR,{key:t.id,to:t.containerEl},t.generatorMeta(t.renderProps)));return(0,r.h)("div",{attrs:{"data-fc-render-id":this.renderId}},(0,r.h)(r.HY,e))},mounted(){const e=new Io;Al(this).handleCustomRendering=e.handle.bind(e);const t=this.buildOptions(this.options),n=new gl(this.$el,t);Al(this).calendar=n,n.render(),e.subscribe((e=>{this.customRenderingMap=e,this.renderId++,Al(this).needCustomRenderingResize=!0}))},beforeUpdate(){this.getApi().resumeRendering()},updated(){Al(this).needCustomRenderingResize&&(Al(this).needCustomRenderingResize=!1,this.getApi().updateSize())},beforeUnmount(){this.getApi().destroy()},watch:_l()});var yl=bl;function Al(e){return e}function _l(){let e={options:{deep:!0,handler(e){let t=this.getApi();t.pauseRendering();let n=this.buildOptions(e);t.resetOptions(n),this.renderId++}}};for(let t in ml)e[`options.${t}`]={deep:!0,handler(e){if(void 0!==e){let n=this.getApi();n.pauseRendering(),n.resetOptions({[t]:vl(e)},!0),this.renderId++}}};return e}var El=yl;class Cl extends Cs{constructor(){super(...arguments),this.headerElRef=E()}renderSimpleLayout(e,t){let{props:n,context:r}=this,i=[],s=io(r.options);return e&&i.push({type:"header",key:"header",isSticky:s,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),i.push({type:"body",key:"body",liquid:!0,chunk:{content:t}}),A(hr,{elClasses:["fc-daygrid"],viewSpec:r.viewSpec},A(oo,{liquid:!n.isHeightAuto&&!n.forPrint,collapsibleWidth:n.forPrint,cols:[],sections:i}))}renderHScrollLayout(e,t,n,r){let i=this.context.pluginHooks.scrollGridImpl;if(!i)throw new Error("No ScrollGrid implementation");let{props:s,context:o}=this,a=!s.forPrint&&io(o.options),l=!s.forPrint&&so(o.options),c=[];return e&&c.push({type:"header",key:"header",isSticky:a,chunks:[{key:"main",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),c.push({type:"body",key:"body",liquid:!0,chunks:[{key:"main",content:t}]}),l&&c.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"main",content:ro}]}),A(hr,{elClasses:["fc-daygrid"],viewSpec:o.viewSpec},A(i,{liquid:!s.isHeightAuto&&!s.forPrint,collapsibleWidth:s.forPrint,colGroups:[{cols:[{span:n,minWidth:r}]}],sections:c}))}}function wl(e,t){let n=[];for(let r=0;r{let n=(e.eventDrag?e.eventDrag.affectedInstances:null)||(e.eventResize?e.eventResize.affectedInstances:null)||{};return A(C,null,t.map((t=>{let r=t.eventRange.instance.instanceId;return A("div",{className:"fc-daygrid-event-harness",key:r,style:{visibility:n[r]?"hidden":""}},kl(t)?A(xl,Object.assign({seg:t,isDragging:!1,isSelected:r===e.eventSelection,defaultDisplayEventEnd:!1},Fi(t,e.todayRange))):A(Tl,Object.assign({seg:t,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:r===e.eventSelection,defaultDisplayEventEnd:!1},Fi(t,e.todayRange))))})))}})}}function Ml(e){let t=[],n=[];for(let r of e)t.push(r.seg),r.isVisible||n.push(r.seg);return{allSegs:t,invisibleSegs:n}}const Nl=jn({week:"narrow"});class Pl extends Cs{constructor(){super(...arguments),this.rootElRef=E(),this.state={dayNumberId:at()},this.handleRootEl=e=>{sr(this.rootElRef,e),sr(this.props.elRef,e)}}render(){let{context:e,props:t,state:n,rootElRef:r}=this,{options:i}=e,{date:s,dateProfile:o}=t;return A(ho,{elTag:"td",elRef:this.handleRootEl,elClasses:["fc-daygrid-day",...t.extraClassNames||[]],elAttrs:Object.assign(Object.assign(Object.assign({},t.extraDataAttrs),t.showDayNumber?{"aria-labelledby":n.dayNumberId}:{}),{role:"gridcell"}),defaultGenerator:Bl,date:s,dateProfile:o,todayRange:t.todayRange,showDayNumber:t.showDayNumber,extraRenderProps:t.extraRenderProps},((o,a)=>A("div",{className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",ref:t.innerElRef},t.showWeekNumber&&A(yo,{elTag:"a",elClasses:["fc-daygrid-week-number"],elAttrs:gs(e,s,"week"),date:s,defaultFormat:Nl}),Boolean(!a.isDisabled&&(t.showDayNumber||po(i)||t.forceDayTop))&&A("div",{className:"fc-daygrid-day-top"},A(o,{elTag:"a",elClasses:["fc-daygrid-day-number"],elAttrs:Object.assign(Object.assign({},gs(e,s)),{id:n.dayNumberId})})),A("div",{className:"fc-daygrid-day-events",ref:t.fgContentElRef},t.fgContent,A("div",{className:"fc-daygrid-day-bottom",style:{marginTop:t.moreMarginTop}},A(Il,{allDayDate:s,singlePlacements:t.singlePlacements,moreCnt:t.moreCnt,alignmentElRef:r,alignGridTop:!t.showDayNumber,extraDateSpan:t.extraDateSpan,dateProfile:t.dateProfile,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,todayRange:t.todayRange}))),A("div",{className:"fc-daygrid-day-bg"},t.bgContent))))}}function Bl(e){return e.dayNumberText||A(C,null," ")}function Hl(e,t,n,r,i,s,o){let a=new Vl;a.allowReslicing=!0,a.strictOrder=r,!0===t||!0===n?(a.maxCoord=s,a.hiddenConsumes=!0):"number"===typeof t?a.maxStackCnt=t:"number"===typeof n&&(a.maxStackCnt=n,a.hiddenConsumes=!0);let l=[],c=[];for(let v=0;v1,s=r.span.start===a;d+=r.levelCoord-c,c=r.levelCoord+r.thickness,i?(d+=r.thickness,s&&u.push({seg:Ul(e,r.span.start,r.span.end,n),isVisible:!0,isAbsolute:!0,absoluteTop:r.levelCoord,marginTop:0})):s&&(u.push({seg:Ul(e,r.span.start,r.span.end,n),isVisible:!0,isAbsolute:!1,absoluteTop:r.levelCoord,marginTop:d}),d=0)}i.push(l),s.push(u),o.push(d)}return{singleColPlacements:i,multiColPlacements:s,leftoverMargins:o}}function zl(e,t){let n=[];for(let r=0;r!this.forceHidden[Ss(e)];for(let i=0;i{e&&this.updateSizing(!0)}}render(){let{props:e,state:t,context:n}=this,{options:r}=n,i=e.cells.length,s=Dl(e.businessHourSegs,i),o=Dl(e.bgEventSegs,i),a=Dl(this.getHighlightSegs(),i),l=Dl(this.getMirrorSegs(),i),{singleColPlacements:c,multiColPlacements:d,moreCnts:u,moreMarginTops:f}=Hl(Bi(e.fgEventSegs,r.eventOrder),e.dayMaxEvents,e.dayMaxEventRows,r.eventOrderStrict,t.eventInstanceHeights,t.maxContentHeight,e.cells),h=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{};return A("tr",{ref:this.rootElRef,role:"row"},e.renderIntro&&e.renderIntro(),e.cells.map(((t,n)=>{let r=this.renderFgSegs(n,e.forPrint?c[n]:d[n],e.todayRange,h),i=this.renderFgSegs(n,Wl(l[n],d),e.todayRange,{},Boolean(e.eventDrag),Boolean(e.eventResize),!1);return A(Pl,{key:t.key,elRef:this.cellElRefs.createRef(t.key),innerElRef:this.frameElRefs.createRef(t.key),dateProfile:e.dateProfile,date:t.date,showDayNumber:e.showDayNumbers,showWeekNumber:e.showWeekNumbers&&0===n,forceDayTop:e.showWeekNumbers,todayRange:e.todayRange,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,extraRenderProps:t.extraRenderProps,extraDataAttrs:t.extraDataAttrs,extraClassNames:t.extraClassNames,extraDateSpan:t.extraDateSpan,moreCnt:u[n],moreMarginTop:f[n],singlePlacements:c[n],fgContentElRef:this.fgElRefs.createRef(t.key),fgContent:A(C,null,A(C,null,r),A(C,null,i)),bgContent:A(C,null,this.renderFillSegs(a[n],"highlight"),this.renderFillSegs(s[n],"non-business"),this.renderFillSegs(o[n],"bg-event"))})})))}componentDidMount(){this.updateSizing(!0),this.context.addResizeHandler(this.handleResize)}componentDidUpdate(e,t){let n=this.props;this.updateSizing(!Fe(e,n))}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}getHighlightSegs(){let{props:e}=this;return e.eventDrag&&e.eventDrag.segs.length?e.eventDrag.segs:e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:e.dateSelectionSegs}getMirrorSegs(){let{props:e}=this;return e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:[]}renderFgSegs(e,t,n,r,i,s,o){let{context:a}=this,{eventSelection:l}=this.props,{framePositions:c}=this.state,d=1===this.props.cells.length,u=i||s||o,f=[];if(c)for(let h of t){let{seg:t}=h,{instanceId:p}=t.eventRange.instance,g=p+":"+e,m=h.isVisible&&!r[p],v=h.isAbsolute,b="",y="";v&&(a.isRtl?(y=0,b=c.lefts[t.lastCol]-c.lefts[t.firstCol]):(b=0,y=c.rights[t.firstCol]-c.rights[t.lastCol])),f.push(A("div",{className:"fc-daygrid-event-harness"+(v?" fc-daygrid-event-harness-abs":""),key:g,ref:u?null:this.segHarnessRefs.createRef(g),style:{visibility:m?"":"hidden",marginTop:v?"":h.marginTop,top:v?h.absoluteTop:"",left:b,right:y}},kl(t)?A(xl,Object.assign({seg:t,isDragging:i,isSelected:p===l,defaultDisplayEventEnd:d},Fi(t,n))):A(Tl,Object.assign({seg:t,isDragging:i,isResizing:s,isDateSelecting:o,isSelected:p===l,defaultDisplayEventEnd:d},Fi(t,n)))))}return f}renderFillSegs(e,t){let{isRtl:n}=this.context,{todayRange:r}=this.props,{framePositions:i}=this.state,s=[];if(i)for(let o of e){let e=n?{right:0,left:i.lefts[o.lastCol]-i.lefts[o.firstCol]}:{left:0,right:i.rights[o.firstCol]-i.rights[o.lastCol]};s.push(A("div",{key:Li(o.eventRange),className:"fc-daygrid-bg-harness",style:e},"bg-event"===t?A(mo,Object.assign({seg:o},Fi(o,r))):bo(t)))}return A(C,{},...s)}updateSizing(e){let{props:t,frameElRefs:n}=this;if(!t.forPrint&&null!==t.clientWidth){if(e){let e=t.cells.map((e=>n.currentMap[e.key]));if(e.length){let t=this.rootElRef.current;this.setState({framePositions:new Es(t,e,!0,!1)})}}const r=this.state.eventInstanceHeights,i=this.queryEventInstanceHeights(),s=!0===t.dayMaxEvents||!0===t.dayMaxEventRows;this.safeSetState({eventInstanceHeights:Object.assign(Object.assign({},r),i),maxContentHeight:s?this.computeMaxContentHeight():null})}}queryEventInstanceHeights(){let e=this.segHarnessRefs.currentMap,t={};for(let n in e){let r=Math.round(e[n].getBoundingClientRect().height),i=n.split(":")[0];t[i]=Math.max(t[i]||0,r)}return t}computeMaxContentHeight(){let e=this.props.cells[0].key,t=this.cellElRefs.currentMap[e],n=this.fgElRefs.currentMap[e];return t.getBoundingClientRect().bottom-n.getBoundingClientRect().top}getCellEls(){let e=this.cellElRefs.currentMap;return this.props.cells.map((t=>e[t.key]))}}function Wl(e,t){if(!e.length)return[];let n=Ll(t);return e.map((e=>({seg:e,isVisible:!0,isAbsolute:!0,absoluteTop:n[e.eventRange.instance.instanceId],marginTop:0})))}function Ll(e){let t={};for(let n of e)for(let e of n)t[e.seg.eventRange.instance.instanceId]=e.absoluteTop;return t}Fl.addStateEquality({eventInstanceHeights:Fe});class Ql extends Cs{constructor(){super(...arguments),this.splitBusinessHourSegs=$e(wl),this.splitBgEventSegs=$e(wl),this.splitFgEventSegs=$e(wl),this.splitDateSelectionSegs=$e(wl),this.splitEventDrag=$e(Sl),this.splitEventResize=$e(Sl),this.rowRefs=new Gs,this.handleRootEl=e=>{this.rootEl=e,e?this.context.registerInteractiveComponent(this,{el:e,isHitComboAllowed:this.props.isHitComboAllowed}):this.context.unregisterInteractiveComponent(this)}}render(){let{props:e}=this,{dateProfile:t,dayMaxEventRows:n,dayMaxEvents:r,expandRows:i}=e,s=e.cells.length,o=this.splitBusinessHourSegs(e.businessHourSegs,s),a=this.splitBgEventSegs(e.bgEventSegs,s),l=this.splitFgEventSegs(e.fgEventSegs,s),c=this.splitDateSelectionSegs(e.dateSelectionSegs,s),d=this.splitEventDrag(e.eventDrag,s),u=this.splitEventResize(e.eventResize,s),f=!0===r||!0===n;f&&!i&&(f=!1,n=null,r=null);let h=["fc-daygrid-body",f?"fc-daygrid-body-balanced":"fc-daygrid-body-unbalanced",i?"":"fc-daygrid-body-natural"];return A("div",{className:h.join(" "),ref:this.handleRootEl,style:{width:e.clientWidth,minWidth:e.tableMinWidth}},A(Bs,{unit:"day"},((f,h)=>A(C,null,A("table",{role:"presentation",className:"fc-scrollgrid-sync-table",style:{width:e.clientWidth,minWidth:e.tableMinWidth,height:i?e.clientHeight:""}},e.colGroupNode,A("tbody",{role:"presentation"},e.cells.map(((i,f)=>A(Fl,{ref:this.rowRefs.createRef(f),key:i.length?i[0].date.toISOString():f,showDayNumbers:s>1,showWeekNumbers:e.showWeekNumbers,todayRange:h,dateProfile:t,cells:i,renderIntro:e.renderRowIntro,businessHourSegs:o[f],eventSelection:e.eventSelection,bgEventSegs:a[f].filter(Gl),fgEventSegs:l[f],dateSelectionSegs:c[f],eventDrag:d[f],eventResize:u[f],dayMaxEvents:r,dayMaxEventRows:n,clientWidth:e.clientWidth,clientHeight:e.clientHeight,forPrint:e.forPrint})))))))))}prepareHits(){this.rowPositions=new Es(this.rootEl,this.rowRefs.collect().map((e=>e.getCellEls()[0])),!1,!0),this.colPositions=new Es(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)}queryHit(e,t){let{colPositions:n,rowPositions:r}=this,i=n.leftToIndex(e),s=r.topToIndex(t);if(null!=s&&null!=i){let e=this.props.cells[s][i];return{dateProfile:this.props.dateProfile,dateSpan:Object.assign({range:this.getCellRange(s,i),allDay:!0},e.extraDateSpan),dayEl:this.getCellEl(s,i),rect:{left:n.lefts[i],right:n.rights[i],top:r.tops[s],bottom:r.bottoms[s]},layer:0}}return null}getCellEl(e,t){return this.rowRefs.currentMap[e].getCellEls()[t]}getCellRange(e,t){let n=this.props.cells[e][t].date,r=Dt(n,1);return{start:n,end:r}}}function Gl(e){return e.eventRange.def.allDay}class Zl extends Fs{constructor(){super(...arguments),this.forceDayIfListItem=!0}sliceRange(e,t){return t.sliceRange(e)}}class ql extends Cs{constructor(){super(...arguments),this.slicer=new Zl,this.tableRef=E()}render(){let{props:e,context:t}=this;return A(Ql,Object.assign({ref:this.tableRef},this.slicer.sliceProps(e,e.dateProfile,e.nextDayThreshold,t,e.dayTableModel),{dateProfile:e.dateProfile,cells:e.dayTableModel.cells,colGroupNode:e.colGroupNode,tableMinWidth:e.tableMinWidth,renderRowIntro:e.renderRowIntro,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.showWeekNumbers,expandRows:e.expandRows,headerAlignElRef:e.headerAlignElRef,clientWidth:e.clientWidth,clientHeight:e.clientHeight,forPrint:e.forPrint}))}}class Yl extends Cl{constructor(){super(...arguments),this.buildDayTableModel=$e($l),this.headerRef=E(),this.tableRef=E()}render(){let{options:e,dateProfileGenerator:t}=this.context,{props:n}=this,r=this.buildDayTableModel(n.dateProfile,t),i=e.dayHeaders&&A(js,{ref:this.headerRef,dateProfile:n.dateProfile,dates:r.headerDates,datesRepDistinctDays:1===r.rowCnt}),s=t=>A(ql,{ref:this.tableRef,dateProfile:n.dateProfile,dayTableModel:r,businessHours:n.businessHours,dateSelection:n.dateSelection,eventStore:n.eventStore,eventUiBases:n.eventUiBases,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,nextDayThreshold:e.nextDayThreshold,colGroupNode:t.tableColGroupNode,tableMinWidth:t.tableMinWidth,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.weekNumbers,expandRows:!n.isHeightAuto,headerAlignElRef:this.headerElRef,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:n.forPrint});return e.dayMinWidth?this.renderHScrollLayout(i,s,r.colCnt,e.dayMinWidth):this.renderSimpleLayout(i,s)}}function $l(e,t){let n=new Us(e.renderRange,t);return new Vs(n,/year|month|week/.test(e.currentRangeUnit))}class Jl extends kr{buildRenderRange(e,t,n){let r,{dateEnv:i}=this.props,s=super.buildRenderRange(e,t,n),o=s.start,a=s.end;if(/^(year|month)$/.test(t)&&(o=i.startOfWeek(o),r=i.startOfWeek(a),r.valueOf()!==a.valueOf()&&(a=wt(r,1))),this.props.monthMode&&this.props.fixedWeekCount){let e=Math.ceil(Rt(o,a));a=wt(a,6-e)}return{start:o,end:a}}}var Xl=':root{--fc-daygrid-event-dot-width:8px}.fc-daygrid-day-events:after,.fc-daygrid-day-events:before,.fc-daygrid-day-frame:after,.fc-daygrid-day-frame:before,.fc-daygrid-event-harness:after,.fc-daygrid-event-harness:before{clear:both;content:"";display:table}.fc .fc-daygrid-body{position:relative;z-index:1}.fc .fc-daygrid-day.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-daygrid-day-frame{min-height:100%;position:relative}.fc .fc-daygrid-day-top{display:flex;flex-direction:row-reverse}.fc .fc-day-other .fc-daygrid-day-top{opacity:.3}.fc .fc-daygrid-day-number{padding:4px;position:relative;z-index:4}.fc .fc-daygrid-day-events{margin-top:1px}.fc .fc-daygrid-body-balanced .fc-daygrid-day-events{left:0;position:absolute;right:0}.fc .fc-daygrid-body-unbalanced .fc-daygrid-day-events{min-height:2em;position:relative}.fc .fc-daygrid-body-natural .fc-daygrid-day-events{margin-bottom:1em}.fc .fc-daygrid-event-harness{position:relative}.fc .fc-daygrid-event-harness-abs{left:0;position:absolute;right:0;top:0}.fc .fc-daygrid-bg-harness{bottom:0;position:absolute;top:0}.fc .fc-daygrid-day-bg .fc-non-business{z-index:1}.fc .fc-daygrid-day-bg .fc-bg-event{z-index:2}.fc .fc-daygrid-day-bg .fc-highlight{z-index:3}.fc .fc-daygrid-event{margin-top:1px;z-index:6}.fc .fc-daygrid-event.fc-event-mirror{z-index:7}.fc .fc-daygrid-day-bottom{font-size:.85em;padding:2px 3px 0}.fc .fc-daygrid-day-bottom:before{clear:both;content:"";display:table}.fc .fc-daygrid-more-link{cursor:pointer;position:relative;z-index:4}.fc .fc-daygrid-week-number{background-color:var(--fc-neutral-bg-color);color:var(--fc-neutral-text-color);min-width:1.5em;padding:2px;position:absolute;text-align:center;top:0;z-index:5}.fc .fc-more-popover .fc-popover-body{min-width:220px;padding:10px}.fc-direction-ltr .fc-daygrid-event.fc-event-start,.fc-direction-rtl .fc-daygrid-event.fc-event-end{margin-left:2px}.fc-direction-ltr .fc-daygrid-event.fc-event-end,.fc-direction-rtl .fc-daygrid-event.fc-event-start{margin-right:2px}.fc-direction-ltr .fc-daygrid-week-number{border-radius:0 0 3px 0;left:0}.fc-direction-rtl .fc-daygrid-week-number{border-radius:0 0 0 3px;right:0}.fc-liquid-hack .fc-daygrid-day-frame{position:static}.fc-daygrid-event{border-radius:3px;font-size:var(--fc-small-font-size);position:relative;white-space:nowrap}.fc-daygrid-block-event .fc-event-time{font-weight:700}.fc-daygrid-block-event .fc-event-time,.fc-daygrid-block-event .fc-event-title{padding:1px}.fc-daygrid-dot-event{align-items:center;display:flex;padding:2px 0}.fc-daygrid-dot-event .fc-event-title{flex-grow:1;flex-shrink:1;font-weight:700;min-width:0;overflow:hidden}.fc-daygrid-dot-event.fc-event-mirror,.fc-daygrid-dot-event:hover{background:rgba(0,0,0,.1)}.fc-daygrid-dot-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-daygrid-event-dot{border:calc(var(--fc-daygrid-event-dot-width)/2) solid var(--fc-event-border-color);border-radius:calc(var(--fc-daygrid-event-dot-width)/2);box-sizing:content-box;height:0;margin:0 4px;width:0}.fc-direction-ltr .fc-daygrid-event .fc-event-time{margin-right:3px}.fc-direction-rtl .fc-daygrid-event .fc-event-time{margin-left:3px}';Ne(Xl);var Kl=Wo({name:"@fullcalendar/daygrid",initialView:"dayGridMonth",views:{dayGrid:{component:Yl,dateProfileGeneratorClass:Jl},dayGridDay:{type:"dayGrid",duration:{days:1}},dayGridWeek:{type:"dayGrid",duration:{weeks:1}},dayGridMonth:{type:"dayGrid",duration:{months:1},monthMode:!0,fixedWeekCount:!0}}}),ec={emits:["open-detail"],components:{VFullCalendar:El},props:{events:{required:!0},month:{required:!0}},computed:{calendarOptions(){return{plugins:[Kl],initialView:"dayGridMonth",headerToolbar:!1,locale:"sk",height:650,firstDay:1,dayHeaderClassNames:["w-day-header"],events:this.events,eventContent:e=>({html:e.event.extendedProps.title_html}),eventClick:e=>this.$emit("open-detail",e.event._def.publicId)}}},mounted(){const e=(new Date).getFullYear(),t="string"==typeof this.month?parseInt(this.month)-1:this.month-1;this.calendarOptions.events=this.events,this.$refs.fullCalendar?.getApi().gotoDate(new Date(e,t,1))},watch:{month(e){const t=(new Date).getFullYear();this.$refs.fullCalendar?.getApi().gotoDate(new Date(t,e,1))}}},tc=n(40089);const nc=(0,tc.Z)(ec,[["render",a],["__scopeId","data-v-2e121bf3"]]);var rc=nc,ic=n(60988),sc=n(16824),oc=n(10240),ac=n(86193),lc=n(49114),cc=n(13173),dc=n(16791),uc=n(84870),fc=n(8717),hc=n(44870),pc=n(80320),gc=n(17514),mc=n(89888),vc=n(131);const bc=(0,pc.a)({name:"VSwitch",inheritAttrs:!1,props:{indeterminate:Boolean,inset:Boolean,flat:Boolean,loading:{type:[Boolean,String],default:!1},...(0,lc.co)(),...(0,ac.$9)()},emits:{"update:focused":e=>!0,"update:modelValue":()=>!0,"update:indeterminate":e=>!0},setup(e,t){let{attrs:n,slots:i}=t;const s=(0,fc.z)(e,"indeterminate"),o=(0,fc.z)(e,"modelValue"),{loaderClasses:a}=(0,dc.U2)(e),{isFocused:l,focus:c,blur:d}=(0,uc.K)(e),u=(0,r.Fl)((()=>"string"===typeof e.loading&&""!==e.loading?e.loading:e.color)),f=(0,gc.sq)(),h=(0,r.Fl)((()=>e.id||`switch-${f}`));function p(){s.value&&(s.value=!1)}return(0,mc.L)((()=>{const[t,f]=(0,vc.An)(n),[g,m]=(0,lc.PE)(e),[v,b]=(0,ac.fU)(e),y=(0,hc.iH)();function A(){var e,t;null==(e=y.value)||null==(t=e.input)||t.click()}return(0,r.Wm)(lc.q8,(0,r.dG)({class:["v-switch",{"v-switch--inset":e.inset},{"v-switch--indeterminate":s.value},a.value]},t,g,{id:h.value,focused:l.value}),{...i,default:t=>{let{id:n,isDisabled:a,isReadonly:l,isValid:h}=t;return(0,r.Wm)(ac.g5,(0,r.dG)({ref:y},v,{modelValue:o.value,"onUpdate:modelValue":[e=>o.value=e,p],id:n.value,type:"checkbox","aria-checked":s.value?"mixed":void 0,disabled:a.value,readonly:l.value,onFocus:c,onBlur:d},f),{...i,default:()=>(0,r.Wm)("div",{class:"v-switch__track",onClick:A},null),input:t=>{let{textColorClasses:n,textColorStyles:s}=t;return(0,r.Wm)("div",{class:["v-switch__thumb",n.value],style:s.value},[e.loading&&(0,r.Wm)(dc.rD,{name:"v-switch",active:!0,color:!1===h.value?void 0:u.value},{default:e=>i.loader?i.loader(e):(0,r.Wm)(cc.L,{active:e.isActive,color:e.color,indeterminate:!0,size:"16",width:"2"},null)})])}})}})})),{}}}),yc=e=>((0,r.dD)("data-v-d903f508"),e=e(),(0,r.Cn)(),e),Ac={class:"subheader-input switch"},_c=yc((()=>(0,r._)("p",{class:"switch-label"},"Zobraziť ukončené",-1)));function Ec(e,t,n,i,s,o){return(0,r.wg)(),(0,r.j4)(sc.o,{class:"px-10 py-8 subheader"},{default:(0,r.w5)((()=>[(0,r.Wm)(ic.f,{"custom-filter":e.customFilter,"match-any":!0,modelValue:s.filter.projectId,"onUpdate:modelValue":t[0]||(t[0]=e=>s.filter.projectId=e),class:"subheader-input","no-data-text":"reset",items:[{id:null,code:""},...o.projectsOptions],"item-title":"code","item-value":"id",label:"Projekt",variant:"outlined","onUpdate:search":t[1]||(t[1]=e=>s.projectCodeSearch=e)},null,8,["custom-filter","modelValue","items"]),(0,r.Wm)(ic.f,{"custom-filter":e.customFilter,"match-any":!0,modelValue:s.filter.teamId,"onUpdate:modelValue":t[2]||(t[2]=e=>s.filter.teamId=e),class:"subheader-input",items:[{id:null,name:""},...e.teams],"item-title":"name","item-value":"id",label:"Tím",variant:"outlined"},null,8,["custom-filter","modelValue","items"]),(0,r.Wm)(ic.f,{"custom-filter":e.customFilter,"match-any":!0,modelValue:s.filter.employeeId,"onUpdate:modelValue":t[3]||(t[3]=e=>s.filter.employeeId=e),class:"subheader-input",items:[{id:null,_fullName:""},...e.enrichedEmployees],"item-title":"_fullName","item-value":"id",label:"Zamestnanec",variant:"outlined"},null,8,["custom-filter","modelValue","items"]),(0,r.Wm)(ic.f,{"custom-filter":e.customFilter,"match-any":!0,modelValue:s.filter.createdById,"onUpdate:modelValue":t[4]||(t[4]=e=>s.filter.createdById=e),class:"subheader-input",items:[{id:null,_fullName:""},...e.enrichedEmployees],label:"Vytvoril",variant:"outlined","item-title":"_fullName","item-value":"id"},null,8,["custom-filter","modelValue","items"]),(0,r.Wm)(oc.r,{modelValue:s.filter.month,"onUpdate:modelValue":t[5]||(t[5]=e=>s.filter.month=e),class:"subheader-input",items:s.months,label:"Mesiac",variant:"outlined"},null,8,["modelValue","items"]),(0,r._)("div",Ac,[_c,(0,r.Wm)(bc,{modelValue:s.filter.isFinished,"onUpdate:modelValue":t[6]||(t[6]=e=>s.filter.isFinished=e),color:"#6200EE","hide-details":""},null,8,["modelValue"])])])),_:1})}var Cc=n(83299),wc=n(20065),Dc={mixins:[Cc.Z],emits:["filterChanged"],data(){return{months:[{title:"Január",value:"01"},{title:"Február",value:"02"},{title:"Marec",value:"03"},{title:"Apríl",value:"04"},{title:"Máj",value:"05"},{title:"Jún",value:"06"},{title:"Júl",value:"07"},{title:"August",value:"08"},{title:"September",value:"09"},{title:"Október",value:"10"},{title:"November",value:"11"},{title:"December",value:"12"}],projectCodeSearch:null,filter:{projectId:null,teamId:null,employeeId:null,createdById:null,month:null,isFinished:!1}}},mounted(){const e=(new Date).getMonth();this.filter.month=e<9?`0${e+1}`:`${e+1}`;const t=localStorage.getItem("savedTeamMT"),n=localStorage.getItem("savedCreatedBy"),r=localStorage.getItem("savedEmployee");t&&(this.filter.teamId=JSON.parse(t)),n&&(this.filter.createdById=JSON.parse(n)),r&&(this.filter.employeeId=JSON.parse(r))},computed:{...(0,wc.Se)("tm",["teams","projects","enrichedEmployees"]),projectsOptions(){const e=/[^a-zA-Z0-9 ]/g,t=this.projectCodeSearch?this.projectCodeSearch.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(e,""):"",n=this.projects.filter((n=>{const r=n.code.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(e,"");return r.toLowerCase().includes(t.toLowerCase())}));return n?.length?n.slice(0,10):this.projects.slice(0,10)}},watch:{filter:{handler(){this.$emit("filterChanged",this.filter),localStorage.setItem("savedTeamMT",this.filter.teamId),localStorage.setItem("savedCreatedBy",this.filter.createdById),localStorage.setItem("savedEmployee",this.filter.employeeId)},deep:!0}}};const Sc=(0,tc.Z)(Dc,[["render",Ec],["__scopeId","data-v-d903f508"]]);var Rc=Sc,kc=n(70026),Tc={mixins:[kc.Z],components:{AProjectCalendar:rc,AProjectFilter:Rc},data(){return{mastertasks:null,filter:null}},computed:{filteredProjects(){return this.mastertasks?this.mastertasks.map((e=>({id:e.id,title:`${e.project_code} - ${e.name}`,title_html:`${e.project_code} - ${e.name}`,start:new Date(e.starts_at),end:new Date(e.deadline),is_finished:e.is_finished,project_code:e.project_code,backgroundColor:`${e.color}`,borderColor:e.color}))):null}},mounted(){this.$events.on("on-mastertask-edited",(()=>this.onFilterChanged(this.filter))),this.$events.on("on-mastertask-deleted",(()=>this.onFilterChanged(this.filter)))},unmounted(){this.$events.off("on-mastertask-edited"),this.$events.off("on-mastertask-deleted")},methods:{async onFilterChanged(e){this.mastertasks=null,this.filter=e;const t={};e.employeeId&&(t.employee_id=e.employeeId),e.projectId&&(t.project_id=e.projectId),e.teamId&&(t.team_id=e.teamId),e.createdById&&(t.created_by=e.createdById),e.isFinished&&(t.is_finished=e.isFinished?1:0),e.month&&(t.created_at=e.month);const n=new URLSearchParams(t).toString();try{const{mastertasks:e}=await this.$axios.get_auth(`v1/mastertasks?${n}`);this.mastertasks=e}catch(r){this.$toast.error("Nepodarilo sa nacitat data!")}this._initScrollListener()},openMasterTaskModal(e){const t=this.mastertasks.find((t=>t.id==e));this.$events.emit("show-mastertask-modal",{mastertask:t,editMode:!1})}}};const xc=(0,tc.Z)(Tc,[["render",s],["__scopeId","data-v-322213a1"]]);var Oc=xc}}]); +//# sourceMappingURL=6811.83d9b8d2.js.map \ No newline at end of file diff --git a/app/dist/js/6811.83d9b8d2.js.map b/app/dist/js/6811.83d9b8d2.js.map new file mode 100644 index 0000000..c315f18 --- /dev/null +++ b/app/dist/js/6811.83d9b8d2.js.map @@ -0,0 +1 @@ +{"version":3,"file":"js/6811.83d9b8d2.js","mappings":"yGAAA,QACCA,OACC,MAAO,CACNC,OAAQ,CACPC,aAAa,EACbC,UAAW,EACXC,gCAAiC,EACjCC,WAAW,GAGd,EAEAC,YACCC,KAAKC,MAAMC,MAAMC,cAAc,gBAAgBC,oBAAoB,SAAUJ,KAAKK,aACnF,EAEAC,QAAS,CACRC,oBAAoBC,EAAS,GAC5B,GAAIR,KAAKL,YAAa,OAEtB,MAAMc,EAAWT,KAAKC,MAAMC,MAAMC,cAAc,eAEhD,IAAKM,EACJ,OAAOC,YAAW,KACbF,EAAS,IAAIR,KAAKO,oBAAoBC,EAAS,EAAE,GACnD,KAEJC,EAASE,iBAAiB,SAAUX,KAAKY,eACzCZ,KAAKL,aAAc,EACnBK,KAAKN,OAAOG,gCAAkCY,EAASI,SAIxD,EAEAD,cAAcE,GACb,MAAMpB,EAASqB,SAASZ,cAAc,iBAGjCH,KAAKL,aAKNK,KAAKN,OAAOG,gCAAkCiB,EAAEE,OAAOH,UAErDb,KAAKN,OAAOI,WAChBE,KAAKiB,cAEIvB,EAAOwB,aAAeC,KAAKC,IAAIN,EAAEE,OAAOH,WAE9Cb,KAAKN,OAAOI,WACfE,KAAKqB,cASPrB,KAAKN,OAAOG,gCAAkCiB,EAAEE,OAAOH,WArBtDb,KAAKN,OAAOG,gCAAkCiB,EAAEE,OAAOH,SAsBzD,EAEAQ,aACC,MAAM3B,EAASqB,SAASZ,cAAc,iBAEtCT,EAAO4B,MAAMC,WAAa,kBAC1B7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E,YACzD/wE,EAAOywE,YAAY0C,EAAeE,WAAcrzE,EAAOywE,WACvDzwE,EAAO8wE,SAAUqC,EAAeG,QAAYtzE,EAAO8wE,QACnD9wE,EAAOixE,cAAakC,EAAeI,WAAcvzE,EAAOixE,aACxDjxE,EAAOqxE,aAAa8B,EAAeH,YAAehzE,EAAOqxE,WAAa,EAAI,GAC1ErxE,EAAO9N,QAAUihF,EAAeK,WAAcxzE,EAAO9N,OAEzD,MAAMuhF,EAAkB,IAAInnC,gBAAgB6mC,GAAgBO,WAE5D,IACC,MAAM,YAAEf,SAAsBjjF,KAAKikF,OAAOC,SAAU,kBAAiBH,KACrE/jF,KAAKijF,YAAcA,CAGpB,CAFE,MAAO30E,GACRtO,KAAKmkF,OAAO71E,MAAM,8BACnB,CAEAtO,KAAKO,qBACN,EAEA6jF,oBAAoBC,GACnB,MAAMC,EAAatkF,KAAKijF,YAAYsB,MAAKD,GAAcA,EAAW3hF,IAAM0hF,IACxErkF,KAAKujF,QAAQiB,KAAK,wBAAyB,CAACF,aAAYG,UAAU,GACnE,IgCxHF,MAAM,IAA2B,QAAgB,GAAQ,CAAC,CAAC,SAASr5E,GAAQ,CAAC,YAAY,qBAEzF,S","sources":["webpack://jandl/./src/plugins/tm@dashboard/_mixins/Filter.mixin.ts","webpack://jandl/./src/plugins/tm@dashboard/projects/projects.vue","webpack://jandl/./src/plugins/tm@dashboard/projects/_components/a-project-calendar.vue","webpack://jandl/../src/util.js","webpack://jandl/../src/options.js","webpack://jandl/../src/create-element.js","webpack://jandl/../src/component.js","webpack://jandl/../src/create-context.js","webpack://jandl/../src/constants.js","webpack://jandl/../src/diff/children.js","webpack://jandl/../src/diff/props.js","webpack://jandl/../src/diff/index.js","webpack://jandl/../src/render.js","webpack://jandl/../src/diff/catch-error.js","webpack://jandl/../src/index.js","webpack://jandl/../src/PureComponent.js","webpack://jandl/../src/forwardRef.js","webpack://jandl/../src/Children.js","webpack://jandl/../src/suspense.js","webpack://jandl/../src/suspense-list.js","webpack://jandl/../src/portals.js","webpack://jandl/./node_modules/@fullcalendar/core/internal-common.js","webpack://jandl/./node_modules/@fullcalendar/core/index.js","webpack://jandl/../src/options.ts","webpack://jandl/../src/utils.ts","webpack://jandl/../src/FullCalendar.ts","webpack://jandl/../src/index.ts","webpack://jandl/./node_modules/@fullcalendar/daygrid/internal.js","webpack://jandl/./node_modules/@fullcalendar/daygrid/index.js","webpack://jandl/./src/plugins/tm@dashboard/projects/_components/a-project-calendar.vue?f4c6","webpack://jandl/../../../src/components/VSwitch/VSwitch.tsx","webpack://jandl/./src/plugins/tm@dashboard/projects/_components/a-project-filter.vue","webpack://jandl/./src/plugins/tm@dashboard/projects/_components/a-project-filter.vue?a928","webpack://jandl/./src/plugins/tm@dashboard/projects/projects.vue?185c"],"sourcesContent":["export default {\n\tdata() {\n\t\treturn {\n\t\t\theader: {\n\t\t\t\tinitialized: false,\n\t\t\t\tmarginTop: 0,\n\t\t\t\tcalendar_previousScrollPosition: 0,\n\t\t\t\tisVisible: true\n\t\t\t}\n\t\t}\n\t},\n\n\tunmounted() {\n\t\tthis.$refs.page?.querySelector('.vuecal__bg')?.removeEventListener('scroll', this.handleScroll)\n\t},\n\n\tmethods: {\n\t\t_initScrollListener(repeat = 0) {\n\t\t\tif (this.initialized) return\n\n\t\t\tconst calendar = this.$refs.page?.querySelector('.vuecal__bg')\n\n\t\t\tif (!calendar)\n\t\t\t\treturn setTimeout(() => {\n\t\t\t\t\tif (repeat < 20) this._initScrollListener(repeat + 1)\n\t\t\t\t}, 200)\n\n\t\t\tcalendar.addEventListener('scroll', this._handleScroll)\n\t\t\tthis.initialized = true\n\t\t\tthis.header.calendar_previousScrollPosition = calendar.scrollTop\n\t\t\t// if (calendar.scrollTop > 0 && this.header.isVisible) {\n\t\t\t// \tthis.hideHeader()\n\t\t\t// }\n\t\t},\n\n\t\t_handleScroll(e) {\n\t\t\tconst header = document.querySelector('div.subheader') as HTMLElement\n\n\t\t\t// Check if the header is initialized\n\t\t\tif (!this.initialized) {\n\t\t\t\tthis.header.calendar_previousScrollPosition = e.target.scrollTop\n\t\t\t\treturn\n\t\t\t}\n\n\t\t\tif (this.header.calendar_previousScrollPosition > e.target.scrollTop) {\n\t\t\t\t// On the way up\n\t\t\t\tif (!this.header.isVisible) {\n\t\t\t\t\tthis.showHeader()\n\t\t\t\t}\n\t\t\t} else if (header.offsetHeight > Math.abs(e.target.scrollTop)) {\n\t\t\t\t// On the way down\n\t\t\t\tif (this.header.isVisible) {\n\t\t\t\t\tthis.hideHeader()\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// On the way down below filter height\n\t\t\t\tif (this.header.isVisible) {\n\t\t\t\t\tthis.hideHeader()\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tthis.header.calendar_previousScrollPosition = e.target.scrollTop\n\t\t},\n\n\t\thideHeader() {\n\t\t\tconst header = document.querySelector('div.subheader') as HTMLElement\n\n\t\t\theader.style.transition = 'margin-top 0.5s'\n\t\t\theader.style.marginTop = `-${header.offsetHeight}px`\n\t\t\tthis.header.isVisible = false\n\n\t\t\tsetTimeout(() => {\n\t\t\t\theader.style.transition = ''\n\t\t\t}, 500)\n\t\t},\n\n\t\tshowHeader() {\n\t\t\tconst header = document.querySelector('div.subheader') as HTMLElement\n\n\t\t\theader.style.transition = 'margin-top 0.5s'\n\t\t\theader.style.marginTop = '0'\n\t\t\tthis.header.isVisible = true\n\n\t\t\tsetTimeout(() => {\n\t\t\t\theader.style.transition = ''\n\t\t\t}, 500)\n\t\t},\n\t}\n}\n","\n\n\n\n","\n\n\n\n","import { EMPTY_ARR } from \"./constants\";\n\n/**\n * Assign properties from `props` to `obj`\n * @template O, P The obj and props types\n * @param {O} obj The object to copy properties to\n * @param {P} props The object to copy properties from\n * @returns {O & P}\n */\nexport function assign(obj, props) {\n\t// @ts-ignore We change the type of `obj` to be `O & P`\n\tfor (let i in props) obj[i] = props[i];\n\treturn /** @type {O & P} */ (obj);\n}\n\n/**\n * Remove a child node from its parent if attached. This is a workaround for\n * IE11 which doesn't support `Element.prototype.remove()`. Using this function\n * is smaller than including a dedicated polyfill.\n * @param {Node} node The node to remove\n */\nexport function removeNode(node) {\n\tlet parentNode = node.parentNode;\n\tif (parentNode) parentNode.removeChild(node);\n}\n\nexport const slice = EMPTY_ARR.slice;\n","import { _catchError } from './diff/catch-error';\n\n/**\n * The `option` object can potentially contain callback functions\n * that are called during various stages of our renderer. This is the\n * foundation on which all our addons like `preact/debug`, `preact/compat`,\n * and `preact/hooks` are based on. See the `Options` type in `internal.d.ts`\n * for a full list of available option hooks (most editors/IDEs allow you to\n * ctrl+click or cmd+click on mac the type definition below).\n * @type {import('./internal').Options}\n */\nconst options = {\n\t_catchError\n};\n\nexport default options;\n","import { slice } from './util';\nimport options from './options';\n\nlet vnodeId = 0;\n\n/**\n * Create an virtual node (used for JSX)\n * @param {import('./internal').VNode[\"type\"]} type The node name or Component\n * constructor for this virtual node\n * @param {object | null | undefined} [props] The properties of the virtual node\n * @param {Array} [children] The children of the virtual node\n * @returns {import('./internal').VNode}\n */\nexport function createElement(type, props, children) {\n\tlet normalizedProps = {},\n\t\tkey,\n\t\tref,\n\t\ti;\n\tfor (i in props) {\n\t\tif (i == 'key') key = props[i];\n\t\telse if (i == 'ref') ref = props[i];\n\t\telse normalizedProps[i] = props[i];\n\t}\n\n\tif (arguments.length > 2) {\n\t\tnormalizedProps.children =\n\t\t\targuments.length > 3 ? slice.call(arguments, 2) : children;\n\t}\n\n\t// If a Component VNode, check for and apply defaultProps\n\t// Note: type may be undefined in development, must never error here.\n\tif (typeof type == 'function' && type.defaultProps != null) {\n\t\tfor (i in type.defaultProps) {\n\t\t\tif (normalizedProps[i] === undefined) {\n\t\t\t\tnormalizedProps[i] = type.defaultProps[i];\n\t\t\t}\n\t\t}\n\t}\n\n\treturn createVNode(type, normalizedProps, key, ref, null);\n}\n\n/**\n * Create a VNode (used internally by Preact)\n * @param {import('./internal').VNode[\"type\"]} type The node name or Component\n * Constructor for this virtual node\n * @param {object | string | number | null} props The properties of this virtual node.\n * If this virtual node represents a text node, this is the text of the node (string or number).\n * @param {string | number | null} key The key for this virtual node, used when\n * diffing it against its children\n * @param {import('./internal').VNode[\"ref\"]} ref The ref property that will\n * receive a reference to its created child\n * @returns {import('./internal').VNode}\n */\nexport function createVNode(type, props, key, ref, original) {\n\t// V8 seems to be better at detecting type shapes if the object is allocated from the same call site\n\t// Do not inline into createElement and coerceToVNode!\n\tconst vnode = {\n\t\ttype,\n\t\tprops,\n\t\tkey,\n\t\tref,\n\t\t_children: null,\n\t\t_parent: null,\n\t\t_depth: 0,\n\t\t_dom: null,\n\t\t// _nextDom must be initialized to undefined b/c it will eventually\n\t\t// be set to dom.nextSibling which can return `null` and it is important\n\t\t// to be able to distinguish between an uninitialized _nextDom and\n\t\t// a _nextDom that has been set to `null`\n\t\t_nextDom: undefined,\n\t\t_component: null,\n\t\t_hydrating: null,\n\t\tconstructor: undefined,\n\t\t_original: original == null ? ++vnodeId : original\n\t};\n\n\t// Only invoke the vnode hook if this was *not* a direct copy:\n\tif (original == null && options.vnode != null) options.vnode(vnode);\n\n\treturn vnode;\n}\n\nexport function createRef() {\n\treturn { current: null };\n}\n\nexport function Fragment(props) {\n\treturn props.children;\n}\n\n/**\n * Check if a the argument is a valid Preact VNode.\n * @param {*} vnode\n * @returns {vnode is import('./internal').VNode}\n */\nexport const isValidElement = vnode =>\n\tvnode != null && vnode.constructor === undefined;\n","import { assign } from './util';\nimport { diff, commitRoot } from './diff/index';\nimport options from './options';\nimport { Fragment } from './create-element';\n\n/**\n * Base Component class. Provides `setState()` and `forceUpdate()`, which\n * trigger rendering\n * @param {object} props The initial component props\n * @param {object} context The initial context from parent components'\n * getChildContext\n */\nexport function Component(props, context) {\n\tthis.props = props;\n\tthis.context = context;\n}\n\n/**\n * Update component state and schedule a re-render.\n * @this {import('./internal').Component}\n * @param {object | ((s: object, p: object) => object)} update A hash of state\n * properties to update with new values or a function that given the current\n * state and props returns a new partial state\n * @param {() => void} [callback] A function to be called once component state is\n * updated\n */\nComponent.prototype.setState = function(update, callback) {\n\t// only clone state when copying to nextState the first time.\n\tlet s;\n\tif (this._nextState != null && this._nextState !== this.state) {\n\t\ts = this._nextState;\n\t} else {\n\t\ts = this._nextState = assign({}, this.state);\n\t}\n\n\tif (typeof update == 'function') {\n\t\t// Some libraries like `immer` mark the current state as readonly,\n\t\t// preventing us from mutating it, so we need to clone it. See #2716\n\t\tupdate = update(assign({}, s), this.props);\n\t}\n\n\tif (update) {\n\t\tassign(s, update);\n\t}\n\n\t// Skip update if updater function returned null\n\tif (update == null) return;\n\n\tif (this._vnode) {\n\t\tif (callback) {\n\t\t\tthis._stateCallbacks.push(callback);\n\t\t}\n\t\tenqueueRender(this);\n\t}\n};\n\n/**\n * Immediately perform a synchronous re-render of the component\n * @this {import('./internal').Component}\n * @param {() => void} [callback] A function to be called after component is\n * re-rendered\n */\nComponent.prototype.forceUpdate = function(callback) {\n\tif (this._vnode) {\n\t\t// Set render mode so that we can differentiate where the render request\n\t\t// is coming from. We need this because forceUpdate should never call\n\t\t// shouldComponentUpdate\n\t\tthis._force = true;\n\t\tif (callback) this._renderCallbacks.push(callback);\n\t\tenqueueRender(this);\n\t}\n};\n\n/**\n * Accepts `props` and `state`, and returns a new Virtual DOM tree to build.\n * Virtual DOM is generally constructed via [JSX](http://jasonformat.com/wtf-is-jsx).\n * @param {object} props Props (eg: JSX attributes) received from parent\n * element/component\n * @param {object} state The component's current state\n * @param {object} context Context object, as returned by the nearest\n * ancestor's `getChildContext()`\n * @returns {import('./index').ComponentChildren | void}\n */\nComponent.prototype.render = Fragment;\n\n/**\n * @param {import('./internal').VNode} vnode\n * @param {number | null} [childIndex]\n */\nexport function getDomSibling(vnode, childIndex) {\n\tif (childIndex == null) {\n\t\t// Use childIndex==null as a signal to resume the search from the vnode's sibling\n\t\treturn vnode._parent\n\t\t\t? getDomSibling(vnode._parent, vnode._parent._children.indexOf(vnode) + 1)\n\t\t\t: null;\n\t}\n\n\tlet sibling;\n\tfor (; childIndex < vnode._children.length; childIndex++) {\n\t\tsibling = vnode._children[childIndex];\n\n\t\tif (sibling != null && sibling._dom != null) {\n\t\t\t// Since updateParentDomPointers keeps _dom pointer correct,\n\t\t\t// we can rely on _dom to tell us if this subtree contains a\n\t\t\t// rendered DOM node, and what the first rendered DOM node is\n\t\t\treturn sibling._dom;\n\t\t}\n\t}\n\n\t// If we get here, we have not found a DOM node in this vnode's children.\n\t// We must resume from this vnode's sibling (in it's parent _children array)\n\t// Only climb up and search the parent if we aren't searching through a DOM\n\t// VNode (meaning we reached the DOM parent of the original vnode that began\n\t// the search)\n\treturn typeof vnode.type == 'function' ? getDomSibling(vnode) : null;\n}\n\n/**\n * Trigger in-place re-rendering of a component.\n * @param {import('./internal').Component} component The component to rerender\n */\nfunction renderComponent(component) {\n\tlet vnode = component._vnode,\n\t\toldDom = vnode._dom,\n\t\tparentDom = component._parentDom;\n\n\tif (parentDom) {\n\t\tlet commitQueue = [];\n\t\tconst oldVNode = assign({}, vnode);\n\t\toldVNode._original = vnode._original + 1;\n\n\t\tdiff(\n\t\t\tparentDom,\n\t\t\tvnode,\n\t\t\toldVNode,\n\t\t\tcomponent._globalContext,\n\t\t\tparentDom.ownerSVGElement !== undefined,\n\t\t\tvnode._hydrating != null ? [oldDom] : null,\n\t\t\tcommitQueue,\n\t\t\toldDom == null ? getDomSibling(vnode) : oldDom,\n\t\t\tvnode._hydrating\n\t\t);\n\t\tcommitRoot(commitQueue, vnode);\n\n\t\tif (vnode._dom != oldDom) {\n\t\t\tupdateParentDomPointers(vnode);\n\t\t}\n\t}\n}\n\n/**\n * @param {import('./internal').VNode} vnode\n */\nfunction updateParentDomPointers(vnode) {\n\tif ((vnode = vnode._parent) != null && vnode._component != null) {\n\t\tvnode._dom = vnode._component.base = null;\n\t\tfor (let i = 0; i < vnode._children.length; i++) {\n\t\t\tlet child = vnode._children[i];\n\t\t\tif (child != null && child._dom != null) {\n\t\t\t\tvnode._dom = vnode._component.base = child._dom;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\treturn updateParentDomPointers(vnode);\n\t}\n}\n\n/**\n * The render queue\n * @type {Array}\n */\nlet rerenderQueue = [];\n\n/*\n * The value of `Component.debounce` must asynchronously invoke the passed in callback. It is\n * important that contributors to Preact can consistently reason about what calls to `setState`, etc.\n * do, and when their effects will be applied. See the links below for some further reading on designing\n * asynchronous APIs.\n * * [Designing APIs for Asynchrony](https://blog.izs.me/2013/08/designing-apis-for-asynchrony)\n * * [Callbacks synchronous and asynchronous](https://blog.ometer.com/2011/07/24/callbacks-synchronous-and-asynchronous/)\n */\n\nlet prevDebounce;\n\n/**\n * Enqueue a rerender of a component\n * @param {import('./internal').Component} c The component to rerender\n */\nexport function enqueueRender(c) {\n\tif (\n\t\t(!c._dirty &&\n\t\t\t(c._dirty = true) &&\n\t\t\trerenderQueue.push(c) &&\n\t\t\t!process._rerenderCount++) ||\n\t\tprevDebounce !== options.debounceRendering\n\t) {\n\t\tprevDebounce = options.debounceRendering;\n\t\t(prevDebounce || setTimeout)(process);\n\t}\n}\n\n/** Flush the render queue by rerendering all queued components */\nfunction process() {\n\tlet queue;\n\twhile ((process._rerenderCount = rerenderQueue.length)) {\n\t\tqueue = rerenderQueue.sort((a, b) => a._vnode._depth - b._vnode._depth);\n\t\trerenderQueue = [];\n\t\t// Don't update `renderCount` yet. Keep its value non-zero to prevent unnecessary\n\t\t// process() calls from getting scheduled while `queue` is still being consumed.\n\t\tqueue.some(c => {\n\t\t\tif (c._dirty) renderComponent(c);\n\t\t});\n\t}\n}\n\nprocess._rerenderCount = 0;\n","import { enqueueRender } from './component';\n\nexport let i = 0;\n\nexport function createContext(defaultValue, contextId) {\n\tcontextId = '__cC' + i++;\n\n\tconst context = {\n\t\t_id: contextId,\n\t\t_defaultValue: defaultValue,\n\t\t/** @type {import('./internal').FunctionComponent} */\n\t\tConsumer(props, contextValue) {\n\t\t\t// return props.children(\n\t\t\t// \tcontext[contextId] ? context[contextId].props.value : defaultValue\n\t\t\t// );\n\t\t\treturn props.children(contextValue);\n\t\t},\n\t\t/** @type {import('./internal').FunctionComponent} */\n\t\tProvider(props) {\n\t\t\tif (!this.getChildContext) {\n\t\t\t\tlet subs = [];\n\t\t\t\tlet ctx = {};\n\t\t\t\tctx[contextId] = this;\n\n\t\t\t\tthis.getChildContext = () => ctx;\n\n\t\t\t\tthis.shouldComponentUpdate = function(_props) {\n\t\t\t\t\tif (this.props.value !== _props.value) {\n\t\t\t\t\t\t// I think the forced value propagation here was only needed when `options.debounceRendering` was being bypassed:\n\t\t\t\t\t\t// https://github.com/preactjs/preact/commit/4d339fb803bea09e9f198abf38ca1bf8ea4b7771#diff-54682ce380935a717e41b8bfc54737f6R358\n\t\t\t\t\t\t// In those cases though, even with the value corrected, we're double-rendering all nodes.\n\t\t\t\t\t\t// It might be better to just tell folks not to use force-sync mode.\n\t\t\t\t\t\t// Currently, using `useContext()` in a class component will overwrite its `this.context` value.\n\t\t\t\t\t\t// subs.some(c => {\n\t\t\t\t\t\t// \tc.context = _props.value;\n\t\t\t\t\t\t// \tenqueueRender(c);\n\t\t\t\t\t\t// });\n\n\t\t\t\t\t\t// subs.some(c => {\n\t\t\t\t\t\t// \tc.context[contextId] = _props.value;\n\t\t\t\t\t\t// \tenqueueRender(c);\n\t\t\t\t\t\t// });\n\t\t\t\t\t\tsubs.some(enqueueRender);\n\t\t\t\t\t}\n\t\t\t\t};\n\n\t\t\t\tthis.sub = c => {\n\t\t\t\t\tsubs.push(c);\n\t\t\t\t\tlet old = c.componentWillUnmount;\n\t\t\t\t\tc.componentWillUnmount = () => {\n\t\t\t\t\t\tsubs.splice(subs.indexOf(c), 1);\n\t\t\t\t\t\tif (old) old.call(c);\n\t\t\t\t\t};\n\t\t\t\t};\n\t\t\t}\n\n\t\t\treturn props.children;\n\t\t}\n\t};\n\n\t// Devtools needs access to the context object when it\n\t// encounters a Provider. This is necessary to support\n\t// setting `displayName` on the context object instead\n\t// of on the component itself. See:\n\t// https://reactjs.org/docs/context.html#contextdisplayname\n\n\treturn (context.Provider._contextRef = context.Consumer.contextType = context);\n}\n","export const EMPTY_OBJ = {};\nexport const EMPTY_ARR = [];\nexport const IS_NON_DIMENSIONAL = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;\n","import { diff, unmount, applyRef } from './index';\nimport { createVNode, Fragment } from '../create-element';\nimport { EMPTY_OBJ, EMPTY_ARR } from '../constants';\nimport { getDomSibling } from '../component';\n\n/**\n * Diff the children of a virtual node\n * @param {import('../internal').PreactElement} parentDom The DOM element whose\n * children are being diffed\n * @param {import('../internal').ComponentChildren[]} renderResult\n * @param {import('../internal').VNode} newParentVNode The new virtual\n * node whose children should be diff'ed against oldParentVNode\n * @param {import('../internal').VNode} oldParentVNode The old virtual\n * node whose children should be diff'ed against newParentVNode\n * @param {object} globalContext The current context object - modified by getChildContext\n * @param {boolean} isSvg Whether or not this DOM node is an SVG node\n * @param {Array} excessDomChildren\n * @param {Array} commitQueue List of components\n * which have callbacks to invoke in commitRoot\n * @param {import('../internal').PreactElement} oldDom The current attached DOM\n * element any new dom elements should be placed around. Likely `null` on first\n * render (except when hydrating). Can be a sibling DOM element when diffing\n * Fragments that have siblings. In most cases, it starts out as `oldChildren[0]._dom`.\n * @param {boolean} isHydrating Whether or not we are in hydration\n */\nexport function diffChildren(\n\tparentDom,\n\trenderResult,\n\tnewParentVNode,\n\toldParentVNode,\n\tglobalContext,\n\tisSvg,\n\texcessDomChildren,\n\tcommitQueue,\n\toldDom,\n\tisHydrating\n) {\n\tlet i, j, oldVNode, childVNode, newDom, firstChildDom, refs;\n\n\t// This is a compression of oldParentVNode!=null && oldParentVNode != EMPTY_OBJ && oldParentVNode._children || EMPTY_ARR\n\t// as EMPTY_OBJ._children should be `undefined`.\n\tlet oldChildren = (oldParentVNode && oldParentVNode._children) || EMPTY_ARR;\n\n\tlet oldChildrenLength = oldChildren.length;\n\n\tnewParentVNode._children = [];\n\tfor (i = 0; i < renderResult.length; i++) {\n\t\tchildVNode = renderResult[i];\n\n\t\tif (childVNode == null || typeof childVNode == 'boolean') {\n\t\t\tchildVNode = newParentVNode._children[i] = null;\n\t\t}\n\t\t// If this newVNode is being reused (e.g.
{reuse}{reuse}
) in the same diff,\n\t\t// or we are rendering a component (e.g. setState) copy the oldVNodes so it can have\n\t\t// it's own DOM & etc. pointers\n\t\telse if (\n\t\t\ttypeof childVNode == 'string' ||\n\t\t\ttypeof childVNode == 'number' ||\n\t\t\t// eslint-disable-next-line valid-typeof\n\t\t\ttypeof childVNode == 'bigint'\n\t\t) {\n\t\t\tchildVNode = newParentVNode._children[i] = createVNode(\n\t\t\t\tnull,\n\t\t\t\tchildVNode,\n\t\t\t\tnull,\n\t\t\t\tnull,\n\t\t\t\tchildVNode\n\t\t\t);\n\t\t} else if (Array.isArray(childVNode)) {\n\t\t\tchildVNode = newParentVNode._children[i] = createVNode(\n\t\t\t\tFragment,\n\t\t\t\t{ children: childVNode },\n\t\t\t\tnull,\n\t\t\t\tnull,\n\t\t\t\tnull\n\t\t\t);\n\t\t} else if (childVNode._depth > 0) {\n\t\t\t// VNode is already in use, clone it. This can happen in the following\n\t\t\t// scenario:\n\t\t\t// const reuse =
\n\t\t\t//
{reuse}{reuse}
\n\t\t\tchildVNode = newParentVNode._children[i] = createVNode(\n\t\t\t\tchildVNode.type,\n\t\t\t\tchildVNode.props,\n\t\t\t\tchildVNode.key,\n\t\t\t\tchildVNode.ref ? childVNode.ref : null,\n\t\t\t\tchildVNode._original\n\t\t\t);\n\t\t} else {\n\t\t\tchildVNode = newParentVNode._children[i] = childVNode;\n\t\t}\n\n\t\t// Terser removes the `continue` here and wraps the loop body\n\t\t// in a `if (childVNode) { ... } condition\n\t\tif (childVNode == null) {\n\t\t\tcontinue;\n\t\t}\n\n\t\tchildVNode._parent = newParentVNode;\n\t\tchildVNode._depth = newParentVNode._depth + 1;\n\n\t\t// Check if we find a corresponding element in oldChildren.\n\t\t// If found, delete the array item by setting to `undefined`.\n\t\t// We use `undefined`, as `null` is reserved for empty placeholders\n\t\t// (holes).\n\t\toldVNode = oldChildren[i];\n\n\t\tif (\n\t\t\toldVNode === null ||\n\t\t\t(oldVNode &&\n\t\t\t\tchildVNode.key == oldVNode.key &&\n\t\t\t\tchildVNode.type === oldVNode.type)\n\t\t) {\n\t\t\toldChildren[i] = undefined;\n\t\t} else {\n\t\t\t// Either oldVNode === undefined or oldChildrenLength > 0,\n\t\t\t// so after this loop oldVNode == null or oldVNode is a valid value.\n\t\t\tfor (j = 0; j < oldChildrenLength; j++) {\n\t\t\t\toldVNode = oldChildren[j];\n\t\t\t\t// If childVNode is unkeyed, we only match similarly unkeyed nodes, otherwise we match by key.\n\t\t\t\t// We always match by type (in either case).\n\t\t\t\tif (\n\t\t\t\t\toldVNode &&\n\t\t\t\t\tchildVNode.key == oldVNode.key &&\n\t\t\t\t\tchildVNode.type === oldVNode.type\n\t\t\t\t) {\n\t\t\t\t\toldChildren[j] = undefined;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\toldVNode = null;\n\t\t\t}\n\t\t}\n\n\t\toldVNode = oldVNode || EMPTY_OBJ;\n\n\t\t// Morph the old element into the new one, but don't append it to the dom yet\n\t\tdiff(\n\t\t\tparentDom,\n\t\t\tchildVNode,\n\t\t\toldVNode,\n\t\t\tglobalContext,\n\t\t\tisSvg,\n\t\t\texcessDomChildren,\n\t\t\tcommitQueue,\n\t\t\toldDom,\n\t\t\tisHydrating\n\t\t);\n\n\t\tnewDom = childVNode._dom;\n\n\t\tif ((j = childVNode.ref) && oldVNode.ref != j) {\n\t\t\tif (!refs) refs = [];\n\t\t\tif (oldVNode.ref) refs.push(oldVNode.ref, null, childVNode);\n\t\t\trefs.push(j, childVNode._component || newDom, childVNode);\n\t\t}\n\n\t\tif (newDom != null) {\n\t\t\tif (firstChildDom == null) {\n\t\t\t\tfirstChildDom = newDom;\n\t\t\t}\n\n\t\t\tif (\n\t\t\t\ttypeof childVNode.type == 'function' &&\n\t\t\t\tchildVNode._children === oldVNode._children\n\t\t\t) {\n\t\t\t\tchildVNode._nextDom = oldDom = reorderChildren(\n\t\t\t\t\tchildVNode,\n\t\t\t\t\toldDom,\n\t\t\t\t\tparentDom\n\t\t\t\t);\n\t\t\t} else {\n\t\t\t\toldDom = placeChild(\n\t\t\t\t\tparentDom,\n\t\t\t\t\tchildVNode,\n\t\t\t\t\toldVNode,\n\t\t\t\t\toldChildren,\n\t\t\t\t\tnewDom,\n\t\t\t\t\toldDom\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tif (typeof newParentVNode.type == 'function') {\n\t\t\t\t// Because the newParentVNode is Fragment-like, we need to set it's\n\t\t\t\t// _nextDom property to the nextSibling of its last child DOM node.\n\t\t\t\t//\n\t\t\t\t// `oldDom` contains the correct value here because if the last child\n\t\t\t\t// is a Fragment-like, then oldDom has already been set to that child's _nextDom.\n\t\t\t\t// If the last child is a DOM VNode, then oldDom will be set to that DOM\n\t\t\t\t// node's nextSibling.\n\t\t\t\tnewParentVNode._nextDom = oldDom;\n\t\t\t}\n\t\t} else if (\n\t\t\toldDom &&\n\t\t\toldVNode._dom == oldDom &&\n\t\t\toldDom.parentNode != parentDom\n\t\t) {\n\t\t\t// The above condition is to handle null placeholders. See test in placeholder.test.js:\n\t\t\t// `efficiently replace null placeholders in parent rerenders`\n\t\t\toldDom = getDomSibling(oldVNode);\n\t\t}\n\t}\n\n\tnewParentVNode._dom = firstChildDom;\n\n\t// Remove remaining oldChildren if there are any.\n\tfor (i = oldChildrenLength; i--; ) {\n\t\tif (oldChildren[i] != null) {\n\t\t\tunmount(oldChildren[i], oldChildren[i]);\n\t\t}\n\t}\n\n\t// Set refs only after unmount\n\tif (refs) {\n\t\tfor (i = 0; i < refs.length; i++) {\n\t\t\tapplyRef(refs[i], refs[++i], refs[++i]);\n\t\t}\n\t}\n}\n\nfunction reorderChildren(childVNode, oldDom, parentDom) {\n\t// Note: VNodes in nested suspended trees may be missing _children.\n\tlet c = childVNode._children;\n\tlet tmp = 0;\n\tfor (; c && tmp < c.length; tmp++) {\n\t\tlet vnode = c[tmp];\n\t\tif (vnode) {\n\t\t\t// We typically enter this code path on sCU bailout, where we copy\n\t\t\t// oldVNode._children to newVNode._children. If that is the case, we need\n\t\t\t// to update the old children's _parent pointer to point to the newVNode\n\t\t\t// (childVNode here).\n\t\t\tvnode._parent = childVNode;\n\n\t\t\tif (typeof vnode.type == 'function') {\n\t\t\t\toldDom = reorderChildren(vnode, oldDom, parentDom);\n\t\t\t} else {\n\t\t\t\toldDom = placeChild(parentDom, vnode, vnode, c, vnode._dom, oldDom);\n\t\t\t}\n\t\t}\n\t}\n\n\treturn oldDom;\n}\n\n/**\n * Flatten and loop through the children of a virtual node\n * @param {import('../index').ComponentChildren} children The unflattened\n * children of a virtual node\n * @returns {import('../internal').VNode[]}\n */\nexport function toChildArray(children, out) {\n\tout = out || [];\n\tif (children == null || typeof children == 'boolean') {\n\t} else if (Array.isArray(children)) {\n\t\tchildren.some(child => {\n\t\t\ttoChildArray(child, out);\n\t\t});\n\t} else {\n\t\tout.push(children);\n\t}\n\treturn out;\n}\n\nfunction placeChild(\n\tparentDom,\n\tchildVNode,\n\toldVNode,\n\toldChildren,\n\tnewDom,\n\toldDom\n) {\n\tlet nextDom;\n\tif (childVNode._nextDom !== undefined) {\n\t\t// Only Fragments or components that return Fragment like VNodes will\n\t\t// have a non-undefined _nextDom. Continue the diff from the sibling\n\t\t// of last DOM child of this child VNode\n\t\tnextDom = childVNode._nextDom;\n\n\t\t// Eagerly cleanup _nextDom. We don't need to persist the value because\n\t\t// it is only used by `diffChildren` to determine where to resume the diff after\n\t\t// diffing Components and Fragments. Once we store it the nextDOM local var, we\n\t\t// can clean up the property\n\t\tchildVNode._nextDom = undefined;\n\t} else if (\n\t\toldVNode == null ||\n\t\tnewDom != oldDom ||\n\t\tnewDom.parentNode == null\n\t) {\n\t\touter: if (oldDom == null || oldDom.parentNode !== parentDom) {\n\t\t\tparentDom.appendChild(newDom);\n\t\t\tnextDom = null;\n\t\t} else {\n\t\t\t// `j href (xlink:href was removed from SVG and isn't needed)\n\t\t\t// - className --> class\n\t\t\tname = name.replace(/xlink(H|:h)/, 'h').replace(/sName$/, 's');\n\t\t} else if (\n\t\t\tname !== 'href' &&\n\t\t\tname !== 'list' &&\n\t\t\tname !== 'form' &&\n\t\t\t// Default value in browsers is `-1` and an empty string is\n\t\t\t// cast to `0` instead\n\t\t\tname !== 'tabIndex' &&\n\t\t\tname !== 'download' &&\n\t\t\tname in dom\n\t\t) {\n\t\t\ttry {\n\t\t\t\tdom[name] = value == null ? '' : value;\n\t\t\t\t// labelled break is 1b smaller here than a return statement (sorry)\n\t\t\t\tbreak o;\n\t\t\t} catch (e) {}\n\t\t}\n\n\t\t// ARIA-attributes have a different notion of boolean values.\n\t\t// The value `false` is different from the attribute not\n\t\t// existing on the DOM, so we can't remove it. For non-boolean\n\t\t// ARIA-attributes we could treat false as a removal, but the\n\t\t// amount of exceptions would cost us too many bytes. On top of\n\t\t// that other VDOM frameworks also always stringify `false`.\n\n\t\tif (typeof value === 'function') {\n\t\t\t// never serialize functions as attribute values\n\t\t} else if (value != null && (value !== false || name.indexOf('-') != -1)) {\n\t\t\tdom.setAttribute(name, value);\n\t\t} else {\n\t\t\tdom.removeAttribute(name);\n\t\t}\n\t}\n}\n\n/**\n * Proxy an event to hooked event handlers\n * @param {Event} e The event object from the browser\n * @private\n */\nfunction eventProxy(e) {\n\tthis._listeners[e.type + false](options.event ? options.event(e) : e);\n}\n\nfunction eventProxyCapture(e) {\n\tthis._listeners[e.type + true](options.event ? options.event(e) : e);\n}\n","import { EMPTY_OBJ } from '../constants';\nimport { Component, getDomSibling } from '../component';\nimport { Fragment } from '../create-element';\nimport { diffChildren } from './children';\nimport { diffProps, setProperty } from './props';\nimport { assign, removeNode, slice } from '../util';\nimport options from '../options';\n\n/**\n * Diff two virtual nodes and apply proper changes to the DOM\n * @param {import('../internal').PreactElement} parentDom The parent of the DOM element\n * @param {import('../internal').VNode} newVNode The new virtual node\n * @param {import('../internal').VNode} oldVNode The old virtual node\n * @param {object} globalContext The current context object. Modified by getChildContext\n * @param {boolean} isSvg Whether or not this element is an SVG node\n * @param {Array} excessDomChildren\n * @param {Array} commitQueue List of components\n * which have callbacks to invoke in commitRoot\n * @param {import('../internal').PreactElement} oldDom The current attached DOM\n * element any new dom elements should be placed around. Likely `null` on first\n * render (except when hydrating). Can be a sibling DOM element when diffing\n * Fragments that have siblings. In most cases, it starts out as `oldChildren[0]._dom`.\n * @param {boolean} [isHydrating] Whether or not we are in hydration\n */\nexport function diff(\n\tparentDom,\n\tnewVNode,\n\toldVNode,\n\tglobalContext,\n\tisSvg,\n\texcessDomChildren,\n\tcommitQueue,\n\toldDom,\n\tisHydrating\n) {\n\tlet tmp,\n\t\tnewType = newVNode.type;\n\n\t// When passing through createElement it assigns the object\n\t// constructor as undefined. This to prevent JSON-injection.\n\tif (newVNode.constructor !== undefined) return null;\n\n\t// If the previous diff bailed out, resume creating/hydrating.\n\tif (oldVNode._hydrating != null) {\n\t\tisHydrating = oldVNode._hydrating;\n\t\toldDom = newVNode._dom = oldVNode._dom;\n\t\t// if we resume, we want the tree to be \"unlocked\"\n\t\tnewVNode._hydrating = null;\n\t\texcessDomChildren = [oldDom];\n\t}\n\n\tif ((tmp = options._diff)) tmp(newVNode);\n\n\ttry {\n\t\touter: if (typeof newType == 'function') {\n\t\t\tlet c, isNew, oldProps, oldState, snapshot, clearProcessingException;\n\t\t\tlet newProps = newVNode.props;\n\n\t\t\t// Necessary for createContext api. Setting this property will pass\n\t\t\t// the context value as `this.context` just for this component.\n\t\t\ttmp = newType.contextType;\n\t\t\tlet provider = tmp && globalContext[tmp._id];\n\t\t\tlet componentContext = tmp\n\t\t\t\t? provider\n\t\t\t\t\t? provider.props.value\n\t\t\t\t\t: tmp._defaultValue\n\t\t\t\t: globalContext;\n\n\t\t\t// Get component and set it to `c`\n\t\t\tif (oldVNode._component) {\n\t\t\t\tc = newVNode._component = oldVNode._component;\n\t\t\t\tclearProcessingException = c._processingException = c._pendingError;\n\t\t\t} else {\n\t\t\t\t// Instantiate the new component\n\t\t\t\tif ('prototype' in newType && newType.prototype.render) {\n\t\t\t\t\t// @ts-ignore The check above verifies that newType is suppose to be constructed\n\t\t\t\t\tnewVNode._component = c = new newType(newProps, componentContext); // eslint-disable-line new-cap\n\t\t\t\t} else {\n\t\t\t\t\t// @ts-ignore Trust me, Component implements the interface we want\n\t\t\t\t\tnewVNode._component = c = new Component(newProps, componentContext);\n\t\t\t\t\tc.constructor = newType;\n\t\t\t\t\tc.render = doRender;\n\t\t\t\t}\n\t\t\t\tif (provider) provider.sub(c);\n\n\t\t\t\tc.props = newProps;\n\t\t\t\tif (!c.state) c.state = {};\n\t\t\t\tc.context = componentContext;\n\t\t\t\tc._globalContext = globalContext;\n\t\t\t\tisNew = c._dirty = true;\n\t\t\t\tc._renderCallbacks = [];\n\t\t\t\tc._stateCallbacks = [];\n\t\t\t}\n\n\t\t\t// Invoke getDerivedStateFromProps\n\t\t\tif (c._nextState == null) {\n\t\t\t\tc._nextState = c.state;\n\t\t\t}\n\n\t\t\tif (newType.getDerivedStateFromProps != null) {\n\t\t\t\tif (c._nextState == c.state) {\n\t\t\t\t\tc._nextState = assign({}, c._nextState);\n\t\t\t\t}\n\n\t\t\t\tassign(\n\t\t\t\t\tc._nextState,\n\t\t\t\t\tnewType.getDerivedStateFromProps(newProps, c._nextState)\n\t\t\t\t);\n\t\t\t}\n\n\t\t\toldProps = c.props;\n\t\t\toldState = c.state;\n\n\t\t\t// Invoke pre-render lifecycle methods\n\t\t\tif (isNew) {\n\t\t\t\tif (\n\t\t\t\t\tnewType.getDerivedStateFromProps == null &&\n\t\t\t\t\tc.componentWillMount != null\n\t\t\t\t) {\n\t\t\t\t\tc.componentWillMount();\n\t\t\t\t}\n\n\t\t\t\tif (c.componentDidMount != null) {\n\t\t\t\t\tc._renderCallbacks.push(c.componentDidMount);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (\n\t\t\t\t\tnewType.getDerivedStateFromProps == null &&\n\t\t\t\t\tnewProps !== oldProps &&\n\t\t\t\t\tc.componentWillReceiveProps != null\n\t\t\t\t) {\n\t\t\t\t\tc.componentWillReceiveProps(newProps, componentContext);\n\t\t\t\t}\n\n\t\t\t\tif (\n\t\t\t\t\t(!c._force &&\n\t\t\t\t\t\tc.shouldComponentUpdate != null &&\n\t\t\t\t\t\tc.shouldComponentUpdate(\n\t\t\t\t\t\t\tnewProps,\n\t\t\t\t\t\t\tc._nextState,\n\t\t\t\t\t\t\tcomponentContext\n\t\t\t\t\t\t) === false) ||\n\t\t\t\t\tnewVNode._original === oldVNode._original\n\t\t\t\t) {\n\t\t\t\t\tc.props = newProps;\n\t\t\t\t\tc.state = c._nextState;\n\t\t\t\t\t// More info about this here: https://gist.github.com/JoviDeCroock/bec5f2ce93544d2e6070ef8e0036e4e8\n\t\t\t\t\tif (newVNode._original !== oldVNode._original) c._dirty = false;\n\t\t\t\t\tc._vnode = newVNode;\n\t\t\t\t\tnewVNode._dom = oldVNode._dom;\n\t\t\t\t\tnewVNode._children = oldVNode._children;\n\t\t\t\t\tnewVNode._children.forEach(vnode => {\n\t\t\t\t\t\tif (vnode) vnode._parent = newVNode;\n\t\t\t\t\t});\n\n\t\t\t\t\tfor (let i = 0; i < c._stateCallbacks.length; i++) {\n\t\t\t\t\t\tc._renderCallbacks.push(c._stateCallbacks[i]);\n\t\t\t\t\t}\n\t\t\t\t\tc._stateCallbacks = [];\n\n\t\t\t\t\tif (c._renderCallbacks.length) {\n\t\t\t\t\t\tcommitQueue.push(c);\n\t\t\t\t\t}\n\n\t\t\t\t\tbreak outer;\n\t\t\t\t}\n\n\t\t\t\tif (c.componentWillUpdate != null) {\n\t\t\t\t\tc.componentWillUpdate(newProps, c._nextState, componentContext);\n\t\t\t\t}\n\n\t\t\t\tif (c.componentDidUpdate != null) {\n\t\t\t\t\tc._renderCallbacks.push(() => {\n\t\t\t\t\t\tc.componentDidUpdate(oldProps, oldState, snapshot);\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tc.context = componentContext;\n\t\t\tc.props = newProps;\n\t\t\tc._vnode = newVNode;\n\t\t\tc._parentDom = parentDom;\n\n\t\t\tlet renderHook = options._render,\n\t\t\t\tcount = 0;\n\t\t\tif ('prototype' in newType && newType.prototype.render) {\n\t\t\t\tc.state = c._nextState;\n\t\t\t\tc._dirty = false;\n\n\t\t\t\tif (renderHook) renderHook(newVNode);\n\n\t\t\t\ttmp = c.render(c.props, c.state, c.context);\n\n\t\t\t\tfor (let i = 0; i < c._stateCallbacks.length; i++) {\n\t\t\t\t\tc._renderCallbacks.push(c._stateCallbacks[i]);\n\t\t\t\t}\n\t\t\t\tc._stateCallbacks = [];\n\t\t\t} else {\n\t\t\t\tdo {\n\t\t\t\t\tc._dirty = false;\n\t\t\t\t\tif (renderHook) renderHook(newVNode);\n\n\t\t\t\t\ttmp = c.render(c.props, c.state, c.context);\n\n\t\t\t\t\t// Handle setState called in render, see #2553\n\t\t\t\t\tc.state = c._nextState;\n\t\t\t\t} while (c._dirty && ++count < 25);\n\t\t\t}\n\n\t\t\t// Handle setState called in render, see #2553\n\t\t\tc.state = c._nextState;\n\n\t\t\tif (c.getChildContext != null) {\n\t\t\t\tglobalContext = assign(assign({}, globalContext), c.getChildContext());\n\t\t\t}\n\n\t\t\tif (!isNew && c.getSnapshotBeforeUpdate != null) {\n\t\t\t\tsnapshot = c.getSnapshotBeforeUpdate(oldProps, oldState);\n\t\t\t}\n\n\t\t\tlet isTopLevelFragment =\n\t\t\t\ttmp != null && tmp.type === Fragment && tmp.key == null;\n\t\t\tlet renderResult = isTopLevelFragment ? tmp.props.children : tmp;\n\n\t\t\tdiffChildren(\n\t\t\t\tparentDom,\n\t\t\t\tArray.isArray(renderResult) ? renderResult : [renderResult],\n\t\t\t\tnewVNode,\n\t\t\t\toldVNode,\n\t\t\t\tglobalContext,\n\t\t\t\tisSvg,\n\t\t\t\texcessDomChildren,\n\t\t\t\tcommitQueue,\n\t\t\t\toldDom,\n\t\t\t\tisHydrating\n\t\t\t);\n\n\t\t\tc.base = newVNode._dom;\n\n\t\t\t// We successfully rendered this VNode, unset any stored hydration/bailout state:\n\t\t\tnewVNode._hydrating = null;\n\n\t\t\tif (c._renderCallbacks.length) {\n\t\t\t\tcommitQueue.push(c);\n\t\t\t}\n\n\t\t\tif (clearProcessingException) {\n\t\t\t\tc._pendingError = c._processingException = null;\n\t\t\t}\n\n\t\t\tc._force = false;\n\t\t} else if (\n\t\t\texcessDomChildren == null &&\n\t\t\tnewVNode._original === oldVNode._original\n\t\t) {\n\t\t\tnewVNode._children = oldVNode._children;\n\t\t\tnewVNode._dom = oldVNode._dom;\n\t\t} else {\n\t\t\tnewVNode._dom = diffElementNodes(\n\t\t\t\toldVNode._dom,\n\t\t\t\tnewVNode,\n\t\t\t\toldVNode,\n\t\t\t\tglobalContext,\n\t\t\t\tisSvg,\n\t\t\t\texcessDomChildren,\n\t\t\t\tcommitQueue,\n\t\t\t\tisHydrating\n\t\t\t);\n\t\t}\n\n\t\tif ((tmp = options.diffed)) tmp(newVNode);\n\t} catch (e) {\n\t\tnewVNode._original = null;\n\t\t// if hydrating or creating initial tree, bailout preserves DOM:\n\t\tif (isHydrating || excessDomChildren != null) {\n\t\t\tnewVNode._dom = oldDom;\n\t\t\tnewVNode._hydrating = !!isHydrating;\n\t\t\texcessDomChildren[excessDomChildren.indexOf(oldDom)] = null;\n\t\t\t// ^ could possibly be simplified to:\n\t\t\t// excessDomChildren.length = 0;\n\t\t}\n\t\toptions._catchError(e, newVNode, oldVNode);\n\t}\n}\n\n/**\n * @param {Array} commitQueue List of components\n * which have callbacks to invoke in commitRoot\n * @param {import('../internal').VNode} root\n */\nexport function commitRoot(commitQueue, root) {\n\tif (options._commit) options._commit(root, commitQueue);\n\n\tcommitQueue.some(c => {\n\t\ttry {\n\t\t\t// @ts-ignore Reuse the commitQueue variable here so the type changes\n\t\t\tcommitQueue = c._renderCallbacks;\n\t\t\tc._renderCallbacks = [];\n\t\t\tcommitQueue.some(cb => {\n\t\t\t\t// @ts-ignore See above ts-ignore on commitQueue\n\t\t\t\tcb.call(c);\n\t\t\t});\n\t\t} catch (e) {\n\t\t\toptions._catchError(e, c._vnode);\n\t\t}\n\t});\n}\n\n/**\n * Diff two virtual nodes representing DOM element\n * @param {import('../internal').PreactElement} dom The DOM element representing\n * the virtual nodes being diffed\n * @param {import('../internal').VNode} newVNode The new virtual node\n * @param {import('../internal').VNode} oldVNode The old virtual node\n * @param {object} globalContext The current context object\n * @param {boolean} isSvg Whether or not this DOM node is an SVG node\n * @param {*} excessDomChildren\n * @param {Array} commitQueue List of components\n * which have callbacks to invoke in commitRoot\n * @param {boolean} isHydrating Whether or not we are in hydration\n * @returns {import('../internal').PreactElement}\n */\nfunction diffElementNodes(\n\tdom,\n\tnewVNode,\n\toldVNode,\n\tglobalContext,\n\tisSvg,\n\texcessDomChildren,\n\tcommitQueue,\n\tisHydrating\n) {\n\tlet oldProps = oldVNode.props;\n\tlet newProps = newVNode.props;\n\tlet nodeType = newVNode.type;\n\tlet i = 0;\n\n\t// Tracks entering and exiting SVG namespace when descending through the tree.\n\tif (nodeType === 'svg') isSvg = true;\n\n\tif (excessDomChildren != null) {\n\t\tfor (; i < excessDomChildren.length; i++) {\n\t\t\tconst child = excessDomChildren[i];\n\n\t\t\t// if newVNode matches an element in excessDomChildren or the `dom`\n\t\t\t// argument matches an element in excessDomChildren, remove it from\n\t\t\t// excessDomChildren so it isn't later removed in diffChildren\n\t\t\tif (\n\t\t\t\tchild &&\n\t\t\t\t'setAttribute' in child === !!nodeType &&\n\t\t\t\t(nodeType ? child.localName === nodeType : child.nodeType === 3)\n\t\t\t) {\n\t\t\t\tdom = child;\n\t\t\t\texcessDomChildren[i] = null;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\n\tif (dom == null) {\n\t\tif (nodeType === null) {\n\t\t\t// @ts-ignore createTextNode returns Text, we expect PreactElement\n\t\t\treturn document.createTextNode(newProps);\n\t\t}\n\n\t\tif (isSvg) {\n\t\t\tdom = document.createElementNS(\n\t\t\t\t'http://www.w3.org/2000/svg',\n\t\t\t\t// @ts-ignore We know `newVNode.type` is a string\n\t\t\t\tnodeType\n\t\t\t);\n\t\t} else {\n\t\t\tdom = document.createElement(\n\t\t\t\t// @ts-ignore We know `newVNode.type` is a string\n\t\t\t\tnodeType,\n\t\t\t\tnewProps.is && newProps\n\t\t\t);\n\t\t}\n\n\t\t// we created a new parent, so none of the previously attached children can be reused:\n\t\texcessDomChildren = null;\n\t\t// we are creating a new node, so we can assume this is a new subtree (in case we are hydrating), this deopts the hydrate\n\t\tisHydrating = false;\n\t}\n\n\tif (nodeType === null) {\n\t\t// During hydration, we still have to split merged text from SSR'd HTML.\n\t\tif (oldProps !== newProps && (!isHydrating || dom.data !== newProps)) {\n\t\t\tdom.data = newProps;\n\t\t}\n\t} else {\n\t\t// If excessDomChildren was not null, repopulate it with the current element's children:\n\t\texcessDomChildren = excessDomChildren && slice.call(dom.childNodes);\n\n\t\toldProps = oldVNode.props || EMPTY_OBJ;\n\n\t\tlet oldHtml = oldProps.dangerouslySetInnerHTML;\n\t\tlet newHtml = newProps.dangerouslySetInnerHTML;\n\n\t\t// During hydration, props are not diffed at all (including dangerouslySetInnerHTML)\n\t\t// @TODO we should warn in debug mode when props don't match here.\n\t\tif (!isHydrating) {\n\t\t\t// But, if we are in a situation where we are using existing DOM (e.g. replaceNode)\n\t\t\t// we should read the existing DOM attributes to diff them\n\t\t\tif (excessDomChildren != null) {\n\t\t\t\toldProps = {};\n\t\t\t\tfor (i = 0; i < dom.attributes.length; i++) {\n\t\t\t\t\toldProps[dom.attributes[i].name] = dom.attributes[i].value;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (newHtml || oldHtml) {\n\t\t\t\t// Avoid re-applying the same '__html' if it did not changed between re-render\n\t\t\t\tif (\n\t\t\t\t\t!newHtml ||\n\t\t\t\t\t((!oldHtml || newHtml.__html != oldHtml.__html) &&\n\t\t\t\t\t\tnewHtml.__html !== dom.innerHTML)\n\t\t\t\t) {\n\t\t\t\t\tdom.innerHTML = (newHtml && newHtml.__html) || '';\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tdiffProps(dom, newProps, oldProps, isSvg, isHydrating);\n\n\t\t// If the new vnode didn't have dangerouslySetInnerHTML, diff its children\n\t\tif (newHtml) {\n\t\t\tnewVNode._children = [];\n\t\t} else {\n\t\t\ti = newVNode.props.children;\n\t\t\tdiffChildren(\n\t\t\t\tdom,\n\t\t\t\tArray.isArray(i) ? i : [i],\n\t\t\t\tnewVNode,\n\t\t\t\toldVNode,\n\t\t\t\tglobalContext,\n\t\t\t\tisSvg && nodeType !== 'foreignObject',\n\t\t\t\texcessDomChildren,\n\t\t\t\tcommitQueue,\n\t\t\t\texcessDomChildren\n\t\t\t\t\t? excessDomChildren[0]\n\t\t\t\t\t: oldVNode._children && getDomSibling(oldVNode, 0),\n\t\t\t\tisHydrating\n\t\t\t);\n\n\t\t\t// Remove children that are not part of any vnode.\n\t\t\tif (excessDomChildren != null) {\n\t\t\t\tfor (i = excessDomChildren.length; i--; ) {\n\t\t\t\t\tif (excessDomChildren[i] != null) removeNode(excessDomChildren[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// (as above, don't diff props during hydration)\n\t\tif (!isHydrating) {\n\t\t\tif (\n\t\t\t\t'value' in newProps &&\n\t\t\t\t(i = newProps.value) !== undefined &&\n\t\t\t\t// #2756 For the -element the initial value is 0,\n\t\t\t\t// despite the attribute not being present. When the attribute\n\t\t\t\t// is missing the progress bar is treated as indeterminate.\n\t\t\t\t// To fix that we'll always update it when it is 0 for progress elements\n\t\t\t\t(i !== dom.value ||\n\t\t\t\t\t(nodeType === 'progress' && !i) ||\n\t\t\t\t\t// This is only for IE 11 to fix value not being updated.\n\t\t\t\t\t// To avoid a stale select value we need to set the option.value\n\t\t\t\t\t// again, which triggers IE11 to re-evaluate the select value\n\t\t\t\t\t(nodeType === 'option' && i !== oldProps.value))\n\t\t\t) {\n\t\t\t\tsetProperty(dom, 'value', i, oldProps.value, false);\n\t\t\t}\n\t\t\tif (\n\t\t\t\t'checked' in newProps &&\n\t\t\t\t(i = newProps.checked) !== undefined &&\n\t\t\t\ti !== dom.checked\n\t\t\t) {\n\t\t\t\tsetProperty(dom, 'checked', i, oldProps.checked, false);\n\t\t\t}\n\t\t}\n\t}\n\n\treturn dom;\n}\n\n/**\n * Invoke or update a ref, depending on whether it is a function or object ref.\n * @param {object|function} ref\n * @param {any} value\n * @param {import('../internal').VNode} vnode\n */\nexport function applyRef(ref, value, vnode) {\n\ttry {\n\t\tif (typeof ref == 'function') ref(value);\n\t\telse ref.current = value;\n\t} catch (e) {\n\t\toptions._catchError(e, vnode);\n\t}\n}\n\n/**\n * Unmount a virtual node from the tree and apply DOM changes\n * @param {import('../internal').VNode} vnode The virtual node to unmount\n * @param {import('../internal').VNode} parentVNode The parent of the VNode that\n * initiated the unmount\n * @param {boolean} [skipRemove] Flag that indicates that a parent node of the\n * current element is already detached from the DOM.\n */\nexport function unmount(vnode, parentVNode, skipRemove) {\n\tlet r;\n\tif (options.unmount) options.unmount(vnode);\n\n\tif ((r = vnode.ref)) {\n\t\tif (!r.current || r.current === vnode._dom) {\n\t\t\tapplyRef(r, null, parentVNode);\n\t\t}\n\t}\n\n\tif ((r = vnode._component) != null) {\n\t\tif (r.componentWillUnmount) {\n\t\t\ttry {\n\t\t\t\tr.componentWillUnmount();\n\t\t\t} catch (e) {\n\t\t\t\toptions._catchError(e, parentVNode);\n\t\t\t}\n\t\t}\n\n\t\tr.base = r._parentDom = null;\n\t\tvnode._component = undefined;\n\t}\n\n\tif ((r = vnode._children)) {\n\t\tfor (let i = 0; i < r.length; i++) {\n\t\t\tif (r[i]) {\n\t\t\t\tunmount(\n\t\t\t\t\tr[i],\n\t\t\t\t\tparentVNode,\n\t\t\t\t\tskipRemove || typeof vnode.type !== 'function'\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t}\n\n\tif (!skipRemove && vnode._dom != null) {\n\t\tremoveNode(vnode._dom);\n\t}\n\n\t// Must be set to `undefined` to properly clean up `_nextDom`\n\t// for which `null` is a valid value. See comment in `create-element.js`\n\tvnode._parent = vnode._dom = vnode._nextDom = undefined;\n}\n\n/** The `.render()` method for a PFC backing instance. */\nfunction doRender(props, state, context) {\n\treturn this.constructor(props, context);\n}\n","import { EMPTY_OBJ } from './constants';\nimport { commitRoot, diff } from './diff/index';\nimport { createElement, Fragment } from './create-element';\nimport options from './options';\nimport { slice } from './util';\n\n/**\n * Render a Preact virtual node into a DOM element\n * @param {import('./internal').ComponentChild} vnode The virtual node to render\n * @param {import('./internal').PreactElement} parentDom The DOM element to\n * render into\n * @param {import('./internal').PreactElement | object} [replaceNode] Optional: Attempt to re-use an\n * existing DOM tree rooted at `replaceNode`\n */\nexport function render(vnode, parentDom, replaceNode) {\n\tif (options._root) options._root(vnode, parentDom);\n\n\t// We abuse the `replaceNode` parameter in `hydrate()` to signal if we are in\n\t// hydration mode or not by passing the `hydrate` function instead of a DOM\n\t// element..\n\tlet isHydrating = typeof replaceNode === 'function';\n\n\t// To be able to support calling `render()` multiple times on the same\n\t// DOM node, we need to obtain a reference to the previous tree. We do\n\t// this by assigning a new `_children` property to DOM nodes which points\n\t// to the last rendered tree. By default this property is not present, which\n\t// means that we are mounting a new tree for the first time.\n\tlet oldVNode = isHydrating\n\t\t? null\n\t\t: (replaceNode && replaceNode._children) || parentDom._children;\n\n\tvnode = (\n\t\t(!isHydrating && replaceNode) ||\n\t\tparentDom\n\t)._children = createElement(Fragment, null, [vnode]);\n\n\t// List of effects that need to be called after diffing.\n\tlet commitQueue = [];\n\tdiff(\n\t\tparentDom,\n\t\t// Determine the new vnode tree and store it on the DOM element on\n\t\t// our custom `_children` property.\n\t\tvnode,\n\t\toldVNode || EMPTY_OBJ,\n\t\tEMPTY_OBJ,\n\t\tparentDom.ownerSVGElement !== undefined,\n\t\t!isHydrating && replaceNode\n\t\t\t? [replaceNode]\n\t\t\t: oldVNode\n\t\t\t? null\n\t\t\t: parentDom.firstChild\n\t\t\t? slice.call(parentDom.childNodes)\n\t\t\t: null,\n\t\tcommitQueue,\n\t\t!isHydrating && replaceNode\n\t\t\t? replaceNode\n\t\t\t: oldVNode\n\t\t\t? oldVNode._dom\n\t\t\t: parentDom.firstChild,\n\t\tisHydrating\n\t);\n\n\t// Flush all queued effects\n\tcommitRoot(commitQueue, vnode);\n}\n\n/**\n * Update an existing DOM element with data from a Preact virtual node\n * @param {import('./internal').ComponentChild} vnode The virtual node to render\n * @param {import('./internal').PreactElement} parentDom The DOM element to\n * update\n */\nexport function hydrate(vnode, parentDom) {\n\trender(vnode, parentDom, hydrate);\n}\n","/**\n * Find the closest error boundary to a thrown error and call it\n * @param {object} error The thrown value\n * @param {import('../internal').VNode} vnode The vnode that threw\n * the error that was caught (except for unmounting when this parameter\n * is the highest parent that was being unmounted)\n * @param {import('../internal').VNode} [oldVNode]\n * @param {import('../internal').ErrorInfo} [errorInfo]\n */\nexport function _catchError(error, vnode, oldVNode, errorInfo) {\n\t/** @type {import('../internal').Component} */\n\tlet component, ctor, handled;\n\n\tfor (; (vnode = vnode._parent); ) {\n\t\tif ((component = vnode._component) && !component._processingException) {\n\t\t\ttry {\n\t\t\t\tctor = component.constructor;\n\n\t\t\t\tif (ctor && ctor.getDerivedStateFromError != null) {\n\t\t\t\t\tcomponent.setState(ctor.getDerivedStateFromError(error));\n\t\t\t\t\thandled = component._dirty;\n\t\t\t\t}\n\n\t\t\t\tif (component.componentDidCatch != null) {\n\t\t\t\t\tcomponent.componentDidCatch(error, errorInfo || {});\n\t\t\t\t\thandled = component._dirty;\n\t\t\t\t}\n\n\t\t\t\t// This is an error boundary. Mark it as having bailed out, and whether it was mid-hydration.\n\t\t\t\tif (handled) {\n\t\t\t\t\treturn (component._pendingError = component);\n\t\t\t\t}\n\t\t\t} catch (e) {\n\t\t\t\terror = e;\n\t\t\t}\n\t\t}\n\t}\n\n\tthrow error;\n}\n","import { options } from 'preact';\n\n/** @type {number} */\nlet currentIndex;\n\n/** @type {import('./internal').Component} */\nlet currentComponent;\n\n/** @type {import('./internal').Component} */\nlet previousComponent;\n\n/** @type {number} */\nlet currentHook = 0;\n\n/** @type {Array} */\nlet afterPaintEffects = [];\n\nlet EMPTY = [];\n\nlet oldBeforeDiff = options._diff;\nlet oldBeforeRender = options._render;\nlet oldAfterDiff = options.diffed;\nlet oldCommit = options._commit;\nlet oldBeforeUnmount = options.unmount;\n\nconst RAF_TIMEOUT = 100;\nlet prevRaf;\n\noptions._diff = vnode => {\n\tcurrentComponent = null;\n\tif (oldBeforeDiff) oldBeforeDiff(vnode);\n};\n\noptions._render = vnode => {\n\tif (oldBeforeRender) oldBeforeRender(vnode);\n\n\tcurrentComponent = vnode._component;\n\tcurrentIndex = 0;\n\n\tconst hooks = currentComponent.__hooks;\n\tif (hooks) {\n\t\tif (previousComponent === currentComponent) {\n\t\t\thooks._pendingEffects = [];\n\t\t\tcurrentComponent._renderCallbacks = [];\n\t\t\thooks._list.forEach(hookItem => {\n\t\t\t\tif (hookItem._nextValue) {\n\t\t\t\t\thookItem._value = hookItem._nextValue;\n\t\t\t\t}\n\t\t\t\thookItem._pendingValue = EMPTY;\n\t\t\t\thookItem._nextValue = hookItem._pendingArgs = undefined;\n\t\t\t});\n\t\t} else {\n\t\t\thooks._pendingEffects.forEach(invokeCleanup);\n\t\t\thooks._pendingEffects.forEach(invokeEffect);\n\t\t\thooks._pendingEffects = [];\n\t\t}\n\t}\n\tpreviousComponent = currentComponent;\n};\n\noptions.diffed = vnode => {\n\tif (oldAfterDiff) oldAfterDiff(vnode);\n\n\tconst c = vnode._component;\n\tif (c && c.__hooks) {\n\t\tif (c.__hooks._pendingEffects.length) afterPaint(afterPaintEffects.push(c));\n\t\tc.__hooks._list.forEach(hookItem => {\n\t\t\tif (hookItem._pendingArgs) {\n\t\t\t\thookItem._args = hookItem._pendingArgs;\n\t\t\t}\n\t\t\tif (hookItem._pendingValue !== EMPTY) {\n\t\t\t\thookItem._value = hookItem._pendingValue;\n\t\t\t}\n\t\t\thookItem._pendingArgs = undefined;\n\t\t\thookItem._pendingValue = EMPTY;\n\t\t});\n\t}\n\tpreviousComponent = currentComponent = null;\n};\n\noptions._commit = (vnode, commitQueue) => {\n\tcommitQueue.some(component => {\n\t\ttry {\n\t\t\tcomponent._renderCallbacks.forEach(invokeCleanup);\n\t\t\tcomponent._renderCallbacks = component._renderCallbacks.filter(cb =>\n\t\t\t\tcb._value ? invokeEffect(cb) : true\n\t\t\t);\n\t\t} catch (e) {\n\t\t\tcommitQueue.some(c => {\n\t\t\t\tif (c._renderCallbacks) c._renderCallbacks = [];\n\t\t\t});\n\t\t\tcommitQueue = [];\n\t\t\toptions._catchError(e, component._vnode);\n\t\t}\n\t});\n\n\tif (oldCommit) oldCommit(vnode, commitQueue);\n};\n\noptions.unmount = vnode => {\n\tif (oldBeforeUnmount) oldBeforeUnmount(vnode);\n\n\tconst c = vnode._component;\n\tif (c && c.__hooks) {\n\t\tlet hasErrored;\n\t\tc.__hooks._list.forEach(s => {\n\t\t\ttry {\n\t\t\t\tinvokeCleanup(s);\n\t\t\t} catch (e) {\n\t\t\t\thasErrored = e;\n\t\t\t}\n\t\t});\n\t\tc.__hooks = undefined;\n\t\tif (hasErrored) options._catchError(hasErrored, c._vnode);\n\t}\n};\n\n/**\n * Get a hook's state from the currentComponent\n * @param {number} index The index of the hook to get\n * @param {number} type The index of the hook to get\n * @returns {any}\n */\nfunction getHookState(index, type) {\n\tif (options._hook) {\n\t\toptions._hook(currentComponent, index, currentHook || type);\n\t}\n\tcurrentHook = 0;\n\n\t// Largely inspired by:\n\t// * https://github.com/michael-klein/funcy.js/blob/f6be73468e6ec46b0ff5aa3cc4c9baf72a29025a/src/hooks/core_hooks.mjs\n\t// * https://github.com/michael-klein/funcy.js/blob/650beaa58c43c33a74820a3c98b3c7079cf2e333/src/renderer.mjs\n\t// Other implementations to look at:\n\t// * https://codesandbox.io/s/mnox05qp8\n\tconst hooks =\n\t\tcurrentComponent.__hooks ||\n\t\t(currentComponent.__hooks = {\n\t\t\t_list: [],\n\t\t\t_pendingEffects: []\n\t\t});\n\n\tif (index >= hooks._list.length) {\n\t\thooks._list.push({ _pendingValue: EMPTY });\n\t}\n\treturn hooks._list[index];\n}\n\n/**\n * @param {import('./index').StateUpdater} [initialState]\n */\nexport function useState(initialState) {\n\tcurrentHook = 1;\n\treturn useReducer(invokeOrReturn, initialState);\n}\n\n/**\n * @param {import('./index').Reducer} reducer\n * @param {import('./index').StateUpdater} initialState\n * @param {(initialState: any) => void} [init]\n * @returns {[ any, (state: any) => void ]}\n */\nexport function useReducer(reducer, initialState, init) {\n\t/** @type {import('./internal').ReducerHookState} */\n\tconst hookState = getHookState(currentIndex++, 2);\n\thookState._reducer = reducer;\n\tif (!hookState._component) {\n\t\thookState._value = [\n\t\t\t!init ? invokeOrReturn(undefined, initialState) : init(initialState),\n\n\t\t\taction => {\n\t\t\t\tconst currentValue = hookState._nextValue\n\t\t\t\t\t? hookState._nextValue[0]\n\t\t\t\t\t: hookState._value[0];\n\t\t\t\tconst nextValue = hookState._reducer(currentValue, action);\n\n\t\t\t\tif (currentValue !== nextValue) {\n\t\t\t\t\thookState._nextValue = [nextValue, hookState._value[1]];\n\t\t\t\t\thookState._component.setState({});\n\t\t\t\t}\n\t\t\t}\n\t\t];\n\n\t\thookState._component = currentComponent;\n\n\t\tif (!currentComponent._hasScuFromHooks) {\n\t\t\tcurrentComponent._hasScuFromHooks = true;\n\t\t\tconst prevScu = currentComponent.shouldComponentUpdate;\n\n\t\t\t// This SCU has the purpose of bailing out after repeated updates\n\t\t\t// to stateful hooks.\n\t\t\t// we store the next value in _nextValue[0] and keep doing that for all\n\t\t\t// state setters, if we have next states and\n\t\t\t// all next states within a component end up being equal to their original state\n\t\t\t// we are safe to bail out for this specific component.\n\t\t\tcurrentComponent.shouldComponentUpdate = function(p, s, c) {\n\t\t\t\tif (!hookState._component.__hooks) return true;\n\n\t\t\t\tconst stateHooks = hookState._component.__hooks._list.filter(\n\t\t\t\t\tx => x._component\n\t\t\t\t);\n\t\t\t\tconst allHooksEmpty = stateHooks.every(x => !x._nextValue);\n\t\t\t\t// When we have no updated hooks in the component we invoke the previous SCU or\n\t\t\t\t// traverse the VDOM tree further.\n\t\t\t\tif (allHooksEmpty) {\n\t\t\t\t\treturn prevScu ? prevScu.call(this, p, s, c) : true;\n\t\t\t\t}\n\n\t\t\t\t// We check whether we have components with a nextValue set that\n\t\t\t\t// have values that aren't equal to one another this pushes\n\t\t\t\t// us to update further down the tree\n\t\t\t\tlet shouldUpdate = false;\n\t\t\t\tstateHooks.forEach(hookItem => {\n\t\t\t\t\tif (hookItem._nextValue) {\n\t\t\t\t\t\tconst currentValue = hookItem._value[0];\n\t\t\t\t\t\thookItem._value = hookItem._nextValue;\n\t\t\t\t\t\thookItem._nextValue = undefined;\n\t\t\t\t\t\tif (currentValue !== hookItem._value[0]) shouldUpdate = true;\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\treturn shouldUpdate || hookState._component.props !== p\n\t\t\t\t\t? prevScu\n\t\t\t\t\t\t? prevScu.call(this, p, s, c)\n\t\t\t\t\t\t: true\n\t\t\t\t\t: false;\n\t\t\t};\n\t\t}\n\t}\n\n\treturn hookState._nextValue || hookState._value;\n}\n\n/**\n * @param {import('./internal').Effect} callback\n * @param {any[]} args\n */\nexport function useEffect(callback, args) {\n\t/** @type {import('./internal').EffectHookState} */\n\tconst state = getHookState(currentIndex++, 3);\n\tif (!options._skipEffects && argsChanged(state._args, args)) {\n\t\tstate._value = callback;\n\t\tstate._pendingArgs = args;\n\n\t\tcurrentComponent.__hooks._pendingEffects.push(state);\n\t}\n}\n\n/**\n * @param {import('./internal').Effect} callback\n * @param {any[]} args\n */\nexport function useLayoutEffect(callback, args) {\n\t/** @type {import('./internal').EffectHookState} */\n\tconst state = getHookState(currentIndex++, 4);\n\tif (!options._skipEffects && argsChanged(state._args, args)) {\n\t\tstate._value = callback;\n\t\tstate._pendingArgs = args;\n\n\t\tcurrentComponent._renderCallbacks.push(state);\n\t}\n}\n\nexport function useRef(initialValue) {\n\tcurrentHook = 5;\n\treturn useMemo(() => ({ current: initialValue }), []);\n}\n\n/**\n * @param {object} ref\n * @param {() => object} createHandle\n * @param {any[]} args\n */\nexport function useImperativeHandle(ref, createHandle, args) {\n\tcurrentHook = 6;\n\tuseLayoutEffect(\n\t\t() => {\n\t\t\tif (typeof ref == 'function') {\n\t\t\t\tref(createHandle());\n\t\t\t\treturn () => ref(null);\n\t\t\t} else if (ref) {\n\t\t\t\tref.current = createHandle();\n\t\t\t\treturn () => (ref.current = null);\n\t\t\t}\n\t\t},\n\t\targs == null ? args : args.concat(ref)\n\t);\n}\n\n/**\n * @param {() => any} factory\n * @param {any[]} args\n */\nexport function useMemo(factory, args) {\n\t/** @type {import('./internal').MemoHookState} */\n\tconst state = getHookState(currentIndex++, 7);\n\tif (argsChanged(state._args, args)) {\n\t\tstate._pendingValue = factory();\n\t\tstate._pendingArgs = args;\n\t\tstate._factory = factory;\n\t\treturn state._pendingValue;\n\t}\n\n\treturn state._value;\n}\n\n/**\n * @param {() => void} callback\n * @param {any[]} args\n */\nexport function useCallback(callback, args) {\n\tcurrentHook = 8;\n\treturn useMemo(() => callback, args);\n}\n\n/**\n * @param {import('./internal').PreactContext} context\n */\nexport function useContext(context) {\n\tconst provider = currentComponent.context[context._id];\n\t// We could skip this call here, but than we'd not call\n\t// `options._hook`. We need to do that in order to make\n\t// the devtools aware of this hook.\n\t/** @type {import('./internal').ContextHookState} */\n\tconst state = getHookState(currentIndex++, 9);\n\t// The devtools needs access to the context object to\n\t// be able to pull of the default value when no provider\n\t// is present in the tree.\n\tstate._context = context;\n\tif (!provider) return context._defaultValue;\n\t// This is probably not safe to convert to \"!\"\n\tif (state._value == null) {\n\t\tstate._value = true;\n\t\tprovider.sub(currentComponent);\n\t}\n\treturn provider.props.value;\n}\n\n/**\n * Display a custom label for a custom hook for the devtools panel\n * @type {(value: T, cb?: (value: T) => string | number) => void}\n */\nexport function useDebugValue(value, formatter) {\n\tif (options.useDebugValue) {\n\t\toptions.useDebugValue(formatter ? formatter(value) : value);\n\t}\n}\n\n/**\n * @param {(error: any, errorInfo: import('preact').ErrorInfo) => void} cb\n */\nexport function useErrorBoundary(cb) {\n\t/** @type {import('./internal').ErrorBoundaryHookState} */\n\tconst state = getHookState(currentIndex++, 10);\n\tconst errState = useState();\n\tstate._value = cb;\n\tif (!currentComponent.componentDidCatch) {\n\t\tcurrentComponent.componentDidCatch = (err, errorInfo) => {\n\t\t\tif (state._value) state._value(err, errorInfo);\n\t\t\terrState[1](err);\n\t\t};\n\t}\n\treturn [\n\t\terrState[0],\n\t\t() => {\n\t\t\terrState[1](undefined);\n\t\t}\n\t];\n}\n\nexport function useId() {\n\tconst state = getHookState(currentIndex++, 11);\n\tif (!state._value) {\n\t\t// Grab either the root node or the nearest async boundary node.\n\t\t/** @type {import('./internal.d').VNode} */\n\t\tlet root = currentComponent._vnode;\n\t\twhile (root !== null && !root._mask && root._parent !== null) {\n\t\t\troot = root._parent;\n\t\t}\n\n\t\tlet mask = root._mask || (root._mask = [0, 0]);\n\t\tstate._value = 'P' + mask[0] + '-' + mask[1]++;\n\t}\n\n\treturn state._value;\n}\n/**\n * After paint effects consumer.\n */\nfunction flushAfterPaintEffects() {\n\tlet component;\n\twhile ((component = afterPaintEffects.shift())) {\n\t\tif (!component._parentDom || !component.__hooks) continue;\n\t\ttry {\n\t\t\tcomponent.__hooks._pendingEffects.forEach(invokeCleanup);\n\t\t\tcomponent.__hooks._pendingEffects.forEach(invokeEffect);\n\t\t\tcomponent.__hooks._pendingEffects = [];\n\t\t} catch (e) {\n\t\t\tcomponent.__hooks._pendingEffects = [];\n\t\t\toptions._catchError(e, component._vnode);\n\t\t}\n\t}\n}\n\nlet HAS_RAF = typeof requestAnimationFrame == 'function';\n\n/**\n * Schedule a callback to be invoked after the browser has a chance to paint a new frame.\n * Do this by combining requestAnimationFrame (rAF) + setTimeout to invoke a callback after\n * the next browser frame.\n *\n * Also, schedule a timeout in parallel to the the rAF to ensure the callback is invoked\n * even if RAF doesn't fire (for example if the browser tab is not visible)\n *\n * @param {() => void} callback\n */\nfunction afterNextFrame(callback) {\n\tconst done = () => {\n\t\tclearTimeout(timeout);\n\t\tif (HAS_RAF) cancelAnimationFrame(raf);\n\t\tsetTimeout(callback);\n\t};\n\tconst timeout = setTimeout(done, RAF_TIMEOUT);\n\n\tlet raf;\n\tif (HAS_RAF) {\n\t\traf = requestAnimationFrame(done);\n\t}\n}\n\n// Note: if someone used options.debounceRendering = requestAnimationFrame,\n// then effects will ALWAYS run on the NEXT frame instead of the current one, incurring a ~16ms delay.\n// Perhaps this is not such a big deal.\n/**\n * Schedule afterPaintEffects flush after the browser paints\n * @param {number} newQueueLength\n */\nfunction afterPaint(newQueueLength) {\n\tif (newQueueLength === 1 || prevRaf !== options.requestAnimationFrame) {\n\t\tprevRaf = options.requestAnimationFrame;\n\t\t(prevRaf || afterNextFrame)(flushAfterPaintEffects);\n\t}\n}\n\n/**\n * @param {import('./internal').EffectHookState} hook\n */\nfunction invokeCleanup(hook) {\n\t// A hook cleanup can introduce a call to render which creates a new root, this will call options.vnode\n\t// and move the currentComponent away.\n\tconst comp = currentComponent;\n\tlet cleanup = hook._cleanup;\n\tif (typeof cleanup == 'function') {\n\t\thook._cleanup = undefined;\n\t\tcleanup();\n\t}\n\n\tcurrentComponent = comp;\n}\n\n/**\n * Invoke a Hook's effect\n * @param {import('./internal').EffectHookState} hook\n */\nfunction invokeEffect(hook) {\n\t// A hook call can introduce a call to render which creates a new root, this will call options.vnode\n\t// and move the currentComponent away.\n\tconst comp = currentComponent;\n\thook._cleanup = hook._value();\n\tcurrentComponent = comp;\n}\n\n/**\n * @param {any[]} oldArgs\n * @param {any[]} newArgs\n */\nfunction argsChanged(oldArgs, newArgs) {\n\treturn (\n\t\t!oldArgs ||\n\t\toldArgs.length !== newArgs.length ||\n\t\tnewArgs.some((arg, index) => arg !== oldArgs[index])\n\t);\n}\n\nfunction invokeOrReturn(arg, f) {\n\treturn typeof f == 'function' ? f(arg) : f;\n}\n","import { Component } from 'preact';\nimport { shallowDiffers } from './util';\n\n/**\n * Component class with a predefined `shouldComponentUpdate` implementation\n */\nexport function PureComponent(p) {\n\tthis.props = p;\n}\nPureComponent.prototype = new Component();\n// Some third-party libraries check if this property is present\nPureComponent.prototype.isPureReactComponent = true;\nPureComponent.prototype.shouldComponentUpdate = function(props, state) {\n\treturn shallowDiffers(this.props, props) || shallowDiffers(this.state, state);\n};\n","import { options } from 'preact';\nimport { assign } from './util';\n\nlet oldDiffHook = options._diff;\noptions._diff = vnode => {\n\tif (vnode.type && vnode.type._forwarded && vnode.ref) {\n\t\tvnode.props.ref = vnode.ref;\n\t\tvnode.ref = null;\n\t}\n\tif (oldDiffHook) oldDiffHook(vnode);\n};\n\nexport const REACT_FORWARD_SYMBOL =\n\t(typeof Symbol != 'undefined' &&\n\t\tSymbol.for &&\n\t\tSymbol.for('react.forward_ref')) ||\n\t0xf47;\n\n/**\n * Pass ref down to a child. This is mainly used in libraries with HOCs that\n * wrap components. Using `forwardRef` there is an easy way to get a reference\n * of the wrapped component instead of one of the wrapper itself.\n * @param {import('./index').ForwardFn} fn\n * @returns {import('./internal').FunctionComponent}\n */\nexport function forwardRef(fn) {\n\tfunction Forwarded(props) {\n\t\tlet clone = assign({}, props);\n\t\tdelete clone.ref;\n\t\treturn fn(clone, props.ref || null);\n\t}\n\n\t// mobx-react checks for this being present\n\tForwarded.$$typeof = REACT_FORWARD_SYMBOL;\n\t// mobx-react heavily relies on implementation details.\n\t// It expects an object here with a `render` property,\n\t// and prototype.render will fail. Without this\n\t// mobx-react throws.\n\tForwarded.render = Forwarded;\n\n\tForwarded.prototype.isReactComponent = Forwarded._forwarded = true;\n\tForwarded.displayName = 'ForwardRef(' + (fn.displayName || fn.name) + ')';\n\treturn Forwarded;\n}\n","import { toChildArray } from 'preact';\n\nconst mapFn = (children, fn) => {\n\tif (children == null) return null;\n\treturn toChildArray(toChildArray(children).map(fn));\n};\n\n// This API is completely unnecessary for Preact, so it's basically passthrough.\nexport const Children = {\n\tmap: mapFn,\n\tforEach: mapFn,\n\tcount(children) {\n\t\treturn children ? toChildArray(children).length : 0;\n\t},\n\tonly(children) {\n\t\tconst normalized = toChildArray(children);\n\t\tif (normalized.length !== 1) throw 'Children.only';\n\t\treturn normalized[0];\n\t},\n\ttoArray: toChildArray\n};\n","import { Component, createElement, options, Fragment } from 'preact';\nimport { assign } from './util';\n\nconst oldCatchError = options._catchError;\noptions._catchError = function(error, newVNode, oldVNode, errorInfo) {\n\tif (error.then) {\n\t\t/** @type {import('./internal').Component} */\n\t\tlet component;\n\t\tlet vnode = newVNode;\n\n\t\tfor (; (vnode = vnode._parent); ) {\n\t\t\tif ((component = vnode._component) && component._childDidSuspend) {\n\t\t\t\tif (newVNode._dom == null) {\n\t\t\t\t\tnewVNode._dom = oldVNode._dom;\n\t\t\t\t\tnewVNode._children = oldVNode._children;\n\t\t\t\t}\n\t\t\t\t// Don't call oldCatchError if we found a Suspense\n\t\t\t\treturn component._childDidSuspend(error, newVNode);\n\t\t\t}\n\t\t}\n\t}\n\toldCatchError(error, newVNode, oldVNode, errorInfo);\n};\n\nconst oldUnmount = options.unmount;\noptions.unmount = function(vnode) {\n\t/** @type {import('./internal').Component} */\n\tconst component = vnode._component;\n\tif (component && component._onResolve) {\n\t\tcomponent._onResolve();\n\t}\n\n\t// if the component is still hydrating\n\t// most likely it is because the component is suspended\n\t// we set the vnode.type as `null` so that it is not a typeof function\n\t// so the unmount will remove the vnode._dom\n\tif (component && vnode._hydrating === true) {\n\t\tvnode.type = null;\n\t}\n\n\tif (oldUnmount) oldUnmount(vnode);\n};\n\nfunction detachedClone(vnode, detachedParent, parentDom) {\n\tif (vnode) {\n\t\tif (vnode._component && vnode._component.__hooks) {\n\t\t\tvnode._component.__hooks._list.forEach(effect => {\n\t\t\t\tif (typeof effect._cleanup == 'function') effect._cleanup();\n\t\t\t});\n\n\t\t\tvnode._component.__hooks = null;\n\t\t}\n\n\t\tvnode = assign({}, vnode);\n\t\tif (vnode._component != null) {\n\t\t\tif (vnode._component._parentDom === parentDom) {\n\t\t\t\tvnode._component._parentDom = detachedParent;\n\t\t\t}\n\t\t\tvnode._component = null;\n\t\t}\n\n\t\tvnode._children =\n\t\t\tvnode._children &&\n\t\t\tvnode._children.map(child =>\n\t\t\t\tdetachedClone(child, detachedParent, parentDom)\n\t\t\t);\n\t}\n\n\treturn vnode;\n}\n\nfunction removeOriginal(vnode, detachedParent, originalParent) {\n\tif (vnode) {\n\t\tvnode._original = null;\n\t\tvnode._children =\n\t\t\tvnode._children &&\n\t\t\tvnode._children.map(child =>\n\t\t\t\tremoveOriginal(child, detachedParent, originalParent)\n\t\t\t);\n\n\t\tif (vnode._component) {\n\t\t\tif (vnode._component._parentDom === detachedParent) {\n\t\t\t\tif (vnode._dom) {\n\t\t\t\t\toriginalParent.insertBefore(vnode._dom, vnode._nextDom);\n\t\t\t\t}\n\t\t\t\tvnode._component._force = true;\n\t\t\t\tvnode._component._parentDom = originalParent;\n\t\t\t}\n\t\t}\n\t}\n\n\treturn vnode;\n}\n\n// having custom inheritance instead of a class here saves a lot of bytes\nexport function Suspense() {\n\t// we do not call super here to golf some bytes...\n\tthis._pendingSuspensionCount = 0;\n\tthis._suspenders = null;\n\tthis._detachOnNextRender = null;\n}\n\n// Things we do here to save some bytes but are not proper JS inheritance:\n// - call `new Component()` as the prototype\n// - do not set `Suspense.prototype.constructor` to `Suspense`\nSuspense.prototype = new Component();\n\n/**\n * @this {import('./internal').SuspenseComponent}\n * @param {Promise} promise The thrown promise\n * @param {import('./internal').VNode} suspendingVNode The suspending component\n */\nSuspense.prototype._childDidSuspend = function(promise, suspendingVNode) {\n\tconst suspendingComponent = suspendingVNode._component;\n\n\t/** @type {import('./internal').SuspenseComponent} */\n\tconst c = this;\n\n\tif (c._suspenders == null) {\n\t\tc._suspenders = [];\n\t}\n\tc._suspenders.push(suspendingComponent);\n\n\tconst resolve = suspended(c._vnode);\n\n\tlet resolved = false;\n\tconst onResolved = () => {\n\t\tif (resolved) return;\n\n\t\tresolved = true;\n\t\tsuspendingComponent._onResolve = null;\n\n\t\tif (resolve) {\n\t\t\tresolve(onSuspensionComplete);\n\t\t} else {\n\t\t\tonSuspensionComplete();\n\t\t}\n\t};\n\n\tsuspendingComponent._onResolve = onResolved;\n\n\tconst onSuspensionComplete = () => {\n\t\tif (!--c._pendingSuspensionCount) {\n\t\t\t// If the suspension was during hydration we don't need to restore the\n\t\t\t// suspended children into the _children array\n\t\t\tif (c.state._suspended) {\n\t\t\t\tconst suspendedVNode = c.state._suspended;\n\t\t\t\tc._vnode._children[0] = removeOriginal(\n\t\t\t\t\tsuspendedVNode,\n\t\t\t\t\tsuspendedVNode._component._parentDom,\n\t\t\t\t\tsuspendedVNode._component._originalParentDom\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tc.setState({ _suspended: (c._detachOnNextRender = null) });\n\n\t\t\tlet suspended;\n\t\t\twhile ((suspended = c._suspenders.pop())) {\n\t\t\t\tsuspended.forceUpdate();\n\t\t\t}\n\t\t}\n\t};\n\n\t/**\n\t * We do not set `suspended: true` during hydration because we want the actual markup\n\t * to remain on screen and hydrate it when the suspense actually gets resolved.\n\t * While in non-hydration cases the usual fallback -> component flow would occour.\n\t */\n\tconst wasHydrating = suspendingVNode._hydrating === true;\n\tif (!c._pendingSuspensionCount++ && !wasHydrating) {\n\t\tc.setState({ _suspended: (c._detachOnNextRender = c._vnode._children[0]) });\n\t}\n\tpromise.then(onResolved, onResolved);\n};\n\nSuspense.prototype.componentWillUnmount = function() {\n\tthis._suspenders = [];\n};\n\n/**\n * @this {import('./internal').SuspenseComponent}\n * @param {import('./internal').SuspenseComponent[\"props\"]} props\n * @param {import('./internal').SuspenseState} state\n */\nSuspense.prototype.render = function(props, state) {\n\tif (this._detachOnNextRender) {\n\t\t// When the Suspense's _vnode was created by a call to createVNode\n\t\t// (i.e. due to a setState further up in the tree)\n\t\t// it's _children prop is null, in this case we \"forget\" about the parked vnodes to detach\n\t\tif (this._vnode._children) {\n\t\t\tconst detachedParent = document.createElement('div');\n\t\t\tconst detachedComponent = this._vnode._children[0]._component;\n\t\t\tthis._vnode._children[0] = detachedClone(\n\t\t\t\tthis._detachOnNextRender,\n\t\t\t\tdetachedParent,\n\t\t\t\t(detachedComponent._originalParentDom = detachedComponent._parentDom)\n\t\t\t);\n\t\t}\n\n\t\tthis._detachOnNextRender = null;\n\t}\n\n\t// Wrap fallback tree in a VNode that prevents itself from being marked as aborting mid-hydration:\n\t/** @type {import('./internal').VNode} */\n\tconst fallback =\n\t\tstate._suspended && createElement(Fragment, null, props.fallback);\n\tif (fallback) fallback._hydrating = null;\n\n\treturn [\n\t\tcreateElement(Fragment, null, state._suspended ? null : props.children),\n\t\tfallback\n\t];\n};\n\n/**\n * Checks and calls the parent component's _suspended method, passing in the\n * suspended vnode. This is a way for a parent (e.g. SuspenseList) to get notified\n * that one of its children/descendants suspended.\n *\n * The parent MAY return a callback. The callback will get called when the\n * suspension resolves, notifying the parent of the fact.\n * Moreover, the callback gets function `unsuspend` as a parameter. The resolved\n * child descendant will not actually get unsuspended until `unsuspend` gets called.\n * This is a way for the parent to delay unsuspending.\n *\n * If the parent does not return a callback then the resolved vnode\n * gets unsuspended immediately when it resolves.\n *\n * @param {import('./internal').VNode} vnode\n * @returns {((unsuspend: () => void) => void)?}\n */\nexport function suspended(vnode) {\n\t/** @type {import('./internal').Component} */\n\tlet component = vnode._parent._component;\n\treturn component && component._suspended && component._suspended(vnode);\n}\n\nexport function lazy(loader) {\n\tlet prom;\n\tlet component;\n\tlet error;\n\n\tfunction Lazy(props) {\n\t\tif (!prom) {\n\t\t\tprom = loader();\n\t\t\tprom.then(\n\t\t\t\texports => {\n\t\t\t\t\tcomponent = exports.default || exports;\n\t\t\t\t},\n\t\t\t\te => {\n\t\t\t\t\terror = e;\n\t\t\t\t}\n\t\t\t);\n\t\t}\n\n\t\tif (error) {\n\t\t\tthrow error;\n\t\t}\n\n\t\tif (!component) {\n\t\t\tthrow prom;\n\t\t}\n\n\t\treturn createElement(component, props);\n\t}\n\n\tLazy.displayName = 'Lazy';\n\tLazy._forwarded = true;\n\treturn Lazy;\n}\n","import { Component, toChildArray } from 'preact';\nimport { suspended } from './suspense.js';\n\n// Indexes to linked list nodes (nodes are stored as arrays to save bytes).\nconst SUSPENDED_COUNT = 0;\nconst RESOLVED_COUNT = 1;\nconst NEXT_NODE = 2;\n\n// Having custom inheritance instead of a class here saves a lot of bytes.\nexport function SuspenseList() {\n\tthis._next = null;\n\tthis._map = null;\n}\n\n// Mark one of child's earlier suspensions as resolved.\n// Some pending callbacks may become callable due to this\n// (e.g. the last suspended descendant gets resolved when\n// revealOrder === 'together'). Process those callbacks as well.\nconst resolve = (list, child, node) => {\n\tif (++node[RESOLVED_COUNT] === node[SUSPENDED_COUNT]) {\n\t\t// The number a child (or any of its descendants) has been suspended\n\t\t// matches the number of times it's been resolved. Therefore we\n\t\t// mark the child as completely resolved by deleting it from ._map.\n\t\t// This is used to figure out when *all* children have been completely\n\t\t// resolved when revealOrder is 'together'.\n\t\tlist._map.delete(child);\n\t}\n\n\t// If revealOrder is falsy then we can do an early exit, as the\n\t// callbacks won't get queued in the node anyway.\n\t// If revealOrder is 'together' then also do an early exit\n\t// if all suspended descendants have not yet been resolved.\n\tif (\n\t\t!list.props.revealOrder ||\n\t\t(list.props.revealOrder[0] === 't' && list._map.size)\n\t) {\n\t\treturn;\n\t}\n\n\t// Walk the currently suspended children in order, calling their\n\t// stored callbacks on the way. Stop if we encounter a child that\n\t// has not been completely resolved yet.\n\tnode = list._next;\n\twhile (node) {\n\t\twhile (node.length > 3) {\n\t\t\tnode.pop()();\n\t\t}\n\t\tif (node[RESOLVED_COUNT] < node[SUSPENDED_COUNT]) {\n\t\t\tbreak;\n\t\t}\n\t\tlist._next = node = node[NEXT_NODE];\n\t}\n};\n\n// Things we do here to save some bytes but are not proper JS inheritance:\n// - call `new Component()` as the prototype\n// - do not set `Suspense.prototype.constructor` to `Suspense`\nSuspenseList.prototype = new Component();\n\nSuspenseList.prototype._suspended = function(child) {\n\tconst list = this;\n\tconst delegated = suspended(list._vnode);\n\n\tlet node = list._map.get(child);\n\tnode[SUSPENDED_COUNT]++;\n\n\treturn unsuspend => {\n\t\tconst wrappedUnsuspend = () => {\n\t\t\tif (!list.props.revealOrder) {\n\t\t\t\t// Special case the undefined (falsy) revealOrder, as there\n\t\t\t\t// is no need to coordinate a specific order or unsuspends.\n\t\t\t\tunsuspend();\n\t\t\t} else {\n\t\t\t\tnode.push(unsuspend);\n\t\t\t\tresolve(list, child, node);\n\t\t\t}\n\t\t};\n\t\tif (delegated) {\n\t\t\tdelegated(wrappedUnsuspend);\n\t\t} else {\n\t\t\twrappedUnsuspend();\n\t\t}\n\t};\n};\n\nSuspenseList.prototype.render = function(props) {\n\tthis._next = null;\n\tthis._map = new Map();\n\n\tconst children = toChildArray(props.children);\n\tif (props.revealOrder && props.revealOrder[0] === 'b') {\n\t\t// If order === 'backwards' (or, well, anything starting with a 'b')\n\t\t// then flip the child list around so that the last child will be\n\t\t// the first in the linked list.\n\t\tchildren.reverse();\n\t}\n\t// Build the linked list. Iterate through the children in reverse order\n\t// so that `_next` points to the first linked list node to be resolved.\n\tfor (let i = children.length; i--; ) {\n\t\t// Create a new linked list node as an array of form:\n\t\t// \t[suspended_count, resolved_count, next_node]\n\t\t// where suspended_count and resolved_count are numeric counters for\n\t\t// keeping track how many times a node has been suspended and resolved.\n\t\t//\n\t\t// Note that suspended_count starts from 1 instead of 0, so we can block\n\t\t// processing callbacks until componentDidMount has been called. In a sense\n\t\t// node is suspended at least until componentDidMount gets called!\n\t\t//\n\t\t// Pending callbacks are added to the end of the node:\n\t\t// \t[suspended_count, resolved_count, next_node, callback_0, callback_1, ...]\n\t\tthis._map.set(children[i], (this._next = [1, 0, this._next]));\n\t}\n\treturn props.children;\n};\n\nSuspenseList.prototype.componentDidUpdate = SuspenseList.prototype.componentDidMount = function() {\n\t// Iterate through all children after mounting for two reasons:\n\t// 1. As each node[SUSPENDED_COUNT] starts from 1, this iteration increases\n\t// each node[RELEASED_COUNT] by 1, therefore balancing the counters.\n\t// The nodes can now be completely consumed from the linked list.\n\t// 2. Handle nodes that might have gotten resolved between render and\n\t// componentDidMount.\n\tthis._map.forEach((node, child) => {\n\t\tresolve(this, child, node);\n\t});\n};\n","import { createElement, render } from 'preact';\n\n/**\n * @param {import('../../src/index').RenderableProps<{ context: any }>} props\n */\nfunction ContextProvider(props) {\n\tthis.getChildContext = () => props.context;\n\treturn props.children;\n}\n\n/**\n * Portal component\n * @this {import('./internal').Component}\n * @param {object | null | undefined} props\n *\n * TODO: use createRoot() instead of fake root\n */\nfunction Portal(props) {\n\tconst _this = this;\n\tlet container = props._container;\n\n\t_this.componentWillUnmount = function() {\n\t\trender(null, _this._temp);\n\t\t_this._temp = null;\n\t\t_this._container = null;\n\t};\n\n\t// When we change container we should clear our old container and\n\t// indicate a new mount.\n\tif (_this._container && _this._container !== container) {\n\t\t_this.componentWillUnmount();\n\t}\n\n\t// When props.vnode is undefined/false/null we are dealing with some kind of\n\t// conditional vnode. This should not trigger a render.\n\tif (props._vnode) {\n\t\tif (!_this._temp) {\n\t\t\t_this._container = container;\n\n\t\t\t// Create a fake DOM parent node that manages a subset of `container`'s children:\n\t\t\t_this._temp = {\n\t\t\t\tnodeType: 1,\n\t\t\t\tparentNode: container,\n\t\t\t\tchildNodes: [],\n\t\t\t\tappendChild(child) {\n\t\t\t\t\tthis.childNodes.push(child);\n\t\t\t\t\t_this._container.appendChild(child);\n\t\t\t\t},\n\t\t\t\tinsertBefore(child, before) {\n\t\t\t\t\tthis.childNodes.push(child);\n\t\t\t\t\t_this._container.appendChild(child);\n\t\t\t\t},\n\t\t\t\tremoveChild(child) {\n\t\t\t\t\tthis.childNodes.splice(this.childNodes.indexOf(child) >>> 1, 1);\n\t\t\t\t\t_this._container.removeChild(child);\n\t\t\t\t}\n\t\t\t};\n\t\t}\n\n\t\t// Render our wrapping element into temp.\n\t\trender(\n\t\t\tcreateElement(ContextProvider, { context: _this.context }, props._vnode),\n\t\t\t_this._temp\n\t\t);\n\t}\n\t// When we come from a conditional render, on a mounted\n\t// portal we should clear the DOM.\n\telse if (_this._temp) {\n\t\t_this.componentWillUnmount();\n\t}\n}\n\n/**\n * Create a `Portal` to continue rendering the vnode tree at a different DOM node\n * @param {import('./internal').VNode} vnode The vnode to render\n * @param {import('./internal').PreactElement} container The DOM node to continue rendering in to.\n */\nexport function createPortal(vnode, container) {\n\tconst el = createElement(Portal, { _vnode: vnode, _container: container });\n\tel.containerInfo = container;\n\treturn el;\n}\n","import * as preact from 'preact';\nimport { Component, createElement, isValidElement, Fragment, createRef } from 'preact';\nimport { createPortal } from 'preact/compat';\n\nfunction injectStyles(css) {\n if (!css || typeof document === 'undefined') {\n return;\n }\n const head = document.head || document.getElementsByTagName('head')[0];\n const style = document.createElement('style');\n style.type = 'text/css';\n head.appendChild(style);\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n }\n else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nclass DelayedRunner {\n constructor(drainedOption) {\n this.drainedOption = drainedOption;\n this.isRunning = false;\n this.isDirty = false;\n this.pauseDepths = {};\n this.timeoutId = 0;\n }\n request(delay) {\n this.isDirty = true;\n if (!this.isPaused()) {\n this.clearTimeout();\n if (delay == null) {\n this.tryDrain();\n }\n else {\n this.timeoutId = setTimeout(// NOT OPTIMAL! TODO: look at debounce\n this.tryDrain.bind(this), delay);\n }\n }\n }\n pause(scope = '') {\n let { pauseDepths } = this;\n pauseDepths[scope] = (pauseDepths[scope] || 0) + 1;\n this.clearTimeout();\n }\n resume(scope = '', force) {\n let { pauseDepths } = this;\n if (scope in pauseDepths) {\n if (force) {\n delete pauseDepths[scope];\n }\n else {\n pauseDepths[scope] -= 1;\n let depth = pauseDepths[scope];\n if (depth <= 0) {\n delete pauseDepths[scope];\n }\n }\n this.tryDrain();\n }\n }\n isPaused() {\n return Object.keys(this.pauseDepths).length;\n }\n tryDrain() {\n if (!this.isRunning && !this.isPaused()) {\n this.isRunning = true;\n while (this.isDirty) {\n this.isDirty = false;\n this.drained(); // might set isDirty to true again\n }\n this.isRunning = false;\n }\n }\n clear() {\n this.clearTimeout();\n this.isDirty = false;\n this.pauseDepths = {};\n }\n clearTimeout() {\n if (this.timeoutId) {\n clearTimeout(this.timeoutId);\n this.timeoutId = 0;\n }\n }\n drained() {\n if (this.drainedOption) {\n this.drainedOption();\n }\n }\n}\n\nconst { hasOwnProperty } = Object.prototype;\n// Merges an array of objects into a single object.\n// The second argument allows for an array of property names who's object values will be merged together.\nfunction mergeProps(propObjs, complexPropsMap) {\n let dest = {};\n if (complexPropsMap) {\n for (let name in complexPropsMap) {\n let complexObjs = [];\n // collect the trailing object values, stopping when a non-object is discovered\n for (let i = propObjs.length - 1; i >= 0; i -= 1) {\n let val = propObjs[i][name];\n if (typeof val === 'object' && val) { // non-null object\n complexObjs.unshift(val);\n }\n else if (val !== undefined) {\n dest[name] = val; // if there were no objects, this value will be used\n break;\n }\n }\n // if the trailing values were objects, use the merged value\n if (complexObjs.length) {\n dest[name] = mergeProps(complexObjs);\n }\n }\n }\n // copy values into the destination, going from last to first\n for (let i = propObjs.length - 1; i >= 0; i -= 1) {\n let props = propObjs[i];\n for (let name in props) {\n if (!(name in dest)) { // if already assigned by previous props or complex props, don't reassign\n dest[name] = props[name];\n }\n }\n }\n return dest;\n}\nfunction filterHash(hash, func) {\n let filtered = {};\n for (let key in hash) {\n if (func(hash[key], key)) {\n filtered[key] = hash[key];\n }\n }\n return filtered;\n}\nfunction mapHash(hash, func) {\n let newHash = {};\n for (let key in hash) {\n newHash[key] = func(hash[key], key);\n }\n return newHash;\n}\nfunction arrayToHash(a) {\n let hash = {};\n for (let item of a) {\n hash[item] = true;\n }\n return hash;\n}\n// TODO: reassess browser support\n// https://caniuse.com/?search=object.values\nfunction hashValuesToArray(obj) {\n let a = [];\n for (let key in obj) {\n a.push(obj[key]);\n }\n return a;\n}\nfunction isPropsEqual(obj0, obj1) {\n if (obj0 === obj1) {\n return true;\n }\n for (let key in obj0) {\n if (hasOwnProperty.call(obj0, key)) {\n if (!(key in obj1)) {\n return false;\n }\n }\n }\n for (let key in obj1) {\n if (hasOwnProperty.call(obj1, key)) {\n if (obj0[key] !== obj1[key]) {\n return false;\n }\n }\n }\n return true;\n}\nconst HANDLER_RE = /^on[A-Z]/;\nfunction isNonHandlerPropsEqual(obj0, obj1) {\n const keys = getUnequalProps(obj0, obj1);\n for (let key of keys) {\n if (!HANDLER_RE.test(key)) {\n return false;\n }\n }\n return true;\n}\nfunction getUnequalProps(obj0, obj1) {\n let keys = [];\n for (let key in obj0) {\n if (hasOwnProperty.call(obj0, key)) {\n if (!(key in obj1)) {\n keys.push(key);\n }\n }\n }\n for (let key in obj1) {\n if (hasOwnProperty.call(obj1, key)) {\n if (obj0[key] !== obj1[key]) {\n keys.push(key);\n }\n }\n }\n return keys;\n}\nfunction compareObjs(oldProps, newProps, equalityFuncs = {}) {\n if (oldProps === newProps) {\n return true;\n }\n for (let key in newProps) {\n if (key in oldProps && isObjValsEqual(oldProps[key], newProps[key], equalityFuncs[key])) ;\n else {\n return false;\n }\n }\n // check for props that were omitted in the new\n for (let key in oldProps) {\n if (!(key in newProps)) {\n return false;\n }\n }\n return true;\n}\n/*\nassumed \"true\" equality for handler names like \"onReceiveSomething\"\n*/\nfunction isObjValsEqual(val0, val1, comparator) {\n if (val0 === val1 || comparator === true) {\n return true;\n }\n if (comparator) {\n return comparator(val0, val1);\n }\n return false;\n}\nfunction collectFromHash(hash, startIndex = 0, endIndex, step = 1) {\n let res = [];\n if (endIndex == null) {\n endIndex = Object.keys(hash).length;\n }\n for (let i = startIndex; i < endIndex; i += step) {\n let val = hash[i];\n if (val !== undefined) { // will disregard undefined for sparse arrays\n res.push(val);\n }\n }\n return res;\n}\n\n// TODO: new util arrayify?\nfunction removeExact(array, exactVal) {\n let removeCnt = 0;\n let i = 0;\n while (i < array.length) {\n if (array[i] === exactVal) {\n array.splice(i, 1);\n removeCnt += 1;\n }\n else {\n i += 1;\n }\n }\n return removeCnt;\n}\nfunction isArraysEqual(a0, a1, equalityFunc) {\n if (a0 === a1) {\n return true;\n }\n let len = a0.length;\n let i;\n if (len !== a1.length) { // not array? or not same length?\n return false;\n }\n for (i = 0; i < len; i += 1) {\n if (!(equalityFunc ? equalityFunc(a0[i], a1[i]) : a0[i] === a1[i])) {\n return false;\n }\n }\n return true;\n}\n\nfunction memoize(workerFunc, resEquality, teardownFunc) {\n let currentArgs;\n let currentRes;\n return function (...newArgs) {\n if (!currentArgs) {\n currentRes = workerFunc.apply(this, newArgs);\n }\n else if (!isArraysEqual(currentArgs, newArgs)) {\n if (teardownFunc) {\n teardownFunc(currentRes);\n }\n let res = workerFunc.apply(this, newArgs);\n if (!resEquality || !resEquality(res, currentRes)) {\n currentRes = res;\n }\n }\n currentArgs = newArgs;\n return currentRes;\n };\n}\nfunction memoizeObjArg(workerFunc, resEquality, teardownFunc) {\n let currentArg;\n let currentRes;\n return (newArg) => {\n if (!currentArg) {\n currentRes = workerFunc.call(this, newArg);\n }\n else if (!isPropsEqual(currentArg, newArg)) {\n if (teardownFunc) {\n teardownFunc(currentRes);\n }\n let res = workerFunc.call(this, newArg);\n if (!resEquality || !resEquality(res, currentRes)) {\n currentRes = res;\n }\n }\n currentArg = newArg;\n return currentRes;\n };\n}\nfunction memoizeArraylike(// used at all?\nworkerFunc, resEquality, teardownFunc) {\n let currentArgSets = [];\n let currentResults = [];\n return (newArgSets) => {\n let currentLen = currentArgSets.length;\n let newLen = newArgSets.length;\n let i = 0;\n for (; i < currentLen; i += 1) {\n if (!newArgSets[i]) { // one of the old sets no longer exists\n if (teardownFunc) {\n teardownFunc(currentResults[i]);\n }\n }\n else if (!isArraysEqual(currentArgSets[i], newArgSets[i])) {\n if (teardownFunc) {\n teardownFunc(currentResults[i]);\n }\n let res = workerFunc.apply(this, newArgSets[i]);\n if (!resEquality || !resEquality(res, currentResults[i])) {\n currentResults[i] = res;\n }\n }\n }\n for (; i < newLen; i += 1) {\n currentResults[i] = workerFunc.apply(this, newArgSets[i]);\n }\n currentArgSets = newArgSets;\n currentResults.splice(newLen); // remove excess\n return currentResults;\n };\n}\nfunction memoizeHashlike(workerFunc, resEquality, teardownFunc) {\n let currentArgHash = {};\n let currentResHash = {};\n return (newArgHash) => {\n let newResHash = {};\n for (let key in newArgHash) {\n if (!currentResHash[key]) {\n newResHash[key] = workerFunc.apply(this, newArgHash[key]);\n }\n else if (!isArraysEqual(currentArgHash[key], newArgHash[key])) {\n if (teardownFunc) {\n teardownFunc(currentResHash[key]);\n }\n let res = workerFunc.apply(this, newArgHash[key]);\n newResHash[key] = (resEquality && resEquality(res, currentResHash[key]))\n ? currentResHash[key]\n : res;\n }\n else {\n newResHash[key] = currentResHash[key];\n }\n }\n currentArgHash = newArgHash;\n currentResHash = newResHash;\n return newResHash;\n };\n}\n\nfunction removeElement(el) {\n if (el.parentNode) {\n el.parentNode.removeChild(el);\n }\n}\n// Querying\n// ----------------------------------------------------------------------------------------------------------------\nfunction elementClosest(el, selector) {\n if (el.closest) {\n return el.closest(selector);\n // really bad fallback for IE\n // from https://developer.mozilla.org/en-US/docs/Web/API/Element/closest\n }\n if (!document.documentElement.contains(el)) {\n return null;\n }\n do {\n if (elementMatches(el, selector)) {\n return el;\n }\n el = (el.parentElement || el.parentNode);\n } while (el !== null && el.nodeType === 1);\n return null;\n}\nfunction elementMatches(el, selector) {\n let method = el.matches || el.matchesSelector || el.msMatchesSelector;\n return method.call(el, selector);\n}\n// accepts multiple subject els\n// returns a real array. good for methods like forEach\n// TODO: accept the document\nfunction findElements(container, selector) {\n let containers = container instanceof HTMLElement ? [container] : container;\n let allMatches = [];\n for (let i = 0; i < containers.length; i += 1) {\n let matches = containers[i].querySelectorAll(selector);\n for (let j = 0; j < matches.length; j += 1) {\n allMatches.push(matches[j]);\n }\n }\n return allMatches;\n}\n// accepts multiple subject els\n// only queries direct child elements // TODO: rename to findDirectChildren!\nfunction findDirectChildren(parent, selector) {\n let parents = parent instanceof HTMLElement ? [parent] : parent;\n let allMatches = [];\n for (let i = 0; i < parents.length; i += 1) {\n let childNodes = parents[i].children; // only ever elements\n for (let j = 0; j < childNodes.length; j += 1) {\n let childNode = childNodes[j];\n if (!selector || elementMatches(childNode, selector)) {\n allMatches.push(childNode);\n }\n }\n }\n return allMatches;\n}\n// Style\n// ----------------------------------------------------------------------------------------------------------------\nconst PIXEL_PROP_RE = /(top|left|right|bottom|width|height)$/i;\nfunction applyStyle(el, props) {\n for (let propName in props) {\n applyStyleProp(el, propName, props[propName]);\n }\n}\nfunction applyStyleProp(el, name, val) {\n if (val == null) {\n el.style[name] = '';\n }\n else if (typeof val === 'number' && PIXEL_PROP_RE.test(name)) {\n el.style[name] = `${val}px`;\n }\n else {\n el.style[name] = val;\n }\n}\n// Event Handling\n// ----------------------------------------------------------------------------------------------------------------\n// if intercepting bubbled events at the document/window/body level,\n// and want to see originating element (the 'target'), use this util instead\n// of `ev.target` because it goes within web-component boundaries.\nfunction getEventTargetViaRoot(ev) {\n var _a, _b;\n return (_b = (_a = ev.composedPath) === null || _a === void 0 ? void 0 : _a.call(ev)[0]) !== null && _b !== void 0 ? _b : ev.target;\n}\n// Shadow DOM consuderations\n// ----------------------------------------------------------------------------------------------------------------\nfunction getElRoot(el) {\n return el.getRootNode ? el.getRootNode() : document;\n}\n// Unique ID for DOM attribute\nlet guid$1 = 0;\nfunction getUniqueDomId() {\n guid$1 += 1;\n return 'fc-dom-' + guid$1;\n}\n\n// Stops a mouse/touch event from doing it's native browser action\nfunction preventDefault(ev) {\n ev.preventDefault();\n}\n// Event Delegation\n// ----------------------------------------------------------------------------------------------------------------\nfunction buildDelegationHandler(selector, handler) {\n return (ev) => {\n let matchedChild = elementClosest(ev.target, selector);\n if (matchedChild) {\n handler.call(matchedChild, ev, matchedChild);\n }\n };\n}\nfunction listenBySelector(container, eventType, selector, handler) {\n let attachedHandler = buildDelegationHandler(selector, handler);\n container.addEventListener(eventType, attachedHandler);\n return () => {\n container.removeEventListener(eventType, attachedHandler);\n };\n}\nfunction listenToHoverBySelector(container, selector, onMouseEnter, onMouseLeave) {\n let currentMatchedChild;\n return listenBySelector(container, 'mouseover', selector, (mouseOverEv, matchedChild) => {\n if (matchedChild !== currentMatchedChild) {\n currentMatchedChild = matchedChild;\n onMouseEnter(mouseOverEv, matchedChild);\n let realOnMouseLeave = (mouseLeaveEv) => {\n currentMatchedChild = null;\n onMouseLeave(mouseLeaveEv, matchedChild);\n matchedChild.removeEventListener('mouseleave', realOnMouseLeave);\n };\n // listen to the next mouseleave, and then unattach\n matchedChild.addEventListener('mouseleave', realOnMouseLeave);\n }\n });\n}\n// Animation\n// ----------------------------------------------------------------------------------------------------------------\nconst transitionEventNames = [\n 'webkitTransitionEnd',\n 'otransitionend',\n 'oTransitionEnd',\n 'msTransitionEnd',\n 'transitionend',\n];\n// triggered only when the next single subsequent transition finishes\nfunction whenTransitionDone(el, callback) {\n let realCallback = (ev) => {\n callback(ev);\n transitionEventNames.forEach((eventName) => {\n el.removeEventListener(eventName, realCallback);\n });\n };\n transitionEventNames.forEach((eventName) => {\n el.addEventListener(eventName, realCallback); // cross-browser way to determine when the transition finishes\n });\n}\n// ARIA workarounds\n// ----------------------------------------------------------------------------------------------------------------\nfunction createAriaClickAttrs(handler) {\n return Object.assign({ onClick: handler }, createAriaKeyboardAttrs(handler));\n}\nfunction createAriaKeyboardAttrs(handler) {\n return {\n tabIndex: 0,\n onKeyDown(ev) {\n if (ev.key === 'Enter' || ev.key === ' ') {\n handler(ev);\n ev.preventDefault(); // if space, don't scroll down page\n }\n },\n };\n}\n\nlet guidNumber = 0;\nfunction guid() {\n guidNumber += 1;\n return String(guidNumber);\n}\n/* FullCalendar-specific DOM Utilities\n----------------------------------------------------------------------------------------------------------------------*/\n// Make the mouse cursor express that an event is not allowed in the current area\nfunction disableCursor() {\n document.body.classList.add('fc-not-allowed');\n}\n// Returns the mouse cursor to its original look\nfunction enableCursor() {\n document.body.classList.remove('fc-not-allowed');\n}\n/* Selection\n----------------------------------------------------------------------------------------------------------------------*/\nfunction preventSelection(el) {\n el.classList.add('fc-unselectable');\n el.addEventListener('selectstart', preventDefault);\n}\nfunction allowSelection(el) {\n el.classList.remove('fc-unselectable');\n el.removeEventListener('selectstart', preventDefault);\n}\n/* Context Menu\n----------------------------------------------------------------------------------------------------------------------*/\nfunction preventContextMenu(el) {\n el.addEventListener('contextmenu', preventDefault);\n}\nfunction allowContextMenu(el) {\n el.removeEventListener('contextmenu', preventDefault);\n}\nfunction parseFieldSpecs(input) {\n let specs = [];\n let tokens = [];\n let i;\n let token;\n if (typeof input === 'string') {\n tokens = input.split(/\\s*,\\s*/);\n }\n else if (typeof input === 'function') {\n tokens = [input];\n }\n else if (Array.isArray(input)) {\n tokens = input;\n }\n for (i = 0; i < tokens.length; i += 1) {\n token = tokens[i];\n if (typeof token === 'string') {\n specs.push(token.charAt(0) === '-' ?\n { field: token.substring(1), order: -1 } :\n { field: token, order: 1 });\n }\n else if (typeof token === 'function') {\n specs.push({ func: token });\n }\n }\n return specs;\n}\nfunction compareByFieldSpecs(obj0, obj1, fieldSpecs) {\n let i;\n let cmp;\n for (i = 0; i < fieldSpecs.length; i += 1) {\n cmp = compareByFieldSpec(obj0, obj1, fieldSpecs[i]);\n if (cmp) {\n return cmp;\n }\n }\n return 0;\n}\nfunction compareByFieldSpec(obj0, obj1, fieldSpec) {\n if (fieldSpec.func) {\n return fieldSpec.func(obj0, obj1);\n }\n return flexibleCompare(obj0[fieldSpec.field], obj1[fieldSpec.field])\n * (fieldSpec.order || 1);\n}\nfunction flexibleCompare(a, b) {\n if (!a && !b) {\n return 0;\n }\n if (b == null) {\n return -1;\n }\n if (a == null) {\n return 1;\n }\n if (typeof a === 'string' || typeof b === 'string') {\n return String(a).localeCompare(String(b));\n }\n return a - b;\n}\n/* String Utilities\n----------------------------------------------------------------------------------------------------------------------*/\nfunction padStart(val, len) {\n let s = String(val);\n return '000'.substr(0, len - s.length) + s;\n}\nfunction formatWithOrdinals(formatter, args, fallbackText) {\n if (typeof formatter === 'function') {\n return formatter(...args);\n }\n if (typeof formatter === 'string') { // non-blank string\n return args.reduce((str, arg, index) => (str.replace('$' + index, arg || '')), formatter);\n }\n return fallbackText;\n}\n/* Number Utilities\n----------------------------------------------------------------------------------------------------------------------*/\nfunction compareNumbers(a, b) {\n return a - b;\n}\nfunction isInt(n) {\n return n % 1 === 0;\n}\n/* FC-specific DOM dimension stuff\n----------------------------------------------------------------------------------------------------------------------*/\nfunction computeSmallestCellWidth(cellEl) {\n let allWidthEl = cellEl.querySelector('.fc-scrollgrid-shrink-frame');\n let contentWidthEl = cellEl.querySelector('.fc-scrollgrid-shrink-cushion');\n if (!allWidthEl) {\n throw new Error('needs fc-scrollgrid-shrink-frame className'); // TODO: use const\n }\n if (!contentWidthEl) {\n throw new Error('needs fc-scrollgrid-shrink-cushion className');\n }\n return cellEl.getBoundingClientRect().width - allWidthEl.getBoundingClientRect().width + // the cell padding+border\n contentWidthEl.getBoundingClientRect().width;\n}\n\nconst DAY_IDS = ['sun', 'mon', 'tue', 'wed', 'thu', 'fri', 'sat'];\n// Adding\nfunction addWeeks(m, n) {\n let a = dateToUtcArray(m);\n a[2] += n * 7;\n return arrayToUtcDate(a);\n}\nfunction addDays(m, n) {\n let a = dateToUtcArray(m);\n a[2] += n;\n return arrayToUtcDate(a);\n}\nfunction addMs(m, n) {\n let a = dateToUtcArray(m);\n a[6] += n;\n return arrayToUtcDate(a);\n}\n// Diffing (all return floats)\n// TODO: why not use ranges?\nfunction diffWeeks(m0, m1) {\n return diffDays(m0, m1) / 7;\n}\nfunction diffDays(m0, m1) {\n return (m1.valueOf() - m0.valueOf()) / (1000 * 60 * 60 * 24);\n}\nfunction diffHours(m0, m1) {\n return (m1.valueOf() - m0.valueOf()) / (1000 * 60 * 60);\n}\nfunction diffMinutes(m0, m1) {\n return (m1.valueOf() - m0.valueOf()) / (1000 * 60);\n}\nfunction diffSeconds(m0, m1) {\n return (m1.valueOf() - m0.valueOf()) / 1000;\n}\nfunction diffDayAndTime(m0, m1) {\n let m0day = startOfDay(m0);\n let m1day = startOfDay(m1);\n return {\n years: 0,\n months: 0,\n days: Math.round(diffDays(m0day, m1day)),\n milliseconds: (m1.valueOf() - m1day.valueOf()) - (m0.valueOf() - m0day.valueOf()),\n };\n}\n// Diffing Whole Units\nfunction diffWholeWeeks(m0, m1) {\n let d = diffWholeDays(m0, m1);\n if (d !== null && d % 7 === 0) {\n return d / 7;\n }\n return null;\n}\nfunction diffWholeDays(m0, m1) {\n if (timeAsMs(m0) === timeAsMs(m1)) {\n return Math.round(diffDays(m0, m1));\n }\n return null;\n}\n// Start-Of\nfunction startOfDay(m) {\n return arrayToUtcDate([\n m.getUTCFullYear(),\n m.getUTCMonth(),\n m.getUTCDate(),\n ]);\n}\nfunction startOfHour(m) {\n return arrayToUtcDate([\n m.getUTCFullYear(),\n m.getUTCMonth(),\n m.getUTCDate(),\n m.getUTCHours(),\n ]);\n}\nfunction startOfMinute(m) {\n return arrayToUtcDate([\n m.getUTCFullYear(),\n m.getUTCMonth(),\n m.getUTCDate(),\n m.getUTCHours(),\n m.getUTCMinutes(),\n ]);\n}\nfunction startOfSecond(m) {\n return arrayToUtcDate([\n m.getUTCFullYear(),\n m.getUTCMonth(),\n m.getUTCDate(),\n m.getUTCHours(),\n m.getUTCMinutes(),\n m.getUTCSeconds(),\n ]);\n}\n// Week Computation\nfunction weekOfYear(marker, dow, doy) {\n let y = marker.getUTCFullYear();\n let w = weekOfGivenYear(marker, y, dow, doy);\n if (w < 1) {\n return weekOfGivenYear(marker, y - 1, dow, doy);\n }\n let nextW = weekOfGivenYear(marker, y + 1, dow, doy);\n if (nextW >= 1) {\n return Math.min(w, nextW);\n }\n return w;\n}\nfunction weekOfGivenYear(marker, year, dow, doy) {\n let firstWeekStart = arrayToUtcDate([year, 0, 1 + firstWeekOffset(year, dow, doy)]);\n let dayStart = startOfDay(marker);\n let days = Math.round(diffDays(firstWeekStart, dayStart));\n return Math.floor(days / 7) + 1; // zero-indexed\n}\n// start-of-first-week - start-of-year\nfunction firstWeekOffset(year, dow, doy) {\n // first-week day -- which january is always in the first week (4 for iso, 1 for other)\n let fwd = 7 + dow - doy;\n // first-week day local weekday -- which local weekday is fwd\n let fwdlw = (7 + arrayToUtcDate([year, 0, fwd]).getUTCDay() - dow) % 7;\n return -fwdlw + fwd - 1;\n}\n// Array Conversion\nfunction dateToLocalArray(date) {\n return [\n date.getFullYear(),\n date.getMonth(),\n date.getDate(),\n date.getHours(),\n date.getMinutes(),\n date.getSeconds(),\n date.getMilliseconds(),\n ];\n}\nfunction arrayToLocalDate(a) {\n return new Date(a[0], a[1] || 0, a[2] == null ? 1 : a[2], // day of month\n a[3] || 0, a[4] || 0, a[5] || 0);\n}\nfunction dateToUtcArray(date) {\n return [\n date.getUTCFullYear(),\n date.getUTCMonth(),\n date.getUTCDate(),\n date.getUTCHours(),\n date.getUTCMinutes(),\n date.getUTCSeconds(),\n date.getUTCMilliseconds(),\n ];\n}\nfunction arrayToUtcDate(a) {\n // according to web standards (and Safari), a month index is required.\n // massage if only given a year.\n if (a.length === 1) {\n a = a.concat([0]);\n }\n return new Date(Date.UTC(...a));\n}\n// Other Utils\nfunction isValidDate(m) {\n return !isNaN(m.valueOf());\n}\nfunction timeAsMs(m) {\n return m.getUTCHours() * 1000 * 60 * 60 +\n m.getUTCMinutes() * 1000 * 60 +\n m.getUTCSeconds() * 1000 +\n m.getUTCMilliseconds();\n}\n\nlet calendarSystemClassMap = {};\nfunction registerCalendarSystem(name, theClass) {\n calendarSystemClassMap[name] = theClass;\n}\nfunction createCalendarSystem(name) {\n return new calendarSystemClassMap[name]();\n}\nclass GregorianCalendarSystem {\n getMarkerYear(d) {\n return d.getUTCFullYear();\n }\n getMarkerMonth(d) {\n return d.getUTCMonth();\n }\n getMarkerDay(d) {\n return d.getUTCDate();\n }\n arrayToMarker(arr) {\n return arrayToUtcDate(arr);\n }\n markerToArray(marker) {\n return dateToUtcArray(marker);\n }\n}\nregisterCalendarSystem('gregory', GregorianCalendarSystem);\n\nconst INTERNAL_UNITS = ['years', 'months', 'days', 'milliseconds'];\nconst PARSE_RE = /^(-?)(?:(\\d+)\\.)?(\\d+):(\\d\\d)(?::(\\d\\d)(?:\\.(\\d\\d\\d))?)?/;\n// Parsing and Creation\nfunction createDuration(input, unit) {\n if (typeof input === 'string') {\n return parseString(input);\n }\n if (typeof input === 'object' && input) { // non-null object\n return parseObject(input);\n }\n if (typeof input === 'number') {\n return parseObject({ [unit || 'milliseconds']: input });\n }\n return null;\n}\nfunction parseString(s) {\n let m = PARSE_RE.exec(s);\n if (m) {\n let sign = m[1] ? -1 : 1;\n return {\n years: 0,\n months: 0,\n days: sign * (m[2] ? parseInt(m[2], 10) : 0),\n milliseconds: sign * ((m[3] ? parseInt(m[3], 10) : 0) * 60 * 60 * 1000 + // hours\n (m[4] ? parseInt(m[4], 10) : 0) * 60 * 1000 + // minutes\n (m[5] ? parseInt(m[5], 10) : 0) * 1000 + // seconds\n (m[6] ? parseInt(m[6], 10) : 0) // ms\n ),\n };\n }\n return null;\n}\nfunction parseObject(obj) {\n let duration = {\n years: obj.years || obj.year || 0,\n months: obj.months || obj.month || 0,\n days: obj.days || obj.day || 0,\n milliseconds: (obj.hours || obj.hour || 0) * 60 * 60 * 1000 + // hours\n (obj.minutes || obj.minute || 0) * 60 * 1000 + // minutes\n (obj.seconds || obj.second || 0) * 1000 + // seconds\n (obj.milliseconds || obj.millisecond || obj.ms || 0), // ms\n };\n let weeks = obj.weeks || obj.week;\n if (weeks) {\n duration.days += weeks * 7;\n duration.specifiedWeeks = true;\n }\n return duration;\n}\n// Equality\nfunction durationsEqual(d0, d1) {\n return d0.years === d1.years &&\n d0.months === d1.months &&\n d0.days === d1.days &&\n d0.milliseconds === d1.milliseconds;\n}\nfunction asCleanDays(dur) {\n if (!dur.years && !dur.months && !dur.milliseconds) {\n return dur.days;\n }\n return 0;\n}\n// Simple Math\nfunction addDurations(d0, d1) {\n return {\n years: d0.years + d1.years,\n months: d0.months + d1.months,\n days: d0.days + d1.days,\n milliseconds: d0.milliseconds + d1.milliseconds,\n };\n}\nfunction subtractDurations(d1, d0) {\n return {\n years: d1.years - d0.years,\n months: d1.months - d0.months,\n days: d1.days - d0.days,\n milliseconds: d1.milliseconds - d0.milliseconds,\n };\n}\nfunction multiplyDuration(d, n) {\n return {\n years: d.years * n,\n months: d.months * n,\n days: d.days * n,\n milliseconds: d.milliseconds * n,\n };\n}\n// Conversions\n// \"Rough\" because they are based on average-case Gregorian months/years\nfunction asRoughYears(dur) {\n return asRoughDays(dur) / 365;\n}\nfunction asRoughMonths(dur) {\n return asRoughDays(dur) / 30;\n}\nfunction asRoughDays(dur) {\n return asRoughMs(dur) / 864e5;\n}\nfunction asRoughMinutes(dur) {\n return asRoughMs(dur) / (1000 * 60);\n}\nfunction asRoughSeconds(dur) {\n return asRoughMs(dur) / 1000;\n}\nfunction asRoughMs(dur) {\n return dur.years * (365 * 864e5) +\n dur.months * (30 * 864e5) +\n dur.days * 864e5 +\n dur.milliseconds;\n}\n// Advanced Math\nfunction wholeDivideDurations(numerator, denominator) {\n let res = null;\n for (let i = 0; i < INTERNAL_UNITS.length; i += 1) {\n let unit = INTERNAL_UNITS[i];\n if (denominator[unit]) {\n let localRes = numerator[unit] / denominator[unit];\n if (!isInt(localRes) || (res !== null && res !== localRes)) {\n return null;\n }\n res = localRes;\n }\n else if (numerator[unit]) {\n // needs to divide by something but can't!\n return null;\n }\n }\n return res;\n}\nfunction greatestDurationDenominator(dur) {\n let ms = dur.milliseconds;\n if (ms) {\n if (ms % 1000 !== 0) {\n return { unit: 'millisecond', value: ms };\n }\n if (ms % (1000 * 60) !== 0) {\n return { unit: 'second', value: ms / 1000 };\n }\n if (ms % (1000 * 60 * 60) !== 0) {\n return { unit: 'minute', value: ms / (1000 * 60) };\n }\n if (ms) {\n return { unit: 'hour', value: ms / (1000 * 60 * 60) };\n }\n }\n if (dur.days) {\n if (dur.specifiedWeeks && dur.days % 7 === 0) {\n return { unit: 'week', value: dur.days / 7 };\n }\n return { unit: 'day', value: dur.days };\n }\n if (dur.months) {\n return { unit: 'month', value: dur.months };\n }\n if (dur.years) {\n return { unit: 'year', value: dur.years };\n }\n return { unit: 'millisecond', value: 0 };\n}\n\n// timeZoneOffset is in minutes\nfunction buildIsoString(marker, timeZoneOffset, stripZeroTime = false) {\n let s = marker.toISOString();\n s = s.replace('.000', '');\n if (stripZeroTime) {\n s = s.replace('T00:00:00Z', '');\n }\n if (s.length > 10) { // time part wasn't stripped, can add timezone info\n if (timeZoneOffset == null) {\n s = s.replace('Z', '');\n }\n else if (timeZoneOffset !== 0) {\n s = s.replace('Z', formatTimeZoneOffset(timeZoneOffset, true));\n }\n // otherwise, its UTC-0 and we want to keep the Z\n }\n return s;\n}\n// formats the date, but with no time part\n// TODO: somehow merge with buildIsoString and stripZeroTime\n// TODO: rename. omit \"string\"\nfunction formatDayString(marker) {\n return marker.toISOString().replace(/T.*$/, '');\n}\n// TODO: use Date::toISOString and use everything after the T?\nfunction formatIsoTimeString(marker) {\n return padStart(marker.getUTCHours(), 2) + ':' +\n padStart(marker.getUTCMinutes(), 2) + ':' +\n padStart(marker.getUTCSeconds(), 2);\n}\nfunction formatTimeZoneOffset(minutes, doIso = false) {\n let sign = minutes < 0 ? '-' : '+';\n let abs = Math.abs(minutes);\n let hours = Math.floor(abs / 60);\n let mins = Math.round(abs % 60);\n if (doIso) {\n return `${sign + padStart(hours, 2)}:${padStart(mins, 2)}`;\n }\n return `GMT${sign}${hours}${mins ? `:${padStart(mins, 2)}` : ''}`;\n}\n\nconst ISO_RE = /^\\s*(\\d{4})(-?(\\d{2})(-?(\\d{2})([T ](\\d{2}):?(\\d{2})(:?(\\d{2})(\\.(\\d+))?)?(Z|(([-+])(\\d{2})(:?(\\d{2}))?))?)?)?)?$/;\nfunction parse(str) {\n let m = ISO_RE.exec(str);\n if (m) {\n let marker = new Date(Date.UTC(Number(m[1]), m[3] ? Number(m[3]) - 1 : 0, Number(m[5] || 1), Number(m[7] || 0), Number(m[8] || 0), Number(m[10] || 0), m[12] ? Number(`0.${m[12]}`) * 1000 : 0));\n if (isValidDate(marker)) {\n let timeZoneOffset = null;\n if (m[13]) {\n timeZoneOffset = (m[15] === '-' ? -1 : 1) * (Number(m[16] || 0) * 60 +\n Number(m[18] || 0));\n }\n return {\n marker,\n isTimeUnspecified: !m[6],\n timeZoneOffset,\n };\n }\n }\n return null;\n}\n\nclass DateEnv {\n constructor(settings) {\n let timeZone = this.timeZone = settings.timeZone;\n let isNamedTimeZone = timeZone !== 'local' && timeZone !== 'UTC';\n if (settings.namedTimeZoneImpl && isNamedTimeZone) {\n this.namedTimeZoneImpl = new settings.namedTimeZoneImpl(timeZone);\n }\n this.canComputeOffset = Boolean(!isNamedTimeZone || this.namedTimeZoneImpl);\n this.calendarSystem = createCalendarSystem(settings.calendarSystem);\n this.locale = settings.locale;\n this.weekDow = settings.locale.week.dow;\n this.weekDoy = settings.locale.week.doy;\n if (settings.weekNumberCalculation === 'ISO') {\n this.weekDow = 1;\n this.weekDoy = 4;\n }\n if (typeof settings.firstDay === 'number') {\n this.weekDow = settings.firstDay;\n }\n if (typeof settings.weekNumberCalculation === 'function') {\n this.weekNumberFunc = settings.weekNumberCalculation;\n }\n this.weekText = settings.weekText != null ? settings.weekText : settings.locale.options.weekText;\n this.weekTextLong = (settings.weekTextLong != null ? settings.weekTextLong : settings.locale.options.weekTextLong) || this.weekText;\n this.cmdFormatter = settings.cmdFormatter;\n this.defaultSeparator = settings.defaultSeparator;\n }\n // Creating / Parsing\n createMarker(input) {\n let meta = this.createMarkerMeta(input);\n if (meta === null) {\n return null;\n }\n return meta.marker;\n }\n createNowMarker() {\n if (this.canComputeOffset) {\n return this.timestampToMarker(new Date().valueOf());\n }\n // if we can't compute the current date val for a timezone,\n // better to give the current local date vals than UTC\n return arrayToUtcDate(dateToLocalArray(new Date()));\n }\n createMarkerMeta(input) {\n if (typeof input === 'string') {\n return this.parse(input);\n }\n let marker = null;\n if (typeof input === 'number') {\n marker = this.timestampToMarker(input);\n }\n else if (input instanceof Date) {\n input = input.valueOf();\n if (!isNaN(input)) {\n marker = this.timestampToMarker(input);\n }\n }\n else if (Array.isArray(input)) {\n marker = arrayToUtcDate(input);\n }\n if (marker === null || !isValidDate(marker)) {\n return null;\n }\n return { marker, isTimeUnspecified: false, forcedTzo: null };\n }\n parse(s) {\n let parts = parse(s);\n if (parts === null) {\n return null;\n }\n let { marker } = parts;\n let forcedTzo = null;\n if (parts.timeZoneOffset !== null) {\n if (this.canComputeOffset) {\n marker = this.timestampToMarker(marker.valueOf() - parts.timeZoneOffset * 60 * 1000);\n }\n else {\n forcedTzo = parts.timeZoneOffset;\n }\n }\n return { marker, isTimeUnspecified: parts.isTimeUnspecified, forcedTzo };\n }\n // Accessors\n getYear(marker) {\n return this.calendarSystem.getMarkerYear(marker);\n }\n getMonth(marker) {\n return this.calendarSystem.getMarkerMonth(marker);\n }\n // Adding / Subtracting\n add(marker, dur) {\n let a = this.calendarSystem.markerToArray(marker);\n a[0] += dur.years;\n a[1] += dur.months;\n a[2] += dur.days;\n a[6] += dur.milliseconds;\n return this.calendarSystem.arrayToMarker(a);\n }\n subtract(marker, dur) {\n let a = this.calendarSystem.markerToArray(marker);\n a[0] -= dur.years;\n a[1] -= dur.months;\n a[2] -= dur.days;\n a[6] -= dur.milliseconds;\n return this.calendarSystem.arrayToMarker(a);\n }\n addYears(marker, n) {\n let a = this.calendarSystem.markerToArray(marker);\n a[0] += n;\n return this.calendarSystem.arrayToMarker(a);\n }\n addMonths(marker, n) {\n let a = this.calendarSystem.markerToArray(marker);\n a[1] += n;\n return this.calendarSystem.arrayToMarker(a);\n }\n // Diffing Whole Units\n diffWholeYears(m0, m1) {\n let { calendarSystem } = this;\n if (timeAsMs(m0) === timeAsMs(m1) &&\n calendarSystem.getMarkerDay(m0) === calendarSystem.getMarkerDay(m1) &&\n calendarSystem.getMarkerMonth(m0) === calendarSystem.getMarkerMonth(m1)) {\n return calendarSystem.getMarkerYear(m1) - calendarSystem.getMarkerYear(m0);\n }\n return null;\n }\n diffWholeMonths(m0, m1) {\n let { calendarSystem } = this;\n if (timeAsMs(m0) === timeAsMs(m1) &&\n calendarSystem.getMarkerDay(m0) === calendarSystem.getMarkerDay(m1)) {\n return (calendarSystem.getMarkerMonth(m1) - calendarSystem.getMarkerMonth(m0)) +\n (calendarSystem.getMarkerYear(m1) - calendarSystem.getMarkerYear(m0)) * 12;\n }\n return null;\n }\n // Range / Duration\n greatestWholeUnit(m0, m1) {\n let n = this.diffWholeYears(m0, m1);\n if (n !== null) {\n return { unit: 'year', value: n };\n }\n n = this.diffWholeMonths(m0, m1);\n if (n !== null) {\n return { unit: 'month', value: n };\n }\n n = diffWholeWeeks(m0, m1);\n if (n !== null) {\n return { unit: 'week', value: n };\n }\n n = diffWholeDays(m0, m1);\n if (n !== null) {\n return { unit: 'day', value: n };\n }\n n = diffHours(m0, m1);\n if (isInt(n)) {\n return { unit: 'hour', value: n };\n }\n n = diffMinutes(m0, m1);\n if (isInt(n)) {\n return { unit: 'minute', value: n };\n }\n n = diffSeconds(m0, m1);\n if (isInt(n)) {\n return { unit: 'second', value: n };\n }\n return { unit: 'millisecond', value: m1.valueOf() - m0.valueOf() };\n }\n countDurationsBetween(m0, m1, d) {\n // TODO: can use greatestWholeUnit\n let diff;\n if (d.years) {\n diff = this.diffWholeYears(m0, m1);\n if (diff !== null) {\n return diff / asRoughYears(d);\n }\n }\n if (d.months) {\n diff = this.diffWholeMonths(m0, m1);\n if (diff !== null) {\n return diff / asRoughMonths(d);\n }\n }\n if (d.days) {\n diff = diffWholeDays(m0, m1);\n if (diff !== null) {\n return diff / asRoughDays(d);\n }\n }\n return (m1.valueOf() - m0.valueOf()) / asRoughMs(d);\n }\n // Start-Of\n // these DON'T return zoned-dates. only UTC start-of dates\n startOf(m, unit) {\n if (unit === 'year') {\n return this.startOfYear(m);\n }\n if (unit === 'month') {\n return this.startOfMonth(m);\n }\n if (unit === 'week') {\n return this.startOfWeek(m);\n }\n if (unit === 'day') {\n return startOfDay(m);\n }\n if (unit === 'hour') {\n return startOfHour(m);\n }\n if (unit === 'minute') {\n return startOfMinute(m);\n }\n if (unit === 'second') {\n return startOfSecond(m);\n }\n return null;\n }\n startOfYear(m) {\n return this.calendarSystem.arrayToMarker([\n this.calendarSystem.getMarkerYear(m),\n ]);\n }\n startOfMonth(m) {\n return this.calendarSystem.arrayToMarker([\n this.calendarSystem.getMarkerYear(m),\n this.calendarSystem.getMarkerMonth(m),\n ]);\n }\n startOfWeek(m) {\n return this.calendarSystem.arrayToMarker([\n this.calendarSystem.getMarkerYear(m),\n this.calendarSystem.getMarkerMonth(m),\n m.getUTCDate() - ((m.getUTCDay() - this.weekDow + 7) % 7),\n ]);\n }\n // Week Number\n computeWeekNumber(marker) {\n if (this.weekNumberFunc) {\n return this.weekNumberFunc(this.toDate(marker));\n }\n return weekOfYear(marker, this.weekDow, this.weekDoy);\n }\n // TODO: choke on timeZoneName: long\n format(marker, formatter, dateOptions = {}) {\n return formatter.format({\n marker,\n timeZoneOffset: dateOptions.forcedTzo != null ?\n dateOptions.forcedTzo :\n this.offsetForMarker(marker),\n }, this);\n }\n formatRange(start, end, formatter, dateOptions = {}) {\n if (dateOptions.isEndExclusive) {\n end = addMs(end, -1);\n }\n return formatter.formatRange({\n marker: start,\n timeZoneOffset: dateOptions.forcedStartTzo != null ?\n dateOptions.forcedStartTzo :\n this.offsetForMarker(start),\n }, {\n marker: end,\n timeZoneOffset: dateOptions.forcedEndTzo != null ?\n dateOptions.forcedEndTzo :\n this.offsetForMarker(end),\n }, this, dateOptions.defaultSeparator);\n }\n /*\n DUMB: the omitTime arg is dumb. if we omit the time, we want to omit the timezone offset. and if we do that,\n might as well use buildIsoString or some other util directly\n */\n formatIso(marker, extraOptions = {}) {\n let timeZoneOffset = null;\n if (!extraOptions.omitTimeZoneOffset) {\n if (extraOptions.forcedTzo != null) {\n timeZoneOffset = extraOptions.forcedTzo;\n }\n else {\n timeZoneOffset = this.offsetForMarker(marker);\n }\n }\n return buildIsoString(marker, timeZoneOffset, extraOptions.omitTime);\n }\n // TimeZone\n timestampToMarker(ms) {\n if (this.timeZone === 'local') {\n return arrayToUtcDate(dateToLocalArray(new Date(ms)));\n }\n if (this.timeZone === 'UTC' || !this.namedTimeZoneImpl) {\n return new Date(ms);\n }\n return arrayToUtcDate(this.namedTimeZoneImpl.timestampToArray(ms));\n }\n offsetForMarker(m) {\n if (this.timeZone === 'local') {\n return -arrayToLocalDate(dateToUtcArray(m)).getTimezoneOffset(); // convert \"inverse\" offset to \"normal\" offset\n }\n if (this.timeZone === 'UTC') {\n return 0;\n }\n if (this.namedTimeZoneImpl) {\n return this.namedTimeZoneImpl.offsetForArray(dateToUtcArray(m));\n }\n return null;\n }\n // Conversion\n toDate(m, forcedTzo) {\n if (this.timeZone === 'local') {\n return arrayToLocalDate(dateToUtcArray(m));\n }\n if (this.timeZone === 'UTC') {\n return new Date(m.valueOf()); // make sure it's a copy\n }\n if (!this.namedTimeZoneImpl) {\n return new Date(m.valueOf() - (forcedTzo || 0));\n }\n return new Date(m.valueOf() -\n this.namedTimeZoneImpl.offsetForArray(dateToUtcArray(m)) * 1000 * 60);\n }\n}\n\nclass Theme {\n constructor(calendarOptions) {\n if (this.iconOverrideOption) {\n this.setIconOverride(calendarOptions[this.iconOverrideOption]);\n }\n }\n setIconOverride(iconOverrideHash) {\n let iconClassesCopy;\n let buttonName;\n if (typeof iconOverrideHash === 'object' && iconOverrideHash) { // non-null object\n iconClassesCopy = Object.assign({}, this.iconClasses);\n for (buttonName in iconOverrideHash) {\n iconClassesCopy[buttonName] = this.applyIconOverridePrefix(iconOverrideHash[buttonName]);\n }\n this.iconClasses = iconClassesCopy;\n }\n else if (iconOverrideHash === false) {\n this.iconClasses = {};\n }\n }\n applyIconOverridePrefix(className) {\n let prefix = this.iconOverridePrefix;\n if (prefix && className.indexOf(prefix) !== 0) { // if not already present\n className = prefix + className;\n }\n return className;\n }\n getClass(key) {\n return this.classes[key] || '';\n }\n getIconClass(buttonName, isRtl) {\n let className;\n if (isRtl && this.rtlIconClasses) {\n className = this.rtlIconClasses[buttonName] || this.iconClasses[buttonName];\n }\n else {\n className = this.iconClasses[buttonName];\n }\n if (className) {\n return `${this.baseIconClass} ${className}`;\n }\n return '';\n }\n getCustomButtonIconClass(customButtonProps) {\n let className;\n if (this.iconOverrideCustomButtonOption) {\n className = customButtonProps[this.iconOverrideCustomButtonOption];\n if (className) {\n return `${this.baseIconClass} ${this.applyIconOverridePrefix(className)}`;\n }\n }\n return '';\n }\n}\nTheme.prototype.classes = {};\nTheme.prototype.iconClasses = {};\nTheme.prototype.baseIconClass = '';\nTheme.prototype.iconOverridePrefix = '';\n\nconst EXTENDED_SETTINGS_AND_SEVERITIES = {\n week: 3,\n separator: 0,\n omitZeroMinute: 0,\n meridiem: 0,\n omitCommas: 0,\n};\nconst STANDARD_DATE_PROP_SEVERITIES = {\n timeZoneName: 7,\n era: 6,\n year: 5,\n month: 4,\n day: 2,\n weekday: 2,\n hour: 1,\n minute: 1,\n second: 1,\n};\nconst MERIDIEM_RE = /\\s*([ap])\\.?m\\.?/i; // eats up leading spaces too\nconst COMMA_RE = /,/g; // we need re for globalness\nconst MULTI_SPACE_RE = /\\s+/g;\nconst LTR_RE = /\\u200e/g; // control character\nconst UTC_RE = /UTC|GMT/;\nclass NativeFormatter {\n constructor(formatSettings) {\n let standardDateProps = {};\n let extendedSettings = {};\n let severity = 0;\n for (let name in formatSettings) {\n if (name in EXTENDED_SETTINGS_AND_SEVERITIES) {\n extendedSettings[name] = formatSettings[name];\n severity = Math.max(EXTENDED_SETTINGS_AND_SEVERITIES[name], severity);\n }\n else {\n standardDateProps[name] = formatSettings[name];\n if (name in STANDARD_DATE_PROP_SEVERITIES) { // TODO: what about hour12? no severity\n severity = Math.max(STANDARD_DATE_PROP_SEVERITIES[name], severity);\n }\n }\n }\n this.standardDateProps = standardDateProps;\n this.extendedSettings = extendedSettings;\n this.severity = severity;\n this.buildFormattingFunc = memoize(buildFormattingFunc);\n }\n format(date, context) {\n return this.buildFormattingFunc(this.standardDateProps, this.extendedSettings, context)(date);\n }\n formatRange(start, end, context, betterDefaultSeparator) {\n let { standardDateProps, extendedSettings } = this;\n let diffSeverity = computeMarkerDiffSeverity(start.marker, end.marker, context.calendarSystem);\n if (!diffSeverity) {\n return this.format(start, context);\n }\n let biggestUnitForPartial = diffSeverity;\n if (biggestUnitForPartial > 1 && // the two dates are different in a way that's larger scale than time\n (standardDateProps.year === 'numeric' || standardDateProps.year === '2-digit') &&\n (standardDateProps.month === 'numeric' || standardDateProps.month === '2-digit') &&\n (standardDateProps.day === 'numeric' || standardDateProps.day === '2-digit')) {\n biggestUnitForPartial = 1; // make it look like the dates are only different in terms of time\n }\n let full0 = this.format(start, context);\n let full1 = this.format(end, context);\n if (full0 === full1) {\n return full0;\n }\n let partialDateProps = computePartialFormattingOptions(standardDateProps, biggestUnitForPartial);\n let partialFormattingFunc = buildFormattingFunc(partialDateProps, extendedSettings, context);\n let partial0 = partialFormattingFunc(start);\n let partial1 = partialFormattingFunc(end);\n let insertion = findCommonInsertion(full0, partial0, full1, partial1);\n let separator = extendedSettings.separator || betterDefaultSeparator || context.defaultSeparator || '';\n if (insertion) {\n return insertion.before + partial0 + separator + partial1 + insertion.after;\n }\n return full0 + separator + full1;\n }\n getLargestUnit() {\n switch (this.severity) {\n case 7:\n case 6:\n case 5:\n return 'year';\n case 4:\n return 'month';\n case 3:\n return 'week';\n case 2:\n return 'day';\n default:\n return 'time'; // really?\n }\n }\n}\nfunction buildFormattingFunc(standardDateProps, extendedSettings, context) {\n let standardDatePropCnt = Object.keys(standardDateProps).length;\n if (standardDatePropCnt === 1 && standardDateProps.timeZoneName === 'short') {\n return (date) => (formatTimeZoneOffset(date.timeZoneOffset));\n }\n if (standardDatePropCnt === 0 && extendedSettings.week) {\n return (date) => (formatWeekNumber(context.computeWeekNumber(date.marker), context.weekText, context.weekTextLong, context.locale, extendedSettings.week));\n }\n return buildNativeFormattingFunc(standardDateProps, extendedSettings, context);\n}\nfunction buildNativeFormattingFunc(standardDateProps, extendedSettings, context) {\n standardDateProps = Object.assign({}, standardDateProps); // copy\n extendedSettings = Object.assign({}, extendedSettings); // copy\n sanitizeSettings(standardDateProps, extendedSettings);\n standardDateProps.timeZone = 'UTC'; // we leverage the only guaranteed timeZone for our UTC markers\n let normalFormat = new Intl.DateTimeFormat(context.locale.codes, standardDateProps);\n let zeroFormat; // needed?\n if (extendedSettings.omitZeroMinute) {\n let zeroProps = Object.assign({}, standardDateProps);\n delete zeroProps.minute; // seconds and ms were already considered in sanitizeSettings\n zeroFormat = new Intl.DateTimeFormat(context.locale.codes, zeroProps);\n }\n return (date) => {\n let { marker } = date;\n let format;\n if (zeroFormat && !marker.getUTCMinutes()) {\n format = zeroFormat;\n }\n else {\n format = normalFormat;\n }\n let s = format.format(marker);\n return postProcess(s, date, standardDateProps, extendedSettings, context);\n };\n}\nfunction sanitizeSettings(standardDateProps, extendedSettings) {\n // deal with a browser inconsistency where formatting the timezone\n // requires that the hour/minute be present.\n if (standardDateProps.timeZoneName) {\n if (!standardDateProps.hour) {\n standardDateProps.hour = '2-digit';\n }\n if (!standardDateProps.minute) {\n standardDateProps.minute = '2-digit';\n }\n }\n // only support short timezone names\n if (standardDateProps.timeZoneName === 'long') {\n standardDateProps.timeZoneName = 'short';\n }\n // if requesting to display seconds, MUST display minutes\n if (extendedSettings.omitZeroMinute && (standardDateProps.second || standardDateProps.millisecond)) {\n delete extendedSettings.omitZeroMinute;\n }\n}\nfunction postProcess(s, date, standardDateProps, extendedSettings, context) {\n s = s.replace(LTR_RE, ''); // remove left-to-right control chars. do first. good for other regexes\n if (standardDateProps.timeZoneName === 'short') {\n s = injectTzoStr(s, (context.timeZone === 'UTC' || date.timeZoneOffset == null) ?\n 'UTC' : // important to normalize for IE, which does \"GMT\"\n formatTimeZoneOffset(date.timeZoneOffset));\n }\n if (extendedSettings.omitCommas) {\n s = s.replace(COMMA_RE, '').trim();\n }\n if (extendedSettings.omitZeroMinute) {\n s = s.replace(':00', ''); // zeroFormat doesn't always achieve this\n }\n // ^ do anything that might create adjacent spaces before this point,\n // because MERIDIEM_RE likes to eat up loading spaces\n if (extendedSettings.meridiem === false) {\n s = s.replace(MERIDIEM_RE, '').trim();\n }\n else if (extendedSettings.meridiem === 'narrow') { // a/p\n s = s.replace(MERIDIEM_RE, (m0, m1) => m1.toLocaleLowerCase());\n }\n else if (extendedSettings.meridiem === 'short') { // am/pm\n s = s.replace(MERIDIEM_RE, (m0, m1) => `${m1.toLocaleLowerCase()}m`);\n }\n else if (extendedSettings.meridiem === 'lowercase') { // other meridiem transformers already converted to lowercase\n s = s.replace(MERIDIEM_RE, (m0) => m0.toLocaleLowerCase());\n }\n s = s.replace(MULTI_SPACE_RE, ' ');\n s = s.trim();\n return s;\n}\nfunction injectTzoStr(s, tzoStr) {\n let replaced = false;\n s = s.replace(UTC_RE, () => {\n replaced = true;\n return tzoStr;\n });\n // IE11 doesn't include UTC/GMT in the original string, so append to end\n if (!replaced) {\n s += ` ${tzoStr}`;\n }\n return s;\n}\nfunction formatWeekNumber(num, weekText, weekTextLong, locale, display) {\n let parts = [];\n if (display === 'long') {\n parts.push(weekTextLong);\n }\n else if (display === 'short' || display === 'narrow') {\n parts.push(weekText);\n }\n if (display === 'long' || display === 'short') {\n parts.push(' ');\n }\n parts.push(locale.simpleNumberFormat.format(num));\n if (locale.options.direction === 'rtl') { // TODO: use control characters instead?\n parts.reverse();\n }\n return parts.join('');\n}\n// Range Formatting Utils\n// 0 = exactly the same\n// 1 = different by time\n// and bigger\nfunction computeMarkerDiffSeverity(d0, d1, ca) {\n if (ca.getMarkerYear(d0) !== ca.getMarkerYear(d1)) {\n return 5;\n }\n if (ca.getMarkerMonth(d0) !== ca.getMarkerMonth(d1)) {\n return 4;\n }\n if (ca.getMarkerDay(d0) !== ca.getMarkerDay(d1)) {\n return 2;\n }\n if (timeAsMs(d0) !== timeAsMs(d1)) {\n return 1;\n }\n return 0;\n}\nfunction computePartialFormattingOptions(options, biggestUnit) {\n let partialOptions = {};\n for (let name in options) {\n if (!(name in STANDARD_DATE_PROP_SEVERITIES) || // not a date part prop (like timeZone)\n STANDARD_DATE_PROP_SEVERITIES[name] <= biggestUnit) {\n partialOptions[name] = options[name];\n }\n }\n return partialOptions;\n}\nfunction findCommonInsertion(full0, partial0, full1, partial1) {\n let i0 = 0;\n while (i0 < full0.length) {\n let found0 = full0.indexOf(partial0, i0);\n if (found0 === -1) {\n break;\n }\n let before0 = full0.substr(0, found0);\n i0 = found0 + partial0.length;\n let after0 = full0.substr(i0);\n let i1 = 0;\n while (i1 < full1.length) {\n let found1 = full1.indexOf(partial1, i1);\n if (found1 === -1) {\n break;\n }\n let before1 = full1.substr(0, found1);\n i1 = found1 + partial1.length;\n let after1 = full1.substr(i1);\n if (before0 === before1 && after0 === after1) {\n return {\n before: before0,\n after: after0,\n };\n }\n }\n }\n return null;\n}\n\nfunction expandZonedMarker(dateInfo, calendarSystem) {\n let a = calendarSystem.markerToArray(dateInfo.marker);\n return {\n marker: dateInfo.marker,\n timeZoneOffset: dateInfo.timeZoneOffset,\n array: a,\n year: a[0],\n month: a[1],\n day: a[2],\n hour: a[3],\n minute: a[4],\n second: a[5],\n millisecond: a[6],\n };\n}\n\nfunction createVerboseFormattingArg(start, end, context, betterDefaultSeparator) {\n let startInfo = expandZonedMarker(start, context.calendarSystem);\n let endInfo = end ? expandZonedMarker(end, context.calendarSystem) : null;\n return {\n date: startInfo,\n start: startInfo,\n end: endInfo,\n timeZone: context.timeZone,\n localeCodes: context.locale.codes,\n defaultSeparator: betterDefaultSeparator || context.defaultSeparator,\n };\n}\n\n/*\nTODO: fix the terminology of \"formatter\" vs \"formatting func\"\n*/\n/*\nAt the time of instantiation, this object does not know which cmd-formatting system it will use.\nIt receives this at the time of formatting, as a setting.\n*/\nclass CmdFormatter {\n constructor(cmdStr) {\n this.cmdStr = cmdStr;\n }\n format(date, context, betterDefaultSeparator) {\n return context.cmdFormatter(this.cmdStr, createVerboseFormattingArg(date, null, context, betterDefaultSeparator));\n }\n formatRange(start, end, context, betterDefaultSeparator) {\n return context.cmdFormatter(this.cmdStr, createVerboseFormattingArg(start, end, context, betterDefaultSeparator));\n }\n}\n\nclass FuncFormatter {\n constructor(func) {\n this.func = func;\n }\n format(date, context, betterDefaultSeparator) {\n return this.func(createVerboseFormattingArg(date, null, context, betterDefaultSeparator));\n }\n formatRange(start, end, context, betterDefaultSeparator) {\n return this.func(createVerboseFormattingArg(start, end, context, betterDefaultSeparator));\n }\n}\n\nfunction createFormatter(input) {\n if (typeof input === 'object' && input) { // non-null object\n return new NativeFormatter(input);\n }\n if (typeof input === 'string') {\n return new CmdFormatter(input);\n }\n if (typeof input === 'function') {\n return new FuncFormatter(input);\n }\n return null;\n}\n\n// base options\n// ------------\nconst BASE_OPTION_REFINERS = {\n navLinkDayClick: identity,\n navLinkWeekClick: identity,\n duration: createDuration,\n bootstrapFontAwesome: identity,\n buttonIcons: identity,\n customButtons: identity,\n defaultAllDayEventDuration: createDuration,\n defaultTimedEventDuration: createDuration,\n nextDayThreshold: createDuration,\n scrollTime: createDuration,\n scrollTimeReset: Boolean,\n slotMinTime: createDuration,\n slotMaxTime: createDuration,\n dayPopoverFormat: createFormatter,\n slotDuration: createDuration,\n snapDuration: createDuration,\n headerToolbar: identity,\n footerToolbar: identity,\n defaultRangeSeparator: String,\n titleRangeSeparator: String,\n forceEventDuration: Boolean,\n dayHeaders: Boolean,\n dayHeaderFormat: createFormatter,\n dayHeaderClassNames: identity,\n dayHeaderContent: identity,\n dayHeaderDidMount: identity,\n dayHeaderWillUnmount: identity,\n dayCellClassNames: identity,\n dayCellContent: identity,\n dayCellDidMount: identity,\n dayCellWillUnmount: identity,\n initialView: String,\n aspectRatio: Number,\n weekends: Boolean,\n weekNumberCalculation: identity,\n weekNumbers: Boolean,\n weekNumberClassNames: identity,\n weekNumberContent: identity,\n weekNumberDidMount: identity,\n weekNumberWillUnmount: identity,\n editable: Boolean,\n viewClassNames: identity,\n viewDidMount: identity,\n viewWillUnmount: identity,\n nowIndicator: Boolean,\n nowIndicatorClassNames: identity,\n nowIndicatorContent: identity,\n nowIndicatorDidMount: identity,\n nowIndicatorWillUnmount: identity,\n showNonCurrentDates: Boolean,\n lazyFetching: Boolean,\n startParam: String,\n endParam: String,\n timeZoneParam: String,\n timeZone: String,\n locales: identity,\n locale: identity,\n themeSystem: String,\n dragRevertDuration: Number,\n dragScroll: Boolean,\n allDayMaintainDuration: Boolean,\n unselectAuto: Boolean,\n dropAccept: identity,\n eventOrder: parseFieldSpecs,\n eventOrderStrict: Boolean,\n handleWindowResize: Boolean,\n windowResizeDelay: Number,\n longPressDelay: Number,\n eventDragMinDistance: Number,\n expandRows: Boolean,\n height: identity,\n contentHeight: identity,\n direction: String,\n weekNumberFormat: createFormatter,\n eventResizableFromStart: Boolean,\n displayEventTime: Boolean,\n displayEventEnd: Boolean,\n weekText: String,\n weekTextLong: String,\n progressiveEventRendering: Boolean,\n businessHours: identity,\n initialDate: identity,\n now: identity,\n eventDataTransform: identity,\n stickyHeaderDates: identity,\n stickyFooterScrollbar: identity,\n viewHeight: identity,\n defaultAllDay: Boolean,\n eventSourceFailure: identity,\n eventSourceSuccess: identity,\n eventDisplay: String,\n eventStartEditable: Boolean,\n eventDurationEditable: Boolean,\n eventOverlap: identity,\n eventConstraint: identity,\n eventAllow: identity,\n eventBackgroundColor: String,\n eventBorderColor: String,\n eventTextColor: String,\n eventColor: String,\n eventClassNames: identity,\n eventContent: identity,\n eventDidMount: identity,\n eventWillUnmount: identity,\n selectConstraint: identity,\n selectOverlap: identity,\n selectAllow: identity,\n droppable: Boolean,\n unselectCancel: String,\n slotLabelFormat: identity,\n slotLaneClassNames: identity,\n slotLaneContent: identity,\n slotLaneDidMount: identity,\n slotLaneWillUnmount: identity,\n slotLabelClassNames: identity,\n slotLabelContent: identity,\n slotLabelDidMount: identity,\n slotLabelWillUnmount: identity,\n dayMaxEvents: identity,\n dayMaxEventRows: identity,\n dayMinWidth: Number,\n slotLabelInterval: createDuration,\n allDayText: String,\n allDayClassNames: identity,\n allDayContent: identity,\n allDayDidMount: identity,\n allDayWillUnmount: identity,\n slotMinWidth: Number,\n navLinks: Boolean,\n eventTimeFormat: createFormatter,\n rerenderDelay: Number,\n moreLinkText: identity,\n moreLinkHint: identity,\n selectMinDistance: Number,\n selectable: Boolean,\n selectLongPressDelay: Number,\n eventLongPressDelay: Number,\n selectMirror: Boolean,\n eventMaxStack: Number,\n eventMinHeight: Number,\n eventMinWidth: Number,\n eventShortHeight: Number,\n slotEventOverlap: Boolean,\n plugins: identity,\n firstDay: Number,\n dayCount: Number,\n dateAlignment: String,\n dateIncrement: createDuration,\n hiddenDays: identity,\n monthMode: Boolean,\n fixedWeekCount: Boolean,\n validRange: identity,\n visibleRange: identity,\n titleFormat: identity,\n eventInteractive: Boolean,\n // only used by list-view, but languages define the value, so we need it in base options\n noEventsText: String,\n viewHint: identity,\n navLinkHint: identity,\n closeHint: String,\n timeHint: String,\n eventHint: String,\n moreLinkClick: identity,\n moreLinkClassNames: identity,\n moreLinkContent: identity,\n moreLinkDidMount: identity,\n moreLinkWillUnmount: identity,\n // for connectors\n // (can't be part of plugin system b/c must be provided at runtime)\n handleCustomRendering: identity,\n customRenderingMetaMap: identity,\n customRenderingReplacesEl: Boolean,\n};\n// do NOT give a type here. need `typeof BASE_OPTION_DEFAULTS` to give real results.\n// raw values.\nconst BASE_OPTION_DEFAULTS = {\n eventDisplay: 'auto',\n defaultRangeSeparator: ' - ',\n titleRangeSeparator: ' \\u2013 ',\n defaultTimedEventDuration: '01:00:00',\n defaultAllDayEventDuration: { day: 1 },\n forceEventDuration: false,\n nextDayThreshold: '00:00:00',\n dayHeaders: true,\n initialView: '',\n aspectRatio: 1.35,\n headerToolbar: {\n start: 'title',\n center: '',\n end: 'today prev,next',\n },\n weekends: true,\n weekNumbers: false,\n weekNumberCalculation: 'local',\n editable: false,\n nowIndicator: false,\n scrollTime: '06:00:00',\n scrollTimeReset: true,\n slotMinTime: '00:00:00',\n slotMaxTime: '24:00:00',\n showNonCurrentDates: true,\n lazyFetching: true,\n startParam: 'start',\n endParam: 'end',\n timeZoneParam: 'timeZone',\n timeZone: 'local',\n locales: [],\n locale: '',\n themeSystem: 'standard',\n dragRevertDuration: 500,\n dragScroll: true,\n allDayMaintainDuration: false,\n unselectAuto: true,\n dropAccept: '*',\n eventOrder: 'start,-duration,allDay,title',\n dayPopoverFormat: { month: 'long', day: 'numeric', year: 'numeric' },\n handleWindowResize: true,\n windowResizeDelay: 100,\n longPressDelay: 1000,\n eventDragMinDistance: 5,\n expandRows: false,\n navLinks: false,\n selectable: false,\n eventMinHeight: 15,\n eventMinWidth: 30,\n eventShortHeight: 30,\n};\n// calendar listeners\n// ------------------\nconst CALENDAR_LISTENER_REFINERS = {\n datesSet: identity,\n eventsSet: identity,\n eventAdd: identity,\n eventChange: identity,\n eventRemove: identity,\n windowResize: identity,\n eventClick: identity,\n eventMouseEnter: identity,\n eventMouseLeave: identity,\n select: identity,\n unselect: identity,\n loading: identity,\n // internal\n _unmount: identity,\n _beforeprint: identity,\n _afterprint: identity,\n _noEventDrop: identity,\n _noEventResize: identity,\n _resize: identity,\n _scrollRequest: identity,\n};\n// calendar-specific options\n// -------------------------\nconst CALENDAR_OPTION_REFINERS = {\n buttonText: identity,\n buttonHints: identity,\n views: identity,\n plugins: identity,\n initialEvents: identity,\n events: identity,\n eventSources: identity,\n};\nconst COMPLEX_OPTION_COMPARATORS = {\n headerToolbar: isMaybeObjectsEqual,\n footerToolbar: isMaybeObjectsEqual,\n buttonText: isMaybeObjectsEqual,\n buttonHints: isMaybeObjectsEqual,\n buttonIcons: isMaybeObjectsEqual,\n dateIncrement: isMaybeObjectsEqual,\n};\nfunction isMaybeObjectsEqual(a, b) {\n if (typeof a === 'object' && typeof b === 'object' && a && b) { // both non-null objects\n return isPropsEqual(a, b);\n }\n return a === b;\n}\n// view-specific options\n// ---------------------\nconst VIEW_OPTION_REFINERS = {\n type: String,\n component: identity,\n buttonText: String,\n buttonTextKey: String,\n dateProfileGeneratorClass: identity,\n usesMinMaxTime: Boolean,\n classNames: identity,\n content: identity,\n didMount: identity,\n willUnmount: identity,\n};\n// util funcs\n// ----------------------------------------------------------------------------------------------------\nfunction mergeRawOptions(optionSets) {\n return mergeProps(optionSets, COMPLEX_OPTION_COMPARATORS);\n}\nfunction refineProps(input, refiners) {\n let refined = {};\n let extra = {};\n for (let propName in refiners) {\n if (propName in input) {\n refined[propName] = refiners[propName](input[propName]);\n }\n }\n for (let propName in input) {\n if (!(propName in refiners)) {\n extra[propName] = input[propName];\n }\n }\n return { refined, extra };\n}\nfunction identity(raw) {\n return raw;\n}\n\n/*\nNOTE: this can be a public API, especially createElement for hooks.\nSee examples/typescript-scheduler/src/index.ts\n*/\nfunction flushSync(runBeforeFlush) {\n runBeforeFlush();\n let oldDebounceRendering = preact.options.debounceRendering; // orig\n let callbackQ = [];\n function execCallbackSync(callback) {\n callbackQ.push(callback);\n }\n preact.options.debounceRendering = execCallbackSync;\n preact.render(preact.createElement(FakeComponent, {}), document.createElement('div'));\n while (callbackQ.length) {\n callbackQ.shift()();\n }\n preact.options.debounceRendering = oldDebounceRendering;\n}\nclass FakeComponent extends preact.Component {\n render() { return preact.createElement('div', {}); }\n componentDidMount() { this.setState({}); }\n}\n// TODO: use preact/compat instead?\nfunction createContext(defaultValue) {\n let ContextType = preact.createContext(defaultValue);\n let origProvider = ContextType.Provider;\n ContextType.Provider = function () {\n let isNew = !this.getChildContext;\n let children = origProvider.apply(this, arguments); // eslint-disable-line prefer-rest-params\n if (isNew) {\n let subs = [];\n this.shouldComponentUpdate = (_props) => {\n if (this.props.value !== _props.value) {\n subs.forEach((c) => {\n c.context = _props.value;\n c.forceUpdate();\n });\n }\n };\n this.sub = (c) => {\n subs.push(c);\n let old = c.componentWillUnmount;\n c.componentWillUnmount = () => {\n subs.splice(subs.indexOf(c), 1);\n old && old.call(c);\n };\n };\n }\n return children;\n };\n return ContextType;\n}\n\nclass ScrollResponder {\n constructor(execFunc, emitter, scrollTime, scrollTimeReset) {\n this.execFunc = execFunc;\n this.emitter = emitter;\n this.scrollTime = scrollTime;\n this.scrollTimeReset = scrollTimeReset;\n this.handleScrollRequest = (request) => {\n this.queuedRequest = Object.assign({}, this.queuedRequest || {}, request);\n this.drain();\n };\n emitter.on('_scrollRequest', this.handleScrollRequest);\n this.fireInitialScroll();\n }\n detach() {\n this.emitter.off('_scrollRequest', this.handleScrollRequest);\n }\n update(isDatesNew) {\n if (isDatesNew && this.scrollTimeReset) {\n this.fireInitialScroll(); // will drain\n }\n else {\n this.drain();\n }\n }\n fireInitialScroll() {\n this.handleScrollRequest({\n time: this.scrollTime,\n });\n }\n drain() {\n if (this.queuedRequest && this.execFunc(this.queuedRequest)) {\n this.queuedRequest = null;\n }\n }\n}\n\nconst ViewContextType = createContext({}); // for Components\nfunction buildViewContext(viewSpec, viewApi, viewOptions, dateProfileGenerator, dateEnv, theme, pluginHooks, dispatch, getCurrentData, emitter, calendarApi, registerInteractiveComponent, unregisterInteractiveComponent) {\n return {\n dateEnv,\n options: viewOptions,\n pluginHooks,\n emitter,\n dispatch,\n getCurrentData,\n calendarApi,\n viewSpec,\n viewApi,\n dateProfileGenerator,\n theme,\n isRtl: viewOptions.direction === 'rtl',\n addResizeHandler(handler) {\n emitter.on('_resize', handler);\n },\n removeResizeHandler(handler) {\n emitter.off('_resize', handler);\n },\n createScrollResponder(execFunc) {\n return new ScrollResponder(execFunc, emitter, createDuration(viewOptions.scrollTime), viewOptions.scrollTimeReset);\n },\n registerInteractiveComponent,\n unregisterInteractiveComponent,\n };\n}\n\n/* eslint max-classes-per-file: off */\nclass PureComponent extends Component {\n shouldComponentUpdate(nextProps, nextState) {\n if (this.debug) {\n // eslint-disable-next-line no-console\n console.log(getUnequalProps(nextProps, this.props), getUnequalProps(nextState, this.state));\n }\n return !compareObjs(this.props, nextProps, this.propEquality) ||\n !compareObjs(this.state, nextState, this.stateEquality);\n }\n // HACK for freakin' React StrictMode\n safeSetState(newState) {\n if (!compareObjs(this.state, Object.assign(Object.assign({}, this.state), newState), this.stateEquality)) {\n this.setState(newState);\n }\n }\n}\nPureComponent.addPropsEquality = addPropsEquality;\nPureComponent.addStateEquality = addStateEquality;\nPureComponent.contextType = ViewContextType;\nPureComponent.prototype.propEquality = {};\nPureComponent.prototype.stateEquality = {};\nclass BaseComponent extends PureComponent {\n}\nBaseComponent.contextType = ViewContextType;\nfunction addPropsEquality(propEquality) {\n let hash = Object.create(this.prototype.propEquality);\n Object.assign(hash, propEquality);\n this.prototype.propEquality = hash;\n}\nfunction addStateEquality(stateEquality) {\n let hash = Object.create(this.prototype.stateEquality);\n Object.assign(hash, stateEquality);\n this.prototype.stateEquality = hash;\n}\n// use other one\nfunction setRef(ref, current) {\n if (typeof ref === 'function') {\n ref(current);\n }\n else if (ref) {\n // see https://github.com/facebook/react/issues/13029\n ref.current = current;\n }\n}\n\nclass ContentInjector extends BaseComponent {\n constructor() {\n super(...arguments);\n this.id = guid();\n this.currentDomNodes = [];\n this.queuedDomNodes = [];\n this.handleEl = (el) => {\n if (this.props.elRef) {\n setRef(this.props.elRef, el);\n }\n };\n }\n render() {\n const { props, context } = this;\n const { options } = context;\n const { generator, renderProps } = props;\n const attrs = buildElAttrs(props);\n let innerContent;\n let queuedDomNodes = [];\n if (hasCustomRenderingHandler(props.generatorName, options)) {\n if (options.customRenderingReplacesEl) {\n delete attrs.elRef; // because handleEl will be used\n }\n }\n else {\n const customContent = typeof generator === 'function' ?\n generator(renderProps, createElement) :\n generator;\n if (typeof customContent === 'string' ||\n isValidElement(customContent) ||\n Array.isArray(customContent)) {\n innerContent = customContent;\n }\n else if (typeof customContent === 'object') {\n if ('html' in customContent) {\n attrs.dangerouslySetInnerHTML = { __html: customContent.html };\n }\n else if ('domNodes' in customContent) {\n queuedDomNodes = Array.prototype.slice.call(customContent.domNodes);\n }\n }\n }\n this.queuedDomNodes = queuedDomNodes;\n return createElement(props.elTag, attrs, innerContent);\n }\n componentDidMount() {\n this.applyQueueudDomNodes();\n this.triggerCustomRendering(true);\n }\n componentDidUpdate() {\n this.applyQueueudDomNodes();\n this.triggerCustomRendering(true);\n }\n componentWillUnmount() {\n this.triggerCustomRendering(false); // TODO: different API for removal?\n }\n triggerCustomRendering(isActive) {\n const { props, context } = this;\n const { handleCustomRendering, customRenderingMetaMap } = context.options;\n if (handleCustomRendering) {\n const customRenderingMeta = customRenderingMetaMap === null || customRenderingMetaMap === void 0 ? void 0 : customRenderingMetaMap[props.generatorName];\n if (customRenderingMeta) {\n handleCustomRendering(Object.assign({ id: this.id, isActive, containerEl: this.base, reportNewContainerEl: this.handleEl, generatorMeta: customRenderingMeta }, props));\n }\n }\n }\n applyQueueudDomNodes() {\n const { queuedDomNodes, currentDomNodes } = this;\n const el = this.base;\n if (!isArraysEqual(queuedDomNodes, currentDomNodes)) {\n currentDomNodes.forEach(removeElement);\n for (let newNode of queuedDomNodes) {\n el.appendChild(newNode);\n }\n this.currentDomNodes = queuedDomNodes;\n }\n }\n}\nContentInjector.addPropsEquality({\n elClasses: isArraysEqual,\n elStyle: isPropsEqual,\n elAttrs: isNonHandlerPropsEqual,\n renderProps: isPropsEqual,\n});\n// Util\nfunction hasCustomRenderingHandler(generatorName, options) {\n var _a;\n return Boolean(options.handleCustomRendering &&\n generatorName &&\n ((_a = options.customRenderingMetaMap) === null || _a === void 0 ? void 0 : _a[generatorName]));\n}\nfunction buildElAttrs(props, extraClassNames) {\n const attrs = Object.assign(Object.assign({}, props.elAttrs), { ref: props.elRef });\n if (props.elClasses || extraClassNames) {\n attrs.className = (props.elClasses || [])\n .concat(extraClassNames || [])\n .concat(attrs.className || [])\n .filter(Boolean)\n .join(' ');\n }\n if (props.elStyle) {\n attrs.style = props.elStyle;\n }\n return attrs;\n}\n\nconst RenderId = createContext(0);\n\nclass ContentContainer extends Component {\n constructor() {\n super(...arguments);\n this.InnerContent = InnerContentInjector.bind(undefined, this);\n }\n render() {\n const { props } = this;\n const generatedClassNames = generateClassNames(props.classNameGenerator, props.renderProps);\n if (props.children) {\n const elAttrs = buildElAttrs(props, generatedClassNames);\n const children = props.children(this.InnerContent, props.renderProps, elAttrs);\n if (props.elTag) {\n return createElement(props.elTag, elAttrs, children);\n }\n else {\n return children;\n }\n }\n else {\n return createElement((ContentInjector), Object.assign(Object.assign({}, props), { elTag: props.elTag || 'div', elClasses: (props.elClasses || []).concat(generatedClassNames), renderId: this.context }));\n }\n }\n componentDidMount() {\n var _a, _b;\n (_b = (_a = this.props).didMount) === null || _b === void 0 ? void 0 : _b.call(_a, Object.assign(Object.assign({}, this.props.renderProps), { el: this.base }));\n }\n componentWillUnmount() {\n var _a, _b;\n (_b = (_a = this.props).willUnmount) === null || _b === void 0 ? void 0 : _b.call(_a, Object.assign(Object.assign({}, this.props.renderProps), { el: this.base }));\n }\n}\nContentContainer.contextType = RenderId;\nfunction InnerContentInjector(containerComponent, props) {\n const parentProps = containerComponent.props;\n return createElement((ContentInjector), Object.assign({ renderProps: parentProps.renderProps, generatorName: parentProps.generatorName, generator: parentProps.generator, renderId: containerComponent.context }, props));\n}\n// Utils\nfunction generateClassNames(classNameGenerator, renderProps) {\n const classNames = typeof classNameGenerator === 'function' ?\n classNameGenerator(renderProps) :\n classNameGenerator || [];\n return typeof classNames === 'string' ? [classNames] : classNames;\n}\n\nclass ViewContainer extends BaseComponent {\n render() {\n let { props, context } = this;\n let { options } = context;\n let renderProps = { view: context.viewApi };\n return (createElement(ContentContainer, Object.assign({}, props, { elTag: props.elTag || 'div', elClasses: [\n ...buildViewClassNames(props.viewSpec),\n ...(props.elClasses || []),\n ], renderProps: renderProps, classNameGenerator: options.viewClassNames, generatorName: undefined, generator: undefined, didMount: options.viewDidMount, willUnmount: options.viewWillUnmount }), () => props.children));\n }\n}\nfunction buildViewClassNames(viewSpec) {\n return [\n `fc-${viewSpec.type}-view`,\n 'fc-view',\n ];\n}\n\nfunction parseRange(input, dateEnv) {\n let start = null;\n let end = null;\n if (input.start) {\n start = dateEnv.createMarker(input.start);\n }\n if (input.end) {\n end = dateEnv.createMarker(input.end);\n }\n if (!start && !end) {\n return null;\n }\n if (start && end && end < start) {\n return null;\n }\n return { start, end };\n}\n// SIDE-EFFECT: will mutate ranges.\n// Will return a new array result.\nfunction invertRanges(ranges, constraintRange) {\n let invertedRanges = [];\n let { start } = constraintRange; // the end of the previous range. the start of the new range\n let i;\n let dateRange;\n // ranges need to be in order. required for our date-walking algorithm\n ranges.sort(compareRanges);\n for (i = 0; i < ranges.length; i += 1) {\n dateRange = ranges[i];\n // add the span of time before the event (if there is any)\n if (dateRange.start > start) { // compare millisecond time (skip any ambig logic)\n invertedRanges.push({ start, end: dateRange.start });\n }\n if (dateRange.end > start) {\n start = dateRange.end;\n }\n }\n // add the span of time after the last event (if there is any)\n if (start < constraintRange.end) { // compare millisecond time (skip any ambig logic)\n invertedRanges.push({ start, end: constraintRange.end });\n }\n return invertedRanges;\n}\nfunction compareRanges(range0, range1) {\n return range0.start.valueOf() - range1.start.valueOf(); // earlier ranges go first\n}\nfunction intersectRanges(range0, range1) {\n let { start, end } = range0;\n let newRange = null;\n if (range1.start !== null) {\n if (start === null) {\n start = range1.start;\n }\n else {\n start = new Date(Math.max(start.valueOf(), range1.start.valueOf()));\n }\n }\n if (range1.end != null) {\n if (end === null) {\n end = range1.end;\n }\n else {\n end = new Date(Math.min(end.valueOf(), range1.end.valueOf()));\n }\n }\n if (start === null || end === null || start < end) {\n newRange = { start, end };\n }\n return newRange;\n}\nfunction rangesEqual(range0, range1) {\n return (range0.start === null ? null : range0.start.valueOf()) === (range1.start === null ? null : range1.start.valueOf()) &&\n (range0.end === null ? null : range0.end.valueOf()) === (range1.end === null ? null : range1.end.valueOf());\n}\nfunction rangesIntersect(range0, range1) {\n return (range0.end === null || range1.start === null || range0.end > range1.start) &&\n (range0.start === null || range1.end === null || range0.start < range1.end);\n}\nfunction rangeContainsRange(outerRange, innerRange) {\n return (outerRange.start === null || (innerRange.start !== null && innerRange.start >= outerRange.start)) &&\n (outerRange.end === null || (innerRange.end !== null && innerRange.end <= outerRange.end));\n}\nfunction rangeContainsMarker(range, date) {\n return (range.start === null || date >= range.start) &&\n (range.end === null || date < range.end);\n}\n// If the given date is not within the given range, move it inside.\n// (If it's past the end, make it one millisecond before the end).\nfunction constrainMarkerToRange(date, range) {\n if (range.start != null && date < range.start) {\n return range.start;\n }\n if (range.end != null && date >= range.end) {\n return new Date(range.end.valueOf() - 1);\n }\n return date;\n}\n\n/* Date stuff that doesn't belong in datelib core\n----------------------------------------------------------------------------------------------------------------------*/\n// given a timed range, computes an all-day range that has the same exact duration,\n// but whose start time is aligned with the start of the day.\nfunction computeAlignedDayRange(timedRange) {\n let dayCnt = Math.floor(diffDays(timedRange.start, timedRange.end)) || 1;\n let start = startOfDay(timedRange.start);\n let end = addDays(start, dayCnt);\n return { start, end };\n}\n// given a timed range, computes an all-day range based on how for the end date bleeds into the next day\n// TODO: give nextDayThreshold a default arg\nfunction computeVisibleDayRange(timedRange, nextDayThreshold = createDuration(0)) {\n let startDay = null;\n let endDay = null;\n if (timedRange.end) {\n endDay = startOfDay(timedRange.end);\n let endTimeMS = timedRange.end.valueOf() - endDay.valueOf(); // # of milliseconds into `endDay`\n // If the end time is actually inclusively part of the next day and is equal to or\n // beyond the next day threshold, adjust the end to be the exclusive end of `endDay`.\n // Otherwise, leaving it as inclusive will cause it to exclude `endDay`.\n if (endTimeMS && endTimeMS >= asRoughMs(nextDayThreshold)) {\n endDay = addDays(endDay, 1);\n }\n }\n if (timedRange.start) {\n startDay = startOfDay(timedRange.start); // the beginning of the day the range starts\n // If end is within `startDay` but not past nextDayThreshold, assign the default duration of one day.\n if (endDay && endDay <= startDay) {\n endDay = addDays(startDay, 1);\n }\n }\n return { start: startDay, end: endDay };\n}\n// spans from one day into another?\nfunction isMultiDayRange(range) {\n let visibleRange = computeVisibleDayRange(range);\n return diffDays(visibleRange.start, visibleRange.end) > 1;\n}\nfunction diffDates(date0, date1, dateEnv, largeUnit) {\n if (largeUnit === 'year') {\n return createDuration(dateEnv.diffWholeYears(date0, date1), 'year');\n }\n if (largeUnit === 'month') {\n return createDuration(dateEnv.diffWholeMonths(date0, date1), 'month');\n }\n return diffDayAndTime(date0, date1); // returns a duration\n}\n\nfunction reduceCurrentDate(currentDate, action) {\n switch (action.type) {\n case 'CHANGE_DATE':\n return action.dateMarker;\n default:\n return currentDate;\n }\n}\nfunction getInitialDate(options, dateEnv) {\n let initialDateInput = options.initialDate;\n // compute the initial ambig-timezone date\n if (initialDateInput != null) {\n return dateEnv.createMarker(initialDateInput);\n }\n return getNow(options.now, dateEnv); // getNow already returns unzoned\n}\nfunction getNow(nowInput, dateEnv) {\n if (typeof nowInput === 'function') {\n nowInput = nowInput();\n }\n if (nowInput == null) {\n return dateEnv.createNowMarker();\n }\n return dateEnv.createMarker(nowInput);\n}\n\nclass DateProfileGenerator {\n constructor(props) {\n this.props = props;\n this.nowDate = getNow(props.nowInput, props.dateEnv);\n this.initHiddenDays();\n }\n /* Date Range Computation\n ------------------------------------------------------------------------------------------------------------------*/\n // Builds a structure with info about what the dates/ranges will be for the \"prev\" view.\n buildPrev(currentDateProfile, currentDate, forceToValid) {\n let { dateEnv } = this.props;\n let prevDate = dateEnv.subtract(dateEnv.startOf(currentDate, currentDateProfile.currentRangeUnit), // important for start-of-month\n currentDateProfile.dateIncrement);\n return this.build(prevDate, -1, forceToValid);\n }\n // Builds a structure with info about what the dates/ranges will be for the \"next\" view.\n buildNext(currentDateProfile, currentDate, forceToValid) {\n let { dateEnv } = this.props;\n let nextDate = dateEnv.add(dateEnv.startOf(currentDate, currentDateProfile.currentRangeUnit), // important for start-of-month\n currentDateProfile.dateIncrement);\n return this.build(nextDate, 1, forceToValid);\n }\n // Builds a structure holding dates/ranges for rendering around the given date.\n // Optional direction param indicates whether the date is being incremented/decremented\n // from its previous value. decremented = -1, incremented = 1 (default).\n build(currentDate, direction, forceToValid = true) {\n let { props } = this;\n let validRange;\n let currentInfo;\n let isRangeAllDay;\n let renderRange;\n let activeRange;\n let isValid;\n validRange = this.buildValidRange();\n validRange = this.trimHiddenDays(validRange);\n if (forceToValid) {\n currentDate = constrainMarkerToRange(currentDate, validRange);\n }\n currentInfo = this.buildCurrentRangeInfo(currentDate, direction);\n isRangeAllDay = /^(year|month|week|day)$/.test(currentInfo.unit);\n renderRange = this.buildRenderRange(this.trimHiddenDays(currentInfo.range), currentInfo.unit, isRangeAllDay);\n renderRange = this.trimHiddenDays(renderRange);\n activeRange = renderRange;\n if (!props.showNonCurrentDates) {\n activeRange = intersectRanges(activeRange, currentInfo.range);\n }\n activeRange = this.adjustActiveRange(activeRange);\n activeRange = intersectRanges(activeRange, validRange); // might return null\n // it's invalid if the originally requested date is not contained,\n // or if the range is completely outside of the valid range.\n isValid = rangesIntersect(currentInfo.range, validRange);\n return {\n // constraint for where prev/next operations can go and where events can be dragged/resized to.\n // an object with optional start and end properties.\n validRange,\n // range the view is formally responsible for.\n // for example, a month view might have 1st-31st, excluding padded dates\n currentRange: currentInfo.range,\n // name of largest unit being displayed, like \"month\" or \"week\"\n currentRangeUnit: currentInfo.unit,\n isRangeAllDay,\n // dates that display events and accept drag-n-drop\n // will be `null` if no dates accept events\n activeRange,\n // date range with a rendered skeleton\n // includes not-active days that need some sort of DOM\n renderRange,\n // Duration object that denotes the first visible time of any given day\n slotMinTime: props.slotMinTime,\n // Duration object that denotes the exclusive visible end time of any given day\n slotMaxTime: props.slotMaxTime,\n isValid,\n // how far the current date will move for a prev/next operation\n dateIncrement: this.buildDateIncrement(currentInfo.duration),\n // pass a fallback (might be null) ^\n };\n }\n // Builds an object with optional start/end properties.\n // Indicates the minimum/maximum dates to display.\n // not responsible for trimming hidden days.\n buildValidRange() {\n let input = this.props.validRangeInput;\n let simpleInput = typeof input === 'function'\n ? input.call(this.props.calendarApi, this.nowDate)\n : input;\n return this.refineRange(simpleInput) ||\n { start: null, end: null }; // completely open-ended\n }\n // Builds a structure with info about the \"current\" range, the range that is\n // highlighted as being the current month for example.\n // See build() for a description of `direction`.\n // Guaranteed to have `range` and `unit` properties. `duration` is optional.\n buildCurrentRangeInfo(date, direction) {\n let { props } = this;\n let duration = null;\n let unit = null;\n let range = null;\n let dayCount;\n if (props.duration) {\n duration = props.duration;\n unit = props.durationUnit;\n range = this.buildRangeFromDuration(date, direction, duration, unit);\n }\n else if ((dayCount = this.props.dayCount)) {\n unit = 'day';\n range = this.buildRangeFromDayCount(date, direction, dayCount);\n }\n else if ((range = this.buildCustomVisibleRange(date))) {\n unit = props.dateEnv.greatestWholeUnit(range.start, range.end).unit;\n }\n else {\n duration = this.getFallbackDuration();\n unit = greatestDurationDenominator(duration).unit;\n range = this.buildRangeFromDuration(date, direction, duration, unit);\n }\n return { duration, unit, range };\n }\n getFallbackDuration() {\n return createDuration({ day: 1 });\n }\n // Returns a new activeRange to have time values (un-ambiguate)\n // slotMinTime or slotMaxTime causes the range to expand.\n adjustActiveRange(range) {\n let { dateEnv, usesMinMaxTime, slotMinTime, slotMaxTime } = this.props;\n let { start, end } = range;\n if (usesMinMaxTime) {\n // expand active range if slotMinTime is negative (why not when positive?)\n if (asRoughDays(slotMinTime) < 0) {\n start = startOfDay(start); // necessary?\n start = dateEnv.add(start, slotMinTime);\n }\n // expand active range if slotMaxTime is beyond one day (why not when negative?)\n if (asRoughDays(slotMaxTime) > 1) {\n end = startOfDay(end); // necessary?\n end = addDays(end, -1);\n end = dateEnv.add(end, slotMaxTime);\n }\n }\n return { start, end };\n }\n // Builds the \"current\" range when it is specified as an explicit duration.\n // `unit` is the already-computed greatestDurationDenominator unit of duration.\n buildRangeFromDuration(date, direction, duration, unit) {\n let { dateEnv, dateAlignment } = this.props;\n let start;\n let end;\n let res;\n // compute what the alignment should be\n if (!dateAlignment) {\n let { dateIncrement } = this.props;\n if (dateIncrement) {\n // use the smaller of the two units\n if (asRoughMs(dateIncrement) < asRoughMs(duration)) {\n dateAlignment = greatestDurationDenominator(dateIncrement).unit;\n }\n else {\n dateAlignment = unit;\n }\n }\n else {\n dateAlignment = unit;\n }\n }\n // if the view displays a single day or smaller\n if (asRoughDays(duration) <= 1) {\n if (this.isHiddenDay(start)) {\n start = this.skipHiddenDays(start, direction);\n start = startOfDay(start);\n }\n }\n function computeRes() {\n start = dateEnv.startOf(date, dateAlignment);\n end = dateEnv.add(start, duration);\n res = { start, end };\n }\n computeRes();\n // if range is completely enveloped by hidden days, go past the hidden days\n if (!this.trimHiddenDays(res)) {\n date = this.skipHiddenDays(date, direction);\n computeRes();\n }\n return res;\n }\n // Builds the \"current\" range when a dayCount is specified.\n buildRangeFromDayCount(date, direction, dayCount) {\n let { dateEnv, dateAlignment } = this.props;\n let runningCount = 0;\n let start = date;\n let end;\n if (dateAlignment) {\n start = dateEnv.startOf(start, dateAlignment);\n }\n start = startOfDay(start);\n start = this.skipHiddenDays(start, direction);\n end = start;\n do {\n end = addDays(end, 1);\n if (!this.isHiddenDay(end)) {\n runningCount += 1;\n }\n } while (runningCount < dayCount);\n return { start, end };\n }\n // Builds a normalized range object for the \"visible\" range,\n // which is a way to define the currentRange and activeRange at the same time.\n buildCustomVisibleRange(date) {\n let { props } = this;\n let input = props.visibleRangeInput;\n let simpleInput = typeof input === 'function'\n ? input.call(props.calendarApi, props.dateEnv.toDate(date))\n : input;\n let range = this.refineRange(simpleInput);\n if (range && (range.start == null || range.end == null)) {\n return null;\n }\n return range;\n }\n // Computes the range that will represent the element/cells for *rendering*,\n // but which may have voided days/times.\n // not responsible for trimming hidden days.\n buildRenderRange(currentRange, currentRangeUnit, isRangeAllDay) {\n return currentRange;\n }\n // Compute the duration value that should be added/substracted to the current date\n // when a prev/next operation happens.\n buildDateIncrement(fallback) {\n let { dateIncrement } = this.props;\n let customAlignment;\n if (dateIncrement) {\n return dateIncrement;\n }\n if ((customAlignment = this.props.dateAlignment)) {\n return createDuration(1, customAlignment);\n }\n if (fallback) {\n return fallback;\n }\n return createDuration({ days: 1 });\n }\n refineRange(rangeInput) {\n if (rangeInput) {\n let range = parseRange(rangeInput, this.props.dateEnv);\n if (range) {\n range = computeVisibleDayRange(range);\n }\n return range;\n }\n return null;\n }\n /* Hidden Days\n ------------------------------------------------------------------------------------------------------------------*/\n // Initializes internal variables related to calculating hidden days-of-week\n initHiddenDays() {\n let hiddenDays = this.props.hiddenDays || []; // array of day-of-week indices that are hidden\n let isHiddenDayHash = []; // is the day-of-week hidden? (hash with day-of-week-index -> bool)\n let dayCnt = 0;\n let i;\n if (this.props.weekends === false) {\n hiddenDays.push(0, 6); // 0=sunday, 6=saturday\n }\n for (i = 0; i < 7; i += 1) {\n if (!(isHiddenDayHash[i] = hiddenDays.indexOf(i) !== -1)) {\n dayCnt += 1;\n }\n }\n if (!dayCnt) {\n throw new Error('invalid hiddenDays'); // all days were hidden? bad.\n }\n this.isHiddenDayHash = isHiddenDayHash;\n }\n // Remove days from the beginning and end of the range that are computed as hidden.\n // If the whole range is trimmed off, returns null\n trimHiddenDays(range) {\n let { start, end } = range;\n if (start) {\n start = this.skipHiddenDays(start);\n }\n if (end) {\n end = this.skipHiddenDays(end, -1, true);\n }\n if (start == null || end == null || start < end) {\n return { start, end };\n }\n return null;\n }\n // Is the current day hidden?\n // `day` is a day-of-week index (0-6), or a Date (used for UTC)\n isHiddenDay(day) {\n if (day instanceof Date) {\n day = day.getUTCDay();\n }\n return this.isHiddenDayHash[day];\n }\n // Incrementing the current day until it is no longer a hidden day, returning a copy.\n // DOES NOT CONSIDER validRange!\n // If the initial value of `date` is not a hidden day, don't do anything.\n // Pass `isExclusive` as `true` if you are dealing with an end date.\n // `inc` defaults to `1` (increment one day forward each time)\n skipHiddenDays(date, inc = 1, isExclusive = false) {\n while (this.isHiddenDayHash[(date.getUTCDay() + (isExclusive ? inc : 0) + 7) % 7]) {\n date = addDays(date, inc);\n }\n return date;\n }\n}\n\nfunction createEventInstance(defId, range, forcedStartTzo, forcedEndTzo) {\n return {\n instanceId: guid(),\n defId,\n range,\n forcedStartTzo: forcedStartTzo == null ? null : forcedStartTzo,\n forcedEndTzo: forcedEndTzo == null ? null : forcedEndTzo,\n };\n}\n\nfunction parseRecurring(refined, defaultAllDay, dateEnv, recurringTypes) {\n for (let i = 0; i < recurringTypes.length; i += 1) {\n let parsed = recurringTypes[i].parse(refined, dateEnv);\n if (parsed) {\n let { allDay } = refined;\n if (allDay == null) {\n allDay = defaultAllDay;\n if (allDay == null) {\n allDay = parsed.allDayGuess;\n if (allDay == null) {\n allDay = false;\n }\n }\n }\n return {\n allDay,\n duration: parsed.duration,\n typeData: parsed.typeData,\n typeId: i,\n };\n }\n }\n return null;\n}\nfunction expandRecurring(eventStore, framingRange, context) {\n let { dateEnv, pluginHooks, options } = context;\n let { defs, instances } = eventStore;\n // remove existing recurring instances\n // TODO: bad. always expand events as a second step\n instances = filterHash(instances, (instance) => !defs[instance.defId].recurringDef);\n for (let defId in defs) {\n let def = defs[defId];\n if (def.recurringDef) {\n let { duration } = def.recurringDef;\n if (!duration) {\n duration = def.allDay ?\n options.defaultAllDayEventDuration :\n options.defaultTimedEventDuration;\n }\n let starts = expandRecurringRanges(def, duration, framingRange, dateEnv, pluginHooks.recurringTypes);\n for (let start of starts) {\n let instance = createEventInstance(defId, {\n start,\n end: dateEnv.add(start, duration),\n });\n instances[instance.instanceId] = instance;\n }\n }\n }\n return { defs, instances };\n}\n/*\nEvent MUST have a recurringDef\n*/\nfunction expandRecurringRanges(eventDef, duration, framingRange, dateEnv, recurringTypes) {\n let typeDef = recurringTypes[eventDef.recurringDef.typeId];\n let markers = typeDef.expand(eventDef.recurringDef.typeData, {\n start: dateEnv.subtract(framingRange.start, duration),\n end: framingRange.end,\n }, dateEnv);\n // the recurrence plugins don't guarantee that all-day events are start-of-day, so we have to\n if (eventDef.allDay) {\n markers = markers.map(startOfDay);\n }\n return markers;\n}\n\nconst EVENT_NON_DATE_REFINERS = {\n id: String,\n groupId: String,\n title: String,\n url: String,\n interactive: Boolean,\n};\nconst EVENT_DATE_REFINERS = {\n start: identity,\n end: identity,\n date: identity,\n allDay: Boolean,\n};\nconst EVENT_REFINERS = Object.assign(Object.assign(Object.assign({}, EVENT_NON_DATE_REFINERS), EVENT_DATE_REFINERS), { extendedProps: identity });\nfunction parseEvent(raw, eventSource, context, allowOpenRange, refiners = buildEventRefiners(context)) {\n let { refined, extra } = refineEventDef(raw, context, refiners);\n let defaultAllDay = computeIsDefaultAllDay(eventSource, context);\n let recurringRes = parseRecurring(refined, defaultAllDay, context.dateEnv, context.pluginHooks.recurringTypes);\n if (recurringRes) {\n let def = parseEventDef(refined, extra, eventSource ? eventSource.sourceId : '', recurringRes.allDay, Boolean(recurringRes.duration), context);\n def.recurringDef = {\n typeId: recurringRes.typeId,\n typeData: recurringRes.typeData,\n duration: recurringRes.duration,\n };\n return { def, instance: null };\n }\n let singleRes = parseSingle(refined, defaultAllDay, context, allowOpenRange);\n if (singleRes) {\n let def = parseEventDef(refined, extra, eventSource ? eventSource.sourceId : '', singleRes.allDay, singleRes.hasEnd, context);\n let instance = createEventInstance(def.defId, singleRes.range, singleRes.forcedStartTzo, singleRes.forcedEndTzo);\n return { def, instance };\n }\n return null;\n}\nfunction refineEventDef(raw, context, refiners = buildEventRefiners(context)) {\n return refineProps(raw, refiners);\n}\nfunction buildEventRefiners(context) {\n return Object.assign(Object.assign(Object.assign({}, EVENT_UI_REFINERS), EVENT_REFINERS), context.pluginHooks.eventRefiners);\n}\n/*\nWill NOT populate extendedProps with the leftover properties.\nWill NOT populate date-related props.\n*/\nfunction parseEventDef(refined, extra, sourceId, allDay, hasEnd, context) {\n let def = {\n title: refined.title || '',\n groupId: refined.groupId || '',\n publicId: refined.id || '',\n url: refined.url || '',\n recurringDef: null,\n defId: guid(),\n sourceId,\n allDay,\n hasEnd,\n interactive: refined.interactive,\n ui: createEventUi(refined, context),\n extendedProps: Object.assign(Object.assign({}, (refined.extendedProps || {})), extra),\n };\n for (let memberAdder of context.pluginHooks.eventDefMemberAdders) {\n Object.assign(def, memberAdder(refined));\n }\n // help out EventImpl from having user modify props\n Object.freeze(def.ui.classNames);\n Object.freeze(def.extendedProps);\n return def;\n}\nfunction parseSingle(refined, defaultAllDay, context, allowOpenRange) {\n let { allDay } = refined;\n let startMeta;\n let startMarker = null;\n let hasEnd = false;\n let endMeta;\n let endMarker = null;\n let startInput = refined.start != null ? refined.start : refined.date;\n startMeta = context.dateEnv.createMarkerMeta(startInput);\n if (startMeta) {\n startMarker = startMeta.marker;\n }\n else if (!allowOpenRange) {\n return null;\n }\n if (refined.end != null) {\n endMeta = context.dateEnv.createMarkerMeta(refined.end);\n }\n if (allDay == null) {\n if (defaultAllDay != null) {\n allDay = defaultAllDay;\n }\n else {\n // fall back to the date props LAST\n allDay = (!startMeta || startMeta.isTimeUnspecified) &&\n (!endMeta || endMeta.isTimeUnspecified);\n }\n }\n if (allDay && startMarker) {\n startMarker = startOfDay(startMarker);\n }\n if (endMeta) {\n endMarker = endMeta.marker;\n if (allDay) {\n endMarker = startOfDay(endMarker);\n }\n if (startMarker && endMarker <= startMarker) {\n endMarker = null;\n }\n }\n if (endMarker) {\n hasEnd = true;\n }\n else if (!allowOpenRange) {\n hasEnd = context.options.forceEventDuration || false;\n endMarker = context.dateEnv.add(startMarker, allDay ?\n context.options.defaultAllDayEventDuration :\n context.options.defaultTimedEventDuration);\n }\n return {\n allDay,\n hasEnd,\n range: { start: startMarker, end: endMarker },\n forcedStartTzo: startMeta ? startMeta.forcedTzo : null,\n forcedEndTzo: endMeta ? endMeta.forcedTzo : null,\n };\n}\nfunction computeIsDefaultAllDay(eventSource, context) {\n let res = null;\n if (eventSource) {\n res = eventSource.defaultAllDay;\n }\n if (res == null) {\n res = context.options.defaultAllDay;\n }\n return res;\n}\n\nfunction parseEvents(rawEvents, eventSource, context, allowOpenRange) {\n let eventStore = createEmptyEventStore();\n let eventRefiners = buildEventRefiners(context);\n for (let rawEvent of rawEvents) {\n let tuple = parseEvent(rawEvent, eventSource, context, allowOpenRange, eventRefiners);\n if (tuple) {\n eventTupleToStore(tuple, eventStore);\n }\n }\n return eventStore;\n}\nfunction eventTupleToStore(tuple, eventStore = createEmptyEventStore()) {\n eventStore.defs[tuple.def.defId] = tuple.def;\n if (tuple.instance) {\n eventStore.instances[tuple.instance.instanceId] = tuple.instance;\n }\n return eventStore;\n}\n// retrieves events that have the same groupId as the instance specified by `instanceId`\n// or they are the same as the instance.\n// why might instanceId not be in the store? an event from another calendar?\nfunction getRelevantEvents(eventStore, instanceId) {\n let instance = eventStore.instances[instanceId];\n if (instance) {\n let def = eventStore.defs[instance.defId];\n // get events/instances with same group\n let newStore = filterEventStoreDefs(eventStore, (lookDef) => isEventDefsGrouped(def, lookDef));\n // add the original\n // TODO: wish we could use eventTupleToStore or something like it\n newStore.defs[def.defId] = def;\n newStore.instances[instance.instanceId] = instance;\n return newStore;\n }\n return createEmptyEventStore();\n}\nfunction isEventDefsGrouped(def0, def1) {\n return Boolean(def0.groupId && def0.groupId === def1.groupId);\n}\nfunction createEmptyEventStore() {\n return { defs: {}, instances: {} };\n}\nfunction mergeEventStores(store0, store1) {\n return {\n defs: Object.assign(Object.assign({}, store0.defs), store1.defs),\n instances: Object.assign(Object.assign({}, store0.instances), store1.instances),\n };\n}\nfunction filterEventStoreDefs(eventStore, filterFunc) {\n let defs = filterHash(eventStore.defs, filterFunc);\n let instances = filterHash(eventStore.instances, (instance) => (defs[instance.defId] // still exists?\n ));\n return { defs, instances };\n}\nfunction excludeSubEventStore(master, sub) {\n let { defs, instances } = master;\n let filteredDefs = {};\n let filteredInstances = {};\n for (let defId in defs) {\n if (!sub.defs[defId]) { // not explicitly excluded\n filteredDefs[defId] = defs[defId];\n }\n }\n for (let instanceId in instances) {\n if (!sub.instances[instanceId] && // not explicitly excluded\n filteredDefs[instances[instanceId].defId] // def wasn't filtered away\n ) {\n filteredInstances[instanceId] = instances[instanceId];\n }\n }\n return {\n defs: filteredDefs,\n instances: filteredInstances,\n };\n}\n\nfunction normalizeConstraint(input, context) {\n if (Array.isArray(input)) {\n return parseEvents(input, null, context, true); // allowOpenRange=true\n }\n if (typeof input === 'object' && input) { // non-null object\n return parseEvents([input], null, context, true); // allowOpenRange=true\n }\n if (input != null) {\n return String(input);\n }\n return null;\n}\n\nfunction parseClassNames(raw) {\n if (Array.isArray(raw)) {\n return raw;\n }\n if (typeof raw === 'string') {\n return raw.split(/\\s+/);\n }\n return [];\n}\n\n// TODO: better called \"EventSettings\" or \"EventConfig\"\n// TODO: move this file into structs\n// TODO: separate constraint/overlap/allow, because selection uses only that, not other props\nconst EVENT_UI_REFINERS = {\n display: String,\n editable: Boolean,\n startEditable: Boolean,\n durationEditable: Boolean,\n constraint: identity,\n overlap: identity,\n allow: identity,\n className: parseClassNames,\n classNames: parseClassNames,\n color: String,\n backgroundColor: String,\n borderColor: String,\n textColor: String,\n};\nconst EMPTY_EVENT_UI = {\n display: null,\n startEditable: null,\n durationEditable: null,\n constraints: [],\n overlap: null,\n allows: [],\n backgroundColor: '',\n borderColor: '',\n textColor: '',\n classNames: [],\n};\nfunction createEventUi(refined, context) {\n let constraint = normalizeConstraint(refined.constraint, context);\n return {\n display: refined.display || null,\n startEditable: refined.startEditable != null ? refined.startEditable : refined.editable,\n durationEditable: refined.durationEditable != null ? refined.durationEditable : refined.editable,\n constraints: constraint != null ? [constraint] : [],\n overlap: refined.overlap != null ? refined.overlap : null,\n allows: refined.allow != null ? [refined.allow] : [],\n backgroundColor: refined.backgroundColor || refined.color || '',\n borderColor: refined.borderColor || refined.color || '',\n textColor: refined.textColor || '',\n classNames: (refined.className || []).concat(refined.classNames || []), // join singular and plural\n };\n}\n// TODO: prevent against problems with <2 args!\nfunction combineEventUis(uis) {\n return uis.reduce(combineTwoEventUis, EMPTY_EVENT_UI);\n}\nfunction combineTwoEventUis(item0, item1) {\n return {\n display: item1.display != null ? item1.display : item0.display,\n startEditable: item1.startEditable != null ? item1.startEditable : item0.startEditable,\n durationEditable: item1.durationEditable != null ? item1.durationEditable : item0.durationEditable,\n constraints: item0.constraints.concat(item1.constraints),\n overlap: typeof item1.overlap === 'boolean' ? item1.overlap : item0.overlap,\n allows: item0.allows.concat(item1.allows),\n backgroundColor: item1.backgroundColor || item0.backgroundColor,\n borderColor: item1.borderColor || item0.borderColor,\n textColor: item1.textColor || item0.textColor,\n classNames: item0.classNames.concat(item1.classNames),\n };\n}\n\nconst EVENT_SOURCE_REFINERS = {\n id: String,\n defaultAllDay: Boolean,\n url: String,\n format: String,\n events: identity,\n eventDataTransform: identity,\n // for any network-related sources\n success: identity,\n failure: identity,\n};\nfunction parseEventSource(raw, context, refiners = buildEventSourceRefiners(context)) {\n let rawObj;\n if (typeof raw === 'string') {\n rawObj = { url: raw };\n }\n else if (typeof raw === 'function' || Array.isArray(raw)) {\n rawObj = { events: raw };\n }\n else if (typeof raw === 'object' && raw) { // not null\n rawObj = raw;\n }\n if (rawObj) {\n let { refined, extra } = refineProps(rawObj, refiners);\n let metaRes = buildEventSourceMeta(refined, context);\n if (metaRes) {\n return {\n _raw: raw,\n isFetching: false,\n latestFetchId: '',\n fetchRange: null,\n defaultAllDay: refined.defaultAllDay,\n eventDataTransform: refined.eventDataTransform,\n success: refined.success,\n failure: refined.failure,\n publicId: refined.id || '',\n sourceId: guid(),\n sourceDefId: metaRes.sourceDefId,\n meta: metaRes.meta,\n ui: createEventUi(refined, context),\n extendedProps: extra,\n };\n }\n }\n return null;\n}\nfunction buildEventSourceRefiners(context) {\n return Object.assign(Object.assign(Object.assign({}, EVENT_UI_REFINERS), EVENT_SOURCE_REFINERS), context.pluginHooks.eventSourceRefiners);\n}\nfunction buildEventSourceMeta(raw, context) {\n let defs = context.pluginHooks.eventSourceDefs;\n for (let i = defs.length - 1; i >= 0; i -= 1) { // later-added plugins take precedence\n let def = defs[i];\n let meta = def.parseMeta(raw);\n if (meta) {\n return { sourceDefId: i, meta };\n }\n }\n return null;\n}\n\nfunction reduceEventStore(eventStore, action, eventSources, dateProfile, context) {\n switch (action.type) {\n case 'RECEIVE_EVENTS': // raw\n return receiveRawEvents(eventStore, eventSources[action.sourceId], action.fetchId, action.fetchRange, action.rawEvents, context);\n case 'ADD_EVENTS': // already parsed, but not expanded\n return addEvent(eventStore, action.eventStore, // new ones\n dateProfile ? dateProfile.activeRange : null, context);\n case 'RESET_EVENTS':\n return action.eventStore;\n case 'MERGE_EVENTS': // already parsed and expanded\n return mergeEventStores(eventStore, action.eventStore);\n case 'PREV': // TODO: how do we track all actions that affect dateProfile :(\n case 'NEXT':\n case 'CHANGE_DATE':\n case 'CHANGE_VIEW_TYPE':\n if (dateProfile) {\n return expandRecurring(eventStore, dateProfile.activeRange, context);\n }\n return eventStore;\n case 'REMOVE_EVENTS':\n return excludeSubEventStore(eventStore, action.eventStore);\n case 'REMOVE_EVENT_SOURCE':\n return excludeEventsBySourceId(eventStore, action.sourceId);\n case 'REMOVE_ALL_EVENT_SOURCES':\n return filterEventStoreDefs(eventStore, (eventDef) => (!eventDef.sourceId // only keep events with no source id\n ));\n case 'REMOVE_ALL_EVENTS':\n return createEmptyEventStore();\n default:\n return eventStore;\n }\n}\nfunction receiveRawEvents(eventStore, eventSource, fetchId, fetchRange, rawEvents, context) {\n if (eventSource && // not already removed\n fetchId === eventSource.latestFetchId // TODO: wish this logic was always in event-sources\n ) {\n let subset = parseEvents(transformRawEvents(rawEvents, eventSource, context), eventSource, context);\n if (fetchRange) {\n subset = expandRecurring(subset, fetchRange, context);\n }\n return mergeEventStores(excludeEventsBySourceId(eventStore, eventSource.sourceId), subset);\n }\n return eventStore;\n}\nfunction transformRawEvents(rawEvents, eventSource, context) {\n let calEachTransform = context.options.eventDataTransform;\n let sourceEachTransform = eventSource ? eventSource.eventDataTransform : null;\n if (sourceEachTransform) {\n rawEvents = transformEachRawEvent(rawEvents, sourceEachTransform);\n }\n if (calEachTransform) {\n rawEvents = transformEachRawEvent(rawEvents, calEachTransform);\n }\n return rawEvents;\n}\nfunction transformEachRawEvent(rawEvents, func) {\n let refinedEvents;\n if (!func) {\n refinedEvents = rawEvents;\n }\n else {\n refinedEvents = [];\n for (let rawEvent of rawEvents) {\n let refinedEvent = func(rawEvent);\n if (refinedEvent) {\n refinedEvents.push(refinedEvent);\n }\n else if (refinedEvent == null) {\n refinedEvents.push(rawEvent);\n } // if a different falsy value, do nothing\n }\n }\n return refinedEvents;\n}\nfunction addEvent(eventStore, subset, expandRange, context) {\n if (expandRange) {\n subset = expandRecurring(subset, expandRange, context);\n }\n return mergeEventStores(eventStore, subset);\n}\nfunction rezoneEventStoreDates(eventStore, oldDateEnv, newDateEnv) {\n let { defs } = eventStore;\n let instances = mapHash(eventStore.instances, (instance) => {\n let def = defs[instance.defId];\n if (def.allDay || def.recurringDef) {\n return instance; // isn't dependent on timezone\n }\n return Object.assign(Object.assign({}, instance), { range: {\n start: newDateEnv.createMarker(oldDateEnv.toDate(instance.range.start, instance.forcedStartTzo)),\n end: newDateEnv.createMarker(oldDateEnv.toDate(instance.range.end, instance.forcedEndTzo)),\n }, forcedStartTzo: newDateEnv.canComputeOffset ? null : instance.forcedStartTzo, forcedEndTzo: newDateEnv.canComputeOffset ? null : instance.forcedEndTzo });\n });\n return { defs, instances };\n}\nfunction excludeEventsBySourceId(eventStore, sourceId) {\n return filterEventStoreDefs(eventStore, (eventDef) => eventDef.sourceId !== sourceId);\n}\n// QUESTION: why not just return instances? do a general object-property-exclusion util\nfunction excludeInstances(eventStore, removals) {\n return {\n defs: eventStore.defs,\n instances: filterHash(eventStore.instances, (instance) => !removals[instance.instanceId]),\n };\n}\n\nclass Emitter {\n constructor() {\n this.handlers = {};\n this.thisContext = null;\n }\n setThisContext(thisContext) {\n this.thisContext = thisContext;\n }\n setOptions(options) {\n this.options = options;\n }\n on(type, handler) {\n addToHash(this.handlers, type, handler);\n }\n off(type, handler) {\n removeFromHash(this.handlers, type, handler);\n }\n trigger(type, ...args) {\n let attachedHandlers = this.handlers[type] || [];\n let optionHandler = this.options && this.options[type];\n let handlers = [].concat(optionHandler || [], attachedHandlers);\n for (let handler of handlers) {\n handler.apply(this.thisContext, args);\n }\n }\n hasHandlers(type) {\n return Boolean((this.handlers[type] && this.handlers[type].length) ||\n (this.options && this.options[type]));\n }\n}\nfunction addToHash(hash, type, handler) {\n (hash[type] || (hash[type] = []))\n .push(handler);\n}\nfunction removeFromHash(hash, type, handler) {\n if (handler) {\n if (hash[type]) {\n hash[type] = hash[type].filter((func) => func !== handler);\n }\n }\n else {\n delete hash[type]; // remove all handler funcs for this type\n }\n}\n\nconst DEF_DEFAULTS = {\n startTime: '09:00',\n endTime: '17:00',\n daysOfWeek: [1, 2, 3, 4, 5],\n display: 'inverse-background',\n classNames: 'fc-non-business',\n groupId: '_businessHours', // so multiple defs get grouped\n};\n/*\nTODO: pass around as EventDefHash!!!\n*/\nfunction parseBusinessHours(input, context) {\n return parseEvents(refineInputs(input), null, context);\n}\nfunction refineInputs(input) {\n let rawDefs;\n if (input === true) {\n rawDefs = [{}]; // will get DEF_DEFAULTS verbatim\n }\n else if (Array.isArray(input)) {\n // if specifying an array, every sub-definition NEEDS a day-of-week\n rawDefs = input.filter((rawDef) => rawDef.daysOfWeek);\n }\n else if (typeof input === 'object' && input) { // non-null object\n rawDefs = [input];\n }\n else { // is probably false\n rawDefs = [];\n }\n rawDefs = rawDefs.map((rawDef) => (Object.assign(Object.assign({}, DEF_DEFAULTS), rawDef)));\n return rawDefs;\n}\n\nfunction triggerDateSelect(selection, pev, context) {\n context.emitter.trigger('select', Object.assign(Object.assign({}, buildDateSpanApiWithContext(selection, context)), { jsEvent: pev ? pev.origEvent : null, view: context.viewApi || context.calendarApi.view }));\n}\nfunction triggerDateUnselect(pev, context) {\n context.emitter.trigger('unselect', {\n jsEvent: pev ? pev.origEvent : null,\n view: context.viewApi || context.calendarApi.view,\n });\n}\nfunction buildDateSpanApiWithContext(dateSpan, context) {\n let props = {};\n for (let transform of context.pluginHooks.dateSpanTransforms) {\n Object.assign(props, transform(dateSpan, context));\n }\n Object.assign(props, buildDateSpanApi(dateSpan, context.dateEnv));\n return props;\n}\n// Given an event's allDay status and start date, return what its fallback end date should be.\n// TODO: rename to computeDefaultEventEnd\nfunction getDefaultEventEnd(allDay, marker, context) {\n let { dateEnv, options } = context;\n let end = marker;\n if (allDay) {\n end = startOfDay(end);\n end = dateEnv.add(end, options.defaultAllDayEventDuration);\n }\n else {\n end = dateEnv.add(end, options.defaultTimedEventDuration);\n }\n return end;\n}\n\n// applies the mutation to ALL defs/instances within the event store\nfunction applyMutationToEventStore(eventStore, eventConfigBase, mutation, context) {\n let eventConfigs = compileEventUis(eventStore.defs, eventConfigBase);\n let dest = createEmptyEventStore();\n for (let defId in eventStore.defs) {\n let def = eventStore.defs[defId];\n dest.defs[defId] = applyMutationToEventDef(def, eventConfigs[defId], mutation, context);\n }\n for (let instanceId in eventStore.instances) {\n let instance = eventStore.instances[instanceId];\n let def = dest.defs[instance.defId]; // important to grab the newly modified def\n dest.instances[instanceId] = applyMutationToEventInstance(instance, def, eventConfigs[instance.defId], mutation, context);\n }\n return dest;\n}\nfunction applyMutationToEventDef(eventDef, eventConfig, mutation, context) {\n let standardProps = mutation.standardProps || {};\n // if hasEnd has not been specified, guess a good value based on deltas.\n // if duration will change, there's no way the default duration will persist,\n // and thus, we need to mark the event as having a real end\n if (standardProps.hasEnd == null &&\n eventConfig.durationEditable &&\n (mutation.startDelta || mutation.endDelta)) {\n standardProps.hasEnd = true; // TODO: is this mutation okay?\n }\n let copy = Object.assign(Object.assign(Object.assign({}, eventDef), standardProps), { ui: Object.assign(Object.assign({}, eventDef.ui), standardProps.ui) });\n if (mutation.extendedProps) {\n copy.extendedProps = Object.assign(Object.assign({}, copy.extendedProps), mutation.extendedProps);\n }\n for (let applier of context.pluginHooks.eventDefMutationAppliers) {\n applier(copy, mutation, context);\n }\n if (!copy.hasEnd && context.options.forceEventDuration) {\n copy.hasEnd = true;\n }\n return copy;\n}\nfunction applyMutationToEventInstance(eventInstance, eventDef, // must first be modified by applyMutationToEventDef\neventConfig, mutation, context) {\n let { dateEnv } = context;\n let forceAllDay = mutation.standardProps && mutation.standardProps.allDay === true;\n let clearEnd = mutation.standardProps && mutation.standardProps.hasEnd === false;\n let copy = Object.assign({}, eventInstance);\n if (forceAllDay) {\n copy.range = computeAlignedDayRange(copy.range);\n }\n if (mutation.datesDelta && eventConfig.startEditable) {\n copy.range = {\n start: dateEnv.add(copy.range.start, mutation.datesDelta),\n end: dateEnv.add(copy.range.end, mutation.datesDelta),\n };\n }\n if (mutation.startDelta && eventConfig.durationEditable) {\n copy.range = {\n start: dateEnv.add(copy.range.start, mutation.startDelta),\n end: copy.range.end,\n };\n }\n if (mutation.endDelta && eventConfig.durationEditable) {\n copy.range = {\n start: copy.range.start,\n end: dateEnv.add(copy.range.end, mutation.endDelta),\n };\n }\n if (clearEnd) {\n copy.range = {\n start: copy.range.start,\n end: getDefaultEventEnd(eventDef.allDay, copy.range.start, context),\n };\n }\n // in case event was all-day but the supplied deltas were not\n // better util for this?\n if (eventDef.allDay) {\n copy.range = {\n start: startOfDay(copy.range.start),\n end: startOfDay(copy.range.end),\n };\n }\n // handle invalid durations\n if (copy.range.end < copy.range.start) {\n copy.range.end = getDefaultEventEnd(eventDef.allDay, copy.range.start, context);\n }\n return copy;\n}\n\nclass EventSourceImpl {\n constructor(context, internalEventSource) {\n this.context = context;\n this.internalEventSource = internalEventSource;\n }\n remove() {\n this.context.dispatch({\n type: 'REMOVE_EVENT_SOURCE',\n sourceId: this.internalEventSource.sourceId,\n });\n }\n refetch() {\n this.context.dispatch({\n type: 'FETCH_EVENT_SOURCES',\n sourceIds: [this.internalEventSource.sourceId],\n isRefetch: true,\n });\n }\n get id() {\n return this.internalEventSource.publicId;\n }\n get url() {\n return this.internalEventSource.meta.url;\n }\n get format() {\n return this.internalEventSource.meta.format; // TODO: bad. not guaranteed\n }\n}\n\nclass EventImpl {\n // instance will be null if expressing a recurring event that has no current instances,\n // OR if trying to validate an incoming external event that has no dates assigned\n constructor(context, def, instance) {\n this._context = context;\n this._def = def;\n this._instance = instance || null;\n }\n /*\n TODO: make event struct more responsible for this\n */\n setProp(name, val) {\n if (name in EVENT_DATE_REFINERS) {\n console.warn('Could not set date-related prop \\'name\\'. Use one of the date-related methods instead.');\n // TODO: make proper aliasing system?\n }\n else if (name === 'id') {\n val = EVENT_NON_DATE_REFINERS[name](val);\n this.mutate({\n standardProps: { publicId: val }, // hardcoded internal name\n });\n }\n else if (name in EVENT_NON_DATE_REFINERS) {\n val = EVENT_NON_DATE_REFINERS[name](val);\n this.mutate({\n standardProps: { [name]: val },\n });\n }\n else if (name in EVENT_UI_REFINERS) {\n let ui = EVENT_UI_REFINERS[name](val);\n if (name === 'color') {\n ui = { backgroundColor: val, borderColor: val };\n }\n else if (name === 'editable') {\n ui = { startEditable: val, durationEditable: val };\n }\n else {\n ui = { [name]: val };\n }\n this.mutate({\n standardProps: { ui },\n });\n }\n else {\n console.warn(`Could not set prop '${name}'. Use setExtendedProp instead.`);\n }\n }\n setExtendedProp(name, val) {\n this.mutate({\n extendedProps: { [name]: val },\n });\n }\n setStart(startInput, options = {}) {\n let { dateEnv } = this._context;\n let start = dateEnv.createMarker(startInput);\n if (start && this._instance) { // TODO: warning if parsed bad\n let instanceRange = this._instance.range;\n let startDelta = diffDates(instanceRange.start, start, dateEnv, options.granularity); // what if parsed bad!?\n if (options.maintainDuration) {\n this.mutate({ datesDelta: startDelta });\n }\n else {\n this.mutate({ startDelta });\n }\n }\n }\n setEnd(endInput, options = {}) {\n let { dateEnv } = this._context;\n let end;\n if (endInput != null) {\n end = dateEnv.createMarker(endInput);\n if (!end) {\n return; // TODO: warning if parsed bad\n }\n }\n if (this._instance) {\n if (end) {\n let endDelta = diffDates(this._instance.range.end, end, dateEnv, options.granularity);\n this.mutate({ endDelta });\n }\n else {\n this.mutate({ standardProps: { hasEnd: false } });\n }\n }\n }\n setDates(startInput, endInput, options = {}) {\n let { dateEnv } = this._context;\n let standardProps = { allDay: options.allDay };\n let start = dateEnv.createMarker(startInput);\n let end;\n if (!start) {\n return; // TODO: warning if parsed bad\n }\n if (endInput != null) {\n end = dateEnv.createMarker(endInput);\n if (!end) { // TODO: warning if parsed bad\n return;\n }\n }\n if (this._instance) {\n let instanceRange = this._instance.range;\n // when computing the diff for an event being converted to all-day,\n // compute diff off of the all-day values the way event-mutation does.\n if (options.allDay === true) {\n instanceRange = computeAlignedDayRange(instanceRange);\n }\n let startDelta = diffDates(instanceRange.start, start, dateEnv, options.granularity);\n if (end) {\n let endDelta = diffDates(instanceRange.end, end, dateEnv, options.granularity);\n if (durationsEqual(startDelta, endDelta)) {\n this.mutate({ datesDelta: startDelta, standardProps });\n }\n else {\n this.mutate({ startDelta, endDelta, standardProps });\n }\n }\n else { // means \"clear the end\"\n standardProps.hasEnd = false;\n this.mutate({ datesDelta: startDelta, standardProps });\n }\n }\n }\n moveStart(deltaInput) {\n let delta = createDuration(deltaInput);\n if (delta) { // TODO: warning if parsed bad\n this.mutate({ startDelta: delta });\n }\n }\n moveEnd(deltaInput) {\n let delta = createDuration(deltaInput);\n if (delta) { // TODO: warning if parsed bad\n this.mutate({ endDelta: delta });\n }\n }\n moveDates(deltaInput) {\n let delta = createDuration(deltaInput);\n if (delta) { // TODO: warning if parsed bad\n this.mutate({ datesDelta: delta });\n }\n }\n setAllDay(allDay, options = {}) {\n let standardProps = { allDay };\n let { maintainDuration } = options;\n if (maintainDuration == null) {\n maintainDuration = this._context.options.allDayMaintainDuration;\n }\n if (this._def.allDay !== allDay) {\n standardProps.hasEnd = maintainDuration;\n }\n this.mutate({ standardProps });\n }\n formatRange(formatInput) {\n let { dateEnv } = this._context;\n let instance = this._instance;\n let formatter = createFormatter(formatInput);\n if (this._def.hasEnd) {\n return dateEnv.formatRange(instance.range.start, instance.range.end, formatter, {\n forcedStartTzo: instance.forcedStartTzo,\n forcedEndTzo: instance.forcedEndTzo,\n });\n }\n return dateEnv.format(instance.range.start, formatter, {\n forcedTzo: instance.forcedStartTzo,\n });\n }\n mutate(mutation) {\n let instance = this._instance;\n if (instance) {\n let def = this._def;\n let context = this._context;\n let { eventStore } = context.getCurrentData();\n let relevantEvents = getRelevantEvents(eventStore, instance.instanceId);\n let eventConfigBase = {\n '': {\n display: '',\n startEditable: true,\n durationEditable: true,\n constraints: [],\n overlap: null,\n allows: [],\n backgroundColor: '',\n borderColor: '',\n textColor: '',\n classNames: [],\n },\n };\n relevantEvents = applyMutationToEventStore(relevantEvents, eventConfigBase, mutation, context);\n let oldEvent = new EventImpl(context, def, instance); // snapshot\n this._def = relevantEvents.defs[def.defId];\n this._instance = relevantEvents.instances[instance.instanceId];\n context.dispatch({\n type: 'MERGE_EVENTS',\n eventStore: relevantEvents,\n });\n context.emitter.trigger('eventChange', {\n oldEvent,\n event: this,\n relatedEvents: buildEventApis(relevantEvents, context, instance),\n revert() {\n context.dispatch({\n type: 'RESET_EVENTS',\n eventStore, // the ORIGINAL store\n });\n },\n });\n }\n }\n remove() {\n let context = this._context;\n let asStore = eventApiToStore(this);\n context.dispatch({\n type: 'REMOVE_EVENTS',\n eventStore: asStore,\n });\n context.emitter.trigger('eventRemove', {\n event: this,\n relatedEvents: [],\n revert() {\n context.dispatch({\n type: 'MERGE_EVENTS',\n eventStore: asStore,\n });\n },\n });\n }\n get source() {\n let { sourceId } = this._def;\n if (sourceId) {\n return new EventSourceImpl(this._context, this._context.getCurrentData().eventSources[sourceId]);\n }\n return null;\n }\n get start() {\n return this._instance ?\n this._context.dateEnv.toDate(this._instance.range.start) :\n null;\n }\n get end() {\n return (this._instance && this._def.hasEnd) ?\n this._context.dateEnv.toDate(this._instance.range.end) :\n null;\n }\n get startStr() {\n let instance = this._instance;\n if (instance) {\n return this._context.dateEnv.formatIso(instance.range.start, {\n omitTime: this._def.allDay,\n forcedTzo: instance.forcedStartTzo,\n });\n }\n return '';\n }\n get endStr() {\n let instance = this._instance;\n if (instance && this._def.hasEnd) {\n return this._context.dateEnv.formatIso(instance.range.end, {\n omitTime: this._def.allDay,\n forcedTzo: instance.forcedEndTzo,\n });\n }\n return '';\n }\n // computable props that all access the def\n // TODO: find a TypeScript-compatible way to do this at scale\n get id() { return this._def.publicId; }\n get groupId() { return this._def.groupId; }\n get allDay() { return this._def.allDay; }\n get title() { return this._def.title; }\n get url() { return this._def.url; }\n get display() { return this._def.ui.display || 'auto'; } // bad. just normalize the type earlier\n get startEditable() { return this._def.ui.startEditable; }\n get durationEditable() { return this._def.ui.durationEditable; }\n get constraint() { return this._def.ui.constraints[0] || null; }\n get overlap() { return this._def.ui.overlap; }\n get allow() { return this._def.ui.allows[0] || null; }\n get backgroundColor() { return this._def.ui.backgroundColor; }\n get borderColor() { return this._def.ui.borderColor; }\n get textColor() { return this._def.ui.textColor; }\n // NOTE: user can't modify these because Object.freeze was called in event-def parsing\n get classNames() { return this._def.ui.classNames; }\n get extendedProps() { return this._def.extendedProps; }\n toPlainObject(settings = {}) {\n let def = this._def;\n let { ui } = def;\n let { startStr, endStr } = this;\n let res = {};\n if (def.title) {\n res.title = def.title;\n }\n if (startStr) {\n res.start = startStr;\n }\n if (endStr) {\n res.end = endStr;\n }\n if (def.publicId) {\n res.id = def.publicId;\n }\n if (def.groupId) {\n res.groupId = def.groupId;\n }\n if (def.url) {\n res.url = def.url;\n }\n if (ui.display && ui.display !== 'auto') {\n res.display = ui.display;\n }\n // TODO: what about recurring-event properties???\n // TODO: include startEditable/durationEditable/constraint/overlap/allow\n if (settings.collapseColor && ui.backgroundColor && ui.backgroundColor === ui.borderColor) {\n res.color = ui.backgroundColor;\n }\n else {\n if (ui.backgroundColor) {\n res.backgroundColor = ui.backgroundColor;\n }\n if (ui.borderColor) {\n res.borderColor = ui.borderColor;\n }\n }\n if (ui.textColor) {\n res.textColor = ui.textColor;\n }\n if (ui.classNames.length) {\n res.classNames = ui.classNames;\n }\n if (Object.keys(def.extendedProps).length) {\n if (settings.collapseExtendedProps) {\n Object.assign(res, def.extendedProps);\n }\n else {\n res.extendedProps = def.extendedProps;\n }\n }\n return res;\n }\n toJSON() {\n return this.toPlainObject();\n }\n}\nfunction eventApiToStore(eventApi) {\n let def = eventApi._def;\n let instance = eventApi._instance;\n return {\n defs: { [def.defId]: def },\n instances: instance\n ? { [instance.instanceId]: instance }\n : {},\n };\n}\nfunction buildEventApis(eventStore, context, excludeInstance) {\n let { defs, instances } = eventStore;\n let eventApis = [];\n let excludeInstanceId = excludeInstance ? excludeInstance.instanceId : '';\n for (let id in instances) {\n let instance = instances[id];\n let def = defs[instance.defId];\n if (instance.instanceId !== excludeInstanceId) {\n eventApis.push(new EventImpl(context, def, instance));\n }\n }\n return eventApis;\n}\n\n/*\nSpecifying nextDayThreshold signals that all-day ranges should be sliced.\n*/\nfunction sliceEventStore(eventStore, eventUiBases, framingRange, nextDayThreshold) {\n let inverseBgByGroupId = {};\n let inverseBgByDefId = {};\n let defByGroupId = {};\n let bgRanges = [];\n let fgRanges = [];\n let eventUis = compileEventUis(eventStore.defs, eventUiBases);\n for (let defId in eventStore.defs) {\n let def = eventStore.defs[defId];\n let ui = eventUis[def.defId];\n if (ui.display === 'inverse-background') {\n if (def.groupId) {\n inverseBgByGroupId[def.groupId] = [];\n if (!defByGroupId[def.groupId]) {\n defByGroupId[def.groupId] = def;\n }\n }\n else {\n inverseBgByDefId[defId] = [];\n }\n }\n }\n for (let instanceId in eventStore.instances) {\n let instance = eventStore.instances[instanceId];\n let def = eventStore.defs[instance.defId];\n let ui = eventUis[def.defId];\n let origRange = instance.range;\n let normalRange = (!def.allDay && nextDayThreshold) ?\n computeVisibleDayRange(origRange, nextDayThreshold) :\n origRange;\n let slicedRange = intersectRanges(normalRange, framingRange);\n if (slicedRange) {\n if (ui.display === 'inverse-background') {\n if (def.groupId) {\n inverseBgByGroupId[def.groupId].push(slicedRange);\n }\n else {\n inverseBgByDefId[instance.defId].push(slicedRange);\n }\n }\n else if (ui.display !== 'none') {\n (ui.display === 'background' ? bgRanges : fgRanges).push({\n def,\n ui,\n instance,\n range: slicedRange,\n isStart: normalRange.start && normalRange.start.valueOf() === slicedRange.start.valueOf(),\n isEnd: normalRange.end && normalRange.end.valueOf() === slicedRange.end.valueOf(),\n });\n }\n }\n }\n for (let groupId in inverseBgByGroupId) { // BY GROUP\n let ranges = inverseBgByGroupId[groupId];\n let invertedRanges = invertRanges(ranges, framingRange);\n for (let invertedRange of invertedRanges) {\n let def = defByGroupId[groupId];\n let ui = eventUis[def.defId];\n bgRanges.push({\n def,\n ui,\n instance: null,\n range: invertedRange,\n isStart: false,\n isEnd: false,\n });\n }\n }\n for (let defId in inverseBgByDefId) {\n let ranges = inverseBgByDefId[defId];\n let invertedRanges = invertRanges(ranges, framingRange);\n for (let invertedRange of invertedRanges) {\n bgRanges.push({\n def: eventStore.defs[defId],\n ui: eventUis[defId],\n instance: null,\n range: invertedRange,\n isStart: false,\n isEnd: false,\n });\n }\n }\n return { bg: bgRanges, fg: fgRanges };\n}\nfunction hasBgRendering(def) {\n return def.ui.display === 'background' || def.ui.display === 'inverse-background';\n}\nfunction setElSeg(el, seg) {\n el.fcSeg = seg;\n}\nfunction getElSeg(el) {\n return el.fcSeg ||\n el.parentNode.fcSeg || // for the harness\n null;\n}\n// event ui computation\nfunction compileEventUis(eventDefs, eventUiBases) {\n return mapHash(eventDefs, (eventDef) => compileEventUi(eventDef, eventUiBases));\n}\nfunction compileEventUi(eventDef, eventUiBases) {\n let uis = [];\n if (eventUiBases['']) {\n uis.push(eventUiBases['']);\n }\n if (eventUiBases[eventDef.defId]) {\n uis.push(eventUiBases[eventDef.defId]);\n }\n uis.push(eventDef.ui);\n return combineEventUis(uis);\n}\nfunction sortEventSegs(segs, eventOrderSpecs) {\n let objs = segs.map(buildSegCompareObj);\n objs.sort((obj0, obj1) => compareByFieldSpecs(obj0, obj1, eventOrderSpecs));\n return objs.map((c) => c._seg);\n}\n// returns a object with all primitive props that can be compared\nfunction buildSegCompareObj(seg) {\n let { eventRange } = seg;\n let eventDef = eventRange.def;\n let range = eventRange.instance ? eventRange.instance.range : eventRange.range;\n let start = range.start ? range.start.valueOf() : 0; // TODO: better support for open-range events\n let end = range.end ? range.end.valueOf() : 0; // \"\n return Object.assign(Object.assign(Object.assign({}, eventDef.extendedProps), eventDef), { id: eventDef.publicId, start,\n end, duration: end - start, allDay: Number(eventDef.allDay), _seg: seg });\n}\nfunction computeSegDraggable(seg, context) {\n let { pluginHooks } = context;\n let transformers = pluginHooks.isDraggableTransformers;\n let { def, ui } = seg.eventRange;\n let val = ui.startEditable;\n for (let transformer of transformers) {\n val = transformer(val, def, ui, context);\n }\n return val;\n}\nfunction computeSegStartResizable(seg, context) {\n return seg.isStart && seg.eventRange.ui.durationEditable && context.options.eventResizableFromStart;\n}\nfunction computeSegEndResizable(seg, context) {\n return seg.isEnd && seg.eventRange.ui.durationEditable;\n}\nfunction buildSegTimeText(seg, timeFormat, context, defaultDisplayEventTime, // defaults to true\ndefaultDisplayEventEnd, // defaults to true\nstartOverride, endOverride) {\n let { dateEnv, options } = context;\n let { displayEventTime, displayEventEnd } = options;\n let eventDef = seg.eventRange.def;\n let eventInstance = seg.eventRange.instance;\n if (displayEventTime == null) {\n displayEventTime = defaultDisplayEventTime !== false;\n }\n if (displayEventEnd == null) {\n displayEventEnd = defaultDisplayEventEnd !== false;\n }\n let wholeEventStart = eventInstance.range.start;\n let wholeEventEnd = eventInstance.range.end;\n let segStart = startOverride || seg.start || seg.eventRange.range.start;\n let segEnd = endOverride || seg.end || seg.eventRange.range.end;\n let isStartDay = startOfDay(wholeEventStart).valueOf() === startOfDay(segStart).valueOf();\n let isEndDay = startOfDay(addMs(wholeEventEnd, -1)).valueOf() === startOfDay(addMs(segEnd, -1)).valueOf();\n if (displayEventTime && !eventDef.allDay && (isStartDay || isEndDay)) {\n segStart = isStartDay ? wholeEventStart : segStart;\n segEnd = isEndDay ? wholeEventEnd : segEnd;\n if (displayEventEnd && eventDef.hasEnd) {\n return dateEnv.formatRange(segStart, segEnd, timeFormat, {\n forcedStartTzo: startOverride ? null : eventInstance.forcedStartTzo,\n forcedEndTzo: endOverride ? null : eventInstance.forcedEndTzo,\n });\n }\n return dateEnv.format(segStart, timeFormat, {\n forcedTzo: startOverride ? null : eventInstance.forcedStartTzo, // nooooo, same\n });\n }\n return '';\n}\nfunction getSegMeta(seg, todayRange, nowDate) {\n let segRange = seg.eventRange.range;\n return {\n isPast: segRange.end < (nowDate || todayRange.start),\n isFuture: segRange.start >= (nowDate || todayRange.end),\n isToday: todayRange && rangeContainsMarker(todayRange, segRange.start),\n };\n}\nfunction getEventClassNames(props) {\n let classNames = ['fc-event'];\n if (props.isMirror) {\n classNames.push('fc-event-mirror');\n }\n if (props.isDraggable) {\n classNames.push('fc-event-draggable');\n }\n if (props.isStartResizable || props.isEndResizable) {\n classNames.push('fc-event-resizable');\n }\n if (props.isDragging) {\n classNames.push('fc-event-dragging');\n }\n if (props.isResizing) {\n classNames.push('fc-event-resizing');\n }\n if (props.isSelected) {\n classNames.push('fc-event-selected');\n }\n if (props.isStart) {\n classNames.push('fc-event-start');\n }\n if (props.isEnd) {\n classNames.push('fc-event-end');\n }\n if (props.isPast) {\n classNames.push('fc-event-past');\n }\n if (props.isToday) {\n classNames.push('fc-event-today');\n }\n if (props.isFuture) {\n classNames.push('fc-event-future');\n }\n return classNames;\n}\nfunction buildEventRangeKey(eventRange) {\n return eventRange.instance\n ? eventRange.instance.instanceId\n : `${eventRange.def.defId}:${eventRange.range.start.toISOString()}`;\n // inverse-background events don't have specific instances. TODO: better solution\n}\nfunction getSegAnchorAttrs(seg, context) {\n let { def, instance } = seg.eventRange;\n let { url } = def;\n if (url) {\n return { href: url };\n }\n let { emitter, options } = context;\n let { eventInteractive } = options;\n if (eventInteractive == null) {\n eventInteractive = def.interactive;\n if (eventInteractive == null) {\n eventInteractive = Boolean(emitter.hasHandlers('eventClick'));\n }\n }\n // mock what happens in EventClicking\n if (eventInteractive) {\n // only attach keyboard-related handlers because click handler is already done in EventClicking\n return createAriaKeyboardAttrs((ev) => {\n emitter.trigger('eventClick', {\n el: ev.target,\n event: new EventImpl(context, def, instance),\n jsEvent: ev,\n view: context.viewApi,\n });\n });\n }\n return {};\n}\n\nconst STANDARD_PROPS = {\n start: identity,\n end: identity,\n allDay: Boolean,\n};\nfunction parseDateSpan(raw, dateEnv, defaultDuration) {\n let span = parseOpenDateSpan(raw, dateEnv);\n let { range } = span;\n if (!range.start) {\n return null;\n }\n if (!range.end) {\n if (defaultDuration == null) {\n return null;\n }\n range.end = dateEnv.add(range.start, defaultDuration);\n }\n return span;\n}\n/*\nTODO: somehow combine with parseRange?\nWill return null if the start/end props were present but parsed invalidly.\n*/\nfunction parseOpenDateSpan(raw, dateEnv) {\n let { refined: standardProps, extra } = refineProps(raw, STANDARD_PROPS);\n let startMeta = standardProps.start ? dateEnv.createMarkerMeta(standardProps.start) : null;\n let endMeta = standardProps.end ? dateEnv.createMarkerMeta(standardProps.end) : null;\n let { allDay } = standardProps;\n if (allDay == null) {\n allDay = (startMeta && startMeta.isTimeUnspecified) &&\n (!endMeta || endMeta.isTimeUnspecified);\n }\n return Object.assign({ range: {\n start: startMeta ? startMeta.marker : null,\n end: endMeta ? endMeta.marker : null,\n }, allDay }, extra);\n}\nfunction isDateSpansEqual(span0, span1) {\n return rangesEqual(span0.range, span1.range) &&\n span0.allDay === span1.allDay &&\n isSpanPropsEqual(span0, span1);\n}\n// the NON-DATE-RELATED props\nfunction isSpanPropsEqual(span0, span1) {\n for (let propName in span1) {\n if (propName !== 'range' && propName !== 'allDay') {\n if (span0[propName] !== span1[propName]) {\n return false;\n }\n }\n }\n // are there any props that span0 has that span1 DOESN'T have?\n // both have range/allDay, so no need to special-case.\n for (let propName in span0) {\n if (!(propName in span1)) {\n return false;\n }\n }\n return true;\n}\nfunction buildDateSpanApi(span, dateEnv) {\n return Object.assign(Object.assign({}, buildRangeApi(span.range, dateEnv, span.allDay)), { allDay: span.allDay });\n}\nfunction buildRangeApiWithTimeZone(range, dateEnv, omitTime) {\n return Object.assign(Object.assign({}, buildRangeApi(range, dateEnv, omitTime)), { timeZone: dateEnv.timeZone });\n}\nfunction buildRangeApi(range, dateEnv, omitTime) {\n return {\n start: dateEnv.toDate(range.start),\n end: dateEnv.toDate(range.end),\n startStr: dateEnv.formatIso(range.start, { omitTime }),\n endStr: dateEnv.formatIso(range.end, { omitTime }),\n };\n}\nfunction fabricateEventRange(dateSpan, eventUiBases, context) {\n let res = refineEventDef({ editable: false }, context);\n let def = parseEventDef(res.refined, res.extra, '', // sourceId\n dateSpan.allDay, true, // hasEnd\n context);\n return {\n def,\n ui: compileEventUi(def, eventUiBases),\n instance: createEventInstance(def.defId, dateSpan.range),\n range: dateSpan.range,\n isStart: true,\n isEnd: true,\n };\n}\n\n/*\ngiven a function that resolves a result asynchronously.\nthe function can either call passed-in success and failure callbacks,\nor it can return a promise.\nif you need to pass additional params to func, bind them first.\n*/\nfunction unpromisify(func, normalizedSuccessCallback, normalizedFailureCallback) {\n // guard against success/failure callbacks being called more than once\n // and guard against a promise AND callback being used together.\n let isResolved = false;\n let wrappedSuccess = function (res) {\n if (!isResolved) {\n isResolved = true;\n normalizedSuccessCallback(res);\n }\n };\n let wrappedFailure = function (error) {\n if (!isResolved) {\n isResolved = true;\n normalizedFailureCallback(error);\n }\n };\n let res = func(wrappedSuccess, wrappedFailure);\n if (res && typeof res.then === 'function') {\n res.then(wrappedSuccess, wrappedFailure);\n }\n}\n\nclass JsonRequestError extends Error {\n constructor(message, response) {\n super(message);\n this.response = response;\n }\n}\nfunction requestJson(method, url, params) {\n method = method.toUpperCase();\n const fetchOptions = {\n method,\n };\n if (method === 'GET') {\n url += (url.indexOf('?') === -1 ? '?' : '&') +\n new URLSearchParams(params);\n }\n else {\n fetchOptions.body = new URLSearchParams(params);\n fetchOptions.headers = {\n 'Content-Type': 'application/x-www-form-urlencoded',\n };\n }\n return fetch(url, fetchOptions).then((fetchRes) => {\n if (fetchRes.ok) {\n return fetchRes.json().then((parsedResponse) => {\n return [parsedResponse, fetchRes];\n }, () => {\n throw new JsonRequestError('Failure parsing JSON', fetchRes);\n });\n }\n else {\n throw new JsonRequestError('Request failed', fetchRes);\n }\n });\n}\n\nlet canVGrowWithinCell;\nfunction getCanVGrowWithinCell() {\n if (canVGrowWithinCell == null) {\n canVGrowWithinCell = computeCanVGrowWithinCell();\n }\n return canVGrowWithinCell;\n}\nfunction computeCanVGrowWithinCell() {\n // for SSR, because this function is call immediately at top-level\n // TODO: just make this logic execute top-level, immediately, instead of doing lazily\n if (typeof document === 'undefined') {\n return true;\n }\n let el = document.createElement('div');\n el.style.position = 'absolute';\n el.style.top = '0px';\n el.style.left = '0px';\n el.innerHTML = '
';\n el.querySelector('table').style.height = '100px';\n el.querySelector('div').style.height = '100%';\n document.body.appendChild(el);\n let div = el.querySelector('div');\n let possible = div.offsetHeight > 0;\n document.body.removeChild(el);\n return possible;\n}\n\nclass CalendarRoot extends BaseComponent {\n constructor() {\n super(...arguments);\n this.state = {\n forPrint: false,\n };\n this.handleBeforePrint = () => {\n this.setState({ forPrint: true });\n };\n this.handleAfterPrint = () => {\n this.setState({ forPrint: false });\n };\n }\n render() {\n let { props } = this;\n let { options } = props;\n let { forPrint } = this.state;\n let isHeightAuto = forPrint || options.height === 'auto' || options.contentHeight === 'auto';\n let height = (!isHeightAuto && options.height != null) ? options.height : '';\n let classNames = [\n 'fc',\n forPrint ? 'fc-media-print' : 'fc-media-screen',\n `fc-direction-${options.direction}`,\n props.theme.getClass('root'),\n ];\n if (!getCanVGrowWithinCell()) {\n classNames.push('fc-liquid-hack');\n }\n return props.children(classNames, height, isHeightAuto, forPrint);\n }\n componentDidMount() {\n let { emitter } = this.props;\n emitter.on('_beforeprint', this.handleBeforePrint);\n emitter.on('_afterprint', this.handleAfterPrint);\n }\n componentWillUnmount() {\n let { emitter } = this.props;\n emitter.off('_beforeprint', this.handleBeforePrint);\n emitter.off('_afterprint', this.handleAfterPrint);\n }\n}\n\nclass Interaction {\n constructor(settings) {\n this.component = settings.component;\n this.isHitComboAllowed = settings.isHitComboAllowed || null;\n }\n destroy() {\n }\n}\nfunction parseInteractionSettings(component, input) {\n return {\n component,\n el: input.el,\n useEventCenter: input.useEventCenter != null ? input.useEventCenter : true,\n isHitComboAllowed: input.isHitComboAllowed || null,\n };\n}\nfunction interactionSettingsToStore(settings) {\n return {\n [settings.component.uid]: settings,\n };\n}\n// global state\nconst interactionSettingsStore = {};\n\nclass CalendarImpl {\n getCurrentData() {\n return this.currentDataManager.getCurrentData();\n }\n dispatch(action) {\n this.currentDataManager.dispatch(action);\n }\n get view() { return this.getCurrentData().viewApi; }\n batchRendering(callback) {\n callback();\n }\n updateSize() {\n this.trigger('_resize', true);\n }\n // Options\n // -----------------------------------------------------------------------------------------------------------------\n setOption(name, val) {\n this.dispatch({\n type: 'SET_OPTION',\n optionName: name,\n rawOptionValue: val,\n });\n }\n getOption(name) {\n return this.currentDataManager.currentCalendarOptionsInput[name];\n }\n getAvailableLocaleCodes() {\n return Object.keys(this.getCurrentData().availableRawLocales);\n }\n // Trigger\n // -----------------------------------------------------------------------------------------------------------------\n on(handlerName, handler) {\n let { currentDataManager } = this;\n if (currentDataManager.currentCalendarOptionsRefiners[handlerName]) {\n currentDataManager.emitter.on(handlerName, handler);\n }\n else {\n console.warn(`Unknown listener name '${handlerName}'`);\n }\n }\n off(handlerName, handler) {\n this.currentDataManager.emitter.off(handlerName, handler);\n }\n // not meant for public use\n trigger(handlerName, ...args) {\n this.currentDataManager.emitter.trigger(handlerName, ...args);\n }\n // View\n // -----------------------------------------------------------------------------------------------------------------\n changeView(viewType, dateOrRange) {\n this.batchRendering(() => {\n this.unselect();\n if (dateOrRange) {\n if (dateOrRange.start && dateOrRange.end) { // a range\n this.dispatch({\n type: 'CHANGE_VIEW_TYPE',\n viewType,\n });\n this.dispatch({\n type: 'SET_OPTION',\n optionName: 'visibleRange',\n rawOptionValue: dateOrRange,\n });\n }\n else {\n let { dateEnv } = this.getCurrentData();\n this.dispatch({\n type: 'CHANGE_VIEW_TYPE',\n viewType,\n dateMarker: dateEnv.createMarker(dateOrRange),\n });\n }\n }\n else {\n this.dispatch({\n type: 'CHANGE_VIEW_TYPE',\n viewType,\n });\n }\n });\n }\n // Forces navigation to a view for the given date.\n // `viewType` can be a specific view name or a generic one like \"week\" or \"day\".\n // needs to change\n zoomTo(dateMarker, viewType) {\n let state = this.getCurrentData();\n let spec;\n viewType = viewType || 'day'; // day is default zoom\n spec = state.viewSpecs[viewType] || this.getUnitViewSpec(viewType);\n this.unselect();\n if (spec) {\n this.dispatch({\n type: 'CHANGE_VIEW_TYPE',\n viewType: spec.type,\n dateMarker,\n });\n }\n else {\n this.dispatch({\n type: 'CHANGE_DATE',\n dateMarker,\n });\n }\n }\n // Given a duration singular unit, like \"week\" or \"day\", finds a matching view spec.\n // Preference is given to views that have corresponding buttons.\n getUnitViewSpec(unit) {\n let { viewSpecs, toolbarConfig } = this.getCurrentData();\n let viewTypes = [].concat(toolbarConfig.header ? toolbarConfig.header.viewsWithButtons : [], toolbarConfig.footer ? toolbarConfig.footer.viewsWithButtons : []);\n let i;\n let spec;\n for (let viewType in viewSpecs) {\n viewTypes.push(viewType);\n }\n for (i = 0; i < viewTypes.length; i += 1) {\n spec = viewSpecs[viewTypes[i]];\n if (spec) {\n if (spec.singleUnit === unit) {\n return spec;\n }\n }\n }\n return null;\n }\n // Current Date\n // -----------------------------------------------------------------------------------------------------------------\n prev() {\n this.unselect();\n this.dispatch({ type: 'PREV' });\n }\n next() {\n this.unselect();\n this.dispatch({ type: 'NEXT' });\n }\n prevYear() {\n let state = this.getCurrentData();\n this.unselect();\n this.dispatch({\n type: 'CHANGE_DATE',\n dateMarker: state.dateEnv.addYears(state.currentDate, -1),\n });\n }\n nextYear() {\n let state = this.getCurrentData();\n this.unselect();\n this.dispatch({\n type: 'CHANGE_DATE',\n dateMarker: state.dateEnv.addYears(state.currentDate, 1),\n });\n }\n today() {\n let state = this.getCurrentData();\n this.unselect();\n this.dispatch({\n type: 'CHANGE_DATE',\n dateMarker: getNow(state.calendarOptions.now, state.dateEnv),\n });\n }\n gotoDate(zonedDateInput) {\n let state = this.getCurrentData();\n this.unselect();\n this.dispatch({\n type: 'CHANGE_DATE',\n dateMarker: state.dateEnv.createMarker(zonedDateInput),\n });\n }\n incrementDate(deltaInput) {\n let state = this.getCurrentData();\n let delta = createDuration(deltaInput);\n if (delta) { // else, warn about invalid input?\n this.unselect();\n this.dispatch({\n type: 'CHANGE_DATE',\n dateMarker: state.dateEnv.add(state.currentDate, delta),\n });\n }\n }\n getDate() {\n let state = this.getCurrentData();\n return state.dateEnv.toDate(state.currentDate);\n }\n // Date Formatting Utils\n // -----------------------------------------------------------------------------------------------------------------\n formatDate(d, formatter) {\n let { dateEnv } = this.getCurrentData();\n return dateEnv.format(dateEnv.createMarker(d), createFormatter(formatter));\n }\n // `settings` is for formatter AND isEndExclusive\n formatRange(d0, d1, settings) {\n let { dateEnv } = this.getCurrentData();\n return dateEnv.formatRange(dateEnv.createMarker(d0), dateEnv.createMarker(d1), createFormatter(settings), settings);\n }\n formatIso(d, omitTime) {\n let { dateEnv } = this.getCurrentData();\n return dateEnv.formatIso(dateEnv.createMarker(d), { omitTime });\n }\n // Date Selection / Event Selection / DayClick\n // -----------------------------------------------------------------------------------------------------------------\n select(dateOrObj, endDate) {\n let selectionInput;\n if (endDate == null) {\n if (dateOrObj.start != null) {\n selectionInput = dateOrObj;\n }\n else {\n selectionInput = {\n start: dateOrObj,\n end: null,\n };\n }\n }\n else {\n selectionInput = {\n start: dateOrObj,\n end: endDate,\n };\n }\n let state = this.getCurrentData();\n let selection = parseDateSpan(selectionInput, state.dateEnv, createDuration({ days: 1 }));\n if (selection) { // throw parse error otherwise?\n this.dispatch({ type: 'SELECT_DATES', selection });\n triggerDateSelect(selection, null, state);\n }\n }\n unselect(pev) {\n let state = this.getCurrentData();\n if (state.dateSelection) {\n this.dispatch({ type: 'UNSELECT_DATES' });\n triggerDateUnselect(pev, state);\n }\n }\n // Public Events API\n // -----------------------------------------------------------------------------------------------------------------\n addEvent(eventInput, sourceInput) {\n if (eventInput instanceof EventImpl) {\n let def = eventInput._def;\n let instance = eventInput._instance;\n let currentData = this.getCurrentData();\n // not already present? don't want to add an old snapshot\n if (!currentData.eventStore.defs[def.defId]) {\n this.dispatch({\n type: 'ADD_EVENTS',\n eventStore: eventTupleToStore({ def, instance }), // TODO: better util for two args?\n });\n this.triggerEventAdd(eventInput);\n }\n return eventInput;\n }\n let state = this.getCurrentData();\n let eventSource;\n if (sourceInput instanceof EventSourceImpl) {\n eventSource = sourceInput.internalEventSource;\n }\n else if (typeof sourceInput === 'boolean') {\n if (sourceInput) { // true. part of the first event source\n [eventSource] = hashValuesToArray(state.eventSources);\n }\n }\n else if (sourceInput != null) { // an ID. accepts a number too\n let sourceApi = this.getEventSourceById(sourceInput); // TODO: use an internal function\n if (!sourceApi) {\n console.warn(`Could not find an event source with ID \"${sourceInput}\"`); // TODO: test\n return null;\n }\n eventSource = sourceApi.internalEventSource;\n }\n let tuple = parseEvent(eventInput, eventSource, state, false);\n if (tuple) {\n let newEventApi = new EventImpl(state, tuple.def, tuple.def.recurringDef ? null : tuple.instance);\n this.dispatch({\n type: 'ADD_EVENTS',\n eventStore: eventTupleToStore(tuple),\n });\n this.triggerEventAdd(newEventApi);\n return newEventApi;\n }\n return null;\n }\n triggerEventAdd(eventApi) {\n let { emitter } = this.getCurrentData();\n emitter.trigger('eventAdd', {\n event: eventApi,\n relatedEvents: [],\n revert: () => {\n this.dispatch({\n type: 'REMOVE_EVENTS',\n eventStore: eventApiToStore(eventApi),\n });\n },\n });\n }\n // TODO: optimize\n getEventById(id) {\n let state = this.getCurrentData();\n let { defs, instances } = state.eventStore;\n id = String(id);\n for (let defId in defs) {\n let def = defs[defId];\n if (def.publicId === id) {\n if (def.recurringDef) {\n return new EventImpl(state, def, null);\n }\n for (let instanceId in instances) {\n let instance = instances[instanceId];\n if (instance.defId === def.defId) {\n return new EventImpl(state, def, instance);\n }\n }\n }\n }\n return null;\n }\n getEvents() {\n let currentData = this.getCurrentData();\n return buildEventApis(currentData.eventStore, currentData);\n }\n removeAllEvents() {\n this.dispatch({ type: 'REMOVE_ALL_EVENTS' });\n }\n // Public Event Sources API\n // -----------------------------------------------------------------------------------------------------------------\n getEventSources() {\n let state = this.getCurrentData();\n let sourceHash = state.eventSources;\n let sourceApis = [];\n for (let internalId in sourceHash) {\n sourceApis.push(new EventSourceImpl(state, sourceHash[internalId]));\n }\n return sourceApis;\n }\n getEventSourceById(id) {\n let state = this.getCurrentData();\n let sourceHash = state.eventSources;\n id = String(id);\n for (let sourceId in sourceHash) {\n if (sourceHash[sourceId].publicId === id) {\n return new EventSourceImpl(state, sourceHash[sourceId]);\n }\n }\n return null;\n }\n addEventSource(sourceInput) {\n let state = this.getCurrentData();\n if (sourceInput instanceof EventSourceImpl) {\n // not already present? don't want to add an old snapshot\n if (!state.eventSources[sourceInput.internalEventSource.sourceId]) {\n this.dispatch({\n type: 'ADD_EVENT_SOURCES',\n sources: [sourceInput.internalEventSource],\n });\n }\n return sourceInput;\n }\n let eventSource = parseEventSource(sourceInput, state);\n if (eventSource) { // TODO: error otherwise?\n this.dispatch({ type: 'ADD_EVENT_SOURCES', sources: [eventSource] });\n return new EventSourceImpl(state, eventSource);\n }\n return null;\n }\n removeAllEventSources() {\n this.dispatch({ type: 'REMOVE_ALL_EVENT_SOURCES' });\n }\n refetchEvents() {\n this.dispatch({ type: 'FETCH_EVENT_SOURCES', isRefetch: true });\n }\n // Scroll\n // -----------------------------------------------------------------------------------------------------------------\n scrollToTime(timeInput) {\n let time = createDuration(timeInput);\n if (time) {\n this.trigger('_scrollRequest', { time });\n }\n }\n}\n\nfunction pointInsideRect(point, rect) {\n return point.left >= rect.left &&\n point.left < rect.right &&\n point.top >= rect.top &&\n point.top < rect.bottom;\n}\n// Returns a new rectangle that is the intersection of the two rectangles. If they don't intersect, returns false\nfunction intersectRects(rect1, rect2) {\n let res = {\n left: Math.max(rect1.left, rect2.left),\n right: Math.min(rect1.right, rect2.right),\n top: Math.max(rect1.top, rect2.top),\n bottom: Math.min(rect1.bottom, rect2.bottom),\n };\n if (res.left < res.right && res.top < res.bottom) {\n return res;\n }\n return false;\n}\nfunction translateRect(rect, deltaX, deltaY) {\n return {\n left: rect.left + deltaX,\n right: rect.right + deltaX,\n top: rect.top + deltaY,\n bottom: rect.bottom + deltaY,\n };\n}\n// Returns a new point that will have been moved to reside within the given rectangle\nfunction constrainPoint(point, rect) {\n return {\n left: Math.min(Math.max(point.left, rect.left), rect.right),\n top: Math.min(Math.max(point.top, rect.top), rect.bottom),\n };\n}\n// Returns a point that is the center of the given rectangle\nfunction getRectCenter(rect) {\n return {\n left: (rect.left + rect.right) / 2,\n top: (rect.top + rect.bottom) / 2,\n };\n}\n// Subtracts point2's coordinates from point1's coordinates, returning a delta\nfunction diffPoints(point1, point2) {\n return {\n left: point1.left - point2.left,\n top: point1.top - point2.top,\n };\n}\n\nconst EMPTY_EVENT_STORE = createEmptyEventStore(); // for purecomponents. TODO: keep elsewhere\nclass Splitter {\n constructor() {\n this.getKeysForEventDefs = memoize(this._getKeysForEventDefs);\n this.splitDateSelection = memoize(this._splitDateSpan);\n this.splitEventStore = memoize(this._splitEventStore);\n this.splitIndividualUi = memoize(this._splitIndividualUi);\n this.splitEventDrag = memoize(this._splitInteraction);\n this.splitEventResize = memoize(this._splitInteraction);\n this.eventUiBuilders = {}; // TODO: typescript protection\n }\n splitProps(props) {\n let keyInfos = this.getKeyInfo(props);\n let defKeys = this.getKeysForEventDefs(props.eventStore);\n let dateSelections = this.splitDateSelection(props.dateSelection);\n let individualUi = this.splitIndividualUi(props.eventUiBases, defKeys); // the individual *bases*\n let eventStores = this.splitEventStore(props.eventStore, defKeys);\n let eventDrags = this.splitEventDrag(props.eventDrag);\n let eventResizes = this.splitEventResize(props.eventResize);\n let splitProps = {};\n this.eventUiBuilders = mapHash(keyInfos, (info, key) => this.eventUiBuilders[key] || memoize(buildEventUiForKey));\n for (let key in keyInfos) {\n let keyInfo = keyInfos[key];\n let eventStore = eventStores[key] || EMPTY_EVENT_STORE;\n let buildEventUi = this.eventUiBuilders[key];\n splitProps[key] = {\n businessHours: keyInfo.businessHours || props.businessHours,\n dateSelection: dateSelections[key] || null,\n eventStore,\n eventUiBases: buildEventUi(props.eventUiBases[''], keyInfo.ui, individualUi[key]),\n eventSelection: eventStore.instances[props.eventSelection] ? props.eventSelection : '',\n eventDrag: eventDrags[key] || null,\n eventResize: eventResizes[key] || null,\n };\n }\n return splitProps;\n }\n _splitDateSpan(dateSpan) {\n let dateSpans = {};\n if (dateSpan) {\n let keys = this.getKeysForDateSpan(dateSpan);\n for (let key of keys) {\n dateSpans[key] = dateSpan;\n }\n }\n return dateSpans;\n }\n _getKeysForEventDefs(eventStore) {\n return mapHash(eventStore.defs, (eventDef) => this.getKeysForEventDef(eventDef));\n }\n _splitEventStore(eventStore, defKeys) {\n let { defs, instances } = eventStore;\n let splitStores = {};\n for (let defId in defs) {\n for (let key of defKeys[defId]) {\n if (!splitStores[key]) {\n splitStores[key] = createEmptyEventStore();\n }\n splitStores[key].defs[defId] = defs[defId];\n }\n }\n for (let instanceId in instances) {\n let instance = instances[instanceId];\n for (let key of defKeys[instance.defId]) {\n if (splitStores[key]) { // must have already been created\n splitStores[key].instances[instanceId] = instance;\n }\n }\n }\n return splitStores;\n }\n _splitIndividualUi(eventUiBases, defKeys) {\n let splitHashes = {};\n for (let defId in eventUiBases) {\n if (defId) { // not the '' key\n for (let key of defKeys[defId]) {\n if (!splitHashes[key]) {\n splitHashes[key] = {};\n }\n splitHashes[key][defId] = eventUiBases[defId];\n }\n }\n }\n return splitHashes;\n }\n _splitInteraction(interaction) {\n let splitStates = {};\n if (interaction) {\n let affectedStores = this._splitEventStore(interaction.affectedEvents, this._getKeysForEventDefs(interaction.affectedEvents));\n // can't rely on defKeys because event data is mutated\n let mutatedKeysByDefId = this._getKeysForEventDefs(interaction.mutatedEvents);\n let mutatedStores = this._splitEventStore(interaction.mutatedEvents, mutatedKeysByDefId);\n let populate = (key) => {\n if (!splitStates[key]) {\n splitStates[key] = {\n affectedEvents: affectedStores[key] || EMPTY_EVENT_STORE,\n mutatedEvents: mutatedStores[key] || EMPTY_EVENT_STORE,\n isEvent: interaction.isEvent,\n };\n }\n };\n for (let key in affectedStores) {\n populate(key);\n }\n for (let key in mutatedStores) {\n populate(key);\n }\n }\n return splitStates;\n }\n}\nfunction buildEventUiForKey(allUi, eventUiForKey, individualUi) {\n let baseParts = [];\n if (allUi) {\n baseParts.push(allUi);\n }\n if (eventUiForKey) {\n baseParts.push(eventUiForKey);\n }\n let stuff = {\n '': combineEventUis(baseParts),\n };\n if (individualUi) {\n Object.assign(stuff, individualUi);\n }\n return stuff;\n}\n\nfunction getDateMeta(date, todayRange, nowDate, dateProfile) {\n return {\n dow: date.getUTCDay(),\n isDisabled: Boolean(dateProfile && !rangeContainsMarker(dateProfile.activeRange, date)),\n isOther: Boolean(dateProfile && !rangeContainsMarker(dateProfile.currentRange, date)),\n isToday: Boolean(todayRange && rangeContainsMarker(todayRange, date)),\n isPast: Boolean(nowDate ? (date < nowDate) : todayRange ? (date < todayRange.start) : false),\n isFuture: Boolean(nowDate ? (date > nowDate) : todayRange ? (date >= todayRange.end) : false),\n };\n}\nfunction getDayClassNames(meta, theme) {\n let classNames = [\n 'fc-day',\n `fc-day-${DAY_IDS[meta.dow]}`,\n ];\n if (meta.isDisabled) {\n classNames.push('fc-day-disabled');\n }\n else {\n if (meta.isToday) {\n classNames.push('fc-day-today');\n classNames.push(theme.getClass('today'));\n }\n if (meta.isPast) {\n classNames.push('fc-day-past');\n }\n if (meta.isFuture) {\n classNames.push('fc-day-future');\n }\n if (meta.isOther) {\n classNames.push('fc-day-other');\n }\n }\n return classNames;\n}\nfunction getSlotClassNames(meta, theme) {\n let classNames = [\n 'fc-slot',\n `fc-slot-${DAY_IDS[meta.dow]}`,\n ];\n if (meta.isDisabled) {\n classNames.push('fc-slot-disabled');\n }\n else {\n if (meta.isToday) {\n classNames.push('fc-slot-today');\n classNames.push(theme.getClass('today'));\n }\n if (meta.isPast) {\n classNames.push('fc-slot-past');\n }\n if (meta.isFuture) {\n classNames.push('fc-slot-future');\n }\n }\n return classNames;\n}\n\nconst DAY_FORMAT = createFormatter({ year: 'numeric', month: 'long', day: 'numeric' });\nconst WEEK_FORMAT = createFormatter({ week: 'long' });\nfunction buildNavLinkAttrs(context, dateMarker, viewType = 'day', isTabbable = true) {\n const { dateEnv, options, calendarApi } = context;\n let dateStr = dateEnv.format(dateMarker, viewType === 'week' ? WEEK_FORMAT : DAY_FORMAT);\n if (options.navLinks) {\n let zonedDate = dateEnv.toDate(dateMarker);\n const handleInteraction = (ev) => {\n let customAction = viewType === 'day' ? options.navLinkDayClick :\n viewType === 'week' ? options.navLinkWeekClick : null;\n if (typeof customAction === 'function') {\n customAction.call(calendarApi, dateEnv.toDate(dateMarker), ev);\n }\n else {\n if (typeof customAction === 'string') {\n viewType = customAction;\n }\n calendarApi.zoomTo(dateMarker, viewType);\n }\n };\n return Object.assign({ title: formatWithOrdinals(options.navLinkHint, [dateStr, zonedDate], dateStr), 'data-navlink': '' }, (isTabbable\n ? createAriaClickAttrs(handleInteraction)\n : { onClick: handleInteraction }));\n }\n return { 'aria-label': dateStr };\n}\n\nlet _isRtlScrollbarOnLeft = null;\nfunction getIsRtlScrollbarOnLeft() {\n if (_isRtlScrollbarOnLeft === null) {\n _isRtlScrollbarOnLeft = computeIsRtlScrollbarOnLeft();\n }\n return _isRtlScrollbarOnLeft;\n}\nfunction computeIsRtlScrollbarOnLeft() {\n let outerEl = document.createElement('div');\n applyStyle(outerEl, {\n position: 'absolute',\n top: -1000,\n left: 0,\n border: 0,\n padding: 0,\n overflow: 'scroll',\n direction: 'rtl',\n });\n outerEl.innerHTML = '
';\n document.body.appendChild(outerEl);\n let innerEl = outerEl.firstChild;\n let res = innerEl.getBoundingClientRect().left > outerEl.getBoundingClientRect().left;\n removeElement(outerEl);\n return res;\n}\n\nlet _scrollbarWidths;\nfunction getScrollbarWidths() {\n if (!_scrollbarWidths) {\n _scrollbarWidths = computeScrollbarWidths();\n }\n return _scrollbarWidths;\n}\nfunction computeScrollbarWidths() {\n let el = document.createElement('div');\n el.style.overflow = 'scroll';\n el.style.position = 'absolute';\n el.style.top = '-9999px';\n el.style.left = '-9999px';\n document.body.appendChild(el);\n let res = computeScrollbarWidthsForEl(el);\n document.body.removeChild(el);\n return res;\n}\n// WARNING: will include border\nfunction computeScrollbarWidthsForEl(el) {\n return {\n x: el.offsetHeight - el.clientHeight,\n y: el.offsetWidth - el.clientWidth,\n };\n}\n\nfunction computeEdges(el, getPadding = false) {\n let computedStyle = window.getComputedStyle(el);\n let borderLeft = parseInt(computedStyle.borderLeftWidth, 10) || 0;\n let borderRight = parseInt(computedStyle.borderRightWidth, 10) || 0;\n let borderTop = parseInt(computedStyle.borderTopWidth, 10) || 0;\n let borderBottom = parseInt(computedStyle.borderBottomWidth, 10) || 0;\n let badScrollbarWidths = computeScrollbarWidthsForEl(el); // includes border!\n let scrollbarLeftRight = badScrollbarWidths.y - borderLeft - borderRight;\n let scrollbarBottom = badScrollbarWidths.x - borderTop - borderBottom;\n let res = {\n borderLeft,\n borderRight,\n borderTop,\n borderBottom,\n scrollbarBottom,\n scrollbarLeft: 0,\n scrollbarRight: 0,\n };\n if (getIsRtlScrollbarOnLeft() && computedStyle.direction === 'rtl') { // is the scrollbar on the left side?\n res.scrollbarLeft = scrollbarLeftRight;\n }\n else {\n res.scrollbarRight = scrollbarLeftRight;\n }\n if (getPadding) {\n res.paddingLeft = parseInt(computedStyle.paddingLeft, 10) || 0;\n res.paddingRight = parseInt(computedStyle.paddingRight, 10) || 0;\n res.paddingTop = parseInt(computedStyle.paddingTop, 10) || 0;\n res.paddingBottom = parseInt(computedStyle.paddingBottom, 10) || 0;\n }\n return res;\n}\nfunction computeInnerRect(el, goWithinPadding = false, doFromWindowViewport) {\n let outerRect = doFromWindowViewport ? el.getBoundingClientRect() : computeRect(el);\n let edges = computeEdges(el, goWithinPadding);\n let res = {\n left: outerRect.left + edges.borderLeft + edges.scrollbarLeft,\n right: outerRect.right - edges.borderRight - edges.scrollbarRight,\n top: outerRect.top + edges.borderTop,\n bottom: outerRect.bottom - edges.borderBottom - edges.scrollbarBottom,\n };\n if (goWithinPadding) {\n res.left += edges.paddingLeft;\n res.right -= edges.paddingRight;\n res.top += edges.paddingTop;\n res.bottom -= edges.paddingBottom;\n }\n return res;\n}\nfunction computeRect(el) {\n let rect = el.getBoundingClientRect();\n return {\n left: rect.left + window.pageXOffset,\n top: rect.top + window.pageYOffset,\n right: rect.right + window.pageXOffset,\n bottom: rect.bottom + window.pageYOffset,\n };\n}\nfunction computeClippedClientRect(el) {\n let clippingParents = getClippingParents(el);\n let rect = el.getBoundingClientRect();\n for (let clippingParent of clippingParents) {\n let intersection = intersectRects(rect, clippingParent.getBoundingClientRect());\n if (intersection) {\n rect = intersection;\n }\n else {\n return null;\n }\n }\n return rect;\n}\n// does not return window\nfunction getClippingParents(el) {\n let parents = [];\n while (el instanceof HTMLElement) { // will stop when gets to document or null\n let computedStyle = window.getComputedStyle(el);\n if (computedStyle.position === 'fixed') {\n break;\n }\n if ((/(auto|scroll)/).test(computedStyle.overflow + computedStyle.overflowY + computedStyle.overflowX)) {\n parents.push(el);\n }\n el = el.parentNode;\n }\n return parents;\n}\n\n/*\nRecords offset information for a set of elements, relative to an origin element.\nCan record the left/right OR the top/bottom OR both.\nProvides methods for querying the cache by position.\n*/\nclass PositionCache {\n constructor(originEl, els, isHorizontal, isVertical) {\n this.els = els;\n let originClientRect = this.originClientRect = originEl.getBoundingClientRect(); // relative to viewport top-left\n if (isHorizontal) {\n this.buildElHorizontals(originClientRect.left);\n }\n if (isVertical) {\n this.buildElVerticals(originClientRect.top);\n }\n }\n // Populates the left/right internal coordinate arrays\n buildElHorizontals(originClientLeft) {\n let lefts = [];\n let rights = [];\n for (let el of this.els) {\n let rect = el.getBoundingClientRect();\n lefts.push(rect.left - originClientLeft);\n rights.push(rect.right - originClientLeft);\n }\n this.lefts = lefts;\n this.rights = rights;\n }\n // Populates the top/bottom internal coordinate arrays\n buildElVerticals(originClientTop) {\n let tops = [];\n let bottoms = [];\n for (let el of this.els) {\n let rect = el.getBoundingClientRect();\n tops.push(rect.top - originClientTop);\n bottoms.push(rect.bottom - originClientTop);\n }\n this.tops = tops;\n this.bottoms = bottoms;\n }\n // Given a left offset (from document left), returns the index of the el that it horizontally intersects.\n // If no intersection is made, returns undefined.\n leftToIndex(leftPosition) {\n let { lefts, rights } = this;\n let len = lefts.length;\n let i;\n for (i = 0; i < len; i += 1) {\n if (leftPosition >= lefts[i] && leftPosition < rights[i]) {\n return i;\n }\n }\n return undefined; // TODO: better\n }\n // Given a top offset (from document top), returns the index of the el that it vertically intersects.\n // If no intersection is made, returns undefined.\n topToIndex(topPosition) {\n let { tops, bottoms } = this;\n let len = tops.length;\n let i;\n for (i = 0; i < len; i += 1) {\n if (topPosition >= tops[i] && topPosition < bottoms[i]) {\n return i;\n }\n }\n return undefined; // TODO: better\n }\n // Gets the width of the element at the given index\n getWidth(leftIndex) {\n return this.rights[leftIndex] - this.lefts[leftIndex];\n }\n // Gets the height of the element at the given index\n getHeight(topIndex) {\n return this.bottoms[topIndex] - this.tops[topIndex];\n }\n}\n\n/* eslint max-classes-per-file: \"off\" */\n/*\nAn object for getting/setting scroll-related information for an element.\nInternally, this is done very differently for window versus DOM element,\nso this object serves as a common interface.\n*/\nclass ScrollController {\n getMaxScrollTop() {\n return this.getScrollHeight() - this.getClientHeight();\n }\n getMaxScrollLeft() {\n return this.getScrollWidth() - this.getClientWidth();\n }\n canScrollVertically() {\n return this.getMaxScrollTop() > 0;\n }\n canScrollHorizontally() {\n return this.getMaxScrollLeft() > 0;\n }\n canScrollUp() {\n return this.getScrollTop() > 0;\n }\n canScrollDown() {\n return this.getScrollTop() < this.getMaxScrollTop();\n }\n canScrollLeft() {\n return this.getScrollLeft() > 0;\n }\n canScrollRight() {\n return this.getScrollLeft() < this.getMaxScrollLeft();\n }\n}\nclass ElementScrollController extends ScrollController {\n constructor(el) {\n super();\n this.el = el;\n }\n getScrollTop() {\n return this.el.scrollTop;\n }\n getScrollLeft() {\n return this.el.scrollLeft;\n }\n setScrollTop(top) {\n this.el.scrollTop = top;\n }\n setScrollLeft(left) {\n this.el.scrollLeft = left;\n }\n getScrollWidth() {\n return this.el.scrollWidth;\n }\n getScrollHeight() {\n return this.el.scrollHeight;\n }\n getClientHeight() {\n return this.el.clientHeight;\n }\n getClientWidth() {\n return this.el.clientWidth;\n }\n}\nclass WindowScrollController extends ScrollController {\n getScrollTop() {\n return window.pageYOffset;\n }\n getScrollLeft() {\n return window.pageXOffset;\n }\n setScrollTop(n) {\n window.scroll(window.pageXOffset, n);\n }\n setScrollLeft(n) {\n window.scroll(n, window.pageYOffset);\n }\n getScrollWidth() {\n return document.documentElement.scrollWidth;\n }\n getScrollHeight() {\n return document.documentElement.scrollHeight;\n }\n getClientHeight() {\n return document.documentElement.clientHeight;\n }\n getClientWidth() {\n return document.documentElement.clientWidth;\n }\n}\n\n/*\nan INTERACTABLE date component\n\nPURPOSES:\n- hook up to fg, fill, and mirror renderers\n- interface for dragging and hits\n*/\nclass DateComponent extends BaseComponent {\n constructor() {\n super(...arguments);\n this.uid = guid();\n }\n // Hit System\n // -----------------------------------------------------------------------------------------------------------------\n prepareHits() {\n }\n queryHit(positionLeft, positionTop, elWidth, elHeight) {\n return null; // this should be abstract\n }\n // Pointer Interaction Utils\n // -----------------------------------------------------------------------------------------------------------------\n isValidSegDownEl(el) {\n return !this.props.eventDrag && // HACK\n !this.props.eventResize && // HACK\n !elementClosest(el, '.fc-event-mirror');\n }\n isValidDateDownEl(el) {\n return !elementClosest(el, '.fc-event:not(.fc-bg-event)') &&\n !elementClosest(el, '.fc-more-link') && // a \"more..\" link\n !elementClosest(el, 'a[data-navlink]') && // a clickable nav link\n !elementClosest(el, '.fc-popover'); // hack\n }\n}\n\nclass NamedTimeZoneImpl {\n constructor(timeZoneName) {\n this.timeZoneName = timeZoneName;\n }\n}\n\nclass SegHierarchy {\n constructor() {\n // settings\n this.strictOrder = false;\n this.allowReslicing = false;\n this.maxCoord = -1; // -1 means no max\n this.maxStackCnt = -1; // -1 means no max\n this.levelCoords = []; // ordered\n this.entriesByLevel = []; // parallel with levelCoords\n this.stackCnts = {}; // TODO: use better technique!?\n }\n addSegs(inputs) {\n let hiddenEntries = [];\n for (let input of inputs) {\n this.insertEntry(input, hiddenEntries);\n }\n return hiddenEntries;\n }\n insertEntry(entry, hiddenEntries) {\n let insertion = this.findInsertion(entry);\n if (this.isInsertionValid(insertion, entry)) {\n this.insertEntryAt(entry, insertion);\n return 1;\n }\n return this.handleInvalidInsertion(insertion, entry, hiddenEntries);\n }\n isInsertionValid(insertion, entry) {\n return (this.maxCoord === -1 || insertion.levelCoord + entry.thickness <= this.maxCoord) &&\n (this.maxStackCnt === -1 || insertion.stackCnt < this.maxStackCnt);\n }\n // returns number of new entries inserted\n handleInvalidInsertion(insertion, entry, hiddenEntries) {\n if (this.allowReslicing && insertion.touchingEntry) {\n return this.splitEntry(entry, insertion.touchingEntry, hiddenEntries);\n }\n hiddenEntries.push(entry);\n return 0;\n }\n splitEntry(entry, barrier, hiddenEntries) {\n let partCnt = 0;\n let splitHiddenEntries = [];\n let entrySpan = entry.span;\n let barrierSpan = barrier.span;\n if (entrySpan.start < barrierSpan.start) {\n partCnt += this.insertEntry({\n index: entry.index,\n thickness: entry.thickness,\n span: { start: entrySpan.start, end: barrierSpan.start },\n }, splitHiddenEntries);\n }\n if (entrySpan.end > barrierSpan.end) {\n partCnt += this.insertEntry({\n index: entry.index,\n thickness: entry.thickness,\n span: { start: barrierSpan.end, end: entrySpan.end },\n }, splitHiddenEntries);\n }\n if (partCnt) {\n hiddenEntries.push({\n index: entry.index,\n thickness: entry.thickness,\n span: intersectSpans(barrierSpan, entrySpan), // guaranteed to intersect\n }, ...splitHiddenEntries);\n return partCnt;\n }\n hiddenEntries.push(entry);\n return 0;\n }\n insertEntryAt(entry, insertion) {\n let { entriesByLevel, levelCoords } = this;\n if (insertion.lateral === -1) {\n // create a new level\n insertAt(levelCoords, insertion.level, insertion.levelCoord);\n insertAt(entriesByLevel, insertion.level, [entry]);\n }\n else {\n // insert into existing level\n insertAt(entriesByLevel[insertion.level], insertion.lateral, entry);\n }\n this.stackCnts[buildEntryKey(entry)] = insertion.stackCnt;\n }\n findInsertion(newEntry) {\n let { levelCoords, entriesByLevel, strictOrder, stackCnts } = this;\n let levelCnt = levelCoords.length;\n let candidateCoord = 0;\n let touchingLevel = -1;\n let touchingLateral = -1;\n let touchingEntry = null;\n let stackCnt = 0;\n for (let trackingLevel = 0; trackingLevel < levelCnt; trackingLevel += 1) {\n let trackingCoord = levelCoords[trackingLevel];\n // if the current level is past the placed entry, we have found a good empty space and can stop.\n // if strictOrder, keep finding more lateral intersections.\n if (!strictOrder && trackingCoord >= candidateCoord + newEntry.thickness) {\n break;\n }\n let trackingEntries = entriesByLevel[trackingLevel];\n let trackingEntry;\n let searchRes = binarySearch(trackingEntries, newEntry.span.start, getEntrySpanEnd); // find first entry after newEntry's end\n let lateralIndex = searchRes[0] + searchRes[1]; // if exact match (which doesn't collide), go to next one\n while ( // loop through entries that horizontally intersect\n (trackingEntry = trackingEntries[lateralIndex]) && // but not past the whole entry list\n trackingEntry.span.start < newEntry.span.end // and not entirely past newEntry\n ) {\n let trackingEntryBottom = trackingCoord + trackingEntry.thickness;\n // intersects into the top of the candidate?\n if (trackingEntryBottom > candidateCoord) {\n candidateCoord = trackingEntryBottom;\n touchingEntry = trackingEntry;\n touchingLevel = trackingLevel;\n touchingLateral = lateralIndex;\n }\n // butts up against top of candidate? (will happen if just intersected as well)\n if (trackingEntryBottom === candidateCoord) {\n // accumulate the highest possible stackCnt of the trackingEntries that butt up\n stackCnt = Math.max(stackCnt, stackCnts[buildEntryKey(trackingEntry)] + 1);\n }\n lateralIndex += 1;\n }\n }\n // the destination level will be after touchingEntry's level. find it\n let destLevel = 0;\n if (touchingEntry) {\n destLevel = touchingLevel + 1;\n while (destLevel < levelCnt && levelCoords[destLevel] < candidateCoord) {\n destLevel += 1;\n }\n }\n // if adding to an existing level, find where to insert\n let destLateral = -1;\n if (destLevel < levelCnt && levelCoords[destLevel] === candidateCoord) {\n destLateral = binarySearch(entriesByLevel[destLevel], newEntry.span.end, getEntrySpanEnd)[0];\n }\n return {\n touchingLevel,\n touchingLateral,\n touchingEntry,\n stackCnt,\n levelCoord: candidateCoord,\n level: destLevel,\n lateral: destLateral,\n };\n }\n // sorted by levelCoord (lowest to highest)\n toRects() {\n let { entriesByLevel, levelCoords } = this;\n let levelCnt = entriesByLevel.length;\n let rects = [];\n for (let level = 0; level < levelCnt; level += 1) {\n let entries = entriesByLevel[level];\n let levelCoord = levelCoords[level];\n for (let entry of entries) {\n rects.push(Object.assign(Object.assign({}, entry), { levelCoord }));\n }\n }\n return rects;\n }\n}\nfunction getEntrySpanEnd(entry) {\n return entry.span.end;\n}\nfunction buildEntryKey(entry) {\n return entry.index + ':' + entry.span.start;\n}\n// returns groups with entries sorted by input order\nfunction groupIntersectingEntries(entries) {\n let merges = [];\n for (let entry of entries) {\n let filteredMerges = [];\n let hungryMerge = {\n span: entry.span,\n entries: [entry],\n };\n for (let merge of merges) {\n if (intersectSpans(merge.span, hungryMerge.span)) {\n hungryMerge = {\n entries: merge.entries.concat(hungryMerge.entries),\n span: joinSpans(merge.span, hungryMerge.span),\n };\n }\n else {\n filteredMerges.push(merge);\n }\n }\n filteredMerges.push(hungryMerge);\n merges = filteredMerges;\n }\n return merges;\n}\nfunction joinSpans(span0, span1) {\n return {\n start: Math.min(span0.start, span1.start),\n end: Math.max(span0.end, span1.end),\n };\n}\nfunction intersectSpans(span0, span1) {\n let start = Math.max(span0.start, span1.start);\n let end = Math.min(span0.end, span1.end);\n if (start < end) {\n return { start, end };\n }\n return null;\n}\n// general util\n// ---------------------------------------------------------------------------------------------------------------------\nfunction insertAt(arr, index, item) {\n arr.splice(index, 0, item);\n}\nfunction binarySearch(a, searchVal, getItemVal) {\n let startIndex = 0;\n let endIndex = a.length; // exclusive\n if (!endIndex || searchVal < getItemVal(a[startIndex])) { // no items OR before first item\n return [0, 0];\n }\n if (searchVal > getItemVal(a[endIndex - 1])) { // after last item\n return [endIndex, 0];\n }\n while (startIndex < endIndex) {\n let middleIndex = Math.floor(startIndex + (endIndex - startIndex) / 2);\n let middleVal = getItemVal(a[middleIndex]);\n if (searchVal < middleVal) {\n endIndex = middleIndex;\n }\n else if (searchVal > middleVal) {\n startIndex = middleIndex + 1;\n }\n else { // equal!\n return [middleIndex, 1];\n }\n }\n return [startIndex, 0];\n}\n\n/*\nAn abstraction for a dragging interaction originating on an event.\nDoes higher-level things than PointerDragger, such as possibly:\n- a \"mirror\" that moves with the pointer\n- a minimum number of pixels or other criteria for a true drag to begin\n\nsubclasses must emit:\n- pointerdown\n- dragstart\n- dragmove\n- pointerup\n- dragend\n*/\nclass ElementDragging {\n constructor(el, selector) {\n this.emitter = new Emitter();\n }\n destroy() {\n }\n setMirrorIsVisible(bool) {\n // optional if subclass doesn't want to support a mirror\n }\n setMirrorNeedsRevert(bool) {\n // optional if subclass doesn't want to support a mirror\n }\n setAutoScrollEnabled(bool) {\n // optional\n }\n}\n\n// TODO: get rid of this in favor of options system,\n// tho it's really easy to access this globally rather than pass thru options.\nconst config = {};\n\n/*\nInformation about what will happen when an external element is dragged-and-dropped\nonto a calendar. Contains information for creating an event.\n*/\nconst DRAG_META_REFINERS = {\n startTime: createDuration,\n duration: createDuration,\n create: Boolean,\n sourceId: String,\n};\nfunction parseDragMeta(raw) {\n let { refined, extra } = refineProps(raw, DRAG_META_REFINERS);\n return {\n startTime: refined.startTime || null,\n duration: refined.duration || null,\n create: refined.create != null ? refined.create : true,\n sourceId: refined.sourceId,\n leftoverProps: extra,\n };\n}\n\n// Computes a default column header formatting string if `colFormat` is not explicitly defined\nfunction computeFallbackHeaderFormat(datesRepDistinctDays, dayCnt) {\n // if more than one week row, or if there are a lot of columns with not much space,\n // put just the day numbers will be in each cell\n if (!datesRepDistinctDays || dayCnt > 10) {\n return createFormatter({ weekday: 'short' }); // \"Sat\"\n }\n if (dayCnt > 1) {\n return createFormatter({ weekday: 'short', month: 'numeric', day: 'numeric', omitCommas: true }); // \"Sat 11/12\"\n }\n return createFormatter({ weekday: 'long' }); // \"Saturday\"\n}\n\nconst CLASS_NAME = 'fc-col-header-cell'; // do the cushion too? no\nfunction renderInner$1(renderProps) {\n return renderProps.text;\n}\n\n// BAD name for this class now. used in the Header\nclass TableDateCell extends BaseComponent {\n render() {\n let { dateEnv, options, theme, viewApi } = this.context;\n let { props } = this;\n let { date, dateProfile } = props;\n let dayMeta = getDateMeta(date, props.todayRange, null, dateProfile);\n let classNames = [CLASS_NAME].concat(getDayClassNames(dayMeta, theme));\n let text = dateEnv.format(date, props.dayHeaderFormat);\n // if colCnt is 1, we are already in a day-view and don't need a navlink\n let navLinkAttrs = (!dayMeta.isDisabled && props.colCnt > 1)\n ? buildNavLinkAttrs(this.context, date)\n : {};\n let renderProps = Object.assign(Object.assign(Object.assign({ date: dateEnv.toDate(date), view: viewApi }, props.extraRenderProps), { text }), dayMeta);\n return (createElement(ContentContainer, { elTag: \"th\", elClasses: classNames, elAttrs: Object.assign({ role: 'columnheader', colSpan: props.colSpan, 'data-date': !dayMeta.isDisabled ? formatDayString(date) : undefined }, props.extraDataAttrs), renderProps: renderProps, generatorName: \"dayHeaderContent\", generator: options.dayHeaderContent || renderInner$1, classNameGenerator: options.dayHeaderClassNames, didMount: options.dayHeaderDidMount, willUnmount: options.dayHeaderWillUnmount }, (InnerContainer) => (createElement(\"div\", { className: \"fc-scrollgrid-sync-inner\" }, !dayMeta.isDisabled && (createElement(InnerContainer, { elTag: \"a\", elAttrs: navLinkAttrs, elClasses: [\n 'fc-col-header-cell-cushion',\n props.isSticky && 'fc-sticky',\n ] }))))));\n }\n}\n\nconst WEEKDAY_FORMAT = createFormatter({ weekday: 'long' });\nclass TableDowCell extends BaseComponent {\n render() {\n let { props } = this;\n let { dateEnv, theme, viewApi, options } = this.context;\n let date = addDays(new Date(259200000), props.dow); // start with Sun, 04 Jan 1970 00:00:00 GMT\n let dateMeta = {\n dow: props.dow,\n isDisabled: false,\n isFuture: false,\n isPast: false,\n isToday: false,\n isOther: false,\n };\n let text = dateEnv.format(date, props.dayHeaderFormat);\n let renderProps = Object.assign(Object.assign(Object.assign(Object.assign({ // TODO: make this public?\n date }, dateMeta), { view: viewApi }), props.extraRenderProps), { text });\n return (createElement(ContentContainer, { elTag: \"th\", elClasses: [\n CLASS_NAME,\n ...getDayClassNames(dateMeta, theme),\n ...(props.extraClassNames || []),\n ], elAttrs: Object.assign({ role: 'columnheader', colSpan: props.colSpan }, props.extraDataAttrs), renderProps: renderProps, generatorName: \"dayHeaderContent\", generator: options.dayHeaderContent || renderInner$1, classNameGenerator: options.dayHeaderClassNames, didMount: options.dayHeaderDidMount, willUnmount: options.dayHeaderWillUnmount }, (InnerContent) => (createElement(\"div\", { className: \"fc-scrollgrid-sync-inner\" },\n createElement(InnerContent, { elTag: \"a\", elClasses: [\n 'fc-col-header-cell-cushion',\n props.isSticky && 'fc-sticky',\n ], elAttrs: {\n 'aria-label': dateEnv.format(date, WEEKDAY_FORMAT),\n } })))));\n }\n}\n\nclass NowTimer extends Component {\n constructor(props, context) {\n super(props, context);\n this.initialNowDate = getNow(context.options.now, context.dateEnv);\n this.initialNowQueriedMs = new Date().valueOf();\n this.state = this.computeTiming().currentState;\n }\n render() {\n let { props, state } = this;\n return props.children(state.nowDate, state.todayRange);\n }\n componentDidMount() {\n this.setTimeout();\n }\n componentDidUpdate(prevProps) {\n if (prevProps.unit !== this.props.unit) {\n this.clearTimeout();\n this.setTimeout();\n }\n }\n componentWillUnmount() {\n this.clearTimeout();\n }\n computeTiming() {\n let { props, context } = this;\n let unroundedNow = addMs(this.initialNowDate, new Date().valueOf() - this.initialNowQueriedMs);\n let currentUnitStart = context.dateEnv.startOf(unroundedNow, props.unit);\n let nextUnitStart = context.dateEnv.add(currentUnitStart, createDuration(1, props.unit));\n let waitMs = nextUnitStart.valueOf() - unroundedNow.valueOf();\n // there is a max setTimeout ms value (https://stackoverflow.com/a/3468650/96342)\n // ensure no longer than a day\n waitMs = Math.min(1000 * 60 * 60 * 24, waitMs);\n return {\n currentState: { nowDate: currentUnitStart, todayRange: buildDayRange(currentUnitStart) },\n nextState: { nowDate: nextUnitStart, todayRange: buildDayRange(nextUnitStart) },\n waitMs,\n };\n }\n setTimeout() {\n let { nextState, waitMs } = this.computeTiming();\n this.timeoutId = setTimeout(() => {\n this.setState(nextState, () => {\n this.setTimeout();\n });\n }, waitMs);\n }\n clearTimeout() {\n if (this.timeoutId) {\n clearTimeout(this.timeoutId);\n }\n }\n}\nNowTimer.contextType = ViewContextType;\nfunction buildDayRange(date) {\n let start = startOfDay(date);\n let end = addDays(start, 1);\n return { start, end };\n}\n\nclass DayHeader extends BaseComponent {\n constructor() {\n super(...arguments);\n this.createDayHeaderFormatter = memoize(createDayHeaderFormatter);\n }\n render() {\n let { context } = this;\n let { dates, dateProfile, datesRepDistinctDays, renderIntro } = this.props;\n let dayHeaderFormat = this.createDayHeaderFormatter(context.options.dayHeaderFormat, datesRepDistinctDays, dates.length);\n return (createElement(NowTimer, { unit: \"day\" }, (nowDate, todayRange) => (createElement(\"tr\", { role: \"row\" },\n renderIntro && renderIntro('day'),\n dates.map((date) => (datesRepDistinctDays ? (createElement(TableDateCell, { key: date.toISOString(), date: date, dateProfile: dateProfile, todayRange: todayRange, colCnt: dates.length, dayHeaderFormat: dayHeaderFormat })) : (createElement(TableDowCell, { key: date.getUTCDay(), dow: date.getUTCDay(), dayHeaderFormat: dayHeaderFormat }))))))));\n }\n}\nfunction createDayHeaderFormatter(explicitFormat, datesRepDistinctDays, dateCnt) {\n return explicitFormat || computeFallbackHeaderFormat(datesRepDistinctDays, dateCnt);\n}\n\nclass DaySeriesModel {\n constructor(range, dateProfileGenerator) {\n let date = range.start;\n let { end } = range;\n let indices = [];\n let dates = [];\n let dayIndex = -1;\n while (date < end) { // loop each day from start to end\n if (dateProfileGenerator.isHiddenDay(date)) {\n indices.push(dayIndex + 0.5); // mark that it's between indices\n }\n else {\n dayIndex += 1;\n indices.push(dayIndex);\n dates.push(date);\n }\n date = addDays(date, 1);\n }\n this.dates = dates;\n this.indices = indices;\n this.cnt = dates.length;\n }\n sliceRange(range) {\n let firstIndex = this.getDateDayIndex(range.start); // inclusive first index\n let lastIndex = this.getDateDayIndex(addDays(range.end, -1)); // inclusive last index\n let clippedFirstIndex = Math.max(0, firstIndex);\n let clippedLastIndex = Math.min(this.cnt - 1, lastIndex);\n // deal with in-between indices\n clippedFirstIndex = Math.ceil(clippedFirstIndex); // in-between starts round to next cell\n clippedLastIndex = Math.floor(clippedLastIndex); // in-between ends round to prev cell\n if (clippedFirstIndex <= clippedLastIndex) {\n return {\n firstIndex: clippedFirstIndex,\n lastIndex: clippedLastIndex,\n isStart: firstIndex === clippedFirstIndex,\n isEnd: lastIndex === clippedLastIndex,\n };\n }\n return null;\n }\n // Given a date, returns its chronolocial cell-index from the first cell of the grid.\n // If the date lies between cells (because of hiddenDays), returns a floating-point value between offsets.\n // If before the first offset, returns a negative number.\n // If after the last offset, returns an offset past the last cell offset.\n // Only works for *start* dates of cells. Will not work for exclusive end dates for cells.\n getDateDayIndex(date) {\n let { indices } = this;\n let dayOffset = Math.floor(diffDays(this.dates[0], date));\n if (dayOffset < 0) {\n return indices[0] - 1;\n }\n if (dayOffset >= indices.length) {\n return indices[indices.length - 1] + 1;\n }\n return indices[dayOffset];\n }\n}\n\nclass DayTableModel {\n constructor(daySeries, breakOnWeeks) {\n let { dates } = daySeries;\n let daysPerRow;\n let firstDay;\n let rowCnt;\n if (breakOnWeeks) {\n // count columns until the day-of-week repeats\n firstDay = dates[0].getUTCDay();\n for (daysPerRow = 1; daysPerRow < dates.length; daysPerRow += 1) {\n if (dates[daysPerRow].getUTCDay() === firstDay) {\n break;\n }\n }\n rowCnt = Math.ceil(dates.length / daysPerRow);\n }\n else {\n rowCnt = 1;\n daysPerRow = dates.length;\n }\n this.rowCnt = rowCnt;\n this.colCnt = daysPerRow;\n this.daySeries = daySeries;\n this.cells = this.buildCells();\n this.headerDates = this.buildHeaderDates();\n }\n buildCells() {\n let rows = [];\n for (let row = 0; row < this.rowCnt; row += 1) {\n let cells = [];\n for (let col = 0; col < this.colCnt; col += 1) {\n cells.push(this.buildCell(row, col));\n }\n rows.push(cells);\n }\n return rows;\n }\n buildCell(row, col) {\n let date = this.daySeries.dates[row * this.colCnt + col];\n return {\n key: date.toISOString(),\n date,\n };\n }\n buildHeaderDates() {\n let dates = [];\n for (let col = 0; col < this.colCnt; col += 1) {\n dates.push(this.cells[0][col].date);\n }\n return dates;\n }\n sliceRange(range) {\n let { colCnt } = this;\n let seriesSeg = this.daySeries.sliceRange(range);\n let segs = [];\n if (seriesSeg) {\n let { firstIndex, lastIndex } = seriesSeg;\n let index = firstIndex;\n while (index <= lastIndex) {\n let row = Math.floor(index / colCnt);\n let nextIndex = Math.min((row + 1) * colCnt, lastIndex + 1);\n segs.push({\n row,\n firstCol: index % colCnt,\n lastCol: (nextIndex - 1) % colCnt,\n isStart: seriesSeg.isStart && index === firstIndex,\n isEnd: seriesSeg.isEnd && (nextIndex - 1) === lastIndex,\n });\n index = nextIndex;\n }\n }\n return segs;\n }\n}\n\nclass Slicer {\n constructor() {\n this.sliceBusinessHours = memoize(this._sliceBusinessHours);\n this.sliceDateSelection = memoize(this._sliceDateSpan);\n this.sliceEventStore = memoize(this._sliceEventStore);\n this.sliceEventDrag = memoize(this._sliceInteraction);\n this.sliceEventResize = memoize(this._sliceInteraction);\n this.forceDayIfListItem = false; // hack\n }\n sliceProps(props, dateProfile, nextDayThreshold, context, ...extraArgs) {\n let { eventUiBases } = props;\n let eventSegs = this.sliceEventStore(props.eventStore, eventUiBases, dateProfile, nextDayThreshold, ...extraArgs);\n return {\n dateSelectionSegs: this.sliceDateSelection(props.dateSelection, eventUiBases, context, ...extraArgs),\n businessHourSegs: this.sliceBusinessHours(props.businessHours, dateProfile, nextDayThreshold, context, ...extraArgs),\n fgEventSegs: eventSegs.fg,\n bgEventSegs: eventSegs.bg,\n eventDrag: this.sliceEventDrag(props.eventDrag, eventUiBases, dateProfile, nextDayThreshold, ...extraArgs),\n eventResize: this.sliceEventResize(props.eventResize, eventUiBases, dateProfile, nextDayThreshold, ...extraArgs),\n eventSelection: props.eventSelection,\n }; // TODO: give interactionSegs?\n }\n sliceNowDate(// does not memoize\n date, context, ...extraArgs) {\n return this._sliceDateSpan({ range: { start: date, end: addMs(date, 1) }, allDay: false }, // add 1 ms, protect against null range\n {}, context, ...extraArgs);\n }\n _sliceBusinessHours(businessHours, dateProfile, nextDayThreshold, context, ...extraArgs) {\n if (!businessHours) {\n return [];\n }\n return this._sliceEventStore(expandRecurring(businessHours, computeActiveRange(dateProfile, Boolean(nextDayThreshold)), context), {}, dateProfile, nextDayThreshold, ...extraArgs).bg;\n }\n _sliceEventStore(eventStore, eventUiBases, dateProfile, nextDayThreshold, ...extraArgs) {\n if (eventStore) {\n let rangeRes = sliceEventStore(eventStore, eventUiBases, computeActiveRange(dateProfile, Boolean(nextDayThreshold)), nextDayThreshold);\n return {\n bg: this.sliceEventRanges(rangeRes.bg, extraArgs),\n fg: this.sliceEventRanges(rangeRes.fg, extraArgs),\n };\n }\n return { bg: [], fg: [] };\n }\n _sliceInteraction(interaction, eventUiBases, dateProfile, nextDayThreshold, ...extraArgs) {\n if (!interaction) {\n return null;\n }\n let rangeRes = sliceEventStore(interaction.mutatedEvents, eventUiBases, computeActiveRange(dateProfile, Boolean(nextDayThreshold)), nextDayThreshold);\n return {\n segs: this.sliceEventRanges(rangeRes.fg, extraArgs),\n affectedInstances: interaction.affectedEvents.instances,\n isEvent: interaction.isEvent,\n };\n }\n _sliceDateSpan(dateSpan, eventUiBases, context, ...extraArgs) {\n if (!dateSpan) {\n return [];\n }\n let eventRange = fabricateEventRange(dateSpan, eventUiBases, context);\n let segs = this.sliceRange(dateSpan.range, ...extraArgs);\n for (let seg of segs) {\n seg.eventRange = eventRange;\n }\n return segs;\n }\n /*\n \"complete\" seg means it has component and eventRange\n */\n sliceEventRanges(eventRanges, extraArgs) {\n let segs = [];\n for (let eventRange of eventRanges) {\n segs.push(...this.sliceEventRange(eventRange, extraArgs));\n }\n return segs;\n }\n /*\n \"complete\" seg means it has component and eventRange\n */\n sliceEventRange(eventRange, extraArgs) {\n let dateRange = eventRange.range;\n // hack to make multi-day events that are being force-displayed as list-items to take up only one day\n if (this.forceDayIfListItem && eventRange.ui.display === 'list-item') {\n dateRange = {\n start: dateRange.start,\n end: addDays(dateRange.start, 1),\n };\n }\n let segs = this.sliceRange(dateRange, ...extraArgs);\n for (let seg of segs) {\n seg.eventRange = eventRange;\n seg.isStart = eventRange.isStart && seg.isStart;\n seg.isEnd = eventRange.isEnd && seg.isEnd;\n }\n return segs;\n }\n}\n/*\nfor incorporating slotMinTime/slotMaxTime if appropriate\nTODO: should be part of DateProfile!\nTimelineDateProfile already does this btw\n*/\nfunction computeActiveRange(dateProfile, isComponentAllDay) {\n let range = dateProfile.activeRange;\n if (isComponentAllDay) {\n return range;\n }\n return {\n start: addMs(range.start, dateProfile.slotMinTime.milliseconds),\n end: addMs(range.end, dateProfile.slotMaxTime.milliseconds - 864e5), // 864e5 = ms in a day\n };\n}\n\n// high-level segmenting-aware tester functions\n// ------------------------------------------------------------------------------------------------------------------------\nfunction isInteractionValid(interaction, dateProfile, context) {\n let { instances } = interaction.mutatedEvents;\n for (let instanceId in instances) {\n if (!rangeContainsRange(dateProfile.validRange, instances[instanceId].range)) {\n return false;\n }\n }\n return isNewPropsValid({ eventDrag: interaction }, context); // HACK: the eventDrag props is used for ALL interactions\n}\nfunction isDateSelectionValid(dateSelection, dateProfile, context) {\n if (!rangeContainsRange(dateProfile.validRange, dateSelection.range)) {\n return false;\n }\n return isNewPropsValid({ dateSelection }, context);\n}\nfunction isNewPropsValid(newProps, context) {\n let calendarState = context.getCurrentData();\n let props = Object.assign({ businessHours: calendarState.businessHours, dateSelection: '', eventStore: calendarState.eventStore, eventUiBases: calendarState.eventUiBases, eventSelection: '', eventDrag: null, eventResize: null }, newProps);\n return (context.pluginHooks.isPropsValid || isPropsValid)(props, context);\n}\nfunction isPropsValid(state, context, dateSpanMeta = {}, filterConfig) {\n if (state.eventDrag && !isInteractionPropsValid(state, context, dateSpanMeta, filterConfig)) {\n return false;\n }\n if (state.dateSelection && !isDateSelectionPropsValid(state, context, dateSpanMeta, filterConfig)) {\n return false;\n }\n return true;\n}\n// Moving Event Validation\n// ------------------------------------------------------------------------------------------------------------------------\nfunction isInteractionPropsValid(state, context, dateSpanMeta, filterConfig) {\n let currentState = context.getCurrentData();\n let interaction = state.eventDrag; // HACK: the eventDrag props is used for ALL interactions\n let subjectEventStore = interaction.mutatedEvents;\n let subjectDefs = subjectEventStore.defs;\n let subjectInstances = subjectEventStore.instances;\n let subjectConfigs = compileEventUis(subjectDefs, interaction.isEvent ?\n state.eventUiBases :\n { '': currentState.selectionConfig });\n if (filterConfig) {\n subjectConfigs = mapHash(subjectConfigs, filterConfig);\n }\n // exclude the subject events. TODO: exclude defs too?\n let otherEventStore = excludeInstances(state.eventStore, interaction.affectedEvents.instances);\n let otherDefs = otherEventStore.defs;\n let otherInstances = otherEventStore.instances;\n let otherConfigs = compileEventUis(otherDefs, state.eventUiBases);\n for (let subjectInstanceId in subjectInstances) {\n let subjectInstance = subjectInstances[subjectInstanceId];\n let subjectRange = subjectInstance.range;\n let subjectConfig = subjectConfigs[subjectInstance.defId];\n let subjectDef = subjectDefs[subjectInstance.defId];\n // constraint\n if (!allConstraintsPass(subjectConfig.constraints, subjectRange, otherEventStore, state.businessHours, context)) {\n return false;\n }\n // overlap\n let { eventOverlap } = context.options;\n let eventOverlapFunc = typeof eventOverlap === 'function' ? eventOverlap : null;\n for (let otherInstanceId in otherInstances) {\n let otherInstance = otherInstances[otherInstanceId];\n // intersect! evaluate\n if (rangesIntersect(subjectRange, otherInstance.range)) {\n let otherOverlap = otherConfigs[otherInstance.defId].overlap;\n // consider the other event's overlap. only do this if the subject event is a \"real\" event\n if (otherOverlap === false && interaction.isEvent) {\n return false;\n }\n if (subjectConfig.overlap === false) {\n return false;\n }\n if (eventOverlapFunc && !eventOverlapFunc(new EventImpl(context, otherDefs[otherInstance.defId], otherInstance), // still event\n new EventImpl(context, subjectDef, subjectInstance))) {\n return false;\n }\n }\n }\n // allow (a function)\n let calendarEventStore = currentState.eventStore; // need global-to-calendar, not local to component (splittable)state\n for (let subjectAllow of subjectConfig.allows) {\n let subjectDateSpan = Object.assign(Object.assign({}, dateSpanMeta), { range: subjectInstance.range, allDay: subjectDef.allDay });\n let origDef = calendarEventStore.defs[subjectDef.defId];\n let origInstance = calendarEventStore.instances[subjectInstanceId];\n let eventApi;\n if (origDef) { // was previously in the calendar\n eventApi = new EventImpl(context, origDef, origInstance);\n }\n else { // was an external event\n eventApi = new EventImpl(context, subjectDef); // no instance, because had no dates\n }\n if (!subjectAllow(buildDateSpanApiWithContext(subjectDateSpan, context), eventApi)) {\n return false;\n }\n }\n }\n return true;\n}\n// Date Selection Validation\n// ------------------------------------------------------------------------------------------------------------------------\nfunction isDateSelectionPropsValid(state, context, dateSpanMeta, filterConfig) {\n let relevantEventStore = state.eventStore;\n let relevantDefs = relevantEventStore.defs;\n let relevantInstances = relevantEventStore.instances;\n let selection = state.dateSelection;\n let selectionRange = selection.range;\n let { selectionConfig } = context.getCurrentData();\n if (filterConfig) {\n selectionConfig = filterConfig(selectionConfig);\n }\n // constraint\n if (!allConstraintsPass(selectionConfig.constraints, selectionRange, relevantEventStore, state.businessHours, context)) {\n return false;\n }\n // overlap\n let { selectOverlap } = context.options;\n let selectOverlapFunc = typeof selectOverlap === 'function' ? selectOverlap : null;\n for (let relevantInstanceId in relevantInstances) {\n let relevantInstance = relevantInstances[relevantInstanceId];\n // intersect! evaluate\n if (rangesIntersect(selectionRange, relevantInstance.range)) {\n if (selectionConfig.overlap === false) {\n return false;\n }\n if (selectOverlapFunc && !selectOverlapFunc(new EventImpl(context, relevantDefs[relevantInstance.defId], relevantInstance), null)) {\n return false;\n }\n }\n }\n // allow (a function)\n for (let selectionAllow of selectionConfig.allows) {\n let fullDateSpan = Object.assign(Object.assign({}, dateSpanMeta), selection);\n if (!selectionAllow(buildDateSpanApiWithContext(fullDateSpan, context), null)) {\n return false;\n }\n }\n return true;\n}\n// Constraint Utils\n// ------------------------------------------------------------------------------------------------------------------------\nfunction allConstraintsPass(constraints, subjectRange, otherEventStore, businessHoursUnexpanded, context) {\n for (let constraint of constraints) {\n if (!anyRangesContainRange(constraintToRanges(constraint, subjectRange, otherEventStore, businessHoursUnexpanded, context), subjectRange)) {\n return false;\n }\n }\n return true;\n}\nfunction constraintToRanges(constraint, subjectRange, // for expanding a recurring constraint, or expanding business hours\notherEventStore, // for if constraint is an even group ID\nbusinessHoursUnexpanded, // for if constraint is 'businessHours'\ncontext) {\n if (constraint === 'businessHours') {\n return eventStoreToRanges(expandRecurring(businessHoursUnexpanded, subjectRange, context));\n }\n if (typeof constraint === 'string') { // an group ID\n return eventStoreToRanges(filterEventStoreDefs(otherEventStore, (eventDef) => eventDef.groupId === constraint));\n }\n if (typeof constraint === 'object' && constraint) { // non-null object\n return eventStoreToRanges(expandRecurring(constraint, subjectRange, context));\n }\n return []; // if it's false\n}\n// TODO: move to event-store file?\nfunction eventStoreToRanges(eventStore) {\n let { instances } = eventStore;\n let ranges = [];\n for (let instanceId in instances) {\n ranges.push(instances[instanceId].range);\n }\n return ranges;\n}\n// TODO: move to geom file?\nfunction anyRangesContainRange(outerRanges, innerRange) {\n for (let outerRange of outerRanges) {\n if (rangeContainsRange(outerRange, innerRange)) {\n return true;\n }\n }\n return false;\n}\n\nconst VISIBLE_HIDDEN_RE = /^(visible|hidden)$/;\nclass Scroller extends BaseComponent {\n constructor() {\n super(...arguments);\n this.handleEl = (el) => {\n this.el = el;\n setRef(this.props.elRef, el);\n };\n }\n render() {\n let { props } = this;\n let { liquid, liquidIsAbsolute } = props;\n let isAbsolute = liquid && liquidIsAbsolute;\n let className = ['fc-scroller'];\n if (liquid) {\n if (liquidIsAbsolute) {\n className.push('fc-scroller-liquid-absolute');\n }\n else {\n className.push('fc-scroller-liquid');\n }\n }\n return (createElement(\"div\", { ref: this.handleEl, className: className.join(' '), style: {\n overflowX: props.overflowX,\n overflowY: props.overflowY,\n left: (isAbsolute && -(props.overcomeLeft || 0)) || '',\n right: (isAbsolute && -(props.overcomeRight || 0)) || '',\n bottom: (isAbsolute && -(props.overcomeBottom || 0)) || '',\n marginLeft: (!isAbsolute && -(props.overcomeLeft || 0)) || '',\n marginRight: (!isAbsolute && -(props.overcomeRight || 0)) || '',\n marginBottom: (!isAbsolute && -(props.overcomeBottom || 0)) || '',\n maxHeight: props.maxHeight || '',\n } }, props.children));\n }\n needsXScrolling() {\n if (VISIBLE_HIDDEN_RE.test(this.props.overflowX)) {\n return false;\n }\n // testing scrollWidth>clientWidth is unreliable cross-browser when pixel heights aren't integers.\n // much more reliable to see if children are taller than the scroller, even tho doesn't account for\n // inner-child margins and absolute positioning\n let { el } = this;\n let realClientWidth = this.el.getBoundingClientRect().width - this.getYScrollbarWidth();\n let { children } = el;\n for (let i = 0; i < children.length; i += 1) {\n let childEl = children[i];\n if (childEl.getBoundingClientRect().width > realClientWidth) {\n return true;\n }\n }\n return false;\n }\n needsYScrolling() {\n if (VISIBLE_HIDDEN_RE.test(this.props.overflowY)) {\n return false;\n }\n // testing scrollHeight>clientHeight is unreliable cross-browser when pixel heights aren't integers.\n // much more reliable to see if children are taller than the scroller, even tho doesn't account for\n // inner-child margins and absolute positioning\n let { el } = this;\n let realClientHeight = this.el.getBoundingClientRect().height - this.getXScrollbarWidth();\n let { children } = el;\n for (let i = 0; i < children.length; i += 1) {\n let childEl = children[i];\n if (childEl.getBoundingClientRect().height > realClientHeight) {\n return true;\n }\n }\n return false;\n }\n getXScrollbarWidth() {\n if (VISIBLE_HIDDEN_RE.test(this.props.overflowX)) {\n return 0;\n }\n return this.el.offsetHeight - this.el.clientHeight; // only works because we guarantee no borders. TODO: add to CSS with important?\n }\n getYScrollbarWidth() {\n if (VISIBLE_HIDDEN_RE.test(this.props.overflowY)) {\n return 0;\n }\n return this.el.offsetWidth - this.el.clientWidth; // only works because we guarantee no borders. TODO: add to CSS with important?\n }\n}\n\n/*\nTODO: somehow infer OtherArgs from masterCallback?\nTODO: infer RefType from masterCallback if provided\n*/\nclass RefMap {\n constructor(masterCallback) {\n this.masterCallback = masterCallback;\n this.currentMap = {};\n this.depths = {};\n this.callbackMap = {};\n this.handleValue = (val, key) => {\n let { depths, currentMap } = this;\n let removed = false;\n let added = false;\n if (val !== null) {\n // for bug... ACTUALLY: can probably do away with this now that callers don't share numeric indices anymore\n removed = (key in currentMap);\n currentMap[key] = val;\n depths[key] = (depths[key] || 0) + 1;\n added = true;\n }\n else {\n depths[key] -= 1;\n if (!depths[key]) {\n delete currentMap[key];\n delete this.callbackMap[key];\n removed = true;\n }\n }\n if (this.masterCallback) {\n if (removed) {\n this.masterCallback(null, String(key));\n }\n if (added) {\n this.masterCallback(val, String(key));\n }\n }\n };\n }\n createRef(key) {\n let refCallback = this.callbackMap[key];\n if (!refCallback) {\n refCallback = this.callbackMap[key] = (val) => {\n this.handleValue(val, String(key));\n };\n }\n return refCallback;\n }\n // TODO: check callers that don't care about order. should use getAll instead\n // NOTE: this method has become less valuable now that we are encouraged to map order by some other index\n // TODO: provide ONE array-export function, buildArray, which fails on non-numeric indexes. caller can manipulate and \"collect\"\n collect(startIndex, endIndex, step) {\n return collectFromHash(this.currentMap, startIndex, endIndex, step);\n }\n getAll() {\n return hashValuesToArray(this.currentMap);\n }\n}\n\nfunction computeShrinkWidth(chunkEls) {\n let shrinkCells = findElements(chunkEls, '.fc-scrollgrid-shrink');\n let largestWidth = 0;\n for (let shrinkCell of shrinkCells) {\n largestWidth = Math.max(largestWidth, computeSmallestCellWidth(shrinkCell));\n }\n return Math.ceil(largestWidth); // elements work best with integers. round up to ensure contents fits\n}\nfunction getSectionHasLiquidHeight(props, sectionConfig) {\n return props.liquid && sectionConfig.liquid; // does the section do liquid-height? (need to have whole scrollgrid liquid-height as well)\n}\nfunction getAllowYScrolling(props, sectionConfig) {\n return sectionConfig.maxHeight != null || // if its possible for the height to max out, we might need scrollbars\n getSectionHasLiquidHeight(props, sectionConfig); // if the section is liquid height, it might condense enough to require scrollbars\n}\n// TODO: ONLY use `arg`. force out internal function to use same API\nfunction renderChunkContent(sectionConfig, chunkConfig, arg, isHeader) {\n let { expandRows } = arg;\n let content = typeof chunkConfig.content === 'function' ?\n chunkConfig.content(arg) :\n createElement('table', {\n role: 'presentation',\n className: [\n chunkConfig.tableClassName,\n sectionConfig.syncRowHeights ? 'fc-scrollgrid-sync-table' : '',\n ].join(' '),\n style: {\n minWidth: arg.tableMinWidth,\n width: arg.clientWidth,\n height: expandRows ? arg.clientHeight : '', // css `height` on a
serves as a min-height\n },\n }, arg.tableColGroupNode, createElement(isHeader ? 'thead' : 'tbody', {\n role: 'presentation',\n }, typeof chunkConfig.rowContent === 'function'\n ? chunkConfig.rowContent(arg)\n : chunkConfig.rowContent));\n return content;\n}\nfunction isColPropsEqual(cols0, cols1) {\n return isArraysEqual(cols0, cols1, isPropsEqual);\n}\nfunction renderMicroColGroup(cols, shrinkWidth) {\n let colNodes = [];\n /*\n for ColProps with spans, it would have been great to make a single \n HOWEVER, Chrome was getting messing up distributing the width to elements makes Chrome behave.\n */\n for (let colProps of cols) {\n let span = colProps.span || 1;\n for (let i = 0; i < span; i += 1) {\n colNodes.push(createElement(\"col\", { style: {\n width: colProps.width === 'shrink' ? sanitizeShrinkWidth(shrinkWidth) : (colProps.width || ''),\n minWidth: colProps.minWidth || '',\n } }));\n }\n }\n return createElement('colgroup', {}, ...colNodes);\n}\nfunction sanitizeShrinkWidth(shrinkWidth) {\n /* why 4? if we do 0, it will kill any border, which are needed for computeSmallestCellWidth\n 4 accounts for 2 2-pixel borders. TODO: better solution? */\n return shrinkWidth == null ? 4 : shrinkWidth;\n}\nfunction hasShrinkWidth(cols) {\n for (let col of cols) {\n if (col.width === 'shrink') {\n return true;\n }\n }\n return false;\n}\nfunction getScrollGridClassNames(liquid, context) {\n let classNames = [\n 'fc-scrollgrid',\n context.theme.getClass('table'),\n ];\n if (liquid) {\n classNames.push('fc-scrollgrid-liquid');\n }\n return classNames;\n}\nfunction getSectionClassNames(sectionConfig, wholeTableVGrow) {\n let classNames = [\n 'fc-scrollgrid-section',\n `fc-scrollgrid-section-${sectionConfig.type}`,\n sectionConfig.className, // used?\n ];\n if (wholeTableVGrow && sectionConfig.liquid && sectionConfig.maxHeight == null) {\n classNames.push('fc-scrollgrid-section-liquid');\n }\n if (sectionConfig.isSticky) {\n classNames.push('fc-scrollgrid-section-sticky');\n }\n return classNames;\n}\nfunction renderScrollShim(arg) {\n return (createElement(\"div\", { className: \"fc-scrollgrid-sticky-shim\", style: {\n width: arg.clientWidth,\n minWidth: arg.tableMinWidth,\n } }));\n}\nfunction getStickyHeaderDates(options) {\n let { stickyHeaderDates } = options;\n if (stickyHeaderDates == null || stickyHeaderDates === 'auto') {\n stickyHeaderDates = options.height === 'auto' || options.viewHeight === 'auto';\n }\n return stickyHeaderDates;\n}\nfunction getStickyFooterScrollbar(options) {\n let { stickyFooterScrollbar } = options;\n if (stickyFooterScrollbar == null || stickyFooterScrollbar === 'auto') {\n stickyFooterScrollbar = options.height === 'auto' || options.viewHeight === 'auto';\n }\n return stickyFooterScrollbar;\n}\n\nclass SimpleScrollGrid extends BaseComponent {\n constructor() {\n super(...arguments);\n this.processCols = memoize((a) => a, isColPropsEqual); // so we get same `cols` props every time\n // yucky to memoize VNodes, but much more efficient for consumers\n this.renderMicroColGroup = memoize(renderMicroColGroup);\n this.scrollerRefs = new RefMap();\n this.scrollerElRefs = new RefMap(this._handleScrollerEl.bind(this));\n this.state = {\n shrinkWidth: null,\n forceYScrollbars: false,\n scrollerClientWidths: {},\n scrollerClientHeights: {},\n };\n // TODO: can do a really simple print-view. dont need to join rows\n this.handleSizing = () => {\n this.safeSetState(Object.assign({ shrinkWidth: this.computeShrinkWidth() }, this.computeScrollerDims()));\n };\n }\n render() {\n let { props, state, context } = this;\n let sectionConfigs = props.sections || [];\n let cols = this.processCols(props.cols);\n let microColGroupNode = this.renderMicroColGroup(cols, state.shrinkWidth);\n let classNames = getScrollGridClassNames(props.liquid, context);\n if (props.collapsibleWidth) {\n classNames.push('fc-scrollgrid-collapsible');\n }\n // TODO: make DRY\n let configCnt = sectionConfigs.length;\n let configI = 0;\n let currentConfig;\n let headSectionNodes = [];\n let bodySectionNodes = [];\n let footSectionNodes = [];\n while (configI < configCnt && (currentConfig = sectionConfigs[configI]).type === 'header') {\n headSectionNodes.push(this.renderSection(currentConfig, microColGroupNode, true));\n configI += 1;\n }\n while (configI < configCnt && (currentConfig = sectionConfigs[configI]).type === 'body') {\n bodySectionNodes.push(this.renderSection(currentConfig, microColGroupNode, false));\n configI += 1;\n }\n while (configI < configCnt && (currentConfig = sectionConfigs[configI]).type === 'footer') {\n footSectionNodes.push(this.renderSection(currentConfig, microColGroupNode, true));\n configI += 1;\n }\n // firefox bug: when setting height on table and there is a thead or tfoot,\n // the necessary height:100% on the liquid-height body section forces the *whole* table to be taller. (bug #5524)\n // use getCanVGrowWithinCell as a way to detect table-stupid firefox.\n // if so, use a simpler dom structure, jam everything into a lone tbody.\n let isBuggy = !getCanVGrowWithinCell();\n const roleAttrs = { role: 'rowgroup' };\n return createElement('table', {\n role: 'grid',\n className: classNames.join(' '),\n style: { height: props.height },\n }, Boolean(!isBuggy && headSectionNodes.length) && createElement('thead', roleAttrs, ...headSectionNodes), Boolean(!isBuggy && bodySectionNodes.length) && createElement('tbody', roleAttrs, ...bodySectionNodes), Boolean(!isBuggy && footSectionNodes.length) && createElement('tfoot', roleAttrs, ...footSectionNodes), isBuggy && createElement('tbody', roleAttrs, ...headSectionNodes, ...bodySectionNodes, ...footSectionNodes));\n }\n renderSection(sectionConfig, microColGroupNode, isHeader) {\n if ('outerContent' in sectionConfig) {\n return (createElement(Fragment, { key: sectionConfig.key }, sectionConfig.outerContent));\n }\n return (createElement(\"tr\", { key: sectionConfig.key, role: \"presentation\", className: getSectionClassNames(sectionConfig, this.props.liquid).join(' ') }, this.renderChunkTd(sectionConfig, microColGroupNode, sectionConfig.chunk, isHeader)));\n }\n renderChunkTd(sectionConfig, microColGroupNode, chunkConfig, isHeader) {\n if ('outerContent' in chunkConfig) {\n return chunkConfig.outerContent;\n }\n let { props } = this;\n let { forceYScrollbars, scrollerClientWidths, scrollerClientHeights } = this.state;\n let needsYScrolling = getAllowYScrolling(props, sectionConfig); // TODO: do lazily. do in section config?\n let isLiquid = getSectionHasLiquidHeight(props, sectionConfig);\n // for `!props.liquid` - is WHOLE scrollgrid natural height?\n // TODO: do same thing in advanced scrollgrid? prolly not b/c always has horizontal scrollbars\n let overflowY = !props.liquid ? 'visible' :\n forceYScrollbars ? 'scroll' :\n !needsYScrolling ? 'hidden' :\n 'auto';\n let sectionKey = sectionConfig.key;\n let content = renderChunkContent(sectionConfig, chunkConfig, {\n tableColGroupNode: microColGroupNode,\n tableMinWidth: '',\n clientWidth: (!props.collapsibleWidth && scrollerClientWidths[sectionKey] !== undefined) ? scrollerClientWidths[sectionKey] : null,\n clientHeight: scrollerClientHeights[sectionKey] !== undefined ? scrollerClientHeights[sectionKey] : null,\n expandRows: sectionConfig.expandRows,\n syncRowHeights: false,\n rowSyncHeights: [],\n reportRowHeightChange: () => { },\n }, isHeader);\n return createElement(isHeader ? 'th' : 'td', {\n ref: chunkConfig.elRef,\n role: 'presentation',\n }, createElement(\"div\", { className: `fc-scroller-harness${isLiquid ? ' fc-scroller-harness-liquid' : ''}` },\n createElement(Scroller, { ref: this.scrollerRefs.createRef(sectionKey), elRef: this.scrollerElRefs.createRef(sectionKey), overflowY: overflowY, overflowX: !props.liquid ? 'visible' : 'hidden' /* natural height? */, maxHeight: sectionConfig.maxHeight, liquid: isLiquid, liquidIsAbsolute // because its within a harness\n : true }, content)));\n }\n _handleScrollerEl(scrollerEl, key) {\n let section = getSectionByKey(this.props.sections, key);\n if (section) {\n setRef(section.chunk.scrollerElRef, scrollerEl);\n }\n }\n componentDidMount() {\n this.handleSizing();\n this.context.addResizeHandler(this.handleSizing);\n }\n componentDidUpdate() {\n // TODO: need better solution when state contains non-sizing things\n this.handleSizing();\n }\n componentWillUnmount() {\n this.context.removeResizeHandler(this.handleSizing);\n }\n computeShrinkWidth() {\n return hasShrinkWidth(this.props.cols)\n ? computeShrinkWidth(this.scrollerElRefs.getAll())\n : 0;\n }\n computeScrollerDims() {\n let scrollbarWidth = getScrollbarWidths();\n let { scrollerRefs, scrollerElRefs } = this;\n let forceYScrollbars = false;\n let scrollerClientWidths = {};\n let scrollerClientHeights = {};\n for (let sectionKey in scrollerRefs.currentMap) {\n let scroller = scrollerRefs.currentMap[sectionKey];\n if (scroller && scroller.needsYScrolling()) {\n forceYScrollbars = true;\n break;\n }\n }\n for (let section of this.props.sections) {\n let sectionKey = section.key;\n let scrollerEl = scrollerElRefs.currentMap[sectionKey];\n if (scrollerEl) {\n let harnessEl = scrollerEl.parentNode; // TODO: weird way to get this. need harness b/c doesn't include table borders\n scrollerClientWidths[sectionKey] = Math.floor(harnessEl.getBoundingClientRect().width - (forceYScrollbars\n ? scrollbarWidth.y // use global because scroller might not have scrollbars yet but will need them in future\n : 0));\n scrollerClientHeights[sectionKey] = Math.floor(harnessEl.getBoundingClientRect().height);\n }\n }\n return { forceYScrollbars, scrollerClientWidths, scrollerClientHeights };\n }\n}\nSimpleScrollGrid.addStateEquality({\n scrollerClientWidths: isPropsEqual,\n scrollerClientHeights: isPropsEqual,\n});\nfunction getSectionByKey(sections, key) {\n for (let section of sections) {\n if (section.key === key) {\n return section;\n }\n }\n return null;\n}\n\nclass EventContainer extends BaseComponent {\n constructor() {\n super(...arguments);\n this.handleEl = (el) => {\n this.el = el;\n if (el) {\n setElSeg(el, this.props.seg);\n }\n };\n }\n render() {\n const { props, context } = this;\n const { options } = context;\n const { seg } = props;\n const { eventRange } = seg;\n const { ui } = eventRange;\n const renderProps = {\n event: new EventImpl(context, eventRange.def, eventRange.instance),\n view: context.viewApi,\n timeText: props.timeText,\n textColor: ui.textColor,\n backgroundColor: ui.backgroundColor,\n borderColor: ui.borderColor,\n isDraggable: !props.disableDragging && computeSegDraggable(seg, context),\n isStartResizable: !props.disableResizing && computeSegStartResizable(seg, context),\n isEndResizable: !props.disableResizing && computeSegEndResizable(seg),\n isMirror: Boolean(props.isDragging || props.isResizing || props.isDateSelecting),\n isStart: Boolean(seg.isStart),\n isEnd: Boolean(seg.isEnd),\n isPast: Boolean(props.isPast),\n isFuture: Boolean(props.isFuture),\n isToday: Boolean(props.isToday),\n isSelected: Boolean(props.isSelected),\n isDragging: Boolean(props.isDragging),\n isResizing: Boolean(props.isResizing),\n };\n return (createElement(ContentContainer, Object.assign({}, props /* contains children */, { elRef: this.handleEl, elClasses: [\n ...getEventClassNames(renderProps),\n ...seg.eventRange.ui.classNames,\n ...(props.elClasses || []),\n ], renderProps: renderProps, generatorName: \"eventContent\", generator: options.eventContent || props.defaultGenerator, classNameGenerator: options.eventClassNames, didMount: options.eventDidMount, willUnmount: options.eventWillUnmount })));\n }\n componentDidUpdate(prevProps) {\n if (this.el && this.props.seg !== prevProps.seg) {\n setElSeg(this.el, this.props.seg);\n }\n }\n}\n\n// should not be a purecomponent\nclass StandardEvent extends BaseComponent {\n render() {\n let { props, context } = this;\n let { options } = context;\n let { seg } = props;\n let { ui } = seg.eventRange;\n let timeFormat = options.eventTimeFormat || props.defaultTimeFormat;\n let timeText = buildSegTimeText(seg, timeFormat, context, props.defaultDisplayEventTime, props.defaultDisplayEventEnd);\n return (createElement(EventContainer, Object.assign({}, props /* includes elRef */, { elTag: \"a\", elStyle: {\n borderColor: ui.borderColor,\n backgroundColor: ui.backgroundColor,\n }, elAttrs: getSegAnchorAttrs(seg, context), defaultGenerator: renderInnerContent$1, timeText: timeText }), (InnerContent, eventContentArg) => (createElement(Fragment, null,\n createElement(InnerContent, { elTag: \"div\", elClasses: ['fc-event-main'], elStyle: { color: eventContentArg.textColor } }),\n Boolean(eventContentArg.isStartResizable) && (createElement(\"div\", { className: \"fc-event-resizer fc-event-resizer-start\" })),\n Boolean(eventContentArg.isEndResizable) && (createElement(\"div\", { className: \"fc-event-resizer fc-event-resizer-end\" }))))));\n }\n}\nfunction renderInnerContent$1(innerProps) {\n return (createElement(\"div\", { className: \"fc-event-main-frame\" },\n innerProps.timeText && (createElement(\"div\", { className: \"fc-event-time\" }, innerProps.timeText)),\n createElement(\"div\", { className: \"fc-event-title-container\" },\n createElement(\"div\", { className: \"fc-event-title fc-sticky\" }, innerProps.event.title || createElement(Fragment, null, \"\\u00A0\")))));\n}\n\nconst NowIndicatorContainer = (props) => (createElement(ViewContextType.Consumer, null, (context) => {\n let { options } = context;\n let renderProps = {\n isAxis: props.isAxis,\n date: context.dateEnv.toDate(props.date),\n view: context.viewApi,\n };\n return (createElement(ContentContainer, Object.assign({}, props /* includes children */, { elTag: props.elTag || 'div', renderProps: renderProps, generatorName: \"nowIndicatorContent\", generator: options.nowIndicatorContent, classNameGenerator: options.nowIndicatorClassNames, didMount: options.nowIndicatorDidMount, willUnmount: options.nowIndicatorWillUnmount })));\n}));\n\nconst DAY_NUM_FORMAT = createFormatter({ day: 'numeric' });\nclass DayCellContainer extends BaseComponent {\n constructor() {\n super(...arguments);\n this.refineRenderProps = memoizeObjArg(refineRenderProps);\n }\n render() {\n let { props, context } = this;\n let { options } = context;\n let renderProps = this.refineRenderProps({\n date: props.date,\n dateProfile: props.dateProfile,\n todayRange: props.todayRange,\n showDayNumber: props.showDayNumber,\n extraRenderProps: props.extraRenderProps,\n viewApi: context.viewApi,\n dateEnv: context.dateEnv,\n });\n return (createElement(ContentContainer, Object.assign({}, props /* includes children */, { elClasses: [\n ...getDayClassNames(renderProps, context.theme),\n ...(props.elClasses || []),\n ], elAttrs: Object.assign(Object.assign({}, props.elAttrs), (renderProps.isDisabled ? {} : { 'data-date': formatDayString(props.date) })), renderProps: renderProps, generatorName: \"dayCellContent\", generator: options.dayCellContent || props.defaultGenerator, classNameGenerator: \n // don't use custom classNames if disabled\n renderProps.isDisabled ? undefined : options.dayCellClassNames, didMount: options.dayCellDidMount, willUnmount: options.dayCellWillUnmount })));\n }\n}\nfunction hasCustomDayCellContent(options) {\n return Boolean(options.dayCellContent || hasCustomRenderingHandler('dayCellContent', options));\n}\nfunction refineRenderProps(raw) {\n let { date, dateEnv } = raw;\n let dayMeta = getDateMeta(date, raw.todayRange, null, raw.dateProfile);\n return Object.assign(Object.assign(Object.assign({ date: dateEnv.toDate(date), view: raw.viewApi }, dayMeta), { dayNumberText: raw.showDayNumber ? dateEnv.format(date, DAY_NUM_FORMAT) : '' }), raw.extraRenderProps);\n}\n\nclass BgEvent extends BaseComponent {\n render() {\n let { props } = this;\n let { seg } = props;\n return (createElement(EventContainer, { elTag: \"div\", elClasses: ['fc-bg-event'], elStyle: { backgroundColor: seg.eventRange.ui.backgroundColor }, defaultGenerator: renderInnerContent, seg: seg, timeText: \"\", isDragging: false, isResizing: false, isDateSelecting: false, isSelected: false, isPast: props.isPast, isFuture: props.isFuture, isToday: props.isToday, disableDragging: true, disableResizing: true }));\n }\n}\nfunction renderInnerContent(props) {\n let { title } = props.event;\n return title && (createElement(\"div\", { className: \"fc-event-title\" }, props.event.title));\n}\nfunction renderFill(fillType) {\n return (createElement(\"div\", { className: `fc-${fillType}` }));\n}\n\nconst WeekNumberContainer = (props) => (createElement(ViewContextType.Consumer, null, (context) => {\n let { dateEnv, options } = context;\n let { date } = props;\n let format = options.weekNumberFormat || props.defaultFormat;\n let num = dateEnv.computeWeekNumber(date); // TODO: somehow use for formatting as well?\n let text = dateEnv.format(date, format);\n let renderProps = { num, text, date };\n return (createElement(ContentContainer // why isn't WeekNumberContentArg being auto-detected?\n , Object.assign({}, props /* includes children */, { renderProps: renderProps, generatorName: \"weekNumberContent\", generator: options.weekNumberContent || renderInner, classNameGenerator: options.weekNumberClassNames, didMount: options.weekNumberDidMount, willUnmount: options.weekNumberWillUnmount })));\n}));\nfunction renderInner(innerProps) {\n return innerProps.text;\n}\n\nconst PADDING_FROM_VIEWPORT = 10;\nclass Popover extends BaseComponent {\n constructor() {\n super(...arguments);\n this.state = {\n titleId: getUniqueDomId(),\n };\n this.handleRootEl = (el) => {\n this.rootEl = el;\n if (this.props.elRef) {\n setRef(this.props.elRef, el);\n }\n };\n // Triggered when the user clicks *anywhere* in the document, for the autoHide feature\n this.handleDocumentMouseDown = (ev) => {\n // only hide the popover if the click happened outside the popover\n const target = getEventTargetViaRoot(ev);\n if (!this.rootEl.contains(target)) {\n this.handleCloseClick();\n }\n };\n this.handleDocumentKeyDown = (ev) => {\n if (ev.key === 'Escape') {\n this.handleCloseClick();\n }\n };\n this.handleCloseClick = () => {\n let { onClose } = this.props;\n if (onClose) {\n onClose();\n }\n };\n }\n render() {\n let { theme, options } = this.context;\n let { props, state } = this;\n let classNames = [\n 'fc-popover',\n theme.getClass('popover'),\n ].concat(props.extraClassNames || []);\n return createPortal(createElement(\"div\", Object.assign({}, props.extraAttrs, { id: props.id, className: classNames.join(' '), \"aria-labelledby\": state.titleId, ref: this.handleRootEl }),\n createElement(\"div\", { className: 'fc-popover-header ' + theme.getClass('popoverHeader') },\n createElement(\"span\", { className: \"fc-popover-title\", id: state.titleId }, props.title),\n createElement(\"span\", { className: 'fc-popover-close ' + theme.getIconClass('close'), title: options.closeHint, onClick: this.handleCloseClick })),\n createElement(\"div\", { className: 'fc-popover-body ' + theme.getClass('popoverContent') }, props.children)), props.parentEl);\n }\n componentDidMount() {\n document.addEventListener('mousedown', this.handleDocumentMouseDown);\n document.addEventListener('keydown', this.handleDocumentKeyDown);\n this.updateSize();\n }\n componentWillUnmount() {\n document.removeEventListener('mousedown', this.handleDocumentMouseDown);\n document.removeEventListener('keydown', this.handleDocumentKeyDown);\n }\n updateSize() {\n let { isRtl } = this.context;\n let { alignmentEl, alignGridTop } = this.props;\n let { rootEl } = this;\n let alignmentRect = computeClippedClientRect(alignmentEl);\n if (alignmentRect) {\n let popoverDims = rootEl.getBoundingClientRect();\n // position relative to viewport\n let popoverTop = alignGridTop\n ? elementClosest(alignmentEl, '.fc-scrollgrid').getBoundingClientRect().top\n : alignmentRect.top;\n let popoverLeft = isRtl ? alignmentRect.right - popoverDims.width : alignmentRect.left;\n // constrain\n popoverTop = Math.max(popoverTop, PADDING_FROM_VIEWPORT);\n popoverLeft = Math.min(popoverLeft, document.documentElement.clientWidth - PADDING_FROM_VIEWPORT - popoverDims.width);\n popoverLeft = Math.max(popoverLeft, PADDING_FROM_VIEWPORT);\n let origin = rootEl.offsetParent.getBoundingClientRect();\n applyStyle(rootEl, {\n top: popoverTop - origin.top,\n left: popoverLeft - origin.left,\n });\n }\n }\n}\n\nclass MorePopover extends DateComponent {\n constructor() {\n super(...arguments);\n this.handleRootEl = (rootEl) => {\n this.rootEl = rootEl;\n if (rootEl) {\n this.context.registerInteractiveComponent(this, {\n el: rootEl,\n useEventCenter: false,\n });\n }\n else {\n this.context.unregisterInteractiveComponent(this);\n }\n };\n }\n render() {\n let { options, dateEnv } = this.context;\n let { props } = this;\n let { startDate, todayRange, dateProfile } = props;\n let title = dateEnv.format(startDate, options.dayPopoverFormat);\n return (createElement(DayCellContainer, { elRef: this.handleRootEl, date: startDate, dateProfile: dateProfile, todayRange: todayRange }, (InnerContent, renderProps, elAttrs) => (createElement(Popover, { elRef: elAttrs.ref, id: props.id, title: title, extraClassNames: ['fc-more-popover'].concat(elAttrs.className || []), extraAttrs: elAttrs /* TODO: make these time-based when not whole-day? */, parentEl: props.parentEl, alignmentEl: props.alignmentEl, alignGridTop: props.alignGridTop, onClose: props.onClose },\n hasCustomDayCellContent(options) && (createElement(InnerContent, { elTag: \"div\", elClasses: ['fc-more-popover-misc'] })),\n props.children))));\n }\n queryHit(positionLeft, positionTop, elWidth, elHeight) {\n let { rootEl, props } = this;\n if (positionLeft >= 0 && positionLeft < elWidth &&\n positionTop >= 0 && positionTop < elHeight) {\n return {\n dateProfile: props.dateProfile,\n dateSpan: Object.assign({ allDay: true, range: {\n start: props.startDate,\n end: props.endDate,\n } }, props.extraDateSpan),\n dayEl: rootEl,\n rect: {\n left: 0,\n top: 0,\n right: elWidth,\n bottom: elHeight,\n },\n layer: 1, // important when comparing with hits from other components\n };\n }\n return null;\n }\n}\n\nclass MoreLinkContainer extends BaseComponent {\n constructor() {\n super(...arguments);\n this.linkElRef = createRef();\n this.state = {\n isPopoverOpen: false,\n popoverId: getUniqueDomId(),\n };\n this.handleClick = (ev) => {\n let { props, context } = this;\n let { moreLinkClick } = context.options;\n let date = computeRange(props).start;\n function buildPublicSeg(seg) {\n let { def, instance, range } = seg.eventRange;\n return {\n event: new EventImpl(context, def, instance),\n start: context.dateEnv.toDate(range.start),\n end: context.dateEnv.toDate(range.end),\n isStart: seg.isStart,\n isEnd: seg.isEnd,\n };\n }\n if (typeof moreLinkClick === 'function') {\n moreLinkClick = moreLinkClick({\n date,\n allDay: Boolean(props.allDayDate),\n allSegs: props.allSegs.map(buildPublicSeg),\n hiddenSegs: props.hiddenSegs.map(buildPublicSeg),\n jsEvent: ev,\n view: context.viewApi,\n });\n }\n if (!moreLinkClick || moreLinkClick === 'popover') {\n this.setState({ isPopoverOpen: true });\n }\n else if (typeof moreLinkClick === 'string') { // a view name\n context.calendarApi.zoomTo(date, moreLinkClick);\n }\n };\n this.handlePopoverClose = () => {\n this.setState({ isPopoverOpen: false });\n };\n }\n render() {\n let { props, state } = this;\n return (createElement(ViewContextType.Consumer, null, (context) => {\n let { viewApi, options, calendarApi } = context;\n let { moreLinkText } = options;\n let { moreCnt } = props;\n let range = computeRange(props);\n let text = typeof moreLinkText === 'function' // TODO: eventually use formatWithOrdinals\n ? moreLinkText.call(calendarApi, moreCnt)\n : `+${moreCnt} ${moreLinkText}`;\n let hint = formatWithOrdinals(options.moreLinkHint, [moreCnt], text);\n let renderProps = {\n num: moreCnt,\n shortText: `+${moreCnt}`,\n text,\n view: viewApi,\n };\n return (createElement(Fragment, null,\n Boolean(props.moreCnt) && (createElement(ContentContainer, { elTag: props.elTag || 'a', elRef: this.linkElRef, elClasses: [\n ...(props.elClasses || []),\n 'fc-more-link',\n ], elAttrs: Object.assign(Object.assign(Object.assign({}, props.elAttrs), createAriaClickAttrs(this.handleClick)), { title: hint, 'aria-expanded': state.isPopoverOpen, 'aria-controls': state.isPopoverOpen ? state.popoverId : '' }), renderProps: renderProps, generatorName: \"moreLinkContent\", generator: options.moreLinkContent || props.defaultGenerator || renderMoreLinkInner, classNameGenerator: options.moreLinkClassNames, didMount: options.moreLinkDidMount, willUnmount: options.moreLinkWillUnmount }, props.children)),\n state.isPopoverOpen && (createElement(MorePopover, { id: state.popoverId, startDate: range.start, endDate: range.end, dateProfile: props.dateProfile, todayRange: props.todayRange, extraDateSpan: props.extraDateSpan, parentEl: this.parentEl, alignmentEl: props.alignmentElRef ?\n props.alignmentElRef.current :\n this.linkElRef.current, alignGridTop: props.alignGridTop, onClose: this.handlePopoverClose }, props.popoverContent()))));\n }));\n }\n componentDidMount() {\n this.updateParentEl();\n }\n componentDidUpdate() {\n this.updateParentEl();\n }\n updateParentEl() {\n if (this.linkElRef.current) {\n this.parentEl = elementClosest(this.linkElRef.current, '.fc-view-harness');\n }\n }\n}\nfunction renderMoreLinkInner(props) {\n return props.text;\n}\nfunction computeRange(props) {\n if (props.allDayDate) {\n return {\n start: props.allDayDate,\n end: addDays(props.allDayDate, 1),\n };\n }\n let { hiddenSegs } = props;\n return {\n start: computeEarliestSegStart(hiddenSegs),\n end: computeLatestSegEnd(hiddenSegs),\n };\n}\nfunction computeEarliestSegStart(segs) {\n return segs.reduce(pickEarliestStart).eventRange.range.start;\n}\nfunction pickEarliestStart(seg0, seg1) {\n return seg0.eventRange.range.start < seg1.eventRange.range.start ? seg0 : seg1;\n}\nfunction computeLatestSegEnd(segs) {\n return segs.reduce(pickLatestEnd).eventRange.range.end;\n}\nfunction pickLatestEnd(seg0, seg1) {\n return seg0.eventRange.range.end > seg1.eventRange.range.end ? seg0 : seg1;\n}\n\nclass Store {\n constructor() {\n this.handlers = [];\n }\n set(value) {\n this.currentValue = value;\n for (let handler of this.handlers) {\n handler(value);\n }\n }\n subscribe(handler) {\n this.handlers.push(handler);\n if (this.currentValue !== undefined) {\n handler(this.currentValue);\n }\n }\n}\n\n/*\nSubscribers will get a LIST of CustomRenderings\n*/\nclass CustomRenderingStore extends Store {\n constructor() {\n super(...arguments);\n this.map = new Map();\n }\n // for consistent order\n handle(customRendering) {\n const { map } = this;\n let updated = false;\n if (customRendering.isActive) {\n map.set(customRendering.id, customRendering);\n updated = true;\n }\n else if (map.has(customRendering.id)) {\n map.delete(customRendering.id);\n updated = true;\n }\n if (updated) {\n this.set(map);\n }\n }\n}\n\nexport { getElSeg as $, memoizeObjArg as A, BASE_OPTION_DEFAULTS as B, ContentContainer as C, DelayedRunner as D, isPropsEqual as E, Emitter as F, getInitialDate as G, rangeContainsMarker as H, createEmptyEventStore as I, reduceCurrentDate as J, reduceEventStore as K, rezoneEventStoreDates as L, mergeRawOptions as M, BASE_OPTION_REFINERS as N, CALENDAR_LISTENER_REFINERS as O, CALENDAR_OPTION_REFINERS as P, COMPLEX_OPTION_COMPARATORS as Q, VIEW_OPTION_REFINERS as R, DateEnv as S, Theme as T, DateProfileGenerator as U, ViewContextType as V, createEventUi as W, parseBusinessHours as X, BaseComponent as Y, setRef as Z, Interaction as _, isArraysEqual as a, getDateMeta as a$, elementClosest as a0, EventImpl as a1, listenBySelector as a2, listenToHoverBySelector as a3, PureComponent as a4, buildViewContext as a5, getUniqueDomId as a6, parseInteractionSettings as a7, interactionSettingsStore as a8, getNow as a9, diffDates as aA, removeExact as aB, memoizeArraylike as aC, memoizeHashlike as aD, intersectRects as aE, pointInsideRect as aF, constrainPoint as aG, getRectCenter as aH, diffPoints as aI, translateRect as aJ, compareObjs as aK, collectFromHash as aL, findElements as aM, findDirectChildren as aN, removeElement as aO, applyStyle as aP, elementMatches as aQ, getElRoot as aR, getEventTargetViaRoot as aS, parseClassNames as aT, getCanVGrowWithinCell as aU, mergeEventStores as aV, getRelevantEvents as aW, eventTupleToStore as aX, combineEventUis as aY, Splitter as aZ, getDayClassNames as a_, CalendarImpl as aa, flushSync as ab, CalendarRoot as ac, RenderId as ad, applyStyleProp as ae, sliceEventStore as af, JsonRequestError as ag, createContext as ah, refineProps as ai, createEventInstance as aj, parseEventDef as ak, refineEventDef as al, padStart as am, isInt as an, parseFieldSpecs as ao, compareByFieldSpecs as ap, flexibleCompare as aq, preventSelection as ar, allowSelection as as, preventContextMenu as at, allowContextMenu as au, compareNumbers as av, enableCursor as aw, disableCursor as ax, computeVisibleDayRange as ay, isMultiDayRange as az, mapHash as b, SimpleScrollGrid as b$, getSlotClassNames as b0, buildNavLinkAttrs as b1, preventDefault as b2, whenTransitionDone as b3, computeInnerRect as b4, computeEdges as b5, getClippingParents as b6, computeRect as b7, rangesEqual as b8, rangesIntersect as b9, SegHierarchy as bA, buildEntryKey as bB, getEntrySpanEnd as bC, binarySearch as bD, groupIntersectingEntries as bE, intersectSpans as bF, interactionSettingsToStore as bG, ElementDragging as bH, config as bI, parseDragMeta as bJ, DayHeader as bK, computeFallbackHeaderFormat as bL, TableDateCell as bM, TableDowCell as bN, DaySeriesModel as bO, hasBgRendering as bP, buildSegTimeText as bQ, sortEventSegs as bR, getSegMeta as bS, buildEventRangeKey as bT, getSegAnchorAttrs as bU, DayTableModel as bV, Slicer as bW, applyMutationToEventStore as bX, isPropsValid as bY, isInteractionValid as bZ, isDateSelectionValid as b_, rangeContainsRange as ba, PositionCache as bb, ScrollController as bc, ElementScrollController as bd, WindowScrollController as be, DateComponent as bf, isDateSpansEqual as bg, addMs as bh, addWeeks as bi, diffWeeks as bj, diffWholeWeeks as bk, diffDayAndTime as bl, diffDays as bm, isValidDate as bn, asCleanDays as bo, multiplyDuration as bp, addDurations as bq, asRoughMinutes as br, asRoughSeconds as bs, asRoughMs as bt, wholeDivideDurations as bu, formatIsoTimeString as bv, formatDayString as bw, buildIsoString as bx, NamedTimeZoneImpl as by, parse as bz, buildViewClassNames as c, hasShrinkWidth as c0, renderMicroColGroup as c1, getScrollGridClassNames as c2, getSectionClassNames as c3, getSectionHasLiquidHeight as c4, getAllowYScrolling as c5, renderChunkContent as c6, computeShrinkWidth as c7, sanitizeShrinkWidth as c8, isColPropsEqual as c9, renderScrollShim as ca, getStickyFooterScrollbar as cb, getStickyHeaderDates as cc, Scroller as cd, getScrollbarWidths as ce, RefMap as cf, getIsRtlScrollbarOnLeft as cg, NowTimer as ch, ScrollResponder as ci, StandardEvent as cj, NowIndicatorContainer as ck, DayCellContainer as cl, hasCustomDayCellContent as cm, EventContainer as cn, renderFill as co, BgEvent as cp, WeekNumberContainer as cq, MoreLinkContainer as cr, computeEarliestSegStart as cs, ViewContainer as ct, triggerDateSelect as cu, getDefaultEventEnd as cv, buildElAttrs as cw, CustomRenderingStore as cx, greatestDurationDenominator as d, createDuration as e, arrayToHash as f, guid as g, filterHash as h, injectStyles as i, buildEventSourceRefiners as j, formatWithOrdinals as k, buildRangeApiWithTimeZone as l, mergeProps as m, identity as n, intersectRanges as o, parseEventSource as p, startOfDay as q, requestJson as r, subtractDurations as s, addDays as t, unpromisify as u, hashValuesToArray as v, buildEventApis as w, createFormatter as x, diffWholeDays as y, memoize as z };\n","import { i as injectStyles, m as mergeProps, g as guid, a as isArraysEqual, T as Theme, b as mapHash, V as ViewContextType, C as ContentContainer, c as buildViewClassNames, d as greatestDurationDenominator, e as createDuration, B as BASE_OPTION_DEFAULTS, f as arrayToHash, h as filterHash, j as buildEventSourceRefiners, p as parseEventSource, k as formatWithOrdinals, u as unpromisify, l as buildRangeApiWithTimeZone, n as identity, r as requestJson, s as subtractDurations, o as intersectRanges, q as startOfDay, t as addDays, v as hashValuesToArray, w as buildEventApis, D as DelayedRunner, x as createFormatter, y as diffWholeDays, z as memoize, A as memoizeObjArg, E as isPropsEqual, F as Emitter, G as getInitialDate, H as rangeContainsMarker, I as createEmptyEventStore, J as reduceCurrentDate, K as reduceEventStore, L as rezoneEventStoreDates, M as mergeRawOptions, N as BASE_OPTION_REFINERS, O as CALENDAR_LISTENER_REFINERS, P as CALENDAR_OPTION_REFINERS, Q as COMPLEX_OPTION_COMPARATORS, R as VIEW_OPTION_REFINERS, S as DateEnv, U as DateProfileGenerator, W as createEventUi, X as parseBusinessHours, Y as BaseComponent, Z as setRef, _ as Interaction, $ as getElSeg, a0 as elementClosest, a1 as EventImpl, a2 as listenBySelector, a3 as listenToHoverBySelector, a4 as PureComponent, a5 as buildViewContext, a6 as getUniqueDomId, a7 as parseInteractionSettings, a8 as interactionSettingsStore, a9 as getNow, aa as CalendarImpl, ab as flushSync, ac as CalendarRoot, ad as RenderId, ae as applyStyleProp, af as sliceEventStore } from './internal-common.js';\nexport { ag as JsonRequestError } from './internal-common.js';\nimport { createElement, createRef, Fragment, render } from 'preact';\nimport 'preact/compat';\n\nvar css_248z = \":root{--fc-small-font-size:.85em;--fc-page-bg-color:#fff;--fc-neutral-bg-color:hsla(0,0%,82%,.3);--fc-neutral-text-color:grey;--fc-border-color:#ddd;--fc-button-text-color:#fff;--fc-button-bg-color:#2c3e50;--fc-button-border-color:#2c3e50;--fc-button-hover-bg-color:#1e2b37;--fc-button-hover-border-color:#1a252f;--fc-button-active-bg-color:#1a252f;--fc-button-active-border-color:#151e27;--fc-event-bg-color:#3788d8;--fc-event-border-color:#3788d8;--fc-event-text-color:#fff;--fc-event-selected-overlay-color:rgba(0,0,0,.25);--fc-more-link-bg-color:#d0d0d0;--fc-more-link-text-color:inherit;--fc-event-resizer-thickness:8px;--fc-event-resizer-dot-total-width:8px;--fc-event-resizer-dot-border-width:1px;--fc-non-business-color:hsla(0,0%,84%,.3);--fc-bg-event-color:#8fdf82;--fc-bg-event-opacity:0.3;--fc-highlight-color:rgba(188,232,241,.3);--fc-today-bg-color:rgba(255,220,40,.15);--fc-now-indicator-color:red}.fc-not-allowed,.fc-not-allowed .fc-event{cursor:not-allowed}.fc-unselectable{-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-user-select:none;-moz-user-select:none;user-select:none}.fc{display:flex;flex-direction:column;font-size:1em}.fc,.fc *,.fc :after,.fc :before{box-sizing:border-box}.fc table{border-collapse:collapse;border-spacing:0;font-size:1em}.fc th{text-align:center}.fc td,.fc th{padding:0;vertical-align:top}.fc a[data-navlink]{cursor:pointer}.fc a[data-navlink]:hover{text-decoration:underline}.fc-direction-ltr{direction:ltr;text-align:left}.fc-direction-rtl{direction:rtl;text-align:right}.fc-theme-standard td,.fc-theme-standard th{border:1px solid var(--fc-border-color)}.fc-liquid-hack td,.fc-liquid-hack th{position:relative}@font-face{font-family:fcicons;font-style:normal;font-weight:400;src:url(\\\"data:application/x-font-ttf;charset=utf-8;base64,AAEAAAALAIAAAwAwT1MvMg8SBfAAAAC8AAAAYGNtYXAXVtKNAAABHAAAAFRnYXNwAAAAEAAAAXAAAAAIZ2x5ZgYydxIAAAF4AAAFNGhlYWQUJ7cIAAAGrAAAADZoaGVhB20DzAAABuQAAAAkaG10eCIABhQAAAcIAAAALGxvY2ED4AU6AAAHNAAAABhtYXhwAA8AjAAAB0wAAAAgbmFtZXsr690AAAdsAAABhnBvc3QAAwAAAAAI9AAAACAAAwPAAZAABQAAApkCzAAAAI8CmQLMAAAB6wAzAQkAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADpBgPA/8AAQAPAAEAAAAABAAAAAAAAAAAAAAAgAAAAAAADAAAAAwAAABwAAQADAAAAHAADAAEAAAAcAAQAOAAAAAoACAACAAIAAQAg6Qb//f//AAAAAAAg6QD//f//AAH/4xcEAAMAAQAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAA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ABAAAAAAAGAAcASwABAAAAAAAKABoAigADAAEECQABAA4ABwADAAEECQACAA4AZwADAAEECQADAA4APQADAAEECQAEAA4AfAADAAEECQAFABYAIAADAAEECQAGAA4AUgADAAEECQAKADQApGZjaWNvbnMAZgBjAGkAYwBvAG4Ac1ZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMGZjaWNvbnMAZgBjAGkAYwBvAG4Ac2ZjaWNvbnMAZgBjAGkAYwBvAG4Ac1JlZ3VsYXIAUgBlAGcAdQBsAGEAcmZjaWNvbnMAZgBjAGkAYwBvAG4Ac0ZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=\\\") format(\\\"truetype\\\")}.fc-icon{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-block;font-family:fcicons!important;font-style:normal;font-variant:normal;font-weight:400;height:1em;line-height:1;text-align:center;text-transform:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:1em}.fc-icon-chevron-left:before{content:\\\"\\\\e900\\\"}.fc-icon-chevron-right:before{content:\\\"\\\\e901\\\"}.fc-icon-chevrons-left:before{content:\\\"\\\\e902\\\"}.fc-icon-chevrons-right:before{content:\\\"\\\\e903\\\"}.fc-icon-minus-square:before{content:\\\"\\\\e904\\\"}.fc-icon-plus-square:before{content:\\\"\\\\e905\\\"}.fc-icon-x:before{content:\\\"\\\\e906\\\"}.fc .fc-button{border-radius:0;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;overflow:visible;text-transform:none}.fc .fc-button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}.fc .fc-button{-webkit-appearance:button}.fc .fc-button:not(:disabled){cursor:pointer}.fc .fc-button::-moz-focus-inner{border-style:none;padding:0}.fc .fc-button{background-color:transparent;border:1px solid transparent;border-radius:.25em;display:inline-block;font-size:1em;font-weight:400;line-height:1.5;padding:.4em .65em;text-align:center;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle}.fc .fc-button:hover{text-decoration:none}.fc .fc-button:focus{box-shadow:0 0 0 .2rem rgba(44,62,80,.25);outline:0}.fc .fc-button:disabled{opacity:.65}.fc .fc-button-primary{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:hover{background-color:var(--fc-button-hover-bg-color);border-color:var(--fc-button-hover-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:disabled{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button-primary:not(:disabled).fc-button-active,.fc .fc-button-primary:not(:disabled):active{background-color:var(--fc-button-active-bg-color);border-color:var(--fc-button-active-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:not(:disabled).fc-button-active:focus,.fc .fc-button-primary:not(:disabled):active:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button .fc-icon{font-size:1.5em;vertical-align:middle}.fc .fc-button-group{display:inline-flex;position:relative;vertical-align:middle}.fc .fc-button-group>.fc-button{flex:1 1 auto;position:relative}.fc .fc-button-group>.fc-button.fc-button-active,.fc .fc-button-group>.fc-button:active,.fc .fc-button-group>.fc-button:focus,.fc .fc-button-group>.fc-button:hover{z-index:1}.fc-direction-ltr .fc-button-group>.fc-button:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0;margin-left:-1px}.fc-direction-ltr .fc-button-group>.fc-button:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.fc-direction-rtl .fc-button-group>.fc-button:not(:first-child){border-bottom-right-radius:0;border-top-right-radius:0;margin-right:-1px}.fc-direction-rtl .fc-button-group>.fc-button:not(:last-child){border-bottom-left-radius:0;border-top-left-radius:0}.fc .fc-toolbar{align-items:center;display:flex;justify-content:space-between}.fc .fc-toolbar.fc-header-toolbar{margin-bottom:1.5em}.fc .fc-toolbar.fc-footer-toolbar{margin-top:1.5em}.fc .fc-toolbar-title{font-size:1.75em;margin:0}.fc-direction-ltr .fc-toolbar>*>:not(:first-child){margin-left:.75em}.fc-direction-rtl .fc-toolbar>*>:not(:first-child){margin-right:.75em}.fc-direction-rtl .fc-toolbar-ltr{flex-direction:row-reverse}.fc .fc-scroller{-webkit-overflow-scrolling:touch;position:relative}.fc .fc-scroller-liquid{height:100%}.fc .fc-scroller-liquid-absolute{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-scroller-harness{direction:ltr;overflow:hidden;position:relative}.fc .fc-scroller-harness-liquid{height:100%}.fc-direction-rtl .fc-scroller-harness>.fc-scroller{direction:rtl}.fc-theme-standard .fc-scrollgrid{border:1px solid var(--fc-border-color)}.fc .fc-scrollgrid,.fc .fc-scrollgrid table{table-layout:fixed;width:100%}.fc .fc-scrollgrid table{border-left-style:hidden;border-right-style:hidden;border-top-style:hidden}.fc .fc-scrollgrid{border-bottom-width:0;border-collapse:separate;border-right-width:0}.fc .fc-scrollgrid-liquid{height:100%}.fc .fc-scrollgrid-section,.fc .fc-scrollgrid-section table,.fc .fc-scrollgrid-section>td{height:1px}.fc .fc-scrollgrid-section-liquid>td{height:100%}.fc .fc-scrollgrid-section>*{border-left-width:0;border-top-width:0}.fc .fc-scrollgrid-section-footer>*,.fc .fc-scrollgrid-section-header>*{border-bottom-width:0}.fc .fc-scrollgrid-section-body table,.fc .fc-scrollgrid-section-footer table{border-bottom-style:hidden}.fc .fc-scrollgrid-section-sticky>*{background:var(--fc-page-bg-color);position:sticky;z-index:3}.fc .fc-scrollgrid-section-header.fc-scrollgrid-section-sticky>*{top:0}.fc .fc-scrollgrid-section-footer.fc-scrollgrid-section-sticky>*{bottom:0}.fc .fc-scrollgrid-sticky-shim{height:1px;margin-bottom:-1px}.fc-sticky{position:sticky}.fc .fc-view-harness{flex-grow:1;position:relative}.fc .fc-view-harness-active>.fc-view{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-col-header-cell-cushion{display:inline-block;padding:2px 4px}.fc .fc-bg-event,.fc .fc-highlight,.fc .fc-non-business{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-non-business{background:var(--fc-non-business-color)}.fc .fc-bg-event{background:var(--fc-bg-event-color);opacity:var(--fc-bg-event-opacity)}.fc .fc-bg-event .fc-event-title{font-size:var(--fc-small-font-size);font-style:italic;margin:.5em}.fc .fc-highlight{background:var(--fc-highlight-color)}.fc .fc-cell-shaded,.fc .fc-day-disabled{background:var(--fc-neutral-bg-color)}a.fc-event,a.fc-event:hover{text-decoration:none}.fc-event.fc-event-draggable,.fc-event[href]{cursor:pointer}.fc-event .fc-event-main{position:relative;z-index:2}.fc-event-dragging:not(.fc-event-selected){opacity:.75}.fc-event-dragging.fc-event-selected{box-shadow:0 2px 7px rgba(0,0,0,.3)}.fc-event .fc-event-resizer{display:none;position:absolute;z-index:4}.fc-event-selected .fc-event-resizer,.fc-event:hover .fc-event-resizer{display:block}.fc-event-selected .fc-event-resizer{background:var(--fc-page-bg-color);border-color:inherit;border-radius:calc(var(--fc-event-resizer-dot-total-width)/2);border-style:solid;border-width:var(--fc-event-resizer-dot-border-width);height:var(--fc-event-resizer-dot-total-width);width:var(--fc-event-resizer-dot-total-width)}.fc-event-selected .fc-event-resizer:before{bottom:-20px;content:\\\"\\\";left:-20px;position:absolute;right:-20px;top:-20px}.fc-event-selected,.fc-event:focus{box-shadow:0 2px 5px rgba(0,0,0,.2)}.fc-event-selected:before,.fc-event:focus:before{bottom:0;content:\\\"\\\";left:0;position:absolute;right:0;top:0;z-index:3}.fc-event-selected:after,.fc-event:focus:after{background:var(--fc-event-selected-overlay-color);bottom:-1px;content:\\\"\\\";left:-1px;position:absolute;right:-1px;top:-1px;z-index:1}.fc-h-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-h-event .fc-event-main{color:var(--fc-event-text-color)}.fc-h-event .fc-event-main-frame{display:flex}.fc-h-event .fc-event-time{max-width:100%;overflow:hidden}.fc-h-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-width:0}.fc-h-event .fc-event-title{display:inline-block;left:0;max-width:100%;overflow:hidden;right:0;vertical-align:top}.fc-h-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-start),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-end){border-bottom-left-radius:0;border-left-width:0;border-top-left-radius:0}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-end),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-start){border-bottom-right-radius:0;border-right-width:0;border-top-right-radius:0}.fc-h-event:not(.fc-event-selected) .fc-event-resizer{bottom:0;top:0;width:var(--fc-event-resizer-thickness)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end{cursor:w-resize;left:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start{cursor:e-resize;right:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-h-event.fc-event-selected .fc-event-resizer{margin-top:calc(var(--fc-event-resizer-dot-total-width)*-.5);top:50%}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-start,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-end{left:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-end,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-start{right:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc .fc-popover{box-shadow:0 2px 6px rgba(0,0,0,.15);position:absolute;z-index:9999}.fc .fc-popover-header{align-items:center;display:flex;flex-direction:row;justify-content:space-between;padding:3px 4px}.fc .fc-popover-title{margin:0 2px}.fc .fc-popover-close{cursor:pointer;font-size:1.1em;opacity:.65}.fc-theme-standard .fc-popover{background:var(--fc-page-bg-color);border:1px solid var(--fc-border-color)}.fc-theme-standard .fc-popover-header{background:var(--fc-neutral-bg-color)}\";\ninjectStyles(css_248z);\n\nconst globalLocales = [];\n\nconst MINIMAL_RAW_EN_LOCALE = {\n code: 'en',\n week: {\n dow: 0,\n doy: 4, // 4 days need to be within the year to be considered the first week\n },\n direction: 'ltr',\n buttonText: {\n prev: 'prev',\n next: 'next',\n prevYear: 'prev year',\n nextYear: 'next year',\n year: 'year',\n today: 'today',\n month: 'month',\n week: 'week',\n day: 'day',\n list: 'list',\n },\n weekText: 'W',\n weekTextLong: 'Week',\n closeHint: 'Close',\n timeHint: 'Time',\n eventHint: 'Event',\n allDayText: 'all-day',\n moreLinkText: 'more',\n noEventsText: 'No events to display',\n};\nconst RAW_EN_LOCALE = Object.assign(Object.assign({}, MINIMAL_RAW_EN_LOCALE), { \n // Includes things we don't want other locales to inherit,\n // things that derive from other translatable strings.\n buttonHints: {\n prev: 'Previous $0',\n next: 'Next $0',\n today(buttonText, unit) {\n return (unit === 'day')\n ? 'Today'\n : `This ${buttonText}`;\n },\n }, viewHint: '$0 view', navLinkHint: 'Go to $0', moreLinkHint(eventCnt) {\n return `Show ${eventCnt} more event${eventCnt === 1 ? '' : 's'}`;\n } });\nfunction organizeRawLocales(explicitRawLocales) {\n let defaultCode = explicitRawLocales.length > 0 ? explicitRawLocales[0].code : 'en';\n let allRawLocales = globalLocales.concat(explicitRawLocales);\n let rawLocaleMap = {\n en: RAW_EN_LOCALE,\n };\n for (let rawLocale of allRawLocales) {\n rawLocaleMap[rawLocale.code] = rawLocale;\n }\n return {\n map: rawLocaleMap,\n defaultCode,\n };\n}\nfunction buildLocale(inputSingular, available) {\n if (typeof inputSingular === 'object' && !Array.isArray(inputSingular)) {\n return parseLocale(inputSingular.code, [inputSingular.code], inputSingular);\n }\n return queryLocale(inputSingular, available);\n}\nfunction queryLocale(codeArg, available) {\n let codes = [].concat(codeArg || []); // will convert to array\n let raw = queryRawLocale(codes, available) || RAW_EN_LOCALE;\n return parseLocale(codeArg, codes, raw);\n}\nfunction queryRawLocale(codes, available) {\n for (let i = 0; i < codes.length; i += 1) {\n let parts = codes[i].toLocaleLowerCase().split('-');\n for (let j = parts.length; j > 0; j -= 1) {\n let simpleId = parts.slice(0, j).join('-');\n if (available[simpleId]) {\n return available[simpleId];\n }\n }\n }\n return null;\n}\nfunction parseLocale(codeArg, codes, raw) {\n let merged = mergeProps([MINIMAL_RAW_EN_LOCALE, raw], ['buttonText']);\n delete merged.code; // don't want this part of the options\n let { week } = merged;\n delete merged.week;\n return {\n codeArg,\n codes,\n week,\n simpleNumberFormat: new Intl.NumberFormat(codeArg),\n options: merged,\n };\n}\n\n// TODO: easier way to add new hooks? need to update a million things\nfunction createPlugin(input) {\n return {\n id: guid(),\n name: input.name,\n premiumReleaseDate: input.premiumReleaseDate ? new Date(input.premiumReleaseDate) : undefined,\n deps: input.deps || [],\n reducers: input.reducers || [],\n isLoadingFuncs: input.isLoadingFuncs || [],\n contextInit: [].concat(input.contextInit || []),\n eventRefiners: input.eventRefiners || {},\n eventDefMemberAdders: input.eventDefMemberAdders || [],\n eventSourceRefiners: input.eventSourceRefiners || {},\n isDraggableTransformers: input.isDraggableTransformers || [],\n eventDragMutationMassagers: input.eventDragMutationMassagers || [],\n eventDefMutationAppliers: input.eventDefMutationAppliers || [],\n dateSelectionTransformers: input.dateSelectionTransformers || [],\n datePointTransforms: input.datePointTransforms || [],\n dateSpanTransforms: input.dateSpanTransforms || [],\n views: input.views || {},\n viewPropsTransformers: input.viewPropsTransformers || [],\n isPropsValid: input.isPropsValid || null,\n externalDefTransforms: input.externalDefTransforms || [],\n viewContainerAppends: input.viewContainerAppends || [],\n eventDropTransformers: input.eventDropTransformers || [],\n componentInteractions: input.componentInteractions || [],\n calendarInteractions: input.calendarInteractions || [],\n themeClasses: input.themeClasses || {},\n eventSourceDefs: input.eventSourceDefs || [],\n cmdFormatter: input.cmdFormatter,\n recurringTypes: input.recurringTypes || [],\n namedTimeZonedImpl: input.namedTimeZonedImpl,\n initialView: input.initialView || '',\n elementDraggingImpl: input.elementDraggingImpl,\n optionChangeHandlers: input.optionChangeHandlers || {},\n scrollGridImpl: input.scrollGridImpl || null,\n listenerRefiners: input.listenerRefiners || {},\n optionRefiners: input.optionRefiners || {},\n propSetHandlers: input.propSetHandlers || {},\n };\n}\nfunction buildPluginHooks(pluginDefs, globalDefs) {\n let currentPluginIds = {};\n let hooks = {\n premiumReleaseDate: undefined,\n reducers: [],\n isLoadingFuncs: [],\n contextInit: [],\n eventRefiners: {},\n eventDefMemberAdders: [],\n eventSourceRefiners: {},\n isDraggableTransformers: [],\n eventDragMutationMassagers: [],\n eventDefMutationAppliers: [],\n dateSelectionTransformers: [],\n datePointTransforms: [],\n dateSpanTransforms: [],\n views: {},\n viewPropsTransformers: [],\n isPropsValid: null,\n externalDefTransforms: [],\n viewContainerAppends: [],\n eventDropTransformers: [],\n componentInteractions: [],\n calendarInteractions: [],\n themeClasses: {},\n eventSourceDefs: [],\n cmdFormatter: null,\n recurringTypes: [],\n namedTimeZonedImpl: null,\n initialView: '',\n elementDraggingImpl: null,\n optionChangeHandlers: {},\n scrollGridImpl: null,\n listenerRefiners: {},\n optionRefiners: {},\n propSetHandlers: {},\n };\n function addDefs(defs) {\n for (let def of defs) {\n const pluginName = def.name;\n const currentId = currentPluginIds[pluginName];\n if (currentId === undefined) {\n currentPluginIds[pluginName] = def.id;\n addDefs(def.deps);\n hooks = combineHooks(hooks, def);\n }\n else if (currentId !== def.id) {\n // different ID than the one already added\n console.warn(`Duplicate plugin '${pluginName}'`);\n }\n }\n }\n if (pluginDefs) {\n addDefs(pluginDefs);\n }\n addDefs(globalDefs);\n return hooks;\n}\nfunction buildBuildPluginHooks() {\n let currentOverrideDefs = [];\n let currentGlobalDefs = [];\n let currentHooks;\n return (overrideDefs, globalDefs) => {\n if (!currentHooks || !isArraysEqual(overrideDefs, currentOverrideDefs) || !isArraysEqual(globalDefs, currentGlobalDefs)) {\n currentHooks = buildPluginHooks(overrideDefs, globalDefs);\n }\n currentOverrideDefs = overrideDefs;\n currentGlobalDefs = globalDefs;\n return currentHooks;\n };\n}\nfunction combineHooks(hooks0, hooks1) {\n return {\n premiumReleaseDate: compareOptionalDates(hooks0.premiumReleaseDate, hooks1.premiumReleaseDate),\n reducers: hooks0.reducers.concat(hooks1.reducers),\n isLoadingFuncs: hooks0.isLoadingFuncs.concat(hooks1.isLoadingFuncs),\n contextInit: hooks0.contextInit.concat(hooks1.contextInit),\n eventRefiners: Object.assign(Object.assign({}, hooks0.eventRefiners), hooks1.eventRefiners),\n eventDefMemberAdders: hooks0.eventDefMemberAdders.concat(hooks1.eventDefMemberAdders),\n eventSourceRefiners: Object.assign(Object.assign({}, hooks0.eventSourceRefiners), hooks1.eventSourceRefiners),\n isDraggableTransformers: hooks0.isDraggableTransformers.concat(hooks1.isDraggableTransformers),\n eventDragMutationMassagers: hooks0.eventDragMutationMassagers.concat(hooks1.eventDragMutationMassagers),\n eventDefMutationAppliers: hooks0.eventDefMutationAppliers.concat(hooks1.eventDefMutationAppliers),\n dateSelectionTransformers: hooks0.dateSelectionTransformers.concat(hooks1.dateSelectionTransformers),\n datePointTransforms: hooks0.datePointTransforms.concat(hooks1.datePointTransforms),\n dateSpanTransforms: hooks0.dateSpanTransforms.concat(hooks1.dateSpanTransforms),\n views: Object.assign(Object.assign({}, hooks0.views), hooks1.views),\n viewPropsTransformers: hooks0.viewPropsTransformers.concat(hooks1.viewPropsTransformers),\n isPropsValid: hooks1.isPropsValid || hooks0.isPropsValid,\n externalDefTransforms: hooks0.externalDefTransforms.concat(hooks1.externalDefTransforms),\n viewContainerAppends: hooks0.viewContainerAppends.concat(hooks1.viewContainerAppends),\n eventDropTransformers: hooks0.eventDropTransformers.concat(hooks1.eventDropTransformers),\n calendarInteractions: hooks0.calendarInteractions.concat(hooks1.calendarInteractions),\n componentInteractions: hooks0.componentInteractions.concat(hooks1.componentInteractions),\n themeClasses: Object.assign(Object.assign({}, hooks0.themeClasses), hooks1.themeClasses),\n eventSourceDefs: hooks0.eventSourceDefs.concat(hooks1.eventSourceDefs),\n cmdFormatter: hooks1.cmdFormatter || hooks0.cmdFormatter,\n recurringTypes: hooks0.recurringTypes.concat(hooks1.recurringTypes),\n namedTimeZonedImpl: hooks1.namedTimeZonedImpl || hooks0.namedTimeZonedImpl,\n initialView: hooks0.initialView || hooks1.initialView,\n elementDraggingImpl: hooks0.elementDraggingImpl || hooks1.elementDraggingImpl,\n optionChangeHandlers: Object.assign(Object.assign({}, hooks0.optionChangeHandlers), hooks1.optionChangeHandlers),\n scrollGridImpl: hooks1.scrollGridImpl || hooks0.scrollGridImpl,\n listenerRefiners: Object.assign(Object.assign({}, hooks0.listenerRefiners), hooks1.listenerRefiners),\n optionRefiners: Object.assign(Object.assign({}, hooks0.optionRefiners), hooks1.optionRefiners),\n propSetHandlers: Object.assign(Object.assign({}, hooks0.propSetHandlers), hooks1.propSetHandlers),\n };\n}\nfunction compareOptionalDates(date0, date1) {\n if (date0 === undefined) {\n return date1;\n }\n if (date1 === undefined) {\n return date0;\n }\n return new Date(Math.max(date0.valueOf(), date1.valueOf()));\n}\n\nclass StandardTheme extends Theme {\n}\nStandardTheme.prototype.classes = {\n root: 'fc-theme-standard',\n tableCellShaded: 'fc-cell-shaded',\n buttonGroup: 'fc-button-group',\n button: 'fc-button fc-button-primary',\n buttonActive: 'fc-button-active',\n};\nStandardTheme.prototype.baseIconClass = 'fc-icon';\nStandardTheme.prototype.iconClasses = {\n close: 'fc-icon-x',\n prev: 'fc-icon-chevron-left',\n next: 'fc-icon-chevron-right',\n prevYear: 'fc-icon-chevrons-left',\n nextYear: 'fc-icon-chevrons-right',\n};\nStandardTheme.prototype.rtlIconClasses = {\n prev: 'fc-icon-chevron-right',\n next: 'fc-icon-chevron-left',\n prevYear: 'fc-icon-chevrons-right',\n nextYear: 'fc-icon-chevrons-left',\n};\nStandardTheme.prototype.iconOverrideOption = 'buttonIcons'; // TODO: make TS-friendly\nStandardTheme.prototype.iconOverrideCustomButtonOption = 'icon';\nStandardTheme.prototype.iconOverridePrefix = 'fc-icon-';\n\nfunction compileViewDefs(defaultConfigs, overrideConfigs) {\n let hash = {};\n let viewType;\n for (viewType in defaultConfigs) {\n ensureViewDef(viewType, hash, defaultConfigs, overrideConfigs);\n }\n for (viewType in overrideConfigs) {\n ensureViewDef(viewType, hash, defaultConfigs, overrideConfigs);\n }\n return hash;\n}\nfunction ensureViewDef(viewType, hash, defaultConfigs, overrideConfigs) {\n if (hash[viewType]) {\n return hash[viewType];\n }\n let viewDef = buildViewDef(viewType, hash, defaultConfigs, overrideConfigs);\n if (viewDef) {\n hash[viewType] = viewDef;\n }\n return viewDef;\n}\nfunction buildViewDef(viewType, hash, defaultConfigs, overrideConfigs) {\n let defaultConfig = defaultConfigs[viewType];\n let overrideConfig = overrideConfigs[viewType];\n let queryProp = (name) => ((defaultConfig && defaultConfig[name] !== null) ? defaultConfig[name] :\n ((overrideConfig && overrideConfig[name] !== null) ? overrideConfig[name] : null));\n let theComponent = queryProp('component');\n let superType = queryProp('superType');\n let superDef = null;\n if (superType) {\n if (superType === viewType) {\n throw new Error('Can\\'t have a custom view type that references itself');\n }\n superDef = ensureViewDef(superType, hash, defaultConfigs, overrideConfigs);\n }\n if (!theComponent && superDef) {\n theComponent = superDef.component;\n }\n if (!theComponent) {\n return null; // don't throw a warning, might be settings for a single-unit view\n }\n return {\n type: viewType,\n component: theComponent,\n defaults: Object.assign(Object.assign({}, (superDef ? superDef.defaults : {})), (defaultConfig ? defaultConfig.rawOptions : {})),\n overrides: Object.assign(Object.assign({}, (superDef ? superDef.overrides : {})), (overrideConfig ? overrideConfig.rawOptions : {})),\n };\n}\n\nfunction parseViewConfigs(inputs) {\n return mapHash(inputs, parseViewConfig);\n}\nfunction parseViewConfig(input) {\n let rawOptions = typeof input === 'function' ?\n { component: input } :\n input;\n let { component } = rawOptions;\n if (rawOptions.content) {\n component = createViewHookComponent(rawOptions);\n // TODO: remove content/classNames/didMount/etc from options?\n }\n return {\n superType: rawOptions.type,\n component: component,\n rawOptions, // includes type and component too :(\n };\n}\nfunction createViewHookComponent(options) {\n return (viewProps) => (createElement(ViewContextType.Consumer, null, (context) => (createElement(ContentContainer, { elTag: \"div\", elClasses: buildViewClassNames(context.viewSpec), renderProps: Object.assign(Object.assign({}, viewProps), { nextDayThreshold: context.options.nextDayThreshold }), generatorName: undefined, generator: options.content, classNameGenerator: options.classNames, didMount: options.didMount, willUnmount: options.willUnmount }))));\n}\n\nfunction buildViewSpecs(defaultInputs, optionOverrides, dynamicOptionOverrides, localeDefaults) {\n let defaultConfigs = parseViewConfigs(defaultInputs);\n let overrideConfigs = parseViewConfigs(optionOverrides.views);\n let viewDefs = compileViewDefs(defaultConfigs, overrideConfigs);\n return mapHash(viewDefs, (viewDef) => buildViewSpec(viewDef, overrideConfigs, optionOverrides, dynamicOptionOverrides, localeDefaults));\n}\nfunction buildViewSpec(viewDef, overrideConfigs, optionOverrides, dynamicOptionOverrides, localeDefaults) {\n let durationInput = viewDef.overrides.duration ||\n viewDef.defaults.duration ||\n dynamicOptionOverrides.duration ||\n optionOverrides.duration;\n let duration = null;\n let durationUnit = '';\n let singleUnit = '';\n let singleUnitOverrides = {};\n if (durationInput) {\n duration = createDurationCached(durationInput);\n if (duration) { // valid?\n let denom = greatestDurationDenominator(duration);\n durationUnit = denom.unit;\n if (denom.value === 1) {\n singleUnit = durationUnit;\n singleUnitOverrides = overrideConfigs[durationUnit] ? overrideConfigs[durationUnit].rawOptions : {};\n }\n }\n }\n let queryButtonText = (optionsSubset) => {\n let buttonTextMap = optionsSubset.buttonText || {};\n let buttonTextKey = viewDef.defaults.buttonTextKey;\n if (buttonTextKey != null && buttonTextMap[buttonTextKey] != null) {\n return buttonTextMap[buttonTextKey];\n }\n if (buttonTextMap[viewDef.type] != null) {\n return buttonTextMap[viewDef.type];\n }\n if (buttonTextMap[singleUnit] != null) {\n return buttonTextMap[singleUnit];\n }\n return null;\n };\n let queryButtonTitle = (optionsSubset) => {\n let buttonHints = optionsSubset.buttonHints || {};\n let buttonKey = viewDef.defaults.buttonTextKey; // use same key as text\n if (buttonKey != null && buttonHints[buttonKey] != null) {\n return buttonHints[buttonKey];\n }\n if (buttonHints[viewDef.type] != null) {\n return buttonHints[viewDef.type];\n }\n if (buttonHints[singleUnit] != null) {\n return buttonHints[singleUnit];\n }\n return null;\n };\n return {\n type: viewDef.type,\n component: viewDef.component,\n duration,\n durationUnit,\n singleUnit,\n optionDefaults: viewDef.defaults,\n optionOverrides: Object.assign(Object.assign({}, singleUnitOverrides), viewDef.overrides),\n buttonTextOverride: queryButtonText(dynamicOptionOverrides) ||\n queryButtonText(optionOverrides) || // constructor-specified buttonText lookup hash takes precedence\n viewDef.overrides.buttonText,\n buttonTextDefault: queryButtonText(localeDefaults) ||\n viewDef.defaults.buttonText ||\n queryButtonText(BASE_OPTION_DEFAULTS) ||\n viewDef.type,\n // not DRY\n buttonTitleOverride: queryButtonTitle(dynamicOptionOverrides) ||\n queryButtonTitle(optionOverrides) ||\n viewDef.overrides.buttonHint,\n buttonTitleDefault: queryButtonTitle(localeDefaults) ||\n viewDef.defaults.buttonHint ||\n queryButtonTitle(BASE_OPTION_DEFAULTS),\n // will eventually fall back to buttonText\n };\n}\n// hack to get memoization working\nlet durationInputMap = {};\nfunction createDurationCached(durationInput) {\n let json = JSON.stringify(durationInput);\n let res = durationInputMap[json];\n if (res === undefined) {\n res = createDuration(durationInput);\n durationInputMap[json] = res;\n }\n return res;\n}\n\nfunction reduceViewType(viewType, action) {\n switch (action.type) {\n case 'CHANGE_VIEW_TYPE':\n viewType = action.viewType;\n }\n return viewType;\n}\n\nfunction reduceDynamicOptionOverrides(dynamicOptionOverrides, action) {\n switch (action.type) {\n case 'SET_OPTION':\n return Object.assign(Object.assign({}, dynamicOptionOverrides), { [action.optionName]: action.rawOptionValue });\n default:\n return dynamicOptionOverrides;\n }\n}\n\nfunction reduceDateProfile(currentDateProfile, action, currentDate, dateProfileGenerator) {\n let dp;\n switch (action.type) {\n case 'CHANGE_VIEW_TYPE':\n return dateProfileGenerator.build(action.dateMarker || currentDate);\n case 'CHANGE_DATE':\n return dateProfileGenerator.build(action.dateMarker);\n case 'PREV':\n dp = dateProfileGenerator.buildPrev(currentDateProfile, currentDate);\n if (dp.isValid) {\n return dp;\n }\n break;\n case 'NEXT':\n dp = dateProfileGenerator.buildNext(currentDateProfile, currentDate);\n if (dp.isValid) {\n return dp;\n }\n break;\n }\n return currentDateProfile;\n}\n\nfunction initEventSources(calendarOptions, dateProfile, context) {\n let activeRange = dateProfile ? dateProfile.activeRange : null;\n return addSources({}, parseInitialSources(calendarOptions, context), activeRange, context);\n}\nfunction reduceEventSources(eventSources, action, dateProfile, context) {\n let activeRange = dateProfile ? dateProfile.activeRange : null; // need this check?\n switch (action.type) {\n case 'ADD_EVENT_SOURCES': // already parsed\n return addSources(eventSources, action.sources, activeRange, context);\n case 'REMOVE_EVENT_SOURCE':\n return removeSource(eventSources, action.sourceId);\n case 'PREV': // TODO: how do we track all actions that affect dateProfile :(\n case 'NEXT':\n case 'CHANGE_DATE':\n case 'CHANGE_VIEW_TYPE':\n if (dateProfile) {\n return fetchDirtySources(eventSources, activeRange, context);\n }\n return eventSources;\n case 'FETCH_EVENT_SOURCES':\n return fetchSourcesByIds(eventSources, action.sourceIds ? // why no type?\n arrayToHash(action.sourceIds) :\n excludeStaticSources(eventSources, context), activeRange, action.isRefetch || false, context);\n case 'RECEIVE_EVENTS':\n case 'RECEIVE_EVENT_ERROR':\n return receiveResponse(eventSources, action.sourceId, action.fetchId, action.fetchRange);\n case 'REMOVE_ALL_EVENT_SOURCES':\n return {};\n default:\n return eventSources;\n }\n}\nfunction reduceEventSourcesNewTimeZone(eventSources, dateProfile, context) {\n let activeRange = dateProfile ? dateProfile.activeRange : null; // need this check?\n return fetchSourcesByIds(eventSources, excludeStaticSources(eventSources, context), activeRange, true, context);\n}\nfunction computeEventSourcesLoading(eventSources) {\n for (let sourceId in eventSources) {\n if (eventSources[sourceId].isFetching) {\n return true;\n }\n }\n return false;\n}\nfunction addSources(eventSourceHash, sources, fetchRange, context) {\n let hash = {};\n for (let source of sources) {\n hash[source.sourceId] = source;\n }\n if (fetchRange) {\n hash = fetchDirtySources(hash, fetchRange, context);\n }\n return Object.assign(Object.assign({}, eventSourceHash), hash);\n}\nfunction removeSource(eventSourceHash, sourceId) {\n return filterHash(eventSourceHash, (eventSource) => eventSource.sourceId !== sourceId);\n}\nfunction fetchDirtySources(sourceHash, fetchRange, context) {\n return fetchSourcesByIds(sourceHash, filterHash(sourceHash, (eventSource) => isSourceDirty(eventSource, fetchRange, context)), fetchRange, false, context);\n}\nfunction isSourceDirty(eventSource, fetchRange, context) {\n if (!doesSourceNeedRange(eventSource, context)) {\n return !eventSource.latestFetchId;\n }\n return !context.options.lazyFetching ||\n !eventSource.fetchRange ||\n eventSource.isFetching || // always cancel outdated in-progress fetches\n fetchRange.start < eventSource.fetchRange.start ||\n fetchRange.end > eventSource.fetchRange.end;\n}\nfunction fetchSourcesByIds(prevSources, sourceIdHash, fetchRange, isRefetch, context) {\n let nextSources = {};\n for (let sourceId in prevSources) {\n let source = prevSources[sourceId];\n if (sourceIdHash[sourceId]) {\n nextSources[sourceId] = fetchSource(source, fetchRange, isRefetch, context);\n }\n else {\n nextSources[sourceId] = source;\n }\n }\n return nextSources;\n}\nfunction fetchSource(eventSource, fetchRange, isRefetch, context) {\n let { options, calendarApi } = context;\n let sourceDef = context.pluginHooks.eventSourceDefs[eventSource.sourceDefId];\n let fetchId = guid();\n sourceDef.fetch({\n eventSource,\n range: fetchRange,\n isRefetch,\n context,\n }, (res) => {\n let { rawEvents } = res;\n if (options.eventSourceSuccess) {\n rawEvents = options.eventSourceSuccess.call(calendarApi, rawEvents, res.response) || rawEvents;\n }\n if (eventSource.success) {\n rawEvents = eventSource.success.call(calendarApi, rawEvents, res.response) || rawEvents;\n }\n context.dispatch({\n type: 'RECEIVE_EVENTS',\n sourceId: eventSource.sourceId,\n fetchId,\n fetchRange,\n rawEvents,\n });\n }, (error) => {\n let errorHandled = false;\n if (options.eventSourceFailure) {\n options.eventSourceFailure.call(calendarApi, error);\n errorHandled = true;\n }\n if (eventSource.failure) {\n eventSource.failure(error);\n errorHandled = true;\n }\n if (!errorHandled) {\n console.warn(error.message, error);\n }\n context.dispatch({\n type: 'RECEIVE_EVENT_ERROR',\n sourceId: eventSource.sourceId,\n fetchId,\n fetchRange,\n error,\n });\n });\n return Object.assign(Object.assign({}, eventSource), { isFetching: true, latestFetchId: fetchId });\n}\nfunction receiveResponse(sourceHash, sourceId, fetchId, fetchRange) {\n let eventSource = sourceHash[sourceId];\n if (eventSource && // not already removed\n fetchId === eventSource.latestFetchId) {\n return Object.assign(Object.assign({}, sourceHash), { [sourceId]: Object.assign(Object.assign({}, eventSource), { isFetching: false, fetchRange }) });\n }\n return sourceHash;\n}\nfunction excludeStaticSources(eventSources, context) {\n return filterHash(eventSources, (eventSource) => doesSourceNeedRange(eventSource, context));\n}\nfunction parseInitialSources(rawOptions, context) {\n let refiners = buildEventSourceRefiners(context);\n let rawSources = [].concat(rawOptions.eventSources || []);\n let sources = []; // parsed\n if (rawOptions.initialEvents) {\n rawSources.unshift(rawOptions.initialEvents);\n }\n if (rawOptions.events) {\n rawSources.unshift(rawOptions.events);\n }\n for (let rawSource of rawSources) {\n let source = parseEventSource(rawSource, context, refiners);\n if (source) {\n sources.push(source);\n }\n }\n return sources;\n}\nfunction doesSourceNeedRange(eventSource, context) {\n let defs = context.pluginHooks.eventSourceDefs;\n return !defs[eventSource.sourceDefId].ignoreRange;\n}\n\nfunction reduceDateSelection(currentSelection, action) {\n switch (action.type) {\n case 'UNSELECT_DATES':\n return null;\n case 'SELECT_DATES':\n return action.selection;\n default:\n return currentSelection;\n }\n}\n\nfunction reduceSelectedEvent(currentInstanceId, action) {\n switch (action.type) {\n case 'UNSELECT_EVENT':\n return '';\n case 'SELECT_EVENT':\n return action.eventInstanceId;\n default:\n return currentInstanceId;\n }\n}\n\nfunction reduceEventDrag(currentDrag, action) {\n let newDrag;\n switch (action.type) {\n case 'UNSET_EVENT_DRAG':\n return null;\n case 'SET_EVENT_DRAG':\n newDrag = action.state;\n return {\n affectedEvents: newDrag.affectedEvents,\n mutatedEvents: newDrag.mutatedEvents,\n isEvent: newDrag.isEvent,\n };\n default:\n return currentDrag;\n }\n}\n\nfunction reduceEventResize(currentResize, action) {\n let newResize;\n switch (action.type) {\n case 'UNSET_EVENT_RESIZE':\n return null;\n case 'SET_EVENT_RESIZE':\n newResize = action.state;\n return {\n affectedEvents: newResize.affectedEvents,\n mutatedEvents: newResize.mutatedEvents,\n isEvent: newResize.isEvent,\n };\n default:\n return currentResize;\n }\n}\n\nfunction parseToolbars(calendarOptions, calendarOptionOverrides, theme, viewSpecs, calendarApi) {\n let header = calendarOptions.headerToolbar ? parseToolbar(calendarOptions.headerToolbar, calendarOptions, calendarOptionOverrides, theme, viewSpecs, calendarApi) : null;\n let footer = calendarOptions.footerToolbar ? parseToolbar(calendarOptions.footerToolbar, calendarOptions, calendarOptionOverrides, theme, viewSpecs, calendarApi) : null;\n return { header, footer };\n}\nfunction parseToolbar(sectionStrHash, calendarOptions, calendarOptionOverrides, theme, viewSpecs, calendarApi) {\n let sectionWidgets = {};\n let viewsWithButtons = [];\n let hasTitle = false;\n for (let sectionName in sectionStrHash) {\n let sectionStr = sectionStrHash[sectionName];\n let sectionRes = parseSection(sectionStr, calendarOptions, calendarOptionOverrides, theme, viewSpecs, calendarApi);\n sectionWidgets[sectionName] = sectionRes.widgets;\n viewsWithButtons.push(...sectionRes.viewsWithButtons);\n hasTitle = hasTitle || sectionRes.hasTitle;\n }\n return { sectionWidgets, viewsWithButtons, hasTitle };\n}\n/*\nBAD: querying icons and text here. should be done at render time\n*/\nfunction parseSection(sectionStr, calendarOptions, // defaults+overrides, then refined\ncalendarOptionOverrides, // overrides only!, unrefined :(\ntheme, viewSpecs, calendarApi) {\n let isRtl = calendarOptions.direction === 'rtl';\n let calendarCustomButtons = calendarOptions.customButtons || {};\n let calendarButtonTextOverrides = calendarOptionOverrides.buttonText || {};\n let calendarButtonText = calendarOptions.buttonText || {};\n let calendarButtonHintOverrides = calendarOptionOverrides.buttonHints || {};\n let calendarButtonHints = calendarOptions.buttonHints || {};\n let sectionSubstrs = sectionStr ? sectionStr.split(' ') : [];\n let viewsWithButtons = [];\n let hasTitle = false;\n let widgets = sectionSubstrs.map((buttonGroupStr) => (buttonGroupStr.split(',').map((buttonName) => {\n if (buttonName === 'title') {\n hasTitle = true;\n return { buttonName };\n }\n let customButtonProps;\n let viewSpec;\n let buttonClick;\n let buttonIcon; // only one of these will be set\n let buttonText; // \"\n let buttonHint;\n // ^ for the title=\"\" attribute, for accessibility\n if ((customButtonProps = calendarCustomButtons[buttonName])) {\n buttonClick = (ev) => {\n if (customButtonProps.click) {\n customButtonProps.click.call(ev.target, ev, ev.target); // TODO: use Calendar this context?\n }\n };\n (buttonIcon = theme.getCustomButtonIconClass(customButtonProps)) ||\n (buttonIcon = theme.getIconClass(buttonName, isRtl)) ||\n (buttonText = customButtonProps.text);\n buttonHint = customButtonProps.hint || customButtonProps.text;\n }\n else if ((viewSpec = viewSpecs[buttonName])) {\n viewsWithButtons.push(buttonName);\n buttonClick = () => {\n calendarApi.changeView(buttonName);\n };\n (buttonText = viewSpec.buttonTextOverride) ||\n (buttonIcon = theme.getIconClass(buttonName, isRtl)) ||\n (buttonText = viewSpec.buttonTextDefault);\n let textFallback = viewSpec.buttonTextOverride ||\n viewSpec.buttonTextDefault;\n buttonHint = formatWithOrdinals(viewSpec.buttonTitleOverride ||\n viewSpec.buttonTitleDefault ||\n calendarOptions.viewHint, [textFallback, buttonName], // view-name = buttonName\n textFallback);\n }\n else if (calendarApi[buttonName]) { // a calendarApi method\n buttonClick = () => {\n calendarApi[buttonName]();\n };\n (buttonText = calendarButtonTextOverrides[buttonName]) ||\n (buttonIcon = theme.getIconClass(buttonName, isRtl)) ||\n (buttonText = calendarButtonText[buttonName]); // everything else is considered default\n if (buttonName === 'prevYear' || buttonName === 'nextYear') {\n let prevOrNext = buttonName === 'prevYear' ? 'prev' : 'next';\n buttonHint = formatWithOrdinals(calendarButtonHintOverrides[prevOrNext] ||\n calendarButtonHints[prevOrNext], [\n calendarButtonText.year || 'year',\n 'year',\n ], calendarButtonText[buttonName]);\n }\n else {\n buttonHint = (navUnit) => formatWithOrdinals(calendarButtonHintOverrides[buttonName] ||\n calendarButtonHints[buttonName], [\n calendarButtonText[navUnit] || navUnit,\n navUnit,\n ], calendarButtonText[buttonName]);\n }\n }\n return { buttonName, buttonClick, buttonIcon, buttonText, buttonHint };\n })));\n return { widgets, viewsWithButtons, hasTitle };\n}\n\n// always represents the current view. otherwise, it'd need to change value every time date changes\nclass ViewImpl {\n constructor(type, getCurrentData, dateEnv) {\n this.type = type;\n this.getCurrentData = getCurrentData;\n this.dateEnv = dateEnv;\n }\n get calendar() {\n return this.getCurrentData().calendarApi;\n }\n get title() {\n return this.getCurrentData().viewTitle;\n }\n get activeStart() {\n return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.start);\n }\n get activeEnd() {\n return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.end);\n }\n get currentStart() {\n return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.start);\n }\n get currentEnd() {\n return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.end);\n }\n getOption(name) {\n return this.getCurrentData().options[name]; // are the view-specific options\n }\n}\n\nlet eventSourceDef$2 = {\n ignoreRange: true,\n parseMeta(refined) {\n if (Array.isArray(refined.events)) {\n return refined.events;\n }\n return null;\n },\n fetch(arg, successCallback) {\n successCallback({\n rawEvents: arg.eventSource.meta,\n });\n },\n};\nconst arrayEventSourcePlugin = createPlugin({\n name: 'array-event-source',\n eventSourceDefs: [eventSourceDef$2],\n});\n\nlet eventSourceDef$1 = {\n parseMeta(refined) {\n if (typeof refined.events === 'function') {\n return refined.events;\n }\n return null;\n },\n fetch(arg, successCallback, errorCallback) {\n const { dateEnv } = arg.context;\n const func = arg.eventSource.meta;\n unpromisify(func.bind(null, buildRangeApiWithTimeZone(arg.range, dateEnv)), (rawEvents) => successCallback({ rawEvents }), errorCallback);\n },\n};\nconst funcEventSourcePlugin = createPlugin({\n name: 'func-event-source',\n eventSourceDefs: [eventSourceDef$1],\n});\n\nconst JSON_FEED_EVENT_SOURCE_REFINERS = {\n method: String,\n extraParams: identity,\n startParam: String,\n endParam: String,\n timeZoneParam: String,\n};\n\nlet eventSourceDef = {\n parseMeta(refined) {\n if (refined.url && (refined.format === 'json' || !refined.format)) {\n return {\n url: refined.url,\n format: 'json',\n method: (refined.method || 'GET').toUpperCase(),\n extraParams: refined.extraParams,\n startParam: refined.startParam,\n endParam: refined.endParam,\n timeZoneParam: refined.timeZoneParam,\n };\n }\n return null;\n },\n fetch(arg, successCallback, errorCallback) {\n const { meta } = arg.eventSource;\n const requestParams = buildRequestParams(meta, arg.range, arg.context);\n requestJson(meta.method, meta.url, requestParams).then(([rawEvents, response]) => {\n successCallback({ rawEvents, response });\n }, errorCallback);\n },\n};\nconst jsonFeedEventSourcePlugin = createPlugin({\n name: 'json-event-source',\n eventSourceRefiners: JSON_FEED_EVENT_SOURCE_REFINERS,\n eventSourceDefs: [eventSourceDef],\n});\nfunction buildRequestParams(meta, range, context) {\n let { dateEnv, options } = context;\n let startParam;\n let endParam;\n let timeZoneParam;\n let customRequestParams;\n let params = {};\n startParam = meta.startParam;\n if (startParam == null) {\n startParam = options.startParam;\n }\n endParam = meta.endParam;\n if (endParam == null) {\n endParam = options.endParam;\n }\n timeZoneParam = meta.timeZoneParam;\n if (timeZoneParam == null) {\n timeZoneParam = options.timeZoneParam;\n }\n // retrieve any outbound GET/POST data from the options\n if (typeof meta.extraParams === 'function') {\n // supplied as a function that returns a key/value object\n customRequestParams = meta.extraParams();\n }\n else {\n // probably supplied as a straight key/value object\n customRequestParams = meta.extraParams || {};\n }\n Object.assign(params, customRequestParams);\n params[startParam] = dateEnv.formatIso(range.start);\n params[endParam] = dateEnv.formatIso(range.end);\n if (dateEnv.timeZone !== 'local') {\n params[timeZoneParam] = dateEnv.timeZone;\n }\n return params;\n}\n\nconst SIMPLE_RECURRING_REFINERS = {\n daysOfWeek: identity,\n startTime: createDuration,\n endTime: createDuration,\n duration: createDuration,\n startRecur: identity,\n endRecur: identity,\n};\n\nlet recurring = {\n parse(refined, dateEnv) {\n if (refined.daysOfWeek || refined.startTime || refined.endTime || refined.startRecur || refined.endRecur) {\n let recurringData = {\n daysOfWeek: refined.daysOfWeek || null,\n startTime: refined.startTime || null,\n endTime: refined.endTime || null,\n startRecur: refined.startRecur ? dateEnv.createMarker(refined.startRecur) : null,\n endRecur: refined.endRecur ? dateEnv.createMarker(refined.endRecur) : null,\n };\n let duration;\n if (refined.duration) {\n duration = refined.duration;\n }\n if (!duration && refined.startTime && refined.endTime) {\n duration = subtractDurations(refined.endTime, refined.startTime);\n }\n return {\n allDayGuess: Boolean(!refined.startTime && !refined.endTime),\n duration,\n typeData: recurringData, // doesn't need endTime anymore but oh well\n };\n }\n return null;\n },\n expand(typeData, framingRange, dateEnv) {\n let clippedFramingRange = intersectRanges(framingRange, { start: typeData.startRecur, end: typeData.endRecur });\n if (clippedFramingRange) {\n return expandRanges(typeData.daysOfWeek, typeData.startTime, clippedFramingRange, dateEnv);\n }\n return [];\n },\n};\nconst simpleRecurringEventsPlugin = createPlugin({\n name: 'simple-recurring-event',\n recurringTypes: [recurring],\n eventRefiners: SIMPLE_RECURRING_REFINERS,\n});\nfunction expandRanges(daysOfWeek, startTime, framingRange, dateEnv) {\n let dowHash = daysOfWeek ? arrayToHash(daysOfWeek) : null;\n let dayMarker = startOfDay(framingRange.start);\n let endMarker = framingRange.end;\n let instanceStarts = [];\n while (dayMarker < endMarker) {\n let instanceStart;\n // if everyday, or this particular day-of-week\n if (!dowHash || dowHash[dayMarker.getUTCDay()]) {\n if (startTime) {\n instanceStart = dateEnv.add(dayMarker, startTime);\n }\n else {\n instanceStart = dayMarker;\n }\n instanceStarts.push(instanceStart);\n }\n dayMarker = addDays(dayMarker, 1);\n }\n return instanceStarts;\n}\n\nconst changeHandlerPlugin = createPlugin({\n name: 'change-handler',\n optionChangeHandlers: {\n events(events, context) {\n handleEventSources([events], context);\n },\n eventSources: handleEventSources,\n },\n});\n/*\nBUG: if `event` was supplied, all previously-given `eventSources` will be wiped out\n*/\nfunction handleEventSources(inputs, context) {\n let unfoundSources = hashValuesToArray(context.getCurrentData().eventSources);\n let newInputs = [];\n for (let input of inputs) {\n let inputFound = false;\n for (let i = 0; i < unfoundSources.length; i += 1) {\n if (unfoundSources[i]._raw === input) {\n unfoundSources.splice(i, 1); // delete\n inputFound = true;\n break;\n }\n }\n if (!inputFound) {\n newInputs.push(input);\n }\n }\n for (let unfoundSource of unfoundSources) {\n context.dispatch({\n type: 'REMOVE_EVENT_SOURCE',\n sourceId: unfoundSource.sourceId,\n });\n }\n for (let newInput of newInputs) {\n context.calendarApi.addEventSource(newInput);\n }\n}\n\nfunction handleDateProfile(dateProfile, context) {\n context.emitter.trigger('datesSet', Object.assign(Object.assign({}, buildRangeApiWithTimeZone(dateProfile.activeRange, context.dateEnv)), { view: context.viewApi }));\n}\n\nfunction handleEventStore(eventStore, context) {\n let { emitter } = context;\n if (emitter.hasHandlers('eventsSet')) {\n emitter.trigger('eventsSet', buildEventApis(eventStore, context));\n }\n}\n\n/*\nthis array is exposed on the root namespace so that UMD plugins can add to it.\nsee the rollup-bundles script.\n*/\nconst globalPlugins = [\n arrayEventSourcePlugin,\n funcEventSourcePlugin,\n jsonFeedEventSourcePlugin,\n simpleRecurringEventsPlugin,\n changeHandlerPlugin,\n createPlugin({\n name: 'misc',\n isLoadingFuncs: [\n (state) => computeEventSourcesLoading(state.eventSources),\n ],\n propSetHandlers: {\n dateProfile: handleDateProfile,\n eventStore: handleEventStore,\n },\n }),\n];\n\nclass TaskRunner {\n constructor(runTaskOption, drainedOption) {\n this.runTaskOption = runTaskOption;\n this.drainedOption = drainedOption;\n this.queue = [];\n this.delayedRunner = new DelayedRunner(this.drain.bind(this));\n }\n request(task, delay) {\n this.queue.push(task);\n this.delayedRunner.request(delay);\n }\n pause(scope) {\n this.delayedRunner.pause(scope);\n }\n resume(scope, force) {\n this.delayedRunner.resume(scope, force);\n }\n drain() {\n let { queue } = this;\n while (queue.length) {\n let completedTasks = [];\n let task;\n while ((task = queue.shift())) {\n this.runTask(task);\n completedTasks.push(task);\n }\n this.drained(completedTasks);\n } // keep going, in case new tasks were added in the drained handler\n }\n runTask(task) {\n if (this.runTaskOption) {\n this.runTaskOption(task);\n }\n }\n drained(completedTasks) {\n if (this.drainedOption) {\n this.drainedOption(completedTasks);\n }\n }\n}\n\n// Computes what the title at the top of the calendarApi should be for this view\nfunction buildTitle(dateProfile, viewOptions, dateEnv) {\n let range;\n // for views that span a large unit of time, show the proper interval, ignoring stray days before and after\n if (/^(year|month)$/.test(dateProfile.currentRangeUnit)) {\n range = dateProfile.currentRange;\n }\n else { // for day units or smaller, use the actual day range\n range = dateProfile.activeRange;\n }\n return dateEnv.formatRange(range.start, range.end, createFormatter(viewOptions.titleFormat || buildTitleFormat(dateProfile)), {\n isEndExclusive: dateProfile.isRangeAllDay,\n defaultSeparator: viewOptions.titleRangeSeparator,\n });\n}\n// Generates the format string that should be used to generate the title for the current date range.\n// Attempts to compute the most appropriate format if not explicitly specified with `titleFormat`.\nfunction buildTitleFormat(dateProfile) {\n let { currentRangeUnit } = dateProfile;\n if (currentRangeUnit === 'year') {\n return { year: 'numeric' };\n }\n if (currentRangeUnit === 'month') {\n return { year: 'numeric', month: 'long' }; // like \"September 2014\"\n }\n let days = diffWholeDays(dateProfile.currentRange.start, dateProfile.currentRange.end);\n if (days !== null && days > 1) {\n // multi-day range. shorter, like \"Sep 9 - 10 2014\"\n return { year: 'numeric', month: 'short', day: 'numeric' };\n }\n // one day. longer, like \"September 9 2014\"\n return { year: 'numeric', month: 'long', day: 'numeric' };\n}\n\n// in future refactor, do the redux-style function(state=initial) for initial-state\n// also, whatever is happening in constructor, have it happen in action queue too\nclass CalendarDataManager {\n constructor(props) {\n this.computeOptionsData = memoize(this._computeOptionsData);\n this.computeCurrentViewData = memoize(this._computeCurrentViewData);\n this.organizeRawLocales = memoize(organizeRawLocales);\n this.buildLocale = memoize(buildLocale);\n this.buildPluginHooks = buildBuildPluginHooks();\n this.buildDateEnv = memoize(buildDateEnv$1);\n this.buildTheme = memoize(buildTheme);\n this.parseToolbars = memoize(parseToolbars);\n this.buildViewSpecs = memoize(buildViewSpecs);\n this.buildDateProfileGenerator = memoizeObjArg(buildDateProfileGenerator);\n this.buildViewApi = memoize(buildViewApi);\n this.buildViewUiProps = memoizeObjArg(buildViewUiProps);\n this.buildEventUiBySource = memoize(buildEventUiBySource, isPropsEqual);\n this.buildEventUiBases = memoize(buildEventUiBases);\n this.parseContextBusinessHours = memoizeObjArg(parseContextBusinessHours);\n this.buildTitle = memoize(buildTitle);\n this.emitter = new Emitter();\n this.actionRunner = new TaskRunner(this._handleAction.bind(this), this.updateData.bind(this));\n this.currentCalendarOptionsInput = {};\n this.currentCalendarOptionsRefined = {};\n this.currentViewOptionsInput = {};\n this.currentViewOptionsRefined = {};\n this.currentCalendarOptionsRefiners = {};\n this.getCurrentData = () => this.data;\n this.dispatch = (action) => {\n this.actionRunner.request(action); // protects against recursive calls to _handleAction\n };\n this.props = props;\n this.actionRunner.pause();\n let dynamicOptionOverrides = {};\n let optionsData = this.computeOptionsData(props.optionOverrides, dynamicOptionOverrides, props.calendarApi);\n let currentViewType = optionsData.calendarOptions.initialView || optionsData.pluginHooks.initialView;\n let currentViewData = this.computeCurrentViewData(currentViewType, optionsData, props.optionOverrides, dynamicOptionOverrides);\n // wire things up\n // TODO: not DRY\n props.calendarApi.currentDataManager = this;\n this.emitter.setThisContext(props.calendarApi);\n this.emitter.setOptions(currentViewData.options);\n let currentDate = getInitialDate(optionsData.calendarOptions, optionsData.dateEnv);\n let dateProfile = currentViewData.dateProfileGenerator.build(currentDate);\n if (!rangeContainsMarker(dateProfile.activeRange, currentDate)) {\n currentDate = dateProfile.currentRange.start;\n }\n let calendarContext = {\n dateEnv: optionsData.dateEnv,\n options: optionsData.calendarOptions,\n pluginHooks: optionsData.pluginHooks,\n calendarApi: props.calendarApi,\n dispatch: this.dispatch,\n emitter: this.emitter,\n getCurrentData: this.getCurrentData,\n };\n // needs to be after setThisContext\n for (let callback of optionsData.pluginHooks.contextInit) {\n callback(calendarContext);\n }\n // NOT DRY\n let eventSources = initEventSources(optionsData.calendarOptions, dateProfile, calendarContext);\n let initialState = {\n dynamicOptionOverrides,\n currentViewType,\n currentDate,\n dateProfile,\n businessHours: this.parseContextBusinessHours(calendarContext),\n eventSources,\n eventUiBases: {},\n eventStore: createEmptyEventStore(),\n renderableEventStore: createEmptyEventStore(),\n dateSelection: null,\n eventSelection: '',\n eventDrag: null,\n eventResize: null,\n selectionConfig: this.buildViewUiProps(calendarContext).selectionConfig,\n };\n let contextAndState = Object.assign(Object.assign({}, calendarContext), initialState);\n for (let reducer of optionsData.pluginHooks.reducers) {\n Object.assign(initialState, reducer(null, null, contextAndState));\n }\n if (computeIsLoading(initialState, calendarContext)) {\n this.emitter.trigger('loading', true); // NOT DRY\n }\n this.state = initialState;\n this.updateData();\n this.actionRunner.resume();\n }\n resetOptions(optionOverrides, append) {\n let { props } = this;\n props.optionOverrides = append\n ? Object.assign(Object.assign({}, props.optionOverrides), optionOverrides) : optionOverrides;\n this.actionRunner.request({\n type: 'NOTHING',\n });\n }\n _handleAction(action) {\n let { props, state, emitter } = this;\n let dynamicOptionOverrides = reduceDynamicOptionOverrides(state.dynamicOptionOverrides, action);\n let optionsData = this.computeOptionsData(props.optionOverrides, dynamicOptionOverrides, props.calendarApi);\n let currentViewType = reduceViewType(state.currentViewType, action);\n let currentViewData = this.computeCurrentViewData(currentViewType, optionsData, props.optionOverrides, dynamicOptionOverrides);\n // wire things up\n // TODO: not DRY\n props.calendarApi.currentDataManager = this;\n emitter.setThisContext(props.calendarApi);\n emitter.setOptions(currentViewData.options);\n let calendarContext = {\n dateEnv: optionsData.dateEnv,\n options: optionsData.calendarOptions,\n pluginHooks: optionsData.pluginHooks,\n calendarApi: props.calendarApi,\n dispatch: this.dispatch,\n emitter,\n getCurrentData: this.getCurrentData,\n };\n let { currentDate, dateProfile } = state;\n if (this.data && this.data.dateProfileGenerator !== currentViewData.dateProfileGenerator) { // hack\n dateProfile = currentViewData.dateProfileGenerator.build(currentDate);\n }\n currentDate = reduceCurrentDate(currentDate, action);\n dateProfile = reduceDateProfile(dateProfile, action, currentDate, currentViewData.dateProfileGenerator);\n if (action.type === 'PREV' || // TODO: move this logic into DateProfileGenerator\n action.type === 'NEXT' || // \"\n !rangeContainsMarker(dateProfile.currentRange, currentDate)) {\n currentDate = dateProfile.currentRange.start;\n }\n let eventSources = reduceEventSources(state.eventSources, action, dateProfile, calendarContext);\n let eventStore = reduceEventStore(state.eventStore, action, eventSources, dateProfile, calendarContext);\n let isEventsLoading = computeEventSourcesLoading(eventSources); // BAD. also called in this func in computeIsLoading\n let renderableEventStore = (isEventsLoading && !currentViewData.options.progressiveEventRendering) ?\n (state.renderableEventStore || eventStore) : // try from previous state\n eventStore;\n let { eventUiSingleBase, selectionConfig } = this.buildViewUiProps(calendarContext); // will memoize obj\n let eventUiBySource = this.buildEventUiBySource(eventSources);\n let eventUiBases = this.buildEventUiBases(renderableEventStore.defs, eventUiSingleBase, eventUiBySource);\n let newState = {\n dynamicOptionOverrides,\n currentViewType,\n currentDate,\n dateProfile,\n eventSources,\n eventStore,\n renderableEventStore,\n selectionConfig,\n eventUiBases,\n businessHours: this.parseContextBusinessHours(calendarContext),\n dateSelection: reduceDateSelection(state.dateSelection, action),\n eventSelection: reduceSelectedEvent(state.eventSelection, action),\n eventDrag: reduceEventDrag(state.eventDrag, action),\n eventResize: reduceEventResize(state.eventResize, action),\n };\n let contextAndState = Object.assign(Object.assign({}, calendarContext), newState);\n for (let reducer of optionsData.pluginHooks.reducers) {\n Object.assign(newState, reducer(state, action, contextAndState)); // give the OLD state, for old value\n }\n let wasLoading = computeIsLoading(state, calendarContext);\n let isLoading = computeIsLoading(newState, calendarContext);\n // TODO: use propSetHandlers in plugin system\n if (!wasLoading && isLoading) {\n emitter.trigger('loading', true);\n }\n else if (wasLoading && !isLoading) {\n emitter.trigger('loading', false);\n }\n this.state = newState;\n if (props.onAction) {\n props.onAction(action);\n }\n }\n updateData() {\n let { props, state } = this;\n let oldData = this.data;\n let optionsData = this.computeOptionsData(props.optionOverrides, state.dynamicOptionOverrides, props.calendarApi);\n let currentViewData = this.computeCurrentViewData(state.currentViewType, optionsData, props.optionOverrides, state.dynamicOptionOverrides);\n let data = this.data = Object.assign(Object.assign(Object.assign({ viewTitle: this.buildTitle(state.dateProfile, currentViewData.options, optionsData.dateEnv), calendarApi: props.calendarApi, dispatch: this.dispatch, emitter: this.emitter, getCurrentData: this.getCurrentData }, optionsData), currentViewData), state);\n let changeHandlers = optionsData.pluginHooks.optionChangeHandlers;\n let oldCalendarOptions = oldData && oldData.calendarOptions;\n let newCalendarOptions = optionsData.calendarOptions;\n if (oldCalendarOptions && oldCalendarOptions !== newCalendarOptions) {\n if (oldCalendarOptions.timeZone !== newCalendarOptions.timeZone) {\n // hack\n state.eventSources = data.eventSources = reduceEventSourcesNewTimeZone(data.eventSources, state.dateProfile, data);\n state.eventStore = data.eventStore = rezoneEventStoreDates(data.eventStore, oldData.dateEnv, data.dateEnv);\n }\n for (let optionName in changeHandlers) {\n if (oldCalendarOptions[optionName] !== newCalendarOptions[optionName]) {\n changeHandlers[optionName](newCalendarOptions[optionName], data);\n }\n }\n }\n if (props.onData) {\n props.onData(data);\n }\n }\n _computeOptionsData(optionOverrides, dynamicOptionOverrides, calendarApi) {\n // TODO: blacklist options that are handled by optionChangeHandlers\n let { refinedOptions, pluginHooks, localeDefaults, availableLocaleData, extra, } = this.processRawCalendarOptions(optionOverrides, dynamicOptionOverrides);\n warnUnknownOptions(extra);\n let dateEnv = this.buildDateEnv(refinedOptions.timeZone, refinedOptions.locale, refinedOptions.weekNumberCalculation, refinedOptions.firstDay, refinedOptions.weekText, pluginHooks, availableLocaleData, refinedOptions.defaultRangeSeparator);\n let viewSpecs = this.buildViewSpecs(pluginHooks.views, optionOverrides, dynamicOptionOverrides, localeDefaults);\n let theme = this.buildTheme(refinedOptions, pluginHooks);\n let toolbarConfig = this.parseToolbars(refinedOptions, optionOverrides, theme, viewSpecs, calendarApi);\n return {\n calendarOptions: refinedOptions,\n pluginHooks,\n dateEnv,\n viewSpecs,\n theme,\n toolbarConfig,\n localeDefaults,\n availableRawLocales: availableLocaleData.map,\n };\n }\n // always called from behind a memoizer\n processRawCalendarOptions(optionOverrides, dynamicOptionOverrides) {\n let { locales, locale } = mergeRawOptions([\n BASE_OPTION_DEFAULTS,\n optionOverrides,\n dynamicOptionOverrides,\n ]);\n let availableLocaleData = this.organizeRawLocales(locales);\n let availableRawLocales = availableLocaleData.map;\n let localeDefaults = this.buildLocale(locale || availableLocaleData.defaultCode, availableRawLocales).options;\n let pluginHooks = this.buildPluginHooks(optionOverrides.plugins || [], globalPlugins);\n let refiners = this.currentCalendarOptionsRefiners = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, BASE_OPTION_REFINERS), CALENDAR_LISTENER_REFINERS), CALENDAR_OPTION_REFINERS), pluginHooks.listenerRefiners), pluginHooks.optionRefiners);\n let extra = {};\n let raw = mergeRawOptions([\n BASE_OPTION_DEFAULTS,\n localeDefaults,\n optionOverrides,\n dynamicOptionOverrides,\n ]);\n let refined = {};\n let currentRaw = this.currentCalendarOptionsInput;\n let currentRefined = this.currentCalendarOptionsRefined;\n let anyChanges = false;\n for (let optionName in raw) {\n if (optionName !== 'plugins') { // because plugins is special-cased\n if (raw[optionName] === currentRaw[optionName] ||\n (COMPLEX_OPTION_COMPARATORS[optionName] &&\n (optionName in currentRaw) &&\n COMPLEX_OPTION_COMPARATORS[optionName](currentRaw[optionName], raw[optionName]))) {\n refined[optionName] = currentRefined[optionName];\n }\n else if (refiners[optionName]) {\n refined[optionName] = refiners[optionName](raw[optionName]);\n anyChanges = true;\n }\n else {\n extra[optionName] = currentRaw[optionName];\n }\n }\n }\n if (anyChanges) {\n this.currentCalendarOptionsInput = raw;\n this.currentCalendarOptionsRefined = refined;\n }\n return {\n rawOptions: this.currentCalendarOptionsInput,\n refinedOptions: this.currentCalendarOptionsRefined,\n pluginHooks,\n availableLocaleData,\n localeDefaults,\n extra,\n };\n }\n _computeCurrentViewData(viewType, optionsData, optionOverrides, dynamicOptionOverrides) {\n let viewSpec = optionsData.viewSpecs[viewType];\n if (!viewSpec) {\n throw new Error(`viewType \"${viewType}\" is not available. Please make sure you've loaded all neccessary plugins`);\n }\n let { refinedOptions, extra } = this.processRawViewOptions(viewSpec, optionsData.pluginHooks, optionsData.localeDefaults, optionOverrides, dynamicOptionOverrides);\n warnUnknownOptions(extra);\n let dateProfileGenerator = this.buildDateProfileGenerator({\n dateProfileGeneratorClass: viewSpec.optionDefaults.dateProfileGeneratorClass,\n duration: viewSpec.duration,\n durationUnit: viewSpec.durationUnit,\n usesMinMaxTime: viewSpec.optionDefaults.usesMinMaxTime,\n dateEnv: optionsData.dateEnv,\n calendarApi: this.props.calendarApi,\n slotMinTime: refinedOptions.slotMinTime,\n slotMaxTime: refinedOptions.slotMaxTime,\n showNonCurrentDates: refinedOptions.showNonCurrentDates,\n dayCount: refinedOptions.dayCount,\n dateAlignment: refinedOptions.dateAlignment,\n dateIncrement: refinedOptions.dateIncrement,\n hiddenDays: refinedOptions.hiddenDays,\n weekends: refinedOptions.weekends,\n nowInput: refinedOptions.now,\n validRangeInput: refinedOptions.validRange,\n visibleRangeInput: refinedOptions.visibleRange,\n monthMode: refinedOptions.monthMode,\n fixedWeekCount: refinedOptions.fixedWeekCount,\n });\n let viewApi = this.buildViewApi(viewType, this.getCurrentData, optionsData.dateEnv);\n return { viewSpec, options: refinedOptions, dateProfileGenerator, viewApi };\n }\n processRawViewOptions(viewSpec, pluginHooks, localeDefaults, optionOverrides, dynamicOptionOverrides) {\n let raw = mergeRawOptions([\n BASE_OPTION_DEFAULTS,\n viewSpec.optionDefaults,\n localeDefaults,\n optionOverrides,\n viewSpec.optionOverrides,\n dynamicOptionOverrides,\n ]);\n let refiners = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, BASE_OPTION_REFINERS), CALENDAR_LISTENER_REFINERS), CALENDAR_OPTION_REFINERS), VIEW_OPTION_REFINERS), pluginHooks.listenerRefiners), pluginHooks.optionRefiners);\n let refined = {};\n let currentRaw = this.currentViewOptionsInput;\n let currentRefined = this.currentViewOptionsRefined;\n let anyChanges = false;\n let extra = {};\n for (let optionName in raw) {\n if (raw[optionName] === currentRaw[optionName] ||\n (COMPLEX_OPTION_COMPARATORS[optionName] &&\n COMPLEX_OPTION_COMPARATORS[optionName](raw[optionName], currentRaw[optionName]))) {\n refined[optionName] = currentRefined[optionName];\n }\n else {\n if (raw[optionName] === this.currentCalendarOptionsInput[optionName] ||\n (COMPLEX_OPTION_COMPARATORS[optionName] &&\n COMPLEX_OPTION_COMPARATORS[optionName](raw[optionName], this.currentCalendarOptionsInput[optionName]))) {\n if (optionName in this.currentCalendarOptionsRefined) { // might be an \"extra\" prop\n refined[optionName] = this.currentCalendarOptionsRefined[optionName];\n }\n }\n else if (refiners[optionName]) {\n refined[optionName] = refiners[optionName](raw[optionName]);\n }\n else {\n extra[optionName] = raw[optionName];\n }\n anyChanges = true;\n }\n }\n if (anyChanges) {\n this.currentViewOptionsInput = raw;\n this.currentViewOptionsRefined = refined;\n }\n return {\n rawOptions: this.currentViewOptionsInput,\n refinedOptions: this.currentViewOptionsRefined,\n extra,\n };\n }\n}\nfunction buildDateEnv$1(timeZone, explicitLocale, weekNumberCalculation, firstDay, weekText, pluginHooks, availableLocaleData, defaultSeparator) {\n let locale = buildLocale(explicitLocale || availableLocaleData.defaultCode, availableLocaleData.map);\n return new DateEnv({\n calendarSystem: 'gregory',\n timeZone,\n namedTimeZoneImpl: pluginHooks.namedTimeZonedImpl,\n locale,\n weekNumberCalculation,\n firstDay,\n weekText,\n cmdFormatter: pluginHooks.cmdFormatter,\n defaultSeparator,\n });\n}\nfunction buildTheme(options, pluginHooks) {\n let ThemeClass = pluginHooks.themeClasses[options.themeSystem] || StandardTheme;\n return new ThemeClass(options);\n}\nfunction buildDateProfileGenerator(props) {\n let DateProfileGeneratorClass = props.dateProfileGeneratorClass || DateProfileGenerator;\n return new DateProfileGeneratorClass(props);\n}\nfunction buildViewApi(type, getCurrentData, dateEnv) {\n return new ViewImpl(type, getCurrentData, dateEnv);\n}\nfunction buildEventUiBySource(eventSources) {\n return mapHash(eventSources, (eventSource) => eventSource.ui);\n}\nfunction buildEventUiBases(eventDefs, eventUiSingleBase, eventUiBySource) {\n let eventUiBases = { '': eventUiSingleBase };\n for (let defId in eventDefs) {\n let def = eventDefs[defId];\n if (def.sourceId && eventUiBySource[def.sourceId]) {\n eventUiBases[defId] = eventUiBySource[def.sourceId];\n }\n }\n return eventUiBases;\n}\nfunction buildViewUiProps(calendarContext) {\n let { options } = calendarContext;\n return {\n eventUiSingleBase: createEventUi({\n display: options.eventDisplay,\n editable: options.editable,\n startEditable: options.eventStartEditable,\n durationEditable: options.eventDurationEditable,\n constraint: options.eventConstraint,\n overlap: typeof options.eventOverlap === 'boolean' ? options.eventOverlap : undefined,\n allow: options.eventAllow,\n backgroundColor: options.eventBackgroundColor,\n borderColor: options.eventBorderColor,\n textColor: options.eventTextColor,\n color: options.eventColor,\n // classNames: options.eventClassNames // render hook will handle this\n }, calendarContext),\n selectionConfig: createEventUi({\n constraint: options.selectConstraint,\n overlap: typeof options.selectOverlap === 'boolean' ? options.selectOverlap : undefined,\n allow: options.selectAllow,\n }, calendarContext),\n };\n}\nfunction computeIsLoading(state, context) {\n for (let isLoadingFunc of context.pluginHooks.isLoadingFuncs) {\n if (isLoadingFunc(state)) {\n return true;\n }\n }\n return false;\n}\nfunction parseContextBusinessHours(calendarContext) {\n return parseBusinessHours(calendarContext.options.businessHours, calendarContext);\n}\nfunction warnUnknownOptions(options, viewName) {\n for (let optionName in options) {\n console.warn(`Unknown option '${optionName}'` +\n (viewName ? ` for view '${viewName}'` : ''));\n }\n}\n\nclass ToolbarSection extends BaseComponent {\n render() {\n let children = this.props.widgetGroups.map((widgetGroup) => this.renderWidgetGroup(widgetGroup));\n return createElement('div', { className: 'fc-toolbar-chunk' }, ...children);\n }\n renderWidgetGroup(widgetGroup) {\n let { props } = this;\n let { theme } = this.context;\n let children = [];\n let isOnlyButtons = true;\n for (let widget of widgetGroup) {\n let { buttonName, buttonClick, buttonText, buttonIcon, buttonHint } = widget;\n if (buttonName === 'title') {\n isOnlyButtons = false;\n children.push(createElement(\"h2\", { className: \"fc-toolbar-title\", id: props.titleId }, props.title));\n }\n else {\n let isPressed = buttonName === props.activeButton;\n let isDisabled = (!props.isTodayEnabled && buttonName === 'today') ||\n (!props.isPrevEnabled && buttonName === 'prev') ||\n (!props.isNextEnabled && buttonName === 'next');\n let buttonClasses = [`fc-${buttonName}-button`, theme.getClass('button')];\n if (isPressed) {\n buttonClasses.push(theme.getClass('buttonActive'));\n }\n children.push(createElement(\"button\", { type: \"button\", title: typeof buttonHint === 'function' ? buttonHint(props.navUnit) : buttonHint, disabled: isDisabled, \"aria-pressed\": isPressed, className: buttonClasses.join(' '), onClick: buttonClick }, buttonText || (buttonIcon ? createElement(\"span\", { className: buttonIcon }) : '')));\n }\n }\n if (children.length > 1) {\n let groupClassName = (isOnlyButtons && theme.getClass('buttonGroup')) || '';\n return createElement('div', { className: groupClassName }, ...children);\n }\n return children[0];\n }\n}\n\nclass Toolbar extends BaseComponent {\n render() {\n let { model, extraClassName } = this.props;\n let forceLtr = false;\n let startContent;\n let endContent;\n let sectionWidgets = model.sectionWidgets;\n let centerContent = sectionWidgets.center;\n if (sectionWidgets.left) {\n forceLtr = true;\n startContent = sectionWidgets.left;\n }\n else {\n startContent = sectionWidgets.start;\n }\n if (sectionWidgets.right) {\n forceLtr = true;\n endContent = sectionWidgets.right;\n }\n else {\n endContent = sectionWidgets.end;\n }\n let classNames = [\n extraClassName || '',\n 'fc-toolbar',\n forceLtr ? 'fc-toolbar-ltr' : '',\n ];\n return (createElement(\"div\", { className: classNames.join(' ') },\n this.renderSection('start', startContent || []),\n this.renderSection('center', centerContent || []),\n this.renderSection('end', endContent || [])));\n }\n renderSection(key, widgetGroups) {\n let { props } = this;\n return (createElement(ToolbarSection, { key: key, widgetGroups: widgetGroups, title: props.title, navUnit: props.navUnit, activeButton: props.activeButton, isTodayEnabled: props.isTodayEnabled, isPrevEnabled: props.isPrevEnabled, isNextEnabled: props.isNextEnabled, titleId: props.titleId }));\n }\n}\n\n// TODO: do function component?\nclass ViewContainer extends BaseComponent {\n constructor() {\n super(...arguments);\n this.state = {\n availableWidth: null,\n };\n this.handleEl = (el) => {\n this.el = el;\n setRef(this.props.elRef, el);\n this.updateAvailableWidth();\n };\n this.handleResize = () => {\n this.updateAvailableWidth();\n };\n }\n render() {\n let { props, state } = this;\n let { aspectRatio } = props;\n let classNames = [\n 'fc-view-harness',\n (aspectRatio || props.liquid || props.height)\n ? 'fc-view-harness-active' // harness controls the height\n : 'fc-view-harness-passive', // let the view do the height\n ];\n let height = '';\n let paddingBottom = '';\n if (aspectRatio) {\n if (state.availableWidth !== null) {\n height = state.availableWidth / aspectRatio;\n }\n else {\n // while waiting to know availableWidth, we can't set height to *zero*\n // because will cause lots of unnecessary scrollbars within scrollgrid.\n // BETTER: don't start rendering ANYTHING yet until we know container width\n // NOTE: why not always use paddingBottom? Causes height oscillation (issue 5606)\n paddingBottom = `${(1 / aspectRatio) * 100}%`;\n }\n }\n else {\n height = props.height || '';\n }\n return (createElement(\"div\", { \"aria-labelledby\": props.labeledById, ref: this.handleEl, className: classNames.join(' '), style: { height, paddingBottom } }, props.children));\n }\n componentDidMount() {\n this.context.addResizeHandler(this.handleResize);\n }\n componentWillUnmount() {\n this.context.removeResizeHandler(this.handleResize);\n }\n updateAvailableWidth() {\n if (this.el && // needed. but why?\n this.props.aspectRatio // aspectRatio is the only height setting that needs availableWidth\n ) {\n this.setState({ availableWidth: this.el.offsetWidth });\n }\n }\n}\n\n/*\nDetects when the user clicks on an event within a DateComponent\n*/\nclass EventClicking extends Interaction {\n constructor(settings) {\n super(settings);\n this.handleSegClick = (ev, segEl) => {\n let { component } = this;\n let { context } = component;\n let seg = getElSeg(segEl);\n if (seg && // might be the
surrounding the more link\n component.isValidSegDownEl(ev.target)) {\n // our way to simulate a link click for elements that can't be tags\n // grab before trigger fired in case trigger trashes DOM thru rerendering\n let hasUrlContainer = elementClosest(ev.target, '.fc-event-forced-url');\n let url = hasUrlContainer ? hasUrlContainer.querySelector('a[href]').href : '';\n context.emitter.trigger('eventClick', {\n el: segEl,\n event: new EventImpl(component.context, seg.eventRange.def, seg.eventRange.instance),\n jsEvent: ev,\n view: context.viewApi,\n });\n if (url && !ev.defaultPrevented) {\n window.location.href = url;\n }\n }\n };\n this.destroy = listenBySelector(settings.el, 'click', '.fc-event', // on both fg and bg events\n this.handleSegClick);\n }\n}\n\n/*\nTriggers events and adds/removes core classNames when the user's pointer\nenters/leaves event-elements of a component.\n*/\nclass EventHovering extends Interaction {\n constructor(settings) {\n super(settings);\n // for simulating an eventMouseLeave when the event el is destroyed while mouse is over it\n this.handleEventElRemove = (el) => {\n if (el === this.currentSegEl) {\n this.handleSegLeave(null, this.currentSegEl);\n }\n };\n this.handleSegEnter = (ev, segEl) => {\n if (getElSeg(segEl)) { // TODO: better way to make sure not hovering over more+ link or its wrapper\n this.currentSegEl = segEl;\n this.triggerEvent('eventMouseEnter', ev, segEl);\n }\n };\n this.handleSegLeave = (ev, segEl) => {\n if (this.currentSegEl) {\n this.currentSegEl = null;\n this.triggerEvent('eventMouseLeave', ev, segEl);\n }\n };\n this.removeHoverListeners = listenToHoverBySelector(settings.el, '.fc-event', // on both fg and bg events\n this.handleSegEnter, this.handleSegLeave);\n }\n destroy() {\n this.removeHoverListeners();\n }\n triggerEvent(publicEvName, ev, segEl) {\n let { component } = this;\n let { context } = component;\n let seg = getElSeg(segEl);\n if (!ev || component.isValidSegDownEl(ev.target)) {\n context.emitter.trigger(publicEvName, {\n el: segEl,\n event: new EventImpl(context, seg.eventRange.def, seg.eventRange.instance),\n jsEvent: ev,\n view: context.viewApi,\n });\n }\n }\n}\n\nclass CalendarContent extends PureComponent {\n constructor() {\n super(...arguments);\n this.buildViewContext = memoize(buildViewContext);\n this.buildViewPropTransformers = memoize(buildViewPropTransformers);\n this.buildToolbarProps = memoize(buildToolbarProps);\n this.headerRef = createRef();\n this.footerRef = createRef();\n this.interactionsStore = {};\n // eslint-disable-next-line\n this.state = {\n viewLabelId: getUniqueDomId(),\n };\n // Component Registration\n // -----------------------------------------------------------------------------------------------------------------\n this.registerInteractiveComponent = (component, settingsInput) => {\n let settings = parseInteractionSettings(component, settingsInput);\n let DEFAULT_INTERACTIONS = [\n EventClicking,\n EventHovering,\n ];\n let interactionClasses = DEFAULT_INTERACTIONS.concat(this.props.pluginHooks.componentInteractions);\n let interactions = interactionClasses.map((TheInteractionClass) => new TheInteractionClass(settings));\n this.interactionsStore[component.uid] = interactions;\n interactionSettingsStore[component.uid] = settings;\n };\n this.unregisterInteractiveComponent = (component) => {\n let listeners = this.interactionsStore[component.uid];\n if (listeners) {\n for (let listener of listeners) {\n listener.destroy();\n }\n delete this.interactionsStore[component.uid];\n }\n delete interactionSettingsStore[component.uid];\n };\n // Resizing\n // -----------------------------------------------------------------------------------------------------------------\n this.resizeRunner = new DelayedRunner(() => {\n this.props.emitter.trigger('_resize', true); // should window resizes be considered \"forced\" ?\n this.props.emitter.trigger('windowResize', { view: this.props.viewApi });\n });\n this.handleWindowResize = (ev) => {\n let { options } = this.props;\n if (options.handleWindowResize &&\n ev.target === window // avoid jqui events\n ) {\n this.resizeRunner.request(options.windowResizeDelay);\n }\n };\n }\n /*\n renders INSIDE of an outer div\n */\n render() {\n let { props } = this;\n let { toolbarConfig, options } = props;\n let toolbarProps = this.buildToolbarProps(props.viewSpec, props.dateProfile, props.dateProfileGenerator, props.currentDate, getNow(props.options.now, props.dateEnv), // TODO: use NowTimer????\n props.viewTitle);\n let viewVGrow = false;\n let viewHeight = '';\n let viewAspectRatio;\n if (props.isHeightAuto || props.forPrint) {\n viewHeight = '';\n }\n else if (options.height != null) {\n viewVGrow = true;\n }\n else if (options.contentHeight != null) {\n viewHeight = options.contentHeight;\n }\n else {\n viewAspectRatio = Math.max(options.aspectRatio, 0.5); // prevent from getting too tall\n }\n let viewContext = this.buildViewContext(props.viewSpec, props.viewApi, props.options, props.dateProfileGenerator, props.dateEnv, props.theme, props.pluginHooks, props.dispatch, props.getCurrentData, props.emitter, props.calendarApi, this.registerInteractiveComponent, this.unregisterInteractiveComponent);\n let viewLabelId = (toolbarConfig.header && toolbarConfig.header.hasTitle)\n ? this.state.viewLabelId\n : '';\n return (createElement(ViewContextType.Provider, { value: viewContext },\n toolbarConfig.header && (createElement(Toolbar, Object.assign({ ref: this.headerRef, extraClassName: \"fc-header-toolbar\", model: toolbarConfig.header, titleId: viewLabelId }, toolbarProps))),\n createElement(ViewContainer, { liquid: viewVGrow, height: viewHeight, aspectRatio: viewAspectRatio, labeledById: viewLabelId },\n this.renderView(props),\n this.buildAppendContent()),\n toolbarConfig.footer && (createElement(Toolbar, Object.assign({ ref: this.footerRef, extraClassName: \"fc-footer-toolbar\", model: toolbarConfig.footer, titleId: \"\" }, toolbarProps)))));\n }\n componentDidMount() {\n let { props } = this;\n this.calendarInteractions = props.pluginHooks.calendarInteractions\n .map((CalendarInteractionClass) => new CalendarInteractionClass(props));\n window.addEventListener('resize', this.handleWindowResize);\n let { propSetHandlers } = props.pluginHooks;\n for (let propName in propSetHandlers) {\n propSetHandlers[propName](props[propName], props);\n }\n }\n componentDidUpdate(prevProps) {\n let { props } = this;\n let { propSetHandlers } = props.pluginHooks;\n for (let propName in propSetHandlers) {\n if (props[propName] !== prevProps[propName]) {\n propSetHandlers[propName](props[propName], props);\n }\n }\n }\n componentWillUnmount() {\n window.removeEventListener('resize', this.handleWindowResize);\n this.resizeRunner.clear();\n for (let interaction of this.calendarInteractions) {\n interaction.destroy();\n }\n this.props.emitter.trigger('_unmount');\n }\n buildAppendContent() {\n let { props } = this;\n let children = props.pluginHooks.viewContainerAppends.map((buildAppendContent) => buildAppendContent(props));\n return createElement(Fragment, {}, ...children);\n }\n renderView(props) {\n let { pluginHooks } = props;\n let { viewSpec } = props;\n let viewProps = {\n dateProfile: props.dateProfile,\n businessHours: props.businessHours,\n eventStore: props.renderableEventStore,\n eventUiBases: props.eventUiBases,\n dateSelection: props.dateSelection,\n eventSelection: props.eventSelection,\n eventDrag: props.eventDrag,\n eventResize: props.eventResize,\n isHeightAuto: props.isHeightAuto,\n forPrint: props.forPrint,\n };\n let transformers = this.buildViewPropTransformers(pluginHooks.viewPropsTransformers);\n for (let transformer of transformers) {\n Object.assign(viewProps, transformer.transform(viewProps, props));\n }\n let ViewComponent = viewSpec.component;\n return (createElement(ViewComponent, Object.assign({}, viewProps)));\n }\n}\nfunction buildToolbarProps(viewSpec, dateProfile, dateProfileGenerator, currentDate, now, title) {\n // don't force any date-profiles to valid date profiles (the `false`) so that we can tell if it's invalid\n let todayInfo = dateProfileGenerator.build(now, undefined, false); // TODO: need `undefined` or else INFINITE LOOP for some reason\n let prevInfo = dateProfileGenerator.buildPrev(dateProfile, currentDate, false);\n let nextInfo = dateProfileGenerator.buildNext(dateProfile, currentDate, false);\n return {\n title,\n activeButton: viewSpec.type,\n navUnit: viewSpec.singleUnit,\n isTodayEnabled: todayInfo.isValid && !rangeContainsMarker(dateProfile.currentRange, now),\n isPrevEnabled: prevInfo.isValid,\n isNextEnabled: nextInfo.isValid,\n };\n}\n// Plugin\n// -----------------------------------------------------------------------------------------------------------------\nfunction buildViewPropTransformers(theClasses) {\n return theClasses.map((TheClass) => new TheClass());\n}\n\nclass Calendar extends CalendarImpl {\n constructor(el, optionOverrides = {}) {\n super();\n this.isRendering = false;\n this.isRendered = false;\n this.currentClassNames = [];\n this.customContentRenderId = 0;\n this.handleAction = (action) => {\n // actions we know we want to render immediately\n switch (action.type) {\n case 'SET_EVENT_DRAG':\n case 'SET_EVENT_RESIZE':\n this.renderRunner.tryDrain();\n }\n };\n this.handleData = (data) => {\n this.currentData = data;\n this.renderRunner.request(data.calendarOptions.rerenderDelay);\n };\n this.handleRenderRequest = () => {\n if (this.isRendering) {\n this.isRendered = true;\n let { currentData } = this;\n flushSync(() => {\n render(createElement(CalendarRoot, { options: currentData.calendarOptions, theme: currentData.theme, emitter: currentData.emitter }, (classNames, height, isHeightAuto, forPrint) => {\n this.setClassNames(classNames);\n this.setHeight(height);\n return (createElement(RenderId.Provider, { value: this.customContentRenderId },\n createElement(CalendarContent, Object.assign({ isHeightAuto: isHeightAuto, forPrint: forPrint }, currentData))));\n }), this.el);\n });\n }\n else if (this.isRendered) {\n this.isRendered = false;\n render(null, this.el);\n this.setClassNames([]);\n this.setHeight('');\n }\n };\n this.el = el;\n this.renderRunner = new DelayedRunner(this.handleRenderRequest);\n new CalendarDataManager({\n optionOverrides,\n calendarApi: this,\n onAction: this.handleAction,\n onData: this.handleData,\n });\n }\n render() {\n let wasRendering = this.isRendering;\n if (!wasRendering) {\n this.isRendering = true;\n }\n else {\n this.customContentRenderId += 1;\n }\n this.renderRunner.request();\n if (wasRendering) {\n this.updateSize();\n }\n }\n destroy() {\n if (this.isRendering) {\n this.isRendering = false;\n this.renderRunner.request();\n }\n }\n updateSize() {\n flushSync(() => {\n super.updateSize();\n });\n }\n batchRendering(func) {\n this.renderRunner.pause('batchRendering');\n func();\n this.renderRunner.resume('batchRendering');\n }\n pauseRendering() {\n this.renderRunner.pause('pauseRendering');\n }\n resumeRendering() {\n this.renderRunner.resume('pauseRendering', true);\n }\n resetOptions(optionOverrides, append) {\n this.currentDataManager.resetOptions(optionOverrides, append);\n }\n setClassNames(classNames) {\n if (!isArraysEqual(classNames, this.currentClassNames)) {\n let { classList } = this.el;\n for (let className of this.currentClassNames) {\n classList.remove(className);\n }\n for (let className of classNames) {\n classList.add(className);\n }\n this.currentClassNames = classNames;\n }\n }\n setHeight(height) {\n applyStyleProp(this.el, 'height', height);\n }\n}\n\nfunction formatDate(dateInput, options = {}) {\n let dateEnv = buildDateEnv(options);\n let formatter = createFormatter(options);\n let dateMeta = dateEnv.createMarkerMeta(dateInput);\n if (!dateMeta) { // TODO: warning?\n return '';\n }\n return dateEnv.format(dateMeta.marker, formatter, {\n forcedTzo: dateMeta.forcedTzo,\n });\n}\nfunction formatRange(startInput, endInput, options) {\n let dateEnv = buildDateEnv(typeof options === 'object' && options ? options : {}); // pass in if non-null object\n let formatter = createFormatter(options);\n let startMeta = dateEnv.createMarkerMeta(startInput);\n let endMeta = dateEnv.createMarkerMeta(endInput);\n if (!startMeta || !endMeta) { // TODO: warning?\n return '';\n }\n return dateEnv.formatRange(startMeta.marker, endMeta.marker, formatter, {\n forcedStartTzo: startMeta.forcedTzo,\n forcedEndTzo: endMeta.forcedTzo,\n isEndExclusive: options.isEndExclusive,\n defaultSeparator: BASE_OPTION_DEFAULTS.defaultRangeSeparator,\n });\n}\n// TODO: more DRY and optimized\nfunction buildDateEnv(settings) {\n let locale = buildLocale(settings.locale || 'en', organizeRawLocales([]).map); // TODO: don't hardcode 'en' everywhere\n return new DateEnv(Object.assign(Object.assign({ timeZone: BASE_OPTION_DEFAULTS.timeZone, calendarSystem: 'gregory' }, settings), { locale }));\n}\n\n// HELPERS\n/*\nif nextDayThreshold is specified, slicing is done in an all-day fashion.\nyou can get nextDayThreshold from context.nextDayThreshold\n*/\nfunction sliceEvents(props, allDay) {\n return sliceEventStore(props.eventStore, props.eventUiBases, props.dateProfile.activeRange, allDay ? props.nextDayThreshold : null).fg;\n}\n\nconst version = '6.0.2';\n\nexport { Calendar, createPlugin, formatDate, formatRange, globalLocales, globalPlugins, sliceEvents, version };\n",null,null,null,null,"import { DateComponent, getStickyHeaderDates, ViewContainer, SimpleScrollGrid, getStickyFooterScrollbar, renderScrollShim, createFormatter, BaseComponent, StandardEvent, buildSegTimeText, EventContainer, getSegAnchorAttrs, memoize, MoreLinkContainer, getSegMeta, getUniqueDomId, setRef, DayCellContainer, WeekNumberContainer, buildNavLinkAttrs, hasCustomDayCellContent, intersectRanges, addDays, SegHierarchy, buildEntryKey, intersectSpans, RefMap, sortEventSegs, isPropsEqual, buildEventRangeKey, BgEvent, renderFill, PositionCache, NowTimer, Slicer, DayHeader, DaySeriesModel, DayTableModel } from '@fullcalendar/core/internal.js';\nimport { createRef, createElement, Fragment } from '@fullcalendar/core/preact.js';\n\n/* An abstract class for the daygrid views, as well as month view. Renders one or more rows of day cells.\n----------------------------------------------------------------------------------------------------------------------*/\n// It is a manager for a Table subcomponent, which does most of the heavy lifting.\n// It is responsible for managing width/height.\nclass TableView extends DateComponent {\n constructor() {\n super(...arguments);\n this.headerElRef = createRef();\n }\n renderSimpleLayout(headerRowContent, bodyContent) {\n let { props, context } = this;\n let sections = [];\n let stickyHeaderDates = getStickyHeaderDates(context.options);\n if (headerRowContent) {\n sections.push({\n type: 'header',\n key: 'header',\n isSticky: stickyHeaderDates,\n chunk: {\n elRef: this.headerElRef,\n tableClassName: 'fc-col-header',\n rowContent: headerRowContent,\n },\n });\n }\n sections.push({\n type: 'body',\n key: 'body',\n liquid: true,\n chunk: { content: bodyContent },\n });\n return (createElement(ViewContainer, { elClasses: ['fc-daygrid'], viewSpec: context.viewSpec },\n createElement(SimpleScrollGrid, { liquid: !props.isHeightAuto && !props.forPrint, collapsibleWidth: props.forPrint, cols: [] /* TODO: make optional? */, sections: sections })));\n }\n renderHScrollLayout(headerRowContent, bodyContent, colCnt, dayMinWidth) {\n let ScrollGrid = this.context.pluginHooks.scrollGridImpl;\n if (!ScrollGrid) {\n throw new Error('No ScrollGrid implementation');\n }\n let { props, context } = this;\n let stickyHeaderDates = !props.forPrint && getStickyHeaderDates(context.options);\n let stickyFooterScrollbar = !props.forPrint && getStickyFooterScrollbar(context.options);\n let sections = [];\n if (headerRowContent) {\n sections.push({\n type: 'header',\n key: 'header',\n isSticky: stickyHeaderDates,\n chunks: [{\n key: 'main',\n elRef: this.headerElRef,\n tableClassName: 'fc-col-header',\n rowContent: headerRowContent,\n }],\n });\n }\n sections.push({\n type: 'body',\n key: 'body',\n liquid: true,\n chunks: [{\n key: 'main',\n content: bodyContent,\n }],\n });\n if (stickyFooterScrollbar) {\n sections.push({\n type: 'footer',\n key: 'footer',\n isSticky: true,\n chunks: [{\n key: 'main',\n content: renderScrollShim,\n }],\n });\n }\n return (createElement(ViewContainer, { elClasses: ['fc-daygrid'], viewSpec: context.viewSpec },\n createElement(ScrollGrid, { liquid: !props.isHeightAuto && !props.forPrint, collapsibleWidth: props.forPrint, colGroups: [{ cols: [{ span: colCnt, minWidth: dayMinWidth }] }], sections: sections })));\n }\n}\n\nfunction splitSegsByRow(segs, rowCnt) {\n let byRow = [];\n for (let i = 0; i < rowCnt; i += 1) {\n byRow[i] = [];\n }\n for (let seg of segs) {\n byRow[seg.row].push(seg);\n }\n return byRow;\n}\nfunction splitSegsByFirstCol(segs, colCnt) {\n let byCol = [];\n for (let i = 0; i < colCnt; i += 1) {\n byCol[i] = [];\n }\n for (let seg of segs) {\n byCol[seg.firstCol].push(seg);\n }\n return byCol;\n}\nfunction splitInteractionByRow(ui, rowCnt) {\n let byRow = [];\n if (!ui) {\n for (let i = 0; i < rowCnt; i += 1) {\n byRow[i] = null;\n }\n }\n else {\n for (let i = 0; i < rowCnt; i += 1) {\n byRow[i] = {\n affectedInstances: ui.affectedInstances,\n isEvent: ui.isEvent,\n segs: [],\n };\n }\n for (let seg of ui.segs) {\n byRow[seg.row].segs.push(seg);\n }\n }\n return byRow;\n}\n\nconst DEFAULT_TABLE_EVENT_TIME_FORMAT = createFormatter({\n hour: 'numeric',\n minute: '2-digit',\n omitZeroMinute: true,\n meridiem: 'narrow',\n});\nfunction hasListItemDisplay(seg) {\n let { display } = seg.eventRange.ui;\n return display === 'list-item' || (display === 'auto' &&\n !seg.eventRange.def.allDay &&\n seg.firstCol === seg.lastCol && // can't be multi-day\n seg.isStart && // \"\n seg.isEnd // \"\n );\n}\n\nclass TableBlockEvent extends BaseComponent {\n render() {\n let { props } = this;\n return (createElement(StandardEvent, Object.assign({}, props, { elClasses: ['fc-daygrid-event', 'fc-daygrid-block-event', 'fc-h-event'], defaultTimeFormat: DEFAULT_TABLE_EVENT_TIME_FORMAT, defaultDisplayEventEnd: props.defaultDisplayEventEnd, disableResizing: !props.seg.eventRange.def.allDay })));\n }\n}\n\nclass TableListItemEvent extends BaseComponent {\n render() {\n let { props, context } = this;\n let { options } = context;\n let { seg } = props;\n let timeFormat = options.eventTimeFormat || DEFAULT_TABLE_EVENT_TIME_FORMAT;\n let timeText = buildSegTimeText(seg, timeFormat, context, true, props.defaultDisplayEventEnd);\n return (createElement(EventContainer, Object.assign({}, props, { elTag: \"a\", elClasses: ['fc-daygrid-event', 'fc-daygrid-dot-event'], elAttrs: getSegAnchorAttrs(props.seg, context), defaultGenerator: renderInnerContent, timeText: timeText, isResizing: false, isDateSelecting: false })));\n }\n}\nfunction renderInnerContent(renderProps) {\n return (createElement(Fragment, null,\n createElement(\"div\", { className: \"fc-daygrid-event-dot\", style: { borderColor: renderProps.borderColor || renderProps.backgroundColor } }),\n renderProps.timeText && (createElement(\"div\", { className: \"fc-event-time\" }, renderProps.timeText)),\n createElement(\"div\", { className: \"fc-event-title\" }, renderProps.event.title || createElement(Fragment, null, \"\\u00A0\"))));\n}\n\nclass TableCellMoreLink extends BaseComponent {\n constructor() {\n super(...arguments);\n this.compileSegs = memoize(compileSegs);\n }\n render() {\n let { props } = this;\n let { allSegs, invisibleSegs } = this.compileSegs(props.singlePlacements);\n return (createElement(MoreLinkContainer, { elClasses: ['fc-daygrid-more-link'], dateProfile: props.dateProfile, todayRange: props.todayRange, allDayDate: props.allDayDate, moreCnt: props.moreCnt, allSegs: allSegs, hiddenSegs: invisibleSegs, alignmentElRef: props.alignmentElRef, alignGridTop: props.alignGridTop, extraDateSpan: props.extraDateSpan, popoverContent: () => {\n let isForcedInvisible = (props.eventDrag ? props.eventDrag.affectedInstances : null) ||\n (props.eventResize ? props.eventResize.affectedInstances : null) ||\n {};\n return (createElement(Fragment, null, allSegs.map((seg) => {\n let instanceId = seg.eventRange.instance.instanceId;\n return (createElement(\"div\", { className: \"fc-daygrid-event-harness\", key: instanceId, style: {\n visibility: isForcedInvisible[instanceId] ? 'hidden' : '',\n } }, hasListItemDisplay(seg) ? (createElement(TableListItemEvent, Object.assign({ seg: seg, isDragging: false, isSelected: instanceId === props.eventSelection, defaultDisplayEventEnd: false }, getSegMeta(seg, props.todayRange)))) : (createElement(TableBlockEvent, Object.assign({ seg: seg, isDragging: false, isResizing: false, isDateSelecting: false, isSelected: instanceId === props.eventSelection, defaultDisplayEventEnd: false }, getSegMeta(seg, props.todayRange))))));\n })));\n } }));\n }\n}\nfunction compileSegs(singlePlacements) {\n let allSegs = [];\n let invisibleSegs = [];\n for (let placement of singlePlacements) {\n allSegs.push(placement.seg);\n if (!placement.isVisible) {\n invisibleSegs.push(placement.seg);\n }\n }\n return { allSegs, invisibleSegs };\n}\n\nconst DEFAULT_WEEK_NUM_FORMAT = createFormatter({ week: 'narrow' });\nclass TableCell extends DateComponent {\n constructor() {\n super(...arguments);\n this.rootElRef = createRef();\n this.state = {\n dayNumberId: getUniqueDomId(),\n };\n this.handleRootEl = (el) => {\n setRef(this.rootElRef, el);\n setRef(this.props.elRef, el);\n };\n }\n render() {\n let { context, props, state, rootElRef } = this;\n let { options } = context;\n let { date, dateProfile } = props;\n return (createElement(DayCellContainer, { elTag: \"td\", elRef: this.handleRootEl, elClasses: [\n 'fc-daygrid-day',\n ...(props.extraClassNames || []),\n ], elAttrs: Object.assign(Object.assign(Object.assign({}, props.extraDataAttrs), (props.showDayNumber ? { 'aria-labelledby': state.dayNumberId } : {})), { role: 'gridcell' }), defaultGenerator: renderTopInner, date: date, dateProfile: dateProfile, todayRange: props.todayRange, showDayNumber: props.showDayNumber, extraRenderProps: props.extraRenderProps }, (InnerContent, renderProps) => (createElement(\"div\", { className: \"fc-daygrid-day-frame fc-scrollgrid-sync-inner\", ref: props.innerElRef },\n props.showWeekNumber && (createElement(WeekNumberContainer, { elTag: \"a\", elClasses: ['fc-daygrid-week-number'], elAttrs: buildNavLinkAttrs(context, date, 'week'), date: date, defaultFormat: DEFAULT_WEEK_NUM_FORMAT })),\n Boolean(!renderProps.isDisabled &&\n (props.showDayNumber || hasCustomDayCellContent(options) || props.forceDayTop)) && (createElement(\"div\", { className: \"fc-daygrid-day-top\" },\n createElement(InnerContent, { elTag: \"a\", elClasses: ['fc-daygrid-day-number'], elAttrs: Object.assign(Object.assign({}, buildNavLinkAttrs(context, date)), { id: state.dayNumberId }) }))),\n createElement(\"div\", { className: \"fc-daygrid-day-events\", ref: props.fgContentElRef },\n props.fgContent,\n createElement(\"div\", { className: \"fc-daygrid-day-bottom\", style: { marginTop: props.moreMarginTop } },\n createElement(TableCellMoreLink, { allDayDate: date, singlePlacements: props.singlePlacements, moreCnt: props.moreCnt, alignmentElRef: rootElRef, alignGridTop: !props.showDayNumber, extraDateSpan: props.extraDateSpan, dateProfile: props.dateProfile, eventSelection: props.eventSelection, eventDrag: props.eventDrag, eventResize: props.eventResize, todayRange: props.todayRange }))),\n createElement(\"div\", { className: \"fc-daygrid-day-bg\" }, props.bgContent)))));\n }\n}\nfunction renderTopInner(props) {\n return props.dayNumberText || createElement(Fragment, null, \"\\u00A0\");\n}\n\nfunction computeFgSegPlacement(segs, // assumed already sorted\ndayMaxEvents, dayMaxEventRows, strictOrder, eventInstanceHeights, maxContentHeight, cells) {\n let hierarchy = new DayGridSegHierarchy();\n hierarchy.allowReslicing = true;\n hierarchy.strictOrder = strictOrder;\n if (dayMaxEvents === true || dayMaxEventRows === true) {\n hierarchy.maxCoord = maxContentHeight;\n hierarchy.hiddenConsumes = true;\n }\n else if (typeof dayMaxEvents === 'number') {\n hierarchy.maxStackCnt = dayMaxEvents;\n }\n else if (typeof dayMaxEventRows === 'number') {\n hierarchy.maxStackCnt = dayMaxEventRows;\n hierarchy.hiddenConsumes = true;\n }\n // create segInputs only for segs with known heights\n let segInputs = [];\n let unknownHeightSegs = [];\n for (let i = 0; i < segs.length; i += 1) {\n let seg = segs[i];\n let { instanceId } = seg.eventRange.instance;\n let eventHeight = eventInstanceHeights[instanceId];\n if (eventHeight != null) {\n segInputs.push({\n index: i,\n thickness: eventHeight,\n span: {\n start: seg.firstCol,\n end: seg.lastCol + 1,\n },\n });\n }\n else {\n unknownHeightSegs.push(seg);\n }\n }\n let hiddenEntries = hierarchy.addSegs(segInputs);\n let segRects = hierarchy.toRects();\n let { singleColPlacements, multiColPlacements, leftoverMargins } = placeRects(segRects, segs, cells);\n let moreCnts = [];\n let moreMarginTops = [];\n // add segs with unknown heights\n for (let seg of unknownHeightSegs) {\n multiColPlacements[seg.firstCol].push({\n seg,\n isVisible: false,\n isAbsolute: true,\n absoluteTop: 0,\n marginTop: 0,\n });\n for (let col = seg.firstCol; col <= seg.lastCol; col += 1) {\n singleColPlacements[col].push({\n seg: resliceSeg(seg, col, col + 1, cells),\n isVisible: false,\n isAbsolute: false,\n absoluteTop: 0,\n marginTop: 0,\n });\n }\n }\n // add the hidden entries\n for (let col = 0; col < cells.length; col += 1) {\n moreCnts.push(0);\n }\n for (let hiddenEntry of hiddenEntries) {\n let seg = segs[hiddenEntry.index];\n let hiddenSpan = hiddenEntry.span;\n multiColPlacements[hiddenSpan.start].push({\n seg: resliceSeg(seg, hiddenSpan.start, hiddenSpan.end, cells),\n isVisible: false,\n isAbsolute: true,\n absoluteTop: 0,\n marginTop: 0,\n });\n for (let col = hiddenSpan.start; col < hiddenSpan.end; col += 1) {\n moreCnts[col] += 1;\n singleColPlacements[col].push({\n seg: resliceSeg(seg, col, col + 1, cells),\n isVisible: false,\n isAbsolute: false,\n absoluteTop: 0,\n marginTop: 0,\n });\n }\n }\n // deal with leftover margins\n for (let col = 0; col < cells.length; col += 1) {\n moreMarginTops.push(leftoverMargins[col]);\n }\n return { singleColPlacements, multiColPlacements, moreCnts, moreMarginTops };\n}\n// rects ordered by top coord, then left\nfunction placeRects(allRects, segs, cells) {\n let rectsByEachCol = groupRectsByEachCol(allRects, cells.length);\n let singleColPlacements = [];\n let multiColPlacements = [];\n let leftoverMargins = [];\n for (let col = 0; col < cells.length; col += 1) {\n let rects = rectsByEachCol[col];\n // compute all static segs in singlePlacements\n let singlePlacements = [];\n let currentHeight = 0;\n let currentMarginTop = 0;\n for (let rect of rects) {\n let seg = segs[rect.index];\n singlePlacements.push({\n seg: resliceSeg(seg, col, col + 1, cells),\n isVisible: true,\n isAbsolute: false,\n absoluteTop: rect.levelCoord,\n marginTop: rect.levelCoord - currentHeight,\n });\n currentHeight = rect.levelCoord + rect.thickness;\n }\n // compute mixed static/absolute segs in multiPlacements\n let multiPlacements = [];\n currentHeight = 0;\n currentMarginTop = 0;\n for (let rect of rects) {\n let seg = segs[rect.index];\n let isAbsolute = rect.span.end - rect.span.start > 1; // multi-column?\n let isFirstCol = rect.span.start === col;\n currentMarginTop += rect.levelCoord - currentHeight; // amount of space since bottom of previous seg\n currentHeight = rect.levelCoord + rect.thickness; // height will now be bottom of current seg\n if (isAbsolute) {\n currentMarginTop += rect.thickness;\n if (isFirstCol) {\n multiPlacements.push({\n seg: resliceSeg(seg, rect.span.start, rect.span.end, cells),\n isVisible: true,\n isAbsolute: true,\n absoluteTop: rect.levelCoord,\n marginTop: 0,\n });\n }\n }\n else if (isFirstCol) {\n multiPlacements.push({\n seg: resliceSeg(seg, rect.span.start, rect.span.end, cells),\n isVisible: true,\n isAbsolute: false,\n absoluteTop: rect.levelCoord,\n marginTop: currentMarginTop, // claim the margin\n });\n currentMarginTop = 0;\n }\n }\n singleColPlacements.push(singlePlacements);\n multiColPlacements.push(multiPlacements);\n leftoverMargins.push(currentMarginTop);\n }\n return { singleColPlacements, multiColPlacements, leftoverMargins };\n}\nfunction groupRectsByEachCol(rects, colCnt) {\n let rectsByEachCol = [];\n for (let col = 0; col < colCnt; col += 1) {\n rectsByEachCol.push([]);\n }\n for (let rect of rects) {\n for (let col = rect.span.start; col < rect.span.end; col += 1) {\n rectsByEachCol[col].push(rect);\n }\n }\n return rectsByEachCol;\n}\nfunction resliceSeg(seg, spanStart, spanEnd, cells) {\n if (seg.firstCol === spanStart && seg.lastCol === spanEnd - 1) {\n return seg;\n }\n let eventRange = seg.eventRange;\n let origRange = eventRange.range;\n let slicedRange = intersectRanges(origRange, {\n start: cells[spanStart].date,\n end: addDays(cells[spanEnd - 1].date, 1),\n });\n return Object.assign(Object.assign({}, seg), { firstCol: spanStart, lastCol: spanEnd - 1, eventRange: {\n def: eventRange.def,\n ui: Object.assign(Object.assign({}, eventRange.ui), { durationEditable: false }),\n instance: eventRange.instance,\n range: slicedRange,\n }, isStart: seg.isStart && slicedRange.start.valueOf() === origRange.start.valueOf(), isEnd: seg.isEnd && slicedRange.end.valueOf() === origRange.end.valueOf() });\n}\nclass DayGridSegHierarchy extends SegHierarchy {\n constructor() {\n super(...arguments);\n // config\n this.hiddenConsumes = false;\n // allows us to keep hidden entries in the hierarchy so they take up space\n this.forceHidden = {};\n }\n addSegs(segInputs) {\n const hiddenSegs = super.addSegs(segInputs);\n const { entriesByLevel } = this;\n const excludeHidden = (entry) => !this.forceHidden[buildEntryKey(entry)];\n // remove the forced-hidden segs\n for (let level = 0; level < entriesByLevel.length; level += 1) {\n entriesByLevel[level] = entriesByLevel[level].filter(excludeHidden);\n }\n return hiddenSegs;\n }\n handleInvalidInsertion(insertion, entry, hiddenEntries) {\n const { entriesByLevel, forceHidden } = this;\n const { touchingEntry, touchingLevel, touchingLateral } = insertion;\n if (this.hiddenConsumes && touchingEntry) {\n const touchingEntryId = buildEntryKey(touchingEntry);\n // if not already hidden\n if (!forceHidden[touchingEntryId]) {\n if (this.allowReslicing) {\n const placeholderEntry = Object.assign(Object.assign({}, touchingEntry), { span: intersectSpans(touchingEntry.span, entry.span) });\n const placeholderEntryId = buildEntryKey(placeholderEntry);\n forceHidden[placeholderEntryId] = true;\n entriesByLevel[touchingLevel][touchingLateral] = placeholderEntry; // replace touchingEntry with our placeholder\n this.splitEntry(touchingEntry, entry, hiddenEntries); // split up the touchingEntry, reinsert it\n }\n else {\n forceHidden[touchingEntryId] = true;\n hiddenEntries.push(touchingEntry);\n }\n }\n }\n return super.handleInvalidInsertion(insertion, entry, hiddenEntries);\n }\n}\n\nclass TableRow extends DateComponent {\n constructor() {\n super(...arguments);\n this.cellElRefs = new RefMap(); // the
/ elements with colspans.\n SOLUTION: making individual
\n this.frameElRefs = new RefMap(); // the fc-daygrid-day-frame\n this.fgElRefs = new RefMap(); // the fc-daygrid-day-events\n this.segHarnessRefs = new RefMap(); // indexed by \"instanceId:firstCol\"\n this.rootElRef = createRef();\n this.state = {\n framePositions: null,\n maxContentHeight: null,\n eventInstanceHeights: {},\n };\n this.handleResize = (isForced) => {\n if (isForced) {\n this.updateSizing(true); // isExternal=true\n }\n };\n }\n render() {\n let { props, state, context } = this;\n let { options } = context;\n let colCnt = props.cells.length;\n let businessHoursByCol = splitSegsByFirstCol(props.businessHourSegs, colCnt);\n let bgEventSegsByCol = splitSegsByFirstCol(props.bgEventSegs, colCnt);\n let highlightSegsByCol = splitSegsByFirstCol(this.getHighlightSegs(), colCnt);\n let mirrorSegsByCol = splitSegsByFirstCol(this.getMirrorSegs(), colCnt);\n let { singleColPlacements, multiColPlacements, moreCnts, moreMarginTops } = computeFgSegPlacement(sortEventSegs(props.fgEventSegs, options.eventOrder), props.dayMaxEvents, props.dayMaxEventRows, options.eventOrderStrict, state.eventInstanceHeights, state.maxContentHeight, props.cells);\n let isForcedInvisible = // TODO: messy way to compute this\n (props.eventDrag && props.eventDrag.affectedInstances) ||\n (props.eventResize && props.eventResize.affectedInstances) ||\n {};\n return (createElement(\"tr\", { ref: this.rootElRef, role: \"row\" },\n props.renderIntro && props.renderIntro(),\n props.cells.map((cell, col) => {\n let normalFgNodes = this.renderFgSegs(col, props.forPrint ? singleColPlacements[col] : multiColPlacements[col], props.todayRange, isForcedInvisible);\n let mirrorFgNodes = this.renderFgSegs(col, buildMirrorPlacements(mirrorSegsByCol[col], multiColPlacements), props.todayRange, {}, Boolean(props.eventDrag), Boolean(props.eventResize), false);\n return (createElement(TableCell, { key: cell.key, elRef: this.cellElRefs.createRef(cell.key), innerElRef: this.frameElRefs.createRef(cell.key) /* FF problem, but okay to use for left/right. TODO: rename prop */, dateProfile: props.dateProfile, date: cell.date, showDayNumber: props.showDayNumbers, showWeekNumber: props.showWeekNumbers && col === 0, forceDayTop: props.showWeekNumbers /* even displaying weeknum for row, not necessarily day */, todayRange: props.todayRange, eventSelection: props.eventSelection, eventDrag: props.eventDrag, eventResize: props.eventResize, extraRenderProps: cell.extraRenderProps, extraDataAttrs: cell.extraDataAttrs, extraClassNames: cell.extraClassNames, extraDateSpan: cell.extraDateSpan, moreCnt: moreCnts[col], moreMarginTop: moreMarginTops[col], singlePlacements: singleColPlacements[col], fgContentElRef: this.fgElRefs.createRef(cell.key), fgContent: ( // Fragment scopes the keys\n createElement(Fragment, null,\n createElement(Fragment, null, normalFgNodes),\n createElement(Fragment, null, mirrorFgNodes))), bgContent: ( // Fragment scopes the keys\n createElement(Fragment, null,\n this.renderFillSegs(highlightSegsByCol[col], 'highlight'),\n this.renderFillSegs(businessHoursByCol[col], 'non-business'),\n this.renderFillSegs(bgEventSegsByCol[col], 'bg-event'))) }));\n })));\n }\n componentDidMount() {\n this.updateSizing(true);\n this.context.addResizeHandler(this.handleResize);\n }\n componentDidUpdate(prevProps, prevState) {\n let currentProps = this.props;\n this.updateSizing(!isPropsEqual(prevProps, currentProps));\n }\n componentWillUnmount() {\n this.context.removeResizeHandler(this.handleResize);\n }\n getHighlightSegs() {\n let { props } = this;\n if (props.eventDrag && props.eventDrag.segs.length) { // messy check\n return props.eventDrag.segs;\n }\n if (props.eventResize && props.eventResize.segs.length) { // messy check\n return props.eventResize.segs;\n }\n return props.dateSelectionSegs;\n }\n getMirrorSegs() {\n let { props } = this;\n if (props.eventResize && props.eventResize.segs.length) { // messy check\n return props.eventResize.segs;\n }\n return [];\n }\n renderFgSegs(col, segPlacements, todayRange, isForcedInvisible, isDragging, isResizing, isDateSelecting) {\n let { context } = this;\n let { eventSelection } = this.props;\n let { framePositions } = this.state;\n let defaultDisplayEventEnd = this.props.cells.length === 1; // colCnt === 1\n let isMirror = isDragging || isResizing || isDateSelecting;\n let nodes = [];\n if (framePositions) {\n for (let placement of segPlacements) {\n let { seg } = placement;\n let { instanceId } = seg.eventRange.instance;\n let key = instanceId + ':' + col;\n let isVisible = placement.isVisible && !isForcedInvisible[instanceId];\n let isAbsolute = placement.isAbsolute;\n let left = '';\n let right = '';\n if (isAbsolute) {\n if (context.isRtl) {\n right = 0;\n left = framePositions.lefts[seg.lastCol] - framePositions.lefts[seg.firstCol];\n }\n else {\n left = 0;\n right = framePositions.rights[seg.firstCol] - framePositions.rights[seg.lastCol];\n }\n }\n /*\n known bug: events that are force to be list-item but span multiple days still take up space in later columns\n todo: in print view, for multi-day events, don't display title within non-start/end segs\n */\n nodes.push(createElement(\"div\", { className: 'fc-daygrid-event-harness' + (isAbsolute ? ' fc-daygrid-event-harness-abs' : ''), key: key, ref: isMirror ? null : this.segHarnessRefs.createRef(key), style: {\n visibility: isVisible ? '' : 'hidden',\n marginTop: isAbsolute ? '' : placement.marginTop,\n top: isAbsolute ? placement.absoluteTop : '',\n left,\n right,\n } }, hasListItemDisplay(seg) ? (createElement(TableListItemEvent, Object.assign({ seg: seg, isDragging: isDragging, isSelected: instanceId === eventSelection, defaultDisplayEventEnd: defaultDisplayEventEnd }, getSegMeta(seg, todayRange)))) : (createElement(TableBlockEvent, Object.assign({ seg: seg, isDragging: isDragging, isResizing: isResizing, isDateSelecting: isDateSelecting, isSelected: instanceId === eventSelection, defaultDisplayEventEnd: defaultDisplayEventEnd }, getSegMeta(seg, todayRange))))));\n }\n }\n return nodes;\n }\n renderFillSegs(segs, fillType) {\n let { isRtl } = this.context;\n let { todayRange } = this.props;\n let { framePositions } = this.state;\n let nodes = [];\n if (framePositions) {\n for (let seg of segs) {\n let leftRightCss = isRtl ? {\n right: 0,\n left: framePositions.lefts[seg.lastCol] - framePositions.lefts[seg.firstCol],\n } : {\n left: 0,\n right: framePositions.rights[seg.firstCol] - framePositions.rights[seg.lastCol],\n };\n nodes.push(createElement(\"div\", { key: buildEventRangeKey(seg.eventRange), className: \"fc-daygrid-bg-harness\", style: leftRightCss }, fillType === 'bg-event' ?\n createElement(BgEvent, Object.assign({ seg: seg }, getSegMeta(seg, todayRange))) :\n renderFill(fillType)));\n }\n }\n return createElement(Fragment, {}, ...nodes);\n }\n updateSizing(isExternalSizingChange) {\n let { props, frameElRefs } = this;\n if (!props.forPrint &&\n props.clientWidth !== null // positioning ready?\n ) {\n if (isExternalSizingChange) {\n let frameEls = props.cells.map((cell) => frameElRefs.currentMap[cell.key]);\n if (frameEls.length) {\n let originEl = this.rootElRef.current;\n this.setState({\n framePositions: new PositionCache(originEl, frameEls, true, // isHorizontal\n false),\n });\n }\n }\n const oldInstanceHeights = this.state.eventInstanceHeights;\n const newInstanceHeights = this.queryEventInstanceHeights();\n const limitByContentHeight = props.dayMaxEvents === true || props.dayMaxEventRows === true;\n this.safeSetState({\n // HACK to prevent oscillations of events being shown/hidden from max-event-rows\n // Essentially, once you compute an element's height, never null-out.\n // TODO: always display all events, as visibility:hidden?\n eventInstanceHeights: Object.assign(Object.assign({}, oldInstanceHeights), newInstanceHeights),\n maxContentHeight: limitByContentHeight ? this.computeMaxContentHeight() : null,\n });\n }\n }\n queryEventInstanceHeights() {\n let segElMap = this.segHarnessRefs.currentMap;\n let eventInstanceHeights = {};\n // get the max height amongst instance segs\n for (let key in segElMap) {\n let height = Math.round(segElMap[key].getBoundingClientRect().height);\n let instanceId = key.split(':')[0]; // deconstruct how renderFgSegs makes the key\n eventInstanceHeights[instanceId] = Math.max(eventInstanceHeights[instanceId] || 0, height);\n }\n return eventInstanceHeights;\n }\n computeMaxContentHeight() {\n let firstKey = this.props.cells[0].key;\n let cellEl = this.cellElRefs.currentMap[firstKey];\n let fcContainerEl = this.fgElRefs.currentMap[firstKey];\n return cellEl.getBoundingClientRect().bottom - fcContainerEl.getBoundingClientRect().top;\n }\n getCellEls() {\n let elMap = this.cellElRefs.currentMap;\n return this.props.cells.map((cell) => elMap[cell.key]);\n }\n}\nTableRow.addStateEquality({\n eventInstanceHeights: isPropsEqual,\n});\nfunction buildMirrorPlacements(mirrorSegs, colPlacements) {\n if (!mirrorSegs.length) {\n return [];\n }\n let topsByInstanceId = buildAbsoluteTopHash(colPlacements); // TODO: cache this at first render?\n return mirrorSegs.map((seg) => ({\n seg,\n isVisible: true,\n isAbsolute: true,\n absoluteTop: topsByInstanceId[seg.eventRange.instance.instanceId],\n marginTop: 0,\n }));\n}\nfunction buildAbsoluteTopHash(colPlacements) {\n let topsByInstanceId = {};\n for (let placements of colPlacements) {\n for (let placement of placements) {\n topsByInstanceId[placement.seg.eventRange.instance.instanceId] = placement.absoluteTop;\n }\n }\n return topsByInstanceId;\n}\n\nclass Table extends DateComponent {\n constructor() {\n super(...arguments);\n this.splitBusinessHourSegs = memoize(splitSegsByRow);\n this.splitBgEventSegs = memoize(splitSegsByRow);\n this.splitFgEventSegs = memoize(splitSegsByRow);\n this.splitDateSelectionSegs = memoize(splitSegsByRow);\n this.splitEventDrag = memoize(splitInteractionByRow);\n this.splitEventResize = memoize(splitInteractionByRow);\n this.rowRefs = new RefMap();\n this.handleRootEl = (rootEl) => {\n this.rootEl = rootEl;\n if (rootEl) {\n this.context.registerInteractiveComponent(this, {\n el: rootEl,\n isHitComboAllowed: this.props.isHitComboAllowed,\n });\n }\n else {\n this.context.unregisterInteractiveComponent(this);\n }\n };\n }\n render() {\n let { props } = this;\n let { dateProfile, dayMaxEventRows, dayMaxEvents, expandRows } = props;\n let rowCnt = props.cells.length;\n let businessHourSegsByRow = this.splitBusinessHourSegs(props.businessHourSegs, rowCnt);\n let bgEventSegsByRow = this.splitBgEventSegs(props.bgEventSegs, rowCnt);\n let fgEventSegsByRow = this.splitFgEventSegs(props.fgEventSegs, rowCnt);\n let dateSelectionSegsByRow = this.splitDateSelectionSegs(props.dateSelectionSegs, rowCnt);\n let eventDragByRow = this.splitEventDrag(props.eventDrag, rowCnt);\n let eventResizeByRow = this.splitEventResize(props.eventResize, rowCnt);\n let limitViaBalanced = dayMaxEvents === true || dayMaxEventRows === true;\n // if rows can't expand to fill fixed height, can't do balanced-height event limit\n // TODO: best place to normalize these options?\n if (limitViaBalanced && !expandRows) {\n limitViaBalanced = false;\n dayMaxEventRows = null;\n dayMaxEvents = null;\n }\n let classNames = [\n 'fc-daygrid-body',\n limitViaBalanced ? 'fc-daygrid-body-balanced' : 'fc-daygrid-body-unbalanced',\n expandRows ? '' : 'fc-daygrid-body-natural', // will height of one row depend on the others?\n ];\n return (createElement(\"div\", { className: classNames.join(' '), ref: this.handleRootEl, style: {\n // these props are important to give this wrapper correct dimensions for interactions\n // TODO: if we set it here, can we avoid giving to inner tables?\n width: props.clientWidth,\n minWidth: props.tableMinWidth,\n } },\n createElement(NowTimer, { unit: \"day\" }, (nowDate, todayRange) => (createElement(Fragment, null,\n createElement(\"table\", { role: \"presentation\", className: \"fc-scrollgrid-sync-table\", style: {\n width: props.clientWidth,\n minWidth: props.tableMinWidth,\n height: expandRows ? props.clientHeight : '',\n } },\n props.colGroupNode,\n createElement(\"tbody\", { role: \"presentation\" }, props.cells.map((cells, row) => (createElement(TableRow, { ref: this.rowRefs.createRef(row), key: cells.length\n ? cells[0].date.toISOString() /* best? or put key on cell? or use diff formatter? */\n : row // in case there are no cells (like when resource view is loading)\n , showDayNumbers: rowCnt > 1, showWeekNumbers: props.showWeekNumbers, todayRange: todayRange, dateProfile: dateProfile, cells: cells, renderIntro: props.renderRowIntro, businessHourSegs: businessHourSegsByRow[row], eventSelection: props.eventSelection, bgEventSegs: bgEventSegsByRow[row].filter(isSegAllDay) /* hack */, fgEventSegs: fgEventSegsByRow[row], dateSelectionSegs: dateSelectionSegsByRow[row], eventDrag: eventDragByRow[row], eventResize: eventResizeByRow[row], dayMaxEvents: dayMaxEvents, dayMaxEventRows: dayMaxEventRows, clientWidth: props.clientWidth, clientHeight: props.clientHeight, forPrint: props.forPrint }))))))))));\n }\n // Hit System\n // ----------------------------------------------------------------------------------------------------\n prepareHits() {\n this.rowPositions = new PositionCache(this.rootEl, this.rowRefs.collect().map((rowObj) => rowObj.getCellEls()[0]), // first cell el in each row. TODO: not optimal\n false, true);\n this.colPositions = new PositionCache(this.rootEl, this.rowRefs.currentMap[0].getCellEls(), // cell els in first row\n true, // horizontal\n false);\n }\n queryHit(positionLeft, positionTop) {\n let { colPositions, rowPositions } = this;\n let col = colPositions.leftToIndex(positionLeft);\n let row = rowPositions.topToIndex(positionTop);\n if (row != null && col != null) {\n let cell = this.props.cells[row][col];\n return {\n dateProfile: this.props.dateProfile,\n dateSpan: Object.assign({ range: this.getCellRange(row, col), allDay: true }, cell.extraDateSpan),\n dayEl: this.getCellEl(row, col),\n rect: {\n left: colPositions.lefts[col],\n right: colPositions.rights[col],\n top: rowPositions.tops[row],\n bottom: rowPositions.bottoms[row],\n },\n layer: 0,\n };\n }\n return null;\n }\n getCellEl(row, col) {\n return this.rowRefs.currentMap[row].getCellEls()[col]; // TODO: not optimal\n }\n getCellRange(row, col) {\n let start = this.props.cells[row][col].date;\n let end = addDays(start, 1);\n return { start, end };\n }\n}\nfunction isSegAllDay(seg) {\n return seg.eventRange.def.allDay;\n}\n\nclass DayTableSlicer extends Slicer {\n constructor() {\n super(...arguments);\n this.forceDayIfListItem = true;\n }\n sliceRange(dateRange, dayTableModel) {\n return dayTableModel.sliceRange(dateRange);\n }\n}\n\nclass DayTable extends DateComponent {\n constructor() {\n super(...arguments);\n this.slicer = new DayTableSlicer();\n this.tableRef = createRef();\n }\n render() {\n let { props, context } = this;\n return (createElement(Table, Object.assign({ ref: this.tableRef }, this.slicer.sliceProps(props, props.dateProfile, props.nextDayThreshold, context, props.dayTableModel), { dateProfile: props.dateProfile, cells: props.dayTableModel.cells, colGroupNode: props.colGroupNode, tableMinWidth: props.tableMinWidth, renderRowIntro: props.renderRowIntro, dayMaxEvents: props.dayMaxEvents, dayMaxEventRows: props.dayMaxEventRows, showWeekNumbers: props.showWeekNumbers, expandRows: props.expandRows, headerAlignElRef: props.headerAlignElRef, clientWidth: props.clientWidth, clientHeight: props.clientHeight, forPrint: props.forPrint })));\n }\n}\n\nclass DayTableView extends TableView {\n constructor() {\n super(...arguments);\n this.buildDayTableModel = memoize(buildDayTableModel);\n this.headerRef = createRef();\n this.tableRef = createRef();\n }\n render() {\n let { options, dateProfileGenerator } = this.context;\n let { props } = this;\n let dayTableModel = this.buildDayTableModel(props.dateProfile, dateProfileGenerator);\n let headerContent = options.dayHeaders && (createElement(DayHeader, { ref: this.headerRef, dateProfile: props.dateProfile, dates: dayTableModel.headerDates, datesRepDistinctDays: dayTableModel.rowCnt === 1 }));\n let bodyContent = (contentArg) => (createElement(DayTable, { ref: this.tableRef, dateProfile: props.dateProfile, dayTableModel: dayTableModel, businessHours: props.businessHours, dateSelection: props.dateSelection, eventStore: props.eventStore, eventUiBases: props.eventUiBases, eventSelection: props.eventSelection, eventDrag: props.eventDrag, eventResize: props.eventResize, nextDayThreshold: options.nextDayThreshold, colGroupNode: contentArg.tableColGroupNode, tableMinWidth: contentArg.tableMinWidth, dayMaxEvents: options.dayMaxEvents, dayMaxEventRows: options.dayMaxEventRows, showWeekNumbers: options.weekNumbers, expandRows: !props.isHeightAuto, headerAlignElRef: this.headerElRef, clientWidth: contentArg.clientWidth, clientHeight: contentArg.clientHeight, forPrint: props.forPrint }));\n return options.dayMinWidth\n ? this.renderHScrollLayout(headerContent, bodyContent, dayTableModel.colCnt, options.dayMinWidth)\n : this.renderSimpleLayout(headerContent, bodyContent);\n }\n}\nfunction buildDayTableModel(dateProfile, dateProfileGenerator) {\n let daySeries = new DaySeriesModel(dateProfile.renderRange, dateProfileGenerator);\n return new DayTableModel(daySeries, /year|month|week/.test(dateProfile.currentRangeUnit));\n}\n\nexport { DayTableView as DayGridView, DayTable, DayTableSlicer, Table, TableView, buildDayTableModel };\n","import { createPlugin } from '@fullcalendar/core/index.js';\nimport { DayGridView as DayTableView } from './internal.js';\nimport { DateProfileGenerator, addWeeks, diffWeeks, injectStyles } from '@fullcalendar/core/internal.js';\nimport '@fullcalendar/core/preact.js';\n\nclass TableDateProfileGenerator extends DateProfileGenerator {\n // Computes the date range that will be rendered.\n buildRenderRange(currentRange, currentRangeUnit, isRangeAllDay) {\n let { dateEnv } = this.props;\n let renderRange = super.buildRenderRange(currentRange, currentRangeUnit, isRangeAllDay);\n let start = renderRange.start;\n let end = renderRange.end;\n let endOfWeek;\n // year and month views should be aligned with weeks. this is already done for week\n if (/^(year|month)$/.test(currentRangeUnit)) {\n start = dateEnv.startOfWeek(start);\n // make end-of-week if not already\n endOfWeek = dateEnv.startOfWeek(end);\n if (endOfWeek.valueOf() !== end.valueOf()) {\n end = addWeeks(endOfWeek, 1);\n }\n }\n // ensure 6 weeks\n if (this.props.monthMode &&\n this.props.fixedWeekCount) {\n let rowCnt = Math.ceil(// could be partial weeks due to hiddenDays\n diffWeeks(start, end));\n end = addWeeks(end, 6 - rowCnt);\n }\n return { start, end };\n }\n}\n\nvar css_248z = \":root{--fc-daygrid-event-dot-width:8px}.fc-daygrid-day-events:after,.fc-daygrid-day-events:before,.fc-daygrid-day-frame:after,.fc-daygrid-day-frame:before,.fc-daygrid-event-harness:after,.fc-daygrid-event-harness:before{clear:both;content:\\\"\\\";display:table}.fc .fc-daygrid-body{position:relative;z-index:1}.fc .fc-daygrid-day.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-daygrid-day-frame{min-height:100%;position:relative}.fc .fc-daygrid-day-top{display:flex;flex-direction:row-reverse}.fc .fc-day-other .fc-daygrid-day-top{opacity:.3}.fc .fc-daygrid-day-number{padding:4px;position:relative;z-index:4}.fc .fc-daygrid-day-events{margin-top:1px}.fc .fc-daygrid-body-balanced .fc-daygrid-day-events{left:0;position:absolute;right:0}.fc .fc-daygrid-body-unbalanced .fc-daygrid-day-events{min-height:2em;position:relative}.fc .fc-daygrid-body-natural .fc-daygrid-day-events{margin-bottom:1em}.fc .fc-daygrid-event-harness{position:relative}.fc .fc-daygrid-event-harness-abs{left:0;position:absolute;right:0;top:0}.fc .fc-daygrid-bg-harness{bottom:0;position:absolute;top:0}.fc .fc-daygrid-day-bg .fc-non-business{z-index:1}.fc .fc-daygrid-day-bg .fc-bg-event{z-index:2}.fc .fc-daygrid-day-bg .fc-highlight{z-index:3}.fc .fc-daygrid-event{margin-top:1px;z-index:6}.fc .fc-daygrid-event.fc-event-mirror{z-index:7}.fc .fc-daygrid-day-bottom{font-size:.85em;padding:2px 3px 0}.fc .fc-daygrid-day-bottom:before{clear:both;content:\\\"\\\";display:table}.fc .fc-daygrid-more-link{cursor:pointer;position:relative;z-index:4}.fc .fc-daygrid-week-number{background-color:var(--fc-neutral-bg-color);color:var(--fc-neutral-text-color);min-width:1.5em;padding:2px;position:absolute;text-align:center;top:0;z-index:5}.fc .fc-more-popover .fc-popover-body{min-width:220px;padding:10px}.fc-direction-ltr .fc-daygrid-event.fc-event-start,.fc-direction-rtl .fc-daygrid-event.fc-event-end{margin-left:2px}.fc-direction-ltr .fc-daygrid-event.fc-event-end,.fc-direction-rtl .fc-daygrid-event.fc-event-start{margin-right:2px}.fc-direction-ltr .fc-daygrid-week-number{border-radius:0 0 3px 0;left:0}.fc-direction-rtl .fc-daygrid-week-number{border-radius:0 0 0 3px;right:0}.fc-liquid-hack .fc-daygrid-day-frame{position:static}.fc-daygrid-event{border-radius:3px;font-size:var(--fc-small-font-size);position:relative;white-space:nowrap}.fc-daygrid-block-event .fc-event-time{font-weight:700}.fc-daygrid-block-event .fc-event-time,.fc-daygrid-block-event .fc-event-title{padding:1px}.fc-daygrid-dot-event{align-items:center;display:flex;padding:2px 0}.fc-daygrid-dot-event .fc-event-title{flex-grow:1;flex-shrink:1;font-weight:700;min-width:0;overflow:hidden}.fc-daygrid-dot-event.fc-event-mirror,.fc-daygrid-dot-event:hover{background:rgba(0,0,0,.1)}.fc-daygrid-dot-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-daygrid-event-dot{border:calc(var(--fc-daygrid-event-dot-width)/2) solid var(--fc-event-border-color);border-radius:calc(var(--fc-daygrid-event-dot-width)/2);box-sizing:content-box;height:0;margin:0 4px;width:0}.fc-direction-ltr .fc-daygrid-event .fc-event-time{margin-right:3px}.fc-direction-rtl .fc-daygrid-event .fc-event-time{margin-left:3px}\";\ninjectStyles(css_248z);\n\nvar index = createPlugin({\n name: '@fullcalendar/daygrid',\n initialView: 'dayGridMonth',\n views: {\n dayGrid: {\n component: DayTableView,\n dateProfileGeneratorClass: TableDateProfileGenerator,\n },\n dayGridDay: {\n type: 'dayGrid',\n duration: { days: 1 },\n },\n dayGridWeek: {\n type: 'dayGrid',\n duration: { weeks: 1 },\n },\n dayGridMonth: {\n type: 'dayGrid',\n duration: { months: 1 },\n monthMode: true,\n fixedWeekCount: true,\n },\n },\n});\n\nexport { index as default };\n","import { render } from \"./a-project-calendar.vue?vue&type=template&id=4b337cac&scoped=true\"\nimport script from \"./a-project-calendar.vue?vue&type=script&lang=js\"\nexport * from \"./a-project-calendar.vue?vue&type=script&lang=js\"\n\nimport \"./a-project-calendar.vue?vue&type=style&index=0&id=4b337cac&lang=sass&scoped=true\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-4b337cac\"]])\n\nexport default __exports__","// Styles\nimport './VSwitch.sass'\n\n// Components\nimport { filterControlProps, makeSelectionControlProps, VSelectionControl } from '@/components/VSelectionControl/VSelectionControl'\nimport { filterInputProps, makeVInputProps, VInput } from '@/components/VInput/VInput'\nimport { VProgressCircular } from '@/components/VProgressCircular'\n\n// Composables\nimport { LoaderSlot, useLoader } from '@/composables/loader'\nimport { useFocus } from '@/composables/focus'\nimport { useProxiedModel } from '@/composables/proxiedModel'\n\n// Utility\nimport { computed, ref } from 'vue'\nimport { defineComponent, filterInputAttrs, getUid, useRender } from '@/util'\n\nexport const VSwitch = defineComponent({\n name: 'VSwitch',\n\n inheritAttrs: false,\n\n props: {\n indeterminate: Boolean,\n inset: Boolean,\n flat: Boolean,\n loading: {\n type: [Boolean, String],\n default: false,\n },\n\n ...makeVInputProps(),\n ...makeSelectionControlProps(),\n },\n\n emits: {\n 'update:focused': (focused: boolean) => true,\n 'update:modelValue': () => true,\n 'update:indeterminate': (val: boolean) => true,\n },\n\n setup (props, { attrs, slots }) {\n const indeterminate = useProxiedModel(props, 'indeterminate')\n const model = useProxiedModel(props, 'modelValue')\n const { loaderClasses } = useLoader(props)\n const { isFocused, focus, blur } = useFocus(props)\n\n const loaderColor = computed(() => {\n return typeof props.loading === 'string' && props.loading !== ''\n ? props.loading\n : props.color\n })\n\n const uid = getUid()\n const id = computed(() => props.id || `switch-${uid}`)\n\n function onChange () {\n if (indeterminate.value) {\n indeterminate.value = false\n }\n }\n\n useRender(() => {\n const [inputAttrs, controlAttrs] = filterInputAttrs(attrs)\n const [inputProps, _1] = filterInputProps(props)\n const [controlProps, _2] = filterControlProps(props)\n const control = ref()\n\n function onClick () {\n control.value?.input?.click()\n }\n\n return (\n \n {{\n ...slots,\n default: ({\n id,\n isDisabled,\n isReadonly,\n isValid,\n }) => (\n \n {{\n ...slots,\n default: () => (
),\n input: ({ textColorClasses, textColorStyles }) => (\n \n { props.loading && (\n \n { slotProps => (\n slots.loader\n ? slots.loader(slotProps)\n : (\n \n )\n )}\n \n ) }\n \n ),\n }}\n
\n ),\n }}\n \n )\n })\n\n return {}\n },\n})\n\nexport type VSwitch = InstanceType\n","\n\n\n\n\n","import { render } from \"./a-project-filter.vue?vue&type=template&id=4807cf95&scoped=true\"\nimport script from \"./a-project-filter.vue?vue&type=script&lang=js\"\nexport * from \"./a-project-filter.vue?vue&type=script&lang=js\"\n\nimport \"./a-project-filter.vue?vue&type=style&index=0&id=4807cf95&lang=sass&scoped=true\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-4807cf95\"]])\n\nexport default __exports__","import { render } from \"./projects.vue?vue&type=template&id=2b7fe154&scoped=true\"\nimport script from \"./projects.vue?vue&type=script&lang=js\"\nexport * from \"./projects.vue?vue&type=script&lang=js\"\n\nimport \"./projects.vue?vue&type=style&index=0&id=2b7fe154&lang=sass&scoped=true\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-2b7fe154\"]])\n\nexport default __exports__"],"names":["data","header","initialized","marginTop","calendar_previousScrollPosition","isVisible","unmounted","this","$refs","page","querySelector","removeEventListener","handleScroll","methods","_initScrollListener","repeat","calendar","setTimeout","addEventListener","_handleScroll","scrollTop","e","document","target","showHeader","offsetHeight","Math","abs","hideHeader","style","transition","ref","_createElementBlock","_hoisted_1","_ctx","getters","_createBlock","_component_A_project_filter","onFilterChanged","$options","_createVNode","_component_W_loadable","class","content","emptyMessage","_component_A_project_calendar","events","month","$data","onOpenDetail","id","_component_V_full_calendar","options","slice","vnodeId","isValidElement","rerenderQueue","prevDebounce","i","EMPTY_OBJ","EMPTY_ARR","IS_NON_DIMENSIONAL","assign","obj","props","removeNode","node","parentNode","removeChild","createElement","type","children","key","normalizedProps","arguments","length","call","defaultProps","createVNode","original","vnode","__k","__","__b","__e","__d","__c","__h","constructor","__v","createRef","current","Fragment","Component","context","getDomSibling","childIndex","indexOf","sibling","updateParentDomPointers","child","base","enqueueRender","c","push","process","debounceRendering","queue","__r","sort","a","b","some","component","commitQueue","oldVNode","oldDom","parentDom","__P","diff","ownerSVGElement","commitRoot","diffChildren","renderResult","newParentVNode","oldParentVNode","globalContext","isSvg","excessDomChildren","isHydrating","j","childVNode","newDom","firstChildDom","refs","oldChildren","oldChildrenLength","Array","isArray","reorderChildren","placeChild","unmount","applyRef","tmp","toChildArray","out","nextDom","sibDom","outer","appendChild","nextSibling","insertBefore","diffProps","dom","newProps","oldProps","hydrate","setProperty","setStyle","value","test","name","oldValue","useCapture","o","cssText","replace","toLowerCase","l","eventProxyCapture","eventProxy","removeAttribute","setAttribute","event","newVNode","isNew","oldState","snapshot","clearProcessingException","provider","componentContext","renderHook","count","newType","contextType","__E","prototype","render","doRender","sub","state","getDerivedStateFromProps","__s","componentWillMount","componentDidMount","componentWillReceiveProps","shouldComponentUpdate","forEach","_sb","componentWillUpdate","componentDidUpdate","getChildContext","getSnapshotBeforeUpdate","diffElementNodes","diffed","root","cb","oldHtml","newHtml","nodeType","localName","createTextNode","createElementNS","is","childNodes","dangerouslySetInnerHTML","attributes","__html","innerHTML","checked","parentVNode","skipRemove","r","componentWillUnmount","replaceNode","firstChild","createContext","defaultValue","contextId","Consumer","contextValue","Provider","subs","ctx","_props","old","splice","error","errorInfo","ctor","handled","getDerivedStateFromError","setState","componentDidCatch","update","callback","s","forceUpdate","currentComponent","previousComponent","prevRaf","afterPaintEffects","EMPTY","oldBeforeDiff","oldBeforeRender","oldAfterDiff","oldCommit","oldBeforeUnmount","flushAfterPaintEffects","shift","__H","invokeCleanup","invokeEffect","hooks","hookItem","__N","_pendingArgs","afterNextFrame","__V","filter","hasErrored","HAS_RAF","requestAnimationFrame","raf","done","clearTimeout","timeout","cancelAnimationFrame","hook","comp","cleanup","shallowDiffers","PureComponent","p","isPureReactComponent","oldDiffHook","__f","Symbol","for","oldCatchError","then","oldUnmount","detachedClone","detachedParent","effect","map","removeOriginal","originalParent","Suspense","_suspenders","suspended","__a","SuspenseList","_next","_map","__R","promise","suspendingVNode","suspendingComponent","resolve","resolved","onResolved","onSuspensionComplete","__u","suspendedVNode","pop","wasHydrating","detachedComponent","fallback","list","delete","revealOrder","size","ContextProvider","Portal","_this","container","_container","_temp","before","createPortal","el","containerInfo","delegated","get","unsuspend","wrappedUnsuspend","Map","reverse","set","REACT_ELEMENT_TYPE","CAMEL_PROPS","IS_DOM","onChangeInputType","Object","defineProperty","configurable","v","writable","oldEventHook","empty","isPropagationStopped","cancelBubble","isDefaultPrevented","defaultPrevented","persist","nativeEvent","classNameDescriptor","oldVNodeHook","nonCustomElement","multiple","selected","className","enumerable","$$typeof","injectStyles","css","head","getElementsByTagName","styleSheet","DelayedRunner","drainedOption","isRunning","isDirty","pauseDepths","timeoutId","request","delay","isPaused","tryDrain","bind","pause","scope","resume","force","depth","keys","drained","clear","hasOwnProperty","mergeProps","propObjs","complexPropsMap","dest","complexObjs","val","unshift","undefined","filterHash","hash","func","filtered","mapHash","newHash","arrayToHash","item","hashValuesToArray","isPropsEqual","obj0","obj1","HANDLER_RE","isNonHandlerPropsEqual","getUnequalProps","compareObjs","equalityFuncs","isObjValsEqual","val0","val1","comparator","collectFromHash","startIndex","endIndex","step","res","isArraysEqual","a0","a1","equalityFunc","len","memoize","workerFunc","resEquality","teardownFunc","currentArgs","currentRes","newArgs","apply","memoizeObjArg","currentArg","newArg","removeElement","elementClosest","selector","closest","documentElement","contains","elementMatches","parentElement","method","matches","matchesSelector","msMatchesSelector","findElements","containers","HTMLElement","allMatches","querySelectorAll","PIXEL_PROP_RE","applyStyle","propName","applyStyleProp","getEventTargetViaRoot","ev","_a","_b","composedPath","guid$1","getUniqueDomId","buildDelegationHandler","handler","matchedChild","listenBySelector","eventType","attachedHandler","listenToHoverBySelector","onMouseEnter","onMouseLeave","currentMatchedChild","mouseOverEv","realOnMouseLeave","mouseLeaveEv","createAriaClickAttrs","onClick","createAriaKeyboardAttrs","tabIndex","onKeyDown","preventDefault","guidNumber","guid","String","parseFieldSpecs","input","token","specs","tokens","split","charAt","field","substring","order","compareByFieldSpecs","fieldSpecs","cmp","compareByFieldSpec","fieldSpec","flexibleCompare","localeCompare","padStart","substr","formatWithOrdinals","formatter","args","fallbackText","reduce","str","arg","index","isInt","n","computeSmallestCellWidth","cellEl","allWidthEl","contentWidthEl","Error","getBoundingClientRect","width","DAY_IDS","addWeeks","m","dateToUtcArray","arrayToUtcDate","addDays","addMs","diffWeeks","m0","m1","diffDays","valueOf","diffHours","diffMinutes","diffSeconds","diffDayAndTime","m0day","startOfDay","m1day","years","months","days","round","milliseconds","diffWholeWeeks","d","diffWholeDays","timeAsMs","getUTCFullYear","getUTCMonth","getUTCDate","startOfHour","getUTCHours","startOfMinute","getUTCMinutes","startOfSecond","getUTCSeconds","weekOfYear","marker","dow","doy","y","w","weekOfGivenYear","nextW","min","year","firstWeekStart","firstWeekOffset","dayStart","floor","fwd","fwdlw","getUTCDay","dateToLocalArray","date","getFullYear","getMonth","getDate","getHours","getMinutes","getSeconds","getMilliseconds","arrayToLocalDate","Date","getUTCMilliseconds","concat","UTC","isValidDate","isNaN","calendarSystemClassMap","registerCalendarSystem","theClass","createCalendarSystem","GregorianCalendarSystem","getMarkerYear","getMarkerMonth","getMarkerDay","arrayToMarker","arr","markerToArray","PARSE_RE","createDuration","unit","parseString","parseObject","exec","sign","parseInt","duration","day","hours","hour","minutes","minute","seconds","second","millisecond","ms","weeks","week","specifiedWeeks","durationsEqual","d0","d1","subtractDurations","asRoughYears","dur","asRoughDays","asRoughMonths","asRoughMs","greatestDurationDenominator","buildIsoString","timeZoneOffset","stripZeroTime","toISOString","formatTimeZoneOffset","formatDayString","doIso","mins","ISO_RE","parse","Number","isTimeUnspecified","DateEnv","settings","timeZone","isNamedTimeZone","namedTimeZoneImpl","canComputeOffset","Boolean","calendarSystem","locale","weekDow","weekDoy","weekNumberCalculation","firstDay","weekNumberFunc","weekText","weekTextLong","cmdFormatter","defaultSeparator","createMarker","meta","createMarkerMeta","createNowMarker","timestampToMarker","forcedTzo","parts","getYear","add","subtract","addYears","addMonths","diffWholeYears","diffWholeMonths","greatestWholeUnit","countDurationsBetween","startOf","startOfYear","startOfMonth","startOfWeek","computeWeekNumber","toDate","format","dateOptions","offsetForMarker","formatRange","start","end","isEndExclusive","forcedStartTzo","forcedEndTzo","formatIso","extraOptions","omitTimeZoneOffset","omitTime","timestampToArray","getTimezoneOffset","offsetForArray","Theme","calendarOptions","iconOverrideOption","setIconOverride","iconOverrideHash","iconClassesCopy","buttonName","iconClasses","applyIconOverridePrefix","prefix","iconOverridePrefix","getClass","classes","getIconClass","isRtl","rtlIconClasses","baseIconClass","getCustomButtonIconClass","customButtonProps","iconOverrideCustomButtonOption","EXTENDED_SETTINGS_AND_SEVERITIES","separator","omitZeroMinute","meridiem","omitCommas","STANDARD_DATE_PROP_SEVERITIES","timeZoneName","era","weekday","MERIDIEM_RE","COMMA_RE","MULTI_SPACE_RE","LTR_RE","UTC_RE","NativeFormatter","formatSettings","standardDateProps","extendedSettings","severity","max","buildFormattingFunc","betterDefaultSeparator","diffSeverity","computeMarkerDiffSeverity","biggestUnitForPartial","full0","full1","partialDateProps","computePartialFormattingOptions","partialFormattingFunc","partial0","partial1","insertion","findCommonInsertion","after","getLargestUnit","standardDatePropCnt","formatWeekNumber","buildNativeFormattingFunc","sanitizeSettings","zeroFormat","normalFormat","Intl","DateTimeFormat","codes","zeroProps","postProcess","injectTzoStr","trim","toLocaleLowerCase","tzoStr","replaced","num","display","simpleNumberFormat","direction","join","ca","biggestUnit","partialOptions","i0","found0","before0","after0","i1","found1","before1","after1","expandZonedMarker","dateInfo","array","createVerboseFormattingArg","startInfo","endInfo","localeCodes","CmdFormatter","cmdStr","FuncFormatter","createFormatter","BASE_OPTION_REFINERS","navLinkDayClick","identity","navLinkWeekClick","bootstrapFontAwesome","buttonIcons","customButtons","defaultAllDayEventDuration","defaultTimedEventDuration","nextDayThreshold","scrollTime","scrollTimeReset","slotMinTime","slotMaxTime","dayPopoverFormat","slotDuration","snapDuration","headerToolbar","footerToolbar","defaultRangeSeparator","titleRangeSeparator","forceEventDuration","dayHeaders","dayHeaderFormat","dayHeaderClassNames","dayHeaderContent","dayHeaderDidMount","dayHeaderWillUnmount","dayCellClassNames","dayCellContent","dayCellDidMount","dayCellWillUnmount","initialView","aspectRatio","weekends","weekNumbers","weekNumberClassNames","weekNumberContent","weekNumberDidMount","weekNumberWillUnmount","editable","viewClassNames","viewDidMount","viewWillUnmount","nowIndicator","nowIndicatorClassNames","nowIndicatorContent","nowIndicatorDidMount","nowIndicatorWillUnmount","showNonCurrentDates","lazyFetching","startParam","endParam","timeZoneParam","locales","themeSystem","dragRevertDuration","dragScroll","allDayMaintainDuration","unselectAuto","dropAccept","eventOrder","eventOrderStrict","handleWindowResize","windowResizeDelay","longPressDelay","eventDragMinDistance","expandRows","height","contentHeight","weekNumberFormat","eventResizableFromStart","displayEventTime","displayEventEnd","progressiveEventRendering","businessHours","initialDate","now","eventDataTransform","stickyHeaderDates","stickyFooterScrollbar","viewHeight","defaultAllDay","eventSourceFailure","eventSourceSuccess","eventDisplay","eventStartEditable","eventDurationEditable","eventOverlap","eventConstraint","eventAllow","eventBackgroundColor","eventBorderColor","eventTextColor","eventColor","eventClassNames","eventContent","eventDidMount","eventWillUnmount","selectConstraint","selectOverlap","selectAllow","droppable","unselectCancel","slotLabelFormat","slotLaneClassNames","slotLaneContent","slotLaneDidMount","slotLaneWillUnmount","slotLabelClassNames","slotLabelContent","slotLabelDidMount","slotLabelWillUnmount","dayMaxEvents","dayMaxEventRows","dayMinWidth","slotLabelInterval","allDayText","allDayClassNames","allDayContent","allDayDidMount","allDayWillUnmount","slotMinWidth","navLinks","eventTimeFormat","rerenderDelay","moreLinkText","moreLinkHint","selectMinDistance","selectable","selectLongPressDelay","eventLongPressDelay","selectMirror","eventMaxStack","eventMinHeight","eventMinWidth","eventShortHeight","slotEventOverlap","plugins","dayCount","dateAlignment","dateIncrement","hiddenDays","monthMode","fixedWeekCount","validRange","visibleRange","titleFormat","eventInteractive","noEventsText","viewHint","navLinkHint","closeHint","timeHint","eventHint","moreLinkClick","moreLinkClassNames","moreLinkContent","moreLinkDidMount","moreLinkWillUnmount","handleCustomRendering","customRenderingMetaMap","customRenderingReplacesEl","BASE_OPTION_DEFAULTS","center","CALENDAR_LISTENER_REFINERS","datesSet","eventsSet","eventAdd","eventChange","eventRemove","windowResize","eventClick","eventMouseEnter","eventMouseLeave","select","unselect","loading","_unmount","_beforeprint","_afterprint","_noEventDrop","_noEventResize","_resize","_scrollRequest","CALENDAR_OPTION_REFINERS","buttonText","buttonHints","views","initialEvents","eventSources","COMPLEX_OPTION_COMPARATORS","isMaybeObjectsEqual","VIEW_OPTION_REFINERS","buttonTextKey","dateProfileGeneratorClass","usesMinMaxTime","classNames","didMount","willUnmount","mergeRawOptions","optionSets","refineProps","refiners","refined","extra","raw","flushSync","runBeforeFlush","oldDebounceRendering","preact","callbackQ","execCallbackSync","FakeComponent","ContextType","origProvider","ScrollResponder","execFunc","emitter","handleScrollRequest","queuedRequest","drain","on","fireInitialScroll","detach","off","isDatesNew","time","ViewContextType","buildViewContext","viewSpec","viewApi","viewOptions","dateProfileGenerator","dateEnv","theme","pluginHooks","dispatch","getCurrentData","calendarApi","registerInteractiveComponent","unregisterInteractiveComponent","addResizeHandler","removeResizeHandler","createScrollResponder","nextProps","nextState","debug","console","log","propEquality","stateEquality","safeSetState","newState","addPropsEquality","addStateEquality","BaseComponent","create","setRef","ContentInjector","super","currentDomNodes","queuedDomNodes","handleEl","elRef","generator","renderProps","attrs","buildElAttrs","innerContent","hasCustomRenderingHandler","generatorName","customContent","html","domNodes","elTag","applyQueueudDomNodes","triggerCustomRendering","isActive","customRenderingMeta","containerEl","reportNewContainerEl","generatorMeta","newNode","extraClassNames","elAttrs","elClasses","elStyle","RenderId","ContentContainer","InnerContent","InnerContentInjector","generatedClassNames","generateClassNames","classNameGenerator","renderId","containerComponent","parentProps","ViewContainer","view","buildViewClassNames","parseRange","invertRanges","ranges","constraintRange","dateRange","invertedRanges","compareRanges","range0","range1","intersectRanges","newRange","rangesIntersect","rangeContainsMarker","range","constrainMarkerToRange","computeAlignedDayRange","timedRange","dayCnt","computeVisibleDayRange","startDay","endDay","endTimeMS","diffDates","date0","date1","largeUnit","reduceCurrentDate","currentDate","action","dateMarker","getInitialDate","initialDateInput","getNow","nowInput","DateProfileGenerator","nowDate","initHiddenDays","buildPrev","currentDateProfile","forceToValid","prevDate","currentRangeUnit","build","buildNext","nextDate","currentInfo","isRangeAllDay","renderRange","activeRange","isValid","buildValidRange","trimHiddenDays","buildCurrentRangeInfo","buildRenderRange","adjustActiveRange","currentRange","buildDateIncrement","validRangeInput","simpleInput","refineRange","durationUnit","buildRangeFromDuration","buildRangeFromDayCount","buildCustomVisibleRange","getFallbackDuration","computeRes","isHiddenDay","skipHiddenDays","runningCount","visibleRangeInput","customAlignment","rangeInput","isHiddenDayHash","inc","isExclusive","createEventInstance","defId","instanceId","parseRecurring","recurringTypes","parsed","allDay","allDayGuess","typeData","typeId","expandRecurring","eventStore","framingRange","defs","instances","instance","recurringDef","def","starts","expandRecurringRanges","eventDef","typeDef","markers","expand","EVENT_NON_DATE_REFINERS","groupId","title","url","interactive","EVENT_DATE_REFINERS","EVENT_REFINERS","extendedProps","parseEvent","eventSource","allowOpenRange","buildEventRefiners","refineEventDef","computeIsDefaultAllDay","recurringRes","parseEventDef","sourceId","singleRes","parseSingle","hasEnd","EVENT_UI_REFINERS","eventRefiners","publicId","ui","createEventUi","memberAdder","eventDefMemberAdders","freeze","startMeta","endMeta","startMarker","endMarker","startInput","parseEvents","rawEvents","createEmptyEventStore","rawEvent","tuple","eventTupleToStore","getRelevantEvents","newStore","filterEventStoreDefs","lookDef","isEventDefsGrouped","def0","def1","mergeEventStores","store0","store1","filterFunc","excludeSubEventStore","master","filteredDefs","filteredInstances","normalizeConstraint","parseClassNames","startEditable","durationEditable","constraint","overlap","allow","color","backgroundColor","borderColor","textColor","EMPTY_EVENT_UI","constraints","allows","combineEventUis","uis","combineTwoEventUis","item0","item1","EVENT_SOURCE_REFINERS","success","failure","parseEventSource","buildEventSourceRefiners","rawObj","metaRes","buildEventSourceMeta","_raw","isFetching","latestFetchId","fetchRange","sourceDefId","eventSourceRefiners","eventSourceDefs","parseMeta","reduceEventStore","dateProfile","receiveRawEvents","fetchId","addEvent","excludeEventsBySourceId","subset","transformRawEvents","calEachTransform","sourceEachTransform","transformEachRawEvent","refinedEvents","refinedEvent","expandRange","rezoneEventStoreDates","oldDateEnv","newDateEnv","Emitter","handlers","thisContext","setThisContext","setOptions","addToHash","removeFromHash","trigger","attachedHandlers","optionHandler","hasHandlers","DEF_DEFAULTS","startTime","endTime","daysOfWeek","parseBusinessHours","refineInputs","rawDefs","rawDef","triggerDateSelect","selection","pev","buildDateSpanApiWithContext","jsEvent","origEvent","triggerDateUnselect","dateSpan","transform","dateSpanTransforms","buildDateSpanApi","getDefaultEventEnd","applyMutationToEventStore","eventConfigBase","mutation","eventConfigs","compileEventUis","applyMutationToEventDef","applyMutationToEventInstance","eventConfig","standardProps","startDelta","endDelta","copy","applier","eventDefMutationAppliers","eventInstance","forceAllDay","clearEnd","datesDelta","EventSourceImpl","internalEventSource","remove","refetch","sourceIds","isRefetch","EventImpl","_context","_def","_instance","setProp","warn","mutate","setExtendedProp","setStart","instanceRange","granularity","maintainDuration","setEnd","endInput","setDates","moveStart","deltaInput","delta","moveEnd","moveDates","setAllDay","formatInput","relevantEvents","oldEvent","relatedEvents","buildEventApis","revert","asStore","eventApiToStore","source","startStr","endStr","toPlainObject","collapseColor","collapseExtendedProps","toJSON","eventApi","excludeInstance","eventApis","excludeInstanceId","sliceEventStore","eventUiBases","inverseBgByGroupId","inverseBgByDefId","defByGroupId","bgRanges","fgRanges","eventUis","origRange","normalRange","slicedRange","isStart","isEnd","invertedRange","bg","fg","setElSeg","seg","fcSeg","getElSeg","eventDefs","compileEventUi","sortEventSegs","segs","eventOrderSpecs","objs","buildSegCompareObj","_seg","eventRange","computeSegDraggable","transformers","isDraggableTransformers","transformer","computeSegStartResizable","computeSegEndResizable","buildSegTimeText","timeFormat","defaultDisplayEventTime","defaultDisplayEventEnd","startOverride","endOverride","wholeEventStart","wholeEventEnd","segStart","segEnd","isStartDay","isEndDay","getSegMeta","todayRange","segRange","isPast","isFuture","isToday","getEventClassNames","isMirror","isDraggable","isStartResizable","isEndResizable","isDragging","isResizing","isSelected","buildEventRangeKey","getSegAnchorAttrs","href","STANDARD_PROPS","parseDateSpan","defaultDuration","span","parseOpenDateSpan","buildRangeApi","buildRangeApiWithTimeZone","fabricateEventRange","unpromisify","normalizedSuccessCallback","normalizedFailureCallback","isResolved","wrappedSuccess","wrappedFailure","JsonRequestError","message","response","requestJson","params","toUpperCase","fetchOptions","URLSearchParams","body","headers","fetch","fetchRes","ok","json","parsedResponse","canVGrowWithinCell","getCanVGrowWithinCell","computeCanVGrowWithinCell","position","top","left","div","possible","CalendarRoot","forPrint","handleBeforePrint","handleAfterPrint","isHeightAuto","Interaction","isHitComboAllowed","destroy","parseInteractionSettings","useEventCenter","interactionSettingsStore","CalendarImpl","currentDataManager","batchRendering","updateSize","setOption","optionName","rawOptionValue","getOption","currentCalendarOptionsInput","getAvailableLocaleCodes","availableRawLocales","handlerName","currentCalendarOptionsRefiners","changeView","viewType","dateOrRange","zoomTo","spec","viewSpecs","getUnitViewSpec","toolbarConfig","viewTypes","viewsWithButtons","footer","singleUnit","prev","next","prevYear","nextYear","today","gotoDate","zonedDateInput","incrementDate","formatDate","dateOrObj","endDate","selectionInput","dateSelection","eventInput","sourceInput","currentData","triggerEventAdd","sourceApi","getEventSourceById","newEventApi","getEventById","getEvents","removeAllEvents","getEventSources","sourceHash","sourceApis","internalId","addEventSource","sources","removeAllEventSources","refetchEvents","scrollToTime","timeInput","intersectRects","rect1","rect2","right","bottom","getDateMeta","isDisabled","isOther","getDayClassNames","DAY_FORMAT","WEEK_FORMAT","buildNavLinkAttrs","isTabbable","dateStr","zonedDate","handleInteraction","customAction","_scrollbarWidths","getScrollbarWidths","computeScrollbarWidths","overflow","computeScrollbarWidthsForEl","x","clientHeight","offsetWidth","clientWidth","computeClippedClientRect","clippingParents","getClippingParents","rect","clippingParent","intersection","parents","computedStyle","window","getComputedStyle","overflowY","overflowX","PositionCache","originEl","els","isHorizontal","isVertical","originClientRect","buildElHorizontals","buildElVerticals","originClientLeft","lefts","rights","originClientTop","tops","bottoms","leftToIndex","leftPosition","topToIndex","topPosition","getWidth","leftIndex","getHeight","topIndex","DateComponent","uid","prepareHits","queryHit","positionLeft","positionTop","elWidth","elHeight","isValidSegDownEl","eventDrag","eventResize","isValidDateDownEl","SegHierarchy","strictOrder","allowReslicing","maxCoord","maxStackCnt","levelCoords","entriesByLevel","stackCnts","addSegs","inputs","hiddenEntries","insertEntry","entry","findInsertion","isInsertionValid","insertEntryAt","handleInvalidInsertion","levelCoord","thickness","stackCnt","touchingEntry","splitEntry","barrier","partCnt","splitHiddenEntries","entrySpan","barrierSpan","intersectSpans","lateral","insertAt","level","buildEntryKey","newEntry","levelCnt","candidateCoord","touchingLevel","touchingLateral","trackingLevel","trackingCoord","trackingEntry","trackingEntries","searchRes","binarySearch","getEntrySpanEnd","lateralIndex","trackingEntryBottom","destLevel","destLateral","toRects","rects","entries","span0","span1","searchVal","getItemVal","middleIndex","middleVal","computeFallbackHeaderFormat","datesRepDistinctDays","CLASS_NAME","renderInner$1","text","TableDateCell","dayMeta","navLinkAttrs","colCnt","extraRenderProps","role","colSpan","extraDataAttrs","InnerContainer","isSticky","WEEKDAY_FORMAT","TableDowCell","dateMeta","NowTimer","initialNowDate","initialNowQueriedMs","computeTiming","currentState","prevProps","unroundedNow","currentUnitStart","nextUnitStart","waitMs","buildDayRange","DayHeader","createDayHeaderFormatter","dates","renderIntro","explicitFormat","dateCnt","DaySeriesModel","indices","dayIndex","cnt","sliceRange","firstIndex","getDateDayIndex","lastIndex","clippedFirstIndex","clippedLastIndex","ceil","dayOffset","DayTableModel","daySeries","breakOnWeeks","daysPerRow","rowCnt","cells","buildCells","headerDates","buildHeaderDates","rows","row","col","buildCell","seriesSeg","nextIndex","firstCol","lastCol","Slicer","sliceBusinessHours","_sliceBusinessHours","sliceDateSelection","_sliceDateSpan","_sliceEventStore","sliceEventDrag","_sliceInteraction","sliceEventResize","forceDayIfListItem","sliceProps","extraArgs","eventSegs","dateSelectionSegs","businessHourSegs","fgEventSegs","bgEventSegs","eventSelection","sliceNowDate","computeActiveRange","rangeRes","sliceEventRanges","interaction","mutatedEvents","affectedInstances","affectedEvents","isEvent","eventRanges","sliceEventRange","isComponentAllDay","VISIBLE_HIDDEN_RE","Scroller","liquid","liquidIsAbsolute","isAbsolute","overcomeLeft","overcomeRight","overcomeBottom","marginLeft","marginRight","marginBottom","maxHeight","needsXScrolling","realClientWidth","getYScrollbarWidth","childEl","needsYScrolling","realClientHeight","getXScrollbarWidth","RefMap","masterCallback","currentMap","depths","callbackMap","handleValue","removed","added","refCallback","collect","getAll","computeShrinkWidth","chunkEls","shrinkCells","largestWidth","shrinkCell","getSectionHasLiquidHeight","sectionConfig","getAllowYScrolling","renderChunkContent","chunkConfig","isHeader","tableClassName","syncRowHeights","minWidth","tableMinWidth","tableColGroupNode","rowContent","isColPropsEqual","cols0","cols1","renderMicroColGroup","cols","shrinkWidth","colNodes","colProps","sanitizeShrinkWidth","hasShrinkWidth","getScrollGridClassNames","getSectionClassNames","wholeTableVGrow","renderScrollShim","getStickyHeaderDates","getStickyFooterScrollbar","SimpleScrollGrid","processCols","scrollerRefs","scrollerElRefs","_handleScrollerEl","forceYScrollbars","scrollerClientWidths","scrollerClientHeights","handleSizing","computeScrollerDims","sectionConfigs","sections","microColGroupNode","collapsibleWidth","currentConfig","configCnt","configI","headSectionNodes","bodySectionNodes","footSectionNodes","renderSection","isBuggy","roleAttrs","outerContent","renderChunkTd","chunk","isLiquid","sectionKey","rowSyncHeights","reportRowHeightChange","scrollerEl","section","getSectionByKey","scrollerElRef","scrollbarWidth","scroller","harnessEl","EventContainer","timeText","disableDragging","disableResizing","isDateSelecting","defaultGenerator","StandardEvent","defaultTimeFormat","renderInnerContent$1","eventContentArg","innerProps","DAY_NUM_FORMAT","DayCellContainer","refineRenderProps","showDayNumber","hasCustomDayCellContent","dayNumberText","BgEvent","renderInnerContent","renderFill","fillType","WeekNumberContainer","defaultFormat","renderInner","PADDING_FROM_VIEWPORT","Popover","titleId","handleRootEl","rootEl","handleDocumentMouseDown","handleCloseClick","handleDocumentKeyDown","onClose","extraAttrs","parentEl","alignmentEl","alignGridTop","alignmentRect","popoverDims","popoverTop","popoverLeft","origin","offsetParent","MorePopover","startDate","extraDateSpan","dayEl","layer","MoreLinkContainer","linkElRef","isPopoverOpen","popoverId","handleClick","computeRange","buildPublicSeg","allDayDate","allSegs","hiddenSegs","handlePopoverClose","moreCnt","hint","shortText","renderMoreLinkInner","alignmentElRef","popoverContent","updateParentEl","computeEarliestSegStart","computeLatestSegEnd","pickEarliestStart","seg0","seg1","pickLatestEnd","Store","currentValue","subscribe","CustomRenderingStore","handle","customRendering","updated","has","css_248z","globalLocales","MINIMAL_RAW_EN_LOCALE","code","RAW_EN_LOCALE","eventCnt","organizeRawLocales","explicitRawLocales","defaultCode","allRawLocales","rawLocaleMap","en","rawLocale","buildLocale","inputSingular","available","queryLocale","parseLocale","codeArg","queryRawLocale","simpleId","merged","NumberFormat","createPlugin","premiumReleaseDate","deps","reducers","isLoadingFuncs","contextInit","eventDragMutationMassagers","dateSelectionTransformers","datePointTransforms","viewPropsTransformers","isPropsValid","externalDefTransforms","viewContainerAppends","eventDropTransformers","componentInteractions","calendarInteractions","themeClasses","namedTimeZonedImpl","elementDraggingImpl","optionChangeHandlers","scrollGridImpl","listenerRefiners","optionRefiners","propSetHandlers","buildPluginHooks","pluginDefs","globalDefs","currentPluginIds","addDefs","pluginName","currentId","combineHooks","buildBuildPluginHooks","currentHooks","currentOverrideDefs","currentGlobalDefs","overrideDefs","hooks0","hooks1","compareOptionalDates","StandardTheme","compileViewDefs","defaultConfigs","overrideConfigs","ensureViewDef","viewDef","buildViewDef","defaultConfig","overrideConfig","queryProp","theComponent","superType","superDef","defaults","rawOptions","overrides","parseViewConfigs","parseViewConfig","createViewHookComponent","viewProps","buildViewSpecs","defaultInputs","optionOverrides","dynamicOptionOverrides","localeDefaults","viewDefs","buildViewSpec","durationInput","singleUnitOverrides","createDurationCached","denom","queryButtonText","optionsSubset","buttonTextMap","queryButtonTitle","buttonKey","optionDefaults","buttonTextOverride","buttonTextDefault","buttonTitleOverride","buttonHint","buttonTitleDefault","tableCellShaded","buttonGroup","button","buttonActive","close","durationInputMap","JSON","stringify","reduceViewType","reduceDynamicOptionOverrides","reduceDateProfile","dp","initEventSources","addSources","parseInitialSources","reduceEventSources","removeSource","fetchDirtySources","fetchSourcesByIds","excludeStaticSources","receiveResponse","reduceEventSourcesNewTimeZone","computeEventSourcesLoading","eventSourceHash","isSourceDirty","doesSourceNeedRange","prevSources","sourceIdHash","nextSources","fetchSource","sourceDef","errorHandled","rawSources","rawSource","ignoreRange","reduceDateSelection","currentSelection","reduceSelectedEvent","currentInstanceId","eventInstanceId","reduceEventDrag","currentDrag","newDrag","reduceEventResize","currentResize","newResize","parseToolbars","calendarOptionOverrides","parseToolbar","sectionStrHash","sectionWidgets","hasTitle","sectionName","sectionStr","sectionRes","parseSection","widgets","calendarCustomButtons","calendarButtonTextOverrides","calendarButtonText","calendarButtonHintOverrides","calendarButtonHints","sectionSubstrs","buttonGroupStr","buttonClick","buttonIcon","click","textFallback","prevOrNext","navUnit","ViewImpl","viewTitle","activeStart","activeEnd","currentStart","currentEnd","eventSourceDef$2","successCallback","arrayEventSourcePlugin","eventSourceDef$1","errorCallback","funcEventSourcePlugin","JSON_FEED_EVENT_SOURCE_REFINERS","extraParams","eventSourceDef","requestParams","buildRequestParams","jsonFeedEventSourcePlugin","customRequestParams","SIMPLE_RECURRING_REFINERS","startRecur","endRecur","recurring","recurringData","clippedFramingRange","expandRanges","simpleRecurringEventsPlugin","dowHash","dayMarker","instanceStarts","instanceStart","changeHandlerPlugin","handleEventSources","unfoundSources","newInputs","inputFound","unfoundSource","newInput","handleDateProfile","handleEventStore","globalPlugins","TaskRunner","runTaskOption","delayedRunner","task","completedTasks","runTask","buildTitle","buildTitleFormat","CalendarDataManager","computeOptionsData","_computeOptionsData","computeCurrentViewData","_computeCurrentViewData","buildDateEnv","buildDateEnv$1","buildTheme","buildDateProfileGenerator","buildViewApi","buildViewUiProps","buildEventUiBySource","buildEventUiBases","parseContextBusinessHours","actionRunner","_handleAction","updateData","currentCalendarOptionsRefined","currentViewOptionsInput","currentViewOptionsRefined","optionsData","currentViewType","currentViewData","calendarContext","initialState","renderableEventStore","selectionConfig","contextAndState","reducer","computeIsLoading","resetOptions","append","isEventsLoading","eventUiSingleBase","eventUiBySource","wasLoading","isLoading","onAction","oldData","changeHandlers","oldCalendarOptions","newCalendarOptions","onData","refinedOptions","availableLocaleData","processRawCalendarOptions","warnUnknownOptions","currentRaw","currentRefined","anyChanges","processRawViewOptions","explicitLocale","ThemeClass","DateProfileGeneratorClass","isLoadingFunc","viewName","ToolbarSection","widgetGroups","widgetGroup","renderWidgetGroup","isOnlyButtons","widget","isPressed","activeButton","isTodayEnabled","isPrevEnabled","isNextEnabled","buttonClasses","disabled","groupClassName","Toolbar","startContent","endContent","model","extraClassName","forceLtr","centerContent","availableWidth","updateAvailableWidth","handleResize","paddingBottom","labeledById","EventClicking","handleSegClick","segEl","hasUrlContainer","location","EventHovering","handleEventElRemove","currentSegEl","handleSegLeave","handleSegEnter","triggerEvent","removeHoverListeners","publicEvName","CalendarContent","buildViewPropTransformers","buildToolbarProps","headerRef","footerRef","interactionsStore","viewLabelId","settingsInput","DEFAULT_INTERACTIONS","interactionClasses","interactions","TheInteractionClass","listeners","listener","resizeRunner","viewAspectRatio","toolbarProps","viewVGrow","viewContext","renderView","buildAppendContent","CalendarInteractionClass","ViewComponent","todayInfo","prevInfo","nextInfo","theClasses","TheClass","Calendar","isRendering","isRendered","currentClassNames","customContentRenderId","handleAction","renderRunner","handleData","handleRenderRequest","setClassNames","setHeight","wasRendering","pauseRendering","resumeRendering","classList","OPTION_IS_COMPLEX","resources","shallowCopy","FullCalendar","defineComponent","customRenderingMap","getApi","getSecret","buildOptions","suppliedOptions","$slots","teleportNodes","values","h","Teleport","to","mounted","customRenderingStore","$el","needCustomRenderingResize","beforeUpdate","beforeUnmount","watch","buildWatchers","inst","watchers","deep","complexOptionName","TableView","headerElRef","renderSimpleLayout","headerRowContent","bodyContent","renderHScrollLayout","ScrollGrid","chunks","colGroups","splitSegsByRow","byRow","splitSegsByFirstCol","byCol","splitInteractionByRow","DEFAULT_TABLE_EVENT_TIME_FORMAT","hasListItemDisplay","TableBlockEvent","TableListItemEvent","TableCellMoreLink","compileSegs","invisibleSegs","singlePlacements","isForcedInvisible","visibility","placement","DEFAULT_WEEK_NUM_FORMAT","TableCell","rootElRef","dayNumberId","renderTopInner","innerElRef","showWeekNumber","forceDayTop","fgContentElRef","fgContent","moreMarginTop","bgContent","computeFgSegPlacement","eventInstanceHeights","maxContentHeight","hierarchy","DayGridSegHierarchy","hiddenConsumes","segInputs","unknownHeightSegs","eventHeight","segRects","singleColPlacements","multiColPlacements","leftoverMargins","placeRects","moreCnts","moreMarginTops","absoluteTop","resliceSeg","hiddenEntry","hiddenSpan","allRects","rectsByEachCol","groupRectsByEachCol","currentHeight","currentMarginTop","multiPlacements","isFirstCol","spanStart","spanEnd","forceHidden","excludeHidden","touchingEntryId","placeholderEntry","placeholderEntryId","TableRow","cellElRefs","frameElRefs","fgElRefs","segHarnessRefs","framePositions","isForced","updateSizing","businessHoursByCol","bgEventSegsByCol","highlightSegsByCol","getHighlightSegs","mirrorSegsByCol","getMirrorSegs","cell","normalFgNodes","renderFgSegs","mirrorFgNodes","buildMirrorPlacements","showDayNumbers","showWeekNumbers","renderFillSegs","prevState","currentProps","segPlacements","nodes","leftRightCss","isExternalSizingChange","frameEls","oldInstanceHeights","newInstanceHeights","queryEventInstanceHeights","limitByContentHeight","computeMaxContentHeight","segElMap","firstKey","fcContainerEl","getCellEls","elMap","mirrorSegs","colPlacements","topsByInstanceId","buildAbsoluteTopHash","placements","Table","splitBusinessHourSegs","splitBgEventSegs","splitFgEventSegs","splitDateSelectionSegs","splitEventDrag","splitEventResize","rowRefs","businessHourSegsByRow","bgEventSegsByRow","fgEventSegsByRow","dateSelectionSegsByRow","eventDragByRow","eventResizeByRow","limitViaBalanced","colGroupNode","renderRowIntro","isSegAllDay","rowPositions","rowObj","colPositions","getCellRange","getCellEl","DayTableSlicer","dayTableModel","DayTable","slicer","tableRef","headerAlignElRef","DayTableView","buildDayTableModel","headerContent","contentArg","TableDateProfileGenerator","endOfWeek","dayGrid","dayGridDay","dayGridWeek","dayGridMonth","emits","components","VFullCalendar","required","computed","dayGridPlugin","eventInfo","title_html","info","$emit","currentYear","monthIndex","fullCalendar","selectedMonth","__exports__","VSwitch","inheritAttrs","indeterminate","inset","flat","default","makeVInputProps","makeSelectionControlProps","focused","setup","slots","useProxiedModel","loaderClasses","useLoader","isFocused","focus","blur","useFocus","loaderColor","getUid","onChange","useRender","inputAttrs","controlAttrs","filterInputAttrs","inputProps","_1","filterInputProps","controlProps","_2","filterControlProps","control","_control$value","_control$value$input","_ref2","isReadonly","_ref3","textColorClasses","textColorStyles","slotProps","loader","_createElementVNode","_component_v_row","_component_v_autocomplete","projectId","items","label","variant","$event","teamId","employeeId","_fullName","createdById","_component_v_select","_hoisted_2","_component_v_switch","isFinished","mixins","AutocompleteMixin","projectCodeSearch","mapGetters","projectsOptions","pattern","normalizedInput","normalize","projects","project","normalizedProjectCode","includes","FilterMixin","AProjectCalendar","AProjectFilter","mastertasks","filteredProjects","project_code","starts_at","deadline","is_finished","$events","async","urlQueryObject","employee_id","project_id","team_id","created_by","created_at","queryParameters","toString","$axios","get_auth","$toast","openMasterTaskModal","mastertaskId","mastertask","find","emit","editMode"],"sourceRoot":""} \ No newline at end of file diff --git a/app/dist/js/7496.0ed543b2.js b/app/dist/js/7496.0ed543b2.js new file mode 100644 index 0000000..aec5151 --- /dev/null +++ b/app/dist/js/7496.0ed543b2.js @@ -0,0 +1,2 @@ +"use strict";(self["webpackChunkjandl"]=self["webpackChunkjandl"]||[]).push([[7496],{18039:function(e,t,s){s.r(t),s.d(t,{default:function(){return S}});var a=s(73396);const i={ref:"page"};function n(e,t,s,n,r,l){const o=(0,a.up)("A-team-filter"),d=(0,a.up)("Z-timeline");return(0,a.wg)(),(0,a.iD)("div",i,[e.$store.getters["tm/isInitialized"]?((0,a.wg)(),(0,a.j4)(o,{key:0,"split-days":e.calendarData?e.splitDays:null,onFilterChanged:l.onFilterChanged},null,8,["split-days","onFilterChanged"])):(0,a.kq)("",!0),e.calendarData&&!r.hideCal?((0,a.wg)(),(0,a.j4)(d,{key:1,"cal-data":e.calendarData,"cal-config":r.calendarConfig,splits:e.splitDays},null,8,["cal-data","cal-config","splits"])):(0,a.kq)("",!0)],512)}var r=s(60988),l=s(67312),o=s(16824),d=s(45869);const h={class:"d-flex date-wrapper"},u=["src"],c=["src"];function m(e,t,i,n,m,f){return(0,a.wg)(),(0,a.j4)(o.o,{class:"px-10 py-8 subheader"},{default:(0,a.w5)((()=>[(0,a.Wm)(r.f,{"custom-filter":e.customFilter,"match-any":!0,modelValue:m.selectedTeam,"onUpdate:modelValue":t[0]||(t[0]=e=>m.selectedTeam=e),class:"subheader-input",items:e.teams,"item-title":"name","item-value":"id",label:"Tím",variant:"outlined"},null,8,["custom-filter","modelValue","items"]),(0,a._)("div",h,[(0,a.Wm)(l.T,{class:"subheader-icon-button prev",variant:"outlined",onClick:t[1]||(t[1]=e=>f.prevDay())},{default:(0,a.w5)((()=>[(0,a._)("img",{src:s(38351),alt:""},null,8,u)])),_:1}),(0,a.Wm)(d.hw,{class:"subheader-input disabled",label:"Dátum",modelValue:m.selectedDate,"onUpdate:modelValue":t[2]||(t[2]=e=>m.selectedDate=e),variant:"outlined","append-inner-icon":"mdi-calendar-blank-outline"},null,8,["modelValue"]),(0,a.Wm)(l.T,{class:"subheader-icon-button next",variant:"outlined",onClick:t[3]||(t[3]=e=>f.nextDay())},{default:(0,a.w5)((()=>[(0,a._)("img",{src:s(35902),alt:""},null,8,c)])),_:1})]),(0,a.Wm)(d.hw,{class:"subheader-input disabled",label:"Nenaplánované hodiny",modelValue:m.time,"onUpdate:modelValue":t[4]||(t[4]=e=>m.time=e),variant:"outlined",disabled:!0},null,8,["modelValue"])])),_:1})}var f=s(11271),p=s(85174),_=s(83299),k=s(20065),g={mixins:[_.Z],emits:["filter-changed"],props:{splitDays:{type:[Array,null],default:()=>null}},data(){return{date:new Date,selectedTeam:null,selectedDate:null,time:null,filter:{start:null,end:null,team:null}}},computed:{...(0,k.Se)("auth",["user"]),...(0,k.Se)("tm",["teams"])},mounted(){const e=localStorage.getItem("selectedTeam");this.selectedTeam=e?JSON.parse(e):this.teams[0]?.id,this.$nextTick((()=>this._updateFilters()))},methods:{prevDay(){this.date=(0,f.Z)(this.date,1),this._updateFilters()},nextDay(){this.date=(0,p.Z)(this.date,1),this._updateFilters()},_updateFilters(){this.filter.start=this.date,this.filter.end=this.date,this.selectedDate=String(this.filter.start?.toLocaleDateString("sk-SK")),this._emitFilterChanged()},_emitFilterChanged(){this.filter.start&&this.filter.end&&this.filter.team&&(this.$emit("filter-changed",this.filter),localStorage.setItem("selectedTeam",this.filter.team.id))}},watch:{selectedTeam(e){this.filter.team=this.teams.find((t=>t.id==e)),this._emitFilterChanged()},splitDays(){this.time=this.splitDays.map((e=>parseFloat(e.unscheduledTime))).reduce(((e,t)=>e+t),0)}}},b=s(40089);const D=(0,b.Z)(g,[["render",m],["__scopeId","data-v-35b7352e"]]);var y=D,w=s(15002),C=s(36797),v=s.n(C),T=(s(57658),s(2750)),F={computed:{calendarData(){if(!this.subtasks||!this.blockers)return;const e=this._generateBlockers();return{tasks:[...this._generateNonWorking(),...this._generateTasks(),...e.filter((e=>"home_office"!=e.type))],homeoffices:[...e.filter((e=>"home_office"==e.type))]}},splitDays(){const e=[],t={};v()();return this.filter.team.employees.forEach(((s,a)=>{const i=v()(this.filter.start),n=this._getRemainingWorkCapacityMinutes(s);let r=0;this.calendarData.tasks.forEach((e=>{e.subtask?.employee_id!=s.id&&e.blocker?.employee?.id!=s.id||"non-working-hours"==e.type||e.subtask?.is_finished||e.blocker?.is_finished||i.isBefore(v()(),"days")||i.isSame(v()(),"days")||(r+=T.Z._getDifferenceInMinutes(e._real_end,e._real_start))})),this.calendarData.homeoffices.forEach((e=>{e.blocker.employee?.id==s.id&&(t[e.split]=!0)}));const l=n-r;e.push({id:a+1,name:s.name,employee_id:s.id,date:this.filter.start,fullname:`${s.name} ${s.surname}`,initials:s.name.charAt(0).toUpperCase()+s.surname.charAt(0).toUpperCase(),unscheduledTime:l>0?(l/60).toFixed(1):0,isHomeoffice:!!t[a+1]})})),e}},methods:{_generateNonWorking(){const e=[],t=new Date(this.filter.start);let s=null;this.calendarConfig.date=t;const{start:a,end:i}=this._getDayStartEnd();return this.filter.team.employees.forEach(((t,n)=>{(!s||t.work_start{let a=null,i=null;this.filter.team.employees.forEach(((e,t)=>{e.id==s.employee_id&&(a=t+1,i=e)})),s.timeblocks.forEach((n=>{const r=v()(n.start).format("DD-MM-YYYY");r==t&&e.push({id:s.id,start:new Date(n.start),end:new Date(n.end),master_task:s.master_task,name:i?.name,surname:i?.surname,isWeekend:v()(n.start).day()%6==0,initials:i?.name?.charAt(0)?.toUpperCase()+i?.surname?.charAt(0)?.toUpperCase(),split:a,project_code:s.project_code,type:"subtask",subtask:s,_timeblock_id:n.id,_timeblock_is_finished:n.is_finished,_real_start:new Date(n.start),_real_end:new Date(n.end)})}))})),e},_generateBlockers(){const e=[];return this.blockers.forEach((t=>{let s=null,a=null;this.filter.team.employees.forEach(((e,i)=>{e.id==t.employee?.id&&(s=i+1,a=e)})),e.push({blocker:t,split:s,start:new Date(t.start),end:new Date(t.end),type:t.type,isBlocker:!0,initials:`${a?.name[0]}${a?.surname[0]}`,color:"#B00020",draggable:!1,isWeekend:v()(t.start).day()%6==0,_real_start:new Date(t.start),_real_end:new Date(t.end)})})),e},_getDayStartEnd(){return{start:this._setMinutesToDate(0),end:this._setMinutesToDate(1439)}},_setMinutesToDate(e,t=new Date(this.filter.start)){return t.setHours(Math.floor(e/60),e%60,0,0),t},_getRemainingWorkCapacityMinutes(e){const t=v()(this.filter.start),s=v()();if(s.isAfter(t,"days"))return 0;if(s.isBefore(t,"days"))return 60*(e.work_end-e.work_start);const a=60*e.work_start,i=60*e.work_end,n=s.diff(v()().startOf("day"),"minutes");return a>n?i-a:i{this.onFilterChanged(this.filter)})),this.$events.on("on-subtask-deleted",(()=>{this.onFilterChanged(this.filter)})),this.$events.on("on-blocker-edited",(()=>{this.onFilterChanged(this.filter)})),this.$events.on("on-blocker-deleted",(()=>{this.onFilterChanged(this.filter)}))},unmounted(){this.$events.off("on-subtask-edited"),this.$events.off("on-subtask-deleted"),this.$events.off("on-blocker-edited"),this.$events.off("on-blocker-deleted")},methods:{async onFilterChanged(e){this.filter=e;const t={};e.start&&(t.start=v()(e.start).format("YYYY-MM-DD")),e.end&&(t.end=v()(e.end).format("YYYY-MM-DD")),e.team&&(t.team_id=e.team.id);const s=new URLSearchParams(t).toString();try{const{subtasks:e,blockers:t}=await this.$axios.get_auth(`v1/subtasks?${s}`);this.subtasks=e,this.blockers=t,this.hideCal=!0,setTimeout((()=>{this.hideCal=!1}),0)}catch(a){this.$toast.error("Nepodarilo sa nacitat data!")}this._initScrollListener()}}};const Y=(0,b.Z)(M,[["render",n],["__scopeId","data-v-79b7207e"]]);var S=Y}}]); +//# sourceMappingURL=7496.0ed543b2.js.map \ No newline at end of file diff --git a/app/dist/js/7496.0ed543b2.js.map b/app/dist/js/7496.0ed543b2.js.map new file mode 100644 index 0000000..a45dddb --- /dev/null +++ b/app/dist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qB,KACpC5G,KAAK5C,gBAAgB4C,KAAKV,OAAO,IAGlCU,KAAK2G,QAAQC,GAAG,sBAAsB,KACrC5G,KAAK5C,gBAAgB4C,KAAKV,OAAO,IAGlCU,KAAK2G,QAAQC,GAAG,qBAAqB,KACpC5G,KAAK5C,gBAAgB4C,KAAKV,OAAO,IAGlCU,KAAK2G,QAAQC,GAAG,sBAAsB,KACrC5G,KAAK5C,gBAAgB4C,KAAKV,OAAO,GAEnC,EAEAuH,YACC7G,KAAK2G,QAAQG,IAAI,qBACjB9G,KAAK2G,QAAQG,IAAI,sBACjB9G,KAAK2G,QAAQG,IAAI,qBACjB9G,KAAK2G,QAAQG,IAAI,qBAClB,EAEAvG,QAAS,CACRwG,sBAAsBzH,GACrBU,KAAKV,OAASA,EAEd,MAAM0H,EAAiB,CAAC,EAEpB1H,EAAOC,QAASyH,EAAezH,MAAU+C,IAAOhD,EAAOC,OAAOuF,OAAO,eACrExF,EAAOE,MAAOwH,EAAexH,IAAS8C,IAAOhD,EAAOE,KAAKsF,OAAO,eAChExF,EAAOG,OAAQuH,EAAeC,QAAY3H,EAAOG,KAAKW,IAE1D,MAAM8G,EAAkB,IAAIC,gBAAgBH,GAAgBI,WAE5D,IACC,MAAM,SAAExF,EAAQ,SAAEC,SAAoB7B,KAAKqH,OAAOC,SAAU,eAAcJ,KAC1ElH,KAAK4B,SAAWA,EAChB5B,KAAK6B,SAAWA,EAChB7B,KAAK0G,SAAU,EACfa,YAAW,KAAQvH,KAAK0G,SAAU,CAAI,GAAK,EAG5C,CAFE,MAAOc,GACRxH,KAAKyH,OAAOD,MAAM,8BACnB,CAEAxH,KAAK0H,qBACN,IIlFF,MAAM,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,GAAQ,CAAC,YAAY,qBAEzF,O","sources":["webpack://jandl/./src/plugins/tm@dashboard/teams/teams.vue","webpack://jandl/./src/plugins/tm@dashboard/teams/_components/a-team-filter.vue","webpack://jandl/./src/plugins/tm@dashboard/teams/_components/a-team-filter.vue?5918","webpack://jandl/./src/plugins/tm@dashboard/teams/_mixins/TeamsCalendar.mixin.ts","webpack://jandl/./src/plugins/tm@dashboard/teams/teams.vue?577a"],"sourcesContent":["\n\n\n\n","\n\n\n\n","import { render } from \"./a-team-filter.vue?vue&type=template&id=35b7352e&scoped=true\"\nimport script from \"./a-team-filter.vue?vue&type=script&lang=js\"\nexport * from \"./a-team-filter.vue?vue&type=script&lang=js\"\n\nimport \"./a-team-filter.vue?vue&type=style&index=0&id=35b7352e&lang=sass&scoped=true\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-35b7352e\"]])\n\nexport default __exports__","import { setHours, setMinutes } from 'date-fns'\nimport moment \t\t\t\t\tfrom 'moment'\nimport timelineUtils \t\t\tfrom '@/plugins/tm@dashboard/tasks/_utils/timeline.utils'\n\nexport default {\n\tcomputed: {\n\t\tcalendarData() {\n\t\t\tif (!this.subtasks || !this.blockers)\n\t\t\t\treturn\n\n\t\t\tconst blockers = this._generateBlockers()\n\n\t\t\treturn {\n\t\t\t\ttasks: [...this._generateNonWorking(), ...this._generateTasks(), ...blockers.filter(blocker => blocker.type != 'home_office')],\n\t\t\t\thomeoffices: [...blockers.filter(blocker => blocker.type == 'home_office')]\n\t\t\t}\n\t\t},\n\n\t\tsplitDays() {\n\t\t\tconst days = []\n\t\t\tconst homeoffice = {}\n\t\t\tconst now\t\t= moment()\n\n\t\t\tthis.filter.team.employees.forEach((employee, index) => {\n\t\t\t\tconst selectedDate \t\t\t\t= moment(this.filter.start)\n\t\t\t\tconst capacityMinutes \t\t\t= this._getRemainingWorkCapacityMinutes(employee)\n\t\t\t\tlet scheduledCapacityMinutes\t= 0\n\n\t\t\t\tthis.calendarData.tasks.forEach(task => {\n\t\t\t\t\t// console.log(task)\n\t\t\t\t\tif ((task.subtask?.employee_id != employee.id) && (task.blocker?.employee?.id != employee.id))\n\t\t\t\t\t\treturn\n\n\t\t\t\t\tif (task.type == 'non-working-hours' || task.subtask?.is_finished || task.blocker?.is_finished)\n\t\t\t\t\t\treturn\n\n\t\t\t\t\tif (selectedDate.isBefore(moment(), 'days')) {\n\t\t\t\t\t\t// Past\n\t\t\t\t\t\treturn\n\t\t\t\t\t} else if (selectedDate.isSame(moment(), 'days')) {\n\t\t\t\t\t\t// Today\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tscheduledCapacityMinutes += timelineUtils._getDifferenceInMinutes(task._real_end, task._real_start)\n\t\t\t\t\t}\n\t\t\t\t})\n\n\t\t\t\tthis.calendarData.homeoffices.forEach(task => {\n\t\t\t\t\tif (task.blocker.employee?.id != employee.id) return\n\n\t\t\t\t\thomeoffice[task.split] = true\n\t\t\t\t})\n\n\t\t\t\tconst unscheduledTime = capacityMinutes - scheduledCapacityMinutes\n\n\t\t\t\tdays.push({\n\t\t\t\t\tid: index + 1,\n\t\t\t\t\tname: employee.name,\n\t\t\t\t\temployee_id: employee.id,\n\t\t\t\t\tdate: this.filter.start,\n\t\t\t\t\tfullname: `${employee.name} ${employee.surname}`,\n\t\t\t\t\tinitials: employee.name.charAt(0).toUpperCase() + employee.surname.charAt(0).toUpperCase(),\n\t\t\t\t\tunscheduledTime: unscheduledTime > 0 ? (unscheduledTime / 60).toFixed(1) : 0,\n\t\t\t\t\tisHomeoffice: homeoffice[index + 1] ? true : false\n\t\t\t\t})\n\t\t\t})\n\n\t\t\treturn days\n\t\t},\n\t},\n\n\tmethods: {\n\t\t_generateNonWorking() {\n\t\t\tconst nonWorkingHours \t = []\n\t\t\tconst date \t\t\t\t = new Date(this.filter.start)\n\t\t\tlet earliestHour = null\n\t\t\tthis.calendarConfig.date = date\n\n\t\t\tconst { start: dayStart, end: dayEnd } = this._getDayStartEnd()\n\n\t\t\tthis.filter.team.employees.forEach((employee, index) => {\n\t\t\t\tif (!earliestHour || (employee.work_start) < earliestHour)\n\t\t\t\t\tearliestHour = employee.work_start\n\n\n\t\t\t\tnonWorkingHours.push({\n\t\t\t\t\ttitle: \"Non working hours\",\n\t\t\t\t\tstart: dayStart,\n\t\t\t\t\tend: this._setMinutesToDate((employee.work_start + 1.3) * 60),\n\t\t\t\t\tsplit: index + 1,\n\t\t\t\t\ttype: 'non-working-hours',\n\t\t\t\t\tdraggable: false\n\t\t\t\t})\n\n\t\t\t\tnonWorkingHours.push({\n\t\t\t\t\ttitle: \"Non working hours\",\n\t\t\t\t\tstart: this._setMinutesToDate((employee.work_end + 1.3) * 60),\n\t\t\t\t\tend: dayEnd,\n\t\t\t\t\tsplit: index + 1,\n\t\t\t\t\ttype: 'non-working-hours',\n\t\t\t\t\tdraggable: false\n\t\t\t\t})\n\t\t\t})\n\n\t\t\tthis.calendarConfig.scrollHour = (earliestHour) - 1\n\t\t\treturn nonWorkingHours\n\t\t},\n\n\t\t_generateTasks() {\n\t\t\tconst tasks = []\n\t\t\tconst calendarDate \t= moment(this.filter.start).format('DD-MM-YYYY')\n\n\t\t\tthis.subtasks.forEach(subtask => {\n\t\t\t\tlet split \t = null\n\t\t\t\tlet employee = null\n\n\t\t\t\tthis.filter.team.employees.forEach((e, index) => {\n\t\t\t\t\tif (e.id == subtask.employee_id) {\n\t\t\t\t\t\tsplit = index + 1\n\t\t\t\t\t\temployee = e\n\t\t\t\t\t}\n\t\t\t\t})\n\n\t\t\t\tsubtask.timeblocks.forEach(timeblock => {\n\t\t\t\t\tconst formattedDate = moment(timeblock.start).format('DD-MM-YYYY')\n\n\t\t\t\t\tif (formattedDate == calendarDate) {\n\t\t\t\t\t\ttasks.push({\n\t\t\t\t\t\t\tid: subtask.id,\n\t\t\t\t\t\t\tstart: new Date(timeblock.start),\n\t\t\t\t\t\t\tend: new Date(timeblock.end),\n\t\t\t\t\t\t\tmaster_task: subtask.master_task,\n\t\t\t\t\t\t\tname: employee?.name,\n\t\t\t\t\t\t\tsurname: employee?.surname,\n\t\t\t\t\t\t\t// date: new Date(timeblock.start),\n\t\t\t\t\t\t\tisWeekend: moment(timeblock.start).day() % 6 == 0,\n\t\t\t\t\t\t\tinitials: employee?.name?.charAt(0)?.toUpperCase() + employee?.surname?.charAt(0)?.toUpperCase(),\n\t\t\t\t\t\t\tsplit: split,\n\t\t\t\t\t\t\tproject_code: subtask.project_code,\n\t\t\t\t\t\t\ttype: 'subtask',\n\t\t\t\t\t\t\tsubtask,\n\t\t\t\t\t\t\t_timeblock_id: timeblock.id,\n\t\t\t\t\t\t\t_timeblock_is_finished: timeblock.is_finished,\n\t\t\t\t\t\t\t_real_start: new Date(timeblock.start),\n\t\t\t\t\t\t\t_real_end: new Date(timeblock.end)\n\t\t\t\t\t\t})\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t})\n\n\t\t\treturn tasks\n\t\t},\n\n\t\t_generateBlockers() {\n\t\t\tconst blockers = []\n\n\t\t\tthis.blockers.forEach(blocker => {\n\t\t\t\tlet split \t = null\n\t\t\t\tlet employee = null\n\n\t\t\t\tthis.filter.team.employees.forEach((e, index) => {\n\t\t\t\t\tif (e.id == blocker.employee?.id) {\n\t\t\t\t\t\tsplit = index + 1\n\t\t\t\t\t\temployee = e\n\t\t\t\t\t}\n\t\t\t\t})\n\n\t\t\t\tblockers.push({\n\t\t\t\t\tblocker,\n\t\t\t\t\tsplit,\n\t\t\t\t\tstart: new Date(blocker.start),\n\t\t\t\t\tend: new Date(blocker.end),\n\t\t\t\t\ttype: blocker.type,\n\t\t\t\t\tisBlocker: true,\n\t\t\t\t\tinitials: `${employee?.name[0]}${employee?.surname[0]}`,\n\t\t\t\t\tcolor: '#B00020',\n\t\t\t\t\tdraggable: false,\n\t\t\t\t\tisWeekend: moment(blocker.start).day() % 6 == 0,\n\t\t\t\t\t_real_start: new Date(blocker.start),\n\t\t\t\t\t_real_end: new Date(blocker.end)\n\t\t\t\t})\n\t\t\t})\n\n\t\t\treturn blockers\n\t\t},\n\n\t\t_getDayStartEnd() {\n\t\t\treturn {\n\t\t\t\tstart: this._setMinutesToDate(0),\n\t\t\t\tend: this._setMinutesToDate(1439)\n\t\t\t}\n\t\t},\n\n\t\t_setMinutesToDate(minutes, date = new Date(this.filter.start)) {\n\t\t\tdate.setHours(Math.floor(minutes / 60), minutes % 60, 0, 0)\n\t\t\treturn date\n\t\t},\n\n\t\t_getRemainingWorkCapacityMinutes(employee) {\n\t\t\tconst date = moment(this.filter.start)\n\t\t\tconst now \t= moment()\n\n\t\t\tif (now.isAfter(date, 'days')) {\n\t\t\t\t// Past dates\n\t\t\t\treturn 0\n\t\t\t} else if (now.isBefore(date, 'days')) {\n\t\t\t\t// Future dates\n\t\t\t\treturn (employee.work_end - employee.work_start) * 60\n\t\t\t}\n\n\t\t\t// Today\n\t\t\tconst workStartMinutes \t\t\t\t= employee.work_start * 60\n\t\t\tconst workEndMinutes \t\t\t\t= employee.work_end * 60\n\t\t\tconst elapsedMinutesOfCurrenyDay = now.diff(moment().startOf('day'), 'minutes')\n\t\t\t\n\t\t\tif (workStartMinutes > elapsedMinutesOfCurrenyDay)\n\t\t\t\treturn workEndMinutes - workStartMinutes\n\t\t\telse if (workEndMinutes < elapsedMinutesOfCurrenyDay)\n\t\t\t\treturn 0\n\t\t\telse\n\t\t\t\treturn workEndMinutes - elapsedMinutesOfCurrenyDay\n\t\t}\n\t}\n}","import { render } from \"./teams.vue?vue&type=template&id=79b7207e&scoped=true\"\nimport script from \"./teams.vue?vue&type=script&lang=js\"\nexport * from \"./teams.vue?vue&type=script&lang=js\"\n\nimport \"./teams.vue?vue&type=style&index=0&id=79b7207e&lang=sass&scoped=true\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-79b7207e\"]])\n\nexport default __exports__"],"names":["ref","_createElementBlock","_hoisted_1","_ctx","getters","_createBlock","_component_A_team_filter","onFilterChanged","$options","$data","_component_Z_timeline","splits","class","_component_v_row","_createVNode","_component_v_autocomplete","items","label","variant","_createElementVNode","_component_v_btn","onClick","src","require","alt","_component_v_text_field","disabled","mixins","AutocompleteMixin","emits","props","splitDays","type","Array","default","data","date","Date","selectedTeam","selectedDate","time","filter","start","end","team","computed","mapGetters","mounted","savedTeam","localStorage","getItem","this","JSON","parse","teams","id","$nextTick","_updateFilters","methods","prevDay","subDays","nextDay","addDays","String","toLocaleDateString","_emitFilterChanged","$emit","setItem","watch","find","map","day","parseFloat","unscheduledTime","reduce","acc","val","__exports__","calendarData","subtasks","blockers","_generateBlockers","tasks","_generateNonWorking","_generateTasks","blocker","homeoffices","days","homeoffice","moment","employees","forEach","employee","index","capacityMinutes","_getRemainingWorkCapacityMinutes","scheduledCapacityMinutes","task","subtask","employee_id","is_finished","isBefore","isSame","timelineUtils","_real_end","_real_start","split","push","name","fullname","surname","initials","charAt","toUpperCase","toFixed","isHomeoffice","nonWorkingHours","earliestHour","calendarConfig","dayStart","dayEnd","_getDayStartEnd","work_start","title","_setMinutesToDate","draggable","work_end","scrollHour","calendarDate","format","e","timeblocks","timeblock","formattedDate","master_task","isWeekend","project_code","_timeblock_id","_timeblock_is_finished","isBlocker","color","minutes","setHours","Math","floor","now","isAfter","workStartMinutes","workEndMinutes","elapsedMinutesOfCurrenyDay","diff","startOf","TeamsCalendar","FilterMixin","components","ATeamFilter","ZTimeline","hideCal","$events","on","unmounted","off","async","urlQueryObject","team_id","queryParameters","URLSearchParams","toString","$axios","get_auth","setTimeout","error","$toast","_initScrollListener","render"],"sourceRoot":""} \ No newline at end of file diff --git a/app/dist/js/7133.bb841a39.js b/app/dist/js/7637.fdf639b1.js similarity index 58% rename from app/dist/js/7133.bb841a39.js rename to app/dist/js/7637.fdf639b1.js index cf74ef2..8e6cc27 100644 --- a/app/dist/js/7133.bb841a39.js +++ b/app/dist/js/7637.fdf639b1.js @@ -1,2 +1,2 @@ -"use strict";(self["webpackChunkjandl"]=self["webpackChunkjandl"]||[]).push([[7133],{70026:function(e,t){t["Z"]={data(){return{header:{initialized:!1,marginTop:0,calendar_previousScrollPosition:0,isVisible:!0}}},unmounted(){this.$refs.page?.querySelector(".vuecal__bg")?.removeEventListener("scroll",this.handleScroll)},methods:{_initScrollListener(e=0){if(this.initialized)return;const t=this.$refs.page?.querySelector(".vuecal__bg");if(!t)return setTimeout((()=>{e<20&&this._initScrollListener(e+1)}),200);t.addEventListener("scroll",this._handleScroll),this.initialized=!0,this.header.calendar_previousScrollPosition=t.scrollTop},_handleScroll(e){const t=document.querySelector("div.subheader");this.initialized?(this.header.calendar_previousScrollPosition>e.target.scrollTop?this.header.isVisible||this.showHeader():(t.offsetHeight,Math.abs(e.target.scrollTop),this.header.isVisible&&this.hideHeader()),this.header.calendar_previousScrollPosition=e.target.scrollTop):this.header.calendar_previousScrollPosition=e.target.scrollTop},hideHeader(){const e=document.querySelector("div.subheader");e.style.transition="margin-top 0.5s",e.style.marginTop=`-${e.offsetHeight}px`,this.header.isVisible=!1,setTimeout((()=>{e.style.transition=""}),500)},showHeader(){const e=document.querySelector("div.subheader");e.style.transition="margin-top 0.5s",e.style.marginTop="0",this.header.isVisible=!0,setTimeout((()=>{e.style.transition=""}),500)}}}},2750:function(e,t,s){s(57658);var i=s(67462),a=s(85174),n=s(36797),l=s.n(n);t["Z"]={generateTimelineTasks(e,t,s){const{tasks:i,blockers:a,homeoffices:n}=this.generateTimelineEvents(e,s,t),{nonWorkingHours:l}=this.generateTimelineNonWorkingHours(t,s);return{tasks:i,blockers:a,nonWorkingHours:l,homeoffices:n}},getUnscheduledTime(e){let t=0;return e.forEach((e=>t+=e.duration-e.spent_time)),t},isWeekend(e){return l()(e).day()%6==0},generateTimelineEvents(e,t,s){let i=[];const a=[];return e.forEach((e=>{["blocker","adhoc","home_office","vacation","free_day"].includes(e.type)?i=[...i,...this._generateEventsFromBlocker(e,s)]:e.timeblocks?.forEach((i=>{a.push(this._composeTimelineEvent(e,t,s,i))}))})),{tasks:a,blockers:i.filter((e=>"home_office"!=e.type)),homeoffices:i.filter((e=>"home_office"==e.type))}},_composeTimelineEvent(e,t,s,n){const l=(0,i.Z)(s,new Date(n.start));return{id:e.id,start:(0,a.Z)(new Date(n.start),l),end:(0,a.Z)(new Date(n.end),l),master_task:e.master_task,date:new Date(n.start),isWeekend:this.isWeekend(n.start),initials:t.name.charAt(0).toUpperCase()+t.surname.charAt(0).toUpperCase(),split:this._getSplitFromDate(s,n.start),project_code:e.project_code,subtask:e,type:"subtask",_timeblock_id:n.id,_timeblock_is_finished:n.is_finished,_real_start:new Date(n.start),_real_end:new Date(n.end)}},_generateEventsFromBlocker(e,t){const s=l()(e.start),n=l()(e.end),o=s.isSame(n,"date")?[l()(s).format("YYYY-MM-DD")]:this._getDatesInRange(s,n),r=o.map((o=>{const r=(0,i.Z)(t,new Date(o)),c=new Date(l()(o).set({hours:s.hours(),minutes:s.minutes()}).format("YYYY-MM-DD HH:mm")),d=new Date(l()(o).set({hours:n.hours(),minutes:n.minutes()}).format("YYYY-MM-DD HH:mm"));return{blocker:e,split:this._getSplitFromDate(t,o),start:(0,a.Z)(c,r),end:(0,a.Z)(d,r),date:new Date(o),type:e.type,isBlocker:!0,initials:`${e.employee?.name[0]}${e.employee?.surname[0]}`,color:"#B00020",draggable:!1,_real_start:c,_real_end:d}}));return r},_getDatesInRange(e,t){const s=[];while(e<=t)s.push(l()(e).format("YYYY-MM-DD")),e.add(1,"day");return s},generateTimelineNonWorkingHours(e,t){const s=[],{start:i,end:a}=this._getDayStartEnd(e);for(let n=0;n<7;n++)s.push({title:"Non working hours",start:i,end:this._setMinutesToDate(60*t.work_start,e),type:"non-working-hours",split:n+1,draggable:!1}),s.push({title:"Non working hours",start:this._setMinutesToDate(60*t.work_end,e),end:a,type:"non-working-hours",split:n+1,draggable:!1});return{nonWorkingHours:s}},_getSplitFromDate(e,t){return-1*(0,i.Z)(new Date(e),new Date(t))+1},_getDifferenceInHours(e,t){return this._getDifferenceInMinutes(e,t)/60},_getDifferenceInMinutes(e,t){let s=(e.getTime()-t.getTime())/1e3;return s/=60,Math.abs(Math.round(s))},_getDayStartEnd(e){return{start:this._setMinutesToDate(0,e),end:this._setMinutesToDate(1439,e)}},_setMinutesToDate(e,t){const s=new Date(t);return s.setHours(Math.floor(e/60),e%60,0,0),s}}},10353:function(e,t,s){s.d(t,{Z:function(){return Q}});var i=s(73396),a=s(87139),n=s(49242),l=s(67312),o=s(53289),r=s(80678);const c=e=>((0,i.dD)("data-v-8b9aedf6"),e=e(),(0,i.Cn)(),e),d={class:"calendar-wrapper"},u={class:"colWidth h-100 d-flex flex-column"},m={key:0,class:"d-flex align-center"},h=["src"],k={class:"weekday-label"},g={key:1,class:"d-flex align-center"},_=["src"],p={class:"weekday-label"},f={key:2},b={class:"day-name"},v={class:"unscheduled-time-initials d-flex align-center justify-center"},y={class:"text-wrap me-4"},w={class:"mb-0 mt-0 unscheduled-time-name"},D={class:"mb-0 mt-0"},T={class:"d-flex align-center justify-center"},C=c((()=>(0,i._)("div",{class:"time-column-line"},null,-1))),M={key:0,class:"custom-event-body non-working-event colWidth h-100 d-flex flex-column justify-center"},S={class:"d-flex justify-center align-center"},$={class:"mb-0 ms-2"},E={key:0,class:"project-code"},H={key:1},x={class:"d-flex align-center event-details event-initials-wrapper"},z={class:"event-initials d-flex justify-center align-center"},W={class:"event-initials-date"},Y={key:2,class:"d-flex align-center"},j={key:0,class:"ml-1"},B={class:"event-footer d-flex"},L=["src"],Z=["src"],q=["src"],F=["src"],I=["src"],N=["src"];function V(e,t,c,V,K,P){const R=(0,i.up)("Vue-cal");return(0,i.wg)(),(0,i.iD)("div",d,[(0,i.Wm)(R,{"hide-view-selector":!0,"hide-title-bar":!0,"disable-views":["years","year","month","week"],"active-view":"day","selected-date":c.calConfig.date,onEventClick:P.taskClicked,"editable-events":K.vueCalConfig.editing,events:c.calData.tasks,unscheduledTime:c.calData.unscheduled_times,"overlaps-per-time-step":!1,showTimeInCells:!1,"time-cell-height":K.timeCellHeight,"snap-to-time":15,"scroll-to-hour":c.calConfig.scrollHour,"split-days":c.splits,"sticky-split-labels":!0,"min-split-width":140,onReady:t[0]||(t[0]=e=>P.onReady()),onViewChange:P.weekChanged,onEventDrop:P.eventMoved,onEventFocus:P.eventFocused},{"split-label":(0,i.w5)((({split:e})=>[(0,i._)("div",u,[e.date?((0,i.wg)(),(0,i.iD)("span",m,[e.isHomeoffice?((0,i.wg)(),(0,i.iD)("img",{key:0,src:s(87500),class:"mr-2"},null,8,h)):(0,i.kq)("",!0),(0,i._)("p",k,(0,a.zw)(P.getHeadingDate(e.date)),1)])):((0,i.wg)(),(0,i.iD)("span",g,[e.isHomeoffice?((0,i.wg)(),(0,i.iD)("img",{key:0,src:s(87500),class:"mr-2"},null,8,_)):(0,i.kq)("",!0),(0,i._)("p",p,(0,a.zw)(e.name),1)])),e.date?((0,i.wg)(),(0,i.iD)("span",f,[(0,i._)("p",b,(0,a.zw)(e.date.toLocaleDateString("en-EN",{weekday:"long"})),1)])):(0,i.kq)("",!0),(0,i._)("div",{class:(0,a.C_)(["unscheduled-time d-flex align-center text-left",{"vuecal__cell-split--weekend":e.isWeekend}])},[(0,i._)("div",v,[(0,i._)("p",null,(0,a.zw)(e.initials),1)]),(0,i._)("div",y,[(0,i._)("p",w,(0,a.zw)(e.fullname),1),(0,i._)("h1",D,(0,a.zw)(e.unscheduledTime)+" h",1)])],2)])])),"time-cell":(0,i.w5)((({hours:e,minutes:t})=>[(0,i._)("span",T,[(0,i._)("p",null,(0,a.zw)(e)+":"+(0,a.zw)(String(t).padStart(2,"0")),1),C])])),event:(0,i.w5)((({event:e})=>["non-working-hours"==e.type?((0,i.wg)(),(0,i.iD)("div",M,[(0,i._)("div",S,[(0,i.Wm)(o.t,{icon:"mdi-cancel",color:"black"}),(0,i._)("h3",$,(0,a.zw)(e.title),1)])])):["subtask","blocker","adhoc","vacation","free_day"].includes(e.type)?((0,i.wg)(),(0,i.iD)("div",{key:1,class:(0,a.C_)(["custom-event-body colWidth h-100 d-flex flex-column justify-space-between",{"short-event":P.getEventLength(e)<=9e6,"mini-event":P.getEventLength(e)<=54e5,"micro-event":P.getEventLength(e)<=36e5}]),style:(0,a.j5)({backgroundColor:e._timeblock_is_finished||e.subtask?.is_finished?"#dedfe0":e.color||e.subtask?.color})},[(0,i._)("div",{class:(0,a.C_)(["event-content",{"is-blocker":e.isBlocker}])},["subtask"==e.type?((0,i.wg)(),(0,i.iD)(i.HY,{key:0},[e.subtask.project_code?((0,i.wg)(),(0,i.iD)("small",E,(0,a.zw)(e.subtask.project_code),1)):(0,i.kq)("",!0),(0,i._)("h3",null,(0,a.zw)(e.subtask.title??e.subtask.master_task?.name??e.subtask.master_task),1)],64)):((0,i.wg)(),(0,i.iD)("h3",H,(0,a.zw)(e.blocker.name),1)),(0,i._)("div",x,[(0,i._)("div",z,[(0,i._)("small",null,(0,a.zw)(e.initials),1)]),(0,i._)("small",W,(0,a.zw)(e.date?.toLocaleDateString("sk-SK")),1)]),"subtask"==e.type?((0,i.wg)(),(0,i.iD)("div",Y,[(0,i.Wm)(o.t,{icon:"mdi-skull-outline",size:"small"}),e?.subtask.deadline?((0,i.wg)(),(0,i.iD)("small",j,(0,a.zw)(P.getDeadline(e?.subtask)),1)):((0,i.wg)(),(0,i.j4)(r.N,{key:1,text:"Deadline z Mastertasku",location:"bottom"},{activator:(0,i.w5)((({props:t})=>[e?.subtask?.deadline?(0,i.kq)("",!0):((0,i.wg)(),(0,i.iD)("small",(0,i.dG)({key:0,class:"cursor-pointer ml-1"},t),(0,a.zw)(P.getDeadline(e?.subtask))+"*",17))])),_:2},1024))])):(0,i.kq)("",!0)],2),(0,i._)("div",B,["adhoc"==e.type?((0,i.wg)(),(0,i.iD)(i.HY,{key:0},[(0,i.Wm)(l.T,{rounded:"",class:"event-footer-button me-2",onClick:(0,n.iM)((t=>P.editBlocker(e)),["stop"])},{default:(0,i.w5)((()=>[(0,i._)("img",{src:s(60666),alt:""},null,8,L)])),_:2},1032,["onClick"]),(0,i.Wm)(l.T,{rounded:"",class:"event-footer-button me-2",onClick:(0,n.iM)((t=>P.deleteBlocker(e)),["stop"])},{default:(0,i.w5)((()=>[(0,i._)("img",{src:s(27484),alt:""},null,8,Z)])),_:2},1032,["onClick"])],64)):"subtask"==e.type?((0,i.wg)(),(0,i.iD)(i.HY,{key:1},[(0,i.Wm)(l.T,{rounded:"",class:(0,a.C_)(["event-footer-button me-2",{completed:e.subtask?.is_finished}]),onClick:(0,n.iM)((t=>P.completeTask(e)),["stop"])},{default:(0,i.w5)((()=>[(0,i._)("img",{src:s(9003),alt:""},null,8,q)])),_:2},1032,["class","onClick"]),(0,i.Wm)(l.T,{rounded:"",class:(0,a.C_)(["event-footer-button me-2",{completed:e._timeblock_is_finished}]),onClick:(0,n.iM)((t=>P.toggleTimeblockIsFinished(e)),["stop"])},{default:(0,i.w5)((()=>[(0,i._)("img",{src:s(53830),alt:""},null,8,F)])),_:2},1032,["class","onClick"]),(0,i.Wm)(l.T,{rounded:"",class:"event-footer-button me-2",onClick:(0,n.iM)((t=>P.editTask(e)),["stop"])},{default:(0,i.w5)((()=>[(0,i._)("img",{src:s(34413),alt:""},null,8,I)])),_:2},1032,["onClick"]),(0,i.Wm)(l.T,{rounded:"",class:"event-footer-button me-2",onClick:(0,n.iM)((t=>P.deleteTask(e)),["stop"])},{default:(0,i.w5)((()=>[(0,i._)("img",{src:s(27484),alt:""},null,8,N)])),_:2},1032,["onClick"])],64)):(0,i.kq)("",!0)])],6)):(0,i.kq)("",!0)])),_:1},8,["selected-date","onEventClick","editable-events","events","unscheduledTime","time-cell-height","scroll-to-hour","split-days","onViewChange","onEventDrop","onEventFocus"])])}var K=s(85174),P=s(34407),R=s(20065),U=s(36797),A=s.n(U),O={props:{calData:{type:Object,required:!0,default(){return{}}},calConfig:{type:Object,required:!0,default(){return{date:new Date,scrollHour:7}}},splits:{type:Array,required:!1,default(){return[]}}},data(){return{vueCalConfig:{editing:{title:!1,drag:!0,resize:!1,delete:!1,create:!1}},focusedEventId:null,timeCellHeight:100,tmUtils:P.Z}},computed:{...(0,R.Se)("tm",["mastertasks"])},methods:{getDeadline(e){if(e.deadline)return A()(e.deadline).format("DD.MM.yyyy");if(!this.mastertasks)return"";const t=this.mastertasks.find((t=>t.id===e.master_task_id));return A()(t).format("DD.MM.yyyy")?A()(t.deadline).format("DD.MM.yyyy"):""},weekChanged(){const e=this.$el.getElementsByClassName("vuecal__scrollable-body")[0];e.scrollLeft=0},async eventMoved({event:e,newSplit:t}){const s=(0,K.Z)(this.calConfig.date,t-1),i=s.setHours(Math.round(e.startTimeMinutes/60),Math.round(e.startTimeMinutes%60),0),a=s.setHours(Math.round(e.endTimeMinutes/60),Math.round(e.endTimeMinutes%60),0),n=this.splits.find((e=>e.id==t));if("Dashboard - Tasks"==this.$route.name){const t={...e.subtask,timeblocks:[...e.subtask.timeblocks,{id:e._timeblock_id,is_finished:0,start:P.Z.formatDateTimeForBackend(i),end:P.Z.formatDateTimeForBackend(a)}],timesheets:e.subtask.timesheets.map((e=>(delete e.employee_name,e)))};try{const{subtask:e}=await this.$axios.put_auth(`v1/subtasks/${t.id}`,t);this.$events.emit("on-subtask-edited",e),e.employee_id==this.$store.getters["auth/user"].id&&this.$events.emit("show-task-add-time-modal",{subtask:e})}catch(l){this.$toast.error(l.message||l)}}else if("Dashboard - Teams"==this.$route.name){const t={...e.subtask,employee_id:n.employee_id,timeblocks:[...e.subtask.timeblocks,{id:e._timeblock_id,is_finished:0,start:P.Z.formatDateTimeForBackend(e.start),end:P.Z.formatDateTimeForBackend(e.end)}],timesheets:e.subtask.timesheets.map((e=>(delete e.employee_name,e)))};try{const{subtask:e}=await this.$axios.put_auth(`v1/subtasks/${t.id}`,t);this.$events.emit("on-subtask-edited",e)}catch(l){this.$toast.error(l.message||l)}}},onReady(){this.correctMargins()},correctMargins(){if(!this.$el.getElementsByClassName("vuecal__split-days-headers").length)return;const e=this.$el.getElementsByClassName("vuecal__split-days-headers")[0].clientHeight;this.$el.getElementsByClassName("vuecal__time-column")[0].style.marginTop=`${e}px`,this.$el.getElementsByClassName("vuecal__cells-body")[0].style.marginTop=`${e}px`},getHeadingDate(e){const t=new Date(e),s=new Date,i=new Date((new Date).setDate(s.getDate()-1)),a=new Date((new Date).setDate(s.getDate()+1));return s.toLocaleDateString("sk-SK")===t.toLocaleDateString("sk-SK")?"Dnes":i.toLocaleDateString("sk-SK")===t.toLocaleDateString("sk-SK")?"Včera":a.toLocaleDateString("sk-SK")===t.toLocaleDateString("sk-SK")?"Zajtra":t.toLocaleDateString("sk-SK")},getEventLength(e){return e.end.getTime()-e.start.getTime()},taskClicked(e){},eventFocused(e){this.focusedEventId=e.task_id},completeTask({subtask:e}){this.$events.emit("show-complete-task-modal",{subtask:e})},async toggleTimeblockIsFinished(e){const t=e.subtask,s=t.timeblocks.find((t=>t.id==e._timeblock_id));s.is_finished=s?.is_finished?0:1;try{const{data:e}=await this.$axios.put_auth(`v1/timeblocks/${s.id}`,s);t.timeblocks=t.timeblocks.map((t=>t.id==e.id?e:t)),this.$events.emit("on-subtask-edited",t),s.is_finished&&this.$events.emit("show-task-add-time-modal",{subtask:t})}catch(i){this.$toast.error(i.message||i)}},editTask({subtask:e}){this.$events.emit("show-subtask-modal",{subtask:e})},deleteTask({subtask:e}){this.$events.emit("show-delete-task-modal",{subtask:e})},editBlocker({blocker:e}){this.$events.emit("show-blocker-modal",{blocker:e})},deleteBlocker({blocker:e}){this.$events.emit("show-delete-blocker-modal",{blocker:e})}}},G=s(40089);const J=(0,G.Z)(O,[["render",V],["__scopeId","data-v-8b9aedf6"]]);var Q=J},9003:function(e,t,s){e.exports=s.p+"img/checkmark-double.8bc9494b.svg"},87500:function(e,t,s){e.exports=s.p+"img/home.a9495a95.svg"},35902:function(e,t,s){e.exports=s.p+"img/icon-next.25e7a4f4.svg"},38351:function(e,t,s){e.exports=s.p+"img/icon-prev.22ba0fa6.svg"}}]); -//# sourceMappingURL=7133.bb841a39.js.map \ No newline at end of file +"use strict";(self["webpackChunkjandl"]=self["webpackChunkjandl"]||[]).push([[7637],{70026:function(e,t){t["Z"]={data(){return{header:{initialized:!1,marginTop:0,calendar_previousScrollPosition:0,isVisible:!0}}},unmounted(){this.$refs.page?.querySelector(".vuecal__bg")?.removeEventListener("scroll",this.handleScroll)},methods:{_initScrollListener(e=0){if(this.initialized)return;const t=this.$refs.page?.querySelector(".vuecal__bg");if(!t)return setTimeout((()=>{e<20&&this._initScrollListener(e+1)}),200);t.addEventListener("scroll",this._handleScroll),this.initialized=!0,this.header.calendar_previousScrollPosition=t.scrollTop},_handleScroll(e){const t=document.querySelector("div.subheader");this.initialized?(this.header.calendar_previousScrollPosition>e.target.scrollTop?this.header.isVisible||this.showHeader():(t.offsetHeight,Math.abs(e.target.scrollTop),this.header.isVisible&&this.hideHeader()),this.header.calendar_previousScrollPosition=e.target.scrollTop):this.header.calendar_previousScrollPosition=e.target.scrollTop},hideHeader(){const e=document.querySelector("div.subheader");e.style.transition="margin-top 0.5s",e.style.marginTop=`-${e.offsetHeight}px`,this.header.isVisible=!1,setTimeout((()=>{e.style.transition=""}),500)},showHeader(){const e=document.querySelector("div.subheader");e.style.transition="margin-top 0.5s",e.style.marginTop="0",this.header.isVisible=!0,setTimeout((()=>{e.style.transition=""}),500)}}}},2750:function(e,t,s){s(57658);var i=s(67462),a=s(85174),n=s(36797),l=s.n(n);t["Z"]={generateTimelineTasks(e,t,s){const{tasks:i,blockers:a,homeoffices:n}=this.generateTimelineEvents(e,s,t),{nonWorkingHours:l}=this.generateTimelineNonWorkingHours(t,s);return{tasks:i,blockers:a,nonWorkingHours:l,homeoffices:n}},getUnscheduledTime(e){let t=0;return e.forEach((e=>t+=e.duration-e.spent_time)),t},isWeekend(e){return l()(e).day()%6==0},generateTimelineEvents(e,t,s){let i=[];const a=[];return e.forEach((e=>{["blocker","adhoc","home_office","vacation","free_day"].includes(e.type)?i=[...i,...this._generateEventsFromBlocker(e,s)]:e.timeblocks?.forEach((i=>{a.push(this._composeTimelineEvent(e,t,s,i))}))})),{tasks:a,blockers:i.filter((e=>"home_office"!=e.type)),homeoffices:i.filter((e=>"home_office"==e.type))}},_composeTimelineEvent(e,t,s,n){const l=(0,i.Z)(s,new Date(n.start));return{id:e.id,start:(0,a.Z)(new Date(n.start),l),end:(0,a.Z)(new Date(n.end),l),master_task:e.master_task,date:new Date(n.start),isWeekend:this.isWeekend(n.start),initials:t.name.charAt(0).toUpperCase()+t.surname.charAt(0).toUpperCase(),split:this._getSplitFromDate(s,n.start),project_code:e.project_code,subtask:e,type:"subtask",_timeblock_id:n.id,_timeblock_is_finished:n.is_finished,_real_start:new Date(n.start),_real_end:new Date(n.end)}},_generateEventsFromBlocker(e,t){const s=l()(e.start),n=l()(e.end),o=s.isSame(n,"date")?[l()(s).format("YYYY-MM-DD")]:this._getDatesInRange(s,n),r=o.map((o=>{const r=(0,i.Z)(t,new Date(o)),c=new Date(l()(o).set({hours:s.hours(),minutes:s.minutes()}).format("YYYY-MM-DD HH:mm")),d=new Date(l()(o).set({hours:n.hours(),minutes:n.minutes()}).format("YYYY-MM-DD HH:mm"));return{blocker:e,split:this._getSplitFromDate(t,o),start:(0,a.Z)(c,r),end:(0,a.Z)(d,r),date:new Date(o),type:e.type,isBlocker:!0,initials:`${e.employee?.name[0]}${e.employee?.surname[0]}`,color:"#B00020",draggable:!1,_real_start:c,_real_end:d}}));return r},_getDatesInRange(e,t){const s=[];while(e<=t)s.push(l()(e).format("YYYY-MM-DD")),e.add(1,"day");return s},generateTimelineNonWorkingHours(e,t){const s=[],{start:i,end:a}=this._getDayStartEnd(e);for(let n=0;n<7;n++)s.push({title:"Non working hours",start:i,end:this._setMinutesToDate(60*t.work_start,e),type:"non-working-hours",split:n+1,draggable:!1}),s.push({title:"Non working hours",start:this._setMinutesToDate(60*t.work_end,e),end:a,type:"non-working-hours",split:n+1,draggable:!1});return{nonWorkingHours:s}},_getSplitFromDate(e,t){return-1*(0,i.Z)(new Date(e),new Date(t))+1},_getDifferenceInHours(e,t){return this._getDifferenceInMinutes(e,t)/60},_getDifferenceInMinutes(e,t){let s=(e.getTime()-t.getTime())/1e3;return s/=60,Math.abs(Math.round(s))},_getDayStartEnd(e){return{start:this._setMinutesToDate(0,e),end:this._setMinutesToDate(1439,e)}},_setMinutesToDate(e,t){const s=new Date(t);return s.setHours(Math.floor(e/60),e%60,0,0),s}}},15002:function(e,t,s){s.d(t,{Z:function(){return Q}});var i=s(73396),a=s(87139),n=s(49242),l=s(67312),o=s(53289),r=s(80678);const c=e=>((0,i.dD)("data-v-0b9e41ad"),e=e(),(0,i.Cn)(),e),d={class:"calendar-wrapper"},u={class:"colWidth h-100 d-flex flex-column"},m={key:0,class:"d-flex align-center"},h=["src"],k={class:"weekday-label"},g={key:1,class:"d-flex align-center"},_=["src"],p={class:"weekday-label"},f={key:2},b={class:"day-name"},v={class:"unscheduled-time-initials d-flex align-center justify-center"},y={class:"text-wrap me-4"},w={class:"mb-0 mt-0 unscheduled-time-name"},D={class:"mb-0 mt-0"},T={class:"d-flex align-center justify-center"},C=c((()=>(0,i._)("div",{class:"time-column-line"},null,-1))),M={key:0,class:"custom-event-body non-working-event colWidth h-100 d-flex flex-column justify-center"},S={class:"d-flex justify-center align-center"},$={class:"mb-0 ms-2"},E={key:0,class:"project-code"},H={key:1},x={class:"d-flex align-center event-details event-initials-wrapper"},z={class:"event-initials d-flex justify-center align-center"},W={class:"event-initials-date"},B={key:2,class:"d-flex align-center"},j={key:0,class:"ml-1"},Y={class:"event-footer d-flex"},L=["src"],Z=["src"],q=["src"],F=["src"],I=["src"],N=["src"];function V(e,t,c,V,K,A){const P=(0,i.up)("Vue-cal");return(0,i.wg)(),(0,i.iD)("div",d,[(0,i.Wm)(P,{"hide-view-selector":!0,"hide-title-bar":!0,"disable-views":["years","year","month","week"],"active-view":"day","selected-date":c.calConfig.date,onEventClick:A.taskClicked,"editable-events":K.vueCalConfig.editing,events:c.calData.tasks,unscheduledTime:c.calData.unscheduled_times,"overlaps-per-time-step":!1,showTimeInCells:!1,"time-cell-height":K.timeCellHeight,"snap-to-time":15,"scroll-to-hour":c.calConfig.scrollHour,"split-days":c.splits,"sticky-split-labels":!0,"min-split-width":140,onReady:t[0]||(t[0]=e=>A.onReady()),onViewChange:A.weekChanged,onEventDrop:A.eventMoved,onEventFocus:A.eventFocused},{"split-label":(0,i.w5)((({split:e})=>[(0,i._)("div",u,[e.date?((0,i.wg)(),(0,i.iD)("span",m,[e.isHomeoffice?((0,i.wg)(),(0,i.iD)("img",{key:0,src:s(87500),class:"mr-2"},null,8,h)):(0,i.kq)("",!0),(0,i._)("p",k,(0,a.zw)(A.getHeadingDate(e.date)),1)])):((0,i.wg)(),(0,i.iD)("span",g,[e.isHomeoffice?((0,i.wg)(),(0,i.iD)("img",{key:0,src:s(87500),class:"mr-2"},null,8,_)):(0,i.kq)("",!0),(0,i._)("p",p,(0,a.zw)(e.name),1)])),e.date?((0,i.wg)(),(0,i.iD)("span",f,[(0,i._)("p",b,(0,a.zw)(e.date.toLocaleDateString("en-EN",{weekday:"long"})),1)])):(0,i.kq)("",!0),(0,i._)("div",{class:(0,a.C_)(["unscheduled-time d-flex align-center text-left",{"vuecal__cell-split--weekend":e.isWeekend}])},[(0,i._)("div",v,[(0,i._)("p",null,(0,a.zw)(e.initials),1)]),(0,i._)("div",y,[(0,i._)("p",w,(0,a.zw)(e.fullname),1),(0,i._)("h1",D,(0,a.zw)(e.unscheduledTime)+" h",1)])],2)])])),"time-cell":(0,i.w5)((({hours:e,minutes:t})=>[(0,i._)("span",T,[(0,i._)("p",null,(0,a.zw)(e)+":"+(0,a.zw)(String(t).padStart(2,"0")),1),C])])),event:(0,i.w5)((({event:e})=>["non-working-hours"==e.type?((0,i.wg)(),(0,i.iD)("div",M,[(0,i._)("div",S,[(0,i.Wm)(o.t,{icon:"mdi-cancel",color:"black"}),(0,i._)("h3",$,(0,a.zw)(e.title),1)])])):["subtask","blocker","adhoc","vacation","free_day"].includes(e.type)?((0,i.wg)(),(0,i.iD)("div",{key:1,class:(0,a.C_)(["custom-event-body colWidth h-100 d-flex flex-column justify-space-between",{"short-event":A.getEventLength(e)<=9e6,"mini-event":A.getEventLength(e)<=54e5,"micro-event":A.getEventLength(e)<=36e5}]),style:(0,a.j5)({backgroundColor:e._timeblock_is_finished||e.subtask?.is_finished?"#dedfe0":e.color||e.subtask?.color})},[(0,i._)("div",{class:(0,a.C_)(["event-content",{"is-blocker":e.isBlocker}])},["subtask"==e.type?((0,i.wg)(),(0,i.iD)(i.HY,{key:0},[e.subtask.project_code?((0,i.wg)(),(0,i.iD)("small",E,(0,a.zw)(e.subtask.project_code),1)):(0,i.kq)("",!0),(0,i._)("h3",null,(0,a.zw)(e.subtask.title??e.subtask.master_task?.name??e.subtask.master_task),1)],64)):((0,i.wg)(),(0,i.iD)("h3",H,(0,a.zw)(e.blocker.name),1)),(0,i._)("div",x,[(0,i._)("div",z,[(0,i._)("small",null,(0,a.zw)(e.initials),1)]),(0,i._)("small",W,(0,a.zw)(e.date?.toLocaleDateString("sk-SK")),1)]),"subtask"==e.type?((0,i.wg)(),(0,i.iD)("div",B,[(0,i.Wm)(o.t,{icon:"mdi-skull-outline",size:"small"}),e?.subtask.deadline?((0,i.wg)(),(0,i.iD)("small",j,(0,a.zw)(A.getDeadline(e?.subtask)),1)):((0,i.wg)(),(0,i.j4)(r.N,{key:1,text:"Deadline z Mastertasku",location:"bottom"},{activator:(0,i.w5)((({props:t})=>[e?.subtask?.deadline?(0,i.kq)("",!0):((0,i.wg)(),(0,i.iD)("small",(0,i.dG)({key:0,class:"cursor-pointer ml-1"},t),(0,a.zw)(A.getDeadline(e?.subtask))+"*",17))])),_:2},1024))])):(0,i.kq)("",!0)],2),(0,i._)("div",Y,["adhoc"==e.type?((0,i.wg)(),(0,i.iD)(i.HY,{key:0},[(0,i.Wm)(l.T,{rounded:"",class:"event-footer-button me-2",onClick:(0,n.iM)((t=>A.editBlocker(e)),["stop"])},{default:(0,i.w5)((()=>[(0,i._)("img",{src:s(60666),alt:""},null,8,L)])),_:2},1032,["onClick"]),(0,i.Wm)(l.T,{rounded:"",class:"event-footer-button me-2",onClick:(0,n.iM)((t=>A.deleteBlocker(e)),["stop"])},{default:(0,i.w5)((()=>[(0,i._)("img",{src:s(27484),alt:""},null,8,Z)])),_:2},1032,["onClick"])],64)):"subtask"==e.type?((0,i.wg)(),(0,i.iD)(i.HY,{key:1},[(0,i.Wm)(l.T,{rounded:"",class:(0,a.C_)(["event-footer-button me-2",{completed:e.subtask?.is_finished}]),onClick:(0,n.iM)((t=>A.completeTask(e)),["stop"])},{default:(0,i.w5)((()=>[(0,i._)("img",{src:s(9003),alt:""},null,8,q)])),_:2},1032,["class","onClick"]),(0,i.Wm)(l.T,{rounded:"",class:(0,a.C_)(["event-footer-button me-2",{completed:e._timeblock_is_finished}]),onClick:(0,n.iM)((t=>A.toggleTimeblockIsFinished(e)),["stop"])},{default:(0,i.w5)((()=>[(0,i._)("img",{src:s(53830),alt:""},null,8,F)])),_:2},1032,["class","onClick"]),(0,i.Wm)(l.T,{rounded:"",class:"event-footer-button me-2",onClick:(0,n.iM)((t=>A.editTask(e)),["stop"])},{default:(0,i.w5)((()=>[(0,i._)("img",{src:s(34413),alt:""},null,8,I)])),_:2},1032,["onClick"]),(0,i.Wm)(l.T,{rounded:"",class:"event-footer-button me-2",onClick:(0,n.iM)((t=>A.deleteTimeBlockInTask(e)),["stop"])},{default:(0,i.w5)((()=>[(0,i._)("img",{src:s(27484),alt:""},null,8,N)])),_:2},1032,["onClick"])],64)):(0,i.kq)("",!0)])],6)):(0,i.kq)("",!0)])),_:1},8,["selected-date","onEventClick","editable-events","events","unscheduledTime","time-cell-height","scroll-to-hour","split-days","onViewChange","onEventDrop","onEventFocus"])])}var K=s(85174),A=s(34407),P=s(20065),R=s(36797),U=s.n(R),O={props:{calData:{type:Object,required:!0,default(){return{}}},calConfig:{type:Object,required:!0,default(){return{date:new Date,scrollHour:7}}},splits:{type:Array,required:!1,default(){return[]}}},data(){return{vueCalConfig:{editing:{title:!1,drag:!0,resize:!1,delete:!1,create:!1}},focusedEventId:null,timeCellHeight:100,tmUtils:A.Z,visible:!1}},computed:{...(0,P.Se)("tm",["mastertasks"])},methods:{getDeadline(e){if(e.deadline)return U()(e.deadline).format("DD.MM.yyyy");if(!this.mastertasks)return"";const t=this.mastertasks.find((t=>t.id===e.master_task_id));return U()(t).format("DD.MM.yyyy")?U()(t.deadline).format("DD.MM.yyyy"):""},isAfterDeadline(e){const t=this.getDeadline(e.subtask);return!!t&&this.tmUtils.isAfter(e.date,U()(t,"DD.MM.yyyy"))},weekChanged(){const e=this.$el.getElementsByClassName("vuecal__scrollable-body")[0];e.scrollLeft=0},async eventMoved({event:e,newSplit:t}){const s=(0,K.Z)(this.calConfig.date,t-1),i=s.setHours(Math.round(e.startTimeMinutes/60),Math.round(e.startTimeMinutes%60),0),a=s.setHours(Math.round(e.endTimeMinutes/60),Math.round(e.endTimeMinutes%60),0),n=this.splits.find((e=>e.id==t));if("Dashboard - Tasks"==this.$route.name){const t={...e.subtask,timeblocks:[...e.subtask.timeblocks,{id:e._timeblock_id,is_finished:0,start:A.Z.formatDateTimeForBackend(i),end:A.Z.formatDateTimeForBackend(a)}],timesheets:e.subtask.timesheets.map((e=>(delete e.employee_name,e)))};try{const{subtask:e}=await this.$axios.put_auth(`v1/subtasks/${t.id}`,t);this.$events.emit("on-subtask-edited",e),e.employee_id==this.$store.getters["auth/user"].id&&this.$events.emit("show-task-add-time-modal",{subtask:e})}catch(l){this.$toast.error(l.message||l)}const s=this.isAfterDeadline(e);s&&this.$toast.error("Timeblock, ktorý ste presunuli je po deadline !")}else if("Dashboard - Teams"==this.$route.name){const t={...e.subtask,employee_id:n.employee_id,timeblocks:[...e.subtask.timeblocks,{id:e._timeblock_id,is_finished:0,start:A.Z.formatDateTimeForBackend(e.start),end:A.Z.formatDateTimeForBackend(e.end)}],timesheets:e.subtask.timesheets.map((e=>(delete e.employee_name,e)))};try{const{subtask:e}=await this.$axios.put_auth(`v1/subtasks/${t.id}`,t);this.$events.emit("on-subtask-edited",e)}catch(l){this.$toast.error(l.message||l)}}},onReady(){this.correctMargins()},correctMargins(){if(!this.$el.getElementsByClassName("vuecal__split-days-headers").length)return;const e=this.$el.getElementsByClassName("vuecal__split-days-headers")[0].clientHeight;this.$el.getElementsByClassName("vuecal__time-column")[0].style.marginTop=`${e}px`,this.$el.getElementsByClassName("vuecal__cells-body")[0].style.marginTop=`${e}px`},getHeadingDate(e){const t=new Date(e),s=new Date,i=new Date((new Date).setDate(s.getDate()-1)),a=new Date((new Date).setDate(s.getDate()+1));return s.toLocaleDateString("sk-SK")===t.toLocaleDateString("sk-SK")?"Dnes":i.toLocaleDateString("sk-SK")===t.toLocaleDateString("sk-SK")?"Včera":a.toLocaleDateString("sk-SK")===t.toLocaleDateString("sk-SK")?"Zajtra":t.toLocaleDateString("sk-SK")},getEventLength(e){return e.end.getTime()-e.start.getTime()},taskClicked(e){},eventFocused(e){this.focusedEventId=e.task_id},completeTask({subtask:e}){this.$events.emit("show-complete-task-modal",{subtask:e})},async toggleTimeblockIsFinished(e){const t=e.subtask,s=t.timeblocks.find((t=>t.id==e._timeblock_id));s.is_finished=s?.is_finished?0:1;try{const{data:e}=await this.$axios.put_auth(`v1/timeblocks/${s.id}`,s);t.timeblocks=t.timeblocks.map((t=>t.id==e.id?e:t)),this.$events.emit("on-subtask-edited",t),s.is_finished&&this.$events.emit("show-task-add-time-modal",{subtask:t})}catch(i){this.$toast.error(i.message||i)}},editTask({subtask:e}){this.$events.emit("show-subtask-modal",{subtask:e})},deleteTimeBlockInTask({subtask:e}){this.$events.emit("show-delete-timeblock-modal",{subtask:e})},editBlocker({blocker:e}){this.$events.emit("show-blocker-modal",{blocker:e})},deleteBlocker({blocker:e}){this.$events.emit("show-delete-blocker-modal",{blocker:e})}}},G=s(40089);const J=(0,G.Z)(O,[["render",V],["__scopeId","data-v-0b9e41ad"]]);var Q=J},9003:function(e,t,s){e.exports=s.p+"img/checkmark-double.8bc9494b.svg"},87500:function(e,t,s){e.exports=s.p+"img/home.a9495a95.svg"},35902:function(e,t,s){e.exports=s.p+"img/icon-next.25e7a4f4.svg"},38351:function(e,t,s){e.exports=s.p+"img/icon-prev.22ba0fa6.svg"}}]); +//# sourceMappingURL=7637.fdf639b1.js.map \ No newline at end of file diff --git a/app/dist/js/7637.fdf639b1.js.map b/app/dist/js/7637.fdf639b1.js.map new file mode 100644 index 0000000..6269867 --- /dev/null +++ b/app/dist/js/7637.fdf639b1.js.map @@ -0,0 +1 @@ +{"version":3,"file":"js/7637.fdf639b1.js","mappings":"yGAAA,QACCA,OACC,MAAO,CACNC,OAAQ,CACPC,aAAa,EACbC,UAAW,EACXC,gCAAiC,EACjCC,WAAW,GAGd,EAEAC,YACCC,KAAKC,MAAMC,MAAMC,cAAc,gBAAgBC,oBAAoB,SAAUJ,KAAKK,aACnF,EAEAC,QAAS,CACRC,oBAAoBC,EAAS,GAC5B,GAAIR,KAAKL,YAAa,OAEtB,MAAMc,EAAWT,KAAKC,MAAMC,MAAMC,cAAc,eAEhD,IAAKM,EACJ,OAAOC,YAAW,KACbF,EAAS,IAAIR,KAAKO,oBAAoBC,EAAS,EAAE,GACnD,KAEJC,EAASE,iBAAiB,SAAUX,KAAKY,eACzCZ,KAAKL,aAAc,EACnBK,KAAKN,OAAOG,gCAAkCY,EAASI,SAIxD,EAEAD,cAAcE,GACb,MAAMpB,EAASqB,SAASZ,cAAc,iBAGjCH,KAAKL,aAKNK,KAAKN,OAAOG,gCAAkCiB,EAAEE,OAAOH,UAErDb,KAAKN,OAAOI,WAChBE,KAAKiB,cAEIvB,EAAOwB,aAAeC,KAAKC,IAAIN,EAAEE,OAAOH,WAE9Cb,KAAKN,OAAOI,WACfE,KAAKqB,cASPrB,KAAKN,OAAOG,gCAAkCiB,EAAEE,OAAOH,WArBtDb,KAAKN,OAAOG,gCAAkCiB,EAAEE,OAAOH,SAsBzD,EAEAQ,aACC,MAAM3B,EAASqB,SAASZ,cAAc,iBAEtCT,EA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,GAAqBA,EAAkBxL,IAAMyF,EAAM7E,gBAE7FrB,EAAUuB,YAAcvB,GAAWuB,YAAc,EAAI,EAErD,IACC,MAAO7E,KAAMwP,SAAsBjP,KAAKsN,OAAOC,SAAU,iBAAgBxK,EAAUS,KAAMT,GAEzFV,EAAQS,WAAaT,EAAQS,WAAW+B,KAAImK,GACvCA,EAAkBxL,IAAMyL,EAAazL,GACjCyL,EAEDD,IAGRhP,KAAKwN,QAAQC,KAAK,oBAAqBpL,GAEnCU,EAAUuB,aACbtE,KAAKwN,QAAQC,KAAK,2BAA4B,CAAEpL,WAGlD,CAFE,MAAOwL,GACR7N,KAAK8N,OAAOD,MAAMA,EAAME,SAAWF,EACpC,CACD,EAEAqB,UAAS,QAAC7M,IACTrC,KAAKwN,QAAQC,KAAK,qBAAsB,CAACpL,WAC1C,EAEA8M,uBAAsB,QAAE9M,IACvBrC,KAAKwN,QAAQC,KAAK,8BAA+B,CAACpL,WACnD,EAEA+M,aAAY,QAAEjM,IACbnD,KAAKwN,QAAQC,KAAK,qBAAsB,CAACtK,WAC1C,EAEAkM,eAAc,QAAElM,IACfnD,KAAKwN,QAAQC,KAAK,4BAA6B,CAACtK,WACjD,I,WChXF,MAAMmM,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,GAAQ,CAAC,YAAY,qBAEzF,O","sources":["webpack://jandl/./src/plugins/tm@dashboard/_mixins/Filter.mixin.ts","webpack://jandl/./src/plugins/tm@dashboard/tasks/_utils/timeline.utils.ts","webpack://jandl/./src/plugins/tm@dashboard/_components/z-timeline.vue","webpack://jandl/./src/plugins/tm@dashboard/_components/z-timeline.vue?b342"],"sourcesContent":["export default {\n\tdata() {\n\t\treturn {\n\t\t\theader: {\n\t\t\t\tinitialized: false,\n\t\t\t\tmarginTop: 0,\n\t\t\t\tcalendar_previousScrollPosition: 0,\n\t\t\t\tisVisible: true\n\t\t\t}\n\t\t}\n\t},\n\n\tunmounted() {\n\t\tthis.$refs.page?.querySelector('.vuecal__bg')?.removeEventListener('scroll', this.handleScroll)\n\t},\n\n\tmethods: {\n\t\t_initScrollListener(repeat = 0) {\n\t\t\tif (this.initialized) return\n\n\t\t\tconst calendar = this.$refs.page?.querySelector('.vuecal__bg')\n\n\t\t\tif (!calendar)\n\t\t\t\treturn setTimeout(() => {\n\t\t\t\t\tif (repeat < 20) this._initScrollListener(repeat + 1)\n\t\t\t\t}, 200)\n\n\t\t\tcalendar.addEventListener('scroll', this._handleScroll)\n\t\t\tthis.initialized = true\n\t\t\tthis.header.calendar_previousScrollPosition = calendar.scrollTop\n\t\t\t// if (calendar.scrollTop > 0 && this.header.isVisible) {\n\t\t\t// \tthis.hideHeader()\n\t\t\t// }\n\t\t},\n\n\t\t_handleScroll(e) {\n\t\t\tconst header = document.querySelector('div.subheader') as HTMLElement\n\n\t\t\t// Check if the header is initialized\n\t\t\tif (!this.initialized) {\n\t\t\t\tthis.header.calendar_previousScrollPosition = e.target.scrollTop\n\t\t\t\treturn\n\t\t\t}\n\n\t\t\tif (this.header.calendar_previousScrollPosition > e.target.scrollTop) {\n\t\t\t\t// On the way up\n\t\t\t\tif (!this.header.isVisible) {\n\t\t\t\t\tthis.showHeader()\n\t\t\t\t}\n\t\t\t} else if (header.offsetHeight > Math.abs(e.target.scrollTop)) {\n\t\t\t\t// On the way down\n\t\t\t\tif (this.header.isVisible) {\n\t\t\t\t\tthis.hideHeader()\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// On the way down below filter height\n\t\t\t\tif (this.header.isVisible) {\n\t\t\t\t\tthis.hideHeader()\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tthis.header.calendar_previousScrollPosition = e.target.scrollTop\n\t\t},\n\n\t\thideHeader() {\n\t\t\tconst header = document.querySelector('div.subheader') as HTMLElement\n\n\t\t\theader.style.transition = 'margin-top 0.5s'\n\t\t\theader.style.marginTop = `-${header.offsetHeight}px`\n\t\t\tthis.header.isVisible = false\n\n\t\t\tsetTimeout(() => {\n\t\t\t\theader.style.transition = ''\n\t\t\t}, 500)\n\t\t},\n\n\t\tshowHeader() {\n\t\t\tconst header = document.querySelector('div.subheader') as HTMLElement\n\n\t\t\theader.style.transition = 'margin-top 0.5s'\n\t\t\theader.style.marginTop = '0'\n\t\t\tthis.header.isVisible = true\n\n\t\t\tsetTimeout(() => {\n\t\t\t\theader.style.transition = ''\n\t\t\t}, 500)\n\t\t},\n\t}\n}\n","import { setHours, setMinutes, addDays, differenceInCalendarDays } from 'date-fns'\nimport moment from 'moment'\n\nexport default {\n\tgenerateTimelineTasks(subtasks, date, employee) {\n\t\tconst { tasks, blockers, homeoffices } = this.generateTimelineEvents(subtasks, employee, date)\n\t\tconst { nonWorkingHours } = this.generateTimelineNonWorkingHours(date, employee)\n\n\t\treturn {\n\t\t\ttasks,\n\t\t\tblockers,\n\t\t\tnonWorkingHours,\n\t\t\thomeoffices\n\t\t}\n\t},\n\n\tgetUnscheduledTime(subtasks) {\n\t\tlet unscheduledTime = 0\n\t\tsubtasks.forEach(subtask => unscheduledTime += (subtask.duration - subtask.spent_time))\n\n\t\treturn unscheduledTime\n\t},\n\n\tisWeekend(date) {\n\t\treturn moment(date).day() % 6 == 0\n\t},\n\n\tgenerateTimelineEvents(subtasks, employee, date) {\n\t\tlet blockers = []\n\t\tconst tasks = []\n\n\t\tsubtasks.forEach(subtask => {\n\t\t\tif (['blocker', 'adhoc', 'home_office', 'vacation', 'free_day'].includes(subtask.type)) {\n\t\t\t\tblockers = [...blockers, ...this._generateEventsFromBlocker(subtask, date)]\n\t\t\t} else {\n\t\t\t\tsubtask.timeblocks?.forEach((timeblock) => {\n\t\t\t\t\ttasks.push(this._composeTimelineEvent(subtask, employee, date, timeblock))\n\t\t\t\t})\n\t\t\t}\n\t\t})\n\n\t\treturn {\n\t\t\ttasks,\n\t\t\tblockers: blockers.filter(blocker => blocker.type != 'home_office'),\n\t\t\thomeoffices: blockers.filter(blocker => blocker.type == 'home_office')\n\t\t}\n\t},\n\n\t_composeTimelineEvent(subtask, employee, date, timeblock) {\n\t\tconst diffInDays = differenceInCalendarDays(date, new Date(timeblock.start))\n\n\t\treturn {\n\t\t\tid: subtask.id,\n\t\t\tstart: addDays(new Date(timeblock.start), diffInDays),\n\t\t\tend: addDays(new Date(timeblock.end), diffInDays),\n\t\t\tmaster_task: subtask.master_task,\n\t\t\tdate: new Date(timeblock.start),\n\t\t\tisWeekend: this.isWeekend(timeblock.start),\n\t\t\tinitials: employee.name.charAt(0).toUpperCase() + employee.surname.charAt(0).toUpperCase(),\n\t\t\tsplit: this._getSplitFromDate(date, timeblock.start),\n\t\t\tproject_code: subtask.project_code,\n\t\t\tsubtask: subtask,\n\t\t\ttype: 'subtask',\n\t\t\t_timeblock_id: timeblock.id,\n\t\t\t_timeblock_is_finished: timeblock.is_finished,\n\t\t\t_real_start: new Date(timeblock.start),\n\t\t\t_real_end: new Date(timeblock.end)\n\t\t}\n\t},\n\n\t_generateEventsFromBlocker(blocker, date) {\n\t\tconst start = moment(blocker.start)\n\t\tconst end \t= moment(blocker.end)\n\n\t\tconst dates \t= start.isSame(end, 'date') ? [moment(start).format('YYYY-MM-DD')] : this._getDatesInRange(start, end)\n\t\tconst blockers \t= dates.map(d => {\n\t\t\tconst diffInDays = differenceInCalendarDays(date, new Date(d))\n\t\t\tconst dStart = new Date(moment(d).set({hours: start.hours(), minutes: start.minutes()}).format('YYYY-MM-DD HH:mm'))\n\t\t\tconst dEnd = new Date(moment(d).set({hours: end.hours(), minutes: end.minutes()}).format('YYYY-MM-DD HH:mm'))\n\n\t\t\treturn {\n\t\t\t\tblocker,\n\t\t\t\tsplit: this._getSplitFromDate(date, d),\n\t\t\t\tstart: addDays(dStart, diffInDays),\n\t\t\t\tend: addDays(dEnd, diffInDays),\n\t\t\t\tdate: new Date(d),\n\t\t\t\ttype: blocker.type,\n\t\t\t\tisBlocker: true,\n\t\t\t\tinitials: `${blocker.employee?.name[0]}${blocker.employee?.surname[0]}`,\n\t\t\t\tcolor: '#B00020',\n\t\t\t\tdraggable: false,\n\t\t\t\t_real_start: dStart,\n\t\t\t\t_real_end: dEnd\n\t\t\t}\n\t\t})\n\n\t\treturn blockers\n\t},\n\n\t_getDatesInRange(start, end) {\n\t\tconst dates = []\n\n\t\twhile (start <= end) {\n\t\t\tdates.push(moment(start).format('YYYY-MM-DD'))\n\t\t\tstart.add(1, 'day')\n\t\t}\n\n\t\treturn dates\n\t},\n\n\tgenerateTimelineNonWorkingHours(date, employee) {\n\t\tconst events = []\n\n\t\tconst { start: dayStart, end: dayEnd } = this._getDayStartEnd(date)\n\n\t\tfor (let i = 0; i < 7; i++) {\n\t\t\tevents.push({\n\t\t\t\ttitle: \"Non working hours\",\n\t\t\t\tstart: dayStart,\n\t\t\t\tend: this._setMinutesToDate(employee.work_start * 60, date),\n\t\t\t\ttype: 'non-working-hours',\n\t\t\t\tsplit: i + 1,\n\t\t\t\tdraggable: false\n\t\t\t})\n\n\t\t\tevents.push({\n\t\t\t\ttitle: \"Non working hours\",\n\t\t\t\tstart: this._setMinutesToDate(employee.work_end * 60, date),\n\t\t\t\tend: dayEnd,\n\t\t\t\ttype: 'non-working-hours',\n\t\t\t\tsplit: i + 1,\n\t\t\t\tdraggable: false\n\t\t\t})\n\t\t}\n\n\t\treturn {nonWorkingHours: events}\n\t},\n\n\t_getSplitFromDate(date, start) {\n\t\treturn differenceInCalendarDays(new Date(date), new Date(start)) * (-1) + 1\n\t},\n\n\t_getDifferenceInHours(date1, date2) {\n\t\treturn this._getDifferenceInMinutes(date1, date2) / 60\n\t},\n\n\t_getDifferenceInMinutes(date1, date2) {\n\t\tlet diff = (date1.getTime() - date2.getTime()) / 1000\n\t\tdiff /= 60\n\t\treturn Math.abs(Math.round(diff))\n\t},\n\n\t_getDayStartEnd(date) {\n\t\treturn {\n\t\t\tstart: this._setMinutesToDate(0, date),\n\t\t\tend: this._setMinutesToDate(1439, date)\n\t\t}\n\t},\n\n\t_setMinutesToDate(minutes, date) {\n\t\tconst newDate = new Date(date)\n\t\tnewDate.setHours(Math.floor(minutes / 60), minutes % 60, 0, 0)\n\t\treturn newDate\n\t}\n}","\n\n\n\n\n","import { render } from \"./z-timeline.vue?vue&type=template&id=0b9e41ad&scoped=true\"\nimport script from \"./z-timeline.vue?vue&type=script&lang=js\"\nexport * from \"./z-timeline.vue?vue&type=script&lang=js\"\n\nimport \"./z-timeline.vue?vue&type=style&index=0&id=0b9e41ad&lang=sass&scoped=true\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-0b9e41ad\"]])\n\nexport default __exports__"],"names":["data","header","initialized","marginTop","calendar_previousScrollPosition","isVisible","unmounted","this","$refs","page","querySelector","removeEventListener","handleScroll","methods","_initScrollListener","repeat","calendar","setTimeout","addEventListener","_handleScroll","scrollTop","e","document","target","showHeader","offsetHeight","Math","abs","hideHeader","style","transition","generateTimelineTasks","subtasks","date","employee","tasks","blockers","homeoffices","generateTimelineEvents","nonWorkingHours","generateTimelineNonWorkingHours","getUnscheduledTime","unscheduledTime","forEach","subtask","duration","spent_time","isWeekend","moment","day","includes","type","_generateEventsFromBlocker","timeblocks","timeblock","push","_composeTimelineEvent","filter","blocker","diffInDays","differenceInCalendarDays","Date","start","id","addDays","end","master_task","initials","name","charAt","toUpperCase","surname","split","_getSplitFromDate","project_code","_timeblock_id","_timeblock_is_finished","is_finished","_real_start","_real_end","dates","isSame","format","_getDatesInRange","map","d","dStart","set","hours","minutes","dEnd","isBlocker","color","draggable","add","events","dayStart","dayEnd","_getDayStartEnd","i","title","_setMinutesToDate","work_start","work_end","_getDifferenceInHours","date1","date2","_getDifferenceInMinutes","diff","getTime","round","newDate","setHours","floor","class","_createElementVNode","_createElementBlock","_hoisted_1","_createVNode","_component_Vue_cal","$props","onEventClick","$options","$data","editing","unscheduled_times","showTimeInCells","scrollHour","onReady","onViewChange","onEventDrop","onEventFocus","_hoisted_2","_hoisted_3","isHomeoffice","src","require","_hoisted_5","_hoisted_6","_hoisted_8","_hoisted_10","toLocaleDateString","weekday","_hoisted_11","_hoisted_12","_hoisted_13","fullname","_hoisted_14","_hoisted_15","String","padStart","_hoisted_16","event","_hoisted_17","_hoisted_18","_component_v_icon","icon","_hoisted_19","backgroundColor","_Fragment","key","_hoisted_20","_hoisted_22","_hoisted_23","_hoisted_24","_hoisted_25","size","deadline","_hoisted_26","_createBlock","_component_v_tooltip","text","location","activator","props","_mergeProps","_hoisted_27","_component_v_btn","rounded","onClick","alt","calData","Object","required","default","calConfig","splits","Array","vueCalConfig","drag","resize","delete","create","focusedEventId","timeCellHeight","tmUtils","visible","computed","mapGetters","getDeadline","mastertasks","masterTask","find","mt","master_task_id","isAfterDeadline","isAfter","weekChanged","scrollContainer","$el","getElementsByClassName","scrollLeft","async","newSplit","startTimeMinutes","endTimeMinutes","$route","editedSubtask","timesheets","timesheet","employee_name","$axios","put_auth","$events","emit","employee_id","$store","getters","error","$toast","message","correctMargins","length","heightOfDayHeader","clientHeight","getHeadingDate","value","today","yesterday","setDate","getDate","tomorrow","getEventLength","taskClicked","eventFocused","task_id","completeTask","originalTimeblock","newTimeblock","editTask","deleteTimeBlockInTask","editBlocker","deleteBlocker","__exports__","render"],"sourceRoot":""} \ No newline at end of file diff --git a/app/dist/js/index.4830c097.js b/app/dist/js/index.4830c097.js new file mode 100644 index 0000000..2e76f22 --- /dev/null +++ b/app/dist/js/index.4830c097.js @@ -0,0 +1,2 @@ +(function(){var e={41993:function(e){function t(e){return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}))}t.keys=function(){return[]},t.resolve=t,t.id=41993,e.exports=t},46700:function(e,t,s){var a={"./af":63906,"./af.js":63906,"./ar":40902,"./ar-dz":3853,"./ar-dz.js":3853,"./ar-kw":20299,"./ar-kw.js":20299,"./ar-ly":96825,"./ar-ly.js":96825,"./ar-ma":66379,"./ar-ma.js":66379,"./ar-sa":87700,"./ar-sa.js":87700,"./ar-tn":2059,"./ar-tn.js":2059,"./ar.js":40902,"./az":76043,"./az.js":76043,"./be":7936,"./be.js":7936,"./bg":34078,"./bg.js":34078,"./bm":14014,"./bm.js":14014,"./bn":29554,"./bn-bd":17114,"./bn-bd.js":17114,"./bn.js":29554,"./bo":6529,"./bo.js":6529,"./br":65437,"./br.js":65437,"./bs":19647,"./bs.js":19647,"./ca":59951,"./ca.js":59951,"./cs":26113,"./cs.js":26113,"./cv":37965,"./cv.js":37965,"./cy":35858,"./cy.js":35858,"./da":33515,"./da.js":33515,"./de":62831,"./de-at":6263,"./de-at.js":6263,"./de-ch":51127,"./de-ch.js":51127,"./de.js":62831,"./dv":4510,"./dv.js":4510,"./el":68616,"./el.js":68616,"./en-au":24595,"./en-au.js":24595,"./en-ca":73545,"./en-ca.js":73545,"./en-gb":79609,"./en-gb.js":79609,"./en-ie":43727,"./en-ie.js":43727,"./en-il":93302,"./en-il.js":93302,"./en-in":46305,"./en-in.js":46305,"./en-nz":39128,"./en-nz.js":39128,"./en-sg":84569,"./en-sg.js":84569,"./eo":50650,"./eo.js":50650,"./es":26358,"./es-do":64214,"./es-do.js":64214,"./es-mx":38639,"./es-mx.js":38639,"./es-us":30232,"./es-us.js":30232,"./es.js":26358,"./et":47279,"./et.js":47279,"./eu":15515,"./eu.js":15515,"./fa":27981,"./fa.js":27981,"./fi":37090,"./fi.js":37090,"./fil":79208,"./fil.js":79208,"./fo":2799,"./fo.js":2799,"./fr":23463,"./fr-ca":2213,"./fr-ca.js":2213,"./fr-ch":52848,"./fr-ch.js":52848,"./fr.js":23463,"./fy":41468,"./fy.js":41468,"./ga":88163,"./ga.js":88163,"./gd":2898,"./gd.js":2898,"./gl":76312,"./gl.js":76312,"./gom-deva":20682,"./gom-deva.js":20682,"./gom-latn":49178,"./gom-latn.js":49178,"./gu":31400,"./gu.js":31400,"./he":52795,"./he.js":52795,"./hi":17009,"./hi.js":17009,"./hr":46506,"./hr.js":46506,"./hu":69565,"./hu.js":69565,"./hy-am":93864,"./hy-am.js":93864,"./id":5626,"./id.js":5626,"./is":36649,"./is.js":36649,"./it":90151,"./it-ch":95348,"./it-ch.js":95348,"./it.js":90151,"./ja":79830,"./ja.js":79830,"./jv":33751,"./jv.js":33751,"./ka":63365,"./ka.js":63365,"./kk":85980,"./kk.js":85980,"./km":99571,"./km.js":99571,"./kn":25880,"./kn.js":25880,"./ko":16809,"./ko.js":16809,"./ku":96773,"./ku.js":96773,"./ky":65505,"./ky.js":65505,"./lb":50553,"./lb.js":50553,"./lo":51237,"./lo.js":51237,"./lt":91563,"./lt.js":91563,"./lv":61057,"./lv.js":61057,"./me":96495,"./me.js":96495,"./mi":83096,"./mi.js":83096,"./mk":43874,"./mk.js":43874,"./ml":46055,"./ml.js":46055,"./mn":87747,"./mn.js":87747,"./mr":17113,"./mr.js":17113,"./ms":8687,"./ms-my":7948,"./ms-my.js":7948,"./ms.js":8687,"./mt":14532,"./mt.js":14532,"./my":4655,"./my.js":4655,"./nb":56961,"./nb.js":56961,"./ne":2512,"./ne.js":2512,"./nl":48448,"./nl-be":72936,"./nl-be.js":72936,"./nl.js":48448,"./nn":49031,"./nn.js":49031,"./oc-lnc":5174,"./oc-lnc.js":5174,"./pa-in":30118,"./pa-in.js":30118,"./pl":93448,"./pl.js":93448,"./pt":33518,"./pt-br":62447,"./pt-br.js":62447,"./pt.js":33518,"./ro":70817,"./ro.js":70817,"./ru":10262,"./ru.js":10262,"./sd":58990,"./sd.js":58990,"./se":43842,"./se.js":43842,"./si":37711,"./si.js":37711,"./sk":80756,"./sk.js":80756,"./sl":3772,"./sl.js":3772,"./sq":6187,"./sq.js":6187,"./sr":40732,"./sr-cyrl":75713,"./sr-cyrl.js":75713,"./sr.js":40732,"./ss":99455,"./ss.js":99455,"./sv":69770,"./sv.js":69770,"./sw":80959,"./sw.js":80959,"./ta":36459,"./ta.js":36459,"./te":25302,"./te.js":25302,"./tet":67975,"./tet.js":67975,"./tg":71294,"./tg.js":71294,"./th":2385,"./th.js":2385,"./tk":24613,"./tk.js":24613,"./tl-ph":58668,"./tl-ph.js":58668,"./tlh":58190,"./tlh.js":58190,"./tr":74506,"./tr.js":74506,"./tzl":63440,"./tzl.js":63440,"./tzm":69852,"./tzm-latn":42350,"./tzm-latn.js":42350,"./tzm.js":69852,"./ug-cn":70730,"./ug-cn.js":70730,"./uk":40099,"./uk.js":40099,"./ur":72100,"./ur.js":72100,"./uz":96002,"./uz-latn":26322,"./uz-latn.js":26322,"./uz.js":96002,"./vi":14207,"./vi.js":14207,"./x-pseudo":24674,"./x-pseudo.js":24674,"./yo":10570,"./yo.js":10570,"./zh-cn":73644,"./zh-cn.js":73644,"./zh-hk":22591,"./zh-hk.js":22591,"./zh-mo":89503,"./zh-mo.js":89503,"./zh-tw":88080,"./zh-tw.js":88080};function i(e){var t=l(e);return s(t)}function l(e){if(!s.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}i.keys=function(){return Object.keys(a)},i.resolve=l,e.exports=i,i.id=46700},56847:function(e,t,s){"use strict";s.d(t,{$t:function(){return ir}});var a=s(49242),i=s(74973);async function l(){const e=await s.e(3657).then(s.t.bind(s,33657,23));e.load({google:{families:["Roboto:100,300,400,500,700,900&display=swap"]}})}var n=s(38685),o=(s(29773),(0,n.Rd)()),r=s(73752),d=s.n(r),u=s(73396),c=s(97718),m=s(29271);function h(e,t,s,a,i,l){const n=(0,u.up)("router-view"),o=(0,u.up)("Z-team-modal"),r=(0,u.up)("Z-delete-team-modal"),d=(0,u.up)("Z-task-modal"),h=(0,u.up)("Z-delete-task-modal"),p=(0,u.up)("Z-delete-timeBlock-modal"),v=(0,u.up)("Z-delete-blocker-modal"),k=(0,u.up)("Z-delete-master-task-modal"),f=(0,u.up)("Z-complete-task-modal"),g=(0,u.up)("Z-complete-master-task-modal"),w=(0,u.up)("Z-task-add-time-modal"),_=(0,u.up)("Z-blocker-modal"),y=(0,u.up)("Z-master-task-modal"),b=(0,u.up)("Z-delete-team-member-modal"),D=(0,u.up)("Z-show-menu-modal");return(0,u.wg)(),(0,u.iD)(u.HY,null,[(0,u.Wm)(c.q,null,{default:(0,u.w5)((()=>[(0,u.Wm)(m.O,null,{default:(0,u.w5)((()=>[(0,u.Wm)(n)])),_:1})])),_:1}),(0,u.Wm)(o,{ref:"z-team-modal",onUpdate:l.onTeamUpdate},null,8,["onUpdate"]),(0,u.Wm)(r,{ref:"z-delete-team-modal",onUpdate:l.onTeamUpdate},null,8,["onUpdate"]),(0,u.Wm)(d,{ref:"z-task-modal",onOnSubtaskEdited:l.onTaskEdited},null,8,["onOnSubtaskEdited"]),(0,u.Wm)(h,{ref:"z-delete-task-modal",onOnSubtaskDeleted:l.onTaskDeleted},null,8,["onOnSubtaskDeleted"]),(0,u.Wm)(p,{ref:"z-delete-timeblock-modal",onOnSubtaskEdited:l.onTaskEdited},null,8,["onOnSubtaskEdited"]),(0,u.Wm)(v,{ref:"z-delete-blocker-modal",onOnBlockerDeleted:l.onBlockerDeleted},null,8,["onOnBlockerDeleted"]),(0,u.Wm)(k,{ref:"z-delete-master-task-modal",onOnMastertaskDeleted:l.onMasterTaskDeleted},null,8,["onOnMastertaskDeleted"]),(0,u.Wm)(f,{ref:"z-complete-task-modal",onOnSubtaskEdited:l.onTaskEdited},null,8,["onOnSubtaskEdited"]),(0,u.Wm)(g,{ref:"z-complete-master-task-modal",onMasterTaskEdited:l.onMasterTaskEdited},null,8,["onMasterTaskEdited"]),(0,u.Wm)(w,{ref:"z-task-add-time-modal"},null,512),(0,u.Wm)(_,{ref:"z-blocker-modal"},null,512),(0,u.Wm)(y,{ref:"z-master-task-modal",onMasterTaskEdited:l.onMasterTaskEdited},null,8,["onMasterTaskEdited"]),(0,u.Wm)(b,{ref:"z-delete-team-member-modal"},null,512),(0,u.Wm)(D,{ref:"z-show-menu-modal"},null,512)],64)}s(57658);var p=s(87139),v=s(67312),k=s(75039),f=s(91334),g=s(33601),w=s(53289);const _={class:"d-flex justify-space-between align-center"};function y(e,t,s,i,l,n){return(0,u.wg)(),(0,u.j4)(g.B,{modelValue:l.visible,"onUpdate:modelValue":t[3]||(t[3]=e=>l.visible=e),"max-width":"750",persistent:""},{default:(0,u.w5)((()=>[(0,u.Wm)(k._,null,{default:(0,u.w5)((()=>[(0,u._)("div",_,[(0,u._)("h1",null,[(0,u.Uk)(" Ste si istý, že chcete zmazať tím "),(0,u._)("b",null,(0,p.zw)(l.team.name),1),(0,u.Uk)("? ")]),(0,u.Wm)(w.t,{onClick:t[0]||(t[0]=(0,a.iM)((e=>n.closeModal()),["stop"])),icon:"mdi-close",size:"large"})]),(0,u.Wm)(f.h,{class:"mt-10 d-flex justify-start align-center mobile-view"},{default:(0,u.w5)((()=>[(0,u.Wm)(v.T,{class:"button primary half",variant:"flat",onClick:t[1]||(t[1]=e=>n.deleteTeam()),disabled:l.isDeleting},{default:(0,u.w5)((()=>[(0,u.Uk)("ÁNO")])),_:1},8,["disabled"]),(0,u.Wm)(v.T,{class:"button primary half outline",onClick:t[2]||(t[2]=(0,a.iM)((e=>n.closeModal()),["stop"]))},{default:(0,u.w5)((()=>[(0,u.Uk)("ZRUŠIŤ")])),_:1})])),_:1})])),_:1})])),_:1},8,["modelValue"])}var b={mounted(){window.addEventListener("keydown",this.handleKeyDown)},methods:{handleKeyDown(e){27===e.keyCode&&(this.visible=!1)}}},D={mixins:[b],emits:["update"],data(){return{visible:!1,team:null,isDeleting:!1}},methods:{async showModal({team:e}){this.team=e,this.visible=!0},closeModal(){this.visible=!1},async deleteTeam(){if(!this.isDeleting){this.isDeleting=!0;try{await this.$axios.delete_auth(`v1/teams/${this.team.id}`),this.visible=!1,this.$emit("update",this.team),this.$store.commit("tm/delete_team",this.team)}catch(e){this.$toast.error(e)}finally{this.isDeleting=!1}}}}},M=s(40089);const T=(0,M.Z)(D,[["render",y]]);var C=T,$=s(60988),j=s(45869);const E={class:"d-flex justify-space-between align-center modal-header"};function x(e,t,s,i,l,n){const o=(0,u.up)("W-loadable");return(0,u.wg)(),(0,u.j4)(g.B,{modelValue:l.visible,"onUpdate:modelValue":t[4]||(t[4]=e=>l.visible=e),"max-width":"750","max-height":"90%",height:"700px",persistent:""},{default:(0,u.w5)((()=>[(0,u.Wm)(o,{content:l.team,class:"h-100"},{default:(0,u.w5)((()=>[(0,u.Wm)(k._,{height:"100%",class:"d-flex flex-column"},{default:(0,u.w5)((()=>[(0,u._)("div",E,[(0,u._)("h1",null,(0,p.zw)(l.team.id?"Upraviť tím":"Vytvoriť tím"),1),(0,u.Wm)(w.t,{onClick:t[0]||(t[0]=(0,a.iM)((e=>n.closeModal()),["stop"])),icon:"mdi-close",size:"large"})]),(0,u.Wm)(f.h,{class:"d-flex flex-column modal-content"},{default:(0,u.w5)((()=>[(0,u.Wm)(j.hw,{class:(0,p.C_)(["modal-input",{error:l.v$.team.name.$errors.length}]),label:"Názov tímu",variant:"solo",hint:l.v$.team.name.$errors?l.errorUtils.parseErrors(l.v$.team.name.$errors):null,modelValue:l.team.name,"onUpdate:modelValue":t[1]||(t[1]=e=>l.team.name=e)},null,8,["class","hint","modelValue"]),((0,u.wg)(!0),(0,u.iD)(u.HY,null,(0,u.Ko)(l.team.employees,((e,t)=>((0,u.wg)(),(0,u.iD)("div",{class:"relative w-100",key:e.id},[(0,u.Wm)(j.hw,{class:"modal-input",disabled:"",label:"Zamestanec",variant:"solo",modelValue:l.team.employees[t]._fullName,"onUpdate:modelValue":e=>l.team.employees[t]._fullName=e},null,8,["modelValue","onUpdate:modelValue"]),(0,u.Wm)(w.t,{class:"remove-input",onClick:(0,a.iM)((e=>l.team.employees.splice(t,1)),["stop"]),icon:"mdi-close",size:"small"},null,8,["onClick"])])))),128)),(0,u.Wm)($.f,{"custom-filter":e.customFilter,"match-any":!0,modelValue:l.employeeSelect,"onUpdate:modelValue":t[2]||(t[2]=e=>l.employeeSelect=e),label:"Priradený",class:(0,p.C_)([{error:l.v$.team.employees.$errors.length},"modal-input"]),items:n.employeesOptions,"item-title":"_fullName","item-value":"id",variant:"solo",clearable:"",ref:"autocomplete"},null,8,["custom-filter","modelValue","class","items"])])),_:1}),(0,u.Wm)(v.T,{class:"button primary block",onClick:t[3]||(t[3]=e=>n.save())},{default:(0,u.w5)((()=>[(0,u.Uk)((0,p.zw)(l.team.id?"UPRAVIŤ":"VYTVORIŤ"),1)])),_:1})])),_:1})])),_:1},8,["content"])])),_:1},8,["modelValue"])}var W=s(33053),S=s(69117),V=s(7648),O=s(34407),z=s(20065),A=s(83299);const U=e=>e.length;var Z={mixins:[A.Z,b],emits:["close","update"],data(){return{visible:!1,v$:(0,W.ZP)(),errorUtils:V.Z,employeeSelect:null,team:null}},computed:{...(0,z.Se)("tm",["enrichedEmployees"]),employeesOptions(){const e=this.team.employees.map((e=>e.id));return this.enrichedEmployees.filter((t=>!e.includes(t.id)))}},validations(){return{team:{name:{required:S.C1},employees:{atLeastOne:U}}}},methods:{async showModal({team:e=null}){this.visible=!0,this.team=null,this.$nextTick((()=>this.v$.$reset()));try{if(e?.id){const t=await this.$axios.get_auth_data(`v1/teams/${e.id}`);this.team=this._enrichTeam(t)}else this.team={employees:[]}}catch(t){this.$toast.error(t)}},closeModal(){this.visible=!1,this.$emit("close",this.team)},async save(){if(await this.v$.$validate())try{if(this.team.id){const{team:e}=await this.$axios.put_auth(`v1/teams/${this.team.id}`,this.team),t=await this.$axios.get_auth_data(`v1/teams/${e.id}`);this.$store.commit("tm/update_team",t)}else{const{team:e}=await this.$axios.post_auth("v1/teams",this.team),t=await this.$axios.get_auth_data(`v1/teams/${e.id}`);this.$store.commit("tm/save_team",t)}this.closeModal()}catch(e){this.$toast.error(e)}},_enrichTeam(e){return e.employees=O.Z.enrichEmployees(e.employees),e}},watch:{employeeSelect(e){if(!e)return;const t=this.enrichedEmployees.find((t=>t.id==e));this.team.employees.push(t),this.employeeSelect=null,this.$refs.autocomplete.search=""}}};const H=(0,M.Z)(Z,[["render",x]]);var F=H;const I={class:"d-flex justify-space-between align-center"};function P(e,t,s,i,l,n){return(0,u.wg)(),(0,u.j4)(g.B,{modelValue:l.visible,"onUpdate:modelValue":t[3]||(t[3]=e=>l.visible=e),"max-width":"750",persistent:""},{default:(0,u.w5)((()=>[(0,u.Wm)(k._,null,{default:(0,u.w5)((()=>[(0,u._)("div",I,[(0,u._)("h1",null,[(0,u.Uk)("Ste si istý, že chcete zmazať sub task z mastertasku "),(0,u._)("b",null,(0,p.zw)(l.subtask.project_code),1),(0,u.Uk)("?")]),(0,u.Wm)(w.t,{onClick:t[0]||(t[0]=(0,a.iM)((e=>n.closeModal()),["stop"])),icon:"mdi-close",size:"large",class:"mb-15"})]),(0,u.Wm)(f.h,{class:"mt-10 d-flex justify-start align-center mobile-view"},{default:(0,u.w5)((()=>[(0,u.Wm)(v.T,{class:"button primary half",variant:"flat",onClick:t[1]||(t[1]=e=>n.deleteTask()),disabled:l.isDeleting},{default:(0,u.w5)((()=>[(0,u.Uk)("ÁNO")])),_:1},8,["disabled"]),(0,u.Wm)(v.T,{class:"button primary half outline",onClick:t[2]||(t[2]=(0,a.iM)((e=>n.closeModal()),["stop"]))},{default:(0,u.w5)((()=>[(0,u.Uk)("ZRUŠIŤ")])),_:1})])),_:1})])),_:1})])),_:1},8,["modelValue"])}var L={mixins:[b],emits:["on-subtask-deleted"],data(){return{visible:!1,subtask:null,isDeleting:!1}},methods:{async showModal({subtask:e}){this.subtask=e,this.visible=!0},closeModal(){this.visible=!1},async deleteTask(){if(!this.isDeleting){this.isDeleting=!0;try{await this.$axios.delete_auth(`v1/subtasks/${this.subtask.id}`),this.$store.commit("tm/delete_subtask",this.subtask),this.closeModal(),this.$emit("on-subtask-deleted",this.subtask)}catch(e){this.$toast.error(e)}finally{this.isDeleting=!1}}}}};const N=(0,M.Z)(L,[["render",P]]);var Y=N;const q=e=>((0,u.dD)("data-v-d2c490ee"),e=e(),(0,u.Cn)(),e),B={class:"d-flex justify-space-between align-center"},R=q((()=>(0,u._)("h4",{class:"mt-3"},"Vyberte časový úsek, ktorý chcete odstrániť",-1)));function K(e,t,s,i,l,n){return(0,u.wg)(),(0,u.j4)(g.B,{modelValue:l.visible,"onUpdate:modelValue":t[1]||(t[1]=e=>l.visible=e),"max-width":"500",persistent:""},{default:(0,u.w5)((()=>[(0,u.Wm)(k._,null,{default:(0,u.w5)((()=>[(0,u._)("div",B,[R,(0,u.Wm)(w.t,{onClick:t[0]||(t[0]=(0,a.iM)((e=>n.closeModal()),["stop"])),icon:"mdi-close",size:"large"})]),((0,u.wg)(!0),(0,u.iD)(u.HY,null,(0,u.Ko)(l.subtask.timeblocks,((e,t)=>((0,u.wg)(),(0,u.iD)("div",{key:e.id,class:"d-flex align-center justify-center mb-3 mt-3"},[(0,u._)("p",{class:(0,p.C_)(["task-badge rounded-pill",{"strike-through":e.is_finished}])},(0,p.zw)(l.tmUtils.formatDateTime(e.start))+" - "+(0,p.zw)(l.tmUtils.formatDateTime(e.end)),3),(0,u.Wm)(w.t,{onClick:(0,a.iM)((s=>l.subtask.id?n.deleteTimeblock(e):n.deleteTimeblockWithoutId(t)),["stop"]),class:"close-icon circle-border cursor-pointer ml-3 text-red",icon:"mdi-close",size:"medium"},null,8,["onClick"])])))),128))])),_:1})])),_:1},8,["modelValue"])}var J={mixins:[b],emits:["on-subtask-edited"],data(){return{visible:!1,subtask:null,isDeleting:!1,tmUtils:O.Z}},methods:{async showModal({subtask:e}){this.subtask=e,this.visible=!0},closeModal(){this.visible=!1},async deleteTimeblock({id:e}){const t=JSON.parse(JSON.stringify(this.subtask));t.timeblocks=t.timeblocks.filter((t=>t.id!=e)),t.deadline&&(t.deadline=O.Z.formatDateTimeForBackend(t.deadline)),this._update(t)},deleteTimeblockWithoutId(e){this.$emit("delete-timeblock")},async _update(e){try{const t=e.timesheets.map((e=>(delete e.employee_name,e))),{subtask:s}=await this.$axios.put_auth(`v1/subtasks/${e.id}`,{...e,timesheets:t});this.closeModal(),this.$events.emit("on-subtask-edited",s)}catch(t){this.$toast.error(t.message||t)}}}};const G=(0,M.Z)(J,[["render",K],["__scopeId","data-v-d2c490ee"]]);var X=G;const Q=e=>((0,u.dD)("data-v-68445d77"),e=e(),(0,u.Cn)(),e),ee={class:"d-flex justify-space-between align-center modal-header"},te={class:"splitted-inputs"},se=Q((()=>(0,u._)("path",{d:"M23.057 7.057l-16 16c-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0l16-16c0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0z"},null,-1))),ae=Q((()=>(0,u._)("path",{d:"M7.057 8.943l16 16c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885l-16-16c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885z"},null,-1))),ie=[se,ae],le=["onClick"],ne=Q((()=>(0,u._)("path",{d:"M23.057 7.057l-16 16c-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0l16-16c0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0z"},null,-1))),oe=Q((()=>(0,u._)("path",{d:"M7.057 8.943l16 16c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885l-16-16c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885z"},null,-1))),re=[ne,oe],de={class:"w-100 modal-input"},ue={class:"d-flex justify-space-between align-center"},ce={class:"d-flex justify-space-between align-center modal-header border-bottom pb-4"},me={class:"d-flex justify-start"},he=["src"],pe=["src"],ve={class:"w-100"},ke={class:"d-flex justify-start align-center mt-8"};function fe(e,t,i,l,n,o){const r=(0,u.up)("Datepicker"),d=(0,u.up)("QuillEditor"),c=(0,u.up)("Z-files-upload"),m=(0,u.up)("Z-task-readonly-info"),h=(0,u.up)("W-loadable");return(0,u.wg)(),(0,u.j4)(g.B,{modelValue:n.visible,"onUpdate:modelValue":t[20]||(t[20]=e=>n.visible=e),"max-width":"750","max-height":"90%",height:"700px",persistent:""},{default:(0,u.w5)((()=>[(0,u.Wm)(h,{content:n.subtask,class:"h-100"},{default:(0,u.w5)((()=>[n.editMode?((0,u.wg)(),(0,u.j4)(k._,{key:0,height:"100%",class:"d-flex flex-column scrolling"},{default:(0,u.w5)((()=>[(0,u._)("div",ee,[(0,u._)("h1",null,(0,p.zw)(n.subtask?.id?"Upraviť sub task":"Vytvoriť sub task"),1),(0,u.Wm)(w.t,{onClick:t[0]||(t[0]=(0,a.iM)((e=>o.closeModal()),["stop"])),icon:"mdi-close",size:"large"})]),(0,u.Wm)(f.h,{class:"d-flex flex-column modal-content"},{default:(0,u.w5)((()=>[(0,u.Wm)(j.hw,{modelValue:n.subtask.project_code,"onUpdate:modelValue":t[1]||(t[1]=e=>n.subtask.project_code=e),label:"Kód projektu",value:n.subtask.project_code,onFocus:e.onInputFocus,class:"modal-input",variant:"solo",disabled:""},null,8,["modelValue","value","onFocus"]),(0,u.Wm)($.f,{"custom-filter":e.customFilter,"match-any":!0,modelValue:n.subtask.master_task_id,"onUpdate:modelValue":t[2]||(t[2]=e=>n.subtask.master_task_id=e),label:"Master task",class:(0,p.C_)([{error:n.v$.subtask.master_task_id.$errors.length},"modal-input"]),items:e.mastertasks,"item-title":"name","item-value":"id",variant:"solo",clearable:""},null,8,["custom-filter","modelValue","class","items"]),(0,u.Wm)(j.hw,{modelValue:n.subtask.title,"onUpdate:modelValue":t[3]||(t[3]=e=>n.subtask.title=e),onFocus:e.onInputFocus,class:"modal-input",label:"Názov subtasku",variant:"solo"},null,8,["modelValue","onFocus"]),(0,u._)("div",te,[(0,u.Wm)(r,{modelValue:n.subtask.deadline,"onUpdate:modelValue":t[4]||(t[4]=e=>n.subtask.deadline=e),"auto-apply":!0,onFocus:e.onDateFocus,"min-date":new Date,class:(0,p.C_)(["modal-input left",{error:n.v$.subtask.deadline.$errors?.length}]),format:"dd.MM.yyyy",locale:"sk","select-text":"Vybrať","cancel-text":"Zrušiť",placeholder:"Dátum",validations:n.v$.subtask.deadline},null,8,["modelValue","onFocus","min-date","class","validations"]),(0,u.Wm)(j.hw,{class:(0,p.C_)(["modal-input right",{error:n.v$.subtask._deadline_time.$errors.length}]),variant:"solo",modelValue:n.subtask._deadline_time,"onUpdate:modelValue":t[5]||(t[5]=e=>n.subtask._deadline_time=e),label:"Čas","append-inner-icon":"mdi-clock-outline",type:"time",onFocus:e.onInputFocus,hint:n.v$.subtask._deadline_time.$errors?n.errorUtils.parseErrors(n.v$.subtask._deadline_time.$errors):null},null,8,["modelValue","onFocus","class","hint"])]),n.subtask.id?((0,u.wg)(),(0,u.iD)(u.HY,{key:0},[(0,u._)("div",{class:(0,p.C_)(["employee-wrapper",{"hide-arrow":n.subtask.employee_id}])},[n.subtask.employee_id?((0,u.wg)(),(0,u.iD)("svg",{key:0,version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32",class:"dp__icon dp__clear_icon dp__input_icons","data-test":"clear-icon",onClick:t[6]||(t[6]=(0,a.iM)((e=>{n.subtask.employee_id=null,n.subtask.employee=null}),["prevent"]))},ie)):(0,u.kq)("",!0),(0,u.Wm)($.f,{"custom-filter":e.customFilter,"match-any":!0,modelValue:n.subtask.employee_id,"onUpdate:modelValue":[t[7]||(t[7]=e=>n.subtask.employee_id=e),t[8]||(t[8]=e=>n.employeeValidations[0]?n.employeeValidations[0].employee=!1:null)],label:"Priradený",items:e.enrichedEmployees,"item-title":"_fullName","item-value":"id",variant:"solo",class:(0,p.C_)(["modal-input",{error:n.employeeValidations[0]?.employee}])},null,8,["custom-filter","modelValue","items","class"])],2),(0,u.Wm)(j.hw,{modelValue:n.subtask.duration,"onUpdate:modelValue":[t[9]||(t[9]=e=>n.subtask.duration=e),t[10]||(t[10]=e=>n.employeeValidations[0]?n.employeeValidations[0].duration=!1:null)],class:(0,p.C_)(["modal-input",{error:n.employeeValidations[0]?.duration}]),variant:"solo",type:"number",label:"Časový odhad","append-inner-icon":"mdi-clock-outline",onFocus:e.onInputFocus},null,8,["modelValue","class","onFocus"])],64)):((0,u.wg)(!0),(0,u.iD)(u.HY,{key:1},(0,u.Ko)(n.subtask.employees,((t,s)=>((0,u.wg)(),(0,u.iD)("div",{key:`employee-${s}`,class:(0,p.C_)(["splitted-inputs remove-employee",{"hide-arrow":t.id}])},[(0,u.Wm)($.f,{"custom-filter":e.customFilter,"match-any":!0,modelValue:t.id,"onUpdate:modelValue":[e=>t.id=e,e=>n.employeeValidations[s]?n.employeeValidations[s].employee=!1:null],label:"Priradený",items:e.enrichedEmployees,"item-title":"_fullName","item-value":"id",variant:"solo",class:(0,p.C_)(["modal-input left",{error:n.employeeValidations[s]?.employee}])},null,8,["custom-filter","modelValue","onUpdate:modelValue","items","class"]),t.id?((0,u.wg)(),(0,u.iD)("svg",{key:0,version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32",class:"dp__icon dp__clear_icon dp__input_icons","data-test":"clear-icon",onClick:(0,a.iM)((e=>t.id=null),["prevent"])},re,8,le)):(0,u.kq)("",!0),(0,u.Wm)(j.hw,{modelValue:t.duration,"onUpdate:modelValue":[e=>t.duration=e,e=>n.employeeValidations[s]?n.employeeValidations[s].duration=!1:null],class:(0,p.C_)(["modal-input right",{error:n.employeeValidations[s]?.duration}]),variant:"solo",type:"number",label:"Časový odhad","append-inner-icon":"mdi-clock-outline",onFocus:e.onInputFocus},null,8,["modelValue","onUpdate:modelValue","class","onFocus"])],2)))),128)),(0,u._)("div",de,[(0,u.Wm)(d,{ref:"description",modelValue:n.subtask.description,"onUpdate:modelValue":t[11]||(t[11]=e=>n.subtask.description=e),placeholder:"Popis",theme:"snow",class:"rich-text-editor",onInput:t[12]||(t[12]=e=>n.subtask.description=e.srcElement.innerHTML)},null,8,["modelValue"])]),(0,u.Wm)(c,{class:"mt-15 files",files:n.subtask.files,onFilesUploaded:o.filesUploaded,"is-saving":n.isSaving},null,8,["files","onFilesUploaded","is-saving"])])),_:1}),n.isSaving?((0,u.wg)(),(0,u.j4)(v.T,{key:1,class:"button primary disabled",disabled:""},{default:(0,u.w5)((()=>[(0,u.Uk)((0,p.zw)(e.$t("Ukladám...")),1)])),_:1})):((0,u.wg)(),(0,u.j4)(v.T,{key:0,class:"button primary",onClick:t[13]||(t[13]=e=>o.save())},{default:(0,u.w5)((()=>[(0,u.Uk)((0,p.zw)(n.subtask.id?"UPRAVIŤ":"VYTVORIŤ"),1)])),_:1}))])),_:1})):((0,u.wg)(),(0,u.j4)(k._,{key:1,height:"100%",class:"d-flex flex-column scrolling"},{default:(0,u.w5)((()=>[(0,u._)("div",ue,[(0,u._)("div",null,[(0,u._)("p",null,(0,p.zw)(n.subtask._master_task.project_code),1),(0,u._)("h1",null,(0,p.zw)(n.subtask._master_task.name),1)]),(0,u.Wm)(w.t,{onClick:t[14]||(t[14]=(0,a.iM)((e=>o.closeModal()),["stop"])),icon:"mdi-close",size:"large",class:"pb-5"})]),(0,u._)("div",ce,[(0,u._)("h1",null,(0,p.zw)(n.subtask.title),1),(0,u._)("div",me,[(0,u._)("img",{class:"icon",src:s(60666),alt:"pencil-icon",onClick:t[15]||(t[15]=(0,a.iM)((e=>n.editMode=!n.editMode),["stop"]))},null,8,he),(0,u._)("img",{class:"icon trash",src:s(27484),alt:"trash-icon",onClick:t[16]||(t[16]=(0,a.iM)((e=>o.openDeleteTaskModal(n.subtask)),["stop"]))},null,8,pe)])]),(0,u.Wm)(f.h,{class:"d-flex flex-column modal-content"},{default:(0,u.w5)((()=>[(0,u._)("div",ve,[(0,u.Wm)(m,{subtask:n.subtask,onCloseModal:o.closeModal,onUpdateSubtask:o.updateSubtask},null,8,["subtask","onCloseModal","onUpdateSubtask"]),(0,u._)("div",ke,[n.subtask.is_finished?((0,u.wg)(),(0,u.j4)(v.T,{key:1,class:"button secondary",onClick:t[18]||(t[18]=(0,a.iM)((e=>o.showCompleteTaskModal()),["stop"]))},{default:(0,u.w5)((()=>[(0,u.Uk)("Znovu otvoriť")])),_:1})):((0,u.wg)(),(0,u.j4)(v.T,{key:0,class:"done-btn",onClick:t[17]||(t[17]=(0,a.iM)((e=>o.showCompleteTaskModal()),["stop"]))},{default:(0,u.w5)((()=>[(0,u.Uk)("Dokončiť")])),_:1})),(0,u.Wm)(v.T,{class:"button secondary",onClick:t[19]||(t[19]=e=>o.closeModal())},{default:(0,u.w5)((()=>[(0,u.Uk)("Uložiť zmeny")])),_:1})])])])),_:1})])),_:1}))])),_:1},8,["content"])])),_:1},8,["modelValue"])}var ge=s(63972),we=s(87103);const _e={class:"w-100 d-flex align-center"},ye={key:0,class:"m-2 d-flex align-center flex-wrap"},be={key:0,class:"d-flex align-center"},De=["src"];function Me(e,t,i,l,n,o){return(0,u.wg)(),(0,u.iD)("div",_e,[(0,u._)("input",{type:"file",multiple:"",name:"file",id:"fileInput",class:"hidden-input",accept:"*",onChange:t[0]||(t[0]=(...e)=>o.onChange&&o.onChange(...e)),ref:"fileUpload"},null,544),(0,u.Wm)(v.T,{class:"upload-btn",onClick:t[1]||(t[1]=t=>e.$refs.fileUpload.click())},{default:(0,u.w5)((()=>[(0,u.Wm)(w.t,{class:"mx-1",icon:"mdi-cloud-upload-outline"}),(0,u.Uk)("NAHRAŤ ")])),_:1}),n.uploadedFiles?((0,u.wg)(),(0,u.iD)("div",ye,[((0,u.wg)(!0),(0,u.iD)(u.HY,null,(0,u.Ko)(n.uploadedFiles,(e=>((0,u.wg)(),(0,u.iD)("div",{key:e.name,class:"mx-2"},[(0,u.Wm)(we.v,{class:"mt-2"},{default:(0,u.w5)((()=>[(0,u.Uk)((0,p.zw)(e.name)+" ",1),(0,u.Wm)(w.t,{class:"mx-1",icon:"mdi-paperclip"}),(0,u._)("p",null,(0,p.zw)((e.size/1048576).toFixed(2))+" MB",1),(0,u.Wm)(w.t,{size:"small",icon:"mdi-close",onClick:(0,a.iM)((t=>o.remove(n.uploadedFiles.indexOf(e))),["stop"])},null,8,["onClick"])])),_:2},1024)])))),128)),i.isSaving?((0,u.wg)(),(0,u.iD)("div",be,[i.isSaving?((0,u.wg)(),(0,u.iD)("img",{key:0,class:"gif-loader",src:s(14214),alt:"Loading..."},null,8,De)):(0,u.kq)("",!0)])):(0,u.kq)("",!0)])):(0,u.kq)("",!0)])}var Te={emit:["files-uploaded"],props:{files:{type:Array,default:()=>[]},isSaving:{type:Boolean,required:!1}},data(){return{uploadedFiles:[]}},created(){this.uploadedFiles=this.files},methods:{onChange(){const e=[...this.$refs.fileUpload.files],t=52428800,s=e.filter((e=>e.size>t));s.length>0?this.$toast.error("File is too large. Maximum file size is 50 MB."):(this.uploadedFiles=[...this.uploadedFiles,...e],this.$emit("files-uploaded",this.uploadedFiles),this.$refs.fileUpload.value="")},remove(e){this.uploadedFiles.splice(e,1)}}};const Ce=(0,M.Z)(Te,[["render",Me],["__scopeId","data-v-29172155"]]);var $e=Ce,je=s(16824),Ee=s(68521),xe=s(74286);const We={class:"d-flex align-center"},Se=(0,u._)("p",{class:"mx-3"},"Trvanie",-1),Ve={class:"d-flex align-center mb-3"},Oe=(0,u._)("p",{class:"task-badge rounded-pill"},"Pridať záznam",-1),ze={class:"d-flex justify-space-between align-center"},Ae=(0,u._)("h1",null,"Pridať dátum",-1),Ue={class:"d-flex justify-space-between align-center"},Ze={class:"text-red"},He=(0,u._)("br",null,null,-1),Fe={class:"text-black"};function Ie(e,t,s,i,l,n){const o=(0,u.up)("Datepicker");return(0,u.wg)(),(0,u.iD)(u.HY,null,[(0,u.Wm)(je.o,{"no-gutters":""},{default:(0,u.w5)((()=>[(0,u.Wm)(Ee.D,{cols:"5"},{default:(0,u.w5)((()=>[(0,u.Wm)(xe.C,{class:"py-3"},{default:(0,u.w5)((()=>[(0,u._)("div",We,[(0,u.Wm)(w.t,{icon:"mdi-calendar-week",size:"large"}),Se])])),_:1})])),_:1}),(0,u.Wm)(Ee.D,{cols:"7"},{default:(0,u.w5)((()=>[(0,u.Wm)(xe.C,{class:"py-3"},{default:(0,u.w5)((()=>[(0,u._)("div",Ve,[(0,u.Wm)(w.t,{onClick:t[0]||(t[0]=e=>l.showModal=!0),class:"add-date cursor-pointer mr-2",icon:"mdi-plus",size:"medium"}),Oe]),((0,u.wg)(!0),(0,u.iD)(u.HY,null,(0,u.Ko)(s.timeblocks,((e,t)=>((0,u.wg)(),(0,u.iD)("div",{key:e.id,class:"d-flex align-center mb-3"},[(0,u.Wm)(w.t,{onClick:(0,a.iM)((a=>s.subtask.id?n.deleteTimeblock(e):n.deleteTimeblockWithoutId(t)),["stop"]),class:"circle-border cursor-pointer mr-2",icon:"mdi-minus",size:"medium"},null,8,["onClick"]),(0,u._)("p",{class:(0,p.C_)(["task-badge rounded-pill",{"strike-through":e.is_finished}])},(0,p.zw)(l.tmUtils.formatDateTime(e.start))+" - "+(0,p.zw)(l.tmUtils.formatDateTime(e.end)),3),(0,u.wy)((0,u.Wm)(w.t,{onClick:(0,a.iM)((t=>n.toggleTimeblockIsFinished(e)),["stop"]),class:(0,p.C_)(["circle-border cursor-pointer ml-2",{completed:e.is_finished}]),icon:"mdi-check",size:"medium"},null,8,["onClick","class"]),[[a.F8,s.subtask.id]])])))),128))])),_:1})])),_:1})])),_:1}),(0,u.Wm)(g.B,{"max-width":"750",modelValue:l.showModal,"onUpdate:modelValue":t[6]||(t[6]=e=>l.showModal=e),persistent:""},{default:(0,u.w5)((()=>[(0,u.Wm)(k._,null,{default:(0,u.w5)((()=>[(0,u._)("div",ze,[Ae,(0,u.Wm)(w.t,{onClick:t[1]||(t[1]=(0,a.iM)((e=>n.closeModal()),["stop"])),icon:"mdi-close",size:"large"})]),(0,u.Wm)(f.h,{class:"mt-10 d-flex flex-column modal-content"},{default:(0,u.w5)((()=>[(0,u.Wm)(o,{modelValue:l.form.date,"onUpdate:modelValue":t[2]||(t[2]=e=>l.form.date=e),format:"dd.MM.yyyy",locale:"sk","select-text":"Vybrať","cancel-text":"Zrušiť",placeholder:"Dátum","auto-apply":!0,"enable-time-picker":!1,class:(0,p.C_)(["mb-5 modal-input",{error:l.v$.form.date.$errors.length}])},null,8,["modelValue","class"]),(0,u.Wm)(j.hw,{modelValue:l.form.starts_at_time,"onUpdate:modelValue":t[3]||(t[3]=e=>l.form.starts_at_time=e),type:"time",variant:"solo","bg-color":"white",hint:l.v$.form.starts_at_time.$errors?l.errorUtils.parseErrors(l.v$.form.starts_at_time.$errors):null,class:(0,p.C_)([{error:l.v$.form.starts_at_time.$errors.length},"mb-1 modal-input"]),label:"Začiatok"},null,8,["modelValue","hint","class"]),(0,u.Wm)(j.hw,{modelValue:l.form.ends_at_time,"onUpdate:modelValue":t[4]||(t[4]=e=>l.form.ends_at_time=e),type:"time",variant:"solo","bg-color":"white",hint:l.v$.form.ends_at_time.$errors?l.errorUtils.parseErrors(l.v$.form.ends_at_time.$errors):null,class:(0,p.C_)([{error:l.v$.form.ends_at_time.$errors.length},"modal-input"]),label:"Koniec"},null,8,["modelValue","hint","class"])])),_:1}),(0,u.Wm)(v.T,{onClick:t[5]||(t[5]=e=>n.submit()),class:"button primary mt-5"},{default:(0,u.w5)((()=>[(0,u.Uk)("Potvrdiť")])),_:1})])),_:1})])),_:1},8,["modelValue"]),(0,u.Wm)(g.B,{modelValue:l.visible,"onUpdate:modelValue":t[10]||(t[10]=e=>l.visible=e),"max-width":"750",persistent:""},{default:(0,u.w5)((()=>[(0,u.Wm)(k._,null,{default:(0,u.w5)((()=>[(0,u._)("div",Ue,[(0,u._)("h1",Ze,[(0,u.Uk)("Ste si istý, že chcete pridať timeblock po deadline "),He,(0,u.Uk)(),(0,u._)("b",Fe,"z mastertasku "+(0,p.zw)(s.subtask?.project_code)+" ?",1)]),(0,u.Wm)(w.t,{onClick:t[7]||(t[7]=(0,a.iM)((e=>l.visible=!1),["stop"])),icon:"mdi-close",size:"large",class:"mb-15"})]),(0,u.Wm)(f.h,{class:"mt-10 d-flex justify-start align-center mobile-view"},{default:(0,u.w5)((()=>[(0,u.Wm)(v.T,{class:"button primary half",variant:"flat",onClick:t[8]||(t[8]=(0,a.iM)((e=>n.confirmSubmit()),["stop"]))},{default:(0,u.w5)((()=>[(0,u.Uk)("ÁNO")])),_:1}),(0,u.Wm)(v.T,{class:"button primary half outline",onClick:t[9]||(t[9]=(0,a.iM)((e=>l.visible=!1),["stop"]))},{default:(0,u.w5)((()=>[(0,u.Uk)("ZRUŠIŤ")])),_:1})])),_:1})])),_:1})])),_:1},8,["modelValue"])],64)}var Pe=s(36797),Le=s.n(Pe),Ne={mixins:[b],emits:["update-subtask"],components:{Datepicker:ge.Z},props:{timeblocks:{type:Array,required:!0},subtask:{type:Object,required:!0}},data(){return{v$:(0,W.ZP)(),errorUtils:V.Z,tmUtils:O.Z,showModal:!1,visible:!1,form:{date:null,starts_at_time:"09:00",ends_at_time:"16:00"}}},validations(){return{form:{date:{required:S.C1},starts_at_time:{required:S.C1},ends_at_time:{required:S.C1}}}},computed:{...(0,z.Se)("tm",["mastertasks"])},methods:{async submit(){if(!await this.v$.$validate())return;const e=JSON.parse(JSON.stringify(this.subtask)),t=this.form.starts_at_time.split(":"),s=this.form.ends_at_time.split(":"),a=Le()(this.form.date).hours(parseInt(t[0])).minutes(parseInt(t[1])).toISOString(),i=Le()(this.form.date).hours(parseInt(s[0])).minutes(parseInt(s[1])).toISOString();e?.timeblocks||(e.timeblocks=[]),e?.timesheets||(e.timesheets=[]),e?.is_finished||(e.is_finished=0),e.timeblocks.push({end:O.Z.formatDateTimeForBackend(i),id:null,is_finished:0,start:O.Z.formatDateTimeForBackend(a)}),e.deadline&&(e.deadline=O.Z.formatDateTimeForBackend(e.deadline));const l=this.isAfterDeadline();l?this.visible=!0:e.id?this._update(e):this.$emit("update-unfinished-subtask",e)},async confirmSubmit(){const e=JSON.parse(JSON.stringify(this.subtask)),t=this.form.starts_at_time.split(":"),s=this.form.ends_at_time.split(":"),a=Le()(this.form.date).hours(parseInt(t[0])).minutes(parseInt(t[1])).toISOString(),i=Le()(this.form.date).hours(parseInt(s[0])).minutes(parseInt(s[1])).toISOString();if(e?.timeblocks||(e.timeblocks=[]),e?.timesheets||(e.timesheets=[]),e?.is_finished||(e.is_finished=0),e.timeblocks.push({end:O.Z.formatDateTimeForBackend(i),id:null,is_finished:0,start:O.Z.formatDateTimeForBackend(a)}),e.deadline&&(e.deadline=O.Z.formatDateTimeForBackend(e.deadline)),!e.id)return this.$emit("update-unfinished-subtask",e),void this.closeModal();this.visible=!1,this._update(e)},async toggleTimeblockIsFinished(e){const t=JSON.parse(JSON.stringify(this.subtask)),s=JSON.parse(JSON.stringify(e));s.is_finished=1==s.is_finished?0:1;try{const{data:e}=await this.$axios.put_auth(`v1/timeblocks/${s.id}`,s);t.timeblocks=t.timeblocks.map((t=>t.id==e.id?e:t)),this.$events.emit("on-subtask-edited",t),this.$emit("update-subtask",t),s.is_finished&&this.$events.emit("show-task-add-time-modal",{subtask:t})}catch(a){this.$toast.error(a.message||a)}},async deleteTimeblock({id:e}){const t=JSON.parse(JSON.stringify(this.subtask));t.timeblocks=t.timeblocks.filter((t=>t.id!=e)),t.deadline&&(t.deadline=O.Z.formatDateTimeForBackend(t.deadline)),this._update(t)},deleteTimeblockWithoutId(e){this.$emit("delete-timeblock")},async _update(e){try{const t=e.timesheets.map((e=>(delete e.employee_name,e))),{subtask:s}=await this.$axios.put_auth(`v1/subtasks/${e.id}`,{...e,timesheets:t});this.closeModal(),this.$events.emit("on-subtask-edited",s)}catch(t){this.$toast.error(t.message||t)}},isAfterDeadline(){const e=this.getDeadline(this.subtask);return!!e&&this.tmUtils.isAfter(this.form.date,Le()(e,"DD.MM.yyyy"))},getDeadline(e){if(e.deadline)return Le()(e.deadline).format("DD.MM.yyyy");if(!this.mastertasks)return"";const t=this.mastertasks.find((t=>t.id===e.master_task_id));return Le()(t).format("DD.MM.yyyy")?Le()(t.deadline).format("DD.MM.yyyy"):""},closeModal(){this.form={date:null,starts_at_time:"09:00",ends_at_time:"16:00"},this.showModal=!1,this.$nextTick((()=>this.v$.$reset()))}}};const Ye=(0,M.Z)(Ne,[["render",Ie]]);var qe=Ye,Be=s(96149),Re={data(){return{preventInputFocus:!1}},methods:{onDateFocus(e){void 0==e&&(this.preventInputFocus=!0)},onInputFocus(e){this.preventInputFocus&&(e.target.blur(),this.preventInputFocus=!1)}}},Ke=s(15941),Je={computed:{employeesOptions(){const e=[...this.mastertask.employees].map((e=>e.id));return this.enrichedEmployees.filter((t=>!e.includes(t.id)))||[]},projectsOptions(){const e=/[^a-zA-Z0-9 ]/g,t=this.projectCodeSearch?this.projectCodeSearch.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(e,""):"",s=this.projects.filter((s=>{const a=s.code.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(e,"");return a.toLowerCase().includes(t.toLowerCase())}));let a=s?.length?s.slice(0,10):this.projects.slice(0,10);if(!this.mastertask?.project_id)return a;const i=this.projects.find((e=>e.id==this.mastertask?.project_id));return a=a.filter((e=>e.id!=i.id)),[...a,i]}},methods:{onEmployeeSelected(e){const t=this.enrichedEmployees.find((t=>t.id==e));Ke.log("add employee",t),this.mastertask.employees.push(t),this.showAddEmployeeInput=!1},onEmployeeDurationChanged(){let e=0;this.mastertask.employees=this.mastertask.employees.map((t=>("string"==typeof t.duration?(e+=parseFloat(t.duration),t.duration=parseFloat(t.duration),t.invalid=!1):"number"==typeof t.duration&&(e+=t.duration,t.invalid=!1),t))),this.mastertask.duration=e}},watch:{"mastertask.team_id"(e){if(!e)return;const t=this.teams.find((t=>t.id==e));t&&(this.mastertask.team=JSON.parse(JSON.stringify(t)),this.mastertask.employees=[...this.mastertask.team.employees])}}},Ge=s(66154);function Xe(e,t,s,a,i,l){const n=(0,u.up)("A-mastertask-name"),o=(0,u.up)("A-mastertask-status"),r=(0,u.up)("A-task-deadline"),d=(0,u.up)("A-task-timeblocks"),c=(0,u.up)("Z-created-by"),m=(0,u.up)("A-task-assigned-employee"),h=(0,u.up)("A-task-planned-time"),p=(0,u.up)("A-task-remaining-time"),v=(0,u.up)("A-task-spent-time"),k=(0,u.up)("A-task-description"),f=(0,u.up)("Z-files");return(0,u.wg)(),(0,u.iD)(u.HY,null,[(0,u.Wm)(n,{name:s.subtask._master_task.name,id:s.subtask.master_task_id,color:s.subtask._master_task.color,onCloseModal:t[0]||(t[0]=t=>e.$emit("close-modal"))},null,8,["name","id","color"]),(0,u.Wm)(o,{isFinished:s.subtask.is_finished},null,8,["isFinished"]),(0,u.Wm)(r,{subtask:s.subtask},null,8,["subtask"]),(0,u.Wm)(d,{timeblocks:s.subtask.timeblocks,subtask:s.subtask,onUpdateSubtask:t[1]||(t[1]=t=>e.$emit("update-subtask",t))},null,8,["timeblocks","subtask"]),(0,u.Wm)(c,{"employee-id":s.subtask.created_by},null,8,["employee-id"]),(0,u.Wm)(m,{employee:s.subtask._employee},null,8,["employee"]),(0,u.Wm)(h,{hours:s.subtask.duration},null,8,["hours"]),(0,u.Wm)(p,{hours:s.subtask.duration-s.subtask.spent_time},null,8,["hours"]),(0,u.Wm)(v,{hours:s.subtask.spent_time,subtask:s.subtask},null,8,["hours","subtask"]),(0,u.Wm)(k,{description:s.subtask.description,"mastertask-description":s.subtask.master_task_description},null,8,["description","mastertask-description"]),(0,u.Wm)(f,{files:s.subtask.files},null,8,["files"])],64)}const Qe={class:"d-flex align-center"},et=(0,u._)("p",{class:"mx-3"},"Mastertask",-1);function tt(e,t,s,a,i,l){return(0,u.wg)(),(0,u.j4)(je.o,{"no-gutters":"",class:"align-center"},{default:(0,u.w5)((()=>[(0,u.Wm)(Ee.D,{cols:"5"},{default:(0,u.w5)((()=>[(0,u.Wm)(xe.C,{class:"py-3"},{default:(0,u.w5)((()=>[(0,u._)("div",Qe,[(0,u.Wm)(w.t,{icon:"mdi-link",size:"large"}),et])])),_:1})])),_:1}),(0,u.Wm)(Ee.D,{cols:"7"},{default:(0,u.w5)((()=>[(0,u.Wm)(xe.C,{class:"py-3"},{default:(0,u.w5)((()=>[(0,u._)("p",{class:"task-badge px-4 py-2 rounded-pill hover",onClick:t[0]||(t[0]=e=>l.openMastertask()),style:(0,p.j5)({backgroundColor:s.color})},(0,p.zw)(s.name),5)])),_:1})])),_:1})])),_:1})}var st={emits:["close-modal"],props:{name:{type:String,required:!0},id:{type:Number,required:!0},color:{type:String,required:!0}},methods:{openMastertask(){this.$emit("close-modal"),this.$events.emit("show-mastertask-modal",{mastertask:{id:this.id},editMode:!1})}}};const at=(0,M.Z)(st,[["render",tt]]);var it=at;const lt={class:"d-flex align-center"},nt=(0,u._)("p",{class:"mx-3"},"Status",-1),ot={key:0,class:"status-badge px-4 py-2 rounded-pill"},rt={key:1,class:"status-badge px-4 py-2 rounded-pill"};function dt(e,t,s,a,i,l){return(0,u.wg)(),(0,u.j4)(je.o,{"no-gutters":"",class:"align-center"},{default:(0,u.w5)((()=>[(0,u.Wm)(Ee.D,{cols:"5"},{default:(0,u.w5)((()=>[(0,u.Wm)(xe.C,{class:"py-3"},{default:(0,u.w5)((()=>[(0,u._)("div",lt,[(0,u.Wm)(w.t,{icon:"mdi-drag-vertical",size:"large"}),nt])])),_:1})])),_:1}),(0,u.Wm)(Ee.D,{cols:"7"},{default:(0,u.w5)((()=>[(0,u.Wm)(xe.C,{class:"py-3"},{default:(0,u.w5)((()=>[s.isFinished?((0,u.wg)(),(0,u.iD)("p",ot,"Ukončený")):((0,u.wg)(),(0,u.iD)("p",rt,"Neukončený"))])),_:1})])),_:1})])),_:1})}var ut={props:{isFinished:{type:Number,default:()=>0}}};const ct=(0,M.Z)(ut,[["render",dt]]);var mt=ct;const ht={class:"d-flex align-center"},pt=(0,u._)("p",{class:"mx-3"},"Vytvoril",-1),vt={class:"employee-selected-avatar d-flex justify-center align-center"},kt={class:"ml-2"};function ft(e,t,s,a,i,l){return(0,u.wg)(),(0,u.j4)(je.o,{"no-gutters":"",class:"align-center"},{default:(0,u.w5)((()=>[(0,u.Wm)(Ee.D,{cols:"5"},{default:(0,u.w5)((()=>[(0,u.Wm)(xe.C,{class:"py-3"},{default:(0,u.w5)((()=>[(0,u._)("div",ht,[(0,u.Wm)(w.t,{icon:"mdi-account-star-outline",size:"large"}),pt])])),_:1})])),_:1}),(0,u.Wm)(Ee.D,{cols:"7"},{default:(0,u.w5)((()=>[(0,u.Wm)(xe.C,{class:"py-3 d-flex align-center"},{default:(0,u.w5)((()=>[(0,u._)("p",vt,(0,p.zw)(l.employee?l.employee._initials:"?"),1),(0,u._)("p",kt,(0,p.zw)(l.employee?l.employee._fullName:e.$t("Unasigned")),1)])),_:1})])),_:1})])),_:1})}var gt={props:{employeeId:{type:[Number],required:!1}},computed:{...(0,z.Se)("tm",["enrichedEmployees"]),employee(){return this.enrichedEmployees.find((e=>e.id==this.employeeId))}}};const wt=(0,M.Z)(gt,[["render",ft]]);var _t=wt;const yt={class:"d-flex align-center"},bt=(0,u._)("p",{class:"mx-3"},"Priradený",-1),Dt={class:"employee-selected-avatar d-flex justify-center align-center"},Mt=["innerHTML"];function Tt(e,t,s,a,i,l){return(0,u.wg)(),(0,u.j4)(je.o,{"no-gutters":"",class:"align-center"},{default:(0,u.w5)((()=>[(0,u.Wm)(Ee.D,{cols:"5"},{default:(0,u.w5)((()=>[(0,u.Wm)(xe.C,{class:"py-3"},{default:(0,u.w5)((()=>[(0,u._)("div",yt,[(0,u.Wm)(w.t,{icon:"mdi-account-outline",size:"large"}),bt])])),_:1})])),_:1}),(0,u.Wm)(Ee.D,{cols:"7"},{default:(0,u.w5)((()=>[(0,u.Wm)(xe.C,{class:"py-3 d-flex align-center"},{default:(0,u.w5)((()=>[(0,u._)("p",Dt,(0,p.zw)(s.employee.name.charAt(0)+s.employee.surname.charAt(0)),1),(0,u._)("p",{class:"ml-2",innerHTML:`${s.employee.name} ${s.employee.surname}`},null,8,Mt)])),_:1})])),_:1})])),_:1})}var Ct={props:{employee:{type:Object,required:!0}}};const $t=(0,M.Z)(Ct,[["render",Tt]]);var jt=$t;const Et={class:"d-flex align-center"},xt=(0,u._)("p",{class:"mx-3"},"Naplánovaný čas",-1);function Wt(e,t,s,a,i,l){return(0,u.wg)(),(0,u.j4)(je.o,{"no-gutters":"",class:"align-center"},{default:(0,u.w5)((()=>[(0,u.Wm)(Ee.D,{cols:"5"},{default:(0,u.w5)((()=>[(0,u.Wm)(xe.C,{class:"py-3"},{default:(0,u.w5)((()=>[(0,u._)("div",Et,[(0,u.Wm)(w.t,{icon:"mdi-clock-time-three-outline",size:"large"}),xt])])),_:1})])),_:1}),(0,u.Wm)(Ee.D,{cols:"7"},{default:(0,u.w5)((()=>[(0,u.Wm)(xe.C,{class:"py-3"},{default:(0,u.w5)((()=>[(0,u._)("p",null,(0,p.zw)(s.hours)+" h",1)])),_:1})])),_:1})])),_:1})}var St={props:{hours:{type:Number,required:!0}}};const Vt=(0,M.Z)(St,[["render",Wt]]);var Ot=Vt;const zt=e=>((0,u.dD)("data-v-c9f868dc"),e=e(),(0,u.Cn)(),e),At={class:"d-flex align-center"},Ut=zt((()=>(0,u._)("p",{class:"mx-3"},"Odpracovaný čas",-1))),Zt={class:"d-flex align-center mb-3"},Ht=zt((()=>(0,u._)("p",{class:"task-badge rounded-pill"},"Pridať záznam",-1))),Ft={class:"d-flex align-center flex-start width-100"},It={class:"task-badge rounded-pill"},Pt={class:"ml-5"},Lt={class:"d-flex justify-space-between align-center"},Nt=zt((()=>(0,u._)("h1",null,"Pridať odpracovaný čas",-1)));function Yt(e,t,s,i,l,n){return(0,u.wg)(),(0,u.iD)(u.HY,null,[(0,u.Wm)(je.o,{"no-gutters":""},{default:(0,u.w5)((()=>[(0,u.Wm)(Ee.D,{cols:"5"},{default:(0,u.w5)((()=>[(0,u.Wm)(xe.C,{class:"py-3"},{default:(0,u.w5)((()=>[(0,u._)("div",At,[(0,u.Wm)(w.t,{icon:"mdi-clock-time-three-outline",size:"large"}),Ut])])),_:1})])),_:1}),(0,u.Wm)(Ee.D,{cols:"7"},{default:(0,u.w5)((()=>[(0,u.Wm)(xe.C,{class:"py-3"},{default:(0,u.w5)((()=>[(0,u._)("p",null,(0,p.zw)(s.hours)+" h",1)])),_:1}),(0,u.Wm)(xe.C,{class:"py-3"},{default:(0,u.w5)((()=>[(0,u._)("div",Zt,[(0,u.Wm)(w.t,{onClick:t[0]||(t[0]=e=>l.showModal=!0),class:"add-date cursor-pointer mr-2",icon:"mdi-plus",size:"medium"}),Ht]),s.subtask.timesheets.length?((0,u.wg)(!0),(0,u.iD)(u.HY,{key:0},(0,u.Ko)(s.subtask.timesheets,(e=>((0,u.wg)(),(0,u.iD)("div",{key:e.id,class:"d-flex align-center mb-3"},[(0,u.Wm)(w.t,{onClick:(0,a.iM)((t=>n.deleteTimesheet(e)),["stop"]),class:"circle-border cursor-pointer mr-2",icon:"mdi-minus",size:"medium"},null,8,["onClick"]),(0,u._)("div",Ft,[(0,u._)("p",It,(0,p.zw)(e.time),1),(0,u._)("p",Pt,(0,p.zw)(e.employee_name)+" ("+(0,p.zw)(e.timestamp)+")",1)])])))),128)):(0,u.kq)("",!0)])),_:1})])),_:1})])),_:1}),(0,u.Wm)(g.B,{"max-width":"750",modelValue:l.showModal,"onUpdate:modelValue":t[4]||(t[4]=e=>l.showModal=e),persistent:""},{default:(0,u.w5)((()=>[(0,u.Wm)(k._,null,{default:(0,u.w5)((()=>[(0,u._)("div",Lt,[Nt,(0,u.Wm)(w.t,{onClick:t[1]||(t[1]=(0,a.iM)((e=>n.closeModal()),["stop"])),icon:"mdi-close",size:"large"})]),(0,u.Wm)(f.h,{class:"mt-10 d-flex justify-start align-center"},{default:(0,u.w5)((()=>[(0,u.Wm)(j.hw,{modelValue:l.form.hours,"onUpdate:modelValue":t[2]||(t[2]=e=>l.form.hours=e),variant:"solo","bg-color":"white",type:"number",hint:l.v$.form.hours.$errors?l.errorUtils.parseErrors(l.v$.form.hours.$errors):null,class:(0,p.C_)([{error:l.v$.form.hours.$errors.length},"mb-2"]),label:"Odpracovaný čas"},null,8,["modelValue","hint","class"])])),_:1}),(0,u.Wm)(v.T,{onClick:t[3]||(t[3]=e=>n.submit()),class:"button primary mt-5"},{default:(0,u.w5)((()=>[(0,u.Uk)("Potvrdiť")])),_:1})])),_:1})])),_:1},8,["modelValue"])],64)}var qt={mixins:[b],props:{hours:{type:Number,required:!0},subtask:{type:Object,required:!0}},data(){return{moment:Le(),v$:(0,W.ZP)(),errorUtils:V.Z,showModal:!1,form:{hours:null}}},validations(){return{form:{hours:{required:S.C1,numeric:S.uR,minValue:(0,S.uv)(.1)}}}},computed:{...(0,z.Se)("auth",["user"])},methods:{async submit(){if(!await this.v$.$validate())return;const e=JSON.parse(JSON.stringify(this.subtask));e.timesheets.push({id:null,employee_id:this.user.id,time:"string"==typeof this.form.hours?parseFloat(this.form.hours):this.form.hours}),e.deadline&&(e.deadline=O.Z.formatDateTimeForBackend(e.deadline)),this._update(e)},async deleteTimesheet({id:e}){const t=JSON.parse(JSON.stringify(this.subtask));t.timesheets=t.timesheets.filter((t=>t.id!=e)),t.deadline&&(t.deadline=O.Z.formatDateTimeForBackend(t.deadline)),this._update(t)},closeModal(){this.form={hours:null},this.showModal=!1,this.$nextTick((()=>this.v$.$reset()))},async _update(e){try{e.timesheets=e.timesheets.map((e=>(delete e.employee_name,e)));const{subtask:t}=await this.$axios.put_auth(`v1/subtasks/${e.id}`,e);this.closeModal(),this.$events.emit("on-subtask-edited",t)}catch(t){this.$toast.error(t.message||t)}}}};const Bt=(0,M.Z)(qt,[["render",Yt],["__scopeId","data-v-c9f868dc"]]);var Rt=Bt;const Kt={class:"d-flex align-center"},Jt=(0,u._)("p",{class:"mx-3"},"Zostávajúci čas",-1);function Gt(e,t,s,a,i,l){return(0,u.wg)(),(0,u.j4)(je.o,{"no-gutters":"",class:"align-center border-bottom"},{default:(0,u.w5)((()=>[(0,u.Wm)(Ee.D,{cols:"5"},{default:(0,u.w5)((()=>[(0,u.Wm)(xe.C,{class:"py-3"},{default:(0,u.w5)((()=>[(0,u._)("div",Kt,[(0,u.Wm)(w.t,{icon:"mdi-clock-time-three-outline",size:"large"}),Jt])])),_:1})])),_:1}),(0,u.Wm)(Ee.D,{cols:"7"},{default:(0,u.w5)((()=>[(0,u.Wm)(xe.C,{class:"py-3"},{default:(0,u.w5)((()=>[(0,u._)("p",null,(0,p.zw)(s.hours.toFixed(2))+" h",1)])),_:1})])),_:1})])),_:1})}var Xt={props:{hours:{type:Number,required:!0}}};const Qt=(0,M.Z)(Xt,[["render",Gt]]);var es=Qt,ts=s(80678);const ss={class:"d-flex align-center"},as=(0,u._)("p",{class:"mx-3"},"Deadline",-1);function is(e,t,s,a,i,l){return(0,u.wg)(),(0,u.j4)(je.o,{"no-gutters":"",class:"align-center"},{default:(0,u.w5)((()=>[(0,u.Wm)(Ee.D,{cols:"5"},{default:(0,u.w5)((()=>[(0,u.Wm)(xe.C,{class:"py-3"},{default:(0,u.w5)((()=>[(0,u._)("div",ss,[(0,u.Wm)(w.t,{icon:"mdi-calendar-week",size:"large"}),as])])),_:1})])),_:1}),(0,u.Wm)(Ee.D,{cols:"7"},{default:(0,u.w5)((()=>[(0,u.Wm)(xe.C,{class:"py-3"},{default:(0,u.w5)((()=>[s.subtask.deadline?((0,u.wg)(),(0,u.iD)("p",{key:0,class:(0,p.C_)(""+(i.tmUtils.isAfter(s.subtask.deadline)?"text-black":"text-red-darken-4"))},(0,p.zw)(i.tmUtils.formatDate(s.subtask.deadline)),3)):((0,u.wg)(),(0,u.j4)(ts.N,{key:1,text:"Deadline z Mastertasku",location:"end"},{activator:(0,u.w5)((({props:e})=>[(0,u._)("span",(0,u.dG)({class:"cursor-pointer"},e),(0,p.zw)(l.getMasterTaskDeadline(s.subtask))+"*",17)])),_:1}))])),_:1})])),_:1})])),_:1})}var ls={props:{subtask:{type:[String,Object,null],required:!0}},computed:{...(0,z.Se)("tm",["mastertasks"])},data(){return{tmUtils:O.Z}},methods:{getMasterTaskDeadline(e){if(!this.mastertasks)return"";const t=this.mastertasks.find((t=>t.id===e.master_task_id));return Le()(t).format("DD.MM.yyyy")?Le()(t.deadline).format("DD.MM.yyyy"):""}}};const ns=(0,M.Z)(ls,[["render",is]]);var os=ns;const rs={key:0,class:"px-5 py-5 border-bottom"},ds=(0,u._)("p",null,"Popis zadania",-1),us=["innerHTML"],cs={key:1,class:"px-5 py-5 border-bottom"},ms=(0,u._)("p",null,"Popis mastertasku",-1),hs=["innerHTML"];function ps(e,t,s,a,i,l){return(0,u.wg)(),(0,u.iD)(u.HY,null,[s.description?((0,u.wg)(),(0,u.iD)("div",rs,[ds,(0,u._)("section",{innerHTML:s.description,class:"description-detail px-2 py-2 w-100 rounded mt-2"},null,8,us)])):(0,u.kq)("",!0),s.mastertaskDescription?((0,u.wg)(),(0,u.iD)("div",cs,[ms,(0,u._)("section",{innerHTML:s.mastertaskDescription,class:"description-detail px-2 py-2 w-100 rounded mt-2"},null,8,hs)])):(0,u.kq)("",!0)],64)}var vs={props:{description:{type:String||null,default:()=>null},mastertaskDescription:{type:String||null,default:()=>null}}};const ks=(0,M.Z)(vs,[["render",ps]]);var fs=ks;const gs=e=>((0,u.dD)("data-v-439e5395"),e=e(),(0,u.Cn)(),e),ws=gs((()=>(0,u._)("p",{class:"mt-5"},"Prílohy",-1))),_s={class:"w-100 d-flex align-center"},ys=["onClick"],bs={key:0,class:"d-flex align-center"},Ds=["src"],Ms=gs((()=>(0,u._)("p",{class:"ml-2"},"Súbor sa sťahuje, počkajte prosím",-1)));function Ts(e,t,a,i,l,n){const o=(0,u.up)("W-loadable");return(0,u.wg)(),(0,u.iD)(u.HY,null,[ws,(0,u._)("div",_s,[(0,u.Wm)(o,{content:a.files,emptyMessage:"Žiadne prílohy neboli nahraté"},{default:(0,u.w5)((()=>[((0,u.wg)(!0),(0,u.iD)(u.HY,null,(0,u.Ko)(a.files,((e,t)=>((0,u.wg)(),(0,u.iD)("div",{key:e.id,class:(0,p.C_)(["d-flex align-center flex-wrap",[0===t?"ml-0":"ml-2"]])},[(0,u.Wm)(we.v,{class:"mt-2"},{default:(0,u.w5)((()=>[(0,u._)("p",{onClick:t=>n.downloadFile(e),class:"cursor-pointer"},(0,p.zw)(e.name),9,ys),(0,u.Wm)(w.t,{class:"mx-1",icon:"mdi-paperclip"}),(0,u._)("p",null,(0,p.zw)((e.file_size/1048576).toFixed(2))+" MB",1)])),_:2},1024),e.isLoading?((0,u.wg)(),(0,u.iD)("div",bs,[(0,u._)("img",{class:"gif-loader",src:s(14214),alt:"Loading..."},null,8,Ds),Ms])):(0,u.kq)("",!0)],2)))),128))])),_:1},8,["content"])])],64)}var Cs={props:{files:{type:Array,default:()=>[]}},data(){return{isLoading:!1}},methods:{async downloadFile(e){e.isLoading=!0;try{const t=await fetch(e.path),s=await t.blob();Ge.saveAs(s,e.name)}catch(t){this.$toast.error(t)}finally{e.isLoading=!1}}}};const $s=(0,M.Z)(Cs,[["render",Ts],["__scopeId","data-v-439e5395"]]);var js=$s,Es={emits:["close-modal","update-subtask"],components:{ZFiles:js,AMastertaskName:it,AMastertaskStatus:mt,ATaskTimeblocks:qe,ZCreatedBy:_t,ATaskAssignedEmployee:jt,ATaskPlannedTime:Ot,ATaskSpentTime:Rt,ATaskRemainingTime:es,ATaskDescription:fs,ATaskDeadline:os},props:{subtask:{type:Object,required:!0}}};const xs=(0,M.Z)(Es,[["render",Xe]]);var Ws=xs,Ss=s(15941),Vs={emits:["close","refresh"],mixins:[Re,Je,A.Z,b],components:{ZTaskReadonlyInfo:Ws,ZFilesUpload:$e,Datepicker:ge.Z,QuillEditor:Be.Bn},data(){return{tmUtils:O.Z,editMode:!1,visible:!1,subtask:null,isSaving:!1,errorUtils:V.Z,v$:(0,W.ZP)(),employeeValidations:[],preventInputFocus:!1,showDatePicker:!1,selectedNewDate:[]}},computed:{...(0,z.Se)("tm",["mastertasks","enrichedEmployees"])},validations(){return{subtask:{master_task_id:{required:S.C1},deadline:{required:S.C1},_deadline_time:{required:S.C1}}}},mounted(){this.$events.on("add-timeblock",(e=>{this.subtask?.timeblocks||(this.subtask.timeblocks=[]),this.subtask?.timesheets||(this.subtask.timesheets=[]),this.subtask?.is_finished||(this.subtask.is_finished=0),this.subtask.timeblocks.push(e)})),this.$events.on("on-subtask-edited",(e=>{e?.id==this.subtask?.id&&(this.subtask=this._enrichTask(e)),this.$forceUpdate()})),this.$events.on("on-subtask-deleted",(e=>{e?.id==this.subtask?.id&&this.closeModal()}))},methods:{async showModal({subtask:e,editMode:t=!1,mastertask:s={}}){this.isSaving=!1,this.subtask=null,this.visible=!0,this.$nextTick((()=>this.v$.$reset()));try{if(e?.id){const s=await this.$axios.get_auth_data(`v1/subtasks/${e.id}`);if(!s.deadline)return this.editMode=t||!s.id,this.subtask=this._enrichTask(s);const a=s.deadline.split(" ");s.deadline=Le()(a[0]),s._deadline_time=a[1],this.subtask=this._enrichTask(s)}else this.subtask={master_task:s,employees:[{}],_deadline_time:"17:00"},e?.deadline&&e._deadline_time&&(this.subtask.deadline=e.deadline,this.subtask._deadline_time=e._deadline_time),e?.master_task_id&&e?.project_code&&(this.subtask.master_task_id=e.master_task_id,this.subtask.project_code=e.project_code);this.editMode=t||!this.subtask.id}catch(a){Ss.error("ERROR",a),this.$toast.error(a)}},deleteTimeblock(e){this.subtask.timeblocks.splice(e,1)},closeModal(){this.visible=!1,this.$router.replace({name:this.$route.name})},async save(){const e=await this._validateEmployees();if(await this.v$.$validate()&&e){this.subtask.description=this.$refs["description"].getHTML(),this._mergeDeadlineTimeDate();try{if(this.isSaving=!0,this.subtask.deadline=Le()(this.subtask.deadline).format("YYYY-MM-DD HH:mm:SS"),this.subtask?.id){const e=this.subtask.timesheets.map((e=>(delete e.employee_name,e))),{subtask:t}=await this.$axios.put_auth(`v1/subtasks/${this.subtask.id}`,{...this.subtask,timesheets:e});this.$store.commit("tm/update_subtask",t),this.$events.emit("on-subtask-edited",this.subtask)}else{const{subtasks:e}=await this.$axios.post_auth(`v1/mastertasks/${this.subtask.master_task_id}/subtasks`,this.subtask);this.subtask.id=e[0].id,e.forEach((e=>{this.$store.commit("tm/update_subtask",e),this.$events.emit("on-subtask-edited",this.subtask)})),this.$events.emit("task-created"),this.$events.emit("close-both-modals")}this.closeModal()}catch(t){this.$toast.error(t)}finally{this.isSaving=!1}}},openDeleteTaskModal(e){this.$events.emit("show-delete-task-modal",{subtask:e})},showCompleteTaskModal(){this.$events.emit("show-complete-task-modal",{subtask:this.subtask}),this.subtask.deadline&&(this.subtask.deadline=O.Z.formatDateTimeForBackend(this.subtask.deadline))},filesUploaded(e){this.subtask.files=e},updateSubtask(e){Ss.log("UPDATE SUBTASK: ",e.timeblocks[0]),this.subtask=e},_mergeDeadlineTimeDate(){const e=new Date(this.subtask.deadline),t=this.subtask._deadline_time.split(":");e.setHours(parseInt(t[0])),e.setMinutes(parseInt(t[1])),this.subtask.deadline=e},_validateEmployees(){return new Promise((e=>{if(this.employeeValidations=[],this.subtask.id){if(this.subtask.employee&&this.subtask.duration)return;this.employeeValidations[0]={},this.subtask.employee_id||(this.employeeValidations[0].employee=!0),this.subtask.duration||(this.employeeValidations[0].duration=!0)}else this.subtask.employees.forEach(((e,t)=>{t==this.subtask.employees.length-1&&t>0||e.id&&e.duration||(this.employeeValidations[t]={},e.id||(this.employeeValidations[t].employee=!0),e.duration||(this.employeeValidations[t].duration=!0))}));const t=this.employeeValidations.some((e=>e.duration||e.employee));e(!t)}))},_enrichTask(e){return{...e,_created_by:this.enrichedEmployees.find((t=>t.id==e.created_by)),_employee:this.enrichedEmployees.find((t=>t.id==e.employee_id)),_master_task:this.mastertasks.find((t=>t.id==e.master_task_id))}}},watch:{"subtask.employee_id"(e,t){e&&t&&(this.subtask.timeblocks=[],this.subtask._employee=this.enrichedEmployees.find((e=>e.id==this.subtask.employee_id)))},"subtask.employees":{handler(){if(!this.subtask?.employees)return;const e=this.subtask.employees[this.subtask.employees.length-1];(e.id||e.duration)&&this.subtask.employees.push({})},deep:!0},"subtask.master_task_id"(e){e&&(this.subtask._master_task=this.mastertasks.find((e=>e.id==this.subtask.master_task_id)),this.subtask.project_code=this.subtask._master_task?.project_code||null)},editMode(){this.$nextTick((()=>{this.$refs["description"]?.setHTML(this.subtask.description||"")}))}}};const Os=(0,M.Z)(Vs,[["render",fe],["__scopeId","data-v-68445d77"]]);var zs=Os;const As={class:"d-flex justify-space-between align-center"};function Us(e,t,s,i,l,n){return(0,u.wg)(),(0,u.j4)(g.B,{modelValue:l.visible,"onUpdate:modelValue":t[3]||(t[3]=e=>l.visible=e),"max-width":"750",persistent:""},{default:(0,u.w5)((()=>[(0,u.Wm)(k._,null,{default:(0,u.w5)((()=>[(0,u._)("div",As,[(0,u._)("h1",null,[(0,u.Uk)("Ste si istý, že chcete zmazať "),(0,u._)("b",null,(0,p.zw)(l.blocker.name),1),(0,u.Uk)("?")]),(0,u.Wm)(w.t,{onClick:t[0]||(t[0]=(0,a.iM)((e=>n.closeModal()),["stop"])),icon:"mdi-close",size:"large",class:"mb-15"})]),(0,u.Wm)(f.h,{class:"mt-10 d-flex justify-start align-center mobile-view"},{default:(0,u.w5)((()=>[(0,u.Wm)(v.T,{class:"button primary half",variant:"flat",onClick:t[1]||(t[1]=e=>n.deleteBlocker()),disabled:l.isDeleting},{default:(0,u.w5)((()=>[(0,u.Uk)("ÁNO")])),_:1},8,["disabled"]),(0,u.Wm)(v.T,{class:"button primary half outline",onClick:t[2]||(t[2]=(0,a.iM)((e=>n.closeModal()),["stop"]))},{default:(0,u.w5)((()=>[(0,u.Uk)("ZRUŠIŤ")])),_:1})])),_:1})])),_:1})])),_:1},8,["modelValue"])}var Zs={mixins:[b],emits:["on-blocker-deleted"],data(){return{visible:!1,blocker:null,isDeleting:!1}},methods:{async showModal({blocker:e}){this.blocker=e,this.visible=!0},closeModal(){this.visible=!1},async deleteBlocker(){if(!this.isDeleting){this.isDeleting=!0;try{await this.$axios.delete_auth(`v1/blockers/${this.blocker.id}`),this.$emit("on-blocker-deleted",this.blocker),this.closeModal()}catch(e){this.$toast.error(e)}finally{this.isDeleting=!1}}}}};const Hs=(0,M.Z)(Zs,[["render",Us]]);var Fs=Hs;const Is={class:"d-flex justify-space-between align-center"};function Ps(e,t,s,i,l,n){return(0,u.wg)(),(0,u.j4)(g.B,{modelValue:l.visible,"onUpdate:modelValue":t[3]||(t[3]=e=>l.visible=e),"max-width":"750",persistent:""},{default:(0,u.w5)((()=>[(0,u.Wm)(k._,null,{default:(0,u.w5)((()=>[(0,u._)("div",Is,[(0,u._)("h1",null,[(0,u.Uk)("Ste si istý, že chcete "+(0,p.zw)(l.subtask.is_finished?"znovu otvoriť":"dokončiť")+" sub task, z mastertasku ",1),(0,u._)("b",null,(0,p.zw)(l.subtask?.master_task?.name||l.subtask.master_task),1),(0,u.Uk)("?")]),(0,u.Wm)(w.t,{onClick:t[0]||(t[0]=(0,a.iM)((e=>n.closeModal()),["stop"])),icon:"mdi-close",size:"large"})]),(0,u.Wm)(f.h,{class:"mt-10 d-flex justify-start align-center mobile-view"},{default:(0,u.w5)((()=>[(0,u.Wm)(v.T,{class:"button primary half",variant:"flat",onClick:t[1]||(t[1]=e=>n.complete())},{default:(0,u.w5)((()=>[(0,u.Uk)("ÁNO")])),_:1}),(0,u.Wm)(v.T,{class:"button primary half outline",onClick:t[2]||(t[2]=(0,a.iM)((e=>l.visible=!1),["stop"]))},{default:(0,u.w5)((()=>[(0,u.Uk)("ZRUŠIŤ")])),_:1})])),_:1})])),_:1})])),_:1},8,["modelValue"])}var Ls={mixins:[b],emits:["close","on-subtask-edited"],data(){return{visible:!1,subtask:null}},methods:{async showModal({subtask:e}){this.subtask=e,this.visible=!0},async complete(){try{const e={...this.subtask,is_finished:this.subtask.is_finished?0:1,timesheets:this.subtask.timesheets.map((e=>(delete e.employee_name,e)))},{subtask:t}=await this.$axios.put_auth(`v1/subtasks/${e.id}`,e);this.visible=!1,this.$emit("on-subtask-edited",t)}catch(e){this.$toast.error(e)}},closeModal(){this.visible=!1}}};const Ns=(0,M.Z)(Ls,[["render",Ps]]);var Ys=Ns;const qs={class:"d-flex justify-space-between align-center"};function Bs(e,t,s,i,l,n){return(0,u.wg)(),(0,u.j4)(g.B,{modelValue:l.visible,"onUpdate:modelValue":t[3]||(t[3]=e=>l.visible=e),"max-width":"750",persistent:""},{default:(0,u.w5)((()=>[(0,u.Wm)(k._,null,{default:(0,u.w5)((()=>[(0,u._)("div",qs,[(0,u._)("h1",null,[(0,u.Uk)("Ste si istý, že chcete "+(0,p.zw)(l.mastertask.is_finished?"znovu otvoriť":"dokončiť")+" ",1),(0,u._)("b",null,(0,p.zw)(l.mastertask?.name),1),(0,u.Uk)("?")]),(0,u.Wm)(w.t,{onClick:t[0]||(t[0]=(0,a.iM)((e=>l.visible=!1),["stop"])),icon:"mdi-close",size:"large"})]),(0,u.Wm)(f.h,{class:"mt-10 d-flex justify-start align-center mobile-view"},{default:(0,u.w5)((()=>[(0,u.Wm)(v.T,{class:"button primary half",variant:"flat",onClick:t[1]||(t[1]=e=>n.complete())},{default:(0,u.w5)((()=>[(0,u.Uk)("ÁNO")])),_:1}),(0,u.Wm)(v.T,{class:"button primary half outline",onClick:t[2]||(t[2]=(0,a.iM)((e=>l.visible=!1),["stop"]))},{default:(0,u.w5)((()=>[(0,u.Uk)("ZRUŠIŤ")])),_:1})])),_:1})])),_:1})])),_:1},8,["modelValue"])}var Rs={mixins:[b],emits:["close","master-task-edited"],data(){return{visible:!1,mastertask:null}},methods:{async showModal({mastertask:e}){this.mastertask=e,this.visible=!0},async complete(){try{const e={...this.mastertask,is_finished:this.mastertask.is_finished?0:1},{mastertask:t}=await this.$axios.put_auth(`v1/mastertasks/${e.id}`,e);this.visible=!1,this.$emit("master-task-edited",t),this.$events.emit("close-both-modals")}catch(e){this.$toast.error(e)}}}};const Ks=(0,M.Z)(Rs,[["render",Bs]]);var Js=Ks;const Gs={class:"d-flex justify-space-between align-center"},Xs=(0,u._)("h1",null,"Pridať odpracovaný čas",-1);function Qs(e,t,s,i,l,n){return(0,u.wg)(),(0,u.j4)(g.B,{"max-width":"750",modelValue:l.visible,"onUpdate:modelValue":t[3]||(t[3]=e=>l.visible=e),persistent:""},{default:(0,u.w5)((()=>[(0,u.Wm)(k._,null,{default:(0,u.w5)((()=>[(0,u._)("div",Gs,[Xs,(0,u.Wm)(w.t,{onClick:t[0]||(t[0]=(0,a.iM)((e=>n.closeModal()),["stop"])),icon:"mdi-close",size:"large"})]),(0,u.Wm)(f.h,{class:"mt-10 d-flex justify-start align-center"},{default:(0,u.w5)((()=>[(0,u.Wm)(j.hw,{modelValue:l.form.hours,"onUpdate:modelValue":t[1]||(t[1]=e=>l.form.hours=e),variant:"solo","bg-color":"white",type:"number",hint:l.v$.form.hours.$errors?l.errorUtils.parseErrors(l.v$.form.hours.$errors):null,class:(0,p.C_)([{error:l.v$.form.hours.$errors.length},"mb-2"]),label:"Odpracovaný čas"},null,8,["modelValue","hint","class"])])),_:1}),(0,u.Wm)(v.T,{onClick:t[2]||(t[2]=e=>n.submit()),class:"button primary mt-5"},{default:(0,u.w5)((()=>[(0,u.Uk)("Potvrdiť")])),_:1})])),_:1})])),_:1},8,["modelValue"])}var ea={mixins:[b],emits:["close","on-subtask-edited"],data(){return{v$:(0,W.ZP)(),errorUtils:V.Z,visible:!1,subtask:null,form:{hours:null}}},validations(){return{form:{hours:{required:S.C1,numeric:S.uR,minValue:(0,S.uv)(.1)}}}},methods:{async showModal({subtask:e}){this.subtask=e,this.visible=!0,this.form.hours=null,this.$nextTick((()=>this.v$.$reset()))},async submit(){if(!await this.v$.$validate())return;this.subtask.deadline&&(this.subtask.deadline=O.Z.formatDateTimeForBackend(this.subtask.deadline)),this.subtask.timesheets.push({id:null,employee_id:this.subtask.employee_id,time:"string"==typeof this.form.hours?parseFloat(this.form.hours):this.form.hours});const e={...this.subtask,timesheets:this.subtask.timesheets.map((e=>(delete e.employee_name,e)))};try{const{subtask:t}=await this.$axios.put_auth(`v1/subtasks/${this.subtask.id}`,e);this.closeModal(),this.$events.emit("on-subtask-edited",t)}catch(t){this.$toast.error(t.message||t)}},closeModal(){this.visible=!1,this.v$.$reset()}}};const ta=(0,M.Z)(ea,[["render",Qs]]);var sa=ta;const aa={class:"d-flex justify-space-between align-center modal-header"};function ia(e,t,s,i,l,n){const o=(0,u.up)("Datepicker"),r=(0,u.up)("W-loadable");return(0,u.wg)(),(0,u.j4)(g.B,{modelValue:l.visible,"onUpdate:modelValue":t[7]||(t[7]=e=>l.visible=e),"max-width":"750","max-height":"90%",height:"700px",persistent:""},{default:(0,u.w5)((()=>[(0,u.Wm)(r,{content:l.blocker,class:"h-100"},{default:(0,u.w5)((()=>[(0,u.Wm)(k._,{height:"100%",class:"d-flex flex-column"},{default:(0,u.w5)((()=>[(0,u._)("div",aa,[(0,u._)("h1",null,(0,p.zw)(l.blocker.id?"Upraviť":"Vytvoriť")+" blocker",1),(0,u.Wm)(w.t,{onClick:t[0]||(t[0]=(0,a.iM)((e=>n.closeModal()),["stop"])),icon:"mdi-close",size:"large"})]),(0,u.Wm)(f.h,{class:"d-flex flex-column modal-content"},{default:(0,u.w5)((()=>[(0,u.Wm)(j.hw,{onFocus:e.onInputFocus,class:(0,p.C_)(["modal-input",{error:l.v$.blocker.name.$errors.length}]),label:"Názov blockeru",hint:l.v$.blocker.name.$errors?l.errorUtils.parseErrors(l.v$.blocker.name.$errors):null,modelValue:l.blocker.name,"onUpdate:modelValue":t[1]||(t[1]=e=>l.blocker.name=e),variant:"solo"},null,8,["onFocus","class","hint","modelValue"]),(0,u.Wm)($.f,{"custom-filter":e.customFilter,"match-any":!0,clearable:"",label:"Vyhľadať zamestnanca",items:[...e.enrichedEmployees],"item-title":"_fullName","item-value":"id",variant:"solo",class:"modal-input",modelValue:l.blocker.employee_id,"onUpdate:modelValue":t[2]||(t[2]=e=>l.blocker.employee_id=e)},null,8,["custom-filter","items","modelValue"]),(0,u.Wm)(o,{class:(0,p.C_)(["modal-input mb-5",{error:l.v$.datepicker.$errors?.length}]),modelValue:l.datepicker,"onUpdate:modelValue":t[3]||(t[3]=e=>l.datepicker=e),"auto-apply":!0,format:"dd.MM.yyyy",locale:"sk",validations:l.v$.datepicker,"select-text":"Vybrať","cancel-text":"Zrušiť",placeholder:"Dátum","enable-time-picker":!1,ref:"datepicker"},null,8,["modelValue","class","validations"]),(0,u.Wm)(j.hw,{modelValue:l.starts_at_time,"onUpdate:modelValue":t[4]||(t[4]=e=>l.starts_at_time=e),type:"time",variant:"solo","bg-color":"white",hint:l.v$.starts_at_time.$errors?l.errorUtils.parseErrors(l.v$.starts_at_time.$errors):null,class:(0,p.C_)([{error:l.v$.starts_at_time.$errors.length},"mb-1 modal-input"]),label:"Začiatok"},null,8,["modelValue","hint","class"]),(0,u.Wm)(j.hw,{modelValue:l.ends_at_time,"onUpdate:modelValue":t[5]||(t[5]=e=>l.ends_at_time=e),type:"time",variant:"solo","bg-color":"white",hint:l.v$.ends_at_time.$errors?l.errorUtils.parseErrors(l.v$.ends_at_time.$errors):null,class:(0,p.C_)([{error:l.v$.ends_at_time.$errors.length},"modal-input"]),label:"Koniec"},null,8,["modelValue","hint","class"])])),_:1}),(0,u.Wm)(v.T,{class:"button primary",onClick:t[6]||(t[6]=e=>n.save())},{default:(0,u.w5)((()=>[(0,u.Uk)((0,p.zw)(l.blocker.id?"UPRAVIŤ":"VYTVORIŤ"),1)])),_:1})])),_:1})])),_:1},8,["content"])])),_:1},8,["modelValue"])}var la={mixins:[Re,A.Z,b],emits:["close"],components:{Datepicker:ge.Z},data(){return{visible:!1,v$:(0,W.ZP)(),errorUtils:V.Z,blocker:null,datepicker:null,starts_at_time:null,ends_at_time:null,employee:null}},computed:{...(0,z.Se)("tm",["enrichedEmployees"]),...(0,z.Se)("auth",["user"])},validations(){return{blocker:{name:{required:S.C1},start:{required:S.C1},end:{required:S.C1}},starts_at_time:{required:S.C1},ends_at_time:{required:S.C1},datepicker:{required:S.C1}}},methods:{async showModal({blocker:e}){this.visible=!0,this.blocker=null,this.datepicker=null,this.starts_at_time=null,this.ends_at_time=null,this.$nextTick((()=>this.v$.$reset()));try{e?.id?(e=await this.$axios.get_auth_data(`v1/blockers/${e.id}`),this.starts_at_time=Le()(e.start).format("HH:mm"),this.ends_at_time=Le()(e.end).format("HH:mm"),this.datepicker=new Date(e.start),e.employee_id=e.employee.id,this.blocker=e):(this.blocker={start:null,employee_id:this.user.id},e.starts_at_time&&e.datepicker&&e.employee_id&&(this.datepicker=e.datepicker,this.starts_at_time=e.starts_at_time,this.blocker.employee_id=e.employee_id))}catch(t){this.$toast.error(t)}},async save(){if(await this.v$.$validate())try{if(this.blocker.id){const{blocker:e}=await this.$axios.put_auth(`v1/blockers/${this.blocker.id}`,this.blocker);this.blocker=e}else{const{blocker:e}=await this.$axios.post_auth("v1/blockers",this.blocker);this.blocker=e}this.$events.emit("on-blocker-edited",this.blocker),this.$events.emit("blocker-created"),this.closeModal()}catch(e){this.$toast.error(e)}},closeModal(){this.$refs["datepicker"].clearValue(),this.visible=!1,this.$emit("close",this.blocker)},onEmployeeSelected({key:e}){this.blocker.employee=this.enrichedEmployees.find((t=>t.id==e))},_syncDatesTimes(){if(!this.starts_at_time||!this.ends_at_time||!this.datepicker)return;const e=this.starts_at_time.split(":"),t=this.ends_at_time.split(":");this.blocker.start=Le()(this.datepicker).set({hours:parseInt(e[0]),minutes:parseInt(e[1])}).format("YYYY-MM-DD HH:mm"),this.blocker.end=Le()(this.datepicker).set({hours:parseInt(t[0]),minutes:parseInt(t[1])}).format("YYYY-MM-DD HH:mm")}},watch:{ends_at_time(){this._syncDatesTimes()},starts_at_time(){this._syncDatesTimes()},datepicker(){this._syncDatesTimes()}}};const na=(0,M.Z)(la,[["render",ia]]);var oa=na;const ra={class:"d-flex justify-space-between align-center"};function da(e,t,s,i,l,n){return(0,u.wg)(),(0,u.j4)(g.B,{modelValue:l.visible,"onUpdate:modelValue":t[3]||(t[3]=e=>l.visible=e),"max-width":"750",persistent:""},{default:(0,u.w5)((()=>[(0,u.Wm)(k._,null,{default:(0,u.w5)((()=>[(0,u._)("div",ra,[(0,u._)("h1",null,[(0,u.Uk)("Ste si istý, že chcete zmazať "),(0,u._)("b",null,(0,p.zw)(l.mastertask.name),1),(0,u.Uk)("?")]),(0,u.Wm)(w.t,{onClick:t[0]||(t[0]=(0,a.iM)((e=>n.closeModal()),["stop"])),icon:"mdi-close",size:"large",class:"mb-15"})]),(0,u.Wm)(f.h,{class:"mt-10 d-flex justify-start align-center mobile-view"},{default:(0,u.w5)((()=>[(0,u.Wm)(v.T,{class:"button primary half",variant:"flat",onClick:t[1]||(t[1]=e=>n.deleteMasterTask()),disabled:l.isDeleting},{default:(0,u.w5)((()=>[(0,u.Uk)("ÁNO")])),_:1},8,["disabled"]),(0,u.Wm)(v.T,{class:"button primary half outline",onClick:t[2]||(t[2]=(0,a.iM)((e=>n.closeModal()),["stop"]))},{default:(0,u.w5)((()=>[(0,u.Uk)("ZRUŠIŤ")])),_:1})])),_:1})])),_:1})])),_:1},8,["modelValue"])}var ua={mixins:[b],emits:["on-mastertask-deleted"],data(){return{visible:!1,mastertask:null,isDeleting:!1}},methods:{async showModal({mastertask:e}){this.mastertask=e,this.visible=!0},closeModal(){this.visible=!1},async deleteMasterTask(){if(!this.isDeleting){this.isDeleting=!0;try{await this.$axios.delete_auth(`v1/mastertasks/${this.mastertask.id}`),this.$emit("on-mastertask-deleted",this.mastertask),this.closeModal()}catch(e){this.$toast.error(e)}finally{this.isDeleting=!1}}}}};const ca=(0,M.Z)(ua,[["render",da]]);var ma=ca,ha=s(10240);const pa={class:"d-flex justify-space-between align-center modal-header"},va={class:"splitted-inputs"},ka={class:"employee-select-avatar d-flex justify-center align-center"},fa={class:"employee-select-avatar d-flex justify-center align-center"},ga={class:"d-flex justify-space-between align-center"},wa={class:"d-flex justify-space-between align-center modal-header border-bottom pb-4"},_a={class:"d-flex justify-start"},ya=["src"],ba=["src"],Da={class:"w-100"},Ma={class:"d-flex justify-start align-center mt-8"},Ta={class:"d-flex align-center"};function Ca(e,t,i,l,n,o){const r=(0,u.up)("Datepicker"),d=(0,u.up)("QuillEditor"),c=(0,u.up)("Z-files-upload"),m=(0,u.up)("A-mastertask-description"),h=(0,u.up)("A-tasks-table"),_=(0,u.up)("W-loadable");return(0,u.wg)(),(0,u.j4)(g.B,{modelValue:n.visible,"onUpdate:modelValue":t[16]||(t[16]=e=>n.visible=e),"max-width":"750","max-height":"90%",height:"700px",persistent:""},{default:(0,u.w5)((()=>[(0,u.Wm)(_,{content:n.mastertask,class:"h-100"},{default:(0,u.w5)((()=>[n.editMode?((0,u.wg)(),(0,u.j4)(k._,{key:0,height:"100%",class:"d-flex flex-column scrolling"},{default:(0,u.w5)((()=>[(0,u._)("div",pa,[(0,u._)("h1",null,(0,p.zw)(n.mastertask?.id?"Upraviť master task":"Vytvoriť master task"),1),(0,u.Wm)(w.t,{onClick:t[0]||(t[0]=(0,a.iM)((e=>o.closeModal()),["stop"])),icon:"mdi-close",size:"large"})]),(0,u.Wm)(f.h,{class:"d-flex flex-column modal-content"},{default:(0,u.w5)((()=>[(0,u.Wm)($.f,{"custom-filter":e.customFilter,"match-any":!0,modelValue:n.mastertask.project_id,"onUpdate:modelValue":t[1]||(t[1]=e=>n.mastertask.project_id=e),label:e.$t("Project code"),class:(0,p.C_)([{error:n.v$.mastertask.project_id.$errors.length},"modal-input"]),items:e.projectsOptions,"item-title":"code","item-value":"id",variant:"solo",clearable:"","onUpdate:search":t[2]||(t[2]=e=>n.projectCodeSearch=e)},null,8,["custom-filter","modelValue","label","class","items"]),(0,u.Wm)(j.hw,{modelValue:n.mastertask.name,"onUpdate:modelValue":t[3]||(t[3]=e=>n.mastertask.name=e),onFocus:e.onInputFocus,class:(0,p.C_)(["modal-input",{error:n.v$.mastertask.name.$errors.length}]),label:"Názov mastertasku",variant:"solo",hint:n.v$.mastertask.name.$errors?n.errorUtils.parseErrors(n.v$.mastertask.name.$errors):null},null,8,["modelValue","onFocus","class","hint"]),(0,u._)("div",va,[(0,u.Wm)(r,{modelValue:n.mastertask.deadline,"onUpdate:modelValue":t[4]||(t[4]=e=>n.mastertask.deadline=e),"auto-apply":!0,onFocus:e.onDateFocus,"min-date":new Date,class:(0,p.C_)(["modal-input left",{error:n.v$.mastertask.deadline.$errors?.length}]),format:"dd.MM.yyyy",locale:"sk","select-text":"Vybrať","cancel-text":"Zrušiť",placeholder:"Dátum",validations:n.v$.mastertask.deadline},null,8,["modelValue","onFocus","min-date","class","validations"]),(0,u.Wm)(j.hw,{class:(0,p.C_)(["modal-input right",{error:n.v$.mastertask._deadline_time.$errors.length}]),variant:"solo",modelValue:n.mastertask._deadline_time,"onUpdate:modelValue":t[5]||(t[5]=e=>n.mastertask._deadline_time=e),label:"Čas","append-inner-icon":"mdi-clock-outline",type:"time",onFocus:e.onInputFocus,hint:n.v$.mastertask._deadline_time.$errors?n.errorUtils.parseErrors(n.v$.mastertask._deadline_time.$errors):null},null,8,["modelValue","onFocus","class","hint"])]),(0,u.Wm)(j.hw,{modelValue:n.mastertask.duration,"onUpdate:modelValue":t[6]||(t[6]=e=>n.mastertask.duration=e),onFocus:e.onInputFocus,class:"modal-input",variant:"solo",type:"number",label:`${n.mastertask.duration} h`,disabled:!0},null,8,["modelValue","onFocus","label"]),(0,u.Wm)(ha.r,{modelValue:n.mastertask.team_id,"onUpdate:modelValue":t[7]||(t[7]=e=>n.mastertask.team_id=e),onFocus:e.onInputFocus,class:(0,p.C_)(["modal-input border-select",{error:n.v$.mastertask.employees.$errors.length}]),label:"Tím",variant:"solo",items:e.teams,"item-value":"id","item-title":"name",disabled:n.mastertask.id},null,8,["modelValue","onFocus","class","items","disabled"]),n.mastertask.id?((0,u.wg)(!0),(0,u.iD)(u.HY,{key:1},(0,u.Ko)(n.mastertask._allEmployees,(e=>((0,u.wg)(),(0,u.j4)(j.hw,{key:e.id,class:"modal-input",label:`${e.name} ${e.surname}`,variant:"solo",placeholder:"h",modelValue:e.duration,"onUpdate:modelValue":t=>e.duration=t,type:"number",disabled:!0},{default:(0,u.w5)((()=>[(0,u._)("p",fa,(0,p.zw)(e?.name.charAt(0)+e?.surname.charAt(0)),1),(0,u.Wm)(w.t,{onClick:(0,a.iM)((t=>o.removeEmployee(e)),["stop"]),class:"remove-input",icon:"mdi-close",size:"small"},null,8,["onClick"])])),_:2},1032,["label","modelValue","onUpdate:modelValue"])))),128)):((0,u.wg)(!0),(0,u.iD)(u.HY,{key:0},(0,u.Ko)(n.mastertask.employees,((t,s)=>((0,u.wg)(),(0,u.j4)(j.hw,{key:t.id,onFocus:e.onInputFocus,class:(0,p.C_)(["modal-input",{error:t.invalid}]),label:`${t.name} ${t.surname}`,variant:"solo",placeholder:"h",modelValue:n.mastertask.employees[s].duration,"onUpdate:modelValue":e=>n.mastertask.employees[s].duration=e,type:"number",min:"1",onInput:e.onEmployeeDurationChanged},{default:(0,u.w5)((()=>[(0,u._)("p",ka,(0,p.zw)(t?.name.charAt(0)+t?.surname.charAt(0)),1),(0,u.Wm)(w.t,{onClick:(0,a.iM)((e=>o.removeEmployee(t)),["stop"]),class:"remove-input",icon:"mdi-close",size:"small"},null,8,["onClick"])])),_:2},1032,["onFocus","class","label","modelValue","onUpdate:modelValue","onInput"])))),128)),n.showAddEmployeeInput?((0,u.wg)(),(0,u.j4)($.f,{key:2,"custom-filter":e.customFilter,"match-any":!0,label:e.$t("Search for employee"),class:(0,p.C_)([{error:n.v$.mastertask.project_id.$errors.length},"modal-input"]),items:e.employeesOptions,"item-title":"_fullName","item-value":"id",variant:"solo",clearable:"","onUpdate:modelValue":e.onEmployeeSelected},null,8,["custom-filter","label","class","items","onUpdate:modelValue"])):(0,u.kq)("",!0),(0,u.Wm)(v.T,{disabled:n.mastertask.id,class:(0,p.C_)(["w-100 mb-5 button secondary",{error:n.v$.mastertask.project_id.$errors.length}]),onClick:t[8]||(t[8]=e=>n.showAddEmployeeInput=!0)},{default:(0,u.w5)((()=>[(0,u.Wm)(w.t,{class:"mx-1",icon:"mdi-plus"}),(0,u.Uk)("Pridať zamestnanca ")])),_:1},8,["disabled","class"]),(0,u._)("div",{class:(0,p.C_)(["w-100 modal-input",{error:n.v$.mastertask.description.$errors.length}])},[(0,u.Wm)(d,{ref:"description",modelValue:n.mastertask.description,"onUpdate:modelValue":t[9]||(t[9]=e=>n.mastertask.description=e),placeholder:"Popis",theme:"snow",class:"rich-text-editor",onKeyup:o.onQuillEditorInput},null,8,["modelValue","onKeyup"])],2),(0,u.Wm)(c,{class:"mt-15 files",files:n.mastertask.files,onFilesUploaded:o.filesUploaded,"is-saving":n.isSaving},null,8,["files","onFilesUploaded","is-saving"])])),_:1}),n.isSaving?((0,u.wg)(),(0,u.j4)(v.T,{key:1,class:"button primary disabled",disabled:""},{default:(0,u.w5)((()=>[(0,u.Uk)((0,p.zw)(e.$t("Ukladám...")),1)])),_:1})):((0,u.wg)(),(0,u.j4)(v.T,{key:0,class:"button primary",onClick:t[10]||(t[10]=e=>o.save())},{default:(0,u.w5)((()=>[(0,u.Uk)((0,p.zw)(n.mastertask.id?"ULOŽIŤ":"VYTVORIŤ"),1)])),_:1}))])),_:1})):((0,u.wg)(),(0,u.j4)(k._,{key:1,height:"100%",class:"d-flex flex-column scrolling"},{default:(0,u.w5)((()=>[(0,u._)("div",ga,[(0,u._)("p",null,(0,p.zw)(n.mastertask.project_code),1),(0,u.Wm)(w.t,{onClick:t[11]||(t[11]=(0,a.iM)((e=>o.closeModal()),["stop"])),icon:"mdi-close",size:"large",class:"pb-5"})]),(0,u._)("div",wa,[(0,u._)("h1",null,(0,p.zw)(n.mastertask.name),1),(0,u._)("div",_a,[n.mastertask.is_finished?(0,u.kq)("",!0):((0,u.wg)(),(0,u.iD)("img",{key:0,class:"icon",src:s(60666),alt:"pencil-icon",onClick:t[12]||(t[12]=(0,a.iM)((e=>n.editMode=!n.editMode),["stop"]))},null,8,ya)),(0,u._)("img",{class:"icon trash",src:s(27484),alt:"trash-icon",onClick:t[13]||(t[13]=(0,a.iM)((e=>o.openDeleteMasterTaskModal(n.mastertask)),["stop"]))},null,8,ba)])]),(0,u.Wm)(f.h,{class:"d-flex flex-column modal-content"},{default:(0,u.w5)((()=>[(0,u._)("div",Da,[(0,u.Wm)(m,{mastertask:n.mastertask},null,8,["mastertask"]),(0,u._)("div",Ma,[(0,u.Wm)(v.T,{class:"button primary",onClick:t[14]||(t[14]=e=>o.toggleIsFinished(n.mastertask))},{default:(0,u.w5)((()=>[(0,u.Uk)((0,p.zw)(n.mastertask.is_finished?"Otvoriť mastertask":"Ukončiť mastertask"),1)])),_:1})]),(0,u.Wm)(h,{subtasks:n.mastertask.subtasks},null,8,["subtasks"]),(0,u._)("div",Ta,[(0,u.Wm)(v.T,{class:"subtask-btn w-100",onClick:t[15]||(t[15]=e=>o.addTask())},{default:(0,u.w5)((()=>[(0,u.Wm)(w.t,{class:"mx-1",icon:"mdi-plus"}),(0,u.Uk)("Pridať sub task")])),_:1})])])])),_:1})])),_:1}))])),_:1},8,["content"])])),_:1},8,["modelValue"])}var $a=s(4413);const ja={class:"px-5 py-5"},Ea={key:0,class:"w-25"},xa={key:1,class:"w-50"},Wa={class:"d-flex align-center"},Sa={class:"employee-selected-avatar d-flex justify-center align-center"},Va={class:"ml-2 line-clamp"},Oa={key:0,class:"text-light-green"},za={key:1},Aa={class:"task-action"},Ua={class:"d-flex justify-start"},Za=["src","onClick"],Ha=["src","onClick"],Fa=["src","onClick"],Ia=["src","onClick"];function Pa(e,t,i,l,n,o){return(0,u.wg)(),(0,u.j4)($a.Y,{class:"mt-7 mb-5"},{default:(0,u.w5)((()=>[(0,u._)("tbody",ja,[((0,u.wg)(!0),(0,u.iD)(u.HY,null,(0,u.Ko)(o.enrichedtasks,(e=>((0,u.wg)(),(0,u.iD)("tr",{key:e.id},[e?.title?((0,u.wg)(),(0,u.iD)("td",Ea,(0,p.zw)(e.title),1)):((0,u.wg)(),(0,u.iD)("td",xa,(0,p.zw)(e?.master_task),1)),(0,u._)("td",Wa,[(0,u._)("p",Sa,(0,p.zw)(e._employeeInitials),1),(0,u._)("p",Va,(0,p.zw)(e._employeeFullName),1)]),(0,u._)("td",null,[e.is_finished?((0,u.wg)(),(0,u.iD)("p",Oa,"Ukončený")):(0,u.kq)("",!0),e.is_finished?(0,u.kq)("",!0):((0,u.wg)(),(0,u.iD)("p",za,"Neukončený"))]),(0,u._)("td",Aa,[(0,u._)("div",Ua,[e.is_finished?((0,u.wg)(),(0,u.iD)("img",{key:0,class:"pencil-icon is-finished",src:s(53830),alt:"checkmark-icon",onClick:(0,a.iM)((t=>o.clickCompleteTask(e)),["stop"])},null,8,Za)):(0,u.kq)("",!0),e.is_finished?(0,u.kq)("",!0):((0,u.wg)(),(0,u.iD)("img",{key:1,class:"pencil-icon",src:s(53830),alt:"checkmark-icon",onClick:(0,a.iM)((t=>o.clickCompleteTask(e)),["stop"])},null,8,Ha)),(0,u._)("img",{class:"pencil-icon ml-2",src:s(34413),alt:"pencil-icon",onClick:(0,a.iM)((t=>o.openTaskModal(e)),["stop"])},null,8,Fa),(0,u._)("img",{class:"trash-icon",src:s(27484),alt:"trash-icon",onClick:(0,a.iM)((t=>o.openDeleteTaskModal(e)),["stop"])},null,8,Ia)])])])))),128))])])),_:1})}var La={props:{subtasks:{type:Array,required:!0}},computed:{...(0,z.Se)("tm",["enrichedEmployees"]),enrichedtasks(){return this.subtasks.map((e=>{const t=this.enrichedEmployees.find((t=>t.id==e.employee_id));return{...e,_employeeInitials:t._initials,_employeeFullName:t._fullName}}))}},methods:{openDeleteTaskModal(e){this.$events.emit("show-delete-task-modal",{subtask:e})},openTaskModal(e){this.$events.emit("show-subtask-modal",{subtask:e,editMode:!1})},async clickCompleteTask(e){this.$events.emit("show-complete-task-modal",{subtask:e})}}};const Na=(0,M.Z)(La,[["render",Pa],["__scopeId","data-v-6a5e57ec"]]);var Ya=Na;function qa(e,t,s,a,i,l){const n=(0,u.up)("Z-status"),o=(0,u.up)("Z-deadline"),r=(0,u.up)("Z-created-by"),d=(0,u.up)("Z-team"),c=(0,u.up)("Z-planned-time"),m=(0,u.up)("Z-remaining-time"),h=(0,u.up)("Z-spent-time"),p=(0,u.up)("Z-description"),v=(0,u.up)("Z-files");return(0,u.wg)(),(0,u.iD)(u.HY,null,[(0,u.Wm)(n,{status:s.mastertask.is_finished},null,8,["status"]),(0,u.Wm)(o,{deadline:s.mastertask.deadline},null,8,["deadline"]),(0,u.Wm)(r,{"employee-id":s.mastertask.created_by},null,8,["employee-id"]),(0,u.Wm)(d,{team:s.mastertask.team,employees:s.mastertask._allEmployees||s.mastertask.employees},null,8,["team","employees"]),(0,u.Wm)(c,{hours:s.mastertask.duration},null,8,["hours"]),(0,u.Wm)(m,{hours:s.mastertask.duration-s.mastertask.time_worked},null,8,["hours"]),(0,u.Wm)(h,{hours:s.mastertask.time_worked,"is-exceeded":s.mastertask.time_worked>s.mastertask.duration},null,8,["hours","is-exceeded"]),(0,u.Wm)(p,{description:s.mastertask.description},null,8,["description"]),(0,u.Wm)(v,{files:s.mastertask.files},null,8,["files"])],64)}const Ba={class:"d-flex align-center"},Ra=(0,u._)("p",{class:"mx-3"},"Deadline",-1);function Ka(e,t,s,a,i,l){return(0,u.wg)(),(0,u.j4)(je.o,{"no-gutters":"",class:"align-center"},{default:(0,u.w5)((()=>[(0,u.Wm)(Ee.D,{cols:"5"},{default:(0,u.w5)((()=>[(0,u.Wm)(xe.C,{class:"py-3"},{default:(0,u.w5)((()=>[(0,u._)("div",Ba,[(0,u.Wm)(w.t,{icon:"mdi-calendar-week",size:"large"}),Ra])])),_:1})])),_:1}),(0,u.Wm)(Ee.D,{cols:"7"},{default:(0,u.w5)((()=>[(0,u.Wm)(xe.C,{class:"py-3"},{default:(0,u.w5)((()=>[(0,u._)("p",{class:(0,p.C_)(""+(i.tmUtils.isAfter(s.deadline)?"text-black":"text-red-darken-4"))},(0,p.zw)(i.tmUtils.formatDateTime(s.deadline)),3)])),_:1})])),_:1})])),_:1})}var Ja={props:{deadline:{type:String,required:!0}},data(){return{tmUtils:O.Z}}};const Ga=(0,M.Z)(Ja,[["render",Ka]]);var Xa=Ga;const Qa={key:0,class:"px-5 py-5 border-bottom"},ei=(0,u._)("p",null,"Popis zadania",-1),ti=["innerHTML"],si={key:1,class:"px-5 py-5 border-bottom"},ai=(0,u._)("p",null,"Popis mastertasku",-1),ii=["innerHTML"];function li(e,t,s,a,i,l){return(0,u.wg)(),(0,u.iD)(u.HY,null,[s.description?((0,u.wg)(),(0,u.iD)("div",Qa,[ei,(0,u._)("section",{innerHTML:s.description,class:"description-detail px-2 py-2 w-100 rounded mt-2"},null,8,ti)])):(0,u.kq)("",!0),s.inheritedDescription?((0,u.wg)(),(0,u.iD)("div",si,[ai,(0,u._)("section",{innerHTML:s.inheritedDescription,class:"description-detail px-2 py-2 w-100 rounded mt-2"},null,8,ii)])):(0,u.kq)("",!0)],64)}var ni={props:{description:{type:String||null,default:()=>null},inheritedDescription:{type:String||null,default:()=>null}}};const oi=(0,M.Z)(ni,[["render",li]]);var ri=oi;const di={class:"d-flex align-center"},ui=(0,u._)("p",{class:"mx-3"},"Naplánovaný čas",-1);function ci(e,t,s,a,i,l){return(0,u.wg)(),(0,u.j4)(je.o,{"no-gutters":"",class:"align-center"},{default:(0,u.w5)((()=>[(0,u.Wm)(Ee.D,{cols:"5"},{default:(0,u.w5)((()=>[(0,u.Wm)(xe.C,{class:"py-3"},{default:(0,u.w5)((()=>[(0,u._)("div",di,[(0,u.Wm)(w.t,{icon:"mdi-clock-time-three-outline",size:"large"}),ui])])),_:1})])),_:1}),(0,u.Wm)(Ee.D,{cols:"7"},{default:(0,u.w5)((()=>[(0,u.Wm)(xe.C,{class:"py-3"},{default:(0,u.w5)((()=>[(0,u._)("p",null,(0,p.zw)(s.hours)+" h",1)])),_:1})])),_:1})])),_:1})}var mi={props:{hours:{type:Number,required:!0}}};const hi=(0,M.Z)(mi,[["render",ci]]);var pi=hi;const vi={class:"d-flex align-center"},ki=(0,u._)("p",{class:"mx-3"},"Zostávajúci čas",-1);function fi(e,t,s,a,i,l){return(0,u.wg)(),(0,u.j4)(je.o,{"no-gutters":"",class:"align-center border-bottom"},{default:(0,u.w5)((()=>[(0,u.Wm)(Ee.D,{cols:"5"},{default:(0,u.w5)((()=>[(0,u.Wm)(xe.C,{class:"py-3"},{default:(0,u.w5)((()=>[(0,u._)("div",vi,[(0,u.Wm)(w.t,{icon:"mdi-clock-time-three-outline",size:"large"}),ki])])),_:1})])),_:1}),(0,u.Wm)(Ee.D,{cols:"7"},{default:(0,u.w5)((()=>[(0,u.Wm)(xe.C,{class:"py-3"},{default:(0,u.w5)((()=>[(0,u._)("p",null,(0,p.zw)(s.hours)+" h",1)])),_:1})])),_:1})])),_:1})}var gi={props:{hours:{type:Number,required:!0}}};const wi=(0,M.Z)(gi,[["render",fi]]);var _i=wi;const yi={class:"d-flex align-center"},bi=(0,u._)("p",{class:"mx-3"},"Odpracovaný čas",-1);function Di(e,t,s,a,i,l){return(0,u.wg)(),(0,u.j4)(je.o,{"no-gutters":""},{default:(0,u.w5)((()=>[(0,u.Wm)(Ee.D,{cols:"5"},{default:(0,u.w5)((()=>[(0,u.Wm)(xe.C,{class:"py-3"},{default:(0,u.w5)((()=>[(0,u._)("div",yi,[(0,u.Wm)(w.t,{icon:"mdi-clock-time-three-outline",size:"large"}),bi])])),_:1})])),_:1}),(0,u.Wm)(Ee.D,{cols:"7"},{default:(0,u.w5)((()=>[(0,u.Wm)(xe.C,{class:"py-3"},{default:(0,u.w5)((()=>[(0,u._)("p",{class:(0,p.C_)(s.isExceeded?"text-red-darken-4":"text-black")},(0,p.zw)(s.hours)+" h",3)])),_:1})])),_:1})])),_:1})}var Mi={props:{hours:{type:Number,required:!0},isExceeded:{type:Boolean,required:!0}}};const Ti=(0,M.Z)(Mi,[["render",Di]]);var Ci=Ti;const $i={class:"d-flex align-center"},ji=(0,u._)("p",{class:"mx-3"},"Status",-1),Ei={key:0,class:"status-badge px-4 py-2 rounded-pill"},xi={key:1,class:"status-badge px-4 py-2 rounded-pill"};function Wi(e,t,s,a,i,l){return(0,u.wg)(),(0,u.j4)(je.o,{"no-gutters":"",class:"align-center"},{default:(0,u.w5)((()=>[(0,u.Wm)(Ee.D,{cols:"5"},{default:(0,u.w5)((()=>[(0,u.Wm)(xe.C,{class:"py-3"},{default:(0,u.w5)((()=>[(0,u._)("div",$i,[(0,u.Wm)(w.t,{icon:"mdi-drag-vertical",size:"large"}),ji])])),_:1})])),_:1}),(0,u.Wm)(Ee.D,{cols:"7"},{default:(0,u.w5)((()=>[(0,u.Wm)(xe.C,{class:"py-3"},{default:(0,u.w5)((()=>[1==s.status?((0,u.wg)(),(0,u.iD)("p",Ei,"Ukončený")):0==s.status?((0,u.wg)(),(0,u.iD)("p",xi,"Neukončený")):(0,u.kq)("",!0)])),_:1})])),_:1})])),_:1})}var Si={props:{status:{type:Number,required:!0}}};const Vi=(0,M.Z)(Si,[["render",Wi]]);var Oi=Vi;const zi={class:"d-flex align-center"},Ai=(0,u._)("p",{class:"mx-3"},"Tím",-1),Ui={class:"task-badge px-4 py-2 rounded-pill flex-shrink-0"},Zi={class:"employee-selected-avatar d-flex justify-center align-center"},Hi={class:"ml-2"},Fi=(0,u._)("div",{class:"mb-4"},null,-1),Ii=(0,u._)("p",{class:"task-badge px-4 py-2 rounded-pill flex-shrink-0"},"Nepriradený",-1),Pi={class:"employee-selected-avatar d-flex justify-center align-center"},Li={class:"ml-2"};function Ni(e,t,s,a,i,l){return(0,u.wg)(),(0,u.j4)(je.o,{"no-gutters":""},{default:(0,u.w5)((()=>[(0,u.Wm)(Ee.D,{cols:"5"},{default:(0,u.w5)((()=>[(0,u.Wm)(xe.C,{class:"py-3"},{default:(0,u.w5)((()=>[(0,u._)("div",zi,[(0,u.Wm)(w.t,{icon:"mdi-account-multiple-outline",size:"large"}),Ai])])),_:1})])),_:1}),(0,u.Wm)(Ee.D,{cols:"7"},{default:(0,u.w5)((()=>[(0,u.Wm)(xe.C,{class:"py-3 d-flex flex-wrap flex-column"},{default:(0,u.w5)((()=>[s.team?((0,u.wg)(),(0,u.iD)(u.HY,{key:0},[(0,u._)("p",Ui,(0,p.zw)(s.team.name),1),((0,u.wg)(!0),(0,u.iD)(u.HY,null,(0,u.Ko)(l.enrichedEmployeesInTeam,(e=>((0,u.wg)(),(0,u.iD)("div",{class:"d-flex align-center flex-shrink-0 mt-2 task-badge px-4 py-2 rounded-pill",key:e.id},[(0,u._)("p",Zi,(0,p.zw)(e._initials),1),(0,u._)("p",Hi,(0,p.zw)(e._fullName),1)])))),128)),Fi],64)):(0,u.kq)("",!0),Ii,((0,u.wg)(!0),(0,u.iD)(u.HY,null,(0,u.Ko)(l.enrichedEmployeesOutsideTeam,(e=>((0,u.wg)(),(0,u.iD)("div",{class:"d-flex align-center flex-shrink-0 mt-2 task-badge px-4 py-2 rounded-pill",key:e.id},[(0,u._)("p",Pi,(0,p.zw)(e._initials),1),(0,u._)("p",Li,(0,p.zw)(e._fullName),1)])))),128))])),_:1})])),_:1})])),_:1})}var Yi={props:{team:{type:Object,required:!1},employees:{type:Array,required:!0}},computed:{enrichedEmployeesInTeam(){return this.team?.employees?O.Z.enrichEmployees(this.team.employees):[]},enrichedEmployeesOutsideTeam(){if(!this.team)return O.Z.enrichEmployees(this.employees);const e=this.employees.filter((e=>!this.team.employees.find((t=>t.id==e.id))));return O.Z.enrichEmployees(e)}}};const qi=(0,M.Z)(Yi,[["render",Ni]]);var Bi=qi,Ri={components:{ZCreatedBy:_t,ZDeadline:Xa,ZDescription:ri,ZFiles:js,ZPlannedTime:pi,ZRemainingTime:_i,ZSpentTime:Ci,ZStatus:Oi,ZTeam:Bi},props:{mastertask:{type:Object,required:!0}}};const Ki=(0,M.Z)(Ri,[["render",qa]]);var Ji=Ki,Gi=s(15941),Xi={emits:["master-task-edited","close"],mixins:[Re,Je,A.Z,b],components:{AMastertaskDescription:Ji,ATasksTable:Ya,Datepicker:ge.Z,ZFilesUpload:$e,QuillEditor:Be.Bn},data(){return{deadline:null,editMode:!1,visible:!1,errorUtils:V.Z,v$:(0,W.ZP)(),mastertask:null,isSaving:!1,showAddEmployeeInput:!1,date:null,projectCodeSearch:null}},computed:{...(0,z.Se)("tm",["teams","projects","enrichedEmployees"]),enrichedSubtasks(){return this.mastertask?.subtasks?this.mastertask.subtasks.map((e=>{const t=this.enrichedEmployees.find((t=>t.id==e.employee_id));return{...e,_initials:t?t.name.charAt(0)+t.surname.charAt(0):"?",_fullName:t?`${t.name} ${t.surname}`:""}})):null}},validations(){const e=e=>!!(e&&e.length&&e.replace(/<[^>]*>/g,"").length);return{mastertask:{employees:{required:S.C1,minLength:(0,S.Ei)(1),$each:{duration:{required:S.C1}}},project_id:{required:S.C1},name:{required:S.C1},description:{quillEditorRequired:e},deadline:{required:S.C1},_deadline_time:{required:S.C1}}}},mounted(){this.$events.on("close-both-modals",this.closeBothModals),this.$events.on("master-task:team-member-deleted",(({teamId:e,memberId:t})=>{this.mastertask.team_id==e&&(this.mastertask.employees=this.mastertask.employees.filter((e=>e.id!=t)))})),this.$events.on("on-mastertask-deleted",(e=>{e?.id==this.mastertask?.id&&this.closeModal()})),this.$events.on("on-subtask-deleted",(e=>{this.mastertask&&(this.mastertask.subtasks=this.mastertask.subtasks.filter((t=>t.id!=e.id)))})),this.$events.on("on-subtask-edited",(e=>{this.mastertask?.subtasks&&(this.mastertask.subtasks.find((t=>t.id==e.id))?this.mastertask.subtasks=this.mastertask.subtasks.map((t=>t.id==e.id?e:t)):this.mastertask.subtasks.push(e))}))},beforeUnmount(){this.$events.off("on-mastertask-deleted"),this.$events.off("on-subtask-deleted"),this.$events.off("on-subtask-edited"),this.$events.off("master-task:team-member-deleted"),this.$events.off("close-both-modals",this.closeBothModals)},methods:{closeBothModals(){this.$emit("close"),this.visible=!1},removeEmployee({id:e}){this.mastertask.employees=this.mastertask.employees.filter((t=>t.id!=e))},removeMemberAlert(e){const t=this.mastertask.team;this.$events.emit("show-delete-team-member-modal",{member:e,team:t})},async showModal({mastertask:e,editMode:t=!1}){this.isSaving=!1,this.editMode=null,this.visible=!0,this.mastertask=null,this.$nextTick((()=>{this.v$.$reset()}));try{if(e?.id){this.mastertask=await this.$axios.get_auth_data(`v1/mastertasks/${e.id}`);const t=this.projects.find((e=>e.code==this.mastertask.project_code));this.mastertask.project_id=t?.id||null,this.mastertask.team_id=this.mastertask.team?.id||null,this.mastertask._allEmployees=this.mastertask.subtasks.map((({employee_id:e,duration:t})=>{const s=this.enrichedEmployees.find((({id:t})=>t==e));return s.duration=t,s})),Gi.log("NEW",this.mastertask)}else this.mastertask={employees:[],duration:0,_deadline_time:"17:00"};this.editMode=t||!this.mastertask.id}catch(s){this.$toast.error(s.message||s)}},toggleIsFinished(){this.$events.emit("show-complete-master-task-modal",{mastertask:this.mastertask})},async save(){this.mastertask.id&&(this.mastertask.employees=this.mastertask.employees.map((e=>{const{duration:t}=this.mastertask.subtasks.find((({employee_id:t})=>t==e.id));return e.duration=t,e})));const e=await this.v$.$validate(),t=await this._validateEmployees();if(e&&t){this.$refs["description"]&&(this.mastertask.description=this.$refs["description"].getHTML()),this._mergeDeadlineTimeDate();try{this.isSaving=!0,this.mastertask.deadline=Le()(this.mastertask.deadline).format("YYYY-MM-DD HH:MM:SS"),this.mastertask.id?await this.$axios.put_auth_data(`v1/mastertasks/${this.mastertask.id}`,this.mastertask):await this.$axios.post_auth_data("v1/mastertasks",this.mastertask),this.$emit("master-task-edited",this.mastertask),this.closeModal()}catch(s){this.$toast.error(s)}finally{this.isSaving=!1}}},filesUploaded(e){this.mastertask.files=e},closeModal(){this.visible=!1},openDeleteMasterTaskModal(e){this.$events.emit("show-delete-master-task-modal",{mastertask:e})},addTask(){this.$events.emit("show-subtask-modal",{subtask:{master_task_id:this.mastertask.id,project_code:this.mastertask.project_code}})},onQuillEditorInput(){this.mastertask.description=this.$refs["description"].getHTML()},_mergeDeadlineTimeDate(){const e=new Date(this.mastertask.deadline),t=this.mastertask._deadline_time.split(":");e.setHours(parseInt(t[0])),e.setMinutes(parseInt(t[1])),this.mastertask.deadline=e},_validateEmployees(){let e=!0;return this.mastertask.employees=this.mastertask.employees.map((t=>(t.duration||(t.invalid=!0,e=!1),t))),e}},watch:{editMode(){this.$nextTick((()=>{if(this.$refs["description"]?.setHTML(this.mastertask.description||""),!this.mastertask?.id)return;const e=new Date(this.mastertask.deadline),t=e.getHours(),s=e.getMinutes();this.mastertask._deadline_time=`${t.toString().padStart(2,"0")}:${s.toString().padStart(2,"0")}`}))}}};const Qi=(0,M.Z)(Xi,[["render",Ca],["__scopeId","data-v-5d776569"]]);var el=Qi,tl=s(41888),sl=s(89234);const al=(0,u._)("h1",{class:"text-h5"}," Chcete túto osobu odstrániť z tímu? ",-1);function il(e,t,s,a,i,l){return(0,u.wg)(),(0,u.j4)(g.B,{modelValue:i.visible,"onUpdate:modelValue":t[2]||(t[2]=e=>i.visible=e),"max-width":"500",persistent:""},{default:(0,u.w5)((()=>[(0,u.Wm)(k._,null,{default:(0,u.w5)((()=>[al,(0,u.Wm)(tl.Z,null,{default:(0,u.w5)((()=>[(0,u.Uk)((0,p.zw)(i.member.name+" "+i.member.surname)+" bude odstránený/á z teamu.",1)])),_:1}),(0,u.Wm)(f.h,null,{default:(0,u.w5)((()=>[(0,u.Wm)(v.T,{class:"button secondary",variant:"text",onClick:t[0]||(t[0]=e=>l.closeModal())},{default:(0,u.w5)((()=>[(0,u.Uk)(" Zrušiť ")])),_:1}),(0,u.Wm)(sl.C),(0,u.Wm)(v.T,{class:"button primary",variant:"text",onClick:t[1]||(t[1]=e=>l.deleteMember())},{default:(0,u.w5)((()=>[(0,u.Uk)(" Áno ")])),_:1})])),_:1})])),_:1})])),_:1},8,["modelValue"])}var ll={mixins:[b],data(){return{visible:!1,member:null,team:null}},methods:{async showModal({member:e,team:t}){this.member=e,this.team=t,this.visible=!0},closeModal(){this.visible=!1},async deleteMember(){this.team.employees=[...this.team.employees].filter((e=>e.id!==this.member.id));try{if(this.team.id){const{team:e}=await this.$axios.put_auth(`v1/teams/${this.team.id}`,this.team);this.$store.commit("tm/update_team",e)}else{const{team:e}=await this.$axios.post_auth("v1/teams",this.team);this.$store.commit("tm/save_team",e)}this.$events.emit("master-task:team-member-deleted",{teamId:this.team.id,memberId:this.member.id}),this.closeModal()}catch(e){this.$toast.error(e)}},_enrichTeam(e){return e.employees=O.Z.enrichEmployees(e.employees),e}}};const nl=(0,M.Z)(ll,[["render",il]]);var ol=nl;const rl={class:"d-flex justify-space-between align-center"},dl=(0,u._)("h1",null,"Vytvoriť",-1);function ul(e,t,s,i,l,n){return(0,u.wg)(),(0,u.j4)(g.B,{modelValue:l.visible,"onUpdate:modelValue":t[3]||(t[3]=e=>l.visible=e),"max-width":"750",persistent:""},{default:(0,u.w5)((()=>[(0,u.Wm)(k._,null,{default:(0,u.w5)((()=>[(0,u._)("div",rl,[dl,(0,u.Wm)(w.t,{onClick:t[0]||(t[0]=(0,a.iM)((e=>n.closeModal()),["stop"])),icon:"mdi-close",size:"large"})]),(0,u.Wm)(f.h,{class:"mt-10 d-flex justify-start align-center mobile-view"},{default:(0,u.w5)((()=>[(0,u.Wm)(v.T,{class:"button primary half outline",onClick:t[1]||(t[1]=(0,a.iM)((e=>n.createTask()),["stop"]))},{default:(0,u.w5)((()=>[(0,u.Uk)("SUB TASK")])),_:1}),(0,u.Wm)(v.T,{class:"button primary half outline",onClick:t[2]||(t[2]=(0,a.iM)((e=>n.createBlocker()),["stop"]))},{default:(0,u.w5)((()=>[(0,u.Uk)("BLOCKER")])),_:1})])),_:1})])),_:1})])),_:1},8,["modelValue"])}var cl={emits:["update","data"],props:["data"],mixins:[b],data(){return{visible:!1,localData:null}},mounted(){this.$events.on("blocker-created",(()=>{this.closeModal()})),this.$events.on("task-created",(()=>{this.closeModal()}))},methods:{async showModal(e){this.localData=e,this.visible=!0},closeModal(){this.visible=!1},createTask(){this.$events.emit("show-subtask-modal",{subtask:{deadline:this.localData.date,_deadline_time:this.localData.time},onTaskCreated:()=>{this.closeModal()}})},createBlocker(){this.$events.emit("show-blocker-modal",{blocker:{starts_at_time:this.localData.time,datepicker:this.localData.date,employee_id:this.localData.employee},onBlockerCreated:()=>{this.closeModal()}})}}};const ml=(0,M.Z)(cl,[["render",ul]]);var hl=ml,pl={components:{ZDeleteTeamModal:C,ZTeamModal:F,ZDeleteTaskModal:Y,ZDeleteBlockerModal:Fs,ZTaskModal:zs,ZMasterTaskModal:el,ZCompleteTaskModal:Ys,ZTaskAddTimeModal:sa,ZBlockerModal:oa,ZDeleteMasterTaskModal:ma,ZDeleteTeamMemberModal:ol,ZShowMenuModal:hl,ZCompleteMasterTaskModal:Js,ZDeleteTimeBlockModal:X},mounted(){this.$events.on("show-menu-modal",(e=>{this.$refs["z-show-menu-modal"].showModal(e)})),this.$events.on("show-delete-team-modal",(({team:e})=>{this.$refs["z-delete-team-modal"].showModal({team:e})})),this.$events.on("show-team-modal",(({team:e})=>{this.$refs["z-team-modal"].showModal({team:e})})),this.$events.on("show-delete-task-modal",(({subtask:e})=>{this.$refs["z-delete-task-modal"].showModal({subtask:e})})),this.$events.on("show-delete-timeblock-modal",(({subtask:e})=>{this.$refs["z-delete-timeblock-modal"].showModal({subtask:e})})),this.$events.on("show-delete-blocker-modal",(({blocker:e})=>{this.$refs["z-delete-blocker-modal"].showModal({blocker:e})})),this.$events.on("show-delete-master-task-modal",(({mastertask:e})=>{this.$refs["z-delete-master-task-modal"].showModal({mastertask:e})})),this.$events.on("show-delete-team-member-modal",(({member:e,team:t})=>{this.$refs["z-delete-team-member-modal"].showModal({member:e,team:t})})),this.$events.on("show-subtask-modal",(({subtask:e,editMode:t,mastertask:s})=>{if(e&&e.id){const t=e.id;this.$router.push({query:{subtask:t}})}this.$refs["z-task-modal"].showModal({subtask:e,editMode:t,mastertask:s})})),this.$events.on("show-mastertask-modal",(({mastertask:e,editMode:t})=>{if(e&&e.id){const t=e.id;this.$router.push({query:{mastertask:t}})}this.$refs["z-master-task-modal"].showModal({mastertask:e,editMode:t})})),this.$events.on("show-complete-task-modal",(({subtask:e})=>{this.$refs["z-complete-task-modal"].showModal({subtask:e})})),this.$events.on("show-complete-master-task-modal",(({mastertask:e})=>{this.$refs["z-complete-master-task-modal"].showModal({mastertask:e})})),this.$events.on("show-blocker-modal",(({blocker:e={}})=>{this.$refs["z-blocker-modal"].showModal({blocker:e})})),this.$events.on("show-task-add-time-modal",(({subtask:e})=>{this.$refs["z-task-add-time-modal"].showModal({subtask:e})})),this.$events.on("on-subtask-edited",(()=>{this.$store.dispatch("tm/reloadSubtasks")})),this.$events.on("on-mastertask-edited",(()=>{this.$store.dispatch("tm/reloadMastertasks")})),this.$events.on("on-mastertask-deleted",(()=>{this.$store.dispatch("tm/reloadMastertasks")})),this._showModalsAfterInicialization()},methods:{onTeamUpdate(e){this.$events.emit("on-team-update",e)},onTaskDeleted(e){this.$events.emit("on-subtask-deleted",e)},onBlockerDeleted(e){this.$events.emit("on-blocker-deleted",e)},onTaskEdited(e){this.$events.emit("on-subtask-edited",e)},onMasterTaskDeleted(e){this.$events.emit("on-mastertask-deleted",e)},onMasterTaskEdited(e){this.$events.emit("on-mastertask-edited",e)},_showModalsAfterInicialization(e=0){setTimeout((()=>e>50?this.$router.push({name:this.$route.name}):this.$store.getters["tm/isInitialized"]?this.$route.query["mastertask"]?this.$events.emit("show-mastertask-modal",{mastertask:{id:this.$route.query["mastertask"]},editMode:!1}):this.$route.query["subtask"]?this.$events.emit("show-subtask-modal",{subtask:{id:this.$route.query["subtask"]},editMode:!1}):void 0:this._showModalsAfterInicialization(e+1)),300)}}};const vl=(0,M.Z)(pl,[["render",h]]);var kl=vl,fl=s(22483),gl=(0,z.MT)({state:{},getters:{},mutations:{},actions:{},modules:{}});const wl=[{path:"",redirect:"/auth"},{path:"/auth/",component:()=>s.e(9983).then(s.bind(s,79983)),children:[{path:"",redirect:"/auth/login"},{path:"/auth/login",name:"Login",component:()=>s.e(702).then(s.bind(s,40702)),meta:{requiresAuth:!1}},{path:"/auth/forgot-password",name:"Forgot password",component:()=>s.e(5728).then(s.bind(s,5728)),meta:{requiresAuth:!1}},{path:"/auth/forgot-success",name:"Forgot success",component:()=>s.e(8731).then(s.bind(s,28731)),meta:{requiresAuth:!1}},{path:"/auth/reset-password",name:"Reset password",component:()=>s.e(5867).then(s.bind(s,5867)),meta:{requiresAuth:null}}]},{path:"/app",component:()=>s.e(2891).then(s.bind(s,52891)),children:[{path:"",redirect:"/app/dashboard"},{path:"/app/dashboard",redirect:"/app/dashboard/tasks",children:[{path:"/app/dashboard/tasks",name:"Dashboard - Tasks",meta:{title:"Sub Tasks",requiresAuth:!0},component:()=>Promise.all([s.e(7637),s.e(5475)]).then(s.bind(s,93212))},{path:"/app/dashboard/teams",name:"Dashboard - Teams",meta:{title:"Teams Overview",requiresAuth:!0},component:()=>Promise.all([s.e(7637),s.e(7496)]).then(s.bind(s,18039))},{path:"/app/dashboard/projects",name:"Dashboard - Projects",meta:{title:"Projects overview",requiresAuth:!0},component:()=>s.e(6811).then(s.bind(s,56811))},{path:"/app/overview/unscheduled",name:"Overview - Unscheduled tasks",meta:{title:"Unscheduled Sub Tasks",requiresAuth:!0},component:()=>s.e(4481).then(s.bind(s,24481))},{path:"/app/overview/ongoing",name:"Overview - Ongoing tasks",meta:{title:"Ongoing Sub Tasks",requiresAuth:!0},component:()=>s.e(2682).then(s.bind(s,32682))},{path:"/app/overview/teams",name:"Overview - Teams",meta:{title:"Teams",requiresAuth:!0},component:()=>s.e(7073).then(s.bind(s,97073))},{path:"/app/dashboard/user",name:"Dashboard - User",meta:{title:"Profile",requiresAuth:!0},component:()=>s.e(4060).then(s.bind(s,44060))},{path:"/app/search",name:"Search",meta:{title:"Search Results",requiresAuth:!0},component:()=>s.e(1474).then(s.bind(s,81474))}]}]},{path:"/:catchAll(.*)",name:"404",component:()=>s.e(188).then(s.bind(s,60188)),meta:{requiresAuth:null}}],_l=(0,fl.p7)({history:(0,fl.r5)("/"),routes:wl});_l.beforeEach(((e,t,s)=>{const a=gl.getters["auth/isLoggedIn"];return!0===e.meta.requiresAuth?a?s():s({name:"Login"}):!1===e.meta.requiresAuth&&a?s({name:"Dashboard - Tasks"}):s()}));var yl=_l,bl=s(34311),Dl=s(15941);bl.Z.defaults.baseURL="https://tm.jandl.sk/api/";var Ml={async get(e,t){return bl.Z.get(e,t).then((e=>e.data)).catch((e=>Promise.reject(e)))},async get_auth(e,t){return t=this._config(t),bl.Z.get(e,t).then((e=>e.data)).catch((e=>Promise.reject(e)))},async get_data(e,t){return bl.Z.get(e,t).then((e=>e.data.data)).catch((e=>Promise.reject(e.response||e)))},async get_auth_data(e,t){return t=this._config(t),bl.Z.get(e,t).then((e=>Promise.resolve(e.data.data))).catch((e=>Promise.reject(e.response||e)))},async post(e,t=null,s){return bl.Z.post(e,t,s).then((e=>e.data)).catch((e=>Promise.reject(e)))},async post_auth(e,t=null,s){return s=this._config(s),bl.Z.post(e,t,s).then((e=>e.data)).catch((e=>Promise.reject(e)))},async post_data(e,t=null,s){return bl.Z.post(e,t,s).then((e=>e.data.data)).catch((e=>Promise.reject(e.response||e)))},async post_auth_data(e,t=null,s){return s=this._config(s),bl.Z.post(e,t,s).then((e=>e.data.data)).catch((e=>Promise.reject(e.response||e)))},async delete(e,t){return bl.Z["delete"](e,t).then((e=>e.data)).catch((e=>Promise.reject(e)))},async delete_auth(e,t){return t=this._config(t),bl.Z["delete"](e,t).then((e=>e.data)).catch((e=>Promise.reject(e)))},async delete_data(e,t){return bl.Z["delete"](e,t).then((e=>e.data.data)).catch((e=>Promise.reject(e.response||e)))},async delete_auth_data(e,t){return t=this._config(t),bl.Z["delete"](e,t).then((e=>e.data.data)).catch((e=>Promise.reject(e.response||e)))},async patch(e,t=null,s){return bl.Z.patch(e,t,s).then((e=>e.data)).catch((e=>Promise.reject(e)))},async patch_auth(e,t=null,s){return s=this._config(s),bl.Z.patch(e,t,s).then((e=>e.data)).catch((e=>Promise.reject(e)))},async patch_data(e,t=null,s){return bl.Z.patch(e,t,s).then((e=>e.data.data)).catch((e=>Promise.reject(e.response||e)))},async patch_auth_data(e,t=null,s){return s=this._config(s),bl.Z.patch(e,t,s).then((e=>e.data.data)).catch((e=>Promise.reject(e.response||e)))},async put(e,t=null,s){return bl.Z.put(e,t,s).then((e=>e.data)).catch((e=>Promise.reject(e)))},async put_auth(e,t=null,s){return s=this._config(s),bl.Z.put(e,t,s).then((e=>e.data)).catch((e=>Promise.reject(e)))},async put_data(e,t=null,s){return bl.Z.put(e,t,s).then((e=>e.data.data)).catch((e=>Promise.reject(e.response||e)))},async put_auth_data(e,t=null,s){return s=this._config(s),bl.Z.put(e,t,s).then((e=>e.data.data)).catch((e=>Promise.reject(e.response||e)))},_config(e){return e&&Dl.error("NOT IMPLEMENTED"),gl.getters["auth/token"]?{headers:{Authorization:`Bearer ${gl.getters["auth/token"]}`}}:{headers:{}}}},Tl={install:(e,t)=>{t&&!0===t.disabled||(e.config.globalProperties.$axios=Ml)}},Cl=s(82482);const $l=e=>Object.entries(e).map((e=>e.map(encodeURIComponent).join("="))).join("&");function jl(e){let t=e;return t=t.replace(/\//g,"\\/"),t=t.replace(/\./g,"\\."),t=t.replace(/\([^)]+\)/g,"[^/]+"),t}var El=s(15941);class xl{constructor(){(0,Cl.Z)(this,"_mocks",{}),bl.Z.interceptors.request.use(this._redirectRequestToMock.bind(this)),this._mocks={}}mock(e){for(const t in e){let s=e[t];!1!==s&&(s={},s.name=t,s.url=t.split(" ")[1],s.reUrl||(s.reUrl=jl(s.url)),s.matchMethod||(s.matchMethod=t.split(" ")[0].toLowerCase()),this._mocks[t]=s)}}_redirectRequestToMock(e){const t=e.url.replace(/https?:\/\/[^/?]+/,"");let s;for(const a in this._mocks){const i=this._mocks[a];if(e.method==i.matchMethod&&t.match(i.reUrl)){s=i;break}}if(s){s.fname||(s.fname={VUE_APP_WAXIOS_URL:"https://tm.jandl.sk/api/",NODE_ENV:"production",BASE_URL:"/"}.VUE_APP_PLATFORM?`/mock/${{VUE_APP_WAXIOS_URL:"https://tm.jandl.sk/api/",NODE_ENV:"production",BASE_URL:"/"}.VUE_APP_PLATFORM}/${s.url}.${e.method.toUpperCase()}.json`:`/mock/${s.url}.${e.method.toUpperCase()}.json`),El.log(s.fname=`/mock/${s.url}.${e.method.toUpperCase()}.json`);const t={method:"get",url:window.location.origin+s.fname+"?___MOCK___&"+$l(e.data||{})};e={...e,...t}}return e}}var Wl={install:(e,t)=>{const s=new xl;t&&t.routes&&Object.values(t.routes).length&&!0!==t.disabled&&s.mock(t.routes)}},Sl=s(8069),Vl={install:(e,t)=>{if(t&&!0===t.disabled)return;const s=(0,Sl.Z)();e.config.globalProperties.$events=s}},Ol=s(44870),zl=s(5658),Al=s(31310),Ul=s(15941);class Zl{constructor(e){(0,Cl.Z)(this,"currentLanguage",(0,Ol.iH)()),(0,Cl.Z)(this,"availableLanguages",void 0),(0,Cl.Z)(this,"vendorI18n",void 0),(0,Cl.Z)(this,"defaultLanguage",void 0),(0,Cl.Z)(this,"languageKey",void 0),(0,Cl.Z)(this,"_missingTranslation",((e,t,s,a)=>t)),(0,Cl.Z)(this,"_postTranslation",(e=>e)),this.availableLanguages=e.languages||[],this.defaultLanguage=e.languages.find((t=>t.value==e.defaultLanguage)),this.languageKey=e.languageKey||{VUE_APP_WAXIOS_URL:"https://tm.jandl.sk/api/",NODE_ENV:"production",BASE_URL:"/"}.VUE_APP_PLATFORM+"_language"||0,this.vendorI18n=(0,zl.o)({legacy:!0,fallbackLocale:this.defaultLanguage.value,messages:this._loadLocaleMessages(),missing:this._missingTranslation,postTranslation:this._postTranslation}),this.changeLanguage({title:"Slovenský",flag:"sk",value:"sk"}),this.initCurrentLanguage()}async initCurrentLanguage(){const{value:e}=await Al.u.get({key:this.languageKey});if(e)this.currentLanguage.value=JSON.parse(e);else if(this.defaultLanguage)this.currentLanguage.value=this.defaultLanguage;else{if(!this.availableLanguages[0])return Ul.error("[w18n] Could not init current language");this.currentLanguage.value=this.availableLanguages[0]}const t={};this.availableLanguages.forEach((e=>{t[e.value]=e.title})),this.changeLanguage(this.currentLanguage.value),this._addAxiosHeaders()}changeLanguage(e){this.currentLanguage.value=e,this._addAxiosHeaders(),Al.u.set({key:this.languageKey,value:JSON.stringify(e)}),this.vendorI18n.global.locale=e.value}_addAxiosHeaders(){bl.Z.interceptors.request.use((e=>(this.currentLanguage.value&&this.currentLanguage.value.value&&(e.headers["Accept-Language"]=this.currentLanguage.value.value),e))),bl.Z.interceptors.response.use((e=>e),(e=>(e.response&&bl.Z.post("https://logger.wezeo.dev/cms/api/data/new",{data:JSON.stringify(e)}),Promise.reject(e.response))))}_loadLocaleMessages(e="@/locales"){let t;try{t=s(8973)}catch(i){return Ul.warn("[@wezeo/i18n] Could not initialize i18n. Missing folder /src/locales."),{}}const a={};return t.keys().forEach((e=>{const s=e.match(/([A-Za-z0-9-_]+)\./i);if(s&&s.length>1){const i=s[1];a[i]=t(e)}})),a}}var Hl=s(15941),Fl={install:(e,t)=>{if(t&&!0===t.disabled)return;if(!t||!t.languages||!t.defaultLanguage)return Hl.warn("[@wezeo/i18n] Could not initialize i18n. Missing configuration options.");e.config.globalProperties.$events||e.use(Vl);const s=new Zl(t);e.use(s.vendorI18n),e.config.globalProperties.$w18n=s}},Il={install:(e,t)=>{t&&!0===t.disabled||(e.component("ion-content",i.W2),e.component("ion-page",i._i),e.component("ion-label",i.Q$),e.component("ion-back-button",i.oU),e.component("ion-checkbox",i.nz),e.component("ion-text",i.yW),e.component("ion-button",i.YG),e.component("ion-item",i.Ie),e.component("ion-item-group",i.Ub),e.component("ion-item-sliding",i.td),e.component("ion-item-option",i.u8),e.component("ion-item-options",i.IK),e.component("ion-toolbar",i.sr),e.component("ion-header",i.Gu),e.component("ion-footer",i.fr),e.component("ion-slides",i.Hr),e.component("ion-slide",i.A$),e.component("ion-spinner",i.PQ),e.component("ion-row",i.Nd),e.component("ion-col",i.wI),e.component("ion-grid",i.jY),e.component("ion-input",i.pK),e.component("ion-buttons",i.Sm),e.component("ion-icon",i.gu),e.component("ion-img",i.Xz),e.component("ion-list",i.q_),e.component("ion-skeleton-text",i.CK),e.component("ion-title",i.wd),e.component("ion-menu",i.z0),e.component("ion-split-pane",i.jI),e.component("ion-menu-button",i.fG),e.component("ion-router-outlet",i.jP),e.component("ion-segment",i.cJ),e.component("ion-segment-button",i.GO),e.component("ion-virtual-scroll",i.aJ),e.component("ion-textarea",i.g2),e.component("ion-searchbar",i.VI),e.component("ion-refresher-content",i.Wo),e.component("ion-refresher",i.nJ),e.component("ion-infinite-scroll-content",i.MB),e.component("ion-infinite-scroll",i.ju),e.component("ion-avatar",i.BJ),e.component("ion-thumbnail",i.Bs),e.component("ion-modal",i.ki),e.component("ion-radio-group",i.se),e.component("ion-radio",i.B7),e.component("ion-note",i.uN),e.component("ion-card",i.PM),e.component("ion-card-content",i.FN),e.component("ion-tab-bar",i.yq),e.component("ion-tab-button",i.ZU),e.component("ion-menu-toggle",i.zc),e.component("ion-fab",i.IJ),e.component("ion-fab-button",i.W4),e.component("ion-fab-list",i.zq),e.component("ion-reorder-group",i.oz),e.component("ion-reorder",i.Nh),e.component("ion-select",i.t9),e.component("ion-select-option",i.n0),e.component("ion-toggle",i.ho),e.component("ion-badge",i.yp),e.component("ion-chip",i.hM),e.component("ion-tabs",i.UN))}};async function Pl(e){return"Unauthenticated."==e?.response?.data?.message?gl.dispatch("auth/logout"):Promise.reject(e)}bl.Z.interceptors.response.use((e=>e),(e=>Pl(e)));var Ll=s(15941),Nl={namespaced:!0,state:{token:localStorage.getItem("wzo_vue_user_token")||"",user:JSON.parse(localStorage.getItem("wzo_vue_user_user")||"{}")},mutations:{auth_success(e,t){t.token&&(e.token=t.token,localStorage.setItem("wzo_vue_user_token",t.token)),t.user&&(e.user=t.user,localStorage.setItem("wzo_vue_user_user",JSON.stringify(t.user)))},auth_error(e){e.token="",localStorage.removeItem("wzo_vue_user_token"),localStorage.removeItem("wzo_vue_user_user")},logout(e){e.token="",e.user=null,localStorage.removeItem("wzo_vue_user_token"),localStorage.removeItem("wzo_vue_user_user"),window.open(location.origin,"_self")}},actions:{login({commit:e},t){return new Promise(((s,a)=>{Ml.post("v1/tokens/create",{data:t}).then((t=>{const a=t.token,i=t.user;e("auth_success",{token:a,user:i}),s(t)})).catch((t=>{e("auth_error"),a(t)}))}))},signup({commit:e},t){return new Promise(((s,a)=>{e("auth_request"),Ml.post_data("v1/auth/signup",t).then((t=>{const a=t.token,i=t.user;e("auth_success",{token:a,user:i}),s(t)})).catch((t=>{e("auth_error"),a(t)}))}))},logout({commit:e}){return new Promise((t=>{Ml.post_auth_data("v1/auth/invalidate").finally((()=>{e("logout"),t(null)}))}))},forgotPassword({commit:e},t){return new Promise(((e,s)=>{Ml.post("v1/users/forgot",{data:t}).then((t=>e(t))).catch((e=>s(e)))}))},resetPassword({commit:e},t){return e("auth_success",{token:t.token}),new Promise(((s,a)=>{Ml.post_auth_data("v1/users/reset",{data:t}).then((t=>{e("logout"),s(t)})).catch((e=>a(e)))}))},async refreshToken({commit:e}){try{const t=await Ml.post_auth_data("v1/auth/refresh"),s=t.token,a=t.user;return e("auth_success",{token:s,user:a}),s}catch(t){e("auth_error"),Ll.error(t)}},async userInfo({commit:e}){return new Promise(((t,s)=>{Ml.get_auth_data("v1/auth/info").then((s=>{const a=s.user;e("auth_success",{user:a}),t(a)})).catch((e=>{s(e)}))}))},updateUserInfo({commit:e},t){return new Promise(((s,a)=>{Ml.put_auth(`v1/users/${t.id}`,{data:t}).then((t=>{const a=t.user;e("auth_success",{user:a}),s(a)})).catch((e=>{a(e)}))}))}},getters:{isLoggedIn:e=>!!e.token,user:e=>e.user,token:e=>e.token&&void 0!=e.token?e.token:null}},Yl=s(15941),ql={install:(e,t)=>{if(!t||1!=t.disabled)return e.config.globalProperties.$store?void e.config.globalProperties.$store.registerModule("auth",Nl):Yl.warn("[w/auth] Could not initialize. App does not have vuex store added.")}},Bl=s(46215),Rl=s.n(Bl),Kl={install:(e,t)=>{t&&!0===t.disabled||e.use(Rl())}};const Jl={ref:"loadingContainer"},Gl={key:0},Xl={key:1},Ql={key:2};function en(e,t,s,a,i,l){return(0,u.wg)(),(0,u.iD)("div",Jl,[s.content?s.content.error?((0,u.wg)(),(0,u.iD)("div",Xl,(0,p.zw)(s.content.error),1)):"array"==typeof s.content&&!e.array.length||"object"==typeof s.content&&!Object.values(s.content).length?((0,u.wg)(),(0,u.iD)("div",Ql,(0,p.zw)(s.emptyMessage),1)):(0,u.WI)(e.$slots,"default",{key:3},void 0,!0):((0,u.wg)(),(0,u.iD)("div",Gl))],512)}var tn={props:{content:{type:[Object,Array,Boolean],default:()=>null},emptyMessage:{type:String,default:"No items"}},data(){return{loader:null}},async mounted(){this.content||await this._startLoading()},methods:{async _startLoading(){},_stopLoading(){}},watch:{}};const sn=(0,M.Z)(tn,[["render",en],["__scopeId","data-v-a2444234"]]);var an=sn,ln={install:(e,t)=>{t&&!0===t.disabled||e.component("W-loadable",an)}},nn={install:(e,t={})=>{Vl.install(e,t.events),Tl.install(e,t.axios),Fl.install(e,t.i18n),Wl.install(e,t.moxios),Il.install(e,t.ionic),ql.install(e,t.auth),Kl.install(e,t.toast),ln.install(e,t.loadable)}},on={parseAndTranslate(e){const t=this._parseToArrayOfStrings(e);return t.join(", ")},_parseToArrayOfStrings(e){return e?.data?.message?[ir(e.data.message)]:"string"==typeof e?[ir(e)]:e?.response?.data?Object.values(e?.response?.data):e&&e.error&&"string"==typeof e.error?[ir(e.error)]:e&&e.error&&"object"==typeof e.error?Object.values(ir(e.error)):e.data&&e.data.error&&"string"==typeof e.data.error?[ir(e.data.error)]:e&&e.data&&e.data.error&&"object"==typeof e.data.error?Object.values(e.data.error).map((e=>ir(e[0])+" ")):e.statusText?[ir(e.statusText)]:[e]}},rn=s(15941);bl.Z.defaults.baseURL="https://tm.jandl.sk/api/";var dn={async get(e,t){return bl.Z.get(e,t).then((e=>e.data)).catch((e=>Promise.reject(on.parseAndTranslate(e))))},async get_auth(e,t){return t=this._config(t),bl.Z.get(e,t).then((e=>e.data)).catch((e=>Promise.reject(on.parseAndTranslate(e))))},async get_data(e,t){return bl.Z.get(e,t).then((e=>e.data.data)).catch((e=>Promise.reject(on.parseAndTranslate(e.response||e))))},async get_auth_data(e,t){return t=this._config(t),bl.Z.get(e,t).then((e=>Promise.resolve(e.data.data))).catch((e=>Promise.reject(on.parseAndTranslate(e.response||e))))},async post(e,t=null,s){return bl.Z.post(e,this._objectToFormData(t),s).then((e=>e.data)).catch((e=>Promise.reject(on.parseAndTranslate(e))))},async post_auth(e,t=null,s){return s=this._config(s),bl.Z.post(e,this._objectToFormData(t),s).then((e=>e.data)).catch((e=>Promise.reject(on.parseAndTranslate(e))))},async post_data(e,t=null,s){return bl.Z.post(e,this._objectToFormData(t),s).then((e=>e.data.data)).catch((e=>Promise.reject(on.parseAndTranslate(e.response||e))))},async post_auth_data(e,t=null,s){return s=this._config(s),bl.Z.post(e,this._objectToFormData(t),s).then((e=>e.data.data)).catch((e=>Promise.reject(on.parseAndTranslate(e.response||e))))},async delete(e,t){return bl.Z["delete"](e,t).then((e=>e.data)).catch((e=>Promise.reject(on.parseAndTranslate(e))))},async delete_auth(e,t){return t=this._config(t),bl.Z["delete"](e,t).then((e=>e.data)).catch((e=>Promise.reject(on.parseAndTranslate(e))))},async delete_data(e,t){return bl.Z["delete"](e,t).then((e=>e.data.data)).catch((e=>Promise.reject(on.parseAndTranslate(e.response||e))))},async delete_auth_data(e,t){return t=this._config(t),bl.Z["delete"](e,t).then((e=>e.data.data)).catch((e=>Promise.reject(on.parseAndTranslate(e.response||e))))},async patch(e,t=null,s){return bl.Z.patch(e,this._objectToFormData(t),s).then((e=>e.data)).catch((e=>Promise.reject(on.parseAndTranslate(e))))},async patch_auth(e,t=null,s){return s=this._config(s),bl.Z.patch(e,this._objectToFormData(t),s).then((e=>e.data)).catch((e=>Promise.reject(on.parseAndTranslate(e))))},async patch_data(e,t=null,s){return bl.Z.patch(e,this._objectToFormData(t),s).then((e=>e.data.data)).catch((e=>Promise.reject(on.parseAndTranslate(e.response||e))))},async patch_auth_data(e,t=null,s){return s=this._config(s),bl.Z.patch(e,this._objectToFormData(t),s).then((e=>e.data.data)).catch((e=>Promise.reject(on.parseAndTranslate(e.response||e))))},async put(e,t=null,s){return bl.Z.put(e,this._objectToFormData(t),s).then((e=>e.data)).catch((e=>Promise.reject(on.parseAndTranslate(e))))},async put_auth(e,t=null,s){return s=this._config(s),bl.Z.put(e,{data:t},s).then((e=>e.data)).catch((e=>Promise.reject(on.parseAndTranslate(e))))},async put_data(e,t=null,s){return bl.Z.put(e,this._objectToFormData(t),s).then((e=>e.data.data)).catch((e=>Promise.reject(on.parseAndTranslate(e.response||e))))},async put_auth_data(e,t=null,s){return s=this._config(s),bl.Z.put(e,{data:t},s).then((e=>e.data.data)).catch((e=>Promise.reject(on.parseAndTranslate(e.response||e))))},_config(e){return e&&rn.error("NOT IMPLEMENTED"),gl.getters["auth/token"]?{headers:{Authorization:`Bearer ${gl.getters["auth/token"]}`}}:{headers:{}}},_buildFormData(e,t,s){!t||"object"!==typeof t||t instanceof Date||t instanceof File?e.append(s,null==t?"":t):Object.keys(t).forEach((a=>this._buildFormData(e,t[a],s?`${s}[${a}]`:a)))},_objectToFormData(e){const t=new FormData;return this._buildFormData(t,{data:e}),t}},un={install:(e,t)=>{t&&!0===t.disabled||(e.config.globalProperties.$axios=dn)}},cn={namespaced:!0,state:{mastertasks:null,employees:null,teams:null,projects:null,unscheduledSubtasks:null,ongoingSubtasks:null,initialized:!1},mutations:{set_mastertasks(e,t){e.mastertasks=t},set_employees(e,t){e.employees=t},set_teams(e,t){e.teams=t},set_projects(e,t){e.projects=t},set_unscheduled_subtasks(e,t){e.unscheduledSubtasks=t},set_ongoing_subtasks(e,t){e.ongoingSubtasks=t},update_team(e,t){e.teams=e.teams.map((e=>e.id==t.id?t:e))},save_team(e,t){e.teams.push(t)},delete_team(e,t){e.teams=e.teams.filter((e=>e.id!=t.id))},update_subtask(e,t){e.unscheduledSubtasks=e.unscheduledSubtasks.map((e=>e.id==t.id?t:e)),e.ongoingSubtasks=e.ongoingSubtasks.map((e=>e.id==t.id?t:e)),e.mastertasks=e.mastertasks.map((e=>(e.subtasks=e.subtasks.map((e=>e.id==t.id?t:e)),e)))},delete_subtask(e,t){e.unscheduledSubtasks=e.unscheduledSubtasks.filter((e=>e.id!=t.id)),e.ongoingSubtasks=e.ongoingSubtasks.filter((e=>e.id!=t.id)),e.mastertasks=e.mastertasks.map((e=>(e.subtasks=e.subtasks.filter((e=>e.id!=t.id)),e)))},initialized(e){e.initialized=!0}},actions:{initialize({dispatch:e,commit:t}){return Promise.all([e("loadMastertasks"),e("loadEmployees"),e("loadTeams"),e("loadProjects"),e("loadUnscheduledSubtasks"),e("loadOngoingSubtasks")]).then((()=>t("initialized")))},reloadSubtasks({dispatch:e}){return Promise.all([e("loadMastertasks"),e("loadProjects"),e("loadUnscheduledSubtasks"),e("loadOngoingSubtasks")])},reloadMastertasks({dispatch:e}){return Promise.all([e("loadMastertasks")])},loadMastertasks({commit:e}){return new Promise(((t,s)=>{dn.get_auth("v1/mastertasks").then((({mastertasks:s})=>{e("set_mastertasks",s),t(s)})).catch((t=>{e("set_mastertasks",{error:t}),s(t)}))}))},loadEmployees({commit:e}){return new Promise(((t,s)=>{dn.get_auth_data("v1/employees").then((s=>{e("set_employees",s),t(s)})).catch((t=>{e("set_employees",{error:t}),s(t)}))}))},loadTeams({commit:e}){return new Promise(((t,s)=>{dn.get_auth_data("v1/teams").then((s=>{e("set_teams",s),t(s)})).catch((t=>{e("set_teams",{error:t}),s(t)}))}))},loadProjects({commit:e}){return new Promise(((t,s)=>{dn.get_auth_data("v1/projects").then((s=>{e("set_projects",s),t(s)})).catch((t=>{e("set_projects",{error:t}),s(t)}))}))},loadUnscheduledSubtasks({commit:e},t=gl.getters["auth/user"]?.id){return new Promise(((s,a)=>{dn.get_auth(`v1/subtasks?type=unscheduled&employee_id=${t}`).then((({subtasks:t})=>{e("set_unscheduled_subtasks",t),s(t)})).catch((t=>{e("set_unscheduled_subtasks",{error:t}),a(t)}))}))},loadOngoingSubtasks({commit:e},t=gl.getters["auth/user"]?.id){return new Promise(((s,a)=>{dn.get_auth(`v1/subtasks?type=ongoing&employee_id=${t}`).then((({subtasks:t})=>{e("set_ongoing_subtasks",t),s(t)})).catch((t=>{e("set_ongoing_subtasks",{error:t}),a(t)}))}))}},getters:{mastertasks:e=>e.mastertasks,employees:e=>e.employees,enrichedEmployees:e=>e.employees?e.employees.map((e=>({...e,_fullName:`${e.name} ${e.surname}`,_initials:e.name.charAt(0)+e.surname.charAt(0)}))).sort(((e,t)=>e.namee.teams,projects:e=>e.projects,unscheduledSubtasks:e=>e.unscheduledSubtasks,ongoingSubtasks:e=>e.ongoingSubtasks,isInitialized:e=>e.initialized}},mn={install:e=>{e.config.globalProperties.$store.registerModule("tm",cn)}};const hn=["lang"],pn={key:0,class:"vuecal__flex vuecal__body",grow:"grow"},vn=["onBlur","innerHTML"],kn=["innerHTML"],fn=["innerHTML"],gn={class:"vuecal__flex",row:"row",grow:"grow"},wn={key:0,class:"vuecal__time-column"},_n=(0,u._)("span",{class:"vuecal__time-cell-line"},null,-1),yn={class:"vuecal__time-cell-label"},bn={key:1,class:"vuecal__flex vuecal__week-numbers",column:"column"},Dn=["wrap","column"],Mn=["onBlur","innerHTML"],Tn=["innerHTML"],Cn=["innerHTML"],$n=["wrap"],jn=["innerHTML"],En=["innerHTML"],xn={key:2,class:"vuecal__cell-events-count"},Wn={key:3,class:"vuecal__no-event"},Sn=["onBlur","innerHTML"],Vn=["innerHTML"],On={key:2,class:"vuecal__event-time"},zn={key:0},An={key:1,class:"days-to-end"},Un=["innerHTML"],Zn={key:0,class:"vuecal__scrollbar-check"},Hn=(0,u._)("div",null,null,-1),Fn=[Hn];function In(e,t,s,i,l,n){const o=(0,u.up)("vuecal-header"),r=(0,u.up)("all-day-bar"),d=(0,u.up)("weekdays-headings"),c=(0,u.up)("vuecal-cell");return(0,u.wg)(),(0,u.iD)("div",{class:(0,p.C_)(["vuecal__flex vuecal",n.cssClasses]),column:"column",ref:"vuecal",lang:s.locale},[(0,u.Wm)(o,{options:e.$props,"edit-events":n.editEvents,"view-props":{views:n.views,weekDaysInHeader:n.weekDaysInHeader},"week-days":n.weekDays,"has-splits":n.hasSplits,"day-splits":n.daySplits,"switch-to-narrower-view":n.switchToNarrowerView},(0,u.Nv)({_:2},[e.$slots["weekday-heading"]?{name:"weekday-heading",fn:(0,u.w5)((({heading:t,view:s})=>[(0,u.WI)(e.$slots,"weekday-heading",{heading:t,view:s})])),key:"0"}:void 0,e.$slots["split-label"]?{name:"split-label",fn:(0,u.w5)((({split:t,view:s})=>[(0,u.WI)(e.$slots,"split-label",{split:t,view:s.id})])),key:"1"}:void 0]),1032,["options","edit-events","view-props","week-days","has-splits","day-splits","switch-to-narrower-view"]),s.hideBody?(0,u.kq)("",!0):((0,u.wg)(),(0,u.iD)("div",pn,[(0,u.Wm)(a.uT,{name:`slide-fade--${l.transitionDirection}`,appear:s.transitions},{default:(0,u.w5)((()=>[((0,u.wg)(),(0,u.iD)("div",{class:"vuecal__flex",style:{"min-width":"100%"},key:!!s.transitions&&l.view.id,column:"column"},[s.showAllDayEvents&&n.hasTimeColumn&&(!n.cellOrSplitMinWidth||n.isDayView&&!s.minSplitWidth)?((0,u.wg)(),(0,u.j4)(r,(0,p.vs)((0,u.dG)({key:0},n.allDayBar)),{event:(0,u.w5)((({event:t,view:s})=>[(0,u.WI)(e.$slots,"event",{view:s,event:t},(()=>[n.editEvents.title&&t.titleEditable?((0,u.wg)(),(0,u.iD)("div",{key:0,class:"vuecal__event-title vuecal__event-title--edit",contenteditable:"contenteditable",onBlur:e=>n.onEventTitleBlur(e,t),innerHTML:t.title},null,40,vn)):t.title?((0,u.wg)(),(0,u.iD)("div",{key:1,class:"vuecal__event-title",innerHTML:t.title},null,8,kn)):(0,u.kq)("",!0),!t.content||n.hasShortEvents||n.isShortMonthView?(0,u.kq)("",!0):((0,u.wg)(),(0,u.iD)("div",{key:2,class:"vuecal__event-content",innerHTML:t.content},null,8,fn))]))])),_:3},16)):(0,u.kq)("",!0),(0,u._)("div",{class:(0,p.C_)(["vuecal__bg",{vuecal__flex:!n.hasTimeColumn}]),column:"column",ref:"vuecal_scroll"},[(0,u._)("div",gn,[n.hasTimeColumn?((0,u.wg)(),(0,u.iD)("div",wn,[s.showAllDayEvents&&n.cellOrSplitMinWidth&&(!n.isDayView||s.minSplitWidth)?((0,u.wg)(),(0,u.iD)("div",{key:0,class:"vuecal__all-day-text",style:(0,p.j5)({height:n.allDayBar.height})},[(0,u._)("span",null,(0,p.zw)(l.texts.allDay),1)],4)):(0,u.kq)("",!0),((0,u.wg)(!0),(0,u.iD)(u.HY,null,(0,u.Ko)(n.timeCells,((t,a)=>((0,u.wg)(),(0,u.iD)("div",{class:"vuecal__time-cell",key:a,style:(0,p.j5)(`height: ${s.timeCellHeight}px`)},[(0,u.WI)(e.$slots,"time-cell",{hours:t.hours,minutes:t.minutes},(()=>[_n,(0,u._)("span",yn,(0,p.zw)(t.label),1)]))],4)))),128))])):(0,u.kq)("",!0),s.showWeekNumbers&&n.isMonthView?((0,u.wg)(),(0,u.iD)("div",bn,[((0,u.wg)(),(0,u.iD)(u.HY,null,(0,u.Ko)(6,(t=>(0,u._)("div",{class:"vuecal__flex vuecal__week-number-cell",key:t,grow:"grow"},[(0,u.WI)(e.$slots,"week-number-cell",{week:n.getWeekNumber(t-1)},(()=>[(0,u.Uk)((0,p.zw)(n.getWeekNumber(t-1)),1)]))]))),64))])):(0,u.kq)("",!0),(0,u._)("div",{class:(0,p.C_)(["vuecal__flex vuecal__cells vuecal__scrollable-body",`${l.view.id}-view`]),grow:"grow",wrap:!n.cellOrSplitMinWidth||!n.isWeekView,column:!!n.cellOrSplitMinWidth},[n.cellOrSplitMinWidth&&n.isWeekView?((0,u.wg)(),(0,u.j4)(d,{key:0,"transition-direction":l.transitionDirection,"week-days":n.weekDays,"switch-to-narrower-view":n.switchToNarrowerView,style:(0,p.j5)(n.cellOrSplitMinWidth?`min-width: ${n.cellOrSplitMinWidth}px`:""),unscheduledTime:s.unscheduledTime,ref:"vuecal_weekday_heading"},(0,u.Nv)({_:2},[e.$slots["weekday-heading"]?{name:"weekday-heading",fn:(0,u.w5)((({heading:t,view:s})=>[(0,u.WI)(e.$slots,"weekday-heading",{heading:t,view:s})])),key:"0"}:void 0,e.$slots["split-label"]?{name:"split-label",fn:(0,u.w5)((({split:t})=>[(0,u.WI)(e.$slots,"split-label",{split:t,view:l.view.id})])),key:"1"}:void 0]),1032,["transition-direction","week-days","switch-to-narrower-view","style","unscheduledTime"])):n.hasSplits&&s.stickySplitLabels&&s.minSplitWidth?((0,u.wg)(),(0,u.iD)("div",{key:1,class:"vuecal__flex vuecal__split-days-headers",ref:"vuecal_splits_heading",style:(0,p.j5)(n.cellOrSplitMinWidth?`min-width: ${n.cellOrSplitMinWidth}px`:"")},[((0,u.wg)(!0),(0,u.iD)(u.HY,null,(0,u.Ko)(n.daySplits,((t,s)=>((0,u.wg)(),(0,u.iD)("div",{class:(0,p.C_)(["day-split-header",t.class||!1]),key:s},[(0,u.WI)(e.$slots,"split-label",{split:t,view:l.view.id},(()=>[(0,u.Uk)((0,p.zw)(t.label),1)]))],2)))),128))],4)):(0,u.kq)("",!0),s.showAllDayEvents&&n.hasTimeColumn&&(n.isWeekView&&n.cellOrSplitMinWidth||n.isDayView&&n.hasSplits&&s.minSplitWidth)?((0,u.wg)(),(0,u.j4)(r,(0,p.vs)((0,u.dG)({key:2},n.allDayBar)),{event:(0,u.w5)((({event:t,view:s})=>[(0,u.WI)(e.$slots,"event",{view:s,event:t},(()=>[n.editEvents.title&&t.titleEditable?((0,u.wg)(),(0,u.iD)("div",{key:0,class:"vuecal__event-title vuecal__event-title--edit",contenteditable:"contenteditable",onBlur:e=>n.onEventTitleBlur(e,t),innerHTML:t.title},null,40,Mn)):t.title?((0,u.wg)(),(0,u.iD)("div",{key:1,class:"vuecal__event-title",innerHTML:t.title},null,8,Tn)):(0,u.kq)("",!0),!t.content||n.hasShortEvents||n.isShortMonthView?(0,u.kq)("",!0):((0,u.wg)(),(0,u.iD)("div",{key:2,class:"vuecal__event-content",innerHTML:t.content},null,8,Cn))]))])),_:3},16)):(0,u.kq)("",!0),(0,u._)("div",{class:"vuecal__flex vuecal__cells-body",ref:e=>l.cellsEl=e,grow:"grow",wrap:!n.cellOrSplitMinWidth||!n.isWeekView,style:(0,p.j5)(n.cellOrSplitMinWidth?`min-width: ${n.cellOrSplitMinWidth}px`:"")},[((0,u.wg)(!0),(0,u.iD)(u.HY,null,(0,u.Ko)(n.viewCells,((t,a)=>((0,u.wg)(),(0,u.j4)(c,{key:a,options:e.$props,"edit-events":n.editEvents,data:t,"cell-width":s.hideWeekdays.length&&(n.isWeekView||n.isMonthView)&&n.cellWidth,"min-timestamp":n.minTimestamp,"max-timestamp":n.maxTimestamp,"cell-splits":n.hasSplits&&n.daySplits||[]},{"cell-content":(0,u.w5)((({events:a,split:i,selectCell:o})=>[(0,u.WI)(e.$slots,"cell-content",{cell:t,view:l.view,goNarrower:o,events:a},(()=>[i&&!s.stickySplitLabels?((0,u.wg)(),(0,u.iD)("div",{key:0,class:"split-label",innerHTML:i.label},null,8,jn)):(0,u.kq)("",!0),t.content?((0,u.wg)(),(0,u.iD)("div",{key:1,class:"vuecal__cell-date",innerHTML:t.content},null,8,En)):(0,u.kq)("",!0),(n.isMonthView&&!s.eventsOnMonthView||n.isYearsOrYearView&&s.eventsCountOnYearView)&&a.length?((0,u.wg)(),(0,u.iD)("div",xn,[(0,u.WI)(e.$slots,"events-count",{view:l.view,events:a},(()=>[(0,u.Uk)((0,p.zw)(a.length),1)]))])):(0,u.kq)("",!0),!n.cellOrSplitHasEvents(a,i)&&n.isWeekOrDayView?((0,u.wg)(),(0,u.iD)("div",Wn,[(0,u.WI)(e.$slots,"no-event",{},(()=>[(0,u.Uk)((0,p.zw)(l.texts.noEvent),1)]))])):(0,u.kq)("",!0)]))])),event:(0,u.w5)((({event:a,view:i})=>[(0,u.WI)(e.$slots,"event",{view:i,event:a},(()=>[n.editEvents.title&&a.titleEditable?((0,u.wg)(),(0,u.iD)("div",{key:0,class:"vuecal__event-title vuecal__event-title--edit",contenteditable:"contenteditable",onBlur:e=>n.onEventTitleBlur(e,a),innerHTML:a.title},null,40,Sn)):a.title?((0,u.wg)(),(0,u.iD)("div",{key:1,class:"vuecal__event-title",innerHTML:a.title},null,8,Vn)):(0,u.kq)("",!0),!s.time||a.allDay||n.isMonthView&&(a.allDay||"short"===s.showAllDayEvents)||n.isShortMonthView?(0,u.kq)("",!0):((0,u.wg)(),(0,u.iD)("div",On,[(0,u.Uk)((0,p.zw)(l.utils.date.formatTime(a.start,n.TimeFormat)),1),a.endTimeMinutes?((0,u.wg)(),(0,u.iD)("span",zn," - "+(0,p.zw)(l.utils.date.formatTime(a.end,n.TimeFormat,null,!0)),1)):(0,u.kq)("",!0),a.daysCount>1&&(a.segments[t.formattedDate]||{}).isFirstDay?((0,u.wg)(),(0,u.iD)("small",An," +"+(0,p.zw)(a.daysCount-1)+(0,p.zw)((l.texts.day[0]||"").toLowerCase()),1)):(0,u.kq)("",!0)])),!a.content||n.isMonthView&&a.allDay&&"short"===s.showAllDayEvents||n.isShortMonthView?(0,u.kq)("",!0):((0,u.wg)(),(0,u.iD)("div",{key:3,class:"vuecal__event-content",innerHTML:a.content},null,8,Un))]))])),_:2},1032,["options","edit-events","data","cell-width","min-timestamp","max-timestamp","cell-splits"])))),128))],12,$n)],10,Dn)])],2)]))])),_:3},8,["name","appear"]),l.ready?(0,u.kq)("",!0):((0,u.wg)(),(0,u.iD)("div",Zn,Fn))]))],10,hn)}s(30541);let Pn,Ln,Nn,Yn,qn={},Bn={};class Rn{constructor(e,t=!1){(0,Cl.Z)(this,"texts",{}),(0,Cl.Z)(this,"dateToMinutes",(e=>60*e.getHours()+e.getMinutes())),Yn=this,this._texts=e,t||!Date||Date.prototype.addDays||this._initDatePrototypes()}_initDatePrototypes(){Date.prototype.addDays=function(e){return Yn.addDays(this,e)},Date.prototype.subtractDays=function(e){return Yn.subtractDays(this,e)},Date.prototype.addHours=function(e){return Yn.addHours(this,e)},Date.prototype.subtractHours=function(e){return Yn.subtractHours(this,e)},Date.prototype.addMinutes=function(e){return Yn.addMinutes(this,e)},Date.prototype.subtractMinutes=function(e){return Yn.subtractMinutes(this,e)},Date.prototype.getWeek=function(){return Yn.getWeek(this)},Date.prototype.isToday=function(){return Yn.isToday(this)},Date.prototype.isLeapYear=function(){return Yn.isLeapYear(this)},Date.prototype.format=function(e="YYYY-MM-DD"){return Yn.formatDate(this,e)},Date.prototype.formatTime=function(e="HH:mm"){return Yn.formatTime(this,e)}}removePrototypes(){delete Date.prototype.addDays,delete Date.prototype.subtractDays,delete Date.prototype.addHours,delete Date.prototype.subtractHours,delete Date.prototype.addMinutes,delete Date.prototype.subtractMinutes,delete Date.prototype.getWeek,delete Date.prototype.isToday,delete Date.prototype.isLeapYear,delete Date.prototype.format,delete Date.prototype.formatTime}updateTexts(e){this._texts=e}_todayFormatted(){return Ln!==(new Date).getDate()&&(Pn=new Date,Ln=Pn.getDate(),Nn=`${Pn.getFullYear()}-${Pn.getMonth()}-${Pn.getDate()}`),Nn}addDays(e,t){const s=new Date(e.valueOf());return s.setDate(s.getDate()+t),s}subtractDays(e,t){const s=new Date(e.valueOf());return s.setDate(s.getDate()-t),s}addHours(e,t){const s=new Date(e.valueOf());return s.setHours(s.getHours()+t),s}subtractHours(e,t){const s=new Date(e.valueOf());return s.setHours(s.getHours()-t),s}addMinutes(e,t){const s=new Date(e.valueOf());return s.setMinutes(s.getMinutes()+t),s}subtractMinutes(e,t){const s=new Date(e.valueOf());return s.setMinutes(s.getMinutes()-t),s}getWeek(e){const t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate())),s=t.getUTCDay()||7;t.setUTCDate(t.getUTCDate()+4-s);const a=new Date(Date.UTC(t.getUTCFullYear(),0,1));return Math.ceil(((t-a)/864e5+1)/7)}isToday(e){return`${e.getFullYear()}-${e.getMonth()}-${e.getDate()}`===this._todayFormatted()}isLeapYear(e){const t=e.getFullYear();return!(t%400)||t%100&&!(t%4)}getPreviousFirstDayOfWeek(e=null,t){const s=e&&new Date(e.valueOf())||new Date,a=t?7:6;return s.setDate(s.getDate()-(s.getDay()+a)%7),s}stringToDate(e){return e instanceof Date?e:(10===e.length&&(e+=" 00:00"),new Date(e.replace(/-/g,"/")))}countDays(e,t){"string"===typeof e&&(e=e.replace(/-/g,"/")),"string"===typeof t&&(t=t.replace(/-/g,"/")),e=new Date(e).setHours(0,0,0,0),t=new Date(t).setHours(0,0,1,0);const s=60*(new Date(t).getTimezoneOffset()-new Date(e).getTimezoneOffset())*1e3;return Math.ceil((t-e-s)/864e5)}datesInSameTimeStep(e,t,s){return Math.abs(e.getTime()-t.getTime())<=60*s*1e3}formatDate(e,t="YYYY-MM-DD",s=null){if(s||(s=this._texts),t||(t="YYYY-MM-DD"),"YYYY-MM-DD"===t)return this.formatDateLite(e);qn={},Bn={};const a={YYYY:()=>this._hydrateDateObject(e,s).YYYY,YY:()=>this._hydrateDateObject(e,s).YY(),M:()=>this._hydrateDateObject(e,s).M,MM:()=>this._hydrateDateObject(e,s).MM(),MMM:()=>this._hydrateDateObject(e,s).MMM(),MMMM:()=>this._hydrateDateObject(e,s).MMMM(),MMMMG:()=>this._hydrateDateObject(e,s).MMMMG(),D:()=>this._hydrateDateObject(e,s).D,DD:()=>this._hydrateDateObject(e,s).DD(),S:()=>this._hydrateDateObject(e,s).S(),d:()=>this._hydrateDateObject(e,s).d,dd:()=>this._hydrateDateObject(e,s).dd(),ddd:()=>this._hydrateDateObject(e,s).ddd(),dddd:()=>this._hydrateDateObject(e,s).dddd(),HH:()=>this._hydrateTimeObject(e,s).HH,H:()=>this._hydrateTimeObject(e,s).H,hh:()=>this._hydrateTimeObject(e,s).hh,h:()=>this._hydrateTimeObject(e,s).h,am:()=>this._hydrateTimeObject(e,s).am,AM:()=>this._hydrateTimeObject(e,s).AM,mm:()=>this._hydrateTimeObject(e,s).mm,m:()=>this._hydrateTimeObject(e,s).m};return t.replace(/(\{[a-zA-Z]+\}|[a-zA-Z]+)/g,((e,t)=>{const s=a[t.replace(/\{|\}/g,"")];return void 0!==s?s():t}))}formatDateLite(e){const t=e.getMonth()+1,s=e.getDate();return`${e.getFullYear()}-${t<10?"0":""}${t}-${s<10?"0":""}${s}`}formatTime(e,t="HH:mm",s=null,a=!1){let i=!1;if(a){const[t,s,a]=[e.getHours(),e.getMinutes(),e.getSeconds()];t+s+a===141&&(i=!0)}if(e instanceof Date&&"HH:mm"===t)return i?"24:00":this.formatTimeLite(e);Bn={},s||(s=this._texts);const l=this._hydrateTimeObject(e,s),n=t.replace(/(\{[a-zA-Z]+\}|[a-zA-Z]+)/g,((e,t)=>{const s=l[t.replace(/\{|\}/g,"")];return void 0!==s?s:t}));return i?n.replace("23:59","24:00"):n}formatTimeLite(e){const t=e.getHours(),s=e.getMinutes();return`${(t<10?"0":"")+t}:${(s<10?"0":"")+s}`}_nth(e){if(e>3&&e<21)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}}_hydrateDateObject(e,t){if(qn.D)return qn;const s=e.getFullYear(),a=e.getMonth()+1,i=e.getDate(),l=e.getDay(),n=(l-1+7)%7;return qn={YYYY:s,YY:()=>s.toString().substring(2),M:a,MM:()=>(a<10?"0":"")+a,MMM:()=>t.months[a-1].substring(0,3),MMMM:()=>t.months[a-1],MMMMG:()=>(t.monthsGenitive||t.months)[a-1],D:i,DD:()=>(i<10?"0":"")+i,S:()=>this._nth(i),d:n+1,dd:()=>t.weekDays[n][0],ddd:()=>t.weekDays[n].substr(0,3),dddd:()=>t.weekDays[n]},qn}_hydrateTimeObject(e,t){if(Bn.am)return Bn;let s,a;e instanceof Date?(s=e.getHours(),a=e.getMinutes()):(s=Math.floor(e/60),a=Math.floor(e%60));const i=s%12?s%12:12,l=(t||{am:"am",pm:"pm"})[24===s||s<12?"am":"pm"];return Bn={H:s,h:i,HH:(s<10?"0":"")+s,hh:(i<10?"0":"")+i,am:l,AM:l.toUpperCase(),m:a,mm:(a<10?"0":"")+a},Bn}}const Kn=1440;class Jn{constructor(e){(0,Cl.Z)(this,"_vuecal",null),(0,Cl.Z)(this,"selectCell",((e=!1,t,s)=>{this._vuecal.$emit("cell-click",s?{date:t,split:s}:t),this._vuecal.clickToNavigate||e?this._vuecal.switchToNarrowerView():this._vuecal.dblclickToNavigate&&"ontouchstart"in window&&(this._vuecal.domEvents.dblTapACell.taps++,setTimeout((()=>this._vuecal.domEvents.dblTapACell.taps=0),this._vuecal.domEvents.dblTapACell.timeout),this._vuecal.domEvents.dblTapACell.taps>=2&&(this._vuecal.domEvents.dblTapACell.taps=0,this._vuecal.switchToNarrowerView(),this._vuecal.$emit("cell-dblclick",s?{date:t,split:s}:t)))})),(0,Cl.Z)(this,"keyPressEnterCell",((e,t)=>{this._vuecal.$emit("cell-keypress-enter",t?{date:e,split:t}:e),this._vuecal.switchToNarrowerView()})),(0,Cl.Z)(this,"getPosition",(e=>{const{left:t,top:s}=this._vuecal.cellsEl.getBoundingClientRect(),{clientX:a,clientY:i}="ontouchstart"in window&&e.touches?e.touches[0]:e;return{x:a-t,y:i-s}})),(0,Cl.Z)(this,"minutesAtCursor",(e=>{let t=0,s={x:0,y:0};const{timeStep:a,timeCellHeight:i,timeFrom:l}=this._vuecal.$props;return"number"===typeof e?t=e:"object"===typeof e&&(s=this.getPosition(e),t=Math.round(s.y*a/parseInt(i)+l)),{minutes:Math.max(Math.min(t,Kn),0),cursorCoords:s}})),this._vuecal=e}}const Gn=2,Xn=1440;let Qn,eo,to;class so{constructor(e,t){(0,Cl.Z)(this,"_vuecal",null),(0,Cl.Z)(this,"eventDefaults",{_eid:null,start:"",startTimeMinutes:0,end:"",endTimeMinutes:0,title:"",content:"",background:!1,allDay:!1,segments:null,repeat:null,daysCount:1,deletable:!0,deleting:!1,titleEditable:!0,resizable:!0,resizing:!1,draggable:!0,dragging:!1,draggingStatic:!1,focused:!1,class:""}),this._vuecal=e,Qn=t}createAnEvent(e,t,s){if("string"===typeof e&&(e=Qn.stringToDate(e)),!(e instanceof Date))return!1;const a=Qn.dateToMinutes(e);t=1*t||60*Gn;const i=a+t,l=Qn.addMinutes(new Date(e),t);s.end&&("string"===typeof s.end&&(s.end=Qn.stringToDate(s.end)),s.endTimeMinutes=Qn.dateToMinutes(s.end));const n={...this.eventDefaults,_eid:`${this._vuecal._.uid}_${this._vuecal.eventIdIncrement++}`,start:e,startTimeMinutes:a,end:l,endTimeMinutes:i,segments:null,...s};return"function"!==typeof this._vuecal.onEventCreate||this._vuecal.onEventCreate(n,(()=>this.deleteAnEvent(n)))?(n.startDateF!==n.endDateF&&(n.daysCount=Qn.countDays(n.start,n.end)),this._vuecal.mutableEvents.push(n),this._vuecal.addEventsToView([n]),this._vuecal.emitWithEvent("event-create",n),this._vuecal.$emit("event-change",{event:this._vuecal.cleanupEvent(n),originalEvent:null}),n):void 0}addEventSegment(e){e.segments||(e.segments={},e.segments[Qn.formatDateLite(e.start)]={start:e.start,startTimeMinutes:e.startTimeMinutes,endTimeMinutes:Xn,isFirstDay:!0,isLastDay:!1});const t=e.segments[Qn.formatDateLite(e.end)];t&&(t.isLastDay=!1,t.endTimeMinutes=Xn);const s=Qn.addDays(e.end,1),a=Qn.formatDateLite(s);return s.setHours(0,0,0,0),e.segments[a]={start:s,startTimeMinutes:0,endTimeMinutes:e.endTimeMinutes,isFirstDay:!1,isLastDay:!0},e.end=Qn.addMinutes(s,e.endTimeMinutes),e.daysCount=Object.keys(e.segments).length,a}removeEventSegment(e){let t=Object.keys(e.segments).length;if(t<=1)return Qn.formatDateLite(e.end);delete e.segments[Qn.formatDateLite(e.end)],t--;const s=Qn.subtractDays(e.end,1),a=Qn.formatDateLite(s),i=e.segments[a];return t?i&&(i.isLastDay=!0,i.endTimeMinutes=e.endTimeMinutes):e.segments=null,e.daysCount=t||1,e.end=s,a}createEventSegments(e,t,s){const a=t.getTime(),i=s.getTime();let l,n,o,r=e.start.getTime(),d=e.end.getTime(),u=!1;e.end.getHours()||e.end.getMinutes()||(d-=1e3),e.segments={},e.repeat?(l=a,n=Math.min(i,e.repeat.until?Qn.stringToDate(e.repeat.until).getTime():i)):(l=Math.max(a,r),n=Math.min(i,d));while(l<=n){let t=!1;const s=Qn.addDays(new Date(l),1).setHours(0,0,0,0);let a,i,c,m;if(e.repeat){const s=new Date(l),n=Qn.formatDateLite(s);(u||e.occurrences&&e.occurrences[n])&&(u||(r=e.occurrences[n].start,o=new Date(r).setHours(0,0,0,0),d=e.occurrences[n].end),u=!0,t=!0),a=l===o,i=n===Qn.formatDateLite(new Date(d)),c=new Date(a?r:l),m=Qn.formatDateLite(c),i&&(u=!1)}else t=!0,a=l===r,i=n===d&&s>n,c=a?e.start:new Date(l),m=Qn.formatDateLite(a?e.start:c);t&&(e.segments[m]={start:c,startTimeMinutes:a?e.startTimeMinutes:0,endTimeMinutes:i?e.endTimeMinutes:Xn,isFirstDay:a,isLastDay:i}),l=s}return e}deleteAnEvent(e){this._vuecal.emitWithEvent("event-delete",e),this._vuecal.mutableEvents=this._vuecal.mutableEvents.filter((t=>t._eid!==e._eid)),this._vuecal.view.events=this._vuecal.view.events.filter((t=>t._eid!==e._eid))}checkCellOverlappingEvents(e,t){to=e.slice(0),eo={},e.forEach((e=>{to.shift(),eo[e._eid]||(eo[e._eid]={overlaps:[],start:e.start,position:0,sameOverlaps:[]}),eo[e._eid].position=0,to.forEach((s=>{eo[s._eid]||(eo[s._eid]={overlaps:[],start:s.start,position:0,sameOverlaps:[]});const a=this.eventInRange(s,e.start,e.end),i=this.eventSameRange(s,e),l=t.overlapsPerTimeStep?Qn.datesInSameTimeStep(e.start,s.start,t.timeStep):1;if(e.background||e.allDay||s.background||s.allDay||!a||!l){let t,a;(t=(eo[e._eid]||{overlaps:[]}).overlaps.indexOf(s._eid))>-1&&eo[e._eid].overlaps.splice(t,1),(a=(eo[s._eid]||{overlaps:[]}).overlaps.indexOf(e._eid))>-1&&eo[s._eid].overlaps.splice(a,1),eo[s._eid].position--}else eo[e._eid].overlaps.push(s._eid),eo[e._eid].overlaps=[...new Set(eo[e._eid].overlaps)],eo[s._eid].overlaps.push(e._eid),eo[s._eid].overlaps=[...new Set(eo[s._eid].overlaps)],eo[s._eid].position++,i&&(eo[e._eid].sameOverlaps.push(s._eid),eo[e._eid].sameOverlaps=[...new Set(eo[e._eid].sameOverlaps)],eo[s._eid].sameOverlaps.push(e._eid),eo[s._eid].sameOverlaps=[...new Set(eo[s._eid].sameOverlaps)])}))}));let s=0;for(const a in eo){const e=eo[a],t=e.overlaps.map((e=>({id:e,start:eo[e].start})));t.push({id:a,start:e.start}),t.sort(((e,t)=>e.startt.start?1:e.id>t.id?-1:1)),e.position=t.findIndex((e=>e.id===a)),s=Math.max(this.getOverlapsStreak(e,eo),s)}return[eo,s]}getOverlapsStreak(e,t={}){let s=e.overlaps.length+1,a=[];return e.overlaps.forEach((s=>{if(!a.includes(s)){const i=e.overlaps.filter((e=>e!==s));i.forEach((e=>{t[e].overlaps.includes(s)||a.push(e)}))}})),a=[...new Set(a)],s-=a.length,s}eventInRange(e,t,s){if(e.allDay||!this._vuecal.time){const a=new Date(e.start).setHours(0,0,0,0),i=new Date(e.end).setHours(23,59,0,0);return i>=new Date(t).setHours(0,0,0,0)&&a<=new Date(s).setHours(0,0,0,0)}const a=e.start.getTime(),i=e.end.getTime();return at.getTime()}eventSameRange(e,t){const s=e.start.getTime()==t.start.getTime(),a=e.end.getTime()==t.end.getTime();return s&&a}}const ao={class:"vuecal__header"},io={key:0,class:"vuecal__flex vuecal__menu",role:"tablist","aria-label":"Calendar views navigation"},lo=["onDragenter","onDragleave","onClick","aria-label"],no={key:1,class:"vuecal__title-bar"},oo=["aria-label"],ro={class:"vuecal__flex vuecal__title",grow:""},uo=["aria-label"],co={key:0,class:"vuecal__flex vuecal__split-days-headers"};function mo(e,t,s,i,l,n){const o=(0,u.up)("weekdays-headings");return(0,u.wg)(),(0,u.iD)("div",ao,[s.options.hideViewSelector?(0,u.kq)("",!0):((0,u.wg)(),(0,u.iD)("div",io,[((0,u.wg)(!0),(0,u.iD)(u.HY,null,(0,u.Ko)(s.viewProps.views,((t,a)=>((0,u.wg)(),(0,u.iD)(u.HY,{key:a},[t.enabled?((0,u.wg)(),(0,u.iD)("button",{key:0,class:(0,p.C_)(["vuecal__view-btn",{"vuecal__view-btn--active":n.view.id===a,"vuecal__view-btn--highlighted":e.highlightedControl===a}]),type:"button",onDragenter:t=>s.editEvents.drag&&n.dnd&&n.dnd.viewSelectorDragEnter(t,a,e.$data),onDragleave:t=>s.editEvents.drag&&n.dnd&&n.dnd.viewSelectorDragLeave(t,a,e.$data),onClick:e=>n.switchView(a,null,!0),"aria-label":`${t.label} view`},(0,p.zw)(t.label),43,lo)):(0,u.kq)("",!0)],64)))),128))])),s.options.hideTitleBar?(0,u.kq)("",!0):((0,u.wg)(),(0,u.iD)("div",no,[(0,u._)("button",{class:(0,p.C_)(["vuecal__arrow vuecal__arrow--prev",{"vuecal__arrow--highlighted":"previous"===e.highlightedControl}]),type:"button",onClick:t[0]||(t[0]=(...e)=>n.previous&&n.previous(...e)),onDragenter:t[1]||(t[1]=t=>s.editEvents.drag&&n.dnd&&n.dnd.viewSelectorDragEnter(t,"previous",e.$data)),onDragleave:t[2]||(t[2]=t=>s.editEvents.drag&&n.dnd&&n.dnd.viewSelectorDragLeave(t,"previous",e.$data)),"aria-label":`Previous ${n.view.id}`},[(0,u.WI)(e.$slots,"arrow-prev")],42,oo),(0,u._)("div",ro,[(0,u.Wm)(a.uT,{name:s.options.transitions?`slide-fade--${n.transitionDirection}`:""},{default:(0,u.w5)((()=>[((0,u.wg)(),(0,u.j4)((0,u.LL)(n.broaderView?"button":"span"),{type:!!n.broaderView&&"button",key:`${n.view.id}${n.view.startDate.toString()}`,onClick:t[3]||(t[3]=e=>!!n.broaderView&&n.switchToBroaderView()),"aria-label":!!n.broaderView&&`Go to ${n.broaderView} view`},{default:(0,u.w5)((()=>[(0,u.WI)(e.$slots,"title")])),_:3},8,["type","aria-label"]))])),_:3},8,["name"])]),s.options.todayButton?((0,u.wg)(),(0,u.iD)("button",{key:0,class:(0,p.C_)(["vuecal__today-btn",{"vuecal__today-btn--highlighted":"today"===e.highlightedControl}]),type:"button",onClick:t[4]||(t[4]=(...e)=>n.goToToday&&n.goToToday(...e)),onDragenter:t[5]||(t[5]=t=>s.editEvents.drag&&n.dnd&&n.dnd.viewSelectorDragEnter(t,"today",e.$data)),onDragleave:t[6]||(t[6]=t=>s.editEvents.drag&&n.dnd&&n.dnd.viewSelectorDragLeave(t,"today",e.$data)),"aria-label":"Today"},[(0,u.WI)(e.$slots,"today-button")],34)):(0,u.kq)("",!0),(0,u._)("button",{class:(0,p.C_)(["vuecal__arrow vuecal__arrow--next",{"vuecal__arrow--highlighted":"next"===e.highlightedControl}]),type:"button",onClick:t[7]||(t[7]=(...e)=>n.next&&n.next(...e)),onDragenter:t[8]||(t[8]=t=>s.editEvents.drag&&n.dnd&&n.dnd.viewSelectorDragEnter(t,"next",e.$data)),onDragleave:t[9]||(t[9]=t=>s.editEvents.drag&&n.dnd&&n.dnd.viewSelectorDragLeave(t,"next",e.$data)),"aria-label":`Next ${n.view.id}`},[(0,u.WI)(e.$slots,"arrow-next")],42,uo)])),s.viewProps.weekDaysInHeader?((0,u.wg)(),(0,u.j4)(o,{key:2,"week-days":s.weekDays,"transition-direction":n.transitionDirection,"switch-to-narrower-view":s.switchToNarrowerView},(0,u.Nv)({_:2},[e.$slots["weekday-heading"]?{name:"weekday-heading",fn:(0,u.w5)((({heading:t,view:s})=>[(0,u.WI)(e.$slots,"weekday-heading",{heading:t,view:s})])),key:"0"}:void 0,e.$slots["split-label"]?{name:"split-label",fn:(0,u.w5)((({split:t})=>[(0,u.WI)(e.$slots,"split-label",{split:t,view:n.view})])),key:"1"}:void 0]),1032,["week-days","transition-direction","switch-to-narrower-view"])):(0,u.kq)("",!0),(0,u.Wm)(a.uT,{name:`slide-fade--${n.transitionDirection}`},{default:(0,u.w5)((()=>[n.showDaySplits?((0,u.wg)(),(0,u.iD)("div",co,[((0,u.wg)(!0),(0,u.iD)(u.HY,null,(0,u.Ko)(s.daySplits,((t,s)=>((0,u.wg)(),(0,u.iD)("div",{class:(0,p.C_)(["day-split-header",t.class||!1]),key:s},[(0,u.WI)(e.$slots,"split-label",{split:t,view:n.view.id},(()=>[(0,u.Uk)((0,p.zw)(t.label),1)]))],2)))),128))])):(0,u.kq)("",!0)])),_:3},8,["name"])])}const ho={class:"vuecal__flex vuecal__weekdays-headings",ref:"vuecal_weekday_heading"},po=["onClick"],vo={class:"vuecal__flex weekday-label",grow:""},ko={class:"full"},fo={class:"small"},go={class:"xsmall"},wo={key:0},_o={key:0,class:"vuecal__flex vuecal__split-days-headers",grow:""};function yo(e,t,s,i,l,n){return(0,u.wg)(),(0,u.iD)("div",ho,[((0,u.wg)(!0),(0,u.iD)(u.HY,null,(0,u.Ko)(n.headings,((i,l)=>((0,u.wg)(),(0,u.iD)(u.HY,{key:l},[i.hide?(0,u.kq)("",!0):((0,u.wg)(),(0,u.iD)("div",{key:0,class:(0,p.C_)(["vuecal__flex vuecal__heading",{today:i.today,"today-cell":i.today,clickable:n.cellHeadingsClickable,"yesterday-cell":new Date(i.date).toLocaleDateString("sk-SK")==new Date((new Date).setDate((new Date).getDate()-1)).toLocaleDateString("sk-SK")}]),style:(0,p.j5)(n.weekdayCellStyles),onClick:e=>"week"===n.view.id&&n.selectCell(i.date,e),onDblclick:t[0]||(t[0]=e=>"week"===n.view.id&&n.vuecal.dblclickToNavigate&&s.switchToNarrowerView())},[(0,u.Wm)(a.uT,{name:`slide-fade--${s.transitionDirection}`,appear:n.vuecal.transitions},{default:(0,u.w5)((()=>[((0,u.wg)(),(0,u.iD)("div",{class:"vuecal__flex",column:"",key:!!n.vuecal.transitions&&`${l}-${i.dayOfMonth}`},[(0,u._)("div",vo,[(0,u.WI)(e.$slots,"weekday-heading",{heading:n.cleanupHeading(i),view:n.view},(()=>[(0,u._)("span",ko,(0,p.zw)(i.full),1),(0,u._)("span",fo,(0,p.zw)(i.small),1),(0,u._)("span",go,(0,p.zw)(i.xsmall),1),i.dayOfMonth?((0,u.wg)(),(0,u.iD)("span",wo," "+(0,p.zw)(i.dayOfMonth),1)):(0,u.kq)("",!0)]))]),n.vuecal.hasSplits&&n.vuecal.stickySplitLabels?((0,u.wg)(),(0,u.iD)("div",_o,[((0,u.wg)(!0),(0,u.iD)(u.HY,null,(0,u.Ko)(n.vuecal.daySplits,((t,s)=>((0,u.wg)(),(0,u.iD)("div",{class:(0,p.C_)(["day-split-header",t.class||!1]),key:s},[(0,u.WI)(e.$slots,"split-label",{split:t,view:n.view},(()=>[(0,u.Uk)((0,p.zw)(t.label),1)]))],2)))),128))])):(0,u.kq)("",!0)]))])),_:2},1032,["name","appear"])],46,po))],64)))),128))],512)}var bo={inject:["vuecal","utils","view"],props:{transitionDirection:{type:String,default:"right"},weekDays:{type:Array,default:()=>[]},switchToNarrowerView:{type:Function,default:()=>{}},unscheduledTime:{type:Array,default:[]}},methods:{selectCell(e,t){e.getTime()!==this.view.selectedDate.getTime()&&(this.view.selectedDate=e),this.utils.cell.selectCell(!1,e,t)},cleanupHeading:e=>({label:e.full,date:e.date,unscheduledTime:e.unscheduledTime,name:e.name,initials:e.initials,...e.today?{today:e.today}:{}}),onTimelineScroll(e){this.$refs["vuecal_weekday_heading"].style.top=`${e}px`}},computed:{headings(){if(!["month","week"].includes(this.view.id))return[];let e=!1;const t=this.weekDays.map(((t,s)=>{const a=this.utils.date.addDays(this.view.startDate,this.vuecal.startWeekOnSunday?s-1:s);let i=null,l=null,n=null;return this.unscheduledTime[s]?.time&&(i=Math.floor(this.unscheduledTime[s].time/60)+","+String(this.unscheduledTime[s].time%60)[0]),this.unscheduledTime[s]?.name&&this.unscheduledTime[s]?.name&&(l=this.unscheduledTime[s].name+" "+this.unscheduledTime[s].surname,n=this.unscheduledTime[s].name.charAt(0).toUpperCase()+this.unscheduledTime[s].surname.charAt(0).toUpperCase()),{hide:t.hide,full:t.label,small:t.short||t.label.substr(0,3),xsmall:t.short||t.label.substr(0,1),unscheduledTime:i,name:l,initials:n,..."week"===this.view.id?{dayOfMonth:a.getDate(),date:a,today:!e&&this.utils.date.isToday(a)&&!e++}:{}}}));return t},cellWidth(){return 100/(7-this.weekDays.reduce(((e,t)=>e+t.hide),0))},weekdayCellStyles(){return{...this.vuecal.hideWeekdays.length?{width:`${this.cellWidth}%`}:{}}},cellHeadingsClickable(){return"week"===this.view.id&&(this.vuecal.clickToNavigate||this.vuecal.dblclickToNavigate)}}};const Do=(0,M.Z)(bo,[["render",yo]]);var Mo=Do,To={inject:["vuecal","previous","next","switchView","updateSelectedDate","modules","view"],components:{WeekdaysHeadings:Mo},props:{options:{type:Object,default:()=>({})},editEvents:{type:Object,required:!0},hasSplits:{type:[Boolean,Number],default:!1},daySplits:{type:Array,default:()=>[]},viewProps:{type:Object,default:()=>({})},weekDays:{type:Array,default:()=>[]},switchToNarrowerView:{type:Function,default:()=>{}}},data:()=>({highlightedControl:null}),methods:{goToToday(){this.updateSelectedDate(new Date((new Date).setHours(0,0,0,0)))},switchToBroaderView(){this.transitionDirection="left",this.broaderView&&this.switchView(this.broaderView)}},computed:{transitionDirection:{get(){return this.vuecal.transitionDirection},set(e){this.vuecal.transitionDirection=e}},broaderView(){const{enabledViews:e}=this.vuecal;return e[e.indexOf(this.view.id)-1]},showDaySplits(){return"day"===this.view.id&&this.hasSplits&&this.options.stickySplitLabels&&!this.options.minSplitWidth},dnd(){return this.modules.dnd}}};const Co=(0,M.Z)(To,[["render",mo]]);var $o=Co;const jo={key:0,class:"vuecal__all-day-text",style:{width:"3em"}};function Eo(e,t,s,a,i,l){const n=(0,u.up)("vuecal-cell");return(0,u.wg)(),(0,u.iD)("div",{class:"vuecal__flex vuecal__all-day",style:(0,p.j5)(s.cellOrSplitMinWidth&&{height:s.height})},[s.cellOrSplitMinWidth?(0,u.kq)("",!0):((0,u.wg)(),(0,u.iD)("div",jo,[(0,u._)("span",null,(0,p.zw)(s.label),1)])),(0,u._)("div",{class:(0,p.C_)(["vuecal__flex vuecal__cells",`${l.view.id}-view`]),grow:"",style:(0,p.j5)(s.cellOrSplitMinWidth?`min-width: ${s.cellOrSplitMinWidth}px`:"")},[((0,u.wg)(!0),(0,u.iD)(u.HY,null,(0,u.Ko)(s.cells,((t,a)=>((0,u.wg)(),(0,u.j4)(n,{key:a,options:s.options,"edit-events":l.editEvents,data:t,"all-day":!0,"cell-width":s.options.hideWeekdays.length&&(l.vuecal.isWeekView||l.vuecal.isMonthView)&&l.vuecal.cellWidth,"min-timestamp":s.options.minTimestamp,"max-timestamp":s.options.maxTimestamp,"cell-splits":s.daySplits},{event:(0,u.w5)((({event:t,view:s})=>[(0,u.WI)(e.$slots,"event",{view:s,event:t})])),_:2},1032,["options","edit-events","data","cell-width","min-timestamp","max-timestamp","cell-splits"])))),128))],6)],4)}const xo=["data-split","aria-label","onTouchstart","onMousedown","onClick","onDragover","onDrop"],Wo={key:0,class:"cell-time-labels"},So=["innerHTML"],Vo={key:2,class:"vuecal__cell-events"},Oo=["title"];function zo(e,t,s,i,l,n){const o=(0,u.up)("event");return(0,u.wg)(),(0,u.j4)(a.W3,{class:(0,p.C_)(["vuecal__cell",n.cellClasses]),name:`slide-fade--${n.transitionDirection}`,tag:"div",appear:s.options.transitions,style:(0,p.j5)(n.cellStyles)},{default:(0,u.w5)((()=>[((0,u.wg)(!0),(0,u.iD)(u.HY,null,(0,u.Ko)(n.splitsCount?n.splits:1,((i,l)=>((0,u.wg)(),(0,u.iD)("div",{class:(0,p.C_)(["vuecal__flex vuecal__cell-content",n.splitsCount&&n.splitClasses(i)]),key:s.options.transitions?`${n.view.id}-${s.data.content}-${l}`:l,"data-split":!!n.splitsCount&&i.id,column:"",tabindex:"0","aria-label":s.data.content,onFocus:t[0]||(t[0]=e=>n.onCellFocus(e)),onKeypress:t[1]||(t[1]=(0,a.D2)((e=>n.onCellkeyPressEnter(e)),["enter"])),onTouchstart:e=>!n.isDisabled&&n.onCellTouchStart(e,n.splitsCount?i.id:null),onMousedown:e=>!n.isDisabled&&n.onCellMouseDown(e,n.splitsCount?i.id:null),onClick:e=>!n.isDisabled&&n.onCellClick(e,i),onDblclick:t[2]||(t[2]=e=>!n.isDisabled&&n.onCellDblClick(e)),onContextmenu:t[3]||(t[3]=e=>!n.isDisabled&&s.options.cellContextmenu&&n.onCellContextMenu(e)),onDragenter:t[4]||(t[4]=t=>!n.isDisabled&&s.editEvents.drag&&n.dnd&&n.dnd.cellDragEnter(t,e.$data,s.data.startDate)),onDragover:t=>!n.isDisabled&&s.editEvents.drag&&n.dnd&&n.dnd.cellDragOver(t,e.$data,s.data.startDate,n.splitsCount?i.id:null),onDragleave:t[5]||(t[5]=t=>!n.isDisabled&&s.editEvents.drag&&n.dnd&&n.dnd.cellDragLeave(t,e.$data,s.data.startDate)),onDrop:t=>!n.isDisabled&&s.editEvents.drag&&n.dnd&&n.dnd.cellDragDrop(t,e.$data,s.data.startDate,n.splitsCount?i.id:null)},[s.options.showTimeInCells&&s.options.time&&n.isWeekOrDayView&&!s.allDay?((0,u.wg)(),(0,u.iD)("div",Wo,[((0,u.wg)(!0),(0,u.iD)(u.HY,null,(0,u.Ko)(n.vuecal.timeCells,((e,t)=>((0,u.wg)(),(0,u.iD)("span",{class:"cell-time-label",key:t},(0,p.zw)(e.label),1)))),128))])):(0,u.kq)("",!0),n.isWeekOrDayView&&!s.allDay&&n.specialHours.length?((0,u.wg)(!0),(0,u.iD)(u.HY,{key:1},(0,u.Ko)(n.specialHours,((e,t)=>((0,u.wg)(),(0,u.iD)("div",{class:(0,p.C_)(["vuecal__special-hours",`vuecal__special-hours--day${e.day} ${e.class}`]),style:(0,p.j5)(`height: ${e.height}px;top: ${e.top}px`)},[e.label?((0,u.wg)(),(0,u.iD)("div",{key:0,class:"special-hours-label",innerHTML:e.label},null,8,So)):(0,u.kq)("",!0)],6)))),256)):(0,u.kq)("",!0),(0,u.WI)(e.$slots,"cell-content",{events:n.events,selectCell:e=>n.selectCell(e,!0),split:!!n.splitsCount&&i}),n.eventsCount&&(n.isWeekOrDayView||"month"===n.view.id&&s.options.eventsOnMonthView)?((0,u.wg)(),(0,u.iD)("div",Vo,[((0,u.wg)(!0),(0,u.iD)(u.HY,null,(0,u.Ko)(n.splitsCount?i.events:n.events,((t,a)=>((0,u.wg)(),(0,u.j4)(o,{key:a,"cell-formatted-date":s.data.formattedDate,event:t,"all-day":s.allDay,"cell-events":n.splitsCount?i.events:n.events,cellOverlaps:(n.splitsCount?i.overlaps[t._eid]:e.cellOverlaps[t._eid])||[],allOverlaps:(n.splitsCount?i.overlaps:e.cellOverlaps)||[],"event-position":((n.splitsCount?i.overlaps[t._eid]:e.cellOverlaps[t._eid])||[]).position,"overlaps-streak":n.splitsCount?i.overlapsStreak:e.cellOverlapsStreak},{event:(0,u.w5)((({event:t,view:s})=>[(0,u.WI)(e.$slots,"event",{view:s,event:t})])),_:2},1032,["cell-formatted-date","event","all-day","cell-events","cellOverlaps","allOverlaps","event-position","overlaps-streak"])))),128))])):(0,u.kq)("",!0)],42,xo)))),128)),n.timelineVisible?((0,u.wg)(),(0,u.iD)("div",{class:"vuecal__now-line",style:(0,p.j5)(`top: ${n.todaysTimePosition}px`),key:s.options.transitions?`${n.view.id}-now-line`:"now-line",title:n.utils.date.formatTime(n.vuecal.now)},null,12,Oo)):(0,u.kq)("",!0)])),_:3},8,["class","name","appear","style"])}const Ao=["eventId","draggable"];function Uo(e,t,s,i,l,n){return(0,u.wg)(),(0,u.iD)("div",{class:(0,p.C_)(["vuecal__event",n.eventClasses]),style:(0,p.j5)(n.eventStyles),eventId:`event-id-${s.event.id}`,tabindex:"0",onFocus:t[4]||(t[4]=(...e)=>n.focusEvent&&n.focusEvent(...e)),onKeypress:t[5]||(t[5]=(0,a.D2)((0,a.iM)(((...e)=>n.onEnterKeypress&&n.onEnterKeypress(...e)),["stop"]),["enter"])),onMouseenter:t[6]||(t[6]=(...e)=>n.onMouseEnter&&n.onMouseEnter(...e)),onMouseleave:t[7]||(t[7]=(...e)=>n.onMouseLeave&&n.onMouseLeave(...e)),onTouchstart:t[8]||(t[8]=(0,a.iM)(((...e)=>n.onTouchStart&&n.onTouchStart(...e)),["stop"])),onMousedown:t[9]||(t[9]=e=>n.onMouseDown(e)),onMouseup:t[10]||(t[10]=(...e)=>n.onMouseUp&&n.onMouseUp(...e)),onTouchend:t[11]||(t[11]=(...e)=>n.onMouseUp&&n.onMouseUp(...e)),onTouchmove:t[12]||(t[12]=(...e)=>n.onTouchMove&&n.onTouchMove(...e)),onDblclick:t[13]||(t[13]=(...e)=>n.onDblClick&&n.onDblClick(...e)),draggable:n.draggable,onDragstart:t[14]||(t[14]=e=>n.draggable&&n.onDragStart(e)),onDragend:t[15]||(t[15]=e=>n.draggable&&n.onDragEnd())},[n.vuecal.editEvents.delete&&s.event.deletable?((0,u.wg)(),(0,u.iD)("div",{key:0,class:"vuecal__event-delete",onClick:t[0]||(t[0]=(0,a.iM)(((...e)=>n.deleteEvent&&n.deleteEvent(...e)),["stop"])),onTouchstart:t[1]||(t[1]=(0,a.iM)(((...e)=>n.touchDeleteEvent&&n.touchDeleteEvent(...e)),["stop"]))},(0,p.zw)(n.vuecal.texts.deleteEvent),33)):(0,u.kq)("",!0),(0,u.WI)(e.$slots,"event",{event:s.event,view:n.view.id}),n.resizable?((0,u.wg)(),(0,u.iD)("div",{key:1,class:"vuecal__event-resize-handle",contenteditable:"false",onMousedown:t[2]||(t[2]=(0,a.iM)(((...e)=>n.onResizeHandleMouseDown&&n.onResizeHandleMouseDown(...e)),["stop","prevent"])),onTouchstart:t[3]||(t[3]=(0,a.iM)(((...e)=>n.onResizeHandleMouseDown&&n.onResizeHandleMouseDown(...e)),["stop","prevent"]))},null,32)):(0,u.kq)("",!0)],46,Ao)}var Zo={inject:["vuecal","utils","modules","view","domEvents","editEvents"],props:{cellFormattedDate:{type:String,default:""},event:{type:Object,default:()=>({})},cellEvents:{type:Array,default:()=>[]},cellOverlaps:{type:Object,default:()=>({})},allOverlaps:{type:Object,default:()=>({})},eventPosition:{type:Number,default:0},overlapsStreak:{type:Number,default:0},allDay:{type:Boolean,default:!1}},data:()=>({touch:{dragThreshold:30,startX:0,startY:0,dragged:!1}}),methods:{onMouseDown(e,t=!1){if("ontouchstart"in window&&!t)return!1;const{clickHoldAnEvent:s,focusAnEvent:a,resizeAnEvent:i,dragAnEvent:l}=this.domEvents;if(a._eid===this.event._eid&&s._eid===this.event._eid)return!0;this.focusEvent(),s._eid=null,this.vuecal.editEvents.delete&&this.event.deletable&&(s.timeoutId=setTimeout((()=>{i._eid||l._eid||(s._eid=this.event._eid,this.event.deleting=!0)}),s.timeout))},onMouseUp(e){this.domEvents.focusAnEvent._eid!==this.event._eid||this.touch.dragged||(this.domEvents.focusAnEvent.mousedUp=!0),this.touch.dragged=!1},onMouseEnter(e){e.preventDefault(),this.vuecal.emitWithEvent("event-mouse-enter",this.event)},onMouseLeave(e){e.preventDefault(),this.vuecal.emitWithEvent("event-mouse-leave",this.event)},onTouchMove(e){if("function"!==typeof this.vuecal.onEventClick)return;const{clientX:t,clientY:s}=e.touches[0],{startX:a,startY:i,dragThreshold:l}=this.touch;(Math.abs(t-a)>l||Math.abs(s-i)>l)&&(this.touch.dragged=!0)},onTouchStart(e){this.touch.startX=e.touches[0].clientX,this.touch.startY=e.touches[0].clientY,this.onMouseDown(e,!0)},onEnterKeypress(e){if("function"===typeof this.vuecal.onEventClick)return this.vuecal.onEventClick(this.event,e)},onDblClick(e){if("function"===typeof this.vuecal.onEventDblclick)return this.vuecal.onEventDblclick(this.event,e)},onDragStart(e){"blocker"!=this.event.type&&"non-working-hours"!=this.event.type&&(this.event.draggingStatic=!1,this.dnd&&this.dnd.eventDragStart(e,this.event))},onDragEnd(){this.dnd&&this.dnd.eventDragEnd(this.event)},onResizeHandleMouseDown(){this.focusEvent(),this.domEvents.dragAnEvent._eid=null,this.domEvents.resizeAnEvent=Object.assign(this.domEvents.resizeAnEvent,{_eid:this.event._eid,start:(this.segment||this.event).start,split:this.event.split||null,segment:!!this.segment&&this.utils.date.formatDateLite(this.segment.start),originalEnd:new Date((this.segment||this.event).end),originalEndTimeMinutes:this.event.endTimeMinutes}),this.event.resizing=!0},deleteEvent(e=!1){if("ontouchstart"in window&&!e)return!1;this.utils.event.deleteAnEvent(this.event)},touchDeleteEvent(e){this.deleteEvent(!0)},cancelDeleteEvent(){this.event.deleting=!1},focusEvent(){const{focusAnEvent:e}=this.domEvents,t=e._eid;if(t!==this.event._eid){if(t){const e=this.view.events.find((e=>e._eid===t));e&&(e.focused=!1)}this.vuecal.cancelDelete(),this.vuecal.emitWithEvent("event-focus",this.event),e._eid=this.event._eid,this.event.focused=!0}}},computed:{eventDimensions(){const{startTimeMinutes:e,endTimeMinutes:t}=this.segment||this.event;let s=e-this.vuecal.timeFrom;const a=Math.max(Math.round(s*this.vuecal.timeCellHeight/this.vuecal.timeStep),0);s=Math.min(t,this.vuecal.timeTo)-this.vuecal.timeFrom;const i=Math.round(s*this.vuecal.timeCellHeight/this.vuecal.timeStep),l=Math.max(i-a,5);return{top:a,height:l}},eventStyles(){if(this.event.allDay||!this.vuecal.time||!this.event.endTimeMinutes||"month"===this.view.id||this.allDay)return{};let e=100-10*this.eventPosition,t=5*this.eventPosition,s=10*(this.eventPosition+1),a=this.event.master_task_color;if(Array.isArray(this.cellOverlaps.sameOverlaps)&&this.cellOverlaps.sameOverlaps.length){const s=this.cellOverlaps.sameOverlaps.length+1,a=this.cellOverlaps.overlaps.filter((e=>{if(!this.cellOverlaps.sameOverlaps.includes(e)&&this.allOverlaps[this.event._eid].position>this.allOverlaps[e].position)return e}));e=100/s-5,t=100/s*(this.eventPosition-a.length)+5*(this.eventPosition-a.length)/s,a.length&&(e-=a.length*(10/s),t+=5*a.length-10*a.length/s*(this.eventPosition-a.length))}this.vuecal.minEventWidth&&e({})},editEvents:{type:Object,required:!0},data:{type:Object,required:!0},cellSplits:{type:Array,default:()=>[]},minTimestamp:{type:[Number,null],default:null},maxTimestamp:{type:[Number,null],default:null},cellWidth:{type:[Number,Boolean],default:!1},allDay:{type:Boolean,default:!1}},data:()=>({tmUtils:O.Z,cellOverlaps:{},cellOverlapsStreak:1,timeAtCursor:null,highlighted:!1,highlightedSplit:null}),methods:{getSplitAtCursor({target:e}){const t=e.classList.contains("vuecal__cell-split");let s=t?e:this.vuecal.findAncestor(e,"vuecal__cell-split");return s&&(s=s.attributes["data-split"].value,parseInt(s).toString()===s.toString()&&(s=parseInt(s))),s||null},splitClasses(e){return{"vuecal__cell-split":!0,"vuecal__cell-split--highlighted":this.highlightedSplit===e.id,"vuecal__cell-split--weekend":e.isWeekend,[e.class]:!!e.class}},checkCellOverlappingEvents(){this.options.time&&this.eventsCount&&!this.splitsCount&&(1===this.eventsCount?(this.cellOverlaps=[],this.cellOverlapsStreak=1):[this.cellOverlaps,this.cellOverlapsStreak]=this.utils.event.checkCellOverlappingEvents(this.events,this.options))},isDOMElementAnEvent(e){return this.vuecal.isDOMElementAnEvent(e)},selectCell(e,t=!1){const s=this.splitsCount?this.getSplitAtCursor(e):null;this.utils.cell.selectCell(t,this.timeAtCursor,s),this.timeAtCursor=null},onCellkeyPressEnter(e){this.isSelected||this.onCellFocus(e);const t=this.splitsCount?this.getSplitAtCursor(e):null;this.utils.cell.keyPressEnterCell(this.timeAtCursor,t),this.timeAtCursor=null},onCellFocus(e){if(!this.isSelected&&!this.isDisabled){this.isSelected=this.data.startDate;const t=this.splitsCount?this.getSplitAtCursor(e):null,s=this.timeAtCursor||this.data.startDate;this.vuecal.$emit("cell-focus",t?{date:s,split:t}:s)}},onCellMouseDown(e,t=null,s=!1){if("ontouchstart"in window&&!s)return!1;this.isSelected||this.onCellFocus(e);const{clickHoldACell:a,focusAnEvent:i}=this.domEvents;this.domEvents.cancelClickEventCreation=!1,a.eventCreated=!1,this.timeAtCursor=new Date(this.data.startDate);const{minutes:l,cursorCoords:{y:n}}=this.vuecal.minutesAtCursor(e);this.timeAtCursor.setMinutes(l);const o=this.isDOMElementAnEvent(e.target);!o&&i._eid&&((this.view.events.find((e=>e._eid===i._eid))||{}).focused=!1),this.editEvents.create&&!o&&this.setUpEventCreation(e,n)},setUpEventCreation(e,t){if(this.options.dragToCreateEvent&&["week","day"].includes(this.view.id)){const{dragCreateAnEvent:s}=this.domEvents;if(s.startCursorY=t,s.split=this.splitsCount?this.getSplitAtCursor(e):null,s.start=this.timeAtCursor,this.options.snapToTime){let e=60*this.timeAtCursor.getHours()+this.timeAtCursor.getMinutes();const t=e+this.options.snapToTime/2;e=t-t%this.options.snapToTime,s.start.setHours(0,e,0,0)}}else this.options.cellClickHold&&["month","week","day"].includes(this.view.id)&&this.setUpCellHoldTimer(e)},setUpCellHoldTimer(e){const{clickHoldACell:t}=this.domEvents;t.cellId=`${this.vuecal._.uid}_${this.data.formattedDate}`,t.split=this.splitsCount?this.getSplitAtCursor(e):null,t.timeoutId=setTimeout((()=>{if(t.cellId&&!this.domEvents.cancelClickEventCreation){const{_eid:e}=this.utils.event.createAnEvent(this.timeAtCursor,null,t.split?{split:t.split}:{});t.eventCreated=e}}),t.timeout)},onCellTouchStart(e,t=null){this.onCellMouseDown(e,t,!0)},onCellClick(e,t){if(e.offsetY>950&&e.offsetY<1700){const s=t.date;s.setHours(Math.floor(e.offsetY/100),0,0,0);const a=new Date(s);a.setHours(s.getHours()+1);const i=Le()(s).format("HH:mm");this.$events.emit("show-menu-modal",{time:i,date:O.Z.formatDateTimeForBackend(s),employee:this.user.id}),setTimeout((()=>{this.$events.emit("add-timeblock",{id:null,start:O.Z.formatDateTimeForBackend(s),end:O.Z.formatDateTimeForBackend(a)})}),150)}this.isDOMElementAnEvent(e.target)||this.selectCell(e)},onCellDblClick(e){const t=new Date(this.data.startDate);t.setMinutes(this.vuecal.minutesAtCursor(e).minutes);const s=this.splitsCount?this.getSplitAtCursor(e):null;this.vuecal.$emit("cell-dblclick",s?{date:t,split:s}:t),this.options.dblclickToNavigate&&this.vuecal.switchToNarrowerView()},onCellContextMenu(e){e.stopPropagation(),e.preventDefault();const t=new Date(this.data.startDate),{cursorCoords:s,minutes:a}=this.vuecal.minutesAtCursor(e);t.setMinutes(a);const i=this.splitsCount?this.getSplitAtCursor(e):null;this.vuecal.$emit("cell-contextmenu",{date:t,...s,...i||{},e:e})}},computed:{...(0,z.Se)("auth",["user"]),dnd(){return this.modules.dnd},nowInMinutes(){return this.utils.date.dateToMinutes(this.vuecal.now)},isBeforeMinDate(){return null!==this.minTimestamp&&this.minTimestamp>this.data.endDate.getTime()},isAfterMaxDate(){return this.maxTimestamp&&this.maxTimestamp{let{from:t,to:s}=e;return t=Math.max(t,this.options.timeFrom),s=Math.min(s,this.options.timeTo),{...e,height:(s-t)*this.timeScale,top:(t-this.options.timeFrom)*this.timeScale}}))},events(){const{startDate:e,endDate:t}=this.data;let s=[];if(!["years","year"].includes(this.view.id)||this.options.eventsCountOnYearView){if(s=this.view.events.slice(0),"month"===this.view.id&&s.push(...this.view.outOfScopeEvents),s=s.filter((s=>this.utils.event.eventInRange(s,e,t))),this.options.showAllDayEvents&&"month"!==this.view.id&&(s=s.filter((e=>!!e.allDay===this.allDay))),this.options.time&&this.isWeekOrDayView&&!this.allDay){const{timeFrom:e,timeTo:t}=this.options;s=s.filter((s=>{const a=s.daysCount>1&&s.segments[this.data.formattedDate]||{},i=1===s.daysCount&&s.startTimeMinutese,l=s.daysCount>1&&a.startTimeMinutese,n=!1;return s.allDay||i||l||n}))}!this.options.time||!this.isWeekOrDayView||this.options.showAllDayEvents&&this.allDay||s.sort(((e,t)=>e.start{const s=this.events.filter((t=>t.split===e.id)),[a,i]=this.utils.event.checkCellOverlappingEvents(s.filter((e=>!e.background&&!e.allDay)),this.options);return{...e,overlaps:a,overlapsStreak:i,events:s}}))},splitsCount(){return this.splits.length},cellClasses(){return{[this.data.class]:!!this.data.class,"vuecal__cell--current":this.data.current,"vuecal__cell--today":this.data.today,"vuecal__cell--out-of-scope":this.data.outOfScope,"vuecal__cell--before-min":this.isDisabled&&this.isBeforeMinDate,"vuecal__cell--after-max":this.isDisabled&&this.isAfterMaxDate,"vuecal__cell--disabled":this.isDisabled,"vuecal__cell--selected":this.isSelected,"vuecal__cell--highlighted":this.highlighted,"vuecal__cell--has-splits":this.splitsCount,"vuecal__cell--has-events":this.eventsCount}},cellStyles(){return{...this.cellWidth?{width:`${this.cellWidth}%`}:{}}},timelineVisible(){const{time:e,timeTo:t}=this.options;return this.data.today&&this.isWeekOrDayView&&e&&!this.allDay&&this.nowInMinutes<=t},todaysTimePosition(){if(!this.data.today||!this.options.time)return;const e=this.nowInMinutes-this.options.timeFrom;return Math.round(e*this.timeScale)},timeScale(){return this.options.timeCellHeight/this.options.timeStep}}};const Po=(0,M.Z)(Io,[["render",zo]]);var Lo=Po,No={inject:["vuecal","view","editEvents"],components:{"vuecal-cell":Lo},props:{options:{type:Object,required:!0},cells:{type:Array,required:!0},label:{type:String,required:!0},daySplits:{type:Array,default:()=>[]},shortEvents:{type:Boolean,default:!0},height:{type:String,default:""},cellOrSplitMinWidth:{type:Number,default:null}},computed:{hasCellOrSplitWidth(){return!!(this.options.minCellWidth||this.daySplits.length&&this.options.minSplitWidth)}}};const Yo=(0,M.Z)(No,[["render",Eo]]);var qo=Yo,Bo=s(15941);const Ro=1440,Ko={weekDays:Array(7).fill(""),weekDaysShort:[],months:Array(12).fill(""),years:"",year:"",month:"",week:"",day:"",today:"",noEvent:"",allDay:"",deleteEvent:"",createEvent:"",dateFormat:"dddd MMMM D, YYYY",am:"am",pm:"pm"},Jo=["years","year","month","week","day"],Go=new Rn(Ko);var Xo={name:"vue-cal",components:{"vuecal-cell":Lo,"vuecal-header":$o,WeekdaysHeadings:Mo,AllDayBar:qo},provide(){return{vuecal:this,utils:this.utils,modules:this.modules,previous:this.previous,next:this.next,switchView:this.switchView,updateSelectedDate:this.updateSelectedDate,editEvents:this.editEvents,view:this.view,domEvents:this.domEvents}},props:{activeView:{type:String,default:"week"},scrollToHour:{type:Number,default:0},allDayBarHeight:{type:[String,Number],default:"25px"},cellClickHold:{type:Boolean,default:!0},cellContextmenu:{type:Boolean,default:!1},clickToNavigate:{type:Boolean,default:!1},dblclickToNavigate:{type:Boolean,default:!0},disableDatePrototypes:{type:Boolean,default:!1},disableDays:{type:Array,default:()=>[]},disableViews:{type:Array,default:()=>[]},dragToCreateEvent:{type:Boolean,default:!0},dragToCreateThreshold:{type:Number,default:15},editableEvents:{type:[Boolean,Object],default:!1},unscheduledTime:{type:Array,default:[]},events:{type:Array,default:()=>[]},eventsCountOnYearView:{type:Boolean,default:!1},eventsOnMonthView:{type:[Boolean,String],default:!1},hideBody:{type:Boolean,default:!1},hideTitleBar:{type:Boolean,default:!1},hideViewSelector:{type:Boolean,default:!1},hideWeekdays:{type:Array,default:()=>[]},hideWeekends:{type:Boolean,default:!1},locale:{type:[String,Object],default:"en"},maxDate:{type:[String,Date],default:""},minCellWidth:{type:Number,default:0},minDate:{type:[String,Date],default:""},minEventWidth:{type:Number,default:0},minSplitWidth:{type:Number,default:0},onEventClick:{type:[Function,null],default:null},onEventCreate:{type:[Function,null],default:null},onEventDblclick:{type:[Function,null],default:null},overlapsPerTimeStep:{type:Boolean,default:!1},resizeX:{type:Boolean,default:!1},selectedDate:{type:[String,Date],default:""},showAllDayEvents:{type:[Boolean,String],default:!1},showTimeInCells:{type:Boolean,default:!1},showWeekNumbers:{type:[Boolean,String],default:!1},snapToTime:{type:Number,default:0},small:{type:Boolean,default:!1},specialHours:{type:Object,default:()=>({})},splitDays:{type:Array,default:()=>[]},startWeekOnSunday:{type:Boolean,default:!1},stickySplitLabels:{type:Boolean,default:!1},time:{type:Boolean,default:!0},timeCellHeight:{type:Number,default:40},timeFormat:{type:String,default:""},timeFrom:{type:Number,default:0},timeStep:{type:Number,default:60},timeTo:{type:Number,default:Ro},todayButton:{type:Boolean,default:!1},transitions:{type:Boolean,default:!0},twelveHour:{type:Boolean,default:!1},watchRealTime:{type:Boolean,default:!1},xsmall:{type:Boolean,default:!1}},data(){return{ready:!1,texts:{...Ko},utils:{date:!!this.disableDatePrototypes&&Go.removePrototypes()||Go,cell:null,event:null},modules:{dnd:null},cellsEl:null,view:{id:"",title:"",startDate:null,endDate:null,firstCellDate:null,lastCellDate:null,selectedDate:null,events:[]},eventIdIncrement:1,now:new Date,timeTickerIds:[null,null],domEvents:{resizeAnEvent:{_eid:null,start:null,split:null,segment:null,originalEndTimeMinutes:0,originalEnd:null,end:null,startCell:null,endCell:null},dragAnEvent:{_eid:null},dragCreateAnEvent:{startCursorY:null,start:null,split:null,event:null},focusAnEvent:{_eid:null,mousedUp:!1},clickHoldAnEvent:{_eid:null,timeout:1200,timeoutId:null},dblTapACell:{taps:0,timeout:500},clickHoldACell:{cellId:null,split:null,timeout:1200,timeoutId:null,eventCreated:!1},cancelClickEventCreation:!1},mutableEvents:[],transitionDirection:"right"}},methods:{async loadLocale(e){if("object"===typeof this.locale)return this.texts=Object.assign({},Ko,e),void this.utils.date.updateTexts(this.texts);if("en"===this.locale){const e=await s.e(3320).then(s.t.bind(s,3320,19));this.texts=Object.assign({},Ko,e)}else s(66667)(`./${e}.json`).then((e=>{this.texts=Object.assign({},Ko,e.default),this.utils.date.updateTexts(this.texts)}))},loadDragAndDrop(){s.e(1466).then(s.bind(s,91466)).then((e=>{const{DragAndDrop:t}=e;this.modules.dnd=new t(this)})).catch((()=>Bo.warn("Vue Cal: Missing drag & drop module.")))},validateView(e){return Jo.includes(e)||(Bo.error(`Vue Cal: invalid active-view parameter provided: "${e}".\nA valid view must be one of: ${Jo.join(", ")}.`),e="week"),this.enabledViews.includes(e)||(Bo.warn(`Vue Cal: the provided active-view "${e}" is disabled. Using the "${this.enabledViews[0]}" view instead.`),e=this.enabledViews[0]),e},switchToNarrowerView(e=null){this.transitionDirection="right";const t=this.enabledViews[this.enabledViews.indexOf(this.view.id)+1];t&&this.switchView(t,e)},switchView(e,t=null,s=!1){e=this.validateView(e);const a=this.utils.date,i=this.view.startDate&&this.view.startDate.getTime();if(this.transitions&&s){if(this.view.id===e)return;const t=this.enabledViews;this.transitionDirection=t.indexOf(this.view.id)>t.indexOf(e)?"left":"right"}const l=this.view.id;switch(this.view.events=[],this.view.id=e,this.view.firstCellDate=null,this.view.lastCellDate=null,t||(t=this.view.selectedDate||this.view.startDate),e){case"years":this.view.startDate=new Date(25*Math.floor(t.getFullYear()/25)||2e3,0,1),this.view.endDate=new Date(this.view.startDate.getFullYear()+25,0,1),this.view.endDate.setSeconds(-1);break;case"year":this.view.startDate=new Date(t.getFullYear(),0,1),this.view.endDate=new Date(t.getFullYear()+1,0,1),this.view.endDate.setSeconds(-1);break;case"month":{this.view.startDate=new Date(t.getFullYear(),t.getMonth(),1),this.view.endDate=new Date(t.getFullYear(),t.getMonth()+1,1),this.view.endDate.setSeconds(-1);let e=new Date(this.view.startDate);if(e.getDay()!==(this.startWeekOnSunday?0:1)&&(e=a.getPreviousFirstDayOfWeek(e,this.startWeekOnSunday)),this.view.firstCellDate=e,this.view.lastCellDate=a.addDays(e,41),this.view.lastCellDate.setHours(23,59,59,0),this.hideWeekends){if([0,6].includes(this.view.firstCellDate.getDay())){const e=6!==this.view.firstCellDate.getDay()||this.startWeekOnSunday?1:2;this.view.firstCellDate=a.addDays(this.view.firstCellDate,e)}if([0,6].includes(this.view.startDate.getDay())){const e=6===this.view.startDate.getDay()?2:1;this.view.startDate=a.addDays(this.view.startDate,e)}if([0,6].includes(this.view.lastCellDate.getDay())){const e=0!==this.view.lastCellDate.getDay()||this.startWeekOnSunday?1:2;this.view.lastCellDate=a.subtractDays(this.view.lastCellDate,e)}if([0,6].includes(this.view.endDate.getDay())){const e=0===this.view.endDate.getDay()?2:1;this.view.endDate=a.subtractDays(this.view.endDate,e)}}break}case"week":{t=a.getPreviousFirstDayOfWeek(t,this.startWeekOnSunday);const e=this.hideWeekends?5:7;this.view.startDate=this.hideWeekends&&this.startWeekOnSunday?a.addDays(t,1):t,this.view.startDate.setHours(0,0,0,0),this.view.endDate=a.addDays(t,e),this.view.endDate.setSeconds(-1);break}case"day":this.view.startDate=t,this.view.startDate.setHours(0,0,0,0),this.view.endDate=new Date(t),this.view.endDate.setHours(23,59,59,0);break}this.addEventsToView();const n=this.view.startDate&&this.view.startDate.getTime();if((l!==e||n!==i)&&(this.$emit("update:activeView",e),this.ready)){const t=this.view.startDate,s={view:e,startDate:t,endDate:this.view.endDate,...this.isMonthView?{firstCellDate:this.view.firstCellDate,lastCellDate:this.view.lastCellDate,outOfScopeEvents:this.view.outOfScopeEvents.map(this.cleanupEvent)}:{},events:this.view.events.map(this.cleanupEvent),...this.isWeekView?{week:a.getWeek(this.startWeekOnSunday?a.addDays(t,1):t)}:{}};this.$refs["vuecal_scroll"].scrollTop=this.scrollToHour*this.timeCellHeight,this.$emit("view-change",s)}},previous(){this.previousNext(!1)},next(){this.previousNext()},previousNext(e=!0){const t=this.utils.date;this.transitionDirection=e?"right":"left";const s=e?1:-1;let a=null;const{startDate:i,id:l}=this.view;switch(l){case"years":a=new Date(i.getFullYear()+25*s,0,1);break;case"year":a=new Date(i.getFullYear()+1*s,1,1);break;case"month":a=new Date(i.getFullYear(),i.getMonth()+1*s,1);break;case"week":a=t[e?"addDays":"subtractDays"](t.getPreviousFirstDayOfWeek(i,this.startWeekOnSunday),7);break;case"day":a=t[e?"addDays":"subtractDays"](i,1);const l=a.getDay(),n=this.startWeekOnSunday?l:(l||7)-1,o=this.weekDays[n].hide;if(o){const s=this.weekDays.map(((e,t)=>({...e,i:t})));let i=null,l=0;e?(i=[...s.slice(n),...s].find((e=>(l++,!e.hide))).i,l--):i=[...s,...s.slice(0,n)].reverse().find((e=>(l++,!e.hide))).i,a=t[e?"addDays":"subtractDays"](a,l)}break}a&&this.switchView(l,a)},addEventsToView(e=[]){const t=this.utils.event,{startDate:s,endDate:a,firstCellDate:i,lastCellDate:l}=this.view;if(e.length||(this.view.events=[]),e=e.length?e:[...this.mutableEvents],!e||this.isYearsOrYearView&&!this.eventsCountOnYearView)return;let n=e.filter((e=>t.eventInRange(e,s,a)));this.isYearsOrYearView||this.isMonthView&&!this.eventsOnMonthView||(n=n.map((e=>e.daysCount>1?t.createEventSegments(e,i||s,l||a):e))),this.view.events.push(...n),this.isMonthView&&(this.view.outOfScopeEvents=[],e.forEach((e=>{(t.eventInRange(e,i,s)||t.eventInRange(e,a,l))&&(this.view.events.some((t=>t._eid===e._eid))||this.view.outOfScopeEvents.push(e))})))},findAncestor(e,t){while((e=e.parentElement)&&!e.classList.contains(t));return e},isDOMElementAnEvent(e){return e.classList.contains("vuecal__event")||this.findAncestor(e,"vuecal__event")},onMouseMove(e){const{resizeAnEvent:t,dragAnEvent:s,dragCreateAnEvent:a}=this.domEvents;(null!==t._eid||null!==s._eid||a.start)&&(e.preventDefault(),t._eid?this.eventResizing(e):this.dragToCreateEvent&&a.start&&this.eventDragCreation(e))},onMouseUp(e){const{focusAnEvent:t,resizeAnEvent:s,clickHoldAnEvent:a,clickHoldACell:i,dragCreateAnEvent:l}=this.domEvents,{_eid:n}=a,{_eid:o}=s;let r=!1;const{event:d,start:u}=l,c=this.isDOMElementAnEvent(e.target),m=t.mousedUp;if(t.mousedUp=!1,c&&(this.domEvents.cancelClickEventCreation=!0),i.eventCreated)return;if(o){const{originalEnd:e,originalEndTimeMinutes:t,endTimeMinutes:a}=s,i=this.view.events.find((e=>e._eid===s._eid));if(r=a&&a!==t,i&&i.end.getTime()!==e.getTime()){const t=this.mutableEvents.find((e=>e._eid===s._eid));t.endTimeMinutes=i.endTimeMinutes,t.end=i.end;const a=this.cleanupEvent(i),l={...this.cleanupEvent(i),end:e,endTimeMinutes:i.originalEndTimeMinutes};this.$emit("event-duration-change",{event:a,oldDate:s.originalEnd,originalEvent:l}),this.$emit("event-change",{event:a,originalEvent:l})}i&&(i.resizing=!1),s._eid=null,s.start=null,s.split=null,s.segment=null,s.originalEndTimeMinutes=null,s.originalEnd=null,s.endTimeMinutes=null,s.startCell=null,s.endCell=null}else u&&(d&&(this.emitWithEvent("event-drag-create",d),l.event.resizing=!1),l.start=null,l.split=null,l.event=null);c||o||this.unfocusEvent(),a.timeoutId&&!n&&(clearTimeout(a.timeoutId),a.timeoutId=null),i.timeoutId&&(clearTimeout(i.timeoutId),i.timeoutId=null);const h="function"===typeof this.onEventClick;if(m&&!r&&!n&&!d&&h){let s=this.view.events.find((e=>e._eid===t._eid));return!s&&this.isMonthView&&(s=this.view.outOfScopeEvents.find((e=>e._eid===t._eid))),s&&this.onEventClick(s,e)}},onKeyUp(e){27===e.keyCode&&this.cancelDelete()},eventResizing(e){const{resizeAnEvent:t}=this.domEvents,s=this.view.events.find((e=>e._eid===t._eid))||{segments:{}},{minutes:a,cursorCoords:i}=this.minutesAtCursor(e),l=s.segments&&s.segments[t.segment],{date:n,event:o}=this.utils,r=Math.max(a,this.timeFrom+1,(l||s).startTimeMinutes+1);if(s.endTimeMinutes=t.endTimeMinutes=r,this.snapToTime){const e=s.endTimeMinutes+this.snapToTime/2;s.endTimeMinutes=e-e%this.snapToTime}if(l&&(l.endTimeMinutes=s.endTimeMinutes),s.end.setHours(0,s.endTimeMinutes,s.endTimeMinutes===Ro?-1:0,0),this.resizeX&&this.isWeekView){s.daysCount=n.countDays(s.start,s.end);const e=this.cellsEl,a=e.offsetWidth/e.childElementCount,l=Math.floor(i.x/a);if(null===t.startCell&&(t.startCell=l-(s.daysCount-1)),t.endCell!==l){t.endCell=l;const e=n.addDays(s.start,l-t.startCell),a=Math.max(n.countDays(s.start,e),1);if(a!==s.daysCount){let e=null;e=a>s.daysCount?o.addEventSegment(s):o.removeEventSegment(s),t.segment=e,s.endTimeMinutes+=.001}}}this.$emit("event-resizing",{_eid:s._eid,end:s.end,endTimeMinutes:s.endTimeMinutes})},eventDragCreation(e){const{dragCreateAnEvent:t}=this.domEvents,{start:s,startCursorY:a,split:i}=t,l=new Date(s),{minutes:n,cursorCoords:{y:o}}=this.minutesAtCursor(e);if(t.event||!(Math.abs(a-o)s._eid===(e._eid||t._eid)));e._eid=null,t._eid=null,s&&(s.focused=!1,s.deleting=!1)},cancelDelete(){const{clickHoldAnEvent:e}=this.domEvents;if(e._eid){const t=this.view.events.find((t=>t._eid===e._eid));t&&(t.deleting=!1),e._eid=null,e.timeoutId=null}},onEventTitleBlur(e,t){if(t.title===e.target.innerHTML)return;const s=t.title;t.title=e.target.innerHTML;const a=this.cleanupEvent(t);this.$emit("event-title-change",{event:a,oldTitle:s}),this.$emit("event-change",{event:a,originalEvent:{...a,title:s}})},updateMutableEvents(){const e=this.utils.date;this.mutableEvents=[],this.events.forEach((t=>{const s="string"===typeof t.start?e.stringToDate(t.start):t.start,a=e.formatDateLite(s),i=e.dateToMinutes(s);let l=null;"string"===typeof t.end&&t.end.includes("24:00")?(l=new Date(t.end.replace(" 24:00","")),l.setHours(23,59,59,0)):l="string"===typeof t.end?e.stringToDate(t.end):t.end;let n=e.formatDateLite(l),o=e.dateToMinutes(l);o&&o!==Ro||(!this.time||"string"===typeof t.end&&10===t.end.length?l.setHours(23,59,59,0):l.setSeconds(l.getSeconds()-1),n=e.formatDateLite(l),o=Ro);const r=a!==n;t=Object.assign({...this.utils.event.eventDefaults},t,{_eid:`${this._.uid}_${this.eventIdIncrement++}`,segments:r?{}:null,start:s,startTimeMinutes:i,end:l,endTimeMinutes:o,daysCount:r?e.countDays(s,l):1,class:t.class}),this.mutableEvents.push(t)}))},minutesAtCursor(e){return this.utils.cell.minutesAtCursor(e)},createEvent(e,t,s={}){return this.utils.event.createAnEvent(e,t,s)},cleanupEvent(e){e={...e};const t=["segments","deletable","deleting","titleEditable","resizable","resizing","draggable","dragging","draggingStatic","focused"];return t.forEach((t=>{t in e&&delete e[t]})),e.repeat||delete e.repeat,e},emitWithEvent(e,t){this.$emit(e,this.cleanupEvent(t))},updateSelectedDate(e){if(e=e&&"string"===typeof e?this.utils.date.stringToDate(e):new Date(e),e&&e instanceof Date){const{selectedDate:t}=this.view;t&&(this.transitionDirection=t.getTime()>e.getTime()?"left":"right"),e.setHours(0,0,0,0),t&&t.getTime()===e.getTime()||(this.view.selectedDate=e),this.switchView(this.view.id)}this.$emit("update:selected-date",this.view.selectedDate)},getWeekNumber(e){const t=this.utils.date,s=this.firstCellDateWeekNumber,a=s+e,i=this.startWeekOnSunday?1:0;return a>52?t.getWeek(t.addDays(this.view.firstCellDate,7*e+i)):a},timeTick(){this.now=new Date,this.timeTickerIds[1]=setTimeout(this.timeTick,6e4)},updateDateTexts(){this.utils.date.updateTexts(this.texts)},alignWithScrollbar(){},cellOrSplitHasEvents(e,t=null){return e.length&&(!t&&e.length||t&&e.some((e=>e.split===t.id)))}},created(){this.utils.cell=new Jn(this),this.utils.event=new so(this,this.utils.date),this.loadLocale(this.locale),this.editEvents.drag&&this.loadDragAndDrop(),this.updateMutableEvents(this.events),this.view.id=this.currentView,this.selectedDate?this.updateSelectedDate(this.selectedDate):(this.view.selectedDate=new Date,this.switchView(this.currentView)),this.time&&this.watchRealTime&&(this.timeTickerIds[0]=setTimeout(this.timeTick,1e3*(60-this.now.getSeconds())))},mounted(){const e=this.utils.date,t="ontouchstart"in window,{resize:s,drag:a,create:i,delete:l,title:n}=this.editEvents,o=this.onEventClick&&"function"===typeof this.onEventClick;(s||a||i||l||n||o)&&window.addEventListener(t?"touchend":"mouseup",this.onMouseUp),(s||a||i&&this.dragToCreateEvent)&&window.addEventListener(t?"touchmove":"mousemove",this.onMouseMove,{passive:!1}),n&&window.addEventListener("keyup",this.onKeyUp),t&&(this.$refs.vuecal.oncontextmenu=function(e){e.preventDefault(),e.stopPropagation()});const r=this.view.startDate,d={view:this.view.id,startDate:r,endDate:this.view.endDate,...this.isMonthView?{firstCellDate:this.view.firstCellDate,lastCellDate:this.view.lastCellDate}:{},events:this.view.events.map(this.cleanupEvent),...this.isWeekView?{week:e.getWeek(this.startWeekOnSunday?e.addDays(r,1):r)}:{}};this.$refs["vuecal_scroll"].addEventListener("scroll",(()=>{this.$refs["vuecal_splits_heading"].style.top=`${this.$refs["vuecal_scroll"].scrollTop}px`})),this.viewportTimelineOffset=this.$refs["vuecal_scroll"].getBoundingClientRect().top,this.$refs["vuecal_scroll"].scrollTop=this.scrollToHour*this.timeCellHeight,this.$emit("ready",d),this.ready=!0},beforeUnmount(){const e="ontouchstart"in window;window.removeEventListener(e?"touchmove":"mousemove",this.onMouseMove,{passive:!1}),window.removeEventListener(e?"touchend":"mouseup",this.onMouseUp),window.removeEventListener("keyup",this.onKeyUp),this.timeTickerIds[0]&&clearTimeout(this.timeTickerIds[0]),this.timeTickerIds[1]&&clearTimeout(this.timeTickerIds[1]),this.timeTickerIds=[null,null]},computed:{editEvents(){return this.editableEvents&&"object"===typeof this.editableEvents?{title:!!this.editableEvents.title,drag:!!this.editableEvents.drag,resize:!!this.editableEvents.resize,create:!!this.editableEvents.create,delete:!!this.editableEvents.delete}:{title:!!this.editableEvents,drag:!!this.editableEvents,resize:!!this.editableEvents,create:!!this.editableEvents,delete:!!this.editableEvents}},views(){return{years:{label:this.texts.years,enabled:!this.disableViews.includes("years")},year:{label:this.texts.year,enabled:!this.disableViews.includes("year")},month:{label:this.texts.month,enabled:!this.disableViews.includes("month")},week:{label:this.texts.week,enabled:!this.disableViews.includes("week")},day:{label:this.texts.day,enabled:!this.disableViews.includes("day")}}},currentView(){return this.validateView(this.activeView)},enabledViews(){return Object.keys(this.views).filter((e=>this.views[e].enabled))},hasTimeColumn(){return this.time&&this.isWeekOrDayView},isShortMonthView(){return this.isMonthView&&"short"===this.eventsOnMonthView},firstCellDateWeekNumber(){const e=this.utils.date,t=this.view.firstCellDate;return e.getWeek(this.startWeekOnSunday?e.addDays(t,1):t)},timeCells(){const e=[];for(let t=this.timeFrom,s=this.timeTo;t!e.hide))||[]).map(((e,t)=>({...e,id:e.id||t+1})))},hasSplits(){return this.daySplits.length&&this.isWeekOrDayView},hasShortEvents(){return"short"===this.showAllDayEvents},cellOrSplitMinWidth(){let e=null;return this.hasSplits&&this.minSplitWidth?e=this.visibleDaysCount*this.minSplitWidth*this.daySplits.length:this.minCellWidth&&this.isWeekView&&(e=this.visibleDaysCount*this.minCellWidth),e},allDayBar(){let e=this.allDayBarHeight||null;return e&&!isNaN(e)&&(e+="px"),{cells:this.viewCells,options:this.$props,label:this.texts.allDay,shortEvents:this.hasShortEvents,daySplits:this.hasSplits&&this.daySplits||[],cellOrSplitMinWidth:this.cellOrSplitMinWidth,height:e}},minTimestamp(){let e=null;return this.minDate&&"string"===typeof this.minDate?e=this.utils.date.stringToDate(this.minDate):this.minDate&&this.minDate instanceof Date&&(e=this.minDate),e?e.getTime():null},maxTimestamp(){let e=null;return this.maxDate&&"string"===typeof this.maxDate?e=this.utils.date.stringToDate(this.maxDate):this.maxDate&&this.minDate instanceof Date&&(e=this.maxDate),e?e.getTime():null},weekDays(){let{weekDays:e,weekDaysShort:t=[]}=this.texts;return e=e.slice(0).map(((e,s)=>({label:e,...t.length?{short:t[s]}:{},hide:this.hideWeekends&&s>=5||this.hideWeekdays.length&&this.hideWeekdays.includes(s+1)}))),this.startWeekOnSunday&&e.unshift(e.pop()),e},weekDaysInHeader(){return this.isMonthView||this.isWeekView&&!this.minCellWidth&&!(this.hasSplits&&this.minSplitWidth)},months(){return this.texts.months.map((e=>({label:e})))},specialDayHours(){return this.specialHours&&Object.keys(this.specialHours).length?Array(7).fill("").map(((e,t)=>{let s=this.specialHours[t+1]||[];return Array.isArray(s)||(s=[s]),e=[],s.forEach((({from:s,to:a,class:i,label:l},n)=>{e[n]={day:t+1,from:[null,void 0].includes(s)?null:1*s,to:[null,void 0].includes(a)?null:1*a,class:i||"",label:l||""}})),e})):{}},viewTitle(){const e=this.utils.date;let t="";const s=this.view.startDate,a=s.getFullYear(),i=s.getMonth();switch(this.view.id){case"years":t=this.texts.years;break;case"year":t=a;break;case"month":t=`${this.months[i].label} ${a}`;break;case"week":{const a=this.view.endDate,i=s.getFullYear();let l=this.texts.months[s.getMonth()];this.xsmall&&(l=l.substring(0,3));let n=`${l} ${i}`;if(a.getMonth()!==s.getMonth()){const e=a.getFullYear();let t=this.texts.months[a.getMonth()];this.xsmall&&(t=t.substring(0,3)),n=i===e?`${l} - ${t} ${i}`:this.small?`${l.substring(0,3)} ${i} - ${t.substring(0,3)} ${e}`:`${l} ${i} - ${t} ${e}`}t=`${this.texts.week} ${e.getWeek(this.startWeekOnSunday?e.addDays(s,1):s)} (${n})`;break}case"day":t=this.utils.date.formatDate(s,this.texts.dateFormat,this.texts);break}return t},viewCells(){const e=this.utils.date;let t=[],s=null,a=!1;this.watchRealTime||(this.now=new Date);const i=this.now;switch(this.view.id){case"years":s=this.view.startDate.getFullYear(),t=Array.apply(null,Array(25)).map(((t,a)=>{const l=new Date(s+a,0,1),n=new Date(s+a+1,0,1);return n.setSeconds(-1),{startDate:l,formattedDate:e.formatDateLite(l),endDate:n,content:s+a,current:s+a===i.getFullYear()}}));break;case"year":s=this.view.startDate.getFullYear(),t=Array.apply(null,Array(12)).map(((t,a)=>{const l=new Date(s,a,1),n=new Date(s,a+1,1);return n.setSeconds(-1),{startDate:l,formattedDate:e.formatDateLite(l),endDate:n,content:this.xsmall?this.months[a].label.substr(0,3):this.months[a].label,current:a===i.getMonth()&&s===i.getFullYear()}}));break;case"month":{const s=this.view.startDate.getMonth(),i=new Date(this.view.firstCellDate);a=!1,t=Array.apply(null,Array(42)).map(((t,l)=>{const n=e.addDays(i,l),o=new Date(n);o.setHours(23,59,59,0);const r=!a&&e.isToday(n)&&!a++;return{startDate:n,formattedDate:e.formatDateLite(n),endDate:o,content:n.getDate(),today:r,outOfScope:n.getMonth()!==s,class:`vuecal__cell--day${n.getDay()||7}`}})),(this.hideWeekends||this.hideWeekdays.length)&&(t=t.filter((e=>{const t=e.startDate.getDay()||7;return!(this.hideWeekends&&t>=6||this.hideWeekdays.length&&this.hideWeekdays.includes(t))})));break}case"week":{a=!1;let s=this.view.startDate;const i=this.weekDays;t=i.map(((t,i)=>{const l=e.addDays(s,this.startWeekOnSunday?i-1:i),n=new Date(l);n.setHours(23,59,59,0);const o=(l.getDay()||7)-1;return{startDate:l,formattedDate:e.formatDateLite(l),endDate:n,today:!a&&e.isToday(l)&&!a++,specialHours:this.specialDayHours[o]||[]}})).filter(((e,t)=>!i[t].hide));break}case"day":{const s=this.view.startDate,a=new Date(this.view.startDate);a.setHours(23,59,59,0);const i=(s.getDay()||7)-1;t=[{startDate:s,formattedDate:e.formatDateLite(s),endDate:a,today:e.isToday(s),specialHours:this.specialDayHours[i]||[]}];break}}return t},visibleDaysCount(){return this.isDayView?1:7-this.weekDays.reduce(((e,t)=>e+t.hide),0)},cellWidth(){return 100/this.visibleDaysCount},cssClasses(){const{resizeAnEvent:e,dragAnEvent:t,dragCreateAnEvent:s}=this.domEvents;return{[`vuecal--${this.view.id}-view`]:!0,[`vuecal--${this.locale}`]:this.locale,"vuecal--no-time":!this.time,"vuecal--view-with-time":this.hasTimeColumn,"vuecal--week-numbers":this.showWeekNumbers&&this.isMonthView,"vuecal--twelve-hour":this.twelveHour,"vuecal--click-to-navigate":this.clickToNavigate,"vuecal--hide-weekends":this.hideWeekends,"vuecal--split-days":this.hasSplits,"vuecal--sticky-split-labels":this.hasSplits&&this.stickySplitLabels,"vuecal--overflow-x":this.minCellWidth&&this.isWeekView||this.hasSplits&&this.minSplitWidth,"vuecal--small":this.small,"vuecal--xsmall":this.xsmall,"vuecal--resizing-event":e._eid,"vuecal--drag-creating-event":s.event,"vuecal--dragging-event":t._eid,"vuecal--events-on-month-view":this.eventsOnMonthView,"vuecal--short-events":this.isMonthView&&"short"===this.eventsOnMonthView,"vuecal--has-touch":"undefined"!==typeof window&&"ontouchstart"in window}},isYearsOrYearView(){return["years","year"].includes(this.view.id)},isYearsView(){return"years"===this.view.id},isYearView(){return"year"===this.view.id},isMonthView(){return"month"===this.view.id},isWeekOrDayView(){return["week","day"].includes(this.view.id)},isWeekView(){return"week"===this.view.id},isDayView(){return"day"===this.view.id}},watch:{events:{handler(e,t){this.updateMutableEvents(e),this.addEventsToView()},deep:!0},locale(e){this.loadLocale(e)},selectedDate(e){this.updateSelectedDate(e)},activeView(e){this.switchView(e)}}};const Qo=(0,M.Z)(Xo,[["render",In]]);var er=Qo,tr={install:e=>{e.component("Vue-cal",er)}};s(48851),s(1292),s(81633),s(51045),s(46187),s(22299),s(93423),s(54687),s(49147),s(6250);l();const sr={axios:{disabled:!0},i18n:{languages:[{title:"Slovenský",flag:"sk",value:"sk"}],defaultLanguage:"sk"},moxios:{routes:{"GET v1/overview/teams":!0,"GET v1/overview/tasks":!0}}},ar=(0,a.ri)(kl).use(yl).use(gl).use(un).use(nn,sr).use(i.oX).use(o).use(tr).use(mn).use(d(),{color:"#6200EE"}).mount("#app"),ir=ar.$i18n.t},7648:function(e,t,s){"use strict";var a=s(56847);t["Z"]={parseErrors(e){return Object.values(e).map((e=>(0,a.$t)(e?.$message))).join(". ")}}},83299:function(e,t){"use strict";t["Z"]={methods:{customFilter(e,t){const s=e.normalize("NFD").replace(/[\u0300-\u036f]/g,""),a=t.normalize("NFD").replace(/[\u0300-\u036f]/g,""),i=/[^a-zA-Z0-9 ]/g,l=s.replace(i,""),n=a.replace(i,"");return l.toLowerCase().includes(n.toLowerCase())||""===e}}}},34407:function(e,t,s){"use strict";var a=s(36797),i=s.n(a);t["Z"]={enrichEmployees(e){return e.map((e=>({...e,_fullName:`${e.name} ${e.surname}`,_initials:e.name.charAt(0)+e.surname.charAt(0)})))},formatDateTime(e){return i()(e),i()(e).format("DD.MM.yyyy, HH:mm")},formatDateTimeForBackend(e){return i()(e).format("YYYY-MM-DD HH:mm:ss")},formatDate(e){return i()(e).format("DD.MM.yyyy")},isBefore(e,t=null){return i()(e).isBefore(i()(t))},isAfter(e,t=i()()){return i()(e).isAfter(i()(t))}}},8973:function(e,t,s){var a={"./en.json":20790,"./sk.json":71941};function i(e){var t=l(e);return s(t)}function l(e){if(!s.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}i.keys=function(){return Object.keys(a)},i.resolve=l,e.exports=i,i.id=8973},66667:function(e,t,s){var a={"./ar.json":[68568,8568],"./bg.json":[20684,684],"./bn.json":[61170,1170],"./bs.json":[41161,1161],"./ca.json":[40612,612],"./cs.json":[50213,213],"./da.json":[98542,8542],"./de.json":[4701,4701],"./el.json":[20453,453],"./en.json":[3320,3320],"./es.json":[60076,76],"./et.json":[44075,4075],"./fa.json":[69004,9004],"./fr.json":[60007,7],"./he.json":[23746,3746],"./hr.json":[92921,2921],"./hu.json":[75723,5723],"./id.json":[12502,2502],"./is.json":[13214,3214],"./it.json":[51380,1380],"./ja.json":[72484,2484],"./ka.json":[60285,285],"./ko.json":[79249,9249],"./lt.json":[42838,2838],"./mn.json":[6177,6177],"./nl.json":[99729,9729],"./no.json":[49409,9409],"./pl.json":[25409,5409],"./pt-br.json":[74529,4529],"./ro.json":[29715,9715],"./ru.json":[32113,2113],"./sk.json":[30229,229],"./sl.json":[28636,8636],"./sq.json":[204,204],"./sr.json":[55553,5553],"./sv.json":[75979,5979],"./tr.json":[5268,5268],"./uk.json":[14057,4057],"./vi.json":[88929,8929],"./zh-cn.json":[56730,6730],"./zh-hk.json":[30841,841]};function i(e){if(!s.o(a,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=a[e],i=t[0];return s.e(t[1]).then((function(){return s.t(i,19)}))}i.keys=function(){return Object.keys(a)},i.id=66667,e.exports=i},27484:function(e,t,s){"use strict";e.exports=s.p+"img/bin.8778f5be.svg"},53830:function(e,t,s){"use strict";e.exports=s.p+"img/checkmark.76754510.svg"},34413:function(e,t,s){"use strict";e.exports=s.p+"img/eye.6d5fa7d3.svg"},60666:function(e,t,s){"use strict";e.exports=s.p+"img/pencil.b9009162.svg"},14214:function(e,t,s){"use strict";e.exports=s.p+"img/spinner.34fd3cb2.gif"},20790:function(e){"use strict";e.exports=JSON.parse('{"Value is not a valid email address":"Value is not a valid email address","error":"chyba","Value is required":"Pole je povinné","This field should be at least 8 characters long":"Pole musí obsahovať aspoň 8 znakov","This field should be at least 6 characters long":"Pole musí obsahovať aspoň 6 znakov","This maximum length allowed is 6":"Pole musí obsahovať 6 znakov","The value must be equal to the other value":"Heslá sa nezhodujú"}')},71941:function(e){"use strict";e.exports=JSON.parse('{"Value is not a valid email address":"Zadali ste neplatný email","error":"chyba","Value is required":"Pole je povinné","This field should be at least 8 characters long":"Pole musí obsahovať aspoň 8 znakov","This field should be at least 6 characters long":"Pole musí obsahovať aspoň 6 znakov","This maximum length allowed is 6":"Pole musí obsahovať 6 znakov","The value must be equal to the other value":"Heslá sa nezhodujú"}')}},t={};function s(a){var i=t[a];if(void 0!==i)return i.exports;var l=t[a]={id:a,loaded:!1,exports:{}};return e[a].call(l.exports,l,l.exports,s),l.loaded=!0,l.exports}s.m=e,function(){var e=[];s.O=function(t,a,i,l){if(!a){var n=1/0;for(u=0;u=l)&&Object.keys(s.O).every((function(e){return s.O[e](a[r])}))?a.splice(r--,1):(o=!1,l0&&e[u-1][2]>l;u--)e[u]=e[u-1];e[u]=[a,i,l]}}(),function(){s.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return s.d(t,{a:t}),t}}(),function(){var e,t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__};s.t=function(a,i){if(1&i&&(a=this(a)),8&i)return a;if("object"===typeof a&&a){if(4&i&&a.__esModule)return a;if(16&i&&"function"===typeof a.then)return a}var l=Object.create(null);s.r(l);var n={};e=e||[null,t({}),t([]),t(t)];for(var o=2&i&&a;"object"==typeof o&&!~e.indexOf(o);o=t(o))Object.getOwnPropertyNames(o).forEach((function(e){n[e]=function(){return a[e]}}));return n["default"]=function(){return a},s.d(l,n),l}}(),function(){s.d=function(e,t){for(var a in t)s.o(t,a)&&!s.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})}}(),function(){s.f={},s.e=function(e){return Promise.all(Object.keys(s.f).reduce((function(t,a){return s.f[a](e,t),t}),[]))}}(),function(){s.u=function(e){return"js/"+e+"."+{7:"7cef58a7",76:"9977e9df",188:"5e35d228",204:"4dd3d03d",213:"c9ed5252",229:"b09f2145",285:"6a0985b5",453:"04d72c77",612:"4ea201aa",684:"017ebeb8",702:"a81b006f",841:"65cae984",1161:"59a7c68b",1170:"16217940",1380:"fc40de11",1466:"92176aab",1474:"298559eb",2113:"2a1bcdfa",2484:"6def3002",2502:"66addef9",2682:"450e8cc1",2838:"aa69ee5c",2891:"34d8f387",2921:"b5aad8e9",3214:"72d306e7",3311:"bcab8a66",3320:"fe7033d0",3657:"e558064c",3728:"3e558208",3746:"09ee0424",4057:"4b3b38fd",4060:"57ab5ec4",4075:"2d83f71e",4481:"578b8c0f",4529:"6ff3334b",4701:"e34c277a",5268:"5d463fbd",5409:"4ce439c3",5475:"03838edb",5553:"032fcbe7",5723:"09853a5d",5728:"07cf4ea4",5867:"61e23b49",5979:"385e1b41",6177:"12db94aa",6730:"61289e01",6811:"83d9b8d2",7073:"dc374d33",7343:"1e290ed5",7496:"0ed543b2",7637:"fdf639b1",8024:"bb377405",8520:"cb7009ea",8542:"09badcc3",8568:"7f0dfd32",8636:"2a90cf11",8731:"8acb20fc",8929:"ea6da50f",8990:"6dd37151",9004:"ffe04245",9249:"d2b0f88c",9409:"339f5afb",9715:"21ca1afa",9729:"812aea5b",9983:"657ab52d"}[e]+".js"}}(),function(){s.miniCssF=function(e){return"css/"+e+"."+{188:"37c2c58b",1474:"bc127aa4",2682:"c32340b5",2891:"e49646e6",4060:"75a1fa96",4481:"8c582369",5475:"970342c8",6811:"7fe02c8d",7073:"3978ef96",7496:"1e01c869",9983:"8667b7b1"}[e]+".css"}}(),function(){s.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){var e={},t="jandl:";s.l=function(a,i,l,n){if(e[a])e[a].push(i);else{var o,r;if(void 0!==l)for(var d=document.getElementsByTagName("script"),u=0;u\n\t\n\t\t\n\t\t\t\n\t\t\n\t\n\n\t\n\t\n\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\n\t\n\t\n\t\n\n\n","\n\n","export default {\n\tmounted() {\n\t\twindow.addEventListener('keydown', this.handleKeyDown)\n\t},\n\n\tmethods: {\n\t\thandleKeyDown(event) {\n\t\t\t// if (event.keyCode === 27) this.closeModal()\n\t\t\tif (event.keyCode === 27) this.visible = false\n\t\t}\n\t},\n}","import { render } from \"./z-delete-team-modal.vue?vue&type=template&id=4fe4585a\"\nimport script from \"./z-delete-team-modal.vue?vue&type=script&lang=js\"\nexport * from \"./z-delete-team-modal.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n","import { render } from \"./z-team-modal.vue?vue&type=template&id=53686613\"\nimport script from \"./z-team-modal.vue?vue&type=script&lang=js\"\nexport * from \"./z-team-modal.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n","import { render } from \"./z-delete-task-modal.vue?vue&type=template&id=60f87e7a\"\nimport script from \"./z-delete-task-modal.vue?vue&type=script&lang=js\"\nexport * from \"./z-delete-task-modal.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n","import { render } from \"./z-delete-timeblock-modal.vue?vue&type=template&id=d2c490ee&scoped=true\"\nimport script from \"./z-delete-timeblock-modal.vue?vue&type=script&lang=js\"\nexport * from \"./z-delete-timeblock-modal.vue?vue&type=script&lang=js\"\n\nimport \"./z-delete-timeblock-modal.vue?vue&type=style&index=0&id=d2c490ee&lang=sass&scoped=true\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-d2c490ee\"]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n","import { render } from \"./z-files-upload.vue?vue&type=template&id=29172155&scoped=true\"\nimport script from \"./z-files-upload.vue?vue&type=script&lang=js\"\nexport * from \"./z-files-upload.vue?vue&type=script&lang=js\"\n\nimport \"./z-files-upload.vue?vue&type=style&index=0&id=29172155&lang=sass&scoped=true\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-29172155\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./a-task-timeblocks.vue?vue&type=template&id=2d100a43\"\nimport script from \"./a-task-timeblocks.vue?vue&type=script&lang=js\"\nexport * from \"./a-task-timeblocks.vue?vue&type=script&lang=js\"\n\nimport \"./a-task-timeblocks.vue?vue&type=style&index=0&id=2d100a43&lang=sass\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","export default {\n\t// Mixin to fix autofocus on v-input in modals where date selects are used\n\tdata() {\n\t\treturn {\n\t\t\tpreventInputFocus: false\n\t\t}\n\t},\n\n\tmethods: {\n\t\tonDateFocus($event) {\n\t\t\tif ($event == undefined) {\n\t\t\t\tthis.preventInputFocus = true\n\t\t\t}\n\t\t},\n\n\t\tonInputFocus($event) {\n\t\t\tif (this.preventInputFocus) {\n\t\t\t\t$event.target.blur()\n\t\t\t\tthis.preventInputFocus = false\n\t\t\t}\n\t\t}\n\t}\n}","export default {\n\tcomputed: {\n\t\temployeesOptions() {\n\t\t\tconst selectedEmployees = [...this.mastertask.employees].map(employee => employee.id)\n\n\t\t\treturn this.enrichedEmployees.filter(\n\t\t\t\t(employee) => !selectedEmployees.includes(employee.id)\n\t\t\t) || []\n\t\t},\n\n\t\tprojectsOptions() {\n\t\t\t// Added to \"paginate\" projects, because v-autocomplete was unable to handle so many projects at once\n\n\t\t\tconst pattern = /[^a-zA-Z0-9 ]/g\n\n\t\t\tconst normalizedInput = this.projectCodeSearch\n\t\t\t\t? this.projectCodeSearch.normalize('NFD').replace(/[\\u0300-\\u036f]/g, '').replace(pattern, '')\n\t\t\t\t: ''\n\n\t\t\tconst projects = this.projects.filter(project => {\n\t\t\t\tconst normalizedProjectCode = project.code.normalize('NFD').replace(/[\\u0300-\\u036f]/g, '').replace(pattern, '')\n\t\t\t\treturn normalizedProjectCode.toLowerCase().includes(normalizedInput.toLowerCase())\n\t\t\t})\n\n\t\t\tlet filteredProjects \t= projects?.length ? projects.slice(0, 10) : this.projects.slice(0, 10)\n\n\t\t\tif (!this.mastertask?.project_id)\n\t\t\t\treturn filteredProjects\n\n\t\t\tconst selectedProject \t= this.projects.find(project => project.id == this.mastertask?.project_id)\n\t\t\tfilteredProjects \t\t= filteredProjects.filter(project => project.id != selectedProject.id)\n\n\t\t\treturn [...filteredProjects, selectedProject]\n\t\t}\n\t},\n\n\tmethods: {\n\t\t// onProjectSelected(id) {\n\t\t// \tconst project = this.projects.find(project => project.id == id)\n\t\t// \tthis.mastertask.project_code = project.code\n\t\t// \tthis.mastertask.project_id \t = project.id\n\t\t// },\n\n\t\tonEmployeeSelected(id) {\n\t\t\tconst employee = this.enrichedEmployees.find(employee => employee.id == id)\n\t\t\tconsole.log('add employee', employee)\n\t\t\tthis.mastertask.employees.push(employee)\n\t\t\tthis.showAddEmployeeInput = false\n\t\t},\n\n\t\tonEmployeeDurationChanged() {\n\t\t\tlet totalDuration = 0\n\n\t\t\tthis.mastertask.employees = this.mastertask.employees.map(employee => {\n\t\t\t\tif (typeof employee.duration == 'string') {\n\t\t\t\t\ttotalDuration += parseFloat(employee.duration)\n\t\t\t\t\temployee.duration = parseFloat(employee.duration)\n\t\t\t\t\temployee.invalid = false\n\t\t\t\t}\n\t\t\t\telse if (typeof employee.duration == 'number') {\n\t\t\t\t\ttotalDuration += employee.duration\n\t\t\t\t\temployee.invalid = false\n\t\t\t\t}\n\n\t\t\t\treturn employee\n\t\t\t})\n\n\t\t\tthis.mastertask.duration = totalDuration\n\t\t}\n\t},\n\n\twatch: {\n\t\t'mastertask.team_id'(value) {\n\t\t\tif (!value) return\n\t\t\t\n\t\t\tconst team = this.teams.find(team => team.id == value)\n\t\t\tif (!team) return\n\n\t\t\tthis.mastertask.team \t\t= JSON.parse(JSON.stringify(team))\n\t\t\tthis.mastertask.employees = [...this.mastertask.team.employees]\n\t\t},\n\t}\n}","\n\n\n","\n\n\n","import { render } from \"./a-mastertask-name.vue?vue&type=template&id=154bd9ae\"\nimport script from \"./a-mastertask-name.vue?vue&type=script&lang=js\"\nexport * from \"./a-mastertask-name.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n","import { render } from \"./a-mastertask-status.vue?vue&type=template&id=40b1e729\"\nimport script from \"./a-mastertask-status.vue?vue&type=script&lang=js\"\nexport * from \"./a-mastertask-status.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n","import { render } from \"./z-created-by.vue?vue&type=template&id=76476816\"\nimport script from \"./z-created-by.vue?vue&type=script&lang=js\"\nexport * from \"./z-created-by.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n","import { render } from \"./a-task-assigned-employee.vue?vue&type=template&id=e04c27ce\"\nimport script from \"./a-task-assigned-employee.vue?vue&type=script&lang=js\"\nexport * from \"./a-task-assigned-employee.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n","import { render } from \"./a-task-planned-time.vue?vue&type=template&id=5c6a17d5\"\nimport script from \"./a-task-planned-time.vue?vue&type=script&lang=js\"\nexport * from \"./a-task-planned-time.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n","import { render } from \"./a-task-spent-time.vue?vue&type=template&id=c9f868dc&scoped=true\"\nimport script from \"./a-task-spent-time.vue?vue&type=script&lang=js\"\nexport * from \"./a-task-spent-time.vue?vue&type=script&lang=js\"\n\nimport \"./a-task-spent-time.vue?vue&type=style&index=0&id=c9f868dc&lang=sass&scoped=true\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-c9f868dc\"]])\n\nexport default __exports__","\n\n\n","import { render } from \"./a-task-remaining-time.vue?vue&type=template&id=76900acb\"\nimport script from \"./a-task-remaining-time.vue?vue&type=script&lang=js\"\nexport * from \"./a-task-remaining-time.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n","import { render } from \"./a-task-deadline.vue?vue&type=template&id=6b83a162\"\nimport script from \"./a-task-deadline.vue?vue&type=script&lang=js\"\nexport * from \"./a-task-deadline.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n","import { render } from \"./a-task-description.vue?vue&type=template&id=cad95ece\"\nimport script from \"./a-task-description.vue?vue&type=script&lang=js\"\nexport * from \"./a-task-description.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n","import { render } from \"./z-files.vue?vue&type=template&id=439e5395&scoped=true\"\nimport script from \"./z-files.vue?vue&type=script&lang=js\"\nexport * from \"./z-files.vue?vue&type=script&lang=js\"\n\nimport \"./z-files.vue?vue&type=style&index=0&id=439e5395&lang=sass&scoped=true\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-439e5395\"]])\n\nexport default __exports__","import { render } from \"./z-task-readonly-info.vue?vue&type=template&id=fdfa3c04\"\nimport script from \"./z-task-readonly-info.vue?vue&type=script&lang=js\"\nexport * from \"./z-task-readonly-info.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./z-task-modal.vue?vue&type=template&id=68445d77&scoped=true\"\nimport script from \"./z-task-modal.vue?vue&type=script&lang=js\"\nexport * from \"./z-task-modal.vue?vue&type=script&lang=js\"\n\nimport \"./z-task-modal.vue?vue&type=style&index=0&id=68445d77&lang=sass&scoped=true\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-68445d77\"]])\n\nexport default __exports__","\n\n","import { render } from \"./z-delete-blocker-modal.vue?vue&type=template&id=27f48656\"\nimport script from \"./z-delete-blocker-modal.vue?vue&type=script&lang=js\"\nexport * from \"./z-delete-blocker-modal.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n","import { render } from \"./z-complete-task-modal.vue?vue&type=template&id=19989ea2\"\nimport script from \"./z-complete-task-modal.vue?vue&type=script&lang=js\"\nexport * from \"./z-complete-task-modal.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n","import { render } from \"./z-complete-master-task-modal.vue?vue&type=template&id=175a8046\"\nimport script from \"./z-complete-master-task-modal.vue?vue&type=script&lang=js\"\nexport * from \"./z-complete-master-task-modal.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n","import { render } from \"./z-task-add-time-modal.vue?vue&type=template&id=30faf5cc\"\nimport script from \"./z-task-add-time-modal.vue?vue&type=script&lang=js\"\nexport * from \"./z-task-add-time-modal.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n","import { render } from \"./z-blocker-modal.vue?vue&type=template&id=3d960742\"\nimport script from \"./z-blocker-modal.vue?vue&type=script&lang=js\"\nexport * from \"./z-blocker-modal.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n","import { render } from \"./z-delete-master-task-modal.vue?vue&type=template&id=3925d426\"\nimport script from \"./z-delete-master-task-modal.vue?vue&type=script&lang=js\"\nexport * from \"./z-delete-master-task-modal.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n","import { render } from \"./a-tasks-table.vue?vue&type=template&id=6a5e57ec&scoped=true\"\nimport script from \"./a-tasks-table.vue?vue&type=script&lang=js\"\nexport * from \"./a-tasks-table.vue?vue&type=script&lang=js\"\n\nimport \"./a-tasks-table.vue?vue&type=style&index=0&id=6a5e57ec&lang=sass&scoped=true\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-6a5e57ec\"]])\n\nexport default __exports__","\n\n","\n\n","import { render } from \"./z-deadline.vue?vue&type=template&id=13a73f8f\"\nimport script from \"./z-deadline.vue?vue&type=script&lang=js\"\nexport * from \"./z-deadline.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n","import { render } from \"./z-description.vue?vue&type=template&id=531a9e6f\"\nimport script from \"./z-description.vue?vue&type=script&lang=js\"\nexport * from \"./z-description.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n","import { render } from \"./z-planned-time.vue?vue&type=template&id=0c44c1d0\"\nimport script from \"./z-planned-time.vue?vue&type=script&lang=js\"\nexport * from \"./z-planned-time.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n","import { render } from \"./z-remaining-time.vue?vue&type=template&id=759929d5\"\nimport script from \"./z-remaining-time.vue?vue&type=script&lang=js\"\nexport * from \"./z-remaining-time.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n","import { render } from \"./z-spent-time.vue?vue&type=template&id=cc4966e2\"\nimport script from \"./z-spent-time.vue?vue&type=script&lang=js\"\nexport * from \"./z-spent-time.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n","import { render } from \"./z-status.vue?vue&type=template&id=5a460912\"\nimport script from \"./z-status.vue?vue&type=script&lang=js\"\nexport * from \"./z-status.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n","import { render } from \"./z-team.vue?vue&type=template&id=3dfe3a63\"\nimport script from \"./z-team.vue?vue&type=script&lang=js\"\nexport * from \"./z-team.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./a-mastertask-description.vue?vue&type=template&id=65a97638\"\nimport script from \"./a-mastertask-description.vue?vue&type=script&lang=js\"\nexport * from \"./a-mastertask-description.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./z-master-task-modal.vue?vue&type=template&id=5d776569&scoped=true\"\nimport script from \"./z-master-task-modal.vue?vue&type=script&lang=js\"\nexport * from \"./z-master-task-modal.vue?vue&type=script&lang=js\"\n\nimport \"./z-master-task-modal.vue?vue&type=style&index=0&id=5d776569&lang=sass&scoped=true\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-5d776569\"]])\n\nexport default __exports__","\r\n\r\n","import { render } from \"./z-delete-team-member-modal.vue?vue&type=template&id=7c74c097\"\nimport script from \"./z-delete-team-member-modal.vue?vue&type=script&lang=js\"\nexport * from \"./z-delete-team-member-modal.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n","import { render } from \"./z-show-menu-modal.vue?vue&type=template&id=27e5181d\"\nimport script from \"./z-show-menu-modal.vue?vue&type=script&lang=js\"\nexport * from \"./z-show-menu-modal.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./App.vue?vue&type=template&id=367d6c96\"\nimport script from \"./App.vue?vue&type=script&lang=js\"\nexport * from \"./App.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { createStore } from \"vuex\";\n\nexport default createStore({\n state: {},\n getters: {},\n mutations: {},\n actions: {},\n modules: {},\n});","import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router'\nimport store from '@/store'\n\nconst routes: Array = [\n\t{\n\t\tpath: '',\n\t\tredirect: '/auth'\n\t},\n\t{\n\t\tpath: '/auth/',\n\t\tcomponent: () => import('@/plugins/app/_layout/auth/auth.layout.vue'),\n\t\tchildren: [\n\t\t\t{\n\t\t\t\tpath: '',\n\t\t\t\tredirect: '/auth/login'\n\t\t\t},\n\t\t\t{\n\t\t\t\tpath: '/auth/login',\n\t\t\t\tname: 'Login',\n\t\t\t\tcomponent: () => import('@/plugins/lib@auth/login/login.vue'),\n\t\t\t\tmeta: {requiresAuth: false}\n\t\t\t},\n\t\t\t{\n\t\t\t\tpath: '/auth/forgot-password',\n\t\t\t\tname: 'Forgot password',\n\t\t\t\tcomponent: () => import('@/plugins/lib@auth/forgot-password/forgot-password.vue'),\n\t\t\t\tmeta: {requiresAuth: false}\n\t\t\t},\n\t\t\t{\n\t\t\t\tpath: '/auth/forgot-success',\n\t\t\t\tname: 'Forgot success',\n\t\t\t\tcomponent: () => import('@/plugins/lib@auth/forgot-success/forgot-success.vue'),\n\t\t\t\tmeta: {requiresAuth: false}\n\t\t\t},\n\t\t\t{\n\t\t\t\tpath: '/auth/reset-password',\n\t\t\t\tname: 'Reset password',\n\t\t\t\tcomponent: () => import('@/plugins/lib@auth/reset-password/reset-password.vue'),\n\t\t\t\tmeta: {requiresAuth: null}\n\t\t\t}\n\t\t]\n\t},\n\t{\n\t\tpath: '/app',\n\t\tcomponent: () => import('@/plugins/app/_layout/app/app.layout.vue'),\n\t\tchildren: [\n\t\t\t{\n\t\t\t\tpath: '',\n\t\t\t\tredirect: '/app/dashboard'\n\t\t\t},\n\t\t\t{\n\t\t\t\tpath: '/app/dashboard',\n\t\t\t\tredirect: '/app/dashboard/tasks',\n\t\t\t\tchildren: [\n\t\t\t\t\t{\n\t\t\t\t\t\tpath: '/app/dashboard/tasks',\n\t\t\t\t\t\tname: 'Dashboard - Tasks',\n\t\t\t\t\t\tmeta: { title: 'Sub Tasks', requiresAuth: true },\n\t\t\t\t\t\tcomponent: () => import('@/plugins/tm@dashboard/tasks/tasks.vue')\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tpath: '/app/dashboard/teams',\n\t\t\t\t\t\tname: 'Dashboard - Teams',\n\t\t\t\t\t\tmeta: { title: 'Teams Overview', requiresAuth: true },\n\t\t\t\t\t\tcomponent: () => import('@/plugins/tm@dashboard/teams/teams.vue')\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tpath: '/app/dashboard/projects',\n\t\t\t\t\t\tname: 'Dashboard - Projects',\n\t\t\t\t\t\tmeta: { title: 'Projects overview', requiresAuth: true },\n\t\t\t\t\t\tcomponent: () => import('@/plugins/tm@dashboard/projects/projects.vue')\n\t\t\t\t\t},\n\n\t\t\t\t\t{\n\t\t\t\t\t\tpath: '/app/overview/unscheduled',\n\t\t\t\t\t\tname: 'Overview - Unscheduled tasks',\n\t\t\t\t\t\tmeta: { title: 'Unscheduled Sub Tasks', requiresAuth: true },\n\t\t\t\t\t\tcomponent: () => import('@/plugins/tm@overview/tasks-unscheduled/tasks-unscheduled.vue')\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tpath: '/app/overview/ongoing',\n\t\t\t\t\t\tname: 'Overview - Ongoing tasks',\n\t\t\t\t\t\tmeta: { title: 'Ongoing Sub Tasks', requiresAuth: true },\n\t\t\t\t\t\tcomponent: () => import('@/plugins/tm@overview/tasks-ongoing/tasks-ongoing.vue')\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tpath: '/app/overview/teams',\n\t\t\t\t\t\tname: 'Overview - Teams',\n\t\t\t\t\t\tmeta: { title: 'Teams', requiresAuth: true },\n\t\t\t\t\t\tcomponent: () => import('@/plugins/tm@overview/teams/teams.vue')\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tpath: '/app/dashboard/user',\n\t\t\t\t\t\tname: 'Dashboard - User',\n\t\t\t\t\t\tmeta: { title: 'Profile', requiresAuth: true },\n\t\t\t\t\t\tcomponent: () => import('@/plugins/tm@profile/profile/my-profile.vue')\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tpath: '/app/search',\n\t\t\t\t\t\tname: 'Search',\n\t\t\t\t\t\tmeta: { title: 'Search Results', requiresAuth: true },\n\t\t\t\t\t\tcomponent: () => import('@/plugins/lib@search/search/search.vue')\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t}\n\t\t]\n\t},\n\t{\n\t\tpath: '/:catchAll(.*)',\n\t\tname: '404',\n\t\tcomponent: () => import('@/plugins/w@screen/404/404.vue'),\n\t\tmeta: {requiresAuth: null}\n\t}\n]\n\nconst router = createRouter({\n\thistory: createWebHashHistory(process.env.BASE_URL),\n\troutes\n})\n\nrouter.beforeEach((to, from, next) => {\n\tconst isLoggedIn = store.getters['auth/isLoggedIn']\n\n\tif (to.meta.requiresAuth === true) {\n\t\tif (isLoggedIn)\n\t\t\treturn next()\n\t\telse\n\t\t\treturn next({name: 'Login'})\n\t} else if (to.meta.requiresAuth === false) {\n\t\tif (!isLoggedIn)\n\t\t\treturn next()\n\t\telse\n\t\t\treturn next({name: 'Dashboard - Tasks'})\n\t} else {\n\t\treturn next()\n\t}\n})\n\nexport default router\n","import axios from 'axios'\nimport store from '@/store'\n\naxios.defaults.baseURL = process.env.VUE_APP_WAXIOS_URL\n\nexport default {\n\tasync get(url: string, config?: any) {\n\t\treturn axios.get(url, config)\n\t\t\t.then(response => response.data)\n\t\t\t.catch(error => Promise.reject(error))\n\t},\n\n\tasync get_auth(url: string, config?: any) {\n\t\tconfig = this._config(config)\n\n\t\treturn axios.get(url, config)\n\t\t\t.then(response => response.data)\n\t\t\t.catch(error => Promise.reject(error))\n\t},\n\n\tasync get_data(url: string, config?: any) {\n\t\treturn axios.get(url, config)\n\t\t\t.then(response => response.data.data)\n\t\t\t.catch(error => Promise.reject(error.response || error))\n\t},\n\n\tasync get_auth_data(url: string, config?: any) {\n\t\tconfig = this._config(config)\n\n\t\treturn axios.get(url, config)\n\t\t\t.then(response => Promise.resolve(response.data.data))\n\t\t\t.catch(error => Promise.reject(error.response || error))\n\t},\n\n\tasync post(url: string, params = null, config?: any) {\n\n\t\treturn axios.post(url, params, config)\n\t\t\t.then(response => response.data)\n\t\t\t.catch(error => Promise.reject(error))\n\t},\n\n\tasync post_auth(url: string, params = null, config?: any) {\n\t\tconfig = this._config(config)\n\n\t\treturn axios.post(url, params, config)\n\t\t\t.then(response => response.data)\n\t\t\t.catch(error => Promise.reject(error))\n\t},\n\n\tasync post_data(url: string, params = null, config?: any) {\n\n\t\treturn axios.post(url, params, config)\n\t\t\t.then(response => response.data.data)\n\t\t\t.catch(error => Promise.reject(error.response || error))\n\t},\n\n\tasync post_auth_data(url: string, params = null, config?: any) {\n\t\tconfig = this._config(config)\n\n\t\treturn axios.post(url, params, config)\n\t\t\t.then(response => response.data.data)\n\t\t\t.catch(error => Promise.reject(error.response || error))\n\t},\n\n\tasync delete(url: string, config?: any) {\n\t\treturn axios.delete(url, config)\n\t\t\t.then(response => response.data)\n\t\t\t.catch(error => Promise.reject(error))\n\t},\n\n\tasync delete_auth(url: string, config?: any) {\n\t\tconfig = this._config(config)\n\n\t\treturn axios.delete(url, config)\n\t\t\t.then(response => response.data)\n\t\t\t.catch(error => Promise.reject(error))\n\t},\n\n\tasync delete_data(url: string, config?: any) {\n\t\treturn axios.delete(url, config)\n\t\t\t.then(response => response.data.data)\n\t\t\t.catch(error => Promise.reject(error.response || error))\n\t},\n\n\tasync delete_auth_data(url: string, config?: any) {\n\t\tconfig = this._config(config)\n\n\t\treturn axios.delete(url, config)\n\t\t\t.then(response => response.data.data)\n\t\t\t.catch(error => Promise.reject(error.response || error))\n\t},\n\n\tasync patch(url: string, params = null, config?: any) {\n\t\treturn axios.patch(url, params, config)\n\t\t\t.then(response => response.data)\n\t\t\t.catch(error => Promise.reject(error))\n\t},\n\n\tasync patch_auth(url: string, params = null, config?: any) {\n\t\tconfig = this._config(config)\n\n\t\treturn axios.patch(url, params, config)\n\t\t\t.then(response => response.data)\n\t\t\t.catch(error => Promise.reject(error))\n\t},\n\n\tasync patch_data(url: string, params = null, config?: any) {\n\t\treturn axios.patch(url, params, config)\n\t\t\t.then(response => response.data.data)\n\t\t\t.catch(error => Promise.reject(error.response || error))\n\t},\n\n\tasync patch_auth_data(url: string, params = null, config?: any) {\n\t\tconfig = this._config(config)\n\n\t\treturn axios.patch(url, params, config)\n\t\t\t.then(response => response.data.data)\n\t\t\t.catch(error => Promise.reject(error.response || error))\n\t},\n\n\tasync put(url: string, params = null, config?: any) {\n\t\treturn axios.put(url, params, config)\n\t\t\t.then(response => response.data)\n\t\t\t.catch(error => Promise.reject(error))\n\t},\n\n\tasync put_auth(url: string, params = null, config?: any) {\n\t\tconfig = this._config(config)\n\n\t\treturn axios.put(url, params, config)\n\t\t\t.then(response => response.data)\n\t\t\t.catch(error => Promise.reject(error))\n\t},\n\n\tasync put_data(url: string, params = null, config?: any) {\n\t\treturn axios.put(url, params, config)\n\t\t\t.then(response => response.data.data)\n\t\t\t.catch(error => Promise.reject(error.response || error))\n\t},\n\n\tasync put_auth_data(url: string, params = null, config?: any) {\n\t\tconfig = this._config(config)\n\n\t\treturn axios.put(url, params, config)\n\t\t\t.then(response => response.data.data)\n\t\t\t.catch(error => Promise.reject(error.response || error))\n\t},\n\n\t_config(config: any) {\n\t\tif (config) console.error('NOT IMPLEMENTED')\n\n\t\tif (!store.getters['auth/token']) {\n\t\t\treturn {headers: {}}\n\t\t}\n\n\t\treturn {\n\t\t\theaders: {\n\t\t\t\tAuthorization: `Bearer ${store.getters['auth/token']}`\n\t\t\t}\n\t\t}\n\t}\n}","import { App } \t\tfrom 'vue'\nimport { Options } \tfrom './types'\nimport axios \t\tfrom './models/axios'\n\nexport default {\n\tinstall: (app: App, options: Options) => {\n\t\tif (options && options.disabled === true) return\n\n\t\tapp.config.globalProperties.$axios = axios\n\t}\n}","export const encodeGetParams = p =>\n\tObject.entries(p).map(kv => kv.map(encodeURIComponent).join('=')).join('&')\n\nexport function strToRegex(s) {\n\tlet re = s\n\tre = re.replace(/\\//g, '\\\\/')\n\tre = re.replace(/\\./g, '\\\\.')\n\tre = re.replace(/\\([^)]+\\)/g, '[^/]+')\n\treturn re\n}\n","import axios from 'axios'\nimport { encodeGetParams, strToRegex } from '../utils/moxios.util'\n\nexport class Moxios {\n\t_mocks = {}\n\n\tconstructor() {\n\t\taxios.interceptors.request.use(this._redirectRequestToMock.bind(this))\n\t\tthis._mocks = {}\n\t}\n\n\tmock(append) {\n\t\tfor (const k in append) {\n\t\t\tlet m = append[k]\n\n\t\t\tif (m === false) continue\n\n\t\t\tm = {}\n\n\t\t\tm.name = k\n\t\t\tm.url = k.split(' ')[1]\n\n\t\t\tif (!m.reUrl)\n\t\t\t\tm.reUrl = strToRegex( m.url )\n\n\t\t\tif (!m.matchMethod)\n\t\t\t\tm.matchMethod = k.split(' ')[0].toLowerCase()\n\n\t\t\tthis._mocks[k] = m\n\t\t}\n\t}\n\n\n\t_redirectRequestToMock(config) {\n\t\t// if (localStorage['isMoxios'] == 'false') {\n\t\t// \treturn config\n\t\t// }\n\n\t\tconst url = config.url.replace(/https?:\\/\\/[^/?]+/, '')\n\n\t\tlet mocked\n\n\t\tfor (const k in this._mocks) {\n\t\t\tconst m = this._mocks[k]\n\n\t\t\tif (config.method == m.matchMethod && url.match(m.reUrl)) {\n\t\t\t\tmocked = m\n\t\t\t\tbreak\n\t\t\t}\n\t\t}\n\n\t\tif (mocked) {\n\t\t\tif (!mocked.fname)\n\t\t\t\tprocess.env.VUE_APP_PLATFORM\n\t\t\t\t\t? mocked.fname = `/mock/${process.env.VUE_APP_PLATFORM}/${mocked.url}.${config.method.toUpperCase()}.json`\n\t\t\t\t\t: mocked.fname = `/mock/${mocked.url}.${config.method.toUpperCase()}.json`\n\n\n\t\t\tconsole.log(mocked.fname = `/mock/${mocked.url}.${config.method.toUpperCase()}.json`)\n\n\t\t\tconst c = {\n\t\t\t\tmethod: 'get',\n\t\t\t\turl: window.location.origin + mocked.fname+'?___MOCK___&'+encodeGetParams(config.data||{}),\n\t\t\t}\n\n\t\t\tconfig = {...config, ...c}\n\t\t}\n\n\t\treturn config\n\t}\n\n}\n\n","import { App } \t\tfrom 'vue'\nimport { Moxios } \tfrom './models/moxios'\nimport { Options } \tfrom './types/index.js'\n\nexport default {\n\tinstall: (app: App, options: Options) => {\n\t\tconst moxios = new Moxios()\n\n\t\tif (!options || !options.routes || !Object.values(options.routes).length || options.disabled === true) return\n\n\t\tmoxios.mock(options.routes)\n\t}\n}","import { Options } \tfrom './types'\nimport mitt \t\tfrom 'mitt'\n\nexport default {\n\tinstall: (app, options: Options) => {\n\t\tif (options && options.disabled === true) return\n\n\t\tconst events = mitt()\n\t\tapp.config.globalProperties.$events = events\n\t}\n}","import { Language, Options } from \"../types\"\nimport { Ref, ref } from 'vue'\nimport axios from 'axios'\nimport { createI18n, I18n as I18nType } from 'vue-i18n'\nimport { Preferences } from '@capacitor/preferences'\n\n\nexport class I18n {\n\tpublic currentLanguage: Ref = ref();\n\tpublic availableLanguages: Language[];\n\tpublic vendorI18n: I18nType\n\tpublic defaultLanguage: Language | null;\n\n\tprivate languageKey: string;\n\n\tconstructor(properties: Options) {\n\t\tthis.availableLanguages = properties.languages || []\n\t\tthis.defaultLanguage = properties.languages.find(language => language.value == properties.defaultLanguage)\n\t\tthis.languageKey = properties.languageKey || process.env.VUE_APP_PLATFORM + '_language' || 'w18n_language'\n\n\t\tthis.vendorI18n = createI18n({\n\t\t\tlegacy: true,\n\t\t\tfallbackLocale: this.defaultLanguage.value,\n\t\t\tmessages: this._loadLocaleMessages(),\n\t\t\tmissing: this._missingTranslation,\n\t\t\tpostTranslation: this._postTranslation,\n\t\t})\n\n\t\tthis.changeLanguage({ title: \"Slovenský\", flag: \"sk\", value: \"sk\" })\n\t\tthis.initCurrentLanguage()\n\t}\n\n\tpublic async initCurrentLanguage() {\n\t\tconst { value } = await Preferences.get({ key: this.languageKey })\n\n\t\tif (value) {\n\t\t\tthis.currentLanguage.value = JSON.parse(value)\n\t\t} else if (this.defaultLanguage) {\n\t\t\tthis.currentLanguage.value = this.defaultLanguage\n\t\t} else if (this.availableLanguages[0]) {\n\t\t\tthis.currentLanguage.value = this.availableLanguages[0]\n\t\t} else {\n\t\t\treturn console.error('[w18n] Could not init current language')\n\t\t}\n\n\t\tconst availableLanguages = {}\n\n\t\tthis.availableLanguages.forEach(language => {\n\t\t\tavailableLanguages[language.value] = language.title\n\t\t})\n\n\t\tthis.changeLanguage(this.currentLanguage.value)\n\t\t// Translations.setup(this.currentLanguage.value.value, availableLanguages)\n\n\t\tthis._addAxiosHeaders()\n\t}\n\n\tpublic changeLanguage(language: Language) {\n\t\tthis.currentLanguage.value = language\n\t\tthis._addAxiosHeaders()\n\n\t\tPreferences.set({\n\t\t\tkey: this.languageKey,\n\t\t\tvalue: JSON.stringify(language)\n\t\t})\n\n\t\tthis.vendorI18n.global.locale = language.value\n\t}\n\n\n\tprivate _addAxiosHeaders() {\n\t\taxios.interceptors.request.use(config => {\n\t\t\tif (this.currentLanguage.value && this.currentLanguage.value.value) {\n\t\t\t\tconfig.headers['Accept-Language'] = this.currentLanguage.value.value\n\t\t\t}\n\n\t\t\treturn config\n\t\t})\n\n\t\taxios.interceptors.response.use(\n\t\t\t(response) => {\n\t\t\t\treturn response\n\t\t\t},\n\t\t\t(error) => {\n\t\t\t\tif(error.response) {\n\t\t\t\t\taxios.post('https://logger.wezeo.dev/cms/api/data/new', {\n\t\t\t\t\t\tdata: JSON.stringify(error)\n\t\t\t\t\t})\n\t\t\t\t}\n\t\t\t\treturn Promise.reject(error.response)\n\t\t\t}\n\t\t)\n\t}\n\n\tpublic _loadLocaleMessages(path = '@/locales') {\n\t\tlet locales\n\t\ttry {\n\t\t\tlocales = require.context(\n\t\t\t\t'@/locales',\n\t\t\t\ttrue,\n\t\t\t\t/[A-Za-z0-9-_,\\s]+\\.json$/i\n\t\t\t)\n\t\t} catch (error) {\n\t\t\tconsole.warn('[@wezeo/i18n] Could not initialize i18n. Missing folder /src/locales.')\n\t\t\treturn {}\n\t\t}\n\n\t\tconst messages: { [key: string]: { [key: string]: string } } = {}\n\n\t\tlocales.keys().forEach((key) => {\n\t\t\tconst matched = key.match(/([A-Za-z0-9-_]+)\\./i)\n\t\t\tif (matched && matched.length > 1) {\n\t\t\t\tconst locale = matched[1]\n\n\t\t\t\tmessages[locale] = locales(key)\n\t\t\t}\n\t\t})\n\t\treturn messages\n\t}\n\n\tprivate _missingTranslation = (locale, key, instance?, type?) => {\n\t\treturn key\n\t}\n\n\tprivate _postTranslation = (translated) => {\n\t\treturn translated\n\t}\n}\n","import { Options } \tfrom './types'\nimport { I18n } \tfrom './models/i18n'\nimport events \t\tfrom '@/plugins/w/events'\n\nexport default {\n\tinstall: (app, options: Options) => {\n\t\tif (options && options.disabled === true)\n\t\t\treturn\n\n\t\tif (!options || !options.languages || !options.defaultLanguage)\n\t\t\treturn console.warn('[@wezeo/i18n] Could not initialize i18n. Missing configuration options.')\n\n\t\tif (!app.config.globalProperties.$events) {\n\t\t\tapp.use(events)\n\t\t}\n\n\t\tconst i18n = new I18n(options)\n\n\t\tapp.use(i18n.vendorI18n)\n\t\tapp.config.globalProperties.$w18n = i18n\n\t}\n}","import { App } \t\tfrom 'vue'\nimport { Options } \tfrom './types'\n\n\nimport {\n\tIonContent, IonPage, IonLabel, IonBackButton, IonCheckbox, IonText, IonButton, IonItem,\n\tIonToolbar, IonHeader, IonFooter, IonSlides, IonSlide, IonRow, IonCol, IonGrid, IonInput, IonButtons,\n\tIonIcon, IonList, IonTitle, IonMenu, IonRouterOutlet, IonMenuButton, IonSegment, IonSegmentButton, IonVirtualScroll,\n\tIonTextarea, IonSearchbar, IonRefresherContent, IonRefresher, IonInfiniteScrollContent, IonInfiniteScroll, IonAvatar,\n\tIonModal, IonRadioGroup, IonRadio, IonNote, IonCard, IonCardContent, IonTabBar, IonTabButton, IonMenuToggle, IonFab,\n\tIonFabButton, IonReorderGroup, IonReorder, IonFabList, IonSelect, IonSelectOption, IonToggle, IonBadge, IonChip, IonTabs, IonItemGroup, IonThumbnail, IonItemSliding, IonItemOption, IonItemOptions, IonImg, IonSkeletonText, IonSpinner, IonSplitPane\n} from '@ionic/vue'\n\nexport default {\n\tinstall: (app: App, options: Options) => {\n\t\tif (options && options.disabled === true) return\n\n\t\tapp.component('ion-content', IonContent)\n\t\tapp.component('ion-page', IonPage)\n\t\tapp.component('ion-label', IonLabel)\n\t\tapp.component('ion-back-button', IonBackButton)\n\t\tapp.component('ion-checkbox', IonCheckbox)\n\t\tapp.component('ion-text', IonText)\n\t\tapp.component('ion-button', IonButton)\n\t\tapp.component('ion-item', IonItem)\n\t\tapp.component('ion-item-group', IonItemGroup)\n\t\tapp.component('ion-item-sliding', IonItemSliding)\n\t\tapp.component('ion-item-option', IonItemOption)\n\t\tapp.component('ion-item-options', IonItemOptions)\n\t\tapp.component('ion-toolbar', IonToolbar)\n\t\tapp.component('ion-header', IonHeader)\n\t\tapp.component('ion-footer', IonFooter)\n\t\tapp.component('ion-slides', IonSlides)\n\t\tapp.component('ion-slide', IonSlide)\n\t\tapp.component('ion-spinner', IonSpinner)\n\t\tapp.component('ion-row', IonRow)\n\t\tapp.component('ion-col', IonCol)\n\t\tapp.component('ion-grid', IonGrid)\n\t\tapp.component('ion-input', IonInput)\n\t\tapp.component('ion-buttons', IonButtons)\n\t\tapp.component('ion-icon', IonIcon)\n\t\tapp.component('ion-img', IonImg)\n\t\tapp.component('ion-list', IonList)\n\t\tapp.component('ion-skeleton-text', IonSkeletonText)\n\t\tapp.component('ion-title', IonTitle)\n\t\tapp.component('ion-menu', IonMenu),\n\t\tapp.component('ion-split-pane', IonSplitPane)\n\t\tapp.component('ion-menu-button', IonMenuButton)\n\t\tapp.component('ion-router-outlet', IonRouterOutlet)\n\t\tapp.component('ion-segment', IonSegment)\n\t\tapp.component('ion-segment-button', IonSegmentButton)\n\t\tapp.component('ion-virtual-scroll', IonVirtualScroll)\n\t\tapp.component('ion-textarea', IonTextarea)\n\t\tapp.component('ion-searchbar', IonSearchbar)\n\t\tapp.component('ion-refresher-content', IonRefresherContent)\n\t\tapp.component('ion-refresher', IonRefresher)\n\t\tapp.component('ion-infinite-scroll-content', IonInfiniteScrollContent)\n\t\tapp.component('ion-infinite-scroll', IonInfiniteScroll)\n\t\tapp.component('ion-avatar', IonAvatar)\n\t\tapp.component('ion-thumbnail', IonThumbnail)\n\t\tapp.component('ion-modal', IonModal)\n\t\tapp.component('ion-radio-group', IonRadioGroup)\n\t\tapp.component('ion-radio', IonRadio)\n\t\tapp.component('ion-note', IonNote)\n\t\tapp.component('ion-card', IonCard)\n\t\tapp.component('ion-card-content', IonCardContent)\n\t\tapp.component('ion-tab-bar', IonTabBar)\n\t\tapp.component('ion-tab-button', IonTabButton),\n\t\tapp.component('ion-menu-toggle', IonMenuToggle)\n\t\tapp.component('ion-fab', IonFab)\n\t\tapp.component('ion-fab-button', IonFabButton)\n\t\tapp.component('ion-fab-list', IonFabList)\n\t\tapp.component('ion-reorder-group', IonReorderGroup)\n\t\tapp.component('ion-reorder', IonReorder)\n\t\tapp.component('ion-select', IonSelect)\n\t\tapp.component('ion-select-option', IonSelectOption)\n\t\tapp.component('ion-toggle', IonToggle)\n\t\tapp.component('ion-badge', IonBadge)\n\t\tapp.component('ion-chip', IonChip),\n\t\tapp.component('ion-tabs', IonTabs)\n\t}\n}","/* eslint-disable */\nimport axios from 'axios'\nimport store from '@/store'\n\nasync function _unauthorised(error: any) {\n\tif (error?.response?.data?.message == 'Unauthenticated.')\n\t\treturn store.dispatch('auth/logout')\n\t\n\treturn Promise.reject(error)\n}\n\naxios.interceptors.response.use(\n\t(response) => response,\n\t(error) => _unauthorised(error),\n)","import axios from '@/plugins/w/axios/models/axios'\nimport './refreshExpired'\n\nexport default {\n\tnamespaced: true,\n\tstate: {\n\t\ttoken: localStorage.getItem('wzo_vue_user_token') || '',\n\t\tuser: JSON.parse(localStorage.getItem('wzo_vue_user_user') || '{}'),\n\t},\n\tmutations: {\n\t\tauth_success(state: any, data: any) {\n\t\t\tif (data.token) {\n\t\t\t\tstate.token = data.token\n\t\t\t\tlocalStorage.setItem('wzo_vue_user_token', data.token)\n\t\t\t}\n\n\t\t\tif (data.user) {\n\t\t\t\tstate.user = data.user\n\t\t\t\tlocalStorage.setItem('wzo_vue_user_user', JSON.stringify(data.user))\n\t\t\t}\n\t\t},\n\t\tauth_error(state: any) {\n\t\t\tstate.token = ''\n\t\t\tlocalStorage.removeItem('wzo_vue_user_token')\n\t\t\tlocalStorage.removeItem('wzo_vue_user_user')\n\t\t},\n\t\tlogout(state: any) {\n\t\t\tstate.token = ''\n\t\t\tstate.user = null\n\t\t\tlocalStorage.removeItem('wzo_vue_user_token')\n\t\t\tlocalStorage.removeItem('wzo_vue_user_user')\n\t\t\twindow.open(location.origin, \"_self\")\n\t\t}\n\t},\n\tactions: {\n\t\tlogin({commit}: {commit: any}, credentials: any) {\n\t\t\treturn new Promise((resolve, reject) => {\n\t\t\t\taxios.post('v1/tokens/create', {data: credentials})\n\t\t\t\t\t.then((response: any) => {\n\t\t\t\t\t\tconst token = response.token\n\t\t\t\t\t\tconst user = response.user\n\n\t\t\t\t\t\tcommit('auth_success', {\n\t\t\t\t\t\t\ttoken: token,\n\t\t\t\t\t\t\tuser: user\n\t\t\t\t\t\t})\n\n\t\t\t\t\t\tresolve(response)\n\t\t\t\t\t}).catch(error => {\n\t\t\t\t\t\tcommit('auth_error')\n\t\t\t\t\t\treject(error)\n\t\t\t\t\t})\n\t\t\t})\n\t\t},\n\t\tsignup({commit }: {commit: any}, credentials: any) {\n\t\t\treturn new Promise((resolve, reject) => {\n\t\t\t\tcommit('auth_request')\n\n\t\t\t\taxios.post_data('v1/auth/signup', credentials)\n\t\t\t\t\t.then((response: any) => {\n\t\t\t\t\t\tconst token = response.token\n\t\t\t\t\t\tconst user = response.user\n\n\t\t\t\t\t\tcommit('auth_success', {\n\t\t\t\t\t\t\ttoken: token,\n\t\t\t\t\t\t\tuser: user\n\t\t\t\t\t\t})\n\n\t\t\t\t\t\tresolve(response)\n\t\t\t\t\t}).catch(error => {\n\t\t\t\t\t\tcommit('auth_error')\n\t\t\t\t\t\treject(error)\n\t\t\t\t\t})\n\t\t\t})\n\t\t},\n\t\t// eslint-disable-next-line\n\t\tlogout({commit}: {commit: any}) {\n\t\t\treturn new Promise((resolve) => {\n\t\t\t\taxios.post_auth_data('v1/auth/invalidate')\n\t\t\t\t\t.finally(() => {\n\t\t\t\t\t\tcommit('logout')\n\t\t\t\t\t\tresolve(null)\n\t\t\t\t\t})\n\t\t\t})\n\t\t},\n\t\t// eslint-disable-next-line\n\t\tforgotPassword({commit}: {commit: any}, credentials: any) {\n\t\t\treturn new Promise((resolve, reject) => {\n\t\t\t\taxios.post('v1/users/forgot', {data: credentials})\n\t\t\t\t\t.then(response => resolve(response))\n\t\t\t\t\t.catch(error => reject(error))\n\t\t\t})\n\t\t},\n\t\t// eslint-disable-next-line\n\t\tresetPassword({commit}: {commit: any}, credentials: any) {\n\t\t\tcommit('auth_success', {token: credentials.token})\n\t\t\t\n\t\t\treturn new Promise((resolve, reject) => {\n\t\t\t\taxios.post_auth_data('v1/users/reset', {data: credentials})\n\t\t\t\t\t.then(response => {\n\t\t\t\t\t\tcommit('logout')\n\t\t\t\t\t\tresolve(response)\n\t\t\t\t\t})\n\t\t\t\t\t.catch(error => reject(error))\n\t\t\t})\n\t\t},\n\t\tasync refreshToken({commit}: {commit: any}) {\n\t\t\ttry {\n\t\t\t\tconst response: any = await axios.post_auth_data('v1/auth/refresh')\n\n\t\t\t\tconst token = response.token\n\t\t\t\tconst user = response.user\n\n\t\t\t\tcommit('auth_success', {\n\t\t\t\t\ttoken: token,\n\t\t\t\t\tuser: user\n\t\t\t\t})\n\n\t\t\t\treturn token\n\t\t\t} catch (error) {\n\t\t\t\tcommit('auth_error')\n\t\t\t\tconsole.error(error)\n\t\t\t}\n\t\t},\n\t\tasync userInfo({commit}: {commit: any}) {\n\t\t\treturn new Promise((resolve, reject) => {\n\t\t\t\taxios.get_auth_data('v1/auth/info')\n\t\t\t\t\t.then((response: any) => {\n\t\t\t\t\t\tconst user = response.user\n\n\t\t\t\t\t\tcommit('auth_success', {\n\t\t\t\t\t\t\tuser: user\n\t\t\t\t\t\t})\n\n\t\t\t\t\t\tresolve(user)\n\t\t\t\t\t}).catch(error => {\n\t\t\t\t\t\treject(error)\n\t\t\t\t\t})\n\t\t\t})\n\t\t},\n\t\tupdateUserInfo({commit}: {commit: any}, data: any) {\n\t\t\treturn new Promise((resolve, reject) => {\n\t\t\t\taxios.put_auth(`v1/users/${data.id}`, {data: data})\n\t\t\t\t\t.then((response: any) => {\n\t\t\t\t\t\tconst user = response.user\n\n\t\t\t\t\t\tcommit('auth_success', {\n\t\t\t\t\t\t\tuser: user\n\t\t\t\t\t\t})\n\n\t\t\t\t\t\tresolve(user)\n\t\t\t\t\t}).catch(error => {\n\t\t\t\t\t\treject(error)\n\t\t\t\t\t})\n\t\t\t})\n\t\t},\n\t},\n\tgetters: {\n\t\tisLoggedIn: (state: any) => {\n\t\t\treturn !!state.token\n\t\t},\n\t\tuser: (state: any) => {\n\t\t\treturn state.user\n\t\t},\n\t\ttoken: (state: any) => {\n\t\t\treturn (state.token && state.token != undefined) ? state.token : null\n\t\t}\n\t}\n}","import { App } \t\tfrom 'vue'\nimport { Options } \tfrom './types'\nimport auth \t\tfrom './auth.store'\n\nexport default {\n\tinstall: (app: App, options: Options) => {\n\t\tif (options && options.disabled == true) return\n\n\t\tif (!app.config.globalProperties.$store)\n\t\t\treturn console.warn('[w/auth] Could not initialize. App does not have vuex store added.')\n\n\t\tapp.config.globalProperties.$store.registerModule('auth', auth)\n\t}\n}","import { Options } \tfrom './types'\n// import { Toast } from './models/Toast'\nimport 'vue-toast-notification/dist/theme-sugar.css'\nimport VueToast from 'vue-toast-notification'\n\nexport default {\n\tinstall: (app, options: Options) => {\n\t\tif (options && options.disabled === true) return\n\n\t\tapp.use(VueToast)\n\n\t\t// app.config.globalProperties.$wToast = new Toast()\n\t}\n}","\n\n\n\n","import { render } from \"./w-loadable.vue?vue&type=template&id=a2444234&scoped=true\"\nimport script from \"./w-loadable.vue?vue&type=script&lang=js\"\nexport * from \"./w-loadable.vue?vue&type=script&lang=js\"\n\nimport \"./w-loadable.vue?vue&type=style&index=0&id=a2444234&lang=sass&scoped=true\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-a2444234\"]])\n\nexport default __exports__","import { App } \t\tfrom 'vue'\nimport { Options } \tfrom './types'\nimport WLoadable\tfrom './_components/w-loadable.vue'\n\nexport default {\n\tinstall: (app: App, options: Options) => {\n\t\tif (options && options.disabled === true) return\n\n\t\tapp.component('W-loadable', WLoadable)\n\t}\n}","import { App } \t\tfrom 'vue'\nimport { Options } \tfrom './types'\n\nimport axios\t \tfrom '@/plugins/w/axios'\nimport moxios\t \tfrom '@/plugins/w/moxios'\nimport events\t \tfrom '@/plugins/w/events'\nimport i18n\t \t\tfrom '@/plugins/w/i18n'\nimport ionic\t \tfrom '@/plugins/w/ionic'\nimport auth\t\t\tfrom '@/plugins/w/auth'\nimport toast\t\tfrom '@/plugins/w/toast'\nimport loadable\t\tfrom '@/plugins/w/loadable'\n\nexport default {\n\tinstall: (app: App, options: Options = {}) => {\n\t\tevents.install(app, options.events)\n\t\taxios.install(app, options.axios)\n\t\ti18n.install(app, options.i18n)\n\t\tmoxios.install(app, options.moxios)\n\t\tionic.install(app, options.ionic)\n\t\tauth.install(app, options.auth)\n\t\ttoast.install(app, options.toast)\n\t\tloadable.install(app, options.loadable)\n\t}\n}","import { $t } from '@/plugins/app/_config/main'\n\nexport default {\n\tparseAndTranslate(data) {\n\t\tconst errorsArray = this._parseToArrayOfStrings(data)\n\t\treturn errorsArray.join(', ')\n\t},\n\n\t_parseToArrayOfStrings(data) {\n\t\tif (data?.data?.message) {\n\t\t\treturn [$t(data.data.message)]\n\t\t}\n\n\t\tif (typeof data == 'string') {\n\t\t\treturn [$t(data)]\n\t\t}\n\n\t\tif (data?.response?.data)\n\t\t\treturn Object.values(data?.response?.data)\n\n\t\tif (data && data.error && typeof data.error == 'string') {\n\t\t\treturn [$t(data.error)]\n\t\t}\n\n\t\tif (data && data.error && typeof data.error == 'object') {\n\t\t\treturn Object.values($t(data.error))\n\t\t}\n\n\t\tif (data.data && data.data.error && typeof data.data.error == 'string') {\n\t\t\treturn [$t(data.data.error)]\n\t\t}\n\n\t\tif (data && data.data && data.data.error && typeof data.data.error == 'object') {\n\t\t\treturn Object.values(data.data.error).map(error => $t(error[0]) + ' ')\n\t\t}\n\n\t\tif (data.statusText) {\n\t\t\treturn [$t(data.statusText)]\n\t\t}\n\n\t\treturn [data]\n\t}\n}","import axios from 'axios'\nimport store from '@/store'\nimport toastUtils from '@/plugins/w/toast/utils/toast.utils'\n\naxios.defaults.baseURL = process.env.VUE_APP_WAXIOS_URL\n\nexport default {\n\tasync get(url: string, config?: any) {\n\t\treturn axios.get(url, config)\n\t\t\t.then(response => response.data)\n\t\t\t.catch(error => Promise.reject(toastUtils.parseAndTranslate(error)))\n\t},\n\n\tasync get_auth(url: string, config?: any) {\n\t\tconfig = this._config(config)\n\n\t\treturn axios.get(url, config)\n\t\t\t.then(response => response.data)\n\t\t\t.catch(error => Promise.reject(toastUtils.parseAndTranslate(error)))\n\t},\n\n\tasync get_data(url: string, config?: any) {\n\t\treturn axios.get(url, config)\n\t\t\t.then(response => response.data.data)\n\t\t\t.catch(error => Promise.reject(toastUtils.parseAndTranslate(error.response || error)))\n\t},\n\n\tasync get_auth_data(url: string, config?: any) {\n\t\tconfig = this._config(config)\n\n\t\treturn axios.get(url, config)\n\t\t\t.then(response => Promise.resolve(response.data.data))\n\t\t\t.catch(error => Promise.reject(toastUtils.parseAndTranslate(error.response || error)))\n\t},\n\n\tasync post(url: string, params = null, config?: any) {\n\n\t\treturn axios.post(url, this._objectToFormData(params), config)\n\t\t\t.then(response => response.data)\n\t\t\t.catch(error => Promise.reject(toastUtils.parseAndTranslate(error)))\n\t},\n\n\tasync post_auth(url: string, params = null, config?: any) {\n\t\tconfig = this._config(config)\n\n\t\treturn axios.post(url, this._objectToFormData(params), config)\n\t\t\t.then(response => response.data)\n\t\t\t.catch(error => Promise.reject(toastUtils.parseAndTranslate(error)))\n\t},\n\n\tasync post_data(url: string, params = null, config?: any) {\n\n\t\treturn axios.post(url, this._objectToFormData(params), config)\n\t\t\t.then(response => response.data.data)\n\t\t\t.catch(error => Promise.reject(toastUtils.parseAndTranslate(error.response || error)))\n\t},\n\n\tasync post_auth_data(url: string, params = null, config?: any) {\n\t\tconfig = this._config(config)\n\n\t\treturn axios.post(url, this._objectToFormData(params), config)\n\t\t\t.then(response => response.data.data)\n\t\t\t.catch(error => Promise.reject(toastUtils.parseAndTranslate(error.response || error)))\n\t},\n\n\tasync delete(url: string, config?: any) {\n\t\treturn axios.delete(url, config)\n\t\t\t.then(response => response.data)\n\t\t\t.catch(error => Promise.reject(toastUtils.parseAndTranslate(error)))\n\t},\n\n\tasync delete_auth(url: string, config?: any) {\n\t\tconfig = this._config(config)\n\t\treturn axios.delete(url, config)\n\t\t\t.then(response => response.data)\n\t\t\t.catch(error => Promise.reject(toastUtils.parseAndTranslate(error)))\n\t},\n\n\tasync delete_data(url: string, config?: any) {\n\t\treturn axios.delete(url, config)\n\t\t\t.then(response => response.data.data)\n\t\t\t.catch(error => Promise.reject(toastUtils.parseAndTranslate(error.response || error)))\n\t},\n\n\tasync delete_auth_data(url: string, config?: any) {\n\t\tconfig = this._config(config)\n\n\t\treturn axios.delete(url, config)\n\t\t\t.then(response => response.data.data)\n\t\t\t.catch(error => Promise.reject(toastUtils.parseAndTranslate(error.response || error)))\n\t},\n\n\tasync patch(url: string, params = null, config?: any) {\n\t\treturn axios.patch(url, this._objectToFormData(params), config)\n\t\t\t.then(response => response.data)\n\t\t\t.catch(error => Promise.reject(toastUtils.parseAndTranslate(error)))\n\t},\n\n\tasync patch_auth(url: string, params = null, config?: any) {\n\t\tconfig = this._config(config)\n\n\t\treturn axios.patch(url, this._objectToFormData(params), config)\n\t\t\t.then(response => response.data)\n\t\t\t.catch(error => Promise.reject(toastUtils.parseAndTranslate(error)))\n\t},\n\n\tasync patch_data(url: string, params = null, config?: any) {\n\t\treturn axios.patch(url, this._objectToFormData(params), config)\n\t\t\t.then(response => response.data.data)\n\t\t\t.catch(error => Promise.reject(toastUtils.parseAndTranslate(error.response || error)))\n\t},\n\n\tasync patch_auth_data(url: string, params = null, config?: any) {\n\t\tconfig = this._config(config)\n\n\t\treturn axios.patch(url, this._objectToFormData(params), config)\n\t\t\t.then(response => response.data.data)\n\t\t\t.catch(error => Promise.reject(toastUtils.parseAndTranslate(error.response || error)))\n\t},\n\n\tasync put(url: string, params = null, config?: any) {\n\t\treturn axios.put(url, this._objectToFormData(params), config)\n\t\t\t.then(response => response.data)\n\t\t\t.catch(error => Promise.reject(toastUtils.parseAndTranslate(error)))\n\t},\n\n\tasync put_auth(url: string, params = null, config?: any) {\n\t\tconfig = this._config(config)\n\n\t\treturn axios.put(url, {data: params}, config)\n\t\t\t.then(response => response.data)\n\t\t\t.catch(error => Promise.reject(toastUtils.parseAndTranslate(error)))\n\t},\n\n\tasync put_data(url: string, params = null, config?: any) {\n\t\treturn axios.put(url, this._objectToFormData(params), config)\n\t\t\t.then(response => response.data.data)\n\t\t\t.catch(error => Promise.reject(toastUtils.parseAndTranslate(error.response || error)))\n\t},\n\n\tasync put_auth_data(url: string, params = null, config?: any) {\n\t\tconfig = this._config(config)\n\n\t\treturn axios.put(url, {data: params}, config)\n\t\t\t.then(response => response.data.data)\n\t\t\t.catch(error => Promise.reject(toastUtils.parseAndTranslate(error.response || error)))\n\t},\n\n\t_config(config: any) {\n\t\tif (config) console.error('NOT IMPLEMENTED')\n\n\t\tif (!store.getters['auth/token']) {\n\t\t\treturn {headers: {}}\n\t\t}\n\n\t\treturn {\n\t\t\theaders: {\n\t\t\t\tAuthorization: `Bearer ${store.getters['auth/token']}`\n\t\t\t}\n\t\t}\n\t},\n\n\t_buildFormData(formData, data, parentKey) {\n\t\tif (data && typeof data === 'object' && !(data instanceof Date) && !(data instanceof File))\n\t\t\tObject.keys(data).forEach(key => this._buildFormData(formData, data[key], parentKey ? `${parentKey}[${key}]` : key));\n\t\telse\n\t\t\tformData.append(parentKey, data == null ? '' : data);\n\t},\n\n\t_objectToFormData(data) {\n\t\tconst formData = new FormData()\n\t\tthis._buildFormData(formData, {data: data})\n\n\t\treturn formData\n\t}\n}","import { App } \t\tfrom 'vue'\nimport { Options } \tfrom './types'\nimport axios \t\tfrom './models/axios'\n\nexport default {\n\tinstall: (app: App, options: Options) => {\n\t\tif (options && options.disabled === true) return\n\n\t\tapp.config.globalProperties.$axios = axios\n\t}\n}","import axios from '@/plugins/w@custom/axios/models/axios'\nimport store from '@/store'\n\nexport default {\n\tnamespaced: true,\n\n\tstate: {\n\t\tmastertasks: null,\n\t\temployees: null,\n\t\tteams: null,\n\t\tprojects: null,\n\t\tunscheduledSubtasks: null,\n\t\tongoingSubtasks: null,\n\t\tinitialized: false\n\t},\n\n\tmutations: {\n\t\tset_mastertasks(state: any, mastertasks: any) {\n\t\t\tstate.mastertasks = mastertasks\n\t\t},\n\n\t\tset_employees(state: any, employees: any) {\n\t\t\tstate.employees = employees\n\n\t\t\t// TODO: Remove\n\t\t\t// const employee = employees.find(employee => employee.email == 'zachariah.vonrueden@jandl.sk')\n\t\t\t// store.commit('auth/auth_success', {\n\t\t\t// \tuser: employee\n\t\t\t// })\n\t\t},\n\n\t\tset_teams(state: any, teams: any) {\n\t\t\tstate.teams = teams\n\t\t},\n\n\t\tset_projects(state: any, projects: any) {\n\t\t\tstate.projects = projects\n\t\t},\n\n\t\tset_unscheduled_subtasks(state: any, subtasks: any) {\n\t\t\tstate.unscheduledSubtasks = subtasks\n\t\t},\n\n\t\tset_ongoing_subtasks(state: any, subtasks: any) {\n\t\t\tstate.ongoingSubtasks = subtasks\n\t\t},\n\n\t\tupdate_team(state: any, team: any) {\n\t\t\tstate.teams = state.teams.map(t => {\n\t\t\t\tif (t.id == team.id)\n\t\t\t\t\treturn team\n\n\t\t\t\treturn t\n\t\t\t})\n\t\t},\n\n\t\tsave_team(state: any, team: any) {\n\t\t\tstate.teams.push(team)\n\t\t},\n\n\t\tdelete_team(state: any, team: any) {\n\t\t\tstate.teams = state.teams.filter(t => t.id != team.id)\n\t\t},\n\n\t\tupdate_subtask(state: any, subtask: any) {\n\t\t\tstate.unscheduledSubtasks \t= state.unscheduledSubtasks.map(st \t\t=> st.id == subtask.id ? subtask : st)\n\t\t\tstate.ongoingSubtasks \t\t= state.ongoingSubtasks.map(st \t\t\t=> st.id == subtask.id ? subtask : st)\n\t\t\t\n\t\t\tstate.mastertasks \t\t\t= state.mastertasks.map(mastertask \t\t=> {\n\t\t\t\tmastertask.subtasks \t= mastertask.subtasks.map(st => st.id == subtask.id ? subtask : st)\n\t\t\t\treturn mastertask\n\t\t\t})\n\t\t},\n\n\t\tdelete_subtask(state: any, subtask: any) {\n\t\t\tstate.unscheduledSubtasks \t= state.unscheduledSubtasks.filter(st \t=> st.id != subtask.id)\n\t\t\tstate.ongoingSubtasks \t\t= state.ongoingSubtasks.filter(st \t\t=> st.id != subtask.id)\n\n\t\t\tstate.mastertasks \t\t\t= state.mastertasks.map(mastertask \t\t=> {\n\t\t\t\tmastertask.subtasks = mastertask.subtasks.filter(st => st.id != subtask.id)\n\t\t\t\treturn mastertask\n\t\t\t})\n\t\t},\n\n\t\tinitialized(state: any) {\n\t\t\tstate.initialized = true\n\t\t}\n\t},\n\n\tactions: {\n\t\tinitialize({dispatch, commit}: {dispatch: any, commit: any}) {\n\t\t\treturn Promise.all([\n\t\t\t\tdispatch('loadMastertasks'),\n\t\t\t\tdispatch('loadEmployees'),\n\t\t\t\tdispatch('loadTeams'),\n\t\t\t\tdispatch('loadProjects'),\n\t\t\t\tdispatch('loadUnscheduledSubtasks'),\n\t\t\t\tdispatch('loadOngoingSubtasks')\n\t\t\t]).then(() => commit('initialized'))\n\t\t},\n\n\t\treloadSubtasks({dispatch}: {dispatch: any}) {\n\t\t\treturn Promise.all([\n\t\t\t\tdispatch('loadMastertasks'),\n\t\t\t\tdispatch('loadProjects'),\n\t\t\t\tdispatch('loadUnscheduledSubtasks'),\n\t\t\t\tdispatch('loadOngoingSubtasks')\n\t\t\t])\n\t\t},\n\n\t\treloadMastertasks({dispatch}: {dispatch: any}) {\n\t\t\treturn Promise.all([\n\t\t\t\tdispatch('loadMastertasks')\n\t\t\t])\n\t\t},\n\n\t\tloadMastertasks({commit}: {commit: any}) {\n\t\t\treturn new Promise((resolve, reject) => {\n\t\t\t\taxios.get_auth('v1/mastertasks')\n\t\t\t\t\t.then(({ mastertasks }) => {\n\t\t\t\t\t\tcommit('set_mastertasks', mastertasks)\n\t\t\t\t\t\tresolve(mastertasks)\n\t\t\t\t\t})\n\t\t\t\t\t.catch(error => {\n\t\t\t\t\t\tcommit('set_mastertasks', {error: error})\n\t\t\t\t\t\treject(error)\n\t\t\t\t\t})\n\t\t\t})\n\t\t},\n\n\t\tloadEmployees({commit}: {commit: any}) {\n\t\t\treturn new Promise((resolve, reject) => {\n\t\t\t\taxios.get_auth_data('v1/employees')\n\t\t\t\t\t.then(employees => {\n\t\t\t\t\t\tcommit('set_employees', employees)\n\t\t\t\t\t\tresolve(employees)\n\t\t\t\t\t})\n\t\t\t\t\t.catch(error => {\n\t\t\t\t\t\tcommit('set_employees', {error: error})\n\t\t\t\t\t\treject(error)\n\t\t\t\t\t})\n\t\t\t})\n\t\t\t\n\t\t},\n\n\t\tloadTeams({commit}: {commit: any}) {\n\t\t\treturn new Promise((resolve, reject) => {\n\t\t\t\taxios.get_auth_data('v1/teams')\n\t\t\t\t\t.then(teams => {\n\t\t\t\t\t\tcommit('set_teams', teams)\n\t\t\t\t\t\tresolve(teams)\n\t\t\t\t\t})\n\t\t\t\t\t.catch(error => {\n\t\t\t\t\t\tcommit('set_teams', {error: error})\n\t\t\t\t\t\treject(error)\n\t\t\t\t\t})\n\t\t\t})\n\t\t},\n\n\t\tloadProjects({commit}: {commit: any}) {\n\t\t\treturn new Promise((resolve, reject) => {\n\t\t\t\taxios.get_auth_data('v1/projects')\n\t\t\t\t\t.then(project => {\n\t\t\t\t\t\tcommit('set_projects', project)\n\t\t\t\t\t\tresolve(project)\n\t\t\t\t\t})\n\t\t\t\t\t.catch(error => {\n\t\t\t\t\t\tcommit('set_projects', {error: error})\n\t\t\t\t\t\treject(error)\n\t\t\t\t\t})\n\t\t\t})\n\t\t\t\n\t\t},\n\n\t\tloadUnscheduledSubtasks({commit}: {commit: any}, employeeId = store.getters['auth/user']?.id) {\n\t\t\treturn new Promise((resolve, reject) => {\n\t\t\t\taxios.get_auth(`v1/subtasks?type=unscheduled&employee_id=${employeeId}`)\n\t\t\t\t\t.then(({subtasks}) => {\n\t\t\t\t\t\tcommit('set_unscheduled_subtasks', subtasks)\n\t\t\t\t\t\tresolve(subtasks)\n\t\t\t\t\t})\n\t\t\t\t\t.catch(error => {\n\t\t\t\t\t\tcommit('set_unscheduled_subtasks', {error: error})\n\t\t\t\t\t\treject(error)\n\t\t\t\t\t})\n\t\t\t})\n\t\t},\n\n\t\tloadOngoingSubtasks({commit}: {commit: any}, employeeId = store.getters['auth/user']?.id) {\n\t\t\treturn new Promise((resolve, reject) => {\n\t\t\t\taxios.get_auth(`v1/subtasks?type=ongoing&employee_id=${employeeId}`)\n\t\t\t\t\t.then(({subtasks}) => {\n\t\t\t\t\t\tcommit('set_ongoing_subtasks', subtasks)\n\t\t\t\t\t\tresolve(subtasks)\n\t\t\t\t\t})\n\t\t\t\t\t.catch(error => {\n\t\t\t\t\t\tcommit('set_ongoing_subtasks', {error: error})\n\t\t\t\t\t\treject(error)\n\t\t\t\t\t})\n\t\t\t\t})\n\t\t}\n\n\t},\n\n\tgetters: {\n\t\tmastertasks: (state: any) => {\n\t\t\treturn state.mastertasks\n\t\t},\n\n\t\temployees: (state: any) => {\n\t\t\treturn state.employees\n\t\t},\n\n\t\tenrichedEmployees: (state: any) => {\n\t\t\tif (!state.employees) return []\n\t\t\t\n\t\t\treturn state.employees.map(employee => ({\n\t\t\t\t...employee, \n\t\t\t\t_fullName: `${ employee.name } ${ employee.surname }`,\n\t\t\t\t_initials: employee.name.charAt(0) + employee.surname.charAt(0)\n\t\t\t})).sort((a, b) => a.name < b.name ? -1 : 1)\n\t\t},\n\n\t\tteams: (state: any) => {\n\t\t\treturn state.teams\n\t\t},\n\n\t\tprojects: (state: any) => {\n\t\t\treturn state.projects\n\t\t},\n\n\t\tunscheduledSubtasks: (state: any) => {\n\t\t\treturn state.unscheduledSubtasks\n\t\t},\n\n\t\tongoingSubtasks: (state: any) => {\n\t\t\treturn state.ongoingSubtasks\n\t\t},\n\n\t\tisInitialized: (state: any) => {\n\t\t\treturn state.initialized\n\t\t}\n\t}\n}","import { App } \t\tfrom 'vue'\nimport tmStore \tfrom './store'\n\nexport default {\n\tinstall: (app: App) => {\n\t\tapp.config.globalProperties.$store.registerModule('tm', tmStore)\n\t}\n}","\n\n\n","/**\n * Date Utils & prototypes.\n *\n * Waiting for VS Code to support JavaScript private fields.\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes/Class_fields\n * Meantime keep `_` for private.\n */\n\nlet now, todayDate, todayF, self\nlet _dateObject = {}\nlet _timeObject = {}\n\nexport default class DateUtils {\n texts = {}\n\n constructor (texts, noPrototypes = false) {\n self = this // For use in Date prototypes.\n this._texts = texts\n\n // Add prototypes ASAP - only once.\n if (!noPrototypes && Date && !Date.prototype.addDays) this._initDatePrototypes()\n\n // @todo: This would be nicer, but how to set Date.noPrototypes ASAP only if user wants?\n // if (Date.noPrototypes) delete Date.noPrototypes\n // else this._initDatePrototypes()\n }\n\n _initDatePrototypes () {\n /* eslint-disable no-extend-native */\n Date.prototype.addDays = function (days) { return self.addDays(this, days) }\n Date.prototype.subtractDays = function (days) { return self.subtractDays(this, days) }\n Date.prototype.addHours = function (hours) { return self.addHours(this, hours) }\n Date.prototype.subtractHours = function (hours) { return self.subtractHours(this, hours) }\n Date.prototype.addMinutes = function (minutes) { return self.addMinutes(this, minutes) }\n Date.prototype.subtractMinutes = function (minutes) { return self.subtractMinutes(this, minutes) }\n Date.prototype.getWeek = function () { return self.getWeek(this) }\n Date.prototype.isToday = function () { return self.isToday(this) }\n Date.prototype.isLeapYear = function () { return self.isLeapYear(this) }\n Date.prototype.format = function (format = 'YYYY-MM-DD') { return self.formatDate(this, format) }\n Date.prototype.formatTime = function (format = 'HH:mm') { return self.formatTime(this, format) }\n /* eslint-enable no-extend-native */\n }\n\n removePrototypes () {\n delete Date.prototype.addDays\n delete Date.prototype.subtractDays\n delete Date.prototype.addHours\n delete Date.prototype.subtractHours\n delete Date.prototype.addMinutes\n delete Date.prototype.subtractMinutes\n delete Date.prototype.getWeek\n delete Date.prototype.isToday\n delete Date.prototype.isLeapYear\n delete Date.prototype.format\n delete Date.prototype.formatTime\n }\n\n updateTexts (texts) {\n this._texts = texts\n }\n\n // Cache Today's date (to a maximum) for better isToday() performances. Formatted without leading 0.\n // We still need to update Today's date when Today changes without page refresh.\n _todayFormatted () {\n if (todayDate !== (new Date()).getDate()) {\n now = new Date()\n todayDate = now.getDate()\n todayF = `${now.getFullYear()}-${now.getMonth()}-${now.getDate()}`\n }\n\n return todayF\n }\n\n // UTILITIES.\n // ====================================================================\n addDays (date, days) {\n const d = new Date(date.valueOf())\n d.setDate(d.getDate() + days)\n return d\n }\n\n subtractDays (date, days) {\n const d = new Date(date.valueOf())\n d.setDate(d.getDate() - days)\n return d\n }\n\n addHours (date, hours) {\n const d = new Date(date.valueOf())\n d.setHours(d.getHours() + hours)\n return d\n }\n\n subtractHours (date, hours) {\n const d = new Date(date.valueOf())\n d.setHours(d.getHours() - hours)\n return d\n }\n\n addMinutes (date, minutes) {\n const d = new Date(date.valueOf())\n d.setMinutes(d.getMinutes() + minutes)\n return d\n }\n\n subtractMinutes (date, minutes) {\n const d = new Date(date.valueOf())\n d.setMinutes(d.getMinutes() - minutes)\n return d\n }\n\n getWeek (date) {\n const d = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate()))\n const dayNum = d.getUTCDay() || 7\n d.setUTCDate(d.getUTCDate() + 4 - dayNum)\n const yearStart = new Date(Date.UTC(d.getUTCFullYear(), 0, 1))\n return Math.ceil((((d - yearStart) / 86400000) + 1) / 7)\n }\n\n isToday (date) {\n return `${date.getFullYear()}-${date.getMonth()}-${date.getDate()}` === this._todayFormatted()\n }\n\n isLeapYear (date) {\n const year = date.getFullYear()\n return !(year % 400) || (year % 100 && !(year % 4))\n }\n\n // Returns today if it's FirstDayOfWeek (Monday or Sunday) or previous FirstDayOfWeek otherwise.\n getPreviousFirstDayOfWeek (date = null, weekStartsOnSunday) {\n const prevFirstDayOfWeek = (date && new Date(date.valueOf())) || new Date()\n const dayModifier = weekStartsOnSunday ? 7 : 6\n prevFirstDayOfWeek.setDate(prevFirstDayOfWeek.getDate() - (prevFirstDayOfWeek.getDay() + dayModifier) % 7)\n return prevFirstDayOfWeek\n }\n\n /**\n * Converts a string to a Javascript Date object. If a Date object is passed, return it as is.\n *\n * @param {String | Date} date the string to convert to Date.\n * @return {Date} the equivalent Javascript Date object.\n */\n stringToDate (date) {\n if (date instanceof Date) return date\n // Regexp way is less performant: https://jsperf.com/string-to-date-regexp-vs-new-date\n // const [, y, m, d, h = 0, min = 0] = date.match(/(\\d{4})-(\\d{2})-(\\d{2})(?: (\\d{2}):(\\d{2}))?/)\n // return new Date(y, parseInt(m) - 1, d, h, min)\n\n if (date.length === 10) date += ' 00:00'\n return new Date(date.replace(/-/g, '/')) // replace '-' with '/' for Safari.\n }\n\n /**\n * Simply takes a Date and returns the associated time in minutes (sum of hours + minutes).\n *\n * @param {Date} date the JavaScript Date to extract minutes from.\n * @return {Number} the number of minutes (total of hours plus minutes).\n */\n dateToMinutes = date => date.getHours() * 60 + date.getMinutes()\n\n /**\n * Count the number of days this date range spans onto.\n * E.g. countDays(2019-11-02 18:00, 2019-11-03 02:00) = 2\n *\n * @param {String | Date} start the start date\n * @param {String | Date} end the end date\n * @return {Integer} The number of days this date range involves\n */\n countDays (start, end) {\n // replace '-' with '/' for Safari.\n if (typeof start === 'string') start = start.replace(/-/g, '/')\n if (typeof end === 'string') end = end.replace(/-/g, '/')\n\n // Set start & end at midnight then compare the delta. Don't modify the original dates.\n start = (new Date(start)).setHours(0, 0, 0, 0)\n // Set end at midnight plus 1 sec, so Math.ceil will round it up to a full day.\n end = (new Date(end)).setHours(0, 0, 1, 0)\n\n // Remove the potential daylight saving delta.\n const timezoneDiffMs = (new Date(end).getTimezoneOffset() - new Date(start).getTimezoneOffset()) * 60 * 1000\n return Math.ceil((end - start - timezoneDiffMs) / (24 * 3600 * 1000))\n }\n\n /**\n * Take 2 dates and check if within the same time step (useful in overlapping events).\n *\n * @return {Boolean} `true` if their time is included in the same time step,\n * this means these 2 dates are very close.\n */\n datesInSameTimeStep (date1, date2, timeStep) {\n return Math.abs(date1.getTime() - date2.getTime()) <= timeStep * 60 * 1000\n }\n // ====================================================================\n\n // FORMATTERS.\n // ====================================================================\n /**\n * Formats a date/time to the given format and returns the formatted string.\n *\n * @param {Date} date a JavaScript Date object to format.\n * @param {String} format the wanted format.\n * @param {Object} texts Optional: the localized texts object to override the vue-cal one in this._texts.\n * This becomes useful when showing multiple instances with different languages,\n * like in the documentation page.\n * @return {String} the formatted date.\n */\n formatDate (date, format = 'YYYY-MM-DD', texts = null) {\n if (!texts) texts = this._texts\n if (!format) format = 'YYYY-MM-DD' // Allows passing null for default format.\n if (format === 'YYYY-MM-DD') return this.formatDateLite(date)\n\n // Reinit the date and time object on each function call.\n _dateObject = {}\n _timeObject = {}\n\n // Each keyword is a function to load the dateObject or timeObject on demand: no wasted resource.\n const dateObj = {\n YYYY: () => this._hydrateDateObject(date, texts).YYYY,\n YY: () => this._hydrateDateObject(date, texts).YY(),\n M: () => this._hydrateDateObject(date, texts).M,\n MM: () => this._hydrateDateObject(date, texts).MM(),\n MMM: () => this._hydrateDateObject(date, texts).MMM(),\n MMMM: () => this._hydrateDateObject(date, texts).MMMM(),\n MMMMG: () => this._hydrateDateObject(date, texts).MMMMG(),\n D: () => this._hydrateDateObject(date, texts).D,\n DD: () => this._hydrateDateObject(date, texts).DD(),\n S: () => this._hydrateDateObject(date, texts).S(),\n d: () => this._hydrateDateObject(date, texts).d,\n dd: () => this._hydrateDateObject(date, texts).dd(),\n ddd: () => this._hydrateDateObject(date, texts).ddd(),\n dddd: () => this._hydrateDateObject(date, texts).dddd(),\n HH: () => this._hydrateTimeObject(date, texts).HH,\n H: () => this._hydrateTimeObject(date, texts).H,\n hh: () => this._hydrateTimeObject(date, texts).hh,\n h: () => this._hydrateTimeObject(date, texts).h,\n am: () => this._hydrateTimeObject(date, texts).am,\n AM: () => this._hydrateTimeObject(date, texts).AM,\n mm: () => this._hydrateTimeObject(date, texts).mm,\n m: () => this._hydrateTimeObject(date, texts).m\n }\n\n return format.replace(/(\\{[a-zA-Z]+\\}|[a-zA-Z]+)/g, (m, contents) => {\n const result = dateObj[contents.replace(/\\{|\\}/g, '')]\n return result !== undefined ? result() : contents\n })\n }\n\n // More performant function to convert a Date to `YYYY-MM-DD` formatted string only.\n formatDateLite (date) {\n const m = date.getMonth() + 1\n const d = date.getDate()\n return `${date.getFullYear()}-${m < 10 ? '0' : ''}${m}-${d < 10 ? '0' : ''}${d}`\n }\n\n /**\n * Formats a time (from Date or number of mins) to the given format and returns the formatted string.\n *\n * @param {Date | Number} date a JavaScript Date object or a time in minutes.\n * @param {String} format the wanted format.\n * @param {Object} texts Optional: the localized texts object to override the vue-cal one in this._texts.\n * This becomes useful when showing multiple instances with different languages,\n * like in the documentation page.\n * @param {Boolean} round if time is 23:59:59, rounds up to 24:00 for formatting only.\n * @return {String} the formatted time.\n */\n formatTime (date, format = 'HH:mm', texts = null, round = false) {\n let shouldRound = false\n if (round) {\n const [h, m, s] = [date.getHours(), date.getMinutes(), date.getSeconds()]\n if ((h + m + s) === (23 + 59 + 59)) shouldRound = true\n }\n\n if (date instanceof Date && format === 'HH:mm') return shouldRound ? '24:00' : this.formatTimeLite(date)\n\n _timeObject = {} // Reinit the time object on each function call.\n if (!texts) texts = this._texts\n const timeObj = this._hydrateTimeObject(date, texts)\n\n const formatted = format.replace(/(\\{[a-zA-Z]+\\}|[a-zA-Z]+)/g, (m, contents) => {\n const result = timeObj[contents.replace(/\\{|\\}/g, '')]\n return result !== undefined ? result : contents\n })\n\n // Round 23:59:59 to 24:00. For 12-hour format there is nothing to replace: as both are 12am.\n // Also don't return `24:00` straight away as the user format may be different.\n return shouldRound ? formatted.replace('23:59', '24:00') : formatted\n }\n\n /**\n * Formats a time to 'HH:mm' from a Date and returns the formatted string.\n *\n * @param {Date} date a JavaScript Date object to format.\n * @return {String} the formatted time.\n */\n formatTimeLite (date) {\n const h = date.getHours()\n const m = date.getMinutes()\n return `${(h < 10 ? '0' : '') + h}:${(m < 10 ? '0' : '') + m}`\n }\n\n _nth (d) {\n if (d > 3 && d < 21) return 'th'\n switch (d % 10) {\n case 1: return 'st'\n case 2: return 'nd'\n case 3: return 'rd'\n default: return 'th'\n }\n }\n\n _hydrateDateObject (date, texts) {\n if (_dateObject.D) return _dateObject\n\n const YYYY = date.getFullYear()\n const M = date.getMonth() + 1\n const D = date.getDate()\n const day = date.getDay() // Day of the week.\n const dayNumber = (day - 1 + 7) % 7 // Day of the week. 0 to 6 with 6 = Sunday.\n // Some of this props are functions, to only calculate on demand.\n _dateObject = {\n // Year.\n YYYY, // 2019.\n YY: () => YYYY.toString().substring(2), // 19.\n\n // Month.\n M, // 1 to 12.\n MM: () => (M < 10 ? '0' : '') + M, // 01 to 12.\n MMM: () => texts.months[M - 1].substring(0, 3), // Jan to Dec.\n MMMM: () => texts.months[M - 1], // January to December.\n MMMMG: () => (texts.monthsGenitive || texts.months)[M - 1], // January to December in genitive form (Greek...)\n\n // Day.\n D, // 1 to 31.\n DD: () => (D < 10 ? '0' : '') + D, // 01 to 31.\n S: () => this._nth(D), // st, nd, rd, th.\n\n // Day of the week.\n d: dayNumber + 1, // 1 to 7 with 7 = Sunday.\n dd: () => texts.weekDays[dayNumber][0], // M to S.\n ddd: () => texts.weekDays[dayNumber].substr(0, 3), // Mon to Sun.\n dddd: () => texts.weekDays[dayNumber] // Monday to Sunday.\n }\n\n return _dateObject\n }\n\n _hydrateTimeObject (date, texts) {\n if (_timeObject.am) return _timeObject\n\n let H, m\n if (date instanceof Date) {\n H = date.getHours()\n m = date.getMinutes()\n }\n else {\n H = Math.floor(date / 60)\n m = Math.floor(date % 60)\n }\n\n const h = H % 12 ? H % 12 : 12\n const am = (texts || { am: 'am', pm: 'pm' })[H === 24 || H < 12 ? 'am' : 'pm']\n _timeObject = {\n H,\n h,\n HH: (H < 10 ? '0' : '') + H,\n hh: (h < 10 ? '0' : '') + h,\n am,\n AM: am.toUpperCase(),\n m,\n mm: (m < 10 ? '0' : '') + m\n }\n\n return _timeObject\n }\n // ====================================================================\n}\n","/**\n * Cell Utils.\n *\n * Waiting for VS Code to support JavaScript private fields.\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes/Class_fields\n * Meantime keep `_` for private.\n */\n\nconst minutesInADay = 24 * 60\n\nexport default class CellUtils {\n _vuecal = null\n\n constructor (vuecal) {\n this._vuecal = vuecal\n }\n\n /**\n * Select a cell and go to narrower view on double click or single click according to vuecalProps option.\n *\n * @param {Boolean} force Force switching to narrower view.\n * @param {Date} date The selected cell date at the exact time where it was clicked (through cursor coords).\n * @param {Integer} split The selected cell split if any.\n */\n selectCell = (force = false, date, split) => {\n // Cell-click event returns a date and time at cursor position.\n this._vuecal.$emit('cell-click', split ? { date, split } : date)\n\n // Switch to narrower view.\n if (this._vuecal.clickToNavigate || force) this._vuecal.switchToNarrowerView()\n\n // Handle double click manually for touch devices.\n else if (this._vuecal.dblclickToNavigate && 'ontouchstart' in window) {\n this._vuecal.domEvents.dblTapACell.taps++\n\n setTimeout(() => (this._vuecal.domEvents.dblTapACell.taps = 0), this._vuecal.domEvents.dblTapACell.timeout)\n\n if (this._vuecal.domEvents.dblTapACell.taps >= 2) {\n this._vuecal.domEvents.dblTapACell.taps = 0\n this._vuecal.switchToNarrowerView()\n this._vuecal.$emit('cell-dblclick', split ? { date, split } : date)\n }\n }\n }\n\n /**\n * Select a cell and go to narrower view on enter.\n *\n * @param {Boolean} force Force switching to narrower view.\n * @param {Date} date The selected cell date at the exact time where it was clicked (through cursor coords).\n * @param {Integer} split The selected cell split if any.\n */\n keyPressEnterCell = (date, split) => {\n // Cell-key-press-enter event returns a date and time at cursor position.\n this._vuecal.$emit('cell-keypress-enter', split ? { date, split } : date)\n\n // Switch to narrower view.\n this._vuecal.switchToNarrowerView()\n }\n\n /**\n * Get the coordinates of the mouse cursor from the cells wrapper referential (`ref=\"cells\"`).\n *\n * @todo Cache bounding box & update it on resize.\n * @param {Object} e the native DOM event object.\n * @return {Object} containing { x: {Number}, y: {Number} }\n */\n getPosition = e => {\n const { left, top } = this._vuecal.cellsEl.getBoundingClientRect()\n const { clientX, clientY } = 'ontouchstart' in window && e.touches ? e.touches[0] : e\n return { x: clientX - left, y: clientY - top }\n }\n\n /**\n * Get the number of minutes from the top to the mouse cursor.\n * Returns a constrained time between 0 and 24 * 60.\n *\n * @param {Object} e the native DOM event object.\n * @return {Object} containing { minutes: {Number}, cursorCoords: { x: {Number}, y: {Number} } }\n */\n minutesAtCursor = e => {\n let minutes = 0\n let cursorCoords = { x: 0, y: 0 }\n const { timeStep, timeCellHeight, timeFrom } = this._vuecal.$props\n\n if (typeof e === 'number') minutes = e\n else if (typeof e === 'object') {\n cursorCoords = this.getPosition(e)\n minutes = Math.round(cursorCoords.y * timeStep / parseInt(timeCellHeight) + timeFrom)\n }\n\n return { minutes: Math.max(Math.min(minutes, minutesInADay), 0), cursorCoords }\n }\n}\n","/**\n * Events Utils.\n *\n * Waiting for VS Code to support JavaScript private fields.\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes/Class_fields\n * Meantime keep `_` for private.\n */\n\nconst defaultEventDuration = 2 // In hours.\nconst minutesInADay = 24 * 60 // Don't do the maths every time.\n\nlet ud\n\n// Event overlaps: only for the current view, recreated on view change.\nlet _cellOverlaps, _comparisonArray\n\n// This is an approximation, it will not work with DLS time.\n// const approxDayMilliseconds = minutesInADay * 60 * 1000\n// This is an approximate minimum we can get in a year. Purposely stay below 365 but close.\n// const minYearMilliseconds = 364 * approxDayMilliseconds // Don't do the maths every time.\n\nexport default class EventUtils {\n _vuecal = null\n\n eventDefaults = {\n _eid: null,\n start: '', // Externally given formatted date & time or Date object.\n startTimeMinutes: 0,\n end: '', // Externally given formatted date & time or Date object.\n endTimeMinutes: 0,\n title: '',\n content: '',\n background: false,\n allDay: false,\n segments: null,\n repeat: null,\n daysCount: 1,\n deletable: true,\n deleting: false,\n titleEditable: true,\n resizable: true,\n resizing: false,\n draggable: true,\n dragging: false,\n draggingStatic: false, // Controls the CSS class of the static clone while dragging.\n focused: false,\n class: ''\n }\n\n constructor (vuecal, dateUtils) {\n this._vuecal = vuecal\n ud = dateUtils\n }\n\n /**\n * Create an event at the given date and time, and allow overriding\n * event attributes through the eventOptions object.\n *\n * @param {Date | String} dateTime The date and time of the new event start.\n * @param {Number} duration the event duration in minutes.\n * @param {Object} eventOptions some options to override the `eventDefaults` - optional.\n */\n createAnEvent (dateTime, duration, eventOptions) {\n if (typeof dateTime === 'string') dateTime = ud.stringToDate(dateTime)\n if (!(dateTime instanceof Date)) return false\n\n const startTimeMinutes = ud.dateToMinutes(dateTime)\n duration = duration * 1 || defaultEventDuration * 60\n const endTimeMinutes = startTimeMinutes + duration\n const end = ud.addMinutes(new Date(dateTime), duration)\n\n // Automatically add the required endTimeMinutes when passing an end.\n if (eventOptions.end) {\n if (typeof eventOptions.end === 'string') eventOptions.end = ud.stringToDate(eventOptions.end)\n eventOptions.endTimeMinutes = ud.dateToMinutes(eventOptions.end)\n }\n\n const event = {\n ...this.eventDefaults,\n _eid: `${this._vuecal._.uid}_${this._vuecal.eventIdIncrement++}`,\n start: dateTime,\n startTimeMinutes,\n end,\n endTimeMinutes,\n segments: null,\n ...eventOptions\n }\n\n // If the onEventCreate() function is given as a parameter to vue-cal:\n // 1. give it access to the created event & the deleteAnEvent() function.\n // 2. Prevent creation of the event if this function returns false.\n if (typeof this._vuecal.onEventCreate === 'function') {\n if (!this._vuecal.onEventCreate(event, () => this.deleteAnEvent(event))) return\n }\n\n // Check if event is a multiple day event and update days count.\n if (event.startDateF !== event.endDateF) {\n event.daysCount = ud.countDays(event.start, event.end)\n }\n\n // Add event to the mutableEvents array.\n this._vuecal.mutableEvents.push(event)\n\n // Add the new event to the current view.\n // The event may have been edited on the fly to become a multiple-day event,\n // the method addEventsToView makes sure the segments are created.\n this._vuecal.addEventsToView([event])\n\n this._vuecal.emitWithEvent('event-create', event)\n this._vuecal.$emit('event-change', { event: this._vuecal.cleanupEvent(event), originalEvent: null })\n\n return event\n }\n\n /**\n * Add an event segment (= day) to a multiple-day event.\n *\n * @param {Object} e the multiple-day event to add segment in.\n */\n addEventSegment (e) {\n // If event was previously single-day, event.segments = null,\n // so first create the first segment (first day).\n if (!e.segments) {\n e.segments = {}\n e.segments[ud.formatDateLite(e.start)] = {\n start: e.start,\n startTimeMinutes: e.startTimeMinutes,\n endTimeMinutes: minutesInADay,\n isFirstDay: true,\n isLastDay: false\n }\n }\n\n // Modify the last segment - which will not stay the last one after this function.\n const previousSegment = e.segments[ud.formatDateLite(e.end)]\n // previousSegment might not exist when dragging too fast, prevent errors.\n if (previousSegment) {\n previousSegment.isLastDay = false\n previousSegment.endTimeMinutes = minutesInADay\n }\n else {\n // @todo: when moving fast might lose the previousSegment.\n // Trying to update it would then result in an error, but do nothing would create a visual bug.\n }\n\n // Create the new last segment.\n const start = ud.addDays(e.end, 1)\n const formattedDate = ud.formatDateLite(start)\n start.setHours(0, 0, 0, 0)\n e.segments[formattedDate] = {\n start,\n startTimeMinutes: 0,\n endTimeMinutes: e.endTimeMinutes,\n isFirstDay: false,\n isLastDay: true\n }\n\n e.end = ud.addMinutes(start, e.endTimeMinutes)\n e.daysCount = Object.keys(e.segments).length\n\n return formattedDate\n }\n\n /**\n * Remove an event segment (= day) from a multiple-day event.\n *\n * @param {Object} e the multiple-day event to remove segments from.\n */\n removeEventSegment (e) {\n let segmentsCount = Object.keys(e.segments).length\n if (segmentsCount <= 1) return ud.formatDateLite(e.end)\n\n // Remove the last segment.\n delete e.segments[ud.formatDateLite(e.end)]\n segmentsCount--\n\n const end = ud.subtractDays(e.end, 1)\n const formattedDate = ud.formatDateLite(end)\n const previousSegment = e.segments[formattedDate]\n\n // If no more segments, reset the segments attribute to null.\n if (!segmentsCount) e.segments = null\n\n // previousSegment might not exist when dragging too fast, prevent errors.\n else if (previousSegment) {\n // Modify the new last segment.\n previousSegment.isLastDay = true\n previousSegment.endTimeMinutes = e.endTimeMinutes\n }\n else {\n // @todo: when moving fast might lose the previousSegment.\n // Trying to update it would then result in an error, but do nothing would create a visual bug.\n }\n\n e.daysCount = segmentsCount || 1\n e.end = end\n\n return formattedDate\n }\n\n /**\n * Create 1 segment per day of the given event, but only within the current view.\n * (It won't create segments for all the days in view that are not in the event!)\n *\n * An event segment is a piece of event per day that contains more day-specific data.\n *\n * @param {Object} e the multiple-day event to create segments for.\n * @param {Date} viewStartDate the starting date of the view.\n * @param {Date} viewEndDate the ending date of the view.\n */\n createEventSegments (e, viewStartDate, viewEndDate) {\n const viewStartTimestamp = viewStartDate.getTime()\n const viewEndTimestamp = viewEndDate.getTime()\n let eventStart = e.start.getTime()\n let eventEnd = e.end.getTime()\n let repeatedEventStartFound = false\n let timestamp, end, eventStartAtMidnight\n\n // @todo: I don't think we still need that:\n // Removing 1 sec when ending at 00:00, so that we don't create a segment for nothing on last day.\n if (!e.end.getHours() && !e.end.getMinutes()) eventEnd -= 1000\n\n e.segments = {}\n\n // The goal is to create 1 segment per day in the event, but only within the current view.\n if (!e.repeat) { // Simple case first.\n timestamp = Math.max(viewStartTimestamp, eventStart)\n end = Math.min(viewEndTimestamp, eventEnd)\n }\n else {\n // Start at the beginning of the range, and end at soonest between `repeat.until` if any or range end.\n // This range will most likely be too large (e.g. whole week) and we need to narrow it\n // down in the while loop below.\n // We must not create unused segments, it would break the render or result in weird behaviors.\n timestamp = viewStartTimestamp\n end = Math.min(\n viewEndTimestamp,\n e.repeat.until ? ud.stringToDate(e.repeat.until).getTime() : viewEndTimestamp\n )\n }\n\n while (timestamp <= end) {\n let createSegment = false\n // Be careful not to simply add 24 hours!\n // In case of DLS, that would cause the event to never end and browser to hang.\n // So use `addDays(1)` instead.\n const nextMidnight = ud.addDays(new Date(timestamp), 1).setHours(0, 0, 0, 0)\n let isFirstDay, isLastDay, start, formattedDate\n\n if (e.repeat) {\n const tmpDate = new Date(timestamp)\n const tmpDateFormatted = ud.formatDateLite(tmpDate)\n // If the current day in loop is a known date of the repeated event (in `e.occurrences`),\n // then we found the first day of the event repetition, now update the `eventStart` and\n // the end of the loop at current day + event days count.\n if (repeatedEventStartFound || (e.occurrences && e.occurrences[tmpDateFormatted])) {\n if (!repeatedEventStartFound) {\n eventStart = e.occurrences[tmpDateFormatted].start\n eventStartAtMidnight = new Date(eventStart).setHours(0, 0, 0, 0)\n eventEnd = e.occurrences[tmpDateFormatted].end\n }\n repeatedEventStartFound = true\n createSegment = true\n }\n\n isFirstDay = timestamp === eventStartAtMidnight\n isLastDay = tmpDateFormatted === ud.formatDateLite(new Date(eventEnd))\n start = new Date(isFirstDay ? eventStart : timestamp)\n formattedDate = ud.formatDateLite(start)\n // We want to find any potential other repetition of event in same range.\n if (isLastDay) repeatedEventStartFound = false\n }\n else {\n createSegment = true\n isFirstDay = timestamp === eventStart\n isLastDay = end === eventEnd && nextMidnight > end\n start = isFirstDay ? e.start : new Date(timestamp)\n formattedDate = ud.formatDateLite(isFirstDay ? e.start : start)\n }\n\n if (createSegment) {\n e.segments[formattedDate] = {\n start,\n startTimeMinutes: isFirstDay ? e.startTimeMinutes : 0,\n endTimeMinutes: isLastDay ? e.endTimeMinutes : minutesInADay,\n isFirstDay,\n isLastDay\n }\n }\n\n timestamp = nextMidnight\n }\n\n return e\n }\n\n /**\n * Delete an event.\n *\n * @param {Object} event the calendar event to delete.\n */\n deleteAnEvent (event) {\n this._vuecal.emitWithEvent('event-delete', event)\n\n // Delete the event globally.\n this._vuecal.mutableEvents = this._vuecal.mutableEvents.filter(e => e._eid !== event._eid)\n // Delete the event from the current view.\n // checkCellOverlappingEvents() will be re-run automatically from the cell computed events.\n this._vuecal.view.events = this._vuecal.view.events.filter(e => e._eid !== event._eid)\n }\n\n // EVENT OVERLAPS.\n // ===================================================================\n // Will recalculate all the overlaps of the current cell OR split.\n // cellEvents will contain only the current split events if in a split.\n checkCellOverlappingEvents (cellEvents, options) {\n _comparisonArray = cellEvents.slice(0)\n _cellOverlaps = {}\n\n // Can't filter background events before calling this function otherwise\n // when an event is changed to background it would not update its previous overlaps.\n cellEvents.forEach(e => {\n // For performance, never compare the current event in the next loops.\n // The array is smaller and smaller as we loop.\n _comparisonArray.shift()\n\n if (!_cellOverlaps[e._eid]) _cellOverlaps[e._eid] = { overlaps: [], start: e.start, position: 0, sameOverlaps: [] }\n _cellOverlaps[e._eid].position = 0\n\n _comparisonArray.forEach(e2 => {\n if (!_cellOverlaps[e2._eid]) _cellOverlaps[e2._eid] = { overlaps: [], start: e2.start, position: 0, sameOverlaps: [] }\n\n const eventIsInRange = this.eventInRange(e2, e.start, e.end)\n const eventSameOverlap = this.eventSameRange(e2, e)\n const eventsInSameTimeStep = options.overlapsPerTimeStep ? ud.datesInSameTimeStep(e.start, e2.start, options.timeStep) : 1\n // Add to the overlaps array if overlapping.\n if (!e.background && !e.allDay && !e2.background && !e2.allDay && eventIsInRange && eventsInSameTimeStep) {\n _cellOverlaps[e._eid].overlaps.push(e2._eid)\n _cellOverlaps[e._eid].overlaps = [...new Set(_cellOverlaps[e._eid].overlaps)] // Dedupe, most performant way.\n\n _cellOverlaps[e2._eid].overlaps.push(e._eid)\n _cellOverlaps[e2._eid].overlaps = [...new Set(_cellOverlaps[e2._eid].overlaps)] // Dedupe, most performant way.\n _cellOverlaps[e2._eid].position++\n \n if (eventSameOverlap) {\n _cellOverlaps[e._eid].sameOverlaps.push(e2._eid)\n _cellOverlaps[e._eid].sameOverlaps = [...new Set(_cellOverlaps[e._eid].sameOverlaps)] // Dedupe, most performant way.\n\n _cellOverlaps[e2._eid].sameOverlaps.push(e._eid)\n _cellOverlaps[e2._eid].sameOverlaps = [...new Set(_cellOverlaps[e2._eid].sameOverlaps)] // Dedupe, most performant way.\n }\n }\n // Remove from the overlaps array if not overlapping or if 1 of the 2 events is background or all-day long.\n else {\n let pos1, pos2\n if ((pos1 = (_cellOverlaps[e._eid] || { overlaps: [] }).overlaps.indexOf(e2._eid)) > -1) _cellOverlaps[e._eid].overlaps.splice(pos1, 1)\n if ((pos2 = (_cellOverlaps[e2._eid] || { overlaps: [] }).overlaps.indexOf(e._eid)) > -1) _cellOverlaps[e2._eid].overlaps.splice(pos2, 1)\n _cellOverlaps[e2._eid].position--\n }\n })\n })\n\n // Overlaps streak is the longest horizontal set of simultaneous events.\n // This is determining the width of events in a streak.\n // e.g. 3 overlapping events in a cell:\n // ___ ___\n // | 1 | |_2_| 1 overlaps 2 & 3; 2 & 3 don't overlap;\n // | | ___ => streak = 2; each width = 50% not 33%.\n // |___| |_3_|\n let longestStreak = 0\n for (const id in _cellOverlaps) {\n const item = _cellOverlaps[id]\n\n // Calculate the position of each event in current streak (determines the CSS left property).\n const overlapsRow = item.overlaps.map(id2 => ({ id: id2, start: _cellOverlaps[id2].start }))\n overlapsRow.push({ id, start: item.start })\n overlapsRow.sort((a, b) => a.start < b.start ? -1 : (a.start > b.start ? 1 : (a.id > b.id ? -1 : 1)))\n item.position = overlapsRow.findIndex(e => e.id === id)\n\n longestStreak = Math.max(this.getOverlapsStreak(item, _cellOverlaps), longestStreak)\n }\n\n // console.log([_cellOverlaps, longestStreak])\n\n return [_cellOverlaps, longestStreak]\n }\n\n /**\n * Overlaps streak is the longest horizontal set of simultaneous events.\n * This is determining the width of each events in this streak.\n * E.g. 3 overlapping events [1, 2, 3]; 1 overlaps 2 & 3; 2 & 3 don't overlap;\n * => streak = 2; each width = 50% not 33%.\n *\n * @param {Object} event The current event we are checking among all the events of the current cell.\n * @param {Object} cellOverlaps An indexed array of all the events overlaps for the current cell.\n * @return {Number} The number of simultaneous event for this event.\n */\n getOverlapsStreak (event, cellOverlaps = {}) {\n let streak = event.overlaps.length + 1\n let removeFromStreak = []\n event.overlaps.forEach(id => {\n if (!removeFromStreak.includes(id)) {\n const overlapsWithoutSelf = event.overlaps.filter(id2 => id2 !== id)\n overlapsWithoutSelf.forEach(id3 => {\n if (!cellOverlaps[id3].overlaps.includes(id)) removeFromStreak.push(id3)\n })\n }\n })\n\n removeFromStreak = [...new Set(removeFromStreak)] // Dedupe, most performant way.\n streak -= removeFromStreak.length\n return streak\n }\n\n /**\n * Tells whether an event is in a given date range, even partially.\n *\n * @param {Object} event The event to test.\n * @param {Date} start The start of range date object.\n * @param {Date} end The end of range date object.\n * @return {Boolean} true if in range, even partially.\n */\n eventInRange (event, start, end) {\n // Check if all-day or timeless event (if date but no time there won't be a `:` in event.start).\n if (event.allDay || !this._vuecal.time) {\n // Get the date and discard the time if any, then check it's within the date range.\n const startTimestamp = new Date(event.start).setHours(0, 0, 0, 0)\n const endTimestamp = new Date(event.end).setHours(23, 59, 0, 0)\n return (endTimestamp >= new Date(start).setHours(0, 0, 0, 0) &&\n startTimestamp <= new Date(end).setHours(0, 0, 0, 0))\n }\n\n const startTimestamp = event.start.getTime()\n const endTimestamp = event.end.getTime()\n return startTimestamp < end.getTime() && endTimestamp > start.getTime()\n }\n\n eventSameRange(event1, event2) {\n const isSameStart = event1.start.getTime() == event2.start.getTime()\n const isSameEnd = event1.end.getTime() == event2.end.getTime()\n return isSameStart && isSameEnd\n }\n}\n","
{{ split.label }}
","
","import { render } from \"./weekdays-headings.vue?vue&type=template&id=339102eb&lang=pug\"\nimport script from \"./weekdays-headings.vue?vue&type=script&lang=js\"\nexport * from \"./weekdays-headings.vue?vue&type=script&lang=js\"\n\nimport \"./weekdays-headings.vue?vue&type=style&index=0&id=339102eb&lang=scss\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./header.vue?vue&type=template&id=19ea4718&lang=pug\"\nimport script from \"./header.vue?vue&type=script&lang=js\"\nexport * from \"./header.vue?vue&type=script&lang=js\"\n\nimport \"./header.vue?vue&type=style&index=0&id=19ea4718&lang=scss\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","
{{ label }}
","
{{ cell.label }}\n
","
{{ vuecal.texts.deleteEvent }}
","import { render } from \"./event.vue?vue&type=template&id=22b11fb6&lang=pug\"\nimport script from \"./event.vue?vue&type=script&lang=js\"\nexport * from \"./event.vue?vue&type=script&lang=js\"\n\nimport \"./event.vue?vue&type=style&index=0&id=22b11fb6&lang=scss\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./cell.vue?vue&type=template&id=25383531&lang=pug\"\nimport script from \"./cell.vue?vue&type=script&lang=js\"\nexport * from \"./cell.vue?vue&type=script&lang=js\"\n\nimport \"./cell.vue?vue&type=style&index=0&id=25383531&lang=scss\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./all-day-bar.vue?vue&type=template&id=1fec77b5&lang=pug\"\nimport script from \"./all-day-bar.vue?vue&type=script&lang=js\"\nexport * from \"./all-day-bar.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./index.vue?vue&type=template&id=59399e28\"\nimport script from \"./index.vue?vue&type=script&lang=js\"\nexport * from \"./index.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { App } \t\tfrom 'vue'\nimport VueCal from './index.vue'\n\n\nexport default {\n\tinstall: (app: App) => {\n\n\t\tapp.component('Vue-cal', VueCal)\n\t}\n}","import { createApp } \tfrom 'vue'\nimport { IonicVue } \tfrom '@ionic/vue'\nimport { loadFonts } \tfrom './webfontloader'\nimport vuetify \t\t\tfrom './vuetify'\nimport loader \t\t\tfrom 'vue-loading-overlay'\nimport App \t\t\t\tfrom './App.vue'\n\nimport router \t\t\tfrom './router'\nimport store \t\t\tfrom '@/store'\nimport w \t\t\t\tfrom '@/plugins/w/w'\nimport axiosCustom from '@/plugins/w@custom/axios'\nimport tmStore \t\t\tfrom '@/plugins/tm@_store'\nimport vueCal \t\t\tfrom '@/plugins/app@vendor/vue-cal'\nimport { Options } \t\tfrom '@/plugins/w/w/types'\n\nimport '@ionic/vue/css/core.css'\nimport '@ionic/vue/css/normalize.css'\nimport '@ionic/vue/css/structure.css'\nimport '@ionic/vue/css/typography.css'\nimport '@ionic/vue/css/padding.css'\nimport '@ionic/vue/css/float-elements.css'\nimport '@ionic/vue/css/text-alignment.css'\nimport '@ionic/vue/css/text-transformation.css'\nimport '@ionic/vue/css/flex-utils.css'\nimport '@ionic/vue/css/display.css'\n\nimport '@/plugins/app/_theme/index.sass'\nimport 'vue-loading-overlay/dist/vue-loading.css'\nimport '@vuepic/vue-datepicker/dist/main.css'\n\nloadFonts()\n\nconst options: Options = {\n\taxios: {\n\t\tdisabled: true\n\t},\n\ti18n: {\n\t\tlanguages: [\n\t\t\t{\n\t\t\t\ttitle: \"Slovenský\", flag: \"sk\", value: \"sk\"\n\t\t\t}\n\t\t],\n\t\tdefaultLanguage: 'sk'\n\t},\n\tmoxios: {\n\t\troutes: {\n\t\t\t// 'GET v1/auth/info': true,\n\t\t\t// 'POST v1/auth/forgot': true,\n\t\t\t// 'POST v1/auth/reset': true,\n\t\t\t// 'POST v1/auth/info': true,\n\t\t\t// 'POST v1/auth/invalidate': true,\n\t\t\t// 'POST v1/auth/login': true,\n\t\t\t// 'POST v1/auth/post': true,\n\n\t\t\t'GET v1/overview/teams': true,\n\t\t\t'GET v1/overview/tasks': true,\n\t\t\t// 'GET v1/search': true,\n\t\t}\n\t}\n}\n\nconst app = createApp(App)\n\t.use(router)\n\t.use(store)\n\t.use(axiosCustom)\n\t.use(w, options)\n\t.use(IonicVue)\n\t.use(vuetify)\n\t.use(vueCal)\n\t.use(tmStore)\n\t.use(loader, {\n\t\tcolor: '#6200EE'\n\t})\n\t.mount('#app')\n\n// @ts-expect-error\nexport const $t = app.$i18n.t\n","import { $t } from '@/plugins/app/_config/main'\n\nexport default {\n\tparseErrors(errors) {\n\t\t// @ts-expect-error\n\t\treturn Object.values(errors).map(error => $t(error?.$message)).join('. ')\n\t}\n}","export default {\n\tmethods: {\n\t\tcustomFilter(item, input) {\n\t\t\t// Replace accented characters with non-accented equivalents\n\t\t\tconst normalizedItem = item.normalize('NFD').replace(/[\\u0300-\\u036f]/g, '');\n\t\t\tconst normalizedInput = input.normalize('NFD').replace(/[\\u0300-\\u036f]/g, '');\n\t\t\t\n\t\t\t// Remove any character that is not a letter, number, or space from both the item and the input\n\t\t\tconst pattern = /[^a-zA-Z0-9 ]/g;\n\t\t\tconst cleanedItem = normalizedItem.replace(pattern, '');\n\t\t\tconst cleanedInput = normalizedInput.replace(pattern, '');\n\t\t\t\n\t\t\t// Check if the cleaned item starts with the cleaned input and return empty value for dropdown if present\n\t\t\treturn cleanedItem.toLowerCase().includes(cleanedInput.toLowerCase()) || item === '';\n\t\t}\n\t}\n}","import moment from 'moment'\n\nexport default {\n\tenrichEmployees(employees) {\n\t\treturn employees.map(employee => ({\n\t\t\t...employee, \n\t\t\t_fullName: `${ employee.name } ${ employee.surname }`,\n\t\t\t_initials: employee.name.charAt(0) + employee.surname.charAt(0)\n\t\t}))\n\t},\n\n\tformatDateTime(date) {\n\t\tmoment(date)\n\t\treturn moment(date).format('DD.MM.yyyy, HH:mm')\n\t},\n\n\tformatDateTimeForBackend(date) {\n\t\treturn moment(date).format('YYYY-MM-DD HH:mm:ss')\n\t},\n\n\tformatDate(date) {\n\t\treturn moment(date).format('DD.MM.yyyy')\n\t},\n\n\tisBefore(date, compareTo = null) {\n\t\treturn moment(date).isBefore(moment(compareTo))\n\t},\n\n\tisAfter(date, compareTo = moment()) {\n\t\treturn moment(date).isAfter(moment(compareTo))\n\t}\n}","var map = {\n\t\"./en.json\": 20790,\n\t\"./sk.json\": 71941\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 8973;","var map = {\n\t\"./ar.json\": [\n\t\t68568,\n\t\t8568\n\t],\n\t\"./bg.json\": [\n\t\t20684,\n\t\t684\n\t],\n\t\"./bn.json\": [\n\t\t61170,\n\t\t1170\n\t],\n\t\"./bs.json\": [\n\t\t41161,\n\t\t1161\n\t],\n\t\"./ca.json\": [\n\t\t40612,\n\t\t612\n\t],\n\t\"./cs.json\": [\n\t\t50213,\n\t\t213\n\t],\n\t\"./da.json\": [\n\t\t98542,\n\t\t8542\n\t],\n\t\"./de.json\": [\n\t\t4701,\n\t\t4701\n\t],\n\t\"./el.json\": [\n\t\t20453,\n\t\t453\n\t],\n\t\"./en.json\": [\n\t\t3320,\n\t\t3320\n\t],\n\t\"./es.json\": [\n\t\t60076,\n\t\t76\n\t],\n\t\"./et.json\": [\n\t\t44075,\n\t\t4075\n\t],\n\t\"./fa.json\": [\n\t\t69004,\n\t\t9004\n\t],\n\t\"./fr.json\": [\n\t\t60007,\n\t\t7\n\t],\n\t\"./he.json\": [\n\t\t23746,\n\t\t3746\n\t],\n\t\"./hr.json\": [\n\t\t92921,\n\t\t2921\n\t],\n\t\"./hu.json\": [\n\t\t75723,\n\t\t5723\n\t],\n\t\"./id.json\": [\n\t\t12502,\n\t\t2502\n\t],\n\t\"./is.json\": [\n\t\t13214,\n\t\t3214\n\t],\n\t\"./it.json\": [\n\t\t51380,\n\t\t1380\n\t],\n\t\"./ja.json\": [\n\t\t72484,\n\t\t2484\n\t],\n\t\"./ka.json\": [\n\t\t60285,\n\t\t285\n\t],\n\t\"./ko.json\": [\n\t\t79249,\n\t\t9249\n\t],\n\t\"./lt.json\": [\n\t\t42838,\n\t\t2838\n\t],\n\t\"./mn.json\": [\n\t\t6177,\n\t\t6177\n\t],\n\t\"./nl.json\": [\n\t\t99729,\n\t\t9729\n\t],\n\t\"./no.json\": [\n\t\t49409,\n\t\t9409\n\t],\n\t\"./pl.json\": [\n\t\t25409,\n\t\t5409\n\t],\n\t\"./pt-br.json\": [\n\t\t74529,\n\t\t4529\n\t],\n\t\"./ro.json\": [\n\t\t29715,\n\t\t9715\n\t],\n\t\"./ru.json\": [\n\t\t32113,\n\t\t2113\n\t],\n\t\"./sk.json\": [\n\t\t30229,\n\t\t229\n\t],\n\t\"./sl.json\": [\n\t\t28636,\n\t\t8636\n\t],\n\t\"./sq.json\": [\n\t\t204,\n\t\t204\n\t],\n\t\"./sr.json\": [\n\t\t55553,\n\t\t5553\n\t],\n\t\"./sv.json\": [\n\t\t75979,\n\t\t5979\n\t],\n\t\"./tr.json\": [\n\t\t5268,\n\t\t5268\n\t],\n\t\"./uk.json\": [\n\t\t14057,\n\t\t4057\n\t],\n\t\"./vi.json\": [\n\t\t88929,\n\t\t8929\n\t],\n\t\"./zh-cn.json\": [\n\t\t56730,\n\t\t6730\n\t],\n\t\"./zh-hk.json\": [\n\t\t30841,\n\t\t841\n\t]\n};\nfunction webpackAsyncContext(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\treturn Promise.resolve().then(function() {\n\t\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\t\te.code = 'MODULE_NOT_FOUND';\n\t\t\tthrow e;\n\t\t});\n\t}\n\n\tvar ids = map[req], id = ids[0];\n\treturn __webpack_require__.e(ids[1]).then(function() {\n\t\treturn __webpack_require__.t(id, 3 | 16);\n\t});\n}\nwebpackAsyncContext.keys = function() { return Object.keys(map); };\nwebpackAsyncContext.id = 66667;\nmodule.exports = webpackAsyncContext;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\tloaded: false,\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Flag the module as loaded\n\tmodule.loaded = true;\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = function(result, chunkIds, fn, priority) {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar chunkIds = deferred[i][0];\n\t\tvar fn = deferred[i][1];\n\t\tvar priority = deferred[i][2];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every(function(key) { return __webpack_require__.O[key](chunkIds[j]); })) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","var getProto = Object.getPrototypeOf ? function(obj) { return Object.getPrototypeOf(obj); } : function(obj) { return obj.__proto__; };\nvar leafPrototypes;\n// create a fake namespace object\n// mode & 1: value is a module id, require it\n// mode & 2: merge all properties of value into the ns\n// mode & 4: return value when already ns object\n// mode & 16: return value when it's Promise-like\n// mode & 8|1: behave like require\n__webpack_require__.t = function(value, mode) {\n\tif(mode & 1) value = this(value);\n\tif(mode & 8) return value;\n\tif(typeof value === 'object' && value) {\n\t\tif((mode & 4) && value.__esModule) return value;\n\t\tif((mode & 16) && typeof value.then === 'function') return value;\n\t}\n\tvar ns = Object.create(null);\n\t__webpack_require__.r(ns);\n\tvar def = {};\n\tleafPrototypes = leafPrototypes || [null, getProto({}), getProto([]), getProto(getProto)];\n\tfor(var current = mode & 2 && value; typeof current == 'object' && !~leafPrototypes.indexOf(current); current = getProto(current)) {\n\t\tObject.getOwnPropertyNames(current).forEach(function(key) { def[key] = function() { return value[key]; }; });\n\t}\n\tdef['default'] = function() { return value; };\n\t__webpack_require__.d(ns, def);\n\treturn ns;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = function(chunkId) {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce(function(promises, key) {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks\n__webpack_require__.u = function(chunkId) {\n\t// return url for filenames based on template\n\treturn \"js/\" + chunkId + \".\" + {\"7\":\"7cef58a7\",\"76\":\"9977e9df\",\"188\":\"5e35d228\",\"204\":\"4dd3d03d\",\"213\":\"c9ed5252\",\"229\":\"b09f2145\",\"285\":\"6a0985b5\",\"453\":\"04d72c77\",\"612\":\"4ea201aa\",\"684\":\"017ebeb8\",\"702\":\"a81b006f\",\"841\":\"65cae984\",\"1161\":\"59a7c68b\",\"1170\":\"16217940\",\"1380\":\"fc40de11\",\"1466\":\"92176aab\",\"1474\":\"298559eb\",\"2113\":\"2a1bcdfa\",\"2484\":\"6def3002\",\"2502\":\"66addef9\",\"2682\":\"450e8cc1\",\"2838\":\"aa69ee5c\",\"2891\":\"34d8f387\",\"2921\":\"b5aad8e9\",\"3214\":\"72d306e7\",\"3311\":\"bcab8a66\",\"3320\":\"fe7033d0\",\"3657\":\"e558064c\",\"3728\":\"3e558208\",\"3746\":\"09ee0424\",\"4057\":\"4b3b38fd\",\"4060\":\"57ab5ec4\",\"4075\":\"2d83f71e\",\"4481\":\"578b8c0f\",\"4529\":\"6ff3334b\",\"4701\":\"e34c277a\",\"5268\":\"5d463fbd\",\"5409\":\"4ce439c3\",\"5475\":\"03838edb\",\"5553\":\"032fcbe7\",\"5723\":\"09853a5d\",\"5728\":\"07cf4ea4\",\"5867\":\"61e23b49\",\"5979\":\"385e1b41\",\"6177\":\"12db94aa\",\"6730\":\"61289e01\",\"6811\":\"83d9b8d2\",\"7073\":\"dc374d33\",\"7343\":\"1e290ed5\",\"7496\":\"0ed543b2\",\"7637\":\"fdf639b1\",\"8024\":\"bb377405\",\"8520\":\"cb7009ea\",\"8542\":\"09badcc3\",\"8568\":\"7f0dfd32\",\"8636\":\"2a90cf11\",\"8731\":\"8acb20fc\",\"8929\":\"ea6da50f\",\"8990\":\"6dd37151\",\"9004\":\"ffe04245\",\"9249\":\"d2b0f88c\",\"9409\":\"339f5afb\",\"9715\":\"21ca1afa\",\"9729\":\"812aea5b\",\"9983\":\"657ab52d\"}[chunkId] + \".js\";\n};","// This function allow to reference async chunks\n__webpack_require__.miniCssF = function(chunkId) {\n\t// return url for filenames based on template\n\treturn \"css/\" + chunkId + \".\" + {\"188\":\"37c2c58b\",\"1474\":\"bc127aa4\",\"2682\":\"c32340b5\",\"2891\":\"e49646e6\",\"4060\":\"75a1fa96\",\"4481\":\"8c582369\",\"5475\":\"970342c8\",\"6811\":\"7fe02c8d\",\"7073\":\"3978ef96\",\"7496\":\"1e01c869\",\"9983\":\"8667b7b1\"}[chunkId] + \".css\";\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","var inProgress = {};\nvar dataWebpackPrefix = \"jandl:\";\n// loadScript function to load a script via script tag\n__webpack_require__.l = function(url, done, key, chunkId) {\n\tif(inProgress[url]) { inProgress[url].push(done); return; }\n\tvar script, needAttach;\n\tif(key !== undefined) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tfor(var i = 0; i < scripts.length; i++) {\n\t\t\tvar s = scripts[i];\n\t\t\tif(s.getAttribute(\"src\") == url || s.getAttribute(\"data-webpack\") == dataWebpackPrefix + key) { script = s; break; }\n\t\t}\n\t}\n\tif(!script) {\n\t\tneedAttach = true;\n\t\tscript = document.createElement('script');\n\n\t\tscript.charset = 'utf-8';\n\t\tscript.timeout = 120;\n\t\tif (__webpack_require__.nc) {\n\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n\t\t}\n\t\tscript.setAttribute(\"data-webpack\", dataWebpackPrefix + key);\n\t\tscript.src = url;\n\t}\n\tinProgress[url] = [done];\n\tvar onScriptComplete = function(prev, event) {\n\t\t// avoid mem leaks in IE.\n\t\tscript.onerror = script.onload = null;\n\t\tclearTimeout(timeout);\n\t\tvar doneFns = inProgress[url];\n\t\tdelete inProgress[url];\n\t\tscript.parentNode && script.parentNode.removeChild(script);\n\t\tdoneFns && doneFns.forEach(function(fn) { return fn(event); });\n\t\tif(prev) return prev(event);\n\t};\n\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\n\tscript.onerror = onScriptComplete.bind(null, script.onerror);\n\tscript.onload = onScriptComplete.bind(null, script.onload);\n\tneedAttach && document.head.appendChild(script);\n};","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.nmd = function(module) {\n\tmodule.paths = [];\n\tif (!module.children) module.children = [];\n\treturn module;\n};","__webpack_require__.p = \"/\";","var createStylesheet = function(chunkId, fullhref, resolve, reject) {\n\tvar linkTag = document.createElement(\"link\");\n\n\tlinkTag.rel = \"stylesheet\";\n\tlinkTag.type = \"text/css\";\n\tvar onLinkComplete = function(event) {\n\t\t// avoid mem leaks.\n\t\tlinkTag.onerror = linkTag.onload = null;\n\t\tif (event.type === 'load') {\n\t\t\tresolve();\n\t\t} else {\n\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\tvar realHref = event && event.target && event.target.href || fullhref;\n\t\t\tvar err = new Error(\"Loading CSS chunk \" + chunkId + \" failed.\\n(\" + realHref + \")\");\n\t\t\terr.code = \"CSS_CHUNK_LOAD_FAILED\";\n\t\t\terr.type = errorType;\n\t\t\terr.request = realHref;\n\t\t\tlinkTag.parentNode.removeChild(linkTag)\n\t\t\treject(err);\n\t\t}\n\t}\n\tlinkTag.onerror = linkTag.onload = onLinkComplete;\n\tlinkTag.href = fullhref;\n\n\tdocument.head.appendChild(linkTag);\n\treturn linkTag;\n};\nvar findStylesheet = function(href, fullhref) {\n\tvar existingLinkTags = document.getElementsByTagName(\"link\");\n\tfor(var i = 0; i < existingLinkTags.length; i++) {\n\t\tvar tag = existingLinkTags[i];\n\t\tvar dataHref = tag.getAttribute(\"data-href\") || tag.getAttribute(\"href\");\n\t\tif(tag.rel === \"stylesheet\" && (dataHref === href || dataHref === fullhref)) return tag;\n\t}\n\tvar existingStyleTags = document.getElementsByTagName(\"style\");\n\tfor(var i = 0; i < existingStyleTags.length; i++) {\n\t\tvar tag = existingStyleTags[i];\n\t\tvar dataHref = tag.getAttribute(\"data-href\");\n\t\tif(dataHref === href || dataHref === fullhref) return tag;\n\t}\n};\nvar loadStylesheet = function(chunkId) {\n\treturn new Promise(function(resolve, reject) {\n\t\tvar href = __webpack_require__.miniCssF(chunkId);\n\t\tvar fullhref = __webpack_require__.p + href;\n\t\tif(findStylesheet(href, fullhref)) return resolve();\n\t\tcreateStylesheet(chunkId, fullhref, resolve, reject);\n\t});\n}\n// object to store loaded CSS chunks\nvar installedCssChunks = {\n\t4826: 0\n};\n\n__webpack_require__.f.miniCss = function(chunkId, promises) {\n\tvar cssChunks = {\"188\":1,\"1474\":1,\"2682\":1,\"2891\":1,\"4060\":1,\"4481\":1,\"5475\":1,\"6811\":1,\"7073\":1,\"7496\":1,\"9983\":1};\n\tif(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]);\n\telse if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) {\n\t\tpromises.push(installedCssChunks[chunkId] = loadStylesheet(chunkId).then(function() {\n\t\t\tinstalledCssChunks[chunkId] = 0;\n\t\t}, function(e) {\n\t\t\tdelete installedCssChunks[chunkId];\n\t\t\tthrow e;\n\t\t}));\n\t}\n};\n\n// no hmr","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t4826: 0\n};\n\n__webpack_require__.f.j = function(chunkId, promises) {\n\t\t// JSONP chunk loading for javascript\n\t\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\n\t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n\t\t\t// a Promise means \"currently loading\".\n\t\t\tif(installedChunkData) {\n\t\t\t\tpromises.push(installedChunkData[2]);\n\t\t\t} else {\n\t\t\t\tif(true) { // all chunks have JS\n\t\t\t\t\t// setup Promise in chunk cache\n\t\t\t\t\tvar promise = new Promise(function(resolve, reject) { installedChunkData = installedChunks[chunkId] = [resolve, reject]; });\n\t\t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n\t\t\t\t\t// start chunk loading\n\t\t\t\t\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\n\t\t\t\t\t// create error before stack unwound to get useful stacktrace later\n\t\t\t\t\tvar error = new Error();\n\t\t\t\t\tvar loadingEnded = function(event) {\n\t\t\t\t\t\tif(__webpack_require__.o(installedChunks, chunkId)) {\n\t\t\t\t\t\t\tinstalledChunkData = installedChunks[chunkId];\n\t\t\t\t\t\t\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\n\t\t\t\t\t\t\tif(installedChunkData) {\n\t\t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n\t\t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n\t\t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n\t\t\t\t\t\t\t\terror.type = errorType;\n\t\t\t\t\t\t\t\terror.request = realSrc;\n\t\t\t\t\t\t\t\tinstalledChunkData[1](error);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\t__webpack_require__.l(url, loadingEnded, \"chunk-\" + chunkId, chunkId);\n\t\t\t\t} else installedChunks[chunkId] = 0;\n\t\t\t}\n\t\t}\n};\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = function(chunkId) { return installedChunks[chunkId] === 0; };\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = function(parentChunkLoadingFunction, data) {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some(function(id) { return installedChunks[id] !== 0; })) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunkjandl\"] = self[\"webpackChunkjandl\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [4998], function() { return __webpack_require__(56847); })\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["webpackEmptyAsyncContext","req","Promise","resolve","then","e","Error","code","keys","id","module","exports","map","webpackContext","webpackContextResolve","__webpack_require__","o","Object","async","loadFonts","webFontLoader","load","google","families","createVuetify","_createVNode","_component_v_app","_component_v_main","_component_router_view","_component_Z_team_modal","ref","onUpdate","$options","_component_Z_delete_team_modal","_component_Z_task_modal","onOnSubtaskEdited","_component_Z_delete_task_modal","onOnSubtaskDeleted","_component_Z_delete_timeBlock_modal","_component_Z_delete_blocker_modal","onOnBlockerDeleted","_component_Z_delete_master_task_modal","onOnMastertaskDeleted","_component_Z_complete_task_modal","_component_Z_complete_master_task_modal","onMasterTaskEdited","_component_Z_task_add_time_modal","_component_Z_blocker_modal","_component_Z_master_task_modal","_component_Z_delete_team_member_modal","_component_Z_show_menu_modal","class","_createBlock","_component_v_dialog","$data","persistent","_component_v_card","_createElementVNode","_hoisted_1","name","_component_v_icon","onClick","icon","size","_component_v_card_actions","_component_v_btn","variant","disabled","mounted","window","addEventListener","this","handleKeyDown","methods","event","keyCode","visible","mixins","modalMixin","emits","data","team","isDeleting","closeModal","$axios","delete_auth","$emit","$store","commit","error","$toast","__exports__","height","_component_W_loadable","content","_component_v_text_field","$errors","length","label","hint","parseErrors","_createElementBlock","_Fragment","employees","employee","index","key","_fullName","splice","_component_v_autocomplete","_ctx","items","clearable","atLeastOne","value","AutocompleteMixin","v$","useVuelidate","errorUtils","employeeSelect","computed","mapGetters","employeesOptions","selectedEmployeesIds","enrichedEmployees","filter","includes","validations","required","$nextTick","$reset","t","get_auth_data","_enrichTeam","$validate","put_auth","fullTeamResource","post_auth","tmUtils","watch","employeeId","find","push","$refs","autocomplete","search","project_code","subtask","_hoisted_2","timeblocks","timeblock","is_finished","formatDateTime","start","end","JSON","parse","stringify","deadline","_update","deleteTimeblockWithoutId","i","timesheets","timesheet","employee_name","$events","emit","message","d","_hoisted_3","_hoisted_4","_hoisted_7","_hoisted_8","onFocus","master_task_id","title","_component_Datepicker","Date","format","locale","placeholder","_deadline_time","type","employee_id","version","xmlns","width","viewBox","duration","_hoisted_10","_component_QuillEditor","description","theme","onInput","$event","srcElement","innerHTML","_component_Z_files_upload","files","onFilesUploaded","_hoisted_11","_master_task","_hoisted_12","_hoisted_13","src","require","alt","_hoisted_16","_component_Z_task_readonly_info","onCloseModal","onUpdateSubtask","_hoisted_17","multiple","accept","onChange","fileUpload","click","file","_component_v_chip","toFixed","indexOf","$props","props","Array","default","isSaving","Boolean","uploadedFiles","created","maxSize","oversizedFiles","remove","_component_v_row","_component_v_col","cols","_component_v_sheet","_hoisted_5","_hoisted_6","date","form","starts_at_time","ends_at_time","components","Datepicker","showModal","splittedStartsAtTime","split","splittedEndsAtTime","moment","hours","parseInt","minutes","toISOString","isAfterDeadline","originalTimeblock","newTimeblock","getDeadline","isAfter","mastertasks","masterTask","mt","preventInputFocus","onDateFocus","undefined","onInputFocus","target","blur","selectedEmployees","mastertask","projectsOptions","pattern","normalizedInput","projectCodeSearch","normalize","replace","projects","project","normalizedProjectCode","toLowerCase","filteredProjects","slice","project_id","selectedProject","onEmployeeSelected","console","log","showAddEmployeeInput","onEmployeeDurationChanged","totalDuration","parseFloat","invalid","teams","_component_A_mastertask_name","color","_component_A_mastertask_status","isFinished","_component_A_task_deadline","_component_A_task_timeblocks","_component_Z_created_by","created_by","_component_A_task_assigned_employee","_employee","_component_A_task_planned_time","_component_A_task_remaining_time","spent_time","_component_A_task_spent_time","_component_A_task_description","master_task_description","_component_Z_files","style","backgroundColor","String","Number","openMastertask","editMode","_initials","charAt","surname","time","timestamp","_hoisted_9","numeric","minValue","user","formatDate","_component_v_tooltip","text","location","activator","_mergeProps","getMasterTaskDeadline","mastertaskDescription","emptyMessage","file_size","isLoading","response","fetch","path","blob","FileSaver","ZFiles","AMastertaskName","AMastertaskStatus","ATaskTimeblocks","ZCreatedBy","ATaskAssignedEmployee","ATaskPlannedTime","ATaskSpentTime","ATaskRemainingTime","ATaskDescription","ATaskDeadline","VuetifyFixFocusMixin","SelectsMixin","ZTaskReadonlyInfo","ZFilesUpload","QuillEditor","employeeValidations","showDatePicker","selectedNewDate","on","_enrichTask","$forceUpdate","splittedDeadline","master_task","deleteTimeblock","$router","$route","employeesValid","_validateEmployees","getHTML","_mergeDeadlineTimeDate","subtasks","forEach","openDeleteTaskModal","showCompleteTaskModal","filesUploaded","updateSubtask","timeParts","setHours","setMinutes","isError","some","_created_by","oldValue","handler","lastEmployee","deep","setHTML","blocker","tempSubtask","tempMastertask","payload","datepicker","clearValue","_syncDatesTimes","splittedStart","splittedEnd","set","_component_v_select","team_id","_allEmployees","min","onKeyup","_component_A_mastertask_description","_component_A_tasks_table","_component_v_table","_employeeInitials","_employeeFullName","enrichedtasks","openTaskModal","_component_Z_status","status","_component_Z_deadline","_component_Z_team","_component_Z_planned_time","_component_Z_remaining_time","time_worked","_component_Z_spent_time","_component_Z_description","inheritedDescription","isExceeded","enrichedEmployeesInTeam","enrichedEmployeesOutsideTeam","employeesOutsideOfTeam","em","ZDeadline","ZDescription","ZPlannedTime","ZRemainingTime","ZSpentTime","ZStatus","ZTeam","AMastertaskDescription","ATasksTable","enrichedSubtasks","quillEditorRequired","minLength","$each","closeBothModals","teamId","memberId","task","beforeUnmount","off","removeEmployee","removeMemberAlert","member","toggleIsFinished","vuelidateValid","put_auth_data","post_auth_data","openDeleteMasterTaskModal","addTask","onQuillEditorInput","isValid","getHours","getMinutes","toString","padStart","_component_v_card_text","_component_v_spacer","localData","createTask","onTaskCreated","createBlocker","onBlockerCreated","ZDeleteTeamModal","ZTeamModal","ZDeleteTaskModal","ZDeleteBlockerModal","ZTaskModal","ZMasterTaskModal","ZCompleteTaskModal","ZTaskAddTimeModal","ZBlockerModal","ZDeleteMasterTaskModal","ZDeleteTeamMemberModal","ZShowMenuModal","ZCompleteMasterTaskModal","ZDeleteTimeBlockModal","query","dispatch","_showModalsAfterInicialization","onTeamUpdate","onTaskDeleted","onBlockerDeleted","onTaskEdited","onMasterTaskDeleted","repeat","setTimeout","getters","render","createStore","state","mutations","actions","modules","routes","redirect","component","children","meta","requiresAuth","router","createRouter","history","createWebHashHistory","process","beforeEach","to","from","next","isLoggedIn","store","axios","url","config","catch","reject","_config","params","headers","Authorization","install","app","options","globalProperties","encodeGetParams","p","entries","kv","encodeURIComponent","join","strToRegex","s","re","Moxios","constructor","_redirectRequestToMock","bind","_mocks","mock","append","k","m","reUrl","matchMethod","mocked","method","match","fname","VUE_APP_PLATFORM","toUpperCase","c","origin","moxios","values","events","mitt","I18n","properties","instance","translated","availableLanguages","languages","defaultLanguage","language","languageKey","vendorI18n","createI18n","legacy","fallbackLocale","messages","_loadLocaleMessages","missing","_missingTranslation","postTranslation","_postTranslation","changeLanguage","flag","initCurrentLanguage","Preferences","currentLanguage","_addAxiosHeaders","global","locales","warn","matched","use","i18n","$w18n","IonContent","IonPage","IonLabel","IonBackButton","IonCheckbox","IonText","IonButton","IonItem","IonItemGroup","IonItemSliding","IonItemOption","IonItemOptions","IonToolbar","IonHeader","IonFooter","IonSlides","IonSlide","IonSpinner","IonRow","IonCol","IonGrid","IonInput","IonButtons","IonIcon","IonImg","IonList","IonSkeletonText","IonTitle","IonMenu","IonSplitPane","IonMenuButton","IonRouterOutlet","IonSegment","IonSegmentButton","IonVirtualScroll","IonTextarea","IonSearchbar","IonRefresherContent","IonRefresher","IonInfiniteScrollContent","IonInfiniteScroll","IonAvatar","IonThumbnail","IonModal","IonRadioGroup","IonRadio","IonNote","IonCard","IonCardContent","IonTabBar","IonTabButton","IonMenuToggle","IonFab","IonFabButton","IonFabList","IonReorderGroup","IonReorder","IonSelect","IonSelectOption","IonToggle","IonBadge","IonChip","IonTabs","_unauthorised","namespaced","token","localStorage","getItem","auth_success","setItem","auth_error","removeItem","logout","open","login","credentials","signup","finally","forgotPassword","resetPassword","updateUserInfo","registerModule","auth","VueToast","_renderSlot","loader","_startLoading","_stopLoading","WLoadable","ionic","toast","loadable","parseAndTranslate","errorsArray","_parseToArrayOfStrings","$t","statusText","toastUtils","_objectToFormData","_buildFormData","formData","parentKey","File","FormData","unscheduledSubtasks","ongoingSubtasks","initialized","set_mastertasks","set_employees","set_teams","set_projects","set_unscheduled_subtasks","set_ongoing_subtasks","update_team","save_team","delete_team","update_subtask","st","delete_subtask","initialize","all","reloadSubtasks","reloadMastertasks","loadMastertasks","loadEmployees","loadTeams","loadProjects","loadUnscheduledSubtasks","loadOngoingSubtasks","sort","a","b","isInitialized","tmStore","grow","row","column","_hoisted_27","lang","_component_vuecal_header","views","weekDaysInHeader","heading","view","_Transition","appear","_component_all_day_bar","titleEditable","contenteditable","onBlur","vuecal__flex","allDay","cell","week","wrap","_component_weekdays_headings","unscheduledTime","el","_component_vuecal_cell","selectCell","goNarrower","_hoisted_18","_hoisted_19","noEvent","_hoisted_22","formatTime","endTimeMinutes","daysCount","segments","formattedDate","isFirstDay","_hoisted_24","day","_hoisted_26","now","todayDate","todayF","self","_dateObject","_timeObject","DateUtils","texts","noPrototypes","_texts","prototype","addDays","_initDatePrototypes","days","subtractDays","addHours","subtractHours","addMinutes","subtractMinutes","getWeek","isToday","isLeapYear","removePrototypes","updateTexts","_todayFormatted","getDate","getFullYear","getMonth","valueOf","setDate","UTC","dayNum","getUTCDay","setUTCDate","getUTCDate","yearStart","getUTCFullYear","Math","ceil","year","getPreviousFirstDayOfWeek","weekStartsOnSunday","prevFirstDayOfWeek","dayModifier","getDay","stringToDate","countDays","timezoneDiffMs","getTimezoneOffset","datesInSameTimeStep","date1","date2","timeStep","abs","getTime","formatDateLite","dateObj","YYYY","_hydrateDateObject","YY","M","MM","MMM","MMMM","MMMMG","D","DD","S","dd","ddd","dddd","HH","_hydrateTimeObject","H","hh","h","am","AM","mm","contents","result","round","shouldRound","getSeconds","formatTimeLite","timeObj","formatted","_nth","dayNumber","substring","months","monthsGenitive","weekDays","substr","floor","pm","minutesInADay","CellUtils","vuecal","force","_vuecal","clickToNavigate","switchToNarrowerView","dblclickToNavigate","domEvents","dblTapACell","taps","timeout","left","top","cellsEl","getBoundingClientRect","clientX","clientY","touches","x","y","cursorCoords","timeCellHeight","timeFrom","getPosition","max","defaultEventDuration","ud","_cellOverlaps","_comparisonArray","EventUtils","dateUtils","_eid","startTimeMinutes","background","deletable","deleting","resizable","resizing","draggable","dragging","draggingStatic","focused","createAnEvent","dateTime","eventOptions","dateToMinutes","eventDefaults","_","uid","eventIdIncrement","onEventCreate","deleteAnEvent","startDateF","endDateF","mutableEvents","addEventsToView","emitWithEvent","cleanupEvent","originalEvent","addEventSegment","isLastDay","previousSegment","removeEventSegment","segmentsCount","createEventSegments","viewStartDate","viewEndDate","viewStartTimestamp","viewEndTimestamp","eventStartAtMidnight","eventStart","eventEnd","repeatedEventStartFound","until","createSegment","nextMidnight","tmpDate","tmpDateFormatted","occurrences","checkCellOverlappingEvents","cellEvents","shift","overlaps","position","sameOverlaps","e2","eventIsInRange","eventInRange","eventSameOverlap","eventSameRange","eventsInSameTimeStep","overlapsPerTimeStep","pos1","pos2","Set","longestStreak","item","overlapsRow","id2","findIndex","getOverlapsStreak","cellOverlaps","streak","removeFromStreak","overlapsWithoutSelf","id3","startTimestamp","endTimestamp","event1","event2","isSameStart","isSameEnd","role","hideViewSelector","_createCommentVNode","_renderList","v","enabled","_normalizeClass","highlightedControl","onDragenter","drag","viewSelectorDragEnter","onDragleave","viewSelectorDragLeave","hideTitleBar","transitions","_resolveDynamicComponent","startDate","todayButton","_createSlots","$slots","fn","_createTextVNode","hide","today","clickable","toLocaleDateString","_normalizeStyle","onDblclick","dayOfMonth","full","small","xsmall","hasSplits","stickySplitLabels","daySplits","inject","transitionDirection","Function","DOMEvent","selectedDate","utils","cleanupHeading","initials","onTimelineScroll","viewPortOffset","headings","todayFound","startWeekOnSunday","short","cellWidth","reduce","total","weekdayCellStyles","hideWeekdays","cellHeadingsClickable","WeekdaysHeadings","editEvents","viewProps","goToToday","updateSelectedDate","switchToBroaderView","broaderView","switchView","get","direction","enabledViews","showDaySplits","minSplitWidth","dnd","isWeekView","isMonthView","minTimestamp","maxTimestamp","_TransitionGroup","tag","tabindex","onKeypress","_withKeys","onTouchstart","onMousedown","onContextmenu","cellContextmenu","cellDragEnter","onDragover","cellDragOver","cellDragLeave","onDrop","cellDragDrop","showTimeInCells","timeCells","block","eventsOnMonthView","j","_component_event","allOverlaps","overlapsStreak","cellOverlapsStreak","eventId","onMouseenter","onMouseleave","_withModifiers","onMouseup","onTouchend","onTouchmove","onDragstart","onDragend","delete","deleteEvent","cellFormattedDate","eventPosition","touch","dragThreshold","startX","startY","dragged","onMouseDown","clickHoldAnEvent","focusAnEvent","resizeAnEvent","dragAnEvent","focusEvent","timeoutId","onMouseUp","mousedUp","onMouseEnter","preventDefault","onMouseLeave","onTouchMove","onEventClick","onTouchStart","onEnterKeypress","onDblClick","onEventDblclick","onDragStart","eventDragStart","onDragEnd","eventDragEnd","onResizeHandleMouseDown","assign","segment","originalEnd","originalEndTimeMinutes","touchDeleteEvent","cancelDeleteEvent","focusedEvent","cancelDelete","eventDimensions","minutesFromTop","timeTo","bottom","eventStyles","zIdnex","master_task_color","isArray","sameOverlapsLength","parentNotSameOverlaps","minEventWidth","eventClasses","is_blocker","resize","Event","cellSplits","timeAtCursor","highlighted","highlightedSplit","getSplitAtCursor","targetIsSplit","classList","contains","findAncestor","attributes","splitClasses","isWeekend","eventsCount","splitsCount","isDOMElementAnEvent","onCellkeyPressEnter","isSelected","onCellFocus","keyPressEnterCell","isDisabled","onCellMouseDown","clickHoldACell","cancelClickEventCreation","eventCreated","minutesAtCursor","mouseDownOnEvent","create","setUpEventCreation","startCursorY","dragToCreateEvent","dragCreateAnEvent","snapToTime","timeMinutes","plusHalfSnapTime","cellClickHold","setUpCellHoldTimer","cellId","onCellTouchStart","onCellClick","offsetY","dateFrom","dateTo","onCellDblClick","onCellContextMenu","stopPropagation","nowInMinutes","isBeforeMinDate","endDate","isAfterMaxDate","disableDays","isYearsOrYearView","selected","isWeekOrDayView","specialHours","timeScale","cellStart","cellEnd","eventsCountOnYearView","outOfScopeEvents","showAllDayEvents","singleDayInRange","multipleDayInRange","recurrMultDayInRange","splits","cellClasses","current","outOfScope","cellStyles","timelineVisible","todaysTimePosition","Cell","cells","shortEvents","cellOrSplitMinWidth","hasCellOrSplitWidth","minCellWidth","textsDefaults","fill","weekDaysShort","years","month","createEvent","dateFormat","validViews","Header","AllDayBar","provide","previous","activeView","scrollToHour","allDayBarHeight","disableDatePrototypes","disableViews","dragToCreateThreshold","editableEvents","hideBody","hideWeekends","maxDate","minDate","resizeX","showWeekNumbers","splitDays","timeFormat","twelveHour","watchRealTime","ready","firstCellDate","lastCellDate","timeTickerIds","startCell","endCell","loadDragAndDrop","DragAndDrop","validateView","fromViewSelector","viewDateBeforeChange","oldView","setSeconds","daysToAdd","daysToSubtract","weekDaysCount","viewDate","scrollTop","previousNext","modifier","viewId","weekDay","weekDayIndex","isDayHidden","daysWithIndex","dayToShow","daysFromDate","reverse","ue","filteredEvents","Class","parentElement","onMouseMove","eventResizing","eventDragCreation","isClickHoldingEvent","wasResizing","hasResized","dragCreatedEvent","dragCreateStarted","mouseUpOnEvent","eventClicked","mutableEvent","cleanEvent","oldDate","unfocusEvent","clearTimeout","eventClickHandler","onKeyUp","newEndTimeMins","offsetWidth","childElementCount","newEnd","newDaysCount","lastSegmentFormattedDate","dragFromBottom","onEventTitleBlur","oldTitle","updateMutableEvents","multipleDays","discardProps","prop","eventName","getWeekNumber","weekFromFirstCell","firstCellWeekNumber","firstCellDateWeekNumber","currentWeekNumber","timeTick","updateDateTexts","alignWithScrollbar","cellOrSplitHasEvents","loadLocale","currentView","hasTouch","hasEventClickHandler","passive","oncontextmenu","viewportTimelineOffset","removeEventListener","hasTimeColumn","isShortMonthView","TimeFormat","hasShortEvents","minWidth","visibleDaysCount","allDayBar","isNaN","viewCells","unshift","pop","specialDayHours","viewTitle","lastDayOfWeek","y1","m1","formattedMonthYear","y2","m2","fromYear","apply","firstDayOfWeek","dayOfWeek","isDayView","cssClasses","isYearsView","isYearView","oldEvents","newVal","VueCal","createApp","App","axiosCustom","w","IonicVue","vuetify","vueCal","mount","$i18n","errors","$message","customFilter","input","normalizedItem","cleanedItem","cleanedInput","enrichEmployees","formatDateTimeForBackend","isBefore","compareTo","webpackAsyncContext","ids","__webpack_module_cache__","moduleId","cachedModule","loaded","__webpack_modules__","call","deferred","O","chunkIds","priority","notFulfilled","Infinity","fulfilled","every","r","n","getter","__esModule","leafPrototypes","getProto","getPrototypeOf","obj","__proto__","mode","ns","def","getOwnPropertyNames","definition","defineProperty","enumerable","f","chunkId","promises","u","miniCssF","g","globalThis","hasOwnProperty","inProgress","dataWebpackPrefix","l","done","script","needAttach","scripts","document","getElementsByTagName","getAttribute","createElement","charset","nc","setAttribute","onScriptComplete","prev","onerror","onload","doneFns","parentNode","removeChild","head","appendChild","Symbol","toStringTag","nmd","paths","createStylesheet","fullhref","linkTag","rel","onLinkComplete","errorType","realHref","href","err","request","findStylesheet","existingLinkTags","dataHref","existingStyleTags","loadStylesheet","installedCssChunks","miniCss","cssChunks","installedChunks","installedChunkData","promise","loadingEnded","realSrc","webpackJsonpCallback","parentChunkLoadingFunction","moreModules","runtime","chunkLoadingGlobal","__webpack_exports__"],"sourceRoot":""} \ No newline at end of file diff --git a/app/dist/js/index.e6e95a77.js b/app/dist/js/index.e6e95a77.js deleted file mode 100644 index cea45fc..0000000 --- a/app/dist/js/index.e6e95a77.js +++ /dev/null @@ -1,2 +0,0 @@ -(function(){var e={41993:function(e){function t(e){return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}))}t.keys=function(){return[]},t.resolve=t,t.id=41993,e.exports=t},46700:function(e,t,s){var a={"./af":63906,"./af.js":63906,"./ar":40902,"./ar-dz":3853,"./ar-dz.js":3853,"./ar-kw":20299,"./ar-kw.js":20299,"./ar-ly":96825,"./ar-ly.js":96825,"./ar-ma":66379,"./ar-ma.js":66379,"./ar-sa":87700,"./ar-sa.js":87700,"./ar-tn":2059,"./ar-tn.js":2059,"./ar.js":40902,"./az":76043,"./az.js":76043,"./be":7936,"./be.js":7936,"./bg":34078,"./bg.js":34078,"./bm":14014,"./bm.js":14014,"./bn":29554,"./bn-bd":17114,"./bn-bd.js":17114,"./bn.js":29554,"./bo":6529,"./bo.js":6529,"./br":65437,"./br.js":65437,"./bs":19647,"./bs.js":19647,"./ca":59951,"./ca.js":59951,"./cs":26113,"./cs.js":26113,"./cv":37965,"./cv.js":37965,"./cy":35858,"./cy.js":35858,"./da":33515,"./da.js":33515,"./de":62831,"./de-at":6263,"./de-at.js":6263,"./de-ch":51127,"./de-ch.js":51127,"./de.js":62831,"./dv":4510,"./dv.js":4510,"./el":68616,"./el.js":68616,"./en-au":24595,"./en-au.js":24595,"./en-ca":73545,"./en-ca.js":73545,"./en-gb":79609,"./en-gb.js":79609,"./en-ie":43727,"./en-ie.js":43727,"./en-il":93302,"./en-il.js":93302,"./en-in":46305,"./en-in.js":46305,"./en-nz":39128,"./en-nz.js":39128,"./en-sg":84569,"./en-sg.js":84569,"./eo":50650,"./eo.js":50650,"./es":26358,"./es-do":64214,"./es-do.js":64214,"./es-mx":38639,"./es-mx.js":38639,"./es-us":30232,"./es-us.js":30232,"./es.js":26358,"./et":47279,"./et.js":47279,"./eu":15515,"./eu.js":15515,"./fa":27981,"./fa.js":27981,"./fi":37090,"./fi.js":37090,"./fil":79208,"./fil.js":79208,"./fo":2799,"./fo.js":2799,"./fr":23463,"./fr-ca":2213,"./fr-ca.js":2213,"./fr-ch":52848,"./fr-ch.js":52848,"./fr.js":23463,"./fy":41468,"./fy.js":41468,"./ga":88163,"./ga.js":88163,"./gd":2898,"./gd.js":2898,"./gl":76312,"./gl.js":76312,"./gom-deva":20682,"./gom-deva.js":20682,"./gom-latn":49178,"./gom-latn.js":49178,"./gu":31400,"./gu.js":31400,"./he":52795,"./he.js":52795,"./hi":17009,"./hi.js":17009,"./hr":46506,"./hr.js":46506,"./hu":69565,"./hu.js":69565,"./hy-am":93864,"./hy-am.js":93864,"./id":5626,"./id.js":5626,"./is":36649,"./is.js":36649,"./it":90151,"./it-ch":95348,"./it-ch.js":95348,"./it.js":90151,"./ja":79830,"./ja.js":79830,"./jv":33751,"./jv.js":33751,"./ka":63365,"./ka.js":63365,"./kk":85980,"./kk.js":85980,"./km":99571,"./km.js":99571,"./kn":25880,"./kn.js":25880,"./ko":16809,"./ko.js":16809,"./ku":96773,"./ku.js":96773,"./ky":65505,"./ky.js":65505,"./lb":50553,"./lb.js":50553,"./lo":51237,"./lo.js":51237,"./lt":91563,"./lt.js":91563,"./lv":61057,"./lv.js":61057,"./me":96495,"./me.js":96495,"./mi":83096,"./mi.js":83096,"./mk":43874,"./mk.js":43874,"./ml":46055,"./ml.js":46055,"./mn":87747,"./mn.js":87747,"./mr":17113,"./mr.js":17113,"./ms":8687,"./ms-my":7948,"./ms-my.js":7948,"./ms.js":8687,"./mt":14532,"./mt.js":14532,"./my":4655,"./my.js":4655,"./nb":56961,"./nb.js":56961,"./ne":2512,"./ne.js":2512,"./nl":48448,"./nl-be":72936,"./nl-be.js":72936,"./nl.js":48448,"./nn":49031,"./nn.js":49031,"./oc-lnc":5174,"./oc-lnc.js":5174,"./pa-in":30118,"./pa-in.js":30118,"./pl":93448,"./pl.js":93448,"./pt":33518,"./pt-br":62447,"./pt-br.js":62447,"./pt.js":33518,"./ro":70817,"./ro.js":70817,"./ru":10262,"./ru.js":10262,"./sd":58990,"./sd.js":58990,"./se":43842,"./se.js":43842,"./si":37711,"./si.js":37711,"./sk":80756,"./sk.js":80756,"./sl":3772,"./sl.js":3772,"./sq":6187,"./sq.js":6187,"./sr":40732,"./sr-cyrl":75713,"./sr-cyrl.js":75713,"./sr.js":40732,"./ss":99455,"./ss.js":99455,"./sv":69770,"./sv.js":69770,"./sw":80959,"./sw.js":80959,"./ta":36459,"./ta.js":36459,"./te":25302,"./te.js":25302,"./tet":67975,"./tet.js":67975,"./tg":71294,"./tg.js":71294,"./th":2385,"./th.js":2385,"./tk":24613,"./tk.js":24613,"./tl-ph":58668,"./tl-ph.js":58668,"./tlh":58190,"./tlh.js":58190,"./tr":74506,"./tr.js":74506,"./tzl":63440,"./tzl.js":63440,"./tzm":69852,"./tzm-latn":42350,"./tzm-latn.js":42350,"./tzm.js":69852,"./ug-cn":70730,"./ug-cn.js":70730,"./uk":40099,"./uk.js":40099,"./ur":72100,"./ur.js":72100,"./uz":96002,"./uz-latn":26322,"./uz-latn.js":26322,"./uz.js":96002,"./vi":14207,"./vi.js":14207,"./x-pseudo":24674,"./x-pseudo.js":24674,"./yo":10570,"./yo.js":10570,"./zh-cn":73644,"./zh-cn.js":73644,"./zh-hk":22591,"./zh-hk.js":22591,"./zh-mo":89503,"./zh-mo.js":89503,"./zh-tw":88080,"./zh-tw.js":88080};function i(e){var t=l(e);return s(t)}function l(e){if(!s.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}i.keys=function(){return Object.keys(a)},i.resolve=l,e.exports=i,i.id=46700},13954:function(e,t,s){"use strict";s.d(t,{$t:function(){return Bo}});var a=s(49242),i=s(74973);async function l(){const e=await s.e(3657).then(s.t.bind(s,33657,23));e.load({google:{families:["Roboto:100,300,400,500,700,900&display=swap"]}})}var n=s(38685),o=(s(29773),(0,n.Rd)()),r=s(73752),d=s.n(r),u=s(73396),c=s(97718),m=s(29271);function h(e,t,s,a,i,l){const n=(0,u.up)("router-view"),o=(0,u.up)("Z-team-modal"),r=(0,u.up)("Z-delete-team-modal"),d=(0,u.up)("Z-task-modal"),h=(0,u.up)("Z-delete-task-modal"),p=(0,u.up)("Z-delete-blocker-modal"),v=(0,u.up)("Z-delete-master-task-modal"),k=(0,u.up)("Z-complete-task-modal"),g=(0,u.up)("Z-complete-master-task-modal"),f=(0,u.up)("Z-task-add-time-modal"),w=(0,u.up)("Z-blocker-modal"),_=(0,u.up)("Z-master-task-modal"),y=(0,u.up)("Z-delete-team-member-modal"),b=(0,u.up)("Z-show-menu-modal");return(0,u.wg)(),(0,u.iD)(u.HY,null,[(0,u.Wm)(c.q,null,{default:(0,u.w5)((()=>[(0,u.Wm)(m.O,null,{default:(0,u.w5)((()=>[(0,u.Wm)(n)])),_:1})])),_:1}),(0,u.Wm)(o,{ref:"z-team-modal",onUpdate:l.onTeamUpdate},null,8,["onUpdate"]),(0,u.Wm)(r,{ref:"z-delete-team-modal",onUpdate:l.onTeamUpdate},null,8,["onUpdate"]),(0,u.Wm)(d,{ref:"z-task-modal",onOnSubtaskEdited:l.onTaskEdited},null,8,["onOnSubtaskEdited"]),(0,u.Wm)(h,{ref:"z-delete-task-modal",onOnSubtaskDeleted:l.onTaskDeleted},null,8,["onOnSubtaskDeleted"]),(0,u.Wm)(p,{ref:"z-delete-blocker-modal",onOnBlockerDeleted:l.onBlockerDeleted},null,8,["onOnBlockerDeleted"]),(0,u.Wm)(v,{ref:"z-delete-master-task-modal",onOnMastertaskDeleted:l.onMasterTaskDeleted},null,8,["onOnMastertaskDeleted"]),(0,u.Wm)(k,{ref:"z-complete-task-modal",onOnSubtaskEdited:l.onTaskEdited},null,8,["onOnSubtaskEdited"]),(0,u.Wm)(g,{ref:"z-complete-master-task-modal",onMasterTaskEdited:l.onMasterTaskEdited},null,8,["onMasterTaskEdited"]),(0,u.Wm)(f,{ref:"z-task-add-time-modal"},null,512),(0,u.Wm)(w,{ref:"z-blocker-modal"},null,512),(0,u.Wm)(_,{ref:"z-master-task-modal",onMasterTaskEdited:l.onMasterTaskEdited},null,8,["onMasterTaskEdited"]),(0,u.Wm)(y,{ref:"z-delete-team-member-modal"},null,512),(0,u.Wm)(b,{ref:"z-show-menu-modal"},null,512)],64)}s(57658);var p=s(87139),v=s(67312),k=s(75039),g=s(91334),f=s(33601),w=s(53289);const _={class:"d-flex justify-space-between align-center"};function y(e,t,s,i,l,n){return(0,u.wg)(),(0,u.j4)(f.B,{modelValue:l.visible,"onUpdate:modelValue":t[3]||(t[3]=e=>l.visible=e),"max-width":"750",persistent:""},{default:(0,u.w5)((()=>[(0,u.Wm)(k._,null,{default:(0,u.w5)((()=>[(0,u._)("div",_,[(0,u._)("h1",null,[(0,u.Uk)(" Ste si istý, že chcete zmazať tím "),(0,u._)("b",null,(0,p.zw)(l.team.name),1),(0,u.Uk)("? ")]),(0,u.Wm)(w.t,{onClick:t[0]||(t[0]=(0,a.iM)((e=>n.closeModal()),["stop"])),icon:"mdi-close",size:"large"})]),(0,u.Wm)(g.h,{class:"mt-10 d-flex justify-start align-center mobile-view"},{default:(0,u.w5)((()=>[(0,u.Wm)(v.T,{class:"button primary half",variant:"flat",onClick:t[1]||(t[1]=e=>n.deleteTeam()),disabled:l.isDeleting},{default:(0,u.w5)((()=>[(0,u.Uk)("ÁNO")])),_:1},8,["disabled"]),(0,u.Wm)(v.T,{class:"button primary half outline",onClick:t[2]||(t[2]=(0,a.iM)((e=>n.closeModal()),["stop"]))},{default:(0,u.w5)((()=>[(0,u.Uk)("ZRUŠIŤ")])),_:1})])),_:1})])),_:1})])),_:1},8,["modelValue"])}var b={mounted(){window.addEventListener("keydown",this.handleKeyDown)},methods:{handleKeyDown(e){27===e.keyCode&&(this.visible=!1)}}},D={mixins:[b],emits:["update"],data(){return{visible:!1,team:null,isDeleting:!1}},methods:{async showModal({team:e}){this.team=e,this.visible=!0},closeModal(){this.visible=!1},async deleteTeam(){if(!this.isDeleting){this.isDeleting=!0;try{await this.$axios.delete_auth(`v1/teams/${this.team.id}`),this.visible=!1,this.$emit("update",this.team),this.$store.commit("tm/delete_team",this.team)}catch(e){this.$toast.error(e)}finally{this.isDeleting=!1}}}}},M=s(40089);const T=(0,M.Z)(D,[["render",y]]);var C=T,$=s(60988),j=s(45869);const E={class:"d-flex justify-space-between align-center modal-header"};function x(e,t,s,i,l,n){const o=(0,u.up)("W-loadable");return(0,u.wg)(),(0,u.j4)(f.B,{modelValue:l.visible,"onUpdate:modelValue":t[4]||(t[4]=e=>l.visible=e),"max-width":"750","max-height":"90%",height:"700px",persistent:""},{default:(0,u.w5)((()=>[(0,u.Wm)(o,{content:l.team,class:"h-100"},{default:(0,u.w5)((()=>[(0,u.Wm)(k._,{height:"100%",class:"d-flex flex-column"},{default:(0,u.w5)((()=>[(0,u._)("div",E,[(0,u._)("h1",null,(0,p.zw)(l.team.id?"Upraviť tím":"Vytvoriť tím"),1),(0,u.Wm)(w.t,{onClick:t[0]||(t[0]=(0,a.iM)((e=>n.closeModal()),["stop"])),icon:"mdi-close",size:"large"})]),(0,u.Wm)(g.h,{class:"d-flex flex-column modal-content"},{default:(0,u.w5)((()=>[(0,u.Wm)(j.hw,{class:(0,p.C_)(["modal-input",{error:l.v$.team.name.$errors.length}]),label:"Názov tímu",variant:"solo",hint:l.v$.team.name.$errors?l.errorUtils.parseErrors(l.v$.team.name.$errors):null,modelValue:l.team.name,"onUpdate:modelValue":t[1]||(t[1]=e=>l.team.name=e)},null,8,["class","hint","modelValue"]),((0,u.wg)(!0),(0,u.iD)(u.HY,null,(0,u.Ko)(l.team.employees,((e,t)=>((0,u.wg)(),(0,u.iD)("div",{class:"relative w-100",key:e.id},[(0,u.Wm)(j.hw,{class:"modal-input",disabled:"",label:"Zamestanec",variant:"solo",modelValue:l.team.employees[t]._fullName,"onUpdate:modelValue":e=>l.team.employees[t]._fullName=e},null,8,["modelValue","onUpdate:modelValue"]),(0,u.Wm)(w.t,{class:"remove-input",onClick:(0,a.iM)((e=>l.team.employees.splice(t,1)),["stop"]),icon:"mdi-close",size:"small"},null,8,["onClick"])])))),128)),(0,u.Wm)($.f,{"custom-filter":e.customFilter,"match-any":!0,modelValue:l.employeeSelect,"onUpdate:modelValue":t[2]||(t[2]=e=>l.employeeSelect=e),label:"Priradený",class:(0,p.C_)([{error:l.v$.team.employees.$errors.length},"modal-input"]),items:n.employeesOptions,"item-title":"_fullName","item-value":"id",variant:"solo",clearable:"",ref:"autocomplete"},null,8,["custom-filter","modelValue","class","items"])])),_:1}),(0,u.Wm)(v.T,{class:"button primary block",onClick:t[3]||(t[3]=e=>n.save())},{default:(0,u.w5)((()=>[(0,u.Uk)((0,p.zw)(l.team.id?"UPRAVIŤ":"VYTVORIŤ"),1)])),_:1})])),_:1})])),_:1},8,["content"])])),_:1},8,["modelValue"])}var W=s(33053),S=s(69117),V=s(7648),O=s(34407),z=s(20065),A=s(83299);const U=e=>e.length;var Z={mixins:[A.Z,b],emits:["close","update"],data(){return{visible:!1,v$:(0,W.ZP)(),errorUtils:V.Z,employeeSelect:null,team:null}},computed:{...(0,z.Se)("tm",["enrichedEmployees"]),employeesOptions(){const e=this.team.employees.map((e=>e.id));return this.enrichedEmployees.filter((t=>!e.includes(t.id)))}},validations(){return{team:{name:{required:S.C1},employees:{atLeastOne:U}}}},methods:{async showModal({team:e=null}){this.visible=!0,this.team=null,this.$nextTick((()=>this.v$.$reset()));try{if(e?.id){const t=await this.$axios.get_auth_data(`v1/teams/${e.id}`);this.team=this._enrichTeam(t)}else this.team={employees:[]}}catch(t){this.$toast.error(t)}},closeModal(){this.visible=!1,this.$emit("close",this.team)},async save(){if(await this.v$.$validate())try{if(this.team.id){const{team:e}=await this.$axios.put_auth(`v1/teams/${this.team.id}`,this.team),t=await this.$axios.get_auth_data(`v1/teams/${e.id}`);this.$store.commit("tm/update_team",t)}else{const{team:e}=await this.$axios.post_auth("v1/teams",this.team),t=await this.$axios.get_auth_data(`v1/teams/${e.id}`);this.$store.commit("tm/save_team",t)}this.closeModal()}catch(e){this.$toast.error(e)}},_enrichTeam(e){return e.employees=O.Z.enrichEmployees(e.employees),e}},watch:{employeeSelect(e){if(!e)return;const t=this.enrichedEmployees.find((t=>t.id==e));this.team.employees.push(t),this.employeeSelect=null,this.$refs.autocomplete.search=""}}};const H=(0,M.Z)(Z,[["render",x]]);var F=H;const I={class:"d-flex justify-space-between align-center"};function P(e,t,s,i,l,n){return(0,u.wg)(),(0,u.j4)(f.B,{modelValue:l.visible,"onUpdate:modelValue":t[3]||(t[3]=e=>l.visible=e),"max-width":"750",persistent:""},{default:(0,u.w5)((()=>[(0,u.Wm)(k._,null,{default:(0,u.w5)((()=>[(0,u._)("div",I,[(0,u._)("h1",null,[(0,u.Uk)("Ste si istý, že chcete zmazať sub task z mastertasku "),(0,u._)("b",null,(0,p.zw)(l.subtask.project_code),1),(0,u.Uk)("?")]),(0,u.Wm)(w.t,{onClick:t[0]||(t[0]=(0,a.iM)((e=>n.closeModal()),["stop"])),icon:"mdi-close",size:"large",class:"mb-15"})]),(0,u.Wm)(g.h,{class:"mt-10 d-flex justify-start align-center mobile-view"},{default:(0,u.w5)((()=>[(0,u.Wm)(v.T,{class:"button primary half",variant:"flat",onClick:t[1]||(t[1]=e=>n.deleteTask()),disabled:l.isDeleting},{default:(0,u.w5)((()=>[(0,u.Uk)("ÁNO")])),_:1},8,["disabled"]),(0,u.Wm)(v.T,{class:"button primary half outline",onClick:t[2]||(t[2]=(0,a.iM)((e=>n.closeModal()),["stop"]))},{default:(0,u.w5)((()=>[(0,u.Uk)("ZRUŠIŤ")])),_:1})])),_:1})])),_:1})])),_:1},8,["modelValue"])}var L={mixins:[b],emits:["on-subtask-deleted"],data(){return{visible:!1,subtask:null,isDeleting:!1}},methods:{async showModal({subtask:e}){this.subtask=e,this.visible=!0},closeModal(){this.visible=!1},async deleteTask(){if(!this.isDeleting){this.isDeleting=!0;try{await this.$axios.delete_auth(`v1/subtasks/${this.subtask.id}`),this.$store.commit("tm/delete_subtask",this.subtask),this.$emit("on-subtask-deleted",this.subtask),this.closeModal()}catch(e){this.$toast.error(e)}finally{this.isDeleting=!1}}}}};const N=(0,M.Z)(L,[["render",P]]);var Y=N;const q=e=>((0,u.dD)("data-v-2b134ca3"),e=e(),(0,u.Cn)(),e),B={class:"d-flex justify-space-between align-center modal-header"},R={class:"splitted-inputs"},K=q((()=>(0,u._)("path",{d:"M23.057 7.057l-16 16c-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0l16-16c0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0z"},null,-1))),J=q((()=>(0,u._)("path",{d:"M7.057 8.943l16 16c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885l-16-16c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885z"},null,-1))),G=[K,J],X=["onClick"],Q=q((()=>(0,u._)("path",{d:"M23.057 7.057l-16 16c-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0l16-16c0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0z"},null,-1))),ee=q((()=>(0,u._)("path",{d:"M7.057 8.943l16 16c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885l-16-16c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885z"},null,-1))),te=[Q,ee],se={class:"w-100 modal-input"},ae={class:"d-flex justify-space-between align-center"},ie={class:"d-flex justify-space-between align-center modal-header border-bottom pb-4"},le={class:"d-flex justify-start"},ne=["src"],oe=["src"],re={class:"w-100"},de={class:"d-flex justify-start align-center mt-8"};function ue(e,t,i,l,n,o){const r=(0,u.up)("Datepicker"),d=(0,u.up)("QuillEditor"),c=(0,u.up)("Z-files-upload"),m=(0,u.up)("Z-task-readonly-info"),h=(0,u.up)("W-loadable");return(0,u.wg)(),(0,u.j4)(f.B,{modelValue:n.visible,"onUpdate:modelValue":t[20]||(t[20]=e=>n.visible=e),"max-width":"750","max-height":"90%",height:"700px",persistent:""},{default:(0,u.w5)((()=>[(0,u.Wm)(h,{content:n.subtask,class:"h-100"},{default:(0,u.w5)((()=>[n.editMode?((0,u.wg)(),(0,u.j4)(k._,{key:0,height:"100%",class:"d-flex flex-column scrolling"},{default:(0,u.w5)((()=>[(0,u._)("div",B,[(0,u._)("h1",null,(0,p.zw)(n.subtask?.id?"Upraviť sub task":"Vytvoriť sub task"),1),(0,u.Wm)(w.t,{onClick:t[0]||(t[0]=(0,a.iM)((e=>o.closeModal()),["stop"])),icon:"mdi-close",size:"large"})]),(0,u.Wm)(g.h,{class:"d-flex flex-column modal-content"},{default:(0,u.w5)((()=>[(0,u.Wm)(j.hw,{modelValue:n.subtask.project_code,"onUpdate:modelValue":t[1]||(t[1]=e=>n.subtask.project_code=e),label:"Kód projektu",value:n.subtask.project_code,onFocus:e.onInputFocus,class:"modal-input",variant:"solo",disabled:""},null,8,["modelValue","value","onFocus"]),(0,u.Wm)($.f,{"custom-filter":e.customFilter,"match-any":!0,modelValue:n.subtask.master_task_id,"onUpdate:modelValue":t[2]||(t[2]=e=>n.subtask.master_task_id=e),label:"Master task",class:(0,p.C_)([{error:n.v$.subtask.master_task_id.$errors.length},"modal-input"]),items:e.mastertasks,"item-title":"name","item-value":"id",variant:"solo",clearable:""},null,8,["custom-filter","modelValue","class","items"]),(0,u.Wm)(j.hw,{modelValue:n.subtask.title,"onUpdate:modelValue":t[3]||(t[3]=e=>n.subtask.title=e),onFocus:e.onInputFocus,class:"modal-input",label:"Názov subtasku",variant:"solo"},null,8,["modelValue","onFocus"]),(0,u._)("div",R,[(0,u.Wm)(r,{modelValue:n.subtask.deadline,"onUpdate:modelValue":t[4]||(t[4]=e=>n.subtask.deadline=e),"auto-apply":!0,onFocus:e.onDateFocus,"min-date":new Date,class:(0,p.C_)(["modal-input left",{error:n.v$.subtask.deadline.$errors?.length}]),format:"dd.MM.yyyy",locale:"sk","select-text":"Vybrať","cancel-text":"Zrušiť",placeholder:"Dátum",validations:n.v$.subtask.deadline},null,8,["modelValue","onFocus","min-date","class","validations"]),(0,u.Wm)(j.hw,{class:(0,p.C_)(["modal-input right",{error:n.v$.subtask._deadline_time.$errors.length}]),variant:"solo",modelValue:n.subtask._deadline_time,"onUpdate:modelValue":t[5]||(t[5]=e=>n.subtask._deadline_time=e),label:"Čas","append-inner-icon":"mdi-clock-outline",type:"time",onFocus:e.onInputFocus,hint:n.v$.subtask._deadline_time.$errors?n.errorUtils.parseErrors(n.v$.subtask._deadline_time.$errors):null},null,8,["modelValue","onFocus","class","hint"])]),n.subtask.id?((0,u.wg)(),(0,u.iD)(u.HY,{key:0},[(0,u._)("div",{class:(0,p.C_)(["employee-wrapper",{"hide-arrow":n.subtask.employee_id}])},[n.subtask.employee_id?((0,u.wg)(),(0,u.iD)("svg",{key:0,version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32",class:"dp__icon dp__clear_icon dp__input_icons","data-test":"clear-icon",onClick:t[6]||(t[6]=(0,a.iM)((e=>{n.subtask.employee_id=null,n.subtask.employee=null}),["prevent"]))},G)):(0,u.kq)("",!0),(0,u.Wm)($.f,{"custom-filter":e.customFilter,"match-any":!0,modelValue:n.subtask.employee_id,"onUpdate:modelValue":[t[7]||(t[7]=e=>n.subtask.employee_id=e),t[8]||(t[8]=e=>n.employeeValidations[0]?n.employeeValidations[0].employee=!1:null)],label:"Priradený",items:e.enrichedEmployees,"item-title":"_fullName","item-value":"id",variant:"solo",class:(0,p.C_)(["modal-input",{error:n.employeeValidations[0]?.employee}])},null,8,["custom-filter","modelValue","items","class"])],2),(0,u.Wm)(j.hw,{modelValue:n.subtask.duration,"onUpdate:modelValue":[t[9]||(t[9]=e=>n.subtask.duration=e),t[10]||(t[10]=e=>n.employeeValidations[0]?n.employeeValidations[0].duration=!1:null)],class:(0,p.C_)(["modal-input",{error:n.employeeValidations[0]?.duration}]),variant:"solo",type:"number",label:"Časový odhad","append-inner-icon":"mdi-clock-outline",onFocus:e.onInputFocus},null,8,["modelValue","class","onFocus"])],64)):((0,u.wg)(!0),(0,u.iD)(u.HY,{key:1},(0,u.Ko)(n.subtask.employees,((t,s)=>((0,u.wg)(),(0,u.iD)("div",{key:`employee-${s}`,class:(0,p.C_)(["splitted-inputs remove-employee",{"hide-arrow":t.id}])},[(0,u.Wm)($.f,{"custom-filter":e.customFilter,"match-any":!0,modelValue:t.id,"onUpdate:modelValue":[e=>t.id=e,e=>n.employeeValidations[s]?n.employeeValidations[s].employee=!1:null],label:"Priradený",items:e.enrichedEmployees,"item-title":"_fullName","item-value":"id",variant:"solo",class:(0,p.C_)(["modal-input left",{error:n.employeeValidations[s]?.employee}])},null,8,["custom-filter","modelValue","onUpdate:modelValue","items","class"]),t.id?((0,u.wg)(),(0,u.iD)("svg",{key:0,version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32",class:"dp__icon dp__clear_icon dp__input_icons","data-test":"clear-icon",onClick:(0,a.iM)((e=>t.id=null),["prevent"])},te,8,X)):(0,u.kq)("",!0),(0,u.Wm)(j.hw,{modelValue:t.duration,"onUpdate:modelValue":[e=>t.duration=e,e=>n.employeeValidations[s]?n.employeeValidations[s].duration=!1:null],class:(0,p.C_)(["modal-input right",{error:n.employeeValidations[s]?.duration}]),variant:"solo",type:"number",label:"Časový odhad","append-inner-icon":"mdi-clock-outline",onFocus:e.onInputFocus},null,8,["modelValue","onUpdate:modelValue","class","onFocus"])],2)))),128)),(0,u._)("div",se,[(0,u.Wm)(d,{ref:"description",modelValue:n.subtask.description,"onUpdate:modelValue":t[11]||(t[11]=e=>n.subtask.description=e),placeholder:"Popis",theme:"snow",class:"rich-text-editor",onInput:t[12]||(t[12]=e=>n.subtask.description=e.srcElement.innerHTML)},null,8,["modelValue"])]),(0,u.Wm)(c,{class:"mt-15 files",files:n.subtask.files,onFilesUploaded:o.filesUploaded,"is-saving":n.isSaving},null,8,["files","onFilesUploaded","is-saving"])])),_:1}),n.isSaving?((0,u.wg)(),(0,u.j4)(v.T,{key:1,class:"button primary disabled",disabled:""},{default:(0,u.w5)((()=>[(0,u.Uk)((0,p.zw)(e.$t("Ukladám...")),1)])),_:1})):((0,u.wg)(),(0,u.j4)(v.T,{key:0,class:"button primary",onClick:t[13]||(t[13]=e=>o.save())},{default:(0,u.w5)((()=>[(0,u.Uk)((0,p.zw)(n.subtask.id?"UPRAVIŤ":"VYTVORIŤ"),1)])),_:1}))])),_:1})):((0,u.wg)(),(0,u.j4)(k._,{key:1,height:"100%",class:"d-flex flex-column scrolling"},{default:(0,u.w5)((()=>[(0,u._)("div",ae,[(0,u._)("div",null,[(0,u._)("p",null,(0,p.zw)(n.subtask._master_task.project_code),1),(0,u._)("h1",null,(0,p.zw)(n.subtask._master_task.name),1)]),(0,u.Wm)(w.t,{onClick:t[14]||(t[14]=(0,a.iM)((e=>o.closeModal()),["stop"])),icon:"mdi-close",size:"large",class:"pb-5"})]),(0,u._)("div",ie,[(0,u._)("h1",null,(0,p.zw)(n.subtask.title),1),(0,u._)("div",le,[(0,u._)("img",{class:"icon",src:s(60666),alt:"pencil-icon",onClick:t[15]||(t[15]=(0,a.iM)((e=>n.editMode=!n.editMode),["stop"]))},null,8,ne),(0,u._)("img",{class:"icon trash",src:s(27484),alt:"trash-icon",onClick:t[16]||(t[16]=(0,a.iM)((e=>o.openDeleteTaskModal(n.subtask)),["stop"]))},null,8,oe)])]),(0,u.Wm)(g.h,{class:"d-flex flex-column modal-content"},{default:(0,u.w5)((()=>[(0,u._)("div",re,[(0,u.Wm)(m,{subtask:n.subtask,onCloseModal:o.closeModal,onUpdateSubtask:o.updateSubtask},null,8,["subtask","onCloseModal","onUpdateSubtask"]),(0,u._)("div",de,[n.subtask.is_finished?((0,u.wg)(),(0,u.j4)(v.T,{key:1,class:"button secondary",onClick:t[18]||(t[18]=(0,a.iM)((e=>o.showCompleteTaskModal()),["stop"]))},{default:(0,u.w5)((()=>[(0,u.Uk)("Znovu otvoriť")])),_:1})):((0,u.wg)(),(0,u.j4)(v.T,{key:0,class:"done-btn",onClick:t[17]||(t[17]=(0,a.iM)((e=>o.showCompleteTaskModal()),["stop"]))},{default:(0,u.w5)((()=>[(0,u.Uk)("Dokončiť")])),_:1})),(0,u.Wm)(v.T,{class:"button secondary",onClick:t[19]||(t[19]=e=>o.closeModal())},{default:(0,u.w5)((()=>[(0,u.Uk)("Uložiť zmeny")])),_:1})])])])),_:1})])),_:1}))])),_:1},8,["content"])])),_:1},8,["modelValue"])}var ce=s(63972),me=s(87103);const he={class:"w-100 d-flex align-center"},pe={key:0,class:"m-2 d-flex align-center flex-wrap"},ve={key:0,class:"d-flex align-center"},ke=["src"];function ge(e,t,i,l,n,o){return(0,u.wg)(),(0,u.iD)("div",he,[(0,u._)("input",{type:"file",multiple:"",name:"file",id:"fileInput",class:"hidden-input",accept:"*",onChange:t[0]||(t[0]=(...e)=>o.onChange&&o.onChange(...e)),ref:"fileUpload"},null,544),(0,u.Wm)(v.T,{class:"upload-btn",onClick:t[1]||(t[1]=t=>e.$refs.fileUpload.click())},{default:(0,u.w5)((()=>[(0,u.Wm)(w.t,{class:"mx-1",icon:"mdi-cloud-upload-outline"}),(0,u.Uk)("NAHRAŤ ")])),_:1}),n.uploadedFiles?((0,u.wg)(),(0,u.iD)("div",pe,[((0,u.wg)(!0),(0,u.iD)(u.HY,null,(0,u.Ko)(n.uploadedFiles,(e=>((0,u.wg)(),(0,u.iD)("div",{key:e.name,class:"mx-2"},[(0,u.Wm)(me.v,{class:"mt-2"},{default:(0,u.w5)((()=>[(0,u.Uk)((0,p.zw)(e.name)+" ",1),(0,u.Wm)(w.t,{class:"mx-1",icon:"mdi-paperclip"}),(0,u._)("p",null,(0,p.zw)((e.size/1048576).toFixed(2))+" MB",1),(0,u.Wm)(w.t,{size:"small",icon:"mdi-close",onClick:(0,a.iM)((t=>o.remove(n.uploadedFiles.indexOf(e))),["stop"])},null,8,["onClick"])])),_:2},1024)])))),128)),i.isSaving?((0,u.wg)(),(0,u.iD)("div",ve,[i.isSaving?((0,u.wg)(),(0,u.iD)("img",{key:0,class:"gif-loader",src:s(14214),alt:"Loading..."},null,8,ke)):(0,u.kq)("",!0)])):(0,u.kq)("",!0)])):(0,u.kq)("",!0)])}var fe={emit:["files-uploaded"],props:{files:{type:Array,default:()=>[]},isSaving:{type:Boolean,required:!1}},data(){return{uploadedFiles:[]}},created(){this.uploadedFiles=this.files},methods:{onChange(){const e=[...this.$refs.fileUpload.files],t=52428800,s=e.filter((e=>e.size>t));s.length>0?this.$toast.error("File is too large. Maximum file size is 50 MB."):(this.uploadedFiles=[...this.uploadedFiles,...e],this.$emit("files-uploaded",this.uploadedFiles),this.$refs.fileUpload.value="")},remove(e){this.uploadedFiles.splice(e,1)}}};const we=(0,M.Z)(fe,[["render",ge],["__scopeId","data-v-29172155"]]);var _e=we,ye=s(16824),be=s(68521),De=s(74286);const Me={class:"d-flex align-center"},Te=(0,u._)("p",{class:"mx-3"},"Trvanie",-1),Ce={class:"d-flex align-center mb-3"},$e=(0,u._)("p",{class:"task-badge rounded-pill"},"Pridať záznam",-1),je={class:"d-flex justify-space-between align-center"},Ee=(0,u._)("h1",null,"Pridať dátum",-1);function xe(e,t,s,i,l,n){const o=(0,u.up)("Datepicker");return(0,u.wg)(),(0,u.iD)(u.HY,null,[(0,u.Wm)(ye.o,{"no-gutters":""},{default:(0,u.w5)((()=>[(0,u.Wm)(be.D,{cols:"5"},{default:(0,u.w5)((()=>[(0,u.Wm)(De.C,{class:"py-3"},{default:(0,u.w5)((()=>[(0,u._)("div",Me,[(0,u.Wm)(w.t,{icon:"mdi-calendar-week",size:"large"}),Te])])),_:1})])),_:1}),(0,u.Wm)(be.D,{cols:"7"},{default:(0,u.w5)((()=>[(0,u.Wm)(De.C,{class:"py-3"},{default:(0,u.w5)((()=>[(0,u._)("div",Ce,[(0,u.Wm)(w.t,{onClick:t[0]||(t[0]=e=>l.showModal=!0),class:"add-date cursor-pointer mr-2",icon:"mdi-plus",size:"medium"}),$e]),((0,u.wg)(!0),(0,u.iD)(u.HY,null,(0,u.Ko)(s.timeblocks,((e,t)=>((0,u.wg)(),(0,u.iD)("div",{key:e.id,class:"d-flex align-center mb-3"},[(0,u.Wm)(w.t,{onClick:(0,a.iM)((a=>s.subtask.id?n.deleteTimeblock(e):n.deleteTimeblockWithoutId(t)),["stop"]),class:"circle-border cursor-pointer mr-2",icon:"mdi-minus",size:"medium"},null,8,["onClick"]),(0,u._)("p",{class:(0,p.C_)(["task-badge rounded-pill",{"strike-through":e.is_finished}])},(0,p.zw)(l.tmUtils.formatDateTime(e.start))+" - "+(0,p.zw)(l.tmUtils.formatDateTime(e.end)),3),(0,u.wy)((0,u.Wm)(w.t,{onClick:(0,a.iM)((t=>n.toggleTimeblockIsFinished(e)),["stop"]),class:(0,p.C_)(["circle-border cursor-pointer ml-2",{completed:e.is_finished}]),icon:"mdi-check",size:"medium"},null,8,["onClick","class"]),[[a.F8,s.subtask.id]])])))),128))])),_:1})])),_:1})])),_:1}),(0,u.Wm)(f.B,{"max-width":"750",modelValue:l.showModal,"onUpdate:modelValue":t[6]||(t[6]=e=>l.showModal=e),persistent:""},{default:(0,u.w5)((()=>[(0,u.Wm)(k._,null,{default:(0,u.w5)((()=>[(0,u._)("div",je,[Ee,(0,u.Wm)(w.t,{onClick:t[1]||(t[1]=(0,a.iM)((e=>n.closeModal()),["stop"])),icon:"mdi-close",size:"large"})]),(0,u.Wm)(g.h,{class:"mt-10 d-flex flex-column modal-content"},{default:(0,u.w5)((()=>[(0,u.Wm)(o,{modelValue:l.form.date,"onUpdate:modelValue":t[2]||(t[2]=e=>l.form.date=e),format:"dd.MM.yyyy",locale:"sk","select-text":"Vybrať","cancel-text":"Zrušiť",placeholder:"Dátum","enable-time-picker":!1,class:(0,p.C_)(["mb-5 modal-input",{error:l.v$.form.date.$errors.length}])},null,8,["modelValue","class"]),(0,u.Wm)(j.hw,{modelValue:l.form.starts_at_time,"onUpdate:modelValue":t[3]||(t[3]=e=>l.form.starts_at_time=e),type:"time",variant:"solo","bg-color":"white",hint:l.v$.form.starts_at_time.$errors?l.errorUtils.parseErrors(l.v$.form.starts_at_time.$errors):null,class:(0,p.C_)([{error:l.v$.form.starts_at_time.$errors.length},"mb-1 modal-input"]),label:"Začiatok"},null,8,["modelValue","hint","class"]),(0,u.Wm)(j.hw,{modelValue:l.form.ends_at_time,"onUpdate:modelValue":t[4]||(t[4]=e=>l.form.ends_at_time=e),type:"time",variant:"solo","bg-color":"white",hint:l.v$.form.ends_at_time.$errors?l.errorUtils.parseErrors(l.v$.form.ends_at_time.$errors):null,class:(0,p.C_)([{error:l.v$.form.ends_at_time.$errors.length},"modal-input"]),label:"Koniec"},null,8,["modelValue","hint","class"])])),_:1}),(0,u.Wm)(v.T,{onClick:t[5]||(t[5]=e=>n.submit()),class:"button primary mt-5"},{default:(0,u.w5)((()=>[(0,u.Uk)("Potvrdiť")])),_:1})])),_:1})])),_:1},8,["modelValue"])],64)}var We=s(36797),Se=s.n(We),Ve={mixins:[b],emits:["update-subtask"],components:{Datepicker:ce.Z},props:{timeblocks:{type:Array,required:!0},subtask:{type:Object,required:!0}},data(){return{v$:(0,W.ZP)(),errorUtils:V.Z,tmUtils:O.Z,showModal:!1,form:{date:null,starts_at_time:"09:00",ends_at_time:"16:00"}}},validations(){return{form:{date:{required:S.C1},starts_at_time:{required:S.C1},ends_at_time:{required:S.C1}}}},methods:{async submit(){if(!await this.v$.$validate())return;const e=JSON.parse(JSON.stringify(this.subtask)),t=this.form.starts_at_time.split(":"),s=this.form.ends_at_time.split(":"),a=Se()(this.form.date).hours(parseInt(t[0])).minutes(parseInt(t[1])).toISOString(),i=Se()(this.form.date).hours(parseInt(s[0])).minutes(parseInt(s[1])).toISOString();if(e?.timeblocks||(e.timeblocks=[]),e?.timesheets||(e.timesheets=[]),e?.is_finished||(e.is_finished=0),e.timeblocks.push({end:O.Z.formatDateTimeForBackend(i),id:null,is_finished:0,start:O.Z.formatDateTimeForBackend(a)}),e.deadline&&(e.deadline=O.Z.formatDateTimeForBackend(e.deadline)),!e.id)return this.$emit("update-unfinished-subtask",e),void this.closeModal();this._update(e)},async toggleTimeblockIsFinished(e){const t=JSON.parse(JSON.stringify(this.subtask)),s=JSON.parse(JSON.stringify(e));s.is_finished=1==s.is_finished?0:1;try{const{data:e}=await this.$axios.put_auth(`v1/timeblocks/${s.id}`,s);t.timeblocks=t.timeblocks.map((t=>t.id==e.id?e:t)),this.$events.emit("on-subtask-edited",t),this.$emit("update-subtask",t),s.is_finished&&this.$events.emit("show-task-add-time-modal",{subtask:t})}catch(a){this.$toast.error(a.message||a)}},async deleteTimeblock({id:e}){const t=JSON.parse(JSON.stringify(this.subtask));t.timeblocks=t.timeblocks.filter((t=>t.id!=e)),t.deadline&&(t.deadline=O.Z.formatDateTimeForBackend(t.deadline)),this._update(t)},deleteTimeblockWithoutId(e){this.$emit("delete-timeblock")},async _update(e){try{const t=e.timesheets.map((e=>(delete e.employee_name,e))),{subtask:s}=await this.$axios.put_auth(`v1/subtasks/${e.id}`,{...e,timesheets:t});this.closeModal(),this.$events.emit("on-subtask-edited",s)}catch(t){this.$toast.error(t.message||t)}},closeModal(){this.form={date:null,starts_at_time:"09:00",ends_at_time:"16:00"},this.showModal=!1,this.$nextTick((()=>this.v$.$reset()))}}};const Oe=(0,M.Z)(Ve,[["render",xe]]);var ze=Oe,Ae=s(96149),Ue={data(){return{preventInputFocus:!1}},methods:{onDateFocus(e){void 0==e&&(this.preventInputFocus=!0)},onInputFocus(e){this.preventInputFocus&&(e.target.blur(),this.preventInputFocus=!1)}}},Ze=s(15941),He={computed:{employeesOptions(){const e=[...this.mastertask.employees].map((e=>e.id));return this.enrichedEmployees.filter((t=>!e.includes(t.id)))||[]},projectsOptions(){const e=/[^a-zA-Z0-9 ]/g,t=this.projectCodeSearch?this.projectCodeSearch.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(e,""):"",s=this.projects.filter((s=>{const a=s.code.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(e,"");return a.toLowerCase().includes(t.toLowerCase())}));let a=s?.length?s.slice(0,10):this.projects.slice(0,10);if(!this.mastertask?.project_id)return a;const i=this.projects.find((e=>e.id==this.mastertask?.project_id));return a=a.filter((e=>e.id!=i.id)),[...a,i]}},methods:{onEmployeeSelected(e){const t=this.enrichedEmployees.find((t=>t.id==e));Ze.log("add employee",t),this.mastertask.employees.push(t),this.showAddEmployeeInput=!1},onEmployeeDurationChanged(){let e=0;this.mastertask.employees=this.mastertask.employees.map((t=>("string"==typeof t.duration?(e+=parseFloat(t.duration),t.duration=parseFloat(t.duration),t.invalid=!1):"number"==typeof t.duration&&(e+=t.duration,t.invalid=!1),t))),this.mastertask.duration=e}},watch:{"mastertask.team_id"(e){if(!e)return;const t=this.teams.find((t=>t.id==e));t&&(this.mastertask.team=JSON.parse(JSON.stringify(t)),this.mastertask.employees=[...this.mastertask.team.employees])}}},Fe=s(66154);function Ie(e,t,s,a,i,l){const n=(0,u.up)("A-mastertask-name"),o=(0,u.up)("A-mastertask-status"),r=(0,u.up)("A-task-deadline"),d=(0,u.up)("A-task-timeblocks"),c=(0,u.up)("Z-created-by"),m=(0,u.up)("A-task-assigned-employee"),h=(0,u.up)("A-task-planned-time"),p=(0,u.up)("A-task-remaining-time"),v=(0,u.up)("A-task-spent-time"),k=(0,u.up)("A-task-description"),g=(0,u.up)("Z-files");return(0,u.wg)(),(0,u.iD)(u.HY,null,[(0,u.Wm)(n,{name:s.subtask._master_task.name,id:s.subtask.master_task_id,color:s.subtask._master_task.color,onCloseModal:t[0]||(t[0]=t=>e.$emit("close-modal"))},null,8,["name","id","color"]),(0,u.Wm)(o,{isFinished:s.subtask.is_finished},null,8,["isFinished"]),(0,u.Wm)(r,{subtask:s.subtask},null,8,["subtask"]),(0,u.Wm)(d,{timeblocks:s.subtask.timeblocks,subtask:s.subtask,onUpdateSubtask:t[1]||(t[1]=t=>e.$emit("update-subtask",t))},null,8,["timeblocks","subtask"]),(0,u.Wm)(c,{"employee-id":s.subtask.created_by},null,8,["employee-id"]),(0,u.Wm)(m,{employee:s.subtask._employee},null,8,["employee"]),(0,u.Wm)(h,{hours:s.subtask.duration},null,8,["hours"]),(0,u.Wm)(p,{hours:s.subtask.duration-s.subtask.spent_time},null,8,["hours"]),(0,u.Wm)(v,{hours:s.subtask.spent_time,subtask:s.subtask},null,8,["hours","subtask"]),(0,u.Wm)(k,{description:s.subtask.description,"mastertask-description":s.subtask.master_task_description},null,8,["description","mastertask-description"]),(0,u.Wm)(g,{files:s.subtask.files},null,8,["files"])],64)}const Pe={class:"d-flex align-center"},Le=(0,u._)("p",{class:"mx-3"},"Mastertask",-1);function Ne(e,t,s,a,i,l){return(0,u.wg)(),(0,u.j4)(ye.o,{"no-gutters":"",class:"align-center"},{default:(0,u.w5)((()=>[(0,u.Wm)(be.D,{cols:"5"},{default:(0,u.w5)((()=>[(0,u.Wm)(De.C,{class:"py-3"},{default:(0,u.w5)((()=>[(0,u._)("div",Pe,[(0,u.Wm)(w.t,{icon:"mdi-link",size:"large"}),Le])])),_:1})])),_:1}),(0,u.Wm)(be.D,{cols:"7"},{default:(0,u.w5)((()=>[(0,u.Wm)(De.C,{class:"py-3"},{default:(0,u.w5)((()=>[(0,u._)("p",{class:"task-badge px-4 py-2 rounded-pill hover",onClick:t[0]||(t[0]=e=>l.openMastertask()),style:(0,p.j5)({backgroundColor:s.color})},(0,p.zw)(s.name),5)])),_:1})])),_:1})])),_:1})}var Ye={emits:["close-modal"],props:{name:{type:String,required:!0},id:{type:Number,required:!0},color:{type:String,required:!0}},methods:{openMastertask(){this.$emit("close-modal"),this.$events.emit("show-mastertask-modal",{mastertask:{id:this.id},editMode:!1})}}};const qe=(0,M.Z)(Ye,[["render",Ne]]);var Be=qe;const Re={class:"d-flex align-center"},Ke=(0,u._)("p",{class:"mx-3"},"Status",-1),Je={key:0,class:"status-badge px-4 py-2 rounded-pill"},Ge={key:1,class:"status-badge px-4 py-2 rounded-pill"};function Xe(e,t,s,a,i,l){return(0,u.wg)(),(0,u.j4)(ye.o,{"no-gutters":"",class:"align-center"},{default:(0,u.w5)((()=>[(0,u.Wm)(be.D,{cols:"5"},{default:(0,u.w5)((()=>[(0,u.Wm)(De.C,{class:"py-3"},{default:(0,u.w5)((()=>[(0,u._)("div",Re,[(0,u.Wm)(w.t,{icon:"mdi-drag-vertical",size:"large"}),Ke])])),_:1})])),_:1}),(0,u.Wm)(be.D,{cols:"7"},{default:(0,u.w5)((()=>[(0,u.Wm)(De.C,{class:"py-3"},{default:(0,u.w5)((()=>[s.isFinished?((0,u.wg)(),(0,u.iD)("p",Je,"Ukončený")):((0,u.wg)(),(0,u.iD)("p",Ge,"Neukončený"))])),_:1})])),_:1})])),_:1})}var Qe={props:{isFinished:{type:Number,default:()=>0}}};const et=(0,M.Z)(Qe,[["render",Xe]]);var tt=et;const st={class:"d-flex align-center"},at=(0,u._)("p",{class:"mx-3"},"Vytvoril",-1),it={class:"employee-selected-avatar d-flex justify-center align-center"},lt={class:"ml-2"};function nt(e,t,s,a,i,l){return(0,u.wg)(),(0,u.j4)(ye.o,{"no-gutters":"",class:"align-center"},{default:(0,u.w5)((()=>[(0,u.Wm)(be.D,{cols:"5"},{default:(0,u.w5)((()=>[(0,u.Wm)(De.C,{class:"py-3"},{default:(0,u.w5)((()=>[(0,u._)("div",st,[(0,u.Wm)(w.t,{icon:"mdi-account-star-outline",size:"large"}),at])])),_:1})])),_:1}),(0,u.Wm)(be.D,{cols:"7"},{default:(0,u.w5)((()=>[(0,u.Wm)(De.C,{class:"py-3 d-flex align-center"},{default:(0,u.w5)((()=>[(0,u._)("p",it,(0,p.zw)(l.employee?l.employee._initials:"?"),1),(0,u._)("p",lt,(0,p.zw)(l.employee?l.employee._fullName:e.$t("Unasigned")),1)])),_:1})])),_:1})])),_:1})}var ot={props:{employeeId:{type:[Number],required:!1}},computed:{...(0,z.Se)("tm",["enrichedEmployees"]),employee(){return this.enrichedEmployees.find((e=>e.id==this.employeeId))}}};const rt=(0,M.Z)(ot,[["render",nt]]);var dt=rt;const ut={class:"d-flex align-center"},ct=(0,u._)("p",{class:"mx-3"},"Priradený",-1),mt={class:"employee-selected-avatar d-flex justify-center align-center"},ht=["innerHTML"];function pt(e,t,s,a,i,l){return(0,u.wg)(),(0,u.j4)(ye.o,{"no-gutters":"",class:"align-center"},{default:(0,u.w5)((()=>[(0,u.Wm)(be.D,{cols:"5"},{default:(0,u.w5)((()=>[(0,u.Wm)(De.C,{class:"py-3"},{default:(0,u.w5)((()=>[(0,u._)("div",ut,[(0,u.Wm)(w.t,{icon:"mdi-account-outline",size:"large"}),ct])])),_:1})])),_:1}),(0,u.Wm)(be.D,{cols:"7"},{default:(0,u.w5)((()=>[(0,u.Wm)(De.C,{class:"py-3 d-flex align-center"},{default:(0,u.w5)((()=>[(0,u._)("p",mt,(0,p.zw)(s.employee.name.charAt(0)+s.employee.surname.charAt(0)),1),(0,u._)("p",{class:"ml-2",innerHTML:`${s.employee.name} ${s.employee.surname}`},null,8,ht)])),_:1})])),_:1})])),_:1})}var vt={props:{employee:{type:Object,required:!0}}};const kt=(0,M.Z)(vt,[["render",pt]]);var gt=kt;const ft={class:"d-flex align-center"},wt=(0,u._)("p",{class:"mx-3"},"Naplánovaný čas",-1);function _t(e,t,s,a,i,l){return(0,u.wg)(),(0,u.j4)(ye.o,{"no-gutters":"",class:"align-center"},{default:(0,u.w5)((()=>[(0,u.Wm)(be.D,{cols:"5"},{default:(0,u.w5)((()=>[(0,u.Wm)(De.C,{class:"py-3"},{default:(0,u.w5)((()=>[(0,u._)("div",ft,[(0,u.Wm)(w.t,{icon:"mdi-clock-time-three-outline",size:"large"}),wt])])),_:1})])),_:1}),(0,u.Wm)(be.D,{cols:"7"},{default:(0,u.w5)((()=>[(0,u.Wm)(De.C,{class:"py-3"},{default:(0,u.w5)((()=>[(0,u._)("p",null,(0,p.zw)(s.hours)+" h",1)])),_:1})])),_:1})])),_:1})}var yt={props:{hours:{type:Number,required:!0}}};const bt=(0,M.Z)(yt,[["render",_t]]);var Dt=bt;const Mt=e=>((0,u.dD)("data-v-c9f868dc"),e=e(),(0,u.Cn)(),e),Tt={class:"d-flex align-center"},Ct=Mt((()=>(0,u._)("p",{class:"mx-3"},"Odpracovaný čas",-1))),$t={class:"d-flex align-center mb-3"},jt=Mt((()=>(0,u._)("p",{class:"task-badge rounded-pill"},"Pridať záznam",-1))),Et={class:"d-flex align-center flex-start width-100"},xt={class:"task-badge rounded-pill"},Wt={class:"ml-5"},St={class:"d-flex justify-space-between align-center"},Vt=Mt((()=>(0,u._)("h1",null,"Pridať odpracovaný čas",-1)));function Ot(e,t,s,i,l,n){return(0,u.wg)(),(0,u.iD)(u.HY,null,[(0,u.Wm)(ye.o,{"no-gutters":""},{default:(0,u.w5)((()=>[(0,u.Wm)(be.D,{cols:"5"},{default:(0,u.w5)((()=>[(0,u.Wm)(De.C,{class:"py-3"},{default:(0,u.w5)((()=>[(0,u._)("div",Tt,[(0,u.Wm)(w.t,{icon:"mdi-clock-time-three-outline",size:"large"}),Ct])])),_:1})])),_:1}),(0,u.Wm)(be.D,{cols:"7"},{default:(0,u.w5)((()=>[(0,u.Wm)(De.C,{class:"py-3"},{default:(0,u.w5)((()=>[(0,u._)("p",null,(0,p.zw)(s.hours)+" h",1)])),_:1}),(0,u.Wm)(De.C,{class:"py-3"},{default:(0,u.w5)((()=>[(0,u._)("div",$t,[(0,u.Wm)(w.t,{onClick:t[0]||(t[0]=e=>l.showModal=!0),class:"add-date cursor-pointer mr-2",icon:"mdi-plus",size:"medium"}),jt]),s.subtask.timesheets.length?((0,u.wg)(!0),(0,u.iD)(u.HY,{key:0},(0,u.Ko)(s.subtask.timesheets,(e=>((0,u.wg)(),(0,u.iD)("div",{key:e.id,class:"d-flex align-center mb-3"},[(0,u.Wm)(w.t,{onClick:(0,a.iM)((t=>n.deleteTimesheet(e)),["stop"]),class:"circle-border cursor-pointer mr-2",icon:"mdi-minus",size:"medium"},null,8,["onClick"]),(0,u._)("div",Et,[(0,u._)("p",xt,(0,p.zw)(e.time),1),(0,u._)("p",Wt,(0,p.zw)(e.employee_name)+" ("+(0,p.zw)(e.timestamp)+")",1)])])))),128)):(0,u.kq)("",!0)])),_:1})])),_:1})])),_:1}),(0,u.Wm)(f.B,{"max-width":"750",modelValue:l.showModal,"onUpdate:modelValue":t[4]||(t[4]=e=>l.showModal=e),persistent:""},{default:(0,u.w5)((()=>[(0,u.Wm)(k._,null,{default:(0,u.w5)((()=>[(0,u._)("div",St,[Vt,(0,u.Wm)(w.t,{onClick:t[1]||(t[1]=(0,a.iM)((e=>n.closeModal()),["stop"])),icon:"mdi-close",size:"large"})]),(0,u.Wm)(g.h,{class:"mt-10 d-flex justify-start align-center"},{default:(0,u.w5)((()=>[(0,u.Wm)(j.hw,{modelValue:l.form.hours,"onUpdate:modelValue":t[2]||(t[2]=e=>l.form.hours=e),variant:"solo","bg-color":"white",type:"number",hint:l.v$.form.hours.$errors?l.errorUtils.parseErrors(l.v$.form.hours.$errors):null,class:(0,p.C_)([{error:l.v$.form.hours.$errors.length},"mb-2"]),label:"Odpracovaný čas"},null,8,["modelValue","hint","class"])])),_:1}),(0,u.Wm)(v.T,{onClick:t[3]||(t[3]=e=>n.submit()),class:"button primary mt-5"},{default:(0,u.w5)((()=>[(0,u.Uk)("Potvrdiť")])),_:1})])),_:1})])),_:1},8,["modelValue"])],64)}var zt={mixins:[b],props:{hours:{type:Number,required:!0},subtask:{type:Object,required:!0}},data(){return{moment:Se(),v$:(0,W.ZP)(),errorUtils:V.Z,showModal:!1,form:{hours:null}}},validations(){return{form:{hours:{required:S.C1,numeric:S.uR,minValue:(0,S.uv)(.1)}}}},computed:{...(0,z.Se)("auth",["user"])},methods:{async submit(){if(!await this.v$.$validate())return;const e=JSON.parse(JSON.stringify(this.subtask));e.timesheets.push({id:null,employee_id:this.user.id,time:"string"==typeof this.form.hours?parseFloat(this.form.hours):this.form.hours}),e.deadline&&(e.deadline=O.Z.formatDateTimeForBackend(e.deadline)),this._update(e)},async deleteTimesheet({id:e}){const t=JSON.parse(JSON.stringify(this.subtask));t.timesheets=t.timesheets.filter((t=>t.id!=e)),t.deadline&&(t.deadline=O.Z.formatDateTimeForBackend(t.deadline)),this._update(t)},closeModal(){this.form={hours:null},this.showModal=!1,this.$nextTick((()=>this.v$.$reset()))},async _update(e){try{e.timesheets=e.timesheets.map((e=>(delete e.employee_name,e)));const{subtask:t}=await this.$axios.put_auth(`v1/subtasks/${e.id}`,e);this.closeModal(),this.$events.emit("on-subtask-edited",t)}catch(t){this.$toast.error(t.message||t)}}}};const At=(0,M.Z)(zt,[["render",Ot],["__scopeId","data-v-c9f868dc"]]);var Ut=At;const Zt={class:"d-flex align-center"},Ht=(0,u._)("p",{class:"mx-3"},"Zostávajúci čas",-1);function Ft(e,t,s,a,i,l){return(0,u.wg)(),(0,u.j4)(ye.o,{"no-gutters":"",class:"align-center border-bottom"},{default:(0,u.w5)((()=>[(0,u.Wm)(be.D,{cols:"5"},{default:(0,u.w5)((()=>[(0,u.Wm)(De.C,{class:"py-3"},{default:(0,u.w5)((()=>[(0,u._)("div",Zt,[(0,u.Wm)(w.t,{icon:"mdi-clock-time-three-outline",size:"large"}),Ht])])),_:1})])),_:1}),(0,u.Wm)(be.D,{cols:"7"},{default:(0,u.w5)((()=>[(0,u.Wm)(De.C,{class:"py-3"},{default:(0,u.w5)((()=>[(0,u._)("p",null,(0,p.zw)(s.hours.toFixed(2))+" h",1)])),_:1})])),_:1})])),_:1})}var It={props:{hours:{type:Number,required:!0}}};const Pt=(0,M.Z)(It,[["render",Ft]]);var Lt=Pt,Nt=s(80678);const Yt={class:"d-flex align-center"},qt=(0,u._)("p",{class:"mx-3"},"Deadline",-1);function Bt(e,t,s,a,i,l){return(0,u.wg)(),(0,u.j4)(ye.o,{"no-gutters":"",class:"align-center"},{default:(0,u.w5)((()=>[(0,u.Wm)(be.D,{cols:"5"},{default:(0,u.w5)((()=>[(0,u.Wm)(De.C,{class:"py-3"},{default:(0,u.w5)((()=>[(0,u._)("div",Yt,[(0,u.Wm)(w.t,{icon:"mdi-calendar-week",size:"large"}),qt])])),_:1})])),_:1}),(0,u.Wm)(be.D,{cols:"7"},{default:(0,u.w5)((()=>[(0,u.Wm)(De.C,{class:"py-3"},{default:(0,u.w5)((()=>[s.subtask.deadline?((0,u.wg)(),(0,u.iD)("p",{key:0,class:(0,p.C_)(""+(i.tmUtils.isAfter(s.subtask.deadline)?"text-black":"text-red-darken-4"))},(0,p.zw)(i.tmUtils.formatDate(s.subtask.deadline)),3)):((0,u.wg)(),(0,u.j4)(Nt.N,{key:1,text:"Deadline z Mastertasku",location:"end"},{activator:(0,u.w5)((({props:e})=>[(0,u._)("span",(0,u.dG)({class:"cursor-pointer"},e),(0,p.zw)(l.getMasterTaskDeadline(s.subtask))+"*",17)])),_:1}))])),_:1})])),_:1})])),_:1})}var Rt={props:{subtask:{type:[String,Object,null],required:!0}},computed:{...(0,z.Se)("tm",["mastertasks"])},data(){return{tmUtils:O.Z}},methods:{getMasterTaskDeadline(e){if(!this.mastertasks)return"";const t=this.mastertasks.find((t=>t.id===e.master_task_id));return Se()(t).format("DD.MM.yyyy")?Se()(t.deadline).format("DD.MM.yyyy"):""}}};const Kt=(0,M.Z)(Rt,[["render",Bt]]);var Jt=Kt;const Gt={key:0,class:"px-5 py-5 border-bottom"},Xt=(0,u._)("p",null,"Popis zadania",-1),Qt=["innerHTML"],es={key:1,class:"px-5 py-5 border-bottom"},ts=(0,u._)("p",null,"Popis mastertasku",-1),ss=["innerHTML"];function as(e,t,s,a,i,l){return(0,u.wg)(),(0,u.iD)(u.HY,null,[s.description?((0,u.wg)(),(0,u.iD)("div",Gt,[Xt,(0,u._)("section",{innerHTML:s.description,class:"description-detail px-2 py-2 w-100 rounded mt-2"},null,8,Qt)])):(0,u.kq)("",!0),s.mastertaskDescription?((0,u.wg)(),(0,u.iD)("div",es,[ts,(0,u._)("section",{innerHTML:s.mastertaskDescription,class:"description-detail px-2 py-2 w-100 rounded mt-2"},null,8,ss)])):(0,u.kq)("",!0)],64)}var is={props:{description:{type:String||null,default:()=>null},mastertaskDescription:{type:String||null,default:()=>null}}};const ls=(0,M.Z)(is,[["render",as]]);var ns=ls;const os=e=>((0,u.dD)("data-v-439e5395"),e=e(),(0,u.Cn)(),e),rs=os((()=>(0,u._)("p",{class:"mt-5"},"Prílohy",-1))),ds={class:"w-100 d-flex align-center"},us=["onClick"],cs={key:0,class:"d-flex align-center"},ms=["src"],hs=os((()=>(0,u._)("p",{class:"ml-2"},"Súbor sa sťahuje, počkajte prosím",-1)));function ps(e,t,a,i,l,n){const o=(0,u.up)("W-loadable");return(0,u.wg)(),(0,u.iD)(u.HY,null,[rs,(0,u._)("div",ds,[(0,u.Wm)(o,{content:a.files,emptyMessage:"Žiadne prílohy neboli nahraté"},{default:(0,u.w5)((()=>[((0,u.wg)(!0),(0,u.iD)(u.HY,null,(0,u.Ko)(a.files,((e,t)=>((0,u.wg)(),(0,u.iD)("div",{key:e.id,class:(0,p.C_)(["d-flex align-center flex-wrap",[0===t?"ml-0":"ml-2"]])},[(0,u.Wm)(me.v,{class:"mt-2"},{default:(0,u.w5)((()=>[(0,u._)("p",{onClick:t=>n.downloadFile(e),class:"cursor-pointer"},(0,p.zw)(e.name),9,us),(0,u.Wm)(w.t,{class:"mx-1",icon:"mdi-paperclip"}),(0,u._)("p",null,(0,p.zw)((e.file_size/1048576).toFixed(2))+" MB",1)])),_:2},1024),e.isLoading?((0,u.wg)(),(0,u.iD)("div",cs,[(0,u._)("img",{class:"gif-loader",src:s(14214),alt:"Loading..."},null,8,ms),hs])):(0,u.kq)("",!0)],2)))),128))])),_:1},8,["content"])])],64)}var vs={props:{files:{type:Array,default:()=>[]}},data(){return{isLoading:!1}},methods:{async downloadFile(e){e.isLoading=!0;try{const t=await fetch(e.path),s=await t.blob();Fe.saveAs(s,e.name)}catch(t){this.$toast.error(t)}finally{e.isLoading=!1}}}};const ks=(0,M.Z)(vs,[["render",ps],["__scopeId","data-v-439e5395"]]);var gs=ks,fs={emits:["close-modal","update-subtask"],components:{ZFiles:gs,AMastertaskName:Be,AMastertaskStatus:tt,ATaskTimeblocks:ze,ZCreatedBy:dt,ATaskAssignedEmployee:gt,ATaskPlannedTime:Dt,ATaskSpentTime:Ut,ATaskRemainingTime:Lt,ATaskDescription:ns,ATaskDeadline:Jt},props:{subtask:{type:Object,required:!0}}};const ws=(0,M.Z)(fs,[["render",Ie]]);var _s=ws,ys=s(15941),bs={emits:["close","refresh"],mixins:[Ue,He,A.Z,b],components:{ZTaskReadonlyInfo:_s,ZFilesUpload:_e,Datepicker:ce.Z,QuillEditor:Ae.Bn},data(){return{tmUtils:O.Z,editMode:!1,visible:!1,subtask:null,isSaving:!1,errorUtils:V.Z,v$:(0,W.ZP)(),employeeValidations:[],preventInputFocus:!1,showDatePicker:!1,selectedNewDate:[]}},computed:{...(0,z.Se)("tm",["mastertasks","enrichedEmployees"])},validations(){return{subtask:{master_task_id:{required:S.C1},deadline:{required:S.C1},_deadline_time:{required:S.C1}}}},mounted(){this.$events.on("add-timeblock",(e=>{this.subtask?.timeblocks||(this.subtask.timeblocks=[]),this.subtask?.timesheets||(this.subtask.timesheets=[]),this.subtask?.is_finished||(this.subtask.is_finished=0),this.subtask.timeblocks.push(e)})),this.$events.on("on-subtask-edited",(e=>{e?.id==this.subtask?.id&&(this.subtask=this._enrichTask(e)),this.$forceUpdate()})),this.$events.on("on-subtask-deleted",(e=>{e?.id==this.subtask?.id&&this.closeModal()}))},methods:{async showModal({subtask:e,editMode:t=!1,mastertask:s={}}){this.isSaving=!1,this.subtask=null,this.visible=!0,this.$nextTick((()=>this.v$.$reset()));try{if(e?.id){const t=await this.$axios.get_auth_data(`v1/subtasks/${e.id}`);if(!t.deadline)return this.subtask=this._enrichTask(t);const s=t.deadline.split(" ");t.deadline=Se()(s[0]),t._deadline_time=s[1],this.subtask=this._enrichTask(t)}else this.subtask={master_task:s,employees:[{}],_deadline_time:"17:00"},e?.deadline&&e._deadline_time&&(this.subtask.deadline=e.deadline,this.subtask._deadline_time=e._deadline_time),e?.master_task_id&&e?.project_code&&(this.subtask.master_task_id=e.master_task_id,this.subtask.project_code=e.project_code);this.editMode=t||!this.subtask.id}catch(a){this.$toast.error(a)}},deleteTimeblock(e){this.subtask.timeblocks.splice(e,1)},closeModal(){this.visible=!1,this.$router.replace({name:this.$route.name})},async save(){const e=await this._validateEmployees();if(await this.v$.$validate()&&e){this.subtask.description=this.$refs["description"].getHTML(),this._mergeDeadlineTimeDate();try{if(this.isSaving=!0,this.subtask.deadline=Se()(this.subtask.deadline).format("YYYY-MM-DD HH:mm:SS"),this.subtask?.id){const e=this.subtask.timesheets.map((e=>(delete e.employee_name,e))),{subtask:t}=await this.$axios.put_auth(`v1/subtasks/${this.subtask.id}`,{...this.subtask,timesheets:e});this.$store.commit("tm/update_subtask",t),this.$events.emit("on-subtask-edited",this.subtask)}else{const{subtasks:e}=await this.$axios.post_auth(`v1/mastertasks/${this.subtask.master_task_id}/subtasks`,this.subtask);this.subtask.id=e[0].id,e.forEach((e=>{this.$store.commit("tm/update_subtask",e),this.$events.emit("on-subtask-edited",this.subtask)})),this.$events.emit("task-created"),this.$events.emit("close-both-modals")}this.closeModal()}catch(t){this.$toast.error(t)}finally{this.isSaving=!1}}},openDeleteTaskModal(e){this.$events.emit("show-delete-task-modal",{subtask:e})},showCompleteTaskModal(){this.$events.emit("show-complete-task-modal",{subtask:this.subtask}),this.subtask.deadline&&(this.subtask.deadline=O.Z.formatDateTimeForBackend(this.subtask.deadline))},filesUploaded(e){this.subtask.files=e},updateSubtask(e){ys.log("UPDATE SUBTASK: ",e.timeblocks[0]),this.subtask=e},_mergeDeadlineTimeDate(){const e=new Date(this.subtask.deadline),t=this.subtask._deadline_time.split(":");e.setHours(parseInt(t[0])),e.setMinutes(parseInt(t[1])),this.subtask.deadline=e},_validateEmployees(){return new Promise((e=>{if(this.employeeValidations=[],this.subtask.id){if(this.subtask.employee&&this.subtask.duration)return;this.employeeValidations[0]={},this.subtask.employee_id||(this.employeeValidations[0].employee=!0),this.subtask.duration||(this.employeeValidations[0].duration=!0)}else this.subtask.employees.forEach(((e,t)=>{t==this.subtask.employees.length-1&&t>0||e.id&&e.duration||(this.employeeValidations[t]={},e.id||(this.employeeValidations[t].employee=!0),e.duration||(this.employeeValidations[t].duration=!0))}));const t=this.employeeValidations.some((e=>e.duration||e.employee));e(!t)}))},_enrichTask(e){return{...e,_created_by:this.enrichedEmployees.find((t=>t.id==e.created_by)),_employee:this.enrichedEmployees.find((t=>t.id==e.employee_id)),_master_task:this.mastertasks.find((t=>t.id==e.master_task_id))}}},watch:{"subtask.employee_id"(e,t){e&&t&&(this.subtask.timeblocks=[],this.subtask._employee=this.enrichedEmployees.find((e=>e.id==this.subtask.employee_id)))},"subtask.employees":{handler(){if(!this.subtask?.employees)return;const e=this.subtask.employees[this.subtask.employees.length-1];(e.id||e.duration)&&this.subtask.employees.push({})},deep:!0},"subtask.master_task_id"(e){e&&(this.subtask._master_task=this.mastertasks.find((e=>e.id==this.subtask.master_task_id)),this.subtask.project_code=this.subtask._master_task?.project_code||null)},editMode(){this.$nextTick((()=>{this.$refs["description"]?.setHTML(this.subtask.description||"")}))}}};const Ds=(0,M.Z)(bs,[["render",ue],["__scopeId","data-v-2b134ca3"]]);var Ms=Ds;const Ts={class:"d-flex justify-space-between align-center"};function Cs(e,t,s,i,l,n){return(0,u.wg)(),(0,u.j4)(f.B,{modelValue:l.visible,"onUpdate:modelValue":t[3]||(t[3]=e=>l.visible=e),"max-width":"750",persistent:""},{default:(0,u.w5)((()=>[(0,u.Wm)(k._,null,{default:(0,u.w5)((()=>[(0,u._)("div",Ts,[(0,u._)("h1",null,[(0,u.Uk)("Ste si istý, že chcete zmazať "),(0,u._)("b",null,(0,p.zw)(l.blocker.name),1),(0,u.Uk)("?")]),(0,u.Wm)(w.t,{onClick:t[0]||(t[0]=(0,a.iM)((e=>n.closeModal()),["stop"])),icon:"mdi-close",size:"large",class:"mb-15"})]),(0,u.Wm)(g.h,{class:"mt-10 d-flex justify-start align-center mobile-view"},{default:(0,u.w5)((()=>[(0,u.Wm)(v.T,{class:"button primary half",variant:"flat",onClick:t[1]||(t[1]=e=>n.deleteBlocker()),disabled:l.isDeleting},{default:(0,u.w5)((()=>[(0,u.Uk)("ÁNO")])),_:1},8,["disabled"]),(0,u.Wm)(v.T,{class:"button primary half outline",onClick:t[2]||(t[2]=(0,a.iM)((e=>n.closeModal()),["stop"]))},{default:(0,u.w5)((()=>[(0,u.Uk)("ZRUŠIŤ")])),_:1})])),_:1})])),_:1})])),_:1},8,["modelValue"])}var $s={mixins:[b],emits:["on-blocker-deleted"],data(){return{visible:!1,blocker:null,isDeleting:!1}},methods:{async showModal({blocker:e}){this.blocker=e,this.visible=!0},closeModal(){this.visible=!1},async deleteBlocker(){if(!this.isDeleting){this.isDeleting=!0;try{await this.$axios.delete_auth(`v1/blockers/${this.blocker.id}`),this.$emit("on-blocker-deleted",this.blocker),this.closeModal()}catch(e){this.$toast.error(e)}finally{this.isDeleting=!1}}}}};const js=(0,M.Z)($s,[["render",Cs]]);var Es=js;const xs={class:"d-flex justify-space-between align-center"};function Ws(e,t,s,i,l,n){return(0,u.wg)(),(0,u.j4)(f.B,{modelValue:l.visible,"onUpdate:modelValue":t[3]||(t[3]=e=>l.visible=e),"max-width":"750",persistent:""},{default:(0,u.w5)((()=>[(0,u.Wm)(k._,null,{default:(0,u.w5)((()=>[(0,u._)("div",xs,[(0,u._)("h1",null,[(0,u.Uk)("Ste si istý, že chcete "+(0,p.zw)(l.subtask.is_finished?"znovu otvoriť":"dokončiť")+" sub task, z mastertasku ",1),(0,u._)("b",null,(0,p.zw)(l.subtask?.master_task?.name||l.subtask.master_task),1),(0,u.Uk)("?")]),(0,u.Wm)(w.t,{onClick:t[0]||(t[0]=(0,a.iM)((e=>n.closeModal()),["stop"])),icon:"mdi-close",size:"large"})]),(0,u.Wm)(g.h,{class:"mt-10 d-flex justify-start align-center mobile-view"},{default:(0,u.w5)((()=>[(0,u.Wm)(v.T,{class:"button primary half",variant:"flat",onClick:t[1]||(t[1]=e=>n.complete())},{default:(0,u.w5)((()=>[(0,u.Uk)("ÁNO")])),_:1}),(0,u.Wm)(v.T,{class:"button primary half outline",onClick:t[2]||(t[2]=(0,a.iM)((e=>l.visible=!1),["stop"]))},{default:(0,u.w5)((()=>[(0,u.Uk)("ZRUŠIŤ")])),_:1})])),_:1})])),_:1})])),_:1},8,["modelValue"])}var Ss={mixins:[b],emits:["close","on-subtask-edited"],data(){return{visible:!1,subtask:null}},methods:{async showModal({subtask:e}){this.subtask=e,this.visible=!0},async complete(){try{const e={...this.subtask,is_finished:this.subtask.is_finished?0:1,timesheets:this.subtask.timesheets.map((e=>(delete e.employee_name,e)))},{subtask:t}=await this.$axios.put_auth(`v1/subtasks/${e.id}`,e);this.visible=!1,this.$emit("on-subtask-edited",t)}catch(e){this.$toast.error(e)}},closeModal(){this.visible=!1}}};const Vs=(0,M.Z)(Ss,[["render",Ws]]);var Os=Vs;const zs={class:"d-flex justify-space-between align-center"};function As(e,t,s,i,l,n){return(0,u.wg)(),(0,u.j4)(f.B,{modelValue:l.visible,"onUpdate:modelValue":t[3]||(t[3]=e=>l.visible=e),"max-width":"750",persistent:""},{default:(0,u.w5)((()=>[(0,u.Wm)(k._,null,{default:(0,u.w5)((()=>[(0,u._)("div",zs,[(0,u._)("h1",null,[(0,u.Uk)("Ste si istý, že chcete "+(0,p.zw)(l.mastertask.is_finished?"znovu otvoriť":"dokončiť")+" ",1),(0,u._)("b",null,(0,p.zw)(l.mastertask?.name),1),(0,u.Uk)("?")]),(0,u.Wm)(w.t,{onClick:t[0]||(t[0]=(0,a.iM)((e=>l.visible=!1),["stop"])),icon:"mdi-close",size:"large"})]),(0,u.Wm)(g.h,{class:"mt-10 d-flex justify-start align-center mobile-view"},{default:(0,u.w5)((()=>[(0,u.Wm)(v.T,{class:"button primary half",variant:"flat",onClick:t[1]||(t[1]=e=>n.complete())},{default:(0,u.w5)((()=>[(0,u.Uk)("ÁNO")])),_:1}),(0,u.Wm)(v.T,{class:"button primary half outline",onClick:t[2]||(t[2]=(0,a.iM)((e=>l.visible=!1),["stop"]))},{default:(0,u.w5)((()=>[(0,u.Uk)("ZRUŠIŤ")])),_:1})])),_:1})])),_:1})])),_:1},8,["modelValue"])}var Us={mixins:[b],emits:["close","master-task-edited"],data(){return{visible:!1,mastertask:null}},methods:{async showModal({mastertask:e}){this.mastertask=e,this.visible=!0},async complete(){try{const e={...this.mastertask,is_finished:this.mastertask.is_finished?0:1},{mastertask:t}=await this.$axios.put_auth(`v1/mastertasks/${e.id}`,e);this.visible=!1,this.$emit("master-task-edited",t),this.$events.emit("close-both-modals")}catch(e){this.$toast.error(e)}}}};const Zs=(0,M.Z)(Us,[["render",As]]);var Hs=Zs;const Fs={class:"d-flex justify-space-between align-center"},Is=(0,u._)("h1",null,"Pridať odpracovaný čas",-1);function Ps(e,t,s,i,l,n){return(0,u.wg)(),(0,u.j4)(f.B,{"max-width":"750",modelValue:l.visible,"onUpdate:modelValue":t[3]||(t[3]=e=>l.visible=e),persistent:""},{default:(0,u.w5)((()=>[(0,u.Wm)(k._,null,{default:(0,u.w5)((()=>[(0,u._)("div",Fs,[Is,(0,u.Wm)(w.t,{onClick:t[0]||(t[0]=(0,a.iM)((e=>n.closeModal()),["stop"])),icon:"mdi-close",size:"large"})]),(0,u.Wm)(g.h,{class:"mt-10 d-flex justify-start align-center"},{default:(0,u.w5)((()=>[(0,u.Wm)(j.hw,{modelValue:l.form.hours,"onUpdate:modelValue":t[1]||(t[1]=e=>l.form.hours=e),variant:"solo","bg-color":"white",type:"number",hint:l.v$.form.hours.$errors?l.errorUtils.parseErrors(l.v$.form.hours.$errors):null,class:(0,p.C_)([{error:l.v$.form.hours.$errors.length},"mb-2"]),label:"Odpracovaný čas"},null,8,["modelValue","hint","class"])])),_:1}),(0,u.Wm)(v.T,{onClick:t[2]||(t[2]=e=>n.submit()),class:"button primary mt-5"},{default:(0,u.w5)((()=>[(0,u.Uk)("Potvrdiť")])),_:1})])),_:1})])),_:1},8,["modelValue"])}var Ls={mixins:[b],emits:["close","on-subtask-edited"],data(){return{v$:(0,W.ZP)(),errorUtils:V.Z,visible:!1,subtask:null,form:{hours:null}}},validations(){return{form:{hours:{required:S.C1,numeric:S.uR,minValue:(0,S.uv)(.1)}}}},methods:{async showModal({subtask:e}){this.subtask=e,this.visible=!0,this.form.hours=null,this.$nextTick((()=>this.v$.$reset()))},async submit(){if(!await this.v$.$validate())return;this.subtask.deadline&&(this.subtask.deadline=O.Z.formatDateTimeForBackend(this.subtask.deadline)),this.subtask.timesheets.push({id:null,employee_id:this.subtask.employee_id,time:"string"==typeof this.form.hours?parseFloat(this.form.hours):this.form.hours});const e={...this.subtask,timesheets:this.subtask.timesheets.map((e=>(delete e.employee_name,e)))};try{const{subtask:t}=await this.$axios.put_auth(`v1/subtasks/${this.subtask.id}`,e);this.closeModal(),this.$events.emit("on-subtask-edited",t)}catch(t){this.$toast.error(t.message||t)}},closeModal(){this.visible=!1,this.v$.$reset()}}};const Ns=(0,M.Z)(Ls,[["render",Ps]]);var Ys=Ns;const qs={class:"d-flex justify-space-between align-center modal-header"};function Bs(e,t,s,i,l,n){const o=(0,u.up)("Datepicker"),r=(0,u.up)("W-loadable");return(0,u.wg)(),(0,u.j4)(f.B,{modelValue:l.visible,"onUpdate:modelValue":t[7]||(t[7]=e=>l.visible=e),"max-width":"750","max-height":"90%",height:"700px",persistent:""},{default:(0,u.w5)((()=>[(0,u.Wm)(r,{content:l.blocker,class:"h-100"},{default:(0,u.w5)((()=>[(0,u.Wm)(k._,{height:"100%",class:"d-flex flex-column"},{default:(0,u.w5)((()=>[(0,u._)("div",qs,[(0,u._)("h1",null,(0,p.zw)(l.blocker.id?"Upraviť":"Vytvoriť")+" blocker",1),(0,u.Wm)(w.t,{onClick:t[0]||(t[0]=(0,a.iM)((e=>n.closeModal()),["stop"])),icon:"mdi-close",size:"large"})]),(0,u.Wm)(g.h,{class:"d-flex flex-column modal-content"},{default:(0,u.w5)((()=>[(0,u.Wm)(j.hw,{onFocus:e.onInputFocus,class:(0,p.C_)(["modal-input",{error:l.v$.blocker.name.$errors.length}]),label:"Názov blockeru",hint:l.v$.blocker.name.$errors?l.errorUtils.parseErrors(l.v$.blocker.name.$errors):null,modelValue:l.blocker.name,"onUpdate:modelValue":t[1]||(t[1]=e=>l.blocker.name=e),variant:"solo"},null,8,["onFocus","class","hint","modelValue"]),(0,u.Wm)($.f,{"custom-filter":e.customFilter,"match-any":!0,clearable:"",label:"Vyhľadať zamestnanca",items:[...e.enrichedEmployees],"item-title":"_fullName","item-value":"id",variant:"solo",class:"modal-input",modelValue:l.blocker.employee_id,"onUpdate:modelValue":t[2]||(t[2]=e=>l.blocker.employee_id=e)},null,8,["custom-filter","items","modelValue"]),(0,u.Wm)(o,{class:(0,p.C_)(["modal-input mb-5",{error:l.v$.datepicker.$errors?.length}]),modelValue:l.datepicker,"onUpdate:modelValue":t[3]||(t[3]=e=>l.datepicker=e),format:"dd.MM.yyyy",locale:"sk",validations:l.v$.datepicker,"select-text":"Vybrať","cancel-text":"Zrušiť",placeholder:"Dátum","enable-time-picker":!1,ref:"datepicker"},null,8,["modelValue","class","validations"]),(0,u.Wm)(j.hw,{modelValue:l.starts_at_time,"onUpdate:modelValue":t[4]||(t[4]=e=>l.starts_at_time=e),type:"time",variant:"solo","bg-color":"white",hint:l.v$.starts_at_time.$errors?l.errorUtils.parseErrors(l.v$.starts_at_time.$errors):null,class:(0,p.C_)([{error:l.v$.starts_at_time.$errors.length},"mb-1 modal-input"]),label:"Začiatok"},null,8,["modelValue","hint","class"]),(0,u.Wm)(j.hw,{modelValue:l.ends_at_time,"onUpdate:modelValue":t[5]||(t[5]=e=>l.ends_at_time=e),type:"time",variant:"solo","bg-color":"white",hint:l.v$.ends_at_time.$errors?l.errorUtils.parseErrors(l.v$.ends_at_time.$errors):null,class:(0,p.C_)([{error:l.v$.ends_at_time.$errors.length},"modal-input"]),label:"Koniec"},null,8,["modelValue","hint","class"])])),_:1}),(0,u.Wm)(v.T,{class:"button primary",onClick:t[6]||(t[6]=e=>n.save())},{default:(0,u.w5)((()=>[(0,u.Uk)((0,p.zw)(l.blocker.id?"UPRAVIŤ":"VYTVORIŤ"),1)])),_:1})])),_:1})])),_:1},8,["content"])])),_:1},8,["modelValue"])}var Rs={mixins:[Ue,A.Z,b],emits:["close"],components:{Datepicker:ce.Z},data(){return{visible:!1,v$:(0,W.ZP)(),errorUtils:V.Z,blocker:null,datepicker:null,starts_at_time:null,ends_at_time:null,employee:null}},computed:{...(0,z.Se)("tm",["enrichedEmployees"]),...(0,z.Se)("auth",["user"])},validations(){return{blocker:{name:{required:S.C1},start:{required:S.C1},end:{required:S.C1}},starts_at_time:{required:S.C1},ends_at_time:{required:S.C1},datepicker:{required:S.C1}}},methods:{async showModal({blocker:e}){this.visible=!0,this.blocker=null,this.datepicker=null,this.starts_at_time=null,this.ends_at_time=null,this.$nextTick((()=>this.v$.$reset()));try{e?.id?(e=await this.$axios.get_auth_data(`v1/blockers/${e.id}`),this.starts_at_time=Se()(e.start).format("HH:mm"),this.ends_at_time=Se()(e.end).format("HH:mm"),this.datepicker=new Date(e.start),e.employee_id=e.employee.id,this.blocker=e):(this.blocker={start:null,employee_id:this.user.id},e.starts_at_time&&e.datepicker&&e.employee_id&&(this.datepicker=e.datepicker,this.starts_at_time=e.starts_at_time,this.blocker.employee_id=e.employee_id))}catch(t){this.$toast.error(t)}},async save(){if(await this.v$.$validate())try{if(this.blocker.id){const{blocker:e}=await this.$axios.put_auth(`v1/blockers/${this.blocker.id}`,this.blocker);this.blocker=e}else{const{blocker:e}=await this.$axios.post_auth("v1/blockers",this.blocker);this.blocker=e}this.$events.emit("on-blocker-edited",this.blocker),this.$events.emit("blocker-created"),this.closeModal()}catch(e){this.$toast.error(e)}},closeModal(){this.$refs["datepicker"].clearValue(),this.visible=!1,this.$emit("close",this.blocker)},onEmployeeSelected({key:e}){this.blocker.employee=this.enrichedEmployees.find((t=>t.id==e))},_syncDatesTimes(){if(!this.starts_at_time||!this.ends_at_time||!this.datepicker)return;const e=this.starts_at_time.split(":"),t=this.ends_at_time.split(":");this.blocker.start=Se()(this.datepicker).set({hours:parseInt(e[0]),minutes:parseInt(e[1])}).format("YYYY-MM-DD HH:mm"),this.blocker.end=Se()(this.datepicker).set({hours:parseInt(t[0]),minutes:parseInt(t[1])}).format("YYYY-MM-DD HH:mm")}},watch:{ends_at_time(){this._syncDatesTimes()},starts_at_time(){this._syncDatesTimes()},datepicker(){this._syncDatesTimes()}}};const Ks=(0,M.Z)(Rs,[["render",Bs]]);var Js=Ks;const Gs={class:"d-flex justify-space-between align-center"};function Xs(e,t,s,i,l,n){return(0,u.wg)(),(0,u.j4)(f.B,{modelValue:l.visible,"onUpdate:modelValue":t[3]||(t[3]=e=>l.visible=e),"max-width":"750",persistent:""},{default:(0,u.w5)((()=>[(0,u.Wm)(k._,null,{default:(0,u.w5)((()=>[(0,u._)("div",Gs,[(0,u._)("h1",null,[(0,u.Uk)("Ste si istý, že chcete zmazať "),(0,u._)("b",null,(0,p.zw)(l.mastertask.name),1),(0,u.Uk)("?")]),(0,u.Wm)(w.t,{onClick:t[0]||(t[0]=(0,a.iM)((e=>n.closeModal()),["stop"])),icon:"mdi-close",size:"large",class:"mb-15"})]),(0,u.Wm)(g.h,{class:"mt-10 d-flex justify-start align-center mobile-view"},{default:(0,u.w5)((()=>[(0,u.Wm)(v.T,{class:"button primary half",variant:"flat",onClick:t[1]||(t[1]=e=>n.deleteMasterTask()),disabled:l.isDeleting},{default:(0,u.w5)((()=>[(0,u.Uk)("ÁNO")])),_:1},8,["disabled"]),(0,u.Wm)(v.T,{class:"button primary half outline",onClick:t[2]||(t[2]=(0,a.iM)((e=>n.closeModal()),["stop"]))},{default:(0,u.w5)((()=>[(0,u.Uk)("ZRUŠIŤ")])),_:1})])),_:1})])),_:1})])),_:1},8,["modelValue"])}var Qs={mixins:[b],emits:["on-mastertask-deleted"],data(){return{visible:!1,mastertask:null,isDeleting:!1}},methods:{async showModal({mastertask:e}){this.mastertask=e,this.visible=!0},closeModal(){this.visible=!1},async deleteMasterTask(){if(!this.isDeleting){this.isDeleting=!0;try{await this.$axios.delete_auth(`v1/mastertasks/${this.mastertask.id}`),this.$emit("on-mastertask-deleted",this.mastertask),this.closeModal()}catch(e){this.$toast.error(e)}finally{this.isDeleting=!1}}}}};const ea=(0,M.Z)(Qs,[["render",Xs]]);var ta=ea,sa=s(10240);const aa={class:"d-flex justify-space-between align-center modal-header"},ia={class:"splitted-inputs"},la={class:"employee-select-avatar d-flex justify-center align-center"},na={class:"employee-select-avatar d-flex justify-center align-center"},oa={class:"d-flex justify-space-between align-center"},ra={class:"d-flex justify-space-between align-center modal-header border-bottom pb-4"},da={class:"d-flex justify-start"},ua=["src"],ca=["src"],ma={class:"w-100"},ha={class:"d-flex justify-start align-center mt-8"},pa={class:"d-flex align-center"};function va(e,t,i,l,n,o){const r=(0,u.up)("Datepicker"),d=(0,u.up)("QuillEditor"),c=(0,u.up)("Z-files-upload"),m=(0,u.up)("A-mastertask-description"),h=(0,u.up)("A-tasks-table"),_=(0,u.up)("W-loadable");return(0,u.wg)(),(0,u.j4)(f.B,{modelValue:n.visible,"onUpdate:modelValue":t[16]||(t[16]=e=>n.visible=e),"max-width":"750","max-height":"90%",height:"700px",persistent:""},{default:(0,u.w5)((()=>[(0,u.Wm)(_,{content:n.mastertask,class:"h-100"},{default:(0,u.w5)((()=>[n.editMode?((0,u.wg)(),(0,u.j4)(k._,{key:0,height:"100%",class:"d-flex flex-column scrolling"},{default:(0,u.w5)((()=>[(0,u._)("div",aa,[(0,u._)("h1",null,(0,p.zw)(n.mastertask?.id?"Upraviť master task":"Vytvoriť master task"),1),(0,u.Wm)(w.t,{onClick:t[0]||(t[0]=(0,a.iM)((e=>o.closeModal()),["stop"])),icon:"mdi-close",size:"large"})]),(0,u.Wm)(g.h,{class:"d-flex flex-column modal-content"},{default:(0,u.w5)((()=>[(0,u.Wm)($.f,{"custom-filter":e.customFilter,"match-any":!0,modelValue:n.mastertask.project_id,"onUpdate:modelValue":t[1]||(t[1]=e=>n.mastertask.project_id=e),label:e.$t("Project code"),class:(0,p.C_)([{error:n.v$.mastertask.project_id.$errors.length},"modal-input"]),items:e.projectsOptions,"item-title":"code","item-value":"id",variant:"solo",clearable:"","onUpdate:search":t[2]||(t[2]=e=>n.projectCodeSearch=e)},null,8,["custom-filter","modelValue","label","class","items"]),(0,u.Wm)(j.hw,{modelValue:n.mastertask.name,"onUpdate:modelValue":t[3]||(t[3]=e=>n.mastertask.name=e),onFocus:e.onInputFocus,class:(0,p.C_)(["modal-input",{error:n.v$.mastertask.name.$errors.length}]),label:"Názov mastertasku",variant:"solo",hint:n.v$.mastertask.name.$errors?n.errorUtils.parseErrors(n.v$.mastertask.name.$errors):null},null,8,["modelValue","onFocus","class","hint"]),(0,u._)("div",ia,[(0,u.Wm)(r,{modelValue:n.mastertask.deadline,"onUpdate:modelValue":t[4]||(t[4]=e=>n.mastertask.deadline=e),"auto-apply":!0,onFocus:e.onDateFocus,"min-date":new Date,class:(0,p.C_)(["modal-input left",{error:n.v$.mastertask.deadline.$errors?.length}]),format:"dd.MM.yyyy",locale:"sk","select-text":"Vybrať","cancel-text":"Zrušiť",placeholder:"Dátum",validations:n.v$.mastertask.deadline},null,8,["modelValue","onFocus","min-date","class","validations"]),(0,u.Wm)(j.hw,{class:(0,p.C_)(["modal-input right",{error:n.v$.mastertask._deadline_time.$errors.length}]),variant:"solo",modelValue:n.mastertask._deadline_time,"onUpdate:modelValue":t[5]||(t[5]=e=>n.mastertask._deadline_time=e),label:"Čas","append-inner-icon":"mdi-clock-outline",type:"time",onFocus:e.onInputFocus,hint:n.v$.mastertask._deadline_time.$errors?n.errorUtils.parseErrors(n.v$.mastertask._deadline_time.$errors):null},null,8,["modelValue","onFocus","class","hint"])]),(0,u.Wm)(j.hw,{modelValue:n.mastertask.duration,"onUpdate:modelValue":t[6]||(t[6]=e=>n.mastertask.duration=e),onFocus:e.onInputFocus,class:"modal-input",variant:"solo",type:"number",label:`${n.mastertask.duration} h`,disabled:!0},null,8,["modelValue","onFocus","label"]),(0,u.Wm)(sa.r,{modelValue:n.mastertask.team_id,"onUpdate:modelValue":t[7]||(t[7]=e=>n.mastertask.team_id=e),onFocus:e.onInputFocus,class:(0,p.C_)(["modal-input border-select",{error:n.v$.mastertask.employees.$errors.length}]),label:"Tím",variant:"solo",items:e.teams,"item-value":"id","item-title":"name",disabled:n.mastertask.id},null,8,["modelValue","onFocus","class","items","disabled"]),n.mastertask.id?((0,u.wg)(!0),(0,u.iD)(u.HY,{key:1},(0,u.Ko)(n.mastertask._allEmployees,(e=>((0,u.wg)(),(0,u.j4)(j.hw,{key:e.id,class:"modal-input",label:`${e.name} ${e.surname}`,variant:"solo",placeholder:"h",modelValue:e.duration,"onUpdate:modelValue":t=>e.duration=t,type:"number",disabled:!0},{default:(0,u.w5)((()=>[(0,u._)("p",na,(0,p.zw)(e?.name.charAt(0)+e?.surname.charAt(0)),1),(0,u.Wm)(w.t,{onClick:(0,a.iM)((t=>o.removeEmployee(e)),["stop"]),class:"remove-input",icon:"mdi-close",size:"small"},null,8,["onClick"])])),_:2},1032,["label","modelValue","onUpdate:modelValue"])))),128)):((0,u.wg)(!0),(0,u.iD)(u.HY,{key:0},(0,u.Ko)(n.mastertask.employees,((t,s)=>((0,u.wg)(),(0,u.j4)(j.hw,{key:t.id,onFocus:e.onInputFocus,class:(0,p.C_)(["modal-input",{error:t.invalid}]),label:`${t.name} ${t.surname}`,variant:"solo",placeholder:"h",modelValue:n.mastertask.employees[s].duration,"onUpdate:modelValue":e=>n.mastertask.employees[s].duration=e,type:"number",min:"1",onInput:e.onEmployeeDurationChanged},{default:(0,u.w5)((()=>[(0,u._)("p",la,(0,p.zw)(t?.name.charAt(0)+t?.surname.charAt(0)),1),(0,u.Wm)(w.t,{onClick:(0,a.iM)((e=>o.removeEmployee(t)),["stop"]),class:"remove-input",icon:"mdi-close",size:"small"},null,8,["onClick"])])),_:2},1032,["onFocus","class","label","modelValue","onUpdate:modelValue","onInput"])))),128)),n.showAddEmployeeInput?((0,u.wg)(),(0,u.j4)($.f,{key:2,"custom-filter":e.customFilter,"match-any":!0,label:e.$t("Search for employee"),class:(0,p.C_)([{error:n.v$.mastertask.project_id.$errors.length},"modal-input"]),items:e.employeesOptions,"item-title":"_fullName","item-value":"id",variant:"solo",clearable:"","onUpdate:modelValue":e.onEmployeeSelected},null,8,["custom-filter","label","class","items","onUpdate:modelValue"])):(0,u.kq)("",!0),(0,u.Wm)(v.T,{class:(0,p.C_)(["w-100 mb-5 button secondary",{error:n.v$.mastertask.project_id.$errors.length}]),onClick:t[8]||(t[8]=e=>n.showAddEmployeeInput=!0)},{default:(0,u.w5)((()=>[(0,u.Wm)(w.t,{class:"mx-1",icon:"mdi-plus"}),(0,u.Uk)("Pridať zamestnanca ")])),_:1},8,["class"]),(0,u._)("div",{class:(0,p.C_)(["w-100 modal-input",{error:n.v$.mastertask.description.$errors.length}])},[(0,u.Wm)(d,{ref:"description",modelValue:n.mastertask.description,"onUpdate:modelValue":t[9]||(t[9]=e=>n.mastertask.description=e),placeholder:"Popis",theme:"snow",class:"rich-text-editor",onKeyup:o.onQuillEditorInput},null,8,["modelValue","onKeyup"])],2),(0,u.Wm)(c,{class:"mt-15 files",files:n.mastertask.files,onFilesUploaded:o.filesUploaded,"is-saving":n.isSaving},null,8,["files","onFilesUploaded","is-saving"])])),_:1}),n.isSaving?((0,u.wg)(),(0,u.j4)(v.T,{key:1,class:"button primary disabled",disabled:""},{default:(0,u.w5)((()=>[(0,u.Uk)((0,p.zw)(e.$t("Ukladám...")),1)])),_:1})):((0,u.wg)(),(0,u.j4)(v.T,{key:0,class:"button primary",onClick:t[10]||(t[10]=e=>o.save())},{default:(0,u.w5)((()=>[(0,u.Uk)((0,p.zw)(n.mastertask.id?"ULOŽIŤ":"VYTVORIŤ"),1)])),_:1}))])),_:1})):((0,u.wg)(),(0,u.j4)(k._,{key:1,height:"100%",class:"d-flex flex-column scrolling"},{default:(0,u.w5)((()=>[(0,u._)("div",oa,[(0,u._)("p",null,(0,p.zw)(n.mastertask.project_code),1),(0,u.Wm)(w.t,{onClick:t[11]||(t[11]=(0,a.iM)((e=>o.closeModal()),["stop"])),icon:"mdi-close",size:"large",class:"pb-5"})]),(0,u._)("div",ra,[(0,u._)("h1",null,(0,p.zw)(n.mastertask.name),1),(0,u._)("div",da,[n.mastertask.is_finished?(0,u.kq)("",!0):((0,u.wg)(),(0,u.iD)("img",{key:0,class:"icon",src:s(60666),alt:"pencil-icon",onClick:t[12]||(t[12]=(0,a.iM)((e=>n.editMode=!n.editMode),["stop"]))},null,8,ua)),(0,u._)("img",{class:"icon trash",src:s(27484),alt:"trash-icon",onClick:t[13]||(t[13]=(0,a.iM)((e=>o.openDeleteMasterTaskModal(n.mastertask)),["stop"]))},null,8,ca)])]),(0,u.Wm)(g.h,{class:"d-flex flex-column modal-content"},{default:(0,u.w5)((()=>[(0,u._)("div",ma,[(0,u.Wm)(m,{mastertask:n.mastertask},null,8,["mastertask"]),(0,u._)("div",ha,[(0,u.Wm)(v.T,{class:"button primary",onClick:t[14]||(t[14]=e=>o.toggleIsFinished(n.mastertask))},{default:(0,u.w5)((()=>[(0,u.Uk)((0,p.zw)(n.mastertask.is_finished?"Otvoriť mastertask":"Ukončiť mastertask"),1)])),_:1})]),(0,u.Wm)(h,{subtasks:n.mastertask.subtasks},null,8,["subtasks"]),(0,u._)("div",pa,[(0,u.Wm)(v.T,{class:"subtask-btn w-100",onClick:t[15]||(t[15]=e=>o.addTask())},{default:(0,u.w5)((()=>[(0,u.Wm)(w.t,{class:"mx-1",icon:"mdi-plus"}),(0,u.Uk)("Pridať sub task")])),_:1})])])])),_:1})])),_:1}))])),_:1},8,["content"])])),_:1},8,["modelValue"])}var ka=s(4413);const ga={class:"px-5 py-5"},fa={key:0,class:"w-25"},wa={key:1,class:"w-50"},_a={class:"d-flex align-center"},ya={class:"employee-selected-avatar d-flex justify-center align-center"},ba={class:"ml-2 line-clamp"},Da={key:0,class:"text-light-green"},Ma={key:1},Ta={class:"task-action"},Ca={class:"d-flex justify-start"},$a=["src","onClick"],ja=["src","onClick"],Ea=["src","onClick"],xa=["src","onClick"];function Wa(e,t,i,l,n,o){return(0,u.wg)(),(0,u.j4)(ka.Y,{class:"mt-7 mb-5"},{default:(0,u.w5)((()=>[(0,u._)("tbody",ga,[((0,u.wg)(!0),(0,u.iD)(u.HY,null,(0,u.Ko)(o.enrichedtasks,(e=>((0,u.wg)(),(0,u.iD)("tr",{key:e.id},[e?.title?((0,u.wg)(),(0,u.iD)("td",fa,(0,p.zw)(e.title),1)):((0,u.wg)(),(0,u.iD)("td",wa,(0,p.zw)(e?.master_task),1)),(0,u._)("td",_a,[(0,u._)("p",ya,(0,p.zw)(e._employeeInitials),1),(0,u._)("p",ba,(0,p.zw)(e._employeeFullName),1)]),(0,u._)("td",null,[e.is_finished?((0,u.wg)(),(0,u.iD)("p",Da,"Ukončený")):(0,u.kq)("",!0),e.is_finished?(0,u.kq)("",!0):((0,u.wg)(),(0,u.iD)("p",Ma,"Neukončený"))]),(0,u._)("td",Ta,[(0,u._)("div",Ca,[e.is_finished?((0,u.wg)(),(0,u.iD)("img",{key:0,class:"pencil-icon is-finished",src:s(53830),alt:"checkmark-icon",onClick:(0,a.iM)((t=>o.clickCompleteTask(e)),["stop"])},null,8,$a)):(0,u.kq)("",!0),e.is_finished?(0,u.kq)("",!0):((0,u.wg)(),(0,u.iD)("img",{key:1,class:"pencil-icon",src:s(53830),alt:"checkmark-icon",onClick:(0,a.iM)((t=>o.clickCompleteTask(e)),["stop"])},null,8,ja)),(0,u._)("img",{class:"pencil-icon ml-2",src:s(34413),alt:"pencil-icon",onClick:(0,a.iM)((t=>o.openTaskModal(e)),["stop"])},null,8,Ea),(0,u._)("img",{class:"trash-icon",src:s(27484),alt:"trash-icon",onClick:(0,a.iM)((t=>o.openDeleteTaskModal(e)),["stop"])},null,8,xa)])])])))),128))])])),_:1})}var Sa={props:{subtasks:{type:Array,required:!0}},computed:{...(0,z.Se)("tm",["enrichedEmployees"]),enrichedtasks(){return this.subtasks.map((e=>{const t=this.enrichedEmployees.find((t=>t.id==e.employee_id));return{...e,_employeeInitials:t._initials,_employeeFullName:t._fullName}}))}},methods:{openDeleteTaskModal(e){this.$events.emit("show-delete-task-modal",{subtask:e})},openTaskModal(e){this.$events.emit("show-subtask-modal",{subtask:e,editMode:!1})},async clickCompleteTask(e){this.$events.emit("show-complete-task-modal",{subtask:e})}}};const Va=(0,M.Z)(Sa,[["render",Wa],["__scopeId","data-v-6a5e57ec"]]);var Oa=Va;function za(e,t,s,a,i,l){const n=(0,u.up)("Z-status"),o=(0,u.up)("Z-deadline"),r=(0,u.up)("Z-created-by"),d=(0,u.up)("Z-team"),c=(0,u.up)("Z-planned-time"),m=(0,u.up)("Z-remaining-time"),h=(0,u.up)("Z-spent-time"),p=(0,u.up)("Z-description"),v=(0,u.up)("Z-files");return(0,u.wg)(),(0,u.iD)(u.HY,null,[(0,u.Wm)(n,{status:s.mastertask.is_finished},null,8,["status"]),(0,u.Wm)(o,{deadline:s.mastertask.deadline},null,8,["deadline"]),(0,u.Wm)(r,{"employee-id":s.mastertask.created_by},null,8,["employee-id"]),(0,u.Wm)(d,{team:s.mastertask.team,employees:s.mastertask._allEmployees||s.mastertask.employees},null,8,["team","employees"]),(0,u.Wm)(c,{hours:s.mastertask.duration},null,8,["hours"]),(0,u.Wm)(m,{hours:s.mastertask.duration-s.mastertask.time_worked},null,8,["hours"]),(0,u.Wm)(h,{hours:s.mastertask.time_worked,"is-exceeded":s.mastertask.time_worked>s.mastertask.duration},null,8,["hours","is-exceeded"]),(0,u.Wm)(p,{description:s.mastertask.description},null,8,["description"]),(0,u.Wm)(v,{files:s.mastertask.files},null,8,["files"])],64)}const Aa={class:"d-flex align-center"},Ua=(0,u._)("p",{class:"mx-3"},"Deadline",-1);function Za(e,t,s,a,i,l){return(0,u.wg)(),(0,u.j4)(ye.o,{"no-gutters":"",class:"align-center"},{default:(0,u.w5)((()=>[(0,u.Wm)(be.D,{cols:"5"},{default:(0,u.w5)((()=>[(0,u.Wm)(De.C,{class:"py-3"},{default:(0,u.w5)((()=>[(0,u._)("div",Aa,[(0,u.Wm)(w.t,{icon:"mdi-calendar-week",size:"large"}),Ua])])),_:1})])),_:1}),(0,u.Wm)(be.D,{cols:"7"},{default:(0,u.w5)((()=>[(0,u.Wm)(De.C,{class:"py-3"},{default:(0,u.w5)((()=>[(0,u._)("p",{class:(0,p.C_)(""+(i.tmUtils.isAfter(s.deadline)?"text-black":"text-red-darken-4"))},(0,p.zw)(i.tmUtils.formatDateTime(s.deadline)),3)])),_:1})])),_:1})])),_:1})}var Ha={props:{deadline:{type:String,required:!0}},data(){return{tmUtils:O.Z}}};const Fa=(0,M.Z)(Ha,[["render",Za]]);var Ia=Fa;const Pa={key:0,class:"px-5 py-5 border-bottom"},La=(0,u._)("p",null,"Popis zadania",-1),Na=["innerHTML"],Ya={key:1,class:"px-5 py-5 border-bottom"},qa=(0,u._)("p",null,"Popis mastertasku",-1),Ba=["innerHTML"];function Ra(e,t,s,a,i,l){return(0,u.wg)(),(0,u.iD)(u.HY,null,[s.description?((0,u.wg)(),(0,u.iD)("div",Pa,[La,(0,u._)("section",{innerHTML:s.description,class:"description-detail px-2 py-2 w-100 rounded mt-2"},null,8,Na)])):(0,u.kq)("",!0),s.inheritedDescription?((0,u.wg)(),(0,u.iD)("div",Ya,[qa,(0,u._)("section",{innerHTML:s.inheritedDescription,class:"description-detail px-2 py-2 w-100 rounded mt-2"},null,8,Ba)])):(0,u.kq)("",!0)],64)}var Ka={props:{description:{type:String||null,default:()=>null},inheritedDescription:{type:String||null,default:()=>null}}};const Ja=(0,M.Z)(Ka,[["render",Ra]]);var Ga=Ja;const Xa={class:"d-flex align-center"},Qa=(0,u._)("p",{class:"mx-3"},"Naplánovaný čas",-1);function ei(e,t,s,a,i,l){return(0,u.wg)(),(0,u.j4)(ye.o,{"no-gutters":"",class:"align-center"},{default:(0,u.w5)((()=>[(0,u.Wm)(be.D,{cols:"5"},{default:(0,u.w5)((()=>[(0,u.Wm)(De.C,{class:"py-3"},{default:(0,u.w5)((()=>[(0,u._)("div",Xa,[(0,u.Wm)(w.t,{icon:"mdi-clock-time-three-outline",size:"large"}),Qa])])),_:1})])),_:1}),(0,u.Wm)(be.D,{cols:"7"},{default:(0,u.w5)((()=>[(0,u.Wm)(De.C,{class:"py-3"},{default:(0,u.w5)((()=>[(0,u._)("p",null,(0,p.zw)(s.hours)+" h",1)])),_:1})])),_:1})])),_:1})}var ti={props:{hours:{type:Number,required:!0}}};const si=(0,M.Z)(ti,[["render",ei]]);var ai=si;const ii={class:"d-flex align-center"},li=(0,u._)("p",{class:"mx-3"},"Zostávajúci čas",-1);function ni(e,t,s,a,i,l){return(0,u.wg)(),(0,u.j4)(ye.o,{"no-gutters":"",class:"align-center border-bottom"},{default:(0,u.w5)((()=>[(0,u.Wm)(be.D,{cols:"5"},{default:(0,u.w5)((()=>[(0,u.Wm)(De.C,{class:"py-3"},{default:(0,u.w5)((()=>[(0,u._)("div",ii,[(0,u.Wm)(w.t,{icon:"mdi-clock-time-three-outline",size:"large"}),li])])),_:1})])),_:1}),(0,u.Wm)(be.D,{cols:"7"},{default:(0,u.w5)((()=>[(0,u.Wm)(De.C,{class:"py-3"},{default:(0,u.w5)((()=>[(0,u._)("p",null,(0,p.zw)(s.hours)+" h",1)])),_:1})])),_:1})])),_:1})}var oi={props:{hours:{type:Number,required:!0}}};const ri=(0,M.Z)(oi,[["render",ni]]);var di=ri;const ui={class:"d-flex align-center"},ci=(0,u._)("p",{class:"mx-3"},"Odpracovaný čas",-1);function mi(e,t,s,a,i,l){return(0,u.wg)(),(0,u.j4)(ye.o,{"no-gutters":""},{default:(0,u.w5)((()=>[(0,u.Wm)(be.D,{cols:"5"},{default:(0,u.w5)((()=>[(0,u.Wm)(De.C,{class:"py-3"},{default:(0,u.w5)((()=>[(0,u._)("div",ui,[(0,u.Wm)(w.t,{icon:"mdi-clock-time-three-outline",size:"large"}),ci])])),_:1})])),_:1}),(0,u.Wm)(be.D,{cols:"7"},{default:(0,u.w5)((()=>[(0,u.Wm)(De.C,{class:"py-3"},{default:(0,u.w5)((()=>[(0,u._)("p",{class:(0,p.C_)(s.isExceeded?"text-red-darken-4":"text-black")},(0,p.zw)(s.hours)+" h",3)])),_:1})])),_:1})])),_:1})}var hi={props:{hours:{type:Number,required:!0},isExceeded:{type:Boolean,required:!0}}};const pi=(0,M.Z)(hi,[["render",mi]]);var vi=pi;const ki={class:"d-flex align-center"},gi=(0,u._)("p",{class:"mx-3"},"Status",-1),fi={key:0,class:"status-badge px-4 py-2 rounded-pill"},wi={key:1,class:"status-badge px-4 py-2 rounded-pill"};function _i(e,t,s,a,i,l){return(0,u.wg)(),(0,u.j4)(ye.o,{"no-gutters":"",class:"align-center"},{default:(0,u.w5)((()=>[(0,u.Wm)(be.D,{cols:"5"},{default:(0,u.w5)((()=>[(0,u.Wm)(De.C,{class:"py-3"},{default:(0,u.w5)((()=>[(0,u._)("div",ki,[(0,u.Wm)(w.t,{icon:"mdi-drag-vertical",size:"large"}),gi])])),_:1})])),_:1}),(0,u.Wm)(be.D,{cols:"7"},{default:(0,u.w5)((()=>[(0,u.Wm)(De.C,{class:"py-3"},{default:(0,u.w5)((()=>[1==s.status?((0,u.wg)(),(0,u.iD)("p",fi,"Ukončený")):0==s.status?((0,u.wg)(),(0,u.iD)("p",wi,"Neukončený")):(0,u.kq)("",!0)])),_:1})])),_:1})])),_:1})}var yi={props:{status:{type:Number,required:!0}}};const bi=(0,M.Z)(yi,[["render",_i]]);var Di=bi;const Mi={class:"d-flex align-center"},Ti=(0,u._)("p",{class:"mx-3"},"Tím",-1),Ci={class:"task-badge px-4 py-2 rounded-pill flex-shrink-0"},$i={class:"employee-selected-avatar d-flex justify-center align-center"},ji={class:"ml-2"},Ei=(0,u._)("div",{class:"mb-4"},null,-1),xi=(0,u._)("p",{class:"task-badge px-4 py-2 rounded-pill flex-shrink-0"},"Nepriradený",-1),Wi={class:"employee-selected-avatar d-flex justify-center align-center"},Si={class:"ml-2"};function Vi(e,t,s,a,i,l){return(0,u.wg)(),(0,u.j4)(ye.o,{"no-gutters":""},{default:(0,u.w5)((()=>[(0,u.Wm)(be.D,{cols:"5"},{default:(0,u.w5)((()=>[(0,u.Wm)(De.C,{class:"py-3"},{default:(0,u.w5)((()=>[(0,u._)("div",Mi,[(0,u.Wm)(w.t,{icon:"mdi-account-multiple-outline",size:"large"}),Ti])])),_:1})])),_:1}),(0,u.Wm)(be.D,{cols:"7"},{default:(0,u.w5)((()=>[(0,u.Wm)(De.C,{class:"py-3 d-flex flex-wrap flex-column"},{default:(0,u.w5)((()=>[s.team?((0,u.wg)(),(0,u.iD)(u.HY,{key:0},[(0,u._)("p",Ci,(0,p.zw)(s.team.name),1),((0,u.wg)(!0),(0,u.iD)(u.HY,null,(0,u.Ko)(l.enrichedEmployeesInTeam,(e=>((0,u.wg)(),(0,u.iD)("div",{class:"d-flex align-center flex-shrink-0 mt-2 task-badge px-4 py-2 rounded-pill",key:e.id},[(0,u._)("p",$i,(0,p.zw)(e._initials),1),(0,u._)("p",ji,(0,p.zw)(e._fullName),1)])))),128)),Ei],64)):(0,u.kq)("",!0),xi,((0,u.wg)(!0),(0,u.iD)(u.HY,null,(0,u.Ko)(l.enrichedEmployeesOutsideTeam,(e=>((0,u.wg)(),(0,u.iD)("div",{class:"d-flex align-center flex-shrink-0 mt-2 task-badge px-4 py-2 rounded-pill",key:e.id},[(0,u._)("p",Wi,(0,p.zw)(e._initials),1),(0,u._)("p",Si,(0,p.zw)(e._fullName),1)])))),128))])),_:1})])),_:1})])),_:1})}var Oi={props:{team:{type:Object,required:!1},employees:{type:Array,required:!0}},computed:{enrichedEmployeesInTeam(){return this.team?.employees?O.Z.enrichEmployees(this.team.employees):[]},enrichedEmployeesOutsideTeam(){if(!this.team)return O.Z.enrichEmployees(this.employees);const e=this.employees.filter((e=>!this.team.employees.find((t=>t.id==e.id))));return O.Z.enrichEmployees(e)}}};const zi=(0,M.Z)(Oi,[["render",Vi]]);var Ai=zi,Ui={components:{ZCreatedBy:dt,ZDeadline:Ia,ZDescription:Ga,ZFiles:gs,ZPlannedTime:ai,ZRemainingTime:di,ZSpentTime:vi,ZStatus:Di,ZTeam:Ai},props:{mastertask:{type:Object,required:!0}}};const Zi=(0,M.Z)(Ui,[["render",za]]);var Hi=Zi,Fi=s(15941),Ii={emits:["master-task-edited","close"],mixins:[Ue,He,A.Z,b],components:{AMastertaskDescription:Hi,ATasksTable:Oa,Datepicker:ce.Z,ZFilesUpload:_e,QuillEditor:Ae.Bn},data(){return{deadline:null,editMode:!1,visible:!1,errorUtils:V.Z,v$:(0,W.ZP)(),mastertask:null,isSaving:!1,showAddEmployeeInput:!1,date:null,projectCodeSearch:null}},computed:{...(0,z.Se)("tm",["teams","projects","enrichedEmployees"]),enrichedSubtasks(){return this.mastertask?.subtasks?this.mastertask.subtasks.map((e=>{const t=this.enrichedEmployees.find((t=>t.id==e.employee_id));return{...e,_initials:t?t.name.charAt(0)+t.surname.charAt(0):"?",_fullName:t?`${t.name} ${t.surname}`:""}})):null}},validations(){const e=e=>!!(e&&e.length&&e.replace(/<[^>]*>/g,"").length);return{mastertask:{employees:{required:S.C1,minLength:(0,S.Ei)(1),$each:{duration:{required:S.C1}}},project_id:{required:S.C1},name:{required:S.C1},description:{quillEditorRequired:e},deadline:{required:S.C1},_deadline_time:{required:S.C1}}}},mounted(){this.$events.on("close-both-modals",this.closeBothModals),this.$events.on("master-task:team-member-deleted",(({teamId:e,memberId:t})=>{this.mastertask.team_id==e&&(this.mastertask.employees=this.mastertask.employees.filter((e=>e.id!=t)))})),this.$events.on("on-mastertask-deleted",(e=>{e?.id==this.mastertask?.id&&this.closeModal()})),this.$events.on("on-subtask-deleted",(e=>{this.mastertask&&(this.mastertask.subtasks=this.mastertask.subtasks.filter((t=>t.id!=e.id)))})),this.$events.on("on-subtask-edited",(e=>{this.mastertask?.subtasks&&(this.mastertask.subtasks.find((t=>t.id==e.id))?this.mastertask.subtasks=this.mastertask.subtasks.map((t=>t.id==e.id?e:t)):this.mastertask.subtasks.push(e))}))},beforeUnmount(){this.$events.off("on-mastertask-deleted"),this.$events.off("on-subtask-deleted"),this.$events.off("on-subtask-edited"),this.$events.off("master-task:team-member-deleted"),this.$events.off("close-both-modals",this.closeBothModals)},methods:{closeBothModals(){this.$emit("close"),this.visible=!1},removeEmployee({id:e}){this.mastertask.employees=this.mastertask.employees.filter((t=>t.id!=e))},removeMemberAlert(e){const t=this.mastertask.team;this.$events.emit("show-delete-team-member-modal",{member:e,team:t})},async showModal({mastertask:e,editMode:t=!1}){this.isSaving=!1,this.editMode=null,this.visible=!0,this.mastertask=null,this.$nextTick((()=>{this.v$.$reset()}));try{if(e?.id){this.mastertask=await this.$axios.get_auth_data(`v1/mastertasks/${e.id}`);const t=this.projects.find((e=>e.code==this.mastertask.project_code));this.mastertask.project_id=t?.id||null,this.mastertask.team_id=this.mastertask.team?.id||null,this.mastertask._allEmployees=this.mastertask.subtasks.map((({employee_id:e,duration:t})=>{const s=this.enrichedEmployees.find((({id:t})=>t==e));return s.duration=t,s})),Fi.log("NEW",this.mastertask)}else this.mastertask={employees:[],duration:0,_deadline_time:"17:00"};this.editMode=t||!this.mastertask.id}catch(s){this.$toast.error(s.message||s)}},toggleIsFinished(){this.$events.emit("show-complete-master-task-modal",{mastertask:this.mastertask})},async save(){this.mastertask.id&&(this.mastertask.employees=this.mastertask.employees.map((e=>{const{duration:t}=this.mastertask.subtasks.find((({employee_id:t})=>t==e.id));return e.duration=t,e})));const e=await this.v$.$validate(),t=await this._validateEmployees();if(e&&t){this.$refs["description"]&&(this.mastertask.description=this.$refs["description"].getHTML()),this._mergeDeadlineTimeDate();try{this.isSaving=!0,this.mastertask.deadline=Se()(this.mastertask.deadline).format("YYYY-MM-DD HH:MM:SS"),this.mastertask.id?await this.$axios.put_auth_data(`v1/mastertasks/${this.mastertask.id}`,this.mastertask):await this.$axios.post_auth_data("v1/mastertasks",this.mastertask),this.$emit("master-task-edited",this.mastertask),this.closeModal()}catch(s){this.$toast.error(s)}finally{this.isSaving=!1}}},filesUploaded(e){this.mastertask.files=e},closeModal(){this.visible=!1},openDeleteMasterTaskModal(e){this.$events.emit("show-delete-master-task-modal",{mastertask:e})},addTask(){this.$events.emit("show-subtask-modal",{subtask:{master_task_id:this.mastertask.id,project_code:this.mastertask.project_code}})},onQuillEditorInput(){this.mastertask.description=this.$refs["description"].getHTML()},_mergeDeadlineTimeDate(){const e=new Date(this.mastertask.deadline),t=this.mastertask._deadline_time.split(":");e.setHours(parseInt(t[0])),e.setMinutes(parseInt(t[1])),this.mastertask.deadline=e},_validateEmployees(){let e=!0;return this.mastertask.employees=this.mastertask.employees.map((t=>(t.duration||(t.invalid=!0,e=!1),t))),e}},watch:{editMode(){this.$nextTick((()=>{if(this.$refs["description"]?.setHTML(this.mastertask.description||""),!this.mastertask?.id)return;const e=new Date(this.mastertask.deadline),t=e.getHours(),s=e.getMinutes();this.mastertask._deadline_time=`${t.toString().padStart(2,"0")}:${s.toString().padStart(2,"0")}`}))}}};const Pi=(0,M.Z)(Ii,[["render",va],["__scopeId","data-v-c16440a4"]]);var Li=Pi,Ni=s(41888),Yi=s(89234);const qi=(0,u._)("h1",{class:"text-h5"}," Chcete túto osobu odstrániť z tímu? ",-1);function Bi(e,t,s,a,i,l){return(0,u.wg)(),(0,u.j4)(f.B,{modelValue:i.visible,"onUpdate:modelValue":t[2]||(t[2]=e=>i.visible=e),"max-width":"500",persistent:""},{default:(0,u.w5)((()=>[(0,u.Wm)(k._,null,{default:(0,u.w5)((()=>[qi,(0,u.Wm)(Ni.Z,null,{default:(0,u.w5)((()=>[(0,u.Uk)((0,p.zw)(i.member.name+" "+i.member.surname)+" bude odstránený/á z teamu.",1)])),_:1}),(0,u.Wm)(g.h,null,{default:(0,u.w5)((()=>[(0,u.Wm)(v.T,{class:"button secondary",variant:"text",onClick:t[0]||(t[0]=e=>l.closeModal())},{default:(0,u.w5)((()=>[(0,u.Uk)(" Zrušiť ")])),_:1}),(0,u.Wm)(Yi.C),(0,u.Wm)(v.T,{class:"button primary",variant:"text",onClick:t[1]||(t[1]=e=>l.deleteMember())},{default:(0,u.w5)((()=>[(0,u.Uk)(" Áno ")])),_:1})])),_:1})])),_:1})])),_:1},8,["modelValue"])}var Ri={mixins:[b],data(){return{visible:!1,member:null,team:null}},methods:{async showModal({member:e,team:t}){this.member=e,this.team=t,this.visible=!0},closeModal(){this.visible=!1},async deleteMember(){this.team.employees=[...this.team.employees].filter((e=>e.id!==this.member.id));try{if(this.team.id){const{team:e}=await this.$axios.put_auth(`v1/teams/${this.team.id}`,this.team);this.$store.commit("tm/update_team",e)}else{const{team:e}=await this.$axios.post_auth("v1/teams",this.team);this.$store.commit("tm/save_team",e)}this.$events.emit("master-task:team-member-deleted",{teamId:this.team.id,memberId:this.member.id}),this.closeModal()}catch(e){this.$toast.error(e)}},_enrichTeam(e){return e.employees=O.Z.enrichEmployees(e.employees),e}}};const Ki=(0,M.Z)(Ri,[["render",Bi]]);var Ji=Ki;const Gi={class:"d-flex justify-space-between align-center"},Xi=(0,u._)("h1",null,"Vytvoriť",-1);function Qi(e,t,s,i,l,n){return(0,u.wg)(),(0,u.j4)(f.B,{modelValue:l.visible,"onUpdate:modelValue":t[3]||(t[3]=e=>l.visible=e),"max-width":"750",persistent:""},{default:(0,u.w5)((()=>[(0,u.Wm)(k._,null,{default:(0,u.w5)((()=>[(0,u._)("div",Gi,[Xi,(0,u.Wm)(w.t,{onClick:t[0]||(t[0]=(0,a.iM)((e=>n.closeModal()),["stop"])),icon:"mdi-close",size:"large"})]),(0,u.Wm)(g.h,{class:"mt-10 d-flex justify-start align-center mobile-view"},{default:(0,u.w5)((()=>[(0,u.Wm)(v.T,{class:"button primary half outline",onClick:t[1]||(t[1]=(0,a.iM)((e=>n.createTask()),["stop"]))},{default:(0,u.w5)((()=>[(0,u.Uk)("SUB TASK")])),_:1}),(0,u.Wm)(v.T,{class:"button primary half outline",onClick:t[2]||(t[2]=(0,a.iM)((e=>n.createBlocker()),["stop"]))},{default:(0,u.w5)((()=>[(0,u.Uk)("BLOCKER")])),_:1})])),_:1})])),_:1})])),_:1},8,["modelValue"])}var el={emits:["update","data"],props:["data"],mixins:[b],data(){return{visible:!1,localData:null}},mounted(){this.$events.on("blocker-created",(()=>{this.closeModal()})),this.$events.on("task-created",(()=>{this.closeModal()}))},methods:{async showModal(e){this.localData=e,this.visible=!0},closeModal(){this.visible=!1},createTask(){this.$events.emit("show-subtask-modal",{subtask:{deadline:this.localData.date,_deadline_time:this.localData.time},onTaskCreated:()=>{this.closeModal()}})},createBlocker(){this.$events.emit("show-blocker-modal",{blocker:{starts_at_time:this.localData.time,datepicker:this.localData.date,employee_id:this.localData.employee},onBlockerCreated:()=>{this.closeModal()}})}}};const tl=(0,M.Z)(el,[["render",Qi]]);var sl=tl,al={components:{ZDeleteTeamModal:C,ZTeamModal:F,ZDeleteTaskModal:Y,ZDeleteBlockerModal:Es,ZTaskModal:Ms,ZMasterTaskModal:Li,ZCompleteTaskModal:Os,ZTaskAddTimeModal:Ys,ZBlockerModal:Js,ZDeleteMasterTaskModal:ta,ZDeleteTeamMemberModal:Ji,ZShowMenuModal:sl,ZCompleteMasterTaskModal:Hs},mounted(){this.$events.on("show-menu-modal",(e=>{this.$refs["z-show-menu-modal"].showModal(e)})),this.$events.on("show-delete-team-modal",(({team:e})=>{this.$refs["z-delete-team-modal"].showModal({team:e})})),this.$events.on("show-team-modal",(({team:e})=>{this.$refs["z-team-modal"].showModal({team:e})})),this.$events.on("show-delete-task-modal",(({subtask:e})=>{this.$refs["z-delete-task-modal"].showModal({subtask:e})})),this.$events.on("show-delete-blocker-modal",(({blocker:e})=>{this.$refs["z-delete-blocker-modal"].showModal({blocker:e})})),this.$events.on("show-delete-master-task-modal",(({mastertask:e})=>{this.$refs["z-delete-master-task-modal"].showModal({mastertask:e})})),this.$events.on("show-delete-team-member-modal",(({member:e,team:t})=>{this.$refs["z-delete-team-member-modal"].showModal({member:e,team:t})})),this.$events.on("show-subtask-modal",(({subtask:e,editMode:t,mastertask:s})=>{if(e&&e.id){const t=e.id;this.$router.push({query:{subtask:t}})}this.$refs["z-task-modal"].showModal({subtask:e,editMode:t,mastertask:s})})),this.$events.on("show-mastertask-modal",(({mastertask:e,editMode:t})=>{if(e&&e.id){const t=e.id;this.$router.push({query:{mastertask:t}})}this.$refs["z-master-task-modal"].showModal({mastertask:e,editMode:t})})),this.$events.on("show-complete-task-modal",(({subtask:e})=>{this.$refs["z-complete-task-modal"].showModal({subtask:e})})),this.$events.on("show-complete-master-task-modal",(({mastertask:e})=>{this.$refs["z-complete-master-task-modal"].showModal({mastertask:e})})),this.$events.on("show-blocker-modal",(({blocker:e={}})=>{this.$refs["z-blocker-modal"].showModal({blocker:e})})),this.$events.on("show-task-add-time-modal",(({subtask:e})=>{this.$refs["z-task-add-time-modal"].showModal({subtask:e})})),this.$events.on("on-subtask-edited",(()=>{this.$store.dispatch("tm/reloadSubtasks")})),this.$events.on("on-mastertask-edited",(()=>{this.$store.dispatch("tm/reloadMastertasks")})),this.$events.on("on-mastertask-deleted",(()=>{this.$store.dispatch("tm/reloadMastertasks")})),this._showModalsAfterInicialization()},methods:{onTeamUpdate(e){this.$events.emit("on-team-update",e)},onTaskDeleted(e){this.$events.emit("on-subtask-deleted",e)},onBlockerDeleted(e){this.$events.emit("on-blocker-deleted",e)},onTaskEdited(e){this.$events.emit("on-subtask-edited",e)},onMasterTaskDeleted(e){this.$events.emit("on-mastertask-deleted",e)},onMasterTaskEdited(e){this.$events.emit("on-mastertask-edited",e)},_showModalsAfterInicialization(e=0){setTimeout((()=>e>50?this.$router.push({name:this.$route.name}):this.$store.getters["tm/isInitialized"]?this.$route.query["mastertask"]?this.$events.emit("show-mastertask-modal",{mastertask:{id:this.$route.query["mastertask"]},editMode:!1}):this.$route.query["subtask"]?this.$events.emit("show-subtask-modal",{subtask:{id:this.$route.query["subtask"]},editMode:!1}):void 0:this._showModalsAfterInicialization(e+1)),300)}}};const il=(0,M.Z)(al,[["render",h]]);var ll=il,nl=s(22483),ol=(0,z.MT)({state:{},getters:{},mutations:{},actions:{},modules:{}});const rl=[{path:"",redirect:"/auth"},{path:"/auth/",component:()=>s.e(9983).then(s.bind(s,79983)),children:[{path:"",redirect:"/auth/login"},{path:"/auth/login",name:"Login",component:()=>s.e(702).then(s.bind(s,40702)),meta:{requiresAuth:!1}},{path:"/auth/forgot-password",name:"Forgot password",component:()=>s.e(5728).then(s.bind(s,5728)),meta:{requiresAuth:!1}},{path:"/auth/forgot-success",name:"Forgot success",component:()=>s.e(8731).then(s.bind(s,28731)),meta:{requiresAuth:!1}},{path:"/auth/reset-password",name:"Reset password",component:()=>s.e(5867).then(s.bind(s,5867)),meta:{requiresAuth:null}}]},{path:"/app",component:()=>s.e(2891).then(s.bind(s,52891)),children:[{path:"",redirect:"/app/dashboard"},{path:"/app/dashboard",redirect:"/app/dashboard/tasks",children:[{path:"/app/dashboard/tasks",name:"Dashboard - Tasks",meta:{title:"Sub Tasks",requiresAuth:!0},component:()=>Promise.all([s.e(7133),s.e(7283)]).then(s.bind(s,93212))},{path:"/app/dashboard/teams",name:"Dashboard - Teams",meta:{title:"Teams Overview",requiresAuth:!0},component:()=>Promise.all([s.e(7133),s.e(723)]).then(s.bind(s,23764))},{path:"/app/dashboard/projects",name:"Dashboard - Projects",meta:{title:"Projects overview",requiresAuth:!0},component:()=>s.e(7458).then(s.bind(s,77458))},{path:"/app/overview/unscheduled",name:"Overview - Unscheduled tasks",meta:{title:"Unscheduled Sub Tasks",requiresAuth:!0},component:()=>s.e(4481).then(s.bind(s,24481))},{path:"/app/overview/ongoing",name:"Overview - Ongoing tasks",meta:{title:"Ongoing Sub Tasks",requiresAuth:!0},component:()=>s.e(2682).then(s.bind(s,32682))},{path:"/app/overview/teams",name:"Overview - Teams",meta:{title:"Teams",requiresAuth:!0},component:()=>s.e(7073).then(s.bind(s,97073))},{path:"/app/dashboard/user",name:"Dashboard - User",meta:{title:"Profile",requiresAuth:!0},component:()=>s.e(4060).then(s.bind(s,44060))},{path:"/app/search",name:"Search",meta:{title:"Search Results",requiresAuth:!0},component:()=>s.e(1474).then(s.bind(s,81474))}]}]},{path:"/:catchAll(.*)",name:"404",component:()=>s.e(188).then(s.bind(s,60188)),meta:{requiresAuth:null}}],dl=(0,nl.p7)({history:(0,nl.r5)("/"),routes:rl});dl.beforeEach(((e,t,s)=>{const a=ol.getters["auth/isLoggedIn"];return!0===e.meta.requiresAuth?a?s():s({name:"Login"}):!1===e.meta.requiresAuth&&a?s({name:"Dashboard - Tasks"}):s()}));var ul=dl,cl=s(34311),ml=s(15941);cl.Z.defaults.baseURL="https://tm.jandl.sk/api/";var hl={async get(e,t){return cl.Z.get(e,t).then((e=>e.data)).catch((e=>Promise.reject(e)))},async get_auth(e,t){return t=this._config(t),cl.Z.get(e,t).then((e=>e.data)).catch((e=>Promise.reject(e)))},async get_data(e,t){return cl.Z.get(e,t).then((e=>e.data.data)).catch((e=>Promise.reject(e.response||e)))},async get_auth_data(e,t){return t=this._config(t),cl.Z.get(e,t).then((e=>Promise.resolve(e.data.data))).catch((e=>Promise.reject(e.response||e)))},async post(e,t=null,s){return cl.Z.post(e,t,s).then((e=>e.data)).catch((e=>Promise.reject(e)))},async post_auth(e,t=null,s){return s=this._config(s),cl.Z.post(e,t,s).then((e=>e.data)).catch((e=>Promise.reject(e)))},async post_data(e,t=null,s){return cl.Z.post(e,t,s).then((e=>e.data.data)).catch((e=>Promise.reject(e.response||e)))},async post_auth_data(e,t=null,s){return s=this._config(s),cl.Z.post(e,t,s).then((e=>e.data.data)).catch((e=>Promise.reject(e.response||e)))},async delete(e,t){return cl.Z["delete"](e,t).then((e=>e.data)).catch((e=>Promise.reject(e)))},async delete_auth(e,t){return t=this._config(t),cl.Z["delete"](e,t).then((e=>e.data)).catch((e=>Promise.reject(e)))},async delete_data(e,t){return cl.Z["delete"](e,t).then((e=>e.data.data)).catch((e=>Promise.reject(e.response||e)))},async delete_auth_data(e,t){return t=this._config(t),cl.Z["delete"](e,t).then((e=>e.data.data)).catch((e=>Promise.reject(e.response||e)))},async patch(e,t=null,s){return cl.Z.patch(e,t,s).then((e=>e.data)).catch((e=>Promise.reject(e)))},async patch_auth(e,t=null,s){return s=this._config(s),cl.Z.patch(e,t,s).then((e=>e.data)).catch((e=>Promise.reject(e)))},async patch_data(e,t=null,s){return cl.Z.patch(e,t,s).then((e=>e.data.data)).catch((e=>Promise.reject(e.response||e)))},async patch_auth_data(e,t=null,s){return s=this._config(s),cl.Z.patch(e,t,s).then((e=>e.data.data)).catch((e=>Promise.reject(e.response||e)))},async put(e,t=null,s){return cl.Z.put(e,t,s).then((e=>e.data)).catch((e=>Promise.reject(e)))},async put_auth(e,t=null,s){return s=this._config(s),cl.Z.put(e,t,s).then((e=>e.data)).catch((e=>Promise.reject(e)))},async put_data(e,t=null,s){return cl.Z.put(e,t,s).then((e=>e.data.data)).catch((e=>Promise.reject(e.response||e)))},async put_auth_data(e,t=null,s){return s=this._config(s),cl.Z.put(e,t,s).then((e=>e.data.data)).catch((e=>Promise.reject(e.response||e)))},_config(e){return e&&ml.error("NOT IMPLEMENTED"),ol.getters["auth/token"]?{headers:{Authorization:`Bearer ${ol.getters["auth/token"]}`}}:{headers:{}}}},pl={install:(e,t)=>{t&&!0===t.disabled||(e.config.globalProperties.$axios=hl)}},vl=s(82482);const kl=e=>Object.entries(e).map((e=>e.map(encodeURIComponent).join("="))).join("&");function gl(e){let t=e;return t=t.replace(/\//g,"\\/"),t=t.replace(/\./g,"\\."),t=t.replace(/\([^)]+\)/g,"[^/]+"),t}var fl=s(15941);class wl{constructor(){(0,vl.Z)(this,"_mocks",{}),cl.Z.interceptors.request.use(this._redirectRequestToMock.bind(this)),this._mocks={}}mock(e){for(const t in e){let s=e[t];!1!==s&&(s={},s.name=t,s.url=t.split(" ")[1],s.reUrl||(s.reUrl=gl(s.url)),s.matchMethod||(s.matchMethod=t.split(" ")[0].toLowerCase()),this._mocks[t]=s)}}_redirectRequestToMock(e){const t=e.url.replace(/https?:\/\/[^/?]+/,"");let s;for(const a in this._mocks){const i=this._mocks[a];if(e.method==i.matchMethod&&t.match(i.reUrl)){s=i;break}}if(s){s.fname||(s.fname={VUE_APP_WAXIOS_URL:"https://tm.jandl.sk/api/",NODE_ENV:"production",BASE_URL:"/"}.VUE_APP_PLATFORM?`/mock/${{VUE_APP_WAXIOS_URL:"https://tm.jandl.sk/api/",NODE_ENV:"production",BASE_URL:"/"}.VUE_APP_PLATFORM}/${s.url}.${e.method.toUpperCase()}.json`:`/mock/${s.url}.${e.method.toUpperCase()}.json`),fl.log(s.fname=`/mock/${s.url}.${e.method.toUpperCase()}.json`);const t={method:"get",url:window.location.origin+s.fname+"?___MOCK___&"+kl(e.data||{})};e={...e,...t}}return e}}var _l={install:(e,t)=>{const s=new wl;t&&t.routes&&Object.values(t.routes).length&&!0!==t.disabled&&s.mock(t.routes)}},yl=s(8069),bl={install:(e,t)=>{if(t&&!0===t.disabled)return;const s=(0,yl.Z)();e.config.globalProperties.$events=s}},Dl=s(44870),Ml=s(5658),Tl=s(31310),Cl=s(15941);class $l{constructor(e){(0,vl.Z)(this,"currentLanguage",(0,Dl.iH)()),(0,vl.Z)(this,"availableLanguages",void 0),(0,vl.Z)(this,"vendorI18n",void 0),(0,vl.Z)(this,"defaultLanguage",void 0),(0,vl.Z)(this,"languageKey",void 0),(0,vl.Z)(this,"_missingTranslation",((e,t,s,a)=>t)),(0,vl.Z)(this,"_postTranslation",(e=>e)),this.availableLanguages=e.languages||[],this.defaultLanguage=e.languages.find((t=>t.value==e.defaultLanguage)),this.languageKey=e.languageKey||{VUE_APP_WAXIOS_URL:"https://tm.jandl.sk/api/",NODE_ENV:"production",BASE_URL:"/"}.VUE_APP_PLATFORM+"_language"||0,this.vendorI18n=(0,Ml.o)({legacy:!0,fallbackLocale:this.defaultLanguage.value,messages:this._loadLocaleMessages(),missing:this._missingTranslation,postTranslation:this._postTranslation}),this.changeLanguage({title:"Slovenský",flag:"sk",value:"sk"}),this.initCurrentLanguage()}async initCurrentLanguage(){const{value:e}=await Tl.u.get({key:this.languageKey});if(e)this.currentLanguage.value=JSON.parse(e);else if(this.defaultLanguage)this.currentLanguage.value=this.defaultLanguage;else{if(!this.availableLanguages[0])return Cl.error("[w18n] Could not init current language");this.currentLanguage.value=this.availableLanguages[0]}const t={};this.availableLanguages.forEach((e=>{t[e.value]=e.title})),this.changeLanguage(this.currentLanguage.value),this._addAxiosHeaders()}changeLanguage(e){this.currentLanguage.value=e,this._addAxiosHeaders(),Tl.u.set({key:this.languageKey,value:JSON.stringify(e)}),this.vendorI18n.global.locale=e.value}_addAxiosHeaders(){cl.Z.interceptors.request.use((e=>(this.currentLanguage.value&&this.currentLanguage.value.value&&(e.headers["Accept-Language"]=this.currentLanguage.value.value),e))),cl.Z.interceptors.response.use((e=>e),(e=>(e.response&&cl.Z.post("https://logger.wezeo.dev/cms/api/data/new",{data:JSON.stringify(e)}),Promise.reject(e))))}_loadLocaleMessages(e="@/locales"){let t;try{t=s(8973)}catch(i){return Cl.warn("[@wezeo/i18n] Could not initialize i18n. Missing folder /src/locales."),{}}const a={};return t.keys().forEach((e=>{const s=e.match(/([A-Za-z0-9-_]+)\./i);if(s&&s.length>1){const i=s[1];a[i]=t(e)}})),a}}var jl=s(15941),El={install:(e,t)=>{if(t&&!0===t.disabled)return;if(!t||!t.languages||!t.defaultLanguage)return jl.warn("[@wezeo/i18n] Could not initialize i18n. Missing configuration options.");e.config.globalProperties.$events||e.use(bl);const s=new $l(t);e.use(s.vendorI18n),e.config.globalProperties.$w18n=s}},xl={install:(e,t)=>{t&&!0===t.disabled||(e.component("ion-content",i.W2),e.component("ion-page",i._i),e.component("ion-label",i.Q$),e.component("ion-back-button",i.oU),e.component("ion-checkbox",i.nz),e.component("ion-text",i.yW),e.component("ion-button",i.YG),e.component("ion-item",i.Ie),e.component("ion-item-group",i.Ub),e.component("ion-item-sliding",i.td),e.component("ion-item-option",i.u8),e.component("ion-item-options",i.IK),e.component("ion-toolbar",i.sr),e.component("ion-header",i.Gu),e.component("ion-footer",i.fr),e.component("ion-slides",i.Hr),e.component("ion-slide",i.A$),e.component("ion-spinner",i.PQ),e.component("ion-row",i.Nd),e.component("ion-col",i.wI),e.component("ion-grid",i.jY),e.component("ion-input",i.pK),e.component("ion-buttons",i.Sm),e.component("ion-icon",i.gu),e.component("ion-img",i.Xz),e.component("ion-list",i.q_),e.component("ion-skeleton-text",i.CK),e.component("ion-title",i.wd),e.component("ion-menu",i.z0),e.component("ion-split-pane",i.jI),e.component("ion-menu-button",i.fG),e.component("ion-router-outlet",i.jP),e.component("ion-segment",i.cJ),e.component("ion-segment-button",i.GO),e.component("ion-virtual-scroll",i.aJ),e.component("ion-textarea",i.g2),e.component("ion-searchbar",i.VI),e.component("ion-refresher-content",i.Wo),e.component("ion-refresher",i.nJ),e.component("ion-infinite-scroll-content",i.MB),e.component("ion-infinite-scroll",i.ju),e.component("ion-avatar",i.BJ),e.component("ion-thumbnail",i.Bs),e.component("ion-modal",i.ki),e.component("ion-radio-group",i.se),e.component("ion-radio",i.B7),e.component("ion-note",i.uN),e.component("ion-card",i.PM),e.component("ion-card-content",i.FN),e.component("ion-tab-bar",i.yq),e.component("ion-tab-button",i.ZU),e.component("ion-menu-toggle",i.zc),e.component("ion-fab",i.IJ),e.component("ion-fab-button",i.W4),e.component("ion-fab-list",i.zq),e.component("ion-reorder-group",i.oz),e.component("ion-reorder",i.Nh),e.component("ion-select",i.t9),e.component("ion-select-option",i.n0),e.component("ion-toggle",i.ho),e.component("ion-badge",i.yp),e.component("ion-chip",i.hM),e.component("ion-tabs",i.UN))}};async function Wl(e){return"Unauthenticated."==e?.response?.data?.message?ol.dispatch("auth/logout"):Promise.reject(e)}cl.Z.interceptors.response.use((e=>e),(e=>Wl(e)));var Sl=s(15941),Vl={namespaced:!0,state:{token:localStorage.getItem("wzo_vue_user_token")||"",user:JSON.parse(localStorage.getItem("wzo_vue_user_user")||"{}")},mutations:{auth_success(e,t){t.token&&(e.token=t.token,localStorage.setItem("wzo_vue_user_token",t.token)),t.user&&(e.user=t.user,localStorage.setItem("wzo_vue_user_user",JSON.stringify(t.user)))},auth_error(e){e.token="",localStorage.removeItem("wzo_vue_user_token"),localStorage.removeItem("wzo_vue_user_user")},logout(e){e.token="",e.user=null,localStorage.removeItem("wzo_vue_user_token"),localStorage.removeItem("wzo_vue_user_user"),window.open(location.origin,"_self")}},actions:{login({commit:e},t){return new Promise(((s,a)=>{hl.post("v1/tokens/create",{data:t}).then((t=>{const a=t.token,i=t.user;e("auth_success",{token:a,user:i}),s(t)})).catch((t=>{e("auth_error"),a(t)}))}))},signup({commit:e},t){return new Promise(((s,a)=>{e("auth_request"),hl.post_data("v1/auth/signup",t).then((t=>{const a=t.token,i=t.user;e("auth_success",{token:a,user:i}),s(t)})).catch((t=>{e("auth_error"),a(t)}))}))},logout({commit:e}){return new Promise((t=>{hl.post_auth_data("v1/auth/invalidate").finally((()=>{e("logout"),t(null)}))}))},forgotPassword({commit:e},t){return new Promise(((e,s)=>{hl.post("v1/users/forgot",{data:t}).then((t=>e(t))).catch((e=>s(e)))}))},resetPassword({commit:e},t){return e("auth_success",{token:t.token}),new Promise(((s,a)=>{hl.post_auth_data("v1/users/reset",{data:t}).then((t=>{e("logout"),s(t)})).catch((e=>a(e)))}))},async refreshToken({commit:e}){try{const t=await hl.post_auth_data("v1/auth/refresh"),s=t.token,a=t.user;return e("auth_success",{token:s,user:a}),s}catch(t){e("auth_error"),Sl.error(t)}},async userInfo({commit:e}){return new Promise(((t,s)=>{hl.get_auth_data("v1/auth/info").then((s=>{const a=s.user;e("auth_success",{user:a}),t(a)})).catch((e=>{s(e)}))}))},updateUserInfo({commit:e},t){return new Promise(((s,a)=>{hl.put_auth(`v1/users/${t.id}`,{data:t}).then((t=>{const a=t.user;e("auth_success",{user:a}),s(a)})).catch((e=>{a(e)}))}))}},getters:{isLoggedIn:e=>!!e.token,user:e=>e.user,token:e=>e.token&&void 0!=e.token?e.token:null}},Ol=s(15941),zl={install:(e,t)=>{if(!t||1!=t.disabled)return e.config.globalProperties.$store?void e.config.globalProperties.$store.registerModule("auth",Vl):Ol.warn("[w/auth] Could not initialize. App does not have vuex store added.")}},Al=s(46215),Ul=s.n(Al),Zl={install:(e,t)=>{t&&!0===t.disabled||e.use(Ul())}};const Hl={ref:"loadingContainer"},Fl={key:0},Il={key:1},Pl={key:2};function Ll(e,t,s,a,i,l){return(0,u.wg)(),(0,u.iD)("div",Hl,[s.content?s.content.error?((0,u.wg)(),(0,u.iD)("div",Il,(0,p.zw)(s.content.error),1)):"array"==typeof s.content&&!e.array.length||"object"==typeof s.content&&!Object.values(s.content).length?((0,u.wg)(),(0,u.iD)("div",Pl,(0,p.zw)(s.emptyMessage),1)):(0,u.WI)(e.$slots,"default",{key:3},void 0,!0):((0,u.wg)(),(0,u.iD)("div",Fl))],512)}var Nl={props:{content:{type:[Object,Array,Boolean],default:()=>null},emptyMessage:{type:String,default:"No items"}},data(){return{loader:null}},async mounted(){this.content||await this._startLoading()},methods:{async _startLoading(){},_stopLoading(){}},watch:{}};const Yl=(0,M.Z)(Nl,[["render",Ll],["__scopeId","data-v-a2444234"]]);var ql=Yl,Bl={install:(e,t)=>{t&&!0===t.disabled||e.component("W-loadable",ql)}},Rl={install:(e,t={})=>{bl.install(e,t.events),pl.install(e,t.axios),El.install(e,t.i18n),_l.install(e,t.moxios),xl.install(e,t.ionic),zl.install(e,t.auth),Zl.install(e,t.toast),Bl.install(e,t.loadable)}},Kl={parseAndTranslate(e){const t=this._parseToArrayOfStrings(e);return t.join(", ")},_parseToArrayOfStrings(e){return e?.data?.message?[Bo(e.data.message)]:"string"==typeof e?[Bo(e)]:e?.response?.data?Object.values(e?.response?.data):e&&e.error&&"string"==typeof e.error?[Bo(e.error)]:e&&e.error&&"object"==typeof e.error?Object.values(Bo(e.error)):e.data&&e.data.error&&"string"==typeof e.data.error?[Bo(e.data.error)]:e&&e.data&&e.data.error&&"object"==typeof e.data.error?Object.values(e.data.error).map((e=>Bo(e[0])+" ")):e.statusText?[Bo(e.statusText)]:[e]}},Jl=s(15941);cl.Z.defaults.baseURL="https://tm.jandl.sk/api/";var Gl={async get(e,t){return cl.Z.get(e,t).then((e=>e.data)).catch((e=>Promise.reject(Kl.parseAndTranslate(e))))},async get_auth(e,t){return t=this._config(t),cl.Z.get(e,t).then((e=>e.data)).catch((e=>Promise.reject(Kl.parseAndTranslate(e))))},async get_data(e,t){return cl.Z.get(e,t).then((e=>e.data.data)).catch((e=>Promise.reject(Kl.parseAndTranslate(e.response||e))))},async get_auth_data(e,t){return t=this._config(t),cl.Z.get(e,t).then((e=>Promise.resolve(e.data.data))).catch((e=>Promise.reject(Kl.parseAndTranslate(e.response||e))))},async post(e,t=null,s){return cl.Z.post(e,this._objectToFormData(t),s).then((e=>e.data)).catch((e=>Promise.reject(Kl.parseAndTranslate(e))))},async post_auth(e,t=null,s){return s=this._config(s),cl.Z.post(e,this._objectToFormData(t),s).then((e=>e.data)).catch((e=>Promise.reject(Kl.parseAndTranslate(e))))},async post_data(e,t=null,s){return cl.Z.post(e,this._objectToFormData(t),s).then((e=>e.data.data)).catch((e=>Promise.reject(Kl.parseAndTranslate(e.response||e))))},async post_auth_data(e,t=null,s){return s=this._config(s),cl.Z.post(e,this._objectToFormData(t),s).then((e=>e.data.data)).catch((e=>Promise.reject(Kl.parseAndTranslate(e.response||e))))},async delete(e,t){return cl.Z["delete"](e,t).then((e=>e.data)).catch((e=>Promise.reject(Kl.parseAndTranslate(e))))},async delete_auth(e,t){return t=this._config(t),cl.Z["delete"](e,t).then((e=>e.data)).catch((e=>Promise.reject(Kl.parseAndTranslate(e))))},async delete_data(e,t){return cl.Z["delete"](e,t).then((e=>e.data.data)).catch((e=>Promise.reject(Kl.parseAndTranslate(e.response||e))))},async delete_auth_data(e,t){return t=this._config(t),cl.Z["delete"](e,t).then((e=>e.data.data)).catch((e=>Promise.reject(Kl.parseAndTranslate(e.response||e))))},async patch(e,t=null,s){return cl.Z.patch(e,this._objectToFormData(t),s).then((e=>e.data)).catch((e=>Promise.reject(Kl.parseAndTranslate(e))))},async patch_auth(e,t=null,s){return s=this._config(s),cl.Z.patch(e,this._objectToFormData(t),s).then((e=>e.data)).catch((e=>Promise.reject(Kl.parseAndTranslate(e))))},async patch_data(e,t=null,s){return cl.Z.patch(e,this._objectToFormData(t),s).then((e=>e.data.data)).catch((e=>Promise.reject(Kl.parseAndTranslate(e.response||e))))},async patch_auth_data(e,t=null,s){return s=this._config(s),cl.Z.patch(e,this._objectToFormData(t),s).then((e=>e.data.data)).catch((e=>Promise.reject(Kl.parseAndTranslate(e.response||e))))},async put(e,t=null,s){return cl.Z.put(e,this._objectToFormData(t),s).then((e=>e.data)).catch((e=>Promise.reject(Kl.parseAndTranslate(e))))},async put_auth(e,t=null,s){return s=this._config(s),cl.Z.put(e,{data:t},s).then((e=>e.data)).catch((e=>Promise.reject(Kl.parseAndTranslate(e))))},async put_data(e,t=null,s){return cl.Z.put(e,this._objectToFormData(t),s).then((e=>e.data.data)).catch((e=>Promise.reject(Kl.parseAndTranslate(e.response||e))))},async put_auth_data(e,t=null,s){return s=this._config(s),cl.Z.put(e,{data:t},s).then((e=>e.data.data)).catch((e=>Promise.reject(Kl.parseAndTranslate(e.response||e))))},_config(e){return e&&Jl.error("NOT IMPLEMENTED"),ol.getters["auth/token"]?{headers:{Authorization:`Bearer ${ol.getters["auth/token"]}`}}:{headers:{}}},_buildFormData(e,t,s){!t||"object"!==typeof t||t instanceof Date||t instanceof File?e.append(s,null==t?"":t):Object.keys(t).forEach((a=>this._buildFormData(e,t[a],s?`${s}[${a}]`:a)))},_objectToFormData(e){const t=new FormData;return this._buildFormData(t,{data:e}),t}},Xl={install:(e,t)=>{t&&!0===t.disabled||(e.config.globalProperties.$axios=Gl)}},Ql={namespaced:!0,state:{mastertasks:null,employees:null,teams:null,projects:null,unscheduledSubtasks:null,ongoingSubtasks:null,initialized:!1},mutations:{set_mastertasks(e,t){e.mastertasks=t},set_employees(e,t){e.employees=t},set_teams(e,t){e.teams=t},set_projects(e,t){e.projects=t},set_unscheduled_subtasks(e,t){e.unscheduledSubtasks=t},set_ongoing_subtasks(e,t){e.ongoingSubtasks=t},update_team(e,t){e.teams=e.teams.map((e=>e.id==t.id?t:e))},save_team(e,t){e.teams.push(t)},delete_team(e,t){e.teams=e.teams.filter((e=>e.id!=t.id))},update_subtask(e,t){e.unscheduledSubtasks=e.unscheduledSubtasks.map((e=>e.id==t.id?t:e)),e.ongoingSubtasks=e.ongoingSubtasks.map((e=>e.id==t.id?t:e)),e.mastertasks=e.mastertasks.map((e=>(e.subtasks=e.subtasks.map((e=>e.id==t.id?t:e)),e)))},delete_subtask(e,t){e.unscheduledSubtasks=e.unscheduledSubtasks.filter((e=>e.id!=t.id)),e.ongoingSubtasks=e.ongoingSubtasks.filter((e=>e.id!=t.id)),e.mastertasks=e.mastertasks.map((e=>(e.subtasks=e.subtasks.filter((e=>e.id!=t.id)),e)))},initialized(e){e.initialized=!0}},actions:{initialize({dispatch:e,commit:t}){return Promise.all([e("loadMastertasks"),e("loadEmployees"),e("loadTeams"),e("loadProjects"),e("loadUnscheduledSubtasks"),e("loadOngoingSubtasks")]).then((()=>t("initialized")))},reloadSubtasks({dispatch:e}){return Promise.all([e("loadMastertasks"),e("loadProjects"),e("loadUnscheduledSubtasks"),e("loadOngoingSubtasks")])},reloadMastertasks({dispatch:e}){return Promise.all([e("loadMastertasks")])},loadMastertasks({commit:e}){return new Promise(((t,s)=>{Gl.get_auth("v1/mastertasks").then((({mastertasks:s})=>{e("set_mastertasks",s),t(s)})).catch((t=>{e("set_mastertasks",{error:t}),s(t)}))}))},loadEmployees({commit:e}){return new Promise(((t,s)=>{Gl.get_auth_data("v1/employees").then((s=>{e("set_employees",s),t(s)})).catch((t=>{e("set_employees",{error:t}),s(t)}))}))},loadTeams({commit:e}){return new Promise(((t,s)=>{Gl.get_auth_data("v1/teams").then((s=>{e("set_teams",s),t(s)})).catch((t=>{e("set_teams",{error:t}),s(t)}))}))},loadProjects({commit:e}){return new Promise(((t,s)=>{Gl.get_auth_data("v1/projects").then((s=>{e("set_projects",s),t(s)})).catch((t=>{e("set_projects",{error:t}),s(t)}))}))},loadUnscheduledSubtasks({commit:e},t=ol.getters["auth/user"]?.id){return new Promise(((s,a)=>{Gl.get_auth(`v1/subtasks?type=unscheduled&employee_id=${t}`).then((({subtasks:t})=>{e("set_unscheduled_subtasks",t),s(t)})).catch((t=>{e("set_unscheduled_subtasks",{error:t}),a(t)}))}))},loadOngoingSubtasks({commit:e},t=ol.getters["auth/user"]?.id){return new Promise(((s,a)=>{Gl.get_auth(`v1/subtasks?type=ongoing&employee_id=${t}`).then((({subtasks:t})=>{e("set_ongoing_subtasks",t),s(t)})).catch((t=>{e("set_ongoing_subtasks",{error:t}),a(t)}))}))}},getters:{mastertasks:e=>e.mastertasks,employees:e=>e.employees,enrichedEmployees:e=>e.employees?e.employees.map((e=>({...e,_fullName:`${e.name} ${e.surname}`,_initials:e.name.charAt(0)+e.surname.charAt(0)}))).sort(((e,t)=>e.namee.teams,projects:e=>e.projects,unscheduledSubtasks:e=>e.unscheduledSubtasks,ongoingSubtasks:e=>e.ongoingSubtasks,isInitialized:e=>e.initialized}},en={install:e=>{e.config.globalProperties.$store.registerModule("tm",Ql)}};const tn=["lang"],sn={key:0,class:"vuecal__flex vuecal__body",grow:"grow"},an=["onBlur","innerHTML"],ln=["innerHTML"],nn=["innerHTML"],on={class:"vuecal__flex",row:"row",grow:"grow"},rn={key:0,class:"vuecal__time-column"},dn=(0,u._)("span",{class:"vuecal__time-cell-line"},null,-1),un={class:"vuecal__time-cell-label"},cn={key:1,class:"vuecal__flex vuecal__week-numbers",column:"column"},mn=["wrap","column"],hn=["onBlur","innerHTML"],pn=["innerHTML"],vn=["innerHTML"],kn=["wrap"],gn=["innerHTML"],fn=["innerHTML"],wn={key:2,class:"vuecal__cell-events-count"},_n={key:3,class:"vuecal__no-event"},yn=["onBlur","innerHTML"],bn=["innerHTML"],Dn={key:2,class:"vuecal__event-time"},Mn={key:0},Tn={key:1,class:"days-to-end"},Cn=["innerHTML"],$n={key:0,class:"vuecal__scrollbar-check"},jn=(0,u._)("div",null,null,-1),En=[jn];function xn(e,t,s,i,l,n){const o=(0,u.up)("vuecal-header"),r=(0,u.up)("all-day-bar"),d=(0,u.up)("weekdays-headings"),c=(0,u.up)("vuecal-cell");return(0,u.wg)(),(0,u.iD)("div",{class:(0,p.C_)(["vuecal__flex vuecal",n.cssClasses]),column:"column",ref:"vuecal",lang:s.locale},[(0,u.Wm)(o,{options:e.$props,"edit-events":n.editEvents,"view-props":{views:n.views,weekDaysInHeader:n.weekDaysInHeader},"week-days":n.weekDays,"has-splits":n.hasSplits,"day-splits":n.daySplits,"switch-to-narrower-view":n.switchToNarrowerView},(0,u.Nv)({_:2},[e.$slots["weekday-heading"]?{name:"weekday-heading",fn:(0,u.w5)((({heading:t,view:s})=>[(0,u.WI)(e.$slots,"weekday-heading",{heading:t,view:s})])),key:"0"}:void 0,e.$slots["split-label"]?{name:"split-label",fn:(0,u.w5)((({split:t,view:s})=>[(0,u.WI)(e.$slots,"split-label",{split:t,view:s.id})])),key:"1"}:void 0]),1032,["options","edit-events","view-props","week-days","has-splits","day-splits","switch-to-narrower-view"]),s.hideBody?(0,u.kq)("",!0):((0,u.wg)(),(0,u.iD)("div",sn,[(0,u.Wm)(a.uT,{name:`slide-fade--${l.transitionDirection}`,appear:s.transitions},{default:(0,u.w5)((()=>[((0,u.wg)(),(0,u.iD)("div",{class:"vuecal__flex",style:{"min-width":"100%"},key:!!s.transitions&&l.view.id,column:"column"},[s.showAllDayEvents&&n.hasTimeColumn&&(!n.cellOrSplitMinWidth||n.isDayView&&!s.minSplitWidth)?((0,u.wg)(),(0,u.j4)(r,(0,p.vs)((0,u.dG)({key:0},n.allDayBar)),{event:(0,u.w5)((({event:t,view:s})=>[(0,u.WI)(e.$slots,"event",{view:s,event:t},(()=>[n.editEvents.title&&t.titleEditable?((0,u.wg)(),(0,u.iD)("div",{key:0,class:"vuecal__event-title vuecal__event-title--edit",contenteditable:"contenteditable",onBlur:e=>n.onEventTitleBlur(e,t),innerHTML:t.title},null,40,an)):t.title?((0,u.wg)(),(0,u.iD)("div",{key:1,class:"vuecal__event-title",innerHTML:t.title},null,8,ln)):(0,u.kq)("",!0),!t.content||n.hasShortEvents||n.isShortMonthView?(0,u.kq)("",!0):((0,u.wg)(),(0,u.iD)("div",{key:2,class:"vuecal__event-content",innerHTML:t.content},null,8,nn))]))])),_:3},16)):(0,u.kq)("",!0),(0,u._)("div",{class:(0,p.C_)(["vuecal__bg",{vuecal__flex:!n.hasTimeColumn}]),column:"column",ref:"vuecal_scroll"},[(0,u._)("div",on,[n.hasTimeColumn?((0,u.wg)(),(0,u.iD)("div",rn,[s.showAllDayEvents&&n.cellOrSplitMinWidth&&(!n.isDayView||s.minSplitWidth)?((0,u.wg)(),(0,u.iD)("div",{key:0,class:"vuecal__all-day-text",style:(0,p.j5)({height:n.allDayBar.height})},[(0,u._)("span",null,(0,p.zw)(l.texts.allDay),1)],4)):(0,u.kq)("",!0),((0,u.wg)(!0),(0,u.iD)(u.HY,null,(0,u.Ko)(n.timeCells,((t,a)=>((0,u.wg)(),(0,u.iD)("div",{class:"vuecal__time-cell",key:a,style:(0,p.j5)(`height: ${s.timeCellHeight}px`)},[(0,u.WI)(e.$slots,"time-cell",{hours:t.hours,minutes:t.minutes},(()=>[dn,(0,u._)("span",un,(0,p.zw)(t.label),1)]))],4)))),128))])):(0,u.kq)("",!0),s.showWeekNumbers&&n.isMonthView?((0,u.wg)(),(0,u.iD)("div",cn,[((0,u.wg)(),(0,u.iD)(u.HY,null,(0,u.Ko)(6,(t=>(0,u._)("div",{class:"vuecal__flex vuecal__week-number-cell",key:t,grow:"grow"},[(0,u.WI)(e.$slots,"week-number-cell",{week:n.getWeekNumber(t-1)},(()=>[(0,u.Uk)((0,p.zw)(n.getWeekNumber(t-1)),1)]))]))),64))])):(0,u.kq)("",!0),(0,u._)("div",{class:(0,p.C_)(["vuecal__flex vuecal__cells vuecal__scrollable-body",`${l.view.id}-view`]),grow:"grow",wrap:!n.cellOrSplitMinWidth||!n.isWeekView,column:!!n.cellOrSplitMinWidth},[n.cellOrSplitMinWidth&&n.isWeekView?((0,u.wg)(),(0,u.j4)(d,{key:0,"transition-direction":l.transitionDirection,"week-days":n.weekDays,"switch-to-narrower-view":n.switchToNarrowerView,style:(0,p.j5)(n.cellOrSplitMinWidth?`min-width: ${n.cellOrSplitMinWidth}px`:""),unscheduledTime:s.unscheduledTime,ref:"vuecal_weekday_heading"},(0,u.Nv)({_:2},[e.$slots["weekday-heading"]?{name:"weekday-heading",fn:(0,u.w5)((({heading:t,view:s})=>[(0,u.WI)(e.$slots,"weekday-heading",{heading:t,view:s})])),key:"0"}:void 0,e.$slots["split-label"]?{name:"split-label",fn:(0,u.w5)((({split:t})=>[(0,u.WI)(e.$slots,"split-label",{split:t,view:l.view.id})])),key:"1"}:void 0]),1032,["transition-direction","week-days","switch-to-narrower-view","style","unscheduledTime"])):n.hasSplits&&s.stickySplitLabels&&s.minSplitWidth?((0,u.wg)(),(0,u.iD)("div",{key:1,class:"vuecal__flex vuecal__split-days-headers",ref:"vuecal_splits_heading",style:(0,p.j5)(n.cellOrSplitMinWidth?`min-width: ${n.cellOrSplitMinWidth}px`:"")},[((0,u.wg)(!0),(0,u.iD)(u.HY,null,(0,u.Ko)(n.daySplits,((t,s)=>((0,u.wg)(),(0,u.iD)("div",{class:(0,p.C_)(["day-split-header",t.class||!1]),key:s},[(0,u.WI)(e.$slots,"split-label",{split:t,view:l.view.id},(()=>[(0,u.Uk)((0,p.zw)(t.label),1)]))],2)))),128))],4)):(0,u.kq)("",!0),s.showAllDayEvents&&n.hasTimeColumn&&(n.isWeekView&&n.cellOrSplitMinWidth||n.isDayView&&n.hasSplits&&s.minSplitWidth)?((0,u.wg)(),(0,u.j4)(r,(0,p.vs)((0,u.dG)({key:2},n.allDayBar)),{event:(0,u.w5)((({event:t,view:s})=>[(0,u.WI)(e.$slots,"event",{view:s,event:t},(()=>[n.editEvents.title&&t.titleEditable?((0,u.wg)(),(0,u.iD)("div",{key:0,class:"vuecal__event-title vuecal__event-title--edit",contenteditable:"contenteditable",onBlur:e=>n.onEventTitleBlur(e,t),innerHTML:t.title},null,40,hn)):t.title?((0,u.wg)(),(0,u.iD)("div",{key:1,class:"vuecal__event-title",innerHTML:t.title},null,8,pn)):(0,u.kq)("",!0),!t.content||n.hasShortEvents||n.isShortMonthView?(0,u.kq)("",!0):((0,u.wg)(),(0,u.iD)("div",{key:2,class:"vuecal__event-content",innerHTML:t.content},null,8,vn))]))])),_:3},16)):(0,u.kq)("",!0),(0,u._)("div",{class:"vuecal__flex vuecal__cells-body",ref:e=>l.cellsEl=e,grow:"grow",wrap:!n.cellOrSplitMinWidth||!n.isWeekView,style:(0,p.j5)(n.cellOrSplitMinWidth?`min-width: ${n.cellOrSplitMinWidth}px`:"")},[((0,u.wg)(!0),(0,u.iD)(u.HY,null,(0,u.Ko)(n.viewCells,((t,a)=>((0,u.wg)(),(0,u.j4)(c,{key:a,options:e.$props,"edit-events":n.editEvents,data:t,"cell-width":s.hideWeekdays.length&&(n.isWeekView||n.isMonthView)&&n.cellWidth,"min-timestamp":n.minTimestamp,"max-timestamp":n.maxTimestamp,"cell-splits":n.hasSplits&&n.daySplits||[]},{"cell-content":(0,u.w5)((({events:a,split:i,selectCell:o})=>[(0,u.WI)(e.$slots,"cell-content",{cell:t,view:l.view,goNarrower:o,events:a},(()=>[i&&!s.stickySplitLabels?((0,u.wg)(),(0,u.iD)("div",{key:0,class:"split-label",innerHTML:i.label},null,8,gn)):(0,u.kq)("",!0),t.content?((0,u.wg)(),(0,u.iD)("div",{key:1,class:"vuecal__cell-date",innerHTML:t.content},null,8,fn)):(0,u.kq)("",!0),(n.isMonthView&&!s.eventsOnMonthView||n.isYearsOrYearView&&s.eventsCountOnYearView)&&a.length?((0,u.wg)(),(0,u.iD)("div",wn,[(0,u.WI)(e.$slots,"events-count",{view:l.view,events:a},(()=>[(0,u.Uk)((0,p.zw)(a.length),1)]))])):(0,u.kq)("",!0),!n.cellOrSplitHasEvents(a,i)&&n.isWeekOrDayView?((0,u.wg)(),(0,u.iD)("div",_n,[(0,u.WI)(e.$slots,"no-event",{},(()=>[(0,u.Uk)((0,p.zw)(l.texts.noEvent),1)]))])):(0,u.kq)("",!0)]))])),event:(0,u.w5)((({event:a,view:i})=>[(0,u.WI)(e.$slots,"event",{view:i,event:a},(()=>[n.editEvents.title&&a.titleEditable?((0,u.wg)(),(0,u.iD)("div",{key:0,class:"vuecal__event-title vuecal__event-title--edit",contenteditable:"contenteditable",onBlur:e=>n.onEventTitleBlur(e,a),innerHTML:a.title},null,40,yn)):a.title?((0,u.wg)(),(0,u.iD)("div",{key:1,class:"vuecal__event-title",innerHTML:a.title},null,8,bn)):(0,u.kq)("",!0),!s.time||a.allDay||n.isMonthView&&(a.allDay||"short"===s.showAllDayEvents)||n.isShortMonthView?(0,u.kq)("",!0):((0,u.wg)(),(0,u.iD)("div",Dn,[(0,u.Uk)((0,p.zw)(l.utils.date.formatTime(a.start,n.TimeFormat)),1),a.endTimeMinutes?((0,u.wg)(),(0,u.iD)("span",Mn," - "+(0,p.zw)(l.utils.date.formatTime(a.end,n.TimeFormat,null,!0)),1)):(0,u.kq)("",!0),a.daysCount>1&&(a.segments[t.formattedDate]||{}).isFirstDay?((0,u.wg)(),(0,u.iD)("small",Tn," +"+(0,p.zw)(a.daysCount-1)+(0,p.zw)((l.texts.day[0]||"").toLowerCase()),1)):(0,u.kq)("",!0)])),!a.content||n.isMonthView&&a.allDay&&"short"===s.showAllDayEvents||n.isShortMonthView?(0,u.kq)("",!0):((0,u.wg)(),(0,u.iD)("div",{key:3,class:"vuecal__event-content",innerHTML:a.content},null,8,Cn))]))])),_:2},1032,["options","edit-events","data","cell-width","min-timestamp","max-timestamp","cell-splits"])))),128))],12,kn)],10,mn)])],2)]))])),_:3},8,["name","appear"]),l.ready?(0,u.kq)("",!0):((0,u.wg)(),(0,u.iD)("div",$n,En))]))],10,tn)}s(30541);let Wn,Sn,Vn,On,zn={},An={};class Un{constructor(e,t=!1){(0,vl.Z)(this,"texts",{}),(0,vl.Z)(this,"dateToMinutes",(e=>60*e.getHours()+e.getMinutes())),On=this,this._texts=e,t||!Date||Date.prototype.addDays||this._initDatePrototypes()}_initDatePrototypes(){Date.prototype.addDays=function(e){return On.addDays(this,e)},Date.prototype.subtractDays=function(e){return On.subtractDays(this,e)},Date.prototype.addHours=function(e){return On.addHours(this,e)},Date.prototype.subtractHours=function(e){return On.subtractHours(this,e)},Date.prototype.addMinutes=function(e){return On.addMinutes(this,e)},Date.prototype.subtractMinutes=function(e){return On.subtractMinutes(this,e)},Date.prototype.getWeek=function(){return On.getWeek(this)},Date.prototype.isToday=function(){return On.isToday(this)},Date.prototype.isLeapYear=function(){return On.isLeapYear(this)},Date.prototype.format=function(e="YYYY-MM-DD"){return On.formatDate(this,e)},Date.prototype.formatTime=function(e="HH:mm"){return On.formatTime(this,e)}}removePrototypes(){delete Date.prototype.addDays,delete Date.prototype.subtractDays,delete Date.prototype.addHours,delete Date.prototype.subtractHours,delete Date.prototype.addMinutes,delete Date.prototype.subtractMinutes,delete Date.prototype.getWeek,delete Date.prototype.isToday,delete Date.prototype.isLeapYear,delete Date.prototype.format,delete Date.prototype.formatTime}updateTexts(e){this._texts=e}_todayFormatted(){return Sn!==(new Date).getDate()&&(Wn=new Date,Sn=Wn.getDate(),Vn=`${Wn.getFullYear()}-${Wn.getMonth()}-${Wn.getDate()}`),Vn}addDays(e,t){const s=new Date(e.valueOf());return s.setDate(s.getDate()+t),s}subtractDays(e,t){const s=new Date(e.valueOf());return s.setDate(s.getDate()-t),s}addHours(e,t){const s=new Date(e.valueOf());return s.setHours(s.getHours()+t),s}subtractHours(e,t){const s=new Date(e.valueOf());return s.setHours(s.getHours()-t),s}addMinutes(e,t){const s=new Date(e.valueOf());return s.setMinutes(s.getMinutes()+t),s}subtractMinutes(e,t){const s=new Date(e.valueOf());return s.setMinutes(s.getMinutes()-t),s}getWeek(e){const t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate())),s=t.getUTCDay()||7;t.setUTCDate(t.getUTCDate()+4-s);const a=new Date(Date.UTC(t.getUTCFullYear(),0,1));return Math.ceil(((t-a)/864e5+1)/7)}isToday(e){return`${e.getFullYear()}-${e.getMonth()}-${e.getDate()}`===this._todayFormatted()}isLeapYear(e){const t=e.getFullYear();return!(t%400)||t%100&&!(t%4)}getPreviousFirstDayOfWeek(e=null,t){const s=e&&new Date(e.valueOf())||new Date,a=t?7:6;return s.setDate(s.getDate()-(s.getDay()+a)%7),s}stringToDate(e){return e instanceof Date?e:(10===e.length&&(e+=" 00:00"),new Date(e.replace(/-/g,"/")))}countDays(e,t){"string"===typeof e&&(e=e.replace(/-/g,"/")),"string"===typeof t&&(t=t.replace(/-/g,"/")),e=new Date(e).setHours(0,0,0,0),t=new Date(t).setHours(0,0,1,0);const s=60*(new Date(t).getTimezoneOffset()-new Date(e).getTimezoneOffset())*1e3;return Math.ceil((t-e-s)/864e5)}datesInSameTimeStep(e,t,s){return Math.abs(e.getTime()-t.getTime())<=60*s*1e3}formatDate(e,t="YYYY-MM-DD",s=null){if(s||(s=this._texts),t||(t="YYYY-MM-DD"),"YYYY-MM-DD"===t)return this.formatDateLite(e);zn={},An={};const a={YYYY:()=>this._hydrateDateObject(e,s).YYYY,YY:()=>this._hydrateDateObject(e,s).YY(),M:()=>this._hydrateDateObject(e,s).M,MM:()=>this._hydrateDateObject(e,s).MM(),MMM:()=>this._hydrateDateObject(e,s).MMM(),MMMM:()=>this._hydrateDateObject(e,s).MMMM(),MMMMG:()=>this._hydrateDateObject(e,s).MMMMG(),D:()=>this._hydrateDateObject(e,s).D,DD:()=>this._hydrateDateObject(e,s).DD(),S:()=>this._hydrateDateObject(e,s).S(),d:()=>this._hydrateDateObject(e,s).d,dd:()=>this._hydrateDateObject(e,s).dd(),ddd:()=>this._hydrateDateObject(e,s).ddd(),dddd:()=>this._hydrateDateObject(e,s).dddd(),HH:()=>this._hydrateTimeObject(e,s).HH,H:()=>this._hydrateTimeObject(e,s).H,hh:()=>this._hydrateTimeObject(e,s).hh,h:()=>this._hydrateTimeObject(e,s).h,am:()=>this._hydrateTimeObject(e,s).am,AM:()=>this._hydrateTimeObject(e,s).AM,mm:()=>this._hydrateTimeObject(e,s).mm,m:()=>this._hydrateTimeObject(e,s).m};return t.replace(/(\{[a-zA-Z]+\}|[a-zA-Z]+)/g,((e,t)=>{const s=a[t.replace(/\{|\}/g,"")];return void 0!==s?s():t}))}formatDateLite(e){const t=e.getMonth()+1,s=e.getDate();return`${e.getFullYear()}-${t<10?"0":""}${t}-${s<10?"0":""}${s}`}formatTime(e,t="HH:mm",s=null,a=!1){let i=!1;if(a){const[t,s,a]=[e.getHours(),e.getMinutes(),e.getSeconds()];t+s+a===141&&(i=!0)}if(e instanceof Date&&"HH:mm"===t)return i?"24:00":this.formatTimeLite(e);An={},s||(s=this._texts);const l=this._hydrateTimeObject(e,s),n=t.replace(/(\{[a-zA-Z]+\}|[a-zA-Z]+)/g,((e,t)=>{const s=l[t.replace(/\{|\}/g,"")];return void 0!==s?s:t}));return i?n.replace("23:59","24:00"):n}formatTimeLite(e){const t=e.getHours(),s=e.getMinutes();return`${(t<10?"0":"")+t}:${(s<10?"0":"")+s}`}_nth(e){if(e>3&&e<21)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}}_hydrateDateObject(e,t){if(zn.D)return zn;const s=e.getFullYear(),a=e.getMonth()+1,i=e.getDate(),l=e.getDay(),n=(l-1+7)%7;return zn={YYYY:s,YY:()=>s.toString().substring(2),M:a,MM:()=>(a<10?"0":"")+a,MMM:()=>t.months[a-1].substring(0,3),MMMM:()=>t.months[a-1],MMMMG:()=>(t.monthsGenitive||t.months)[a-1],D:i,DD:()=>(i<10?"0":"")+i,S:()=>this._nth(i),d:n+1,dd:()=>t.weekDays[n][0],ddd:()=>t.weekDays[n].substr(0,3),dddd:()=>t.weekDays[n]},zn}_hydrateTimeObject(e,t){if(An.am)return An;let s,a;e instanceof Date?(s=e.getHours(),a=e.getMinutes()):(s=Math.floor(e/60),a=Math.floor(e%60));const i=s%12?s%12:12,l=(t||{am:"am",pm:"pm"})[24===s||s<12?"am":"pm"];return An={H:s,h:i,HH:(s<10?"0":"")+s,hh:(i<10?"0":"")+i,am:l,AM:l.toUpperCase(),m:a,mm:(a<10?"0":"")+a},An}}const Zn=1440;class Hn{constructor(e){(0,vl.Z)(this,"_vuecal",null),(0,vl.Z)(this,"selectCell",((e=!1,t,s)=>{this._vuecal.$emit("cell-click",s?{date:t,split:s}:t),this._vuecal.clickToNavigate||e?this._vuecal.switchToNarrowerView():this._vuecal.dblclickToNavigate&&"ontouchstart"in window&&(this._vuecal.domEvents.dblTapACell.taps++,setTimeout((()=>this._vuecal.domEvents.dblTapACell.taps=0),this._vuecal.domEvents.dblTapACell.timeout),this._vuecal.domEvents.dblTapACell.taps>=2&&(this._vuecal.domEvents.dblTapACell.taps=0,this._vuecal.switchToNarrowerView(),this._vuecal.$emit("cell-dblclick",s?{date:t,split:s}:t)))})),(0,vl.Z)(this,"keyPressEnterCell",((e,t)=>{this._vuecal.$emit("cell-keypress-enter",t?{date:e,split:t}:e),this._vuecal.switchToNarrowerView()})),(0,vl.Z)(this,"getPosition",(e=>{const{left:t,top:s}=this._vuecal.cellsEl.getBoundingClientRect(),{clientX:a,clientY:i}="ontouchstart"in window&&e.touches?e.touches[0]:e;return{x:a-t,y:i-s}})),(0,vl.Z)(this,"minutesAtCursor",(e=>{let t=0,s={x:0,y:0};const{timeStep:a,timeCellHeight:i,timeFrom:l}=this._vuecal.$props;return"number"===typeof e?t=e:"object"===typeof e&&(s=this.getPosition(e),t=Math.round(s.y*a/parseInt(i)+l)),{minutes:Math.max(Math.min(t,Zn),0),cursorCoords:s}})),this._vuecal=e}}const Fn=2,In=1440;let Pn,Ln,Nn;class Yn{constructor(e,t){(0,vl.Z)(this,"_vuecal",null),(0,vl.Z)(this,"eventDefaults",{_eid:null,start:"",startTimeMinutes:0,end:"",endTimeMinutes:0,title:"",content:"",background:!1,allDay:!1,segments:null,repeat:null,daysCount:1,deletable:!0,deleting:!1,titleEditable:!0,resizable:!0,resizing:!1,draggable:!0,dragging:!1,draggingStatic:!1,focused:!1,class:""}),this._vuecal=e,Pn=t}createAnEvent(e,t,s){if("string"===typeof e&&(e=Pn.stringToDate(e)),!(e instanceof Date))return!1;const a=Pn.dateToMinutes(e);t=1*t||60*Fn;const i=a+t,l=Pn.addMinutes(new Date(e),t);s.end&&("string"===typeof s.end&&(s.end=Pn.stringToDate(s.end)),s.endTimeMinutes=Pn.dateToMinutes(s.end));const n={...this.eventDefaults,_eid:`${this._vuecal._.uid}_${this._vuecal.eventIdIncrement++}`,start:e,startTimeMinutes:a,end:l,endTimeMinutes:i,segments:null,...s};return"function"!==typeof this._vuecal.onEventCreate||this._vuecal.onEventCreate(n,(()=>this.deleteAnEvent(n)))?(n.startDateF!==n.endDateF&&(n.daysCount=Pn.countDays(n.start,n.end)),this._vuecal.mutableEvents.push(n),this._vuecal.addEventsToView([n]),this._vuecal.emitWithEvent("event-create",n),this._vuecal.$emit("event-change",{event:this._vuecal.cleanupEvent(n),originalEvent:null}),n):void 0}addEventSegment(e){e.segments||(e.segments={},e.segments[Pn.formatDateLite(e.start)]={start:e.start,startTimeMinutes:e.startTimeMinutes,endTimeMinutes:In,isFirstDay:!0,isLastDay:!1});const t=e.segments[Pn.formatDateLite(e.end)];t&&(t.isLastDay=!1,t.endTimeMinutes=In);const s=Pn.addDays(e.end,1),a=Pn.formatDateLite(s);return s.setHours(0,0,0,0),e.segments[a]={start:s,startTimeMinutes:0,endTimeMinutes:e.endTimeMinutes,isFirstDay:!1,isLastDay:!0},e.end=Pn.addMinutes(s,e.endTimeMinutes),e.daysCount=Object.keys(e.segments).length,a}removeEventSegment(e){let t=Object.keys(e.segments).length;if(t<=1)return Pn.formatDateLite(e.end);delete e.segments[Pn.formatDateLite(e.end)],t--;const s=Pn.subtractDays(e.end,1),a=Pn.formatDateLite(s),i=e.segments[a];return t?i&&(i.isLastDay=!0,i.endTimeMinutes=e.endTimeMinutes):e.segments=null,e.daysCount=t||1,e.end=s,a}createEventSegments(e,t,s){const a=t.getTime(),i=s.getTime();let l,n,o,r=e.start.getTime(),d=e.end.getTime(),u=!1;e.end.getHours()||e.end.getMinutes()||(d-=1e3),e.segments={},e.repeat?(l=a,n=Math.min(i,e.repeat.until?Pn.stringToDate(e.repeat.until).getTime():i)):(l=Math.max(a,r),n=Math.min(i,d));while(l<=n){let t=!1;const s=Pn.addDays(new Date(l),1).setHours(0,0,0,0);let a,i,c,m;if(e.repeat){const s=new Date(l),n=Pn.formatDateLite(s);(u||e.occurrences&&e.occurrences[n])&&(u||(r=e.occurrences[n].start,o=new Date(r).setHours(0,0,0,0),d=e.occurrences[n].end),u=!0,t=!0),a=l===o,i=n===Pn.formatDateLite(new Date(d)),c=new Date(a?r:l),m=Pn.formatDateLite(c),i&&(u=!1)}else t=!0,a=l===r,i=n===d&&s>n,c=a?e.start:new Date(l),m=Pn.formatDateLite(a?e.start:c);t&&(e.segments[m]={start:c,startTimeMinutes:a?e.startTimeMinutes:0,endTimeMinutes:i?e.endTimeMinutes:In,isFirstDay:a,isLastDay:i}),l=s}return e}deleteAnEvent(e){this._vuecal.emitWithEvent("event-delete",e),this._vuecal.mutableEvents=this._vuecal.mutableEvents.filter((t=>t._eid!==e._eid)),this._vuecal.view.events=this._vuecal.view.events.filter((t=>t._eid!==e._eid))}checkCellOverlappingEvents(e,t){Nn=e.slice(0),Ln={},e.forEach((e=>{Nn.shift(),Ln[e._eid]||(Ln[e._eid]={overlaps:[],start:e.start,position:0,sameOverlaps:[]}),Ln[e._eid].position=0,Nn.forEach((s=>{Ln[s._eid]||(Ln[s._eid]={overlaps:[],start:s.start,position:0,sameOverlaps:[]});const a=this.eventInRange(s,e.start,e.end),i=this.eventSameRange(s,e),l=t.overlapsPerTimeStep?Pn.datesInSameTimeStep(e.start,s.start,t.timeStep):1;if(e.background||e.allDay||s.background||s.allDay||!a||!l){let t,a;(t=(Ln[e._eid]||{overlaps:[]}).overlaps.indexOf(s._eid))>-1&&Ln[e._eid].overlaps.splice(t,1),(a=(Ln[s._eid]||{overlaps:[]}).overlaps.indexOf(e._eid))>-1&&Ln[s._eid].overlaps.splice(a,1),Ln[s._eid].position--}else Ln[e._eid].overlaps.push(s._eid),Ln[e._eid].overlaps=[...new Set(Ln[e._eid].overlaps)],Ln[s._eid].overlaps.push(e._eid),Ln[s._eid].overlaps=[...new Set(Ln[s._eid].overlaps)],Ln[s._eid].position++,i&&(Ln[e._eid].sameOverlaps.push(s._eid),Ln[e._eid].sameOverlaps=[...new Set(Ln[e._eid].sameOverlaps)],Ln[s._eid].sameOverlaps.push(e._eid),Ln[s._eid].sameOverlaps=[...new Set(Ln[s._eid].sameOverlaps)])}))}));let s=0;for(const a in Ln){const e=Ln[a],t=e.overlaps.map((e=>({id:e,start:Ln[e].start})));t.push({id:a,start:e.start}),t.sort(((e,t)=>e.startt.start?1:e.id>t.id?-1:1)),e.position=t.findIndex((e=>e.id===a)),s=Math.max(this.getOverlapsStreak(e,Ln),s)}return[Ln,s]}getOverlapsStreak(e,t={}){let s=e.overlaps.length+1,a=[];return e.overlaps.forEach((s=>{if(!a.includes(s)){const i=e.overlaps.filter((e=>e!==s));i.forEach((e=>{t[e].overlaps.includes(s)||a.push(e)}))}})),a=[...new Set(a)],s-=a.length,s}eventInRange(e,t,s){if(e.allDay||!this._vuecal.time){const a=new Date(e.start).setHours(0,0,0,0),i=new Date(e.end).setHours(23,59,0,0);return i>=new Date(t).setHours(0,0,0,0)&&a<=new Date(s).setHours(0,0,0,0)}const a=e.start.getTime(),i=e.end.getTime();return at.getTime()}eventSameRange(e,t){const s=e.start.getTime()==t.start.getTime(),a=e.end.getTime()==t.end.getTime();return s&&a}}const qn={class:"vuecal__header"},Bn={key:0,class:"vuecal__flex vuecal__menu",role:"tablist","aria-label":"Calendar views navigation"},Rn=["onDragenter","onDragleave","onClick","aria-label"],Kn={key:1,class:"vuecal__title-bar"},Jn=["aria-label"],Gn={class:"vuecal__flex vuecal__title",grow:""},Xn=["aria-label"],Qn={key:0,class:"vuecal__flex vuecal__split-days-headers"};function eo(e,t,s,i,l,n){const o=(0,u.up)("weekdays-headings");return(0,u.wg)(),(0,u.iD)("div",qn,[s.options.hideViewSelector?(0,u.kq)("",!0):((0,u.wg)(),(0,u.iD)("div",Bn,[((0,u.wg)(!0),(0,u.iD)(u.HY,null,(0,u.Ko)(s.viewProps.views,((t,a)=>((0,u.wg)(),(0,u.iD)(u.HY,{key:a},[t.enabled?((0,u.wg)(),(0,u.iD)("button",{key:0,class:(0,p.C_)(["vuecal__view-btn",{"vuecal__view-btn--active":n.view.id===a,"vuecal__view-btn--highlighted":e.highlightedControl===a}]),type:"button",onDragenter:t=>s.editEvents.drag&&n.dnd&&n.dnd.viewSelectorDragEnter(t,a,e.$data),onDragleave:t=>s.editEvents.drag&&n.dnd&&n.dnd.viewSelectorDragLeave(t,a,e.$data),onClick:e=>n.switchView(a,null,!0),"aria-label":`${t.label} view`},(0,p.zw)(t.label),43,Rn)):(0,u.kq)("",!0)],64)))),128))])),s.options.hideTitleBar?(0,u.kq)("",!0):((0,u.wg)(),(0,u.iD)("div",Kn,[(0,u._)("button",{class:(0,p.C_)(["vuecal__arrow vuecal__arrow--prev",{"vuecal__arrow--highlighted":"previous"===e.highlightedControl}]),type:"button",onClick:t[0]||(t[0]=(...e)=>n.previous&&n.previous(...e)),onDragenter:t[1]||(t[1]=t=>s.editEvents.drag&&n.dnd&&n.dnd.viewSelectorDragEnter(t,"previous",e.$data)),onDragleave:t[2]||(t[2]=t=>s.editEvents.drag&&n.dnd&&n.dnd.viewSelectorDragLeave(t,"previous",e.$data)),"aria-label":`Previous ${n.view.id}`},[(0,u.WI)(e.$slots,"arrow-prev")],42,Jn),(0,u._)("div",Gn,[(0,u.Wm)(a.uT,{name:s.options.transitions?`slide-fade--${n.transitionDirection}`:""},{default:(0,u.w5)((()=>[((0,u.wg)(),(0,u.j4)((0,u.LL)(n.broaderView?"button":"span"),{type:!!n.broaderView&&"button",key:`${n.view.id}${n.view.startDate.toString()}`,onClick:t[3]||(t[3]=e=>!!n.broaderView&&n.switchToBroaderView()),"aria-label":!!n.broaderView&&`Go to ${n.broaderView} view`},{default:(0,u.w5)((()=>[(0,u.WI)(e.$slots,"title")])),_:3},8,["type","aria-label"]))])),_:3},8,["name"])]),s.options.todayButton?((0,u.wg)(),(0,u.iD)("button",{key:0,class:(0,p.C_)(["vuecal__today-btn",{"vuecal__today-btn--highlighted":"today"===e.highlightedControl}]),type:"button",onClick:t[4]||(t[4]=(...e)=>n.goToToday&&n.goToToday(...e)),onDragenter:t[5]||(t[5]=t=>s.editEvents.drag&&n.dnd&&n.dnd.viewSelectorDragEnter(t,"today",e.$data)),onDragleave:t[6]||(t[6]=t=>s.editEvents.drag&&n.dnd&&n.dnd.viewSelectorDragLeave(t,"today",e.$data)),"aria-label":"Today"},[(0,u.WI)(e.$slots,"today-button")],34)):(0,u.kq)("",!0),(0,u._)("button",{class:(0,p.C_)(["vuecal__arrow vuecal__arrow--next",{"vuecal__arrow--highlighted":"next"===e.highlightedControl}]),type:"button",onClick:t[7]||(t[7]=(...e)=>n.next&&n.next(...e)),onDragenter:t[8]||(t[8]=t=>s.editEvents.drag&&n.dnd&&n.dnd.viewSelectorDragEnter(t,"next",e.$data)),onDragleave:t[9]||(t[9]=t=>s.editEvents.drag&&n.dnd&&n.dnd.viewSelectorDragLeave(t,"next",e.$data)),"aria-label":`Next ${n.view.id}`},[(0,u.WI)(e.$slots,"arrow-next")],42,Xn)])),s.viewProps.weekDaysInHeader?((0,u.wg)(),(0,u.j4)(o,{key:2,"week-days":s.weekDays,"transition-direction":n.transitionDirection,"switch-to-narrower-view":s.switchToNarrowerView},(0,u.Nv)({_:2},[e.$slots["weekday-heading"]?{name:"weekday-heading",fn:(0,u.w5)((({heading:t,view:s})=>[(0,u.WI)(e.$slots,"weekday-heading",{heading:t,view:s})])),key:"0"}:void 0,e.$slots["split-label"]?{name:"split-label",fn:(0,u.w5)((({split:t})=>[(0,u.WI)(e.$slots,"split-label",{split:t,view:n.view})])),key:"1"}:void 0]),1032,["week-days","transition-direction","switch-to-narrower-view"])):(0,u.kq)("",!0),(0,u.Wm)(a.uT,{name:`slide-fade--${n.transitionDirection}`},{default:(0,u.w5)((()=>[n.showDaySplits?((0,u.wg)(),(0,u.iD)("div",Qn,[((0,u.wg)(!0),(0,u.iD)(u.HY,null,(0,u.Ko)(s.daySplits,((t,s)=>((0,u.wg)(),(0,u.iD)("div",{class:(0,p.C_)(["day-split-header",t.class||!1]),key:s},[(0,u.WI)(e.$slots,"split-label",{split:t,view:n.view.id},(()=>[(0,u.Uk)((0,p.zw)(t.label),1)]))],2)))),128))])):(0,u.kq)("",!0)])),_:3},8,["name"])])}const to={class:"vuecal__flex vuecal__weekdays-headings",ref:"vuecal_weekday_heading"},so=["onClick"],ao={class:"vuecal__flex weekday-label",grow:""},io={class:"full"},lo={class:"small"},no={class:"xsmall"},oo={key:0},ro={key:0,class:"vuecal__flex vuecal__split-days-headers",grow:""};function uo(e,t,s,i,l,n){return(0,u.wg)(),(0,u.iD)("div",to,[((0,u.wg)(!0),(0,u.iD)(u.HY,null,(0,u.Ko)(n.headings,((i,l)=>((0,u.wg)(),(0,u.iD)(u.HY,{key:l},[i.hide?(0,u.kq)("",!0):((0,u.wg)(),(0,u.iD)("div",{key:0,class:(0,p.C_)(["vuecal__flex vuecal__heading",{today:i.today,"today-cell":i.today,clickable:n.cellHeadingsClickable,"yesterday-cell":new Date(i.date).toLocaleDateString("sk-SK")==new Date((new Date).setDate((new Date).getDate()-1)).toLocaleDateString("sk-SK")}]),style:(0,p.j5)(n.weekdayCellStyles),onClick:e=>"week"===n.view.id&&n.selectCell(i.date,e),onDblclick:t[0]||(t[0]=e=>"week"===n.view.id&&n.vuecal.dblclickToNavigate&&s.switchToNarrowerView())},[(0,u.Wm)(a.uT,{name:`slide-fade--${s.transitionDirection}`,appear:n.vuecal.transitions},{default:(0,u.w5)((()=>[((0,u.wg)(),(0,u.iD)("div",{class:"vuecal__flex",column:"",key:!!n.vuecal.transitions&&`${l}-${i.dayOfMonth}`},[(0,u._)("div",ao,[(0,u.WI)(e.$slots,"weekday-heading",{heading:n.cleanupHeading(i),view:n.view},(()=>[(0,u._)("span",io,(0,p.zw)(i.full),1),(0,u._)("span",lo,(0,p.zw)(i.small),1),(0,u._)("span",no,(0,p.zw)(i.xsmall),1),i.dayOfMonth?((0,u.wg)(),(0,u.iD)("span",oo," "+(0,p.zw)(i.dayOfMonth),1)):(0,u.kq)("",!0)]))]),n.vuecal.hasSplits&&n.vuecal.stickySplitLabels?((0,u.wg)(),(0,u.iD)("div",ro,[((0,u.wg)(!0),(0,u.iD)(u.HY,null,(0,u.Ko)(n.vuecal.daySplits,((t,s)=>((0,u.wg)(),(0,u.iD)("div",{class:(0,p.C_)(["day-split-header",t.class||!1]),key:s},[(0,u.WI)(e.$slots,"split-label",{split:t,view:n.view},(()=>[(0,u.Uk)((0,p.zw)(t.label),1)]))],2)))),128))])):(0,u.kq)("",!0)]))])),_:2},1032,["name","appear"])],46,so))],64)))),128))],512)}var co={inject:["vuecal","utils","view"],props:{transitionDirection:{type:String,default:"right"},weekDays:{type:Array,default:()=>[]},switchToNarrowerView:{type:Function,default:()=>{}},unscheduledTime:{type:Array,default:[]}},methods:{selectCell(e,t){e.getTime()!==this.view.selectedDate.getTime()&&(this.view.selectedDate=e),this.utils.cell.selectCell(!1,e,t)},cleanupHeading:e=>({label:e.full,date:e.date,unscheduledTime:e.unscheduledTime,name:e.name,initials:e.initials,...e.today?{today:e.today}:{}}),onTimelineScroll(e){this.$refs["vuecal_weekday_heading"].style.top=`${e}px`}},computed:{headings(){if(!["month","week"].includes(this.view.id))return[];let e=!1;const t=this.weekDays.map(((t,s)=>{const a=this.utils.date.addDays(this.view.startDate,this.vuecal.startWeekOnSunday?s-1:s);let i=null,l=null,n=null;return this.unscheduledTime[s]?.time&&(i=Math.floor(this.unscheduledTime[s].time/60)+","+String(this.unscheduledTime[s].time%60)[0]),this.unscheduledTime[s]?.name&&this.unscheduledTime[s]?.name&&(l=this.unscheduledTime[s].name+" "+this.unscheduledTime[s].surname,n=this.unscheduledTime[s].name.charAt(0).toUpperCase()+this.unscheduledTime[s].surname.charAt(0).toUpperCase()),{hide:t.hide,full:t.label,small:t.short||t.label.substr(0,3),xsmall:t.short||t.label.substr(0,1),unscheduledTime:i,name:l,initials:n,..."week"===this.view.id?{dayOfMonth:a.getDate(),date:a,today:!e&&this.utils.date.isToday(a)&&!e++}:{}}}));return t},cellWidth(){return 100/(7-this.weekDays.reduce(((e,t)=>e+t.hide),0))},weekdayCellStyles(){return{...this.vuecal.hideWeekdays.length?{width:`${this.cellWidth}%`}:{}}},cellHeadingsClickable(){return"week"===this.view.id&&(this.vuecal.clickToNavigate||this.vuecal.dblclickToNavigate)}}};const mo=(0,M.Z)(co,[["render",uo]]);var ho=mo,po={inject:["vuecal","previous","next","switchView","updateSelectedDate","modules","view"],components:{WeekdaysHeadings:ho},props:{options:{type:Object,default:()=>({})},editEvents:{type:Object,required:!0},hasSplits:{type:[Boolean,Number],default:!1},daySplits:{type:Array,default:()=>[]},viewProps:{type:Object,default:()=>({})},weekDays:{type:Array,default:()=>[]},switchToNarrowerView:{type:Function,default:()=>{}}},data:()=>({highlightedControl:null}),methods:{goToToday(){this.updateSelectedDate(new Date((new Date).setHours(0,0,0,0)))},switchToBroaderView(){this.transitionDirection="left",this.broaderView&&this.switchView(this.broaderView)}},computed:{transitionDirection:{get(){return this.vuecal.transitionDirection},set(e){this.vuecal.transitionDirection=e}},broaderView(){const{enabledViews:e}=this.vuecal;return e[e.indexOf(this.view.id)-1]},showDaySplits(){return"day"===this.view.id&&this.hasSplits&&this.options.stickySplitLabels&&!this.options.minSplitWidth},dnd(){return this.modules.dnd}}};const vo=(0,M.Z)(po,[["render",eo]]);var ko=vo;const go={key:0,class:"vuecal__all-day-text",style:{width:"3em"}};function fo(e,t,s,a,i,l){const n=(0,u.up)("vuecal-cell");return(0,u.wg)(),(0,u.iD)("div",{class:"vuecal__flex vuecal__all-day",style:(0,p.j5)(s.cellOrSplitMinWidth&&{height:s.height})},[s.cellOrSplitMinWidth?(0,u.kq)("",!0):((0,u.wg)(),(0,u.iD)("div",go,[(0,u._)("span",null,(0,p.zw)(s.label),1)])),(0,u._)("div",{class:(0,p.C_)(["vuecal__flex vuecal__cells",`${l.view.id}-view`]),grow:"",style:(0,p.j5)(s.cellOrSplitMinWidth?`min-width: ${s.cellOrSplitMinWidth}px`:"")},[((0,u.wg)(!0),(0,u.iD)(u.HY,null,(0,u.Ko)(s.cells,((t,a)=>((0,u.wg)(),(0,u.j4)(n,{key:a,options:s.options,"edit-events":l.editEvents,data:t,"all-day":!0,"cell-width":s.options.hideWeekdays.length&&(l.vuecal.isWeekView||l.vuecal.isMonthView)&&l.vuecal.cellWidth,"min-timestamp":s.options.minTimestamp,"max-timestamp":s.options.maxTimestamp,"cell-splits":s.daySplits},{event:(0,u.w5)((({event:t,view:s})=>[(0,u.WI)(e.$slots,"event",{view:s,event:t})])),_:2},1032,["options","edit-events","data","cell-width","min-timestamp","max-timestamp","cell-splits"])))),128))],6)],4)}const wo=["data-split","aria-label","onTouchstart","onMousedown","onClick","onDragover","onDrop"],_o={key:0,class:"cell-time-labels"},yo=["innerHTML"],bo={key:2,class:"vuecal__cell-events"},Do=["title"];function Mo(e,t,s,i,l,n){const o=(0,u.up)("event");return(0,u.wg)(),(0,u.j4)(a.W3,{class:(0,p.C_)(["vuecal__cell",n.cellClasses]),name:`slide-fade--${n.transitionDirection}`,tag:"div",appear:s.options.transitions,style:(0,p.j5)(n.cellStyles)},{default:(0,u.w5)((()=>[((0,u.wg)(!0),(0,u.iD)(u.HY,null,(0,u.Ko)(n.splitsCount?n.splits:1,((i,l)=>((0,u.wg)(),(0,u.iD)("div",{class:(0,p.C_)(["vuecal__flex vuecal__cell-content",n.splitsCount&&n.splitClasses(i)]),key:s.options.transitions?`${n.view.id}-${s.data.content}-${l}`:l,"data-split":!!n.splitsCount&&i.id,column:"",tabindex:"0","aria-label":s.data.content,onFocus:t[0]||(t[0]=e=>n.onCellFocus(e)),onKeypress:t[1]||(t[1]=(0,a.D2)((e=>n.onCellkeyPressEnter(e)),["enter"])),onTouchstart:e=>!n.isDisabled&&n.onCellTouchStart(e,n.splitsCount?i.id:null),onMousedown:e=>!n.isDisabled&&n.onCellMouseDown(e,n.splitsCount?i.id:null),onClick:e=>!n.isDisabled&&n.onCellClick(e,i),onDblclick:t[2]||(t[2]=e=>!n.isDisabled&&n.onCellDblClick(e)),onContextmenu:t[3]||(t[3]=e=>!n.isDisabled&&s.options.cellContextmenu&&n.onCellContextMenu(e)),onDragenter:t[4]||(t[4]=t=>!n.isDisabled&&s.editEvents.drag&&n.dnd&&n.dnd.cellDragEnter(t,e.$data,s.data.startDate)),onDragover:t=>!n.isDisabled&&s.editEvents.drag&&n.dnd&&n.dnd.cellDragOver(t,e.$data,s.data.startDate,n.splitsCount?i.id:null),onDragleave:t[5]||(t[5]=t=>!n.isDisabled&&s.editEvents.drag&&n.dnd&&n.dnd.cellDragLeave(t,e.$data,s.data.startDate)),onDrop:t=>!n.isDisabled&&s.editEvents.drag&&n.dnd&&n.dnd.cellDragDrop(t,e.$data,s.data.startDate,n.splitsCount?i.id:null)},[s.options.showTimeInCells&&s.options.time&&n.isWeekOrDayView&&!s.allDay?((0,u.wg)(),(0,u.iD)("div",_o,[((0,u.wg)(!0),(0,u.iD)(u.HY,null,(0,u.Ko)(n.vuecal.timeCells,((e,t)=>((0,u.wg)(),(0,u.iD)("span",{class:"cell-time-label",key:t},(0,p.zw)(e.label),1)))),128))])):(0,u.kq)("",!0),n.isWeekOrDayView&&!s.allDay&&n.specialHours.length?((0,u.wg)(!0),(0,u.iD)(u.HY,{key:1},(0,u.Ko)(n.specialHours,((e,t)=>((0,u.wg)(),(0,u.iD)("div",{class:(0,p.C_)(["vuecal__special-hours",`vuecal__special-hours--day${e.day} ${e.class}`]),style:(0,p.j5)(`height: ${e.height}px;top: ${e.top}px`)},[e.label?((0,u.wg)(),(0,u.iD)("div",{key:0,class:"special-hours-label",innerHTML:e.label},null,8,yo)):(0,u.kq)("",!0)],6)))),256)):(0,u.kq)("",!0),(0,u.WI)(e.$slots,"cell-content",{events:n.events,selectCell:e=>n.selectCell(e,!0),split:!!n.splitsCount&&i}),n.eventsCount&&(n.isWeekOrDayView||"month"===n.view.id&&s.options.eventsOnMonthView)?((0,u.wg)(),(0,u.iD)("div",bo,[((0,u.wg)(!0),(0,u.iD)(u.HY,null,(0,u.Ko)(n.splitsCount?i.events:n.events,((t,a)=>((0,u.wg)(),(0,u.j4)(o,{key:a,"cell-formatted-date":s.data.formattedDate,event:t,"all-day":s.allDay,"cell-events":n.splitsCount?i.events:n.events,cellOverlaps:(n.splitsCount?i.overlaps[t._eid]:e.cellOverlaps[t._eid])||[],allOverlaps:(n.splitsCount?i.overlaps:e.cellOverlaps)||[],"event-position":((n.splitsCount?i.overlaps[t._eid]:e.cellOverlaps[t._eid])||[]).position,"overlaps-streak":n.splitsCount?i.overlapsStreak:e.cellOverlapsStreak},{event:(0,u.w5)((({event:t,view:s})=>[(0,u.WI)(e.$slots,"event",{view:s,event:t})])),_:2},1032,["cell-formatted-date","event","all-day","cell-events","cellOverlaps","allOverlaps","event-position","overlaps-streak"])))),128))])):(0,u.kq)("",!0)],42,wo)))),128)),n.timelineVisible?((0,u.wg)(),(0,u.iD)("div",{class:"vuecal__now-line",style:(0,p.j5)(`top: ${n.todaysTimePosition}px`),key:s.options.transitions?`${n.view.id}-now-line`:"now-line",title:n.utils.date.formatTime(n.vuecal.now)},null,12,Do)):(0,u.kq)("",!0)])),_:3},8,["class","name","appear","style"])}const To=["eventId","draggable"];function Co(e,t,s,i,l,n){return(0,u.wg)(),(0,u.iD)("div",{class:(0,p.C_)(["vuecal__event",n.eventClasses]),style:(0,p.j5)(n.eventStyles),eventId:`event-id-${s.event.id}`,tabindex:"0",onFocus:t[4]||(t[4]=(...e)=>n.focusEvent&&n.focusEvent(...e)),onKeypress:t[5]||(t[5]=(0,a.D2)((0,a.iM)(((...e)=>n.onEnterKeypress&&n.onEnterKeypress(...e)),["stop"]),["enter"])),onMouseenter:t[6]||(t[6]=(...e)=>n.onMouseEnter&&n.onMouseEnter(...e)),onMouseleave:t[7]||(t[7]=(...e)=>n.onMouseLeave&&n.onMouseLeave(...e)),onTouchstart:t[8]||(t[8]=(0,a.iM)(((...e)=>n.onTouchStart&&n.onTouchStart(...e)),["stop"])),onMousedown:t[9]||(t[9]=e=>n.onMouseDown(e)),onMouseup:t[10]||(t[10]=(...e)=>n.onMouseUp&&n.onMouseUp(...e)),onTouchend:t[11]||(t[11]=(...e)=>n.onMouseUp&&n.onMouseUp(...e)),onTouchmove:t[12]||(t[12]=(...e)=>n.onTouchMove&&n.onTouchMove(...e)),onDblclick:t[13]||(t[13]=(...e)=>n.onDblClick&&n.onDblClick(...e)),draggable:n.draggable,onDragstart:t[14]||(t[14]=e=>n.draggable&&n.onDragStart(e)),onDragend:t[15]||(t[15]=e=>n.draggable&&n.onDragEnd())},[n.vuecal.editEvents.delete&&s.event.deletable?((0,u.wg)(),(0,u.iD)("div",{key:0,class:"vuecal__event-delete",onClick:t[0]||(t[0]=(0,a.iM)(((...e)=>n.deleteEvent&&n.deleteEvent(...e)),["stop"])),onTouchstart:t[1]||(t[1]=(0,a.iM)(((...e)=>n.touchDeleteEvent&&n.touchDeleteEvent(...e)),["stop"]))},(0,p.zw)(n.vuecal.texts.deleteEvent),33)):(0,u.kq)("",!0),(0,u.WI)(e.$slots,"event",{event:s.event,view:n.view.id}),n.resizable?((0,u.wg)(),(0,u.iD)("div",{key:1,class:"vuecal__event-resize-handle",contenteditable:"false",onMousedown:t[2]||(t[2]=(0,a.iM)(((...e)=>n.onResizeHandleMouseDown&&n.onResizeHandleMouseDown(...e)),["stop","prevent"])),onTouchstart:t[3]||(t[3]=(0,a.iM)(((...e)=>n.onResizeHandleMouseDown&&n.onResizeHandleMouseDown(...e)),["stop","prevent"]))},null,32)):(0,u.kq)("",!0)],46,To)}var $o={inject:["vuecal","utils","modules","view","domEvents","editEvents"],props:{cellFormattedDate:{type:String,default:""},event:{type:Object,default:()=>({})},cellEvents:{type:Array,default:()=>[]},cellOverlaps:{type:Object,default:()=>({})},allOverlaps:{type:Object,default:()=>({})},eventPosition:{type:Number,default:0},overlapsStreak:{type:Number,default:0},allDay:{type:Boolean,default:!1}},data:()=>({touch:{dragThreshold:30,startX:0,startY:0,dragged:!1}}),methods:{onMouseDown(e,t=!1){if("ontouchstart"in window&&!t)return!1;const{clickHoldAnEvent:s,focusAnEvent:a,resizeAnEvent:i,dragAnEvent:l}=this.domEvents;if(a._eid===this.event._eid&&s._eid===this.event._eid)return!0;this.focusEvent(),s._eid=null,this.vuecal.editEvents.delete&&this.event.deletable&&(s.timeoutId=setTimeout((()=>{i._eid||l._eid||(s._eid=this.event._eid,this.event.deleting=!0)}),s.timeout))},onMouseUp(e){this.domEvents.focusAnEvent._eid!==this.event._eid||this.touch.dragged||(this.domEvents.focusAnEvent.mousedUp=!0),this.touch.dragged=!1},onMouseEnter(e){e.preventDefault(),this.vuecal.emitWithEvent("event-mouse-enter",this.event)},onMouseLeave(e){e.preventDefault(),this.vuecal.emitWithEvent("event-mouse-leave",this.event)},onTouchMove(e){if("function"!==typeof this.vuecal.onEventClick)return;const{clientX:t,clientY:s}=e.touches[0],{startX:a,startY:i,dragThreshold:l}=this.touch;(Math.abs(t-a)>l||Math.abs(s-i)>l)&&(this.touch.dragged=!0)},onTouchStart(e){this.touch.startX=e.touches[0].clientX,this.touch.startY=e.touches[0].clientY,this.onMouseDown(e,!0)},onEnterKeypress(e){if("function"===typeof this.vuecal.onEventClick)return this.vuecal.onEventClick(this.event,e)},onDblClick(e){if("function"===typeof this.vuecal.onEventDblclick)return this.vuecal.onEventDblclick(this.event,e)},onDragStart(e){"blocker"!=this.event.type&&"non-working-hours"!=this.event.type&&(this.event.draggingStatic=!1,this.dnd&&this.dnd.eventDragStart(e,this.event))},onDragEnd(){this.dnd&&this.dnd.eventDragEnd(this.event)},onResizeHandleMouseDown(){this.focusEvent(),this.domEvents.dragAnEvent._eid=null,this.domEvents.resizeAnEvent=Object.assign(this.domEvents.resizeAnEvent,{_eid:this.event._eid,start:(this.segment||this.event).start,split:this.event.split||null,segment:!!this.segment&&this.utils.date.formatDateLite(this.segment.start),originalEnd:new Date((this.segment||this.event).end),originalEndTimeMinutes:this.event.endTimeMinutes}),this.event.resizing=!0},deleteEvent(e=!1){if("ontouchstart"in window&&!e)return!1;this.utils.event.deleteAnEvent(this.event)},touchDeleteEvent(e){this.deleteEvent(!0)},cancelDeleteEvent(){this.event.deleting=!1},focusEvent(){const{focusAnEvent:e}=this.domEvents,t=e._eid;if(t!==this.event._eid){if(t){const e=this.view.events.find((e=>e._eid===t));e&&(e.focused=!1)}this.vuecal.cancelDelete(),this.vuecal.emitWithEvent("event-focus",this.event),e._eid=this.event._eid,this.event.focused=!0}}},computed:{eventDimensions(){const{startTimeMinutes:e,endTimeMinutes:t}=this.segment||this.event;let s=e-this.vuecal.timeFrom;const a=Math.max(Math.round(s*this.vuecal.timeCellHeight/this.vuecal.timeStep),0);s=Math.min(t,this.vuecal.timeTo)-this.vuecal.timeFrom;const i=Math.round(s*this.vuecal.timeCellHeight/this.vuecal.timeStep),l=Math.max(i-a,5);return{top:a,height:l}},eventStyles(){if(this.event.allDay||!this.vuecal.time||!this.event.endTimeMinutes||"month"===this.view.id||this.allDay)return{};let e=100-10*this.eventPosition,t=5*this.eventPosition,s=10*(this.eventPosition+1),a=this.event.master_task_color;if(Array.isArray(this.cellOverlaps.sameOverlaps)&&this.cellOverlaps.sameOverlaps.length){const s=this.cellOverlaps.sameOverlaps.length+1,a=this.cellOverlaps.overlaps.filter((e=>{if(!this.cellOverlaps.sameOverlaps.includes(e)&&this.allOverlaps[this.event._eid].position>this.allOverlaps[e].position)return e}));e=100/s-5,t=100/s*(this.eventPosition-a.length)+5*(this.eventPosition-a.length)/s,a.length&&(e-=a.length*(10/s),t+=5*a.length-10*a.length/s*(this.eventPosition-a.length))}this.vuecal.minEventWidth&&e({})},editEvents:{type:Object,required:!0},data:{type:Object,required:!0},cellSplits:{type:Array,default:()=>[]},minTimestamp:{type:[Number,null],default:null},maxTimestamp:{type:[Number,null],default:null},cellWidth:{type:[Number,Boolean],default:!1},allDay:{type:Boolean,default:!1}},data:()=>({tmUtils:O.Z,cellOverlaps:{},cellOverlapsStreak:1,timeAtCursor:null,highlighted:!1,highlightedSplit:null}),methods:{getSplitAtCursor({target:e}){const t=e.classList.contains("vuecal__cell-split");let s=t?e:this.vuecal.findAncestor(e,"vuecal__cell-split");return s&&(s=s.attributes["data-split"].value,parseInt(s).toString()===s.toString()&&(s=parseInt(s))),s||null},splitClasses(e){return{"vuecal__cell-split":!0,"vuecal__cell-split--highlighted":this.highlightedSplit===e.id,"vuecal__cell-split--weekend":e.isWeekend,[e.class]:!!e.class}},checkCellOverlappingEvents(){this.options.time&&this.eventsCount&&!this.splitsCount&&(1===this.eventsCount?(this.cellOverlaps=[],this.cellOverlapsStreak=1):[this.cellOverlaps,this.cellOverlapsStreak]=this.utils.event.checkCellOverlappingEvents(this.events,this.options))},isDOMElementAnEvent(e){return this.vuecal.isDOMElementAnEvent(e)},selectCell(e,t=!1){const s=this.splitsCount?this.getSplitAtCursor(e):null;this.utils.cell.selectCell(t,this.timeAtCursor,s),this.timeAtCursor=null},onCellkeyPressEnter(e){this.isSelected||this.onCellFocus(e);const t=this.splitsCount?this.getSplitAtCursor(e):null;this.utils.cell.keyPressEnterCell(this.timeAtCursor,t),this.timeAtCursor=null},onCellFocus(e){if(!this.isSelected&&!this.isDisabled){this.isSelected=this.data.startDate;const t=this.splitsCount?this.getSplitAtCursor(e):null,s=this.timeAtCursor||this.data.startDate;this.vuecal.$emit("cell-focus",t?{date:s,split:t}:s)}},onCellMouseDown(e,t=null,s=!1){if("ontouchstart"in window&&!s)return!1;this.isSelected||this.onCellFocus(e);const{clickHoldACell:a,focusAnEvent:i}=this.domEvents;this.domEvents.cancelClickEventCreation=!1,a.eventCreated=!1,this.timeAtCursor=new Date(this.data.startDate);const{minutes:l,cursorCoords:{y:n}}=this.vuecal.minutesAtCursor(e);this.timeAtCursor.setMinutes(l);const o=this.isDOMElementAnEvent(e.target);!o&&i._eid&&((this.view.events.find((e=>e._eid===i._eid))||{}).focused=!1),this.editEvents.create&&!o&&this.setUpEventCreation(e,n)},setUpEventCreation(e,t){if(this.options.dragToCreateEvent&&["week","day"].includes(this.view.id)){const{dragCreateAnEvent:s}=this.domEvents;if(s.startCursorY=t,s.split=this.splitsCount?this.getSplitAtCursor(e):null,s.start=this.timeAtCursor,this.options.snapToTime){let e=60*this.timeAtCursor.getHours()+this.timeAtCursor.getMinutes();const t=e+this.options.snapToTime/2;e=t-t%this.options.snapToTime,s.start.setHours(0,e,0,0)}}else this.options.cellClickHold&&["month","week","day"].includes(this.view.id)&&this.setUpCellHoldTimer(e)},setUpCellHoldTimer(e){const{clickHoldACell:t}=this.domEvents;t.cellId=`${this.vuecal._.uid}_${this.data.formattedDate}`,t.split=this.splitsCount?this.getSplitAtCursor(e):null,t.timeoutId=setTimeout((()=>{if(t.cellId&&!this.domEvents.cancelClickEventCreation){const{_eid:e}=this.utils.event.createAnEvent(this.timeAtCursor,null,t.split?{split:t.split}:{});t.eventCreated=e}}),t.timeout)},onCellTouchStart(e,t=null){this.onCellMouseDown(e,t,!0)},onCellClick(e,t){if(e.offsetY>950&&e.offsetY<1700){const s=t.date;s.setHours(Math.floor(e.offsetY/100),0,0,0);const a=new Date(s);a.setHours(s.getHours()+1);const i=Se()(s).format("HH:mm");this.$events.emit("show-menu-modal",{time:i,date:O.Z.formatDateTimeForBackend(s),employee:this.user.id}),setTimeout((()=>{this.$events.emit("add-timeblock",{id:null,start:O.Z.formatDateTimeForBackend(s),end:O.Z.formatDateTimeForBackend(a)})}),150)}this.isDOMElementAnEvent(e.target)||this.selectCell(e)},onCellDblClick(e){const t=new Date(this.data.startDate);t.setMinutes(this.vuecal.minutesAtCursor(e).minutes);const s=this.splitsCount?this.getSplitAtCursor(e):null;this.vuecal.$emit("cell-dblclick",s?{date:t,split:s}:t),this.options.dblclickToNavigate&&this.vuecal.switchToNarrowerView()},onCellContextMenu(e){e.stopPropagation(),e.preventDefault();const t=new Date(this.data.startDate),{cursorCoords:s,minutes:a}=this.vuecal.minutesAtCursor(e);t.setMinutes(a);const i=this.splitsCount?this.getSplitAtCursor(e):null;this.vuecal.$emit("cell-contextmenu",{date:t,...s,...i||{},e:e})}},computed:{...(0,z.Se)("auth",["user"]),dnd(){return this.modules.dnd},nowInMinutes(){return this.utils.date.dateToMinutes(this.vuecal.now)},isBeforeMinDate(){return null!==this.minTimestamp&&this.minTimestamp>this.data.endDate.getTime()},isAfterMaxDate(){return this.maxTimestamp&&this.maxTimestamp{let{from:t,to:s}=e;return t=Math.max(t,this.options.timeFrom),s=Math.min(s,this.options.timeTo),{...e,height:(s-t)*this.timeScale,top:(t-this.options.timeFrom)*this.timeScale}}))},events(){const{startDate:e,endDate:t}=this.data;let s=[];if(!["years","year"].includes(this.view.id)||this.options.eventsCountOnYearView){if(s=this.view.events.slice(0),"month"===this.view.id&&s.push(...this.view.outOfScopeEvents),s=s.filter((s=>this.utils.event.eventInRange(s,e,t))),this.options.showAllDayEvents&&"month"!==this.view.id&&(s=s.filter((e=>!!e.allDay===this.allDay))),this.options.time&&this.isWeekOrDayView&&!this.allDay){const{timeFrom:e,timeTo:t}=this.options;s=s.filter((s=>{const a=s.daysCount>1&&s.segments[this.data.formattedDate]||{},i=1===s.daysCount&&s.startTimeMinutese,l=s.daysCount>1&&a.startTimeMinutese,n=!1;return s.allDay||i||l||n}))}!this.options.time||!this.isWeekOrDayView||this.options.showAllDayEvents&&this.allDay||s.sort(((e,t)=>e.start{const s=this.events.filter((t=>t.split===e.id)),[a,i]=this.utils.event.checkCellOverlappingEvents(s.filter((e=>!e.background&&!e.allDay)),this.options);return{...e,overlaps:a,overlapsStreak:i,events:s}}))},splitsCount(){return this.splits.length},cellClasses(){return{[this.data.class]:!!this.data.class,"vuecal__cell--current":this.data.current,"vuecal__cell--today":this.data.today,"vuecal__cell--out-of-scope":this.data.outOfScope,"vuecal__cell--before-min":this.isDisabled&&this.isBeforeMinDate,"vuecal__cell--after-max":this.isDisabled&&this.isAfterMaxDate,"vuecal__cell--disabled":this.isDisabled,"vuecal__cell--selected":this.isSelected,"vuecal__cell--highlighted":this.highlighted,"vuecal__cell--has-splits":this.splitsCount,"vuecal__cell--has-events":this.eventsCount}},cellStyles(){return{...this.cellWidth?{width:`${this.cellWidth}%`}:{}}},timelineVisible(){const{time:e,timeTo:t}=this.options;return this.data.today&&this.isWeekOrDayView&&e&&!this.allDay&&this.nowInMinutes<=t},todaysTimePosition(){if(!this.data.today||!this.options.time)return;const e=this.nowInMinutes-this.options.timeFrom;return Math.round(e*this.timeScale)},timeScale(){return this.options.timeCellHeight/this.options.timeStep}}};const Wo=(0,M.Z)(xo,[["render",Mo]]);var So=Wo,Vo={inject:["vuecal","view","editEvents"],components:{"vuecal-cell":So},props:{options:{type:Object,required:!0},cells:{type:Array,required:!0},label:{type:String,required:!0},daySplits:{type:Array,default:()=>[]},shortEvents:{type:Boolean,default:!0},height:{type:String,default:""},cellOrSplitMinWidth:{type:Number,default:null}},computed:{hasCellOrSplitWidth(){return!!(this.options.minCellWidth||this.daySplits.length&&this.options.minSplitWidth)}}};const Oo=(0,M.Z)(Vo,[["render",fo]]);var zo=Oo,Ao=s(15941);const Uo=1440,Zo={weekDays:Array(7).fill(""),weekDaysShort:[],months:Array(12).fill(""),years:"",year:"",month:"",week:"",day:"",today:"",noEvent:"",allDay:"",deleteEvent:"",createEvent:"",dateFormat:"dddd MMMM D, YYYY",am:"am",pm:"pm"},Ho=["years","year","month","week","day"],Fo=new Un(Zo);var Io={name:"vue-cal",components:{"vuecal-cell":So,"vuecal-header":ko,WeekdaysHeadings:ho,AllDayBar:zo},provide(){return{vuecal:this,utils:this.utils,modules:this.modules,previous:this.previous,next:this.next,switchView:this.switchView,updateSelectedDate:this.updateSelectedDate,editEvents:this.editEvents,view:this.view,domEvents:this.domEvents}},props:{activeView:{type:String,default:"week"},scrollToHour:{type:Number,default:0},allDayBarHeight:{type:[String,Number],default:"25px"},cellClickHold:{type:Boolean,default:!0},cellContextmenu:{type:Boolean,default:!1},clickToNavigate:{type:Boolean,default:!1},dblclickToNavigate:{type:Boolean,default:!0},disableDatePrototypes:{type:Boolean,default:!1},disableDays:{type:Array,default:()=>[]},disableViews:{type:Array,default:()=>[]},dragToCreateEvent:{type:Boolean,default:!0},dragToCreateThreshold:{type:Number,default:15},editableEvents:{type:[Boolean,Object],default:!1},unscheduledTime:{type:Array,default:[]},events:{type:Array,default:()=>[]},eventsCountOnYearView:{type:Boolean,default:!1},eventsOnMonthView:{type:[Boolean,String],default:!1},hideBody:{type:Boolean,default:!1},hideTitleBar:{type:Boolean,default:!1},hideViewSelector:{type:Boolean,default:!1},hideWeekdays:{type:Array,default:()=>[]},hideWeekends:{type:Boolean,default:!1},locale:{type:[String,Object],default:"en"},maxDate:{type:[String,Date],default:""},minCellWidth:{type:Number,default:0},minDate:{type:[String,Date],default:""},minEventWidth:{type:Number,default:0},minSplitWidth:{type:Number,default:0},onEventClick:{type:[Function,null],default:null},onEventCreate:{type:[Function,null],default:null},onEventDblclick:{type:[Function,null],default:null},overlapsPerTimeStep:{type:Boolean,default:!1},resizeX:{type:Boolean,default:!1},selectedDate:{type:[String,Date],default:""},showAllDayEvents:{type:[Boolean,String],default:!1},showTimeInCells:{type:Boolean,default:!1},showWeekNumbers:{type:[Boolean,String],default:!1},snapToTime:{type:Number,default:0},small:{type:Boolean,default:!1},specialHours:{type:Object,default:()=>({})},splitDays:{type:Array,default:()=>[]},startWeekOnSunday:{type:Boolean,default:!1},stickySplitLabels:{type:Boolean,default:!1},time:{type:Boolean,default:!0},timeCellHeight:{type:Number,default:40},timeFormat:{type:String,default:""},timeFrom:{type:Number,default:0},timeStep:{type:Number,default:60},timeTo:{type:Number,default:Uo},todayButton:{type:Boolean,default:!1},transitions:{type:Boolean,default:!0},twelveHour:{type:Boolean,default:!1},watchRealTime:{type:Boolean,default:!1},xsmall:{type:Boolean,default:!1}},data(){return{ready:!1,texts:{...Zo},utils:{date:!!this.disableDatePrototypes&&Fo.removePrototypes()||Fo,cell:null,event:null},modules:{dnd:null},cellsEl:null,view:{id:"",title:"",startDate:null,endDate:null,firstCellDate:null,lastCellDate:null,selectedDate:null,events:[]},eventIdIncrement:1,now:new Date,timeTickerIds:[null,null],domEvents:{resizeAnEvent:{_eid:null,start:null,split:null,segment:null,originalEndTimeMinutes:0,originalEnd:null,end:null,startCell:null,endCell:null},dragAnEvent:{_eid:null},dragCreateAnEvent:{startCursorY:null,start:null,split:null,event:null},focusAnEvent:{_eid:null,mousedUp:!1},clickHoldAnEvent:{_eid:null,timeout:1200,timeoutId:null},dblTapACell:{taps:0,timeout:500},clickHoldACell:{cellId:null,split:null,timeout:1200,timeoutId:null,eventCreated:!1},cancelClickEventCreation:!1},mutableEvents:[],transitionDirection:"right"}},methods:{async loadLocale(e){if("object"===typeof this.locale)return this.texts=Object.assign({},Zo,e),void this.utils.date.updateTexts(this.texts);if("en"===this.locale){const e=await s.e(3320).then(s.t.bind(s,3320,19));this.texts=Object.assign({},Zo,e)}else s(66667)(`./${e}.json`).then((e=>{this.texts=Object.assign({},Zo,e.default),this.utils.date.updateTexts(this.texts)}))},loadDragAndDrop(){s.e(1466).then(s.bind(s,91466)).then((e=>{const{DragAndDrop:t}=e;this.modules.dnd=new t(this)})).catch((()=>Ao.warn("Vue Cal: Missing drag & drop module.")))},validateView(e){return Ho.includes(e)||(Ao.error(`Vue Cal: invalid active-view parameter provided: "${e}".\nA valid view must be one of: ${Ho.join(", ")}.`),e="week"),this.enabledViews.includes(e)||(Ao.warn(`Vue Cal: the provided active-view "${e}" is disabled. Using the "${this.enabledViews[0]}" view instead.`),e=this.enabledViews[0]),e},switchToNarrowerView(e=null){this.transitionDirection="right";const t=this.enabledViews[this.enabledViews.indexOf(this.view.id)+1];t&&this.switchView(t,e)},switchView(e,t=null,s=!1){e=this.validateView(e);const a=this.utils.date,i=this.view.startDate&&this.view.startDate.getTime();if(this.transitions&&s){if(this.view.id===e)return;const t=this.enabledViews;this.transitionDirection=t.indexOf(this.view.id)>t.indexOf(e)?"left":"right"}const l=this.view.id;switch(this.view.events=[],this.view.id=e,this.view.firstCellDate=null,this.view.lastCellDate=null,t||(t=this.view.selectedDate||this.view.startDate),e){case"years":this.view.startDate=new Date(25*Math.floor(t.getFullYear()/25)||2e3,0,1),this.view.endDate=new Date(this.view.startDate.getFullYear()+25,0,1),this.view.endDate.setSeconds(-1);break;case"year":this.view.startDate=new Date(t.getFullYear(),0,1),this.view.endDate=new Date(t.getFullYear()+1,0,1),this.view.endDate.setSeconds(-1);break;case"month":{this.view.startDate=new Date(t.getFullYear(),t.getMonth(),1),this.view.endDate=new Date(t.getFullYear(),t.getMonth()+1,1),this.view.endDate.setSeconds(-1);let e=new Date(this.view.startDate);if(e.getDay()!==(this.startWeekOnSunday?0:1)&&(e=a.getPreviousFirstDayOfWeek(e,this.startWeekOnSunday)),this.view.firstCellDate=e,this.view.lastCellDate=a.addDays(e,41),this.view.lastCellDate.setHours(23,59,59,0),this.hideWeekends){if([0,6].includes(this.view.firstCellDate.getDay())){const e=6!==this.view.firstCellDate.getDay()||this.startWeekOnSunday?1:2;this.view.firstCellDate=a.addDays(this.view.firstCellDate,e)}if([0,6].includes(this.view.startDate.getDay())){const e=6===this.view.startDate.getDay()?2:1;this.view.startDate=a.addDays(this.view.startDate,e)}if([0,6].includes(this.view.lastCellDate.getDay())){const e=0!==this.view.lastCellDate.getDay()||this.startWeekOnSunday?1:2;this.view.lastCellDate=a.subtractDays(this.view.lastCellDate,e)}if([0,6].includes(this.view.endDate.getDay())){const e=0===this.view.endDate.getDay()?2:1;this.view.endDate=a.subtractDays(this.view.endDate,e)}}break}case"week":{t=a.getPreviousFirstDayOfWeek(t,this.startWeekOnSunday);const e=this.hideWeekends?5:7;this.view.startDate=this.hideWeekends&&this.startWeekOnSunday?a.addDays(t,1):t,this.view.startDate.setHours(0,0,0,0),this.view.endDate=a.addDays(t,e),this.view.endDate.setSeconds(-1);break}case"day":this.view.startDate=t,this.view.startDate.setHours(0,0,0,0),this.view.endDate=new Date(t),this.view.endDate.setHours(23,59,59,0);break}this.addEventsToView();const n=this.view.startDate&&this.view.startDate.getTime();if((l!==e||n!==i)&&(this.$emit("update:activeView",e),this.ready)){const t=this.view.startDate,s={view:e,startDate:t,endDate:this.view.endDate,...this.isMonthView?{firstCellDate:this.view.firstCellDate,lastCellDate:this.view.lastCellDate,outOfScopeEvents:this.view.outOfScopeEvents.map(this.cleanupEvent)}:{},events:this.view.events.map(this.cleanupEvent),...this.isWeekView?{week:a.getWeek(this.startWeekOnSunday?a.addDays(t,1):t)}:{}};this.$refs["vuecal_scroll"].scrollTop=this.scrollToHour*this.timeCellHeight,this.$emit("view-change",s)}},previous(){this.previousNext(!1)},next(){this.previousNext()},previousNext(e=!0){const t=this.utils.date;this.transitionDirection=e?"right":"left";const s=e?1:-1;let a=null;const{startDate:i,id:l}=this.view;switch(l){case"years":a=new Date(i.getFullYear()+25*s,0,1);break;case"year":a=new Date(i.getFullYear()+1*s,1,1);break;case"month":a=new Date(i.getFullYear(),i.getMonth()+1*s,1);break;case"week":a=t[e?"addDays":"subtractDays"](t.getPreviousFirstDayOfWeek(i,this.startWeekOnSunday),7);break;case"day":a=t[e?"addDays":"subtractDays"](i,1);const l=a.getDay(),n=this.startWeekOnSunday?l:(l||7)-1,o=this.weekDays[n].hide;if(o){const s=this.weekDays.map(((e,t)=>({...e,i:t})));let i=null,l=0;e?(i=[...s.slice(n),...s].find((e=>(l++,!e.hide))).i,l--):i=[...s,...s.slice(0,n)].reverse().find((e=>(l++,!e.hide))).i,a=t[e?"addDays":"subtractDays"](a,l)}break}a&&this.switchView(l,a)},addEventsToView(e=[]){const t=this.utils.event,{startDate:s,endDate:a,firstCellDate:i,lastCellDate:l}=this.view;if(e.length||(this.view.events=[]),e=e.length?e:[...this.mutableEvents],!e||this.isYearsOrYearView&&!this.eventsCountOnYearView)return;let n=e.filter((e=>t.eventInRange(e,s,a)));this.isYearsOrYearView||this.isMonthView&&!this.eventsOnMonthView||(n=n.map((e=>e.daysCount>1?t.createEventSegments(e,i||s,l||a):e))),this.view.events.push(...n),this.isMonthView&&(this.view.outOfScopeEvents=[],e.forEach((e=>{(t.eventInRange(e,i,s)||t.eventInRange(e,a,l))&&(this.view.events.some((t=>t._eid===e._eid))||this.view.outOfScopeEvents.push(e))})))},findAncestor(e,t){while((e=e.parentElement)&&!e.classList.contains(t));return e},isDOMElementAnEvent(e){return e.classList.contains("vuecal__event")||this.findAncestor(e,"vuecal__event")},onMouseMove(e){const{resizeAnEvent:t,dragAnEvent:s,dragCreateAnEvent:a}=this.domEvents;(null!==t._eid||null!==s._eid||a.start)&&(e.preventDefault(),t._eid?this.eventResizing(e):this.dragToCreateEvent&&a.start&&this.eventDragCreation(e))},onMouseUp(e){const{focusAnEvent:t,resizeAnEvent:s,clickHoldAnEvent:a,clickHoldACell:i,dragCreateAnEvent:l}=this.domEvents,{_eid:n}=a,{_eid:o}=s;let r=!1;const{event:d,start:u}=l,c=this.isDOMElementAnEvent(e.target),m=t.mousedUp;if(t.mousedUp=!1,c&&(this.domEvents.cancelClickEventCreation=!0),i.eventCreated)return;if(o){const{originalEnd:e,originalEndTimeMinutes:t,endTimeMinutes:a}=s,i=this.view.events.find((e=>e._eid===s._eid));if(r=a&&a!==t,i&&i.end.getTime()!==e.getTime()){const t=this.mutableEvents.find((e=>e._eid===s._eid));t.endTimeMinutes=i.endTimeMinutes,t.end=i.end;const a=this.cleanupEvent(i),l={...this.cleanupEvent(i),end:e,endTimeMinutes:i.originalEndTimeMinutes};this.$emit("event-duration-change",{event:a,oldDate:s.originalEnd,originalEvent:l}),this.$emit("event-change",{event:a,originalEvent:l})}i&&(i.resizing=!1),s._eid=null,s.start=null,s.split=null,s.segment=null,s.originalEndTimeMinutes=null,s.originalEnd=null,s.endTimeMinutes=null,s.startCell=null,s.endCell=null}else u&&(d&&(this.emitWithEvent("event-drag-create",d),l.event.resizing=!1),l.start=null,l.split=null,l.event=null);c||o||this.unfocusEvent(),a.timeoutId&&!n&&(clearTimeout(a.timeoutId),a.timeoutId=null),i.timeoutId&&(clearTimeout(i.timeoutId),i.timeoutId=null);const h="function"===typeof this.onEventClick;if(m&&!r&&!n&&!d&&h){let s=this.view.events.find((e=>e._eid===t._eid));return!s&&this.isMonthView&&(s=this.view.outOfScopeEvents.find((e=>e._eid===t._eid))),s&&this.onEventClick(s,e)}},onKeyUp(e){27===e.keyCode&&this.cancelDelete()},eventResizing(e){const{resizeAnEvent:t}=this.domEvents,s=this.view.events.find((e=>e._eid===t._eid))||{segments:{}},{minutes:a,cursorCoords:i}=this.minutesAtCursor(e),l=s.segments&&s.segments[t.segment],{date:n,event:o}=this.utils,r=Math.max(a,this.timeFrom+1,(l||s).startTimeMinutes+1);if(s.endTimeMinutes=t.endTimeMinutes=r,this.snapToTime){const e=s.endTimeMinutes+this.snapToTime/2;s.endTimeMinutes=e-e%this.snapToTime}if(l&&(l.endTimeMinutes=s.endTimeMinutes),s.end.setHours(0,s.endTimeMinutes,s.endTimeMinutes===Uo?-1:0,0),this.resizeX&&this.isWeekView){s.daysCount=n.countDays(s.start,s.end);const e=this.cellsEl,a=e.offsetWidth/e.childElementCount,l=Math.floor(i.x/a);if(null===t.startCell&&(t.startCell=l-(s.daysCount-1)),t.endCell!==l){t.endCell=l;const e=n.addDays(s.start,l-t.startCell),a=Math.max(n.countDays(s.start,e),1);if(a!==s.daysCount){let e=null;e=a>s.daysCount?o.addEventSegment(s):o.removeEventSegment(s),t.segment=e,s.endTimeMinutes+=.001}}}this.$emit("event-resizing",{_eid:s._eid,end:s.end,endTimeMinutes:s.endTimeMinutes})},eventDragCreation(e){const{dragCreateAnEvent:t}=this.domEvents,{start:s,startCursorY:a,split:i}=t,l=new Date(s),{minutes:n,cursorCoords:{y:o}}=this.minutesAtCursor(e);if(t.event||!(Math.abs(a-o)s._eid===(e._eid||t._eid)));e._eid=null,t._eid=null,s&&(s.focused=!1,s.deleting=!1)},cancelDelete(){const{clickHoldAnEvent:e}=this.domEvents;if(e._eid){const t=this.view.events.find((t=>t._eid===e._eid));t&&(t.deleting=!1),e._eid=null,e.timeoutId=null}},onEventTitleBlur(e,t){if(t.title===e.target.innerHTML)return;const s=t.title;t.title=e.target.innerHTML;const a=this.cleanupEvent(t);this.$emit("event-title-change",{event:a,oldTitle:s}),this.$emit("event-change",{event:a,originalEvent:{...a,title:s}})},updateMutableEvents(){const e=this.utils.date;this.mutableEvents=[],this.events.forEach((t=>{const s="string"===typeof t.start?e.stringToDate(t.start):t.start,a=e.formatDateLite(s),i=e.dateToMinutes(s);let l=null;"string"===typeof t.end&&t.end.includes("24:00")?(l=new Date(t.end.replace(" 24:00","")),l.setHours(23,59,59,0)):l="string"===typeof t.end?e.stringToDate(t.end):t.end;let n=e.formatDateLite(l),o=e.dateToMinutes(l);o&&o!==Uo||(!this.time||"string"===typeof t.end&&10===t.end.length?l.setHours(23,59,59,0):l.setSeconds(l.getSeconds()-1),n=e.formatDateLite(l),o=Uo);const r=a!==n;t=Object.assign({...this.utils.event.eventDefaults},t,{_eid:`${this._.uid}_${this.eventIdIncrement++}`,segments:r?{}:null,start:s,startTimeMinutes:i,end:l,endTimeMinutes:o,daysCount:r?e.countDays(s,l):1,class:t.class}),this.mutableEvents.push(t)}))},minutesAtCursor(e){return this.utils.cell.minutesAtCursor(e)},createEvent(e,t,s={}){return this.utils.event.createAnEvent(e,t,s)},cleanupEvent(e){e={...e};const t=["segments","deletable","deleting","titleEditable","resizable","resizing","draggable","dragging","draggingStatic","focused"];return t.forEach((t=>{t in e&&delete e[t]})),e.repeat||delete e.repeat,e},emitWithEvent(e,t){this.$emit(e,this.cleanupEvent(t))},updateSelectedDate(e){if(e=e&&"string"===typeof e?this.utils.date.stringToDate(e):new Date(e),e&&e instanceof Date){const{selectedDate:t}=this.view;t&&(this.transitionDirection=t.getTime()>e.getTime()?"left":"right"),e.setHours(0,0,0,0),t&&t.getTime()===e.getTime()||(this.view.selectedDate=e),this.switchView(this.view.id)}this.$emit("update:selected-date",this.view.selectedDate)},getWeekNumber(e){const t=this.utils.date,s=this.firstCellDateWeekNumber,a=s+e,i=this.startWeekOnSunday?1:0;return a>52?t.getWeek(t.addDays(this.view.firstCellDate,7*e+i)):a},timeTick(){this.now=new Date,this.timeTickerIds[1]=setTimeout(this.timeTick,6e4)},updateDateTexts(){this.utils.date.updateTexts(this.texts)},alignWithScrollbar(){},cellOrSplitHasEvents(e,t=null){return e.length&&(!t&&e.length||t&&e.some((e=>e.split===t.id)))}},created(){this.utils.cell=new Hn(this),this.utils.event=new Yn(this,this.utils.date),this.loadLocale(this.locale),this.editEvents.drag&&this.loadDragAndDrop(),this.updateMutableEvents(this.events),this.view.id=this.currentView,this.selectedDate?this.updateSelectedDate(this.selectedDate):(this.view.selectedDate=new Date,this.switchView(this.currentView)),this.time&&this.watchRealTime&&(this.timeTickerIds[0]=setTimeout(this.timeTick,1e3*(60-this.now.getSeconds())))},mounted(){const e=this.utils.date,t="ontouchstart"in window,{resize:s,drag:a,create:i,delete:l,title:n}=this.editEvents,o=this.onEventClick&&"function"===typeof this.onEventClick;(s||a||i||l||n||o)&&window.addEventListener(t?"touchend":"mouseup",this.onMouseUp),(s||a||i&&this.dragToCreateEvent)&&window.addEventListener(t?"touchmove":"mousemove",this.onMouseMove,{passive:!1}),n&&window.addEventListener("keyup",this.onKeyUp),t&&(this.$refs.vuecal.oncontextmenu=function(e){e.preventDefault(),e.stopPropagation()});const r=this.view.startDate,d={view:this.view.id,startDate:r,endDate:this.view.endDate,...this.isMonthView?{firstCellDate:this.view.firstCellDate,lastCellDate:this.view.lastCellDate}:{},events:this.view.events.map(this.cleanupEvent),...this.isWeekView?{week:e.getWeek(this.startWeekOnSunday?e.addDays(r,1):r)}:{}};this.$refs["vuecal_scroll"].addEventListener("scroll",(()=>{this.$refs["vuecal_splits_heading"].style.top=`${this.$refs["vuecal_scroll"].scrollTop}px`})),this.viewportTimelineOffset=this.$refs["vuecal_scroll"].getBoundingClientRect().top,this.$refs["vuecal_scroll"].scrollTop=this.scrollToHour*this.timeCellHeight,this.$emit("ready",d),this.ready=!0},beforeUnmount(){const e="ontouchstart"in window;window.removeEventListener(e?"touchmove":"mousemove",this.onMouseMove,{passive:!1}),window.removeEventListener(e?"touchend":"mouseup",this.onMouseUp),window.removeEventListener("keyup",this.onKeyUp),this.timeTickerIds[0]&&clearTimeout(this.timeTickerIds[0]),this.timeTickerIds[1]&&clearTimeout(this.timeTickerIds[1]),this.timeTickerIds=[null,null]},computed:{editEvents(){return this.editableEvents&&"object"===typeof this.editableEvents?{title:!!this.editableEvents.title,drag:!!this.editableEvents.drag,resize:!!this.editableEvents.resize,create:!!this.editableEvents.create,delete:!!this.editableEvents.delete}:{title:!!this.editableEvents,drag:!!this.editableEvents,resize:!!this.editableEvents,create:!!this.editableEvents,delete:!!this.editableEvents}},views(){return{years:{label:this.texts.years,enabled:!this.disableViews.includes("years")},year:{label:this.texts.year,enabled:!this.disableViews.includes("year")},month:{label:this.texts.month,enabled:!this.disableViews.includes("month")},week:{label:this.texts.week,enabled:!this.disableViews.includes("week")},day:{label:this.texts.day,enabled:!this.disableViews.includes("day")}}},currentView(){return this.validateView(this.activeView)},enabledViews(){return Object.keys(this.views).filter((e=>this.views[e].enabled))},hasTimeColumn(){return this.time&&this.isWeekOrDayView},isShortMonthView(){return this.isMonthView&&"short"===this.eventsOnMonthView},firstCellDateWeekNumber(){const e=this.utils.date,t=this.view.firstCellDate;return e.getWeek(this.startWeekOnSunday?e.addDays(t,1):t)},timeCells(){const e=[];for(let t=this.timeFrom,s=this.timeTo;t!e.hide))||[]).map(((e,t)=>({...e,id:e.id||t+1})))},hasSplits(){return this.daySplits.length&&this.isWeekOrDayView},hasShortEvents(){return"short"===this.showAllDayEvents},cellOrSplitMinWidth(){let e=null;return this.hasSplits&&this.minSplitWidth?e=this.visibleDaysCount*this.minSplitWidth*this.daySplits.length:this.minCellWidth&&this.isWeekView&&(e=this.visibleDaysCount*this.minCellWidth),e},allDayBar(){let e=this.allDayBarHeight||null;return e&&!isNaN(e)&&(e+="px"),{cells:this.viewCells,options:this.$props,label:this.texts.allDay,shortEvents:this.hasShortEvents,daySplits:this.hasSplits&&this.daySplits||[],cellOrSplitMinWidth:this.cellOrSplitMinWidth,height:e}},minTimestamp(){let e=null;return this.minDate&&"string"===typeof this.minDate?e=this.utils.date.stringToDate(this.minDate):this.minDate&&this.minDate instanceof Date&&(e=this.minDate),e?e.getTime():null},maxTimestamp(){let e=null;return this.maxDate&&"string"===typeof this.maxDate?e=this.utils.date.stringToDate(this.maxDate):this.maxDate&&this.minDate instanceof Date&&(e=this.maxDate),e?e.getTime():null},weekDays(){let{weekDays:e,weekDaysShort:t=[]}=this.texts;return e=e.slice(0).map(((e,s)=>({label:e,...t.length?{short:t[s]}:{},hide:this.hideWeekends&&s>=5||this.hideWeekdays.length&&this.hideWeekdays.includes(s+1)}))),this.startWeekOnSunday&&e.unshift(e.pop()),e},weekDaysInHeader(){return this.isMonthView||this.isWeekView&&!this.minCellWidth&&!(this.hasSplits&&this.minSplitWidth)},months(){return this.texts.months.map((e=>({label:e})))},specialDayHours(){return this.specialHours&&Object.keys(this.specialHours).length?Array(7).fill("").map(((e,t)=>{let s=this.specialHours[t+1]||[];return Array.isArray(s)||(s=[s]),e=[],s.forEach((({from:s,to:a,class:i,label:l},n)=>{e[n]={day:t+1,from:[null,void 0].includes(s)?null:1*s,to:[null,void 0].includes(a)?null:1*a,class:i||"",label:l||""}})),e})):{}},viewTitle(){const e=this.utils.date;let t="";const s=this.view.startDate,a=s.getFullYear(),i=s.getMonth();switch(this.view.id){case"years":t=this.texts.years;break;case"year":t=a;break;case"month":t=`${this.months[i].label} ${a}`;break;case"week":{const a=this.view.endDate,i=s.getFullYear();let l=this.texts.months[s.getMonth()];this.xsmall&&(l=l.substring(0,3));let n=`${l} ${i}`;if(a.getMonth()!==s.getMonth()){const e=a.getFullYear();let t=this.texts.months[a.getMonth()];this.xsmall&&(t=t.substring(0,3)),n=i===e?`${l} - ${t} ${i}`:this.small?`${l.substring(0,3)} ${i} - ${t.substring(0,3)} ${e}`:`${l} ${i} - ${t} ${e}`}t=`${this.texts.week} ${e.getWeek(this.startWeekOnSunday?e.addDays(s,1):s)} (${n})`;break}case"day":t=this.utils.date.formatDate(s,this.texts.dateFormat,this.texts);break}return t},viewCells(){const e=this.utils.date;let t=[],s=null,a=!1;this.watchRealTime||(this.now=new Date);const i=this.now;switch(this.view.id){case"years":s=this.view.startDate.getFullYear(),t=Array.apply(null,Array(25)).map(((t,a)=>{const l=new Date(s+a,0,1),n=new Date(s+a+1,0,1);return n.setSeconds(-1),{startDate:l,formattedDate:e.formatDateLite(l),endDate:n,content:s+a,current:s+a===i.getFullYear()}}));break;case"year":s=this.view.startDate.getFullYear(),t=Array.apply(null,Array(12)).map(((t,a)=>{const l=new Date(s,a,1),n=new Date(s,a+1,1);return n.setSeconds(-1),{startDate:l,formattedDate:e.formatDateLite(l),endDate:n,content:this.xsmall?this.months[a].label.substr(0,3):this.months[a].label,current:a===i.getMonth()&&s===i.getFullYear()}}));break;case"month":{const s=this.view.startDate.getMonth(),i=new Date(this.view.firstCellDate);a=!1,t=Array.apply(null,Array(42)).map(((t,l)=>{const n=e.addDays(i,l),o=new Date(n);o.setHours(23,59,59,0);const r=!a&&e.isToday(n)&&!a++;return{startDate:n,formattedDate:e.formatDateLite(n),endDate:o,content:n.getDate(),today:r,outOfScope:n.getMonth()!==s,class:`vuecal__cell--day${n.getDay()||7}`}})),(this.hideWeekends||this.hideWeekdays.length)&&(t=t.filter((e=>{const t=e.startDate.getDay()||7;return!(this.hideWeekends&&t>=6||this.hideWeekdays.length&&this.hideWeekdays.includes(t))})));break}case"week":{a=!1;let s=this.view.startDate;const i=this.weekDays;t=i.map(((t,i)=>{const l=e.addDays(s,this.startWeekOnSunday?i-1:i),n=new Date(l);n.setHours(23,59,59,0);const o=(l.getDay()||7)-1;return{startDate:l,formattedDate:e.formatDateLite(l),endDate:n,today:!a&&e.isToday(l)&&!a++,specialHours:this.specialDayHours[o]||[]}})).filter(((e,t)=>!i[t].hide));break}case"day":{const s=this.view.startDate,a=new Date(this.view.startDate);a.setHours(23,59,59,0);const i=(s.getDay()||7)-1;t=[{startDate:s,formattedDate:e.formatDateLite(s),endDate:a,today:e.isToday(s),specialHours:this.specialDayHours[i]||[]}];break}}return t},visibleDaysCount(){return this.isDayView?1:7-this.weekDays.reduce(((e,t)=>e+t.hide),0)},cellWidth(){return 100/this.visibleDaysCount},cssClasses(){const{resizeAnEvent:e,dragAnEvent:t,dragCreateAnEvent:s}=this.domEvents;return{[`vuecal--${this.view.id}-view`]:!0,[`vuecal--${this.locale}`]:this.locale,"vuecal--no-time":!this.time,"vuecal--view-with-time":this.hasTimeColumn,"vuecal--week-numbers":this.showWeekNumbers&&this.isMonthView,"vuecal--twelve-hour":this.twelveHour,"vuecal--click-to-navigate":this.clickToNavigate,"vuecal--hide-weekends":this.hideWeekends,"vuecal--split-days":this.hasSplits,"vuecal--sticky-split-labels":this.hasSplits&&this.stickySplitLabels,"vuecal--overflow-x":this.minCellWidth&&this.isWeekView||this.hasSplits&&this.minSplitWidth,"vuecal--small":this.small,"vuecal--xsmall":this.xsmall,"vuecal--resizing-event":e._eid,"vuecal--drag-creating-event":s.event,"vuecal--dragging-event":t._eid,"vuecal--events-on-month-view":this.eventsOnMonthView,"vuecal--short-events":this.isMonthView&&"short"===this.eventsOnMonthView,"vuecal--has-touch":"undefined"!==typeof window&&"ontouchstart"in window}},isYearsOrYearView(){return["years","year"].includes(this.view.id)},isYearsView(){return"years"===this.view.id},isYearView(){return"year"===this.view.id},isMonthView(){return"month"===this.view.id},isWeekOrDayView(){return["week","day"].includes(this.view.id)},isWeekView(){return"week"===this.view.id},isDayView(){return"day"===this.view.id}},watch:{events:{handler(e,t){this.updateMutableEvents(e),this.addEventsToView()},deep:!0},locale(e){this.loadLocale(e)},selectedDate(e){this.updateSelectedDate(e)},activeView(e){this.switchView(e)}}};const Po=(0,M.Z)(Io,[["render",xn]]);var Lo=Po,No={install:e=>{e.component("Vue-cal",Lo)}};s(48851),s(1292),s(81633),s(51045),s(46187),s(22299),s(93423),s(54687),s(49147),s(6250);l();const Yo={axios:{disabled:!0},i18n:{languages:[{title:"Slovenský",flag:"sk",value:"sk"}],defaultLanguage:"sk"},moxios:{routes:{"GET v1/overview/teams":!0,"GET v1/overview/tasks":!0}}},qo=(0,a.ri)(ll).use(ul).use(ol).use(Xl).use(Rl,Yo).use(i.oX).use(o).use(No).use(en).use(d(),{color:"#6200EE"}).mount("#app"),Bo=qo.$i18n.t},7648:function(e,t,s){"use strict";var a=s(13954);t["Z"]={parseErrors(e){return Object.values(e).map((e=>(0,a.$t)(e?.$message))).join(". ")}}},83299:function(e,t){"use strict";t["Z"]={methods:{customFilter(e,t){const s=e.normalize("NFD").replace(/[\u0300-\u036f]/g,""),a=t.normalize("NFD").replace(/[\u0300-\u036f]/g,""),i=/[^a-zA-Z0-9 ]/g,l=s.replace(i,""),n=a.replace(i,"");return l.toLowerCase().includes(n.toLowerCase())||""===e}}}},34407:function(e,t,s){"use strict";var a=s(36797),i=s.n(a);t["Z"]={enrichEmployees(e){return e.map((e=>({...e,_fullName:`${e.name} ${e.surname}`,_initials:e.name.charAt(0)+e.surname.charAt(0)})))},formatDateTime(e){return i()(e),i()(e).format("DD.MM.yyyy, HH:mm")},formatDateTimeForBackend(e){return i()(e).format("YYYY-MM-DD HH:mm:ss")},formatDate(e){return i()(e).format("DD.MM.yyyy")},isBefore(e,t=null){return i()(e).isBefore(i()(t))},isAfter(e,t=i()()){return i()(e).isAfter(i()(t))}}},8973:function(e,t,s){var a={"./en.json":20790,"./sk.json":71941};function i(e){var t=l(e);return s(t)}function l(e){if(!s.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}i.keys=function(){return Object.keys(a)},i.resolve=l,e.exports=i,i.id=8973},66667:function(e,t,s){var a={"./ar.json":[68568,8568],"./bg.json":[20684,684],"./bn.json":[61170,1170],"./bs.json":[41161,1161],"./ca.json":[40612,612],"./cs.json":[50213,213],"./da.json":[98542,8542],"./de.json":[4701,4701],"./el.json":[20453,453],"./en.json":[3320,3320],"./es.json":[60076,76],"./et.json":[44075,4075],"./fa.json":[69004,9004],"./fr.json":[60007,7],"./he.json":[23746,3746],"./hr.json":[92921,2921],"./hu.json":[75723,5723],"./id.json":[12502,2502],"./is.json":[13214,3214],"./it.json":[51380,1380],"./ja.json":[72484,2484],"./ka.json":[60285,285],"./ko.json":[79249,9249],"./lt.json":[42838,2838],"./mn.json":[6177,6177],"./nl.json":[99729,9729],"./no.json":[49409,9409],"./pl.json":[25409,5409],"./pt-br.json":[74529,4529],"./ro.json":[29715,9715],"./ru.json":[32113,2113],"./sk.json":[30229,229],"./sl.json":[28636,8636],"./sq.json":[204,204],"./sr.json":[55553,5553],"./sv.json":[75979,5979],"./tr.json":[5268,5268],"./uk.json":[14057,4057],"./vi.json":[88929,8929],"./zh-cn.json":[56730,6730],"./zh-hk.json":[30841,841]};function i(e){if(!s.o(a,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=a[e],i=t[0];return s.e(t[1]).then((function(){return s.t(i,19)}))}i.keys=function(){return Object.keys(a)},i.id=66667,e.exports=i},27484:function(e,t,s){"use strict";e.exports=s.p+"img/bin.8778f5be.svg"},53830:function(e,t,s){"use strict";e.exports=s.p+"img/checkmark.76754510.svg"},34413:function(e,t,s){"use strict";e.exports=s.p+"img/eye.6d5fa7d3.svg"},60666:function(e,t,s){"use strict";e.exports=s.p+"img/pencil.b9009162.svg"},14214:function(e,t,s){"use strict";e.exports=s.p+"img/spinner.34fd3cb2.gif"},20790:function(e){"use strict";e.exports=JSON.parse('{"Value is not a valid email address":"Value is not a valid email address","error":"chyba","Value is required":"Pole je povinné","This field should be at least 8 characters long":"Pole musí obsahovať aspoň 8 znakov","This field should be at least 6 characters long":"Pole musí obsahovať aspoň 6 znakov","This maximum length allowed is 6":"Pole musí obsahovať 6 znakov","The value must be equal to the other value":"Heslá sa nezhodujú"}')},71941:function(e){"use strict";e.exports=JSON.parse('{"Value is not a valid email address":"Zadali ste neplatný email","error":"chyba","Value is required":"Pole je povinné","This field should be at least 8 characters long":"Pole musí obsahovať aspoň 8 znakov","This field should be at least 6 characters long":"Pole musí obsahovať aspoň 6 znakov","This maximum length allowed is 6":"Pole musí obsahovať 6 znakov","The value must be equal to the other value":"Heslá sa nezhodujú"}')}},t={};function s(a){var i=t[a];if(void 0!==i)return i.exports;var l=t[a]={id:a,loaded:!1,exports:{}};return e[a].call(l.exports,l,l.exports,s),l.loaded=!0,l.exports}s.m=e,function(){var e=[];s.O=function(t,a,i,l){if(!a){var n=1/0;for(u=0;u=l)&&Object.keys(s.O).every((function(e){return s.O[e](a[r])}))?a.splice(r--,1):(o=!1,l0&&e[u-1][2]>l;u--)e[u]=e[u-1];e[u]=[a,i,l]}}(),function(){s.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return s.d(t,{a:t}),t}}(),function(){var e,t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__};s.t=function(a,i){if(1&i&&(a=this(a)),8&i)return a;if("object"===typeof a&&a){if(4&i&&a.__esModule)return a;if(16&i&&"function"===typeof a.then)return a}var l=Object.create(null);s.r(l);var n={};e=e||[null,t({}),t([]),t(t)];for(var o=2&i&&a;"object"==typeof o&&!~e.indexOf(o);o=t(o))Object.getOwnPropertyNames(o).forEach((function(e){n[e]=function(){return a[e]}}));return n["default"]=function(){return a},s.d(l,n),l}}(),function(){s.d=function(e,t){for(var a in t)s.o(t,a)&&!s.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})}}(),function(){s.f={},s.e=function(e){return Promise.all(Object.keys(s.f).reduce((function(t,a){return s.f[a](e,t),t}),[]))}}(),function(){s.u=function(e){return"js/"+e+"."+{7:"7cef58a7",76:"9977e9df",188:"5e35d228",204:"4dd3d03d",213:"c9ed5252",229:"b09f2145",285:"6a0985b5",453:"04d72c77",612:"4ea201aa",684:"017ebeb8",702:"a81b006f",723:"5e5ebdc3",841:"65cae984",1161:"59a7c68b",1170:"16217940",1380:"fc40de11",1466:"92176aab",1474:"298559eb",2113:"2a1bcdfa",2484:"6def3002",2502:"66addef9",2682:"450e8cc1",2838:"aa69ee5c",2891:"34d8f387",2921:"b5aad8e9",3214:"72d306e7",3311:"bcab8a66",3320:"fe7033d0",3657:"e558064c",3728:"3e558208",3746:"09ee0424",4057:"4b3b38fd",4060:"57ab5ec4",4075:"2d83f71e",4481:"578b8c0f",4529:"6ff3334b",4701:"e34c277a",5268:"5d463fbd",5409:"4ce439c3",5553:"032fcbe7",5723:"09853a5d",5728:"07cf4ea4",5867:"61e23b49",5979:"385e1b41",6177:"12db94aa",6730:"61289e01",7073:"dc374d33",7133:"bb841a39",7283:"9b796e25",7343:"1e290ed5",7458:"f602cf50",8024:"bb377405",8520:"cb7009ea",8542:"09badcc3",8568:"7f0dfd32",8636:"2a90cf11",8731:"8acb20fc",8929:"ea6da50f",8990:"6dd37151",9004:"ffe04245",9249:"d2b0f88c",9409:"339f5afb",9715:"21ca1afa",9729:"812aea5b",9983:"657ab52d"}[e]+".js"}}(),function(){s.miniCssF=function(e){return"css/"+e+"."+{188:"37c2c58b",723:"da6281d7",1474:"bc127aa4",2682:"c32340b5",2891:"e49646e6",4060:"75a1fa96",4481:"8c582369",7073:"3978ef96",7283:"d6ab05a0",7458:"49728a72",9983:"8667b7b1"}[e]+".css"}}(),function(){s.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){var e={},t="jandl:";s.l=function(a,i,l,n){if(e[a])e[a].push(i);else{var o,r;if(void 0!==l)for(var d=document.getElementsByTagName("script"),u=0;u\n\t\n\t\t\n\t\t\t\n\t\t\n\t\n\n\t\n\t\n\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\n\t\n\t\n\t\n\n\n","\n\n","export default {\n\tmounted() {\n\t\twindow.addEventListener('keydown', this.handleKeyDown)\n\t},\n\n\tmethods: {\n\t\thandleKeyDown(event) {\n\t\t\t// if (event.keyCode === 27) this.closeModal()\n\t\t\tif (event.keyCode === 27) this.visible = false\n\t\t}\n\t},\n}","import { render } from \"./z-delete-team-modal.vue?vue&type=template&id=4fe4585a\"\nimport script from \"./z-delete-team-modal.vue?vue&type=script&lang=js\"\nexport * from \"./z-delete-team-modal.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n","import { render } from \"./z-team-modal.vue?vue&type=template&id=53686613\"\nimport script from \"./z-team-modal.vue?vue&type=script&lang=js\"\nexport * from \"./z-team-modal.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n","import { render } from \"./z-delete-task-modal.vue?vue&type=template&id=496f83ea\"\nimport script from \"./z-delete-task-modal.vue?vue&type=script&lang=js\"\nexport * from \"./z-delete-task-modal.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n","import { render } from \"./z-files-upload.vue?vue&type=template&id=29172155&scoped=true\"\nimport script from \"./z-files-upload.vue?vue&type=script&lang=js\"\nexport * from \"./z-files-upload.vue?vue&type=script&lang=js\"\n\nimport \"./z-files-upload.vue?vue&type=style&index=0&id=29172155&lang=sass&scoped=true\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-29172155\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./a-task-timeblocks.vue?vue&type=template&id=65d1d32e\"\nimport script from \"./a-task-timeblocks.vue?vue&type=script&lang=js\"\nexport * from \"./a-task-timeblocks.vue?vue&type=script&lang=js\"\n\nimport \"./a-task-timeblocks.vue?vue&type=style&index=0&id=65d1d32e&lang=sass\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","export default {\n\t// Mixin to fix autofocus on v-input in modals where date selects are used\n\tdata() {\n\t\treturn {\n\t\t\tpreventInputFocus: false\n\t\t}\n\t},\n\n\tmethods: {\n\t\tonDateFocus($event) {\n\t\t\tif ($event == undefined) {\n\t\t\t\tthis.preventInputFocus = true\n\t\t\t}\n\t\t},\n\n\t\tonInputFocus($event) {\n\t\t\tif (this.preventInputFocus) {\n\t\t\t\t$event.target.blur()\n\t\t\t\tthis.preventInputFocus = false\n\t\t\t}\n\t\t}\n\t}\n}","export default {\n\tcomputed: {\n\t\temployeesOptions() {\n\t\t\tconst selectedEmployees = [...this.mastertask.employees].map(employee => employee.id)\n\n\t\t\treturn this.enrichedEmployees.filter(\n\t\t\t\t(employee) => !selectedEmployees.includes(employee.id)\n\t\t\t) || []\n\t\t},\n\n\t\tprojectsOptions() {\n\t\t\t// Added to \"paginate\" projects, because v-autocomplete was unable to handle so many projects at once\n\n\t\t\tconst pattern = /[^a-zA-Z0-9 ]/g\n\n\t\t\tconst normalizedInput = this.projectCodeSearch\n\t\t\t\t? this.projectCodeSearch.normalize('NFD').replace(/[\\u0300-\\u036f]/g, '').replace(pattern, '')\n\t\t\t\t: ''\n\n\t\t\tconst projects = this.projects.filter(project => {\n\t\t\t\tconst normalizedProjectCode = project.code.normalize('NFD').replace(/[\\u0300-\\u036f]/g, '').replace(pattern, '')\n\t\t\t\treturn normalizedProjectCode.toLowerCase().includes(normalizedInput.toLowerCase())\n\t\t\t})\n\n\t\t\tlet filteredProjects \t= projects?.length ? projects.slice(0, 10) : this.projects.slice(0, 10)\n\n\t\t\tif (!this.mastertask?.project_id)\n\t\t\t\treturn filteredProjects\n\n\t\t\tconst selectedProject \t= this.projects.find(project => project.id == this.mastertask?.project_id)\n\t\t\tfilteredProjects \t\t= filteredProjects.filter(project => project.id != selectedProject.id)\n\n\t\t\treturn [...filteredProjects, selectedProject]\n\t\t}\n\t},\n\n\tmethods: {\n\t\t// onProjectSelected(id) {\n\t\t// \tconst project = this.projects.find(project => project.id == id)\n\t\t// \tthis.mastertask.project_code = project.code\n\t\t// \tthis.mastertask.project_id \t = project.id\n\t\t// },\n\n\t\tonEmployeeSelected(id) {\n\t\t\tconst employee = this.enrichedEmployees.find(employee => employee.id == id)\n\t\t\tconsole.log('add employee', employee)\n\t\t\tthis.mastertask.employees.push(employee)\n\t\t\tthis.showAddEmployeeInput = false\n\t\t},\n\n\t\tonEmployeeDurationChanged() {\n\t\t\tlet totalDuration = 0\n\n\t\t\tthis.mastertask.employees = this.mastertask.employees.map(employee => {\n\t\t\t\tif (typeof employee.duration == 'string') {\n\t\t\t\t\ttotalDuration += parseFloat(employee.duration)\n\t\t\t\t\temployee.duration = parseFloat(employee.duration)\n\t\t\t\t\temployee.invalid = false\n\t\t\t\t}\n\t\t\t\telse if (typeof employee.duration == 'number') {\n\t\t\t\t\ttotalDuration += employee.duration\n\t\t\t\t\temployee.invalid = false\n\t\t\t\t}\n\n\t\t\t\treturn employee\n\t\t\t})\n\n\t\t\tthis.mastertask.duration = totalDuration\n\t\t}\n\t},\n\n\twatch: {\n\t\t'mastertask.team_id'(value) {\n\t\t\tif (!value) return\n\t\t\t\n\t\t\tconst team = this.teams.find(team => team.id == value)\n\t\t\tif (!team) return\n\n\t\t\tthis.mastertask.team \t\t= JSON.parse(JSON.stringify(team))\n\t\t\tthis.mastertask.employees = [...this.mastertask.team.employees]\n\t\t},\n\t}\n}","\n\n\n","\n\n\n","import { render } from \"./a-mastertask-name.vue?vue&type=template&id=154bd9ae\"\nimport script from \"./a-mastertask-name.vue?vue&type=script&lang=js\"\nexport * from \"./a-mastertask-name.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n","import { render } from \"./a-mastertask-status.vue?vue&type=template&id=40b1e729\"\nimport script from \"./a-mastertask-status.vue?vue&type=script&lang=js\"\nexport * from \"./a-mastertask-status.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n","import { render } from \"./z-created-by.vue?vue&type=template&id=76476816\"\nimport script from \"./z-created-by.vue?vue&type=script&lang=js\"\nexport * from \"./z-created-by.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n","import { render } from \"./a-task-assigned-employee.vue?vue&type=template&id=e04c27ce\"\nimport script from \"./a-task-assigned-employee.vue?vue&type=script&lang=js\"\nexport * from \"./a-task-assigned-employee.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n","import { render } from \"./a-task-planned-time.vue?vue&type=template&id=5c6a17d5\"\nimport script from \"./a-task-planned-time.vue?vue&type=script&lang=js\"\nexport * from \"./a-task-planned-time.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n","import { render } from \"./a-task-spent-time.vue?vue&type=template&id=c9f868dc&scoped=true\"\nimport script from \"./a-task-spent-time.vue?vue&type=script&lang=js\"\nexport * from \"./a-task-spent-time.vue?vue&type=script&lang=js\"\n\nimport \"./a-task-spent-time.vue?vue&type=style&index=0&id=c9f868dc&lang=sass&scoped=true\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-c9f868dc\"]])\n\nexport default __exports__","\n\n\n","import { render } from \"./a-task-remaining-time.vue?vue&type=template&id=76900acb\"\nimport script from \"./a-task-remaining-time.vue?vue&type=script&lang=js\"\nexport * from \"./a-task-remaining-time.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n","import { render } from \"./a-task-deadline.vue?vue&type=template&id=6b83a162\"\nimport script from \"./a-task-deadline.vue?vue&type=script&lang=js\"\nexport * from \"./a-task-deadline.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n","import { render } from \"./a-task-description.vue?vue&type=template&id=cad95ece\"\nimport script from \"./a-task-description.vue?vue&type=script&lang=js\"\nexport * from \"./a-task-description.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n","import { render } from \"./z-files.vue?vue&type=template&id=439e5395&scoped=true\"\nimport script from \"./z-files.vue?vue&type=script&lang=js\"\nexport * from \"./z-files.vue?vue&type=script&lang=js\"\n\nimport \"./z-files.vue?vue&type=style&index=0&id=439e5395&lang=sass&scoped=true\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-439e5395\"]])\n\nexport default __exports__","import { render } from \"./z-task-readonly-info.vue?vue&type=template&id=fdfa3c04\"\nimport script from \"./z-task-readonly-info.vue?vue&type=script&lang=js\"\nexport * from \"./z-task-readonly-info.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./z-task-modal.vue?vue&type=template&id=2b134ca3&scoped=true\"\nimport script from \"./z-task-modal.vue?vue&type=script&lang=js\"\nexport * from \"./z-task-modal.vue?vue&type=script&lang=js\"\n\nimport \"./z-task-modal.vue?vue&type=style&index=0&id=2b134ca3&lang=sass&scoped=true\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-2b134ca3\"]])\n\nexport default __exports__","\n\n","import { render } from \"./z-delete-blocker-modal.vue?vue&type=template&id=27f48656\"\nimport script from \"./z-delete-blocker-modal.vue?vue&type=script&lang=js\"\nexport * from \"./z-delete-blocker-modal.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n","import { render } from \"./z-complete-task-modal.vue?vue&type=template&id=19989ea2\"\nimport script from \"./z-complete-task-modal.vue?vue&type=script&lang=js\"\nexport * from \"./z-complete-task-modal.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n","import { render } from \"./z-complete-master-task-modal.vue?vue&type=template&id=175a8046\"\nimport script from \"./z-complete-master-task-modal.vue?vue&type=script&lang=js\"\nexport * from \"./z-complete-master-task-modal.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n","import { render } from \"./z-task-add-time-modal.vue?vue&type=template&id=30faf5cc\"\nimport script from \"./z-task-add-time-modal.vue?vue&type=script&lang=js\"\nexport * from \"./z-task-add-time-modal.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n","import { render } from \"./z-blocker-modal.vue?vue&type=template&id=5d9e1492\"\nimport script from \"./z-blocker-modal.vue?vue&type=script&lang=js\"\nexport * from \"./z-blocker-modal.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n","import { render } from \"./z-delete-master-task-modal.vue?vue&type=template&id=3925d426\"\nimport script from \"./z-delete-master-task-modal.vue?vue&type=script&lang=js\"\nexport * from \"./z-delete-master-task-modal.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n","import { render } from \"./a-tasks-table.vue?vue&type=template&id=6a5e57ec&scoped=true\"\nimport script from \"./a-tasks-table.vue?vue&type=script&lang=js\"\nexport * from \"./a-tasks-table.vue?vue&type=script&lang=js\"\n\nimport \"./a-tasks-table.vue?vue&type=style&index=0&id=6a5e57ec&lang=sass&scoped=true\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-6a5e57ec\"]])\n\nexport default __exports__","\n\n","\n\n","import { render } from \"./z-deadline.vue?vue&type=template&id=13a73f8f\"\nimport script from \"./z-deadline.vue?vue&type=script&lang=js\"\nexport * from \"./z-deadline.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n","import { render } from \"./z-description.vue?vue&type=template&id=531a9e6f\"\nimport script from \"./z-description.vue?vue&type=script&lang=js\"\nexport * from \"./z-description.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n","import { render } from \"./z-planned-time.vue?vue&type=template&id=0c44c1d0\"\nimport script from \"./z-planned-time.vue?vue&type=script&lang=js\"\nexport * from \"./z-planned-time.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n","import { render } from \"./z-remaining-time.vue?vue&type=template&id=759929d5\"\nimport script from \"./z-remaining-time.vue?vue&type=script&lang=js\"\nexport * from \"./z-remaining-time.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n","import { render } from \"./z-spent-time.vue?vue&type=template&id=cc4966e2\"\nimport script from \"./z-spent-time.vue?vue&type=script&lang=js\"\nexport * from \"./z-spent-time.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n","import { render } from \"./z-status.vue?vue&type=template&id=5a460912\"\nimport script from \"./z-status.vue?vue&type=script&lang=js\"\nexport * from \"./z-status.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n","import { render } from \"./z-team.vue?vue&type=template&id=3dfe3a63\"\nimport script from \"./z-team.vue?vue&type=script&lang=js\"\nexport * from \"./z-team.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./a-mastertask-description.vue?vue&type=template&id=65a97638\"\nimport script from \"./a-mastertask-description.vue?vue&type=script&lang=js\"\nexport * from \"./a-mastertask-description.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./z-master-task-modal.vue?vue&type=template&id=c16440a4&scoped=true\"\nimport script from \"./z-master-task-modal.vue?vue&type=script&lang=js\"\nexport * from \"./z-master-task-modal.vue?vue&type=script&lang=js\"\n\nimport \"./z-master-task-modal.vue?vue&type=style&index=0&id=c16440a4&lang=sass&scoped=true\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-c16440a4\"]])\n\nexport default __exports__","\r\n\r\n","import { render } from \"./z-delete-team-member-modal.vue?vue&type=template&id=7c74c097\"\nimport script from \"./z-delete-team-member-modal.vue?vue&type=script&lang=js\"\nexport * from \"./z-delete-team-member-modal.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n","import { render } from \"./z-show-menu-modal.vue?vue&type=template&id=27e5181d\"\nimport script from \"./z-show-menu-modal.vue?vue&type=script&lang=js\"\nexport * from \"./z-show-menu-modal.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./App.vue?vue&type=template&id=27eb5b0c\"\nimport script from \"./App.vue?vue&type=script&lang=js\"\nexport * from \"./App.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { createStore } from \"vuex\";\n\nexport default createStore({\n state: {},\n getters: {},\n mutations: {},\n actions: {},\n modules: {},\n});","import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router'\nimport store from '@/store'\n\nconst routes: Array = [\n\t{\n\t\tpath: '',\n\t\tredirect: '/auth'\n\t},\n\t{\n\t\tpath: '/auth/',\n\t\tcomponent: () => import('@/plugins/app/_layout/auth/auth.layout.vue'),\n\t\tchildren: [\n\t\t\t{\n\t\t\t\tpath: '',\n\t\t\t\tredirect: '/auth/login'\n\t\t\t},\n\t\t\t{\n\t\t\t\tpath: '/auth/login',\n\t\t\t\tname: 'Login',\n\t\t\t\tcomponent: () => import('@/plugins/lib@auth/login/login.vue'),\n\t\t\t\tmeta: {requiresAuth: false}\n\t\t\t},\n\t\t\t{\n\t\t\t\tpath: '/auth/forgot-password',\n\t\t\t\tname: 'Forgot password',\n\t\t\t\tcomponent: () => import('@/plugins/lib@auth/forgot-password/forgot-password.vue'),\n\t\t\t\tmeta: {requiresAuth: false}\n\t\t\t},\n\t\t\t{\n\t\t\t\tpath: '/auth/forgot-success',\n\t\t\t\tname: 'Forgot success',\n\t\t\t\tcomponent: () => import('@/plugins/lib@auth/forgot-success/forgot-success.vue'),\n\t\t\t\tmeta: {requiresAuth: false}\n\t\t\t},\n\t\t\t{\n\t\t\t\tpath: '/auth/reset-password',\n\t\t\t\tname: 'Reset password',\n\t\t\t\tcomponent: () => import('@/plugins/lib@auth/reset-password/reset-password.vue'),\n\t\t\t\tmeta: {requiresAuth: null}\n\t\t\t}\n\t\t]\n\t},\n\t{\n\t\tpath: '/app',\n\t\tcomponent: () => import('@/plugins/app/_layout/app/app.layout.vue'),\n\t\tchildren: [\n\t\t\t{\n\t\t\t\tpath: '',\n\t\t\t\tredirect: '/app/dashboard'\n\t\t\t},\n\t\t\t{\n\t\t\t\tpath: '/app/dashboard',\n\t\t\t\tredirect: '/app/dashboard/tasks',\n\t\t\t\tchildren: [\n\t\t\t\t\t{\n\t\t\t\t\t\tpath: '/app/dashboard/tasks',\n\t\t\t\t\t\tname: 'Dashboard - Tasks',\n\t\t\t\t\t\tmeta: { title: 'Sub Tasks', requiresAuth: true },\n\t\t\t\t\t\tcomponent: () => import('@/plugins/tm@dashboard/tasks/tasks.vue')\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tpath: '/app/dashboard/teams',\n\t\t\t\t\t\tname: 'Dashboard - Teams',\n\t\t\t\t\t\tmeta: { title: 'Teams Overview', requiresAuth: true },\n\t\t\t\t\t\tcomponent: () => import('@/plugins/tm@dashboard/teams/teams.vue')\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tpath: '/app/dashboard/projects',\n\t\t\t\t\t\tname: 'Dashboard - Projects',\n\t\t\t\t\t\tmeta: { title: 'Projects overview', requiresAuth: true },\n\t\t\t\t\t\tcomponent: () => import('@/plugins/tm@dashboard/projects/projects.vue')\n\t\t\t\t\t},\n\n\t\t\t\t\t{\n\t\t\t\t\t\tpath: '/app/overview/unscheduled',\n\t\t\t\t\t\tname: 'Overview - Unscheduled tasks',\n\t\t\t\t\t\tmeta: { title: 'Unscheduled Sub Tasks', requiresAuth: true },\n\t\t\t\t\t\tcomponent: () => import('@/plugins/tm@overview/tasks-unscheduled/tasks-unscheduled.vue')\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tpath: '/app/overview/ongoing',\n\t\t\t\t\t\tname: 'Overview - Ongoing tasks',\n\t\t\t\t\t\tmeta: { title: 'Ongoing Sub Tasks', requiresAuth: true },\n\t\t\t\t\t\tcomponent: () => import('@/plugins/tm@overview/tasks-ongoing/tasks-ongoing.vue')\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tpath: '/app/overview/teams',\n\t\t\t\t\t\tname: 'Overview - Teams',\n\t\t\t\t\t\tmeta: { title: 'Teams', requiresAuth: true },\n\t\t\t\t\t\tcomponent: () => import('@/plugins/tm@overview/teams/teams.vue')\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tpath: '/app/dashboard/user',\n\t\t\t\t\t\tname: 'Dashboard - User',\n\t\t\t\t\t\tmeta: { title: 'Profile', requiresAuth: true },\n\t\t\t\t\t\tcomponent: () => import('@/plugins/tm@profile/profile/my-profile.vue')\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tpath: '/app/search',\n\t\t\t\t\t\tname: 'Search',\n\t\t\t\t\t\tmeta: { title: 'Search Results', requiresAuth: true },\n\t\t\t\t\t\tcomponent: () => import('@/plugins/lib@search/search/search.vue')\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t}\n\t\t]\n\t},\n\t{\n\t\tpath: '/:catchAll(.*)',\n\t\tname: '404',\n\t\tcomponent: () => import('@/plugins/w@screen/404/404.vue'),\n\t\tmeta: {requiresAuth: null}\n\t}\n]\n\nconst router = createRouter({\n\thistory: createWebHashHistory(process.env.BASE_URL),\n\troutes\n})\n\nrouter.beforeEach((to, from, next) => {\n\tconst isLoggedIn = store.getters['auth/isLoggedIn']\n\n\tif (to.meta.requiresAuth === true) {\n\t\tif (isLoggedIn)\n\t\t\treturn next()\n\t\telse\n\t\t\treturn next({name: 'Login'})\n\t} else if (to.meta.requiresAuth === false) {\n\t\tif (!isLoggedIn)\n\t\t\treturn next()\n\t\telse\n\t\t\treturn next({name: 'Dashboard - Tasks'})\n\t} else {\n\t\treturn next()\n\t}\n})\n\nexport default router\n","import axios from 'axios'\nimport store from '@/store'\n\naxios.defaults.baseURL = process.env.VUE_APP_WAXIOS_URL\n\nexport default {\n\tasync get(url: string, config?: any) {\n\t\treturn axios.get(url, config)\n\t\t\t.then(response => response.data)\n\t\t\t.catch(error => Promise.reject(error))\n\t},\n\n\tasync get_auth(url: string, config?: any) {\n\t\tconfig = this._config(config)\n\n\t\treturn axios.get(url, config)\n\t\t\t.then(response => response.data)\n\t\t\t.catch(error => Promise.reject(error))\n\t},\n\n\tasync get_data(url: string, config?: any) {\n\t\treturn axios.get(url, config)\n\t\t\t.then(response => response.data.data)\n\t\t\t.catch(error => Promise.reject(error.response || error))\n\t},\n\n\tasync get_auth_data(url: string, config?: any) {\n\t\tconfig = this._config(config)\n\n\t\treturn axios.get(url, config)\n\t\t\t.then(response => Promise.resolve(response.data.data))\n\t\t\t.catch(error => Promise.reject(error.response || error))\n\t},\n\n\tasync post(url: string, params = null, config?: any) {\n\n\t\treturn axios.post(url, params, config)\n\t\t\t.then(response => response.data)\n\t\t\t.catch(error => Promise.reject(error))\n\t},\n\n\tasync post_auth(url: string, params = null, config?: any) {\n\t\tconfig = this._config(config)\n\n\t\treturn axios.post(url, params, config)\n\t\t\t.then(response => response.data)\n\t\t\t.catch(error => Promise.reject(error))\n\t},\n\n\tasync post_data(url: string, params = null, config?: any) {\n\n\t\treturn axios.post(url, params, config)\n\t\t\t.then(response => response.data.data)\n\t\t\t.catch(error => Promise.reject(error.response || error))\n\t},\n\n\tasync post_auth_data(url: string, params = null, config?: any) {\n\t\tconfig = this._config(config)\n\n\t\treturn axios.post(url, params, config)\n\t\t\t.then(response => response.data.data)\n\t\t\t.catch(error => Promise.reject(error.response || error))\n\t},\n\n\tasync delete(url: string, config?: any) {\n\t\treturn axios.delete(url, config)\n\t\t\t.then(response => response.data)\n\t\t\t.catch(error => Promise.reject(error))\n\t},\n\n\tasync delete_auth(url: string, config?: any) {\n\t\tconfig = this._config(config)\n\n\t\treturn axios.delete(url, config)\n\t\t\t.then(response => response.data)\n\t\t\t.catch(error => Promise.reject(error))\n\t},\n\n\tasync delete_data(url: string, config?: any) {\n\t\treturn axios.delete(url, config)\n\t\t\t.then(response => response.data.data)\n\t\t\t.catch(error => Promise.reject(error.response || error))\n\t},\n\n\tasync delete_auth_data(url: string, config?: any) {\n\t\tconfig = this._config(config)\n\n\t\treturn axios.delete(url, config)\n\t\t\t.then(response => response.data.data)\n\t\t\t.catch(error => Promise.reject(error.response || error))\n\t},\n\n\tasync patch(url: string, params = null, config?: any) {\n\t\treturn axios.patch(url, params, config)\n\t\t\t.then(response => response.data)\n\t\t\t.catch(error => Promise.reject(error))\n\t},\n\n\tasync patch_auth(url: string, params = null, config?: any) {\n\t\tconfig = this._config(config)\n\n\t\treturn axios.patch(url, params, config)\n\t\t\t.then(response => response.data)\n\t\t\t.catch(error => Promise.reject(error))\n\t},\n\n\tasync patch_data(url: string, params = null, config?: any) {\n\t\treturn axios.patch(url, params, config)\n\t\t\t.then(response => response.data.data)\n\t\t\t.catch(error => Promise.reject(error.response || error))\n\t},\n\n\tasync patch_auth_data(url: string, params = null, config?: any) {\n\t\tconfig = this._config(config)\n\n\t\treturn axios.patch(url, params, config)\n\t\t\t.then(response => response.data.data)\n\t\t\t.catch(error => Promise.reject(error.response || error))\n\t},\n\n\tasync put(url: string, params = null, config?: any) {\n\t\treturn axios.put(url, params, config)\n\t\t\t.then(response => response.data)\n\t\t\t.catch(error => Promise.reject(error))\n\t},\n\n\tasync put_auth(url: string, params = null, config?: any) {\n\t\tconfig = this._config(config)\n\n\t\treturn axios.put(url, params, config)\n\t\t\t.then(response => response.data)\n\t\t\t.catch(error => Promise.reject(error))\n\t},\n\n\tasync put_data(url: string, params = null, config?: any) {\n\t\treturn axios.put(url, params, config)\n\t\t\t.then(response => response.data.data)\n\t\t\t.catch(error => Promise.reject(error.response || error))\n\t},\n\n\tasync put_auth_data(url: string, params = null, config?: any) {\n\t\tconfig = this._config(config)\n\n\t\treturn axios.put(url, params, config)\n\t\t\t.then(response => response.data.data)\n\t\t\t.catch(error => Promise.reject(error.response || error))\n\t},\n\n\t_config(config: any) {\n\t\tif (config) console.error('NOT IMPLEMENTED')\n\n\t\tif (!store.getters['auth/token']) {\n\t\t\treturn {headers: {}}\n\t\t}\n\n\t\treturn {\n\t\t\theaders: {\n\t\t\t\tAuthorization: `Bearer ${store.getters['auth/token']}`\n\t\t\t}\n\t\t}\n\t}\n}","import { App } \t\tfrom 'vue'\nimport { Options } \tfrom './types'\nimport axios \t\tfrom './models/axios'\n\nexport default {\n\tinstall: (app: App, options: Options) => {\n\t\tif (options && options.disabled === true) return\n\n\t\tapp.config.globalProperties.$axios = axios\n\t}\n}","export const encodeGetParams = p =>\n\tObject.entries(p).map(kv => kv.map(encodeURIComponent).join('=')).join('&')\n\nexport function strToRegex(s) {\n\tlet re = s\n\tre = re.replace(/\\//g, '\\\\/')\n\tre = re.replace(/\\./g, '\\\\.')\n\tre = re.replace(/\\([^)]+\\)/g, '[^/]+')\n\treturn re\n}\n","import axios from 'axios'\nimport { encodeGetParams, strToRegex } from '../utils/moxios.util'\n\nexport class Moxios {\n\t_mocks = {}\n\n\tconstructor() {\n\t\taxios.interceptors.request.use(this._redirectRequestToMock.bind(this))\n\t\tthis._mocks = {}\n\t}\n\n\tmock(append) {\n\t\tfor (const k in append) {\n\t\t\tlet m = append[k]\n\n\t\t\tif (m === false) continue\n\n\t\t\tm = {}\n\n\t\t\tm.name = k\n\t\t\tm.url = k.split(' ')[1]\n\n\t\t\tif (!m.reUrl)\n\t\t\t\tm.reUrl = strToRegex( m.url )\n\n\t\t\tif (!m.matchMethod)\n\t\t\t\tm.matchMethod = k.split(' ')[0].toLowerCase()\n\n\t\t\tthis._mocks[k] = m\n\t\t}\n\t}\n\n\n\t_redirectRequestToMock(config) {\n\t\t// if (localStorage['isMoxios'] == 'false') {\n\t\t// \treturn config\n\t\t// }\n\n\t\tconst url = config.url.replace(/https?:\\/\\/[^/?]+/, '')\n\n\t\tlet mocked\n\n\t\tfor (const k in this._mocks) {\n\t\t\tconst m = this._mocks[k]\n\n\t\t\tif (config.method == m.matchMethod && url.match(m.reUrl)) {\n\t\t\t\tmocked = m\n\t\t\t\tbreak\n\t\t\t}\n\t\t}\n\n\t\tif (mocked) {\n\t\t\tif (!mocked.fname)\n\t\t\t\tprocess.env.VUE_APP_PLATFORM\n\t\t\t\t\t? mocked.fname = `/mock/${process.env.VUE_APP_PLATFORM}/${mocked.url}.${config.method.toUpperCase()}.json`\n\t\t\t\t\t: mocked.fname = `/mock/${mocked.url}.${config.method.toUpperCase()}.json`\n\n\n\t\t\tconsole.log(mocked.fname = `/mock/${mocked.url}.${config.method.toUpperCase()}.json`)\n\n\t\t\tconst c = {\n\t\t\t\tmethod: 'get',\n\t\t\t\turl: window.location.origin + mocked.fname+'?___MOCK___&'+encodeGetParams(config.data||{}),\n\t\t\t}\n\n\t\t\tconfig = {...config, ...c}\n\t\t}\n\n\t\treturn config\n\t}\n\n}\n\n","import { App } \t\tfrom 'vue'\nimport { Moxios } \tfrom './models/moxios'\nimport { Options } \tfrom './types/index.js'\n\nexport default {\n\tinstall: (app: App, options: Options) => {\n\t\tconst moxios = new Moxios()\n\n\t\tif (!options || !options.routes || !Object.values(options.routes).length || options.disabled === true) return\n\n\t\tmoxios.mock(options.routes)\n\t}\n}","import { Options } \tfrom './types'\nimport mitt \t\tfrom 'mitt'\n\nexport default {\n\tinstall: (app, options: Options) => {\n\t\tif (options && options.disabled === true) return\n\n\t\tconst events = mitt()\n\t\tapp.config.globalProperties.$events = events\n\t}\n}","import { Language, Options } from \"../types\"\nimport { Ref, ref } from 'vue'\nimport axios from 'axios'\nimport { createI18n, I18n as I18nType } from 'vue-i18n'\nimport { Preferences } from '@capacitor/preferences'\n\n\nexport class I18n {\n\tpublic currentLanguage: Ref = ref();\n\tpublic availableLanguages: Language[];\n\tpublic vendorI18n: I18nType\n\tpublic defaultLanguage: Language | null;\n\n\tprivate languageKey: string;\n\n\tconstructor(properties: Options) {\n\t\tthis.availableLanguages = properties.languages || []\n\t\tthis.defaultLanguage = properties.languages.find(language => language.value == properties.defaultLanguage)\n\t\tthis.languageKey = properties.languageKey || process.env.VUE_APP_PLATFORM + '_language' || 'w18n_language'\n\n\t\tthis.vendorI18n = createI18n({\n\t\t\tlegacy: true,\n\t\t\tfallbackLocale: this.defaultLanguage.value,\n\t\t\tmessages: this._loadLocaleMessages(),\n\t\t\tmissing: this._missingTranslation,\n\t\t\tpostTranslation: this._postTranslation,\n\t\t})\n\n\t\tthis.changeLanguage({ title: \"Slovenský\", flag: \"sk\", value: \"sk\" })\n\t\tthis.initCurrentLanguage()\n\t}\n\n\tpublic async initCurrentLanguage() {\n\t\tconst { value } = await Preferences.get({ key: this.languageKey })\n\n\t\tif (value) {\n\t\t\tthis.currentLanguage.value = JSON.parse(value)\n\t\t} else if (this.defaultLanguage) {\n\t\t\tthis.currentLanguage.value = this.defaultLanguage\n\t\t} else if (this.availableLanguages[0]) {\n\t\t\tthis.currentLanguage.value = this.availableLanguages[0]\n\t\t} else {\n\t\t\treturn console.error('[w18n] Could not init current language')\n\t\t}\n\n\t\tconst availableLanguages = {}\n\n\t\tthis.availableLanguages.forEach(language => {\n\t\t\tavailableLanguages[language.value] = language.title\n\t\t})\n\n\t\tthis.changeLanguage(this.currentLanguage.value)\n\t\t// Translations.setup(this.currentLanguage.value.value, availableLanguages)\n\n\t\tthis._addAxiosHeaders()\n\t}\n\n\tpublic changeLanguage(language: Language) {\n\t\tthis.currentLanguage.value = language\n\t\tthis._addAxiosHeaders()\n\n\t\tPreferences.set({\n\t\t\tkey: this.languageKey,\n\t\t\tvalue: JSON.stringify(language)\n\t\t})\n\n\t\tthis.vendorI18n.global.locale = language.value\n\t}\n\n\n\tprivate _addAxiosHeaders() {\n\t\taxios.interceptors.request.use(config => {\n\t\t\tif (this.currentLanguage.value && this.currentLanguage.value.value) {\n\t\t\t\tconfig.headers['Accept-Language'] = this.currentLanguage.value.value\n\t\t\t}\n\n\t\t\treturn config\n\t\t})\n\n\t\taxios.interceptors.response.use(\n\t\t\t(response) => {\n\t\t\t\treturn response\n\t\t\t},\n\t\t\t// fixnut aby logger nezaznamenaval chybu ak padne requet kvoli loggeru\n\t\t\t(error) => {\n\t\t\t\tif(error.response) {\n\t\t\t\t\taxios.post('https://logger.wezeo.dev/cms/api/data/new', {\n\t\t\t\t\t\tdata: JSON.stringify(error)\n\t\t\t\t\t})\n\t\t\t\t}\n\t\t\t\treturn Promise.reject(error)\n\t\t\t}\n\t\t)\n\t}\n\n\tpublic _loadLocaleMessages(path = '@/locales') {\n\t\tlet locales\n\t\ttry {\n\t\t\tlocales = require.context(\n\t\t\t\t'@/locales',\n\t\t\t\ttrue,\n\t\t\t\t/[A-Za-z0-9-_,\\s]+\\.json$/i\n\t\t\t)\n\t\t} catch (error) {\n\t\t\tconsole.warn('[@wezeo/i18n] Could not initialize i18n. Missing folder /src/locales.')\n\t\t\treturn {}\n\t\t}\n\n\t\tconst messages: { [key: string]: { [key: string]: string } } = {}\n\n\t\tlocales.keys().forEach((key) => {\n\t\t\tconst matched = key.match(/([A-Za-z0-9-_]+)\\./i)\n\t\t\tif (matched && matched.length > 1) {\n\t\t\t\tconst locale = matched[1]\n\n\t\t\t\tmessages[locale] = locales(key)\n\t\t\t}\n\t\t})\n\t\treturn messages\n\t}\n\n\tprivate _missingTranslation = (locale, key, instance?, type?) => {\n\t\treturn key\n\t}\n\n\tprivate _postTranslation = (translated) => {\n\t\treturn translated\n\t}\n}\n","import { Options } \tfrom './types'\nimport { I18n } \tfrom './models/i18n'\nimport events \t\tfrom '@/plugins/w/events'\n\nexport default {\n\tinstall: (app, options: Options) => {\n\t\tif (options && options.disabled === true)\n\t\t\treturn\n\n\t\tif (!options || !options.languages || !options.defaultLanguage)\n\t\t\treturn console.warn('[@wezeo/i18n] Could not initialize i18n. Missing configuration options.')\n\n\t\tif (!app.config.globalProperties.$events) {\n\t\t\tapp.use(events)\n\t\t}\n\n\t\tconst i18n = new I18n(options)\n\n\t\tapp.use(i18n.vendorI18n)\n\t\tapp.config.globalProperties.$w18n = i18n\n\t}\n}","import { App } \t\tfrom 'vue'\nimport { Options } \tfrom './types'\n\n\nimport {\n\tIonContent, IonPage, IonLabel, IonBackButton, IonCheckbox, IonText, IonButton, IonItem,\n\tIonToolbar, IonHeader, IonFooter, IonSlides, IonSlide, IonRow, IonCol, IonGrid, IonInput, IonButtons,\n\tIonIcon, IonList, IonTitle, IonMenu, IonRouterOutlet, IonMenuButton, IonSegment, IonSegmentButton, IonVirtualScroll,\n\tIonTextarea, IonSearchbar, IonRefresherContent, IonRefresher, IonInfiniteScrollContent, IonInfiniteScroll, IonAvatar,\n\tIonModal, IonRadioGroup, IonRadio, IonNote, IonCard, IonCardContent, IonTabBar, IonTabButton, IonMenuToggle, IonFab,\n\tIonFabButton, IonReorderGroup, IonReorder, IonFabList, IonSelect, IonSelectOption, IonToggle, IonBadge, IonChip, IonTabs, IonItemGroup, IonThumbnail, IonItemSliding, IonItemOption, IonItemOptions, IonImg, IonSkeletonText, IonSpinner, IonSplitPane\n} from '@ionic/vue'\n\nexport default {\n\tinstall: (app: App, options: Options) => {\n\t\tif (options && options.disabled === true) return\n\n\t\tapp.component('ion-content', IonContent)\n\t\tapp.component('ion-page', IonPage)\n\t\tapp.component('ion-label', IonLabel)\n\t\tapp.component('ion-back-button', IonBackButton)\n\t\tapp.component('ion-checkbox', IonCheckbox)\n\t\tapp.component('ion-text', IonText)\n\t\tapp.component('ion-button', IonButton)\n\t\tapp.component('ion-item', IonItem)\n\t\tapp.component('ion-item-group', IonItemGroup)\n\t\tapp.component('ion-item-sliding', IonItemSliding)\n\t\tapp.component('ion-item-option', IonItemOption)\n\t\tapp.component('ion-item-options', IonItemOptions)\n\t\tapp.component('ion-toolbar', IonToolbar)\n\t\tapp.component('ion-header', IonHeader)\n\t\tapp.component('ion-footer', IonFooter)\n\t\tapp.component('ion-slides', IonSlides)\n\t\tapp.component('ion-slide', IonSlide)\n\t\tapp.component('ion-spinner', IonSpinner)\n\t\tapp.component('ion-row', IonRow)\n\t\tapp.component('ion-col', IonCol)\n\t\tapp.component('ion-grid', IonGrid)\n\t\tapp.component('ion-input', IonInput)\n\t\tapp.component('ion-buttons', IonButtons)\n\t\tapp.component('ion-icon', IonIcon)\n\t\tapp.component('ion-img', IonImg)\n\t\tapp.component('ion-list', IonList)\n\t\tapp.component('ion-skeleton-text', IonSkeletonText)\n\t\tapp.component('ion-title', IonTitle)\n\t\tapp.component('ion-menu', IonMenu),\n\t\tapp.component('ion-split-pane', IonSplitPane)\n\t\tapp.component('ion-menu-button', IonMenuButton)\n\t\tapp.component('ion-router-outlet', IonRouterOutlet)\n\t\tapp.component('ion-segment', IonSegment)\n\t\tapp.component('ion-segment-button', IonSegmentButton)\n\t\tapp.component('ion-virtual-scroll', IonVirtualScroll)\n\t\tapp.component('ion-textarea', IonTextarea)\n\t\tapp.component('ion-searchbar', IonSearchbar)\n\t\tapp.component('ion-refresher-content', IonRefresherContent)\n\t\tapp.component('ion-refresher', IonRefresher)\n\t\tapp.component('ion-infinite-scroll-content', IonInfiniteScrollContent)\n\t\tapp.component('ion-infinite-scroll', IonInfiniteScroll)\n\t\tapp.component('ion-avatar', IonAvatar)\n\t\tapp.component('ion-thumbnail', IonThumbnail)\n\t\tapp.component('ion-modal', IonModal)\n\t\tapp.component('ion-radio-group', IonRadioGroup)\n\t\tapp.component('ion-radio', IonRadio)\n\t\tapp.component('ion-note', IonNote)\n\t\tapp.component('ion-card', IonCard)\n\t\tapp.component('ion-card-content', IonCardContent)\n\t\tapp.component('ion-tab-bar', IonTabBar)\n\t\tapp.component('ion-tab-button', IonTabButton),\n\t\tapp.component('ion-menu-toggle', IonMenuToggle)\n\t\tapp.component('ion-fab', IonFab)\n\t\tapp.component('ion-fab-button', IonFabButton)\n\t\tapp.component('ion-fab-list', IonFabList)\n\t\tapp.component('ion-reorder-group', IonReorderGroup)\n\t\tapp.component('ion-reorder', IonReorder)\n\t\tapp.component('ion-select', IonSelect)\n\t\tapp.component('ion-select-option', IonSelectOption)\n\t\tapp.component('ion-toggle', IonToggle)\n\t\tapp.component('ion-badge', IonBadge)\n\t\tapp.component('ion-chip', IonChip),\n\t\tapp.component('ion-tabs', IonTabs)\n\t}\n}","/* eslint-disable */\nimport axios from 'axios'\nimport store from '@/store'\n\nasync function _unauthorised(error: any) {\n\tif (error?.response?.data?.message == 'Unauthenticated.')\n\t\treturn store.dispatch('auth/logout')\n\t\n\treturn Promise.reject(error)\n}\n\naxios.interceptors.response.use(\n\t(response) => response,\n\t(error) => _unauthorised(error),\n)","import axios from '@/plugins/w/axios/models/axios'\nimport './refreshExpired'\n\nexport default {\n\tnamespaced: true,\n\tstate: {\n\t\ttoken: localStorage.getItem('wzo_vue_user_token') || '',\n\t\tuser: JSON.parse(localStorage.getItem('wzo_vue_user_user') || '{}'),\n\t},\n\tmutations: {\n\t\tauth_success(state: any, data: any) {\n\t\t\tif (data.token) {\n\t\t\t\tstate.token = data.token\n\t\t\t\tlocalStorage.setItem('wzo_vue_user_token', data.token)\n\t\t\t}\n\n\t\t\tif (data.user) {\n\t\t\t\tstate.user = data.user\n\t\t\t\tlocalStorage.setItem('wzo_vue_user_user', JSON.stringify(data.user))\n\t\t\t}\n\t\t},\n\t\tauth_error(state: any) {\n\t\t\tstate.token = ''\n\t\t\tlocalStorage.removeItem('wzo_vue_user_token')\n\t\t\tlocalStorage.removeItem('wzo_vue_user_user')\n\t\t},\n\t\tlogout(state: any) {\n\t\t\tstate.token = ''\n\t\t\tstate.user = null\n\t\t\tlocalStorage.removeItem('wzo_vue_user_token')\n\t\t\tlocalStorage.removeItem('wzo_vue_user_user')\n\t\t\twindow.open(location.origin, \"_self\")\n\t\t}\n\t},\n\tactions: {\n\t\tlogin({commit}: {commit: any}, credentials: any) {\n\t\t\treturn new Promise((resolve, reject) => {\n\t\t\t\taxios.post('v1/tokens/create', {data: credentials})\n\t\t\t\t\t.then((response: any) => {\n\t\t\t\t\t\tconst token = response.token\n\t\t\t\t\t\tconst user = response.user\n\n\t\t\t\t\t\tcommit('auth_success', {\n\t\t\t\t\t\t\ttoken: token,\n\t\t\t\t\t\t\tuser: user\n\t\t\t\t\t\t})\n\n\t\t\t\t\t\tresolve(response)\n\t\t\t\t\t}).catch(error => {\n\t\t\t\t\t\tcommit('auth_error')\n\t\t\t\t\t\treject(error)\n\t\t\t\t\t})\n\t\t\t})\n\t\t},\n\t\tsignup({commit }: {commit: any}, credentials: any) {\n\t\t\treturn new Promise((resolve, reject) => {\n\t\t\t\tcommit('auth_request')\n\n\t\t\t\taxios.post_data('v1/auth/signup', credentials)\n\t\t\t\t\t.then((response: any) => {\n\t\t\t\t\t\tconst token = response.token\n\t\t\t\t\t\tconst user = response.user\n\n\t\t\t\t\t\tcommit('auth_success', {\n\t\t\t\t\t\t\ttoken: token,\n\t\t\t\t\t\t\tuser: user\n\t\t\t\t\t\t})\n\n\t\t\t\t\t\tresolve(response)\n\t\t\t\t\t}).catch(error => {\n\t\t\t\t\t\tcommit('auth_error')\n\t\t\t\t\t\treject(error)\n\t\t\t\t\t})\n\t\t\t})\n\t\t},\n\t\t// eslint-disable-next-line\n\t\tlogout({commit}: {commit: any}) {\n\t\t\treturn new Promise((resolve) => {\n\t\t\t\taxios.post_auth_data('v1/auth/invalidate')\n\t\t\t\t\t.finally(() => {\n\t\t\t\t\t\tcommit('logout')\n\t\t\t\t\t\tresolve(null)\n\t\t\t\t\t})\n\t\t\t})\n\t\t},\n\t\t// eslint-disable-next-line\n\t\tforgotPassword({commit}: {commit: any}, credentials: any) {\n\t\t\treturn new Promise((resolve, reject) => {\n\t\t\t\taxios.post('v1/users/forgot', {data: credentials})\n\t\t\t\t\t.then(response => resolve(response))\n\t\t\t\t\t.catch(error => reject(error))\n\t\t\t})\n\t\t},\n\t\t// eslint-disable-next-line\n\t\tresetPassword({commit}: {commit: any}, credentials: any) {\n\t\t\tcommit('auth_success', {token: credentials.token})\n\t\t\t\n\t\t\treturn new Promise((resolve, reject) => {\n\t\t\t\taxios.post_auth_data('v1/users/reset', {data: credentials})\n\t\t\t\t\t.then(response => {\n\t\t\t\t\t\tcommit('logout')\n\t\t\t\t\t\tresolve(response)\n\t\t\t\t\t})\n\t\t\t\t\t.catch(error => reject(error))\n\t\t\t})\n\t\t},\n\t\tasync refreshToken({commit}: {commit: any}) {\n\t\t\ttry {\n\t\t\t\tconst response: any = await axios.post_auth_data('v1/auth/refresh')\n\n\t\t\t\tconst token = response.token\n\t\t\t\tconst user = response.user\n\n\t\t\t\tcommit('auth_success', {\n\t\t\t\t\ttoken: token,\n\t\t\t\t\tuser: user\n\t\t\t\t})\n\n\t\t\t\treturn token\n\t\t\t} catch (error) {\n\t\t\t\tcommit('auth_error')\n\t\t\t\tconsole.error(error)\n\t\t\t}\n\t\t},\n\t\tasync userInfo({commit}: {commit: any}) {\n\t\t\treturn new Promise((resolve, reject) => {\n\t\t\t\taxios.get_auth_data('v1/auth/info')\n\t\t\t\t\t.then((response: any) => {\n\t\t\t\t\t\tconst user = response.user\n\n\t\t\t\t\t\tcommit('auth_success', {\n\t\t\t\t\t\t\tuser: user\n\t\t\t\t\t\t})\n\n\t\t\t\t\t\tresolve(user)\n\t\t\t\t\t}).catch(error => {\n\t\t\t\t\t\treject(error)\n\t\t\t\t\t})\n\t\t\t})\n\t\t},\n\t\tupdateUserInfo({commit}: {commit: any}, data: any) {\n\t\t\treturn new Promise((resolve, reject) => {\n\t\t\t\taxios.put_auth(`v1/users/${data.id}`, {data: data})\n\t\t\t\t\t.then((response: any) => {\n\t\t\t\t\t\tconst user = response.user\n\n\t\t\t\t\t\tcommit('auth_success', {\n\t\t\t\t\t\t\tuser: user\n\t\t\t\t\t\t})\n\n\t\t\t\t\t\tresolve(user)\n\t\t\t\t\t}).catch(error => {\n\t\t\t\t\t\treject(error)\n\t\t\t\t\t})\n\t\t\t})\n\t\t},\n\t},\n\tgetters: {\n\t\tisLoggedIn: (state: any) => {\n\t\t\treturn !!state.token\n\t\t},\n\t\tuser: (state: any) => {\n\t\t\treturn state.user\n\t\t},\n\t\ttoken: (state: any) => {\n\t\t\treturn (state.token && state.token != undefined) ? state.token : null\n\t\t}\n\t}\n}","import { App } \t\tfrom 'vue'\nimport { Options } \tfrom './types'\nimport auth \t\tfrom './auth.store'\n\nexport default {\n\tinstall: (app: App, options: Options) => {\n\t\tif (options && options.disabled == true) return\n\n\t\tif (!app.config.globalProperties.$store)\n\t\t\treturn console.warn('[w/auth] Could not initialize. App does not have vuex store added.')\n\n\t\tapp.config.globalProperties.$store.registerModule('auth', auth)\n\t}\n}","import { Options } \tfrom './types'\n// import { Toast } from './models/Toast'\nimport 'vue-toast-notification/dist/theme-sugar.css'\nimport VueToast from 'vue-toast-notification'\n\nexport default {\n\tinstall: (app, options: Options) => {\n\t\tif (options && options.disabled === true) return\n\n\t\tapp.use(VueToast)\n\n\t\t// app.config.globalProperties.$wToast = new Toast()\n\t}\n}","\n\n\n\n","import { render } from \"./w-loadable.vue?vue&type=template&id=a2444234&scoped=true\"\nimport script from \"./w-loadable.vue?vue&type=script&lang=js\"\nexport * from \"./w-loadable.vue?vue&type=script&lang=js\"\n\nimport \"./w-loadable.vue?vue&type=style&index=0&id=a2444234&lang=sass&scoped=true\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-a2444234\"]])\n\nexport default __exports__","import { App } \t\tfrom 'vue'\nimport { Options } \tfrom './types'\nimport WLoadable\tfrom './_components/w-loadable.vue'\n\nexport default {\n\tinstall: (app: App, options: Options) => {\n\t\tif (options && options.disabled === true) return\n\n\t\tapp.component('W-loadable', WLoadable)\n\t}\n}","import { App } \t\tfrom 'vue'\nimport { Options } \tfrom './types'\n\nimport axios\t \tfrom '@/plugins/w/axios'\nimport moxios\t \tfrom '@/plugins/w/moxios'\nimport events\t \tfrom '@/plugins/w/events'\nimport i18n\t \t\tfrom '@/plugins/w/i18n'\nimport ionic\t \tfrom '@/plugins/w/ionic'\nimport auth\t\t\tfrom '@/plugins/w/auth'\nimport toast\t\tfrom '@/plugins/w/toast'\nimport loadable\t\tfrom '@/plugins/w/loadable'\n\nexport default {\n\tinstall: (app: App, options: Options = {}) => {\n\t\tevents.install(app, options.events)\n\t\taxios.install(app, options.axios)\n\t\ti18n.install(app, options.i18n)\n\t\tmoxios.install(app, options.moxios)\n\t\tionic.install(app, options.ionic)\n\t\tauth.install(app, options.auth)\n\t\ttoast.install(app, options.toast)\n\t\tloadable.install(app, options.loadable)\n\t}\n}","import { $t } from '@/plugins/app/_config/main'\n\nexport default {\n\tparseAndTranslate(data) {\n\t\tconst errorsArray = this._parseToArrayOfStrings(data)\n\t\treturn errorsArray.join(', ')\n\t},\n\n\t_parseToArrayOfStrings(data) {\n\t\tif (data?.data?.message) {\n\t\t\treturn [$t(data.data.message)]\n\t\t}\n\n\t\tif (typeof data == 'string') {\n\t\t\treturn [$t(data)]\n\t\t}\n\n\t\tif (data?.response?.data)\n\t\t\treturn Object.values(data?.response?.data)\n\n\t\tif (data && data.error && typeof data.error == 'string') {\n\t\t\treturn [$t(data.error)]\n\t\t}\n\n\t\tif (data && data.error && typeof data.error == 'object') {\n\t\t\treturn Object.values($t(data.error))\n\t\t}\n\n\t\tif (data.data && data.data.error && typeof data.data.error == 'string') {\n\t\t\treturn [$t(data.data.error)]\n\t\t}\n\n\t\tif (data && data.data && data.data.error && typeof data.data.error == 'object') {\n\t\t\treturn Object.values(data.data.error).map(error => $t(error[0]) + ' ')\n\t\t}\n\n\t\tif (data.statusText) {\n\t\t\treturn [$t(data.statusText)]\n\t\t}\n\n\t\treturn [data]\n\t}\n}","import axios from 'axios'\nimport store from '@/store'\nimport toastUtils from '@/plugins/w/toast/utils/toast.utils'\n\naxios.defaults.baseURL = process.env.VUE_APP_WAXIOS_URL\n\nexport default {\n\tasync get(url: string, config?: any) {\n\t\treturn axios.get(url, config)\n\t\t\t.then(response => response.data)\n\t\t\t.catch(error => Promise.reject(toastUtils.parseAndTranslate(error)))\n\t},\n\n\tasync get_auth(url: string, config?: any) {\n\t\tconfig = this._config(config)\n\n\t\treturn axios.get(url, config)\n\t\t\t.then(response => response.data)\n\t\t\t.catch(error => Promise.reject(toastUtils.parseAndTranslate(error)))\n\t},\n\n\tasync get_data(url: string, config?: any) {\n\t\treturn axios.get(url, config)\n\t\t\t.then(response => response.data.data)\n\t\t\t.catch(error => Promise.reject(toastUtils.parseAndTranslate(error.response || error)))\n\t},\n\n\tasync get_auth_data(url: string, config?: any) {\n\t\tconfig = this._config(config)\n\n\t\treturn axios.get(url, config)\n\t\t\t.then(response => Promise.resolve(response.data.data))\n\t\t\t.catch(error => Promise.reject(toastUtils.parseAndTranslate(error.response || error)))\n\t},\n\n\tasync post(url: string, params = null, config?: any) {\n\n\t\treturn axios.post(url, this._objectToFormData(params), config)\n\t\t\t.then(response => response.data)\n\t\t\t.catch(error => Promise.reject(toastUtils.parseAndTranslate(error)))\n\t},\n\n\tasync post_auth(url: string, params = null, config?: any) {\n\t\tconfig = this._config(config)\n\n\t\treturn axios.post(url, this._objectToFormData(params), config)\n\t\t\t.then(response => response.data)\n\t\t\t.catch(error => Promise.reject(toastUtils.parseAndTranslate(error)))\n\t},\n\n\tasync post_data(url: string, params = null, config?: any) {\n\n\t\treturn axios.post(url, this._objectToFormData(params), config)\n\t\t\t.then(response => response.data.data)\n\t\t\t.catch(error => Promise.reject(toastUtils.parseAndTranslate(error.response || error)))\n\t},\n\n\tasync post_auth_data(url: string, params = null, config?: any) {\n\t\tconfig = this._config(config)\n\n\t\treturn axios.post(url, this._objectToFormData(params), config)\n\t\t\t.then(response => response.data.data)\n\t\t\t.catch(error => Promise.reject(toastUtils.parseAndTranslate(error.response || error)))\n\t},\n\n\tasync delete(url: string, config?: any) {\n\t\treturn axios.delete(url, config)\n\t\t\t.then(response => response.data)\n\t\t\t.catch(error => Promise.reject(toastUtils.parseAndTranslate(error)))\n\t},\n\n\tasync delete_auth(url: string, config?: any) {\n\t\tconfig = this._config(config)\n\n\t\treturn axios.delete(url, config)\n\t\t\t.then(response => response.data)\n\t\t\t.catch(error => Promise.reject(toastUtils.parseAndTranslate(error)))\n\t},\n\n\tasync delete_data(url: string, config?: any) {\n\t\treturn axios.delete(url, config)\n\t\t\t.then(response => response.data.data)\n\t\t\t.catch(error => Promise.reject(toastUtils.parseAndTranslate(error.response || error)))\n\t},\n\n\tasync delete_auth_data(url: string, config?: any) {\n\t\tconfig = this._config(config)\n\n\t\treturn axios.delete(url, config)\n\t\t\t.then(response => response.data.data)\n\t\t\t.catch(error => Promise.reject(toastUtils.parseAndTranslate(error.response || error)))\n\t},\n\n\tasync patch(url: string, params = null, config?: any) {\n\t\treturn axios.patch(url, this._objectToFormData(params), config)\n\t\t\t.then(response => response.data)\n\t\t\t.catch(error => Promise.reject(toastUtils.parseAndTranslate(error)))\n\t},\n\n\tasync patch_auth(url: string, params = null, config?: any) {\n\t\tconfig = this._config(config)\n\n\t\treturn axios.patch(url, this._objectToFormData(params), config)\n\t\t\t.then(response => response.data)\n\t\t\t.catch(error => Promise.reject(toastUtils.parseAndTranslate(error)))\n\t},\n\n\tasync patch_data(url: string, params = null, config?: any) {\n\t\treturn axios.patch(url, this._objectToFormData(params), config)\n\t\t\t.then(response => response.data.data)\n\t\t\t.catch(error => Promise.reject(toastUtils.parseAndTranslate(error.response || error)))\n\t},\n\n\tasync patch_auth_data(url: string, params = null, config?: any) {\n\t\tconfig = this._config(config)\n\n\t\treturn axios.patch(url, this._objectToFormData(params), config)\n\t\t\t.then(response => response.data.data)\n\t\t\t.catch(error => Promise.reject(toastUtils.parseAndTranslate(error.response || error)))\n\t},\n\n\tasync put(url: string, params = null, config?: any) {\n\t\treturn axios.put(url, this._objectToFormData(params), config)\n\t\t\t.then(response => response.data)\n\t\t\t.catch(error => Promise.reject(toastUtils.parseAndTranslate(error)))\n\t},\n\n\tasync put_auth(url: string, params = null, config?: any) {\n\t\tconfig = this._config(config)\n\n\t\treturn axios.put(url, {data: params}, config)\n\t\t\t.then(response => response.data)\n\t\t\t.catch(error => Promise.reject(toastUtils.parseAndTranslate(error)))\n\t},\n\n\tasync put_data(url: string, params = null, config?: any) {\n\t\treturn axios.put(url, this._objectToFormData(params), config)\n\t\t\t.then(response => response.data.data)\n\t\t\t.catch(error => Promise.reject(toastUtils.parseAndTranslate(error.response || error)))\n\t},\n\n\tasync put_auth_data(url: string, params = null, config?: any) {\n\t\tconfig = this._config(config)\n\n\t\treturn axios.put(url, {data: params}, config)\n\t\t\t.then(response => response.data.data)\n\t\t\t.catch(error => Promise.reject(toastUtils.parseAndTranslate(error.response || error)))\n\t},\n\n\t_config(config: any) {\n\t\tif (config) console.error('NOT IMPLEMENTED')\n\n\t\tif (!store.getters['auth/token']) {\n\t\t\treturn {headers: {}}\n\t\t}\n\n\t\treturn {\n\t\t\theaders: {\n\t\t\t\tAuthorization: `Bearer ${store.getters['auth/token']}`\n\t\t\t}\n\t\t}\n\t},\n\n\t_buildFormData(formData, data, parentKey) {\n\t\tif (data && typeof data === 'object' && !(data instanceof Date) && !(data instanceof File))\n\t\t\tObject.keys(data).forEach(key => this._buildFormData(formData, data[key], parentKey ? `${parentKey}[${key}]` : key));\n\t\telse\n\t\t\tformData.append(parentKey, data == null ? '' : data);\n\t},\n\n\t_objectToFormData(data) {\n\t\tconst formData = new FormData()\n\t\tthis._buildFormData(formData, {data: data})\n\n\t\treturn formData\n\t}\n}","import { App } \t\tfrom 'vue'\nimport { Options } \tfrom './types'\nimport axios \t\tfrom './models/axios'\n\nexport default {\n\tinstall: (app: App, options: Options) => {\n\t\tif (options && options.disabled === true) return\n\n\t\tapp.config.globalProperties.$axios = axios\n\t}\n}","import axios from '@/plugins/w@custom/axios/models/axios'\nimport store from '@/store'\n\nexport default {\n\tnamespaced: true,\n\n\tstate: {\n\t\tmastertasks: null,\n\t\temployees: null,\n\t\tteams: null,\n\t\tprojects: null,\n\t\tunscheduledSubtasks: null,\n\t\tongoingSubtasks: null,\n\t\tinitialized: false\n\t},\n\n\tmutations: {\n\t\tset_mastertasks(state: any, mastertasks: any) {\n\t\t\tstate.mastertasks = mastertasks\n\t\t},\n\n\t\tset_employees(state: any, employees: any) {\n\t\t\tstate.employees = employees\n\n\t\t\t// TODO: Remove\n\t\t\t// const employee = employees.find(employee => employee.email == 'zachariah.vonrueden@jandl.sk')\n\t\t\t// store.commit('auth/auth_success', {\n\t\t\t// \tuser: employee\n\t\t\t// })\n\t\t},\n\n\t\tset_teams(state: any, teams: any) {\n\t\t\tstate.teams = teams\n\t\t},\n\n\t\tset_projects(state: any, projects: any) {\n\t\t\tstate.projects = projects\n\t\t},\n\n\t\tset_unscheduled_subtasks(state: any, subtasks: any) {\n\t\t\tstate.unscheduledSubtasks = subtasks\n\t\t},\n\n\t\tset_ongoing_subtasks(state: any, subtasks: any) {\n\t\t\tstate.ongoingSubtasks = subtasks\n\t\t},\n\n\t\tupdate_team(state: any, team: any) {\n\t\t\tstate.teams = state.teams.map(t => {\n\t\t\t\tif (t.id == team.id)\n\t\t\t\t\treturn team\n\n\t\t\t\treturn t\n\t\t\t})\n\t\t},\n\n\t\tsave_team(state: any, team: any) {\n\t\t\tstate.teams.push(team)\n\t\t},\n\n\t\tdelete_team(state: any, team: any) {\n\t\t\tstate.teams = state.teams.filter(t => t.id != team.id)\n\t\t},\n\n\t\tupdate_subtask(state: any, subtask: any) {\n\t\t\tstate.unscheduledSubtasks \t= state.unscheduledSubtasks.map(st \t\t=> st.id == subtask.id ? subtask : st)\n\t\t\tstate.ongoingSubtasks \t\t= state.ongoingSubtasks.map(st \t\t\t=> st.id == subtask.id ? subtask : st)\n\t\t\t\n\t\t\tstate.mastertasks \t\t\t= state.mastertasks.map(mastertask \t\t=> {\n\t\t\t\tmastertask.subtasks \t= mastertask.subtasks.map(st => st.id == subtask.id ? subtask : st)\n\t\t\t\treturn mastertask\n\t\t\t})\n\t\t},\n\n\t\tdelete_subtask(state: any, subtask: any) {\n\t\t\tstate.unscheduledSubtasks \t= state.unscheduledSubtasks.filter(st \t=> st.id != subtask.id)\n\t\t\tstate.ongoingSubtasks \t\t= state.ongoingSubtasks.filter(st \t\t=> st.id != subtask.id)\n\n\t\t\tstate.mastertasks \t\t\t= state.mastertasks.map(mastertask \t\t=> {\n\t\t\t\tmastertask.subtasks = mastertask.subtasks.filter(st => st.id != subtask.id)\n\t\t\t\treturn mastertask\n\t\t\t})\n\t\t},\n\n\t\tinitialized(state: any) {\n\t\t\tstate.initialized = true\n\t\t}\n\t},\n\n\tactions: {\n\t\tinitialize({dispatch, commit}: {dispatch: any, commit: any}) {\n\t\t\treturn Promise.all([\n\t\t\t\tdispatch('loadMastertasks'),\n\t\t\t\tdispatch('loadEmployees'),\n\t\t\t\tdispatch('loadTeams'),\n\t\t\t\tdispatch('loadProjects'),\n\t\t\t\tdispatch('loadUnscheduledSubtasks'),\n\t\t\t\tdispatch('loadOngoingSubtasks')\n\t\t\t]).then(() => commit('initialized'))\n\t\t},\n\n\t\treloadSubtasks({dispatch}: {dispatch: any}) {\n\t\t\treturn Promise.all([\n\t\t\t\tdispatch('loadMastertasks'),\n\t\t\t\tdispatch('loadProjects'),\n\t\t\t\tdispatch('loadUnscheduledSubtasks'),\n\t\t\t\tdispatch('loadOngoingSubtasks')\n\t\t\t])\n\t\t},\n\n\t\treloadMastertasks({dispatch}: {dispatch: any}) {\n\t\t\treturn Promise.all([\n\t\t\t\tdispatch('loadMastertasks')\n\t\t\t])\n\t\t},\n\n\t\tloadMastertasks({commit}: {commit: any}) {\n\t\t\treturn new Promise((resolve, reject) => {\n\t\t\t\taxios.get_auth('v1/mastertasks')\n\t\t\t\t\t.then(({ mastertasks }) => {\n\t\t\t\t\t\tcommit('set_mastertasks', mastertasks)\n\t\t\t\t\t\tresolve(mastertasks)\n\t\t\t\t\t})\n\t\t\t\t\t.catch(error => {\n\t\t\t\t\t\tcommit('set_mastertasks', {error: error})\n\t\t\t\t\t\treject(error)\n\t\t\t\t\t})\n\t\t\t})\n\t\t},\n\n\t\tloadEmployees({commit}: {commit: any}) {\n\t\t\treturn new Promise((resolve, reject) => {\n\t\t\t\taxios.get_auth_data('v1/employees')\n\t\t\t\t\t.then(employees => {\n\t\t\t\t\t\tcommit('set_employees', employees)\n\t\t\t\t\t\tresolve(employees)\n\t\t\t\t\t})\n\t\t\t\t\t.catch(error => {\n\t\t\t\t\t\tcommit('set_employees', {error: error})\n\t\t\t\t\t\treject(error)\n\t\t\t\t\t})\n\t\t\t})\n\t\t\t\n\t\t},\n\n\t\tloadTeams({commit}: {commit: any}) {\n\t\t\treturn new Promise((resolve, reject) => {\n\t\t\t\taxios.get_auth_data('v1/teams')\n\t\t\t\t\t.then(teams => {\n\t\t\t\t\t\tcommit('set_teams', teams)\n\t\t\t\t\t\tresolve(teams)\n\t\t\t\t\t})\n\t\t\t\t\t.catch(error => {\n\t\t\t\t\t\tcommit('set_teams', {error: error})\n\t\t\t\t\t\treject(error)\n\t\t\t\t\t})\n\t\t\t})\n\t\t},\n\n\t\tloadProjects({commit}: {commit: any}) {\n\t\t\treturn new Promise((resolve, reject) => {\n\t\t\t\taxios.get_auth_data('v1/projects')\n\t\t\t\t\t.then(project => {\n\t\t\t\t\t\tcommit('set_projects', project)\n\t\t\t\t\t\tresolve(project)\n\t\t\t\t\t})\n\t\t\t\t\t.catch(error => {\n\t\t\t\t\t\tcommit('set_projects', {error: error})\n\t\t\t\t\t\treject(error)\n\t\t\t\t\t})\n\t\t\t})\n\t\t\t\n\t\t},\n\n\t\tloadUnscheduledSubtasks({commit}: {commit: any}, employeeId = store.getters['auth/user']?.id) {\n\t\t\treturn new Promise((resolve, reject) => {\n\t\t\t\taxios.get_auth(`v1/subtasks?type=unscheduled&employee_id=${employeeId}`)\n\t\t\t\t\t.then(({subtasks}) => {\n\t\t\t\t\t\tcommit('set_unscheduled_subtasks', subtasks)\n\t\t\t\t\t\tresolve(subtasks)\n\t\t\t\t\t})\n\t\t\t\t\t.catch(error => {\n\t\t\t\t\t\tcommit('set_unscheduled_subtasks', {error: error})\n\t\t\t\t\t\treject(error)\n\t\t\t\t\t})\n\t\t\t})\n\t\t},\n\n\t\tloadOngoingSubtasks({commit}: {commit: any}, employeeId = store.getters['auth/user']?.id) {\n\t\t\treturn new Promise((resolve, reject) => {\n\t\t\t\taxios.get_auth(`v1/subtasks?type=ongoing&employee_id=${employeeId}`)\n\t\t\t\t\t.then(({subtasks}) => {\n\t\t\t\t\t\tcommit('set_ongoing_subtasks', subtasks)\n\t\t\t\t\t\tresolve(subtasks)\n\t\t\t\t\t})\n\t\t\t\t\t.catch(error => {\n\t\t\t\t\t\tcommit('set_ongoing_subtasks', {error: error})\n\t\t\t\t\t\treject(error)\n\t\t\t\t\t})\n\t\t\t\t})\n\t\t}\n\n\t},\n\n\tgetters: {\n\t\tmastertasks: (state: any) => {\n\t\t\treturn state.mastertasks\n\t\t},\n\n\t\temployees: (state: any) => {\n\t\t\treturn state.employees\n\t\t},\n\n\t\tenrichedEmployees: (state: any) => {\n\t\t\tif (!state.employees) return []\n\t\t\t\n\t\t\treturn state.employees.map(employee => ({\n\t\t\t\t...employee, \n\t\t\t\t_fullName: `${ employee.name } ${ employee.surname }`,\n\t\t\t\t_initials: employee.name.charAt(0) + employee.surname.charAt(0)\n\t\t\t})).sort((a, b) => a.name < b.name ? -1 : 1)\n\t\t},\n\n\t\tteams: (state: any) => {\n\t\t\treturn state.teams\n\t\t},\n\n\t\tprojects: (state: any) => {\n\t\t\treturn state.projects\n\t\t},\n\n\t\tunscheduledSubtasks: (state: any) => {\n\t\t\treturn state.unscheduledSubtasks\n\t\t},\n\n\t\tongoingSubtasks: (state: any) => {\n\t\t\treturn state.ongoingSubtasks\n\t\t},\n\n\t\tisInitialized: (state: any) => {\n\t\t\treturn state.initialized\n\t\t}\n\t}\n}","import { App } \t\tfrom 'vue'\nimport tmStore \tfrom './store'\n\nexport default {\n\tinstall: (app: App) => {\n\t\tapp.config.globalProperties.$store.registerModule('tm', tmStore)\n\t}\n}","\n\n\n","/**\n * Date Utils & prototypes.\n *\n * Waiting for VS Code to support JavaScript private fields.\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes/Class_fields\n * Meantime keep `_` for private.\n */\n\nlet now, todayDate, todayF, self\nlet _dateObject = {}\nlet _timeObject = {}\n\nexport default class DateUtils {\n texts = {}\n\n constructor (texts, noPrototypes = false) {\n self = this // For use in Date prototypes.\n this._texts = texts\n\n // Add prototypes ASAP - only once.\n if (!noPrototypes && Date && !Date.prototype.addDays) this._initDatePrototypes()\n\n // @todo: This would be nicer, but how to set Date.noPrototypes ASAP only if user wants?\n // if (Date.noPrototypes) delete Date.noPrototypes\n // else this._initDatePrototypes()\n }\n\n _initDatePrototypes () {\n /* eslint-disable no-extend-native */\n Date.prototype.addDays = function (days) { return self.addDays(this, days) }\n Date.prototype.subtractDays = function (days) { return self.subtractDays(this, days) }\n Date.prototype.addHours = function (hours) { return self.addHours(this, hours) }\n Date.prototype.subtractHours = function (hours) { return self.subtractHours(this, hours) }\n Date.prototype.addMinutes = function (minutes) { return self.addMinutes(this, minutes) }\n Date.prototype.subtractMinutes = function (minutes) { return self.subtractMinutes(this, minutes) }\n Date.prototype.getWeek = function () { return self.getWeek(this) }\n Date.prototype.isToday = function () { return self.isToday(this) }\n Date.prototype.isLeapYear = function () { return self.isLeapYear(this) }\n Date.prototype.format = function (format = 'YYYY-MM-DD') { return self.formatDate(this, format) }\n Date.prototype.formatTime = function (format = 'HH:mm') { return self.formatTime(this, format) }\n /* eslint-enable no-extend-native */\n }\n\n removePrototypes () {\n delete Date.prototype.addDays\n delete Date.prototype.subtractDays\n delete Date.prototype.addHours\n delete Date.prototype.subtractHours\n delete Date.prototype.addMinutes\n delete Date.prototype.subtractMinutes\n delete Date.prototype.getWeek\n delete Date.prototype.isToday\n delete Date.prototype.isLeapYear\n delete Date.prototype.format\n delete Date.prototype.formatTime\n }\n\n updateTexts (texts) {\n this._texts = texts\n }\n\n // Cache Today's date (to a maximum) for better isToday() performances. Formatted without leading 0.\n // We still need to update Today's date when Today changes without page refresh.\n _todayFormatted () {\n if (todayDate !== (new Date()).getDate()) {\n now = new Date()\n todayDate = now.getDate()\n todayF = `${now.getFullYear()}-${now.getMonth()}-${now.getDate()}`\n }\n\n return todayF\n }\n\n // UTILITIES.\n // ====================================================================\n addDays (date, days) {\n const d = new Date(date.valueOf())\n d.setDate(d.getDate() + days)\n return d\n }\n\n subtractDays (date, days) {\n const d = new Date(date.valueOf())\n d.setDate(d.getDate() - days)\n return d\n }\n\n addHours (date, hours) {\n const d = new Date(date.valueOf())\n d.setHours(d.getHours() + hours)\n return d\n }\n\n subtractHours (date, hours) {\n const d = new Date(date.valueOf())\n d.setHours(d.getHours() - hours)\n return d\n }\n\n addMinutes (date, minutes) {\n const d = new Date(date.valueOf())\n d.setMinutes(d.getMinutes() + minutes)\n return d\n }\n\n subtractMinutes (date, minutes) {\n const d = new Date(date.valueOf())\n d.setMinutes(d.getMinutes() - minutes)\n return d\n }\n\n getWeek (date) {\n const d = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate()))\n const dayNum = d.getUTCDay() || 7\n d.setUTCDate(d.getUTCDate() + 4 - dayNum)\n const yearStart = new Date(Date.UTC(d.getUTCFullYear(), 0, 1))\n return Math.ceil((((d - yearStart) / 86400000) + 1) / 7)\n }\n\n isToday (date) {\n return `${date.getFullYear()}-${date.getMonth()}-${date.getDate()}` === this._todayFormatted()\n }\n\n isLeapYear (date) {\n const year = date.getFullYear()\n return !(year % 400) || (year % 100 && !(year % 4))\n }\n\n // Returns today if it's FirstDayOfWeek (Monday or Sunday) or previous FirstDayOfWeek otherwise.\n getPreviousFirstDayOfWeek (date = null, weekStartsOnSunday) {\n const prevFirstDayOfWeek = (date && new Date(date.valueOf())) || new Date()\n const dayModifier = weekStartsOnSunday ? 7 : 6\n prevFirstDayOfWeek.setDate(prevFirstDayOfWeek.getDate() - (prevFirstDayOfWeek.getDay() + dayModifier) % 7)\n return prevFirstDayOfWeek\n }\n\n /**\n * Converts a string to a Javascript Date object. If a Date object is passed, return it as is.\n *\n * @param {String | Date} date the string to convert to Date.\n * @return {Date} the equivalent Javascript Date object.\n */\n stringToDate (date) {\n if (date instanceof Date) return date\n // Regexp way is less performant: https://jsperf.com/string-to-date-regexp-vs-new-date\n // const [, y, m, d, h = 0, min = 0] = date.match(/(\\d{4})-(\\d{2})-(\\d{2})(?: (\\d{2}):(\\d{2}))?/)\n // return new Date(y, parseInt(m) - 1, d, h, min)\n\n if (date.length === 10) date += ' 00:00'\n return new Date(date.replace(/-/g, '/')) // replace '-' with '/' for Safari.\n }\n\n /**\n * Simply takes a Date and returns the associated time in minutes (sum of hours + minutes).\n *\n * @param {Date} date the JavaScript Date to extract minutes from.\n * @return {Number} the number of minutes (total of hours plus minutes).\n */\n dateToMinutes = date => date.getHours() * 60 + date.getMinutes()\n\n /**\n * Count the number of days this date range spans onto.\n * E.g. countDays(2019-11-02 18:00, 2019-11-03 02:00) = 2\n *\n * @param {String | Date} start the start date\n * @param {String | Date} end the end date\n * @return {Integer} The number of days this date range involves\n */\n countDays (start, end) {\n // replace '-' with '/' for Safari.\n if (typeof start === 'string') start = start.replace(/-/g, '/')\n if (typeof end === 'string') end = end.replace(/-/g, '/')\n\n // Set start & end at midnight then compare the delta. Don't modify the original dates.\n start = (new Date(start)).setHours(0, 0, 0, 0)\n // Set end at midnight plus 1 sec, so Math.ceil will round it up to a full day.\n end = (new Date(end)).setHours(0, 0, 1, 0)\n\n // Remove the potential daylight saving delta.\n const timezoneDiffMs = (new Date(end).getTimezoneOffset() - new Date(start).getTimezoneOffset()) * 60 * 1000\n return Math.ceil((end - start - timezoneDiffMs) / (24 * 3600 * 1000))\n }\n\n /**\n * Take 2 dates and check if within the same time step (useful in overlapping events).\n *\n * @return {Boolean} `true` if their time is included in the same time step,\n * this means these 2 dates are very close.\n */\n datesInSameTimeStep (date1, date2, timeStep) {\n return Math.abs(date1.getTime() - date2.getTime()) <= timeStep * 60 * 1000\n }\n // ====================================================================\n\n // FORMATTERS.\n // ====================================================================\n /**\n * Formats a date/time to the given format and returns the formatted string.\n *\n * @param {Date} date a JavaScript Date object to format.\n * @param {String} format the wanted format.\n * @param {Object} texts Optional: the localized texts object to override the vue-cal one in this._texts.\n * This becomes useful when showing multiple instances with different languages,\n * like in the documentation page.\n * @return {String} the formatted date.\n */\n formatDate (date, format = 'YYYY-MM-DD', texts = null) {\n if (!texts) texts = this._texts\n if (!format) format = 'YYYY-MM-DD' // Allows passing null for default format.\n if (format === 'YYYY-MM-DD') return this.formatDateLite(date)\n\n // Reinit the date and time object on each function call.\n _dateObject = {}\n _timeObject = {}\n\n // Each keyword is a function to load the dateObject or timeObject on demand: no wasted resource.\n const dateObj = {\n YYYY: () => this._hydrateDateObject(date, texts).YYYY,\n YY: () => this._hydrateDateObject(date, texts).YY(),\n M: () => this._hydrateDateObject(date, texts).M,\n MM: () => this._hydrateDateObject(date, texts).MM(),\n MMM: () => this._hydrateDateObject(date, texts).MMM(),\n MMMM: () => this._hydrateDateObject(date, texts).MMMM(),\n MMMMG: () => this._hydrateDateObject(date, texts).MMMMG(),\n D: () => this._hydrateDateObject(date, texts).D,\n DD: () => this._hydrateDateObject(date, texts).DD(),\n S: () => this._hydrateDateObject(date, texts).S(),\n d: () => this._hydrateDateObject(date, texts).d,\n dd: () => this._hydrateDateObject(date, texts).dd(),\n ddd: () => this._hydrateDateObject(date, texts).ddd(),\n dddd: () => this._hydrateDateObject(date, texts).dddd(),\n HH: () => this._hydrateTimeObject(date, texts).HH,\n H: () => this._hydrateTimeObject(date, texts).H,\n hh: () => this._hydrateTimeObject(date, texts).hh,\n h: () => this._hydrateTimeObject(date, texts).h,\n am: () => this._hydrateTimeObject(date, texts).am,\n AM: () => this._hydrateTimeObject(date, texts).AM,\n mm: () => this._hydrateTimeObject(date, texts).mm,\n m: () => this._hydrateTimeObject(date, texts).m\n }\n\n return format.replace(/(\\{[a-zA-Z]+\\}|[a-zA-Z]+)/g, (m, contents) => {\n const result = dateObj[contents.replace(/\\{|\\}/g, '')]\n return result !== undefined ? result() : contents\n })\n }\n\n // More performant function to convert a Date to `YYYY-MM-DD` formatted string only.\n formatDateLite (date) {\n const m = date.getMonth() + 1\n const d = date.getDate()\n return `${date.getFullYear()}-${m < 10 ? '0' : ''}${m}-${d < 10 ? '0' : ''}${d}`\n }\n\n /**\n * Formats a time (from Date or number of mins) to the given format and returns the formatted string.\n *\n * @param {Date | Number} date a JavaScript Date object or a time in minutes.\n * @param {String} format the wanted format.\n * @param {Object} texts Optional: the localized texts object to override the vue-cal one in this._texts.\n * This becomes useful when showing multiple instances with different languages,\n * like in the documentation page.\n * @param {Boolean} round if time is 23:59:59, rounds up to 24:00 for formatting only.\n * @return {String} the formatted time.\n */\n formatTime (date, format = 'HH:mm', texts = null, round = false) {\n let shouldRound = false\n if (round) {\n const [h, m, s] = [date.getHours(), date.getMinutes(), date.getSeconds()]\n if ((h + m + s) === (23 + 59 + 59)) shouldRound = true\n }\n\n if (date instanceof Date && format === 'HH:mm') return shouldRound ? '24:00' : this.formatTimeLite(date)\n\n _timeObject = {} // Reinit the time object on each function call.\n if (!texts) texts = this._texts\n const timeObj = this._hydrateTimeObject(date, texts)\n\n const formatted = format.replace(/(\\{[a-zA-Z]+\\}|[a-zA-Z]+)/g, (m, contents) => {\n const result = timeObj[contents.replace(/\\{|\\}/g, '')]\n return result !== undefined ? result : contents\n })\n\n // Round 23:59:59 to 24:00. For 12-hour format there is nothing to replace: as both are 12am.\n // Also don't return `24:00` straight away as the user format may be different.\n return shouldRound ? formatted.replace('23:59', '24:00') : formatted\n }\n\n /**\n * Formats a time to 'HH:mm' from a Date and returns the formatted string.\n *\n * @param {Date} date a JavaScript Date object to format.\n * @return {String} the formatted time.\n */\n formatTimeLite (date) {\n const h = date.getHours()\n const m = date.getMinutes()\n return `${(h < 10 ? '0' : '') + h}:${(m < 10 ? '0' : '') + m}`\n }\n\n _nth (d) {\n if (d > 3 && d < 21) return 'th'\n switch (d % 10) {\n case 1: return 'st'\n case 2: return 'nd'\n case 3: return 'rd'\n default: return 'th'\n }\n }\n\n _hydrateDateObject (date, texts) {\n if (_dateObject.D) return _dateObject\n\n const YYYY = date.getFullYear()\n const M = date.getMonth() + 1\n const D = date.getDate()\n const day = date.getDay() // Day of the week.\n const dayNumber = (day - 1 + 7) % 7 // Day of the week. 0 to 6 with 6 = Sunday.\n // Some of this props are functions, to only calculate on demand.\n _dateObject = {\n // Year.\n YYYY, // 2019.\n YY: () => YYYY.toString().substring(2), // 19.\n\n // Month.\n M, // 1 to 12.\n MM: () => (M < 10 ? '0' : '') + M, // 01 to 12.\n MMM: () => texts.months[M - 1].substring(0, 3), // Jan to Dec.\n MMMM: () => texts.months[M - 1], // January to December.\n MMMMG: () => (texts.monthsGenitive || texts.months)[M - 1], // January to December in genitive form (Greek...)\n\n // Day.\n D, // 1 to 31.\n DD: () => (D < 10 ? '0' : '') + D, // 01 to 31.\n S: () => this._nth(D), // st, nd, rd, th.\n\n // Day of the week.\n d: dayNumber + 1, // 1 to 7 with 7 = Sunday.\n dd: () => texts.weekDays[dayNumber][0], // M to S.\n ddd: () => texts.weekDays[dayNumber].substr(0, 3), // Mon to Sun.\n dddd: () => texts.weekDays[dayNumber] // Monday to Sunday.\n }\n\n return _dateObject\n }\n\n _hydrateTimeObject (date, texts) {\n if (_timeObject.am) return _timeObject\n\n let H, m\n if (date instanceof Date) {\n H = date.getHours()\n m = date.getMinutes()\n }\n else {\n H = Math.floor(date / 60)\n m = Math.floor(date % 60)\n }\n\n const h = H % 12 ? H % 12 : 12\n const am = (texts || { am: 'am', pm: 'pm' })[H === 24 || H < 12 ? 'am' : 'pm']\n _timeObject = {\n H,\n h,\n HH: (H < 10 ? '0' : '') + H,\n hh: (h < 10 ? '0' : '') + h,\n am,\n AM: am.toUpperCase(),\n m,\n mm: (m < 10 ? '0' : '') + m\n }\n\n return _timeObject\n }\n // ====================================================================\n}\n","/**\n * Cell Utils.\n *\n * Waiting for VS Code to support JavaScript private fields.\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes/Class_fields\n * Meantime keep `_` for private.\n */\n\nconst minutesInADay = 24 * 60\n\nexport default class CellUtils {\n _vuecal = null\n\n constructor (vuecal) {\n this._vuecal = vuecal\n }\n\n /**\n * Select a cell and go to narrower view on double click or single click according to vuecalProps option.\n *\n * @param {Boolean} force Force switching to narrower view.\n * @param {Date} date The selected cell date at the exact time where it was clicked (through cursor coords).\n * @param {Integer} split The selected cell split if any.\n */\n selectCell = (force = false, date, split) => {\n // Cell-click event returns a date and time at cursor position.\n this._vuecal.$emit('cell-click', split ? { date, split } : date)\n\n // Switch to narrower view.\n if (this._vuecal.clickToNavigate || force) this._vuecal.switchToNarrowerView()\n\n // Handle double click manually for touch devices.\n else if (this._vuecal.dblclickToNavigate && 'ontouchstart' in window) {\n this._vuecal.domEvents.dblTapACell.taps++\n\n setTimeout(() => (this._vuecal.domEvents.dblTapACell.taps = 0), this._vuecal.domEvents.dblTapACell.timeout)\n\n if (this._vuecal.domEvents.dblTapACell.taps >= 2) {\n this._vuecal.domEvents.dblTapACell.taps = 0\n this._vuecal.switchToNarrowerView()\n this._vuecal.$emit('cell-dblclick', split ? { date, split } : date)\n }\n }\n }\n\n /**\n * Select a cell and go to narrower view on enter.\n *\n * @param {Boolean} force Force switching to narrower view.\n * @param {Date} date The selected cell date at the exact time where it was clicked (through cursor coords).\n * @param {Integer} split The selected cell split if any.\n */\n keyPressEnterCell = (date, split) => {\n // Cell-key-press-enter event returns a date and time at cursor position.\n this._vuecal.$emit('cell-keypress-enter', split ? { date, split } : date)\n\n // Switch to narrower view.\n this._vuecal.switchToNarrowerView()\n }\n\n /**\n * Get the coordinates of the mouse cursor from the cells wrapper referential (`ref=\"cells\"`).\n *\n * @todo Cache bounding box & update it on resize.\n * @param {Object} e the native DOM event object.\n * @return {Object} containing { x: {Number}, y: {Number} }\n */\n getPosition = e => {\n const { left, top } = this._vuecal.cellsEl.getBoundingClientRect()\n const { clientX, clientY } = 'ontouchstart' in window && e.touches ? e.touches[0] : e\n return { x: clientX - left, y: clientY - top }\n }\n\n /**\n * Get the number of minutes from the top to the mouse cursor.\n * Returns a constrained time between 0 and 24 * 60.\n *\n * @param {Object} e the native DOM event object.\n * @return {Object} containing { minutes: {Number}, cursorCoords: { x: {Number}, y: {Number} } }\n */\n minutesAtCursor = e => {\n let minutes = 0\n let cursorCoords = { x: 0, y: 0 }\n const { timeStep, timeCellHeight, timeFrom } = this._vuecal.$props\n\n if (typeof e === 'number') minutes = e\n else if (typeof e === 'object') {\n cursorCoords = this.getPosition(e)\n minutes = Math.round(cursorCoords.y * timeStep / parseInt(timeCellHeight) + timeFrom)\n }\n\n return { minutes: Math.max(Math.min(minutes, minutesInADay), 0), cursorCoords }\n }\n}\n","/**\n * Events Utils.\n *\n * Waiting for VS Code to support JavaScript private fields.\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes/Class_fields\n * Meantime keep `_` for private.\n */\n\nconst defaultEventDuration = 2 // In hours.\nconst minutesInADay = 24 * 60 // Don't do the maths every time.\n\nlet ud\n\n// Event overlaps: only for the current view, recreated on view change.\nlet _cellOverlaps, _comparisonArray\n\n// This is an approximation, it will not work with DLS time.\n// const approxDayMilliseconds = minutesInADay * 60 * 1000\n// This is an approximate minimum we can get in a year. Purposely stay below 365 but close.\n// const minYearMilliseconds = 364 * approxDayMilliseconds // Don't do the maths every time.\n\nexport default class EventUtils {\n _vuecal = null\n\n eventDefaults = {\n _eid: null,\n start: '', // Externally given formatted date & time or Date object.\n startTimeMinutes: 0,\n end: '', // Externally given formatted date & time or Date object.\n endTimeMinutes: 0,\n title: '',\n content: '',\n background: false,\n allDay: false,\n segments: null,\n repeat: null,\n daysCount: 1,\n deletable: true,\n deleting: false,\n titleEditable: true,\n resizable: true,\n resizing: false,\n draggable: true,\n dragging: false,\n draggingStatic: false, // Controls the CSS class of the static clone while dragging.\n focused: false,\n class: ''\n }\n\n constructor (vuecal, dateUtils) {\n this._vuecal = vuecal\n ud = dateUtils\n }\n\n /**\n * Create an event at the given date and time, and allow overriding\n * event attributes through the eventOptions object.\n *\n * @param {Date | String} dateTime The date and time of the new event start.\n * @param {Number} duration the event duration in minutes.\n * @param {Object} eventOptions some options to override the `eventDefaults` - optional.\n */\n createAnEvent (dateTime, duration, eventOptions) {\n if (typeof dateTime === 'string') dateTime = ud.stringToDate(dateTime)\n if (!(dateTime instanceof Date)) return false\n\n const startTimeMinutes = ud.dateToMinutes(dateTime)\n duration = duration * 1 || defaultEventDuration * 60\n const endTimeMinutes = startTimeMinutes + duration\n const end = ud.addMinutes(new Date(dateTime), duration)\n\n // Automatically add the required endTimeMinutes when passing an end.\n if (eventOptions.end) {\n if (typeof eventOptions.end === 'string') eventOptions.end = ud.stringToDate(eventOptions.end)\n eventOptions.endTimeMinutes = ud.dateToMinutes(eventOptions.end)\n }\n\n const event = {\n ...this.eventDefaults,\n _eid: `${this._vuecal._.uid}_${this._vuecal.eventIdIncrement++}`,\n start: dateTime,\n startTimeMinutes,\n end,\n endTimeMinutes,\n segments: null,\n ...eventOptions\n }\n\n // If the onEventCreate() function is given as a parameter to vue-cal:\n // 1. give it access to the created event & the deleteAnEvent() function.\n // 2. Prevent creation of the event if this function returns false.\n if (typeof this._vuecal.onEventCreate === 'function') {\n if (!this._vuecal.onEventCreate(event, () => this.deleteAnEvent(event))) return\n }\n\n // Check if event is a multiple day event and update days count.\n if (event.startDateF !== event.endDateF) {\n event.daysCount = ud.countDays(event.start, event.end)\n }\n\n // Add event to the mutableEvents array.\n this._vuecal.mutableEvents.push(event)\n\n // Add the new event to the current view.\n // The event may have been edited on the fly to become a multiple-day event,\n // the method addEventsToView makes sure the segments are created.\n this._vuecal.addEventsToView([event])\n\n this._vuecal.emitWithEvent('event-create', event)\n this._vuecal.$emit('event-change', { event: this._vuecal.cleanupEvent(event), originalEvent: null })\n\n return event\n }\n\n /**\n * Add an event segment (= day) to a multiple-day event.\n *\n * @param {Object} e the multiple-day event to add segment in.\n */\n addEventSegment (e) {\n // If event was previously single-day, event.segments = null,\n // so first create the first segment (first day).\n if (!e.segments) {\n e.segments = {}\n e.segments[ud.formatDateLite(e.start)] = {\n start: e.start,\n startTimeMinutes: e.startTimeMinutes,\n endTimeMinutes: minutesInADay,\n isFirstDay: true,\n isLastDay: false\n }\n }\n\n // Modify the last segment - which will not stay the last one after this function.\n const previousSegment = e.segments[ud.formatDateLite(e.end)]\n // previousSegment might not exist when dragging too fast, prevent errors.\n if (previousSegment) {\n previousSegment.isLastDay = false\n previousSegment.endTimeMinutes = minutesInADay\n }\n else {\n // @todo: when moving fast might lose the previousSegment.\n // Trying to update it would then result in an error, but do nothing would create a visual bug.\n }\n\n // Create the new last segment.\n const start = ud.addDays(e.end, 1)\n const formattedDate = ud.formatDateLite(start)\n start.setHours(0, 0, 0, 0)\n e.segments[formattedDate] = {\n start,\n startTimeMinutes: 0,\n endTimeMinutes: e.endTimeMinutes,\n isFirstDay: false,\n isLastDay: true\n }\n\n e.end = ud.addMinutes(start, e.endTimeMinutes)\n e.daysCount = Object.keys(e.segments).length\n\n return formattedDate\n }\n\n /**\n * Remove an event segment (= day) from a multiple-day event.\n *\n * @param {Object} e the multiple-day event to remove segments from.\n */\n removeEventSegment (e) {\n let segmentsCount = Object.keys(e.segments).length\n if (segmentsCount <= 1) return ud.formatDateLite(e.end)\n\n // Remove the last segment.\n delete e.segments[ud.formatDateLite(e.end)]\n segmentsCount--\n\n const end = ud.subtractDays(e.end, 1)\n const formattedDate = ud.formatDateLite(end)\n const previousSegment = e.segments[formattedDate]\n\n // If no more segments, reset the segments attribute to null.\n if (!segmentsCount) e.segments = null\n\n // previousSegment might not exist when dragging too fast, prevent errors.\n else if (previousSegment) {\n // Modify the new last segment.\n previousSegment.isLastDay = true\n previousSegment.endTimeMinutes = e.endTimeMinutes\n }\n else {\n // @todo: when moving fast might lose the previousSegment.\n // Trying to update it would then result in an error, but do nothing would create a visual bug.\n }\n\n e.daysCount = segmentsCount || 1\n e.end = end\n\n return formattedDate\n }\n\n /**\n * Create 1 segment per day of the given event, but only within the current view.\n * (It won't create segments for all the days in view that are not in the event!)\n *\n * An event segment is a piece of event per day that contains more day-specific data.\n *\n * @param {Object} e the multiple-day event to create segments for.\n * @param {Date} viewStartDate the starting date of the view.\n * @param {Date} viewEndDate the ending date of the view.\n */\n createEventSegments (e, viewStartDate, viewEndDate) {\n const viewStartTimestamp = viewStartDate.getTime()\n const viewEndTimestamp = viewEndDate.getTime()\n let eventStart = e.start.getTime()\n let eventEnd = e.end.getTime()\n let repeatedEventStartFound = false\n let timestamp, end, eventStartAtMidnight\n\n // @todo: I don't think we still need that:\n // Removing 1 sec when ending at 00:00, so that we don't create a segment for nothing on last day.\n if (!e.end.getHours() && !e.end.getMinutes()) eventEnd -= 1000\n\n e.segments = {}\n\n // The goal is to create 1 segment per day in the event, but only within the current view.\n if (!e.repeat) { // Simple case first.\n timestamp = Math.max(viewStartTimestamp, eventStart)\n end = Math.min(viewEndTimestamp, eventEnd)\n }\n else {\n // Start at the beginning of the range, and end at soonest between `repeat.until` if any or range end.\n // This range will most likely be too large (e.g. whole week) and we need to narrow it\n // down in the while loop below.\n // We must not create unused segments, it would break the render or result in weird behaviors.\n timestamp = viewStartTimestamp\n end = Math.min(\n viewEndTimestamp,\n e.repeat.until ? ud.stringToDate(e.repeat.until).getTime() : viewEndTimestamp\n )\n }\n\n while (timestamp <= end) {\n let createSegment = false\n // Be careful not to simply add 24 hours!\n // In case of DLS, that would cause the event to never end and browser to hang.\n // So use `addDays(1)` instead.\n const nextMidnight = ud.addDays(new Date(timestamp), 1).setHours(0, 0, 0, 0)\n let isFirstDay, isLastDay, start, formattedDate\n\n if (e.repeat) {\n const tmpDate = new Date(timestamp)\n const tmpDateFormatted = ud.formatDateLite(tmpDate)\n // If the current day in loop is a known date of the repeated event (in `e.occurrences`),\n // then we found the first day of the event repetition, now update the `eventStart` and\n // the end of the loop at current day + event days count.\n if (repeatedEventStartFound || (e.occurrences && e.occurrences[tmpDateFormatted])) {\n if (!repeatedEventStartFound) {\n eventStart = e.occurrences[tmpDateFormatted].start\n eventStartAtMidnight = new Date(eventStart).setHours(0, 0, 0, 0)\n eventEnd = e.occurrences[tmpDateFormatted].end\n }\n repeatedEventStartFound = true\n createSegment = true\n }\n\n isFirstDay = timestamp === eventStartAtMidnight\n isLastDay = tmpDateFormatted === ud.formatDateLite(new Date(eventEnd))\n start = new Date(isFirstDay ? eventStart : timestamp)\n formattedDate = ud.formatDateLite(start)\n // We want to find any potential other repetition of event in same range.\n if (isLastDay) repeatedEventStartFound = false\n }\n else {\n createSegment = true\n isFirstDay = timestamp === eventStart\n isLastDay = end === eventEnd && nextMidnight > end\n start = isFirstDay ? e.start : new Date(timestamp)\n formattedDate = ud.formatDateLite(isFirstDay ? e.start : start)\n }\n\n if (createSegment) {\n e.segments[formattedDate] = {\n start,\n startTimeMinutes: isFirstDay ? e.startTimeMinutes : 0,\n endTimeMinutes: isLastDay ? e.endTimeMinutes : minutesInADay,\n isFirstDay,\n isLastDay\n }\n }\n\n timestamp = nextMidnight\n }\n\n return e\n }\n\n /**\n * Delete an event.\n *\n * @param {Object} event the calendar event to delete.\n */\n deleteAnEvent (event) {\n this._vuecal.emitWithEvent('event-delete', event)\n\n // Delete the event globally.\n this._vuecal.mutableEvents = this._vuecal.mutableEvents.filter(e => e._eid !== event._eid)\n // Delete the event from the current view.\n // checkCellOverlappingEvents() will be re-run automatically from the cell computed events.\n this._vuecal.view.events = this._vuecal.view.events.filter(e => e._eid !== event._eid)\n }\n\n // EVENT OVERLAPS.\n // ===================================================================\n // Will recalculate all the overlaps of the current cell OR split.\n // cellEvents will contain only the current split events if in a split.\n checkCellOverlappingEvents (cellEvents, options) {\n _comparisonArray = cellEvents.slice(0)\n _cellOverlaps = {}\n\n // Can't filter background events before calling this function otherwise\n // when an event is changed to background it would not update its previous overlaps.\n cellEvents.forEach(e => {\n // For performance, never compare the current event in the next loops.\n // The array is smaller and smaller as we loop.\n _comparisonArray.shift()\n\n if (!_cellOverlaps[e._eid]) _cellOverlaps[e._eid] = { overlaps: [], start: e.start, position: 0, sameOverlaps: [] }\n _cellOverlaps[e._eid].position = 0\n\n _comparisonArray.forEach(e2 => {\n if (!_cellOverlaps[e2._eid]) _cellOverlaps[e2._eid] = { overlaps: [], start: e2.start, position: 0, sameOverlaps: [] }\n\n const eventIsInRange = this.eventInRange(e2, e.start, e.end)\n const eventSameOverlap = this.eventSameRange(e2, e)\n const eventsInSameTimeStep = options.overlapsPerTimeStep ? ud.datesInSameTimeStep(e.start, e2.start, options.timeStep) : 1\n // Add to the overlaps array if overlapping.\n if (!e.background && !e.allDay && !e2.background && !e2.allDay && eventIsInRange && eventsInSameTimeStep) {\n _cellOverlaps[e._eid].overlaps.push(e2._eid)\n _cellOverlaps[e._eid].overlaps = [...new Set(_cellOverlaps[e._eid].overlaps)] // Dedupe, most performant way.\n\n _cellOverlaps[e2._eid].overlaps.push(e._eid)\n _cellOverlaps[e2._eid].overlaps = [...new Set(_cellOverlaps[e2._eid].overlaps)] // Dedupe, most performant way.\n _cellOverlaps[e2._eid].position++\n \n if (eventSameOverlap) {\n _cellOverlaps[e._eid].sameOverlaps.push(e2._eid)\n _cellOverlaps[e._eid].sameOverlaps = [...new Set(_cellOverlaps[e._eid].sameOverlaps)] // Dedupe, most performant way.\n\n _cellOverlaps[e2._eid].sameOverlaps.push(e._eid)\n _cellOverlaps[e2._eid].sameOverlaps = [...new Set(_cellOverlaps[e2._eid].sameOverlaps)] // Dedupe, most performant way.\n }\n }\n // Remove from the overlaps array if not overlapping or if 1 of the 2 events is background or all-day long.\n else {\n let pos1, pos2\n if ((pos1 = (_cellOverlaps[e._eid] || { overlaps: [] }).overlaps.indexOf(e2._eid)) > -1) _cellOverlaps[e._eid].overlaps.splice(pos1, 1)\n if ((pos2 = (_cellOverlaps[e2._eid] || { overlaps: [] }).overlaps.indexOf(e._eid)) > -1) _cellOverlaps[e2._eid].overlaps.splice(pos2, 1)\n _cellOverlaps[e2._eid].position--\n }\n })\n })\n\n // Overlaps streak is the longest horizontal set of simultaneous events.\n // This is determining the width of events in a streak.\n // e.g. 3 overlapping events in a cell:\n // ___ ___\n // | 1 | |_2_| 1 overlaps 2 & 3; 2 & 3 don't overlap;\n // | | ___ => streak = 2; each width = 50% not 33%.\n // |___| |_3_|\n let longestStreak = 0\n for (const id in _cellOverlaps) {\n const item = _cellOverlaps[id]\n\n // Calculate the position of each event in current streak (determines the CSS left property).\n const overlapsRow = item.overlaps.map(id2 => ({ id: id2, start: _cellOverlaps[id2].start }))\n overlapsRow.push({ id, start: item.start })\n overlapsRow.sort((a, b) => a.start < b.start ? -1 : (a.start > b.start ? 1 : (a.id > b.id ? -1 : 1)))\n item.position = overlapsRow.findIndex(e => e.id === id)\n\n longestStreak = Math.max(this.getOverlapsStreak(item, _cellOverlaps), longestStreak)\n }\n\n // console.log([_cellOverlaps, longestStreak])\n\n return [_cellOverlaps, longestStreak]\n }\n\n /**\n * Overlaps streak is the longest horizontal set of simultaneous events.\n * This is determining the width of each events in this streak.\n * E.g. 3 overlapping events [1, 2, 3]; 1 overlaps 2 & 3; 2 & 3 don't overlap;\n * => streak = 2; each width = 50% not 33%.\n *\n * @param {Object} event The current event we are checking among all the events of the current cell.\n * @param {Object} cellOverlaps An indexed array of all the events overlaps for the current cell.\n * @return {Number} The number of simultaneous event for this event.\n */\n getOverlapsStreak (event, cellOverlaps = {}) {\n let streak = event.overlaps.length + 1\n let removeFromStreak = []\n event.overlaps.forEach(id => {\n if (!removeFromStreak.includes(id)) {\n const overlapsWithoutSelf = event.overlaps.filter(id2 => id2 !== id)\n overlapsWithoutSelf.forEach(id3 => {\n if (!cellOverlaps[id3].overlaps.includes(id)) removeFromStreak.push(id3)\n })\n }\n })\n\n removeFromStreak = [...new Set(removeFromStreak)] // Dedupe, most performant way.\n streak -= removeFromStreak.length\n return streak\n }\n\n /**\n * Tells whether an event is in a given date range, even partially.\n *\n * @param {Object} event The event to test.\n * @param {Date} start The start of range date object.\n * @param {Date} end The end of range date object.\n * @return {Boolean} true if in range, even partially.\n */\n eventInRange (event, start, end) {\n // Check if all-day or timeless event (if date but no time there won't be a `:` in event.start).\n if (event.allDay || !this._vuecal.time) {\n // Get the date and discard the time if any, then check it's within the date range.\n const startTimestamp = new Date(event.start).setHours(0, 0, 0, 0)\n const endTimestamp = new Date(event.end).setHours(23, 59, 0, 0)\n return (endTimestamp >= new Date(start).setHours(0, 0, 0, 0) &&\n startTimestamp <= new Date(end).setHours(0, 0, 0, 0))\n }\n\n const startTimestamp = event.start.getTime()\n const endTimestamp = event.end.getTime()\n return startTimestamp < end.getTime() && endTimestamp > start.getTime()\n }\n\n eventSameRange(event1, event2) {\n const isSameStart = event1.start.getTime() == event2.start.getTime()\n const isSameEnd = event1.end.getTime() == event2.end.getTime()\n return isSameStart && isSameEnd\n }\n}\n","
{{ split.label }}
","
","import { render } from \"./weekdays-headings.vue?vue&type=template&id=339102eb&lang=pug\"\nimport script from \"./weekdays-headings.vue?vue&type=script&lang=js\"\nexport * from \"./weekdays-headings.vue?vue&type=script&lang=js\"\n\nimport \"./weekdays-headings.vue?vue&type=style&index=0&id=339102eb&lang=scss\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./header.vue?vue&type=template&id=19ea4718&lang=pug\"\nimport script from \"./header.vue?vue&type=script&lang=js\"\nexport * from \"./header.vue?vue&type=script&lang=js\"\n\nimport \"./header.vue?vue&type=style&index=0&id=19ea4718&lang=scss\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","
{{ label }}
","
{{ cell.label }}\n
","
{{ vuecal.texts.deleteEvent }}
","import { render } from \"./event.vue?vue&type=template&id=22b11fb6&lang=pug\"\nimport script from \"./event.vue?vue&type=script&lang=js\"\nexport * from \"./event.vue?vue&type=script&lang=js\"\n\nimport \"./event.vue?vue&type=style&index=0&id=22b11fb6&lang=scss\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./cell.vue?vue&type=template&id=25383531&lang=pug\"\nimport script from \"./cell.vue?vue&type=script&lang=js\"\nexport * from \"./cell.vue?vue&type=script&lang=js\"\n\nimport \"./cell.vue?vue&type=style&index=0&id=25383531&lang=scss\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./all-day-bar.vue?vue&type=template&id=1fec77b5&lang=pug\"\nimport script from \"./all-day-bar.vue?vue&type=script&lang=js\"\nexport * from \"./all-day-bar.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./index.vue?vue&type=template&id=59399e28\"\nimport script from \"./index.vue?vue&type=script&lang=js\"\nexport * from \"./index.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/Users/romankravarik/gitrepo/jandl-taskmanager-app/app/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { App } \t\tfrom 'vue'\nimport VueCal from './index.vue'\n\n\nexport default {\n\tinstall: (app: App) => {\n\n\t\tapp.component('Vue-cal', VueCal)\n\t}\n}","import { createApp } \tfrom 'vue'\nimport { IonicVue } \tfrom '@ionic/vue'\nimport { loadFonts } \tfrom './webfontloader'\nimport vuetify \t\t\tfrom './vuetify'\nimport loader \t\t\tfrom 'vue-loading-overlay'\nimport App \t\t\t\tfrom './App.vue'\n\nimport router \t\t\tfrom './router'\nimport store \t\t\tfrom '@/store'\nimport w \t\t\t\tfrom '@/plugins/w/w'\nimport axiosCustom from '@/plugins/w@custom/axios'\nimport tmStore \t\t\tfrom '@/plugins/tm@_store'\nimport vueCal \t\t\tfrom '@/plugins/app@vendor/vue-cal'\nimport { Options } \t\tfrom '@/plugins/w/w/types'\n\nimport '@ionic/vue/css/core.css'\nimport '@ionic/vue/css/normalize.css'\nimport '@ionic/vue/css/structure.css'\nimport '@ionic/vue/css/typography.css'\nimport '@ionic/vue/css/padding.css'\nimport '@ionic/vue/css/float-elements.css'\nimport '@ionic/vue/css/text-alignment.css'\nimport '@ionic/vue/css/text-transformation.css'\nimport '@ionic/vue/css/flex-utils.css'\nimport '@ionic/vue/css/display.css'\n\nimport '@/plugins/app/_theme/index.sass'\nimport 'vue-loading-overlay/dist/vue-loading.css'\nimport '@vuepic/vue-datepicker/dist/main.css'\n\nloadFonts()\n\nconst options: Options = {\n\taxios: {\n\t\tdisabled: true\n\t},\n\ti18n: {\n\t\tlanguages: [\n\t\t\t{\n\t\t\t\ttitle: \"Slovenský\", flag: \"sk\", value: \"sk\"\n\t\t\t}\n\t\t],\n\t\tdefaultLanguage: 'sk'\n\t},\n\tmoxios: {\n\t\troutes: {\n\t\t\t// 'GET v1/auth/info': true,\n\t\t\t// 'POST v1/auth/forgot': true,\n\t\t\t// 'POST v1/auth/reset': true,\n\t\t\t// 'POST v1/auth/info': true,\n\t\t\t// 'POST v1/auth/invalidate': true,\n\t\t\t// 'POST v1/auth/login': true,\n\t\t\t// 'POST v1/auth/post': true,\n\n\t\t\t'GET v1/overview/teams': true,\n\t\t\t'GET v1/overview/tasks': true,\n\t\t\t// 'GET v1/search': true,\n\t\t}\n\t}\n}\n\nconst app = createApp(App)\n\t.use(router)\n\t.use(store)\n\t.use(axiosCustom)\n\t.use(w, options)\n\t.use(IonicVue)\n\t.use(vuetify)\n\t.use(vueCal)\n\t.use(tmStore)\n\t.use(loader, {\n\t\tcolor: '#6200EE'\n\t})\n\t.mount('#app')\n\n// @ts-expect-error\nexport const $t = app.$i18n.t\n","import { $t } from '@/plugins/app/_config/main'\n\nexport default {\n\tparseErrors(errors) {\n\t\t// @ts-expect-error\n\t\treturn Object.values(errors).map(error => $t(error?.$message)).join('. ')\n\t}\n}","export default {\n\tmethods: {\n\t\tcustomFilter(item, input) {\n\t\t\t// Replace accented characters with non-accented equivalents\n\t\t\tconst normalizedItem = item.normalize('NFD').replace(/[\\u0300-\\u036f]/g, '');\n\t\t\tconst normalizedInput = input.normalize('NFD').replace(/[\\u0300-\\u036f]/g, '');\n\t\t\t\n\t\t\t// Remove any character that is not a letter, number, or space from both the item and the input\n\t\t\tconst pattern = /[^a-zA-Z0-9 ]/g;\n\t\t\tconst cleanedItem = normalizedItem.replace(pattern, '');\n\t\t\tconst cleanedInput = normalizedInput.replace(pattern, '');\n\t\t\t\n\t\t\t// Check if the cleaned item starts with the cleaned input and return empty value for dropdown if present\n\t\t\treturn cleanedItem.toLowerCase().includes(cleanedInput.toLowerCase()) || item === '';\n\t\t}\n\t}\n}","import moment from 'moment'\n\nexport default {\n\tenrichEmployees(employees) {\n\t\treturn employees.map(employee => ({\n\t\t\t...employee, \n\t\t\t_fullName: `${ employee.name } ${ employee.surname }`,\n\t\t\t_initials: employee.name.charAt(0) + employee.surname.charAt(0)\n\t\t}))\n\t},\n\n\tformatDateTime(date) {\n\t\tmoment(date)\n\t\treturn moment(date).format('DD.MM.yyyy, HH:mm')\n\t},\n\n\tformatDateTimeForBackend(date) {\n\t\treturn moment(date).format('YYYY-MM-DD HH:mm:ss')\n\t},\n\n\tformatDate(date) {\n\t\treturn moment(date).format('DD.MM.yyyy')\n\t},\n\n\tisBefore(date, compareTo = null) {\n\t\treturn moment(date).isBefore(moment(compareTo))\n\t},\n\n\tisAfter(date, compareTo = moment()) {\n\t\treturn moment(date).isAfter(moment(compareTo))\n\t}\n}","var map = {\n\t\"./en.json\": 20790,\n\t\"./sk.json\": 71941\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 8973;","var map = {\n\t\"./ar.json\": [\n\t\t68568,\n\t\t8568\n\t],\n\t\"./bg.json\": [\n\t\t20684,\n\t\t684\n\t],\n\t\"./bn.json\": [\n\t\t61170,\n\t\t1170\n\t],\n\t\"./bs.json\": [\n\t\t41161,\n\t\t1161\n\t],\n\t\"./ca.json\": [\n\t\t40612,\n\t\t612\n\t],\n\t\"./cs.json\": [\n\t\t50213,\n\t\t213\n\t],\n\t\"./da.json\": [\n\t\t98542,\n\t\t8542\n\t],\n\t\"./de.json\": [\n\t\t4701,\n\t\t4701\n\t],\n\t\"./el.json\": [\n\t\t20453,\n\t\t453\n\t],\n\t\"./en.json\": [\n\t\t3320,\n\t\t3320\n\t],\n\t\"./es.json\": [\n\t\t60076,\n\t\t76\n\t],\n\t\"./et.json\": [\n\t\t44075,\n\t\t4075\n\t],\n\t\"./fa.json\": [\n\t\t69004,\n\t\t9004\n\t],\n\t\"./fr.json\": [\n\t\t60007,\n\t\t7\n\t],\n\t\"./he.json\": [\n\t\t23746,\n\t\t3746\n\t],\n\t\"./hr.json\": [\n\t\t92921,\n\t\t2921\n\t],\n\t\"./hu.json\": [\n\t\t75723,\n\t\t5723\n\t],\n\t\"./id.json\": [\n\t\t12502,\n\t\t2502\n\t],\n\t\"./is.json\": [\n\t\t13214,\n\t\t3214\n\t],\n\t\"./it.json\": [\n\t\t51380,\n\t\t1380\n\t],\n\t\"./ja.json\": [\n\t\t72484,\n\t\t2484\n\t],\n\t\"./ka.json\": [\n\t\t60285,\n\t\t285\n\t],\n\t\"./ko.json\": [\n\t\t79249,\n\t\t9249\n\t],\n\t\"./lt.json\": [\n\t\t42838,\n\t\t2838\n\t],\n\t\"./mn.json\": [\n\t\t6177,\n\t\t6177\n\t],\n\t\"./nl.json\": [\n\t\t99729,\n\t\t9729\n\t],\n\t\"./no.json\": [\n\t\t49409,\n\t\t9409\n\t],\n\t\"./pl.json\": [\n\t\t25409,\n\t\t5409\n\t],\n\t\"./pt-br.json\": [\n\t\t74529,\n\t\t4529\n\t],\n\t\"./ro.json\": [\n\t\t29715,\n\t\t9715\n\t],\n\t\"./ru.json\": [\n\t\t32113,\n\t\t2113\n\t],\n\t\"./sk.json\": [\n\t\t30229,\n\t\t229\n\t],\n\t\"./sl.json\": [\n\t\t28636,\n\t\t8636\n\t],\n\t\"./sq.json\": [\n\t\t204,\n\t\t204\n\t],\n\t\"./sr.json\": [\n\t\t55553,\n\t\t5553\n\t],\n\t\"./sv.json\": [\n\t\t75979,\n\t\t5979\n\t],\n\t\"./tr.json\": [\n\t\t5268,\n\t\t5268\n\t],\n\t\"./uk.json\": [\n\t\t14057,\n\t\t4057\n\t],\n\t\"./vi.json\": [\n\t\t88929,\n\t\t8929\n\t],\n\t\"./zh-cn.json\": [\n\t\t56730,\n\t\t6730\n\t],\n\t\"./zh-hk.json\": [\n\t\t30841,\n\t\t841\n\t]\n};\nfunction webpackAsyncContext(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\treturn Promise.resolve().then(function() {\n\t\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\t\te.code = 'MODULE_NOT_FOUND';\n\t\t\tthrow e;\n\t\t});\n\t}\n\n\tvar ids = map[req], id = ids[0];\n\treturn __webpack_require__.e(ids[1]).then(function() {\n\t\treturn __webpack_require__.t(id, 3 | 16);\n\t});\n}\nwebpackAsyncContext.keys = function() { return Object.keys(map); };\nwebpackAsyncContext.id = 66667;\nmodule.exports = webpackAsyncContext;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\tloaded: false,\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Flag the module as loaded\n\tmodule.loaded = true;\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = function(result, chunkIds, fn, priority) {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar chunkIds = deferred[i][0];\n\t\tvar fn = deferred[i][1];\n\t\tvar priority = deferred[i][2];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every(function(key) { return __webpack_require__.O[key](chunkIds[j]); })) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","var getProto = Object.getPrototypeOf ? function(obj) { return Object.getPrototypeOf(obj); } : function(obj) { return obj.__proto__; };\nvar leafPrototypes;\n// create a fake namespace object\n// mode & 1: value is a module id, require it\n// mode & 2: merge all properties of value into the ns\n// mode & 4: return value when already ns object\n// mode & 16: return value when it's Promise-like\n// mode & 8|1: behave like require\n__webpack_require__.t = function(value, mode) {\n\tif(mode & 1) value = this(value);\n\tif(mode & 8) return value;\n\tif(typeof value === 'object' && value) {\n\t\tif((mode & 4) && value.__esModule) return value;\n\t\tif((mode & 16) && typeof value.then === 'function') return value;\n\t}\n\tvar ns = Object.create(null);\n\t__webpack_require__.r(ns);\n\tvar def = {};\n\tleafPrototypes = leafPrototypes || [null, getProto({}), getProto([]), getProto(getProto)];\n\tfor(var current = mode & 2 && value; typeof current == 'object' && !~leafPrototypes.indexOf(current); current = getProto(current)) {\n\t\tObject.getOwnPropertyNames(current).forEach(function(key) { def[key] = function() { return value[key]; }; });\n\t}\n\tdef['default'] = function() { return value; };\n\t__webpack_require__.d(ns, def);\n\treturn ns;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = function(chunkId) {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce(function(promises, key) {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks\n__webpack_require__.u = function(chunkId) {\n\t// return url for filenames based on template\n\treturn \"js/\" + chunkId + \".\" + {\"7\":\"7cef58a7\",\"76\":\"9977e9df\",\"188\":\"5e35d228\",\"204\":\"4dd3d03d\",\"213\":\"c9ed5252\",\"229\":\"b09f2145\",\"285\":\"6a0985b5\",\"453\":\"04d72c77\",\"612\":\"4ea201aa\",\"684\":\"017ebeb8\",\"702\":\"a81b006f\",\"723\":\"5e5ebdc3\",\"841\":\"65cae984\",\"1161\":\"59a7c68b\",\"1170\":\"16217940\",\"1380\":\"fc40de11\",\"1466\":\"92176aab\",\"1474\":\"298559eb\",\"2113\":\"2a1bcdfa\",\"2484\":\"6def3002\",\"2502\":\"66addef9\",\"2682\":\"450e8cc1\",\"2838\":\"aa69ee5c\",\"2891\":\"34d8f387\",\"2921\":\"b5aad8e9\",\"3214\":\"72d306e7\",\"3311\":\"bcab8a66\",\"3320\":\"fe7033d0\",\"3657\":\"e558064c\",\"3728\":\"3e558208\",\"3746\":\"09ee0424\",\"4057\":\"4b3b38fd\",\"4060\":\"57ab5ec4\",\"4075\":\"2d83f71e\",\"4481\":\"578b8c0f\",\"4529\":\"6ff3334b\",\"4701\":\"e34c277a\",\"5268\":\"5d463fbd\",\"5409\":\"4ce439c3\",\"5553\":\"032fcbe7\",\"5723\":\"09853a5d\",\"5728\":\"07cf4ea4\",\"5867\":\"61e23b49\",\"5979\":\"385e1b41\",\"6177\":\"12db94aa\",\"6730\":\"61289e01\",\"7073\":\"dc374d33\",\"7133\":\"bb841a39\",\"7283\":\"9b796e25\",\"7343\":\"1e290ed5\",\"7458\":\"f602cf50\",\"8024\":\"bb377405\",\"8520\":\"cb7009ea\",\"8542\":\"09badcc3\",\"8568\":\"7f0dfd32\",\"8636\":\"2a90cf11\",\"8731\":\"8acb20fc\",\"8929\":\"ea6da50f\",\"8990\":\"6dd37151\",\"9004\":\"ffe04245\",\"9249\":\"d2b0f88c\",\"9409\":\"339f5afb\",\"9715\":\"21ca1afa\",\"9729\":\"812aea5b\",\"9983\":\"657ab52d\"}[chunkId] + \".js\";\n};","// This function allow to reference async chunks\n__webpack_require__.miniCssF = function(chunkId) {\n\t// return url for filenames based on template\n\treturn \"css/\" + chunkId + \".\" + {\"188\":\"37c2c58b\",\"723\":\"da6281d7\",\"1474\":\"bc127aa4\",\"2682\":\"c32340b5\",\"2891\":\"e49646e6\",\"4060\":\"75a1fa96\",\"4481\":\"8c582369\",\"7073\":\"3978ef96\",\"7283\":\"d6ab05a0\",\"7458\":\"49728a72\",\"9983\":\"8667b7b1\"}[chunkId] + \".css\";\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","var inProgress = {};\nvar dataWebpackPrefix = \"jandl:\";\n// loadScript function to load a script via script tag\n__webpack_require__.l = function(url, done, key, chunkId) {\n\tif(inProgress[url]) { inProgress[url].push(done); return; }\n\tvar script, needAttach;\n\tif(key !== undefined) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tfor(var i = 0; i < scripts.length; i++) {\n\t\t\tvar s = scripts[i];\n\t\t\tif(s.getAttribute(\"src\") == url || s.getAttribute(\"data-webpack\") == dataWebpackPrefix + key) { script = s; break; }\n\t\t}\n\t}\n\tif(!script) {\n\t\tneedAttach = true;\n\t\tscript = document.createElement('script');\n\n\t\tscript.charset = 'utf-8';\n\t\tscript.timeout = 120;\n\t\tif (__webpack_require__.nc) {\n\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n\t\t}\n\t\tscript.setAttribute(\"data-webpack\", dataWebpackPrefix + key);\n\t\tscript.src = url;\n\t}\n\tinProgress[url] = [done];\n\tvar onScriptComplete = function(prev, event) {\n\t\t// avoid mem leaks in IE.\n\t\tscript.onerror = script.onload = null;\n\t\tclearTimeout(timeout);\n\t\tvar doneFns = inProgress[url];\n\t\tdelete inProgress[url];\n\t\tscript.parentNode && script.parentNode.removeChild(script);\n\t\tdoneFns && doneFns.forEach(function(fn) { return fn(event); });\n\t\tif(prev) return prev(event);\n\t};\n\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\n\tscript.onerror = onScriptComplete.bind(null, script.onerror);\n\tscript.onload = onScriptComplete.bind(null, script.onload);\n\tneedAttach && document.head.appendChild(script);\n};","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.nmd = function(module) {\n\tmodule.paths = [];\n\tif (!module.children) module.children = [];\n\treturn module;\n};","__webpack_require__.p = \"/\";","var createStylesheet = function(chunkId, fullhref, resolve, reject) {\n\tvar linkTag = document.createElement(\"link\");\n\n\tlinkTag.rel = \"stylesheet\";\n\tlinkTag.type = \"text/css\";\n\tvar onLinkComplete = function(event) {\n\t\t// avoid mem leaks.\n\t\tlinkTag.onerror = linkTag.onload = null;\n\t\tif (event.type === 'load') {\n\t\t\tresolve();\n\t\t} else {\n\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\tvar realHref = event && event.target && event.target.href || fullhref;\n\t\t\tvar err = new Error(\"Loading CSS chunk \" + chunkId + \" failed.\\n(\" + realHref + \")\");\n\t\t\terr.code = \"CSS_CHUNK_LOAD_FAILED\";\n\t\t\terr.type = errorType;\n\t\t\terr.request = realHref;\n\t\t\tlinkTag.parentNode.removeChild(linkTag)\n\t\t\treject(err);\n\t\t}\n\t}\n\tlinkTag.onerror = linkTag.onload = onLinkComplete;\n\tlinkTag.href = fullhref;\n\n\tdocument.head.appendChild(linkTag);\n\treturn linkTag;\n};\nvar findStylesheet = function(href, fullhref) {\n\tvar existingLinkTags = document.getElementsByTagName(\"link\");\n\tfor(var i = 0; i < existingLinkTags.length; i++) {\n\t\tvar tag = existingLinkTags[i];\n\t\tvar dataHref = tag.getAttribute(\"data-href\") || tag.getAttribute(\"href\");\n\t\tif(tag.rel === \"stylesheet\" && (dataHref === href || dataHref === fullhref)) return tag;\n\t}\n\tvar existingStyleTags = document.getElementsByTagName(\"style\");\n\tfor(var i = 0; i < existingStyleTags.length; i++) {\n\t\tvar tag = existingStyleTags[i];\n\t\tvar dataHref = tag.getAttribute(\"data-href\");\n\t\tif(dataHref === href || dataHref === fullhref) return tag;\n\t}\n};\nvar loadStylesheet = function(chunkId) {\n\treturn new Promise(function(resolve, reject) {\n\t\tvar href = __webpack_require__.miniCssF(chunkId);\n\t\tvar fullhref = __webpack_require__.p + href;\n\t\tif(findStylesheet(href, fullhref)) return resolve();\n\t\tcreateStylesheet(chunkId, fullhref, resolve, reject);\n\t});\n}\n// object to store loaded CSS chunks\nvar installedCssChunks = {\n\t4826: 0\n};\n\n__webpack_require__.f.miniCss = function(chunkId, promises) {\n\tvar cssChunks = {\"188\":1,\"723\":1,\"1474\":1,\"2682\":1,\"2891\":1,\"4060\":1,\"4481\":1,\"7073\":1,\"7283\":1,\"7458\":1,\"9983\":1};\n\tif(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]);\n\telse if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) {\n\t\tpromises.push(installedCssChunks[chunkId] = loadStylesheet(chunkId).then(function() {\n\t\t\tinstalledCssChunks[chunkId] = 0;\n\t\t}, function(e) {\n\t\t\tdelete installedCssChunks[chunkId];\n\t\t\tthrow e;\n\t\t}));\n\t}\n};\n\n// no hmr","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t4826: 0\n};\n\n__webpack_require__.f.j = function(chunkId, promises) {\n\t\t// JSONP chunk loading for javascript\n\t\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\n\t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n\t\t\t// a Promise means \"currently loading\".\n\t\t\tif(installedChunkData) {\n\t\t\t\tpromises.push(installedChunkData[2]);\n\t\t\t} else {\n\t\t\t\tif(true) { // all chunks have JS\n\t\t\t\t\t// setup Promise in chunk cache\n\t\t\t\t\tvar promise = new Promise(function(resolve, reject) { installedChunkData = installedChunks[chunkId] = [resolve, reject]; });\n\t\t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n\t\t\t\t\t// start chunk loading\n\t\t\t\t\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\n\t\t\t\t\t// create error before stack unwound to get useful stacktrace later\n\t\t\t\t\tvar error = new Error();\n\t\t\t\t\tvar loadingEnded = function(event) {\n\t\t\t\t\t\tif(__webpack_require__.o(installedChunks, chunkId)) {\n\t\t\t\t\t\t\tinstalledChunkData = installedChunks[chunkId];\n\t\t\t\t\t\t\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\n\t\t\t\t\t\t\tif(installedChunkData) {\n\t\t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n\t\t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n\t\t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n\t\t\t\t\t\t\t\terror.type = errorType;\n\t\t\t\t\t\t\t\terror.request = realSrc;\n\t\t\t\t\t\t\t\tinstalledChunkData[1](error);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\t__webpack_require__.l(url, loadingEnded, \"chunk-\" + chunkId, chunkId);\n\t\t\t\t} else installedChunks[chunkId] = 0;\n\t\t\t}\n\t\t}\n};\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = function(chunkId) { return installedChunks[chunkId] === 0; };\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = function(parentChunkLoadingFunction, data) {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some(function(id) { return installedChunks[id] !== 0; })) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunkjandl\"] = self[\"webpackChunkjandl\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [4998], function() { return __webpack_require__(13954); })\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["webpackEmptyAsyncContext","req","Promise","resolve","then","e","Error","code","keys","id","module","exports","map","webpackContext","webpackContextResolve","__webpack_require__","o","Object","async","loadFonts","webFontLoader","load","google","families","createVuetify","_createVNode","_component_v_app","_component_v_main","_component_router_view","_component_Z_team_modal","ref","onUpdate","$options","_component_Z_delete_team_modal","_component_Z_task_modal","onOnSubtaskEdited","_component_Z_delete_task_modal","onOnSubtaskDeleted","_component_Z_delete_blocker_modal","onOnBlockerDeleted","_component_Z_delete_master_task_modal","onOnMastertaskDeleted","_component_Z_complete_task_modal","_component_Z_complete_master_task_modal","onMasterTaskEdited","_component_Z_task_add_time_modal","_component_Z_blocker_modal","_component_Z_master_task_modal","_component_Z_delete_team_member_modal","_component_Z_show_menu_modal","class","_createBlock","_component_v_dialog","$data","persistent","_component_v_card","_createElementVNode","_hoisted_1","name","_component_v_icon","onClick","icon","size","_component_v_card_actions","_component_v_btn","variant","disabled","mounted","window","addEventListener","this","handleKeyDown","methods","event","keyCode","visible","mixins","modalMixin","emits","data","team","isDeleting","closeModal","$axios","delete_auth","$emit","$store","commit","error","$toast","__exports__","height","_component_W_loadable","content","_component_v_text_field","$errors","length","label","hint","parseErrors","_createElementBlock","_Fragment","employees","employee","index","key","_fullName","splice","_component_v_autocomplete","_ctx","items","clearable","atLeastOne","value","AutocompleteMixin","v$","useVuelidate","errorUtils","employeeSelect","computed","mapGetters","employeesOptions","selectedEmployeesIds","enrichedEmployees","filter","includes","validations","required","$nextTick","$reset","t","get_auth_data","_enrichTeam","$validate","put_auth","fullTeamResource","post_auth","tmUtils","watch","employeeId","find","push","$refs","autocomplete","search","project_code","subtask","d","_hoisted_3","_hoisted_4","_hoisted_7","_hoisted_8","onFocus","master_task_id","title","_hoisted_2","_component_Datepicker","deadline","Date","format","locale","placeholder","_deadline_time","type","employee_id","version","xmlns","width","viewBox","duration","_hoisted_10","_component_QuillEditor","description","theme","onInput","$event","srcElement","innerHTML","_component_Z_files_upload","files","onFilesUploaded","_hoisted_11","_master_task","_hoisted_12","_hoisted_13","src","require","alt","_hoisted_16","_component_Z_task_readonly_info","onCloseModal","onUpdateSubtask","_hoisted_17","is_finished","multiple","accept","onChange","fileUpload","click","file","_component_v_chip","toFixed","indexOf","$props","emit","props","Array","default","isSaving","Boolean","uploadedFiles","created","maxSize","oversizedFiles","remove","_component_v_row","_component_v_col","cols","_component_v_sheet","timeblock","formatDateTime","start","end","_hoisted_5","_hoisted_6","date","form","starts_at_time","ends_at_time","components","Datepicker","timeblocks","showModal","JSON","parse","stringify","splittedStartsAtTime","split","splittedEndsAtTime","moment","hours","parseInt","minutes","toISOString","timesheets","_update","originalTimeblock","newTimeblock","$events","message","deleteTimeblockWithoutId","i","timesheet","employee_name","preventInputFocus","onDateFocus","undefined","onInputFocus","target","blur","selectedEmployees","mastertask","projectsOptions","pattern","normalizedInput","projectCodeSearch","normalize","replace","projects","project","normalizedProjectCode","toLowerCase","filteredProjects","slice","project_id","selectedProject","onEmployeeSelected","console","log","showAddEmployeeInput","onEmployeeDurationChanged","totalDuration","parseFloat","invalid","teams","_component_A_mastertask_name","color","_component_A_mastertask_status","isFinished","_component_A_task_deadline","_component_A_task_timeblocks","_component_Z_created_by","created_by","_component_A_task_assigned_employee","_employee","_component_A_task_planned_time","_component_A_task_remaining_time","spent_time","_component_A_task_spent_time","_component_A_task_description","master_task_description","_component_Z_files","style","backgroundColor","String","Number","openMastertask","editMode","_initials","charAt","surname","time","timestamp","_hoisted_9","numeric","minValue","user","isAfter","formatDate","_component_v_tooltip","text","location","activator","_mergeProps","getMasterTaskDeadline","mastertasks","masterTask","mt","mastertaskDescription","emptyMessage","file_size","isLoading","response","fetch","path","blob","FileSaver","ZFiles","AMastertaskName","AMastertaskStatus","ATaskTimeblocks","ZCreatedBy","ATaskAssignedEmployee","ATaskPlannedTime","ATaskSpentTime","ATaskRemainingTime","ATaskDescription","ATaskDeadline","VuetifyFixFocusMixin","SelectsMixin","ZTaskReadonlyInfo","ZFilesUpload","QuillEditor","employeeValidations","showDatePicker","selectedNewDate","on","_enrichTask","$forceUpdate","splittedDeadline","master_task","deleteTimeblock","$router","$route","employeesValid","_validateEmployees","getHTML","_mergeDeadlineTimeDate","subtasks","forEach","openDeleteTaskModal","showCompleteTaskModal","filesUploaded","updateSubtask","timeParts","setHours","setMinutes","isError","some","_created_by","oldValue","handler","lastEmployee","deep","setHTML","blocker","tempSubtask","tempMastertask","payload","datepicker","clearValue","_syncDatesTimes","splittedStart","splittedEnd","set","_component_v_select","team_id","_allEmployees","min","onKeyup","_component_A_mastertask_description","_component_A_tasks_table","_component_v_table","_employeeInitials","_employeeFullName","enrichedtasks","openTaskModal","_component_Z_status","status","_component_Z_deadline","_component_Z_team","_component_Z_planned_time","_component_Z_remaining_time","time_worked","_component_Z_spent_time","_component_Z_description","inheritedDescription","isExceeded","enrichedEmployeesInTeam","enrichedEmployeesOutsideTeam","employeesOutsideOfTeam","em","ZDeadline","ZDescription","ZPlannedTime","ZRemainingTime","ZSpentTime","ZStatus","ZTeam","AMastertaskDescription","ATasksTable","enrichedSubtasks","quillEditorRequired","minLength","$each","closeBothModals","teamId","memberId","task","beforeUnmount","off","removeEmployee","removeMemberAlert","member","toggleIsFinished","vuelidateValid","put_auth_data","post_auth_data","openDeleteMasterTaskModal","addTask","onQuillEditorInput","isValid","getHours","getMinutes","toString","padStart","_component_v_card_text","_component_v_spacer","localData","createTask","onTaskCreated","createBlocker","onBlockerCreated","ZDeleteTeamModal","ZTeamModal","ZDeleteTaskModal","ZDeleteBlockerModal","ZTaskModal","ZMasterTaskModal","ZCompleteTaskModal","ZTaskAddTimeModal","ZBlockerModal","ZDeleteMasterTaskModal","ZDeleteTeamMemberModal","ZShowMenuModal","ZCompleteMasterTaskModal","query","dispatch","_showModalsAfterInicialization","onTeamUpdate","onTaskDeleted","onBlockerDeleted","onTaskEdited","onMasterTaskDeleted","repeat","setTimeout","getters","render","createStore","state","mutations","actions","modules","routes","redirect","component","children","meta","requiresAuth","router","createRouter","history","createWebHashHistory","process","beforeEach","to","from","next","isLoggedIn","store","axios","url","config","catch","reject","_config","params","headers","Authorization","install","app","options","globalProperties","encodeGetParams","p","entries","kv","encodeURIComponent","join","strToRegex","s","re","Moxios","constructor","_redirectRequestToMock","bind","_mocks","mock","append","k","m","reUrl","matchMethod","mocked","method","match","fname","VUE_APP_PLATFORM","toUpperCase","c","origin","moxios","values","events","mitt","I18n","properties","instance","translated","availableLanguages","languages","defaultLanguage","language","languageKey","vendorI18n","createI18n","legacy","fallbackLocale","messages","_loadLocaleMessages","missing","_missingTranslation","postTranslation","_postTranslation","changeLanguage","flag","initCurrentLanguage","Preferences","currentLanguage","_addAxiosHeaders","global","locales","warn","matched","use","i18n","$w18n","IonContent","IonPage","IonLabel","IonBackButton","IonCheckbox","IonText","IonButton","IonItem","IonItemGroup","IonItemSliding","IonItemOption","IonItemOptions","IonToolbar","IonHeader","IonFooter","IonSlides","IonSlide","IonSpinner","IonRow","IonCol","IonGrid","IonInput","IonButtons","IonIcon","IonImg","IonList","IonSkeletonText","IonTitle","IonMenu","IonSplitPane","IonMenuButton","IonRouterOutlet","IonSegment","IonSegmentButton","IonVirtualScroll","IonTextarea","IonSearchbar","IonRefresherContent","IonRefresher","IonInfiniteScrollContent","IonInfiniteScroll","IonAvatar","IonThumbnail","IonModal","IonRadioGroup","IonRadio","IonNote","IonCard","IonCardContent","IonTabBar","IonTabButton","IonMenuToggle","IonFab","IonFabButton","IonFabList","IonReorderGroup","IonReorder","IonSelect","IonSelectOption","IonToggle","IonBadge","IonChip","IonTabs","_unauthorised","namespaced","token","localStorage","getItem","auth_success","setItem","auth_error","removeItem","logout","open","login","credentials","signup","finally","forgotPassword","resetPassword","updateUserInfo","registerModule","auth","VueToast","_renderSlot","loader","_startLoading","_stopLoading","WLoadable","ionic","toast","loadable","parseAndTranslate","errorsArray","_parseToArrayOfStrings","$t","statusText","toastUtils","_objectToFormData","_buildFormData","formData","parentKey","File","FormData","unscheduledSubtasks","ongoingSubtasks","initialized","set_mastertasks","set_employees","set_teams","set_projects","set_unscheduled_subtasks","set_ongoing_subtasks","update_team","save_team","delete_team","update_subtask","st","delete_subtask","initialize","all","reloadSubtasks","reloadMastertasks","loadMastertasks","loadEmployees","loadTeams","loadProjects","loadUnscheduledSubtasks","loadOngoingSubtasks","sort","a","b","isInitialized","tmStore","grow","row","column","_hoisted_27","lang","_component_vuecal_header","views","weekDaysInHeader","heading","view","_Transition","appear","_component_all_day_bar","titleEditable","contenteditable","onBlur","vuecal__flex","allDay","cell","week","wrap","_component_weekdays_headings","unscheduledTime","el","_component_vuecal_cell","selectCell","goNarrower","_hoisted_18","_hoisted_19","noEvent","_hoisted_22","formatTime","endTimeMinutes","daysCount","segments","formattedDate","isFirstDay","_hoisted_24","day","_hoisted_26","now","todayDate","todayF","self","_dateObject","_timeObject","DateUtils","texts","noPrototypes","_texts","prototype","addDays","_initDatePrototypes","days","subtractDays","addHours","subtractHours","addMinutes","subtractMinutes","getWeek","isToday","isLeapYear","removePrototypes","updateTexts","_todayFormatted","getDate","getFullYear","getMonth","valueOf","setDate","UTC","dayNum","getUTCDay","setUTCDate","getUTCDate","yearStart","getUTCFullYear","Math","ceil","year","getPreviousFirstDayOfWeek","weekStartsOnSunday","prevFirstDayOfWeek","dayModifier","getDay","stringToDate","countDays","timezoneDiffMs","getTimezoneOffset","datesInSameTimeStep","date1","date2","timeStep","abs","getTime","formatDateLite","dateObj","YYYY","_hydrateDateObject","YY","M","MM","MMM","MMMM","MMMMG","D","DD","S","dd","ddd","dddd","HH","_hydrateTimeObject","H","hh","h","am","AM","mm","contents","result","round","shouldRound","getSeconds","formatTimeLite","timeObj","formatted","_nth","dayNumber","substring","months","monthsGenitive","weekDays","substr","floor","pm","minutesInADay","CellUtils","vuecal","force","_vuecal","clickToNavigate","switchToNarrowerView","dblclickToNavigate","domEvents","dblTapACell","taps","timeout","left","top","cellsEl","getBoundingClientRect","clientX","clientY","touches","x","y","cursorCoords","timeCellHeight","timeFrom","getPosition","max","defaultEventDuration","ud","_cellOverlaps","_comparisonArray","EventUtils","dateUtils","_eid","startTimeMinutes","background","deletable","deleting","resizable","resizing","draggable","dragging","draggingStatic","focused","createAnEvent","dateTime","eventOptions","dateToMinutes","eventDefaults","_","uid","eventIdIncrement","onEventCreate","deleteAnEvent","startDateF","endDateF","mutableEvents","addEventsToView","emitWithEvent","cleanupEvent","originalEvent","addEventSegment","isLastDay","previousSegment","removeEventSegment","segmentsCount","createEventSegments","viewStartDate","viewEndDate","viewStartTimestamp","viewEndTimestamp","eventStartAtMidnight","eventStart","eventEnd","repeatedEventStartFound","until","createSegment","nextMidnight","tmpDate","tmpDateFormatted","occurrences","checkCellOverlappingEvents","cellEvents","shift","overlaps","position","sameOverlaps","e2","eventIsInRange","eventInRange","eventSameOverlap","eventSameRange","eventsInSameTimeStep","overlapsPerTimeStep","pos1","pos2","Set","longestStreak","item","overlapsRow","id2","findIndex","getOverlapsStreak","cellOverlaps","streak","removeFromStreak","overlapsWithoutSelf","id3","startTimestamp","endTimestamp","event1","event2","isSameStart","isSameEnd","role","hideViewSelector","_createCommentVNode","_renderList","v","enabled","_normalizeClass","highlightedControl","onDragenter","drag","viewSelectorDragEnter","onDragleave","viewSelectorDragLeave","hideTitleBar","transitions","_resolveDynamicComponent","startDate","todayButton","_createSlots","$slots","fn","_createTextVNode","hide","today","clickable","toLocaleDateString","_normalizeStyle","onDblclick","dayOfMonth","full","small","xsmall","hasSplits","stickySplitLabels","daySplits","inject","transitionDirection","Function","DOMEvent","selectedDate","utils","cleanupHeading","initials","onTimelineScroll","viewPortOffset","headings","todayFound","startWeekOnSunday","short","cellWidth","reduce","total","weekdayCellStyles","hideWeekdays","cellHeadingsClickable","WeekdaysHeadings","editEvents","viewProps","goToToday","updateSelectedDate","switchToBroaderView","broaderView","switchView","get","direction","enabledViews","showDaySplits","minSplitWidth","dnd","isWeekView","isMonthView","minTimestamp","maxTimestamp","_TransitionGroup","tag","tabindex","onKeypress","_withKeys","onTouchstart","onMousedown","onContextmenu","cellContextmenu","cellDragEnter","onDragover","cellDragOver","cellDragLeave","onDrop","cellDragDrop","showTimeInCells","timeCells","block","eventsOnMonthView","j","_component_event","allOverlaps","overlapsStreak","cellOverlapsStreak","eventId","onMouseenter","onMouseleave","_withModifiers","onMouseup","onTouchend","onTouchmove","onDragstart","onDragend","delete","deleteEvent","cellFormattedDate","eventPosition","touch","dragThreshold","startX","startY","dragged","onMouseDown","clickHoldAnEvent","focusAnEvent","resizeAnEvent","dragAnEvent","focusEvent","timeoutId","onMouseUp","mousedUp","onMouseEnter","preventDefault","onMouseLeave","onTouchMove","onEventClick","onTouchStart","onEnterKeypress","onDblClick","onEventDblclick","onDragStart","eventDragStart","onDragEnd","eventDragEnd","onResizeHandleMouseDown","assign","segment","originalEnd","originalEndTimeMinutes","touchDeleteEvent","cancelDeleteEvent","focusedEvent","cancelDelete","eventDimensions","minutesFromTop","timeTo","bottom","eventStyles","zIdnex","master_task_color","isArray","sameOverlapsLength","parentNotSameOverlaps","minEventWidth","eventClasses","is_blocker","resize","Event","cellSplits","timeAtCursor","highlighted","highlightedSplit","getSplitAtCursor","targetIsSplit","classList","contains","findAncestor","attributes","splitClasses","isWeekend","eventsCount","splitsCount","isDOMElementAnEvent","onCellkeyPressEnter","isSelected","onCellFocus","keyPressEnterCell","isDisabled","onCellMouseDown","clickHoldACell","cancelClickEventCreation","eventCreated","minutesAtCursor","mouseDownOnEvent","create","setUpEventCreation","startCursorY","dragToCreateEvent","dragCreateAnEvent","snapToTime","timeMinutes","plusHalfSnapTime","cellClickHold","setUpCellHoldTimer","cellId","onCellTouchStart","onCellClick","offsetY","dateFrom","dateTo","onCellDblClick","onCellContextMenu","stopPropagation","nowInMinutes","isBeforeMinDate","endDate","isAfterMaxDate","disableDays","isYearsOrYearView","selected","isWeekOrDayView","specialHours","timeScale","cellStart","cellEnd","eventsCountOnYearView","outOfScopeEvents","showAllDayEvents","singleDayInRange","multipleDayInRange","recurrMultDayInRange","splits","cellClasses","current","outOfScope","cellStyles","timelineVisible","todaysTimePosition","Cell","cells","shortEvents","cellOrSplitMinWidth","hasCellOrSplitWidth","minCellWidth","textsDefaults","fill","weekDaysShort","years","month","createEvent","dateFormat","validViews","Header","AllDayBar","provide","previous","activeView","scrollToHour","allDayBarHeight","disableDatePrototypes","disableViews","dragToCreateThreshold","editableEvents","hideBody","hideWeekends","maxDate","minDate","resizeX","showWeekNumbers","splitDays","timeFormat","twelveHour","watchRealTime","ready","firstCellDate","lastCellDate","timeTickerIds","startCell","endCell","loadDragAndDrop","DragAndDrop","validateView","fromViewSelector","viewDateBeforeChange","oldView","setSeconds","daysToAdd","daysToSubtract","weekDaysCount","viewDate","scrollTop","previousNext","modifier","viewId","weekDay","weekDayIndex","isDayHidden","daysWithIndex","dayToShow","daysFromDate","reverse","ue","filteredEvents","Class","parentElement","onMouseMove","eventResizing","eventDragCreation","isClickHoldingEvent","wasResizing","hasResized","dragCreatedEvent","dragCreateStarted","mouseUpOnEvent","eventClicked","mutableEvent","cleanEvent","oldDate","unfocusEvent","clearTimeout","eventClickHandler","onKeyUp","newEndTimeMins","offsetWidth","childElementCount","newEnd","newDaysCount","lastSegmentFormattedDate","dragFromBottom","onEventTitleBlur","oldTitle","updateMutableEvents","multipleDays","discardProps","prop","eventName","getWeekNumber","weekFromFirstCell","firstCellWeekNumber","firstCellDateWeekNumber","currentWeekNumber","timeTick","updateDateTexts","alignWithScrollbar","cellOrSplitHasEvents","loadLocale","currentView","hasTouch","hasEventClickHandler","passive","oncontextmenu","viewportTimelineOffset","removeEventListener","hasTimeColumn","isShortMonthView","TimeFormat","hasShortEvents","minWidth","visibleDaysCount","allDayBar","isNaN","viewCells","unshift","pop","specialDayHours","viewTitle","lastDayOfWeek","y1","m1","formattedMonthYear","y2","m2","fromYear","apply","firstDayOfWeek","dayOfWeek","isDayView","cssClasses","isYearsView","isYearView","oldEvents","newVal","VueCal","createApp","App","axiosCustom","w","IonicVue","vuetify","vueCal","mount","$i18n","errors","$message","customFilter","input","normalizedItem","cleanedItem","cleanedInput","enrichEmployees","formatDateTimeForBackend","isBefore","compareTo","webpackAsyncContext","ids","__webpack_module_cache__","moduleId","cachedModule","loaded","__webpack_modules__","call","deferred","O","chunkIds","priority","notFulfilled","Infinity","fulfilled","every","r","n","getter","__esModule","leafPrototypes","getProto","getPrototypeOf","obj","__proto__","mode","ns","def","getOwnPropertyNames","definition","defineProperty","enumerable","f","chunkId","promises","u","miniCssF","g","globalThis","hasOwnProperty","inProgress","dataWebpackPrefix","l","done","script","needAttach","scripts","document","getElementsByTagName","getAttribute","createElement","charset","nc","setAttribute","onScriptComplete","prev","onerror","onload","doneFns","parentNode","removeChild","head","appendChild","Symbol","toStringTag","nmd","paths","createStylesheet","fullhref","linkTag","rel","onLinkComplete","errorType","realHref","href","err","request","findStylesheet","existingLinkTags","dataHref","existingStyleTags","loadStylesheet","installedCssChunks","miniCss","cssChunks","installedChunks","installedChunkData","promise","loadingEnded","realSrc","webpackJsonpCallback","parentChunkLoadingFunction","moreModules","runtime","chunkLoadingGlobal","__webpack_exports__"],"sourceRoot":""} \ No newline at end of file