diff --git a/asset-manifest.json b/asset-manifest.json index 4e83fe10..5d1477c7 100644 --- a/asset-manifest.json +++ b/asset-manifest.json @@ -1,7 +1,7 @@ { "files": { "main.css": "/LedFx-Frontend-v2/static/css/main.7b9f96b2.css", - "main.js": "/LedFx-Frontend-v2/static/js/main.a7cafd16.js", + "main.js": "/LedFx-Frontend-v2/static/js/main.f1b5a683.js", "static/js/685.98137b60.chunk.js": "/LedFx-Frontend-v2/static/js/685.98137b60.chunk.js", "static/media/xmas.png": "/LedFx-Frontend-v2/static/media/xmas.3e4e83405d14fb81488b.png", "static/media/materialdesignicons-webfont.woff": "/LedFx-Frontend-v2/static/media/materialdesignicons-webfont.059ea00c378aeafc39fc.woff", @@ -39,6 +39,6 @@ }, "entrypoints": [ "static/css/main.7b9f96b2.css", - "static/js/main.a7cafd16.js" + "static/js/main.f1b5a683.js" ] } \ No newline at end of file diff --git a/index.html b/index.html index 5444a252..359d0e65 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -
=i&&e{if(U1(e)){if(void 0!==n[e.field])throw new Error(["MUI X: columnGroupingModel contains duplicated field",`column field ${e.field} occurs two times in the grouping model:`,`- ${n[e.field].join(" > ")}`,`- ${t.join(" > ")}`].join("\n"));return void(n[e.field]=t)}const{groupId:r,children:o}=e;o.forEach((e=>{G1(e,[...t,r],n)}))},q1=e=>{if(!e)return{};const t={};return e.forEach((e=>{G1(e,[],t)})),t},Y1=(e,t,n)=>{const r=e=>t[e]??[],o=[],i=Math.max(...e.map((e=>r(e).length))),a=(e,t,n)=>WG(r(e).slice(0,n+1),r(t).slice(0,n+1));for(let s=0;s{const o=r(t)[s]??null;if(0===e.length)return[{columnFields:[t],groupId:o}];const i=e[e.length-1],l=i.columnFields[i.columnFields.length-1];return i.groupId!==o||!a(l,t,s)||(c=l,u=t,n?.left&&n.left.includes(c)&&!n.left.includes(u)||n?.right&&!n.right.includes(c)&&n.right.includes(u))?[...e,{columnFields:[t],groupId:o}]:[...e.slice(0,e.length-1),{columnFields:[...i.columnFields,t],groupId:o}];var c,u}),[]);o.push(t)}return o},X1=["groupId","children"],K1=e=>{let t={};return e.forEach((e=>{if(U1(e))return;const{groupId:n,children:r}=e,o=(0,l.A)(e,X1);if(!n)throw new Error("MUI X: An element of the columnGroupingModel does not have either `field` or `groupId`.");const i=(0,s.A)({},o,{groupId:n}),a=K1(r);if(void 0!==a[n]||void 0!==t[n])throw new Error(`MUI X: The groupId ${n} is used multiple times in the columnGroupingModel.`);t=(0,s.A)({},t,a,{[n]:i})})),(0,s.A)({},t)},Q1=(e,t,n)=>{if(!t.columnGroupingModel)return e;const r=FU(n),o=VU(n),i=K1(t.columnGroupingModel??[]),a=q1(t.columnGroupingModel??[]),l=Y1(r,a,n.current.state.pinnedColumns??{}),c=0===o.length?0:Math.max(...o.map((e=>a[e]?.length??0)));return(0,s.A)({},e,{columnGrouping:{lookup:i,unwrappedGroupingModel:a,headerStructure:l,maxDepth:c}})},J1={includeHeaders:!0,includeOutliers:!1,outliersFactor:1.5,expand:!1};function Z1(e,t){if(void 0!==t&&e.changedTouches){for(let n=0;nn.length){for(l=0;l0||!n&&t<0)return o.index}return null}function T6(e,t){const{chart:n,_cachedMeta:r}=e,o=n._stacks||(n._stacks={}),{iScale:i,vScale:a,index:s}=r,l=i.axis,c=a.axis,u=function(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}(i,a,r),d=t.length;let p;for(let h=0;ho)return e}return Math.max(o,1)}(i,t,o);if(a>0){let e,n;const r=a>1?Math.round((l-s)/(a-1)):null;for(R9(t,c,u,T3(r)?0:s-r,s),e=0,n=a-1;e{let{datasetIndex:t,index:n}=e;const r=this.getDatasetMeta(t);if(!r)throw new Error("No dataset found at index "+t);return{datasetIndex:t,element:r.data[n],index:n}}));!W3(n,t)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,t))}notifyPlugins(e,t,n){return this._plugins.notify(this,e,t,n)}isPluginEnabled(e){return 1===this._plugins._cache.filter((t=>t.plugin.id===e)).length}_updateHoverStyles(e,t,n){const r=this.options.hover,o=(e,t)=>e.filter((e=>!t.some((t=>e.datasetIndex===t.datasetIndex&&e.index===t.index)))),i=o(t,e),a=n?e:o(e,t);i.length&&this.updateHoverStyle(i,r.mode,!1),a.length&&r.mode&&this.updateHoverStyle(a,r.mode,!0)}_eventHandler(e,t){const n={event:e,replay:t,cancelable:!0,inChartArea:this.isPointInArea(e)},r=t=>(t.options.events||this.options.events).includes(e.native.type);if(!1===this.notifyPlugins("beforeEvent",n,r))return;const o=this._handleEvent(e,t,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,r),(o||n.changed)&&this.render(),this}_handleEvent(e,t,n){const{_active:r=[],options:o}=this,i=t,a=this._getActiveElements(e,r,n,i),s=function(e){return"mouseup"===e.type||"click"===e.type||"contextmenu"===e.type}(e),l=function(e,t,n,r){return n&&"mouseout"!==e.type?r?t:e:null}(e,this._lastEvent,n,s);n&&(this._lastEvent=null,B3(o.onHover,[e,a,this],this),s&&B3(o.onClick,[e,a,this],this));const c=!W3(a,r);return(c||t)&&(this._active=a,this._updateHoverStyles(a,r,t)),this._lastEvent=l,c}_getActiveElements(e,t,n,r){if("mouseout"===e.type)return[];if(!n)return t;const o=this.options.hover;return this.getElementsAtEventForMode(e,o.mode,o,r)}}function g8(){return H3(m8.instances,(e=>e._plugins.invalidate()))}function v8(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;e.lineCap=z3(n.borderCapStyle,t.borderCapStyle),e.setLineDash(z3(n.borderDash,t.borderDash)),e.lineDashOffset=z3(n.borderDashOffset,t.borderDashOffset),e.lineJoin=z3(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=z3(n.borderWidth,t.borderWidth),e.strokeStyle=z3(n.borderColor,t.borderColor)}function b8(e,t,n){e.lineTo(n.x,n.y)}function y8(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=e.length,{start:o=0,end:i=r-1}=n,{start:a,end:s}=t,l=Math.max(o,a),c=Math.min(i,s),u=os&&i>s;return{count:r,start:l,loop:t.loop,ilen:ce.filter(t,r,o,n)))),e.itemSort&&(l=l.sort(((t,r)=>e.itemSort(t,r,n)))),H3(l,(t=>{const n=s7(e.callbacks,t);r.push(c7(n,"labelColor",this,t)),o.push(c7(n,"labelPointStyle",this,t)),i.push(c7(n,"labelTextColor",this,t))})),this.labelColors=r,this.labelPointStyles=o,this.labelTextColors=i,this.dataPoints=l,l}update(e,t){const n=this.options.setContext(this.getContext()),r=this._active;let o,i=[];if(r.length){const e=Q8[n.position].call(this,r,this._eventPosition);i=this._createItems(n),this.title=this.getTitle(i,n),this.beforeBody=this.getBeforeBody(i,n),this.body=this.getBody(i,n),this.afterBody=this.getAfterBody(i,n),this.footer=this.getFooter(i,n);const t=this._size=t7(this,n),a=Object.assign({},e,t),s=r7(this.chart,n,a),l=o7(n,a,s,this.chart);this.xAlign=s.xAlign,this.yAlign=s.yAlign,o={opacity:1,x:l.x,y:l.y,width:t.width,height:t.height,caretX:e.x,caretY:e.y}}else 0!==this.opacity&&(o={opacity:0});this._tooltipItems=i,this.$context=void 0,o&&this._resolveAnimations().update(this,o),e&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:t})}drawCaret(e,t,n,r){const o=this.getCaretPosition(e,n,r);t.lineTo(o.x1,o.y1),t.lineTo(o.x2,o.y2),t.lineTo(o.x3,o.y3)}getCaretPosition(e,t,n){const{xAlign:r,yAlign:o}=this,{caretSize:i,cornerRadius:a}=n,{topLeft:s,topRight:l,bottomLeft:c,bottomRight:u}=S4(a),{x:d,y:p}=e,{width:h,height:f}=t;let m,g,v,b,y,x;return"center"===o?(y=p+f/2,"left"===r?(m=d,g=m-i,b=y+i,x=y-i):(m=d+h,g=m+i,b=y-i,x=y+i),v=m):(g="left"===r?d+Math.max(s,c)+i:"right"===r?d+h-Math.max(l,u)-i:this.caretX,"top"===o?(b=p,y=b-i,m=g-i,v=g+i):(b=p+f,y=b+i,m=g+i,v=g-i),x=b),{x1:m,x2:g,x3:v,y1:b,y2:y,y3:x}}drawTitle(e,t,n){const r=this.title,o=r.length;let i,a,s;if(o){const l=d6(n.rtl,this.x,this.width);for(e.x=i7(this,n.titleAlign,n),t.textAlign=l.textAlign(n.titleAlign),t.textBaseline="middle",i=k4(n.titleFont),a=n.titleSpacing,t.fillStyle=n.titleColor,t.font=i.string,s=0;s