homeassistant-config/www/custom_ui/mini-graph-card-bundle.js

2 lines
74 KiB
JavaScript
Raw Normal View History

(function(){"use strict";function a(){const b=E(["\n <div class=\"info__item\">\n <span class=\"info__item__type\">","</span>\n <span class=\"info__item__value\">\n "," ","\n </span>\n <span class=\"info__item__time\">\n ","\n </span>\n </div>\n "]);return a=function(){return b},b}function b(){const a=E(["\n <div class=\"info flex\">\n ","\n </div>\n "]);return b=function(){return a},a}function c(){const a=E(["\n <div class=\"graph__labels flex\">\n <span class=\"label--max\">","</span>\n <span class=\"label--min\">","</span>\n </div>\n "]);return c=function(){return a},a}function d(){const a=E(["\n <svg width='100%' height="," viewBox='0 0 500 ","'\n @click=",">\n <g>\n <defs>\n ","\n </defs>\n ","\n ","\n ","\n ","\n </g>\n ","\n </svg>"]);return d=function(){return a},a}function e(){const a=E(["<g class='bars' ?anim=",">","</g>"]);return e=function(){return a},a}function f(){const a=E(["\n <rect class='bar' x="," y=","\n height="," width="," fill=","\n @mouseover=","\n @mouseout=",">\n ","\n </rect>"]);return f=function(){return a},a}function g(){const a=E(["\n <animate attributeName='y' from="," to="," dur='1s' fill='remove'\n calcMode='spline' keyTimes='0; 1' keySplines='0.215 0.61 0.355 1'>\n </animate>"]);return g=function(){return a},a}function h(){const a=E(["\n <rect class='line--rect'\n ?inactive=","\n id=","\n fill="," height=\"100%\" width=\"100%\"\n mask=","\n />"]);return h=function(){return a},a}function i(){const a=E(["",""]);return i=function(){return a},a}function j(){const a=E(["\n <stop stop-color="," offset="," />\n "]);return j=function(){return a},a}function k(){const a=E(["\n <linearGradient id="," gradientTransform=\"rotate(90)\">\n ","\n </linearGradient>"]);return k=function(){return a},a}function l(){const a=E(["\n <g class='line--points'\n ?tooltip=","\n ?inactive=","\n ?init=","\n anim=","\n style=\"animation-delay: ","\"\n fill=","\n stroke=","\n stroke-width=",">\n ","\n </g>"]);return l=function(){return a},a}function m(){const a=E(["\n <circle\n class='line--point'\n ?inactive=","\n style=","\n stroke=","\n fill=","\n cx="," cy="," r=","\n @mouseover=","\n @mouseout=","\n />\n "]);return m=function(){return a},a}function n(){const a=E(["\n <mask id=",">\n ","\n </mask>\n "]);return n=function(){return a},a}function o(){const a=E(["\n <path\n class='line'\n .id=","\n anim="," ?init=","\n style=\"animation-delay: ","\"\n fill='none'\n stroke-dasharray="," stroke-dashoffset=","\n stroke=","\n stroke-width=","\n d=","\n />"]);return o=function(){return a},a}function p(){const a=E(["\n <defs>\n <linearGradient id="," x1=\"0%\" y1=\"0%\" x2=\"0%\" y2=\"100%\">\n <stop stop-color="," offset='0%' stop-opacity='1'/>\n <stop stop-color="," offset='100%' stop-opacity='.15'/>\n </linearGradient>\n </defs>\n <path class='line--fill'\n ?inactive=","\n type=","\n .id="," anim="," ?init=","\n style=\"animation-delay: ","\"\n fill=","\n stroke=","\n stroke-width=","\n d=","\n />"]);return p=function(){return a},a}function q(){const a=E(["\n <svg width='10' height='10'>\n <rect width='10' height='10' fill="," />\n </svg>\n "]);return q=function(){return a},a}function r(){const a=E(["\n <div class=\"graph__legend__item\"\n @click=","\n @mouseover=","\n @mouseout=",">\n ","\n <s