forked from michael5r/mmm-hue-lights
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mmm-hue-lights-templates.js
1 lines (1 loc) · 7.9 KB
/
mmm-hue-lights-templates.js
1
!function(){var l=Handlebars.template,n=Handlebars.templates=Handlebars.templates||{};n["hue_grid.hbs"]=l({1:function(l,n,a,e,t){var s,u,i=null!=n?n:l.nullContext||{};return' <div class="hue '+l.escapeExpression("function"==typeof(u=null!=(u=a.class||(null!=n?n.class:n))?u:a.helperMissing)?u.call(i,{name:"class",hash:{},data:t}):u)+'"'+(null!=(s=a.if.call(i,null!=n?n.colorStyle:n,{name:"if",hash:{},fn:l.program(2,t,0),inverse:l.noop,data:t}))?s:"")+">\n\n"+(null!=(s=a.unless.call(i,null!=n?n.isMinimalUltra:n,{name:"unless",hash:{},fn:l.program(4,t,0),inverse:l.noop,data:t}))?s:"")+"\n"+(null!=(s=a.unless.call(i,null!=n?n.isMinimal:n,{name:"unless",hash:{},fn:l.program(9,t,0),inverse:l.noop,data:t}))?s:"")+"\n </div>\n"},2:function(l,n,a,e,t){var s,u;return' style="'+(null!=(s="function"==typeof(u=null!=(u=a.colorStyle||(null!=n?n.colorStyle:n))?u:a.helperMissing)?u.call(null!=n?n:l.nullContext||{},{name:"colorStyle",hash:{},data:t}):u)?s:"")+'"'},4:function(l,n,a,e,t){var s,u,i=null!=n?n:l.nullContext||{};return' <div class="top">\n <i class="icn icn-bulb"></i>\n <div class="title">\n '+l.escapeExpression("function"==typeof(u=null!=(u=a.name||(null!=n?n.name:n))?u:a.helperMissing)?u.call(i,{name:"name",hash:{},data:t}):u)+"\n "+(null!=(s=a.if.call(i,null!=n?n.lightText:n,{name:"if",hash:{},fn:l.program(5,t,0),inverse:l.noop,data:t}))?s:"")+"\n </div>\n "+(null!=(s=a.unless.call(i,null!=n?n.isMinimal:n,{name:"unless",hash:{},fn:l.program(7,t,0),inverse:l.noop,data:t}))?s:"")+"\n </div>\n"},5:function(l,n,a,e,t){var s;return"<small>"+l.escapeExpression("function"==typeof(s=null!=(s=a.lightText||(null!=n?n.lightText:n))?s:a.helperMissing)?s.call(null!=n?n:l.nullContext||{},{name:"lightText",hash:{},data:t}):s)+"</small>"},7:function(l,n,a,e,t){return'<div class="toggle"></div>'},9:function(l,n,a,e,t){var s;return null!=(s=a.if.call(null!=n?n:l.nullContext||{},null!=n?n.isOn:n,{name:"if",hash:{},fn:l.program(10,t,0),inverse:l.noop,data:t}))?s:""},10:function(l,n,a,e,t){var s,u;return' <div class="bot">\n <span class="toggle" style="width: '+(null!=(s="function"==typeof(u=null!=(u=a.itemBrightnessStyle||(null!=n?n.itemBrightnessStyle:n))?u:a.helperMissing)?u.call(null!=n?n:l.nullContext||{},{name:"itemBrightnessStyle",hash:{},data:t}):u)?s:"")+';"></span>\n </div>\n'},compiler:[7,">= 4.0.0"],main:function(l,n,a,e,t){var s;return null!=(s=a.each.call(null!=n?n:l.nullContext||{},null!=n?n.rows:n,{name:"each",hash:{},fn:l.program(1,t,0),inverse:l.noop,data:t}))?s:""},useData:!0}),n["hue_list_table.hbs"]=l({1:function(l,n,a,e,t){var s;return" <tr>\n"+(null!=(s=a.if.call(null!=n?n:l.nullContext||{},null!=n?n.isRightAligned:n,{name:"if",hash:{},fn:l.program(2,t,0),inverse:l.program(4,t,0),data:t}))?s:"")+" </tr>\n"},2:function(l,n,a,e,t){var s,u=null!=n?n:l.nullContext||{},i=a.helperMissing,r="function",o=l.escapeExpression;return" <th>"+o(typeof(s=null!=(s=a.c4Title||(null!=n?n.c4Title:n))?s:i)===r?s.call(u,{name:"c4Title",hash:{},data:t}):s)+"</th>\n <th>"+o(typeof(s=null!=(s=a.c3Title||(null!=n?n.c3Title:n))?s:i)===r?s.call(u,{name:"c3Title",hash:{},data:t}):s)+"</th>\n <th>"+o(typeof(s=null!=(s=a.c2Title||(null!=n?n.c2Title:n))?s:i)===r?s.call(u,{name:"c2Title",hash:{},data:t}):s)+'</th>\n <th class="icon"></th>\n'},4:function(l,n,a,e,t){var s,u=null!=n?n:l.nullContext||{},i=a.helperMissing,r="function",o=l.escapeExpression;return' <th class="icon"></th>\n <th>'+o(typeof(s=null!=(s=a.c2Title||(null!=n?n.c2Title:n))?s:i)===r?s.call(u,{name:"c2Title",hash:{},data:t}):s)+"</th>\n <th>"+o(typeof(s=null!=(s=a.c3Title||(null!=n?n.c3Title:n))?s:i)===r?s.call(u,{name:"c3Title",hash:{},data:t}):s)+"</th>\n <th>"+o(typeof(s=null!=(s=a.c4Title||(null!=n?n.c4Title:n))?s:i)===r?s.call(u,{name:"c4Title",hash:{},data:t}):s)+"</th>\n"},6:function(l,n,a,e,t,s,u){var i,r=null!=n?n:l.nullContext||{};return" <tr"+(null!=(i=a.if.call(r,null!=n?n.rowClass:n,{name:"if",hash:{},fn:l.program(7,t,0,s,u),inverse:l.noop,data:t}))?i:"")+(null!=(i=a.if.call(r,null!=n?n.rowStyles:n,{name:"if",hash:{},fn:l.program(9,t,0,s,u),inverse:l.noop,data:t}))?i:"")+">\n\n"+(null!=(i=a.if.call(r,null!=u[1]?u[1].isRightAligned:u[1],{name:"if",hash:{},fn:l.program(11,t,0,s,u),inverse:l.program(17,t,0,s,u),data:t}))?i:"")+"\n </tr>\n"},7:function(l,n,a,e,t){var s;return' class="'+l.escapeExpression("function"==typeof(s=null!=(s=a.rowClass||(null!=n?n.rowClass:n))?s:a.helperMissing)?s.call(null!=n?n:l.nullContext||{},{name:"rowClass",hash:{},data:t}):s)+'"'},9:function(l,n,a,e,t){var s,u;return' style="'+(null!=(s="function"==typeof(u=null!=(u=a.rowStyles||(null!=n?n.rowStyles:n))?u:a.helperMissing)?u.call(null!=n?n:l.nullContext||{},{name:"rowStyles",hash:{},data:t}):u)?s:"")+'"'},11:function(l,n,a,e,t,s,u){var i,r,o=null!=n?n:l.nullContext||{};return(null!=(i=a.unless.call(o,null!=u[1]?u[1].isMinimal:u[1],{name:"unless",hash:{},fn:l.program(12,t,0,s,u),inverse:l.noop,data:t}))?i:"")+" <td>"+(null!=(i="function"==typeof(r=null!=(r=a.name||(null!=n?n.name:n))?r:a.helperMissing)?r.call(o,{name:"name",hash:{},data:t}):r)?i:"")+'</td>\n <td class="icon"><i class="icn-bulb"></i></td>\n\n'},12:function(l,n,a,e,t){var s,u,i=null!=n?n:l.nullContext||{},r=a.helperMissing,o="function";return" <td"+(null!=(s=a.if.call(i,null!=n?n.c4Class:n,{name:"if",hash:{},fn:l.program(13,t,0),inverse:l.noop,data:t}))?s:"")+">"+(null!=(s=typeof(u=null!=(u=a.c4Text||(null!=n?n.c4Text:n))?u:r)===o?u.call(i,{name:"c4Text",hash:{},data:t}):u)?s:"")+"</td>\n <td"+(null!=(s=a.if.call(i,null!=n?n.c3Class:n,{name:"if",hash:{},fn:l.program(15,t,0),inverse:l.noop,data:t}))?s:"")+">"+(null!=(s=typeof(u=null!=(u=a.c3Text||(null!=n?n.c3Text:n))?u:r)===o?u.call(i,{name:"c3Text",hash:{},data:t}):u)?s:"")+"</td>\n"},13:function(l,n,a,e,t){var s;return' class="'+l.escapeExpression("function"==typeof(s=null!=(s=a.c4Class||(null!=n?n.c4Class:n))?s:a.helperMissing)?s.call(null!=n?n:l.nullContext||{},{name:"c4Class",hash:{},data:t}):s)+'"'},15:function(l,n,a,e,t){var s;return' class="'+l.escapeExpression("function"==typeof(s=null!=(s=a.c3Class||(null!=n?n.c3Class:n))?s:a.helperMissing)?s.call(null!=n?n:l.nullContext||{},{name:"c3Class",hash:{},data:t}):s)+'"'},17:function(l,n,a,e,t,s,u){var i,r,o=null!=n?n:l.nullContext||{};return'\n <td class="icon"><i class="icn-bulb"></i></td>\n <td>'+(null!=(i="function"==typeof(r=null!=(r=a.name||(null!=n?n.name:n))?r:a.helperMissing)?r.call(o,{name:"name",hash:{},data:t}):r)?i:"")+"</td>\n"+(null!=(i=a.unless.call(o,null!=u[1]?u[1].isMinimal:u[1],{name:"unless",hash:{},fn:l.program(18,t,0,s,u),inverse:l.noop,data:t}))?i:"")+"\n"},18:function(l,n,a,e,t){var s,u,i=null!=n?n:l.nullContext||{},r=a.helperMissing,o="function";return" <td"+(null!=(s=a.if.call(i,null!=n?n.c3Class:n,{name:"if",hash:{},fn:l.program(15,t,0),inverse:l.noop,data:t}))?s:"")+">"+(null!=(s=typeof(u=null!=(u=a.c3Text||(null!=n?n.c3Text:n))?u:r)===o?u.call(i,{name:"c3Text",hash:{},data:t}):u)?s:"")+"</td>\n <td"+(null!=(s=a.if.call(i,null!=n?n.c4Class:n,{name:"if",hash:{},fn:l.program(13,t,0),inverse:l.noop,data:t}))?s:"")+">"+(null!=(s=typeof(u=null!=(u=a.c4Text||(null!=n?n.c4Text:n))?u:r)===o?u.call(i,{name:"c4Text",hash:{},data:t}):u)?s:"")+"</td>\n"},compiler:[7,">= 4.0.0"],main:function(l,n,a,e,t,s,u){var i,r=null!=n?n:l.nullContext||{};return'<table class="hue-list xsmall table">\n\n'+(null!=(i=a.unless.call(r,null!=n?n.isMinimal:n,{name:"unless",hash:{},fn:l.program(1,t,0,s,u),inverse:l.noop,data:t}))?i:"")+"\n"+(null!=(i=a.each.call(r,null!=n?n.rows:n,{name:"each",hash:{},fn:l.program(6,t,0,s,u),inverse:l.noop,data:t}))?i:"")+"\n</table>"},useData:!0,useDepths:!0})}();