1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
|
const _tmpl$ = /*#__PURE__*/ _$template(
`<div id="main"><h1 class="base selected" id="my-h1" disabled readonly=""><a href="/">Welcome</a></h1></div>`,
6
),
_tmpl$2 = /*#__PURE__*/ _$template(
`<div><div></div><div> </div><div></div></div>`,
8
),
_tmpl$3 = /*#__PURE__*/ _$template(`<div></div>`, 2),
_tmpl$4 = /*#__PURE__*/ _$template(`<div class="a b"></div>`, 2),
_tmpl$5 = /*#__PURE__*/ _$template(`<input type="checkbox">`, 1),
_tmpl$6 = /*#__PURE__*/ _$template(`<div class="\`a">\`$\`</div>`, 2),
_tmpl$7 = /*#__PURE__*/ _$template(
`<button class="static hi" type="button">Write</button>`,
2
),
_tmpl$8 = /*#__PURE__*/ _$template(`<button class="a b c">Hi</button>`, 2);
const selected = true;
let id = "my-h1";
let link;
const template = (() => {
const _el$ = _tmpl$.cloneNode(true),
_el$2 = _el$.firstChild,
_el$3 = _el$2.firstChild;
_$spread(_el$, results, false, true);
_el$.classList.toggle("selected", unknown);
_el$.style.setProperty("color", color);
_$spread(_el$2, results, false, true);
_el$2.style.setProperty("margin-right", "40px");
const _ref$ = link;
typeof _ref$ === "function" ? _ref$(_el$3) : (link = _el$3);
_$classList(_el$3, {
"ccc ddd": true,
});
_el$3.readOnly = value;
_$effect(
(_p$) => {
const _v$ = welcoming(),
_v$2 = color(),
_v$3 = !!dynamic();
_v$ !== _p$._v$ && _$setAttribute(_el$2, "title", (_p$._v$ = _v$));
_v$2 !== _p$._v$2 &&
_el$2.style.setProperty("background-color", (_p$._v$2 = _v$2));
_v$3 !== _p$._v$3 && _el$2.classList.toggle("dynamic", (_p$._v$3 = _v$3));
return _p$;
},
{
_v$: undefined,
_v$2: undefined,
_v$3: undefined,
}
);
return _el$;
})();
const template2 = (() => {
const _el$4 = _tmpl$2.cloneNode(true),
_el$5 = _el$4.firstChild,
_el$6 = _el$5.nextSibling,
_el$7 = _el$6.firstChild,
_el$8 = _el$6.nextSibling;
_$spread(_el$4, () => getProps("test"), false, true);
_el$5.textContent = rowId;
_el$8.innerHTML = "<div/>";
_$effect(() => (_el$7.data = row.label));
return _el$4;
})();
const template3 = (() => {
const _el$9 = _tmpl$3.cloneNode(true);
_$setAttribute(_el$9, "id", state.id);
_el$9.style.setProperty("background-color", state.color);
_el$9.textContent = state.content;
_$effect(() => _$setAttribute(_el$9, "name", state.name));
return _el$9;
})();
const template4 = (() => {
const _el$10 = _tmpl$3.cloneNode(true);
_$classList(_el$10, {
"ccc:ddd": true,
});
_$effect(() => _$className(_el$10, `hi ${state.class || ""}`));
return _el$10;
})();
const template5 = _tmpl$4.cloneNode(true);
const template6 = (() => {
const _el$12 = _tmpl$3.cloneNode(true);
_el$12.textContent = "Hi";
_$effect((_$p) => _$style(_el$12, someStyle(), _$p));
return _el$12;
})();
const template7 = (() => {
const _el$13 = _tmpl$3.cloneNode(true);
_$effect(
(_p$) => {
const _v$4 = {
"background-color": color(),
"margin-right": "40px",
...props.style,
},
_v$5 = props.top,
_v$6 = !!props.active;
_p$._v$4 = _$style(_el$13, _v$4, _p$._v$4);
_v$5 !== _p$._v$5 &&
_el$13.style.setProperty("padding-top", (_p$._v$5 = _v$5));
_v$6 !== _p$._v$6 &&
_el$13.classList.toggle("my-class", (_p$._v$6 = _v$6));
return _p$;
},
{
_v$4: undefined,
_v$5: undefined,
_v$6: undefined,
}
);
return _el$13;
})();
let refTarget;
const template8 = (() => {
const _el$14 = _tmpl$3.cloneNode(true);
const _ref$2 = refTarget;
typeof _ref$2 === "function" ? _ref$2(_el$14) : (refTarget = _el$14);
return _el$14;
})();
const template9 = (() => {
const _el$15 = _tmpl$3.cloneNode(true);
((e) => console.log(e))(_el$15);
return _el$15;
})();
const template10 = (() => {
const _el$16 = _tmpl$3.cloneNode(true);
const _ref$3 = refFactory();
typeof _ref$3 === "function" && _ref$3(_el$16);
return _el$16;
})();
const template11 = (() => {
const _el$17 = _tmpl$3.cloneNode(true);
zero(_el$17, () => 0);
another(_el$17, () => thing);
something(_el$17, () => true);
return _el$17;
})();
const template12 = (() => {
const _el$18 = _tmpl$3.cloneNode(true);
_el$18.htmlFor = thing;
return _el$18;
})();
const template13 = (() => {
const _el$19 = _tmpl$5.cloneNode(true);
_el$19.checked = true;
return _el$19;
})();
const template14 = (() => {
const _el$20 = _tmpl$5.cloneNode(true);
_$effect(() => (_el$20.checked = state.visible));
return _el$20;
})();
const template15 = _tmpl$6.cloneNode(true);
const template16 = _tmpl$7.cloneNode(true);
const template17 = (() => {
const _el$23 = _tmpl$8.cloneNode(true);
_$addEventListener(_el$23, "click", increment, true);
return _el$23;
})();
const template18 = (() => {
const _el$24 = _tmpl$3.cloneNode(true);
_$spread(
_el$24,
() => ({
get [key()]() {
return props.value;
},
}),
false,
false
);
return _el$24;
})();
_$delegateEvents(["click"]);
|