@norges-domstoler/dds-components 0.0.0-dev-20241128112640 → 0.0.0-dev-20241128132546
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/index.js +10 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -10603,7 +10603,7 @@ var COUNTRIES = {
|
|
|
10603
10603
|
BH: { name: "Bahrain (\u202B\u0627\u0644\u0628\u062D\u0631\u064A\u0646\u202C\u200E)", id: "BH", dialCode: "+973" },
|
|
10604
10604
|
BD: { name: "Bangladesh (\u09AC\u09BE\u0982\u09B2\u09BE\u09A6\u09C7\u09B6)", id: "BD", dialCode: "+880" },
|
|
10605
10605
|
BB: { name: "Barbados", id: "BB", dialCode: "+1246" },
|
|
10606
|
-
BY: { name: "
|
|
10606
|
+
BY: { name: "Belarus (\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u044C)", id: "BY", dialCode: "+375" },
|
|
10607
10607
|
BE: { name: "Belgium (Belgi\xEB)", id: "BE", dialCode: "+32" },
|
|
10608
10608
|
BZ: { name: "Belize", id: "BZ", dialCode: "+501" },
|
|
10609
10609
|
BJ: { name: "Benin (B\xE9nin)", id: "BJ", dialCode: "+229" },
|
|
@@ -10989,7 +10989,15 @@ var prioritizedCountryOptions = prioritizedCountries.map((country) => {
|
|
|
10989
10989
|
});
|
|
10990
10990
|
var sortedCountryOptions = Object.values(
|
|
10991
10991
|
COUNTRIES
|
|
10992
|
-
).sort((a2, b) =>
|
|
10992
|
+
).sort((a2, b) => {
|
|
10993
|
+
if (a2.name < b.name) {
|
|
10994
|
+
return -1;
|
|
10995
|
+
}
|
|
10996
|
+
if (a2.name > b.name) {
|
|
10997
|
+
return 1;
|
|
10998
|
+
}
|
|
10999
|
+
return 0;
|
|
11000
|
+
}).map((country) => ({
|
|
10993
11001
|
countryCode: country.id,
|
|
10994
11002
|
label: `${country.name} ${country.dialCode}`
|
|
10995
11003
|
})).filter(
|