@datatechsolutions/ui 2.8.4 → 2.8.7
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/dist/{chunk-7EWMQZRC.mjs → chunk-D3INPADN.mjs} +3 -3
- package/dist/{chunk-7EWMQZRC.mjs.map → chunk-D3INPADN.mjs.map} +1 -1
- package/dist/{chunk-Q2O7XJN5.js → chunk-GXCWMPW5.js} +3315 -3
- package/dist/chunk-GXCWMPW5.js.map +1 -0
- package/dist/{chunk-6MKK5VHN.mjs → chunk-SHKRLL36.mjs} +3103 -4
- package/dist/chunk-SHKRLL36.mjs.map +1 -0
- package/dist/{chunk-IM5CRBU2.js → chunk-Y2KJSGXS.js} +52 -52
- package/dist/{chunk-IM5CRBU2.js.map → chunk-Y2KJSGXS.js.map} +1 -1
- package/dist/index.d.mts +538 -2
- package/dist/index.d.ts +538 -2
- package/dist/index.js +1192 -340
- package/dist/index.mjs +1 -1
- package/dist/workflow/index.js +119 -119
- package/dist/workflow/index.mjs +3 -3
- package/dist/workflow/workflow-canvas.js +3 -3
- package/dist/workflow/workflow-canvas.mjs +2 -2
- package/package.json +1 -1
- package/dist/chunk-6MKK5VHN.mjs.map +0 -1
- package/dist/chunk-Q2O7XJN5.js.map +0 -1
|
@@ -9782,7 +9782,7 @@ function BrandedLoader({
|
|
|
9782
9782
|
{
|
|
9783
9783
|
className: clsx(
|
|
9784
9784
|
"flex w-full items-center justify-center",
|
|
9785
|
-
compact ? "py-8" : "min-h-[
|
|
9785
|
+
compact ? "py-8" : "fixed inset-0 z-50 min-h-dvh bg-gray-50 dark:bg-[#0b1120]",
|
|
9786
9786
|
className
|
|
9787
9787
|
),
|
|
9788
9788
|
children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center gap-6", children: [
|
|
@@ -12934,6 +12934,3105 @@ var getUsGradient = (state, direction) => getSubdivisionGradient("US", state, di
|
|
|
12934
12934
|
var getUsColors = (state) => getSubdivisionColors("US", state);
|
|
12935
12935
|
var getUsAccent = (state) => getSubdivisionAccent("US", state);
|
|
12936
12936
|
var isValidUsState = (state) => isValidSubdivision("US", state);
|
|
12937
|
+
|
|
12938
|
+
// src/lib/themes/canada.ts
|
|
12939
|
+
var CANADA_PROVINCE_PALETTES = {
|
|
12940
|
+
// Provinces
|
|
12941
|
+
BC: { primary: "#00563f", secondary: "#ffd700", text: "light" },
|
|
12942
|
+
AB: { primary: "#0038a8", secondary: "#f0f0f0", text: "light" },
|
|
12943
|
+
SK: { primary: "#008000", secondary: "#ffd700", text: "light" },
|
|
12944
|
+
MB: { primary: "#c8102e", secondary: "#006847", text: "light" },
|
|
12945
|
+
ON: { primary: "#c8102e", secondary: "#006847", text: "light" },
|
|
12946
|
+
QC: { primary: "#003da5", secondary: "#f0f0f0", text: "light" },
|
|
12947
|
+
NB: { primary: "#ffd700", secondary: "#c8102e", text: "dark" },
|
|
12948
|
+
NS: { primary: "#003da5", secondary: "#ffd700", text: "light" },
|
|
12949
|
+
PE: { primary: "#006847", secondary: "#c8102e", text: "light" },
|
|
12950
|
+
NL: { primary: "#003da5", secondary: "#c8102e", text: "light" },
|
|
12951
|
+
// Territories
|
|
12952
|
+
YT: { primary: "#6b2fa0", secondary: "#006847", text: "light" },
|
|
12953
|
+
NT: { primary: "#003da5", secondary: "#ffd700", text: "light" },
|
|
12954
|
+
NU: { primary: "#003da5", secondary: "#ffd700", text: "light" }
|
|
12955
|
+
};
|
|
12956
|
+
var CANADA_ACCENT_MAP = {
|
|
12957
|
+
BC: "green",
|
|
12958
|
+
AB: "blue",
|
|
12959
|
+
SK: "green",
|
|
12960
|
+
MB: "red",
|
|
12961
|
+
ON: "red",
|
|
12962
|
+
QC: "blue",
|
|
12963
|
+
NB: "yellow",
|
|
12964
|
+
NS: "blue",
|
|
12965
|
+
PE: "green",
|
|
12966
|
+
NL: "blue",
|
|
12967
|
+
YT: "purple",
|
|
12968
|
+
NT: "blue",
|
|
12969
|
+
NU: "blue"
|
|
12970
|
+
};
|
|
12971
|
+
var VALID_CODES = Object.keys(CANADA_PROVINCE_PALETTES);
|
|
12972
|
+
var CA_THEME_CONFIG = {
|
|
12973
|
+
palettes: CANADA_PROVINCE_PALETTES,
|
|
12974
|
+
accents: CANADA_ACCENT_MAP,
|
|
12975
|
+
flagUrlTemplate: (code) => VALID_CODES.includes(code) ? `/flags/ca/${code}.svg` : null
|
|
12976
|
+
};
|
|
12977
|
+
var CANADA_PROVINCE_COORDINATES = {
|
|
12978
|
+
BC: [-125, 54],
|
|
12979
|
+
AB: [-115, 54],
|
|
12980
|
+
SK: [-106, 54],
|
|
12981
|
+
MB: [-98, 55],
|
|
12982
|
+
ON: [-85, 50],
|
|
12983
|
+
QC: [-72, 52],
|
|
12984
|
+
NB: [-66.5, 46.5],
|
|
12985
|
+
NS: [-63, 45],
|
|
12986
|
+
PE: [-63, 46.3],
|
|
12987
|
+
NL: [-57, 53],
|
|
12988
|
+
YT: [-136, 64],
|
|
12989
|
+
NT: [-120, 65],
|
|
12990
|
+
NU: [-90, 70]
|
|
12991
|
+
};
|
|
12992
|
+
var CANADA_MAP_CENTER = [-96, 62];
|
|
12993
|
+
var CANADA_MACRO_REGIONS = [
|
|
12994
|
+
{
|
|
12995
|
+
key: "western",
|
|
12996
|
+
label: "",
|
|
12997
|
+
codes: ["BC", "AB", "SK", "MB"],
|
|
12998
|
+
gradient: "from-emerald-500/15 to-teal-500/10 dark:from-emerald-500/20 dark:to-teal-500/15",
|
|
12999
|
+
iconColor: "text-emerald-600 dark:text-emerald-400"
|
|
13000
|
+
},
|
|
13001
|
+
{
|
|
13002
|
+
key: "central",
|
|
13003
|
+
label: "",
|
|
13004
|
+
codes: ["ON", "QC"],
|
|
13005
|
+
gradient: "from-blue-500/15 to-indigo-500/10 dark:from-blue-500/20 dark:to-indigo-500/15",
|
|
13006
|
+
iconColor: "text-blue-600 dark:text-blue-400"
|
|
13007
|
+
},
|
|
13008
|
+
{
|
|
13009
|
+
key: "atlantic",
|
|
13010
|
+
label: "",
|
|
13011
|
+
codes: ["NB", "NS", "PE", "NL"],
|
|
13012
|
+
gradient: "from-orange-500/15 to-amber-500/10 dark:from-orange-500/20 dark:to-amber-500/15",
|
|
13013
|
+
iconColor: "text-orange-600 dark:text-orange-400"
|
|
13014
|
+
},
|
|
13015
|
+
{
|
|
13016
|
+
key: "northern",
|
|
13017
|
+
label: "",
|
|
13018
|
+
codes: ["YT", "NT", "NU"],
|
|
13019
|
+
gradient: "from-purple-500/15 to-fuchsia-500/10 dark:from-purple-500/20 dark:to-fuchsia-500/15",
|
|
13020
|
+
iconColor: "text-purple-600 dark:text-purple-400"
|
|
13021
|
+
}
|
|
13022
|
+
];
|
|
13023
|
+
var getCanadaFlagUrl = (code) => getSubdivisionFlagUrl("CA", code);
|
|
13024
|
+
var getCanadaHexColor = (code) => getSubdivisionHexColor("CA", code);
|
|
13025
|
+
var getCanadaPalette = (code) => getSubdivisionPalette("CA", code);
|
|
13026
|
+
var getCanadaGradient = (code, direction) => getSubdivisionGradient("CA", code, direction);
|
|
13027
|
+
var getCanadaColors = (code) => getSubdivisionColors("CA", code);
|
|
13028
|
+
var getCanadaAccent = (code) => getSubdivisionAccent("CA", code);
|
|
13029
|
+
var isValidCanadaProvince = (code) => isValidSubdivision("CA", code);
|
|
13030
|
+
|
|
13031
|
+
// src/lib/themes/mexico.ts
|
|
13032
|
+
var MEXICO_STATE_PALETTES = {
|
|
13033
|
+
// Noroeste
|
|
13034
|
+
BC: { primary: "#c8102e", secondary: "#006847", text: "light" },
|
|
13035
|
+
BS: { primary: "#0038a8", secondary: "#ffd700", text: "light" },
|
|
13036
|
+
SO: { primary: "#c8102e", secondary: "#0038a8", text: "light" },
|
|
13037
|
+
SI: { primary: "#c8102e", secondary: "#f0f0f0", text: "light" },
|
|
13038
|
+
CH: { primary: "#8b4513", secondary: "#c8102e", text: "light" },
|
|
13039
|
+
DG: { primary: "#006847", secondary: "#c8102e", text: "light" },
|
|
13040
|
+
// Noreste
|
|
13041
|
+
NL: { primary: "#ff6600", secondary: "#0038a8", text: "light" },
|
|
13042
|
+
TM: { primary: "#0038a8", secondary: "#c8102e", text: "light" },
|
|
13043
|
+
CO: { primary: "#c8102e", secondary: "#ffd700", text: "light" },
|
|
13044
|
+
// Occidente
|
|
13045
|
+
JA: { primary: "#0038a8", secondary: "#ffd700", text: "light" },
|
|
13046
|
+
AG: { primary: "#c8102e", secondary: "#ffd700", text: "light" },
|
|
13047
|
+
NA: { primary: "#006847", secondary: "#c8102e", text: "light" },
|
|
13048
|
+
CL: { primary: "#8b0000", secondary: "#ffd700", text: "light" },
|
|
13049
|
+
MI: { primary: "#7b2d8b", secondary: "#c8102e", text: "light" },
|
|
13050
|
+
ZA: { primary: "#c8102e", secondary: "#8b8b8b", text: "light" },
|
|
13051
|
+
// Centro
|
|
13052
|
+
MX: { primary: "#c8102e", secondary: "#0038a8", text: "light" },
|
|
13053
|
+
DF: { primary: "#8b2252", secondary: "#006847", text: "light" },
|
|
13054
|
+
MO: { primary: "#c8102e", secondary: "#006847", text: "light" },
|
|
13055
|
+
QT: { primary: "#0038a8", secondary: "#ffd700", text: "light" },
|
|
13056
|
+
PU: { primary: "#006847", secondary: "#c8102e", text: "light" },
|
|
13057
|
+
TL: { primary: "#c8102e", secondary: "#f0f0f0", text: "light" },
|
|
13058
|
+
HG: { primary: "#0038a8", secondary: "#c8102e", text: "light" },
|
|
13059
|
+
GJ: { primary: "#006847", secondary: "#ffd700", text: "light" },
|
|
13060
|
+
SL: { primary: "#0038a8", secondary: "#c8102e", text: "light" },
|
|
13061
|
+
// Sur
|
|
13062
|
+
OA: { primary: "#006847", secondary: "#c8102e", text: "light" },
|
|
13063
|
+
GR: { primary: "#ffd700", secondary: "#006847", text: "dark" },
|
|
13064
|
+
CS: { primary: "#006847", secondary: "#ffd700", text: "light" },
|
|
13065
|
+
// Sureste
|
|
13066
|
+
CM: { primary: "#0038a8", secondary: "#ffd700", text: "light" },
|
|
13067
|
+
QR: { primary: "#0038a8", secondary: "#ff6600", text: "light" },
|
|
13068
|
+
YU: { primary: "#006847", secondary: "#ffd700", text: "light" },
|
|
13069
|
+
TB: { primary: "#c8102e", secondary: "#006847", text: "light" },
|
|
13070
|
+
VE: { primary: "#0038a8", secondary: "#f0f0f0", text: "light" }
|
|
13071
|
+
};
|
|
13072
|
+
var MEXICO_ACCENT_MAP = {
|
|
13073
|
+
BC: "red",
|
|
13074
|
+
BS: "blue",
|
|
13075
|
+
SO: "red",
|
|
13076
|
+
SI: "red",
|
|
13077
|
+
CH: "orange",
|
|
13078
|
+
DG: "green",
|
|
13079
|
+
NL: "orange",
|
|
13080
|
+
TM: "blue",
|
|
13081
|
+
CO: "red",
|
|
13082
|
+
JA: "blue",
|
|
13083
|
+
AG: "red",
|
|
13084
|
+
NA: "green",
|
|
13085
|
+
CL: "red",
|
|
13086
|
+
MI: "purple",
|
|
13087
|
+
ZA: "red",
|
|
13088
|
+
MX: "red",
|
|
13089
|
+
DF: "pink",
|
|
13090
|
+
MO: "red",
|
|
13091
|
+
QT: "blue",
|
|
13092
|
+
PU: "green",
|
|
13093
|
+
TL: "red",
|
|
13094
|
+
HG: "blue",
|
|
13095
|
+
GJ: "green",
|
|
13096
|
+
SL: "blue",
|
|
13097
|
+
OA: "green",
|
|
13098
|
+
GR: "yellow",
|
|
13099
|
+
CS: "green",
|
|
13100
|
+
CM: "blue",
|
|
13101
|
+
QR: "blue",
|
|
13102
|
+
YU: "green",
|
|
13103
|
+
TB: "red",
|
|
13104
|
+
VE: "blue"
|
|
13105
|
+
};
|
|
13106
|
+
var VALID_CODES2 = Object.keys(MEXICO_STATE_PALETTES);
|
|
13107
|
+
var MX_THEME_CONFIG = {
|
|
13108
|
+
palettes: MEXICO_STATE_PALETTES,
|
|
13109
|
+
accents: MEXICO_ACCENT_MAP,
|
|
13110
|
+
flagUrlTemplate: (code) => VALID_CODES2.includes(code) ? `/flags/mx/${code}.svg` : null
|
|
13111
|
+
};
|
|
13112
|
+
var MEXICO_STATE_COORDINATES = {
|
|
13113
|
+
BC: [-115.5, 30.5],
|
|
13114
|
+
BS: [-111.5, 25.5],
|
|
13115
|
+
SO: [-110, 29.5],
|
|
13116
|
+
SI: [-107.5, 24],
|
|
13117
|
+
CH: [-106.5, 28.5],
|
|
13118
|
+
DG: [-105, 24.5],
|
|
13119
|
+
NL: [-100, 25],
|
|
13120
|
+
TM: [-99, 24],
|
|
13121
|
+
CO: [-101.5, 27],
|
|
13122
|
+
JA: [-103.5, 20.5],
|
|
13123
|
+
AG: [-102.3, 22],
|
|
13124
|
+
NA: [-104.8, 21.7],
|
|
13125
|
+
CL: [-103.7, 19.2],
|
|
13126
|
+
MI: [-102, 19.2],
|
|
13127
|
+
ZA: [-102.5, 23],
|
|
13128
|
+
MX: [-99.7, 19.3],
|
|
13129
|
+
DF: [-99.1, 19.4],
|
|
13130
|
+
MO: [-99.2, 18.7],
|
|
13131
|
+
QT: [-100, 20.6],
|
|
13132
|
+
PU: [-98, 19],
|
|
13133
|
+
TL: [-98.2, 19.4],
|
|
13134
|
+
HG: [-98.8, 20.5],
|
|
13135
|
+
GJ: [-101, 21],
|
|
13136
|
+
SL: [-100.5, 22.5],
|
|
13137
|
+
OA: [-96.5, 17],
|
|
13138
|
+
GR: [-100, 17.5],
|
|
13139
|
+
CS: [-93, 16.5],
|
|
13140
|
+
CM: [-90.5, 19],
|
|
13141
|
+
QR: [-87.5, 19.5],
|
|
13142
|
+
YU: [-89, 20.8],
|
|
13143
|
+
TB: [-93, 18],
|
|
13144
|
+
VE: [-96.5, 19.5]
|
|
13145
|
+
};
|
|
13146
|
+
var MEXICO_MAP_CENTER = [-102.5, 23.5];
|
|
13147
|
+
var MEXICO_MACRO_REGIONS = [
|
|
13148
|
+
{
|
|
13149
|
+
key: "noroeste",
|
|
13150
|
+
label: "",
|
|
13151
|
+
codes: ["BC", "BS", "SO", "SI", "CH", "DG"],
|
|
13152
|
+
gradient: "from-orange-500/15 to-amber-500/10 dark:from-orange-500/20 dark:to-amber-500/15",
|
|
13153
|
+
iconColor: "text-orange-600 dark:text-orange-400"
|
|
13154
|
+
},
|
|
13155
|
+
{
|
|
13156
|
+
key: "noreste",
|
|
13157
|
+
label: "",
|
|
13158
|
+
codes: ["NL", "TM", "CO"],
|
|
13159
|
+
gradient: "from-blue-500/15 to-indigo-500/10 dark:from-blue-500/20 dark:to-indigo-500/15",
|
|
13160
|
+
iconColor: "text-blue-600 dark:text-blue-400"
|
|
13161
|
+
},
|
|
13162
|
+
{
|
|
13163
|
+
key: "occidente",
|
|
13164
|
+
label: "",
|
|
13165
|
+
codes: ["JA", "AG", "NA", "CL", "MI", "ZA"],
|
|
13166
|
+
gradient: "from-purple-500/15 to-fuchsia-500/10 dark:from-purple-500/20 dark:to-fuchsia-500/15",
|
|
13167
|
+
iconColor: "text-purple-600 dark:text-purple-400"
|
|
13168
|
+
},
|
|
13169
|
+
{
|
|
13170
|
+
key: "centro",
|
|
13171
|
+
label: "",
|
|
13172
|
+
codes: ["MX", "DF", "MO", "QT", "PU", "TL", "HG", "GJ", "SL"],
|
|
13173
|
+
gradient: "from-red-500/15 to-rose-500/10 dark:from-red-500/20 dark:to-rose-500/15",
|
|
13174
|
+
iconColor: "text-red-600 dark:text-red-400"
|
|
13175
|
+
},
|
|
13176
|
+
{
|
|
13177
|
+
key: "sur",
|
|
13178
|
+
label: "",
|
|
13179
|
+
codes: ["OA", "GR", "CS"],
|
|
13180
|
+
gradient: "from-emerald-500/15 to-teal-500/10 dark:from-emerald-500/20 dark:to-teal-500/15",
|
|
13181
|
+
iconColor: "text-emerald-600 dark:text-emerald-400"
|
|
13182
|
+
},
|
|
13183
|
+
{
|
|
13184
|
+
key: "sureste",
|
|
13185
|
+
label: "",
|
|
13186
|
+
codes: ["CM", "QR", "YU", "TB", "VE"],
|
|
13187
|
+
gradient: "from-cyan-500/15 to-sky-500/10 dark:from-cyan-500/20 dark:to-sky-500/15",
|
|
13188
|
+
iconColor: "text-cyan-600 dark:text-cyan-400"
|
|
13189
|
+
}
|
|
13190
|
+
];
|
|
13191
|
+
var getMexicoFlagUrl = (code) => getSubdivisionFlagUrl("MX", code);
|
|
13192
|
+
var getMexicoHexColor = (code) => getSubdivisionHexColor("MX", code);
|
|
13193
|
+
var getMexicoPalette = (code) => getSubdivisionPalette("MX", code);
|
|
13194
|
+
var getMexicoGradient = (code, direction) => getSubdivisionGradient("MX", code, direction);
|
|
13195
|
+
var getMexicoColors = (code) => getSubdivisionColors("MX", code);
|
|
13196
|
+
var getMexicoAccent = (code) => getSubdivisionAccent("MX", code);
|
|
13197
|
+
var isValidMexicoState = (code) => isValidSubdivision("MX", code);
|
|
13198
|
+
|
|
13199
|
+
// src/lib/themes/colombia.ts
|
|
13200
|
+
var COLOMBIA_DEPARTMENT_PALETTES = {
|
|
13201
|
+
// Caribe
|
|
13202
|
+
SA: { primary: "#006847", secondary: "#c8102e", text: "light" },
|
|
13203
|
+
BL: { primary: "#ffd700", secondary: "#c8102e", text: "dark" },
|
|
13204
|
+
SU: { primary: "#006847", secondary: "#ffd700", text: "light" },
|
|
13205
|
+
AT: { primary: "#c8102e", secondary: "#ffd700", text: "light" },
|
|
13206
|
+
CE: { primary: "#006847", secondary: "#f0f0f0", text: "light" },
|
|
13207
|
+
LG: { primary: "#0038a8", secondary: "#c8102e", text: "light" },
|
|
13208
|
+
MA: { primary: "#c8102e", secondary: "#006847", text: "light" },
|
|
13209
|
+
CO: { primary: "#ffd700", secondary: "#006847", text: "dark" },
|
|
13210
|
+
// Andina
|
|
13211
|
+
CA: { primary: "#006847", secondary: "#ffd700", text: "light" },
|
|
13212
|
+
TO: { primary: "#ffd700", secondary: "#c8102e", text: "dark" },
|
|
13213
|
+
HU: { primary: "#006847", secondary: "#f0f0f0", text: "light" },
|
|
13214
|
+
NS: { primary: "#c8102e", secondary: "#0038a8", text: "light" },
|
|
13215
|
+
AN: { primary: "#006847", secondary: "#ffd700", text: "light" },
|
|
13216
|
+
BY: { primary: "#006847", secondary: "#c8102e", text: "light" },
|
|
13217
|
+
ST: { primary: "#0038a8", secondary: "#ffd700", text: "light" },
|
|
13218
|
+
CL: { primary: "#c8102e", secondary: "#006847", text: "light" },
|
|
13219
|
+
CU: { primary: "#0038a8", secondary: "#c8102e", text: "light" },
|
|
13220
|
+
BO: { primary: "#006847", secondary: "#ffd700", text: "light" },
|
|
13221
|
+
RI: { primary: "#ffd700", secondary: "#0038a8", text: "dark" },
|
|
13222
|
+
QD: { primary: "#006847", secondary: "#c8102e", text: "light" },
|
|
13223
|
+
NA: { primary: "#006847", secondary: "#c8102e", text: "light" },
|
|
13224
|
+
// Pacifica
|
|
13225
|
+
CH: { primary: "#006847", secondary: "#0038a8", text: "light" },
|
|
13226
|
+
VC: { primary: "#0038a8", secondary: "#c8102e", text: "light" },
|
|
13227
|
+
// Orinoquia
|
|
13228
|
+
AR: { primary: "#ffd700", secondary: "#006847", text: "dark" },
|
|
13229
|
+
CS: { primary: "#006847", secondary: "#ffd700", text: "light" },
|
|
13230
|
+
GV: { primary: "#c8102e", secondary: "#006847", text: "light" },
|
|
13231
|
+
ME: { primary: "#006847", secondary: "#f0f0f0", text: "light" },
|
|
13232
|
+
VD: { primary: "#0038a8", secondary: "#006847", text: "light" },
|
|
13233
|
+
// Amazonia
|
|
13234
|
+
CQ: { primary: "#006847", secondary: "#0038a8", text: "light" },
|
|
13235
|
+
PU: { primary: "#006847", secondary: "#ffd700", text: "light" },
|
|
13236
|
+
AM: { primary: "#006847", secondary: "#c8102e", text: "light" },
|
|
13237
|
+
VP: { primary: "#006847", secondary: "#ffd700", text: "light" },
|
|
13238
|
+
GN: { primary: "#006847", secondary: "#0038a8", text: "light" }
|
|
13239
|
+
};
|
|
13240
|
+
var COLOMBIA_ACCENT_MAP = {
|
|
13241
|
+
SA: "green",
|
|
13242
|
+
BL: "yellow",
|
|
13243
|
+
SU: "green",
|
|
13244
|
+
AT: "red",
|
|
13245
|
+
CE: "green",
|
|
13246
|
+
LG: "blue",
|
|
13247
|
+
MA: "red",
|
|
13248
|
+
CO: "yellow",
|
|
13249
|
+
CA: "green",
|
|
13250
|
+
TO: "yellow",
|
|
13251
|
+
HU: "green",
|
|
13252
|
+
NS: "red",
|
|
13253
|
+
AN: "green",
|
|
13254
|
+
BY: "green",
|
|
13255
|
+
ST: "blue",
|
|
13256
|
+
CL: "red",
|
|
13257
|
+
CU: "blue",
|
|
13258
|
+
BO: "green",
|
|
13259
|
+
RI: "yellow",
|
|
13260
|
+
QD: "green",
|
|
13261
|
+
NA: "green",
|
|
13262
|
+
CH: "green",
|
|
13263
|
+
VC: "blue",
|
|
13264
|
+
AR: "yellow",
|
|
13265
|
+
CS: "green",
|
|
13266
|
+
GV: "red",
|
|
13267
|
+
ME: "green",
|
|
13268
|
+
VD: "blue",
|
|
13269
|
+
CQ: "green",
|
|
13270
|
+
PU: "green",
|
|
13271
|
+
AM: "green",
|
|
13272
|
+
VP: "green",
|
|
13273
|
+
GN: "green"
|
|
13274
|
+
};
|
|
13275
|
+
var VALID_CODES3 = Object.keys(COLOMBIA_DEPARTMENT_PALETTES);
|
|
13276
|
+
var CO_THEME_CONFIG = {
|
|
13277
|
+
palettes: COLOMBIA_DEPARTMENT_PALETTES,
|
|
13278
|
+
accents: COLOMBIA_ACCENT_MAP,
|
|
13279
|
+
flagUrlTemplate: (code) => VALID_CODES3.includes(code) ? `/flags/co/${code}.svg` : null
|
|
13280
|
+
};
|
|
13281
|
+
var COLOMBIA_DEPARTMENT_COORDINATES = {
|
|
13282
|
+
// Caribe
|
|
13283
|
+
SA: [-75.5, 9.3],
|
|
13284
|
+
BL: [-75, 10.4],
|
|
13285
|
+
SU: [-72.8, 9.3],
|
|
13286
|
+
AT: [-75, 10.7],
|
|
13287
|
+
CE: [-73.5, 10],
|
|
13288
|
+
LG: [-72.9, 11.5],
|
|
13289
|
+
MA: [-74.2, 10.4],
|
|
13290
|
+
CO: [-75.8, 8.7],
|
|
13291
|
+
// Andina
|
|
13292
|
+
CA: [-76.5, 2.5],
|
|
13293
|
+
TO: [-75.2, 4],
|
|
13294
|
+
HU: [-75.8, 2.5],
|
|
13295
|
+
NS: [-72.9, 7.9],
|
|
13296
|
+
AN: [-75.6, 6.3],
|
|
13297
|
+
BY: [-73.3, 5.5],
|
|
13298
|
+
ST: [-73, 6.6],
|
|
13299
|
+
CL: [-75.5, 5],
|
|
13300
|
+
CU: [-76, 2],
|
|
13301
|
+
BO: [-74, 5.5],
|
|
13302
|
+
RI: [-75.7, 4.8],
|
|
13303
|
+
QD: [-75.7, 4.5],
|
|
13304
|
+
NA: [-77.5, 1.5],
|
|
13305
|
+
// Pacifica
|
|
13306
|
+
CH: [-76.8, 5.5],
|
|
13307
|
+
VC: [-76.5, 3.5],
|
|
13308
|
+
// Orinoquia
|
|
13309
|
+
AR: [-71, 6.5],
|
|
13310
|
+
CS: [-72, 5],
|
|
13311
|
+
GV: [-70.5, 4],
|
|
13312
|
+
ME: [-73.5, 3.5],
|
|
13313
|
+
VD: [-70, 4.5],
|
|
13314
|
+
// Amazonia
|
|
13315
|
+
CQ: [-75.5, 1],
|
|
13316
|
+
PU: [-76, 0.5],
|
|
13317
|
+
AM: [-71.5, -1],
|
|
13318
|
+
VP: [-70, 1],
|
|
13319
|
+
GN: [-69.5, 2.5]
|
|
13320
|
+
};
|
|
13321
|
+
var COLOMBIA_MAP_CENTER = [-73.5, 4];
|
|
13322
|
+
var COLOMBIA_MACRO_REGIONS = [
|
|
13323
|
+
{
|
|
13324
|
+
key: "caribe",
|
|
13325
|
+
label: "",
|
|
13326
|
+
codes: ["SA", "BL", "SU", "AT", "CE", "LG", "MA", "CO"],
|
|
13327
|
+
gradient: "from-cyan-500/15 to-sky-500/10 dark:from-cyan-500/20 dark:to-sky-500/15",
|
|
13328
|
+
iconColor: "text-cyan-600 dark:text-cyan-400"
|
|
13329
|
+
},
|
|
13330
|
+
{
|
|
13331
|
+
key: "andina",
|
|
13332
|
+
label: "",
|
|
13333
|
+
codes: ["CA", "TO", "HU", "NS", "AN", "BY", "ST", "CL", "CU", "BO", "RI", "QD", "NA"],
|
|
13334
|
+
gradient: "from-emerald-500/15 to-teal-500/10 dark:from-emerald-500/20 dark:to-teal-500/15",
|
|
13335
|
+
iconColor: "text-emerald-600 dark:text-emerald-400"
|
|
13336
|
+
},
|
|
13337
|
+
{
|
|
13338
|
+
key: "pacifica",
|
|
13339
|
+
label: "",
|
|
13340
|
+
codes: ["CH", "VC"],
|
|
13341
|
+
gradient: "from-blue-500/15 to-indigo-500/10 dark:from-blue-500/20 dark:to-indigo-500/15",
|
|
13342
|
+
iconColor: "text-blue-600 dark:text-blue-400"
|
|
13343
|
+
},
|
|
13344
|
+
{
|
|
13345
|
+
key: "orinoquia",
|
|
13346
|
+
label: "",
|
|
13347
|
+
codes: ["AR", "CS", "GV", "ME", "VD"],
|
|
13348
|
+
gradient: "from-orange-500/15 to-amber-500/10 dark:from-orange-500/20 dark:to-amber-500/15",
|
|
13349
|
+
iconColor: "text-orange-600 dark:text-orange-400"
|
|
13350
|
+
},
|
|
13351
|
+
{
|
|
13352
|
+
key: "amazonia",
|
|
13353
|
+
label: "",
|
|
13354
|
+
codes: ["CQ", "PU", "AM", "VP", "GN"],
|
|
13355
|
+
gradient: "from-purple-500/15 to-fuchsia-500/10 dark:from-purple-500/20 dark:to-fuchsia-500/15",
|
|
13356
|
+
iconColor: "text-purple-600 dark:text-purple-400"
|
|
13357
|
+
}
|
|
13358
|
+
];
|
|
13359
|
+
var getColombiaFlagUrl = (code) => getSubdivisionFlagUrl("CO", code);
|
|
13360
|
+
var getColombiaHexColor = (code) => getSubdivisionHexColor("CO", code);
|
|
13361
|
+
var getColombiaPalette = (code) => getSubdivisionPalette("CO", code);
|
|
13362
|
+
var getColombiaGradient = (code, direction) => getSubdivisionGradient("CO", code, direction);
|
|
13363
|
+
var getColombiaColors = (code) => getSubdivisionColors("CO", code);
|
|
13364
|
+
var getColombiaAccent = (code) => getSubdivisionAccent("CO", code);
|
|
13365
|
+
var isValidColombiaDepartment = (code) => isValidSubdivision("CO", code);
|
|
13366
|
+
|
|
13367
|
+
// src/lib/themes/argentina.ts
|
|
13368
|
+
var ARGENTINA_PROVINCE_PALETTES = {
|
|
13369
|
+
// Patagonia
|
|
13370
|
+
TF: { primary: "#0038a8", secondary: "#f0f0f0", text: "light" },
|
|
13371
|
+
NQ: { primary: "#0038a8", secondary: "#c8102e", text: "light" },
|
|
13372
|
+
RN: { primary: "#006847", secondary: "#0038a8", text: "light" },
|
|
13373
|
+
CH: { primary: "#0038a8", secondary: "#ffd700", text: "light" },
|
|
13374
|
+
SC: { primary: "#0038a8", secondary: "#f0f0f0", text: "light" },
|
|
13375
|
+
// Pampeana
|
|
13376
|
+
BA: { primary: "#c8102e", secondary: "#0038a8", text: "light" },
|
|
13377
|
+
LP: { primary: "#0038a8", secondary: "#f0f0f0", text: "light" },
|
|
13378
|
+
CB: { primary: "#0038a8", secondary: "#c8102e", text: "light" },
|
|
13379
|
+
SF: { primary: "#c8102e", secondary: "#f0f0f0", text: "light" },
|
|
13380
|
+
ER: { primary: "#0038a8", secondary: "#c8102e", text: "light" },
|
|
13381
|
+
DF: { primary: "#ffd700", secondary: "#0038a8", text: "dark" },
|
|
13382
|
+
// Cuyo
|
|
13383
|
+
SJ: { primary: "#0038a8", secondary: "#ffd700", text: "light" },
|
|
13384
|
+
MZ: { primary: "#006847", secondary: "#c8102e", text: "light" },
|
|
13385
|
+
SL: { primary: "#006847", secondary: "#0038a8", text: "light" },
|
|
13386
|
+
// NOA (Noroeste)
|
|
13387
|
+
CT: { primary: "#0038a8", secondary: "#f0f0f0", text: "light" },
|
|
13388
|
+
LR: { primary: "#c8102e", secondary: "#0038a8", text: "light" },
|
|
13389
|
+
SA: { primary: "#c8102e", secondary: "#f0f0f0", text: "light" },
|
|
13390
|
+
TM: { primary: "#0038a8", secondary: "#c8102e", text: "light" },
|
|
13391
|
+
JY: { primary: "#006847", secondary: "#c8102e", text: "light" },
|
|
13392
|
+
SE: { primary: "#0038a8", secondary: "#006847", text: "light" },
|
|
13393
|
+
// NEA (Noreste)
|
|
13394
|
+
CC: { primary: "#006847", secondary: "#ffd700", text: "light" },
|
|
13395
|
+
FM: { primary: "#0038a8", secondary: "#006847", text: "light" },
|
|
13396
|
+
CN: { primary: "#c8102e", secondary: "#0038a8", text: "light" },
|
|
13397
|
+
MN: { primary: "#c8102e", secondary: "#006847", text: "light" }
|
|
13398
|
+
};
|
|
13399
|
+
var ARGENTINA_ACCENT_MAP = {
|
|
13400
|
+
TF: "blue",
|
|
13401
|
+
NQ: "blue",
|
|
13402
|
+
RN: "green",
|
|
13403
|
+
CH: "blue",
|
|
13404
|
+
SC: "blue",
|
|
13405
|
+
BA: "red",
|
|
13406
|
+
LP: "blue",
|
|
13407
|
+
CB: "blue",
|
|
13408
|
+
SF: "red",
|
|
13409
|
+
ER: "blue",
|
|
13410
|
+
DF: "yellow",
|
|
13411
|
+
SJ: "blue",
|
|
13412
|
+
MZ: "green",
|
|
13413
|
+
SL: "green",
|
|
13414
|
+
CT: "blue",
|
|
13415
|
+
LR: "red",
|
|
13416
|
+
SA: "red",
|
|
13417
|
+
TM: "blue",
|
|
13418
|
+
JY: "green",
|
|
13419
|
+
SE: "blue",
|
|
13420
|
+
CC: "green",
|
|
13421
|
+
FM: "blue",
|
|
13422
|
+
CN: "red",
|
|
13423
|
+
MN: "red"
|
|
13424
|
+
};
|
|
13425
|
+
var VALID_CODES4 = Object.keys(ARGENTINA_PROVINCE_PALETTES);
|
|
13426
|
+
var AR_THEME_CONFIG = {
|
|
13427
|
+
palettes: ARGENTINA_PROVINCE_PALETTES,
|
|
13428
|
+
accents: ARGENTINA_ACCENT_MAP,
|
|
13429
|
+
flagUrlTemplate: (code) => VALID_CODES4.includes(code) ? `/flags/ar/${code}.svg` : null
|
|
13430
|
+
};
|
|
13431
|
+
var ARGENTINA_PROVINCE_COORDINATES = {
|
|
13432
|
+
// Patagonia
|
|
13433
|
+
TF: [-68.5, -54.5],
|
|
13434
|
+
NQ: [-70.5, -38.5],
|
|
13435
|
+
RN: [-67, -40],
|
|
13436
|
+
CH: [-69, -43.5],
|
|
13437
|
+
SC: [-69, -48.5],
|
|
13438
|
+
// Pampeana
|
|
13439
|
+
BA: [-60, -37],
|
|
13440
|
+
LP: [-66, -37],
|
|
13441
|
+
CB: [-64.5, -32],
|
|
13442
|
+
SF: [-61, -31],
|
|
13443
|
+
ER: [-59, -32],
|
|
13444
|
+
DF: [-58.4, -34.6],
|
|
13445
|
+
// Cuyo
|
|
13446
|
+
SJ: [-69, -31],
|
|
13447
|
+
MZ: [-69, -34.5],
|
|
13448
|
+
SL: [-66, -34],
|
|
13449
|
+
// NOA
|
|
13450
|
+
CT: [-66, -28],
|
|
13451
|
+
LR: [-67, -30],
|
|
13452
|
+
SA: [-65.5, -24.5],
|
|
13453
|
+
TM: [-65.5, -27],
|
|
13454
|
+
JY: [-66, -23.5],
|
|
13455
|
+
SE: [-64, -28],
|
|
13456
|
+
// NEA
|
|
13457
|
+
CC: [-58.5, -28.5],
|
|
13458
|
+
FM: [-58.5, -26],
|
|
13459
|
+
CN: [-59.5, -27.5],
|
|
13460
|
+
MN: [-54.5, -27]
|
|
13461
|
+
};
|
|
13462
|
+
var ARGENTINA_MAP_CENTER = [-64, -38];
|
|
13463
|
+
var ARGENTINA_MACRO_REGIONS = [
|
|
13464
|
+
{
|
|
13465
|
+
key: "patagonia",
|
|
13466
|
+
label: "",
|
|
13467
|
+
codes: ["TF", "NQ", "RN", "CH", "SC"],
|
|
13468
|
+
gradient: "from-cyan-500/15 to-sky-500/10 dark:from-cyan-500/20 dark:to-sky-500/15",
|
|
13469
|
+
iconColor: "text-cyan-600 dark:text-cyan-400"
|
|
13470
|
+
},
|
|
13471
|
+
{
|
|
13472
|
+
key: "pampeana",
|
|
13473
|
+
label: "",
|
|
13474
|
+
codes: ["BA", "LP", "CB", "SF", "ER", "DF"],
|
|
13475
|
+
gradient: "from-blue-500/15 to-indigo-500/10 dark:from-blue-500/20 dark:to-indigo-500/15",
|
|
13476
|
+
iconColor: "text-blue-600 dark:text-blue-400"
|
|
13477
|
+
},
|
|
13478
|
+
{
|
|
13479
|
+
key: "cuyo",
|
|
13480
|
+
label: "",
|
|
13481
|
+
codes: ["SJ", "MZ", "SL"],
|
|
13482
|
+
gradient: "from-purple-500/15 to-fuchsia-500/10 dark:from-purple-500/20 dark:to-fuchsia-500/15",
|
|
13483
|
+
iconColor: "text-purple-600 dark:text-purple-400"
|
|
13484
|
+
},
|
|
13485
|
+
{
|
|
13486
|
+
key: "noa",
|
|
13487
|
+
label: "",
|
|
13488
|
+
codes: ["CT", "LR", "SA", "TM", "JY", "SE"],
|
|
13489
|
+
gradient: "from-orange-500/15 to-amber-500/10 dark:from-orange-500/20 dark:to-amber-500/15",
|
|
13490
|
+
iconColor: "text-orange-600 dark:text-orange-400"
|
|
13491
|
+
},
|
|
13492
|
+
{
|
|
13493
|
+
key: "nea",
|
|
13494
|
+
label: "",
|
|
13495
|
+
codes: ["CC", "FM", "CN", "MN"],
|
|
13496
|
+
gradient: "from-emerald-500/15 to-teal-500/10 dark:from-emerald-500/20 dark:to-teal-500/15",
|
|
13497
|
+
iconColor: "text-emerald-600 dark:text-emerald-400"
|
|
13498
|
+
}
|
|
13499
|
+
];
|
|
13500
|
+
var getArgentinaFlagUrl = (code) => getSubdivisionFlagUrl("AR", code);
|
|
13501
|
+
var getArgentinaHexColor = (code) => getSubdivisionHexColor("AR", code);
|
|
13502
|
+
var getArgentinaPalette = (code) => getSubdivisionPalette("AR", code);
|
|
13503
|
+
var getArgentinaGradient = (code, direction) => getSubdivisionGradient("AR", code, direction);
|
|
13504
|
+
var getArgentinaColors = (code) => getSubdivisionColors("AR", code);
|
|
13505
|
+
var getArgentinaAccent = (code) => getSubdivisionAccent("AR", code);
|
|
13506
|
+
var isValidArgentinaProvince = (code) => isValidSubdivision("AR", code);
|
|
13507
|
+
|
|
13508
|
+
// src/lib/themes/chile.ts
|
|
13509
|
+
var CHILE_REGION_PALETTES = {
|
|
13510
|
+
// Norte Grande
|
|
13511
|
+
TA: { primary: "#c8102e", secondary: "#ffd700", text: "light" },
|
|
13512
|
+
AY: { primary: "#006847", secondary: "#c8102e", text: "light" },
|
|
13513
|
+
AN: { primary: "#c8102e", secondary: "#0038a8", text: "light" },
|
|
13514
|
+
AT: { primary: "#ffd700", secondary: "#c8102e", text: "dark" },
|
|
13515
|
+
// Norte Chico
|
|
13516
|
+
CO: { primary: "#0038a8", secondary: "#ffd700", text: "light" },
|
|
13517
|
+
// Central
|
|
13518
|
+
VS: { primary: "#c8102e", secondary: "#006847", text: "light" },
|
|
13519
|
+
RM: { primary: "#0038a8", secondary: "#c8102e", text: "light" },
|
|
13520
|
+
LI: { primary: "#006847", secondary: "#c8102e", text: "light" },
|
|
13521
|
+
ML: { primary: "#c8102e", secondary: "#006847", text: "light" },
|
|
13522
|
+
// Sur
|
|
13523
|
+
BI: { primary: "#0038a8", secondary: "#f0f0f0", text: "light" },
|
|
13524
|
+
LA: { primary: "#006847", secondary: "#0038a8", text: "light" },
|
|
13525
|
+
AR: { primary: "#006847", secondary: "#ffd700", text: "light" },
|
|
13526
|
+
LL: { primary: "#0038a8", secondary: "#006847", text: "light" },
|
|
13527
|
+
// Austral
|
|
13528
|
+
AI: { primary: "#0038a8", secondary: "#f0f0f0", text: "light" },
|
|
13529
|
+
MA: { primary: "#0038a8", secondary: "#c8102e", text: "light" }
|
|
13530
|
+
};
|
|
13531
|
+
var CHILE_ACCENT_MAP = {
|
|
13532
|
+
TA: "red",
|
|
13533
|
+
AY: "green",
|
|
13534
|
+
AN: "red",
|
|
13535
|
+
AT: "yellow",
|
|
13536
|
+
CO: "blue",
|
|
13537
|
+
VS: "red",
|
|
13538
|
+
RM: "blue",
|
|
13539
|
+
LI: "green",
|
|
13540
|
+
ML: "red",
|
|
13541
|
+
BI: "blue",
|
|
13542
|
+
LA: "green",
|
|
13543
|
+
AR: "green",
|
|
13544
|
+
LL: "blue",
|
|
13545
|
+
AI: "blue",
|
|
13546
|
+
MA: "blue"
|
|
13547
|
+
};
|
|
13548
|
+
var VALID_CODES5 = Object.keys(CHILE_REGION_PALETTES);
|
|
13549
|
+
var CL_THEME_CONFIG = {
|
|
13550
|
+
palettes: CHILE_REGION_PALETTES,
|
|
13551
|
+
accents: CHILE_ACCENT_MAP,
|
|
13552
|
+
flagUrlTemplate: (code) => VALID_CODES5.includes(code) ? `/flags/cl/${code}.svg` : null
|
|
13553
|
+
};
|
|
13554
|
+
var CHILE_REGION_COORDINATES = {
|
|
13555
|
+
// Norte Grande
|
|
13556
|
+
TA: [-70, -20],
|
|
13557
|
+
AY: [-69.5, -18.5],
|
|
13558
|
+
AN: [-69.5, -23.5],
|
|
13559
|
+
AT: [-70, -27],
|
|
13560
|
+
// Norte Chico
|
|
13561
|
+
CO: [-71, -30],
|
|
13562
|
+
// Central
|
|
13563
|
+
VS: [-71.5, -33],
|
|
13564
|
+
RM: [-70.6, -33.5],
|
|
13565
|
+
LI: [-71, -34.5],
|
|
13566
|
+
ML: [-71.5, -35.5],
|
|
13567
|
+
// Sur
|
|
13568
|
+
BI: [-72.5, -37],
|
|
13569
|
+
LA: [-72.5, -38.5],
|
|
13570
|
+
AR: [-72, -39.5],
|
|
13571
|
+
LL: [-72.5, -42],
|
|
13572
|
+
// Austral
|
|
13573
|
+
AI: [-73.5, -45],
|
|
13574
|
+
MA: [-72, -52]
|
|
13575
|
+
};
|
|
13576
|
+
var CHILE_MAP_CENTER = [-71, -35];
|
|
13577
|
+
var CHILE_MACRO_REGIONS = [
|
|
13578
|
+
{
|
|
13579
|
+
key: "norteGrande",
|
|
13580
|
+
label: "",
|
|
13581
|
+
codes: ["TA", "AY", "AN", "AT"],
|
|
13582
|
+
gradient: "from-orange-500/15 to-amber-500/10 dark:from-orange-500/20 dark:to-amber-500/15",
|
|
13583
|
+
iconColor: "text-orange-600 dark:text-orange-400"
|
|
13584
|
+
},
|
|
13585
|
+
{
|
|
13586
|
+
key: "norteChico",
|
|
13587
|
+
label: "",
|
|
13588
|
+
codes: ["CO"],
|
|
13589
|
+
gradient: "from-yellow-500/15 to-amber-500/10 dark:from-yellow-500/20 dark:to-amber-500/15",
|
|
13590
|
+
iconColor: "text-yellow-600 dark:text-yellow-400"
|
|
13591
|
+
},
|
|
13592
|
+
{
|
|
13593
|
+
key: "central",
|
|
13594
|
+
label: "",
|
|
13595
|
+
codes: ["VS", "RM", "LI", "ML"],
|
|
13596
|
+
gradient: "from-blue-500/15 to-indigo-500/10 dark:from-blue-500/20 dark:to-indigo-500/15",
|
|
13597
|
+
iconColor: "text-blue-600 dark:text-blue-400"
|
|
13598
|
+
},
|
|
13599
|
+
{
|
|
13600
|
+
key: "sur",
|
|
13601
|
+
label: "",
|
|
13602
|
+
codes: ["BI", "LA", "AR", "LL"],
|
|
13603
|
+
gradient: "from-emerald-500/15 to-teal-500/10 dark:from-emerald-500/20 dark:to-teal-500/15",
|
|
13604
|
+
iconColor: "text-emerald-600 dark:text-emerald-400"
|
|
13605
|
+
},
|
|
13606
|
+
{
|
|
13607
|
+
key: "austral",
|
|
13608
|
+
label: "",
|
|
13609
|
+
codes: ["AI", "MA"],
|
|
13610
|
+
gradient: "from-cyan-500/15 to-sky-500/10 dark:from-cyan-500/20 dark:to-sky-500/15",
|
|
13611
|
+
iconColor: "text-cyan-600 dark:text-cyan-400"
|
|
13612
|
+
}
|
|
13613
|
+
];
|
|
13614
|
+
var getChileFlagUrl = (code) => getSubdivisionFlagUrl("CL", code);
|
|
13615
|
+
var getChileHexColor = (code) => getSubdivisionHexColor("CL", code);
|
|
13616
|
+
var getChilePalette = (code) => getSubdivisionPalette("CL", code);
|
|
13617
|
+
var getChileGradient = (code, direction) => getSubdivisionGradient("CL", code, direction);
|
|
13618
|
+
var getChileColors = (code) => getSubdivisionColors("CL", code);
|
|
13619
|
+
var getChileAccent = (code) => getSubdivisionAccent("CL", code);
|
|
13620
|
+
var isValidChileRegion = (code) => isValidSubdivision("CL", code);
|
|
13621
|
+
|
|
13622
|
+
// src/lib/themes/peru.ts
|
|
13623
|
+
var PERU_DEPARTMENT_PALETTES = {
|
|
13624
|
+
// Costa
|
|
13625
|
+
TU: { primary: "#006847", secondary: "#ffd700", text: "light" },
|
|
13626
|
+
PI: { primary: "#006847", secondary: "#c8102e", text: "light" },
|
|
13627
|
+
LB: { primary: "#c8102e", secondary: "#ffd700", text: "light" },
|
|
13628
|
+
LL: { primary: "#0038a8", secondary: "#ffd700", text: "light" },
|
|
13629
|
+
AN: { primary: "#c8102e", secondary: "#0038a8", text: "light" },
|
|
13630
|
+
LR: { primary: "#006847", secondary: "#f0f0f0", text: "light" },
|
|
13631
|
+
LP: { primary: "#c8102e", secondary: "#f0f0f0", text: "light" },
|
|
13632
|
+
CL: { primary: "#c8102e", secondary: "#006847", text: "light" },
|
|
13633
|
+
IC: { primary: "#c8102e", secondary: "#f0f0f0", text: "light" },
|
|
13634
|
+
AR: { primary: "#c8102e", secondary: "#0038a8", text: "light" },
|
|
13635
|
+
MQ: { primary: "#c8102e", secondary: "#006847", text: "light" },
|
|
13636
|
+
TA: { primary: "#006847", secondary: "#c8102e", text: "light" },
|
|
13637
|
+
// Sierra
|
|
13638
|
+
CJ: { primary: "#ffd700", secondary: "#006847", text: "dark" },
|
|
13639
|
+
HC: { primary: "#006847", secondary: "#c8102e", text: "light" },
|
|
13640
|
+
JU: { primary: "#006847", secondary: "#ffd700", text: "light" },
|
|
13641
|
+
HV: { primary: "#0038a8", secondary: "#c8102e", text: "light" },
|
|
13642
|
+
AY: { primary: "#c8102e", secondary: "#006847", text: "light" },
|
|
13643
|
+
AP: { primary: "#0038a8", secondary: "#f0f0f0", text: "light" },
|
|
13644
|
+
CS: { primary: "#c8102e", secondary: "#ffd700", text: "light" },
|
|
13645
|
+
PU: { primary: "#0038a8", secondary: "#c8102e", text: "light" },
|
|
13646
|
+
// Selva
|
|
13647
|
+
AM: { primary: "#006847", secondary: "#ffd700", text: "light" },
|
|
13648
|
+
SM: { primary: "#006847", secondary: "#c8102e", text: "light" },
|
|
13649
|
+
LO: { primary: "#006847", secondary: "#0038a8", text: "light" },
|
|
13650
|
+
UC: { primary: "#006847", secondary: "#c8102e", text: "light" },
|
|
13651
|
+
MD: { primary: "#006847", secondary: "#ffd700", text: "light" },
|
|
13652
|
+
PA: { primary: "#006847", secondary: "#0038a8", text: "light" }
|
|
13653
|
+
};
|
|
13654
|
+
var PERU_ACCENT_MAP = {
|
|
13655
|
+
TU: "green",
|
|
13656
|
+
PI: "green",
|
|
13657
|
+
LB: "red",
|
|
13658
|
+
LL: "blue",
|
|
13659
|
+
AN: "red",
|
|
13660
|
+
LR: "green",
|
|
13661
|
+
LP: "red",
|
|
13662
|
+
CL: "red",
|
|
13663
|
+
IC: "red",
|
|
13664
|
+
AR: "red",
|
|
13665
|
+
MQ: "red",
|
|
13666
|
+
TA: "green",
|
|
13667
|
+
CJ: "yellow",
|
|
13668
|
+
HC: "green",
|
|
13669
|
+
JU: "green",
|
|
13670
|
+
HV: "blue",
|
|
13671
|
+
AY: "red",
|
|
13672
|
+
AP: "blue",
|
|
13673
|
+
CS: "red",
|
|
13674
|
+
PU: "blue",
|
|
13675
|
+
AM: "green",
|
|
13676
|
+
SM: "green",
|
|
13677
|
+
LO: "green",
|
|
13678
|
+
UC: "green",
|
|
13679
|
+
MD: "green",
|
|
13680
|
+
PA: "green"
|
|
13681
|
+
};
|
|
13682
|
+
var VALID_CODES6 = Object.keys(PERU_DEPARTMENT_PALETTES);
|
|
13683
|
+
var PE_THEME_CONFIG = {
|
|
13684
|
+
palettes: PERU_DEPARTMENT_PALETTES,
|
|
13685
|
+
accents: PERU_ACCENT_MAP,
|
|
13686
|
+
flagUrlTemplate: (code) => VALID_CODES6.includes(code) ? `/flags/pe/${code}.svg` : null
|
|
13687
|
+
};
|
|
13688
|
+
var PERU_DEPARTMENT_COORDINATES = {
|
|
13689
|
+
// Costa
|
|
13690
|
+
TU: [-80.5, -3.5],
|
|
13691
|
+
PI: [-80, -5],
|
|
13692
|
+
LB: [-79.5, -6.8],
|
|
13693
|
+
LL: [-78.5, -8],
|
|
13694
|
+
AN: [-77.5, -9.5],
|
|
13695
|
+
LR: [-77, -11.5],
|
|
13696
|
+
LP: [-77, -12],
|
|
13697
|
+
CL: [-76.5, -13.5],
|
|
13698
|
+
IC: [-75.5, -14.5],
|
|
13699
|
+
AR: [-72, -16],
|
|
13700
|
+
MQ: [-71, -17.2],
|
|
13701
|
+
TA: [-70.3, -17.8],
|
|
13702
|
+
// Sierra
|
|
13703
|
+
CJ: [-78.5, -7],
|
|
13704
|
+
HC: [-76, -9.5],
|
|
13705
|
+
JU: [-75.5, -11.5],
|
|
13706
|
+
HV: [-75, -12.5],
|
|
13707
|
+
AY: [-74, -13.5],
|
|
13708
|
+
AP: [-73, -14],
|
|
13709
|
+
CS: [-72, -13.5],
|
|
13710
|
+
PU: [-70, -15],
|
|
13711
|
+
// Selva
|
|
13712
|
+
AM: [-78, -6],
|
|
13713
|
+
SM: [-77, -7],
|
|
13714
|
+
LO: [-75, -4.5],
|
|
13715
|
+
UC: [-75, -8.5],
|
|
13716
|
+
MD: [-70.5, -12],
|
|
13717
|
+
PA: [-75.5, -10]
|
|
13718
|
+
};
|
|
13719
|
+
var PERU_MAP_CENTER = [-75, -9.5];
|
|
13720
|
+
var PERU_MACRO_REGIONS = [
|
|
13721
|
+
{
|
|
13722
|
+
key: "costa",
|
|
13723
|
+
label: "",
|
|
13724
|
+
codes: ["TU", "PI", "LB", "LL", "AN", "LR", "LP", "CL", "IC", "AR", "MQ", "TA"],
|
|
13725
|
+
gradient: "from-orange-500/15 to-amber-500/10 dark:from-orange-500/20 dark:to-amber-500/15",
|
|
13726
|
+
iconColor: "text-orange-600 dark:text-orange-400"
|
|
13727
|
+
},
|
|
13728
|
+
{
|
|
13729
|
+
key: "sierra",
|
|
13730
|
+
label: "",
|
|
13731
|
+
codes: ["CJ", "HC", "JU", "HV", "AY", "AP", "CS", "PU"],
|
|
13732
|
+
gradient: "from-emerald-500/15 to-teal-500/10 dark:from-emerald-500/20 dark:to-teal-500/15",
|
|
13733
|
+
iconColor: "text-emerald-600 dark:text-emerald-400"
|
|
13734
|
+
},
|
|
13735
|
+
{
|
|
13736
|
+
key: "selva",
|
|
13737
|
+
label: "",
|
|
13738
|
+
codes: ["AM", "SM", "LO", "UC", "MD", "PA"],
|
|
13739
|
+
gradient: "from-cyan-500/15 to-sky-500/10 dark:from-cyan-500/20 dark:to-sky-500/15",
|
|
13740
|
+
iconColor: "text-cyan-600 dark:text-cyan-400"
|
|
13741
|
+
}
|
|
13742
|
+
];
|
|
13743
|
+
var getPeruFlagUrl = (code) => getSubdivisionFlagUrl("PE", code);
|
|
13744
|
+
var getPeruHexColor = (code) => getSubdivisionHexColor("PE", code);
|
|
13745
|
+
var getPeruPalette = (code) => getSubdivisionPalette("PE", code);
|
|
13746
|
+
var getPeruGradient = (code, direction) => getSubdivisionGradient("PE", code, direction);
|
|
13747
|
+
var getPeruColors = (code) => getSubdivisionColors("PE", code);
|
|
13748
|
+
var getPeruAccent = (code) => getSubdivisionAccent("PE", code);
|
|
13749
|
+
var isValidPeruDepartment = (code) => isValidSubdivision("PE", code);
|
|
13750
|
+
|
|
13751
|
+
// src/lib/themes/germany.ts
|
|
13752
|
+
var GERMANY_STATE_PALETTES = {
|
|
13753
|
+
NI: { primary: "#c8102e", secondary: "#f0f0f0", text: "light" },
|
|
13754
|
+
SH: { primary: "#003da5", secondary: "#c8102e", text: "light" },
|
|
13755
|
+
BE: { primary: "#c8102e", secondary: "#f0f0f0", text: "light" },
|
|
13756
|
+
MV: { primary: "#003da5", secondary: "#ffd700", text: "light" },
|
|
13757
|
+
HB: { primary: "#c8102e", secondary: "#f0f0f0", text: "light" },
|
|
13758
|
+
SL: { primary: "#000000", secondary: "#c8102e", text: "light" },
|
|
13759
|
+
BY: { primary: "#0080c9", secondary: "#f0f0f0", text: "light" },
|
|
13760
|
+
TH: { primary: "#c8102e", secondary: "#f0f0f0", text: "light" },
|
|
13761
|
+
ST: { primary: "#ffd700", secondary: "#009640", text: "dark" },
|
|
13762
|
+
SN: { primary: "#009640", secondary: "#f0f0f0", text: "light" },
|
|
13763
|
+
BB: { primary: "#c8102e", secondary: "#f0f0f0", text: "light" },
|
|
13764
|
+
NW: { primary: "#009640", secondary: "#c8102e", text: "light" },
|
|
13765
|
+
BW: { primary: "#000000", secondary: "#ffd700", text: "light" },
|
|
13766
|
+
HE: { primary: "#c8102e", secondary: "#f0f0f0", text: "light" },
|
|
13767
|
+
HH: { primary: "#c8102e", secondary: "#f0f0f0", text: "light" },
|
|
13768
|
+
RP: { primary: "#000000", secondary: "#c8102e", text: "light" }
|
|
13769
|
+
};
|
|
13770
|
+
var GERMANY_ACCENT_MAP = {
|
|
13771
|
+
NI: "red",
|
|
13772
|
+
SH: "blue",
|
|
13773
|
+
BE: "red",
|
|
13774
|
+
MV: "blue",
|
|
13775
|
+
HB: "red",
|
|
13776
|
+
SL: "slate",
|
|
13777
|
+
BY: "sky",
|
|
13778
|
+
TH: "red",
|
|
13779
|
+
ST: "yellow",
|
|
13780
|
+
SN: "green",
|
|
13781
|
+
BB: "red",
|
|
13782
|
+
NW: "green",
|
|
13783
|
+
BW: "amber",
|
|
13784
|
+
HE: "red",
|
|
13785
|
+
HH: "red",
|
|
13786
|
+
RP: "slate"
|
|
13787
|
+
};
|
|
13788
|
+
var VALID_CODES7 = Object.keys(GERMANY_STATE_PALETTES);
|
|
13789
|
+
var DE_THEME_CONFIG = {
|
|
13790
|
+
palettes: GERMANY_STATE_PALETTES,
|
|
13791
|
+
accents: GERMANY_ACCENT_MAP,
|
|
13792
|
+
flagUrlTemplate: (code) => VALID_CODES7.includes(code) ? `/flags/de/${code}.svg` : null
|
|
13793
|
+
};
|
|
13794
|
+
var GERMANY_STATE_COORDINATES = {
|
|
13795
|
+
NI: [9.8, 52.6],
|
|
13796
|
+
SH: [9.8, 54.2],
|
|
13797
|
+
BE: [13.4, 52.5],
|
|
13798
|
+
MV: [12.4, 53.9],
|
|
13799
|
+
HB: [8.8, 53.1],
|
|
13800
|
+
SL: [6.9, 49.4],
|
|
13801
|
+
BY: [11.5, 48.8],
|
|
13802
|
+
TH: [11, 50.9],
|
|
13803
|
+
ST: [11.7, 51.9],
|
|
13804
|
+
SN: [13.4, 51],
|
|
13805
|
+
BB: [13.4, 52.1],
|
|
13806
|
+
NW: [7.5, 51.4],
|
|
13807
|
+
BW: [9, 48.5],
|
|
13808
|
+
HE: [9, 50.6],
|
|
13809
|
+
HH: [10, 53.6],
|
|
13810
|
+
RP: [7.3, 49.9]
|
|
13811
|
+
};
|
|
13812
|
+
var GERMANY_MAP_CENTER = [10.4, 51.2];
|
|
13813
|
+
var GERMANY_MACRO_REGIONS = [
|
|
13814
|
+
{
|
|
13815
|
+
key: "nord",
|
|
13816
|
+
label: "",
|
|
13817
|
+
codes: ["NI", "SH", "HH", "HB", "MV"],
|
|
13818
|
+
gradient: "from-sky-500/15 to-blue-500/10 dark:from-sky-500/20 dark:to-blue-500/15",
|
|
13819
|
+
iconColor: "text-sky-600 dark:text-sky-400"
|
|
13820
|
+
},
|
|
13821
|
+
{
|
|
13822
|
+
key: "ost",
|
|
13823
|
+
label: "",
|
|
13824
|
+
codes: ["BE", "BB", "SN", "ST", "TH"],
|
|
13825
|
+
gradient: "from-rose-500/15 to-red-500/10 dark:from-rose-500/20 dark:to-red-500/15",
|
|
13826
|
+
iconColor: "text-rose-600 dark:text-rose-400"
|
|
13827
|
+
},
|
|
13828
|
+
{
|
|
13829
|
+
key: "west",
|
|
13830
|
+
label: "",
|
|
13831
|
+
codes: ["NW", "HE", "RP", "SL"],
|
|
13832
|
+
gradient: "from-emerald-500/15 to-teal-500/10 dark:from-emerald-500/20 dark:to-teal-500/15",
|
|
13833
|
+
iconColor: "text-emerald-600 dark:text-emerald-400"
|
|
13834
|
+
},
|
|
13835
|
+
{
|
|
13836
|
+
key: "sued",
|
|
13837
|
+
label: "",
|
|
13838
|
+
codes: ["BY", "BW"],
|
|
13839
|
+
gradient: "from-amber-500/15 to-yellow-500/10 dark:from-amber-500/20 dark:to-yellow-500/15",
|
|
13840
|
+
iconColor: "text-amber-600 dark:text-amber-400"
|
|
13841
|
+
}
|
|
13842
|
+
];
|
|
13843
|
+
var getGermanyFlagUrl = (code) => getSubdivisionFlagUrl("DE", code);
|
|
13844
|
+
var getGermanyHexColor = (code) => getSubdivisionHexColor("DE", code);
|
|
13845
|
+
var getGermanyPalette = (code) => getSubdivisionPalette("DE", code);
|
|
13846
|
+
var getGermanyGradient = (code, direction) => getSubdivisionGradient("DE", code, direction);
|
|
13847
|
+
var getGermanyColors = (code) => getSubdivisionColors("DE", code);
|
|
13848
|
+
var getGermanyAccent = (code) => getSubdivisionAccent("DE", code);
|
|
13849
|
+
var isValidGermanyState = (code) => isValidSubdivision("DE", code);
|
|
13850
|
+
|
|
13851
|
+
// src/lib/themes/france.ts
|
|
13852
|
+
var FRANCE_REGION_PALETTES = {
|
|
13853
|
+
CO: { primary: "#000000", secondary: "#f0f0f0", text: "light" },
|
|
13854
|
+
BR: { primary: "#000000", secondary: "#f0f0f0", text: "light" },
|
|
13855
|
+
PD: { primary: "#c8102e", secondary: "#f0f0f0", text: "light" },
|
|
13856
|
+
PA: { primary: "#003da5", secondary: "#ffd700", text: "light" },
|
|
13857
|
+
OC: { primary: "#c8102e", secondary: "#ffd700", text: "light" },
|
|
13858
|
+
NA: { primary: "#c8102e", secondary: "#003da5", text: "light" },
|
|
13859
|
+
BF: { primary: "#003da5", secondary: "#ffd700", text: "light" },
|
|
13860
|
+
CV: { primary: "#003da5", secondary: "#c8102e", text: "light" },
|
|
13861
|
+
ID: { primary: "#003da5", secondary: "#c8102e", text: "light" },
|
|
13862
|
+
HD: { primary: "#ffd700", secondary: "#003da5", text: "dark" },
|
|
13863
|
+
AR: { primary: "#c8102e", secondary: "#003da5", text: "light" },
|
|
13864
|
+
GE: { primary: "#003da5", secondary: "#f0f0f0", text: "light" },
|
|
13865
|
+
NO: { primary: "#c8102e", secondary: "#ffd700", text: "light" }
|
|
13866
|
+
};
|
|
13867
|
+
var FRANCE_ACCENT_MAP = {
|
|
13868
|
+
CO: "slate",
|
|
13869
|
+
BR: "slate",
|
|
13870
|
+
PD: "red",
|
|
13871
|
+
PA: "blue",
|
|
13872
|
+
OC: "rose",
|
|
13873
|
+
NA: "red",
|
|
13874
|
+
BF: "blue",
|
|
13875
|
+
CV: "indigo",
|
|
13876
|
+
ID: "blue",
|
|
13877
|
+
HD: "yellow",
|
|
13878
|
+
AR: "red",
|
|
13879
|
+
GE: "blue",
|
|
13880
|
+
NO: "orange"
|
|
13881
|
+
};
|
|
13882
|
+
var VALID_CODES8 = Object.keys(FRANCE_REGION_PALETTES);
|
|
13883
|
+
var FR_THEME_CONFIG = {
|
|
13884
|
+
palettes: FRANCE_REGION_PALETTES,
|
|
13885
|
+
accents: FRANCE_ACCENT_MAP,
|
|
13886
|
+
flagUrlTemplate: (code) => VALID_CODES8.includes(code) ? `/flags/fr/${code}.svg` : null
|
|
13887
|
+
};
|
|
13888
|
+
var FRANCE_REGION_COORDINATES = {
|
|
13889
|
+
CO: [9.1, 42.2],
|
|
13890
|
+
BR: [-3, 48.2],
|
|
13891
|
+
PD: [-0.9, 47.3],
|
|
13892
|
+
PA: [5.8, 43.9],
|
|
13893
|
+
OC: [2, 43.6],
|
|
13894
|
+
NA: [0.3, 45.7],
|
|
13895
|
+
BF: [4.6, 47],
|
|
13896
|
+
CV: [1.7, 47.6],
|
|
13897
|
+
ID: [2.5, 48.8],
|
|
13898
|
+
HD: [2.8, 49.9],
|
|
13899
|
+
AR: [4.5, 45.7],
|
|
13900
|
+
GE: [5.7, 48.6],
|
|
13901
|
+
NO: [0.1, 49.1]
|
|
13902
|
+
};
|
|
13903
|
+
var FRANCE_MAP_CENTER = [2.5, 46.5];
|
|
13904
|
+
var FRANCE_MACRO_REGIONS = [
|
|
13905
|
+
{
|
|
13906
|
+
key: "nord",
|
|
13907
|
+
label: "",
|
|
13908
|
+
codes: ["HD", "NO", "ID", "GE"],
|
|
13909
|
+
gradient: "from-blue-500/15 to-indigo-500/10 dark:from-blue-500/20 dark:to-indigo-500/15",
|
|
13910
|
+
iconColor: "text-blue-600 dark:text-blue-400"
|
|
13911
|
+
},
|
|
13912
|
+
{
|
|
13913
|
+
key: "ouest",
|
|
13914
|
+
label: "",
|
|
13915
|
+
codes: ["BR", "PD", "NA"],
|
|
13916
|
+
gradient: "from-emerald-500/15 to-teal-500/10 dark:from-emerald-500/20 dark:to-teal-500/15",
|
|
13917
|
+
iconColor: "text-emerald-600 dark:text-emerald-400"
|
|
13918
|
+
},
|
|
13919
|
+
{
|
|
13920
|
+
key: "centre",
|
|
13921
|
+
label: "",
|
|
13922
|
+
codes: ["CV", "BF"],
|
|
13923
|
+
gradient: "from-violet-500/15 to-purple-500/10 dark:from-violet-500/20 dark:to-purple-500/15",
|
|
13924
|
+
iconColor: "text-violet-600 dark:text-violet-400"
|
|
13925
|
+
},
|
|
13926
|
+
{
|
|
13927
|
+
key: "sud",
|
|
13928
|
+
label: "",
|
|
13929
|
+
codes: ["PA", "OC", "CO"],
|
|
13930
|
+
gradient: "from-orange-500/15 to-amber-500/10 dark:from-orange-500/20 dark:to-amber-500/15",
|
|
13931
|
+
iconColor: "text-orange-600 dark:text-orange-400"
|
|
13932
|
+
},
|
|
13933
|
+
{
|
|
13934
|
+
key: "est",
|
|
13935
|
+
label: "",
|
|
13936
|
+
codes: ["AR", "GE"],
|
|
13937
|
+
gradient: "from-rose-500/15 to-pink-500/10 dark:from-rose-500/20 dark:to-pink-500/15",
|
|
13938
|
+
iconColor: "text-rose-600 dark:text-rose-400"
|
|
13939
|
+
}
|
|
13940
|
+
];
|
|
13941
|
+
var getFranceFlagUrl = (code) => getSubdivisionFlagUrl("FR", code);
|
|
13942
|
+
var getFranceHexColor = (code) => getSubdivisionHexColor("FR", code);
|
|
13943
|
+
var getFrancePalette = (code) => getSubdivisionPalette("FR", code);
|
|
13944
|
+
var getFranceGradient = (code, direction) => getSubdivisionGradient("FR", code, direction);
|
|
13945
|
+
var getFranceColors = (code) => getSubdivisionColors("FR", code);
|
|
13946
|
+
var getFranceAccent = (code) => getSubdivisionAccent("FR", code);
|
|
13947
|
+
var isValidFranceRegion = (code) => isValidSubdivision("FR", code);
|
|
13948
|
+
|
|
13949
|
+
// src/lib/themes/spain.ts
|
|
13950
|
+
var SPAIN_PROVINCE_PALETTES = {
|
|
13951
|
+
// Islas Baleares
|
|
13952
|
+
PM: { primary: "#6b2fa0", secondary: "#ffd700", text: "light" },
|
|
13953
|
+
// Comunidad Valenciana
|
|
13954
|
+
VA: { primary: "#c8102e", secondary: "#ffd700", text: "light" },
|
|
13955
|
+
// Castilla y Leon
|
|
13956
|
+
LE: { primary: "#6b2fa0", secondary: "#f0f0f0", text: "light" },
|
|
13957
|
+
// Melilla
|
|
13958
|
+
ME: { primary: "#003da5", secondary: "#f0f0f0", text: "light" },
|
|
13959
|
+
// Palencia
|
|
13960
|
+
P: { primary: "#c8102e", secondary: "#003da5", text: "light" },
|
|
13961
|
+
// Cantabria
|
|
13962
|
+
S: { primary: "#c8102e", secondary: "#f0f0f0", text: "light" },
|
|
13963
|
+
// Navarra
|
|
13964
|
+
NA: { primary: "#c8102e", secondary: "#ffd700", text: "light" },
|
|
13965
|
+
// Ceuta
|
|
13966
|
+
CE: { primary: "#000000", secondary: "#f0f0f0", text: "light" },
|
|
13967
|
+
// Cuenca
|
|
13968
|
+
CU: { primary: "#c8102e", secondary: "#ffd700", text: "light" },
|
|
13969
|
+
// Alava
|
|
13970
|
+
VI: { primary: "#c8102e", secondary: "#009640", text: "light" },
|
|
13971
|
+
// Guipuzcoa
|
|
13972
|
+
SS: { primary: "#c8102e", secondary: "#f0f0f0", text: "light" },
|
|
13973
|
+
// Granada
|
|
13974
|
+
GR: { primary: "#c8102e", secondary: "#009640", text: "light" },
|
|
13975
|
+
// Murcia
|
|
13976
|
+
MU: { primary: "#c8102e", secondary: "#ffd700", text: "light" },
|
|
13977
|
+
// Burgos
|
|
13978
|
+
BU: { primary: "#c8102e", secondary: "#003da5", text: "light" },
|
|
13979
|
+
// Salamanca
|
|
13980
|
+
SA: { primary: "#c8102e", secondary: "#f0f0f0", text: "light" },
|
|
13981
|
+
// Zamora
|
|
13982
|
+
ZA: { primary: "#c8102e", secondary: "#009640", text: "light" },
|
|
13983
|
+
// Huesca
|
|
13984
|
+
HU: { primary: "#c8102e", secondary: "#ffd700", text: "light" },
|
|
13985
|
+
// Madrid
|
|
13986
|
+
M: { primary: "#c8102e", secondary: "#003da5", text: "light" },
|
|
13987
|
+
// Guadalajara
|
|
13988
|
+
GU: { primary: "#6b2fa0", secondary: "#ffd700", text: "light" },
|
|
13989
|
+
// Segovia
|
|
13990
|
+
SG: { primary: "#c8102e", secondary: "#ffd700", text: "light" },
|
|
13991
|
+
// Sevilla
|
|
13992
|
+
SE: { primary: "#c8102e", secondary: "#ffd700", text: "light" },
|
|
13993
|
+
// Tarragona
|
|
13994
|
+
T: { primary: "#ffd700", secondary: "#c8102e", text: "dark" },
|
|
13995
|
+
// Teruel
|
|
13996
|
+
TE: { primary: "#c8102e", secondary: "#009640", text: "light" },
|
|
13997
|
+
// Valencia
|
|
13998
|
+
V: { primary: "#c8102e", secondary: "#ffd700", text: "light" },
|
|
13999
|
+
// Vizcaya
|
|
14000
|
+
BI: { primary: "#c8102e", secondary: "#f0f0f0", text: "light" },
|
|
14001
|
+
// Orense
|
|
14002
|
+
OR: { primary: "#003da5", secondary: "#f0f0f0", text: "light" },
|
|
14003
|
+
// Lerida
|
|
14004
|
+
L: { primary: "#ffd700", secondary: "#c8102e", text: "dark" },
|
|
14005
|
+
// Zaragoza
|
|
14006
|
+
Z: { primary: "#ffd700", secondary: "#c8102e", text: "dark" },
|
|
14007
|
+
// Girona
|
|
14008
|
+
GI: { primary: "#ffd700", secondary: "#c8102e", text: "dark" },
|
|
14009
|
+
// Albacete
|
|
14010
|
+
AB: { primary: "#c8102e", secondary: "#ffd700", text: "light" },
|
|
14011
|
+
// Alicante
|
|
14012
|
+
A: { primary: "#003da5", secondary: "#f0f0f0", text: "light" },
|
|
14013
|
+
// Avila
|
|
14014
|
+
AV: { primary: "#c8102e", secondary: "#003da5", text: "light" },
|
|
14015
|
+
// Caceres
|
|
14016
|
+
CC: { primary: "#009640", secondary: "#f0f0f0", text: "light" },
|
|
14017
|
+
// Toledo
|
|
14018
|
+
TO: { primary: "#c8102e", secondary: "#ffd700", text: "light" },
|
|
14019
|
+
// Badajoz
|
|
14020
|
+
BA: { primary: "#009640", secondary: "#f0f0f0", text: "light" },
|
|
14021
|
+
// Cordoba
|
|
14022
|
+
CO: { primary: "#c8102e", secondary: "#ffd700", text: "light" },
|
|
14023
|
+
// Huelva
|
|
14024
|
+
H: { primary: "#009640", secondary: "#f0f0f0", text: "light" },
|
|
14025
|
+
// A Coruna
|
|
14026
|
+
C: { primary: "#003da5", secondary: "#f0f0f0", text: "light" },
|
|
14027
|
+
// Malaga
|
|
14028
|
+
MA: { primary: "#6b2fa0", secondary: "#009640", text: "light" },
|
|
14029
|
+
// Pontevedra
|
|
14030
|
+
PO: { primary: "#003da5", secondary: "#f0f0f0", text: "light" },
|
|
14031
|
+
// La Rioja
|
|
14032
|
+
LO: { primary: "#c8102e", secondary: "#009640", text: "light" },
|
|
14033
|
+
// Soria
|
|
14034
|
+
SO: { primary: "#c8102e", secondary: "#f0f0f0", text: "light" },
|
|
14035
|
+
// Almeria
|
|
14036
|
+
AL: { primary: "#c8102e", secondary: "#009640", text: "light" },
|
|
14037
|
+
// Barcelona
|
|
14038
|
+
B: { primary: "#ffd700", secondary: "#c8102e", text: "dark" },
|
|
14039
|
+
// Cadiz
|
|
14040
|
+
CA: { primary: "#003da5", secondary: "#f0f0f0", text: "light" },
|
|
14041
|
+
// Asturias
|
|
14042
|
+
O: { primary: "#003da5", secondary: "#ffd700", text: "light" },
|
|
14043
|
+
// Castellon
|
|
14044
|
+
CS: { primary: "#c8102e", secondary: "#ffd700", text: "light" },
|
|
14045
|
+
// Ciudad Real
|
|
14046
|
+
CR: { primary: "#c8102e", secondary: "#f0f0f0", text: "light" },
|
|
14047
|
+
// Jaen
|
|
14048
|
+
J: { primary: "#6b2fa0", secondary: "#ffd700", text: "light" },
|
|
14049
|
+
// Lugo
|
|
14050
|
+
LU: { primary: "#003da5", secondary: "#f0f0f0", text: "light" },
|
|
14051
|
+
// Tenerife
|
|
14052
|
+
TF: { primary: "#003da5", secondary: "#ffd700", text: "light" },
|
|
14053
|
+
// Gran Canaria
|
|
14054
|
+
GC: { primary: "#ffd700", secondary: "#003da5", text: "dark" }
|
|
14055
|
+
};
|
|
14056
|
+
var SPAIN_ACCENT_MAP = {
|
|
14057
|
+
PM: "purple",
|
|
14058
|
+
VA: "red",
|
|
14059
|
+
LE: "purple",
|
|
14060
|
+
ME: "blue",
|
|
14061
|
+
P: "red",
|
|
14062
|
+
S: "red",
|
|
14063
|
+
NA: "red",
|
|
14064
|
+
CE: "slate",
|
|
14065
|
+
CU: "red",
|
|
14066
|
+
VI: "green",
|
|
14067
|
+
SS: "red",
|
|
14068
|
+
GR: "green",
|
|
14069
|
+
MU: "amber",
|
|
14070
|
+
BU: "red",
|
|
14071
|
+
SA: "red",
|
|
14072
|
+
ZA: "green",
|
|
14073
|
+
HU: "red",
|
|
14074
|
+
M: "red",
|
|
14075
|
+
GU: "purple",
|
|
14076
|
+
SG: "amber",
|
|
14077
|
+
SE: "amber",
|
|
14078
|
+
T: "yellow",
|
|
14079
|
+
TE: "green",
|
|
14080
|
+
V: "orange",
|
|
14081
|
+
BI: "red",
|
|
14082
|
+
OR: "blue",
|
|
14083
|
+
L: "yellow",
|
|
14084
|
+
Z: "yellow",
|
|
14085
|
+
GI: "yellow",
|
|
14086
|
+
AB: "red",
|
|
14087
|
+
A: "blue",
|
|
14088
|
+
AV: "indigo",
|
|
14089
|
+
CC: "green",
|
|
14090
|
+
TO: "red",
|
|
14091
|
+
BA: "green",
|
|
14092
|
+
CO: "red",
|
|
14093
|
+
H: "green",
|
|
14094
|
+
C: "blue",
|
|
14095
|
+
MA: "purple",
|
|
14096
|
+
PO: "blue",
|
|
14097
|
+
LO: "rose",
|
|
14098
|
+
SO: "red",
|
|
14099
|
+
AL: "green",
|
|
14100
|
+
B: "yellow",
|
|
14101
|
+
CA: "blue",
|
|
14102
|
+
O: "blue",
|
|
14103
|
+
CS: "orange",
|
|
14104
|
+
CR: "red",
|
|
14105
|
+
J: "purple",
|
|
14106
|
+
LU: "blue",
|
|
14107
|
+
TF: "blue",
|
|
14108
|
+
GC: "yellow"
|
|
14109
|
+
};
|
|
14110
|
+
var VALID_CODES9 = Object.keys(SPAIN_PROVINCE_PALETTES);
|
|
14111
|
+
var ES_THEME_CONFIG = {
|
|
14112
|
+
palettes: SPAIN_PROVINCE_PALETTES,
|
|
14113
|
+
accents: SPAIN_ACCENT_MAP,
|
|
14114
|
+
flagUrlTemplate: (code) => VALID_CODES9.includes(code) ? `/flags/es/${code}.svg` : null
|
|
14115
|
+
};
|
|
14116
|
+
var SPAIN_PROVINCE_COORDINATES = {
|
|
14117
|
+
PM: [2.9, 39.6],
|
|
14118
|
+
VA: [-0.4, 39.5],
|
|
14119
|
+
LE: [-5.6, 42.6],
|
|
14120
|
+
ME: [-2.9, 35.3],
|
|
14121
|
+
P: [-4.5, 42],
|
|
14122
|
+
S: [-4, 43.2],
|
|
14123
|
+
NA: [-1.6, 42.8],
|
|
14124
|
+
CE: [-5.3, 35.9],
|
|
14125
|
+
CU: [-2.1, 40.1],
|
|
14126
|
+
VI: [-2.7, 42.8],
|
|
14127
|
+
SS: [-2, 43.3],
|
|
14128
|
+
GR: [-3.6, 37.2],
|
|
14129
|
+
MU: [-1.1, 37.9],
|
|
14130
|
+
BU: [-3.7, 42.3],
|
|
14131
|
+
SA: [-5.7, 40.9],
|
|
14132
|
+
ZA: [-5.7, 41.5],
|
|
14133
|
+
HU: [-0.4, 42.1],
|
|
14134
|
+
M: [-3.7, 40.4],
|
|
14135
|
+
GU: [-3.2, 40.6],
|
|
14136
|
+
SG: [-4.1, 41],
|
|
14137
|
+
SE: [-5.9, 37.4],
|
|
14138
|
+
T: [1.2, 41.1],
|
|
14139
|
+
TE: [-1.1, 40.3],
|
|
14140
|
+
V: [-0.4, 39.5],
|
|
14141
|
+
BI: [-2.9, 43.3],
|
|
14142
|
+
OR: [-7.9, 42.3],
|
|
14143
|
+
L: [0.6, 41.6],
|
|
14144
|
+
Z: [-0.9, 41.7],
|
|
14145
|
+
GI: [2.8, 42],
|
|
14146
|
+
AB: [-2, 38.9],
|
|
14147
|
+
A: [-0.5, 38.3],
|
|
14148
|
+
AV: [-5, 40.7],
|
|
14149
|
+
CC: [-6.4, 39.5],
|
|
14150
|
+
TO: [-4, 39.9],
|
|
14151
|
+
BA: [-6.9, 38.9],
|
|
14152
|
+
CO: [-4.8, 37.9],
|
|
14153
|
+
H: [-6.9, 37.3],
|
|
14154
|
+
C: [-8.4, 43.4],
|
|
14155
|
+
MA: [-4.4, 36.7],
|
|
14156
|
+
PO: [-8.6, 42.4],
|
|
14157
|
+
LO: [-2.4, 42.5],
|
|
14158
|
+
SO: [-2.5, 41.8],
|
|
14159
|
+
AL: [-2.5, 36.8],
|
|
14160
|
+
B: [2.2, 41.4],
|
|
14161
|
+
CA: [-6.3, 36.5],
|
|
14162
|
+
O: [-5.8, 43.4],
|
|
14163
|
+
CS: [-0.1, 40],
|
|
14164
|
+
CR: [-3.9, 38.9],
|
|
14165
|
+
J: [-3.8, 37.8],
|
|
14166
|
+
LU: [-7.6, 43],
|
|
14167
|
+
TF: [-16.5, 28.5],
|
|
14168
|
+
GC: [-15.4, 28.1]
|
|
14169
|
+
};
|
|
14170
|
+
var SPAIN_MAP_CENTER = [-3.7, 40];
|
|
14171
|
+
var SPAIN_MACRO_REGIONS = [
|
|
14172
|
+
{
|
|
14173
|
+
key: "norte",
|
|
14174
|
+
label: "",
|
|
14175
|
+
codes: ["S", "BI", "SS", "VI", "NA", "LO", "O"],
|
|
14176
|
+
gradient: "from-emerald-500/15 to-teal-500/10 dark:from-emerald-500/20 dark:to-teal-500/15",
|
|
14177
|
+
iconColor: "text-emerald-600 dark:text-emerald-400"
|
|
14178
|
+
},
|
|
14179
|
+
{
|
|
14180
|
+
key: "noreste",
|
|
14181
|
+
label: "",
|
|
14182
|
+
codes: ["B", "GI", "L", "T", "HU", "Z", "TE"],
|
|
14183
|
+
gradient: "from-amber-500/15 to-yellow-500/10 dark:from-amber-500/20 dark:to-yellow-500/15",
|
|
14184
|
+
iconColor: "text-amber-600 dark:text-amber-400"
|
|
14185
|
+
},
|
|
14186
|
+
{
|
|
14187
|
+
key: "centro",
|
|
14188
|
+
label: "",
|
|
14189
|
+
codes: ["M", "GU", "SG", "AV", "CU", "TO", "CR", "AB"],
|
|
14190
|
+
gradient: "from-red-500/15 to-rose-500/10 dark:from-red-500/20 dark:to-rose-500/15",
|
|
14191
|
+
iconColor: "text-red-600 dark:text-red-400"
|
|
14192
|
+
},
|
|
14193
|
+
{
|
|
14194
|
+
key: "este",
|
|
14195
|
+
label: "",
|
|
14196
|
+
codes: ["V", "A", "CS", "MU"],
|
|
14197
|
+
gradient: "from-orange-500/15 to-amber-500/10 dark:from-orange-500/20 dark:to-amber-500/15",
|
|
14198
|
+
iconColor: "text-orange-600 dark:text-orange-400"
|
|
14199
|
+
},
|
|
14200
|
+
{
|
|
14201
|
+
key: "sur",
|
|
14202
|
+
label: "",
|
|
14203
|
+
codes: ["SE", "CA", "CO", "MA", "GR", "AL", "H", "J"],
|
|
14204
|
+
gradient: "from-blue-500/15 to-indigo-500/10 dark:from-blue-500/20 dark:to-indigo-500/15",
|
|
14205
|
+
iconColor: "text-blue-600 dark:text-blue-400"
|
|
14206
|
+
},
|
|
14207
|
+
{
|
|
14208
|
+
key: "suroeste",
|
|
14209
|
+
label: "",
|
|
14210
|
+
codes: ["CC", "BA"],
|
|
14211
|
+
gradient: "from-green-500/15 to-emerald-500/10 dark:from-green-500/20 dark:to-emerald-500/15",
|
|
14212
|
+
iconColor: "text-green-600 dark:text-green-400"
|
|
14213
|
+
},
|
|
14214
|
+
{
|
|
14215
|
+
key: "islas",
|
|
14216
|
+
label: "",
|
|
14217
|
+
codes: ["PM", "TF", "GC"],
|
|
14218
|
+
gradient: "from-purple-500/15 to-fuchsia-500/10 dark:from-purple-500/20 dark:to-fuchsia-500/15",
|
|
14219
|
+
iconColor: "text-purple-600 dark:text-purple-400"
|
|
14220
|
+
},
|
|
14221
|
+
{
|
|
14222
|
+
key: "ciudades",
|
|
14223
|
+
label: "",
|
|
14224
|
+
codes: ["CE", "ME"],
|
|
14225
|
+
gradient: "from-slate-500/15 to-gray-500/10 dark:from-slate-500/20 dark:to-gray-500/15",
|
|
14226
|
+
iconColor: "text-slate-600 dark:text-slate-400"
|
|
14227
|
+
}
|
|
14228
|
+
];
|
|
14229
|
+
var getSpainFlagUrl = (code) => getSubdivisionFlagUrl("ES", code);
|
|
14230
|
+
var getSpainHexColor = (code) => getSubdivisionHexColor("ES", code);
|
|
14231
|
+
var getSpainPalette = (code) => getSubdivisionPalette("ES", code);
|
|
14232
|
+
var getSpainGradient = (code, direction) => getSubdivisionGradient("ES", code, direction);
|
|
14233
|
+
var getSpainColors = (code) => getSubdivisionColors("ES", code);
|
|
14234
|
+
var getSpainAccent = (code) => getSubdivisionAccent("ES", code);
|
|
14235
|
+
var isValidSpainProvince = (code) => isValidSubdivision("ES", code);
|
|
14236
|
+
|
|
14237
|
+
// src/lib/themes/italy.ts
|
|
14238
|
+
var ITALY_REGION_PALETTES = {
|
|
14239
|
+
SI: { primary: "#c8102e", secondary: "#ffd700", text: "light" },
|
|
14240
|
+
PU: { primary: "#c8102e", secondary: "#009640", text: "light" },
|
|
14241
|
+
BA: { primary: "#c8102e", secondary: "#009640", text: "light" },
|
|
14242
|
+
CA: { primary: "#c8102e", secondary: "#ffd700", text: "light" },
|
|
14243
|
+
LA: { primary: "#003da5", secondary: "#ffd700", text: "light" },
|
|
14244
|
+
MO: { primary: "#c8102e", secondary: "#003da5", text: "light" },
|
|
14245
|
+
TO: { primary: "#009640", secondary: "#c8102e", text: "light" },
|
|
14246
|
+
UM: { primary: "#c8102e", secondary: "#f0f0f0", text: "light" },
|
|
14247
|
+
EM: { primary: "#009640", secondary: "#f0f0f0", text: "light" },
|
|
14248
|
+
VE: { primary: "#003da5", secondary: "#ffd700", text: "light" },
|
|
14249
|
+
PI: { primary: "#009640", secondary: "#c8102e", text: "light" },
|
|
14250
|
+
LO: { primary: "#009640", secondary: "#f0f0f0", text: "light" },
|
|
14251
|
+
VD: { primary: "#c8102e", secondary: "#f0f0f0", text: "light" },
|
|
14252
|
+
TA: { primary: "#003da5", secondary: "#f0f0f0", text: "light" },
|
|
14253
|
+
MA: { primary: "#009640", secondary: "#f0f0f0", text: "light" },
|
|
14254
|
+
AB: { primary: "#003da5", secondary: "#009640", text: "light" },
|
|
14255
|
+
FG: { primary: "#003da5", secondary: "#c8102e", text: "light" },
|
|
14256
|
+
LI: { primary: "#003da5", secondary: "#c8102e", text: "light" },
|
|
14257
|
+
CL: { primary: "#c8102e", secondary: "#ffd700", text: "light" },
|
|
14258
|
+
SA: { primary: "#003da5", secondary: "#ffd700", text: "light" }
|
|
14259
|
+
};
|
|
14260
|
+
var ITALY_ACCENT_MAP = {
|
|
14261
|
+
SI: "red",
|
|
14262
|
+
PU: "rose",
|
|
14263
|
+
BA: "red",
|
|
14264
|
+
CA: "amber",
|
|
14265
|
+
LA: "blue",
|
|
14266
|
+
MO: "red",
|
|
14267
|
+
TO: "green",
|
|
14268
|
+
UM: "red",
|
|
14269
|
+
EM: "green",
|
|
14270
|
+
VE: "blue",
|
|
14271
|
+
PI: "emerald",
|
|
14272
|
+
LO: "green",
|
|
14273
|
+
VD: "red",
|
|
14274
|
+
TA: "blue",
|
|
14275
|
+
MA: "green",
|
|
14276
|
+
AB: "indigo",
|
|
14277
|
+
FG: "blue",
|
|
14278
|
+
LI: "sky",
|
|
14279
|
+
CL: "amber",
|
|
14280
|
+
SA: "blue"
|
|
14281
|
+
};
|
|
14282
|
+
var VALID_CODES10 = Object.keys(ITALY_REGION_PALETTES);
|
|
14283
|
+
var IT_THEME_CONFIG = {
|
|
14284
|
+
palettes: ITALY_REGION_PALETTES,
|
|
14285
|
+
accents: ITALY_ACCENT_MAP,
|
|
14286
|
+
flagUrlTemplate: (code) => VALID_CODES10.includes(code) ? `/flags/it/${code}.svg` : null
|
|
14287
|
+
};
|
|
14288
|
+
var ITALY_REGION_COORDINATES = {
|
|
14289
|
+
SI: [14.2, 37.6],
|
|
14290
|
+
PU: [16.5, 40.5],
|
|
14291
|
+
BA: [16.9, 39.3],
|
|
14292
|
+
CA: [9.1, 39.2],
|
|
14293
|
+
LA: [13.3, 41.7],
|
|
14294
|
+
MO: [14.8, 41.6],
|
|
14295
|
+
TO: [11.8, 43.4],
|
|
14296
|
+
UM: [12.6, 42.7],
|
|
14297
|
+
EM: [11.3, 44.5],
|
|
14298
|
+
VE: [12, 45.7],
|
|
14299
|
+
PI: [8, 44.7],
|
|
14300
|
+
LO: [9.9, 45.5],
|
|
14301
|
+
VD: [7.7, 45.7],
|
|
14302
|
+
TA: [11.3, 46.5],
|
|
14303
|
+
MA: [13.2, 43.3],
|
|
14304
|
+
AB: [13.6, 42.2],
|
|
14305
|
+
FG: [13.1, 46.1],
|
|
14306
|
+
LI: [8.4, 44.1],
|
|
14307
|
+
CL: [16.3, 39],
|
|
14308
|
+
SA: [9, 40.1]
|
|
14309
|
+
};
|
|
14310
|
+
var ITALY_MAP_CENTER = [12.5, 42.5];
|
|
14311
|
+
var ITALY_MACRO_REGIONS = [
|
|
14312
|
+
{
|
|
14313
|
+
key: "nord-ovest",
|
|
14314
|
+
label: "",
|
|
14315
|
+
codes: ["PI", "LO", "LI", "VD"],
|
|
14316
|
+
gradient: "from-emerald-500/15 to-teal-500/10 dark:from-emerald-500/20 dark:to-teal-500/15",
|
|
14317
|
+
iconColor: "text-emerald-600 dark:text-emerald-400"
|
|
14318
|
+
},
|
|
14319
|
+
{
|
|
14320
|
+
key: "nord-est",
|
|
14321
|
+
label: "",
|
|
14322
|
+
codes: ["VE", "FG", "TA", "EM"],
|
|
14323
|
+
gradient: "from-blue-500/15 to-indigo-500/10 dark:from-blue-500/20 dark:to-indigo-500/15",
|
|
14324
|
+
iconColor: "text-blue-600 dark:text-blue-400"
|
|
14325
|
+
},
|
|
14326
|
+
{
|
|
14327
|
+
key: "centro",
|
|
14328
|
+
label: "",
|
|
14329
|
+
codes: ["TO", "UM", "MA", "LA"],
|
|
14330
|
+
gradient: "from-amber-500/15 to-yellow-500/10 dark:from-amber-500/20 dark:to-yellow-500/15",
|
|
14331
|
+
iconColor: "text-amber-600 dark:text-amber-400"
|
|
14332
|
+
},
|
|
14333
|
+
{
|
|
14334
|
+
key: "sud",
|
|
14335
|
+
label: "",
|
|
14336
|
+
codes: ["CA", "BA", "PU", "CL", "MO", "AB"],
|
|
14337
|
+
gradient: "from-red-500/15 to-rose-500/10 dark:from-red-500/20 dark:to-rose-500/15",
|
|
14338
|
+
iconColor: "text-red-600 dark:text-red-400"
|
|
14339
|
+
},
|
|
14340
|
+
{
|
|
14341
|
+
key: "isole",
|
|
14342
|
+
label: "",
|
|
14343
|
+
codes: ["SI", "SA"],
|
|
14344
|
+
gradient: "from-orange-500/15 to-amber-500/10 dark:from-orange-500/20 dark:to-amber-500/15",
|
|
14345
|
+
iconColor: "text-orange-600 dark:text-orange-400"
|
|
14346
|
+
}
|
|
14347
|
+
];
|
|
14348
|
+
var getItalyFlagUrl = (code) => getSubdivisionFlagUrl("IT", code);
|
|
14349
|
+
var getItalyHexColor = (code) => getSubdivisionHexColor("IT", code);
|
|
14350
|
+
var getItalyPalette = (code) => getSubdivisionPalette("IT", code);
|
|
14351
|
+
var getItalyGradient = (code, direction) => getSubdivisionGradient("IT", code, direction);
|
|
14352
|
+
var getItalyColors = (code) => getSubdivisionColors("IT", code);
|
|
14353
|
+
var getItalyAccent = (code) => getSubdivisionAccent("IT", code);
|
|
14354
|
+
var isValidItalyRegion = (code) => isValidSubdivision("IT", code);
|
|
14355
|
+
|
|
14356
|
+
// src/lib/themes/united-kingdom.ts
|
|
14357
|
+
var UK_NATION_PALETTES = {
|
|
14358
|
+
EN: { primary: "#c8102e", secondary: "#f0f0f0", text: "light" },
|
|
14359
|
+
SC: { primary: "#003da5", secondary: "#f0f0f0", text: "light" },
|
|
14360
|
+
WA: { primary: "#009640", secondary: "#c8102e", text: "light" },
|
|
14361
|
+
NI: { primary: "#c8102e", secondary: "#f0f0f0", text: "light" }
|
|
14362
|
+
};
|
|
14363
|
+
var UK_ACCENT_MAP = {
|
|
14364
|
+
EN: "red",
|
|
14365
|
+
SC: "blue",
|
|
14366
|
+
WA: "green",
|
|
14367
|
+
NI: "rose"
|
|
14368
|
+
};
|
|
14369
|
+
var VALID_CODES11 = Object.keys(UK_NATION_PALETTES);
|
|
14370
|
+
var GB_THEME_CONFIG = {
|
|
14371
|
+
palettes: UK_NATION_PALETTES,
|
|
14372
|
+
accents: UK_ACCENT_MAP,
|
|
14373
|
+
flagUrlTemplate: (code) => VALID_CODES11.includes(code) ? `/flags/gb/${code}.svg` : null
|
|
14374
|
+
};
|
|
14375
|
+
var UK_NATION_COORDINATES = {
|
|
14376
|
+
EN: [-1.2, 52.5],
|
|
14377
|
+
SC: [-4.2, 56.5],
|
|
14378
|
+
WA: [-3.7, 52.1],
|
|
14379
|
+
NI: [-6.8, 54.6]
|
|
14380
|
+
};
|
|
14381
|
+
var UK_MAP_CENTER = [-3, 54.5];
|
|
14382
|
+
var UK_MACRO_REGIONS = [
|
|
14383
|
+
{
|
|
14384
|
+
key: "england",
|
|
14385
|
+
label: "",
|
|
14386
|
+
codes: ["EN"],
|
|
14387
|
+
gradient: "from-red-500/15 to-rose-500/10 dark:from-red-500/20 dark:to-rose-500/15",
|
|
14388
|
+
iconColor: "text-red-600 dark:text-red-400"
|
|
14389
|
+
},
|
|
14390
|
+
{
|
|
14391
|
+
key: "scotland",
|
|
14392
|
+
label: "",
|
|
14393
|
+
codes: ["SC"],
|
|
14394
|
+
gradient: "from-blue-500/15 to-indigo-500/10 dark:from-blue-500/20 dark:to-indigo-500/15",
|
|
14395
|
+
iconColor: "text-blue-600 dark:text-blue-400"
|
|
14396
|
+
},
|
|
14397
|
+
{
|
|
14398
|
+
key: "wales",
|
|
14399
|
+
label: "",
|
|
14400
|
+
codes: ["WA"],
|
|
14401
|
+
gradient: "from-emerald-500/15 to-green-500/10 dark:from-emerald-500/20 dark:to-green-500/15",
|
|
14402
|
+
iconColor: "text-emerald-600 dark:text-emerald-400"
|
|
14403
|
+
},
|
|
14404
|
+
{
|
|
14405
|
+
key: "northern-ireland",
|
|
14406
|
+
label: "",
|
|
14407
|
+
codes: ["NI"],
|
|
14408
|
+
gradient: "from-rose-500/15 to-pink-500/10 dark:from-rose-500/20 dark:to-pink-500/15",
|
|
14409
|
+
iconColor: "text-rose-600 dark:text-rose-400"
|
|
14410
|
+
}
|
|
14411
|
+
];
|
|
14412
|
+
var getUKFlagUrl = (code) => getSubdivisionFlagUrl("GB", code);
|
|
14413
|
+
var getUKHexColor = (code) => getSubdivisionHexColor("GB", code);
|
|
14414
|
+
var getUKPalette = (code) => getSubdivisionPalette("GB", code);
|
|
14415
|
+
var getUKGradient = (code, direction) => getSubdivisionGradient("GB", code, direction);
|
|
14416
|
+
var getUKColors = (code) => getSubdivisionColors("GB", code);
|
|
14417
|
+
var getUKAccent = (code) => getSubdivisionAccent("GB", code);
|
|
14418
|
+
var isValidUKNation = (code) => isValidSubdivision("GB", code);
|
|
14419
|
+
|
|
14420
|
+
// src/lib/themes/portugal.ts
|
|
14421
|
+
var PORTUGAL_DISTRICT_PALETTES = {
|
|
14422
|
+
FA: { primary: "#c8102e", secondary: "#ffd700", text: "light" },
|
|
14423
|
+
LI: { primary: "#003da5", secondary: "#ffd700", text: "light" },
|
|
14424
|
+
AV: { primary: "#009640", secondary: "#f0f0f0", text: "light" },
|
|
14425
|
+
VC: { primary: "#c8102e", secondary: "#009640", text: "light" },
|
|
14426
|
+
BE: { primary: "#ffd700", secondary: "#c8102e", text: "dark" },
|
|
14427
|
+
EV: { primary: "#003da5", secondary: "#f0f0f0", text: "light" },
|
|
14428
|
+
SE: { primary: "#009640", secondary: "#f0f0f0", text: "light" },
|
|
14429
|
+
PA: { primary: "#003da5", secondary: "#ffd700", text: "light" },
|
|
14430
|
+
SA: { primary: "#c8102e", secondary: "#f0f0f0", text: "light" },
|
|
14431
|
+
BR: { primary: "#c8102e", secondary: "#003da5", text: "light" },
|
|
14432
|
+
LE: { primary: "#6b2fa0", secondary: "#ffd700", text: "light" },
|
|
14433
|
+
BA: { primary: "#c8102e", secondary: "#ffd700", text: "light" },
|
|
14434
|
+
CB: { primary: "#009640", secondary: "#c8102e", text: "light" },
|
|
14435
|
+
GU: { primary: "#c8102e", secondary: "#f0f0f0", text: "light" },
|
|
14436
|
+
CO: { primary: "#003da5", secondary: "#c8102e", text: "light" },
|
|
14437
|
+
PO: { primary: "#003da5", secondary: "#f0f0f0", text: "light" },
|
|
14438
|
+
VI: { primary: "#c8102e", secondary: "#009640", text: "light" },
|
|
14439
|
+
VR: { primary: "#ffd700", secondary: "#003da5", text: "dark" },
|
|
14440
|
+
MA: { primary: "#003da5", secondary: "#ffd700", text: "light" },
|
|
14441
|
+
AC: { primary: "#003da5", secondary: "#c8102e", text: "light" }
|
|
14442
|
+
};
|
|
14443
|
+
var PORTUGAL_ACCENT_MAP = {
|
|
14444
|
+
FA: "amber",
|
|
14445
|
+
LI: "blue",
|
|
14446
|
+
AV: "green",
|
|
14447
|
+
VC: "red",
|
|
14448
|
+
BE: "yellow",
|
|
14449
|
+
EV: "blue",
|
|
14450
|
+
SE: "green",
|
|
14451
|
+
PA: "indigo",
|
|
14452
|
+
SA: "red",
|
|
14453
|
+
BR: "red",
|
|
14454
|
+
LE: "purple",
|
|
14455
|
+
BA: "red",
|
|
14456
|
+
CB: "emerald",
|
|
14457
|
+
GU: "red",
|
|
14458
|
+
CO: "blue",
|
|
14459
|
+
PO: "blue",
|
|
14460
|
+
VI: "rose",
|
|
14461
|
+
VR: "yellow",
|
|
14462
|
+
MA: "sky",
|
|
14463
|
+
AC: "blue"
|
|
14464
|
+
};
|
|
14465
|
+
var VALID_CODES12 = Object.keys(PORTUGAL_DISTRICT_PALETTES);
|
|
14466
|
+
var PT_THEME_CONFIG = {
|
|
14467
|
+
palettes: PORTUGAL_DISTRICT_PALETTES,
|
|
14468
|
+
accents: PORTUGAL_ACCENT_MAP,
|
|
14469
|
+
flagUrlTemplate: (code) => VALID_CODES12.includes(code) ? `/flags/pt/${code}.svg` : null
|
|
14470
|
+
};
|
|
14471
|
+
var PORTUGAL_DISTRICT_COORDINATES = {
|
|
14472
|
+
FA: [-7.9, 37],
|
|
14473
|
+
LI: [-9.1, 38.7],
|
|
14474
|
+
AV: [-8.5, 40.6],
|
|
14475
|
+
VC: [-8.4, 41.7],
|
|
14476
|
+
BE: [-7.9, 38],
|
|
14477
|
+
EV: [-7.9, 38.6],
|
|
14478
|
+
SE: [-8.9, 38.5],
|
|
14479
|
+
PA: [-7.9, 39.3],
|
|
14480
|
+
SA: [-8.9, 39.2],
|
|
14481
|
+
BR: [-8.4, 41.6],
|
|
14482
|
+
LE: [-8, 39.7],
|
|
14483
|
+
BA: [-8.1, 41.2],
|
|
14484
|
+
CB: [-7.5, 40.3],
|
|
14485
|
+
GU: [-7.3, 40.5],
|
|
14486
|
+
CO: [-8.4, 40.2],
|
|
14487
|
+
PO: [-8.6, 41.2],
|
|
14488
|
+
VI: [-7.9, 40.7],
|
|
14489
|
+
VR: [-7.7, 41.3],
|
|
14490
|
+
MA: [-17, 32.7],
|
|
14491
|
+
AC: [-25.5, 37.7]
|
|
14492
|
+
};
|
|
14493
|
+
var PORTUGAL_MAP_CENTER = [-8, 39.5];
|
|
14494
|
+
var PORTUGAL_MACRO_REGIONS = [
|
|
14495
|
+
{
|
|
14496
|
+
key: "norte",
|
|
14497
|
+
label: "",
|
|
14498
|
+
codes: ["VC", "BR", "PO", "VR", "BA", "VI"],
|
|
14499
|
+
gradient: "from-red-500/15 to-rose-500/10 dark:from-red-500/20 dark:to-rose-500/15",
|
|
14500
|
+
iconColor: "text-red-600 dark:text-red-400"
|
|
14501
|
+
},
|
|
14502
|
+
{
|
|
14503
|
+
key: "centro",
|
|
14504
|
+
label: "",
|
|
14505
|
+
codes: ["AV", "CO", "GU", "CB", "LE"],
|
|
14506
|
+
gradient: "from-emerald-500/15 to-teal-500/10 dark:from-emerald-500/20 dark:to-teal-500/15",
|
|
14507
|
+
iconColor: "text-emerald-600 dark:text-emerald-400"
|
|
14508
|
+
},
|
|
14509
|
+
{
|
|
14510
|
+
key: "lisboa",
|
|
14511
|
+
label: "",
|
|
14512
|
+
codes: ["LI", "SE", "SA"],
|
|
14513
|
+
gradient: "from-blue-500/15 to-indigo-500/10 dark:from-blue-500/20 dark:to-indigo-500/15",
|
|
14514
|
+
iconColor: "text-blue-600 dark:text-blue-400"
|
|
14515
|
+
},
|
|
14516
|
+
{
|
|
14517
|
+
key: "alentejo",
|
|
14518
|
+
label: "",
|
|
14519
|
+
codes: ["PA", "EV", "BE"],
|
|
14520
|
+
gradient: "from-amber-500/15 to-yellow-500/10 dark:from-amber-500/20 dark:to-yellow-500/15",
|
|
14521
|
+
iconColor: "text-amber-600 dark:text-amber-400"
|
|
14522
|
+
},
|
|
14523
|
+
{
|
|
14524
|
+
key: "algarve",
|
|
14525
|
+
label: "",
|
|
14526
|
+
codes: ["FA"],
|
|
14527
|
+
gradient: "from-orange-500/15 to-amber-500/10 dark:from-orange-500/20 dark:to-amber-500/15",
|
|
14528
|
+
iconColor: "text-orange-600 dark:text-orange-400"
|
|
14529
|
+
},
|
|
14530
|
+
{
|
|
14531
|
+
key: "ilhas",
|
|
14532
|
+
label: "",
|
|
14533
|
+
codes: ["MA", "AC"],
|
|
14534
|
+
gradient: "from-purple-500/15 to-fuchsia-500/10 dark:from-purple-500/20 dark:to-fuchsia-500/15",
|
|
14535
|
+
iconColor: "text-purple-600 dark:text-purple-400"
|
|
14536
|
+
}
|
|
14537
|
+
];
|
|
14538
|
+
var getPortugalFlagUrl = (code) => getSubdivisionFlagUrl("PT", code);
|
|
14539
|
+
var getPortugalHexColor = (code) => getSubdivisionHexColor("PT", code);
|
|
14540
|
+
var getPortugalPalette = (code) => getSubdivisionPalette("PT", code);
|
|
14541
|
+
var getPortugalGradient = (code, direction) => getSubdivisionGradient("PT", code, direction);
|
|
14542
|
+
var getPortugalColors = (code) => getSubdivisionColors("PT", code);
|
|
14543
|
+
var getPortugalAccent = (code) => getSubdivisionAccent("PT", code);
|
|
14544
|
+
var isValidPortugalDistrict = (code) => isValidSubdivision("PT", code);
|
|
14545
|
+
|
|
14546
|
+
// src/lib/themes/australia.ts
|
|
14547
|
+
var AUSTRALIA_STATE_PALETTES = {
|
|
14548
|
+
NT: { primary: "#d35400", secondary: "#000000", text: "light" },
|
|
14549
|
+
WA: { primary: "#ffd700", secondary: "#000000", text: "dark" },
|
|
14550
|
+
SA: { primary: "#c8102e", secondary: "#ffd700", text: "light" },
|
|
14551
|
+
QLD: { primary: "#7b0046", secondary: "#f0f0f0", text: "light" },
|
|
14552
|
+
NSW: { primary: "#003da5", secondary: "#f0f0f0", text: "light" },
|
|
14553
|
+
VIC: { primary: "#003da5", secondary: "#ffd700", text: "light" },
|
|
14554
|
+
TAS: { primary: "#009640", secondary: "#c8102e", text: "light" },
|
|
14555
|
+
ACT: { primary: "#003da5", secondary: "#ffd700", text: "light" }
|
|
14556
|
+
};
|
|
14557
|
+
var AUSTRALIA_ACCENT_MAP = {
|
|
14558
|
+
NT: "orange",
|
|
14559
|
+
WA: "yellow",
|
|
14560
|
+
SA: "red",
|
|
14561
|
+
QLD: "fuchsia",
|
|
14562
|
+
NSW: "blue",
|
|
14563
|
+
VIC: "indigo",
|
|
14564
|
+
TAS: "green",
|
|
14565
|
+
ACT: "sky"
|
|
14566
|
+
};
|
|
14567
|
+
var VALID_CODES13 = Object.keys(AUSTRALIA_STATE_PALETTES);
|
|
14568
|
+
var AU_THEME_CONFIG = {
|
|
14569
|
+
palettes: AUSTRALIA_STATE_PALETTES,
|
|
14570
|
+
accents: AUSTRALIA_ACCENT_MAP,
|
|
14571
|
+
flagUrlTemplate: (code) => VALID_CODES13.includes(code) ? `/flags/au/${code}.svg` : null
|
|
14572
|
+
};
|
|
14573
|
+
var AUSTRALIA_STATE_COORDINATES = {
|
|
14574
|
+
NT: [133.8, -19.5],
|
|
14575
|
+
WA: [121.6, -25.3],
|
|
14576
|
+
SA: [135.8, -30],
|
|
14577
|
+
QLD: [144.7, -22.6],
|
|
14578
|
+
NSW: [147.3, -32],
|
|
14579
|
+
VIC: [145, -37],
|
|
14580
|
+
TAS: [146.3, -42],
|
|
14581
|
+
ACT: [149.1, -35.3]
|
|
14582
|
+
};
|
|
14583
|
+
var AUSTRALIA_MAP_CENTER = [134, -25];
|
|
14584
|
+
var AUSTRALIA_MACRO_REGIONS = [
|
|
14585
|
+
{
|
|
14586
|
+
key: "eastern",
|
|
14587
|
+
label: "",
|
|
14588
|
+
codes: ["NSW", "VIC", "QLD", "TAS", "ACT"],
|
|
14589
|
+
gradient: "from-blue-500/15 to-indigo-500/10 dark:from-blue-500/20 dark:to-indigo-500/15",
|
|
14590
|
+
iconColor: "text-blue-600 dark:text-blue-400"
|
|
14591
|
+
},
|
|
14592
|
+
{
|
|
14593
|
+
key: "western",
|
|
14594
|
+
label: "",
|
|
14595
|
+
codes: ["WA"],
|
|
14596
|
+
gradient: "from-amber-500/15 to-yellow-500/10 dark:from-amber-500/20 dark:to-yellow-500/15",
|
|
14597
|
+
iconColor: "text-amber-600 dark:text-amber-400"
|
|
14598
|
+
},
|
|
14599
|
+
{
|
|
14600
|
+
key: "central",
|
|
14601
|
+
label: "",
|
|
14602
|
+
codes: ["SA", "NT"],
|
|
14603
|
+
gradient: "from-orange-500/15 to-red-500/10 dark:from-orange-500/20 dark:to-red-500/15",
|
|
14604
|
+
iconColor: "text-orange-600 dark:text-orange-400"
|
|
14605
|
+
}
|
|
14606
|
+
];
|
|
14607
|
+
var getAustraliaFlagUrl = (code) => getSubdivisionFlagUrl("AU", code);
|
|
14608
|
+
var getAustraliaHexColor = (code) => getSubdivisionHexColor("AU", code);
|
|
14609
|
+
var getAustraliaPalette = (code) => getSubdivisionPalette("AU", code);
|
|
14610
|
+
var getAustraliaGradient = (code, direction) => getSubdivisionGradient("AU", code, direction);
|
|
14611
|
+
var getAustraliaColors = (code) => getSubdivisionColors("AU", code);
|
|
14612
|
+
var getAustraliaAccent = (code) => getSubdivisionAccent("AU", code);
|
|
14613
|
+
var isValidAustraliaState = (code) => isValidSubdivision("AU", code);
|
|
14614
|
+
|
|
14615
|
+
// src/lib/themes/japan.ts
|
|
14616
|
+
var JAPAN_PREFECTURE_PALETTES = {
|
|
14617
|
+
HS: { primary: "#c8102e", secondary: "#f0f0f0", text: "light" },
|
|
14618
|
+
SM: { primary: "#006b3c", secondary: "#f0f0f0", text: "light" },
|
|
14619
|
+
YC: { primary: "#003da5", secondary: "#f0f0f0", text: "light" },
|
|
14620
|
+
KM: { primary: "#c8102e", secondary: "#f0f0f0", text: "light" },
|
|
14621
|
+
EH: { primary: "#009640", secondary: "#ffd700", text: "light" },
|
|
14622
|
+
KG: { primary: "#009640", secondary: "#f0f0f0", text: "light" },
|
|
14623
|
+
IS: { primary: "#003da5", secondary: "#f0f0f0", text: "light" },
|
|
14624
|
+
HK: { primary: "#003da5", secondary: "#c8102e", text: "light" },
|
|
14625
|
+
TK: { primary: "#5f2d91", secondary: "#009640", text: "light" },
|
|
14626
|
+
NA: { primary: "#c8102e", secondary: "#ffd700", text: "light" },
|
|
14627
|
+
KA: { primary: "#c8102e", secondary: "#f0f0f0", text: "light" },
|
|
14628
|
+
IB: { primary: "#003da5", secondary: "#f0f0f0", text: "light" },
|
|
14629
|
+
ST: { primary: "#c8102e", secondary: "#003da5", text: "light" },
|
|
14630
|
+
SG: { primary: "#c8102e", secondary: "#f0f0f0", text: "light" },
|
|
14631
|
+
YN: { primary: "#009640", secondary: "#f0f0f0", text: "light" },
|
|
14632
|
+
KN: { primary: "#c8102e", secondary: "#003da5", text: "light" },
|
|
14633
|
+
FO: { primary: "#003da5", secondary: "#f0f0f0", text: "light" },
|
|
14634
|
+
FS: { primary: "#009640", secondary: "#f0f0f0", text: "light" },
|
|
14635
|
+
GU: { primary: "#006b3c", secondary: "#f0f0f0", text: "light" },
|
|
14636
|
+
TS: { primary: "#009640", secondary: "#ffd700", text: "light" },
|
|
14637
|
+
KY: { primary: "#6b2fa0", secondary: "#f0f0f0", text: "light" },
|
|
14638
|
+
ME: { primary: "#003da5", secondary: "#ffd700", text: "light" },
|
|
14639
|
+
AI: { primary: "#c8102e", secondary: "#f0f0f0", text: "light" },
|
|
14640
|
+
NR: { primary: "#6b2fa0", secondary: "#009640", text: "light" },
|
|
14641
|
+
OS: { primary: "#003da5", secondary: "#c8102e", text: "light" },
|
|
14642
|
+
WK: { primary: "#c8102e", secondary: "#f0f0f0", text: "light" },
|
|
14643
|
+
CH: { primary: "#c8102e", secondary: "#003da5", text: "light" },
|
|
14644
|
+
AK: { primary: "#c8102e", secondary: "#f0f0f0", text: "light" },
|
|
14645
|
+
MG: { primary: "#009640", secondary: "#f0f0f0", text: "light" },
|
|
14646
|
+
TT: { primary: "#003da5", secondary: "#009640", text: "light" },
|
|
14647
|
+
HG: { primary: "#003da5", secondary: "#f0f0f0", text: "light" },
|
|
14648
|
+
GF: { primary: "#009640", secondary: "#c8102e", text: "light" },
|
|
14649
|
+
NN: { primary: "#009640", secondary: "#ffd700", text: "light" },
|
|
14650
|
+
TY: { primary: "#c8102e", secondary: "#009640", text: "light" },
|
|
14651
|
+
NI: { primary: "#003da5", secondary: "#ffd700", text: "light" },
|
|
14652
|
+
OY: { primary: "#003da5", secondary: "#f0f0f0", text: "light" },
|
|
14653
|
+
AO: { primary: "#003da5", secondary: "#009640", text: "light" },
|
|
14654
|
+
MZ: { primary: "#c8102e", secondary: "#009640", text: "light" },
|
|
14655
|
+
IW: { primary: "#009640", secondary: "#ffd700", text: "light" },
|
|
14656
|
+
KC: { primary: "#009640", secondary: "#f0f0f0", text: "light" },
|
|
14657
|
+
OT: { primary: "#c8102e", secondary: "#f0f0f0", text: "light" },
|
|
14658
|
+
SZ: { primary: "#003da5", secondary: "#ffd700", text: "light" },
|
|
14659
|
+
FI: { primary: "#003da5", secondary: "#009640", text: "light" },
|
|
14660
|
+
SH: { primary: "#c8102e", secondary: "#ffd700", text: "light" },
|
|
14661
|
+
TC: { primary: "#003da5", secondary: "#f0f0f0", text: "light" },
|
|
14662
|
+
YT: { primary: "#009640", secondary: "#c8102e", text: "light" },
|
|
14663
|
+
OK: { primary: "#c8102e", secondary: "#003da5", text: "light" }
|
|
14664
|
+
};
|
|
14665
|
+
var JAPAN_ACCENT_MAP = {
|
|
14666
|
+
HS: "red",
|
|
14667
|
+
SM: "green",
|
|
14668
|
+
YC: "blue",
|
|
14669
|
+
KM: "red",
|
|
14670
|
+
EH: "emerald",
|
|
14671
|
+
KG: "green",
|
|
14672
|
+
IS: "blue",
|
|
14673
|
+
HK: "indigo",
|
|
14674
|
+
TK: "purple",
|
|
14675
|
+
NA: "red",
|
|
14676
|
+
KA: "red",
|
|
14677
|
+
IB: "blue",
|
|
14678
|
+
ST: "rose",
|
|
14679
|
+
SG: "red",
|
|
14680
|
+
YN: "green",
|
|
14681
|
+
KN: "red",
|
|
14682
|
+
FO: "blue",
|
|
14683
|
+
FS: "green",
|
|
14684
|
+
GU: "emerald",
|
|
14685
|
+
TS: "teal",
|
|
14686
|
+
KY: "purple",
|
|
14687
|
+
ME: "sky",
|
|
14688
|
+
AI: "red",
|
|
14689
|
+
NR: "violet",
|
|
14690
|
+
OS: "blue",
|
|
14691
|
+
WK: "red",
|
|
14692
|
+
CH: "rose",
|
|
14693
|
+
AK: "red",
|
|
14694
|
+
MG: "green",
|
|
14695
|
+
TT: "blue",
|
|
14696
|
+
HG: "blue",
|
|
14697
|
+
GF: "green",
|
|
14698
|
+
NN: "teal",
|
|
14699
|
+
TY: "red",
|
|
14700
|
+
NI: "indigo",
|
|
14701
|
+
OY: "blue",
|
|
14702
|
+
AO: "blue",
|
|
14703
|
+
MZ: "red",
|
|
14704
|
+
IW: "emerald",
|
|
14705
|
+
KC: "green",
|
|
14706
|
+
OT: "red",
|
|
14707
|
+
SZ: "sky",
|
|
14708
|
+
FI: "blue",
|
|
14709
|
+
SH: "amber",
|
|
14710
|
+
TC: "blue",
|
|
14711
|
+
YT: "green",
|
|
14712
|
+
OK: "rose"
|
|
14713
|
+
};
|
|
14714
|
+
var VALID_CODES14 = Object.keys(JAPAN_PREFECTURE_PALETTES);
|
|
14715
|
+
var JP_THEME_CONFIG = {
|
|
14716
|
+
palettes: JAPAN_PREFECTURE_PALETTES,
|
|
14717
|
+
accents: JAPAN_ACCENT_MAP,
|
|
14718
|
+
flagUrlTemplate: (code) => VALID_CODES14.includes(code) ? `/flags/jp/${code}.svg` : null
|
|
14719
|
+
};
|
|
14720
|
+
var JAPAN_PREFECTURE_COORDINATES = {
|
|
14721
|
+
HS: [132.5, 34.4],
|
|
14722
|
+
SM: [133.1, 35.5],
|
|
14723
|
+
YC: [131.5, 34.2],
|
|
14724
|
+
KM: [133.5, 33.6],
|
|
14725
|
+
EH: [132.8, 33.8],
|
|
14726
|
+
KG: [134, 34.3],
|
|
14727
|
+
IS: [136.6, 36.6],
|
|
14728
|
+
HK: [143.2, 43.1],
|
|
14729
|
+
TK: [139.7, 35.7],
|
|
14730
|
+
NA: [135.8, 34.7],
|
|
14731
|
+
KA: [131.6, 31.9],
|
|
14732
|
+
IB: [140.1, 36.3],
|
|
14733
|
+
ST: [139.6, 35.9],
|
|
14734
|
+
SG: [130.3, 33.2],
|
|
14735
|
+
YN: [136.6, 36.1],
|
|
14736
|
+
KN: [139.6, 35.4],
|
|
14737
|
+
FO: [130.4, 33.6],
|
|
14738
|
+
FS: [140.5, 37.8],
|
|
14739
|
+
GU: [137.2, 35.4],
|
|
14740
|
+
TS: [134.2, 34.1],
|
|
14741
|
+
KY: [135.8, 35],
|
|
14742
|
+
ME: [136.5, 34.7],
|
|
14743
|
+
AI: [137, 35.2],
|
|
14744
|
+
NR: [135.8, 34.7],
|
|
14745
|
+
OS: [135.5, 34.7],
|
|
14746
|
+
WK: [135.2, 34.2],
|
|
14747
|
+
CH: [140.1, 35.6],
|
|
14748
|
+
AK: [140.1, 39.7],
|
|
14749
|
+
MG: [140.9, 38.3],
|
|
14750
|
+
TT: [134.2, 35.5],
|
|
14751
|
+
HG: [134.7, 35],
|
|
14752
|
+
GF: [137.1, 35.7],
|
|
14753
|
+
NN: [138.2, 36.7],
|
|
14754
|
+
TY: [137, 36.7],
|
|
14755
|
+
NI: [139, 37.9],
|
|
14756
|
+
OY: [133.9, 34.7],
|
|
14757
|
+
AO: [140.7, 40.8],
|
|
14758
|
+
MZ: [131.4, 31.9],
|
|
14759
|
+
IW: [141.2, 39.7],
|
|
14760
|
+
KC: [133.5, 33.6],
|
|
14761
|
+
OT: [131.6, 33.2],
|
|
14762
|
+
SZ: [138.4, 35],
|
|
14763
|
+
FI: [138.3, 36.2],
|
|
14764
|
+
SH: [133, 35.5],
|
|
14765
|
+
TC: [139.9, 36.6],
|
|
14766
|
+
YT: [140, 38.2],
|
|
14767
|
+
OK: [127.7, 26.3]
|
|
14768
|
+
};
|
|
14769
|
+
var JAPAN_MAP_CENTER = [138, 37];
|
|
14770
|
+
var JAPAN_MACRO_REGIONS = [
|
|
14771
|
+
{
|
|
14772
|
+
key: "hokkaido",
|
|
14773
|
+
label: "",
|
|
14774
|
+
codes: ["HK"],
|
|
14775
|
+
gradient: "from-indigo-500/15 to-blue-500/10 dark:from-indigo-500/20 dark:to-blue-500/15",
|
|
14776
|
+
iconColor: "text-indigo-600 dark:text-indigo-400"
|
|
14777
|
+
},
|
|
14778
|
+
{
|
|
14779
|
+
key: "tohoku",
|
|
14780
|
+
label: "",
|
|
14781
|
+
codes: ["AO", "IW", "AK", "MG", "YT", "FS"],
|
|
14782
|
+
gradient: "from-emerald-500/15 to-teal-500/10 dark:from-emerald-500/20 dark:to-teal-500/15",
|
|
14783
|
+
iconColor: "text-emerald-600 dark:text-emerald-400"
|
|
14784
|
+
},
|
|
14785
|
+
{
|
|
14786
|
+
key: "kanto",
|
|
14787
|
+
label: "",
|
|
14788
|
+
codes: ["TK", "KN", "ST", "CH", "IB", "TC", "GU"],
|
|
14789
|
+
gradient: "from-purple-500/15 to-violet-500/10 dark:from-purple-500/20 dark:to-violet-500/15",
|
|
14790
|
+
iconColor: "text-purple-600 dark:text-purple-400"
|
|
14791
|
+
},
|
|
14792
|
+
{
|
|
14793
|
+
key: "chubu",
|
|
14794
|
+
label: "",
|
|
14795
|
+
codes: ["NI", "TY", "IS", "FI", "NN", "GF", "SZ", "AI", "YN"],
|
|
14796
|
+
gradient: "from-sky-500/15 to-blue-500/10 dark:from-sky-500/20 dark:to-blue-500/15",
|
|
14797
|
+
iconColor: "text-sky-600 dark:text-sky-400"
|
|
14798
|
+
},
|
|
14799
|
+
{
|
|
14800
|
+
key: "kansai",
|
|
14801
|
+
label: "",
|
|
14802
|
+
codes: ["OS", "KY", "NR", "HG", "SH", "WK", "ME"],
|
|
14803
|
+
gradient: "from-red-500/15 to-rose-500/10 dark:from-red-500/20 dark:to-rose-500/15",
|
|
14804
|
+
iconColor: "text-red-600 dark:text-red-400"
|
|
14805
|
+
},
|
|
14806
|
+
{
|
|
14807
|
+
key: "chugoku",
|
|
14808
|
+
label: "",
|
|
14809
|
+
codes: ["HS", "SM", "YC", "TT", "OY"],
|
|
14810
|
+
gradient: "from-amber-500/15 to-yellow-500/10 dark:from-amber-500/20 dark:to-yellow-500/15",
|
|
14811
|
+
iconColor: "text-amber-600 dark:text-amber-400"
|
|
14812
|
+
},
|
|
14813
|
+
{
|
|
14814
|
+
key: "shikoku",
|
|
14815
|
+
label: "",
|
|
14816
|
+
codes: ["EH", "KG", "TS", "KC"],
|
|
14817
|
+
gradient: "from-green-500/15 to-emerald-500/10 dark:from-green-500/20 dark:to-emerald-500/15",
|
|
14818
|
+
iconColor: "text-green-600 dark:text-green-400"
|
|
14819
|
+
},
|
|
14820
|
+
{
|
|
14821
|
+
key: "kyushu",
|
|
14822
|
+
label: "",
|
|
14823
|
+
codes: ["FO", "SG", "NA", "KM", "OT", "MZ", "KA", "OK"],
|
|
14824
|
+
gradient: "from-orange-500/15 to-amber-500/10 dark:from-orange-500/20 dark:to-amber-500/15",
|
|
14825
|
+
iconColor: "text-orange-600 dark:text-orange-400"
|
|
14826
|
+
}
|
|
14827
|
+
];
|
|
14828
|
+
var getJapanFlagUrl = (code) => getSubdivisionFlagUrl("JP", code);
|
|
14829
|
+
var getJapanHexColor = (code) => getSubdivisionHexColor("JP", code);
|
|
14830
|
+
var getJapanPalette = (code) => getSubdivisionPalette("JP", code);
|
|
14831
|
+
var getJapanGradient = (code, direction) => getSubdivisionGradient("JP", code, direction);
|
|
14832
|
+
var getJapanColors = (code) => getSubdivisionColors("JP", code);
|
|
14833
|
+
var getJapanAccent = (code) => getSubdivisionAccent("JP", code);
|
|
14834
|
+
var isValidJapanPrefecture = (code) => isValidSubdivision("JP", code);
|
|
14835
|
+
|
|
14836
|
+
// src/lib/themes/india.ts
|
|
14837
|
+
var INDIA_STATE_PALETTES = {
|
|
14838
|
+
TN: { primary: "#c8102e", secondary: "#ffd700", text: "light" },
|
|
14839
|
+
PU: { primary: "#003da5", secondary: "#f0f0f0", text: "light" },
|
|
14840
|
+
HP: { primary: "#009640", secondary: "#f0f0f0", text: "light" },
|
|
14841
|
+
SI: { primary: "#c8102e", secondary: "#f0f0f0", text: "light" },
|
|
14842
|
+
DE: { primary: "#c8102e", secondary: "#003da5", text: "light" },
|
|
14843
|
+
UP: { primary: "#003da5", secondary: "#c8102e", text: "light" },
|
|
14844
|
+
HA: { primary: "#c8102e", secondary: "#009640", text: "light" },
|
|
14845
|
+
PN: { primary: "#003da5", secondary: "#ffd700", text: "light" },
|
|
14846
|
+
CH: { primary: "#003da5", secondary: "#f0f0f0", text: "light" },
|
|
14847
|
+
RA: { primary: "#ffd700", secondary: "#c8102e", text: "dark" },
|
|
14848
|
+
JA: { primary: "#003da5", secondary: "#c8102e", text: "light" },
|
|
14849
|
+
GU: { primary: "#c8102e", secondary: "#ffd700", text: "light" },
|
|
14850
|
+
MP: { primary: "#009640", secondary: "#f0f0f0", text: "light" },
|
|
14851
|
+
MA: { primary: "#ff6600", secondary: "#009640", text: "light" },
|
|
14852
|
+
DA: { primary: "#003da5", secondary: "#009640", text: "light" },
|
|
14853
|
+
BI: { primary: "#c8102e", secondary: "#ffd700", text: "light" },
|
|
14854
|
+
WB: { primary: "#003da5", secondary: "#f0f0f0", text: "light" },
|
|
14855
|
+
JH: { primary: "#009640", secondary: "#f0f0f0", text: "light" },
|
|
14856
|
+
CT: { primary: "#009640", secondary: "#c8102e", text: "light" },
|
|
14857
|
+
OD: { primary: "#c8102e", secondary: "#f0f0f0", text: "light" },
|
|
14858
|
+
KE: { primary: "#009640", secondary: "#ffd700", text: "light" },
|
|
14859
|
+
KA: { primary: "#c8102e", secondary: "#ffd700", text: "light" },
|
|
14860
|
+
AP: { primary: "#003da5", secondary: "#ffd700", text: "light" },
|
|
14861
|
+
AA: { primary: "#c8102e", secondary: "#f0f0f0", text: "light" },
|
|
14862
|
+
AS: { primary: "#c8102e", secondary: "#009640", text: "light" },
|
|
14863
|
+
TR: { primary: "#009640", secondary: "#ff6600", text: "light" },
|
|
14864
|
+
AR: { primary: "#003da5", secondary: "#009640", text: "light" },
|
|
14865
|
+
LA: { primary: "#c8102e", secondary: "#003da5", text: "light" },
|
|
14866
|
+
ME: { primary: "#009640", secondary: "#f0f0f0", text: "light" },
|
|
14867
|
+
MN: { primary: "#c8102e", secondary: "#003da5", text: "light" },
|
|
14868
|
+
NA: { primary: "#003da5", secondary: "#c8102e", text: "light" },
|
|
14869
|
+
MI: { primary: "#003da5", secondary: "#009640", text: "light" },
|
|
14870
|
+
TE: { primary: "#ffd700", secondary: "#003da5", text: "dark" },
|
|
14871
|
+
LD: { primary: "#003da5", secondary: "#009640", text: "light" },
|
|
14872
|
+
UT: { primary: "#009640", secondary: "#c8102e", text: "light" },
|
|
14873
|
+
GO: { primary: "#009640", secondary: "#ffd700", text: "light" }
|
|
14874
|
+
};
|
|
14875
|
+
var INDIA_ACCENT_MAP = {
|
|
14876
|
+
TN: "red",
|
|
14877
|
+
PU: "blue",
|
|
14878
|
+
HP: "green",
|
|
14879
|
+
SI: "red",
|
|
14880
|
+
DE: "rose",
|
|
14881
|
+
UP: "blue",
|
|
14882
|
+
HA: "red",
|
|
14883
|
+
PN: "indigo",
|
|
14884
|
+
CH: "blue",
|
|
14885
|
+
RA: "yellow",
|
|
14886
|
+
JA: "blue",
|
|
14887
|
+
GU: "amber",
|
|
14888
|
+
MP: "green",
|
|
14889
|
+
MA: "orange",
|
|
14890
|
+
DA: "blue",
|
|
14891
|
+
BI: "red",
|
|
14892
|
+
WB: "blue",
|
|
14893
|
+
JH: "emerald",
|
|
14894
|
+
CT: "green",
|
|
14895
|
+
OD: "red",
|
|
14896
|
+
KE: "teal",
|
|
14897
|
+
KA: "red",
|
|
14898
|
+
AP: "sky",
|
|
14899
|
+
AA: "red",
|
|
14900
|
+
AS: "rose",
|
|
14901
|
+
TR: "green",
|
|
14902
|
+
AR: "blue",
|
|
14903
|
+
LA: "red",
|
|
14904
|
+
ME: "emerald",
|
|
14905
|
+
MN: "red",
|
|
14906
|
+
NA: "indigo",
|
|
14907
|
+
MI: "blue",
|
|
14908
|
+
TE: "yellow",
|
|
14909
|
+
LD: "blue",
|
|
14910
|
+
UT: "green",
|
|
14911
|
+
GO: "teal"
|
|
14912
|
+
};
|
|
14913
|
+
var VALID_CODES15 = Object.keys(INDIA_STATE_PALETTES);
|
|
14914
|
+
var IN_THEME_CONFIG = {
|
|
14915
|
+
palettes: INDIA_STATE_PALETTES,
|
|
14916
|
+
accents: INDIA_ACCENT_MAP,
|
|
14917
|
+
flagUrlTemplate: (code) => VALID_CODES15.includes(code) ? `/flags/in/${code}.svg` : null
|
|
14918
|
+
};
|
|
14919
|
+
var INDIA_STATE_COORDINATES = {
|
|
14920
|
+
TN: [78.7, 11.1],
|
|
14921
|
+
PU: [79.8, 11.9],
|
|
14922
|
+
HP: [77.2, 31.1],
|
|
14923
|
+
SI: [88.5, 27.5],
|
|
14924
|
+
DE: [77.1, 28.7],
|
|
14925
|
+
UP: [80.9, 27],
|
|
14926
|
+
HA: [76.1, 29.1],
|
|
14927
|
+
PN: [75.3, 31.1],
|
|
14928
|
+
CH: [76.8, 30.7],
|
|
14929
|
+
RA: [73.7, 26.5],
|
|
14930
|
+
JA: [86.2, 23.6],
|
|
14931
|
+
GU: [71.6, 22.3],
|
|
14932
|
+
MP: [78.7, 23.5],
|
|
14933
|
+
MA: [75.7, 19.7],
|
|
14934
|
+
DA: [73, 20.1],
|
|
14935
|
+
BI: [85.3, 25.6],
|
|
14936
|
+
WB: [87.9, 22.6],
|
|
14937
|
+
JH: [85.3, 23.6],
|
|
14938
|
+
CT: [81.9, 21.3],
|
|
14939
|
+
OD: [84, 20.9],
|
|
14940
|
+
KE: [76.3, 10.9],
|
|
14941
|
+
KA: [75.7, 15.3],
|
|
14942
|
+
AP: [79.7, 15.9],
|
|
14943
|
+
AA: [72.9, 20.6],
|
|
14944
|
+
AS: [92.9, 26.2],
|
|
14945
|
+
TR: [91.7, 23.9],
|
|
14946
|
+
AR: [94.7, 28.2],
|
|
14947
|
+
LA: [77.6, 34.2],
|
|
14948
|
+
ME: [91.4, 25.5],
|
|
14949
|
+
MN: [93.9, 24.8],
|
|
14950
|
+
NA: [94.1, 26.2],
|
|
14951
|
+
MI: [92.7, 23.2],
|
|
14952
|
+
TE: [79, 18.1],
|
|
14953
|
+
LD: [72.2, 10.6],
|
|
14954
|
+
UT: [79, 30.1],
|
|
14955
|
+
GO: [74, 15.3]
|
|
14956
|
+
};
|
|
14957
|
+
var INDIA_MAP_CENTER = [79, 22];
|
|
14958
|
+
var INDIA_MACRO_REGIONS = [
|
|
14959
|
+
{
|
|
14960
|
+
key: "north",
|
|
14961
|
+
label: "",
|
|
14962
|
+
codes: ["HP", "PN", "HA", "DE", "CH", "RA", "UP", "UT", "JA", "LD"],
|
|
14963
|
+
gradient: "from-amber-500/15 to-yellow-500/10 dark:from-amber-500/20 dark:to-yellow-500/15",
|
|
14964
|
+
iconColor: "text-amber-600 dark:text-amber-400"
|
|
14965
|
+
},
|
|
14966
|
+
{
|
|
14967
|
+
key: "east",
|
|
14968
|
+
label: "",
|
|
14969
|
+
codes: ["WB", "OD", "BI", "JH"],
|
|
14970
|
+
gradient: "from-blue-500/15 to-indigo-500/10 dark:from-blue-500/20 dark:to-indigo-500/15",
|
|
14971
|
+
iconColor: "text-blue-600 dark:text-blue-400"
|
|
14972
|
+
},
|
|
14973
|
+
{
|
|
14974
|
+
key: "west",
|
|
14975
|
+
label: "",
|
|
14976
|
+
codes: ["GU", "MA", "DA", "GO"],
|
|
14977
|
+
gradient: "from-orange-500/15 to-amber-500/10 dark:from-orange-500/20 dark:to-amber-500/15",
|
|
14978
|
+
iconColor: "text-orange-600 dark:text-orange-400"
|
|
14979
|
+
},
|
|
14980
|
+
{
|
|
14981
|
+
key: "south",
|
|
14982
|
+
label: "",
|
|
14983
|
+
codes: ["TN", "KE", "KA", "AP", "TE", "PU", "AA"],
|
|
14984
|
+
gradient: "from-red-500/15 to-rose-500/10 dark:from-red-500/20 dark:to-rose-500/15",
|
|
14985
|
+
iconColor: "text-red-600 dark:text-red-400"
|
|
14986
|
+
},
|
|
14987
|
+
{
|
|
14988
|
+
key: "central",
|
|
14989
|
+
label: "",
|
|
14990
|
+
codes: ["MP", "CT"],
|
|
14991
|
+
gradient: "from-emerald-500/15 to-teal-500/10 dark:from-emerald-500/20 dark:to-teal-500/15",
|
|
14992
|
+
iconColor: "text-emerald-600 dark:text-emerald-400"
|
|
14993
|
+
},
|
|
14994
|
+
{
|
|
14995
|
+
key: "northeast",
|
|
14996
|
+
label: "",
|
|
14997
|
+
codes: ["AS", "AR", "MN", "ME", "MI", "NA", "TR", "SI"],
|
|
14998
|
+
gradient: "from-green-500/15 to-emerald-500/10 dark:from-green-500/20 dark:to-emerald-500/15",
|
|
14999
|
+
iconColor: "text-green-600 dark:text-green-400"
|
|
15000
|
+
}
|
|
15001
|
+
];
|
|
15002
|
+
var getIndiaFlagUrl = (code) => getSubdivisionFlagUrl("IN", code);
|
|
15003
|
+
var getIndiaHexColor = (code) => getSubdivisionHexColor("IN", code);
|
|
15004
|
+
var getIndiaPalette = (code) => getSubdivisionPalette("IN", code);
|
|
15005
|
+
var getIndiaGradient = (code, direction) => getSubdivisionGradient("IN", code, direction);
|
|
15006
|
+
var getIndiaColors = (code) => getSubdivisionColors("IN", code);
|
|
15007
|
+
var getIndiaAccent = (code) => getSubdivisionAccent("IN", code);
|
|
15008
|
+
var isValidIndiaState = (code) => isValidSubdivision("IN", code);
|
|
15009
|
+
|
|
15010
|
+
// src/lib/themes/south-africa.ts
|
|
15011
|
+
var SOUTH_AFRICA_PROVINCE_PALETTES = {
|
|
15012
|
+
EC: { primary: "#009640", secondary: "#ffd700", text: "light" },
|
|
15013
|
+
NP: { primary: "#009640", secondary: "#c8102e", text: "light" },
|
|
15014
|
+
NL: { primary: "#003da5", secondary: "#009640", text: "light" },
|
|
15015
|
+
WC: { primary: "#003da5", secondary: "#c8102e", text: "light" },
|
|
15016
|
+
NC: { primary: "#d35400", secondary: "#009640", text: "light" },
|
|
15017
|
+
NW: { primary: "#009640", secondary: "#ffd700", text: "light" },
|
|
15018
|
+
FS: { primary: "#ff6600", secondary: "#003da5", text: "light" },
|
|
15019
|
+
GT: { primary: "#003da5", secondary: "#ffd700", text: "light" },
|
|
15020
|
+
MP: { primary: "#009640", secondary: "#003da5", text: "light" }
|
|
15021
|
+
};
|
|
15022
|
+
var SOUTH_AFRICA_ACCENT_MAP = {
|
|
15023
|
+
EC: "green",
|
|
15024
|
+
NP: "emerald",
|
|
15025
|
+
NL: "blue",
|
|
15026
|
+
WC: "indigo",
|
|
15027
|
+
NC: "orange",
|
|
15028
|
+
NW: "teal",
|
|
15029
|
+
FS: "orange",
|
|
15030
|
+
GT: "blue",
|
|
15031
|
+
MP: "green"
|
|
15032
|
+
};
|
|
15033
|
+
var VALID_CODES16 = Object.keys(SOUTH_AFRICA_PROVINCE_PALETTES);
|
|
15034
|
+
var ZA_THEME_CONFIG = {
|
|
15035
|
+
palettes: SOUTH_AFRICA_PROVINCE_PALETTES,
|
|
15036
|
+
accents: SOUTH_AFRICA_ACCENT_MAP,
|
|
15037
|
+
flagUrlTemplate: (code) => VALID_CODES16.includes(code) ? `/flags/za/${code}.svg` : null
|
|
15038
|
+
};
|
|
15039
|
+
var SOUTH_AFRICA_PROVINCE_COORDINATES = {
|
|
15040
|
+
EC: [26.5, -32],
|
|
15041
|
+
NP: [29.5, -23.5],
|
|
15042
|
+
NL: [30.5, -29],
|
|
15043
|
+
WC: [19.5, -33.5],
|
|
15044
|
+
NC: [21, -29],
|
|
15045
|
+
NW: [26, -26],
|
|
15046
|
+
FS: [27, -29],
|
|
15047
|
+
GT: [28.1, -26.2],
|
|
15048
|
+
MP: [30, -25.5]
|
|
15049
|
+
};
|
|
15050
|
+
var SOUTH_AFRICA_MAP_CENTER = [25, -29];
|
|
15051
|
+
var SOUTH_AFRICA_MACRO_REGIONS = [
|
|
15052
|
+
{
|
|
15053
|
+
key: "coastal",
|
|
15054
|
+
label: "",
|
|
15055
|
+
codes: ["EC", "NL", "WC"],
|
|
15056
|
+
gradient: "from-blue-500/15 to-indigo-500/10 dark:from-blue-500/20 dark:to-indigo-500/15",
|
|
15057
|
+
iconColor: "text-blue-600 dark:text-blue-400"
|
|
15058
|
+
},
|
|
15059
|
+
{
|
|
15060
|
+
key: "interior",
|
|
15061
|
+
label: "",
|
|
15062
|
+
codes: ["GT", "MP", "NW", "FS", "NP", "NC"],
|
|
15063
|
+
gradient: "from-emerald-500/15 to-teal-500/10 dark:from-emerald-500/20 dark:to-teal-500/15",
|
|
15064
|
+
iconColor: "text-emerald-600 dark:text-emerald-400"
|
|
15065
|
+
}
|
|
15066
|
+
];
|
|
15067
|
+
var getSouthAfricaFlagUrl = (code) => getSubdivisionFlagUrl("ZA", code);
|
|
15068
|
+
var getSouthAfricaHexColor = (code) => getSubdivisionHexColor("ZA", code);
|
|
15069
|
+
var getSouthAfricaPalette = (code) => getSubdivisionPalette("ZA", code);
|
|
15070
|
+
var getSouthAfricaGradient = (code, direction) => getSubdivisionGradient("ZA", code, direction);
|
|
15071
|
+
var getSouthAfricaColors = (code) => getSubdivisionColors("ZA", code);
|
|
15072
|
+
var getSouthAfricaAccent = (code) => getSubdivisionAccent("ZA", code);
|
|
15073
|
+
var isValidSouthAfricaProvince = (code) => isValidSubdivision("ZA", code);
|
|
15074
|
+
|
|
15075
|
+
// src/lib/country-config.ts
|
|
15076
|
+
var COUNTRY_REGISTRY = /* @__PURE__ */ new Map();
|
|
15077
|
+
function getCountryConfig(code) {
|
|
15078
|
+
return COUNTRY_REGISTRY.get(code.toUpperCase()) ?? null;
|
|
15079
|
+
}
|
|
15080
|
+
function registerCountry(config) {
|
|
15081
|
+
COUNTRY_REGISTRY.set(config.code.toUpperCase(), config);
|
|
15082
|
+
}
|
|
15083
|
+
function getAllCountries() {
|
|
15084
|
+
return [...COUNTRY_REGISTRY.values()].sort((a2, b2) => a2.code.localeCompare(b2.code));
|
|
15085
|
+
}
|
|
15086
|
+
function formatCurrency2(amount, countryCode) {
|
|
15087
|
+
const config = getCountryConfig(countryCode);
|
|
15088
|
+
if (!config) return String(amount);
|
|
15089
|
+
const { currency } = config;
|
|
15090
|
+
const fixed = Math.abs(amount).toFixed(currency.precision);
|
|
15091
|
+
const [integerPart, decimalPart] = fixed.split(".");
|
|
15092
|
+
const withThousands = integerPart.replace(
|
|
15093
|
+
/\B(?=(\d{3})+(?!\d))/g,
|
|
15094
|
+
currency.thousands
|
|
15095
|
+
);
|
|
15096
|
+
const formatted = decimalPart ? `${withThousands}${currency.decimal}${decimalPart}` : withThousands;
|
|
15097
|
+
const sign = amount < 0 ? "-" : "";
|
|
15098
|
+
return currency.symbolPosition === "before" ? `${sign}${currency.symbol}${formatted}` : `${sign}${formatted}${currency.symbol}`;
|
|
15099
|
+
}
|
|
15100
|
+
function formatAddress(address, countryCode) {
|
|
15101
|
+
const config = getCountryConfig(countryCode);
|
|
15102
|
+
if (!config) {
|
|
15103
|
+
return Object.values(address).filter(Boolean).join(", ");
|
|
15104
|
+
}
|
|
15105
|
+
let result = config.address.template;
|
|
15106
|
+
for (const field of config.address.fields) {
|
|
15107
|
+
result = result.replace(`{${field}}`, address[field] ?? "");
|
|
15108
|
+
}
|
|
15109
|
+
return result.replace(/[ ]{2,}/g, " ").replace(/,\s*,/g, ",").replace(/,\s*\n/g, "\n").replace(/\n\s*,/g, "\n").trim();
|
|
15110
|
+
}
|
|
15111
|
+
registerCountry({
|
|
15112
|
+
code: "BR",
|
|
15113
|
+
name: "Brazil",
|
|
15114
|
+
nativeName: "Brasil",
|
|
15115
|
+
flag: "\u{1F1E7}\u{1F1F7}",
|
|
15116
|
+
theme: BR_THEME_CONFIG,
|
|
15117
|
+
coordinates: BRAZIL_STATE_COORDINATES,
|
|
15118
|
+
mapCenter: BRAZIL_MAP_CENTER,
|
|
15119
|
+
macroRegions: BRAZIL_MACRO_REGIONS,
|
|
15120
|
+
geoJsonPath: "/maps/brazil.geo.json",
|
|
15121
|
+
projection: "mercator",
|
|
15122
|
+
regionPropertyKey: "code",
|
|
15123
|
+
languages: [
|
|
15124
|
+
{ code: "pt-BR", name: "Portuguese", nativeName: "Portugu\xEAs", primary: true }
|
|
15125
|
+
],
|
|
15126
|
+
currency: {
|
|
15127
|
+
code: "BRL",
|
|
15128
|
+
numeric: "986",
|
|
15129
|
+
symbol: "R$",
|
|
15130
|
+
decimal: ",",
|
|
15131
|
+
thousands: ".",
|
|
15132
|
+
symbolPosition: "before",
|
|
15133
|
+
precision: 2
|
|
15134
|
+
},
|
|
15135
|
+
locale: {
|
|
15136
|
+
defaultLocale: "pt-BR",
|
|
15137
|
+
dateFormat: "dd/MM/yyyy",
|
|
15138
|
+
timeFormat: "24h",
|
|
15139
|
+
firstDayOfWeek: 0,
|
|
15140
|
+
measurementSystem: "metric"
|
|
15141
|
+
},
|
|
15142
|
+
address: {
|
|
15143
|
+
fields: ["street", "number", "complement", "neighborhood", "city", "state", "postalCode"],
|
|
15144
|
+
template: "{street}, {number} {complement}\n{neighborhood}\n{city}, {state} {postalCode}",
|
|
15145
|
+
postalCodeLabel: "CEP",
|
|
15146
|
+
postalCodePattern: "^\\d{5}-?\\d{3}$",
|
|
15147
|
+
stateLabel: "Estado"
|
|
15148
|
+
},
|
|
15149
|
+
tax: {
|
|
15150
|
+
name: "ICMS",
|
|
15151
|
+
standardRate: 18,
|
|
15152
|
+
subdivisionRates: {
|
|
15153
|
+
AC: 19,
|
|
15154
|
+
AL: 19,
|
|
15155
|
+
AM: 20,
|
|
15156
|
+
AP: 18,
|
|
15157
|
+
BA: 20.5,
|
|
15158
|
+
CE: 20,
|
|
15159
|
+
DF: 20,
|
|
15160
|
+
ES: 17,
|
|
15161
|
+
GO: 19,
|
|
15162
|
+
MA: 22,
|
|
15163
|
+
MG: 18,
|
|
15164
|
+
MS: 17,
|
|
15165
|
+
MT: 17,
|
|
15166
|
+
PA: 19,
|
|
15167
|
+
PB: 20,
|
|
15168
|
+
PE: 20.5,
|
|
15169
|
+
PI: 21,
|
|
15170
|
+
PR: 19.5,
|
|
15171
|
+
RJ: 20,
|
|
15172
|
+
RN: 18,
|
|
15173
|
+
RO: 19.5,
|
|
15174
|
+
RR: 20,
|
|
15175
|
+
RS: 17,
|
|
15176
|
+
SC: 17,
|
|
15177
|
+
SE: 19,
|
|
15178
|
+
SP: 18,
|
|
15179
|
+
TO: 20
|
|
15180
|
+
}
|
|
15181
|
+
}
|
|
15182
|
+
});
|
|
15183
|
+
registerCountry({
|
|
15184
|
+
code: "US",
|
|
15185
|
+
name: "United States",
|
|
15186
|
+
nativeName: "United States",
|
|
15187
|
+
flag: "\u{1F1FA}\u{1F1F8}",
|
|
15188
|
+
theme: US_THEME_CONFIG,
|
|
15189
|
+
coordinates: US_STATE_COORDINATES,
|
|
15190
|
+
mapCenter: US_MAP_CENTER,
|
|
15191
|
+
macroRegions: US_MACRO_REGIONS,
|
|
15192
|
+
geoJsonPath: "/maps/us.geo.json",
|
|
15193
|
+
projection: "albersUsa",
|
|
15194
|
+
regionPropertyKey: "code",
|
|
15195
|
+
languages: [
|
|
15196
|
+
{ code: "en-US", name: "English", nativeName: "English", primary: true },
|
|
15197
|
+
{ code: "es-US", name: "Spanish", nativeName: "Espa\xF1ol" }
|
|
15198
|
+
],
|
|
15199
|
+
currency: {
|
|
15200
|
+
code: "USD",
|
|
15201
|
+
numeric: "840",
|
|
15202
|
+
symbol: "$",
|
|
15203
|
+
decimal: ".",
|
|
15204
|
+
thousands: ",",
|
|
15205
|
+
symbolPosition: "before",
|
|
15206
|
+
precision: 2
|
|
15207
|
+
},
|
|
15208
|
+
locale: {
|
|
15209
|
+
defaultLocale: "en-US",
|
|
15210
|
+
dateFormat: "MM/dd/yyyy",
|
|
15211
|
+
timeFormat: "12h",
|
|
15212
|
+
firstDayOfWeek: 0,
|
|
15213
|
+
measurementSystem: "imperial"
|
|
15214
|
+
},
|
|
15215
|
+
address: {
|
|
15216
|
+
fields: ["street", "suite", "city", "state", "postalCode"],
|
|
15217
|
+
template: "{street} {suite}\n{city}, {state} {postalCode}",
|
|
15218
|
+
postalCodeLabel: "ZIP Code",
|
|
15219
|
+
postalCodePattern: "^\\d{5}(-\\d{4})?$",
|
|
15220
|
+
stateLabel: "State"
|
|
15221
|
+
},
|
|
15222
|
+
tax: {
|
|
15223
|
+
name: "Sales Tax",
|
|
15224
|
+
standardRate: 0,
|
|
15225
|
+
subdivisionRates: {
|
|
15226
|
+
AL: 4,
|
|
15227
|
+
AK: 0,
|
|
15228
|
+
AZ: 5.6,
|
|
15229
|
+
AR: 6.5,
|
|
15230
|
+
CA: 7.25,
|
|
15231
|
+
CO: 2.9,
|
|
15232
|
+
CT: 6.35,
|
|
15233
|
+
DE: 0,
|
|
15234
|
+
FL: 6,
|
|
15235
|
+
GA: 4,
|
|
15236
|
+
HI: 4,
|
|
15237
|
+
ID: 6,
|
|
15238
|
+
IL: 6.25,
|
|
15239
|
+
IN: 7,
|
|
15240
|
+
IA: 6,
|
|
15241
|
+
KS: 6.5,
|
|
15242
|
+
KY: 6,
|
|
15243
|
+
LA: 4.45,
|
|
15244
|
+
ME: 5.5,
|
|
15245
|
+
MD: 6,
|
|
15246
|
+
MA: 6.25,
|
|
15247
|
+
MI: 6,
|
|
15248
|
+
MN: 6.875,
|
|
15249
|
+
MS: 7,
|
|
15250
|
+
MO: 4.225,
|
|
15251
|
+
MT: 0,
|
|
15252
|
+
NE: 5.5,
|
|
15253
|
+
NV: 6.85,
|
|
15254
|
+
NH: 0,
|
|
15255
|
+
NJ: 6.625,
|
|
15256
|
+
NM: 5.125,
|
|
15257
|
+
NY: 4,
|
|
15258
|
+
NC: 4.75,
|
|
15259
|
+
ND: 5,
|
|
15260
|
+
OH: 5.75,
|
|
15261
|
+
OK: 4.5,
|
|
15262
|
+
OR: 0,
|
|
15263
|
+
PA: 6,
|
|
15264
|
+
RI: 7,
|
|
15265
|
+
SC: 6,
|
|
15266
|
+
SD: 4.5,
|
|
15267
|
+
TN: 7,
|
|
15268
|
+
TX: 6.25,
|
|
15269
|
+
UT: 6.1,
|
|
15270
|
+
VT: 6,
|
|
15271
|
+
VA: 5.3,
|
|
15272
|
+
WA: 6.5,
|
|
15273
|
+
WV: 6,
|
|
15274
|
+
WI: 5,
|
|
15275
|
+
WY: 4,
|
|
15276
|
+
DC: 6
|
|
15277
|
+
}
|
|
15278
|
+
}
|
|
15279
|
+
});
|
|
15280
|
+
registerCountry({
|
|
15281
|
+
code: "CA",
|
|
15282
|
+
name: "Canada",
|
|
15283
|
+
nativeName: "Canada",
|
|
15284
|
+
flag: "\u{1F1E8}\u{1F1E6}",
|
|
15285
|
+
theme: CA_THEME_CONFIG,
|
|
15286
|
+
coordinates: CANADA_PROVINCE_COORDINATES,
|
|
15287
|
+
mapCenter: CANADA_MAP_CENTER,
|
|
15288
|
+
macroRegions: CANADA_MACRO_REGIONS,
|
|
15289
|
+
geoJsonPath: "/maps/canada.geo.json",
|
|
15290
|
+
projection: "mercator",
|
|
15291
|
+
regionPropertyKey: "code",
|
|
15292
|
+
languages: [
|
|
15293
|
+
{ code: "en-CA", name: "English", nativeName: "English", primary: true },
|
|
15294
|
+
{ code: "fr-CA", name: "French", nativeName: "Fran\xE7ais" }
|
|
15295
|
+
],
|
|
15296
|
+
currency: {
|
|
15297
|
+
code: "CAD",
|
|
15298
|
+
numeric: "124",
|
|
15299
|
+
symbol: "CA$",
|
|
15300
|
+
decimal: ".",
|
|
15301
|
+
thousands: ",",
|
|
15302
|
+
symbolPosition: "before",
|
|
15303
|
+
precision: 2
|
|
15304
|
+
},
|
|
15305
|
+
locale: {
|
|
15306
|
+
defaultLocale: "en-CA",
|
|
15307
|
+
dateFormat: "yyyy-MM-dd",
|
|
15308
|
+
timeFormat: "12h",
|
|
15309
|
+
firstDayOfWeek: 0,
|
|
15310
|
+
measurementSystem: "metric"
|
|
15311
|
+
},
|
|
15312
|
+
address: {
|
|
15313
|
+
fields: ["street", "suite", "city", "province", "postalCode"],
|
|
15314
|
+
template: "{street} {suite}\n{city}, {province} {postalCode}",
|
|
15315
|
+
postalCodeLabel: "Postal Code",
|
|
15316
|
+
postalCodePattern: "^[A-Za-z]\\d[A-Za-z]\\s?\\d[A-Za-z]\\d$",
|
|
15317
|
+
stateLabel: "Province"
|
|
15318
|
+
},
|
|
15319
|
+
tax: {
|
|
15320
|
+
name: "GST/HST",
|
|
15321
|
+
standardRate: 5,
|
|
15322
|
+
subdivisionRates: {
|
|
15323
|
+
AB: 5,
|
|
15324
|
+
BC: 12,
|
|
15325
|
+
MB: 12,
|
|
15326
|
+
NB: 15,
|
|
15327
|
+
NL: 15,
|
|
15328
|
+
NS: 15,
|
|
15329
|
+
NT: 5,
|
|
15330
|
+
NU: 5,
|
|
15331
|
+
ON: 13,
|
|
15332
|
+
PE: 15,
|
|
15333
|
+
QC: 14.975,
|
|
15334
|
+
SK: 11,
|
|
15335
|
+
YT: 5
|
|
15336
|
+
}
|
|
15337
|
+
}
|
|
15338
|
+
});
|
|
15339
|
+
registerCountry({
|
|
15340
|
+
code: "MX",
|
|
15341
|
+
name: "Mexico",
|
|
15342
|
+
nativeName: "M\xE9xico",
|
|
15343
|
+
flag: "\u{1F1F2}\u{1F1FD}",
|
|
15344
|
+
theme: MX_THEME_CONFIG,
|
|
15345
|
+
coordinates: MEXICO_STATE_COORDINATES,
|
|
15346
|
+
mapCenter: MEXICO_MAP_CENTER,
|
|
15347
|
+
macroRegions: MEXICO_MACRO_REGIONS,
|
|
15348
|
+
geoJsonPath: "/maps/mexico.geo.json",
|
|
15349
|
+
projection: "mercator",
|
|
15350
|
+
regionPropertyKey: "code",
|
|
15351
|
+
languages: [
|
|
15352
|
+
{ code: "es-MX", name: "Spanish", nativeName: "Espa\xF1ol", primary: true }
|
|
15353
|
+
],
|
|
15354
|
+
currency: {
|
|
15355
|
+
code: "MXN",
|
|
15356
|
+
numeric: "484",
|
|
15357
|
+
symbol: "MX$",
|
|
15358
|
+
decimal: ".",
|
|
15359
|
+
thousands: ",",
|
|
15360
|
+
symbolPosition: "before",
|
|
15361
|
+
precision: 2
|
|
15362
|
+
},
|
|
15363
|
+
locale: {
|
|
15364
|
+
defaultLocale: "es-MX",
|
|
15365
|
+
dateFormat: "dd/MM/yyyy",
|
|
15366
|
+
timeFormat: "12h",
|
|
15367
|
+
firstDayOfWeek: 0,
|
|
15368
|
+
measurementSystem: "metric"
|
|
15369
|
+
},
|
|
15370
|
+
address: {
|
|
15371
|
+
fields: ["street", "exteriorNumber", "interiorNumber", "neighborhood", "city", "state", "postalCode"],
|
|
15372
|
+
template: "{street} {exteriorNumber} {interiorNumber}\n{neighborhood}\n{postalCode} {city}, {state}",
|
|
15373
|
+
postalCodeLabel: "C\xF3digo Postal",
|
|
15374
|
+
postalCodePattern: "^\\d{5}$",
|
|
15375
|
+
stateLabel: "Estado"
|
|
15376
|
+
},
|
|
15377
|
+
tax: {
|
|
15378
|
+
name: "IVA",
|
|
15379
|
+
standardRate: 16
|
|
15380
|
+
}
|
|
15381
|
+
});
|
|
15382
|
+
registerCountry({
|
|
15383
|
+
code: "CO",
|
|
15384
|
+
name: "Colombia",
|
|
15385
|
+
nativeName: "Colombia",
|
|
15386
|
+
flag: "\u{1F1E8}\u{1F1F4}",
|
|
15387
|
+
theme: CO_THEME_CONFIG,
|
|
15388
|
+
coordinates: COLOMBIA_DEPARTMENT_COORDINATES,
|
|
15389
|
+
mapCenter: COLOMBIA_MAP_CENTER,
|
|
15390
|
+
macroRegions: COLOMBIA_MACRO_REGIONS,
|
|
15391
|
+
geoJsonPath: "/maps/colombia.geo.json",
|
|
15392
|
+
projection: "mercator",
|
|
15393
|
+
regionPropertyKey: "code",
|
|
15394
|
+
languages: [
|
|
15395
|
+
{ code: "es-CO", name: "Spanish", nativeName: "Espa\xF1ol", primary: true }
|
|
15396
|
+
],
|
|
15397
|
+
currency: {
|
|
15398
|
+
code: "COP",
|
|
15399
|
+
numeric: "170",
|
|
15400
|
+
symbol: "COL$",
|
|
15401
|
+
decimal: ",",
|
|
15402
|
+
thousands: ".",
|
|
15403
|
+
symbolPosition: "before",
|
|
15404
|
+
precision: 0
|
|
15405
|
+
},
|
|
15406
|
+
locale: {
|
|
15407
|
+
defaultLocale: "es-CO",
|
|
15408
|
+
dateFormat: "dd/MM/yyyy",
|
|
15409
|
+
timeFormat: "12h",
|
|
15410
|
+
firstDayOfWeek: 0,
|
|
15411
|
+
measurementSystem: "metric"
|
|
15412
|
+
},
|
|
15413
|
+
address: {
|
|
15414
|
+
fields: ["street", "number", "city", "department", "postalCode"],
|
|
15415
|
+
template: "{street} {number}\n{city}, {department} {postalCode}",
|
|
15416
|
+
postalCodeLabel: "C\xF3digo Postal",
|
|
15417
|
+
postalCodePattern: "^\\d{6}$",
|
|
15418
|
+
stateLabel: "Departamento"
|
|
15419
|
+
},
|
|
15420
|
+
tax: {
|
|
15421
|
+
name: "IVA",
|
|
15422
|
+
standardRate: 19
|
|
15423
|
+
}
|
|
15424
|
+
});
|
|
15425
|
+
registerCountry({
|
|
15426
|
+
code: "AR",
|
|
15427
|
+
name: "Argentina",
|
|
15428
|
+
nativeName: "Argentina",
|
|
15429
|
+
flag: "\u{1F1E6}\u{1F1F7}",
|
|
15430
|
+
theme: AR_THEME_CONFIG,
|
|
15431
|
+
coordinates: ARGENTINA_PROVINCE_COORDINATES,
|
|
15432
|
+
mapCenter: ARGENTINA_MAP_CENTER,
|
|
15433
|
+
macroRegions: ARGENTINA_MACRO_REGIONS,
|
|
15434
|
+
geoJsonPath: "/maps/argentina.geo.json",
|
|
15435
|
+
projection: "mercator",
|
|
15436
|
+
regionPropertyKey: "code",
|
|
15437
|
+
languages: [
|
|
15438
|
+
{ code: "es-AR", name: "Spanish", nativeName: "Espa\xF1ol", primary: true }
|
|
15439
|
+
],
|
|
15440
|
+
currency: {
|
|
15441
|
+
code: "ARS",
|
|
15442
|
+
numeric: "032",
|
|
15443
|
+
symbol: "AR$",
|
|
15444
|
+
decimal: ",",
|
|
15445
|
+
thousands: ".",
|
|
15446
|
+
symbolPosition: "before",
|
|
15447
|
+
precision: 2
|
|
15448
|
+
},
|
|
15449
|
+
locale: {
|
|
15450
|
+
defaultLocale: "es-AR",
|
|
15451
|
+
dateFormat: "dd/MM/yyyy",
|
|
15452
|
+
timeFormat: "24h",
|
|
15453
|
+
firstDayOfWeek: 1,
|
|
15454
|
+
measurementSystem: "metric"
|
|
15455
|
+
},
|
|
15456
|
+
address: {
|
|
15457
|
+
fields: ["street", "number", "floor", "apartment", "postalCode", "city", "province"],
|
|
15458
|
+
template: "{street} {number}, {floor} {apartment}\n{postalCode} {city}, {province}",
|
|
15459
|
+
postalCodeLabel: "C\xF3digo Postal",
|
|
15460
|
+
postalCodePattern: "^[A-Za-z]\\d{4}[A-Za-z]{3}$",
|
|
15461
|
+
stateLabel: "Provincia"
|
|
15462
|
+
},
|
|
15463
|
+
tax: {
|
|
15464
|
+
name: "IVA",
|
|
15465
|
+
standardRate: 21
|
|
15466
|
+
}
|
|
15467
|
+
});
|
|
15468
|
+
registerCountry({
|
|
15469
|
+
code: "CL",
|
|
15470
|
+
name: "Chile",
|
|
15471
|
+
nativeName: "Chile",
|
|
15472
|
+
flag: "\u{1F1E8}\u{1F1F1}",
|
|
15473
|
+
theme: CL_THEME_CONFIG,
|
|
15474
|
+
coordinates: CHILE_REGION_COORDINATES,
|
|
15475
|
+
mapCenter: CHILE_MAP_CENTER,
|
|
15476
|
+
macroRegions: CHILE_MACRO_REGIONS,
|
|
15477
|
+
geoJsonPath: "/maps/chile.geo.json",
|
|
15478
|
+
projection: "mercator",
|
|
15479
|
+
regionPropertyKey: "code",
|
|
15480
|
+
languages: [
|
|
15481
|
+
{ code: "es-CL", name: "Spanish", nativeName: "Espa\xF1ol", primary: true }
|
|
15482
|
+
],
|
|
15483
|
+
currency: {
|
|
15484
|
+
code: "CLP",
|
|
15485
|
+
numeric: "152",
|
|
15486
|
+
symbol: "CL$",
|
|
15487
|
+
decimal: ",",
|
|
15488
|
+
thousands: ".",
|
|
15489
|
+
symbolPosition: "before",
|
|
15490
|
+
precision: 0
|
|
15491
|
+
},
|
|
15492
|
+
locale: {
|
|
15493
|
+
defaultLocale: "es-CL",
|
|
15494
|
+
dateFormat: "dd-MM-yyyy",
|
|
15495
|
+
timeFormat: "24h",
|
|
15496
|
+
firstDayOfWeek: 1,
|
|
15497
|
+
measurementSystem: "metric"
|
|
15498
|
+
},
|
|
15499
|
+
address: {
|
|
15500
|
+
fields: ["street", "number", "commune", "city", "region", "postalCode"],
|
|
15501
|
+
template: "{street} {number}\n{commune}\n{city}, {region} {postalCode}",
|
|
15502
|
+
postalCodeLabel: "C\xF3digo Postal",
|
|
15503
|
+
postalCodePattern: "^\\d{7}$",
|
|
15504
|
+
stateLabel: "Regi\xF3n"
|
|
15505
|
+
},
|
|
15506
|
+
tax: {
|
|
15507
|
+
name: "IVA",
|
|
15508
|
+
standardRate: 19
|
|
15509
|
+
}
|
|
15510
|
+
});
|
|
15511
|
+
registerCountry({
|
|
15512
|
+
code: "PE",
|
|
15513
|
+
name: "Peru",
|
|
15514
|
+
nativeName: "Per\xFA",
|
|
15515
|
+
flag: "\u{1F1F5}\u{1F1EA}",
|
|
15516
|
+
theme: PE_THEME_CONFIG,
|
|
15517
|
+
coordinates: PERU_DEPARTMENT_COORDINATES,
|
|
15518
|
+
mapCenter: PERU_MAP_CENTER,
|
|
15519
|
+
macroRegions: PERU_MACRO_REGIONS,
|
|
15520
|
+
geoJsonPath: "/maps/peru.geo.json",
|
|
15521
|
+
projection: "mercator",
|
|
15522
|
+
regionPropertyKey: "code",
|
|
15523
|
+
languages: [
|
|
15524
|
+
{ code: "es-PE", name: "Spanish", nativeName: "Espa\xF1ol", primary: true },
|
|
15525
|
+
{ code: "qu", name: "Quechua", nativeName: "Runasimi" }
|
|
15526
|
+
],
|
|
15527
|
+
currency: {
|
|
15528
|
+
code: "PEN",
|
|
15529
|
+
numeric: "604",
|
|
15530
|
+
symbol: "S/",
|
|
15531
|
+
decimal: ".",
|
|
15532
|
+
thousands: ",",
|
|
15533
|
+
symbolPosition: "before",
|
|
15534
|
+
precision: 2
|
|
15535
|
+
},
|
|
15536
|
+
locale: {
|
|
15537
|
+
defaultLocale: "es-PE",
|
|
15538
|
+
dateFormat: "dd/MM/yyyy",
|
|
15539
|
+
timeFormat: "12h",
|
|
15540
|
+
firstDayOfWeek: 0,
|
|
15541
|
+
measurementSystem: "metric"
|
|
15542
|
+
},
|
|
15543
|
+
address: {
|
|
15544
|
+
fields: ["street", "number", "district", "city", "department", "postalCode"],
|
|
15545
|
+
template: "{street} {number}\n{district}\n{city}, {department} {postalCode}",
|
|
15546
|
+
postalCodeLabel: "C\xF3digo Postal",
|
|
15547
|
+
postalCodePattern: "^\\d{5}$",
|
|
15548
|
+
stateLabel: "Departamento"
|
|
15549
|
+
},
|
|
15550
|
+
tax: {
|
|
15551
|
+
name: "IGV",
|
|
15552
|
+
standardRate: 18
|
|
15553
|
+
}
|
|
15554
|
+
});
|
|
15555
|
+
registerCountry({
|
|
15556
|
+
code: "DE",
|
|
15557
|
+
name: "Germany",
|
|
15558
|
+
nativeName: "Deutschland",
|
|
15559
|
+
flag: "\u{1F1E9}\u{1F1EA}",
|
|
15560
|
+
theme: DE_THEME_CONFIG,
|
|
15561
|
+
coordinates: GERMANY_STATE_COORDINATES,
|
|
15562
|
+
mapCenter: GERMANY_MAP_CENTER,
|
|
15563
|
+
macroRegions: GERMANY_MACRO_REGIONS,
|
|
15564
|
+
geoJsonPath: "/maps/germany.geo.json",
|
|
15565
|
+
projection: "mercator",
|
|
15566
|
+
regionPropertyKey: "code",
|
|
15567
|
+
languages: [
|
|
15568
|
+
{ code: "de-DE", name: "German", nativeName: "Deutsch", primary: true }
|
|
15569
|
+
],
|
|
15570
|
+
currency: {
|
|
15571
|
+
code: "EUR",
|
|
15572
|
+
numeric: "978",
|
|
15573
|
+
symbol: "\u20AC",
|
|
15574
|
+
decimal: ",",
|
|
15575
|
+
thousands: ".",
|
|
15576
|
+
symbolPosition: "after",
|
|
15577
|
+
precision: 2
|
|
15578
|
+
},
|
|
15579
|
+
locale: {
|
|
15580
|
+
defaultLocale: "de-DE",
|
|
15581
|
+
dateFormat: "dd.MM.yyyy",
|
|
15582
|
+
timeFormat: "24h",
|
|
15583
|
+
firstDayOfWeek: 1,
|
|
15584
|
+
measurementSystem: "metric"
|
|
15585
|
+
},
|
|
15586
|
+
address: {
|
|
15587
|
+
fields: ["street", "number", "postalCode", "city"],
|
|
15588
|
+
template: "{street} {number}\n{postalCode} {city}",
|
|
15589
|
+
postalCodeLabel: "PLZ",
|
|
15590
|
+
postalCodePattern: "^\\d{5}$",
|
|
15591
|
+
stateLabel: "Bundesland"
|
|
15592
|
+
},
|
|
15593
|
+
tax: {
|
|
15594
|
+
name: "MwSt",
|
|
15595
|
+
standardRate: 19
|
|
15596
|
+
}
|
|
15597
|
+
});
|
|
15598
|
+
registerCountry({
|
|
15599
|
+
code: "FR",
|
|
15600
|
+
name: "France",
|
|
15601
|
+
nativeName: "France",
|
|
15602
|
+
flag: "\u{1F1EB}\u{1F1F7}",
|
|
15603
|
+
theme: FR_THEME_CONFIG,
|
|
15604
|
+
coordinates: FRANCE_REGION_COORDINATES,
|
|
15605
|
+
mapCenter: FRANCE_MAP_CENTER,
|
|
15606
|
+
macroRegions: FRANCE_MACRO_REGIONS,
|
|
15607
|
+
geoJsonPath: "/maps/france.geo.json",
|
|
15608
|
+
projection: "mercator",
|
|
15609
|
+
regionPropertyKey: "code",
|
|
15610
|
+
languages: [
|
|
15611
|
+
{ code: "fr-FR", name: "French", nativeName: "Fran\xE7ais", primary: true }
|
|
15612
|
+
],
|
|
15613
|
+
currency: {
|
|
15614
|
+
code: "EUR",
|
|
15615
|
+
numeric: "978",
|
|
15616
|
+
symbol: "\u20AC",
|
|
15617
|
+
decimal: ",",
|
|
15618
|
+
thousands: "\u202F",
|
|
15619
|
+
symbolPosition: "after",
|
|
15620
|
+
precision: 2
|
|
15621
|
+
},
|
|
15622
|
+
locale: {
|
|
15623
|
+
defaultLocale: "fr-FR",
|
|
15624
|
+
dateFormat: "dd/MM/yyyy",
|
|
15625
|
+
timeFormat: "24h",
|
|
15626
|
+
firstDayOfWeek: 1,
|
|
15627
|
+
measurementSystem: "metric"
|
|
15628
|
+
},
|
|
15629
|
+
address: {
|
|
15630
|
+
fields: ["street", "number", "postalCode", "city"],
|
|
15631
|
+
template: "{number} {street}\n{postalCode} {city}",
|
|
15632
|
+
postalCodeLabel: "Code Postal",
|
|
15633
|
+
postalCodePattern: "^\\d{5}$",
|
|
15634
|
+
stateLabel: "R\xE9gion"
|
|
15635
|
+
},
|
|
15636
|
+
tax: {
|
|
15637
|
+
name: "TVA",
|
|
15638
|
+
standardRate: 20
|
|
15639
|
+
}
|
|
15640
|
+
});
|
|
15641
|
+
registerCountry({
|
|
15642
|
+
code: "ES",
|
|
15643
|
+
name: "Spain",
|
|
15644
|
+
nativeName: "Espa\xF1a",
|
|
15645
|
+
flag: "\u{1F1EA}\u{1F1F8}",
|
|
15646
|
+
theme: ES_THEME_CONFIG,
|
|
15647
|
+
coordinates: SPAIN_PROVINCE_COORDINATES,
|
|
15648
|
+
mapCenter: SPAIN_MAP_CENTER,
|
|
15649
|
+
macroRegions: SPAIN_MACRO_REGIONS,
|
|
15650
|
+
geoJsonPath: "/maps/spain.geo.json",
|
|
15651
|
+
projection: "mercator",
|
|
15652
|
+
regionPropertyKey: "code",
|
|
15653
|
+
languages: [
|
|
15654
|
+
{ code: "es-ES", name: "Spanish", nativeName: "Espa\xF1ol", primary: true },
|
|
15655
|
+
{ code: "ca", name: "Catalan", nativeName: "Catal\xE0" },
|
|
15656
|
+
{ code: "eu", name: "Basque", nativeName: "Euskara" },
|
|
15657
|
+
{ code: "gl", name: "Galician", nativeName: "Galego" }
|
|
15658
|
+
],
|
|
15659
|
+
currency: {
|
|
15660
|
+
code: "EUR",
|
|
15661
|
+
numeric: "978",
|
|
15662
|
+
symbol: "\u20AC",
|
|
15663
|
+
decimal: ",",
|
|
15664
|
+
thousands: ".",
|
|
15665
|
+
symbolPosition: "after",
|
|
15666
|
+
precision: 2
|
|
15667
|
+
},
|
|
15668
|
+
locale: {
|
|
15669
|
+
defaultLocale: "es-ES",
|
|
15670
|
+
dateFormat: "dd/MM/yyyy",
|
|
15671
|
+
timeFormat: "24h",
|
|
15672
|
+
firstDayOfWeek: 1,
|
|
15673
|
+
measurementSystem: "metric"
|
|
15674
|
+
},
|
|
15675
|
+
address: {
|
|
15676
|
+
fields: ["street", "number", "floor", "door", "postalCode", "city", "province"],
|
|
15677
|
+
template: "{street} {number}, {floor} {door}\n{postalCode} {city} ({province})",
|
|
15678
|
+
postalCodeLabel: "C\xF3digo Postal",
|
|
15679
|
+
postalCodePattern: "^\\d{5}$",
|
|
15680
|
+
stateLabel: "Provincia"
|
|
15681
|
+
},
|
|
15682
|
+
tax: {
|
|
15683
|
+
name: "IVA",
|
|
15684
|
+
standardRate: 21
|
|
15685
|
+
}
|
|
15686
|
+
});
|
|
15687
|
+
registerCountry({
|
|
15688
|
+
code: "IT",
|
|
15689
|
+
name: "Italy",
|
|
15690
|
+
nativeName: "Italia",
|
|
15691
|
+
flag: "\u{1F1EE}\u{1F1F9}",
|
|
15692
|
+
theme: IT_THEME_CONFIG,
|
|
15693
|
+
coordinates: ITALY_REGION_COORDINATES,
|
|
15694
|
+
mapCenter: ITALY_MAP_CENTER,
|
|
15695
|
+
macroRegions: ITALY_MACRO_REGIONS,
|
|
15696
|
+
geoJsonPath: "/maps/italy.geo.json",
|
|
15697
|
+
projection: "mercator",
|
|
15698
|
+
regionPropertyKey: "code",
|
|
15699
|
+
languages: [
|
|
15700
|
+
{ code: "it-IT", name: "Italian", nativeName: "Italiano", primary: true }
|
|
15701
|
+
],
|
|
15702
|
+
currency: {
|
|
15703
|
+
code: "EUR",
|
|
15704
|
+
numeric: "978",
|
|
15705
|
+
symbol: "\u20AC",
|
|
15706
|
+
decimal: ",",
|
|
15707
|
+
thousands: ".",
|
|
15708
|
+
symbolPosition: "after",
|
|
15709
|
+
precision: 2
|
|
15710
|
+
},
|
|
15711
|
+
locale: {
|
|
15712
|
+
defaultLocale: "it-IT",
|
|
15713
|
+
dateFormat: "dd/MM/yyyy",
|
|
15714
|
+
timeFormat: "24h",
|
|
15715
|
+
firstDayOfWeek: 1,
|
|
15716
|
+
measurementSystem: "metric"
|
|
15717
|
+
},
|
|
15718
|
+
address: {
|
|
15719
|
+
fields: ["street", "number", "postalCode", "city", "province"],
|
|
15720
|
+
template: "{street} {number}\n{postalCode} {city} ({province})",
|
|
15721
|
+
postalCodeLabel: "CAP",
|
|
15722
|
+
postalCodePattern: "^\\d{5}$",
|
|
15723
|
+
stateLabel: "Provincia"
|
|
15724
|
+
},
|
|
15725
|
+
tax: {
|
|
15726
|
+
name: "IVA",
|
|
15727
|
+
standardRate: 22
|
|
15728
|
+
}
|
|
15729
|
+
});
|
|
15730
|
+
registerCountry({
|
|
15731
|
+
code: "GB",
|
|
15732
|
+
name: "United Kingdom",
|
|
15733
|
+
nativeName: "United Kingdom",
|
|
15734
|
+
flag: "\u{1F1EC}\u{1F1E7}",
|
|
15735
|
+
theme: GB_THEME_CONFIG,
|
|
15736
|
+
coordinates: UK_NATION_COORDINATES,
|
|
15737
|
+
mapCenter: UK_MAP_CENTER,
|
|
15738
|
+
macroRegions: UK_MACRO_REGIONS,
|
|
15739
|
+
geoJsonPath: "/maps/united-kingdom.geo.json",
|
|
15740
|
+
projection: "mercator",
|
|
15741
|
+
regionPropertyKey: "code",
|
|
15742
|
+
languages: [
|
|
15743
|
+
{ code: "en-GB", name: "English", nativeName: "English", primary: true },
|
|
15744
|
+
{ code: "cy", name: "Welsh", nativeName: "Cymraeg" },
|
|
15745
|
+
{ code: "gd", name: "Scottish Gaelic", nativeName: "G\xE0idhlig" }
|
|
15746
|
+
],
|
|
15747
|
+
currency: {
|
|
15748
|
+
code: "GBP",
|
|
15749
|
+
numeric: "826",
|
|
15750
|
+
symbol: "\xA3",
|
|
15751
|
+
decimal: ".",
|
|
15752
|
+
thousands: ",",
|
|
15753
|
+
symbolPosition: "before",
|
|
15754
|
+
precision: 2
|
|
15755
|
+
},
|
|
15756
|
+
locale: {
|
|
15757
|
+
defaultLocale: "en-GB",
|
|
15758
|
+
dateFormat: "dd/MM/yyyy",
|
|
15759
|
+
timeFormat: "24h",
|
|
15760
|
+
firstDayOfWeek: 1,
|
|
15761
|
+
measurementSystem: "metric"
|
|
15762
|
+
},
|
|
15763
|
+
address: {
|
|
15764
|
+
fields: ["street", "number", "city", "county", "postalCode"],
|
|
15765
|
+
template: "{number} {street}\n{city}\n{county}\n{postalCode}",
|
|
15766
|
+
postalCodeLabel: "Postcode",
|
|
15767
|
+
postalCodePattern: "^[A-Z]{1,2}\\d[A-Z\\d]?\\s?\\d[A-Z]{2}$",
|
|
15768
|
+
stateLabel: "County"
|
|
15769
|
+
},
|
|
15770
|
+
tax: {
|
|
15771
|
+
name: "VAT",
|
|
15772
|
+
standardRate: 20
|
|
15773
|
+
}
|
|
15774
|
+
});
|
|
15775
|
+
registerCountry({
|
|
15776
|
+
code: "PT",
|
|
15777
|
+
name: "Portugal",
|
|
15778
|
+
nativeName: "Portugal",
|
|
15779
|
+
flag: "\u{1F1F5}\u{1F1F9}",
|
|
15780
|
+
theme: PT_THEME_CONFIG,
|
|
15781
|
+
coordinates: PORTUGAL_DISTRICT_COORDINATES,
|
|
15782
|
+
mapCenter: PORTUGAL_MAP_CENTER,
|
|
15783
|
+
macroRegions: PORTUGAL_MACRO_REGIONS,
|
|
15784
|
+
geoJsonPath: "/maps/portugal.geo.json",
|
|
15785
|
+
projection: "mercator",
|
|
15786
|
+
regionPropertyKey: "code",
|
|
15787
|
+
languages: [
|
|
15788
|
+
{ code: "pt-PT", name: "Portuguese", nativeName: "Portugu\xEAs", primary: true }
|
|
15789
|
+
],
|
|
15790
|
+
currency: {
|
|
15791
|
+
code: "EUR",
|
|
15792
|
+
numeric: "978",
|
|
15793
|
+
symbol: "\u20AC",
|
|
15794
|
+
decimal: ",",
|
|
15795
|
+
thousands: ".",
|
|
15796
|
+
symbolPosition: "after",
|
|
15797
|
+
precision: 2
|
|
15798
|
+
},
|
|
15799
|
+
locale: {
|
|
15800
|
+
defaultLocale: "pt-PT",
|
|
15801
|
+
dateFormat: "dd/MM/yyyy",
|
|
15802
|
+
timeFormat: "24h",
|
|
15803
|
+
firstDayOfWeek: 1,
|
|
15804
|
+
measurementSystem: "metric"
|
|
15805
|
+
},
|
|
15806
|
+
address: {
|
|
15807
|
+
fields: ["street", "number", "floor", "postalCode", "city", "district"],
|
|
15808
|
+
template: "{street} {number}, {floor}\n{postalCode} {city}",
|
|
15809
|
+
postalCodeLabel: "C\xF3digo Postal",
|
|
15810
|
+
postalCodePattern: "^\\d{4}-\\d{3}$",
|
|
15811
|
+
stateLabel: "Distrito"
|
|
15812
|
+
},
|
|
15813
|
+
tax: {
|
|
15814
|
+
name: "IVA",
|
|
15815
|
+
standardRate: 23
|
|
15816
|
+
}
|
|
15817
|
+
});
|
|
15818
|
+
registerCountry({
|
|
15819
|
+
code: "AU",
|
|
15820
|
+
name: "Australia",
|
|
15821
|
+
nativeName: "Australia",
|
|
15822
|
+
flag: "\u{1F1E6}\u{1F1FA}",
|
|
15823
|
+
theme: AU_THEME_CONFIG,
|
|
15824
|
+
coordinates: AUSTRALIA_STATE_COORDINATES,
|
|
15825
|
+
mapCenter: AUSTRALIA_MAP_CENTER,
|
|
15826
|
+
macroRegions: AUSTRALIA_MACRO_REGIONS,
|
|
15827
|
+
geoJsonPath: "/maps/australia.geo.json",
|
|
15828
|
+
projection: "mercator",
|
|
15829
|
+
regionPropertyKey: "code",
|
|
15830
|
+
languages: [
|
|
15831
|
+
{ code: "en-AU", name: "English", nativeName: "English", primary: true }
|
|
15832
|
+
],
|
|
15833
|
+
currency: {
|
|
15834
|
+
code: "AUD",
|
|
15835
|
+
numeric: "036",
|
|
15836
|
+
symbol: "A$",
|
|
15837
|
+
decimal: ".",
|
|
15838
|
+
thousands: ",",
|
|
15839
|
+
symbolPosition: "before",
|
|
15840
|
+
precision: 2
|
|
15841
|
+
},
|
|
15842
|
+
locale: {
|
|
15843
|
+
defaultLocale: "en-AU",
|
|
15844
|
+
dateFormat: "dd/MM/yyyy",
|
|
15845
|
+
timeFormat: "12h",
|
|
15846
|
+
firstDayOfWeek: 0,
|
|
15847
|
+
measurementSystem: "metric"
|
|
15848
|
+
},
|
|
15849
|
+
address: {
|
|
15850
|
+
fields: ["street", "number", "suburb", "state", "postalCode"],
|
|
15851
|
+
template: "{number} {street}\n{suburb} {state} {postalCode}",
|
|
15852
|
+
postalCodeLabel: "Postcode",
|
|
15853
|
+
postalCodePattern: "^\\d{4}$",
|
|
15854
|
+
stateLabel: "State"
|
|
15855
|
+
},
|
|
15856
|
+
tax: {
|
|
15857
|
+
name: "GST",
|
|
15858
|
+
standardRate: 10
|
|
15859
|
+
}
|
|
15860
|
+
});
|
|
15861
|
+
registerCountry({
|
|
15862
|
+
code: "JP",
|
|
15863
|
+
name: "Japan",
|
|
15864
|
+
nativeName: "\u65E5\u672C",
|
|
15865
|
+
flag: "\u{1F1EF}\u{1F1F5}",
|
|
15866
|
+
theme: JP_THEME_CONFIG,
|
|
15867
|
+
coordinates: JAPAN_PREFECTURE_COORDINATES,
|
|
15868
|
+
mapCenter: JAPAN_MAP_CENTER,
|
|
15869
|
+
macroRegions: JAPAN_MACRO_REGIONS,
|
|
15870
|
+
geoJsonPath: "/maps/japan.geo.json",
|
|
15871
|
+
projection: "mercator",
|
|
15872
|
+
regionPropertyKey: "code",
|
|
15873
|
+
languages: [
|
|
15874
|
+
{ code: "ja", name: "Japanese", nativeName: "\u65E5\u672C\u8A9E", primary: true }
|
|
15875
|
+
],
|
|
15876
|
+
currency: {
|
|
15877
|
+
code: "JPY",
|
|
15878
|
+
numeric: "392",
|
|
15879
|
+
symbol: "\xA5",
|
|
15880
|
+
decimal: ".",
|
|
15881
|
+
thousands: ",",
|
|
15882
|
+
symbolPosition: "before",
|
|
15883
|
+
precision: 0
|
|
15884
|
+
},
|
|
15885
|
+
locale: {
|
|
15886
|
+
defaultLocale: "ja-JP",
|
|
15887
|
+
dateFormat: "yyyy/MM/dd",
|
|
15888
|
+
timeFormat: "24h",
|
|
15889
|
+
firstDayOfWeek: 0,
|
|
15890
|
+
measurementSystem: "metric"
|
|
15891
|
+
},
|
|
15892
|
+
address: {
|
|
15893
|
+
fields: ["postalCode", "prefecture", "city", "district", "block", "building"],
|
|
15894
|
+
template: "\u3012{postalCode}\n{prefecture}{city}{district}{block}\n{building}",
|
|
15895
|
+
postalCodeLabel: "\u90F5\u4FBF\u756A\u53F7",
|
|
15896
|
+
postalCodePattern: "^\\d{3}-?\\d{4}$",
|
|
15897
|
+
stateLabel: "Prefecture"
|
|
15898
|
+
},
|
|
15899
|
+
tax: {
|
|
15900
|
+
name: "Consumption Tax",
|
|
15901
|
+
standardRate: 10
|
|
15902
|
+
}
|
|
15903
|
+
});
|
|
15904
|
+
registerCountry({
|
|
15905
|
+
code: "IN",
|
|
15906
|
+
name: "India",
|
|
15907
|
+
nativeName: "\u092D\u093E\u0930\u0924",
|
|
15908
|
+
flag: "\u{1F1EE}\u{1F1F3}",
|
|
15909
|
+
theme: IN_THEME_CONFIG,
|
|
15910
|
+
coordinates: INDIA_STATE_COORDINATES,
|
|
15911
|
+
mapCenter: INDIA_MAP_CENTER,
|
|
15912
|
+
macroRegions: INDIA_MACRO_REGIONS,
|
|
15913
|
+
geoJsonPath: "/maps/india.geo.json",
|
|
15914
|
+
projection: "mercator",
|
|
15915
|
+
regionPropertyKey: "code",
|
|
15916
|
+
languages: [
|
|
15917
|
+
{ code: "hi", name: "Hindi", nativeName: "\u0939\u093F\u0928\u094D\u0926\u0940", primary: true },
|
|
15918
|
+
{ code: "en-IN", name: "English", nativeName: "English" },
|
|
15919
|
+
{ code: "ta", name: "Tamil", nativeName: "\u0BA4\u0BAE\u0BBF\u0BB4\u0BCD" },
|
|
15920
|
+
{ code: "te", name: "Telugu", nativeName: "\u0C24\u0C46\u0C32\u0C41\u0C17\u0C41" },
|
|
15921
|
+
{ code: "bn", name: "Bengali", nativeName: "\u09AC\u09BE\u0982\u09B2\u09BE" },
|
|
15922
|
+
{ code: "mr", name: "Marathi", nativeName: "\u092E\u0930\u093E\u0920\u0940" }
|
|
15923
|
+
],
|
|
15924
|
+
currency: {
|
|
15925
|
+
code: "INR",
|
|
15926
|
+
numeric: "356",
|
|
15927
|
+
symbol: "\u20B9",
|
|
15928
|
+
decimal: ".",
|
|
15929
|
+
thousands: ",",
|
|
15930
|
+
symbolPosition: "before",
|
|
15931
|
+
precision: 2
|
|
15932
|
+
},
|
|
15933
|
+
locale: {
|
|
15934
|
+
defaultLocale: "en-IN",
|
|
15935
|
+
dateFormat: "dd/MM/yyyy",
|
|
15936
|
+
timeFormat: "12h",
|
|
15937
|
+
firstDayOfWeek: 0,
|
|
15938
|
+
measurementSystem: "metric"
|
|
15939
|
+
},
|
|
15940
|
+
address: {
|
|
15941
|
+
fields: ["street", "landmark", "city", "state", "postalCode"],
|
|
15942
|
+
template: "{street}\n{landmark}\n{city}, {state} {postalCode}",
|
|
15943
|
+
postalCodeLabel: "PIN Code",
|
|
15944
|
+
postalCodePattern: "^\\d{6}$",
|
|
15945
|
+
stateLabel: "State"
|
|
15946
|
+
},
|
|
15947
|
+
tax: {
|
|
15948
|
+
name: "GST",
|
|
15949
|
+
standardRate: 18,
|
|
15950
|
+
subdivisionRates: {
|
|
15951
|
+
AN: 0,
|
|
15952
|
+
CH: 18,
|
|
15953
|
+
DD: 18,
|
|
15954
|
+
DL: 18,
|
|
15955
|
+
GA: 18,
|
|
15956
|
+
GJ: 18,
|
|
15957
|
+
HP: 18,
|
|
15958
|
+
JK: 18,
|
|
15959
|
+
JH: 18,
|
|
15960
|
+
KA: 18,
|
|
15961
|
+
KL: 18,
|
|
15962
|
+
LA: 0,
|
|
15963
|
+
LD: 0,
|
|
15964
|
+
MH: 18,
|
|
15965
|
+
ML: 18,
|
|
15966
|
+
MN: 18,
|
|
15967
|
+
MP: 18,
|
|
15968
|
+
MZ: 18,
|
|
15969
|
+
NL: 18,
|
|
15970
|
+
OR: 18,
|
|
15971
|
+
PB: 18,
|
|
15972
|
+
PY: 18,
|
|
15973
|
+
RJ: 18,
|
|
15974
|
+
SK: 18,
|
|
15975
|
+
TN: 18,
|
|
15976
|
+
TG: 18,
|
|
15977
|
+
TR: 18,
|
|
15978
|
+
UP: 18,
|
|
15979
|
+
UK: 18,
|
|
15980
|
+
WB: 18,
|
|
15981
|
+
AP: 18,
|
|
15982
|
+
AR: 18,
|
|
15983
|
+
AS: 18,
|
|
15984
|
+
BR: 18,
|
|
15985
|
+
CT: 18,
|
|
15986
|
+
HR: 18
|
|
15987
|
+
}
|
|
15988
|
+
}
|
|
15989
|
+
});
|
|
15990
|
+
registerCountry({
|
|
15991
|
+
code: "ZA",
|
|
15992
|
+
name: "South Africa",
|
|
15993
|
+
nativeName: "South Africa",
|
|
15994
|
+
flag: "\u{1F1FF}\u{1F1E6}",
|
|
15995
|
+
theme: ZA_THEME_CONFIG,
|
|
15996
|
+
coordinates: SOUTH_AFRICA_PROVINCE_COORDINATES,
|
|
15997
|
+
mapCenter: SOUTH_AFRICA_MAP_CENTER,
|
|
15998
|
+
macroRegions: SOUTH_AFRICA_MACRO_REGIONS,
|
|
15999
|
+
geoJsonPath: "/maps/south-africa.geo.json",
|
|
16000
|
+
projection: "mercator",
|
|
16001
|
+
regionPropertyKey: "code",
|
|
16002
|
+
languages: [
|
|
16003
|
+
{ code: "en-ZA", name: "English", nativeName: "English", primary: true },
|
|
16004
|
+
{ code: "af", name: "Afrikaans", nativeName: "Afrikaans" },
|
|
16005
|
+
{ code: "zu", name: "Zulu", nativeName: "isiZulu" },
|
|
16006
|
+
{ code: "xh", name: "Xhosa", nativeName: "isiXhosa" }
|
|
16007
|
+
],
|
|
16008
|
+
currency: {
|
|
16009
|
+
code: "ZAR",
|
|
16010
|
+
numeric: "710",
|
|
16011
|
+
symbol: "R",
|
|
16012
|
+
decimal: ".",
|
|
16013
|
+
thousands: ",",
|
|
16014
|
+
symbolPosition: "before",
|
|
16015
|
+
precision: 2
|
|
16016
|
+
},
|
|
16017
|
+
locale: {
|
|
16018
|
+
defaultLocale: "en-ZA",
|
|
16019
|
+
dateFormat: "yyyy/MM/dd",
|
|
16020
|
+
timeFormat: "24h",
|
|
16021
|
+
firstDayOfWeek: 0,
|
|
16022
|
+
measurementSystem: "metric"
|
|
16023
|
+
},
|
|
16024
|
+
address: {
|
|
16025
|
+
fields: ["street", "number", "suburb", "city", "province", "postalCode"],
|
|
16026
|
+
template: "{number} {street}\n{suburb}\n{city}\n{province}\n{postalCode}",
|
|
16027
|
+
postalCodeLabel: "Postal Code",
|
|
16028
|
+
postalCodePattern: "^\\d{4}$",
|
|
16029
|
+
stateLabel: "Province"
|
|
16030
|
+
},
|
|
16031
|
+
tax: {
|
|
16032
|
+
name: "VAT",
|
|
16033
|
+
standardRate: 15
|
|
16034
|
+
}
|
|
16035
|
+
});
|
|
12937
16036
|
function DataPagination({
|
|
12938
16037
|
pagination,
|
|
12939
16038
|
onUpdate,
|
|
@@ -17365,6 +20464,6 @@ function SkipToContent({
|
|
|
17365
20464
|
);
|
|
17366
20465
|
}
|
|
17367
20466
|
|
|
17368
|
-
export { ActionMenu, ActionSheet, ActiveFilterChips, AnalysisSkeleton, AnimatedNumber, AnimatedTableRow, AppLogo, AppNavigation, AppShell, ArchiveSwipeAction, AuthLayout, Avatar, AvatarButton, BRAZIL_ACCENT_MAP, BRAZIL_MACRO_REGIONS, BRAZIL_MAP_CENTER, BRAZIL_STATE_COORDINATES, BRAZIL_STATE_PALETTES, BR_THEME_CONFIG, BackupCodeGrid, BadRequestPage, Badge, BaseForm, BentoCard, BooleanFlagsPicker, BottomSafeArea, BrandFilterSkeleton, BrandedLoader, Breadcrumb, Button, Card, CardActionMenu, CardContent, CardDescription, CardDivider, CardFooter, CardGridSkeleton, CardHeader, CardSectionHeader, CardTitle, CategoryBadge, CategoryTab, CategoryTabs, ChipPicker, CircularRefreshIndicator, Code, CollapsibleGroupedList, CompactSegmentedControl, ContactCard, ContactSection, Container, ContextMenu, CookieConsent, CopyableId, CountPill, CreateActionButton, DashboardProgressShell, DataPagination, DatePicker, DeleteSwipeAction, Description4 as Description, DetailsPopover, DevModeBanner, Dialog4 as Dialog, DialogActions, DialogBody, DialogDescription, DialogTitle3 as DialogTitle, Divider, Dock, DockContainer, DockSkeleton, DotRefreshIndicator, Dropdown, DropdownButton, DropdownDivider, DropdownItem, DropdownLabel, DropdownMenu, DropdownSelect, DynamicIsland, DynamicIslandConfirm, DynamicIslandNotification, EdgeSwipeIndicator, EdgeSwipeProvider, EditSwipeAction, EmptyState, EntityCard, EntityDrawer, ErrorMessage, ErrorState, ExpandableHistoryList, ExpandingPageIndicator, FUEL_PRICE_LOADER, FavoriteSwipeAction, FeatureCard, FeedItemCard, Field2 as Field, FieldGroup, Fieldset2 as Fieldset, FilterBadge, FilterPill, FilterSectionHeader, FilterTileButton, FloatingActionButton, FlyoutMenu, FlyoutNavGrid, FlyoutQuickActions, ForceTouchMenu, Form, FormActions, FormActionsRow, FormCheckbox, FormField, FormGrid, FormInput, FormPriceInput, FormSection, FormSelect, FormTextarea, FormToggle, GeoMapCanvas, GeoMapLegend, GlassDetailModal, GlassFormModal, GlassModal, GlassModalShell, Gradient, GradientBackground, GrowthIndicator, Heading, HeroPanel, HeroSection, IconButton, ImageUpload, InfoPopover, InlineForm, InlineSpinner, Input, InteractiveGeoMap, ItemSummary, KORI_ERP_LOADER, Label2 as Label, LabeledToggle, LanguageSwitcher, LaunchpadGrid, Lead, Legend2 as Legend, LiquidFilterInput, ListCard, ListCardItem, ListItem, LoadingOverlay, ManagementPageLayout, ManagementSurface, MapZoomControls, MetricCard, MonthPicker, MultiColumnPicker, NavigationProgress, NoDataState, NoResultsState, NotFoundPage, NotificationBadge, NotificationBellButton, NotificationProvider, OfficeCard, OfflineState, OptionGrid, OtpInput, PageEmptyState, PageHeader, PageHeading, PageIndicator, PageLoadingState, PageSectionHeader, Pagination, PasswordInput, PasswordStrengthMeter, Pill, PlatformShell, PlusGrid, PlusGridItem, PlusGridRow, PreferenceSection, PriceChangeBadge, ProfileIdentityCard, Progress, ProgressIndicator, PullToRefreshContainer, PullToRefreshIndicator, RadiantHeading, RadiantStatCard, RadiantSubheading, RegionFilterSkeleton, RoleBadge, SafeArea, SafeAreaSpacer, SafeAreaView, SearchBar, SearchFilterToolbar, SearchInput, SectionCard, SectionHeader, SectionHeaderSkeleton, SegmentedControl, Select, SelectableChipPicker, SelectableListPicker, SelectableOptionsGrid, SelectableTableRow, SelectionCard, ServerErrorPage, SettingsDialog, SettingsModal, Sheet, SkipToContent, SocialLoginButtons, SortableTableHeader, Spinner, Stat, StatCard, StatCardSkeleton, StatusBadge, StatusToggle, StepFormPage, StepNavigationButtons, StepTimeline, Strong, Subheading, SwipeableRow, Switch2 as Switch, Table, TableBody, TableCell, TableEmptyState, TableHead, TableHeader, TableRow, TableSkeleton, TableSkeletonRow, Tabs, TabsContent, TabsList, TabsTrigger, TagBadge, Text, TextLink, Textarea, ThemeSwitch, ThemeToggle, ThemeToggleCompact, TimePicker, ToggleSwitch, TouchTarget, US_ACCENT_MAP, US_MACRO_REGIONS, US_MAP_CENTER, US_STATE_COORDINATES, US_STATE_PALETTES, US_THEME_CONFIG, UserAvatar, UserMobileInfo, WINDSOCK_LOADER, WIRE_LOADER, WheelPicker, WindsockIcon, buildDockActions, buildFlyoutNavItems, buildLaunchpadItems, buttonPress, buttonPressReduced, buttonTap, cardHover, cardHoverReduced, cardPress, createMotionProps, durations, durationsReduced, easings, fadeOnly, fadeScale, filterByPermission, formatCurrency, formatDate, formatPercentage, getBrazilAccent, getBrazilColors, getBrazilFlagUrl, getBrazilGradient, getBrazilHexColor, getBrazilPalette, getStatusColor, getSubdivisionAccent, getSubdivisionColors, getSubdivisionFlagUrl, getSubdivisionGradient, getSubdivisionHexColor, getSubdivisionPalette, getTransition, getUsAccent, getUsColors, getUsFlagUrl, getUsGradient, getUsHexColor, getUsPalette, getVariants, iosColors, isValidBrazilState, isValidSubdivision, isValidUsState, listItem, listItemReduced, notificationBanner, notificationBannerReduced, pageControlDot, prefersReducedMotion, registerSubdivisionTheme, resolveGlassAccentRgb, selectIsAuthenticated, selectShowShellChrome, selectUserInitial, selectUserName, shimmerClass, shimmerWhiteClass, slideDown, slideRight, slideUp, springPresets, springPresetsReduced, staggerContainer, swipeActionThreshold, swipeConstraints, useGeoMapState, useNotifications, usePlatformShellStore, usePullToRefresh };
|
|
17369
|
-
//# sourceMappingURL=chunk-
|
|
17370
|
-
//# sourceMappingURL=chunk-
|
|
20467
|
+
export { ARGENTINA_ACCENT_MAP, ARGENTINA_MACRO_REGIONS, ARGENTINA_MAP_CENTER, ARGENTINA_PROVINCE_COORDINATES, ARGENTINA_PROVINCE_PALETTES, AR_THEME_CONFIG, AUSTRALIA_ACCENT_MAP, AUSTRALIA_MACRO_REGIONS, AUSTRALIA_MAP_CENTER, AUSTRALIA_STATE_COORDINATES, AUSTRALIA_STATE_PALETTES, AU_THEME_CONFIG, ActionMenu, ActionSheet, ActiveFilterChips, AnalysisSkeleton, AnimatedNumber, AnimatedTableRow, AppLogo, AppNavigation, AppShell, ArchiveSwipeAction, AuthLayout, Avatar, AvatarButton, BRAZIL_ACCENT_MAP, BRAZIL_MACRO_REGIONS, BRAZIL_MAP_CENTER, BRAZIL_STATE_COORDINATES, BRAZIL_STATE_PALETTES, BR_THEME_CONFIG, BackupCodeGrid, BadRequestPage, Badge, BaseForm, BentoCard, BooleanFlagsPicker, BottomSafeArea, BrandFilterSkeleton, BrandedLoader, Breadcrumb, Button, CANADA_ACCENT_MAP, CANADA_MACRO_REGIONS, CANADA_MAP_CENTER, CANADA_PROVINCE_COORDINATES, CANADA_PROVINCE_PALETTES, CA_THEME_CONFIG, CHILE_ACCENT_MAP, CHILE_MACRO_REGIONS, CHILE_MAP_CENTER, CHILE_REGION_COORDINATES, CHILE_REGION_PALETTES, CL_THEME_CONFIG, COLOMBIA_ACCENT_MAP, COLOMBIA_DEPARTMENT_COORDINATES, COLOMBIA_DEPARTMENT_PALETTES, COLOMBIA_MACRO_REGIONS, COLOMBIA_MAP_CENTER, CO_THEME_CONFIG, Card, CardActionMenu, CardContent, CardDescription, CardDivider, CardFooter, CardGridSkeleton, CardHeader, CardSectionHeader, CardTitle, CategoryBadge, CategoryTab, CategoryTabs, ChipPicker, CircularRefreshIndicator, Code, CollapsibleGroupedList, CompactSegmentedControl, ContactCard, ContactSection, Container, ContextMenu, CookieConsent, CopyableId, CountPill, CreateActionButton, DE_THEME_CONFIG, DashboardProgressShell, DataPagination, DatePicker, DeleteSwipeAction, Description4 as Description, DetailsPopover, DevModeBanner, Dialog4 as Dialog, DialogActions, DialogBody, DialogDescription, DialogTitle3 as DialogTitle, Divider, Dock, DockContainer, DockSkeleton, DotRefreshIndicator, Dropdown, DropdownButton, DropdownDivider, DropdownItem, DropdownLabel, DropdownMenu, DropdownSelect, DynamicIsland, DynamicIslandConfirm, DynamicIslandNotification, ES_THEME_CONFIG, EdgeSwipeIndicator, EdgeSwipeProvider, EditSwipeAction, EmptyState, EntityCard, EntityDrawer, ErrorMessage, ErrorState, ExpandableHistoryList, ExpandingPageIndicator, FRANCE_ACCENT_MAP, FRANCE_MACRO_REGIONS, FRANCE_MAP_CENTER, FRANCE_REGION_COORDINATES, FRANCE_REGION_PALETTES, FR_THEME_CONFIG, FUEL_PRICE_LOADER, FavoriteSwipeAction, FeatureCard, FeedItemCard, Field2 as Field, FieldGroup, Fieldset2 as Fieldset, FilterBadge, FilterPill, FilterSectionHeader, FilterTileButton, FloatingActionButton, FlyoutMenu, FlyoutNavGrid, FlyoutQuickActions, ForceTouchMenu, Form, FormActions, FormActionsRow, FormCheckbox, FormField, FormGrid, FormInput, FormPriceInput, FormSection, FormSelect, FormTextarea, FormToggle, GB_THEME_CONFIG, GERMANY_ACCENT_MAP, GERMANY_MACRO_REGIONS, GERMANY_MAP_CENTER, GERMANY_STATE_COORDINATES, GERMANY_STATE_PALETTES, GeoMapCanvas, GeoMapLegend, GlassDetailModal, GlassFormModal, GlassModal, GlassModalShell, Gradient, GradientBackground, GrowthIndicator, Heading, HeroPanel, HeroSection, INDIA_ACCENT_MAP, INDIA_MACRO_REGIONS, INDIA_MAP_CENTER, INDIA_STATE_COORDINATES, INDIA_STATE_PALETTES, IN_THEME_CONFIG, ITALY_ACCENT_MAP, ITALY_MACRO_REGIONS, ITALY_MAP_CENTER, ITALY_REGION_COORDINATES, ITALY_REGION_PALETTES, IT_THEME_CONFIG, IconButton, ImageUpload, InfoPopover, InlineForm, InlineSpinner, Input, InteractiveGeoMap, ItemSummary, JAPAN_ACCENT_MAP, JAPAN_MACRO_REGIONS, JAPAN_MAP_CENTER, JAPAN_PREFECTURE_COORDINATES, JAPAN_PREFECTURE_PALETTES, JP_THEME_CONFIG, KORI_ERP_LOADER, Label2 as Label, LabeledToggle, LanguageSwitcher, LaunchpadGrid, Lead, Legend2 as Legend, LiquidFilterInput, ListCard, ListCardItem, ListItem, LoadingOverlay, MEXICO_ACCENT_MAP, MEXICO_MACRO_REGIONS, MEXICO_MAP_CENTER, MEXICO_STATE_COORDINATES, MEXICO_STATE_PALETTES, MX_THEME_CONFIG, ManagementPageLayout, ManagementSurface, MapZoomControls, MetricCard, MonthPicker, MultiColumnPicker, NavigationProgress, NoDataState, NoResultsState, NotFoundPage, NotificationBadge, NotificationBellButton, NotificationProvider, OfficeCard, OfflineState, OptionGrid, OtpInput, PERU_ACCENT_MAP, PERU_DEPARTMENT_COORDINATES, PERU_DEPARTMENT_PALETTES, PERU_MACRO_REGIONS, PERU_MAP_CENTER, PE_THEME_CONFIG, PORTUGAL_ACCENT_MAP, PORTUGAL_DISTRICT_COORDINATES, PORTUGAL_DISTRICT_PALETTES, PORTUGAL_MACRO_REGIONS, PORTUGAL_MAP_CENTER, PT_THEME_CONFIG, PageEmptyState, PageHeader, PageHeading, PageIndicator, PageLoadingState, PageSectionHeader, Pagination, PasswordInput, PasswordStrengthMeter, Pill, PlatformShell, PlusGrid, PlusGridItem, PlusGridRow, PreferenceSection, PriceChangeBadge, ProfileIdentityCard, Progress, ProgressIndicator, PullToRefreshContainer, PullToRefreshIndicator, RadiantHeading, RadiantStatCard, RadiantSubheading, RegionFilterSkeleton, RoleBadge, SOUTH_AFRICA_ACCENT_MAP, SOUTH_AFRICA_MACRO_REGIONS, SOUTH_AFRICA_MAP_CENTER, SOUTH_AFRICA_PROVINCE_COORDINATES, SOUTH_AFRICA_PROVINCE_PALETTES, SPAIN_ACCENT_MAP, SPAIN_MACRO_REGIONS, SPAIN_MAP_CENTER, SPAIN_PROVINCE_COORDINATES, SPAIN_PROVINCE_PALETTES, SafeArea, SafeAreaSpacer, SafeAreaView, SearchBar, SearchFilterToolbar, SearchInput, SectionCard, SectionHeader, SectionHeaderSkeleton, SegmentedControl, Select, SelectableChipPicker, SelectableListPicker, SelectableOptionsGrid, SelectableTableRow, SelectionCard, ServerErrorPage, SettingsDialog, SettingsModal, Sheet, SkipToContent, SocialLoginButtons, SortableTableHeader, Spinner, Stat, StatCard, StatCardSkeleton, StatusBadge, StatusToggle, StepFormPage, StepNavigationButtons, StepTimeline, Strong, Subheading, SwipeableRow, Switch2 as Switch, Table, TableBody, TableCell, TableEmptyState, TableHead, TableHeader, TableRow, TableSkeleton, TableSkeletonRow, Tabs, TabsContent, TabsList, TabsTrigger, TagBadge, Text, TextLink, Textarea, ThemeSwitch, ThemeToggle, ThemeToggleCompact, TimePicker, ToggleSwitch, TouchTarget, UK_ACCENT_MAP, UK_MACRO_REGIONS, UK_MAP_CENTER, UK_NATION_COORDINATES, UK_NATION_PALETTES, US_ACCENT_MAP, US_MACRO_REGIONS, US_MAP_CENTER, US_STATE_COORDINATES, US_STATE_PALETTES, US_THEME_CONFIG, UserAvatar, UserMobileInfo, WINDSOCK_LOADER, WIRE_LOADER, WheelPicker, WindsockIcon, ZA_THEME_CONFIG, buildDockActions, buildFlyoutNavItems, buildLaunchpadItems, buttonPress, buttonPressReduced, buttonTap, cardHover, cardHoverReduced, cardPress, createMotionProps, durations, durationsReduced, easings, fadeOnly, fadeScale, filterByPermission, formatAddress, formatCurrency, formatCurrency2, formatDate, formatPercentage, getAllCountries, getArgentinaAccent, getArgentinaColors, getArgentinaFlagUrl, getArgentinaGradient, getArgentinaHexColor, getArgentinaPalette, getAustraliaAccent, getAustraliaColors, getAustraliaFlagUrl, getAustraliaGradient, getAustraliaHexColor, getAustraliaPalette, getBrazilAccent, getBrazilColors, getBrazilFlagUrl, getBrazilGradient, getBrazilHexColor, getBrazilPalette, getCanadaAccent, getCanadaColors, getCanadaFlagUrl, getCanadaGradient, getCanadaHexColor, getCanadaPalette, getChileAccent, getChileColors, getChileFlagUrl, getChileGradient, getChileHexColor, getChilePalette, getColombiaAccent, getColombiaColors, getColombiaFlagUrl, getColombiaGradient, getColombiaHexColor, getColombiaPalette, getCountryConfig, getFranceAccent, getFranceColors, getFranceFlagUrl, getFranceGradient, getFranceHexColor, getFrancePalette, getGermanyAccent, getGermanyColors, getGermanyFlagUrl, getGermanyGradient, getGermanyHexColor, getGermanyPalette, getIndiaAccent, getIndiaColors, getIndiaFlagUrl, getIndiaGradient, getIndiaHexColor, getIndiaPalette, getItalyAccent, getItalyColors, getItalyFlagUrl, getItalyGradient, getItalyHexColor, getItalyPalette, getJapanAccent, getJapanColors, getJapanFlagUrl, getJapanGradient, getJapanHexColor, getJapanPalette, getMexicoAccent, getMexicoColors, getMexicoFlagUrl, getMexicoGradient, getMexicoHexColor, getMexicoPalette, getPeruAccent, getPeruColors, getPeruFlagUrl, getPeruGradient, getPeruHexColor, getPeruPalette, getPortugalAccent, getPortugalColors, getPortugalFlagUrl, getPortugalGradient, getPortugalHexColor, getPortugalPalette, getSouthAfricaAccent, getSouthAfricaColors, getSouthAfricaFlagUrl, getSouthAfricaGradient, getSouthAfricaHexColor, getSouthAfricaPalette, getSpainAccent, getSpainColors, getSpainFlagUrl, getSpainGradient, getSpainHexColor, getSpainPalette, getStatusColor, getSubdivisionAccent, getSubdivisionColors, getSubdivisionFlagUrl, getSubdivisionGradient, getSubdivisionHexColor, getSubdivisionPalette, getTransition, getUKAccent, getUKColors, getUKFlagUrl, getUKGradient, getUKHexColor, getUKPalette, getUsAccent, getUsColors, getUsFlagUrl, getUsGradient, getUsHexColor, getUsPalette, getVariants, iosColors, isValidArgentinaProvince, isValidAustraliaState, isValidBrazilState, isValidCanadaProvince, isValidChileRegion, isValidColombiaDepartment, isValidFranceRegion, isValidGermanyState, isValidIndiaState, isValidItalyRegion, isValidJapanPrefecture, isValidMexicoState, isValidPeruDepartment, isValidPortugalDistrict, isValidSouthAfricaProvince, isValidSpainProvince, isValidSubdivision, isValidUKNation, isValidUsState, listItem, listItemReduced, notificationBanner, notificationBannerReduced, pageControlDot, prefersReducedMotion, registerCountry, registerSubdivisionTheme, resolveGlassAccentRgb, selectIsAuthenticated, selectShowShellChrome, selectUserInitial, selectUserName, shimmerClass, shimmerWhiteClass, slideDown, slideRight, slideUp, springPresets, springPresetsReduced, staggerContainer, swipeActionThreshold, swipeConstraints, useGeoMapState, useNotifications, usePlatformShellStore, usePullToRefresh };
|
|
20468
|
+
//# sourceMappingURL=chunk-SHKRLL36.mjs.map
|
|
20469
|
+
//# sourceMappingURL=chunk-SHKRLL36.mjs.map
|