goog.provide('replicant.transition');
replicant.transition.get_transition_stats = (function replicant$transition$get_transition_stats(transition_duration_s){
var str = cljs.core.str.cljs$core$IFn$_invoke$arity$1(transition_duration_s);
var n = (0);
var duration = (0);
while(true){
var s = str.indexOf("s");
var ms = str.indexOf("ms");
var comma = str.indexOf(",");
if((((s < (0))) && ((ms < (0))))){
return new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [n,cljs.core.unchecked_int(duration)], null);
} else {
var G__49762 = (((comma < (0)))?"":str.substring((comma + (1))).trimLeft());
var G__49763 = (n + (1));
var G__49764 = (function (){var x__5110__auto__ = duration;
var y__5111__auto__ = (((((s < ms)) || ((ms < (0)))))?((1000) * cljs.core.parse_double(str.substring((0),s))):cljs.core.parse_long(str.substring((0),ms)));
return ((x__5110__auto__ > y__5111__auto__) ? x__5110__auto__ : y__5111__auto__);
})();
str = G__49762;
n = G__49763;
duration = G__49764;
continue;
}
break;
}
});

//# sourceMappingURL=replicant.transition.js.map
