aboutsummaryrefslogtreecommitdiff
path: root/test/bun.js/solid-dom-fixtures/insertChildren/output.js
blob: 9ad9377421c835b9f7532c041489d98677abdfab (plain) (blame)
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
import { template as _$template } from "r-dom";
import { mergeProps as _$mergeProps } from "r-dom";
import { spread as _$spread } from "r-dom";
import { insert as _$insert } from "r-dom";
import { createComponent as _$createComponent } from "r-dom";

const _tmpl$ = /*#__PURE__*/ _$template(`<div></div>`, 2),
  _tmpl$2 = /*#__PURE__*/ _$template(`<module></module>`, 2),
  _tmpl$3 = /*#__PURE__*/ _$template(`<module>Hello</module>`, 2),
  _tmpl$4 = /*#__PURE__*/ _$template(`<module>Hi </module>`, 2),
  _tmpl$5 = /*#__PURE__*/ _$template(`<div>Test 1</div>`, 2);

const children = _tmpl$.cloneNode(true);

const dynamic = {
  children,
};

const template = _$createComponent(Module, {
  children: children,
});

const template2 = (() => {
  const _el$2 = _tmpl$2.cloneNode(true);

  _$insert(_el$2, children);

  return _el$2;
})();

const template3 = _tmpl$3.cloneNode(true);

const template4 = (() => {
  const _el$4 = _tmpl$2.cloneNode(true);

  _$insert(_el$4, _$createComponent(Hello, {}));

  return _el$4;
})();

const template5 = (() => {
  const _el$5 = _tmpl$2.cloneNode(true);

  _$insert(_el$5, () => dynamic.children);

  return _el$5;
})();

const template6 = _$createComponent(Module, {
  get children() {
    return dynamic.children;
  },
});

const template7 = (() => {
  const _el$6 = _tmpl$2.cloneNode(true);

  _$spread(_el$6, dynamic, false, false);

  return _el$6;
})();

const template8 = (() => {
  const _el$7 = _tmpl$3.cloneNode(true);

  _$spread(_el$7, dynamic, false, true);

  return _el$7;
})();

const template9 = (() => {
  const _el$8 = _tmpl$2.cloneNode(true);

  _$spread(_el$8, dynamic, false, true);

  _$insert(_el$8, () => dynamic.children);

  return _el$8;
})();

const template10 = _$createComponent(
  Module,
  _$mergeProps(dynamic, {
    children: "Hello",
  })
);

const template11 = (() => {
  const _el$9 = _tmpl$2.cloneNode(true);

  _$insert(_el$9, state.children);

  return _el$9;
})();

const template12 = _$createComponent(Module, {
  children: state.children,
});

const template13 = (() => {
  const _el$10 = _tmpl$2.cloneNode(true);

  _$insert(_el$10, children);

  return _el$10;
})();

const template14 = _$createComponent(Module, {
  children: children,
});

const template15 = (() => {
  const _el$11 = _tmpl$2.cloneNode(true);

  _$insert(_el$11, () => dynamic.children);

  return _el$11;
})();

const template16 = _$createComponent(Module, {
  get children() {
    return dynamic.children;
  },
});

const template18 = (() => {
  const _el$12 = _tmpl$4.cloneNode(true);

  _$insert(_el$12, children, null);

  return _el$12;
})();

const template19 = _$createComponent(Module, {
  get children() {
    return ["Hi ", children];
  },
});

const template20 = (() => {
  const _el$13 = _tmpl$2.cloneNode(true);

  _$insert(_el$13, children);

  return _el$13;
})();

const template21 = _$createComponent(Module, {
  get children() {
    return children();
  },
});

const template22 = (() => {
  const _el$14 = _tmpl$2.cloneNode(true);

  _$insert(_el$14, () => state.children());

  return _el$14;
})();

const template23 = _$createComponent(Module, {
  get children() {
    return state.children();
  },
});

const tiles = [];
tiles.push(_tmpl$5.cloneNode(true));

const template24 = (() => {
  const _el$16 = _tmpl$.cloneNode(true);

  _$insert(_el$16, tiles);

  return _el$16;
})();

const comma = (() => {
  const _el$17 = _tmpl$.cloneNode(true);

  _$insert(_el$17, () => (expression(), "static"));

  return _el$17;
})();