ikoneme-lib 0.1.1 → 0.4.0
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.
- package/README.md +274 -252
- package/dist/ikonCanvas.d.ts +13 -0
- package/dist/ikonLayout.d.ts +69 -0
- package/dist/ikonSchema.d.ts +37 -24
- package/dist/ikoneme-lib.cjs +9 -9
- package/dist/ikoneme-lib.cjs.map +1 -1
- package/dist/ikoneme-lib.js +1007 -782
- package/dist/ikoneme-lib.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/package.json +53 -53
package/dist/ikoneme-lib.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { forwardRef as
|
|
1
|
+
import { jsx as F, Fragment as le, jsxs as S } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as Te, createElement as ue, useState as G, useEffect as ve, useCallback as Ve } from "react";
|
|
3
3
|
/**
|
|
4
4
|
* @license lucide-react v0.294.0 - ISC
|
|
5
5
|
*
|
|
6
6
|
* This source code is licensed under the ISC license.
|
|
7
7
|
* See the LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
|
-
var
|
|
9
|
+
var Be = {
|
|
10
10
|
xmlns: "http://www.w3.org/2000/svg",
|
|
11
11
|
width: 24,
|
|
12
12
|
height: 24,
|
|
@@ -23,23 +23,23 @@ var ke = {
|
|
|
23
23
|
* This source code is licensed under the ISC license.
|
|
24
24
|
* See the LICENSE file in the root directory of this source tree.
|
|
25
25
|
*/
|
|
26
|
-
const
|
|
27
|
-
const l =
|
|
28
|
-
({ color: r = "currentColor", size: i = 24, strokeWidth:
|
|
26
|
+
const Me = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase().trim(), U = (e, t) => {
|
|
27
|
+
const l = Te(
|
|
28
|
+
({ color: r = "currentColor", size: i = 24, strokeWidth: c = 2, absoluteStrokeWidth: n, className: y = "", children: g, ...s }, a) => ue(
|
|
29
29
|
"svg",
|
|
30
30
|
{
|
|
31
|
-
ref:
|
|
32
|
-
...
|
|
31
|
+
ref: a,
|
|
32
|
+
...Be,
|
|
33
33
|
width: i,
|
|
34
34
|
height: i,
|
|
35
35
|
stroke: r,
|
|
36
|
-
strokeWidth:
|
|
37
|
-
className: ["lucide", `lucide-${
|
|
38
|
-
...
|
|
36
|
+
strokeWidth: n ? Number(c) * 24 / Number(i) : c,
|
|
37
|
+
className: ["lucide", `lucide-${Me(e)}`, y].join(" "),
|
|
38
|
+
...s
|
|
39
39
|
},
|
|
40
40
|
[
|
|
41
|
-
...
|
|
42
|
-
...Array.isArray(
|
|
41
|
+
...t.map(([u, v]) => ue(u, v)),
|
|
42
|
+
...Array.isArray(g) ? g : [g]
|
|
43
43
|
]
|
|
44
44
|
)
|
|
45
45
|
);
|
|
@@ -51,7 +51,7 @@ const be = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase().trim(),
|
|
|
51
51
|
* This source code is licensed under the ISC license.
|
|
52
52
|
* See the LICENSE file in the root directory of this source tree.
|
|
53
53
|
*/
|
|
54
|
-
const
|
|
54
|
+
const Ne = U("ArrowLeft", [
|
|
55
55
|
["path", { d: "m12 19-7-7 7-7", key: "1l729n" }],
|
|
56
56
|
["path", { d: "M19 12H5", key: "x3x0zl" }]
|
|
57
57
|
]);
|
|
@@ -61,7 +61,7 @@ const ye = D("ArrowLeft", [
|
|
|
61
61
|
* This source code is licensed under the ISC license.
|
|
62
62
|
* See the LICENSE file in the root directory of this source tree.
|
|
63
63
|
*/
|
|
64
|
-
const
|
|
64
|
+
const Le = U("Pen", [
|
|
65
65
|
["path", { d: "M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z", key: "5qss01" }]
|
|
66
66
|
]);
|
|
67
67
|
/**
|
|
@@ -70,7 +70,7 @@ const ve = D("Pen", [
|
|
|
70
70
|
* This source code is licensed under the ISC license.
|
|
71
71
|
* See the LICENSE file in the root directory of this source tree.
|
|
72
72
|
*/
|
|
73
|
-
const
|
|
73
|
+
const De = U("Search", [
|
|
74
74
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
|
|
75
75
|
["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
|
|
76
76
|
]);
|
|
@@ -80,7 +80,7 @@ const we = D("Search", [
|
|
|
80
80
|
* This source code is licensed under the ISC license.
|
|
81
81
|
* See the LICENSE file in the root directory of this source tree.
|
|
82
82
|
*/
|
|
83
|
-
const
|
|
83
|
+
const Oe = U("Trash2", [
|
|
84
84
|
["path", { d: "M3 6h18", key: "d0wm0j" }],
|
|
85
85
|
["path", { d: "M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6", key: "4alrt4" }],
|
|
86
86
|
["path", { d: "M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2", key: "v07s0e" }],
|
|
@@ -93,10 +93,71 @@ const Ie = D("Trash2", [
|
|
|
93
93
|
* This source code is licensed under the ISC license.
|
|
94
94
|
* See the LICENSE file in the root directory of this source tree.
|
|
95
95
|
*/
|
|
96
|
-
const
|
|
96
|
+
const Re = U("X", [
|
|
97
97
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
98
98
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
99
|
-
]),
|
|
99
|
+
]), he = "https://ikondb.iigap.com", Ge = 60 * 60 * 1e3;
|
|
100
|
+
let $ = null, j = null;
|
|
101
|
+
const A = /* @__PURE__ */ new Map();
|
|
102
|
+
function Ke(e) {
|
|
103
|
+
return !e || Array.isArray(e) ? null : e.origin || e.preview || e.thumb || e.svg || null;
|
|
104
|
+
}
|
|
105
|
+
function Pe(e) {
|
|
106
|
+
if (!e || Array.isArray(e)) return {};
|
|
107
|
+
const { origin: t = null, preview: l = null, thumb: r = null, svg: i = null } = e;
|
|
108
|
+
return { origin: t, preview: l, thumb: r, svg: i };
|
|
109
|
+
}
|
|
110
|
+
async function je(e) {
|
|
111
|
+
const t = await fetch(`${e}/api/ikons`);
|
|
112
|
+
if (!t.ok) throw new Error(`IkonDB GET /api/ikons -> ${t.status}`);
|
|
113
|
+
const l = await t.json();
|
|
114
|
+
return (Array.isArray(l == null ? void 0 : l.data) ? l.data : []).map((i) => ({
|
|
115
|
+
id: i.id,
|
|
116
|
+
name: i.description || "",
|
|
117
|
+
url: Ke(i.media)
|
|
118
|
+
})).filter((i) => i.url);
|
|
119
|
+
}
|
|
120
|
+
async function He({ baseUrl: e = he } = {}) {
|
|
121
|
+
return $ && Date.now() - $.at < Ge ? $.list : j || (j = je(e).then((t) => ($ = { at: Date.now(), list: t }, t)).finally(() => {
|
|
122
|
+
j = null;
|
|
123
|
+
}), j);
|
|
124
|
+
}
|
|
125
|
+
async function be(e, { baseUrl: t = he, limit: l = 20 } = {}) {
|
|
126
|
+
const r = (e || "").trim().toLowerCase();
|
|
127
|
+
if (!r) return [];
|
|
128
|
+
const i = await He({ baseUrl: t }), c = [];
|
|
129
|
+
for (const n of i)
|
|
130
|
+
if (n.name.toLowerCase().includes(r) && (c.push(n), c.length >= l))
|
|
131
|
+
break;
|
|
132
|
+
return c;
|
|
133
|
+
}
|
|
134
|
+
async function We(e, { baseUrl: t = he } = {}) {
|
|
135
|
+
if (e == null) return null;
|
|
136
|
+
if (A.has(e)) return A.get(e);
|
|
137
|
+
const l = await fetch(`${t}/api/ikons/${encodeURIComponent(e)}`);
|
|
138
|
+
if (!l.ok) throw new Error(`IkonDB GET /api/ikons/${e} -> ${l.status}`);
|
|
139
|
+
const r = await l.json();
|
|
140
|
+
if ((r == null ? void 0 : r.status) !== "success" || !(r != null && r.data))
|
|
141
|
+
return A.set(e, null), null;
|
|
142
|
+
const i = Pe(r.data.media), c = {
|
|
143
|
+
id: r.data.id,
|
|
144
|
+
name: r.data.description || "",
|
|
145
|
+
url: i.origin || i.preview || i.thumb || i.svg || null,
|
|
146
|
+
...i
|
|
147
|
+
};
|
|
148
|
+
return A.set(e, c), c;
|
|
149
|
+
}
|
|
150
|
+
async function $e(e) {
|
|
151
|
+
try {
|
|
152
|
+
return await be(e);
|
|
153
|
+
} catch {
|
|
154
|
+
return [];
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
function Et() {
|
|
158
|
+
$ = null, j = null, A.clear();
|
|
159
|
+
}
|
|
160
|
+
const Ae = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2016.0.4,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20width='78px'%20height='78px'%20viewBox='0%200%2078%2078'%20enable-background='new%200%200%2078%2078'%20xml:space='preserve'%3e%3cg%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='%23E6BE1E'%20d='M3,3L3,3C1.438,4.392,0,7.172,0,9.261V78h68.921%20c2.165,0,4.685-1.348,6.079-3l0,0H3V3z'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='%23E6BE1E'%20d='M75,75L75,75c1.562-1.391,3-4.174,3-6.261V0H9.079%20C6.914,0,4.395,1.346,3,3l0,0h72V75z'/%3e%3c/g%3e%3crect%20x='75'%20fill='%23303030'%20width='3'%20height='3'/%3e%3crect%20y='75'%20fill='%23303030'%20width='3'%20height='3'/%3e%3crect%20x='30'%20y='1.5'%20fill='%23FFFFFF'%20width='18'%20height='1.5'/%3e%3crect%20x='30'%20y='75'%20fill='%23FFFFFF'%20width='18'%20height='1.5'/%3e%3crect%20x='75'%20y='30'%20fill='%23FFFFFF'%20width='1.5'%20height='18'/%3e%3crect%20x='1.5'%20y='30'%20fill='%23FFFFFF'%20width='1.5'%20height='18'/%3e%3c/svg%3e", ze = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2016.0.4,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20width='78px'%20height='78px'%20viewBox='0%200%2078%2078'%20enable-background='new%200%200%2078%2078'%20xml:space='preserve'%3e%3cg%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='%23960000'%20d='M3,3L3,3C1.438,4.392,0,7.172,0,9.261V78h68.921%20c2.165,0,4.685-1.348,6.079-3l0,0H3V3z'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='%23960000'%20d='M75,75L75,75c1.562-1.391,3-4.174,3-6.261V0H9.079%20C6.914,0,4.395,1.346,3,3l0,0h72V75z'/%3e%3c/g%3e%3cg%3e%3crect%20x='9'%20y='1.5'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3crect%20x='24'%20y='1.5'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3crect%20x='39'%20y='1.5'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3crect%20x='54'%20y='1.5'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3crect%20x='69'%20y='1.5'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3crect%20x='75'%20y='61.5'%20fill='%23FFFFFF'%20width='1.5'%20height='7.5'/%3e%3crect%20x='75'%20y='46.5'%20fill='%23FFFFFF'%20width='1.5'%20height='7.5'/%3e%3crect%20x='75'%20y='31.5'%20fill='%23FFFFFF'%20width='1.5'%20height='7.5'/%3e%3crect%20x='75'%20y='16.5'%20fill='%23FFFFFF'%20width='1.5'%20height='7.5'/%3e%3crect%20x='75'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='7.5'/%3e%3c/g%3e%3cg%3e%3crect%20x='61.5'%20y='75'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3crect%20x='46.5'%20y='75'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3crect%20x='31.5'%20y='75'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3crect%20x='16.5'%20y='75'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='75'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='9'%20fill='%23FFFFFF'%20width='1.5'%20height='7.5'/%3e%3crect%20x='1.5'%20y='24'%20fill='%23FFFFFF'%20width='1.5'%20height='7.5'/%3e%3crect%20x='1.5'%20y='39'%20fill='%23FFFFFF'%20width='1.5'%20height='7.5'/%3e%3crect%20x='1.5'%20y='54'%20fill='%23FFFFFF'%20width='1.5'%20height='7.5'/%3e%3crect%20x='1.5'%20y='69'%20fill='%23FFFFFF'%20width='1.5'%20height='7.5'/%3e%3c/g%3e%3crect%20x='75'%20fill='%23303030'%20width='3'%20height='3'/%3e%3crect%20y='75'%20fill='%23303030'%20width='3'%20height='3'/%3e%3c/svg%3e", Ue = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2016.0.4,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20width='78px'%20height='78px'%20viewBox='0%200%2078%2078'%20enable-background='new%200%200%2078%2078'%20xml:space='preserve'%3e%3cg%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='%23006E96'%20d='M3,3L3,3C1.438,4.392,0,7.172,0,9.261V78h68.921%20c2.165,0,4.685-1.348,6.079-3l0,0H3V3z'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='%23006E96'%20d='M75,75L75,75c1.562-1.391,3-4.174,3-6.261V0H9.079%20C6.914,0,4.395,1.346,3,3l0,0h72V75z'/%3e%3c/g%3e%3crect%20x='75'%20fill='%23303030'%20width='3'%20height='3'/%3e%3crect%20y='75'%20fill='%23303030'%20width='3'%20height='3'/%3e%3crect%20x='58.5'%20y='1.5'%20fill='%23FFFFFF'%20width='18'%20height='1.5'/%3e%3crect%20x='75'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='18'/%3e%3crect%20x='1.5'%20y='75'%20fill='%23FFFFFF'%20width='18'%20height='1.5'/%3e%3crect%20x='1.5'%20y='58.5'%20fill='%23FFFFFF'%20width='1.5'%20height='18'/%3e%3c/svg%3e", Ye = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2016.0.4,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20width='78px'%20height='78px'%20viewBox='0%200%2078%2078'%20enable-background='new%200%200%2078%2078'%20xml:space='preserve'%3e%3cg%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='%23E6821E'%20d='M3,3L3,3C1.438,4.392,0,7.172,0,9.261V78h68.921%20c2.165,0,4.685-1.348,6.079-3l0,0H3V3z'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='%23E6821E'%20d='M75,75L75,75c1.562-1.391,3-4.174,3-6.261V0H9.079%20C6.914,0,4.395,1.346,3,3l0,0h72V75z'/%3e%3c/g%3e%3crect%20x='75'%20fill='%23303030'%20width='3'%20height='3'/%3e%3crect%20y='75'%20fill='%23303030'%20width='3'%20height='3'/%3e%3crect%20x='6'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='6'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='9'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='12'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='15'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='18'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='21'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='24'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='27'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='30'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='33'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='36'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='39'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='42'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='45'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='48'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='51'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='54'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='57'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='60'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='63'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='66'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='69'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='72'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='4.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='7.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='10.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='13.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='16.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='19.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='22.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='25.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='28.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='31.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='34.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='37.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='40.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='43.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='46.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='49.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='52.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='55.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='58.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='61.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='64.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='67.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='70.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='9'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='12'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='15'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='18'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='21'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='24'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='27'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='30'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='33'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='36'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='39'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='42'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='45'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='48'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='51'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='54'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='57'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='60'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='63'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='66'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='69'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='72'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='4.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='7.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='10.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='13.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='16.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='19.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='22.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='25.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='28.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='31.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='34.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='37.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='40.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='43.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='46.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='49.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='52.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='55.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='58.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='61.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='64.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='67.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='70.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3c/svg%3e", Ze = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2016.0.4,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20width='78px'%20height='78px'%20viewBox='0%200%2078%2078'%20enable-background='new%200%200%2078%2078'%20xml:space='preserve'%3e%3cg%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='%23508C50'%20d='M3,3L3,3C1.438,4.392,0,7.172,0,9.261V78h68.921%20c2.165,0,4.685-1.348,6.079-3l0,0H3V3z'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='%23508C50'%20d='M75,75L75,75c1.562-1.391,3-4.174,3-6.261V0H9.079%20C6.914,0,4.395,1.346,3,3l0,0h72V75z'/%3e%3c/g%3e%3crect%20x='75'%20fill='%23303030'%20width='3'%20height='3'/%3e%3crect%20y='75'%20fill='%23303030'%20width='3'%20height='3'/%3e%3crect%20x='1.5'%20y='9'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='18'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='27'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='36'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='45'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='54'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='63'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='72'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='6'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='15'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='24'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='33'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='42'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='51'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='60'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='69'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3c/svg%3e", qe = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2028.1.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20width='78px'%20height='78px'%20viewBox='0%200%2078%2078'%20style='enable-background:new%200%200%2078%2078;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{fill-rule:evenodd;clip-rule:evenodd;fill:%236F6F6F;}%20.st1{fill:%23303030;}%20%3c/style%3e%3cg%20id='Neutral_00000127737234708554144110000011539647311500563641_'%3e%3cg%3e%3cpath%20class='st0'%20d='M3,3L3,3C1.4,4.4,0,7.2,0,9.3V78h68.9c2.2,0,4.7-1.3,6.1-3l0,0H3V3z'/%3e%3cpath%20class='st0'%20d='M75,75L75,75c1.6-1.4,3-4.2,3-6.3V0H9.1C6.9,0,4.4,1.3,3,3l0,0h72V75z'/%3e%3c/g%3e%3crect%20x='75'%20class='st1'%20width='3'%20height='3'/%3e%3crect%20y='75'%20class='st1'%20width='3'%20height='3'/%3e%3c/g%3e%3c/svg%3e", Xe = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2016.0.4,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20width='150px'%20height='78px'%20viewBox='0%200%20150%2078'%20enable-background='new%200%200%20150%2078'%20xml:space='preserve'%3e%3cg%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='%23E6BE1E'%20d='M3,3L3,3C1.438,4.392,0,7.172,0,9.261L0.102,78h140.921%20c2.063,0,4.583-1.348,5.977-3h0.102h-144L3,3z'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='%23E6BE1E'%20d='M147,75L147,75c1.562-1.391,3-4.174,3-6.261L150.102,0H9.181%20C6.914,0,4.395,1.346,3,3h0.102h144L147,75z'/%3e%3c/g%3e%3crect%20x='147'%20fill='%23303030'%20width='3'%20height='3'/%3e%3crect%20y='75'%20fill='%23303030'%20width='3'%20height='3'/%3e%3crect%20x='65.102'%20y='1.5'%20fill='%23FFFFFF'%20width='18'%20height='1.5'/%3e%3crect%20x='65.102'%20y='75'%20fill='%23FFFFFF'%20width='18'%20height='1.5'/%3e%3crect%20x='147'%20y='30'%20fill='%23FFFFFF'%20width='1.5'%20height='18'/%3e%3crect%20x='1.5'%20y='30'%20fill='%23FFFFFF'%20width='1.5'%20height='18'/%3e%3c/svg%3e", Qe = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2016.0.4,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20width='150px'%20height='78px'%20viewBox='0%200%20150%2078'%20enable-background='new%200%200%20150%2078'%20xml:space='preserve'%3e%3cg%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='%23960000'%20d='M3,3L3,3C1.438,4.392,0,7.172,0,9.261V78h140.921%20c2.165,0,4.685-1.348,6.079-3l0,0H3V3z'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='%23960000'%20d='M147,75L147,75c1.562-1.391,3-4.174,3-6.261V0H9.079%20C6.914,0,4.395,1.346,3,3l0,0h144V75z'/%3e%3c/g%3e%3crect%20x='147'%20fill='%23303030'%20width='3'%20height='3'/%3e%3crect%20y='75'%20fill='%23303030'%20width='3'%20height='3'/%3e%3crect%20x='81'%20y='1.5'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3crect%20x='96'%20y='1.5'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3crect%20x='111'%20y='1.5'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3crect%20x='126'%20y='1.5'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3crect%20x='141'%20y='1.5'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3cg%3e%3crect%20x='6'%20y='1.5'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3crect%20x='21'%20y='1.5'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3crect%20x='36'%20y='1.5'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3crect%20x='51'%20y='1.5'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3crect%20x='66'%20y='1.5'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3c/g%3e%3cg%3e%3crect%20x='76.5'%20y='75'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3crect%20x='91.5'%20y='75'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3crect%20x='106.5'%20y='75'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3crect%20x='121.5'%20y='75'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3crect%20x='136.5'%20y='75'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3c/g%3e%3crect%20x='147'%20y='61.5'%20fill='%23FFFFFF'%20width='1.5'%20height='7.5'/%3e%3crect%20x='147'%20y='46.5'%20fill='%23FFFFFF'%20width='1.5'%20height='7.5'/%3e%3crect%20x='147'%20y='31.5'%20fill='%23FFFFFF'%20width='1.5'%20height='7.5'/%3e%3crect%20x='147'%20y='16.5'%20fill='%23FFFFFF'%20width='1.5'%20height='7.5'/%3e%3crect%20x='147'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='7.5'/%3e%3cg%3e%3crect%20x='61.5'%20y='75'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3crect%20x='46.5'%20y='75'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3crect%20x='31.5'%20y='75'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3crect%20x='16.5'%20y='75'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='75'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='9'%20fill='%23FFFFFF'%20width='1.5'%20height='7.5'/%3e%3crect%20x='1.5'%20y='24'%20fill='%23FFFFFF'%20width='1.5'%20height='7.5'/%3e%3crect%20x='1.5'%20y='39'%20fill='%23FFFFFF'%20width='1.5'%20height='7.5'/%3e%3crect%20x='1.5'%20y='54'%20fill='%23FFFFFF'%20width='1.5'%20height='7.5'/%3e%3crect%20x='1.5'%20y='69'%20fill='%23FFFFFF'%20width='1.5'%20height='7.5'/%3e%3c/g%3e%3c/svg%3e", Je = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2016.0.4,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20width='150px'%20height='78px'%20viewBox='0%200%20150%2078'%20enable-background='new%200%200%20150%2078'%20xml:space='preserve'%3e%3cg%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='%23006E96'%20d='M3.084,3L3.084,3c-1.562,1.392-3,4.172-3,6.261V78h140.921%20c2.165,0,4.685-1.348,6.079-3l0,0h-144V3z'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='%23006E96'%20d='M147.084,75L147.084,75c1.562-1.391,3-4.174,3-6.261V0H9.163%20C6.998,0,4.479,1.346,3.084,3l0,0h144V75z'/%3e%3c/g%3e%3crect%20x='147'%20fill='%23303030'%20width='3'%20height='3'/%3e%3crect%20y='75'%20fill='%23303030'%20width='3'%20height='3'/%3e%3crect%20x='130.584'%20y='1.5'%20fill='%23FFFFFF'%20width='18'%20height='1.5'/%3e%3crect%20x='147.084'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='18'/%3e%3crect%20x='1.584'%20y='75'%20fill='%23FFFFFF'%20width='18'%20height='1.5'/%3e%3crect%20x='1.584'%20y='58.5'%20fill='%23FFFFFF'%20width='1.5'%20height='18'/%3e%3c/svg%3e", et = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2016.0.4,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20width='150px'%20height='78px'%20viewBox='0%200%20150%2078'%20enable-background='new%200%200%20150%2078'%20xml:space='preserve'%3e%3cg%3e%3cg%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='%23E6821E'%20d='M2.917,3L2.917,3c-1.562,1.392-3,4.172-3,6.261V78h140.921%20c2.165,0,4.685-1.348,6.079-3l0,0h-144V3z'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='%23E6821E'%20d='M146.917,75L146.917,75c1.562-1.391,3-4.174,3-6.261V0H8.996%20C6.831,0,4.312,1.346,2.917,3l0,0h144V75z'/%3e%3c/g%3e%3crect%20x='147'%20fill='%23303030'%20width='3'%20height='3'/%3e%3crect%20y='75'%20fill='%23303030'%20width='3'%20height='3'/%3e%3c/g%3e%3crect%20x='1.5'%20y='6'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='9'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='12'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='15'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='18'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='21'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='24'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='27'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='30'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='33'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='36'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='39'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='42'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='45'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='48'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='51'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='54'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='57'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='60'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='63'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='66'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='69'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='72'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='4.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='7.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='10.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='13.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='16.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='19.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='22.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='25.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='28.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='31.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='34.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='37.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='40.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='43.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='46.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='49.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='52.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='55.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='58.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='61.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='64.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='67.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='70.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='144'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='142.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3cg%3e%3crect%20x='6'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='9'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='12'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='15'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='18'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='21'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='24'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='27'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='30'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='33'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='36'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='39'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='42'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='45'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='48'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='51'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='54'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='57'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='60'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='63'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='66'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='69'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='72'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3c/g%3e%3cg%3e%3crect%20x='75'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='78'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='81'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='84'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='87'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='90'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='93'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='96'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='99'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='102'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='105'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='108'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='111'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='114'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='117'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='120'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='123'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='126'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='129'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='132'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='135'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='138'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='141'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3c/g%3e%3cg%3e%3crect%20x='73.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='76.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='79.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='82.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='85.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='88.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='91.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='94.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='97.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='100.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='103.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='106.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='109.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='112.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='115.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='118.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='121.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='124.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='127.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='130.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='133.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='136.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='139.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3c/g%3e%3cg%3e%3crect%20x='147.002'%20y='4.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147.002'%20y='7.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147.002'%20y='10.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147.002'%20y='13.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147.002'%20y='16.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147.002'%20y='19.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147.002'%20y='22.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147.002'%20y='25.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147.002'%20y='28.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147.002'%20y='31.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147.002'%20y='34.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147.002'%20y='37.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147.002'%20y='40.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147.002'%20y='43.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147.002'%20y='46.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147.002'%20y='49.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147.002'%20y='52.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147.002'%20y='55.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147.002'%20y='58.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147.002'%20y='61.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147.002'%20y='64.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147.002'%20y='67.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147.002'%20y='70.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3c/g%3e%3c/svg%3e", tt = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2016.0.4,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20width='150px'%20height='78px'%20viewBox='0%200%20150%2078'%20enable-background='new%200%200%20150%2078'%20xml:space='preserve'%3e%3cg%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='%23508C50'%20d='M3,3L3,3C1.438,4.392,0,7.172,0,9.261V78h140.921%20c2.165,0,4.685-1.348,6.079-3l0,0H3V3z'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='%23508C50'%20d='M147,75L147,75c1.562-1.391,3-4.174,3-6.261V0H9.079%20C6.914,0,4.395,1.346,3,3l0,0h144V75z'/%3e%3c/g%3e%3crect%20x='147'%20fill='%23303030'%20width='3'%20height='3'/%3e%3crect%20y='75'%20fill='%23303030'%20width='3'%20height='3'/%3e%3crect%20x='1.5'%20y='9'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='18'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='27'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='36'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='45'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='54'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='63'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='72'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147'%20y='6'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147'%20y='15'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147'%20y='24'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147'%20y='33'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147'%20y='42'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147'%20y='51'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147'%20y='60'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147'%20y='69'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3c/svg%3e", it = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2016.0.4,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20width='150px'%20height='78px'%20viewBox='0%200%20150%2078'%20enable-background='new%200%200%20150%2078'%20xml:space='preserve'%3e%3cg%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='%236F6F6F'%20d='M3,3L3,3C1.438,4.392,0,7.172,0,9.261V78h140.921%20c2.165,0,4.685-1.348,6.079-3l0,0H3V3z'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='%236F6F6F'%20d='M147,75L147,75c1.562-1.391,3-4.174,3-6.261V0H9.079%20C6.914,0,4.395,1.346,3,3l0,0h144V75z'/%3e%3c/g%3e%3crect%20x='147'%20fill='%23303030'%20width='3'%20height='3'/%3e%3crect%20y='75'%20fill='%23303030'%20width='3'%20height='3'/%3e%3c/svg%3e", I = {
|
|
100
161
|
context: [
|
|
101
162
|
{ tooltip: "Male", url: "https://text2ikon.komunikon.com/gender-assets/KomunIKON_Male.svg" },
|
|
102
163
|
{
|
|
@@ -152,36 +213,36 @@ const Se = D("X", [
|
|
|
152
213
|
{ tooltip: "Exclam", url: "https://text2ikon.komunikon.com/mode-assets/KomunIKON_Exclam.svg" },
|
|
153
214
|
{ tooltip: "Which", url: "https://text2ikon.komunikon.com/mode-assets/KomunIKON_Which.svg" }
|
|
154
215
|
],
|
|
155
|
-
// Direct source URLs
|
|
156
|
-
//
|
|
216
|
+
// Direct source URLs on ikondb.iigap.com, the IkonDB instance this library
|
|
217
|
+
// uses everywhere (also bypasses text2ikon's `_next/image` proxy).
|
|
157
218
|
root: [
|
|
158
219
|
{
|
|
159
220
|
tooltip: "Love/Passion",
|
|
160
|
-
url: "https://ikondb.
|
|
221
|
+
url: "https://ikondb.iigap.com/storage/media/960/ZFcaar88AP.png"
|
|
161
222
|
},
|
|
162
223
|
{
|
|
163
224
|
tooltip: "Star/Excellence",
|
|
164
|
-
url: "https://ikondb.
|
|
225
|
+
url: "https://ikondb.iigap.com/storage/media/991/M0ADaSXzWe.png"
|
|
165
226
|
},
|
|
166
227
|
{
|
|
167
228
|
tooltip: "Value/Precious",
|
|
168
|
-
url: "https://ikondb.
|
|
229
|
+
url: "https://ikondb.iigap.com/storage/media/942/6ghAUKbdIs.png"
|
|
169
230
|
},
|
|
170
231
|
{
|
|
171
232
|
tooltip: "Fire/Hot",
|
|
172
|
-
url: "https://ikondb.
|
|
233
|
+
url: "https://ikondb.iigap.com/storage/media/1478/zq0n4vHSQW.png"
|
|
173
234
|
},
|
|
174
235
|
{
|
|
175
236
|
tooltip: "Water/Fluid",
|
|
176
|
-
url: "https://ikondb.
|
|
237
|
+
url: "https://ikondb.iigap.com/storage/media/1480/DVhDIm6KqB.png"
|
|
177
238
|
},
|
|
178
239
|
{
|
|
179
240
|
tooltip: "Flower/Beauty",
|
|
180
|
-
url: "https://ikondb.
|
|
241
|
+
url: "https://ikondb.iigap.com/storage/media/1048/UnpCfhHsUa.png"
|
|
181
242
|
},
|
|
182
243
|
{
|
|
183
244
|
tooltip: "Leaf/Nature",
|
|
184
|
-
url: "https://ikondb.
|
|
245
|
+
url: "https://ikondb.iigap.com/storage/media/1398/5Ex6my6BI7.png"
|
|
185
246
|
}
|
|
186
247
|
],
|
|
187
248
|
tenses: [
|
|
@@ -262,112 +323,230 @@ const Se = D("X", [
|
|
|
262
323
|
url: "https://text2ikon.komunikon.com/time-assets/KomunIKON_Verbal_Tense_os.svg"
|
|
263
324
|
}
|
|
264
325
|
]
|
|
265
|
-
},
|
|
266
|
-
{ id: "name", label: "Name", color: "#
|
|
267
|
-
{ id: "verb", label: "Verb", color: "#
|
|
268
|
-
{ id: "adjective", label: "Adjective", color: "#
|
|
269
|
-
{ id: "adverb", label: "Adverb", color: "#
|
|
270
|
-
{
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
{ id: "
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
326
|
+
}, z = [
|
|
327
|
+
{ id: "name", label: "Name", color: "#E6BE1E", plural: !1, image: Ae },
|
|
328
|
+
{ id: "verb", label: "Verb", color: "#960000", plural: !1, image: ze },
|
|
329
|
+
{ id: "adjective", label: "Adjective", color: "#006E96", plural: !1, image: Ue },
|
|
330
|
+
{ id: "adverb", label: "Adverb", color: "#E6821E", plural: !1, image: Ye },
|
|
331
|
+
{
|
|
332
|
+
id: "conjunction",
|
|
333
|
+
label: "Conjunction",
|
|
334
|
+
color: "#508C50",
|
|
335
|
+
plural: !1,
|
|
336
|
+
image: Ze
|
|
337
|
+
},
|
|
338
|
+
{ id: "neutral", label: "Neutral", color: "#6F6F6F", plural: !1, image: qe },
|
|
339
|
+
{
|
|
340
|
+
id: "name_plural",
|
|
341
|
+
label: "Name (plural)",
|
|
342
|
+
color: "#E6BE1E",
|
|
343
|
+
plural: !0,
|
|
344
|
+
image: Xe
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
id: "verb_plural",
|
|
348
|
+
label: "Verb (plural)",
|
|
349
|
+
color: "#960000",
|
|
350
|
+
plural: !0,
|
|
351
|
+
image: Qe
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
id: "adjective_plural",
|
|
355
|
+
label: "Adjective (plural)",
|
|
356
|
+
color: "#006E96",
|
|
357
|
+
plural: !0,
|
|
358
|
+
image: Je
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
id: "adverb_plural",
|
|
362
|
+
label: "Adverb (plural)",
|
|
363
|
+
color: "#E6821E",
|
|
364
|
+
plural: !0,
|
|
365
|
+
image: et
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
id: "conjunction_plural",
|
|
369
|
+
label: "Conjunction (plural)",
|
|
370
|
+
color: "#508C50",
|
|
371
|
+
plural: !0,
|
|
372
|
+
image: tt
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
id: "neutral_plural",
|
|
376
|
+
label: "Neutral (plural)",
|
|
377
|
+
color: "#6F6F6F",
|
|
378
|
+
plural: !0,
|
|
379
|
+
image: it
|
|
380
|
+
}
|
|
381
|
+
], rt = z.map((e) => e.id), lt = new Set(rt);
|
|
382
|
+
function se(e) {
|
|
383
|
+
return z.find((t) => t.id === e) ?? null;
|
|
281
384
|
}
|
|
282
|
-
function
|
|
385
|
+
function ae(e) {
|
|
386
|
+
const t = e / 78, l = Math.max(2, Math.round(3 * t));
|
|
387
|
+
return { frame: l, corner: Math.max(l, Math.round(9 * t)) };
|
|
388
|
+
}
|
|
389
|
+
function oe(e, t) {
|
|
390
|
+
const l = typeof e == "string" ? se(e) : e;
|
|
391
|
+
if (!l) return {};
|
|
392
|
+
const { frame: r, corner: i } = ae(t), c = l.plural ? "11.538% 6%" : "11.538%";
|
|
393
|
+
return {
|
|
394
|
+
borderStyle: "solid",
|
|
395
|
+
borderColor: "transparent",
|
|
396
|
+
borderWidth: `${r}px`,
|
|
397
|
+
borderImageSource: `url("${l.image}")`,
|
|
398
|
+
borderImageSlice: c,
|
|
399
|
+
borderImageWidth: `${i}px`,
|
|
400
|
+
borderImageRepeat: "stretch",
|
|
401
|
+
// The artwork draws its own rounded outer corners and has a square inner
|
|
402
|
+
// edge: keep the box square and the card fill strictly inside the frame,
|
|
403
|
+
// so it neither peeks out around the curves nor leaves a gap inside them.
|
|
404
|
+
borderRadius: 0,
|
|
405
|
+
backgroundClip: "padding-box"
|
|
406
|
+
};
|
|
407
|
+
}
|
|
408
|
+
function D(e, t) {
|
|
283
409
|
var l;
|
|
284
|
-
return (l =
|
|
410
|
+
return (l = I[e]) == null ? void 0 : l.find((r) => r.url === t);
|
|
285
411
|
}
|
|
286
|
-
function
|
|
412
|
+
function _t(e, t) {
|
|
287
413
|
var l, r;
|
|
288
|
-
return (r = (l =
|
|
414
|
+
return (r = (l = I[e]) == null ? void 0 : l[t]) == null ? void 0 : r.url;
|
|
289
415
|
}
|
|
290
|
-
function
|
|
416
|
+
function N(e) {
|
|
291
417
|
return e == null ? null : typeof e == "object" && "url" in e ? e.url : e;
|
|
292
418
|
}
|
|
293
|
-
function
|
|
419
|
+
function Fe(e) {
|
|
294
420
|
return e == null ? null : typeof e == "object" ? e.svg || e.url || null : e;
|
|
295
421
|
}
|
|
296
|
-
function
|
|
422
|
+
function V(e) {
|
|
297
423
|
return { name: e.tooltip, url: e.url };
|
|
298
424
|
}
|
|
299
|
-
function
|
|
425
|
+
function pe() {
|
|
300
426
|
return {
|
|
301
|
-
context:
|
|
427
|
+
context: V(I.context[0]),
|
|
302
428
|
reference: {
|
|
303
429
|
left: null,
|
|
304
430
|
right: null
|
|
305
431
|
},
|
|
306
|
-
role:
|
|
307
|
-
modes:
|
|
308
|
-
root:
|
|
432
|
+
role: V(I.role[0]),
|
|
433
|
+
modes: V(I.modes[0]),
|
|
434
|
+
root: V(I.root[0]),
|
|
435
|
+
rootName: null,
|
|
436
|
+
tenses: V(I.tenses[0]),
|
|
437
|
+
border: null
|
|
438
|
+
};
|
|
439
|
+
}
|
|
440
|
+
function Tt() {
|
|
441
|
+
return {
|
|
442
|
+
context: null,
|
|
443
|
+
reference: { left: null, right: null },
|
|
444
|
+
role: null,
|
|
445
|
+
modes: null,
|
|
446
|
+
root: null,
|
|
309
447
|
rootName: null,
|
|
310
|
-
tenses:
|
|
448
|
+
tenses: null,
|
|
311
449
|
border: null
|
|
312
450
|
};
|
|
313
451
|
}
|
|
314
|
-
function
|
|
315
|
-
var
|
|
452
|
+
function ot(e) {
|
|
453
|
+
var g, s, a, u, v, C, k;
|
|
316
454
|
if (!e) return e;
|
|
317
|
-
const
|
|
455
|
+
const t = e.reference || { left: null, right: null }, l = typeof e.context == "string" ? D("context", e.context) : null, r = typeof e.role == "string" ? D("role", e.role) : null, i = typeof e.modes == "string" ? D("modes", e.modes) : null, c = typeof e.root == "string" ? D("root", e.root) : null, n = typeof e.tenses == "string" ? D("tenses", e.tenses) : null, y = e.border != null && lt.has(e.border) ? e.border : null;
|
|
318
456
|
return {
|
|
319
457
|
...e,
|
|
320
|
-
context: typeof e.context == "object" && ((
|
|
458
|
+
context: typeof e.context == "object" && ((g = e.context) == null ? void 0 : g.url) != null ? e.context : l ? V(l) : { name: "", url: e.context || "" },
|
|
321
459
|
reference: {
|
|
322
|
-
left:
|
|
323
|
-
right:
|
|
460
|
+
left: t.left == null ? null : typeof t.left == "object" && ((s = t.left) == null ? void 0 : s.url) != null ? t.left : D("reference", t.left) ? V(D("reference", t.left)) : { name: "", url: t.left },
|
|
461
|
+
right: t.right == null ? null : typeof t.right == "object" && ((a = t.right) == null ? void 0 : a.url) != null ? t.right : D("reference", t.right) ? V(D("reference", t.right)) : { name: "", url: t.right }
|
|
324
462
|
},
|
|
325
|
-
role: typeof e.role == "object" && ((
|
|
326
|
-
modes: typeof e.modes == "object" && ((
|
|
327
|
-
root: typeof e.root == "object" && ((
|
|
328
|
-
tenses: typeof e.tenses == "object" && ((
|
|
329
|
-
border:
|
|
463
|
+
role: typeof e.role == "object" && ((u = e.role) == null ? void 0 : u.url) != null ? e.role : r ? V(r) : { name: "", url: e.role || "" },
|
|
464
|
+
modes: typeof e.modes == "object" && ((v = e.modes) == null ? void 0 : v.url) != null ? e.modes : i ? V(i) : { name: "", url: e.modes || "" },
|
|
465
|
+
root: typeof e.root == "object" && ((C = e.root) == null ? void 0 : C.url) != null ? { ...e.root, name: e.rootName ?? e.root.name } : c ? { name: e.rootName ?? c.tooltip, url: c.url } : { name: e.rootName ?? "", url: e.root || "" },
|
|
466
|
+
tenses: typeof e.tenses == "object" && ((k = e.tenses) == null ? void 0 : k.url) != null ? e.tenses : n ? V(n) : { name: "", url: e.tenses || "" },
|
|
467
|
+
border: y
|
|
330
468
|
};
|
|
331
469
|
}
|
|
332
|
-
function
|
|
333
|
-
return (e || []).map(
|
|
470
|
+
function Vt(e) {
|
|
471
|
+
return (e || []).map(ot);
|
|
334
472
|
}
|
|
335
|
-
function
|
|
336
|
-
let
|
|
473
|
+
function Ft(e) {
|
|
474
|
+
let t = 0;
|
|
337
475
|
for (let l = 0; l < e.length; l++) {
|
|
338
476
|
const r = e.charCodeAt(l);
|
|
339
|
-
|
|
477
|
+
t = (t << 5) - t + r, t = t & t;
|
|
340
478
|
}
|
|
341
|
-
return Math.abs(
|
|
479
|
+
return Math.abs(t);
|
|
342
480
|
}
|
|
343
|
-
class
|
|
344
|
-
constructor(
|
|
345
|
-
this.seed =
|
|
481
|
+
class nt {
|
|
482
|
+
constructor(t) {
|
|
483
|
+
this.seed = t;
|
|
346
484
|
}
|
|
347
485
|
next() {
|
|
348
486
|
const r = Math.pow(2, 32);
|
|
349
487
|
return this.seed = (1664525 * this.seed + 1013904223) % r, this.seed / r;
|
|
350
488
|
}
|
|
351
|
-
nextInt(
|
|
352
|
-
return Math.floor(this.next() * (l -
|
|
489
|
+
nextInt(t, l) {
|
|
490
|
+
return Math.floor(this.next() * (l - t)) + t;
|
|
353
491
|
}
|
|
354
492
|
}
|
|
355
|
-
function
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
i.reference = {
|
|
362
|
-
left: I ? b(h.reference[0]) : null,
|
|
363
|
-
right: b(h.reference[k])
|
|
364
|
-
}, i.role = b(h.role[c.nextInt(0, h.role.length)]), i.modes = b(h.modes[c.nextInt(0, h.modes.length)]), i.root = b(h.root[c.nextInt(0, h.root.length)]), i.tenses = b(h.tenses[c.nextInt(0, h.tenses.length)]);
|
|
365
|
-
const N = H.filter((T) => !T.plural);
|
|
366
|
-
i.border = N[c.nextInt(0, N.length)].id, l.push(i);
|
|
493
|
+
async function ct(e) {
|
|
494
|
+
try {
|
|
495
|
+
const [t] = await be(e, { limit: 1 });
|
|
496
|
+
return t ? { name: t.name, url: t.url } : null;
|
|
497
|
+
} catch {
|
|
498
|
+
return null;
|
|
367
499
|
}
|
|
368
|
-
return l.length > 0 ? l : [re()];
|
|
369
500
|
}
|
|
370
|
-
const
|
|
501
|
+
const ht = { name: "Not found", url: null };
|
|
502
|
+
async function Bt(e) {
|
|
503
|
+
const t = e.toLowerCase().split(/\s+/).filter(Boolean), l = await Promise.all(
|
|
504
|
+
t.map(async (r) => {
|
|
505
|
+
const i = { ...pe() }, c = Ft(r), n = new nt(c);
|
|
506
|
+
i.context = V(I.context[n.nextInt(0, I.context.length)]);
|
|
507
|
+
const y = n.next() > 0.5, g = n.nextInt(1, I.reference.length);
|
|
508
|
+
i.reference = {
|
|
509
|
+
left: y ? V(I.reference[0]) : null,
|
|
510
|
+
right: V(I.reference[g])
|
|
511
|
+
}, i.role = V(I.role[n.nextInt(0, I.role.length)]), i.modes = V(I.modes[n.nextInt(0, I.modes.length)]);
|
|
512
|
+
const s = await ct(r);
|
|
513
|
+
i.root = s ?? ht, i.rootName = (s == null ? void 0 : s.name) ?? null, i.tenses = V(I.tenses[n.nextInt(0, I.tenses.length)]);
|
|
514
|
+
const a = z.filter((u) => !u.plural);
|
|
515
|
+
return i.border = a[n.nextInt(0, a.length)].id, i;
|
|
516
|
+
})
|
|
517
|
+
);
|
|
518
|
+
return l.length > 0 ? l : [pe()];
|
|
519
|
+
}
|
|
520
|
+
const me = 1.18, q = 0.95, ne = [me, q, q, q, q, me], ke = [0.6, 1.4, 1.4, 0.6], K = {
|
|
521
|
+
context: "rgba(100, 50, 150, 0.1)",
|
|
522
|
+
reference: "rgba(50, 100, 200, 0.1)",
|
|
523
|
+
role: "rgba(200, 50, 50, 0.1)",
|
|
524
|
+
modes: "rgba(50, 150, 100, 0.1)",
|
|
525
|
+
root: "rgba(150, 150, 50, 0.1)",
|
|
526
|
+
east: "rgba(0, 0, 0, 0.05)",
|
|
527
|
+
tenses: "rgba(100, 100, 200, 0.1)"
|
|
528
|
+
}, B = "rgba(0, 0, 0, 0.14)", st = {
|
|
529
|
+
context: { cols: [0, 1], rows: [0, 1] },
|
|
530
|
+
reference: { cols: [1, 5], rows: [0, 1] },
|
|
531
|
+
role: { cols: [5, 6], rows: [0, 1] },
|
|
532
|
+
modes: { cols: [0, 1], rows: [1, 5] },
|
|
533
|
+
root: { cols: [1, 5], rows: [1, 5] },
|
|
534
|
+
east: { cols: [5, 6], rows: [1, 5] },
|
|
535
|
+
tenses: { cols: [0, 6], rows: [5, 6] }
|
|
536
|
+
};
|
|
537
|
+
function Ie(e) {
|
|
538
|
+
return {
|
|
539
|
+
framePad: Math.max(2, Math.round(e / 44)),
|
|
540
|
+
zonePad: Math.max(2, Math.round(e / 72)),
|
|
541
|
+
rootPad: Math.max(2, Math.round(e / 40))
|
|
542
|
+
};
|
|
543
|
+
}
|
|
544
|
+
function ie(e, t) {
|
|
545
|
+
const l = t.reduce((i, c) => i + c, 0), r = [0];
|
|
546
|
+
for (const i of t) r.push(r[r.length - 1] + e * i / l);
|
|
547
|
+
return r;
|
|
548
|
+
}
|
|
549
|
+
const re = {
|
|
371
550
|
maxWidth: "100%",
|
|
372
551
|
maxHeight: "100%",
|
|
373
552
|
width: "100%",
|
|
@@ -375,7 +554,7 @@ const U = {
|
|
|
375
554
|
objectFit: "contain",
|
|
376
555
|
display: "block",
|
|
377
556
|
boxSizing: "border-box"
|
|
378
|
-
},
|
|
557
|
+
}, we = (e) => ({
|
|
379
558
|
display: "flex",
|
|
380
559
|
alignItems: "center",
|
|
381
560
|
justifyContent: "center",
|
|
@@ -385,391 +564,372 @@ const U = {
|
|
|
385
564
|
boxSizing: "border-box",
|
|
386
565
|
padding: `${e}px`
|
|
387
566
|
});
|
|
388
|
-
function
|
|
389
|
-
const [
|
|
567
|
+
function at(e = 768) {
|
|
568
|
+
const [t, l] = G(
|
|
390
569
|
() => typeof window < "u" && window.innerWidth < e
|
|
391
570
|
);
|
|
392
|
-
return
|
|
571
|
+
return ve(() => {
|
|
393
572
|
const r = window.matchMedia(`(max-width: ${e - 1}px)`), i = () => l(r.matches);
|
|
394
573
|
return r.addEventListener("change", i), () => r.removeEventListener("change", i);
|
|
395
|
-
}, [e]),
|
|
574
|
+
}, [e]), t;
|
|
396
575
|
}
|
|
397
|
-
function
|
|
576
|
+
function de({
|
|
398
577
|
ikon: e,
|
|
399
|
-
onClick:
|
|
578
|
+
onClick: t,
|
|
400
579
|
size: l = 64,
|
|
401
580
|
onZoneClick: r,
|
|
402
581
|
selectedZone: i,
|
|
403
|
-
isSelected:
|
|
404
|
-
isPaired:
|
|
405
|
-
onEdit:
|
|
406
|
-
onDelete:
|
|
407
|
-
hideActionOverlay:
|
|
582
|
+
isSelected: c = !1,
|
|
583
|
+
isPaired: n = !1,
|
|
584
|
+
onEdit: y,
|
|
585
|
+
onDelete: g,
|
|
586
|
+
hideActionOverlay: s = !1
|
|
408
587
|
}) {
|
|
409
|
-
var
|
|
410
|
-
const [
|
|
411
|
-
r ? (
|
|
412
|
-
},
|
|
413
|
-
r && (
|
|
414
|
-
},
|
|
415
|
-
r && (
|
|
416
|
-
},
|
|
417
|
-
const
|
|
588
|
+
var xe, fe;
|
|
589
|
+
const [a, u] = G(!1), v = at(), C = e != null && e.border ? se(e.border) : null, k = (d, T) => {
|
|
590
|
+
r ? (T.stopPropagation(), r(d)) : t && t(T);
|
|
591
|
+
}, E = (d) => {
|
|
592
|
+
r && (d.currentTarget.style.filter = "brightness(1.3)");
|
|
593
|
+
}, b = (d) => {
|
|
594
|
+
r && (d.currentTarget.style.filter = "brightness(1)");
|
|
595
|
+
}, p = (d, T) => {
|
|
596
|
+
const W = i === d;
|
|
418
597
|
return {
|
|
419
598
|
// A selected zone draws a 2px inset outline; border-box keeps that
|
|
420
599
|
// outline (and every zone's padding) inside the slot the grid gave it,
|
|
421
600
|
// so it can't nudge a neighbour or the card edge.
|
|
422
601
|
boxSizing: "border-box",
|
|
423
|
-
...
|
|
424
|
-
cursor: r ||
|
|
602
|
+
...T,
|
|
603
|
+
cursor: r || t ? "pointer" : "default",
|
|
425
604
|
transition: "all 0.2s, filter 0.2s",
|
|
426
|
-
border:
|
|
427
|
-
boxShadow:
|
|
605
|
+
border: W ? "2px solid var(--ikoneme-primary)" : T.border || "none",
|
|
606
|
+
boxShadow: W ? "0 0 8px var(--ikoneme-primary)" : "none",
|
|
428
607
|
position: "relative"
|
|
429
608
|
};
|
|
430
|
-
},
|
|
431
|
-
const
|
|
432
|
-
|
|
433
|
-
const V = C(a, K(R)), ge = R && typeof R == "object" && R.name || (V == null ? void 0 : V.tooltip) || a;
|
|
434
|
-
return /* @__PURE__ */ n(
|
|
609
|
+
}, M = (d, T) => {
|
|
610
|
+
const W = Fe(T), te = D(d, N(T)), Ee = T && typeof T == "object" && T.name || (te == null ? void 0 : te.tooltip) || d;
|
|
611
|
+
return W ? /* @__PURE__ */ F(
|
|
435
612
|
"img",
|
|
436
613
|
{
|
|
437
|
-
src:
|
|
438
|
-
alt:
|
|
439
|
-
style:
|
|
440
|
-
onError: (
|
|
441
|
-
|
|
614
|
+
src: W,
|
|
615
|
+
alt: Ee,
|
|
616
|
+
style: re,
|
|
617
|
+
onError: (_e) => {
|
|
618
|
+
_e.target.style.display = "none";
|
|
442
619
|
}
|
|
443
620
|
}
|
|
444
|
-
)
|
|
445
|
-
|
|
446
|
-
border: p && !c ? "2px solid rgba(0, 168, 132, 0.8)" : "1px solid rgba(255, 255, 255, 0.1)"
|
|
447
|
-
}, Q = m != null && m.plural ? {
|
|
448
|
-
boxShadow: [
|
|
449
|
-
`inset -${j}px 0 0 ${m.color}`,
|
|
450
|
-
`inset -${j * 2}px 0 0 ${m.color}`,
|
|
451
|
-
`inset -${j * 3}px 0 0 ${m.color}`,
|
|
452
|
-
`inset 0 -${j}px 0 ${m.color}`,
|
|
453
|
-
`inset 0 -${j * 2}px 0 ${m.color}`,
|
|
454
|
-
`inset 0 -${j * 3}px 0 ${m.color}`
|
|
455
|
-
].join(", ")
|
|
456
|
-
} : {}, ue = p && !c ? "rgba(0, 168, 132, 0.15)" : "white", Y = m && !m.plural ? Q.boxShadow : null, J = [
|
|
457
|
-
p && !c ? "0 0 12px rgba(0, 168, 132, 0.4)" : null,
|
|
458
|
-
i === "border" ? "0 0 0 3px var(--ikoneme-primary)" : null,
|
|
459
|
-
Y
|
|
460
|
-
].filter(Boolean).join(", "), pe = ["0 0 10px rgba(0, 168, 132, 0.5)", Y].filter(Boolean).join(", "), ee = /* @__PURE__ */ f(P, { children: [
|
|
461
|
-
/* @__PURE__ */ f(
|
|
462
|
-
"div",
|
|
621
|
+
) : T != null && T.name ? /* @__PURE__ */ F(
|
|
622
|
+
"span",
|
|
463
623
|
{
|
|
464
|
-
onClick: r ? () => r("border") : o ? (a) => o(a) : void 0,
|
|
465
624
|
style: {
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
// its slot by `borderWidth` on the right and bottom.
|
|
473
|
-
boxSizing: "border-box",
|
|
474
|
-
display: "grid",
|
|
475
|
-
// Inset ring so the slot layout never sits flush against the border.
|
|
476
|
-
padding: `${se}px`,
|
|
477
|
-
// See `edgeFr`/`midFr` above. `minmax(0, …fr)` on every track is what
|
|
478
|
-
// stops a large-intrinsic icon from inflating its track and shoving
|
|
479
|
-
// the neighbouring slots (and the whole layout) past the card border.
|
|
480
|
-
gridTemplateColumns: Z,
|
|
481
|
-
gridTemplateRows: Z,
|
|
482
|
-
cursor: o || r ? "pointer" : "default",
|
|
483
|
-
borderRadius: "4px",
|
|
484
|
-
// Absolute clip boundary: nothing rendered by any slot can be seen
|
|
485
|
-
// outside the card outline, whatever its content or the card size.
|
|
486
|
-
overflow: "hidden",
|
|
487
|
-
flexShrink: 0,
|
|
488
|
-
transition: "transform 0.2s, box-shadow 0.2s, border 0.2s",
|
|
489
|
-
background: ue,
|
|
490
|
-
boxShadow: J,
|
|
491
|
-
...de
|
|
492
|
-
},
|
|
493
|
-
onMouseEnter: (a) => {
|
|
494
|
-
o && !r && !c && (a.currentTarget.style.transform = "scale(1.05)", p || (a.currentTarget.style.boxShadow = pe));
|
|
625
|
+
fontSize: "10px",
|
|
626
|
+
lineHeight: 1.2,
|
|
627
|
+
textAlign: "center",
|
|
628
|
+
color: "var(--ikoneme-text-secondary, #888)",
|
|
629
|
+
wordBreak: "break-word",
|
|
630
|
+
padding: "2px"
|
|
495
631
|
},
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
632
|
+
children: T.name
|
|
633
|
+
}
|
|
634
|
+
) : null;
|
|
635
|
+
}, o = !s && !r && (y || g), h = v ? 28 : 24, x = 4, f = 3 * h + 2 * x, m = o ? f : l, w = v || a, _ = m, { framePad: P, zonePad: L, rootPad: Y } = Ie(_), R = (d) => d.map((T) => `minmax(0, ${T}fr)`).join(" "), O = R(ne), H = R(ke), J = C ? oe(C, _) : {
|
|
636
|
+
border: c && !n ? "2px solid rgba(0, 168, 132, 0.8)" : "1px solid rgba(255, 255, 255, 0.1)"
|
|
637
|
+
}, ee = c && !n ? "rgba(0, 168, 132, 0.15)" : "white", Z = [
|
|
638
|
+
c && !n ? "0 0 12px rgba(0, 168, 132, 0.4)" : null,
|
|
639
|
+
i === "border" ? "0 0 0 3px var(--ikoneme-primary)" : null
|
|
640
|
+
].filter(Boolean).join(", "), Se = "0 0 10px rgba(0, 168, 132, 0.5)", ge = /* @__PURE__ */ F(le, { children: /* @__PURE__ */ S(
|
|
641
|
+
"div",
|
|
642
|
+
{
|
|
643
|
+
onClick: r ? () => r("border") : t ? (d) => t(d) : void 0,
|
|
644
|
+
style: {
|
|
645
|
+
width: `${_}px`,
|
|
646
|
+
height: `${_}px`,
|
|
647
|
+
// border-box: the coloured border is drawn *inside* renderSize, so a
|
|
648
|
+
// card always occupies exactly the box its parent reserved for it and
|
|
649
|
+
// the grid tracks are sized within `renderSize` minus the frame.
|
|
650
|
+
// With content-box the border sat outside and every card overflowed
|
|
651
|
+
// its slot by the frame width on the right and bottom.
|
|
652
|
+
boxSizing: "border-box",
|
|
653
|
+
display: "grid",
|
|
654
|
+
// Inset ring so the slot layout never sits flush against the border.
|
|
655
|
+
padding: `${P}px`,
|
|
656
|
+
// See `edgeFr`/`midFr` above. `minmax(0, …fr)` on every track is what
|
|
657
|
+
// stops a large-intrinsic icon from inflating its track and shoving
|
|
658
|
+
// the neighbouring slots (and the whole layout) past the card border.
|
|
659
|
+
gridTemplateColumns: O,
|
|
660
|
+
gridTemplateRows: O,
|
|
661
|
+
cursor: t || r ? "pointer" : "default",
|
|
662
|
+
borderRadius: "4px",
|
|
663
|
+
// Absolute clip boundary: nothing rendered by any slot can be seen
|
|
664
|
+
// outside the card outline, whatever its content or the card size.
|
|
665
|
+
overflow: "hidden",
|
|
666
|
+
flexShrink: 0,
|
|
667
|
+
transition: "transform 0.2s, box-shadow 0.2s, border 0.2s",
|
|
668
|
+
backgroundColor: ee,
|
|
669
|
+
boxShadow: Z,
|
|
670
|
+
...J
|
|
671
|
+
},
|
|
672
|
+
onMouseEnter: (d) => {
|
|
673
|
+
t && !r && !n && (d.currentTarget.style.transform = "scale(1.05)", c || (d.currentTarget.style.boxShadow = Se));
|
|
674
|
+
},
|
|
675
|
+
onMouseLeave: (d) => {
|
|
676
|
+
t && !r && !n && (d.currentTarget.style.transform = "scale(1)", c || (d.currentTarget.style.boxShadow = Z));
|
|
677
|
+
},
|
|
678
|
+
children: [
|
|
679
|
+
/* @__PURE__ */ F(
|
|
680
|
+
"div",
|
|
681
|
+
{
|
|
682
|
+
onClick: (d) => k("context", d),
|
|
683
|
+
onMouseEnter: E,
|
|
684
|
+
onMouseLeave: b,
|
|
685
|
+
style: p("context", {
|
|
686
|
+
gridColumn: "1 / 2",
|
|
687
|
+
gridRow: "1 / 2",
|
|
688
|
+
display: "flex",
|
|
689
|
+
alignItems: "center",
|
|
690
|
+
justifyContent: "center",
|
|
691
|
+
background: K.context,
|
|
692
|
+
borderRight: `1px solid ${B}`,
|
|
693
|
+
borderBottom: `1px solid ${B}`,
|
|
694
|
+
minWidth: 0,
|
|
695
|
+
minHeight: 0,
|
|
696
|
+
overflow: "hidden",
|
|
697
|
+
padding: `${L}px`
|
|
698
|
+
}),
|
|
699
|
+
className: "ikoneme-zone",
|
|
700
|
+
children: M("context", e.context)
|
|
701
|
+
}
|
|
702
|
+
),
|
|
703
|
+
/* @__PURE__ */ S(
|
|
704
|
+
"div",
|
|
705
|
+
{
|
|
706
|
+
onClick: (d) => k("reference", d),
|
|
707
|
+
onMouseEnter: E,
|
|
708
|
+
onMouseLeave: b,
|
|
709
|
+
style: p("reference", {
|
|
710
|
+
gridColumn: "2 / 6",
|
|
711
|
+
gridRow: "1 / 2",
|
|
712
|
+
display: "grid",
|
|
713
|
+
// Same treatment as the outer grid: bounded tracks + a single full-
|
|
714
|
+
// height row so each reference sub-slot has a definite size and its
|
|
715
|
+
// icon (sized against it) stays put.
|
|
716
|
+
gridTemplateColumns: H,
|
|
717
|
+
gridTemplateRows: "minmax(0, 1fr)",
|
|
718
|
+
background: K.reference,
|
|
719
|
+
borderRight: `1px solid ${B}`,
|
|
720
|
+
borderBottom: `1px solid ${B}`,
|
|
721
|
+
minWidth: 0,
|
|
722
|
+
minHeight: 0,
|
|
723
|
+
overflow: "hidden"
|
|
724
|
+
}),
|
|
725
|
+
className: "ikoneme-zone",
|
|
726
|
+
children: [
|
|
727
|
+
/* @__PURE__ */ F(
|
|
728
|
+
"div",
|
|
729
|
+
{
|
|
730
|
+
style: {
|
|
731
|
+
minWidth: 0,
|
|
732
|
+
minHeight: 0,
|
|
733
|
+
overflow: "hidden",
|
|
734
|
+
borderRight: `1px solid ${B}`
|
|
557
735
|
}
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
}
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
736
|
+
}
|
|
737
|
+
),
|
|
738
|
+
/* @__PURE__ */ F(
|
|
739
|
+
"div",
|
|
740
|
+
{
|
|
741
|
+
style: {
|
|
742
|
+
...we(L),
|
|
743
|
+
borderRight: `1px solid ${B}`
|
|
744
|
+
},
|
|
745
|
+
children: N((xe = e.reference) == null ? void 0 : xe.left) && /* @__PURE__ */ F(
|
|
746
|
+
"img",
|
|
747
|
+
{
|
|
748
|
+
src: N(e.reference.left),
|
|
749
|
+
alt: "Asterisk",
|
|
750
|
+
style: re,
|
|
751
|
+
onError: (d) => {
|
|
752
|
+
d.target.style.display = "none";
|
|
575
753
|
}
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
}
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
754
|
+
}
|
|
755
|
+
)
|
|
756
|
+
}
|
|
757
|
+
),
|
|
758
|
+
/* @__PURE__ */ F(
|
|
759
|
+
"div",
|
|
760
|
+
{
|
|
761
|
+
style: {
|
|
762
|
+
...we(L),
|
|
763
|
+
borderRight: `1px solid ${B}`
|
|
764
|
+
},
|
|
765
|
+
children: N((fe = e.reference) == null ? void 0 : fe.right) && /* @__PURE__ */ F(
|
|
766
|
+
"img",
|
|
767
|
+
{
|
|
768
|
+
src: N(e.reference.right),
|
|
769
|
+
alt: "Number",
|
|
770
|
+
style: re,
|
|
771
|
+
onError: (d) => {
|
|
772
|
+
d.target.style.display = "none";
|
|
595
773
|
}
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
}
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
}
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
}
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
}
|
|
695
|
-
),
|
|
696
|
-
/* @__PURE__ */ n(
|
|
697
|
-
"div",
|
|
698
|
-
{
|
|
699
|
-
onClick: (a) => _("tenses", a),
|
|
700
|
-
onMouseEnter: $,
|
|
701
|
-
onMouseLeave: v,
|
|
702
|
-
style: M("tenses", {
|
|
703
|
-
gridColumn: "1 / 7",
|
|
704
|
-
gridRow: "6 / 7",
|
|
705
|
-
display: "flex",
|
|
706
|
-
alignItems: "center",
|
|
707
|
-
justifyContent: "center",
|
|
708
|
-
background: "rgba(100, 100, 200, 0.1)",
|
|
709
|
-
minWidth: 0,
|
|
710
|
-
minHeight: 0,
|
|
711
|
-
overflow: "hidden",
|
|
712
|
-
padding: `${B}px`
|
|
713
|
-
}),
|
|
714
|
-
className: "ikoneme-zone",
|
|
715
|
-
children: O("tenses", e.tenses)
|
|
774
|
+
}
|
|
775
|
+
)
|
|
776
|
+
}
|
|
777
|
+
),
|
|
778
|
+
/* @__PURE__ */ F("div", { style: { minWidth: 0, minHeight: 0, overflow: "hidden" } })
|
|
779
|
+
]
|
|
780
|
+
}
|
|
781
|
+
),
|
|
782
|
+
/* @__PURE__ */ F(
|
|
783
|
+
"div",
|
|
784
|
+
{
|
|
785
|
+
onClick: (d) => k("role", d),
|
|
786
|
+
onMouseEnter: E,
|
|
787
|
+
onMouseLeave: b,
|
|
788
|
+
style: p("role", {
|
|
789
|
+
gridColumn: "6 / 7",
|
|
790
|
+
gridRow: "1 / 2",
|
|
791
|
+
display: "flex",
|
|
792
|
+
alignItems: "center",
|
|
793
|
+
justifyContent: "center",
|
|
794
|
+
background: K.role,
|
|
795
|
+
borderBottom: `1px solid ${B}`,
|
|
796
|
+
minWidth: 0,
|
|
797
|
+
minHeight: 0,
|
|
798
|
+
overflow: "hidden",
|
|
799
|
+
padding: `${L}px`
|
|
800
|
+
}),
|
|
801
|
+
className: "ikoneme-zone",
|
|
802
|
+
children: M("role", e.role)
|
|
803
|
+
}
|
|
804
|
+
),
|
|
805
|
+
/* @__PURE__ */ F(
|
|
806
|
+
"div",
|
|
807
|
+
{
|
|
808
|
+
onClick: (d) => k("modes", d),
|
|
809
|
+
onMouseEnter: E,
|
|
810
|
+
onMouseLeave: b,
|
|
811
|
+
style: p("modes", {
|
|
812
|
+
gridColumn: "1 / 2",
|
|
813
|
+
gridRow: "2 / 6",
|
|
814
|
+
display: "flex",
|
|
815
|
+
alignItems: "center",
|
|
816
|
+
justifyContent: "center",
|
|
817
|
+
background: K.modes,
|
|
818
|
+
borderRight: `1px solid ${B}`,
|
|
819
|
+
borderBottom: `1px solid ${B}`,
|
|
820
|
+
minWidth: 0,
|
|
821
|
+
minHeight: 0,
|
|
822
|
+
overflow: "hidden",
|
|
823
|
+
padding: `${L}px`
|
|
824
|
+
}),
|
|
825
|
+
className: "ikoneme-zone",
|
|
826
|
+
children: M("modes", e.modes)
|
|
827
|
+
}
|
|
828
|
+
),
|
|
829
|
+
/* @__PURE__ */ F(
|
|
830
|
+
"div",
|
|
831
|
+
{
|
|
832
|
+
onClick: (d) => k("root", d),
|
|
833
|
+
onMouseEnter: E,
|
|
834
|
+
onMouseLeave: b,
|
|
835
|
+
style: p("root", {
|
|
836
|
+
// Kept at 4 columns (not spanning into column 6) so root — and the
|
|
837
|
+
// whole icon — stays horizontally centered: column 1 (modes) and
|
|
838
|
+
// column 6 (below) are the same width on both sides of root.
|
|
839
|
+
gridColumn: "2 / 6",
|
|
840
|
+
gridRow: "2 / 6",
|
|
841
|
+
display: "flex",
|
|
842
|
+
alignItems: "center",
|
|
843
|
+
justifyContent: "center",
|
|
844
|
+
background: K.root,
|
|
845
|
+
borderRight: `1px solid ${B}`,
|
|
846
|
+
borderBottom: `1px solid ${B}`,
|
|
847
|
+
minWidth: 0,
|
|
848
|
+
minHeight: 0,
|
|
849
|
+
overflow: "hidden",
|
|
850
|
+
padding: `${Y}px`
|
|
851
|
+
}),
|
|
852
|
+
className: "ikoneme-zone",
|
|
853
|
+
children: M("root", e.root)
|
|
854
|
+
}
|
|
855
|
+
),
|
|
856
|
+
/* @__PURE__ */ F(
|
|
857
|
+
"div",
|
|
858
|
+
{
|
|
859
|
+
onClick: (d) => {
|
|
860
|
+
r && (d.stopPropagation(), r("border"));
|
|
861
|
+
},
|
|
862
|
+
style: {
|
|
863
|
+
gridColumn: "6 / 7",
|
|
864
|
+
gridRow: "2 / 6",
|
|
865
|
+
background: K.east,
|
|
866
|
+
borderBottom: `1px solid ${B}`,
|
|
867
|
+
minWidth: 0,
|
|
868
|
+
minHeight: 0,
|
|
869
|
+
overflow: "hidden",
|
|
870
|
+
boxSizing: "border-box",
|
|
871
|
+
cursor: r ? "pointer" : "default"
|
|
716
872
|
}
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
873
|
+
}
|
|
874
|
+
),
|
|
875
|
+
/* @__PURE__ */ F(
|
|
876
|
+
"div",
|
|
877
|
+
{
|
|
878
|
+
onClick: (d) => k("tenses", d),
|
|
879
|
+
onMouseEnter: E,
|
|
880
|
+
onMouseLeave: b,
|
|
881
|
+
style: p("tenses", {
|
|
882
|
+
gridColumn: "1 / 7",
|
|
883
|
+
gridRow: "6 / 7",
|
|
884
|
+
display: "flex",
|
|
885
|
+
alignItems: "center",
|
|
886
|
+
justifyContent: "center",
|
|
887
|
+
background: K.tenses,
|
|
888
|
+
minWidth: 0,
|
|
889
|
+
minHeight: 0,
|
|
890
|
+
overflow: "hidden",
|
|
891
|
+
padding: `${L}px`
|
|
892
|
+
}),
|
|
893
|
+
className: "ikoneme-zone",
|
|
894
|
+
children: M("tenses", e.tenses)
|
|
895
|
+
}
|
|
896
|
+
)
|
|
897
|
+
]
|
|
898
|
+
}
|
|
899
|
+
) }), Ce = /* @__PURE__ */ F(
|
|
740
900
|
"div",
|
|
741
901
|
{
|
|
742
902
|
style: {
|
|
743
|
-
minHeight: `${
|
|
903
|
+
minHeight: `${h}px`,
|
|
744
904
|
flexShrink: 0,
|
|
745
905
|
display: "flex",
|
|
746
906
|
alignItems: "center",
|
|
747
907
|
justifyContent: "center"
|
|
748
908
|
},
|
|
749
|
-
"aria-hidden": !
|
|
750
|
-
children: /* @__PURE__ */
|
|
909
|
+
"aria-hidden": !w,
|
|
910
|
+
children: /* @__PURE__ */ S(
|
|
751
911
|
"div",
|
|
752
912
|
{
|
|
753
913
|
style: {
|
|
754
914
|
display: "flex",
|
|
755
|
-
gap: `${
|
|
915
|
+
gap: `${x}px`,
|
|
756
916
|
flexWrap: "nowrap",
|
|
757
|
-
width: `${
|
|
917
|
+
width: `${f}px`,
|
|
758
918
|
justifyContent: "center",
|
|
759
|
-
opacity:
|
|
760
|
-
pointerEvents:
|
|
919
|
+
opacity: w ? 1 : 0,
|
|
920
|
+
pointerEvents: w ? "auto" : "none",
|
|
761
921
|
transition: "opacity 0.15s ease"
|
|
762
922
|
},
|
|
763
923
|
children: [
|
|
764
|
-
|
|
924
|
+
y && /* @__PURE__ */ F(
|
|
765
925
|
"button",
|
|
766
926
|
{
|
|
767
|
-
onClick: (
|
|
768
|
-
|
|
927
|
+
onClick: (d) => {
|
|
928
|
+
d.stopPropagation(), y();
|
|
769
929
|
},
|
|
770
930
|
style: {
|
|
771
|
-
width: `${
|
|
772
|
-
height: `${
|
|
931
|
+
width: `${h}px`,
|
|
932
|
+
height: `${h}px`,
|
|
773
933
|
borderRadius: "6px",
|
|
774
934
|
border: "none",
|
|
775
935
|
background: "rgba(0, 168, 132, 0.95)",
|
|
@@ -780,21 +940,21 @@ function q({
|
|
|
780
940
|
transition: "background 0.2s",
|
|
781
941
|
boxShadow: "0 2px 4px rgba(0, 0, 0, 0.3)"
|
|
782
942
|
},
|
|
783
|
-
onMouseEnter: (
|
|
784
|
-
onMouseLeave: (
|
|
943
|
+
onMouseEnter: (d) => d.currentTarget.style.background = "rgba(0, 168, 132, 1)",
|
|
944
|
+
onMouseLeave: (d) => d.currentTarget.style.background = "rgba(0, 168, 132, 0.95)",
|
|
785
945
|
title: "Edit",
|
|
786
|
-
children: /* @__PURE__ */
|
|
946
|
+
children: /* @__PURE__ */ F(Le, { size: v ? 16 : 14, color: "white" })
|
|
787
947
|
}
|
|
788
948
|
),
|
|
789
|
-
|
|
949
|
+
g && /* @__PURE__ */ F(
|
|
790
950
|
"button",
|
|
791
951
|
{
|
|
792
|
-
onClick: (
|
|
793
|
-
|
|
952
|
+
onClick: (d) => {
|
|
953
|
+
d.stopPropagation(), g();
|
|
794
954
|
},
|
|
795
955
|
style: {
|
|
796
|
-
width: `${
|
|
797
|
-
height: `${
|
|
956
|
+
width: `${h}px`,
|
|
957
|
+
height: `${h}px`,
|
|
798
958
|
borderRadius: "6px",
|
|
799
959
|
border: "none",
|
|
800
960
|
background: "rgba(220, 38, 38, 0.95)",
|
|
@@ -805,10 +965,10 @@ function q({
|
|
|
805
965
|
transition: "background 0.2s",
|
|
806
966
|
boxShadow: "0 2px 4px rgba(0, 0, 0, 0.3)"
|
|
807
967
|
},
|
|
808
|
-
onMouseEnter: (
|
|
809
|
-
onMouseLeave: (
|
|
968
|
+
onMouseEnter: (d) => d.currentTarget.style.background = "rgba(220, 38, 38, 1)",
|
|
969
|
+
onMouseLeave: (d) => d.currentTarget.style.background = "rgba(220, 38, 38, 0.95)",
|
|
810
970
|
title: "Delete",
|
|
811
|
-
children: /* @__PURE__ */
|
|
971
|
+
children: /* @__PURE__ */ F(Oe, { size: v ? 16 : 14, color: "white" })
|
|
812
972
|
}
|
|
813
973
|
)
|
|
814
974
|
]
|
|
@@ -816,25 +976,25 @@ function q({
|
|
|
816
976
|
)
|
|
817
977
|
}
|
|
818
978
|
);
|
|
819
|
-
return
|
|
979
|
+
return o ? /* @__PURE__ */ S(
|
|
820
980
|
"div",
|
|
821
981
|
{
|
|
822
982
|
style: {
|
|
823
983
|
display: "flex",
|
|
824
984
|
flexDirection: "column",
|
|
825
985
|
alignItems: "center",
|
|
826
|
-
width: `${
|
|
986
|
+
width: `${f}px`,
|
|
827
987
|
flexShrink: 0,
|
|
828
988
|
gap: "6px"
|
|
829
989
|
},
|
|
830
|
-
onMouseEnter: () =>
|
|
831
|
-
onMouseLeave: () =>
|
|
990
|
+
onMouseEnter: () => u(!0),
|
|
991
|
+
onMouseLeave: () => u(!1),
|
|
832
992
|
children: [
|
|
833
|
-
/* @__PURE__ */
|
|
834
|
-
|
|
993
|
+
/* @__PURE__ */ F("div", { style: { position: "relative", width: `${_}px`, height: `${_}px` }, children: ge }),
|
|
994
|
+
Ce
|
|
835
995
|
]
|
|
836
996
|
}
|
|
837
|
-
) : /* @__PURE__ */
|
|
997
|
+
) : /* @__PURE__ */ F(
|
|
838
998
|
"div",
|
|
839
999
|
{
|
|
840
1000
|
style: {
|
|
@@ -843,74 +1003,13 @@ function q({
|
|
|
843
1003
|
height: `${l}px`,
|
|
844
1004
|
flexShrink: 0
|
|
845
1005
|
},
|
|
846
|
-
onMouseEnter: () =>
|
|
847
|
-
onMouseLeave: () =>
|
|
848
|
-
children:
|
|
1006
|
+
onMouseEnter: () => u(!0),
|
|
1007
|
+
onMouseLeave: () => u(!1),
|
|
1008
|
+
children: ge
|
|
849
1009
|
}
|
|
850
1010
|
);
|
|
851
1011
|
}
|
|
852
|
-
const
|
|
853
|
-
let W = null, z = null;
|
|
854
|
-
const A = /* @__PURE__ */ new Map();
|
|
855
|
-
function Oe(e) {
|
|
856
|
-
return !e || Array.isArray(e) ? null : e.origin || e.preview || e.thumb || e.svg || null;
|
|
857
|
-
}
|
|
858
|
-
function je(e) {
|
|
859
|
-
if (!e || Array.isArray(e)) return {};
|
|
860
|
-
const { origin: o = null, preview: l = null, thumb: r = null, svg: i = null } = e;
|
|
861
|
-
return { origin: o, preview: l, thumb: r, svg: i };
|
|
862
|
-
}
|
|
863
|
-
async function Be(e) {
|
|
864
|
-
const o = await fetch(`${e}/api/ikons`);
|
|
865
|
-
if (!o.ok) throw new Error(`IkonDB GET /api/ikons -> ${o.status}`);
|
|
866
|
-
const l = await o.json();
|
|
867
|
-
return (Array.isArray(l == null ? void 0 : l.data) ? l.data : []).map((i) => ({
|
|
868
|
-
id: i.id,
|
|
869
|
-
name: i.description || "",
|
|
870
|
-
url: Oe(i.media)
|
|
871
|
-
})).filter((i) => i.url);
|
|
872
|
-
}
|
|
873
|
-
async function ze({ baseUrl: e = G } = {}) {
|
|
874
|
-
return W && Date.now() - W.at < Ee ? W.list : z || (z = Be(e).then((o) => (W = { at: Date.now(), list: o }, o)).finally(() => {
|
|
875
|
-
z = null;
|
|
876
|
-
}), z);
|
|
877
|
-
}
|
|
878
|
-
async function Le(e, { baseUrl: o = G, limit: l = 20 } = {}) {
|
|
879
|
-
const r = (e || "").trim().toLowerCase();
|
|
880
|
-
if (!r) return [];
|
|
881
|
-
const i = await ze({ baseUrl: o }), p = [];
|
|
882
|
-
for (const c of i)
|
|
883
|
-
if (c.name.toLowerCase().includes(r) && (p.push(c), p.length >= l))
|
|
884
|
-
break;
|
|
885
|
-
return p;
|
|
886
|
-
}
|
|
887
|
-
async function We(e, { baseUrl: o = G } = {}) {
|
|
888
|
-
if (e == null) return null;
|
|
889
|
-
if (A.has(e)) return A.get(e);
|
|
890
|
-
const l = await fetch(`${o}/api/ikons/${encodeURIComponent(e)}`);
|
|
891
|
-
if (!l.ok) throw new Error(`IkonDB GET /api/ikons/${e} -> ${l.status}`);
|
|
892
|
-
const r = await l.json();
|
|
893
|
-
if ((r == null ? void 0 : r.status) !== "success" || !(r != null && r.data))
|
|
894
|
-
return A.set(e, null), null;
|
|
895
|
-
const i = je(r.data.media), p = {
|
|
896
|
-
id: r.data.id,
|
|
897
|
-
name: r.data.description || "",
|
|
898
|
-
url: i.origin || i.preview || i.thumb || i.svg || null,
|
|
899
|
-
...i
|
|
900
|
-
};
|
|
901
|
-
return A.set(e, p), p;
|
|
902
|
-
}
|
|
903
|
-
async function Ae(e) {
|
|
904
|
-
try {
|
|
905
|
-
return await Le(e);
|
|
906
|
-
} catch {
|
|
907
|
-
return [];
|
|
908
|
-
}
|
|
909
|
-
}
|
|
910
|
-
function et() {
|
|
911
|
-
W = null, z = null, A.clear();
|
|
912
|
-
}
|
|
913
|
-
const F = {
|
|
1012
|
+
const X = {
|
|
914
1013
|
context: { name: "Context", description: "Northwest - Contextual information" },
|
|
915
1014
|
reference: { name: "Reference", description: "North - Reference point" },
|
|
916
1015
|
role: { name: "Role", description: "Northeast - Role indicator" },
|
|
@@ -919,96 +1018,96 @@ const F = {
|
|
|
919
1018
|
tenses: { name: "Tenses", description: "South - Time/tense indicator" },
|
|
920
1019
|
border: {
|
|
921
1020
|
name: "Border",
|
|
922
|
-
description: "Grammatical category — singular (
|
|
1021
|
+
description: "Grammatical category — singular (single frame) or plural (double frame)"
|
|
923
1022
|
}
|
|
924
|
-
},
|
|
925
|
-
function
|
|
926
|
-
const [i,
|
|
1023
|
+
}, dt = 1, gt = 300, xt = 10, ft = 5;
|
|
1024
|
+
function ut({ ikon: e, onSave: t, onClose: l, searchRoot: r = $e }) {
|
|
1025
|
+
const [i, c] = G({
|
|
927
1026
|
...e,
|
|
928
1027
|
reference: e.reference ? { ...e.reference } : { left: null, right: null },
|
|
929
1028
|
rootName: e.rootName ?? null
|
|
930
|
-
}), [
|
|
931
|
-
const
|
|
932
|
-
if (
|
|
933
|
-
const
|
|
934
|
-
|
|
935
|
-
var
|
|
1029
|
+
}), [n, y] = G("root"), [g, s] = G(""), [a, u] = G([]), [v, C] = G(!1), k = (o, h) => {
|
|
1030
|
+
const x = D(o === "reference" ? "reference" : o, h), f = x ? { name: x.tooltip, url: x.url } : { name: "", url: h };
|
|
1031
|
+
if (o === "reference") {
|
|
1032
|
+
const m = I.reference[0].url;
|
|
1033
|
+
c(h === m ? (w) => {
|
|
1034
|
+
var _;
|
|
936
1035
|
return {
|
|
937
|
-
...
|
|
1036
|
+
...w,
|
|
938
1037
|
reference: {
|
|
939
|
-
...
|
|
940
|
-
left:
|
|
1038
|
+
...w.reference,
|
|
1039
|
+
left: N((_ = w.reference) == null ? void 0 : _.left) === m ? null : { name: I.reference[0].tooltip, url: m }
|
|
941
1040
|
}
|
|
942
1041
|
};
|
|
943
|
-
} : (
|
|
944
|
-
var
|
|
1042
|
+
} : (w) => {
|
|
1043
|
+
var _;
|
|
945
1044
|
return {
|
|
946
|
-
...
|
|
1045
|
+
...w,
|
|
947
1046
|
reference: {
|
|
948
|
-
...
|
|
949
|
-
right:
|
|
1047
|
+
...w.reference,
|
|
1048
|
+
right: N((_ = w.reference) == null ? void 0 : _.right) === h ? null : f
|
|
950
1049
|
}
|
|
951
1050
|
};
|
|
952
1051
|
});
|
|
953
1052
|
} else
|
|
954
|
-
|
|
955
|
-
...
|
|
956
|
-
[
|
|
1053
|
+
c((m) => ({
|
|
1054
|
+
...m,
|
|
1055
|
+
[o]: N(m[o]) === h ? null : f
|
|
957
1056
|
}));
|
|
958
|
-
},
|
|
959
|
-
|
|
960
|
-
},
|
|
961
|
-
|
|
962
|
-
...
|
|
963
|
-
border:
|
|
1057
|
+
}, E = (o) => {
|
|
1058
|
+
y(o);
|
|
1059
|
+
}, b = (o) => {
|
|
1060
|
+
c((h) => ({
|
|
1061
|
+
...h,
|
|
1062
|
+
border: o == null || h.border === o ? null : o
|
|
964
1063
|
}));
|
|
965
1064
|
};
|
|
966
|
-
|
|
967
|
-
if (
|
|
968
|
-
|
|
1065
|
+
ve(() => {
|
|
1066
|
+
if (n !== "root" || g.length < dt) {
|
|
1067
|
+
u([]);
|
|
969
1068
|
return;
|
|
970
1069
|
}
|
|
971
|
-
const
|
|
972
|
-
|
|
1070
|
+
const o = setTimeout(async () => {
|
|
1071
|
+
C(!0);
|
|
973
1072
|
try {
|
|
974
|
-
const
|
|
975
|
-
|
|
1073
|
+
const h = await r(g.trim());
|
|
1074
|
+
u((h || []).slice(0, xt));
|
|
976
1075
|
} catch {
|
|
977
|
-
|
|
1076
|
+
u([]);
|
|
978
1077
|
} finally {
|
|
979
|
-
|
|
1078
|
+
C(!1);
|
|
980
1079
|
}
|
|
981
|
-
},
|
|
982
|
-
return () => clearTimeout(
|
|
983
|
-
}, [
|
|
984
|
-
const
|
|
985
|
-
if (
|
|
986
|
-
...
|
|
987
|
-
root: { id:
|
|
988
|
-
rootName:
|
|
989
|
-
})),
|
|
1080
|
+
}, gt);
|
|
1081
|
+
return () => clearTimeout(o);
|
|
1082
|
+
}, [n, g, r]);
|
|
1083
|
+
const p = Ve(async (o) => {
|
|
1084
|
+
if (c((h) => ({
|
|
1085
|
+
...h,
|
|
1086
|
+
root: { id: o.id ?? null, name: o.name, url: o.url },
|
|
1087
|
+
rootName: o.name
|
|
1088
|
+
})), o.id != null)
|
|
990
1089
|
try {
|
|
991
|
-
const
|
|
992
|
-
if (!
|
|
993
|
-
|
|
994
|
-
var
|
|
995
|
-
return ((
|
|
996
|
-
...
|
|
1090
|
+
const h = await We(o.id);
|
|
1091
|
+
if (!h) return;
|
|
1092
|
+
c((x) => {
|
|
1093
|
+
var f;
|
|
1094
|
+
return ((f = x.root) == null ? void 0 : f.id) !== o.id ? x : {
|
|
1095
|
+
...x,
|
|
997
1096
|
root: {
|
|
998
|
-
id:
|
|
999
|
-
name:
|
|
1000
|
-
url:
|
|
1001
|
-
svg:
|
|
1002
|
-
thumb:
|
|
1003
|
-
preview:
|
|
1097
|
+
id: h.id,
|
|
1098
|
+
name: o.name,
|
|
1099
|
+
url: h.origin || o.url,
|
|
1100
|
+
svg: h.svg || void 0,
|
|
1101
|
+
thumb: h.thumb || void 0,
|
|
1102
|
+
preview: h.preview || void 0
|
|
1004
1103
|
},
|
|
1005
|
-
rootName:
|
|
1104
|
+
rootName: o.name
|
|
1006
1105
|
};
|
|
1007
1106
|
});
|
|
1008
1107
|
} catch {
|
|
1009
1108
|
}
|
|
1010
1109
|
}, []);
|
|
1011
|
-
return /* @__PURE__ */
|
|
1110
|
+
return /* @__PURE__ */ S(
|
|
1012
1111
|
"div",
|
|
1013
1112
|
{
|
|
1014
1113
|
style: {
|
|
@@ -1024,7 +1123,7 @@ function Ue({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
|
|
|
1024
1123
|
overflow: "hidden"
|
|
1025
1124
|
},
|
|
1026
1125
|
children: [
|
|
1027
|
-
/* @__PURE__ */
|
|
1126
|
+
/* @__PURE__ */ S(
|
|
1028
1127
|
"div",
|
|
1029
1128
|
{
|
|
1030
1129
|
style: {
|
|
@@ -1036,7 +1135,7 @@ function Ue({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
|
|
|
1036
1135
|
gap: "12px"
|
|
1037
1136
|
},
|
|
1038
1137
|
children: [
|
|
1039
|
-
/* @__PURE__ */
|
|
1138
|
+
/* @__PURE__ */ S(
|
|
1040
1139
|
"div",
|
|
1041
1140
|
{
|
|
1042
1141
|
style: {
|
|
@@ -1046,7 +1145,7 @@ function Ue({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
|
|
|
1046
1145
|
flex: 1
|
|
1047
1146
|
},
|
|
1048
1147
|
children: [
|
|
1049
|
-
/* @__PURE__ */
|
|
1148
|
+
/* @__PURE__ */ F(
|
|
1050
1149
|
"button",
|
|
1051
1150
|
{
|
|
1052
1151
|
onClick: l,
|
|
@@ -1060,10 +1159,10 @@ function Ue({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
|
|
|
1060
1159
|
justifyContent: "center"
|
|
1061
1160
|
},
|
|
1062
1161
|
title: "Back",
|
|
1063
|
-
children: /* @__PURE__ */
|
|
1162
|
+
children: /* @__PURE__ */ F(Ne, { color: "var(--ikoneme-text-primary)", size: 24 })
|
|
1064
1163
|
}
|
|
1065
1164
|
),
|
|
1066
|
-
/* @__PURE__ */
|
|
1165
|
+
/* @__PURE__ */ F(
|
|
1067
1166
|
"h2",
|
|
1068
1167
|
{
|
|
1069
1168
|
style: {
|
|
@@ -1078,11 +1177,11 @@ function Ue({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
|
|
|
1078
1177
|
]
|
|
1079
1178
|
}
|
|
1080
1179
|
),
|
|
1081
|
-
/* @__PURE__ */
|
|
1180
|
+
/* @__PURE__ */ F(
|
|
1082
1181
|
"button",
|
|
1083
1182
|
{
|
|
1084
1183
|
onClick: () => {
|
|
1085
|
-
|
|
1184
|
+
t(i), l();
|
|
1086
1185
|
},
|
|
1087
1186
|
style: {
|
|
1088
1187
|
padding: "10px 24px",
|
|
@@ -1096,15 +1195,15 @@ function Ue({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
|
|
|
1096
1195
|
transition: "background 0.2s",
|
|
1097
1196
|
whiteSpace: "nowrap"
|
|
1098
1197
|
},
|
|
1099
|
-
onMouseEnter: (
|
|
1100
|
-
onMouseLeave: (
|
|
1198
|
+
onMouseEnter: (o) => o.currentTarget.style.background = "var(--ikoneme-primary-dark)",
|
|
1199
|
+
onMouseLeave: (o) => o.currentTarget.style.background = "var(--ikoneme-primary)",
|
|
1101
1200
|
children: "Save"
|
|
1102
1201
|
}
|
|
1103
1202
|
)
|
|
1104
1203
|
]
|
|
1105
1204
|
}
|
|
1106
1205
|
),
|
|
1107
|
-
/* @__PURE__ */
|
|
1206
|
+
/* @__PURE__ */ S(
|
|
1108
1207
|
"div",
|
|
1109
1208
|
{
|
|
1110
1209
|
style: {
|
|
@@ -1117,7 +1216,7 @@ function Ue({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
|
|
|
1117
1216
|
WebkitOverflowScrolling: "touch"
|
|
1118
1217
|
},
|
|
1119
1218
|
children: [
|
|
1120
|
-
/* @__PURE__ */
|
|
1219
|
+
/* @__PURE__ */ S(
|
|
1121
1220
|
"div",
|
|
1122
1221
|
{
|
|
1123
1222
|
style: {
|
|
@@ -1128,7 +1227,7 @@ function Ue({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
|
|
|
1128
1227
|
gap: "12px"
|
|
1129
1228
|
},
|
|
1130
1229
|
children: [
|
|
1131
|
-
/* @__PURE__ */
|
|
1230
|
+
/* @__PURE__ */ F(
|
|
1132
1231
|
"p",
|
|
1133
1232
|
{
|
|
1134
1233
|
style: {
|
|
@@ -1139,16 +1238,16 @@ function Ue({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
|
|
|
1139
1238
|
children: "Click on a zone or the border area to edit it"
|
|
1140
1239
|
}
|
|
1141
1240
|
),
|
|
1142
|
-
/* @__PURE__ */
|
|
1143
|
-
|
|
1241
|
+
/* @__PURE__ */ F(
|
|
1242
|
+
de,
|
|
1144
1243
|
{
|
|
1145
1244
|
ikon: i,
|
|
1146
1245
|
size: 280,
|
|
1147
|
-
onZoneClick:
|
|
1148
|
-
selectedZone:
|
|
1246
|
+
onZoneClick: E,
|
|
1247
|
+
selectedZone: n
|
|
1149
1248
|
}
|
|
1150
1249
|
),
|
|
1151
|
-
/* @__PURE__ */
|
|
1250
|
+
/* @__PURE__ */ F(
|
|
1152
1251
|
"div",
|
|
1153
1252
|
{
|
|
1154
1253
|
style: {
|
|
@@ -1160,14 +1259,14 @@ function Ue({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
|
|
|
1160
1259
|
background: "var(--ikoneme-primary)",
|
|
1161
1260
|
borderRadius: "20px"
|
|
1162
1261
|
},
|
|
1163
|
-
children:
|
|
1262
|
+
children: X[n].name
|
|
1164
1263
|
}
|
|
1165
1264
|
)
|
|
1166
1265
|
]
|
|
1167
1266
|
}
|
|
1168
1267
|
),
|
|
1169
|
-
/* @__PURE__ */
|
|
1170
|
-
/* @__PURE__ */
|
|
1268
|
+
/* @__PURE__ */ S("div", { style: { marginBottom: "20px" }, children: [
|
|
1269
|
+
/* @__PURE__ */ F(
|
|
1171
1270
|
"h3",
|
|
1172
1271
|
{
|
|
1173
1272
|
style: {
|
|
@@ -1176,10 +1275,10 @@ function Ue({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
|
|
|
1176
1275
|
marginBottom: "8px",
|
|
1177
1276
|
fontWeight: "500"
|
|
1178
1277
|
},
|
|
1179
|
-
children:
|
|
1278
|
+
children: n === "border" ? "Select Border Type" : "Choose Icon for: " + X[n].name
|
|
1180
1279
|
}
|
|
1181
1280
|
),
|
|
1182
|
-
|
|
1281
|
+
n === "border" ? /* @__PURE__ */ S(
|
|
1183
1282
|
"p",
|
|
1184
1283
|
{
|
|
1185
1284
|
style: {
|
|
@@ -1188,11 +1287,11 @@ function Ue({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
|
|
|
1188
1287
|
marginBottom: "12px"
|
|
1189
1288
|
},
|
|
1190
1289
|
children: [
|
|
1191
|
-
|
|
1290
|
+
X.border.description,
|
|
1192
1291
|
". Click the same border again to clear."
|
|
1193
1292
|
]
|
|
1194
1293
|
}
|
|
1195
|
-
) :
|
|
1294
|
+
) : n === "reference" ? /* @__PURE__ */ S(
|
|
1196
1295
|
"p",
|
|
1197
1296
|
{
|
|
1198
1297
|
style: {
|
|
@@ -1202,14 +1301,14 @@ function Ue({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
|
|
|
1202
1301
|
},
|
|
1203
1302
|
children: [
|
|
1204
1303
|
"Click ",
|
|
1205
|
-
/* @__PURE__ */
|
|
1304
|
+
/* @__PURE__ */ F("strong", { children: "Asterisk" }),
|
|
1206
1305
|
" to toggle left cell. Click any ",
|
|
1207
|
-
/* @__PURE__ */
|
|
1306
|
+
/* @__PURE__ */ F("strong", { children: "number" }),
|
|
1208
1307
|
" ",
|
|
1209
1308
|
"to toggle right cell."
|
|
1210
1309
|
]
|
|
1211
1310
|
}
|
|
1212
|
-
) :
|
|
1311
|
+
) : n === "root" ? /* @__PURE__ */ F(
|
|
1213
1312
|
"p",
|
|
1214
1313
|
{
|
|
1215
1314
|
style: {
|
|
@@ -1219,7 +1318,7 @@ function Ue({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
|
|
|
1219
1318
|
},
|
|
1220
1319
|
children: "Search for an icon below. The icon's name is stored with the ikon."
|
|
1221
1320
|
}
|
|
1222
|
-
) : /* @__PURE__ */
|
|
1321
|
+
) : /* @__PURE__ */ S(
|
|
1223
1322
|
"p",
|
|
1224
1323
|
{
|
|
1225
1324
|
style: {
|
|
@@ -1228,16 +1327,16 @@ function Ue({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
|
|
|
1228
1327
|
marginBottom: "12px"
|
|
1229
1328
|
},
|
|
1230
1329
|
children: [
|
|
1231
|
-
|
|
1330
|
+
X[n].description,
|
|
1232
1331
|
". Click the same icon again to clear."
|
|
1233
1332
|
]
|
|
1234
1333
|
}
|
|
1235
1334
|
),
|
|
1236
|
-
|
|
1237
|
-
/* @__PURE__ */
|
|
1335
|
+
n === "border" ? /* @__PURE__ */ S(le, { children: [
|
|
1336
|
+
/* @__PURE__ */ F("div", { style: { marginBottom: "12px" }, children: /* @__PURE__ */ F(
|
|
1238
1337
|
"button",
|
|
1239
1338
|
{
|
|
1240
|
-
onClick: () =>
|
|
1339
|
+
onClick: () => b(null),
|
|
1241
1340
|
style: {
|
|
1242
1341
|
width: "100%",
|
|
1243
1342
|
padding: "10px 14px",
|
|
@@ -1254,7 +1353,7 @@ function Ue({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
|
|
|
1254
1353
|
children: "No border"
|
|
1255
1354
|
}
|
|
1256
1355
|
) }),
|
|
1257
|
-
/* @__PURE__ */
|
|
1356
|
+
/* @__PURE__ */ F("div", { style: { marginBottom: "8px" }, children: /* @__PURE__ */ F(
|
|
1258
1357
|
"span",
|
|
1259
1358
|
{
|
|
1260
1359
|
style: {
|
|
@@ -1265,7 +1364,7 @@ function Ue({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
|
|
|
1265
1364
|
children: "Singular"
|
|
1266
1365
|
}
|
|
1267
1366
|
) }),
|
|
1268
|
-
/* @__PURE__ */
|
|
1367
|
+
/* @__PURE__ */ F(
|
|
1269
1368
|
"div",
|
|
1270
1369
|
{
|
|
1271
1370
|
style: {
|
|
@@ -1274,17 +1373,17 @@ function Ue({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
|
|
|
1274
1373
|
gap: "10px",
|
|
1275
1374
|
marginBottom: "16px"
|
|
1276
1375
|
},
|
|
1277
|
-
children:
|
|
1278
|
-
const
|
|
1279
|
-
return /* @__PURE__ */
|
|
1376
|
+
children: z.filter((o) => !o.plural).map((o) => {
|
|
1377
|
+
const h = i.border === o.id;
|
|
1378
|
+
return /* @__PURE__ */ S(
|
|
1280
1379
|
"button",
|
|
1281
1380
|
{
|
|
1282
|
-
onClick: () =>
|
|
1283
|
-
title:
|
|
1381
|
+
onClick: () => b(o.id),
|
|
1382
|
+
title: o.label,
|
|
1284
1383
|
style: {
|
|
1285
1384
|
padding: "8px",
|
|
1286
|
-
background:
|
|
1287
|
-
border: `2px solid ${
|
|
1385
|
+
background: h ? "var(--ikoneme-primary)" : "var(--ikoneme-surface)",
|
|
1386
|
+
border: `2px solid ${h ? "var(--ikoneme-primary-dark)" : "var(--ikoneme-border)"}`,
|
|
1288
1387
|
borderRadius: "8px",
|
|
1289
1388
|
cursor: "pointer",
|
|
1290
1389
|
display: "flex",
|
|
@@ -1294,37 +1393,39 @@ function Ue({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
|
|
|
1294
1393
|
transition: "all 0.2s",
|
|
1295
1394
|
position: "relative"
|
|
1296
1395
|
},
|
|
1297
|
-
onMouseEnter: (
|
|
1298
|
-
|
|
1396
|
+
onMouseEnter: (x) => {
|
|
1397
|
+
h || (x.currentTarget.style.background = "var(--ikoneme-hover)");
|
|
1299
1398
|
},
|
|
1300
|
-
onMouseLeave: (
|
|
1301
|
-
|
|
1399
|
+
onMouseLeave: (x) => {
|
|
1400
|
+
h || (x.currentTarget.style.background = "var(--ikoneme-surface)");
|
|
1302
1401
|
},
|
|
1303
1402
|
children: [
|
|
1304
|
-
/* @__PURE__ */
|
|
1403
|
+
/* @__PURE__ */ F(
|
|
1305
1404
|
"div",
|
|
1306
1405
|
{
|
|
1307
1406
|
style: {
|
|
1308
|
-
|
|
1309
|
-
borderRadius: "4px",
|
|
1407
|
+
boxSizing: "border-box",
|
|
1310
1408
|
width: "64px",
|
|
1311
1409
|
height: "64px",
|
|
1312
|
-
flexShrink: 0
|
|
1410
|
+
flexShrink: 0,
|
|
1411
|
+
// Drawn at the scale of a ~160px ikon so the frame's
|
|
1412
|
+
// dash pattern stays readable in a 64px swatch.
|
|
1413
|
+
...oe(o, 160)
|
|
1313
1414
|
}
|
|
1314
1415
|
}
|
|
1315
1416
|
),
|
|
1316
|
-
/* @__PURE__ */
|
|
1417
|
+
/* @__PURE__ */ F(
|
|
1317
1418
|
"span",
|
|
1318
1419
|
{
|
|
1319
1420
|
style: {
|
|
1320
1421
|
fontSize: "11px",
|
|
1321
|
-
color:
|
|
1322
|
-
fontWeight:
|
|
1422
|
+
color: h ? "white" : "var(--ikoneme-text-primary)",
|
|
1423
|
+
fontWeight: h ? "600" : "400"
|
|
1323
1424
|
},
|
|
1324
|
-
children:
|
|
1425
|
+
children: o.label
|
|
1325
1426
|
}
|
|
1326
1427
|
),
|
|
1327
|
-
/* @__PURE__ */
|
|
1428
|
+
/* @__PURE__ */ F(
|
|
1328
1429
|
"div",
|
|
1329
1430
|
{
|
|
1330
1431
|
className: "ikon-tooltip",
|
|
@@ -1345,17 +1446,17 @@ function Ue({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
|
|
|
1345
1446
|
marginBottom: "8px",
|
|
1346
1447
|
zIndex: 100
|
|
1347
1448
|
},
|
|
1348
|
-
children:
|
|
1449
|
+
children: o.label
|
|
1349
1450
|
}
|
|
1350
1451
|
)
|
|
1351
1452
|
]
|
|
1352
1453
|
},
|
|
1353
|
-
|
|
1454
|
+
o.id
|
|
1354
1455
|
);
|
|
1355
1456
|
})
|
|
1356
1457
|
}
|
|
1357
1458
|
),
|
|
1358
|
-
/* @__PURE__ */
|
|
1459
|
+
/* @__PURE__ */ F("div", { style: { marginBottom: "8px" }, children: /* @__PURE__ */ F(
|
|
1359
1460
|
"span",
|
|
1360
1461
|
{
|
|
1361
1462
|
style: {
|
|
@@ -1366,26 +1467,17 @@ function Ue({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
|
|
|
1366
1467
|
children: "Plural"
|
|
1367
1468
|
}
|
|
1368
1469
|
) }),
|
|
1369
|
-
/* @__PURE__ */
|
|
1370
|
-
const
|
|
1371
|
-
|
|
1372
|
-
`inset -${u}px 0 0 ${t.color}`,
|
|
1373
|
-
`inset -${u * 2}px 0 0 ${t.color}`,
|
|
1374
|
-
`inset -${u * 3}px 0 0 ${t.color}`,
|
|
1375
|
-
`inset 0 -${u}px 0 ${t.color}`,
|
|
1376
|
-
`inset 0 -${u * 2}px 0 ${t.color}`,
|
|
1377
|
-
`inset 0 -${u * 3}px 0 ${t.color}`
|
|
1378
|
-
].join(", ")
|
|
1379
|
-
};
|
|
1380
|
-
return /* @__PURE__ */ f(
|
|
1470
|
+
/* @__PURE__ */ F("div", { style: { display: "grid", gridTemplateColumns: "repeat(3, 1fr)", gap: "10px" }, children: z.filter((o) => o.plural).map((o) => {
|
|
1471
|
+
const h = i.border === o.id;
|
|
1472
|
+
return /* @__PURE__ */ S(
|
|
1381
1473
|
"button",
|
|
1382
1474
|
{
|
|
1383
|
-
onClick: () =>
|
|
1384
|
-
title:
|
|
1475
|
+
onClick: () => b(o.id),
|
|
1476
|
+
title: o.label,
|
|
1385
1477
|
style: {
|
|
1386
1478
|
padding: "8px",
|
|
1387
|
-
background:
|
|
1388
|
-
border: `2px solid ${
|
|
1479
|
+
background: h ? "var(--ikoneme-primary)" : "var(--ikoneme-surface)",
|
|
1480
|
+
border: `2px solid ${h ? "var(--ikoneme-primary-dark)" : "var(--ikoneme-border)"}`,
|
|
1389
1481
|
borderRadius: "8px",
|
|
1390
1482
|
cursor: "pointer",
|
|
1391
1483
|
display: "flex",
|
|
@@ -1395,38 +1487,39 @@ function Ue({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
|
|
|
1395
1487
|
transition: "all 0.2s",
|
|
1396
1488
|
position: "relative"
|
|
1397
1489
|
},
|
|
1398
|
-
onMouseEnter: (
|
|
1399
|
-
|
|
1490
|
+
onMouseEnter: (x) => {
|
|
1491
|
+
h || (x.currentTarget.style.background = "var(--ikoneme-hover)");
|
|
1400
1492
|
},
|
|
1401
|
-
onMouseLeave: (
|
|
1402
|
-
|
|
1493
|
+
onMouseLeave: (x) => {
|
|
1494
|
+
h || (x.currentTarget.style.background = "var(--ikoneme-surface)");
|
|
1403
1495
|
},
|
|
1404
1496
|
children: [
|
|
1405
|
-
/* @__PURE__ */
|
|
1497
|
+
/* @__PURE__ */ F(
|
|
1406
1498
|
"div",
|
|
1407
1499
|
{
|
|
1408
1500
|
style: {
|
|
1409
|
-
|
|
1410
|
-
borderRadius: "4px",
|
|
1501
|
+
boxSizing: "border-box",
|
|
1411
1502
|
width: "64px",
|
|
1412
1503
|
height: "64px",
|
|
1413
1504
|
flexShrink: 0,
|
|
1414
|
-
|
|
1505
|
+
// Drawn at the scale of a ~160px ikon so the frame's
|
|
1506
|
+
// dash pattern stays readable in a 64px swatch.
|
|
1507
|
+
...oe(o, 160)
|
|
1415
1508
|
}
|
|
1416
1509
|
}
|
|
1417
1510
|
),
|
|
1418
|
-
/* @__PURE__ */
|
|
1511
|
+
/* @__PURE__ */ F(
|
|
1419
1512
|
"span",
|
|
1420
1513
|
{
|
|
1421
1514
|
style: {
|
|
1422
1515
|
fontSize: "11px",
|
|
1423
|
-
color:
|
|
1424
|
-
fontWeight:
|
|
1516
|
+
color: h ? "white" : "var(--ikoneme-text-primary)",
|
|
1517
|
+
fontWeight: h ? "600" : "400"
|
|
1425
1518
|
},
|
|
1426
|
-
children:
|
|
1519
|
+
children: o.label
|
|
1427
1520
|
}
|
|
1428
1521
|
),
|
|
1429
|
-
/* @__PURE__ */
|
|
1522
|
+
/* @__PURE__ */ F(
|
|
1430
1523
|
"div",
|
|
1431
1524
|
{
|
|
1432
1525
|
className: "ikon-tooltip",
|
|
@@ -1447,16 +1540,16 @@ function Ue({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
|
|
|
1447
1540
|
marginBottom: "8px",
|
|
1448
1541
|
zIndex: 100
|
|
1449
1542
|
},
|
|
1450
|
-
children:
|
|
1543
|
+
children: o.label
|
|
1451
1544
|
}
|
|
1452
1545
|
)
|
|
1453
1546
|
]
|
|
1454
1547
|
},
|
|
1455
|
-
|
|
1548
|
+
o.id
|
|
1456
1549
|
);
|
|
1457
1550
|
}) })
|
|
1458
|
-
] }) :
|
|
1459
|
-
/* @__PURE__ */
|
|
1551
|
+
] }) : n === "root" ? /* @__PURE__ */ S(le, { children: [
|
|
1552
|
+
/* @__PURE__ */ S(
|
|
1460
1553
|
"div",
|
|
1461
1554
|
{
|
|
1462
1555
|
style: {
|
|
@@ -1470,13 +1563,13 @@ function Ue({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
|
|
|
1470
1563
|
border: "1px solid var(--ikoneme-border)"
|
|
1471
1564
|
},
|
|
1472
1565
|
children: [
|
|
1473
|
-
/* @__PURE__ */
|
|
1474
|
-
/* @__PURE__ */
|
|
1566
|
+
/* @__PURE__ */ F(De, { size: 18, color: "var(--ikoneme-text-secondary)" }),
|
|
1567
|
+
/* @__PURE__ */ F(
|
|
1475
1568
|
"input",
|
|
1476
1569
|
{
|
|
1477
1570
|
type: "text",
|
|
1478
|
-
value:
|
|
1479
|
-
onChange: (
|
|
1571
|
+
value: g,
|
|
1572
|
+
onChange: (o) => s(o.target.value),
|
|
1480
1573
|
placeholder: "Search icons...",
|
|
1481
1574
|
style: {
|
|
1482
1575
|
flex: 1,
|
|
@@ -1491,7 +1584,7 @@ function Ue({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
|
|
|
1491
1584
|
]
|
|
1492
1585
|
}
|
|
1493
1586
|
),
|
|
1494
|
-
|
|
1587
|
+
v && /* @__PURE__ */ F(
|
|
1495
1588
|
"p",
|
|
1496
1589
|
{
|
|
1497
1590
|
style: {
|
|
@@ -1502,26 +1595,26 @@ function Ue({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
|
|
|
1502
1595
|
children: "Searching…"
|
|
1503
1596
|
}
|
|
1504
1597
|
),
|
|
1505
|
-
/* @__PURE__ */
|
|
1598
|
+
/* @__PURE__ */ F(
|
|
1506
1599
|
"div",
|
|
1507
1600
|
{
|
|
1508
1601
|
style: {
|
|
1509
1602
|
display: "grid",
|
|
1510
|
-
gridTemplateColumns: `repeat(${
|
|
1603
|
+
gridTemplateColumns: `repeat(${ft}, 1fr)`,
|
|
1511
1604
|
gap: "10px"
|
|
1512
1605
|
},
|
|
1513
|
-
children:
|
|
1514
|
-
const
|
|
1515
|
-
return /* @__PURE__ */
|
|
1606
|
+
children: a.map((o, h) => {
|
|
1607
|
+
const x = N(i.root) === o.url;
|
|
1608
|
+
return /* @__PURE__ */ S(
|
|
1516
1609
|
"button",
|
|
1517
1610
|
{
|
|
1518
|
-
onClick: () =>
|
|
1519
|
-
title:
|
|
1611
|
+
onClick: () => p(o),
|
|
1612
|
+
title: o.name,
|
|
1520
1613
|
style: {
|
|
1521
1614
|
padding: "12px",
|
|
1522
|
-
background:
|
|
1615
|
+
background: x ? "var(--ikoneme-primary)" : "var(--ikoneme-surface)",
|
|
1523
1616
|
border: "2px solid",
|
|
1524
|
-
borderColor:
|
|
1617
|
+
borderColor: x ? "var(--ikoneme-primary-dark)" : "var(--ikoneme-border)",
|
|
1525
1618
|
borderRadius: "8px",
|
|
1526
1619
|
cursor: "pointer",
|
|
1527
1620
|
transition: "all 0.2s",
|
|
@@ -1534,14 +1627,14 @@ function Ue({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
|
|
|
1534
1627
|
minHeight: "70px",
|
|
1535
1628
|
minWidth: "70px"
|
|
1536
1629
|
},
|
|
1537
|
-
onMouseEnter: (
|
|
1538
|
-
|
|
1630
|
+
onMouseEnter: (f) => {
|
|
1631
|
+
f.currentTarget.style.transform = "scale(1.05)", x || (f.currentTarget.style.background = "var(--ikoneme-hover)");
|
|
1539
1632
|
},
|
|
1540
|
-
onMouseLeave: (
|
|
1541
|
-
|
|
1633
|
+
onMouseLeave: (f) => {
|
|
1634
|
+
f.currentTarget.style.transform = "scale(1)", x || (f.currentTarget.style.background = "var(--ikoneme-surface)");
|
|
1542
1635
|
},
|
|
1543
1636
|
children: [
|
|
1544
|
-
/* @__PURE__ */
|
|
1637
|
+
/* @__PURE__ */ F(
|
|
1545
1638
|
"div",
|
|
1546
1639
|
{
|
|
1547
1640
|
style: {
|
|
@@ -1554,11 +1647,11 @@ function Ue({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
|
|
|
1554
1647
|
justifyContent: "center",
|
|
1555
1648
|
padding: "4px"
|
|
1556
1649
|
},
|
|
1557
|
-
children: /* @__PURE__ */
|
|
1650
|
+
children: /* @__PURE__ */ F(
|
|
1558
1651
|
"img",
|
|
1559
1652
|
{
|
|
1560
|
-
src:
|
|
1561
|
-
alt:
|
|
1653
|
+
src: o.url,
|
|
1654
|
+
alt: o.name,
|
|
1562
1655
|
style: {
|
|
1563
1656
|
maxWidth: "100%",
|
|
1564
1657
|
maxHeight: "100%",
|
|
@@ -1566,14 +1659,14 @@ function Ue({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
|
|
|
1566
1659
|
height: "100%",
|
|
1567
1660
|
objectFit: "contain"
|
|
1568
1661
|
},
|
|
1569
|
-
onError: (
|
|
1570
|
-
|
|
1662
|
+
onError: (f) => {
|
|
1663
|
+
f.target.style.display = "none";
|
|
1571
1664
|
}
|
|
1572
1665
|
}
|
|
1573
1666
|
)
|
|
1574
1667
|
}
|
|
1575
1668
|
),
|
|
1576
|
-
/* @__PURE__ */
|
|
1669
|
+
/* @__PURE__ */ F(
|
|
1577
1670
|
"div",
|
|
1578
1671
|
{
|
|
1579
1672
|
className: "ikon-tooltip",
|
|
@@ -1594,42 +1687,42 @@ function Ue({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
|
|
|
1594
1687
|
marginBottom: "8px",
|
|
1595
1688
|
zIndex: 100
|
|
1596
1689
|
},
|
|
1597
|
-
children:
|
|
1690
|
+
children: o.name
|
|
1598
1691
|
}
|
|
1599
1692
|
)
|
|
1600
1693
|
]
|
|
1601
1694
|
},
|
|
1602
|
-
`${
|
|
1695
|
+
`${o.url}-${h}`
|
|
1603
1696
|
);
|
|
1604
1697
|
})
|
|
1605
1698
|
}
|
|
1606
1699
|
)
|
|
1607
|
-
] }) : /* @__PURE__ */
|
|
1700
|
+
] }) : /* @__PURE__ */ F(
|
|
1608
1701
|
"div",
|
|
1609
1702
|
{
|
|
1610
1703
|
style: {
|
|
1611
1704
|
display: "grid",
|
|
1612
|
-
gridTemplateColumns:
|
|
1705
|
+
gridTemplateColumns: I[n].length <= 3 ? "repeat(3, 1fr)" : "repeat(auto-fit, minmax(90px, 1fr))",
|
|
1613
1706
|
gap: "10px"
|
|
1614
1707
|
},
|
|
1615
|
-
children:
|
|
1616
|
-
var
|
|
1617
|
-
let
|
|
1618
|
-
if (
|
|
1619
|
-
const
|
|
1620
|
-
|
|
1708
|
+
children: I[n].map((o, h) => {
|
|
1709
|
+
var f, m;
|
|
1710
|
+
let x = !1;
|
|
1711
|
+
if (n === "reference") {
|
|
1712
|
+
const w = I.reference[0].url;
|
|
1713
|
+
o.url === w ? x = N((f = i.reference) == null ? void 0 : f.left) === w : x = N((m = i.reference) == null ? void 0 : m.right) === o.url;
|
|
1621
1714
|
} else
|
|
1622
|
-
|
|
1623
|
-
return /* @__PURE__ */
|
|
1715
|
+
x = N(i[n]) === o.url;
|
|
1716
|
+
return /* @__PURE__ */ S(
|
|
1624
1717
|
"button",
|
|
1625
1718
|
{
|
|
1626
|
-
onClick: () =>
|
|
1627
|
-
title:
|
|
1719
|
+
onClick: () => k(n, o.url),
|
|
1720
|
+
title: o.tooltip,
|
|
1628
1721
|
style: {
|
|
1629
1722
|
padding: "12px",
|
|
1630
|
-
background:
|
|
1723
|
+
background: x ? "var(--ikoneme-primary)" : "var(--ikoneme-surface)",
|
|
1631
1724
|
border: "2px solid",
|
|
1632
|
-
borderColor:
|
|
1725
|
+
borderColor: x ? "var(--ikoneme-primary-dark)" : "var(--ikoneme-border)",
|
|
1633
1726
|
borderRadius: "8px",
|
|
1634
1727
|
cursor: "pointer",
|
|
1635
1728
|
transition: "all 0.2s",
|
|
@@ -1642,14 +1735,14 @@ function Ue({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
|
|
|
1642
1735
|
minHeight: "70px",
|
|
1643
1736
|
minWidth: "70px"
|
|
1644
1737
|
},
|
|
1645
|
-
onMouseEnter: (
|
|
1646
|
-
|
|
1738
|
+
onMouseEnter: (w) => {
|
|
1739
|
+
w.currentTarget.style.transform = "scale(1.05)", x || (w.currentTarget.style.background = "var(--ikoneme-hover)");
|
|
1647
1740
|
},
|
|
1648
|
-
onMouseLeave: (
|
|
1649
|
-
|
|
1741
|
+
onMouseLeave: (w) => {
|
|
1742
|
+
w.currentTarget.style.transform = "scale(1)", x || (w.currentTarget.style.background = "var(--ikoneme-surface)");
|
|
1650
1743
|
},
|
|
1651
1744
|
children: [
|
|
1652
|
-
/* @__PURE__ */
|
|
1745
|
+
/* @__PURE__ */ F(
|
|
1653
1746
|
"div",
|
|
1654
1747
|
{
|
|
1655
1748
|
style: {
|
|
@@ -1662,11 +1755,11 @@ function Ue({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
|
|
|
1662
1755
|
justifyContent: "center",
|
|
1663
1756
|
padding: "4px"
|
|
1664
1757
|
},
|
|
1665
|
-
children: /* @__PURE__ */
|
|
1758
|
+
children: /* @__PURE__ */ F(
|
|
1666
1759
|
"img",
|
|
1667
1760
|
{
|
|
1668
|
-
src:
|
|
1669
|
-
alt:
|
|
1761
|
+
src: o.url,
|
|
1762
|
+
alt: o.tooltip,
|
|
1670
1763
|
style: {
|
|
1671
1764
|
maxWidth: "100%",
|
|
1672
1765
|
maxHeight: "100%",
|
|
@@ -1678,7 +1771,7 @@ function Ue({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
|
|
|
1678
1771
|
)
|
|
1679
1772
|
}
|
|
1680
1773
|
),
|
|
1681
|
-
/* @__PURE__ */
|
|
1774
|
+
/* @__PURE__ */ F(
|
|
1682
1775
|
"div",
|
|
1683
1776
|
{
|
|
1684
1777
|
style: {
|
|
@@ -1699,18 +1792,18 @@ function Ue({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
|
|
|
1699
1792
|
zIndex: 100
|
|
1700
1793
|
},
|
|
1701
1794
|
className: "ikon-tooltip",
|
|
1702
|
-
children:
|
|
1795
|
+
children: o.tooltip
|
|
1703
1796
|
}
|
|
1704
1797
|
)
|
|
1705
1798
|
]
|
|
1706
1799
|
},
|
|
1707
|
-
|
|
1800
|
+
h
|
|
1708
1801
|
);
|
|
1709
1802
|
})
|
|
1710
1803
|
}
|
|
1711
1804
|
)
|
|
1712
1805
|
] }),
|
|
1713
|
-
/* @__PURE__ */
|
|
1806
|
+
/* @__PURE__ */ F("style", { children: `
|
|
1714
1807
|
button:hover .ikon-tooltip {
|
|
1715
1808
|
opacity: 1 !important;
|
|
1716
1809
|
}
|
|
@@ -1722,9 +1815,9 @@ function Ue({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
|
|
|
1722
1815
|
}
|
|
1723
1816
|
);
|
|
1724
1817
|
}
|
|
1725
|
-
function
|
|
1726
|
-
const r = typeof window < "u" ? Math.max(120, Math.min(
|
|
1727
|
-
return /* @__PURE__ */
|
|
1818
|
+
function pt({ ikon: e, size: t = 320, onClose: l }) {
|
|
1819
|
+
const r = typeof window < "u" ? Math.max(120, Math.min(t, window.innerWidth - 48, window.innerHeight - 156)) : t;
|
|
1820
|
+
return /* @__PURE__ */ F(
|
|
1728
1821
|
"div",
|
|
1729
1822
|
{
|
|
1730
1823
|
role: "dialog",
|
|
@@ -1741,7 +1834,7 @@ function Pe({ ikon: e, size: o = 320, onClose: l }) {
|
|
|
1741
1834
|
zIndex: 1e3,
|
|
1742
1835
|
padding: "24px"
|
|
1743
1836
|
},
|
|
1744
|
-
children: /* @__PURE__ */
|
|
1837
|
+
children: /* @__PURE__ */ S(
|
|
1745
1838
|
"div",
|
|
1746
1839
|
{
|
|
1747
1840
|
onClick: (i) => i.stopPropagation(),
|
|
@@ -1753,8 +1846,8 @@ function Pe({ ikon: e, size: o = 320, onClose: l }) {
|
|
|
1753
1846
|
maxWidth: "100%"
|
|
1754
1847
|
},
|
|
1755
1848
|
children: [
|
|
1756
|
-
/* @__PURE__ */
|
|
1757
|
-
/* @__PURE__ */
|
|
1849
|
+
/* @__PURE__ */ F(de, { ikon: e, size: r }),
|
|
1850
|
+
/* @__PURE__ */ F(
|
|
1758
1851
|
"button",
|
|
1759
1852
|
{
|
|
1760
1853
|
onClick: l,
|
|
@@ -1772,7 +1865,7 @@ function Pe({ ikon: e, size: o = 320, onClose: l }) {
|
|
|
1772
1865
|
},
|
|
1773
1866
|
title: "Close",
|
|
1774
1867
|
"aria-label": "Close",
|
|
1775
|
-
children: /* @__PURE__ */
|
|
1868
|
+
children: /* @__PURE__ */ F(Re, { size: 20 })
|
|
1776
1869
|
}
|
|
1777
1870
|
)
|
|
1778
1871
|
]
|
|
@@ -1781,7 +1874,7 @@ function Pe({ ikon: e, size: o = 320, onClose: l }) {
|
|
|
1781
1874
|
}
|
|
1782
1875
|
);
|
|
1783
1876
|
}
|
|
1784
|
-
const
|
|
1877
|
+
const mt = {
|
|
1785
1878
|
"--ikoneme-primary": "#00a884",
|
|
1786
1879
|
"--ikoneme-primary-dark": "#008069",
|
|
1787
1880
|
"--ikoneme-background": "#0c0e12",
|
|
@@ -1792,95 +1885,227 @@ const qe = {
|
|
|
1792
1885
|
"--ikoneme-text-secondary": "#8696a0",
|
|
1793
1886
|
"--ikoneme-hover": "#2a2e36"
|
|
1794
1887
|
};
|
|
1795
|
-
function
|
|
1888
|
+
function Mt({
|
|
1796
1889
|
ikons: e = [],
|
|
1797
|
-
mode:
|
|
1890
|
+
mode: t = "view",
|
|
1798
1891
|
size: l = 64,
|
|
1799
1892
|
gap: r = 6,
|
|
1800
1893
|
zoom: i = !0,
|
|
1801
|
-
zoomSize:
|
|
1802
|
-
onChange:
|
|
1803
|
-
onIkonClick:
|
|
1804
|
-
searchRoot:
|
|
1805
|
-
theme:
|
|
1806
|
-
className:
|
|
1807
|
-
style:
|
|
1894
|
+
zoomSize: c = 320,
|
|
1895
|
+
onChange: n,
|
|
1896
|
+
onIkonClick: y,
|
|
1897
|
+
searchRoot: g,
|
|
1898
|
+
theme: s,
|
|
1899
|
+
className: a,
|
|
1900
|
+
style: u
|
|
1808
1901
|
}) {
|
|
1809
|
-
const [
|
|
1810
|
-
|
|
1811
|
-
},
|
|
1812
|
-
|
|
1813
|
-
},
|
|
1814
|
-
!
|
|
1815
|
-
},
|
|
1816
|
-
return /* @__PURE__ */
|
|
1902
|
+
const [v, C] = G(null), [k, E] = G(null), b = t === "edit", p = (f) => {
|
|
1903
|
+
n && n(e.filter((m, w) => w !== f));
|
|
1904
|
+
}, M = (f) => {
|
|
1905
|
+
v != null && n && n(e.map((m, w) => w === v ? f : m)), C(null);
|
|
1906
|
+
}, o = (f, m) => {
|
|
1907
|
+
!b && y && y(f, m), i && E(m);
|
|
1908
|
+
}, h = { ...mt, ...s }, x = i || !b && !!y;
|
|
1909
|
+
return /* @__PURE__ */ S(
|
|
1817
1910
|
"div",
|
|
1818
1911
|
{
|
|
1819
|
-
className: ["ikoneme",
|
|
1912
|
+
className: ["ikoneme", a].filter(Boolean).join(" "),
|
|
1820
1913
|
style: {
|
|
1821
1914
|
display: "flex",
|
|
1822
1915
|
flexWrap: "wrap",
|
|
1823
1916
|
alignItems: "center",
|
|
1824
1917
|
gap: `${r}px`,
|
|
1825
|
-
...
|
|
1826
|
-
...
|
|
1918
|
+
...h,
|
|
1919
|
+
...u
|
|
1827
1920
|
},
|
|
1828
1921
|
children: [
|
|
1829
|
-
e.map((
|
|
1830
|
-
|
|
1922
|
+
e.map((f, m) => /* @__PURE__ */ F(
|
|
1923
|
+
de,
|
|
1831
1924
|
{
|
|
1832
|
-
ikon:
|
|
1925
|
+
ikon: f,
|
|
1833
1926
|
size: l,
|
|
1834
|
-
onClick:
|
|
1835
|
-
onEdit:
|
|
1836
|
-
onDelete:
|
|
1927
|
+
onClick: x ? () => o(f, m) : void 0,
|
|
1928
|
+
onEdit: b ? () => C(m) : void 0,
|
|
1929
|
+
onDelete: b && n ? () => p(m) : void 0
|
|
1837
1930
|
},
|
|
1838
|
-
|
|
1931
|
+
m
|
|
1839
1932
|
)),
|
|
1840
|
-
|
|
1841
|
-
|
|
1933
|
+
b && v != null && e[v] && /* @__PURE__ */ F("div", { style: h, children: /* @__PURE__ */ F(
|
|
1934
|
+
ut,
|
|
1842
1935
|
{
|
|
1843
|
-
ikon: e[
|
|
1844
|
-
searchRoot:
|
|
1845
|
-
onSave:
|
|
1846
|
-
onClose: () =>
|
|
1936
|
+
ikon: e[v],
|
|
1937
|
+
searchRoot: g,
|
|
1938
|
+
onSave: M,
|
|
1939
|
+
onClose: () => C(null)
|
|
1847
1940
|
}
|
|
1848
1941
|
) }),
|
|
1849
|
-
i &&
|
|
1850
|
-
|
|
1942
|
+
i && k != null && e[k] && /* @__PURE__ */ F("div", { style: h, children: /* @__PURE__ */ F(
|
|
1943
|
+
pt,
|
|
1851
1944
|
{
|
|
1852
|
-
ikon: e[
|
|
1853
|
-
size:
|
|
1854
|
-
onClose: () =>
|
|
1945
|
+
ikon: e[k],
|
|
1946
|
+
size: c,
|
|
1947
|
+
onClose: () => E(null)
|
|
1855
1948
|
}
|
|
1856
1949
|
) })
|
|
1857
1950
|
]
|
|
1858
1951
|
}
|
|
1859
1952
|
);
|
|
1860
1953
|
}
|
|
1954
|
+
const wt = {
|
|
1955
|
+
context: { right: !0, bottom: !0 },
|
|
1956
|
+
reference: { right: !0, bottom: !0 },
|
|
1957
|
+
role: { right: !1, bottom: !0 },
|
|
1958
|
+
modes: { right: !0, bottom: !0 },
|
|
1959
|
+
root: { right: !0, bottom: !0 },
|
|
1960
|
+
east: { right: !1, bottom: !0 },
|
|
1961
|
+
tenses: { right: !1, bottom: !1 }
|
|
1962
|
+
}, Q = /* @__PURE__ */ new Map();
|
|
1963
|
+
function ce(e) {
|
|
1964
|
+
return e ? (Q.has(e) || Q.set(
|
|
1965
|
+
e,
|
|
1966
|
+
new Promise((t) => {
|
|
1967
|
+
const l = new Image();
|
|
1968
|
+
l.crossOrigin = "anonymous", l.onload = () => t(l), l.onerror = () => {
|
|
1969
|
+
Q.delete(e), t(null);
|
|
1970
|
+
}, l.src = e;
|
|
1971
|
+
})
|
|
1972
|
+
), Q.get(e)) : Promise.resolve(null);
|
|
1973
|
+
}
|
|
1974
|
+
function ye(e, t, l, r, i, c) {
|
|
1975
|
+
if (!t || i <= 0 || c <= 0) return;
|
|
1976
|
+
const n = t.naturalWidth || t.width, y = t.naturalHeight || t.height;
|
|
1977
|
+
if (!n || !y) return;
|
|
1978
|
+
const g = Math.min(i / n, c / y), s = n * g, a = y * g;
|
|
1979
|
+
e.drawImage(t, l + (i - s) / 2, r + (c - a) / 2, s, a);
|
|
1980
|
+
}
|
|
1981
|
+
function yt(e, t, l, r, i, c, n) {
|
|
1982
|
+
e.save(), e.fillStyle = "#888", e.font = `${Math.max(10, Math.round(n / 12))}px sans-serif`, e.textAlign = "center", e.textBaseline = "middle", e.fillText(t, l + i / 2, r + c / 2, i), e.restore();
|
|
1983
|
+
}
|
|
1984
|
+
function vt(e, t, l, r, i, c) {
|
|
1985
|
+
const { right: n, bottom: y } = wt[t];
|
|
1986
|
+
e.fillStyle = B, n && e.fillRect(l + i - 1, r, 1, c), y && e.fillRect(l, r + c - 1, i, 1);
|
|
1987
|
+
}
|
|
1988
|
+
async function bt(e, t, l, r, i) {
|
|
1989
|
+
const c = await ce(t.image);
|
|
1990
|
+
if (!c) return;
|
|
1991
|
+
const n = t.plural ? 150 : 78, y = i / 78 * 2, g = document.createElement("canvas");
|
|
1992
|
+
g.width = Math.round(n * y), g.height = Math.round(78 * y), g.getContext("2d").drawImage(c, 0, 0, g.width, g.height);
|
|
1993
|
+
const s = 9 * y, { corner: a } = ae(i), u = g.width, v = g.height, C = [
|
|
1994
|
+
[0, 0, s, s, l, r, a, a],
|
|
1995
|
+
[u - s, 0, s, s, l + i - a, r, a, a],
|
|
1996
|
+
[0, v - s, s, s, l, r + i - a, a, a],
|
|
1997
|
+
[u - s, v - s, s, s, l + i - a, r + i - a, a, a],
|
|
1998
|
+
[s, 0, u - 2 * s, s, l + a, r, i - 2 * a, a],
|
|
1999
|
+
[s, v - s, u - 2 * s, s, l + a, r + i - a, i - 2 * a, a],
|
|
2000
|
+
[0, s, s, v - 2 * s, l, r + a, a, i - 2 * a],
|
|
2001
|
+
[u - s, s, s, v - 2 * s, l + i - a, r + a, a, i - 2 * a]
|
|
2002
|
+
];
|
|
2003
|
+
for (const [k, E, b, p, M, o, h, x] of C)
|
|
2004
|
+
e.drawImage(g, k, E, b, p, M, o, h, x);
|
|
2005
|
+
}
|
|
2006
|
+
async function kt(e, t, l, r, i) {
|
|
2007
|
+
var E, b;
|
|
2008
|
+
const c = t != null && t.border ? se(t.border) : null, n = c ? ae(i).frame : 1, { framePad: y, zonePad: g, rootPad: s } = Ie(i);
|
|
2009
|
+
e.fillStyle = "#ffffff", e.fillRect(l + n, r + n, i - 2 * n, i - 2 * n), c ? await bt(e, c, l, r, i) : (e.strokeStyle = "rgba(255, 255, 255, 0.1)", e.lineWidth = 1, e.strokeRect(l + 0.5, r + 0.5, i - 1, i - 1));
|
|
2010
|
+
const a = n + y, u = i - 2 * a, v = ie(u, ne).map((p) => l + a + p), C = ie(u, ne).map((p) => r + a + p), k = [];
|
|
2011
|
+
for (const [
|
|
2012
|
+
p,
|
|
2013
|
+
{
|
|
2014
|
+
cols: [M, o],
|
|
2015
|
+
rows: [h, x]
|
|
2016
|
+
}
|
|
2017
|
+
] of Object.entries(st)) {
|
|
2018
|
+
const f = v[M], m = C[h], w = v[o] - f, _ = C[x] - m;
|
|
2019
|
+
if (e.fillStyle = K[p], e.fillRect(f, m, w, _), vt(e, p, f, m, w, _), p === "reference") {
|
|
2020
|
+
const R = ie(w, ke).map((O) => f + O);
|
|
2021
|
+
e.fillStyle = B;
|
|
2022
|
+
for (let O = 1; O <= 3; O++) e.fillRect(R[O] - 1, m, 1, _ - 1);
|
|
2023
|
+
[
|
|
2024
|
+
[(E = t == null ? void 0 : t.reference) == null ? void 0 : E.left, 1],
|
|
2025
|
+
[(b = t == null ? void 0 : t.reference) == null ? void 0 : b.right, 2]
|
|
2026
|
+
].forEach(([O, H]) => {
|
|
2027
|
+
const J = R[H] + g, ee = R[H + 1] - R[H] - 2 * g;
|
|
2028
|
+
k.push(
|
|
2029
|
+
ce(Fe(O)).then(
|
|
2030
|
+
(Z) => ye(e, Z, J, m + g, ee, _ - 2 * g)
|
|
2031
|
+
)
|
|
2032
|
+
);
|
|
2033
|
+
});
|
|
2034
|
+
continue;
|
|
2035
|
+
}
|
|
2036
|
+
if (p === "east") continue;
|
|
2037
|
+
const P = t == null ? void 0 : t[p], L = p === "root" ? s : g, Y = Fe(P);
|
|
2038
|
+
if (!Y) {
|
|
2039
|
+
P != null && P.name && yt(e, P.name, f, m, w, _, i);
|
|
2040
|
+
continue;
|
|
2041
|
+
}
|
|
2042
|
+
k.push(
|
|
2043
|
+
ce(Y).then(
|
|
2044
|
+
(R) => ye(e, R, f + L, m + L, w - 2 * L, _ - 2 * L)
|
|
2045
|
+
)
|
|
2046
|
+
);
|
|
2047
|
+
}
|
|
2048
|
+
await Promise.all(k);
|
|
2049
|
+
}
|
|
2050
|
+
async function It(e, {
|
|
2051
|
+
size: t = 120,
|
|
2052
|
+
gap: l = 0,
|
|
2053
|
+
padding: r = 40,
|
|
2054
|
+
perRow: i = 8,
|
|
2055
|
+
background: c = "#ffffff",
|
|
2056
|
+
title: n = null,
|
|
2057
|
+
titleColor: y = "#000000",
|
|
2058
|
+
titleFont: g = "16px sans-serif",
|
|
2059
|
+
pixelRatio: s = 1
|
|
2060
|
+
} = {}) {
|
|
2061
|
+
const a = e != null && e.length ? e : [], u = Math.max(1, Math.min(a.length, i)), v = Math.max(1, Math.ceil(a.length / u)), C = n ? 60 : 0, k = r * 2 + u * t + (u - 1) * l, E = r * 2 + C + v * t + (v - 1) * l, b = document.createElement("canvas");
|
|
2062
|
+
b.width = Math.round(k * s), b.height = Math.round(E * s);
|
|
2063
|
+
const p = b.getContext("2d");
|
|
2064
|
+
return p.scale(s, s), p.fillStyle = c, p.fillRect(0, 0, k, E), n && (p.fillStyle = y, p.font = g, p.fillText(n, r, Math.max(16, r - 10))), await Promise.all(
|
|
2065
|
+
a.map((M, o) => {
|
|
2066
|
+
const h = r + o % u * (t + l), x = r + C + Math.floor(o / u) * (t + l);
|
|
2067
|
+
return kt(p, M, h, x, t);
|
|
2068
|
+
})
|
|
2069
|
+
), b;
|
|
2070
|
+
}
|
|
2071
|
+
async function Nt(e, t) {
|
|
2072
|
+
const l = await It(e, t);
|
|
2073
|
+
return new Promise((r, i) => {
|
|
2074
|
+
l.toBlob(
|
|
2075
|
+
(c) => c ? r(c) : i(new Error("Could not encode the PNG")),
|
|
2076
|
+
"image/png"
|
|
2077
|
+
);
|
|
2078
|
+
});
|
|
2079
|
+
}
|
|
1861
2080
|
export {
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
2081
|
+
z as BORDER_CONFIG,
|
|
2082
|
+
rt as BORDER_IDS,
|
|
2083
|
+
mt as DEFAULT_THEME,
|
|
2084
|
+
he as IKONDB_BASE_URL,
|
|
2085
|
+
de as Ikon,
|
|
2086
|
+
ut as IkonEditor,
|
|
2087
|
+
pt as IkonZoomView,
|
|
2088
|
+
Mt as Ikoneme,
|
|
2089
|
+
I as ZONE_CONFIG,
|
|
2090
|
+
Et as clearIkonDbCache,
|
|
2091
|
+
pe as createDefaultIkon,
|
|
2092
|
+
Tt as createEmptyIkon,
|
|
2093
|
+
$e as defaultSearchRoot,
|
|
2094
|
+
kt as drawIkon,
|
|
2095
|
+
Bt as generateIkonemeFromText,
|
|
2096
|
+
se as getBorderConfig,
|
|
2097
|
+
oe as getBorderImageStyle,
|
|
2098
|
+
ae as getBorderMetrics,
|
|
2099
|
+
D as getIconConfig,
|
|
2100
|
+
Fe as getIconDisplayUrl,
|
|
2101
|
+
N as getIconUrl,
|
|
2102
|
+
_t as getIconUrlByIndex,
|
|
1880
2103
|
We as getIkonDetails,
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
2104
|
+
He as getIkonList,
|
|
2105
|
+
ot as normalizeIkon,
|
|
2106
|
+
Vt as normalizeIkoneme,
|
|
2107
|
+
It as renderIkonemeToCanvas,
|
|
2108
|
+
Nt as renderIkonemeToPng,
|
|
2109
|
+
be as searchIkons
|
|
1885
2110
|
};
|
|
1886
2111
|
//# sourceMappingURL=ikoneme-lib.js.map
|