@panneau/fields 5.0.0-alpha.11 → 5.0.0-alpha.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (99) hide show
  1. package/README.md +13 -1
  2. package/dist/country/CountryField.d.ts +17 -0
  3. package/dist/country/CountryField.d.ts.map +1 -0
  4. package/dist/country/CountryField.js +151 -0
  5. package/dist/country/CountryField.js.map +1 -0
  6. package/dist/country/codes.d.ts +6 -0
  7. package/dist/country/codes.d.ts.map +1 -0
  8. package/dist/country/codes.js +261 -0
  9. package/dist/country/codes.js.map +1 -0
  10. package/dist/country/countries.d.ts +32 -0
  11. package/dist/country/countries.d.ts.map +1 -0
  12. package/dist/country/countries.js +60 -0
  13. package/dist/country/countries.js.map +1 -0
  14. package/dist/country/index.d.ts +3 -0
  15. package/dist/country/index.d.ts.map +1 -0
  16. package/dist/country/index.js +4 -0
  17. package/dist/embed/EmbedField.js +1 -1
  18. package/dist/file/FileField.js +2 -2
  19. package/dist/group/GroupField.css +20 -3
  20. package/dist/group/GroupField.d.ts +2 -2
  21. package/dist/group/GroupField.d.ts.map +1 -1
  22. package/dist/group/GroupField.js +49 -36
  23. package/dist/group/GroupField.js.map +1 -1
  24. package/dist/group/GroupField.module.js +10 -2
  25. package/dist/group/GroupField.module.js.map +1 -1
  26. package/dist/index.d.ts +2 -0
  27. package/dist/index.d.ts.map +1 -1
  28. package/dist/index.js +3 -1
  29. package/dist/json/JsonField.js +1 -1
  30. package/dist/localized/LocalizedField.css +27 -6
  31. package/dist/localized/LocalizedField.d.ts +18 -7
  32. package/dist/localized/LocalizedField.d.ts.map +1 -1
  33. package/dist/localized/LocalizedField.js +236 -104
  34. package/dist/localized/LocalizedField.js.map +1 -1
  35. package/dist/localized/LocalizedField.module.js +10 -4
  36. package/dist/localized/LocalizedField.module.js.map +1 -1
  37. package/dist/location/LocationField.js +2 -2
  38. package/dist/region/RegionField.d.ts +22 -0
  39. package/dist/region/RegionField.d.ts.map +1 -0
  40. package/dist/region/RegionField.js +136 -0
  41. package/dist/region/RegionField.js.map +1 -0
  42. package/dist/region/data.d.ts +5 -0
  43. package/dist/region/data.d.ts.map +1 -0
  44. package/dist/region/data.js +513 -0
  45. package/dist/region/data.js.map +1 -0
  46. package/dist/region/index.d.ts +3 -0
  47. package/dist/region/index.d.ts.map +1 -0
  48. package/dist/region/index.js +3 -0
  49. package/dist/region/regions.d.ts +15 -0
  50. package/dist/region/regions.d.ts.map +1 -0
  51. package/dist/region/regions.js +29 -0
  52. package/dist/region/regions.js.map +1 -0
  53. package/dist/relation/RelationField.js +2 -2
  54. package/dist/repeater/RepeaterField.js +2 -2
  55. package/dist/shared/CodeComboBox.d.ts +20 -0
  56. package/dist/shared/CodeComboBox.d.ts.map +1 -0
  57. package/dist/shared/CodeComboBox.js +238 -0
  58. package/dist/shared/CodeComboBox.js.map +1 -0
  59. package/dist/shared/DefinitionField.d.ts +3 -1
  60. package/dist/shared/DefinitionField.d.ts.map +1 -1
  61. package/dist/shared/DefinitionField.js +81 -73
  62. package/dist/shared/DefinitionField.js.map +1 -1
  63. package/dist/shared/builtIn.d.ts.map +1 -1
  64. package/dist/shared/builtIn.js +5 -1
  65. package/dist/shared/builtIn.js.map +1 -1
  66. package/dist/shared/context.d.ts +5 -0
  67. package/dist/shared/context.d.ts.map +1 -1
  68. package/dist/shared/context.js.map +1 -1
  69. package/dist/shared/entry.d.ts +2 -2
  70. package/dist/shared/entry.d.ts.map +1 -1
  71. package/dist/shared/entry.js +5 -4
  72. package/dist/shared/entry.js.map +1 -1
  73. package/dist/shared/flow.d.ts +8 -0
  74. package/dist/shared/flow.d.ts.map +1 -0
  75. package/dist/shared/flow.js +37 -0
  76. package/dist/shared/flow.js.map +1 -0
  77. package/dist/shared/reveal.d.ts +16 -0
  78. package/dist/shared/reveal.d.ts.map +1 -0
  79. package/dist/shared/reveal.js +46 -0
  80. package/dist/shared/reveal.js.map +1 -0
  81. package/dist/shared/types.d.ts +10 -0
  82. package/dist/shared/types.d.ts.map +1 -1
  83. package/dist/slug/SlugField.js +2 -2
  84. package/dist/tel/TelField.d.ts +16 -5
  85. package/dist/tel/TelField.d.ts.map +1 -1
  86. package/dist/tel/TelField.js +253 -51
  87. package/dist/tel/TelField.js.map +1 -1
  88. package/dist/tel/index.d.ts +1 -0
  89. package/dist/tel/index.d.ts.map +1 -1
  90. package/dist/tel/index.js +3 -1
  91. package/dist/tel/phone.d.ts +31 -0
  92. package/dist/tel/phone.d.ts.map +1 -0
  93. package/dist/tel/phone.js +60 -0
  94. package/dist/tel/phone.js.map +1 -0
  95. package/dist/text/TextField.js +2 -2
  96. package/dist/upload/FilePicker.js +1 -1
  97. package/dist/upload/UploadList.js +1 -1
  98. package/dist/url/UrlField.js +1 -1
  99. package/package.json +15 -4
@@ -0,0 +1,136 @@
1
+ import { getFieldProps, getSetting, isString } from "../shared/entry.js";
2
+ import { messages } from "../shared/messages.js";
3
+ import { TextField } from "../text/TextField.js";
4
+ import { CodeComboBox } from "../shared/CodeComboBox.js";
5
+ import { getRegions } from "./regions.js";
6
+ import { c } from "react/compiler-runtime";
7
+ import { usePanneauIntl } from "@panneau/ui";
8
+ import { jsx } from "react/jsx-runtime";
9
+ //#region src/region/RegionField.tsx
10
+ /**
11
+ * A state, a province or a territory of a country. For the countries that Panneau knows the
12
+ * regions of, a combo box of their names in the user's locale, whose value is the code of the
13
+ * region without its country (`QC`). For the others, the region as typed.
14
+ */
15
+ function RegionField(t0) {
16
+ const $ = c(22);
17
+ let country;
18
+ let placeholder;
19
+ let props;
20
+ if ($[0] !== t0) {
21
+ ({country, placeholder, ...props} = t0);
22
+ $[0] = t0;
23
+ $[1] = country;
24
+ $[2] = placeholder;
25
+ $[3] = props;
26
+ } else {
27
+ country = $[1];
28
+ placeholder = $[2];
29
+ props = $[3];
30
+ }
31
+ const intl = usePanneauIntl();
32
+ let t1;
33
+ if ($[4] !== country || $[5] !== intl.locale) {
34
+ t1 = getRegions(country, intl.locale);
35
+ $[4] = country;
36
+ $[5] = intl.locale;
37
+ $[6] = t1;
38
+ } else t1 = $[6];
39
+ const regions = t1;
40
+ if (regions === null) {
41
+ let t2;
42
+ if ($[7] !== placeholder) {
43
+ t2 = placeholder !== void 0 ? { placeholder } : {};
44
+ $[7] = placeholder;
45
+ $[8] = t2;
46
+ } else t2 = $[8];
47
+ let t3;
48
+ if ($[9] !== props || $[10] !== t2) {
49
+ t3 = /* @__PURE__ */ jsx(TextField, {
50
+ autoComplete: "address-level1",
51
+ ...props,
52
+ ...t2
53
+ });
54
+ $[9] = props;
55
+ $[10] = t2;
56
+ $[11] = t3;
57
+ } else t3 = $[11];
58
+ return t3;
59
+ }
60
+ let t2;
61
+ if ($[12] !== intl || $[13] !== placeholder) {
62
+ t2 = placeholder ?? intl.formatMessage(messages.regionPlaceholder);
63
+ $[12] = intl;
64
+ $[13] = placeholder;
65
+ $[14] = t2;
66
+ } else t2 = $[14];
67
+ let t3;
68
+ if ($[15] !== intl) {
69
+ t3 = intl.formatMessage(messages.noRegions);
70
+ $[15] = intl;
71
+ $[16] = t3;
72
+ } else t3 = $[16];
73
+ let t4;
74
+ if ($[17] !== props || $[18] !== regions || $[19] !== t2 || $[20] !== t3) {
75
+ t4 = /* @__PURE__ */ jsx(CodeComboBox, {
76
+ ...props,
77
+ choices: regions,
78
+ placeholder: t2,
79
+ emptyMessage: t3
80
+ });
81
+ $[17] = props;
82
+ $[18] = regions;
83
+ $[19] = t2;
84
+ $[20] = t3;
85
+ $[21] = t4;
86
+ } else t4 = $[21];
87
+ return t4;
88
+ }
89
+ /**
90
+ * The country of a `region` field: the value of the field that `from` names in the same object,
91
+ * or `settings.country`.
92
+ */
93
+ function getRegionCountry(field, parentValue) {
94
+ if (field.from !== void 0 && parentValue !== null && typeof parentValue === "object") {
95
+ const country = parentValue[field.from];
96
+ if (isString(country) && country !== "") return country;
97
+ }
98
+ return getSetting(field, "country", isString) ?? null;
99
+ }
100
+ /** The `region` type: its country from `from` or `settings.country`. */
101
+ function RegionFieldEntry(props) {
102
+ const $ = c(10);
103
+ let t0;
104
+ if ($[0] !== props) {
105
+ t0 = getFieldProps(props);
106
+ $[0] = props;
107
+ $[1] = t0;
108
+ } else t0 = $[1];
109
+ let t1;
110
+ if ($[2] !== props.field || $[3] !== props.parentValue) {
111
+ t1 = getRegionCountry(props.field, props.parentValue);
112
+ $[2] = props.field;
113
+ $[3] = props.parentValue;
114
+ $[4] = t1;
115
+ } else t1 = $[4];
116
+ const t2 = isString(props.value) ? props.value : null;
117
+ let t3;
118
+ if ($[5] !== props.onChange || $[6] !== t0 || $[7] !== t1 || $[8] !== t2) {
119
+ t3 = /* @__PURE__ */ jsx(RegionField, {
120
+ ...t0,
121
+ country: t1,
122
+ value: t2,
123
+ onChange: props.onChange
124
+ });
125
+ $[5] = props.onChange;
126
+ $[6] = t0;
127
+ $[7] = t1;
128
+ $[8] = t2;
129
+ $[9] = t3;
130
+ } else t3 = $[9];
131
+ return t3;
132
+ }
133
+ //#endregion
134
+ export { RegionField, RegionFieldEntry, getRegionCountry };
135
+
136
+ //# sourceMappingURL=RegionField.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RegionField.js","names":["Field","usePanneauIntl","CodeComboBox","getFieldProps","getSetting","isString","messages","FieldEntryProps","FieldProps","TextField","getRegions","RegionFieldProps","country","placeholder","controlClassName","RegionField","t0","$","_c","props","intl","t1","locale","regions","t2","undefined","t3","formatMessage","regionPlaceholder","noRegions","t4","getRegionCountry","field","parentValue","from","Record","RegionFieldEntry","value","onChange","_c"],"sources":["../../src/region/RegionField.tsx"],"sourcesContent":["import type { Field } from '@panneau/protocol';\nimport { usePanneauIntl } from '@panneau/ui';\n\nimport { CodeComboBox } from '../shared/CodeComboBox';\nimport { getFieldProps, getSetting, isString } from '../shared/entry';\nimport { messages } from '../shared/messages';\nimport type { FieldEntryProps, FieldProps } from '../shared/types';\nimport { TextField } from '../text/TextField';\nimport { getRegions } from './regions';\n\nexport interface RegionFieldProps extends FieldProps<string> {\n /** The country of the region (`CA`). Without it, or for a country without known regions, a text. */\n country?: string | null;\n placeholder?: string;\n controlClassName?: string;\n}\n\n/**\n * A state, a province or a territory of a country. For the countries that Panneau knows the\n * regions of, a combo box of their names in the user's locale, whose value is the code of the\n * region without its country (`QC`). For the others, the region as typed.\n */\nexport function RegionField({ country, placeholder, ...props }: RegionFieldProps) {\n const intl = usePanneauIntl();\n const regions = getRegions(country, intl.locale);\n if (regions === null) {\n return (\n <TextField\n autoComplete=\"address-level1\"\n {...props}\n {...(placeholder !== undefined ? { placeholder } : {})}\n />\n );\n }\n return (\n <CodeComboBox\n {...props}\n choices={regions}\n placeholder={placeholder ?? intl.formatMessage(messages.regionPlaceholder)}\n emptyMessage={intl.formatMessage(messages.noRegions)}\n />\n );\n}\n\n/**\n * The country of a `region` field: the value of the field that `from` names in the same object,\n * or `settings.country`.\n */\nexport function getRegionCountry(field: Field, parentValue: unknown): string | null {\n if (field.from !== undefined && parentValue !== null && typeof parentValue === 'object') {\n const country = (parentValue as Record<string, unknown>)[field.from];\n if (isString(country) && country !== '') {\n return country;\n }\n }\n return getSetting(field, 'country', isString) ?? null;\n}\n\n/** The `region` type: its country from `from` or `settings.country`. */\nexport function RegionFieldEntry(props: FieldEntryProps) {\n return (\n <RegionField\n {...getFieldProps(props)}\n country={getRegionCountry(props.field, props.parentValue)}\n value={isString(props.value) ? props.value : null}\n onChange={props.onChange}\n />\n );\n}\n"],"mappings":";;;;;;;;;;;;;;AAsBA,SAAOe,YAAAC,IAAA;CAAA,MAAAC,IAAAC,EAAA,EAAA;CAAA,IAAAN;CAAA,IAAAC;CAAA,IAAAM;CAAA,IAAAF,EAAA,OAAAD,IAAA;EAAqB,CAAA,CAAAJ,SAAAC,aAAA,GAAAM,SAAAH;EAAoDC,EAAA,KAAAD;EAAAC,EAAA,KAAAL;EAAAK,EAAA,KAAAJ;EAAAI,EAAA,KAAAE;CAAA,OAAA;EAAAP,UAAAK,EAAA;EAAAJ,cAAAI,EAAA;E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B,EAAA,KAAAE,MAAAmB;EAAArB,EAAA,KAAAD;EAAAC,EAAA,KAAAI;EAAAJ,EAAA,KAAAO;EAAAP,EAAA,KAAAS;CAAA,OAAAA,KAAAT,EAAA;CAAA,OALFS;AAKE"}
@@ -0,0 +1,5 @@
1
+ /** A region: its code, its English name, and its French name when it differs. */
2
+ export type RegionEntry = readonly [code: string, en: string, fr?: string];
3
+ /** The regions of the countries that Panneau knows, by country code. */
4
+ export declare const REGIONS: Readonly<Record<string, readonly RegionEntry[]>>;
5
+ //# sourceMappingURL=data.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../src/region/data.ts"],"names":[],"mappings":"AAIA,iFAAiF;AACjF,MAAM,MAAM,WAAW,GAAG,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,MAAM,CAAC,CAAC;AAE3E,wEAAwE;AACxE,eAAO,MAAM,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,WAAW,EAAE,CAAC,CAsSpE,CAAC"}
@@ -0,0 +1,513 @@
1
+ //#region src/region/data.ts
2
+ /** The regions of the countries that Panneau knows, by country code. */
3
+ var REGIONS = {
4
+ AR: [
5
+ ["A", "Salta"],
6
+ [
7
+ "B",
8
+ "Buenos Aires Province",
9
+ "Province de Buenos Aires"
10
+ ],
11
+ ["C", "Buenos Aires"],
12
+ ["D", "San Luis"],
13
+ ["E", "Entre Ríos"],
14
+ ["F", "La Rioja"],
15
+ ["G", "Santiago del Estero"],
16
+ ["H", "Chaco"],
17
+ ["J", "San Juan"],
18
+ ["K", "Catamarca"],
19
+ ["L", "La Pampa"],
20
+ ["M", "Mendoza"],
21
+ ["N", "Misiones"],
22
+ ["P", "Formosa"],
23
+ ["Q", "Neuquén"],
24
+ ["R", "Río Negro"],
25
+ ["S", "Santa Fe"],
26
+ ["T", "Tucumán"],
27
+ ["U", "Chubut"],
28
+ [
29
+ "V",
30
+ "Tierra del Fuego",
31
+ "Terre de Feu"
32
+ ],
33
+ ["W", "Corrientes"],
34
+ ["X", "Córdoba"],
35
+ ["Y", "Jujuy"],
36
+ ["Z", "Santa Cruz"]
37
+ ],
38
+ AU: [
39
+ [
40
+ "ACT",
41
+ "Australian Capital Territory",
42
+ "Territoire de la capitale australienne"
43
+ ],
44
+ [
45
+ "NSW",
46
+ "New South Wales",
47
+ "Nouvelle-Galles du Sud"
48
+ ],
49
+ [
50
+ "NT",
51
+ "Northern Territory",
52
+ "Territoire du Nord"
53
+ ],
54
+ ["QLD", "Queensland"],
55
+ [
56
+ "SA",
57
+ "South Australia",
58
+ "Australie-Méridionale"
59
+ ],
60
+ [
61
+ "TAS",
62
+ "Tasmania",
63
+ "Tasmanie"
64
+ ],
65
+ ["VIC", "Victoria"],
66
+ [
67
+ "WA",
68
+ "Western Australia",
69
+ "Australie-Occidentale"
70
+ ]
71
+ ],
72
+ BR: [
73
+ ["AC", "Acre"],
74
+ ["AL", "Alagoas"],
75
+ ["AM", "Amazonas"],
76
+ ["AP", "Amapá"],
77
+ ["BA", "Bahia"],
78
+ ["CE", "Ceará"],
79
+ [
80
+ "DF",
81
+ "Federal District",
82
+ "District Fédéral"
83
+ ],
84
+ ["ES", "Espírito Santo"],
85
+ ["GO", "Goiás"],
86
+ ["MA", "Maranhão"],
87
+ ["MG", "Minas Gerais"],
88
+ ["MS", "Mato Grosso do Sul"],
89
+ ["MT", "Mato Grosso"],
90
+ ["PA", "Pará"],
91
+ ["PB", "Paraíba"],
92
+ [
93
+ "PE",
94
+ "Pernambuco",
95
+ "Pernambouc"
96
+ ],
97
+ ["PI", "Piauí"],
98
+ ["PR", "Paraná"],
99
+ [
100
+ "RJ",
101
+ "Rio de Janeiro",
102
+ "État de Rio de Janeiro"
103
+ ],
104
+ ["RN", "Rio Grande do Norte"],
105
+ ["RO", "Rondônia"],
106
+ ["RR", "Roraima"],
107
+ ["RS", "Rio Grande do Sul"],
108
+ ["SC", "Santa Catarina"],
109
+ ["SE", "Sergipe"],
110
+ [
111
+ "SP",
112
+ "São Paulo",
113
+ "État de São Paulo"
114
+ ],
115
+ ["TO", "Tocantins"]
116
+ ],
117
+ CA: [
118
+ ["AB", "Alberta"],
119
+ [
120
+ "BC",
121
+ "British Columbia",
122
+ "Colombie-Britannique"
123
+ ],
124
+ ["MB", "Manitoba"],
125
+ [
126
+ "NB",
127
+ "New Brunswick",
128
+ "Nouveau-Brunswick"
129
+ ],
130
+ [
131
+ "NL",
132
+ "Newfoundland and Labrador",
133
+ "Terre-Neuve-et-Labrador"
134
+ ],
135
+ [
136
+ "NS",
137
+ "Nova Scotia",
138
+ "Nouvelle-Écosse"
139
+ ],
140
+ [
141
+ "NT",
142
+ "Northwest Territories",
143
+ "Territoires du Nord-Ouest"
144
+ ],
145
+ ["NU", "Nunavut"],
146
+ ["ON", "Ontario"],
147
+ [
148
+ "PE",
149
+ "Prince Edward Island",
150
+ "Île-du-Prince-Édouard"
151
+ ],
152
+ [
153
+ "QC",
154
+ "Quebec",
155
+ "Québec"
156
+ ],
157
+ ["SK", "Saskatchewan"],
158
+ ["YT", "Yukon"]
159
+ ],
160
+ CN: [
161
+ ["AH", "Anhui"],
162
+ [
163
+ "BJ",
164
+ "Beijing",
165
+ "Pékin"
166
+ ],
167
+ ["CQ", "Chongqing"],
168
+ ["FJ", "Fujian"],
169
+ ["GD", "Guangdong"],
170
+ ["GS", "Gansu"],
171
+ ["GX", "Guangxi"],
172
+ ["GZ", "Guizhou"],
173
+ ["HA", "Henan"],
174
+ ["HB", "Hubei"],
175
+ ["HE", "Hebei"],
176
+ ["HI", "Hainan"],
177
+ ["HL", "Heilongjiang"],
178
+ ["HN", "Hunan"],
179
+ ["JL", "Jilin"],
180
+ ["JS", "Jiangsu"],
181
+ ["JX", "Jiangxi"],
182
+ ["LN", "Liaoning"],
183
+ [
184
+ "NM",
185
+ "Inner Mongolia",
186
+ "Mongolie-Intérieure"
187
+ ],
188
+ [
189
+ "NX",
190
+ "Ningxia",
191
+ "Níngxià"
192
+ ],
193
+ ["QH", "Qinghai"],
194
+ ["SC", "Sichuan"],
195
+ ["SD", "Shandong"],
196
+ ["SH", "Shanghai"],
197
+ ["SN", "Shaanxi"],
198
+ ["SX", "Shanxi"],
199
+ ["TJ", "Tianjin"],
200
+ ["XJ", "Xinjiang"],
201
+ [
202
+ "XZ",
203
+ "Tibet",
204
+ "Région autonome du Tibet"
205
+ ],
206
+ ["YN", "Yunnan"],
207
+ ["ZJ", "Zhejiang"]
208
+ ],
209
+ IN: [
210
+ [
211
+ "AN",
212
+ "Andaman and Nicobar Islands",
213
+ "Îles Andaman-et-Nicobar"
214
+ ],
215
+ ["AP", "Andhra Pradesh"],
216
+ ["AR", "Arunachal Pradesh"],
217
+ ["AS", "Assam"],
218
+ ["BR", "Bihar"],
219
+ [
220
+ "CG",
221
+ "Chhattīsgarh",
222
+ "Chhattisgarh"
223
+ ],
224
+ ["CH", "Chandigarh"],
225
+ [
226
+ "DH",
227
+ "Dādra and Nagar Haveli and Damān and Diu",
228
+ "Dadra et Nagar Haveli et Daman et Diu"
229
+ ],
230
+ ["DL", "Delhi"],
231
+ ["GA", "Goa"],
232
+ ["GJ", "Gujarat"],
233
+ ["HP", "Himachal Pradesh"],
234
+ ["HR", "Haryana"],
235
+ ["JH", "Jharkhand"],
236
+ [
237
+ "JK",
238
+ "Jammu and Kashmir",
239
+ "Jammu-et-Cachemire"
240
+ ],
241
+ ["KA", "Karnataka"],
242
+ ["KL", "Kerala"],
243
+ ["LA", "Ladakh"],
244
+ ["LD", "Lakshadweep"],
245
+ ["MH", "Maharashtra"],
246
+ ["ML", "Meghalaya"],
247
+ ["MN", "Manipur"],
248
+ ["MP", "Madhya Pradesh"],
249
+ ["MZ", "Mizoram"],
250
+ ["NL", "Nagaland"],
251
+ ["OD", "Odisha"],
252
+ [
253
+ "PB",
254
+ "Punjab",
255
+ "Pendjab"
256
+ ],
257
+ [
258
+ "PY",
259
+ "Puducherry",
260
+ "Territoire de Pondichéry"
261
+ ],
262
+ ["RJ", "Rajasthan"],
263
+ ["SK", "Sikkim"],
264
+ ["TN", "Tamil Nadu"],
265
+ ["TR", "Tripura"],
266
+ [
267
+ "TS",
268
+ "Telangāna",
269
+ "Telangana"
270
+ ],
271
+ [
272
+ "UK",
273
+ "Uttarākhand",
274
+ "Uttarakhand"
275
+ ],
276
+ ["UP", "Uttar Pradesh"],
277
+ [
278
+ "WB",
279
+ "West Bengal",
280
+ "Bengale-Occidental"
281
+ ]
282
+ ],
283
+ JP: [
284
+ ["01", "Hokkaidō"],
285
+ ["02", "Aomori"],
286
+ ["03", "Iwate"],
287
+ ["04", "Miyagi"],
288
+ ["05", "Akita"],
289
+ ["06", "Yamagata"],
290
+ ["07", "Fukushima"],
291
+ ["08", "Ibaraki"],
292
+ ["09", "Tochigi"],
293
+ ["10", "Gunma"],
294
+ ["11", "Saitama"],
295
+ ["12", "Chiba"],
296
+ ["13", "Tokyo"],
297
+ ["14", "Kanagawa"],
298
+ ["15", "Niigata"],
299
+ ["16", "Toyama"],
300
+ ["17", "Ishikawa"],
301
+ ["18", "Fukui"],
302
+ ["19", "Yamanashi"],
303
+ ["20", "Nagano"],
304
+ ["21", "Gifu"],
305
+ ["22", "Shizuoka"],
306
+ ["23", "Aichi"],
307
+ ["24", "Mie"],
308
+ ["25", "Shiga"],
309
+ [
310
+ "26",
311
+ "Kyōto",
312
+ "Kyoto"
313
+ ],
314
+ [
315
+ "27",
316
+ "Ōsaka",
317
+ "Osaka"
318
+ ],
319
+ ["28", "Hyōgo"],
320
+ ["29", "Nara"],
321
+ ["30", "Wakayama"],
322
+ ["31", "Tottori"],
323
+ ["32", "Shimane"],
324
+ ["33", "Okayama"],
325
+ ["34", "Hiroshima"],
326
+ ["35", "Yamaguchi"],
327
+ ["36", "Tokushima"],
328
+ ["37", "Kagawa"],
329
+ ["38", "Ehime"],
330
+ ["39", "Kōchi"],
331
+ ["40", "Fukuoka"],
332
+ ["41", "Saga"],
333
+ ["42", "Nagasaki"],
334
+ ["43", "Kumamoto"],
335
+ ["44", "Ōita"],
336
+ ["45", "Miyazaki"],
337
+ ["46", "Kagoshima"],
338
+ ["47", "Okinawa"]
339
+ ],
340
+ MX: [
341
+ ["AGU", "Aguascalientes"],
342
+ [
343
+ "BCN",
344
+ "Baja California",
345
+ "Basse-Californie"
346
+ ],
347
+ [
348
+ "BCS",
349
+ "Baja California Sur",
350
+ "Basse-Californie du Sud"
351
+ ],
352
+ ["CAM", "Campeche"],
353
+ ["CHH", "Chihuahua"],
354
+ ["CHP", "Chiapas"],
355
+ [
356
+ "CMX",
357
+ "Ciudad de Mexico",
358
+ "Mexico"
359
+ ],
360
+ ["COA", "Coahuila"],
361
+ ["COL", "Colima"],
362
+ ["DUR", "Durango"],
363
+ ["GRO", "Guerrero"],
364
+ ["GUA", "Guanajuato"],
365
+ ["HID", "Hidalgo"],
366
+ ["JAL", "Jalisco"],
367
+ [
368
+ "MEX",
369
+ "Mexico State",
370
+ "État de Mexico"
371
+ ],
372
+ ["MIC", "Michoacán"],
373
+ ["MOR", "Morelos"],
374
+ ["NAY", "Nayarit"],
375
+ ["NLE", "Nuevo León"],
376
+ ["OAX", "Oaxaca"],
377
+ ["PUE", "Puebla"],
378
+ ["QUE", "Querétaro"],
379
+ ["ROO", "Quintana Roo"],
380
+ ["SIN", "Sinaloa"],
381
+ ["SLP", "San Luis Potosí"],
382
+ ["SON", "Sonora"],
383
+ ["TAB", "Tabasco"],
384
+ ["TAM", "Tamaulipas"],
385
+ ["TLA", "Tlaxcala"],
386
+ ["VER", "Veracruz"],
387
+ ["YUC", "Yucatán"],
388
+ ["ZAC", "Zacatecas"]
389
+ ],
390
+ US: [
391
+ ["AK", "Alaska"],
392
+ ["AL", "Alabama"],
393
+ ["AR", "Arkansas"],
394
+ ["AS", "American Samoa"],
395
+ ["AZ", "Arizona"],
396
+ [
397
+ "CA",
398
+ "California",
399
+ "Californie"
400
+ ],
401
+ ["CO", "Colorado"],
402
+ ["CT", "Connecticut"],
403
+ [
404
+ "DC",
405
+ "Washington DC",
406
+ "District de Columbia"
407
+ ],
408
+ ["DE", "Delaware"],
409
+ [
410
+ "FL",
411
+ "Florida",
412
+ "Floride"
413
+ ],
414
+ [
415
+ "GA",
416
+ "Georgia",
417
+ "Géorgie"
418
+ ],
419
+ ["GU", "Guam"],
420
+ [
421
+ "HI",
422
+ "Hawaii",
423
+ "Hawaï"
424
+ ],
425
+ ["IA", "Iowa"],
426
+ ["ID", "Idaho"],
427
+ ["IL", "Illinois"],
428
+ ["IN", "Indiana"],
429
+ ["KS", "Kansas"],
430
+ ["KY", "Kentucky"],
431
+ [
432
+ "LA",
433
+ "Louisiana",
434
+ "Louisiane"
435
+ ],
436
+ ["MA", "Massachusetts"],
437
+ ["MD", "Maryland"],
438
+ ["ME", "Maine"],
439
+ ["MI", "Michigan"],
440
+ ["MN", "Minnesota"],
441
+ ["MO", "Missouri"],
442
+ ["MP", "Northern Mariana Islands"],
443
+ ["MS", "Mississippi"],
444
+ ["MT", "Montana"],
445
+ [
446
+ "NC",
447
+ "North Carolina",
448
+ "Caroline du Nord"
449
+ ],
450
+ [
451
+ "ND",
452
+ "North Dakota",
453
+ "Dakota du Nord"
454
+ ],
455
+ ["NE", "Nebraska"],
456
+ ["NH", "New Hampshire"],
457
+ ["NJ", "New Jersey"],
458
+ [
459
+ "NM",
460
+ "New Mexico",
461
+ "Nouveau-Mexique"
462
+ ],
463
+ ["NV", "Nevada"],
464
+ ["NY", "New York"],
465
+ ["OH", "Ohio"],
466
+ ["OK", "Oklahoma"],
467
+ ["OR", "Oregon"],
468
+ [
469
+ "PA",
470
+ "Pennsylvania",
471
+ "Pennsylvanie"
472
+ ],
473
+ ["PR", "Puerto Rico"],
474
+ ["RI", "Rhode Island"],
475
+ [
476
+ "SC",
477
+ "South Carolina",
478
+ "Caroline du Sud"
479
+ ],
480
+ [
481
+ "SD",
482
+ "South Dakota",
483
+ "Dakota du Sud"
484
+ ],
485
+ ["TN", "Tennessee"],
486
+ ["TX", "Texas"],
487
+ ["UM", "U.S. Outlying Islands"],
488
+ ["UT", "Utah"],
489
+ [
490
+ "VA",
491
+ "Virginia",
492
+ "Virginie"
493
+ ],
494
+ ["VI", "U.S. Virgin Islands"],
495
+ ["VT", "Vermont"],
496
+ [
497
+ "WA",
498
+ "Washington",
499
+ "État de Washington"
500
+ ],
501
+ ["WI", "Wisconsin"],
502
+ [
503
+ "WV",
504
+ "West Virginia",
505
+ "Virginie-Occidentale"
506
+ ],
507
+ ["WY", "Wyoming"]
508
+ ]
509
+ };
510
+ //#endregion
511
+ export { REGIONS };
512
+
513
+ //# sourceMappingURL=data.js.map