forked from michael5r/mmm-nest-status
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmmm-nest-status-templates.js
1 lines (1 loc) · 7.53 KB
/
mmm-nest-status-templates.js
1
!function(){var l=Handlebars.template,n=Handlebars.templates=Handlebars.templates||{};n["grid_protect.hbs"]=l({1:function(l,n,a,e,s){var t;return null!=(t=a.if.call(null!=n?n:l.nullContext||{},null!=n?n.showNames:n,{name:"if",hash:{},fn:l.program(2,s,0),inverse:l.noop,data:s}))?t:""},2:function(l,n,a,e,s){var t,u;return' <header class="title">'+(null!=(t="function"==typeof(u=null!=(u=a.name||(null!=n?n.name:n))?u:a.helperMissing)?u.call(null!=n?n:l.nullContext||{},{name:"name",hash:{},data:s}):u)?t:"")+"</header>\n"},compiler:[7,">= 4.0.0"],main:function(l,n,a,e,s){var t,u,i=null!=n?n:l.nullContext||{},c=a.helperMissing,r="function";return'<div class="'+l.escapeExpression(typeof(u=null!=(u=a.classes||(null!=n?n.classes:n))?u:c)===r?u.call(i,{name:"classes",hash:{},data:s}):u)+'">\n'+(null!=(t=a.unless.call(i,null!=n?n.moveTitle:n,{name:"unless",hash:{},fn:l.program(1,s,0),inverse:l.noop,data:s}))?t:"")+' <div class="circle">\n <div class="ring"></div>\n <span class="status">'+(null!=(t=typeof(u=null!=(u=a.statusText||(null!=n?n.statusText:n))?u:c)===r?u.call(i,{name:"statusText",hash:{},data:s}):u)?t:"")+"</span>\n </div>\n"+(null!=(t=a.if.call(i,null!=n?n.moveTitle:n,{name:"if",hash:{},fn:l.program(1,s,0),inverse:l.noop,data:s}))?t:"")+"</div>"},useData:!0}),n["grid_thermostat.hbs"]=l({1:function(l,n,a,e,s){var t,u;return' <header class="title">'+(null!=(t="function"==typeof(u=null!=(u=a.name||(null!=n?n.name:n))?u:a.helperMissing)?u.call(null!=n?n:l.nullContext||{},{name:"name",hash:{},data:s}):u)?t:"")+"</header>\n"},3:function(l,n,a,e,s){var t,u,i=null!=n?n:l.nullContext||{},c=a.helperMissing,r="function";return' <div class="dial">\n '+(null!=(t=typeof(u=null!=(u=a.dialSvg||(null!=n?n.dialSvg:n))?u:c)===r?u.call(i,{name:"dialSvg",hash:{},data:s}):u)?t:"")+'\n <div class="temp">'+(null!=(t=a.if.call(i,null!=n?n.showTempStatus:n,{name:"if",hash:{},fn:l.program(4,s,0),inverse:l.noop,data:s}))?t:"")+(null!=(t=typeof(u=null!=(u=a.targetTemp||(null!=n?n.targetTemp:n))?u:c)===r?u.call(i,{name:"targetTemp",hash:{},data:s}):u)?t:"")+"</div>\n </div>\n"},4:function(l,n,a,e,s){var t;return'<small class="temp-status">'+l.escapeExpression("function"==typeof(t=null!=(t=a.tempStatusText||(null!=n?n.tempStatusText:n))?t:a.helperMissing)?t.call(null!=n?n:l.nullContext||{},{name:"tempStatusText",hash:{},data:s}):t)+"</small>"},6:function(l,n,a,e,s){var t,u,i=null!=n?n:l.nullContext||{},c=a.helperMissing,r="function";return' <div class="circle">\n <div class="dial"></div>\n <span class="'+l.escapeExpression(typeof(u=null!=(u=a.statusClasses||(null!=n?n.statusClasses:n))?u:c)===r?u.call(i,{name:"statusClasses",hash:{},data:s}):u)+'">'+(null!=(t=typeof(u=null!=(u=a.ambientTemp||(null!=n?n.ambientTemp:n))?u:c)===r?u.call(i,{name:"ambientTemp",hash:{},data:s}):u)?t:"")+'</span>\n <div class="temp">'+(null!=(t=a.if.call(i,null!=n?n.showTempStatus:n,{name:"if",hash:{},fn:l.program(4,s,0),inverse:l.noop,data:s}))?t:"")+(null!=(t=typeof(u=null!=(u=a.targetTemp||(null!=n?n.targetTemp:n))?u:c)===r?u.call(i,{name:"targetTemp",hash:{},data:s}):u)?t:"")+"</div>\n </div>\n"},8:function(l,n,a,e,s){return' <span class="icn fan"></span>\n'},10:function(l,n,a,e,s){var t;return null!=(t=a.if.call(null!=n?n:l.nullContext||{},null!=n?n.leafOn:n,{name:"if",hash:{},fn:l.program(11,s,0),inverse:l.noop,data:s}))?t:""},11:function(l,n,a,e,s){return' <span class="icn leaf"></span>\n '},compiler:[7,">= 4.0.0"],main:function(l,n,a,e,s){var t,u,i=null!=n?n:l.nullContext||{},c=a.helperMissing,r="function",o=l.escapeExpression;return'<div class="'+o(typeof(u=null!=(u=a.classes||(null!=n?n.classes:n))?u:c)===r?u.call(i,{name:"classes",hash:{},data:s}):u)+'">\n'+(null!=(t=a.if.call(i,null!=n?n.showNames:n,{name:"if",hash:{},fn:l.program(1,s,0),inverse:l.noop,data:s}))?t:"")+(null!=(t=a.if.call(i,null!=n?n.isClassic:n,{name:"if",hash:{},fn:l.program(3,s,0),inverse:l.program(6,s,0),data:s}))?t:"")+' <div class="humidity">'+o(typeof(u=null!=(u=a.humidity||(null!=n?n.humidity:n))?u:c)===r?u.call(i,{name:"humidity",hash:{},data:s}):u)+"</div>\n"+(null!=(t=a.if.call(i,null!=n?n.fanOn:n,{name:"if",hash:{},fn:l.program(8,s,0),inverse:l.program(10,s,0),data:s}))?t:"")+"</div>"},useData:!0}),n["list_table.hbs"]=l({1:function(l,n,a,e,s){return' <th class="nest-id">ID</th>\n'},3:function(l,n,a,e,s,t,u){var i,c,r=null!=n?n:l.nullContext||{},o=a.helperMissing,h="function";return" <tr>\n"+(null!=(i=a.if.call(r,null!=u[1]?u[1].showId:u[1],{name:"if",hash:{},fn:l.program(4,s,0,t,u),inverse:l.noop,data:s}))?i:"")+' <td class="name">'+(null!=(i=typeof(c=null!=(c=a.name||(null!=n?n.name:n))?c:o)===h?c.call(r,{name:"name",hash:{},data:s}):c)?i:"")+"</td>\n <td"+(null!=(i=a.if.call(r,null!=n?n.c2Class:n,{name:"if",hash:{},fn:l.program(6,s,0,t,u),inverse:l.noop,data:s}))?i:"")+">"+(null!=(i=typeof(c=null!=(c=a.c2Text||(null!=n?n.c2Text:n))?c:o)===h?c.call(r,{name:"c2Text",hash:{},data:s}):c)?i:"")+"</td>\n <td"+(null!=(i=a.if.call(r,null!=n?n.c3Class:n,{name:"if",hash:{},fn:l.program(8,s,0,t,u),inverse:l.noop,data:s}))?i:"")+">"+(null!=(i=typeof(c=null!=(c=a.c3Text||(null!=n?n.c3Text:n))?c:o)===h?c.call(r,{name:"c3Text",hash:{},data:s}):c)?i:"")+"</td>\n <td"+(null!=(i=a.if.call(r,null!=n?n.c4Class:n,{name:"if",hash:{},fn:l.program(10,s,0,t,u),inverse:l.noop,data:s}))?i:"")+">"+(null!=(i=typeof(c=null!=(c=a.c4Text||(null!=n?n.c4Text:n))?c:o)===h?c.call(r,{name:"c4Text",hash:{},data:s}):c)?i:"")+"</td>\n </tr>\n"},4:function(l,n,a,e,s){var t;return' <td class="nest-id">'+l.escapeExpression("function"==typeof(t=null!=(t=a.id||(null!=n?n.id:n))?t:a.helperMissing)?t.call(null!=n?n:l.nullContext||{},{name:"id",hash:{},data:s}):t)+"</td>\n"},6:function(l,n,a,e,s){var t;return' class="'+l.escapeExpression("function"==typeof(t=null!=(t=a.c2Class||(null!=n?n.c2Class:n))?t:a.helperMissing)?t.call(null!=n?n:l.nullContext||{},{name:"c2Class",hash:{},data:s}):t)+'"'},8:function(l,n,a,e,s){var t;return' class="'+l.escapeExpression("function"==typeof(t=null!=(t=a.c3Class||(null!=n?n.c3Class:n))?t:a.helperMissing)?t.call(null!=n?n:l.nullContext||{},{name:"c3Class",hash:{},data:s}):t)+'"'},10:function(l,n,a,e,s){var t;return' class="'+l.escapeExpression("function"==typeof(t=null!=(t=a.c4Class||(null!=n?n.c4Class:n))?t:a.helperMissing)?t.call(null!=n?n:l.nullContext||{},{name:"c4Class",hash:{},data:s}):t)+'"'},compiler:[7,">= 4.0.0"],main:function(l,n,a,e,s,t,u){var i,c,r=null!=n?n:l.nullContext||{},o=a.helperMissing,h="function",p=l.escapeExpression;return'<table class="nest-list xsmall table '+p(typeof(c=null!=(c=a.tableClass||(null!=n?n.tableClass:n))?c:o)===h?c.call(r,{name:"tableClass",hash:{},data:s}):c)+'">\n <tr>\n'+(null!=(i=a.if.call(r,null!=n?n.showId:n,{name:"if",hash:{},fn:l.program(1,s,0,t,u),inverse:l.noop,data:s}))?i:"")+' <th class="name">'+p(typeof(c=null!=(c=a.type||(null!=n?n.type:n))?c:o)===h?c.call(r,{name:"type",hash:{},data:s}):c)+" Name</th>\n <th>"+p(typeof(c=null!=(c=a.c2Title||(null!=n?n.c2Title:n))?c:o)===h?c.call(r,{name:"c2Title",hash:{},data:s}):c)+"</th>\n <th>"+p(typeof(c=null!=(c=a.c3Title||(null!=n?n.c3Title:n))?c:o)===h?c.call(r,{name:"c3Title",hash:{},data:s}):c)+"</th>\n <th>"+p(typeof(c=null!=(c=a.c4Title||(null!=n?n.c4Title:n))?c:o)===h?c.call(r,{name:"c4Title",hash:{},data:s}):c)+"</th>\n </tr>\n"+(null!=(i=a.each.call(r,null!=n?n.rows:n,{name:"each",hash:{},fn:l.program(3,s,0,t,u),inverse:l.noop,data:s}))?i:"")+"</table>"},useData:!0,useDepths:!0})}();