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.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ikoneme-lib.cjs","sources":["../node_modules/lucide-react/dist/esm/defaultAttributes.js","../node_modules/lucide-react/dist/esm/createLucideIcon.js","../node_modules/lucide-react/dist/esm/icons/arrow-left.js","../node_modules/lucide-react/dist/esm/icons/pen.js","../node_modules/lucide-react/dist/esm/icons/search.js","../node_modules/lucide-react/dist/esm/icons/trash-2.js","../node_modules/lucide-react/dist/esm/icons/x.js","../src/ikonSchema.js","../src/Ikon.jsx","../src/ikonDb.js","../src/IkonEditor.jsx","../src/IkonZoomView.jsx","../src/theme.js","../src/Ikoneme.jsx"],"sourcesContent":["/**\n * @license lucide-react v0.294.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nvar defaultAttributes = {\n xmlns: \"http://www.w3.org/2000/svg\",\n width: 24,\n height: 24,\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n stroke: \"currentColor\",\n strokeWidth: 2,\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n};\n\nexport { defaultAttributes as default };\n//# sourceMappingURL=defaultAttributes.js.map\n","/**\n * @license lucide-react v0.294.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport { forwardRef, createElement } from 'react';\nimport defaultAttributes from './defaultAttributes.js';\n\nconst toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, \"$1-$2\").toLowerCase().trim();\nconst createLucideIcon = (iconName, iconNode) => {\n const Component = forwardRef(\n ({ color = \"currentColor\", size = 24, strokeWidth = 2, absoluteStrokeWidth, className = \"\", children, ...rest }, ref) => createElement(\n \"svg\",\n {\n ref,\n ...defaultAttributes,\n width: size,\n height: size,\n stroke: color,\n strokeWidth: absoluteStrokeWidth ? Number(strokeWidth) * 24 / Number(size) : strokeWidth,\n className: [\"lucide\", `lucide-${toKebabCase(iconName)}`, className].join(\" \"),\n ...rest\n },\n [\n ...iconNode.map(([tag, attrs]) => createElement(tag, attrs)),\n ...Array.isArray(children) ? children : [children]\n ]\n )\n );\n Component.displayName = `${iconName}`;\n return Component;\n};\n\nexport { createLucideIcon as default, toKebabCase };\n//# sourceMappingURL=createLucideIcon.js.map\n","/**\n * @license lucide-react v0.294.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst ArrowLeft = createLucideIcon(\"ArrowLeft\", [\n [\"path\", { d: \"m12 19-7-7 7-7\", key: \"1l729n\" }],\n [\"path\", { d: \"M19 12H5\", key: \"x3x0zl\" }]\n]);\n\nexport { ArrowLeft as default };\n//# sourceMappingURL=arrow-left.js.map\n","/**\n * @license lucide-react v0.294.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst Pen = createLucideIcon(\"Pen\", [\n [\"path\", { d: \"M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z\", key: \"5qss01\" }]\n]);\n\nexport { Pen as default };\n//# sourceMappingURL=pen.js.map\n","/**\n * @license lucide-react v0.294.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst Search = createLucideIcon(\"Search\", [\n [\"circle\", { cx: \"11\", cy: \"11\", r: \"8\", key: \"4ej97u\" }],\n [\"path\", { d: \"m21 21-4.3-4.3\", key: \"1qie3q\" }]\n]);\n\nexport { Search as default };\n//# sourceMappingURL=search.js.map\n","/**\n * @license lucide-react v0.294.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst Trash2 = createLucideIcon(\"Trash2\", [\n [\"path\", { d: \"M3 6h18\", key: \"d0wm0j\" }],\n [\"path\", { d: \"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6\", key: \"4alrt4\" }],\n [\"path\", { d: \"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2\", key: \"v07s0e\" }],\n [\"line\", { x1: \"10\", x2: \"10\", y1: \"11\", y2: \"17\", key: \"1uufr5\" }],\n [\"line\", { x1: \"14\", x2: \"14\", y1: \"11\", y2: \"17\", key: \"xtxkd\" }]\n]);\n\nexport { Trash2 as default };\n//# sourceMappingURL=trash-2.js.map\n","/**\n * @license lucide-react v0.294.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst X = createLucideIcon(\"X\", [\n [\"path\", { d: \"M18 6 6 18\", key: \"1bl5f8\" }],\n [\"path\", { d: \"m6 6 12 12\", key: \"d8bk6v\" }]\n]);\n\nexport { X as default };\n//# sourceMappingURL=x.js.map\n","// Ikon zone configuration: tooltips and image URLs shown by the editor, and used\n// to resolve icon metadata back from a stored URL. Ported 1:1 from ikonchat so\n// the JSON payload produced/consumed here is byte-for-byte compatible with it.\n//\n// Field <-> NLP-spec vocabulary mapping (see project README):\n// context -> gender, modes -> mode, tenses -> time-tenses\n// role, reference, root and border already share the spec's names.\nexport const ZONE_CONFIG = {\n context: [\n { tooltip: 'Male', url: 'https://text2ikon.komunikon.com/gender-assets/KomunIKON_Male.svg' },\n {\n tooltip: 'Female',\n url: 'https://text2ikon.komunikon.com/gender-assets/KomunIKON_Female.svg'\n },\n {\n tooltip: 'Non Binary',\n url: 'https://text2ikon.komunikon.com/gender-assets/KomunIKON_Non-Binary.png'\n }\n ],\n reference: [\n {\n tooltip: 'Asterisk',\n url: 'https://text2ikon.komunikon.com/reference-assets/KomunIKON_asterisk.svg'\n },\n { tooltip: 'Zero', url: 'https://text2ikon.komunikon.com/reference-assets/KomunIKON_Zero.svg' },\n { tooltip: 'One', url: 'https://text2ikon.komunikon.com/reference-assets/KomunIKON_One.svg' },\n { tooltip: 'Two', url: 'https://text2ikon.komunikon.com/reference-assets/KomunIKON_Two.svg' },\n {\n tooltip: 'Three',\n url: 'https://text2ikon.komunikon.com/reference-assets/KomunIKON_Three.svg'\n },\n { tooltip: 'Four', url: 'https://text2ikon.komunikon.com/reference-assets/KomunIKON_Four.svg' },\n { tooltip: 'Five', url: 'https://text2ikon.komunikon.com/reference-assets/KomunIKON_Five.svg' },\n { tooltip: 'Six', url: 'https://text2ikon.komunikon.com/reference-assets/KomunIKON_Six.svg' },\n {\n tooltip: 'Seven',\n url: 'https://text2ikon.komunikon.com/reference-assets/KomunIKON_Seven.svg'\n },\n {\n tooltip: 'Eight',\n url: 'https://text2ikon.komunikon.com/reference-assets/KomunIKON_Eight.svg'\n },\n { tooltip: 'Nine', url: 'https://text2ikon.komunikon.com/reference-assets/KomunIKON_Nine.svg' }\n ],\n role: [\n { tooltip: 'agent', url: 'https://text2ikon.komunikon.com/case-assets/KomunIKON_agent.svg' },\n {\n tooltip: 'patient',\n url: 'https://text2ikon.komunikon.com/case-assets/KomunIKON_patient.svg'\n },\n {\n tooltip: 'reflexive',\n url: 'https://text2ikon.komunikon.com/case-assets/KomunIKON_reflexive.svg'\n },\n {\n tooltip: 'recipricol',\n url: 'https://text2ikon.komunikon.com/_next/image?url=%2Fcase-assets%2Frecipricol.jpg&w=48&q=75'\n }\n ],\n modes: [\n { tooltip: 'Exclam', url: 'https://text2ikon.komunikon.com/mode-assets/KomunIKON_Exclam.svg' },\n { tooltip: 'Which', url: 'https://text2ikon.komunikon.com/mode-assets/KomunIKON_Which.svg' }\n ],\n // Direct source URLs (bypassing text2ikon's `_next/image` proxy, which 500s\n // on these — it can no longer optimize images from this old ikondb domain).\n root: [\n {\n tooltip: 'Love/Passion',\n url: 'https://ikondb.komunikon.com/uploads/images/icons/ZFcaar88AP.png'\n },\n {\n tooltip: 'Star/Excellence',\n url: 'https://ikondb.komunikon.com/uploads/images/icons/M0ADaSXzWe.png'\n },\n {\n tooltip: 'Value/Precious',\n url: 'https://ikondb.komunikon.com/uploads/images/icons/6ghAUKbdIs.png'\n },\n {\n tooltip: 'Fire/Hot',\n url: 'https://ikondb.komunikon.com/uploads/images/icons/zq0n4vHSQW.png'\n },\n {\n tooltip: 'Water/Fluid',\n url: 'https://ikondb.komunikon.com/uploads/images/icons/DVhDIm6KqB.png'\n },\n {\n tooltip: 'Flower/Beauty',\n url: 'https://ikondb.komunikon.com/uploads/images/icons/UnpCfhHsUa.png'\n },\n {\n tooltip: 'Leaf/Nature',\n url: 'https://ikondb.komunikon.com/uploads/images/icons/5Ex6my6BI7.png'\n }\n ],\n tenses: [\n {\n tooltip: 'adas',\n url: 'https://text2ikon.komunikon.com/time-assets/KomunIKON_Verbal_Tense_adas.svg'\n },\n {\n tooltip: 'adis',\n url: 'https://text2ikon.komunikon.com/time-assets/KomunIKON_Verbal_Tense_adis.svg'\n },\n {\n tooltip: 'ados',\n url: 'https://text2ikon.komunikon.com/time-assets/KomunIKON_Verbal_Tense_ados.svg'\n },\n {\n tooltip: 'antas',\n url: 'https://text2ikon.komunikon.com/time-assets/KomunIKON_Verbal_Tense_antas.svg'\n },\n {\n tooltip: 'antis',\n url: 'https://text2ikon.komunikon.com/time-assets/KomunIKON_Verbal_Tense_antis.svg'\n },\n {\n tooltip: 'antos',\n url: 'https://text2ikon.komunikon.com/time-assets/KomunIKON_Verbal_Tense_antos.svg'\n },\n {\n tooltip: 'as',\n url: 'https://text2ikon.komunikon.com/time-assets/KomunIKON_Verbal_Tense_as.svg'\n },\n {\n tooltip: 'intas',\n url: 'https://text2ikon.komunikon.com/time-assets/KomunIKON_Verbal_Tense_intas.svg'\n },\n {\n tooltip: 'intis',\n url: 'https://text2ikon.komunikon.com/time-assets/KomunIKON_Verbal_Tense_intis.svg'\n },\n {\n tooltip: 'intis2',\n url: 'https://text2ikon.komunikon.com/time-assets/KomunIKON_Verbal_Tense_intis2.svg'\n },\n {\n tooltip: 'intos',\n url: 'https://text2ikon.komunikon.com/time-assets/KomunIKON_Verbal_Tense_intos.svg'\n },\n {\n tooltip: 'intos2',\n url: 'https://text2ikon.komunikon.com/time-assets/KomunIKON_Verbal_Tense_intos2.svg'\n },\n {\n tooltip: 'is',\n url: 'https://text2ikon.komunikon.com/time-assets/KomunIKON_Verbal_Tense_is.svg'\n },\n {\n tooltip: 'ontas',\n url: 'https://text2ikon.komunikon.com/time-assets/KomunIKON_Verbal_Tense_ontas.svg'\n },\n {\n tooltip: 'ontis',\n url: 'https://text2ikon.komunikon.com/time-assets/KomunIKON_Verbal_Tense_ontis.svg'\n },\n {\n tooltip: 'ontis2',\n url: 'https://text2ikon.komunikon.com/time-assets/KomunIKON_Verbal_Tense_ontis2.svg'\n },\n {\n tooltip: 'ontos',\n url: 'https://text2ikon.komunikon.com/time-assets/KomunIKON_Verbal_Tense_ontos.svg'\n },\n {\n tooltip: 'ontos2',\n url: 'https://text2ikon.komunikon.com/time-assets/KomunIKON_Verbal_Tense_ontos2.svg'\n },\n {\n tooltip: 'os',\n url: 'https://text2ikon.komunikon.com/time-assets/KomunIKON_Verbal_Tense_os.svg'\n }\n ]\n}\n\n// Border types: 6 singular (one color each) + 6 plural (same colors, stacked border on bottom/right).\nexport const BORDER_CONFIG = [\n { id: 'name', label: 'Name', color: '#60a5fa', plural: false },\n { id: 'verb', label: 'Verb', color: '#f87171', plural: false },\n { id: 'adjective', label: 'Adjective', color: '#4ade80', plural: false },\n { id: 'adverb', label: 'Adverb', color: '#fb923c', plural: false },\n { id: 'conjunction', label: 'Conjunction', color: '#a78bfa', plural: false },\n { id: 'neutral', label: 'Neutral', color: '#94a3b8', plural: false },\n { id: 'name_plural', label: 'Name (plural)', color: '#60a5fa', plural: true },\n { id: 'verb_plural', label: 'Verb (plural)', color: '#f87171', plural: true },\n { id: 'adjective_plural', label: 'Adjective (plural)', color: '#4ade80', plural: true },\n { id: 'adverb_plural', label: 'Adverb (plural)', color: '#fb923c', plural: true },\n { id: 'conjunction_plural', label: 'Conjunction (plural)', color: '#a78bfa', plural: true },\n { id: 'neutral_plural', label: 'Neutral (plural)', color: '#94a3b8', plural: true }\n]\n\nexport const BORDER_IDS = BORDER_CONFIG.map((b) => b.id)\nconst VALID_BORDER_SET = new Set(BORDER_IDS)\n\nexport function getBorderConfig(borderId) {\n return BORDER_CONFIG.find((b) => b.id === borderId) ?? null\n}\n\n// Helper to get icon config by URL\nexport function getIconConfig(zone, url) {\n return ZONE_CONFIG[zone]?.find((config) => config.url === url)\n}\n\n// Helper to get URL by index\nexport function getIconUrlByIndex(zone, index) {\n return ZONE_CONFIG[zone]?.[index]?.url\n}\n\n// Get URL from a zone value (string or { name, url } object) for backward compatibility\nexport function getIconUrl(value) {\n if (value == null) return null\n return typeof value === 'object' && 'url' in value ? value.url : value\n}\n\n// URL to actually render for a zone value: prefer a scalable SVG when the value\n// carries one (IkonDB root icons expose `svg`), else fall back to the plain url.\nexport function getIconDisplayUrl(value) {\n if (value == null) return null\n if (typeof value === 'object') return value.svg || value.url || null\n return value\n}\n\n// Build { name, url } from a zone config entry\nfunction toIconObj(config) {\n return { name: config.tooltip, url: config.url }\n}\n\n// Default ikon structure (stores { name, url } per zone; rootName set when root chosen via search; border = border type id or null)\nexport function createDefaultIkon() {\n return {\n context: toIconObj(ZONE_CONFIG.context[0]),\n reference: {\n left: null,\n right: null\n },\n role: toIconObj(ZONE_CONFIG.role[0]),\n modes: toIconObj(ZONE_CONFIG.modes[0]),\n root: toIconObj(ZONE_CONFIG.root[0]),\n rootName: null,\n tenses: toIconObj(ZONE_CONFIG.tenses[0]),\n border: null\n }\n}\n\n// Normalize an ikon so every zone is { name, url } (upgrades URL-only saved data).\n// Unknown/extra fields (e.g. a `metadata` block from the NLP pipeline) are preserved as-is.\nexport function normalizeIkon(icon) {\n if (!icon) return icon\n const ref = icon.reference || { left: null, right: null }\n const contextConfig =\n typeof icon.context === 'string' ? getIconConfig('context', icon.context) : null\n const roleConfig = typeof icon.role === 'string' ? getIconConfig('role', icon.role) : null\n const modesConfig = typeof icon.modes === 'string' ? getIconConfig('modes', icon.modes) : null\n const rootConfig = typeof icon.root === 'string' ? getIconConfig('root', icon.root) : null\n const tensesConfig = typeof icon.tenses === 'string' ? getIconConfig('tenses', icon.tenses) : null\n\n const border = icon.border != null && VALID_BORDER_SET.has(icon.border) ? icon.border : null\n return {\n ...icon,\n context:\n typeof icon.context === 'object' && icon.context?.url != null\n ? icon.context\n : contextConfig\n ? toIconObj(contextConfig)\n : { name: '', url: icon.context || '' },\n reference: {\n left:\n ref.left == null\n ? null\n : typeof ref.left === 'object' && ref.left?.url != null\n ? ref.left\n : getIconConfig('reference', ref.left)\n ? toIconObj(getIconConfig('reference', ref.left))\n : { name: '', url: ref.left },\n right:\n ref.right == null\n ? null\n : typeof ref.right === 'object' && ref.right?.url != null\n ? ref.right\n : getIconConfig('reference', ref.right)\n ? toIconObj(getIconConfig('reference', ref.right))\n : { name: '', url: ref.right }\n },\n role:\n typeof icon.role === 'object' && icon.role?.url != null\n ? icon.role\n : roleConfig\n ? toIconObj(roleConfig)\n : { name: '', url: icon.role || '' },\n modes:\n typeof icon.modes === 'object' && icon.modes?.url != null\n ? icon.modes\n : modesConfig\n ? toIconObj(modesConfig)\n : { name: '', url: icon.modes || '' },\n root:\n typeof icon.root === 'object' && icon.root?.url != null\n ? { ...icon.root, name: icon.rootName ?? icon.root.name }\n : rootConfig\n ? { name: icon.rootName ?? rootConfig.tooltip, url: rootConfig.url }\n : { name: icon.rootName ?? '', url: icon.root || '' },\n tenses:\n typeof icon.tenses === 'object' && icon.tenses?.url != null\n ? icon.tenses\n : tensesConfig\n ? toIconObj(tensesConfig)\n : { name: '', url: icon.tenses || '' },\n border\n }\n}\n\n// Normalize a whole ikoneme (an ordered list of ikons).\nexport function normalizeIkoneme(ikons) {\n return (ikons || []).map(normalizeIkon)\n}\n\n// Simple hash function to generate a number from a string\nfunction hashString(str) {\n let hash = 0\n for (let i = 0; i < str.length; i++) {\n const char = str.charCodeAt(i)\n hash = (hash << 5) - hash + char\n hash = hash & hash // Convert to 32bit integer\n }\n return Math.abs(hash)\n}\n\n// Seeded pseudo-random number generator (LCG algorithm)\nclass SeededRandom {\n constructor(seed) {\n this.seed = seed\n }\n\n next() {\n const a = 1664525\n const c = 1013904223\n const m = Math.pow(2, 32)\n\n this.seed = (a * this.seed + c) % m\n return this.seed / m\n }\n\n nextInt(min, max) {\n return Math.floor(this.next() * (max - min)) + min\n }\n}\n\n// Placeholder generator: builds a plausible ikoneme (list of ikons) from raw text\n// using hash-based random selection. Useful for demos/tests until the real NLP\n// pipeline (see the Rich Icon Output Specification) is wired in.\nexport function generateIkonemeFromText(text) {\n const words = text.toLowerCase().split(/\\s+/).filter(Boolean)\n const ikons = []\n\n for (const word of words) {\n const ikon = { ...createDefaultIkon() }\n const wordHash = hashString(word)\n const rng = new SeededRandom(wordHash)\n\n ikon.context = toIconObj(ZONE_CONFIG.context[rng.nextInt(0, ZONE_CONFIG.context.length)])\n\n const hasAsterisk = rng.next() > 0.5\n const numberIndex = rng.nextInt(1, ZONE_CONFIG.reference.length) // Skip asterisk (index 0)\n ikon.reference = {\n left: hasAsterisk ? toIconObj(ZONE_CONFIG.reference[0]) : null,\n right: toIconObj(ZONE_CONFIG.reference[numberIndex])\n }\n\n ikon.role = toIconObj(ZONE_CONFIG.role[rng.nextInt(0, ZONE_CONFIG.role.length)])\n ikon.modes = toIconObj(ZONE_CONFIG.modes[rng.nextInt(0, ZONE_CONFIG.modes.length)])\n ikon.root = toIconObj(ZONE_CONFIG.root[rng.nextInt(0, ZONE_CONFIG.root.length)])\n ikon.tenses = toIconObj(ZONE_CONFIG.tenses[rng.nextInt(0, ZONE_CONFIG.tenses.length)])\n\n const singularBorders = BORDER_CONFIG.filter((b) => !b.plural)\n ikon.border = singularBorders[rng.nextInt(0, singularBorders.length)].id\n\n ikons.push(ikon)\n }\n\n return ikons.length > 0 ? ikons : [createDefaultIkon()]\n}\n","import React, { useState, useEffect } from 'react'\nimport { Edit2, Trash2 } from 'lucide-react'\nimport { getIconConfig, getIconUrl, getIconDisplayUrl, getBorderConfig } from './ikonSchema'\n\n// One icon = one grid cell. The image fills its slot but `object-fit: contain`\n// keeps its aspect ratio and `max-*: 100%` + the slot's own `overflow: hidden`\n// guarantee it can never spill past the slot (and therefore never past the\n// card border). Assets have wildly different intrinsic sizes (12px SVGs up to\n// 576px PNGs) — without the max-* clamp a large one would inflate its `1fr`\n// grid track and push the whole layout out of the card.\nconst SLOT_IMG_STYLE = {\n maxWidth: '100%',\n maxHeight: '100%',\n width: '100%',\n height: '100%',\n objectFit: 'contain',\n display: 'block',\n boxSizing: 'border-box'\n}\n\n// Shared style for a slot that centers a single icon inside its reserved area.\nconst slotCell = (pad) => ({\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n minWidth: 0,\n minHeight: 0,\n overflow: 'hidden',\n boxSizing: 'border-box',\n padding: `${pad}px`\n})\n\nfunction useIsMobile(breakpoint = 768) {\n const [isMobile, setIsMobile] = useState(\n () => typeof window !== 'undefined' && window.innerWidth < breakpoint\n )\n useEffect(() => {\n const mql = window.matchMedia(`(max-width: ${breakpoint - 1}px)`)\n const handler = () => setIsMobile(mql.matches)\n mql.addEventListener('change', handler)\n return () => mql.removeEventListener('change', handler)\n }, [breakpoint])\n return isMobile\n}\n\n// Renders a single ikon (a \"super icon\") from its rich JSON payload:\n// { context, reference: { left, right }, role, modes, root, rootName, tenses, border }\nfunction Ikon({\n ikon,\n onClick,\n size = 64,\n onZoneClick,\n selectedZone,\n isSelected = false,\n isPaired = false,\n onEdit,\n onDelete,\n hideActionOverlay = false\n}) {\n const [isHovered, setIsHovered] = useState(false)\n const isMobile = useIsMobile()\n const borderConfig = ikon?.border ? getBorderConfig(ikon.border) : null\n\n const handleZoneClick = (zone, e) => {\n if (onZoneClick) {\n e.stopPropagation()\n onZoneClick(zone)\n } else if (onClick) {\n onClick(e)\n }\n }\n\n const handleZoneMouseEnter = (e) => {\n if (onZoneClick) {\n e.currentTarget.style.filter = 'brightness(1.3)'\n }\n }\n\n const handleZoneMouseLeave = (e) => {\n if (onZoneClick) {\n e.currentTarget.style.filter = 'brightness(1)'\n }\n }\n\n const getZoneStyle = (zone, baseStyle) => {\n const zoneSelected = selectedZone === zone\n return {\n // A selected zone draws a 2px inset outline; border-box keeps that\n // outline (and every zone's padding) inside the slot the grid gave it,\n // so it can't nudge a neighbour or the card edge.\n boxSizing: 'border-box',\n ...baseStyle,\n cursor: onZoneClick ? 'pointer' : onClick ? 'pointer' : 'default',\n transition: 'all 0.2s, filter 0.2s',\n border: zoneSelected ? '2px solid var(--ikoneme-primary)' : baseStyle.border || 'none',\n boxShadow: zoneSelected ? '0 0 8px var(--ikoneme-primary)' : 'none',\n position: 'relative'\n }\n }\n\n // Helper to render zone content (zoneValue can be string URL or { name, url } object)\n const renderZoneContent = (zone, zoneValue) => {\n const url = getIconDisplayUrl(zoneValue)\n if (!url) return null\n\n const iconConfig = getIconConfig(zone, getIconUrl(zoneValue))\n const label =\n (zoneValue && typeof zoneValue === 'object' && zoneValue.name) || iconConfig?.tooltip || zone\n return (\n <img\n src={url}\n alt={label}\n style={SLOT_IMG_STYLE}\n onError={(e) => {\n e.target.style.display = 'none'\n }}\n />\n )\n }\n\n const hasButtonArea = !hideActionOverlay && !onZoneClick && (onEdit || onDelete)\n const buttonSize = isMobile ? 28 : 24\n const buttonGap = 4\n const buttonRowWidth = 3 * buttonSize + 2 * buttonGap\n const iconSizePx = hasButtonArea ? buttonRowWidth : size\n const buttonsVisible = isMobile || isHovered\n\n // Every length below is derived from the size the card actually renders at\n // (`renderSize`), not the `size` prop — in edit mode the card is widened to\n // fit the action-button row, and calibrating padding/border to the prop\n // instead left the micro-icons too small and the spacing off.\n const renderSize = iconSizePx\n\n // Border thickness scales with icon size so the grammatical border stays\n // legible both in a small chat bubble and in a large zoomed-in view.\n const borderWidth = Math.max(2, Math.round(renderSize / 40))\n // Real padding on the grid container: an inset ring, in border-box units,\n // filled with the card colour (see `cardBg`). It holds the whole 6x6 slot\n // layout off the coloured border — grid-based, scales with the card, and\n // cannot be broken by slot content — and is what keeps the border visually\n // disconnected from the icons.\n const framePad = Math.max(2, Math.round(renderSize / 44))\n // Padding between a slot's icon and the slot edge — just enough to keep\n // icons of adjacent slots off each other. Much tighter than before\n // (was ~size/26): most of the \"micro-icons are bigger\" win comes from\n // giving the icon its whole slot instead of a wide inner margin.\n const zonePad = Math.max(2, Math.round(renderSize / 72))\n const rootPad = Math.max(2, Math.round(renderSize / 40))\n // 6x6 track weights. The corner/edge tracks are a little wider than the four\n // middle ones so the context/role/modes/reference/tenses icons read clearly;\n // kept symmetric on both axes and both sides so `root` — and the whole\n // layout — stays centered. Barely moved from the original 1.15/0.925: the\n // size gain is in the padding, so `root` keeps ~92% of its linear size.\n const edgeFr = 1.18\n const midFr = 0.95\n const gridTracks = `minmax(0, ${edgeFr}fr) repeat(4, minmax(0, ${midFr}fr)) minmax(0, ${edgeFr}fr)`\n // Reference (North) is a 4-slot strip: two empty spacers framing the two\n // icon slots. Weight the icon slots up so the left/right reference icons are\n // as prominent as the corner ones instead of being squeezed into a quarter.\n const refTracks = 'minmax(0, 0.6fr) minmax(0, 1.4fr) minmax(0, 1.4fr) minmax(0, 0.6fr)'\n const baseBorderStyle = borderConfig\n ? { border: `${borderWidth}px solid ${borderConfig.color}` }\n : {\n border:\n isSelected && !isPaired\n ? '2px solid rgba(0, 168, 132, 0.8)'\n : '1px solid rgba(255, 255, 255, 0.1)'\n }\n\n const pluralStackStyle = borderConfig?.plural\n ? {\n boxShadow: [\n `inset -${borderWidth}px 0 0 ${borderConfig.color}`,\n `inset -${borderWidth * 2}px 0 0 ${borderConfig.color}`,\n `inset -${borderWidth * 3}px 0 0 ${borderConfig.color}`,\n `inset 0 -${borderWidth}px 0 ${borderConfig.color}`,\n `inset 0 -${borderWidth * 2}px 0 ${borderConfig.color}`,\n `inset 0 -${borderWidth * 3}px 0 ${borderConfig.color}`\n ].join(', ')\n }\n : {}\n\n // Card fill. Also fills the `framePad` ring between the slot layout and the\n // coloured border, so that gap reads as part of the card (white) rather than\n // as a dark frame — the ring alone keeps the border visually disconnected\n // from the slot content, no extra band needed.\n const cardBg = isSelected && !isPaired ? 'rgba(0, 168, 132, 0.15)' : 'white'\n\n const singularStackShadow =\n borderConfig && !borderConfig.plural ? pluralStackStyle.boxShadow : null\n const baseBoxShadow = [\n isSelected && !isPaired ? '0 0 12px rgba(0, 168, 132, 0.4)' : null,\n selectedZone === 'border' ? '0 0 0 3px var(--ikoneme-primary)' : null,\n singularStackShadow\n ]\n .filter(Boolean)\n .join(', ')\n const hoverBoxShadow = ['0 0 10px rgba(0, 168, 132, 0.5)', singularStackShadow]\n .filter(Boolean)\n .join(', ')\n\n const iconBox = (\n <>\n <div\n onClick={\n !onZoneClick ? (onClick ? (e) => onClick(e) : undefined) : () => onZoneClick('border')\n }\n style={{\n width: `${renderSize}px`,\n height: `${renderSize}px`,\n // border-box: the coloured border is drawn *inside* renderSize, so a\n // card always occupies exactly the box its parent reserved for it and\n // the grid tracks are sized within `renderSize - 2*borderWidth`.\n // With content-box the border sat outside and every card overflowed\n // its slot by `borderWidth` on the right and bottom.\n boxSizing: 'border-box',\n display: 'grid',\n // Inset ring so the slot layout never sits flush against the border.\n padding: `${framePad}px`,\n // See `edgeFr`/`midFr` above. `minmax(0, …fr)` on every track is what\n // stops a large-intrinsic icon from inflating its track and shoving\n // the neighbouring slots (and the whole layout) past the card border.\n gridTemplateColumns: gridTracks,\n gridTemplateRows: gridTracks,\n cursor: onClick || onZoneClick ? 'pointer' : 'default',\n borderRadius: '4px',\n // Absolute clip boundary: nothing rendered by any slot can be seen\n // outside the card outline, whatever its content or the card size.\n overflow: 'hidden',\n flexShrink: 0,\n transition: 'transform 0.2s, box-shadow 0.2s, border 0.2s',\n background: cardBg,\n boxShadow: baseBoxShadow,\n ...baseBorderStyle\n }}\n onMouseEnter={(e) => {\n if (onClick && !onZoneClick && !isPaired) {\n e.currentTarget.style.transform = 'scale(1.05)'\n if (!isSelected) {\n e.currentTarget.style.boxShadow = hoverBoxShadow\n }\n }\n }}\n onMouseLeave={(e) => {\n if (onClick && !onZoneClick && !isPaired) {\n e.currentTarget.style.transform = 'scale(1)'\n if (!isSelected) {\n e.currentTarget.style.boxShadow = baseBoxShadow\n }\n }\n }}\n >\n {/* Context - Northwest 1x1 */}\n <div\n onClick={(e) => handleZoneClick('context', e)}\n onMouseEnter={handleZoneMouseEnter}\n onMouseLeave={handleZoneMouseLeave}\n style={getZoneStyle('context', {\n gridColumn: '1 / 2',\n gridRow: '1 / 2',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n background: 'rgba(100, 50, 150, 0.1)',\n borderRight: '1px solid rgba(0, 0, 0, 0.14)',\n borderBottom: '1px solid rgba(0, 0, 0, 0.14)',\n minWidth: 0,\n minHeight: 0,\n overflow: 'hidden',\n padding: `${zonePad}px`\n })}\n className=\"ikoneme-zone\"\n >\n {renderZoneContent('context', ikon.context)}\n </div>\n\n {/* Reference - North 1x4 */}\n <div\n onClick={(e) => handleZoneClick('reference', e)}\n onMouseEnter={handleZoneMouseEnter}\n onMouseLeave={handleZoneMouseLeave}\n style={getZoneStyle('reference', {\n gridColumn: '2 / 6',\n gridRow: '1 / 2',\n display: 'grid',\n // Same treatment as the outer grid: bounded tracks + a single full-\n // height row so each reference sub-slot has a definite size and its\n // icon (sized against it) stays put.\n gridTemplateColumns: refTracks,\n gridTemplateRows: 'minmax(0, 1fr)',\n background: 'rgba(50, 100, 200, 0.1)',\n borderRight: '1px solid rgba(0, 0, 0, 0.14)',\n borderBottom: '1px solid rgba(0, 0, 0, 0.14)',\n minWidth: 0,\n minHeight: 0,\n overflow: 'hidden'\n })}\n className=\"ikoneme-zone\"\n >\n {/* Cell 1 - Empty */}\n <div\n style={{\n minWidth: 0,\n minHeight: 0,\n overflow: 'hidden',\n borderRight: '1px solid rgba(0, 0, 0, 0.14)'\n }}\n />\n\n {/* Cell 2 - Left icon (Asterisk) */}\n <div\n style={{\n ...slotCell(zonePad),\n borderRight: '1px solid rgba(0, 0, 0, 0.14)'\n }}\n >\n {getIconUrl(ikon.reference?.left) && (\n <img\n src={getIconUrl(ikon.reference.left)}\n alt=\"Asterisk\"\n style={SLOT_IMG_STYLE}\n onError={(e) => {\n e.target.style.display = 'none'\n }}\n />\n )}\n </div>\n\n {/* Cell 3 - Right icon (Numbers) */}\n <div\n style={{\n ...slotCell(zonePad),\n borderRight: '1px solid rgba(0, 0, 0, 0.14)'\n }}\n >\n {getIconUrl(ikon.reference?.right) && (\n <img\n src={getIconUrl(ikon.reference.right)}\n alt=\"Number\"\n style={SLOT_IMG_STYLE}\n onError={(e) => {\n e.target.style.display = 'none'\n }}\n />\n )}\n </div>\n\n {/* Cell 4 - Empty */}\n <div style={{ minWidth: 0, minHeight: 0, overflow: 'hidden' }} />\n </div>\n\n {/* Role - Northeast 1x1 */}\n <div\n onClick={(e) => handleZoneClick('role', e)}\n onMouseEnter={handleZoneMouseEnter}\n onMouseLeave={handleZoneMouseLeave}\n style={getZoneStyle('role', {\n gridColumn: '6 / 7',\n gridRow: '1 / 2',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n background: 'rgba(200, 50, 50, 0.1)',\n borderBottom: '1px solid rgba(0, 0, 0, 0.14)',\n minWidth: 0,\n minHeight: 0,\n overflow: 'hidden',\n padding: `${zonePad}px`\n })}\n className=\"ikoneme-zone\"\n >\n {renderZoneContent('role', ikon.role)}\n </div>\n\n {/* Modes - West 4x1 */}\n <div\n onClick={(e) => handleZoneClick('modes', e)}\n onMouseEnter={handleZoneMouseEnter}\n onMouseLeave={handleZoneMouseLeave}\n style={getZoneStyle('modes', {\n gridColumn: '1 / 2',\n gridRow: '2 / 6',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n background: 'rgba(50, 150, 100, 0.1)',\n borderRight: '1px solid rgba(0, 0, 0, 0.14)',\n borderBottom: '1px solid rgba(0, 0, 0, 0.14)',\n minWidth: 0,\n minHeight: 0,\n overflow: 'hidden',\n padding: `${zonePad}px`\n })}\n className=\"ikoneme-zone\"\n >\n {renderZoneContent('modes', ikon.modes)}\n </div>\n\n {/* Root - Center 4x4 */}\n <div\n onClick={(e) => handleZoneClick('root', e)}\n onMouseEnter={handleZoneMouseEnter}\n onMouseLeave={handleZoneMouseLeave}\n style={getZoneStyle('root', {\n // Kept at 4 columns (not spanning into column 6) so root — and the\n // whole icon — stays horizontally centered: column 1 (modes) and\n // column 6 (below) are the same width on both sides of root.\n gridColumn: '2 / 6',\n gridRow: '2 / 6',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n background: 'rgba(150, 150, 50, 0.1)',\n borderRight: '1px solid rgba(0, 0, 0, 0.14)',\n borderBottom: '1px solid rgba(0, 0, 0, 0.14)',\n minWidth: 0,\n minHeight: 0,\n overflow: 'hidden',\n padding: `${rootPad}px`\n })}\n className=\"ikoneme-zone\"\n >\n {renderZoneContent('root', ikon.root)}\n </div>\n\n {/* East 4x1 — mirrors the modes column for symmetry. Only clickable\n (to select the border zone) inside the zone editor's preview. */}\n <div\n onClick={(e) => {\n if (onZoneClick) {\n e.stopPropagation()\n onZoneClick('border')\n }\n }}\n style={{\n gridColumn: '6 / 7',\n gridRow: '2 / 6',\n background: 'rgba(0, 0, 0, 0.05)',\n borderBottom: '1px solid rgba(0, 0, 0, 0.14)',\n minWidth: 0,\n minHeight: 0,\n overflow: 'hidden',\n boxSizing: 'border-box',\n cursor: onZoneClick ? 'pointer' : 'default'\n }}\n />\n\n {/* Tenses - South 1x6 */}\n <div\n onClick={(e) => handleZoneClick('tenses', e)}\n onMouseEnter={handleZoneMouseEnter}\n onMouseLeave={handleZoneMouseLeave}\n style={getZoneStyle('tenses', {\n gridColumn: '1 / 7',\n gridRow: '6 / 7',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n background: 'rgba(100, 100, 200, 0.1)',\n minWidth: 0,\n minHeight: 0,\n overflow: 'hidden',\n padding: `${zonePad}px`\n })}\n className=\"ikoneme-zone\"\n >\n {renderZoneContent('tenses', ikon.tenses)}\n </div>\n </div>\n\n {/* Plural border stack overlay: inset shadows are drawn under grid content, so render them on top via overlay */}\n {borderConfig?.plural && (\n <div\n aria-hidden\n style={{\n position: 'absolute',\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n width: `${renderSize}px`,\n height: `${renderSize}px`,\n borderRadius: '4px',\n pointerEvents: 'none',\n ...pluralStackStyle\n }}\n />\n )}\n </>\n )\n\n const actionButtonsRow = (\n <div\n style={{\n minHeight: `${buttonSize}px`,\n flexShrink: 0,\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center'\n }}\n aria-hidden={!buttonsVisible}\n >\n <div\n style={{\n display: 'flex',\n gap: `${buttonGap}px`,\n flexWrap: 'nowrap',\n width: `${buttonRowWidth}px`,\n justifyContent: 'center',\n opacity: buttonsVisible ? 1 : 0,\n pointerEvents: buttonsVisible ? 'auto' : 'none',\n transition: 'opacity 0.15s ease'\n }}\n >\n {onEdit && (\n <button\n onClick={(e) => {\n e.stopPropagation()\n onEdit()\n }}\n style={{\n width: `${buttonSize}px`,\n height: `${buttonSize}px`,\n borderRadius: '6px',\n border: 'none',\n background: 'rgba(0, 168, 132, 0.95)',\n cursor: 'pointer',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n transition: 'background 0.2s',\n boxShadow: '0 2px 4px rgba(0, 0, 0, 0.3)'\n }}\n onMouseEnter={(e) => (e.currentTarget.style.background = 'rgba(0, 168, 132, 1)')}\n onMouseLeave={(e) => (e.currentTarget.style.background = 'rgba(0, 168, 132, 0.95)')}\n title=\"Edit\"\n >\n <Edit2 size={isMobile ? 16 : 14} color=\"white\" />\n </button>\n )}\n {onDelete && (\n <button\n onClick={(e) => {\n e.stopPropagation()\n onDelete()\n }}\n style={{\n width: `${buttonSize}px`,\n height: `${buttonSize}px`,\n borderRadius: '6px',\n border: 'none',\n background: 'rgba(220, 38, 38, 0.95)',\n cursor: 'pointer',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n transition: 'background 0.2s',\n boxShadow: '0 2px 4px rgba(0, 0, 0, 0.3)'\n }}\n onMouseEnter={(e) => (e.currentTarget.style.background = 'rgba(220, 38, 38, 1)')}\n onMouseLeave={(e) => (e.currentTarget.style.background = 'rgba(220, 38, 38, 0.95)')}\n title=\"Delete\"\n >\n <Trash2 size={isMobile ? 16 : 14} color=\"white\" />\n </button>\n )}\n </div>\n </div>\n )\n\n if (hasButtonArea) {\n return (\n <div\n style={{\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'center',\n width: `${buttonRowWidth}px`,\n flexShrink: 0,\n gap: '6px'\n }}\n onMouseEnter={() => setIsHovered(true)}\n onMouseLeave={() => setIsHovered(false)}\n >\n <div style={{ position: 'relative', width: `${renderSize}px`, height: `${renderSize}px` }}>\n {iconBox}\n </div>\n {actionButtonsRow}\n </div>\n )\n }\n\n return (\n <div\n style={{\n position: 'relative',\n width: `${size}px`,\n height: `${size}px`,\n flexShrink: 0\n }}\n onMouseEnter={() => setIsHovered(true)}\n onMouseLeave={() => setIsHovered(false)}\n >\n {iconBox}\n </div>\n )\n}\n\nexport default Ikon\n","// Client for the IkonDB icon database (https://ikondb.iigap.com/api/docs).\n//\n// Per the IkonDB maintainer's guidance we use only the public \"legacy v1\"\n// endpoints — no token/auth. The full icon list is fetched once and cached for\n// an hour; searches are resolved against that cache instead of hitting the API\n// per keystroke.\n//\n// GET /api/ikons -> { status, data: [{ id, description, media }] }\n// GET /api/ikons/{id} -> { status, data: { id, description, media } } (also 200 for\n// not-found, with { status: 'error', data: null })\n//\n// `media` is either { origin, preview?, thumb?, svg? } or `[]` when the icon\n// has no image.\n\nexport const IKONDB_BASE_URL = 'https://ikondb.iigap.com'\n\n// Cache the full list for one hour (Michele's recommendation).\nconst LIST_TTL_MS = 60 * 60 * 1000\n\nlet listCache = null // { at: number, list: Array<{ id, name, url }> }\nlet listInFlight = null // dedupes concurrent first loads\nconst detailCache = new Map() // id -> details object (or null when not found)\n\n// `media` may be an object or `[]`; pick the best single URL from it.\nfunction pickMediaUrl(media) {\n if (!media || Array.isArray(media)) return null\n return media.origin || media.preview || media.thumb || media.svg || null\n}\n\nfunction normalizeMedia(media) {\n if (!media || Array.isArray(media)) return {}\n const { origin = null, preview = null, thumb = null, svg = null } = media\n return { origin, preview, thumb, svg }\n}\n\nasync function fetchList(baseUrl) {\n const res = await fetch(`${baseUrl}/api/ikons`)\n if (!res.ok) throw new Error(`IkonDB GET /api/ikons -> ${res.status}`)\n const body = await res.json()\n const rows = Array.isArray(body?.data) ? body.data : []\n return rows\n .map((row) => ({\n id: row.id,\n name: row.description || '',\n url: pickMediaUrl(row.media)\n }))\n .filter((item) => item.url) // drop icons with no image\n}\n\n// The full icon list, served from cache while it is younger than an hour.\nexport async function getIkonList({ baseUrl = IKONDB_BASE_URL } = {}) {\n if (listCache && Date.now() - listCache.at < LIST_TTL_MS) return listCache.list\n if (listInFlight) return listInFlight\n listInFlight = fetchList(baseUrl)\n .then((list) => {\n listCache = { at: Date.now(), list }\n return list\n })\n .finally(() => {\n listInFlight = null\n })\n return listInFlight\n}\n\n// Case-insensitive substring match on the icon name/description.\nexport async function searchIkons(query, { baseUrl = IKONDB_BASE_URL, limit = 20 } = {}) {\n const q = (query || '').trim().toLowerCase()\n if (!q) return []\n const list = await getIkonList({ baseUrl })\n const matches = []\n for (const item of list) {\n if (item.name.toLowerCase().includes(q)) {\n matches.push(item)\n if (matches.length >= limit) break\n }\n }\n return matches\n}\n\n// Richer media set (origin/preview/thumb/svg) for one icon. Cached per id for\n// the session. Returns null when the icon does not exist.\nexport async function getIkonDetails(id, { baseUrl = IKONDB_BASE_URL } = {}) {\n if (id == null) return null\n if (detailCache.has(id)) return detailCache.get(id)\n const res = await fetch(`${baseUrl}/api/ikons/${encodeURIComponent(id)}`)\n if (!res.ok) throw new Error(`IkonDB GET /api/ikons/${id} -> ${res.status}`)\n const body = await res.json()\n if (body?.status !== 'success' || !body?.data) {\n detailCache.set(id, null)\n return null\n }\n const media = normalizeMedia(body.data.media)\n const details = {\n id: body.data.id,\n name: body.data.description || '',\n url: media.origin || media.preview || media.thumb || media.svg || null,\n ...media\n }\n detailCache.set(id, details)\n return details\n}\n\n// Historical `searchRoot` contract: (query) => Promise<{ id, name, url }[]>.\n// Used as the default when no `searchRoot` prop is passed to the editor.\nexport async function defaultSearchRoot(query) {\n try {\n return await searchIkons(query)\n } catch {\n return []\n }\n}\n\n// Test/host hook: drop the in-memory caches.\nexport function clearIkonDbCache() {\n listCache = null\n listInFlight = null\n detailCache.clear()\n}\n","import React, { useState, useEffect, useCallback } from 'react'\nimport { ArrowLeft, Search } from 'lucide-react'\nimport { ZONE_CONFIG, BORDER_CONFIG, getIconConfig, getIconUrl } from './ikonSchema'\nimport { defaultSearchRoot, getIkonDetails } from './ikonDb'\nimport Ikon from './Ikon'\n\n// Default root-icon search: the public IkonDB database (see ./ikonDb.js). Pass a\n// `searchRoot` prop to <IkonEditor> or <Ikoneme mode=\"edit\"> to point this at a\n// different backend instead.\nexport { defaultSearchRoot }\n\nconst ZONE_INFO = {\n context: { name: 'Context', description: 'Northwest - Contextual information' },\n reference: { name: 'Reference', description: 'North - Reference point' },\n role: { name: 'Role', description: 'Northeast - Role indicator' },\n modes: { name: 'Modes', description: 'West - Mode settings' },\n root: { name: 'Root', description: 'Center - Core meaning' },\n tenses: { name: 'Tenses', description: 'South - Time/tense indicator' },\n border: {\n name: 'Border',\n description: 'Grammatical category — singular (one border) or plural (stacked borders)'\n }\n}\n\nconst ROOT_SEARCH_MIN_CHARS = 1\nconst ROOT_SEARCH_DEBOUNCE_MS = 300\nconst ROOT_SEARCH_RESULTS_COUNT = 10\nconst ROOT_SEARCH_COLS = 5\n\n// Full-screen editor for a single ikon. Used internally by <Ikoneme mode=\"edit\">,\n// but can also be used standalone.\nfunction IkonEditor({ ikon, onSave, onClose, searchRoot = defaultSearchRoot }) {\n const [editingIcon, setEditingIcon] = useState({\n ...ikon,\n reference: ikon.reference ? { ...ikon.reference } : { left: null, right: null },\n rootName: ikon.rootName ?? null\n })\n const [selectedZone, setSelectedZone] = useState('root')\n const [rootSearchQuery, setRootSearchQuery] = useState('')\n const [rootSearchResults, setRootSearchResults] = useState([])\n const [rootSearchLoading, setRootSearchLoading] = useState(false)\n\n const handleZoneChange = (zone, url) => {\n const config = getIconConfig(zone === 'reference' ? 'reference' : zone, url)\n const iconObj = config ? { name: config.tooltip, url: config.url } : { name: '', url }\n if (zone === 'reference') {\n const asteriskUrl = ZONE_CONFIG.reference[0].url\n if (url === asteriskUrl) {\n setEditingIcon((prev) => ({\n ...prev,\n reference: {\n ...prev.reference,\n left:\n getIconUrl(prev.reference?.left) === asteriskUrl\n ? null\n : { name: ZONE_CONFIG.reference[0].tooltip, url: asteriskUrl }\n }\n }))\n } else {\n setEditingIcon((prev) => ({\n ...prev,\n reference: {\n ...prev.reference,\n right: getIconUrl(prev.reference?.right) === url ? null : iconObj\n }\n }))\n }\n } else {\n setEditingIcon((prev) => ({\n ...prev,\n [zone]: getIconUrl(prev[zone]) === url ? null : iconObj\n }))\n }\n }\n\n const handleZoneSelect = (zone) => {\n setSelectedZone(zone)\n }\n\n const handleBorderChange = (borderId) => {\n setEditingIcon((prev) => ({\n ...prev,\n border: borderId == null ? null : prev.border === borderId ? null : borderId\n }))\n }\n\n // Debounced icon search when root zone is selected and query has enough chars\n useEffect(() => {\n if (selectedZone !== 'root' || rootSearchQuery.length < ROOT_SEARCH_MIN_CHARS) {\n setRootSearchResults([])\n return\n }\n const t = setTimeout(async () => {\n setRootSearchLoading(true)\n try {\n const list = await searchRoot(rootSearchQuery.trim())\n setRootSearchResults((list || []).slice(0, ROOT_SEARCH_RESULTS_COUNT))\n } catch {\n setRootSearchResults([])\n } finally {\n setRootSearchLoading(false)\n }\n }, ROOT_SEARCH_DEBOUNCE_MS)\n return () => clearTimeout(t)\n }, [selectedZone, rootSearchQuery, searchRoot])\n\n const handleRootSearchIconSelect = useCallback(async (icon) => {\n // Reflect the pick immediately with what the search result already carries…\n setEditingIcon((prev) => ({\n ...prev,\n root: { id: icon.id ?? null, name: icon.name, url: icon.url },\n rootName: icon.name\n }))\n // …then enrich it with the fuller media set (svg/thumb/preview) from the\n // per-icon endpoint, so the ikon representation can use a scalable asset.\n if (icon.id == null) return\n try {\n const details = await getIkonDetails(icon.id)\n if (!details) return\n setEditingIcon((prev) => {\n // Ignore a late response if the user has since picked another root.\n if (prev.root?.id !== icon.id) return prev\n return {\n ...prev,\n root: {\n id: details.id,\n name: icon.name,\n url: details.origin || icon.url,\n svg: details.svg || undefined,\n thumb: details.thumb || undefined,\n preview: details.preview || undefined\n },\n rootName: icon.name\n }\n })\n } catch {\n // Keep the basic { id, name, url } already set.\n }\n }, [])\n\n const handleSave = () => {\n onSave(editingIcon)\n onClose()\n }\n\n return (\n <div\n style={{\n position: 'fixed',\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n background: 'var(--ikoneme-background)',\n display: 'flex',\n flexDirection: 'column',\n zIndex: 1000,\n overflow: 'hidden'\n }}\n >\n {/* Header */}\n <div\n style={{\n padding: '16px 20px',\n background: 'var(--ikoneme-panel-bg)',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between',\n gap: '12px'\n }}\n >\n <div\n style={{\n display: 'flex',\n alignItems: 'center',\n gap: '12px',\n flex: 1\n }}\n >\n <button\n onClick={onClose}\n style={{\n background: 'transparent',\n border: 'none',\n cursor: 'pointer',\n padding: '4px',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center'\n }}\n title=\"Back\"\n >\n <ArrowLeft color=\"var(--ikoneme-text-primary)\" size={24} />\n </button>\n <h2\n style={{\n color: 'var(--ikoneme-text-primary)',\n fontSize: 'clamp(18px, 4vw, 20px)',\n fontWeight: '600',\n margin: 0\n }}\n >\n Edit Ikon\n </h2>\n </div>\n <button\n onClick={handleSave}\n style={{\n padding: '10px 24px',\n background: 'var(--ikoneme-primary)',\n border: 'none',\n borderRadius: '8px',\n color: 'white',\n cursor: 'pointer',\n fontSize: 'clamp(13px, 3vw, 14px)',\n fontWeight: '500',\n transition: 'background 0.2s',\n whiteSpace: 'nowrap'\n }}\n onMouseEnter={(e) => (e.currentTarget.style.background = 'var(--ikoneme-primary-dark)')}\n onMouseLeave={(e) => (e.currentTarget.style.background = 'var(--ikoneme-primary)')}\n >\n Save\n </button>\n </div>\n\n {/* Content Area */}\n <div\n style={{\n flex: 1,\n overflowY: 'auto',\n padding: '20px',\n maxWidth: '800px',\n width: '100%',\n margin: '0 auto',\n WebkitOverflowScrolling: 'touch'\n }}\n >\n {/* Preview - Larger and Clickable */}\n <div\n style={{\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'center',\n marginBottom: '24px',\n gap: '12px'\n }}\n >\n <p\n style={{\n color: 'var(--ikoneme-text-secondary)',\n fontSize: 'clamp(12px, 3vw, 13px)',\n textAlign: 'center'\n }}\n >\n Click on a zone or the border area to edit it\n </p>\n <Ikon\n ikon={editingIcon}\n size={280}\n onZoneClick={handleZoneSelect}\n selectedZone={selectedZone}\n />\n <div\n style={{\n color: 'var(--ikoneme-text-primary)',\n fontSize: 'clamp(14px, 3.5vw, 16px)',\n fontWeight: '500',\n textAlign: 'center',\n padding: '8px 16px',\n background: 'var(--ikoneme-primary)',\n borderRadius: '20px'\n }}\n >\n {ZONE_INFO[selectedZone].name}\n </div>\n </div>\n\n {/* Icon Picker */}\n <div style={{ marginBottom: '20px' }}>\n <h3\n style={{\n color: 'var(--ikoneme-text-primary)',\n fontSize: 'clamp(14px, 3.5vw, 16px)',\n marginBottom: '8px',\n fontWeight: '500'\n }}\n >\n {selectedZone === 'border'\n ? 'Select Border Type'\n : 'Choose Icon for: ' + ZONE_INFO[selectedZone].name}\n </h3>\n\n {selectedZone === 'border' ? (\n <p\n style={{\n color: 'var(--ikoneme-text-secondary)',\n fontSize: 'clamp(11px, 2.5vw, 12px)',\n marginBottom: '12px'\n }}\n >\n {ZONE_INFO.border.description}. Click the same border again to clear.\n </p>\n ) : selectedZone === 'reference' ? (\n <p\n style={{\n color: 'var(--ikoneme-text-secondary)',\n fontSize: 'clamp(11px, 2.5vw, 12px)',\n marginBottom: '12px'\n }}\n >\n Click <strong>Asterisk</strong> to toggle left cell. Click any <strong>number</strong>{' '}\n to toggle right cell.\n </p>\n ) : selectedZone === 'root' ? (\n <p\n style={{\n color: 'var(--ikoneme-text-secondary)',\n fontSize: 'clamp(11px, 2.5vw, 12px)',\n marginBottom: '12px'\n }}\n >\n Search for an icon below. The icon's name is stored with the ikon.\n </p>\n ) : (\n <p\n style={{\n color: 'var(--ikoneme-text-secondary)',\n fontSize: 'clamp(11px, 2.5vw, 12px)',\n marginBottom: '12px'\n }}\n >\n {ZONE_INFO[selectedZone].description}. Click the same icon again to clear.\n </p>\n )}\n\n {selectedZone === 'border' ? (\n <>\n {/* No border */}\n <div style={{ marginBottom: '12px' }}>\n <button\n onClick={() => handleBorderChange(null)}\n style={{\n width: '100%',\n padding: '10px 14px',\n background:\n editingIcon.border == null\n ? 'var(--ikoneme-primary)'\n : 'var(--ikoneme-surface)',\n border: `2px solid ${editingIcon.border == null ? 'var(--ikoneme-primary-dark)' : 'var(--ikoneme-border)'}`,\n borderRadius: '8px',\n color: editingIcon.border == null ? 'white' : 'var(--ikoneme-text-primary)',\n fontSize: '14px',\n cursor: 'pointer',\n textAlign: 'left',\n fontWeight: editingIcon.border == null ? '600' : '400',\n transition: 'all 0.2s'\n }}\n >\n No border\n </button>\n </div>\n\n {/* Singular borders */}\n <div style={{ marginBottom: '8px' }}>\n <span\n style={{\n color: 'var(--ikoneme-text-secondary)',\n fontSize: '12px',\n fontWeight: '600'\n }}\n >\n Singular\n </span>\n </div>\n <div\n style={{\n display: 'grid',\n gridTemplateColumns: 'repeat(3, 1fr)',\n gap: '10px',\n marginBottom: '16px'\n }}\n >\n {BORDER_CONFIG.filter((b) => !b.plural).map((border) => {\n const isSelected = editingIcon.border === border.id\n const thickness = 5\n return (\n <button\n key={border.id}\n onClick={() => handleBorderChange(border.id)}\n title={border.label}\n style={{\n padding: '8px',\n background: isSelected\n ? 'var(--ikoneme-primary)'\n : 'var(--ikoneme-surface)',\n border: `2px solid ${isSelected ? 'var(--ikoneme-primary-dark)' : 'var(--ikoneme-border)'}`,\n borderRadius: '8px',\n cursor: 'pointer',\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'center',\n gap: '6px',\n transition: 'all 0.2s',\n position: 'relative'\n }}\n onMouseEnter={(e) => {\n if (!isSelected) e.currentTarget.style.background = 'var(--ikoneme-hover)'\n }}\n onMouseLeave={(e) => {\n if (!isSelected) e.currentTarget.style.background = 'var(--ikoneme-surface)'\n }}\n >\n <div\n style={{\n border: `${thickness}px solid ${border.color}`,\n borderRadius: '4px',\n width: '64px',\n height: '64px',\n flexShrink: 0\n }}\n />\n <span\n style={{\n fontSize: '11px',\n color: isSelected ? 'white' : 'var(--ikoneme-text-primary)',\n fontWeight: isSelected ? '600' : '400'\n }}\n >\n {border.label}\n </span>\n <div\n className=\"ikon-tooltip\"\n style={{\n position: 'absolute',\n bottom: '100%',\n left: '50%',\n transform: 'translateX(-50%)',\n background: 'rgba(0,0,0,0.95)',\n color: 'white',\n padding: '6px 10px',\n borderRadius: '6px',\n fontSize: '11px',\n whiteSpace: 'nowrap',\n opacity: 0,\n pointerEvents: 'none',\n transition: 'opacity 0.2s',\n marginBottom: '8px',\n zIndex: 100\n }}\n >\n {border.label}\n </div>\n </button>\n )\n })}\n </div>\n\n {/* Plural borders */}\n <div style={{ marginBottom: '8px' }}>\n <span\n style={{\n color: 'var(--ikoneme-text-secondary)',\n fontSize: '12px',\n fontWeight: '600'\n }}\n >\n Plural\n </span>\n </div>\n <div style={{ display: 'grid', gridTemplateColumns: 'repeat(3, 1fr)', gap: '10px' }}>\n {BORDER_CONFIG.filter((b) => b.plural).map((border) => {\n const isSelected = editingIcon.border === border.id\n const thickness = 5\n const pluralStackStyle = {\n boxShadow: [\n `inset -${thickness}px 0 0 ${border.color}`,\n `inset -${thickness * 2}px 0 0 ${border.color}`,\n `inset -${thickness * 3}px 0 0 ${border.color}`,\n `inset 0 -${thickness}px 0 ${border.color}`,\n `inset 0 -${thickness * 2}px 0 ${border.color}`,\n `inset 0 -${thickness * 3}px 0 ${border.color}`\n ].join(', ')\n }\n return (\n <button\n key={border.id}\n onClick={() => handleBorderChange(border.id)}\n title={border.label}\n style={{\n padding: '8px',\n background: isSelected\n ? 'var(--ikoneme-primary)'\n : 'var(--ikoneme-surface)',\n border: `2px solid ${isSelected ? 'var(--ikoneme-primary-dark)' : 'var(--ikoneme-border)'}`,\n borderRadius: '8px',\n cursor: 'pointer',\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'center',\n gap: '6px',\n transition: 'all 0.2s',\n position: 'relative'\n }}\n onMouseEnter={(e) => {\n if (!isSelected) e.currentTarget.style.background = 'var(--ikoneme-hover)'\n }}\n onMouseLeave={(e) => {\n if (!isSelected) e.currentTarget.style.background = 'var(--ikoneme-surface)'\n }}\n >\n <div\n style={{\n border: `${thickness}px solid ${border.color}`,\n borderRadius: '4px',\n width: '64px',\n height: '64px',\n flexShrink: 0,\n ...pluralStackStyle\n }}\n />\n <span\n style={{\n fontSize: '11px',\n color: isSelected ? 'white' : 'var(--ikoneme-text-primary)',\n fontWeight: isSelected ? '600' : '400'\n }}\n >\n {border.label}\n </span>\n <div\n className=\"ikon-tooltip\"\n style={{\n position: 'absolute',\n bottom: '100%',\n left: '50%',\n transform: 'translateX(-50%)',\n background: 'rgba(0,0,0,0.95)',\n color: 'white',\n padding: '6px 10px',\n borderRadius: '6px',\n fontSize: '11px',\n whiteSpace: 'nowrap',\n opacity: 0,\n pointerEvents: 'none',\n transition: 'opacity 0.2s',\n marginBottom: '8px',\n zIndex: 100\n }}\n >\n {border.label}\n </div>\n </button>\n )\n })}\n </div>\n </>\n ) : selectedZone === 'root' ? (\n <>\n <div\n style={{\n display: 'flex',\n alignItems: 'center',\n gap: '8px',\n marginBottom: '16px',\n padding: '10px 12px',\n background: 'var(--ikoneme-surface)',\n borderRadius: '8px',\n border: '1px solid var(--ikoneme-border)'\n }}\n >\n <Search size={18} color=\"var(--ikoneme-text-secondary)\" />\n <input\n type=\"text\"\n value={rootSearchQuery}\n onChange={(e) => setRootSearchQuery(e.target.value)}\n placeholder=\"Search icons...\"\n style={{\n flex: 1,\n border: 'none',\n background: 'transparent',\n color: 'var(--ikoneme-text-primary)',\n fontSize: '14px',\n outline: 'none'\n }}\n />\n </div>\n {rootSearchLoading && (\n <p\n style={{\n color: 'var(--ikoneme-text-secondary)',\n fontSize: '13px',\n marginBottom: '12px'\n }}\n >\n Searching…\n </p>\n )}\n <div\n style={{\n display: 'grid',\n gridTemplateColumns: `repeat(${ROOT_SEARCH_COLS}, 1fr)`,\n gap: '10px'\n }}\n >\n {rootSearchResults.map((icon, idx) => {\n const isSelected = getIconUrl(editingIcon.root) === icon.url\n return (\n <button\n key={`${icon.url}-${idx}`}\n onClick={() => handleRootSearchIconSelect(icon)}\n title={icon.name}\n style={{\n padding: '12px',\n background: isSelected\n ? 'var(--ikoneme-primary)'\n : 'var(--ikoneme-surface)',\n border: '2px solid',\n borderColor: isSelected\n ? 'var(--ikoneme-primary-dark)'\n : 'var(--ikoneme-border)',\n borderRadius: '8px',\n cursor: 'pointer',\n transition: 'all 0.2s',\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'center',\n justifyContent: 'center',\n aspectRatio: '1',\n position: 'relative',\n minHeight: '70px',\n minWidth: '70px'\n }}\n onMouseEnter={(e) => {\n e.currentTarget.style.transform = 'scale(1.05)'\n if (!isSelected) e.currentTarget.style.background = 'var(--ikoneme-hover)'\n }}\n onMouseLeave={(e) => {\n e.currentTarget.style.transform = 'scale(1)'\n if (!isSelected) e.currentTarget.style.background = 'var(--ikoneme-surface)'\n }}\n >\n <div\n style={{\n width: '100%',\n height: '100%',\n background: 'white',\n borderRadius: '4px',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n padding: '4px'\n }}\n >\n <img\n src={icon.url}\n alt={icon.name}\n style={{\n maxWidth: '100%',\n maxHeight: '100%',\n width: '100%',\n height: '100%',\n objectFit: 'contain'\n }}\n onError={(e) => {\n e.target.style.display = 'none'\n }}\n />\n </div>\n <div\n className=\"ikon-tooltip\"\n style={{\n position: 'absolute',\n bottom: '100%',\n left: '50%',\n transform: 'translateX(-50%)',\n background: 'rgba(0, 0, 0, 0.95)',\n color: 'white',\n padding: '6px 10px',\n borderRadius: '6px',\n fontSize: '11px',\n whiteSpace: 'nowrap',\n opacity: 0,\n pointerEvents: 'none',\n transition: 'opacity 0.2s',\n marginBottom: '8px',\n zIndex: 100\n }}\n >\n {icon.name}\n </div>\n </button>\n )\n })}\n </div>\n </>\n ) : (\n <div\n style={{\n display: 'grid',\n gridTemplateColumns:\n ZONE_CONFIG[selectedZone].length <= 3\n ? 'repeat(3, 1fr)'\n : 'repeat(auto-fit, minmax(90px, 1fr))',\n gap: '10px'\n }}\n >\n {ZONE_CONFIG[selectedZone].map((iconConfig, idx) => {\n let isSelected = false\n\n if (selectedZone === 'reference') {\n const asteriskUrl = ZONE_CONFIG.reference[0].url\n if (iconConfig.url === asteriskUrl) {\n isSelected = getIconUrl(editingIcon.reference?.left) === asteriskUrl\n } else {\n isSelected = getIconUrl(editingIcon.reference?.right) === iconConfig.url\n }\n } else {\n isSelected = getIconUrl(editingIcon[selectedZone]) === iconConfig.url\n }\n\n return (\n <button\n key={idx}\n onClick={() => handleZoneChange(selectedZone, iconConfig.url)}\n title={iconConfig.tooltip}\n style={{\n padding: '12px',\n background: isSelected ? 'var(--ikoneme-primary)' : 'var(--ikoneme-surface)',\n border: '2px solid',\n borderColor: isSelected\n ? 'var(--ikoneme-primary-dark)'\n : 'var(--ikoneme-border)',\n borderRadius: '8px',\n cursor: 'pointer',\n transition: 'all 0.2s',\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'center',\n justifyContent: 'center',\n aspectRatio: '1',\n position: 'relative',\n minHeight: '70px',\n minWidth: '70px'\n }}\n onMouseEnter={(e) => {\n e.currentTarget.style.transform = 'scale(1.05)'\n if (!isSelected) {\n e.currentTarget.style.background = 'var(--ikoneme-hover)'\n }\n }}\n onMouseLeave={(e) => {\n e.currentTarget.style.transform = 'scale(1)'\n if (!isSelected) {\n e.currentTarget.style.background = 'var(--ikoneme-surface)'\n }\n }}\n >\n {/* Render image for all zones with white background */}\n <div\n style={{\n width: '100%',\n height: '100%',\n background: 'white',\n borderRadius: '4px',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n padding: '4px'\n }}\n >\n <img\n src={iconConfig.url}\n alt={iconConfig.tooltip}\n style={{\n maxWidth: '100%',\n maxHeight: '100%',\n width: '100%',\n height: '100%',\n objectFit: 'contain'\n }}\n />\n </div>\n\n {/* Tooltip on hover */}\n <div\n style={{\n position: 'absolute',\n bottom: '100%',\n left: '50%',\n transform: 'translateX(-50%)',\n background: 'rgba(0, 0, 0, 0.95)',\n color: 'white',\n padding: '6px 10px',\n borderRadius: '6px',\n fontSize: '11px',\n whiteSpace: 'nowrap',\n opacity: 0,\n pointerEvents: 'none',\n transition: 'opacity 0.2s',\n marginBottom: '8px',\n zIndex: 100\n }}\n className=\"ikon-tooltip\"\n >\n {iconConfig.tooltip}\n </div>\n </button>\n )\n })}\n </div>\n )}\n </div>\n\n <style>{`\n button:hover .ikon-tooltip {\n opacity: 1 !important;\n }\n `}</style>\n </div>\n </div>\n )\n}\n\nexport default IkonEditor\n","import React from 'react'\nimport { X } from 'lucide-react'\nimport Ikon from './Ikon'\n\n// Full-screen \"lightbox\" shown when zoom is enabled on <Ikoneme> and the\n// viewer clicks an ikon: a bigger, read-only render of that single ikon so\n// its zones/border are easy to make out.\nfunction IkonZoomView({ ikon, size = 320, onClose }) {\n const clampedSize =\n typeof window !== 'undefined'\n ? Math.max(120, Math.min(size, window.innerWidth - 48, window.innerHeight - 156))\n : size\n\n return (\n <div\n role=\"dialog\"\n aria-modal=\"true\"\n aria-label=\"Zoomed ikon\"\n onClick={onClose}\n style={{\n position: 'fixed',\n inset: 0,\n background: 'rgba(0, 0, 0, 0.75)',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n zIndex: 1000,\n padding: '24px'\n }}\n >\n <div\n onClick={(e) => e.stopPropagation()}\n style={{\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'center',\n gap: '32px',\n maxWidth: '100%'\n }}\n >\n <Ikon ikon={ikon} size={clampedSize} />\n <button\n onClick={onClose}\n style={{\n width: '40px',\n height: '40px',\n borderRadius: '50%',\n border: 'none',\n background: 'var(--ikoneme-panel-bg)',\n color: 'var(--ikoneme-text-primary)',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n cursor: 'pointer'\n }}\n title=\"Close\"\n aria-label=\"Close\"\n >\n <X size={20} />\n </button>\n </div>\n </div>\n )\n}\n\nexport default IkonZoomView\n","// Default values for the CSS custom properties used by ikoneme-lib components.\n// These are applied as inline styles on the library's wrapper elements, so the\n// library renders correctly with zero setup. A host app can override any of\n// them by passing a `theme` prop (see <Ikoneme theme={{ '--ikoneme-primary': '#123456' }} />)\n// or by redefining the same custom properties on an ancestor element.\nexport const DEFAULT_THEME = {\n '--ikoneme-primary': '#00a884',\n '--ikoneme-primary-dark': '#008069',\n '--ikoneme-background': '#0c0e12',\n '--ikoneme-panel-bg': '#181b20',\n '--ikoneme-surface': '#080a0e',\n '--ikoneme-border': '#2a2e36',\n '--ikoneme-text-primary': '#e9edef',\n '--ikoneme-text-secondary': '#8696a0',\n '--ikoneme-hover': '#2a2e36'\n}\n","import React, { useState } from 'react'\nimport Ikon from './Ikon'\nimport IkonEditor from './IkonEditor'\nimport IkonZoomView from './IkonZoomView'\nimport { DEFAULT_THEME } from './theme'\n\n/**\n * Renders an ikoneme — an ordered list of ikons — from its rich JSON payload,\n * exactly as produced by the KomunIKON NLP pipeline / used in ikonchat:\n *\n * [{ context, reference: { left, right }, role, modes, root, rootName, tenses, border }, ...]\n *\n * Two modes:\n * - \"view\" (default): read-only rendering, suitable for a chat/messaging timeline.\n * - \"edit\": adds hover/tap edit & delete controls per ikon and opens the full\n * ikon editor on edit, calling `onChange` with the updated ikoneme.\n *\n * Zoom: when `zoom` is true (default), clicking any ikon opens a large,\n * read-only view of it — independent of `mode` and of `onIkonClick`. When\n * `zoom` is false, clicking an ikon does nothing by itself (the click is\n * ignored for zoom purposes; `onIkonClick`, if provided, still fires in\n * \"view\" mode).\n */\nfunction Ikoneme({\n ikons = [],\n mode = 'view',\n size = 64,\n gap = 6,\n zoom = true,\n zoomSize = 320,\n onChange,\n onIkonClick,\n searchRoot,\n theme,\n className,\n style\n}) {\n const [editingIndex, setEditingIndex] = useState(null)\n const [zoomedIndex, setZoomedIndex] = useState(null)\n const isEdit = mode === 'edit'\n\n const handleDelete = (index) => {\n if (!onChange) return\n onChange(ikons.filter((_, i) => i !== index))\n }\n\n const handleSave = (updatedIkon) => {\n if (editingIndex != null && onChange) {\n onChange(ikons.map((ikon, i) => (i === editingIndex ? updatedIkon : ikon)))\n }\n setEditingIndex(null)\n }\n\n const handleIkonClick = (ikon, index) => {\n if (!isEdit && onIkonClick) onIkonClick(ikon, index)\n if (zoom) setZoomedIndex(index)\n }\n\n const themeVars = { ...DEFAULT_THEME, ...theme }\n const clickable = zoom || (!isEdit && !!onIkonClick)\n\n return (\n <div\n className={['ikoneme', className].filter(Boolean).join(' ')}\n style={{\n display: 'flex',\n flexWrap: 'wrap',\n alignItems: 'center',\n gap: `${gap}px`,\n ...themeVars,\n ...style\n }}\n >\n {ikons.map((ikon, index) => (\n <Ikon\n key={index}\n ikon={ikon}\n size={size}\n onClick={clickable ? () => handleIkonClick(ikon, index) : undefined}\n onEdit={isEdit ? () => setEditingIndex(index) : undefined}\n onDelete={isEdit && onChange ? () => handleDelete(index) : undefined}\n />\n ))}\n\n {isEdit && editingIndex != null && ikons[editingIndex] && (\n <div style={themeVars}>\n <IkonEditor\n ikon={ikons[editingIndex]}\n searchRoot={searchRoot}\n onSave={handleSave}\n onClose={() => setEditingIndex(null)}\n />\n </div>\n )}\n\n {zoom && zoomedIndex != null && ikons[zoomedIndex] && (\n <div style={themeVars}>\n <IkonZoomView\n ikon={ikons[zoomedIndex]}\n size={zoomSize}\n onClose={() => setZoomedIndex(null)}\n />\n </div>\n )}\n </div>\n )\n}\n\nexport default Ikoneme\n"],"names":["defaultAttributes","toKebabCase","string","createLucideIcon","iconName","iconNode","Component","forwardRef","color","size","strokeWidth","absoluteStrokeWidth","className","children","rest","ref","createElement","tag","attrs","ArrowLeft","Pen","Search","Trash2","X","ZONE_CONFIG","BORDER_CONFIG","BORDER_IDS","b","VALID_BORDER_SET","getBorderConfig","borderId","getIconConfig","zone","url","_a","config","getIconUrlByIndex","index","_b","getIconUrl","value","getIconDisplayUrl","toIconObj","createDefaultIkon","normalizeIkon","icon","contextConfig","roleConfig","modesConfig","rootConfig","tensesConfig","border","_c","_d","_e","_f","_g","normalizeIkoneme","ikons","hashString","str","hash","i","char","SeededRandom","seed","m","min","max","generateIkonemeFromText","text","words","word","ikon","wordHash","rng","hasAsterisk","numberIndex","singularBorders","SLOT_IMG_STYLE","slotCell","pad","useIsMobile","breakpoint","isMobile","setIsMobile","useState","useEffect","mql","handler","Ikon","onClick","onZoneClick","selectedZone","isSelected","isPaired","onEdit","onDelete","hideActionOverlay","isHovered","setIsHovered","borderConfig","handleZoneClick","e","handleZoneMouseEnter","handleZoneMouseLeave","getZoneStyle","baseStyle","zoneSelected","renderZoneContent","zoneValue","iconConfig","label","jsx","hasButtonArea","buttonSize","buttonGap","buttonRowWidth","iconSizePx","buttonsVisible","renderSize","borderWidth","framePad","zonePad","rootPad","edgeFr","gridTracks","refTracks","baseBorderStyle","pluralStackStyle","cardBg","singularStackShadow","baseBoxShadow","hoverBoxShadow","iconBox","jsxs","Fragment","actionButtonsRow","Edit2","IKONDB_BASE_URL","LIST_TTL_MS","listCache","listInFlight","detailCache","pickMediaUrl","media","normalizeMedia","origin","preview","thumb","svg","fetchList","baseUrl","res","body","row","item","getIkonList","list","searchIkons","query","limit","q","matches","getIkonDetails","id","details","defaultSearchRoot","clearIkonDbCache","ZONE_INFO","ROOT_SEARCH_MIN_CHARS","ROOT_SEARCH_DEBOUNCE_MS","ROOT_SEARCH_RESULTS_COUNT","ROOT_SEARCH_COLS","IkonEditor","onSave","onClose","searchRoot","editingIcon","setEditingIcon","setSelectedZone","rootSearchQuery","setRootSearchQuery","rootSearchResults","setRootSearchResults","rootSearchLoading","setRootSearchLoading","handleZoneChange","iconObj","asteriskUrl","prev","handleZoneSelect","handleBorderChange","t","handleRootSearchIconSelect","useCallback","handleSave","thickness","idx","IkonZoomView","clampedSize","DEFAULT_THEME","Ikoneme","mode","gap","zoom","zoomSize","onChange","onIkonClick","theme","style","editingIndex","setEditingIndex","zoomedIndex","setZoomedIndex","isEdit","handleDelete","_","updatedIkon","handleIkonClick","themeVars","clickable"],"mappings":"wIAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAOA,IAAIA,GAAoB,CACtB,MAAO,6BACP,MAAO,GACP,OAAQ,GACR,QAAS,YACT,KAAM,OACN,OAAQ,eACR,YAAa,EACb,cAAe,QACf,eAAgB,OAClB,ECjBA;AAAA;AAAA;AAAA;AAAA;AAAA,GAUA,MAAMC,GAAeC,GAAWA,EAAO,QAAQ,qBAAsB,OAAO,EAAE,YAAW,EAAG,KAAI,EAC1FC,EAAmB,CAACC,EAAUC,IAAa,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EAC1F,CACE,QAAS,UACT,IAAK,mEACX,EACI,CACE,QAAS,YACT,IAAK,qEACX,EACI,CACE,QAAS,aACT,IAAK,2FACX,CACA,EACE,MAAO,CACL,CAAE,QAAS,SAAU,IAAK,kEAAkE,EAC5F,CAAE,QAAS,QAAS,IAAK,iEAAiE,CAC9F,EAGE,KAAM,CACJ,CACE,QAAS,eACT,IAAK,kEACX,EACI,CACE,QAAS,kBACT,IAAK,kEACX,EACI,CACE,QAAS,iBACT,IAAK,kEACX,EACI,CACE,QAAS,WACT,IAAK,kEACX,EACI,CACE,QAAS,cACT,IAAK,kEACX,EACI,CACE,QAAS,gBACT,IAAK,kEACX,EACI,CACE,QAAS,cACT,IAAK,kEACX,CACA,EACE,OAAQ,CACN,CACE,QAAS,OACT,IAAK,6EACX,EACI,CACE,QAAS,OACT,IAAK,6EACX,EACI,CACE,QAAS,OACT,IAAK,6EACX,EACI,CACE,QAAS,QACT,IAAK,8EACX,EACI,CACE,QAAS,QACT,IAAK,8EACX,EACI,CACE,QAAS,QACT,IAAK,8EACX,EACI,CACE,QAAS,KACT,IAAK,2EACX,EACI,CACE,QAAS,QACT,IAAK,8EACX,EACI,CACE,QAAS,QACT,IAAK,8EACX,EACI,CACE,QAAS,SACT,IAAK,+EACX,EACI,CACE,QAAS,QACT,IAAK,8EACX,EACI,CACE,QAAS,SACT,IAAK,+EACX,EACI,CACE,QAAS,KACT,IAAK,2EACX,EACI,CACE,QAAS,QACT,IAAK,8EACX,EACI,CACE,QAAS,QACT,IAAK,8EACX,EACI,CACE,QAAS,SACT,IAAK,+EACX,EACI,CACE,QAAS,QACT,IAAK,8EACX,EACI,CACE,QAAS,SACT,IAAK,+EACX,EACI,CACE,QAAS,KACT,IAAK,2EACX,CACA,CACA,EAGaC,EAAgB,CAC3B,CAAE,GAAI,OAAQ,MAAO,OAAQ,MAAO,UAAW,OAAQ,EAAK,EAC5D,CAAE,GAAI,OAAQ,MAAO,OAAQ,MAAO,UAAW,OAAQ,EAAK,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IR","x_google_ignoreList":[0,1,2,3,4,5,6]}
|
|
1
|
+
{"version":3,"file":"ikoneme-lib.cjs","sources":["../node_modules/lucide-react/dist/esm/defaultAttributes.js","../node_modules/lucide-react/dist/esm/createLucideIcon.js","../node_modules/lucide-react/dist/esm/icons/arrow-left.js","../node_modules/lucide-react/dist/esm/icons/pen.js","../node_modules/lucide-react/dist/esm/icons/search.js","../node_modules/lucide-react/dist/esm/icons/trash-2.js","../node_modules/lucide-react/dist/esm/icons/x.js","../src/ikonDb.js","../src/borders/single/Yellow_Name.svg","../src/borders/single/Red_Verb.svg","../src/borders/single/Blue_Adjectiv.svg","../src/borders/single/Orange_Adverb.svg","../src/borders/single/Green_Conjunction.svg","../src/borders/single/Gray_Neutral.svg","../src/borders/plural/Yellow_Name.svg","../src/borders/plural/Red_Verb.svg","../src/borders/plural/Blue_Adjectiv.svg","../src/borders/plural/Orange_Adverb.svg","../src/borders/plural/Green_Conjunction.svg","../src/borders/plural/Gray_Neutral.svg","../src/ikonSchema.js","../src/ikonLayout.js","../src/Ikon.jsx","../src/IkonEditor.jsx","../src/IkonZoomView.jsx","../src/theme.js","../src/Ikoneme.jsx","../src/ikonCanvas.js"],"sourcesContent":["/**\n * @license lucide-react v0.294.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nvar defaultAttributes = {\n xmlns: \"http://www.w3.org/2000/svg\",\n width: 24,\n height: 24,\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n stroke: \"currentColor\",\n strokeWidth: 2,\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n};\n\nexport { defaultAttributes as default };\n//# sourceMappingURL=defaultAttributes.js.map\n","/**\n * @license lucide-react v0.294.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport { forwardRef, createElement } from 'react';\nimport defaultAttributes from './defaultAttributes.js';\n\nconst toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, \"$1-$2\").toLowerCase().trim();\nconst createLucideIcon = (iconName, iconNode) => {\n const Component = forwardRef(\n ({ color = \"currentColor\", size = 24, strokeWidth = 2, absoluteStrokeWidth, className = \"\", children, ...rest }, ref) => createElement(\n \"svg\",\n {\n ref,\n ...defaultAttributes,\n width: size,\n height: size,\n stroke: color,\n strokeWidth: absoluteStrokeWidth ? Number(strokeWidth) * 24 / Number(size) : strokeWidth,\n className: [\"lucide\", `lucide-${toKebabCase(iconName)}`, className].join(\" \"),\n ...rest\n },\n [\n ...iconNode.map(([tag, attrs]) => createElement(tag, attrs)),\n ...Array.isArray(children) ? children : [children]\n ]\n )\n );\n Component.displayName = `${iconName}`;\n return Component;\n};\n\nexport { createLucideIcon as default, toKebabCase };\n//# sourceMappingURL=createLucideIcon.js.map\n","/**\n * @license lucide-react v0.294.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst ArrowLeft = createLucideIcon(\"ArrowLeft\", [\n [\"path\", { d: \"m12 19-7-7 7-7\", key: \"1l729n\" }],\n [\"path\", { d: \"M19 12H5\", key: \"x3x0zl\" }]\n]);\n\nexport { ArrowLeft as default };\n//# sourceMappingURL=arrow-left.js.map\n","/**\n * @license lucide-react v0.294.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst Pen = createLucideIcon(\"Pen\", [\n [\"path\", { d: \"M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z\", key: \"5qss01\" }]\n]);\n\nexport { Pen as default };\n//# sourceMappingURL=pen.js.map\n","/**\n * @license lucide-react v0.294.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst Search = createLucideIcon(\"Search\", [\n [\"circle\", { cx: \"11\", cy: \"11\", r: \"8\", key: \"4ej97u\" }],\n [\"path\", { d: \"m21 21-4.3-4.3\", key: \"1qie3q\" }]\n]);\n\nexport { Search as default };\n//# sourceMappingURL=search.js.map\n","/**\n * @license lucide-react v0.294.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst Trash2 = createLucideIcon(\"Trash2\", [\n [\"path\", { d: \"M3 6h18\", key: \"d0wm0j\" }],\n [\"path\", { d: \"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6\", key: \"4alrt4\" }],\n [\"path\", { d: \"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2\", key: \"v07s0e\" }],\n [\"line\", { x1: \"10\", x2: \"10\", y1: \"11\", y2: \"17\", key: \"1uufr5\" }],\n [\"line\", { x1: \"14\", x2: \"14\", y1: \"11\", y2: \"17\", key: \"xtxkd\" }]\n]);\n\nexport { Trash2 as default };\n//# sourceMappingURL=trash-2.js.map\n","/**\n * @license lucide-react v0.294.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst X = createLucideIcon(\"X\", [\n [\"path\", { d: \"M18 6 6 18\", key: \"1bl5f8\" }],\n [\"path\", { d: \"m6 6 12 12\", key: \"d8bk6v\" }]\n]);\n\nexport { X as default };\n//# sourceMappingURL=x.js.map\n","// Client for the IkonDB icon database (https://ikondb.iigap.com/api/docs).\n//\n// Per the IkonDB maintainer's guidance we use only the public \"legacy v1\"\n// endpoints — no token/auth. The full icon list is fetched once and cached for\n// an hour; searches are resolved against that cache instead of hitting the API\n// per keystroke.\n//\n// GET /api/ikons -> { status, data: [{ id, description, media }] }\n// GET /api/ikons/{id} -> { status, data: { id, description, media } } (also 200 for\n// not-found, with { status: 'error', data: null })\n//\n// `media` is either { origin, preview?, thumb?, svg? } or `[]` when the icon\n// has no image.\n\nexport const IKONDB_BASE_URL = 'https://ikondb.iigap.com'\n\n// Cache the full list for one hour (Michele's recommendation).\nconst LIST_TTL_MS = 60 * 60 * 1000\n\nlet listCache = null // { at: number, list: Array<{ id, name, url }> }\nlet listInFlight = null // dedupes concurrent first loads\nconst detailCache = new Map() // id -> details object (or null when not found)\n\n// `media` may be an object or `[]`; pick the best single URL from it.\nfunction pickMediaUrl(media) {\n if (!media || Array.isArray(media)) return null\n return media.origin || media.preview || media.thumb || media.svg || null\n}\n\nfunction normalizeMedia(media) {\n if (!media || Array.isArray(media)) return {}\n const { origin = null, preview = null, thumb = null, svg = null } = media\n return { origin, preview, thumb, svg }\n}\n\nasync function fetchList(baseUrl) {\n const res = await fetch(`${baseUrl}/api/ikons`)\n if (!res.ok) throw new Error(`IkonDB GET /api/ikons -> ${res.status}`)\n const body = await res.json()\n const rows = Array.isArray(body?.data) ? body.data : []\n return rows\n .map((row) => ({\n id: row.id,\n name: row.description || '',\n url: pickMediaUrl(row.media)\n }))\n .filter((item) => item.url) // drop icons with no image\n}\n\n// The full icon list, served from cache while it is younger than an hour.\nexport async function getIkonList({ baseUrl = IKONDB_BASE_URL } = {}) {\n if (listCache && Date.now() - listCache.at < LIST_TTL_MS) return listCache.list\n if (listInFlight) return listInFlight\n listInFlight = fetchList(baseUrl)\n .then((list) => {\n listCache = { at: Date.now(), list }\n return list\n })\n .finally(() => {\n listInFlight = null\n })\n return listInFlight\n}\n\n// Case-insensitive substring match on the icon name/description.\nexport async function searchIkons(query, { baseUrl = IKONDB_BASE_URL, limit = 20 } = {}) {\n const q = (query || '').trim().toLowerCase()\n if (!q) return []\n const list = await getIkonList({ baseUrl })\n const matches = []\n for (const item of list) {\n if (item.name.toLowerCase().includes(q)) {\n matches.push(item)\n if (matches.length >= limit) break\n }\n }\n return matches\n}\n\n// Richer media set (origin/preview/thumb/svg) for one icon. Cached per id for\n// the session. Returns null when the icon does not exist.\nexport async function getIkonDetails(id, { baseUrl = IKONDB_BASE_URL } = {}) {\n if (id == null) return null\n if (detailCache.has(id)) return detailCache.get(id)\n const res = await fetch(`${baseUrl}/api/ikons/${encodeURIComponent(id)}`)\n if (!res.ok) throw new Error(`IkonDB GET /api/ikons/${id} -> ${res.status}`)\n const body = await res.json()\n if (body?.status !== 'success' || !body?.data) {\n detailCache.set(id, null)\n return null\n }\n const media = normalizeMedia(body.data.media)\n const details = {\n id: body.data.id,\n name: body.data.description || '',\n url: media.origin || media.preview || media.thumb || media.svg || null,\n ...media\n }\n detailCache.set(id, details)\n return details\n}\n\n// Historical `searchRoot` contract: (query) => Promise<{ id, name, url }[]>.\n// Used as the default when no `searchRoot` prop is passed to the editor.\nexport async function defaultSearchRoot(query) {\n try {\n return await searchIkons(query)\n } catch {\n return []\n }\n}\n\n// Test/host hook: drop the in-memory caches.\nexport function clearIkonDbCache() {\n listCache = null\n listInFlight = null\n detailCache.clear()\n}\n","export default \"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\"","export default \"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\"","export default \"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\"","export default \"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\"","export default \"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\"","export default \"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\"","export default \"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\"","export default \"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\"","export default \"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\"","export default \"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\"","export default \"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\"","export default \"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\"","import { searchIkons } from './ikonDb'\r\nimport nameBorder from './borders/single/Yellow_Name.svg'\r\nimport verbBorder from './borders/single/Red_Verb.svg'\r\nimport adjectiveBorder from './borders/single/Blue_Adjectiv.svg'\r\nimport adverbBorder from './borders/single/Orange_Adverb.svg'\r\nimport conjunctionBorder from './borders/single/Green_Conjunction.svg'\r\nimport neutralBorder from './borders/single/Gray_Neutral.svg'\r\nimport namePluralBorder from './borders/plural/Yellow_Name.svg'\r\nimport verbPluralBorder from './borders/plural/Red_Verb.svg'\r\nimport adjectivePluralBorder from './borders/plural/Blue_Adjectiv.svg'\r\nimport adverbPluralBorder from './borders/plural/Orange_Adverb.svg'\r\nimport conjunctionPluralBorder from './borders/plural/Green_Conjunction.svg'\r\nimport neutralPluralBorder from './borders/plural/Gray_Neutral.svg'\r\n\r\n// Ikon zone configuration: tooltips and image URLs shown by the editor, and used\r\n// to resolve icon metadata back from a stored URL. Ported 1:1 from ikonchat so\r\n// the JSON payload produced/consumed here is byte-for-byte compatible with it.\r\n//\r\n// Field <-> NLP-spec vocabulary mapping (see project README):\r\n// context -> gender, modes -> mode, tenses -> time-tenses\r\n// role, reference, root and border already share the spec's names.\r\nexport const ZONE_CONFIG = {\r\n context: [\r\n { tooltip: 'Male', url: 'https://text2ikon.komunikon.com/gender-assets/KomunIKON_Male.svg' },\r\n {\r\n tooltip: 'Female',\r\n url: 'https://text2ikon.komunikon.com/gender-assets/KomunIKON_Female.svg'\r\n },\r\n {\r\n tooltip: 'Non Binary',\r\n url: 'https://text2ikon.komunikon.com/gender-assets/KomunIKON_Non-Binary.png'\r\n }\r\n ],\r\n reference: [\r\n {\r\n tooltip: 'Asterisk',\r\n url: 'https://text2ikon.komunikon.com/reference-assets/KomunIKON_asterisk.svg'\r\n },\r\n { tooltip: 'Zero', url: 'https://text2ikon.komunikon.com/reference-assets/KomunIKON_Zero.svg' },\r\n { tooltip: 'One', url: 'https://text2ikon.komunikon.com/reference-assets/KomunIKON_One.svg' },\r\n { tooltip: 'Two', url: 'https://text2ikon.komunikon.com/reference-assets/KomunIKON_Two.svg' },\r\n {\r\n tooltip: 'Three',\r\n url: 'https://text2ikon.komunikon.com/reference-assets/KomunIKON_Three.svg'\r\n },\r\n { tooltip: 'Four', url: 'https://text2ikon.komunikon.com/reference-assets/KomunIKON_Four.svg' },\r\n { tooltip: 'Five', url: 'https://text2ikon.komunikon.com/reference-assets/KomunIKON_Five.svg' },\r\n { tooltip: 'Six', url: 'https://text2ikon.komunikon.com/reference-assets/KomunIKON_Six.svg' },\r\n {\r\n tooltip: 'Seven',\r\n url: 'https://text2ikon.komunikon.com/reference-assets/KomunIKON_Seven.svg'\r\n },\r\n {\r\n tooltip: 'Eight',\r\n url: 'https://text2ikon.komunikon.com/reference-assets/KomunIKON_Eight.svg'\r\n },\r\n { tooltip: 'Nine', url: 'https://text2ikon.komunikon.com/reference-assets/KomunIKON_Nine.svg' }\r\n ],\r\n role: [\r\n { tooltip: 'agent', url: 'https://text2ikon.komunikon.com/case-assets/KomunIKON_agent.svg' },\r\n {\r\n tooltip: 'patient',\r\n url: 'https://text2ikon.komunikon.com/case-assets/KomunIKON_patient.svg'\r\n },\r\n {\r\n tooltip: 'reflexive',\r\n url: 'https://text2ikon.komunikon.com/case-assets/KomunIKON_reflexive.svg'\r\n },\r\n {\r\n tooltip: 'recipricol',\r\n url: 'https://text2ikon.komunikon.com/_next/image?url=%2Fcase-assets%2Frecipricol.jpg&w=48&q=75'\r\n }\r\n ],\r\n modes: [\r\n { tooltip: 'Exclam', url: 'https://text2ikon.komunikon.com/mode-assets/KomunIKON_Exclam.svg' },\r\n { tooltip: 'Which', url: 'https://text2ikon.komunikon.com/mode-assets/KomunIKON_Which.svg' }\r\n ],\r\n // Direct source URLs on ikondb.iigap.com, the IkonDB instance this library\r\n // uses everywhere (also bypasses text2ikon's `_next/image` proxy).\r\n root: [\r\n {\r\n tooltip: 'Love/Passion',\r\n url: 'https://ikondb.iigap.com/storage/media/960/ZFcaar88AP.png'\r\n },\r\n {\r\n tooltip: 'Star/Excellence',\r\n url: 'https://ikondb.iigap.com/storage/media/991/M0ADaSXzWe.png'\r\n },\r\n {\r\n tooltip: 'Value/Precious',\r\n url: 'https://ikondb.iigap.com/storage/media/942/6ghAUKbdIs.png'\r\n },\r\n {\r\n tooltip: 'Fire/Hot',\r\n url: 'https://ikondb.iigap.com/storage/media/1478/zq0n4vHSQW.png'\r\n },\r\n {\r\n tooltip: 'Water/Fluid',\r\n url: 'https://ikondb.iigap.com/storage/media/1480/DVhDIm6KqB.png'\r\n },\r\n {\r\n tooltip: 'Flower/Beauty',\r\n url: 'https://ikondb.iigap.com/storage/media/1048/UnpCfhHsUa.png'\r\n },\r\n {\r\n tooltip: 'Leaf/Nature',\r\n url: 'https://ikondb.iigap.com/storage/media/1398/5Ex6my6BI7.png'\r\n }\r\n ],\r\n tenses: [\r\n {\r\n tooltip: 'adas',\r\n url: 'https://text2ikon.komunikon.com/time-assets/KomunIKON_Verbal_Tense_adas.svg'\r\n },\r\n {\r\n tooltip: 'adis',\r\n url: 'https://text2ikon.komunikon.com/time-assets/KomunIKON_Verbal_Tense_adis.svg'\r\n },\r\n {\r\n tooltip: 'ados',\r\n url: 'https://text2ikon.komunikon.com/time-assets/KomunIKON_Verbal_Tense_ados.svg'\r\n },\r\n {\r\n tooltip: 'antas',\r\n url: 'https://text2ikon.komunikon.com/time-assets/KomunIKON_Verbal_Tense_antas.svg'\r\n },\r\n {\r\n tooltip: 'antis',\r\n url: 'https://text2ikon.komunikon.com/time-assets/KomunIKON_Verbal_Tense_antis.svg'\r\n },\r\n {\r\n tooltip: 'antos',\r\n url: 'https://text2ikon.komunikon.com/time-assets/KomunIKON_Verbal_Tense_antos.svg'\r\n },\r\n {\r\n tooltip: 'as',\r\n url: 'https://text2ikon.komunikon.com/time-assets/KomunIKON_Verbal_Tense_as.svg'\r\n },\r\n {\r\n tooltip: 'intas',\r\n url: 'https://text2ikon.komunikon.com/time-assets/KomunIKON_Verbal_Tense_intas.svg'\r\n },\r\n {\r\n tooltip: 'intis',\r\n url: 'https://text2ikon.komunikon.com/time-assets/KomunIKON_Verbal_Tense_intis.svg'\r\n },\r\n {\r\n tooltip: 'intis2',\r\n url: 'https://text2ikon.komunikon.com/time-assets/KomunIKON_Verbal_Tense_intis2.svg'\r\n },\r\n {\r\n tooltip: 'intos',\r\n url: 'https://text2ikon.komunikon.com/time-assets/KomunIKON_Verbal_Tense_intos.svg'\r\n },\r\n {\r\n tooltip: 'intos2',\r\n url: 'https://text2ikon.komunikon.com/time-assets/KomunIKON_Verbal_Tense_intos2.svg'\r\n },\r\n {\r\n tooltip: 'is',\r\n url: 'https://text2ikon.komunikon.com/time-assets/KomunIKON_Verbal_Tense_is.svg'\r\n },\r\n {\r\n tooltip: 'ontas',\r\n url: 'https://text2ikon.komunikon.com/time-assets/KomunIKON_Verbal_Tense_ontas.svg'\r\n },\r\n {\r\n tooltip: 'ontis',\r\n url: 'https://text2ikon.komunikon.com/time-assets/KomunIKON_Verbal_Tense_ontis.svg'\r\n },\r\n {\r\n tooltip: 'ontis2',\r\n url: 'https://text2ikon.komunikon.com/time-assets/KomunIKON_Verbal_Tense_ontis2.svg'\r\n },\r\n {\r\n tooltip: 'ontos',\r\n url: 'https://text2ikon.komunikon.com/time-assets/KomunIKON_Verbal_Tense_ontos.svg'\r\n },\r\n {\r\n tooltip: 'ontos2',\r\n url: 'https://text2ikon.komunikon.com/time-assets/KomunIKON_Verbal_Tense_ontos2.svg'\r\n },\r\n {\r\n tooltip: 'os',\r\n url: 'https://text2ikon.komunikon.com/time-assets/KomunIKON_Verbal_Tense_os.svg'\r\n }\r\n ]\r\n}\r\n\r\n// Border types: the official KomunIKON border artwork (src/borders). 6 singular\r\n// (78x78 frame) + 6 plural (150x78 \"double\" frame), one colour and dash\r\n// pattern per grammatical category. `color` is the frame's main colour, for\r\n// hosts that need a plain colour (e.g. canvas export).\r\nexport const BORDER_CONFIG = [\r\n { id: 'name', label: 'Name', color: '#E6BE1E', plural: false, image: nameBorder },\r\n { id: 'verb', label: 'Verb', color: '#960000', plural: false, image: verbBorder },\r\n { id: 'adjective', label: 'Adjective', color: '#006E96', plural: false, image: adjectiveBorder },\r\n { id: 'adverb', label: 'Adverb', color: '#E6821E', plural: false, image: adverbBorder },\r\n {\r\n id: 'conjunction',\r\n label: 'Conjunction',\r\n color: '#508C50',\r\n plural: false,\r\n image: conjunctionBorder\r\n },\r\n { id: 'neutral', label: 'Neutral', color: '#6F6F6F', plural: false, image: neutralBorder },\r\n {\r\n id: 'name_plural',\r\n label: 'Name (plural)',\r\n color: '#E6BE1E',\r\n plural: true,\r\n image: namePluralBorder\r\n },\r\n {\r\n id: 'verb_plural',\r\n label: 'Verb (plural)',\r\n color: '#960000',\r\n plural: true,\r\n image: verbPluralBorder\r\n },\r\n {\r\n id: 'adjective_plural',\r\n label: 'Adjective (plural)',\r\n color: '#006E96',\r\n plural: true,\r\n image: adjectivePluralBorder\r\n },\r\n {\r\n id: 'adverb_plural',\r\n label: 'Adverb (plural)',\r\n color: '#E6821E',\r\n plural: true,\r\n image: adverbPluralBorder\r\n },\r\n {\r\n id: 'conjunction_plural',\r\n label: 'Conjunction (plural)',\r\n color: '#508C50',\r\n plural: true,\r\n image: conjunctionPluralBorder\r\n },\r\n {\r\n id: 'neutral_plural',\r\n label: 'Neutral (plural)',\r\n color: '#6F6F6F',\r\n plural: true,\r\n image: neutralPluralBorder\r\n }\r\n]\r\n\r\nexport const BORDER_IDS = BORDER_CONFIG.map((b) => b.id)\r\nconst VALID_BORDER_SET = new Set(BORDER_IDS)\r\n\r\nexport function getBorderConfig(borderId) {\r\n return BORDER_CONFIG.find((b) => b.id === borderId) ?? null\r\n}\r\n\r\n// Frame thickness and corner size, in px, of the border artwork drawn around a\r\n// `size` px ikon: 3 and 9 units of the artwork's 78-unit square.\r\nexport function getBorderMetrics(size) {\r\n const unit = size / 78\r\n const frame = Math.max(2, Math.round(3 * unit))\r\n return { frame, corner: Math.max(frame, Math.round(9 * unit)) }\r\n}\r\n\r\n// Inline style that draws a border's artwork around a square box of `size` px,\r\n// via CSS border-image (9-slice). The artwork is designed on a 78-unit square:\r\n// a 3-unit frame with 9-unit rounded top-left/bottom-right corners. Slicing at\r\n// 9 units keeps corners and frame thickness intact at any size; the plural\r\n// (150-unit wide) frame keeps the box square and fits its doubled dash pattern\r\n// into the top/bottom edges, so the ikon itself never changes shape.\r\nexport function getBorderImageStyle(border, size) {\r\n const config = typeof border === 'string' ? getBorderConfig(border) : border\r\n if (!config) return {}\r\n const { frame, corner } = getBorderMetrics(size)\r\n // Percentages: 9/78 of the height; 9/78 or 9/150 of the width.\r\n const slice = config.plural ? '11.538% 6%' : '11.538%'\r\n return {\r\n borderStyle: 'solid',\r\n borderColor: 'transparent',\r\n borderWidth: `${frame}px`,\r\n borderImageSource: `url(\"${config.image}\")`,\r\n borderImageSlice: slice,\r\n borderImageWidth: `${corner}px`,\r\n borderImageRepeat: 'stretch',\r\n // The artwork draws its own rounded outer corners and has a square inner\r\n // edge: keep the box square and the card fill strictly inside the frame,\r\n // so it neither peeks out around the curves nor leaves a gap inside them.\r\n borderRadius: 0,\r\n backgroundClip: 'padding-box'\r\n }\r\n}\r\n\r\n// Helper to get icon config by URL\r\nexport function getIconConfig(zone, url) {\r\n return ZONE_CONFIG[zone]?.find((config) => config.url === url)\r\n}\r\n\r\n// Helper to get URL by index\r\nexport function getIconUrlByIndex(zone, index) {\r\n return ZONE_CONFIG[zone]?.[index]?.url\r\n}\r\n\r\n// Get URL from a zone value (string or { name, url } object) for backward compatibility\r\nexport function getIconUrl(value) {\r\n if (value == null) return null\r\n return typeof value === 'object' && 'url' in value ? value.url : value\r\n}\r\n\r\n// URL to actually render for a zone value: prefer a scalable SVG when the value\r\n// carries one (IkonDB root icons expose `svg`), else fall back to the plain url.\r\nexport function getIconDisplayUrl(value) {\r\n if (value == null) return null\r\n if (typeof value === 'object') return value.svg || value.url || null\r\n return value\r\n}\r\n\r\n// Build { name, url } from a zone config entry\r\nfunction toIconObj(config) {\r\n return { name: config.tooltip, url: config.url }\r\n}\r\n\r\n// Default ikon structure (stores { name, url } per zone; rootName set when root chosen via search; border = border type id or null)\r\nexport function createDefaultIkon() {\r\n return {\r\n context: toIconObj(ZONE_CONFIG.context[0]),\r\n reference: {\r\n left: null,\r\n right: null\r\n },\r\n role: toIconObj(ZONE_CONFIG.role[0]),\r\n modes: toIconObj(ZONE_CONFIG.modes[0]),\r\n root: toIconObj(ZONE_CONFIG.root[0]),\r\n rootName: null,\r\n tenses: toIconObj(ZONE_CONFIG.tenses[0]),\r\n border: null\r\n }\r\n}\r\n\r\n// An ikon with every zone empty and no border (e.g. a blank slot the user\r\n// fills in with the editor).\r\nexport function createEmptyIkon() {\r\n return {\r\n context: null,\r\n reference: { left: null, right: null },\r\n role: null,\r\n modes: null,\r\n root: null,\r\n rootName: null,\r\n tenses: null,\r\n border: null\r\n }\r\n}\r\n\r\n// Normalize an ikon so every zone is { name, url } (upgrades URL-only saved data).\r\n// Unknown/extra fields (e.g. a `metadata` block from the NLP pipeline) are preserved as-is.\r\nexport function normalizeIkon(icon) {\r\n if (!icon) return icon\r\n const ref = icon.reference || { left: null, right: null }\r\n const contextConfig =\r\n typeof icon.context === 'string' ? getIconConfig('context', icon.context) : null\r\n const roleConfig = typeof icon.role === 'string' ? getIconConfig('role', icon.role) : null\r\n const modesConfig = typeof icon.modes === 'string' ? getIconConfig('modes', icon.modes) : null\r\n const rootConfig = typeof icon.root === 'string' ? getIconConfig('root', icon.root) : null\r\n const tensesConfig = typeof icon.tenses === 'string' ? getIconConfig('tenses', icon.tenses) : null\r\n\r\n const border = icon.border != null && VALID_BORDER_SET.has(icon.border) ? icon.border : null\r\n return {\r\n ...icon,\r\n context:\r\n typeof icon.context === 'object' && icon.context?.url != null\r\n ? icon.context\r\n : contextConfig\r\n ? toIconObj(contextConfig)\r\n : { name: '', url: icon.context || '' },\r\n reference: {\r\n left:\r\n ref.left == null\r\n ? null\r\n : typeof ref.left === 'object' && ref.left?.url != null\r\n ? ref.left\r\n : getIconConfig('reference', ref.left)\r\n ? toIconObj(getIconConfig('reference', ref.left))\r\n : { name: '', url: ref.left },\r\n right:\r\n ref.right == null\r\n ? null\r\n : typeof ref.right === 'object' && ref.right?.url != null\r\n ? ref.right\r\n : getIconConfig('reference', ref.right)\r\n ? toIconObj(getIconConfig('reference', ref.right))\r\n : { name: '', url: ref.right }\r\n },\r\n role:\r\n typeof icon.role === 'object' && icon.role?.url != null\r\n ? icon.role\r\n : roleConfig\r\n ? toIconObj(roleConfig)\r\n : { name: '', url: icon.role || '' },\r\n modes:\r\n typeof icon.modes === 'object' && icon.modes?.url != null\r\n ? icon.modes\r\n : modesConfig\r\n ? toIconObj(modesConfig)\r\n : { name: '', url: icon.modes || '' },\r\n root:\r\n typeof icon.root === 'object' && icon.root?.url != null\r\n ? { ...icon.root, name: icon.rootName ?? icon.root.name }\r\n : rootConfig\r\n ? { name: icon.rootName ?? rootConfig.tooltip, url: rootConfig.url }\r\n : { name: icon.rootName ?? '', url: icon.root || '' },\r\n tenses:\r\n typeof icon.tenses === 'object' && icon.tenses?.url != null\r\n ? icon.tenses\r\n : tensesConfig\r\n ? toIconObj(tensesConfig)\r\n : { name: '', url: icon.tenses || '' },\r\n border\r\n }\r\n}\r\n\r\n// Normalize a whole ikoneme (an ordered list of ikons).\r\nexport function normalizeIkoneme(ikons) {\r\n return (ikons || []).map(normalizeIkon)\r\n}\r\n\r\n// Simple hash function to generate a number from a string\r\nfunction hashString(str) {\r\n let hash = 0\r\n for (let i = 0; i < str.length; i++) {\r\n const char = str.charCodeAt(i)\r\n hash = (hash << 5) - hash + char\r\n hash = hash & hash // Convert to 32bit integer\r\n }\r\n return Math.abs(hash)\r\n}\r\n\r\n// Seeded pseudo-random number generator (LCG algorithm)\r\nclass SeededRandom {\r\n constructor(seed) {\r\n this.seed = seed\r\n }\r\n\r\n next() {\r\n const a = 1664525\r\n const c = 1013904223\r\n const m = Math.pow(2, 32)\r\n\r\n this.seed = (a * this.seed + c) % m\r\n return this.seed / m\r\n }\r\n\r\n nextInt(min, max) {\r\n return Math.floor(this.next() * (max - min)) + min\r\n }\r\n}\r\n\r\n// Looks up `word` in IkonDB and returns a root { name, url } built from the\r\n// best match, or null when there's no match or the lookup fails (IkonDB's\r\n// vocabulary is limited — most words won't have one).\r\nasync function findRootFromIkonDb(word) {\r\n try {\r\n const [match] = await searchIkons(word, { limit: 1 })\r\n return match ? { name: match.name, url: match.url } : null\r\n } catch {\r\n return null\r\n }\r\n}\r\n\r\n// Root shown when IkonDB has no icon for the word. Deliberately has no `url`\r\n// (never a made-up image) — <Ikon> renders `name` as text for a root without\r\n// a url, per findings from https://ikondb.iigap.com/api/docs's limited vocabulary.\r\nconst ROOT_NOT_FOUND = { name: 'Not found', url: null }\r\n\r\n// Builds a plausible ikoneme (list of ikons) from raw text. The root (center,\r\n// most meaningful) icon is always looked up by word in IkonDB — never a\r\n// placeholder image — and shows \"Not found\" as text when there's no match.\r\n// Every other zone is still hash-based random selection from the placeholder\r\n// set, useful for demos/tests until the real NLP pipeline (see the Rich Icon\r\n// Output Specification) is wired in.\r\nexport async function generateIkonemeFromText(text) {\r\n const words = text.toLowerCase().split(/\\s+/).filter(Boolean)\r\n\r\n const ikons = await Promise.all(\r\n words.map(async (word) => {\r\n const ikon = { ...createDefaultIkon() }\r\n const wordHash = hashString(word)\r\n const rng = new SeededRandom(wordHash)\r\n\r\n ikon.context = toIconObj(ZONE_CONFIG.context[rng.nextInt(0, ZONE_CONFIG.context.length)])\r\n\r\n const hasAsterisk = rng.next() > 0.5\r\n const numberIndex = rng.nextInt(1, ZONE_CONFIG.reference.length) // Skip asterisk (index 0)\r\n ikon.reference = {\r\n left: hasAsterisk ? toIconObj(ZONE_CONFIG.reference[0]) : null,\r\n right: toIconObj(ZONE_CONFIG.reference[numberIndex])\r\n }\r\n\r\n ikon.role = toIconObj(ZONE_CONFIG.role[rng.nextInt(0, ZONE_CONFIG.role.length)])\r\n ikon.modes = toIconObj(ZONE_CONFIG.modes[rng.nextInt(0, ZONE_CONFIG.modes.length)])\r\n\r\n const dbRoot = await findRootFromIkonDb(word)\r\n ikon.root = dbRoot ?? ROOT_NOT_FOUND\r\n ikon.rootName = dbRoot?.name ?? null\r\n\r\n ikon.tenses = toIconObj(ZONE_CONFIG.tenses[rng.nextInt(0, ZONE_CONFIG.tenses.length)])\r\n\r\n const singularBorders = BORDER_CONFIG.filter((b) => !b.plural)\r\n ikon.border = singularBorders[rng.nextInt(0, singularBorders.length)].id\r\n\r\n return ikon\r\n })\r\n )\r\n\r\n return ikons.length > 0 ? ikons : [createDefaultIkon()]\r\n}\r\n","// Geometry shared by the on-screen <Ikon> (CSS grid) and the canvas renderer\r\n// (ikonCanvas.js), so an exported image always matches what is shown.\r\n\r\n// 6x6 track weights. The corner/edge tracks are a little wider than the four\r\n// middle ones so the context/role/modes/reference/tenses icons read clearly;\r\n// kept symmetric on both axes and both sides so `root` — and the whole\r\n// layout — stays centered.\r\nexport const EDGE_FR = 1.18\r\nexport const MID_FR = 0.95\r\nexport const TRACK_WEIGHTS = [EDGE_FR, MID_FR, MID_FR, MID_FR, MID_FR, EDGE_FR]\r\n\r\n// Reference (North) is a 4-slot strip: two empty spacers framing the two icon\r\n// slots, weighted up so the left/right reference icons are as prominent as the\r\n// corner ones instead of being squeezed into a quarter.\r\nexport const REF_WEIGHTS = [0.6, 1.4, 1.4, 0.6]\r\n\r\n// Zone tints and the hairline drawn between zones.\r\nexport const ZONE_BACKGROUNDS = {\r\n context: 'rgba(100, 50, 150, 0.1)',\r\n reference: 'rgba(50, 100, 200, 0.1)',\r\n role: 'rgba(200, 50, 50, 0.1)',\r\n modes: 'rgba(50, 150, 100, 0.1)',\r\n root: 'rgba(150, 150, 50, 0.1)',\r\n east: 'rgba(0, 0, 0, 0.05)',\r\n tenses: 'rgba(100, 100, 200, 0.1)'\r\n}\r\nexport const ZONE_DIVIDER = 'rgba(0, 0, 0, 0.14)'\r\n\r\n// Where each zone sits on the 6x6 grid, as [start, end) track indexes.\r\nexport const ZONE_GRID = {\r\n context: { cols: [0, 1], rows: [0, 1] },\r\n reference: { cols: [1, 5], rows: [0, 1] },\r\n role: { cols: [5, 6], rows: [0, 1] },\r\n modes: { cols: [0, 1], rows: [1, 5] },\r\n root: { cols: [1, 5], rows: [1, 5] },\r\n east: { cols: [5, 6], rows: [1, 5] },\r\n tenses: { cols: [0, 6], rows: [5, 6] }\r\n}\r\n\r\n// Paddings, all derived from the size the card renders at:\r\n// - framePad: inset ring holding the slot layout off the coloured border.\r\n// - zonePad: between a slot's icon and the slot edge.\r\n// - rootPad: the same for the (larger) root zone.\r\nexport function getIkonPaddings(size) {\r\n return {\r\n framePad: Math.max(2, Math.round(size / 44)),\r\n zonePad: Math.max(2, Math.round(size / 72)),\r\n rootPad: Math.max(2, Math.round(size / 40))\r\n }\r\n}\r\n\r\n// Splits `length` px into tracks proportional to `weights`; returns the start\r\n// offset of every track plus the end, e.g. [0, a, a+b, ..., length].\r\nexport function trackOffsets(length, weights) {\r\n const total = weights.reduce((sum, w) => sum + w, 0)\r\n const offsets = [0]\r\n for (const w of weights) offsets.push(offsets[offsets.length - 1] + (length * w) / total)\r\n return offsets\r\n}\r\n","import React, { useState, useEffect } from 'react'\r\nimport { Edit2, Trash2 } from 'lucide-react'\r\nimport {\r\n getIconConfig,\r\n getIconUrl,\r\n getIconDisplayUrl,\r\n getBorderConfig,\r\n getBorderImageStyle\r\n} from './ikonSchema'\r\nimport {\r\n TRACK_WEIGHTS,\r\n REF_WEIGHTS,\r\n ZONE_BACKGROUNDS,\r\n ZONE_DIVIDER,\r\n getIkonPaddings\r\n} from './ikonLayout'\r\n\r\n// One icon = one grid cell. The image fills its slot but `object-fit: contain`\r\n// keeps its aspect ratio and `max-*: 100%` + the slot's own `overflow: hidden`\r\n// guarantee it can never spill past the slot (and therefore never past the\r\n// card border). Assets have wildly different intrinsic sizes (12px SVGs up to\r\n// 576px PNGs) — without the max-* clamp a large one would inflate its `1fr`\r\n// grid track and push the whole layout out of the card.\r\nconst SLOT_IMG_STYLE = {\r\n maxWidth: '100%',\r\n maxHeight: '100%',\r\n width: '100%',\r\n height: '100%',\r\n objectFit: 'contain',\r\n display: 'block',\r\n boxSizing: 'border-box'\r\n}\r\n\r\n// Shared style for a slot that centers a single icon inside its reserved area.\r\nconst slotCell = (pad) => ({\r\n display: 'flex',\r\n alignItems: 'center',\r\n justifyContent: 'center',\r\n minWidth: 0,\r\n minHeight: 0,\r\n overflow: 'hidden',\r\n boxSizing: 'border-box',\r\n padding: `${pad}px`\r\n})\r\n\r\nfunction useIsMobile(breakpoint = 768) {\r\n const [isMobile, setIsMobile] = useState(\r\n () => typeof window !== 'undefined' && window.innerWidth < breakpoint\r\n )\r\n useEffect(() => {\r\n const mql = window.matchMedia(`(max-width: ${breakpoint - 1}px)`)\r\n const handler = () => setIsMobile(mql.matches)\r\n mql.addEventListener('change', handler)\r\n return () => mql.removeEventListener('change', handler)\r\n }, [breakpoint])\r\n return isMobile\r\n}\r\n\r\n// Renders a single ikon (a \"super icon\") from its rich JSON payload:\r\n// { context, reference: { left, right }, role, modes, root, rootName, tenses, border }\r\nfunction Ikon({\r\n ikon,\r\n onClick,\r\n size = 64,\r\n onZoneClick,\r\n selectedZone,\r\n isSelected = false,\r\n isPaired = false,\r\n onEdit,\r\n onDelete,\r\n hideActionOverlay = false\r\n}) {\r\n const [isHovered, setIsHovered] = useState(false)\r\n const isMobile = useIsMobile()\r\n const borderConfig = ikon?.border ? getBorderConfig(ikon.border) : null\r\n\r\n const handleZoneClick = (zone, e) => {\r\n if (onZoneClick) {\r\n e.stopPropagation()\r\n onZoneClick(zone)\r\n } else if (onClick) {\r\n onClick(e)\r\n }\r\n }\r\n\r\n const handleZoneMouseEnter = (e) => {\r\n if (onZoneClick) {\r\n e.currentTarget.style.filter = 'brightness(1.3)'\r\n }\r\n }\r\n\r\n const handleZoneMouseLeave = (e) => {\r\n if (onZoneClick) {\r\n e.currentTarget.style.filter = 'brightness(1)'\r\n }\r\n }\r\n\r\n const getZoneStyle = (zone, baseStyle) => {\r\n const zoneSelected = selectedZone === zone\r\n return {\r\n // A selected zone draws a 2px inset outline; border-box keeps that\r\n // outline (and every zone's padding) inside the slot the grid gave it,\r\n // so it can't nudge a neighbour or the card edge.\r\n boxSizing: 'border-box',\r\n ...baseStyle,\r\n cursor: onZoneClick ? 'pointer' : onClick ? 'pointer' : 'default',\r\n transition: 'all 0.2s, filter 0.2s',\r\n border: zoneSelected ? '2px solid var(--ikoneme-primary)' : baseStyle.border || 'none',\r\n boxShadow: zoneSelected ? '0 0 8px var(--ikoneme-primary)' : 'none',\r\n position: 'relative'\r\n }\r\n }\r\n\r\n // Helper to render zone content (zoneValue can be string URL or { name, url } object)\r\n const renderZoneContent = (zone, zoneValue) => {\r\n const url = getIconDisplayUrl(zoneValue)\r\n const iconConfig = getIconConfig(zone, getIconUrl(zoneValue))\r\n const label =\r\n (zoneValue && typeof zoneValue === 'object' && zoneValue.name) || iconConfig?.tooltip || zone\r\n\r\n if (!url) {\r\n // No image (e.g. the root's word had no IkonDB match) — show the name\r\n // as text instead of a made-up icon or a silently blank zone.\r\n return zoneValue?.name ? (\r\n <span\r\n style={{\r\n fontSize: '10px',\r\n lineHeight: 1.2,\r\n textAlign: 'center',\r\n color: 'var(--ikoneme-text-secondary, #888)',\r\n wordBreak: 'break-word',\r\n padding: '2px'\r\n }}\r\n >\r\n {zoneValue.name}\r\n </span>\r\n ) : null\r\n }\r\n\r\n return (\r\n <img\r\n src={url}\r\n alt={label}\r\n style={SLOT_IMG_STYLE}\r\n onError={(e) => {\r\n e.target.style.display = 'none'\r\n }}\r\n />\r\n )\r\n }\r\n\r\n const hasButtonArea = !hideActionOverlay && !onZoneClick && (onEdit || onDelete)\r\n const buttonSize = isMobile ? 28 : 24\r\n const buttonGap = 4\r\n const buttonRowWidth = 3 * buttonSize + 2 * buttonGap\r\n const iconSizePx = hasButtonArea ? buttonRowWidth : size\r\n const buttonsVisible = isMobile || isHovered\r\n\r\n // Every length below is derived from the size the card actually renders at\r\n // (`renderSize`), not the `size` prop — in edit mode the card is widened to\r\n // fit the action-button row, and calibrating padding/border to the prop\r\n // instead left the micro-icons too small and the spacing off.\r\n const renderSize = iconSizePx\r\n\r\n // Paddings and track weights come from ikonLayout.js, shared with the canvas\r\n // renderer so exported images match the screen. framePad is real padding on\r\n // the grid container: an inset ring filled with the card colour (see\r\n // `cardBg`) that holds the 6x6 slot layout off the coloured border.\r\n const { framePad, zonePad, rootPad } = getIkonPaddings(renderSize)\r\n const toTracks = (weights) => weights.map((w) => `minmax(0, ${w}fr)`).join(' ')\r\n const gridTracks = toTracks(TRACK_WEIGHTS)\r\n const refTracks = toTracks(REF_WEIGHTS)\r\n // The grammatical border is the official artwork (singular or plural frame),\r\n // scaled with the card so it stays legible from a chat bubble to the zoom view.\r\n const baseBorderStyle = borderConfig\r\n ? getBorderImageStyle(borderConfig, renderSize)\r\n : {\r\n border:\r\n isSelected && !isPaired\r\n ? '2px solid rgba(0, 168, 132, 0.8)'\r\n : '1px solid rgba(255, 255, 255, 0.1)'\r\n }\r\n\r\n // Card fill. Also fills the `framePad` ring between the slot layout and the\r\n // coloured border, so that gap reads as part of the card (white) rather than\r\n // as a dark frame — the ring alone keeps the border visually disconnected\r\n // from the slot content, no extra band needed.\r\n const cardBg = isSelected && !isPaired ? 'rgba(0, 168, 132, 0.15)' : 'white'\r\n\r\n const baseBoxShadow = [\r\n isSelected && !isPaired ? '0 0 12px rgba(0, 168, 132, 0.4)' : null,\r\n selectedZone === 'border' ? '0 0 0 3px var(--ikoneme-primary)' : null\r\n ]\r\n .filter(Boolean)\r\n .join(', ')\r\n const hoverBoxShadow = '0 0 10px rgba(0, 168, 132, 0.5)'\r\n\r\n const iconBox = (\r\n <>\r\n <div\r\n onClick={\r\n !onZoneClick ? (onClick ? (e) => onClick(e) : undefined) : () => onZoneClick('border')\r\n }\r\n style={{\r\n width: `${renderSize}px`,\r\n height: `${renderSize}px`,\r\n // border-box: the coloured border is drawn *inside* renderSize, so a\r\n // card always occupies exactly the box its parent reserved for it and\r\n // the grid tracks are sized within `renderSize` minus the frame.\r\n // With content-box the border sat outside and every card overflowed\r\n // its slot by the frame width on the right and bottom.\r\n boxSizing: 'border-box',\r\n display: 'grid',\r\n // Inset ring so the slot layout never sits flush against the border.\r\n padding: `${framePad}px`,\r\n // See `edgeFr`/`midFr` above. `minmax(0, …fr)` on every track is what\r\n // stops a large-intrinsic icon from inflating its track and shoving\r\n // the neighbouring slots (and the whole layout) past the card border.\r\n gridTemplateColumns: gridTracks,\r\n gridTemplateRows: gridTracks,\r\n cursor: onClick || onZoneClick ? 'pointer' : 'default',\r\n borderRadius: '4px',\r\n // Absolute clip boundary: nothing rendered by any slot can be seen\r\n // outside the card outline, whatever its content or the card size.\r\n overflow: 'hidden',\r\n flexShrink: 0,\r\n transition: 'transform 0.2s, box-shadow 0.2s, border 0.2s',\r\n backgroundColor: cardBg,\r\n boxShadow: baseBoxShadow,\r\n ...baseBorderStyle\r\n }}\r\n onMouseEnter={(e) => {\r\n if (onClick && !onZoneClick && !isPaired) {\r\n e.currentTarget.style.transform = 'scale(1.05)'\r\n if (!isSelected) {\r\n e.currentTarget.style.boxShadow = hoverBoxShadow\r\n }\r\n }\r\n }}\r\n onMouseLeave={(e) => {\r\n if (onClick && !onZoneClick && !isPaired) {\r\n e.currentTarget.style.transform = 'scale(1)'\r\n if (!isSelected) {\r\n e.currentTarget.style.boxShadow = baseBoxShadow\r\n }\r\n }\r\n }}\r\n >\r\n {/* Context - Northwest 1x1 */}\r\n <div\r\n onClick={(e) => handleZoneClick('context', e)}\r\n onMouseEnter={handleZoneMouseEnter}\r\n onMouseLeave={handleZoneMouseLeave}\r\n style={getZoneStyle('context', {\r\n gridColumn: '1 / 2',\r\n gridRow: '1 / 2',\r\n display: 'flex',\r\n alignItems: 'center',\r\n justifyContent: 'center',\r\n background: ZONE_BACKGROUNDS.context,\r\n borderRight: `1px solid ${ZONE_DIVIDER}`,\r\n borderBottom: `1px solid ${ZONE_DIVIDER}`,\r\n minWidth: 0,\r\n minHeight: 0,\r\n overflow: 'hidden',\r\n padding: `${zonePad}px`\r\n })}\r\n className=\"ikoneme-zone\"\r\n >\r\n {renderZoneContent('context', ikon.context)}\r\n </div>\r\n\r\n {/* Reference - North 1x4 */}\r\n <div\r\n onClick={(e) => handleZoneClick('reference', e)}\r\n onMouseEnter={handleZoneMouseEnter}\r\n onMouseLeave={handleZoneMouseLeave}\r\n style={getZoneStyle('reference', {\r\n gridColumn: '2 / 6',\r\n gridRow: '1 / 2',\r\n display: 'grid',\r\n // Same treatment as the outer grid: bounded tracks + a single full-\r\n // height row so each reference sub-slot has a definite size and its\r\n // icon (sized against it) stays put.\r\n gridTemplateColumns: refTracks,\r\n gridTemplateRows: 'minmax(0, 1fr)',\r\n background: ZONE_BACKGROUNDS.reference,\r\n borderRight: `1px solid ${ZONE_DIVIDER}`,\r\n borderBottom: `1px solid ${ZONE_DIVIDER}`,\r\n minWidth: 0,\r\n minHeight: 0,\r\n overflow: 'hidden'\r\n })}\r\n className=\"ikoneme-zone\"\r\n >\r\n {/* Cell 1 - Empty */}\r\n <div\r\n style={{\r\n minWidth: 0,\r\n minHeight: 0,\r\n overflow: 'hidden',\r\n borderRight: `1px solid ${ZONE_DIVIDER}`\r\n }}\r\n />\r\n\r\n {/* Cell 2 - Left icon (Asterisk) */}\r\n <div\r\n style={{\r\n ...slotCell(zonePad),\r\n borderRight: `1px solid ${ZONE_DIVIDER}`\r\n }}\r\n >\r\n {getIconUrl(ikon.reference?.left) && (\r\n <img\r\n src={getIconUrl(ikon.reference.left)}\r\n alt=\"Asterisk\"\r\n style={SLOT_IMG_STYLE}\r\n onError={(e) => {\r\n e.target.style.display = 'none'\r\n }}\r\n />\r\n )}\r\n </div>\r\n\r\n {/* Cell 3 - Right icon (Numbers) */}\r\n <div\r\n style={{\r\n ...slotCell(zonePad),\r\n borderRight: `1px solid ${ZONE_DIVIDER}`\r\n }}\r\n >\r\n {getIconUrl(ikon.reference?.right) && (\r\n <img\r\n src={getIconUrl(ikon.reference.right)}\r\n alt=\"Number\"\r\n style={SLOT_IMG_STYLE}\r\n onError={(e) => {\r\n e.target.style.display = 'none'\r\n }}\r\n />\r\n )}\r\n </div>\r\n\r\n {/* Cell 4 - Empty */}\r\n <div style={{ minWidth: 0, minHeight: 0, overflow: 'hidden' }} />\r\n </div>\r\n\r\n {/* Role - Northeast 1x1 */}\r\n <div\r\n onClick={(e) => handleZoneClick('role', e)}\r\n onMouseEnter={handleZoneMouseEnter}\r\n onMouseLeave={handleZoneMouseLeave}\r\n style={getZoneStyle('role', {\r\n gridColumn: '6 / 7',\r\n gridRow: '1 / 2',\r\n display: 'flex',\r\n alignItems: 'center',\r\n justifyContent: 'center',\r\n background: ZONE_BACKGROUNDS.role,\r\n borderBottom: `1px solid ${ZONE_DIVIDER}`,\r\n minWidth: 0,\r\n minHeight: 0,\r\n overflow: 'hidden',\r\n padding: `${zonePad}px`\r\n })}\r\n className=\"ikoneme-zone\"\r\n >\r\n {renderZoneContent('role', ikon.role)}\r\n </div>\r\n\r\n {/* Modes - West 4x1 */}\r\n <div\r\n onClick={(e) => handleZoneClick('modes', e)}\r\n onMouseEnter={handleZoneMouseEnter}\r\n onMouseLeave={handleZoneMouseLeave}\r\n style={getZoneStyle('modes', {\r\n gridColumn: '1 / 2',\r\n gridRow: '2 / 6',\r\n display: 'flex',\r\n alignItems: 'center',\r\n justifyContent: 'center',\r\n background: ZONE_BACKGROUNDS.modes,\r\n borderRight: `1px solid ${ZONE_DIVIDER}`,\r\n borderBottom: `1px solid ${ZONE_DIVIDER}`,\r\n minWidth: 0,\r\n minHeight: 0,\r\n overflow: 'hidden',\r\n padding: `${zonePad}px`\r\n })}\r\n className=\"ikoneme-zone\"\r\n >\r\n {renderZoneContent('modes', ikon.modes)}\r\n </div>\r\n\r\n {/* Root - Center 4x4 */}\r\n <div\r\n onClick={(e) => handleZoneClick('root', e)}\r\n onMouseEnter={handleZoneMouseEnter}\r\n onMouseLeave={handleZoneMouseLeave}\r\n style={getZoneStyle('root', {\r\n // Kept at 4 columns (not spanning into column 6) so root — and the\r\n // whole icon — stays horizontally centered: column 1 (modes) and\r\n // column 6 (below) are the same width on both sides of root.\r\n gridColumn: '2 / 6',\r\n gridRow: '2 / 6',\r\n display: 'flex',\r\n alignItems: 'center',\r\n justifyContent: 'center',\r\n background: ZONE_BACKGROUNDS.root,\r\n borderRight: `1px solid ${ZONE_DIVIDER}`,\r\n borderBottom: `1px solid ${ZONE_DIVIDER}`,\r\n minWidth: 0,\r\n minHeight: 0,\r\n overflow: 'hidden',\r\n padding: `${rootPad}px`\r\n })}\r\n className=\"ikoneme-zone\"\r\n >\r\n {renderZoneContent('root', ikon.root)}\r\n </div>\r\n\r\n {/* East 4x1 — mirrors the modes column for symmetry. Only clickable\r\n (to select the border zone) inside the zone editor's preview. */}\r\n <div\r\n onClick={(e) => {\r\n if (onZoneClick) {\r\n e.stopPropagation()\r\n onZoneClick('border')\r\n }\r\n }}\r\n style={{\r\n gridColumn: '6 / 7',\r\n gridRow: '2 / 6',\r\n background: ZONE_BACKGROUNDS.east,\r\n borderBottom: `1px solid ${ZONE_DIVIDER}`,\r\n minWidth: 0,\r\n minHeight: 0,\r\n overflow: 'hidden',\r\n boxSizing: 'border-box',\r\n cursor: onZoneClick ? 'pointer' : 'default'\r\n }}\r\n />\r\n\r\n {/* Tenses - South 1x6 */}\r\n <div\r\n onClick={(e) => handleZoneClick('tenses', e)}\r\n onMouseEnter={handleZoneMouseEnter}\r\n onMouseLeave={handleZoneMouseLeave}\r\n style={getZoneStyle('tenses', {\r\n gridColumn: '1 / 7',\r\n gridRow: '6 / 7',\r\n display: 'flex',\r\n alignItems: 'center',\r\n justifyContent: 'center',\r\n background: ZONE_BACKGROUNDS.tenses,\r\n minWidth: 0,\r\n minHeight: 0,\r\n overflow: 'hidden',\r\n padding: `${zonePad}px`\r\n })}\r\n className=\"ikoneme-zone\"\r\n >\r\n {renderZoneContent('tenses', ikon.tenses)}\r\n </div>\r\n </div>\r\n </>\r\n )\r\n\r\n const actionButtonsRow = (\r\n <div\r\n style={{\r\n minHeight: `${buttonSize}px`,\r\n flexShrink: 0,\r\n display: 'flex',\r\n alignItems: 'center',\r\n justifyContent: 'center'\r\n }}\r\n aria-hidden={!buttonsVisible}\r\n >\r\n <div\r\n style={{\r\n display: 'flex',\r\n gap: `${buttonGap}px`,\r\n flexWrap: 'nowrap',\r\n width: `${buttonRowWidth}px`,\r\n justifyContent: 'center',\r\n opacity: buttonsVisible ? 1 : 0,\r\n pointerEvents: buttonsVisible ? 'auto' : 'none',\r\n transition: 'opacity 0.15s ease'\r\n }}\r\n >\r\n {onEdit && (\r\n <button\r\n onClick={(e) => {\r\n e.stopPropagation()\r\n onEdit()\r\n }}\r\n style={{\r\n width: `${buttonSize}px`,\r\n height: `${buttonSize}px`,\r\n borderRadius: '6px',\r\n border: 'none',\r\n background: 'rgba(0, 168, 132, 0.95)',\r\n cursor: 'pointer',\r\n display: 'flex',\r\n alignItems: 'center',\r\n justifyContent: 'center',\r\n transition: 'background 0.2s',\r\n boxShadow: '0 2px 4px rgba(0, 0, 0, 0.3)'\r\n }}\r\n onMouseEnter={(e) => (e.currentTarget.style.background = 'rgba(0, 168, 132, 1)')}\r\n onMouseLeave={(e) => (e.currentTarget.style.background = 'rgba(0, 168, 132, 0.95)')}\r\n title=\"Edit\"\r\n >\r\n <Edit2 size={isMobile ? 16 : 14} color=\"white\" />\r\n </button>\r\n )}\r\n {onDelete && (\r\n <button\r\n onClick={(e) => {\r\n e.stopPropagation()\r\n onDelete()\r\n }}\r\n style={{\r\n width: `${buttonSize}px`,\r\n height: `${buttonSize}px`,\r\n borderRadius: '6px',\r\n border: 'none',\r\n background: 'rgba(220, 38, 38, 0.95)',\r\n cursor: 'pointer',\r\n display: 'flex',\r\n alignItems: 'center',\r\n justifyContent: 'center',\r\n transition: 'background 0.2s',\r\n boxShadow: '0 2px 4px rgba(0, 0, 0, 0.3)'\r\n }}\r\n onMouseEnter={(e) => (e.currentTarget.style.background = 'rgba(220, 38, 38, 1)')}\r\n onMouseLeave={(e) => (e.currentTarget.style.background = 'rgba(220, 38, 38, 0.95)')}\r\n title=\"Delete\"\r\n >\r\n <Trash2 size={isMobile ? 16 : 14} color=\"white\" />\r\n </button>\r\n )}\r\n </div>\r\n </div>\r\n )\r\n\r\n if (hasButtonArea) {\r\n return (\r\n <div\r\n style={{\r\n display: 'flex',\r\n flexDirection: 'column',\r\n alignItems: 'center',\r\n width: `${buttonRowWidth}px`,\r\n flexShrink: 0,\r\n gap: '6px'\r\n }}\r\n onMouseEnter={() => setIsHovered(true)}\r\n onMouseLeave={() => setIsHovered(false)}\r\n >\r\n <div style={{ position: 'relative', width: `${renderSize}px`, height: `${renderSize}px` }}>\r\n {iconBox}\r\n </div>\r\n {actionButtonsRow}\r\n </div>\r\n )\r\n }\r\n\r\n return (\r\n <div\r\n style={{\r\n position: 'relative',\r\n width: `${size}px`,\r\n height: `${size}px`,\r\n flexShrink: 0\r\n }}\r\n onMouseEnter={() => setIsHovered(true)}\r\n onMouseLeave={() => setIsHovered(false)}\r\n >\r\n {iconBox}\r\n </div>\r\n )\r\n}\r\n\r\nexport default Ikon\r\n","import React, { useState, useEffect, useCallback } from 'react'\r\nimport { ArrowLeft, Search } from 'lucide-react'\r\nimport {\r\n ZONE_CONFIG,\r\n BORDER_CONFIG,\r\n getBorderImageStyle,\r\n getIconConfig,\r\n getIconUrl\r\n} from './ikonSchema'\r\nimport { defaultSearchRoot, getIkonDetails } from './ikonDb'\r\nimport Ikon from './Ikon'\r\n\r\n// Default root-icon search: the public IkonDB database (see ./ikonDb.js). Pass a\r\n// `searchRoot` prop to <IkonEditor> or <Ikoneme mode=\"edit\"> to point this at a\r\n// different backend instead.\r\nexport { defaultSearchRoot }\r\n\r\nconst ZONE_INFO = {\r\n context: { name: 'Context', description: 'Northwest - Contextual information' },\r\n reference: { name: 'Reference', description: 'North - Reference point' },\r\n role: { name: 'Role', description: 'Northeast - Role indicator' },\r\n modes: { name: 'Modes', description: 'West - Mode settings' },\r\n root: { name: 'Root', description: 'Center - Core meaning' },\r\n tenses: { name: 'Tenses', description: 'South - Time/tense indicator' },\r\n border: {\r\n name: 'Border',\r\n description: 'Grammatical category — singular (single frame) or plural (double frame)'\r\n }\r\n}\r\n\r\nconst ROOT_SEARCH_MIN_CHARS = 1\r\nconst ROOT_SEARCH_DEBOUNCE_MS = 300\r\nconst ROOT_SEARCH_RESULTS_COUNT = 10\r\nconst ROOT_SEARCH_COLS = 5\r\n\r\n// Full-screen editor for a single ikon. Used internally by <Ikoneme mode=\"edit\">,\r\n// but can also be used standalone.\r\nfunction IkonEditor({ ikon, onSave, onClose, searchRoot = defaultSearchRoot }) {\r\n const [editingIcon, setEditingIcon] = useState({\r\n ...ikon,\r\n reference: ikon.reference ? { ...ikon.reference } : { left: null, right: null },\r\n rootName: ikon.rootName ?? null\r\n })\r\n const [selectedZone, setSelectedZone] = useState('root')\r\n const [rootSearchQuery, setRootSearchQuery] = useState('')\r\n const [rootSearchResults, setRootSearchResults] = useState([])\r\n const [rootSearchLoading, setRootSearchLoading] = useState(false)\r\n\r\n const handleZoneChange = (zone, url) => {\r\n const config = getIconConfig(zone === 'reference' ? 'reference' : zone, url)\r\n const iconObj = config ? { name: config.tooltip, url: config.url } : { name: '', url }\r\n if (zone === 'reference') {\r\n const asteriskUrl = ZONE_CONFIG.reference[0].url\r\n if (url === asteriskUrl) {\r\n setEditingIcon((prev) => ({\r\n ...prev,\r\n reference: {\r\n ...prev.reference,\r\n left:\r\n getIconUrl(prev.reference?.left) === asteriskUrl\r\n ? null\r\n : { name: ZONE_CONFIG.reference[0].tooltip, url: asteriskUrl }\r\n }\r\n }))\r\n } else {\r\n setEditingIcon((prev) => ({\r\n ...prev,\r\n reference: {\r\n ...prev.reference,\r\n right: getIconUrl(prev.reference?.right) === url ? null : iconObj\r\n }\r\n }))\r\n }\r\n } else {\r\n setEditingIcon((prev) => ({\r\n ...prev,\r\n [zone]: getIconUrl(prev[zone]) === url ? null : iconObj\r\n }))\r\n }\r\n }\r\n\r\n const handleZoneSelect = (zone) => {\r\n setSelectedZone(zone)\r\n }\r\n\r\n const handleBorderChange = (borderId) => {\r\n setEditingIcon((prev) => ({\r\n ...prev,\r\n border: borderId == null ? null : prev.border === borderId ? null : borderId\r\n }))\r\n }\r\n\r\n // Debounced icon search when root zone is selected and query has enough chars\r\n useEffect(() => {\r\n if (selectedZone !== 'root' || rootSearchQuery.length < ROOT_SEARCH_MIN_CHARS) {\r\n setRootSearchResults([])\r\n return\r\n }\r\n const t = setTimeout(async () => {\r\n setRootSearchLoading(true)\r\n try {\r\n const list = await searchRoot(rootSearchQuery.trim())\r\n setRootSearchResults((list || []).slice(0, ROOT_SEARCH_RESULTS_COUNT))\r\n } catch {\r\n setRootSearchResults([])\r\n } finally {\r\n setRootSearchLoading(false)\r\n }\r\n }, ROOT_SEARCH_DEBOUNCE_MS)\r\n return () => clearTimeout(t)\r\n }, [selectedZone, rootSearchQuery, searchRoot])\r\n\r\n const handleRootSearchIconSelect = useCallback(async (icon) => {\r\n // Reflect the pick immediately with what the search result already carries…\r\n setEditingIcon((prev) => ({\r\n ...prev,\r\n root: { id: icon.id ?? null, name: icon.name, url: icon.url },\r\n rootName: icon.name\r\n }))\r\n // …then enrich it with the fuller media set (svg/thumb/preview) from the\r\n // per-icon endpoint, so the ikon representation can use a scalable asset.\r\n if (icon.id == null) return\r\n try {\r\n const details = await getIkonDetails(icon.id)\r\n if (!details) return\r\n setEditingIcon((prev) => {\r\n // Ignore a late response if the user has since picked another root.\r\n if (prev.root?.id !== icon.id) return prev\r\n return {\r\n ...prev,\r\n root: {\r\n id: details.id,\r\n name: icon.name,\r\n url: details.origin || icon.url,\r\n svg: details.svg || undefined,\r\n thumb: details.thumb || undefined,\r\n preview: details.preview || undefined\r\n },\r\n rootName: icon.name\r\n }\r\n })\r\n } catch {\r\n // Keep the basic { id, name, url } already set.\r\n }\r\n }, [])\r\n\r\n const handleSave = () => {\r\n onSave(editingIcon)\r\n onClose()\r\n }\r\n\r\n return (\r\n <div\r\n style={{\r\n position: 'fixed',\r\n top: 0,\r\n left: 0,\r\n right: 0,\r\n bottom: 0,\r\n background: 'var(--ikoneme-background)',\r\n display: 'flex',\r\n flexDirection: 'column',\r\n zIndex: 1000,\r\n overflow: 'hidden'\r\n }}\r\n >\r\n {/* Header */}\r\n <div\r\n style={{\r\n padding: '16px 20px',\r\n background: 'var(--ikoneme-panel-bg)',\r\n display: 'flex',\r\n alignItems: 'center',\r\n justifyContent: 'space-between',\r\n gap: '12px'\r\n }}\r\n >\r\n <div\r\n style={{\r\n display: 'flex',\r\n alignItems: 'center',\r\n gap: '12px',\r\n flex: 1\r\n }}\r\n >\r\n <button\r\n onClick={onClose}\r\n style={{\r\n background: 'transparent',\r\n border: 'none',\r\n cursor: 'pointer',\r\n padding: '4px',\r\n display: 'flex',\r\n alignItems: 'center',\r\n justifyContent: 'center'\r\n }}\r\n title=\"Back\"\r\n >\r\n <ArrowLeft color=\"var(--ikoneme-text-primary)\" size={24} />\r\n </button>\r\n <h2\r\n style={{\r\n color: 'var(--ikoneme-text-primary)',\r\n fontSize: 'clamp(18px, 4vw, 20px)',\r\n fontWeight: '600',\r\n margin: 0\r\n }}\r\n >\r\n Edit Ikon\r\n </h2>\r\n </div>\r\n <button\r\n onClick={handleSave}\r\n style={{\r\n padding: '10px 24px',\r\n background: 'var(--ikoneme-primary)',\r\n border: 'none',\r\n borderRadius: '8px',\r\n color: 'white',\r\n cursor: 'pointer',\r\n fontSize: 'clamp(13px, 3vw, 14px)',\r\n fontWeight: '500',\r\n transition: 'background 0.2s',\r\n whiteSpace: 'nowrap'\r\n }}\r\n onMouseEnter={(e) => (e.currentTarget.style.background = 'var(--ikoneme-primary-dark)')}\r\n onMouseLeave={(e) => (e.currentTarget.style.background = 'var(--ikoneme-primary)')}\r\n >\r\n Save\r\n </button>\r\n </div>\r\n\r\n {/* Content Area */}\r\n <div\r\n style={{\r\n flex: 1,\r\n overflowY: 'auto',\r\n padding: '20px',\r\n maxWidth: '800px',\r\n width: '100%',\r\n margin: '0 auto',\r\n WebkitOverflowScrolling: 'touch'\r\n }}\r\n >\r\n {/* Preview - Larger and Clickable */}\r\n <div\r\n style={{\r\n display: 'flex',\r\n flexDirection: 'column',\r\n alignItems: 'center',\r\n marginBottom: '24px',\r\n gap: '12px'\r\n }}\r\n >\r\n <p\r\n style={{\r\n color: 'var(--ikoneme-text-secondary)',\r\n fontSize: 'clamp(12px, 3vw, 13px)',\r\n textAlign: 'center'\r\n }}\r\n >\r\n Click on a zone or the border area to edit it\r\n </p>\r\n <Ikon\r\n ikon={editingIcon}\r\n size={280}\r\n onZoneClick={handleZoneSelect}\r\n selectedZone={selectedZone}\r\n />\r\n <div\r\n style={{\r\n color: 'var(--ikoneme-text-primary)',\r\n fontSize: 'clamp(14px, 3.5vw, 16px)',\r\n fontWeight: '500',\r\n textAlign: 'center',\r\n padding: '8px 16px',\r\n background: 'var(--ikoneme-primary)',\r\n borderRadius: '20px'\r\n }}\r\n >\r\n {ZONE_INFO[selectedZone].name}\r\n </div>\r\n </div>\r\n\r\n {/* Icon Picker */}\r\n <div style={{ marginBottom: '20px' }}>\r\n <h3\r\n style={{\r\n color: 'var(--ikoneme-text-primary)',\r\n fontSize: 'clamp(14px, 3.5vw, 16px)',\r\n marginBottom: '8px',\r\n fontWeight: '500'\r\n }}\r\n >\r\n {selectedZone === 'border'\r\n ? 'Select Border Type'\r\n : 'Choose Icon for: ' + ZONE_INFO[selectedZone].name}\r\n </h3>\r\n\r\n {selectedZone === 'border' ? (\r\n <p\r\n style={{\r\n color: 'var(--ikoneme-text-secondary)',\r\n fontSize: 'clamp(11px, 2.5vw, 12px)',\r\n marginBottom: '12px'\r\n }}\r\n >\r\n {ZONE_INFO.border.description}. Click the same border again to clear.\r\n </p>\r\n ) : selectedZone === 'reference' ? (\r\n <p\r\n style={{\r\n color: 'var(--ikoneme-text-secondary)',\r\n fontSize: 'clamp(11px, 2.5vw, 12px)',\r\n marginBottom: '12px'\r\n }}\r\n >\r\n Click <strong>Asterisk</strong> to toggle left cell. Click any <strong>number</strong>{' '}\r\n to toggle right cell.\r\n </p>\r\n ) : selectedZone === 'root' ? (\r\n <p\r\n style={{\r\n color: 'var(--ikoneme-text-secondary)',\r\n fontSize: 'clamp(11px, 2.5vw, 12px)',\r\n marginBottom: '12px'\r\n }}\r\n >\r\n Search for an icon below. The icon's name is stored with the ikon.\r\n </p>\r\n ) : (\r\n <p\r\n style={{\r\n color: 'var(--ikoneme-text-secondary)',\r\n fontSize: 'clamp(11px, 2.5vw, 12px)',\r\n marginBottom: '12px'\r\n }}\r\n >\r\n {ZONE_INFO[selectedZone].description}. Click the same icon again to clear.\r\n </p>\r\n )}\r\n\r\n {selectedZone === 'border' ? (\r\n <>\r\n {/* No border */}\r\n <div style={{ marginBottom: '12px' }}>\r\n <button\r\n onClick={() => handleBorderChange(null)}\r\n style={{\r\n width: '100%',\r\n padding: '10px 14px',\r\n background:\r\n editingIcon.border == null\r\n ? 'var(--ikoneme-primary)'\r\n : 'var(--ikoneme-surface)',\r\n border: `2px solid ${editingIcon.border == null ? 'var(--ikoneme-primary-dark)' : 'var(--ikoneme-border)'}`,\r\n borderRadius: '8px',\r\n color: editingIcon.border == null ? 'white' : 'var(--ikoneme-text-primary)',\r\n fontSize: '14px',\r\n cursor: 'pointer',\r\n textAlign: 'left',\r\n fontWeight: editingIcon.border == null ? '600' : '400',\r\n transition: 'all 0.2s'\r\n }}\r\n >\r\n No border\r\n </button>\r\n </div>\r\n\r\n {/* Singular borders */}\r\n <div style={{ marginBottom: '8px' }}>\r\n <span\r\n style={{\r\n color: 'var(--ikoneme-text-secondary)',\r\n fontSize: '12px',\r\n fontWeight: '600'\r\n }}\r\n >\r\n Singular\r\n </span>\r\n </div>\r\n <div\r\n style={{\r\n display: 'grid',\r\n gridTemplateColumns: 'repeat(3, 1fr)',\r\n gap: '10px',\r\n marginBottom: '16px'\r\n }}\r\n >\r\n {BORDER_CONFIG.filter((b) => !b.plural).map((border) => {\r\n const isSelected = editingIcon.border === border.id\r\n return (\r\n <button\r\n key={border.id}\r\n onClick={() => handleBorderChange(border.id)}\r\n title={border.label}\r\n style={{\r\n padding: '8px',\r\n background: isSelected\r\n ? 'var(--ikoneme-primary)'\r\n : 'var(--ikoneme-surface)',\r\n border: `2px solid ${isSelected ? 'var(--ikoneme-primary-dark)' : 'var(--ikoneme-border)'}`,\r\n borderRadius: '8px',\r\n cursor: 'pointer',\r\n display: 'flex',\r\n flexDirection: 'column',\r\n alignItems: 'center',\r\n gap: '6px',\r\n transition: 'all 0.2s',\r\n position: 'relative'\r\n }}\r\n onMouseEnter={(e) => {\r\n if (!isSelected) e.currentTarget.style.background = 'var(--ikoneme-hover)'\r\n }}\r\n onMouseLeave={(e) => {\r\n if (!isSelected) e.currentTarget.style.background = 'var(--ikoneme-surface)'\r\n }}\r\n >\r\n <div\r\n style={{\r\n boxSizing: 'border-box',\r\n width: '64px',\r\n height: '64px',\r\n flexShrink: 0,\r\n // Drawn at the scale of a ~160px ikon so the frame's\r\n // dash pattern stays readable in a 64px swatch.\r\n ...getBorderImageStyle(border, 160)\r\n }}\r\n />\r\n <span\r\n style={{\r\n fontSize: '11px',\r\n color: isSelected ? 'white' : 'var(--ikoneme-text-primary)',\r\n fontWeight: isSelected ? '600' : '400'\r\n }}\r\n >\r\n {border.label}\r\n </span>\r\n <div\r\n className=\"ikon-tooltip\"\r\n style={{\r\n position: 'absolute',\r\n bottom: '100%',\r\n left: '50%',\r\n transform: 'translateX(-50%)',\r\n background: 'rgba(0,0,0,0.95)',\r\n color: 'white',\r\n padding: '6px 10px',\r\n borderRadius: '6px',\r\n fontSize: '11px',\r\n whiteSpace: 'nowrap',\r\n opacity: 0,\r\n pointerEvents: 'none',\r\n transition: 'opacity 0.2s',\r\n marginBottom: '8px',\r\n zIndex: 100\r\n }}\r\n >\r\n {border.label}\r\n </div>\r\n </button>\r\n )\r\n })}\r\n </div>\r\n\r\n {/* Plural borders */}\r\n <div style={{ marginBottom: '8px' }}>\r\n <span\r\n style={{\r\n color: 'var(--ikoneme-text-secondary)',\r\n fontSize: '12px',\r\n fontWeight: '600'\r\n }}\r\n >\r\n Plural\r\n </span>\r\n </div>\r\n <div style={{ display: 'grid', gridTemplateColumns: 'repeat(3, 1fr)', gap: '10px' }}>\r\n {BORDER_CONFIG.filter((b) => b.plural).map((border) => {\r\n const isSelected = editingIcon.border === border.id\r\n return (\r\n <button\r\n key={border.id}\r\n onClick={() => handleBorderChange(border.id)}\r\n title={border.label}\r\n style={{\r\n padding: '8px',\r\n background: isSelected\r\n ? 'var(--ikoneme-primary)'\r\n : 'var(--ikoneme-surface)',\r\n border: `2px solid ${isSelected ? 'var(--ikoneme-primary-dark)' : 'var(--ikoneme-border)'}`,\r\n borderRadius: '8px',\r\n cursor: 'pointer',\r\n display: 'flex',\r\n flexDirection: 'column',\r\n alignItems: 'center',\r\n gap: '6px',\r\n transition: 'all 0.2s',\r\n position: 'relative'\r\n }}\r\n onMouseEnter={(e) => {\r\n if (!isSelected) e.currentTarget.style.background = 'var(--ikoneme-hover)'\r\n }}\r\n onMouseLeave={(e) => {\r\n if (!isSelected) e.currentTarget.style.background = 'var(--ikoneme-surface)'\r\n }}\r\n >\r\n <div\r\n style={{\r\n boxSizing: 'border-box',\r\n width: '64px',\r\n height: '64px',\r\n flexShrink: 0,\r\n // Drawn at the scale of a ~160px ikon so the frame's\r\n // dash pattern stays readable in a 64px swatch.\r\n ...getBorderImageStyle(border, 160)\r\n }}\r\n />\r\n <span\r\n style={{\r\n fontSize: '11px',\r\n color: isSelected ? 'white' : 'var(--ikoneme-text-primary)',\r\n fontWeight: isSelected ? '600' : '400'\r\n }}\r\n >\r\n {border.label}\r\n </span>\r\n <div\r\n className=\"ikon-tooltip\"\r\n style={{\r\n position: 'absolute',\r\n bottom: '100%',\r\n left: '50%',\r\n transform: 'translateX(-50%)',\r\n background: 'rgba(0,0,0,0.95)',\r\n color: 'white',\r\n padding: '6px 10px',\r\n borderRadius: '6px',\r\n fontSize: '11px',\r\n whiteSpace: 'nowrap',\r\n opacity: 0,\r\n pointerEvents: 'none',\r\n transition: 'opacity 0.2s',\r\n marginBottom: '8px',\r\n zIndex: 100\r\n }}\r\n >\r\n {border.label}\r\n </div>\r\n </button>\r\n )\r\n })}\r\n </div>\r\n </>\r\n ) : selectedZone === 'root' ? (\r\n <>\r\n <div\r\n style={{\r\n display: 'flex',\r\n alignItems: 'center',\r\n gap: '8px',\r\n marginBottom: '16px',\r\n padding: '10px 12px',\r\n background: 'var(--ikoneme-surface)',\r\n borderRadius: '8px',\r\n border: '1px solid var(--ikoneme-border)'\r\n }}\r\n >\r\n <Search size={18} color=\"var(--ikoneme-text-secondary)\" />\r\n <input\r\n type=\"text\"\r\n value={rootSearchQuery}\r\n onChange={(e) => setRootSearchQuery(e.target.value)}\r\n placeholder=\"Search icons...\"\r\n style={{\r\n flex: 1,\r\n border: 'none',\r\n background: 'transparent',\r\n color: 'var(--ikoneme-text-primary)',\r\n fontSize: '14px',\r\n outline: 'none'\r\n }}\r\n />\r\n </div>\r\n {rootSearchLoading && (\r\n <p\r\n style={{\r\n color: 'var(--ikoneme-text-secondary)',\r\n fontSize: '13px',\r\n marginBottom: '12px'\r\n }}\r\n >\r\n Searching…\r\n </p>\r\n )}\r\n <div\r\n style={{\r\n display: 'grid',\r\n gridTemplateColumns: `repeat(${ROOT_SEARCH_COLS}, 1fr)`,\r\n gap: '10px'\r\n }}\r\n >\r\n {rootSearchResults.map((icon, idx) => {\r\n const isSelected = getIconUrl(editingIcon.root) === icon.url\r\n return (\r\n <button\r\n key={`${icon.url}-${idx}`}\r\n onClick={() => handleRootSearchIconSelect(icon)}\r\n title={icon.name}\r\n style={{\r\n padding: '12px',\r\n background: isSelected\r\n ? 'var(--ikoneme-primary)'\r\n : 'var(--ikoneme-surface)',\r\n border: '2px solid',\r\n borderColor: isSelected\r\n ? 'var(--ikoneme-primary-dark)'\r\n : 'var(--ikoneme-border)',\r\n borderRadius: '8px',\r\n cursor: 'pointer',\r\n transition: 'all 0.2s',\r\n display: 'flex',\r\n flexDirection: 'column',\r\n alignItems: 'center',\r\n justifyContent: 'center',\r\n aspectRatio: '1',\r\n position: 'relative',\r\n minHeight: '70px',\r\n minWidth: '70px'\r\n }}\r\n onMouseEnter={(e) => {\r\n e.currentTarget.style.transform = 'scale(1.05)'\r\n if (!isSelected) e.currentTarget.style.background = 'var(--ikoneme-hover)'\r\n }}\r\n onMouseLeave={(e) => {\r\n e.currentTarget.style.transform = 'scale(1)'\r\n if (!isSelected) e.currentTarget.style.background = 'var(--ikoneme-surface)'\r\n }}\r\n >\r\n <div\r\n style={{\r\n width: '100%',\r\n height: '100%',\r\n background: 'white',\r\n borderRadius: '4px',\r\n display: 'flex',\r\n alignItems: 'center',\r\n justifyContent: 'center',\r\n padding: '4px'\r\n }}\r\n >\r\n <img\r\n src={icon.url}\r\n alt={icon.name}\r\n style={{\r\n maxWidth: '100%',\r\n maxHeight: '100%',\r\n width: '100%',\r\n height: '100%',\r\n objectFit: 'contain'\r\n }}\r\n onError={(e) => {\r\n e.target.style.display = 'none'\r\n }}\r\n />\r\n </div>\r\n <div\r\n className=\"ikon-tooltip\"\r\n style={{\r\n position: 'absolute',\r\n bottom: '100%',\r\n left: '50%',\r\n transform: 'translateX(-50%)',\r\n background: 'rgba(0, 0, 0, 0.95)',\r\n color: 'white',\r\n padding: '6px 10px',\r\n borderRadius: '6px',\r\n fontSize: '11px',\r\n whiteSpace: 'nowrap',\r\n opacity: 0,\r\n pointerEvents: 'none',\r\n transition: 'opacity 0.2s',\r\n marginBottom: '8px',\r\n zIndex: 100\r\n }}\r\n >\r\n {icon.name}\r\n </div>\r\n </button>\r\n )\r\n })}\r\n </div>\r\n </>\r\n ) : (\r\n <div\r\n style={{\r\n display: 'grid',\r\n gridTemplateColumns:\r\n ZONE_CONFIG[selectedZone].length <= 3\r\n ? 'repeat(3, 1fr)'\r\n : 'repeat(auto-fit, minmax(90px, 1fr))',\r\n gap: '10px'\r\n }}\r\n >\r\n {ZONE_CONFIG[selectedZone].map((iconConfig, idx) => {\r\n let isSelected = false\r\n\r\n if (selectedZone === 'reference') {\r\n const asteriskUrl = ZONE_CONFIG.reference[0].url\r\n if (iconConfig.url === asteriskUrl) {\r\n isSelected = getIconUrl(editingIcon.reference?.left) === asteriskUrl\r\n } else {\r\n isSelected = getIconUrl(editingIcon.reference?.right) === iconConfig.url\r\n }\r\n } else {\r\n isSelected = getIconUrl(editingIcon[selectedZone]) === iconConfig.url\r\n }\r\n\r\n return (\r\n <button\r\n key={idx}\r\n onClick={() => handleZoneChange(selectedZone, iconConfig.url)}\r\n title={iconConfig.tooltip}\r\n style={{\r\n padding: '12px',\r\n background: isSelected ? 'var(--ikoneme-primary)' : 'var(--ikoneme-surface)',\r\n border: '2px solid',\r\n borderColor: isSelected\r\n ? 'var(--ikoneme-primary-dark)'\r\n : 'var(--ikoneme-border)',\r\n borderRadius: '8px',\r\n cursor: 'pointer',\r\n transition: 'all 0.2s',\r\n display: 'flex',\r\n flexDirection: 'column',\r\n alignItems: 'center',\r\n justifyContent: 'center',\r\n aspectRatio: '1',\r\n position: 'relative',\r\n minHeight: '70px',\r\n minWidth: '70px'\r\n }}\r\n onMouseEnter={(e) => {\r\n e.currentTarget.style.transform = 'scale(1.05)'\r\n if (!isSelected) {\r\n e.currentTarget.style.background = 'var(--ikoneme-hover)'\r\n }\r\n }}\r\n onMouseLeave={(e) => {\r\n e.currentTarget.style.transform = 'scale(1)'\r\n if (!isSelected) {\r\n e.currentTarget.style.background = 'var(--ikoneme-surface)'\r\n }\r\n }}\r\n >\r\n {/* Render image for all zones with white background */}\r\n <div\r\n style={{\r\n width: '100%',\r\n height: '100%',\r\n background: 'white',\r\n borderRadius: '4px',\r\n display: 'flex',\r\n alignItems: 'center',\r\n justifyContent: 'center',\r\n padding: '4px'\r\n }}\r\n >\r\n <img\r\n src={iconConfig.url}\r\n alt={iconConfig.tooltip}\r\n style={{\r\n maxWidth: '100%',\r\n maxHeight: '100%',\r\n width: '100%',\r\n height: '100%',\r\n objectFit: 'contain'\r\n }}\r\n />\r\n </div>\r\n\r\n {/* Tooltip on hover */}\r\n <div\r\n style={{\r\n position: 'absolute',\r\n bottom: '100%',\r\n left: '50%',\r\n transform: 'translateX(-50%)',\r\n background: 'rgba(0, 0, 0, 0.95)',\r\n color: 'white',\r\n padding: '6px 10px',\r\n borderRadius: '6px',\r\n fontSize: '11px',\r\n whiteSpace: 'nowrap',\r\n opacity: 0,\r\n pointerEvents: 'none',\r\n transition: 'opacity 0.2s',\r\n marginBottom: '8px',\r\n zIndex: 100\r\n }}\r\n className=\"ikon-tooltip\"\r\n >\r\n {iconConfig.tooltip}\r\n </div>\r\n </button>\r\n )\r\n })}\r\n </div>\r\n )}\r\n </div>\r\n\r\n <style>{`\r\n button:hover .ikon-tooltip {\r\n opacity: 1 !important;\r\n }\r\n `}</style>\r\n </div>\r\n </div>\r\n )\r\n}\r\n\r\nexport default IkonEditor\r\n","import React from 'react'\nimport { X } from 'lucide-react'\nimport Ikon from './Ikon'\n\n// Full-screen \"lightbox\" shown when zoom is enabled on <Ikoneme> and the\n// viewer clicks an ikon: a bigger, read-only render of that single ikon so\n// its zones/border are easy to make out.\nfunction IkonZoomView({ ikon, size = 320, onClose }) {\n const clampedSize =\n typeof window !== 'undefined'\n ? Math.max(120, Math.min(size, window.innerWidth - 48, window.innerHeight - 156))\n : size\n\n return (\n <div\n role=\"dialog\"\n aria-modal=\"true\"\n aria-label=\"Zoomed ikon\"\n onClick={onClose}\n style={{\n position: 'fixed',\n inset: 0,\n background: 'rgba(0, 0, 0, 0.75)',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n zIndex: 1000,\n padding: '24px'\n }}\n >\n <div\n onClick={(e) => e.stopPropagation()}\n style={{\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'center',\n gap: '32px',\n maxWidth: '100%'\n }}\n >\n <Ikon ikon={ikon} size={clampedSize} />\n <button\n onClick={onClose}\n style={{\n width: '40px',\n height: '40px',\n borderRadius: '50%',\n border: 'none',\n background: 'var(--ikoneme-panel-bg)',\n color: 'var(--ikoneme-text-primary)',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n cursor: 'pointer'\n }}\n title=\"Close\"\n aria-label=\"Close\"\n >\n <X size={20} />\n </button>\n </div>\n </div>\n )\n}\n\nexport default IkonZoomView\n","// Default values for the CSS custom properties used by ikoneme-lib components.\n// These are applied as inline styles on the library's wrapper elements, so the\n// library renders correctly with zero setup. A host app can override any of\n// them by passing a `theme` prop (see <Ikoneme theme={{ '--ikoneme-primary': '#123456' }} />)\n// or by redefining the same custom properties on an ancestor element.\nexport const DEFAULT_THEME = {\n '--ikoneme-primary': '#00a884',\n '--ikoneme-primary-dark': '#008069',\n '--ikoneme-background': '#0c0e12',\n '--ikoneme-panel-bg': '#181b20',\n '--ikoneme-surface': '#080a0e',\n '--ikoneme-border': '#2a2e36',\n '--ikoneme-text-primary': '#e9edef',\n '--ikoneme-text-secondary': '#8696a0',\n '--ikoneme-hover': '#2a2e36'\n}\n","import React, { useState } from 'react'\nimport Ikon from './Ikon'\nimport IkonEditor from './IkonEditor'\nimport IkonZoomView from './IkonZoomView'\nimport { DEFAULT_THEME } from './theme'\n\n/**\n * Renders an ikoneme — an ordered list of ikons — from its rich JSON payload,\n * exactly as produced by the KomunIKON NLP pipeline / used in ikonchat:\n *\n * [{ context, reference: { left, right }, role, modes, root, rootName, tenses, border }, ...]\n *\n * Two modes:\n * - \"view\" (default): read-only rendering, suitable for a chat/messaging timeline.\n * - \"edit\": adds hover/tap edit & delete controls per ikon and opens the full\n * ikon editor on edit, calling `onChange` with the updated ikoneme.\n *\n * Zoom: when `zoom` is true (default), clicking any ikon opens a large,\n * read-only view of it — independent of `mode` and of `onIkonClick`. When\n * `zoom` is false, clicking an ikon does nothing by itself (the click is\n * ignored for zoom purposes; `onIkonClick`, if provided, still fires in\n * \"view\" mode).\n */\nfunction Ikoneme({\n ikons = [],\n mode = 'view',\n size = 64,\n gap = 6,\n zoom = true,\n zoomSize = 320,\n onChange,\n onIkonClick,\n searchRoot,\n theme,\n className,\n style\n}) {\n const [editingIndex, setEditingIndex] = useState(null)\n const [zoomedIndex, setZoomedIndex] = useState(null)\n const isEdit = mode === 'edit'\n\n const handleDelete = (index) => {\n if (!onChange) return\n onChange(ikons.filter((_, i) => i !== index))\n }\n\n const handleSave = (updatedIkon) => {\n if (editingIndex != null && onChange) {\n onChange(ikons.map((ikon, i) => (i === editingIndex ? updatedIkon : ikon)))\n }\n setEditingIndex(null)\n }\n\n const handleIkonClick = (ikon, index) => {\n if (!isEdit && onIkonClick) onIkonClick(ikon, index)\n if (zoom) setZoomedIndex(index)\n }\n\n const themeVars = { ...DEFAULT_THEME, ...theme }\n const clickable = zoom || (!isEdit && !!onIkonClick)\n\n return (\n <div\n className={['ikoneme', className].filter(Boolean).join(' ')}\n style={{\n display: 'flex',\n flexWrap: 'wrap',\n alignItems: 'center',\n gap: `${gap}px`,\n ...themeVars,\n ...style\n }}\n >\n {ikons.map((ikon, index) => (\n <Ikon\n key={index}\n ikon={ikon}\n size={size}\n onClick={clickable ? () => handleIkonClick(ikon, index) : undefined}\n onEdit={isEdit ? () => setEditingIndex(index) : undefined}\n onDelete={isEdit && onChange ? () => handleDelete(index) : undefined}\n />\n ))}\n\n {isEdit && editingIndex != null && ikons[editingIndex] && (\n <div style={themeVars}>\n <IkonEditor\n ikon={ikons[editingIndex]}\n searchRoot={searchRoot}\n onSave={handleSave}\n onClose={() => setEditingIndex(null)}\n />\n </div>\n )}\n\n {zoom && zoomedIndex != null && ikons[zoomedIndex] && (\n <div style={themeVars}>\n <IkonZoomView\n ikon={ikons[zoomedIndex]}\n size={zoomSize}\n onClose={() => setZoomedIndex(null)}\n />\n </div>\n )}\n </div>\n )\n}\n\nexport default Ikoneme\n","// Draws ikons onto a <canvas> with the same layout, tints and border artwork\r\n// as the on-screen <Ikon> — for exporting an ikoneme as an image (PNG).\r\nimport { getBorderConfig, getBorderMetrics, getIconDisplayUrl } from './ikonSchema'\r\nimport {\r\n TRACK_WEIGHTS,\r\n REF_WEIGHTS,\r\n ZONE_BACKGROUNDS,\r\n ZONE_DIVIDER,\r\n ZONE_GRID,\r\n getIkonPaddings,\r\n trackOffsets\r\n} from './ikonLayout'\r\n\r\n// Zones that draw a hairline on their right / bottom edge (as <Ikon> does).\r\nconst DIVIDERS = {\r\n context: { right: true, bottom: true },\r\n reference: { right: true, bottom: true },\r\n role: { right: false, bottom: true },\r\n modes: { right: true, bottom: true },\r\n root: { right: true, bottom: true },\r\n east: { right: false, bottom: true },\r\n tenses: { right: false, bottom: false }\r\n}\r\n\r\n// Loaded images by URL. Resolves to null when an image fails to load, so a\r\n// broken icon is skipped instead of failing the whole render.\r\nconst imageCache = new Map()\r\nfunction loadImage(url) {\r\n if (!url) return Promise.resolve(null)\r\n if (!imageCache.has(url)) {\r\n imageCache.set(\r\n url,\r\n new Promise((resolve) => {\r\n const img = new Image()\r\n // Needed so remote icons don't taint the canvas (toBlob would throw).\r\n img.crossOrigin = 'anonymous'\r\n img.onload = () => resolve(img)\r\n img.onerror = () => {\r\n imageCache.delete(url)\r\n resolve(null)\r\n }\r\n img.src = url\r\n })\r\n )\r\n }\r\n return imageCache.get(url)\r\n}\r\n\r\n// Draws `img` inside the rect, scaled to fit and centered (object-fit: contain).\r\nfunction drawContained(ctx, img, x, y, w, h) {\r\n if (!img || w <= 0 || h <= 0) return\r\n const iw = img.naturalWidth || img.width\r\n const ih = img.naturalHeight || img.height\r\n if (!iw || !ih) return\r\n const scale = Math.min(w / iw, h / ih)\r\n const dw = iw * scale\r\n const dh = ih * scale\r\n ctx.drawImage(img, x + (w - dw) / 2, y + (h - dh) / 2, dw, dh)\r\n}\r\n\r\n// Root without an image (no IkonDB match): its name as centered text.\r\nfunction drawZoneText(ctx, text, x, y, w, h, size) {\r\n ctx.save()\r\n ctx.fillStyle = '#888'\r\n ctx.font = `${Math.max(10, Math.round(size / 12))}px sans-serif`\r\n ctx.textAlign = 'center'\r\n ctx.textBaseline = 'middle'\r\n ctx.fillText(text, x + w / 2, y + h / 2, w)\r\n ctx.restore()\r\n}\r\n\r\nfunction drawDividers(ctx, zone, x, y, w, h) {\r\n const { right, bottom } = DIVIDERS[zone]\r\n ctx.fillStyle = ZONE_DIVIDER\r\n if (right) ctx.fillRect(x + w - 1, y, 1, h)\r\n if (bottom) ctx.fillRect(x, y + h - 1, w, 1)\r\n}\r\n\r\n// The official border artwork, 9-sliced like CSS border-image does on screen:\r\n// corners and frame thickness keep their proportions, the plural (double)\r\n// frame squeezes its dash pattern into the top/bottom edges.\r\nasync function drawBorder(ctx, config, x, y, size) {\r\n const img = await loadImage(config.image)\r\n if (!img) return\r\n const unitsWide = config.plural ? 150 : 78\r\n // Rasterize the SVG at 2x the target scale first so the slices stay crisp.\r\n const k = (size / 78) * 2\r\n const art = document.createElement('canvas')\r\n art.width = Math.round(unitsWide * k)\r\n art.height = Math.round(78 * k)\r\n art.getContext('2d').drawImage(img, 0, 0, art.width, art.height)\r\n\r\n const s = 9 * k\r\n const { corner: c } = getBorderMetrics(size)\r\n const aw = art.width\r\n const ah = art.height\r\n const pieces = [\r\n [0, 0, s, s, x, y, c, c],\r\n [aw - s, 0, s, s, x + size - c, y, c, c],\r\n [0, ah - s, s, s, x, y + size - c, c, c],\r\n [aw - s, ah - s, s, s, x + size - c, y + size - c, c, c],\r\n [s, 0, aw - 2 * s, s, x + c, y, size - 2 * c, c],\r\n [s, ah - s, aw - 2 * s, s, x + c, y + size - c, size - 2 * c, c],\r\n [0, s, s, ah - 2 * s, x, y + c, c, size - 2 * c],\r\n [aw - s, s, s, ah - 2 * s, x + size - c, y + c, c, size - 2 * c]\r\n ]\r\n for (const [sx, sy, sw, sh, dx, dy, dw, dh] of pieces) {\r\n ctx.drawImage(art, sx, sy, sw, sh, dx, dy, dw, dh)\r\n }\r\n}\r\n\r\n// Draws one ikon as a `size` px square with its top-left corner at (x, y).\r\nexport async function drawIkon(ctx, ikon, x, y, size) {\r\n const border = ikon?.border ? getBorderConfig(ikon.border) : null\r\n const frame = border ? getBorderMetrics(size).frame : 1\r\n const { framePad, zonePad, rootPad } = getIkonPaddings(size)\r\n\r\n // Card fill, inside the frame (the artwork draws its own outer corners).\r\n ctx.fillStyle = '#ffffff'\r\n ctx.fillRect(x + frame, y + frame, size - 2 * frame, size - 2 * frame)\r\n if (border) {\r\n await drawBorder(ctx, border, x, y, size)\r\n } else {\r\n ctx.strokeStyle = 'rgba(255, 255, 255, 0.1)'\r\n ctx.lineWidth = 1\r\n ctx.strokeRect(x + 0.5, y + 0.5, size - 1, size - 1)\r\n }\r\n\r\n const inset = frame + framePad\r\n const inner = size - 2 * inset\r\n const cols = trackOffsets(inner, TRACK_WEIGHTS).map((o) => x + inset + o)\r\n const rows = trackOffsets(inner, TRACK_WEIGHTS).map((o) => y + inset + o)\r\n\r\n const drawing = []\r\n for (const [\r\n zone,\r\n {\r\n cols: [c0, c1],\r\n rows: [r0, r1]\r\n }\r\n ] of Object.entries(ZONE_GRID)) {\r\n const zx = cols[c0]\r\n const zy = rows[r0]\r\n const zw = cols[c1] - zx\r\n const zh = rows[r1] - zy\r\n ctx.fillStyle = ZONE_BACKGROUNDS[zone]\r\n ctx.fillRect(zx, zy, zw, zh)\r\n drawDividers(ctx, zone, zx, zy, zw, zh)\r\n\r\n if (zone === 'reference') {\r\n // Two icon slots (left/right) between two spacers, each with a divider.\r\n const slots = trackOffsets(zw, REF_WEIGHTS).map((o) => zx + o)\r\n ctx.fillStyle = ZONE_DIVIDER\r\n for (let i = 1; i <= 3; i++) ctx.fillRect(slots[i] - 1, zy, 1, zh - 1)\r\n ;[\r\n [ikon?.reference?.left, 1],\r\n [ikon?.reference?.right, 2]\r\n ].forEach(([value, i]) => {\r\n const sx = slots[i] + zonePad\r\n const sw = slots[i + 1] - slots[i] - 2 * zonePad\r\n drawing.push(\r\n loadImage(getIconDisplayUrl(value)).then((img) =>\r\n drawContained(ctx, img, sx, zy + zonePad, sw, zh - 2 * zonePad)\r\n )\r\n )\r\n })\r\n continue\r\n }\r\n if (zone === 'east') continue\r\n\r\n const value = ikon?.[zone]\r\n const pad = zone === 'root' ? rootPad : zonePad\r\n const url = getIconDisplayUrl(value)\r\n if (!url) {\r\n if (value?.name) drawZoneText(ctx, value.name, zx, zy, zw, zh, size)\r\n continue\r\n }\r\n drawing.push(\r\n loadImage(url).then((img) =>\r\n drawContained(ctx, img, zx + pad, zy + pad, zw - 2 * pad, zh - 2 * pad)\r\n )\r\n )\r\n }\r\n await Promise.all(drawing)\r\n}\r\n\r\n// Renders a whole ikoneme (list of ikons) onto a new canvas, `perRow` ikons\r\n// per row. `title` (optional) is drawn above the ikons.\r\nexport async function renderIkonemeToCanvas(\r\n ikons,\r\n {\r\n size = 120,\r\n gap = 0,\r\n padding = 40,\r\n perRow = 8,\r\n background = '#ffffff',\r\n title = null,\r\n titleColor = '#000000',\r\n titleFont = '16px sans-serif',\r\n pixelRatio = 1\r\n } = {}\r\n) {\r\n const list = ikons?.length ? ikons : []\r\n const columns = Math.max(1, Math.min(list.length, perRow))\r\n const rowCount = Math.max(1, Math.ceil(list.length / columns))\r\n const titleHeight = title ? 60 : 0\r\n const width = padding * 2 + columns * size + (columns - 1) * gap\r\n const height = padding * 2 + titleHeight + rowCount * size + (rowCount - 1) * gap\r\n\r\n const canvas = document.createElement('canvas')\r\n canvas.width = Math.round(width * pixelRatio)\r\n canvas.height = Math.round(height * pixelRatio)\r\n const ctx = canvas.getContext('2d')\r\n ctx.scale(pixelRatio, pixelRatio)\r\n\r\n ctx.fillStyle = background\r\n ctx.fillRect(0, 0, width, height)\r\n if (title) {\r\n ctx.fillStyle = titleColor\r\n ctx.font = titleFont\r\n ctx.fillText(title, padding, Math.max(16, padding - 10))\r\n }\r\n\r\n await Promise.all(\r\n list.map((ikon, i) => {\r\n const x = padding + (i % columns) * (size + gap)\r\n const y = padding + titleHeight + Math.floor(i / columns) * (size + gap)\r\n return drawIkon(ctx, ikon, x, y, size)\r\n })\r\n )\r\n return canvas\r\n}\r\n\r\n// Same as renderIkonemeToCanvas, encoded as a PNG Blob.\r\nexport async function renderIkonemeToPng(ikons, options) {\r\n const canvas = await renderIkonemeToCanvas(ikons, options)\r\n return new Promise((resolve, reject) => {\r\n canvas.toBlob(\r\n (blob) => (blob ? resolve(blob) : reject(new Error('Could not encode the PNG'))),\r\n 'image/png'\r\n )\r\n })\r\n}\r\n"],"names":["defaultAttributes","toKebabCase","string","createLucideIcon","iconName","iconNode","Component","forwardRef","color","size","strokeWidth","absoluteStrokeWidth","className","children","rest","ref","createElement","tag","attrs","ArrowLeft","Pen","Search","Trash2","X","IKONDB_BASE_URL","LIST_TTL_MS","listCache","listInFlight","detailCache","pickMediaUrl","media","normalizeMedia","origin","preview","thumb","svg","fetchList","baseUrl","res","body","row","item","getIkonList","list","searchIkons","query","limit","q","matches","getIkonDetails","id","details","defaultSearchRoot","clearIkonDbCache","nameBorder","verbBorder","adjectiveBorder","adverbBorder","conjunctionBorder","neutralBorder","namePluralBorder","verbPluralBorder","adjectivePluralBorder","adverbPluralBorder","conjunctionPluralBorder","neutralPluralBorder","ZONE_CONFIG","BORDER_CONFIG","BORDER_IDS","b","VALID_BORDER_SET","getBorderConfig","borderId","getBorderMetrics","unit","frame","getBorderImageStyle","border","config","corner","slice","getIconConfig","zone","url","_a","getIconUrlByIndex","index","_b","getIconUrl","value","getIconDisplayUrl","toIconObj","createDefaultIkon","createEmptyIkon","normalizeIkon","icon","contextConfig","roleConfig","modesConfig","rootConfig","tensesConfig","_c","_d","_e","_f","_g","normalizeIkoneme","ikons","hashString","str","hash","i","char","SeededRandom","seed","m","min","max","findRootFromIkonDb","word","match","ROOT_NOT_FOUND","generateIkonemeFromText","text","words","ikon","wordHash","rng","hasAsterisk","numberIndex","dbRoot","singularBorders","EDGE_FR","MID_FR","TRACK_WEIGHTS","REF_WEIGHTS","ZONE_BACKGROUNDS","ZONE_DIVIDER","ZONE_GRID","getIkonPaddings","trackOffsets","length","weights","total","sum","w","offsets","SLOT_IMG_STYLE","slotCell","pad","useIsMobile","breakpoint","isMobile","setIsMobile","useState","useEffect","mql","handler","Ikon","onClick","onZoneClick","selectedZone","isSelected","isPaired","onEdit","onDelete","hideActionOverlay","isHovered","setIsHovered","borderConfig","handleZoneClick","e","handleZoneMouseEnter","handleZoneMouseLeave","getZoneStyle","baseStyle","zoneSelected","renderZoneContent","zoneValue","iconConfig","label","jsx","hasButtonArea","buttonSize","buttonGap","buttonRowWidth","iconSizePx","buttonsVisible","renderSize","framePad","zonePad","rootPad","toTracks","gridTracks","refTracks","baseBorderStyle","cardBg","baseBoxShadow","hoverBoxShadow","iconBox","Fragment","jsxs","actionButtonsRow","Edit2","ZONE_INFO","ROOT_SEARCH_MIN_CHARS","ROOT_SEARCH_DEBOUNCE_MS","ROOT_SEARCH_RESULTS_COUNT","ROOT_SEARCH_COLS","IkonEditor","onSave","onClose","searchRoot","editingIcon","setEditingIcon","setSelectedZone","rootSearchQuery","setRootSearchQuery","rootSearchResults","setRootSearchResults","rootSearchLoading","setRootSearchLoading","handleZoneChange","iconObj","asteriskUrl","prev","handleZoneSelect","handleBorderChange","t","handleRootSearchIconSelect","useCallback","handleSave","idx","IkonZoomView","clampedSize","DEFAULT_THEME","Ikoneme","mode","gap","zoom","zoomSize","onChange","onIkonClick","theme","style","editingIndex","setEditingIndex","zoomedIndex","setZoomedIndex","isEdit","handleDelete","_","updatedIkon","handleIkonClick","themeVars","clickable","DIVIDERS","imageCache","loadImage","resolve","img","drawContained","ctx","x","y","h","iw","ih","scale","dw","dh","drawZoneText","drawDividers","right","bottom","drawBorder","unitsWide","k","art","c","aw","ah","pieces","sx","sy","sw","sh","dx","dy","drawIkon","inset","inner","cols","o","rows","drawing","c0","c1","r0","r1","zx","zy","zw","zh","slots","renderIkonemeToCanvas","padding","perRow","background","title","titleColor","titleFont","pixelRatio","columns","rowCount","titleHeight","width","height","canvas","renderIkonemeToPng","options","reject","blob"],"mappings":"wIAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAOA,IAAIA,GAAoB,CACtB,MAAO,6BACP,MAAO,GACP,OAAQ,GACR,QAAS,YACT,KAAM,OACN,OAAQ,eACR,YAAa,EACb,cAAe,QACf,eAAgB,OAClB,ECjBA;AAAA;AAAA;AAAA;AAAA;AAAA,GAUA,MAAMC,GAAeC,GAAWA,EAAO,QAAQ,qBAAsB,OAAO,EAAE,YAAW,EAAG,KAAI,EAC1FC,EAAmB,CAACC,EAAUC,IAAa,CAC/C,MAAMC,EAAYC,EAAAA,WAChB,CAAC,CAAE,MAAAC,EAAQ,eAAgB,KAAAC,EAAO,GAAI,YAAAC,EAAc,EAAG,oBAAAC,EAAqB,UAAAC,EAAY,GAAI,SAAAC,EAAU,GAAGC,CAAI,EAAIC,IAAQC,EAAAA,cACvH,MACA,CACE,IAAAD,EACA,GAAGf,GACH,MAAOS,EACP,OAAQA,EACR,OAAQD,EACR,YAAaG,EAAsB,OAAOD,CAAW,EAAI,GAAK,OAAOD,CAA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CACE,QAAS,YACT,IAAK,qEACX,EACI,CACE,QAAS,aACT,IAAK,2FACX,CACA,EACE,MAAO,CACL,CAAE,QAAS,SAAU,IAAK,kEAAkE,EAC5F,CAAE,QAAS,QAAS,IAAK,iEAAiE,CAC9F,EAGE,KAAM,CACJ,CACE,QAAS,eACT,IAAK,2DACX,EACI,CACE,QAAS,kBACT,IAAK,2DACX,EACI,CACE,QAAS,iBACT,IAAK,2DACX,EACI,CACE,QAAS,WACT,IAAK,4DACX,EACI,CACE,QAAS,cACT,IAAK,4DACX,EACI,CACE,QAAS,gBACT,IAAK,4DACX,EACI,CACE,QAAS,cACT,IAAK,4DACX,CACA,EACE,OAAQ,CACN,CACE,QAAS,OACT,IAAK,6EACX,EACI,CACE,QAAS,OACT,IAAK,6EACX,EACI,CACE,QAAS,OACT,IAAK,6EACX,EACI,CACE,QAAS,QACT,IAAK,8EACX,EACI,CACE,QAAS,QACT,IAAK,8EACX,EACI,CACE,QAAS,QACT,IAAK,8EACX,EACI,CACE,QAAS,KACT,IAAK,2EACX,EACI,CACE,QAAS,QACT,IAAK,8EACX,EACI,CACE,QAAS,QACT,IAAK,8EACX,EACI,CACE,QAAS,SACT,IAAK,+EACX,EACI,CACE,QAAS,QACT,IAAK,8EACX,EACI,CACE,QAAS,SACT,IAAK,+EACX,EACI,CACE,QAAS,KACT,IAAK,2EACX,EACI,CACE,QAAS,QACT,IAAK,8EACX,EACI,CACE,QAAS,QACT,IAAK,8EACX,EACI,CACE,QAAS,SACT,IAAK,+EACX,EACI,CACE,QAAS,QACT,IAAK,8EACX,EACI,CACE,QAAS,SACT,IAAK,+EACX,EACI,CACE,QAAS,KACT,IAAK,2EACX,CACA,CACA,EAMaC,EAAgB,CAC3B,CAAE,GAAI,OAAQ,MAAO,OAAQ,MAAO,UAAW,OAAQ,GAAO,MAAOb,EAAU,EAC/E,CAAE,GAAI,OAAQ,MAAO,OAAQ,MAAO,UAAW,OAAQ,GAAO,MAAOC,EAAU,EAC/E,CAAE,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