// 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__9768_9774 = 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__9769_9775 = null;var count__9770_9776 = 0;var i__9771_9777 = 0;while(true){
if((i__9771_9777 < count__9770_9776))
{var vec__9772_9778 = cljs.core._nth.call(null,chunk__9769_9775,i__9771_9777);var ev__3326__auto___9779 = cljs.core.nth.call(null,vec__9772_9778,0,null);var func__3327__auto___9780 = cljs.core.nth.call(null,vec__9772_9778,1,null);lt.util.dom.on.call(null,e__3325__auto__,ev__3326__auto___9779,func__3327__auto___9780);
{
var G__9781 = seq__9768_9774;
var G__9782 = chunk__9769_9775;
var G__9783 = count__9770_9776;
var G__9784 = (i__9771_9777 + 1);
seq__9768_9774 = G__9781;
chunk__9769_9775 = G__9782;
count__9770_9776 = G__9783;
i__9771_9777 = G__9784;
continue;
}
} else
{var temp__4092__auto___9785 = cljs.core.seq.call(null,seq__9768_9774);if(temp__4092__auto___9785)
{var seq__9768_9786__$1 = temp__4092__auto___9785;if(cljs.core.chunked_seq_QMARK_.call(null,seq__9768_9786__$1))
{var c__4262__auto___9787 = cljs.core.chunk_first.call(null,seq__9768_9786__$1);{
var G__9788 = cljs.core.chunk_rest.call(null,seq__9768_9786__$1);
var G__9789 = c__4262__auto___9787;
var G__9790 = cljs.core.count.call(null,c__4262__auto___9787);
var G__9791 = 0;
seq__9768_9774 = G__9788;
chunk__9769_9775 = G__9789;
count__9770_9776 = G__9790;
i__9771_9777 = G__9791;
continue;
}
} else
{var vec__9773_9792 = cljs.core.first.call(null,seq__9768_9786__$1);var ev__3326__auto___9793 = cljs.core.nth.call(null,vec__9773_9792,0,null);var func__3327__auto___9794 = cljs.core.nth.call(null,vec__9773_9792,1,null);lt.util.dom.on.call(null,e__3325__auto__,ev__3326__auto___9793,func__3327__auto___9794);
{
var G__9795 = cljs.core.next.call(null,seq__9768_9786__$1);
var G__9796 = null;
var G__9797 = 0;
var G__9798 = 0;
seq__9768_9774 = G__9795;
chunk__9769_9775 = G__9796;
count__9770_9776 = G__9797;
i__9771_9777 = G__9798;
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__9805_9811 = 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__9806_9812 = null;var count__9807_9813 = 0;var i__9808_9814 = 0;while(true){
if((i__9808_9814 < count__9807_9813))
{var vec__9809_9815 = cljs.core._nth.call(null,chunk__9806_9812,i__9808_9814);var ev__3326__auto___9816 = cljs.core.nth.call(null,vec__9809_9815,0,null);var func__3327__auto___9817 = cljs.core.nth.call(null,vec__9809_9815,1,null);lt.util.dom.on.call(null,e__3325__auto__,ev__3326__auto___9816,func__3327__auto___9817);
{
var G__9818 = seq__9805_9811;
var G__9819 = chunk__9806_9812;
var G__9820 = count__9807_9813;
var G__9821 = (i__9808_9814 + 1);
seq__9805_9811 = G__9818;
chunk__9806_9812 = G__9819;
count__9807_9813 = G__9820;
i__9808_9814 = G__9821;
continue;
}
} else
{var temp__4092__auto___9822 = cljs.core.seq.call(null,seq__9805_9811);if(temp__4092__auto___9822)
{var seq__9805_9823__$1 = temp__4092__auto___9822;if(cljs.core.chunked_seq_QMARK_.call(null,seq__9805_9823__$1))
{var c__4262__auto___9824 = cljs.core.chunk_first.call(null,seq__9805_9823__$1);{
var G__9825 = cljs.core.chunk_rest.call(null,seq__9805_9823__$1);
var G__9826 = c__4262__auto___9824;
var G__9827 = cljs.core.count.call(null,c__4262__auto___9824);
var G__9828 = 0;
seq__9805_9811 = G__9825;
chunk__9806_9812 = G__9826;
count__9807_9813 = G__9827;
i__9808_9814 = G__9828;
continue;
}
} else
{var vec__9810_9829 = cljs.core.first.call(null,seq__9805_9823__$1);var ev__3326__auto___9830 = cljs.core.nth.call(null,vec__9810_9829,0,null);var func__3327__auto___9831 = cljs.core.nth.call(null,vec__9810_9829,1,null);lt.util.dom.on.call(null,e__3325__auto__,ev__3326__auto___9830,func__3327__auto___9831);
{
var G__9832 = cljs.core.next.call(null,seq__9805_9823__$1);
var G__9833 = null;
var G__9834 = 0;
var G__9835 = 0;
seq__9805_9811 = G__9832;
chunk__9806_9812 = G__9833;
count__9807_9813 = G__9834;
i__9808_9814 = G__9835;
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__9842_9848 = 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__9843_9849 = null;var count__9844_9850 = 0;var i__9845_9851 = 0;while(true){
if((i__9845_9851 < count__9844_9850))
{var vec__9846_9852 = cljs.core._nth.call(null,chunk__9843_9849,i__9845_9851);var ev__3326__auto___9853 = cljs.core.nth.call(null,vec__9846_9852,0,null);var func__3327__auto___9854 = cljs.core.nth.call(null,vec__9846_9852,1,null);lt.util.dom.on.call(null,e__3325__auto__,ev__3326__auto___9853,func__3327__auto___9854);
{
var G__9855 = seq__9842_9848;
var G__9856 = chunk__9843_9849;
var G__9857 = count__9844_9850;
var G__9858 = (i__9845_9851 + 1);
seq__9842_9848 = G__9855;
chunk__9843_9849 = G__9856;
count__9844_9850 = G__9857;
i__9845_9851 = G__9858;
continue;
}
} else
{var temp__4092__auto___9859 = cljs.core.seq.call(null,seq__9842_9848);if(temp__4092__auto___9859)
{var seq__9842_9860__$1 = temp__4092__auto___9859;if(cljs.core.chunked_seq_QMARK_.call(null,seq__9842_9860__$1))
{var c__4262__auto___9861 = cljs.core.chunk_first.call(null,seq__9842_9860__$1);{
var G__9862 = cljs.core.chunk_rest.call(null,seq__9842_9860__$1);
var G__9863 = c__4262__auto___9861;
var G__9864 = cljs.core.count.call(null,c__4262__auto___9861);
var G__9865 = 0;
seq__9842_9848 = G__9862;
chunk__9843_9849 = G__9863;
count__9844_9850 = G__9864;
i__9845_9851 = G__9865;
continue;
}
} else
{var vec__9847_9866 = cljs.core.first.call(null,seq__9842_9860__$1);var ev__3326__auto___9867 = cljs.core.nth.call(null,vec__9847_9866,0,null);var func__3327__auto___9868 = cljs.core.nth.call(null,vec__9847_9866,1,null);lt.util.dom.on.call(null,e__3325__auto__,ev__3326__auto___9867,func__3327__auto___9868);
{
var G__9869 = cljs.core.next.call(null,seq__9842_9860__$1);
var G__9870 = null;
var G__9871 = 0;
var G__9872 = 0;
seq__9842_9848 = G__9869;
chunk__9843_9849 = G__9870;
count__9844_9850 = G__9871;
i__9845_9851 = G__9872;
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));
