@octostar/map-component 0.8.1 → 0.9.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.
Files changed (31) hide show
  1. package/dist/index.mjs +2142 -92
  2. package/dist/index.mjs.map +1 -1
  3. package/dist/styles.css +6 -0
  4. package/dist/types/components/debug-sidebar.d.ts +3 -1
  5. package/dist/types/components/debug-sidebar.d.ts.map +1 -1
  6. package/dist/types/components/demos/poi-sample.d.ts +2 -0
  7. package/dist/types/components/demos/poi-sample.d.ts.map +1 -0
  8. package/dist/types/components/demos/standalone-demo.d.ts.map +1 -1
  9. package/dist/types/components/icon-picker.d.ts +1 -0
  10. package/dist/types/components/icon-picker.d.ts.map +1 -1
  11. package/dist/types/components/layers-panel.d.ts +19 -3
  12. package/dist/types/components/layers-panel.d.ts.map +1 -1
  13. package/dist/types/components/map-editor-canvas.d.ts.map +1 -1
  14. package/dist/types/components/point-icon-settings.d.ts +23 -0
  15. package/dist/types/components/point-icon-settings.d.ts.map +1 -0
  16. package/dist/types/index.d.ts +2 -0
  17. package/dist/types/index.d.ts.map +1 -1
  18. package/dist/types/lib/emoji-list.generated.d.ts +5 -0
  19. package/dist/types/lib/emoji-list.generated.d.ts.map +1 -0
  20. package/dist/types/lib/field-values.d.ts +9 -0
  21. package/dist/types/lib/field-values.d.ts.map +1 -0
  22. package/dist/types/lib/icon-by-field.d.ts +67 -0
  23. package/dist/types/lib/icon-by-field.d.ts.map +1 -0
  24. package/dist/types/lib/map-editor-api.d.ts +7 -0
  25. package/dist/types/lib/map-editor-api.d.ts.map +1 -1
  26. package/dist/types/lib/map-labels.d.ts +62 -6
  27. package/dist/types/lib/map-labels.d.ts.map +1 -1
  28. package/dist/types/lib/paint-feature.d.ts.map +1 -1
  29. package/dist/types/lib/portable-emoji.d.ts +9 -0
  30. package/dist/types/lib/portable-emoji.d.ts.map +1 -0
  31. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -7,10 +7,10 @@ import * as turf from "@turf/turf";
7
7
  import { distance as distance$1, point } from "@turf/turf";
8
8
  import * as THREE from "three";
9
9
  import proj4 from "proj4";
10
- import { Button, Modal, Input, App, message, ConfigProvider, Tooltip, Dropdown, Divider, Popover, Switch, Slider, Tag, Select, Segmented, DatePicker, Collapse, ColorPicker, Tabs, Card, Table } from "antd";
10
+ import { Button, Modal, Input, App, message, ConfigProvider, Tooltip, Dropdown, Divider, Popover, Slider, Switch, Segmented, Select, Tag, DatePicker, Collapse, ColorPicker, Tabs, Card, Table } from "antd";
11
11
  import { clsx } from "clsx";
12
12
  import { twMerge } from "tailwind-merge";
13
- import { MousePointer2, Square, Hexagon, Circle, MoreVertical, ChevronDown, Filter, X, Move, Ruler, Search, Scan, Pencil, Database, MapPin, Minus, Pentagon, Type, MoveRight, Undo2, Redo2, Trash2, Navigation, Loader2, Map as Map$1, Satellite, FolderOpen, Upload, Download, MoreHorizontal, Focus, Box, Layers, Plus, ChevronRight, Eye, EyeOff, Lock, Smile, Package, Copy, FolderInput, Save, Calendar, Palette, Blend, RotateCcw, RefreshCw, ExternalLink, Info, ChevronLeft, SkipBack, Pause, Play, Clock, AlertTriangle, TestTube, Users, GripVertical, Plane, FileJson, Check, Phone, Car, AlertCircle } from "lucide-react";
13
+ import { MousePointer2, Square, Hexagon, Circle, MoreVertical, ChevronDown, Filter, X, Move, Ruler, Search, Scan, Pencil, Database, MapPin, Minus, Pentagon, Type, MoveRight, Undo2, Redo2, Trash2, Navigation, Loader2, Smile, Sparkles, Map as Map$1, Satellite, FolderOpen, Upload, Download, MoreHorizontal, Focus, Box, Layers, Plus, ChevronRight, Eye, EyeOff, Lock, Package, Copy, FolderInput, Save, Calendar, Palette, Blend, RotateCcw, RefreshCw, ExternalLink, Info, ChevronLeft, SkipBack, Pause, Play, Clock, AlertTriangle, TestTube, Users, GripVertical, Plane, FileJson, Check, Phone, Car, AlertCircle } from "lucide-react";
14
14
  import { createPortal } from "react-dom";
15
15
  import dayjs from "dayjs";
16
16
  import { createStore, useStore } from "zustand";
@@ -1168,6 +1168,20 @@ const DEFAULT_MAP_LABELS = {
1168
1168
  categories: "Categories",
1169
1169
  gradient: "Gradient",
1170
1170
  pointIcon: "Point Icon",
1171
+ iconSameForAll: "Same for all",
1172
+ iconByFieldValue: "By field value",
1173
+ icons: "Icons",
1174
+ iconsAssigning: "Assigning icons…",
1175
+ iconsAssignedByAi: "Icons assigned by AI",
1176
+ iconsAssignedByKeywords: "Icons assigned by keyword match",
1177
+ reassignIcons: "Reassign",
1178
+ reassignIconsWithAi: "Let the AI assign every icon again",
1179
+ reassignIconsByKeywords: "Assign every icon again by keyword match (no AI connected)",
1180
+ iconAiUnavailable: (error) => `AI unavailable, used keyword match (${error})`,
1181
+ iconAiNoUsableIcon: "The AI suggested no icon the map can draw, used keyword match",
1182
+ assignNewIcons: (count) => `Assign ${count} new ${plural(count, "value")}`,
1183
+ iconOtherValues: "All other values",
1184
+ iconEmptyOrUnassigned: "Empty or unassigned",
1171
1185
  legend: "Legend",
1172
1186
  legendTop: (count) => `Legend (top ${count})`,
1173
1187
  legendSampled: "Legend (sampled)",
@@ -1343,7 +1357,21 @@ const DEFAULT_MAP_LABELS = {
1343
1357
  noIconSelected: "No icon selected",
1344
1358
  clearIcon: "Clear",
1345
1359
  cancel: "Cancel",
1346
- emptyTrigger: "icon"
1360
+ emptyTrigger: "icon",
1361
+ anyEmojiHint: "Any other emoji works too: type or paste it in the search",
1362
+ useEmoji: (emoji) => `Use ${emoji}`,
1363
+ emojiNotEverywhere: "This emoji may not show on every computer: pick another",
1364
+ customEmoji: "Emoji",
1365
+ emojiGroups: {
1366
+ smileys: "Smileys",
1367
+ people: "People",
1368
+ nature: "Animals & nature",
1369
+ food: "Food & drink",
1370
+ travel: "Travel & places",
1371
+ activities: "Activities",
1372
+ objects: "Objects",
1373
+ symbols: "Symbols"
1374
+ }
1347
1375
  },
1348
1376
  iconCategories,
1349
1377
  iconNames,
@@ -2910,6 +2938,22 @@ function resolveIcon(value) {
2910
2938
  }
2911
2939
  return lastResolvedIcon;
2912
2940
  }
2941
+ const resolvedValueIcons = /* @__PURE__ */ new WeakMap();
2942
+ function assignedValueIcon(properties, iconConfig) {
2943
+ if (!(iconConfig == null ? void 0 : iconConfig.enabled) || iconConfig.mode !== "field" || !iconConfig.fieldName || !iconConfig.valueIcons) return "";
2944
+ const key = categoricalKey(properties == null ? void 0 : properties[iconConfig.fieldName]);
2945
+ if (key === null) return "";
2946
+ let resolved = resolvedValueIcons.get(iconConfig.valueIcons);
2947
+ if (!resolved) {
2948
+ resolved = /* @__PURE__ */ new Map();
2949
+ for (const [value, icon] of Object.entries(iconConfig.valueIcons)) {
2950
+ const emoji = resolveIcon(icon);
2951
+ if (emoji) resolved.set(value, emoji);
2952
+ }
2953
+ resolvedValueIcons.set(iconConfig.valueIcons, resolved);
2954
+ }
2955
+ return resolved.get(key) ?? "";
2956
+ }
2913
2957
  const heatmapHidesPoints = (layer) => {
2914
2958
  var _a;
2915
2959
  return ((_a = layer == null ? void 0 : layer.heatmapConfig) == null ? void 0 : _a.enabled) === true;
@@ -2981,7 +3025,7 @@ function styleFeatureForPaint(f, layer, ctx, slim) {
2981
3025
  let featureIconSize = ((_g = f.properties) == null ? void 0 : _g.pointIconSize) || ((_h = f.properties) == null ? void 0 : _h.iconSize) || 24;
2982
3026
  if (hostSizeMultiplier !== null) featureIconSize *= hostSizeMultiplier;
2983
3027
  const iconConfig = visualConfig == null ? void 0 : visualConfig.icon;
2984
- const layerIcon = !featureIcon && (iconConfig == null ? void 0 : iconConfig.enabled) ? resolveIcon(iconConfig.icon) : "";
3028
+ const layerIcon = assignedValueIcon(f.properties, iconConfig) || (!featureIcon && (iconConfig == null ? void 0 : iconConfig.enabled) ? resolveIcon(iconConfig.icon) : "");
2985
3029
  if (layerIcon) {
2986
3030
  featureIcon = layerIcon;
2987
3031
  featureIconSize = (iconConfig == null ? void 0 : iconConfig.size) ?? 24;
@@ -3526,6 +3570,1327 @@ function IngestProgressOverlay({
3526
3570
  }
3527
3571
  );
3528
3572
  }
3573
+ const EMOJI_GROUPS = ["smileys", "people", "nature", "food", "travel", "activities", "objects", "symbols"];
3574
+ const EMOJI_LIST = {
3575
+ smileys: [
3576
+ ["😀", "grinning face"],
3577
+ ["😃", "grinning face with big eyes"],
3578
+ ["😄", "grinning face with smiling eyes"],
3579
+ ["😁", "beaming face with smiling eyes"],
3580
+ ["😆", "grinning squinting face"],
3581
+ ["😅", "grinning face with sweat"],
3582
+ ["🤣", "rolling on the floor laughing"],
3583
+ ["😂", "face with tears of joy"],
3584
+ ["🙂", "slightly smiling face"],
3585
+ ["🙃", "upside-down face"],
3586
+ ["😉", "winking face"],
3587
+ ["😊", "smiling face with smiling eyes"],
3588
+ ["😇", "smiling face with halo"],
3589
+ ["🥰", "smiling face with hearts"],
3590
+ ["😍", "smiling face with heart-eyes"],
3591
+ ["🤩", "star-struck"],
3592
+ ["😘", "face blowing a kiss"],
3593
+ ["😗", "kissing face"],
3594
+ ["☺️", "smiling face"],
3595
+ ["😚", "kissing face with closed eyes"],
3596
+ ["😙", "kissing face with smiling eyes"],
3597
+ ["😋", "face savoring food"],
3598
+ ["😛", "face with tongue"],
3599
+ ["😜", "winking face with tongue"],
3600
+ ["🤪", "zany face"],
3601
+ ["😝", "squinting face with tongue"],
3602
+ ["🤑", "money-mouth face"],
3603
+ ["🤗", "hugging face"],
3604
+ ["🤭", "face with hand over mouth"],
3605
+ ["🤫", "shushing face"],
3606
+ ["🤔", "thinking face"],
3607
+ ["🤐", "zipper-mouth face"],
3608
+ ["🤨", "face with raised eyebrow"],
3609
+ ["😐", "neutral face"],
3610
+ ["😑", "expressionless face"],
3611
+ ["😶", "face without mouth"],
3612
+ ["😏", "smirking face"],
3613
+ ["😒", "unamused face"],
3614
+ ["🙄", "face with rolling eyes"],
3615
+ ["😬", "grimacing face"],
3616
+ ["🤥", "lying face"],
3617
+ ["😌", "relieved face"],
3618
+ ["😔", "pensive face"],
3619
+ ["😪", "sleepy face"],
3620
+ ["🤤", "drooling face"],
3621
+ ["😴", "sleeping face"],
3622
+ ["😷", "face with medical mask"],
3623
+ ["🤒", "face with thermometer"],
3624
+ ["🤕", "face with head-bandage"],
3625
+ ["🤢", "nauseated face"],
3626
+ ["🤮", "face vomiting"],
3627
+ ["🤧", "sneezing face"],
3628
+ ["🥵", "hot face"],
3629
+ ["🥶", "cold face"],
3630
+ ["🥴", "woozy face"],
3631
+ ["😵", "dizzy face"],
3632
+ ["🤯", "exploding head"],
3633
+ ["🤠", "cowboy hat face"],
3634
+ ["🥳", "partying face"],
3635
+ ["😎", "smiling face with sunglasses"],
3636
+ ["🤓", "nerd face"],
3637
+ ["🧐", "face with monocle"],
3638
+ ["😕", "confused face"],
3639
+ ["😟", "worried face"],
3640
+ ["🙁", "slightly frowning face"],
3641
+ ["☹️", "frowning face"],
3642
+ ["😮", "face with open mouth"],
3643
+ ["😯", "hushed face"],
3644
+ ["😲", "astonished face"],
3645
+ ["😳", "flushed face"],
3646
+ ["🥺", "pleading face"],
3647
+ ["😦", "frowning face with open mouth"],
3648
+ ["😧", "anguished face"],
3649
+ ["😨", "fearful face"],
3650
+ ["😰", "anxious face with sweat"],
3651
+ ["😥", "sad but relieved face"],
3652
+ ["😢", "crying face"],
3653
+ ["😭", "loudly crying face"],
3654
+ ["😱", "face screaming in fear"],
3655
+ ["😖", "confounded face"],
3656
+ ["😣", "persevering face"],
3657
+ ["😞", "disappointed face"],
3658
+ ["😓", "downcast face with sweat"],
3659
+ ["😩", "weary face"],
3660
+ ["😫", "tired face"],
3661
+ ["🥱", "yawning face"],
3662
+ ["😤", "face with steam from nose"],
3663
+ ["😡", "pouting face"],
3664
+ ["😠", "angry face"],
3665
+ ["🤬", "face with symbols on mouth"],
3666
+ ["😈", "smiling face with horns"],
3667
+ ["👿", "angry face with horns"],
3668
+ ["💀", "skull"],
3669
+ ["☠️", "skull and crossbones"],
3670
+ ["💩", "pile of poo"],
3671
+ ["🤡", "clown face"],
3672
+ ["👹", "ogre"],
3673
+ ["👺", "goblin"],
3674
+ ["👻", "ghost"],
3675
+ ["👽", "alien"],
3676
+ ["👾", "alien monster"],
3677
+ ["🤖", "robot"],
3678
+ ["😺", "grinning cat"],
3679
+ ["😸", "grinning cat with smiling eyes"],
3680
+ ["😹", "cat with tears of joy"],
3681
+ ["😻", "smiling cat with heart-eyes"],
3682
+ ["😼", "cat with wry smile"],
3683
+ ["😽", "kissing cat"],
3684
+ ["🙀", "weary cat"],
3685
+ ["😿", "crying cat"],
3686
+ ["😾", "pouting cat"],
3687
+ ["🙈", "see-no-evil monkey"],
3688
+ ["🙉", "hear-no-evil monkey"],
3689
+ ["🙊", "speak-no-evil monkey"],
3690
+ ["💋", "kiss mark"],
3691
+ ["💌", "love letter"],
3692
+ ["💘", "heart with arrow"],
3693
+ ["💝", "heart with ribbon"],
3694
+ ["💖", "sparkling heart"],
3695
+ ["💗", "growing heart"],
3696
+ ["💓", "beating heart"],
3697
+ ["💞", "revolving hearts"],
3698
+ ["💕", "two hearts"],
3699
+ ["💟", "heart decoration"],
3700
+ ["❣️", "heart exclamation"],
3701
+ ["💔", "broken heart"],
3702
+ ["❤️", "red heart"],
3703
+ ["🧡", "orange heart"],
3704
+ ["💛", "yellow heart"],
3705
+ ["💚", "green heart"],
3706
+ ["💙", "blue heart"],
3707
+ ["💜", "purple heart"],
3708
+ ["🤎", "brown heart"],
3709
+ ["🖤", "black heart"],
3710
+ ["🤍", "white heart"],
3711
+ ["💯", "hundred points"],
3712
+ ["💢", "anger symbol"],
3713
+ ["💥", "collision"],
3714
+ ["💫", "dizzy"],
3715
+ ["💦", "sweat droplets"],
3716
+ ["💨", "dashing away"],
3717
+ ["🕳️", "hole"],
3718
+ ["💣", "bomb"],
3719
+ ["💬", "speech balloon"],
3720
+ ["🗨️", "left speech bubble"],
3721
+ ["🗯️", "right anger bubble"],
3722
+ ["💭", "thought balloon"],
3723
+ ["💤", "zzz"]
3724
+ ],
3725
+ people: [
3726
+ ["👋", "waving hand"],
3727
+ ["🤚", "raised back of hand"],
3728
+ ["🖐️", "hand with fingers splayed"],
3729
+ ["✋", "raised hand"],
3730
+ ["🖖", "vulcan salute"],
3731
+ ["👌", "OK hand"],
3732
+ ["🤏", "pinching hand"],
3733
+ ["✌️", "victory hand"],
3734
+ ["🤞", "crossed fingers"],
3735
+ ["🤟", "love-you gesture"],
3736
+ ["🤘", "sign of the horns"],
3737
+ ["🤙", "call me hand"],
3738
+ ["👈", "backhand index pointing left"],
3739
+ ["👉", "backhand index pointing right"],
3740
+ ["👆", "backhand index pointing up"],
3741
+ ["🖕", "middle finger"],
3742
+ ["👇", "backhand index pointing down"],
3743
+ ["☝️", "index pointing up"],
3744
+ ["👍", "thumbs up"],
3745
+ ["👎", "thumbs down"],
3746
+ ["✊", "raised fist"],
3747
+ ["👊", "oncoming fist"],
3748
+ ["🤛", "left-facing fist"],
3749
+ ["🤜", "right-facing fist"],
3750
+ ["👏", "clapping hands"],
3751
+ ["🙌", "raising hands"],
3752
+ ["👐", "open hands"],
3753
+ ["🤲", "palms up together"],
3754
+ ["🤝", "handshake"],
3755
+ ["🙏", "folded hands"],
3756
+ ["✍️", "writing hand"],
3757
+ ["💅", "nail polish"],
3758
+ ["🤳", "selfie"],
3759
+ ["💪", "flexed biceps"],
3760
+ ["🦾", "mechanical arm"],
3761
+ ["🦿", "mechanical leg"],
3762
+ ["🦵", "leg"],
3763
+ ["🦶", "foot"],
3764
+ ["👂", "ear"],
3765
+ ["🦻", "ear with hearing aid"],
3766
+ ["👃", "nose"],
3767
+ ["🧠", "brain"],
3768
+ ["🦷", "tooth"],
3769
+ ["🦴", "bone"],
3770
+ ["👀", "eyes"],
3771
+ ["👁️", "eye"],
3772
+ ["👅", "tongue"],
3773
+ ["👄", "mouth"],
3774
+ ["👶", "baby"],
3775
+ ["🧒", "child"],
3776
+ ["👦", "boy"],
3777
+ ["👧", "girl"],
3778
+ ["🧑", "person"],
3779
+ ["👱", "person: blond hair"],
3780
+ ["👨", "man"],
3781
+ ["🧔", "man: beard"],
3782
+ ["👩", "woman"],
3783
+ ["🧓", "older person"],
3784
+ ["👴", "old man"],
3785
+ ["👵", "old woman"],
3786
+ ["🙍", "person frowning"],
3787
+ ["🙎", "person pouting"],
3788
+ ["🙅", "person gesturing NO"],
3789
+ ["🙆", "person gesturing OK"],
3790
+ ["💁", "person tipping hand"],
3791
+ ["🙋", "person raising hand"],
3792
+ ["🧏", "deaf person"],
3793
+ ["🙇", "person bowing"],
3794
+ ["🤦", "person facepalming"],
3795
+ ["🤷", "person shrugging"],
3796
+ ["👮", "police officer"],
3797
+ ["🕵️", "detective"],
3798
+ ["💂", "guard"],
3799
+ ["👷", "construction worker"],
3800
+ ["🤴", "prince"],
3801
+ ["👸", "princess"],
3802
+ ["👳", "person wearing turban"],
3803
+ ["👲", "man with skullcap"],
3804
+ ["🧕", "woman with headscarf"],
3805
+ ["🤵", "man in tuxedo"],
3806
+ ["👰", "bride with veil"],
3807
+ ["🤰", "pregnant woman"],
3808
+ ["🤱", "breast-feeding"],
3809
+ ["👼", "baby angel"],
3810
+ ["🎅", "Santa Claus"],
3811
+ ["🤶", "Mrs. Claus"],
3812
+ ["🦸", "superhero"],
3813
+ ["🦹", "supervillain"],
3814
+ ["🧙", "mage"],
3815
+ ["🧚", "fairy"],
3816
+ ["🧛", "vampire"],
3817
+ ["🧜", "merperson"],
3818
+ ["🧝", "elf"],
3819
+ ["🧞", "genie"],
3820
+ ["🧟", "zombie"],
3821
+ ["💆", "person getting massage"],
3822
+ ["💇", "person getting haircut"],
3823
+ ["🚶", "person walking"],
3824
+ ["🧍", "person standing"],
3825
+ ["🧎", "person kneeling"],
3826
+ ["🏃", "person running"],
3827
+ ["💃", "woman dancing"],
3828
+ ["🕺", "man dancing"],
3829
+ ["🕴️", "man in suit levitating"],
3830
+ ["👯", "people with bunny ears"],
3831
+ ["🧖", "person in steamy room"],
3832
+ ["🧗", "person climbing"],
3833
+ ["🤺", "person fencing"],
3834
+ ["🏇", "horse racing"],
3835
+ ["⛷️", "skier"],
3836
+ ["🏂", "snowboarder"],
3837
+ ["🏌️", "person golfing"],
3838
+ ["🏄", "person surfing"],
3839
+ ["🚣", "person rowing boat"],
3840
+ ["🏊", "person swimming"],
3841
+ ["⛹️", "person bouncing ball"],
3842
+ ["🏋️", "person lifting weights"],
3843
+ ["🚴", "person biking"],
3844
+ ["🚵", "person mountain biking"],
3845
+ ["🤸", "person cartwheeling"],
3846
+ ["🤼", "people wrestling"],
3847
+ ["🤽", "person playing water polo"],
3848
+ ["🤾", "person playing handball"],
3849
+ ["🤹", "person juggling"],
3850
+ ["🧘", "person in lotus position"],
3851
+ ["🛀", "person taking bath"],
3852
+ ["🛌", "person in bed"],
3853
+ ["👭", "women holding hands"],
3854
+ ["👫", "woman and man holding hands"],
3855
+ ["👬", "men holding hands"],
3856
+ ["💏", "kiss"],
3857
+ ["💑", "couple with heart"],
3858
+ ["👪", "family"],
3859
+ ["🗣️", "speaking head"],
3860
+ ["👤", "bust in silhouette"],
3861
+ ["👥", "busts in silhouette"],
3862
+ ["👣", "footprints"]
3863
+ ],
3864
+ nature: [
3865
+ ["🐵", "monkey face"],
3866
+ ["🐒", "monkey"],
3867
+ ["🦍", "gorilla"],
3868
+ ["🦧", "orangutan"],
3869
+ ["🐶", "dog face"],
3870
+ ["🐕", "dog"],
3871
+ ["🦮", "guide dog"],
3872
+ ["🐩", "poodle"],
3873
+ ["🐺", "wolf"],
3874
+ ["🦊", "fox"],
3875
+ ["🦝", "raccoon"],
3876
+ ["🐱", "cat face"],
3877
+ ["🐈", "cat"],
3878
+ ["🦁", "lion"],
3879
+ ["🐯", "tiger face"],
3880
+ ["🐅", "tiger"],
3881
+ ["🐆", "leopard"],
3882
+ ["🐴", "horse face"],
3883
+ ["🐎", "horse"],
3884
+ ["🦄", "unicorn"],
3885
+ ["🦓", "zebra"],
3886
+ ["🦌", "deer"],
3887
+ ["🐮", "cow face"],
3888
+ ["🐂", "ox"],
3889
+ ["🐃", "water buffalo"],
3890
+ ["🐄", "cow"],
3891
+ ["🐷", "pig face"],
3892
+ ["🐖", "pig"],
3893
+ ["🐗", "boar"],
3894
+ ["🐽", "pig nose"],
3895
+ ["🐏", "ram"],
3896
+ ["🐑", "ewe"],
3897
+ ["🐐", "goat"],
3898
+ ["🐪", "camel"],
3899
+ ["🐫", "two-hump camel"],
3900
+ ["🦙", "llama"],
3901
+ ["🦒", "giraffe"],
3902
+ ["🐘", "elephant"],
3903
+ ["🦏", "rhinoceros"],
3904
+ ["🦛", "hippopotamus"],
3905
+ ["🐭", "mouse face"],
3906
+ ["🐁", "mouse"],
3907
+ ["🐀", "rat"],
3908
+ ["🐹", "hamster"],
3909
+ ["🐰", "rabbit face"],
3910
+ ["🐇", "rabbit"],
3911
+ ["🐿️", "chipmunk"],
3912
+ ["🦔", "hedgehog"],
3913
+ ["🦇", "bat"],
3914
+ ["🐻", "bear"],
3915
+ ["🐨", "koala"],
3916
+ ["🐼", "panda"],
3917
+ ["🦥", "sloth"],
3918
+ ["🦦", "otter"],
3919
+ ["🦨", "skunk"],
3920
+ ["🦘", "kangaroo"],
3921
+ ["🦡", "badger"],
3922
+ ["🐾", "paw prints"],
3923
+ ["🦃", "turkey"],
3924
+ ["🐔", "chicken"],
3925
+ ["🐓", "rooster"],
3926
+ ["🐣", "hatching chick"],
3927
+ ["🐤", "baby chick"],
3928
+ ["🐥", "front-facing baby chick"],
3929
+ ["🐦", "bird"],
3930
+ ["🐧", "penguin"],
3931
+ ["🕊️", "dove"],
3932
+ ["🦅", "eagle"],
3933
+ ["🦆", "duck"],
3934
+ ["🦢", "swan"],
3935
+ ["🦉", "owl"],
3936
+ ["🦩", "flamingo"],
3937
+ ["🦚", "peacock"],
3938
+ ["🦜", "parrot"],
3939
+ ["🐸", "frog"],
3940
+ ["🐊", "crocodile"],
3941
+ ["🐢", "turtle"],
3942
+ ["🦎", "lizard"],
3943
+ ["🐍", "snake"],
3944
+ ["🐲", "dragon face"],
3945
+ ["🐉", "dragon"],
3946
+ ["🦕", "sauropod"],
3947
+ ["🦖", "T-Rex"],
3948
+ ["🐳", "spouting whale"],
3949
+ ["🐋", "whale"],
3950
+ ["🐬", "dolphin"],
3951
+ ["🐟", "fish"],
3952
+ ["🐠", "tropical fish"],
3953
+ ["🐡", "blowfish"],
3954
+ ["🦈", "shark"],
3955
+ ["🐙", "octopus"],
3956
+ ["🐚", "spiral shell"],
3957
+ ["🐌", "snail"],
3958
+ ["🦋", "butterfly"],
3959
+ ["🐛", "bug"],
3960
+ ["🐜", "ant"],
3961
+ ["🐝", "honeybee"],
3962
+ ["🐞", "lady beetle"],
3963
+ ["🦗", "cricket"],
3964
+ ["🕷️", "spider"],
3965
+ ["🕸️", "spider web"],
3966
+ ["🦂", "scorpion"],
3967
+ ["🦟", "mosquito"],
3968
+ ["🦠", "microbe"],
3969
+ ["💐", "bouquet"],
3970
+ ["🌸", "cherry blossom"],
3971
+ ["💮", "white flower"],
3972
+ ["🏵️", "rosette"],
3973
+ ["🌹", "rose"],
3974
+ ["🥀", "wilted flower"],
3975
+ ["🌺", "hibiscus"],
3976
+ ["🌻", "sunflower"],
3977
+ ["🌼", "blossom"],
3978
+ ["🌷", "tulip"],
3979
+ ["🌱", "seedling"],
3980
+ ["🌲", "evergreen tree"],
3981
+ ["🌳", "deciduous tree"],
3982
+ ["🌴", "palm tree"],
3983
+ ["🌵", "cactus"],
3984
+ ["🌾", "sheaf of rice"],
3985
+ ["🌿", "herb"],
3986
+ ["☘️", "shamrock"],
3987
+ ["🍀", "four leaf clover"],
3988
+ ["🍁", "maple leaf"],
3989
+ ["🍂", "fallen leaf"],
3990
+ ["🍃", "leaf fluttering in wind"]
3991
+ ],
3992
+ food: [
3993
+ ["🍇", "grapes"],
3994
+ ["🍈", "melon"],
3995
+ ["🍉", "watermelon"],
3996
+ ["🍊", "tangerine"],
3997
+ ["🍋", "lemon"],
3998
+ ["🍌", "banana"],
3999
+ ["🍍", "pineapple"],
4000
+ ["🥭", "mango"],
4001
+ ["🍎", "red apple"],
4002
+ ["🍏", "green apple"],
4003
+ ["🍐", "pear"],
4004
+ ["🍑", "peach"],
4005
+ ["🍒", "cherries"],
4006
+ ["🍓", "strawberry"],
4007
+ ["🥝", "kiwi fruit"],
4008
+ ["🍅", "tomato"],
4009
+ ["🥥", "coconut"],
4010
+ ["🥑", "avocado"],
4011
+ ["🍆", "eggplant"],
4012
+ ["🥔", "potato"],
4013
+ ["🥕", "carrot"],
4014
+ ["🌽", "ear of corn"],
4015
+ ["🌶️", "hot pepper"],
4016
+ ["🥒", "cucumber"],
4017
+ ["🥬", "leafy green"],
4018
+ ["🥦", "broccoli"],
4019
+ ["🧄", "garlic"],
4020
+ ["🧅", "onion"],
4021
+ ["🍄", "mushroom"],
4022
+ ["🥜", "peanuts"],
4023
+ ["🌰", "chestnut"],
4024
+ ["🍞", "bread"],
4025
+ ["🥐", "croissant"],
4026
+ ["🥖", "baguette bread"],
4027
+ ["🥨", "pretzel"],
4028
+ ["🥯", "bagel"],
4029
+ ["🥞", "pancakes"],
4030
+ ["🧇", "waffle"],
4031
+ ["🧀", "cheese wedge"],
4032
+ ["🍖", "meat on bone"],
4033
+ ["🍗", "poultry leg"],
4034
+ ["🥩", "cut of meat"],
4035
+ ["🥓", "bacon"],
4036
+ ["🍔", "hamburger"],
4037
+ ["🍟", "french fries"],
4038
+ ["🍕", "pizza"],
4039
+ ["🌭", "hot dog"],
4040
+ ["🥪", "sandwich"],
4041
+ ["🌮", "taco"],
4042
+ ["🌯", "burrito"],
4043
+ ["🥙", "stuffed flatbread"],
4044
+ ["🧆", "falafel"],
4045
+ ["🥚", "egg"],
4046
+ ["🍳", "cooking"],
4047
+ ["🥘", "shallow pan of food"],
4048
+ ["🍲", "pot of food"],
4049
+ ["🥣", "bowl with spoon"],
4050
+ ["🥗", "green salad"],
4051
+ ["🍿", "popcorn"],
4052
+ ["🧈", "butter"],
4053
+ ["🧂", "salt"],
4054
+ ["🥫", "canned food"],
4055
+ ["🍱", "bento box"],
4056
+ ["🍘", "rice cracker"],
4057
+ ["🍙", "rice ball"],
4058
+ ["🍚", "cooked rice"],
4059
+ ["🍛", "curry rice"],
4060
+ ["🍜", "steaming bowl"],
4061
+ ["🍝", "spaghetti"],
4062
+ ["🍠", "roasted sweet potato"],
4063
+ ["🍢", "oden"],
4064
+ ["🍣", "sushi"],
4065
+ ["🍤", "fried shrimp"],
4066
+ ["🍥", "fish cake with swirl"],
4067
+ ["🥮", "moon cake"],
4068
+ ["🍡", "dango"],
4069
+ ["🥟", "dumpling"],
4070
+ ["🥠", "fortune cookie"],
4071
+ ["🥡", "takeout box"],
4072
+ ["🦀", "crab"],
4073
+ ["🦞", "lobster"],
4074
+ ["🦐", "shrimp"],
4075
+ ["🦑", "squid"],
4076
+ ["🦪", "oyster"],
4077
+ ["🍦", "soft ice cream"],
4078
+ ["🍧", "shaved ice"],
4079
+ ["🍨", "ice cream"],
4080
+ ["🍩", "doughnut"],
4081
+ ["🍪", "cookie"],
4082
+ ["🎂", "birthday cake"],
4083
+ ["🍰", "shortcake"],
4084
+ ["🧁", "cupcake"],
4085
+ ["🥧", "pie"],
4086
+ ["🍫", "chocolate bar"],
4087
+ ["🍬", "candy"],
4088
+ ["🍭", "lollipop"],
4089
+ ["🍮", "custard"],
4090
+ ["🍯", "honey pot"],
4091
+ ["🍼", "baby bottle"],
4092
+ ["🥛", "glass of milk"],
4093
+ ["☕", "hot beverage"],
4094
+ ["🍵", "teacup without handle"],
4095
+ ["🍶", "sake"],
4096
+ ["🍾", "bottle with popping cork"],
4097
+ ["🍷", "wine glass"],
4098
+ ["🍸", "cocktail glass"],
4099
+ ["🍹", "tropical drink"],
4100
+ ["🍺", "beer mug"],
4101
+ ["🍻", "clinking beer mugs"],
4102
+ ["🥂", "clinking glasses"],
4103
+ ["🥃", "tumbler glass"],
4104
+ ["🥤", "cup with straw"],
4105
+ ["🧃", "beverage box"],
4106
+ ["🧉", "mate"],
4107
+ ["🧊", "ice"],
4108
+ ["🥢", "chopsticks"],
4109
+ ["🍽️", "fork and knife with plate"],
4110
+ ["🍴", "fork and knife"],
4111
+ ["🥄", "spoon"],
4112
+ ["🔪", "kitchen knife"],
4113
+ ["🏺", "amphora"]
4114
+ ],
4115
+ travel: [
4116
+ ["🌍", "globe showing Europe-Africa"],
4117
+ ["🌎", "globe showing Americas"],
4118
+ ["🌏", "globe showing Asia-Australia"],
4119
+ ["🌐", "globe with meridians"],
4120
+ ["🗺️", "world map"],
4121
+ ["🗾", "map of Japan"],
4122
+ ["🧭", "compass"],
4123
+ ["🏔️", "snow-capped mountain"],
4124
+ ["⛰️", "mountain"],
4125
+ ["🌋", "volcano"],
4126
+ ["🗻", "mount fuji"],
4127
+ ["🏕️", "camping"],
4128
+ ["🏖️", "beach with umbrella"],
4129
+ ["🏜️", "desert"],
4130
+ ["🏝️", "desert island"],
4131
+ ["🏞️", "national park"],
4132
+ ["🏟️", "stadium"],
4133
+ ["🏛️", "classical building"],
4134
+ ["🏗️", "building construction"],
4135
+ ["🧱", "brick"],
4136
+ ["🏘️", "houses"],
4137
+ ["🏚️", "derelict house"],
4138
+ ["🏠", "house"],
4139
+ ["🏡", "house with garden"],
4140
+ ["🏢", "office building"],
4141
+ ["🏣", "Japanese post office"],
4142
+ ["🏤", "post office"],
4143
+ ["🏥", "hospital"],
4144
+ ["🏦", "bank"],
4145
+ ["🏨", "hotel"],
4146
+ ["🏩", "love hotel"],
4147
+ ["🏪", "convenience store"],
4148
+ ["🏫", "school"],
4149
+ ["🏬", "department store"],
4150
+ ["🏭", "factory"],
4151
+ ["🏯", "Japanese castle"],
4152
+ ["🏰", "castle"],
4153
+ ["💒", "wedding"],
4154
+ ["🗼", "Tokyo tower"],
4155
+ ["🗽", "Statue of Liberty"],
4156
+ ["⛪", "church"],
4157
+ ["🕌", "mosque"],
4158
+ ["🛕", "hindu temple"],
4159
+ ["🕍", "synagogue"],
4160
+ ["⛩️", "shinto shrine"],
4161
+ ["🕋", "kaaba"],
4162
+ ["⛲", "fountain"],
4163
+ ["⛺", "tent"],
4164
+ ["🌁", "foggy"],
4165
+ ["🌃", "night with stars"],
4166
+ ["🏙️", "cityscape"],
4167
+ ["🌄", "sunrise over mountains"],
4168
+ ["🌅", "sunrise"],
4169
+ ["🌆", "cityscape at dusk"],
4170
+ ["🌇", "sunset"],
4171
+ ["🌉", "bridge at night"],
4172
+ ["♨️", "hot springs"],
4173
+ ["🎠", "carousel horse"],
4174
+ ["🎡", "ferris wheel"],
4175
+ ["🎢", "roller coaster"],
4176
+ ["💈", "barber pole"],
4177
+ ["🎪", "circus tent"],
4178
+ ["🚂", "locomotive"],
4179
+ ["🚃", "railway car"],
4180
+ ["🚄", "high-speed train"],
4181
+ ["🚅", "bullet train"],
4182
+ ["🚆", "train"],
4183
+ ["🚇", "metro"],
4184
+ ["🚈", "light rail"],
4185
+ ["🚉", "station"],
4186
+ ["🚊", "tram"],
4187
+ ["🚝", "monorail"],
4188
+ ["🚞", "mountain railway"],
4189
+ ["🚋", "tram car"],
4190
+ ["🚌", "bus"],
4191
+ ["🚍", "oncoming bus"],
4192
+ ["🚎", "trolleybus"],
4193
+ ["🚐", "minibus"],
4194
+ ["🚑", "ambulance"],
4195
+ ["🚒", "fire engine"],
4196
+ ["🚓", "police car"],
4197
+ ["🚔", "oncoming police car"],
4198
+ ["🚕", "taxi"],
4199
+ ["🚖", "oncoming taxi"],
4200
+ ["🚗", "automobile"],
4201
+ ["🚘", "oncoming automobile"],
4202
+ ["🚙", "sport utility vehicle"],
4203
+ ["🚚", "delivery truck"],
4204
+ ["🚛", "articulated lorry"],
4205
+ ["🚜", "tractor"],
4206
+ ["🏎️", "racing car"],
4207
+ ["🏍️", "motorcycle"],
4208
+ ["🛵", "motor scooter"],
4209
+ ["🦽", "manual wheelchair"],
4210
+ ["🦼", "motorized wheelchair"],
4211
+ ["🛺", "auto rickshaw"],
4212
+ ["🚲", "bicycle"],
4213
+ ["🛴", "kick scooter"],
4214
+ ["🛹", "skateboard"],
4215
+ ["🚏", "bus stop"],
4216
+ ["🛣️", "motorway"],
4217
+ ["🛤️", "railway track"],
4218
+ ["🛢️", "oil drum"],
4219
+ ["⛽", "fuel pump"],
4220
+ ["🚨", "police car light"],
4221
+ ["🚥", "horizontal traffic light"],
4222
+ ["🚦", "vertical traffic light"],
4223
+ ["🛑", "stop sign"],
4224
+ ["🚧", "construction"],
4225
+ ["⚓", "anchor"],
4226
+ ["⛵", "sailboat"],
4227
+ ["🛶", "canoe"],
4228
+ ["🚤", "speedboat"],
4229
+ ["🛳️", "passenger ship"],
4230
+ ["⛴️", "ferry"],
4231
+ ["🛥️", "motor boat"],
4232
+ ["🚢", "ship"],
4233
+ ["✈️", "airplane"],
4234
+ ["🛩️", "small airplane"],
4235
+ ["🛫", "airplane departure"],
4236
+ ["🛬", "airplane arrival"],
4237
+ ["🪂", "parachute"],
4238
+ ["💺", "seat"],
4239
+ ["🚁", "helicopter"],
4240
+ ["🚟", "suspension railway"],
4241
+ ["🚠", "mountain cableway"],
4242
+ ["🚡", "aerial tramway"],
4243
+ ["🛰️", "satellite"],
4244
+ ["🚀", "rocket"],
4245
+ ["🛸", "flying saucer"],
4246
+ ["🛎️", "bellhop bell"],
4247
+ ["🧳", "luggage"],
4248
+ ["⌛", "hourglass done"],
4249
+ ["⏳", "hourglass not done"],
4250
+ ["⌚", "watch"],
4251
+ ["⏰", "alarm clock"],
4252
+ ["⏱️", "stopwatch"],
4253
+ ["⏲️", "timer clock"],
4254
+ ["🕰️", "mantelpiece clock"],
4255
+ ["🕛", "twelve o’clock"],
4256
+ ["🕧", "twelve-thirty"],
4257
+ ["🕐", "one o’clock"],
4258
+ ["🕜", "one-thirty"],
4259
+ ["🕑", "two o’clock"],
4260
+ ["🕝", "two-thirty"],
4261
+ ["🕒", "three o’clock"],
4262
+ ["🕞", "three-thirty"],
4263
+ ["🕓", "four o’clock"],
4264
+ ["🕟", "four-thirty"],
4265
+ ["🕔", "five o’clock"],
4266
+ ["🕠", "five-thirty"],
4267
+ ["🕕", "six o’clock"],
4268
+ ["🕡", "six-thirty"],
4269
+ ["🕖", "seven o’clock"],
4270
+ ["🕢", "seven-thirty"],
4271
+ ["🕗", "eight o’clock"],
4272
+ ["🕣", "eight-thirty"],
4273
+ ["🕘", "nine o’clock"],
4274
+ ["🕤", "nine-thirty"],
4275
+ ["🕙", "ten o’clock"],
4276
+ ["🕥", "ten-thirty"],
4277
+ ["🕚", "eleven o’clock"],
4278
+ ["🕦", "eleven-thirty"],
4279
+ ["🌑", "new moon"],
4280
+ ["🌒", "waxing crescent moon"],
4281
+ ["🌓", "first quarter moon"],
4282
+ ["🌔", "waxing gibbous moon"],
4283
+ ["🌕", "full moon"],
4284
+ ["🌖", "waning gibbous moon"],
4285
+ ["🌗", "last quarter moon"],
4286
+ ["🌘", "waning crescent moon"],
4287
+ ["🌙", "crescent moon"],
4288
+ ["🌚", "new moon face"],
4289
+ ["🌛", "first quarter moon face"],
4290
+ ["🌜", "last quarter moon face"],
4291
+ ["🌡️", "thermometer"],
4292
+ ["☀️", "sun"],
4293
+ ["🌝", "full moon face"],
4294
+ ["🌞", "sun with face"],
4295
+ ["🪐", "ringed planet"],
4296
+ ["⭐", "star"],
4297
+ ["🌟", "glowing star"],
4298
+ ["🌠", "shooting star"],
4299
+ ["🌌", "milky way"],
4300
+ ["☁️", "cloud"],
4301
+ ["⛅", "sun behind cloud"],
4302
+ ["⛈️", "cloud with lightning and rain"],
4303
+ ["🌤️", "sun behind small cloud"],
4304
+ ["🌥️", "sun behind large cloud"],
4305
+ ["🌦️", "sun behind rain cloud"],
4306
+ ["🌧️", "cloud with rain"],
4307
+ ["🌨️", "cloud with snow"],
4308
+ ["🌩️", "cloud with lightning"],
4309
+ ["🌪️", "tornado"],
4310
+ ["🌫️", "fog"],
4311
+ ["🌬️", "wind face"],
4312
+ ["🌀", "cyclone"],
4313
+ ["🌈", "rainbow"],
4314
+ ["🌂", "closed umbrella"],
4315
+ ["☂️", "umbrella"],
4316
+ ["☔", "umbrella with rain drops"],
4317
+ ["⛱️", "umbrella on ground"],
4318
+ ["⚡", "high voltage"],
4319
+ ["❄️", "snowflake"],
4320
+ ["☃️", "snowman"],
4321
+ ["⛄", "snowman without snow"],
4322
+ ["☄️", "comet"],
4323
+ ["🔥", "fire"],
4324
+ ["💧", "droplet"],
4325
+ ["🌊", "water wave"]
4326
+ ],
4327
+ activities: [
4328
+ ["🎃", "jack-o-lantern"],
4329
+ ["🎄", "Christmas tree"],
4330
+ ["🎆", "fireworks"],
4331
+ ["🎇", "sparkler"],
4332
+ ["🧨", "firecracker"],
4333
+ ["✨", "sparkles"],
4334
+ ["🎈", "balloon"],
4335
+ ["🎉", "party popper"],
4336
+ ["🎊", "confetti ball"],
4337
+ ["🎋", "tanabata tree"],
4338
+ ["🎍", "pine decoration"],
4339
+ ["🎎", "Japanese dolls"],
4340
+ ["🎏", "carp streamer"],
4341
+ ["🎐", "wind chime"],
4342
+ ["🎑", "moon viewing ceremony"],
4343
+ ["🧧", "red envelope"],
4344
+ ["🎀", "ribbon"],
4345
+ ["🎁", "wrapped gift"],
4346
+ ["🎗️", "reminder ribbon"],
4347
+ ["🎟️", "admission tickets"],
4348
+ ["🎫", "ticket"],
4349
+ ["🎖️", "military medal"],
4350
+ ["🏆", "trophy"],
4351
+ ["🏅", "sports medal"],
4352
+ ["🥇", "1st place medal"],
4353
+ ["🥈", "2nd place medal"],
4354
+ ["🥉", "3rd place medal"],
4355
+ ["⚽", "soccer ball"],
4356
+ ["⚾", "baseball"],
4357
+ ["🥎", "softball"],
4358
+ ["🏀", "basketball"],
4359
+ ["🏐", "volleyball"],
4360
+ ["🏈", "american football"],
4361
+ ["🏉", "rugby football"],
4362
+ ["🎾", "tennis"],
4363
+ ["🥏", "flying disc"],
4364
+ ["🎳", "bowling"],
4365
+ ["🏏", "cricket game"],
4366
+ ["🏑", "field hockey"],
4367
+ ["🏒", "ice hockey"],
4368
+ ["🥍", "lacrosse"],
4369
+ ["🏓", "ping pong"],
4370
+ ["🏸", "badminton"],
4371
+ ["🥊", "boxing glove"],
4372
+ ["🥋", "martial arts uniform"],
4373
+ ["🥅", "goal net"],
4374
+ ["⛳", "flag in hole"],
4375
+ ["⛸️", "ice skate"],
4376
+ ["🎣", "fishing pole"],
4377
+ ["🤿", "diving mask"],
4378
+ ["🎽", "running shirt"],
4379
+ ["🎿", "skis"],
4380
+ ["🛷", "sled"],
4381
+ ["🥌", "curling stone"],
4382
+ ["🎯", "direct hit"],
4383
+ ["🪀", "yo-yo"],
4384
+ ["🪁", "kite"],
4385
+ ["🎱", "pool 8 ball"],
4386
+ ["🔮", "crystal ball"],
4387
+ ["🧿", "nazar amulet"],
4388
+ ["🎮", "video game"],
4389
+ ["🕹️", "joystick"],
4390
+ ["🎰", "slot machine"],
4391
+ ["🎲", "game die"],
4392
+ ["🧩", "puzzle piece"],
4393
+ ["🧸", "teddy bear"],
4394
+ ["♠️", "spade suit"],
4395
+ ["♥️", "heart suit"],
4396
+ ["♦️", "diamond suit"],
4397
+ ["♣️", "club suit"],
4398
+ ["♟️", "chess pawn"],
4399
+ ["🃏", "joker"],
4400
+ ["🀄", "mahjong red dragon"],
4401
+ ["🎴", "flower playing cards"],
4402
+ ["🎭", "performing arts"],
4403
+ ["🖼️", "framed picture"],
4404
+ ["🎨", "artist palette"],
4405
+ ["🧵", "thread"],
4406
+ ["🧶", "yarn"]
4407
+ ],
4408
+ objects: [
4409
+ ["👓", "glasses"],
4410
+ ["🕶️", "sunglasses"],
4411
+ ["🥽", "goggles"],
4412
+ ["🥼", "lab coat"],
4413
+ ["🦺", "safety vest"],
4414
+ ["👔", "necktie"],
4415
+ ["👕", "t-shirt"],
4416
+ ["👖", "jeans"],
4417
+ ["🧣", "scarf"],
4418
+ ["🧤", "gloves"],
4419
+ ["🧥", "coat"],
4420
+ ["🧦", "socks"],
4421
+ ["👗", "dress"],
4422
+ ["👘", "kimono"],
4423
+ ["🥻", "sari"],
4424
+ ["🩱", "one-piece swimsuit"],
4425
+ ["🩲", "briefs"],
4426
+ ["🩳", "shorts"],
4427
+ ["👙", "bikini"],
4428
+ ["👚", "woman’s clothes"],
4429
+ ["👛", "purse"],
4430
+ ["👜", "handbag"],
4431
+ ["👝", "clutch bag"],
4432
+ ["🛍️", "shopping bags"],
4433
+ ["🎒", "backpack"],
4434
+ ["👞", "man’s shoe"],
4435
+ ["👟", "running shoe"],
4436
+ ["🥾", "hiking boot"],
4437
+ ["🥿", "flat shoe"],
4438
+ ["👠", "high-heeled shoe"],
4439
+ ["👡", "woman’s sandal"],
4440
+ ["🩰", "ballet shoes"],
4441
+ ["👢", "woman’s boot"],
4442
+ ["👑", "crown"],
4443
+ ["👒", "woman’s hat"],
4444
+ ["🎩", "top hat"],
4445
+ ["🎓", "graduation cap"],
4446
+ ["🧢", "billed cap"],
4447
+ ["⛑️", "rescue worker’s helmet"],
4448
+ ["📿", "prayer beads"],
4449
+ ["💄", "lipstick"],
4450
+ ["💍", "ring"],
4451
+ ["💎", "gem stone"],
4452
+ ["🔇", "muted speaker"],
4453
+ ["🔈", "speaker low volume"],
4454
+ ["🔉", "speaker medium volume"],
4455
+ ["🔊", "speaker high volume"],
4456
+ ["📢", "loudspeaker"],
4457
+ ["📣", "megaphone"],
4458
+ ["📯", "postal horn"],
4459
+ ["🔔", "bell"],
4460
+ ["🔕", "bell with slash"],
4461
+ ["🎼", "musical score"],
4462
+ ["🎵", "musical note"],
4463
+ ["🎶", "musical notes"],
4464
+ ["🎙️", "studio microphone"],
4465
+ ["🎚️", "level slider"],
4466
+ ["🎛️", "control knobs"],
4467
+ ["🎤", "microphone"],
4468
+ ["🎧", "headphone"],
4469
+ ["📻", "radio"],
4470
+ ["🎷", "saxophone"],
4471
+ ["🎸", "guitar"],
4472
+ ["🎹", "musical keyboard"],
4473
+ ["🎺", "trumpet"],
4474
+ ["🎻", "violin"],
4475
+ ["🪕", "banjo"],
4476
+ ["🥁", "drum"],
4477
+ ["📱", "mobile phone"],
4478
+ ["📲", "mobile phone with arrow"],
4479
+ ["☎️", "telephone"],
4480
+ ["📞", "telephone receiver"],
4481
+ ["📟", "pager"],
4482
+ ["📠", "fax machine"],
4483
+ ["🔋", "battery"],
4484
+ ["🔌", "electric plug"],
4485
+ ["💻", "laptop"],
4486
+ ["🖥️", "desktop computer"],
4487
+ ["🖨️", "printer"],
4488
+ ["⌨️", "keyboard"],
4489
+ ["🖱️", "computer mouse"],
4490
+ ["🖲️", "trackball"],
4491
+ ["💽", "computer disk"],
4492
+ ["💾", "floppy disk"],
4493
+ ["💿", "optical disk"],
4494
+ ["📀", "dvd"],
4495
+ ["🧮", "abacus"],
4496
+ ["🎥", "movie camera"],
4497
+ ["🎞️", "film frames"],
4498
+ ["📽️", "film projector"],
4499
+ ["🎬", "clapper board"],
4500
+ ["📺", "television"],
4501
+ ["📷", "camera"],
4502
+ ["📸", "camera with flash"],
4503
+ ["📹", "video camera"],
4504
+ ["📼", "videocassette"],
4505
+ ["🔍", "magnifying glass tilted left"],
4506
+ ["🔎", "magnifying glass tilted right"],
4507
+ ["🕯️", "candle"],
4508
+ ["💡", "light bulb"],
4509
+ ["🔦", "flashlight"],
4510
+ ["🏮", "red paper lantern"],
4511
+ ["🪔", "diya lamp"],
4512
+ ["📔", "notebook with decorative cover"],
4513
+ ["📕", "closed book"],
4514
+ ["📖", "open book"],
4515
+ ["📗", "green book"],
4516
+ ["📘", "blue book"],
4517
+ ["📙", "orange book"],
4518
+ ["📚", "books"],
4519
+ ["📓", "notebook"],
4520
+ ["📒", "ledger"],
4521
+ ["📃", "page with curl"],
4522
+ ["📜", "scroll"],
4523
+ ["📄", "page facing up"],
4524
+ ["📰", "newspaper"],
4525
+ ["🗞️", "rolled-up newspaper"],
4526
+ ["📑", "bookmark tabs"],
4527
+ ["🔖", "bookmark"],
4528
+ ["🏷️", "label"],
4529
+ ["💰", "money bag"],
4530
+ ["💴", "yen banknote"],
4531
+ ["💵", "dollar banknote"],
4532
+ ["💶", "euro banknote"],
4533
+ ["💷", "pound banknote"],
4534
+ ["💸", "money with wings"],
4535
+ ["💳", "credit card"],
4536
+ ["🧾", "receipt"],
4537
+ ["💹", "chart increasing with yen"],
4538
+ ["💱", "currency exchange"],
4539
+ ["💲", "heavy dollar sign"],
4540
+ ["✉️", "envelope"],
4541
+ ["📧", "e-mail"],
4542
+ ["📨", "incoming envelope"],
4543
+ ["📩", "envelope with arrow"],
4544
+ ["📤", "outbox tray"],
4545
+ ["📥", "inbox tray"],
4546
+ ["📦", "package"],
4547
+ ["📫", "closed mailbox with raised flag"],
4548
+ ["📪", "closed mailbox with lowered flag"],
4549
+ ["📬", "open mailbox with raised flag"],
4550
+ ["📭", "open mailbox with lowered flag"],
4551
+ ["📮", "postbox"],
4552
+ ["🗳️", "ballot box with ballot"],
4553
+ ["✏️", "pencil"],
4554
+ ["✒️", "black nib"],
4555
+ ["🖋️", "fountain pen"],
4556
+ ["🖊️", "pen"],
4557
+ ["🖌️", "paintbrush"],
4558
+ ["🖍️", "crayon"],
4559
+ ["📝", "memo"],
4560
+ ["💼", "briefcase"],
4561
+ ["📁", "file folder"],
4562
+ ["📂", "open file folder"],
4563
+ ["🗂️", "card index dividers"],
4564
+ ["📅", "calendar"],
4565
+ ["📆", "tear-off calendar"],
4566
+ ["🗒️", "spiral notepad"],
4567
+ ["🗓️", "spiral calendar"],
4568
+ ["📇", "card index"],
4569
+ ["📈", "chart increasing"],
4570
+ ["📉", "chart decreasing"],
4571
+ ["📊", "bar chart"],
4572
+ ["📋", "clipboard"],
4573
+ ["📌", "pushpin"],
4574
+ ["📍", "round pushpin"],
4575
+ ["📎", "paperclip"],
4576
+ ["🖇️", "linked paperclips"],
4577
+ ["📏", "straight ruler"],
4578
+ ["📐", "triangular ruler"],
4579
+ ["✂️", "scissors"],
4580
+ ["🗃️", "card file box"],
4581
+ ["🗄️", "file cabinet"],
4582
+ ["🗑️", "wastebasket"],
4583
+ ["🔒", "locked"],
4584
+ ["🔓", "unlocked"],
4585
+ ["🔏", "locked with pen"],
4586
+ ["🔐", "locked with key"],
4587
+ ["🔑", "key"],
4588
+ ["🗝️", "old key"],
4589
+ ["🔨", "hammer"],
4590
+ ["🪓", "axe"],
4591
+ ["⛏️", "pick"],
4592
+ ["⚒️", "hammer and pick"],
4593
+ ["🛠️", "hammer and wrench"],
4594
+ ["🗡️", "dagger"],
4595
+ ["⚔️", "crossed swords"],
4596
+ ["🔫", "pistol"],
4597
+ ["🏹", "bow and arrow"],
4598
+ ["🛡️", "shield"],
4599
+ ["🔧", "wrench"],
4600
+ ["🔩", "nut and bolt"],
4601
+ ["⚙️", "gear"],
4602
+ ["🗜️", "clamp"],
4603
+ ["⚖️", "balance scale"],
4604
+ ["🦯", "probing cane"],
4605
+ ["🔗", "link"],
4606
+ ["⛓️", "chains"],
4607
+ ["🧰", "toolbox"],
4608
+ ["🧲", "magnet"],
4609
+ ["⚗️", "alembic"],
4610
+ ["🧪", "test tube"],
4611
+ ["🧫", "petri dish"],
4612
+ ["🧬", "dna"],
4613
+ ["🔬", "microscope"],
4614
+ ["🔭", "telescope"],
4615
+ ["📡", "satellite antenna"],
4616
+ ["💉", "syringe"],
4617
+ ["🩸", "drop of blood"],
4618
+ ["💊", "pill"],
4619
+ ["🩹", "adhesive bandage"],
4620
+ ["🩺", "stethoscope"],
4621
+ ["🚪", "door"],
4622
+ ["🛏️", "bed"],
4623
+ ["🛋️", "couch and lamp"],
4624
+ ["🪑", "chair"],
4625
+ ["🚽", "toilet"],
4626
+ ["🚿", "shower"],
4627
+ ["🛁", "bathtub"],
4628
+ ["🪒", "razor"],
4629
+ ["🧴", "lotion bottle"],
4630
+ ["🧷", "safety pin"],
4631
+ ["🧹", "broom"],
4632
+ ["🧺", "basket"],
4633
+ ["🧻", "roll of paper"],
4634
+ ["🧼", "soap"],
4635
+ ["🧽", "sponge"],
4636
+ ["🧯", "fire extinguisher"],
4637
+ ["🛒", "shopping cart"],
4638
+ ["🚬", "cigarette"],
4639
+ ["⚰️", "coffin"],
4640
+ ["⚱️", "funeral urn"],
4641
+ ["🗿", "moai"]
4642
+ ],
4643
+ symbols: [
4644
+ ["🏧", "ATM sign"],
4645
+ ["🚮", "litter in bin sign"],
4646
+ ["🚰", "potable water"],
4647
+ ["♿", "wheelchair symbol"],
4648
+ ["🚹", "men’s room"],
4649
+ ["🚺", "women’s room"],
4650
+ ["🚻", "restroom"],
4651
+ ["🚼", "baby symbol"],
4652
+ ["🚾", "water closet"],
4653
+ ["🛂", "passport control"],
4654
+ ["🛃", "customs"],
4655
+ ["🛄", "baggage claim"],
4656
+ ["🛅", "left luggage"],
4657
+ ["⚠️", "warning"],
4658
+ ["🚸", "children crossing"],
4659
+ ["⛔", "no entry"],
4660
+ ["🚫", "prohibited"],
4661
+ ["🚳", "no bicycles"],
4662
+ ["🚭", "no smoking"],
4663
+ ["🚯", "no littering"],
4664
+ ["🚱", "non-potable water"],
4665
+ ["🚷", "no pedestrians"],
4666
+ ["📵", "no mobile phones"],
4667
+ ["🔞", "no one under eighteen"],
4668
+ ["☢️", "radioactive"],
4669
+ ["☣️", "biohazard"],
4670
+ ["⬆️", "up arrow"],
4671
+ ["↗️", "up-right arrow"],
4672
+ ["➡️", "right arrow"],
4673
+ ["↘️", "down-right arrow"],
4674
+ ["⬇️", "down arrow"],
4675
+ ["↙️", "down-left arrow"],
4676
+ ["⬅️", "left arrow"],
4677
+ ["↖️", "up-left arrow"],
4678
+ ["↕️", "up-down arrow"],
4679
+ ["↔️", "left-right arrow"],
4680
+ ["↩️", "right arrow curving left"],
4681
+ ["↪️", "left arrow curving right"],
4682
+ ["⤴️", "right arrow curving up"],
4683
+ ["⤵️", "right arrow curving down"],
4684
+ ["🔃", "clockwise vertical arrows"],
4685
+ ["🔄", "counterclockwise arrows button"],
4686
+ ["🔙", "BACK arrow"],
4687
+ ["🔚", "END arrow"],
4688
+ ["🔛", "ON! arrow"],
4689
+ ["🔜", "SOON arrow"],
4690
+ ["🔝", "TOP arrow"],
4691
+ ["🛐", "place of worship"],
4692
+ ["⚛️", "atom symbol"],
4693
+ ["🕉️", "om"],
4694
+ ["✡️", "star of David"],
4695
+ ["☸️", "wheel of dharma"],
4696
+ ["☯️", "yin yang"],
4697
+ ["✝️", "latin cross"],
4698
+ ["☦️", "orthodox cross"],
4699
+ ["☪️", "star and crescent"],
4700
+ ["☮️", "peace symbol"],
4701
+ ["🕎", "menorah"],
4702
+ ["🔯", "dotted six-pointed star"],
4703
+ ["♈", "Aries"],
4704
+ ["♉", "Taurus"],
4705
+ ["♊", "Gemini"],
4706
+ ["♋", "Cancer"],
4707
+ ["♌", "Leo"],
4708
+ ["♍", "Virgo"],
4709
+ ["♎", "Libra"],
4710
+ ["♏", "Scorpio"],
4711
+ ["♐", "Sagittarius"],
4712
+ ["♑", "Capricorn"],
4713
+ ["♒", "Aquarius"],
4714
+ ["♓", "Pisces"],
4715
+ ["⛎", "Ophiuchus"],
4716
+ ["🔀", "shuffle tracks button"],
4717
+ ["🔁", "repeat button"],
4718
+ ["🔂", "repeat single button"],
4719
+ ["▶️", "play button"],
4720
+ ["⏩", "fast-forward button"],
4721
+ ["⏭️", "next track button"],
4722
+ ["⏯️", "play or pause button"],
4723
+ ["◀️", "reverse button"],
4724
+ ["⏪", "fast reverse button"],
4725
+ ["⏮️", "last track button"],
4726
+ ["🔼", "upwards button"],
4727
+ ["⏫", "fast up button"],
4728
+ ["🔽", "downwards button"],
4729
+ ["⏬", "fast down button"],
4730
+ ["⏸️", "pause button"],
4731
+ ["⏹️", "stop button"],
4732
+ ["⏺️", "record button"],
4733
+ ["⏏️", "eject button"],
4734
+ ["🎦", "cinema"],
4735
+ ["🔅", "dim button"],
4736
+ ["🔆", "bright button"],
4737
+ ["📶", "antenna bars"],
4738
+ ["📳", "vibration mode"],
4739
+ ["📴", "mobile phone off"],
4740
+ ["♀️", "female sign"],
4741
+ ["♂️", "male sign"],
4742
+ ["⚕️", "medical symbol"],
4743
+ ["♾️", "infinity"],
4744
+ ["♻️", "recycling symbol"],
4745
+ ["⚜️", "fleur-de-lis"],
4746
+ ["🔱", "trident emblem"],
4747
+ ["📛", "name badge"],
4748
+ ["🔰", "Japanese symbol for beginner"],
4749
+ ["⭕", "hollow red circle"],
4750
+ ["✅", "check mark button"],
4751
+ ["☑️", "check box with check"],
4752
+ ["✔️", "check mark"],
4753
+ ["✖️", "multiplication sign"],
4754
+ ["❌", "cross mark"],
4755
+ ["❎", "cross mark button"],
4756
+ ["➕", "plus sign"],
4757
+ ["➖", "minus sign"],
4758
+ ["➗", "division sign"],
4759
+ ["➰", "curly loop"],
4760
+ ["➿", "double curly loop"],
4761
+ ["〽️", "part alternation mark"],
4762
+ ["✳️", "eight-spoked asterisk"],
4763
+ ["✴️", "eight-pointed star"],
4764
+ ["❇️", "sparkle"],
4765
+ ["‼️", "double exclamation mark"],
4766
+ ["⁉️", "exclamation question mark"],
4767
+ ["❓", "question mark"],
4768
+ ["❔", "white question mark"],
4769
+ ["❕", "white exclamation mark"],
4770
+ ["❗", "exclamation mark"],
4771
+ ["〰️", "wavy dash"],
4772
+ ["©️", "copyright"],
4773
+ ["®️", "registered"],
4774
+ ["™️", "trade mark"],
4775
+ ["🔟", "keycap: 10"],
4776
+ ["🔠", "input latin uppercase"],
4777
+ ["🔡", "input latin lowercase"],
4778
+ ["🔢", "input numbers"],
4779
+ ["🔣", "input symbols"],
4780
+ ["🔤", "input latin letters"],
4781
+ ["🅰️", "A button (blood type)"],
4782
+ ["🆎", "AB button (blood type)"],
4783
+ ["🅱️", "B button (blood type)"],
4784
+ ["🆑", "CL button"],
4785
+ ["🆒", "COOL button"],
4786
+ ["🆓", "FREE button"],
4787
+ ["ℹ️", "information"],
4788
+ ["🆔", "ID button"],
4789
+ ["Ⓜ️", "circled M"],
4790
+ ["🆕", "NEW button"],
4791
+ ["🆖", "NG button"],
4792
+ ["🅾️", "O button (blood type)"],
4793
+ ["🆗", "OK button"],
4794
+ ["🅿️", "P button"],
4795
+ ["🆘", "SOS button"],
4796
+ ["🆙", "UP! button"],
4797
+ ["🆚", "VS button"],
4798
+ ["🈁", "Japanese “here” button"],
4799
+ ["🈂️", "Japanese “service charge” button"],
4800
+ ["🈷️", "Japanese “monthly amount” button"],
4801
+ ["🈶", "Japanese “not free of charge” button"],
4802
+ ["🈯", "Japanese “reserved” button"],
4803
+ ["🉐", "Japanese “bargain” button"],
4804
+ ["🈹", "Japanese “discount” button"],
4805
+ ["🈚", "Japanese “free of charge” button"],
4806
+ ["🈲", "Japanese “prohibited” button"],
4807
+ ["🉑", "Japanese “acceptable” button"],
4808
+ ["🈸", "Japanese “application” button"],
4809
+ ["🈴", "Japanese “passing grade” button"],
4810
+ ["🈳", "Japanese “vacancy” button"],
4811
+ ["㊗️", "Japanese “congratulations” button"],
4812
+ ["㊙️", "Japanese “secret” button"],
4813
+ ["🈺", "Japanese “open for business” button"],
4814
+ ["🈵", "Japanese “no vacancy” button"],
4815
+ ["🔴", "red circle"],
4816
+ ["🟠", "orange circle"],
4817
+ ["🟡", "yellow circle"],
4818
+ ["🟢", "green circle"],
4819
+ ["🔵", "blue circle"],
4820
+ ["🟣", "purple circle"],
4821
+ ["🟤", "brown circle"],
4822
+ ["⚫", "black circle"],
4823
+ ["⚪", "white circle"],
4824
+ ["🟥", "red square"],
4825
+ ["🟧", "orange square"],
4826
+ ["🟨", "yellow square"],
4827
+ ["🟩", "green square"],
4828
+ ["🟦", "blue square"],
4829
+ ["🟪", "purple square"],
4830
+ ["🟫", "brown square"],
4831
+ ["⬛", "black large square"],
4832
+ ["⬜", "white large square"],
4833
+ ["◼️", "black medium square"],
4834
+ ["◻️", "white medium square"],
4835
+ ["◾", "black medium-small square"],
4836
+ ["◽", "white medium-small square"],
4837
+ ["▪️", "black small square"],
4838
+ ["▫️", "white small square"],
4839
+ ["🔶", "large orange diamond"],
4840
+ ["🔷", "large blue diamond"],
4841
+ ["🔸", "small orange diamond"],
4842
+ ["🔹", "small blue diamond"],
4843
+ ["🔺", "red triangle pointed up"],
4844
+ ["🔻", "red triangle pointed down"],
4845
+ ["💠", "diamond with a dot"],
4846
+ ["🔘", "radio button"],
4847
+ ["🔳", "white square button"],
4848
+ ["🔲", "black square button"],
4849
+ ["🏁", "chequered flag"],
4850
+ ["🚩", "triangular flag"],
4851
+ ["🎌", "crossed flags"],
4852
+ ["🏴", "black flag"],
4853
+ ["🏳️", "white flag"]
4854
+ ]
4855
+ };
4856
+ const NEWER_THAN_12_1 = [
4857
+ [9895, 9895],
4858
+ [128726, 128735],
4859
+ [128763, 128767],
4860
+ [129008, 129023],
4861
+ [129292, 129292],
4862
+ [129394, 129394],
4863
+ [129399, 129401],
4864
+ [129443, 129444],
4865
+ [129451, 129453],
4866
+ [129483, 129484]
4867
+ ];
4868
+ const EXTENDED_A_UP_TO_12_1 = [
4869
+ [129648, 129651],
4870
+ [129656, 129658],
4871
+ [129664, 129666],
4872
+ [129680, 129685]
4873
+ ];
4874
+ const VARIATION_SELECTOR_16 = 65039;
4875
+ const within = (p, ranges) => ranges.some(([a, b]) => p >= a && p <= b);
4876
+ const KEYCAP = /^[0-9#*]️?⃣$/;
4877
+ const EMOJI_CODE_POINT = new RegExp(String.raw`^\p{Emoji}$`, "u");
4878
+ function isPortableEmoji(value) {
4879
+ if (typeof value === "string" && KEYCAP.test(value)) return true;
4880
+ if (!isEmojiIcon(value)) return false;
4881
+ const points = Array.from(value, (ch) => ch.codePointAt(0) ?? 0).filter((p2) => p2 !== VARIATION_SELECTOR_16);
4882
+ if (points.length !== 1) return false;
4883
+ const [p] = points;
4884
+ if (p < 128 || !EMOJI_CODE_POINT.test(String.fromCodePoint(p))) return false;
4885
+ if (p >= 127462 && p <= 127487) return false;
4886
+ if (p >= 129648 && p <= 129791) return within(p, EXTENDED_A_UP_TO_12_1);
4887
+ return !within(p, NEWER_THAN_12_1);
4888
+ }
4889
+ const EMOJI_GROUP_PREFIX = "emoji:";
4890
+ const ALL_EMOJI = EMOJI_GROUPS.flatMap((group) => EMOJI_LIST[group]);
4891
+ const EMOJI_SEARCH_LIMIT = 96;
4892
+ const emojiTestId = (emoji) => Array.from(emoji, (ch) => (ch.codePointAt(0) ?? 0).toString(16)).filter((hex) => hex !== "fe0f").join("-");
4893
+ const sameEmoji = (a, b) => a.replace(/️/g, "") === b.replace(/️/g, "");
3529
4894
  const CATEGORIES = [
3530
4895
  "places",
3531
4896
  "transport",
@@ -3554,7 +4919,9 @@ function IconPicker({ value, onChange, disabled = false, renderTrigger, open: co
3554
4919
  }, [onOpenChange]);
3555
4920
  const [search, setSearch] = useState("");
3556
4921
  const [activeCategory, setActiveCategory] = useState(null);
4922
+ const activeEmojiGroup = (activeCategory == null ? void 0 : activeCategory.startsWith(EMOJI_GROUP_PREFIX)) ? activeCategory.slice(EMOJI_GROUP_PREFIX.length) : null;
3557
4923
  const filteredIcons = useMemo(() => {
4924
+ if (activeEmojiGroup) return [];
3558
4925
  let result = ICONS;
3559
4926
  if (activeCategory) {
3560
4927
  result = result.filter((i) => i.category === activeCategory);
@@ -3566,7 +4933,13 @@ function IconPicker({ value, onChange, disabled = false, renderTrigger, open: co
3566
4933
  );
3567
4934
  }
3568
4935
  return result;
3569
- }, [activeCategory, search, iconName, iconCategories2]);
4936
+ }, [activeCategory, activeEmojiGroup, search, iconName, iconCategories2]);
4937
+ const emojiShown = useMemo(() => {
4938
+ if (activeEmojiGroup) return EMOJI_LIST[activeEmojiGroup];
4939
+ const query = search.toLowerCase().trim();
4940
+ if (!query || isEmojiIcon(query)) return [];
4941
+ return ALL_EMOJI.filter(([, name]) => name.includes(query)).slice(0, EMOJI_SEARCH_LIMIT);
4942
+ }, [activeEmojiGroup, search]);
3570
4943
  const handleSelect = useCallback((emoji) => {
3571
4944
  onChange(emoji);
3572
4945
  setOpen(false);
@@ -3574,6 +4947,8 @@ function IconPicker({ value, onChange, disabled = false, renderTrigger, open: co
3574
4947
  const selectedIcon = useMemo(() => {
3575
4948
  return ICONS.find((i) => i.emoji === value);
3576
4949
  }, [value]);
4950
+ const typedEmoji = search.trim();
4951
+ const searchIsEmoji = isEmojiIcon(typedEmoji);
3577
4952
  return /* @__PURE__ */ jsxs(Fragment, { children: [
3578
4953
  renderTrigger ? renderTrigger(() => {
3579
4954
  if (!disabled) setOpen(true);
@@ -3616,6 +4991,7 @@ function IconPicker({ value, onChange, disabled = false, renderTrigger, open: co
3616
4991
  autoFocus: true
3617
4992
  }
3618
4993
  ),
4994
+ /* @__PURE__ */ jsx("div", { className: "text-xs text-muted-foreground", children: labels.anyEmojiHint }),
3619
4995
  /* @__PURE__ */ jsx("div", { className: "overflow-x-auto whitespace-nowrap", children: /* @__PURE__ */ jsxs("div", { className: "flex gap-1 pb-2", children: [
3620
4996
  /* @__PURE__ */ jsx(
3621
4997
  Button,
@@ -3648,7 +5024,23 @@ function IconPicker({ value, onChange, disabled = false, renderTrigger, open: co
3648
5024
  },
3649
5025
  cat
3650
5026
  );
3651
- })
5027
+ }),
5028
+ /* @__PURE__ */ jsx("span", { className: "shrink-0 self-stretch border-l border-border mx-1" }),
5029
+ EMOJI_GROUPS.map((group) => /* @__PURE__ */ jsx(
5030
+ Button,
5031
+ {
5032
+ type: activeEmojiGroup === group ? "primary" : "text",
5033
+ size: "small",
5034
+ className: "!h-7 text-xs !px-3 shrink-0",
5035
+ onClick: () => {
5036
+ setActiveCategory(`${EMOJI_GROUP_PREFIX}${group}`);
5037
+ setSearch("");
5038
+ },
5039
+ "data-testid": `button-emoji-group-${group}`,
5040
+ children: labels.categoryWithCount({ category: labels.emojiGroups[group], count: EMOJI_LIST[group].length })
5041
+ },
5042
+ group
5043
+ ))
3652
5044
  ] }) })
3653
5045
  ] }),
3654
5046
  /* @__PURE__ */ jsxs(
@@ -3657,6 +5049,7 @@ function IconPicker({ value, onChange, disabled = false, renderTrigger, open: co
3657
5049
  className: "flex-1 overflow-y-auto px-4 pb-4 min-h-0",
3658
5050
  style: { maxHeight: "400px" },
3659
5051
  children: [
5052
+ searchIsEmoji && /* @__PURE__ */ jsx("div", { className: "mb-2", children: isPortableEmoji(typedEmoji) ? /* @__PURE__ */ jsx(Button, { size: "small", onClick: () => handleSelect(typedEmoji), "data-testid": "button-icon-custom", children: labels.useEmoji(typedEmoji) }) : /* @__PURE__ */ jsx("span", { className: "text-sm text-amber-600", "data-testid": "icon-emoji-not-portable", children: labels.emojiNotEverywhere }) }),
3660
5053
  /* @__PURE__ */ jsx("div", { className: "grid grid-cols-8 sm:grid-cols-10 md:grid-cols-12 gap-1", children: filteredIcons.map((iconDef) => /* @__PURE__ */ jsx(
3661
5054
  Button,
3662
5055
  {
@@ -3670,14 +5063,28 @@ function IconPicker({ value, onChange, disabled = false, renderTrigger, open: co
3670
5063
  },
3671
5064
  iconDef.id
3672
5065
  )) }),
3673
- filteredIcons.length === 0 && /* @__PURE__ */ jsx("div", { className: "text-center text-muted-foreground text-sm py-12", children: labels.noIconsFound(search) })
5066
+ emojiShown.length > 0 && /* @__PURE__ */ jsxs(Fragment, { children: [
5067
+ !activeEmojiGroup && /* @__PURE__ */ jsx("div", { className: "text-xs text-muted-foreground mt-3 mb-1", children: labels.customEmoji }),
5068
+ /* @__PURE__ */ jsx("div", { className: "grid grid-cols-8 sm:grid-cols-10 md:grid-cols-12 gap-1", children: emojiShown.map(([emoji]) => /* @__PURE__ */ jsx(
5069
+ "button",
5070
+ {
5071
+ type: "button",
5072
+ className: `w-10 h-10 rounded text-xl leading-none hover:bg-muted ${sameEmoji(value, emoji) ? "bg-primary/15 ring-1 ring-primary" : ""}`,
5073
+ onClick: () => handleSelect(emoji),
5074
+ "data-testid": `button-emoji-${emojiTestId(emoji)}`,
5075
+ children: emoji
5076
+ },
5077
+ emoji
5078
+ )) })
5079
+ ] }),
5080
+ filteredIcons.length === 0 && emojiShown.length === 0 && !searchIsEmoji && /* @__PURE__ */ jsx("div", { className: "text-center text-muted-foreground text-sm py-12", children: labels.noIconsFound(search) })
3674
5081
  ]
3675
5082
  }
3676
5083
  ),
3677
5084
  /* @__PURE__ */ jsxs("div", { className: "px-4 py-3 border-t shrink-0 flex items-center justify-between gap-2", children: [
3678
- selectedIcon ? /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 text-sm text-muted-foreground min-w-0", children: [
3679
- /* @__PURE__ */ jsx("span", { className: "text-xl leading-none shrink-0", children: selectedIcon.emoji }),
3680
- /* @__PURE__ */ jsx("span", { className: "truncate", children: iconName(selectedIcon) })
5085
+ selectedIcon || isEmojiIcon(value) ? /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 text-sm text-muted-foreground min-w-0", children: [
5086
+ /* @__PURE__ */ jsx("span", { className: "text-xl leading-none shrink-0", children: value }),
5087
+ /* @__PURE__ */ jsx("span", { className: "truncate", children: selectedIcon ? iconName(selectedIcon) : labels.customEmoji })
3681
5088
  ] }) : /* @__PURE__ */ jsx("span", { className: "text-sm text-muted-foreground", children: labels.noIconSelected }),
3682
5089
  /* @__PURE__ */ jsxs("div", { className: "flex gap-2 shrink-0", children: [
3683
5090
  value && /* @__PURE__ */ jsx(
@@ -3714,7 +5121,7 @@ function getIconEmoji(iconId) {
3714
5121
  return EMOJI_BY_ID.get(iconId) || null;
3715
5122
  }
3716
5123
  function isValidIconValue(value) {
3717
- return ICONS.some((i) => i.emoji === value);
5124
+ return ICONS.some((i) => i.emoji === value) || isPortableEmoji(value);
3718
5125
  }
3719
5126
  function cn(...inputs) {
3720
5127
  return twMerge(clsx(inputs));
@@ -5138,6 +6545,684 @@ function ColorPickerPopover({ value, onChange, testId }) {
5138
6545
  }
5139
6546
  );
5140
6547
  }
6548
+ const ICON_BY_FIELD_MAX_VALUES = 40;
6549
+ function usableIcon(icon) {
6550
+ if (typeof icon !== "string") return null;
6551
+ const trimmed = icon.trim();
6552
+ const byId = EMOJI_BY_ID.get(trimmed) ?? EMOJI_BY_ID.get(trimmed.toLowerCase());
6553
+ if (byId) return byId;
6554
+ return isPortableEmoji(trimmed) ? trimmed : null;
6555
+ }
6556
+ const KEYWORDS = {
6557
+ // food & drink
6558
+ restaurant: "utensils",
6559
+ ristorante: "utensils",
6560
+ trattoria: "utensils",
6561
+ osteria: "utensils",
6562
+ food: "utensils",
6563
+ food_court: "utensils",
6564
+ diner: "utensils",
6565
+ bistro: "utensils",
6566
+ kebab: "utensils",
6567
+ sushi: "utensils",
6568
+ cafe: "coffee",
6569
+ caffe: "coffee",
6570
+ café: "coffee",
6571
+ coffee: "coffee",
6572
+ bar: "coffee",
6573
+ espresso: "coffee",
6574
+ pub: "beer",
6575
+ beer: "beer",
6576
+ birreria: "beer",
6577
+ brewery: "beer",
6578
+ biergarten: "beer",
6579
+ nightclub: "music",
6580
+ club: "music",
6581
+ disco: "music",
6582
+ discoteca: "music",
6583
+ wine: "wine",
6584
+ enoteca: "wine",
6585
+ winery: "wine",
6586
+ vineyard: "wine",
6587
+ pizza: "pizza",
6588
+ pizzeria: "pizza",
6589
+ ice_cream: "ice-cream",
6590
+ gelateria: "ice-cream",
6591
+ gelato: "ice-cream",
6592
+ bakery: "cake",
6593
+ panetteria: "cake",
6594
+ forno: "cake",
6595
+ pasticceria: "cake",
6596
+ pastry: "cake",
6597
+ confectionery: "cake",
6598
+ fast_food: "hamburger",
6599
+ fastfood: "hamburger",
6600
+ burger: "hamburger",
6601
+ hamburger: "hamburger",
6602
+ greengrocer: "apple",
6603
+ fruttivendolo: "apple",
6604
+ market: "cart",
6605
+ marketplace: "cart",
6606
+ mercato: "cart",
6607
+ // shopping
6608
+ shop: "store",
6609
+ store: "store",
6610
+ negozio: "store",
6611
+ boutique: "store",
6612
+ clothes: "store",
6613
+ abbigliamento: "store",
6614
+ shoes: "store",
6615
+ retail: "store",
6616
+ mall: "store",
6617
+ convenience: "store",
6618
+ supermarket: "cart",
6619
+ supermercato: "cart",
6620
+ grocery: "cart",
6621
+ alimentari: "cart",
6622
+ hypermarket: "cart",
6623
+ department_store: "cart",
6624
+ gift: "gift",
6625
+ regali: "gift",
6626
+ toys: "gift",
6627
+ giocattoli: "gift",
6628
+ jewelry: "diamond",
6629
+ gioielleria: "diamond",
6630
+ // places
6631
+ hotel: "building",
6632
+ albergo: "building",
6633
+ hostel: "building",
6634
+ motel: "building",
6635
+ guest_house: "home",
6636
+ b_b: "home",
6637
+ bnb: "home",
6638
+ office: "building",
6639
+ ufficio: "building",
6640
+ company: "building",
6641
+ apartments: "building",
6642
+ commercial: "building",
6643
+ house: "home",
6644
+ home: "home",
6645
+ casa: "home",
6646
+ residential: "home",
6647
+ abitazione: "home",
6648
+ factory: "factory",
6649
+ fabbrica: "factory",
6650
+ industrial: "factory",
6651
+ warehouse: "package",
6652
+ magazzino: "package",
6653
+ construction: "construction",
6654
+ cantiere: "construction",
6655
+ church: "church",
6656
+ chiesa: "church",
6657
+ cathedral: "church",
6658
+ chapel: "church",
6659
+ basilica: "church",
6660
+ place_of_worship: "church",
6661
+ mosque: "mosque",
6662
+ moschea: "mosque",
6663
+ synagogue: "landmark",
6664
+ temple: "landmark",
6665
+ hospital: "hospital",
6666
+ ospedale: "hospital",
6667
+ clinic: "hospital",
6668
+ clinica: "hospital",
6669
+ doctors: "hospital",
6670
+ medico: "hospital",
6671
+ dentist: "hospital",
6672
+ pharmacy: "test-tube",
6673
+ farmacia: "test-tube",
6674
+ chemist: "test-tube",
6675
+ school: "school",
6676
+ scuola: "school",
6677
+ kindergarten: "baby",
6678
+ asilo: "baby",
6679
+ university: "graduation",
6680
+ università: "graduation",
6681
+ universita: "graduation",
6682
+ college: "graduation",
6683
+ library: "library",
6684
+ biblioteca: "library",
6685
+ books: "library",
6686
+ libreria: "library",
6687
+ bookshop: "library",
6688
+ museum: "landmark",
6689
+ museo: "landmark",
6690
+ monument: "landmark",
6691
+ monumento: "landmark",
6692
+ memorial: "landmark",
6693
+ townhall: "landmark",
6694
+ municipio: "landmark",
6695
+ courthouse: "landmark",
6696
+ tribunale: "landmark",
6697
+ embassy: "flag",
6698
+ ambasciata: "flag",
6699
+ castle: "castle",
6700
+ castello: "castle",
6701
+ fort: "castle",
6702
+ ruins: "castle",
6703
+ stadium: "stadium",
6704
+ stadio: "stadium",
6705
+ arena: "stadium",
6706
+ sports_centre: "sports",
6707
+ gym: "sports",
6708
+ palestra: "sports",
6709
+ fitness: "sports",
6710
+ pitch: "sports",
6711
+ football: "sports",
6712
+ calcio: "sports",
6713
+ basketball: "basketball",
6714
+ swimming_pool: "waves",
6715
+ piscina: "waves",
6716
+ camping: "tent",
6717
+ campeggio: "tent",
6718
+ camp_site: "tent",
6719
+ // transport
6720
+ parking: "car",
6721
+ parcheggio: "car",
6722
+ car: "car",
6723
+ auto: "car",
6724
+ garage: "car",
6725
+ car_rental: "car",
6726
+ car_repair: "wrench",
6727
+ officina: "wrench",
6728
+ mechanic: "wrench",
6729
+ bus: "bus",
6730
+ bus_station: "bus",
6731
+ bus_stop: "bus",
6732
+ fermata: "bus",
6733
+ autobus: "bus",
6734
+ train: "train",
6735
+ railway: "train",
6736
+ station: "train",
6737
+ stazione: "train",
6738
+ treno: "train",
6739
+ subway: "train",
6740
+ metro: "train",
6741
+ tram: "train",
6742
+ airport: "plane",
6743
+ aeroporto: "plane",
6744
+ aerodrome: "plane",
6745
+ plane: "plane",
6746
+ aircraft: "plane",
6747
+ port: "anchor",
6748
+ porto: "anchor",
6749
+ harbour: "anchor",
6750
+ harbor: "anchor",
6751
+ marina: "sailboat",
6752
+ ferry: "ship",
6753
+ ferry_terminal: "ship",
6754
+ ship: "ship",
6755
+ nave: "ship",
6756
+ boat: "sailboat",
6757
+ barca: "sailboat",
6758
+ vessel: "ship",
6759
+ bicycle: "bike",
6760
+ bike: "bike",
6761
+ bicicletta: "bike",
6762
+ bicycle_rental: "bike",
6763
+ cycleway: "bike",
6764
+ fuel: "fuel",
6765
+ gas_station: "fuel",
6766
+ petrol: "fuel",
6767
+ benzinaio: "fuel",
6768
+ distributore: "fuel",
6769
+ charging_station: "zap",
6770
+ taxi: "taxi",
6771
+ truck: "truck",
6772
+ camion: "truck",
6773
+ motorcycle: "motorcycle",
6774
+ moto: "motorcycle",
6775
+ helipad: "helicopter",
6776
+ heliport: "helicopter",
6777
+ // services
6778
+ bank: "money",
6779
+ banca: "money",
6780
+ atm: "credit-card",
6781
+ bancomat: "credit-card",
6782
+ money: "money",
6783
+ bureau_de_change: "money",
6784
+ post_office: "mail",
6785
+ post: "mail",
6786
+ posta: "mail",
6787
+ ufficio_postale: "mail",
6788
+ police: "police",
6789
+ polizia: "police",
6790
+ carabinieri: "police",
6791
+ questura: "police",
6792
+ fire_station: "fire",
6793
+ vigili_del_fuoco: "fire",
6794
+ pompieri: "fire",
6795
+ fire: "fire",
6796
+ prison: "lock",
6797
+ carcere: "lock",
6798
+ military: "shield",
6799
+ caserma: "shield",
6800
+ barracks: "shield",
6801
+ army: "shield",
6802
+ telephone: "phone",
6803
+ phone: "phone",
6804
+ mobile: "phone",
6805
+ telecom: "satellite",
6806
+ antenna: "satellite",
6807
+ tower: "satellite",
6808
+ mast: "satellite",
6809
+ radio: "radio",
6810
+ // leisure & culture
6811
+ cinema: "film",
6812
+ movie: "film",
6813
+ theatre: "art",
6814
+ theater: "art",
6815
+ teatro: "art",
6816
+ arts_centre: "art",
6817
+ gallery: "art",
6818
+ galleria: "art",
6819
+ artwork: "art",
6820
+ music: "music",
6821
+ concert: "music",
6822
+ concerto: "music",
6823
+ park: "trees",
6824
+ parco: "trees",
6825
+ garden: "flower",
6826
+ giardino: "flower",
6827
+ forest: "trees",
6828
+ bosco: "trees",
6829
+ wood: "trees",
6830
+ beach: "sun",
6831
+ spiaggia: "sun",
6832
+ lake: "waves",
6833
+ lago: "waves",
6834
+ river: "waves",
6835
+ fiume: "waves",
6836
+ sea: "waves",
6837
+ mare: "waves",
6838
+ peak: "mountain",
6839
+ mountain: "mountain",
6840
+ montagna: "mountain",
6841
+ volcano: "volcano",
6842
+ vulcano: "volcano",
6843
+ viewpoint: "camera",
6844
+ panorama: "camera",
6845
+ attraction: "star",
6846
+ tourism: "star",
6847
+ attrazione: "star",
6848
+ playground: "baby",
6849
+ zoo: "horse",
6850
+ veterinary: "dog",
6851
+ veterinario: "dog",
6852
+ pet: "dog",
6853
+ animali: "dog",
6854
+ fishing: "fishing",
6855
+ pesca: "fishing",
6856
+ fishmonger: "fish",
6857
+ pescheria: "fish",
6858
+ lighthouse: "lighthouse",
6859
+ faro: "lighthouse",
6860
+ // people
6861
+ person: "user",
6862
+ persona: "user",
6863
+ people: "users",
6864
+ persone: "users",
6865
+ suspect: "user",
6866
+ sospetto: "user",
6867
+ witness: "user",
6868
+ testimone: "user",
6869
+ // generic signals
6870
+ event: "calendar",
6871
+ evento: "calendar",
6872
+ incident: "alert",
6873
+ incidente: "alert",
6874
+ accident: "alert",
6875
+ alert: "alert",
6876
+ danger: "alert",
6877
+ pericolo: "alert",
6878
+ crime: "siren",
6879
+ reato: "siren",
6880
+ emergency: "siren",
6881
+ emergenza: "siren",
6882
+ camera_surveillance: "eye",
6883
+ surveillance: "eye",
6884
+ cctv: "eye",
6885
+ telecamera: "eye"
6886
+ };
6887
+ const FALLBACK_SHAPES = [
6888
+ "red-circle",
6889
+ "blue-circle",
6890
+ "green-circle",
6891
+ "yellow-circle",
6892
+ "orange-circle",
6893
+ "purple-circle",
6894
+ "red-square",
6895
+ "blue-square",
6896
+ "black-circle",
6897
+ "white-circle",
6898
+ "diamond",
6899
+ "star"
6900
+ ];
6901
+ const ICON_IDS = new Set(ICONS.map((i) => i.id));
6902
+ function normalize(value) {
6903
+ return value.normalize("NFKC").trim().toLowerCase();
6904
+ }
6905
+ function keywordIconId(value) {
6906
+ const v = normalize(value);
6907
+ if (!v) return null;
6908
+ const whole = v.replace(/[\s-]+/g, "_");
6909
+ if (KEYWORDS[whole]) return KEYWORDS[whole];
6910
+ if (ICON_IDS.has(whole.replace(/_/g, "-"))) return whole.replace(/_/g, "-");
6911
+ const words = v.split(/[\s_\-.,;:/\\()[\]{}|&+'"!?#*]+/).filter(Boolean);
6912
+ for (const w of words) {
6913
+ if (KEYWORDS[w]) return KEYWORDS[w];
6914
+ const singular = w.length > 3 && w.endsWith("s") ? w.slice(0, -1) : null;
6915
+ if (singular && KEYWORDS[singular]) return KEYWORDS[singular];
6916
+ if (ICON_IDS.has(w)) return w;
6917
+ }
6918
+ for (const w of words) {
6919
+ const hit = ICONS.find((i) => i.name.toLowerCase() === w);
6920
+ if (hit) return hit.id;
6921
+ }
6922
+ return null;
6923
+ }
6924
+ const SHAPE_EMOJI = FALLBACK_SHAPES.map((id) => EMOJI_BY_ID.get(id));
6925
+ function suggestIconsByKeyword(values, inUse = []) {
6926
+ const out = {};
6927
+ const used = new Set(inUse);
6928
+ let repeat = 0;
6929
+ for (const value of values) {
6930
+ const id = keywordIconId(value);
6931
+ const emoji = id ? EMOJI_BY_ID.get(id) : void 0;
6932
+ const icon = emoji ?? SHAPE_EMOJI.find((shape) => !used.has(shape)) ?? SHAPE_EMOJI[repeat++ % SHAPE_EMOJI.length];
6933
+ used.add(icon);
6934
+ out[value] = icon;
6935
+ }
6936
+ return out;
6937
+ }
6938
+ async function assignIcons(request, provider, { inUse = [] } = {}) {
6939
+ const values = request.values.map((v) => v.value);
6940
+ const base = suggestIconsByKeyword(values, inUse);
6941
+ if (!provider) return { valueIcons: base, source: "keywords" };
6942
+ try {
6943
+ const answer = await provider(request);
6944
+ const merged = { ...base };
6945
+ let used = 0;
6946
+ for (const value of values) {
6947
+ const emoji = usableIcon(answer == null ? void 0 : answer[value]);
6948
+ if (emoji) {
6949
+ merged[value] = emoji;
6950
+ used++;
6951
+ }
6952
+ }
6953
+ return used > 0 ? { valueIcons: merged, source: "ai" } : { valueIcons: base, source: "keywords", problem: { reason: "no-usable-icon" } };
6954
+ } catch (e) {
6955
+ return {
6956
+ valueIcons: base,
6957
+ source: "keywords",
6958
+ problem: { reason: "provider-failed", message: e instanceof Error ? e.message : String(e) }
6959
+ };
6960
+ }
6961
+ }
6962
+ const DEFAULT_ICON = "📍";
6963
+ const DEFAULT_SIZE = 24;
6964
+ const ROWS_INITIAL = 8;
6965
+ const KIND_FIELDS = ["type", "category", "kind", "class", "amenity", "shop", "tourism", "leisure", "tipo", "categoria", "subtype", "poi_type"];
6966
+ function guessKindField(fields) {
6967
+ const byName = new Map(fields.map((f) => [f.name.toLowerCase(), f.name]));
6968
+ for (const k of KIND_FIELDS) {
6969
+ const hit = byName.get(k);
6970
+ if (hit) return hit;
6971
+ }
6972
+ return void 0;
6973
+ }
6974
+ function PointIconSettings({
6975
+ layer,
6976
+ onUpdateVisualConfig,
6977
+ getLayerFields,
6978
+ getFieldValueDistribution,
6979
+ iconSuggestionProvider
6980
+ }) {
6981
+ var _a;
6982
+ const icon = ((_a = layer.visualConfig) == null ? void 0 : _a.icon) ?? { enabled: false, icon: DEFAULT_ICON, size: DEFAULT_SIZE };
6983
+ const mode = icon.mode ?? "fixed";
6984
+ const byField = icon.enabled && mode === "field";
6985
+ const { layerSettings: L } = useMapLabels();
6986
+ const [assigning, setAssigning] = useState(false);
6987
+ const [problem, setProblem] = useState(null);
6988
+ const [expanded, setExpanded] = useState(false);
6989
+ const latest = useRef(layer.visualConfig);
6990
+ latest.current = layer.visualConfig;
6991
+ const update = (patch) => {
6992
+ var _a2;
6993
+ const current = ((_a2 = latest.current) == null ? void 0 : _a2.icon) ?? { enabled: false, icon: DEFAULT_ICON, size: DEFAULT_SIZE };
6994
+ const next = { ...latest.current, icon: { ...current, ...patch } };
6995
+ latest.current = next;
6996
+ onUpdateVisualConfig(layer.id, next);
6997
+ };
6998
+ const scan = useRef({ getLayerFields, getFieldValueDistribution });
6999
+ scan.current = { getLayerFields, getFieldValueDistribution };
7000
+ const countValues = (fieldName) => {
7001
+ var _a2, _b;
7002
+ return ((_b = (_a2 = scan.current).getFieldValueDistribution) == null ? void 0 : _b.call(_a2, layer.id, fieldName, ICON_BY_FIELD_MAX_VALUES, { wholeLayer: true })) ?? [];
7003
+ };
7004
+ const fields = useMemo(
7005
+ () => byField ? scan.current.getLayerFields(layer.id) : [],
7006
+ [byField, layer.id, layer.featureIds]
7007
+ );
7008
+ const distribution = useMemo(
7009
+ () => byField && icon.fieldName ? countValues(icon.fieldName) : [],
7010
+ // eslint-disable-next-line react-hooks/exhaustive-deps
7011
+ [byField, icon.fieldName, layer.id, layer.featureIds]
7012
+ );
7013
+ const unassigned = distribution.filter((d) => {
7014
+ var _a2;
7015
+ return !((_a2 = icon.valueIcons) == null ? void 0 : _a2[d.value]);
7016
+ });
7017
+ const runId = useRef(0);
7018
+ const mounted = useRef(false);
7019
+ useEffect(() => {
7020
+ mounted.current = true;
7021
+ return () => {
7022
+ mounted.current = false;
7023
+ };
7024
+ }, []);
7025
+ const runAssign = async (fieldName, scope) => {
7026
+ var _a2, _b, _c;
7027
+ const counted = countValues(fieldName);
7028
+ const assigned = ((_b = (_a2 = latest.current) == null ? void 0 : _a2.icon) == null ? void 0 : _b.valueIcons) ?? {};
7029
+ const values = scope === "all" ? counted : counted.filter((d) => !assigned[d.value]);
7030
+ if (values.length === 0) return;
7031
+ const run = ++runId.current;
7032
+ setAssigning(true);
7033
+ setProblem(null);
7034
+ const result = await assignIcons(
7035
+ { layerName: layer.name, fieldName, values, icons: ICONS },
7036
+ iconSuggestionProvider,
7037
+ { inUse: scope === "missing" ? Object.values(assigned) : [] }
7038
+ );
7039
+ if (run !== runId.current || !mounted.current) return;
7040
+ setAssigning(false);
7041
+ setProblem(result.problem ?? null);
7042
+ const now = (_c = latest.current) == null ? void 0 : _c.icon;
7043
+ if (!(now == null ? void 0 : now.enabled) || now.mode !== "field" || now.fieldName !== fieldName) return;
7044
+ const keep = scope === "missing" ? now.valueIcons ?? {} : {};
7045
+ update({ valueIcons: { ...keep, ...result.valueIcons }, assignedBy: result.source });
7046
+ };
7047
+ const pickField = (fieldName) => {
7048
+ update({ mode: "field", fieldName, valueIcons: {} });
7049
+ setExpanded(false);
7050
+ void runAssign(fieldName, "all");
7051
+ };
7052
+ const autoRan = useRef(false);
7053
+ useEffect(() => {
7054
+ if (!byField || icon.fieldName || autoRan.current) return;
7055
+ const guess = guessKindField(fields);
7056
+ if (guess) {
7057
+ autoRan.current = true;
7058
+ pickField(guess);
7059
+ }
7060
+ }, [byField, icon.fieldName, fields]);
7061
+ const sizeSlider = /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
7062
+ /* @__PURE__ */ jsx("span", { className: "text-xs text-muted-foreground w-8", children: L.size }),
7063
+ /* @__PURE__ */ jsx(
7064
+ Slider,
7065
+ {
7066
+ value: icon.size ?? DEFAULT_SIZE,
7067
+ min: 12,
7068
+ max: 48,
7069
+ step: 2,
7070
+ className: "flex-1",
7071
+ onChange: (val) => update({ size: val }),
7072
+ "data-testid": `slider-icon-size-${layer.id}`
7073
+ }
7074
+ ),
7075
+ /* @__PURE__ */ jsx("span", { className: "text-sm w-6 text-right", children: icon.size ?? DEFAULT_SIZE })
7076
+ ] });
7077
+ const rows = expanded ? distribution : distribution.slice(0, ROWS_INITIAL);
7078
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
7079
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1 text-sm text-muted-foreground pt-0.5", children: [
7080
+ /* @__PURE__ */ jsx(Smile, { className: "w-3.5 h-3.5" }),
7081
+ /* @__PURE__ */ jsx("span", { children: L.pointIcon })
7082
+ ] }),
7083
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
7084
+ /* @__PURE__ */ jsx(
7085
+ Switch,
7086
+ {
7087
+ size: "small",
7088
+ checked: icon.enabled,
7089
+ onChange: (checked) => {
7090
+ autoRan.current = false;
7091
+ update({ enabled: checked, icon: icon.icon ?? DEFAULT_ICON, size: icon.size ?? DEFAULT_SIZE });
7092
+ },
7093
+ "data-testid": `switch-icon-${layer.id}`
7094
+ }
7095
+ ),
7096
+ icon.enabled && /* @__PURE__ */ jsx(
7097
+ Segmented,
7098
+ {
7099
+ size: "small",
7100
+ value: mode,
7101
+ onChange: (val) => {
7102
+ autoRan.current = false;
7103
+ update({ mode: val });
7104
+ },
7105
+ options: [
7106
+ { label: L.iconSameForAll, value: "fixed" },
7107
+ { label: L.iconByFieldValue, value: "field" }
7108
+ ],
7109
+ "data-testid": `segmented-icon-mode-${layer.id}`
7110
+ }
7111
+ )
7112
+ ] }),
7113
+ icon.enabled && mode === "fixed" && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1", children: [
7114
+ /* @__PURE__ */ jsx(IconPicker, { value: icon.icon ?? DEFAULT_ICON, onChange: (v) => update({ icon: v }) }),
7115
+ /* @__PURE__ */ jsx("div", { className: "flex-1", children: sizeSlider })
7116
+ ] }),
7117
+ icon.enabled && mode === "field" && /* @__PURE__ */ jsxs("div", { className: "space-y-1.5", "data-testid": `icon-by-field-${layer.id}`, children: [
7118
+ /* @__PURE__ */ jsx(
7119
+ Select,
7120
+ {
7121
+ size: "small",
7122
+ value: icon.fieldName,
7123
+ onChange: pickField,
7124
+ className: "w-full text-sm",
7125
+ placeholder: L.selectField,
7126
+ showSearch: true,
7127
+ optionFilterProp: "label",
7128
+ options: fields.map((f) => ({ value: f.name, label: f.name })),
7129
+ "data-testid": `select-icon-field-${layer.id}`
7130
+ }
7131
+ ),
7132
+ icon.fieldName && /* @__PURE__ */ jsxs("div", { className: "rounded border border-border/50 bg-background/40 p-1.5", children: [
7133
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1 mb-1", children: [
7134
+ /* @__PURE__ */ jsx("span", { className: "text-[10px] uppercase tracking-wide text-muted-foreground flex-1", children: assigning ? L.iconsAssigning : icon.assignedBy === "ai" ? L.iconsAssignedByAi : icon.assignedBy === "keywords" ? L.iconsAssignedByKeywords : L.icons }),
7135
+ /* @__PURE__ */ jsx(Tooltip, { title: iconSuggestionProvider ? L.reassignIconsWithAi : L.reassignIconsByKeywords, children: /* @__PURE__ */ jsx(
7136
+ Button,
7137
+ {
7138
+ size: "small",
7139
+ type: "text",
7140
+ disabled: assigning,
7141
+ icon: assigning ? /* @__PURE__ */ jsx(Loader2, { className: "w-3.5 h-3.5 animate-spin" }) : /* @__PURE__ */ jsx(Sparkles, { className: "w-3.5 h-3.5" }),
7142
+ onClick: () => runAssign(icon.fieldName, "all"),
7143
+ "data-testid": `button-reassign-icons-${layer.id}`,
7144
+ children: L.reassignIcons
7145
+ }
7146
+ ) })
7147
+ ] }),
7148
+ problem && /* @__PURE__ */ jsx("div", { className: "text-[11px] text-amber-600 mb-1", "data-testid": `icon-assign-error-${layer.id}`, children: problem.reason === "provider-failed" ? L.iconAiUnavailable(problem.message) : L.iconAiNoUsableIcon }),
7149
+ unassigned.length > 0 && !assigning && distribution.length > unassigned.length && /* @__PURE__ */ jsx(
7150
+ "button",
7151
+ {
7152
+ type: "button",
7153
+ className: "mb-1 text-[11px] text-primary hover:underline",
7154
+ onClick: () => runAssign(icon.fieldName, "missing"),
7155
+ "data-testid": `button-assign-new-icons-${layer.id}`,
7156
+ children: L.assignNewIcons(unassigned.length)
7157
+ }
7158
+ ),
7159
+ /* @__PURE__ */ jsxs("div", { className: "space-y-0.5 max-h-56 overflow-y-auto", children: [
7160
+ rows.map(({ value, count }) => {
7161
+ var _a2;
7162
+ return /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1.5 text-[12px]", title: `${value} (${count})`, children: [
7163
+ /* @__PURE__ */ jsx(
7164
+ IconPicker,
7165
+ {
7166
+ value: ((_a2 = icon.valueIcons) == null ? void 0 : _a2[value]) ?? icon.icon ?? DEFAULT_ICON,
7167
+ onChange: (v) => {
7168
+ var _a3, _b;
7169
+ return update({ valueIcons: { ...((_b = (_a3 = latest.current) == null ? void 0 : _a3.icon) == null ? void 0 : _b.valueIcons) ?? {}, [value]: v } });
7170
+ },
7171
+ renderTrigger: (open) => {
7172
+ var _a3;
7173
+ return /* @__PURE__ */ jsx(
7174
+ "button",
7175
+ {
7176
+ type: "button",
7177
+ className: "w-6 h-6 shrink-0 rounded hover:bg-muted text-base leading-none",
7178
+ onClick: open,
7179
+ "data-testid": `button-value-icon-${layer.id}-${value}`,
7180
+ children: ((_a3 = icon.valueIcons) == null ? void 0 : _a3[value]) ?? /* @__PURE__ */ jsx("span", { className: "opacity-40", children: icon.icon ?? DEFAULT_ICON })
7181
+ }
7182
+ );
7183
+ }
7184
+ }
7185
+ ),
7186
+ /* @__PURE__ */ jsx("span", { className: "truncate flex-1 text-foreground", children: value }),
7187
+ /* @__PURE__ */ jsx("span", { className: "text-muted-foreground tabular-nums", children: count })
7188
+ ] }, value);
7189
+ }),
7190
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1.5 text-[12px]", children: [
7191
+ /* @__PURE__ */ jsx(
7192
+ IconPicker,
7193
+ {
7194
+ value: icon.icon ?? DEFAULT_ICON,
7195
+ onChange: (v) => update({ icon: v }),
7196
+ renderTrigger: (open) => /* @__PURE__ */ jsx(
7197
+ "button",
7198
+ {
7199
+ type: "button",
7200
+ className: "w-6 h-6 shrink-0 rounded hover:bg-muted text-base leading-none",
7201
+ onClick: open,
7202
+ "data-testid": `button-other-icon-${layer.id}`,
7203
+ children: icon.icon ?? DEFAULT_ICON
7204
+ }
7205
+ )
7206
+ }
7207
+ ),
7208
+ /* @__PURE__ */ jsx("span", { className: "truncate flex-1 italic text-muted-foreground", children: distribution.length >= ICON_BY_FIELD_MAX_VALUES ? L.iconOtherValues : L.iconEmptyOrUnassigned })
7209
+ ] })
7210
+ ] }),
7211
+ distribution.length > ROWS_INITIAL && /* @__PURE__ */ jsx(
7212
+ "button",
7213
+ {
7214
+ type: "button",
7215
+ className: "mt-1 text-[11px] text-primary hover:underline",
7216
+ onClick: () => setExpanded((e) => !e),
7217
+ "data-testid": `button-icon-rows-toggle-${layer.id}`,
7218
+ children: expanded ? L.showLess : L.showAll(distribution.length)
7219
+ }
7220
+ )
7221
+ ] }),
7222
+ sizeSlider
7223
+ ] })
7224
+ ] });
7225
+ }
5141
7226
  const MAP_STYLES = [
5142
7227
  { id: "streets", name: "Streets", icon: Map$1 },
5143
7228
  { id: "satellite", name: "Satellite", icon: Satellite },
@@ -5315,7 +7400,8 @@ function LayersPanel({
5315
7400
  extraLayerToolbarButtons,
5316
7401
  extraNewLayerButtons,
5317
7402
  layerBadgeProvider,
5318
- featureCountProvider
7403
+ featureCountProvider,
7404
+ iconSuggestionProvider
5319
7405
  }) {
5320
7406
  const {
5321
7407
  canvas: canvasLabels,
@@ -5416,7 +7502,7 @@ function LayersPanel({
5416
7502
  });
5417
7503
  }, [confirm, onRemoveLayer, labels, shownName]);
5418
7504
  const renderLayerItem = (layer) => {
5419
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P, _Q, _R, _S, _T, _U, _V, _W, _X, _Y, _Z, __, _$, _aa, _ba, _ca, _da, _ea, _fa;
7505
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P, _Q, _R, _S, _T, _U, _V, _W, _X;
5420
7506
  const customCount = featureCountProvider == null ? void 0 : featureCountProvider(layer.id);
5421
7507
  const featureCount = customCount != null ? customCount : getFeatureCount(layer.id);
5422
7508
  const isExpanded = expandedLayers.has(layer.id);
@@ -6086,74 +8172,16 @@ function LayersPanel({
6086
8172
  testId: `color-fixed-${layer.id}`
6087
8173
  }
6088
8174
  ),
6089
- (hasPointFeatures == null ? void 0 : hasPointFeatures(layer.id)) && !((_X = layer.metadata) == null ? void 0 : _X.hidePointFeatures) && /* @__PURE__ */ jsxs(Fragment, { children: [
6090
- /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1 text-sm text-muted-foreground pt-0.5", children: [
6091
- /* @__PURE__ */ jsx(Smile, { className: "w-3.5 h-3.5" }),
6092
- /* @__PURE__ */ jsx("span", { children: settingsLabels.pointIcon })
6093
- ] }),
6094
- /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
6095
- /* @__PURE__ */ jsx(
6096
- Switch,
6097
- {
6098
- size: "small",
6099
- checked: ((_Z = (_Y = layer.visualConfig) == null ? void 0 : _Y.icon) == null ? void 0 : _Z.enabled) ?? false,
6100
- onChange: (checked) => {
6101
- var _a2, _b2, _c2, _d2;
6102
- onUpdateVisualConfig == null ? void 0 : onUpdateVisualConfig(layer.id, {
6103
- ...layer.visualConfig,
6104
- icon: {
6105
- enabled: checked,
6106
- icon: ((_b2 = (_a2 = layer.visualConfig) == null ? void 0 : _a2.icon) == null ? void 0 : _b2.icon) ?? "📍",
6107
- size: ((_d2 = (_c2 = layer.visualConfig) == null ? void 0 : _c2.icon) == null ? void 0 : _d2.size) ?? 24
6108
- }
6109
- });
6110
- },
6111
- "data-testid": `switch-icon-${layer.id}`
6112
- }
6113
- ),
6114
- ((_$ = (__ = layer.visualConfig) == null ? void 0 : __.icon) == null ? void 0 : _$.enabled) && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1 flex-1", children: [
6115
- /* @__PURE__ */ jsx(
6116
- IconPicker,
6117
- {
6118
- value: ((_ba = (_aa = layer.visualConfig) == null ? void 0 : _aa.icon) == null ? void 0 : _ba.icon) ?? "📍",
6119
- onChange: (icon) => {
6120
- var _a2, _b2;
6121
- onUpdateVisualConfig == null ? void 0 : onUpdateVisualConfig(layer.id, {
6122
- ...layer.visualConfig,
6123
- icon: {
6124
- enabled: true,
6125
- icon,
6126
- size: ((_b2 = (_a2 = layer.visualConfig) == null ? void 0 : _a2.icon) == null ? void 0 : _b2.size) ?? 24
6127
- }
6128
- });
6129
- }
6130
- }
6131
- ),
6132
- /* @__PURE__ */ jsx(
6133
- Slider,
6134
- {
6135
- value: ((_da = (_ca = layer.visualConfig) == null ? void 0 : _ca.icon) == null ? void 0 : _da.size) ?? 24,
6136
- min: 12,
6137
- max: 48,
6138
- step: 2,
6139
- className: "flex-1",
6140
- onChange: (val) => {
6141
- var _a2, _b2;
6142
- onUpdateVisualConfig == null ? void 0 : onUpdateVisualConfig(layer.id, {
6143
- ...layer.visualConfig,
6144
- icon: {
6145
- enabled: true,
6146
- icon: ((_b2 = (_a2 = layer.visualConfig) == null ? void 0 : _a2.icon) == null ? void 0 : _b2.icon) ?? "📍",
6147
- size: val
6148
- }
6149
- });
6150
- }
6151
- }
6152
- ),
6153
- /* @__PURE__ */ jsx("span", { className: "text-sm w-6 text-right", children: ((_fa = (_ea = layer.visualConfig) == null ? void 0 : _ea.icon) == null ? void 0 : _fa.size) ?? 24 })
6154
- ] })
6155
- ] })
6156
- ] })
8175
+ (hasPointFeatures == null ? void 0 : hasPointFeatures(layer.id)) && !((_X = layer.metadata) == null ? void 0 : _X.hidePointFeatures) && onUpdateVisualConfig && /* @__PURE__ */ jsx(
8176
+ PointIconSettings,
8177
+ {
8178
+ layer,
8179
+ onUpdateVisualConfig,
8180
+ getLayerFields,
8181
+ getFieldValueDistribution,
8182
+ iconSuggestionProvider
8183
+ }
8184
+ )
6157
8185
  ] })
6158
8186
  ] })
6159
8187
  ] }, layer.id);
@@ -9997,6 +12025,17 @@ function hitTestSelection(featureGroups, selectionPolygon, options) {
9997
12025
  mapPerfLog("hit-test", "selection gesture", { visited, total, selected: selectedIds.length });
9998
12026
  return selectedIds;
9999
12027
  }
12028
+ function fieldValueDistribution(features, fieldName, maxValues, scanLimit = features.length) {
12029
+ var _a, _b;
12030
+ const counts2 = /* @__PURE__ */ new Map();
12031
+ const end = Math.min(scanLimit, features.length);
12032
+ for (let i = 0; i < end; i++) {
12033
+ const key = categoricalKey((_b = (_a = features[i]) == null ? void 0 : _a.properties) == null ? void 0 : _b[fieldName]);
12034
+ if (key === null) continue;
12035
+ counts2.set(key, (counts2.get(key) ?? 0) + 1);
12036
+ }
12037
+ return Array.from(counts2.entries()).sort((a, b) => b[1] - a[1] || a[0].localeCompare(b[0])).slice(0, maxValues).map(([value, count]) => ({ value, count }));
12038
+ }
10000
12039
  const SELECTION_OVERLAY_SOURCE_ID = "selection-overlay";
10001
12040
  const SELECTION_OVERLAY_LAYER_IDS = {
10002
12041
  iconRing: "selection-overlay-icon-ring",
@@ -10883,6 +12922,7 @@ const MapEditorCanvas = forwardRef(function MapEditorCanvas2({
10883
12922
  contextMenuProvider,
10884
12923
  featureSaveProvider,
10885
12924
  featureRefreshProvider,
12925
+ iconSuggestionProvider,
10886
12926
  tooltipProvider,
10887
12927
  filterGeometry,
10888
12928
  hideBasemapSwitcher = false,
@@ -15622,8 +17662,7 @@ const MapEditorCanvas = forwardRef(function MapEditorCanvas2({
15622
17662
  })).sort((a, b) => a.name.localeCompare(b.name));
15623
17663
  }, [layers]);
15624
17664
  const getFieldValueDistribution = useCallback(
15625
- (layerId, fieldName, maxValues = 50) => {
15626
- var _a;
17665
+ (layerId, fieldName, maxValues = 50, options) => {
15627
17666
  const layer = layers.find((l) => l.id === layerId);
15628
17667
  if (!layer) return [];
15629
17668
  let features = [];
@@ -15635,14 +17674,7 @@ const MapEditorCanvas = forwardRef(function MapEditorCanvas2({
15635
17674
  features = hiddenFeatures.current.get(layerId) || [];
15636
17675
  }
15637
17676
  const MAX_SAMPLES2 = 1e4;
15638
- const sample = features.slice(0, MAX_SAMPLES2);
15639
- const counts2 = /* @__PURE__ */ new Map();
15640
- for (const f of sample) {
15641
- const key = categoricalKey((_a = f == null ? void 0 : f.properties) == null ? void 0 : _a[fieldName]);
15642
- if (key === null) continue;
15643
- counts2.set(key, (counts2.get(key) ?? 0) + 1);
15644
- }
15645
- return Array.from(counts2.entries()).sort((a, b) => b[1] - a[1] || a[0].localeCompare(b[0])).slice(0, maxValues).map(([value, count]) => ({ value, count }));
17677
+ return fieldValueDistribution(features, fieldName, maxValues, (options == null ? void 0 : options.wholeLayer) ? void 0 : MAX_SAMPLES2);
15646
17678
  },
15647
17679
  [layers]
15648
17680
  );
@@ -18316,6 +20348,7 @@ const MapEditorCanvas = forwardRef(function MapEditorCanvas2({
18316
20348
  getAvailableTraceFields,
18317
20349
  getSuggestedTraceField,
18318
20350
  getFieldValueDistribution,
20351
+ iconSuggestionProvider,
18319
20352
  onUpdateHeatmapConfig: handleUpdateHeatmapConfig,
18320
20353
  onUpdateClusterConfig: handleUpdateClusterConfig,
18321
20354
  hasPointFeatures,
@@ -19163,7 +21196,7 @@ function DraggableDroneFlight({ item }) {
19163
21196
  }
19164
21197
  );
19165
21198
  }
19166
- function DebugSidebar({ onAddRandomPoints, onImportKML, onAddDomMarkers, onRemoveDomMarkers, canAddFeatures = true, className, onCloseMap }) {
21199
+ function DebugSidebar({ onAddRandomPoints, onImportKML, onAddDomMarkers, onRemoveDomMarkers, canAddFeatures = true, className, onCloseMap, onAddPoiSample }) {
19167
21200
  const [isGenerating, setIsGenerating] = useState(false);
19168
21201
  const [isDragOver, setIsDragOver] = useState(false);
19169
21202
  const [wizardOpen, setWizardOpen] = useState(false);
@@ -19260,6 +21293,20 @@ function DebugSidebar({ onAddRandomPoints, onImportKML, onAddDomMarkers, onRemov
19260
21293
  /* @__PURE__ */ jsx("h3", { className: "text-sm font-medium mb-2", children: "Test Data" }),
19261
21294
  !canAddFeatures && /* @__PURE__ */ jsx("p", { className: "text-xs text-amber-600 dark:text-amber-400 mb-2", children: "Select an editable layer to add test data" }),
19262
21295
  /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
21296
+ onAddPoiSample && /* @__PURE__ */ jsxs(
21297
+ Button,
21298
+ {
21299
+ type: "primary",
21300
+ size: "small",
21301
+ onClick: onAddPoiSample,
21302
+ className: "w-full flex items-center justify-center",
21303
+ "data-testid": "button-add-poi-sample",
21304
+ children: [
21305
+ /* @__PURE__ */ jsx(Plus, { className: "w-4 h-4 mr-2" }),
21306
+ "Add POI layer (icons by type)"
21307
+ ]
21308
+ }
21309
+ ),
19263
21310
  /* @__PURE__ */ jsxs(
19264
21311
  Button,
19265
21312
  {
@@ -19448,6 +21495,7 @@ export {
19448
21495
  DebugSidebar,
19449
21496
  DrawingToolbar,
19450
21497
  HOST_IMAGE_PREFIX,
21498
+ ICON_BY_FIELD_MAX_VALUES,
19451
21499
  INTERNAL_PROPERTY_KEYS,
19452
21500
  INTERNAL_PROPERTY_PREFIXES,
19453
21501
  IconPicker,
@@ -19463,6 +21511,7 @@ export {
19463
21511
  Timebar,
19464
21512
  TimebarToggle,
19465
21513
  TimelineStoreContext,
21514
+ assignIcons,
19466
21515
  cn,
19467
21516
  createClusterPieManager,
19468
21517
  createTimelineStore,
@@ -19475,6 +21524,7 @@ export {
19475
21524
  normalizeTemporalProperties,
19476
21525
  parseKMLToGeoJSON,
19477
21526
  readTimelineDates,
21527
+ suggestIconsByKeyword,
19478
21528
  useToast as toast,
19479
21529
  useTimelineStore,
19480
21530
  useTimelineStoreApi,