goog.provide('replicant.protocols'); /** * @interface */ replicant.protocols.IRender = function(){}; var replicant$protocols$IRender$create_text_node$dyn_48523 = (function (this$,text){ var x__5373__auto__ = (((this$ == null))?null:this$); var m__5374__auto__ = (replicant.protocols.create_text_node[goog.typeOf(x__5373__auto__)]); if((!((m__5374__auto__ == null)))){ return (m__5374__auto__.cljs$core$IFn$_invoke$arity$2 ? m__5374__auto__.cljs$core$IFn$_invoke$arity$2(this$,text) : m__5374__auto__.call(null,this$,text)); } else { var m__5372__auto__ = (replicant.protocols.create_text_node["_"]); if((!((m__5372__auto__ == null)))){ return (m__5372__auto__.cljs$core$IFn$_invoke$arity$2 ? m__5372__auto__.cljs$core$IFn$_invoke$arity$2(this$,text) : m__5372__auto__.call(null,this$,text)); } else { throw cljs.core.missing_protocol("IRender.create-text-node",this$); } } }); replicant.protocols.create_text_node = (function replicant$protocols$create_text_node(this$,text){ var temp__5821__auto__ = cljs.core.get.cljs$core$IFn$_invoke$arity$2(cljs.core.meta(this$),cljs.core.with_meta(new cljs.core.Symbol("replicant.protocols","create-text-node","replicant.protocols/create-text-node",984762211,null),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword("cljs.analyzer","no-resolve","cljs.analyzer/no-resolve",-1872351017),true], null))); if(temp__5821__auto__){ var meta_impl__5375__auto__ = temp__5821__auto__; return (meta_impl__5375__auto__.cljs$core$IFn$_invoke$arity$2 ? meta_impl__5375__auto__.cljs$core$IFn$_invoke$arity$2(this$,text) : meta_impl__5375__auto__.call(null,this$,text)); } else { if((((!((this$ == null)))) && ((!((this$.replicant$protocols$IRender$create_text_node$arity$2 == null)))))){ return this$.replicant$protocols$IRender$create_text_node$arity$2(this$,text); } else { return replicant$protocols$IRender$create_text_node$dyn_48523(this$,text); } } }); var replicant$protocols$IRender$create_element$dyn_48524 = (function (this$,tag_name,options){ var x__5373__auto__ = (((this$ == null))?null:this$); var m__5374__auto__ = (replicant.protocols.create_element[goog.typeOf(x__5373__auto__)]); if((!((m__5374__auto__ == null)))){ return (m__5374__auto__.cljs$core$IFn$_invoke$arity$3 ? m__5374__auto__.cljs$core$IFn$_invoke$arity$3(this$,tag_name,options) : m__5374__auto__.call(null,this$,tag_name,options)); } else { var m__5372__auto__ = (replicant.protocols.create_element["_"]); if((!((m__5372__auto__ == null)))){ return (m__5372__auto__.cljs$core$IFn$_invoke$arity$3 ? m__5372__auto__.cljs$core$IFn$_invoke$arity$3(this$,tag_name,options) : m__5372__auto__.call(null,this$,tag_name,options)); } else { throw cljs.core.missing_protocol("IRender.create-element",this$); } } }); replicant.protocols.create_element = (function replicant$protocols$create_element(this$,tag_name,options){ var temp__5821__auto__ = cljs.core.get.cljs$core$IFn$_invoke$arity$2(cljs.core.meta(this$),cljs.core.with_meta(new cljs.core.Symbol("replicant.protocols","create-element","replicant.protocols/create-element",-546701046,null),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword("cljs.analyzer","no-resolve","cljs.analyzer/no-resolve",-1872351017),true], null))); if(temp__5821__auto__){ var meta_impl__5375__auto__ = temp__5821__auto__; return (meta_impl__5375__auto__.cljs$core$IFn$_invoke$arity$3 ? meta_impl__5375__auto__.cljs$core$IFn$_invoke$arity$3(this$,tag_name,options) : meta_impl__5375__auto__.call(null,this$,tag_name,options)); } else { if((((!((this$ == null)))) && ((!((this$.replicant$protocols$IRender$create_element$arity$3 == null)))))){ return this$.replicant$protocols$IRender$create_element$arity$3(this$,tag_name,options); } else { return replicant$protocols$IRender$create_element$dyn_48524(this$,tag_name,options); } } }); var replicant$protocols$IRender$set_style$dyn_48525 = (function (this$,el,k,v){ var x__5373__auto__ = (((this$ == null))?null:this$); var m__5374__auto__ = (replicant.protocols.set_style[goog.typeOf(x__5373__auto__)]); if((!((m__5374__auto__ == null)))){ return (m__5374__auto__.cljs$core$IFn$_invoke$arity$4 ? m__5374__auto__.cljs$core$IFn$_invoke$arity$4(this$,el,k,v) : m__5374__auto__.call(null,this$,el,k,v)); } else { var m__5372__auto__ = (replicant.protocols.set_style["_"]); if((!((m__5372__auto__ == null)))){ return (m__5372__auto__.cljs$core$IFn$_invoke$arity$4 ? m__5372__auto__.cljs$core$IFn$_invoke$arity$4(this$,el,k,v) : m__5372__auto__.call(null,this$,el,k,v)); } else { throw cljs.core.missing_protocol("IRender.set-style",this$); } } }); replicant.protocols.set_style = (function replicant$protocols$set_style(this$,el,k,v){ var temp__5821__auto__ = cljs.core.get.cljs$core$IFn$_invoke$arity$2(cljs.core.meta(this$),cljs.core.with_meta(new cljs.core.Symbol("replicant.protocols","set-style","replicant.protocols/set-style",1371207247,null),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword("cljs.analyzer","no-resolve","cljs.analyzer/no-resolve",-1872351017),true], null))); if(temp__5821__auto__){ var meta_impl__5375__auto__ = temp__5821__auto__; return (meta_impl__5375__auto__.cljs$core$IFn$_invoke$arity$4 ? meta_impl__5375__auto__.cljs$core$IFn$_invoke$arity$4(this$,el,k,v) : meta_impl__5375__auto__.call(null,this$,el,k,v)); } else { if((((!((this$ == null)))) && ((!((this$.replicant$protocols$IRender$set_style$arity$4 == null)))))){ return this$.replicant$protocols$IRender$set_style$arity$4(this$,el,k,v); } else { return replicant$protocols$IRender$set_style$dyn_48525(this$,el,k,v); } } }); var replicant$protocols$IRender$remove_style$dyn_48526 = (function (this$,el,k){ var x__5373__auto__ = (((this$ == null))?null:this$); var m__5374__auto__ = (replicant.protocols.remove_style[goog.typeOf(x__5373__auto__)]); if((!((m__5374__auto__ == null)))){ return (m__5374__auto__.cljs$core$IFn$_invoke$arity$3 ? m__5374__auto__.cljs$core$IFn$_invoke$arity$3(this$,el,k) : m__5374__auto__.call(null,this$,el,k)); } else { var m__5372__auto__ = (replicant.protocols.remove_style["_"]); if((!((m__5372__auto__ == null)))){ return (m__5372__auto__.cljs$core$IFn$_invoke$arity$3 ? m__5372__auto__.cljs$core$IFn$_invoke$arity$3(this$,el,k) : m__5372__auto__.call(null,this$,el,k)); } else { throw cljs.core.missing_protocol("IRender.remove-style",this$); } } }); replicant.protocols.remove_style = (function replicant$protocols$remove_style(this$,el,k){ var temp__5821__auto__ = cljs.core.get.cljs$core$IFn$_invoke$arity$2(cljs.core.meta(this$),cljs.core.with_meta(new cljs.core.Symbol("replicant.protocols","remove-style","replicant.protocols/remove-style",31335845,null),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword("cljs.analyzer","no-resolve","cljs.analyzer/no-resolve",-1872351017),true], null))); if(temp__5821__auto__){ var meta_impl__5375__auto__ = temp__5821__auto__; return (meta_impl__5375__auto__.cljs$core$IFn$_invoke$arity$3 ? meta_impl__5375__auto__.cljs$core$IFn$_invoke$arity$3(this$,el,k) : meta_impl__5375__auto__.call(null,this$,el,k)); } else { if((((!((this$ == null)))) && ((!((this$.replicant$protocols$IRender$remove_style$arity$3 == null)))))){ return this$.replicant$protocols$IRender$remove_style$arity$3(this$,el,k); } else { return replicant$protocols$IRender$remove_style$dyn_48526(this$,el,k); } } }); var replicant$protocols$IRender$add_class$dyn_48528 = (function (this$,el,cn){ var x__5373__auto__ = (((this$ == null))?null:this$); var m__5374__auto__ = (replicant.protocols.add_class[goog.typeOf(x__5373__auto__)]); if((!((m__5374__auto__ == null)))){ return (m__5374__auto__.cljs$core$IFn$_invoke$arity$3 ? m__5374__auto__.cljs$core$IFn$_invoke$arity$3(this$,el,cn) : m__5374__auto__.call(null,this$,el,cn)); } else { var m__5372__auto__ = (replicant.protocols.add_class["_"]); if((!((m__5372__auto__ == null)))){ return (m__5372__auto__.cljs$core$IFn$_invoke$arity$3 ? m__5372__auto__.cljs$core$IFn$_invoke$arity$3(this$,el,cn) : m__5372__auto__.call(null,this$,el,cn)); } else { throw cljs.core.missing_protocol("IRender.add-class",this$); } } }); replicant.protocols.add_class = (function replicant$protocols$add_class(this$,el,cn){ var temp__5821__auto__ = cljs.core.get.cljs$core$IFn$_invoke$arity$2(cljs.core.meta(this$),cljs.core.with_meta(new cljs.core.Symbol("replicant.protocols","add-class","replicant.protocols/add-class",620888870,null),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword("cljs.analyzer","no-resolve","cljs.analyzer/no-resolve",-1872351017),true], null))); if(temp__5821__auto__){ var meta_impl__5375__auto__ = temp__5821__auto__; return (meta_impl__5375__auto__.cljs$core$IFn$_invoke$arity$3 ? meta_impl__5375__auto__.cljs$core$IFn$_invoke$arity$3(this$,el,cn) : meta_impl__5375__auto__.call(null,this$,el,cn)); } else { if((((!((this$ == null)))) && ((!((this$.replicant$protocols$IRender$add_class$arity$3 == null)))))){ return this$.replicant$protocols$IRender$add_class$arity$3(this$,el,cn); } else { return replicant$protocols$IRender$add_class$dyn_48528(this$,el,cn); } } }); var replicant$protocols$IRender$remove_class$dyn_48529 = (function (this$,el,cn){ var x__5373__auto__ = (((this$ == null))?null:this$); var m__5374__auto__ = (replicant.protocols.remove_class[goog.typeOf(x__5373__auto__)]); if((!((m__5374__auto__ == null)))){ return (m__5374__auto__.cljs$core$IFn$_invoke$arity$3 ? m__5374__auto__.cljs$core$IFn$_invoke$arity$3(this$,el,cn) : m__5374__auto__.call(null,this$,el,cn)); } else { var m__5372__auto__ = (replicant.protocols.remove_class["_"]); if((!((m__5372__auto__ == null)))){ return (m__5372__auto__.cljs$core$IFn$_invoke$arity$3 ? m__5372__auto__.cljs$core$IFn$_invoke$arity$3(this$,el,cn) : m__5372__auto__.call(null,this$,el,cn)); } else { throw cljs.core.missing_protocol("IRender.remove-class",this$); } } }); replicant.protocols.remove_class = (function replicant$protocols$remove_class(this$,el,cn){ var temp__5821__auto__ = cljs.core.get.cljs$core$IFn$_invoke$arity$2(cljs.core.meta(this$),cljs.core.with_meta(new cljs.core.Symbol("replicant.protocols","remove-class","replicant.protocols/remove-class",-246602798,null),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword("cljs.analyzer","no-resolve","cljs.analyzer/no-resolve",-1872351017),true], null))); if(temp__5821__auto__){ var meta_impl__5375__auto__ = temp__5821__auto__; return (meta_impl__5375__auto__.cljs$core$IFn$_invoke$arity$3 ? meta_impl__5375__auto__.cljs$core$IFn$_invoke$arity$3(this$,el,cn) : meta_impl__5375__auto__.call(null,this$,el,cn)); } else { if((((!((this$ == null)))) && ((!((this$.replicant$protocols$IRender$remove_class$arity$3 == null)))))){ return this$.replicant$protocols$IRender$remove_class$arity$3(this$,el,cn); } else { return replicant$protocols$IRender$remove_class$dyn_48529(this$,el,cn); } } }); var replicant$protocols$IRender$set_attribute$dyn_48530 = (function (this$,el,a,v,opt){ var x__5373__auto__ = (((this$ == null))?null:this$); var m__5374__auto__ = (replicant.protocols.set_attribute[goog.typeOf(x__5373__auto__)]); if((!((m__5374__auto__ == null)))){ return (m__5374__auto__.cljs$core$IFn$_invoke$arity$5 ? m__5374__auto__.cljs$core$IFn$_invoke$arity$5(this$,el,a,v,opt) : m__5374__auto__.call(null,this$,el,a,v,opt)); } else { var m__5372__auto__ = (replicant.protocols.set_attribute["_"]); if((!((m__5372__auto__ == null)))){ return (m__5372__auto__.cljs$core$IFn$_invoke$arity$5 ? m__5372__auto__.cljs$core$IFn$_invoke$arity$5(this$,el,a,v,opt) : m__5372__auto__.call(null,this$,el,a,v,opt)); } else { throw cljs.core.missing_protocol("IRender.set-attribute",this$); } } }); replicant.protocols.set_attribute = (function replicant$protocols$set_attribute(this$,el,a,v,opt){ var temp__5821__auto__ = cljs.core.get.cljs$core$IFn$_invoke$arity$2(cljs.core.meta(this$),cljs.core.with_meta(new cljs.core.Symbol("replicant.protocols","set-attribute","replicant.protocols/set-attribute",-1168739265,null),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword("cljs.analyzer","no-resolve","cljs.analyzer/no-resolve",-1872351017),true], null))); if(temp__5821__auto__){ var meta_impl__5375__auto__ = temp__5821__auto__; return (meta_impl__5375__auto__.cljs$core$IFn$_invoke$arity$5 ? meta_impl__5375__auto__.cljs$core$IFn$_invoke$arity$5(this$,el,a,v,opt) : meta_impl__5375__auto__.call(null,this$,el,a,v,opt)); } else { if((((!((this$ == null)))) && ((!((this$.replicant$protocols$IRender$set_attribute$arity$5 == null)))))){ return this$.replicant$protocols$IRender$set_attribute$arity$5(this$,el,a,v,opt); } else { return replicant$protocols$IRender$set_attribute$dyn_48530(this$,el,a,v,opt); } } }); var replicant$protocols$IRender$remove_attribute$dyn_48533 = (function (this$,el,a){ var x__5373__auto__ = (((this$ == null))?null:this$); var m__5374__auto__ = (replicant.protocols.remove_attribute[goog.typeOf(x__5373__auto__)]); if((!((m__5374__auto__ == null)))){ return (m__5374__auto__.cljs$core$IFn$_invoke$arity$3 ? m__5374__auto__.cljs$core$IFn$_invoke$arity$3(this$,el,a) : m__5374__auto__.call(null,this$,el,a)); } else { var m__5372__auto__ = (replicant.protocols.remove_attribute["_"]); if((!((m__5372__auto__ == null)))){ return (m__5372__auto__.cljs$core$IFn$_invoke$arity$3 ? m__5372__auto__.cljs$core$IFn$_invoke$arity$3(this$,el,a) : m__5372__auto__.call(null,this$,el,a)); } else { throw cljs.core.missing_protocol("IRender.remove-attribute",this$); } } }); replicant.protocols.remove_attribute = (function replicant$protocols$remove_attribute(this$,el,a){ var temp__5821__auto__ = cljs.core.get.cljs$core$IFn$_invoke$arity$2(cljs.core.meta(this$),cljs.core.with_meta(new cljs.core.Symbol("replicant.protocols","remove-attribute","replicant.protocols/remove-attribute",1352379510,null),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword("cljs.analyzer","no-resolve","cljs.analyzer/no-resolve",-1872351017),true], null))); if(temp__5821__auto__){ var meta_impl__5375__auto__ = temp__5821__auto__; return (meta_impl__5375__auto__.cljs$core$IFn$_invoke$arity$3 ? meta_impl__5375__auto__.cljs$core$IFn$_invoke$arity$3(this$,el,a) : meta_impl__5375__auto__.call(null,this$,el,a)); } else { if((((!((this$ == null)))) && ((!((this$.replicant$protocols$IRender$remove_attribute$arity$3 == null)))))){ return this$.replicant$protocols$IRender$remove_attribute$arity$3(this$,el,a); } else { return replicant$protocols$IRender$remove_attribute$dyn_48533(this$,el,a); } } }); var replicant$protocols$IRender$set_event_handler$dyn_48534 = (function (this$,el,event,handler,opt){ var x__5373__auto__ = (((this$ == null))?null:this$); var m__5374__auto__ = (replicant.protocols.set_event_handler[goog.typeOf(x__5373__auto__)]); if((!((m__5374__auto__ == null)))){ return (m__5374__auto__.cljs$core$IFn$_invoke$arity$5 ? m__5374__auto__.cljs$core$IFn$_invoke$arity$5(this$,el,event,handler,opt) : m__5374__auto__.call(null,this$,el,event,handler,opt)); } else { var m__5372__auto__ = (replicant.protocols.set_event_handler["_"]); if((!((m__5372__auto__ == null)))){ return (m__5372__auto__.cljs$core$IFn$_invoke$arity$5 ? m__5372__auto__.cljs$core$IFn$_invoke$arity$5(this$,el,event,handler,opt) : m__5372__auto__.call(null,this$,el,event,handler,opt)); } else { throw cljs.core.missing_protocol("IRender.set-event-handler",this$); } } }); replicant.protocols.set_event_handler = (function replicant$protocols$set_event_handler(this$,el,event,handler,opt){ var temp__5821__auto__ = cljs.core.get.cljs$core$IFn$_invoke$arity$2(cljs.core.meta(this$),cljs.core.with_meta(new cljs.core.Symbol("replicant.protocols","set-event-handler","replicant.protocols/set-event-handler",-547103902,null),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword("cljs.analyzer","no-resolve","cljs.analyzer/no-resolve",-1872351017),true], null))); if(temp__5821__auto__){ var meta_impl__5375__auto__ = temp__5821__auto__; return (meta_impl__5375__auto__.cljs$core$IFn$_invoke$arity$5 ? meta_impl__5375__auto__.cljs$core$IFn$_invoke$arity$5(this$,el,event,handler,opt) : meta_impl__5375__auto__.call(null,this$,el,event,handler,opt)); } else { if((((!((this$ == null)))) && ((!((this$.replicant$protocols$IRender$set_event_handler$arity$5 == null)))))){ return this$.replicant$protocols$IRender$set_event_handler$arity$5(this$,el,event,handler,opt); } else { return replicant$protocols$IRender$set_event_handler$dyn_48534(this$,el,event,handler,opt); } } }); var replicant$protocols$IRender$remove_event_handler$dyn_48537 = (function (this$,el,event,opt){ var x__5373__auto__ = (((this$ == null))?null:this$); var m__5374__auto__ = (replicant.protocols.remove_event_handler[goog.typeOf(x__5373__auto__)]); if((!((m__5374__auto__ == null)))){ return (m__5374__auto__.cljs$core$IFn$_invoke$arity$4 ? m__5374__auto__.cljs$core$IFn$_invoke$arity$4(this$,el,event,opt) : m__5374__auto__.call(null,this$,el,event,opt)); } else { var m__5372__auto__ = (replicant.protocols.remove_event_handler["_"]); if((!((m__5372__auto__ == null)))){ return (m__5372__auto__.cljs$core$IFn$_invoke$arity$4 ? m__5372__auto__.cljs$core$IFn$_invoke$arity$4(this$,el,event,opt) : m__5372__auto__.call(null,this$,el,event,opt)); } else { throw cljs.core.missing_protocol("IRender.remove-event-handler",this$); } } }); replicant.protocols.remove_event_handler = (function replicant$protocols$remove_event_handler(this$,el,event,opt){ var temp__5821__auto__ = cljs.core.get.cljs$core$IFn$_invoke$arity$2(cljs.core.meta(this$),cljs.core.with_meta(new cljs.core.Symbol("replicant.protocols","remove-event-handler","replicant.protocols/remove-event-handler",1301579080,null),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword("cljs.analyzer","no-resolve","cljs.analyzer/no-resolve",-1872351017),true], null))); if(temp__5821__auto__){ var meta_impl__5375__auto__ = temp__5821__auto__; return (meta_impl__5375__auto__.cljs$core$IFn$_invoke$arity$4 ? meta_impl__5375__auto__.cljs$core$IFn$_invoke$arity$4(this$,el,event,opt) : meta_impl__5375__auto__.call(null,this$,el,event,opt)); } else { if((((!((this$ == null)))) && ((!((this$.replicant$protocols$IRender$remove_event_handler$arity$4 == null)))))){ return this$.replicant$protocols$IRender$remove_event_handler$arity$4(this$,el,event,opt); } else { return replicant$protocols$IRender$remove_event_handler$dyn_48537(this$,el,event,opt); } } }); var replicant$protocols$IRender$insert_before$dyn_48538 = (function (this$,el,child_node,reference_node){ var x__5373__auto__ = (((this$ == null))?null:this$); var m__5374__auto__ = (replicant.protocols.insert_before[goog.typeOf(x__5373__auto__)]); if((!((m__5374__auto__ == null)))){ return (m__5374__auto__.cljs$core$IFn$_invoke$arity$4 ? m__5374__auto__.cljs$core$IFn$_invoke$arity$4(this$,el,child_node,reference_node) : m__5374__auto__.call(null,this$,el,child_node,reference_node)); } else { var m__5372__auto__ = (replicant.protocols.insert_before["_"]); if((!((m__5372__auto__ == null)))){ return (m__5372__auto__.cljs$core$IFn$_invoke$arity$4 ? m__5372__auto__.cljs$core$IFn$_invoke$arity$4(this$,el,child_node,reference_node) : m__5372__auto__.call(null,this$,el,child_node,reference_node)); } else { throw cljs.core.missing_protocol("IRender.insert-before",this$); } } }); replicant.protocols.insert_before = (function replicant$protocols$insert_before(this$,el,child_node,reference_node){ var temp__5821__auto__ = cljs.core.get.cljs$core$IFn$_invoke$arity$2(cljs.core.meta(this$),cljs.core.with_meta(new cljs.core.Symbol("replicant.protocols","insert-before","replicant.protocols/insert-before",255701854,null),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword("cljs.analyzer","no-resolve","cljs.analyzer/no-resolve",-1872351017),true], null))); if(temp__5821__auto__){ var meta_impl__5375__auto__ = temp__5821__auto__; return (meta_impl__5375__auto__.cljs$core$IFn$_invoke$arity$4 ? meta_impl__5375__auto__.cljs$core$IFn$_invoke$arity$4(this$,el,child_node,reference_node) : meta_impl__5375__auto__.call(null,this$,el,child_node,reference_node)); } else { if((((!((this$ == null)))) && ((!((this$.replicant$protocols$IRender$insert_before$arity$4 == null)))))){ return this$.replicant$protocols$IRender$insert_before$arity$4(this$,el,child_node,reference_node); } else { return replicant$protocols$IRender$insert_before$dyn_48538(this$,el,child_node,reference_node); } } }); var replicant$protocols$IRender$append_child$dyn_48541 = (function (this$,el,child_node){ var x__5373__auto__ = (((this$ == null))?null:this$); var m__5374__auto__ = (replicant.protocols.append_child[goog.typeOf(x__5373__auto__)]); if((!((m__5374__auto__ == null)))){ return (m__5374__auto__.cljs$core$IFn$_invoke$arity$3 ? m__5374__auto__.cljs$core$IFn$_invoke$arity$3(this$,el,child_node) : m__5374__auto__.call(null,this$,el,child_node)); } else { var m__5372__auto__ = (replicant.protocols.append_child["_"]); if((!((m__5372__auto__ == null)))){ return (m__5372__auto__.cljs$core$IFn$_invoke$arity$3 ? m__5372__auto__.cljs$core$IFn$_invoke$arity$3(this$,el,child_node) : m__5372__auto__.call(null,this$,el,child_node)); } else { throw cljs.core.missing_protocol("IRender.append-child",this$); } } }); replicant.protocols.append_child = (function replicant$protocols$append_child(this$,el,child_node){ var temp__5821__auto__ = cljs.core.get.cljs$core$IFn$_invoke$arity$2(cljs.core.meta(this$),cljs.core.with_meta(new cljs.core.Symbol("replicant.protocols","append-child","replicant.protocols/append-child",-871268718,null),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword("cljs.analyzer","no-resolve","cljs.analyzer/no-resolve",-1872351017),true], null))); if(temp__5821__auto__){ var meta_impl__5375__auto__ = temp__5821__auto__; return (meta_impl__5375__auto__.cljs$core$IFn$_invoke$arity$3 ? meta_impl__5375__auto__.cljs$core$IFn$_invoke$arity$3(this$,el,child_node) : meta_impl__5375__auto__.call(null,this$,el,child_node)); } else { if((((!((this$ == null)))) && ((!((this$.replicant$protocols$IRender$append_child$arity$3 == null)))))){ return this$.replicant$protocols$IRender$append_child$arity$3(this$,el,child_node); } else { return replicant$protocols$IRender$append_child$dyn_48541(this$,el,child_node); } } }); var replicant$protocols$IRender$remove_child$dyn_48543 = (function (this$,el,child_node){ var x__5373__auto__ = (((this$ == null))?null:this$); var m__5374__auto__ = (replicant.protocols.remove_child[goog.typeOf(x__5373__auto__)]); if((!((m__5374__auto__ == null)))){ return (m__5374__auto__.cljs$core$IFn$_invoke$arity$3 ? m__5374__auto__.cljs$core$IFn$_invoke$arity$3(this$,el,child_node) : m__5374__auto__.call(null,this$,el,child_node)); } else { var m__5372__auto__ = (replicant.protocols.remove_child["_"]); if((!((m__5372__auto__ == null)))){ return (m__5372__auto__.cljs$core$IFn$_invoke$arity$3 ? m__5372__auto__.cljs$core$IFn$_invoke$arity$3(this$,el,child_node) : m__5372__auto__.call(null,this$,el,child_node)); } else { throw cljs.core.missing_protocol("IRender.remove-child",this$); } } }); replicant.protocols.remove_child = (function replicant$protocols$remove_child(this$,el,child_node){ var temp__5821__auto__ = cljs.core.get.cljs$core$IFn$_invoke$arity$2(cljs.core.meta(this$),cljs.core.with_meta(new cljs.core.Symbol("replicant.protocols","remove-child","replicant.protocols/remove-child",-2065052402,null),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword("cljs.analyzer","no-resolve","cljs.analyzer/no-resolve",-1872351017),true], null))); if(temp__5821__auto__){ var meta_impl__5375__auto__ = temp__5821__auto__; return (meta_impl__5375__auto__.cljs$core$IFn$_invoke$arity$3 ? meta_impl__5375__auto__.cljs$core$IFn$_invoke$arity$3(this$,el,child_node) : meta_impl__5375__auto__.call(null,this$,el,child_node)); } else { if((((!((this$ == null)))) && ((!((this$.replicant$protocols$IRender$remove_child$arity$3 == null)))))){ return this$.replicant$protocols$IRender$remove_child$arity$3(this$,el,child_node); } else { return replicant$protocols$IRender$remove_child$dyn_48543(this$,el,child_node); } } }); var replicant$protocols$IRender$on_transition_end$dyn_48545 = (function (this$,el,f){ var x__5373__auto__ = (((this$ == null))?null:this$); var m__5374__auto__ = (replicant.protocols.on_transition_end[goog.typeOf(x__5373__auto__)]); if((!((m__5374__auto__ == null)))){ return (m__5374__auto__.cljs$core$IFn$_invoke$arity$3 ? m__5374__auto__.cljs$core$IFn$_invoke$arity$3(this$,el,f) : m__5374__auto__.call(null,this$,el,f)); } else { var m__5372__auto__ = (replicant.protocols.on_transition_end["_"]); if((!((m__5372__auto__ == null)))){ return (m__5372__auto__.cljs$core$IFn$_invoke$arity$3 ? m__5372__auto__.cljs$core$IFn$_invoke$arity$3(this$,el,f) : m__5372__auto__.call(null,this$,el,f)); } else { throw cljs.core.missing_protocol("IRender.on-transition-end",this$); } } }); replicant.protocols.on_transition_end = (function replicant$protocols$on_transition_end(this$,el,f){ var temp__5821__auto__ = cljs.core.get.cljs$core$IFn$_invoke$arity$2(cljs.core.meta(this$),cljs.core.with_meta(new cljs.core.Symbol("replicant.protocols","on-transition-end","replicant.protocols/on-transition-end",-1368016388,null),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword("cljs.analyzer","no-resolve","cljs.analyzer/no-resolve",-1872351017),true], null))); if(temp__5821__auto__){ var meta_impl__5375__auto__ = temp__5821__auto__; return (meta_impl__5375__auto__.cljs$core$IFn$_invoke$arity$3 ? meta_impl__5375__auto__.cljs$core$IFn$_invoke$arity$3(this$,el,f) : meta_impl__5375__auto__.call(null,this$,el,f)); } else { if((((!((this$ == null)))) && ((!((this$.replicant$protocols$IRender$on_transition_end$arity$3 == null)))))){ return this$.replicant$protocols$IRender$on_transition_end$arity$3(this$,el,f); } else { return replicant$protocols$IRender$on_transition_end$dyn_48545(this$,el,f); } } }); var replicant$protocols$IRender$replace_child$dyn_48546 = (function (this$,el,insert_child,replace_child){ var x__5373__auto__ = (((this$ == null))?null:this$); var m__5374__auto__ = (replicant.protocols.replace_child[goog.typeOf(x__5373__auto__)]); if((!((m__5374__auto__ == null)))){ return (m__5374__auto__.cljs$core$IFn$_invoke$arity$4 ? m__5374__auto__.cljs$core$IFn$_invoke$arity$4(this$,el,insert_child,replace_child) : m__5374__auto__.call(null,this$,el,insert_child,replace_child)); } else { var m__5372__auto__ = (replicant.protocols.replace_child["_"]); if((!((m__5372__auto__ == null)))){ return (m__5372__auto__.cljs$core$IFn$_invoke$arity$4 ? m__5372__auto__.cljs$core$IFn$_invoke$arity$4(this$,el,insert_child,replace_child) : m__5372__auto__.call(null,this$,el,insert_child,replace_child)); } else { throw cljs.core.missing_protocol("IRender.replace-child",this$); } } }); replicant.protocols.replace_child = (function replicant$protocols$replace_child(this$,el,insert_child,replace_child){ var temp__5821__auto__ = cljs.core.get.cljs$core$IFn$_invoke$arity$2(cljs.core.meta(this$),cljs.core.with_meta(new cljs.core.Symbol("replicant.protocols","replace-child","replicant.protocols/replace-child",411778711,null),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword("cljs.analyzer","no-resolve","cljs.analyzer/no-resolve",-1872351017),true], null))); if(temp__5821__auto__){ var meta_impl__5375__auto__ = temp__5821__auto__; return (meta_impl__5375__auto__.cljs$core$IFn$_invoke$arity$4 ? meta_impl__5375__auto__.cljs$core$IFn$_invoke$arity$4(this$,el,insert_child,replace_child) : meta_impl__5375__auto__.call(null,this$,el,insert_child,replace_child)); } else { if((((!((this$ == null)))) && ((!((this$.replicant$protocols$IRender$replace_child$arity$4 == null)))))){ return this$.replicant$protocols$IRender$replace_child$arity$4(this$,el,insert_child,replace_child); } else { return replicant$protocols$IRender$replace_child$dyn_48546(this$,el,insert_child,replace_child); } } }); var replicant$protocols$IRender$remove_all_children$dyn_48547 = (function (this$,el){ var x__5373__auto__ = (((this$ == null))?null:this$); var m__5374__auto__ = (replicant.protocols.remove_all_children[goog.typeOf(x__5373__auto__)]); if((!((m__5374__auto__ == null)))){ return (m__5374__auto__.cljs$core$IFn$_invoke$arity$2 ? m__5374__auto__.cljs$core$IFn$_invoke$arity$2(this$,el) : m__5374__auto__.call(null,this$,el)); } else { var m__5372__auto__ = (replicant.protocols.remove_all_children["_"]); if((!((m__5372__auto__ == null)))){ return (m__5372__auto__.cljs$core$IFn$_invoke$arity$2 ? m__5372__auto__.cljs$core$IFn$_invoke$arity$2(this$,el) : m__5372__auto__.call(null,this$,el)); } else { throw cljs.core.missing_protocol("IRender.remove-all-children",this$); } } }); replicant.protocols.remove_all_children = (function replicant$protocols$remove_all_children(this$,el){ var temp__5821__auto__ = cljs.core.get.cljs$core$IFn$_invoke$arity$2(cljs.core.meta(this$),cljs.core.with_meta(new cljs.core.Symbol("replicant.protocols","remove-all-children","replicant.protocols/remove-all-children",1448729164,null),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword("cljs.analyzer","no-resolve","cljs.analyzer/no-resolve",-1872351017),true], null))); if(temp__5821__auto__){ var meta_impl__5375__auto__ = temp__5821__auto__; return (meta_impl__5375__auto__.cljs$core$IFn$_invoke$arity$2 ? meta_impl__5375__auto__.cljs$core$IFn$_invoke$arity$2(this$,el) : meta_impl__5375__auto__.call(null,this$,el)); } else { if((((!((this$ == null)))) && ((!((this$.replicant$protocols$IRender$remove_all_children$arity$2 == null)))))){ return this$.replicant$protocols$IRender$remove_all_children$arity$2(this$,el); } else { return replicant$protocols$IRender$remove_all_children$dyn_48547(this$,el); } } }); var replicant$protocols$IRender$get_child$dyn_48548 = (function (this$,el,idx){ var x__5373__auto__ = (((this$ == null))?null:this$); var m__5374__auto__ = (replicant.protocols.get_child[goog.typeOf(x__5373__auto__)]); if((!((m__5374__auto__ == null)))){ return (m__5374__auto__.cljs$core$IFn$_invoke$arity$3 ? m__5374__auto__.cljs$core$IFn$_invoke$arity$3(this$,el,idx) : m__5374__auto__.call(null,this$,el,idx)); } else { var m__5372__auto__ = (replicant.protocols.get_child["_"]); if((!((m__5372__auto__ == null)))){ return (m__5372__auto__.cljs$core$IFn$_invoke$arity$3 ? m__5372__auto__.cljs$core$IFn$_invoke$arity$3(this$,el,idx) : m__5372__auto__.call(null,this$,el,idx)); } else { throw cljs.core.missing_protocol("IRender.get-child",this$); } } }); replicant.protocols.get_child = (function replicant$protocols$get_child(this$,el,idx){ var temp__5821__auto__ = cljs.core.get.cljs$core$IFn$_invoke$arity$2(cljs.core.meta(this$),cljs.core.with_meta(new cljs.core.Symbol("replicant.protocols","get-child","replicant.protocols/get-child",-1508400696,null),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword("cljs.analyzer","no-resolve","cljs.analyzer/no-resolve",-1872351017),true], null))); if(temp__5821__auto__){ var meta_impl__5375__auto__ = temp__5821__auto__; return (meta_impl__5375__auto__.cljs$core$IFn$_invoke$arity$3 ? meta_impl__5375__auto__.cljs$core$IFn$_invoke$arity$3(this$,el,idx) : meta_impl__5375__auto__.call(null,this$,el,idx)); } else { if((((!((this$ == null)))) && ((!((this$.replicant$protocols$IRender$get_child$arity$3 == null)))))){ return this$.replicant$protocols$IRender$get_child$arity$3(this$,el,idx); } else { return replicant$protocols$IRender$get_child$dyn_48548(this$,el,idx); } } }); var replicant$protocols$IRender$next_frame$dyn_48549 = (function (this$,f){ var x__5373__auto__ = (((this$ == null))?null:this$); var m__5374__auto__ = (replicant.protocols.next_frame[goog.typeOf(x__5373__auto__)]); if((!((m__5374__auto__ == null)))){ return (m__5374__auto__.cljs$core$IFn$_invoke$arity$2 ? m__5374__auto__.cljs$core$IFn$_invoke$arity$2(this$,f) : m__5374__auto__.call(null,this$,f)); } else { var m__5372__auto__ = (replicant.protocols.next_frame["_"]); if((!((m__5372__auto__ == null)))){ return (m__5372__auto__.cljs$core$IFn$_invoke$arity$2 ? m__5372__auto__.cljs$core$IFn$_invoke$arity$2(this$,f) : m__5372__auto__.call(null,this$,f)); } else { throw cljs.core.missing_protocol("IRender.next-frame",this$); } } }); replicant.protocols.next_frame = (function replicant$protocols$next_frame(this$,f){ var temp__5821__auto__ = cljs.core.get.cljs$core$IFn$_invoke$arity$2(cljs.core.meta(this$),cljs.core.with_meta(new cljs.core.Symbol("replicant.protocols","next-frame","replicant.protocols/next-frame",-1979859155,null),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword("cljs.analyzer","no-resolve","cljs.analyzer/no-resolve",-1872351017),true], null))); if(temp__5821__auto__){ var meta_impl__5375__auto__ = temp__5821__auto__; return (meta_impl__5375__auto__.cljs$core$IFn$_invoke$arity$2 ? meta_impl__5375__auto__.cljs$core$IFn$_invoke$arity$2(this$,f) : meta_impl__5375__auto__.call(null,this$,f)); } else { if((((!((this$ == null)))) && ((!((this$.replicant$protocols$IRender$next_frame$arity$2 == null)))))){ return this$.replicant$protocols$IRender$next_frame$arity$2(this$,f); } else { return replicant$protocols$IRender$next_frame$dyn_48549(this$,f); } } }); /** * @interface */ replicant.protocols.IMemory = function(){}; var replicant$protocols$IMemory$remember$dyn_48550 = (function (this$,node,memory){ var x__5373__auto__ = (((this$ == null))?null:this$); var m__5374__auto__ = (replicant.protocols.remember[goog.typeOf(x__5373__auto__)]); if((!((m__5374__auto__ == null)))){ return (m__5374__auto__.cljs$core$IFn$_invoke$arity$3 ? m__5374__auto__.cljs$core$IFn$_invoke$arity$3(this$,node,memory) : m__5374__auto__.call(null,this$,node,memory)); } else { var m__5372__auto__ = (replicant.protocols.remember["_"]); if((!((m__5372__auto__ == null)))){ return (m__5372__auto__.cljs$core$IFn$_invoke$arity$3 ? m__5372__auto__.cljs$core$IFn$_invoke$arity$3(this$,node,memory) : m__5372__auto__.call(null,this$,node,memory)); } else { throw cljs.core.missing_protocol("IMemory.remember",this$); } } }); replicant.protocols.remember = (function replicant$protocols$remember(this$,node,memory){ var temp__5821__auto__ = cljs.core.get.cljs$core$IFn$_invoke$arity$2(cljs.core.meta(this$),cljs.core.with_meta(new cljs.core.Symbol("replicant.protocols","remember","replicant.protocols/remember",1562758639,null),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword("cljs.analyzer","no-resolve","cljs.analyzer/no-resolve",-1872351017),true], null))); if(temp__5821__auto__){ var meta_impl__5375__auto__ = temp__5821__auto__; return (meta_impl__5375__auto__.cljs$core$IFn$_invoke$arity$3 ? meta_impl__5375__auto__.cljs$core$IFn$_invoke$arity$3(this$,node,memory) : meta_impl__5375__auto__.call(null,this$,node,memory)); } else { if((((!((this$ == null)))) && ((!((this$.replicant$protocols$IMemory$remember$arity$3 == null)))))){ return this$.replicant$protocols$IMemory$remember$arity$3(this$,node,memory); } else { return replicant$protocols$IMemory$remember$dyn_48550(this$,node,memory); } } }); var replicant$protocols$IMemory$recall$dyn_48551 = (function (this$,node){ var x__5373__auto__ = (((this$ == null))?null:this$); var m__5374__auto__ = (replicant.protocols.recall[goog.typeOf(x__5373__auto__)]); if((!((m__5374__auto__ == null)))){ return (m__5374__auto__.cljs$core$IFn$_invoke$arity$2 ? m__5374__auto__.cljs$core$IFn$_invoke$arity$2(this$,node) : m__5374__auto__.call(null,this$,node)); } else { var m__5372__auto__ = (replicant.protocols.recall["_"]); if((!((m__5372__auto__ == null)))){ return (m__5372__auto__.cljs$core$IFn$_invoke$arity$2 ? m__5372__auto__.cljs$core$IFn$_invoke$arity$2(this$,node) : m__5372__auto__.call(null,this$,node)); } else { throw cljs.core.missing_protocol("IMemory.recall",this$); } } }); replicant.protocols.recall = (function replicant$protocols$recall(this$,node){ var temp__5821__auto__ = cljs.core.get.cljs$core$IFn$_invoke$arity$2(cljs.core.meta(this$),cljs.core.with_meta(new cljs.core.Symbol("replicant.protocols","recall","replicant.protocols/recall",154304953,null),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword("cljs.analyzer","no-resolve","cljs.analyzer/no-resolve",-1872351017),true], null))); if(temp__5821__auto__){ var meta_impl__5375__auto__ = temp__5821__auto__; return (meta_impl__5375__auto__.cljs$core$IFn$_invoke$arity$2 ? meta_impl__5375__auto__.cljs$core$IFn$_invoke$arity$2(this$,node) : meta_impl__5375__auto__.call(null,this$,node)); } else { if((((!((this$ == null)))) && ((!((this$.replicant$protocols$IMemory$recall$arity$2 == null)))))){ return this$.replicant$protocols$IMemory$recall$arity$2(this$,node); } else { return replicant$protocols$IMemory$recall$dyn_48551(this$,node); } } }); //# sourceMappingURL=replicant.protocols.js.map