@threadlabs/looma 0.53.3 → 0.53.5

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.
@@ -1,152 +1,228 @@
1
1
  // Generated by HTML Next 1.0.0-alpha.92 for Vanilla DOM. Do not edit.
2
- import { attachGeneratedController, equalValue, buildTemplate, NONCONFORMING, readIndex, textCall, toAttribute, writeAttribute, dispatchDeclared, detailCheck, formatOf, keywordFormat, acceptProps, manageProps, generatedInputs, checkConstrained, checkFormat, checkObject, checkRecord, checkString, checkUnknown, forwardAttributes, resetForwardedAttributes, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
2
+ import { attachGeneratedController, equalValue, buildTemplate, clearRegion, NONCONFORMING, readIndex, textCall, toAttribute, truthy, writeAttribute, dispatchDeclared, detailCheck, formatOf, keywordFormat, acceptProps, manageProps, generatedInputs, checkBoolean, checkConstrained, checkFormat, checkObject, checkRecord, checkString, checkUnknown, forwardAttributes, resetForwardedAttributes, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
3
3
  import * as controller from "../components/ui-editor-image-toolbar/ui-editor-image-toolbar.js";
4
4
  import "../styles/ui-editor-image-toolbar.css";
5
5
 
6
- const T0 = ["",[],"\n ",["ui-text",["as","div","font","sans"],["ui-editor-toolbar",["floating","","aria-label","Image actions"],["ui-icon-button",["label","Image in line","size","sm","data-placement","block"],["ui-icon",["name","panel-top"]]],"\n ",["ui-icon-button",["label","Center image","size","sm","data-placement","center"],["ui-icon",["name","align-center"]]],"\n ",["ui-icon-button",["label","Wrap text to the right","size","sm","data-placement","wrap-left"],["ui-icon",["name","panel-left"]]],"\n ",["ui-icon-button",["label","Wrap text to the left","size","sm","data-placement","wrap-right"],["ui-icon",["name","panel-right"]]],"\n ",["ui-icon-button",["label","Image description","size","sm","variant","ghost"],["ui-icon",["name","file-text"]]],"\n ",["ui-icon-button",["label","Delete image","size","sm","variant","ghost","data-action","delete"],["ui-icon",["name","trash"]]]],"\n ",["ui-tooltip",[],"Image in line"],"\n ",["ui-tooltip",[],"Center image"],"\n ",["ui-tooltip",[],"Wrap text to the right"],"\n ",["ui-tooltip",[],"Wrap text to the left"],"\n ",["ui-tooltip",[],"Image description"],"\n ",["ui-tooltip",[],"Delete image"],"\n ",["ui-popover",["size","sm","aria-label","Image description"],["form",["aria-label","Image description"],"\n ",["ui-stack",["gap","s"],["ui-form-field",[],["label",["slot","label"],"Alt text"],["ui-input",["size","sm"]]],"\n ",["ui-text",["size","xs","tone","secondary"],"Describe the image for people using a screen reader."],"\n ",["ui-cluster",["justify","end","gap","xs"],["ui-button",["type","button","variant","ghost","tone","neutral","size","sm","data-action","cancel"],"Cancel"],"\n ",["ui-button",["type","submit","variant","solid","size","sm"],"Save"]]],"\n "]]],"\n "];
7
- let P0;
6
+ const T0 = ["",[],"\n ",["ui-text",["as","div","font","sans"],["ui-editor-toolbar",["floating","","aria-label","Image actions"],1,"\n ",1,"\n ",1,"\n ",1,"\n ",["ui-icon-button",["label","Image description","size","sm","variant","ghost"],["ui-icon",["name","file-text"]]],"\n ",["ui-icon-button",["label","Delete image","size","sm","variant","ghost","data-action","delete"],["ui-icon",["name","trash"]]]],"\n ",["ui-tooltip",[],"Image in line"],"\n ",["ui-tooltip",[],"Center image"],"\n ",["ui-tooltip",[],"Wrap text to the right"],"\n ",["ui-tooltip",[],"Wrap text to the left"],"\n ",["ui-tooltip",[],"Image description"],"\n ",["ui-tooltip",[],"Delete image"],"\n ",["ui-popover",["size","sm","aria-label","Image description"],["form",["aria-label","Image description"],"\n ",["ui-stack",["gap","s"],["ui-form-field",[],["label",["slot","label"],"Alt text"],["ui-input",["size","sm"]]],"\n ",["ui-text",["size","xs","tone","secondary"],"Describe the image for people using a screen reader."],"\n ",["ui-cluster",["justify","end","gap","xs"],["ui-button",["type","button","variant","ghost","tone","neutral","size","sm","data-action","cancel"],"Cancel"],"\n ",["ui-button",["type","submit","variant","solid","size","sm"],"Save"]]],"\n "]]],"\n "];
7
+ const T1 = ["ui-icon-button",["label","Image in line","size","sm","data-placement","block"],["ui-icon",["name","panel-top"]]];
8
+ const T2 = ["ui-icon-button",["label","Center image","size","sm","data-placement","center"],["ui-icon",["name","align-center"]]];
9
+ const T3 = ["ui-icon-button",["label","Wrap text to the right","size","sm","data-placement","wrap-left"],["ui-icon",["name","panel-left"]]];
10
+ const T4 = ["ui-icon-button",["label","Wrap text to the left","size","sm","data-placement","wrap-right"],["ui-icon",["name","panel-right"]]];
11
+ let P0, P1, P2, P3, P4;
8
12
  const S = { n: ["base","describing","draft"], t: ["s","b","s"], f: import.meta.url, g: "ui-editor-image-toolbar", d: { "placement": [detailCheck(checkObject([["placement", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["block","center","wrap-left","wrap-right"]}), false]], false)), true, true, false], "describe": [detailCheck(checkObject([["alt", checkString, false]], false)), true, true, false], "delete": [detailCheck(checkRecord(checkUnknown)), true, true, false] }, x: dispatchDeclared, a: (host, I) => C(host, I), b: generatedInputs, i: ["ui-editor-image-toolbar", false, ""] };
9
- const D = { g: "ui-editor-image-toolbar", props: { "alt": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" }, "placement": { "required":false,"values":["block","center","wrap-left","wrap-right"],"default":"block", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "target": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" } } };
13
+ const D = { g: "ui-editor-image-toolbar", props: { "alt": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" }, "inline": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "placement": { "required":false,"values":["block","center","wrap-left","wrap-right"],"default":"block", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "target": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" } } };
10
14
  const C = (host) => activateModule(controller, host);
11
15
 
12
16
  export function createUiEditorImageToolbar(options = {}, html) {
13
17
  const { attributes: authoredAttributes = {}, children = [], slots = {}, ...componentProps } = options;
14
- const attributes = Object.fromEntries([...[], ...Object.entries(authoredAttributes)].filter(([name]) => !["alt","placement","target"].includes(name)));
18
+ const attributes = Object.fromEntries([...[], ...Object.entries(authoredAttributes)].filter(([name]) => !["alt","inline","placement","target"].includes(name)));
15
19
  const element = document.createElement("div");
16
20
  element.setAttribute("component", "ui-editor-image-toolbar");
17
21
  element.append((P0 ??= buildTemplate(T0)).cloneNode(true));
18
- const v = ["ui-editor-image-toolbar", false, "", null, null, null];
22
+ const v = ["ui-editor-image-toolbar", false, "", null, null, null, null];
19
23
  const B = acceptProps(element, D, S.n, v, componentProps, [], html);
20
- const p0 = (r, c, d) => {
21
- if (c === -1) {
22
- resetForwardedAttributes(r.n, attributes, r.v0);
23
- r.v0 = forwardAttributes(r.n, attributes);
24
- }
24
+ const m1 = (d) => {
25
+ const n = (P1 ??= buildTemplate(T1)).cloneNode(true);
26
+ const r = { n, v0: null, v1: null, v2: null };
27
+ p1(r, -1, d);
28
+ return r;
29
+ };
30
+ const p1 = (r, c, d) => {
25
31
  if (c & 1) {
26
32
  const x0 = textCall("concat", [v[0], "-block"]);
27
33
  if (x0 !== NONCONFORMING) {
28
- const s1 = toAttribute(x0, "id");
29
- if (s1 !== r.v1) writeAttribute(r.a1, "id", r.v1 = s1);
34
+ const s0 = toAttribute(x0, "id");
35
+ if (s0 !== r.v0) writeAttribute(r.n, "id", r.v0 = s0);
30
36
  }
31
- const x1 = textCall("concat", [v[0], "-center"]);
37
+ }
38
+ if (c & 1073741856) {
39
+ const x1 = readIndex({ "true": "outline", "false": "ghost" }, textCall("concat", [equalValue(v[5], "block")]));
32
40
  if (x1 !== NONCONFORMING) {
33
- const s4 = toAttribute(x1, "id");
34
- if (s4 !== r.v4) writeAttribute(r.a2, "id", r.v4 = s4);
41
+ const s1 = toAttribute(x1, "variant");
42
+ if (s1 !== r.v1) writeAttribute(r.n, "variant", r.v1 = s1);
35
43
  }
36
- const x2 = textCall("concat", [v[0], "-wrap-left"]);
44
+ }
45
+ if (c & 32) {
46
+ const x2 = textCall("concat", [equalValue(v[5], "block")]);
37
47
  if (x2 !== NONCONFORMING) {
38
- const s7 = toAttribute(x2, "id");
39
- if (s7 !== r.v7) writeAttribute(r.a3, "id", r.v7 = s7);
48
+ const s2 = toAttribute(x2, "aria-pressed");
49
+ if (s2 !== r.v2) writeAttribute(r.n, "aria-pressed", r.v2 = s2);
40
50
  }
41
- const x3 = textCall("concat", [v[0], "-wrap-right"]);
42
- if (x3 !== NONCONFORMING) {
43
- const s10 = toAttribute(x3, "id");
44
- if (s10 !== r.v10) writeAttribute(r.a4, "id", r.v10 = s10);
51
+ }
52
+ };
53
+ const m2 = (d) => {
54
+ const n = (P2 ??= buildTemplate(T2)).cloneNode(true);
55
+ const r = { n, v0: null, v1: null, v2: null };
56
+ p2(r, -1, d);
57
+ return r;
58
+ };
59
+ const p2 = (r, c, d) => {
60
+ if (c & 1) {
61
+ const x0 = textCall("concat", [v[0], "-center"]);
62
+ if (x0 !== NONCONFORMING) {
63
+ const s0 = toAttribute(x0, "id");
64
+ if (s0 !== r.v0) writeAttribute(r.n, "id", r.v0 = s0);
45
65
  }
46
- const x4 = v[0];
47
- const s13 = toAttribute(x4, "id");
48
- if (s13 !== r.v13) writeAttribute(r.a5, "id", r.v13 = s13);
49
- const x5 = textCall("concat", [v[0], "-delete"]);
50
- if (x5 !== NONCONFORMING) {
51
- const s14 = toAttribute(x5, "id");
52
- if (s14 !== r.v14) writeAttribute(r.a6, "id", r.v14 = s14);
66
+ }
67
+ if (c & 1073741856) {
68
+ const x1 = readIndex({ "true": "outline", "false": "ghost" }, textCall("concat", [equalValue(v[5], "center")]));
69
+ if (x1 !== NONCONFORMING) {
70
+ const s1 = toAttribute(x1, "variant");
71
+ if (s1 !== r.v1) writeAttribute(r.n, "variant", r.v1 = s1);
53
72
  }
73
+ }
74
+ if (c & 32) {
75
+ const x2 = textCall("concat", [equalValue(v[5], "center")]);
76
+ if (x2 !== NONCONFORMING) {
77
+ const s2 = toAttribute(x2, "aria-pressed");
78
+ if (s2 !== r.v2) writeAttribute(r.n, "aria-pressed", r.v2 = s2);
79
+ }
80
+ }
81
+ };
82
+ const m3 = (d) => {
83
+ const n = (P3 ??= buildTemplate(T3)).cloneNode(true);
84
+ const r = { n, v0: null, v1: null, v2: null };
85
+ p3(r, -1, d);
86
+ return r;
87
+ };
88
+ const p3 = (r, c, d) => {
89
+ if (c & 1) {
90
+ const x0 = textCall("concat", [v[0], "-wrap-left"]);
54
91
  if (x0 !== NONCONFORMING) {
55
- const s15 = toAttribute(x0, "for");
56
- if (s15 !== r.v15) writeAttribute(r.a7, "for", r.v15 = s15);
92
+ const s0 = toAttribute(x0, "id");
93
+ if (s0 !== r.v0) writeAttribute(r.n, "id", r.v0 = s0);
57
94
  }
95
+ }
96
+ if (c & 1073741856) {
97
+ const x1 = readIndex({ "true": "outline", "false": "ghost" }, textCall("concat", [equalValue(v[5], "wrap-left")]));
58
98
  if (x1 !== NONCONFORMING) {
59
- const s16 = toAttribute(x1, "for");
60
- if (s16 !== r.v16) writeAttribute(r.a8, "for", r.v16 = s16);
99
+ const s1 = toAttribute(x1, "variant");
100
+ if (s1 !== r.v1) writeAttribute(r.n, "variant", r.v1 = s1);
61
101
  }
102
+ }
103
+ if (c & 32) {
104
+ const x2 = textCall("concat", [equalValue(v[5], "wrap-left")]);
62
105
  if (x2 !== NONCONFORMING) {
63
- const s17 = toAttribute(x2, "for");
64
- if (s17 !== r.v17) writeAttribute(r.a9, "for", r.v17 = s17);
106
+ const s2 = toAttribute(x2, "aria-pressed");
107
+ if (s2 !== r.v2) writeAttribute(r.n, "aria-pressed", r.v2 = s2);
65
108
  }
66
- if (x3 !== NONCONFORMING) {
67
- const s18 = toAttribute(x3, "for");
68
- if (s18 !== r.v18) writeAttribute(r.a10, "for", r.v18 = s18);
69
- }
70
- const s19 = toAttribute(x4, "for");
71
- if (s19 !== r.v19) writeAttribute(r.a11, "for", r.v19 = s19);
72
- if (x5 !== NONCONFORMING) {
73
- const s20 = toAttribute(x5, "for");
74
- if (s20 !== r.v20) writeAttribute(r.a12, "for", r.v20 = s20);
109
+ }
110
+ };
111
+ const m4 = (d) => {
112
+ const n = (P4 ??= buildTemplate(T4)).cloneNode(true);
113
+ const r = { n, v0: null, v1: null, v2: null };
114
+ p4(r, -1, d);
115
+ return r;
116
+ };
117
+ const p4 = (r, c, d) => {
118
+ if (c & 1) {
119
+ const x0 = textCall("concat", [v[0], "-wrap-right"]);
120
+ if (x0 !== NONCONFORMING) {
121
+ const s0 = toAttribute(x0, "id");
122
+ if (s0 !== r.v0) writeAttribute(r.n, "id", r.v0 = s0);
75
123
  }
76
- const s21 = toAttribute(x4, "for");
77
- if (s21 !== r.v21) writeAttribute(r.a13, "for", r.v21 = s21);
78
- const x6 = textCall("concat", [v[0], "-alt"]);
79
- if (x6 !== NONCONFORMING) {
80
- const s23 = toAttribute(x6, "for");
81
- if (s23 !== r.v23) writeAttribute(r.a14, "for", r.v23 = s23);
124
+ }
125
+ if (c & 1073741856) {
126
+ const x1 = readIndex({ "true": "outline", "false": "ghost" }, textCall("concat", [equalValue(v[5], "wrap-right")]));
127
+ if (x1 !== NONCONFORMING) {
128
+ const s1 = toAttribute(x1, "variant");
129
+ if (s1 !== r.v1) writeAttribute(r.n, "variant", r.v1 = s1);
82
130
  }
83
- if (x6 !== NONCONFORMING) {
84
- const s24 = toAttribute(x6, "id");
85
- if (s24 !== r.v24) writeAttribute(r.a15, "id", r.v24 = s24);
131
+ }
132
+ if (c & 32) {
133
+ const x2 = textCall("concat", [equalValue(v[5], "wrap-right")]);
134
+ if (x2 !== NONCONFORMING) {
135
+ const s2 = toAttribute(x2, "aria-pressed");
136
+ if (s2 !== r.v2) writeAttribute(r.n, "aria-pressed", r.v2 = s2);
86
137
  }
87
138
  }
88
- if (c & 1073741840) {
89
- const x7 = readIndex({ "true": "outline", "false": "ghost" }, textCall("concat", [equalValue(v[4], "block")]));
90
- if (x7 !== NONCONFORMING) {
91
- const s2 = toAttribute(x7, "variant");
92
- if (s2 !== r.v2) writeAttribute(r.a1, "variant", r.v2 = s2);
139
+ };
140
+ const p0 = (r, c, d) => {
141
+ if (c === -1) {
142
+ resetForwardedAttributes(r.n, attributes, r.v0);
143
+ r.v0 = forwardAttributes(r.n, attributes);
144
+ }
145
+ if (c & 1) {
146
+ const x0 = v[0];
147
+ const s1 = toAttribute(x0, "id");
148
+ if (s1 !== r.v1) writeAttribute(r.a5, "id", r.v1 = s1);
149
+ const x1 = textCall("concat", [v[0], "-delete"]);
150
+ if (x1 !== NONCONFORMING) {
151
+ const s2 = toAttribute(x1, "id");
152
+ if (s2 !== r.v2) writeAttribute(r.a6, "id", r.v2 = s2);
93
153
  }
94
- const x8 = readIndex({ "true": "outline", "false": "ghost" }, textCall("concat", [equalValue(v[4], "center")]));
95
- if (x8 !== NONCONFORMING) {
96
- const s5 = toAttribute(x8, "variant");
97
- if (s5 !== r.v5) writeAttribute(r.a2, "variant", r.v5 = s5);
154
+ const x2 = textCall("concat", [v[0], "-block"]);
155
+ if (x2 !== NONCONFORMING) {
156
+ const s3 = toAttribute(x2, "for");
157
+ if (s3 !== r.v3) writeAttribute(r.a7, "for", r.v3 = s3);
98
158
  }
99
- const x9 = readIndex({ "true": "outline", "false": "ghost" }, textCall("concat", [equalValue(v[4], "wrap-left")]));
100
- if (x9 !== NONCONFORMING) {
101
- const s8 = toAttribute(x9, "variant");
102
- if (s8 !== r.v8) writeAttribute(r.a3, "variant", r.v8 = s8);
159
+ const x3 = textCall("concat", [v[0], "-center"]);
160
+ if (x3 !== NONCONFORMING) {
161
+ const s4 = toAttribute(x3, "for");
162
+ if (s4 !== r.v4) writeAttribute(r.a8, "for", r.v4 = s4);
103
163
  }
104
- const x10 = readIndex({ "true": "outline", "false": "ghost" }, textCall("concat", [equalValue(v[4], "wrap-right")]));
105
- if (x10 !== NONCONFORMING) {
106
- const s11 = toAttribute(x10, "variant");
107
- if (s11 !== r.v11) writeAttribute(r.a4, "variant", r.v11 = s11);
164
+ const x4 = textCall("concat", [v[0], "-wrap-left"]);
165
+ if (x4 !== NONCONFORMING) {
166
+ const s5 = toAttribute(x4, "for");
167
+ if (s5 !== r.v5) writeAttribute(r.a9, "for", r.v5 = s5);
108
168
  }
109
- }
110
- if (c & 16) {
111
- const x11 = textCall("concat", [equalValue(v[4], "block")]);
112
- if (x11 !== NONCONFORMING) {
113
- const s3 = toAttribute(x11, "aria-pressed");
114
- if (s3 !== r.v3) writeAttribute(r.a1, "aria-pressed", r.v3 = s3);
169
+ const x5 = textCall("concat", [v[0], "-wrap-right"]);
170
+ if (x5 !== NONCONFORMING) {
171
+ const s6 = toAttribute(x5, "for");
172
+ if (s6 !== r.v6) writeAttribute(r.a10, "for", r.v6 = s6);
115
173
  }
116
- const x12 = textCall("concat", [equalValue(v[4], "center")]);
117
- if (x12 !== NONCONFORMING) {
118
- const s6 = toAttribute(x12, "aria-pressed");
119
- if (s6 !== r.v6) writeAttribute(r.a2, "aria-pressed", r.v6 = s6);
174
+ const s7 = toAttribute(x0, "for");
175
+ if (s7 !== r.v7) writeAttribute(r.a11, "for", r.v7 = s7);
176
+ if (x1 !== NONCONFORMING) {
177
+ const s8 = toAttribute(x1, "for");
178
+ if (s8 !== r.v8) writeAttribute(r.a12, "for", r.v8 = s8);
120
179
  }
121
- const x13 = textCall("concat", [equalValue(v[4], "wrap-left")]);
122
- if (x13 !== NONCONFORMING) {
123
- const s9 = toAttribute(x13, "aria-pressed");
124
- if (s9 !== r.v9) writeAttribute(r.a3, "aria-pressed", r.v9 = s9);
180
+ const s9 = toAttribute(x0, "for");
181
+ if (s9 !== r.v9) writeAttribute(r.a13, "for", r.v9 = s9);
182
+ const x6 = textCall("concat", [v[0], "-alt"]);
183
+ if (x6 !== NONCONFORMING) {
184
+ const s11 = toAttribute(x6, "for");
185
+ if (s11 !== r.v11) writeAttribute(r.a14, "for", r.v11 = s11);
125
186
  }
126
- const x14 = textCall("concat", [equalValue(v[4], "wrap-right")]);
127
- if (x14 !== NONCONFORMING) {
128
- const s12 = toAttribute(x14, "aria-pressed");
129
- if (s12 !== r.v12) writeAttribute(r.a4, "aria-pressed", r.v12 = s12);
187
+ if (x6 !== NONCONFORMING) {
188
+ const s12 = toAttribute(x6, "id");
189
+ if (s12 !== r.v12) writeAttribute(r.a15, "id", r.v12 = s12);
130
190
  }
131
191
  }
132
192
  if (c & 2) {
133
- const x15 = v[1];
134
- const s22 = toAttribute(x15, "open");
135
- if (s22 !== r.v22) writeAttribute(r.a13, "open", r.v22 = s22);
193
+ const x7 = v[1];
194
+ const s10 = toAttribute(x7, "open");
195
+ if (s10 !== r.v10) writeAttribute(r.a13, "open", r.v10 = s10);
136
196
  }
137
197
  if (c & 4) {
138
- const x16 = v[2];
139
- const s25 = toAttribute(x16, "value");
140
- if (s25 !== r.v25) writeAttribute(r.a15, "value", r.v25 = s25);
198
+ const x8 = v[2];
199
+ const s13 = toAttribute(x8, "value");
200
+ if (s13 !== r.v13) writeAttribute(r.a15, "value", r.v13 = s13);
141
201
  }
202
+ if (c & 16 && !(!truthy(v[4])) !== !r.b0) {
203
+ if (r.b0) { r.b0 = undefined; clearRegion(r.a1, r.e0); }
204
+ else { r.b0 = m1(d); r.e0.before(r.b0.n); }
205
+ } else if (r.b0 !== undefined) p1(r.b0, c, d);
206
+ if (c & 16 && !(!truthy(v[4])) !== !r.b1) {
207
+ if (r.b1) { r.b1 = undefined; clearRegion(r.a2, r.e1); }
208
+ else { r.b1 = m2(d); r.e1.before(r.b1.n); }
209
+ } else if (r.b1 !== undefined) p2(r.b1, c, d);
210
+ if (c & 16 && !(!truthy(v[4])) !== !r.b2) {
211
+ if (r.b2) { r.b2 = undefined; clearRegion(r.a3, r.e2); }
212
+ else { r.b2 = m3(d); r.e2.before(r.b2.n); }
213
+ } else if (r.b2 !== undefined) p3(r.b2, c, d);
214
+ if (c & 16 && !(!truthy(v[4])) !== !r.b3) {
215
+ if (r.b3) { r.b3 = undefined; clearRegion(r.a4, r.e3); }
216
+ else { r.b3 = m4(d); r.e3.before(r.b3.n); }
217
+ } else if (r.b3 !== undefined) p4(r.b3, c, d);
142
218
  };
143
219
  const t0 = element.firstChild.nextSibling;
144
220
  const t1 = t0.firstChild;
145
221
  const t2 = t1.firstChild;
146
- const t3 = t2.nextSibling.nextSibling;
147
- const t4 = t3.nextSibling.nextSibling;
148
- const t5 = t4.nextSibling.nextSibling;
149
- const t6 = t5.nextSibling.nextSibling;
222
+ const t3 = t2.nextSibling.nextSibling.nextSibling;
223
+ const t4 = t3.nextSibling.nextSibling.nextSibling;
224
+ const t5 = t4.nextSibling.nextSibling.nextSibling;
225
+ const t6 = t5.nextSibling.nextSibling.nextSibling;
150
226
  const t7 = t6.nextSibling.nextSibling;
151
227
  const t8 = t1.nextSibling.nextSibling;
152
228
  const t9 = t8.nextSibling.nextSibling;
@@ -158,7 +234,7 @@ export function createUiEditorImageToolbar(options = {}, html) {
158
234
  const t15 = t14.firstChild.firstChild.nextSibling.firstChild;
159
235
  const t16 = t15.firstChild;
160
236
  const t17 = t16.nextSibling;
161
- const R = { n: element, a1: t2, a2: t3, a3: t4, a4: t5, a5: t6, a6: t7, a7: t8, a8: t9, a9: t10, a10: t11, a11: t12, a12: t13, a13: t14, a14: t16, a15: t17, v0: undefined, v1: null, v2: null, v3: null, v4: null, v5: null, v6: null, v7: null, v8: null, v9: null, v10: null, v11: null, v12: null, v13: null, v14: null, v15: null, v16: null, v17: null, v18: null, v19: null, v20: null, v21: null, v22: null, v23: null, v24: null, v25: null };
237
+ const R = { n: element, a5: t6, a6: t7, a7: t8, a8: t9, a9: t10, a10: t11, a11: t12, a12: t13, a13: t14, a14: t16, a15: t17, v0: undefined, v1: null, v2: null, v3: null, v4: null, v5: null, v6: null, v7: null, v8: null, v9: null, v10: null, v11: null, v12: null, v13: null, a1: t2, e0: t2.nextSibling, b0: undefined, a2: t3, e1: t3.nextSibling, b1: undefined, a3: t4, e2: t4.nextSibling, b2: undefined, a4: t5, e3: t5.nextSibling, b3: undefined };
162
238
  const I = { B };
163
239
  I.R = new Set();
164
240
  I.F = { values: attributes, draw: () => ((c, d) => p0(R, c, d))(-1) };
@@ -168,4 +244,4 @@ export function createUiEditorImageToolbar(options = {}, html) {
168
244
  I.r["alt"] = t17;
169
245
  return element;
170
246
  }
171
- defineComponent("ui-editor-image-toolbar", createUiEditorImageToolbar, ["alt","placement","target"]);
247
+ defineComponent("ui-editor-image-toolbar", createUiEditorImageToolbar, ["alt","inline","placement","target"]);