From dcbfa14aaec280bc470c1ba7379628c3f8ccf690 Mon Sep 17 00:00:00 2001 From: luciob Date: Tue, 31 Oct 2023 11:19:46 +0000 Subject: [PATCH] =?UTF-8?q?docs:=20=E2=9C=8F=EF=B8=8F=20Updated=20StoryBoo?= =?UTF-8?q?k?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ....489ba695.iframe.bundle.js => 202.1fd628f1.iframe.bundle.js} | 2 +- ....f665b317.iframe.bundle.js => 861.093e4dc4.iframe.bundle.js} | 2 +- docs/iframe.html | 2 +- docs/project.json | 2 +- ....iframe.bundle.js => runtime~main.b33ba86e.iframe.bundle.js} | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) rename docs/{202.489ba695.iframe.bundle.js => 202.1fd628f1.iframe.bundle.js} (99%) rename docs/{861.f665b317.iframe.bundle.js => 861.093e4dc4.iframe.bundle.js} (99%) rename docs/{runtime~main.dae2e462.iframe.bundle.js => runtime~main.b33ba86e.iframe.bundle.js} (97%) diff --git a/docs/202.489ba695.iframe.bundle.js b/docs/202.1fd628f1.iframe.bundle.js similarity index 99% rename from docs/202.489ba695.iframe.bundle.js rename to docs/202.1fd628f1.iframe.bundle.js index 860af04..b85d981 100644 --- a/docs/202.489ba695.iframe.bundle.js +++ b/docs/202.1fd628f1.iframe.bundle.js @@ -1 +1 @@ -"use strict";(self.webpackChunk_melfore_konva_timeline=self.webpackChunk_melfore_konva_timeline||[]).push([[202],{"./src/KonvaTimeline/index.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{Z:()=>src_KonvaTimeline});var react=__webpack_require__("./node_modules/react/index.js"),ReactKonva=__webpack_require__("./node_modules/react-konva/es/ReactKonva.js"),luxon=__webpack_require__("./node_modules/luxon/src/luxon.js"),_konva=__webpack_require__("./src/@konva/index.tsx"),TimelineContext=__webpack_require__("./src/timeline/TimelineContext.tsx"),time_resolution=__webpack_require__("./src/utils/time-resolution.ts"),jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");function cov_23vnfwcq18(){var path="/home/runner/work/konva-timeline/konva-timeline/src/grid/Cell/index.tsx",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"0cff411d819fc64118db3e197f275d48f1f397dd"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/konva-timeline/konva-timeline/src/grid/Cell/index.tsx",statementMap:{0:{start:{line:14,column:17},end:{line:36,column:1}},1:{start:{line:21,column:6},end:{line:21,column:26}},2:{start:{line:23,column:20},end:{line:23,column:100}},3:{start:{line:23,column:34},end:{line:23,column:73}},4:{start:{line:25,column:15},end:{line:25,column:102}},5:{start:{line:25,column:29},end:{line:25,column:65}},6:{start:{line:27,column:15},end:{line:27,column:58}},7:{start:{line:27,column:29},end:{line:27,column:44}},8:{start:{line:29,column:2},end:{line:35,column:4}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:14,column:17},end:{line:14,column:18}},loc:{start:{line:14,column:63},end:{line:36,column:1}},line:14},1:{name:"(anonymous_1)",decl:{start:{line:23,column:28},end:{line:23,column:29}},loc:{start:{line:23,column:34},end:{line:23,column:73}},line:23},2:{name:"(anonymous_2)",decl:{start:{line:25,column:23},end:{line:25,column:24}},loc:{start:{line:25,column:29},end:{line:25,column:65}},line:25},3:{name:"(anonymous_3)",decl:{start:{line:27,column:23},end:{line:27,column:24}},loc:{start:{line:27,column:29},end:{line:27,column:44}},line:27}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0},f:{0:0,1:0,2:0,3:0},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"0cff411d819fc64118db3e197f275d48f1f397dd"});var actualCoverage=coverage[path];return cov_23vnfwcq18=function(){return actualCoverage},actualCoverage}cov_23vnfwcq18(),cov_23vnfwcq18().s[0]++;const GridCell=({column,height,index})=>{cov_23vnfwcq18().f[0]++;const{blocksOffset,columnWidth,resolution:{unit:resolutionUnit},rowHeight,theme:{color:themeColor}}=(cov_23vnfwcq18().s[1]++,(0,TimelineContext.i)()),cellLabel=(cov_23vnfwcq18().s[2]++,(0,react.useMemo)((()=>(cov_23vnfwcq18().f[1]++,cov_23vnfwcq18().s[3]++,(0,time_resolution.kv)(column,resolutionUnit))),[column,resolutionUnit])),xPos=(cov_23vnfwcq18().s[4]++,(0,react.useMemo)((()=>(cov_23vnfwcq18().f[2]++,cov_23vnfwcq18().s[5]++,columnWidth*(index+blocksOffset))),[blocksOffset,columnWidth,index])),yPos=(cov_23vnfwcq18().s[6]++,(0,react.useMemo)((()=>(cov_23vnfwcq18().f[3]++,cov_23vnfwcq18().s[7]++,.8*rowHeight)),[rowHeight]));return cov_23vnfwcq18().s[8]++,(0,jsx_runtime.jsxs)(_konva.LE,{children:[(0,jsx_runtime.jsx)(_konva.vL,{x:xPos,y:yPos,points:[0,0,0,height],stroke:"gray",strokeWidth:1}),(0,jsx_runtime.jsx)(_konva.oJ,{fill:"transparent",x:xPos-15,y:yPos-10,height:15,width:30}),(0,jsx_runtime.jsx)(_konva.V,{fill:themeColor,x:xPos-15,y:yPos-8,text:cellLabel})]},`timeslot-${index}`)};GridCell.displayName="GridCell";const Cell=(0,react.memo)(GridCell);try{GridCell.displayName="GridCell",GridCell.__docgenInfo={description:"",displayName:"GridCell",props:{column:{defaultValue:null,description:"",name:"column",required:!0,type:{name:"Interval"}},height:{defaultValue:null,description:"",name:"height",required:!0,type:{name:"number"}},index:{defaultValue:null,description:"",name:"index",required:!0,type:{name:"number"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/grid/Cell/index.tsx#GridCell"]={docgenInfo:GridCell.__docgenInfo,name:"GridCell",path:"src/grid/Cell/index.tsx#GridCell"})}catch(__react_docgen_typescript_loader_error){}function cov_12ivzobf6(){var path="/home/runner/work/konva-timeline/konva-timeline/src/grid/CellGroup/index.tsx",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"eb8f192287b61bbba6d9d425982a6eaa49418fea"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/konva-timeline/konva-timeline/src/grid/CellGroup/index.tsx",statementMap:{0:{start:{line:14,column:22},end:{line:44,column:1}},1:{start:{line:20,column:6},end:{line:20,column:26}},2:{start:{line:22,column:20},end:{line:22,column:95}},3:{start:{line:22,column:34},end:{line:22,column:73}},4:{start:{line:24,column:17},end:{line:24,column:59}},5:{start:{line:24,column:31},end:{line:24,column:48}},6:{start:{line:26,column:31},end:{line:29,column:3}},7:{start:{line:27,column:10},end:{line:27,column:72}},8:{start:{line:31,column:28},end:{line:31,column:114}},9:{start:{line:31,column:42},end:{line:31,column:76}},10:{start:{line:33,column:15},end:{line:33,column:83}},11:{start:{line:33,column:29},end:{line:33,column:54}},12:{start:{line:35,column:15},end:{line:35,column:58}},13:{start:{line:35,column:29},end:{line:35,column:44}},14:{start:{line:37,column:2},end:{line:43,column:4}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:14,column:22},end:{line:14,column:23}},loc:{start:{line:14,column:73},end:{line:44,column:1}},line:14},1:{name:"(anonymous_1)",decl:{start:{line:22,column:28},end:{line:22,column:29}},loc:{start:{line:22,column:34},end:{line:22,column:73}},line:22},2:{name:"(anonymous_2)",decl:{start:{line:24,column:25},end:{line:24,column:26}},loc:{start:{line:24,column:31},end:{line:24,column:48}},line:24},3:{name:"(anonymous_3)",decl:{start:{line:27,column:4},end:{line:27,column:5}},loc:{start:{line:27,column:10},end:{line:27,column:72}},line:27},4:{name:"(anonymous_4)",decl:{start:{line:31,column:36},end:{line:31,column:37}},loc:{start:{line:31,column:42},end:{line:31,column:76}},line:31},5:{name:"(anonymous_5)",decl:{start:{line:33,column:23},end:{line:33,column:24}},loc:{start:{line:33,column:29},end:{line:33,column:54}},line:33},6:{name:"(anonymous_6)",decl:{start:{line:35,column:23},end:{line:35,column:24}},loc:{start:{line:35,column:29},end:{line:35,column:44}},line:35}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"eb8f192287b61bbba6d9d425982a6eaa49418fea"});var actualCoverage=coverage[path];return cov_12ivzobf6=function(){return actualCoverage},actualCoverage}cov_12ivzobf6(),cov_12ivzobf6().s[0]++;const GridCellGroup=({column,height,index})=>{cov_12ivzobf6().f[0]++;const{columnWidth,resolution:{sizeInUnits,unit,unitAbove},rowHeight,theme:{color:themeColor}}=(cov_12ivzobf6().s[1]++,(0,TimelineContext.i)()),cellLabel=(cov_12ivzobf6().s[2]++,(0,react.useMemo)((()=>(cov_12ivzobf6().f[1]++,cov_12ivzobf6().s[3]++,(0,time_resolution.A7)(column,unitAbove))),[column,unitAbove])),points=(cov_12ivzobf6().s[4]++,(0,react.useMemo)((()=>(cov_12ivzobf6().f[2]++,cov_12ivzobf6().s[5]++,[0,0,0,height])),[height])),unitAboveInUnitBelow=(cov_12ivzobf6().s[6]++,(0,react.useMemo)((()=>(cov_12ivzobf6().f[3]++,cov_12ivzobf6().s[7]++,luxon.nL.fromObject({[unitAbove]:1}).as(unit)/sizeInUnits)),[sizeInUnits,unit,unitAbove])),unitAboveSpanInPx=(cov_12ivzobf6().s[8]++,(0,react.useMemo)((()=>(cov_12ivzobf6().f[4]++,cov_12ivzobf6().s[9]++,unitAboveInUnitBelow*columnWidth)),[columnWidth,unitAboveInUnitBelow])),xPos=(cov_12ivzobf6().s[10]++,(0,react.useMemo)((()=>(cov_12ivzobf6().f[5]++,cov_12ivzobf6().s[11]++,index*unitAboveSpanInPx)),[index,unitAboveSpanInPx])),yPos=(cov_12ivzobf6().s[12]++,(0,react.useMemo)((()=>(cov_12ivzobf6().f[6]++,cov_12ivzobf6().s[13]++,.3*rowHeight)),[rowHeight]));return cov_12ivzobf6().s[14]++,(0,jsx_runtime.jsxs)(_konva.LE,{children:[(0,jsx_runtime.jsx)(_konva.vL,{x:xPos,y:0,points,stroke:"gray",strokeWidth:1}),(0,jsx_runtime.jsx)(_konva.oJ,{fill:"transparent",x:xPos,y:yPos-10,height:15,width:unitAboveSpanInPx}),(0,jsx_runtime.jsx)(_konva.V,{align:"center",fill:themeColor,x:xPos,y:yPos-8,text:cellLabel,width:unitAboveSpanInPx})]},`timeslot-${index}`)};GridCellGroup.displayName="GridCellGroup";const grid_CellGroup=GridCellGroup;try{CellGroup.displayName="CellGroup",CellGroup.__docgenInfo={description:"",displayName:"CellGroup",props:{column:{defaultValue:null,description:"",name:"column",required:!0,type:{name:"Interval"}},height:{defaultValue:null,description:"",name:"height",required:!0,type:{name:"number"}},index:{defaultValue:null,description:"",name:"index",required:!0,type:{name:"number"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/grid/CellGroup/index.tsx#CellGroup"]={docgenInfo:CellGroup.__docgenInfo,name:"CellGroup",path:"src/grid/CellGroup/index.tsx#CellGroup"})}catch(__react_docgen_typescript_loader_error){}function cov_2d7dtjickq(){var path="/home/runner/work/konva-timeline/konva-timeline/src/grid/Cells/index.tsx",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"b35e5ad2e56b562f2111f62bca30eb20f826e5de"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/konva-timeline/konva-timeline/src/grid/Cells/index.tsx",statementMap:{0:{start:{line:12,column:18},end:{line:25,column:1}},1:{start:{line:13,column:49},end:{line:13,column:69}},2:{start:{line:15,column:2},end:{line:24,column:4}},3:{start:{line:18,column:8},end:{line:18,column:99}},4:{start:{line:21,column:8},end:{line:21,column:88}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:12,column:18},end:{line:12,column:19}},loc:{start:{line:12,column:50},end:{line:25,column:1}},line:12},1:{name:"(anonymous_1)",decl:{start:{line:17,column:27},end:{line:17,column:28}},loc:{start:{line:18,column:8},end:{line:18,column:99}},line:18},2:{name:"(anonymous_2)",decl:{start:{line:20,column:29},end:{line:20,column:30}},loc:{start:{line:21,column:8},end:{line:21,column:88}},line:21}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0},f:{0:0,1:0,2:0},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"b35e5ad2e56b562f2111f62bca30eb20f826e5de"});var actualCoverage=coverage[path];return cov_2d7dtjickq=function(){return actualCoverage},actualCoverage}cov_2d7dtjickq(),cov_2d7dtjickq().s[0]++;const GridCells=({height})=>{cov_2d7dtjickq().f[0]++;const{aboveTimeBlocks,visibleTimeBlocks}=(cov_2d7dtjickq().s[1]++,(0,TimelineContext.i)());return cov_2d7dtjickq().s[2]++,(0,jsx_runtime.jsxs)(_konva.LE,{children:[aboveTimeBlocks.map(((column,index)=>(cov_2d7dtjickq().f[1]++,cov_2d7dtjickq().s[3]++,(0,jsx_runtime.jsx)(grid_CellGroup,{column,height,index},`cell-group-${index}`)))),visibleTimeBlocks.map(((column,index)=>(cov_2d7dtjickq().f[2]++,cov_2d7dtjickq().s[4]++,(0,jsx_runtime.jsx)(Cell,{column,height,index},`cell-${index}`))))]})};GridCells.displayName="GridCells";const Cells=(0,react.memo)(GridCells);try{GridCells.displayName="GridCells",GridCells.__docgenInfo={description:"",displayName:"GridCells",props:{height:{defaultValue:null,description:"",name:"height",required:!0,type:{name:"number"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/grid/Cells/index.tsx#GridCells"]={docgenInfo:GridCells.__docgenInfo,name:"GridCells",path:"src/grid/Cells/index.tsx#GridCells"})}catch(__react_docgen_typescript_loader_error){}function cov_2fpcw3lv4z(){var path="/home/runner/work/konva-timeline/konva-timeline/src/grid/Row/index.tsx",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"3b8b53e36071b595447db422416f37d2e2d0f17f"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/konva-timeline/konva-timeline/src/grid/Row/index.tsx",statementMap:{0:{start:{line:10,column:16},end:{line:20,column:1}},1:{start:{line:15,column:6},end:{line:15,column:26}},2:{start:{line:17,column:15},end:{line:17,column:73}},3:{start:{line:17,column:29},end:{line:17,column:52}},4:{start:{line:19,column:2},end:{line:19,column:95}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:10,column:16},end:{line:10,column:17}},loc:{start:{line:10,column:45},end:{line:20,column:1}},line:10},1:{name:"(anonymous_1)",decl:{start:{line:17,column:23},end:{line:17,column:24}},loc:{start:{line:17,column:29},end:{line:17,column:52}},line:17}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0},f:{0:0,1:0},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"3b8b53e36071b595447db422416f37d2e2d0f17f"});var actualCoverage=coverage[path];return cov_2fpcw3lv4z=function(){return actualCoverage},actualCoverage}cov_2fpcw3lv4z(),cov_2fpcw3lv4z().s[0]++;const GridRow=({index})=>{cov_2fpcw3lv4z().f[0]++;const{drawRange:{start:drawRangeStart,end:drawRangeEnd},rowHeight,theme:{color:themeColor}}=(cov_2fpcw3lv4z().s[1]++,(0,TimelineContext.i)()),yPos=(cov_2fpcw3lv4z().s[2]++,(0,react.useMemo)((()=>(cov_2fpcw3lv4z().f[1]++,cov_2fpcw3lv4z().s[3]++,rowHeight*(index+1))),[index,rowHeight]));return cov_2fpcw3lv4z().s[4]++,(0,jsx_runtime.jsx)(_konva.vL,{points:[drawRangeStart,yPos,drawRangeEnd,yPos],stroke:themeColor})};GridRow.displayName="GridRow";const Row=(0,react.memo)(GridRow);try{GridRow.displayName="GridRow",GridRow.__docgenInfo={description:"",displayName:"GridRow",props:{index:{defaultValue:null,description:"",name:"index",required:!0,type:{name:"number"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/grid/Row/index.tsx#GridRow"]={docgenInfo:GridRow.__docgenInfo,name:"GridRow",path:"src/grid/Row/index.tsx#GridRow"})}catch(__react_docgen_typescript_loader_error){}function cov_1xnfipk9jc(){var path="/home/runner/work/konva-timeline/konva-timeline/src/grid/Rows/index.tsx",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"e00fb1afd5795118d161ab4e33a47c4ae19e0619"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/konva-timeline/konva-timeline/src/grid/Rows/index.tsx",statementMap:{0:{start:{line:7,column:17},end:{line:17,column:1}},1:{start:{line:8,column:24},end:{line:8,column:44}},2:{start:{line:10,column:2},end:{line:16,column:4}},3:{start:{line:13,column:8},end:{line:13,column:61}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:7,column:17},end:{line:7,column:18}},loc:{start:{line:7,column:23},end:{line:17,column:1}},line:7},1:{name:"(anonymous_1)",decl:{start:{line:12,column:21},end:{line:12,column:22}},loc:{start:{line:13,column:8},end:{line:13,column:61}},line:13}},branchMap:{},s:{0:0,1:0,2:0,3:0},f:{0:0,1:0},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"e00fb1afd5795118d161ab4e33a47c4ae19e0619"});var actualCoverage=coverage[path];return cov_1xnfipk9jc=function(){return actualCoverage},actualCoverage}cov_1xnfipk9jc(),cov_1xnfipk9jc().s[0]++;const GridRows=()=>{cov_1xnfipk9jc().f[0]++;const{resources}=(cov_1xnfipk9jc().s[1]++,(0,TimelineContext.i)());return cov_1xnfipk9jc().s[2]++,(0,jsx_runtime.jsx)(_konva.LE,{children:resources.map((({id},index)=>(cov_1xnfipk9jc().f[1]++,cov_1xnfipk9jc().s[3]++,(0,jsx_runtime.jsx)(Row,{index},`grid-row-line-${id}`))))})};GridRows.displayName="GridRows";const Rows=(0,react.memo)(GridRows);function cov_2q0pdsm8sy(){var path="/home/runner/work/konva-timeline/konva-timeline/src/grid/Layer/index.tsx",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"fb8ee0d0677b339274234371d1d1610fd88563e3"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/konva-timeline/konva-timeline/src/grid/Layer/index.tsx",statementMap:{0:{start:{line:11,column:38},end:{line:18,column:1}},1:{start:{line:12,column:2},end:{line:17,column:4}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:11,column:38},end:{line:11,column:39}},loc:{start:{line:11,column:54},end:{line:18,column:1}},line:11}},branchMap:{},s:{0:0,1:0},f:{0:0},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"fb8ee0d0677b339274234371d1d1610fd88563e3"});var actualCoverage=coverage[path];return cov_2q0pdsm8sy=function(){return actualCoverage},actualCoverage}cov_2q0pdsm8sy(),cov_2q0pdsm8sy().s[0]++;const GridLayer=({height})=>(cov_2q0pdsm8sy().f[0]++,cov_2q0pdsm8sy().s[1]++,(0,jsx_runtime.jsxs)(_konva.Rj,{children:[(0,jsx_runtime.jsx)(Rows,{}),(0,jsx_runtime.jsx)(Cells,{height})]}));GridLayer.displayName="GridLayer";const grid_Layer=(0,react.memo)(GridLayer);try{Layer.displayName="Layer",Layer.__docgenInfo={description:"",displayName:"Layer",props:{height:{defaultValue:null,description:"",name:"height",required:!0,type:{name:"number"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/grid/Layer/index.tsx#Layer"]={docgenInfo:Layer.__docgenInfo,name:"Layer",path:"src/grid/Layer/index.tsx#Layer"})}catch(__react_docgen_typescript_loader_error){}var components_Layer=__webpack_require__("./src/resources/components/Layer/index.tsx"),resources=__webpack_require__("./src/resources/utils/resources.ts"),tasks_components_Layer=__webpack_require__("./src/tasks/components/Layer/index.tsx"),logger=__webpack_require__("./src/utils/logger.ts");function cov_xto4rxazl(){var path="/home/runner/work/konva-timeline/konva-timeline/src/timeline/index.tsx",global=new Function("return this")(),gcv="__coverage__",coverageData={path:"/home/runner/work/konva-timeline/konva-timeline/src/timeline/index.tsx",statementMap:{0:{start:{line:22,column:38},end:{line:22,column:61}},1:{start:{line:24,column:36},end:{line:191,column:1}},2:{start:{line:35,column:6},end:{line:35,column:26}},3:{start:{line:37,column:44},end:{line:37,column:55}},4:{start:{line:38,column:26},end:{line:38,column:65}},5:{start:{line:39,column:19},end:{line:39,column:44}},6:{start:{line:40,column:18},end:{line:40,column:46}},7:{start:{line:42,column:40},end:{line:42,column:79}},8:{start:{line:44,column:25},end:{line:54,column:8}},9:{start:{line:45,column:4},end:{line:47,column:5}},10:{start:{line:46,column:6},end:{line:46,column:13}},11:{start:{line:49,column:4},end:{line:49,column:47}},12:{start:{line:50,column:84},end:{line:50,column:99}},13:{start:{line:51,column:26},end:{line:51,column:78}},14:{start:{line:52,column:4},end:{line:52,column:31}},15:{start:{line:53,column:4},end:{line:53,column:36}},16:{start:{line:56,column:24},end:{line:70,column:32}},17:{start:{line:57,column:4},end:{line:59,column:5}},18:{start:{line:58,column:6},end:{line:58,column:13}},19:{start:{line:61,column:4},end:{line:61,column:47}},20:{start:{line:62,column:27},end:{line:62,column:42}},21:{start:{line:63,column:4},end:{line:63,column:83}},22:{start:{line:64,column:4},end:{line:64,column:36}},23:{start:{line:66,column:18},end:{line:66,column:28}},24:{start:{line:67,column:16},end:{line:67,column:39}},25:{start:{line:68,column:4},end:{line:68,column:33}},26:{start:{line:69,column:4},end:{line:69,column:25}},27:{start:{line:72,column:2},end:{line:80,column:23}},28:{start:{line:73,column:4},end:{line:73,column:75}},29:{start:{line:74,column:4},end:{line:74,column:54}},30:{start:{line:75,column:4},end:{line:75,column:21}},31:{start:{line:77,column:4},end:{line:79,column:6}},32:{start:{line:78,column:6},end:{line:78,column:59}},33:{start:{line:82,column:2},end:{line:90,column:22}},34:{start:{line:83,column:4},end:{line:85,column:5}},35:{start:{line:84,column:6},end:{line:84,column:13}},36:{start:{line:87,column:4},end:{line:87,column:75}},37:{start:{line:88,column:4},end:{line:88,column:62}},38:{start:{line:89,column:4},end:{line:89,column:20}},39:{start:{line:92,column:2},end:{line:95,column:38}},40:{start:{line:93,column:4},end:{line:93,column:64}},41:{start:{line:94,column:4},end:{line:94,column:21}},42:{start:{line:97,column:2},end:{line:105,column:88}},43:{start:{line:98,column:4},end:{line:100,column:5}},44:{start:{line:99,column:6},end:{line:99,column:13}},45:{start:{line:102,column:22},end:{line:102,column:58}},46:{start:{line:103,column:30},end:{line:103,column:81}},47:{start:{line:104,column:4},end:{line:104,column:99}},48:{start:{line:107,column:28},end:{line:107,column:101}},49:{start:{line:107,column:42},end:{line:107,column:73}},50:{start:{line:111,column:22},end:{line:111,column:44}},51:{start:{line:113,column:21},end:{line:113,column:85}},52:{start:{line:113,column:35},end:{line:113,column:61}},53:{start:{line:115,column:30},end:{line:120,column:3}},54:{start:{line:116,column:26},end:{line:118,column:5}},55:{start:{line:122,column:31},end:{line:131,column:3}},56:{start:{line:123,column:26},end:{line:129,column:5}},57:{start:{line:133,column:37},end:{line:147,column:3}},58:{start:{line:134,column:26},end:{line:145,column:5}},59:{start:{line:149,column:32},end:{line:156,column:3}},60:{start:{line:150,column:26},end:{line:154,column:5}},61:{start:{line:158,column:26},end:{line:158,column:105}},62:{start:{line:158,column:41},end:{line:158,column:86}},63:{start:{line:160,column:27},end:{line:170,column:3}},64:{start:{line:161,column:26},end:{line:168,column:5}},65:{start:{line:172,column:2},end:{line:190,column:4}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:24,column:36},end:{line:24,column:37}},loc:{start:{line:24,column:42},end:{line:191,column:1}},line:24},1:{name:"(anonymous_1)",decl:{start:{line:44,column:37},end:{line:44,column:38}},loc:{start:{line:44,column:43},end:{line:54,column:3}},line:44},2:{name:"(anonymous_2)",decl:{start:{line:56,column:36},end:{line:56,column:37}},loc:{start:{line:56,column:42},end:{line:70,column:3}},line:56},3:{name:"(anonymous_3)",decl:{start:{line:72,column:12},end:{line:72,column:13}},loc:{start:{line:72,column:18},end:{line:80,column:3}},line:72},4:{name:"(anonymous_4)",decl:{start:{line:77,column:11},end:{line:77,column:12}},loc:{start:{line:77,column:17},end:{line:79,column:5}},line:77},5:{name:"(anonymous_5)",decl:{start:{line:82,column:12},end:{line:82,column:13}},loc:{start:{line:82,column:18},end:{line:90,column:3}},line:82},6:{name:"(anonymous_6)",decl:{start:{line:92,column:12},end:{line:92,column:13}},loc:{start:{line:92,column:18},end:{line:95,column:3}},line:92},7:{name:"(anonymous_7)",decl:{start:{line:97,column:12},end:{line:97,column:13}},loc:{start:{line:97,column:18},end:{line:105,column:3}},line:97},8:{name:"(anonymous_8)",decl:{start:{line:107,column:36},end:{line:107,column:37}},loc:{start:{line:107,column:42},end:{line:107,column:73}},line:107},9:{name:"(anonymous_9)",decl:{start:{line:113,column:29},end:{line:113,column:30}},loc:{start:{line:113,column:35},end:{line:113,column:61}},line:113},10:{name:"(anonymous_10)",decl:{start:{line:116,column:4},end:{line:116,column:5}},loc:{start:{line:116,column:26},end:{line:118,column:5}},line:116},11:{name:"(anonymous_11)",decl:{start:{line:123,column:4},end:{line:123,column:5}},loc:{start:{line:123,column:26},end:{line:129,column:5}},line:123},12:{name:"(anonymous_12)",decl:{start:{line:134,column:4},end:{line:134,column:5}},loc:{start:{line:134,column:26},end:{line:145,column:5}},line:134},13:{name:"(anonymous_13)",decl:{start:{line:150,column:4},end:{line:150,column:5}},loc:{start:{line:150,column:26},end:{line:154,column:5}},line:150},14:{name:"(anonymous_14)",decl:{start:{line:158,column:34},end:{line:158,column:35}},loc:{start:{line:158,column:41},end:{line:158,column:86}},line:158},15:{name:"(anonymous_15)",decl:{start:{line:161,column:4},end:{line:161,column:5}},loc:{start:{line:161,column:26},end:{line:168,column:5}},line:161}},branchMap:{0:{loc:{start:{line:45,column:4},end:{line:47,column:5}},type:"if",locations:[{start:{line:45,column:4},end:{line:47,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:45},1:{loc:{start:{line:57,column:4},end:{line:59,column:5}},type:"if",locations:[{start:{line:57,column:4},end:{line:59,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:57},2:{loc:{start:{line:57,column:8},end:{line:57,column:45}},type:"binary-expr",locations:[{start:{line:57,column:8},end:{line:57,column:24}},{start:{line:57,column:28},end:{line:57,column:45}}],line:57},3:{loc:{start:{line:83,column:4},end:{line:85,column:5}},type:"if",locations:[{start:{line:83,column:4},end:{line:85,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:83},4:{loc:{start:{line:98,column:4},end:{line:100,column:5}},type:"if",locations:[{start:{line:98,column:4},end:{line:100,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:98},5:{loc:{start:{line:98,column:8},end:{line:98,column:44}},type:"binary-expr",locations:[{start:{line:98,column:8},end:{line:98,column:24}},{start:{line:98,column:28},end:{line:98,column:44}}],line:98},6:{loc:{start:{line:158,column:41},end:{line:158,column:86}},type:"cond-expr",locations:[{start:{line:158,column:57},end:{line:158,column:58}},{start:{line:158,column:61},end:{line:158,column:86}}],line:158},7:{loc:{start:{line:174,column:7},end:{line:180,column:7}},type:"binary-expr",locations:[{start:{line:174,column:7},end:{line:174,column:21}},{start:{line:175,column:8},end:{line:179,column:14}}],line:174}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0,39:0,40:0,41:0,42:0,43:0,44:0,45:0,46:0,47:0,48:0,49:0,50:0,51:0,52:0,53:0,54:0,55:0,56:0,57:0,58:0,59:0,60:0,61:0,62:0,63:0,64:0,65:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0],7:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"9501d890463d29d87c5e2135e1730b609db5f976"},coverage=global[gcv]||(global[gcv]={});coverage[path]&&"9501d890463d29d87c5e2135e1730b609db5f976"===coverage[path].hash||(coverage[path]=coverageData);var actualCoverage=coverage[path];return cov_xto4rxazl=function(){return actualCoverage},actualCoverage}cov_xto4rxazl();const DEFAULT_STAGE_SIZE=(cov_xto4rxazl().s[0]++,{height:0,width:0});cov_xto4rxazl().s[1]++;const Timeline=()=>{cov_xto4rxazl().f[0]++;const{hideResources,initialDateTime,interval,columnWidth,resourcesContentHeight,resolution,setDrawRange,theme:{color:themeColor},timeBlocks}=(cov_xto4rxazl().s[2]++,(0,TimelineContext.i)()),[scrollbarSize,setScrollbarSize]=(cov_xto4rxazl().s[3]++,(0,react.useState)(0)),[size,setSize]=(cov_xto4rxazl().s[4]++,(0,react.useState)(DEFAULT_STAGE_SIZE)),stageRef=(cov_xto4rxazl().s[5]++,(0,react.useRef)(null)),wrapper=(cov_xto4rxazl().s[6]++,(0,react.useRef)(null)),[taskTooltip,setTaskTooltip]=(cov_xto4rxazl().s[7]++,(0,react.useState)(null)),onWindowResize=(cov_xto4rxazl().s[8]++,(0,react.useCallback)((()=>{if(cov_xto4rxazl().f[1]++,cov_xto4rxazl().s[9]++,!wrapper.current)return cov_xto4rxazl().b[0][0]++,void cov_xto4rxazl().s[10]++;cov_xto4rxazl().b[0][1]++,cov_xto4rxazl().s[11]++,(0,logger.o7)("Timeline","Resizing window...");const{clientHeight:height,clientWidth:width,offsetHeight,offsetWidth}=(cov_xto4rxazl().s[12]++,wrapper.current),scrollbarSize=(cov_xto4rxazl().s[13]++,Math.max(offsetHeight-height,offsetWidth-width));cov_xto4rxazl().s[14]++,setSize({height,width}),cov_xto4rxazl().s[15]++,setScrollbarSize(scrollbarSize)}),[])),onStageScroll=(cov_xto4rxazl().s[16]++,(0,react.useCallback)((()=>{if(cov_xto4rxazl().f[2]++,cov_xto4rxazl().s[17]++,cov_xto4rxazl().b[2][0]++,!wrapper.current||(cov_xto4rxazl().b[2][1]++,!stageRef.current))return cov_xto4rxazl().b[1][0]++,void cov_xto4rxazl().s[18]++;cov_xto4rxazl().b[1][1]++,cov_xto4rxazl().s[19]++,(0,logger.o7)("Timeline","Scrolling stage...");const{scrollLeft}=(cov_xto4rxazl().s[20]++,wrapper.current);cov_xto4rxazl().s[21]++,stageRef.current.container().style.transform=`translate(${scrollLeft}px, 0)`,cov_xto4rxazl().s[22]++,stageRef.current.x(-scrollLeft);const start=(cov_xto4rxazl().s[23]++,scrollLeft),end=(cov_xto4rxazl().s[24]++,scrollLeft+size.width);cov_xto4rxazl().s[25]++,setDrawRange({start,end}),cov_xto4rxazl().s[26]++,setTaskTooltip(null)}),[setDrawRange,size.width]));cov_xto4rxazl().s[27]++,(0,react.useEffect)((()=>(cov_xto4rxazl().f[3]++,cov_xto4rxazl().s[28]++,(0,logger.o7)("Timeline","Initial applying of onResize event listener..."),cov_xto4rxazl().s[29]++,window.addEventListener("resize",onWindowResize),cov_xto4rxazl().s[30]++,onWindowResize(),cov_xto4rxazl().s[31]++,()=>{cov_xto4rxazl().f[4]++,cov_xto4rxazl().s[32]++,window.removeEventListener("resize",onWindowResize)})),[onWindowResize]),cov_xto4rxazl().s[33]++,(0,react.useEffect)((()=>{if(cov_xto4rxazl().f[5]++,cov_xto4rxazl().s[34]++,!wrapper.current)return cov_xto4rxazl().b[3][0]++,void cov_xto4rxazl().s[35]++;cov_xto4rxazl().b[3][1]++,cov_xto4rxazl().s[36]++,(0,logger.o7)("Timeline","Initial applying of onScroll event listener..."),cov_xto4rxazl().s[37]++,wrapper.current.addEventListener("scroll",onStageScroll),cov_xto4rxazl().s[38]++,onStageScroll()}),[onStageScroll]),cov_xto4rxazl().s[39]++,(0,react.useEffect)((()=>{cov_xto4rxazl().f[6]++,cov_xto4rxazl().s[40]++,(0,logger.o7)("Timeline","Applying effects of size changes..."),cov_xto4rxazl().s[41]++,onWindowResize()}),[hideResources,onWindowResize]),cov_xto4rxazl().s[42]++,(0,react.useEffect)((()=>{if(cov_xto4rxazl().f[7]++,cov_xto4rxazl().s[43]++,cov_xto4rxazl().b[5][0]++,!wrapper.current||(cov_xto4rxazl().b[5][1]++,!initialDateTime))return cov_xto4rxazl().b[4][0]++,void cov_xto4rxazl().s[44]++;cov_xto4rxazl().b[4][1]++;const timeStart=(cov_xto4rxazl().s[45]++,luxon.ou.fromMillis(initialDateTime)),startOffsetInUnit=(cov_xto4rxazl().s[46]++,timeStart.diff(interval.start).as(resolution.unit));cov_xto4rxazl().s[47]++,wrapper.current.scrollTo({left:startOffsetInUnit*columnWidth/resolution.sizeInUnits})}),[columnWidth,initialDateTime,interval,resolution.sizeInUnits,resolution.unit]);const fullTimelineWidth=(cov_xto4rxazl().s[48]++,(0,react.useMemo)((()=>(cov_xto4rxazl().f[8]++,cov_xto4rxazl().s[49]++,columnWidth*timeBlocks.length)),[columnWidth,timeBlocks])),stageHeight=(cov_xto4rxazl().s[50]++,resourcesContentHeight),stageWidth=(cov_xto4rxazl().s[51]++,(0,react.useMemo)((()=>(cov_xto4rxazl().f[9]++,cov_xto4rxazl().s[52]++,scrollbarSize+size.width)),[scrollbarSize,size])),timelineCommonStyle=(cov_xto4rxazl().s[53]++,(0,react.useMemo)((()=>(cov_xto4rxazl().f[10]++,cov_xto4rxazl().s[54]++,{minHeight:resourcesContentHeight})),[resourcesContentHeight])),timelineWrapperStyle=(cov_xto4rxazl().s[55]++,(0,react.useMemo)((()=>(cov_xto4rxazl().f[11]++,cov_xto4rxazl().s[56]++,{...timelineCommonStyle,border:`1px solid ${themeColor}`,display:"inline-block",position:"relative",width:"100%"})),[themeColor,timelineCommonStyle])),resourcesStageWrapperStyle=(cov_xto4rxazl().s[57]++,(0,react.useMemo)((()=>(cov_xto4rxazl().f[12]++,cov_xto4rxazl().s[58]++,{...timelineCommonStyle,backgroundColor:"transparent",boxShadow:"4px 4px 32px 1px #0000000f",borderRight:`1px solid ${themeColor}`,left:0,paddingBottom:scrollbarSize,position:"sticky",top:0,width:resources.Oc,zIndex:1})),[scrollbarSize,themeColor,timelineCommonStyle])),gridStageWrapperStyle=(cov_xto4rxazl().s[59]++,(0,react.useMemo)((()=>(cov_xto4rxazl().f[13]++,cov_xto4rxazl().s[60]++,{...timelineCommonStyle,overflow:"hidden",width:fullTimelineWidth})),[fullTimelineWidth,timelineCommonStyle])),resourcesOffset=(cov_xto4rxazl().s[61]++,(0,react.useMemo)((()=>(cov_xto4rxazl().f[14]++,cov_xto4rxazl().s[62]++,hideResources?(cov_xto4rxazl().b[6][0]++,0):(cov_xto4rxazl().b[6][1]++,resources.Oc+1))),[hideResources])),gridWrapperStyle=(cov_xto4rxazl().s[63]++,(0,react.useMemo)((()=>(cov_xto4rxazl().f[15]++,cov_xto4rxazl().s[64]++,{...timelineCommonStyle,left:resourcesOffset,overflow:"auto",position:"absolute",top:0,width:`calc(100% - ${resourcesOffset}px)`})),[resourcesOffset,timelineCommonStyle]));return cov_xto4rxazl().s[65]++,(0,jsx_runtime.jsxs)("div",{style:timelineWrapperStyle,children:[(cov_xto4rxazl().b[7][0]++,!hideResources&&(cov_xto4rxazl().b[7][1]++,(0,jsx_runtime.jsx)("div",{style:resourcesStageWrapperStyle,children:(0,jsx_runtime.jsx)(ReactKonva.Hf,{height:stageHeight,width:resources.Oc,children:(0,jsx_runtime.jsx)(components_Layer.Z,{})})}))),(0,jsx_runtime.jsx)("div",{ref:wrapper,style:gridWrapperStyle,children:(0,jsx_runtime.jsx)("div",{style:gridStageWrapperStyle,children:(0,jsx_runtime.jsxs)(ReactKonva.Hf,{ref:stageRef,height:stageHeight,width:stageWidth,children:[(0,jsx_runtime.jsx)(grid_Layer,{height:stageHeight}),(0,jsx_runtime.jsx)(tasks_components_Layer.Z,{taskTooltip,setTaskTooltip})]})})})]})};Timeline.displayName="Timeline";const src_timeline=Timeline;try{timeline.displayName="timeline",timeline.__docgenInfo={description:"",displayName:"timeline",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/timeline/index.tsx#timeline"]={docgenInfo:timeline.__docgenInfo,name:"timeline",path:"src/timeline/index.tsx#timeline"})}catch(__react_docgen_typescript_loader_error){}function cov_17h00w8kph(){var path="/home/runner/work/konva-timeline/konva-timeline/src/KonvaTimeline/index.tsx",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"be13a46095d54fdb961668fd92119424760c2348"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/konva-timeline/konva-timeline/src/KonvaTimeline/index.tsx",statementMap:{0:{start:{line:6,column:49},end:{line:12,column:1}},1:{start:{line:7,column:2},end:{line:11,column:4}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:6,column:49},end:{line:6,column:50}},loc:{start:{line:6,column:60},end:{line:12,column:1}},line:6}},branchMap:{},s:{0:0,1:0},f:{0:0},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"be13a46095d54fdb961668fd92119424760c2348"});var actualCoverage=coverage[path];return cov_17h00w8kph=function(){return actualCoverage},actualCoverage}cov_17h00w8kph(),cov_17h00w8kph().s[0]++;const KonvaTimeline=props=>(cov_17h00w8kph().f[0]++,cov_17h00w8kph().s[1]++,(0,jsx_runtime.jsx)(TimelineContext.w,{...props,children:(0,jsx_runtime.jsx)(src_timeline,{})}));KonvaTimeline.displayName="KonvaTimeline";const src_KonvaTimeline=KonvaTimeline;try{KonvaTimeline.displayName="KonvaTimeline",KonvaTimeline.__docgenInfo={description:"",displayName:"KonvaTimeline",props:{columnWidth:{defaultValue:null,description:"Custom column width (defaults to 60px)",name:"columnWidth",required:!1,type:{name:"number"}},displayTasksLabel:{defaultValue:null,description:"Enables tasks label display",name:"displayTasksLabel",required:!1,type:{name:"boolean"}},dragResolution:{defaultValue:null,description:"Drag and drop resolution (if not passed, defaults to resolution)",name:"dragResolution",required:!1,type:{name:"enum",value:[{value:'"1min"'},{value:'"5min"'},{value:'"10min"'},{value:'"15min"'},{value:'"30min"'},{value:'"1hrs"'},{value:'"2hrs"'},{value:'"6hrs"'},{value:'"12hrs"'},{value:'"1day"'},{value:'"1week"'},{value:'"2weeks"'}]}},hideResources:{defaultValue:null,description:"Flag to hide resource column (defaults to false)",name:"hideResources",required:!1,type:{name:"boolean"}},resolution:{defaultValue:null,description:"Resolution to display data in konva-timeline (defaults to 1hrs)",name:"resolution",required:!1,type:{name:"enum",value:[{value:'"1min"'},{value:'"5min"'},{value:'"10min"'},{value:'"15min"'},{value:'"30min"'},{value:'"1hrs"'},{value:'"2hrs"'},{value:'"6hrs"'},{value:'"12hrs"'},{value:'"1day"'},{value:'"1week"'},{value:'"2weeks"'}]}},rowHeight:{defaultValue:null,description:"Custom row height (defaults to 50px)",name:"rowHeight",required:!1,type:{name:"number"}},tasks:{defaultValue:null,description:"List of tasks to be displayed (defaults to [])",name:"tasks",required:!1,type:{name:"TaskData[]"}},range:{defaultValue:null,description:"Time range to be displayed",name:"range",required:!0,type:{name:"TimeRange"}},resources:{defaultValue:null,description:"List of resources to be displayed",name:"resources",required:!0,type:{name:"Resource[]"}},debug:{defaultValue:null,description:"Enables debug logging in browser console",name:"debug",required:!1,type:{name:"boolean"}},enableDrag:{defaultValue:null,description:"Enables drag&drop operation on tasks",name:"enableDrag",required:!1,type:{name:"boolean"}},enableResize:{defaultValue:null,description:"Enables resize operation on tasks",name:"enableResize",required:!1,type:{name:"boolean"}},headerLabel:{defaultValue:null,description:"Label to display in header column",name:"headerLabel",required:!1,type:{name:"string"}},initialDateTime:{defaultValue:null,description:"Initial date time to scroll to",name:"initialDateTime",required:!1,type:{name:"string | number"}},onErrors:{defaultValue:null,description:"Callback invoked when errors are thrown",name:"onErrors",required:!1,type:{name:"((errors: KonvaTimelineError[]) => void)"}},onTaskClick:{defaultValue:null,description:"Event handler for task click",name:"onTaskClick",required:!1,type:{name:"((task: TaskData) => void)"}},onTaskChange:{defaultValue:null,description:"Event handler for task change event (drag and resize)",name:"onTaskChange",required:!1,type:{name:"((task: TaskData) => void)"}},timezone:{defaultValue:null,description:"Timezone used for display (defaults to 'system')",name:"timezone",required:!1,type:{name:"string"}},theme:{defaultValue:null,description:"Theme color in use",name:"theme",required:!1,type:{name:"enum",value:[{value:'"dark"'},{value:'"light"'}]}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/KonvaTimeline/index.tsx#KonvaTimeline"]={docgenInfo:KonvaTimeline.__docgenInfo,name:"KonvaTimeline",path:"src/KonvaTimeline/index.tsx#KonvaTimeline"})}catch(__react_docgen_typescript_loader_error){}},"./src/resources/components/Header/index.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{$:()=>ResourceHeaderDocs,Z:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_konva__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/@konva/index.tsx"),_timeline_TimelineContext__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/timeline/TimelineContext.tsx"),_utils_dimensions__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/utils/dimensions.ts"),_utils_resources__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./src/resources/utils/resources.ts"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/react/jsx-runtime.js");function cov_1gmh39x9ii(){var path="/home/runner/work/konva-timeline/konva-timeline/src/resources/components/Header/index.tsx",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"10718df01bc4be1e06e3ab16c3d02dd7181ba30a"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/konva-timeline/konva-timeline/src/resources/components/Header/index.tsx",statementMap:{0:{start:{line:26,column:23},end:{line:49,column:1}},1:{start:{line:30,column:6},end:{line:30,column:26}},2:{start:{line:32,column:20},end:{line:32,column:96}},3:{start:{line:32,column:34},end:{line:32,column:82}},4:{start:{line:34,column:22},end:{line:34,column:74}},5:{start:{line:34,column:36},end:{line:34,column:53}},6:{start:{line:36,column:2},end:{line:48,column:4}},7:{start:{line:51,column:34},end:{line:51,column:48}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:26,column:23},end:{line:26,column:24}},loc:{start:{line:26,column:85},end:{line:49,column:1}},line:26},1:{name:"(anonymous_1)",decl:{start:{line:32,column:28},end:{line:32,column:29}},loc:{start:{line:32,column:34},end:{line:32,column:82}},line:32},2:{name:"(anonymous_2)",decl:{start:{line:34,column:30},end:{line:34,column:31}},loc:{start:{line:34,column:36},end:{line:34,column:53}},line:34}},branchMap:{0:{loc:{start:{line:26,column:33},end:{line:26,column:47}},type:"default-arg",locations:[{start:{line:26,column:42},end:{line:26,column:47}}],line:26},1:{loc:{start:{line:46,column:7},end:{line:46,column:105}},type:"binary-expr",locations:[{start:{line:46,column:7},end:{line:46,column:14}},{start:{line:46,column:18},end:{line:46,column:105}}],line:46}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0},f:{0:0,1:0,2:0},b:{0:[0],1:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"10718df01bc4be1e06e3ab16c3d02dd7181ba30a"});var actualCoverage=coverage[path];return cov_1gmh39x9ii=function(){return actualCoverage},actualCoverage}cov_1gmh39x9ii(),cov_1gmh39x9ii().s[0]++;const ResourceHeader=({index,isLast=(cov_1gmh39x9ii().b[0][0]++,!1),resource})=>{cov_1gmh39x9ii().f[0]++;const{rowHeight,theme:{color:themeColor}}=(cov_1gmh39x9ii().s[1]++,(0,_timeline_TimelineContext__WEBPACK_IMPORTED_MODULE_2__.i)()),rowPoints=(cov_1gmh39x9ii().s[2]++,(0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)((()=>(cov_1gmh39x9ii().f[1]++,cov_1gmh39x9ii().s[3]++,[0,rowHeight,_utils_resources__WEBPACK_IMPORTED_MODULE_4__.Oc,rowHeight])),[rowHeight])),yCoordinate=(cov_1gmh39x9ii().s[4]++,(0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)((()=>(cov_1gmh39x9ii().f[2]++,cov_1gmh39x9ii().s[5]++,rowHeight*index)),[index,rowHeight]));return cov_1gmh39x9ii().s[6]++,(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)(_konva__WEBPACK_IMPORTED_MODULE_1__.LE,{y:yCoordinate,children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_konva__WEBPACK_IMPORTED_MODULE_1__.V,{fill:themeColor,fontSize:_utils_dimensions__WEBPACK_IMPORTED_MODULE_3__.Z2,height:rowHeight,text:resource.label,verticalAlign:"middle",x:_utils_resources__WEBPACK_IMPORTED_MODULE_4__.D0}),(cov_1gmh39x9ii().b[1][0]++,!isLast&&(cov_1gmh39x9ii().b[1][1]++,(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_konva__WEBPACK_IMPORTED_MODULE_1__.vL,{points:rowPoints,stroke:themeColor,strokeWidth:_utils_dimensions__WEBPACK_IMPORTED_MODULE_3__.tA})))]})};ResourceHeader.displayName="ResourceHeader";const ResourceHeaderDocs=(cov_1gmh39x9ii().s[7]++,ResourceHeader),__WEBPACK_DEFAULT_EXPORT__=(0,react__WEBPACK_IMPORTED_MODULE_0__.memo)(ResourceHeader);try{ResourceHeaderDocs.displayName="ResourceHeaderDocs",ResourceHeaderDocs.__docgenInfo={description:"",displayName:"ResourceHeaderDocs",props:{index:{defaultValue:null,description:"The row index of current resource",name:"index",required:!0,type:{name:"number"}},isLast:{defaultValue:{value:"false"},description:"Flag to identify if resource is last to be shown",name:"isLast",required:!1,type:{name:"boolean"}},resource:{defaultValue:null,description:"The resource object to handle",name:"resource",required:!0,type:{name:"Resource"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/resources/components/Header/index.tsx#ResourceHeaderDocs"]={docgenInfo:ResourceHeaderDocs.__docgenInfo,name:"ResourceHeaderDocs",path:"src/resources/components/Header/index.tsx#ResourceHeaderDocs"})}catch(__react_docgen_typescript_loader_error){}try{ResourceHeader.displayName="ResourceHeader",ResourceHeader.__docgenInfo={description:"This component renders a resource header. It displays a text (`resource.label`) and a delimiter line.",displayName:"ResourceHeader",props:{index:{defaultValue:null,description:"The row index of current resource",name:"index",required:!0,type:{name:"number"}},isLast:{defaultValue:{value:"false"},description:"Flag to identify if resource is last to be shown",name:"isLast",required:!1,type:{name:"boolean"}},resource:{defaultValue:null,description:"The resource object to handle",name:"resource",required:!0,type:{name:"Resource"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/resources/components/Header/index.tsx#ResourceHeader"]={docgenInfo:ResourceHeader.__docgenInfo,name:"ResourceHeader",path:"src/resources/components/Header/index.tsx#ResourceHeader"})}catch(__react_docgen_typescript_loader_error){}},"./src/resources/components/Layer/index.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{Z:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/react/index.js");var _konva__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/@konva/index.tsx"),_timeline_TimelineContext__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/timeline/TimelineContext.tsx"),_Header__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/resources/components/Header/index.tsx"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/react/jsx-runtime.js");function cov_1lrv30s158(){var path="/home/runner/work/konva-timeline/konva-timeline/src/resources/components/Layer/index.tsx",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"f05e2dd491cbfc29e67ec62ad140a703a6442f40"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/konva-timeline/konva-timeline/src/resources/components/Layer/index.tsx",statementMap:{0:{start:{line:12,column:48},end:{line:24,column:1}},1:{start:{line:13,column:24},end:{line:13,column:44}},2:{start:{line:15,column:2},end:{line:23,column:4}},3:{start:{line:18,column:23},end:{line:18,column:53}},4:{start:{line:20,column:8},end:{line:20,column:116}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:12,column:48},end:{line:12,column:49}},loc:{start:{line:12,column:54},end:{line:24,column:1}},line:12},1:{name:"(anonymous_1)",decl:{start:{line:17,column:21},end:{line:17,column:22}},loc:{start:{line:17,column:42},end:{line:21,column:7}},line:17}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0},f:{0:0,1:0},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"f05e2dd491cbfc29e67ec62ad140a703a6442f40"});var actualCoverage=coverage[path];return cov_1lrv30s158=function(){return actualCoverage},actualCoverage}cov_1lrv30s158(),cov_1lrv30s158().s[0]++;const ResourcesLayer=()=>{cov_1lrv30s158().f[0]++;const{resources}=(cov_1lrv30s158().s[1]++,(0,_timeline_TimelineContext__WEBPACK_IMPORTED_MODULE_2__.i)());return cov_1lrv30s158().s[2]++,(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_konva__WEBPACK_IMPORTED_MODULE_1__.Rj,{children:resources.map(((resource,index)=>{cov_1lrv30s158().f[1]++;const isLast=(cov_1lrv30s158().s[3]++,index===resources.length-1);return cov_1lrv30s158().s[4]++,(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_Header__WEBPACK_IMPORTED_MODULE_3__.Z,{index,isLast,resource},`resource-${resource.id}`)}))})};ResourcesLayer.displayName="ResourcesLayer";const __WEBPACK_DEFAULT_EXPORT__=ResourcesLayer;try{Layer.displayName="Layer",Layer.__docgenInfo={description:"This component renders a Konva layer containing one header for each resource (`ResourceHeader`).",displayName:"Layer",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/resources/components/Layer/index.tsx#Layer"]={docgenInfo:Layer.__docgenInfo,name:"Layer",path:"src/resources/components/Layer/index.tsx#Layer"})}catch(__react_docgen_typescript_loader_error){}}}]); \ No newline at end of file +"use strict";(self.webpackChunk_melfore_konva_timeline=self.webpackChunk_melfore_konva_timeline||[]).push([[202],{"./src/KonvaTimeline/index.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{Z:()=>src_KonvaTimeline});var react=__webpack_require__("./node_modules/react/index.js"),ReactKonva=__webpack_require__("./node_modules/react-konva/es/ReactKonva.js"),luxon=__webpack_require__("./node_modules/luxon/src/luxon.js"),_konva=__webpack_require__("./src/@konva/index.tsx"),TimelineContext=__webpack_require__("./src/timeline/TimelineContext.tsx"),time_resolution=__webpack_require__("./src/utils/time-resolution.ts"),jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");function cov_23vnfwcq18(){var path="/home/runner/work/konva-timeline/konva-timeline/src/grid/Cell/index.tsx",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"0cff411d819fc64118db3e197f275d48f1f397dd"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/konva-timeline/konva-timeline/src/grid/Cell/index.tsx",statementMap:{0:{start:{line:14,column:17},end:{line:36,column:1}},1:{start:{line:21,column:6},end:{line:21,column:26}},2:{start:{line:23,column:20},end:{line:23,column:100}},3:{start:{line:23,column:34},end:{line:23,column:73}},4:{start:{line:25,column:15},end:{line:25,column:102}},5:{start:{line:25,column:29},end:{line:25,column:65}},6:{start:{line:27,column:15},end:{line:27,column:58}},7:{start:{line:27,column:29},end:{line:27,column:44}},8:{start:{line:29,column:2},end:{line:35,column:4}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:14,column:17},end:{line:14,column:18}},loc:{start:{line:14,column:63},end:{line:36,column:1}},line:14},1:{name:"(anonymous_1)",decl:{start:{line:23,column:28},end:{line:23,column:29}},loc:{start:{line:23,column:34},end:{line:23,column:73}},line:23},2:{name:"(anonymous_2)",decl:{start:{line:25,column:23},end:{line:25,column:24}},loc:{start:{line:25,column:29},end:{line:25,column:65}},line:25},3:{name:"(anonymous_3)",decl:{start:{line:27,column:23},end:{line:27,column:24}},loc:{start:{line:27,column:29},end:{line:27,column:44}},line:27}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0},f:{0:0,1:0,2:0,3:0},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"0cff411d819fc64118db3e197f275d48f1f397dd"});var actualCoverage=coverage[path];return cov_23vnfwcq18=function(){return actualCoverage},actualCoverage}cov_23vnfwcq18(),cov_23vnfwcq18().s[0]++;const GridCell=({column,height,index})=>{cov_23vnfwcq18().f[0]++;const{blocksOffset,columnWidth,resolution:{unit:resolutionUnit},rowHeight,theme:{color:themeColor}}=(cov_23vnfwcq18().s[1]++,(0,TimelineContext.i)()),cellLabel=(cov_23vnfwcq18().s[2]++,(0,react.useMemo)((()=>(cov_23vnfwcq18().f[1]++,cov_23vnfwcq18().s[3]++,(0,time_resolution.kv)(column,resolutionUnit))),[column,resolutionUnit])),xPos=(cov_23vnfwcq18().s[4]++,(0,react.useMemo)((()=>(cov_23vnfwcq18().f[2]++,cov_23vnfwcq18().s[5]++,columnWidth*(index+blocksOffset))),[blocksOffset,columnWidth,index])),yPos=(cov_23vnfwcq18().s[6]++,(0,react.useMemo)((()=>(cov_23vnfwcq18().f[3]++,cov_23vnfwcq18().s[7]++,.8*rowHeight)),[rowHeight]));return cov_23vnfwcq18().s[8]++,(0,jsx_runtime.jsxs)(_konva.LE,{children:[(0,jsx_runtime.jsx)(_konva.vL,{x:xPos,y:yPos,points:[0,0,0,height],stroke:"gray",strokeWidth:1}),(0,jsx_runtime.jsx)(_konva.oJ,{fill:"transparent",x:xPos-15,y:yPos-10,height:15,width:30}),(0,jsx_runtime.jsx)(_konva.V,{fill:themeColor,x:xPos-15,y:yPos-8,text:cellLabel})]},`timeslot-${index}`)};GridCell.displayName="GridCell";const Cell=(0,react.memo)(GridCell);try{GridCell.displayName="GridCell",GridCell.__docgenInfo={description:"",displayName:"GridCell",props:{column:{defaultValue:null,description:"",name:"column",required:!0,type:{name:"Interval"}},height:{defaultValue:null,description:"",name:"height",required:!0,type:{name:"number"}},index:{defaultValue:null,description:"",name:"index",required:!0,type:{name:"number"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/grid/Cell/index.tsx#GridCell"]={docgenInfo:GridCell.__docgenInfo,name:"GridCell",path:"src/grid/Cell/index.tsx#GridCell"})}catch(__react_docgen_typescript_loader_error){}function cov_12ivzobf6(){var path="/home/runner/work/konva-timeline/konva-timeline/src/grid/CellGroup/index.tsx",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"eb8f192287b61bbba6d9d425982a6eaa49418fea"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/konva-timeline/konva-timeline/src/grid/CellGroup/index.tsx",statementMap:{0:{start:{line:14,column:22},end:{line:44,column:1}},1:{start:{line:20,column:6},end:{line:20,column:26}},2:{start:{line:22,column:20},end:{line:22,column:95}},3:{start:{line:22,column:34},end:{line:22,column:73}},4:{start:{line:24,column:17},end:{line:24,column:59}},5:{start:{line:24,column:31},end:{line:24,column:48}},6:{start:{line:26,column:31},end:{line:29,column:3}},7:{start:{line:27,column:10},end:{line:27,column:72}},8:{start:{line:31,column:28},end:{line:31,column:114}},9:{start:{line:31,column:42},end:{line:31,column:76}},10:{start:{line:33,column:15},end:{line:33,column:83}},11:{start:{line:33,column:29},end:{line:33,column:54}},12:{start:{line:35,column:15},end:{line:35,column:58}},13:{start:{line:35,column:29},end:{line:35,column:44}},14:{start:{line:37,column:2},end:{line:43,column:4}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:14,column:22},end:{line:14,column:23}},loc:{start:{line:14,column:73},end:{line:44,column:1}},line:14},1:{name:"(anonymous_1)",decl:{start:{line:22,column:28},end:{line:22,column:29}},loc:{start:{line:22,column:34},end:{line:22,column:73}},line:22},2:{name:"(anonymous_2)",decl:{start:{line:24,column:25},end:{line:24,column:26}},loc:{start:{line:24,column:31},end:{line:24,column:48}},line:24},3:{name:"(anonymous_3)",decl:{start:{line:27,column:4},end:{line:27,column:5}},loc:{start:{line:27,column:10},end:{line:27,column:72}},line:27},4:{name:"(anonymous_4)",decl:{start:{line:31,column:36},end:{line:31,column:37}},loc:{start:{line:31,column:42},end:{line:31,column:76}},line:31},5:{name:"(anonymous_5)",decl:{start:{line:33,column:23},end:{line:33,column:24}},loc:{start:{line:33,column:29},end:{line:33,column:54}},line:33},6:{name:"(anonymous_6)",decl:{start:{line:35,column:23},end:{line:35,column:24}},loc:{start:{line:35,column:29},end:{line:35,column:44}},line:35}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"eb8f192287b61bbba6d9d425982a6eaa49418fea"});var actualCoverage=coverage[path];return cov_12ivzobf6=function(){return actualCoverage},actualCoverage}cov_12ivzobf6(),cov_12ivzobf6().s[0]++;const GridCellGroup=({column,height,index})=>{cov_12ivzobf6().f[0]++;const{columnWidth,resolution:{sizeInUnits,unit,unitAbove},rowHeight,theme:{color:themeColor}}=(cov_12ivzobf6().s[1]++,(0,TimelineContext.i)()),cellLabel=(cov_12ivzobf6().s[2]++,(0,react.useMemo)((()=>(cov_12ivzobf6().f[1]++,cov_12ivzobf6().s[3]++,(0,time_resolution.A7)(column,unitAbove))),[column,unitAbove])),points=(cov_12ivzobf6().s[4]++,(0,react.useMemo)((()=>(cov_12ivzobf6().f[2]++,cov_12ivzobf6().s[5]++,[0,0,0,height])),[height])),unitAboveInUnitBelow=(cov_12ivzobf6().s[6]++,(0,react.useMemo)((()=>(cov_12ivzobf6().f[3]++,cov_12ivzobf6().s[7]++,luxon.nL.fromObject({[unitAbove]:1}).as(unit)/sizeInUnits)),[sizeInUnits,unit,unitAbove])),unitAboveSpanInPx=(cov_12ivzobf6().s[8]++,(0,react.useMemo)((()=>(cov_12ivzobf6().f[4]++,cov_12ivzobf6().s[9]++,unitAboveInUnitBelow*columnWidth)),[columnWidth,unitAboveInUnitBelow])),xPos=(cov_12ivzobf6().s[10]++,(0,react.useMemo)((()=>(cov_12ivzobf6().f[5]++,cov_12ivzobf6().s[11]++,index*unitAboveSpanInPx)),[index,unitAboveSpanInPx])),yPos=(cov_12ivzobf6().s[12]++,(0,react.useMemo)((()=>(cov_12ivzobf6().f[6]++,cov_12ivzobf6().s[13]++,.3*rowHeight)),[rowHeight]));return cov_12ivzobf6().s[14]++,(0,jsx_runtime.jsxs)(_konva.LE,{children:[(0,jsx_runtime.jsx)(_konva.vL,{x:xPos,y:0,points,stroke:"gray",strokeWidth:1}),(0,jsx_runtime.jsx)(_konva.oJ,{fill:"transparent",x:xPos,y:yPos-10,height:15,width:unitAboveSpanInPx}),(0,jsx_runtime.jsx)(_konva.V,{align:"center",fill:themeColor,x:xPos,y:yPos-8,text:cellLabel,width:unitAboveSpanInPx})]},`timeslot-${index}`)};GridCellGroup.displayName="GridCellGroup";const grid_CellGroup=GridCellGroup;try{CellGroup.displayName="CellGroup",CellGroup.__docgenInfo={description:"",displayName:"CellGroup",props:{column:{defaultValue:null,description:"",name:"column",required:!0,type:{name:"Interval"}},height:{defaultValue:null,description:"",name:"height",required:!0,type:{name:"number"}},index:{defaultValue:null,description:"",name:"index",required:!0,type:{name:"number"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/grid/CellGroup/index.tsx#CellGroup"]={docgenInfo:CellGroup.__docgenInfo,name:"CellGroup",path:"src/grid/CellGroup/index.tsx#CellGroup"})}catch(__react_docgen_typescript_loader_error){}function cov_2d7dtjickq(){var path="/home/runner/work/konva-timeline/konva-timeline/src/grid/Cells/index.tsx",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"b35e5ad2e56b562f2111f62bca30eb20f826e5de"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/konva-timeline/konva-timeline/src/grid/Cells/index.tsx",statementMap:{0:{start:{line:12,column:18},end:{line:25,column:1}},1:{start:{line:13,column:49},end:{line:13,column:69}},2:{start:{line:15,column:2},end:{line:24,column:4}},3:{start:{line:18,column:8},end:{line:18,column:99}},4:{start:{line:21,column:8},end:{line:21,column:88}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:12,column:18},end:{line:12,column:19}},loc:{start:{line:12,column:50},end:{line:25,column:1}},line:12},1:{name:"(anonymous_1)",decl:{start:{line:17,column:27},end:{line:17,column:28}},loc:{start:{line:18,column:8},end:{line:18,column:99}},line:18},2:{name:"(anonymous_2)",decl:{start:{line:20,column:29},end:{line:20,column:30}},loc:{start:{line:21,column:8},end:{line:21,column:88}},line:21}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0},f:{0:0,1:0,2:0},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"b35e5ad2e56b562f2111f62bca30eb20f826e5de"});var actualCoverage=coverage[path];return cov_2d7dtjickq=function(){return actualCoverage},actualCoverage}cov_2d7dtjickq(),cov_2d7dtjickq().s[0]++;const GridCells=({height})=>{cov_2d7dtjickq().f[0]++;const{aboveTimeBlocks,visibleTimeBlocks}=(cov_2d7dtjickq().s[1]++,(0,TimelineContext.i)());return cov_2d7dtjickq().s[2]++,(0,jsx_runtime.jsxs)(_konva.LE,{children:[aboveTimeBlocks.map(((column,index)=>(cov_2d7dtjickq().f[1]++,cov_2d7dtjickq().s[3]++,(0,jsx_runtime.jsx)(grid_CellGroup,{column,height,index},`cell-group-${index}`)))),visibleTimeBlocks.map(((column,index)=>(cov_2d7dtjickq().f[2]++,cov_2d7dtjickq().s[4]++,(0,jsx_runtime.jsx)(Cell,{column,height,index},`cell-${index}`))))]})};GridCells.displayName="GridCells";const Cells=(0,react.memo)(GridCells);try{GridCells.displayName="GridCells",GridCells.__docgenInfo={description:"",displayName:"GridCells",props:{height:{defaultValue:null,description:"",name:"height",required:!0,type:{name:"number"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/grid/Cells/index.tsx#GridCells"]={docgenInfo:GridCells.__docgenInfo,name:"GridCells",path:"src/grid/Cells/index.tsx#GridCells"})}catch(__react_docgen_typescript_loader_error){}function cov_2fpcw3lv4z(){var path="/home/runner/work/konva-timeline/konva-timeline/src/grid/Row/index.tsx",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"3b8b53e36071b595447db422416f37d2e2d0f17f"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/konva-timeline/konva-timeline/src/grid/Row/index.tsx",statementMap:{0:{start:{line:10,column:16},end:{line:20,column:1}},1:{start:{line:15,column:6},end:{line:15,column:26}},2:{start:{line:17,column:15},end:{line:17,column:73}},3:{start:{line:17,column:29},end:{line:17,column:52}},4:{start:{line:19,column:2},end:{line:19,column:95}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:10,column:16},end:{line:10,column:17}},loc:{start:{line:10,column:45},end:{line:20,column:1}},line:10},1:{name:"(anonymous_1)",decl:{start:{line:17,column:23},end:{line:17,column:24}},loc:{start:{line:17,column:29},end:{line:17,column:52}},line:17}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0},f:{0:0,1:0},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"3b8b53e36071b595447db422416f37d2e2d0f17f"});var actualCoverage=coverage[path];return cov_2fpcw3lv4z=function(){return actualCoverage},actualCoverage}cov_2fpcw3lv4z(),cov_2fpcw3lv4z().s[0]++;const GridRow=({index})=>{cov_2fpcw3lv4z().f[0]++;const{drawRange:{start:drawRangeStart,end:drawRangeEnd},rowHeight,theme:{color:themeColor}}=(cov_2fpcw3lv4z().s[1]++,(0,TimelineContext.i)()),yPos=(cov_2fpcw3lv4z().s[2]++,(0,react.useMemo)((()=>(cov_2fpcw3lv4z().f[1]++,cov_2fpcw3lv4z().s[3]++,rowHeight*(index+1))),[index,rowHeight]));return cov_2fpcw3lv4z().s[4]++,(0,jsx_runtime.jsx)(_konva.vL,{points:[drawRangeStart,yPos,drawRangeEnd,yPos],stroke:themeColor})};GridRow.displayName="GridRow";const Row=(0,react.memo)(GridRow);try{GridRow.displayName="GridRow",GridRow.__docgenInfo={description:"",displayName:"GridRow",props:{index:{defaultValue:null,description:"",name:"index",required:!0,type:{name:"number"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/grid/Row/index.tsx#GridRow"]={docgenInfo:GridRow.__docgenInfo,name:"GridRow",path:"src/grid/Row/index.tsx#GridRow"})}catch(__react_docgen_typescript_loader_error){}function cov_1xnfipk9jc(){var path="/home/runner/work/konva-timeline/konva-timeline/src/grid/Rows/index.tsx",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"e00fb1afd5795118d161ab4e33a47c4ae19e0619"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/konva-timeline/konva-timeline/src/grid/Rows/index.tsx",statementMap:{0:{start:{line:7,column:17},end:{line:17,column:1}},1:{start:{line:8,column:24},end:{line:8,column:44}},2:{start:{line:10,column:2},end:{line:16,column:4}},3:{start:{line:13,column:8},end:{line:13,column:61}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:7,column:17},end:{line:7,column:18}},loc:{start:{line:7,column:23},end:{line:17,column:1}},line:7},1:{name:"(anonymous_1)",decl:{start:{line:12,column:21},end:{line:12,column:22}},loc:{start:{line:13,column:8},end:{line:13,column:61}},line:13}},branchMap:{},s:{0:0,1:0,2:0,3:0},f:{0:0,1:0},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"e00fb1afd5795118d161ab4e33a47c4ae19e0619"});var actualCoverage=coverage[path];return cov_1xnfipk9jc=function(){return actualCoverage},actualCoverage}cov_1xnfipk9jc(),cov_1xnfipk9jc().s[0]++;const GridRows=()=>{cov_1xnfipk9jc().f[0]++;const{resources}=(cov_1xnfipk9jc().s[1]++,(0,TimelineContext.i)());return cov_1xnfipk9jc().s[2]++,(0,jsx_runtime.jsx)(_konva.LE,{children:resources.map((({id},index)=>(cov_1xnfipk9jc().f[1]++,cov_1xnfipk9jc().s[3]++,(0,jsx_runtime.jsx)(Row,{index},`grid-row-line-${id}`))))})};GridRows.displayName="GridRows";const Rows=(0,react.memo)(GridRows);function cov_2q0pdsm8sy(){var path="/home/runner/work/konva-timeline/konva-timeline/src/grid/Layer/index.tsx",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"fb8ee0d0677b339274234371d1d1610fd88563e3"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/konva-timeline/konva-timeline/src/grid/Layer/index.tsx",statementMap:{0:{start:{line:11,column:38},end:{line:18,column:1}},1:{start:{line:12,column:2},end:{line:17,column:4}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:11,column:38},end:{line:11,column:39}},loc:{start:{line:11,column:54},end:{line:18,column:1}},line:11}},branchMap:{},s:{0:0,1:0},f:{0:0},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"fb8ee0d0677b339274234371d1d1610fd88563e3"});var actualCoverage=coverage[path];return cov_2q0pdsm8sy=function(){return actualCoverage},actualCoverage}cov_2q0pdsm8sy(),cov_2q0pdsm8sy().s[0]++;const GridLayer=({height})=>(cov_2q0pdsm8sy().f[0]++,cov_2q0pdsm8sy().s[1]++,(0,jsx_runtime.jsxs)(_konva.Rj,{children:[(0,jsx_runtime.jsx)(Rows,{}),(0,jsx_runtime.jsx)(Cells,{height})]}));GridLayer.displayName="GridLayer";const grid_Layer=(0,react.memo)(GridLayer);try{Layer.displayName="Layer",Layer.__docgenInfo={description:"",displayName:"Layer",props:{height:{defaultValue:null,description:"",name:"height",required:!0,type:{name:"number"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/grid/Layer/index.tsx#Layer"]={docgenInfo:Layer.__docgenInfo,name:"Layer",path:"src/grid/Layer/index.tsx#Layer"})}catch(__react_docgen_typescript_loader_error){}var components_Layer=__webpack_require__("./src/resources/components/Layer/index.tsx"),resources=__webpack_require__("./src/resources/utils/resources.ts"),tasks_components_Layer=__webpack_require__("./src/tasks/components/Layer/index.tsx"),logger=__webpack_require__("./src/utils/logger.ts");function cov_xto4rxazl(){var path="/home/runner/work/konva-timeline/konva-timeline/src/timeline/index.tsx",global=new Function("return this")(),gcv="__coverage__",coverageData={path:"/home/runner/work/konva-timeline/konva-timeline/src/timeline/index.tsx",statementMap:{0:{start:{line:22,column:38},end:{line:22,column:61}},1:{start:{line:24,column:36},end:{line:191,column:1}},2:{start:{line:35,column:6},end:{line:35,column:26}},3:{start:{line:37,column:44},end:{line:37,column:55}},4:{start:{line:38,column:26},end:{line:38,column:65}},5:{start:{line:39,column:19},end:{line:39,column:44}},6:{start:{line:40,column:18},end:{line:40,column:46}},7:{start:{line:42,column:40},end:{line:42,column:79}},8:{start:{line:44,column:25},end:{line:54,column:8}},9:{start:{line:45,column:4},end:{line:47,column:5}},10:{start:{line:46,column:6},end:{line:46,column:13}},11:{start:{line:49,column:4},end:{line:49,column:47}},12:{start:{line:50,column:84},end:{line:50,column:99}},13:{start:{line:51,column:26},end:{line:51,column:78}},14:{start:{line:52,column:4},end:{line:52,column:31}},15:{start:{line:53,column:4},end:{line:53,column:36}},16:{start:{line:56,column:24},end:{line:70,column:32}},17:{start:{line:57,column:4},end:{line:59,column:5}},18:{start:{line:58,column:6},end:{line:58,column:13}},19:{start:{line:61,column:4},end:{line:61,column:47}},20:{start:{line:62,column:27},end:{line:62,column:42}},21:{start:{line:63,column:4},end:{line:63,column:83}},22:{start:{line:64,column:4},end:{line:64,column:36}},23:{start:{line:66,column:18},end:{line:66,column:28}},24:{start:{line:67,column:16},end:{line:67,column:39}},25:{start:{line:68,column:4},end:{line:68,column:33}},26:{start:{line:69,column:4},end:{line:69,column:25}},27:{start:{line:72,column:2},end:{line:80,column:23}},28:{start:{line:73,column:4},end:{line:73,column:75}},29:{start:{line:74,column:4},end:{line:74,column:54}},30:{start:{line:75,column:4},end:{line:75,column:21}},31:{start:{line:77,column:4},end:{line:79,column:6}},32:{start:{line:78,column:6},end:{line:78,column:59}},33:{start:{line:82,column:2},end:{line:90,column:22}},34:{start:{line:83,column:4},end:{line:85,column:5}},35:{start:{line:84,column:6},end:{line:84,column:13}},36:{start:{line:87,column:4},end:{line:87,column:75}},37:{start:{line:88,column:4},end:{line:88,column:62}},38:{start:{line:89,column:4},end:{line:89,column:20}},39:{start:{line:92,column:2},end:{line:95,column:38}},40:{start:{line:93,column:4},end:{line:93,column:64}},41:{start:{line:94,column:4},end:{line:94,column:21}},42:{start:{line:97,column:2},end:{line:105,column:88}},43:{start:{line:98,column:4},end:{line:100,column:5}},44:{start:{line:99,column:6},end:{line:99,column:13}},45:{start:{line:102,column:22},end:{line:102,column:58}},46:{start:{line:103,column:30},end:{line:103,column:81}},47:{start:{line:104,column:4},end:{line:104,column:99}},48:{start:{line:107,column:28},end:{line:107,column:101}},49:{start:{line:107,column:42},end:{line:107,column:73}},50:{start:{line:111,column:22},end:{line:111,column:44}},51:{start:{line:113,column:21},end:{line:113,column:85}},52:{start:{line:113,column:35},end:{line:113,column:61}},53:{start:{line:115,column:30},end:{line:120,column:3}},54:{start:{line:116,column:26},end:{line:118,column:5}},55:{start:{line:122,column:31},end:{line:131,column:3}},56:{start:{line:123,column:26},end:{line:129,column:5}},57:{start:{line:133,column:37},end:{line:147,column:3}},58:{start:{line:134,column:26},end:{line:145,column:5}},59:{start:{line:149,column:32},end:{line:156,column:3}},60:{start:{line:150,column:26},end:{line:154,column:5}},61:{start:{line:158,column:26},end:{line:158,column:105}},62:{start:{line:158,column:41},end:{line:158,column:86}},63:{start:{line:160,column:27},end:{line:170,column:3}},64:{start:{line:161,column:26},end:{line:168,column:5}},65:{start:{line:172,column:2},end:{line:190,column:4}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:24,column:36},end:{line:24,column:37}},loc:{start:{line:24,column:42},end:{line:191,column:1}},line:24},1:{name:"(anonymous_1)",decl:{start:{line:44,column:37},end:{line:44,column:38}},loc:{start:{line:44,column:43},end:{line:54,column:3}},line:44},2:{name:"(anonymous_2)",decl:{start:{line:56,column:36},end:{line:56,column:37}},loc:{start:{line:56,column:42},end:{line:70,column:3}},line:56},3:{name:"(anonymous_3)",decl:{start:{line:72,column:12},end:{line:72,column:13}},loc:{start:{line:72,column:18},end:{line:80,column:3}},line:72},4:{name:"(anonymous_4)",decl:{start:{line:77,column:11},end:{line:77,column:12}},loc:{start:{line:77,column:17},end:{line:79,column:5}},line:77},5:{name:"(anonymous_5)",decl:{start:{line:82,column:12},end:{line:82,column:13}},loc:{start:{line:82,column:18},end:{line:90,column:3}},line:82},6:{name:"(anonymous_6)",decl:{start:{line:92,column:12},end:{line:92,column:13}},loc:{start:{line:92,column:18},end:{line:95,column:3}},line:92},7:{name:"(anonymous_7)",decl:{start:{line:97,column:12},end:{line:97,column:13}},loc:{start:{line:97,column:18},end:{line:105,column:3}},line:97},8:{name:"(anonymous_8)",decl:{start:{line:107,column:36},end:{line:107,column:37}},loc:{start:{line:107,column:42},end:{line:107,column:73}},line:107},9:{name:"(anonymous_9)",decl:{start:{line:113,column:29},end:{line:113,column:30}},loc:{start:{line:113,column:35},end:{line:113,column:61}},line:113},10:{name:"(anonymous_10)",decl:{start:{line:116,column:4},end:{line:116,column:5}},loc:{start:{line:116,column:26},end:{line:118,column:5}},line:116},11:{name:"(anonymous_11)",decl:{start:{line:123,column:4},end:{line:123,column:5}},loc:{start:{line:123,column:26},end:{line:129,column:5}},line:123},12:{name:"(anonymous_12)",decl:{start:{line:134,column:4},end:{line:134,column:5}},loc:{start:{line:134,column:26},end:{line:145,column:5}},line:134},13:{name:"(anonymous_13)",decl:{start:{line:150,column:4},end:{line:150,column:5}},loc:{start:{line:150,column:26},end:{line:154,column:5}},line:150},14:{name:"(anonymous_14)",decl:{start:{line:158,column:34},end:{line:158,column:35}},loc:{start:{line:158,column:41},end:{line:158,column:86}},line:158},15:{name:"(anonymous_15)",decl:{start:{line:161,column:4},end:{line:161,column:5}},loc:{start:{line:161,column:26},end:{line:168,column:5}},line:161}},branchMap:{0:{loc:{start:{line:45,column:4},end:{line:47,column:5}},type:"if",locations:[{start:{line:45,column:4},end:{line:47,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:45},1:{loc:{start:{line:57,column:4},end:{line:59,column:5}},type:"if",locations:[{start:{line:57,column:4},end:{line:59,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:57},2:{loc:{start:{line:57,column:8},end:{line:57,column:45}},type:"binary-expr",locations:[{start:{line:57,column:8},end:{line:57,column:24}},{start:{line:57,column:28},end:{line:57,column:45}}],line:57},3:{loc:{start:{line:83,column:4},end:{line:85,column:5}},type:"if",locations:[{start:{line:83,column:4},end:{line:85,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:83},4:{loc:{start:{line:98,column:4},end:{line:100,column:5}},type:"if",locations:[{start:{line:98,column:4},end:{line:100,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:98},5:{loc:{start:{line:98,column:8},end:{line:98,column:44}},type:"binary-expr",locations:[{start:{line:98,column:8},end:{line:98,column:24}},{start:{line:98,column:28},end:{line:98,column:44}}],line:98},6:{loc:{start:{line:158,column:41},end:{line:158,column:86}},type:"cond-expr",locations:[{start:{line:158,column:57},end:{line:158,column:58}},{start:{line:158,column:61},end:{line:158,column:86}}],line:158},7:{loc:{start:{line:174,column:7},end:{line:180,column:7}},type:"binary-expr",locations:[{start:{line:174,column:7},end:{line:174,column:21}},{start:{line:175,column:8},end:{line:179,column:14}}],line:174}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0,39:0,40:0,41:0,42:0,43:0,44:0,45:0,46:0,47:0,48:0,49:0,50:0,51:0,52:0,53:0,54:0,55:0,56:0,57:0,58:0,59:0,60:0,61:0,62:0,63:0,64:0,65:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0],7:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"9501d890463d29d87c5e2135e1730b609db5f976"},coverage=global[gcv]||(global[gcv]={});coverage[path]&&"9501d890463d29d87c5e2135e1730b609db5f976"===coverage[path].hash||(coverage[path]=coverageData);var actualCoverage=coverage[path];return cov_xto4rxazl=function(){return actualCoverage},actualCoverage}cov_xto4rxazl();const DEFAULT_STAGE_SIZE=(cov_xto4rxazl().s[0]++,{height:0,width:0});cov_xto4rxazl().s[1]++;const Timeline=()=>{cov_xto4rxazl().f[0]++;const{hideResources,initialDateTime,interval,columnWidth,resourcesContentHeight,resolution,setDrawRange,theme:{color:themeColor},timeBlocks}=(cov_xto4rxazl().s[2]++,(0,TimelineContext.i)()),[scrollbarSize,setScrollbarSize]=(cov_xto4rxazl().s[3]++,(0,react.useState)(0)),[size,setSize]=(cov_xto4rxazl().s[4]++,(0,react.useState)(DEFAULT_STAGE_SIZE)),stageRef=(cov_xto4rxazl().s[5]++,(0,react.useRef)(null)),wrapper=(cov_xto4rxazl().s[6]++,(0,react.useRef)(null)),[taskTooltip,setTaskTooltip]=(cov_xto4rxazl().s[7]++,(0,react.useState)(null)),onWindowResize=(cov_xto4rxazl().s[8]++,(0,react.useCallback)((()=>{if(cov_xto4rxazl().f[1]++,cov_xto4rxazl().s[9]++,!wrapper.current)return cov_xto4rxazl().b[0][0]++,void cov_xto4rxazl().s[10]++;cov_xto4rxazl().b[0][1]++,cov_xto4rxazl().s[11]++,(0,logger.o7)("Timeline","Resizing window...");const{clientHeight:height,clientWidth:width,offsetHeight,offsetWidth}=(cov_xto4rxazl().s[12]++,wrapper.current),scrollbarSize=(cov_xto4rxazl().s[13]++,Math.max(offsetHeight-height,offsetWidth-width));cov_xto4rxazl().s[14]++,setSize({height,width}),cov_xto4rxazl().s[15]++,setScrollbarSize(scrollbarSize)}),[])),onStageScroll=(cov_xto4rxazl().s[16]++,(0,react.useCallback)((()=>{if(cov_xto4rxazl().f[2]++,cov_xto4rxazl().s[17]++,cov_xto4rxazl().b[2][0]++,!wrapper.current||(cov_xto4rxazl().b[2][1]++,!stageRef.current))return cov_xto4rxazl().b[1][0]++,void cov_xto4rxazl().s[18]++;cov_xto4rxazl().b[1][1]++,cov_xto4rxazl().s[19]++,(0,logger.o7)("Timeline","Scrolling stage...");const{scrollLeft}=(cov_xto4rxazl().s[20]++,wrapper.current);cov_xto4rxazl().s[21]++,stageRef.current.container().style.transform=`translate(${scrollLeft}px, 0)`,cov_xto4rxazl().s[22]++,stageRef.current.x(-scrollLeft);const start=(cov_xto4rxazl().s[23]++,scrollLeft),end=(cov_xto4rxazl().s[24]++,scrollLeft+size.width);cov_xto4rxazl().s[25]++,setDrawRange({start,end}),cov_xto4rxazl().s[26]++,setTaskTooltip(null)}),[setDrawRange,size.width]));cov_xto4rxazl().s[27]++,(0,react.useEffect)((()=>(cov_xto4rxazl().f[3]++,cov_xto4rxazl().s[28]++,(0,logger.o7)("Timeline","Initial applying of onResize event listener..."),cov_xto4rxazl().s[29]++,window.addEventListener("resize",onWindowResize),cov_xto4rxazl().s[30]++,onWindowResize(),cov_xto4rxazl().s[31]++,()=>{cov_xto4rxazl().f[4]++,cov_xto4rxazl().s[32]++,window.removeEventListener("resize",onWindowResize)})),[onWindowResize]),cov_xto4rxazl().s[33]++,(0,react.useEffect)((()=>{if(cov_xto4rxazl().f[5]++,cov_xto4rxazl().s[34]++,!wrapper.current)return cov_xto4rxazl().b[3][0]++,void cov_xto4rxazl().s[35]++;cov_xto4rxazl().b[3][1]++,cov_xto4rxazl().s[36]++,(0,logger.o7)("Timeline","Initial applying of onScroll event listener..."),cov_xto4rxazl().s[37]++,wrapper.current.addEventListener("scroll",onStageScroll),cov_xto4rxazl().s[38]++,onStageScroll()}),[onStageScroll]),cov_xto4rxazl().s[39]++,(0,react.useEffect)((()=>{cov_xto4rxazl().f[6]++,cov_xto4rxazl().s[40]++,(0,logger.o7)("Timeline","Applying effects of size changes..."),cov_xto4rxazl().s[41]++,onWindowResize()}),[hideResources,onWindowResize]),cov_xto4rxazl().s[42]++,(0,react.useEffect)((()=>{if(cov_xto4rxazl().f[7]++,cov_xto4rxazl().s[43]++,cov_xto4rxazl().b[5][0]++,!wrapper.current||(cov_xto4rxazl().b[5][1]++,!initialDateTime))return cov_xto4rxazl().b[4][0]++,void cov_xto4rxazl().s[44]++;cov_xto4rxazl().b[4][1]++;const timeStart=(cov_xto4rxazl().s[45]++,luxon.ou.fromMillis(initialDateTime)),startOffsetInUnit=(cov_xto4rxazl().s[46]++,timeStart.diff(interval.start).as(resolution.unit));cov_xto4rxazl().s[47]++,wrapper.current.scrollTo({left:startOffsetInUnit*columnWidth/resolution.sizeInUnits})}),[columnWidth,initialDateTime,interval,resolution.sizeInUnits,resolution.unit]);const fullTimelineWidth=(cov_xto4rxazl().s[48]++,(0,react.useMemo)((()=>(cov_xto4rxazl().f[8]++,cov_xto4rxazl().s[49]++,columnWidth*timeBlocks.length)),[columnWidth,timeBlocks])),stageHeight=(cov_xto4rxazl().s[50]++,resourcesContentHeight),stageWidth=(cov_xto4rxazl().s[51]++,(0,react.useMemo)((()=>(cov_xto4rxazl().f[9]++,cov_xto4rxazl().s[52]++,scrollbarSize+size.width)),[scrollbarSize,size])),timelineCommonStyle=(cov_xto4rxazl().s[53]++,(0,react.useMemo)((()=>(cov_xto4rxazl().f[10]++,cov_xto4rxazl().s[54]++,{minHeight:resourcesContentHeight})),[resourcesContentHeight])),timelineWrapperStyle=(cov_xto4rxazl().s[55]++,(0,react.useMemo)((()=>(cov_xto4rxazl().f[11]++,cov_xto4rxazl().s[56]++,{...timelineCommonStyle,border:`1px solid ${themeColor}`,display:"inline-block",position:"relative",width:"100%"})),[themeColor,timelineCommonStyle])),resourcesStageWrapperStyle=(cov_xto4rxazl().s[57]++,(0,react.useMemo)((()=>(cov_xto4rxazl().f[12]++,cov_xto4rxazl().s[58]++,{...timelineCommonStyle,backgroundColor:"transparent",boxShadow:"4px 4px 32px 1px #0000000f",borderRight:`1px solid ${themeColor}`,left:0,paddingBottom:scrollbarSize,position:"sticky",top:0,width:resources.Oc,zIndex:1})),[scrollbarSize,themeColor,timelineCommonStyle])),gridStageWrapperStyle=(cov_xto4rxazl().s[59]++,(0,react.useMemo)((()=>(cov_xto4rxazl().f[13]++,cov_xto4rxazl().s[60]++,{...timelineCommonStyle,overflow:"hidden",width:fullTimelineWidth})),[fullTimelineWidth,timelineCommonStyle])),resourcesOffset=(cov_xto4rxazl().s[61]++,(0,react.useMemo)((()=>(cov_xto4rxazl().f[14]++,cov_xto4rxazl().s[62]++,hideResources?(cov_xto4rxazl().b[6][0]++,0):(cov_xto4rxazl().b[6][1]++,resources.Oc+1))),[hideResources])),gridWrapperStyle=(cov_xto4rxazl().s[63]++,(0,react.useMemo)((()=>(cov_xto4rxazl().f[15]++,cov_xto4rxazl().s[64]++,{...timelineCommonStyle,left:resourcesOffset,overflow:"auto",position:"absolute",top:0,width:`calc(100% - ${resourcesOffset}px)`})),[resourcesOffset,timelineCommonStyle]));return cov_xto4rxazl().s[65]++,(0,jsx_runtime.jsxs)("div",{style:timelineWrapperStyle,children:[(cov_xto4rxazl().b[7][0]++,!hideResources&&(cov_xto4rxazl().b[7][1]++,(0,jsx_runtime.jsx)("div",{style:resourcesStageWrapperStyle,children:(0,jsx_runtime.jsx)(ReactKonva.Hf,{height:stageHeight,width:resources.Oc,children:(0,jsx_runtime.jsx)(components_Layer.Z,{})})}))),(0,jsx_runtime.jsx)("div",{ref:wrapper,style:gridWrapperStyle,children:(0,jsx_runtime.jsx)("div",{style:gridStageWrapperStyle,children:(0,jsx_runtime.jsxs)(ReactKonva.Hf,{ref:stageRef,height:stageHeight,width:stageWidth,children:[(0,jsx_runtime.jsx)(grid_Layer,{height:stageHeight}),(0,jsx_runtime.jsx)(tasks_components_Layer.Z,{taskTooltip,setTaskTooltip})]})})})]})};Timeline.displayName="Timeline";const src_timeline=Timeline;try{timeline.displayName="timeline",timeline.__docgenInfo={description:"",displayName:"timeline",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/timeline/index.tsx#timeline"]={docgenInfo:timeline.__docgenInfo,name:"timeline",path:"src/timeline/index.tsx#timeline"})}catch(__react_docgen_typescript_loader_error){}function cov_17h00w8kph(){var path="/home/runner/work/konva-timeline/konva-timeline/src/KonvaTimeline/index.tsx",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"be13a46095d54fdb961668fd92119424760c2348"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/konva-timeline/konva-timeline/src/KonvaTimeline/index.tsx",statementMap:{0:{start:{line:6,column:49},end:{line:12,column:1}},1:{start:{line:7,column:2},end:{line:11,column:4}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:6,column:49},end:{line:6,column:50}},loc:{start:{line:6,column:60},end:{line:12,column:1}},line:6}},branchMap:{},s:{0:0,1:0},f:{0:0},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"be13a46095d54fdb961668fd92119424760c2348"});var actualCoverage=coverage[path];return cov_17h00w8kph=function(){return actualCoverage},actualCoverage}cov_17h00w8kph(),cov_17h00w8kph().s[0]++;const KonvaTimeline=props=>(cov_17h00w8kph().f[0]++,cov_17h00w8kph().s[1]++,(0,jsx_runtime.jsx)(TimelineContext.w,{...props,children:(0,jsx_runtime.jsx)(src_timeline,{})}));KonvaTimeline.displayName="KonvaTimeline";const src_KonvaTimeline=KonvaTimeline;try{KonvaTimeline.displayName="KonvaTimeline",KonvaTimeline.__docgenInfo={description:"",displayName:"KonvaTimeline",props:{columnWidth:{defaultValue:null,description:"Custom column width (defaults to 60px)",name:"columnWidth",required:!1,type:{name:"number"}},displayTasksLabel:{defaultValue:null,description:"Enables tasks label display",name:"displayTasksLabel",required:!1,type:{name:"boolean"}},dragResolution:{defaultValue:null,description:"Drag and drop resolution (if not passed, defaults to resolution)",name:"dragResolution",required:!1,type:{name:"enum",value:[{value:'"1min"'},{value:'"5min"'},{value:'"10min"'},{value:'"15min"'},{value:'"30min"'},{value:'"1hrs"'},{value:'"2hrs"'},{value:'"6hrs"'},{value:'"12hrs"'},{value:'"1day"'},{value:'"1week"'},{value:'"2weeks"'}]}},hideResources:{defaultValue:null,description:"Flag to hide resource column (defaults to false)",name:"hideResources",required:!1,type:{name:"boolean"}},resolution:{defaultValue:null,description:"Resolution to display data in konva-timeline (defaults to 1min)",name:"resolution",required:!1,type:{name:"enum",value:[{value:'"1min"'},{value:'"5min"'},{value:'"10min"'},{value:'"15min"'},{value:'"30min"'},{value:'"1hrs"'},{value:'"2hrs"'},{value:'"6hrs"'},{value:'"12hrs"'},{value:'"1day"'},{value:'"1week"'},{value:'"2weeks"'}]}},rowHeight:{defaultValue:null,description:"Custom row height (defaults to 50px)",name:"rowHeight",required:!1,type:{name:"number"}},tasks:{defaultValue:null,description:"List of tasks to be displayed (defaults to [])",name:"tasks",required:!1,type:{name:"TaskData[]"}},range:{defaultValue:null,description:"Time range to be displayed",name:"range",required:!0,type:{name:"TimeRange"}},resources:{defaultValue:null,description:"List of resources to be displayed",name:"resources",required:!0,type:{name:"Resource[]"}},debug:{defaultValue:null,description:"Enables debug logging in browser console",name:"debug",required:!1,type:{name:"boolean"}},enableDrag:{defaultValue:null,description:"Enables drag&drop operation on tasks",name:"enableDrag",required:!1,type:{name:"boolean"}},enableResize:{defaultValue:null,description:"Enables resize operation on tasks",name:"enableResize",required:!1,type:{name:"boolean"}},headerLabel:{defaultValue:null,description:"Label to display in header column",name:"headerLabel",required:!1,type:{name:"string"}},initialDateTime:{defaultValue:null,description:"Initial date time to scroll to",name:"initialDateTime",required:!1,type:{name:"string | number"}},onErrors:{defaultValue:null,description:"Callback invoked when errors are thrown",name:"onErrors",required:!1,type:{name:"((errors: KonvaTimelineError[]) => void)"}},onTaskClick:{defaultValue:null,description:"Event handler for task click",name:"onTaskClick",required:!1,type:{name:"((task: TaskData) => void)"}},onTaskChange:{defaultValue:null,description:"Event handler for task change event (drag and resize)",name:"onTaskChange",required:!1,type:{name:"((task: TaskData) => void)"}},timezone:{defaultValue:null,description:"Timezone used for display (defaults to 'system')",name:"timezone",required:!1,type:{name:"string"}},theme:{defaultValue:null,description:"Theme color in use",name:"theme",required:!1,type:{name:"enum",value:[{value:'"dark"'},{value:'"light"'}]}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/KonvaTimeline/index.tsx#KonvaTimeline"]={docgenInfo:KonvaTimeline.__docgenInfo,name:"KonvaTimeline",path:"src/KonvaTimeline/index.tsx#KonvaTimeline"})}catch(__react_docgen_typescript_loader_error){}},"./src/resources/components/Header/index.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{$:()=>ResourceHeaderDocs,Z:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_konva__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/@konva/index.tsx"),_timeline_TimelineContext__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/timeline/TimelineContext.tsx"),_utils_dimensions__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/utils/dimensions.ts"),_utils_resources__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./src/resources/utils/resources.ts"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/react/jsx-runtime.js");function cov_1gmh39x9ii(){var path="/home/runner/work/konva-timeline/konva-timeline/src/resources/components/Header/index.tsx",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"10718df01bc4be1e06e3ab16c3d02dd7181ba30a"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/konva-timeline/konva-timeline/src/resources/components/Header/index.tsx",statementMap:{0:{start:{line:26,column:23},end:{line:49,column:1}},1:{start:{line:30,column:6},end:{line:30,column:26}},2:{start:{line:32,column:20},end:{line:32,column:96}},3:{start:{line:32,column:34},end:{line:32,column:82}},4:{start:{line:34,column:22},end:{line:34,column:74}},5:{start:{line:34,column:36},end:{line:34,column:53}},6:{start:{line:36,column:2},end:{line:48,column:4}},7:{start:{line:51,column:34},end:{line:51,column:48}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:26,column:23},end:{line:26,column:24}},loc:{start:{line:26,column:85},end:{line:49,column:1}},line:26},1:{name:"(anonymous_1)",decl:{start:{line:32,column:28},end:{line:32,column:29}},loc:{start:{line:32,column:34},end:{line:32,column:82}},line:32},2:{name:"(anonymous_2)",decl:{start:{line:34,column:30},end:{line:34,column:31}},loc:{start:{line:34,column:36},end:{line:34,column:53}},line:34}},branchMap:{0:{loc:{start:{line:26,column:33},end:{line:26,column:47}},type:"default-arg",locations:[{start:{line:26,column:42},end:{line:26,column:47}}],line:26},1:{loc:{start:{line:46,column:7},end:{line:46,column:105}},type:"binary-expr",locations:[{start:{line:46,column:7},end:{line:46,column:14}},{start:{line:46,column:18},end:{line:46,column:105}}],line:46}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0},f:{0:0,1:0,2:0},b:{0:[0],1:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"10718df01bc4be1e06e3ab16c3d02dd7181ba30a"});var actualCoverage=coverage[path];return cov_1gmh39x9ii=function(){return actualCoverage},actualCoverage}cov_1gmh39x9ii(),cov_1gmh39x9ii().s[0]++;const ResourceHeader=({index,isLast=(cov_1gmh39x9ii().b[0][0]++,!1),resource})=>{cov_1gmh39x9ii().f[0]++;const{rowHeight,theme:{color:themeColor}}=(cov_1gmh39x9ii().s[1]++,(0,_timeline_TimelineContext__WEBPACK_IMPORTED_MODULE_2__.i)()),rowPoints=(cov_1gmh39x9ii().s[2]++,(0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)((()=>(cov_1gmh39x9ii().f[1]++,cov_1gmh39x9ii().s[3]++,[0,rowHeight,_utils_resources__WEBPACK_IMPORTED_MODULE_4__.Oc,rowHeight])),[rowHeight])),yCoordinate=(cov_1gmh39x9ii().s[4]++,(0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)((()=>(cov_1gmh39x9ii().f[2]++,cov_1gmh39x9ii().s[5]++,rowHeight*index)),[index,rowHeight]));return cov_1gmh39x9ii().s[6]++,(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)(_konva__WEBPACK_IMPORTED_MODULE_1__.LE,{y:yCoordinate,children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_konva__WEBPACK_IMPORTED_MODULE_1__.V,{fill:themeColor,fontSize:_utils_dimensions__WEBPACK_IMPORTED_MODULE_3__.Z2,height:rowHeight,text:resource.label,verticalAlign:"middle",x:_utils_resources__WEBPACK_IMPORTED_MODULE_4__.D0}),(cov_1gmh39x9ii().b[1][0]++,!isLast&&(cov_1gmh39x9ii().b[1][1]++,(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_konva__WEBPACK_IMPORTED_MODULE_1__.vL,{points:rowPoints,stroke:themeColor,strokeWidth:_utils_dimensions__WEBPACK_IMPORTED_MODULE_3__.tA})))]})};ResourceHeader.displayName="ResourceHeader";const ResourceHeaderDocs=(cov_1gmh39x9ii().s[7]++,ResourceHeader),__WEBPACK_DEFAULT_EXPORT__=(0,react__WEBPACK_IMPORTED_MODULE_0__.memo)(ResourceHeader);try{ResourceHeaderDocs.displayName="ResourceHeaderDocs",ResourceHeaderDocs.__docgenInfo={description:"",displayName:"ResourceHeaderDocs",props:{index:{defaultValue:null,description:"The row index of current resource",name:"index",required:!0,type:{name:"number"}},isLast:{defaultValue:{value:"false"},description:"Flag to identify if resource is last to be shown",name:"isLast",required:!1,type:{name:"boolean"}},resource:{defaultValue:null,description:"The resource object to handle",name:"resource",required:!0,type:{name:"Resource"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/resources/components/Header/index.tsx#ResourceHeaderDocs"]={docgenInfo:ResourceHeaderDocs.__docgenInfo,name:"ResourceHeaderDocs",path:"src/resources/components/Header/index.tsx#ResourceHeaderDocs"})}catch(__react_docgen_typescript_loader_error){}try{ResourceHeader.displayName="ResourceHeader",ResourceHeader.__docgenInfo={description:"This component renders a resource header. It displays a text (`resource.label`) and a delimiter line.",displayName:"ResourceHeader",props:{index:{defaultValue:null,description:"The row index of current resource",name:"index",required:!0,type:{name:"number"}},isLast:{defaultValue:{value:"false"},description:"Flag to identify if resource is last to be shown",name:"isLast",required:!1,type:{name:"boolean"}},resource:{defaultValue:null,description:"The resource object to handle",name:"resource",required:!0,type:{name:"Resource"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/resources/components/Header/index.tsx#ResourceHeader"]={docgenInfo:ResourceHeader.__docgenInfo,name:"ResourceHeader",path:"src/resources/components/Header/index.tsx#ResourceHeader"})}catch(__react_docgen_typescript_loader_error){}},"./src/resources/components/Layer/index.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{Z:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/react/index.js");var _konva__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/@konva/index.tsx"),_timeline_TimelineContext__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/timeline/TimelineContext.tsx"),_Header__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/resources/components/Header/index.tsx"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/react/jsx-runtime.js");function cov_1lrv30s158(){var path="/home/runner/work/konva-timeline/konva-timeline/src/resources/components/Layer/index.tsx",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"f05e2dd491cbfc29e67ec62ad140a703a6442f40"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/konva-timeline/konva-timeline/src/resources/components/Layer/index.tsx",statementMap:{0:{start:{line:12,column:48},end:{line:24,column:1}},1:{start:{line:13,column:24},end:{line:13,column:44}},2:{start:{line:15,column:2},end:{line:23,column:4}},3:{start:{line:18,column:23},end:{line:18,column:53}},4:{start:{line:20,column:8},end:{line:20,column:116}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:12,column:48},end:{line:12,column:49}},loc:{start:{line:12,column:54},end:{line:24,column:1}},line:12},1:{name:"(anonymous_1)",decl:{start:{line:17,column:21},end:{line:17,column:22}},loc:{start:{line:17,column:42},end:{line:21,column:7}},line:17}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0},f:{0:0,1:0},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"f05e2dd491cbfc29e67ec62ad140a703a6442f40"});var actualCoverage=coverage[path];return cov_1lrv30s158=function(){return actualCoverage},actualCoverage}cov_1lrv30s158(),cov_1lrv30s158().s[0]++;const ResourcesLayer=()=>{cov_1lrv30s158().f[0]++;const{resources}=(cov_1lrv30s158().s[1]++,(0,_timeline_TimelineContext__WEBPACK_IMPORTED_MODULE_2__.i)());return cov_1lrv30s158().s[2]++,(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_konva__WEBPACK_IMPORTED_MODULE_1__.Rj,{children:resources.map(((resource,index)=>{cov_1lrv30s158().f[1]++;const isLast=(cov_1lrv30s158().s[3]++,index===resources.length-1);return cov_1lrv30s158().s[4]++,(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_Header__WEBPACK_IMPORTED_MODULE_3__.Z,{index,isLast,resource},`resource-${resource.id}`)}))})};ResourcesLayer.displayName="ResourcesLayer";const __WEBPACK_DEFAULT_EXPORT__=ResourcesLayer;try{Layer.displayName="Layer",Layer.__docgenInfo={description:"This component renders a Konva layer containing one header for each resource (`ResourceHeader`).",displayName:"Layer",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/resources/components/Layer/index.tsx#Layer"]={docgenInfo:Layer.__docgenInfo,name:"Layer",path:"src/resources/components/Layer/index.tsx#Layer"})}catch(__react_docgen_typescript_loader_error){}}}]); \ No newline at end of file diff --git a/docs/861.f665b317.iframe.bundle.js b/docs/861.093e4dc4.iframe.bundle.js similarity index 99% rename from docs/861.f665b317.iframe.bundle.js rename to docs/861.093e4dc4.iframe.bundle.js index c0bfd03..5a62231 100644 --- a/docs/861.f665b317.iframe.bundle.js +++ b/docs/861.093e4dc4.iframe.bundle.js @@ -1 +1 @@ -"use strict";(self.webpackChunk_melfore_konva_timeline=self.webpackChunk_melfore_konva_timeline||[]).push([[861],{"./src/KonvaTimeline/stories-data.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{function cov_182tke322c(){var path="/home/runner/work/konva-timeline/konva-timeline/src/KonvaTimeline/stories-data.ts",global=new Function("return this")(),gcv="__coverage__",coverageData={path:"/home/runner/work/konva-timeline/konva-timeline/src/KonvaTimeline/stories-data.ts",statementMap:{0:{start:{line:18,column:36},end:{line:18,column:50}},1:{start:{line:20,column:37},end:{line:20,column:73}},2:{start:{line:22,column:23},end:{line:29,column:1}},3:{start:{line:23,column:14},end:{line:23,column:16}},4:{start:{line:24,column:2},end:{line:26,column:3}},5:{start:{line:25,column:4},end:{line:25,column:62}},6:{start:{line:28,column:2},end:{line:28,column:15}},7:{start:{line:31,column:26},end:{line:43,column:1}},8:{start:{line:32,column:32},end:{line:32,column:34}},9:{start:{line:34,column:2},end:{line:40,column:3}},10:{start:{line:34,column:15},end:{line:34,column:16}},11:{start:{line:35,column:4},end:{line:39,column:7}},12:{start:{line:42,column:2},end:{line:42,column:19}},13:{start:{line:45,column:22},end:{line:75,column:1}},14:{start:{line:50,column:47},end:{line:50,column:49}},15:{start:{line:52,column:2},end:{line:72,column:3}},16:{start:{line:52,column:15},end:{line:52,column:16}},17:{start:{line:53,column:23},end:{line:53,column:74}},18:{start:{line:54,column:32},end:{line:54,column:94}},19:{start:{line:54,column:63},end:{line:54,column:93}},20:{start:{line:56,column:16},end:{line:56,column:47}},21:{start:{line:57,column:4},end:{line:62,column:5}},22:{start:{line:58,column:6},end:{line:61,column:75}},23:{start:{line:64,column:16},end:{line:64,column:90}},24:{start:{line:66,column:4},end:{line:71,column:7}},25:{start:{line:74,column:2},end:{line:74,column:15}},26:{start:{line:77,column:26},end:{line:82,column:1}},27:{start:{line:78,column:16},end:{line:78,column:47}},28:{start:{line:79,column:14},end:{line:79,column:103}},29:{start:{line:81,column:2},end:{line:81,column:24}},30:{start:{line:84,column:33},end:{line:95,column:1}},31:{start:{line:90,column:20},end:{line:90,column:53}},32:{start:{line:91,column:16},end:{line:91,column:87}},33:{start:{line:92,column:16},end:{line:92,column:50}},34:{start:{line:94,column:2},end:{line:94,column:37}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:22,column:23},end:{line:22,column:24}},loc:{start:{line:22,column:29},end:{line:29,column:1}},line:22},1:{name:"(anonymous_1)",decl:{start:{line:31,column:26},end:{line:31,column:27}},loc:{start:{line:31,column:57},end:{line:43,column:1}},line:31},2:{name:"(anonymous_2)",decl:{start:{line:45,column:22},end:{line:45,column:23}},loc:{start:{line:49,column:36},end:{line:75,column:1}},line:49},3:{name:"(anonymous_3)",decl:{start:{line:54,column:53},end:{line:54,column:54}},loc:{start:{line:54,column:63},end:{line:54,column:93}},line:54},4:{name:"(anonymous_4)",decl:{start:{line:77,column:26},end:{line:77,column:27}},loc:{start:{line:77,column:73},end:{line:82,column:1}},line:77},5:{name:"(anonymous_5)",decl:{start:{line:84,column:33},end:{line:84,column:34}},loc:{start:{line:89,column:33},end:{line:95,column:1}},line:89}},branchMap:{0:{loc:{start:{line:57,column:4},end:{line:62,column:5}},type:"if",locations:[{start:{line:57,column:4},end:{line:62,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:57}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0},f:{0:0,1:0,2:0,3:0,4:0,5:0},b:{0:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"984dfe5615b7b5b63958974a350c76cec6799980"},coverage=global[gcv]||(global[gcv]={});coverage[path]&&"984dfe5615b7b5b63958974a350c76cec6799980"===coverage[path].hash||(coverage[path]=coverageData);var actualCoverage=coverage[path];return cov_182tke322c=function(){return actualCoverage},actualCoverage}__webpack_require__.d(__webpack_exports__,{bm:()=>generateStoryData}),cov_182tke322c();cov_182tke322c().s[0]++;const TIME_RANGE_START_DATE=(cov_182tke322c().s[1]++,new Date("2019-12-31T23:00:00.000Z"));cov_182tke322c().s[2]++;const getRandomColor=()=>{cov_182tke322c().f[0]++;let color=(cov_182tke322c().s[3]++,"");for(cov_182tke322c().s[4]++;6!==color.length;)cov_182tke322c().s[5]++,color=Math.floor(16777215*Math.random()).toString(16);return cov_182tke322c().s[6]++,color};cov_182tke322c().s[7]++;cov_182tke322c().s[13]++;cov_182tke322c().s[26]++;cov_182tke322c().s[30]++;const generateStoryData=({averageTaskDurationInMinutes,resourcesCount,tasksCount,timeRangeInDays})=>{cov_182tke322c().f[5]++;const resources=(cov_182tke322c().s[31]++,(count=>{cov_182tke322c().f[1]++;const resources=(cov_182tke322c().s[8]++,[]);cov_182tke322c().s[9]++;for(let i=(cov_182tke322c().s[10]++,1);i<=count;i++)cov_182tke322c().s[11]++,resources.push({id:`${i}`,label:`Resource #${i}`,color:`#${getRandomColor()}`});return cov_182tke322c().s[12]++,resources})(resourcesCount)),tasks=(cov_182tke322c().s[32]++,((count,avgDurationInMinutes,resourcesCount)=>{cov_182tke322c().f[2]++;const tasks=(cov_182tke322c().s[14]++,[]);cov_182tke322c().s[15]++;for(let i=(cov_182tke322c().s[16]++,1);i<=count;i++){const resourceId=(cov_182tke322c().s[17]++,`${Math.floor(Math.random()*resourcesCount)+1}`),lastTaskForResource=(cov_182tke322c().s[18]++,tasks.reverse().find((task=>(cov_182tke322c().f[3]++,cov_182tke322c().s[19]++,task.resourceId===resourceId))));let start=(cov_182tke322c().s[20]++,TIME_RANGE_START_DATE.valueOf());cov_182tke322c().s[21]++,lastTaskForResource?(cov_182tke322c().b[0][0]++,cov_182tke322c().s[22]++,start=lastTaskForResource.time.end+Math.floor(avgDurationInMinutes/2)+60*Math.floor(Math.random()*(2*avgDurationInMinutes))*1e3):cov_182tke322c().b[0][1]++;const end=(cov_182tke322c().s[23]++,start+60*Math.floor(Math.random()*(2*avgDurationInMinutes))*1e3);cov_182tke322c().s[24]++,tasks.push({id:`${i}`,resourceId,label:`Task #${i}`,time:{start,end}})}return cov_182tke322c().s[25]++,tasks})(tasksCount,averageTaskDurationInMinutes,resourcesCount)),range=(cov_182tke322c().s[33]++,(durationInDays=>{cov_182tke322c().f[4]++;const start=(cov_182tke322c().s[27]++,TIME_RANGE_START_DATE.valueOf()),end=(cov_182tke322c().s[28]++,TIME_RANGE_START_DATE.setDate(TIME_RANGE_START_DATE.getDate()+durationInDays).valueOf());return cov_182tke322c().s[29]++,{start,end}})(timeRangeInDays));return cov_182tke322c().s[34]++,{resources,tasks,range}}},"./src/resources/utils/resources.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{function cov_9ptvw0d93(){var path="/home/runner/work/konva-timeline/konva-timeline/src/resources/utils/resources.ts",global=new Function("return this")(),gcv="__coverage__",coverageData={path:"/home/runner/work/konva-timeline/konva-timeline/src/resources/utils/resources.ts",statementMap:{0:{start:{line:16,column:34},end:{line:20,column:1}},1:{start:{line:22,column:37},end:{line:22,column:40}},2:{start:{line:24,column:36},end:{line:24,column:38}},3:{start:{line:30,column:33},end:{line:33,column:1}},4:{start:{line:30,column:94},end:{line:33,column:1}},5:{start:{line:43,column:45},end:{line:59,column:1}},6:{start:{line:44,column:2},end:{line:47,column:3}},7:{start:{line:46,column:4},end:{line:46,column:42}},8:{start:{line:49,column:22},end:{line:49,column:56}},9:{start:{line:50,column:2},end:{line:52,column:3}},10:{start:{line:51,column:4},end:{line:51,column:22}},11:{start:{line:54,column:2},end:{line:56,column:3}},12:{start:{line:55,column:4},end:{line:55,column:41}},13:{start:{line:58,column:2},end:{line:58,column:23}},14:{start:{line:68,column:40},end:{line:71,column:1}},15:{start:{line:69,column:24},end:{line:69,column:87}},16:{start:{line:70,column:2},end:{line:70,column:34}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:30,column:33},end:{line:30,column:34}},loc:{start:{line:30,column:94},end:{line:33,column:1}},line:30},1:{name:"(anonymous_1)",decl:{start:{line:43,column:45},end:{line:43,column:46}},loc:{start:{line:43,column:119},end:{line:59,column:1}},line:43},2:{name:"(anonymous_2)",decl:{start:{line:68,column:40},end:{line:68,column:41}},loc:{start:{line:68,column:116},end:{line:71,column:1}},line:68}},branchMap:{0:{loc:{start:{line:31,column:31},end:{line:31,column:67}},type:"binary-expr",locations:[{start:{line:31,column:31},end:{line:31,column:42}},{start:{line:31,column:46},end:{line:31,column:67}}],line:31},1:{loc:{start:{line:44,column:2},end:{line:47,column:3}},type:"if",locations:[{start:{line:44,column:2},end:{line:47,column:3}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:44},2:{loc:{start:{line:44,column:6},end:{line:44,column:37}},type:"binary-expr",locations:[{start:{line:44,column:6},end:{line:44,column:16}},{start:{line:44,column:20},end:{line:44,column:37}}],line:44},3:{loc:{start:{line:50,column:2},end:{line:52,column:3}},type:"if",locations:[{start:{line:50,column:2},end:{line:52,column:3}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:50},4:{loc:{start:{line:54,column:2},end:{line:56,column:3}},type:"if",locations:[{start:{line:54,column:2},end:{line:56,column:3}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:54}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0},f:{0:0,1:0,2:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"65d656f403ba6f7608731b177c69ff88c8d4756c"},coverage=global[gcv]||(global[gcv]={});coverage[path]&&"65d656f403ba6f7608731b177c69ff88c8d4756c"===coverage[path].hash||(coverage[path]=coverageData);var actualCoverage=coverage[path];return cov_9ptvw0d93=function(){return actualCoverage},actualCoverage}__webpack_require__.d(__webpack_exports__,{Ae:()=>findResourceIndexByCoordinate,D0:()=>RESOURCE_TEXT_OFFSET,K5:()=>findResourceByCoordinate,Oc:()=>RESOURCE_HEADER_WIDTH,bL:()=>addHeaderResource}),cov_9ptvw0d93();const RESOURCE_HEADER=(cov_9ptvw0d93().s[0]++,{id:"-1",color:"transparent",label:"Header"}),RESOURCE_HEADER_WIDTH=(cov_9ptvw0d93().s[1]++,200),RESOURCE_TEXT_OFFSET=(cov_9ptvw0d93().s[2]++,12);cov_9ptvw0d93().s[3]++;const addHeaderResource=(resources,headerLabel)=>(cov_9ptvw0d93().f[0]++,cov_9ptvw0d93().s[4]++,[{...RESOURCE_HEADER,label:(cov_9ptvw0d93().b[0][0]++,headerLabel||(cov_9ptvw0d93().b[0][1]++,RESOURCE_HEADER.label))},...resources]);cov_9ptvw0d93().s[5]++;const findResourceIndexByCoordinate=(coordinate,rowHeight,resources)=>{if(cov_9ptvw0d93().f[1]++,cov_9ptvw0d93().s[6]++,cov_9ptvw0d93().b[2][0]++,!resources||(cov_9ptvw0d93().b[2][1]++,!resources.length))throw cov_9ptvw0d93().b[1][0]++,cov_9ptvw0d93().s[7]++,new Error("Resources is empty");cov_9ptvw0d93().b[1][1]++;let resourceIndex=(cov_9ptvw0d93().s[8]++,Math.floor(coordinate/rowHeight));return cov_9ptvw0d93().s[9]++,resourceIndex<1?(cov_9ptvw0d93().b[3][0]++,cov_9ptvw0d93().s[10]++,resourceIndex=1):cov_9ptvw0d93().b[3][1]++,cov_9ptvw0d93().s[11]++,resources.length<=resourceIndex?(cov_9ptvw0d93().b[4][0]++,cov_9ptvw0d93().s[12]++,resourceIndex=resources.length-1):cov_9ptvw0d93().b[4][1]++,cov_9ptvw0d93().s[13]++,resourceIndex};cov_9ptvw0d93().s[14]++;const findResourceByCoordinate=(coordinate,rowHeight,resources)=>{cov_9ptvw0d93().f[2]++;const resourceIndex=(cov_9ptvw0d93().s[15]++,findResourceIndexByCoordinate(coordinate,rowHeight,resources));return cov_9ptvw0d93().s[16]++,resources[resourceIndex]}},"./src/tasks/utils/tasks.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{jj:()=>TASK_BORDER_RADIUS,kN:()=>validateTasks,rc:()=>getTaskYCoordinate,yH:()=>filterTasks});var _utils_time__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./src/utils/time.ts");function cov_iow4v29cs(){var path="/home/runner/work/konva-timeline/konva-timeline/src/tasks/utils/tasks.ts",global=new Function("return this")(),gcv="__coverage__",coverageData={path:"/home/runner/work/konva-timeline/konva-timeline/src/tasks/utils/tasks.ts",statementMap:{0:{start:{line:25,column:22},end:{line:25,column:25}},1:{start:{line:27,column:34},end:{line:27,column:35}},2:{start:{line:34,column:34},end:{line:35,column:50}},3:{start:{line:35,column:2},end:{line:35,column:50}},4:{start:{line:42,column:29},end:{line:82,column:1}},5:{start:{line:47,column:13},end:{line:47,column:33}},6:{start:{line:48,column:2},end:{line:50,column:3}},7:{start:{line:49,column:4},end:{line:49,column:100}},8:{start:{line:52,column:2},end:{line:54,column:3}},9:{start:{line:53,column:4},end:{line:53,column:94}},10:{start:{line:56,column:39},end:{line:56,column:41}},11:{start:{line:57,column:16},end:{line:79,column:6}},12:{start:{line:59,column:46},end:{line:65,column:7}},13:{start:{line:68,column:6},end:{line:71,column:7}},14:{start:{line:69,column:8},end:{line:69,column:96}},15:{start:{line:70,column:8},end:{line:70,column:21}},16:{start:{line:73,column:6},end:{line:76,column:7}},17:{start:{line:74,column:8},end:{line:74,column:96}},18:{start:{line:75,column:8},end:{line:75,column:21}},19:{start:{line:78,column:6},end:{line:78,column:18}},20:{start:{line:81,column:2},end:{line:81,column:27}},21:{start:{line:89,column:27},end:{line:108,column:1}},22:{start:{line:93,column:2},end:{line:95,column:3}},23:{start:{line:94,column:4},end:{line:94,column:14}},24:{start:{line:97,column:2},end:{line:107,column:5}},25:{start:{line:98,column:4},end:{line:100,column:5}},26:{start:{line:99,column:6},end:{line:99,column:19}},27:{start:{line:102,column:4},end:{line:104,column:5}},28:{start:{line:103,column:6},end:{line:103,column:19}},29:{start:{line:106,column:4},end:{line:106,column:16}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:34,column:34},end:{line:34,column:35}},loc:{start:{line:35,column:2},end:{line:35,column:50}},line:35},1:{name:"(anonymous_1)",decl:{start:{line:42,column:29},end:{line:42,column:30}},loc:{start:{line:46,column:20},end:{line:82,column:1}},line:46},2:{name:"(anonymous_2)",decl:{start:{line:59,column:6},end:{line:59,column:7}},loc:{start:{line:59,column:46},end:{line:65,column:7}},line:59},3:{name:"(anonymous_3)",decl:{start:{line:67,column:12},end:{line:67,column:13}},loc:{start:{line:67,column:74},end:{line:79,column:5}},line:67},4:{name:"(anonymous_4)",decl:{start:{line:89,column:27},end:{line:89,column:28}},loc:{start:{line:92,column:36},end:{line:108,column:1}},line:92},5:{name:"(anonymous_5)",decl:{start:{line:97,column:22},end:{line:97,column:23}},loc:{start:{line:97,column:72},end:{line:107,column:3}},line:97}},branchMap:{0:{loc:{start:{line:47,column:13},end:{line:47,column:33}},type:"binary-expr",locations:[{start:{line:47,column:13},end:{line:47,column:21}},{start:{line:47,column:25},end:{line:47,column:33}}],line:47},1:{loc:{start:{line:48,column:2},end:{line:50,column:3}},type:"if",locations:[{start:{line:48,column:2},end:{line:50,column:3}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:48},2:{loc:{start:{line:48,column:6},end:{line:48,column:42}},type:"binary-expr",locations:[{start:{line:48,column:6},end:{line:48,column:12}},{start:{line:48,column:16},end:{line:48,column:28}},{start:{line:48,column:32},end:{line:48,column:42}}],line:48},3:{loc:{start:{line:52,column:2},end:{line:54,column:3}},type:"if",locations:[{start:{line:52,column:2},end:{line:54,column:3}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:52},4:{loc:{start:{line:52,column:6},end:{line:52,column:29}},type:"binary-expr",locations:[{start:{line:52,column:6},end:{line:52,column:12}},{start:{line:52,column:16},end:{line:52,column:29}}],line:52},5:{loc:{start:{line:68,column:6},end:{line:71,column:7}},type:"if",locations:[{start:{line:68,column:6},end:{line:71,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:68},6:{loc:{start:{line:73,column:6},end:{line:76,column:7}},type:"if",locations:[{start:{line:73,column:6},end:{line:76,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:73},7:{loc:{start:{line:73,column:10},end:{line:73,column:56}},type:"binary-expr",locations:[{start:{line:73,column:10},end:{line:73,column:31}},{start:{line:73,column:35},end:{line:73,column:56}}],line:73},8:{loc:{start:{line:93,column:2},end:{line:95,column:3}},type:"if",locations:[{start:{line:93,column:2},end:{line:95,column:3}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:93},9:{loc:{start:{line:93,column:6},end:{line:93,column:69}},type:"binary-expr",locations:[{start:{line:93,column:6},end:{line:93,column:12}},{start:{line:93,column:16},end:{line:93,column:28}},{start:{line:93,column:32},end:{line:93,column:42}},{start:{line:93,column:46},end:{line:93,column:52}},{start:{line:93,column:56},end:{line:93,column:69}}],line:93},10:{loc:{start:{line:98,column:4},end:{line:100,column:5}},type:"if",locations:[{start:{line:98,column:4},end:{line:100,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:98},11:{loc:{start:{line:102,column:4},end:{line:104,column:5}},type:"if",locations:[{start:{line:102,column:4},end:{line:104,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:102},12:{loc:{start:{line:102,column:8},end:{line:102,column:54}},type:"binary-expr",locations:[{start:{line:102,column:8},end:{line:102,column:29}},{start:{line:102,column:33},end:{line:102,column:54}}],line:102}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0},f:{0:0,1:0,2:0,3:0,4:0,5:0},b:{0:[0,0],1:[0,0],2:[0,0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0],7:[0,0],8:[0,0],9:[0,0,0,0,0],10:[0,0],11:[0,0],12:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"e1e4e8cef9f564e485007836d7e1711df2615e82"},coverage=global[gcv]||(global[gcv]={});coverage[path]&&"e1e4e8cef9f564e485007836d7e1711df2615e82"===coverage[path].hash||(coverage[path]=coverageData);var actualCoverage=coverage[path];return cov_iow4v29cs=function(){return actualCoverage},actualCoverage}cov_iow4v29cs();const TASK_OFFSET_Y=(cov_iow4v29cs().s[0]++,.1),TASK_BORDER_RADIUS=(cov_iow4v29cs().s[1]++,4);cov_iow4v29cs().s[2]++;const getTaskYCoordinate=(rowIndex,rowHeight)=>(cov_iow4v29cs().f[0]++,cov_iow4v29cs().s[3]++,rowHeight*rowIndex+rowHeight*TASK_OFFSET_Y);cov_iow4v29cs().s[4]++;const validateTasks=(tasks,range,timezone)=>{cov_iow4v29cs().f[1]++;const tz=(cov_iow4v29cs().s[5]++,cov_iow4v29cs().b[0][0]++,timezone||(cov_iow4v29cs().b[0][1]++,"system"));if(cov_iow4v29cs().s[6]++,cov_iow4v29cs().b[2][0]++,!(range&&(cov_iow4v29cs().b[2][1]++,range.start)&&(cov_iow4v29cs().b[2][2]++,range.end)))return cov_iow4v29cs().b[1][0]++,cov_iow4v29cs().s[7]++,{items:[],errors:[{entity:"timeline",level:"warn",message:"Invalid range"}]};if(cov_iow4v29cs().b[1][1]++,cov_iow4v29cs().s[8]++,cov_iow4v29cs().b[4][0]++,!tasks||(cov_iow4v29cs().b[4][1]++,!tasks.length))return cov_iow4v29cs().b[3][0]++,cov_iow4v29cs().s[9]++,{items:[],errors:[{entity:"timeline",level:"warn",message:"No data"}]};cov_iow4v29cs().b[3][1]++;const errors=(cov_iow4v29cs().s[10]++,[]),items=(cov_iow4v29cs().s[11]++,tasks.map((task=>(cov_iow4v29cs().f[2]++,cov_iow4v29cs().s[12]++,{...task,time:{start:(0,_utils_time__WEBPACK_IMPORTED_MODULE_0__.n4)(task.time.start,tz),end:(0,_utils_time__WEBPACK_IMPORTED_MODULE_0__.n4)(task.time.end,tz)}}))).filter((({id:taskId,time:{start:taskStart,end:taskEnd}})=>(cov_iow4v29cs().f[3]++,cov_iow4v29cs().s[13]++,taskStart>=taskEnd?(cov_iow4v29cs().b[5][0]++,cov_iow4v29cs().s[14]++,errors.push({entity:"task",level:"error",message:"Invalid time",refId:taskId}),cov_iow4v29cs().s[15]++,!1):(cov_iow4v29cs().b[5][1]++,cov_iow4v29cs().s[16]++,cov_iow4v29cs().b[7][0]++,taskEndrange.end)?(cov_iow4v29cs().b[6][0]++,cov_iow4v29cs().s[17]++,errors.push({entity:"task",level:"warn",message:"Outside range",refId:taskId}),cov_iow4v29cs().s[18]++,!1):(cov_iow4v29cs().b[6][1]++,cov_iow4v29cs().s[19]++,!0))))));return cov_iow4v29cs().s[20]++,{items,errors}};cov_iow4v29cs().s[21]++;const filterTasks=(tasks,range)=>(cov_iow4v29cs().f[4]++,cov_iow4v29cs().s[22]++,cov_iow4v29cs().b[9][0]++,range&&(cov_iow4v29cs().b[9][1]++,range.start)&&(cov_iow4v29cs().b[9][2]++,range.end)&&(cov_iow4v29cs().b[9][3]++,tasks)&&(cov_iow4v29cs().b[9][4]++,tasks.length)?(cov_iow4v29cs().b[8][1]++,cov_iow4v29cs().s[24]++,tasks.filter((({time:{start:taskStart,end:taskEnd}})=>(cov_iow4v29cs().f[5]++,cov_iow4v29cs().s[25]++,taskStart>=taskEnd?(cov_iow4v29cs().b[10][0]++,cov_iow4v29cs().s[26]++,!1):(cov_iow4v29cs().b[10][1]++,cov_iow4v29cs().s[27]++,cov_iow4v29cs().b[12][0]++,taskEndrange.end)?(cov_iow4v29cs().b[11][0]++,cov_iow4v29cs().s[28]++,!1):(cov_iow4v29cs().b[11][1]++,cov_iow4v29cs().s[29]++,!0)))))):(cov_iow4v29cs().b[8][0]++,cov_iow4v29cs().s[23]++,[]))},"./src/timeline/TimelineContext.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{w:()=>TimelineProvider,i:()=>useTimelineContext});var react=__webpack_require__("./node_modules/react/index.js"),luxon=__webpack_require__("./node_modules/luxon/src/luxon.js"),utils_resources=__webpack_require__("./src/resources/utils/resources.ts"),utils_tasks=__webpack_require__("./src/tasks/utils/tasks.ts"),dimensions=__webpack_require__("./src/utils/dimensions.ts"),logger=__webpack_require__("./src/utils/logger.ts"),time=__webpack_require__("./src/utils/time.ts"),time_resolution=__webpack_require__("./src/utils/time-resolution.ts");function cov_23hhp3s7ho(){var path="/home/runner/work/konva-timeline/konva-timeline/src/utils/utils.ts",global=new Function("return this")(),gcv="__coverage__",coverageData={path:"/home/runner/work/konva-timeline/konva-timeline/src/utils/utils.ts",statementMap:{0:{start:{line:5,column:42},end:{line:16,column:1}},1:{start:{line:6,column:2},end:{line:13,column:3}},2:{start:{line:7,column:4},end:{line:7,column:37}},3:{start:{line:8,column:18},end:{line:8,column:43}},4:{start:{line:9,column:21},end:{line:9,column:25}},5:{start:{line:10,column:16},end:{line:10,column:41}},6:{start:{line:11,column:4},end:{line:11,column:64}},7:{start:{line:12,column:4},end:{line:12,column:20}},8:{start:{line:14,column:17},end:{line:14,column:21}},9:{start:{line:15,column:2},end:{line:15,column:16}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:5,column:42},end:{line:5,column:43}},loc:{start:{line:5,column:92},end:{line:16,column:1}},line:5}},branchMap:{0:{loc:{start:{line:6,column:2},end:{line:13,column:3}},type:"if",locations:[{start:{line:6,column:2},end:{line:13,column:3}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:6}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0},f:{0:0},b:{0:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"6cc3330edaaed5900ba13028773c10db8e48414d"},coverage=global[gcv]||(global[gcv]={});coverage[path]&&"6cc3330edaaed5900ba13028773c10db8e48414d"===coverage[path].hash||(coverage[path]=coverageData);var actualCoverage=coverage[path];return cov_23hhp3s7ho=function(){return actualCoverage},actualCoverage}cov_23hhp3s7ho(),cov_23hhp3s7ho().s[0]++;const executeWithPerfomanceCheck=(tag,item,fn)=>{if(cov_23hhp3s7ho().f[0]++,cov_23hhp3s7ho().s[1]++,window.__MELFORE_KONVA_TIMELINE_DEBUG__){cov_23hhp3s7ho().b[0][0]++,cov_23hhp3s7ho().s[2]++,(0,logger.o7)(tag,`Running ${item}`);const start=(cov_23hhp3s7ho().s[3]++,luxon.ou.now().toMillis()),fnResult=(cov_23hhp3s7ho().s[4]++,fn()),end=(cov_23hhp3s7ho().s[5]++,luxon.ou.now().toMillis());return cov_23hhp3s7ho().s[6]++,(0,logger.o7)(tag,`${item} calculation took ${end-start} ms`),cov_23hhp3s7ho().s[7]++,fnResult}cov_23hhp3s7ho().b[0][1]++;const result=(cov_23hhp3s7ho().s[8]++,fn());return cov_23hhp3s7ho().s[9]++,result};var jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");function cov_107e24dr7(){var path="/home/runner/work/konva-timeline/konva-timeline/src/timeline/TimelineContext.tsx",global=new Function("return this")(),gcv="__coverage__",coverageData={path:"/home/runner/work/konva-timeline/konva-timeline/src/timeline/TimelineContext.tsx",statementMap:{0:{start:{line:96,column:24},end:{line:96,column:81}},1:{start:{line:99,column:46},end:{line:99,column:66}},2:{start:{line:101,column:28},end:{line:101,column:29}},3:{start:{line:103,column:32},end:{line:329,column:1}},4:{start:{line:125,column:19},end:{line:136,column:24}},5:{start:{line:126,column:4},end:{line:128,column:5}},6:{start:{line:127,column:6},end:{line:127,column:22}},7:{start:{line:130,column:22},end:{line:130,column:72}},8:{start:{line:131,column:4},end:{line:133,column:5}},9:{start:{line:132,column:6},end:{line:132,column:22}},10:{start:{line:135,column:4},end:{line:135,column:28}},11:{start:{line:138,column:36},end:{line:138,column:64}},12:{start:{line:140,column:2},end:{line:143,column:14}},13:{start:{line:141,column:4},end:{line:141,column:65}},14:{start:{line:142,column:4},end:{line:142,column:52}},15:{start:{line:145,column:16},end:{line:162,column:31}},16:{start:{line:146,column:55},end:{line:146,column:68}},17:{start:{line:147,column:20},end:{line:147,column:65}},18:{start:{line:148,column:18},end:{line:148,column:59}},19:{start:{line:149,column:18},end:{line:149,column:60}},20:{start:{line:150,column:16},end:{line:150,column:56}},21:{start:{line:151,column:4},end:{line:156,column:5}},22:{start:{line:152,column:6},end:{line:154,column:7}},23:{start:{line:153,column:8},end:{line:153,column:30}},24:{start:{line:155,column:6},end:{line:155,column:42}},25:{start:{line:157,column:4},end:{line:159,column:5}},26:{start:{line:158,column:6},end:{line:158,column:38}},27:{start:{line:160,column:16},end:{line:160,column:43}},28:{start:{line:161,column:4},end:{line:161,column:36}},29:{start:{line:164,column:21},end:{line:167,column:3}},30:{start:{line:165,column:10},end:{line:165,column:115}},31:{start:{line:165,column:77},end:{line:165,column:114}},32:{start:{line:169,column:19},end:{line:175,column:3}},33:{start:{line:171,column:6},end:{line:173,column:7}},34:{start:{line:172,column:8},end:{line:172,column:69}},35:{start:{line:177,column:26},end:{line:191,column:48}},36:{start:{line:178,column:18},end:{line:178,column:43}},37:{start:{line:179,column:4},end:{line:184,column:5}},38:{start:{line:180,column:6},end:{line:180,column:64}},39:{start:{line:181,column:6},end:{line:183,column:7}},40:{start:{line:182,column:8},end:{line:182,column:39}},41:{start:{line:186,column:4},end:{line:188,column:5}},42:{start:{line:187,column:6},end:{line:187,column:25}},43:{start:{line:190,column:4},end:{line:190,column:19}},44:{start:{line:193,column:21},end:{line:199,column:3}},45:{start:{line:195,column:6},end:{line:197,column:7}},46:{start:{line:196,column:8},end:{line:196,column:53}},47:{start:{line:201,column:21},end:{line:207,column:3}},48:{start:{line:203,column:6},end:{line:205,column:7}},49:{start:{line:204,column:8},end:{line:204,column:71}},50:{start:{line:209,column:26},end:{line:209,column:112}},51:{start:{line:209,column:40},end:{line:209,column:87}},52:{start:{line:211,column:22},end:{line:216,column:39}},53:{start:{line:212,column:4},end:{line:212,column:63}},54:{start:{line:213,column:4},end:{line:215,column:28}},55:{start:{line:218,column:27},end:{line:218,column:109}},56:{start:{line:218,column:41},end:{line:218,column:82}},57:{start:{line:220,column:28},end:{line:242,column:60}},58:{start:{line:221,column:4},end:{line:221,column:71}},59:{start:{line:222,column:18},end:{line:222,column:43}},60:{start:{line:223,column:24},end:{line:223,column:55}},61:{start:{line:224,column:4},end:{line:226,column:5}},62:{start:{line:225,column:6},end:{line:225,column:16}},63:{start:{line:228,column:21},end:{line:228,column:37}},64:{start:{line:229,column:4},end:{line:231,column:5}},65:{start:{line:230,column:6},end:{line:230,column:58}},66:{start:{line:233,column:19},end:{line:233,column:57}},67:{start:{line:234,column:4},end:{line:236,column:5}},68:{start:{line:235,column:6},end:{line:235,column:48}},69:{start:{line:238,column:17},end:{line:238,column:66}},70:{start:{line:239,column:16},end:{line:239,column:41}},71:{start:{line:240,column:4},end:{line:240,column:91}},72:{start:{line:241,column:4},end:{line:241,column:16}},73:{start:{line:244,column:23},end:{line:254,column:25}},74:{start:{line:245,column:16},end:{line:245,column:20}},75:{start:{line:246,column:4},end:{line:251,column:5}},76:{start:{line:247,column:6},end:{line:250,column:8}},77:{start:{line:253,column:4},end:{line:253,column:17}},78:{start:{line:256,column:16},end:{line:260,column:3}},79:{start:{line:258,column:6},end:{line:258,column:118}},80:{start:{line:258,column:74},end:{line:258,column:117}},81:{start:{line:262,column:25},end:{line:269,column:50}},82:{start:{line:263,column:4},end:{line:263,column:67}},83:{start:{line:264,column:18},end:{line:264,column:43}},84:{start:{line:265,column:20},end:{line:265,column:83}},85:{start:{line:266,column:16},end:{line:266,column:41}},86:{start:{line:267,column:4},end:{line:267,column:87}},87:{start:{line:268,column:4},end:{line:268,column:19}},88:{start:{line:271,column:20},end:{line:271,column:118}},89:{start:{line:271,column:34},end:{line:271,column:83}},90:{start:{line:273,column:20},end:{line:277,column:25}},91:{start:{line:274,column:4},end:{line:274,column:61}},92:{start:{line:275,column:22},end:{line:275,column:66}},93:{start:{line:276,column:4},end:{line:276,column:85}},94:{start:{line:279,column:33},end:{line:282,column:28}},95:{start:{line:280,column:4},end:{line:280,column:76}},96:{start:{line:281,column:4},end:{line:281,column:40}},97:{start:{line:284,column:16},end:{line:288,column:21}},98:{start:{line:285,column:4},end:{line:287,column:6}},99:{start:{line:290,column:2},end:{line:294,column:29}},100:{start:{line:291,column:4},end:{line:293,column:5}},101:{start:{line:292,column:6},end:{line:292,column:34}},102:{start:{line:296,column:2},end:{line:328,column:4}},103:{start:{line:331,column:34},end:{line:338,column:1}},104:{start:{line:332,column:18},end:{line:332,column:45}},105:{start:{line:333,column:2},end:{line:335,column:3}},106:{start:{line:334,column:4},end:{line:334,column:81}},107:{start:{line:337,column:2},end:{line:337,column:17}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:103,column:32},end:{line:103,column:33}},loc:{start:{line:124,column:29},end:{line:329,column:1}},line:124},1:{name:"(anonymous_1)",decl:{start:{line:125,column:27},end:{line:125,column:28}},loc:{start:{line:125,column:33},end:{line:136,column:3}},line:125},2:{name:"(anonymous_2)",decl:{start:{line:140,column:12},end:{line:140,column:13}},loc:{start:{line:140,column:18},end:{line:143,column:3}},line:140},3:{name:"(anonymous_3)",decl:{start:{line:145,column:24},end:{line:145,column:25}},loc:{start:{line:145,column:49},end:{line:162,column:3}},line:145},4:{name:"(anonymous_4)",decl:{start:{line:165,column:4},end:{line:165,column:5}},loc:{start:{line:165,column:10},end:{line:165,column:115}},line:165},5:{name:"(anonymous_5)",decl:{start:{line:165,column:71},end:{line:165,column:72}},loc:{start:{line:165,column:77},end:{line:165,column:114}},line:165},6:{name:"(anonymous_6)",decl:{start:{line:170,column:4},end:{line:170,column:5}},loc:{start:{line:171,column:6},end:{line:173,column:7}},line:171},7:{name:"(anonymous_7)",decl:{start:{line:171,column:65},end:{line:171,column:66}},loc:{start:{line:172,column:8},end:{line:172,column:69}},line:172},8:{name:"(anonymous_8)",decl:{start:{line:177,column:34},end:{line:177,column:35}},loc:{start:{line:177,column:40},end:{line:191,column:3}},line:177},9:{name:"(anonymous_9)",decl:{start:{line:194,column:4},end:{line:194,column:5}},loc:{start:{line:195,column:6},end:{line:197,column:7}},line:195},10:{name:"(anonymous_10)",decl:{start:{line:195,column:70},end:{line:195,column:71}},loc:{start:{line:196,column:8},end:{line:196,column:53}},line:196},11:{name:"(anonymous_11)",decl:{start:{line:202,column:4},end:{line:202,column:5}},loc:{start:{line:203,column:6},end:{line:205,column:7}},line:203},12:{name:"(anonymous_12)",decl:{start:{line:203,column:67},end:{line:203,column:68}},loc:{start:{line:204,column:8},end:{line:204,column:71}},line:204},13:{name:"(anonymous_13)",decl:{start:{line:209,column:34},end:{line:209,column:35}},loc:{start:{line:209,column:40},end:{line:209,column:87}},line:209},14:{name:"(anonymous_14)",decl:{start:{line:211,column:30},end:{line:211,column:31}},loc:{start:{line:211,column:36},end:{line:216,column:3}},line:211},15:{name:"(anonymous_15)",decl:{start:{line:218,column:35},end:{line:218,column:36}},loc:{start:{line:218,column:41},end:{line:218,column:82}},line:218},16:{name:"(anonymous_16)",decl:{start:{line:220,column:36},end:{line:220,column:37}},loc:{start:{line:220,column:42},end:{line:242,column:3}},line:220},17:{name:"(anonymous_17)",decl:{start:{line:244,column:31},end:{line:244,column:32}},loc:{start:{line:244,column:37},end:{line:254,column:3}},line:244},18:{name:"(anonymous_18)",decl:{start:{line:257,column:4},end:{line:257,column:5}},loc:{start:{line:258,column:6},end:{line:258,column:118}},line:258},19:{name:"(anonymous_19)",decl:{start:{line:258,column:68},end:{line:258,column:69}},loc:{start:{line:258,column:74},end:{line:258,column:117}},line:258},20:{name:"(anonymous_20)",decl:{start:{line:262,column:33},end:{line:262,column:34}},loc:{start:{line:262,column:39},end:{line:269,column:3}},line:262},21:{name:"(anonymous_21)",decl:{start:{line:271,column:28},end:{line:271,column:29}},loc:{start:{line:271,column:34},end:{line:271,column:83}},line:271},22:{name:"(anonymous_22)",decl:{start:{line:273,column:28},end:{line:273,column:29}},loc:{start:{line:273,column:34},end:{line:277,column:3}},line:273},23:{name:"(anonymous_23)",decl:{start:{line:279,column:41},end:{line:279,column:42}},loc:{start:{line:279,column:47},end:{line:282,column:3}},line:279},24:{name:"(anonymous_24)",decl:{start:{line:284,column:24},end:{line:284,column:25}},loc:{start:{line:284,column:45},end:{line:288,column:3}},line:284},25:{name:"(anonymous_25)",decl:{start:{line:290,column:12},end:{line:290,column:13}},loc:{start:{line:290,column:18},end:{line:294,column:3}},line:290},26:{name:"(anonymous_26)",decl:{start:{line:331,column:34},end:{line:331,column:35}},loc:{start:{line:331,column:40},end:{line:338,column:1}},line:331}},branchMap:{0:{loc:{start:{line:106,column:2},end:{line:106,column:15}},type:"default-arg",locations:[{start:{line:106,column:10},end:{line:106,column:15}}],line:106},1:{loc:{start:{line:107,column:2},end:{line:107,column:27}},type:"default-arg",locations:[{start:{line:107,column:22},end:{line:107,column:27}}],line:107},2:{loc:{start:{line:109,column:2},end:{line:109,column:19}},type:"default-arg",locations:[{start:{line:109,column:15},end:{line:109,column:19}}],line:109},3:{loc:{start:{line:110,column:2},end:{line:110,column:21}},type:"default-arg",locations:[{start:{line:110,column:17},end:{line:110,column:21}}],line:110},4:{loc:{start:{line:112,column:2},end:{line:112,column:23}},type:"default-arg",locations:[{start:{line:112,column:18},end:{line:112,column:23}}],line:112},5:{loc:{start:{line:117,column:9},end:{line:117,column:27}},type:"default-arg",locations:[{start:{line:117,column:25},end:{line:117,column:27}}],line:117},6:{loc:{start:{line:119,column:14},end:{line:119,column:41}},type:"default-arg",locations:[{start:{line:119,column:35},end:{line:119,column:41}}],line:119},7:{loc:{start:{line:123,column:9},end:{line:123,column:32}},type:"default-arg",locations:[{start:{line:123,column:25},end:{line:123,column:32}}],line:123},8:{loc:{start:{line:126,column:4},end:{line:128,column:5}},type:"if",locations:[{start:{line:126,column:4},end:{line:128,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:126},9:{loc:{start:{line:131,column:4},end:{line:133,column:5}},type:"if",locations:[{start:{line:131,column:4},end:{line:133,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:131},10:{loc:{start:{line:141,column:41},end:{line:141,column:61}},type:"cond-expr",locations:[{start:{line:141,column:49},end:{line:141,column:53}},{start:{line:141,column:56},end:{line:141,column:61}}],line:141},11:{loc:{start:{line:151,column:4},end:{line:156,column:5}},type:"if",locations:[{start:{line:151,column:4},end:{line:156,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:151},12:{loc:{start:{line:152,column:6},end:{line:154,column:7}},type:"if",locations:[{start:{line:152,column:6},end:{line:154,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:152},13:{loc:{start:{line:157,column:4},end:{line:159,column:5}},type:"if",locations:[{start:{line:157,column:4},end:{line:159,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:157},14:{loc:{start:{line:179,column:4},end:{line:184,column:5}},type:"if",locations:[{start:{line:179,column:4},end:{line:184,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:179},15:{loc:{start:{line:181,column:6},end:{line:183,column:7}},type:"if",locations:[{start:{line:181,column:6},end:{line:183,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:181},16:{loc:{start:{line:186,column:4},end:{line:188,column:5}},type:"if",locations:[{start:{line:186,column:4},end:{line:188,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:186},17:{loc:{start:{line:186,column:8},end:{line:186,column:52}},type:"binary-expr",locations:[{start:{line:186,column:8},end:{line:186,column:29}},{start:{line:186,column:33},end:{line:186,column:52}}],line:186},18:{loc:{start:{line:213,column:11},end:{line:215,column:27}},type:"cond-expr",locations:[{start:{line:214,column:8},end:{line:214,column:29}},{start:{line:215,column:8},end:{line:215,column:27}}],line:213},19:{loc:{start:{line:213,column:11},end:{line:213,column:82}},type:"binary-expr",locations:[{start:{line:213,column:11},end:{line:213,column:31}},{start:{line:213,column:35},end:{line:213,column:82}}],line:213},20:{loc:{start:{line:224,column:4},end:{line:226,column:5}},type:"if",locations:[{start:{line:224,column:4},end:{line:226,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:224},21:{loc:{start:{line:229,column:4},end:{line:231,column:5}},type:"if",locations:[{start:{line:229,column:4},end:{line:231,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:229},22:{loc:{start:{line:234,column:4},end:{line:236,column:5}},type:"if",locations:[{start:{line:234,column:4},end:{line:236,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:234},23:{loc:{start:{line:246,column:4},end:{line:251,column:5}},type:"if",locations:[{start:{line:246,column:4},end:{line:251,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:246},24:{loc:{start:{line:246,column:8},end:{line:246,column:53}},type:"binary-expr",locations:[{start:{line:246,column:8},end:{line:246,column:25}},{start:{line:246,column:29},end:{line:246,column:53}}],line:246},25:{loc:{start:{line:265,column:38},end:{line:265,column:82}},type:"binary-expr",locations:[{start:{line:265,column:38},end:{line:265,column:60}},{start:{line:265,column:64},end:{line:265,column:82}}],line:265},26:{loc:{start:{line:275,column:22},end:{line:275,column:66}},type:"binary-expr",locations:[{start:{line:275,column:22},end:{line:275,column:39}},{start:{line:275,column:43},end:{line:275,column:66}}],line:275},27:{loc:{start:{line:276,column:11},end:{line:276,column:84}},type:"cond-expr",locations:[{start:{line:276,column:49},end:{line:276,column:72}},{start:{line:276,column:75},end:{line:276,column:84}}],line:276},28:{loc:{start:{line:286,column:13},end:{line:286,column:57}},type:"cond-expr",locations:[{start:{line:286,column:40},end:{line:286,column:47}},{start:{line:286,column:50},end:{line:286,column:57}}],line:286},29:{loc:{start:{line:291,column:4},end:{line:293,column:5}},type:"if",locations:[{start:{line:291,column:4},end:{line:293,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:291},30:{loc:{start:{line:321,column:18},end:{line:321,column:38}},type:"binary-expr",locations:[{start:{line:321,column:18},end:{line:321,column:26}},{start:{line:321,column:30},end:{line:321,column:38}}],line:321},31:{loc:{start:{line:333,column:2},end:{line:335,column:3}},type:"if",locations:[{start:{line:333,column:2},end:{line:335,column:3}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:333}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0,39:0,40:0,41:0,42:0,43:0,44:0,45:0,46:0,47:0,48:0,49:0,50:0,51:0,52:0,53:0,54:0,55:0,56:0,57:0,58:0,59:0,60:0,61:0,62:0,63:0,64:0,65:0,66:0,67:0,68:0,69:0,70:0,71:0,72:0,73:0,74:0,75:0,76:0,77:0,78:0,79:0,80:0,81:0,82:0,83:0,84:0,85:0,86:0,87:0,88:0,89:0,90:0,91:0,92:0,93:0,94:0,95:0,96:0,97:0,98:0,99:0,100:0,101:0,102:0,103:0,104:0,105:0,106:0,107:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0},b:{0:[0],1:[0],2:[0],3:[0],4:[0],5:[0],6:[0],7:[0],8:[0,0],9:[0,0],10:[0,0],11:[0,0],12:[0,0],13:[0,0],14:[0,0],15:[0,0],16:[0,0],17:[0,0],18:[0,0],19:[0,0],20:[0,0],21:[0,0],22:[0,0],23:[0,0],24:[0,0],25:[0,0],26:[0,0],27:[0,0],28:[0,0],29:[0,0],30:[0,0],31:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"ee31c2f7d141329b5d782663da8c6ee2feeed8d9"},coverage=global[gcv]||(global[gcv]={});coverage[path]&&"ee31c2f7d141329b5d782663da8c6ee2feeed8d9"===coverage[path].hash||(coverage[path]=coverageData);var actualCoverage=coverage[path];return cov_107e24dr7=function(){return actualCoverage},actualCoverage}cov_107e24dr7();const TimelineContext=(cov_107e24dr7().s[0]++,(0,react.createContext)(void 0)),DEFAULT_DRAW_RANGE=(cov_107e24dr7().s[1]++,{start:0,end:0}),TIME_BLOCKS_PRELOAD=(cov_107e24dr7().s[2]++,5);cov_107e24dr7().s[3]++;const TimelineProvider=({children,columnWidth:externalColumnWidth,debug=(cov_107e24dr7().b[0][0]++,!1),displayTasksLabel=(cov_107e24dr7().b[1][0]++,!1),dragResolution:externalDragResolution,enableDrag=(cov_107e24dr7().b[2][0]++,!0),enableResize=(cov_107e24dr7().b[3][0]++,!0),headerLabel,hideResources=(cov_107e24dr7().b[4][0]++,!1),initialDateTime:externalInitialDateTime,onErrors,onTaskClick,onTaskChange,tasks:externalTasks=(cov_107e24dr7().b[5][0]++,[]),range:externalRange,resolution:externalResolution=(cov_107e24dr7().b[6][0]++,"1hrs"),resources:externalResources,rowHeight:externalRowHeight,timezone:externalTimezone,theme:externalTheme=(cov_107e24dr7().b[7][0]++,"light")})=>{cov_107e24dr7().f[0]++;const timezone=(cov_107e24dr7().s[4]++,(0,react.useMemo)((()=>{if(cov_107e24dr7().f[1]++,cov_107e24dr7().s[5]++,!externalTimezone)return cov_107e24dr7().b[8][0]++,cov_107e24dr7().s[6]++,"system";cov_107e24dr7().b[8][1]++;const dateCheck=(cov_107e24dr7().s[7]++,luxon.ou.fromMillis(0,{zone:externalTimezone}));return cov_107e24dr7().s[8]++,dateCheck.isValid?(cov_107e24dr7().b[9][1]++,cov_107e24dr7().s[10]++,externalTimezone):(cov_107e24dr7().b[9][0]++,cov_107e24dr7().s[9]++,"system")}),[externalTimezone])),[drawRange,setDrawRange]=(cov_107e24dr7().s[11]++,(0,react.useState)(DEFAULT_DRAW_RANGE));cov_107e24dr7().s[12]++,(0,react.useEffect)((()=>{cov_107e24dr7().f[2]++,cov_107e24dr7().s[13]++,(0,logger.yN)("TimelineProvider","Debug "+(debug?(cov_107e24dr7().b[10][0]++,"ON"):(cov_107e24dr7().b[10][1]++,"OFF"))),cov_107e24dr7().s[14]++,window.__MELFORE_KONVA_TIMELINE_DEBUG__=debug}),[debug]);const range=(cov_107e24dr7().s[15]++,(0,react.useMemo)((()=>{cov_107e24dr7().f[3]++;const{start:externalStart,end:externalEnd}=(cov_107e24dr7().s[16]++,externalRange),isStart=(cov_107e24dr7().s[17]++,(0,time.Af)(externalStart,"StartRenge")),isEnd=(cov_107e24dr7().s[18]++,(0,time.Af)(externalEnd,"EndRange")),start=(cov_107e24dr7().s[19]++,(0,time.hA)(externalStart,timezone)),end=(cov_107e24dr7().s[20]++,(0,time.hA)(externalEnd,timezone));if(cov_107e24dr7().s[21]++,isStart)return cov_107e24dr7().b[11][0]++,cov_107e24dr7().s[22]++,start<=end?(cov_107e24dr7().b[12][0]++,cov_107e24dr7().s[23]++,{start,end}):(cov_107e24dr7().b[12][1]++,cov_107e24dr7().s[24]++,{start,end:start});if(cov_107e24dr7().b[11][1]++,cov_107e24dr7().s[25]++,isEnd)return cov_107e24dr7().b[13][0]++,cov_107e24dr7().s[26]++,{start:end,end};cov_107e24dr7().b[13][1]++;const now=(cov_107e24dr7().s[27]++,luxon.ou.local().toMillis());return cov_107e24dr7().s[28]++,{start:now,end:now}}),[externalRange,timezone])),resolution=(cov_107e24dr7().s[29]++,(0,react.useMemo)((()=>(cov_107e24dr7().f[4]++,cov_107e24dr7().s[30]++,executeWithPerfomanceCheck("TimelineProvider","resolution",(()=>(cov_107e24dr7().f[5]++,cov_107e24dr7().s[31]++,(0,time_resolution.Ig)(externalResolution)))))),[externalResolution])),interval=(cov_107e24dr7().s[32]++,(0,react.useMemo)((()=>(cov_107e24dr7().f[6]++,cov_107e24dr7().s[33]++,executeWithPerfomanceCheck("TimelineProvider","interval",(()=>(cov_107e24dr7().f[7]++,cov_107e24dr7().s[34]++,(0,time.tA)(range,resolution,timezone)))))),[range,resolution,timezone])),initialDateTime=(cov_107e24dr7().s[35]++,(0,react.useMemo)((()=>{cov_107e24dr7().f[8]++;let initial=(cov_107e24dr7().s[36]++,luxon.ou.now().toMillis());return cov_107e24dr7().s[37]++,externalInitialDateTime?(cov_107e24dr7().b[14][0]++,cov_107e24dr7().s[38]++,initial=(0,time.n4)(externalInitialDateTime,timezone),cov_107e24dr7().s[39]++,Number.isNaN(initial)?(cov_107e24dr7().b[15][0]++,cov_107e24dr7().s[40]++,initial=(new Date).getTime()):cov_107e24dr7().b[15][1]++):cov_107e24dr7().b[14][1]++,cov_107e24dr7().s[41]++,cov_107e24dr7().b[17][0]++,initialrange.end)?(cov_107e24dr7().b[16][0]++,cov_107e24dr7().s[42]++,range.start):(cov_107e24dr7().b[16][1]++,cov_107e24dr7().s[43]++,initial)}),[externalInitialDateTime,range,timezone])),validTasks=(cov_107e24dr7().s[44]++,(0,react.useMemo)((()=>(cov_107e24dr7().f[9]++,cov_107e24dr7().s[45]++,executeWithPerfomanceCheck("TimelineProvider","validateTasks",(()=>(cov_107e24dr7().f[10]++,cov_107e24dr7().s[46]++,(0,utils_tasks.kN)(externalTasks,range,timezone)))))),[externalTasks,range,timezone])),timeBlocks=(cov_107e24dr7().s[47]++,(0,react.useMemo)((()=>(cov_107e24dr7().f[11]++,cov_107e24dr7().s[48]++,executeWithPerfomanceCheck("TimelineProvider","timeBlocks",(()=>(cov_107e24dr7().f[12]++,cov_107e24dr7().s[49]++,interval.splitBy({[resolution.unit]:resolution.sizeInUnits})))))),[interval,resolution])),aboveTimeBlocks=(cov_107e24dr7().s[50]++,(0,react.useMemo)((()=>(cov_107e24dr7().f[13]++,cov_107e24dr7().s[51]++,interval.splitBy({[resolution.unitAbove]:1}))),[interval,resolution])),columnWidth=(cov_107e24dr7().s[52]++,(0,react.useMemo)((()=>(cov_107e24dr7().f[14]++,cov_107e24dr7().s[53]++,(0,logger.o7)("TimelineProvider","Calculating columnWidth..."),cov_107e24dr7().s[54]++,cov_107e24dr7().b[19][0]++,!externalColumnWidth||(cov_107e24dr7().b[19][1]++,externalColumnWidth(cov_107e24dr7().f[15]++,cov_107e24dr7().s[56]++,Math.floor(drawRange.start/columnWidth))),[drawRange,columnWidth])),visibleTimeBlocks=(cov_107e24dr7().s[57]++,(0,react.useMemo)((()=>{cov_107e24dr7().f[16]++,cov_107e24dr7().s[58]++,(0,logger.o7)("TimelineProvider","Calculating visible time blocks...");const start=(cov_107e24dr7().s[59]++,luxon.ou.now().toMillis()),rangeLength=(cov_107e24dr7().s[60]++,drawRange.end-drawRange.start);if(cov_107e24dr7().s[61]++,rangeLength<=0)return cov_107e24dr7().b[20][0]++,cov_107e24dr7().s[62]++,[];cov_107e24dr7().b[20][1]++;let startIndex=(cov_107e24dr7().s[63]++,timeblocksOffset);cov_107e24dr7().s[64]++,startIndex>TIME_BLOCKS_PRELOAD?(cov_107e24dr7().b[21][0]++,cov_107e24dr7().s[65]++,startIndex=timeblocksOffset-TIME_BLOCKS_PRELOAD):cov_107e24dr7().b[21][1]++;let endIndex=(cov_107e24dr7().s[66]++,Math.ceil(drawRange.end/columnWidth));cov_107e24dr7().s[67]++,endIndex{cov_107e24dr7().f[17]++;let range=(cov_107e24dr7().s[74]++,null);return cov_107e24dr7().s[75]++,cov_107e24dr7().b[24][0]++,visibleTimeBlocks&&(cov_107e24dr7().b[24][1]++,visibleTimeBlocks.length)?(cov_107e24dr7().b[23][0]++,cov_107e24dr7().s[76]++,range={start:visibleTimeBlocks[0].start.toMillis(),end:visibleTimeBlocks[visibleTimeBlocks.length-1].end.toMillis()}):cov_107e24dr7().b[23][1]++,cov_107e24dr7().s[77]++,range}),[visibleTimeBlocks])),tasks=(cov_107e24dr7().s[78]++,(0,react.useMemo)((()=>(cov_107e24dr7().f[18]++,cov_107e24dr7().s[79]++,executeWithPerfomanceCheck("TimelineProvider","filterTasks",(()=>(cov_107e24dr7().f[19]++,cov_107e24dr7().s[80]++,(0,utils_tasks.yH)(validTasks.items,visibleRange)))))),[validTasks,visibleRange])),dragResolution=(cov_107e24dr7().s[81]++,(0,react.useMemo)((()=>{cov_107e24dr7().f[20]++,cov_107e24dr7().s[82]++,(0,logger.o7)("TimelineProvider","Calculating drag resolution...");const start=(cov_107e24dr7().s[83]++,luxon.ou.now().toMillis()),resData=(cov_107e24dr7().s[84]++,(0,time_resolution.Ig)((cov_107e24dr7().b[25][0]++,externalDragResolution||(cov_107e24dr7().b[25][1]++,externalResolution)))),end=(cov_107e24dr7().s[85]++,luxon.ou.now().toMillis());return cov_107e24dr7().s[86]++,(0,logger.o7)("TimelineProvider",`Drag resolution calculation took ${end-start} ms`),cov_107e24dr7().s[87]++,resData}),[externalDragResolution,externalResolution])),resources=(cov_107e24dr7().s[88]++,(0,react.useMemo)((()=>(cov_107e24dr7().f[21]++,cov_107e24dr7().s[89]++,(0,utils_resources.bL)(externalResources,headerLabel))),[externalResources,headerLabel])),rowHeight=(cov_107e24dr7().s[90]++,(0,react.useMemo)((()=>{cov_107e24dr7().f[22]++,cov_107e24dr7().s[91]++,(0,logger.o7)("TimelineProvider","Calculating rowHeight...");const rowHeight=(cov_107e24dr7().s[92]++,cov_107e24dr7().b[26][0]++,externalRowHeight||(cov_107e24dr7().b[26][1]++,dimensions.W4));return cov_107e24dr7().s[93]++,rowHeight(cov_107e24dr7().f[23]++,cov_107e24dr7().s[95]++,(0,logger.o7)("TimelineProvider","Calculating resources content height..."),cov_107e24dr7().s[96]++,rowHeight*resources.length)),[resources,rowHeight])),theme=(cov_107e24dr7().s[97]++,(0,react.useMemo)((()=>(cov_107e24dr7().f[24]++,cov_107e24dr7().s[98]++,{color:"dark"===externalTheme?(cov_107e24dr7().b[28][0]++,"white"):(cov_107e24dr7().b[28][1]++,"black")})),[externalTheme]));return cov_107e24dr7().s[99]++,(0,react.useEffect)((()=>{cov_107e24dr7().f[25]++,cov_107e24dr7().s[100]++,onErrors?(cov_107e24dr7().b[29][0]++,cov_107e24dr7().s[101]++,onErrors(validTasks.errors)):cov_107e24dr7().b[29][1]++}),[onErrors,validTasks]),cov_107e24dr7().s[102]++,(0,jsx_runtime.jsx)(TimelineContext.Provider,{value:{aboveTimeBlocks,columnWidth,displayTasksLabel,dragResolution,drawRange,enableDrag,enableResize,hideResources,initialDateTime,interval,onErrors,onTaskClick,onTaskChange,resolution,resolutionKey:externalResolution,resources,resourcesContentHeight,rowHeight,setDrawRange,tasks,theme,timeBlocks,timezone:(cov_107e24dr7().b[30][0]++,timezone||(cov_107e24dr7().b[30][1]++,"system")),visibleTimeBlocks,blocksOffset:timeblocksOffset},children})};TimelineProvider.displayName="TimelineProvider",cov_107e24dr7().s[103]++;const useTimelineContext=()=>{cov_107e24dr7().f[26]++;const context=(cov_107e24dr7().s[104]++,(0,react.useContext)(TimelineContext));if(cov_107e24dr7().s[105]++,void 0===context)throw cov_107e24dr7().b[31][0]++,cov_107e24dr7().s[106]++,new Error("useTimelineContext must be used within a TimelineProvider");return cov_107e24dr7().b[31][1]++,cov_107e24dr7().s[107]++,context};try{TimelineProvider.displayName="TimelineProvider",TimelineProvider.__docgenInfo={description:"",displayName:"TimelineProvider",props:{columnWidth:{defaultValue:null,description:"Custom column width (defaults to 60px)",name:"columnWidth",required:!1,type:{name:"number"}},displayTasksLabel:{defaultValue:{value:"false"},description:"Enables tasks label display",name:"displayTasksLabel",required:!1,type:{name:"boolean"}},dragResolution:{defaultValue:null,description:"Drag and drop resolution (if not passed, defaults to resolution)",name:"dragResolution",required:!1,type:{name:"enum",value:[{value:'"1min"'},{value:'"5min"'},{value:'"10min"'},{value:'"15min"'},{value:'"30min"'},{value:'"1hrs"'},{value:'"2hrs"'},{value:'"6hrs"'},{value:'"12hrs"'},{value:'"1day"'},{value:'"1week"'},{value:'"2weeks"'}]}},hideResources:{defaultValue:{value:"false"},description:"Flag to hide resource column (defaults to false)",name:"hideResources",required:!1,type:{name:"boolean"}},resolution:{defaultValue:null,description:"Resolution to display data in konva-timeline (defaults to 1hrs)",name:"resolution",required:!1,type:{name:"enum",value:[{value:'"1min"'},{value:'"5min"'},{value:'"10min"'},{value:'"15min"'},{value:'"30min"'},{value:'"1hrs"'},{value:'"2hrs"'},{value:'"6hrs"'},{value:'"12hrs"'},{value:'"1day"'},{value:'"1week"'},{value:'"2weeks"'}]}},rowHeight:{defaultValue:null,description:"Custom row height (defaults to 50px)",name:"rowHeight",required:!1,type:{name:"number"}},tasks:{defaultValue:null,description:"List of tasks to be displayed (defaults to [])",name:"tasks",required:!1,type:{name:"TaskData[]"}},range:{defaultValue:null,description:"Time range to be displayed",name:"range",required:!0,type:{name:"TimeRange"}},resources:{defaultValue:null,description:"List of resources to be displayed",name:"resources",required:!0,type:{name:"Resource[]"}},debug:{defaultValue:{value:"false"},description:"Enables debug logging in browser console",name:"debug",required:!1,type:{name:"boolean"}},enableDrag:{defaultValue:{value:"true"},description:"Enables drag&drop operation on tasks",name:"enableDrag",required:!1,type:{name:"boolean"}},enableResize:{defaultValue:{value:"true"},description:"Enables resize operation on tasks",name:"enableResize",required:!1,type:{name:"boolean"}},headerLabel:{defaultValue:null,description:"Label to display in header column",name:"headerLabel",required:!1,type:{name:"string"}},initialDateTime:{defaultValue:null,description:"Initial date time to scroll to",name:"initialDateTime",required:!1,type:{name:"string | number"}},onErrors:{defaultValue:null,description:"Callback invoked when errors are thrown",name:"onErrors",required:!1,type:{name:"((errors: KonvaTimelineError[]) => void)"}},onTaskClick:{defaultValue:null,description:"Event handler for task click",name:"onTaskClick",required:!1,type:{name:"((task: TaskData) => void)"}},onTaskChange:{defaultValue:null,description:"Event handler for task change event (drag and resize)",name:"onTaskChange",required:!1,type:{name:"((task: TaskData) => void)"}},timezone:{defaultValue:null,description:"Timezone used for display (defaults to 'system')",name:"timezone",required:!1,type:{name:"string"}},theme:{defaultValue:null,description:"Theme color in use",name:"theme",required:!1,type:{name:"enum",value:[{value:'"dark"'},{value:'"light"'}]}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/timeline/TimelineContext.tsx#TimelineProvider"]={docgenInfo:TimelineProvider.__docgenInfo,name:"TimelineProvider",path:"src/timeline/TimelineContext.tsx#TimelineProvider"})}catch(__react_docgen_typescript_loader_error){}},"./src/utils/dimensions.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{function cov_2q8nucg4m(){var path="/home/runner/work/konva-timeline/konva-timeline/src/utils/dimensions.ts",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"42995a9ba25a9fecb1da8b395ab2e273aeae97e7"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/konva-timeline/konva-timeline/src/utils/dimensions.ts",statementMap:{0:{start:{line:1,column:30},end:{line:1,column:31}},1:{start:{line:4,column:39},end:{line:4,column:41}},2:{start:{line:5,column:39},end:{line:5,column:66}},3:{start:{line:8,column:41},end:{line:8,column:43}},4:{start:{line:10,column:33},end:{line:10,column:53}},5:{start:{line:12,column:36},end:{line:12,column:37}}},fnMap:{},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0},f:{},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"42995a9ba25a9fecb1da8b395ab2e273aeae97e7"});var actualCoverage=coverage[path];return cov_2q8nucg4m=function(){return actualCoverage},actualCoverage}__webpack_require__.d(__webpack_exports__,{W4:()=>DEFAULT_GRID_ROW_HEIGHT,Z2:()=>DEFAULT_TEXT_SIZE,cM:()=>DEFAULT_GRID_COLUMN_WIDTH,tA:()=>DEFAULT_STROKE_WIDTH,xy:()=>MINIMUM_GRID_ROW_HEIGHT}),cov_2q8nucg4m();const BASE_DIMENSION=(cov_2q8nucg4m().s[0]++,8),DEFAULT_GRID_ROW_HEIGHT=(cov_2q8nucg4m().s[1]++,50),MINIMUM_GRID_ROW_HEIGHT=(cov_2q8nucg4m().s[2]++,DEFAULT_GRID_ROW_HEIGHT/2),DEFAULT_GRID_COLUMN_WIDTH=(cov_2q8nucg4m().s[3]++,60),DEFAULT_TEXT_SIZE=(cov_2q8nucg4m().s[4]++,1.5*BASE_DIMENSION),DEFAULT_STROKE_WIDTH=(cov_2q8nucg4m().s[5]++,1)},"./src/utils/logger.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{function cov_1kiijbyup6(){var path="/home/runner/work/konva-timeline/konva-timeline/src/utils/logger.ts",global=new Function("return this")(),gcv="__coverage__",coverageData={path:"/home/runner/work/konva-timeline/konva-timeline/src/utils/logger.ts",statementMap:{0:{start:{line:3,column:12},end:{line:3,column:39}},1:{start:{line:11,column:15},end:{line:26,column:1}},2:{start:{line:12,column:15},end:{line:12,column:49}},3:{start:{line:14,column:2},end:{line:25,column:3}},4:{start:{line:17,column:6},end:{line:17,column:25}},5:{start:{line:18,column:6},end:{line:18,column:13}},6:{start:{line:20,column:6},end:{line:20,column:26}},7:{start:{line:21,column:6},end:{line:21,column:13}},8:{start:{line:23,column:6},end:{line:23,column:25}},9:{start:{line:24,column:6},end:{line:24,column:13}},10:{start:{line:33,column:24},end:{line:39,column:1}},11:{start:{line:34,column:2},end:{line:36,column:3}},12:{start:{line:35,column:4},end:{line:35,column:11}},13:{start:{line:38,column:2},end:{line:38,column:38}},14:{start:{line:46,column:24},end:{line:46,column:99}},15:{start:{line:46,column:64},end:{line:46,column:99}},16:{start:{line:53,column:23},end:{line:53,column:97}},17:{start:{line:53,column:63},end:{line:53,column:97}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:11,column:15},end:{line:11,column:16}},loc:{start:{line:11,column:72},end:{line:26,column:1}},line:11},1:{name:"(anonymous_1)",decl:{start:{line:33,column:24},end:{line:33,column:25}},loc:{start:{line:33,column:64},end:{line:39,column:1}},line:33},2:{name:"(anonymous_2)",decl:{start:{line:46,column:24},end:{line:46,column:25}},loc:{start:{line:46,column:64},end:{line:46,column:99}},line:46},3:{name:"(anonymous_3)",decl:{start:{line:53,column:23},end:{line:53,column:24}},loc:{start:{line:53,column:63},end:{line:53,column:97}},line:53}},branchMap:{0:{loc:{start:{line:14,column:2},end:{line:25,column:3}},type:"switch",locations:[{start:{line:15,column:4},end:{line:18,column:13}},{start:{line:19,column:4},end:{line:21,column:13}},{start:{line:22,column:4},end:{line:24,column:13}}],line:14},1:{loc:{start:{line:34,column:2},end:{line:36,column:3}},type:"if",locations:[{start:{line:34,column:2},end:{line:36,column:3}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:34}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0},f:{0:0,1:0,2:0,3:0},b:{0:[0,0,0],1:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"0ffcb3d5c8449e2e3100356f81fd198d442136f5"},coverage=global[gcv]||(global[gcv]={});coverage[path]&&"0ffcb3d5c8449e2e3100356f81fd198d442136f5"===coverage[path].hash||(coverage[path]=coverageData);var actualCoverage=coverage[path];return cov_1kiijbyup6=function(){return actualCoverage},actualCoverage}__webpack_require__.d(__webpack_exports__,{H:()=>logError,o7:()=>logDebug,yN:()=>logWarn}),cov_1kiijbyup6();const TAG=(cov_1kiijbyup6().s[0]++,"[@melfore/konva-timeline]");cov_1kiijbyup6().s[1]++;const logger=(level,component,message)=>{cov_1kiijbyup6().f[0]++;const text=(cov_1kiijbyup6().s[2]++,`${TAG} ${component} - ${message}`);switch(cov_1kiijbyup6().s[3]++,level){case"debug":return cov_1kiijbyup6().b[0][0]++,cov_1kiijbyup6().s[4]++,console.info(text),void cov_1kiijbyup6().s[5]++;case"error":return cov_1kiijbyup6().b[0][1]++,cov_1kiijbyup6().s[6]++,console.error(text),void cov_1kiijbyup6().s[7]++;case"warn":return cov_1kiijbyup6().b[0][2]++,cov_1kiijbyup6().s[8]++,console.warn(text),void cov_1kiijbyup6().s[9]++}};cov_1kiijbyup6().s[10]++;const logDebug=(component,message)=>{if(cov_1kiijbyup6().f[1]++,cov_1kiijbyup6().s[11]++,!window.__MELFORE_KONVA_TIMELINE_DEBUG__)return cov_1kiijbyup6().b[1][0]++,void cov_1kiijbyup6().s[12]++;cov_1kiijbyup6().b[1][1]++,cov_1kiijbyup6().s[13]++,logger("debug",component,message)};cov_1kiijbyup6().s[14]++;const logError=(component,message)=>(cov_1kiijbyup6().f[2]++,cov_1kiijbyup6().s[15]++,logger("error",component,message));cov_1kiijbyup6().s[16]++;const logWarn=(component,message)=>(cov_1kiijbyup6().f[3]++,cov_1kiijbyup6().s[17]++,logger("warn",component,message))},"./src/utils/time-resolution.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A7:()=>displayAboveInterval,Ig:()=>getResolutionData,kv:()=>displayInterval});var _dimensions__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./src/utils/dimensions.ts");function cov_2g3dhmrjds(){var path="/home/runner/work/konva-timeline/konva-timeline/src/utils/time-resolution.ts",global=new Function("return this")(),gcv="__coverage__",coverageData={path:"/home/runner/work/konva-timeline/konva-timeline/src/utils/time-resolution.ts",statementMap:{0:{start:{line:33,column:42},end:{line:118,column:1}},1:{start:{line:120,column:41},end:{line:133,column:1}},2:{start:{line:140,column:36},end:{line:159,column:1}},3:{start:{line:141,column:20},end:{line:141,column:28}},4:{start:{line:142,column:2},end:{line:144,column:3}},5:{start:{line:143,column:4},end:{line:143,column:15}},6:{start:{line:146,column:2},end:{line:158,column:3}},7:{start:{line:149,column:6},end:{line:149,column:46}},8:{start:{line:151,column:6},end:{line:151,column:47}},9:{start:{line:153,column:6},end:{line:153,column:72}},10:{start:{line:155,column:6},end:{line:155,column:36}},11:{start:{line:157,column:6},end:{line:157,column:19}},12:{start:{line:166,column:31},end:{line:186,column:1}},13:{start:{line:167,column:20},end:{line:167,column:28}},14:{start:{line:168,column:2},end:{line:170,column:3}},15:{start:{line:169,column:4},end:{line:169,column:15}},16:{start:{line:172,column:2},end:{line:185,column:3}},17:{start:{line:174,column:6},end:{line:174,column:34}},18:{start:{line:176,column:6},end:{line:176,column:37}},19:{start:{line:178,column:6},end:{line:178,column:38}},20:{start:{line:180,column:6},end:{line:180,column:42}},21:{start:{line:182,column:6},end:{line:182,column:40}},22:{start:{line:184,column:6},end:{line:184,column:19}},23:{start:{line:192,column:33},end:{line:192,column:91}},24:{start:{line:192,column:70},end:{line:192,column:91}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:140,column:36},end:{line:140,column:37}},loc:{start:{line:140,column:81},end:{line:159,column:1}},line:140},1:{name:"(anonymous_1)",decl:{start:{line:166,column:31},end:{line:166,column:32}},loc:{start:{line:166,column:76},end:{line:186,column:1}},line:166},2:{name:"(anonymous_2)",decl:{start:{line:192,column:33},end:{line:192,column:34}},loc:{start:{line:192,column:70},end:{line:192,column:91}},line:192}},branchMap:{0:{loc:{start:{line:142,column:2},end:{line:144,column:3}},type:"if",locations:[{start:{line:142,column:2},end:{line:144,column:3}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:142},1:{loc:{start:{line:146,column:2},end:{line:158,column:3}},type:"switch",locations:[{start:{line:147,column:4},end:{line:147,column:18}},{start:{line:148,column:4},end:{line:149,column:46}},{start:{line:150,column:4},end:{line:151,column:47}},{start:{line:152,column:4},end:{line:153,column:72}},{start:{line:154,column:4},end:{line:155,column:36}},{start:{line:156,column:4},end:{line:157,column:19}}],line:146},2:{loc:{start:{line:168,column:2},end:{line:170,column:3}},type:"if",locations:[{start:{line:168,column:2},end:{line:170,column:3}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:168},3:{loc:{start:{line:172,column:2},end:{line:185,column:3}},type:"switch",locations:[{start:{line:173,column:4},end:{line:174,column:34}},{start:{line:175,column:4},end:{line:176,column:37}},{start:{line:177,column:4},end:{line:178,column:38}},{start:{line:179,column:4},end:{line:180,column:42}},{start:{line:181,column:4},end:{line:182,column:40}},{start:{line:183,column:4},end:{line:184,column:19}}],line:172}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0},f:{0:0,1:0,2:0},b:{0:[0,0],1:[0,0,0,0,0,0],2:[0,0],3:[0,0,0,0,0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"96e15a846124348c681af0d2d3e26641678ef382"},coverage=global[gcv]||(global[gcv]={});coverage[path]&&"96e15a846124348c681af0d2d3e26641678ef382"===coverage[path].hash||(coverage[path]=coverageData);var actualCoverage=coverage[path];return cov_2g3dhmrjds=function(){return actualCoverage},actualCoverage}cov_2g3dhmrjds();const RESOLUTIONS_DATA=(cov_2g3dhmrjds().s[0]++,{"1min":{columnSize:_dimensions__WEBPACK_IMPORTED_MODULE_0__.cM/2,label:"1 Minute",sizeInUnits:1,unit:"minute",unitAbove:"hour"},"5min":{columnSize:_dimensions__WEBPACK_IMPORTED_MODULE_0__.cM/2,label:"5 Minutes",sizeInUnits:5,unit:"minute",unitAbove:"hour"},"10min":{columnSize:_dimensions__WEBPACK_IMPORTED_MODULE_0__.cM/2,label:"10 Minutes",sizeInUnits:10,unit:"minute",unitAbove:"hour"},"15min":{columnSize:_dimensions__WEBPACK_IMPORTED_MODULE_0__.cM,label:"15 Minutes",sizeInUnits:15,unit:"minute",unitAbove:"hour"},"30min":{columnSize:_dimensions__WEBPACK_IMPORTED_MODULE_0__.cM,label:"30 Minutes",sizeInUnits:30,unit:"minute",unitAbove:"hour"},"1hrs":{columnSize:_dimensions__WEBPACK_IMPORTED_MODULE_0__.cM,label:"1 Hour",sizeInUnits:1,unit:"hour",unitAbove:"day"},"2hrs":{columnSize:_dimensions__WEBPACK_IMPORTED_MODULE_0__.cM,label:"2 Hours",sizeInUnits:2,unit:"hour",unitAbove:"day"},"6hrs":{columnSize:2*_dimensions__WEBPACK_IMPORTED_MODULE_0__.cM,label:"1/4 of Day",sizeInUnits:6,unit:"hour",unitAbove:"day"},"12hrs":{columnSize:3*_dimensions__WEBPACK_IMPORTED_MODULE_0__.cM,label:"1/2 of Day",sizeInUnits:12,unit:"hour",unitAbove:"day"},"1day":{columnSize:3*_dimensions__WEBPACK_IMPORTED_MODULE_0__.cM,label:"1 Day",sizeInUnits:1,unit:"day",unitAbove:"week"},"1week":{columnSize:10*_dimensions__WEBPACK_IMPORTED_MODULE_0__.cM,label:"1 Week",sizeInUnits:1,unit:"week",unitAbove:"month"},"2weeks":{columnSize:10*_dimensions__WEBPACK_IMPORTED_MODULE_0__.cM,label:"2 Weeks",sizeInUnits:2,unit:"week",unitAbove:"month"}});cov_2g3dhmrjds().s[1]++;cov_2g3dhmrjds().s[2]++;const displayAboveInterval=(interval,unit)=>{cov_2g3dhmrjds().f[0]++;const{start}=(cov_2g3dhmrjds().s[3]++,interval);if(cov_2g3dhmrjds().s[4]++,!start)return cov_2g3dhmrjds().b[0][0]++,cov_2g3dhmrjds().s[5]++,"-";switch(cov_2g3dhmrjds().b[0][1]++,cov_2g3dhmrjds().s[6]++,unit){case"minute":cov_2g3dhmrjds().b[1][0]++;case"hour":return cov_2g3dhmrjds().b[1][1]++,cov_2g3dhmrjds().s[7]++,start.toFormat("dd/MM/yy HH:mm");case"day":return cov_2g3dhmrjds().b[1][2]++,cov_2g3dhmrjds().s[8]++,start.toFormat("ccc dd MMM yyyy");case"week":return cov_2g3dhmrjds().b[1][3]++,cov_2g3dhmrjds().s[9]++,`${start.toFormat("MMM yyyy")} CW ${start.toFormat("WW")}`;case"month":return cov_2g3dhmrjds().b[1][4]++,cov_2g3dhmrjds().s[10]++,start.toFormat("yyyy");default:return cov_2g3dhmrjds().b[1][5]++,cov_2g3dhmrjds().s[11]++,"N/A"}};cov_2g3dhmrjds().s[12]++;const displayInterval=(interval,unit)=>{cov_2g3dhmrjds().f[1]++;const{start}=(cov_2g3dhmrjds().s[13]++,interval);if(cov_2g3dhmrjds().s[14]++,!start)return cov_2g3dhmrjds().b[2][0]++,cov_2g3dhmrjds().s[15]++,"-";switch(cov_2g3dhmrjds().b[2][1]++,cov_2g3dhmrjds().s[16]++,unit){case"minute":return cov_2g3dhmrjds().b[3][0]++,cov_2g3dhmrjds().s[17]++,start.toFormat("mm");case"hour":return cov_2g3dhmrjds().b[3][1]++,cov_2g3dhmrjds().s[18]++,start.toFormat("HH:mm");case"day":return cov_2g3dhmrjds().b[3][2]++,cov_2g3dhmrjds().s[19]++,start.toFormat("ccc dd");case"week":return cov_2g3dhmrjds().b[3][3]++,cov_2g3dhmrjds().s[20]++,`CW ${start.toFormat("WW")}`;case"month":return cov_2g3dhmrjds().b[3][4]++,cov_2g3dhmrjds().s[21]++,start.toFormat("MMM yyyy");default:return cov_2g3dhmrjds().b[3][5]++,cov_2g3dhmrjds().s[22]++,"N/A"}};cov_2g3dhmrjds().s[23]++;const getResolutionData=key=>(cov_2g3dhmrjds().f[2]++,cov_2g3dhmrjds().s[24]++,RESOLUTIONS_DATA[key])},"./src/utils/time.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{Af:()=>isValidRangeTime,hA:()=>getValidRangeTime,n4:()=>getValidTime,tA:()=>getIntervalFromInternalTimeRange});var luxon__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/luxon/src/luxon.js"),_logger__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/utils/logger.ts");function cov_2pww01mykf(){var path="/home/runner/work/konva-timeline/konva-timeline/src/utils/time.ts",global=new Function("return this")(),gcv="__coverage__",coverageData={path:"/home/runner/work/konva-timeline/konva-timeline/src/utils/time.ts",statementMap:{0:{start:{line:28,column:28},end:{line:44,column:1}},1:{start:{line:29,column:13},end:{line:29,column:33}},2:{start:{line:31,column:2},end:{line:41,column:3}},3:{start:{line:33,column:6},end:{line:33,column:26}},4:{start:{line:34,column:6},end:{line:34,column:12}},5:{start:{line:36,column:6},end:{line:36,column:69}},6:{start:{line:37,column:6},end:{line:37,column:12}},7:{start:{line:39,column:6},end:{line:39,column:72}},8:{start:{line:40,column:6},end:{line:40,column:12}},9:{start:{line:43,column:2},end:{line:43,column:22}},10:{start:{line:46,column:33},end:{line:52,column:1}},11:{start:{line:47,column:13},end:{line:47,column:33}},12:{start:{line:48,column:20},end:{line:48,column:34}},13:{start:{line:49,column:23},end:{line:49,column:78}},14:{start:{line:51,column:2},end:{line:51,column:22}},15:{start:{line:54,column:32},end:{line:62,column:1}},16:{start:{line:55,column:20},end:{line:55,column:34}},17:{start:{line:56,column:26},end:{line:56,column:64}},18:{start:{line:57,column:2},end:{line:59,column:3}},19:{start:{line:58,column:4},end:{line:58,column:16}},20:{start:{line:60,column:2},end:{line:60,column:33}},21:{start:{line:61,column:2},end:{line:61,column:15}},22:{start:{line:68,column:48},end:{line:77,column:1}},23:{start:{line:73,column:13},end:{line:73,column:33}},24:{start:{line:74,column:24},end:{line:74,column:94}},25:{start:{line:75,column:22},end:{line:75,column:88}},26:{start:{line:76,column:2},end:{line:76,column:60}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:28,column:28},end:{line:28,column:29}},loc:{start:{line:28,column:87},end:{line:44,column:1}},line:28},1:{name:"(anonymous_1)",decl:{start:{line:46,column:33},end:{line:46,column:34}},loc:{start:{line:46,column:92},end:{line:52,column:1}},line:46},2:{name:"(anonymous_2)",decl:{start:{line:54,column:32},end:{line:54,column:33}},loc:{start:{line:54,column:76},end:{line:62,column:1}},line:54},3:{name:"(anonymous_3)",decl:{start:{line:68,column:48},end:{line:68,column:49}},loc:{start:{line:72,column:15},end:{line:77,column:1}},line:72}},branchMap:{0:{loc:{start:{line:29,column:13},end:{line:29,column:33}},type:"binary-expr",locations:[{start:{line:29,column:13},end:{line:29,column:21}},{start:{line:29,column:25},end:{line:29,column:33}}],line:29},1:{loc:{start:{line:31,column:2},end:{line:41,column:3}},type:"switch",locations:[{start:{line:32,column:4},end:{line:34,column:12}},{start:{line:35,column:4},end:{line:37,column:12}},{start:{line:38,column:4},end:{line:40,column:12}}],line:31},2:{loc:{start:{line:47,column:13},end:{line:47,column:33}},type:"binary-expr",locations:[{start:{line:47,column:13},end:{line:47,column:21}},{start:{line:47,column:25},end:{line:47,column:33}}],line:47},3:{loc:{start:{line:57,column:2},end:{line:59,column:3}},type:"if",locations:[{start:{line:57,column:2},end:{line:59,column:3}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:57},4:{loc:{start:{line:73,column:13},end:{line:73,column:33}},type:"binary-expr",locations:[{start:{line:73,column:13},end:{line:73,column:21}},{start:{line:73,column:25},end:{line:73,column:33}}],line:73}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0},f:{0:0,1:0,2:0,3:0},b:{0:[0,0],1:[0,0,0],2:[0,0],3:[0,0],4:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"988d016614d215a914e7aa39d21761fe876e82fb"},coverage=global[gcv]||(global[gcv]={});coverage[path]&&"988d016614d215a914e7aa39d21761fe876e82fb"===coverage[path].hash||(coverage[path]=coverageData);var actualCoverage=coverage[path];return cov_2pww01mykf=function(){return actualCoverage},actualCoverage}cov_2pww01mykf(),cov_2pww01mykf().s[0]++;const getValidTime=(date,timezone)=>{cov_2pww01mykf().f[0]++;const tz=(cov_2pww01mykf().s[1]++,cov_2pww01mykf().b[0][0]++,timezone||(cov_2pww01mykf().b[0][1]++,"system"));let dateInMillis;switch(cov_2pww01mykf().s[2]++,typeof date){case"number":cov_2pww01mykf().b[1][0]++,cov_2pww01mykf().s[3]++,dateInMillis=date,cov_2pww01mykf().s[4]++;break;case"string":cov_2pww01mykf().b[1][1]++,cov_2pww01mykf().s[5]++,dateInMillis=luxon__WEBPACK_IMPORTED_MODULE_0__.ou.fromISO(date,{zone:tz}).toMillis(),cov_2pww01mykf().s[6]++;break;case"object":cov_2pww01mykf().b[1][2]++,cov_2pww01mykf().s[7]++,dateInMillis=luxon__WEBPACK_IMPORTED_MODULE_0__.ou.fromJSDate(date,{zone:tz}).toMillis(),cov_2pww01mykf().s[8]++}return cov_2pww01mykf().s[9]++,dateInMillis};cov_2pww01mykf().s[10]++;const getValidRangeTime=(date,timezone)=>{cov_2pww01mykf().f[1]++;const tz=(cov_2pww01mykf().s[11]++,cov_2pww01mykf().b[2][0]++,timezone||(cov_2pww01mykf().b[2][1]++,"system")),validDate=(cov_2pww01mykf().s[12]++,new Date(date)),dateInMillis=(cov_2pww01mykf().s[13]++,luxon__WEBPACK_IMPORTED_MODULE_0__.ou.fromJSDate(validDate,{zone:tz}).toMillis());return cov_2pww01mykf().s[14]++,dateInMillis};cov_2pww01mykf().s[15]++;const isValidRangeTime=(date,name)=>{cov_2pww01mykf().f[2]++;const validDate=(cov_2pww01mykf().s[16]++,new Date(date)),isValidDateTime=(cov_2pww01mykf().s[17]++,luxon__WEBPACK_IMPORTED_MODULE_0__.ou.fromJSDate(validDate).isValid);return cov_2pww01mykf().s[18]++,isValidDateTime?(cov_2pww01mykf().b[3][0]++,cov_2pww01mykf().s[19]++,!0):(cov_2pww01mykf().b[3][1]++,cov_2pww01mykf().s[20]++,(0,_logger__WEBPACK_IMPORTED_MODULE_1__.H)(name,"Invalid Date"),cov_2pww01mykf().s[21]++,!1)};cov_2pww01mykf().s[22]++;const getIntervalFromInternalTimeRange=({start,end},resolution,timezone)=>{cov_2pww01mykf().f[3]++;const tz=(cov_2pww01mykf().s[23]++,cov_2pww01mykf().b[4][0]++,timezone||(cov_2pww01mykf().b[4][1]++,"system")),startDateTime=(cov_2pww01mykf().s[24]++,luxon__WEBPACK_IMPORTED_MODULE_0__.ou.fromMillis(start,{zone:tz}).startOf(resolution.unitAbove)),endDateTime=(cov_2pww01mykf().s[25]++,luxon__WEBPACK_IMPORTED_MODULE_0__.ou.fromMillis(end,{zone:tz}).endOf(resolution.unitAbove));return cov_2pww01mykf().s[26]++,luxon__WEBPACK_IMPORTED_MODULE_0__.Xp.fromDateTimes(startDateTime,endDateTime)}}}]); \ No newline at end of file +"use strict";(self.webpackChunk_melfore_konva_timeline=self.webpackChunk_melfore_konva_timeline||[]).push([[861],{"./src/KonvaTimeline/stories-data.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{function cov_182tke322c(){var path="/home/runner/work/konva-timeline/konva-timeline/src/KonvaTimeline/stories-data.ts",global=new Function("return this")(),gcv="__coverage__",coverageData={path:"/home/runner/work/konva-timeline/konva-timeline/src/KonvaTimeline/stories-data.ts",statementMap:{0:{start:{line:18,column:36},end:{line:18,column:50}},1:{start:{line:20,column:37},end:{line:20,column:73}},2:{start:{line:22,column:23},end:{line:29,column:1}},3:{start:{line:23,column:14},end:{line:23,column:16}},4:{start:{line:24,column:2},end:{line:26,column:3}},5:{start:{line:25,column:4},end:{line:25,column:62}},6:{start:{line:28,column:2},end:{line:28,column:15}},7:{start:{line:31,column:26},end:{line:43,column:1}},8:{start:{line:32,column:32},end:{line:32,column:34}},9:{start:{line:34,column:2},end:{line:40,column:3}},10:{start:{line:34,column:15},end:{line:34,column:16}},11:{start:{line:35,column:4},end:{line:39,column:7}},12:{start:{line:42,column:2},end:{line:42,column:19}},13:{start:{line:45,column:22},end:{line:75,column:1}},14:{start:{line:50,column:47},end:{line:50,column:49}},15:{start:{line:52,column:2},end:{line:72,column:3}},16:{start:{line:52,column:15},end:{line:52,column:16}},17:{start:{line:53,column:23},end:{line:53,column:74}},18:{start:{line:54,column:32},end:{line:54,column:94}},19:{start:{line:54,column:63},end:{line:54,column:93}},20:{start:{line:56,column:16},end:{line:56,column:47}},21:{start:{line:57,column:4},end:{line:62,column:5}},22:{start:{line:58,column:6},end:{line:61,column:75}},23:{start:{line:64,column:16},end:{line:64,column:90}},24:{start:{line:66,column:4},end:{line:71,column:7}},25:{start:{line:74,column:2},end:{line:74,column:15}},26:{start:{line:77,column:26},end:{line:82,column:1}},27:{start:{line:78,column:16},end:{line:78,column:47}},28:{start:{line:79,column:14},end:{line:79,column:103}},29:{start:{line:81,column:2},end:{line:81,column:24}},30:{start:{line:84,column:33},end:{line:95,column:1}},31:{start:{line:90,column:20},end:{line:90,column:53}},32:{start:{line:91,column:16},end:{line:91,column:87}},33:{start:{line:92,column:16},end:{line:92,column:50}},34:{start:{line:94,column:2},end:{line:94,column:37}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:22,column:23},end:{line:22,column:24}},loc:{start:{line:22,column:29},end:{line:29,column:1}},line:22},1:{name:"(anonymous_1)",decl:{start:{line:31,column:26},end:{line:31,column:27}},loc:{start:{line:31,column:57},end:{line:43,column:1}},line:31},2:{name:"(anonymous_2)",decl:{start:{line:45,column:22},end:{line:45,column:23}},loc:{start:{line:49,column:36},end:{line:75,column:1}},line:49},3:{name:"(anonymous_3)",decl:{start:{line:54,column:53},end:{line:54,column:54}},loc:{start:{line:54,column:63},end:{line:54,column:93}},line:54},4:{name:"(anonymous_4)",decl:{start:{line:77,column:26},end:{line:77,column:27}},loc:{start:{line:77,column:73},end:{line:82,column:1}},line:77},5:{name:"(anonymous_5)",decl:{start:{line:84,column:33},end:{line:84,column:34}},loc:{start:{line:89,column:33},end:{line:95,column:1}},line:89}},branchMap:{0:{loc:{start:{line:57,column:4},end:{line:62,column:5}},type:"if",locations:[{start:{line:57,column:4},end:{line:62,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:57}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0},f:{0:0,1:0,2:0,3:0,4:0,5:0},b:{0:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"984dfe5615b7b5b63958974a350c76cec6799980"},coverage=global[gcv]||(global[gcv]={});coverage[path]&&"984dfe5615b7b5b63958974a350c76cec6799980"===coverage[path].hash||(coverage[path]=coverageData);var actualCoverage=coverage[path];return cov_182tke322c=function(){return actualCoverage},actualCoverage}__webpack_require__.d(__webpack_exports__,{bm:()=>generateStoryData}),cov_182tke322c();cov_182tke322c().s[0]++;const TIME_RANGE_START_DATE=(cov_182tke322c().s[1]++,new Date("2019-12-31T23:00:00.000Z"));cov_182tke322c().s[2]++;const getRandomColor=()=>{cov_182tke322c().f[0]++;let color=(cov_182tke322c().s[3]++,"");for(cov_182tke322c().s[4]++;6!==color.length;)cov_182tke322c().s[5]++,color=Math.floor(16777215*Math.random()).toString(16);return cov_182tke322c().s[6]++,color};cov_182tke322c().s[7]++;cov_182tke322c().s[13]++;cov_182tke322c().s[26]++;cov_182tke322c().s[30]++;const generateStoryData=({averageTaskDurationInMinutes,resourcesCount,tasksCount,timeRangeInDays})=>{cov_182tke322c().f[5]++;const resources=(cov_182tke322c().s[31]++,(count=>{cov_182tke322c().f[1]++;const resources=(cov_182tke322c().s[8]++,[]);cov_182tke322c().s[9]++;for(let i=(cov_182tke322c().s[10]++,1);i<=count;i++)cov_182tke322c().s[11]++,resources.push({id:`${i}`,label:`Resource #${i}`,color:`#${getRandomColor()}`});return cov_182tke322c().s[12]++,resources})(resourcesCount)),tasks=(cov_182tke322c().s[32]++,((count,avgDurationInMinutes,resourcesCount)=>{cov_182tke322c().f[2]++;const tasks=(cov_182tke322c().s[14]++,[]);cov_182tke322c().s[15]++;for(let i=(cov_182tke322c().s[16]++,1);i<=count;i++){const resourceId=(cov_182tke322c().s[17]++,`${Math.floor(Math.random()*resourcesCount)+1}`),lastTaskForResource=(cov_182tke322c().s[18]++,tasks.reverse().find((task=>(cov_182tke322c().f[3]++,cov_182tke322c().s[19]++,task.resourceId===resourceId))));let start=(cov_182tke322c().s[20]++,TIME_RANGE_START_DATE.valueOf());cov_182tke322c().s[21]++,lastTaskForResource?(cov_182tke322c().b[0][0]++,cov_182tke322c().s[22]++,start=lastTaskForResource.time.end+Math.floor(avgDurationInMinutes/2)+60*Math.floor(Math.random()*(2*avgDurationInMinutes))*1e3):cov_182tke322c().b[0][1]++;const end=(cov_182tke322c().s[23]++,start+60*Math.floor(Math.random()*(2*avgDurationInMinutes))*1e3);cov_182tke322c().s[24]++,tasks.push({id:`${i}`,resourceId,label:`Task #${i}`,time:{start,end}})}return cov_182tke322c().s[25]++,tasks})(tasksCount,averageTaskDurationInMinutes,resourcesCount)),range=(cov_182tke322c().s[33]++,(durationInDays=>{cov_182tke322c().f[4]++;const start=(cov_182tke322c().s[27]++,TIME_RANGE_START_DATE.valueOf()),end=(cov_182tke322c().s[28]++,TIME_RANGE_START_DATE.setDate(TIME_RANGE_START_DATE.getDate()+durationInDays).valueOf());return cov_182tke322c().s[29]++,{start,end}})(timeRangeInDays));return cov_182tke322c().s[34]++,{resources,tasks,range}}},"./src/resources/utils/resources.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{function cov_9ptvw0d93(){var path="/home/runner/work/konva-timeline/konva-timeline/src/resources/utils/resources.ts",global=new Function("return this")(),gcv="__coverage__",coverageData={path:"/home/runner/work/konva-timeline/konva-timeline/src/resources/utils/resources.ts",statementMap:{0:{start:{line:16,column:34},end:{line:20,column:1}},1:{start:{line:22,column:37},end:{line:22,column:40}},2:{start:{line:24,column:36},end:{line:24,column:38}},3:{start:{line:30,column:33},end:{line:33,column:1}},4:{start:{line:30,column:94},end:{line:33,column:1}},5:{start:{line:43,column:45},end:{line:59,column:1}},6:{start:{line:44,column:2},end:{line:47,column:3}},7:{start:{line:46,column:4},end:{line:46,column:42}},8:{start:{line:49,column:22},end:{line:49,column:56}},9:{start:{line:50,column:2},end:{line:52,column:3}},10:{start:{line:51,column:4},end:{line:51,column:22}},11:{start:{line:54,column:2},end:{line:56,column:3}},12:{start:{line:55,column:4},end:{line:55,column:41}},13:{start:{line:58,column:2},end:{line:58,column:23}},14:{start:{line:68,column:40},end:{line:71,column:1}},15:{start:{line:69,column:24},end:{line:69,column:87}},16:{start:{line:70,column:2},end:{line:70,column:34}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:30,column:33},end:{line:30,column:34}},loc:{start:{line:30,column:94},end:{line:33,column:1}},line:30},1:{name:"(anonymous_1)",decl:{start:{line:43,column:45},end:{line:43,column:46}},loc:{start:{line:43,column:119},end:{line:59,column:1}},line:43},2:{name:"(anonymous_2)",decl:{start:{line:68,column:40},end:{line:68,column:41}},loc:{start:{line:68,column:116},end:{line:71,column:1}},line:68}},branchMap:{0:{loc:{start:{line:31,column:31},end:{line:31,column:67}},type:"binary-expr",locations:[{start:{line:31,column:31},end:{line:31,column:42}},{start:{line:31,column:46},end:{line:31,column:67}}],line:31},1:{loc:{start:{line:44,column:2},end:{line:47,column:3}},type:"if",locations:[{start:{line:44,column:2},end:{line:47,column:3}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:44},2:{loc:{start:{line:44,column:6},end:{line:44,column:37}},type:"binary-expr",locations:[{start:{line:44,column:6},end:{line:44,column:16}},{start:{line:44,column:20},end:{line:44,column:37}}],line:44},3:{loc:{start:{line:50,column:2},end:{line:52,column:3}},type:"if",locations:[{start:{line:50,column:2},end:{line:52,column:3}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:50},4:{loc:{start:{line:54,column:2},end:{line:56,column:3}},type:"if",locations:[{start:{line:54,column:2},end:{line:56,column:3}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:54}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0},f:{0:0,1:0,2:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"65d656f403ba6f7608731b177c69ff88c8d4756c"},coverage=global[gcv]||(global[gcv]={});coverage[path]&&"65d656f403ba6f7608731b177c69ff88c8d4756c"===coverage[path].hash||(coverage[path]=coverageData);var actualCoverage=coverage[path];return cov_9ptvw0d93=function(){return actualCoverage},actualCoverage}__webpack_require__.d(__webpack_exports__,{Ae:()=>findResourceIndexByCoordinate,D0:()=>RESOURCE_TEXT_OFFSET,K5:()=>findResourceByCoordinate,Oc:()=>RESOURCE_HEADER_WIDTH,bL:()=>addHeaderResource}),cov_9ptvw0d93();const RESOURCE_HEADER=(cov_9ptvw0d93().s[0]++,{id:"-1",color:"transparent",label:"Header"}),RESOURCE_HEADER_WIDTH=(cov_9ptvw0d93().s[1]++,200),RESOURCE_TEXT_OFFSET=(cov_9ptvw0d93().s[2]++,12);cov_9ptvw0d93().s[3]++;const addHeaderResource=(resources,headerLabel)=>(cov_9ptvw0d93().f[0]++,cov_9ptvw0d93().s[4]++,[{...RESOURCE_HEADER,label:(cov_9ptvw0d93().b[0][0]++,headerLabel||(cov_9ptvw0d93().b[0][1]++,RESOURCE_HEADER.label))},...resources]);cov_9ptvw0d93().s[5]++;const findResourceIndexByCoordinate=(coordinate,rowHeight,resources)=>{if(cov_9ptvw0d93().f[1]++,cov_9ptvw0d93().s[6]++,cov_9ptvw0d93().b[2][0]++,!resources||(cov_9ptvw0d93().b[2][1]++,!resources.length))throw cov_9ptvw0d93().b[1][0]++,cov_9ptvw0d93().s[7]++,new Error("Resources is empty");cov_9ptvw0d93().b[1][1]++;let resourceIndex=(cov_9ptvw0d93().s[8]++,Math.floor(coordinate/rowHeight));return cov_9ptvw0d93().s[9]++,resourceIndex<1?(cov_9ptvw0d93().b[3][0]++,cov_9ptvw0d93().s[10]++,resourceIndex=1):cov_9ptvw0d93().b[3][1]++,cov_9ptvw0d93().s[11]++,resources.length<=resourceIndex?(cov_9ptvw0d93().b[4][0]++,cov_9ptvw0d93().s[12]++,resourceIndex=resources.length-1):cov_9ptvw0d93().b[4][1]++,cov_9ptvw0d93().s[13]++,resourceIndex};cov_9ptvw0d93().s[14]++;const findResourceByCoordinate=(coordinate,rowHeight,resources)=>{cov_9ptvw0d93().f[2]++;const resourceIndex=(cov_9ptvw0d93().s[15]++,findResourceIndexByCoordinate(coordinate,rowHeight,resources));return cov_9ptvw0d93().s[16]++,resources[resourceIndex]}},"./src/tasks/utils/tasks.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{jj:()=>TASK_BORDER_RADIUS,kN:()=>validateTasks,rc:()=>getTaskYCoordinate,yH:()=>filterTasks});var _utils_time__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./src/utils/time.ts");function cov_iow4v29cs(){var path="/home/runner/work/konva-timeline/konva-timeline/src/tasks/utils/tasks.ts",global=new Function("return this")(),gcv="__coverage__",coverageData={path:"/home/runner/work/konva-timeline/konva-timeline/src/tasks/utils/tasks.ts",statementMap:{0:{start:{line:25,column:22},end:{line:25,column:25}},1:{start:{line:27,column:34},end:{line:27,column:35}},2:{start:{line:34,column:34},end:{line:35,column:50}},3:{start:{line:35,column:2},end:{line:35,column:50}},4:{start:{line:42,column:29},end:{line:82,column:1}},5:{start:{line:47,column:13},end:{line:47,column:33}},6:{start:{line:48,column:2},end:{line:50,column:3}},7:{start:{line:49,column:4},end:{line:49,column:100}},8:{start:{line:52,column:2},end:{line:54,column:3}},9:{start:{line:53,column:4},end:{line:53,column:94}},10:{start:{line:56,column:39},end:{line:56,column:41}},11:{start:{line:57,column:16},end:{line:79,column:6}},12:{start:{line:59,column:46},end:{line:65,column:7}},13:{start:{line:68,column:6},end:{line:71,column:7}},14:{start:{line:69,column:8},end:{line:69,column:96}},15:{start:{line:70,column:8},end:{line:70,column:21}},16:{start:{line:73,column:6},end:{line:76,column:7}},17:{start:{line:74,column:8},end:{line:74,column:96}},18:{start:{line:75,column:8},end:{line:75,column:21}},19:{start:{line:78,column:6},end:{line:78,column:18}},20:{start:{line:81,column:2},end:{line:81,column:27}},21:{start:{line:89,column:27},end:{line:108,column:1}},22:{start:{line:93,column:2},end:{line:95,column:3}},23:{start:{line:94,column:4},end:{line:94,column:14}},24:{start:{line:97,column:2},end:{line:107,column:5}},25:{start:{line:98,column:4},end:{line:100,column:5}},26:{start:{line:99,column:6},end:{line:99,column:19}},27:{start:{line:102,column:4},end:{line:104,column:5}},28:{start:{line:103,column:6},end:{line:103,column:19}},29:{start:{line:106,column:4},end:{line:106,column:16}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:34,column:34},end:{line:34,column:35}},loc:{start:{line:35,column:2},end:{line:35,column:50}},line:35},1:{name:"(anonymous_1)",decl:{start:{line:42,column:29},end:{line:42,column:30}},loc:{start:{line:46,column:20},end:{line:82,column:1}},line:46},2:{name:"(anonymous_2)",decl:{start:{line:59,column:6},end:{line:59,column:7}},loc:{start:{line:59,column:46},end:{line:65,column:7}},line:59},3:{name:"(anonymous_3)",decl:{start:{line:67,column:12},end:{line:67,column:13}},loc:{start:{line:67,column:74},end:{line:79,column:5}},line:67},4:{name:"(anonymous_4)",decl:{start:{line:89,column:27},end:{line:89,column:28}},loc:{start:{line:92,column:36},end:{line:108,column:1}},line:92},5:{name:"(anonymous_5)",decl:{start:{line:97,column:22},end:{line:97,column:23}},loc:{start:{line:97,column:72},end:{line:107,column:3}},line:97}},branchMap:{0:{loc:{start:{line:47,column:13},end:{line:47,column:33}},type:"binary-expr",locations:[{start:{line:47,column:13},end:{line:47,column:21}},{start:{line:47,column:25},end:{line:47,column:33}}],line:47},1:{loc:{start:{line:48,column:2},end:{line:50,column:3}},type:"if",locations:[{start:{line:48,column:2},end:{line:50,column:3}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:48},2:{loc:{start:{line:48,column:6},end:{line:48,column:42}},type:"binary-expr",locations:[{start:{line:48,column:6},end:{line:48,column:12}},{start:{line:48,column:16},end:{line:48,column:28}},{start:{line:48,column:32},end:{line:48,column:42}}],line:48},3:{loc:{start:{line:52,column:2},end:{line:54,column:3}},type:"if",locations:[{start:{line:52,column:2},end:{line:54,column:3}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:52},4:{loc:{start:{line:52,column:6},end:{line:52,column:29}},type:"binary-expr",locations:[{start:{line:52,column:6},end:{line:52,column:12}},{start:{line:52,column:16},end:{line:52,column:29}}],line:52},5:{loc:{start:{line:68,column:6},end:{line:71,column:7}},type:"if",locations:[{start:{line:68,column:6},end:{line:71,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:68},6:{loc:{start:{line:73,column:6},end:{line:76,column:7}},type:"if",locations:[{start:{line:73,column:6},end:{line:76,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:73},7:{loc:{start:{line:73,column:10},end:{line:73,column:56}},type:"binary-expr",locations:[{start:{line:73,column:10},end:{line:73,column:31}},{start:{line:73,column:35},end:{line:73,column:56}}],line:73},8:{loc:{start:{line:93,column:2},end:{line:95,column:3}},type:"if",locations:[{start:{line:93,column:2},end:{line:95,column:3}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:93},9:{loc:{start:{line:93,column:6},end:{line:93,column:69}},type:"binary-expr",locations:[{start:{line:93,column:6},end:{line:93,column:12}},{start:{line:93,column:16},end:{line:93,column:28}},{start:{line:93,column:32},end:{line:93,column:42}},{start:{line:93,column:46},end:{line:93,column:52}},{start:{line:93,column:56},end:{line:93,column:69}}],line:93},10:{loc:{start:{line:98,column:4},end:{line:100,column:5}},type:"if",locations:[{start:{line:98,column:4},end:{line:100,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:98},11:{loc:{start:{line:102,column:4},end:{line:104,column:5}},type:"if",locations:[{start:{line:102,column:4},end:{line:104,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:102},12:{loc:{start:{line:102,column:8},end:{line:102,column:54}},type:"binary-expr",locations:[{start:{line:102,column:8},end:{line:102,column:29}},{start:{line:102,column:33},end:{line:102,column:54}}],line:102}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0},f:{0:0,1:0,2:0,3:0,4:0,5:0},b:{0:[0,0],1:[0,0],2:[0,0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0],7:[0,0],8:[0,0],9:[0,0,0,0,0],10:[0,0],11:[0,0],12:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"e1e4e8cef9f564e485007836d7e1711df2615e82"},coverage=global[gcv]||(global[gcv]={});coverage[path]&&"e1e4e8cef9f564e485007836d7e1711df2615e82"===coverage[path].hash||(coverage[path]=coverageData);var actualCoverage=coverage[path];return cov_iow4v29cs=function(){return actualCoverage},actualCoverage}cov_iow4v29cs();const TASK_OFFSET_Y=(cov_iow4v29cs().s[0]++,.1),TASK_BORDER_RADIUS=(cov_iow4v29cs().s[1]++,4);cov_iow4v29cs().s[2]++;const getTaskYCoordinate=(rowIndex,rowHeight)=>(cov_iow4v29cs().f[0]++,cov_iow4v29cs().s[3]++,rowHeight*rowIndex+rowHeight*TASK_OFFSET_Y);cov_iow4v29cs().s[4]++;const validateTasks=(tasks,range,timezone)=>{cov_iow4v29cs().f[1]++;const tz=(cov_iow4v29cs().s[5]++,cov_iow4v29cs().b[0][0]++,timezone||(cov_iow4v29cs().b[0][1]++,"system"));if(cov_iow4v29cs().s[6]++,cov_iow4v29cs().b[2][0]++,!(range&&(cov_iow4v29cs().b[2][1]++,range.start)&&(cov_iow4v29cs().b[2][2]++,range.end)))return cov_iow4v29cs().b[1][0]++,cov_iow4v29cs().s[7]++,{items:[],errors:[{entity:"timeline",level:"warn",message:"Invalid range"}]};if(cov_iow4v29cs().b[1][1]++,cov_iow4v29cs().s[8]++,cov_iow4v29cs().b[4][0]++,!tasks||(cov_iow4v29cs().b[4][1]++,!tasks.length))return cov_iow4v29cs().b[3][0]++,cov_iow4v29cs().s[9]++,{items:[],errors:[{entity:"timeline",level:"warn",message:"No data"}]};cov_iow4v29cs().b[3][1]++;const errors=(cov_iow4v29cs().s[10]++,[]),items=(cov_iow4v29cs().s[11]++,tasks.map((task=>(cov_iow4v29cs().f[2]++,cov_iow4v29cs().s[12]++,{...task,time:{start:(0,_utils_time__WEBPACK_IMPORTED_MODULE_0__.n4)(task.time.start,tz),end:(0,_utils_time__WEBPACK_IMPORTED_MODULE_0__.n4)(task.time.end,tz)}}))).filter((({id:taskId,time:{start:taskStart,end:taskEnd}})=>(cov_iow4v29cs().f[3]++,cov_iow4v29cs().s[13]++,taskStart>=taskEnd?(cov_iow4v29cs().b[5][0]++,cov_iow4v29cs().s[14]++,errors.push({entity:"task",level:"error",message:"Invalid time",refId:taskId}),cov_iow4v29cs().s[15]++,!1):(cov_iow4v29cs().b[5][1]++,cov_iow4v29cs().s[16]++,cov_iow4v29cs().b[7][0]++,taskEndrange.end)?(cov_iow4v29cs().b[6][0]++,cov_iow4v29cs().s[17]++,errors.push({entity:"task",level:"warn",message:"Outside range",refId:taskId}),cov_iow4v29cs().s[18]++,!1):(cov_iow4v29cs().b[6][1]++,cov_iow4v29cs().s[19]++,!0))))));return cov_iow4v29cs().s[20]++,{items,errors}};cov_iow4v29cs().s[21]++;const filterTasks=(tasks,range)=>(cov_iow4v29cs().f[4]++,cov_iow4v29cs().s[22]++,cov_iow4v29cs().b[9][0]++,range&&(cov_iow4v29cs().b[9][1]++,range.start)&&(cov_iow4v29cs().b[9][2]++,range.end)&&(cov_iow4v29cs().b[9][3]++,tasks)&&(cov_iow4v29cs().b[9][4]++,tasks.length)?(cov_iow4v29cs().b[8][1]++,cov_iow4v29cs().s[24]++,tasks.filter((({time:{start:taskStart,end:taskEnd}})=>(cov_iow4v29cs().f[5]++,cov_iow4v29cs().s[25]++,taskStart>=taskEnd?(cov_iow4v29cs().b[10][0]++,cov_iow4v29cs().s[26]++,!1):(cov_iow4v29cs().b[10][1]++,cov_iow4v29cs().s[27]++,cov_iow4v29cs().b[12][0]++,taskEndrange.end)?(cov_iow4v29cs().b[11][0]++,cov_iow4v29cs().s[28]++,!1):(cov_iow4v29cs().b[11][1]++,cov_iow4v29cs().s[29]++,!0)))))):(cov_iow4v29cs().b[8][0]++,cov_iow4v29cs().s[23]++,[]))},"./src/timeline/TimelineContext.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{w:()=>TimelineProvider,i:()=>useTimelineContext});var react=__webpack_require__("./node_modules/react/index.js"),luxon=__webpack_require__("./node_modules/luxon/src/luxon.js"),utils_resources=__webpack_require__("./src/resources/utils/resources.ts"),utils_tasks=__webpack_require__("./src/tasks/utils/tasks.ts"),dimensions=__webpack_require__("./src/utils/dimensions.ts"),logger=__webpack_require__("./src/utils/logger.ts"),time=__webpack_require__("./src/utils/time.ts"),time_resolution=__webpack_require__("./src/utils/time-resolution.ts");function cov_23hhp3s7ho(){var path="/home/runner/work/konva-timeline/konva-timeline/src/utils/utils.ts",global=new Function("return this")(),gcv="__coverage__",coverageData={path:"/home/runner/work/konva-timeline/konva-timeline/src/utils/utils.ts",statementMap:{0:{start:{line:5,column:42},end:{line:16,column:1}},1:{start:{line:6,column:2},end:{line:13,column:3}},2:{start:{line:7,column:4},end:{line:7,column:37}},3:{start:{line:8,column:18},end:{line:8,column:43}},4:{start:{line:9,column:21},end:{line:9,column:25}},5:{start:{line:10,column:16},end:{line:10,column:41}},6:{start:{line:11,column:4},end:{line:11,column:64}},7:{start:{line:12,column:4},end:{line:12,column:20}},8:{start:{line:14,column:17},end:{line:14,column:21}},9:{start:{line:15,column:2},end:{line:15,column:16}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:5,column:42},end:{line:5,column:43}},loc:{start:{line:5,column:92},end:{line:16,column:1}},line:5}},branchMap:{0:{loc:{start:{line:6,column:2},end:{line:13,column:3}},type:"if",locations:[{start:{line:6,column:2},end:{line:13,column:3}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:6}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0},f:{0:0},b:{0:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"6cc3330edaaed5900ba13028773c10db8e48414d"},coverage=global[gcv]||(global[gcv]={});coverage[path]&&"6cc3330edaaed5900ba13028773c10db8e48414d"===coverage[path].hash||(coverage[path]=coverageData);var actualCoverage=coverage[path];return cov_23hhp3s7ho=function(){return actualCoverage},actualCoverage}cov_23hhp3s7ho(),cov_23hhp3s7ho().s[0]++;const executeWithPerfomanceCheck=(tag,item,fn)=>{if(cov_23hhp3s7ho().f[0]++,cov_23hhp3s7ho().s[1]++,window.__MELFORE_KONVA_TIMELINE_DEBUG__){cov_23hhp3s7ho().b[0][0]++,cov_23hhp3s7ho().s[2]++,(0,logger.o7)(tag,`Running ${item}`);const start=(cov_23hhp3s7ho().s[3]++,luxon.ou.now().toMillis()),fnResult=(cov_23hhp3s7ho().s[4]++,fn()),end=(cov_23hhp3s7ho().s[5]++,luxon.ou.now().toMillis());return cov_23hhp3s7ho().s[6]++,(0,logger.o7)(tag,`${item} calculation took ${end-start} ms`),cov_23hhp3s7ho().s[7]++,fnResult}cov_23hhp3s7ho().b[0][1]++;const result=(cov_23hhp3s7ho().s[8]++,fn());return cov_23hhp3s7ho().s[9]++,result};var jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");function cov_107e24dr7(){var path="/home/runner/work/konva-timeline/konva-timeline/src/timeline/TimelineContext.tsx",global=new Function("return this")(),gcv="__coverage__",coverageData={path:"/home/runner/work/konva-timeline/konva-timeline/src/timeline/TimelineContext.tsx",statementMap:{0:{start:{line:96,column:24},end:{line:96,column:81}},1:{start:{line:99,column:46},end:{line:99,column:66}},2:{start:{line:101,column:28},end:{line:101,column:29}},3:{start:{line:103,column:32},end:{line:329,column:1}},4:{start:{line:125,column:19},end:{line:136,column:24}},5:{start:{line:126,column:4},end:{line:128,column:5}},6:{start:{line:127,column:6},end:{line:127,column:22}},7:{start:{line:130,column:22},end:{line:130,column:72}},8:{start:{line:131,column:4},end:{line:133,column:5}},9:{start:{line:132,column:6},end:{line:132,column:22}},10:{start:{line:135,column:4},end:{line:135,column:28}},11:{start:{line:138,column:36},end:{line:138,column:64}},12:{start:{line:140,column:2},end:{line:143,column:14}},13:{start:{line:141,column:4},end:{line:141,column:65}},14:{start:{line:142,column:4},end:{line:142,column:52}},15:{start:{line:145,column:16},end:{line:162,column:31}},16:{start:{line:146,column:55},end:{line:146,column:68}},17:{start:{line:147,column:20},end:{line:147,column:65}},18:{start:{line:148,column:18},end:{line:148,column:59}},19:{start:{line:149,column:18},end:{line:149,column:60}},20:{start:{line:150,column:16},end:{line:150,column:56}},21:{start:{line:151,column:4},end:{line:156,column:5}},22:{start:{line:152,column:6},end:{line:154,column:7}},23:{start:{line:153,column:8},end:{line:153,column:30}},24:{start:{line:155,column:6},end:{line:155,column:42}},25:{start:{line:157,column:4},end:{line:159,column:5}},26:{start:{line:158,column:6},end:{line:158,column:38}},27:{start:{line:160,column:16},end:{line:160,column:43}},28:{start:{line:161,column:4},end:{line:161,column:36}},29:{start:{line:164,column:21},end:{line:167,column:3}},30:{start:{line:165,column:10},end:{line:165,column:115}},31:{start:{line:165,column:77},end:{line:165,column:114}},32:{start:{line:169,column:19},end:{line:175,column:3}},33:{start:{line:171,column:6},end:{line:173,column:7}},34:{start:{line:172,column:8},end:{line:172,column:69}},35:{start:{line:177,column:26},end:{line:191,column:48}},36:{start:{line:178,column:18},end:{line:178,column:43}},37:{start:{line:179,column:4},end:{line:184,column:5}},38:{start:{line:180,column:6},end:{line:180,column:64}},39:{start:{line:181,column:6},end:{line:183,column:7}},40:{start:{line:182,column:8},end:{line:182,column:39}},41:{start:{line:186,column:4},end:{line:188,column:5}},42:{start:{line:187,column:6},end:{line:187,column:25}},43:{start:{line:190,column:4},end:{line:190,column:19}},44:{start:{line:193,column:21},end:{line:199,column:3}},45:{start:{line:195,column:6},end:{line:197,column:7}},46:{start:{line:196,column:8},end:{line:196,column:53}},47:{start:{line:201,column:21},end:{line:207,column:3}},48:{start:{line:203,column:6},end:{line:205,column:7}},49:{start:{line:204,column:8},end:{line:204,column:71}},50:{start:{line:209,column:26},end:{line:209,column:112}},51:{start:{line:209,column:40},end:{line:209,column:87}},52:{start:{line:211,column:22},end:{line:216,column:39}},53:{start:{line:212,column:4},end:{line:212,column:63}},54:{start:{line:213,column:4},end:{line:215,column:28}},55:{start:{line:218,column:27},end:{line:218,column:109}},56:{start:{line:218,column:41},end:{line:218,column:82}},57:{start:{line:220,column:28},end:{line:242,column:60}},58:{start:{line:221,column:4},end:{line:221,column:71}},59:{start:{line:222,column:18},end:{line:222,column:43}},60:{start:{line:223,column:24},end:{line:223,column:55}},61:{start:{line:224,column:4},end:{line:226,column:5}},62:{start:{line:225,column:6},end:{line:225,column:16}},63:{start:{line:228,column:21},end:{line:228,column:37}},64:{start:{line:229,column:4},end:{line:231,column:5}},65:{start:{line:230,column:6},end:{line:230,column:58}},66:{start:{line:233,column:19},end:{line:233,column:57}},67:{start:{line:234,column:4},end:{line:236,column:5}},68:{start:{line:235,column:6},end:{line:235,column:48}},69:{start:{line:238,column:17},end:{line:238,column:66}},70:{start:{line:239,column:16},end:{line:239,column:41}},71:{start:{line:240,column:4},end:{line:240,column:91}},72:{start:{line:241,column:4},end:{line:241,column:16}},73:{start:{line:244,column:23},end:{line:254,column:25}},74:{start:{line:245,column:16},end:{line:245,column:20}},75:{start:{line:246,column:4},end:{line:251,column:5}},76:{start:{line:247,column:6},end:{line:250,column:8}},77:{start:{line:253,column:4},end:{line:253,column:17}},78:{start:{line:256,column:16},end:{line:260,column:3}},79:{start:{line:258,column:6},end:{line:258,column:118}},80:{start:{line:258,column:74},end:{line:258,column:117}},81:{start:{line:262,column:25},end:{line:269,column:50}},82:{start:{line:263,column:4},end:{line:263,column:67}},83:{start:{line:264,column:18},end:{line:264,column:43}},84:{start:{line:265,column:20},end:{line:265,column:83}},85:{start:{line:266,column:16},end:{line:266,column:41}},86:{start:{line:267,column:4},end:{line:267,column:87}},87:{start:{line:268,column:4},end:{line:268,column:19}},88:{start:{line:271,column:20},end:{line:271,column:118}},89:{start:{line:271,column:34},end:{line:271,column:83}},90:{start:{line:273,column:20},end:{line:277,column:25}},91:{start:{line:274,column:4},end:{line:274,column:61}},92:{start:{line:275,column:22},end:{line:275,column:66}},93:{start:{line:276,column:4},end:{line:276,column:85}},94:{start:{line:279,column:33},end:{line:282,column:28}},95:{start:{line:280,column:4},end:{line:280,column:76}},96:{start:{line:281,column:4},end:{line:281,column:40}},97:{start:{line:284,column:16},end:{line:288,column:21}},98:{start:{line:285,column:4},end:{line:287,column:6}},99:{start:{line:290,column:2},end:{line:294,column:29}},100:{start:{line:291,column:4},end:{line:293,column:5}},101:{start:{line:292,column:6},end:{line:292,column:34}},102:{start:{line:296,column:2},end:{line:328,column:4}},103:{start:{line:331,column:34},end:{line:338,column:1}},104:{start:{line:332,column:18},end:{line:332,column:45}},105:{start:{line:333,column:2},end:{line:335,column:3}},106:{start:{line:334,column:4},end:{line:334,column:81}},107:{start:{line:337,column:2},end:{line:337,column:17}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:103,column:32},end:{line:103,column:33}},loc:{start:{line:124,column:29},end:{line:329,column:1}},line:124},1:{name:"(anonymous_1)",decl:{start:{line:125,column:27},end:{line:125,column:28}},loc:{start:{line:125,column:33},end:{line:136,column:3}},line:125},2:{name:"(anonymous_2)",decl:{start:{line:140,column:12},end:{line:140,column:13}},loc:{start:{line:140,column:18},end:{line:143,column:3}},line:140},3:{name:"(anonymous_3)",decl:{start:{line:145,column:24},end:{line:145,column:25}},loc:{start:{line:145,column:49},end:{line:162,column:3}},line:145},4:{name:"(anonymous_4)",decl:{start:{line:165,column:4},end:{line:165,column:5}},loc:{start:{line:165,column:10},end:{line:165,column:115}},line:165},5:{name:"(anonymous_5)",decl:{start:{line:165,column:71},end:{line:165,column:72}},loc:{start:{line:165,column:77},end:{line:165,column:114}},line:165},6:{name:"(anonymous_6)",decl:{start:{line:170,column:4},end:{line:170,column:5}},loc:{start:{line:171,column:6},end:{line:173,column:7}},line:171},7:{name:"(anonymous_7)",decl:{start:{line:171,column:65},end:{line:171,column:66}},loc:{start:{line:172,column:8},end:{line:172,column:69}},line:172},8:{name:"(anonymous_8)",decl:{start:{line:177,column:34},end:{line:177,column:35}},loc:{start:{line:177,column:40},end:{line:191,column:3}},line:177},9:{name:"(anonymous_9)",decl:{start:{line:194,column:4},end:{line:194,column:5}},loc:{start:{line:195,column:6},end:{line:197,column:7}},line:195},10:{name:"(anonymous_10)",decl:{start:{line:195,column:70},end:{line:195,column:71}},loc:{start:{line:196,column:8},end:{line:196,column:53}},line:196},11:{name:"(anonymous_11)",decl:{start:{line:202,column:4},end:{line:202,column:5}},loc:{start:{line:203,column:6},end:{line:205,column:7}},line:203},12:{name:"(anonymous_12)",decl:{start:{line:203,column:67},end:{line:203,column:68}},loc:{start:{line:204,column:8},end:{line:204,column:71}},line:204},13:{name:"(anonymous_13)",decl:{start:{line:209,column:34},end:{line:209,column:35}},loc:{start:{line:209,column:40},end:{line:209,column:87}},line:209},14:{name:"(anonymous_14)",decl:{start:{line:211,column:30},end:{line:211,column:31}},loc:{start:{line:211,column:36},end:{line:216,column:3}},line:211},15:{name:"(anonymous_15)",decl:{start:{line:218,column:35},end:{line:218,column:36}},loc:{start:{line:218,column:41},end:{line:218,column:82}},line:218},16:{name:"(anonymous_16)",decl:{start:{line:220,column:36},end:{line:220,column:37}},loc:{start:{line:220,column:42},end:{line:242,column:3}},line:220},17:{name:"(anonymous_17)",decl:{start:{line:244,column:31},end:{line:244,column:32}},loc:{start:{line:244,column:37},end:{line:254,column:3}},line:244},18:{name:"(anonymous_18)",decl:{start:{line:257,column:4},end:{line:257,column:5}},loc:{start:{line:258,column:6},end:{line:258,column:118}},line:258},19:{name:"(anonymous_19)",decl:{start:{line:258,column:68},end:{line:258,column:69}},loc:{start:{line:258,column:74},end:{line:258,column:117}},line:258},20:{name:"(anonymous_20)",decl:{start:{line:262,column:33},end:{line:262,column:34}},loc:{start:{line:262,column:39},end:{line:269,column:3}},line:262},21:{name:"(anonymous_21)",decl:{start:{line:271,column:28},end:{line:271,column:29}},loc:{start:{line:271,column:34},end:{line:271,column:83}},line:271},22:{name:"(anonymous_22)",decl:{start:{line:273,column:28},end:{line:273,column:29}},loc:{start:{line:273,column:34},end:{line:277,column:3}},line:273},23:{name:"(anonymous_23)",decl:{start:{line:279,column:41},end:{line:279,column:42}},loc:{start:{line:279,column:47},end:{line:282,column:3}},line:279},24:{name:"(anonymous_24)",decl:{start:{line:284,column:24},end:{line:284,column:25}},loc:{start:{line:284,column:45},end:{line:288,column:3}},line:284},25:{name:"(anonymous_25)",decl:{start:{line:290,column:12},end:{line:290,column:13}},loc:{start:{line:290,column:18},end:{line:294,column:3}},line:290},26:{name:"(anonymous_26)",decl:{start:{line:331,column:34},end:{line:331,column:35}},loc:{start:{line:331,column:40},end:{line:338,column:1}},line:331}},branchMap:{0:{loc:{start:{line:106,column:2},end:{line:106,column:15}},type:"default-arg",locations:[{start:{line:106,column:10},end:{line:106,column:15}}],line:106},1:{loc:{start:{line:107,column:2},end:{line:107,column:27}},type:"default-arg",locations:[{start:{line:107,column:22},end:{line:107,column:27}}],line:107},2:{loc:{start:{line:109,column:2},end:{line:109,column:19}},type:"default-arg",locations:[{start:{line:109,column:15},end:{line:109,column:19}}],line:109},3:{loc:{start:{line:110,column:2},end:{line:110,column:21}},type:"default-arg",locations:[{start:{line:110,column:17},end:{line:110,column:21}}],line:110},4:{loc:{start:{line:112,column:2},end:{line:112,column:23}},type:"default-arg",locations:[{start:{line:112,column:18},end:{line:112,column:23}}],line:112},5:{loc:{start:{line:117,column:9},end:{line:117,column:27}},type:"default-arg",locations:[{start:{line:117,column:25},end:{line:117,column:27}}],line:117},6:{loc:{start:{line:119,column:14},end:{line:119,column:41}},type:"default-arg",locations:[{start:{line:119,column:35},end:{line:119,column:41}}],line:119},7:{loc:{start:{line:123,column:9},end:{line:123,column:32}},type:"default-arg",locations:[{start:{line:123,column:25},end:{line:123,column:32}}],line:123},8:{loc:{start:{line:126,column:4},end:{line:128,column:5}},type:"if",locations:[{start:{line:126,column:4},end:{line:128,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:126},9:{loc:{start:{line:131,column:4},end:{line:133,column:5}},type:"if",locations:[{start:{line:131,column:4},end:{line:133,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:131},10:{loc:{start:{line:141,column:41},end:{line:141,column:61}},type:"cond-expr",locations:[{start:{line:141,column:49},end:{line:141,column:53}},{start:{line:141,column:56},end:{line:141,column:61}}],line:141},11:{loc:{start:{line:151,column:4},end:{line:156,column:5}},type:"if",locations:[{start:{line:151,column:4},end:{line:156,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:151},12:{loc:{start:{line:152,column:6},end:{line:154,column:7}},type:"if",locations:[{start:{line:152,column:6},end:{line:154,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:152},13:{loc:{start:{line:157,column:4},end:{line:159,column:5}},type:"if",locations:[{start:{line:157,column:4},end:{line:159,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:157},14:{loc:{start:{line:179,column:4},end:{line:184,column:5}},type:"if",locations:[{start:{line:179,column:4},end:{line:184,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:179},15:{loc:{start:{line:181,column:6},end:{line:183,column:7}},type:"if",locations:[{start:{line:181,column:6},end:{line:183,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:181},16:{loc:{start:{line:186,column:4},end:{line:188,column:5}},type:"if",locations:[{start:{line:186,column:4},end:{line:188,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:186},17:{loc:{start:{line:186,column:8},end:{line:186,column:52}},type:"binary-expr",locations:[{start:{line:186,column:8},end:{line:186,column:29}},{start:{line:186,column:33},end:{line:186,column:52}}],line:186},18:{loc:{start:{line:213,column:11},end:{line:215,column:27}},type:"cond-expr",locations:[{start:{line:214,column:8},end:{line:214,column:29}},{start:{line:215,column:8},end:{line:215,column:27}}],line:213},19:{loc:{start:{line:213,column:11},end:{line:213,column:82}},type:"binary-expr",locations:[{start:{line:213,column:11},end:{line:213,column:31}},{start:{line:213,column:35},end:{line:213,column:82}}],line:213},20:{loc:{start:{line:224,column:4},end:{line:226,column:5}},type:"if",locations:[{start:{line:224,column:4},end:{line:226,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:224},21:{loc:{start:{line:229,column:4},end:{line:231,column:5}},type:"if",locations:[{start:{line:229,column:4},end:{line:231,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:229},22:{loc:{start:{line:234,column:4},end:{line:236,column:5}},type:"if",locations:[{start:{line:234,column:4},end:{line:236,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:234},23:{loc:{start:{line:246,column:4},end:{line:251,column:5}},type:"if",locations:[{start:{line:246,column:4},end:{line:251,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:246},24:{loc:{start:{line:246,column:8},end:{line:246,column:53}},type:"binary-expr",locations:[{start:{line:246,column:8},end:{line:246,column:25}},{start:{line:246,column:29},end:{line:246,column:53}}],line:246},25:{loc:{start:{line:265,column:38},end:{line:265,column:82}},type:"binary-expr",locations:[{start:{line:265,column:38},end:{line:265,column:60}},{start:{line:265,column:64},end:{line:265,column:82}}],line:265},26:{loc:{start:{line:275,column:22},end:{line:275,column:66}},type:"binary-expr",locations:[{start:{line:275,column:22},end:{line:275,column:39}},{start:{line:275,column:43},end:{line:275,column:66}}],line:275},27:{loc:{start:{line:276,column:11},end:{line:276,column:84}},type:"cond-expr",locations:[{start:{line:276,column:49},end:{line:276,column:72}},{start:{line:276,column:75},end:{line:276,column:84}}],line:276},28:{loc:{start:{line:286,column:13},end:{line:286,column:57}},type:"cond-expr",locations:[{start:{line:286,column:40},end:{line:286,column:47}},{start:{line:286,column:50},end:{line:286,column:57}}],line:286},29:{loc:{start:{line:291,column:4},end:{line:293,column:5}},type:"if",locations:[{start:{line:291,column:4},end:{line:293,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:291},30:{loc:{start:{line:321,column:18},end:{line:321,column:38}},type:"binary-expr",locations:[{start:{line:321,column:18},end:{line:321,column:26}},{start:{line:321,column:30},end:{line:321,column:38}}],line:321},31:{loc:{start:{line:333,column:2},end:{line:335,column:3}},type:"if",locations:[{start:{line:333,column:2},end:{line:335,column:3}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:333}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0,39:0,40:0,41:0,42:0,43:0,44:0,45:0,46:0,47:0,48:0,49:0,50:0,51:0,52:0,53:0,54:0,55:0,56:0,57:0,58:0,59:0,60:0,61:0,62:0,63:0,64:0,65:0,66:0,67:0,68:0,69:0,70:0,71:0,72:0,73:0,74:0,75:0,76:0,77:0,78:0,79:0,80:0,81:0,82:0,83:0,84:0,85:0,86:0,87:0,88:0,89:0,90:0,91:0,92:0,93:0,94:0,95:0,96:0,97:0,98:0,99:0,100:0,101:0,102:0,103:0,104:0,105:0,106:0,107:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0},b:{0:[0],1:[0],2:[0],3:[0],4:[0],5:[0],6:[0],7:[0],8:[0,0],9:[0,0],10:[0,0],11:[0,0],12:[0,0],13:[0,0],14:[0,0],15:[0,0],16:[0,0],17:[0,0],18:[0,0],19:[0,0],20:[0,0],21:[0,0],22:[0,0],23:[0,0],24:[0,0],25:[0,0],26:[0,0],27:[0,0],28:[0,0],29:[0,0],30:[0,0],31:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"ee31c2f7d141329b5d782663da8c6ee2feeed8d9"},coverage=global[gcv]||(global[gcv]={});coverage[path]&&"ee31c2f7d141329b5d782663da8c6ee2feeed8d9"===coverage[path].hash||(coverage[path]=coverageData);var actualCoverage=coverage[path];return cov_107e24dr7=function(){return actualCoverage},actualCoverage}cov_107e24dr7();const TimelineContext=(cov_107e24dr7().s[0]++,(0,react.createContext)(void 0)),DEFAULT_DRAW_RANGE=(cov_107e24dr7().s[1]++,{start:0,end:0}),TIME_BLOCKS_PRELOAD=(cov_107e24dr7().s[2]++,5);cov_107e24dr7().s[3]++;const TimelineProvider=({children,columnWidth:externalColumnWidth,debug=(cov_107e24dr7().b[0][0]++,!1),displayTasksLabel=(cov_107e24dr7().b[1][0]++,!1),dragResolution:externalDragResolution,enableDrag=(cov_107e24dr7().b[2][0]++,!0),enableResize=(cov_107e24dr7().b[3][0]++,!0),headerLabel,hideResources=(cov_107e24dr7().b[4][0]++,!1),initialDateTime:externalInitialDateTime,onErrors,onTaskClick,onTaskChange,tasks:externalTasks=(cov_107e24dr7().b[5][0]++,[]),range:externalRange,resolution:externalResolution=(cov_107e24dr7().b[6][0]++,"1min"),resources:externalResources,rowHeight:externalRowHeight,timezone:externalTimezone,theme:externalTheme=(cov_107e24dr7().b[7][0]++,"light")})=>{cov_107e24dr7().f[0]++;const timezone=(cov_107e24dr7().s[4]++,(0,react.useMemo)((()=>{if(cov_107e24dr7().f[1]++,cov_107e24dr7().s[5]++,!externalTimezone)return cov_107e24dr7().b[8][0]++,cov_107e24dr7().s[6]++,"system";cov_107e24dr7().b[8][1]++;const dateCheck=(cov_107e24dr7().s[7]++,luxon.ou.fromMillis(0,{zone:externalTimezone}));return cov_107e24dr7().s[8]++,dateCheck.isValid?(cov_107e24dr7().b[9][1]++,cov_107e24dr7().s[10]++,externalTimezone):(cov_107e24dr7().b[9][0]++,cov_107e24dr7().s[9]++,"system")}),[externalTimezone])),[drawRange,setDrawRange]=(cov_107e24dr7().s[11]++,(0,react.useState)(DEFAULT_DRAW_RANGE));cov_107e24dr7().s[12]++,(0,react.useEffect)((()=>{cov_107e24dr7().f[2]++,cov_107e24dr7().s[13]++,(0,logger.yN)("TimelineProvider","Debug "+(debug?(cov_107e24dr7().b[10][0]++,"ON"):(cov_107e24dr7().b[10][1]++,"OFF"))),cov_107e24dr7().s[14]++,window.__MELFORE_KONVA_TIMELINE_DEBUG__=debug}),[debug]);const range=(cov_107e24dr7().s[15]++,(0,react.useMemo)((()=>{cov_107e24dr7().f[3]++;const{start:externalStart,end:externalEnd}=(cov_107e24dr7().s[16]++,externalRange),isStart=(cov_107e24dr7().s[17]++,(0,time.Af)(externalStart,"StartRenge")),isEnd=(cov_107e24dr7().s[18]++,(0,time.Af)(externalEnd,"EndRange")),start=(cov_107e24dr7().s[19]++,(0,time.hA)(externalStart,timezone)),end=(cov_107e24dr7().s[20]++,(0,time.hA)(externalEnd,timezone));if(cov_107e24dr7().s[21]++,isStart)return cov_107e24dr7().b[11][0]++,cov_107e24dr7().s[22]++,start<=end?(cov_107e24dr7().b[12][0]++,cov_107e24dr7().s[23]++,{start,end}):(cov_107e24dr7().b[12][1]++,cov_107e24dr7().s[24]++,{start,end:start});if(cov_107e24dr7().b[11][1]++,cov_107e24dr7().s[25]++,isEnd)return cov_107e24dr7().b[13][0]++,cov_107e24dr7().s[26]++,{start:end,end};cov_107e24dr7().b[13][1]++;const now=(cov_107e24dr7().s[27]++,luxon.ou.local().toMillis());return cov_107e24dr7().s[28]++,{start:now,end:now}}),[externalRange,timezone])),resolution=(cov_107e24dr7().s[29]++,(0,react.useMemo)((()=>(cov_107e24dr7().f[4]++,cov_107e24dr7().s[30]++,executeWithPerfomanceCheck("TimelineProvider","resolution",(()=>(cov_107e24dr7().f[5]++,cov_107e24dr7().s[31]++,(0,time_resolution.Ig)(externalResolution)))))),[externalResolution])),interval=(cov_107e24dr7().s[32]++,(0,react.useMemo)((()=>(cov_107e24dr7().f[6]++,cov_107e24dr7().s[33]++,executeWithPerfomanceCheck("TimelineProvider","interval",(()=>(cov_107e24dr7().f[7]++,cov_107e24dr7().s[34]++,(0,time.tA)(range,resolution,timezone)))))),[range,resolution,timezone])),initialDateTime=(cov_107e24dr7().s[35]++,(0,react.useMemo)((()=>{cov_107e24dr7().f[8]++;let initial=(cov_107e24dr7().s[36]++,luxon.ou.now().toMillis());return cov_107e24dr7().s[37]++,externalInitialDateTime?(cov_107e24dr7().b[14][0]++,cov_107e24dr7().s[38]++,initial=(0,time.n4)(externalInitialDateTime,timezone),cov_107e24dr7().s[39]++,Number.isNaN(initial)?(cov_107e24dr7().b[15][0]++,cov_107e24dr7().s[40]++,initial=(new Date).getTime()):cov_107e24dr7().b[15][1]++):cov_107e24dr7().b[14][1]++,cov_107e24dr7().s[41]++,cov_107e24dr7().b[17][0]++,initialrange.end)?(cov_107e24dr7().b[16][0]++,cov_107e24dr7().s[42]++,range.start):(cov_107e24dr7().b[16][1]++,cov_107e24dr7().s[43]++,initial)}),[externalInitialDateTime,range,timezone])),validTasks=(cov_107e24dr7().s[44]++,(0,react.useMemo)((()=>(cov_107e24dr7().f[9]++,cov_107e24dr7().s[45]++,executeWithPerfomanceCheck("TimelineProvider","validateTasks",(()=>(cov_107e24dr7().f[10]++,cov_107e24dr7().s[46]++,(0,utils_tasks.kN)(externalTasks,range,timezone)))))),[externalTasks,range,timezone])),timeBlocks=(cov_107e24dr7().s[47]++,(0,react.useMemo)((()=>(cov_107e24dr7().f[11]++,cov_107e24dr7().s[48]++,executeWithPerfomanceCheck("TimelineProvider","timeBlocks",(()=>(cov_107e24dr7().f[12]++,cov_107e24dr7().s[49]++,interval.splitBy({[resolution.unit]:resolution.sizeInUnits})))))),[interval,resolution])),aboveTimeBlocks=(cov_107e24dr7().s[50]++,(0,react.useMemo)((()=>(cov_107e24dr7().f[13]++,cov_107e24dr7().s[51]++,interval.splitBy({[resolution.unitAbove]:1}))),[interval,resolution])),columnWidth=(cov_107e24dr7().s[52]++,(0,react.useMemo)((()=>(cov_107e24dr7().f[14]++,cov_107e24dr7().s[53]++,(0,logger.o7)("TimelineProvider","Calculating columnWidth..."),cov_107e24dr7().s[54]++,cov_107e24dr7().b[19][0]++,!externalColumnWidth||(cov_107e24dr7().b[19][1]++,externalColumnWidth(cov_107e24dr7().f[15]++,cov_107e24dr7().s[56]++,Math.floor(drawRange.start/columnWidth))),[drawRange,columnWidth])),visibleTimeBlocks=(cov_107e24dr7().s[57]++,(0,react.useMemo)((()=>{cov_107e24dr7().f[16]++,cov_107e24dr7().s[58]++,(0,logger.o7)("TimelineProvider","Calculating visible time blocks...");const start=(cov_107e24dr7().s[59]++,luxon.ou.now().toMillis()),rangeLength=(cov_107e24dr7().s[60]++,drawRange.end-drawRange.start);if(cov_107e24dr7().s[61]++,rangeLength<=0)return cov_107e24dr7().b[20][0]++,cov_107e24dr7().s[62]++,[];cov_107e24dr7().b[20][1]++;let startIndex=(cov_107e24dr7().s[63]++,timeblocksOffset);cov_107e24dr7().s[64]++,startIndex>TIME_BLOCKS_PRELOAD?(cov_107e24dr7().b[21][0]++,cov_107e24dr7().s[65]++,startIndex=timeblocksOffset-TIME_BLOCKS_PRELOAD):cov_107e24dr7().b[21][1]++;let endIndex=(cov_107e24dr7().s[66]++,Math.ceil(drawRange.end/columnWidth));cov_107e24dr7().s[67]++,endIndex{cov_107e24dr7().f[17]++;let range=(cov_107e24dr7().s[74]++,null);return cov_107e24dr7().s[75]++,cov_107e24dr7().b[24][0]++,visibleTimeBlocks&&(cov_107e24dr7().b[24][1]++,visibleTimeBlocks.length)?(cov_107e24dr7().b[23][0]++,cov_107e24dr7().s[76]++,range={start:visibleTimeBlocks[0].start.toMillis(),end:visibleTimeBlocks[visibleTimeBlocks.length-1].end.toMillis()}):cov_107e24dr7().b[23][1]++,cov_107e24dr7().s[77]++,range}),[visibleTimeBlocks])),tasks=(cov_107e24dr7().s[78]++,(0,react.useMemo)((()=>(cov_107e24dr7().f[18]++,cov_107e24dr7().s[79]++,executeWithPerfomanceCheck("TimelineProvider","filterTasks",(()=>(cov_107e24dr7().f[19]++,cov_107e24dr7().s[80]++,(0,utils_tasks.yH)(validTasks.items,visibleRange)))))),[validTasks,visibleRange])),dragResolution=(cov_107e24dr7().s[81]++,(0,react.useMemo)((()=>{cov_107e24dr7().f[20]++,cov_107e24dr7().s[82]++,(0,logger.o7)("TimelineProvider","Calculating drag resolution...");const start=(cov_107e24dr7().s[83]++,luxon.ou.now().toMillis()),resData=(cov_107e24dr7().s[84]++,(0,time_resolution.Ig)((cov_107e24dr7().b[25][0]++,externalDragResolution||(cov_107e24dr7().b[25][1]++,externalResolution)))),end=(cov_107e24dr7().s[85]++,luxon.ou.now().toMillis());return cov_107e24dr7().s[86]++,(0,logger.o7)("TimelineProvider",`Drag resolution calculation took ${end-start} ms`),cov_107e24dr7().s[87]++,resData}),[externalDragResolution,externalResolution])),resources=(cov_107e24dr7().s[88]++,(0,react.useMemo)((()=>(cov_107e24dr7().f[21]++,cov_107e24dr7().s[89]++,(0,utils_resources.bL)(externalResources,headerLabel))),[externalResources,headerLabel])),rowHeight=(cov_107e24dr7().s[90]++,(0,react.useMemo)((()=>{cov_107e24dr7().f[22]++,cov_107e24dr7().s[91]++,(0,logger.o7)("TimelineProvider","Calculating rowHeight...");const rowHeight=(cov_107e24dr7().s[92]++,cov_107e24dr7().b[26][0]++,externalRowHeight||(cov_107e24dr7().b[26][1]++,dimensions.W4));return cov_107e24dr7().s[93]++,rowHeight(cov_107e24dr7().f[23]++,cov_107e24dr7().s[95]++,(0,logger.o7)("TimelineProvider","Calculating resources content height..."),cov_107e24dr7().s[96]++,rowHeight*resources.length)),[resources,rowHeight])),theme=(cov_107e24dr7().s[97]++,(0,react.useMemo)((()=>(cov_107e24dr7().f[24]++,cov_107e24dr7().s[98]++,{color:"dark"===externalTheme?(cov_107e24dr7().b[28][0]++,"white"):(cov_107e24dr7().b[28][1]++,"black")})),[externalTheme]));return cov_107e24dr7().s[99]++,(0,react.useEffect)((()=>{cov_107e24dr7().f[25]++,cov_107e24dr7().s[100]++,onErrors?(cov_107e24dr7().b[29][0]++,cov_107e24dr7().s[101]++,onErrors(validTasks.errors)):cov_107e24dr7().b[29][1]++}),[onErrors,validTasks]),cov_107e24dr7().s[102]++,(0,jsx_runtime.jsx)(TimelineContext.Provider,{value:{aboveTimeBlocks,columnWidth,displayTasksLabel,dragResolution,drawRange,enableDrag,enableResize,hideResources,initialDateTime,interval,onErrors,onTaskClick,onTaskChange,resolution,resolutionKey:externalResolution,resources,resourcesContentHeight,rowHeight,setDrawRange,tasks,theme,timeBlocks,timezone:(cov_107e24dr7().b[30][0]++,timezone||(cov_107e24dr7().b[30][1]++,"system")),visibleTimeBlocks,blocksOffset:timeblocksOffset},children})};TimelineProvider.displayName="TimelineProvider",cov_107e24dr7().s[103]++;const useTimelineContext=()=>{cov_107e24dr7().f[26]++;const context=(cov_107e24dr7().s[104]++,(0,react.useContext)(TimelineContext));if(cov_107e24dr7().s[105]++,void 0===context)throw cov_107e24dr7().b[31][0]++,cov_107e24dr7().s[106]++,new Error("useTimelineContext must be used within a TimelineProvider");return cov_107e24dr7().b[31][1]++,cov_107e24dr7().s[107]++,context};try{TimelineProvider.displayName="TimelineProvider",TimelineProvider.__docgenInfo={description:"",displayName:"TimelineProvider",props:{columnWidth:{defaultValue:null,description:"Custom column width (defaults to 60px)",name:"columnWidth",required:!1,type:{name:"number"}},displayTasksLabel:{defaultValue:{value:"false"},description:"Enables tasks label display",name:"displayTasksLabel",required:!1,type:{name:"boolean"}},dragResolution:{defaultValue:null,description:"Drag and drop resolution (if not passed, defaults to resolution)",name:"dragResolution",required:!1,type:{name:"enum",value:[{value:'"1min"'},{value:'"5min"'},{value:'"10min"'},{value:'"15min"'},{value:'"30min"'},{value:'"1hrs"'},{value:'"2hrs"'},{value:'"6hrs"'},{value:'"12hrs"'},{value:'"1day"'},{value:'"1week"'},{value:'"2weeks"'}]}},hideResources:{defaultValue:{value:"false"},description:"Flag to hide resource column (defaults to false)",name:"hideResources",required:!1,type:{name:"boolean"}},resolution:{defaultValue:null,description:"Resolution to display data in konva-timeline (defaults to 1min)",name:"resolution",required:!1,type:{name:"enum",value:[{value:'"1min"'},{value:'"5min"'},{value:'"10min"'},{value:'"15min"'},{value:'"30min"'},{value:'"1hrs"'},{value:'"2hrs"'},{value:'"6hrs"'},{value:'"12hrs"'},{value:'"1day"'},{value:'"1week"'},{value:'"2weeks"'}]}},rowHeight:{defaultValue:null,description:"Custom row height (defaults to 50px)",name:"rowHeight",required:!1,type:{name:"number"}},tasks:{defaultValue:null,description:"List of tasks to be displayed (defaults to [])",name:"tasks",required:!1,type:{name:"TaskData[]"}},range:{defaultValue:null,description:"Time range to be displayed",name:"range",required:!0,type:{name:"TimeRange"}},resources:{defaultValue:null,description:"List of resources to be displayed",name:"resources",required:!0,type:{name:"Resource[]"}},debug:{defaultValue:{value:"false"},description:"Enables debug logging in browser console",name:"debug",required:!1,type:{name:"boolean"}},enableDrag:{defaultValue:{value:"true"},description:"Enables drag&drop operation on tasks",name:"enableDrag",required:!1,type:{name:"boolean"}},enableResize:{defaultValue:{value:"true"},description:"Enables resize operation on tasks",name:"enableResize",required:!1,type:{name:"boolean"}},headerLabel:{defaultValue:null,description:"Label to display in header column",name:"headerLabel",required:!1,type:{name:"string"}},initialDateTime:{defaultValue:null,description:"Initial date time to scroll to",name:"initialDateTime",required:!1,type:{name:"string | number"}},onErrors:{defaultValue:null,description:"Callback invoked when errors are thrown",name:"onErrors",required:!1,type:{name:"((errors: KonvaTimelineError[]) => void)"}},onTaskClick:{defaultValue:null,description:"Event handler for task click",name:"onTaskClick",required:!1,type:{name:"((task: TaskData) => void)"}},onTaskChange:{defaultValue:null,description:"Event handler for task change event (drag and resize)",name:"onTaskChange",required:!1,type:{name:"((task: TaskData) => void)"}},timezone:{defaultValue:null,description:"Timezone used for display (defaults to 'system')",name:"timezone",required:!1,type:{name:"string"}},theme:{defaultValue:null,description:"Theme color in use",name:"theme",required:!1,type:{name:"enum",value:[{value:'"dark"'},{value:'"light"'}]}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/timeline/TimelineContext.tsx#TimelineProvider"]={docgenInfo:TimelineProvider.__docgenInfo,name:"TimelineProvider",path:"src/timeline/TimelineContext.tsx#TimelineProvider"})}catch(__react_docgen_typescript_loader_error){}},"./src/utils/dimensions.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{function cov_2q8nucg4m(){var path="/home/runner/work/konva-timeline/konva-timeline/src/utils/dimensions.ts",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"42995a9ba25a9fecb1da8b395ab2e273aeae97e7"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/konva-timeline/konva-timeline/src/utils/dimensions.ts",statementMap:{0:{start:{line:1,column:30},end:{line:1,column:31}},1:{start:{line:4,column:39},end:{line:4,column:41}},2:{start:{line:5,column:39},end:{line:5,column:66}},3:{start:{line:8,column:41},end:{line:8,column:43}},4:{start:{line:10,column:33},end:{line:10,column:53}},5:{start:{line:12,column:36},end:{line:12,column:37}}},fnMap:{},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0},f:{},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"42995a9ba25a9fecb1da8b395ab2e273aeae97e7"});var actualCoverage=coverage[path];return cov_2q8nucg4m=function(){return actualCoverage},actualCoverage}__webpack_require__.d(__webpack_exports__,{W4:()=>DEFAULT_GRID_ROW_HEIGHT,Z2:()=>DEFAULT_TEXT_SIZE,cM:()=>DEFAULT_GRID_COLUMN_WIDTH,tA:()=>DEFAULT_STROKE_WIDTH,xy:()=>MINIMUM_GRID_ROW_HEIGHT}),cov_2q8nucg4m();const BASE_DIMENSION=(cov_2q8nucg4m().s[0]++,8),DEFAULT_GRID_ROW_HEIGHT=(cov_2q8nucg4m().s[1]++,50),MINIMUM_GRID_ROW_HEIGHT=(cov_2q8nucg4m().s[2]++,DEFAULT_GRID_ROW_HEIGHT/2),DEFAULT_GRID_COLUMN_WIDTH=(cov_2q8nucg4m().s[3]++,60),DEFAULT_TEXT_SIZE=(cov_2q8nucg4m().s[4]++,1.5*BASE_DIMENSION),DEFAULT_STROKE_WIDTH=(cov_2q8nucg4m().s[5]++,1)},"./src/utils/logger.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{function cov_1kiijbyup6(){var path="/home/runner/work/konva-timeline/konva-timeline/src/utils/logger.ts",global=new Function("return this")(),gcv="__coverage__",coverageData={path:"/home/runner/work/konva-timeline/konva-timeline/src/utils/logger.ts",statementMap:{0:{start:{line:3,column:12},end:{line:3,column:39}},1:{start:{line:11,column:15},end:{line:26,column:1}},2:{start:{line:12,column:15},end:{line:12,column:49}},3:{start:{line:14,column:2},end:{line:25,column:3}},4:{start:{line:17,column:6},end:{line:17,column:25}},5:{start:{line:18,column:6},end:{line:18,column:13}},6:{start:{line:20,column:6},end:{line:20,column:26}},7:{start:{line:21,column:6},end:{line:21,column:13}},8:{start:{line:23,column:6},end:{line:23,column:25}},9:{start:{line:24,column:6},end:{line:24,column:13}},10:{start:{line:33,column:24},end:{line:39,column:1}},11:{start:{line:34,column:2},end:{line:36,column:3}},12:{start:{line:35,column:4},end:{line:35,column:11}},13:{start:{line:38,column:2},end:{line:38,column:38}},14:{start:{line:46,column:24},end:{line:46,column:99}},15:{start:{line:46,column:64},end:{line:46,column:99}},16:{start:{line:53,column:23},end:{line:53,column:97}},17:{start:{line:53,column:63},end:{line:53,column:97}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:11,column:15},end:{line:11,column:16}},loc:{start:{line:11,column:72},end:{line:26,column:1}},line:11},1:{name:"(anonymous_1)",decl:{start:{line:33,column:24},end:{line:33,column:25}},loc:{start:{line:33,column:64},end:{line:39,column:1}},line:33},2:{name:"(anonymous_2)",decl:{start:{line:46,column:24},end:{line:46,column:25}},loc:{start:{line:46,column:64},end:{line:46,column:99}},line:46},3:{name:"(anonymous_3)",decl:{start:{line:53,column:23},end:{line:53,column:24}},loc:{start:{line:53,column:63},end:{line:53,column:97}},line:53}},branchMap:{0:{loc:{start:{line:14,column:2},end:{line:25,column:3}},type:"switch",locations:[{start:{line:15,column:4},end:{line:18,column:13}},{start:{line:19,column:4},end:{line:21,column:13}},{start:{line:22,column:4},end:{line:24,column:13}}],line:14},1:{loc:{start:{line:34,column:2},end:{line:36,column:3}},type:"if",locations:[{start:{line:34,column:2},end:{line:36,column:3}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:34}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0},f:{0:0,1:0,2:0,3:0},b:{0:[0,0,0],1:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"0ffcb3d5c8449e2e3100356f81fd198d442136f5"},coverage=global[gcv]||(global[gcv]={});coverage[path]&&"0ffcb3d5c8449e2e3100356f81fd198d442136f5"===coverage[path].hash||(coverage[path]=coverageData);var actualCoverage=coverage[path];return cov_1kiijbyup6=function(){return actualCoverage},actualCoverage}__webpack_require__.d(__webpack_exports__,{H:()=>logError,o7:()=>logDebug,yN:()=>logWarn}),cov_1kiijbyup6();const TAG=(cov_1kiijbyup6().s[0]++,"[@melfore/konva-timeline]");cov_1kiijbyup6().s[1]++;const logger=(level,component,message)=>{cov_1kiijbyup6().f[0]++;const text=(cov_1kiijbyup6().s[2]++,`${TAG} ${component} - ${message}`);switch(cov_1kiijbyup6().s[3]++,level){case"debug":return cov_1kiijbyup6().b[0][0]++,cov_1kiijbyup6().s[4]++,console.info(text),void cov_1kiijbyup6().s[5]++;case"error":return cov_1kiijbyup6().b[0][1]++,cov_1kiijbyup6().s[6]++,console.error(text),void cov_1kiijbyup6().s[7]++;case"warn":return cov_1kiijbyup6().b[0][2]++,cov_1kiijbyup6().s[8]++,console.warn(text),void cov_1kiijbyup6().s[9]++}};cov_1kiijbyup6().s[10]++;const logDebug=(component,message)=>{if(cov_1kiijbyup6().f[1]++,cov_1kiijbyup6().s[11]++,!window.__MELFORE_KONVA_TIMELINE_DEBUG__)return cov_1kiijbyup6().b[1][0]++,void cov_1kiijbyup6().s[12]++;cov_1kiijbyup6().b[1][1]++,cov_1kiijbyup6().s[13]++,logger("debug",component,message)};cov_1kiijbyup6().s[14]++;const logError=(component,message)=>(cov_1kiijbyup6().f[2]++,cov_1kiijbyup6().s[15]++,logger("error",component,message));cov_1kiijbyup6().s[16]++;const logWarn=(component,message)=>(cov_1kiijbyup6().f[3]++,cov_1kiijbyup6().s[17]++,logger("warn",component,message))},"./src/utils/time-resolution.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A7:()=>displayAboveInterval,Ig:()=>getResolutionData,kv:()=>displayInterval});var _dimensions__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./src/utils/dimensions.ts");function cov_2g3dhmrjds(){var path="/home/runner/work/konva-timeline/konva-timeline/src/utils/time-resolution.ts",global=new Function("return this")(),gcv="__coverage__",coverageData={path:"/home/runner/work/konva-timeline/konva-timeline/src/utils/time-resolution.ts",statementMap:{0:{start:{line:33,column:42},end:{line:118,column:1}},1:{start:{line:120,column:41},end:{line:133,column:1}},2:{start:{line:140,column:36},end:{line:159,column:1}},3:{start:{line:141,column:20},end:{line:141,column:28}},4:{start:{line:142,column:2},end:{line:144,column:3}},5:{start:{line:143,column:4},end:{line:143,column:15}},6:{start:{line:146,column:2},end:{line:158,column:3}},7:{start:{line:149,column:6},end:{line:149,column:46}},8:{start:{line:151,column:6},end:{line:151,column:47}},9:{start:{line:153,column:6},end:{line:153,column:72}},10:{start:{line:155,column:6},end:{line:155,column:36}},11:{start:{line:157,column:6},end:{line:157,column:19}},12:{start:{line:166,column:31},end:{line:186,column:1}},13:{start:{line:167,column:20},end:{line:167,column:28}},14:{start:{line:168,column:2},end:{line:170,column:3}},15:{start:{line:169,column:4},end:{line:169,column:15}},16:{start:{line:172,column:2},end:{line:185,column:3}},17:{start:{line:174,column:6},end:{line:174,column:34}},18:{start:{line:176,column:6},end:{line:176,column:37}},19:{start:{line:178,column:6},end:{line:178,column:38}},20:{start:{line:180,column:6},end:{line:180,column:42}},21:{start:{line:182,column:6},end:{line:182,column:40}},22:{start:{line:184,column:6},end:{line:184,column:19}},23:{start:{line:192,column:33},end:{line:192,column:91}},24:{start:{line:192,column:70},end:{line:192,column:91}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:140,column:36},end:{line:140,column:37}},loc:{start:{line:140,column:81},end:{line:159,column:1}},line:140},1:{name:"(anonymous_1)",decl:{start:{line:166,column:31},end:{line:166,column:32}},loc:{start:{line:166,column:76},end:{line:186,column:1}},line:166},2:{name:"(anonymous_2)",decl:{start:{line:192,column:33},end:{line:192,column:34}},loc:{start:{line:192,column:70},end:{line:192,column:91}},line:192}},branchMap:{0:{loc:{start:{line:142,column:2},end:{line:144,column:3}},type:"if",locations:[{start:{line:142,column:2},end:{line:144,column:3}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:142},1:{loc:{start:{line:146,column:2},end:{line:158,column:3}},type:"switch",locations:[{start:{line:147,column:4},end:{line:147,column:18}},{start:{line:148,column:4},end:{line:149,column:46}},{start:{line:150,column:4},end:{line:151,column:47}},{start:{line:152,column:4},end:{line:153,column:72}},{start:{line:154,column:4},end:{line:155,column:36}},{start:{line:156,column:4},end:{line:157,column:19}}],line:146},2:{loc:{start:{line:168,column:2},end:{line:170,column:3}},type:"if",locations:[{start:{line:168,column:2},end:{line:170,column:3}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:168},3:{loc:{start:{line:172,column:2},end:{line:185,column:3}},type:"switch",locations:[{start:{line:173,column:4},end:{line:174,column:34}},{start:{line:175,column:4},end:{line:176,column:37}},{start:{line:177,column:4},end:{line:178,column:38}},{start:{line:179,column:4},end:{line:180,column:42}},{start:{line:181,column:4},end:{line:182,column:40}},{start:{line:183,column:4},end:{line:184,column:19}}],line:172}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0},f:{0:0,1:0,2:0},b:{0:[0,0],1:[0,0,0,0,0,0],2:[0,0],3:[0,0,0,0,0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"96e15a846124348c681af0d2d3e26641678ef382"},coverage=global[gcv]||(global[gcv]={});coverage[path]&&"96e15a846124348c681af0d2d3e26641678ef382"===coverage[path].hash||(coverage[path]=coverageData);var actualCoverage=coverage[path];return cov_2g3dhmrjds=function(){return actualCoverage},actualCoverage}cov_2g3dhmrjds();const RESOLUTIONS_DATA=(cov_2g3dhmrjds().s[0]++,{"1min":{columnSize:_dimensions__WEBPACK_IMPORTED_MODULE_0__.cM/2,label:"1 Minute",sizeInUnits:1,unit:"minute",unitAbove:"hour"},"5min":{columnSize:_dimensions__WEBPACK_IMPORTED_MODULE_0__.cM/2,label:"5 Minutes",sizeInUnits:5,unit:"minute",unitAbove:"hour"},"10min":{columnSize:_dimensions__WEBPACK_IMPORTED_MODULE_0__.cM/2,label:"10 Minutes",sizeInUnits:10,unit:"minute",unitAbove:"hour"},"15min":{columnSize:_dimensions__WEBPACK_IMPORTED_MODULE_0__.cM,label:"15 Minutes",sizeInUnits:15,unit:"minute",unitAbove:"hour"},"30min":{columnSize:_dimensions__WEBPACK_IMPORTED_MODULE_0__.cM,label:"30 Minutes",sizeInUnits:30,unit:"minute",unitAbove:"hour"},"1hrs":{columnSize:_dimensions__WEBPACK_IMPORTED_MODULE_0__.cM,label:"1 Hour",sizeInUnits:1,unit:"hour",unitAbove:"day"},"2hrs":{columnSize:_dimensions__WEBPACK_IMPORTED_MODULE_0__.cM,label:"2 Hours",sizeInUnits:2,unit:"hour",unitAbove:"day"},"6hrs":{columnSize:2*_dimensions__WEBPACK_IMPORTED_MODULE_0__.cM,label:"1/4 of Day",sizeInUnits:6,unit:"hour",unitAbove:"day"},"12hrs":{columnSize:3*_dimensions__WEBPACK_IMPORTED_MODULE_0__.cM,label:"1/2 of Day",sizeInUnits:12,unit:"hour",unitAbove:"day"},"1day":{columnSize:3*_dimensions__WEBPACK_IMPORTED_MODULE_0__.cM,label:"1 Day",sizeInUnits:1,unit:"day",unitAbove:"week"},"1week":{columnSize:10*_dimensions__WEBPACK_IMPORTED_MODULE_0__.cM,label:"1 Week",sizeInUnits:1,unit:"week",unitAbove:"month"},"2weeks":{columnSize:10*_dimensions__WEBPACK_IMPORTED_MODULE_0__.cM,label:"2 Weeks",sizeInUnits:2,unit:"week",unitAbove:"month"}});cov_2g3dhmrjds().s[1]++;cov_2g3dhmrjds().s[2]++;const displayAboveInterval=(interval,unit)=>{cov_2g3dhmrjds().f[0]++;const{start}=(cov_2g3dhmrjds().s[3]++,interval);if(cov_2g3dhmrjds().s[4]++,!start)return cov_2g3dhmrjds().b[0][0]++,cov_2g3dhmrjds().s[5]++,"-";switch(cov_2g3dhmrjds().b[0][1]++,cov_2g3dhmrjds().s[6]++,unit){case"minute":cov_2g3dhmrjds().b[1][0]++;case"hour":return cov_2g3dhmrjds().b[1][1]++,cov_2g3dhmrjds().s[7]++,start.toFormat("dd/MM/yy HH:mm");case"day":return cov_2g3dhmrjds().b[1][2]++,cov_2g3dhmrjds().s[8]++,start.toFormat("ccc dd MMM yyyy");case"week":return cov_2g3dhmrjds().b[1][3]++,cov_2g3dhmrjds().s[9]++,`${start.toFormat("MMM yyyy")} CW ${start.toFormat("WW")}`;case"month":return cov_2g3dhmrjds().b[1][4]++,cov_2g3dhmrjds().s[10]++,start.toFormat("yyyy");default:return cov_2g3dhmrjds().b[1][5]++,cov_2g3dhmrjds().s[11]++,"N/A"}};cov_2g3dhmrjds().s[12]++;const displayInterval=(interval,unit)=>{cov_2g3dhmrjds().f[1]++;const{start}=(cov_2g3dhmrjds().s[13]++,interval);if(cov_2g3dhmrjds().s[14]++,!start)return cov_2g3dhmrjds().b[2][0]++,cov_2g3dhmrjds().s[15]++,"-";switch(cov_2g3dhmrjds().b[2][1]++,cov_2g3dhmrjds().s[16]++,unit){case"minute":return cov_2g3dhmrjds().b[3][0]++,cov_2g3dhmrjds().s[17]++,start.toFormat("mm");case"hour":return cov_2g3dhmrjds().b[3][1]++,cov_2g3dhmrjds().s[18]++,start.toFormat("HH:mm");case"day":return cov_2g3dhmrjds().b[3][2]++,cov_2g3dhmrjds().s[19]++,start.toFormat("ccc dd");case"week":return cov_2g3dhmrjds().b[3][3]++,cov_2g3dhmrjds().s[20]++,`CW ${start.toFormat("WW")}`;case"month":return cov_2g3dhmrjds().b[3][4]++,cov_2g3dhmrjds().s[21]++,start.toFormat("MMM yyyy");default:return cov_2g3dhmrjds().b[3][5]++,cov_2g3dhmrjds().s[22]++,"N/A"}};cov_2g3dhmrjds().s[23]++;const getResolutionData=key=>(cov_2g3dhmrjds().f[2]++,cov_2g3dhmrjds().s[24]++,RESOLUTIONS_DATA[key])},"./src/utils/time.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{Af:()=>isValidRangeTime,hA:()=>getValidRangeTime,n4:()=>getValidTime,tA:()=>getIntervalFromInternalTimeRange});var luxon__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/luxon/src/luxon.js"),_logger__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/utils/logger.ts");function cov_2pww01mykf(){var path="/home/runner/work/konva-timeline/konva-timeline/src/utils/time.ts",global=new Function("return this")(),gcv="__coverage__",coverageData={path:"/home/runner/work/konva-timeline/konva-timeline/src/utils/time.ts",statementMap:{0:{start:{line:28,column:28},end:{line:44,column:1}},1:{start:{line:29,column:13},end:{line:29,column:33}},2:{start:{line:31,column:2},end:{line:41,column:3}},3:{start:{line:33,column:6},end:{line:33,column:26}},4:{start:{line:34,column:6},end:{line:34,column:12}},5:{start:{line:36,column:6},end:{line:36,column:69}},6:{start:{line:37,column:6},end:{line:37,column:12}},7:{start:{line:39,column:6},end:{line:39,column:72}},8:{start:{line:40,column:6},end:{line:40,column:12}},9:{start:{line:43,column:2},end:{line:43,column:22}},10:{start:{line:46,column:33},end:{line:52,column:1}},11:{start:{line:47,column:13},end:{line:47,column:33}},12:{start:{line:48,column:20},end:{line:48,column:34}},13:{start:{line:49,column:23},end:{line:49,column:78}},14:{start:{line:51,column:2},end:{line:51,column:22}},15:{start:{line:54,column:32},end:{line:62,column:1}},16:{start:{line:55,column:20},end:{line:55,column:34}},17:{start:{line:56,column:26},end:{line:56,column:64}},18:{start:{line:57,column:2},end:{line:59,column:3}},19:{start:{line:58,column:4},end:{line:58,column:16}},20:{start:{line:60,column:2},end:{line:60,column:33}},21:{start:{line:61,column:2},end:{line:61,column:15}},22:{start:{line:68,column:48},end:{line:77,column:1}},23:{start:{line:73,column:13},end:{line:73,column:33}},24:{start:{line:74,column:24},end:{line:74,column:94}},25:{start:{line:75,column:22},end:{line:75,column:88}},26:{start:{line:76,column:2},end:{line:76,column:60}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:28,column:28},end:{line:28,column:29}},loc:{start:{line:28,column:87},end:{line:44,column:1}},line:28},1:{name:"(anonymous_1)",decl:{start:{line:46,column:33},end:{line:46,column:34}},loc:{start:{line:46,column:92},end:{line:52,column:1}},line:46},2:{name:"(anonymous_2)",decl:{start:{line:54,column:32},end:{line:54,column:33}},loc:{start:{line:54,column:76},end:{line:62,column:1}},line:54},3:{name:"(anonymous_3)",decl:{start:{line:68,column:48},end:{line:68,column:49}},loc:{start:{line:72,column:15},end:{line:77,column:1}},line:72}},branchMap:{0:{loc:{start:{line:29,column:13},end:{line:29,column:33}},type:"binary-expr",locations:[{start:{line:29,column:13},end:{line:29,column:21}},{start:{line:29,column:25},end:{line:29,column:33}}],line:29},1:{loc:{start:{line:31,column:2},end:{line:41,column:3}},type:"switch",locations:[{start:{line:32,column:4},end:{line:34,column:12}},{start:{line:35,column:4},end:{line:37,column:12}},{start:{line:38,column:4},end:{line:40,column:12}}],line:31},2:{loc:{start:{line:47,column:13},end:{line:47,column:33}},type:"binary-expr",locations:[{start:{line:47,column:13},end:{line:47,column:21}},{start:{line:47,column:25},end:{line:47,column:33}}],line:47},3:{loc:{start:{line:57,column:2},end:{line:59,column:3}},type:"if",locations:[{start:{line:57,column:2},end:{line:59,column:3}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:57},4:{loc:{start:{line:73,column:13},end:{line:73,column:33}},type:"binary-expr",locations:[{start:{line:73,column:13},end:{line:73,column:21}},{start:{line:73,column:25},end:{line:73,column:33}}],line:73}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0},f:{0:0,1:0,2:0,3:0},b:{0:[0,0],1:[0,0,0],2:[0,0],3:[0,0],4:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"988d016614d215a914e7aa39d21761fe876e82fb"},coverage=global[gcv]||(global[gcv]={});coverage[path]&&"988d016614d215a914e7aa39d21761fe876e82fb"===coverage[path].hash||(coverage[path]=coverageData);var actualCoverage=coverage[path];return cov_2pww01mykf=function(){return actualCoverage},actualCoverage}cov_2pww01mykf(),cov_2pww01mykf().s[0]++;const getValidTime=(date,timezone)=>{cov_2pww01mykf().f[0]++;const tz=(cov_2pww01mykf().s[1]++,cov_2pww01mykf().b[0][0]++,timezone||(cov_2pww01mykf().b[0][1]++,"system"));let dateInMillis;switch(cov_2pww01mykf().s[2]++,typeof date){case"number":cov_2pww01mykf().b[1][0]++,cov_2pww01mykf().s[3]++,dateInMillis=date,cov_2pww01mykf().s[4]++;break;case"string":cov_2pww01mykf().b[1][1]++,cov_2pww01mykf().s[5]++,dateInMillis=luxon__WEBPACK_IMPORTED_MODULE_0__.ou.fromISO(date,{zone:tz}).toMillis(),cov_2pww01mykf().s[6]++;break;case"object":cov_2pww01mykf().b[1][2]++,cov_2pww01mykf().s[7]++,dateInMillis=luxon__WEBPACK_IMPORTED_MODULE_0__.ou.fromJSDate(date,{zone:tz}).toMillis(),cov_2pww01mykf().s[8]++}return cov_2pww01mykf().s[9]++,dateInMillis};cov_2pww01mykf().s[10]++;const getValidRangeTime=(date,timezone)=>{cov_2pww01mykf().f[1]++;const tz=(cov_2pww01mykf().s[11]++,cov_2pww01mykf().b[2][0]++,timezone||(cov_2pww01mykf().b[2][1]++,"system")),validDate=(cov_2pww01mykf().s[12]++,new Date(date)),dateInMillis=(cov_2pww01mykf().s[13]++,luxon__WEBPACK_IMPORTED_MODULE_0__.ou.fromJSDate(validDate,{zone:tz}).toMillis());return cov_2pww01mykf().s[14]++,dateInMillis};cov_2pww01mykf().s[15]++;const isValidRangeTime=(date,name)=>{cov_2pww01mykf().f[2]++;const validDate=(cov_2pww01mykf().s[16]++,new Date(date)),isValidDateTime=(cov_2pww01mykf().s[17]++,luxon__WEBPACK_IMPORTED_MODULE_0__.ou.fromJSDate(validDate).isValid);return cov_2pww01mykf().s[18]++,isValidDateTime?(cov_2pww01mykf().b[3][0]++,cov_2pww01mykf().s[19]++,!0):(cov_2pww01mykf().b[3][1]++,cov_2pww01mykf().s[20]++,(0,_logger__WEBPACK_IMPORTED_MODULE_1__.H)(name,"Invalid Date"),cov_2pww01mykf().s[21]++,!1)};cov_2pww01mykf().s[22]++;const getIntervalFromInternalTimeRange=({start,end},resolution,timezone)=>{cov_2pww01mykf().f[3]++;const tz=(cov_2pww01mykf().s[23]++,cov_2pww01mykf().b[4][0]++,timezone||(cov_2pww01mykf().b[4][1]++,"system")),startDateTime=(cov_2pww01mykf().s[24]++,luxon__WEBPACK_IMPORTED_MODULE_0__.ou.fromMillis(start,{zone:tz}).startOf(resolution.unitAbove)),endDateTime=(cov_2pww01mykf().s[25]++,luxon__WEBPACK_IMPORTED_MODULE_0__.ou.fromMillis(end,{zone:tz}).endOf(resolution.unitAbove));return cov_2pww01mykf().s[26]++,luxon__WEBPACK_IMPORTED_MODULE_0__.Xp.fromDateTimes(startDateTime,endDateTime)}}}]); \ No newline at end of file diff --git a/docs/iframe.html b/docs/iframe.html index 2126153..a4316b9 100644 --- a/docs/iframe.html +++ b/docs/iframe.html @@ -348,7 +348,7 @@ window['DOCS_OPTIONS'] = {"docsMode":true,"defaultName":"Docs","autodocs":"tag"};