snowman-io 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 911fed346cdbcbb399b59a4e95344d949453b1d5
4
- data.tar.gz: 8bfe26d7f97092196be7efd79ef2a24061ec05a9
3
+ metadata.gz: 6211b4db73f70c9f23e3502b0211b41a3ed04a7a
4
+ data.tar.gz: 5159adb548e7ccefac716537ec0fddec75ac49f2
5
5
  SHA512:
6
- metadata.gz: bada2044a1ab416f4ac7cd448ecccc0ec4f433ebbf7785a3477389b408ea416b6427ff577bf8db49eda688eb44f6e63802aeb2e790d1d48435c0266c5513ce47
7
- data.tar.gz: 329ef7a6befb7dfb81b43124a88f3385d1d4a9874d5600e1a26f7d8a377dafa508b51571617bd0d924a501a40348bca6eaa8e91e66db6e2595f2e22959015561
6
+ metadata.gz: 8307042f3bf15df013d61ed98eedcf032184ce40dbef646d1efd174724176ac9b09b83f7413a0e3d9d8905746c60d291b214d306e7c381e31069b786a25cd030
7
+ data.tar.gz: 68e665a72fa0d8bf5e628686b09492325647137e124dd5711e3c49200b33e06052631737628efd2066de8c09c66251bb995e00adf1957130f4aa60faf72cf917
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # SnowmanIO
2
2
 
3
+ Version 0.5.0 - 2015.09.12
4
+ - Add internal metric: Metrics Per Seconds
5
+ - Sort metrics by name
6
+
3
7
  Version 0.4.0 - 2015.09.10
4
8
  - Sort apps by name on main page and place Snowman app first
5
9
  - Prev/next metric/app buttons
@@ -18,6 +18,7 @@ module SnowmanIO
18
18
 
19
19
  def perform
20
20
  Spider::InternalMongo.new.grab
21
+ Spider::Mps.new.grab
21
22
  end
22
23
  end
23
24
  end
@@ -16,15 +16,15 @@ module SnowmanIO
16
16
  end
17
17
 
18
18
  def self.time(name, &block)
19
- sys = App.where(system: true).first
19
+ app = App.where(system: true).first
20
20
  start = Time.now.to_f
21
21
  yield
22
- sys.register_metric_value(name, "time", Time.now.to_f - start, Time.now)
22
+ app.register_metric_value(name, "time", Time.now.to_f - start, Time.now)
23
23
  end
24
24
 
25
- def self.value(name, v)
26
- sys = App.where(system: true).first
27
- sys.register_metric_value(name, "amount", v, Time.now)
25
+ def self.value(name, v, at = Time.now)
26
+ app = App.where(system: true).first
27
+ app.register_metric_value(name, "amount", v, at)
28
28
  end
29
29
 
30
30
  def as_json(options = {})
@@ -0,0 +1,23 @@
1
+ module SnowmanIO
2
+ module Spider
3
+ # Metrics per second
4
+ class Mps
5
+ def grab
6
+ # work with raw datapoints for simplicity
7
+ key = Utils.floor_5min(Time.now)
8
+ value = Aggregation.where(precision: "5min", at: key).map(&:count).sum/300.0
9
+ prev_value = Aggregation.where(precision: "5min", at: key - 5.minutes).map(&:count).sum/300.0
10
+ name = "Metrics Per Second"
11
+
12
+ app = App.where(system: true).first
13
+ metric = app.metrics.where(name: name, kind: "amount").first_or_create!
14
+ metric.update_attributes!(last_value: value, last_value_updated_at: Time.now)
15
+ point = metric.data_points.where(at: key).first_or_create!
16
+ point.update_attributes!(value: value)
17
+ prev_point = metric.data_points.where(at: key - 5.minutes).first_or_create!
18
+ prev_point.update_attributes!(value: prev_value)
19
+ app.touch
20
+ end
21
+ end
22
+ end
23
+ end
@@ -1,4 +1,4 @@
1
- define("ui/adapters/application",["exports","ember-data","ui/config/environment"],function(e,t,a){"use strict";e["default"]=t["default"].ActiveModelAdapter.extend({host:a["default"].baseHost,namespace:a["default"].apiPrefix})}),define("ui/app",["exports","ember","ember/resolver","ember/load-initializers","ui/config/environment"],function(e,t,a,r,n){"use strict";var d;t["default"].MODEL_FACTORY_INJECTIONS=!0,d=t["default"].Application.extend({modulePrefix:n["default"].modulePrefix,podModulePrefix:n["default"].podModulePrefix,Resolver:a["default"]}),r["default"](d,n["default"].modulePrefix),e["default"]=d}),define("ui/components/app-status",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({app:null})}),define("ui/components/app-title",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({tagName:"h4",app:null,didInsertElement:function(){this.get("app.system")&&this.$().find("span").tooltip()}})}),define("ui/components/check-add",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({reset:function(){this.set("collapsed",!0),this.set("newCheck",this.fridge.create("check",{metric_id:this.get("metric.id")}))}.on("init"),actions:{toggle:function(){this.set("collapsed",!this.get("collapsed")),this.get("collapsed")&&this.reset()},resetCreation:function(){this.reset()}}})}),define("ui/components/check-header",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({tagName:"tr",enableActions:!0})}),define("ui/components/check-tr",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({tagName:"tr",classNameBindings:["trClassName"],resolving:!1,enableActions:!0,trClassName:function(){return this.get("check.isMy")&&this.get("check.triggered")?"danger":this.get("check.triggered")?"warning":null}.property("check.triggered","check.isMy"),mode:"show",isShow:t["default"].computed.equal("mode","show"),isEditing:t["default"].computed.equal("mode","editing"),isSaving:t["default"].computed.equal("mode","saving"),isDestroing:t["default"].computed.equal("mode","destroing"),allowTempateChange:!1,isTemplate:function(){return"show"!==this.get("mode")&&"editing"!==this.get("mode")&&"saving"!==this.get("mode")&&"destroing"!==this.get("mode")}.property("mode"),templateFormComponentName:function(){return this.get("isTemplate")?"checks/form-"+this.get("mode"):"empty"}.property("mode","isTemplate"),formTemplate:function(){return this.get("isTemplate")?this.get("mode").underscore():null}.property("mode","isTemplate"),supportedCheckTemplates:function(){return this.get("check.metric.supportedCheckTemplates").map(function(e){return{name:e,componentName:"checks/desc-"+e.dasherize()}})}.property("check.metric.supportedCheckTemplates"),actions:{list:function(){this.set("mode","editing")},select:function(e){this.set("mode",e.dasherize()),console.log("---",this.get("mode"),this.get("isTemplate"))},edit:function(){this.set("mode",this.get("check.template").dasherize())},cancel:function(){this.set("mode","show"),this.sendAction("reset")},save:function(e){var t=this;this.set("mode","saving"),this.fridge.save("check",e).then(function(){t.set("mode","show"),t.sendAction("reset")})},destroy:function(){confirm("Are you sure?")&&(this.set("mode","destroing"),this.fridge.destroyModel("check",this.get("check")))},resolve:function(){var e=this;this.set("resolving",!0),this.fridge.resolveCheck(this.get("check")).then(function(){e.set("resolving",!1)})}}})}),define("ui/components/checks/desc-last-value-limit",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({})}),define("ui/components/checks/desc-prev-day-datapoints-limit",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({})}),define("ui/components/checks/form-last-value-limit",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({reset:function(){this.set("form",this.fridge.clone("check",this.get("check"))),this.set("form.template",this.get("formTemplate"))}.on("init"),actions:{clickMore:function(){this.set("form.cmp","more")},clickLess:function(){this.set("form.cmp","less")},save:function(){this.sendAction("saveAction",this.get("form"))},cancel:function(){this.sendAction("cancelAction")}}})}),define("ui/components/checks/form-prev-day-datapoints-limit",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({reset:function(){this.set("form",this.fridge.clone("check",this.get("check"))),this.set("form.template",this.get("formTemplate"))}.on("init"),actions:{clickMore:function(){this.set("form.cmp","more")},clickLess:function(){this.set("form.cmp","less")},save:function(){this.sendAction("saveAction",this.get("form"))},cancel:function(){this.sendAction("cancelAction")}}})}),define("ui/components/checks/human-last-value-limit",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({})}),define("ui/components/checks/human-prev-day-datapoints-limit",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({})}),define("ui/components/ember-chart",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({tagName:"canvas",attributeBindings:["width","height"],onlyValues:!1,chartData:{},didInsertElement:function(){var e=this,a=this.get("element").getContext("2d"),r=t["default"].String.classify(this.get("type")),n={responsive:!0,showTooltips:!1,pointDot:!1,bezierCurve:!1,barValueSpacing:1};n.animation=!1,this.get("onlyValues")&&(n.showScale=!1);var d={labels:[],datasets:[]};this.get("chartData.labels").forEach(function(e){d.labels.push(e)}),this.get("chartData.datasets").forEach(function(t){var a=t.color||"blue",n=e._chartColors(r,a);n.data=t.data.map(function(e){return e}),d.datasets.push(n)});var i=new Chart(a)[r](d,n);this.set("chart",i)},willDestroyElement:function(){this.get("chart").destroy()},updateChart:function(){for(var e=this,t=this.get("chart");t.scale.xLabels.length&&t.scale.xLabels[0]!==this.get("chartData.labels")[0];)t.removeData();this.get("chartData.labels").forEach(function(a,r){if(r<t.scale.xLabels.length)e.get("chartData.datasets").forEach(function(a,n){"Line"===e.get("type")?t.datasets[n].points[r].value=a.data[r]:t.datasets[n].bars[r].value=a.data[r]});else{var n=[];e.get("chartData.datasets").forEach(function(e){n.push(e.data[r])}),t.addData(n,a)}}),t.update()}.observes("chartData","chartData.[]"),_chartColors:function(e,t){if("Bar"===e&&"blue"===t)return{fillColor:"rgba(151,187,205,1)",strokeColor:"rgba(151,187,205,1)"};if("Line"===e&&"blue"===t)return{fillColor:"rgba(151,187,205,0.2)",strokeColor:"rgba(151,187,205,1)"};throw"unknown color"}})}),define("ui/components/ember-gravatar",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({tagName:"img",attributeBindings:["src","style"],size:64,email:"",src:function(){var e=this.get("email"),t=this.get("size");return"//www.gravatar.com/avatar/"+md5(e)+"?s="+t}.property("email","size"),style:function(){var e=this.get("size");return("width:"+e+"px;height:"+e+"px;").htmlSafe()}.property("size")})}),define("ui/components/empty",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({app:null})}),define("ui/components/metrics/history-amount",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({})}),define("ui/components/metrics/history-counter",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({})}),define("ui/components/metrics/history-time",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({})}),define("ui/components/metrics/show-amount",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({})}),define("ui/components/metrics/show-counter",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({})}),define("ui/components/metrics/show-time",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({})}),define("ui/components/profile/email-edit",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({saving:!1,show:!1,users:t["default"].computed.alias("fridge.users"),reset:function(){this.set("email",this.get("user.email"))}.on("init"),isEmailExists:function(){var e=this;return this.get("users").filter(function(t){return t.get("id")!==e.get("user.id")}).mapBy("email").contains(this.get("email"))}.property("email","users.@each.email","user.id"),isFormInvalid:function(){return this.get("isEmailExists")||t["default"].isEmpty(this.get("email"))}.property("email","isEmailExists"),actions:{toggle:function(){this.set("show",!this.get("show"))},update:function(){var e=this;this.set("saving",!0),this.set("show",!1),this.fridge.userUpdateEmail(this.get("email")).then(function(t){e.set("saving",!1),e.set("email",t.email)})}},_baseUrl:function(){var e=this.container.lookup("adapter:application");return e.buildURL("")}})}),define("ui/components/profile/name-edit",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({saving:!1,show:!1,reset:function(){this.set("name",this.get("user.name"))}.on("init"),isFormInvalid:function(){return t["default"].isEmpty(this.get("name"))}.property("name"),actions:{toggle:function(){this.set("show",!this.get("show"))},update:function(){var e=this;this.set("saving",!0),this.set("show",!1),this.fridge.userUpdateName(this.get("name")).then(function(t){e.set("saving",!1),e.set("name",t.name)})}}})}),define("ui/components/profile/password-edit",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({saving:!1,show:!1,password:"",password2:"",isFormInvalid:function(){return t["default"].isEmpty(this.get("password"))||this.get("password")!==this.get("password2")}.property("password","password2"),actions:{toggle:function(){this.set("show",!this.get("show"))},update:function(){var e=this;this.set("saving",!0),this.set("show",!1),this.fridge.userUpdatePassword(this.get("password")).then(function(){e.set("saving",!1)})}}})}),define("ui/components/snowman-graph",["exports","ember","ui/config/environment"],function(e,t,a){"use strict";e["default"]=t["default"].Component.extend({metric:null,duration:"5min",type:"Line",width:600,height:250,onlyValues:!1,datapoints:[],loading:t["default"].computed.empty("datapoints"),load:function(){var e=this,r="/metrics/"+this.get("metric.id")+"/render?duration="+this.get("duration");t["default"].$.getJSON(a["default"].api+r).then(function(t){e.set("datapoints",t.datapoints)}),this.set("timer",t["default"].run.later(this,function(){this.load()},5e3))}.on("didInsertElement"),unload:function(){t["default"].run.cancel(this.get("timer"))}.on("willDestroyElement"),chartData:function(){var e=this,t=[];return this.get("targets").split(",").forEach(function(a){var r=a.match(/integral\((.*?)\)/);r?t.push({data:e._integral(e.get("datapoints").mapBy(r[1]))}):t.push({data:e.get("datapoints").mapBy(a)})}),{labels:this.get("datapoints").map(function(t){return"5min"===e.get("duration")?moment(t.at).format("HH:mm:ss"):"history"===e.get("duration")?moment(t.at).format("YYYY-MM-DD"):moment(t.at).format("HH:mm")}),datasets:t}}.property("datapoints","targets","duration"),_integral:function(e){var t=0;return e.map(function(e){return t+=e})}})}),define("ui/components/snowman-table",["exports","ember","ui/config/environment"],function(e,t,a){"use strict";e["default"]=t["default"].Component.extend({metric:null,targets:"at,min,avg,up,max,sum,count",datapoints:[],loading:!0,preparedDatapoints:function(){var e=this;return this.get("datapoints").toArray().reverse().map(function(t){var a=[];return e.get("targets").split(",").forEach(function(e){"at"===e?a.push(moment(t.at).format("YYYY-MM-DD")):a.push(t[e])}),a})}.property("datapoints.@each","targets"),columns:function(){return this.get("targets").split(",").map(function(e){return e.capitalize()})}.property("targets"),load:function(){var e=this,r="/metrics/"+this.get("metric.id")+"/render?duration=history";t["default"].$.getJSON(a["default"].api+r).then(function(t){e.set("datapoints",t.datapoints),e.set("loading",!1)})}.on("didInsertElement")})}),define("ui/components/users/invite-user",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({show:!1,sending:!1,email:"",users:t["default"].computed.alias("fridge.users"),isFormInvalid:function(){var e=this.get("email");return t["default"].isEmpty(e)||this.get("users").mapBy("email").contains(e)}.property("users.@each.email","email"),actions:{toggle:function(){this.set("show",!this.get("show"))},invite:function(){var e=this;this.set("show",!1),this.set("sending",!0),this.fridge.sendInvite(this.get("email")).then(function(){e.set("sending",!1),e.set("email","")})}}})}),define("ui/components/users/show-user",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({classNames:["media"],updating:!1,actions:{follow:function(){var e=this;this.set("updating",!0),this.fridge.updateFriendshipWith(this.get("user"),"follow").then(function(){e.set("updating",!1)})},unfollow:function(){var e=this;this.set("updating",!0),this.fridge.updateFriendshipWith(this.get("user"),"unfollow").then(function(){e.set("updating",!1)})}}})}),define("ui/components/users/wait-invite-tr",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({tagName:"tr",resending:!1,canceling:!1,isShowActions:function(){return!this.get("resending")&&!this.get("canceling")}.property("resending","canceling"),actions:{resend:function(){var e=this;this.set("resending",!0),this.fridge.resendInvite(this.get("user")).then(function(){e.set("resending",!1)})},cancel:function(){confirm("Are you sure?")&&(this.set("canceling",!0),this.fridge.cancelInvite(this.get("user")))}}})}),define("ui/controllers/apps",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Controller.extend({appsSorting:["casual","name"],apps:t["default"].computed.sort("model","appsSorting")})}),define("ui/controllers/apps/form",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Controller.extend({init:function(){this.set("form",this.fridge.clone("app",this.get("model")))}.on("init"),isFormValid:function(){return t["default"].isPresent(this.get("form.name"))}.property("form.name"),isFormInvalid:t["default"].computed.not("isFormValid"),actions:{save:function(){return this.set("saving",!0),!0}}})}),define("ui/controllers/apps/index",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Controller.extend({needs:["apps"],apps:t["default"].computed.alias("controllers.apps.apps"),userApps:t["default"].computed.filterBy("apps","system",!1),groupedApps:function(){return this.get("apps").reduce(function(e,a,r){return r%4?e.get("lastObject").pushObject(a):e.pushObject(t["default"].A([a])),e},t["default"].A())}.property("apps.@each")})}),define("ui/controllers/apps/show",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Controller.extend({needs:["apps"],apps:t["default"].computed.alias("controllers.apps.apps"),appIds:t["default"].computed.mapBy("apps","id"),position:function(){return this.get("appIds").indexOf(this.get("model.id"))+1}.property("appIds.@each","model.id"),prevAppId:function(){return this.get("position")>1?this.get("appIds").objectAt(this.get("position")-2):null}.property("appIds.@each","position"),nextAppId:function(){return this.get("position")<this.get("appIds.length")?this.get("appIds").objectAt(this.get("position")):null}.property("appIds.@each","position"),noPrev:t["default"].computed.not("prevAppId"),noNext:t["default"].computed.not("nextAppId"),isMetricsTabVisible:function(){return this.get("model.metrics.length")>0}.property("model.metrics.length"),actions:{go:function(e){this.transitionToRoute("apps.show.info",e)}}})}),define("ui/controllers/apps/show/edit",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Controller.extend({onInit:function(){this.set("destroing",!1)},actions:{destroy:function(){return this.set("destroing",!0),!0}}})}),define("ui/controllers/apps/show/info",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Controller.extend({needs:["snow"],baseUrl:t["default"].computed.alias("controllers.snow.model.info.base_url")})}),define("ui/controllers/apps/show/install",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Controller.extend({needs:["snow"],baseUrl:t["default"].computed.alias("controllers.snow.model.info.base_url")})}),define("ui/controllers/checks/failed",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Controller.extend({failedChecks:t["default"].computed.filterBy("fridge.checksForMe","triggered",!0)})}),define("ui/controllers/checks/index",["exports","ember","ui/mixins/checks-for-me"],function(e,t,a){"use strict";e["default"]=t["default"].Controller.extend(a["default"],{needs:["apps/show"],app:t["default"].computed.alias("controllers.apps/show.model"),checksForMe:t["default"].A(),checksForMeObserver:function(){var e=this;t["default"].run.once(this,function(){e.updateChecksForMe("app.checks","checksForMe")})}.observes("app.checks.@each.user_id","session.currentUser.following_ids.@each","session.currentUser.id").on("init")})}),define("ui/controllers/forget_password",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Controller.extend({reset:function(){this.set("email",""),this.set("status","edit")},isSending:t["default"].computed.equal("status","sending"),isSended:t["default"].computed.equal("status","sended"),isFormInvalid:function(){return this.get("isSending")||t["default"].isEmpty(this.get("email"))}.property("email","isSending"),actions:{restore:function(){var e=this;this.set("status","sending"),this.fridge.userRestorePassword(this.get("email")).then(function(){e.set("status","sended")})}}})}),define("ui/controllers/invite",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Controller.extend({token:t["default"].computed.alias("model.token"),password:"",name:"",isFormInvalid:function(){return t["default"].isEmpty(this.get("password"))||t["default"].isEmpty(this.get("name"))}.property("password","name"),actions:{register:function(){var e=this;this.fridge.acceptInvite(this.get("token"),this.get("name"),this.get("password")).then(function(t){console.log("acceptInvite",t);var a={identification:t.email,password:t.password};e.get("session").authenticate("simple-auth-authenticator:devise",a)})}}})}),define("ui/controllers/login",["exports","ember","simple-auth/mixins/login-controller-mixin"],function(e,t,a){"use strict";e["default"]=t["default"].Controller.extend(a["default"],{authenticator:"simple-auth-authenticator:devise",isFormInvalid:function(){return t["default"].isEmpty(this.get("identification"))||t["default"].isEmpty(this.get("password"))}.property("identification","password"),actions:{authenticate:function(){var e=this;this._super().then(null,function(t){e.set("errorMessage",t.message)})}}})}),define("ui/controllers/metrics/history",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Controller.extend({needs:["apps/show"],app:t["default"].computed.alias("controllers.apps/show.model")})}),define("ui/controllers/metrics/index",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Controller.extend({actions:{destroy:function(e){var t=this;confirm("Are you sure?")&&this.fridge.destroyModel("metric",e).then(function(){0===t.get("model.metrics.length")&&t.transitionToRoute("apps.show.info",t.get("model"))})}}})}),define("ui/controllers/metrics/show",["exports","ember","ui/mixins/checks-for-me"],function(e,t,a){"use strict";e["default"]=t["default"].Controller.extend(a["default"],{needs:["apps/show"],app:t["default"].computed.alias("controllers.apps/show.model"),metricIds:t["default"].computed.mapBy("app.metrics","id"),position:function(){return this.get("metricIds").indexOf(this.get("model.id"))+1}.property("metricIds.@each","model.id"),prevMetricId:function(){return this.get("position")>1?this.get("metricIds").objectAt(this.get("position")-2):null}.property("metricIds.@each","position"),nextMetricId:function(){return this.get("position")<this.get("metricIds.length")?this.get("metricIds").objectAt(this.get("position")):null}.property("metricIds.@each","position"),noPrev:t["default"].computed.not("prevMetricId"),noNext:t["default"].computed.not("nextMetricId"),checksForMe:t["default"].A(),checksForMeObserver:function(){var e=this;t["default"].run.once(this,function(){e.updateChecksForMe("model.checks","checksForMe")})}.observes("model.checks.@each.user_id","session.currentUser.following_ids.@each","session.currentUser.id").on("init"),actions:{go:function(e){this.transitionToRoute("metrics.show",this.get("app"),e)}}})}),define("ui/controllers/restore_password",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Controller.extend({token:t["default"].computed.alias("model.token"),reset:function(){this.set("password",""),this.set("saving",!1)},isFormInvalid:function(){return this.get("saving")||t["default"].isEmpty(this.get("password"))}.property("password","saving"),actions:{update:function(){var e=this;this.set("saving",!0),this.fridge.resetPassword(this.get("token"),this.get("password")).then(function(t){var a={identification:t.email,password:t.password};e.get("session").authenticate("simple-auth-authenticator:devise",a)})}}})}),define("ui/controllers/snow",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Controller.extend({currentUser:t["default"].computed.alias("session.currentUser")})}),define("ui/controllers/snow/profile",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Controller.extend({reset:function(){this.set("destroing",!1)},actions:{destroy:function(){var e=this;confirm("Are you sure?")&&(this.set("destroing",!0),this.fridge.destroyUser(this.get("session.currentUser")).then(function(){e.get("session").invalidate()}))}}})}),define("ui/controllers/snow/settings",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Controller.extend({needs:["snow"],baseUrl:t["default"].computed.alias("controllers.snow.model.info.base_url")})}),define("ui/controllers/snow/settings/force_ssl",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Controller.extend({needs:["snow"],forceSSL:t["default"].computed.alias("controllers.snow.model.info.force_ssl"),reset:function(){this.set("show",!1),this.set("saving",!1)},statusText:function(){return this.get("forceSSL")?"yes":"no"}.property("forceSSL"),actions:{toggle:function(){this.set("show",!this.get("show"))},update:function(e){var a=this;this.set("saving",!0),this.set("show",!1),t["default"].$.post(this._baseUrl()+"/force_ssl",{force_ssl:"enable"===e},function(e){a.set("saving",!1),a.set("forceSSL",e.force_ssl),e.force_ssl&&"https:"!==location.protocol&&(window.location.href=window.location.href)})}},_baseUrl:function(){var e=this.container.lookup("adapter:application");return e.buildURL("")}})}),define("ui/controllers/unpacking",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Controller.extend({user:t["default"].computed.alias("model.user"),isFormInvalid:function(){return t["default"].isEmpty(this.get("user.name"))||t["default"].isEmpty(this.get("user.email"))||t["default"].isEmpty(this.get("user.password"))}.property("user.name","user.email","user.password"),actions:{setup:function(){var e=this,t=this.get("user");this.fridge.save("user",t).then(function(){var a={identification:t.get("email"),password:t.get("password")};e.get("session").authenticate("simple-auth-authenticator:devise",a)})}}})}),define("ui/controllers/users/index",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Controller.extend({activeUsers:t["default"].computed.filterBy("model","isActive"),waitInviteUsers:t["default"].computed.filterBy("model","isWaitInvite"),usersInGroupsOfTwo:function(){return this.get("activeUsers").reduce(function(e,a,r){return r%2?e.get("lastObject").set("second",a):e.pushObject(t["default"].Object.create({first:a})),e},t["default"].A())}.property("activeUsers.@each")})}),define("ui/controllers/users/show",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Controller.extend({reset:function(){this.set("updating",!1),this.set("destroing",!1)},actions:{follow:function(){var e=this;this.set("updating",!0),this.fridge.updateFriendshipWith(this.get("model"),"follow").then(function(){e.set("updating",!1)})},unfollow:function(){var e=this;this.set("updating",!0),this.fridge.updateFriendshipWith(this.get("model"),"unfollow").then(function(){e.set("updating",!1)})},destroy:function(){var e=this;confirm("Are you sure?")&&(this.set("destroing",!0),this.fridge.destroyUser(this.get("model")).then(function(){e.transitionToRoute("users")}))}}})}),define("ui/initializers/app-version",["exports","ui/config/environment","ember"],function(e,t,a){"use strict";var r=a["default"].String.classify,n=!1;e["default"]={name:"App Version",initialize:function(e,d){if(!n){var i=r(d.toString());a["default"].libraries.register(i,t["default"].APP.version),n=!0}}}}),define("ui/initializers/custom-session",["exports","simple-auth/session"],function(e,t){"use strict";function a(e,a){t["default"].reopen({setCurrentUser:function(){var e=this,t=this.get("user_id");return this.container.lookup("service:fridge").find("user",t).then(function(t){e.set("currentUser",t)})}.observes("user_id")}),a.inject("service:fridge","session","simple-auth-session:main"),a.inject("cold-model","session","simple-auth-session:main")}e.initialize=a,e["default"]={name:"custom-session",before:"simple-auth",initialize:a}}),define("ui/initializers/ember-moment",["exports","ember-moment/helpers/moment","ember-moment/helpers/ago","ember-moment/helpers/duration","ember"],function(e,t,a,r,n){"use strict";var d=function(){var e;e=n["default"].HTMLBars?function(e,t){n["default"].HTMLBars._registerHelper(e,n["default"].HTMLBars.makeBoundHelper(t))}:n["default"].Handlebars.helper,e("moment",t["default"]),e("ago",a["default"]),e("duration",r["default"])};e["default"]={name:"ember-moment",initialize:d},e.initialize=d}),define("ui/initializers/export-application-global",["exports","ember","ui/config/environment"],function(e,t,a){"use strict";function r(e,r){var n=t["default"].String.classify(a["default"].modulePrefix);a["default"].exportApplicationGlobal&&!window[n]&&(window[n]=r)}e.initialize=r,e["default"]={name:"export-application-global",initialize:r}}),define("ui/initializers/fridge",["exports"],function(e){"use strict";function t(e,t){t.inject("route","fridge","service:fridge"),t.inject("controller","fridge","service:fridge"),t.inject("component","fridge","service:fridge"),t.inject("cold-model","fridge","service:fridge")}e.initialize=t,e["default"]={name:"fridge",initialize:t}}),define("ui/initializers/models",["exports","ui/models/app","ui/models/metric","ui/models/check","ui/models/user"],function(e,t,a,r,n){"use strict";function d(e,d){d.register("cold-model:app",t["default"],{singleton:!1}),d.register("cold-model:metric",a["default"],{singleton:!1}),d.register("cold-model:check",r["default"],{singleton:!1}),d.register("cold-model:user",n["default"],{singleton:!1})}e.initialize=d,e["default"]={name:"snow",initialize:d}}),define("ui/initializers/simple-auth-devise",["exports","simple-auth-devise/configuration","simple-auth-devise/authenticators/devise","simple-auth-devise/authorizers/devise","ui/config/environment"],function(e,t,a,r,n){"use strict";e["default"]={name:"simple-auth-devise",before:"simple-auth",initialize:function(e,d){t["default"].load(e,n["default"]["simple-auth-devise"]||{}),e.register("simple-auth-authorizer:devise",r["default"]),e.register("simple-auth-authenticator:devise",a["default"])}}}),define("ui/initializers/simple-auth",["exports","simple-auth/configuration","simple-auth/setup","ui/config/environment"],function(e,t,a,r){"use strict";e["default"]={name:"simple-auth",initialize:function(e,n){t["default"].load(e,r["default"]["simple-auth"]||{}),a["default"](e,n)}}}),define("ui/mixins/checks-for-me",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Mixin.create({isCheckForMe:function(e){return this.get("session.currentUser.id")===e.get("user_id")||t["default"].makeArray(this.get("session.currentUser.following_ids")).contains(e.get("user_id"))},updateChecksForMe:function(e,t){for(var a=this,r=this.get(e).filter(function(e){return a.isCheckForMe(e)}),n=this.get(t),d=0;d<n.length;)r.contains(n[d])?d++:n.removeAt(d);r.forEach(function(e,t){(t===n.length||n[t]!==e)&&n.insertAt(t,e)})}})}),define("ui/mixins/cold-model",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Mixin.create({toAttributes:function(){var e={id:this.get("id")};return this.constructor.ATTRS.forEach(function(t){e[t]=this.get(t)},this),e},updateAttributes:function(e){return"id"in e&&this.set("id",e.id),this.constructor.ATTRS.forEach(function(t){t in e&&this.set(t,e[t])},this),this}})}),define("ui/mixins/not-authenticated-route-mixin",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Mixin.create({beforeModel:function(e){this._super(e),this.get("session.isAuthenticated")&&this.transitionTo("apps")}})}),define("ui/models/app",["exports","ember","ui/mixins/cold-model","ui/mixins/checks-for-me"],function(e,t,a,r){"use strict";var n=t["default"].Object.extend(a["default"],r["default"],{metrics:function(){return this.get("fridge.metrics").filterBy("app_id",this.get("id"))}.property("fridge.metrics.@each.app_id","id"),checks:function(){var e=this.get("metrics").mapBy("id");return this.get("fridge.checks").filter(function(t){return e.contains(t.get("metric_id"))})}.property("fridge.checks.@each.metric_id","metrics.@each.id","metric_id"),metricsAmountHuman:function(){var e=this.get("metrics.length");return e+" Metric"+(1!==e?"s":"")}.property("metrics.length"),checksForMe:function(){var e=this;return this.get("checks").filter(function(t){return e.isCheckForMe(t)})}.property("checks.@each.user_id","session.currentUser.id","session.currentUser.following_ids.@each"),checksForMeAmountHuman:function(){var e=this.get("checksForMe.length");return e+" Check"+(1!==e?"s":"")}.property("checksForMe.length"),casual:t["default"].computed.not("system"),triggeredChecks:t["default"].computed.filterBy("checks","triggered",!0),triggeredChecksForMe:t["default"].computed.filterBy("checksForMe","triggered",!0)});n.reopenClass({ATTRS:["name","token","datapoints","system"]}),e["default"]=n}),define("ui/models/check",["exports","ember","ui/mixins/cold-model"],function(e,t,a){"use strict";var r=t["default"].Object.extend(a["default"],{cmp:"more",value:0,metric:function(){return this.get("fridge.metrics").findBy("id",this.get("metric_id"))}.property("fridge.metrics.@each.id","metric_id"),user:function(){return this.get("fridge.users").findBy("id",this.get("user_id"))}.property("fridge.users.@each.id","user_id"),isNeverRunned:t["default"].computed.equal("last_status","NEVER RUNNED"),isOk:t["default"].computed.equal("last_status","OK"),isFailed:t["default"].computed.equal("last_status","FAILED"),isMy:function(){return this.get("session.currentUser.id")===this.get("user_id")}.property("session.currentUser.id","user_id"),humanComponentName:function(){return this.get("template")?"checks/human-"+this.get("template").dasherize():"empty"}.property("template")});r.reopenClass({ATTRS:["metric_id","cmp","value","triggered","last_run_at","last_status","template","user_id"]}),e["default"]=r}),define("ui/models/metric",["exports","ember","ui/mixins/cold-model","ui/mixins/checks-for-me"],function(e,t,a,r){
1
+ define("ui/adapters/application",["exports","ember-data","ui/config/environment"],function(e,t,a){"use strict";e["default"]=t["default"].ActiveModelAdapter.extend({host:a["default"].baseHost,namespace:a["default"].apiPrefix})}),define("ui/app",["exports","ember","ember/resolver","ember/load-initializers","ui/config/environment"],function(e,t,a,r,n){"use strict";var d;t["default"].MODEL_FACTORY_INJECTIONS=!0,d=t["default"].Application.extend({modulePrefix:n["default"].modulePrefix,podModulePrefix:n["default"].podModulePrefix,Resolver:a["default"]}),r["default"](d,n["default"].modulePrefix),e["default"]=d}),define("ui/components/app-status",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({app:null})}),define("ui/components/app-title",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({tagName:"h4",app:null,didInsertElement:function(){this.get("app.system")&&this.$().find("span").tooltip()}})}),define("ui/components/check-add",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({reset:function(){this.set("collapsed",!0),this.set("newCheck",this.fridge.create("check",{metric_id:this.get("metric.id")}))}.on("init"),actions:{toggle:function(){this.set("collapsed",!this.get("collapsed")),this.get("collapsed")&&this.reset()},resetCreation:function(){this.reset()}}})}),define("ui/components/check-header",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({tagName:"tr",enableActions:!0})}),define("ui/components/check-tr",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({tagName:"tr",classNameBindings:["trClassName"],resolving:!1,enableActions:!0,trClassName:function(){return this.get("check.isMy")&&this.get("check.triggered")?"danger":this.get("check.triggered")?"warning":null}.property("check.triggered","check.isMy"),mode:"show",isShow:t["default"].computed.equal("mode","show"),isEditing:t["default"].computed.equal("mode","editing"),isSaving:t["default"].computed.equal("mode","saving"),isDestroing:t["default"].computed.equal("mode","destroing"),allowTempateChange:!1,isTemplate:function(){return"show"!==this.get("mode")&&"editing"!==this.get("mode")&&"saving"!==this.get("mode")&&"destroing"!==this.get("mode")}.property("mode"),templateFormComponentName:function(){return this.get("isTemplate")?"checks/form-"+this.get("mode"):"empty"}.property("mode","isTemplate"),formTemplate:function(){return this.get("isTemplate")?this.get("mode").underscore():null}.property("mode","isTemplate"),supportedCheckTemplates:function(){return this.get("check.metric.supportedCheckTemplates").map(function(e){return{name:e,componentName:"checks/desc-"+e.dasherize()}})}.property("check.metric.supportedCheckTemplates"),actions:{list:function(){this.set("mode","editing")},select:function(e){this.set("mode",e.dasherize()),console.log("---",this.get("mode"),this.get("isTemplate"))},edit:function(){this.set("mode",this.get("check.template").dasherize())},cancel:function(){this.set("mode","show"),this.sendAction("reset")},save:function(e){var t=this;this.set("mode","saving"),this.fridge.save("check",e).then(function(){t.set("mode","show"),t.sendAction("reset")})},destroy:function(){confirm("Are you sure?")&&(this.set("mode","destroing"),this.fridge.destroyModel("check",this.get("check")))},resolve:function(){var e=this;this.set("resolving",!0),this.fridge.resolveCheck(this.get("check")).then(function(){e.set("resolving",!1)})}}})}),define("ui/components/checks/desc-last-value-limit",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({})}),define("ui/components/checks/desc-prev-day-datapoints-limit",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({})}),define("ui/components/checks/form-last-value-limit",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({reset:function(){this.set("form",this.fridge.clone("check",this.get("check"))),this.set("form.template",this.get("formTemplate"))}.on("init"),actions:{clickMore:function(){this.set("form.cmp","more")},clickLess:function(){this.set("form.cmp","less")},save:function(){this.sendAction("saveAction",this.get("form"))},cancel:function(){this.sendAction("cancelAction")}}})}),define("ui/components/checks/form-prev-day-datapoints-limit",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({reset:function(){this.set("form",this.fridge.clone("check",this.get("check"))),this.set("form.template",this.get("formTemplate"))}.on("init"),actions:{clickMore:function(){this.set("form.cmp","more")},clickLess:function(){this.set("form.cmp","less")},save:function(){this.sendAction("saveAction",this.get("form"))},cancel:function(){this.sendAction("cancelAction")}}})}),define("ui/components/checks/human-last-value-limit",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({})}),define("ui/components/checks/human-prev-day-datapoints-limit",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({})}),define("ui/components/ember-chart",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({tagName:"canvas",attributeBindings:["width","height"],onlyValues:!1,chartData:{},didInsertElement:function(){var e=this,a=this.get("element").getContext("2d"),r=t["default"].String.classify(this.get("type")),n={responsive:!0,showTooltips:!1,pointDot:!1,bezierCurve:!1,barValueSpacing:1};n.animation=!1,this.get("onlyValues")&&(n.showScale=!1);var d={labels:[],datasets:[]};this.get("chartData.labels").forEach(function(e){d.labels.push(e)}),this.get("chartData.datasets").forEach(function(t){var a=t.color||"blue",n=e._chartColors(r,a);n.data=t.data.map(function(e){return e}),d.datasets.push(n)});var i=new Chart(a)[r](d,n);this.set("chart",i)},willDestroyElement:function(){this.get("chart").destroy()},updateChart:function(){for(var e=this,t=this.get("chart");t.scale.xLabels.length&&t.scale.xLabels[0]!==this.get("chartData.labels")[0];)t.removeData();this.get("chartData.labels").forEach(function(a,r){if(r<t.scale.xLabels.length)e.get("chartData.datasets").forEach(function(a,n){"Line"===e.get("type")?t.datasets[n].points[r].value=a.data[r]:t.datasets[n].bars[r].value=a.data[r]});else{var n=[];e.get("chartData.datasets").forEach(function(e){n.push(e.data[r])}),t.addData(n,a)}}),t.update()}.observes("chartData","chartData.[]"),_chartColors:function(e,t){if("Bar"===e&&"blue"===t)return{fillColor:"rgba(151,187,205,1)",strokeColor:"rgba(151,187,205,1)"};if("Line"===e&&"blue"===t)return{fillColor:"rgba(151,187,205,0.2)",strokeColor:"rgba(151,187,205,1)"};throw"unknown color"}})}),define("ui/components/ember-gravatar",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({tagName:"img",attributeBindings:["src","style"],size:64,email:"",src:function(){var e=this.get("email"),t=this.get("size");return"//www.gravatar.com/avatar/"+md5(e)+"?s="+t}.property("email","size"),style:function(){var e=this.get("size");return("width:"+e+"px;height:"+e+"px;").htmlSafe()}.property("size")})}),define("ui/components/empty",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({app:null})}),define("ui/components/metrics/history-amount",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({})}),define("ui/components/metrics/history-counter",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({})}),define("ui/components/metrics/history-time",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({})}),define("ui/components/metrics/show-amount",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({})}),define("ui/components/metrics/show-counter",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({})}),define("ui/components/metrics/show-time",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({})}),define("ui/components/profile/email-edit",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({saving:!1,show:!1,users:t["default"].computed.alias("fridge.users"),reset:function(){this.set("email",this.get("user.email"))}.on("init"),isEmailExists:function(){var e=this;return this.get("users").filter(function(t){return t.get("id")!==e.get("user.id")}).mapBy("email").contains(this.get("email"))}.property("email","users.@each.email","user.id"),isFormInvalid:function(){return this.get("isEmailExists")||t["default"].isEmpty(this.get("email"))}.property("email","isEmailExists"),actions:{toggle:function(){this.set("show",!this.get("show"))},update:function(){var e=this;this.set("saving",!0),this.set("show",!1),this.fridge.userUpdateEmail(this.get("email")).then(function(t){e.set("saving",!1),e.set("email",t.email)})}},_baseUrl:function(){var e=this.container.lookup("adapter:application");return e.buildURL("")}})}),define("ui/components/profile/name-edit",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({saving:!1,show:!1,reset:function(){this.set("name",this.get("user.name"))}.on("init"),isFormInvalid:function(){return t["default"].isEmpty(this.get("name"))}.property("name"),actions:{toggle:function(){this.set("show",!this.get("show"))},update:function(){var e=this;this.set("saving",!0),this.set("show",!1),this.fridge.userUpdateName(this.get("name")).then(function(t){e.set("saving",!1),e.set("name",t.name)})}}})}),define("ui/components/profile/password-edit",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({saving:!1,show:!1,password:"",password2:"",isFormInvalid:function(){return t["default"].isEmpty(this.get("password"))||this.get("password")!==this.get("password2")}.property("password","password2"),actions:{toggle:function(){this.set("show",!this.get("show"))},update:function(){var e=this;this.set("saving",!0),this.set("show",!1),this.fridge.userUpdatePassword(this.get("password")).then(function(){e.set("saving",!1)})}}})}),define("ui/components/snowman-graph",["exports","ember","ui/config/environment"],function(e,t,a){"use strict";e["default"]=t["default"].Component.extend({metric:null,duration:"5min",type:"Line",width:600,height:250,onlyValues:!1,datapoints:[],loading:t["default"].computed.empty("datapoints"),load:function(){var e=this,r="/metrics/"+this.get("metric.id")+"/render?duration="+this.get("duration");t["default"].$.getJSON(a["default"].api+r).then(function(t){e.set("datapoints",t.datapoints)}),this.set("timer",t["default"].run.later(this,function(){this.load()},5e3))}.on("didInsertElement"),unload:function(){t["default"].run.cancel(this.get("timer"))}.on("willDestroyElement"),chartData:function(){var e=this,t=[];return this.get("targets").split(",").forEach(function(a){var r=a.match(/integral\((.*?)\)/);r?t.push({data:e._integral(e.get("datapoints").mapBy(r[1]))}):t.push({data:e.get("datapoints").mapBy(a)})}),{labels:this.get("datapoints").map(function(t){return"5min"===e.get("duration")?moment(t.at).format("HH:mm:ss"):"history"===e.get("duration")?moment(t.at).format("YYYY-MM-DD"):moment(t.at).format("HH:mm")}),datasets:t}}.property("datapoints","targets","duration"),_integral:function(e){var t=0;return e.map(function(e){return t+=e})}})}),define("ui/components/snowman-table",["exports","ember","ui/config/environment"],function(e,t,a){"use strict";e["default"]=t["default"].Component.extend({metric:null,targets:"at,min,avg,up,max,sum,count",datapoints:[],loading:!0,preparedDatapoints:function(){var e=this;return this.get("datapoints").toArray().reverse().map(function(t){var a=[];return e.get("targets").split(",").forEach(function(e){"at"===e?a.push(moment(t.at).format("YYYY-MM-DD")):a.push(t[e])}),a})}.property("datapoints.@each","targets"),columns:function(){return this.get("targets").split(",").map(function(e){return e.capitalize()})}.property("targets"),load:function(){var e=this,r="/metrics/"+this.get("metric.id")+"/render?duration=history";t["default"].$.getJSON(a["default"].api+r).then(function(t){e.set("datapoints",t.datapoints),e.set("loading",!1)})}.on("didInsertElement")})}),define("ui/components/users/invite-user",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({show:!1,sending:!1,email:"",users:t["default"].computed.alias("fridge.users"),isFormInvalid:function(){var e=this.get("email");return t["default"].isEmpty(e)||this.get("users").mapBy("email").contains(e)}.property("users.@each.email","email"),actions:{toggle:function(){this.set("show",!this.get("show"))},invite:function(){var e=this;this.set("show",!1),this.set("sending",!0),this.fridge.sendInvite(this.get("email")).then(function(){e.set("sending",!1),e.set("email","")})}}})}),define("ui/components/users/show-user",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({classNames:["media"],updating:!1,actions:{follow:function(){var e=this;this.set("updating",!0),this.fridge.updateFriendshipWith(this.get("user"),"follow").then(function(){e.set("updating",!1)})},unfollow:function(){var e=this;this.set("updating",!0),this.fridge.updateFriendshipWith(this.get("user"),"unfollow").then(function(){e.set("updating",!1)})}}})}),define("ui/components/users/wait-invite-tr",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({tagName:"tr",resending:!1,canceling:!1,isShowActions:function(){return!this.get("resending")&&!this.get("canceling")}.property("resending","canceling"),actions:{resend:function(){var e=this;this.set("resending",!0),this.fridge.resendInvite(this.get("user")).then(function(){e.set("resending",!1)})},cancel:function(){confirm("Are you sure?")&&(this.set("canceling",!0),this.fridge.cancelInvite(this.get("user")))}}})}),define("ui/controllers/apps",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Controller.extend({appsSorting:["casual","name"],apps:t["default"].computed.sort("model","appsSorting")})}),define("ui/controllers/apps/form",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Controller.extend({init:function(){this.set("form",this.fridge.clone("app",this.get("model")))}.on("init"),isFormValid:function(){return t["default"].isPresent(this.get("form.name"))}.property("form.name"),isFormInvalid:t["default"].computed.not("isFormValid"),actions:{save:function(){return this.set("saving",!0),!0}}})}),define("ui/controllers/apps/index",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Controller.extend({needs:["apps"],apps:t["default"].computed.alias("controllers.apps.apps"),userApps:t["default"].computed.filterBy("apps","system",!1),groupedApps:function(){return this.get("apps").reduce(function(e,a,r){return r%4?e.get("lastObject").pushObject(a):e.pushObject(t["default"].A([a])),e},t["default"].A())}.property("apps.@each")})}),define("ui/controllers/apps/show",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Controller.extend({needs:["apps"],apps:t["default"].computed.alias("controllers.apps.apps"),appIds:t["default"].computed.mapBy("apps","id"),position:function(){return this.get("appIds").indexOf(this.get("model.id"))+1}.property("appIds.@each","model.id"),prevAppId:function(){return this.get("position")>1?this.get("appIds").objectAt(this.get("position")-2):null}.property("appIds.@each","position"),nextAppId:function(){return this.get("position")<this.get("appIds.length")?this.get("appIds").objectAt(this.get("position")):null}.property("appIds.@each","position"),noPrev:t["default"].computed.not("prevAppId"),noNext:t["default"].computed.not("nextAppId"),isMetricsTabVisible:function(){return this.get("model.metrics.length")>0}.property("model.metrics.length"),actions:{go:function(e){this.transitionToRoute("apps.show.info",e)}}})}),define("ui/controllers/apps/show/edit",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Controller.extend({onInit:function(){this.set("destroing",!1)},actions:{destroy:function(){return this.set("destroing",!0),!0}}})}),define("ui/controllers/apps/show/info",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Controller.extend({needs:["snow"],baseUrl:t["default"].computed.alias("controllers.snow.model.info.base_url")})}),define("ui/controllers/apps/show/install",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Controller.extend({needs:["snow"],baseUrl:t["default"].computed.alias("controllers.snow.model.info.base_url")})}),define("ui/controllers/checks/failed",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Controller.extend({failedChecks:t["default"].computed.filterBy("fridge.checksForMe","triggered",!0)})}),define("ui/controllers/checks/index",["exports","ember","ui/mixins/checks-for-me"],function(e,t,a){"use strict";e["default"]=t["default"].Controller.extend(a["default"],{needs:["apps/show"],app:t["default"].computed.alias("controllers.apps/show.model"),checksForMe:t["default"].A(),checksForMeObserver:function(){var e=this;t["default"].run.once(this,function(){e.updateChecksForMe("app.checks","checksForMe")})}.observes("app.checks.@each.user_id","session.currentUser.following_ids.@each","session.currentUser.id").on("init")})}),define("ui/controllers/forget_password",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Controller.extend({reset:function(){this.set("email",""),this.set("status","edit")},isSending:t["default"].computed.equal("status","sending"),isSended:t["default"].computed.equal("status","sended"),isFormInvalid:function(){return this.get("isSending")||t["default"].isEmpty(this.get("email"))}.property("email","isSending"),actions:{restore:function(){var e=this;this.set("status","sending"),this.fridge.userRestorePassword(this.get("email")).then(function(){e.set("status","sended")})}}})}),define("ui/controllers/invite",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Controller.extend({token:t["default"].computed.alias("model.token"),password:"",name:"",isFormInvalid:function(){return t["default"].isEmpty(this.get("password"))||t["default"].isEmpty(this.get("name"))}.property("password","name"),actions:{register:function(){var e=this;this.fridge.acceptInvite(this.get("token"),this.get("name"),this.get("password")).then(function(t){console.log("acceptInvite",t);var a={identification:t.email,password:t.password};e.get("session").authenticate("simple-auth-authenticator:devise",a)})}}})}),define("ui/controllers/login",["exports","ember","simple-auth/mixins/login-controller-mixin"],function(e,t,a){"use strict";e["default"]=t["default"].Controller.extend(a["default"],{authenticator:"simple-auth-authenticator:devise",isFormInvalid:function(){return t["default"].isEmpty(this.get("identification"))||t["default"].isEmpty(this.get("password"))}.property("identification","password"),actions:{authenticate:function(){var e=this;this._super().then(null,function(t){e.set("errorMessage",t.message)})}}})}),define("ui/controllers/metrics/history",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Controller.extend({needs:["apps/show"],app:t["default"].computed.alias("controllers.apps/show.model")})}),define("ui/controllers/metrics/index",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Controller.extend({actions:{destroy:function(e){var t=this;confirm("Are you sure?")&&this.fridge.destroyModel("metric",e).then(function(){0===t.get("model.metrics.length")&&t.transitionToRoute("apps.show.info",t.get("model"))})}}})}),define("ui/controllers/metrics/show",["exports","ember","ui/mixins/checks-for-me"],function(e,t,a){"use strict";e["default"]=t["default"].Controller.extend(a["default"],{needs:["apps/show"],app:t["default"].computed.alias("controllers.apps/show.model"),metricIds:t["default"].computed.mapBy("app.metrics","id"),position:function(){return this.get("metricIds").indexOf(this.get("model.id"))+1}.property("metricIds.@each","model.id"),prevMetricId:function(){return this.get("position")>1?this.get("metricIds").objectAt(this.get("position")-2):null}.property("metricIds.@each","position"),nextMetricId:function(){return this.get("position")<this.get("metricIds.length")?this.get("metricIds").objectAt(this.get("position")):null}.property("metricIds.@each","position"),noPrev:t["default"].computed.not("prevMetricId"),noNext:t["default"].computed.not("nextMetricId"),checksForMe:t["default"].A(),checksForMeObserver:function(){var e=this;t["default"].run.once(this,function(){e.updateChecksForMe("model.checks","checksForMe")})}.observes("model.checks.@each.user_id","session.currentUser.following_ids.@each","session.currentUser.id").on("init"),actions:{go:function(e){this.transitionToRoute("metrics.show",this.get("app"),e)}}})}),define("ui/controllers/restore_password",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Controller.extend({token:t["default"].computed.alias("model.token"),reset:function(){this.set("password",""),this.set("saving",!1)},isFormInvalid:function(){return this.get("saving")||t["default"].isEmpty(this.get("password"))}.property("password","saving"),actions:{update:function(){var e=this;this.set("saving",!0),this.fridge.resetPassword(this.get("token"),this.get("password")).then(function(t){var a={identification:t.email,password:t.password};e.get("session").authenticate("simple-auth-authenticator:devise",a)})}}})}),define("ui/controllers/snow",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Controller.extend({currentUser:t["default"].computed.alias("session.currentUser")})}),define("ui/controllers/snow/profile",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Controller.extend({reset:function(){this.set("destroing",!1)},actions:{destroy:function(){var e=this;confirm("Are you sure?")&&(this.set("destroing",!0),this.fridge.destroyUser(this.get("session.currentUser")).then(function(){e.get("session").invalidate()}))}}})}),define("ui/controllers/snow/settings",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Controller.extend({needs:["snow"],baseUrl:t["default"].computed.alias("controllers.snow.model.info.base_url")})}),define("ui/controllers/snow/settings/force_ssl",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Controller.extend({needs:["snow"],forceSSL:t["default"].computed.alias("controllers.snow.model.info.force_ssl"),reset:function(){this.set("show",!1),this.set("saving",!1)},statusText:function(){return this.get("forceSSL")?"yes":"no"}.property("forceSSL"),actions:{toggle:function(){this.set("show",!this.get("show"))},update:function(e){var a=this;this.set("saving",!0),this.set("show",!1),t["default"].$.post(this._baseUrl()+"/force_ssl",{force_ssl:"enable"===e},function(e){a.set("saving",!1),a.set("forceSSL",e.force_ssl),e.force_ssl&&"https:"!==location.protocol&&(window.location.href=window.location.href)})}},_baseUrl:function(){var e=this.container.lookup("adapter:application");return e.buildURL("")}})}),define("ui/controllers/unpacking",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Controller.extend({user:t["default"].computed.alias("model.user"),isFormInvalid:function(){return t["default"].isEmpty(this.get("user.name"))||t["default"].isEmpty(this.get("user.email"))||t["default"].isEmpty(this.get("user.password"))}.property("user.name","user.email","user.password"),actions:{setup:function(){var e=this,t=this.get("user");this.fridge.save("user",t).then(function(){var a={identification:t.get("email"),password:t.get("password")};e.get("session").authenticate("simple-auth-authenticator:devise",a)})}}})}),define("ui/controllers/users/index",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Controller.extend({activeUsers:t["default"].computed.filterBy("model","isActive"),waitInviteUsers:t["default"].computed.filterBy("model","isWaitInvite"),usersInGroupsOfTwo:function(){return this.get("activeUsers").reduce(function(e,a,r){return r%2?e.get("lastObject").set("second",a):e.pushObject(t["default"].Object.create({first:a})),e},t["default"].A())}.property("activeUsers.@each")})}),define("ui/controllers/users/show",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Controller.extend({reset:function(){this.set("updating",!1),this.set("destroing",!1)},actions:{follow:function(){var e=this;this.set("updating",!0),this.fridge.updateFriendshipWith(this.get("model"),"follow").then(function(){e.set("updating",!1)})},unfollow:function(){var e=this;this.set("updating",!0),this.fridge.updateFriendshipWith(this.get("model"),"unfollow").then(function(){e.set("updating",!1)})},destroy:function(){var e=this;confirm("Are you sure?")&&(this.set("destroing",!0),this.fridge.destroyUser(this.get("model")).then(function(){e.transitionToRoute("users")}))}}})}),define("ui/initializers/app-version",["exports","ui/config/environment","ember"],function(e,t,a){"use strict";var r=a["default"].String.classify,n=!1;e["default"]={name:"App Version",initialize:function(e,d){if(!n){var i=r(d.toString());a["default"].libraries.register(i,t["default"].APP.version),n=!0}}}}),define("ui/initializers/custom-session",["exports","simple-auth/session"],function(e,t){"use strict";function a(e,a){t["default"].reopen({setCurrentUser:function(){var e=this,t=this.get("user_id");return this.container.lookup("service:fridge").find("user",t).then(function(t){e.set("currentUser",t)})}.observes("user_id")}),a.inject("service:fridge","session","simple-auth-session:main"),a.inject("cold-model","session","simple-auth-session:main")}e.initialize=a,e["default"]={name:"custom-session",before:"simple-auth",initialize:a}}),define("ui/initializers/ember-moment",["exports","ember-moment/helpers/moment","ember-moment/helpers/ago","ember-moment/helpers/duration","ember"],function(e,t,a,r,n){"use strict";var d=function(){var e;e=n["default"].HTMLBars?function(e,t){n["default"].HTMLBars._registerHelper(e,n["default"].HTMLBars.makeBoundHelper(t))}:n["default"].Handlebars.helper,e("moment",t["default"]),e("ago",a["default"]),e("duration",r["default"])};e["default"]={name:"ember-moment",initialize:d},e.initialize=d}),define("ui/initializers/export-application-global",["exports","ember","ui/config/environment"],function(e,t,a){"use strict";function r(e,r){var n=t["default"].String.classify(a["default"].modulePrefix);a["default"].exportApplicationGlobal&&!window[n]&&(window[n]=r)}e.initialize=r,e["default"]={name:"export-application-global",initialize:r}}),define("ui/initializers/fridge",["exports"],function(e){"use strict";function t(e,t){t.inject("route","fridge","service:fridge"),t.inject("controller","fridge","service:fridge"),t.inject("component","fridge","service:fridge"),t.inject("cold-model","fridge","service:fridge")}e.initialize=t,e["default"]={name:"fridge",initialize:t}}),define("ui/initializers/models",["exports","ui/models/app","ui/models/metric","ui/models/check","ui/models/user"],function(e,t,a,r,n){"use strict";function d(e,d){d.register("cold-model:app",t["default"],{singleton:!1}),d.register("cold-model:metric",a["default"],{singleton:!1}),d.register("cold-model:check",r["default"],{singleton:!1}),d.register("cold-model:user",n["default"],{singleton:!1})}e.initialize=d,e["default"]={name:"snow",initialize:d}}),define("ui/initializers/simple-auth-devise",["exports","simple-auth-devise/configuration","simple-auth-devise/authenticators/devise","simple-auth-devise/authorizers/devise","ui/config/environment"],function(e,t,a,r,n){"use strict";e["default"]={name:"simple-auth-devise",before:"simple-auth",initialize:function(e,d){t["default"].load(e,n["default"]["simple-auth-devise"]||{}),e.register("simple-auth-authorizer:devise",r["default"]),e.register("simple-auth-authenticator:devise",a["default"])}}}),define("ui/initializers/simple-auth",["exports","simple-auth/configuration","simple-auth/setup","ui/config/environment"],function(e,t,a,r){"use strict";e["default"]={name:"simple-auth",initialize:function(e,n){t["default"].load(e,r["default"]["simple-auth"]||{}),a["default"](e,n)}}}),define("ui/mixins/checks-for-me",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Mixin.create({isCheckForMe:function(e){return this.get("session.currentUser.id")===e.get("user_id")||t["default"].makeArray(this.get("session.currentUser.following_ids")).contains(e.get("user_id"))},updateChecksForMe:function(e,t){for(var a=this,r=this.get(e).filter(function(e){return a.isCheckForMe(e)}),n=this.get(t),d=0;d<n.length;)r.contains(n[d])?d++:n.removeAt(d);r.forEach(function(e,t){(t===n.length||n[t]!==e)&&n.insertAt(t,e)})}})}),define("ui/mixins/cold-model",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Mixin.create({toAttributes:function(){var e={id:this.get("id")};return this.constructor.ATTRS.forEach(function(t){e[t]=this.get(t)},this),e},updateAttributes:function(e){return"id"in e&&this.set("id",e.id),this.constructor.ATTRS.forEach(function(t){t in e&&this.set(t,e[t])},this),this}})}),define("ui/mixins/not-authenticated-route-mixin",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Mixin.create({beforeModel:function(e){this._super(e),this.get("session.isAuthenticated")&&this.transitionTo("apps")}})}),define("ui/models/app",["exports","ember","ui/mixins/cold-model","ui/mixins/checks-for-me"],function(e,t,a,r){"use strict";var n=t["default"].Object.extend(a["default"],r["default"],{metrics:function(){return this.get("fridge.metrics").filterBy("app_id",this.get("id")).sortBy("name")}.property("fridge.metrics.@each.app_id","fridge.metrics.@each.name","id"),checks:function(){var e=this.get("metrics").mapBy("id");return this.get("fridge.checks").filter(function(t){return e.contains(t.get("metric_id"))})}.property("fridge.checks.@each.metric_id","metrics.@each.id","metric_id"),metricsAmountHuman:function(){var e=this.get("metrics.length");return e+" Metric"+(1!==e?"s":"")}.property("metrics.length"),checksForMe:function(){var e=this;return this.get("checks").filter(function(t){return e.isCheckForMe(t)})}.property("checks.@each.user_id","session.currentUser.id","session.currentUser.following_ids.@each"),checksForMeAmountHuman:function(){var e=this.get("checksForMe.length");return e+" Check"+(1!==e?"s":"")}.property("checksForMe.length"),casual:t["default"].computed.not("system"),triggeredChecks:t["default"].computed.filterBy("checks","triggered",!0),triggeredChecksForMe:t["default"].computed.filterBy("checksForMe","triggered",!0)});n.reopenClass({ATTRS:["name","token","datapoints","system"]}),e["default"]=n}),define("ui/models/check",["exports","ember","ui/mixins/cold-model"],function(e,t,a){"use strict";var r=t["default"].Object.extend(a["default"],{cmp:"more",value:0,metric:function(){return this.get("fridge.metrics").findBy("id",this.get("metric_id"))}.property("fridge.metrics.@each.id","metric_id"),user:function(){return this.get("fridge.users").findBy("id",this.get("user_id"))}.property("fridge.users.@each.id","user_id"),isNeverRunned:t["default"].computed.equal("last_status","NEVER RUNNED"),isOk:t["default"].computed.equal("last_status","OK"),isFailed:t["default"].computed.equal("last_status","FAILED"),isMy:function(){return this.get("session.currentUser.id")===this.get("user_id")}.property("session.currentUser.id","user_id"),humanComponentName:function(){return this.get("template")?"checks/human-"+this.get("template").dasherize():"empty"}.property("template")});r.reopenClass({ATTRS:["metric_id","cmp","value","triggered","last_run_at","last_status","template","user_id"]}),e["default"]=r}),define("ui/models/metric",["exports","ember","ui/mixins/cold-model","ui/mixins/checks-for-me"],function(e,t,a,r){
2
2
  "use strict";var n=t["default"].Object.extend(a["default"],r["default"],{app:function(){return this.get("fridge.apps").findBy("id",this.get("app_id"))}.property("fridge.apps.@each.id","app_id"),checks:function(){return this.get("fridge.checks").filterBy("metric_id",this.get("id"))}.property("fridge.checks.@each.metric_id","id"),checksForMe:function(){var e=this;return this.get("checks").filter(function(t){return e.isCheckForMe(t)})}.property("checks.@each.user_id","session.currentUser.id","session.currentUser.following_ids.@each"),triggeredChecks:t["default"].computed.filterBy("checks","triggered",!0),triggeredChecksForMe:t["default"].computed.filterBy("checksForMe","triggered",!0),showComponentName:function(){return"metrics/show-"+this.get("kind")}.property("kind"),historyComponentName:function(){return"metrics/history-"+this.get("kind")}.property("kind"),supportedCheckTemplates:function(){return"amount"===this.get("kind")?["last_value_limit","prev_day_datapoints_limit"]:["prev_day_datapoints_limit"]}.property("kind")});n.reopenClass({ATTRS:["app_id","name","kind","last_value","last_value_updated_at"]}),e["default"]=n}),define("ui/models/user",["exports","ember","ui/mixins/cold-model"],function(e,t,a){"use strict";var r=t["default"].Object.extend(a["default"],{isActive:t["default"].computed.equal("status","active"),isWaitInvite:t["default"].computed.equal("status","wait_invite"),checks:function(){return this.get("fridge.checks").filterBy("user_id",this.get("id"))}.property("fridge.checks.@each.user_id","id"),isMe:function(){return this.get("id")===this.get("session.currentUser.id")}.property("session.currentUser.id","id"),isFollowedByMe:function(){return this.get("follower_ids").contains(this.get("session.currentUser.id"))}.property("follower_ids.@each","session.currentUser.id"),isFollowsMe:function(){return this.get("following_ids").contains(this.get("session.currentUser.id"))}.property("following_ids.@each","session.currentUser.id"),checksAmountHuman:function(){var e=this.get("checks.length");return e+" Check"+(1!==e?"s":"")}.property("checks.length")});r.reopenClass({ATTRS:["name","email","password","following_ids","follower_ids","status","invite_send_count"]}),e["default"]=r}),define("ui/router",["exports","ember","ui/config/environment"],function(e,t,a){"use strict";var r=t["default"].Router.extend({location:a["default"].locationType});r.map(function(){this.route("unpacking"),this.route("login"),this.route("invite",{path:"/invite/:token"}),this.route("forget_password"),this.route("restore_password",{path:"/restore_password/:token"}),this.resource("snow",{path:"/"},function(){this.route("settings"),this.route("profile"),this.resource("users",function(){this.route("show",{path:":user_id"})}),this.resource("apps",{path:"/"},function(){this.route("new",{path:"apps/new"}),this.route("show",{path:"apps/:app_id"},function(){this.route("info"),this.route("install"),this.route("edit"),this.resource("metrics",function(){this.route("show",{path:":metric_id"}),this.route("history",{path:":metric_id/history"})}),this.resource("checks",function(){})})})})}),e["default"]=r}),define("ui/routes/application",["exports","simple-auth/mixins/application-route-mixin","ember"],function(e,t,a){"use strict";e["default"]=a["default"].Route.extend(t["default"])}),define("ui/routes/apps",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Route.extend({model:function(){return this.fridge.get("apps")}})}),define("ui/routes/apps/new",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Route.extend({model:function(){return this.fridge.create("app")},actions:{save:function(e){var t=this;this.fridge.save("app",e).then(function(e){t.transitionTo("apps.show.info",e)})}}})}),define("ui/routes/apps/show",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Route.extend({model:function(e){return this.fridge.fetch("app",e.app_id)}})}),define("ui/routes/apps/show/edit",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Route.extend({model:function(){return this.modelFor("apps/show")},setupController:function(e,t){this._super(e,t),e.onInit()},actions:{save:function(e){var t=this;this.fridge.save("app",e).then(function(e){t.transitionTo("apps.show.info",e)})},destroy:function(e){var t=this;confirm("Are you sure?")&&this.fridge.destroyModel("app",e).then(function(){t.transitionTo("apps")})}}})}),define("ui/routes/forget_password",["exports","ember","ui/mixins/not-authenticated-route-mixin"],function(e,t,a){"use strict";e["default"]=t["default"].Route.extend(a["default"],{model:function(){return t["default"].RSVP.hash({info:t["default"].$.get(this._infoUrl())})},afterModel:function(e){t["default"].$("#progress-holder").remove(),e.info.unpacked||this.transitionTo("login")},setupController:function(e,t){this._super(e,t),e.reset()},_infoUrl:function(){var e=this.container.lookup("adapter:application");return e.buildURL("")+"/info0"}})}),define("ui/routes/invite",["exports","ember","ui/mixins/not-authenticated-route-mixin"],function(e,t,a){"use strict";e["default"]=t["default"].Route.extend(a["default"],{model:function(e){return t["default"].RSVP.hash({token:e.token,correct:this.fridge.checkInvite(e.token)})},afterModel:function(e){t["default"].$("#progress-holder").remove(),e.correct||this.transitionTo("login")},setupController:function(e,t){this._super(e,t),e.set("password",""),e.set("name","")}})}),define("ui/routes/login",["exports","ember","ui/mixins/not-authenticated-route-mixin"],function(e,t,a){"use strict";e["default"]=t["default"].Route.extend(a["default"],{model:function(){return t["default"].$.get(this._infoUrl())},afterModel:function(e){t["default"].$("#progress-holder").remove(),e.unpacked||this.transitionTo("unpacking")},setupController:function(e){e.set("errorMessage",null)},_infoUrl:function(){var e=this.container.lookup("adapter:application");return e.buildURL("")+"/info0"}})}),define("ui/routes/metrics/history",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Route.extend({model:function(e){return this.fridge.fetch("metric",e.metric_id)}})}),define("ui/routes/metrics/show",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Route.extend({model:function(e){return this.fridge.fetch("metric",e.metric_id)}})}),define("ui/routes/restore_password",["exports","ember","ui/mixins/not-authenticated-route-mixin"],function(e,t,a){"use strict";e["default"]=t["default"].Route.extend(a["default"],{model:function(e){return t["default"].RSVP.hash({token:e.token,correct:this.fridge.checkRestorePassword(e.token)})},afterModel:function(e){t["default"].$("#progress-holder").remove(),e.correct||this.transitionTo("login")},setupController:function(e,t){this._super(e,t),e.reset()}})}),define("ui/routes/snow",["exports","ember","simple-auth/mixins/authenticated-route-mixin"],function(e,t,a){"use strict";e["default"]=t["default"].Route.extend(a["default"],{model:function(){return t["default"].RSVP.hash({fridge:this.fridge.sync(),info:t["default"].$.get(this._infoUrl())})},afterModel:function(){t["default"].$("#progress-holder").remove()},_infoUrl:function(){var e=this.container.lookup("adapter:application");return e.buildURL("")+"/info"},activate:function(){this.set("timer",this._schedule())},deactivate:function(){t["default"].run.cancel(this.get("timer"))},_schedule:function(){return t["default"].run.later(this,function(){this.fridge.sync(),this.set("timer",this._schedule())},5e3)}})}),define("ui/routes/snow/profile",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Route.extend({setupController:function(e,t){this._super(e,t),e.reset()}})}),define("ui/routes/snow/settings",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Route.extend({setupController:function(e,t){this._super(e,t),this.controllerFor("snow.settings.force-ssl").reset()}})}),define("ui/routes/unpacking",["exports","ember","ui/mixins/not-authenticated-route-mixin"],function(e,t,a){"use strict";e["default"]=t["default"].Route.extend(a["default"],{model:function(){return t["default"].RSVP.hash({user:this.fridge.create("user"),info:t["default"].$.get(this._infoUrl())})},afterModel:function(e){t["default"].$("#progress-holder").remove(),e.info.unpacked&&this.transitionTo("login")},_infoUrl:function(){var e=this.container.lookup("adapter:application");return e.buildURL("")+"/info0"}})}),define("ui/routes/users/index",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Route.extend({model:function(){return this.fridge.get("users")}})}),define("ui/routes/users/show",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Route.extend({model:function(e){return this.fridge.fetch("user",e.user_id)},setupController:function(e,t){this._super(e,t),e.reset()}})}),define("ui/services/fridge",["exports","ember","ui/mixins/checks-for-me"],function(e,t,a){"use strict";e["default"]=t["default"].Service.extend(a["default"],{onInit:function(){var e=this;this.set("last",0),this.set("promise",new t["default"].RSVP.Promise(function(t){e.set("promiseResolve",t)}))}.on("init"),sync:function(){var e=this,a=this.container.lookup("adapter:application");return new t["default"].RSVP.Promise(function(t){e._ajax("GET",a.buildURL("")+"/fridge?last="+e.get("last")).then(function(a){a.version!==window.__SnowmanIO_Version&&(window.location.href=window.location.href),console.log("sync "+new Date),0===e.get("last")&&e.get("promiseResolve")(),e.set("last",a.last),["user","app","metric","check"].forEach(function(t){var r=t+"s";a[r].forEach(function(a){var r=e.fetch(t,a.id);r?r.updateAttributes(a):e._push(t,e._create(t,a))})}),["check","metric","app","user"].forEach(function(t){var r=t+"s";a[r+"_deleted"].forEach(function(a){e._remove(t,e.fetch(t,a))})}),t()})})},find:function(e,a){var r=this;return new t["default"].RSVP.Promise(function(t){r.get("promise").then(function(){t(r.fetch(e,a))})})},fetch:function(e,t){return this._storage(e).findBy("id",t)},create:function(e,t){return this._create(e,t||{})},clone:function(e,t){return this._create(e,t.toAttributes())},save:function(e,a){var r=this,n=this.container.lookup("adapter:application");return new t["default"].RSVP.Promise(function(t){var d={};d[e]=a.toAttributes(),a.get("id")?r._ajax("PUT",n.buildURL(e,a.get("id")),d).then(function(a){t(r.fetch(e,a[e].id).updateAttributes(a[e]))}):r._ajax("POST",n.buildURL(e),d).then(function(a){console.log("[debug] fridge#save - data: ",a),t(r._push(e,r._create(e,a[e])))})})},destroyModel:function(e,a){var r=this,n=this.container.lookup("adapter:application");return new t["default"].RSVP.Promise(function(t){r._ajax("DELETE",n.buildURL(e,a.get("id"))).then(function(){r._remove(e,r.fetch(e,a.get("id"))),t()})})},resolveCheck:function(e){var a=this,r="check",n=this.container.lookup("adapter:application");return new t["default"].RSVP.Promise(function(t){a._ajax("PUT",n.buildURL(r,e.get("id"))+"/resolve").then(function(e){t(a.fetch(r,e[r].id).updateAttributes(e[r]))})})},updateFriendshipWith:function(e,a){var r=this,n=this.container.lookup("adapter:application");return new t["default"].RSVP.Promise(function(t){r._ajax("POST",n.buildURL("user",e.get("id"))+"/"+a).then(function(e){e.users.forEach(function(e){r.fetch("user",e.id).updateAttributes(e)}),t()})})},destroyUser:function(e){var a=this,r=this.container.lookup("adapter:application");return new t["default"].RSVP.Promise(function(t){a._ajax("POST",r.buildURL("user",e.get("id"))+"/destroy").then(function(){a._storage("user").removeObject(e),t()})})},sendInvite:function(e){var a=this,r=this.container.lookup("adapter:application");return new t["default"].RSVP.Promise(function(t,n){a._ajax("POST",r.buildURL("user")+"/invite",{email:e}).then(function(e){e.user?(a._push("user",a._create("user",e.user)),t()):n()})})},cancelInvite:function(e){var a=this,r=this.container.lookup("adapter:application");return new t["default"].RSVP.Promise(function(t){a._ajax("POST",r.buildURL("user",e.get("id"))+"/cancel_invite").then(function(){a._remove("user",e),t()})})},resendInvite:function(e){var a=this,r=this.container.lookup("adapter:application");return new t["default"].RSVP.Promise(function(t){a._ajax("POST",r.buildURL("user",e.get("id"))+"/resend_invite").then(function(a){e.updateAttributes(a.user),t()})})},checkInvite:function(e){var a=this,r=this.container.lookup("adapter:application");return new t["default"].RSVP.Promise(function(t){a._ajax("POST",r.buildURL("user")+"/check_invite",{token:e}).then(function(e){t(e.correct)})})},acceptInvite:function(e,a,r){var n=this,d=this.container.lookup("adapter:application");return new t["default"].RSVP.Promise(function(t){n._ajax("POST",d.buildURL("user")+"/accept_invite",{token:e,name:a,password:r}).then(function(e){t({email:e.user.email,password:r})})})},userUpdateName:function(e){var a=this,r=this.container.lookup("adapter:application");return new t["default"].RSVP.Promise(function(n){a._ajax("POST",r.buildURL("user")+"/profile/update_name",{name:e}).then(function(e){var r=a.fetch("user",e.user.id);t["default"].run(function(){r.updateAttributes(e.user),n(r)})})})},userUpdateEmail:function(e){var a=this,r=this.container.lookup("adapter:application");return new t["default"].RSVP.Promise(function(n){a._ajax("POST",r.buildURL("user")+"/profile/update_email",{email:e}).then(function(e){var r=a.fetch("user",e.user.id);t["default"].run(function(){r.updateAttributes(e.user),n(r)})})})},userUpdatePassword:function(e){var a=this,r=this.container.lookup("adapter:application");return new t["default"].RSVP.Promise(function(t){a._ajax("POST",r.buildURL("user")+"/profile/update_password",{password:e}).then(function(){t()})})},userRestorePassword:function(e){var a=this,r=this.container.lookup("adapter:application");return new t["default"].RSVP.Promise(function(t){a._ajax("POST",r.buildURL("user")+"/restore_password",{email:e}).then(function(){t()})})},checkRestorePassword:function(e){var a=this,r=this.container.lookup("adapter:application");return new t["default"].RSVP.Promise(function(t){a._ajax("POST",r.buildURL("user")+"/check_pass_token",{token:e}).then(function(e){t(e.correct)})})},resetPassword:function(e,a){var r=this,n=this.container.lookup("adapter:application");return new t["default"].RSVP.Promise(function(t){r._ajax("POST",n.buildURL("user")+"/reset_password",{token:e,password:a}).then(function(e){t({email:e.user.email,password:a})})})},checksForMe:t["default"].A(),checksForMeObserver:function(){var e=this;t["default"].run.once(this,function(){e.updateChecksForMe("checks","checksForMe")})}.observes("checks.@each.user_id","session.currentUser.following_ids.@each","session.currentUser.id").on("init"),users:t["default"].A(),checks:t["default"].A(),metrics:t["default"].A(),apps:t["default"].A(),_ajax:function(e,a,r){var n={type:e,url:a,contentType:"application/json",dataType:"json"};return r&&(n.data=JSON.stringify(r)),t["default"].$.ajax(n)},_storage:function(e){return this.get(e+"s")},_create:function(e,t){return this.container.lookup("cold-model:"+e).updateAttributes(t)},_push:function(e,t){return this._storage(e).pushObject(t)},_remove:function(e,t){this._storage(e).removeObject(t)}})}),define("ui/templates/application",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.content;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.createMorphAt(i,0,0,a);return r.insertBoundary(i,0),d(t,c,e,"outlet"),i}}}())}),define("ui/templates/apps/form",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" Saving ...\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}(),t=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" Save\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("form");e.setAttribute(a,"class","form-horizontal");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","form-group");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("label");e.setAttribute(n,"for","inputName"),e.setAttribute(n,"class","col-sm-2 control-label");var d=e.createTextNode("Name");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("div");e.setAttribute(n,"class","col-sm-8");var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createComment("");e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","form-group");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("div");e.setAttribute(n,"class","col-sm-offset-2 col-sm-8");var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("button");e.setAttribute(d,"type","submit"),e.setAttribute(d,"class","btn btn-primary");var i=e.createTextNode("\n");e.appendChild(d,i);var i=e.createComment("");e.appendChild(d,i);var i=e.createTextNode(" ");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(a,r,n){var d=r.dom,i=r.hooks,c=i.get,s=i.inline,o=i.element,l=i.block;d.detectNamespace(n);var h;r.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(h=this.build(d),this.hasRendered?this.cachedFragment=h:this.hasRendered=!0),this.cachedFragment&&(h=d.cloneNode(this.cachedFragment,!0))):h=this.build(d);var p=d.childAt(h,[0]),u=d.childAt(p,[3,1,1]),m=d.createMorphAt(d.childAt(p,[1,3]),1,1),v=d.createMorphAt(u,1,1);return s(r,m,a,"input",[],{"class":"form-control",id:"inputName",value:c(r,a,"form.name"),placeholder:"Application Name"}),o(r,u,a,"bind-attr",[],{disabled:c(r,a,"isFormInvalid")}),o(r,u,a,"action",["save",c(r,a,"form")],{}),o(r,u,a,"bind-attr",[],{disabled:c(r,a,"saving")}),l(r,v,a,"if",[c(r,a,"saving")],{},e,t),h}}}())}),define("ui/templates/apps/index",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode("Register App");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}(),t=function(){var e=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("div");e.setAttribute(a,"class","col-md-3 app-slot");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.get,i=n.inline;r.detectNamespace(a);var c;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(c=this.build(r),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=r.cloneNode(this.cachedFragment,!0))):c=this.build(r);var s=r.childAt(c,[1]),o=r.createMorphAt(s,1,1),l=r.createMorphAt(s,3,3);return i(t,o,e,"app-title",[],{app:d(t,e,"app")}),i(t,l,e,"app-status",[],{app:d(t,e,"app")}),c}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("div");e.setAttribute(a,"class","row-fluid dashboard");var r=e.createTextNode("\n");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode(" ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","clearfix"),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.get,c=d.block;n.detectNamespace(r);var s;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(s=this.build(n),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=n.cloneNode(this.cachedFragment,!0))):s=this.build(n);var o=n.createMorphAt(n.childAt(s,[1]),1,1);return c(a,o,t,"each",[i(a,t,"set")],{keyword:"app"},e,null),s}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createComment("");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.get,c=d.block;n.detectNamespace(r);var s;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(s=this.build(n),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=n.cloneNode(this.cachedFragment,!0))):s=this.build(n);var o=n.createMorphAt(s,0,0,r);return n.insertBoundary(s,null),n.insertBoundary(s,0),c(a,o,t,"each",[i(a,t,"groupedApps")],{keyword:"set"},e,null),s}}}(),a=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode("register one");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("div");e.setAttribute(a,"class","row-fluid dashboard");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div"),n=e.createTextNode(" ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("h1");e.setAttribute(r,"class","text-center");var n=e.createTextNode("\n You don't track any app yet, ");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n);var n=e.createTextNode(".\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.block;n.detectNamespace(r);var c;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(c=this.build(n),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=n.cloneNode(this.cachedFragment,!0))):c=this.build(n);var s=n.createMorphAt(n.childAt(c,[1,3]),1,1);return i(a,s,t,"link-to",["apps.new"],{},e,null),c}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("div");e.setAttribute(a,"class","row-fluid text-right");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n\n");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n\n");e.appendChild(t,a);var a=e.createComment("");return e.appendChild(t,a),t},render:function(r,n,d){var i=n.dom,c=n.hooks,s=c.block,o=c.inline,l=c.get;i.detectNamespace(d);var h;n.useFragmentCache&&i.canClone?(null===this.cachedFragment&&(h=this.build(i),this.hasRendered?this.cachedFragment=h:this.hasRendered=!0),this.cachedFragment&&(h=i.cloneNode(this.cachedFragment,!0))):h=this.build(i);var p=i.createMorphAt(i.childAt(h,[0]),1,1),u=i.createMorphAt(h,2,2,d),m=i.createMorphAt(h,4,4,d);return i.insertBoundary(h,null),s(n,p,r,"link-to",["apps.new"],{"class":"btn btn-default"},e,null),o(n,u,r,"render",["checks/failed"],{}),s(n,m,r,"if",[l(n,r,"userApps.length")],{},t,a),h}}}())}),define("ui/templates/apps/new",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("div");e.setAttribute(a,"class","page-header");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("h1"),n=e.createTextNode("Register Application");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n\n");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.get,i=n.inline;r.detectNamespace(a);var c;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(c=this.build(r),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=r.cloneNode(this.cachedFragment,!0))):c=this.build(r);var s=r.createMorphAt(c,2,2,a);return i(t,s,e,"render",["apps/form",d(t,e,"model")],{}),c}}}())}),define("ui/templates/apps/show",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("li"),r=e.createComment("");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.get,i=n.inline;r.detectNamespace(a);var c;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(c=this.build(r),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=r.cloneNode(this.cachedFragment,!0))):c=this.build(r);var s=r.createMorphAt(r.childAt(c,[1]),0,0);return i(t,s,e,"link-to",[d(t,e,"app.name"),"apps.show.info",d(t,e,"app")],{}),c}}}(),t=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode("Info");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.get,c=d.block;n.detectNamespace(r);var s;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(s=this.build(n),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=n.cloneNode(this.cachedFragment,!0))):s=this.build(n);var o=n.createMorphAt(s,1,1,r);return c(a,o,t,"link-to",["apps.show.info",i(a,t,"model")],{},e,null),s}}}(),a=function(){var e=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode("Metrics");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.get,c=d.block;n.detectNamespace(r);var s;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(s=this.build(n),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=n.cloneNode(this.cachedFragment,!0))):s=this.build(n);var o=n.createMorphAt(s,1,1,r);return c(a,o,t,"link-to",["metrics",i(a,t,"model")],{},e,null),s}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createComment("");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.get,c=d.block;n.detectNamespace(r);var s;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(s=this.build(n),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=n.cloneNode(this.cachedFragment,!0))):s=this.build(n);var o=n.createMorphAt(s,0,0,r);return n.insertBoundary(s,null),n.insertBoundary(s,0),c(a,o,t,"link-to",["metrics",i(a,t,"model")],{tagName:"li",href:!1},e,null),s}}}(),r=function(){var e=function(){var e=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("span");e.setAttribute(a,"class","label label-danger");var r=e.createComment("");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.content;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);
3
3
  var c=r.createMorphAt(r.childAt(i,[1]),0,0);return d(t,c,e,"model.triggeredChecksForMe.length"),i}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" Checks\n");e.appendChild(t,a);var a=e.createComment("");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.get,c=d.block;n.detectNamespace(r);var s;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(s=this.build(n),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=n.cloneNode(this.cachedFragment,!0))):s=this.build(n);var o=n.createMorphAt(s,1,1,r);return n.insertBoundary(s,null),c(a,o,t,"if",[i(a,t,"model.triggeredChecksForMe")],{},e,null),s}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createComment("");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.get,c=d.block;n.detectNamespace(r);var s;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(s=this.build(n),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=n.cloneNode(this.cachedFragment,!0))):s=this.build(n);var o=n.createMorphAt(s,0,0,r);return n.insertBoundary(s,null),n.insertBoundary(s,0),c(a,o,t,"link-to",["checks",i(a,t,"model")],{},e,null),s}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createComment("");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.get,c=d.block;n.detectNamespace(r);var s;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(s=this.build(n),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=n.cloneNode(this.cachedFragment,!0))):s=this.build(n);var o=n.createMorphAt(s,0,0,r);return n.insertBoundary(s,null),n.insertBoundary(s,0),c(a,o,t,"link-to",["checks",i(a,t,"model")],{tagName:"li",href:!1},e,null),s}}}(),n=function(){var e=function(){var e=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode("Install");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.get,c=d.block;n.detectNamespace(r);var s;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(s=this.build(n),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=n.cloneNode(this.cachedFragment,!0))):s=this.build(n);var o=n.createMorphAt(s,1,1,r);return c(a,o,t,"link-to",["apps.show.install",i(a,t,"model")],{},e,null),s}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createComment("");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.get,c=d.block;n.detectNamespace(r);var s;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(s=this.build(n),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=n.cloneNode(this.cachedFragment,!0))):s=this.build(n);var o=n.createMorphAt(s,0,0,r);return n.insertBoundary(s,null),n.insertBoundary(s,0),c(a,o,t,"link-to",["apps.show.install",i(a,t,"model")],{tagName:"li",href:!1},e,null),s}}}(),t=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode("Settings");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.get,c=d.block;n.detectNamespace(r);var s;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(s=this.build(n),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=n.cloneNode(this.cachedFragment,!0))):s=this.build(n);var o=n.createMorphAt(s,1,1,r);return c(a,o,t,"link-to",["apps.show.edit",i(a,t,"model")],{},e,null),s}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");e.appendChild(t,a);var a=e.createComment("");return e.appendChild(t,a),t},render:function(a,r,n){var d=r.dom,i=r.hooks,c=i.get,s=i.block;d.detectNamespace(n);var o;r.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(o=this.build(d),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=d.cloneNode(this.cachedFragment,!0))):o=this.build(d);var l=d.createMorphAt(o,0,0,n),h=d.createMorphAt(o,2,2,n);return d.insertBoundary(o,null),d.insertBoundary(o,0),s(r,l,a,"if",[c(r,a,"model.metrics.length")],{},e,null),s(r,h,a,"link-to",["apps.show.edit",c(r,a,"model")],{tagName:"li",href:!1},t,null),o}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("div");e.setAttribute(a,"role","tabpanel");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("ul");e.setAttribute(r,"class","nav nav-tabs"),e.setAttribute(r,"role","tablist");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("li"),d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("button");e.setAttribute(d,"class","btn btn-default btn-xs btn-app-nav");var i=e.createTextNode("<");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("button");e.setAttribute(d,"class","btn btn-default btn-xs btn-app-nav");var i=e.createTextNode(">");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("li");e.setAttribute(n,"class","dropdown");var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("a");e.setAttribute(d,"class","dropdown-toggle"),e.setAttribute(d,"data-toggle","dropdown"),e.setAttribute(d,"href","#");var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createComment("");e.appendChild(d,i);var i=e.createTextNode(" ");e.appendChild(d,i);var i=e.createElement("span");e.setAttribute(i,"class","caret"),e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("ul");e.setAttribute(d,"class","dropdown-menu");var i=e.createTextNode("\n");e.appendChild(d,i);var i=e.createComment("");e.appendChild(d,i);var i=e.createTextNode(" ");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n\n");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n);var n=e.createTextNode("\n");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n);var n=e.createTextNode("\n");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n);var n=e.createTextNode("\n");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n);var n=e.createTextNode(" ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div"),n=e.createTextNode(" ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(d,i,c){var s=i.dom,o=i.hooks,l=o.get,h=o.element,p=o.content,u=o.block;s.detectNamespace(c);var m;i.useFragmentCache&&s.canClone?(null===this.cachedFragment&&(m=this.build(s),this.hasRendered?this.cachedFragment=m:this.hasRendered=!0),this.cachedFragment&&(m=s.cloneNode(this.cachedFragment,!0))):m=this.build(s);var v=s.childAt(m,[0]),C=s.childAt(v,[1]),f=s.childAt(C,[1]),g=s.childAt(f,[1]),b=s.childAt(f,[3]),N=s.childAt(C,[3]),x=s.createMorphAt(s.childAt(N,[1]),1,1),T=s.createMorphAt(s.childAt(N,[3]),1,1),F=s.createMorphAt(C,5,5),A=s.createMorphAt(C,7,7),k=s.createMorphAt(C,9,9),E=s.createMorphAt(C,11,11),R=s.createMorphAt(v,5,5);return h(i,g,d,"bind-attr",[],{disabled:l(i,d,"noPrev")}),h(i,g,d,"action",["go",l(i,d,"prevAppId")],{}),h(i,b,d,"bind-attr",[],{disabled:l(i,d,"noNext")}),h(i,b,d,"action",["go",l(i,d,"nextAppId")],{}),p(i,x,d,"model.name"),u(i,T,d,"each",[l(i,d,"apps")],{keyword:"app"},e,null),u(i,F,d,"link-to",["apps.show.info",l(i,d,"model")],{tagName:"li",href:!1},t,null),u(i,A,d,"if",[l(i,d,"isMetricsTabVisible")],{},a,null),u(i,k,d,"if",[l(i,d,"model.checksForMe")],{},r,null),u(i,E,d,"if",[l(i,d,"model.casual")],{},n,null),p(i,R,d,"outlet"),m}}}())}),define("ui/templates/apps/show/_install",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("h4"),r=e.createTextNode("1. Add snowagent to application Gemfile");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");e.appendChild(t,a);var a=e.createElement("code"),r=e.createTextNode("\ngem 'snowagent'\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n\n");e.appendChild(t,a);var a=e.createElement("h4"),r=e.createTextNode("2. Configure application");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");e.appendChild(t,a);var a=e.createElement("b"),r=e.createTextNode("Heroku:");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");e.appendChild(t,a);var a=e.createElement("pre"),r=e.createTextNode("\nheroku config:set \\\n SNOWMANIO_SERVER=");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode(" \\\n SNOWMANIO_SECRET_TOKEN=");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n\n");e.appendChild(t,a);var a=e.createElement("b"),r=e.createTextNode("Standalone:");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");e.appendChild(t,a);var a=e.createElement("pre"),r=e.createTextNode("\n# Add environment variables to production application\nSNOWMANIO_SERVER=");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode("\nSNOWMANIO_SECRET_TOKEN=");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n\n");e.appendChild(t,a);var a=e.createElement("h2"),r=e.createTextNode("Send Test Request");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");e.appendChild(t,a);var a=e.createElement("pre"),r=e.createTextNode("\ncurl ");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode('/agent/metrics \\\n -H "Content-Type: application/json" \\\n -d \'{"token":"');e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode('","metrics":[{"name":"Test","value":22,"kind":"amount"}]}\'\n');e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.content;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.childAt(i,[8]),s=r.childAt(i,[12]),o=r.childAt(i,[16]),l=r.createMorphAt(c,1,1),h=r.createMorphAt(c,3,3),p=r.createMorphAt(s,1,1),u=r.createMorphAt(s,3,3),m=r.createMorphAt(o,1,1),v=r.createMorphAt(o,3,3);return d(t,l,e,"baseUrl"),d(t,h,e,"model.token"),d(t,p,e,"baseUrl"),d(t,u,e,"model.token"),d(t,m,e,"baseUrl"),d(t,v,e,"model.token"),i}}}())}),define("ui/templates/apps/show/edit",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n\n");e.appendChild(t,a);var a=e.createElement("div");e.setAttribute(a,"class","panel panel-danger panel-custom");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","panel-heading");var n=e.createElement("h3");e.setAttribute(n,"class","panel-title");var d=e.createTextNode("SnowmanIO Danger Section");e.appendChild(n,d),e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","panel-body");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("a");e.setAttribute(n,"href","#");var d=e.createTextNode("Destroy App");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode(" - this action is inrevertable.\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.get,i=n.inline,c=n.element;r.detectNamespace(a);var s;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(s=this.build(r),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=r.cloneNode(this.cachedFragment,!0))):s=this.build(r);var o=r.childAt(s,[2,3,1]),l=r.createMorphAt(s,0,0,a);return r.insertBoundary(s,0),i(t,l,e,"render",["apps/form",d(t,e,"model")],{}),c(t,o,e,"action",["destroy",d(t,e,"model")],{}),c(t,o,e,"bind-attr",[],{"class":":btn :btn-default destroing:disabled"}),s}}}())}),define("ui/templates/apps/show/info",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("div");e.setAttribute(a,"class","row-fluid");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","col-md-4 app-slot");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.get,i=n.inline;r.detectNamespace(a);var c;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(c=this.build(r),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=r.cloneNode(this.cachedFragment,!0))):c=this.build(r);var s=r.createMorphAt(r.childAt(c,[1,1]),1,1);return i(t,s,e,"app-status",[],{app:d(t,e,"model")}),c}}}(),t=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.inline;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.createMorphAt(i,1,1,a);return d(t,c,e,"partial",["apps/show/install"],{}),i}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createComment("");return e.appendChild(t,a),t},render:function(a,r,n){var d=r.dom,i=r.hooks,c=i.get,s=i.block;d.detectNamespace(n);var o;r.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(o=this.build(d),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=d.cloneNode(this.cachedFragment,!0))):o=this.build(d);var l=d.createMorphAt(o,0,0,n);return d.insertBoundary(o,null),d.insertBoundary(o,0),s(r,l,a,"if",[c(r,a,"model.metrics")],{},e,t),o}}}())}),define("ui/templates/apps/show/install",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.inline;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.createMorphAt(i,0,0,a);return r.insertBoundary(i,0),d(t,c,e,"partial",["apps/show/install"],{}),i}}}())}),define("ui/templates/checks/failed",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){var e=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.get,i=n.inline;r.detectNamespace(a);var c;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(c=this.build(r),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=r.cloneNode(this.cachedFragment,!0))):c=this.build(r);var s=r.createMorphAt(c,1,1,a);return i(t,s,e,"check-tr",[],{check:d(t,e,"check")}),c}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("div"),r=e.createTextNode(" ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n ");e.appendChild(t,a);var a=e.createElement("div");e.setAttribute(a,"class","checks-failed");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","table-response");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("table");e.setAttribute(n,"class","table table-striped");var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("thead"),i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createComment("");e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("tbody"),i=e.createTextNode("\n");e.appendChild(d,i);var i=e.createComment("");e.appendChild(d,i);var i=e.createTextNode(" ");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n ");e.appendChild(t,a);var a=e.createElement("div"),r=e.createTextNode(" ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.content,c=d.get,s=d.block;n.detectNamespace(r);var o;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(o=this.build(n),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=n.cloneNode(this.cachedFragment,!0))):o=this.build(n);var l=n.childAt(o,[3,1,1]),h=n.createMorphAt(n.childAt(l,[1]),1,1),p=n.createMorphAt(n.childAt(l,[3]),1,1);return i(a,h,t,"checks-header"),s(a,p,t,"each",[c(a,t,"failedChecks")],{keyword:"check"},e,null),o}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createComment("");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.get,c=d.block;n.detectNamespace(r);var s;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(s=this.build(n),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=n.cloneNode(this.cachedFragment,!0))):s=this.build(n);var o=n.createMorphAt(s,0,0,r);return n.insertBoundary(s,null),n.insertBoundary(s,0),c(a,o,t,"if",[i(a,t,"failedChecks")],{},e,null),s}}}())}),define("ui/templates/checks/index",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.get,i=n.inline;r.detectNamespace(a);var c;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(c=this.build(r),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=r.cloneNode(this.cachedFragment,!0))):c=this.build(r);var s=r.createMorphAt(c,1,1,a);return i(t,s,e,"check-tr",[],{check:d(t,e,"check")}),c}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("div");e.setAttribute(a,"class","table-response");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("table");e.setAttribute(r,"class","table table-striped");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("thead"),d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createComment("");e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("tbody"),d=e.createTextNode("\n");e.appendChild(n,d);var d=e.createComment("");e.appendChild(n,d);var d=e.createTextNode(" ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.content,c=d.get,s=d.block;n.detectNamespace(r);var o;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(o=this.build(n),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=n.cloneNode(this.cachedFragment,!0))):o=this.build(n);var l=n.childAt(o,[0,1]),h=n.createMorphAt(n.childAt(l,[1]),1,1),p=n.createMorphAt(n.childAt(l,[3]),1,1);return i(a,h,t,"checks-header"),s(a,p,t,"each",[c(a,t,"checksForMe")],{keyword:"check"},e,null),o}}}())}),define("ui/templates/components/app-status",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createComment("");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.content;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.createMorphAt(i,0,0,a);return r.insertBoundary(i,null),r.insertBoundary(i,0),d(t,c,e,"app.datapoints.today.count"),i}}}(),t=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode("-");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}(),a=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createComment("");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.content;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.createMorphAt(i,0,0,a);return r.insertBoundary(i,null),r.insertBoundary(i,0),d(t,c,e,"app.datapoints.yesterday.count"),i}}}(),r=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode("-");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}(),n=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("span");e.setAttribute(a,"class","label label-danger");var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode(" triggered");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.content;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.createMorphAt(r.childAt(i,[1]),0,0);return d(t,c,e,"app.triggeredChecksForMe.length"),i}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("table");e.setAttribute(a,"class","table table-striped");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("tbody"),n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("tr"),d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("th");e.setAttribute(d,"colspan","2");var i=e.createTextNode("Datapoints");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("tr"),d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("td"),i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createElement("b"),c=e.createTextNode("Today");e.appendChild(i,c),e.appendChild(d,i);var i=e.createElement("br");e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createComment("");e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("td");e.setAttribute(d,"class","yesterday");var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createElement("b"),c=e.createTextNode("Yesterday");e.appendChild(i,c),e.appendChild(d,i);var i=e.createElement("br");e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createComment("");e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("tr"),d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("td");e.setAttribute(d,"colspan","2");var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createComment("");e.appendChild(d,i);var i=e.createTextNode(" / ");e.appendChild(d,i);var i=e.createComment("");e.appendChild(d,i);var i=e.createTextNode("\n");e.appendChild(d,i);var i=e.createComment("");e.appendChild(d,i);var i=e.createTextNode(" ");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(d,i,c){var s=i.dom,o=i.hooks,l=o.get,h=o.block,p=o.content;s.detectNamespace(c);var u;i.useFragmentCache&&s.canClone?(null===this.cachedFragment&&(u=this.build(s),this.hasRendered?this.cachedFragment=u:this.hasRendered=!0),this.cachedFragment&&(u=s.cloneNode(this.cachedFragment,!0))):u=this.build(s);var m=s.childAt(u,[0,1]),v=s.childAt(m,[3]),C=s.childAt(m,[5,1]),f=s.createMorphAt(s.childAt(v,[1]),4,4),g=s.createMorphAt(s.childAt(v,[3]),4,4),b=s.createMorphAt(C,1,1),N=s.createMorphAt(C,3,3),x=s.createMorphAt(C,5,5);return h(i,f,d,"if",[l(i,d,"app.datapoints.today")],{},e,t),h(i,g,d,"if",[l(i,d,"app.datapoints.yesterday")],{},a,r),p(i,b,d,"app.metricsAmountHuman"),p(i,N,d,"app.checksForMeAmountHuman"),h(i,x,d,"if",[l(i,d,"app.triggeredChecksForMe")],{},n,null),u}}}())}),define("ui/templates/components/app-title",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createComment("");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.content;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.createMorphAt(i,0,0,a);return r.insertBoundary(i,null),r.insertBoundary(i,0),d(t,c,e,"app.name"),i}}}(),t=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);
4
4
  var a=e.createElement("span");e.setAttribute(a,"class","glyphicon glyphicon-question-sign"),e.setAttribute(a,"data-toggle","tooltip"),e.setAttribute(a,"data-placement","top"),e.setAttribute(a,"title","Application for internal SnowmanIO metrics"),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");e.appendChild(t,a);var a=e.createComment("");return e.appendChild(t,a),t},render:function(a,r,n){var d=r.dom,i=r.hooks,c=i.get,s=i.block;d.detectNamespace(n);var o;r.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(o=this.build(d),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=d.cloneNode(this.cachedFragment,!0))):o=this.build(d);var l=d.createMorphAt(o,0,0,n),h=d.createMorphAt(o,2,2,n);return d.insertBoundary(o,null),d.insertBoundary(o,0),s(r,l,a,"link-to",["apps.show.info",c(r,a,"app.id")],{},e,null),s(r,h,a,"if",[c(r,a,"app.system")],{},t,null),o}}}())}),define("ui/templates/components/check-add",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("a");e.setAttribute(a,"href","#");var r=e.createTextNode("Add Check");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.element;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.childAt(i,[1]);return d(t,c,e,"action",["toggle"],{}),i}}}(),t=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("div");e.setAttribute(a,"class","table-response");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("table");e.setAttribute(r,"class","table table-striped");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("tbody"),d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createComment("");e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.get,i=n.inline;r.detectNamespace(a);var c;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(c=this.build(r),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=r.cloneNode(this.cachedFragment,!0))):c=this.build(r);var s=r.createMorphAt(r.childAt(c,[1,1,1]),1,1);return i(t,s,e,"check-tr",[],{check:d(t,e,"newCheck"),mode:"editing",reset:"resetCreation",allowTempateChange:!0}),c}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("div");e.setAttribute(a,"class","row-fluid");var r=e.createTextNode("\n");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(a,r,n){var d=r.dom,i=r.hooks,c=i.get,s=i.block;d.detectNamespace(n);var o;r.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(o=this.build(d),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=d.cloneNode(this.cachedFragment,!0))):o=this.build(d);var l=d.createMorphAt(d.childAt(o,[0]),1,1);return s(r,l,a,"if",[c(r,a,"collapsed")],{},e,t),o}}}())}),define("ui/templates/components/check-header",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("th"),r=e.createTextNode("Actions");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("th"),r=e.createTextNode("Check");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");e.appendChild(t,a);var a=e.createElement("th"),r=e.createTextNode("Last Check");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");e.appendChild(t,a);var a=e.createComment("");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.get,c=d.block;n.detectNamespace(r);var s;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(s=this.build(n),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=n.cloneNode(this.cachedFragment,!0))):s=this.build(n);var o=n.createMorphAt(s,4,4,r);return n.insertBoundary(s,null),c(a,o,t,"if",[i(a,t,"enableActions")],{},e,null),s}}}())}),define("ui/templates/components/check-tr",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){var e=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" Never runned\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}(),t=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("span"),r=e.createComment("");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n at ");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.element,i=n.content,c=n.get,s=n.inline;r.detectNamespace(a);var o;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(o=this.build(r),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=r.cloneNode(this.cachedFragment,!0))):o=this.build(r);var l=r.childAt(o,[1]),h=r.createMorphAt(l,0,0),p=r.createMorphAt(o,3,3,a);return d(t,l,e,"bind-attr",[],{"class":":check-status check.isOk:green:red"}),i(t,h,e,"check.last_status"),s(t,p,e,"moment",[c(t,e,"check.last_run_at"),"MMMM Do YYYY, HH:mm:ss"],{}),o}}}(),a=function(){var e=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("a");e.setAttribute(a,"href","#");var r=e.createTextNode("resolve");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.element;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.childAt(i,[1]);return d(t,c,e,"action",["resolve"],{}),d(t,c,e,"bind-attr",[],{"class":":btn :btn-xs :btn-success resolving:disabled"}),i}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("a");e.setAttribute(a,"href","#");var r=e.createElement("span");e.setAttribute(r,"class","glyphicon glyphicon-pencil"),e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n ");e.appendChild(t,a);var a=e.createElement("a");e.setAttribute(a,"href","#");var r=e.createElement("span");e.setAttribute(r,"class","glyphicon glyphicon-trash"),e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");e.appendChild(t,a);var a=e.createComment("");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.element,c=d.get,s=d.block;n.detectNamespace(r);var o;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(o=this.build(n),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=n.cloneNode(this.cachedFragment,!0))):o=this.build(n);var l=n.childAt(o,[1]),h=n.childAt(o,[3]),p=n.createMorphAt(o,5,5,r);return n.insertBoundary(o,null),i(a,l,t,"action",["edit"],{}),i(a,h,t,"action",["destroy"],{}),s(a,p,t,"if",[c(a,t,"check.triggered")],{},e,null),o}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("td"),r=e.createTextNode("\n");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode(" ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.get,c=d.block;n.detectNamespace(r);var s;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(s=this.build(n),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=n.cloneNode(this.cachedFragment,!0))):s=this.build(n);var o=n.createMorphAt(n.childAt(s,[1]),1,1);return c(a,o,t,"if",[i(a,t,"check.isMy")],{},e,null),s}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("td"),r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n ");e.appendChild(t,a);var a=e.createElement("td"),r=e.createTextNode("\n");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode(" ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");e.appendChild(t,a);var a=e.createComment("");return e.appendChild(t,a),t},render:function(r,n,d){var i=n.dom,c=n.hooks,s=c.get,o=c.inline,l=c.block;i.detectNamespace(d);var h;n.useFragmentCache&&i.canClone?(null===this.cachedFragment&&(h=this.build(i),this.hasRendered?this.cachedFragment=h:this.hasRendered=!0),this.cachedFragment&&(h=i.cloneNode(this.cachedFragment,!0))):h=this.build(i);var p=i.createMorphAt(i.childAt(h,[1]),1,1),u=i.createMorphAt(i.childAt(h,[3]),1,1),m=i.createMorphAt(h,5,5,d);return i.insertBoundary(h,null),o(n,p,r,"component",[s(n,r,"check.humanComponentName")],{check:s(n,r,"check")}),l(n,u,r,"if",[s(n,r,"check.isNeverRunned")],{},e,t),l(n,m,r,"if",[s(n,r,"enableActions")],{},a,null),h}}}(),t=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("td");e.setAttribute(a,"colspan","3");var r=e.createTextNode("\n saving...\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}(),a=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("td");e.setAttribute(a,"colspan","3");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("s"),n=e.createComment("");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.get,i=n.inline;r.detectNamespace(a);var c;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(c=this.build(r),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=r.cloneNode(this.cachedFragment,!0))):c=this.build(r);var s=r.createMorphAt(r.childAt(c,[1,1]),0,0);return i(t,s,e,"component",[d(t,e,"check.humanComponentName")],{check:d(t,e,"check")}),c}}}(),r=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("li"),r=e.createElement("a");e.setAttribute(r,"href","#");var n=e.createComment("");e.appendChild(r,n),e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.get,i=n.element,c=n.inline;r.detectNamespace(a);var s;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(s=this.build(r),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=r.cloneNode(this.cachedFragment,!0))):s=this.build(r);var o=r.childAt(s,[1,0]),l=r.createMorphAt(o,0,0);return i(t,o,e,"action",["select",d(t,e,"checkTemplate.name")],{}),c(t,l,e,"component",[d(t,e,"checkTemplate.componentName")],{}),s}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("td");e.setAttribute(a,"colspan","3");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("ul"),n=e.createTextNode("\n");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n);var n=e.createTextNode(" ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("a");e.setAttribute(r,"href","#");var n=e.createTextNode("cancel");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.get,c=d.block,s=d.element;n.detectNamespace(r);var o;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(o=this.build(n),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=n.cloneNode(this.cachedFragment,!0))):o=this.build(n);var l=n.childAt(o,[1]),h=n.childAt(l,[3]),p=n.createMorphAt(n.childAt(l,[1]),1,1);return c(a,p,t,"each",[i(a,t,"supportedCheckTemplates")],{keyword:"checkTemplate"},e,null),s(a,h,t,"action",["cancel"],{}),o}}}(),n=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("a");e.setAttribute(a,"href","#");var r=e.createElement("span");e.setAttribute(r,"class","glyphicon glyphicon-arrow-left"),e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.element;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.childAt(i,[1]);return d(t,c,e,"action",["list"],{}),i}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("td");e.setAttribute(a,"colspan","3");var r=e.createTextNode("\n");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode(" ");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.get,c=d.block,s=d.inline;n.detectNamespace(r);var o;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(o=this.build(n),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=n.cloneNode(this.cachedFragment,!0))):o=this.build(n);var l=n.childAt(o,[1]),h=n.createMorphAt(l,1,1),p=n.createMorphAt(l,3,3);return c(a,h,t,"if",[i(a,t,"allowTempateChange")],{},e,null),s(a,p,t,"component",[i(a,t,"templateFormComponentName")],{formTemplate:i(a,t,"formTemplate"),check:i(a,t,"check"),saveAction:"save",cancelAction:"cancel"}),o}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");e.appendChild(t,a);var a=e.createComment("");return e.appendChild(t,a),t},render:function(d,i,c){var s=i.dom,o=i.hooks,l=o.get,h=o.block;s.detectNamespace(c);var p;i.useFragmentCache&&s.canClone?(null===this.cachedFragment&&(p=this.build(s),this.hasRendered?this.cachedFragment=p:this.hasRendered=!0),this.cachedFragment&&(p=s.cloneNode(this.cachedFragment,!0))):p=this.build(s);var u=s.createMorphAt(p,0,0,c),m=s.createMorphAt(p,2,2,c),v=s.createMorphAt(p,4,4,c),C=s.createMorphAt(p,6,6,c),f=s.createMorphAt(p,8,8,c);return s.insertBoundary(p,null),s.insertBoundary(p,0),h(i,u,d,"if",[l(i,d,"isShow")],{},e,null),h(i,m,d,"if",[l(i,d,"isSaving")],{},t,null),h(i,v,d,"if",[l(i,d,"isDestroing")],{},a,null),h(i,C,d,"if",[l(i,d,"isEditing")],{},r,null),h(i,f,d,"if",[l(i,d,"isTemplate")],{},n,null),p}}}())}),define("ui/templates/components/checks/desc-last-value-limit",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode("Snowman, notify whether last value will be less or more limit\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}())}),define("ui/templates/components/checks/desc-prev-day-datapoints-limit",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode("Snowman, notify about previous day datapoints amount limit\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}())}),define("ui/templates/components/checks/form-last-value-limit",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("form");e.setAttribute(a,"class","form-inline");var r=e.createTextNode("\n Snowman, notify when ");e.appendChild(a,r);var r=e.createElement("b"),n=e.createComment("");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode(" will be \n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","btn-group");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("button");e.setAttribute(n,"class","btn btn-default btn-sm dropdown-toggle"),e.setAttribute(n,"type","button"),e.setAttribute(n,"data-toggle","dropdown");var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createComment("");e.appendChild(n,d);var d=e.createTextNode(" ");e.appendChild(n,d);var d=e.createElement("span");e.setAttribute(d,"class","caret"),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("ul");e.setAttribute(n,"class","dropdown-menu"),e.setAttribute(n,"role","menu");var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("li"),i=e.createElement("a");e.setAttribute(i,"href","#");var c=e.createTextNode("more");e.appendChild(i,c),e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("li"),i=e.createElement("a");e.setAttribute(i,"href","#");var c=e.createTextNode("less");e.appendChild(i,c),e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("a");e.setAttribute(r,"href","#"),e.setAttribute(r,"class","btn btn-sm btn-success");var n=e.createTextNode("save");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("a");e.setAttribute(r,"href","#"),e.setAttribute(r,"class","btn btn-sm btn-link");var n=e.createTextNode("cancel");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.element,i=n.content,c=n.get,s=n.inline;r.detectNamespace(a);var o;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(o=this.build(r),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=r.cloneNode(this.cachedFragment,!0))):o=this.build(r);var l=r.childAt(o,[0]),h=r.childAt(l,[3]),p=r.childAt(h,[3]),u=r.childAt(p,[1,0]),m=r.childAt(p,[3,0]),v=r.childAt(l,[7]),C=r.childAt(l,[9]),f=r.createMorphAt(r.childAt(l,[1]),0,0),g=r.createMorphAt(r.childAt(h,[1]),1,1),b=r.createMorphAt(l,5,5);return d(t,l,e,"action",["save"],{on:"submit"}),i(t,f,e,"form.metric.name"),i(t,g,e,"form.cmp"),d(t,u,e,"action",["clickMore"],{}),d(t,m,e,"action",["clickLess"],{}),s(t,b,e,"input",[],{value:c(t,e,"form.value"),"class":"form-control input-sm"}),d(t,v,e,"action",["save"],{}),d(t,C,e,"action",["cancel"],{}),o}}}())}),define("ui/templates/components/checks/form-prev-day-datapoints-limit",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("form");e.setAttribute(a,"class","form-inline");var r=e.createTextNode("\n Snowman, notify if ");e.appendChild(a,r);var r=e.createElement("b"),n=e.createComment("");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode(" previous day datapoints amount was\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","btn-group");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("button");e.setAttribute(n,"class","btn btn-default btn-sm dropdown-toggle"),e.setAttribute(n,"type","button"),e.setAttribute(n,"data-toggle","dropdown");var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createComment("");e.appendChild(n,d);var d=e.createTextNode(" ");e.appendChild(n,d);var d=e.createElement("span");e.setAttribute(d,"class","caret"),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("ul");e.setAttribute(n,"class","dropdown-menu"),e.setAttribute(n,"role","menu");var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("li"),i=e.createElement("a");e.setAttribute(i,"href","#");var c=e.createTextNode("more");e.appendChild(i,c),e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("li"),i=e.createElement("a");e.setAttribute(i,"href","#");var c=e.createTextNode("less");e.appendChild(i,c),e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("a");e.setAttribute(r,"href","#"),e.setAttribute(r,"class","btn btn-sm btn-success");var n=e.createTextNode("save");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("a");e.setAttribute(r,"href","#"),e.setAttribute(r,"class","btn btn-sm btn-link");var n=e.createTextNode("cancel");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.element,i=n.content,c=n.get,s=n.inline;r.detectNamespace(a);var o;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(o=this.build(r),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=r.cloneNode(this.cachedFragment,!0))):o=this.build(r);var l=r.childAt(o,[0]),h=r.childAt(l,[3]),p=r.childAt(h,[3]),u=r.childAt(p,[1,0]),m=r.childAt(p,[3,0]),v=r.childAt(l,[7]),C=r.childAt(l,[9]),f=r.createMorphAt(r.childAt(l,[1]),0,0),g=r.createMorphAt(r.childAt(h,[1]),1,1),b=r.createMorphAt(l,5,5);return d(t,l,e,"action",["save"],{on:"submit"}),i(t,f,e,"form.metric.name"),i(t,g,e,"form.cmp"),d(t,u,e,"action",["clickMore"],{}),d(t,m,e,"action",["clickLess"],{}),s(t,b,e,"input",[],{value:c(t,e,"form.value"),"class":"form-control input-sm"}),d(t,v,e,"action",["save"],{}),d(t,C,e,"action",["cancel"],{}),o}}}())}),define("ui/templates/components/checks/human-last-value-limit",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode("Snowman, notify when ");e.appendChild(t,a);var a=e.createElement("b"),r=e.createComment("");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode(" from ");e.appendChild(t,a);var a=e.createElement("b"),r=e.createComment("");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\nwill be ");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.content;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.createMorphAt(r.childAt(i,[1]),0,0),s=r.createMorphAt(r.childAt(i,[3]),0,0),o=r.createMorphAt(i,5,5,a),l=r.createMorphAt(i,7,7,a);return d(t,c,e,"check.metric.name"),d(t,s,e,"check.metric.app.name"),d(t,o,e,"check.cmp"),d(t,l,e,"check.value"),i}}}())}),define("ui/templates/components/checks/human-prev-day-datapoints-limit",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode("Snowman, notify when ");e.appendChild(t,a);var a=e.createElement("b"),r=e.createComment("");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode(" from ");e.appendChild(t,a);var a=e.createElement("b"),r=e.createComment("");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\ndaily datapoints amount was ");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.content;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.createMorphAt(r.childAt(i,[1]),0,0),s=r.createMorphAt(r.childAt(i,[3]),0,0),o=r.createMorphAt(i,5,5,a),l=r.createMorphAt(i,7,7,a);return d(t,c,e,"check.metric.name"),d(t,s,e,"check.metric.app.name"),d(t,o,e,"check.cmp"),d(t,l,e,"check.value"),i}}}())}),define("ui/templates/components/ember-chart",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.content;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.createMorphAt(i,0,0,a);return r.insertBoundary(i,0),d(t,c,e,"outlet"),i}}}())}),define("ui/templates/components/metrics/history-amount",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("div");e.setAttribute(a,"class","row-fluid");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","col-sm-6");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createComment("");
@@ -6,4 +6,4 @@ e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChi
6
6
  keyword:"value"},e,null),s}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("div");e.setAttribute(a,"class","table-response");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div"),n=e.createTextNode(" ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("table");e.setAttribute(r,"class","table table-bordered table-striped");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("thead"),d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("tr"),i=e.createTextNode("\n");e.appendChild(d,i);var i=e.createComment("");e.appendChild(d,i);var i=e.createTextNode(" ");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("tbody"),d=e.createTextNode("\n");e.appendChild(n,d);var d=e.createComment("");e.appendChild(n,d);var d=e.createTextNode(" ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(a,r,n){var d=r.dom,i=r.hooks,c=i.get,s=i.block;d.detectNamespace(n);var o;r.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(o=this.build(d),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=d.cloneNode(this.cachedFragment,!0))):o=this.build(d);var l=d.childAt(o,[1,3]),h=d.createMorphAt(d.childAt(l,[1,1]),1,1),p=d.createMorphAt(d.childAt(l,[3]),1,1);return s(r,h,a,"each",[c(r,a,"columns")],{keyword:"column"},e,null),s(r,p,a,"each",[c(r,a,"preparedDatapoints")],{keyword:"point"},t,null),o}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(a,r,n){var d=r.dom,i=r.hooks,c=i.get,s=i.block;d.detectNamespace(n);var o;r.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(o=this.build(d),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=d.cloneNode(this.cachedFragment,!0))):o=this.build(d);var l=d.createMorphAt(o,0,0,n);return d.insertBoundary(o,0),s(r,l,a,"if",[c(r,a,"loading")],{},e,t),o}}}())}),define("ui/templates/components/users/invite-user",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("p"),r=e.createTextNode("Send invitation to ");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode(" ...");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.content;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.createMorphAt(r.childAt(i,[1]),1,1);return d(t,c,e,"email"),i}}}(),t=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("div"),r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("form");e.setAttribute(r,"class","form-inline");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("div");e.setAttribute(n,"class","form-group");var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("label");e.setAttribute(d,"for","email");var i=e.createTextNode("Email");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createComment("");e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("button");e.setAttribute(n,"type","submit"),e.setAttribute(n,"class","btn btn-default");var d=e.createTextNode("Send invitation");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.element,i=n.get,c=n.inline;r.detectNamespace(a);var s;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(s=this.build(r),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=r.cloneNode(this.cachedFragment,!0))):s=this.build(r);var o=r.childAt(s,[1,1]),l=r.childAt(o,[3]),h=r.createMorphAt(r.childAt(o,[1]),3,3);return d(t,o,e,"action",["invite"],{on:"submit"}),c(t,h,e,"input",[],{type:"email",style:"width:500px","class":"form-control",placeholder:"john@yahoo.com",value:i(t,e,"email")}),d(t,l,e,"bind-attr",[],{disabled:i(t,e,"isFormInvalid")}),s}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("p"),r=e.createElement("a");e.setAttribute(r,"href","#");var n=e.createTextNode("Invite new user");e.appendChild(r,n),e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n\n");e.appendChild(t,a);var a=e.createComment("");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.element,c=d.get,s=d.block;n.detectNamespace(r);var o;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(o=this.build(n),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=n.cloneNode(this.cachedFragment,!0))):o=this.build(n);var l=n.childAt(o,[1,0]),h=n.createMorphAt(o,3,3,r);return n.insertBoundary(o,null),i(a,l,t,"action",["toggle"],{}),s(a,h,t,"if",[c(a,t,"show")],{},e,null),o}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("div"),r=e.createTextNode(" ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n\n");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");e.appendChild(t,a);var a=e.createElement("div"),r=e.createTextNode(" ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(a,r,n){var d=r.dom,i=r.hooks,c=i.get,s=i.block;d.detectNamespace(n);var o;r.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(o=this.build(d),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=d.cloneNode(this.cachedFragment,!0))):o=this.build(d);var l=d.createMorphAt(o,2,2,n);return s(r,l,a,"if",[c(r,a,"sending")],{},e,t),o}}}())}),define("ui/templates/components/users/show-user",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("small"),r=e.createTextNode("FOLLOWS YOU");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}(),t=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("small"),r=e.createTextNode(" ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}(),a=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("div"),r=e.createElement("b"),n=e.createTextNode("Snowman respects this user especially");e.appendChild(r,n),e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}(),r=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("div"),r=e.createElement("a");e.setAttribute(r,"href","#");var n=e.createTextNode("Unfollow");e.appendChild(r,n),e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.element;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.childAt(i,[1,0]);return d(t,c,e,"bind-attr",[],{"class":":btn :btn-info :btn-sm updating:disabled"}),d(t,c,e,"action",["unfollow"],{}),i}}}(),t=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("div"),r=e.createElement("a");e.setAttribute(r,"href","#");var n=e.createTextNode("Follow");e.appendChild(r,n),e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.element;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.childAt(i,[1,0]);return d(t,c,e,"bind-attr",[],{"class":":btn :btn-default :btn-sm updating:disabled"}),d(t,c,e,"action",["follow"],{}),i}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createComment("");return e.appendChild(t,a),t},render:function(a,r,n){var d=r.dom,i=r.hooks,c=i.get,s=i.block;d.detectNamespace(n);var o;r.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(o=this.build(d),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=d.cloneNode(this.cachedFragment,!0))):o=this.build(d);var l=d.createMorphAt(o,0,0,n);return d.insertBoundary(o,null),d.insertBoundary(o,0),s(r,l,a,"if",[c(r,a,"user.isFollowedByMe")],{},e,t),o}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("div");e.setAttribute(a,"class","media-left");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");e.appendChild(t,a);var a=e.createElement("div");e.setAttribute(a,"class","media-body");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("h4");e.setAttribute(r,"class","media-heading");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div"),n=e.createTextNode("Checks: ");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div"),n=e.createTextNode("\n");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n);var n=e.createTextNode(" ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode(" ");e.appendChild(a,r);var r=e.createElement("div"),n=e.createTextNode(" ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(n,d,i){var c=d.dom,s=d.hooks,o=s.get,l=s.inline,h=s.content,p=s.block;c.detectNamespace(i);var u;d.useFragmentCache&&c.canClone?(null===this.cachedFragment&&(u=this.build(c),this.hasRendered?this.cachedFragment=u:this.hasRendered=!0),this.cachedFragment&&(u=c.cloneNode(this.cachedFragment,!0))):u=this.build(c);var m=c.childAt(u,[2]),v=c.createMorphAt(c.childAt(u,[0]),1,1),C=c.createMorphAt(c.childAt(m,[1]),1,1),f=c.createMorphAt(c.childAt(m,[3]),1,1),g=c.createMorphAt(c.childAt(m,[5]),1,1),b=c.createMorphAt(m,7,7);return l(d,v,n,"ember-gravatar",[],{email:o(d,n,"user.email"),size:94}),l(d,C,n,"link-to",[o(d,n,"user.name"),"users.show",o(d,n,"user")],{}),h(d,f,n,"user.checks.length"),p(d,g,n,"if",[o(d,n,"user.isFollowsMe")],{},e,t),p(d,b,n,"if",[o(d,n,"user.isMe")],{},a,r),u}}}())}),define("ui/templates/components/users/wait-invite-tr",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("s"),r=e.createComment("");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.content;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.createMorphAt(r.childAt(i,[1]),0,0);return d(t,c,e,"user.email"),i}}}(),t=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.content;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.createMorphAt(i,1,1,a);return d(t,c,e,"user.email"),i}}}(),a=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" resending ...\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}(),r=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("a");e.setAttribute(a,"href","#");var r=e.createTextNode("Resend");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n ");e.appendChild(t,a);var a=e.createElement("a");e.setAttribute(a,"href","#");var r=e.createTextNode("Cancel");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.element;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.childAt(i,[1]),s=r.childAt(i,[3]);return d(t,c,e,"action",["resend"],{}),d(t,s,e,"action",["cancel"],{}),i}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("td"),r=e.createTextNode("\n");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");e.appendChild(t,a);var a=e.createElement("td"),r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");e.appendChild(t,a);var a=e.createElement("td"),r=e.createTextNode("\n");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(n,d,i){var c=d.dom,s=d.hooks,o=s.get,l=s.block,h=s.content;c.detectNamespace(i);var p;d.useFragmentCache&&c.canClone?(null===this.cachedFragment&&(p=this.build(c),this.hasRendered?this.cachedFragment=p:this.hasRendered=!0),this.cachedFragment&&(p=c.cloneNode(this.cachedFragment,!0))):p=this.build(c);var u=c.childAt(p,[4]),m=c.createMorphAt(c.childAt(p,[0]),1,1),v=c.createMorphAt(c.childAt(p,[2]),1,1),C=c.createMorphAt(u,1,1),f=c.createMorphAt(u,3,3);return l(d,m,n,"if",[o(d,n,"canceling")],{},e,t),h(d,v,n,"user.invite_send_count"),l(d,C,n,"if",[o(d,n,"resending")],{},a,null),l(d,f,n,"if",[o(d,n,"isShowActions")],{},r,null),p}}}())}),define("ui/templates/forget_password",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("div");e.setAttribute(a,"class","alert alert-info");var r=e.createTextNode("\n Email with password restoring instructions sended to ");e.appendChild(a,r);var r=e.createElement("b"),n=e.createComment("");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode(".\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.content;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.createMorphAt(r.childAt(i,[1,1]),0,0);return d(t,c,e,"email"),i}}}(),t=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("div");e.setAttribute(a,"class","col-sm-6");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("form");e.setAttribute(r,"role","form");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("div");e.setAttribute(n,"class","form-group");var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("label");e.setAttribute(d,"for","email");var i=e.createTextNode("Email");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createComment("");e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("input");e.setAttribute(n,"type","submit"),e.setAttribute(n,"value","Reset"),e.setAttribute(n,"class","btn btn-default"),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.element,i=n.get,c=n.inline;r.detectNamespace(a);var s;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(s=this.build(r),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=r.cloneNode(this.cachedFragment,!0))):s=this.build(r);var o=r.childAt(s,[1,1]),l=r.childAt(o,[3]),h=r.createMorphAt(r.childAt(o,[1]),3,3);return d(t,o,e,"action",["restore"],{on:"submit"}),c(t,h,e,"input",[],{type:"email",id:"email","class":"form-control",value:i(t,e,"email")}),d(t,l,e,"bind-attr",[],{disabled:i(t,e,"isFormInvalid")}),s}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("div");e.setAttribute(a,"class","container");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","page-header");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("h1"),d=e.createComment("");e.appendChild(n,d);var d=e.createTextNode(": Password Restore");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n\n");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(a,r,n){var d=r.dom,i=r.hooks,c=i.inline,s=i.get,o=i.block;d.detectNamespace(n);var l;r.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(l=this.build(d),this.hasRendered?this.cachedFragment=l:this.hasRendered=!0),this.cachedFragment&&(l=d.cloneNode(this.cachedFragment,!0))):l=this.build(d);var h=d.childAt(l,[0]),p=d.createMorphAt(d.childAt(h,[1,1]),0,0),u=d.createMorphAt(h,3,3);return c(r,p,a,"link-to",["SnowmanIO","login"],{}),o(r,u,a,"if",[s(r,a,"isSended")],{},e,t),l}}}())}),define("ui/templates/invite",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("div");e.setAttribute(a,"class","container");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","page-header");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("h1"),d=e.createComment("");e.appendChild(n,d);var d=e.createTextNode(": Invite");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","col-sm-6");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("form");e.setAttribute(n,"role","form");var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("div");e.setAttribute(d,"class","form-group");var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createElement("label");e.setAttribute(i,"for","name");var c=e.createTextNode("Name");e.appendChild(i,c),e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createComment("");e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n\n ");e.appendChild(n,d);var d=e.createElement("div");e.setAttribute(d,"class","form-group");var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createElement("label");e.setAttribute(i,"for","password");var c=e.createTextNode("Password");e.appendChild(i,c),e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createComment("");e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("input");e.setAttribute(d,"type","submit"),e.setAttribute(d,"value","Go"),e.setAttribute(d,"class","btn btn-default"),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.inline,i=n.element,c=n.get;r.detectNamespace(a);var s;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(s=this.build(r),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=r.cloneNode(this.cachedFragment,!0))):s=this.build(r);var o=r.childAt(s,[0]),l=r.childAt(o,[3,1]),h=r.childAt(l,[5]),p=r.createMorphAt(r.childAt(o,[1,1]),0,0),u=r.createMorphAt(r.childAt(l,[1]),3,3),m=r.createMorphAt(r.childAt(l,[3]),3,3);return d(t,p,e,"link-to",["SnowmanIO","login"],{}),i(t,l,e,"action",["register"],{on:"submit"}),d(t,u,e,"input",[],{id:"name","class":"form-control",value:c(t,e,"name")}),d(t,m,e,"input",[],{id:"password","class":"form-control",type:"password",value:c(t,e,"password")}),i(t,h,e,"bind-attr",[],{disabled:c(t,e,"isFormInvalid")}),s}}}())}),define("ui/templates/login",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("div");e.setAttribute(a,"class","alert alert-danger");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.content;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.createMorphAt(r.childAt(i,[1]),1,1);return d(t,c,e,"errorMessage"),i}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("div");e.setAttribute(a,"class","container");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","page-header");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("h1"),d=e.createTextNode("SnowmanIO");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n\n");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","col-sm-6");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("form");e.setAttribute(n,"role","form");var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("div");e.setAttribute(d,"class","form-group");var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createElement("label");e.setAttribute(i,"for","identification");var c=e.createTextNode("Email");e.appendChild(i,c),e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createComment("");e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("div");e.setAttribute(d,"class","form-group");var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createElement("label");e.setAttribute(i,"for","password");var c=e.createTextNode("Password");e.appendChild(i,c),e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createComment("");e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("input");e.setAttribute(d,"type","submit"),e.setAttribute(d,"value","Login"),e.setAttribute(d,"class","btn btn-default"),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createComment("");e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.get,c=d.block,s=d.element,o=d.inline;n.detectNamespace(r);var l;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(l=this.build(n),this.hasRendered?this.cachedFragment=l:this.hasRendered=!0),this.cachedFragment&&(l=n.cloneNode(this.cachedFragment,!0))):l=this.build(n);var h=n.childAt(l,[0]),p=n.childAt(h,[5,1]),u=n.childAt(p,[5]),m=n.createMorphAt(h,3,3),v=n.createMorphAt(n.childAt(p,[1]),3,3),C=n.createMorphAt(n.childAt(p,[3]),3,3),f=n.createMorphAt(p,7,7);return c(a,m,t,"if",[i(a,t,"errorMessage")],{},e,null),s(a,p,t,"action",["authenticate"],{on:"submit"}),o(a,v,t,"input",[],{type:"email",id:"identification","class":"form-control",value:i(a,t,"identification")}),o(a,C,t,"input",[],{id:"password","class":"form-control",type:"password",value:i(a,t,"password")}),s(a,u,t,"bind-attr",[],{disabled:i(a,t,"isFormInvalid")}),o(a,f,t,"link-to",["Forget password?","forget_password"],{"class":"btn btn-link"}),l}}}())}),define("ui/templates/metrics/history",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("div");e.setAttribute(a,"class","row-fluid");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("ol");e.setAttribute(r,"class","breadcrumb");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("li"),d=e.createComment("");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("li");e.setAttribute(n,"class","active");var d=e.createComment("");e.appendChild(n,d);var d=e.createTextNode(" ");e.appendChild(n,d);var d=e.createElement("small"),i=e.createTextNode("(");e.appendChild(d,i);var i=e.createComment("");e.appendChild(d,i);var i=e.createTextNode(")");e.appendChild(d,i),e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),
7
7
  e.appendChild(t,a);var a=e.createTextNode("\n\n");e.appendChild(t,a);var a=e.createElement("ul");e.setAttribute(a,"class","nav nav-pills");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("li"),n=e.createComment("");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("li");e.setAttribute(r,"class","active");var n=e.createComment("");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n\n");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.get,i=n.inline,c=n.content;r.detectNamespace(a);var s;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(s=this.build(r),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=r.cloneNode(this.cachedFragment,!0))):s=this.build(r);var o=r.childAt(s,[0,1]),l=r.childAt(o,[3]),h=r.childAt(s,[2]),p=r.createMorphAt(r.childAt(o,[1]),0,0),u=r.createMorphAt(l,0,0),m=r.createMorphAt(r.childAt(l,[2]),1,1),v=r.createMorphAt(r.childAt(h,[1]),0,0),C=r.createMorphAt(r.childAt(h,[3]),0,0),f=r.createMorphAt(s,4,4,a);return i(t,p,e,"link-to",["Metrics","metrics",d(t,e,"app")],{}),c(t,u,e,"model.name"),c(t,m,e,"model.kind"),i(t,v,e,"link-to",["Now","metrics.show",d(t,e,"model")],{}),i(t,C,e,"link-to",["History","metrics.history",d(t,e,"model")],{}),i(t,f,e,"component",[d(t,e,"model.historyComponentName")],{metric:d(t,e,"model")}),s}}}())}),define("ui/templates/metrics/index",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("tr"),r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("td"),n=e.createComment("");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("td"),n=e.createComment("");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("td"),n=e.createComment("");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("td"),n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("a");e.setAttribute(n,"href","#");var d=e.createElement("span");e.setAttribute(d,"class","glyphicon glyphicon-trash"),e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.element,i=n.get,c=n.inline,s=n.content;r.detectNamespace(a);var o;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(o=this.build(r),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=r.cloneNode(this.cachedFragment,!0))):o=this.build(r);var l=r.childAt(o,[1]),h=r.childAt(l,[7,1]),p=r.createMorphAt(r.childAt(l,[1]),0,0),u=r.createMorphAt(r.childAt(l,[3]),0,0),m=r.createMorphAt(r.childAt(l,[5]),0,0);return d(t,l,e,"bind-attr",[],{"class":"metric.triggeredChecksForMe:danger"}),c(t,p,e,"link-to",[i(t,e,"metric.name"),"metrics.show",i(t,e,"model"),i(t,e,"metric")],{}),s(t,u,e,"metric.kind"),s(t,m,e,"metric.checksForMe.length"),d(t,h,e,"action",["destroy",i(t,e,"metric")],{}),o}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("div");e.setAttribute(a,"class","table-responsive");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("table");e.setAttribute(r,"class","table table-striped");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("thead"),d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("tr"),i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createElement("th"),c=e.createTextNode("Name");e.appendChild(i,c),e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createElement("th"),c=e.createTextNode("Kind");e.appendChild(i,c),e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createElement("th"),c=e.createTextNode("Checks");e.appendChild(i,c),e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createElement("th"),c=e.createTextNode("Actions");e.appendChild(i,c),e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("tbody"),d=e.createTextNode("\n");e.appendChild(n,d);var d=e.createComment("");e.appendChild(n,d);var d=e.createTextNode(" ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.get,c=d.block;n.detectNamespace(r);var s;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(s=this.build(n),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=n.cloneNode(this.cachedFragment,!0))):s=this.build(n);var o=n.createMorphAt(n.childAt(s,[0,1,3]),1,1);return c(a,o,t,"each",[i(a,t,"model.metrics")],{keyword:"metric"},e,null),s}}}())}),define("ui/templates/metrics/show",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){var e=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.get,i=n.inline;r.detectNamespace(a);var c;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(c=this.build(r),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=r.cloneNode(this.cachedFragment,!0))):c=this.build(r);var s=r.createMorphAt(c,1,1,a);return i(t,s,e,"check-tr",[],{check:d(t,e,"check")}),c}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("div");e.setAttribute(a,"class","table-response");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("table");e.setAttribute(r,"class","table table-striped");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("thead"),d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createComment("");e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("tbody"),d=e.createTextNode("\n");e.appendChild(n,d);var d=e.createComment("");e.appendChild(n,d);var d=e.createTextNode(" ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.content,c=d.get,s=d.block;n.detectNamespace(r);var o;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(o=this.build(n),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=n.cloneNode(this.cachedFragment,!0))):o=this.build(n);var l=n.childAt(o,[1,1]),h=n.createMorphAt(n.childAt(l,[1]),1,1),p=n.createMorphAt(n.childAt(l,[3]),1,1);return i(a,h,t,"checks-header"),s(a,p,t,"each",[c(a,t,"checksForMe")],{keyword:"check"},e,null),o}}}(),t=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.get,i=n.inline;r.detectNamespace(a);var c;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(c=this.build(r),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=r.cloneNode(this.cachedFragment,!0))):c=this.build(r);var s=r.createMorphAt(c,1,1,a);return i(t,s,e,"check-add",[],{metric:d(t,e,"model")}),c}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("div");e.setAttribute(a,"class","row-fluid");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("ol");e.setAttribute(r,"class","breadcrumb");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("li"),d=e.createComment("");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("li");e.setAttribute(n,"class","active");var d=e.createComment("");e.appendChild(n,d);var d=e.createTextNode(" ");e.appendChild(n,d);var d=e.createElement("small"),i=e.createTextNode("(");e.appendChild(d,i);var i=e.createComment("");e.appendChild(d,i);var i=e.createTextNode(")");e.appendChild(d,i),e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n\n");e.appendChild(t,a);var a=e.createElement("div");e.setAttribute(a,"class","row-fluid");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","pull-right");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n);var n=e.createTextNode(" from ");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("div");e.setAttribute(n,"class","btn-group btn-group-sm");var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("button");e.setAttribute(d,"type","button"),e.setAttribute(d,"class","btn btn-default");var i=e.createTextNode("<");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("button");e.setAttribute(d,"type","button"),e.setAttribute(d,"class","btn btn-default");var i=e.createTextNode(">");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("ul");e.setAttribute(r,"class","nav nav-pills");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("li");e.setAttribute(n,"class","active");var d=e.createComment("");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("li"),d=e.createComment("");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n\n");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n\n");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");e.appendChild(t,a);var a=e.createComment("");return e.appendChild(t,a),t},render:function(a,r,n){var d=r.dom,i=r.hooks,c=i.get,s=i.inline,o=i.content,l=i.element,h=i.block;d.detectNamespace(n);var p;r.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(p=this.build(d),this.hasRendered?this.cachedFragment=p:this.hasRendered=!0),this.cachedFragment&&(p=d.cloneNode(this.cachedFragment,!0))):p=this.build(d);var u=d.childAt(p,[0,1]),m=d.childAt(u,[3]),v=d.childAt(p,[2]),C=d.childAt(v,[1]),f=d.childAt(C,[5]),g=d.childAt(f,[1]),b=d.childAt(f,[3]),N=d.childAt(v,[3]),x=d.createMorphAt(d.childAt(u,[1]),0,0),T=d.createMorphAt(m,0,0),F=d.createMorphAt(d.childAt(m,[2]),1,1),A=d.createMorphAt(C,1,1),k=d.createMorphAt(C,3,3),E=d.createMorphAt(d.childAt(N,[1]),0,0),R=d.createMorphAt(d.childAt(N,[3]),0,0),M=d.createMorphAt(p,4,4,n),w=d.createMorphAt(p,6,6,n),y=d.createMorphAt(p,8,8,n);return d.insertBoundary(p,null),s(r,x,a,"link-to",["Metrics","metrics",c(r,a,"app")],{}),o(r,T,a,"model.name"),o(r,F,a,"model.kind"),o(r,A,a,"position"),o(r,k,a,"app.metrics.length"),l(r,g,a,"bind-attr",[],{disabled:c(r,a,"noPrev")}),l(r,g,a,"action",["go",c(r,a,"prevMetricId")],{}),l(r,b,a,"bind-attr",[],{disabled:c(r,a,"noNext")}),l(r,b,a,"action",["go",c(r,a,"nextMetricId")],{}),s(r,E,a,"link-to",["Now","metrics.show",c(r,a,"model")],{}),s(r,R,a,"link-to",["History","metrics.history",c(r,a,"model")],{}),s(r,M,a,"component",[c(r,a,"model.showComponentName")],{metric:c(r,a,"model")}),h(r,w,a,"if",[c(r,a,"checksForMe")],{},e,null),h(r,y,a,"if",[c(r,a,"model.supportedCheckTemplates")],{},t,null),p}}}())}),define("ui/templates/restore_password",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("div");e.setAttribute(a,"class","container");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","page-header");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("h1"),d=e.createComment("");e.appendChild(n,d);var d=e.createTextNode(": New Password");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","col-sm-6");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("form");e.setAttribute(n,"role","form");var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("div");e.setAttribute(d,"class","form-group");var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createElement("label");e.setAttribute(i,"for","password");var c=e.createTextNode("Password");e.appendChild(i,c),e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createComment("");e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("input");e.setAttribute(d,"type","submit"),e.setAttribute(d,"value","Update"),e.setAttribute(d,"class","btn btn-default"),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.inline,i=n.element,c=n.get;r.detectNamespace(a);var s;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(s=this.build(r),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=r.cloneNode(this.cachedFragment,!0))):s=this.build(r);var o=r.childAt(s,[0]),l=r.childAt(o,[3,1]),h=r.childAt(l,[3]),p=r.createMorphAt(r.childAt(o,[1,1]),0,0),u=r.createMorphAt(r.childAt(l,[1]),3,3);return d(t,p,e,"link-to",["SnowmanIO","login"],{}),i(t,l,e,"action",["update"],{on:"submit"}),d(t,u,e,"input",[],{id:"password","class":"form-control",type:"password",value:c(t,e,"password")}),i(t,h,e,"bind-attr",[],{disabled:c(t,e,"isFormInvalid")}),s}}}())}),define("ui/templates/snow",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){var e=function(){var e=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode("Apps");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.block;n.detectNamespace(r);var c;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(c=this.build(n),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=n.cloneNode(this.cachedFragment,!0))):c=this.build(n);var s=n.createMorphAt(c,1,1,r);return i(a,s,t,"link-to",["apps"],{},e,null),c}}}(),t=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode("Users");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.block;n.detectNamespace(r);var c;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(c=this.build(n),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=n.cloneNode(this.cachedFragment,!0))):c=this.build(n);var s=n.createMorphAt(c,1,1,r);return i(a,s,t,"link-to",["users"],{},e,null),c}}}(),a=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode("Settings");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.block;n.detectNamespace(r);var c;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(c=this.build(n),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=n.cloneNode(this.cachedFragment,!0))):c=this.build(n);var s=n.createMorphAt(c,1,1,r);return i(a,s,t,"link-to",["snow.settings"],{},e,null),c}}}(),r=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode("Profile");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.block;n.detectNamespace(r);var c;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(c=this.build(n),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=n.cloneNode(this.cachedFragment,!0))):c=this.build(n);var s=n.createMorphAt(c,1,1,r);return i(a,s,t,"link-to",["snow.profile"],{},e,null),c}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("ul");e.setAttribute(a,"class","nav navbar-nav");var r=e.createTextNode("\n");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode(" ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n ");e.appendChild(t,a);var a=e.createElement("p");e.setAttribute(a,"class","navbar-text navbar-right");var r=e.createTextNode("\n Logged as ");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode(" |\n ");e.appendChild(a,r);var r=e.createElement("a");e.setAttribute(r,"href","#");var n=e.createTextNode("Logout");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(n,d,i){var c=d.dom,s=d.hooks,o=s.block,l=s.content,h=s.element;c.detectNamespace(i);var p;d.useFragmentCache&&c.canClone?(null===this.cachedFragment&&(p=this.build(c),this.hasRendered?this.cachedFragment=p:this.hasRendered=!0),this.cachedFragment&&(p=c.cloneNode(this.cachedFragment,!0))):p=this.build(c);var u=c.childAt(p,[1]),m=c.childAt(p,[3]),v=c.childAt(m,[3]),C=c.createMorphAt(u,1,1),f=c.createMorphAt(u,2,2),g=c.createMorphAt(u,3,3),b=c.createMorphAt(u,4,4),N=c.createMorphAt(m,1,1);return o(d,C,n,"link-to",["apps"],{tagName:"li",href:!1},e,null),o(d,f,n,"link-to",["users"],{tagName:"li",href:!1},t,null),o(d,g,n,"link-to",["snow.settings"],{tagName:"li",href:!1},a,null),o(d,b,n,"link-to",["snow.profile"],{tagName:"li",href:!1},r,null),l(d,N,n,"currentUser.name"),h(d,v,n,"action",["invalidateSession"],{}),p}}}(),t=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.content;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.createMorphAt(i,1,1,a);return d(t,c,e,"outlet"),i}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("nav");e.setAttribute(a,"class","navbar navbar-inverse");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","container-fluid");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("div");e.setAttribute(n,"class","navbar-header");var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("button");e.setAttribute(d,"type","button"),e.setAttribute(d,"class","navbar-toggle collapsed"),e.setAttribute(d,"data-toggle","collapse"),e.setAttribute(d,"data-target","#bs-example-navbar-collapse-1");var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createElement("span");e.setAttribute(i,"class","sr-only");var c=e.createTextNode("Toggle navigation");e.appendChild(i,c),e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createElement("span");e.setAttribute(i,"class","icon-bar"),e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createElement("span");e.setAttribute(i,"class","icon-bar"),e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createElement("span");e.setAttribute(i,"class","icon-bar"),e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("span");e.setAttribute(d,"class","navbar-brand");var i=e.createTextNode("SnowmanIO");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n\n ");e.appendChild(r,n);var n=e.createElement("div");e.setAttribute(n,"class","collapse navbar-collapse"),e.setAttribute(n,"id","bs-example-navbar-collapse-1");var d=e.createTextNode("\n");e.appendChild(n,d);var d=e.createComment("");e.appendChild(n,d);var d=e.createTextNode(" ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n\n");e.appendChild(t,a);var a=e.createElement("div");e.setAttribute(a,"class","container-main container-fluid");var r=e.createTextNode("\n");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(a,r,n){var d=r.dom,i=r.hooks,c=i.get,s=i.block;d.detectNamespace(n);var o;r.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(o=this.build(d),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=d.cloneNode(this.cachedFragment,!0))):o=this.build(d);var l=d.createMorphAt(d.childAt(o,[0,1,3]),1,1),h=d.createMorphAt(d.childAt(o,[2]),1,1);return s(r,l,a,"if",[c(r,a,"currentUser")],{},e,null),s(r,h,a,"if",[c(r,a,"currentUser")],{},t,null),o}}}())}),define("ui/templates/snow/profile",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("p"),r=e.createComment("");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n ");e.appendChild(t,a);var a=e.createElement("p"),r=e.createComment("");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n ");e.appendChild(t,a);var a=e.createElement("p"),r=e.createComment("");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.get,i=n.inline;r.detectNamespace(a);var c;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(c=this.build(r),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=r.cloneNode(this.cachedFragment,!0))):c=this.build(r);var s=r.createMorphAt(r.childAt(c,[1]),0,0),o=r.createMorphAt(r.childAt(c,[3]),0,0),l=r.createMorphAt(r.childAt(c,[5]),0,0);return i(t,s,e,"profile/name-edit",[],{user:d(t,e,"session.currentUser")}),i(t,o,e,"profile/email-edit",[],{user:d(t,e,"session.currentUser")}),i(t,l,e,"profile/password-edit",[],{user:d(t,e,"session.currentUser")}),c}}}(),t=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("p"),r=e.createElement("b"),n=e.createTextNode("Name:");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode(" ");e.appendChild(a,r);var r=e.createElement("s"),n=e.createComment("");e.appendChild(r,n),e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n ");e.appendChild(t,a);var a=e.createElement("p"),r=e.createElement("b"),n=e.createTextNode("Email:");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode(" ");e.appendChild(a,r);var r=e.createElement("s"),n=e.createComment("");e.appendChild(r,n),e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.content;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.createMorphAt(r.childAt(i,[1,2]),0,0),s=r.createMorphAt(r.childAt(i,[3,2]),0,0);return d(t,c,e,"session.currentUser.name"),d(t,s,e,"session.currentUser.email"),i}}}(),a=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("div");e.setAttribute(a,"class","row-fluid");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","col-md-offset-1 col-md-10");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("div");e.setAttribute(n,"class","pull-right");var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("a");e.setAttribute(d,"href","#");var i=e.createTextNode("Cancel account");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.element;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.childAt(i,[1,1,1,1]);return d(t,c,e,"action",["destroy"],{}),i}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("div");e.setAttribute(a,"class","row-fluid");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","col-sm-offset-2 col-sm-2");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","col-sm-6");var n=e.createTextNode("\n");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n);var n=e.createTextNode(" ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n\n");e.appendChild(t,a);var a=e.createComment("");return e.appendChild(t,a),t},render:function(r,n,d){var i=n.dom,c=n.hooks,s=c.get,o=c.inline,l=c.block;i.detectNamespace(d);var h;
8
8
  n.useFragmentCache&&i.canClone?(null===this.cachedFragment&&(h=this.build(i),this.hasRendered?this.cachedFragment=h:this.hasRendered=!0),this.cachedFragment&&(h=i.cloneNode(this.cachedFragment,!0))):h=this.build(i);var p=i.childAt(h,[0]),u=i.createMorphAt(i.childAt(p,[1]),1,1),m=i.createMorphAt(i.childAt(p,[3]),1,1),v=i.createMorphAt(h,2,2,d);return i.insertBoundary(h,null),o(n,u,r,"ember-gravatar",[],{email:s(n,r,"session.currentUser.email"),size:200}),l(n,m,r,"unless",[s(n,r,"destroing")],{},e,t),l(n,v,r,"unless",[s(n,r,"destroing")],{},a,null),h}}}())}),define("ui/templates/snow/settings",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("h2"),r=e.createTextNode("SnowmanIO ");e.appendChild(a,r);var r=e.createElement("small"),n=e.createComment("");e.appendChild(r,n),e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n\n");e.appendChild(t,a);var a=e.createElement("p"),r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("b"),n=e.createTextNode("Base url:");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode(" ");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n\n");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.content,i=n.inline;r.detectNamespace(a);var c;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(c=this.build(r),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=r.cloneNode(this.cachedFragment,!0))):c=this.build(r);var s=r.createMorphAt(r.childAt(c,[0,1]),0,0),o=r.createMorphAt(r.childAt(c,[2]),3,3),l=r.createMorphAt(c,4,4,a);return d(t,s,e,"model.info.version"),d(t,o,e,"baseUrl"),i(t,l,e,"render",["snow/settings/force_ssl"],{}),c}}}())}),define("ui/templates/snow/settings/force_ssl",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" Saving...\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}(),t=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n ");e.appendChild(t,a);var a=e.createElement("a");e.setAttribute(a,"href","#");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("span");e.setAttribute(r,"class","glyphicon glyphicon-pencil"),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.content,i=n.element;r.detectNamespace(a);var c;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(c=this.build(r),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=r.cloneNode(this.cachedFragment,!0))):c=this.build(r);var s=r.childAt(c,[3]),o=r.createMorphAt(c,1,1,a);return d(t,o,e,"statusText"),i(t,s,e,"action",["toggle"],{}),i(t,s,e,"bind-attr",[],{"class":"saving:hidden"}),c}}}(),a=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("div");e.setAttribute(a,"class","well");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","btn-group");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("a");e.setAttribute(n,"href","#");var d=e.createTextNode("Disable");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("a");e.setAttribute(n,"href","#");var d=e.createTextNode("Enable");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.element;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.childAt(i,[1,1]),s=r.childAt(c,[1]),o=r.childAt(c,[3]);return d(t,s,e,"action",["update","disable"],{}),d(t,s,e,"bind-attr",[],{"class":":btn :btn-default forceSSL::active"}),d(t,o,e,"action",["update","enable"],{}),d(t,o,e,"bind-attr",[],{"class":":btn :btn-default forceSSL:active"}),i}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("p"),r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("b"),n=e.createTextNode("Force HTTPS:");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n\n");e.appendChild(t,a);var a=e.createComment("");return e.appendChild(t,a),t},render:function(r,n,d){var i=n.dom,c=n.hooks,s=c.get,o=c.block;i.detectNamespace(d);var l;n.useFragmentCache&&i.canClone?(null===this.cachedFragment&&(l=this.build(i),this.hasRendered?this.cachedFragment=l:this.hasRendered=!0),this.cachedFragment&&(l=i.cloneNode(this.cachedFragment,!0))):l=this.build(i);var h=i.createMorphAt(i.childAt(l,[0]),3,3),p=i.createMorphAt(l,2,2,d);return i.insertBoundary(l,null),o(n,h,r,"if",[s(n,r,"saving")],{},e,t),o(n,p,r,"if",[s(n,r,"show")],{},a,null),l}}}())}),define("ui/templates/unpacking",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("div");e.setAttribute(a,"class","container");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","page-header");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("h1"),d=e.createTextNode("SnowmanIO: Unpacking");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","alert alert-info");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("p"),d=e.createTextNode("Let register the first user");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","col-sm-6");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("form");e.setAttribute(n,"role","form");var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("div");e.setAttribute(d,"class","form-group");var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createElement("label");e.setAttribute(i,"for","email");var c=e.createTextNode("Name");e.appendChild(i,c),e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createComment("");e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createElement("br");e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createElement("label");e.setAttribute(i,"for","email");var c=e.createTextNode("Email");e.appendChild(i,c),e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createComment("");e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createElement("br");e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createElement("label");e.setAttribute(i,"for","password");var c=e.createTextNode("Password");e.appendChild(i,c),e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createComment("");e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("input");e.setAttribute(d,"type","submit"),e.setAttribute(d,"value","Create"),e.setAttribute(d,"class","btn btn-default"),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.element,i=n.get,c=n.inline;r.detectNamespace(a);var s;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(s=this.build(r),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=r.cloneNode(this.cachedFragment,!0))):s=this.build(r);var o=r.childAt(s,[0,5,1]),l=r.childAt(o,[1]),h=r.childAt(o,[3]),p=r.createMorphAt(l,3,3),u=r.createMorphAt(l,9,9),m=r.createMorphAt(l,15,15);return d(t,o,e,"action",["setup"],{on:"submit"}),c(t,p,e,"input",[],{id:"name","class":"form-control",value:i(t,e,"user.name")}),c(t,u,e,"input",[],{id:"email","class":"form-control",value:i(t,e,"user.email")}),c(t,m,e,"input",[],{id:"password","class":"form-control",type:"password",value:i(t,e,"user.password")}),d(t,h,e,"bind-attr",[],{disabled:i(t,e,"isFormInvalid")}),s}}}())}),define("ui/templates/users/index",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){var e=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("div");e.setAttribute(a,"class","col-md-5");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.get,i=n.inline;r.detectNamespace(a);var c;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(c=this.build(r),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=r.cloneNode(this.cachedFragment,!0))):c=this.build(r);var s=r.createMorphAt(r.childAt(c,[1]),1,1);return i(t,s,e,"users/show-user",[],{user:d(t,e,"group.second")}),c}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("div");e.setAttribute(a,"class","col-md-offset-1 col-md-5");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");e.appendChild(t,a);var a=e.createComment("");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.get,c=d.inline,s=d.block;n.detectNamespace(r);var o;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(o=this.build(n),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=n.cloneNode(this.cachedFragment,!0))):o=this.build(n);var l=n.createMorphAt(n.childAt(o,[1]),1,1),h=n.createMorphAt(o,3,3,r);return n.insertBoundary(o,null),c(a,l,t,"users/show-user",[],{user:i(a,t,"group.first")}),s(a,h,t,"if",[i(a,t,"group.second")],{},e,null),o}}}(),t=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.get,i=n.inline;r.detectNamespace(a);var c;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(c=this.build(r),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=r.cloneNode(this.cachedFragment,!0))):c=this.build(r);var s=r.createMorphAt(c,1,1,a);return i(t,s,e,"users/wait-invite-tr",[],{user:d(t,e,"user")}),c}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("div");e.setAttribute(a,"class","row-fluid");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","col-md-offset-1 col-md-10");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("div");e.setAttribute(n,"class","table-response");var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("table");e.setAttribute(d,"class","table table-striped");var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createElement("thead"),c=e.createTextNode("\n ");e.appendChild(i,c);var c=e.createElement("tr"),s=e.createTextNode("\n ");e.appendChild(c,s);var s=e.createElement("th"),o=e.createTextNode("Email");e.appendChild(s,o),e.appendChild(c,s);var s=e.createTextNode("\n ");e.appendChild(c,s);var s=e.createElement("th"),o=e.createTextNode("Invite Send Count");e.appendChild(s,o),e.appendChild(c,s);var s=e.createTextNode("\n ");e.appendChild(c,s);var s=e.createElement("th"),o=e.createTextNode("Actions");e.appendChild(s,o),e.appendChild(c,s);var s=e.createTextNode("\n ");e.appendChild(c,s),e.appendChild(i,c);var c=e.createTextNode("\n ");e.appendChild(i,c),e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createElement("tbody"),c=e.createTextNode("\n");e.appendChild(i,c);var c=e.createComment("");e.appendChild(i,c);var c=e.createTextNode(" ");e.appendChild(i,c),e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.get,c=d.block;n.detectNamespace(r);var s;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(s=this.build(n),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=n.cloneNode(this.cachedFragment,!0))):s=this.build(n);var o=n.createMorphAt(n.childAt(s,[1,1,1,1,3]),1,1);return c(a,o,t,"each",[i(a,t,"waitInviteUsers")],{keyword:"user"},e,null),s}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("div");e.setAttribute(a,"class","row-fluid");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","col-md-offset-1 col-md-10");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("ol");e.setAttribute(n,"class","breadcrumb");var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("li");e.setAttribute(d,"class","active");var i=e.createTextNode("Users");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n\n");e.appendChild(t,a);var a=e.createElement("div");e.setAttribute(a,"class","row-fluid");var r=e.createTextNode("\n");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode(" ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","clearfix"),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n\n");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");e.appendChild(t,a);var a=e.createElement("div");e.setAttribute(a,"class","row-fluid");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","col-md-offset-1 col-md-10");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(a,r,n){var d=r.dom,i=r.hooks,c=i.get,s=i.block,o=i.content;d.detectNamespace(n);var l;r.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(l=this.build(d),this.hasRendered?this.cachedFragment=l:this.hasRendered=!0),this.cachedFragment&&(l=d.cloneNode(this.cachedFragment,!0))):l=this.build(d);var h=d.createMorphAt(d.childAt(l,[2]),1,1),p=d.createMorphAt(l,4,4,n),u=d.createMorphAt(d.childAt(l,[6,1]),1,1);return s(r,h,a,"each",[c(r,a,"usersInGroupsOfTwo")],{keyword:"group"},e,null),s(r,p,a,"if",[c(r,a,"waitInviteUsers")],{},t,null),o(r,u,a,"users/invite-user"),l}}}())}),define("ui/templates/users/show",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("li");e.setAttribute(a,"class","active");var r=e.createComment("");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.content;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.createMorphAt(r.childAt(i,[1]),0,0);return d(t,c,e,"model.name"),i}}}(),t=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("li");e.setAttribute(a,"class","active");var r=e.createElement("s"),n=e.createComment("");e.appendChild(r,n),e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.content;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.createMorphAt(r.childAt(i,[1,0]),0,0);return d(t,c,e,"model.name"),i}}}(),a=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("p"),r=e.createElement("b"),n=e.createTextNode("Snowman respects this user especially");e.appendChild(r,n),e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}(),t=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("p"),r=e.createElement("small"),n=e.createTextNode("FOLLOWS YOU");e.appendChild(r,n),e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}(),t=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("p"),r=e.createElement("a");e.setAttribute(r,"href","#");var n=e.createTextNode("Unfollow");e.appendChild(r,n),e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.element;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.childAt(i,[1,0]);return d(t,c,e,"bind-attr",[],{"class":":btn :btn-info :btn-sm updating:disabled"}),d(t,c,e,"action",["unfollow"],{}),i}}}(),a=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("p"),r=e.createElement("a");e.setAttribute(r,"href","#");var n=e.createTextNode("Follow");e.appendChild(r,n),e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.element;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.childAt(i,[1,0]);return d(t,c,e,"bind-attr",[],{"class":":btn :btn-default :btn-sm updating:disabled"}),d(t,c,e,"action",["follow"],{}),i}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createComment("");e.appendChild(t,a);var a=e.createComment("");return e.appendChild(t,a),t},render:function(r,n,d){var i=n.dom,c=n.hooks,s=c.get,o=c.block;i.detectNamespace(d);var l;n.useFragmentCache&&i.canClone?(null===this.cachedFragment&&(l=this.build(i),this.hasRendered?this.cachedFragment=l:this.hasRendered=!0),this.cachedFragment&&(l=i.cloneNode(this.cachedFragment,!0))):l=this.build(i);var h=i.createMorphAt(l,0,0,d),p=i.createMorphAt(l,1,1,d);return i.insertBoundary(l,null),i.insertBoundary(l,0),o(n,h,r,"if",[s(n,r,"model.isFollowsMe")],{},e,null),o(n,p,r,"if",[s(n,r,"model.isFollowedByMe")],{},t,a),l}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("p"),r=e.createElement("b"),n=e.createTextNode("Name:");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode(" ");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n ");e.appendChild(t,a);var a=e.createElement("p"),r=e.createElement("b"),n=e.createTextNode("Email:");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode(" ");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n ");e.appendChild(t,a);var a=e.createElement("p"),r=e.createElement("b"),n=e.createTextNode("Checks:");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode(" ");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n\n");e.appendChild(t,a);var a=e.createComment("");return e.appendChild(t,a),t},render:function(a,r,n){var d=r.dom,i=r.hooks,c=i.content,s=i.get,o=i.block;d.detectNamespace(n);var l;r.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(l=this.build(d),this.hasRendered?this.cachedFragment=l:this.hasRendered=!0),this.cachedFragment&&(l=d.cloneNode(this.cachedFragment,!0))):l=this.build(d);var h=d.createMorphAt(d.childAt(l,[1]),2,2),p=d.createMorphAt(d.childAt(l,[3]),2,2),u=d.createMorphAt(d.childAt(l,[5]),2,2),m=d.createMorphAt(l,7,7,n);return d.insertBoundary(l,null),c(r,h,a,"model.name"),c(r,p,a,"model.email"),c(r,u,a,"model.checks.length"),o(r,m,a,"if",[s(r,a,"model.isMe")],{},e,t),l}}}(),r=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("p"),r=e.createElement("b"),n=e.createTextNode("Name:");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode(" ");e.appendChild(a,r);var r=e.createElement("s"),n=e.createComment("");e.appendChild(r,n),e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n ");e.appendChild(t,a);var a=e.createElement("p"),r=e.createElement("b"),n=e.createTextNode("Email:");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode(" ");e.appendChild(a,r);var r=e.createElement("s"),n=e.createComment("");e.appendChild(r,n),e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.content;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.createMorphAt(r.childAt(i,[1,2]),0,0),s=r.createMorphAt(r.childAt(i,[3,2]),0,0);return d(t,c,e,"model.name"),d(t,s,e,"model.email"),i}}}(),n=function(){var e=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.get,i=n.inline;r.detectNamespace(a);var c;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(c=this.build(r),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=r.cloneNode(this.cachedFragment,!0))):c=this.build(r);var s=r.createMorphAt(c,1,1,a);return i(t,s,e,"check-tr",[],{check:d(t,e,"check"),enableActions:!1}),c}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("div");e.setAttribute(a,"class","row-fluid");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","col-md-offset-1 col-md-10");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("div");e.setAttribute(n,"class","table-response");var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("table");e.setAttribute(d,"class","table table-striped");var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createElement("thead"),c=e.createTextNode("\n ");e.appendChild(i,c);var c=e.createComment("");e.appendChild(i,c);var c=e.createTextNode("\n ");e.appendChild(i,c),e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createElement("tbody"),c=e.createTextNode("\n");e.appendChild(i,c);var c=e.createComment("");e.appendChild(i,c);var c=e.createTextNode(" ");e.appendChild(i,c),e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.inline,c=d.get,s=d.block;n.detectNamespace(r);var o;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(o=this.build(n),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=n.cloneNode(this.cachedFragment,!0))):o=this.build(n);var l=n.childAt(o,[1,1,1,1]),h=n.createMorphAt(n.childAt(l,[1]),1,1),p=n.createMorphAt(n.childAt(l,[3]),1,1);return i(a,h,t,"check-header",[],{enableActions:!1}),s(a,p,t,"each",[c(a,t,"model.checks")],{keyword:"check"},e,null),o}}}(),t=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("div");e.setAttribute(a,"class","row-fluid");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","col-md-offset-1 col-md-10");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("div");e.setAttribute(n,"class","pull-right");var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("a");e.setAttribute(d,"href","#");var i=e.createTextNode("Destroy this user forever");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.element;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.childAt(i,[1,1,1,1]);return d(t,c,e,"action",["destroy"],{}),i}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");e.appendChild(t,a);var a=e.createComment("");return e.appendChild(t,a),t},render:function(a,r,n){var d=r.dom,i=r.hooks,c=i.get,s=i.block;d.detectNamespace(n);var o;r.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(o=this.build(d),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=d.cloneNode(this.cachedFragment,!0))):o=this.build(d);var l=d.createMorphAt(o,0,0,n),h=d.createMorphAt(o,2,2,n);return d.insertBoundary(o,null),d.insertBoundary(o,0),s(r,l,a,"if",[c(r,a,"model.checks")],{},e,null),s(r,h,a,"unless",[c(r,a,"model.isMe")],{},t,null),o}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",
9
- blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("div");e.setAttribute(a,"class","row-fluid");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","col-md-offset-1 col-md-10");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("ol");e.setAttribute(n,"class","breadcrumb");var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("li"),i=e.createComment("");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n");e.appendChild(n,d);var d=e.createComment("");e.appendChild(n,d);var d=e.createTextNode(" ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n\n");e.appendChild(t,a);var a=e.createElement("div");e.setAttribute(a,"class","row-fluid");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","col-sm-offset-1 col-sm-2");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","col-sm-8");var n=e.createTextNode("\n");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n);var n=e.createTextNode(" ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n\n\n");e.appendChild(t,a);var a=e.createComment("");return e.appendChild(t,a),t},render:function(d,i,c){var s=i.dom,o=i.hooks,l=o.inline,h=o.get,p=o.block;s.detectNamespace(c);var u;i.useFragmentCache&&s.canClone?(null===this.cachedFragment&&(u=this.build(s),this.hasRendered?this.cachedFragment=u:this.hasRendered=!0),this.cachedFragment&&(u=s.cloneNode(this.cachedFragment,!0))):u=this.build(s);var m=s.childAt(u,[0,1,1]),v=s.childAt(u,[2]),C=s.createMorphAt(s.childAt(m,[1]),0,0),f=s.createMorphAt(m,3,3),g=s.createMorphAt(s.childAt(v,[1]),1,1),b=s.createMorphAt(s.childAt(v,[3]),1,1),N=s.createMorphAt(u,4,4,c);return s.insertBoundary(u,null),l(i,C,d,"link-to",["Users","users"],{}),p(i,f,d,"unless",[h(i,d,"destroing")],{},e,t),l(i,g,d,"ember-gravatar",[],{email:h(i,d,"model.email"),size:200}),p(i,b,d,"unless",[h(i,d,"destroing")],{},a,r),p(i,N,d,"unless",[h(i,d,"destroing")],{},n,null),u}}}())}),define("ui/config/environment",["ember"],function(e){var t="ui";try{var a=t+"/config/environment",r=e["default"].$('meta[name="'+a+'"]').attr("content"),n=JSON.parse(unescape(r));return{"default":n}}catch(d){throw new Error('Could not read config from meta tag with name "'+a+'".')}}),runningTests?require("ui/tests/test-helper"):require("ui/app")["default"].create({name:"ui",version:"0.0.0.15eed0fd"});
9
+ blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("div");e.setAttribute(a,"class","row-fluid");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","col-md-offset-1 col-md-10");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("ol");e.setAttribute(n,"class","breadcrumb");var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("li"),i=e.createComment("");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n");e.appendChild(n,d);var d=e.createComment("");e.appendChild(n,d);var d=e.createTextNode(" ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n\n");e.appendChild(t,a);var a=e.createElement("div");e.setAttribute(a,"class","row-fluid");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","col-sm-offset-1 col-sm-2");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","col-sm-8");var n=e.createTextNode("\n");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n);var n=e.createTextNode(" ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n\n\n");e.appendChild(t,a);var a=e.createComment("");return e.appendChild(t,a),t},render:function(d,i,c){var s=i.dom,o=i.hooks,l=o.inline,h=o.get,p=o.block;s.detectNamespace(c);var u;i.useFragmentCache&&s.canClone?(null===this.cachedFragment&&(u=this.build(s),this.hasRendered?this.cachedFragment=u:this.hasRendered=!0),this.cachedFragment&&(u=s.cloneNode(this.cachedFragment,!0))):u=this.build(s);var m=s.childAt(u,[0,1,1]),v=s.childAt(u,[2]),C=s.createMorphAt(s.childAt(m,[1]),0,0),f=s.createMorphAt(m,3,3),g=s.createMorphAt(s.childAt(v,[1]),1,1),b=s.createMorphAt(s.childAt(v,[3]),1,1),N=s.createMorphAt(u,4,4,c);return s.insertBoundary(u,null),l(i,C,d,"link-to",["Users","users"],{}),p(i,f,d,"unless",[h(i,d,"destroing")],{},e,t),l(i,g,d,"ember-gravatar",[],{email:h(i,d,"model.email"),size:200}),p(i,b,d,"unless",[h(i,d,"destroing")],{},a,r),p(i,N,d,"unless",[h(i,d,"destroing")],{},n,null),u}}}())}),define("ui/config/environment",["ember"],function(e){var t="ui";try{var a=t+"/config/environment",r=e["default"].$('meta[name="'+a+'"]').attr("content"),n=JSON.parse(unescape(r));return{"default":n}}catch(d){throw new Error('Could not read config from meta tag with name "'+a+'".')}}),runningTests?require("ui/tests/test-helper"):require("ui/app")["default"].create({name:"ui",version:"0.0.0.0ea928b1"});
@@ -7,7 +7,7 @@
7
7
  <title>SnowmanIO: be a little snowy</title>
8
8
 
9
9
  <base href="/" />
10
- <meta name="ui/config/environment" content="%7B%22modulePrefix%22%3A%22ui%22%2C%22environment%22%3A%22production%22%2C%22baseURL%22%3A%22/%22%2C%22apiPrefix%22%3A%22api%22%2C%22locationType%22%3A%22auto%22%2C%22EmberENV%22%3A%7B%22FEATURES%22%3A%7B%7D%7D%2C%22APP%22%3A%7B%22name%22%3A%22ui%22%2C%22version%22%3A%220.0.0.15eed0fd%22%7D%2C%22simple-auth-devise%22%3A%7B%22serverTokenEndpoint%22%3A%22/api/users/login%22%2C%22identificationAttributeName%22%3A%22email%22%7D%2C%22simple-auth%22%3A%7B%22authorizer%22%3A%22simple-auth-authorizer%3Adevise%22%2C%22routeAfterAuthentication%22%3A%22apps%22%7D%2C%22api%22%3A%22/api%22%2C%22contentSecurityPolicyHeader%22%3A%22Content-Security-Policy-Report-Only%22%2C%22contentSecurityPolicy%22%3A%7B%22default-src%22%3A%22%27none%27%22%2C%22script-src%22%3A%22%27self%27%22%2C%22font-src%22%3A%22%27self%27%22%2C%22connect-src%22%3A%22%27self%27%22%2C%22img-src%22%3A%22%27self%27%22%2C%22style-src%22%3A%22%27self%27%22%2C%22media-src%22%3A%22%27self%27%22%7D%2C%22exportApplicationGlobal%22%3Afalse%7D" />
10
+ <meta name="ui/config/environment" content="%7B%22modulePrefix%22%3A%22ui%22%2C%22environment%22%3A%22production%22%2C%22baseURL%22%3A%22/%22%2C%22apiPrefix%22%3A%22api%22%2C%22locationType%22%3A%22auto%22%2C%22EmberENV%22%3A%7B%22FEATURES%22%3A%7B%7D%7D%2C%22APP%22%3A%7B%22name%22%3A%22ui%22%2C%22version%22%3A%220.0.0.0ea928b1%22%7D%2C%22simple-auth-devise%22%3A%7B%22serverTokenEndpoint%22%3A%22/api/users/login%22%2C%22identificationAttributeName%22%3A%22email%22%7D%2C%22simple-auth%22%3A%7B%22authorizer%22%3A%22simple-auth-authorizer%3Adevise%22%2C%22routeAfterAuthentication%22%3A%22apps%22%7D%2C%22api%22%3A%22/api%22%2C%22contentSecurityPolicyHeader%22%3A%22Content-Security-Policy-Report-Only%22%2C%22contentSecurityPolicy%22%3A%7B%22default-src%22%3A%22%27none%27%22%2C%22script-src%22%3A%22%27self%27%22%2C%22font-src%22%3A%22%27self%27%22%2C%22connect-src%22%3A%22%27self%27%22%2C%22img-src%22%3A%22%27self%27%22%2C%22style-src%22%3A%22%27self%27%22%2C%22media-src%22%3A%22%27self%27%22%7D%2C%22exportApplicationGlobal%22%3Afalse%7D" />
11
11
 
12
12
  <script>window.__SnowmanIO_Version = '__VERSION__';</script>
13
13
 
@@ -162,7 +162,7 @@ html,body{ margin:0; padding:0; height:100%; width:100%; }
162
162
  progress.style.width = "250px";
163
163
  loadScript("assets/vendor-da99841a9c402e49b88240f3ca0cbcc8.js", function() {
164
164
  progress.style.width = "350px";
165
- loadScript("assets/ui-e60681073eda762840c78f39df424147.js", function() {
165
+ loadScript("assets/ui-5fa3663965a303fde850defb6aa6033d.js", function() {
166
166
  progress.style.width = "450px";
167
167
  });
168
168
  });
@@ -1,3 +1,3 @@
1
1
  module SnowmanIO
2
- VERSION = "0.4.0"
2
+ VERSION = "0.5.0"
3
3
  end
data/lib/snowman-io.rb CHANGED
@@ -28,6 +28,7 @@ require "snowman-io/loop/spiders"
28
28
  require "snowman-io/snow_mailer"
29
29
  require "snowman-io/migration"
30
30
  require "snowman-io/spider/internal_mongo"
31
+ require "snowman-io/spider/mps"
31
32
  require "snowman-io/models/concerns/tokenable"
32
33
  require "snowman-io/models/user"
33
34
  require "snowman-io/models/app"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: snowman-io
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexey Vakhov
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-09-10 00:00:00.000000000 Z
12
+ date: 2015-09-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sinatra
@@ -340,8 +340,9 @@ files:
340
340
  - lib/snowman-io/options.rb
341
341
  - lib/snowman-io/snow_mailer.rb
342
342
  - lib/snowman-io/spider/internal_mongo.rb
343
+ - lib/snowman-io/spider/mps.rb
343
344
  - lib/snowman-io/ui/AUTO_GENERATED_FOLDER
344
- - lib/snowman-io/ui/assets/ui-e60681073eda762840c78f39df424147.js
345
+ - lib/snowman-io/ui/assets/ui-5fa3663965a303fde850defb6aa6033d.js
345
346
  - lib/snowman-io/ui/assets/ui-f1928ea4a20689eb901266496c22f29b.css
346
347
  - lib/snowman-io/ui/assets/vendor-7edfd1432c1bbd806306d5583c75b1fc.css
347
348
  - lib/snowman-io/ui/assets/vendor-da99841a9c402e49b88240f3ca0cbcc8.js