// Compiled by ClojureScript 0.0-2138
goog.provide('lt.objs.intro');
goog.require('cljs.core');
goog.require('crate.core');
goog.require('crate.binding');
goog.require('lt.objs.app');
goog.require('lt.objs.cli');
goog.require('lt.util.dom');
goog.require('lt.objs.tabs');
goog.require('lt.util.dom');
goog.require('lt.objs.style');
goog.require('lt.objs.command');
goog.require('lt.objs.cli');
goog.require('lt.objs.app');
goog.require('lt.objs.style');
goog.require('lt.objs.deploy');
goog.require('crate.binding');
goog.require('lt.object');
goog.require('lt.object');
goog.require('lt.objs.tabs');
goog.require('crate.core');
goog.require('lt.objs.command');
goog.require('lt.objs.deploy');
lt.objs.intro.__BEH__on_close_destroy = (function __BEH__on_close_destroy(this$){return lt.object.raise.call(null,this$,new cljs.core.Keyword(null,"destroy","destroy",2571277164));
});
lt.object.behavior_STAR_.call(null,new cljs.core.Keyword("lt.objs.intro","on-close-destroy","lt.objs.intro/on-close-destroy",1201771465),new cljs.core.Keyword(null,"reaction","reaction",4441361819),lt.objs.intro.__BEH__on_close_destroy,new cljs.core.Keyword(null,"triggers","triggers",2516997421),new cljs.core.PersistentHashSet(null, new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"close","close",1108660586),null], null), null));
lt.objs.intro.__GT_lt_image = cljs.core.constantly.call(null,"img/lighttabletextdark.png");
lt.objs.intro.docs = (function docs(){var e__3325__auto__ = crate.core.html.call(null,new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"button","button",3931183780),"Light Table's online docs"], null));var seq__8944_8950 = cljs.core.seq.call(null,cljs.core.partition.call(null,2,new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"click","click",1108654330),(function (){return lt.objs.command.exec_BANG_.call(null,new cljs.core.Keyword(null,"show-docs","show-docs",3358896765));
})], null)));var chunk__8945_8951 = null;var count__8946_8952 = 0;var i__8947_8953 = 0;while(true){
if((i__8947_8953 < count__8946_8952))
{var vec__8948_8954 = cljs.core._nth.call(null,chunk__8945_8951,i__8947_8953);var ev__3326__auto___8955 = cljs.core.nth.call(null,vec__8948_8954,0,null);var func__3327__auto___8956 = cljs.core.nth.call(null,vec__8948_8954,1,null);lt.util.dom.on.call(null,e__3325__auto__,ev__3326__auto___8955,func__3327__auto___8956);
{
var G__8957 = seq__8944_8950;
var G__8958 = chunk__8945_8951;
var G__8959 = count__8946_8952;
var G__8960 = (i__8947_8953 + 1);
seq__8944_8950 = G__8957;
chunk__8945_8951 = G__8958;
count__8946_8952 = G__8959;
i__8947_8953 = G__8960;
continue;
}
} else
{var temp__4092__auto___8961 = cljs.core.seq.call(null,seq__8944_8950);if(temp__4092__auto___8961)
{var seq__8944_8962__$1 = temp__4092__auto___8961;if(cljs.core.chunked_seq_QMARK_.call(null,seq__8944_8962__$1))
{var c__4262__auto___8963 = cljs.core.chunk_first.call(null,seq__8944_8962__$1);{
var G__8964 = cljs.core.chunk_rest.call(null,seq__8944_8962__$1);
var G__8965 = c__4262__auto___8963;
var G__8966 = cljs.core.count.call(null,c__4262__auto___8963);
var G__8967 = 0;
seq__8944_8950 = G__8964;
chunk__8945_8951 = G__8965;
count__8946_8952 = G__8966;
i__8947_8953 = G__8967;
continue;
}
} else
{var vec__8949_8968 = cljs.core.first.call(null,seq__8944_8962__$1);var ev__3326__auto___8969 = cljs.core.nth.call(null,vec__8949_8968,0,null);var func__3327__auto___8970 = cljs.core.nth.call(null,vec__8949_8968,1,null);lt.util.dom.on.call(null,e__3325__auto__,ev__3326__auto___8969,func__3327__auto___8970);
{
var G__8971 = cljs.core.next.call(null,seq__8944_8962__$1);
var G__8972 = null;
var G__8973 = 0;
var G__8974 = 0;
seq__8944_8950 = G__8971;
chunk__8945_8951 = G__8972;
count__8946_8952 = G__8973;
i__8947_8953 = G__8974;
continue;
}
}
} else
{}
}
break;
}
return e__3325__auto__;
});
lt.objs.intro.reports = (function reports(){var e__3325__auto__ = crate.core.html.call(null,new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"button","button",3931183780),"GitHub"], null));var seq__8981_8987 = cljs.core.seq.call(null,cljs.core.partition.call(null,2,new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"click","click",1108654330),(function (){return lt.objs.command.exec_BANG_.call(null,new cljs.core.Keyword(null,"add-browser-tab","add-browser-tab",3663273910),"https://github.com/LightTable/LightTable/issues?state=open");
})], null)));var chunk__8982_8988 = null;var count__8983_8989 = 0;var i__8984_8990 = 0;while(true){
if((i__8984_8990 < count__8983_8989))
{var vec__8985_8991 = cljs.core._nth.call(null,chunk__8982_8988,i__8984_8990);var ev__3326__auto___8992 = cljs.core.nth.call(null,vec__8985_8991,0,null);var func__3327__auto___8993 = cljs.core.nth.call(null,vec__8985_8991,1,null);lt.util.dom.on.call(null,e__3325__auto__,ev__3326__auto___8992,func__3327__auto___8993);
{
var G__8994 = seq__8981_8987;
var G__8995 = chunk__8982_8988;
var G__8996 = count__8983_8989;
var G__8997 = (i__8984_8990 + 1);
seq__8981_8987 = G__8994;
chunk__8982_8988 = G__8995;
count__8983_8989 = G__8996;
i__8984_8990 = G__8997;
continue;
}
} else
{var temp__4092__auto___8998 = cljs.core.seq.call(null,seq__8981_8987);if(temp__4092__auto___8998)
{var seq__8981_8999__$1 = temp__4092__auto___8998;if(cljs.core.chunked_seq_QMARK_.call(null,seq__8981_8999__$1))
{var c__4262__auto___9000 = cljs.core.chunk_first.call(null,seq__8981_8999__$1);{
var G__9001 = cljs.core.chunk_rest.call(null,seq__8981_8999__$1);
var G__9002 = c__4262__auto___9000;
var G__9003 = cljs.core.count.call(null,c__4262__auto___9000);
var G__9004 = 0;
seq__8981_8987 = G__9001;
chunk__8982_8988 = G__9002;
count__8983_8989 = G__9003;
i__8984_8990 = G__9004;
continue;
}
} else
{var vec__8986_9005 = cljs.core.first.call(null,seq__8981_8999__$1);var ev__3326__auto___9006 = cljs.core.nth.call(null,vec__8986_9005,0,null);var func__3327__auto___9007 = cljs.core.nth.call(null,vec__8986_9005,1,null);lt.util.dom.on.call(null,e__3325__auto__,ev__3326__auto___9006,func__3327__auto___9007);
{
var G__9008 = cljs.core.next.call(null,seq__8981_8999__$1);
var G__9009 = null;
var G__9010 = 0;
var G__9011 = 0;
seq__8981_8987 = G__9008;
chunk__8982_8988 = G__9009;
count__8983_8989 = G__9010;
i__8984_8990 = G__9011;
continue;
}
}
} else
{}
}
break;
}
return e__3325__auto__;
});
lt.objs.intro.changelog = (function changelog(){var e__3325__auto__ = crate.core.html.call(null,new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"button","button",3931183780),"changelog"], null));var seq__9018_9024 = cljs.core.seq.call(null,cljs.core.partition.call(null,2,new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"click","click",1108654330),(function (){return lt.objs.command.exec_BANG_.call(null,new cljs.core.Keyword(null,"version","version",1365512266));
})], null)));var chunk__9019_9025 = null;var count__9020_9026 = 0;var i__9021_9027 = 0;while(true){
if((i__9021_9027 < count__9020_9026))
{var vec__9022_9028 = cljs.core._nth.call(null,chunk__9019_9025,i__9021_9027);var ev__3326__auto___9029 = cljs.core.nth.call(null,vec__9022_9028,0,null);var func__3327__auto___9030 = cljs.core.nth.call(null,vec__9022_9028,1,null);lt.util.dom.on.call(null,e__3325__auto__,ev__3326__auto___9029,func__3327__auto___9030);
{
var G__9031 = seq__9018_9024;
var G__9032 = chunk__9019_9025;
var G__9033 = count__9020_9026;
var G__9034 = (i__9021_9027 + 1);
seq__9018_9024 = G__9031;
chunk__9019_9025 = G__9032;
count__9020_9026 = G__9033;
i__9021_9027 = G__9034;
continue;
}
} else
{var temp__4092__auto___9035 = cljs.core.seq.call(null,seq__9018_9024);if(temp__4092__auto___9035)
{var seq__9018_9036__$1 = temp__4092__auto___9035;if(cljs.core.chunked_seq_QMARK_.call(null,seq__9018_9036__$1))
{var c__4262__auto___9037 = cljs.core.chunk_first.call(null,seq__9018_9036__$1);{
var G__9038 = cljs.core.chunk_rest.call(null,seq__9018_9036__$1);
var G__9039 = c__4262__auto___9037;
var G__9040 = cljs.core.count.call(null,c__4262__auto___9037);
var G__9041 = 0;
seq__9018_9024 = G__9038;
chunk__9019_9025 = G__9039;
count__9020_9026 = G__9040;
i__9021_9027 = G__9041;
continue;
}
} else
{var vec__9023_9042 = cljs.core.first.call(null,seq__9018_9036__$1);var ev__3326__auto___9043 = cljs.core.nth.call(null,vec__9023_9042,0,null);var func__3327__auto___9044 = cljs.core.nth.call(null,vec__9023_9042,1,null);lt.util.dom.on.call(null,e__3325__auto__,ev__3326__auto___9043,func__3327__auto___9044);
{
var G__9045 = cljs.core.next.call(null,seq__9018_9036__$1);
var G__9046 = null;
var G__9047 = 0;
var G__9048 = 0;
seq__9018_9024 = G__9045;
chunk__9019_9025 = G__9046;
count__9020_9026 = G__9047;
i__9021_9027 = G__9048;
continue;
}
}
} else
{}
}
break;
}
return e__3325__auto__;
});
lt.object.object_STAR_.call(null,new cljs.core.Keyword("lt.objs.intro","intro","lt.objs.intro/intro",1423877502),new cljs.core.Keyword(null,"tags","tags",1017456523),new cljs.core.PersistentHashSet(null, new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"intro","intro",1114266078),null], null), null),new cljs.core.Keyword(null,"behaviors","behaviors",607554515),new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword("lt.objs.intro","on-close-destroy","lt.objs.intro/on-close-destroy",1201771465)], null),new cljs.core.Keyword(null,"name","name",1017277949),"Welcome",new cljs.core.Keyword(null,"init","init",1017141378),(function (this$){return new cljs.core.PersistentVector(null, 4, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"div#intro","div#intro",1717177196),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"h1","h1",1013907515),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"img","img",1014008629),new cljs.core.PersistentArrayMap(null, 2, [new cljs.core.Keyword(null,"height","height",4087841945),40,new cljs.core.Keyword(null,"src","src",1014018390),crate.binding.bound.call(null,lt.objs.style.styles,lt.objs.intro.__GT_lt_image)], null)], null)], null),new cljs.core.PersistentVector(null, 6, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"p","p",1013904354),"Welcome to the latest version of Light Table. To see the full list of what's been added/changed, checkout the ",lt.objs.intro.changelog.call(null),".\n                          Some of the highlights include deeper Javascript support, inline browsers, and Python eval! If you're new, you might want to take a look at ",lt.objs.intro.docs.call(null)," to get started."], null),new cljs.core.PersistentVector(null, 4, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"p","p",1013904354),"If you run into any problems, report the issue on ",lt.objs.intro.reports.call(null),"!"], null)], null);
}));
lt.objs.intro.__BEH__show_intro = (function __BEH__show_intro(this$){if(lt.objs.cli.args.call(null))
{return null;
} else
{var intro = lt.object.create.call(null,new cljs.core.Keyword("lt.objs.intro","intro","lt.objs.intro/intro",1423877502));lt.util.dom.focus.call(null,lt.util.dom.$.call(null,new cljs.core.Keyword(null,"body","body",1016933652)));
lt.objs.tabs.add_BANG_.call(null,intro);
return lt.objs.tabs.active_BANG_.call(null,intro);
}
});
lt.object.behavior_STAR_.call(null,new cljs.core.Keyword("lt.objs.intro","show-intro","lt.objs.intro/show-intro",4028211886),new cljs.core.Keyword(null,"reaction","reaction",4441361819),lt.objs.intro.__BEH__show_intro,new cljs.core.Keyword(null,"desc","desc",1016984067),"App: Open the welcome screen when Light Table starts",new cljs.core.Keyword(null,"triggers","triggers",2516997421),new cljs.core.PersistentHashSet(null, new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"post-init","post-init",2970371471),null], null), null),new cljs.core.Keyword(null,"type","type",1017479852),new cljs.core.Keyword(null,"user","user",1017503549),new cljs.core.Keyword(null,"exclusive","exclusive",2700522000),new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword("lt.objs.intro","show-new-file","lt.objs.intro/show-new-file",4438418795)], null));
lt.objs.intro.__BEH__show_new_file = (function __BEH__show_new_file(this$){if(lt.objs.cli.args.call(null))
{return null;
} else
{return lt.objs.command.exec_BANG_.call(null,new cljs.core.Keyword(null,"new-file","new-file",2344641787));
}
});
lt.object.behavior_STAR_.call(null,new cljs.core.Keyword("lt.objs.intro","show-new-file","lt.objs.intro/show-new-file",4438418795),new cljs.core.Keyword(null,"reaction","reaction",4441361819),lt.objs.intro.__BEH__show_new_file,new cljs.core.Keyword(null,"desc","desc",1016984067),"App: Open a new file when Light Table starts",new cljs.core.Keyword(null,"triggers","triggers",2516997421),new cljs.core.PersistentHashSet(null, new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"post-init","post-init",2970371471),null], null), null),new cljs.core.Keyword(null,"type","type",1017479852),new cljs.core.Keyword(null,"user","user",1017503549),new cljs.core.Keyword(null,"exclusive","exclusive",2700522000),new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword("lt.objs.intro","show-intro","lt.objs.intro/show-intro",4028211886)], null));
