elseware-ui 3.5.0 → 3.7.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/LICENSE +20 -20
- package/dist/components/data-display/flag/Flag.d.ts.map +1 -1
- package/dist/components/data-display/lists/ListItem.d.ts.map +1 -1
- package/dist/components/data-display/rating/star-rating/StarRating.d.ts.map +1 -1
- package/dist/components/data-entry/image-input/web/ImageInput.web.d.ts.map +1 -1
- package/dist/components/data-entry/multi-image-input/web/MultiImageInput.web.d.ts.map +1 -1
- package/dist/components/data-entry/rating/StarRatingInput.d.ts.map +1 -1
- package/dist/components/navigation/drawer/DrawerToggler.d.ts.map +1 -1
- package/dist/components/navigation/header-nav/HeaderNavGroup.d.ts.map +1 -1
- package/dist/components/navigation/menu/components/MenuGroup.d.ts.map +1 -1
- package/dist/components/surfaces/accordion/Accordion.d.ts.map +1 -1
- package/dist/components/theme/ThemeSwitch.d.ts.map +1 -1
- package/dist/compositions/comment-thread/components/CommentRepliesToggle.d.ts.map +1 -1
- package/dist/compositions/comment-thread/components/renderers/CommentActions.d.ts.map +1 -1
- package/dist/compositions/comment-thread/components/renderers/CommentMenu.d.ts.map +1 -1
- package/dist/compositions/data-display/system-health-status/SystemHealthStatus.utils.d.ts.map +1 -1
- package/dist/compositions/data-display/system-health-status/types.d.ts +3 -3
- package/dist/compositions/data-display/system-health-status/types.d.ts.map +1 -1
- package/dist/compositions/navigation/top-nav/components/TNDropdownGroup.d.ts.map +1 -1
- package/dist/compositions/review-thread/components/renderers/ReviewActions.d.ts.map +1 -1
- package/dist/compositions/review-thread/components/renderers/ReviewMenu.d.ts.map +1 -1
- package/dist/compositions/review-thread/components/renderers/ReviewReplyMenu.d.ts.map +1 -1
- package/dist/data/meta/country.d.ts +5 -1
- package/dist/data/meta/country.d.ts.map +1 -1
- package/dist/index.css +0 -6
- package/dist/index.css.map +1 -1
- package/dist/index.mjs +107 -477
- package/dist/index.mjs.map +1 -1
- package/package.json +12 -10
package/dist/index.mjs
CHANGED
|
@@ -3,23 +3,17 @@ import { twMerge } from 'tailwind-merge';
|
|
|
3
3
|
import React2, { createContext, forwardRef, useRef, useState, useImperativeHandle, useEffect, useMemo, useContext, useCallback, Children, useId, createElement, isValidElement } from 'react';
|
|
4
4
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
5
5
|
import { ResponsiveContainer, LineChart, CartesianGrid, XAxis, YAxis, Tooltip, Line, AreaChart, Area, BarChart, Bar, PieChart, Pie, Cell, ScatterChart, Scatter } from 'recharts';
|
|
6
|
+
import { LoadingIcon, UploadIcon, CheckIcon, RemoveCircleIcon, CircleChevronDownIcon, StarIcon, StarHalfIcon, SunIcon, MoonIcon, DragHandleIcon, DeleteIcon, PlusIcon, ChevronLeftIcon, ChevronRightIcon, ChevronDownIcon, CloseIcon, MenuIcon, WarningIcon, ActivityIcon, CheckCircleIcon, ServerIcon, DatabaseIcon, ClockIcon, RefreshIcon, DiamondIcon, CircleIcon, EyeOffIcon, EyeIcon, ChevronUpIcon, LikeIcon, DislikeIcon, MoreVerticalIcon, ReplyIcon, EditIcon, FlagIcon } from 'elseware-icons';
|
|
6
7
|
import classNames64 from 'classnames';
|
|
7
|
-
import {
|
|
8
|
-
import ReactWorldFlags from 'react-world-flags';
|
|
9
|
-
import emojiFlags from 'emoji-flags';
|
|
8
|
+
import { getCountry, CountryFlag } from 'elseware-world-data';
|
|
10
9
|
import * as d3 from 'd3';
|
|
11
10
|
import { geoEqualEarth, geoPath } from 'd3';
|
|
12
|
-
import { BsStarFill, BsStarHalf, BsStar, BsChevronDown, BsFillDiamondFill } from 'react-icons/bs/index.js';
|
|
13
|
-
import { FaSun, FaMoon, FaGripVertical, FaTrash, FaPlus, FaTimes, FaBars, FaCircle, FaEyeSlash, FaEye } from 'react-icons/fa/index.js';
|
|
14
11
|
import { useField, ErrorMessage, Formik, Form as Form$1, Field, useFormikContext, FieldArray } from 'formik';
|
|
15
12
|
import { motion, AnimatePresence } from 'framer-motion';
|
|
16
13
|
import { feature } from 'topojson-client';
|
|
17
|
-
import {
|
|
14
|
+
import { countries } from 'elseware-world-data/data';
|
|
18
15
|
import { DragDropContext, Droppable, Draggable } from '@hello-pangea/dnd';
|
|
19
|
-
import { MdUpload, MdOutlineDone, MdOutlineRemoveCircleOutline, MdDragIndicator, MdKeyboardArrowLeft, MdKeyboardArrowRight, MdOutlineDelete } from 'react-icons/md/index.js';
|
|
20
16
|
import { createPortal } from 'react-dom';
|
|
21
|
-
import { BiChevronDown, BiChevronUp, BiSolidLike, BiLike, BiSolidDislike, BiDislike, BiDotsVerticalRounded, BiReply, BiEdit, BiTrash, BiFlag } from 'react-icons/bi/index.js';
|
|
22
|
-
import { FiAlertTriangle, FiActivity, FiCheckCircle, FiServer, FiDatabase, FiClock, FiRefreshCw } from 'react-icons/fi/index.js';
|
|
23
17
|
import CodeMirror from '@uiw/react-codemirror';
|
|
24
18
|
import { markdown } from '@codemirror/lang-markdown';
|
|
25
19
|
import { oneDark } from '@codemirror/theme-one-dark';
|
|
@@ -3322,7 +3316,7 @@ function Accordion({
|
|
|
3322
3316
|
onClick: toggleOnSummaryClick ? void 0 : handleToggle,
|
|
3323
3317
|
className: "hover:cursor-pointer",
|
|
3324
3318
|
children: /* @__PURE__ */ jsx(
|
|
3325
|
-
|
|
3319
|
+
CircleChevronDownIcon,
|
|
3326
3320
|
{
|
|
3327
3321
|
className: classNames64("text-xl transition-transform duration-300", {
|
|
3328
3322
|
"rotate-180": collapse
|
|
@@ -3810,7 +3804,6 @@ var Z_INDEX = Object.freeze({
|
|
|
3810
3804
|
tooltip: 900,
|
|
3811
3805
|
windowTitleBar: 1e3
|
|
3812
3806
|
});
|
|
3813
|
-
var WorldFlag = ReactWorldFlags.default ?? ReactWorldFlags;
|
|
3814
3807
|
var Flag = ({
|
|
3815
3808
|
code = "US",
|
|
3816
3809
|
width = 24,
|
|
@@ -3821,7 +3814,7 @@ var Flag = ({
|
|
|
3821
3814
|
const [pos, setPos] = useState({ x: 0, y: 0 });
|
|
3822
3815
|
const [showTooltip, setShowTooltip] = useState(false);
|
|
3823
3816
|
const upperCode = code.toUpperCase();
|
|
3824
|
-
const country =
|
|
3817
|
+
const country = getCountry(upperCode);
|
|
3825
3818
|
return /* @__PURE__ */ jsxs(
|
|
3826
3819
|
"div",
|
|
3827
3820
|
{
|
|
@@ -3834,11 +3827,20 @@ var Flag = ({
|
|
|
3834
3827
|
onMouseLeave: () => setShowTooltip(false),
|
|
3835
3828
|
children: [
|
|
3836
3829
|
/* @__PURE__ */ jsx(
|
|
3837
|
-
|
|
3830
|
+
CountryFlag,
|
|
3838
3831
|
{
|
|
3839
3832
|
code: upperCode,
|
|
3840
|
-
|
|
3841
|
-
|
|
3833
|
+
width,
|
|
3834
|
+
height,
|
|
3835
|
+
fallback: /* @__PURE__ */ jsx(
|
|
3836
|
+
"span",
|
|
3837
|
+
{
|
|
3838
|
+
"aria-label": `Unknown country flag: ${upperCode}`,
|
|
3839
|
+
className: "inline-block bg-gray-200 dark:bg-gray-700",
|
|
3840
|
+
role: "img",
|
|
3841
|
+
style: { width, height }
|
|
3842
|
+
}
|
|
3843
|
+
)
|
|
3842
3844
|
}
|
|
3843
3845
|
),
|
|
3844
3846
|
showTooltip && /* @__PURE__ */ jsxs(
|
|
@@ -3855,7 +3857,7 @@ var Flag = ({
|
|
|
3855
3857
|
children: [
|
|
3856
3858
|
upperCode,
|
|
3857
3859
|
" - ",
|
|
3858
|
-
country?.name || "Unknown"
|
|
3860
|
+
country?.name.common || "Unknown"
|
|
3859
3861
|
]
|
|
3860
3862
|
}
|
|
3861
3863
|
)
|
|
@@ -4628,8 +4630,8 @@ function ListItemElement({
|
|
|
4628
4630
|
);
|
|
4629
4631
|
}
|
|
4630
4632
|
var bulletTypes = {
|
|
4631
|
-
["dot" /* dot */]: /* @__PURE__ */ jsx(
|
|
4632
|
-
["diamond" /* diamond */]: /* @__PURE__ */ jsx(
|
|
4633
|
+
["dot" /* dot */]: /* @__PURE__ */ jsx(CircleIcon, { appearance: "solid", size: 6 }),
|
|
4634
|
+
["diamond" /* diamond */]: /* @__PURE__ */ jsx(DiamondIcon, { appearance: "solid", size: 8 }),
|
|
4633
4635
|
["number" /* number */]: null,
|
|
4634
4636
|
["none" /* none */]: null
|
|
4635
4637
|
};
|
|
@@ -5107,11 +5109,11 @@ var ProgressBar = ({
|
|
|
5107
5109
|
] });
|
|
5108
5110
|
};
|
|
5109
5111
|
var sizes = {
|
|
5110
|
-
["xs" /* xs */]:
|
|
5111
|
-
["sm" /* sm */]:
|
|
5112
|
-
["md" /* md */]:
|
|
5113
|
-
["lg" /* lg */]:
|
|
5114
|
-
["xl" /* xl */]:
|
|
5112
|
+
["xs" /* xs */]: 10,
|
|
5113
|
+
["sm" /* sm */]: 12,
|
|
5114
|
+
["md" /* md */]: 14,
|
|
5115
|
+
["lg" /* lg */]: 16,
|
|
5116
|
+
["xl" /* xl */]: 18
|
|
5115
5117
|
};
|
|
5116
5118
|
var StarRating = ({
|
|
5117
5119
|
rating,
|
|
@@ -5136,13 +5138,19 @@ var StarRating = ({
|
|
|
5136
5138
|
className: cn(
|
|
5137
5139
|
"inline-flex items-center gap-[2px]",
|
|
5138
5140
|
"text-yellow-500 dark:text-yellow-400",
|
|
5139
|
-
sizes[size],
|
|
5140
5141
|
iconClassName
|
|
5141
5142
|
),
|
|
5142
5143
|
children: [
|
|
5143
|
-
[...Array(fullStars)].map((_, index) => /* @__PURE__ */ jsx(
|
|
5144
|
-
hasHalfStar && /* @__PURE__ */ jsx(
|
|
5145
|
-
[...Array(emptyStars)].map((_, index) => /* @__PURE__ */ jsx(
|
|
5144
|
+
[...Array(fullStars)].map((_, index) => /* @__PURE__ */ jsx(StarIcon, { appearance: "solid", size: sizes[size] }, index)),
|
|
5145
|
+
hasHalfStar && /* @__PURE__ */ jsx(StarHalfIcon, { appearance: "solid", size: sizes[size] }),
|
|
5146
|
+
[...Array(emptyStars)].map((_, index) => /* @__PURE__ */ jsx(
|
|
5147
|
+
StarIcon,
|
|
5148
|
+
{
|
|
5149
|
+
size: sizes[size],
|
|
5150
|
+
className: "opacity-40"
|
|
5151
|
+
},
|
|
5152
|
+
index + fullStars
|
|
5153
|
+
))
|
|
5146
5154
|
]
|
|
5147
5155
|
}
|
|
5148
5156
|
),
|
|
@@ -6610,14 +6618,14 @@ var ThemeSwitch = () => {
|
|
|
6610
6618
|
className: "relative w-16 h-8 flex items-center bg-gray-300 dark:bg-gray-800 rounded-full p-1 transition-all",
|
|
6611
6619
|
children: [
|
|
6612
6620
|
/* @__PURE__ */ jsx(
|
|
6613
|
-
|
|
6621
|
+
SunIcon,
|
|
6614
6622
|
{
|
|
6615
6623
|
className: "absolute left-2 text-yellow-500 transition-opacity duration-300 z-10",
|
|
6616
6624
|
style: { opacity: theme === "dark" ? 0 : 1 }
|
|
6617
6625
|
}
|
|
6618
6626
|
),
|
|
6619
6627
|
/* @__PURE__ */ jsx(
|
|
6620
|
-
|
|
6628
|
+
MoonIcon,
|
|
6621
6629
|
{
|
|
6622
6630
|
className: "absolute right-2 text-blue-400 transition-opacity duration-300 z-10",
|
|
6623
6631
|
style: { opacity: theme === "dark" ? 1 : 0 }
|
|
@@ -6728,401 +6736,23 @@ var useCurrentTheme = () => {
|
|
|
6728
6736
|
return context.theme;
|
|
6729
6737
|
};
|
|
6730
6738
|
var useCurrentTheme_default = useCurrentTheme;
|
|
6731
|
-
|
|
6732
|
-
|
|
6733
|
-
|
|
6734
|
-
|
|
6735
|
-
|
|
6736
|
-
|
|
6737
|
-
|
|
6738
|
-
|
|
6739
|
-
|
|
6740
|
-
|
|
6741
|
-
|
|
6742
|
-
|
|
6743
|
-
|
|
6744
|
-
|
|
6745
|
-
|
|
6746
|
-
|
|
6747
|
-
|
|
6748
|
-
BE: "Belgium",
|
|
6749
|
-
BZ: "Belize",
|
|
6750
|
-
BJ: "Benin",
|
|
6751
|
-
BT: "Bhutan",
|
|
6752
|
-
BO: "Bolivia",
|
|
6753
|
-
BA: "Bosnia and Herzegovina",
|
|
6754
|
-
BW: "Botswana",
|
|
6755
|
-
BR: "Brazil",
|
|
6756
|
-
BN: "Brunei",
|
|
6757
|
-
BG: "Bulgaria",
|
|
6758
|
-
BF: "Burkina Faso",
|
|
6759
|
-
BI: "Burundi",
|
|
6760
|
-
KH: "Cambodia",
|
|
6761
|
-
CM: "Cameroon",
|
|
6762
|
-
CA: "Canada",
|
|
6763
|
-
CV: "Cape Verde",
|
|
6764
|
-
CF: "Central African Republic",
|
|
6765
|
-
TD: "Chad",
|
|
6766
|
-
CL: "Chile",
|
|
6767
|
-
CN: "China",
|
|
6768
|
-
CO: "Colombia",
|
|
6769
|
-
KM: "Comoros",
|
|
6770
|
-
CG: "Congo",
|
|
6771
|
-
CD: "Congo (DRC)",
|
|
6772
|
-
CR: "Costa Rica",
|
|
6773
|
-
HR: "Croatia",
|
|
6774
|
-
CU: "Cuba",
|
|
6775
|
-
CY: "Cyprus",
|
|
6776
|
-
CZ: "Czech Republic",
|
|
6777
|
-
DK: "Denmark",
|
|
6778
|
-
DJ: "Djibouti",
|
|
6779
|
-
DM: "Dominica",
|
|
6780
|
-
DO: "Dominican Republic",
|
|
6781
|
-
EC: "Ecuador",
|
|
6782
|
-
EG: "Egypt",
|
|
6783
|
-
SV: "El Salvador",
|
|
6784
|
-
GQ: "Equatorial Guinea",
|
|
6785
|
-
ER: "Eritrea",
|
|
6786
|
-
EE: "Estonia",
|
|
6787
|
-
SZ: "Eswatini",
|
|
6788
|
-
ET: "Ethiopia",
|
|
6789
|
-
FJ: "Fiji",
|
|
6790
|
-
FI: "Finland",
|
|
6791
|
-
FR: "France",
|
|
6792
|
-
GA: "Gabon",
|
|
6793
|
-
GM: "Gambia",
|
|
6794
|
-
GE: "Georgia",
|
|
6795
|
-
DE: "Germany",
|
|
6796
|
-
GH: "Ghana",
|
|
6797
|
-
GR: "Greece",
|
|
6798
|
-
GD: "Grenada",
|
|
6799
|
-
GT: "Guatemala",
|
|
6800
|
-
GN: "Guinea",
|
|
6801
|
-
GW: "Guinea-Bissau",
|
|
6802
|
-
GY: "Guyana",
|
|
6803
|
-
HT: "Haiti",
|
|
6804
|
-
HN: "Honduras",
|
|
6805
|
-
HU: "Hungary",
|
|
6806
|
-
IS: "Iceland",
|
|
6807
|
-
IN: "India",
|
|
6808
|
-
ID: "Indonesia",
|
|
6809
|
-
IR: "Iran",
|
|
6810
|
-
IQ: "Iraq",
|
|
6811
|
-
IE: "Ireland",
|
|
6812
|
-
IL: "Israel",
|
|
6813
|
-
IT: "Italy",
|
|
6814
|
-
JM: "Jamaica",
|
|
6815
|
-
JP: "Japan",
|
|
6816
|
-
JO: "Jordan",
|
|
6817
|
-
KZ: "Kazakhstan",
|
|
6818
|
-
KE: "Kenya",
|
|
6819
|
-
KI: "Kiribati",
|
|
6820
|
-
KP: "North Korea",
|
|
6821
|
-
KR: "South Korea",
|
|
6822
|
-
KW: "Kuwait",
|
|
6823
|
-
KG: "Kyrgyzstan",
|
|
6824
|
-
LA: "Laos",
|
|
6825
|
-
LV: "Latvia",
|
|
6826
|
-
LB: "Lebanon",
|
|
6827
|
-
LS: "Lesotho",
|
|
6828
|
-
LR: "Liberia",
|
|
6829
|
-
LY: "Libya",
|
|
6830
|
-
LI: "Liechtenstein",
|
|
6831
|
-
LT: "Lithuania",
|
|
6832
|
-
LU: "Luxembourg",
|
|
6833
|
-
MG: "Madagascar",
|
|
6834
|
-
MW: "Malawi",
|
|
6835
|
-
MY: "Malaysia",
|
|
6836
|
-
MV: "Maldives",
|
|
6837
|
-
ML: "Mali",
|
|
6838
|
-
MT: "Malta",
|
|
6839
|
-
MH: "Marshall Islands",
|
|
6840
|
-
MR: "Mauritania",
|
|
6841
|
-
MU: "Mauritius",
|
|
6842
|
-
MX: "Mexico",
|
|
6843
|
-
FM: "Micronesia",
|
|
6844
|
-
MD: "Moldova",
|
|
6845
|
-
MC: "Monaco",
|
|
6846
|
-
MN: "Mongolia",
|
|
6847
|
-
ME: "Montenegro",
|
|
6848
|
-
MA: "Morocco",
|
|
6849
|
-
MZ: "Mozambique",
|
|
6850
|
-
MM: "Myanmar",
|
|
6851
|
-
NA: "Namibia",
|
|
6852
|
-
NR: "Nauru",
|
|
6853
|
-
NP: "Nepal",
|
|
6854
|
-
NL: "Netherlands",
|
|
6855
|
-
NZ: "New Zealand",
|
|
6856
|
-
NI: "Nicaragua",
|
|
6857
|
-
NE: "Niger",
|
|
6858
|
-
NG: "Nigeria",
|
|
6859
|
-
NO: "Norway",
|
|
6860
|
-
OM: "Oman",
|
|
6861
|
-
PK: "Pakistan",
|
|
6862
|
-
PW: "Palau",
|
|
6863
|
-
PA: "Panama",
|
|
6864
|
-
PG: "Papua New Guinea",
|
|
6865
|
-
PY: "Paraguay",
|
|
6866
|
-
PE: "Peru",
|
|
6867
|
-
PH: "Philippines",
|
|
6868
|
-
PL: "Poland",
|
|
6869
|
-
PT: "Portugal",
|
|
6870
|
-
QA: "Qatar",
|
|
6871
|
-
RO: "Romania",
|
|
6872
|
-
RU: "Russia",
|
|
6873
|
-
RW: "Rwanda",
|
|
6874
|
-
KN: "Saint Kitts and Nevis",
|
|
6875
|
-
LC: "Saint Lucia",
|
|
6876
|
-
VC: "Saint Vincent and the Grenadines",
|
|
6877
|
-
WS: "Samoa",
|
|
6878
|
-
SM: "San Marino",
|
|
6879
|
-
ST: "S\xE3o Tom\xE9 and Pr\xEDncipe",
|
|
6880
|
-
SA: "Saudi Arabia",
|
|
6881
|
-
SN: "Senegal",
|
|
6882
|
-
RS: "Serbia",
|
|
6883
|
-
SC: "Seychelles",
|
|
6884
|
-
SL: "Sierra Leone",
|
|
6885
|
-
SG: "Singapore",
|
|
6886
|
-
SK: "Slovakia",
|
|
6887
|
-
SI: "Slovenia",
|
|
6888
|
-
SB: "Solomon Islands",
|
|
6889
|
-
SO: "Somalia",
|
|
6890
|
-
ZA: "South Africa",
|
|
6891
|
-
SS: "South Sudan",
|
|
6892
|
-
ES: "Spain",
|
|
6893
|
-
LK: "Sri Lanka",
|
|
6894
|
-
SD: "Sudan",
|
|
6895
|
-
SR: "Suriname",
|
|
6896
|
-
SE: "Sweden",
|
|
6897
|
-
CH: "Switzerland",
|
|
6898
|
-
SY: "Syria",
|
|
6899
|
-
TW: "Taiwan",
|
|
6900
|
-
TJ: "Tajikistan",
|
|
6901
|
-
TZ: "Tanzania",
|
|
6902
|
-
TH: "Thailand",
|
|
6903
|
-
TL: "Timor-Leste",
|
|
6904
|
-
TG: "Togo",
|
|
6905
|
-
TO: "Tonga",
|
|
6906
|
-
TT: "Trinidad and Tobago",
|
|
6907
|
-
TN: "Tunisia",
|
|
6908
|
-
TR: "Turkey",
|
|
6909
|
-
TM: "Turkmenistan",
|
|
6910
|
-
TV: "Tuvalu",
|
|
6911
|
-
UG: "Uganda",
|
|
6912
|
-
UA: "Ukraine",
|
|
6913
|
-
AE: "United Arab Emirates",
|
|
6914
|
-
GB: "United Kingdom",
|
|
6915
|
-
US: "United States",
|
|
6916
|
-
UY: "Uruguay",
|
|
6917
|
-
UZ: "Uzbekistan",
|
|
6918
|
-
VU: "Vanuatu",
|
|
6919
|
-
VA: "Vatican City",
|
|
6920
|
-
VE: "Venezuela",
|
|
6921
|
-
VN: "Vietnam",
|
|
6922
|
-
YE: "Yemen",
|
|
6923
|
-
ZM: "Zambia",
|
|
6924
|
-
ZW: "Zimbabwe"
|
|
6925
|
-
};
|
|
6926
|
-
var COUNTRY_COORDINATES = {
|
|
6927
|
-
AF: [67.709953, 33.93911],
|
|
6928
|
-
AL: [20.1683, 41.1533],
|
|
6929
|
-
DZ: [1.6596, 28.0339],
|
|
6930
|
-
AD: [1.5218, 42.5063],
|
|
6931
|
-
AO: [17.8739, -11.2027],
|
|
6932
|
-
AG: [-61.7964, 17.0608],
|
|
6933
|
-
AR: [-63.6167, -38.4161],
|
|
6934
|
-
AM: [45.0382, 40.0691],
|
|
6935
|
-
AU: [133.7751, -25.2744],
|
|
6936
|
-
AT: [14.5501, 47.5162],
|
|
6937
|
-
AZ: [47.5769, 40.1431],
|
|
6938
|
-
BS: [-77.3963, 25.0343],
|
|
6939
|
-
BH: [50.5577, 26.0667],
|
|
6940
|
-
BD: [90.3563, 23.685],
|
|
6941
|
-
BB: [-59.5432, 13.1939],
|
|
6942
|
-
BY: [27.9534, 53.7098],
|
|
6943
|
-
BE: [4.4699, 50.5039],
|
|
6944
|
-
BZ: [-88.4976, 17.1899],
|
|
6945
|
-
BJ: [2.3158, 9.3077],
|
|
6946
|
-
BT: [90.4336, 27.5142],
|
|
6947
|
-
BO: [-63.5887, -16.2902],
|
|
6948
|
-
BA: [17.6791, 43.9159],
|
|
6949
|
-
BW: [24.6849, -22.3285],
|
|
6950
|
-
BR: [-51.9253, -14.235],
|
|
6951
|
-
BN: [114.7277, 4.5353],
|
|
6952
|
-
BG: [25.4858, 42.7339],
|
|
6953
|
-
BF: [-1.5616, 12.2383],
|
|
6954
|
-
BI: [29.9189, -3.3731],
|
|
6955
|
-
KH: [104.991, 12.5657],
|
|
6956
|
-
CM: [12.3547, 7.3697],
|
|
6957
|
-
CA: [-106.3468, 56.1304],
|
|
6958
|
-
CV: [-23.0418, 16.5388],
|
|
6959
|
-
CF: [20.9394, 6.6111],
|
|
6960
|
-
TD: [18.7322, 15.4542],
|
|
6961
|
-
CL: [-71.5429, -35.6751],
|
|
6962
|
-
CN: [104.1954, 35.8617],
|
|
6963
|
-
CO: [-74.2973, 4.5709],
|
|
6964
|
-
KM: [43.8722, -11.6455],
|
|
6965
|
-
CG: [15.8277, -0.228],
|
|
6966
|
-
CD: [21.7587, -4.0383],
|
|
6967
|
-
CR: [-83.7534, 9.7489],
|
|
6968
|
-
HR: [15.2, 45.1],
|
|
6969
|
-
CU: [-77.7812, 21.5218],
|
|
6970
|
-
CY: [33.4299, 35.1264],
|
|
6971
|
-
CZ: [15.5, 49.8175],
|
|
6972
|
-
DK: [9.5018, 56.2639],
|
|
6973
|
-
DJ: [42.5903, 11.8251],
|
|
6974
|
-
DM: [-61.37098, 15.414999],
|
|
6975
|
-
DO: [-70.1627, 18.7357],
|
|
6976
|
-
EC: [-78.1834, -1.8312],
|
|
6977
|
-
EG: [30.8025, 26.8206],
|
|
6978
|
-
SV: [-88.8965, 13.7942],
|
|
6979
|
-
GQ: [10.2679, 1.6508],
|
|
6980
|
-
ER: [39.7823, 15.1794],
|
|
6981
|
-
EE: [25.0136, 58.5953],
|
|
6982
|
-
SZ: [31.4659, -26.5225],
|
|
6983
|
-
ET: [40.4897, 9.145],
|
|
6984
|
-
FJ: [178.065, -17.7134],
|
|
6985
|
-
FI: [25.7482, 61.9241],
|
|
6986
|
-
FR: [2.2137, 46.2276],
|
|
6987
|
-
GA: [11.6094, -0.8037],
|
|
6988
|
-
GM: [-15.3101, 13.4432],
|
|
6989
|
-
GE: [43.3569, 42.3154],
|
|
6990
|
-
DE: [10.4515, 51.1657],
|
|
6991
|
-
GH: [-1.0232, 7.9465],
|
|
6992
|
-
GR: [21.8243, 39.0742],
|
|
6993
|
-
GD: [-61.678999, 12.1165],
|
|
6994
|
-
GT: [-90.2308, 15.7835],
|
|
6995
|
-
GN: [-9.6966, 9.9456],
|
|
6996
|
-
GW: [-15.1804, 11.8037],
|
|
6997
|
-
GY: [-58.9302, 4.8604],
|
|
6998
|
-
HT: [-72.2852, 18.9712],
|
|
6999
|
-
HN: [-86.2419, 15.2],
|
|
7000
|
-
HU: [19.5033, 47.1625],
|
|
7001
|
-
IS: [-19.0208, 64.9631],
|
|
7002
|
-
IN: [78.9629, 20.5937],
|
|
7003
|
-
ID: [113.9213, -0.7893],
|
|
7004
|
-
IR: [53.688, 32.4279],
|
|
7005
|
-
IQ: [43.6793, 33.2232],
|
|
7006
|
-
IE: [-8.2439, 53.4129],
|
|
7007
|
-
IL: [34.8516, 31.0461],
|
|
7008
|
-
IT: [12.5674, 41.8719],
|
|
7009
|
-
JM: [-77.2975, 18.1096],
|
|
7010
|
-
JP: [138.2529, 36.2048],
|
|
7011
|
-
JO: [36.2384, 30.5852],
|
|
7012
|
-
KZ: [66.9237, 48.0196],
|
|
7013
|
-
KE: [37.9062, -0.0236],
|
|
7014
|
-
KI: [-168.734, -3.3704],
|
|
7015
|
-
KP: [127.5101, 40.3399],
|
|
7016
|
-
KR: [127.7669, 35.9078],
|
|
7017
|
-
KW: [47.4818, 29.3117],
|
|
7018
|
-
KG: [74.7661, 41.2044],
|
|
7019
|
-
LA: [102.4955, 19.8563],
|
|
7020
|
-
LV: [24.6032, 56.8796],
|
|
7021
|
-
LB: [35.8623, 33.8547],
|
|
7022
|
-
LS: [28.2336, -29.6099],
|
|
7023
|
-
LR: [-9.4295, 6.4281],
|
|
7024
|
-
LY: [17.2283, 26.3351],
|
|
7025
|
-
LI: [9.5554, 47.166],
|
|
7026
|
-
LT: [23.8813, 55.1694],
|
|
7027
|
-
LU: [6.1296, 49.8153],
|
|
7028
|
-
MG: [46.8691, -18.7669],
|
|
7029
|
-
MW: [34.3015, -13.2543],
|
|
7030
|
-
MY: [101.9758, 4.2105],
|
|
7031
|
-
MV: [73.2207, 3.2028],
|
|
7032
|
-
ML: [-3.9962, 17.5707],
|
|
7033
|
-
MT: [14.3754, 35.9375],
|
|
7034
|
-
MH: [171.1845, 7.1315],
|
|
7035
|
-
MR: [-10.9408, 21.0079],
|
|
7036
|
-
MU: [57.5522, -20.3484],
|
|
7037
|
-
MX: [-102.5528, 23.6345],
|
|
7038
|
-
FM: [158.215, 7.4256],
|
|
7039
|
-
MD: [28.3699, 47.4116],
|
|
7040
|
-
MC: [7.4246, 43.7503],
|
|
7041
|
-
MN: [103.8467, 46.8625],
|
|
7042
|
-
ME: [19.3744, 42.7087],
|
|
7043
|
-
MA: [-7.0926, 31.7917],
|
|
7044
|
-
MZ: [35.5296, -18.6657],
|
|
7045
|
-
MM: [95.956, 21.9162],
|
|
7046
|
-
NA: [18.4904, -22.9576],
|
|
7047
|
-
NR: [166.9315, -0.5228],
|
|
7048
|
-
NP: [84.124, 28.3949],
|
|
7049
|
-
NL: [5.2913, 52.1326],
|
|
7050
|
-
NZ: [174.886, -40.9006],
|
|
7051
|
-
NI: [-85.2072, 12.8654],
|
|
7052
|
-
NE: [8.0817, 17.6078],
|
|
7053
|
-
NG: [8.6753, 9.082],
|
|
7054
|
-
NO: [8.4689, 60.472],
|
|
7055
|
-
OM: [55.9754, 21.5126],
|
|
7056
|
-
PK: [69.3451, 30.3753],
|
|
7057
|
-
PW: [134.5825, 7.515],
|
|
7058
|
-
PA: [-80.7821, 8.537],
|
|
7059
|
-
PG: [143.9555, -6.31499],
|
|
7060
|
-
PY: [-58.4438, -23.4425],
|
|
7061
|
-
PE: [-75.0152, -9.19],
|
|
7062
|
-
PH: [121.774, 12.8797],
|
|
7063
|
-
PL: [19.1451, 51.9194],
|
|
7064
|
-
PT: [-8.2245, 39.3999],
|
|
7065
|
-
QA: [51.1839, 25.3548],
|
|
7066
|
-
RO: [24.9668, 45.9432],
|
|
7067
|
-
RU: [105.3188, 61.524],
|
|
7068
|
-
RW: [29.8739, -1.9403],
|
|
7069
|
-
KN: [-62.782998, 17.357822],
|
|
7070
|
-
LC: [-60.978893, 13.909444],
|
|
7071
|
-
VC: [-61.287228, 12.984305],
|
|
7072
|
-
WS: [-172.1046, -13.759],
|
|
7073
|
-
SM: [12.4578, 43.9424],
|
|
7074
|
-
ST: [6.6131, 0.1864],
|
|
7075
|
-
SA: [45.0792, 23.8859],
|
|
7076
|
-
SN: [-14.4524, 14.4974],
|
|
7077
|
-
RS: [21.0059, 44.0165],
|
|
7078
|
-
SC: [55.4919, -4.6796],
|
|
7079
|
-
SL: [-11.7799, 8.4606],
|
|
7080
|
-
SG: [103.8198, 1.3521],
|
|
7081
|
-
SK: [19.699, 48.669],
|
|
7082
|
-
SI: [14.9955, 46.1512],
|
|
7083
|
-
SB: [160.1562, -9.6457],
|
|
7084
|
-
SO: [46.1996, 5.1521],
|
|
7085
|
-
ZA: [22.9375, -30.5595],
|
|
7086
|
-
SS: [30.2188, 6.877],
|
|
7087
|
-
ES: [-3.7492, 40.4637],
|
|
7088
|
-
LK: [80.7718, 7.8731],
|
|
7089
|
-
SD: [30.2176, 12.8628],
|
|
7090
|
-
SR: [-56.0278, 3.9193],
|
|
7091
|
-
SE: [18.6435, 60.1282],
|
|
7092
|
-
CH: [8.2275, 46.8182],
|
|
7093
|
-
SY: [38.9968, 34.8021],
|
|
7094
|
-
TW: [120.9605, 23.6978],
|
|
7095
|
-
TJ: [71.2761, 38.861],
|
|
7096
|
-
TZ: [34.8888, -6.369],
|
|
7097
|
-
TH: [100.9925, 15.87],
|
|
7098
|
-
TL: [125.7275, -8.8742],
|
|
7099
|
-
TG: [0.8248, 8.6195],
|
|
7100
|
-
TO: [-175.1982, -21.179],
|
|
7101
|
-
TT: [-61.2225, 10.6918],
|
|
7102
|
-
TN: [9.5375, 33.8869],
|
|
7103
|
-
TR: [35.2433, 38.9637],
|
|
7104
|
-
TM: [59.5563, 38.9697],
|
|
7105
|
-
TV: [177.6493, -7.1095],
|
|
7106
|
-
UG: [32.2903, 1.3733],
|
|
7107
|
-
UA: [31.1656, 48.3794],
|
|
7108
|
-
AE: [54.3773, 23.4241],
|
|
7109
|
-
GB: [-3.4359, 55.3781],
|
|
7110
|
-
US: [-98.5795, 39.8283],
|
|
7111
|
-
UY: [-55.7658, -32.5228],
|
|
7112
|
-
UZ: [64.5853, 41.3775],
|
|
7113
|
-
VU: [166.9592, -15.3767],
|
|
7114
|
-
VA: [12.4534, 41.9029],
|
|
7115
|
-
VE: [-66.5897, 6.4238],
|
|
7116
|
-
VN: [108.2772, 14.0583],
|
|
7117
|
-
YE: [48.5164, 15.5527],
|
|
7118
|
-
ZM: [27.8493, -13.1339],
|
|
7119
|
-
ZW: [29.1549, -19.0154]
|
|
7120
|
-
};
|
|
7121
|
-
var COUNTRIES = Object.keys(COUNTRY_NAMES).map((code) => ({
|
|
7122
|
-
code,
|
|
7123
|
-
name: COUNTRY_NAMES[code],
|
|
7124
|
-
coordinates: COUNTRY_COORDINATES[code] ?? null,
|
|
7125
|
-
flag: /* @__PURE__ */ jsx(Flag, { code })
|
|
6739
|
+
Object.fromEntries(
|
|
6740
|
+
countries.map(({ alpha2 }) => [alpha2, alpha2])
|
|
6741
|
+
);
|
|
6742
|
+
Object.fromEntries(
|
|
6743
|
+
countries.map(({ alpha2, name }) => [alpha2, name.common])
|
|
6744
|
+
);
|
|
6745
|
+
Object.fromEntries(
|
|
6746
|
+
countries.map(({ alpha2, centroid }) => [
|
|
6747
|
+
alpha2,
|
|
6748
|
+
[centroid.longitude, centroid.latitude]
|
|
6749
|
+
])
|
|
6750
|
+
);
|
|
6751
|
+
var COUNTRIES = countries.map((country) => ({
|
|
6752
|
+
code: country.alpha2,
|
|
6753
|
+
name: country.name.common,
|
|
6754
|
+
coordinates: [country.centroid.longitude, country.centroid.latitude],
|
|
6755
|
+
flag: /* @__PURE__ */ jsx(Flag, { code: country.alpha2 })
|
|
7126
6756
|
}));
|
|
7127
6757
|
|
|
7128
6758
|
// src/data/meta/world-map-topojson.ts
|
|
@@ -18370,7 +18000,7 @@ var Button = forwardRef(
|
|
|
18370
18000
|
if (!e.defaultPrevented) model.onPress?.();
|
|
18371
18001
|
};
|
|
18372
18002
|
const iconGroup = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
18373
|
-
model.loading && /* @__PURE__ */ jsx(
|
|
18003
|
+
model.loading && /* @__PURE__ */ jsx(LoadingIcon, { className: "animate-spin z-10" }),
|
|
18374
18004
|
model.icon && /* @__PURE__ */ jsx(
|
|
18375
18005
|
"span",
|
|
18376
18006
|
{
|
|
@@ -18621,7 +18251,7 @@ function PasswordVisibilityToggler({
|
|
|
18621
18251
|
{
|
|
18622
18252
|
className: webPasswordToggleClassName,
|
|
18623
18253
|
onClick: () => onToggle(!passwordVisible),
|
|
18624
|
-
children: passwordVisible ? /* @__PURE__ */ jsx(
|
|
18254
|
+
children: passwordVisible ? /* @__PURE__ */ jsx(EyeOffIcon, {}) : /* @__PURE__ */ jsx(EyeIcon, {})
|
|
18625
18255
|
}
|
|
18626
18256
|
);
|
|
18627
18257
|
}
|
|
@@ -19018,7 +18648,7 @@ var InputList = ({ name, placeholder, shape }) => {
|
|
|
19018
18648
|
shapes[resolvedShape]
|
|
19019
18649
|
),
|
|
19020
18650
|
children: [
|
|
19021
|
-
/* @__PURE__ */ jsx("div", { ...provided2.dragHandleProps, children: /* @__PURE__ */ jsx(
|
|
18651
|
+
/* @__PURE__ */ jsx("div", { ...provided2.dragHandleProps, children: /* @__PURE__ */ jsx(DragHandleIcon, { className: "cursor-grab text-gray-500" }) }),
|
|
19022
18652
|
/* @__PURE__ */ jsx(
|
|
19023
18653
|
Field,
|
|
19024
18654
|
{
|
|
@@ -19037,7 +18667,7 @@ var InputList = ({ name, placeholder, shape }) => {
|
|
|
19037
18667
|
type: "button",
|
|
19038
18668
|
onClick: () => remove(index),
|
|
19039
18669
|
className: "text-red-500",
|
|
19040
|
-
children: /* @__PURE__ */ jsx(
|
|
18670
|
+
children: /* @__PURE__ */ jsx(DeleteIcon, {})
|
|
19041
18671
|
}
|
|
19042
18672
|
)
|
|
19043
18673
|
]
|
|
@@ -19058,7 +18688,7 @@ var InputList = ({ name, placeholder, shape }) => {
|
|
|
19058
18688
|
onClick: () => push(""),
|
|
19059
18689
|
className: "flex h-fit w-fit items-center space-x-2 px-2 pb-2 text-green-600",
|
|
19060
18690
|
children: [
|
|
19061
|
-
/* @__PURE__ */ jsx(
|
|
18691
|
+
/* @__PURE__ */ jsx(PlusIcon, {}),
|
|
19062
18692
|
/* @__PURE__ */ jsx("span", { children: "Add Item" })
|
|
19063
18693
|
]
|
|
19064
18694
|
}
|
|
@@ -19126,7 +18756,7 @@ var InputListGroup = ({
|
|
|
19126
18756
|
),
|
|
19127
18757
|
children: [
|
|
19128
18758
|
/* @__PURE__ */ jsxs("div", { className: "flex items-baseline gap-2", children: [
|
|
19129
|
-
/* @__PURE__ */ jsx(
|
|
18759
|
+
/* @__PURE__ */ jsx(DragHandleIcon, { className: "cursor-grab text-gray-500" }),
|
|
19130
18760
|
/* @__PURE__ */ jsx(
|
|
19131
18761
|
Field,
|
|
19132
18762
|
{
|
|
@@ -19145,7 +18775,7 @@ var InputListGroup = ({
|
|
|
19145
18775
|
type: "button",
|
|
19146
18776
|
onClick: () => remove(groupIndex),
|
|
19147
18777
|
className: "text-red-500",
|
|
19148
|
-
children: /* @__PURE__ */ jsx(
|
|
18778
|
+
children: /* @__PURE__ */ jsx(DeleteIcon, {})
|
|
19149
18779
|
}
|
|
19150
18780
|
)
|
|
19151
18781
|
] }),
|
|
@@ -19188,7 +18818,7 @@ var InputListGroup = ({
|
|
|
19188
18818
|
shapes[resolvedShape]
|
|
19189
18819
|
),
|
|
19190
18820
|
children: [
|
|
19191
|
-
/* @__PURE__ */ jsx("div", { ...provided2.dragHandleProps, children: /* @__PURE__ */ jsx(
|
|
18821
|
+
/* @__PURE__ */ jsx("div", { ...provided2.dragHandleProps, children: /* @__PURE__ */ jsx(DragHandleIcon, { className: "cursor-grab text-gray-500" }) }),
|
|
19192
18822
|
/* @__PURE__ */ jsx(
|
|
19193
18823
|
Field,
|
|
19194
18824
|
{
|
|
@@ -19207,7 +18837,7 @@ var InputListGroup = ({
|
|
|
19207
18837
|
type: "button",
|
|
19208
18838
|
onClick: () => removeItem(itemIndex),
|
|
19209
18839
|
className: "text-gray-500",
|
|
19210
|
-
children: /* @__PURE__ */ jsx(
|
|
18840
|
+
children: /* @__PURE__ */ jsx(DeleteIcon, {})
|
|
19211
18841
|
}
|
|
19212
18842
|
)
|
|
19213
18843
|
]
|
|
@@ -19225,7 +18855,7 @@ var InputListGroup = ({
|
|
|
19225
18855
|
onClick: () => pushItem(""),
|
|
19226
18856
|
className: "flex w-fit items-center space-x-2 px-2 text-green-800",
|
|
19227
18857
|
children: [
|
|
19228
|
-
/* @__PURE__ */ jsx(
|
|
18858
|
+
/* @__PURE__ */ jsx(PlusIcon, {}),
|
|
19229
18859
|
/* @__PURE__ */ jsx("span", { children: "Add Item" })
|
|
19230
18860
|
]
|
|
19231
18861
|
}
|
|
@@ -19247,7 +18877,7 @@ var InputListGroup = ({
|
|
|
19247
18877
|
onClick: () => push({ name: "", items: [] }),
|
|
19248
18878
|
className: "flex w-fit items-center space-x-2 px-2 text-green-600",
|
|
19249
18879
|
children: [
|
|
19250
|
-
/* @__PURE__ */ jsx(
|
|
18880
|
+
/* @__PURE__ */ jsx(PlusIcon, {}),
|
|
19251
18881
|
/* @__PURE__ */ jsx("span", { children: "Add New Group" })
|
|
19252
18882
|
]
|
|
19253
18883
|
}
|
|
@@ -19736,7 +19366,7 @@ var ImageInput = forwardRef(
|
|
|
19736
19366
|
}),
|
|
19737
19367
|
htmlFor: `${field.name}`,
|
|
19738
19368
|
children: [
|
|
19739
|
-
/* @__PURE__ */ jsx("div", { className: "text-4xl text-gray-300 group-hover:text-gray-400", children: /* @__PURE__ */ jsx(
|
|
19369
|
+
/* @__PURE__ */ jsx("div", { className: "text-4xl text-gray-300 group-hover:text-gray-400", children: /* @__PURE__ */ jsx(UploadIcon, {}) }),
|
|
19740
19370
|
/* @__PURE__ */ jsx("div", { className: "text-xl font-bold text-gray-500 group-hover:text-gray-500", children: title })
|
|
19741
19371
|
]
|
|
19742
19372
|
}
|
|
@@ -19752,7 +19382,7 @@ var ImageInput = forwardRef(
|
|
|
19752
19382
|
) }),
|
|
19753
19383
|
loading && /* @__PURE__ */ jsxs("div", { className: "absolute", children: [
|
|
19754
19384
|
/* @__PURE__ */ jsx("div", { className: "h-[200px] w-[300px] bg-black opacity-50" }),
|
|
19755
|
-
/* @__PURE__ */ jsx("div", { className: "absolute top-0 left-0 w-full h-full flex items-center justify-center", children: /* @__PURE__ */ jsx(
|
|
19385
|
+
/* @__PURE__ */ jsx("div", { className: "absolute top-0 left-0 w-full h-full flex items-center justify-center", children: /* @__PURE__ */ jsx(LoadingIcon, { className: "animate-spin" }) })
|
|
19756
19386
|
] }),
|
|
19757
19387
|
!loading && url && /* @__PURE__ */ jsx(ImageView, { imageUrl: url, alt: url ? url : "image" }),
|
|
19758
19388
|
(preview || url) && /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1 text-3xl", children: [
|
|
@@ -19762,7 +19392,7 @@ var ImageInput = forwardRef(
|
|
|
19762
19392
|
className: " text-green-600 hover:cursor-pointer",
|
|
19763
19393
|
onClick: uploadImage,
|
|
19764
19394
|
hidden: url ? true : false,
|
|
19765
|
-
children: /* @__PURE__ */ jsx(
|
|
19395
|
+
children: /* @__PURE__ */ jsx(CheckIcon, {})
|
|
19766
19396
|
}
|
|
19767
19397
|
),
|
|
19768
19398
|
/* @__PURE__ */ jsx(
|
|
@@ -19770,7 +19400,7 @@ var ImageInput = forwardRef(
|
|
|
19770
19400
|
{
|
|
19771
19401
|
className: "text-red-500 hover:cursor-pointer",
|
|
19772
19402
|
onClick: handleResetClick,
|
|
19773
|
-
children: /* @__PURE__ */ jsx(
|
|
19403
|
+
children: /* @__PURE__ */ jsx(RemoveCircleIcon, {})
|
|
19774
19404
|
}
|
|
19775
19405
|
)
|
|
19776
19406
|
] })
|
|
@@ -19926,7 +19556,7 @@ function MultiImageInput({
|
|
|
19926
19556
|
children: [
|
|
19927
19557
|
/* @__PURE__ */ jsx(ImageView, { imageUrl: url }),
|
|
19928
19558
|
/* @__PURE__ */ jsxs("div", { className: "absolute left-2 top-2 inline-flex items-center gap-1 rounded bg-black/60 px-2 py-1 text-xs text-white", children: [
|
|
19929
|
-
/* @__PURE__ */ jsx(
|
|
19559
|
+
/* @__PURE__ */ jsx(DragHandleIcon, {}),
|
|
19930
19560
|
index + 1
|
|
19931
19561
|
] }),
|
|
19932
19562
|
/* @__PURE__ */ jsxs("div", { className: "absolute right-2 top-2 flex gap-1", children: [
|
|
@@ -19937,7 +19567,7 @@ function MultiImageInput({
|
|
|
19937
19567
|
accessibilityLabel: "Move image left",
|
|
19938
19568
|
disabled: index === 0 || isOrganizerBusy,
|
|
19939
19569
|
glow: false,
|
|
19940
|
-
icon: /* @__PURE__ */ jsx(
|
|
19570
|
+
icon: /* @__PURE__ */ jsx(ChevronLeftIcon, {}),
|
|
19941
19571
|
onPress: () => moveImage(index, index - 1),
|
|
19942
19572
|
size: "xs",
|
|
19943
19573
|
className: "h-8 w-8 bg-black/60 p-0 text-xl text-white hover:bg-black/80 disabled:opacity-40"
|
|
@@ -19950,7 +19580,7 @@ function MultiImageInput({
|
|
|
19950
19580
|
accessibilityLabel: "Move image right",
|
|
19951
19581
|
disabled: index === imageUrls.length - 1 || isOrganizerBusy,
|
|
19952
19582
|
glow: false,
|
|
19953
|
-
icon: /* @__PURE__ */ jsx(
|
|
19583
|
+
icon: /* @__PURE__ */ jsx(ChevronRightIcon, {}),
|
|
19954
19584
|
onPress: () => moveImage(index, index + 1),
|
|
19955
19585
|
size: "xs",
|
|
19956
19586
|
className: "h-8 w-8 bg-black/60 p-0 text-xl text-white hover:bg-black/80 disabled:opacity-40"
|
|
@@ -19980,7 +19610,7 @@ function MultiImageInput({
|
|
|
19980
19610
|
accessibilityLabel: "Change image",
|
|
19981
19611
|
disabled: isOrganizerBusy,
|
|
19982
19612
|
glow: false,
|
|
19983
|
-
icon: /* @__PURE__ */ jsx(
|
|
19613
|
+
icon: /* @__PURE__ */ jsx(UploadIcon, {}),
|
|
19984
19614
|
onPress: () => openReplacePicker(index),
|
|
19985
19615
|
size: "sm",
|
|
19986
19616
|
text: "Change",
|
|
@@ -19995,14 +19625,14 @@ function MultiImageInput({
|
|
|
19995
19625
|
accessibilityLabel: "Delete image",
|
|
19996
19626
|
disabled: isOrganizerBusy,
|
|
19997
19627
|
glow: false,
|
|
19998
|
-
icon: /* @__PURE__ */ jsx(
|
|
19628
|
+
icon: /* @__PURE__ */ jsx(DeleteIcon, {}),
|
|
19999
19629
|
onPress: () => removeImage(index),
|
|
20000
19630
|
size: "sm",
|
|
20001
19631
|
variant: "danger"
|
|
20002
19632
|
}
|
|
20003
19633
|
)
|
|
20004
19634
|
] }),
|
|
20005
|
-
isReplacing && /* @__PURE__ */ jsx("div", { className: "absolute inset-0 flex items-center justify-center bg-black/60 text-2xl text-white", children: /* @__PURE__ */ jsx(
|
|
19635
|
+
isReplacing && /* @__PURE__ */ jsx("div", { className: "absolute inset-0 flex items-center justify-center bg-black/60 text-2xl text-white", children: /* @__PURE__ */ jsx(LoadingIcon, { className: "animate-spin" }) })
|
|
20006
19636
|
]
|
|
20007
19637
|
},
|
|
20008
19638
|
`${url}-${index}`
|
|
@@ -20132,7 +19762,7 @@ function StarRatingInput({
|
|
|
20132
19762
|
"text-yellow-600": index <= (hover ?? rating - 1),
|
|
20133
19763
|
"text-gray-400": index > (hover ?? rating - 1)
|
|
20134
19764
|
}),
|
|
20135
|
-
children: index <= (hover ?? rating - 1) ? /* @__PURE__ */ jsx(
|
|
19765
|
+
children: index <= (hover ?? rating - 1) ? /* @__PURE__ */ jsx(StarIcon, { appearance: "solid", size: 20 }) : /* @__PURE__ */ jsx(StarIcon, { size: 20 })
|
|
20136
19766
|
},
|
|
20137
19767
|
index
|
|
20138
19768
|
)) }),
|
|
@@ -20424,7 +20054,7 @@ function Select(selectProps) {
|
|
|
20424
20054
|
}
|
|
20425
20055
|
),
|
|
20426
20056
|
/* @__PURE__ */ jsx(
|
|
20427
|
-
|
|
20057
|
+
ChevronDownIcon,
|
|
20428
20058
|
{
|
|
20429
20059
|
"aria-hidden": "true",
|
|
20430
20060
|
className: cn(
|
|
@@ -20710,7 +20340,7 @@ function Tags(tagsProps) {
|
|
|
20710
20340
|
disabled,
|
|
20711
20341
|
onClick: () => handleRemoveTag(index),
|
|
20712
20342
|
type: "button",
|
|
20713
|
-
children: /* @__PURE__ */ jsx(
|
|
20343
|
+
children: /* @__PURE__ */ jsx(CloseIcon, { className: "h-3 w-3" })
|
|
20714
20344
|
}
|
|
20715
20345
|
)
|
|
20716
20346
|
]
|
|
@@ -21315,7 +20945,7 @@ var Drawer = ({
|
|
|
21315
20945
|
] });
|
|
21316
20946
|
};
|
|
21317
20947
|
function DrawerToggler({
|
|
21318
|
-
icon = /* @__PURE__ */ jsx(
|
|
20948
|
+
icon = /* @__PURE__ */ jsx(MenuIcon, {}),
|
|
21319
20949
|
toggleDrawer,
|
|
21320
20950
|
styles
|
|
21321
20951
|
}) {
|
|
@@ -21693,7 +21323,7 @@ var HeaderNavGroup = ({
|
|
|
21693
21323
|
}
|
|
21694
21324
|
) }),
|
|
21695
21325
|
children && /* @__PURE__ */ jsx(
|
|
21696
|
-
|
|
21326
|
+
ChevronDownIcon,
|
|
21697
21327
|
{
|
|
21698
21328
|
className: classNames64({
|
|
21699
21329
|
"text-md": true,
|
|
@@ -21870,7 +21500,7 @@ var MenuGroup = ({
|
|
|
21870
21500
|
children: [
|
|
21871
21501
|
/* @__PURE__ */ jsx("div", { className: "flex items-center gap-3", children: /* @__PURE__ */ jsx(MIContext, { icon, name, badge }) }),
|
|
21872
21502
|
/* @__PURE__ */ jsx(
|
|
21873
|
-
|
|
21503
|
+
ChevronDownIcon,
|
|
21874
21504
|
{
|
|
21875
21505
|
className: cn(
|
|
21876
21506
|
"text-xs transition-transform duration-200",
|
|
@@ -23500,7 +23130,7 @@ function CommentActions({
|
|
|
23500
23130
|
${liked ? "text-blue-500" : "hover:text-gray-900 dark:hover:text-gray-100"}
|
|
23501
23131
|
`,
|
|
23502
23132
|
children: [
|
|
23503
|
-
liked ? /* @__PURE__ */ jsx(
|
|
23133
|
+
liked ? /* @__PURE__ */ jsx(LikeIcon, { appearance: "solid", size: 18 }) : /* @__PURE__ */ jsx(LikeIcon, { size: 18 }),
|
|
23504
23134
|
/* @__PURE__ */ jsx("span", { children: likes })
|
|
23505
23135
|
]
|
|
23506
23136
|
}
|
|
@@ -23514,7 +23144,7 @@ function CommentActions({
|
|
|
23514
23144
|
${disliked ? "text-red-500" : "hover:text-gray-900 dark:hover:text-gray-100"}
|
|
23515
23145
|
`,
|
|
23516
23146
|
children: [
|
|
23517
|
-
disliked ? /* @__PURE__ */ jsx(
|
|
23147
|
+
disliked ? /* @__PURE__ */ jsx(DislikeIcon, { appearance: "solid", size: 18 }) : /* @__PURE__ */ jsx(DislikeIcon, { size: 18 }),
|
|
23518
23148
|
/* @__PURE__ */ jsx("span", { children: dislikes })
|
|
23519
23149
|
]
|
|
23520
23150
|
}
|
|
@@ -23633,7 +23263,7 @@ function CommentMenu({
|
|
|
23633
23263
|
if (canEdit) {
|
|
23634
23264
|
items.push({
|
|
23635
23265
|
type: "item",
|
|
23636
|
-
icon: /* @__PURE__ */ jsx(
|
|
23266
|
+
icon: /* @__PURE__ */ jsx(EditIcon, {}),
|
|
23637
23267
|
name: "Edit",
|
|
23638
23268
|
component: CommentMenuItem,
|
|
23639
23269
|
onClick: () => {
|
|
@@ -23646,7 +23276,7 @@ function CommentMenu({
|
|
|
23646
23276
|
if (canDelete) {
|
|
23647
23277
|
items.push({
|
|
23648
23278
|
type: "item",
|
|
23649
|
-
icon: /* @__PURE__ */ jsx(
|
|
23279
|
+
icon: /* @__PURE__ */ jsx(DeleteIcon, {}),
|
|
23650
23280
|
name: "Delete",
|
|
23651
23281
|
component: CommentMenuItem,
|
|
23652
23282
|
onClick: () => {
|
|
@@ -23659,7 +23289,7 @@ function CommentMenu({
|
|
|
23659
23289
|
if (canReport) {
|
|
23660
23290
|
items.push({
|
|
23661
23291
|
type: "item",
|
|
23662
|
-
icon: /* @__PURE__ */ jsx(
|
|
23292
|
+
icon: /* @__PURE__ */ jsx(FlagIcon, {}),
|
|
23663
23293
|
name: "Report",
|
|
23664
23294
|
component: CommentMenuItem,
|
|
23665
23295
|
onClick: () => {
|
|
@@ -23679,7 +23309,7 @@ function CommentMenu({
|
|
|
23679
23309
|
type: "button",
|
|
23680
23310
|
onClick: () => setOpen(!open),
|
|
23681
23311
|
className: "text-gray-500 transition-colors hover:text-gray-900 dark:hover:text-gray-100",
|
|
23682
|
-
children: /* @__PURE__ */ jsx(
|
|
23312
|
+
children: /* @__PURE__ */ jsx(MoreVerticalIcon, { size: 18 })
|
|
23683
23313
|
}
|
|
23684
23314
|
),
|
|
23685
23315
|
/* @__PURE__ */ jsx(Transition.TransitionDropdown, { visibility: open, children: /* @__PURE__ */ jsx(
|
|
@@ -23718,7 +23348,7 @@ function CommentRepliesToggle({
|
|
|
23718
23348
|
onClick: onToggle,
|
|
23719
23349
|
className: "inline-flex w-fit items-center gap-1 text-sm font-medium text-blue-500 transition-colors hover:text-blue-400 disabled:cursor-not-allowed disabled:opacity-60",
|
|
23720
23350
|
children: [
|
|
23721
|
-
!loading && (collapsed ? /* @__PURE__ */ jsx(
|
|
23351
|
+
!loading && (collapsed ? /* @__PURE__ */ jsx(ChevronDownIcon, { size: 18 }) : /* @__PURE__ */ jsx(ChevronUpIcon, { size: 18 })),
|
|
23722
23352
|
/* @__PURE__ */ jsx("span", { children: label })
|
|
23723
23353
|
]
|
|
23724
23354
|
}
|
|
@@ -24605,7 +24235,7 @@ var resolveSystemHealthView = (input) => {
|
|
|
24605
24235
|
label: "Checking",
|
|
24606
24236
|
description: "Request in flight",
|
|
24607
24237
|
variant: "info",
|
|
24608
|
-
icon:
|
|
24238
|
+
icon: ActivityIcon,
|
|
24609
24239
|
dotClassName: "bg-eui-info-300",
|
|
24610
24240
|
panelClassName: "text-eui-info-200 bg-eui-info-500/10 border-eui-info-400/30"
|
|
24611
24241
|
},
|
|
@@ -24614,7 +24244,7 @@ var resolveSystemHealthView = (input) => {
|
|
|
24614
24244
|
label: "Operational",
|
|
24615
24245
|
description: "Health endpoint is reporting normally",
|
|
24616
24246
|
variant: "success",
|
|
24617
|
-
icon:
|
|
24247
|
+
icon: CheckCircleIcon,
|
|
24618
24248
|
dotClassName: "bg-eui-success-300",
|
|
24619
24249
|
panelClassName: "text-eui-success-200 bg-eui-success-500/10 border-eui-success-400/30"
|
|
24620
24250
|
},
|
|
@@ -24623,7 +24253,7 @@ var resolveSystemHealthView = (input) => {
|
|
|
24623
24253
|
label: "Reachable",
|
|
24624
24254
|
description: getSystemHealthStatusText(input.data) || "Response received",
|
|
24625
24255
|
variant: "warning",
|
|
24626
|
-
icon:
|
|
24256
|
+
icon: ActivityIcon,
|
|
24627
24257
|
dotClassName: "bg-eui-warning-300",
|
|
24628
24258
|
panelClassName: "text-eui-warning-100 bg-eui-warning-500/10 border-eui-warning-300/30"
|
|
24629
24259
|
},
|
|
@@ -24632,7 +24262,7 @@ var resolveSystemHealthView = (input) => {
|
|
|
24632
24262
|
label: "Unavailable",
|
|
24633
24263
|
description: getSystemHealthErrorMessage(input.error),
|
|
24634
24264
|
variant: "danger",
|
|
24635
|
-
icon:
|
|
24265
|
+
icon: WarningIcon,
|
|
24636
24266
|
dotClassName: "bg-eui-danger-300",
|
|
24637
24267
|
panelClassName: "text-eui-danger-200 bg-eui-danger-500/10 border-eui-danger-400/30"
|
|
24638
24268
|
}
|
|
@@ -24761,25 +24391,25 @@ function SystemHealthStatus({
|
|
|
24761
24391
|
const defaultMetrics = [
|
|
24762
24392
|
{
|
|
24763
24393
|
id: "server",
|
|
24764
|
-
icon:
|
|
24394
|
+
icon: ServerIcon,
|
|
24765
24395
|
label: serverLabel,
|
|
24766
24396
|
value: serverUrl
|
|
24767
24397
|
},
|
|
24768
24398
|
{
|
|
24769
24399
|
id: "endpoint",
|
|
24770
|
-
icon:
|
|
24400
|
+
icon: DatabaseIcon,
|
|
24771
24401
|
label: endpointLabel,
|
|
24772
24402
|
value: endpointUrl ?? endpointPath
|
|
24773
24403
|
},
|
|
24774
24404
|
{
|
|
24775
24405
|
id: "last-checked",
|
|
24776
|
-
icon:
|
|
24406
|
+
icon: ClockIcon,
|
|
24777
24407
|
label: lastCheckedLabel,
|
|
24778
24408
|
value: formatSystemHealthTimestamp(lastCheckedAt)
|
|
24779
24409
|
},
|
|
24780
24410
|
{
|
|
24781
24411
|
id: "environment",
|
|
24782
|
-
icon:
|
|
24412
|
+
icon: ActivityIcon,
|
|
24783
24413
|
label: environmentLabel,
|
|
24784
24414
|
value: environment
|
|
24785
24415
|
}
|
|
@@ -24878,7 +24508,7 @@ function SystemHealthStatus({
|
|
|
24878
24508
|
Button_web_default,
|
|
24879
24509
|
{
|
|
24880
24510
|
icon: /* @__PURE__ */ jsx(
|
|
24881
|
-
|
|
24511
|
+
RefreshIcon,
|
|
24882
24512
|
{
|
|
24883
24513
|
className: isFetching ? "animate-spin" : ""
|
|
24884
24514
|
}
|
|
@@ -28617,7 +28247,7 @@ var TNDropdownGroup = ({
|
|
|
28617
28247
|
children: [
|
|
28618
28248
|
/* @__PURE__ */ jsx("div", { className: "flex items-center gap-3", children: /* @__PURE__ */ jsx(TNContext, { icon, name, badge }) }),
|
|
28619
28249
|
/* @__PURE__ */ jsx(
|
|
28620
|
-
|
|
28250
|
+
ChevronDownIcon,
|
|
28621
28251
|
{
|
|
28622
28252
|
className: cn(
|
|
28623
28253
|
"text-xs transition-transform duration-200",
|
|
@@ -29191,7 +28821,7 @@ function ReviewMenu({
|
|
|
29191
28821
|
if (canEdit) {
|
|
29192
28822
|
items.push({
|
|
29193
28823
|
type: "item",
|
|
29194
|
-
icon: /* @__PURE__ */ jsx(
|
|
28824
|
+
icon: /* @__PURE__ */ jsx(EditIcon, {}),
|
|
29195
28825
|
name: "Edit Review",
|
|
29196
28826
|
component: MenuItem,
|
|
29197
28827
|
onClick: withClose(onEdit),
|
|
@@ -29201,7 +28831,7 @@ function ReviewMenu({
|
|
|
29201
28831
|
if (canDelete) {
|
|
29202
28832
|
items.push({
|
|
29203
28833
|
type: "item",
|
|
29204
|
-
icon: /* @__PURE__ */ jsx(
|
|
28834
|
+
icon: /* @__PURE__ */ jsx(DeleteIcon, {}),
|
|
29205
28835
|
name: "Delete Review",
|
|
29206
28836
|
component: MenuItem,
|
|
29207
28837
|
onClick: withClose(onDelete),
|
|
@@ -29211,7 +28841,7 @@ function ReviewMenu({
|
|
|
29211
28841
|
if (canReport) {
|
|
29212
28842
|
items.push({
|
|
29213
28843
|
type: "item",
|
|
29214
|
-
icon: /* @__PURE__ */ jsx(
|
|
28844
|
+
icon: /* @__PURE__ */ jsx(FlagIcon, {}),
|
|
29215
28845
|
name: "Report Review",
|
|
29216
28846
|
component: MenuItem,
|
|
29217
28847
|
onClick: withClose(onReport),
|
|
@@ -29229,7 +28859,7 @@ function ReviewMenu({
|
|
|
29229
28859
|
onClick: () => setOpen(!open),
|
|
29230
28860
|
className: "text-gray-500 transition-colors hover:text-gray-900 dark:hover:text-gray-100",
|
|
29231
28861
|
"aria-label": "Review options",
|
|
29232
|
-
children: /* @__PURE__ */ jsx(
|
|
28862
|
+
children: /* @__PURE__ */ jsx(MoreVerticalIcon, { size: 20 })
|
|
29233
28863
|
}
|
|
29234
28864
|
),
|
|
29235
28865
|
/* @__PURE__ */ jsx(Transition.TransitionDropdown, { visibility: open, children: /* @__PURE__ */ jsx(
|
|
@@ -29255,7 +28885,7 @@ function ReviewActions({ canReply, config, onReply }) {
|
|
|
29255
28885
|
variant: "secondary",
|
|
29256
28886
|
appearance: "ghost",
|
|
29257
28887
|
size: "sm",
|
|
29258
|
-
icon: /* @__PURE__ */ jsx(
|
|
28888
|
+
icon: /* @__PURE__ */ jsx(ReplyIcon, {}),
|
|
29259
28889
|
onClick: onReply
|
|
29260
28890
|
}
|
|
29261
28891
|
) });
|
|
@@ -29308,7 +28938,7 @@ function ReviewReplyMenu({
|
|
|
29308
28938
|
if (canEdit) {
|
|
29309
28939
|
items.push({
|
|
29310
28940
|
type: "item",
|
|
29311
|
-
icon: /* @__PURE__ */ jsx(
|
|
28941
|
+
icon: /* @__PURE__ */ jsx(EditIcon, {}),
|
|
29312
28942
|
name: "Edit Reply",
|
|
29313
28943
|
component: MenuItem,
|
|
29314
28944
|
onClick: withClose(onEdit),
|
|
@@ -29318,7 +28948,7 @@ function ReviewReplyMenu({
|
|
|
29318
28948
|
if (canDelete) {
|
|
29319
28949
|
items.push({
|
|
29320
28950
|
type: "item",
|
|
29321
|
-
icon: /* @__PURE__ */ jsx(
|
|
28951
|
+
icon: /* @__PURE__ */ jsx(DeleteIcon, {}),
|
|
29322
28952
|
name: "Delete Reply",
|
|
29323
28953
|
component: MenuItem,
|
|
29324
28954
|
onClick: withClose(onDelete),
|
|
@@ -29328,7 +28958,7 @@ function ReviewReplyMenu({
|
|
|
29328
28958
|
if (canReport) {
|
|
29329
28959
|
items.push({
|
|
29330
28960
|
type: "item",
|
|
29331
|
-
icon: /* @__PURE__ */ jsx(
|
|
28961
|
+
icon: /* @__PURE__ */ jsx(FlagIcon, {}),
|
|
29332
28962
|
name: "Report Reply",
|
|
29333
28963
|
component: MenuItem,
|
|
29334
28964
|
onClick: withClose(onReport),
|
|
@@ -29346,7 +28976,7 @@ function ReviewReplyMenu({
|
|
|
29346
28976
|
onClick: () => setOpen(!open),
|
|
29347
28977
|
className: "text-gray-500 transition-colors hover:text-gray-900 dark:hover:text-gray-100",
|
|
29348
28978
|
"aria-label": "Review reply options",
|
|
29349
|
-
children: /* @__PURE__ */ jsx(
|
|
28979
|
+
children: /* @__PURE__ */ jsx(MoreVerticalIcon, { size: 18 })
|
|
29350
28980
|
}
|
|
29351
28981
|
),
|
|
29352
28982
|
/* @__PURE__ */ jsx(Transition.TransitionDropdown, { visibility: open, children: /* @__PURE__ */ jsx(
|