ibiz-gantt-elastic
Version:
Gantt chart. Elastic javascript gantt chart. Vue gantt. Project manager responsive gantt. jquery gantt.
18 lines • 198 kB
JavaScript
!function(root,factory){"object"==typeof exports&&"object"==typeof module?module.exports=factory(require("Vue")):"function"==typeof define&&define.amd?define(["Vue"],factory):"object"==typeof exports?exports.GanttElastic=factory(require("Vue")):root.GanttElastic=factory(root.Vue)}(window,function(__WEBPACK_EXTERNAL_MODULE_vue__){return function(modules){var installedModules={};function __webpack_require__(moduleId){if(installedModules[moduleId])return installedModules[moduleId].exports;var module=installedModules[moduleId]={i:moduleId,l:!1,exports:{}};return modules[moduleId].call(module.exports,module,module.exports,__webpack_require__),module.l=!0,module.exports}return __webpack_require__.m=modules,__webpack_require__.c=installedModules,__webpack_require__.d=function(exports,name,getter){__webpack_require__.o(exports,name)||Object.defineProperty(exports,name,{enumerable:!0,get:getter})},__webpack_require__.r=function(exports){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(exports,"__esModule",{value:!0})},__webpack_require__.t=function(value,mode){if(1&mode&&(value=__webpack_require__(value)),8&mode)return value;if(4&mode&&"object"==typeof value&&value&&value.__esModule)return value;var ns=Object.create(null);if(__webpack_require__.r(ns),Object.defineProperty(ns,"default",{enumerable:!0,value:value}),2&mode&&"string"!=typeof value)for(var key in value)__webpack_require__.d(ns,key,function(key){return value[key]}.bind(null,key));return ns},__webpack_require__.n=function(module){var getter=module&&module.__esModule?function(){return module.default}:function(){return module};return __webpack_require__.d(getter,"a",getter),getter},__webpack_require__.o=function(object,property){return Object.prototype.hasOwnProperty.call(object,property)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s="./src/GanttElastic.vue")}({"./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/vue-loader/lib/index.js?!./src/GanttElastic.vue?vue&type=style&index=0&lang=css&":function(module,exports,__webpack_require__){(module.exports=__webpack_require__("./node_modules/css-loader/lib/css-base.js")(!1)).push([module.i,"\n[class^='gantt-elastic'],\n[class*=' gantt-elastic'] {\n box-sizing: border-box;\n}\n.gantt-elastic__main-view svg {\n display: block;\n}\n.gantt-elastic__grid-horizontal-line,\n.gantt-elastic__grid-vertical-line {\n stroke: #a0a0a0;\n stroke-width: 1;\n}\nforeignObject > * {\n margin: 0px;\n}\n.gantt-elastic .p-2 {\n padding: 10rem;\n}\n.gantt-elastic__main-view-main-container,\n.gantt-elastic__main-view-container {\n overflow: hidden;\n max-width: 100%;\n}\n.gantt-elastic__task-list-header-column:last-of-type {\n border-right: 1px solid #00000050;\n}\n.gantt-elastic__task-list-item:last-of-type {\n border-bottom: 1px solid #00000050;\n}\n.gantt-elastic__task-list-item-value-wrapper:hover {\n overflow: visible !important;\n}\n.gantt-elastic__task-list-item-value-wrapper:hover > .gantt-elastic__task-list-item-value-container {\n position: relative;\n overflow: visible !important;\n}\n.gantt-elastic__task-list-item-value-wrapper:hover > .gantt-elastic__task-list-item-value {\n position: absolute;\n}\n.gantt-elastic-flex {\n display: flex;\n flex-direction: column;\n}\n.gantt-elastic-flex .gantt-elastic__header {\n width: 100%;\n}\n",""])},"./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/vue-switches/dist/switches.css?vue&type=style&index=0&lang=css&":function(module,exports,__webpack_require__){(module.exports=__webpack_require__("./node_modules/css-loader/lib/css-base.js")(!1)).push([module.i,"/**\n * Default\n */\n/**\n * Bulma\n */\n/**\n * Bootstrap\n */\n.vue-switcher {\n position: relative;\n display: inline-block;\n}\n.vue-switcher__label {\n display: block;\n font-size: 10px;\n margin-bottom: 5px;\n}\n.vue-switcher input {\n opacity: 0;\n width: 100%;\n height: 100%;\n position: absolute;\n z-index: 1;\n cursor: pointer;\n}\n.vue-switcher div {\n height: 15px;\n width: 36px;\n position: relative;\n border-radius: 30px;\n display: -webkit-flex;\n display: -ms-flex;\n display: flex;\n align-items: center;\n justify-content: flex-start;\n cursor: pointer;\n transition: linear .2s, background-color linear .2s;\n}\n.vue-switcher div:after {\n content: '';\n height: 20px;\n width: 20px;\n border-radius: 100px;\n display: block;\n transition: linear .15s, background-color linear .15s;\n position: absolute;\n left: 100%;\n margin-left: -18px;\n cursor: pointer;\n top: -3px;\n box-shadow: 0 1px 5px 0 rgba(0, 0, 0, 0.1);\n}\n.vue-switcher--unchecked div {\n justify-content: flex-end;\n}\n.vue-switcher--unchecked div:after {\n left: 15px;\n}\n.vue-switcher--disabled div {\n opacity: .3;\n}\n.vue-switcher--disabled input {\n cursor: not-allowed;\n}\n.vue-switcher--bold div {\n top: -8px;\n height: 26px;\n width: 51px;\n}\n.vue-switcher--bold div:after {\n margin-left: -24px;\n top: 3px;\n}\n.vue-switcher--bold--unchecked div:after {\n left: 28px;\n}\n.vue-switcher--bold .vue-switcher__label span {\n padding-bottom: 7px;\n display: inline-block;\n}\n.vue-switcher-theme--default.vue-switcher-color--default div {\n background-color: #b7b7b7;\n}\n.vue-switcher-theme--default.vue-switcher-color--default div:after {\n background-color: #9d9d9d;\n}\n.vue-switcher-theme--default.vue-switcher-color--default.vue-switcher--unchecked div {\n background-color: #aaa;\n}\n.vue-switcher-theme--default.vue-switcher-color--default.vue-switcher--unchecked div:after {\n background-color: #c4c4c4;\n}\n.vue-switcher-theme--default.vue-switcher-color--blue div {\n background-color: #77b0c8;\n}\n.vue-switcher-theme--default.vue-switcher-color--blue div:after {\n background-color: #539bb9;\n}\n.vue-switcher-theme--default.vue-switcher-color--blue.vue-switcher--unchecked div {\n background-color: #c0dae5;\n}\n.vue-switcher-theme--default.vue-switcher-color--blue.vue-switcher--unchecked div:after {\n background-color: #77b0c8;\n}\n.vue-switcher-theme--default.vue-switcher-color--red div {\n background-color: #c87777;\n}\n.vue-switcher-theme--default.vue-switcher-color--red div:after {\n background-color: #b95353;\n}\n.vue-switcher-theme--default.vue-switcher-color--red.vue-switcher--unchecked div {\n background-color: #e5c0c0;\n}\n.vue-switcher-theme--default.vue-switcher-color--red.vue-switcher--unchecked div:after {\n background-color: #c87777;\n}\n.vue-switcher-theme--default.vue-switcher-color--yellow div {\n background-color: #c9c377;\n}\n.vue-switcher-theme--default.vue-switcher-color--yellow div:after {\n background-color: #bab353;\n}\n.vue-switcher-theme--default.vue-switcher-color--yellow.vue-switcher--unchecked div {\n background-color: #e6e3c0;\n}\n.vue-switcher-theme--default.vue-switcher-color--yellow.vue-switcher--unchecked div:after {\n background-color: #c9c377;\n}\n.vue-switcher-theme--default.vue-switcher-color--orange div {\n background-color: #c89577;\n}\n.vue-switcher-theme--default.vue-switcher-color--orange div:after {\n background-color: #b97953;\n}\n.vue-switcher-theme--default.vue-switcher-color--orange.vue-switcher--unchecked div {\n background-color: #e5cec0;\n}\n.vue-switcher-theme--default.vue-switcher-color--orange.vue-switcher--unchecked div:after {\n background-color: #c89577;\n}\n.vue-switcher-theme--default.vue-switcher-color--green div {\n background-color: #77c88d;\n}\n.vue-switcher-theme--default.vue-switcher-color--green div:after {\n background-color: #53b96e;\n}\n.vue-switcher-theme--default.vue-switcher-color--green.vue-switcher--unchecked div {\n background-color: #c0e5ca;\n}\n.vue-switcher-theme--default.vue-switcher-color--green.vue-switcher--unchecked div:after {\n background-color: #77c88d;\n}\n.vue-switcher-theme--bulma.vue-switcher-color--default div {\n background-color: gainsboro;\n}\n.vue-switcher-theme--bulma.vue-switcher-color--default div:after {\n background-color: #f5f5f5;\n}\n.vue-switcher-theme--bulma.vue-switcher-color--default.vue-switcher--unchecked div {\n background-color: #e8e8e8;\n}\n.vue-switcher-theme--bulma.vue-switcher-color--default.vue-switcher--unchecked div:after {\n background-color: #f5f5f5;\n}\n.vue-switcher-theme--bulma.vue-switcher-color--primary div {\n background-color: #05ffda;\n}\n.vue-switcher-theme--bulma.vue-switcher-color--primary div:after {\n background-color: #00d1b2;\n}\n.vue-switcher-theme--bulma.vue-switcher-color--primary.vue-switcher--unchecked div {\n background-color: #6bffe9;\n}\n.vue-switcher-theme--bulma.vue-switcher-color--primary.vue-switcher--unchecked div:after {\n background-color: #05ffda;\n}\n.vue-switcher-theme--bulma.vue-switcher-color--blue div {\n background-color: #5e91e3;\n}\n.vue-switcher-theme--bulma.vue-switcher-color--blue div:after {\n background-color: #3273dc;\n}\n.vue-switcher-theme--bulma.vue-switcher-color--blue.vue-switcher--unchecked div {\n background-color: #b5ccf2;\n}\n.vue-switcher-theme--bulma.vue-switcher-color--blue.vue-switcher--unchecked div:after {\n background-color: #5e91e3;\n}\n.vue-switcher-theme--bulma.vue-switcher-color--red div {\n background-color: #ff6b89;\n}\n.vue-switcher-theme--bulma.vue-switcher-color--red div:after {\n background-color: #ff3860;\n}\n.vue-switcher-theme--bulma.vue-switcher-color--red.vue-switcher--unchecked div {\n background-color: #ffd1da;\n}\n.vue-switcher-theme--bulma.vue-switcher-color--red.vue-switcher--unchecked div:after {\n background-color: #ff6b89;\n}\n.vue-switcher-theme--bulma.vue-switcher-color--yellow div {\n background-color: #ffe78a;\n}\n.vue-switcher-theme--bulma.vue-switcher-color--yellow div:after {\n background-color: #ffdd57;\n}\n.vue-switcher-theme--bulma.vue-switcher-color--yellow.vue-switcher--unchecked div {\n background-color: #fffcf0;\n}\n.vue-switcher-theme--bulma.vue-switcher-color--yellow.vue-switcher--unchecked div:after {\n background-color: #ffe78a;\n}\n.vue-switcher-theme--bulma.vue-switcher-color--green div {\n background-color: #3dde75;\n}\n.vue-switcher-theme--bulma.vue-switcher-color--green div:after {\n background-color: #22c65b;\n}\n.vue-switcher-theme--bulma.vue-switcher-color--green.vue-switcher--unchecked div {\n background-color: #94edb3;\n}\n.vue-switcher-theme--bulma.vue-switcher-color--green.vue-switcher--unchecked div:after {\n background-color: #3dde75;\n}\n.vue-switcher-theme--bootstrap.vue-switcher-color--default div {\n background-color: #e6e6e6;\n}\n.vue-switcher-theme--bootstrap.vue-switcher-color--default div:after {\n background-color: #f0f0f0;\n}\n.vue-switcher-theme--bootstrap.vue-switcher-color--default.vue-switcher--unchecked div {\n background-color: whitesmoke;\n}\n.vue-switcher-theme--bootstrap.vue-switcher-color--default.vue-switcher--unchecked div:after {\n background-color: #f0f0f0;\n}\n.vue-switcher-theme--bootstrap.vue-switcher-color--primary div {\n background-color: #4f93ce;\n}\n.vue-switcher-theme--bootstrap.vue-switcher-color--primary div:after {\n background-color: #337ab7;\n}\n.vue-switcher-theme--bootstrap.vue-switcher-color--primary.vue-switcher--unchecked div {\n background-color: #9fc4e4;\n}\n.vue-switcher-theme--bootstrap.vue-switcher-color--primary.vue-switcher--unchecked div:after {\n background-color: #4f93ce;\n}\n.vue-switcher-theme--bootstrap.vue-switcher-color--success div {\n background-color: #80c780;\n}\n.vue-switcher-theme--bootstrap.vue-switcher-color--success div:after {\n background-color: #5cb85c;\n}\n.vue-switcher-theme--bootstrap.vue-switcher-color--success.vue-switcher--unchecked div {\n background-color: #c7e6c7;\n}\n.vue-switcher-theme--bootstrap.vue-switcher-color--success.vue-switcher--unchecked div:after {\n background-color: #80c780;\n}\n.vue-switcher-theme--bootstrap.vue-switcher-color--info div {\n background-color: #85d0e7;\n}\n.vue-switcher-theme--bootstrap.vue-switcher-color--info div:after {\n background-color: #5bc0de;\n}\n.vue-switcher-theme--bootstrap.vue-switcher-color--info.vue-switcher--unchecked div {\n background-color: #daf1f8;\n}\n.vue-switcher-theme--bootstrap.vue-switcher-color--info.vue-switcher--unchecked div:after {\n background-color: #85d0e7;\n}\n.vue-switcher-theme--bootstrap.vue-switcher-color--warning div {\n background-color: #f4c37d;\n}\n.vue-switcher-theme--bootstrap.vue-switcher-color--warning div:after {\n background-color: #f0ad4e;\n}\n.vue-switcher-theme--bootstrap.vue-switcher-color--warning.vue-switcher--unchecked div {\n background-color: #fceedb;\n}\n.vue-switcher-theme--bootstrap.vue-switcher-color--warning.vue-switcher--unchecked div:after {\n background-color: #f4c37d;\n}\n.vue-switcher-theme--bootstrap.vue-switcher-color--danger div {\n background-color: #d9534f;\n}\n.vue-switcher-theme--bootstrap.vue-switcher-color--danger div:after {\n background-color: #c9302c;\n}\n.vue-switcher-theme--bootstrap.vue-switcher-color--danger.vue-switcher--unchecked div {\n background-color: #eba5a3;\n}\n.vue-switcher-theme--bootstrap.vue-switcher-color--danger.vue-switcher--unchecked div:after {\n background-color: #d9534f;\n}\n",""])},"./node_modules/css-loader/index.js!./node_modules/vue-slider-component/theme/default.css":function(module,exports,__webpack_require__){(module.exports=__webpack_require__("./node_modules/css-loader/lib/css-base.js")(!1)).push([module.i,'/* component style */\n.vue-slider-disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n/* rail style */\n.vue-slider-rail {\n background-color: #ccc;\n border-radius: 15px;\n}\n\n/* process style */\n.vue-slider-process {\n background-color: #3498db;\n border-radius: 15px;\n}\n\n/* mark style */\n.vue-slider-mark {\n z-index: 4;\n}\n.vue-slider-mark:first-child .vue-slider-mark-step, .vue-slider-mark:last-child .vue-slider-mark-step {\n display: none;\n}\n.vue-slider-mark-step {\n width: 100%;\n height: 100%;\n border-radius: 50%;\n background-color: rgba(0, 0, 0, 0.16);\n}\n.vue-slider-mark-label {\n font-size: 14px;\n white-space: nowrap;\n}\n/* dot style */\n.vue-slider-dot-handle {\n cursor: pointer;\n width: 100%;\n height: 100%;\n border-radius: 50%;\n background-color: #fff;\n box-sizing: border-box;\n box-shadow: 0.5px 0.5px 2px 1px rgba(0, 0, 0, 0.32);\n}\n.vue-slider-dot-handle-focus {\n box-shadow: 0px 0px 1px 2px rgba(52, 152, 219, 0.36);\n}\n\n.vue-slider-dot-handle-disabled {\n cursor: not-allowed;\n background-color: #ccc;\n}\n\n.vue-slider-dot-tooltip-inner {\n font-size: 14px;\n white-space: nowrap;\n padding: 2px 5px;\n min-width: 20px;\n text-align: center;\n color: #fff;\n border-radius: 5px;\n border-color: #3498db;\n background-color: #3498db;\n box-sizing: content-box;\n}\n.vue-slider-dot-tooltip-inner::after {\n content: "";\n position: absolute;\n}\n.vue-slider-dot-tooltip-inner-top::after {\n top: 100%;\n left: 50%;\n transform: translate(-50%, 0);\n height: 0;\n width: 0;\n border-color: transparent;\n border-style: solid;\n border-width: 5px;\n border-top-color: inherit;\n}\n.vue-slider-dot-tooltip-inner-bottom::after {\n bottom: 100%;\n left: 50%;\n transform: translate(-50%, 0);\n height: 0;\n width: 0;\n border-color: transparent;\n border-style: solid;\n border-width: 5px;\n border-bottom-color: inherit;\n}\n.vue-slider-dot-tooltip-inner-left::after {\n left: 100%;\n top: 50%;\n transform: translate(0, -50%);\n height: 0;\n width: 0;\n border-color: transparent;\n border-style: solid;\n border-width: 5px;\n border-left-color: inherit;\n}\n.vue-slider-dot-tooltip-inner-right::after {\n right: 100%;\n top: 50%;\n transform: translate(0, -50%);\n height: 0;\n width: 0;\n border-color: transparent;\n border-style: solid;\n border-width: 5px;\n border-right-color: inherit;\n}\n\n.vue-slider-dot-tooltip-wrapper {\n opacity: 0;\n transition: all 0.3s;\n}\n.vue-slider-dot-tooltip-wrapper-show {\n opacity: 1;\n}\n',""])},"./node_modules/css-loader/lib/css-base.js":function(module,exports){module.exports=function(useSourceMap){var list=[];return list.toString=function(){return this.map(function(item){var content=function(item,useSourceMap){var content=item[1]||"",cssMapping=item[3];if(!cssMapping)return content;if(useSourceMap&&"function"==typeof btoa){var sourceMapping=(sourceMap=cssMapping,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))))+" */"),sourceURLs=cssMapping.sources.map(function(source){return"/*# sourceURL="+cssMapping.sourceRoot+source+" */"});return[content].concat(sourceURLs).concat([sourceMapping]).join("\n")}var sourceMap;return[content].join("\n")}(item,useSourceMap);return item[2]?"@media "+item[2]+"{"+content+"}":content}).join("")},list.i=function(modules,mediaQuery){"string"==typeof modules&&(modules=[[null,modules,""]]);for(var alreadyImportedModules={},i=0;i<this.length;i++){var id=this[i][0];"number"==typeof id&&(alreadyImportedModules[id]=!0)}for(i=0;i<modules.length;i++){var item=modules[i];"number"==typeof item[0]&&alreadyImportedModules[item[0]]||(mediaQuery&&!item[2]?item[2]=mediaQuery:mediaQuery&&(item[2]="("+item[2]+") and ("+mediaQuery+")"),list.push(item))}},list}},"./node_modules/dayjs/dayjs.min.js":function(module,exports,__webpack_require__){module.exports=function(){"use strict";var t="millisecond",n="second",e="minute",r="hour",i="day",s="week",u="month",a="quarter",o="year",h=/^(\d{4})-?(\d{1,2})-?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?.?(\d{1,3})?$/,f=/\[([^\]]+)]|Y{2,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,c=function(t,n,e){var r=String(t);return!r||r.length>=n?t:""+Array(n+1-r.length).join(e)+t},d={s:c,z:function(t){var n=-t.utcOffset(),e=Math.abs(n),r=Math.floor(e/60),i=e%60;return(n<=0?"+":"-")+c(r,2,"0")+":"+c(i,2,"0")},m:function(t,n){var e=12*(n.year()-t.year())+(n.month()-t.month()),r=t.clone().add(e,u),i=n-r<0,s=t.clone().add(e+(i?-1:1),u);return Number(-(e+(n-r)/(i?r-s:s-r))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(h){return{M:u,y:o,w:s,d:i,h:r,m:e,s:n,ms:t,Q:a}[h]||String(h||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},$={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},l="en",m={};m[l]=$;var y=function(t){return t instanceof v},M=function(t,n,e){var r;if(!t)return l;if("string"==typeof t)m[t]&&(r=t),n&&(m[t]=n,r=t);else{var i=t.name;m[i]=t,r=i}return e||(l=r),r},g=function(t,n,e){if(y(t))return t.clone();var r=n?"string"==typeof n?{format:n,pl:e}:n:{};return r.date=t,new v(r)},D=d;D.l=M,D.i=y,D.w=function(t,n){return g(t,{locale:n.$L,utc:n.$u})};var v=function(){function c(t){this.$L=this.$L||M(t.locale,null,!0),this.parse(t)}var d=c.prototype;return d.parse=function(t){this.$d=function(t){var n=t.date,e=t.utc;if(null===n)return new Date(NaN);if(D.u(n))return new Date;if(n instanceof Date)return new Date(n);if("string"==typeof n&&!/Z$/i.test(n)){var r=n.match(h);if(r)return e?new Date(Date.UTC(r[1],r[2]-1,r[3]||1,r[4]||0,r[5]||0,r[6]||0,r[7]||0)):new Date(r[1],r[2]-1,r[3]||1,r[4]||0,r[5]||0,r[6]||0,r[7]||0)}return new Date(n)}(t),this.init()},d.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},d.$utils=function(){return D},d.isValid=function(){return!("Invalid Date"===this.$d.toString())},d.isSame=function(t,n){var e=g(t);return this.startOf(n)<=e&&e<=this.endOf(n)},d.isAfter=function(t,n){return g(t)<this.startOf(n)},d.isBefore=function(t,n){return this.endOf(n)<g(t)},d.$g=function(t,n,e){return D.u(t)?this[n]:this.set(e,t)},d.year=function(t){return this.$g(t,"$y",o)},d.month=function(t){return this.$g(t,"$M",u)},d.day=function(t){return this.$g(t,"$W",i)},d.date=function(t){return this.$g(t,"$D","date")},d.hour=function(t){return this.$g(t,"$H",r)},d.minute=function(t){return this.$g(t,"$m",e)},d.second=function(t){return this.$g(t,"$s",n)},d.millisecond=function(n){return this.$g(n,"$ms",t)},d.unix=function(){return Math.floor(this.valueOf()/1e3)},d.valueOf=function(){return this.$d.getTime()},d.startOf=function(t,a){var h=this,f=!!D.u(a)||a,c=D.p(t),d=function(t,n){var e=D.w(h.$u?Date.UTC(h.$y,n,t):new Date(h.$y,n,t),h);return f?e:e.endOf(i)},$=function(t,n){return D.w(h.toDate()[t].apply(h.toDate(),(f?[0,0,0,0]:[23,59,59,999]).slice(n)),h)},l=this.$W,m=this.$M,y=this.$D,M="set"+(this.$u?"UTC":"");switch(c){case o:return f?d(1,0):d(31,11);case u:return f?d(1,m):d(0,m+1);case s:var g=this.$locale().weekStart||0,v=(l<g?l+7:l)-g;return d(f?y-v:y+(6-v),m);case i:case"date":return $(M+"Hours",0);case r:return $(M+"Minutes",1);case e:return $(M+"Seconds",2);case n:return $(M+"Milliseconds",3);default:return this.clone()}},d.endOf=function(t){return this.startOf(t,!1)},d.$set=function(s,a){var h,f=D.p(s),c="set"+(this.$u?"UTC":""),d=(h={},h[i]=c+"Date",h.date=c+"Date",h[u]=c+"Month",h[o]=c+"FullYear",h[r]=c+"Hours",h[e]=c+"Minutes",h[n]=c+"Seconds",h[t]=c+"Milliseconds",h)[f],$=f===i?this.$D+(a-this.$W):a;if(f===u||f===o){var l=this.clone().set("date",1);l.$d[d]($),l.init(),this.$d=l.set("date",Math.min(this.$D,l.daysInMonth())).toDate()}else d&&this.$d[d]($);return this.init(),this},d.set=function(t,n){return this.clone().$set(t,n)},d.get=function(t){return this[D.p(t)]()},d.add=function(t,a){var h,f=this;t=Number(t);var c=D.p(a),d=function(n){var e=g(f);return D.w(e.date(e.date()+Math.round(n*t)),f)};if(c===u)return this.set(u,this.$M+t);if(c===o)return this.set(o,this.$y+t);if(c===i)return d(1);if(c===s)return d(7);var $=(h={},h[e]=6e4,h[r]=36e5,h[n]=1e3,h)[c]||1,l=this.valueOf()+t*$;return D.w(l,this)},d.subtract=function(t,n){return this.add(-1*t,n)},d.format=function(t){var n=this;if(!this.isValid())return"Invalid Date";var e=t||"YYYY-MM-DDTHH:mm:ssZ",r=D.z(this),i=this.$locale(),s=this.$H,u=this.$m,a=this.$M,o=i.weekdays,h=i.months,c=function(t,r,i,s){return t&&(t[r]||t(n,e))||i[r].substr(0,s)},d=function(t){return D.s(s%12||12,t,"0")},$=i.meridiem||function(t,n,e){var r=t<12?"AM":"PM";return e?r.toLowerCase():r},l={YY:String(this.$y).slice(-2),YYYY:this.$y,M:a+1,MM:D.s(a+1,2,"0"),MMM:c(i.monthsShort,a,h,3),MMMM:h[a]||h(this,e),D:this.$D,DD:D.s(this.$D,2,"0"),d:String(this.$W),dd:c(i.weekdaysMin,this.$W,o,2),ddd:c(i.weekdaysShort,this.$W,o,3),dddd:o[this.$W],H:String(s),HH:D.s(s,2,"0"),h:d(1),hh:d(2),a:$(s,u,!0),A:$(s,u,!1),m:String(u),mm:D.s(u,2,"0"),s:String(this.$s),ss:D.s(this.$s,2,"0"),SSS:D.s(this.$ms,3,"0"),Z:r};return e.replace(f,function(t,n){return n||l[t]||r.replace(":","")})},d.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},d.diff=function(t,h,f){var c,d=D.p(h),$=g(t),l=6e4*($.utcOffset()-this.utcOffset()),m=this-$,y=D.m(this,$);return y=(c={},c[o]=y/12,c[u]=y,c[a]=y/3,c[s]=(m-l)/6048e5,c[i]=(m-l)/864e5,c[r]=m/36e5,c[e]=m/6e4,c[n]=m/1e3,c)[d]||m,f?y:D.a(y)},d.daysInMonth=function(){return this.endOf(u).$D},d.$locale=function(){return m[this.$L]},d.locale=function(t,n){if(!t)return this.$L;var e=this.clone();return e.$L=M(t,n,!0),e},d.clone=function(){return D.w(this.toDate(),this)},d.toDate=function(){return new Date(this.$d)},d.toJSON=function(){return this.isValid()?this.toISOString():null},d.toISOString=function(){return this.$d.toISOString()},d.toString=function(){return this.$d.toUTCString()},c}();return g.prototype=v.prototype,g.extend=function(t,n){return t(n,v,g),g},g.locale=M,g.isDayjs=y,g.unix=function(t){return g(1e3*t)},g.en=m[l],g.Ls=m,g}()},"./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js":function(module,__webpack_exports__,__webpack_require__){"use strict";(function(global){var MapShim=function(){if("undefined"!=typeof Map)return Map;function getIndex(arr,key){var result=-1;return arr.some(function(entry,index){return entry[0]===key&&(result=index,!0)}),result}return function(){function class_1(){this.__entries__=[]}return Object.defineProperty(class_1.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),class_1.prototype.get=function(key){var index=getIndex(this.__entries__,key),entry=this.__entries__[index];return entry&&entry[1]},class_1.prototype.set=function(key,value){var index=getIndex(this.__entries__,key);~index?this.__entries__[index][1]=value:this.__entries__.push([key,value])},class_1.prototype.delete=function(key){var entries=this.__entries__,index=getIndex(entries,key);~index&&entries.splice(index,1)},class_1.prototype.has=function(key){return!!~getIndex(this.__entries__,key)},class_1.prototype.clear=function(){this.__entries__.splice(0)},class_1.prototype.forEach=function(callback,ctx){void 0===ctx&&(ctx=null);for(var _i=0,_a=this.__entries__;_i<_a.length;_i++){var entry=_a[_i];callback.call(ctx,entry[1],entry[0])}},class_1}()}(),isBrowser="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,global$1=void 0!==global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),requestAnimationFrame$1="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(global$1):function(callback){return setTimeout(function(){return callback(Date.now())},1e3/60)},trailingTimeout=2;var REFRESH_DELAY=20,transitionKeys=["top","right","bottom","left","width","height","size","weight"],mutationObserverSupported="undefined"!=typeof MutationObserver,ResizeObserverController=function(){function ResizeObserverController(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(callback,delay){var leadingCall=!1,trailingCall=!1,lastCallTime=0;function resolvePending(){leadingCall&&(leadingCall=!1,callback()),trailingCall&&proxy()}function timeoutCallback(){requestAnimationFrame$1(resolvePending)}function proxy(){var timeStamp=Date.now();if(leadingCall){if(timeStamp-lastCallTime<trailingTimeout)return;trailingCall=!0}else leadingCall=!0,trailingCall=!1,setTimeout(timeoutCallback,delay);lastCallTime=timeStamp}return proxy}(this.refresh.bind(this),REFRESH_DELAY)}return ResizeObserverController.prototype.addObserver=function(observer){~this.observers_.indexOf(observer)||this.observers_.push(observer),this.connected_||this.connect_()},ResizeObserverController.prototype.removeObserver=function(observer){var observers=this.observers_,index=observers.indexOf(observer);~index&&observers.splice(index,1),!observers.length&&this.connected_&&this.disconnect_()},ResizeObserverController.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},ResizeObserverController.prototype.updateObservers_=function(){var activeObservers=this.observers_.filter(function(observer){return observer.gatherActive(),observer.hasActive()});return activeObservers.forEach(function(observer){return observer.broadcastActive()}),activeObservers.length>0},ResizeObserverController.prototype.connect_=function(){isBrowser&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),mutationObserverSupported?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},ResizeObserverController.prototype.disconnect_=function(){isBrowser&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},ResizeObserverController.prototype.onTransitionEnd_=function(_a){var _b=_a.propertyName,propertyName=void 0===_b?"":_b;transitionKeys.some(function(key){return!!~propertyName.indexOf(key)})&&this.refresh()},ResizeObserverController.getInstance=function(){return this.instance_||(this.instance_=new ResizeObserverController),this.instance_},ResizeObserverController.instance_=null,ResizeObserverController}(),defineConfigurable=function(target,props){for(var _i=0,_a=Object.keys(props);_i<_a.length;_i++){var key=_a[_i];Object.defineProperty(target,key,{value:props[key],enumerable:!1,writable:!1,configurable:!0})}return target},getWindowOf=function(target){return target&&target.ownerDocument&&target.ownerDocument.defaultView||global$1},emptyRect=createRectInit(0,0,0,0);function toFloat(value){return parseFloat(value)||0}function getBordersSize(styles){for(var positions=[],_i=1;_i<arguments.length;_i++)positions[_i-1]=arguments[_i];return positions.reduce(function(size,position){return size+toFloat(styles["border-"+position+"-width"])},0)}function getHTMLElementContentRect(target){var clientWidth=target.clientWidth,clientHeight=target.clientHeight;if(!clientWidth&&!clientHeight)return emptyRect;var styles=getWindowOf(target).getComputedStyle(target),paddings=function(styles){for(var paddings={},_i=0,positions_1=["top","right","bottom","left"];_i<positions_1.length;_i++){var position=positions_1[_i],value=styles["padding-"+position];paddings[position]=toFloat(value)}return paddings}(styles),horizPad=paddings.left+paddings.right,vertPad=paddings.top+paddings.bottom,width=toFloat(styles.width),height=toFloat(styles.height);if("border-box"===styles.boxSizing&&(Math.round(width+horizPad)!==clientWidth&&(width-=getBordersSize(styles,"left","right")+horizPad),Math.round(height+vertPad)!==clientHeight&&(height-=getBordersSize(styles,"top","bottom")+vertPad)),!function(target){return target===getWindowOf(target).document.documentElement}(target)){var vertScrollbar=Math.round(width+horizPad)-clientWidth,horizScrollbar=Math.round(height+vertPad)-clientHeight;1!==Math.abs(vertScrollbar)&&(width-=vertScrollbar),1!==Math.abs(horizScrollbar)&&(height-=horizScrollbar)}return createRectInit(paddings.left,paddings.top,width,height)}var isSVGGraphicsElement="undefined"!=typeof SVGGraphicsElement?function(target){return target instanceof getWindowOf(target).SVGGraphicsElement}:function(target){return target instanceof getWindowOf(target).SVGElement&&"function"==typeof target.getBBox};function getContentRect(target){return isBrowser?isSVGGraphicsElement(target)?function(target){var bbox=target.getBBox();return createRectInit(0,0,bbox.width,bbox.height)}(target):getHTMLElementContentRect(target):emptyRect}function createRectInit(x,y,width,height){return{x:x,y:y,width:width,height:height}}var ResizeObservation=function(){function ResizeObservation(target){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=createRectInit(0,0,0,0),this.target=target}return ResizeObservation.prototype.isActive=function(){var rect=getContentRect(this.target);return this.contentRect_=rect,rect.width!==this.broadcastWidth||rect.height!==this.broadcastHeight},ResizeObservation.prototype.broadcastRect=function(){var rect=this.contentRect_;return this.broadcastWidth=rect.width,this.broadcastHeight=rect.height,rect},ResizeObservation}(),ResizeObserverEntry=function(target,rectInit){var _a,x,y,width,height,Constr,rect,contentRect=(x=(_a=rectInit).x,y=_a.y,width=_a.width,height=_a.height,Constr="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,rect=Object.create(Constr.prototype),defineConfigurable(rect,{x:x,y:y,width:width,height:height,top:y,right:x+width,bottom:height+y,left:x}),rect);defineConfigurable(this,{target:target,contentRect:contentRect})},ResizeObserverSPI=function(){function ResizeObserverSPI(callback,controller,callbackCtx){if(this.activeObservations_=[],this.observations_=new MapShim,"function"!=typeof callback)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=callback,this.controller_=controller,this.callbackCtx_=callbackCtx}return ResizeObserverSPI.prototype.observe=function(target){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(target instanceof getWindowOf(target).Element))throw new TypeError('parameter 1 is not of type "Element".');var observations=this.observations_;observations.has(target)||(observations.set(target,new ResizeObservation(target)),this.controller_.addObserver(this),this.controller_.refresh())}},ResizeObserverSPI.prototype.unobserve=function(target){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(target instanceof getWindowOf(target).Element))throw new TypeError('parameter 1 is not of type "Element".');var observations=this.observations_;observations.has(target)&&(observations.delete(target),observations.size||this.controller_.removeObserver(this))}},ResizeObserverSPI.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},ResizeObserverSPI.prototype.gatherActive=function(){var _this=this;this.clearActive(),this.observations_.forEach(function(observation){observation.isActive()&&_this.activeObservations_.push(observation)})},ResizeObserverSPI.prototype.broadcastActive=function(){if(this.hasActive()){var ctx=this.callbackCtx_,entries=this.activeObservations_.map(function(observation){return new ResizeObserverEntry(observation.target,observation.broadcastRect())});this.callback_.call(ctx,entries,ctx),this.clearActive()}},ResizeObserverSPI.prototype.clearActive=function(){this.activeObservations_.splice(0)},ResizeObserverSPI.prototype.hasActive=function(){return this.activeObservations_.length>0},ResizeObserverSPI}(),observers="undefined"!=typeof WeakMap?new WeakMap:new MapShim,ResizeObserver=function ResizeObserver(callback){if(!(this instanceof ResizeObserver))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var controller=ResizeObserverController.getInstance(),observer=new ResizeObserverSPI(callback,controller,this);observers.set(this,observer)};["observe","unobserve","disconnect"].forEach(function(method){ResizeObserver.prototype[method]=function(){var _a;return(_a=observers.get(this))[method].apply(_a,arguments)}});var index=void 0!==global$1.ResizeObserver?global$1.ResizeObserver:ResizeObserver;__webpack_exports__.a=index}).call(this,__webpack_require__("./node_modules/webpack/buildin/global.js"))},"./node_modules/vue-slider-component/dist/vue-slider-component.umd.min.js":function(module,exports,__webpack_require__){var t;"undefined"!=typeof self&&self,module.exports=(t=__webpack_require__("vue"),function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s="fb15")}({2350:function(t,e){function r(t,e){var r=t[1]||"",o=t[3];if(!o)return r;if(e&&"function"==typeof btoa){var i=function(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}(o),s=o.sources.map(function(t){return"/*# sourceURL="+o.sourceRoot+t+" */"});return[r].concat(s).concat([i]).join("\n")}return[r].join("\n")}t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var n=r(e,t);return e[2]?"@media "+e[2]+"{"+n+"}":n}).join("")},e.i=function(t,r){"string"==typeof t&&(t=[[null,t,""]]);for(var n={},o=0;o<this.length;o++){var i=this[o][0];"number"==typeof i&&(n[i]=!0)}for(o=0;o<t.length;o++){var s=t[o];"number"==typeof s[0]&&n[s[0]]||(r&&!s[2]?s[2]=r:r&&(s[2]="("+s[2]+") and ("+r+")"),e.push(s))}},e}},2638:function(t,e,r){"use strict";function n(){return(n=Object.assign||function(t){for(var e,r=1;r<arguments.length;r++)for(var n in e=arguments[r])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)}var o=["attrs","props","domProps"],i=["class","style","directives"],s=["on","nativeOn"],u=function(t,e){return function(){t&&t.apply(this,arguments),e&&e.apply(this,arguments)}};t.exports=function(t){return t.reduce(function(t,e){for(var r in e)if(t[r])if(-1!==o.indexOf(r))t[r]=n({},t[r],e[r]);else if(-1!==i.indexOf(r)){var a=t[r]instanceof Array?t[r]:[t[r]],l=e[r]instanceof Array?e[r]:[e[r]];t[r]=a.concat(l)}else if(-1!==s.indexOf(r))for(var c in e[r])if(t[r][c]){var d=t[r][c]instanceof Array?t[r][c]:[t[r][c]],f=e[r][c]instanceof Array?e[r][c]:[e[r][c]];t[r][c]=d.concat(f)}else t[r][c]=e[r][c];else if("hook"==r)for(var h in e[r])t[r][h]=t[r][h]?u(t[r][h],e[r][h]):e[r][h];else t[r]=e[r];else t[r]=e[r];return t},{})}},"499e":function(t,e,r){"use strict";function n(t,e){for(var r=[],n={},o=0;o<e.length;o++){var i=e[o],s=i[0],c={id:t+":"+o,css:i[1],media:i[2],sourceMap:i[3]};n[s]?n[s].parts.push(c):r.push(n[s]={id:s,parts:[c]})}return r}r.r(e),r.d(e,"default",function(){return p});var o="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!o)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var i={},s=o&&(document.head||document.getElementsByTagName("head")[0]),a=null,u=0,l=!1,c=function(){},d=null,f="data-vue-ssr-id",h="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function p(t,e,r,o){l=r,d=o||{};var s=n(t,e);return y(s),function(e){for(var r=[],o=0;o<s.length;o++){var a=s[o],u=i[a.id];u.refs--,r.push(u)}for(e?y(s=n(t,e)):s=[],o=0;o<r.length;o++)if(0===(u=r[o]).refs){for(var l=0;l<u.parts.length;l++)u.parts[l]();delete i[u.id]}}}function y(t){for(var e=0;e<t.length;e++){var r=t[e],n=i[r.id];if(n){n.refs++;for(var o=0;o<n.parts.length;o++)n.parts[o](r.parts[o]);for(;o<r.parts.length;o++)n.parts.push(m(r.parts[o]));n.parts.length>r.parts.length&&(n.parts.length=r.parts.length)}else{var s=[];for(o=0;o<r.parts.length;o++)s.push(m(r.parts[o]));i[r.id]={id:r.id,refs:1,parts:s}}}}function v(){var t=document.createElement("style");return t.type="text/css",s.appendChild(t),t}function m(t){var e,r,n=document.querySelector("style["+f+'~="'+t.id+'"]');if(n){if(l)return c;n.parentNode.removeChild(n)}if(h){var o=u++;n=a||(a=v()),e=g.bind(null,n,o,!1),r=g.bind(null,n,o,!0)}else n=v(),e=k.bind(null,n),r=function(){n.parentNode.removeChild(n)};return e(t),function(n){if(n){if(n.css===t.css&&n.media===t.media&&n.sourceMap===t.sourceMap)return;e(t=n)}else r()}}var b=function(){var t=[];return function(e,r){return t[e]=r,t.filter(Boolean).join("\n")}}();function g(t,e,r,n){var o=r?"":n.css;if(t.styleSheet)t.styleSheet.cssText=b(e,o);else{var i=document.createTextNode(o),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(i,s[e]):t.appendChild(i)}}function k(t,e){var r=e.css,n=e.media,o=e.sourceMap;if(n&&t.setAttribute("media",n),d.ssrId&&t.setAttribute(f,e.id),o&&(r+="\n/*# sourceURL="+o.sources[0]+" */",r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),t.styleSheet)t.styleSheet.cssText=r;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(r))}}},"4abb":function(t,e,r){var n=r("df80");"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals),(0,r("499e").default)("3e7284f8",n,!0,{sourceMap:!1,shadowMode:!1})},"4ed8":function(t,e,r){var n=r("ae61");"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals),(0,r("499e").default)("57c2b2f0",n,!0,{sourceMap:!1,shadowMode:!1})},"556c":function(t,e,r){var n=r("d5ac");"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals),(0,r("499e").default)("f3ffc7f8",n,!0,{sourceMap:!1,shadowMode:!1})},"65d9":function(t,e,r){"use strict";
/**
* vue-class-component v7.0.1
* (c) 2015-present Evan You
* @license MIT
*/Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){return t&&"object"==typeof t&&"default"in t?t.default:t}(r("8bbf")),i="undefined"!=typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys;function s(t,e){a(t,e),Object.getOwnPropertyNames(e.prototype).forEach(function(r){a(t.prototype,e.prototype,r)}),Object.getOwnPropertyNames(e).forEach(function(r){a(t,e,r)})}function a(t,e,r){(r?Reflect.getOwnMetadataKeys(e,r):Reflect.getOwnMetadataKeys(e)).forEach(function(n){var o=r?Reflect.getOwnMetadata(n,e,r):Reflect.getOwnMetadata(n,e);r?Reflect.defineMetadata(n,o,t,r):Reflect.defineMetadata(n,o,t)})}var l={__proto__:[]}instanceof Array,p=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function y(t,e){void 0===e&&(e={}),e.name=e.name||t._componentTag||t.name;var r=t.prototype;Object.getOwnPropertyNames(r).forEach(function(t){if("constructor"!==t)if(p.indexOf(t)>-1)e[t]=r[t];else{var n=Object.getOwnPropertyDescriptor(r,t);void 0!==n.value?"function"==typeof n.value?(e.methods||(e.methods={}))[t]=n.value:(e.mixins||(e.mixins=[])).push({data:function(){var e;return(e={})[t]=n.value,e}}):(n.get||n.set)&&((e.computed||(e.computed={}))[t]={get:n.get,set:n.set})}}),(e.mixins||(e.mixins=[])).push({data:function(){return function(t,e){var r=e.prototype._init;e.prototype._init=function(){var e=this,r=Object.getOwnPropertyNames(t);if(t.$options.props)for(var n in t.$options.props)t.hasOwnProperty(n)||r.push(n);r.forEach(function(r){"_"!==r.charAt(0)&&Object.defineProperty(e,r,{get:function(){return t[r]},set:function(e){t[r]=e},configurable:!0})})};var n=new e;e.prototype._init=r;var o={};return Object.keys(n).forEach(function(t){void 0!==n[t]&&(o[t]=n[t])}),o}(this,t)}});var n=t.__decorators__;n&&(n.forEach(function(t){return t(e)}),delete t.__decorators__);var a=Object.getPrototypeOf(t.prototype),u=a instanceof o?a.constructor:o,l=u.extend(e);return v(l,t,u),i&&s(l,t),l}function v(t,e,r){Object.getOwnPropertyNames(e).forEach(function(n){if("prototype"!==n){var o=Object.getOwnPropertyDescriptor(t,n);if(!o||o.configurable){var i=Object.getOwnPropertyDescriptor(e,n);if(!l){if("cid"===n)return;var s=Object.getOwnPropertyDescriptor(r,n);if(!function(t){var e=typeof t;return null==t||"object"!==e&&"function"!==e}(i.value)&&s&&s.value===i.value)return}Object.defineProperty(t,n,i)}}})}function m(t){return"function"==typeof t?y(t):function(e){return y(e,t)}}m.registerHooks=function(t){p.push.apply(p,t)},e.default=m,e.createDecorator=function(t){return function(e,r,n){var o="function"==typeof e?e:e.constructor;o.__decorators__||(o.__decorators__=[]),"number"!=typeof n&&(n=void 0),o.__decorators__.push(function(e){return t(e,r,n)})}},e.mixins=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return o.extend({mixins:t})}},"8bbf":function(e,r){e.exports=t},ae61:function(t,e,r){(t.exports=r("2350")(!1)).push([t.i,".vue-slider-dot{position:absolute;will-change:transform;-webkit-transition:all 0s;transition:all 0s;z-index:5}.vue-slider-dot-tooltip{position:absolute;visibility:hidden}.vue-slider-dot-tooltip-show{visibility:visible}.vue-slider-dot-tooltip-top{top:-10px;left:50%;-webkit-transform:translate(-50%,-100%);transform:translate(-50%,-100%)}.vue-slider-dot-tooltip-bottom{bottom:-10px;left:50%;-webkit-transform:translate(-50%,100%);transform:translate(-50%,100%)}.vue-slider-dot-tooltip-left{left:-10px;top:50%;-webkit-transform:translate(-100%,-50%);transform:translate(-100%,-50%)}.vue-slider-dot-tooltip-right{right:-10px;top:50%;-webkit-transform:translate(100%,-50%);transform:translate(100%,-50%)}",""])},d5ac:function(t,e,r){(t.exports=r("2350")(!1)).push([t.i,".vue-slider-marks{position:relative;width:100%;height:100%}.vue-slider-mark{position:absolute;z-index:1}.vue-slider-ltr .vue-slider-mark,.vue-slider-rtl .vue-slider-mark{width:0;height:100%;top:50%}.vue-slider-ltr .vue-slider-mark-step,.vue-slider-rtl .vue-slider-mark-step{top:0}.vue-slider-ltr .vue-slider-mark-label,.vue-slider-rtl .vue-slider-mark-label{top:100%;margin-top:10px}.vue-slider-ltr .vue-slider-mark{-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.vue-slider-ltr .vue-slider-mark-step{left:0}.vue-slider-ltr .vue-slider-mark-label{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.vue-slider-rtl .vue-slider-mark{-webkit-transform:translate(50%,-50%);transform:translate(50%,-50%)}.vue-slider-rtl .vue-slider-mark-step{right:0}.vue-slider-rtl .vue-slider-mark-label{right:50%;-webkit-transform:translateX(50%);transform:translateX(50%)}.vue-slider-btt .vue-slider-mark,.vue-slider-ttb .vue-slider-mark{width:100%;height:0;left:50%}.vue-slider-btt .vue-slider-mark-step,.vue-slider-ttb .vue-slider-mark-step{left:0}.vue-slider-btt .vue-slider-mark-label,.vue-slider-ttb .vue-slider-mark-label{left:100%;margin-left:10px}.vue-slider-btt .vue-slider-mark{-webkit-transform:translate(-50%,50%);transform:translate(-50%,50%)}.vue-slider-btt .vue-slider-mark-step{top:0}.vue-slider-btt .vue-slider-mark-label{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.vue-slider-ttb .vue-slider-mark{-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.vue-slider-ttb .vue-slider-mark-step{bottom:0}.vue-slider-ttb .vue-slider-mark-label{bottom:50%;-webkit-transform:translateY(50%);transform:translateY(50%)}.vue-slider-mark-label,.vue-slider-mark-step{position:absolute}",""])},df80:function(t,e,r){(t.exports=r("2350")(!1)).push([t.i,".vue-slider{position:relative;-webkit-box-sizing:content-box;box-sizing:content-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:block;touch-action:none;-ms-touch-action:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.vue-slider-rail{position:relative;width:100%;height:100%;-webkit-transition-property:width,height,left,right,top,bottom;transition-property:width,height,left,right,top,bottom}.vue-slider-process{position:absolute;z-index:1}",""])},fb15:function(t,e,r){"use strict";var n;r.r(e),"undefined"!=typeof window&&(n=window.document.currentScript)&&(n=n.src.match(/(.+\/)[^\/]+\.js(\?.*)?$/))&&(r.p=n[1]);var o=r("2638"),i=r.n(o);function s(t,e,r,n){var o,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s}var a=r("8bbf"),u=r.n(a),l=r("65d9"),c=r.n(l);function f(t){return void 0===t&&(t={}),Object(l.createDecorator)(function(e,r){(e.props||(e.props={}))[r]=t})}function p(t){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function v(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function b(t,e){return!e||"object"!==p(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function k(t){return(k=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function w(t,e){return(w=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}r("4ed8");var O=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),b(this,k(e).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&w(t,e)}(e,u.a),function(t,e,r){e&&v(t.prototype,e),r&&v(t,r)}(e,[{key:"dragStart",value:function(t){if(this.disabled)return!1;this.$emit("drag-start")}},{key:"render",value:function(){var t=arguments[0];return t("div",{ref:"dot",class:this.dotClasses,on:{mousedown:this.dragStart,touchstart:this.dragStart}},[this.$slots.dot||t("div",{class:this.handleClasses,style:this.dotStyle}),"none"!==this.tooltip?t("div",{class:this.tooltipClasses},[this.$slots.tooltip||t("div",{class:this.tooltipInnerClasses,style:this.tooltipStyle},[t("span",{class:"vue-slider-dot-tooltip-text"},[this.tooltipValue])])]):null])}},{key:"dotClasses",get:function(){return["vue-slider-dot",{"vue-slider-dot-disabled":this.disabled,"vue-slider-dot-focus":this.focus}]}},{key:"handleClasses",get:function(){return["vue-slider-dot-handle",{"vue-slider-dot-handle-disabled":this.disabled,"vue-slider-dot-handle-focus":this.focus}]}},{key:"tooltipClasses",get:function(){return["vue-slider-dot-tooltip",["vue-slider-dot-tooltip-".concat(this.tooltipPlacement)],{"vue-slider-dot-tooltip-show":this.showTooltip}]}},{key:"tooltipInnerClasses",get:function(){return["vue-slider-dot-tooltip-inner",["vue-slider-dot-tooltip-inner-".concat(this.tooltipPlacement)],{"vue-slider-dot-tooltip-inner-disabled":this.disabled,"vue-slider-dot-tooltip-inner-focus":this.focus}]}},{key:"showTooltip",get:function(){switch(this.tooltip){case"always":return!0;case"none":return!1;case"focus":return!!this.focus;default:return!1}}},{key:"tooltipValue",get:function(){return this.tooltipFormatter?"string"==typeof this.tooltipFormatter?this.tooltipFormatter.replace(/\{value\}/,String(this.value)):this.tooltipFormatter(this.value):this.value}}]),e}();s([f({default:0})],O.prototype,"value",void 0),s([f()],O.prototype,"tooltip",void 0),s([f()],O.prototype,"dotStyle",void 0),s([f()],O.prototype,"tooltipStyle",void 0),s([f({type:String,validator:function(t){return["top","right","bottom","left"].indexOf(t)>-1},required:!0})],O.prototype,"tooltipPlacement",void 0),s([f({type:[String,Function]})],O.prototype,"tooltipFormatter",void 0),s([f({type:Boolean,default:!1})],O.prototype,"focus",void 0),s([f({default:!1})],O.prototype,"disabled",void 0);var S=O=s([c.a],O);function P(t){return(P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function R(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function D(t,e){return!e||"object"!==P(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function V(t){return(V=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function M(t,e){return(M=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}r("556c");var C=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),D(this,V(e).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&M(t,e)}(e,u.a),function(t,e,r){e&&R(t.prototype,e),r&&R(t,r)}(e,[{key:"labelClickHandle",value:function(t){t.stopPropagation(),this.$emit("pressLabel",this.mark.pos)}},{key:"render",value:function(){var t=arguments[0],e=this.mark;return t("div",{class:this.marksClasses},[this.$slots.step||t("div",{class:this.stepClasses,style:[this.stepStyle,e.style,e.active?this.stepActiveStyle:null,e.active?e.activeStyle:null]}),this.hideLabel?null:this.$slots.label||t("div",{class:this.labelClasses,style:[this.labelStyle,e.labelStyle,e.active?this.labelActiveStyle:null,e.active?e.labelActiveStyle:null],on:{click:this.labelClickHandle}},[e.label])])}},{key:"marksClasses",get:function(){return["vue-slider-mark",{"vue-slider-mark-active":this.mark.active}]}},{key:"stepClasses",get:function(){return["vue-slider-mark-step",{"vue-slider-mark-step-active":this.mark.active}]}},{key:"labelClasses",get:function(){return["vue-slider-mark-label",{"vue-slider-mark-label-active":this.mark.active}]}}]),e}();s([f({required:!0})],C.prototype,"mark",void 0),s([f(Boolean)],C.prototype,"hideLabel",void 0),s([f()],C.prototype,"stepStyle",void 0),s([f()],C.prototype,"stepActiveStyle",void 0),s([f()],C.prototype,"labelStyle",void 0),s([f()],C.prototype,"labelActiveStyle",void 0);var L,N=C=s([c.a],C),T=function(t){return"number"==typeof t?"".concat(t,"px"):t},I=function(t,e,r){var n="targetTouches"in t?t.targetTouches[0]:t,o=function(t){var e=document.documentElement,r=document.body,n=t.getBoundingClientRect();return{y:n.top+(window.pageYOffset||e.scrollTop)-(e.clientTop||r.clientTop||0),x:n.left+(window.pageXOffset||e.scrollLeft)-(e.clientLeft||r.clientLeft||0)}}(e),i={x:n.pageX-o.x,y:n.pageY-o.y};return{x:r?e.offsetWidth-i.x:i.x,y:r?e.offsetHeight-i.y:i.y}};function U(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}!function(t){t[t.PAGE_UP=33]="PAGE_UP",t[t.PAGE_DOWN=34]="PAGE_DOWN",t[t.END=35]="END",t[t.HOME=36]="HOME",t[t.LEFT=37]="LEFT",t[t.UP=38]="UP",t[t.RIGHT=39]="RIGHT",t[t.DOWN=40]="DOWN"}(L||(L={}));var $,W,G=function(){function t(e){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),this.num=e}return function(t,e,r){e&&U(t.prototype,e),r&&U(t,r)}(t,[{key:"decimal",value:function(t,e){var r=this.num,n=this.getDecimalLen(r),o=this.getDecimalLen(t),i=0;switch(e){case"+":i=this.getExponent(n,o),this.num=(this.safeRoundUp(r,i)+this.safeRoundUp(t,i))/i;break;case"-":i=this.getExponent(n,o),this.num=(this.safeRoundUp(r,i)-this.safeRoundUp(t,i))/i;break;case"*":this.num=this.safeRoundUp(this.safeRoundUp(r,this.getExponent(n)),this.safeRoundUp(t,this.getExponent(o)))/this.getExponent(n+o);break;case"/":i=this.getExponent(n,o),this.num=this.safeRoundUp(r,i)/this.safeRoundUp(t,i);break;case"%":i=this.getExponent(n,o),this.num=this.safeRoundUp(r,i)%this.safeRoundUp(t,i)/i}return this}},{key:"plus",value:function(t){return this.decimal(t,"+")}},{key:"minus",value:function(t){return this.decimal(t,"-")}},{key:"multiply",value:function(t){return this.decimal(t,"*")}},{key:"divide",value:function(t){return this.decimal(t,"/")}},{key:"remainder",value:function(t){return this.decimal(t,"%")}},{key:"toNumber",value:function(){return this.num}},{key:"getDecimalLen",value:function(t){return("".concat(t).split(".")[1]||"").length}},{key:"getExponent",value:function(t,e){return Math.pow(10,void 0!==e?Math.max(t,e):t)}},{key:"safeRoundUp",value:function(t,e){return Math.round(t*e)}}]),t}();function K(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=[],n=!0,o=!1,i=void 0;try{for(var s,a=t[Symbol.iterator]();!(n=(s=a.next()).done)&&(r.push(s.value),!e||r.length!==e);n=!0);}catch(u){o=!0,i=u}finally{try{n||null==a.return||a.return()}finally{if(o)throw i}}return r}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Q(t){return function(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e<t.length;e++)r[e]=t[e];return r}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function nt(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function it(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}!function(t){t[t.VALUE=1]="VALUE",t[t.INTERVAL=2]="INTERVAL",t[t.MIN=3]="MIN",t[t.MAX=4]="MAX",t[t.ORDER=5]="ORDER"}(W||(W={}));var st=(it($={},W.VALUE,'The type of the "value" is illegal'),it($,W.INTERVAL,'The prop "interval" is invalid, "(max - min)" cannot be divisible by "interval"'),it($,W.MIN,'The "value" cannot be less than the minimum.'),it($,W.MAX,'The "value" cannot be greater than the maximum.'),it($,W.ORDER,'When "order" is false, the parameters "minRange", "maxRange", "fixed", "enabled" are invalid.'),$),at=function(){function t(e){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),this.dotsPos=[],this.dotsValue=[],this.data=e.data,this.max=e.max,this.min=e.min,this.interval=e.interval,this.order=e.order,this.marks=e.marks,this.included=e.included,this.process=e.process,this.adsorb=e.adsorb,this.dotOptions=e.dotOptions,this.onError=e.onError,this.order?(this.minRange=e.minRange||0,this.maxRange=e.maxRange||0,this.enableCross=e.enableCross,this.fixed=e.fixed):((e.minRange||e.maxRange||!e.enableCross||e.fixed)&&this.emitError(W.ORDER),this.minRange=0,this.maxRange=0,this.enableCross=!0,this.fixed=!1),this.setValue(e.value)}return function(t,e,r){e&&nt(t.prototype,e),r&&nt(t,r)}(t,[{key:"setValue",value:function(t){this.setDotsValue(Array.isArray(t)?Q(t):[t],!0)}},{key:"setDotsValue",value:function(t,e){this.dotsValue=t,e&&this.syncDotsPos()}},{key:"setDotsPos",value:function(t){var e=this,r=this.order?Q(t).sort(function(t,e){return t-e}):t;this.dotsPos=r,this.setDotsValue(r.map(function(t){return e.getValueByPos(t)}),this.adsorb)}},{key:"getValueByPos",value:function(t){var e=this.parsePos(t);if(this.included){var r=100;this.markList.forEach(function(n){var o=Math.abs(n.pos-t);o<r&&(r=o,e=n.value)})}return e}},{key:"syncDotsPos",value:function(){var t=this;this.dotsPos=this.dotsValue.map(function(e){return t.parseValue(e)})}},{key:"getRecentDot",value:function(t){var e=this.dotsPos.map(function(e){return Math.abs(e-t)});return e.indexOf(Math.min.apply(Math,Q(e)))}},{key:"getIndexByValue",value:function(t){return this.data?this.data.indexOf(t):new G(+t).minus(this.min).divide(this.interval).toNumber()}},{key:"getValueByIndex",value:function(t){return t<0?t=0:t>this.total&&(t=this.total),this.data?this.data[t]:new G(t).multiply(this.interval).plus(this.min).toNumber()}},{key:"setDotPos",value:function(t,e){var r=(t=this.getValidPos(t,e).pos)-this.dotsPos[e];if(r){var n=new Array(this.dotsPos.length);this.fixed?n=this.getFixedChangePosArr(r,e):this.minRange||this.maxRange?n=this.getLimitRangeChangePosArr(t,r,e):n[e]=r,this.setDotsPos(this.dotsPos.map(function(t,e){return t+(n[e]||0)}))}}},{key:"getFixedChangePosArr",value:function(t,e){var r=this;return this.dotsPos.forEach(function(n,o){if(o!==e){var i=r.getValidPos(n+t,o),s=i.pos;i.inRange||(t=Math.min(Math.abs(s-n),Math.abs(t))*(t<0?-1:1))}}),this.dotsPos.map(function(e){return t})}},{key:"getLimitRangeChangePosArr",value:function(t,e,r){var n=this,o=[{index:r,changePos:e}],i=e;return[this.minRange,this.maxRange].forEach(function(s,a){if(!s)return!1;for(var c,u=0===a,l=e>0,d=function(t,e){var r=Math.abs(t-e);return u?r<n.minRangeDir:r>n.maxRangeDir},f=r+(c=u?l?1:-1:l?-1:1),h=n.dotsPos[f],p=t;n.isPos(h)&&d(h,p);){var v=n.getValidPos(h+i,f).pos;o.push({index:f,changePos:v-h}),f+=c,p=v,h=n.dotsPos[f]}}),this.dotsPos.map(function(t,e){var r=o.filter(function(t){return t.index===e});return r.length?r[0].changePos:0})}},{key:"isPos",value:function(t){return"number"==typeof t}},{key:"getValidPos",value:function(t,e){var r=this.valuePosRange[e],n=!0;return t<r[0]?(t=r[0],n=!1):t>r[1]&&(t=r[1],n=!1),{pos:t,inRange:n}}},{key:"parseValue",value:function(t){if(this.data)t=this.data.indexOf(t);else if("number"==typeof t||"string"==typeof t){if((t=+t)<this.min)return this.emitError(W.MIN),0;if(t>this.max)return this.emitError(W.MAX),0;if("number"!=typeof t||t!=t)return this.emitError(W.VALUE),0;t=new G(t).minus(this.min).divide(this.interval).toNumber()}var e=new G(t).multiply(this.gap).toNumber();return e<0?0:e>100?100:e}},{key:"parsePos",value:function(t){var e=Math.round(t/this.gap);return this.getValueByIndex(e)}},{key:"isActiveByPos",value:function(t){return this.processArray.some(function(e){var r=K(e,2),n=r[0],o=r[1];return t>=n&&t<=o})}},{key:"getValues",value:function(){if(this.data)return this.data;for(var t=[],e=0;e<=this.total;e++)t.push(new G(e).multiply(this.interval).plus(this.min).toNumber());return t}},{key:"emitError",value:function(t){this.onError&&this.onError(t,st[t])}},{key:"getDotRange",value:function(t,e,r){if(!this.dotOptions)return r;var n=Array.isArray(this.dotOptions)?this.dotOptions[t]:this.dotOptions;return n&&void 0!==n[e]?this.parseValue(n[e]):r}},{key:"markList",get:function(){var t=this;if(!this.marks)return[];var e=function(e,r){var n=t.parseValue(e);return function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.forEach(function(e){it(t,e,r[e])})}return t}({pos:n,value:e,label:e,active:t.isActiveByPos(n)},r)};return!0===this.marks?this.getValues().map(function(t){return e(t)}):"[object Object]"===Object.prototype.toString.call(this.marks)?Object.keys(this.marks).sort(function(t,e){return+t-+e}).map(function(r){var n=t.marks[r];return e(r,"string"!=typeof n?n:{label:n})}):Array.isArray(this.marks)?this.marks.map(function(t){return e(t)}):"function"==typeof this.marks?this.getValues().map(function(e){return{value:e,result:t.marks(e)}}).filter(function(t){return!!t.result}).map(function(t){var r=t.value,n=t.result;return e(r,n)}):[]}},{key:"processArray",get:function(){if(this.process){if("function"==typeof this.process)return this.process(this.dotsPos);if(1===this.dotsPos.length)return[[0,this.dotsPos[0]]];if(this.dotsPos.length>1)return[[Math.min.apply(Math,Q(this.dotsPos)),Math.max.apply(Math,Q(this.dotsPos))]]}return[]}},{key:"total",get:function(){var t;return(t=this.data?this.data.length-1:new G(this.max).minus(this.min).divide(this.interval).toNumber())-Math.floor(t)!=0?(this.emitError(W.INTERVAL),0):t}},{key:"gap",get:function(){return 100/this.total}},{key:"minRangeDir",get:function(){return this.minRange?this.minRange*this.gap:0}},{key:"maxRangeDir",get:function(){return this.maxRange?this.maxRange*this.gap:100}},{key:"valuePosRange",get:function(){var t=this,e=this.dotsPos,r=[];return e.forEach(function(n,o){r.push([Math.max(t.minRange?t.minRangeDir*o:0,t.enableCross?0:e[o-1]||0,t.getDotRange(o,"min",0)),Math.min(t.minRange?100-t.minRangeDir*(e.length-1-o):100,t.enableCross?100:e[o+1]||100,t.getDotRange(o,"max",100))])}),r}},{key:"dotsIndex",get:function(){var t=this;return this.dotsValue.map(function(e){return t.getIndexByValue(e)})}}]),t}();function lt(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var dt=function(){function t(e){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),this.states=0,this.map=e}return function(t,e,r){e&<(t.prototype,e),r&<(t,r)}(t,[{key:"add",value:function(t){this.states|=t}},{key:"delete",value:function(t){this.states&=~t}},{key:"toggle",value:function(t){this.has(t)?this.delete(t):this.add(t)}},{key:"has",value:function(t){return!!(this.states&t)}}]),t}();function ft(t){return(ft="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ht(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.forEach(function(e){bt(t,e,r[e])})}return t}function pt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=[],n=!0,o=!1,i=void 0;try{for(var s,a=t[Symbol.iterator]();!(n=(s=a.next()).done)&&(r.push(s.value),!e||r.length!==e);n=!0);}catch(u){o=!0,i=u}finally{try{n||null==a.return||a.return()}finally{if(o)throw i}}return r}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function bt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function gt(t){return function(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e<t.length;e++)r[e]=t[e];return r}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function St(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Et(t,e){return!e||"object"!==ft(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function At(t){return(At=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function jt(t,e){return(jt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}r("4abb");var Vt={None:0,Drag:2,Focus:4},Mt=function(t){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=Et(this,At(e).apply(this,arguments))).states=new dt(Vt),t.scale=1,t.focusDotIndex=0,t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&jt(t,e)}(e,u.a),function(t,e,r){e&&St(t.prototype,e),r&&St(t,r)}(e,[{key:"onValueChanged",value:function(){!this.states.has(Vt.Drag)&&this.isNotSync&&this.control.setValue(this.value)}},{key:"created",value:function(){this.initControl()}},{key:"mounted",value:function(){this.bindEvent()}},{key:"beforeDestroy",value:function(){this.unbindEvent()}},{key:"bindEvent",value:function(){document.addEventListener("touchmove",this.dragMove,{passive:!1}),document.addEventListener("touchend",this.dragEnd,{passive:!1}),document.addEventListener("mousedown",this.blurHandle),document.addEventListener("mousemove",this.dragMove),document.addEventListener("mouseup",this.dragEnd),document.addEventListener("mouseleave",this.dragEnd),document.addEventListener("keydown",this.keydownHandle)}},{key:"unbindEvent",value:function(){document.removeEventListener("touchmove",this.dragMove),document.removeEventListener("touchend",this.dragEnd),document.removeEventListener("mousedown",this.blurHandle),document.removeEventListener("mousemove",this.dragMove),document.removeEventListener("mouseup",this.dragEnd),document.removeEventListener("mouseleave",this.dragEnd),document.removeEventListener("keydown",this.keydownHandle)}},{key:"setScale",value:function(){this.scale=new G(Math.floor(this.isHorizontal?this.$el.offsetWidth:this.$el.offsetHeight)).divide(100).toNumber()}},{key:"initControl",value:function(){var t=this;this.control=new at({value:this.value,data:this.data,enableCross:this.enableCross,fixed:this.fixed,max:this.max,min:this.min,interval:this.interval,minRange:this.minRange,maxRange:this.maxRange,order:this.order,marks:this.marks,included:this.included,process:this.process,adsorb:this.adsorb,dotOptions:this.dotOptions,onError:this.emitError}),["data","enableCross","fixed","max","min","interval","minRange","maxRange","order","marks","process","adsorb","included","dotOptions"].forEach(function(e){t.$watch(e,function(r){if("data"===e&&Array.isArray(t.control.data)&&Array.isArray(r)&&t.control.data.length===r.length&&r.every(function(e,r){return e===t.control.data[r]}))return!1;t.control[e]=r,["data","max","min","interval"].indexOf(e)>-1&&t.control.syncDotsPos()})})}},{key:"syncValueByPos",value:function(){var t=this.control.dotsValue;this.isDiff(t,Array.isArray(this.value)?this.value:[this.value])&&this.$emit("change",1===t.length?t[0]:gt(t))}},{key:"isDiff",value:function(t,e){return t.length!==e.length||t.some(function(t,r){return t!==e[r]})}},{key:"emitError",value:function(t,e){this.silent||console.error("[VueSlider error]: ".concat(e)),this.$emit("error",t,e)}},{key:"dragStart",value:function(t){this.focusDotIndex=t,this.setScale(),this.states.add(Vt.Drag),this.states.add(Vt.Focus),this.$emit("drag-start")}},{key:"dragMove",value:function(t){if(!this.states.has(Vt.Drag))return!1;t.preventDefault();var e=this.getPosByEvent(t);this.isCrossDot(e),this.control.setDotPos(e,this.focusDotIndex),this.lazy||this.syncValueByPos();var r=this.control.dotsValue;this.$emit("dragging",1===r.length?r[0]:gt(r))}},{key:"isCrossDot",value:function(t){if(this.canSort){var e=this.focusDotIndex,r=t;r>this.dragRange[1]?(r=this.dragRange[1],this.focusDotIndex++):r<this.dragRange[0]&&(r=this.dragRange[0],this.focusDotIndex--),e!==this.focusDotIndex&&this.control.setDotPos(r,e)}}},{key:"dragEnd",value:function(){var t=this;if(!this.states.has(Vt.Drag))return!1;setTimeout(function(){t.included&&t.isNotSync?t.control.setValue(t.value):t.control.syncDotsPos(),t.lazy&&t.syncValueByPos(),t.states.delete(Vt.Drag),t.useKeyboard||t.states.delete(Vt.Focus),t.$emit("drag-end")})}},{key:"blurHandle",value:function(t){if(!this.states.has(Vt.Focus)||!this.$refs.container||this.$refs.container.contains(t.target))return!1;this.states.delete(Vt.Focus)}},{key:"clickHandle",value:function(t){if(!this.clickable||this.disabled)return!1;if(!this.states.has(Vt.Drag)){this.setScale();var e=this.getPosByEvent(t);this.setValueByPos(e)}}},{key:"focus",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.states.add(Vt.Focus),this.focusDotIndex=t}},{key:"blur",value:function(){this.states.delete(Vt.Focus)}},{key:"getValue",value:function(){var t=this.control.dotsValue;return 1===t.length?t[0]:t}},{key:"getIndex",value:function(){var t=this.control.dotsIndex;return 1===t.length?t[0]:t}},{key:"setValue",value:function(t){this.control.setValue(Array.isArray(t)?gt(t):[t]),this.syncValueByPos()}},{key:"setIndex",value:function(t){var e=this,r=Array.isArray(t)?t.map(function(t){return e.control.getValueByIndex(t)}):this.control.getValueByIndex(t);this.setValue(r)}},{key:"setValueByPos",value:function(t){var e=this,r=this.control.getRecentDot(t);if(this.disabled||this.dots[r].disabled)return!1;this.focusDotIndex=r,this.control.setDotPos(t,r),this.syncValueByPos(),this.useKeyboard&&this.states.add(Vt.Focus),setTimeout(function(){e.included&&e.isNotSync?e.control.setValue(e.value):e.control.syncDotsPos()})}},{key:"keydownHandle",value:function(t){var e=this;if(!this.useKeyboard||!this.states.has(Vt.Focus))return!1;var r=this.included&&this.marks,n=function(t,e){if(e.hook){var r=e.hook(t);if("function"==typeof r)return r;if(!r)return null}switch(t.keyCode){case L.UP:return function(t){return"ttb"===e.direction?t-1:t+1};case L.RIGHT:return function(t){return"rtl"===e.direction?t-1:t+1};case L.DOWN:return function(t){return"ttb"===e.direction?t+1:t-1};case L.LEFT:return function(t){return"rtl"===e.direction?t+1:t-1};case L.END:return function(){return e.max};case L.HOME:return function(){return e.min};case L.PAGE_UP:return function(t){return t+10};case L.PAGE_DOWN:return function(t){return t-10};default:return null}}(t,{direction:this.direction,max:r?this.control.markList.length-1:this.control.total,min:0,hook:this.keydownHook});if(n){t.preventDefault();var o=-1,i=0;r?(this.control.markList.some(function(t,r){return t.value===e.control.dotsValue[e.focusDotIndex]&&(o=n(r),!0)}),o<0?o=0:o>this.control.markList.length-1&&(o=this.control.markList.length-1),i=this.control.markList[o].pos):(o=n(this.control.getIndexByValue(this.control.dotsValue[this.focusDotIndex])),i=this.control.parseValue(this.control.getValueByIndex(o))),this.isCrossDot(i),this.control.setDotPos(i,this.focusDotIndex),this.syncValueByPos()}}},{key:"getPosByEvent",value:function(t){return I(t,this.$el,this.isReverse)[this.isHorizontal?"x":"y"]/this.scale}},{key:"renderSlot",value:function(t,e,r,n){var o=this.$createElement,i=this.$scopedSlots[t];return i?n?i(e):o("template",{slot:t},[i(e)]):r}},{key:"render",value:function(){var t=this,e=arguments[0];return e("div",i()([{ref:"container",class:this.containerClasses,style:this.containerStyles,on:{click:this.clickHandle}},this.$attrs]),[e("div",{class:"vue-slider-rail",style:this.railStyle},[this.processArray.map(function(r,n){return t.renderSlot("process",r,e("div",{class:"vue-slider-process",key:"process-".concat(n),style:r.style}),!0)}),this.marks?e("div",{class:"vue-slider-marks"},[this.control.markList.map(function(r,n){var o;return t.renderSlot("mark",r,e("vue-slider-mark",{key:"mark-".concat(n),attrs:{mark:r,hideLabel:t.hideLabel,stepStyle:t.stepStyle,stepActiveStyle:t.stepActiveStyle,labelStyle:t.labelStyle,labelActiveStyle:t.labelActiveStyle},style:(o={},bt(o,t.isHorizontal?"height":"width","100%"),bt(o,t.isHorizontal?"width":"height",t.tailSize),bt(o,t.mainDirection,"".concat(r.pos,"%")),o),on:{pressLabel:function(e){return t.setValueByPos(e)}}},[t.renderSlot("step",r,null),t.renderSlot("label",r,null)]),!0)})]):null,this.dots.map(function(r,n){var o;return e("vue-slider-dot",{ref:"dot-".concat(n),key:"dot-".concat(n),attrs:{value:r.value,disabled:r.disabled,focus:r.focus,"dot-style":[r.style,r.disabled?r.disabledStyle:null,r.focus?r.focusStyle:null],tooltip:r.tooltip||t.tooltip,"tooltip-style":[t.tooltipStyle,r.tooltipStyle,r.disabled?r.tooltipDisabledStyle:null,r.focus?r.tooltipFocusStyle:null],"tooltip-formatter":Array.isArray(t.tooltipFormatter)?t.tooltipFormatter[n]:t.tooltipFormatter,"tooltip-placement":t.tooltipDirections[n]},style:[t.dotBaseStyle,(o={},bt(o,t.mainDirection,"".concat(r.pos,"%")),bt(o,"transition","".concat(t.mainDirection," ").concat(t.animateTime,"s")),o)],on:{"drag-start":function(){return t.dragStart(n)}}},[t.renderSlot("dot",r,null),t.renderSlot("tooltip",r,null)])}),this.renderSlot("default",null,null,!0)])])}},{key:"tailSize",get:function(){return T((this.isHorizontal?this.height:this.width)||4)}},{key:"containerClasses",get:function(){return["vue-slider",["vue-slider-".concat(this.direction)],{"vue-slider-disabled":this.disabled}]}},{key:"containerStyles",get:function(){var e=pt(Array.isArray(this.dotSize)?this.dotSize:[this.dotSize,this.dotSize],2),r=e[0],n=e[1],o=this.width?T(this.width):this.isHorizontal?"auto":T(4),i=this.height?T(this.height):this.isHorizontal?T(4):"auto";return{padding:this.contained?"".concat(n/2,"px ").concat(r/2,"px"):this.isHorizontal?"".concat(n/2,"px 0"):"0 ".concat(r/2,"px"),width:o,height:i}}},{key:"processArray",get:function(){var t=this;return this.control.processArray.map(function(e,r){var n,o=pt(e,3),i=o[0],s=o[1],a=o[2];if(i>s){var u=[s,i];i=u[0],s=u[1]}var l=t.isHorizontal?"width":"height";return{start:i,end:s,index:r,style:ht((n={},bt(n,t.isHorizontal?"height":"width","100%"),bt(n,t.isHorizontal?"top":"left",0),bt(n,t.mainDirection,"".concat(i,"%")),bt(n,l,"".concat(s-i,"%")),bt(n,"transitionProperty","".concat(l,",").concat(t.mainDirection)),bt(n,"transitionDuration","".concat(t.animateTime,"s")),n),t.processStyle,a)}})}},{key:"dotBaseStyle",get:function(){var t,r=pt(Array.isArray(this.dotSize)?this.dotSize:[this.dotSize,this.dotSize],2),n=r[0],o=r[1];return t=this.isHorizontal?bt({transform:"translate(".concat(this.isReverse?"50%":"-50%",", -50%)"),WebkitTransform:"translate(".concat(this.isReverse?"50%":"-50%",", -50%)"),top:"50%"},"ltr"===this.direction?"left":"right","0"):bt({transform:"translate(-50%, ".concat(this.isReverse?"50%":"-50%",")"),WebkitTransform:"translate(-50%, ".concat(this.isReverse?"50%":"-50%",")"),left:"50%"},"btt"===this.direction?"bottom":"top","0"),ht({width:"".concat(n,"px"),height:"".concat(o,"px")},t)}},{key:"mainDirection",get:function(){switch(this.direction){case"ltr":return"left";case"rtl":return"right";case"btt":return"bottom";case"ttb":return"top"}}},{key:"isHorizontal",get:function(){return"ltr"===this.direction||"rtl"===this.direction}},{key:"isReverse",get:function(){return"rtl"===this.direction||"btt"===this.direction}},{key:"tooltipDirections",get:function(){var t=this.tooltipPlacement||(this.isHorizontal?"top":"left");return Array.isArray(t)?t:this.dots.map(function(){return t})}},{key:"dots",get:function(){var t=this;return this.control.dotsPos.map(function(e,r){return ht({pos:e,index:r,value:t.control.dotsValue[r],focus:t.states.has(Vt.Focus)&&t.focusDotIndex===r,disabled:t.disabled,style:t.dotStyle},(Array.isArray(t.dotOptions)?t.dotOptions[r]:t.dotOptions)||{})})}},{key:"animateTime",get:function(){return this.states.has(Vt.Drag)?0:this.duration}},{key:"canSort",get:function(){return this.order&&!this.minRange&&!this.maxRange&&!this.fixed&&this.enableCross}},{key:"isNotSync",get:function(){var t=this.control.dotsValue;return Array.isArray(this.value)?this.value.length!==t.length||this.value.some(function(e,r){return e!==t[r]}):this.value!==t[0]}},{key:"dragRange",get:function(){var t=this.dots[this.focusDotIndex-1],e=this.dots[this.focusDotIndex+1];return[t?t.pos:-1/0,e?e.pos:1/0]}}]),e}();s([function(t,e){return void 0===e&&(e={}),Object(l.createDecorator)(function(r,n){(r.props||(r.props={}))[n]=e,r.model={prop:n,event:t||n}})}("change",{default:0})],Mt.prototype,"value",void 0),s([f({type:Boolean,default:!1})],Mt.prototype,"silent",void 0),s([f({default:"ltr",validator:function(t){return["ltr","rtl","ttb","btt"].indexOf(t)>-1}})],Mt.prototype,"direction",void 0),s([f({type:[Number,String]})],Mt.prototype,"width",void 0),s([f({type:[Number,String]})],Mt.prototype,"height",void 0),s([f({default:14})],Mt.prototype,"dotSize",void 0),s([f({default:!1})],Mt.prototype,"contained",void 0),s([f({type:Number,default:0})],Mt.prototype,"min",void 0),s([f({type:Number,default:100})],Mt.prototype,"max",void 0),s([f({type:Number,default:1})],Mt.prototype,"interval",void 0),s([f({type:Boolean,default:!1})],Mt.prototype,"disabled",void 0),s([f({type:Boolean,default:!0})],Mt.prototype,"clickable",void 0),s([f({type:Number,default:.5})],Mt.prototype,"duration",void 0),s([f(Array)],Mt.prototype,"data",void 0),s([f({type:Boolean,default:!1})],Mt.prototype,"lazy",void 0),s([f({type:String,validator:function(t){return["none","always","focus"].indexOf(t)>-1},default:"focus"})],Mt.prototype,"tooltip",void 0),s([f({type:[String,Array],validator:function(t){return(Array.isArray(t)?t:[t]).every(function(t){return["top","right","bottom","left"].indexOf(t)>-1})}})],Mt.prototype,"tooltipPlacement",void 0),s([f({type:[String,Array,Function]})],Mt.prototype,"tooltipFormatter",void 0),s([f({type:Boolean,default:!1})],Mt.prototype,"useKeyboard",void 0),s([f(Function)],Mt.prototype,"keydownHook",void 0),s([f({type:Boolean,default:!0})],Mt.prototype,"enableCross",void 0),s([f({type:Boolean,default:!1})],Mt.prototype,"fixed",void 0),s([f({type:Boolean,default:!0})],Mt.prototype,"order",void 0),s([f(Number)],Mt.prototype,"minRange",void 0),s([f(Number)],Mt.prototype,"maxRange",void 0),s([f({type:[Boolean,Object,Array,Function],default:!1})],Mt.prototype,"marks",void 0),s([f({type:[Boolean,Function],default:!0})],Mt.prototype,"process",void 0),s([f(Boolean)],Mt.prototype,"included",void 0),s([f(Boolean)],Mt.prototype,"adsorb",void 0),s([f(Boolean)],Mt.prototype,"hideLabel",void 0),s([f()],Mt.prototype,"dotOptions",void 0),s([f()],Mt.prototype,"railStyle",void 0),s([f()],Mt.prototype,"processStyle",void 0),s([f()],Mt.prototype,"dotStyle",void 0),s([f()],Mt.prototype,"tooltipStyle",void 0),s([f()],Mt.prototype,"stepStyle",void 0),s([f()],Mt.prototype,"stepActiveStyle",void 0),s([f()],Mt.prototype,"labelStyle",void 0),s([f()],Mt.prototype,"labelActiveStyle",void 0),s([function(t,e){void 0===e&&(e={});var r=e.deep,n=void 0!==r&&r,o=e.immediate,i=void 0!==o&&o;return Object(l.createDecorator)(function(e,r){"object"!=typeof e.watch&&(e.watch=Object.create(null));var o=e.watch;"object"!=typeof o[t]||Array.isArray(o[t])?void 0===o[t]&&(o[t]=[]):o[t]=[o[t]],o[t].push({handler:r,deep:n,immediate:i})})}("value")],Mt.prototype,"onValueChanged",null);var Ct=Mt=s([c()({data:function(){return{control:null}},components:{VueSliderDot:S,VueSliderMark:N}})],Mt);Ct.VueSliderMark=N,Ct.VueSliderDot=S;var Lt=Ct;r.d(e,"ERROR_TYPE",function(){return W}),r.d(e,"VueSliderMark",function(){return N}),r.d(e,"VueSliderDot",function(){return S}),e.default=Lt}}).default)},"./node_modules/vue-slider-component/theme/default.css":function(module,exports,__webpack_require__){var content=__webpack_require__("./node_modules/css-loader/index.js!./node_modules/vue-slider-component/theme/default.css");"string"==typeof content&&(content=[[module.i,content,""]]),content.locals&&(module.exports=content.locals);(0,__webpack_require__("./node_modules/vue-style-loader/lib/addStylesClient.js").default)("254c6765",content,!1,{})},"./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/vue-loader/lib/index.js?!./src/GanttElastic.vue?vue&type=style&index=0&lang=css&":function(module,exports,__webpack_require__){var content=__webpack_require__("./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/vue-loader/lib/index.js?!./src/GanttElastic.vue?vue&type=style&index=0&lang=css&");"string"==typeof content&&(content=[[module.i,content,""]]),content.locals&&(module.exports=content.locals);(0,__webpack_require__("./node_modules/vue-style-loader/lib/addStylesClient.js").default)("c3e5085c",content,!1,{})},"./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/vue-switches/dist/switches.css?vue&type=style&index=0&lang=css&":function(module,exports,__webpack_require__){var content=__webpack_require__("./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/vue-switches/dist/switches.css?vue&type=style&index=0&lang=css&");"string"==typeof content&&(content=[[module.i,content,""]]),content.locals&&(module.exports=content.locals);(0,__webpack_require__("./node_modules/vue-style-loader/lib/addStylesClient.js").default)("f7752e9e",content,!1,{})},"./node_modules/vue-style-loader/lib/addStylesClient.js":function(module,__webpack_exports__,__webpack_require__){"use strict";function listToStyles(parentId,list){for(var styles=[],newStyles={},i=0;i<list.length;i++){var item=list[i],id=item[0],part={id:parentId+":"+i,css:item[1],media:item[2],sourceMap:item[3]};newStyles[id]?newStyles[id].parts.push(part):styles.push(newStyles[id]={id:id,parts:[part]})}return styles}__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"default",function(){return addStylesClient});var hasDocument="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!hasDocument)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var stylesInDom={},head=hasDocument&&(document.head||document.getElementsByTagName("head")[0]),singletonElement=null,singletonCounter=0,isProduction=!1,noop=function(){},options=null,ssrIdKey="data-vue-ssr-id",isOldIE="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function addStylesClient(parentId,list,_isProduction,_options){isProduction=_isProduction,options=_options||{};var styles=listToStyles(parentId,list);return addStylesToDom(styles),function(newList){for(var mayRemove=[],i=0;i<styles.length;i++){var item=styles[i];(domStyle=stylesInDom[item.id]).refs--,mayRemove.push(domStyle)}newList?addStylesToDom(styles=listToStyles(parentId,newList)):styles=[];for(i=0;i<mayRemove.length;i++){var domStyle;if(0===(domStyle=mayRemove[i]).refs){for(var j=0;j<domStyle.parts.length;j++)domStyle.parts[j]();delete stylesInDom[domStyle.id]}}}}function addStylesToDom(styles){for(var i=0;i<styles.length;i++){var item=styles[i],domStyle=stylesInDom[item.id];if(domStyle){domStyle.refs++;for(var j=0;j<domStyle.parts.length;j++)domStyle.parts[j](item.parts[j]);for(;j<item.parts.length;j++)domStyle.parts.push(addStyle(item.parts[j]));domStyle.parts.length>item.parts.length&&(domStyle.parts.length=item.parts.length)}else{var parts=[];for(j=0;j<item.parts.length;j++)parts.push(addStyle(item.parts[j]));stylesInDom[item.id]={id:item.id,refs:1,parts:parts}}}}function createStyleElement(){var styleElement=document.createElement("style");return styleElement.type="text/css",head.appendChild(styleElement),styleElement}function addStyle(obj){var update,remove,styleElement=document.querySelector("style["+ssrIdKey+'~="'+obj.id+'"]');if(styleElement){if(isProduction)return noop;styleElement.parentNode.removeChild(styleElement)}if(isOldIE){var styleIndex=singletonCounter++;styleElement=singletonElement||(singletonElement=createStyleElement()),update=applyToSingletonTag.bind(null,styleElement,styleIndex,!1),remove=applyToSingletonTag.bind(null,styleElement,styleIndex,!0)}else styleElement=createStyleElement(),update=applyToTag.bind(null,styleElement),remove=function(){styleElement.parentNode.removeChild(styleElement)};return update(obj),function(newObj){if(newObj){if(newObj.css===obj.css&&newObj.media===obj.media&&newObj.sourceMap===obj.sourceMap)return;update(obj=newObj)}else remove()}}var textStore,replaceText=(textStore=[],function(index,replacement){return textStore[index]=replacement,textStore.filter(Boolean).join("\n")});function applyToSingletonTag(styleElement,index,remove,obj){var css=remove?"":obj.css;if(styleElement.styleSheet)styleElement.styleSheet.cssText=replaceText(index,css);else{var cssNode=document.createTextNode(css),childNodes=styleElement.childNodes;childNodes[index]&&styleElement.removeChild(childNodes[index]),childNodes.length?styleElement.insertBefore(cssNode,childNodes[index]):styleElement.appendChild(cssNode)}}function applyToTag(styleElement,obj){var css=obj.css,media=obj.media,sourceMap=obj.sourceMap;if(media&&styleElement.setAttribute("media",media),options.ssrId&&styleElement.setAttribute(ssrIdKey,obj.id),sourceMap&&(css+="\n/*# sourceURL="+sourceMap.sources[0]+" */",css+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))))+" */"),styleElement.styleSheet)styleElement.styleSheet.cssText=css;else{for(;styleElement.firstChild;)styleElement.removeChild(styleElement.firstChild);styleElement.appendChild(document.createTextNode(css))}}},"./node_modules/vue-switches/dist/switches.css?vue&type=style&index=0&lang=css&":function(module,__webpack_exports__,__webpack_require__){"use strict";var _vue_style_loader_index_js_css_loader_index_js_vue_loader_lib_loaders_stylePostLoader_js_switches_css_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/vue-switches/dist/switches.css?vue&type=style&index=0&lang=css&");__webpack_require__.n(_vue_style_loader_index_js_css_loader_index_js_vue_loader_lib_loaders_stylePostLoader_js_switches_css_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__).a},"./node_modules/webpack/buildin/global.js":function(module,exports){var g;g=function(){return this}();try{g=g||new Function("return this")()}catch(e){"object"==typeof window&&(g=window)}module.exports=g},"./src/GanttElastic.vue":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"mergeDeep",function(){return mergeDeep}),__webpack_require__.d(__webpack_exports__,"mergeDeepReactive",function(){return mergeDeepReactive}),__webpack_require__.d(__webpack_exports__,"notEqualDeep",function(){return notEqualDeep});var render=function(){var _h=this.$createElement,_c=this._self._c||_h;return _c("div",{class:{"gantt-elastic":!0,"gantt-elastic-flex":this.state.options.isflex},staticStyle:{width:"100%"}},[this.state.options.defHeader?_c("gantt-elastic-header",{attrs:{options:this.options}}):this._t("header"),this._v(" "),_c("main-view",{ref:"mainView"}),this._v(" "),this._t("footer")],2)};render._withStripped=!0;var external_Vue_=__webpack_require__("vue"),external_Vue_default=__webpack_require__.n(external_Vue_),dayjs_min=__webpack_require__("./node_modules/dayjs/dayjs.min.js"),dayjs_min_default=__webpack_require__.n(dayjs_min),MainViewvue_type_template_id_0bc4212e_render=function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _c("div",{staticClass:"gantt-elastic__main-view",style:Object.assign({},_vm.root.style["main-view"])},[_c("div",{staticClass:"gantt-elastic__main-container-wrapper",style:Object.assign({},_vm.root.style["main-container-wrapper"])},[_c("div",{ref:"mainView",staticClass:"gantt-elastic__main-container",style:Object.assign({},_vm.root.style["main-container"],{width:_vm.root.state.options.clientWidth+"px"})},[_c("div",{staticClass:"gantt-elastic__container",style:Object.assign({},_vm.root.style.container),on:{mousemove:_vm.mouseMove,mouseup:_vm.mouseUp}},[_c("div",{directives:[{name:"show",rawName:"v-show",value:_vm.root.state.options.taskList.display,expression:"root.state.options.taskList.display"}],ref:"taskList",staticClass:"gantt-elastic__task-list-container",style:Object.assign({},_vm.root.style["task-list-container"],{width:_vm.root.state.options.taskList.finalWidth+"px"})},[_c("task-list")],1),_vm._v(" "),_c("div",{ref:"chartContainer",staticClass:"gantt-elastic__main-view-container",style:Object.assign({},_vm.root.style["main-view-container"]),on:{mousedown:_vm.chartMouseDown,touchstart:_vm.chartMouseDown,mouseup:_vm.chartMouseUp,touchend:_vm.chartMouseUp,mousemove:function($event){return $event.preventDefault(),_vm.chartMouseMove($event)},touchmove:function($event){return $event.preventDefault(),_vm.chartMouseMove($event)},wheel:function($event){return $event.preventDefault(),_vm.chartWheel($event)}}},[_c("chart")],1)])]),_vm._v(" "),_c("div",{ref:"chartScrollContainerVertical",staticClass:"gantt-elastic__chart-scroll-container gantt-elastic__chart-scroll-container--vertical",style:Object.assign({},_vm.root.style["chart-scroll-container"],_vm.root.style["chart-scroll-container--vertical"],_vm.verticalStyle),on:{scroll:_vm.onVerticalScroll}},[_c("div",{staticClass:"gantt-elastic__chart-scroll--vertical",style:{width:"1px",height:_vm.root.state.options.allVisibleTasksHeight+"px"}})])]),_vm._v(" "),_c("div",{ref:"chartScrollContainerHorizontal",staticClass:"gantt-elastic__chart-scroll-container gantt-elastic__chart-scroll-container--horizontal",style:Object.assign({},_vm.root.style["chart-scroll-container"],_vm.root.style["chart-scroll-container--horizontal"],{marginLeft:_vm.getMarginLeft}),on:{scroll:_vm.onHorizontalScroll}},[_c("div",{staticClass:"gantt-elastic__chart-scroll--horizontal",style:{height:"1px",width:_vm.root.state.options.width+"px"}})])])};MainViewvue_type_template_id_0bc4212e_render._withStripped=!0;var TaskListvue_type_template_id_6e11f12f_render=function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _c("div",{directives:[{name:"show",rawName:"v-show",value:_vm.root.state.options.taskList.display,expression:"root.state.options.taskList.display"}],ref:"taskListWrapper",staticClass:"gantt-elastic__task-list-wrapper",style:Object.assign({},_vm.root.style["task-list-wrapper"],{width:"100%",height:"100%"})},[_c("div",{ref:"taskList",staticClass:"gantt-elastic__task-list",style:Object.assign({},_vm.root.style["task-list"])},[_c("task-list-header"),_vm._v(" "),_c("div",{ref:"taskListItems",staticClass:"gantt-elastic__task-list-items",style:Object.assign({},_vm.root.style["task-list-items"])},[_c("div",{style:{height:_vm.root.state.options.rowsHeight+"px"}},_vm._l(_vm.root.visibleTasks,function(task){return _c("task-list-item",{key:task.id,attrs:{task:task}})}),1)])],1)])};TaskListvue_type_template_id_6e11f12f_render._withStripped=!0;var TaskListHeadervue_type_template_id_aefdd7c8_render=function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _c("div",{staticClass:"gantt-elastic__task-list-header",style:Object.assign({},_vm.root.style["task-list-header"],{height:_vm.root.state.options.calendar.height>0&&_vm.root.state.options.calendar.height+"px","margin-bottom":_vm.root.state.options.calendar.gap+"px"})},_vm._l(_vm.root.getTaskListColumns,function(column){return column.hidden?_vm._e():_c("div",{key:column._id,staticClass:"gantt-elastic__task-list-header-column",style:Object.assign({},_vm.root.style["task-list-header-column"],column.style["task-list-header-column"],_vm.getStyle(column))},[column.expander?_c("task-list-expander",{attrs:{tasks:_vm.collapsible,options:_vm.root.state.options.taskList.expander}}):_vm._e(),_vm._v(" "),_c("div",{class:["gantt-elastic__task-list-header-label",column.headerCls],style:Object.assign({},_vm.root.style["task-list-header-label"],column.style["task-list-header-label"]),attrs:{column:column},on:{mouseup:_vm.resizerMouseUp}},[_vm._v("\n "+_vm._s(column.label)+"\n ")]),_vm._v(" "),_c("div",{staticClass:"gantt-elastic__task-list-header-resizer-wrapper",style:Object.assign({},_vm.root.style["task-list-header-resizer-wrapper"],column.style["task-list-header-resizer-wrapper"]),attrs:{column:column},on:{mousedown:function($event){return _vm.resizerMouseDown($event,column)}}},[_c("div",{staticClass:"gantt-elastic__task-list-header-resizer",style:Object.assign({},_vm.root.style["task-list-header-resizer"],column.style["task-list-header-resizer"])},[_c("div",{staticClass:"gantt-elastic__task-list-header-resizer-dot",style:Object.assign({},_vm.root.style["task-list-header-resizer-dot"],column.style["task-list-header-resizer-dot"])}),_vm._v(" "),_c("div",{staticClass:"gantt-elastic__task-list-header-resizer-dot",style:Object.assign({},_vm.root.style["task-list-header-resizer-dot"],column.style["task-list-header-resizer-dot"])}),_vm._v(" "),_c("div",{staticClass:"gantt-elastic__task-list-header-resizer-dot",style:Object.assign({},_vm.root.style["task-list-header-resizer-dot"],column.style["task-list-header-resizer-dot"])})])])],1)}),0)};TaskListHeadervue_type_template_id_aefdd7c8_render._withStripped=!0;var Expandervue_type_template_id_09a21177_render=function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _c("div",{class:_vm.getClassPrefix()+"-wrapper",style:Object.assign({},_vm.root.style[_vm.getClassPrefix(!1)+"-wrapper"],_vm.style)},["treegrid"==_vm.root.state.options.dataType&&!_vm.task.leaf||_vm.allChildren.length?_c("svg",{class:_vm.getClassPrefix()+"-content",style:Object.assign({},_vm.root.style[_vm.getClassPrefix(!1)+"-content"]),attrs:{width:_vm.transformNumber(_vm.options.size),height:_vm.transformNumber(_vm.options.size)},on:{click:_vm.toggle}},[_c("rect",{class:_vm.getClassPrefix()+"-border",style:Object.assign({},_vm.root.style[_vm.getClassPrefix(!1)+"-border"],_vm.borderStyle),attrs:{x:_vm.transformNumber(_vm.border),y:_vm.transformNumber(_vm.border),width:_vm.transformNumber(_vm.options.size-2*_vm.border),height:_vm.transformNumber(_vm.options.size-2*_vm.border),rx:"2",ry:"2"}}),_vm._v(" "),"treegrid"==_vm.root.state.options.dataType&&!_vm.task.leaf||_vm.allChildren.length?_c("line",{class:_vm.getClassPrefix()+"-line",style:Object.assign({},_vm.root.style[_vm.getClassPrefix(!1)+"-line"]),attrs:{x1:_vm.transformNumber(_vm.lineOffset),y1:_vm.transformNumber(_vm.options.size/2),x2:_vm.transformNumber(_vm.options.size-_vm.lineOffset),y2:_vm.transformNumber(_vm.options.size/2)}}):_vm._e(),_vm._v(" "),_vm.collapsed?_c("line",{class:_vm.getClassPrefix()+"-line",style:Object.assign({},_vm.root.style[_vm.getClassPrefix(!1)+"-line"]),attrs:{x1:_vm.transformNumber(_vm.options.size/2),y1:_vm.transformNumber(_vm.lineOffset),x2:_vm.transformNumber(_vm.options.size/2),y2:_vm.transformNumber(_vm.options.size-_vm.lineOffset)}}):_vm._e()]):"treegrid"==_vm.root.state.options.dataType&&_vm.task.leaf?_c("div",{class:_vm.getClassPrefix()+"-none-content",staticStyle:{height:"16px",width:"16px"}}):_vm._e()])};function normalizeComponent(scriptExports,render,staticRenderFns,functionalTemplate,injectStyles,scopeId,moduleIdentifier,shadowMode){var hook,options="function"==typeof scriptExports?scriptExports.options:scriptExports;if(render&&(options.render=render,options.staticRenderFns=staticRenderFns,options._compiled=!0),functionalTemplate&&(options.functional=!0),scopeId&&(options._scopeId="data-v-"+scopeId),moduleIdentifier?(hook=function(context){(context=context||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(context=__VUE_SSR_CONTEXT__),injectStyles&&injectStyles.call(this,context),context&&context._registeredComponents&&context._registeredComponents.add(moduleIdentifier)},options._ssrRegister=hook):injectStyles&&(hook=shadowMode?function(){injectStyles.call(this,this.$root.$options.shadowRoot)}:injectStyles),hook)if(options.functional){options._injectStyles=hook;var originalRender=options.render;options.render=function(h,context){return hook.call(context),originalRender(h,context)}}else{var existing=options.beforeCreate;options.beforeCreate=existing?[].concat(existing,hook):[hook]}return{exports:scriptExports,options:options}}Expandervue_type_template_id_09a21177_render._withStripped=!0;var component=normalizeComponent({name:"Expander",inject:["root"],props:["tasks","options","type"],data:()=>({border:.5,borderStyle:{"stroke-width":.5},lineOffset:5}),computed:{style(){if("taskList"!==this.type)return{};const margin=this.root.state.options.taskList.expander.margin;return{"padding-left":this.tasks[0].parents.length*this.root.state.options.taskList.expander.padding+margin+"px",margin:"auto 0"}},allChildren(){const children=[];return this.tasks.forEach(task=>{task.allChildren.forEach(childId=>{children.push(childId)})}),children},collapsed(){if(0===this.tasks.length)return!1;let collapsed=0;for(let i=0,len=this.tasks.length;i<len;i++)this.tasks[i].collapsed&&collapsed++;return collapsed===this.tasks.length},task(){return this.tasks.length>0?this.tasks[0]:{}}},methods:{getClassPrefix(full=!0){return`${full?"gantt-elastic__":""}${this.options.type}-expander`},toggle(){if(0===this.tasks.length)return;const collapsed=!this.collapsed;this.tasks.forEach(task=>{task.collapsed=collapsed}),this.root.$emit("task-item-expand",this.tasks[0])},transformNumber:num=>isNaN(num)?0:num}},Expandervue_type_template_id_09a21177_render,[],!1,null,null,null);component.options.__file="src/components/Expander.vue";var Expander=component.exports,TaskListHeader_component=normalizeComponent({name:"TaskListHeader",components:{TaskListExpander:Expander},inject:["root"],data:()=>({resizer:{moving:!1,x:0}}),computed:{collapsible(){return this.root.state.tasks.filter(task=>task.allChildren.length>0)}},methods:{getStyle:column=>({width:column.finalWidth+"px"}),resizerMouseDown(event,column){this.resizer.moving||(this.resizer.moving=column,this.resizer.x=event.clientX,this.resizer.initialWidth=column.width,this.root.$emit("taskList-column-width-change-start",this.resizer.moving))},resizerMouseMove(event){if(this.resizer.moving){const lastWidth=this.resizer.moving.width;this.resizer.moving.width=this.resizer.initialWidth+event.clientX-this.resizer.x,this.resizer.moving.width<this.root.state.options.taskList.minWidth&&(this.resizer.moving.width=this.root.state.options.taskList.minWidth),lastWidth!==this.resizer.moving.width&&this.root.$emit("taskList-column-width-change",this.resizer.moving)}},resizerMouseUp(event){this.resizer.moving&&(this.root.$emit("taskList-column-width-change-stop",this.resizer.moving),this.resizer.moving=!1)}},created(){this.mouseUpListener=document.addEventListener("mouseup",this.resizerMouseUp.bind(this)),this.mouseMoveListener=document.addEventListener("mousemove",this.resizerMouseMove.bind(this)),this.root.$on("main-view-mousemove",this.resizerMouseMove),this.root.$on("main-view-mouseup",this.resizerMouseUp)},beforeDestroy(){document.removeEventListener("mouseup",this.resizerMouseUp),document.removeEventListener("mousemove",this.resizerMouseMove)}},TaskListHeadervue_type_template_id_aefdd7c8_render,[],!1,null,null,null);TaskListHeader_component.options.__file="src/components/TaskList/TaskListHeader.vue";var TaskListHeader=TaskListHeader_component.exports,TaskListItemvue_type_template_id_9716293c_render=function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _c("div",{staticClass:"gantt-elastic__task-list-item",style:Object.assign({},_vm.root.style["task-list-item"]),on:{dblclick:_vm.clickTaskItem}},_vm._l(_vm.columns,function(column){return column.hidden?_vm._e():_c("item-column",{key:column._id,attrs:{column:column,task:_vm.task}},[column.expander?_c("task-list-expander",{attrs:{tasks:[_vm.task],options:_vm.root.state.options.taskList.expander,type:"taskList"}}):_vm._e()],1)}),1)};TaskListItemvue_type_template_id_9716293c_render._withStripped=!0;var ItemColumnvue_type_template_id_cb5a6c96_render=function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _c("div",{staticClass:"gantt-elastic__task-list-item-column",style:_vm.itemColumnStyle},[_c("div",{staticClass:"gantt-elastic__task-list-item-value-wrapper",style:_vm.wrapperStyle},[_vm._t("default"),_vm._v(" "),_c("div",{staticClass:"gantt-elastic__task-list-item-value-container",style:_vm.containerStyle},[_vm.html?_c("div",{staticClass:"gantt-elastic__task-list-item-value",style:_vm.valueStyle,domProps:{innerHTML:_vm._s(_vm.value)},on:{click:function($event){return _vm.emitEvent("click",$event)},mouseenter:function($event){return _vm.emitEvent("mouseenter",$event)},mouseover:function($event){return _vm.emitEvent("mouseover",$event)},mouseout:function($event){return _vm.emitEvent("mouseout",$event)},mousemove:function($event){return _vm.emitEvent("mousemove",$event)},mousedown:function($event){return _vm.emitEvent("mousedown",$event)},mouseup:function($event){return _vm.emitEvent("mouseup",$event)},mousewheel:function($event){return _vm.emitEvent("mousewheel",$event)},touchstart:function($event){return _vm.emitEvent("touchstart",$event)},touchmove:function($event){return _vm.emitEvent("touchmove",$event)},touchend:function($event){return _vm.emitEvent("touchend",$event)}}}):_c("div",{class:["gantt-elastic__task-list-item-value",_vm.column.cellCls],style:_vm.valueStyle,on:{click:function($event){return _vm.emitEvent("click",$event)},mouseenter:function($event){return _vm.emitEvent("mouseenter",$event)},mouseover:function($event){return _vm.emitEvent("mouseover",$event)},mouseout:function($event){return _vm.emitEvent("mouseout",$event)},mousemove:function($event){return _vm.emitEvent("mousemove",$event)},mousedown:function($event){return _vm.emitEvent("mousedown",$event)},mouseup:function($event){return _vm.emitEvent("mouseup",$event)},mousewheel:function($event){return _vm.emitEvent("mousewheel",$event)},touchstart:function($event){return _vm.emitEvent("touchstart",$event)},touchmove:function($event){return _vm.emitEvent("touchmove",$event)},touchend:function($event){return _vm.emitEvent("touchend",$event)}}},[_vm._v("\n "+_vm._s(_vm.value)+"\n ")])])],2)])};ItemColumnvue_type_template_id_cb5a6c96_render._withStripped=!0;var ItemColumn_component=normalizeComponent({name:"ItemColumn",inject:["root"],props:["column","task"],data:()=>({}),methods:{emitEvent(eventName,event){void 0!==this.column.events&&"function"==typeof this.column.events[eventName]&&this.column.events[eventName]({event:event,data:this.task,column:this.column}),this.root.$emit(`taskList-${this.task.type}-${eventName}`,{event:event,data:this.task,column:this.column})}},computed:{html(){return void 0!==this.column.html&&!0===this.column.html},value(){return"function"==typeof this.column.render?this.column.render(this.task):this.task[this.column.value]},itemColumnStyle(){return{...this.root.style["task-list-item-column"],...this.column.style["task-list-item-column"],width:this.column.finalWidth+"px",height:this.column.height+"px"}},wrapperStyle(){return{...this.root.style["task-list-item-value-wrapper"],...this.column.style["task-list-item-value-wrapper"]}},containerStyle(){return{...this.root.style["task-list-item-value-container"],...this.column.style["task-list-item-value-container"]}},valueStyle(){return{...this.root.style["task-list-item-value"],...this.column.style["task-list-item-value"]}}}},ItemColumnvue_type_template_id_cb5a6c96_render,[],!1,null,null,null);ItemColumn_component.options.__file="src/components/TaskList/ItemColumn.vue";var TaskListItem_component=normalizeComponent({name:"TaskListItem",components:{TaskListExpander:Expander,ItemColumn:ItemColumn_component.exports},inject:["root"],props:["task"],data:()=>({}),computed:{columns(){return this.root.state.options.taskList.columns}},methods:{clickTaskItem($event){this.root.$emit("taskList-item-dblclick",{event:$event,data:this.task})}}},TaskListItemvue_type_template_id_9716293c_render,[],!1,null,null,null);TaskListItem_component.options.__file="src/components/TaskList/TaskListItem.vue";var TaskList_component=normalizeComponent({name:"TaskList",components:{TaskListHeader:TaskListHeader,TaskListItem:TaskListItem_component.exports},inject:["root"],data:()=>({}),mounted(){this.root.state.refs.taskListWrapper=this.$refs.taskListWrapper,this.root.state.refs.taskList=this.$refs.taskList,this.root.state.refs.taskListItems=this.$refs.taskListItems}},TaskListvue_type_template_id_6e11f12f_render,[],!1,null,null,null);TaskList_component.options.__file="src/components/TaskList/TaskList.vue";var TaskList=TaskList_component.exports,Chartvue_type_template_id_67c3f5cd_render=function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _c("div",{ref:"chart",staticClass:"gantt-elastic__chart",style:Object.assign({},_vm.root.style.chart)},[_c("div",{ref:"chartCalendarContainer",staticClass:"gantt-elastic__chart-calendar-container",style:Object.assign({},_vm.root.style["chart-calendar-container"],{height:_vm.root.state.options.calendar.height+"px","margin-bottom":_vm.root.state.options.calendar.gap+"px"})},[_c("calendar")],1),_vm._v(" "),_c("div",{ref:"chartGraphContainer",staticClass:"gantt-elastic__chart-graph-container",style:Object.assign({},_vm.root.style["chart-graph-container"],{height:_vm.root.state.options.height-_vm.root.state.options.calendar.height+"px"})},[_c("div",{style:Object.assign({},_vm.root.style["chart-area"],{width:_vm.root.state.options.width+"px",height:_vm.root.state.options.rowsHeight+"px"})},[_c("div",{ref:"chartGraph",staticClass:"gantt-elastic__chart-graph",style:Object.assign({},_vm.root.style["chart-graph"],{height:"100%"})},[_c("svg",{ref:"chartGraphSvg",staticClass:"gantt-elastic__chart-graph-svg",style:Object.assign({},_vm.root.style["chart-graph-svg"]),attrs:{x:"0",y:"0",width:_vm.transformNumber(_vm.root.state.options.width),height:_vm.transformNumber(_vm.root.state.options.allVisibleTasksHeight),xmlns:"http://www.w3.org/2000/svg"}},[_c("days-highlight"),_vm._v(" "),_c("grid"),_vm._v(" "),_c("dependency-lines",{attrs:{tasks:_vm.root.visibleTasks}}),_vm._v(" "),_vm._l(_vm.root.visibleTasks,function(task){return _c("g",{key:task.id,staticClass:"gantt-elastic__chart-row-wrapper",style:Object.assign({},_vm.root.style["chart-row-wrapper"]),attrs:{task:task},on:{dblclick:function($event){return _vm.clickTaskItem($event,task)}}},[_c(task.type,{tag:"component",attrs:{task:task}})],1)})],2)])])])])};Chartvue_type_template_id_67c3f5cd_render._withStripped=!0;var Gridvue_type_template_id_2bf979a7_render=function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _c("svg",{ref:"chart",staticClass:"gantt-elastic__grid-lines-wrapper",style:Object.assign({},_vm.root.style["grid-lines-wrapper"]),attrs:{x:"0",y:"0",width:_vm.transformNumber(_vm.root.state.options.width),height:_vm.transformNumber(_vm.root.state.options.allVisibleTasksHeight),xmlns:"http://www.w3.org/2000/svg"}},[_c("g",{staticClass:"gantt-elastic__grid-lines",style:Object.assign({},_vm.root.style["grid-lines"])},[_vm._l(_vm.horizontalLines,function(line){return _c("line",{key:line.key,staticClass:"gantt-elastic__grid-line-horizontal",style:Object.assign({},_vm.root.style["grid-line-horizontal"]),attrs:{x1:_vm.transformNumber(line.x1),y1:_vm.transformNumber(line.y1),x2:_vm.transformNumber(line.x2),y2:_vm.transformNumber(line.y2)}})}),_vm._v(" "),_vm._l(_vm.verticalLines,function(line){return _c("line",{key:line.key,staticClass:"gantt-elastic__grid-line-vertical",style:Object.assign({},_vm.root.style["grid-line-vertical"]),attrs:{x1:_vm.transformNumber(line.x1),y1:_vm.transformNumber(line.y1),x2:_vm.transformNumber(line.x2),y2:_vm.transformNumber(line.y2)}})}),_vm._v(" "),_c("line",{staticClass:"gantt-elastic__grid-line-time",style:Object.assign({},_vm.root.style["grid-line-time"]),attrs:{x1:_vm.transformNumber(_vm.timeLinePosition.x),y1:_vm.transformNumber(_vm.timeLinePosition.y1),x2:_vm.transformNumber(_vm.timeLinePosition.x),y2:_vm.transformNumber(_vm.timeLinePosition.y2)}})],2)])};Gridvue_type_template_id_2bf979a7_render._withStripped=!0;var Grid_component=normalizeComponent({name:"Grid",inject:["root"],data:()=>({}),created(){this.root.$on("recenterPosition",this.recenterPosition)},mounted(){this.$nextTick(()=>{this.$nextTick(()=>{this.root.scrollToTime(this.timeLinePosition.time)})})},methods:{recenterPosition(){this.root.scrollToTime(this.timeLinePosition.time)},transformNumber:num=>isNaN(num)?0:num},computed:{verticalLines(){let lines=[];const state=this.root.state;return state.options.times.steps.forEach(step=>{this.root.isInsideViewPort(step.offset.px,1)&&lines.push({key:step.time,x1:step.offset.px,y1:0,x2:step.offset.px,y2:state.tasks.length*(state.options.row.height+2*state.options.chart.grid.horizontal.gap)+this.root.style["grid-line-vertical"]["stroke-width"]})}),lines},horizontalLines(){let lines=[];const state=this.root.state.options;for(let index=0,len=this.root.visibleTasks.length;index<=len;index++){const y=index*(state.row.height+2*state.chart.grid.horizontal.gap)+this.root.style["grid-line-vertical"]["stroke-width"]/2;lines.push({key:"hl"+index,x1:0,y1:y,x2:"100%",y2:y})}return lines},inViewPort(){return line=>{const state=this.root.state.options;return line.x1>=state.scroll.chart.left&&line.x1<=state.scroll.chart.right}},timeLinePosition(){const d=new Date,current=d.getTime(),currentOffset=this.root.timeToPixelOffsetX(current),timeLine={x:0,y1:0,y2:"100%",dateTime:"",time:current};return timeLine.x=currentOffset,timeLine.dateTime=d.toLocaleDateString(),timeLine}}},Gridvue_type_template_id_2bf979a7_render,[],!1,null,null,null);Grid_component.options.__file="src/components/Chart/Grid.vue";var Grid=Grid_component.exports,DaysHighlightvue_type_template_id_1bfe64e8_render=function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _vm.showWorkingDays?_c("g",{staticClass:"gantt-elastic__chart-days-highlight-container",style:Object.assign({},_vm.root.style["chart-days-highlight-container"])},_vm._l(_vm.workingDays,function(day){return _c("rect",{key:_vm.getKey(day),staticClass:"gantt-elastic__chart-days-highlight-rect",style:Object.assign({},_vm.root.style["chart-days-highlight-rect"]),attrs:{x:_vm.transformNumber(day.offset.px),y:"0",width:_vm.transformNumber(day.width.px),height:"100%"}})}),0):_vm._e()};DaysHighlightvue_type_template_id_1bfe64e8_render._withStripped=!0;var DaysHighlight_component=normalizeComponent({name:"DaysHighlight",inject:["root"],data:()=>({}),methods:{getKey:day=>dayjs_min_default()(day.time).format("YYYY-MM-DD"),transformNumber:num=>isNaN(num)?0:num},computed:{workingDays(){return this.root.state.options.times.steps.filter(step=>-1===this.root.state.options.calendar.workingDays.indexOf(dayjs_min_default()(step.time).day()))},showWorkingDays(){const calendar=this.root.state.options.calendar;return!(void 0===calendar.workingDays||!Array.isArray(calendar.workingDays)||!calendar.workingDays.length)}}},DaysHighlightvue_type_template_id_1bfe64e8_render,[],!1,null,null,null);DaysHighlight_component.options.__file="src/components/Chart/DaysHighlight.vue";var DaysHighlight=DaysHighlight_component.exports,Calendarvue_type_template_id_dee108e2_render=function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _c("div",{staticClass:"gantt-elastic__calendar-wrapper",style:Object.assign({},_vm.root.style["calendar-wrapper"],{width:_vm.root.state.options.width+"px"})},[_c("div",{staticClass:"gantt-elastic__calendar",style:Object.assign({},_vm.root.style.calendar,{width:_vm.root.state.options.width+"px"})},[_vm.root.state.options.calendar.month.display?_c("calendar-row",{attrs:{items:_vm.dates.months,which:"month"}}):_vm._e(),_vm._v(" "),_vm.root.state.options.calendar.day.display?_c("calendar-row",{attrs:{items:_vm.dates.days,which:"day"}}):_vm._e(),_vm._v(" "),_vm.root.state.options.calendar.hour.display?_c("calendar-row",{attrs:{items:_vm.dates.hours,which:"hour"}}):_vm._e()],1)])};Calendarvue_type_template_id_dee108e2_render._withStripped=!0;var CalendarRowvue_type_template_id_0daf06fb_render=function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _c("div",{class:"gantt-elastic__calendar-row gantt-elastic__calendar-row--"+_vm.which,style:_vm.rowStyle},_vm._l(_vm.items,function(item,itemIndex){return _c("div",{key:item.key,class:"gantt-elastic__calendar-row-rect gantt-elastic__calendar-row-rect--"+_vm.which,style:_vm.rectStyle},_vm._l(item.children,function(child,childIndex){return _c("div",{key:child.key,class:"gantt-elastic__calendar-row-rect-child gantt-elastic__calendar-row-rect-child--"+_vm.which,style:_vm.rectChildStyle[itemIndex][childIndex]},[_c("div",{class:"gantt-elastic__calendar-row-text gantt-elastic__calendar-row-text--"+_vm.which,style:_vm.textStyle(child)},[_vm._v("\n "+_vm._s(child.label)+"\n ")])])}),0)}),0)};CalendarRowvue_type_template_id_0daf06fb_render._withStripped=!0;var CalendarRow_component=normalizeComponent({name:"CalendarRow",inject:["root"],props:["items","which"],data:()=>({}),methods:{getTextX(item){let x=item.x+item.width/2-item.textWidth/2;if("month"===this.which&&this.root.isInsideViewPort(item.x,item.width,0)){let scrollWidth=this.root.state.options.scroll.chart.right-this.root.state.options.scroll.chart.left;(x=this.root.state.options.scroll.chart.left+scrollWidth/2-item.textWidth/2+2)+item.textWidth+2>item.x+item.width?x=item.x+item.width-item.textWidth-2:x<item.x&&(x=item.x+2)}return x-item.x}},computed:{rowStyle(){return{...this.root.style["calendar-row"],...this.root.style["calendar-row--"+this.which]}},rectStyle(){return{...this.root.style["calendar-row-rect"],...this.root.style["calendar-row-rect--"+this.which]}},rectChildStyle(){const basicStyle={...this.root.style["calendar-row-rect-child"],...this.root.style["calendar-row-rect-child--"+this.which]},style=[];for(let item of this.items){const childrenStyle=[];for(let child of item.children)childrenStyle.push({...basicStyle,width:child.width+"px",height:child.height+"px"});style.push(childrenStyle)}return style},textStyle(){const basicStyle={...this.root.style["calendar-row-text"],...this.root.style["calendar-row-text--"+this.which]};return child=>{const style={...basicStyle};return"month"===this.which&&(style.left=this.getTextX(child)+"px"),style}}}},CalendarRowvue_type_template_id_0daf06fb_render,[],!1,null,null,null);CalendarRow_component.options.__file="src/components/Calendar/CalendarRow.vue";var Calendar_component=normalizeComponent({name:"Calendar",components:{CalendarRow:CalendarRow_component.exports},inject:["root"],data:()=>({}),methods:{howManyHoursFit(dayIndex){let fullCellWidth=this.root.state.options.times.steps[dayIndex].width.px,formatNames=Object.keys(this.root.state.options.calendar.hour.format);for(let hours=24;hours>1;hours=Math.ceil(hours/2))for(let formatName of formatNames)if((this.root.state.options.calendar.hour.maxWidths[formatName]+3)*hours<=fullCellWidth&&hours>1)return{count:hours,type:formatName};return{count:0,type:""}},howManyDaysFit(){let fullWidth=this.root.state.options.width,formatNames=Object.keys(this.root.state.options.calendar.day.format);for(let days=this.root.state.options.times.steps.length;days>1;days=Math.ceil(days/2))for(let formatName of formatNames)if((this.root.state.options.calendar.day.maxWidths[formatName]+3)*days<=fullWidth&&days>1)return{count:days,type:formatName};return{count:0,type:""}},howManyMonthsFit(){let fullWidth=this.root.state.options.width,formatNames=Object.keys(this.root.state.options.calendar.month.format);dayjs_min_default()(this.root.state.options.times.firstTime).clone();this.root.state.options.times.lastTime;let monthsCount=this.root.monthsCount(this.root.state.options.times.firstTime,this.root.state.options.times.lastTime);if(1===monthsCount)for(let formatName of formatNames)if(this.root.state.options.calendar.month.maxWidths[formatName]+3<=fullWidth)return{count:1,type:formatName};for(let months=monthsCount;months>1;months=Math.ceil(months/2))for(let formatName of formatNames)if((this.root.state.options.calendar.month.maxWidths[formatName]+3)*months<=fullWidth&&months>1)return{count:months,type:formatName};return{count:0,type:formatNames[0]}},generateHours(){let allHours=[];if(!this.root.state.options.calendar.hour.display)return allHours;const steps=this.root.state.options.times.steps;this.root.state.options.locale.name;for(let hourIndex=0,len=steps.length;hourIndex<len;hourIndex++){const hoursCount=this.howManyHoursFit(hourIndex);if(0===hoursCount.count)continue;const hours={key:hourIndex+"step",children:[]},hourStep=24/hoursCount.count,hourWidthPx=steps[hourIndex].width.px/hoursCount.count;for(let i=0,len=hoursCount.count;i<len;i++){const hour=i*hourStep;let index=hourIndex;hourIndex>0&&(index=hourIndex-24*Math.floor(hourIndex/24));let textWidth=0;void 0!==this.root.state.options.calendar.hour.widths[index]&&(textWidth=this.root.state.options.calendar.hour.widths[index][hoursCount.type]);let x=steps[hourIndex].offset.px+hourWidthPx*i;hours.children.push({index:hourIndex,key:"h"+i,x:x,y:this.root.state.options.calendar.day.height+this.root.state.options.calendar.month.height,width:hourWidthPx,textWidth:textWidth,height:this.root.state.options.calendar.hour.height,label:this.root.state.options.calendar.hour.formatted[hoursCount.type][hour]})}allHours.push(hours)}return allHours},generateDays(){let days=[];if(!this.root.state.options.calendar.day.display)return days;const daysCount=this.howManyDaysFit();if(0===daysCount.count)return days;const steps=this.root.state.options.times.steps,localeName=this.root.state.options.locale.name,dayStep=Math.ceil(steps.length/daysCount.count);for(let dayIndex=0,len=steps.length;dayIndex<len;dayIndex+=dayStep){let dayWidthPx=0;for(let currentStep=0;currentStep<dayStep;currentStep++)void 0!==steps[dayIndex+currentStep]&&(dayWidthPx+=steps[dayIndex+currentStep].width.px);const date=dayjs_min_default()(steps[dayIndex].time);let textWidth=0;void 0!==this.root.state.options.calendar.day.widths[dayIndex]&&(textWidth=this.root.state.options.calendar.day.widths[dayIndex][daysCount.type]);let x=steps[dayIndex].offset.px;days.push({index:dayIndex,key:steps[dayIndex].time+"d",x:x,y:this.root.state.options.calendar.month.height,width:dayWidthPx,textWidth:textWidth,height:this.root.state.options.calendar.day.height,label:this.root.state.options.calendar.day.format[daysCount.type](date.locale(localeName))})}return days.map(item=>({key:item.key,children:[item]}))},generateMonths(){let months=[];if(!this.root.state.options.calendar.month.display)return months;const monthsCount=this.howManyMonthsFit();if(0===monthsCount.count)return months;this.root.state.options.times.steps;const localeName=this.root.state.options.locale.name;let formatNames=Object.keys(this.root.state.options.calendar.month.format),currentDate=dayjs_min_default()(this.root.state.options.times.firstTime);for(let monthIndex=0;monthIndex<monthsCount.count;monthIndex++){let monthWidth=0,monthOffset=Number.MAX_SAFE_INTEGER,finalDate=dayjs_min_default()(currentDate).add(1,"month").startOf("month");finalDate.valueOf()>this.root.state.options.times.lastTime&&(finalDate=dayjs_min_default()(this.root.state.options.times.lastTime));for(let step=0,len=this.root.state.options.times.steps.length;step<len;step++){let currentStep=this.root.state.options.times.steps[step];currentStep.time>=currentDate.valueOf()&¤tStep.time<finalDate.valueOf()&&(monthWidth+=currentStep.width.px,currentStep.offset.px<monthOffset&&(monthOffset=currentStep.offset.px))}let choosenFormatName,label="";for(let formatName of formatNames)this.root.state.options.calendar.month.maxWidths[formatName]+2<=monthWidth&&(label=this.root.state.options.calendar.month.format[formatName](currentDate.locale(localeName)),choosenFormatName=formatName);let textWidth=0;void 0!==this.root.state.options.calendar.month.widths[monthIndex]&&(textWidth=this.root.state.options.calendar.month.widths[monthIndex][choosenFormatName]);let x=monthOffset;months.push({index:monthIndex,key:monthIndex+"m",x:x,y:0,width:monthWidth,textWidth:textWidth,choosenFormatName:choosenFormatName,height:this.root.state.options.calendar.month.height,label:label}),(currentDate=currentDate.add(1,"month").startOf("month")).valueOf()>this.root.state.options.times.lastTime&&(currentDate=dayjs_min_default()(this.root.state.options.times.lastTime))}return months.map(item=>({key:item.key,children:[item]}))},calculateCalendarDimensions({hours:hours,days:days,months:months}){let height=0;this.root.state.options.calendar.hour.display&&hours.length>0&&(height+=this.root.state.options.calendar.hour.height),this.root.state.options.calendar.day.display&&days.length>0&&(height+=this.root.state.options.calendar.day.height),this.root.state.options.calendar.month.display&&months.length>0&&(height+=this.root.state.options.calendar.month.height),this.root.state.options.calendar.height=height}},computed:{dates(){const allDates={hours:this.generateHours(),days:this.generateDays(),months:this.generateMonths()};return this.calculateCalendarDimensions(allDates),allDates}}},Calendarvue_type_template_id_dee108e2_render,[],!1,null,null,null);Calendar_component.options.__file="src/components/Calendar/Calendar.vue";var Calendar=Calendar_component.exports,DependencyLinesvue_type_template_id_f1cbf6ba_render=function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _c("svg",{staticClass:"gantt-elastic__chart-dependency-lines-container",style:Object.assign({},_vm.root.style["chart-dependency-lines-container"]),attrs:{x:"0",y:"0",width:"100%",height:"100%"}},_vm._l(_vm.dependencyTasks,function(task){return _c("g",{key:task.id,attrs:{task:task}},_vm._l(task.dependencyLines,function(dependencyLine){return _c("path",{key:dependencyLine.id,staticClass:"gantt-elastic__chart-dependency-lines-path",style:Object.assign({},_vm.root.style["chart-dependency-lines-path"],task.style["chart-dependency-lines-path"],task.style["chart-dependency-lines-path-"+dependencyLine.task_id]),attrs:{task:task,d:dependencyLine.points}})}),0)}),0)};DependencyLinesvue_type_template_id_f1cbf6ba_render._withStripped=!0;var DependencyLines_component=normalizeComponent({name:"DependencyLines",inject:["root"],props:["tasks"],data:()=>({}),methods:{getPoints(fromTaskId,toTaskId){const fromTask=this.root.getTask(fromTaskId),toTask=this.root.getTask(toTaskId);if(null===fromTask||null===toTask||!this.root.isTaskVisible(toTask)||!this.root.isTaskVisible(fromTask))return null;const startX=fromTask.x+fromTask.width,startY=fromTask.y+fromTask.height/2,stopX=toTask.x,stopY=toTask.y+toTask.height/2,distanceX=stopX-startX;let distanceY,yMultiplier=1;stopY>=startY?distanceY=stopY-startY:(distanceY=startY-stopY,yMultiplier=-1);let points=`M ${startX} ${startY}\n L ${startX+10},${startY} `;return points+=distanceX<=14?`Q ${startX+10+4},${startY} ${startX+10+4},${startY+4*yMultiplier}\n L ${startX+10+4},${startY+distanceY*yMultiplier/2-4*yMultiplier}\n Q ${startX+10+4},${startY+distanceY*yMultiplier/2} ${startX+10},${startY+distanceY*yMultiplier/2}\n L ${startX-10+distanceX},${startY+distanceY*yMultiplier/2}\n Q ${startX-10+distanceX-4},${startY+distanceY*yMultiplier/2} ${startX-10+distanceX-4},${startY+distanceY*yMultiplier/2+4*yMultiplier}\n L ${startX-10+distanceX-4},${stopY-4*yMultiplier}\n Q ${startX-10+distanceX-4},${stopY} ${startX-10+distanceX},${stopY}\n L ${stopX},${stopY}`:`L ${startX+distanceX/2-4},${startY}\n Q ${startX+distanceX/2},${startY} ${startX+distanceX/2},${startY+4*yMultiplier}\n L ${startX+distanceX/2},${stopY-4*yMultiplier}\n Q ${startX+distanceX/2},${stopY} ${startX+distanceX/2+4},${stopY}\n L ${stopX},${stopY}`}},computed:{dependencyTasks(){return this.tasks.filter(task=>void 0!==task.dependentOn).map(task=>(task.dependencyLines=task.dependentOn.map(id=>({points:this.getPoints(id,task.id),task_id:id})),task)).filter(task=>null!==task.dependencyLines.points)}}},DependencyLinesvue_type_template_id_f1cbf6ba_render,[],!1,null,null,null);DependencyLines_component.options.__file="src/components/Chart/DependencyLines.vue";var DependencyLines=DependencyLines_component.exports,Taskvue_type_template_id_e9c23eca_render=function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _c("g",{staticClass:"gantt-elastic__chart-row-bar-wrapper gantt-elastic__chart-row-task-wrapper",style:Object.assign({},_vm.root.style["chart-row-bar-wrapper"],_vm.root.style["chart-row-task-wrapper"],_vm.task.style["chart-row-bar-wrapper"])},[_vm.displayExpander?_c("foreignObject",{staticClass:"gantt-elastic__chart-expander gantt-elastic__chart-expander--task",style:Object.assign({},_vm.root.style["chart-expander"],_vm.root.style["chart-expander--task"],_vm.task.style["chart-expander"]),attrs:{x:_vm.transformNumber(_vm.task.x-_vm.root.state.options.chart.expander.offset-_vm.root.state.options.chart.expander.size),y:_vm.transformNumber(_vm.task.y+(_vm.root.state.options.row.height-_vm.root.state.options.chart.expander.size)/2),width:_vm.root.state.options.chart.expander.size,height:_vm.root.state.options.chart.expander.size}},[_c("expander",{attrs:{tasks:[_vm.task],options:_vm.root.state.options.chart.expander,type:"chart"}})],1):_vm._e(),_vm._v(" "),_c("svg",{staticClass:"gantt-elastic__chart-row-bar gantt-elastic__chart-row-task",style:Object.assign({},_vm.root.style["chart-row-bar"],_vm.root.style["chart-row-task"],_vm.task.style["chart-row-bar"]),attrs:{x:_vm.transformNumber(_vm.task.x),y:_vm.transformNumber(_vm.task.y),width:_vm.transformNumber(_vm.task.width),height:_vm.transformNumber(_vm.task.height),viewBox:"0 0 "+_vm.transformNumber(_vm.task.width)+" "+_vm.transformNumber(_vm.task.height),xmlns:"http://www.w3.org/2000/svg"},on:{click:function($event){return _vm.emitEvent("click",$event)},mouseenter:function($event){return _vm.emitEvent("mouseenter",$event)},mouseover:function($event){return _vm.emitEvent("mouseover",$event)},mouseout:function($event){return _vm.emitEvent("mouseout",$event)},mousemove:function($event){return _vm.emitEvent("mousemove",$event)},mousedown:function($event){return _vm.emitEvent("mousedown",$event)},mouseup:function($event){return _vm.emitEvent("mouseup",$event)},mousewheel:function($event){return _vm.emitEvent("mousewheel",$event)},touchstart:function($event){return _vm.emitEvent("touchstart",$event)},touchmove:function($event){return _vm.emitEvent("touchmove",$event)},touchend:function($event){return _vm.emitEvent("touchend",$event)}}},[_c("defs",[_c("clipPath",{attrs:{id:_vm.clipPathId}},[_c("polygon",{attrs:{points:_vm.getPoints}})])]),_vm._v(" "),_c("polygon",{staticClass:"gantt-elastic__chart-row-bar-polygon gantt-elastic__chart-row-task-polygon",style:Object.assign({},_vm.root.style["chart-row-bar-polygon"],_vm.root.style["chart-row-task-polygon"],_vm.task.style.base,_vm.task.style["chart-row-bar-polygon"]),attrs:{points:_vm.getPoints}}),_vm._v(" "),_c("progress-bar",{attrs:{task:_vm.task,"clip-path":"url(#"+_vm.clipPathId+")"}})],1),_vm._v(" "),_vm.root.state.options.chart.text.display?_c("chart-text",{attrs:{task:_vm.task}}):_vm._e()],1)};Taskvue_type_template_id_e9c23eca_render._withStripped=!0;var Textvue_type_template_id_459c2fe4_render=function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _c("svg",{staticClass:"gantt-elastic__chart-row-text-wrapper",style:Object.assign({},_vm.root.style["chart-row-text-wrapper"]),attrs:{x:_vm.transformNumber(_vm.task.x+_vm.task.width+_vm.root.state.options.chart.text.offset),y:_vm.transformNumber(_vm.task.y-_vm.root.state.options.chart.grid.horizontal.gap),width:_vm.transformNumber(_vm.getWidth),height:_vm.transformNumber(_vm.getHeight)}},[_c("foreignObject",{attrs:{x:"0",y:"0",width:"100%",height:_vm.transformNumber(_vm.getHeight)}},[_c("div",{staticClass:"gantt-elastic__chart-row-text",style:Object.assign({},_vm.root.style["chart-row-text"]),attrs:{xmlns:"http://www.w3.org/1999/xhtml"}},[_vm.html?_vm._e():_c("div",{staticClass:"gantt-elastic__chart-row-text-content gantt-elastic__chart-row-text-content--text",style:Object.assign({},_vm.root.style["chart-row-text-content"],_vm.root.style["chart-row-text-content--text"],_vm.contentStyle,_vm.taskTextStyle)},[_c("div",[_vm._v(_vm._s(_vm.label))])]),_vm._v(" "),_vm.html?_c("div",{staticClass:"gantt-elastic__chart-row-text-content gantt-elastic__chart-row-text-content--html",style:Object.assign({},_vm.root.style["chart-row-text-content"],_vm.root.style["chart-row-text-content--html"],_vm.contentStyle,_vm.taskTextStyle),domProps:{innerHTML:_vm._s(_vm.label)}}):_vm._e()])])],1)};Textvue_type_template_id_459c2fe4_render._withStripped=!0;var Text_component=normalizeComponent({name:"ChartText",inject:["root"],props:["task"],data:()=>({}),computed:{getWidth(){const textStyle=this.root.style["chart-row-text"];return this.root.state.ctx.font=`${textStyle["font-weight"]} ${textStyle["font-size"]} ${textStyle["font-family"]}`,this.root.state.ctx.measureText(this.task.label).width+2*this.root.state.options.chart.text.xPadding},getHeight(){return this.task.height+2*this.root.state.options.chart.grid.horizontal.gap},contentStyle(){return{height:"100%","line-height":this.getHeight+"px"}},html(){const cols=this.root.state.options.taskList.columns;var labelName=this.root.state.options.taskList.labelField;for(let i=0,len=cols.length;i<len;i++){const col=cols[i];if(("label"===col.value||col.value==labelName)&&void 0!==col.html&&col.html)return!0}return!1},taskTextStyle(){return this.task.style?this.task.style.text:{}},label(){var labelName=this.root.state.options.taskList.labelField,label="label";labelName&&(label=labelName);var col=this.root.state.options.taskList.columns.find(col=>Object.is(col.value,label));return"function"==typeof col.render?col.render(this.task):this.task[label]}},methods:{transformNumber:num=>isNaN(num)?0:num}},Textvue_type_template_id_459c2fe4_render,[],!1,null,null,null);Text_component.options.__file="src/components/Chart/Text.vue";var Text=Text_component.exports,ProgressBarvue_type_template_id_4bc39355_render=function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _c("g",{staticClass:"gantt-elastic__chart-row-progress-bar-wrapper",style:Object.assign({},_vm.root.style["chart-row-progress-bar-wrapper"],_vm.task.style["chart-row-progress-bar-wrapper"])},[_c("defs",[_c("pattern",{attrs:{id:"diagonalHatch",width:_vm.root.state.options.chart.progress.width,height:_vm.root.state.options.chart.progress.width,patternTransform:"rotate(45 0 0)",patternUnits:"userSpaceOnUse"}},[_c("line",{staticClass:"chart-row-progress-bar-line",style:Object.assign({},_vm.root.style["chart-row-progress-bar-line"],_vm.task.style["chart-row-progress-bar-line"]),attrs:{x1:"0",y1:"0",x2:"0",y2:_vm.transformNumber(_vm.root.state.options.chart.progress.width)}})])]),_vm._v(" "),_vm.root.state.options.chart.progress.bar?_c("rect",{staticClass:"gantt-elastic__chart-row-progress-bar-solid",style:Object.assign({},_vm.root.style["chart-row-progress-bar-solid"],_vm.task.style["chart-row-progress-bar-solid"]),attrs:{x:"0",y:"0",width:_vm.transformNumber(_vm.getProgressWidth)}}):_vm._e(),_vm._v(" "),_vm.root.state.options.chart.progress.pattern?_c("g",[_c("rect",{staticClass:"gantt-elastic__chart-row-progress-bar-pattern",style:Object.assign({},_vm.root.style["chart-row-progress-bar-pattern"],_vm.task.style["chart-row-progress-bar-pattern"]),attrs:{x:_vm.transformNumber(_vm.getProgressWidth),y:"0",width:_vm.transformNumber(100-_vm.task.progress+"%"),height:"100%"}}),_vm._v(" "),_c("path",{staticClass:"gantt-elastic__chart-row-progress-bar-outline",style:Object.assign({},_vm.root.style["chart-row-progress-bar-outline"],_vm.task.style.base,_vm.task.style["chart-row-progress-bar-outline"]),attrs:{d:_vm.getLinePoints}})]):_vm._e()])};ProgressBarvue_type_template_id_4bc39355_render._withStripped=!0;var ProgressBar_component=normalizeComponent({name:"ProgressBar",inject:["root"],props:["task"],data:()=>({}),computed:{getProgressWidth(){return this.task.progress+"%"},getLinePoints(){let start=this.task.width/100*this.task.progress;return`M ${start=isNaN(start)?0:start} 0 L ${start} ${this.task.height}`},getSolidStyle(){return Object.assign({},this.root.state.options.chart.progress.styles.bar.solid,this.task.progressBarStyle.bar)},getLineStyle(){return Object.assign({},{stroke:this.root.state.options.row.styles.bar.stroke+"a0","stroke-width":this.root.state.options.row.styles.bar["stroke-width"]/2},this.task.style)}},methods:{transformNumber:num=>isNaN(num)?0:num}},ProgressBarvue_type_template_id_4bc39355_render,[],!1,null,null,null);ProgressBar_component.options.__file="src/components/Chart/ProgressBar.vue";var ProgressBar=ProgressBar_component.exports,Task_mixin={computed:{getViewBox(){const task=this.task;return`0 0 ${task.width} ${task.height}`},getGroupTransform(){return`translate(${this.task.x} ${this.task.y})`},displayExpander(){const expander=this.root.state.options.chart.expander;return expander.display||expander.displayIfTaskListHidden&&!this.root.state.options.taskList.display}},methods:{emitEvent(eventName,event){this.root.state.options.scroll.scrolling||this.root.$emit(`chart-${this.task.type}-${eventName}`,{event:event,data:this.task})}}},Task_component=normalizeComponent({name:"Task",components:{ChartText:Text,ProgressBar:ProgressBar,Expander:Expander},inject:["root"],props:["task"],mixins:[Task_mixin],data:()=>({}),computed:{clipPathId(){return"gantt-elastic__task-clip-path-"+this.task.id},getPoints(){const task=this.task;return`0,0 ${this.transformNumber(task.width)},0 ${this.transformNumber(task.width)},${this.transformNumber(task.height)} 0,${this.transformNumber(task.height)}`}},methods:{transformNumber:num=>isNaN(num)?0:num}},Taskvue_type_template_id_e9c23eca_render,[],!1,null,null,null);
/**
* @fileoverview Task mixin
* @license MIT
* @author Rafal Pospiech <neuronet.io@gmail.com>
* @package GanttElastic
*/Task_component.options.__file="src/components/Chart/Row/Task.vue";var Task=Task_component.exports,Milestonevue_type_template_id_3013006c_render=function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _c("g",{staticClass:"gantt-elastic__chart-row-bar-wrapper gantt-elastic__chart-row-milestone-wrapper",style:Object.assign({},_vm.root.style["chart-row-bar-wrapper"],_vm.root.style["chart-row-milestone-wrapper"],_vm.task.style["chart-row-bar-wrapper"])},[_vm.displayExpander?_c("foreignObject",{staticClass:"gantt-elastic__chart-expander gantt-elastic__chart-expander--milestone",style:Object.assign({},_vm.root.style["chart-expander"],_vm.root.style["chart-expander--milestone"],_vm.task.style["chart-expander"]),attrs:{x:_vm.transformNumber(_vm.task.x-_vm.root.state.options.chart.expander.offset-_vm.root.state.options.chart.expander.size),y:_vm.transformNumber(_vm.task.y+(_vm.root.state.options.row.height-_vm.root.state.options.chart.expander.size)/2),width:_vm.root.state.options.chart.expander.size,height:_vm.root.state.options.chart.expander.size}},[_c("expander",{attrs:{tasks:[_vm.task],options:_vm.root.state.options.chart.expander,type:"chart"}})],1):_vm._e(),_vm._v(" "),_c("svg",{staticClass:"gantt-elastic__chart-row-bar gantt-elastic__chart-row-milestone",style:Object.assign({},_vm.root.style["chart-row-bar"],_vm.root.style["chart-row-milestone"],_vm.task.style["chart-row-bar"]),attrs:{x:_vm.transformNumber(_vm.task.x),y:_vm.transformNumber(_vm.task.y),width:_vm.transformNumber(_vm.task.width),height:_vm.transformNumber(_vm.task.height),viewBox:"0 0 "+_vm.transformNumber(_vm.task.width)+" "+_vm.transformNumber(_vm.task.height),xmlns:"http://www.w3.org/2000/svg"},on:{click:function($event){return _vm.emitEvent("click",$event)},mouseenter:function($event){return _vm.emitEvent("mouseenter",$event)},mouseover:function($event){return _vm.emitEvent("mouseover",$event)},mouseout:function($event){return _vm.emitEvent("mouseout",$event)},mousemove:function($event){return _vm.emitEvent("mousemove",$event)},mousedown:function($event){return _vm.emitEvent("mousedown",$event)},mouseup:function($event){return _vm.emitEvent("mouseup",$event)},mousewheel:function($event){return _vm.emitEvent("mousewheel",$event)},touchstart:function($event){return _vm.emitEvent("touchstart",$event)},touchmove:function($event){return _vm.emitEvent("touchmove",$event)},touchend:function($event){return _vm.emitEvent("touchend",$event)}}},[_c("defs",[_c("clipPath",{attrs:{id:_vm.clipPathId}},[_c("polygon",{attrs:{points:_vm.getPoints}})])]),_vm._v(" "),_c("polygon",{staticClass:"gantt-elastic__chart-row-bar-polygon gantt-elastic__chart-row-milestone-polygon",style:Object.assign({},_vm.root.style["chart-row-bar-polygon"],_vm.root.style["chart-row-milestone-polygon"],_vm.task.style.base,_vm.task.style["chart-row-bar-polygon"]),attrs:{points:_vm.getPoints}}),_vm._v(" "),_c("progress-bar",{attrs:{task:_vm.task,"clip-path":"url(#"+_vm.clipPathId+")"}})],1),_vm._v(" "),_vm.root.state.options.chart.text.display?_c("chart-text",{attrs:{task:_vm.task}}):_vm._e()],1)};Milestonevue_type_template_id_3013006c_render._withStripped=!0;var Milestone_component=normalizeComponent({name:"Milestone",components:{ChartText:Text,ProgressBar:ProgressBar,Expander:Expander},inject:["root"],props:["task"],mixins:[Task_mixin],data:()=>({}),computed:{clipPathId(){return"gantt-elastic__milestone-clip-path-"+this.task.id},getPoints(){const task=this.task,fifty=this.transformNumber(task.height)/2;let offset=fifty;return this.transformNumber(task.width)/2-offset<0&&(offset=this.transformNumber(task.width)/2),`0,${fifty}\n ${offset},0\n ${this.transformNumber(task.width)-offset},0\n ${this.transformNumber(task.width)},${fifty}\n ${this.transformNumber(task.width)-offset},${this.transformNumber(task.height)}\n ${offset},${this.transformNumber(task.height)}`}},methods:{transformNumber:num=>isNaN(num)?0:num}},Milestonevue_type_template_id_3013006c_render,[],!1,null,null,null);Milestone_component.options.__file="src/components/Chart/Row/Milestone.vue";var Milestone=Milestone_component.exports,Projectvue_type_template_id_077bbd73_render=function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _c("g",{staticClass:"gantt-elastic__chart-row-bar-wrapper gantt-elastic__chart-row-project-wrapper",style:Object.assign({},_vm.root.style["chart-row-bar-wrapper"],_vm.root.style["chart-row-project-wrapper"],_vm.task.style["chart-row-bar-wrapper"])},[_vm.displayExpander?_c("foreignObject",{staticClass:"gantt-elastic__chart-expander gantt-elastic__chart-expander--project",style:Object.assign({},_vm.root.style["chart-expander"],_vm.root.style["chart-expander--project"],_vm.task.style["chart-expander"]),attrs:{x:_vm.transformNumber(_vm.task.x-_vm.root.state.options.chart.expander.offset-_vm.root.state.options.chart.expander.size),y:_vm.transformNumber(_vm.task.y+(_vm.root.state.options.row.height-_vm.root.state.options.chart.expander.size)/2),width:_vm.root.state.options.chart.expander.size,height:_vm.root.state.options.chart.expander.size}},[_c("expander",{attrs:{tasks:[_vm.task],options:_vm.root.state.options.chart.expander,type:"chart"}})],1):_vm._e(),_vm._v(" "),_c("svg",{staticClass:"gantt-elastic__chart-row-bar gantt-elastic__chart-row-project",style:Object.assign({},_vm.root.style["chart-row-bar"],_vm.root.style["chart-row-project"],_vm.task.style["chart-row-bar"]),attrs:{x:_vm.transformNumber(_vm.task.x),y:_vm.transformNumber(_vm.task.y),width:_vm.transformNumber(_vm.task.width),height:_vm.transformNumber(_vm.task.height),viewBox:"0 0 "+_vm.transformNumber(_vm.task.width)+" "+_vm.transformNumber(_vm.task.height),xmlns:"http://www.w3.org/2000/svg"},on:{click:function($event){return _vm.emitEvent("click",$event)},mouseenter:function($event){return _vm.emitEvent("mouseenter",$event)},mouseover:function($event){return _vm.emitEvent("mouseover",$event)},mouseout:function($event){return _vm.emitEvent("mouseout",$event)},mousemove:function($event){return _vm.emitEvent("mousemove",$event)},mousedown:function($event){return _vm.emitEvent("mousedown",$event)},mouseup:function($event){return _vm.emitEvent("mouseup",$event)},mousewheel:function($event){return _vm.emitEvent("mousewheel",$event)},touchstart:function($event){return _vm.emitEvent("touchstart",$event)},touchmove:function($event){return _vm.emitEvent("touchmove",$event)},touchend:function($event){return _vm.emitEvent("touchend",$event)}}},[_c("defs",[_c("clipPath",{attrs:{id:_vm.clipPathId}},[_c("path",{attrs:{d:_vm.getPoints}})])]),_vm._v(" "),_c("path",{staticClass:"gantt-elastic__chart-row-bar-polygon gantt-elastic__chart-row-project-polygon",style:Object.assign({},_vm.root.style["chart-row-bar-polygon"],_vm.root.style["chart-row-project-polygon"],_vm.task.style.base,_vm.task.style["chart-row-bar-polygon"]),attrs:{d:_vm.getPoints}}),_vm._v(" "),_c("progress-bar",{attrs:{task:_vm.task,"clip-path":"url(#"+_vm.clipPathId+")"}})],1),_vm._v(" "),_vm.root.state.options.chart.text.display?_c("chart-text",{attrs:{task:_vm.task}}):_vm._e()],1)};Projectvue_type_template_id_077bbd73_render._withStripped=!0;var Project_component=normalizeComponent({name:"Project",components:{ChartText:Text,ProgressBar:ProgressBar,Expander:Expander},inject:["root"],props:["task"],mixins:[Task_mixin],data:()=>({}),computed:{clipPathId(){return"gantt-elastic__project-clip-path-"+this.task.id},getPoints(){const task=this.task,bottom=this.transformNumber(task.height)-this.transformNumber(task.height)/4,corner=this.transformNumber(task.height)/6,smallCorner=this.transformNumber(task.height)/8;return`M ${smallCorner},0\n L ${this.transformNumber(task.width)-smallCorner} 0\n L ${this.transformNumber(task.width)} ${smallCorner}\n L ${this.transformNumber(task.width)} ${bottom}\n L ${this.transformNumber(task.width)-corner} ${this.transformNumber(task.height)}\n L ${this.transformNumber(task.width)-2*corner} ${bottom}\n L ${2*corner} ${bottom}\n L ${corner} ${this.transformNumber(task.height)}\n L 0 ${bottom}\n L 0 ${smallCorner}\n Z\n `},displayExpander(){const expander=this.root.state.options.chart.expander;return expander.display||expander.displayIfTaskListHidden&&!this.root.state.options.taskList.display}},methods:{transformNumber:num=>isNaN(num)?0:num}},Projectvue_type_template_id_077bbd73_render,[],!1,null,null,null);Project_component.options.__file="src/components/Chart/Row/Project.vue";var Chart_component=normalizeComponent({name:"Chart",components:{Grid:Grid,DependencyLines:DependencyLines,Calendar:Calendar,Task:Task,Milestone:Milestone,Project:Project_component.exports,DaysHighlight:DaysHighlight},inject:["root"],data:()=>({moving:!1}),mounted(){this.root.state.refs.chart=this.$refs.chart,this.root.state.refs.chartCalendarContainer=this.$refs.chartCalendarContainer,this.root.state.refs.chartGraphContainer=this.$refs.chartGraphContainer,this.root.state.refs.chartGraph=this.$refs.chartGraph,this.root.state.refs.chartGraphSvg=this.$refs.chartGraphSvg},computed:{getViewBox(){return`0 0 ${this.root.state.options.width} ${this.root.state.options.allVisibleTasksHeight}`}},methods:{clickTaskItem($event,task){this.root.$emit("taskList-item-dblclick",{event:$event,data:task})},transformNumber:num=>isNaN(num)?0:num}},Chartvue_type_template_id_67c3f5cd_render,[],!1,null,null,null);Chart_component.options.__file="src/components/Chart/Chart.vue";var MainView_component=normalizeComponent({name:"MainView",components:{TaskList:TaskList,Chart:Chart_component.exports},inject:["root"],data:()=>({defs:"",mousePos:{x:0,y:0,movementX:0,movementY:0,lastX:0,lastY:0,positiveX:0,positiveY:0,currentX:0,currentY:0}}),mounted(){this.viewBoxWidth=this.$el.clientWidth,this.root.state.refs.mainView=this.$refs.mainView,this.root.state.refs.chartContainer=this.$refs.chartContainer,this.root.state.refs.taskList=this.$refs.taskList,this.root.state.refs.chartScrollContainerHorizontal=this.$refs.chartScrollContainerHorizontal,this.root.state.refs.chartScrollContainerVertical=this.$refs.chartScrollContainerVertical,document.addEventListener("mouseup",this.chartMouseUp.bind(this)),document.addEventListener("mousemove",this.chartMouseMove.bind(this)),document.addEventListener("touchmove",this.chartMouseMove.bind(this)),document.addEventListener("touchend",this.chartMouseUp.bind(this))},computed:{getMarginLeft(){return this.root.state.options.taskList.display?this.root.state.options.taskList.finalWidth+"px":"0px"},verticalStyle(){return{width:this.root.state.options.scrollBarHeight+"px",height:"calc(100% - "+(this.root.state.options.calendar.height+this.root.state.options.calendar.gap)+"px)","margin-top":this.root.state.options.calendar.height+this.root.state.options.calendar.gap+"px"}},getViewBox(){return this.root.state.options.clientWidth?`0 0 ${this.root.state.options.clientWidth-this.root.state.options.scrollBarHeight} ${this.root.state.options.height}`:`0 0 0 ${this.root.state.options.height}`}},methods:{mouseMove(event){this.root.$emit("main-view-mousemove",event)},mouseUp(event){this.root.$emit("main-view-mouseup",event)},onHorizontalScroll(ev){this.root.$emit("chart-scroll-horizontal",ev)},onVerticalScroll(ev){this.root.$emit("chart-scroll-vertical",ev)},chartWheel(ev){const vertical=this.$refs.chartScrollContainerVertical;ev.wheelDelta>0?vertical.scrollTop-20>=0?vertical.scrollTop-=20:vertical.scrollTop=0:vertical.scrollTop+=20},chartMouseDown(ev){void 0!==ev.touches&&(this.mousePos.x=this.mousePos.lastX=ev.touches[0].screenX,this.mousePos.y=this.mousePos.lastY=ev.touches[0].screenY,this.mousePos.movementX=0,this.mousePos.movementY=0,this.mousePos.currentX=this.$refs.chartScrollContainerHorizontal.scrollLeft,this.mousePos.currentY=this.$refs.chartScrollContainerVertical.scrollTop),this.root.state.options.scroll.scrolling=!0},chartMouseUp(ev){this.root.state.options.scroll.scrolling=!1},chartMouseMove(ev){if(this.root.state.options.scroll.scrolling){ev.preventDefault(),ev.stopImmediatePropagation(),ev.stopPropagation();const touch=void 0!==ev.touches;let movementX,movementY;if(touch){const screenX=ev.touches[0].screenX,screenY=ev.touches[0].screenY;movementX=this.mousePos.x-screenX,movementY=this.mousePos.y-screenY,this.mousePos.lastX=screenX,this.mousePos.lastY=screenY}else movementX=ev.movementX,movementY=ev.movementY;const horizontal=this.$refs.chartScrollContainerHorizontal,vertical=this.$refs.chartScrollContainerVertical;let x=0,y=0;x=touch?this.mousePos.currentX+movementX*this.root.state.options.scroll.dragXMoveMultiplier:horizontal.scrollLeft-movementX*this.root.state.options.scroll.dragXMoveMultiplier,horizontal.scrollLeft=x,y=touch?this.mousePos.currentY+movementY*this.root.state.options.scroll.dragYMoveMultiplier:vertical.scrollTop-movementY*this.root.state.options.scroll.dragYMoveMultiplier,vertical.scrollTop=y}}},beforeDestroy(){document.removeEventListener("mouseup",this.chartMouseUp),document.removeEventListener("mousemove",this.chartMouseMove),document.removeEventListener("touchmove",this.chartMouseMove),document.removeEventListener("touchend",this.chartMouseUp)}},MainViewvue_type_template_id_0bc4212e_render,[],!1,null,null,null);MainView_component.options.__file="src/components/MainView.vue";var MainView=MainView_component.exports,Headervue_type_template_id_61dd7a3d_render=function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _c("div",{staticClass:"gantt-elastic__header",style:Object.assign({},_vm.style.header)},[_c("div",{staticClass:"gantt-elastic__header-title",style:Object.assign({},_vm.style["header-title"])},[_vm.opts.title.html?_vm._e():_c("div",{staticClass:"gantt-elastic__header-title--text",style:Object.assign({},_vm.style["header-title--text"])},[_vm._v("\n "+_vm._s(_vm.opts.title.label)+"\n ")]),_vm._v(" "),_vm.opts.title.html?_c("div",{staticClass:"gantt-elastic__header-title--html",style:Object.assign({},_vm.style["header-title--html"]),domProps:{innerHTML:_vm._s(_vm.opts.title.label)}}):_vm._e()]),_vm._v(" "),_c("div",{staticClass:"gantt-elastic__header-options",style:Object.assign({},_vm.style["header-options"])},[_vm.opts.header.now?_c("button",{staticClass:"gantt-elastic__header-btn-recenter",style:Object.assign({},_vm.style["header-btn-recenter"]),on:{click:function($event){return $event.preventDefault(),_vm.recenterPosition($event)}}},[_vm._v("\n "+_vm._s(_vm.opts.locale.Now)+"\n ")]):_vm._e(),_vm._v(" "),_vm.opts.header.xScole?_c("label",{staticClass:"gantt-elastic__header-label",style:Object.assign({},_vm.style["header-label"])},[_vm._v("\n "+_vm._s(_vm.opts.locale["X-Scale"])+"\n "),_c("div",{staticClass:"gantt-elastic__header-slider-wrapper",style:Object.assign({},_vm.style["header-slider-wrapper"])},[_c("vue-slider",{staticClass:"gantt-elastic__header-slider",style:Object.assign({},_vm.style["header-slider"]),attrs:{tooltip:"none","process-style":Object.assign({},_vm.style["header-slider--process"]),"slider-style":Object.assign({},_vm.style["header-slider--slider"]),max:24,min:2,width:"100px"},model:{value:_vm.scale,callback:function($$v){_vm.scale=$$v},expression:"scale"}})],1)]):_vm._e(),_vm._v(" "),_vm.opts.header.yScole?_c("label",{staticClass:"gantt-elastic__header-label",style:Object.assign({},_vm.style["header-label"])},[_vm._v("\n "+_vm._s(_vm.opts.locale["Y-Scale"])+"\n "),_c("div",{staticClass:"gantt-elastic__header-slider-wrapper",style:Object.assign({},_vm.style["header-slider-wrapper"])},[_c("vue-slider",{staticClass:"gantt-elastic__header-slider",style:Object.assign({},_vm.style["header-slider"]),attrs:{tooltip:"none","process-style":Object.assign({},_vm.style["header-slider--process"]),"slider-style":Object.assign({},_vm.style["header-slider--slider"]),max:100,min:7,width:"100px"},model:{value:_vm.height,callback:function($$v){_vm.height=$$v},expression:"height"}})],1)]):_vm._e(),_vm._v(" "),_vm.opts.header.expand?_c("label",{staticClass:"gantt-elastic__header-label",style:Object.assign({},_vm.style["header-label"])},[_vm._v("\n "+_vm._s(_vm.opts.locale["Before/After"])+"\n "),_c("div",{staticClass:"gantt-elastic__header-slider-wrapper",style:Object.assign({},_vm.style["header-slider-wrapper"])},[_c("vue-slider",{staticClass:"gantt-elastic__header-slider",style:Object.assign({},_vm.style["header-slider"]),attrs:{tooltip:"none","process-style":Object.assign({},_vm.style["header-slider--process"]),"slider-style":Object.assign({},_vm.style["header-slider--slider"]),max:31,min:0,width:"100px"},model:{value:_vm.scope,callback:function($$v){_vm.scope=$$v},expression:"scope"}})],1)]):_vm._e(),_vm._v(" "),_vm.opts.header.taskListWidth?_c("label",{staticClass:"gantt-elastic__header-label",style:Object.assign({},_vm.style["header-label"])},[_vm._v("\n "+_vm._s(_vm.opts.locale["Task list width"])+"\n "),_c("div",{staticClass:"gantt-elastic__header-slider-wrapper",style:Object.assign({},_vm.style["header-slider-wrapper"])},[_c("vue-slider",{staticClass:"gantt-elastic__header-slider",style:Object.assign({},_vm.style["header-slider"]),attrs:{tooltip:"none","process-style":Object.assign({},_vm.style["header-slider--process"]),"slider-style":Object.assign({},_vm.style["header-slider--slider"]),max:100,min:0,width:"100px"},model:{value:_vm.divider,callback:function($$v){_vm.divider=$$v},expression:"divider"}})],1)]):_vm._e(),_vm._v(" "),_vm.opts.header.taskList?_c("label",{staticClass:"gantt-elastic__header-task-list-switch--wrapper",style:Object.assign({},_vm.style["header-task-list-switch--label"])},[_c("switches",{staticClass:"gantt-elastic__header-task-list-switch",style:Object.assign({},_vm.style["header-task-list-switch"]),model:{value:_vm.root.state.options.taskList.display,callback:function($$v){_vm.$set(_vm.root.state.options.taskList,"display",$$v)},expression:"root.state.options.taskList.display"}}),_vm._v("\n "+_vm._s(_vm.opts.locale["Display task list"])+"\n ")],1):_vm._e()])])};Headervue_type_template_id_61dd7a3d_render._withStripped=!0;var vue_slider_component_umd_min=__webpack_require__("./node_modules/vue-slider-component/dist/vue-slider-component.umd.min.js"),vue_slider_component_umd_min_default=__webpack_require__.n(vue_slider_component_umd_min),switchesvue_type_template_id_f8bdc788_render=(__webpack_require__("./node_modules/vue-slider-component/theme/default.css"),function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _c("label",{class:_vm.classObject},[_vm.shouldShowLabel?_c("span",{staticClass:"vue-switcher__label"},[_vm.label?_c("span",{domProps:{textContent:_vm._s(_vm.label)}}):_vm._e(),_vm._v(" "),!_vm.label&&_vm.value?_c("span",{domProps:{textContent:_vm._s(_vm.textEnabled)}}):_vm._e(),_vm._v(" "),_vm.label||_vm.value?_vm._e():_c("span",{domProps:{textContent:_vm._s(_vm.textDisabled)}})]):_vm._e(),_vm._v(" "),_c("input",{attrs:{type:"checkbox",disabled:_vm.disabled},domProps:{checked:_vm.value},on:{change:_vm.trigger}}),_vm._v(" "),_c("div")])});switchesvue_type_template_id_f8bdc788_render._withStripped=!0;var src_switchesvue_type_script_lang_js_={name:"switches",props:{typeBold:{default:!1},value:{default:!1},disabled:{default:!1},label:{default:""},textEnabled:{default:""},textDisabled:{default:""},color:{default:"default"},theme:{default:"default"},emitOnMount:{default:!0}},mounted(){this.emitOnMount&&this.$emit("input",this.value)},methods:{trigger(e){this.$emit("input",e.target.checked)}},computed:{classObject(){const{color:color,value:value,theme:theme,typeBold:typeBold,disabled:disabled}=this;return{"vue-switcher":!0,"vue-switcher--unchecked":!value,"vue-switcher--disabled":disabled,"vue-switcher--bold":typeBold,"vue-switcher--bold--unchecked":typeBold&&!value,[`vue-switcher-theme--${theme}`]:color,[`vue-switcher-color--${color}`]:color}},shouldShowLabel(){return""!==this.label||""!==this.textEnabled||""!==this.textDisabled}}},switches_component=(__webpack_require__("./node_modules/vue-switches/dist/switches.css?vue&type=style&index=0&lang=css&"),normalizeComponent(src_switchesvue_type_script_lang_js_,switchesvue_type_template_id_f8bdc788_render,[],!1,null,null,null));switches_component.options.__file="node_modules/vue-switches/src/switches.vue";var switches=switches_component.exports;const defaultStyle={header:{margin:"0px auto",background:"#f3f5f747",padding:"10px",overflow:"hidden",clear:"both",display:"flex","justify-content":"space-between","flex-shrink":0},"header-title":{float:"left"},"header-options":{float:"right"},"header-title--text":{"font-size":"20px","vertical-align":"middle","font-weight":"400","line-height":"35px","padding-left":"22px","letter-spacing":"1px"},"header-title--html":{"font-size":"20px","vertical-align":"middle","font-weight":"400","line-height":"35px","padding-left":"22px","letter-spacing":"1px"},"header-btn-recenter":{background:"#95A5A6",border:"none",outline:"none",cursor:"pointer",color:"white","border-radius":"3px","margin-right":"27px","font-size":"16px",padding:"4px 12px"},"header-slider":{"box-sizing":"content-box"},"header-slider-wrapper":{display:"inline-block","margin-left":"8px","vertical-align":"middle"},"header-slider--slider":{"box-sizing":"content-box"},"header-slider--process":{"box-sizing":"content-box"},"header-task-list-switch--label":{"box-sizing":"content-box"},"header-task-list-switch":{margin:"0px 15px","vertical-align":"middle"},"header-label":{}},defaultOptions={title:{label:"gantt-elastic",html:!1},header:{now:!0,xScole:!0,yScole:!0,taskListWidth:!0,expand:!0,taskList:!0},locale:{Now:"Now","X-Scale":"Zoom-X","Y-Scale":"Zoom-Y","Task list width":"Task list","Before/After":"Expand","Display task list":"Show task list"}};var Header_component=normalizeComponent({name:"GanttHeader",components:{vueSlider:vue_slider_component_umd_min_default.a,Switches:switches},props:["options","dynamicStyle"],inject:["root"],data:()=>({scaleTimeoutId:null,firstScale:!1,localScale:0,localHeight:0,localBefore:0,localPercent:0,sliderOptions:{xScale:{value:0}},style:{},opts:{}}),created(){this.localScale=this.root.state.options.times.timeZoom,this.localHeight=this.root.state.options.row.height,this.localBefore=this.root.state.options.scope.before,this.localPercent=this.root.state.options.taskList.percent,this.sliderOptions.xScale.value=this.root.state.options.times.timeZoom,this.style=this.root.mergeDeep({},defaultStyle,this.dynamicStyle),this.opts=this.root.mergeDeep({},defaultOptions,this.options)},methods:{getImage(){this.root.getImage("image/png").then(imgB64=>{const link=document.createElement("a");link.href=imgB64,link.download="gantt-elastic.png",document.body.appendChild(link),link.click(),document.body.removeChild(link)})},recenterPosition(){this.root.$emit("recenterPosition")},setScale(value){null!==this.scaleTimeoutId&&(clearTimeout(this.scaleTimeoutId),this.scaleTimeoutId=null),this.firstScale?this.scaleTimeoutId=setTimeout(()=>{this.root.$emit("times-timeZoom-change",value),this.scaleTimeoutId=null},50):(this.root.$emit("times-timeZoom-change",value),this.firstScale=!0)}},computed:{beforeOptionsIsComponent(){const headerSlot=this.options.slots.header;return"object"==typeof headerSlot.beforeOptions&&!Array.isArray(headerSlot.beforeOptions)},beforeOptionsIsHtml(){return"string"==typeof this.options.slots.header.beforeOptions},scale:{get(){return this.localScale},set(value){this.localScale=Number(value),this.setScale(this.localScale)}},height:{get(){return this.localHeight},set(value){this.localHeight=Number(value),this.root.$emit("row-height-change",Number(value))}},scope:{get(){return this.localBefore},set(value){this.localBefore=Number(value),this.root.$emit("scope-change",Number(value))}},divider:{get(){return this.localPercent},set(value){this.localPercent=Number(value),this.root.$emit("taskList-width-change",Number(value))}}}},Headervue_type_template_id_61dd7a3d_render,[],!1,null,null,null);Header_component.options.__file="src/components/Header.vue";var Header=Header_component.exports;
/**
* @fileoverview Styles for gantt-elastic
* @license MIT
* @author Rafal Pospiech <neuronet.io@gmail.com>
* @package GanttElastic
*/var ResizeObserver_es=__webpack_require__("./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js");const ctx=document.createElement("canvas").getContext("2d");let VueInst=external_Vue_default.a;"undefined"!=typeof Vue&&void 0===VueInst&&(VueInst=Vue);function isObject(item){return item&&"object"==typeof item&&!Array.isArray(item)&&!(item instanceof HTMLElement)&&!(item instanceof CanvasRenderingContext2D)&&"function"!=typeof item}function mergeDeep(target,...sources){if(!sources.length)return target;const source=sources.shift();if(isObject(target)&&isObject(source))for(const key in source)if(isObject(source[key]))void 0===target[key]&&(target[key]={}),target[key]=mergeDeep(target[key],source[key]);else if(Array.isArray(source[key])){target[key]=[];for(let item of source[key])isObject(item)?target[key].push(mergeDeep({},item)):target[key].push(item)}else target[key]=source[key];return mergeDeep(target,...sources)}function mergeDeepReactive(component,target,...sources){if(!sources.length)return target;const source=sources.shift();if(isObject(target)&&isObject(source))for(const key in source)isObject(source[key])?(void 0===target[key]&&component.$set(target,key,{}),mergeDeepReactive(component,target[key],source[key])):Array.isArray(source[key])?component.$set(target,key,source[key]):"function"==typeof source[key]?-1===source[key].toString().indexOf("[native code]")&&(target[key]=source[key]):component.$set(target,key,source[key]);return mergeDeepReactive(component,target,...sources)}function notEqualDeep(left,right,cache=[],path=""){if(typeof right!=typeof left)return{left:left,right:right,what:path+".typeof"};if(Array.isArray(left)&&!Array.isArray(right))return{left:left,right:right,what:path+".isArray"};if(Array.isArray(right)&&!Array.isArray(left))return{left:left,right:right,what:path+".isArray"};if(Array.isArray(left)&&Array.isArray(right)){if(left.length!==right.length)return{left:left,right:right,what:path+".length"};let what;for(let index=0,len=left.length;index<len;index++)if(what=notEqualDeep(left[index],right[index],cache,path+"."+index))return what}else{if(isObject(left)&&!isObject(right))return{left:left,right:right,what:path+".isObject"};if(isObject(right)&&!isObject(left))return{left:left,right:right,what:path+".isObject"};if(isObject(left)&&isObject(right))for(let key in left){if(!left.hasOwnProperty(key)||!left.propertyIsEnumerable(key))continue;if(!right.hasOwnProperty(key))return{left:left,right:right,what:path+"."+key};let what;if(what=notEqualDeep(left[key],right[key],cache,path+"."+key))return what}else if(left!==right)return{left:left,right:right,what:path+". !=="}}return!1}var src_GanttElasticvue_type_script_lang_js_={name:"GanttElastic",components:{MainView:MainView,ganttElasticHeader:Header},props:["tasks","options","dynamicStyle"],provide(){const provider={},self=this;return Object.defineProperty(provider,"root",{enumerable:!0,get:()=>self}),provider},data:()=>({timeZoom:null,rowsHeight:null,scope:null,percent:null,state:{tasks:[],options:{scrollBarHeight:0,isflex:!1,allVisibleTasksHeight:0,outerHeight:0,defHeader:!0,scroll:{left:0,top:0}},dynamicStyle:{},refs:{},tasksById:{},taskTree:{},ctx:ctx,emitTasksChanges:!0,emitOptionsChanges:!0,resizeObserver:null,unwatchTasks:null,unwatchOptions:null,unwatchStyle:null,unwatchOutputTasks:null,unwatchOutputOptions:null,unwatchOutputStyle:null}}),methods:{mergeDeep:mergeDeep,mergeDeepReactive:mergeDeepReactive,getScrollBarHeight(){const outer=document.createElement("div");outer.style.visibility="hidden",outer.style.height="100px",outer.style.msOverflowStyle="scrollbar",document.body.appendChild(outer);var noScroll=outer.offsetHeight;outer.style.overflow="scroll";var inner=document.createElement("div");inner.style.height="100%",outer.appendChild(inner);var withScroll=inner.offsetHeight;outer.parentNode.removeChild(outer);const height=noScroll-withScroll;return this.style["chart-scroll-container--vertical"]["margin-left"]=`-${height}px`,this.state.options.scrollBarHeight=height},fillTasks(tasks){for(let task of tasks)void 0===task.x&&(task.x=0),void 0===task.y&&(task.y=0),void 0===task.width&&(task.width=0),void 0===task.height&&(task.height=0),void 0===task.mouseOver&&(task.mouseOver=!1),void 0===task.collapsed&&(task.collapsed=!1),void 0===task.dependentOn&&(task.dependentOn=[]),void 0===task.parentId&&(task.parentId=null),void 0===task.style&&(task.style={}),void 0===task.children&&(task.children=[]),void 0===task.allChildren&&(task.allChildren=[]),void 0===task.parents&&(task.parents=[]),void 0===task.parent&&(task.parent=null),void 0===task.type&&(task.type="task"),void 0===task.startTime&&(task.startTime=dayjs_min_default()(task.start).valueOf()),void 0===task.endTime&&task.hasOwnProperty("end")?task.endTime=dayjs_min_default()(task.end).valueOf():void 0===task.endTime&&task.hasOwnProperty("duration")&&(task.endTime=task.startTime+task.duration),void 0===task.duration&&task.hasOwnProperty("endTime")&&(task.duration=task.endTime-task.startTime);return tasks},mapTasks(tasks,options){for(let[index,task]of tasks.entries())tasks[index]={...task,id:task[options.taskMapping.id],start:task[options.taskMapping.start],label:task[options.taskMapping.label],duration:task[options.taskMapping.duration],progress:task[options.taskMapping.progress],type:task[options.taskMapping.type],style:task[options.taskMapping.style],collapsed:task[options.taskMapping.collapsed]};return tasks},initialize(itsUpdate=""){let options=mergeDeep({},this.state.options,function(userOptions){let localeName="en";return void 0!==userOptions.locale&&void 0!==userOptions.locale.name&&(localeName=userOptions.locale.name),{slots:{header:{}},taskMapping:{id:"id",start:"start",label:"label",duration:"duration",progress:"progress",type:"type",style:"style",collapsed:"collapsed"},width:0,height:0,clientWidth:0,outerHeight:0,rowsHeight:0,allVisibleTasksHeight:0,scroll:{scrolling:!1,dragXMoveMultiplier:3,dragYMoveMultiplier:2,top:0,taskList:{left:0,right:0,top:0,bottom:0},chart:{left:0,right:0,percent:0,timePercent:0,top:0,bottom:0,time:0,timeCenter:0,dateTime:{left:"",right:""}}},scope:{before:1,after:1},times:{timeScale:6e4,timeZoom:17,timePerPixel:0,firstTime:null,lastTime:null,firstTaskTime:0,lastTaskTime:0,totalViewDurationMs:0,totalViewDurationPx:0,stepDuration:"day",steps:[]},row:{height:24},maxRows:20,maxHeight:0,chart:{grid:{horizontal:{gap:6}},progress:{width:20,height:6,pattern:!0,bar:!1},text:{offset:4,xPadding:10,display:!0},expander:{type:"chart",display:!1,displayIfTaskListHidden:!0,offset:4,size:18}},taskList:{display:!0,resizeAfterThreshold:!0,widthThreshold:75,columns:[{id:0,label:"ID",value:"id",width:40}],percent:100,width:0,finalWidth:0,widthFromPercentage:0,minWidth:18,expander:{type:"task-list",size:16,columnWidth:24,padding:16,margin:10,straight:!1}},calendar:{workingDays:[1,2,3,4,5],gap:6,height:0,strokeWidth:1,hour:{height:20,display:!0,widths:[],maxWidths:{short:0,medium:0,long:0},formatted:{long:[],medium:[],short:[]},format:{long:date=>date.format("HH:mm"),medium:date=>date.format("HH:mm"),short:date=>date.format("HH")}},day:{height:20,display:!0,widths:[],maxWidths:{short:0,medium:0,long:0},format:{long:date=>date.format("DD dddd"),medium:date=>date.format("DD ddd"),short:date=>date.format("DD")}},month:{height:20,display:!0,widths:[],maxWidths:{short:0,medium:0,long:0},format:{short:date=>date.format("MM"),medium:date=>date.format("MMM 'YY"),long:date=>date.format("MMMM YYYY")}}},locale:{name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekStart:1,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},ordinal:n=>{const s=["th","st","nd","rd"],v=n%100;return`[${n}${s[(v-20)%10]||s[v]||s[0]}]`}}}}(this.options),this.options),tasks=this.mapTasks(this.tasks,options);0===Object.keys(this.state.dynamicStyle).length&&this.initializeStyle(),dayjs_min_default.a.locale(options.locale,null,!0),dayjs_min_default.a.locale(options.locale.name),void 0===options.taskList&&(options.taskList={}),options.taskList.columns=options.taskList.columns.map((column,index)=>(column.thresholdPercent=100,column.widthFromPercentage=0,column.finalWidth=0,void 0===column.height&&(column.height=0),void 0===column.style&&(column.style={}),column._id=`${index}-${column.label}`,column)),null!=this.scope&&(options.scope.before=this.scope,options.scope.after=this.scope),null!=this.timeZoom&&(options.times.timeZoom=this.timeZoom),null!=this.rowsHeight&&(options.row.height=this.rowsHeight),null!=this.percent&&(options.taskList.percent=this.percent),this.state.options=options,tasks=this.fillTasks(tasks),this.state.tasksById=this.resetTaskTree(tasks),this.state.taskTree=this.makeTaskTree(this.state.rootTask,tasks),this.state.tasks=this.state.taskTree.allChildren.map(childId=>this.getTask(childId)),this.calculateTaskListColumnsDimensions(),this.state.options.scrollBarHeight=this.getScrollBarHeight(),this.state.options.outerHeight=this.state.options.height+this.state.options.scrollBarHeight,this.globalOnResize()},initializeStyle(){this.state.dynamicStyle=mergeDeep({},function(userStyle){let fontSize="12px",fontFamily=window.getComputedStyle(document.body).getPropertyValue("font-family").toString();return void 0!==userStyle&&(void 0!==userStyle.fontSize&&(fontSize=userStyle.fontSize),void 0!==userStyle.fontFamily&&(fontFamily=userStyle.fontFamily)),function(fontSize="12px",fontFamily="Arial, sans-serif"){return{fontSize:fontSize,fontFamily:fontFamily,"main-view":{background:"#FFFFFF","flex-grow":1,height:"50%",display:"flex","flex-direction":"column"},"main-container-wrapper":{overflow:"hidden",height:"50%","border-top":"1px solid #eee","border-bottom":"1px solid #eee","flex-grow":1},"main-container":{float:"left",height:"100%","max-width":"100%"},"main-view-container":{height:"100%"},container:{display:"flex","max-width":"100%",height:"100%"},"calendar-wrapper":{"user-select":"none"},calendar:{width:"100%",background:"#f3f5f7",display:"block"},"calendar-row":{display:"flex","justify-content":"space-evenly"},"calendar-row--month":{},"calendar-row--day":{},"calendar-row--hour":{"border-bottom":"1px solid #eee"},"calendar-row-rect":{background:"transparent",display:"flex"},"calendar-row-rect--month":{},"calendar-row-rect--day":{},"calendar-row-rect--hour":{},"calendar-row-rect-child":{display:"block","border-right-width":"1px","border-right-color":"#dadada","border-right-style":"solid",position:"relative"},"calendar-row-rect-child--month":{},"calendar-row-rect-child--day":{"text-align":"center"},"calendar-row-rect-child--hour":{"text-align":"center"},"calendar-row-text":{"font-family":fontFamily,"font-size":fontSize,color:"#606060",display:"inline-block",position:"relative"},"calendar-row-text--month":{},"calendar-row-text--day":{},"calendar-row-text--hour":{},"task-list-wrapper":{},"task-list":{background:"transparent","border-color":"#eee",display:"flex","flex-direction":"column",height:"100%"},"task-list-header":{display:"flex","user-select":"none","vertical-align":"middle","border-bottom":"1px solid #eee","border-left":"1px solid #eee","flex-shrink":0},"task-list-header-column":{"border-left":"1px solid #00000050","box-sizing":"border-box",display:"flex",background:"#f3f5f7","border-color":"transparent"},"task-list-expander-wrapper":{display:"inline-flex","flex-shrink":"0","box-sizing":"border-box",margin:"0 0 0 10px"},"task-list-expander-content":{display:"inline-flex",cursor:"pointer",margin:"auto 0px","box-sizing":"border-box","user-select":"none"},"task-list-expander-line":{fill:"transparent",stroke:"#000000","stroke-width":"1","stroke-linecap":"round"},"task-list-expander-border":{fill:"#ffffffa0",stroke:"#000000A0"},"chart-expander-wrapper":{display:"block","line-height":"1","box-sizing":"border-box",margin:"0"},"chart-expander-content":{display:"inline-flex",cursor:"pointer",margin:"auto 0px","box-sizing":"border-box","user-select":"none"},"chart-expander-line":{fill:"transparent",stroke:"#000000","stroke-width":"1","stroke-linecap":"round"},"chart-expander-border":{fill:"#ffffffa0",stroke:"#000000A0"},"task-list-container":{height:"100%"},"task-list-header-label":{overflow:"hidden","text-overflow":"ellipsis","font-family":fontFamily,"font-size":fontSize,"box-sizing":"border-box",margin:"auto 6px","flex-grow":"1","vertical-align":"middle"},"task-list-header-resizer-wrapper":{background:"transparent",height:"100%",width:"6px",cursor:"col-resize",display:"inline-flex","vertical-align":"center"},"task-list-header-resizer":{margin:"auto 0px"},"task-list-header-resizer-dot":{width:"3px",height:"3px",background:"#ddd","border-radius":"100%",margin:"4px 0px"},"task-list-items":{overflow:"hidden","flex-grow":1},"task-list-item":{"border-top":"1px solid #eee","border-right":"1px solid #eee","box-sizing":"border-box",display:"flex",background:"transparent"},"task-list-item-column":{display:"inline-flex","flex-shrink":"0","border-left":"1px solid #00000050","box-sizing":"border-box","border-color":"#eee"},"task-list-item-value-wrapper":{overflow:"hidden",display:"flex",width:"100%"},"task-list-item-value-container":{margin:"auto 0px",overflow:"hidden"},"task-list-item-value":{display:"block","flex-shrink":"100","font-family":fontFamily,"font-size":fontSize,"margin-top":"auto","margin-bottom":"auto","margin-left":"6px","margin-right":"6px",overflow:"hidden","text-overflow":"ellipsis","line-height":"1.5em","word-break":"keep-all","white-space":"nowrap",color:"#606060",background:"#FFFFFF"},"grid-lines":{},"grid-line-horizontal":{stroke:"#00000010","stroke-width":1},"grid-line-vertical":{stroke:"#00000010","stroke-width":1},"grid-line-time":{stroke:"#FF000080","stroke-width":1},chart:{"user-select":"none",height:"100%",overflow:"hidden",display:"flex","flex-direction":"column"},"chart-calendar-container":{"user-select":"none",overflow:"hidden","max-width":"100%","border-right":"1px solid #eee","flex-shrink":0},"chart-graph-container":{"user-select":"none",overflow:"hidden","max-width":"100%","border-right":"1px solid #eee","flex-grow":1},"chart-area":{},"chart-graph":{overflow:"hidden"},"chart-row-text-wrapper":{},"chart-row-text":{background:"#ffffffa0","border-radius":"10px","font-family":fontFamily,"font-size":fontSize,"font-weight":"normal",color:"#000000a0",height:"100%",display:"inline-block"},"chart-row-text-content":{padding:"0px 6px"},"chart-row-text-content--text":{},"chart-row-text-content--html":{},"chart-row-wrapper":{},"chart-row-bar-wrapper":{},"chart-row-bar":{},"chart-row-bar-polygon":{stroke:"#E74C3C","stroke-width":1,fill:"#F75C4C"},"chart-row-project-wrapper":{},"chart-row-project":{},"chart-row-project-polygon":{},"chart-row-milestone-wrapper":{},"chart-row-milestone":{},"chart-row-milestone-polygon":{},"chart-row-task-wrapper":{},"chart-row-task":{},"chart-row-task-polygon":{},"chart-row-progress-bar-wrapper":{},"chart-row-progress-bar":{},"chart-row-progress-bar-line":{stroke:"#ffffff25","stroke-width":20},"chart-row-progress-bar-solid":{fill:"#0EAC51",height:"20%"},"chart-row-progress-bar-pattern":{fill:"url(#diagonalHatch)",transform:"translateY(0.1) scaleY(0.8)"},"chart-row-progress-bar-outline":{stroke:"#E74C3C","stroke-width":1},"chart-dependency-lines-wrapper":{},"chart-dependency-lines-path":{fill:"transparent",stroke:"#FFa00090","stroke-width":2},"chart-scroll-container":{},"chart-scroll-container--horizontal":{overflow:"auto","max-width":"100%"},"chart-scroll-container--vertical":{"overflow-y":"auto","overflow-x":"hidden","max-height":"100%",float:"right"},"chart-days-highlight-rect":{fill:"#f3f5f780"},"slot-header-beforeOptions":{display:"inline-block"}}}(fontSize,fontFamily)}(this.dynamicStyle),this.dynamicStyle)},getCalendarHeight(){return this.state.options.calendar.height+this.state.options.calendar.strokeWidth},getMaximalLevel(){let maximalLevel=0;return this.state.tasks.forEach(task=>{task.parents.length>maximalLevel&&(maximalLevel=task.parents.length)}),maximalLevel-1},getMaximalExpanderWidth(){return this.getMaximalLevel()*this.state.options.taskList.expander.padding+this.state.options.taskList.expander.margin},syncScrollTop(){this.state.refs.taskListItems&&this.state.refs.chartGraph.scrollTop!==this.state.refs.taskListItems.scrollTop&&(this.state.options.scroll.top=this.state.refs.taskListItems.scrollTop=this.state.refs.chartScrollContainerVertical.scrollTop=this.state.refs.chartGraph.scrollTop)},calculateTaskListColumnsDimensions(){let final=0,percentage=0;for(let column of this.state.options.taskList.columns)column.expander?column.widthFromPercentage=(this.getMaximalExpanderWidth()+column.width)/100*this.state.options.taskList.percent:column.widthFromPercentage=column.width/100*this.state.options.taskList.percent,percentage+=column.widthFromPercentage,column.finalWidth=column.thresholdPercent*column.widthFromPercentage/100,column.hidden||(final+=column.finalWidth),column.height=this.getTaskHeight()-this.style["grid-line-horizontal"]["stroke-width"];this.state.options.taskList.widthFromPercentage=percentage,this.state.options.taskList.finalWidth=final},resetTaskTree(tasks){this.$set(this.state,"rootTask",{id:null,label:"root",children:[],allChildren:[],parents:[],parent:null,__root:!0});const tasksById={};for(let i=0,len=tasks.length;i<len;i++){let current=tasks[i];current.children=[],current.allChildren=[],current.parent=null,current.parents=[],tasksById[current.id]=current}return tasksById},makeTaskTree(task,tasks){for(let i=0,len=tasks.length;i<len;i++){let current=tasks[i];current.parentId===task.id&&(task.parents.length&&task.parents.forEach(parent=>current.parents.push(parent)),task.propertyIsEnumerable("__root")?(current.parents=[],current.parent=null):(current.parents.push(task.id),current.parent=task.id),current=this.makeTaskTree(current,tasks),task.allChildren.push(current.id),task.children.push(current.id),current.allChildren.forEach(childId=>task.allChildren.push(childId)))}return task},getTask(taskId){return void 0!==this.state.tasksById[taskId]?this.state.tasksById[taskId]:null},getChildren(taskId){return this.state.tasks.filter(task=>task.parent===taskId)},isTaskVisible(task){"number"!=typeof task&&"string"!=typeof task||(task=this.getTask(task));for(let i=0,len=task.parents.length;i<len;i++)if(this.getTask(task.parents[i]).collapsed)return!1;return!0},getSVG(){return this.state.options.mainView.outerHTML},getImage(type="image/png"){return new Promise(resolve=>{const img=new Image;img.onload=()=>{const canvas=document.createElement("canvas");canvas.width=this.state.options.mainView.clientWidth,canvas.height=this.state.options.rowsHeight,canvas.getContext("2d").drawImage(img,0,0),resolve(canvas.toDataURL(type))},img.src="data:image/svg+xml,"+encodeURIComponent(this.getSVG())})},getHeight(visibleTasks,outer=!1){let height=visibleTasks.length*(this.state.options.row.height+2*this.state.options.chart.grid.horizontal.gap)+this.state.options.calendar.height+this.state.options.calendar.strokeWidth+this.state.options.calendar.gap;return outer&&(height+=this.state.options.scrollBarHeight),height},getTaskHeight(withStroke=!1){return withStroke?this.state.options.row.height+2*this.state.options.chart.grid.horizontal.gap+this.style["grid-line-horizontal"]["stroke-width"]:this.state.options.row.height+2*this.state.options.chart.grid.horizontal.gap},getTasksHeight(visibleTasks){return visibleTasks.length*this.getTaskHeight()},timeToPixelOffsetX(ms){let x=ms-this.state.options.times.firstTime;return x&&(x/=this.state.options.times.timePerPixel),x},pixelOffsetXToTime(pixelOffsetX){return(pixelOffsetX+this.style["grid-line-vertical"]["stroke-width"]/2)*this.state.options.times.timePerPixel+this.state.options.times.firstTime},isInsideViewPort(x,width,buffer=5e3){return x+width+buffer>=this.state.options.scroll.chart.left&&x-buffer<=this.state.options.scroll.chart.right||x-buffer<=this.state.options.scroll.chart.left&&x+width+buffer>=this.state.options.scroll.chart.right},onScrollChart(ev){this._onScrollChart(this.state.refs.chartScrollContainerHorizontal.scrollLeft,this.state.refs.chartScrollContainerVertical.scrollTop)},_onScrollChart(left,top){if(this.state.options.scroll.chart.left===left&&this.state.options.scroll.chart.top===top)return;const chartContainerWidth=this.state.refs.chartContainer.clientWidth;this.state.options.scroll.chart.left=left,this.state.options.scroll.chart.right=left+chartContainerWidth,this.state.options.scroll.chart.percent=left/this.state.options.times.totalViewDurationPx*100,this.state.options.scroll.chart.top=top,this.state.options.scroll.chart.time=this.pixelOffsetXToTime(left),this.state.options.scroll.chart.timeCenter=this.pixelOffsetXToTime(left+chartContainerWidth/2),this.state.options.scroll.chart.dateTime.left=dayjs_min_default()(this.state.options.scroll.chart.time).valueOf(),this.state.options.scroll.chart.dateTime.right=dayjs_min_default()(this.pixelOffsetXToTime(left+this.state.refs.chart.clientWidth)).valueOf(),this.scrollTo(left,top)},scrollToTime(time){let pos=this.timeToPixelOffsetX(time);const chartContainerWidth=this.state.refs.chartContainer.clientWidth;(pos-=chartContainerWidth/2)>this.state.options.width&&(pos=this.state.options.width-chartContainerWidth),this.scrollTo(pos)},scrollTo(left=null,top=null){null!==left&&(this.state.refs.chartCalendarContainer.scrollLeft=left,this.state.refs.chartGraphContainer.scrollLeft=left,this.state.refs.chartScrollContainerHorizontal.scrollLeft=left,this.state.options.scroll.left=left),null!==top&&(this.state.refs.chartScrollContainerVertical.scrollTop=top,this.state.refs.chartGraphContainer.scrollTop=top,this.state.refs.taskListItems.scrollTop=top,this.state.options.scroll.top=top)},fixScrollPos(){this.scrollToTime(this.state.options.scroll.chart.timeCenter)},onWheelChart(ev){if(ev.shiftKey||0!==ev.deltaX)if(ev.shiftKey&&0===ev.deltaX){let left=this.state.options.scroll.left+ev.deltaY;const chartClientWidth=this.state.refs.chartScrollContainerHorizontal.clientWidth,scrollWidth=this.state.refs.chartScrollContainerHorizontal.scrollWidth-chartClientWidth;left<0?left=0:left>scrollWidth&&(left=scrollWidth),this.scrollTo(left)}else{let left=this.state.options.scroll.left+ev.deltaX;const chartClientWidth=this.state.refs.chartScrollContainerHorizontal.clientWidth,scrollWidth=this.state.refs.chartScrollContainerHorizontal.scrollWidth-chartClientWidth;left<0?left=0:left>scrollWidth&&(left=scrollWidth),this.scrollTo(left)}else{let top=this.state.options.scroll.top+ev.deltaY;const chartClientHeight=this.state.options.rowsHeight,scrollHeight=this.state.refs.chartGraph.scrollHeight-chartClientHeight;top<0?top=0:top>scrollHeight&&(top=scrollHeight),this.scrollTo(null,top)}},onTimeZoomChange(timeZoom){this.state.options.times.timeZoom=timeZoom,this.timeZoom=timeZoom,this.recalculateTimes(),this.calculateSteps(),this.fixScrollPos()},onRowHeightChange(height){this.state.options.row.height=height,this.rowsHeight=height,this.calculateTaskListColumnsDimensions(),this.syncScrollTop()},onScopeChange(value){this.state.options.scope.before=value,this.state.options.scope.after=value,this.scope=value,this.initTimes(),this.calculateSteps(),this.computeCalendarWidths(),this.fixScrollPos()},onTaskListWidthChange(value){this.state.options.taskList.percent=value,this.percent=value,this.calculateTaskListColumnsDimensions(),this.fixScrollPos()},onTaskListColumnWidthChange(){this.calculateTaskListColumnsDimensions(),this.fixScrollPos()},initializeEvents(){this.$on("chart-scroll-horizontal",this.onScrollChart),this.$on("chart-scroll-vertical",this.onScrollChart),this.$on("chart-wheel",this.onWheelChart),this.$on("times-timeZoom-change",this.onTimeZoomChange),this.$on("row-height-change",this.onRowHeightChange),this.$on("scope-change",this.onScopeChange),this.$on("taskList-width-change",this.onTaskListWidthChange),this.$on("taskList-column-width-change",this.onTaskListColumnWidthChange)},recalculateTimes(){let steps=60*this.state.options.times.timeScale/this.state.options.times.timeScale,percent=this.state.options.times.timeZoom/100;this.state.options.times.timePerPixel=this.state.options.times.timeScale*steps*percent+Math.pow(2,this.state.options.times.timeZoom),this.state.options.times.totalViewDurationMs=dayjs_min_default()(this.state.options.times.lastTime).diff(this.state.options.times.firstTime,"milliseconds"),this.state.options.times.totalViewDurationPx=this.state.options.times.totalViewDurationMs/this.state.options.times.timePerPixel,this.state.options.width=this.state.options.times.totalViewDurationPx+this.style["grid-line-vertical"]["stroke-width"]},initTimes(){this.state.options.times.firstTime=dayjs_min_default()(this.state.options.times.firstTaskTime).locale(this.state.options.locale.name).startOf("day").subtract(this.state.options.scope.before,"days").startOf("day").valueOf(),this.state.options.times.lastTime=dayjs_min_default()(this.state.options.times.lastTaskTime).locale(this.state.options.locale.name).endOf("day").add(this.state.options.scope.after,"days").endOf("day").valueOf(),this.recalculateTimes()},calculateSteps(){const steps=[],lastMs=dayjs_min_default()(this.state.options.times.lastTime).valueOf(),currentDate=dayjs_min_default()(this.state.options.times.firstTime);steps.push({time:currentDate.valueOf(),offset:{ms:0,px:0}});for(let currentDate=dayjs_min_default()(this.state.options.times.firstTime).add(1,this.state.options.times.stepDuration).startOf("day");currentDate.valueOf()<=lastMs;currentDate=currentDate.add(1,this.state.options.times.stepDuration).startOf("day")){const offsetMs=currentDate.diff(this.state.options.times.firstTime,"milliseconds"),offsetPx=offsetMs/this.state.options.times.timePerPixel,step={time:currentDate.valueOf(),offset:{ms:offsetMs,px:offsetPx}},previousStep=steps[steps.length-1];previousStep.width={ms:offsetMs-previousStep.offset.ms,px:offsetPx-previousStep.offset.px},steps.push(step)}const lastStep=steps[steps.length-1];lastStep.width={ms:this.state.options.times.totalViewDurationMs-lastStep.offset.ms,px:this.state.options.times.totalViewDurationPx-lastStep.offset.px},this.state.options.times.steps=steps},computeCalendarWidths(){this.computeDayWidths(),this.computeHourWidths(),this.computeMonthWidths()},computeHourWidths(){const style={...this.style["calendar-row-text"],...this.style["calendar-row-text--hour"]};this.state.ctx.font=style["font-size"]+" "+style["font-family"];const localeName=this.state.options.locale.name;let currentDate=dayjs_min_default()("2018-01-01T00:00:00").locale(localeName),maxWidths=this.state.options.calendar.hour.maxWidths;if(!maxWidths.length){for(let formatName in this.state.options.calendar.hour.format)maxWidths[formatName]=0;for(let hour=0;hour<24;hour++){let widths={hour:hour};for(let formatName in this.state.options.calendar.hour.format){const hourFormatted=this.state.options.calendar.hour.format[formatName](currentDate);this.state.options.calendar.hour.formatted[formatName].push(hourFormatted),widths[formatName]=this.state.ctx.measureText(hourFormatted).width}this.state.options.calendar.hour.widths.push(widths);for(let formatName in this.state.options.calendar.hour.format)widths[formatName]>maxWidths[formatName]&&(maxWidths[formatName]=widths[formatName]);currentDate=currentDate.add(1,"hour")}}},computeDayWidths(){const style={...this.style["calendar-row-text"],...this.style["calendar-row-text--day"]};this.state.ctx.font=style["font-size"]+" "+style["font-family"];const localeName=this.state.options.locale.name;let currentDate=dayjs_min_default()(this.state.options.times.steps[0].time).locale(localeName),maxWidths=this.state.options.calendar.day.maxWidths;this.state.options.calendar.day.widths=[],Object.keys(this.state.options.calendar.day.format).forEach(formatName=>{maxWidths[formatName]=0});for(let day=0,daysLen=this.state.options.times.steps.length;day<daysLen;day++){const widths={day:day};Object.keys(this.state.options.calendar.day.format).forEach(formatName=>{widths[formatName]=this.state.ctx.measureText(this.state.options.calendar.day.format[formatName](currentDate)).width}),this.state.options.calendar.day.widths.push(widths),Object.keys(this.state.options.calendar.day.format).forEach(formatName=>{widths[formatName]>maxWidths[formatName]&&(maxWidths[formatName]=widths[formatName])}),currentDate=currentDate.add(1,"day")}},monthsCount(fromTime,toTime){if(fromTime>toTime)return 0;let currentMonth=dayjs_min_default()(fromTime),previousMonth=currentMonth.clone(),monthsCount=1;for(;currentMonth.valueOf()<=toTime;)currentMonth=currentMonth.add(1,"day"),previousMonth.month()!==currentMonth.month()&&monthsCount++,previousMonth=currentMonth.clone();return monthsCount},computeMonthWidths(){const style={...this.style["calendar-row-text"],...this.style["calendar-row-text--month"]};this.state.ctx.font=style["font-size"]+" "+style["font-family"];let maxWidths=this.state.options.calendar.month.maxWidths;this.state.options.calendar.month.widths=[],Object.keys(this.state.options.calendar.month.format).forEach(formatName=>{maxWidths[formatName]=0});const localeName=this.state.options.locale.name;let currentDate=dayjs_min_default()(this.state.options.times.firstTime).locale(localeName);const monthsCount=this.monthsCount(this.state.options.times.firstTime,this.state.options.times.lastTime);for(let month=0;month<monthsCount;month++){const widths={month:month};Object.keys(this.state.options.calendar.month.format).forEach(formatName=>{widths[formatName]=this.state.ctx.measureText(this.state.options.calendar.month.format[formatName](currentDate)).width}),this.state.options.calendar.month.widths.push(widths),Object.keys(this.state.options.calendar.month.format).forEach(formatName=>{widths[formatName]>maxWidths[formatName]&&(maxWidths[formatName]=widths[formatName])}),currentDate=currentDate.add(1,"month")}},prepareDates(){let firstTaskTime=Number.MAX_SAFE_INTEGER,lastTaskTime=0;for(let index=0,len=this.state.tasks.length;index<len;index++){let task=this.state.tasks[index];task.startTime<firstTaskTime&&(firstTaskTime=task.startTime),task.startTime+task.duration>lastTaskTime&&(lastTaskTime=task.startTime+task.duration)}this.state.options.times.firstTaskTime=firstTaskTime,this.state.options.times.lastTaskTime=lastTaskTime,this.state.options.times.firstTime=dayjs_min_default()(firstTaskTime).locale(this.state.options.locale.name).startOf("day").subtract(this.state.options.scope.before,"days").startOf("day").valueOf(),this.state.options.times.lastTime=dayjs_min_default()(lastTaskTime).locale(this.state.options.locale.name).endOf("day").add(this.state.options.scope.after,"days").endOf("day").valueOf()},setup(itsUpdate=""){this.initialize(itsUpdate),this.prepareDates(),this.initTimes(),this.calculateSteps(),this.computeCalendarWidths(),this.state.options.taskList.width=this.state.options.taskList.columns.reduce((prev,current)=>({width:prev.width+current.width}),{width:0}).width},globalOnResize(){if(void 0!==this.$el&&this.$el){if(this.state.options.clientWidth=this.$el.clientWidth,this.state.options.taskList.widthFromPercentage>this.state.options.clientWidth/100*this.state.options.taskList.widthThreshold){let diffPercent=100-(this.state.options.taskList.widthFromPercentage-this.state.options.clientWidth/100*this.state.options.taskList.widthThreshold)/this.state.options.taskList.widthFromPercentage*100;diffPercent<0&&(diffPercent=0),this.state.options.taskList.columns.forEach(column=>{column.thresholdPercent=diffPercent})}else this.state.options.taskList.columns.forEach(column=>{column.thresholdPercent=100});this.calculateTaskListColumnsDimensions(),this.$emit("calendar-recalculate"),this.syncScrollTop()}}},computed:{visibleTasks(){const visibleTasks=this.state.tasks.filter(task=>this.isTaskVisible(task)),maxRows=visibleTasks.slice(0,this.state.options.maxRows);this.state.options.rowsHeight=this.getTasksHeight(maxRows);let heightCompensation=0;this.state.options.maxHeight&&this.state.options.rowsHeight>this.state.options.maxHeight&&(heightCompensation=this.state.options.rowsHeight-this.state.options.maxHeight,this.state.options.rowsHeight=this.state.options.maxHeight);let _height=this.getHeight(maxRows)-heightCompensation;this.state.options.height=_height<25?25:_height,this.state.options.allVisibleTasksHeight=this.getTasksHeight(visibleTasks),this.state.options.outerHeight=this.getHeight(maxRows,!0)-heightCompensation;let len=visibleTasks.length;for(let index=0;index<len;index++){let task=visibleTasks[index];task.width=task.duration/this.state.options.times.timePerPixel-this.style["grid-line-vertical"]["stroke-width"],task.width<0&&(task.width=0),task.height=this.state.options.row.height,task.x=this.timeToPixelOffsetX(task.startTime),task.y=(this.state.options.row.height+2*this.state.options.chart.grid.horizontal.gap)*index+this.state.options.chart.grid.horizontal.gap}return visibleTasks},style(){return this.state.dynamicStyle},getTaskListColumns(){return this.calculateTaskListColumnsDimensions(),this.state.options.taskList.columns},outputTasks(){return this.state.tasks},outputOptions(){return this.state.options}},created(){this.initializeEvents(),this.setup(),this.state.unwatchTasks=this.$watch("tasks",tasks=>{notEqualDeep(tasks,this.outputTasks)&&this.setup("tasks")},{deep:!0}),this.state.unwatchOptions=this.$watch("options",opts=>{notEqualDeep(opts,this.outputOptions)&&this.setup("options")},{deep:!0}),this.state.unwatchStyle=this.$watch("dynamicStyle",style=>{notEqualDeep(style,this.dynamicStyle)&&this.initializeStyle()},{deep:!0,immediate:!0}),this.state.unwatchOutputTasks=this.$watch("outputTasks",tasks=>{this.$emit("tasks-changed",tasks.map(task=>task))},{deep:!0}),this.state.unwatchOutputOptions=this.$watch("outputOptions",options=>{this.$emit("options-changed",mergeDeep({},options))},{deep:!0}),this.state.unwatchOutputStyle=this.$watch("style",style=>{this.$emit("dynamic-style-changed",mergeDeep({},style))},{deep:!0}),this.$root.$emit("gantt-elastic-created",this),this.$emit("created",this)},watch:{options(newVal){this.setup()}},beforeMount(){this.$emit("before-mount",this)},mounted(){this.state.options.clientWidth=this.$el.clientWidth,this.state.resizeObserver=new ResizeObserver_es.a((entries,observer)=>{this.globalOnResize()}),this.state.resizeObserver.observe(this.$el.parentNode),this.globalOnResize(),this.$emit("ready",this),this.$root.$emit("gantt-elastic-mounted",this),this.$emit("mounted",this),this.$root.$emit("gantt-elastic-ready",this)},beforeUpdate(){this.$emit("before-update")},updated(){this.$nextTick(()=>{this.$emit("updated")})},beforeDestroy(){this.state.resizeObserver.unobserve(this.$el.parentNode),this.state.unwatchTasks(),this.state.unwatchOptions(),this.state.unwatchStyle(),this.state.unwatchOutputTasks(),this.state.unwatchOutputOptions(),this.state.unwatchOutputStyle(),this.$emit("before-destroy")},destroyed(){this.$emit("destroyed")}},GanttElastic_component=(__webpack_require__("./src/GanttElastic.vue?vue&type=style&index=0&lang=css&"),normalizeComponent(src_GanttElasticvue_type_script_lang_js_,render,[],!1,null,null,null));GanttElastic_component.options.__file="src/GanttElastic.vue";__webpack_exports__.default=GanttElastic_component.exports},"./src/GanttElastic.vue?vue&type=style&index=0&lang=css&":function(module,__webpack_exports__,__webpack_require__){"use strict";var _node_modules_vue_style_loader_index_js_node_modules_css_loader_index_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_lib_index_js_vue_loader_options_GanttElastic_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/vue-loader/lib/index.js?!./src/GanttElastic.vue?vue&type=style&index=0&lang=css&");__webpack_require__.n(_node_modules_vue_style_loader_index_js_node_modules_css_loader_index_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_lib_index_js_vue_loader_options_GanttElastic_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__).a},vue:function(module,exports){module.exports=__WEBPACK_EXTERNAL_MODULE_vue__}}).default});