@p4ulcristian/iris-layout 0.2.0 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (201) hide show
  1. package/dist/cljs-runtime/cljs.core.js +38746 -0
  2. package/dist/cljs-runtime/cljs.core.js.map +1 -0
  3. package/dist/cljs-runtime/cljs.pprint.js +8400 -0
  4. package/dist/cljs-runtime/cljs.pprint.js.map +1 -0
  5. package/dist/cljs-runtime/cljs.stacktrace.js +561 -0
  6. package/dist/cljs-runtime/cljs.stacktrace.js.map +1 -0
  7. package/dist/cljs-runtime/cljs_env.js +1286 -0
  8. package/dist/cljs-runtime/clojure.data.js +295 -0
  9. package/dist/cljs-runtime/clojure.data.js.map +1 -0
  10. package/dist/cljs-runtime/clojure.set.js +382 -0
  11. package/dist/cljs-runtime/clojure.set.js.map +1 -0
  12. package/dist/cljs-runtime/clojure.string.js +480 -0
  13. package/dist/cljs-runtime/clojure.string.js.map +1 -0
  14. package/dist/cljs-runtime/clojure.walk.js +132 -0
  15. package/dist/cljs-runtime/clojure.walk.js.map +1 -0
  16. package/dist/cljs-runtime/devtools.async.js +90 -0
  17. package/dist/cljs-runtime/devtools.async.js.map +1 -0
  18. package/dist/cljs-runtime/devtools.context.js +11 -0
  19. package/dist/cljs-runtime/devtools.context.js.map +1 -0
  20. package/dist/cljs-runtime/devtools.core.js +175 -0
  21. package/dist/cljs-runtime/devtools.core.js.map +1 -0
  22. package/dist/cljs-runtime/devtools.defaults.js +20 -0
  23. package/dist/cljs-runtime/devtools.defaults.js.map +1 -0
  24. package/dist/cljs-runtime/devtools.format.js +631 -0
  25. package/dist/cljs-runtime/devtools.format.js.map +1 -0
  26. package/dist/cljs-runtime/devtools.formatters.budgeting.js +182 -0
  27. package/dist/cljs-runtime/devtools.formatters.budgeting.js.map +1 -0
  28. package/dist/cljs-runtime/devtools.formatters.core.js +220 -0
  29. package/dist/cljs-runtime/devtools.formatters.core.js.map +1 -0
  30. package/dist/cljs-runtime/devtools.formatters.helpers.js +228 -0
  31. package/dist/cljs-runtime/devtools.formatters.helpers.js.map +1 -0
  32. package/dist/cljs-runtime/devtools.formatters.js +261 -0
  33. package/dist/cljs-runtime/devtools.formatters.js.map +1 -0
  34. package/dist/cljs-runtime/devtools.formatters.markup.js +1174 -0
  35. package/dist/cljs-runtime/devtools.formatters.markup.js.map +1 -0
  36. package/dist/cljs-runtime/devtools.formatters.printing.js +313 -0
  37. package/dist/cljs-runtime/devtools.formatters.printing.js.map +1 -0
  38. package/dist/cljs-runtime/devtools.formatters.state.js +325 -0
  39. package/dist/cljs-runtime/devtools.formatters.state.js.map +1 -0
  40. package/dist/cljs-runtime/devtools.formatters.templating.js +666 -0
  41. package/dist/cljs-runtime/devtools.formatters.templating.js.map +1 -0
  42. package/dist/cljs-runtime/devtools.hints.js +193 -0
  43. package/dist/cljs-runtime/devtools.hints.js.map +1 -0
  44. package/dist/cljs-runtime/devtools.munging.js +1058 -0
  45. package/dist/cljs-runtime/devtools.munging.js.map +1 -0
  46. package/dist/cljs-runtime/devtools.prefs.js +87 -0
  47. package/dist/cljs-runtime/devtools.prefs.js.map +1 -0
  48. package/dist/cljs-runtime/devtools.preload.js +11 -0
  49. package/dist/cljs-runtime/devtools.preload.js.map +1 -0
  50. package/dist/cljs-runtime/devtools.protocols.js +98 -0
  51. package/dist/cljs-runtime/devtools.protocols.js.map +1 -0
  52. package/dist/cljs-runtime/devtools.reporter.js +81 -0
  53. package/dist/cljs-runtime/devtools.reporter.js.map +1 -0
  54. package/dist/cljs-runtime/devtools.toolbox.js +141 -0
  55. package/dist/cljs-runtime/devtools.toolbox.js.map +1 -0
  56. package/dist/cljs-runtime/devtools.util.js +517 -0
  57. package/dist/cljs-runtime/devtools.util.js.map +1 -0
  58. package/dist/cljs-runtime/devtools.version.js +9 -0
  59. package/dist/cljs-runtime/devtools.version.js.map +1 -0
  60. package/dist/cljs-runtime/goog.array.array.js +659 -0
  61. package/dist/cljs-runtime/goog.array.array.js.map +9 -0
  62. package/dist/cljs-runtime/goog.asserts.asserts.js +133 -0
  63. package/dist/cljs-runtime/goog.asserts.asserts.js.map +9 -0
  64. package/dist/cljs-runtime/goog.asserts.dom.js +90 -0
  65. package/dist/cljs-runtime/goog.asserts.dom.js.map +9 -0
  66. package/dist/cljs-runtime/goog.async.nexttick.js +93 -0
  67. package/dist/cljs-runtime/goog.async.nexttick.js.map +9 -0
  68. package/dist/cljs-runtime/goog.base.js +1261 -0
  69. package/dist/cljs-runtime/goog.base.js.map +9 -0
  70. package/dist/cljs-runtime/goog.collections.maps.js +82 -0
  71. package/dist/cljs-runtime/goog.collections.maps.js.map +9 -0
  72. package/dist/cljs-runtime/goog.debug.entrypointregistry.js +44 -0
  73. package/dist/cljs-runtime/goog.debug.entrypointregistry.js.map +9 -0
  74. package/dist/cljs-runtime/goog.debug.error.js +30 -0
  75. package/dist/cljs-runtime/goog.debug.error.js.map +9 -0
  76. package/dist/cljs-runtime/goog.dom.asserts.js +40 -0
  77. package/dist/cljs-runtime/goog.dom.asserts.js.map +9 -0
  78. package/dist/cljs-runtime/goog.dom.browserfeature.js +21 -0
  79. package/dist/cljs-runtime/goog.dom.browserfeature.js.map +9 -0
  80. package/dist/cljs-runtime/goog.dom.dom.js +1087 -0
  81. package/dist/cljs-runtime/goog.dom.dom.js.map +9 -0
  82. package/dist/cljs-runtime/goog.dom.element.js +69 -0
  83. package/dist/cljs-runtime/goog.dom.element.js.map +9 -0
  84. package/dist/cljs-runtime/goog.dom.htmlelement.js +7 -0
  85. package/dist/cljs-runtime/goog.dom.htmlelement.js.map +9 -0
  86. package/dist/cljs-runtime/goog.dom.nodetype.js +6 -0
  87. package/dist/cljs-runtime/goog.dom.nodetype.js.map +9 -0
  88. package/dist/cljs-runtime/goog.dom.safe.js +277 -0
  89. package/dist/cljs-runtime/goog.dom.safe.js.map +9 -0
  90. package/dist/cljs-runtime/goog.dom.tagname.js +147 -0
  91. package/dist/cljs-runtime/goog.dom.tagname.js.map +9 -0
  92. package/dist/cljs-runtime/goog.dom.tags.js +10 -0
  93. package/dist/cljs-runtime/goog.dom.tags.js.map +9 -0
  94. package/dist/cljs-runtime/goog.flags.flags.js +12 -0
  95. package/dist/cljs-runtime/goog.flags.flags.js.map +9 -0
  96. package/dist/cljs-runtime/goog.fs.blob.js +38 -0
  97. package/dist/cljs-runtime/goog.fs.blob.js.map +9 -0
  98. package/dist/cljs-runtime/goog.fs.url.js +37 -0
  99. package/dist/cljs-runtime/goog.fs.url.js.map +9 -0
  100. package/dist/cljs-runtime/goog.functions.functions.js +211 -0
  101. package/dist/cljs-runtime/goog.functions.functions.js.map +9 -0
  102. package/dist/cljs-runtime/goog.html.safehtml.js +321 -0
  103. package/dist/cljs-runtime/goog.html.safehtml.js.map +9 -0
  104. package/dist/cljs-runtime/goog.html.safescript.js +65 -0
  105. package/dist/cljs-runtime/goog.html.safescript.js.map +9 -0
  106. package/dist/cljs-runtime/goog.html.safestyle.js +175 -0
  107. package/dist/cljs-runtime/goog.html.safestyle.js.map +9 -0
  108. package/dist/cljs-runtime/goog.html.safestylesheet.js +99 -0
  109. package/dist/cljs-runtime/goog.html.safestylesheet.js.map +9 -0
  110. package/dist/cljs-runtime/goog.html.safeurl.js +231 -0
  111. package/dist/cljs-runtime/goog.html.safeurl.js.map +9 -0
  112. package/dist/cljs-runtime/goog.html.trustedresourceurl.js +123 -0
  113. package/dist/cljs-runtime/goog.html.trustedresourceurl.js.map +9 -0
  114. package/dist/cljs-runtime/goog.html.trustedtypes.js +16 -0
  115. package/dist/cljs-runtime/goog.html.trustedtypes.js.map +9 -0
  116. package/dist/cljs-runtime/goog.html.uncheckedconversions.js +52 -0
  117. package/dist/cljs-runtime/goog.html.uncheckedconversions.js.map +9 -0
  118. package/dist/cljs-runtime/goog.labs.useragent.browser.js +352 -0
  119. package/dist/cljs-runtime/goog.labs.useragent.browser.js.map +9 -0
  120. package/dist/cljs-runtime/goog.labs.useragent.engine.js +73 -0
  121. package/dist/cljs-runtime/goog.labs.useragent.engine.js.map +9 -0
  122. package/dist/cljs-runtime/goog.labs.useragent.highentropy.highentropydata.js +14 -0
  123. package/dist/cljs-runtime/goog.labs.useragent.highentropy.highentropydata.js.map +9 -0
  124. package/dist/cljs-runtime/goog.labs.useragent.highentropy.highentropyvalue.js +74 -0
  125. package/dist/cljs-runtime/goog.labs.useragent.highentropy.highentropyvalue.js.map +9 -0
  126. package/dist/cljs-runtime/goog.labs.useragent.platform.js +147 -0
  127. package/dist/cljs-runtime/goog.labs.useragent.platform.js.map +9 -0
  128. package/dist/cljs-runtime/goog.labs.useragent.useragent.js +21 -0
  129. package/dist/cljs-runtime/goog.labs.useragent.useragent.js.map +9 -0
  130. package/dist/cljs-runtime/goog.labs.useragent.util.js +81 -0
  131. package/dist/cljs-runtime/goog.labs.useragent.util.js.map +9 -0
  132. package/dist/cljs-runtime/goog.math.coordinate.js +97 -0
  133. package/dist/cljs-runtime/goog.math.coordinate.js.map +9 -0
  134. package/dist/cljs-runtime/goog.math.integer.js +445 -0
  135. package/dist/cljs-runtime/goog.math.integer.js.map +9 -0
  136. package/dist/cljs-runtime/goog.math.long.js +437 -0
  137. package/dist/cljs-runtime/goog.math.long.js.map +9 -0
  138. package/dist/cljs-runtime/goog.math.math.js +158 -0
  139. package/dist/cljs-runtime/goog.math.math.js.map +9 -0
  140. package/dist/cljs-runtime/goog.math.size.js +76 -0
  141. package/dist/cljs-runtime/goog.math.size.js.map +9 -0
  142. package/dist/cljs-runtime/goog.object.object.js +284 -0
  143. package/dist/cljs-runtime/goog.object.object.js.map +9 -0
  144. package/dist/cljs-runtime/goog.reflect.reflect.js +32 -0
  145. package/dist/cljs-runtime/goog.reflect.reflect.js.map +9 -0
  146. package/dist/cljs-runtime/goog.string.const.js +35 -0
  147. package/dist/cljs-runtime/goog.string.const.js.map +9 -0
  148. package/dist/cljs-runtime/goog.string.internal.js +119 -0
  149. package/dist/cljs-runtime/goog.string.internal.js.map +9 -0
  150. package/dist/cljs-runtime/goog.string.string.js +462 -0
  151. package/dist/cljs-runtime/goog.string.string.js.map +9 -0
  152. package/dist/cljs-runtime/goog.string.stringbuffer.js +32 -0
  153. package/dist/cljs-runtime/goog.string.stringbuffer.js.map +9 -0
  154. package/dist/cljs-runtime/goog.string.typedstring.js +9 -0
  155. package/dist/cljs-runtime/goog.string.typedstring.js.map +9 -0
  156. package/dist/cljs-runtime/goog.structs.structs.js +199 -0
  157. package/dist/cljs-runtime/goog.structs.structs.js.map +9 -0
  158. package/dist/cljs-runtime/goog.uri.uri.js +628 -0
  159. package/dist/cljs-runtime/goog.uri.uri.js.map +9 -0
  160. package/dist/cljs-runtime/goog.uri.utils.js +326 -0
  161. package/dist/cljs-runtime/goog.uri.utils.js.map +9 -0
  162. package/dist/cljs-runtime/goog.useragent.useragent.js +139 -0
  163. package/dist/cljs-runtime/goog.useragent.useragent.js.map +9 -0
  164. package/dist/cljs-runtime/iris_layout.components.entity_card_group.js +202 -0
  165. package/dist/cljs-runtime/iris_layout.components.entity_card_group.js.map +1 -0
  166. package/dist/cljs-runtime/iris_layout.components.entity_tile.js +295 -0
  167. package/dist/cljs-runtime/iris_layout.components.entity_tile.js.map +1 -0
  168. package/dist/cljs-runtime/iris_layout.components.entity_tile_group.js +33 -0
  169. package/dist/cljs-runtime/iris_layout.components.entity_tile_group.js.map +1 -0
  170. package/dist/cljs-runtime/iris_layout.components.resizer.js +91 -0
  171. package/dist/cljs-runtime/iris_layout.components.resizer.js.map +1 -0
  172. package/dist/cljs-runtime/iris_layout.components.touch_drag.js +399 -0
  173. package/dist/cljs-runtime/iris_layout.components.touch_drag.js.map +1 -0
  174. package/dist/cljs-runtime/iris_layout.core.js +1372 -0
  175. package/dist/cljs-runtime/iris_layout.core.js.map +1 -0
  176. package/dist/cljs-runtime/iris_layout.layout.js +328 -0
  177. package/dist/cljs-runtime/iris_layout.layout.js.map +1 -0
  178. package/dist/cljs-runtime/reagent.core.js +993 -0
  179. package/dist/cljs-runtime/reagent.core.js.map +1 -0
  180. package/dist/cljs-runtime/reagent.debug.js +75 -0
  181. package/dist/cljs-runtime/reagent.debug.js.map +1 -0
  182. package/dist/cljs-runtime/reagent.impl.batching.js +270 -0
  183. package/dist/cljs-runtime/reagent.impl.batching.js.map +1 -0
  184. package/dist/cljs-runtime/reagent.impl.component.js +758 -0
  185. package/dist/cljs-runtime/reagent.impl.component.js.map +1 -0
  186. package/dist/cljs-runtime/reagent.impl.input.js +175 -0
  187. package/dist/cljs-runtime/reagent.impl.input.js.map +1 -0
  188. package/dist/cljs-runtime/reagent.impl.protocols.js +99 -0
  189. package/dist/cljs-runtime/reagent.impl.protocols.js.map +1 -0
  190. package/dist/cljs-runtime/reagent.impl.template.js +660 -0
  191. package/dist/cljs-runtime/reagent.impl.template.js.map +1 -0
  192. package/dist/cljs-runtime/reagent.impl.util.js +748 -0
  193. package/dist/cljs-runtime/reagent.impl.util.js.map +1 -0
  194. package/dist/cljs-runtime/reagent.ratom.js +1668 -0
  195. package/dist/cljs-runtime/reagent.ratom.js.map +1 -0
  196. package/dist/cljs-runtime/shadow.esm.esm_import$react.js +5 -0
  197. package/dist/cljs-runtime/shadow.module.iris-layout.append.js +2 -0
  198. package/dist/cljs-runtime/shadow.module.iris-layout.prepend.js +2 -0
  199. package/dist/iris-layout.js +375 -355
  200. package/dist/styles.css +287 -9
  201. package/package.json +1 -1
@@ -0,0 +1,660 @@
1
+ import "./cljs_env.js";
2
+ import "./cljs.core.js";
3
+ import "./shadow.esm.esm_import$react.js";
4
+ import "./clojure.string.js";
5
+ import "./reagent.impl.util.js";
6
+ import "./reagent.impl.component.js";
7
+ import "./reagent.impl.input.js";
8
+ import "./reagent.impl.protocols.js";
9
+ import "./reagent.ratom.js";
10
+ import "./reagent.debug.js";
11
+ import "./goog.object.object.js";
12
+ goog.provide('reagent.impl.template');
13
+ goog.scope(function(){
14
+ reagent.impl.template.goog$module$goog$object = goog.module.get('goog.object');
15
+ });
16
+ /**
17
+ * Regular expression that parses a CSS-style id and class
18
+ * from a tag name.
19
+ */
20
+ reagent.impl.template.re_tag = /([^\s\.#]+)(?:#([^\s\.#]+))?(?:\.([^\s#]+))?/;
21
+
22
+ /**
23
+ * @constructor
24
+ */
25
+ reagent.impl.template.NativeWrapper = (function (tag,id,className){
26
+ this.tag = tag;
27
+ this.id = id;
28
+ this.className = className;
29
+ });
30
+
31
+ (reagent.impl.template.NativeWrapper.getBasis = (function (){
32
+ return new cljs.core.PersistentVector(null, 3, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Symbol(null,"tag","tag",350170304,null),new cljs.core.Symbol(null,"id","id",252129435,null),new cljs.core.Symbol(null,"className","className",-342755530,null)], null);
33
+ }));
34
+
35
+ (reagent.impl.template.NativeWrapper.cljs$lang$type = true);
36
+
37
+ (reagent.impl.template.NativeWrapper.cljs$lang$ctorStr = "reagent.impl.template/NativeWrapper");
38
+
39
+ (reagent.impl.template.NativeWrapper.cljs$lang$ctorPrWriter = (function (this__5287__auto__,writer__5288__auto__,opt__5289__auto__){
40
+ return cljs.core._write(writer__5288__auto__,"reagent.impl.template/NativeWrapper");
41
+ }));
42
+
43
+ /**
44
+ * Positional factory function for reagent.impl.template/NativeWrapper.
45
+ */
46
+ reagent.impl.template.__GT_NativeWrapper = (function reagent$impl$template$__GT_NativeWrapper(tag,id,className){
47
+ return (new reagent.impl.template.NativeWrapper(tag,id,className));
48
+ });
49
+
50
+ reagent.impl.template.adapt_react_class = (function reagent$impl$template$adapt_react_class(c){
51
+ return reagent.impl.template.__GT_NativeWrapper(c,null,null);
52
+ });
53
+ reagent.impl.template.hiccup_tag_QMARK_ = (function reagent$impl$template$hiccup_tag_QMARK_(x){
54
+ return ((reagent.impl.util.named_QMARK_(x)) || (typeof x === 'string'));
55
+ });
56
+ reagent.impl.template.valid_tag_QMARK_ = (function reagent$impl$template$valid_tag_QMARK_(x){
57
+ return ((reagent.impl.template.hiccup_tag_QMARK_(x)) || (((cljs.core.ifn_QMARK_(x)) || ((x instanceof reagent.impl.template.NativeWrapper)))));
58
+ });
59
+ reagent.impl.template.prop_name_cache = ({"class": "className", "for": "htmlFor", "charset": "charSet"});
60
+ reagent.impl.template.cache_get = (function reagent$impl$template$cache_get(o,k){
61
+ if(o.hasOwnProperty(k)){
62
+ return reagent.impl.template.goog$module$goog$object.get(o,k);
63
+ } else {
64
+ return null;
65
+ }
66
+ });
67
+ reagent.impl.template.cached_prop_name = (function reagent$impl$template$cached_prop_name(k){
68
+ if(reagent.impl.util.named_QMARK_(k)){
69
+ var temp__5806__auto__ = reagent.impl.template.cache_get(reagent.impl.template.prop_name_cache,cljs.core.name(k));
70
+ if((temp__5806__auto__ == null)){
71
+ var v = reagent.impl.util.dash_to_prop_name(k);
72
+ reagent.impl.template.goog$module$goog$object.set(reagent.impl.template.prop_name_cache,cljs.core.name(k),v);
73
+
74
+ return v;
75
+ } else {
76
+ var k_SINGLEQUOTE_ = temp__5806__auto__;
77
+ return k_SINGLEQUOTE_;
78
+ }
79
+ } else {
80
+ return k;
81
+ }
82
+ });
83
+ reagent.impl.template.kv_conv = (function reagent$impl$template$kv_conv(o,k,v){
84
+ var G__12458 = o;
85
+ reagent.impl.template.goog$module$goog$object.set(G__12458,reagent.impl.template.cached_prop_name(k),(reagent.impl.template.convert_prop_value.cljs$core$IFn$_invoke$arity$1 ? reagent.impl.template.convert_prop_value.cljs$core$IFn$_invoke$arity$1(v) : reagent.impl.template.convert_prop_value.call(null,v)));
86
+
87
+ return G__12458;
88
+ });
89
+ reagent.impl.template.convert_prop_value = (function reagent$impl$template$convert_prop_value(x){
90
+ if(reagent.impl.util.js_val_QMARK_(x)){
91
+ return x;
92
+ } else {
93
+ if(reagent.impl.util.named_QMARK_(x)){
94
+ return cljs.core.name(x);
95
+ } else {
96
+ if(cljs.core.map_QMARK_(x)){
97
+ return cljs.core.reduce_kv(reagent.impl.template.kv_conv,({}),x);
98
+ } else {
99
+ if(cljs.core.coll_QMARK_(x)){
100
+ return cljs.core.clj__GT_js(x);
101
+ } else {
102
+ if(cljs.core.ifn_QMARK_(x)){
103
+ return (function() {
104
+ var G__12476__delegate = function (args){
105
+ return cljs.core.apply.cljs$core$IFn$_invoke$arity$2(x,args);
106
+ };
107
+ var G__12476 = function (var_args){
108
+ var args = null;
109
+ if (arguments.length > 0) {
110
+ var G__12477__i = 0, G__12477__a = new Array(arguments.length - 0);
111
+ while (G__12477__i < G__12477__a.length) {G__12477__a[G__12477__i] = arguments[G__12477__i + 0]; ++G__12477__i;}
112
+ args = new cljs.core.IndexedSeq(G__12477__a,0,null);
113
+ }
114
+ return G__12476__delegate.call(this,args);};
115
+ G__12476.cljs$lang$maxFixedArity = 0;
116
+ G__12476.cljs$lang$applyTo = (function (arglist__12478){
117
+ var args = cljs.core.seq(arglist__12478);
118
+ return G__12476__delegate(args);
119
+ });
120
+ G__12476.cljs$core$IFn$_invoke$arity$variadic = G__12476__delegate;
121
+ return G__12476;
122
+ })()
123
+ ;
124
+ } else {
125
+ return cljs.core.clj__GT_js(x);
126
+
127
+ }
128
+ }
129
+ }
130
+ }
131
+ }
132
+ });
133
+ reagent.impl.template.custom_prop_name_cache = ({});
134
+ reagent.impl.template.cached_custom_prop_name = (function reagent$impl$template$cached_custom_prop_name(k){
135
+ if(reagent.impl.util.named_QMARK_(k)){
136
+ var temp__5806__auto__ = reagent.impl.template.cache_get(reagent.impl.template.custom_prop_name_cache,cljs.core.name(k));
137
+ if((temp__5806__auto__ == null)){
138
+ var v = reagent.impl.util.dash_to_prop_name(k);
139
+ reagent.impl.template.goog$module$goog$object.set(reagent.impl.template.custom_prop_name_cache,cljs.core.name(k),v);
140
+
141
+ return v;
142
+ } else {
143
+ var k_SINGLEQUOTE_ = temp__5806__auto__;
144
+ return k_SINGLEQUOTE_;
145
+ }
146
+ } else {
147
+ return k;
148
+ }
149
+ });
150
+ reagent.impl.template.custom_kv_conv = (function reagent$impl$template$custom_kv_conv(o,k,v){
151
+ var G__12459 = o;
152
+ reagent.impl.template.goog$module$goog$object.set(G__12459,reagent.impl.template.cached_custom_prop_name(k),reagent.impl.template.convert_prop_value(v));
153
+
154
+ return G__12459;
155
+ });
156
+ reagent.impl.template.convert_custom_prop_value = (function reagent$impl$template$convert_custom_prop_value(x){
157
+ if(reagent.impl.util.js_val_QMARK_(x)){
158
+ return x;
159
+ } else {
160
+ if(reagent.impl.util.named_QMARK_(x)){
161
+ return cljs.core.name(x);
162
+ } else {
163
+ if(cljs.core.map_QMARK_(x)){
164
+ return cljs.core.reduce_kv(reagent.impl.template.custom_kv_conv,({}),x);
165
+ } else {
166
+ if(cljs.core.coll_QMARK_(x)){
167
+ return cljs.core.clj__GT_js(x);
168
+ } else {
169
+ if(cljs.core.ifn_QMARK_(x)){
170
+ return (function() {
171
+ var G__12479__delegate = function (args){
172
+ return cljs.core.apply.cljs$core$IFn$_invoke$arity$2(x,args);
173
+ };
174
+ var G__12479 = function (var_args){
175
+ var args = null;
176
+ if (arguments.length > 0) {
177
+ var G__12480__i = 0, G__12480__a = new Array(arguments.length - 0);
178
+ while (G__12480__i < G__12480__a.length) {G__12480__a[G__12480__i] = arguments[G__12480__i + 0]; ++G__12480__i;}
179
+ args = new cljs.core.IndexedSeq(G__12480__a,0,null);
180
+ }
181
+ return G__12479__delegate.call(this,args);};
182
+ G__12479.cljs$lang$maxFixedArity = 0;
183
+ G__12479.cljs$lang$applyTo = (function (arglist__12481){
184
+ var args = cljs.core.seq(arglist__12481);
185
+ return G__12479__delegate(args);
186
+ });
187
+ G__12479.cljs$core$IFn$_invoke$arity$variadic = G__12479__delegate;
188
+ return G__12479;
189
+ })()
190
+ ;
191
+ } else {
192
+ return cljs.core.clj__GT_js(x);
193
+
194
+ }
195
+ }
196
+ }
197
+ }
198
+ }
199
+ });
200
+ /**
201
+ * Takes the id and class from tag keyword, and adds them to the
202
+ * other props. Parsed tag is JS object with :id and :class properties.
203
+ */
204
+ reagent.impl.template.set_id_class = (function reagent$impl$template$set_id_class(props,id_class){
205
+ var id = id_class.id;
206
+ var class$ = id_class.className;
207
+ var G__12460 = props;
208
+ var G__12460__$1 = (((((!((id == null)))) && ((new cljs.core.Keyword(null,"id","id",-1388402092).cljs$core$IFn$_invoke$arity$1(props) == null))))?cljs.core.assoc.cljs$core$IFn$_invoke$arity$3(G__12460,new cljs.core.Keyword(null,"id","id",-1388402092),id):G__12460);
209
+ if(cljs.core.truth_(class$)){
210
+ return cljs.core.assoc.cljs$core$IFn$_invoke$arity$3(G__12460__$1,new cljs.core.Keyword(null,"class","class",-2030961996),reagent.impl.util.class_names.cljs$core$IFn$_invoke$arity$2(class$,(function (){var or__5002__auto__ = new cljs.core.Keyword(null,"class","class",-2030961996).cljs$core$IFn$_invoke$arity$1(props);
211
+ if(cljs.core.truth_(or__5002__auto__)){
212
+ return or__5002__auto__;
213
+ } else {
214
+ return new cljs.core.Keyword(null,"className","className",-1983287057).cljs$core$IFn$_invoke$arity$1(props);
215
+ }
216
+ })()));
217
+ } else {
218
+ return G__12460__$1;
219
+ }
220
+ });
221
+ reagent.impl.template.convert_props = (function reagent$impl$template$convert_props(props,id_class){
222
+ var class$ = new cljs.core.Keyword(null,"class","class",-2030961996).cljs$core$IFn$_invoke$arity$1(props);
223
+ var props__$1 = reagent.impl.template.set_id_class((function (){var G__12461 = props;
224
+ if(cljs.core.truth_(class$)){
225
+ return cljs.core.assoc.cljs$core$IFn$_invoke$arity$3(G__12461,new cljs.core.Keyword(null,"class","class",-2030961996),reagent.impl.util.class_names.cljs$core$IFn$_invoke$arity$1(class$));
226
+ } else {
227
+ return G__12461;
228
+ }
229
+ })(),id_class);
230
+ if(cljs.core.truth_(id_class.custom)){
231
+ return reagent.impl.template.convert_custom_prop_value(props__$1);
232
+ } else {
233
+ return reagent.impl.template.convert_prop_value(props__$1);
234
+ }
235
+ });
236
+ reagent.impl.template.make_element = (function reagent$impl$template$make_element(this$,argv,component,jsprops,first_child){
237
+ var G__12462 = (cljs.core.count(argv) - first_child);
238
+ switch (G__12462) {
239
+ case (0):
240
+ return shadow.esm.esm_import$react.createElement(component,jsprops);
241
+
242
+ break;
243
+ case (1):
244
+ return shadow.esm.esm_import$react.createElement(component,jsprops,reagent.impl.protocols.as_element(this$,cljs.core.nth.cljs$core$IFn$_invoke$arity$3(argv,first_child,null)));
245
+
246
+ break;
247
+ default:
248
+ return shadow.esm.esm_import$react.createElement.apply(null,cljs.core.reduce_kv((function (a,k,v){
249
+ if((k >= first_child)){
250
+ a.push(reagent.impl.protocols.as_element(this$,v));
251
+ } else {
252
+ }
253
+
254
+ return a;
255
+ }),[component,jsprops],argv));
256
+
257
+ }
258
+ });
259
+
260
+ /**
261
+ * @constructor
262
+ */
263
+ reagent.impl.template.HiccupTag = (function (tag,id,className,custom){
264
+ this.tag = tag;
265
+ this.id = id;
266
+ this.className = className;
267
+ this.custom = custom;
268
+ });
269
+
270
+ (reagent.impl.template.HiccupTag.getBasis = (function (){
271
+ return new cljs.core.PersistentVector(null, 4, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Symbol(null,"tag","tag",350170304,null),new cljs.core.Symbol(null,"id","id",252129435,null),new cljs.core.Symbol(null,"className","className",-342755530,null),new cljs.core.Symbol(null,"custom","custom",1980683475,null)], null);
272
+ }));
273
+
274
+ (reagent.impl.template.HiccupTag.cljs$lang$type = true);
275
+
276
+ (reagent.impl.template.HiccupTag.cljs$lang$ctorStr = "reagent.impl.template/HiccupTag");
277
+
278
+ (reagent.impl.template.HiccupTag.cljs$lang$ctorPrWriter = (function (this__5287__auto__,writer__5288__auto__,opt__5289__auto__){
279
+ return cljs.core._write(writer__5288__auto__,"reagent.impl.template/HiccupTag");
280
+ }));
281
+
282
+ /**
283
+ * Positional factory function for reagent.impl.template/HiccupTag.
284
+ */
285
+ reagent.impl.template.__GT_HiccupTag = (function reagent$impl$template$__GT_HiccupTag(tag,id,className,custom){
286
+ return (new reagent.impl.template.HiccupTag(tag,id,className,custom));
287
+ });
288
+
289
+ reagent.impl.template.parse_tag = (function reagent$impl$template$parse_tag(hiccup_tag){
290
+ var vec__12463 = cljs.core.next(cljs.core.re_matches(reagent.impl.template.re_tag,cljs.core.name(hiccup_tag)));
291
+ var tag = cljs.core.nth.cljs$core$IFn$_invoke$arity$3(vec__12463,(0),null);
292
+ var id = cljs.core.nth.cljs$core$IFn$_invoke$arity$3(vec__12463,(1),null);
293
+ var className = cljs.core.nth.cljs$core$IFn$_invoke$arity$3(vec__12463,(2),null);
294
+ var className__$1 = (((className == null))?null:clojure.string.replace(className,/\./," "));
295
+ if(cljs.core.truth_(tag)){
296
+ } else {
297
+ throw (new Error(["Assert failed: ",["Invalid tag: '",cljs.core.str.cljs$core$IFn$_invoke$arity$1(hiccup_tag),"'",reagent.impl.component.comp_name()].join(''),"\n","tag"].join('')));
298
+ }
299
+
300
+ return reagent.impl.template.__GT_HiccupTag(tag,id,className__$1,cljs.core.not_EQ_.cljs$core$IFn$_invoke$arity$2((-1),tag.indexOf("-")));
301
+ });
302
+ reagent.impl.template.reag_element = (function reagent$impl$template$reag_element(tag,v,compiler){
303
+ var c = reagent.impl.component.as_class(tag,compiler);
304
+ var jsprops = ({});
305
+ (jsprops.argv = v);
306
+
307
+ var temp__5808__auto___12483 = reagent.impl.util.react_key_from_vec(v);
308
+ if((temp__5808__auto___12483 == null)){
309
+ } else {
310
+ var key_12484 = temp__5808__auto___12483;
311
+ (jsprops.key = key_12484);
312
+ }
313
+
314
+ return shadow.esm.esm_import$react.createElement(c,jsprops);
315
+ });
316
+ reagent.impl.template.function_element = (function reagent$impl$template$function_element(tag,v,first_arg,compiler){
317
+ var jsprops = ({});
318
+ (jsprops.reagentRender = tag);
319
+
320
+ (jsprops.argv = cljs.core.subvec.cljs$core$IFn$_invoke$arity$2(v,first_arg));
321
+
322
+ var temp__5808__auto___12485 = reagent.impl.util.react_key_from_vec(v);
323
+ if((temp__5808__auto___12485 == null)){
324
+ } else {
325
+ var key_12486 = temp__5808__auto___12485;
326
+ (jsprops.key = key_12486);
327
+ }
328
+
329
+ return shadow.esm.esm_import$react.createElement(reagent.impl.component.functional_render_fn(compiler,tag),jsprops);
330
+ });
331
+ /**
332
+ * If given tag is a Class, use it as a class,
333
+ * else wrap in Reagent function wrapper.
334
+ */
335
+ reagent.impl.template.maybe_function_element = (function reagent$impl$template$maybe_function_element(tag,v,compiler){
336
+ if(reagent.impl.component.react_class_QMARK_(tag)){
337
+ return reagent.impl.template.reag_element(tag,v,compiler);
338
+ } else {
339
+ return reagent.impl.template.function_element(tag,v,(1),compiler);
340
+ }
341
+ });
342
+ reagent.impl.template.fragment_element = (function reagent$impl$template$fragment_element(argv,compiler){
343
+ var props = cljs.core.nth.cljs$core$IFn$_invoke$arity$3(argv,(1),null);
344
+ var hasprops = (((props == null)) || (cljs.core.map_QMARK_(props)));
345
+ var jsprops = (function (){var or__5002__auto__ = reagent.impl.template.convert_prop_value(((hasprops)?props:null));
346
+ if(cljs.core.truth_(or__5002__auto__)){
347
+ return or__5002__auto__;
348
+ } else {
349
+ return ({});
350
+ }
351
+ })();
352
+ var first_child = ((1) + ((hasprops)?(1):(0)));
353
+ var temp__5808__auto___12487 = reagent.impl.util.react_key_from_vec(argv);
354
+ if((temp__5808__auto___12487 == null)){
355
+ } else {
356
+ var key_12488 = temp__5808__auto___12487;
357
+ (jsprops.key = key_12488);
358
+ }
359
+
360
+ return reagent.impl.protocols.make_element(compiler,argv,shadow.esm.esm_import$react.Fragment,jsprops,first_child);
361
+ });
362
+ reagent.impl.template.tag_name_cache = ({});
363
+ reagent.impl.template.cached_parse = (function reagent$impl$template$cached_parse(this$,x,_){
364
+ var temp__5806__auto__ = reagent.impl.template.cache_get(reagent.impl.template.tag_name_cache,x);
365
+ if((temp__5806__auto__ == null)){
366
+ var v = reagent.impl.template.parse_tag(x);
367
+ reagent.impl.template.goog$module$goog$object.set(reagent.impl.template.tag_name_cache,x,v);
368
+
369
+ return v;
370
+ } else {
371
+ var s = temp__5806__auto__;
372
+ return s;
373
+ }
374
+ });
375
+ reagent.impl.template.native_element = (function reagent$impl$template$native_element(parsed,argv,first,compiler){
376
+ var component = parsed.tag;
377
+ var props = cljs.core.nth.cljs$core$IFn$_invoke$arity$3(argv,first,null);
378
+ var hasprops = (((props == null)) || (cljs.core.map_QMARK_(props)));
379
+ var jsprops = (function (){var or__5002__auto__ = reagent.impl.template.convert_props(((hasprops)?props:null),parsed);
380
+ if(cljs.core.truth_(or__5002__auto__)){
381
+ return or__5002__auto__;
382
+ } else {
383
+ return ({});
384
+ }
385
+ })();
386
+ var first_child = (first + ((hasprops)?(1):(0)));
387
+ if(reagent.impl.input.input_component_QMARK_(component)){
388
+ var react_key = reagent.impl.util.get_react_key(props);
389
+ var input_class = (function (){var or__5002__auto__ = compiler.reagentInput;
390
+ if(cljs.core.truth_(or__5002__auto__)){
391
+ return or__5002__auto__;
392
+ } else {
393
+ var x = reagent.impl.component.create_class(reagent.impl.input.input_spec,compiler);
394
+ (compiler.reagentInput = x);
395
+
396
+ return x;
397
+ }
398
+ })();
399
+ return reagent.impl.protocols.as_element(compiler,cljs.core.with_meta(new cljs.core.PersistentVector(null, 6, 5, cljs.core.PersistentVector.EMPTY_NODE, [input_class,argv,component,jsprops,first_child,compiler], null),cljs.core.merge.cljs$core$IFn$_invoke$arity$variadic(cljs.core.prim_seq.cljs$core$IFn$_invoke$arity$2([(cljs.core.truth_(react_key)?new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"key","key",-1516042587),react_key], null):null),cljs.core.meta(argv)], 0))));
400
+ } else {
401
+ var temp__5808__auto___12489 = reagent.impl.util.get_react_key(cljs.core.meta(argv));
402
+ if((temp__5808__auto___12489 == null)){
403
+ } else {
404
+ var key_12490 = temp__5808__auto___12489;
405
+ (jsprops.key = key_12490);
406
+ }
407
+
408
+ return reagent.impl.protocols.make_element(compiler,argv,component,jsprops,first_child);
409
+ }
410
+ });
411
+ reagent.impl.template.raw_element = (function reagent$impl$template$raw_element(comp,argv,compiler){
412
+ var props = cljs.core.nth.cljs$core$IFn$_invoke$arity$3(argv,(2),null);
413
+ var jsprops = (function (){var or__5002__auto__ = props;
414
+ if(cljs.core.truth_(or__5002__auto__)){
415
+ return or__5002__auto__;
416
+ } else {
417
+ return ({});
418
+ }
419
+ })();
420
+ var temp__5808__auto___12491 = reagent.impl.util.get_react_key(cljs.core.meta(argv));
421
+ if((temp__5808__auto___12491 == null)){
422
+ } else {
423
+ var key_12492 = temp__5808__auto___12491;
424
+ (jsprops.key = key_12492);
425
+ }
426
+
427
+ return reagent.impl.protocols.make_element(compiler,argv,comp,jsprops,(3));
428
+ });
429
+ reagent.impl.template.expand_seq = (function reagent$impl$template$expand_seq(s,compiler){
430
+ return cljs.core.into_array.cljs$core$IFn$_invoke$arity$1(cljs.core.map.cljs$core$IFn$_invoke$arity$2((function (p1__12466_SHARP_){
431
+ return reagent.impl.protocols.as_element(compiler,p1__12466_SHARP_);
432
+ }),s));
433
+ });
434
+ reagent.impl.template.expand_seq_dev = (function reagent$impl$template$expand_seq_dev(s,o,compiler){
435
+ return cljs.core.into_array.cljs$core$IFn$_invoke$arity$1(cljs.core.map.cljs$core$IFn$_invoke$arity$2((function (val){
436
+ if(((cljs.core.vector_QMARK_(val)) && ((reagent.impl.util.react_key_from_vec(val) == null)))){
437
+ (o.no_key = true);
438
+ } else {
439
+ }
440
+
441
+ return reagent.impl.protocols.as_element(compiler,val);
442
+ }),s));
443
+ });
444
+ reagent.impl.template.expand_seq_check = (function reagent$impl$template$expand_seq_check(x,compiler){
445
+ var ctx = ({});
446
+ var vec__12467 = reagent.ratom.check_derefs((function (){
447
+ return reagent.impl.template.expand_seq_dev(x,ctx,compiler);
448
+ }));
449
+ var res = cljs.core.nth.cljs$core$IFn$_invoke$arity$3(vec__12467,(0),null);
450
+ var derefed = cljs.core.nth.cljs$core$IFn$_invoke$arity$3(vec__12467,(1),null);
451
+ if(cljs.core.truth_(derefed)){
452
+ if(reagent.debug.has_console){
453
+ ((reagent.debug.tracking)?reagent.debug.track_console:console).warn(["Warning: ",reagent.impl.util.hiccup_err.cljs$core$IFn$_invoke$arity$variadic(x,reagent.impl.component.comp_name(),cljs.core.prim_seq.cljs$core$IFn$_invoke$arity$2(["Reactive deref not supported in lazy seq, ","it should be wrapped in doall"], 0))].join(''));
454
+ } else {
455
+ }
456
+ } else {
457
+ }
458
+
459
+ if(cljs.core.truth_(ctx.no_key)){
460
+ if(reagent.debug.has_console){
461
+ ((reagent.debug.tracking)?reagent.debug.track_console:console).warn(["Warning: ",reagent.impl.util.hiccup_err.cljs$core$IFn$_invoke$arity$variadic(x,reagent.impl.component.comp_name(),cljs.core.prim_seq.cljs$core$IFn$_invoke$arity$2(["Every element in a seq should have a unique :key"], 0))].join(''));
462
+ } else {
463
+ }
464
+ } else {
465
+ }
466
+
467
+ return res;
468
+ });
469
+ reagent.impl.template.hiccup_element = (function reagent$impl$template$hiccup_element(v,compiler){
470
+ while(true){
471
+ var tag = cljs.core.nth.cljs$core$IFn$_invoke$arity$3(v,(0),null);
472
+ var n = cljs.core.name(tag);
473
+ var pos = n.indexOf(">");
474
+ var G__12470 = pos;
475
+ switch (G__12470) {
476
+ case (-1):
477
+ return reagent.impl.template.native_element(reagent.impl.protocols.parse_tag(compiler,n,tag),v,(1),compiler);
478
+
479
+ break;
480
+ case (0):
481
+ if(cljs.core._EQ_.cljs$core$IFn$_invoke$arity$2(">",n)){
482
+ return null;
483
+ } else {
484
+ throw (new Error(["Assert failed: ",reagent.impl.util.hiccup_err.cljs$core$IFn$_invoke$arity$variadic(v,reagent.impl.component.comp_name(),cljs.core.prim_seq.cljs$core$IFn$_invoke$arity$2(["Invalid Hiccup tag"], 0)),"\n","(= \">\" n)"].join('')));
485
+ }
486
+
487
+ break;
488
+ default:
489
+ var G__12496 = cljs.core.with_meta(new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [cljs.core.subs.cljs$core$IFn$_invoke$arity$3(n,(0),pos),cljs.core.assoc.cljs$core$IFn$_invoke$arity$3(cljs.core.with_meta(v,null),(0),cljs.core.subs.cljs$core$IFn$_invoke$arity$2(n,(pos + (1))))], null),cljs.core.meta(v));
490
+ var G__12497 = compiler;
491
+ v = G__12496;
492
+ compiler = G__12497;
493
+ continue;
494
+
495
+ }
496
+ break;
497
+ }
498
+ });
499
+ reagent.impl.template.vec_to_elem = (function reagent$impl$template$vec_to_elem(v,compiler,fn_to_element){
500
+ if((compiler == null)){
501
+ console.error("vec-to-elem",cljs.core.pr_str.cljs$core$IFn$_invoke$arity$variadic(cljs.core.prim_seq.cljs$core$IFn$_invoke$arity$2([v], 0)));
502
+ } else {
503
+ }
504
+
505
+ if((cljs.core.count(v) > (0))){
506
+ } else {
507
+ throw (new Error(["Assert failed: ",reagent.impl.util.hiccup_err.cljs$core$IFn$_invoke$arity$variadic(v,reagent.impl.component.comp_name(),cljs.core.prim_seq.cljs$core$IFn$_invoke$arity$2(["Hiccup form should not be empty"], 0)),"\n","(pos? (count v))"].join('')));
508
+ }
509
+
510
+ var tag = cljs.core.nth.cljs$core$IFn$_invoke$arity$3(v,(0),null);
511
+ if(reagent.impl.template.valid_tag_QMARK_(tag)){
512
+ } else {
513
+ throw (new Error(["Assert failed: ",reagent.impl.util.hiccup_err.cljs$core$IFn$_invoke$arity$variadic(v,reagent.impl.component.comp_name(),cljs.core.prim_seq.cljs$core$IFn$_invoke$arity$2(["Invalid Hiccup form"], 0)),"\n","(valid-tag? tag)"].join('')));
514
+ }
515
+
516
+ var G__12471 = tag;
517
+ var G__12471__$1 = (((G__12471 instanceof cljs.core.Keyword))?G__12471.fqn:null);
518
+ switch (G__12471__$1) {
519
+ case ">":
520
+ return reagent.impl.template.native_element(reagent.impl.template.__GT_HiccupTag(cljs.core.nth.cljs$core$IFn$_invoke$arity$3(v,(1),null),null,null,null),v,(2),compiler);
521
+
522
+ break;
523
+ case "r>":
524
+ return reagent.impl.template.raw_element(cljs.core.nth.cljs$core$IFn$_invoke$arity$3(v,(1),null),v,compiler);
525
+
526
+ break;
527
+ case "f>":
528
+ return reagent.impl.template.function_element(cljs.core.nth.cljs$core$IFn$_invoke$arity$3(v,(1),null),v,(2),compiler);
529
+
530
+ break;
531
+ case "<>":
532
+ return reagent.impl.template.fragment_element(v,compiler);
533
+
534
+ break;
535
+ default:
536
+ if(reagent.impl.template.hiccup_tag_QMARK_(tag)){
537
+ return reagent.impl.template.hiccup_element(v,compiler);
538
+ } else {
539
+ if((tag instanceof reagent.impl.template.NativeWrapper)){
540
+ return reagent.impl.template.native_element(tag,v,(1),compiler);
541
+ } else {
542
+ return (fn_to_element.cljs$core$IFn$_invoke$arity$3 ? fn_to_element.cljs$core$IFn$_invoke$arity$3(tag,v,compiler) : fn_to_element.call(null,tag,v,compiler));
543
+
544
+ }
545
+ }
546
+
547
+ }
548
+ });
549
+ reagent.impl.template.as_element = (function reagent$impl$template$as_element(this$,x,fn_to_element){
550
+ if(reagent.impl.util.js_val_QMARK_(x)){
551
+ return x;
552
+ } else {
553
+ if(cljs.core.vector_QMARK_(x)){
554
+ return reagent.impl.template.vec_to_elem(x,this$,fn_to_element);
555
+ } else {
556
+ if(cljs.core.seq_QMARK_(x)){
557
+ return reagent.impl.template.expand_seq_check(x,this$);
558
+
559
+ } else {
560
+ if(reagent.impl.util.named_QMARK_(x)){
561
+ return cljs.core.name(x);
562
+ } else {
563
+ if((((!((x == null))))?(((((x.cljs$lang$protocol_mask$partition0$ & (2147483648))) || ((cljs.core.PROTOCOL_SENTINEL === x.cljs$core$IPrintWithWriter$))))?true:(((!x.cljs$lang$protocol_mask$partition0$))?cljs.core.native_satisfies_QMARK_(cljs.core.IPrintWithWriter,x):false)):cljs.core.native_satisfies_QMARK_(cljs.core.IPrintWithWriter,x))){
564
+ return cljs.core.pr_str.cljs$core$IFn$_invoke$arity$variadic(cljs.core.prim_seq.cljs$core$IFn$_invoke$arity$2([x], 0));
565
+ } else {
566
+ return x;
567
+
568
+ }
569
+ }
570
+ }
571
+ }
572
+ }
573
+ });
574
+
575
+ /**
576
+ * @constructor
577
+ * @implements {reagent.impl.protocols.Compiler}
578
+ * @implements {cljs.core.IMeta}
579
+ * @implements {cljs.core.IWithMeta}
580
+ */
581
+ reagent.impl.template.t_reagent$impl$template12473 = (function (opts,id,fn_to_element,parse_fn,meta12474){
582
+ this.opts = opts;
583
+ this.id = id;
584
+ this.fn_to_element = fn_to_element;
585
+ this.parse_fn = parse_fn;
586
+ this.meta12474 = meta12474;
587
+ this.cljs$lang$protocol_mask$partition0$ = 393216;
588
+ this.cljs$lang$protocol_mask$partition1$ = 0;
589
+ });
590
+ (reagent.impl.template.t_reagent$impl$template12473.prototype.cljs$core$IWithMeta$_with_meta$arity$2 = (function (_12475,meta12474__$1){
591
+ var self__ = this;
592
+ var _12475__$1 = this;
593
+ return (new reagent.impl.template.t_reagent$impl$template12473(self__.opts,self__.id,self__.fn_to_element,self__.parse_fn,meta12474__$1));
594
+ }));
595
+
596
+ (reagent.impl.template.t_reagent$impl$template12473.prototype.cljs$core$IMeta$_meta$arity$1 = (function (_12475){
597
+ var self__ = this;
598
+ var _12475__$1 = this;
599
+ return self__.meta12474;
600
+ }));
601
+
602
+ (reagent.impl.template.t_reagent$impl$template12473.prototype.reagent$impl$protocols$Compiler$ = cljs.core.PROTOCOL_SENTINEL);
603
+
604
+ (reagent.impl.template.t_reagent$impl$template12473.prototype.reagent$impl$protocols$Compiler$get_id$arity$1 = (function (this$){
605
+ var self__ = this;
606
+ var this$__$1 = this;
607
+ return self__.id;
608
+ }));
609
+
610
+ (reagent.impl.template.t_reagent$impl$template12473.prototype.reagent$impl$protocols$Compiler$parse_tag$arity$3 = (function (this$,tag_name,tag_value){
611
+ var self__ = this;
612
+ var this$__$1 = this;
613
+ return (self__.parse_fn.cljs$core$IFn$_invoke$arity$3 ? self__.parse_fn.cljs$core$IFn$_invoke$arity$3(this$__$1,tag_name,tag_value) : self__.parse_fn.call(null,this$__$1,tag_name,tag_value));
614
+ }));
615
+
616
+ (reagent.impl.template.t_reagent$impl$template12473.prototype.reagent$impl$protocols$Compiler$as_element$arity$2 = (function (this$,x){
617
+ var self__ = this;
618
+ var this$__$1 = this;
619
+ return reagent.impl.template.as_element(this$__$1,x,self__.fn_to_element);
620
+ }));
621
+
622
+ (reagent.impl.template.t_reagent$impl$template12473.prototype.reagent$impl$protocols$Compiler$make_element$arity$5 = (function (this$,argv,component,jsprops,first_child){
623
+ var self__ = this;
624
+ var this$__$1 = this;
625
+ return reagent.impl.template.make_element(this$__$1,argv,component,jsprops,first_child);
626
+ }));
627
+
628
+ (reagent.impl.template.t_reagent$impl$template12473.getBasis = (function (){
629
+ return new cljs.core.PersistentVector(null, 5, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Symbol(null,"opts","opts",1795607228,null),new cljs.core.Symbol(null,"id","id",252129435,null),new cljs.core.Symbol(null,"fn-to-element","fn-to-element",-1764467095,null),new cljs.core.Symbol(null,"parse-fn","parse-fn",-836029424,null),new cljs.core.Symbol(null,"meta12474","meta12474",-775510369,null)], null);
630
+ }));
631
+
632
+ (reagent.impl.template.t_reagent$impl$template12473.cljs$lang$type = true);
633
+
634
+ (reagent.impl.template.t_reagent$impl$template12473.cljs$lang$ctorStr = "reagent.impl.template/t_reagent$impl$template12473");
635
+
636
+ (reagent.impl.template.t_reagent$impl$template12473.cljs$lang$ctorPrWriter = (function (this__5287__auto__,writer__5288__auto__,opt__5289__auto__){
637
+ return cljs.core._write(writer__5288__auto__,"reagent.impl.template/t_reagent$impl$template12473");
638
+ }));
639
+
640
+ /**
641
+ * Positional factory function for reagent.impl.template/t_reagent$impl$template12473.
642
+ */
643
+ reagent.impl.template.__GT_t_reagent$impl$template12473 = (function reagent$impl$template$__GT_t_reagent$impl$template12473(opts,id,fn_to_element,parse_fn,meta12474){
644
+ return (new reagent.impl.template.t_reagent$impl$template12473(opts,id,fn_to_element,parse_fn,meta12474));
645
+ });
646
+
647
+
648
+ reagent.impl.template.create_compiler = (function reagent$impl$template$create_compiler(opts){
649
+ var id = cljs.core.gensym.cljs$core$IFn$_invoke$arity$1("reagent-compiler");
650
+ var fn_to_element = (cljs.core.truth_(new cljs.core.Keyword(null,"function-components","function-components",1492814963).cljs$core$IFn$_invoke$arity$1(opts))?reagent.impl.template.maybe_function_element:reagent.impl.template.reag_element);
651
+ var parse_fn = cljs.core.get.cljs$core$IFn$_invoke$arity$3(opts,new cljs.core.Keyword(null,"parse-tag","parse-tag",1427313738),reagent.impl.template.cached_parse);
652
+ return (new reagent.impl.template.t_reagent$impl$template12473(opts,id,fn_to_element,parse_fn,cljs.core.PersistentArrayMap.EMPTY));
653
+ });
654
+ reagent.impl.template.class_compiler = reagent.impl.template.create_compiler(cljs.core.PersistentArrayMap.EMPTY);
655
+ reagent.impl.template._STAR_current_default_compiler_STAR_ = reagent.impl.template.class_compiler;
656
+ reagent.impl.template.set_default_compiler_BANG_ = (function reagent$impl$template$set_default_compiler_BANG_(compiler){
657
+ return (reagent.impl.template._STAR_current_default_compiler_STAR_ = compiler);
658
+ });
659
+
660
+ //# sourceMappingURL=reagent.impl.template.js.map