// Compiled by ClojureScript 1.10.520 {}
goog.provide('weathergen.ui.grids');
goog.require('cljs.core');
goog.require('garden.core');
goog.require('garden.selectors');
goog.require('hoplon.core');
goog.require('hoplon.svg');
goog.require('javelin.core');
goog.require('rum.core');
goog.require('taoensso.timbre');
goog.require('weathergen.help');
goog.require('weathergen.ui.buttons');
goog.require('weathergen.ui.common');
/**
 * Creates a master-detail grid view. TODO: explain options.
 * @param {...*} var_args
 */
weathergen.ui.grids.master_detail = (function() { 
var weathergen$ui$grids$master_detail__delegate = function (args__30233__auto__){
var vec__35314 = hoplon.core.parse_args.call(null,args__30233__auto__);
var attrs = cljs.core.nth.call(null,vec__35314,(0),null);
var _ = cljs.core.nth.call(null,vec__35314,(1),null);
var map__35317 = attrs;
var map__35317__$1 = (((((!((map__35317 == null))))?(((((map__35317.cljs$lang$protocol_mask$partition0$ & (64))) || ((cljs.core.PROTOCOL_SENTINEL === map__35317.cljs$core$ISeq$))))?true:false):false))?cljs.core.apply.call(null,cljs.core.hash_map,map__35317):map__35317);
var data = cljs.core.get.call(null,map__35317__$1,new cljs.core.Keyword(null,"data","data",-232669377));
var detail = cljs.core.get.call(null,map__35317__$1,new cljs.core.Keyword(null,"detail","detail",-1545345025));
var columns = cljs.core.get.call(null,map__35317__$1,new cljs.core.Keyword(null,"columns","columns",1998437288));
var formatter = cljs.core.get.call(null,map__35317__$1,new cljs.core.Keyword(null,"formatter","formatter",-483008823));
var options = cljs.core.get.call(null,map__35317__$1,new cljs.core.Keyword(null,"options","options",99638489));
return hoplon.core.div.call(null,cljs.core.dissoc.call(null,attrs,new cljs.core.Keyword(null,"data","data",-232669377),new cljs.core.Keyword(null,"detail","detail",-1545345025),new cljs.core.Keyword(null,"columns","columns",1998437288),new cljs.core.Keyword(null,"formatter","formatter",-483008823),new cljs.core.Keyword(null,"options","options",99638489)),(function (){var data_STAR_ = javelin.core.formula.call(null,((function (map__35317,map__35317__$1,data,detail,columns,formatter,options,vec__35314,attrs,_){
return (function (G__35319){
return G__35319;
});})(map__35317,map__35317__$1,data,detail,columns,formatter,options,vec__35314,attrs,_))
).call(null,data);
var columns_STAR_ = javelin.core.formula.call(null,((function (data_STAR_,map__35317,map__35317__$1,data,detail,columns,formatter,options,vec__35314,attrs,_){
return (function (G__35320){
return G__35320;
});})(data_STAR_,map__35317,map__35317__$1,data,detail,columns,formatter,options,vec__35314,attrs,_))
).call(null,columns);
var options_STAR_ = javelin.core.formula.call(null,((function (data_STAR_,columns_STAR_,map__35317,map__35317__$1,data,detail,columns,formatter,options,vec__35314,attrs,_){
return (function (G__35321){
return G__35321;
});})(data_STAR_,columns_STAR_,map__35317,map__35317__$1,data,detail,columns,formatter,options,vec__35314,attrs,_))
).call(null,options);
var td_STAR_ = ((function (data_STAR_,columns_STAR_,options_STAR_,map__35317,map__35317__$1,data,detail,columns,formatter,options,vec__35314,attrs,_){
return (function() { 
var G__35354__delegate = function (args){
return cljs.core.apply.call(null,hoplon.core.td,new cljs.core.Keyword(null,"css","css",1135045163),new cljs.core.PersistentArrayMap(null, 2, [new cljs.core.Keyword(null,"border","border",1444987323),"solid 1px #eee",new cljs.core.Keyword(null,"padding","padding",1660304693),"0 2px 0 2px"], null),args);
};
var G__35354 = function (var_args){
var args = null;
if (arguments.length > 0) {
var G__35355__i = 0, G__35355__a = new Array(arguments.length -  0);
while (G__35355__i < G__35355__a.length) {G__35355__a[G__35355__i] = arguments[G__35355__i + 0]; ++G__35355__i;}
  args = new cljs.core.IndexedSeq(G__35355__a,0,null);
} 
return G__35354__delegate.call(this,args);};
G__35354.cljs$lang$maxFixedArity = 0;
G__35354.cljs$lang$applyTo = (function (arglist__35356){
var args = cljs.core.seq(arglist__35356);
return G__35354__delegate(args);
});
G__35354.cljs$core$IFn$_invoke$arity$variadic = G__35354__delegate;
return G__35354;
})()
;})(data_STAR_,columns_STAR_,options_STAR_,map__35317,map__35317__$1,data,detail,columns,formatter,options,vec__35314,attrs,_))
;
return hoplon.core.table.call(null,new cljs.core.Keyword(null,"css","css",1135045163),new cljs.core.PersistentArrayMap(null, 3, [new cljs.core.Keyword(null,"background","background",-863952629),"white",new cljs.core.Keyword(null,"border-collapse","border-collapse",919100239),"collapse",new cljs.core.Keyword(null,"outline","outline",793464534),"solid 1px #ccc"], null),hoplon.core.thead.call(null,hoplon.core.tr.call(null,new cljs.core.Keyword(null,"css","css",1135045163),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"background","background",-863952629),"linear-gradient(to bottom, white, white 33%, #eee 66%)"], null),javelin.core.formula.call(null,((function (data_STAR_,columns_STAR_,options_STAR_,td_STAR_,map__35317,map__35317__$1,data,detail,columns,formatter,options,vec__35314,attrs,_){
return (function (columns_STAR___$1){
var iter__4523__auto__ = ((function (data_STAR_,columns_STAR_,options_STAR_,td_STAR_,map__35317,map__35317__$1,data,detail,columns,formatter,options,vec__35314,attrs,_){
return (function weathergen$ui$grids$master_detail_$_iter__35322(s__35323){
return (new cljs.core.LazySeq(null,((function (data_STAR_,columns_STAR_,options_STAR_,td_STAR_,map__35317,map__35317__$1,data,detail,columns,formatter,options,vec__35314,attrs,_){
return (function (){
var s__35323__$1 = s__35323;
while(true){
var temp__5720__auto__ = cljs.core.seq.call(null,s__35323__$1);
if(temp__5720__auto__){
var s__35323__$2 = temp__5720__auto__;
if(cljs.core.chunked_seq_QMARK_.call(null,s__35323__$2)){
var c__4521__auto__ = cljs.core.chunk_first.call(null,s__35323__$2);
var size__4522__auto__ = cljs.core.count.call(null,c__4521__auto__);
var b__35325 = cljs.core.chunk_buffer.call(null,size__4522__auto__);
if((function (){var i__35324 = (0);
while(true){
if((i__35324 < size__4522__auto__)){
var column = cljs.core._nth.call(null,c__4521__auto__,i__35324);
cljs.core.chunk_append.call(null,b__35325,hoplon.core.td.call(null,new cljs.core.Keyword(null,"name","name",1843675177).cljs$core$IFn$_invoke$arity$1(column)));

var G__35357 = (i__35324 + (1));
i__35324 = G__35357;
continue;
} else {
return true;
}
break;
}
})()){
return cljs.core.chunk_cons.call(null,cljs.core.chunk.call(null,b__35325),weathergen$ui$grids$master_detail_$_iter__35322.call(null,cljs.core.chunk_rest.call(null,s__35323__$2)));
} else {
return cljs.core.chunk_cons.call(null,cljs.core.chunk.call(null,b__35325),null);
}
} else {
var column = cljs.core.first.call(null,s__35323__$2);
return cljs.core.cons.call(null,hoplon.core.td.call(null,new cljs.core.Keyword(null,"name","name",1843675177).cljs$core$IFn$_invoke$arity$1(column)),weathergen$ui$grids$master_detail_$_iter__35322.call(null,cljs.core.rest.call(null,s__35323__$2)));
}
} else {
return null;
}
break;
}
});})(data_STAR_,columns_STAR_,options_STAR_,td_STAR_,map__35317,map__35317__$1,data,detail,columns,formatter,options,vec__35314,attrs,_))
,null,null));
});})(data_STAR_,columns_STAR_,options_STAR_,td_STAR_,map__35317,map__35317__$1,data,detail,columns,formatter,options,vec__35314,attrs,_))
;
return iter__4523__auto__.call(null,columns_STAR___$1);
});})(data_STAR_,columns_STAR_,options_STAR_,td_STAR_,map__35317,map__35317__$1,data,detail,columns,formatter,options,vec__35314,attrs,_))
).call(null,columns_STAR_))),javelin.core.formula.call(null,((function (data_STAR_,columns_STAR_,options_STAR_,td_STAR_,map__35317,map__35317__$1,data,detail,columns,formatter,options,vec__35314,attrs,_){
return (function (data_STAR___$1,columns_STAR___$1){
var iter__4523__auto__ = ((function (data_STAR_,columns_STAR_,options_STAR_,td_STAR_,map__35317,map__35317__$1,data,detail,columns,formatter,options,vec__35314,attrs,_){
return (function weathergen$ui$grids$master_detail_$_iter__35326(s__35327){
return (new cljs.core.LazySeq(null,((function (data_STAR_,columns_STAR_,options_STAR_,td_STAR_,map__35317,map__35317__$1,data,detail,columns,formatter,options,vec__35314,attrs,_){
return (function (){
var s__35327__$1 = s__35327;
while(true){
var temp__5720__auto__ = cljs.core.seq.call(null,s__35327__$1);
if(temp__5720__auto__){
var s__35327__$2 = temp__5720__auto__;
if(cljs.core.chunked_seq_QMARK_.call(null,s__35327__$2)){
var c__4521__auto__ = cljs.core.chunk_first.call(null,s__35327__$2);
var size__4522__auto__ = cljs.core.count.call(null,c__4521__auto__);
var b__35329 = cljs.core.chunk_buffer.call(null,size__4522__auto__);
if((function (){var i__35328 = (0);
while(true){
if((i__35328 < size__4522__auto__)){
var item = cljs.core._nth.call(null,c__4521__auto__,i__35328);
cljs.core.chunk_append.call(null,b__35329,(function (){var expanded_QMARK_ = javelin.core.cell.call(null,true);
var subitems = detail.call(null,item);
var spacer_width = "12px";
var spacer_margin = "3px";
var spacing = new cljs.core.PersistentArrayMap(null, 3, [new cljs.core.Keyword(null,"width","width",-384071477),spacer_width,new cljs.core.Keyword(null,"margin-right","margin-right",809689658),spacer_margin,new cljs.core.Keyword(null,"display","display",242065432),"inline-block"], null);
var spacer = ((function (i__35328,expanded_QMARK_,subitems,spacer_width,spacer_margin,spacing,item,c__4521__auto__,size__4522__auto__,b__35329,s__35327__$2,temp__5720__auto__,data_STAR_,columns_STAR_,options_STAR_,td_STAR_,map__35317,map__35317__$1,data,detail,columns,formatter,options,vec__35314,attrs,_){
return (function (){
return hoplon.core.span.call(null,new cljs.core.Keyword(null,"css","css",1135045163),spacing);
});})(i__35328,expanded_QMARK_,subitems,spacer_width,spacer_margin,spacing,item,c__4521__auto__,size__4522__auto__,b__35329,s__35327__$2,temp__5720__auto__,data_STAR_,columns_STAR_,options_STAR_,td_STAR_,map__35317,map__35317__$1,data,detail,columns,formatter,options,vec__35314,attrs,_))
;
return new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [hoplon.core.tbody.call(null,hoplon.core.tr.call(null,td_STAR_.call(null,new cljs.core.Keyword(null,"colspan","colspan",-1512420934),cljs.core.count.call(null,columns_STAR___$1),(((cljs.core.count.call(null,subitems) === (0)))?spacer.call(null):hoplon.core.div.call(null,new cljs.core.Keyword(null,"css","css",1135045163),cljs.core.PersistentHashMap.fromArrays([new cljs.core.Keyword(null,"border-style","border-style",-485574304),new cljs.core.Keyword(null,"text-anchor","text-anchor",585613696),new cljs.core.Keyword(null,"line-height","line-height",1870784992),new cljs.core.Keyword(null,"text-align","text-align",1786091845),new cljs.core.Keyword(null,"vertical-align","vertical-align",651007333),new cljs.core.Keyword(null,"font-size","font-size",-1847940346),new cljs.core.Keyword(null,"font-weight","font-weight",2085804583),new cljs.core.Keyword(null,"width","width",-384071477),new cljs.core.Keyword(null,"border-width","border-width",-1512605390),new cljs.core.Keyword(null,"border-color","border-color",-2059162761),new cljs.core.Keyword(null,"display","display",242065432),new cljs.core.Keyword(null,"margin-right","margin-right",809689658),new cljs.core.Keyword(null,"border-radius","border-radius",419594011),new cljs.core.Keyword(null,"height","height",1025178622)],["solid","6px","12px","center","middle","120%","bold",spacer_width,"1px","black","inline-block",spacer_margin,"50%","12px"]),new cljs.core.Keyword(null,"click","click",1912301393),((function (i__35328,expanded_QMARK_,subitems,spacer_width,spacer_margin,spacing,spacer,item,c__4521__auto__,size__4522__auto__,b__35329,s__35327__$2,temp__5720__auto__,data_STAR_,columns_STAR_,options_STAR_,td_STAR_,map__35317,map__35317__$1,data,detail,columns,formatter,options,vec__35314,attrs,_){
return (function (){
return cljs.core.swap_BANG_.call(null,expanded_QMARK_,cljs.core.not);
});})(i__35328,expanded_QMARK_,subitems,spacer_width,spacer_margin,spacing,spacer,item,c__4521__auto__,size__4522__auto__,b__35329,s__35327__$2,temp__5720__auto__,data_STAR_,columns_STAR_,options_STAR_,td_STAR_,map__35317,map__35317__$1,data,detail,columns,formatter,options,vec__35314,attrs,_))
,(function (){var con__30287__auto__ = (new cljs.core.Delay(((function (i__35328,expanded_QMARK_,subitems,spacer_width,spacer_margin,spacing,spacer,item,c__4521__auto__,size__4522__auto__,b__35329,s__35327__$2,temp__5720__auto__,data_STAR_,columns_STAR_,options_STAR_,td_STAR_,map__35317,map__35317__$1,data,detail,columns,formatter,options,vec__35314,attrs,_){
return (function (){
return "-";
});})(i__35328,expanded_QMARK_,subitems,spacer_width,spacer_margin,spacing,spacer,item,c__4521__auto__,size__4522__auto__,b__35329,s__35327__$2,temp__5720__auto__,data_STAR_,columns_STAR_,options_STAR_,td_STAR_,map__35317,map__35317__$1,data,detail,columns,formatter,options,vec__35314,attrs,_))
,null));
var alt__30288__auto__ = (new cljs.core.Delay(((function (i__35328,con__30287__auto__,expanded_QMARK_,subitems,spacer_width,spacer_margin,spacing,spacer,item,c__4521__auto__,size__4522__auto__,b__35329,s__35327__$2,temp__5720__auto__,data_STAR_,columns_STAR_,options_STAR_,td_STAR_,map__35317,map__35317__$1,data,detail,columns,formatter,options,vec__35314,attrs,_){
return (function (){
return "+";
});})(i__35328,con__30287__auto__,expanded_QMARK_,subitems,spacer_width,spacer_margin,spacing,spacer,item,c__4521__auto__,size__4522__auto__,b__35329,s__35327__$2,temp__5720__auto__,data_STAR_,columns_STAR_,options_STAR_,td_STAR_,map__35317,map__35317__$1,data,detail,columns,formatter,options,vec__35314,attrs,_))
,null));
var tpl__30289__auto__ = ((function (i__35328,con__30287__auto__,alt__30288__auto__,expanded_QMARK_,subitems,spacer_width,spacer_margin,spacing,spacer,item,c__4521__auto__,size__4522__auto__,b__35329,s__35327__$2,temp__5720__auto__,data_STAR_,columns_STAR_,options_STAR_,td_STAR_,map__35317,map__35317__$1,data,detail,columns,formatter,options,vec__35314,attrs,_){
return (function (p__30290__auto__){
return cljs.core.deref.call(null,(function (){var or__4131__auto__ = (cljs.core.truth_(p__30290__auto__)?con__30287__auto__:alt__30288__auto__);
if(cljs.core.truth_(or__4131__auto__)){
return or__4131__auto__;
} else {
return cljs.core.atom.call(null,null);
}
})());
});})(i__35328,con__30287__auto__,alt__30288__auto__,expanded_QMARK_,subitems,spacer_width,spacer_margin,spacing,spacer,item,c__4521__auto__,size__4522__auto__,b__35329,s__35327__$2,temp__5720__auto__,data_STAR_,columns_STAR_,options_STAR_,td_STAR_,map__35317,map__35317__$1,data,detail,columns,formatter,options,vec__35314,attrs,_))
;
return javelin.core.formula.call(null,tpl__30289__auto__).call(null,expanded_QMARK_);
})())),formatter.call(null,item)))),hoplon.core.tbody.call(null,(function (){var iter__4523__auto__ = ((function (i__35328,expanded_QMARK_,subitems,spacer_width,spacer_margin,spacing,spacer,item,c__4521__auto__,size__4522__auto__,b__35329,s__35327__$2,temp__5720__auto__,data_STAR_,columns_STAR_,options_STAR_,td_STAR_,map__35317,map__35317__$1,data,detail,columns,formatter,options,vec__35314,attrs,_){
return (function weathergen$ui$grids$master_detail_$_iter__35326_$_iter__35330(s__35331){
return (new cljs.core.LazySeq(null,((function (i__35328,expanded_QMARK_,subitems,spacer_width,spacer_margin,spacing,spacer,item,c__4521__auto__,size__4522__auto__,b__35329,s__35327__$2,temp__5720__auto__,data_STAR_,columns_STAR_,options_STAR_,td_STAR_,map__35317,map__35317__$1,data,detail,columns,formatter,options,vec__35314,attrs,_){
return (function (){
var s__35331__$1 = s__35331;
while(true){
var temp__5720__auto____$1 = cljs.core.seq.call(null,s__35331__$1);
if(temp__5720__auto____$1){
var s__35331__$2 = temp__5720__auto____$1;
if(cljs.core.chunked_seq_QMARK_.call(null,s__35331__$2)){
var c__4521__auto____$1 = cljs.core.chunk_first.call(null,s__35331__$2);
var size__4522__auto____$1 = cljs.core.count.call(null,c__4521__auto____$1);
var b__35333 = cljs.core.chunk_buffer.call(null,size__4522__auto____$1);
if((function (){var i__35332 = (0);
while(true){
if((i__35332 < size__4522__auto____$1)){
var subitem = cljs.core._nth.call(null,c__4521__auto____$1,i__35332);
cljs.core.chunk_append.call(null,b__35333,hoplon.core.tr.call(null,new cljs.core.Keyword(null,"fade-toggle","fade-toggle",-1468421852),expanded_QMARK_,(function (){var formatter__$1 = new cljs.core.Keyword(null,"formatter","formatter",-483008823).cljs$core$IFn$_invoke$arity$1(cljs.core.first.call(null,columns_STAR___$1));
return td_STAR_.call(null,spacer.call(null),spacer.call(null),formatter__$1.call(null,subitem));
})(),(function (){var iter__4523__auto__ = ((function (i__35332,i__35328,subitem,c__4521__auto____$1,size__4522__auto____$1,b__35333,s__35331__$2,temp__5720__auto____$1,expanded_QMARK_,subitems,spacer_width,spacer_margin,spacing,spacer,item,c__4521__auto__,size__4522__auto__,b__35329,s__35327__$2,temp__5720__auto__,data_STAR_,columns_STAR_,options_STAR_,td_STAR_,map__35317,map__35317__$1,data,detail,columns,formatter,options,vec__35314,attrs,_){
return (function weathergen$ui$grids$master_detail_$_iter__35326_$_iter__35330_$_iter__35334(s__35335){
return (new cljs.core.LazySeq(null,((function (i__35332,i__35328,subitem,c__4521__auto____$1,size__4522__auto____$1,b__35333,s__35331__$2,temp__5720__auto____$1,expanded_QMARK_,subitems,spacer_width,spacer_margin,spacing,spacer,item,c__4521__auto__,size__4522__auto__,b__35329,s__35327__$2,temp__5720__auto__,data_STAR_,columns_STAR_,options_STAR_,td_STAR_,map__35317,map__35317__$1,data,detail,columns,formatter,options,vec__35314,attrs,_){
return (function (){
var s__35335__$1 = s__35335;
while(true){
var temp__5720__auto____$2 = cljs.core.seq.call(null,s__35335__$1);
if(temp__5720__auto____$2){
var s__35335__$2 = temp__5720__auto____$2;
if(cljs.core.chunked_seq_QMARK_.call(null,s__35335__$2)){
var c__4521__auto____$2 = cljs.core.chunk_first.call(null,s__35335__$2);
var size__4522__auto____$2 = cljs.core.count.call(null,c__4521__auto____$2);
var b__35337 = cljs.core.chunk_buffer.call(null,size__4522__auto____$2);
if((function (){var i__35336 = (0);
while(true){
if((i__35336 < size__4522__auto____$2)){
var column = cljs.core._nth.call(null,c__4521__auto____$2,i__35336);
cljs.core.chunk_append.call(null,b__35337,td_STAR_.call(null,(function (){var formatter__$1 = new cljs.core.Keyword(null,"formatter","formatter",-483008823).cljs$core$IFn$_invoke$arity$1(column);
return formatter__$1.call(null,subitem);
})()));

var G__35358 = (i__35336 + (1));
i__35336 = G__35358;
continue;
} else {
return true;
}
break;
}
})()){
return cljs.core.chunk_cons.call(null,cljs.core.chunk.call(null,b__35337),weathergen$ui$grids$master_detail_$_iter__35326_$_iter__35330_$_iter__35334.call(null,cljs.core.chunk_rest.call(null,s__35335__$2)));
} else {
return cljs.core.chunk_cons.call(null,cljs.core.chunk.call(null,b__35337),null);
}
} else {
var column = cljs.core.first.call(null,s__35335__$2);
return cljs.core.cons.call(null,td_STAR_.call(null,(function (){var formatter__$1 = new cljs.core.Keyword(null,"formatter","formatter",-483008823).cljs$core$IFn$_invoke$arity$1(column);
return formatter__$1.call(null,subitem);
})()),weathergen$ui$grids$master_detail_$_iter__35326_$_iter__35330_$_iter__35334.call(null,cljs.core.rest.call(null,s__35335__$2)));
}
} else {
return null;
}
break;
}
});})(i__35332,i__35328,subitem,c__4521__auto____$1,size__4522__auto____$1,b__35333,s__35331__$2,temp__5720__auto____$1,expanded_QMARK_,subitems,spacer_width,spacer_margin,spacing,spacer,item,c__4521__auto__,size__4522__auto__,b__35329,s__35327__$2,temp__5720__auto__,data_STAR_,columns_STAR_,options_STAR_,td_STAR_,map__35317,map__35317__$1,data,detail,columns,formatter,options,vec__35314,attrs,_))
,null,null));
});})(i__35332,i__35328,subitem,c__4521__auto____$1,size__4522__auto____$1,b__35333,s__35331__$2,temp__5720__auto____$1,expanded_QMARK_,subitems,spacer_width,spacer_margin,spacing,spacer,item,c__4521__auto__,size__4522__auto__,b__35329,s__35327__$2,temp__5720__auto__,data_STAR_,columns_STAR_,options_STAR_,td_STAR_,map__35317,map__35317__$1,data,detail,columns,formatter,options,vec__35314,attrs,_))
;
return iter__4523__auto__.call(null,cljs.core.drop.call(null,(1),columns_STAR___$1));
})()));

var G__35359 = (i__35332 + (1));
i__35332 = G__35359;
continue;
} else {
return true;
}
break;
}
})()){
return cljs.core.chunk_cons.call(null,cljs.core.chunk.call(null,b__35333),weathergen$ui$grids$master_detail_$_iter__35326_$_iter__35330.call(null,cljs.core.chunk_rest.call(null,s__35331__$2)));
} else {
return cljs.core.chunk_cons.call(null,cljs.core.chunk.call(null,b__35333),null);
}
} else {
var subitem = cljs.core.first.call(null,s__35331__$2);
return cljs.core.cons.call(null,hoplon.core.tr.call(null,new cljs.core.Keyword(null,"fade-toggle","fade-toggle",-1468421852),expanded_QMARK_,(function (){var formatter__$1 = new cljs.core.Keyword(null,"formatter","formatter",-483008823).cljs$core$IFn$_invoke$arity$1(cljs.core.first.call(null,columns_STAR___$1));
return td_STAR_.call(null,spacer.call(null),spacer.call(null),formatter__$1.call(null,subitem));
})(),(function (){var iter__4523__auto__ = ((function (i__35328,subitem,s__35331__$2,temp__5720__auto____$1,expanded_QMARK_,subitems,spacer_width,spacer_margin,spacing,spacer,item,c__4521__auto__,size__4522__auto__,b__35329,s__35327__$2,temp__5720__auto__,data_STAR_,columns_STAR_,options_STAR_,td_STAR_,map__35317,map__35317__$1,data,detail,columns,formatter,options,vec__35314,attrs,_){
return (function weathergen$ui$grids$master_detail_$_iter__35326_$_iter__35330_$_iter__35338(s__35339){
return (new cljs.core.LazySeq(null,((function (i__35328,subitem,s__35331__$2,temp__5720__auto____$1,expanded_QMARK_,subitems,spacer_width,spacer_margin,spacing,spacer,item,c__4521__auto__,size__4522__auto__,b__35329,s__35327__$2,temp__5720__auto__,data_STAR_,columns_STAR_,options_STAR_,td_STAR_,map__35317,map__35317__$1,data,detail,columns,formatter,options,vec__35314,attrs,_){
return (function (){
var s__35339__$1 = s__35339;
while(true){
var temp__5720__auto____$2 = cljs.core.seq.call(null,s__35339__$1);
if(temp__5720__auto____$2){
var s__35339__$2 = temp__5720__auto____$2;
if(cljs.core.chunked_seq_QMARK_.call(null,s__35339__$2)){
var c__4521__auto____$1 = cljs.core.chunk_first.call(null,s__35339__$2);
var size__4522__auto____$1 = cljs.core.count.call(null,c__4521__auto____$1);
var b__35341 = cljs.core.chunk_buffer.call(null,size__4522__auto____$1);
if((function (){var i__35340 = (0);
while(true){
if((i__35340 < size__4522__auto____$1)){
var column = cljs.core._nth.call(null,c__4521__auto____$1,i__35340);
cljs.core.chunk_append.call(null,b__35341,td_STAR_.call(null,(function (){var formatter__$1 = new cljs.core.Keyword(null,"formatter","formatter",-483008823).cljs$core$IFn$_invoke$arity$1(column);
return formatter__$1.call(null,subitem);
})()));

var G__35360 = (i__35340 + (1));
i__35340 = G__35360;
continue;
} else {
return true;
}
break;
}
})()){
return cljs.core.chunk_cons.call(null,cljs.core.chunk.call(null,b__35341),weathergen$ui$grids$master_detail_$_iter__35326_$_iter__35330_$_iter__35338.call(null,cljs.core.chunk_rest.call(null,s__35339__$2)));
} else {
return cljs.core.chunk_cons.call(null,cljs.core.chunk.call(null,b__35341),null);
}
} else {
var column = cljs.core.first.call(null,s__35339__$2);
return cljs.core.cons.call(null,td_STAR_.call(null,(function (){var formatter__$1 = new cljs.core.Keyword(null,"formatter","formatter",-483008823).cljs$core$IFn$_invoke$arity$1(column);
return formatter__$1.call(null,subitem);
})()),weathergen$ui$grids$master_detail_$_iter__35326_$_iter__35330_$_iter__35338.call(null,cljs.core.rest.call(null,s__35339__$2)));
}
} else {
return null;
}
break;
}
});})(i__35328,subitem,s__35331__$2,temp__5720__auto____$1,expanded_QMARK_,subitems,spacer_width,spacer_margin,spacing,spacer,item,c__4521__auto__,size__4522__auto__,b__35329,s__35327__$2,temp__5720__auto__,data_STAR_,columns_STAR_,options_STAR_,td_STAR_,map__35317,map__35317__$1,data,detail,columns,formatter,options,vec__35314,attrs,_))
,null,null));
});})(i__35328,subitem,s__35331__$2,temp__5720__auto____$1,expanded_QMARK_,subitems,spacer_width,spacer_margin,spacing,spacer,item,c__4521__auto__,size__4522__auto__,b__35329,s__35327__$2,temp__5720__auto__,data_STAR_,columns_STAR_,options_STAR_,td_STAR_,map__35317,map__35317__$1,data,detail,columns,formatter,options,vec__35314,attrs,_))
;
return iter__4523__auto__.call(null,cljs.core.drop.call(null,(1),columns_STAR___$1));
})()),weathergen$ui$grids$master_detail_$_iter__35326_$_iter__35330.call(null,cljs.core.rest.call(null,s__35331__$2)));
}
} else {
return null;
}
break;
}
});})(i__35328,expanded_QMARK_,subitems,spacer_width,spacer_margin,spacing,spacer,item,c__4521__auto__,size__4522__auto__,b__35329,s__35327__$2,temp__5720__auto__,data_STAR_,columns_STAR_,options_STAR_,td_STAR_,map__35317,map__35317__$1,data,detail,columns,formatter,options,vec__35314,attrs,_))
,null,null));
});})(i__35328,expanded_QMARK_,subitems,spacer_width,spacer_margin,spacing,spacer,item,c__4521__auto__,size__4522__auto__,b__35329,s__35327__$2,temp__5720__auto__,data_STAR_,columns_STAR_,options_STAR_,td_STAR_,map__35317,map__35317__$1,data,detail,columns,formatter,options,vec__35314,attrs,_))
;
return iter__4523__auto__.call(null,subitems);
})())], null);
})());

var G__35361 = (i__35328 + (1));
i__35328 = G__35361;
continue;
} else {
return true;
}
break;
}
})()){
return cljs.core.chunk_cons.call(null,cljs.core.chunk.call(null,b__35329),weathergen$ui$grids$master_detail_$_iter__35326.call(null,cljs.core.chunk_rest.call(null,s__35327__$2)));
} else {
return cljs.core.chunk_cons.call(null,cljs.core.chunk.call(null,b__35329),null);
}
} else {
var item = cljs.core.first.call(null,s__35327__$2);
return cljs.core.cons.call(null,(function (){var expanded_QMARK_ = javelin.core.cell.call(null,true);
var subitems = detail.call(null,item);
var spacer_width = "12px";
var spacer_margin = "3px";
var spacing = new cljs.core.PersistentArrayMap(null, 3, [new cljs.core.Keyword(null,"width","width",-384071477),spacer_width,new cljs.core.Keyword(null,"margin-right","margin-right",809689658),spacer_margin,new cljs.core.Keyword(null,"display","display",242065432),"inline-block"], null);
var spacer = ((function (expanded_QMARK_,subitems,spacer_width,spacer_margin,spacing,item,s__35327__$2,temp__5720__auto__,data_STAR_,columns_STAR_,options_STAR_,td_STAR_,map__35317,map__35317__$1,data,detail,columns,formatter,options,vec__35314,attrs,_){
return (function (){
return hoplon.core.span.call(null,new cljs.core.Keyword(null,"css","css",1135045163),spacing);
});})(expanded_QMARK_,subitems,spacer_width,spacer_margin,spacing,item,s__35327__$2,temp__5720__auto__,data_STAR_,columns_STAR_,options_STAR_,td_STAR_,map__35317,map__35317__$1,data,detail,columns,formatter,options,vec__35314,attrs,_))
;
return new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [hoplon.core.tbody.call(null,hoplon.core.tr.call(null,td_STAR_.call(null,new cljs.core.Keyword(null,"colspan","colspan",-1512420934),cljs.core.count.call(null,columns_STAR___$1),(((cljs.core.count.call(null,subitems) === (0)))?spacer.call(null):hoplon.core.div.call(null,new cljs.core.Keyword(null,"css","css",1135045163),cljs.core.PersistentHashMap.fromArrays([new cljs.core.Keyword(null,"border-style","border-style",-485574304),new cljs.core.Keyword(null,"text-anchor","text-anchor",585613696),new cljs.core.Keyword(null,"line-height","line-height",1870784992),new cljs.core.Keyword(null,"text-align","text-align",1786091845),new cljs.core.Keyword(null,"vertical-align","vertical-align",651007333),new cljs.core.Keyword(null,"font-size","font-size",-1847940346),new cljs.core.Keyword(null,"font-weight","font-weight",2085804583),new cljs.core.Keyword(null,"width","width",-384071477),new cljs.core.Keyword(null,"border-width","border-width",-1512605390),new cljs.core.Keyword(null,"border-color","border-color",-2059162761),new cljs.core.Keyword(null,"display","display",242065432),new cljs.core.Keyword(null,"margin-right","margin-right",809689658),new cljs.core.Keyword(null,"border-radius","border-radius",419594011),new cljs.core.Keyword(null,"height","height",1025178622)],["solid","6px","12px","center","middle","120%","bold",spacer_width,"1px","black","inline-block",spacer_margin,"50%","12px"]),new cljs.core.Keyword(null,"click","click",1912301393),((function (expanded_QMARK_,subitems,spacer_width,spacer_margin,spacing,spacer,item,s__35327__$2,temp__5720__auto__,data_STAR_,columns_STAR_,options_STAR_,td_STAR_,map__35317,map__35317__$1,data,detail,columns,formatter,options,vec__35314,attrs,_){
return (function (){
return cljs.core.swap_BANG_.call(null,expanded_QMARK_,cljs.core.not);
});})(expanded_QMARK_,subitems,spacer_width,spacer_margin,spacing,spacer,item,s__35327__$2,temp__5720__auto__,data_STAR_,columns_STAR_,options_STAR_,td_STAR_,map__35317,map__35317__$1,data,detail,columns,formatter,options,vec__35314,attrs,_))
,(function (){var con__30287__auto__ = (new cljs.core.Delay(((function (expanded_QMARK_,subitems,spacer_width,spacer_margin,spacing,spacer,item,s__35327__$2,temp__5720__auto__,data_STAR_,columns_STAR_,options_STAR_,td_STAR_,map__35317,map__35317__$1,data,detail,columns,formatter,options,vec__35314,attrs,_){
return (function (){
return "-";
});})(expanded_QMARK_,subitems,spacer_width,spacer_margin,spacing,spacer,item,s__35327__$2,temp__5720__auto__,data_STAR_,columns_STAR_,options_STAR_,td_STAR_,map__35317,map__35317__$1,data,detail,columns,formatter,options,vec__35314,attrs,_))
,null));
var alt__30288__auto__ = (new cljs.core.Delay(((function (con__30287__auto__,expanded_QMARK_,subitems,spacer_width,spacer_margin,spacing,spacer,item,s__35327__$2,temp__5720__auto__,data_STAR_,columns_STAR_,options_STAR_,td_STAR_,map__35317,map__35317__$1,data,detail,columns,formatter,options,vec__35314,attrs,_){
return (function (){
return "+";
});})(con__30287__auto__,expanded_QMARK_,subitems,spacer_width,spacer_margin,spacing,spacer,item,s__35327__$2,temp__5720__auto__,data_STAR_,columns_STAR_,options_STAR_,td_STAR_,map__35317,map__35317__$1,data,detail,columns,formatter,options,vec__35314,attrs,_))
,null));
var tpl__30289__auto__ = ((function (con__30287__auto__,alt__30288__auto__,expanded_QMARK_,subitems,spacer_width,spacer_margin,spacing,spacer,item,s__35327__$2,temp__5720__auto__,data_STAR_,columns_STAR_,options_STAR_,td_STAR_,map__35317,map__35317__$1,data,detail,columns,formatter,options,vec__35314,attrs,_){
return (function (p__30290__auto__){
return cljs.core.deref.call(null,(function (){var or__4131__auto__ = (cljs.core.truth_(p__30290__auto__)?con__30287__auto__:alt__30288__auto__);
if(cljs.core.truth_(or__4131__auto__)){
return or__4131__auto__;
} else {
return cljs.core.atom.call(null,null);
}
})());
});})(con__30287__auto__,alt__30288__auto__,expanded_QMARK_,subitems,spacer_width,spacer_margin,spacing,spacer,item,s__35327__$2,temp__5720__auto__,data_STAR_,columns_STAR_,options_STAR_,td_STAR_,map__35317,map__35317__$1,data,detail,columns,formatter,options,vec__35314,attrs,_))
;
return javelin.core.formula.call(null,tpl__30289__auto__).call(null,expanded_QMARK_);
})())),formatter.call(null,item)))),hoplon.core.tbody.call(null,(function (){var iter__4523__auto__ = ((function (expanded_QMARK_,subitems,spacer_width,spacer_margin,spacing,spacer,item,s__35327__$2,temp__5720__auto__,data_STAR_,columns_STAR_,options_STAR_,td_STAR_,map__35317,map__35317__$1,data,detail,columns,formatter,options,vec__35314,attrs,_){
return (function weathergen$ui$grids$master_detail_$_iter__35326_$_iter__35342(s__35343){
return (new cljs.core.LazySeq(null,((function (expanded_QMARK_,subitems,spacer_width,spacer_margin,spacing,spacer,item,s__35327__$2,temp__5720__auto__,data_STAR_,columns_STAR_,options_STAR_,td_STAR_,map__35317,map__35317__$1,data,detail,columns,formatter,options,vec__35314,attrs,_){
return (function (){
var s__35343__$1 = s__35343;
while(true){
var temp__5720__auto____$1 = cljs.core.seq.call(null,s__35343__$1);
if(temp__5720__auto____$1){
var s__35343__$2 = temp__5720__auto____$1;
if(cljs.core.chunked_seq_QMARK_.call(null,s__35343__$2)){
var c__4521__auto__ = cljs.core.chunk_first.call(null,s__35343__$2);
var size__4522__auto__ = cljs.core.count.call(null,c__4521__auto__);
var b__35345 = cljs.core.chunk_buffer.call(null,size__4522__auto__);
if((function (){var i__35344 = (0);
while(true){
if((i__35344 < size__4522__auto__)){
var subitem = cljs.core._nth.call(null,c__4521__auto__,i__35344);
cljs.core.chunk_append.call(null,b__35345,hoplon.core.tr.call(null,new cljs.core.Keyword(null,"fade-toggle","fade-toggle",-1468421852),expanded_QMARK_,(function (){var formatter__$1 = new cljs.core.Keyword(null,"formatter","formatter",-483008823).cljs$core$IFn$_invoke$arity$1(cljs.core.first.call(null,columns_STAR___$1));
return td_STAR_.call(null,spacer.call(null),spacer.call(null),formatter__$1.call(null,subitem));
})(),(function (){var iter__4523__auto__ = ((function (i__35344,subitem,c__4521__auto__,size__4522__auto__,b__35345,s__35343__$2,temp__5720__auto____$1,expanded_QMARK_,subitems,spacer_width,spacer_margin,spacing,spacer,item,s__35327__$2,temp__5720__auto__,data_STAR_,columns_STAR_,options_STAR_,td_STAR_,map__35317,map__35317__$1,data,detail,columns,formatter,options,vec__35314,attrs,_){
return (function weathergen$ui$grids$master_detail_$_iter__35326_$_iter__35342_$_iter__35346(s__35347){
return (new cljs.core.LazySeq(null,((function (i__35344,subitem,c__4521__auto__,size__4522__auto__,b__35345,s__35343__$2,temp__5720__auto____$1,expanded_QMARK_,subitems,spacer_width,spacer_margin,spacing,spacer,item,s__35327__$2,temp__5720__auto__,data_STAR_,columns_STAR_,options_STAR_,td_STAR_,map__35317,map__35317__$1,data,detail,columns,formatter,options,vec__35314,attrs,_){
return (function (){
var s__35347__$1 = s__35347;
while(true){
var temp__5720__auto____$2 = cljs.core.seq.call(null,s__35347__$1);
if(temp__5720__auto____$2){
var s__35347__$2 = temp__5720__auto____$2;
if(cljs.core.chunked_seq_QMARK_.call(null,s__35347__$2)){
var c__4521__auto____$1 = cljs.core.chunk_first.call(null,s__35347__$2);
var size__4522__auto____$1 = cljs.core.count.call(null,c__4521__auto____$1);
var b__35349 = cljs.core.chunk_buffer.call(null,size__4522__auto____$1);
if((function (){var i__35348 = (0);
while(true){
if((i__35348 < size__4522__auto____$1)){
var column = cljs.core._nth.call(null,c__4521__auto____$1,i__35348);
cljs.core.chunk_append.call(null,b__35349,td_STAR_.call(null,(function (){var formatter__$1 = new cljs.core.Keyword(null,"formatter","formatter",-483008823).cljs$core$IFn$_invoke$arity$1(column);
return formatter__$1.call(null,subitem);
})()));

var G__35362 = (i__35348 + (1));
i__35348 = G__35362;
continue;
} else {
return true;
}
break;
}
})()){
return cljs.core.chunk_cons.call(null,cljs.core.chunk.call(null,b__35349),weathergen$ui$grids$master_detail_$_iter__35326_$_iter__35342_$_iter__35346.call(null,cljs.core.chunk_rest.call(null,s__35347__$2)));
} else {
return cljs.core.chunk_cons.call(null,cljs.core.chunk.call(null,b__35349),null);
}
} else {
var column = cljs.core.first.call(null,s__35347__$2);
return cljs.core.cons.call(null,td_STAR_.call(null,(function (){var formatter__$1 = new cljs.core.Keyword(null,"formatter","formatter",-483008823).cljs$core$IFn$_invoke$arity$1(column);
return formatter__$1.call(null,subitem);
})()),weathergen$ui$grids$master_detail_$_iter__35326_$_iter__35342_$_iter__35346.call(null,cljs.core.rest.call(null,s__35347__$2)));
}
} else {
return null;
}
break;
}
});})(i__35344,subitem,c__4521__auto__,size__4522__auto__,b__35345,s__35343__$2,temp__5720__auto____$1,expanded_QMARK_,subitems,spacer_width,spacer_margin,spacing,spacer,item,s__35327__$2,temp__5720__auto__,data_STAR_,columns_STAR_,options_STAR_,td_STAR_,map__35317,map__35317__$1,data,detail,columns,formatter,options,vec__35314,attrs,_))
,null,null));
});})(i__35344,subitem,c__4521__auto__,size__4522__auto__,b__35345,s__35343__$2,temp__5720__auto____$1,expanded_QMARK_,subitems,spacer_width,spacer_margin,spacing,spacer,item,s__35327__$2,temp__5720__auto__,data_STAR_,columns_STAR_,options_STAR_,td_STAR_,map__35317,map__35317__$1,data,detail,columns,formatter,options,vec__35314,attrs,_))
;
return iter__4523__auto__.call(null,cljs.core.drop.call(null,(1),columns_STAR___$1));
})()));

var G__35363 = (i__35344 + (1));
i__35344 = G__35363;
continue;
} else {
return true;
}
break;
}
})()){
return cljs.core.chunk_cons.call(null,cljs.core.chunk.call(null,b__35345),weathergen$ui$grids$master_detail_$_iter__35326_$_iter__35342.call(null,cljs.core.chunk_rest.call(null,s__35343__$2)));
} else {
return cljs.core.chunk_cons.call(null,cljs.core.chunk.call(null,b__35345),null);
}
} else {
var subitem = cljs.core.first.call(null,s__35343__$2);
return cljs.core.cons.call(null,hoplon.core.tr.call(null,new cljs.core.Keyword(null,"fade-toggle","fade-toggle",-1468421852),expanded_QMARK_,(function (){var formatter__$1 = new cljs.core.Keyword(null,"formatter","formatter",-483008823).cljs$core$IFn$_invoke$arity$1(cljs.core.first.call(null,columns_STAR___$1));
return td_STAR_.call(null,spacer.call(null),spacer.call(null),formatter__$1.call(null,subitem));
})(),(function (){var iter__4523__auto__ = ((function (subitem,s__35343__$2,temp__5720__auto____$1,expanded_QMARK_,subitems,spacer_width,spacer_margin,spacing,spacer,item,s__35327__$2,temp__5720__auto__,data_STAR_,columns_STAR_,options_STAR_,td_STAR_,map__35317,map__35317__$1,data,detail,columns,formatter,options,vec__35314,attrs,_){
return (function weathergen$ui$grids$master_detail_$_iter__35326_$_iter__35342_$_iter__35350(s__35351){
return (new cljs.core.LazySeq(null,((function (subitem,s__35343__$2,temp__5720__auto____$1,expanded_QMARK_,subitems,spacer_width,spacer_margin,spacing,spacer,item,s__35327__$2,temp__5720__auto__,data_STAR_,columns_STAR_,options_STAR_,td_STAR_,map__35317,map__35317__$1,data,detail,columns,formatter,options,vec__35314,attrs,_){
return (function (){
var s__35351__$1 = s__35351;
while(true){
var temp__5720__auto____$2 = cljs.core.seq.call(null,s__35351__$1);
if(temp__5720__auto____$2){
var s__35351__$2 = temp__5720__auto____$2;
if(cljs.core.chunked_seq_QMARK_.call(null,s__35351__$2)){
var c__4521__auto__ = cljs.core.chunk_first.call(null,s__35351__$2);
var size__4522__auto__ = cljs.core.count.call(null,c__4521__auto__);
var b__35353 = cljs.core.chunk_buffer.call(null,size__4522__auto__);
if((function (){var i__35352 = (0);
while(true){
if((i__35352 < size__4522__auto__)){
var column = cljs.core._nth.call(null,c__4521__auto__,i__35352);
cljs.core.chunk_append.call(null,b__35353,td_STAR_.call(null,(function (){var formatter__$1 = new cljs.core.Keyword(null,"formatter","formatter",-483008823).cljs$core$IFn$_invoke$arity$1(column);
return formatter__$1.call(null,subitem);
})()));

var G__35364 = (i__35352 + (1));
i__35352 = G__35364;
continue;
} else {
return true;
}
break;
}
})()){
return cljs.core.chunk_cons.call(null,cljs.core.chunk.call(null,b__35353),weathergen$ui$grids$master_detail_$_iter__35326_$_iter__35342_$_iter__35350.call(null,cljs.core.chunk_rest.call(null,s__35351__$2)));
} else {
return cljs.core.chunk_cons.call(null,cljs.core.chunk.call(null,b__35353),null);
}
} else {
var column = cljs.core.first.call(null,s__35351__$2);
return cljs.core.cons.call(null,td_STAR_.call(null,(function (){var formatter__$1 = new cljs.core.Keyword(null,"formatter","formatter",-483008823).cljs$core$IFn$_invoke$arity$1(column);
return formatter__$1.call(null,subitem);
})()),weathergen$ui$grids$master_detail_$_iter__35326_$_iter__35342_$_iter__35350.call(null,cljs.core.rest.call(null,s__35351__$2)));
}
} else {
return null;
}
break;
}
});})(subitem,s__35343__$2,temp__5720__auto____$1,expanded_QMARK_,subitems,spacer_width,spacer_margin,spacing,spacer,item,s__35327__$2,temp__5720__auto__,data_STAR_,columns_STAR_,options_STAR_,td_STAR_,map__35317,map__35317__$1,data,detail,columns,formatter,options,vec__35314,attrs,_))
,null,null));
});})(subitem,s__35343__$2,temp__5720__auto____$1,expanded_QMARK_,subitems,spacer_width,spacer_margin,spacing,spacer,item,s__35327__$2,temp__5720__auto__,data_STAR_,columns_STAR_,options_STAR_,td_STAR_,map__35317,map__35317__$1,data,detail,columns,formatter,options,vec__35314,attrs,_))
;
return iter__4523__auto__.call(null,cljs.core.drop.call(null,(1),columns_STAR___$1));
})()),weathergen$ui$grids$master_detail_$_iter__35326_$_iter__35342.call(null,cljs.core.rest.call(null,s__35343__$2)));
}
} else {
return null;
}
break;
}
});})(expanded_QMARK_,subitems,spacer_width,spacer_margin,spacing,spacer,item,s__35327__$2,temp__5720__auto__,data_STAR_,columns_STAR_,options_STAR_,td_STAR_,map__35317,map__35317__$1,data,detail,columns,formatter,options,vec__35314,attrs,_))
,null,null));
});})(expanded_QMARK_,subitems,spacer_width,spacer_margin,spacing,spacer,item,s__35327__$2,temp__5720__auto__,data_STAR_,columns_STAR_,options_STAR_,td_STAR_,map__35317,map__35317__$1,data,detail,columns,formatter,options,vec__35314,attrs,_))
;
return iter__4523__auto__.call(null,subitems);
})())], null);
})(),weathergen$ui$grids$master_detail_$_iter__35326.call(null,cljs.core.rest.call(null,s__35327__$2)));
}
} else {
return null;
}
break;
}
});})(data_STAR_,columns_STAR_,options_STAR_,td_STAR_,map__35317,map__35317__$1,data,detail,columns,formatter,options,vec__35314,attrs,_))
,null,null));
});})(data_STAR_,columns_STAR_,options_STAR_,td_STAR_,map__35317,map__35317__$1,data,detail,columns,formatter,options,vec__35314,attrs,_))
;
return iter__4523__auto__.call(null,data_STAR___$1);
});})(data_STAR_,columns_STAR_,options_STAR_,td_STAR_,map__35317,map__35317__$1,data,detail,columns,formatter,options,vec__35314,attrs,_))
).call(null,data_STAR_,columns_STAR_));
})());
};
var weathergen$ui$grids$master_detail = function (var_args){
var args__30233__auto__ = null;
if (arguments.length > 0) {
var G__35365__i = 0, G__35365__a = new Array(arguments.length -  0);
while (G__35365__i < G__35365__a.length) {G__35365__a[G__35365__i] = arguments[G__35365__i + 0]; ++G__35365__i;}
  args__30233__auto__ = new cljs.core.IndexedSeq(G__35365__a,0,null);
} 
return weathergen$ui$grids$master_detail__delegate.call(this,args__30233__auto__);};
weathergen$ui$grids$master_detail.cljs$lang$maxFixedArity = 0;
weathergen$ui$grids$master_detail.cljs$lang$applyTo = (function (arglist__35366){
var args__30233__auto__ = cljs.core.seq(arglist__35366);
return weathergen$ui$grids$master_detail__delegate(args__30233__auto__);
});
weathergen$ui$grids$master_detail.cljs$core$IFn$_invoke$arity$variadic = weathergen$ui$grids$master_detail__delegate;
return weathergen$ui$grids$master_detail;
})()
;
/**
 * Returns UI for the sort handles at the top of a column.
 *   `sort-state` is a tuple of column index and direction for the
 *   current sort. `column-id` is a cell the index of the column we're
 *   rendering.
 */
weathergen.ui.grids.sorters = (function weathergen$ui$grids$sorters(sort_criteria,column_id){
return weathergen.ui.common.inl.call(null,new cljs.core.Keyword(null,"class","class",-2030961996),"sorters",hoplon.svg.svg.call(null,new cljs.core.Keyword(null,"width","width",-384071477),"20px",new cljs.core.Keyword(null,"viewBox","viewBox",-469489477),"-100 -100 200 200",weathergen.ui.common.triangle.call(null,new cljs.core.Keyword(null,"transform","transform",1381301764),"rotate(180) translate(0 -50)",new cljs.core.Keyword(null,"r","r",-471384190),(50),new cljs.core.Keyword(null,"stroke","stroke",1741823555),"black",new cljs.core.Keyword(null,"stroke-width","stroke-width",716836435),"2",new cljs.core.Keyword(null,"fill","fill",883462889),javelin.core.formula.call(null,(function (sort_criteria__$1,column_id__$1){
if(cljs.core._EQ_.call(null,sort_criteria__$1,new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [column_id__$1,new cljs.core.Keyword(null,"ascending","ascending",-988350486)], null))){
return "black";
} else {
return "none";
}
})).call(null,sort_criteria,column_id)),weathergen.ui.common.triangle.call(null,new cljs.core.Keyword(null,"transform","transform",1381301764),"translate(0 -50)",new cljs.core.Keyword(null,"r","r",-471384190),(50),new cljs.core.Keyword(null,"stroke","stroke",1741823555),"black",new cljs.core.Keyword(null,"stroke-width","stroke-width",716836435),"2",new cljs.core.Keyword(null,"fill","fill",883462889),javelin.core.formula.call(null,(function (sort_criteria__$1,column_id__$1){
if(cljs.core._EQ_.call(null,sort_criteria__$1,new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [column_id__$1,new cljs.core.Keyword(null,"descending","descending",-24766135)], null))){
return "black";
} else {
return "none";
}
})).call(null,sort_criteria,column_id))));
});
/**
 * Rum version of `sorters`.
 */
weathergen.ui.grids.rsorters = (function weathergen$ui$grids$rsorters(sort_criteria,column_id){
return weathergen.ui.common.rinl.call(null,new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"class","class",-2030961996),"sorters"], null),new cljs.core.PersistentVector(null, 4, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"svg","svg",856789142),new cljs.core.PersistentArrayMap(null, 2, [new cljs.core.Keyword(null,"width","width",-384071477),weathergen.ui.common.px.call(null,(20)),new cljs.core.Keyword(null,"viewBox","viewBox",-469489477),"-100 -100 200 200"], null),weathergen.ui.common.rtriangle.call(null,new cljs.core.PersistentArrayMap(null, 5, [new cljs.core.Keyword(null,"transform","transform",1381301764),"rotate(180) translate(0 -50)",new cljs.core.Keyword(null,"r","r",-471384190),(50),new cljs.core.Keyword(null,"stroke","stroke",1741823555),"black",new cljs.core.Keyword(null,"stroke-width","stroke-width",716836435),"2",new cljs.core.Keyword(null,"fill","fill",883462889),((cljs.core._EQ_.call(null,sort_criteria,new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [column_id,new cljs.core.Keyword(null,"ascending","ascending",-988350486)], null)))?"black":"none")], null)),weathergen.ui.common.rtriangle.call(null,new cljs.core.PersistentArrayMap(null, 5, [new cljs.core.Keyword(null,"transform","transform",1381301764),"translate(0 -50)",new cljs.core.Keyword(null,"r","r",-471384190),(50),new cljs.core.Keyword(null,"stroke","stroke",1741823555),"black",new cljs.core.Keyword(null,"stroke-width","stroke-width",716836435),"2",new cljs.core.Keyword(null,"fill","fill",883462889),((cljs.core._EQ_.call(null,sort_criteria,new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [column_id,new cljs.core.Keyword(null,"descending","descending",-24766135)], null)))?"black":"none")], null))], null));
});
/**
 * Moves item `item` in `coll` by one position earlier or later,
 *   depending on the sign of `n`.
 * 
 *   E.g. `(reorder [:a :b :c] :b -1)` returns `[:b :a :c]`
 */
weathergen.ui.grids.nudge = (function weathergen$ui$grids$nudge(coll,item,n){
return cljs.core.mapv.call(null,cljs.core.second,cljs.core.sort_by.call(null,cljs.core.first,cljs.core.map_indexed.call(null,(function (i,v){
return new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [((cljs.core._EQ_.call(null,v,item))?(((n > (0)))?(i + 1.5):(i - 1.5)):i),v], null);
}),coll)));
});
weathergen.ui.grids.register_table_grid_styles_BANG_ = (function weathergen$ui$grids$register_table_grid_styles_BANG_(){
return weathergen.ui.common.register_styles_BANG_.call(null,new cljs.core.Keyword("weathergen.ui.grids","table-grid","weathergen.ui.grids/table-grid",-1079718067),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.PersistentVector(null, 6, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"table.table-grid","table.table-grid",1127379830),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"border-collapse","border-collapse",919100239),"collapse"], null),new cljs.core.PersistentVector(null, 3, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"tr.table-grid-row","tr.table-grid-row",-1812077054),garden.selectors._AMPERSAND_.call(null,garden.selectors.nth_child.call(null,new cljs.core.Keyword(null,"even","even",-275845692))),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"background","background",-863952629),"#eee"], null)], null),new cljs.core.PersistentVector(null, 3, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"tr.table-grid-row","tr.table-grid-row",-1812077054),garden.selectors._AMPERSAND_.call(null,garden.selectors.nth_child.call(null,new cljs.core.Keyword(null,"odd","odd",-1213409872))),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"background","background",-863952629),"white"], null)], null),new cljs.core.PersistentVector(null, 3, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"thead.table-grid-header","thead.table-grid-header",410909598),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"td.table-grid-cell","td.table-grid-cell",717270302),new cljs.core.PersistentArrayMap(null, 4, [new cljs.core.Keyword(null,"background","background",-863952629),"#ddd",new cljs.core.Keyword(null,"border","border",1444987323),"solid 1px grey",new cljs.core.Keyword(null,"padding","padding",1660304693),"2px 4px 4px 4px",new cljs.core.Keyword(null,"white-space","white-space",-707351930),"nowrap"], null)], null),new cljs.core.PersistentVector(null, 3, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,".sorters",".sorters",2118548878),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"display","display",242065432),"inline-block"], null),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"svg","svg",856789142),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"vertical-align","vertical-align",651007333),"bottom"], null)], null)], null)], null),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"tbody.table-grid-body","tbody.table-grid-body",-611948556),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"td.table-grid-cell","td.table-grid-cell",717270302),new cljs.core.PersistentArrayMap(null, 2, [new cljs.core.Keyword(null,"padding","padding",1660304693),"2px 3px 2px 3px",new cljs.core.Keyword(null,"border","border",1444987323),"solid 1px lightgray"], null)], null)], null)], null),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"td.table-grid-cell.hidden-column","td.table-grid-cell.hidden-column",-561691712),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"display","display",242065432),"none"], null)], null)], null));
});
/**
 * Returns a table grid control. Attributes
 * 
 * :data - A cell containing a seq of maps.
 * :key-fn - Function from item in data to unique value for it
 * :row-attrs - A function from a cell containing a row to an Hoplon
 *           attrs map
 * :when-empty - UI to show when there are no rows in the data
 * :columns - A map from column IDs to column descriptions
 * :fixed-columns - A seq of IDs of unmovable columns
 * :movable-columns - [cell] A seq of IDs of movable columns
 * :hidden-columns - [cell] A set of IDs of hidden columns
 * :initial-sort - [non-cell] An initial sort criteria in the form
 *              `[sort-key sort-direction]`, where `sort-direction` is
 *              either `:ascending` or `:descending`
 * 
 * Column description:
 * :title - Shows up in the header row
 * :sort-key - Function from a row value (not cell) to a sort value
 * :formatter - Function from a row cell and row number cell to UI
 * :css - Function from cell of row item and cell of row number to
 *       map of css values.
 * @param {...*} var_args
 */
weathergen.ui.grids.table_grid = (function() { 
var weathergen$ui$grids$table_grid__delegate = function (args__30233__auto__){
var vec__35367 = hoplon.core.parse_args.call(null,args__30233__auto__);
var attrs = cljs.core.nth.call(null,vec__35367,(0),null);
var _ = cljs.core.nth.call(null,vec__35367,(1),null);
weathergen.ui.grids.register_table_grid_styles_BANG_.call(null);

var map__35370 = attrs;
var map__35370__$1 = (((((!((map__35370 == null))))?(((((map__35370.cljs$lang$protocol_mask$partition0$ & (64))) || ((cljs.core.PROTOCOL_SENTINEL === map__35370.cljs$core$ISeq$))))?true:false):false))?cljs.core.apply.call(null,cljs.core.hash_map,map__35370):map__35370);
var movable_columns = cljs.core.get.call(null,map__35370__$1,new cljs.core.Keyword(null,"movable-columns","movable-columns",-1079893862));
var data = cljs.core.get.call(null,map__35370__$1,new cljs.core.Keyword(null,"data","data",-232669377));
var hidden_columns = cljs.core.get.call(null,map__35370__$1,new cljs.core.Keyword(null,"hidden-columns","hidden-columns",-1045524800));
var row_attrs = cljs.core.get.call(null,map__35370__$1,new cljs.core.Keyword(null,"row-attrs","row-attrs",2139633863));
var columns = cljs.core.get.call(null,map__35370__$1,new cljs.core.Keyword(null,"columns","columns",1998437288));
var when_empty = cljs.core.get.call(null,map__35370__$1,new cljs.core.Keyword(null,"when-empty","when-empty",-1825107890));
var key_fn = cljs.core.get.call(null,map__35370__$1,new cljs.core.Keyword(null,"key-fn","key-fn",-636154479));
var initial_sort = cljs.core.get.call(null,map__35370__$1,new cljs.core.Keyword(null,"initial-sort","initial-sort",1434529715));
var fixed_columns = cljs.core.get.call(null,map__35370__$1,new cljs.core.Keyword(null,"fixed-columns","fixed-columns",-1793374858));
var attrs__$1 = cljs.core.dissoc.call(null,attrs,new cljs.core.Keyword(null,"data","data",-232669377),new cljs.core.Keyword(null,"key-fn","key-fn",-636154479),new cljs.core.Keyword(null,"columns","columns",1998437288),new cljs.core.Keyword(null,"row-attrs","row-attrs",2139633863),new cljs.core.Keyword(null,"when-empty","when-empty",-1825107890),new cljs.core.Keyword(null,"fixed-columns","fixed-columns",-1793374858),new cljs.core.Keyword(null,"movable-columns","movable-columns",-1079893862),new cljs.core.Keyword(null,"hidden-columns","hidden-columns",-1045524800),new cljs.core.Keyword(null,"initial-sort","initial-sort",1434529715));
if(cljs.core.truth_(key_fn)){
} else {
throw (new Error(["Assert failed: ","key-fn is required","\n","key-fn"].join('')));
}

var sort_criteria = javelin.core.cell.call(null,initial_sort);
var sorted_items = javelin.core.formula.call(null,((function (sort_criteria,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function (data__$1,sort_criteria__$1){
if(cljs.core.not.call(null,sort_criteria__$1)){
return data__$1;
} else {
var vec__35372 = sort_criteria__$1;
var sort_column = cljs.core.nth.call(null,vec__35372,(0),null);
var sort_direction = cljs.core.nth.call(null,vec__35372,(1),null);
var map__35375 = cljs.core.get.call(null,columns,sort_column);
var map__35375__$1 = (((((!((map__35375 == null))))?(((((map__35375.cljs$lang$protocol_mask$partition0$ & (64))) || ((cljs.core.PROTOCOL_SENTINEL === map__35375.cljs$core$ISeq$))))?true:false):false))?cljs.core.apply.call(null,cljs.core.hash_map,map__35375):map__35375);
var sort_key = cljs.core.get.call(null,map__35375__$1,new cljs.core.Keyword(null,"sort-key","sort-key",1285844623));
return cljs.core.sort_by.call(null,sort_key,((cljs.core._EQ_.call(null,sort_direction,new cljs.core.Keyword(null,"ascending","ascending",-988350486)))?cljs.core.compare:((function (vec__35372,sort_column,sort_direction,map__35375,map__35375__$1,sort_key,sort_criteria,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function (a,b){
return (- cljs.core.compare.call(null,a,b));
});})(vec__35372,sort_column,sort_direction,map__35375,map__35375__$1,sort_key,sort_criteria,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
),data__$1);
}
});})(sort_criteria,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
).call(null,data,sort_criteria);
var num_columns = cljs.core.count.call(null,columns);
var column_order = javelin.core.formula.call(null,((function (sort_criteria,sorted_items,num_columns,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function (fixed_columns__$1,movable_columns__$1){
return cljs.core.into.call(null,cljs.core.vec.call(null,fixed_columns__$1),cljs.core.vec.call(null,movable_columns__$1));
});})(sort_criteria,sorted_items,num_columns,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
).call(null,fixed_columns,movable_columns);
var editing_columns_QMARK_ = javelin.core.cell.call(null,false);
var classify = ((function (sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function (elem,class$){
return ((function (sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function() { 
var G__35434__delegate = function (args){
return cljs.core.apply.call(null,elem,new cljs.core.Keyword(null,"class","class",-2030961996),class$,args);
};
var G__35434 = function (var_args){
var args = null;
if (arguments.length > 0) {
var G__35435__i = 0, G__35435__a = new Array(arguments.length -  0);
while (G__35435__i < G__35435__a.length) {G__35435__a[G__35435__i] = arguments[G__35435__i + 0]; ++G__35435__i;}
  args = new cljs.core.IndexedSeq(G__35435__a,0,null);
} 
return G__35434__delegate.call(this,args);};
G__35434.cljs$lang$maxFixedArity = 0;
G__35434.cljs$lang$applyTo = (function (arglist__35436){
var args = cljs.core.seq(arglist__35436);
return G__35434__delegate(args);
});
G__35434.cljs$core$IFn$_invoke$arity$variadic = G__35434__delegate;
return G__35434;
})()
;
;})(sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
});})(sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
;
var table = classify.call(null,hoplon.core.table,"table-grid");
var thead = classify.call(null,hoplon.core.thead,"table-grid-header");
var tbody = classify.call(null,hoplon.core.tbody,"table-grid-body");
var tr = classify.call(null,hoplon.core.tr,"table-grid-row");
var td = classify.call(null,hoplon.core.td,"table-grid-cell");
return table.call(null,thead.call(null,tr.call(null,td.call(null,new cljs.core.Keyword(null,"class","class",-2030961996),"table-grid-cell",new cljs.core.Keyword(null,"colspan","colspan",-1512420934),num_columns,weathergen.ui.buttons.image_button.call(null,new cljs.core.Keyword(null,"src","src",-1651076051),"images/settings.svg",new cljs.core.Keyword(null,"width","width",-384071477),weathergen.ui.common.px.call(null,(16)),new cljs.core.Keyword(null,"title","title",636505583),"Settings",new cljs.core.Keyword(null,"latched?","latched?",2124907793),editing_columns_QMARK_,new cljs.core.Keyword(null,"click","click",1912301393),((function (sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function (){
return cljs.core.swap_BANG_.call(null,editing_columns_QMARK_,cljs.core.not);
});})(sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
),weathergen.help.help_icon.call(null,new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"table-grid","table-grid",1980411698),new cljs.core.Keyword(null,"settings","settings",1556144875)], null)))),tr.call(null,(function (){var iter__4523__auto__ = ((function (sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function weathergen$ui$grids$table_grid_$_iter__35377(s__35378){
return (new cljs.core.LazySeq(null,((function (sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function (){
var s__35378__$1 = s__35378;
while(true){
var temp__5720__auto__ = cljs.core.seq.call(null,s__35378__$1);
if(temp__5720__auto__){
var s__35378__$2 = temp__5720__auto__;
if(cljs.core.chunked_seq_QMARK_.call(null,s__35378__$2)){
var c__4521__auto__ = cljs.core.chunk_first.call(null,s__35378__$2);
var size__4522__auto__ = cljs.core.count.call(null,c__4521__auto__);
var b__35380 = cljs.core.chunk_buffer.call(null,size__4522__auto__);
if((function (){var i__35379 = (0);
while(true){
if((i__35379 < size__4522__auto__)){
var n = cljs.core._nth.call(null,c__4521__auto__,i__35379);
cljs.core.chunk_append.call(null,b__35380,(function (){var column_id = javelin.core.formula.call(null,((function (i__35379,n,c__4521__auto__,size__4522__auto__,b__35380,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function (column_order__$1){
return cljs.core.nth.call(null,column_order__$1,n);
});})(i__35379,n,c__4521__auto__,size__4522__auto__,b__35380,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
).call(null,column_order);
var hidden_QMARK_ = javelin.core.formula.call(null,((function (i__35379,column_id,n,c__4521__auto__,size__4522__auto__,b__35380,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function (hidden_columns__$1,column_id__$1){
return hidden_columns__$1.call(null,column_id__$1);
});})(i__35379,column_id,n,c__4521__auto__,size__4522__auto__,b__35380,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
).call(null,hidden_columns,column_id);
var disable_sort = javelin.core.formula.call(null,((function (i__35379,column_id,hidden_QMARK_,n,c__4521__auto__,size__4522__auto__,b__35380,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function (column_id__$1){
return new cljs.core.Keyword(null,"disable-sort","disable-sort",-579071276).cljs$core$IFn$_invoke$arity$1(cljs.core.get.call(null,columns,column_id__$1));
});})(i__35379,column_id,hidden_QMARK_,n,c__4521__auto__,size__4522__auto__,b__35380,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
).call(null,column_id);
return td.call(null,new cljs.core.Keyword(null,"class","class",-2030961996),javelin.core.formula.call(null,((function (i__35379,column_id,hidden_QMARK_,disable_sort,n,c__4521__auto__,size__4522__auto__,b__35380,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function (editing_columns_QMARK___$1,hidden_QMARK___$1){
return new cljs.core.PersistentArrayMap(null, 2, [new cljs.core.Keyword(null,"hidden-column","hidden-column",298731236),(function (){var and__4120__auto__ = cljs.core.not.call(null,editing_columns_QMARK___$1);
if(and__4120__auto__){
return hidden_QMARK___$1;
} else {
return and__4120__auto__;
}
})(),new cljs.core.Keyword(null,"table-grid-cell","table-grid-cell",573917102),true], null);
});})(i__35379,column_id,hidden_QMARK_,disable_sort,n,c__4521__auto__,size__4522__auto__,b__35380,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
).call(null,editing_columns_QMARK_,hidden_QMARK_),new cljs.core.Keyword(null,"click","click",1912301393),((function (i__35379,column_id,hidden_QMARK_,disable_sort,n,c__4521__auto__,size__4522__auto__,b__35380,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function (){
if(cljs.core.truth_(cljs.core.deref.call(null,disable_sort))){
return null;
} else {
cljs.core.swap_BANG_.call(null,sort_criteria,((function (i__35379,column_id,hidden_QMARK_,disable_sort,n,c__4521__auto__,size__4522__auto__,b__35380,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function (p__35381){
var vec__35382 = p__35381;
var old_index = cljs.core.nth.call(null,vec__35382,(0),null);
var direction = cljs.core.nth.call(null,vec__35382,(1),null);
return new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [cljs.core.deref.call(null,column_id),((cljs.core.not_EQ_.call(null,old_index,cljs.core.deref.call(null,column_id)))?new cljs.core.Keyword(null,"ascending","ascending",-988350486):((cljs.core._EQ_.call(null,direction,new cljs.core.Keyword(null,"ascending","ascending",-988350486)))?new cljs.core.Keyword(null,"descending","descending",-24766135):new cljs.core.Keyword(null,"ascending","ascending",-988350486)
))], null);
});})(i__35379,column_id,hidden_QMARK_,disable_sort,n,c__4521__auto__,size__4522__auto__,b__35380,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
);

return true;
}
});})(i__35379,column_id,hidden_QMARK_,disable_sort,n,c__4521__auto__,size__4522__auto__,b__35380,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
,(function (){var con__30287__auto__ = (new cljs.core.Delay(((function (i__35379,column_id,hidden_QMARK_,disable_sort,n,c__4521__auto__,size__4522__auto__,b__35380,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function (){
return weathergen.ui.buttons.a_button.call(null,new cljs.core.Keyword(null,"title","title",636505583),"Move column left",new cljs.core.Keyword(null,"css","css",1135045163),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"background","background",-863952629),"linear-gradient(white, white 50%, rgb(195, 194, 194) 100%)"], null),new cljs.core.Keyword(null,"click","click",1912301393),((function (i__35379,column_id,hidden_QMARK_,disable_sort,n,c__4521__auto__,size__4522__auto__,b__35380,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function (){
cljs.core.swap_BANG_.call(null,movable_columns,weathergen.ui.grids.nudge,cljs.core.deref.call(null,column_id),(-1));

return false;
});})(i__35379,column_id,hidden_QMARK_,disable_sort,n,c__4521__auto__,size__4522__auto__,b__35380,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
,"<");
});})(i__35379,column_id,hidden_QMARK_,disable_sort,n,c__4521__auto__,size__4522__auto__,b__35380,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
,null));
var alt__30288__auto__ = (new cljs.core.Delay(((function (i__35379,con__30287__auto__,column_id,hidden_QMARK_,disable_sort,n,c__4521__auto__,size__4522__auto__,b__35380,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function (){
return null;
});})(i__35379,con__30287__auto__,column_id,hidden_QMARK_,disable_sort,n,c__4521__auto__,size__4522__auto__,b__35380,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
,null));
var tpl__30289__auto__ = ((function (i__35379,con__30287__auto__,alt__30288__auto__,column_id,hidden_QMARK_,disable_sort,n,c__4521__auto__,size__4522__auto__,b__35380,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function (p__30290__auto__){
return cljs.core.deref.call(null,(function (){var or__4131__auto__ = (cljs.core.truth_(p__30290__auto__)?con__30287__auto__:alt__30288__auto__);
if(cljs.core.truth_(or__4131__auto__)){
return or__4131__auto__;
} else {
return cljs.core.atom.call(null,null);
}
})());
});})(i__35379,con__30287__auto__,alt__30288__auto__,column_id,hidden_QMARK_,disable_sort,n,c__4521__auto__,size__4522__auto__,b__35380,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
;
return javelin.core.formula.call(null,tpl__30289__auto__).call(null,javelin.core.formula.call(null,((function (i__35379,con__30287__auto__,alt__30288__auto__,tpl__30289__auto__,column_id,hidden_QMARK_,disable_sort,n,c__4521__auto__,size__4522__auto__,b__35380,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function (G__35388,G__35387,G__35385,G__35386){
var and__4120__auto__ = (G__35385.call(null,G__35386) < G__35387);
if(cljs.core.truth_(and__4120__auto__)){
return G__35388;
} else {
return and__4120__auto__;
}
});})(i__35379,con__30287__auto__,alt__30288__auto__,tpl__30289__auto__,column_id,hidden_QMARK_,disable_sort,n,c__4521__auto__,size__4522__auto__,b__35380,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
).call(null,editing_columns_QMARK_,n,cljs.core.count,fixed_columns));
})(),(function (){var con__30287__auto__ = (new cljs.core.Delay(((function (i__35379,column_id,hidden_QMARK_,disable_sort,n,c__4521__auto__,size__4522__auto__,b__35380,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function (){
return weathergen.ui.common.inl.call(null,new cljs.core.Keyword(null,"css","css",1135045163),javelin.core.formula.call(null,((function (i__35379,column_id,hidden_QMARK_,disable_sort,n,c__4521__auto__,size__4522__auto__,b__35380,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function (hidden_QMARK___$1){
return cljs.core.PersistentHashMap.fromArrays([new cljs.core.Keyword(null,"border-style","border-style",-485574304),new cljs.core.Keyword(null,"line-height","line-height",1870784992),new cljs.core.Keyword(null,"color","color",1011675173),new cljs.core.Keyword(null,"width","width",-384071477),new cljs.core.Keyword(null,"background","background",-863952629),new cljs.core.Keyword(null,"cursor","cursor",1011937484),new cljs.core.Keyword(null,"border-width","border-width",-1512605390),new cljs.core.Keyword(null,"padding","padding",1660304693),new cljs.core.Keyword(null,"border-radius","border-radius",419594011)],["inset","90%",(cljs.core.truth_(hidden_QMARK___$1)?"red":"green"),weathergen.ui.common.px.call(null,(10)),"white","pointer",weathergen.ui.common.px.call(null,(2)),weathergen.ui.common.px.call(null,(1)),weathergen.ui.common.px.call(null,(3))]);
});})(i__35379,column_id,hidden_QMARK_,disable_sort,n,c__4521__auto__,size__4522__auto__,b__35380,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
).call(null,hidden_QMARK_),new cljs.core.Keyword(null,"click","click",1912301393),((function (i__35379,column_id,hidden_QMARK_,disable_sort,n,c__4521__auto__,size__4522__auto__,b__35380,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function (___$1){
cljs.core.swap_BANG_.call(null,hidden_columns,(cljs.core.truth_(cljs.core.deref.call(null,hidden_QMARK_))?cljs.core.disj:cljs.core.conj),cljs.core.deref.call(null,column_id));

return false;
});})(i__35379,column_id,hidden_QMARK_,disable_sort,n,c__4521__auto__,size__4522__auto__,b__35380,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
,(function (){var con__30287__auto__ = (new cljs.core.Delay(((function (i__35379,column_id,hidden_QMARK_,disable_sort,n,c__4521__auto__,size__4522__auto__,b__35380,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function (){
return "\u2717";
});})(i__35379,column_id,hidden_QMARK_,disable_sort,n,c__4521__auto__,size__4522__auto__,b__35380,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
,null));
var alt__30288__auto__ = (new cljs.core.Delay(((function (i__35379,con__30287__auto__,column_id,hidden_QMARK_,disable_sort,n,c__4521__auto__,size__4522__auto__,b__35380,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function (){
return "\u2713";
});})(i__35379,con__30287__auto__,column_id,hidden_QMARK_,disable_sort,n,c__4521__auto__,size__4522__auto__,b__35380,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
,null));
var tpl__30289__auto__ = ((function (i__35379,con__30287__auto__,alt__30288__auto__,column_id,hidden_QMARK_,disable_sort,n,c__4521__auto__,size__4522__auto__,b__35380,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function (p__30290__auto__){
return cljs.core.deref.call(null,(function (){var or__4131__auto__ = (cljs.core.truth_(p__30290__auto__)?con__30287__auto__:alt__30288__auto__);
if(cljs.core.truth_(or__4131__auto__)){
return or__4131__auto__;
} else {
return cljs.core.atom.call(null,null);
}
})());
});})(i__35379,con__30287__auto__,alt__30288__auto__,column_id,hidden_QMARK_,disable_sort,n,c__4521__auto__,size__4522__auto__,b__35380,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
;
return javelin.core.formula.call(null,tpl__30289__auto__).call(null,hidden_QMARK_);
})());
});})(i__35379,column_id,hidden_QMARK_,disable_sort,n,c__4521__auto__,size__4522__auto__,b__35380,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
,null));
var alt__30288__auto__ = (new cljs.core.Delay(((function (i__35379,con__30287__auto__,column_id,hidden_QMARK_,disable_sort,n,c__4521__auto__,size__4522__auto__,b__35380,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function (){
return null;
});})(i__35379,con__30287__auto__,column_id,hidden_QMARK_,disable_sort,n,c__4521__auto__,size__4522__auto__,b__35380,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
,null));
var tpl__30289__auto__ = ((function (i__35379,con__30287__auto__,alt__30288__auto__,column_id,hidden_QMARK_,disable_sort,n,c__4521__auto__,size__4522__auto__,b__35380,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function (p__30290__auto__){
return cljs.core.deref.call(null,(function (){var or__4131__auto__ = (cljs.core.truth_(p__30290__auto__)?con__30287__auto__:alt__30288__auto__);
if(cljs.core.truth_(or__4131__auto__)){
return or__4131__auto__;
} else {
return cljs.core.atom.call(null,null);
}
})());
});})(i__35379,con__30287__auto__,alt__30288__auto__,column_id,hidden_QMARK_,disable_sort,n,c__4521__auto__,size__4522__auto__,b__35380,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
;
return javelin.core.formula.call(null,tpl__30289__auto__).call(null,editing_columns_QMARK_);
})(),javelin.core.formula.call(null,((function (i__35379,column_id,hidden_QMARK_,disable_sort,n,c__4521__auto__,size__4522__auto__,b__35380,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function (column_id__$1){
return new cljs.core.Keyword(null,"title","title",636505583).cljs$core$IFn$_invoke$arity$1(cljs.core.get.call(null,columns,column_id__$1));
});})(i__35379,column_id,hidden_QMARK_,disable_sort,n,c__4521__auto__,size__4522__auto__,b__35380,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
).call(null,column_id),(function (){var con__30287__auto__ = (new cljs.core.Delay(((function (i__35379,column_id,hidden_QMARK_,disable_sort,n,c__4521__auto__,size__4522__auto__,b__35380,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function (){
return cljs.core.PersistentVector.EMPTY;
});})(i__35379,column_id,hidden_QMARK_,disable_sort,n,c__4521__auto__,size__4522__auto__,b__35380,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
,null));
var alt__30288__auto__ = (new cljs.core.Delay(((function (i__35379,con__30287__auto__,column_id,hidden_QMARK_,disable_sort,n,c__4521__auto__,size__4522__auto__,b__35380,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function (){
return weathergen.ui.grids.sorters.call(null,sort_criteria,column_id);
});})(i__35379,con__30287__auto__,column_id,hidden_QMARK_,disable_sort,n,c__4521__auto__,size__4522__auto__,b__35380,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
,null));
var tpl__30289__auto__ = ((function (i__35379,con__30287__auto__,alt__30288__auto__,column_id,hidden_QMARK_,disable_sort,n,c__4521__auto__,size__4522__auto__,b__35380,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function (p__30290__auto__){
return cljs.core.deref.call(null,(function (){var or__4131__auto__ = (cljs.core.truth_(p__30290__auto__)?con__30287__auto__:alt__30288__auto__);
if(cljs.core.truth_(or__4131__auto__)){
return or__4131__auto__;
} else {
return cljs.core.atom.call(null,null);
}
})());
});})(i__35379,con__30287__auto__,alt__30288__auto__,column_id,hidden_QMARK_,disable_sort,n,c__4521__auto__,size__4522__auto__,b__35380,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
;
return javelin.core.formula.call(null,tpl__30289__auto__).call(null,disable_sort);
})(),(function (){var con__30287__auto__ = (new cljs.core.Delay(((function (i__35379,column_id,hidden_QMARK_,disable_sort,n,c__4521__auto__,size__4522__auto__,b__35380,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function (){
return weathergen.ui.buttons.a_button.call(null,new cljs.core.Keyword(null,"title","title",636505583),"Move column right",new cljs.core.Keyword(null,"css","css",1135045163),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"background","background",-863952629),"linear-gradient(white, white 50%, rgb(195, 194, 194) 100%)"], null),new cljs.core.Keyword(null,"click","click",1912301393),((function (i__35379,column_id,hidden_QMARK_,disable_sort,n,c__4521__auto__,size__4522__auto__,b__35380,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function (){
cljs.core.swap_BANG_.call(null,movable_columns,weathergen.ui.grids.nudge,cljs.core.deref.call(null,column_id),(1));

return false;
});})(i__35379,column_id,hidden_QMARK_,disable_sort,n,c__4521__auto__,size__4522__auto__,b__35380,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
,">");
});})(i__35379,column_id,hidden_QMARK_,disable_sort,n,c__4521__auto__,size__4522__auto__,b__35380,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
,null));
var alt__30288__auto__ = (new cljs.core.Delay(((function (i__35379,con__30287__auto__,column_id,hidden_QMARK_,disable_sort,n,c__4521__auto__,size__4522__auto__,b__35380,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function (){
return null;
});})(i__35379,con__30287__auto__,column_id,hidden_QMARK_,disable_sort,n,c__4521__auto__,size__4522__auto__,b__35380,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
,null));
var tpl__30289__auto__ = ((function (i__35379,con__30287__auto__,alt__30288__auto__,column_id,hidden_QMARK_,disable_sort,n,c__4521__auto__,size__4522__auto__,b__35380,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function (p__30290__auto__){
return cljs.core.deref.call(null,(function (){var or__4131__auto__ = (cljs.core.truth_(p__30290__auto__)?con__30287__auto__:alt__30288__auto__);
if(cljs.core.truth_(or__4131__auto__)){
return or__4131__auto__;
} else {
return cljs.core.atom.call(null,null);
}
})());
});})(i__35379,con__30287__auto__,alt__30288__auto__,column_id,hidden_QMARK_,disable_sort,n,c__4521__auto__,size__4522__auto__,b__35380,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
;
return javelin.core.formula.call(null,tpl__30289__auto__).call(null,javelin.core.formula.call(null,((function (i__35379,con__30287__auto__,alt__30288__auto__,tpl__30289__auto__,column_id,hidden_QMARK_,disable_sort,n,c__4521__auto__,size__4522__auto__,b__35380,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function (G__35393,G__35392,G__35391,G__35389,G__35390){
var and__4120__auto__ = (G__35389.call(null,G__35390) <= G__35391);
if(cljs.core.truth_(and__4120__auto__)){
var and__4120__auto____$1 = (G__35391 < (G__35392 - (1)));
if(cljs.core.truth_(and__4120__auto____$1)){
return G__35393;
} else {
return and__4120__auto____$1;
}
} else {
return and__4120__auto__;
}
});})(i__35379,con__30287__auto__,alt__30288__auto__,tpl__30289__auto__,column_id,hidden_QMARK_,disable_sort,n,c__4521__auto__,size__4522__auto__,b__35380,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
).call(null,editing_columns_QMARK_,num_columns,n,cljs.core.count,fixed_columns));
})());
})());

var G__35437 = (i__35379 + (1));
i__35379 = G__35437;
continue;
} else {
return true;
}
break;
}
})()){
return cljs.core.chunk_cons.call(null,cljs.core.chunk.call(null,b__35380),weathergen$ui$grids$table_grid_$_iter__35377.call(null,cljs.core.chunk_rest.call(null,s__35378__$2)));
} else {
return cljs.core.chunk_cons.call(null,cljs.core.chunk.call(null,b__35380),null);
}
} else {
var n = cljs.core.first.call(null,s__35378__$2);
return cljs.core.cons.call(null,(function (){var column_id = javelin.core.formula.call(null,((function (n,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function (column_order__$1){
return cljs.core.nth.call(null,column_order__$1,n);
});})(n,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
).call(null,column_order);
var hidden_QMARK_ = javelin.core.formula.call(null,((function (column_id,n,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function (hidden_columns__$1,column_id__$1){
return hidden_columns__$1.call(null,column_id__$1);
});})(column_id,n,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
).call(null,hidden_columns,column_id);
var disable_sort = javelin.core.formula.call(null,((function (column_id,hidden_QMARK_,n,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function (column_id__$1){
return new cljs.core.Keyword(null,"disable-sort","disable-sort",-579071276).cljs$core$IFn$_invoke$arity$1(cljs.core.get.call(null,columns,column_id__$1));
});})(column_id,hidden_QMARK_,n,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
).call(null,column_id);
return td.call(null,new cljs.core.Keyword(null,"class","class",-2030961996),javelin.core.formula.call(null,((function (column_id,hidden_QMARK_,disable_sort,n,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function (editing_columns_QMARK___$1,hidden_QMARK___$1){
return new cljs.core.PersistentArrayMap(null, 2, [new cljs.core.Keyword(null,"hidden-column","hidden-column",298731236),(function (){var and__4120__auto__ = cljs.core.not.call(null,editing_columns_QMARK___$1);
if(and__4120__auto__){
return hidden_QMARK___$1;
} else {
return and__4120__auto__;
}
})(),new cljs.core.Keyword(null,"table-grid-cell","table-grid-cell",573917102),true], null);
});})(column_id,hidden_QMARK_,disable_sort,n,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
).call(null,editing_columns_QMARK_,hidden_QMARK_),new cljs.core.Keyword(null,"click","click",1912301393),((function (column_id,hidden_QMARK_,disable_sort,n,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function (){
if(cljs.core.truth_(cljs.core.deref.call(null,disable_sort))){
return null;
} else {
cljs.core.swap_BANG_.call(null,sort_criteria,((function (column_id,hidden_QMARK_,disable_sort,n,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function (p__35394){
var vec__35395 = p__35394;
var old_index = cljs.core.nth.call(null,vec__35395,(0),null);
var direction = cljs.core.nth.call(null,vec__35395,(1),null);
return new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [cljs.core.deref.call(null,column_id),((cljs.core.not_EQ_.call(null,old_index,cljs.core.deref.call(null,column_id)))?new cljs.core.Keyword(null,"ascending","ascending",-988350486):((cljs.core._EQ_.call(null,direction,new cljs.core.Keyword(null,"ascending","ascending",-988350486)))?new cljs.core.Keyword(null,"descending","descending",-24766135):new cljs.core.Keyword(null,"ascending","ascending",-988350486)
))], null);
});})(column_id,hidden_QMARK_,disable_sort,n,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
);

return true;
}
});})(column_id,hidden_QMARK_,disable_sort,n,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
,(function (){var con__30287__auto__ = (new cljs.core.Delay(((function (column_id,hidden_QMARK_,disable_sort,n,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function (){
return weathergen.ui.buttons.a_button.call(null,new cljs.core.Keyword(null,"title","title",636505583),"Move column left",new cljs.core.Keyword(null,"css","css",1135045163),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"background","background",-863952629),"linear-gradient(white, white 50%, rgb(195, 194, 194) 100%)"], null),new cljs.core.Keyword(null,"click","click",1912301393),((function (column_id,hidden_QMARK_,disable_sort,n,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function (){
cljs.core.swap_BANG_.call(null,movable_columns,weathergen.ui.grids.nudge,cljs.core.deref.call(null,column_id),(-1));

return false;
});})(column_id,hidden_QMARK_,disable_sort,n,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
,"<");
});})(column_id,hidden_QMARK_,disable_sort,n,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
,null));
var alt__30288__auto__ = (new cljs.core.Delay(((function (con__30287__auto__,column_id,hidden_QMARK_,disable_sort,n,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function (){
return null;
});})(con__30287__auto__,column_id,hidden_QMARK_,disable_sort,n,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
,null));
var tpl__30289__auto__ = ((function (con__30287__auto__,alt__30288__auto__,column_id,hidden_QMARK_,disable_sort,n,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function (p__30290__auto__){
return cljs.core.deref.call(null,(function (){var or__4131__auto__ = (cljs.core.truth_(p__30290__auto__)?con__30287__auto__:alt__30288__auto__);
if(cljs.core.truth_(or__4131__auto__)){
return or__4131__auto__;
} else {
return cljs.core.atom.call(null,null);
}
})());
});})(con__30287__auto__,alt__30288__auto__,column_id,hidden_QMARK_,disable_sort,n,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
;
return javelin.core.formula.call(null,tpl__30289__auto__).call(null,javelin.core.formula.call(null,((function (con__30287__auto__,alt__30288__auto__,tpl__30289__auto__,column_id,hidden_QMARK_,disable_sort,n,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function (G__35401,G__35400,G__35398,G__35399){
var and__4120__auto__ = (G__35398.call(null,G__35399) < G__35400);
if(cljs.core.truth_(and__4120__auto__)){
return G__35401;
} else {
return and__4120__auto__;
}
});})(con__30287__auto__,alt__30288__auto__,tpl__30289__auto__,column_id,hidden_QMARK_,disable_sort,n,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
).call(null,editing_columns_QMARK_,n,cljs.core.count,fixed_columns));
})(),(function (){var con__30287__auto__ = (new cljs.core.Delay(((function (column_id,hidden_QMARK_,disable_sort,n,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function (){
return weathergen.ui.common.inl.call(null,new cljs.core.Keyword(null,"css","css",1135045163),javelin.core.formula.call(null,((function (column_id,hidden_QMARK_,disable_sort,n,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function (hidden_QMARK___$1){
return cljs.core.PersistentHashMap.fromArrays([new cljs.core.Keyword(null,"border-style","border-style",-485574304),new cljs.core.Keyword(null,"line-height","line-height",1870784992),new cljs.core.Keyword(null,"color","color",1011675173),new cljs.core.Keyword(null,"width","width",-384071477),new cljs.core.Keyword(null,"background","background",-863952629),new cljs.core.Keyword(null,"cursor","cursor",1011937484),new cljs.core.Keyword(null,"border-width","border-width",-1512605390),new cljs.core.Keyword(null,"padding","padding",1660304693),new cljs.core.Keyword(null,"border-radius","border-radius",419594011)],["inset","90%",(cljs.core.truth_(hidden_QMARK___$1)?"red":"green"),weathergen.ui.common.px.call(null,(10)),"white","pointer",weathergen.ui.common.px.call(null,(2)),weathergen.ui.common.px.call(null,(1)),weathergen.ui.common.px.call(null,(3))]);
});})(column_id,hidden_QMARK_,disable_sort,n,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
).call(null,hidden_QMARK_),new cljs.core.Keyword(null,"click","click",1912301393),((function (column_id,hidden_QMARK_,disable_sort,n,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function (___$1){
cljs.core.swap_BANG_.call(null,hidden_columns,(cljs.core.truth_(cljs.core.deref.call(null,hidden_QMARK_))?cljs.core.disj:cljs.core.conj),cljs.core.deref.call(null,column_id));

return false;
});})(column_id,hidden_QMARK_,disable_sort,n,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
,(function (){var con__30287__auto__ = (new cljs.core.Delay(((function (column_id,hidden_QMARK_,disable_sort,n,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function (){
return "\u2717";
});})(column_id,hidden_QMARK_,disable_sort,n,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
,null));
var alt__30288__auto__ = (new cljs.core.Delay(((function (con__30287__auto__,column_id,hidden_QMARK_,disable_sort,n,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function (){
return "\u2713";
});})(con__30287__auto__,column_id,hidden_QMARK_,disable_sort,n,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
,null));
var tpl__30289__auto__ = ((function (con__30287__auto__,alt__30288__auto__,column_id,hidden_QMARK_,disable_sort,n,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function (p__30290__auto__){
return cljs.core.deref.call(null,(function (){var or__4131__auto__ = (cljs.core.truth_(p__30290__auto__)?con__30287__auto__:alt__30288__auto__);
if(cljs.core.truth_(or__4131__auto__)){
return or__4131__auto__;
} else {
return cljs.core.atom.call(null,null);
}
})());
});})(con__30287__auto__,alt__30288__auto__,column_id,hidden_QMARK_,disable_sort,n,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
;
return javelin.core.formula.call(null,tpl__30289__auto__).call(null,hidden_QMARK_);
})());
});})(column_id,hidden_QMARK_,disable_sort,n,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
,null));
var alt__30288__auto__ = (new cljs.core.Delay(((function (con__30287__auto__,column_id,hidden_QMARK_,disable_sort,n,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function (){
return null;
});})(con__30287__auto__,column_id,hidden_QMARK_,disable_sort,n,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
,null));
var tpl__30289__auto__ = ((function (con__30287__auto__,alt__30288__auto__,column_id,hidden_QMARK_,disable_sort,n,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function (p__30290__auto__){
return cljs.core.deref.call(null,(function (){var or__4131__auto__ = (cljs.core.truth_(p__30290__auto__)?con__30287__auto__:alt__30288__auto__);
if(cljs.core.truth_(or__4131__auto__)){
return or__4131__auto__;
} else {
return cljs.core.atom.call(null,null);
}
})());
});})(con__30287__auto__,alt__30288__auto__,column_id,hidden_QMARK_,disable_sort,n,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
;
return javelin.core.formula.call(null,tpl__30289__auto__).call(null,editing_columns_QMARK_);
})(),javelin.core.formula.call(null,((function (column_id,hidden_QMARK_,disable_sort,n,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function (column_id__$1){
return new cljs.core.Keyword(null,"title","title",636505583).cljs$core$IFn$_invoke$arity$1(cljs.core.get.call(null,columns,column_id__$1));
});})(column_id,hidden_QMARK_,disable_sort,n,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
).call(null,column_id),(function (){var con__30287__auto__ = (new cljs.core.Delay(((function (column_id,hidden_QMARK_,disable_sort,n,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function (){
return cljs.core.PersistentVector.EMPTY;
});})(column_id,hidden_QMARK_,disable_sort,n,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
,null));
var alt__30288__auto__ = (new cljs.core.Delay(((function (con__30287__auto__,column_id,hidden_QMARK_,disable_sort,n,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function (){
return weathergen.ui.grids.sorters.call(null,sort_criteria,column_id);
});})(con__30287__auto__,column_id,hidden_QMARK_,disable_sort,n,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
,null));
var tpl__30289__auto__ = ((function (con__30287__auto__,alt__30288__auto__,column_id,hidden_QMARK_,disable_sort,n,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function (p__30290__auto__){
return cljs.core.deref.call(null,(function (){var or__4131__auto__ = (cljs.core.truth_(p__30290__auto__)?con__30287__auto__:alt__30288__auto__);
if(cljs.core.truth_(or__4131__auto__)){
return or__4131__auto__;
} else {
return cljs.core.atom.call(null,null);
}
})());
});})(con__30287__auto__,alt__30288__auto__,column_id,hidden_QMARK_,disable_sort,n,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
;
return javelin.core.formula.call(null,tpl__30289__auto__).call(null,disable_sort);
})(),(function (){var con__30287__auto__ = (new cljs.core.Delay(((function (column_id,hidden_QMARK_,disable_sort,n,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function (){
return weathergen.ui.buttons.a_button.call(null,new cljs.core.Keyword(null,"title","title",636505583),"Move column right",new cljs.core.Keyword(null,"css","css",1135045163),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"background","background",-863952629),"linear-gradient(white, white 50%, rgb(195, 194, 194) 100%)"], null),new cljs.core.Keyword(null,"click","click",1912301393),((function (column_id,hidden_QMARK_,disable_sort,n,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function (){
cljs.core.swap_BANG_.call(null,movable_columns,weathergen.ui.grids.nudge,cljs.core.deref.call(null,column_id),(1));

return false;
});})(column_id,hidden_QMARK_,disable_sort,n,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
,">");
});})(column_id,hidden_QMARK_,disable_sort,n,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
,null));
var alt__30288__auto__ = (new cljs.core.Delay(((function (con__30287__auto__,column_id,hidden_QMARK_,disable_sort,n,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function (){
return null;
});})(con__30287__auto__,column_id,hidden_QMARK_,disable_sort,n,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
,null));
var tpl__30289__auto__ = ((function (con__30287__auto__,alt__30288__auto__,column_id,hidden_QMARK_,disable_sort,n,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function (p__30290__auto__){
return cljs.core.deref.call(null,(function (){var or__4131__auto__ = (cljs.core.truth_(p__30290__auto__)?con__30287__auto__:alt__30288__auto__);
if(cljs.core.truth_(or__4131__auto__)){
return or__4131__auto__;
} else {
return cljs.core.atom.call(null,null);
}
})());
});})(con__30287__auto__,alt__30288__auto__,column_id,hidden_QMARK_,disable_sort,n,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
;
return javelin.core.formula.call(null,tpl__30289__auto__).call(null,javelin.core.formula.call(null,((function (con__30287__auto__,alt__30288__auto__,tpl__30289__auto__,column_id,hidden_QMARK_,disable_sort,n,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function (G__35406,G__35405,G__35404,G__35402,G__35403){
var and__4120__auto__ = (G__35402.call(null,G__35403) <= G__35404);
if(cljs.core.truth_(and__4120__auto__)){
var and__4120__auto____$1 = (G__35404 < (G__35405 - (1)));
if(cljs.core.truth_(and__4120__auto____$1)){
return G__35406;
} else {
return and__4120__auto____$1;
}
} else {
return and__4120__auto__;
}
});})(con__30287__auto__,alt__30288__auto__,tpl__30289__auto__,column_id,hidden_QMARK_,disable_sort,n,s__35378__$2,temp__5720__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
).call(null,editing_columns_QMARK_,num_columns,n,cljs.core.count,fixed_columns));
})());
})(),weathergen$ui$grids$table_grid_$_iter__35377.call(null,cljs.core.rest.call(null,s__35378__$2)));
}
} else {
return null;
}
break;
}
});})(sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
,null,null));
});})(sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
;
return iter__4523__auto__.call(null,cljs.core.range.call(null,num_columns));
})())),(function (){var con__30287__auto__ = (new cljs.core.Delay(((function (sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function (){
return tbody.call(null,tr.call(null,td.call(null,new cljs.core.Keyword(null,"colspan","colspan",-1512420934),num_columns,when_empty)));
});})(sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
,null));
var alt__30288__auto__ = (new cljs.core.Delay(((function (con__30287__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function (){
return tbody.call(null,weathergen.ui.common.keyed_loop_tpl_STAR_.call(null,javelin.core.formula.call(null,((function (con__30287__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function (G__35407,G__35408,G__35409){
return G__35407.call(null,G__35408,G__35409);
});})(con__30287__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
).call(null,cljs.core.map_indexed,cljs.core.vector,sorted_items),((function (con__30287__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function (p__35410){
var vec__35411 = p__35410;
var ___$1 = cljs.core.nth.call(null,vec__35411,(0),null);
var item = cljs.core.nth.call(null,vec__35411,(1),null);
return key_fn.call(null,item);
});})(con__30287__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
,((function (con__30287__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function (item__15894__auto__){
var vec__35420 = javelin.core.cell_map.call(null,cljs.core.identity,javelin.core.formula.call(null,((function (con__30287__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function (p__35423){
var vec__35424 = p__35423;
var rownum = cljs.core.nth.call(null,vec__35424,(0),null);
var item = cljs.core.nth.call(null,vec__35424,(1),null);
return new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [rownum,item], null);
});})(con__30287__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
).call(null,item__15894__auto__));
var rownum = cljs.core.nth.call(null,vec__35420,(0),null);
var item = cljs.core.nth.call(null,vec__35420,(1),null);
return tr.call(null,row_attrs.call(null,item,rownum),(function (){var formatteds = cljs.core.apply.call(null,javelin.core.formula.call(null,((function (vec__35420,rownum,item,con__30287__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function() { 
var G__35438__delegate = function (formatteds){
return cljs.core.zipmap.call(null,cljs.core.map.call(null,cljs.core.key,columns),formatteds);
};
var G__35438 = function (var_args){
var formatteds = null;
if (arguments.length > 0) {
var G__35439__i = 0, G__35439__a = new Array(arguments.length -  0);
while (G__35439__i < G__35439__a.length) {G__35439__a[G__35439__i] = arguments[G__35439__i + 0]; ++G__35439__i;}
  formatteds = new cljs.core.IndexedSeq(G__35439__a,0,null);
} 
return G__35438__delegate.call(this,formatteds);};
G__35438.cljs$lang$maxFixedArity = 0;
G__35438.cljs$lang$applyTo = (function (arglist__35440){
var formatteds = cljs.core.seq(arglist__35440);
return G__35438__delegate(formatteds);
});
G__35438.cljs$core$IFn$_invoke$arity$variadic = G__35438__delegate;
return G__35438;
})()
;})(vec__35420,rownum,item,con__30287__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
),cljs.core.map.call(null,((function (vec__35420,rownum,item,con__30287__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function (formatter){
return formatter.call(null,item);
});})(vec__35420,rownum,item,con__30287__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
,cljs.core.map.call(null,new cljs.core.Keyword(null,"formatter","formatter",-483008823),cljs.core.vals.call(null,columns))));
var csses = cljs.core.apply.call(null,javelin.core.formula.call(null,((function (formatteds,vec__35420,rownum,item,con__30287__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function() { 
var G__35441__delegate = function (csses){
return cljs.core.zipmap.call(null,cljs.core.map.call(null,cljs.core.key,columns),csses);
};
var G__35441 = function (var_args){
var csses = null;
if (arguments.length > 0) {
var G__35442__i = 0, G__35442__a = new Array(arguments.length -  0);
while (G__35442__i < G__35442__a.length) {G__35442__a[G__35442__i] = arguments[G__35442__i + 0]; ++G__35442__i;}
  csses = new cljs.core.IndexedSeq(G__35442__a,0,null);
} 
return G__35441__delegate.call(this,csses);};
G__35441.cljs$lang$maxFixedArity = 0;
G__35441.cljs$lang$applyTo = (function (arglist__35443){
var csses = cljs.core.seq(arglist__35443);
return G__35441__delegate(csses);
});
G__35441.cljs$core$IFn$_invoke$arity$variadic = G__35441__delegate;
return G__35441;
})()
;})(formatteds,vec__35420,rownum,item,con__30287__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
),cljs.core.map.call(null,((function (formatteds,vec__35420,rownum,item,con__30287__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function (css){
if(cljs.core.truth_(css)){
return css.call(null,item,rownum);
} else {
return null;
}
});})(formatteds,vec__35420,rownum,item,con__30287__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
,cljs.core.map.call(null,new cljs.core.Keyword(null,"css","css",1135045163),cljs.core.vals.call(null,columns))));
var iter__4523__auto__ = ((function (formatteds,csses,vec__35420,rownum,item,con__30287__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function weathergen$ui$grids$table_grid_$_iter__35427(s__35428){
return (new cljs.core.LazySeq(null,((function (formatteds,csses,vec__35420,rownum,item,con__30287__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function (){
var s__35428__$1 = s__35428;
while(true){
var temp__5720__auto__ = cljs.core.seq.call(null,s__35428__$1);
if(temp__5720__auto__){
var s__35428__$2 = temp__5720__auto__;
if(cljs.core.chunked_seq_QMARK_.call(null,s__35428__$2)){
var c__4521__auto__ = cljs.core.chunk_first.call(null,s__35428__$2);
var size__4522__auto__ = cljs.core.count.call(null,c__4521__auto__);
var b__35430 = cljs.core.chunk_buffer.call(null,size__4522__auto__);
if((function (){var i__35429 = (0);
while(true){
if((i__35429 < size__4522__auto__)){
var n = cljs.core._nth.call(null,c__4521__auto__,i__35429);
cljs.core.chunk_append.call(null,b__35430,(function (){var column_id = javelin.core.formula.call(null,((function (i__35429,n,c__4521__auto__,size__4522__auto__,b__35430,s__35428__$2,temp__5720__auto__,formatteds,csses,vec__35420,rownum,item,con__30287__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function (column_order__$1){
return cljs.core.nth.call(null,column_order__$1,n);
});})(i__35429,n,c__4521__auto__,size__4522__auto__,b__35430,s__35428__$2,temp__5720__auto__,formatteds,csses,vec__35420,rownum,item,con__30287__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
).call(null,column_order);
var hidden_QMARK_ = javelin.core.formula.call(null,((function (i__35429,column_id,n,c__4521__auto__,size__4522__auto__,b__35430,s__35428__$2,temp__5720__auto__,formatteds,csses,vec__35420,rownum,item,con__30287__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function (hidden_columns__$1,column_id__$1){
return hidden_columns__$1.call(null,column_id__$1);
});})(i__35429,column_id,n,c__4521__auto__,size__4522__auto__,b__35430,s__35428__$2,temp__5720__auto__,formatteds,csses,vec__35420,rownum,item,con__30287__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
).call(null,hidden_columns,column_id);
var c = td.call(null);
c.call(null,new cljs.core.Keyword(null,"class","class",-2030961996),javelin.core.formula.call(null,((function (i__35429,c,column_id,hidden_QMARK_,n,c__4521__auto__,size__4522__auto__,b__35430,s__35428__$2,temp__5720__auto__,formatteds,csses,vec__35420,rownum,item,con__30287__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function (editing_columns_QMARK___$1,hidden_QMARK___$1){
return new cljs.core.PersistentArrayMap(null, 2, [new cljs.core.Keyword(null,"hidden-column","hidden-column",298731236),(function (){var and__4120__auto__ = cljs.core.not.call(null,editing_columns_QMARK___$1);
if(and__4120__auto__){
return hidden_QMARK___$1;
} else {
return and__4120__auto__;
}
})(),new cljs.core.Keyword(null,"table-grid-cell","table-grid-cell",573917102),true], null);
});})(i__35429,c,column_id,hidden_QMARK_,n,c__4521__auto__,size__4522__auto__,b__35430,s__35428__$2,temp__5720__auto__,formatteds,csses,vec__35420,rownum,item,con__30287__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
).call(null,editing_columns_QMARK_,hidden_QMARK_),new cljs.core.Keyword(null,"css","css",1135045163),javelin.core.formula.call(null,((function (i__35429,c,column_id,hidden_QMARK_,n,c__4521__auto__,size__4522__auto__,b__35430,s__35428__$2,temp__5720__auto__,formatteds,csses,vec__35420,rownum,item,con__30287__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function (column_id__$1,csses__$1){
var or__4131__auto___35444 = cljs.core.get.call(null,csses__$1,column_id__$1);
if(cljs.core.truth_(or__4131__auto___35444)){
} else {
c.removeAttribute("style");

}

return cljs.core.get.call(null,csses__$1,column_id__$1);
});})(i__35429,c,column_id,hidden_QMARK_,n,c__4521__auto__,size__4522__auto__,b__35430,s__35428__$2,temp__5720__auto__,formatteds,csses,vec__35420,rownum,item,con__30287__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
).call(null,column_id,csses),javelin.core.formula.call(null,((function (i__35429,c,column_id,hidden_QMARK_,n,c__4521__auto__,size__4522__auto__,b__35430,s__35428__$2,temp__5720__auto__,formatteds,csses,vec__35420,rownum,item,con__30287__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function (column_id__$1,formatteds__$1){
return cljs.core.get.call(null,formatteds__$1,column_id__$1);
});})(i__35429,c,column_id,hidden_QMARK_,n,c__4521__auto__,size__4522__auto__,b__35430,s__35428__$2,temp__5720__auto__,formatteds,csses,vec__35420,rownum,item,con__30287__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
).call(null,column_id,formatteds));

return c;
})());

var G__35445 = (i__35429 + (1));
i__35429 = G__35445;
continue;
} else {
return true;
}
break;
}
})()){
return cljs.core.chunk_cons.call(null,cljs.core.chunk.call(null,b__35430),weathergen$ui$grids$table_grid_$_iter__35427.call(null,cljs.core.chunk_rest.call(null,s__35428__$2)));
} else {
return cljs.core.chunk_cons.call(null,cljs.core.chunk.call(null,b__35430),null);
}
} else {
var n = cljs.core.first.call(null,s__35428__$2);
return cljs.core.cons.call(null,(function (){var column_id = javelin.core.formula.call(null,((function (n,s__35428__$2,temp__5720__auto__,formatteds,csses,vec__35420,rownum,item,con__30287__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function (column_order__$1){
return cljs.core.nth.call(null,column_order__$1,n);
});})(n,s__35428__$2,temp__5720__auto__,formatteds,csses,vec__35420,rownum,item,con__30287__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
).call(null,column_order);
var hidden_QMARK_ = javelin.core.formula.call(null,((function (column_id,n,s__35428__$2,temp__5720__auto__,formatteds,csses,vec__35420,rownum,item,con__30287__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function (hidden_columns__$1,column_id__$1){
return hidden_columns__$1.call(null,column_id__$1);
});})(column_id,n,s__35428__$2,temp__5720__auto__,formatteds,csses,vec__35420,rownum,item,con__30287__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
).call(null,hidden_columns,column_id);
var c = td.call(null);
c.call(null,new cljs.core.Keyword(null,"class","class",-2030961996),javelin.core.formula.call(null,((function (c,column_id,hidden_QMARK_,n,s__35428__$2,temp__5720__auto__,formatteds,csses,vec__35420,rownum,item,con__30287__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function (editing_columns_QMARK___$1,hidden_QMARK___$1){
return new cljs.core.PersistentArrayMap(null, 2, [new cljs.core.Keyword(null,"hidden-column","hidden-column",298731236),(function (){var and__4120__auto__ = cljs.core.not.call(null,editing_columns_QMARK___$1);
if(and__4120__auto__){
return hidden_QMARK___$1;
} else {
return and__4120__auto__;
}
})(),new cljs.core.Keyword(null,"table-grid-cell","table-grid-cell",573917102),true], null);
});})(c,column_id,hidden_QMARK_,n,s__35428__$2,temp__5720__auto__,formatteds,csses,vec__35420,rownum,item,con__30287__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
).call(null,editing_columns_QMARK_,hidden_QMARK_),new cljs.core.Keyword(null,"css","css",1135045163),javelin.core.formula.call(null,((function (c,column_id,hidden_QMARK_,n,s__35428__$2,temp__5720__auto__,formatteds,csses,vec__35420,rownum,item,con__30287__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function (column_id__$1,csses__$1){
var or__4131__auto___35446 = cljs.core.get.call(null,csses__$1,column_id__$1);
if(cljs.core.truth_(or__4131__auto___35446)){
} else {
c.removeAttribute("style");

}

return cljs.core.get.call(null,csses__$1,column_id__$1);
});})(c,column_id,hidden_QMARK_,n,s__35428__$2,temp__5720__auto__,formatteds,csses,vec__35420,rownum,item,con__30287__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
).call(null,column_id,csses),javelin.core.formula.call(null,((function (c,column_id,hidden_QMARK_,n,s__35428__$2,temp__5720__auto__,formatteds,csses,vec__35420,rownum,item,con__30287__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function (column_id__$1,formatteds__$1){
return cljs.core.get.call(null,formatteds__$1,column_id__$1);
});})(c,column_id,hidden_QMARK_,n,s__35428__$2,temp__5720__auto__,formatteds,csses,vec__35420,rownum,item,con__30287__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
).call(null,column_id,formatteds));

return c;
})(),weathergen$ui$grids$table_grid_$_iter__35427.call(null,cljs.core.rest.call(null,s__35428__$2)));
}
} else {
return null;
}
break;
}
});})(formatteds,csses,vec__35420,rownum,item,con__30287__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
,null,null));
});})(formatteds,csses,vec__35420,rownum,item,con__30287__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
;
return iter__4523__auto__.call(null,cljs.core.range.call(null,num_columns));
})());
});})(con__30287__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
));
});})(con__30287__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
,null));
var tpl__30289__auto__ = ((function (con__30287__auto__,alt__30288__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function (p__30290__auto__){
return cljs.core.deref.call(null,(function (){var or__4131__auto__ = (cljs.core.truth_(p__30290__auto__)?con__30287__auto__:alt__30288__auto__);
if(cljs.core.truth_(or__4131__auto__)){
return or__4131__auto__;
} else {
return cljs.core.atom.call(null,null);
}
})());
});})(con__30287__auto__,alt__30288__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
;
return javelin.core.formula.call(null,tpl__30289__auto__).call(null,javelin.core.formula.call(null,((function (con__30287__auto__,alt__30288__auto__,tpl__30289__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_){
return (function (G__35433,G__35432,G__35431){
var and__4120__auto__ = (G__35431.call(null,G__35432) === (0));
if(cljs.core.truth_(and__4120__auto__)){
return G__35433;
} else {
return and__4120__auto__;
}
});})(con__30287__auto__,alt__30288__auto__,tpl__30289__auto__,sort_criteria,sorted_items,num_columns,column_order,editing_columns_QMARK_,classify,table,thead,tbody,tr,td,map__35370,map__35370__$1,movable_columns,data,hidden_columns,row_attrs,columns,when_empty,key_fn,initial_sort,fixed_columns,attrs__$1,vec__35367,attrs,_))
).call(null,when_empty,sorted_items,cljs.core.count));
})());
};
var weathergen$ui$grids$table_grid = function (var_args){
var args__30233__auto__ = null;
if (arguments.length > 0) {
var G__35447__i = 0, G__35447__a = new Array(arguments.length -  0);
while (G__35447__i < G__35447__a.length) {G__35447__a[G__35447__i] = arguments[G__35447__i + 0]; ++G__35447__i;}
  args__30233__auto__ = new cljs.core.IndexedSeq(G__35447__a,0,null);
} 
return weathergen$ui$grids$table_grid__delegate.call(this,args__30233__auto__);};
weathergen$ui$grids$table_grid.cljs$lang$maxFixedArity = 0;
weathergen$ui$grids$table_grid.cljs$lang$applyTo = (function (arglist__35448){
var args__30233__auto__ = cljs.core.seq(arglist__35448);
return weathergen$ui$grids$table_grid__delegate(args__30233__auto__);
});
weathergen$ui$grids$table_grid.cljs$core$IFn$_invoke$arity$variadic = weathergen$ui$grids$table_grid__delegate;
return weathergen$ui$grids$table_grid;
})()
;
