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
|
var _tmpl = _template$(
'<div id="main"><h1 class="base" disabled readonly><a href="/">Welcome</a></h1></div>',
6
),
_tmpl$2 = _template$(
'<div><div/><div/><div innerHTML="<div/>"/></div>',
2
),
_tmpl$2 = _template$("<div/>", 0),
_tmpl$3 = _template$('<div class="hi"/>', 0),
_tmpl$5 = _template$('<div class="a" class="b"/>', 0),
_tmpl$5 = _template$('<div textContent="Hi"/>', 0),
_tmpl$6 = _template$("<div use:something use:zero=0/>", 0),
_tmpl$8 = _template$('<input type="checkbox" checked/>', 0),
_tmpl$8 = _template$('<input type="checkbox"/>', 0),
_tmpl$10 = _template$('<div class="`a">`$`</div>', 2),
_tmpl$10 = _template$(
'<button class="static" type="button">Write</button>',
2
),
_tmpl$11 = _template$("<button>Hi</button>", 2);
const selected = true;
let id = "my-h1";
let link;
const template = () => {
var _el = _tmpl.cloneNode(true),
_el$1 = _el.firstChild,
_el$2 = _el$1.nextSibling;
effect(() => {
return setAttribute(_el, "classList", { selected: unknown });
});
setAttribute(_el$1, "id", id);
effect(() => {
return setAttribute(_el$1, "title", welcoming());
});
effect(() => {
return setAttribute(_el$1, "classList", { dynamic: dynamic(), selected });
});
setAttribute(_el$2, "ref", link);
effect(() => {
return setAttribute(_el$2, "classList", { "ccc ddd": true });
});
setAttribute(_el$2, "readonly", value);
return _el;
};
const template2 = () => {
var _el = _tmpl$1.cloneNode(true),
_el$1 = _el.firstChild;
setAttribute(_el, "textContent", rowId);
effect(() => {
return setAttribute(_el$1, "textContent", row.label);
});
return _el;
};
const template3 = () => {
var _el = _tmpl$2.cloneNode(true);
effect(() => {
return setAttribute(_el, "id", state.id);
});
effect(() => {
return setAttribute(_el, "name", state.name);
});
effect(() => {
return setAttribute(_el, "textContent", state.content);
});
return _el;
};
const template4 = () => {
var _el = _tmpl$3.cloneNode(true);
effect(() => {
return setAttribute(_el, "className", state.class);
});
effect(() => {
return setAttribute(_el, "classList", { "ccc:ddd": true });
});
return _el;
};
const template5 = _tmpl$5.cloneNode(true);
const template6 = () => {
var _el = _tmpl$5.cloneNode(true);
return _el;
};
const template7 = () => {
var _el = _tmpl$2.cloneNode(true);
effect(() => {
return setAttribute(_el, "style:padding-top", props.top);
});
effect(() => {
return setAttribute(_el, "class:my-class", props.active);
});
return _el;
};
let refTarget;
const template8 = () => {
var _el = _tmpl$2.cloneNode(true);
setAttribute(_el, "ref", refTarget);
return _el;
};
const template9 = () => {
var _el = _tmpl$2.cloneNode(true);
effect(() => {
return setAttribute(_el, "ref", (e) => console.log(e));
});
return _el;
};
const template10 = () => {
var _el = _tmpl$2.cloneNode(true);
effect(() => {
return setAttribute(_el, "ref", refFactory());
});
return _el;
};
const template11 = () => {
var _el = _tmpl$6.cloneNode(true);
setAttribute(_el, "use:another", thing);
return _el;
};
const template12 = () => {
var _el = _tmpl$2.cloneNode(true);
setAttribute(_el, "prop:htmlFor", thing);
return _el;
};
const template13 = _tmpl$8.cloneNode(true);
const template14 = () => {
var _el = _tmpl$8.cloneNode(true);
effect(() => {
return setAttribute(_el, "checked", state.visible);
});
return _el;
};
const template15 = _tmpl$10.cloneNode(true);
const template16 = () => {
var _el = _tmpl$10.cloneNode(true);
effect(() => {
return setAttribute(_el, "classList", {
hi: "k",
});
});
return _el;
};
const template17 = () => {
var _el = _tmpl$11.cloneNode(true);
effect(() => {
return setAttribute(_el, "classList", {
a: true,
b: true,
c: true,
});
});
effect(() => {
return (_el.$$click = increment);
});
return _el;
};
const template18 = _tmpl$2.cloneNode(true);
|