
/**
 *   VERSION: 2.239.0-alpha.0
 *   BUILD_TIMESTAMP: 1780012993002
 *   BUILD_DATE: Fri May 29 2026 00:03:13 GMT+0000 (Coordinated Universal Time)
 *   BUILD_COMMIT: 3344b6c0fd9fa858907db310cfb1ef5e0d224da2
 */
import { j as a, i as _, R as o, ar as H, v as d, as as V, X as Y, M as P, F as c, at as M, l as L, au as S, V as v, b as Z, av as m } from "../sheerid.js";
import { F as W } from "./FormFieldInputSelect-eZgsxRw0.js";
import { S as J } from "./StepCard-DqGLBGiI.js";
var C = {}, f = {}, B;
function z() {
  if (B) return f;
  B = 1, Object.defineProperty(f, "__esModule", { value: !0 });
  const e = [
    {
      country: "Afghanistan",
      alpha2: "AF",
      alpha3: "AFG",
      numeric: "004"
    },
    {
      country: "Åland Islands",
      alpha2: "AX",
      alpha3: "ALA",
      numeric: "248"
    },
    {
      country: "Albania",
      alpha2: "AL",
      alpha3: "ALB",
      numeric: "008"
    },
    {
      country: "Algeria",
      alpha2: "DZ",
      alpha3: "DZA",
      numeric: "012"
    },
    {
      country: "American Samoa",
      alpha2: "AS",
      alpha3: "ASM",
      numeric: "016"
    },
    {
      country: "Andorra",
      alpha2: "AD",
      alpha3: "AND",
      numeric: "020"
    },
    {
      country: "Angola",
      alpha2: "AO",
      alpha3: "AGO",
      numeric: "024"
    },
    {
      country: "Anguilla",
      alpha2: "AI",
      alpha3: "AIA",
      numeric: "660"
    },
    {
      country: "Antarctica",
      alpha2: "AQ",
      alpha3: "ATA",
      numeric: "010"
    },
    {
      country: "Antigua and Barbuda",
      alpha2: "AG",
      alpha3: "ATG",
      numeric: "028"
    },
    {
      country: "Argentina",
      alpha2: "AR",
      alpha3: "ARG",
      numeric: "032"
    },
    {
      country: "Armenia",
      alpha2: "AM",
      alpha3: "ARM",
      numeric: "051"
    },
    {
      country: "Aruba",
      alpha2: "AW",
      alpha3: "ABW",
      numeric: "533"
    },
    {
      country: "Australia",
      alpha2: "AU",
      alpha3: "AUS",
      numeric: "036"
    },
    {
      country: "Austria",
      alpha2: "AT",
      alpha3: "AUT",
      numeric: "040"
    },
    {
      country: "Azerbaijan",
      alpha2: "AZ",
      alpha3: "AZE",
      numeric: "031"
    },
    {
      country: "Bahamas",
      alpha2: "BS",
      alpha3: "BHS",
      numeric: "044"
    },
    {
      country: "Bahrain",
      alpha2: "BH",
      alpha3: "BHR",
      numeric: "048"
    },
    {
      country: "Bangladesh",
      alpha2: "BD",
      alpha3: "BGD",
      numeric: "050"
    },
    {
      country: "Barbados",
      alpha2: "BB",
      alpha3: "BRB",
      numeric: "052"
    },
    {
      country: "Belarus",
      alpha2: "BY",
      alpha3: "BLR",
      numeric: "112"
    },
    {
      country: "Belgium",
      alpha2: "BE",
      alpha3: "BEL",
      numeric: "056"
    },
    {
      country: "Belize",
      alpha2: "BZ",
      alpha3: "BLZ",
      numeric: "084"
    },
    {
      country: "Benin",
      alpha2: "BJ",
      alpha3: "BEN",
      numeric: "204"
    },
    {
      country: "Bermuda",
      alpha2: "BM",
      alpha3: "BMU",
      numeric: "060"
    },
    {
      country: "Bhutan",
      alpha2: "BT",
      alpha3: "BTN",
      numeric: "064"
    },
    {
      country: "Bolivia",
      alpha2: "BO",
      alpha3: "BOL",
      numeric: "068"
    },
    {
      country: "Bonaire, Sint Eustatius and Saba",
      alpha2: "BQ",
      alpha3: "BES",
      numeric: "535"
    },
    {
      country: "Bosnia and Herzegovina",
      alpha2: "BA",
      alpha3: "BIH",
      numeric: "070"
    },
    {
      country: "Botswana",
      alpha2: "BW",
      alpha3: "BWA",
      numeric: "072"
    },
    {
      country: "Bouvet Island",
      alpha2: "BV",
      alpha3: "BVT",
      numeric: "074"
    },
    {
      country: "Brazil",
      alpha2: "BR",
      alpha3: "BRA",
      numeric: "076"
    },
    {
      country: "British Indian Ocean Territory",
      alpha2: "IO",
      alpha3: "IOT",
      numeric: "086"
    },
    {
      country: "Brunei Darussalam",
      alpha2: "BN",
      alpha3: "BRN",
      numeric: "096"
    },
    {
      country: "Bulgaria",
      alpha2: "BG",
      alpha3: "BGR",
      numeric: "100"
    },
    {
      country: "Burkina Faso",
      alpha2: "BF",
      alpha3: "BFA",
      numeric: "854"
    },
    {
      country: "Burundi",
      alpha2: "BI",
      alpha3: "BDI",
      numeric: "108"
    },
    {
      country: "Cabo Verde",
      alpha2: "CV",
      alpha3: "CPV",
      numeric: "132"
    },
    {
      country: "Cambodia",
      alpha2: "KH",
      alpha3: "KHM",
      numeric: "116"
    },
    {
      country: "Cameroon",
      alpha2: "CM",
      alpha3: "CMR",
      numeric: "120"
    },
    {
      country: "Canada",
      alpha2: "CA",
      alpha3: "CAN",
      numeric: "124"
    },
    {
      country: "Cayman Islands",
      alpha2: "KY",
      alpha3: "CYM",
      numeric: "136"
    },
    {
      country: "Central African Republic",
      alpha2: "CF",
      alpha3: "CAF",
      numeric: "140"
    },
    {
      country: "Chad",
      alpha2: "TD",
      alpha3: "TCD",
      numeric: "148"
    },
    {
      country: "Chile",
      alpha2: "CL",
      alpha3: "CHL",
      numeric: "152"
    },
    {
      country: "China",
      alpha2: "CN",
      alpha3: "CHN",
      numeric: "156"
    },
    {
      country: "Christmas Island",
      alpha2: "CX",
      alpha3: "CXR",
      numeric: "162"
    },
    {
      country: "Cocos Islands",
      alpha2: "CC",
      alpha3: "CCK",
      numeric: "166"
    },
    {
      country: "Colombia",
      alpha2: "CO",
      alpha3: "COL",
      numeric: "170"
    },
    {
      country: "Comoros",
      alpha2: "KM",
      alpha3: "COM",
      numeric: "174"
    },
    {
      country: "Congo",
      alpha2: "CG",
      alpha3: "COG",
      numeric: "178"
    },
    {
      country: "Congo",
      alpha2: "CD",
      alpha3: "COD",
      numeric: "180"
    },
    {
      country: "Cook Islands",
      alpha2: "CK",
      alpha3: "COK",
      numeric: "184"
    },
    {
      country: "Costa Rica",
      alpha2: "CR",
      alpha3: "CRI",
      numeric: "188"
    },
    {
      country: "Côte d'Ivoire",
      alpha2: "CI",
      alpha3: "CIV",
      numeric: "384"
    },
    {
      country: "Croatia",
      alpha2: "HR",
      alpha3: "HRV",
      numeric: "191"
    },
    {
      country: "Cuba",
      alpha2: "CU",
      alpha3: "CUB",
      numeric: "192"
    },
    {
      country: "Curaçao",
      alpha2: "CW",
      alpha3: "CUW",
      numeric: "531"
    },
    {
      country: "Cyprus",
      alpha2: "CY",
      alpha3: "CYP",
      numeric: "196"
    },
    {
      country: "Czech Republic",
      alpha2: "CZ",
      alpha3: "CZE",
      numeric: "203"
    },
    {
      country: "Denmark",
      alpha2: "DK",
      alpha3: "DNK",
      numeric: "208"
    },
    {
      country: "Djibouti",
      alpha2: "DJ",
      alpha3: "DJI",
      numeric: "262"
    },
    {
      country: "Dominica",
      alpha2: "DM",
      alpha3: "DMA",
      numeric: "212"
    },
    {
      country: "Dominican Republic",
      alpha2: "DO",
      alpha3: "DOM",
      numeric: "214"
    },
    {
      country: "Ecuador",
      alpha2: "EC",
      alpha3: "ECU",
      numeric: "218"
    },
    {
      country: "Egypt",
      alpha2: "EG",
      alpha3: "EGY",
      numeric: "818"
    },
    {
      country: "El Salvador",
      alpha2: "SV",
      alpha3: "SLV",
      numeric: "222"
    },
    {
      country: "Equatorial Guinea",
      alpha2: "GQ",
      alpha3: "GNQ",
      numeric: "226"
    },
    {
      country: "Eritrea",
      alpha2: "ER",
      alpha3: "ERI",
      numeric: "232"
    },
    {
      country: "Estonia",
      alpha2: "EE",
      alpha3: "EST",
      numeric: "233"
    },
    {
      country: "Ethiopia",
      alpha2: "ET",
      alpha3: "ETH",
      numeric: "231"
    },
    {
      country: "Falkland Islands",
      alpha2: "FK",
      alpha3: "FLK",
      numeric: "238"
    },
    {
      country: "Faroe Islands",
      alpha2: "FO",
      alpha3: "FRO",
      numeric: "234"
    },
    {
      country: "Fiji",
      alpha2: "FJ",
      alpha3: "FJI",
      numeric: "242"
    },
    {
      country: "Finland",
      alpha2: "FI",
      alpha3: "FIN",
      numeric: "246"
    },
    {
      country: "France",
      alpha2: "FR",
      alpha3: "FRA",
      numeric: "250"
    },
    {
      country: "French Guiana",
      alpha2: "GF",
      alpha3: "GUF",
      numeric: "254"
    },
    {
      country: "French Polynesia",
      alpha2: "PF",
      alpha3: "PYF",
      numeric: "258"
    },
    {
      country: "French Southern Territories",
      alpha2: "TF",
      alpha3: "ATF",
      numeric: "260"
    },
    {
      country: "Gabon",
      alpha2: "GA",
      alpha3: "GAB",
      numeric: "266"
    },
    {
      country: "Gambia",
      alpha2: "GM",
      alpha3: "GMB",
      numeric: "270"
    },
    {
      country: "Georgia",
      alpha2: "GE",
      alpha3: "GEO",
      numeric: "268"
    },
    {
      country: "Germany",
      alpha2: "DE",
      alpha3: "DEU",
      numeric: "276"
    },
    {
      country: "Ghana",
      alpha2: "GH",
      alpha3: "GHA",
      numeric: "288"
    },
    {
      country: "Gibraltar",
      alpha2: "GI",
      alpha3: "GIB",
      numeric: "292"
    },
    {
      country: "Greece",
      alpha2: "GR",
      alpha3: "GRC",
      numeric: "300"
    },
    {
      country: "Greenland",
      alpha2: "GL",
      alpha3: "GRL",
      numeric: "304"
    },
    {
      country: "Grenada",
      alpha2: "GD",
      alpha3: "GRD",
      numeric: "308"
    },
    {
      country: "Guadeloupe",
      alpha2: "GP",
      alpha3: "GLP",
      numeric: "312"
    },
    {
      country: "Guam",
      alpha2: "GU",
      alpha3: "GUM",
      numeric: "316"
    },
    {
      country: "Guatemala",
      alpha2: "GT",
      alpha3: "GTM",
      numeric: "320"
    },
    {
      country: "Guernsey",
      alpha2: "GG",
      alpha3: "GGY",
      numeric: "831"
    },
    {
      country: "Guinea",
      alpha2: "GN",
      alpha3: "GIN",
      numeric: "324"
    },
    {
      country: "Guinea-Bissau",
      alpha2: "GW",
      alpha3: "GNB",
      numeric: "624"
    },
    {
      country: "Guyana",
      alpha2: "GY",
      alpha3: "GUY",
      numeric: "328"
    },
    {
      country: "Haiti",
      alpha2: "HT",
      alpha3: "HTI",
      numeric: "332"
    },
    {
      country: "Heard Island and McDonald Islands",
      alpha2: "HM",
      alpha3: "HMD",
      numeric: "334"
    },
    {
      country: "Holy See",
      alpha2: "VA",
      alpha3: "VAT",
      numeric: "336"
    },
    {
      country: "Honduras",
      alpha2: "HN",
      alpha3: "HND",
      numeric: "340"
    },
    {
      country: "Hong Kong",
      alpha2: "HK",
      alpha3: "HKG",
      numeric: "344"
    },
    {
      country: "Hungary",
      alpha2: "HU",
      alpha3: "HUN",
      numeric: "348"
    },
    {
      country: "Iceland",
      alpha2: "IS",
      alpha3: "ISL",
      numeric: "352"
    },
    {
      country: "India",
      alpha2: "IN",
      alpha3: "IND",
      numeric: "356"
    },
    {
      country: "Indonesia",
      alpha2: "ID",
      alpha3: "IDN",
      numeric: "360"
    },
    {
      country: "Islamic Republic of Iran",
      alpha2: "IR",
      alpha3: "IRN",
      numeric: "364"
    },
    {
      country: "Iraq",
      alpha2: "IQ",
      alpha3: "IRQ",
      numeric: "368"
    },
    {
      country: "Ireland",
      alpha2: "IE",
      alpha3: "IRL",
      numeric: "372"
    },
    {
      country: "Isle of Man",
      alpha2: "IM",
      alpha3: "IMN",
      numeric: "833"
    },
    {
      country: "Israel",
      alpha2: "IL",
      alpha3: "ISR",
      numeric: "376"
    },
    {
      country: "Italy",
      alpha2: "IT",
      alpha3: "ITA",
      numeric: "380"
    },
    {
      country: "Jamaica",
      alpha2: "JM",
      alpha3: "JAM",
      numeric: "388"
    },
    {
      country: "Japan",
      alpha2: "JP",
      alpha3: "JPN",
      numeric: "392"
    },
    {
      country: "Jersey",
      alpha2: "JE",
      alpha3: "JEY",
      numeric: "832"
    },
    {
      country: "Jordan",
      alpha2: "JO",
      alpha3: "JOR",
      numeric: "400"
    },
    {
      country: "Kazakhstan",
      alpha2: "KZ",
      alpha3: "KAZ",
      numeric: "398"
    },
    {
      country: "Kenya",
      alpha2: "KE",
      alpha3: "KEN",
      numeric: "404"
    },
    {
      country: "Kiribati",
      alpha2: "KI",
      alpha3: "KIR",
      numeric: "296"
    },
    {
      country: "Democratic People's Republic of Korea",
      alpha2: "KP",
      alpha3: "PRK",
      numeric: "408"
    },
    {
      country: "Republic of Korea",
      alpha2: "KR",
      alpha3: "KOR",
      numeric: "410"
    },
    {
      country: "Kuwait",
      alpha2: "KW",
      alpha3: "KWT",
      numeric: "414"
    },
    {
      country: "Kyrgyzstan",
      alpha2: "KG",
      alpha3: "KGZ",
      numeric: "417"
    },
    {
      country: "Lao People's Democratic Republic",
      alpha2: "LA",
      alpha3: "LAO",
      numeric: "418"
    },
    {
      country: "Latvia",
      alpha2: "LV",
      alpha3: "LVA",
      numeric: "428"
    },
    {
      country: "Lebanon",
      alpha2: "LB",
      alpha3: "LBN",
      numeric: "422"
    },
    {
      country: "Lesotho",
      alpha2: "LS",
      alpha3: "LSO",
      numeric: "426"
    },
    {
      country: "Liberia",
      alpha2: "LR",
      alpha3: "LBR",
      numeric: "430"
    },
    {
      country: "Libya",
      alpha2: "LY",
      alpha3: "LBY",
      numeric: "434"
    },
    {
      country: "Liechtenstein",
      alpha2: "LI",
      alpha3: "LIE",
      numeric: "438"
    },
    {
      country: "Lithuania",
      alpha2: "LT",
      alpha3: "LTU",
      numeric: "440"
    },
    {
      country: "Luxembourg",
      alpha2: "LU",
      alpha3: "LUX",
      numeric: "442"
    },
    {
      country: "Macao",
      alpha2: "MO",
      alpha3: "MAC",
      numeric: "446"
    },
    {
      country: "Macedonia",
      alpha2: "MK",
      alpha3: "MKD",
      numeric: "807"
    },
    {
      country: "Madagascar",
      alpha2: "MG",
      alpha3: "MDG",
      numeric: "450"
    },
    {
      country: "Malawi",
      alpha2: "MW",
      alpha3: "MWI",
      numeric: "454"
    },
    {
      country: "Malaysia",
      alpha2: "MY",
      alpha3: "MYS",
      numeric: "458"
    },
    {
      country: "Maldives",
      alpha2: "MV",
      alpha3: "MDV",
      numeric: "462"
    },
    {
      country: "Mali",
      alpha2: "ML",
      alpha3: "MLI",
      numeric: "466"
    },
    {
      country: "Malta",
      alpha2: "MT",
      alpha3: "MLT",
      numeric: "470"
    },
    {
      country: "Marshall Islands",
      alpha2: "MH",
      alpha3: "MHL",
      numeric: "584"
    },
    {
      country: "Martinique",
      alpha2: "MQ",
      alpha3: "MTQ",
      numeric: "474"
    },
    {
      country: "Mauritania",
      alpha2: "MR",
      alpha3: "MRT",
      numeric: "478"
    },
    {
      country: "Mauritius",
      alpha2: "MU",
      alpha3: "MUS",
      numeric: "480"
    },
    {
      country: "Mayotte",
      alpha2: "YT",
      alpha3: "MYT",
      numeric: "175"
    },
    {
      country: "Mexico",
      alpha2: "MX",
      alpha3: "MEX",
      numeric: "484"
    },
    {
      country: "Federated States of Micronesia",
      alpha2: "FM",
      alpha3: "FSM",
      numeric: "583"
    },
    {
      country: "Republic of Moldova",
      alpha2: "MD",
      alpha3: "MDA",
      numeric: "498"
    },
    {
      country: "Monaco",
      alpha2: "MC",
      alpha3: "MCO",
      numeric: "492"
    },
    {
      country: "Mongolia",
      alpha2: "MN",
      alpha3: "MNG",
      numeric: "496"
    },
    {
      country: "Montenegro",
      alpha2: "ME",
      alpha3: "MNE",
      numeric: "499"
    },
    {
      country: "Montserrat",
      alpha2: "MS",
      alpha3: "MSR",
      numeric: "500"
    },
    {
      country: "Morocco",
      alpha2: "MA",
      alpha3: "MAR",
      numeric: "504"
    },
    {
      country: "Mozambique",
      alpha2: "MZ",
      alpha3: "MOZ",
      numeric: "508"
    },
    {
      country: "Myanmar",
      alpha2: "MM",
      alpha3: "MMR",
      numeric: "104"
    },
    {
      country: "Namibia",
      alpha2: "NA",
      alpha3: "NAM",
      numeric: "516"
    },
    {
      country: "Nauru",
      alpha2: "NR",
      alpha3: "NRU",
      numeric: "520"
    },
    {
      country: "Nepal",
      alpha2: "NP",
      alpha3: "NPL",
      numeric: "524"
    },
    {
      country: "Netherlands",
      alpha2: "NL",
      alpha3: "NLD",
      numeric: "528"
    },
    {
      country: "New Caledonia",
      alpha2: "NC",
      alpha3: "NCL",
      numeric: "540"
    },
    {
      country: "New Zealand",
      alpha2: "NZ",
      alpha3: "NZL",
      numeric: "554"
    },
    {
      country: "Nicaragua",
      alpha2: "NI",
      alpha3: "NIC",
      numeric: "558"
    },
    {
      country: "Niger",
      alpha2: "NE",
      alpha3: "NER",
      numeric: "562"
    },
    {
      country: "Nigeria",
      alpha2: "NG",
      alpha3: "NGA",
      numeric: "566"
    },
    {
      country: "Niue",
      alpha2: "NU",
      alpha3: "NIU",
      numeric: "570"
    },
    {
      country: "Norfolk Island",
      alpha2: "NF",
      alpha3: "NFK",
      numeric: "574"
    },
    {
      country: "Northern Mariana Islands",
      alpha2: "MP",
      alpha3: "MNP",
      numeric: "580"
    },
    {
      country: "Norway",
      alpha2: "NO",
      alpha3: "NOR",
      numeric: "578"
    },
    {
      country: "Oman",
      alpha2: "OM",
      alpha3: "OMN",
      numeric: "512"
    },
    {
      country: "Pakistan",
      alpha2: "PK",
      alpha3: "PAK",
      numeric: "586"
    },
    {
      country: "Palau",
      alpha2: "PW",
      alpha3: "PLW",
      numeric: "585"
    },
    {
      country: "State of Palestine",
      alpha2: "PS",
      alpha3: "PSE",
      numeric: "275"
    },
    {
      country: "Panama",
      alpha2: "PA",
      alpha3: "PAN",
      numeric: "591"
    },
    {
      country: "Papua New Guinea",
      alpha2: "PG",
      alpha3: "PNG",
      numeric: "598"
    },
    {
      country: "Paraguay",
      alpha2: "PY",
      alpha3: "PRY",
      numeric: "600"
    },
    {
      country: "Peru",
      alpha2: "PE",
      alpha3: "PER",
      numeric: "604"
    },
    {
      country: "Philippines",
      alpha2: "PH",
      alpha3: "PHL",
      numeric: "608"
    },
    {
      country: "Pitcairn",
      alpha2: "PN",
      alpha3: "PCN",
      numeric: "612"
    },
    {
      country: "Poland",
      alpha2: "PL",
      alpha3: "POL",
      numeric: "616"
    },
    {
      country: "Portugal",
      alpha2: "PT",
      alpha3: "PRT",
      numeric: "620"
    },
    {
      country: "Puerto Rico",
      alpha2: "PR",
      alpha3: "PRI",
      numeric: "630"
    },
    {
      country: "Qatar",
      alpha2: "QA",
      alpha3: "QAT",
      numeric: "634"
    },
    {
      country: "Réunion",
      alpha2: "RE",
      alpha3: "REU",
      numeric: "638"
    },
    {
      country: "Romania",
      alpha2: "RO",
      alpha3: "ROU",
      numeric: "642"
    },
    {
      country: "Russian Federation",
      alpha2: "RU",
      alpha3: "RUS",
      numeric: "643"
    },
    {
      country: "Rwanda",
      alpha2: "RW",
      alpha3: "RWA",
      numeric: "646"
    },
    {
      country: "Saint Barthélemy",
      alpha2: "BL",
      alpha3: "BLM",
      numeric: "652"
    },
    {
      country: "Saint Helena, Ascension and Tristan da Cunha",
      alpha2: "SH",
      alpha3: "SHN",
      numeric: "654"
    },
    {
      country: "Saint Kitts and Nevis",
      alpha2: "KN",
      alpha3: "KNA",
      numeric: "659"
    },
    {
      country: "Saint Lucia",
      alpha2: "LC",
      alpha3: "LCA",
      numeric: "662"
    },
    {
      country: "Saint Martin",
      alpha2: "MF",
      alpha3: "MAF",
      numeric: "663"
    },
    {
      country: "Saint Pierre and Miquelon",
      alpha2: "PM",
      alpha3: "SPM",
      numeric: "666"
    },
    {
      country: "Saint Vincent and the Grenadines",
      alpha2: "VC",
      alpha3: "VCT",
      numeric: "670"
    },
    {
      country: "Samoa",
      alpha2: "WS",
      alpha3: "WSM",
      numeric: "882"
    },
    {
      country: "San Marino",
      alpha2: "SM",
      alpha3: "SMR",
      numeric: "674"
    },
    {
      country: "Sao Tome and Principe",
      alpha2: "ST",
      alpha3: "STP",
      numeric: "678"
    },
    {
      country: "Saudi Arabia",
      alpha2: "SA",
      alpha3: "SAU",
      numeric: "682"
    },
    {
      country: "Senegal",
      alpha2: "SN",
      alpha3: "SEN",
      numeric: "686"
    },
    {
      country: "Serbia",
      alpha2: "RS",
      alpha3: "SRB",
      numeric: "688"
    },
    {
      country: "Seychelles",
      alpha2: "SC",
      alpha3: "SYC",
      numeric: "690"
    },
    {
      country: "Sierra Leone",
      alpha2: "SL",
      alpha3: "SLE",
      numeric: "694"
    },
    {
      country: "Singapore",
      alpha2: "SG",
      alpha3: "SGP",
      numeric: "702"
    },
    {
      country: "Sint Maarten",
      alpha2: "SX",
      alpha3: "SXM",
      numeric: "534"
    },
    {
      country: "Slovakia",
      alpha2: "SK",
      alpha3: "SVK",
      numeric: "703"
    },
    {
      country: "Slovenia",
      alpha2: "SI",
      alpha3: "SVN",
      numeric: "705"
    },
    {
      country: "Solomon Islands",
      alpha2: "SB",
      alpha3: "SLB",
      numeric: "090"
    },
    {
      country: "Somalia",
      alpha2: "SO",
      alpha3: "SOM",
      numeric: "706"
    },
    {
      country: "South Africa",
      alpha2: "ZA",
      alpha3: "ZAF",
      numeric: "710"
    },
    {
      country: "South Georgia and the South Sandwich Islands",
      alpha2: "GS",
      alpha3: "SGS",
      numeric: "239"
    },
    {
      country: "South Sudan",
      alpha2: "SS",
      alpha3: "SSD",
      numeric: "728"
    },
    {
      country: "Spain",
      alpha2: "ES",
      alpha3: "ESP",
      numeric: "724"
    },
    {
      country: "Sri Lanka",
      alpha2: "LK",
      alpha3: "LKA",
      numeric: "144"
    },
    {
      country: "Sudan",
      alpha2: "SD",
      alpha3: "SDN",
      numeric: "729"
    },
    {
      country: "Suriname",
      alpha2: "SR",
      alpha3: "SUR",
      numeric: "740"
    },
    {
      country: "Svalbard and Jan Mayen",
      alpha2: "SJ",
      alpha3: "SJM",
      numeric: "744"
    },
    {
      country: "Swaziland",
      alpha2: "SZ",
      alpha3: "SWZ",
      numeric: "748"
    },
    {
      country: "Sweden",
      alpha2: "SE",
      alpha3: "SWE",
      numeric: "752"
    },
    {
      country: "Switzerland",
      alpha2: "CH",
      alpha3: "CHE",
      numeric: "756"
    },
    {
      country: "Syrian Arab Republic",
      alpha2: "SY",
      alpha3: "SYR",
      numeric: "760"
    },
    {
      country: "Taiwan, Province of China",
      alpha2: "TW",
      alpha3: "TWN",
      numeric: "158"
    },
    {
      country: "Tajikistan",
      alpha2: "TJ",
      alpha3: "TJK",
      numeric: "762"
    },
    {
      country: "United Republic of Tanzania",
      alpha2: "TZ",
      alpha3: "TZA",
      numeric: "834"
    },
    {
      country: "Thailand",
      alpha2: "TH",
      alpha3: "THA",
      numeric: "764"
    },
    {
      country: "Timor-Leste",
      alpha2: "TL",
      alpha3: "TLS",
      numeric: "626"
    },
    {
      country: "Togo",
      alpha2: "TG",
      alpha3: "TGO",
      numeric: "768"
    },
    {
      country: "Tokelau",
      alpha2: "TK",
      alpha3: "TKL",
      numeric: "772"
    },
    {
      country: "Tonga",
      alpha2: "TO",
      alpha3: "TON",
      numeric: "776"
    },
    {
      country: "Trinidad and Tobago",
      alpha2: "TT",
      alpha3: "TTO",
      numeric: "780"
    },
    {
      country: "Tunisia",
      alpha2: "TN",
      alpha3: "TUN",
      numeric: "788"
    },
    {
      country: "Turkey",
      alpha2: "TR",
      alpha3: "TUR",
      numeric: "792"
    },
    {
      country: "Turkmenistan",
      alpha2: "TM",
      alpha3: "TKM",
      numeric: "795"
    },
    {
      country: "Turks and Caicos Islands",
      alpha2: "TC",
      alpha3: "TCA",
      numeric: "796"
    },
    {
      country: "Tuvalu",
      alpha2: "TV",
      alpha3: "TUV",
      numeric: "798"
    },
    {
      country: "Uganda",
      alpha2: "UG",
      alpha3: "UGA",
      numeric: "800"
    },
    {
      country: "Ukraine",
      alpha2: "UA",
      alpha3: "UKR",
      numeric: "804"
    },
    {
      country: "United Arab Emirates",
      alpha2: "AE",
      alpha3: "ARE",
      numeric: "784"
    },
    {
      country: "United Kingdom of Great Britain and Northern Ireland",
      alpha2: "GB",
      alpha3: "GBR",
      numeric: "826"
    },
    {
      country: "United States of America",
      alpha2: "US",
      alpha3: "USA",
      numeric: "840"
    },
    {
      country: "United States Minor Outlying Islands",
      alpha2: "UM",
      alpha3: "UMI",
      numeric: "581"
    },
    {
      country: "Uruguay",
      alpha2: "UY",
      alpha3: "URY",
      numeric: "858"
    },
    {
      country: "Uzbekistan",
      alpha2: "UZ",
      alpha3: "UZB",
      numeric: "860"
    },
    {
      country: "Vanuatu",
      alpha2: "VU",
      alpha3: "VUT",
      numeric: "548"
    },
    {
      country: "Venezuela (Bolivarian Republic of)",
      alpha2: "VE",
      alpha3: "VEN",
      numeric: "862"
    },
    {
      country: "Viet Nam",
      alpha2: "VN",
      alpha3: "VNM",
      numeric: "704"
    },
    {
      country: "Virgin Islands",
      alpha2: "VG",
      alpha3: "VGB",
      numeric: "092"
    },
    {
      country: "Virgin Islands of the United States",
      alpha2: "VI",
      alpha3: "VIR",
      numeric: "850"
    },
    {
      country: "Wallis and Futuna",
      alpha2: "WF",
      alpha3: "WLF",
      numeric: "876"
    },
    {
      country: "Western Sahara",
      alpha2: "EH",
      alpha3: "ESH",
      numeric: "732"
    },
    {
      country: "Yemen",
      alpha2: "YE",
      alpha3: "YEM",
      numeric: "887"
    },
    {
      country: "Zambia",
      alpha2: "ZM",
      alpha3: "ZMB",
      numeric: "894"
    },
    {
      country: "Zimbabwe",
      alpha2: "ZW",
      alpha3: "ZWE",
      numeric: "716"
    }
  ];
  return f.default = e, f;
}
var b;
function q() {
  return b || (b = 1, (function(e) {
    var i = C && C.__importDefault || function(n) {
      return n && n.__esModule ? n : { default: n };
    };
    Object.defineProperty(e, "__esModule", { value: !0 }), e.all = e.whereNumeric = e.whereAlpha3 = e.whereAlpha2 = e.whereCountry = void 0;
    const r = i(z());
    e.whereCountry = (n) => r.default.find((l) => l.country.toUpperCase() === n.toUpperCase()), e.whereAlpha2 = (n) => r.default.find((l) => l.alpha2 === n.toUpperCase()), e.whereAlpha3 = (n) => r.default.find((l) => l.alpha3 === n.toUpperCase()), e.whereNumeric = (n) => r.default.find((l) => l.numeric === String(n)), e.all = () => r.default, e.default = {
      all: e.all,
      whereCountry: e.whereCountry,
      whereAlpha2: e.whereAlpha2,
      whereAlpha3: e.whereAlpha3,
      whereNumeric: e.whereNumeric
    };
  })(C)), C;
}
var N = q();
const Q = ({ icon: e, title: i, subtitle: r, setDocType: n }) => /* @__PURE__ */ a.jsxs("button", { className: "sid-id-check-doc-type-card", type: "button", onClick: n, children: [
  /* @__PURE__ */ a.jsxs("div", { className: "sid-id-check-doc-type-card__content", children: [
    /* @__PURE__ */ a.jsx("div", { className: "sid-id-check-doc-type-card__header", children: /* @__PURE__ */ a.jsx("div", { className: "sid-id-check-doc-type-card__icon", children: e }) }),
    /* @__PURE__ */ a.jsxs("div", { className: "sid-id-check-doc-type-card__label", children: [
      /* @__PURE__ */ a.jsx("div", { className: "sid-id-check-doc-type-card__title sid-l-space-btm-sm", children: i }),
      /* @__PURE__ */ a.jsx("div", { className: "sid-id-check-doc-type-card__subtitle", children: r })
    ] })
  ] }),
  /* @__PURE__ */ a.jsx(
    "img",
    {
      alt: "",
      src: "https://assets-resources.sheerid.com/common/images/2018/icons/chevron-right.svg"
    }
  )
] }), X = Q, k = "onfido", G = {
  [S.PASSPORT]: {
    title: /* @__PURE__ */ a.jsx(
      c,
      {
        id: "step.idCheckLoop.docTypes.passport.title",
        defaultMessage: "Passport"
      }
    ),
    subtitle: /* @__PURE__ */ a.jsx(
      c,
      {
        id: "step.idCheckLoop.docTypes.passport.subtitle",
        defaultMessage: "Photo page"
      }
    ),
    imgSrc: "https://assets-resources.sheerid.com/common/images/2018/icons/government-passport.svg"
  },
  [S.DRIVING_LICENCE]: {
    title: /* @__PURE__ */ a.jsx(
      c,
      {
        id: "step.idCheckLoop.docTypes.driverLicense.title",
        defaultMessage: "Driver's License"
      }
    ),
    subtitle: /* @__PURE__ */ a.jsx(
      c,
      {
        id: "step.idCheckLoop.docTypes.driverLicense.subtitle",
        defaultMessage: "Front and back"
      }
    ),
    imgSrc: "https://assets-resources.sheerid.com/common/images/2018/icons/drivers-license.svg"
  },
  [S.RESIDENCE_PERMIT]: {
    title: /* @__PURE__ */ a.jsx(
      c,
      {
        id: "step.idCheckLoop.docTypes.residencePermit.title",
        defaultMessage: "Residence Permit"
      }
    ),
    subtitle: /* @__PURE__ */ a.jsx(
      c,
      {
        id: "step.idCheckLoop.docTypes.residencePermit.subtitle",
        defaultMessage: "Front and back"
      }
    ),
    imgSrc: "https://assets-resources.sheerid.com/common/images/2018/icons/resident-permit.svg"
  },
  [S.NATIONAL_IDENTITY_CARD]: {
    title: /* @__PURE__ */ a.jsx(
      c,
      {
        id: "step.idCheckLoop.docTypes.identityCard.title",
        defaultMessage: "Identity Card"
      }
    ),
    subtitle: /* @__PURE__ */ a.jsx(
      c,
      {
        id: "step.idCheckLoop.docTypes.identityCard.subtitle",
        defaultMessage: "Front and back"
      }
    ),
    imgSrc: "https://assets-resources.sheerid.com/common/images/2018/icons/government-id.svg"
  }
}, $ = ({ verificationService: e, intl: i }) => {
  const r = e.verificationResponse, { formButtonColor: n, formButtonFontColor: l, formLinkColor: g, formPrimaryFontColor: A } = o.useContext(H), E = r.country === void 0 ? void 0 : {
    value: r.country,
    label: i.formatHTMLMessage({
      id: `countries.${r.country}`,
      defaultMessage: r.country
    })
  }, [u, j] = o.useState(E), [y, D] = o.useState(""), [O, R] = o.useState([]), p = o.useRef(null), T = o.useRef(!1), U = d(
    () => e.programTheme.config.onfidoIncludedCountries.map(
      (t) => N.whereAlpha3(t).alpha2
    ),
    []
  ), F = V(
    U,
    i,
    r.locale
  ), x = (t) => {
    L.info("StepIDCheckLoop submitting ID Check Loop", t), e.submitStep(
      v.idCheckLoop,
      e.viewModel,
      e.verificationResponse
    );
  }, K = async (t, h) => {
    if (!T.current) {
      T.current = !0, p.current && (p.current.tearDown(), p.current = null);
      try {
        const I = d(
          () => e.programTheme.config.onfidoReportNames,
          [M.DOCUMENT, M.FACIAL_SIMILARITY_MOTION]
        ).map((s) => s === M.DOCUMENT ? {
          type: "document",
          options: { forceCrossDevice: !0, documentTypes: { [h]: { country: t } } }
        } : s === M.FACIAL_SIMILARITY_MOTION ? {
          type: "face",
          options: { requestedVariant: "motion", motionFallbackVariant: "video" }
        } : s), w = await import("./Onfido-BG8cDEVW.js");
        p.current = w.Onfido.init({
          containerId: k,
          token: r.sdkToken,
          onComplete: (s) => {
            Object.keys(s).length !== 0 && x(s);
          },
          steps: [...I, "complete"],
          // Documenation -- https://documentation.onfido.com/sdk/web/#language-selection
          language: e.viewModel.localeChoice.value.replace("-", "_"),
          // Documenation -- https://documentation.onfido.com/sdk/web/#styling-customization
          theme: {
            name: "light",
            config: {
              borderRadiusButton: "0px",
              borderStyleSurfaceModal: "none",
              colorBackgroundSurfaceModal: "transparent",
              colorContentBody: A,
              colorContentButtonPrimaryText: l,
              colorBackgroundButtonPrimary: n,
              colorBackgroundButtonPrimaryHover: n,
              colorBorderButtonPrimary: "transparent",
              colorBorderButtonPrimaryHover: "transparent",
              colorBackgroundButtonPrimaryActive: n,
              colorIcon: n,
              colorInputOutline: "transparent",
              colorContentButtonTertiaryText: g
            }
          }
        });
      } catch (I) {
        L.error("Onfido initialization failed", I);
      } finally {
        T.current = !1;
      }
    }
  };
  return o.useEffect(() => {
    const t = d(() => N.whereAlpha2(u.value).alpha3);
    t !== void 0 ? Y.getIdCheckDocTypeForCountry(r.verificationId, [
      t
    ]).then(
      (h) => R(Object.values(h.results)[0])
    ) : R([]);
  }, [u]), o.useEffect(() => {
    if (u !== void 0 && y !== "") {
      const t = d(() => N.whereAlpha2(u.value).alpha3);
      K(t, y);
    }
    return () => {
      p.current && (p.current.tearDown(), p.current = null);
    };
  }, [u, y]), /* @__PURE__ */ a.jsxs("div", { children: [
    u !== void 0 && y !== "" && /* @__PURE__ */ a.jsx("div", { id: k }),
    y === "" && /* @__PURE__ */ a.jsxs("div", { children: [
      /* @__PURE__ */ a.jsx(P, { align: "center", children: /* @__PURE__ */ a.jsx(
        c,
        {
          id: "step.idCheckLoop.docTypeSelector.title",
          defaultMessage: "Choose your document"
        }
      ) }),
      /* @__PURE__ */ a.jsx("div", { className: "sid-header__subtitle sid-l-horz-center sid-l-space-btm-lg", children: /* @__PURE__ */ a.jsx(
        c,
        {
          id: "step.idCheckLoop.docTypeSelector.subtitle",
          defaultMessage: "You'll need access to a mobile phone with a camera or computer with a webcam."
        }
      ) }),
      /* @__PURE__ */ a.jsxs("div", { className: "sid-identity-check-doc-types", children: [
        /* @__PURE__ */ a.jsx(
          W,
          {
            fieldId: "issuingCountry",
            label: /* @__PURE__ */ a.jsx(
              c,
              {
                id: "step.idCheckLoop.countrySelector.title",
                defaultMessage: "Issuing Country"
              }
            ),
            options: F,
            value: u,
            onChange: async (t) => {
              j(t);
            },
            isRequired: !1
          }
        ),
        O.map((t) => {
          if (Object.prototype.hasOwnProperty.call(G, t.documentType)) {
            const h = G[t.documentType];
            return /* @__PURE__ */ a.jsx(
              X,
              {
                icon: /* @__PURE__ */ a.jsx(
                  "img",
                  {
                    className: "sid-identity-check-doc-type__icon",
                    alt: "",
                    src: h.imgSrc
                  }
                ),
                title: h.title,
                subtitle: h.subtitle,
                setDocType: () => D(t.documentType)
              },
              t.documentType
            );
          }
          return null;
        })
      ] })
    ] })
  ] });
}, aa = _($), ea = ({ verificationService: e }) => /* @__PURE__ */ a.jsx(Z, { verificationService: e, children: /* @__PURE__ */ a.jsxs("div", { children: [
  /* @__PURE__ */ a.jsx("p", { children: /* @__PURE__ */ a.jsx(
    m,
    {
      id: "step.idCheckLoop.terms",
      defaultMessage: 'By clicking "Continue", you agree you have read, understand, and accept {scanPolicy}, {privacyPolicyLink}, and {termsOfService}.',
      values: {
        scanPolicy: /* @__PURE__ */ a.jsx(
          "a",
          {
            href: "https://onfido.com/facial-scan-policy-and-release/",
            target: "_blank",
            rel: "noopener noreferrer",
            className: "sid-link",
            children: /* @__PURE__ */ a.jsx(
              m,
              {
                id: "step.idCheckLoop.scanPolicy",
                defaultMessage: "Onfido Facial Scan Policy and Release"
              }
            )
          }
        ),
        privacyPolicyLink: /* @__PURE__ */ a.jsx(
          "a",
          {
            href: "https://www.onfido.com/privacy/",
            target: "_blank",
            rel: "noopener noreferrer",
            className: "sid-link",
            children: /* @__PURE__ */ a.jsx(
              m,
              {
                id: "step.idCheckLoop.privacyPolicy",
                defaultMessage: "Privacy Policy"
              }
            )
          }
        ),
        termsOfService: /* @__PURE__ */ a.jsx(
          "a",
          {
            href: "https://onfido.com/terms-of-service/",
            target: "_blank",
            rel: "noopener noreferrer",
            className: "sid-link",
            children: /* @__PURE__ */ a.jsx(
              m,
              {
                id: "step.idCheckLoop.termsOfService",
                defaultMessage: "Terms of Service"
              }
            )
          }
        )
      }
    }
  ) }),
  /* @__PURE__ */ a.jsx("p", { children: /* @__PURE__ */ a.jsx(m, { id: "companyName", defaultMessage: "{Company}", children: (i) => /* @__PURE__ */ a.jsx(
    m,
    {
      id: "step.idCheckLoop.disclaimer",
      defaultMessage: "SheerID, {companyName}'s trusted partner, use a third party, {serviceType}, to process our identity check.",
      values: {
        serviceType: "Onfido",
        companyName: i
      }
    }
  ) }) })
] }) }), na = (e) => {
  const i = [];
  return d(() => e.config.onfidoReportNames.includes("document"), !1) && i.push(() => ({
    title: /* @__PURE__ */ a.jsx(
      c,
      {
        id: "step.idCheckLoop.steps.idCheck.title",
        defaultMessage: "Take a photo of your government ID"
      }
    ),
    subtitle: /* @__PURE__ */ a.jsx(
      c,
      {
        id: "step.idCheckLoop.steps.idCheck.subtitle",
        defaultMessage: "A valid government-issued document such as a driver's license, state ID, passport, or residence permit."
      }
    ),
    icon: /* @__PURE__ */ a.jsx(
      "img",
      {
        className: "sid-identity-check-steps__icon",
        alt: "",
        src: "https://assets-resources.sheerid.com/common/images/2018/icons/id-photo.svg"
      }
    )
  })), d(() => e.config.onfidoReportNames.includes("facial_similarity_motion")) && i.push(() => ({
    title: /* @__PURE__ */ a.jsx(
      c,
      {
        id: "step.idCheckLoop.steps.selfie.title",
        defaultMessage: "Take a selfie"
      }
    ),
    icon: /* @__PURE__ */ a.jsx(
      "img",
      {
        className: "sid-identity-check-steps__icon",
        alt: "",
        src: "https://assets-resources.sheerid.com/common/images/2018/icons/selfie.svg"
      }
    )
  })), e.docUploadEnabled && i.push(() => ({
    title: /* @__PURE__ */ a.jsx(
      c,
      {
        id: "step.idCheckLoop.steps.docReview.title",
        defaultMessage: "Upload proof of status"
      }
    ),
    icon: /* @__PURE__ */ a.jsx(
      "img",
      {
        className: "sid-identity-check-steps__icon",
        alt: "",
        src: "https://assets-resources.sheerid.com/common/images/2018/icons/upload-proof.svg"
      }
    )
  })), i.map((r, n) => {
    const { title: l, subtitle: g, icon: A } = r();
    return /* @__PURE__ */ a.jsx(
      J,
      {
        title: l,
        subtitle: g,
        icon: A,
        isHighlighted: n === 0
      },
      l.toString()
    );
  });
}, ta = ({ verificationService: e }) => {
  const i = e.verificationResponse, [r, n] = o.useState(!1), l = () => {
    L.info("StepIDCheckLoop initiating ID Check Loop"), e.submitStep(
      v.idCheckLoop,
      e.viewModel,
      e.verificationResponse
    );
  };
  return o.useEffect(() => {
    i && i.sdkToken && n(!0);
  }, [i]), /* @__PURE__ */ a.jsxs("div", { id: "sid-step-id-check-loop", className: "sid-l-container", children: [
    r && /* @__PURE__ */ a.jsx("div", { className: "sid-l-space-btm-lg", children: /* @__PURE__ */ a.jsx("div", { role: "main", children: /* @__PURE__ */ a.jsx(aa, { verificationService: e }) }) }),
    !r && /* @__PURE__ */ a.jsxs("div", { children: [
      /* @__PURE__ */ a.jsxs("div", { role: "main", children: [
        /* @__PURE__ */ a.jsx(P, { align: "center", children: /* @__PURE__ */ a.jsx(
          c,
          {
            id: "step.idCheckLoop.title",
            defaultMessage: "Let's verify your identity",
            tagName: "h1"
          }
        ) }),
        /* @__PURE__ */ a.jsx("div", { className: "sid-header__subtitle sid-l-horz-center sid-l-space-btm-md", children: /* @__PURE__ */ a.jsx(
          c,
          {
            id: "step.idCheckLoop.subtitle",
            defaultMessage: "You'll need access to a mobile phone with a camera or computer with a webcam."
          }
        ) }),
        /* @__PURE__ */ a.jsx("div", { className: "sid-identity-check-steps", children: na(e.programTheme) }),
        /* @__PURE__ */ a.jsx("div", { className: "sid-submit sid-l-horz-center sid-l-space-top-md sid-l-space-btm-md", children: /* @__PURE__ */ a.jsx(
          "button",
          {
            onClick: l,
            type: "button",
            className: "sid-btn sid-btn--dark",
            "aria-label": "submit",
            children: /* @__PURE__ */ a.jsx(c, { id: "step.idCheckLoop.continue", defaultMessage: "Continue" })
          }
        ) })
      ] }),
      /* @__PURE__ */ a.jsx(ea, { verificationService: e })
    ] })
  ] });
};
export {
  ta as default
};
