1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1176],{4601:function(e,a,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/ng/utme/purchase",function(){return s(7667)}])},6631:function(e,a,s){"use strict";s.d(a,{Z:function(){return n}});var l=s(5893);let t=()=>(0,l.jsx)("svg",{width:"21",height:"21",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",className:"shrink-0",children:(0,l.jsx)("path",{d:"M10 1.875C8.39303 1.875 6.82214 2.35152 5.486 3.24431C4.14985 4.1371 3.10844 5.40605 2.49348 6.8907C1.87852 8.37535 1.71762 10.009 2.03112 11.5851C2.34463 13.1612 3.11846 14.6089 4.25476 15.7452C5.39106 16.8815 6.8388 17.6554 8.4149 17.9689C9.99099 18.2824 11.6247 18.1215 13.1093 17.5065C14.594 16.8916 15.8629 15.8502 16.7557 14.514C17.6485 13.1779 18.125 11.607 18.125 10C18.1227 7.84581 17.266 5.78051 15.7427 4.25727C14.2195 2.73403 12.1542 1.87727 10 1.875ZM13.5672 10.4422L11.0672 12.9422C10.9499 13.0595 10.7909 13.1253 10.625 13.1253C10.4592 13.1253 10.3001 13.0595 10.1828 12.9422C10.0655 12.8249 9.99966 12.6659 9.99966 12.5C9.99966 12.3341 10.0655 12.1751 10.1828 12.0578L11.6164 10.625H6.875C6.70924 10.625 6.55027 10.5592 6.43306 10.4419C6.31585 10.3247 6.25 10.1658 6.25 10C6.25 9.83424 6.31585 9.67527 6.43306 9.55806C6.55027 9.44085 6.70924 9.375 6.875 9.375H11.6164L10.1828 7.94219C10.0655 7.82491 9.99966 7.66585 9.99966 7.5C9.99966 7.33415 10.0655 7.17509 10.1828 7.05781C10.3001 6.94054 10.4592 6.87465 10.625 6.87465C10.7909 6.87465 10.9499 6.94054 11.0672 7.05781L13.5672 9.55781C13.6253 9.61586 13.6714 9.68479 13.7029 9.76066C13.7343 9.83654 13.7505 9.91787 13.7505 10C13.7505 10.0821 13.7343 10.1635 13.7029 10.2393C13.6714 10.3152 13.6253 10.3841 13.5672 10.4422Z",fill:"currentColor"})});function n(e){let{type:a,text:s,disabled:n,loading:i,fullWidth:r,style:c={},onClick:o}=e,d=n||i,m=i||s,u=r?"w-full":"";return(0,l.jsxs)(l.Fragment,{children:["smPrimaryButton"===a&&(0,l.jsx)("button",{onClick:o,disabled:d,style:c,className:"bg-[#6431E6] hover:bg-[#5628cb] px-8 py-3 text-xs rounded-sm whitespace-nowrap ".concat(d?"opacity-50 cursor-not-allowed":""," ").concat(u),children:m}),"smOutlineButton"===a&&(0,l.jsx)("button",{onClick:o,disabled:d,style:c,className:"border border-[#ffffff54] px-8 py-3 text-xs rounded-sm whitespace-nowrap ".concat(d?"opacity-50 cursor-not-allowed":""," ").concat(u),children:m}),"mdPrimaryButton"===a&&(0,l.jsx)("button",{onClick:o,disabled:d,style:c,className:"bg-[#6431E6] hover:bg-[#5628cb] px-8 py-2.5 text-sm font-medium rounded-sm whitespace-nowrap ".concat(d?"opacity-50 cursor-not-allowed":""," ").concat(u),children:m}),"heroPrimaryButton"===a&&(0,l.jsxs)("button",{onClick:o,disabled:d,style:c,className:"bg-[#6431E6] hover:bg-[#5628cb] inline-flex items-center justify-center gap-x-3 px-6 py-3.5 text-sm font-medium rounded-lg whitespace-nowrap ".concat(d?"opacity-50 cursor-not-allowed":""," ").concat(u),children:[m,(0,l.jsx)(t,{})]}),"heroOutlineButton"===a&&(0,l.jsx)("button",{onClick:o,disabled:d,style:c,className:"border border-[#ffffff8a] hover:border-white inline-flex items-center justify-center px-8 py-3.5 text-sm font-medium rounded-lg whitespace-nowrap ".concat(d?"opacity-50 cursor-not-allowed":""," ").concat(u),children:m})]})}},1180:function(e,a,s){"use strict";s.d(a,{v:function(){return l}});let l={APP_URL_LOGIN:"https://app.budpay.com/login",APP_URL_REGISTER:"https://app.budpay.com/register",API_BASE_URL_PROD:"https://api.budpay.com/api",API_BASE_URL_TEST:"https://api-test.budpay.com/api",DEVELOPER_URL:"https://developer.budpay.com",CHECKOUT_PUBLIC_KEY:"pk_live_grg4ahxrpkk7bbgcqizajhokrsxhvv6jwmving",GOOGLE_TAG_1:"G-M2HSSMTTH1",GOOGLE_TAG_2:"GTM-PM3QSCQ6",JAMB_LIVE_PUBLIC_KEY:"pk_live_0385us3dt4bsmytnf1lbnj0r2o543hfa8i5ypq",JAMB_TEST_PUBLIC_KEY:"pk_test_y9gpthl38c2s6i926q7gqwa36mfwkx4hno6jya"}},3459:function(e,a,s){"use strict";s.d(a,{Ij:function(){return n},St:function(){return r},Tf:function(){return c},be:function(){return o},oB:function(){return m}}),s(381);var l=s(7066),t=s(1180);let n=()=>{let e=window.navigator.userAgent,a=window.navigator.platform,s=null;return -1!==["Macintosh","MacIntel","MacPPC","Mac68K"].indexOf(a)?s="Mac OS":-1!==["iPhone","iPad","iPod"].indexOf(a)?s="iOS":-1!==["Win32","Win64","Windows","WinCE"].indexOf(a)?s="Windows":/Android/.test(e)?s="Android":!s&&/Linux/.test(a)&&(s="Linux"),s},i=e=>{let a={"&":"&","<":"<",">":">",""":'"',"'":"'","'":"'","'":"'","/":"/","❤":"â¤","😍":"\uD83D\uDE0D","😊":"\uD83D\uDE0A","’":"'"};return e.replace(/&[#\w]+;/g,e=>a[e]||e).replace(/<[^>]*>/g,"")},r=e=>Math.ceil(e.replace(/<[^>]*>/g,"").replace(/[\n\r]/g," ").replace(/\s+/g," ").trim().split(" ").filter(e=>e.length>0).length/200),c=async()=>{try{let e=await fetch("https://public-api.wordpress.com/rest/v1.1/sites/budpay.wordpress.com/posts?number=100");if(!e.ok)throw Error("Failed to fetch data: ".concat(e.statusText));return(await e.json()).posts.map(e=>({id:e.ID,title:i(e.title),content:e.content,excerpt:i(e.excerpt),date:e.date,featured_image:e.featured_image,category:Object.keys(e.categories)[0],author:Object.keys(e.tags)[0]}))}catch(e){return console.error("error",e),[]}},o=l.Z.create({baseURL:t.v.API_BASE_URL_PROD||"",headers:{"Content-Type":"application/json"}}),d=e=>{switch((e||"").toLowerCase()){case"ngn":return"â¦";case"usd":return"$";case"eur":return"â¬";case"gbp":return"\xa3";case"kes":return"KSh";case"ghs":return"GHâµ";case"zar":return"R";case"tzs":return"TSh";default:return(e||"").toUpperCase()||""}},m=(e,a,s)=>{try{"string"==typeof a&&(a=a.replace(/,/g,""));let t="string"==typeof a?parseFloat(a):a;if(isNaN(t))throw Error("Invalid amount: cannot convert to number");let n=void 0!==s?s:2,i=Number(t.toFixed(n)).toFixed(n);if(void 0!==s&&s>2){var l;let e=i.split(".")[1]||"",a=(null===(l=t.toString().split(".")[1])||void 0===l?void 0:l.length)||0;if(n>a){let s=e.substring(0,a),l=Math.min(n-a,2);i=i.split(".")[0]+"."+s+"0".repeat(l)}}let r=i.split(".");r[0]=r[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),i=r.join(".");let c=d(e);return"".concat(c).concat(i)}catch(a){return"".concat(d(e),"0.00")}}},7667:function(e,a,s){"use strict";s.r(a),s.d(a,{default:function(){return K}});var l=s(5893),t=s(7294),n=s(5675),i=s.n(n),r=s(1180),c=s(3459);s(6290);var o=s(7235);let d=[{name:"United States",isoName:"US",currencyCode:"USD",currencyName:"US Dollar",callingCodes:'["+1"]'},{name:"Afghanistan",isoName:"AF",currencyCode:"AFN",currencyName:"Afghan Afghani",callingCodes:'["+93"]'},{name:"Albania",isoName:"AL",currencyCode:"ALL",currencyName:"Albanian Lek",callingCodes:'["+355"]'},{name:"Algeria",isoName:"DZ",currencyCode:"DZD",currencyName:"Algerian Dinar",callingCodes:'["+213"]'},{name:"American Samoa",isoName:"AS",currencyCode:"USD",currencyName:"US Dollar",callingCodes:'["+1684"]'},{name:"Angola",isoName:"AO",currencyCode:"AOA",currencyName:"Angolan Kwanza",callingCodes:'["+244"]'},{name:"Anguilla",isoName:"AI",currencyCode:"XCD",currencyName:"East Caribbean Dollar",callingCodes:'["+1264"]'},{name:"Antigua and Barbuda",isoName:"AG",currencyCode:"XCD",currencyName:"East Caribbean Dollar",callingCodes:'["+1268"]'},{name:"Argentina",isoName:"AR",currencyCode:"ARS",currencyName:"Argentine Peso",callingCodes:'["+54"]'},{name:"Armenia",isoName:"AM",currencyCode:"AMD",currencyName:"Armenian Dram",callingCodes:'["+374"]'},{name:"Aruba",isoName:"AW",currencyCode:"AWG",currencyName:"Aruban Florin",callingCodes:'["+297"]'},{name:"Bahamas",isoName:"BS",currencyCode:"BSD",currencyName:"Bahamian Dollar",callingCodes:'["+1242"]'},{name:"Bahrain",isoName:"BH",currencyCode:"BHD",currencyName:"Bahraini Dinar",callingCodes:'["+973"]'},{name:"Bangladesh",isoName:"BD",currencyCode:"BDT",currencyName:"Bangladeshi Taka",callingCodes:'["+880"]'},{name:"Barbados",isoName:"BB",currencyCode:"BBD",currencyName:"Barbadian Dollar",callingCodes:'["+1246"]'},{name:"Belize",isoName:"BZ",currencyCode:"BZD",currencyName:"Belize Dollar",callingCodes:'["+501"]'},{name:"Benin",isoName:"BJ",currencyCode:"XOF",currencyName:"CFA Franc BCEAO",callingCodes:'["+229"]'},{name:"Bermuda",isoName:"BM",currencyCode:"BMD",currencyName:"Bermudan Dollar",callingCodes:'["+1441"]'},{name:"Bolivia",isoName:"BO",currencyCode:"BOB",currencyName:"Bolivian Boliviano",callingCodes:'["+591"]'},{name:"Botswana",isoName:"BW",currencyCode:"BWP",currencyName:"Botswanan Pula",callingCodes:'["+267"]'},{name:"Brazil",isoName:"BR",currencyCode:"BRL",currencyName:"Brazilian Real",callingCodes:'["+55"]'},{name:"British Virgin Islands",isoName:"VG",currencyCode:"USD",currencyName:"US Dollar",callingCodes:'["+1284"]'},{name:"Burkina Faso",isoName:"BF",currencyCode:"XOF",currencyName:"CFA Franc BCEAO",callingCodes:'["+226"]'},{name:"Burundi",isoName:"BI",currencyCode:"BIF",currencyName:"Burundian Franc",callingCodes:'["+257"]'},{name:"Cambodia",isoName:"KH",currencyCode:"USD",currencyName:"US Dollar",callingCodes:'["+855"]'},{name:"Cameroon",isoName:"CM",currencyCode:"XAF",currencyName:"CFA Franc BEAC",callingCodes:'["+237"]'}
1,{name:"Canada",isoName:"CA",currencyCode:"CAD",currencyName:"Canadian Dollar",callingCodes:'["+1"]'},{name:"Cape Verde",isoName:"CV",currencyCode:"CVE",currencyName:"Cape Verdean Escudo",callingCodes:'["+238"]'},{name:"Cayman Islands",isoName:"KY",currencyCode:"KYD",currencyName:"Cayman Islands Dollar",callingCodes:'["+1345"]'},{name:"Central African Republic",isoName:"CF",currencyCode:"XAF",currencyName:"CFA Franc BEAC",callingCodes:'["+236"]'},{name:"Chile",isoName:"CL",currencyCode:"CLP",currencyName:"Chilean Peso",callingCodes:'["+56"]'},{name:"China",isoName:"CN",currencyCode:"CNY",currencyName:"Chinese Yuan",callingCodes:'["+86"]'},{name:"Colombia",isoName:"CO",currencyCode:"COP",currencyName:"Colombian Peso",callingCodes:'["+57"]'},{name:"Congo",isoName:"CG",currencyCode:"XAF",currencyName:"CFA Franc BEAC",callingCodes:'["+242"]'},{name:"Costa Rica",isoName:"CR",currencyCode:"CRC",currencyName:"Costa Rican Col\xf3n",callingCodes:'["+506"]'},{name:"C\xf4te d'Ivoire",isoName:"CI",currencyCode:"XOF",currencyName:"CFA Franc BCEAO",callingCodes:'["+225"]'},{name:"Cuba",isoName:"CU",currencyCode:"CUP",currencyName:"Cuban Peso",callingCodes:'["+53"]'},{name:"France",isoName:"FR",currencyCode:"EUR",currencyName:"Euro",callingCodes:'["+33"]'},{name:"Cyprus",isoName:"CY",currencyCode:"EUR",currencyName:"Euro",callingCodes:'["+357"]'},{name:"Dominica",isoName:"DM",currencyCode:"XCD",currencyName:"East Caribbean Dollar",callingCodes:'["+1767"]'},{name:"Dominican Republic",isoName:"DO",currencyCode:"DOP",currencyName:"Dominican Peso",callingCodes:'["+1849","+1829","+1809"]'},{name:"Ecuador",isoName:"EC",currencyCode:"USD",currencyName:"US Dollar",callingCodes:'["+593"]'},{name:"Egypt",isoName:"EG",currencyCode:"EGP",currencyName:"Egyptian Pound",callingCodes:'["+20"]'},{name:"El Salvador",isoName:"SV",currencyCode:"USD",currencyName:"US Dollar",callingCodes:'["+503"]'},{name:"Ethiopia",isoName:"ET",currencyCode:"ETB",currencyName:"Ethiopian Birr",callingCodes:'["+251"]'},{name:"Fiji",isoName:"FJ",currencyCode:"FJD",currencyName:"Fijian Dollar",callingCodes:'["+679"]'},{name:"Gambia",isoName:"GM",currencyCode:"GMD",currencyName:"Gambian Dalasi",callingCodes:'["+220"]'},{name:"Georgia",isoName:"GE",currencyCode:"GEL",currencyName:"Georgian Lari",callingCodes:'["+995"]'},{name:"Germany",isoName:"DE",currencyCode:"EUR",currencyName:"Euro",callingCodes:'["+49"]'},{name:"Ghana",isoName:"GH",currencyCode:"GHS",currencyName:"Ghanaian Cedi",callingCodes:'["+233"]'},{name:"Grenada",isoName:"GD",currencyCode:"XCD",currencyName:"East Caribbean Dollar",callingCodes:'["+1473"]'},{name:"Guatemala",isoName:"GT",currencyCode:"GTQ",currencyName:"Guatemalan Quetzal",callingCodes:'["+502"]'},{name:"Guinea-Conakry",isoName:"GN",currencyCode:"GNF",currencyName:"Guinean Franc",callingCodes:'["+224"]'},{name:"Guinea-Bissau",isoName:"GW",currencyCode:"XOF",currencyName:"CFA Franc BCEAO",callingCodes:'["+245"]'},{name:"Guyana",isoName:"GY",currencyCode:"GYD",currencyName:"Guyanaese Dollar",callingCodes:'["+592"]'},{name:"Haiti",isoName:"HT",currencyCode:"HTG",currencyName:"Haitian Gourde",callingCodes:'["+509"]'},{name:"Honduras",isoName:"HN",currencyCode:"HNL",currencyName:"Honduran Lempira",callingCodes:'["+504"]'},{name:"India",isoName:"IN",currencyCode:"INR",currencyName:"Indian Rupee",callingCodes:'["+91"]'},{name:"Indonesia",isoName:"ID",currencyCode:"IDR",currencyName:"Indonesian Rupiah",callingCodes:'["+62"]'},{name:"Iraq",isoName:"IQ",currencyCode:"IQD",currencyName:"Iraqi Dinar",callingCodes:'["+964"]'},{name:"Italy",isoName:"IT",currencyCode:"EUR",currencyName:"Euro",callingCodes:'["+39"]'},{name:"Jamaica",isoName:"JM",currencyCode:"JMD",currencyName:"Jamaican Dollar",callingCodes:'["+1876"]'},{name:"Jordan",isoName:"JO",currencyCode:"JOD",currencyName:"Jordanian Dinar",callingCodes:'["+962"]'},{name:"Kazakhstan",isoName:"KZ",currencyCode:"KZT",currencyName:"Kazakhstani Tenge",callingCodes:'["+76","+77"]'},{name:"Kenya",isoName:"KE",currencyCode:"KES",currencyName:"Kenyan Shilling",callingCodes:'["+254"]'},{name:"Kuwait",isoName:"KW",currencyCode:"KWD",currencyName:"Kuwaiti Dinar",callingCodes:'["+965"]'},{name:"Kyrgyzstan",isoName:"KG",currencyCode:"KGS",currencyName:"Kyrgystani Som",callingCodes:'["+996"]'}
1,{name:"Laos",isoName:"LA",currencyCode:"LAK",currencyName:"Laotian Kip",callingCodes:'["+856"]'},{name:"Lebanon",isoName:"LB",currencyCode:"LBP",currencyName:"Lebanese Pound",callingCodes:'["+961"]'},{name:"Liberia",isoName:"LR",currencyCode:"USD",currencyName:"US Dollar",callingCodes:'["+231"]'},{name:"Macedonia",isoName:"MK",currencyCode:"MKD",currencyName:"Macedonian Denar",callingCodes:'["+389"]'},{name:"Madagascar",isoName:"MG",currencyCode:"MGA",currencyName:"Malagasy Ariary",callingCodes:'["+261"]'},{name:"Malawi",isoName:"MW",currencyCode:"MWK",currencyName:"Malawian Kwacha",callingCodes:'["+265"]'},{name:"Malaysia",isoName:"MY",currencyCode:"MYR",currencyName:"Malaysian Ringgit",callingCodes:'["+60"]'},{name:"Mali",isoName:"ML",currencyCode:"XOF",currencyName:"CFA Franc BCEAO",callingCodes:'["+223"]'},{name:"Martinique",isoName:"MQ",currencyCode:"EUR",currencyName:"Euro",callingCodes:'["+596"]'},{name:"Mexico",isoName:"MX",currencyCode:"MXN",currencyName:"Mexican Peso",callingCodes:'["+52"]'},{name:"Moldova",isoName:"MD",currencyCode:"MDL",currencyName:"Moldovan Leu",callingCodes:'["+373"]'},{name:"Morocco",isoName:"MA",currencyCode:"MAD",currencyName:"Moroccan Dirham",callingCodes:'["+212"]'},{name:"Mozambique",isoName:"MZ",currencyCode:"MZN",currencyName:"Mozambican Metical",callingCodes:'["+258"]'},{name:"Myanmar",isoName:"MM",currencyCode:"MMK",currencyName:"Myanma Kyat",callingCodes:'["+95"]'},{name:"Namibia",isoName:"NA",currencyCode:"NAD",currencyName:"Namibian Dollar",callingCodes:'["+264"]'},{name:"Nauru",isoName:"NR",currencyCode:"AUD",currencyName:"Australian Dollar",callingCodes:'["+674"]'},{name:"Nepal",isoName:"NP",currencyCode:"NPR",currencyName:"Nepalese Rupee",callingCodes:'["+977"]'},{name:"Netherlands",isoName:"NL",currencyCode:"EUR",currencyName:"Euro",callingCodes:'["+31"]'},{name:"Nicaragua",isoName:"NI",currencyCode:"NIO",currencyName:"Nicaraguan C\xf3rdoba",callingCodes:'["+505"]'},{name:"Niger",isoName:"NE",currencyCode:"XOF",currencyName:"CFA Franc BCEAO",callingCodes:'["+227"]'},{name:"Nigeria",isoName:"NG",currencyCode:"NGN",currencyName:"Nigerian Naira",callingCodes:'["+234"]'},{name:"Oman",isoName:"OM",currencyCode:"OMR",currencyName:"Omani Rial",callingCodes:'["+968"]'},{name:"Pakistan",isoName:"PK",currencyCode:"PKR",currencyName:"Pakistani Rupee",callingCodes:'["+92"]'},{name:"Palestine",isoName:"PS",currencyCode:"ILS",currencyName:"Israeli New Sheqel",callingCodes:'["+970"]'},{name:"Panama",isoName:"PA",currencyCode:"USD",currencyName:"US Dollar",callingCodes:'["+507"]'},{name:"Papua New Guinea",isoName:"PG",currencyCode:"PGK",currencyName:"Papua New Guinean Kina",callingCodes:'["+675"]'},{name:"Paraguay",isoName:"PY",currencyCode:"PYG",currencyName:"Paraguayan Guarani",callingCodes:'["+595"]'},{name:"Peru",isoName:"PE",currencyCode:"PEN",currencyName:"Peruvian Nuevo Sol",callingCodes:'["+51"]'},{name:"Philippines",isoName:"PH",currencyCode:"PHP",currencyName:"Philippine Peso",callingCodes:'["+63"]'},{name:"Poland",isoName:"PL",currencyCode:"PLN",currencyName:"Polish Zloty",callingCodes:'["+48"]'},{name:"Portugal",isoName:"PT",currencyCode:"EUR",currencyName:"Euro",callingCodes:'["+351"]'},{name:"Puerto Rico",isoName:"PR",currencyCode:"USD",currencyName:"US Dollar",callingCodes:'["+1787","+1939"]'},{name:"Qatar",isoName:"QA",currencyCode:"QAR",currencyName:"Qatari Rial",callingCodes:'["+974"]'},{name:"Romania",isoName:"RO",currencyCode:"EUR",currencyName:"Euro",callingCodes:'["+40"]'},{name:"Russia",isoName:"RU",currencyCode:"RUB",currencyName:"Russian Ruble",callingCodes:'["+7"]'},{name:"Rwanda",isoName:"RW",currencyCode:"RWF",currencyName:"Rwandan Franc",callingCodes:'["+250"]'},{name:"Saint Kitts And Nevis",isoName:"KN",currencyCode:"XCD",currencyName:"East Caribbean Dollar",callingCodes:'["+1869"]'},{name:"Saint Lucia",isoName:"LC",currencyCode:"XCD",currencyName:"East Caribbean Dollar",callingCodes:'["+1758"]'},{name:"Saint Vincent And The Grenadines",isoName:"VC",currencyCode:"XCD",currencyName:"East Caribbean Dollar",callingCodes:'["+1784"]'},{name:"Samoa",isoName:"WS",currencyCode:"WST",currencyName:"Samoan Tala",callingCodes:'["+685"]'},{name:"Saudi Arabia",isoName:"SA",currencyCode:"SAR",currencyName:"Saudi Riyal",callingCodes:'["+966"]'},{name:"Senegal",isoName:"SN",currencyCode:"XOF",currencyName:"CFA Franc BCEAO",callingCodes:'["+221"]'},{name:"Sierra Leone",isoName:"SL",currencyCode:"SLL",currencyName:"Sierra Leonean Leone",callingCodes:'["+232"]'},{name:"Singapore",isoName:"SG",currencyCode:"SGD",currencyName:"Singapore Dollar",callingCodes:'["+65"]'},{name:"South Africa",isoName:"ZA",currencyCode:"ZAR",currencyName:"South African Rand",callingCodes:'["+27"]'},{name:"Spain",isoName:"ES",currencyCode:"EUR",currencyName:"Euro",callingCodes:'["+34"]'},{name:"Sri Lanka",isoName:"LK",currencyCode:"LKR",currencyName:"Sri Lankan Rupee",callingCodes:'["+94"]'},{name:"Suriname",isoName:"SR",currencyCode:"SRD",currencyName:"Surinamese Dollar",callingCodes:'["+597"]'},{name:"Swaziland",isoName:"SZ",currencyCode:"SZL",currencyName:"Swazi Lilangeni",callingCodes:'["+268"]'},{name:"Tajikistan",isoName:"TJ",currencyCode:"TJS",currencyName:"Tajikistani Somoni",callingCodes:'["+992"]'},{name:"Tanzania",isoName:"TZ",currencyCode:"TZS",currencyName:"Tanzanian Shilling",callingCodes:'["+255"]'},{name:"Thailand",isoName:"TH",currencyCode:"THB",currencyName:"Thai Baht",callingCodes:'["+66"]'},{name:"The Democratic Republic Of Congo",isoName:"CD",currencyCode:"USD",currencyName:"US Dollar",callingCodes:'["+243"]'},{name:"Togo",isoName:"TG",currencyCode:"XOF",currencyName:"CFA Franc BCEAO",callingCodes:'["+228"]'},{name:"Tonga",isoName:"TO",currencyCode:"TOP",currencyName:"Tongan Pa?anga",callingCodes:'["+676"]'},{name:"Trinidad and Tobago",isoName:"TT",currencyCode:"TTD",currencyName:"Trinidad and Tobago Dollar",callingCodes:'["+1868"]'},{name:"Tunisia",isoName:"TN",currencyCode:"TND",currencyName:"Tunisian Dinar",callingCodes:'["+216"]'},{name:"Turkey",isoName:"TR",currencyCode:"TRY",currencyName:"Turkish Lira",callingCodes:'["+90"]'},{name:"Turks And Caicos Islands",isoName:"TC",currencyCode:"USD",currencyName:"US Dollar",callingCodes:'["+1649"]'},{name:"Uganda",isoName:"UG",currencyCode:"UGX",currencyName:"Ugandan Shilling",callingCodes:'["+256"]'},{name:"Ukraine",isoName:"UA",currencyCode:"UAH",currencyName:"Ukrainian Hryvnia",callingCodes:'["+380"]'},{name:"United Arab Emirates",isoName:"AE",currencyCode:"AED",currencyName:"United Arab Emirates Dirham",callingCodes:'["+971"]'},{name:"United Kingdom",isoName:"GB",currencyCode:"GBP",currencyName:"British Poun
1d Sterling",callingCodes:'["+44"]'},{name:"Uruguay",isoName:"UY",currencyCode:"UYU",currencyName:"Uruguayan Peso",callingCodes:'["+598"]'},{name:"Uzbekistan",isoName:"UZ",currencyCode:"UZS",currencyName:"Uzbekistan Som",callingCodes:'["+998"]'},{name:"Vanuatu",isoName:"VU",currencyCode:"VUV",currencyName:"Vanuatu Vatu",callingCodes:'["+678"]'},{name:"Vietnam",isoName:"VN",currencyCode:"VND",currencyName:"Vietnamese Dong",callingCodes:'["+84"]'},{name:"Yemen",isoName:"YE",currencyCode:"YER",currencyName:"Yemeni Rial",callingCodes:'["+967"]'},{name:"Zambia",isoName:"ZM",currencyCode:"ZMW",currencyName:"ZMW",callingCodes:'["+260"]'},{name:"Zimbabwe",isoName:"ZW",currencyCode:"ZWL",currencyName:"Zimbabwean Dollar (2009)",callingCodes:'["+263"]'},{name:"Venezuela",isoName:"VE",currencyCode:"VEF",currencyName:"Bolivar Fuerte",callingCodes:'["+58"]'},{name:"Greece",isoName:"GR",currencyCode:"EUR",currencyName:"Euro",callingCodes:'["+30"]'},{name:"Somalia",isoName:"SO",currencyCode:"USD",currencyName:"US Dollar",callingCodes:'["+252"]'},{name:"Belarus",isoName:"BY",currencyCode:"BYN",currencyName:"Belarusian ruble",callingCodes:'["+375"]'},{name:"Comoros",isoName:"KM",currencyCode:"KMF",currencyName:"Comorian Franc",callingCodes:'["+269"]'},{name:"Mauritania",isoName:"MR",currencyCode:"MRU",currencyName:"Mauritanian Ouguiya",callingCodes:'["+222"]'},{name:"Belgium",isoName:"BE",currencyCode:"EUR",currencyName:"Euro",callingCodes:'["+32"]'},{name:"Montserrat",isoName:"MS",currencyCode:"XCD",currencyName:"East Caribbean Dollar",callingCodes:'["+1"]'},{name:"South Korea",isoName:"KR",currencyCode:"KRW",currencyName:"South Korean Won",callingCodes:'["+82"]'},{name:"Iran",isoName:"IR",currencyCode:"IRR",currencyName:"Iranian Rial",callingCodes:'["+98"]'},{name:"Gabon",isoName:"GA",currencyCode:"XAF",currencyName:"CFA Franc BEAC",callingCodes:"[]"}];function m(e){var a,s;let{currencyCode:t,countryname:n,width:i,height:r}=e,c="";t?c=3==t.length?(null===(a=d.find(e=>e.currencyCode==t.toUpperCase()))||void 0===a?void 0:a.isoName)||"":t:n&&(c=(null===(s=d.find(e=>e.name==n))||void 0===s?void 0:s.isoName)||"");let m="w-[1.9rem]",u={AC:(0,l.jsx)(o.AC,{title:"Ascension Island",className:m}),AD:(0,l.jsx)(o.AD,{title:"Andorra",className:m}),AE:(0,l.jsx)(o.AE,{title:"United Arab Emirates",className:m}),AF:(0,l.jsx)(o.AF,{title:"Afghanistan",className:m}),AG:(0,l.jsx)(o.AG,{title:"Antigua and Barbuda",className:m}),AI:(0,l.jsx)(o.AI,{title:"Anguilla",className:m}),AL:(0,l.jsx)(o.AL,{title:"Albania",className:m}),AM:(0,l.jsx)(o.AM,{title:"Armenia",className:m}),AO:(0,l.jsx)(o.AO,{title:"Angola",className:m}),AQ:(0,l.jsx)(o.AQ,{title:"Antarctica",className:m}),AR:(0,l.jsx)(o.AR,{title:"Argentina",className:m}),AS:(0,l.jsx)(o.AS,{title:"American Samoa",className:m}),AT:(0,l.jsx)(o.AT,{title:"Austria",className:m}),AU:(0,l.jsx)(o.AU,{title:"Australia",className:m}),AW:(0,l.jsx)(o.AW,{title:"Aruba",className:m}),AX:(0,l.jsx)(o.AX,{title:"\xc5land Islands",className:m}),AZ:(0,l.jsx)(o.AZ,{title:"Azerbaijan",className:m}),BA:(0,l.jsx)(o.BA,{title:"Bosnia and Herzegovina",className:m}),BB:(0,l.jsx)(o.BB,{title:"Barbados",className:m}),BD:(0,l.jsx)(o.BD,{title:"Bangladesh",className:m}),BE:(0,l.jsx)(o.BE,{title:"Belgium",className:m}),BF:(0,l.jsx)(o.BF,{title:"Burkina Faso",className:m}),BG:(0,l.jsx)(o.BG,{title:"Bulgaria",className:m}),BH:(0,l.jsx)(o.BH,{title:"Bahrain",className:m}),BI:(0,l.jsx)(o.BI,{title:"Burundi",className:m}),BJ:(0,l.jsx)(o.BJ,{title:"Benin",className:m}),BL:(0,l.jsx)(o.BL,{title:"Saint Barth\xe9lemy",className:m}),BM:(0,l.jsx)(o.BM,{title:"Bermuda",className:m}),BN:(0,l.jsx)(o.BN,{title:"Brunei",className:m}),BO:(0,l.jsx)(o.BO,{title:"Bolivia",className:m}),BQ:(0,l.jsx)(o.BQ,{title:"Caribbean Netherlands",className:m}),BR:(0,l.jsx)(o.BR,{title:"Brazil",className:m}),BS:(0,l.jsx)(o.BS,{title:"Bahamas",className:m}),BT:(0,l.jsx)(o.BT,{title:"Bhutan",className:m}),BV:(0,l.jsx)(o.BV,{title:"Bouvet Island",className:m}),BW:(0,l.jsx)(o.BW,{title:"Botswana",className:m}),BY:(0,l.jsx)(o.BY,{title:"Belarus",className:m}),BZ:(0,l.jsx)(o.BZ,{title:"Belize",className:m}),CA:(0,l.jsx)(o.CA,{title:"Canada",className:m}),CC:(0,l.jsx)(o.CC,{title:"Cocos (Keeling) Islands",className:m}),CD:(0,l.jsx)(o.CD,{title:"Congo (Kinshasa)",className:m}),CF:(0,l.jsx)(o.CF,{title:"Central African Republic",className:m}),CG:(0,l.jsx)(o.CG,{title:"Congo (Brazzaville)",className:m}),CH:(0,l.jsx)(o.CH,{title:"Switzerland",className:m}),CI:(0,l.jsx)(o.CI,{title:"C\xf4te d'Ivoire",className:m}),CK:(0,l.jsx)(o.CK,{title:"Cook Islands",className:m}),CL:(0,l.jsx)(o.CL,{title:"Chile",className:m}),CM:(0,l.jsx)(o.CM,{title:"Cameroon",className:m}),CN:(0,l.jsx)(o.CN,{title:"China",className:m}),CO:(0,l.jsx)(o.CO,{title:"Colombia",className:m}),CR:(0,l.jsx)(o.CR,{title:"Costa Rica",className:m}),CU:(0,l.jsx)(o.CU,{title:"Cuba",className:m}),CV:(0,l.jsx)(o.CV,{title:"Cape Verde",className:m}),CW:(0,l.jsx)(o.CW,{title:"Cura\xe7ao",className:m}),CX:(0,l.jsx)(o.CX,{title:"Christmas Island",className:m}),CY:(0,l.jsx)(o.CY,{title:"Cyprus",className:m}),CZ:(0,l.jsx)(o.CZ,{title:"Czech Republic",className:m}),DE:(0,l.jsx)(o.DE,{title:"Germany",className:m}
1),DJ:(0,l.jsx)(o.DJ,{title:"Djibouti",className:m}),DK:(0,l.jsx)(o.DK,{title:"Denmark",className:m}),DM:(0,l.jsx)(o.DM,{title:"Dominica",className:m}),DO:(0,l.jsx)(o.DO,{title:"Dominican Republic",className:m}),DZ:(0,l.jsx)(o.DZ,{title:"Algeria",className:m}),EC:(0,l.jsx)(o.EC,{title:"Ecuador",className:m}),EE:(0,l.jsx)(o.EE,{title:"Estonia",className:m}),EG:(0,l.jsx)(o.EG,{title:"Egypt",className:m}),EH:(0,l.jsx)(o.EH,{title:"Western Sahara",className:m}),ER:(0,l.jsx)(o.ER,{title:"Eritrea",className:m}),ES:(0,l.jsx)(o.ES,{title:"Spain",className:m}),ET:(0,l.jsx)(o.ET,{title:"Ethiopia",className:m}),EU:(0,l.jsx)(o.EU,{title:"European Union",className:m}),FI:(0,l.jsx)(o.FI,{title:"Finland",className:m}),FJ:(0,l.jsx)(o.FJ,{title:"Fiji",className:m}),FK:(0,l.jsx)(o.FK,{title:"Falkland Islands",className:m}),FM:(0,l.jsx)(o.FM,{title:"Micronesia",className:m}),FO:(0,l.jsx)(o.FO,{title:"Faroe Islands",className:m}),FR:(0,l.jsx)(o.FR,{title:"France",className:m}),GA:(0,l.jsx)(o.GA,{title:"Gabon",className:m}),GB:(0,l.jsx)(o.GB,{title:"United Kingdom",className:m}),GD:(0,l.jsx)(o.GD,{title:"Grenada",className:m}),GE:(0,l.jsx)(o.GE,{title:"Georgia",className:m}),GF:(0,l.jsx)(o.GF,{title:"French Guiana",className:m}),GG:(0,l.jsx)(o.GG,{title:"Guernsey",className:m}),GH:(0,l.jsx)(o.GH,{title:"Ghana",className:m}),GI:(0,l.jsx)(o.GI,{title:"Gibraltar",className:m}),GL:(0,l.jsx)(o.GL,{title:"Greenland",className:m}),GM:(0,l.jsx)(o.GM,{title:"Gambia",className:m}),GN:(0,l.jsx)(o.GN,{title:"Guinea",className:m}),GP:(0,l.jsx)(o.GP,{title:"Guadeloupe",className:m}),GQ:(0,l.jsx)(o.GQ,{title:"Equatorial Guinea",className:m}),GR:(0,l.jsx)(o.GR,{title:"Greece",className:m}),GS:(0,l.jsx)(o.GS,{title:"South Georgia and the South Sandwich Islands",className:m}),GT:(0,l.jsx)(o.GT,{title:"Guatemala",className:m}),GU:(0,l.jsx)(o.GU,{title:"Guam",className:m}),GW:(0,l.jsx)(o.GW,{title:"Guinea-Bissau",className:m}),GY:(0,l.jsx)(o.GY,{title:"Guyana",className:m}),HK:(0,l.jsx)(o.HK,{title:"Hong Kong SAR China",className:m}),HM:(0,l.jsx)(o.HM,{title:"Heard & McDonald Islands",className:m}),HN:(0,l.jsx)(o.HN,{title:"Honduras",className:m}),HR:(0,l.jsx)(o.HR,{title:"Croatia",className:m}),HT:(0,l.jsx)(o.HT,{title:"Haiti",className:m}),HU:(0,l.jsx)(o.HU,{title:"Hungary",className:m}),IC:(0,l.jsx)(o.IC,{title:"Canary Islands",className:m}),ID:(0,l.jsx)(o.ID,{title:"Indonesia",className:m}),IE:(0,l.jsx)(o.IE,{title:"Ireland",className:m}),IL:(0,l.jsx)(o.IL,{title:"Israel",className:m}),IM:(0,l.jsx)(o.IM,{title:"Isle of Man",className:m}),IN:(0,l.jsx)(o.IN,{title:"India",className:m}),IO:(0,l.jsx)(o.IO,{title:"British Indian Ocean Territory",className:m}),IQ:(0,l.jsx)(o.IQ,{title:"Iraq",className:m}),IR:(0,l.jsx)(o.IR,{title:"Iran",className:m}),IS:(0,l.jsx)(o.IS,{title:"Iceland",className:m}),IT:(0,l.jsx)(o.IT,{title:"Italy",className:m}),JE:(0,l.jsx)(o.JE,{title:"Jersey",className:m}),JM:(0,l.jsx)(o.JM,{title:"Jamaica",className:m}),JO:(0,l.jsx)(o.JO,{title:"Jordan",className:m}),JP:(0,l.jsx)(o.JP,{title:"Japan",className:m}),KE:(0,l.jsx)(o.KE,{title:"Kenya",className:m}),KG:(0,l.jsx)(o.KG,{title:"Kyrgyzstan",className:m}),KH:(0,l.jsx)(o.KH,{title:"Cambodia",className:m}),KI:(0,l.jsx)(o.KI,{title:"Kiribati",className:m}),KM:(0,l.jsx)(o.KM,{title:"Comoros",className:m}),KN:(0,l.jsx)(o.KN,{title:"Saint Kitts and Nevis",className:m}),KP:(0,l.jsx)(o.KP,{title:"North Korea",className:m}),KR:(0,l.jsx)(o.KR,{title:"South Korea",className:m}),KW:(0,l.jsx)(o.KW,{title:"Kuwait",className:m}),KY:(0,l.jsx)(o.KY,{title:"Cayman Islands",className:m}),KZ:(0,l.jsx)(o.KZ,{title:"Kazakhstan",className:m}),LA:(0,l.jsx)(o.LA,{title:"Laos",className:m}),LB:(0,l.jsx)(o.LB,{title:"Lebanon",className:m}),LC:(0,l.jsx)(o.LC,{title:"Saint Lucia",className:m}),LI:(0,l.jsx)(o.LI,{title:"Liechtenstein",className:m}),LK:(0,l.jsx)(o.LK,{title:"Sri Lanka",className:m}),LR:(0,l.jsx)(o.LR,{title:"Liberia",className:m}),LS:(0,l.jsx)(o.LS,{title:"Lesotho",className:m}),LT:(0,l.jsx)(o.LT,{title:"Lithuania",className:m}),LU:(0,l.jsx)(o.LU,{title:"Luxembourg",className:m}),LV:(0,l.jsx)(o.LV,{title:"Latvia",className:m}),LY:(0,l.jsx)(o.LY,{title:"Libya",className:m}),MA:(0,l.jsx)(o.MA,{title:"Morocco",className:m}),MC:(0,l.jsx)(o.MC,{title:"Monaco",className:m}),MD:(0,l.jsx)(o.MD,{title:"Moldova",className:m}),ME:(0,l.jsx)(o.ME,{title:"Montenegro",className:m}),MF:(0,l.jsx)(o.MF,{title:"Saint Martin (French part)",className:m}),MG:(0,l.jsx)(o.MG,{title:"Madagascar",className:m}),MH:(0,l.jsx)(o.MH,{title:"Marshall Islands",className:m}),MK:(0,l.jsx)(o.MK,{title:"North Macedonia",className:m}),ML:(0,l.jsx)(o.ML,{title:"Mali",className:m}),MM:(0,l.jsx)(o.MM,{title:"Myanmar (Burma)",className:m}),MN:(0,l.jsx)(o.MN,{title:"Mongolia",className:m}),MO:(0,l.jsx)(o.MO,{title:"Macao SAR China",className:m}),MP:(0,l.jsx)(o.MP,{title:"Northern Mariana Islands",className:m}
1),MQ:(0,l.jsx)(o.MQ,{title:"Martinique",className:m}),MR:(0,l.jsx)(o.MR,{title:"Mauritania",className:m}),MS:(0,l.jsx)(o.MS,{title:"Montserrat",className:m}),MT:(0,l.jsx)(o.MT,{title:"Malta",className:m}),MU:(0,l.jsx)(o.MU,{title:"Mauritius",className:m}),MV:(0,l.jsx)(o.MV,{title:"Maldives",className:m}),MW:(0,l.jsx)(o.MW,{title:"Malawi",className:m}),MX:(0,l.jsx)(o.MX,{title:"Mexico",className:m}),MY:(0,l.jsx)(o.MY,{title:"Malaysia",className:m}),MZ:(0,l.jsx)(o.MZ,{title:"Mozambique",className:m}),NA:(0,l.jsx)(o.NA,{title:"Namibia",className:m}),NC:(0,l.jsx)(o.NC,{title:"New Caledonia",className:m}),NE:(0,l.jsx)(o.NE,{title:"Niger",className:m}),NF:(0,l.jsx)(o.NF,{title:"Norfolk Island",className:m}),NG:(0,l.jsx)(o.NG,{title:"Nigeria",className:m}),NI:(0,l.jsx)(o.NI,{title:"Nicaragua",className:m}),NL:(0,l.jsx)(o.NL,{title:"Netherlands",className:m}),NO:(0,l.jsx)(o.NO,{title:"Norway",className:m}),NP:(0,l.jsx)(o.NP,{title:"Nepal",className:m}),NR:(0,l.jsx)(o.NR,{title:"Nauru",className:m}),NU:(0,l.jsx)(o.NU,{title:"Niue",className:m}),NZ:(0,l.jsx)(o.NZ,{title:"New Zealand",className:m}),OM:(0,l.jsx)(o.OM,{title:"Oman",className:m}),PA:(0,l.jsx)(o.PA,{title:"Panama",className:m}),PE:(0,l.jsx)(o.PE,{title:"Peru",className:m}),PF:(0,l.jsx)(o.PF,{title:"French Polynesia",className:m}),PG:(0,l.jsx)(o.PG,{title:"Papua New Guinea",className:m}),PH:(0,l.jsx)(o.PH,{title:"Philippines",className:m}),PK:(0,l.jsx)(o.PK,{title:"Pakistan",className:m}),PL:(0,l.jsx)(o.PL,{title:"Poland",className:m}),PM:(0,l.jsx)(o.PM,{title:"Saint Pierre and Miquelon",className:m}),PN:(0,l.jsx)(o.PN,{title:"Pitcairn Islands",className:m}),PR:(0,l.jsx)(o.PR,{title:"Puerto Rico",className:m}),PS:(0,l.jsx)(o.PS,{title:"Palestinian Territories",className:m}),PT:(0,l.jsx)(o.PT,{title:"Portugal",className:m}),PW:(0,l.jsx)(o.PW,{title:"Palau",className:m}),PY:(0,l.jsx)(o.PY,{title:"Paraguay",className:m}),QA:(0,l.jsx)(o.QA,{title:"Qatar",className:m}),RE:(0,l.jsx)(o.RE,{title:"R\xe9union",className:m}),RO:(0,l.jsx)(o.RO,{title:"Romania",className:m}),RS:(0,l.jsx)(o.RS,{title:"Serbia",className:m}),RU:(0,l.jsx)(o.RU,{title:"Russia",className:m}),RW:(0,l.jsx)(o.RW,{title:"Rwanda",className:m}),SA:(0,l.jsx)(o.SA,{title:"Saudi Arabia",className:m}),SB:(0,l.jsx)(o.SB,{title:"Solomon Islands",className:m}),SC:(0,l.jsx)(o.SC,{title:"Seychelles",className:m}),SD:(0,l.jsx)(o.SD,{title:"Sudan",className:m}),SE:(0,l.jsx)(o.SE,{title:"Sweden",className:m}),SG:(0,l.jsx)(o.SG,{title:"Singapore",className:m}),SH:(0,l.jsx)(o.SH,{title:"Saint Helena",className:m}),SI:(0,l.jsx)(o.SI,{title:"Slovenia",className:m}),SJ:(0,l.jsx)(o.SJ,{title:"Svalbard and Jan Mayen",className:m}),SK:(0,l.jsx)(o.SK,{title:"Slovakia",className:m}),SL:(0,l.jsx)(o.SL,{title:"Sierra Leone",className:m}),SM:(0,l.jsx)(o.SM,{title:"San Marino",className:m}),SN:(0,l.jsx)(o.SN,{title:"Senegal",className:m}),SO:(0,l.jsx)(o.SO,{title:"Somalia",className:m}),SR:(0,l.jsx)(o.SR,{title:"Suriname",className:m}),SS:(0,l.jsx)(o.SS,{title:"South Sudan",className:m}),ST:(0,l.jsx)(o.ST,{title:"S\xe3o Tom\xe9 and Pr\xedncipe",className:m}),SV:(0,l.jsx)(o.SV,{title:"El Salvador",className:m}),SX:(0,l.jsx)(o.SX,{title:"Sint Maarten",className:m}),SY:(0,l.jsx)(o.SY,{title:"Syria",className:m}),SZ:(0,l.jsx)(o.SZ,{title:"Eswatini",className:m}),TA:(0,l.jsx)(o.TA,{title:"Tristan da Cunha",className:m}),TC:(0,l.jsx)(o.TC,{title:"Turks and Caicos Islands",className:m}),TD:(0,l.jsx)(o.TD,{title:"Chad",className:m}),TF:(0,l.jsx)(o.TF,{title:"French Southern and Antarctic Lands",className:m}),TG:(0,l.jsx)(o.TG,{title:"Togo",className:m}),TH:(0,l.jsx)(o.TH,{title:"Thailand",className:m}),TJ:(0,l.jsx)(o.TJ,{title:"Tajikistan",className:m}),TK:(0,l.jsx)(o.TK,{title:"Tokelau",className:m}),TL:(0,l.jsx)(o.TL,{title:"Timor-Leste",className:m}),TM:(0,l.jsx)(o.TM,{title:"Turkmenistan",className:m}),TN:(0,l.jsx)(o.TN,{title:"Tunisia",className:m}),TO:(0,l.jsx)(o.TO,{title:"Tonga",className:m}),TR:(0,l.jsx)(o.TR,{title:"Turkey",className:m}),TT:(0,l.jsx)(o.TT,{title:"Trinidad and Tobago",className:m}),TV:(0,l.jsx)(o.TV,{title:"Tuvalu",className:m}),TW:(0,l.jsx)(o.TW,{title:"Taiwan",className:m}),TZ:(0,l.jsx)(o.TZ,{title:"Tanzania",className:m}),UA:(0,l.jsx)(o.UA,{title:"Ukraine",className:m}),UG:(0,l.jsx)(o.UG,{title:"Uganda",className:m}),UM:(0,l.jsx)(o.UM,{title:"U.S. Outlying Islands",className:m}),US:(0,l.jsx)(o.US,{title:"United States",className:m}),UY:(0,l.jsx)(o.UY,{title:"Uruguay",className:m}),UZ:(0,l.jsx)(o.UZ,{title:"Uzbekistan",className:m}),VA:(0,l.jsx)(o.VA,{title:"Vatican City",className:m}),VC:(0,l.jsx)(o.VC,{title:"Saint Vincent and the Grenadines",className:m}),VE:(0,l.jsx)(o.VE,{title:"Venezuela",className:m}),VG:(0,l.jsx)(o.VG,{title:"British Virgin Islands",className:m}),VI:(0,l.jsx)(o.VI,{title:"U.S. Virgin Islands",className:m}),VN:(0,l.jsx)(o.VN,{title:"Vietnam",className:m}),VU:(0,l.jsx)(o.VU,{title:"Vanuatu",className:m}),WF:(0,l.jsx)(o.WF,{title:"Wallis and Futuna",className:m}),WS:(0,l.jsx)(o.WS,{title:"Samoa",className:m}),XK:(0,l.jsx)(o.XK,{title:"Kosovo",className:m}),YE:(0,l.jsx)(o.YE,{title:"Yemen",className:m}),YT:(0,l.jsx)(o.YT,{title:"Mayotte",className:m}),ZA:(0,l.jsx)(o.ZA,{title:"South Africa",className:m}),ZM:(0,l.jsx)(o.ZM,{title:"Zambia",className:m}),ZW:(0,l.jsx)(o.ZW,{title:"Zimbabwe",className:m})}[c];return u?(0,l.jsx)("div",{className:"grid place-content-center rounded-full overflow-hidden",style:{width:"".concat(i||20,"px"),height:"".concat(r||20,"px")},children:u}):(0,l.jsx)(l.Fragment,{})}let u=e=>{let{event:a,validationFunc:s,setPayloadValues:l,setErrorText:t}=e;if(s&&t){let e=!1;"blur"===a.type&&(e=!0),"keyup"===a.type&&"Backspace"===a.key&&""===a.target.value&&(e=!0),t(l=>({...l,error:s(a.target.value),initiated:!!l.initiated||e}))}if(l){let e=a.target.value;s&&"string"==typeof s(e)&&(e=null),l(s=>({...s,[a.target.name]:e}))}};function N(e){let{label:a,reactNodeLabel:s,name:n,type:i,defaultValue:r,validateInputs:c,getValue:o,placeholder:d,loading:m,tooltip:N,disabled:x,validationFunc:C,setPayloadValues:y,onBlurEventCallback:g}=e,p=(0,t.useRef)(null),[h,j]=(0,t.useState)({error:!1,initiated:!1}),f=e=>{o&&o(e.target.value),u({event:e,validationFunc:C,setPayloadValues:y,setErrorText:j}),"blur"===e.type&&g&&g(e.target.value)};(0,t.useEffect)(()=>
1{if(void 0!==r&&p.current){if(r===p.current.value)return;p.current.value=(r||"").toString();let e=new Event("input",{bubbles:!0});p.current.dispatchEvent(e)}},[r,p.current]);let b=(e,a)=>{let s=String(e||"");if(Number.isNaN(Number(e)))return s.slice(0,a);if(s.includes(".")){let[e,l]=s.split(".");return e.slice(0,a)+"."+l}return s.slice(0,a)},v=e=>{"number"===i&&e.target.value<0&&(e.target.value=0),c&&(c.type&&("numeric"===c.type&&isNaN(e.target.value)&&(e.target.value=e.target.value.replace(/[^0-9]/g,"")),"alphabet"===c.type&&e.target.value.match(/[^a-zA-Z ]/)&&(e.target.value=e.target.value.replace(/[^a-zA-Z ]/g,""))),c.maxCharLength&&e.target.value.length>c.maxCharLength&&(e.target.value=b(e.target.value,c.maxCharLength)))},S=e=>{v(e),f(e)};return(0,l.jsxs)("div",{children:[(0,l.jsxs)("div",{className:"flex items-center gap-x-2 ".concat(a?" mb-2 ":" "),children:[(0,l.jsxs)("div",{className:"w-full flex justify-between items-center",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)("label",{htmlFor:n,className:"text-sm text-[#686592] font-medium",children:a}),m&&(0,l.jsxs)("svg",{className:"animate-spin",width:"14",height:"14",viewBox:"0 0 54 54",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsx)("path",{opacity:"0.2",fillRule:"evenodd",clipRule:"evenodd",d:"M26.9999 48.3345C38.782 48.3345 48.3333 38.7832 48.3333 27.0011C48.3333 15.2191 38.782 5.66781 26.9999 5.66781C15.2178 5.66781 5.66659 15.2191 5.66659 27.0011C5.66659 38.7832 15.2178 48.3345 26.9999 48.3345ZM26.9999 53.6678C41.7275 53.6678 53.6666 41.7287 53.6666 27.0011C53.6666 12.2735 41.7275 0.334473 26.9999 0.334473C12.2723 0.334473 0.333252 12.2735 0.333252 27.0011C0.333252 41.7287 12.2723 53.6678 26.9999 53.6678Z",fill:"#A9A7C1"}),(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M26.9999 5.66781C15.2178 5.66781 5.66659 15.2191 5.66659 27.0011C5.66659 38.7832 15.2178 48.3345 26.9999 48.3345C28.4727 48.3345 29.6666 49.5284 29.6666 51.0011C29.6666 52.4739 28.4727 53.6678 26.9999 53.6678C12.2723 53.6678 0.333252 41.7287 0.333252 27.0011C0.333252 12.2735 12.2723 0.334473 26.9999 0.334473C41.7275 0.334473 53.6666 12.2735 53.6666 27.0011C53.6666 28.4739 52.4727 29.6678 50.9999 29.6678C49.5272 29.6678 48.3333 28.4739 48.3333 27.0011C48.3333 15.2191 38.782 5.66781 26.9999 5.66781Z",fill:"url(#paint0_linear_1939_13920)"}),(0,l.jsx)("defs",{children:(0,l.jsxs)("linearGradient",{id:"paint0_linear_1939_13920",x1:"26.9999",y1:"27.0011",x2:"26.9999",y2:"48.3345",gradientUnits:"userSpaceOnUse",children:[(0,l.jsx)("stop",{stopColor:"#231663"}),(0,l.jsx)("stop",{offset:"1",stopColor:"#231663",stopOpacity:"0"})]})})]})]}),s&&(0,l.jsx)("div",{children:s})]}),N&&(0,l.jsx)("div",{className:"tooltip-container relative inline-block",children:(0,l.jsxs)("div",{className:"tooltip-trigger cursor-pointer",children:[(0,l.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M8.66667 11.1667H8V8.5H7.33333M8 5.83333H8.00667M14 8.5C14 11.8137 11.3137 14.5 8 14.5C4.68629 14.5 2 11.8137 2 8.5C2 5.18629 4.68629 2.5 8 2.5C11.3137 2.5 14 5.18629 14 8.5Z",stroke:"#686592",strokeLinecap:"round",strokeLinejoin:"round"})}),(0,l.jsx)("div",{className:"tooltip-content absolute top-[-60px] md:top-[-27.5px] left-[-80px] md:left-[25px] ".concat(N.length>75?"w-[300px] md:w-[300px]":"w-[240px] md:w-[190px]"," bg-[#272363] rounded-md p-3 text-xs font-light text-white"),children:N})]})})]}),(0,l.jsx)("input",{ref:p,id:n,type:i||"text",placeholder:d,name:n,disabled:!!x,className:"w-full outline-0 border ".concat(x?" border-[#eaeaf3] text-[#818093] ":" border-[#E0E0E9] hover:border-[#c1c1d8] "," focus:border-[#9696c5] text-[#231663] duration-300 rounded-sm px-2 py-2.5"),onKeyUp:S,onInput:S,onBlur:S,onWheel:e=>{e.currentTarget.blur()}}),h.initiated&&h.error&&"string"==typeof h.error&&(0,l.jsx)("p",{className:"text-[#FF4D4F] text-xs mt-1",children:h.error})]})}function x(e){var a,s;let{label:n,name:i,placeholder:r,loading:c,options:o,tooltip:d,disabled:N,styles:x,defaultValue:C,showCountryFlag:y,getValue:g,validationFunc:p,setPayloadValues:h,onSelectEventCallback:j,onBlurEventCallback:f}=e,[b,v]=(0,t.useState)([]),[S,w]=(0,t.useState)(!1),[M,A]=(0,t.useState)({error:!1,initiated:!1}),T=(0,t.useRef)(null);(0,t.useEffect)(()=>
1{if(0===o.length||b.length>0)return;let e=o.map(e=>({id:Math.floor(1e9+9e9*Math.random()),label:e.label,value:e.value,disabled:e.disabled||!1,selected:!1,show:!0}));void 0!==C&&e.length>0&&(e=e.map(e=>{let a=e.value==C&&!1===e.selected;return{...e,selected:a}}),B(C)),v(e)},[o]),(0,t.useEffect)(()=>{void 0!==C&&b.length>0&&(v(e=>e.map(e=>({...e,selected:e.value==C}))),B(C))},[C]);let B=e=>{g&&g(e),u({event:{type:"blur",target:{value:e,name:i},key:""},validationFunc:p,setPayloadValues:h,setErrorText:A})},E=e=>{N||e.disabled||(v(a=>a.map(a=>({...a,selected:a.id===e.id}))),B(e.value),j&&j(e.value),w(!1))};return(0,t.useEffect)(()=>{let e=e=>{if(T.current&&!T.current.contains(e.target)&&(w(!1),f)){let e=b.find(e=>!0===e.selected);f((null==e?void 0:e.value)||"")}};return S?document.addEventListener("mousedown",e):document.removeEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[S]),(0,l.jsxs)("div",{children:[(0,l.jsxs)("div",{className:"flex items-center gap-x-2 ".concat(n?"mb-2":""),children:[(0,l.jsx)("label",{className:"text-sm text-[#686592] font-medium",children:n}),c&&(0,l.jsxs)("svg",{className:"animate-spin",width:"14",height:"14",viewBox:"0 0 54 54",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsx)("path",{opacity:"0.2",fillRule:"evenodd",clipRule:"evenodd",d:"M26.9999 48.3345C38.782 48.3345 48.3333 38.7832 48.3333 27.0011C48.3333 15.2191 38.782 5.66781 26.9999 5.66781C15.2178 5.66781 5.66659 15.2191 5.66659 27.0011C5.66659 38.7832 15.2178 48.3345 26.9999 48.3345ZM26.9999 53.6678C41.7275 53.6678 53.6666 41.7287 53.6666 27.0011C53.6666 12.2735 41.7275 0.334473 26.9999 0.334473C12.2723 0.334473 0.333252 12.2735 0.333252 27.0011C0.333252 41.7287 12.2723 53.6678 26.9999 53.6678Z",fill:"#A9A7C1"}),(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M26.9999 5.66781C15.2178 5.66781 5.66659 15.2191 5.66659 27.0011C5.66659 38.7832 15.2178 48.3345 26.9999 48.3345C28.4727 48.3345 29.6666 49.5284 29.6666 51.0011C29.6666 52.4739 28.4727 53.6678 26.9999 53.6678C12.2723 53.6678 0.333252 41.7287 0.333252 27.0011C0.333252 12.2735 12.2723 0.334473 26.9999 0.334473C41.7275 0.334473 53.6666 12.2735 53.6666 27.0011C53.6666 28.4739 52.4727 29.6678 50.9999 29.6678C49.5272 29.6678 48.3333 28.4739 48.3333 27.0011C48.3333 15.2191 38.782 5.66781 26.9999 5.66781Z",fill:"url(#paint0_linear_1939_13920)"}),(0,l.jsx)("defs",{children:(0,l.jsxs)("linearGradient",{id:"paint0_linear_1939_13920",x1:"26.9999",y1:"27.0011",x2:"26.9999",y2:"48.3345",gradientUnits:"userSpaceOnUse",children:[(0,l.jsx)("stop",{stopColor:"#231663"}),(0,l.jsx)("stop",{offset:"1",stopColor:"#231663",stopOpacity:"0"})]})})]}),d&&(0,l.jsx)("div",{className:"tooltip-container relative inline-block",children:(0,l.jsxs)("div",{className:"tooltip-trigger cursor-pointer",children:[(0,l.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M8.66667 11.1667H8V8.5H7.33333M8 5.83333H8.00667M14 8.5C14 11.8137 11.3137 14.5 8 14.5C4.68629 14.5 2 11.8137 2 8.5C2 5.18629 4.68629 2.5 8 2.5C11.3137 2.5 14 5.18629 14 8.5Z",stroke:"#686592",strokeLinecap:"round",strokeLinejoin:"round"})}),(0,l.jsx)("div",{className:"tooltip-content absolute top-[-60px] md:top-[-27.5px] left-[-80px] md:left-[25px] ".concat(d.length>75?"w-[300px] md:w-[300px]":"w-[240px] md:w-[190px]"," bg-[#272363] rounded-md p-3 text-xs font-light text-white"),children:d})]})})]}),(0,l.jsxs)("div",{ref:T,className:"relative w-full outline-0 border ".concat(N?"border-[#eaeaf3] text-[#A9A7C1] cursor-not-allowed ":" border-[#E0E0E9] hover:border-[#c1c1d8] cursor-pointer "," focus:border-[#9696c5] rounded-sm px-2 text-sm"),style:{backgroundColor:N?"#f6f7f9":(null==x?void 0:x.bgColor)||"#ffffff"},children:[(0,l.jsxs)("div",{onClick:()=>{N||(w(e=>!e),v(o.map(e=>{let a=b.find(a=>a.value==e.value),s=null!=a&&!!a.selected;return console.log(),{id:Math.floor(1e9+9e9*Math.random()),label:e.label,value:e.value,disabled:e.disabled||!1,selected:s,show:!0}})))},className:"flex justify-between items-center gap-x-2 py-3",children:[(0,l.jsxs)("div",{className:"flex items-center gap-x-2 overflow-scroll scrollbar-hidden",children:[y?(0,l.jsx)(m,{currencyCode:(null===(a=b.find(e=>e.selected))||void 0===a?void 0:a.value)||""}):(0,l.jsx)(l.Fragment,{}),(0,l.jsx)("p",{className:"".concat(N?" text-[#818093] ":" text-[#686592] "," text-sm whitespace-nowrap truncate"),children:(null===(s=b.find(e=>e.selected))||void 0===s?void 0:s.label)||r||n||""})]}),(0,l.jsx)("div",{className:"transition ".concat(S?" rotate-0 ":" rotate-180 "," ").concat(N?" opacity-20 ":" "," "),children:(0,l.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M12.6667 10L8.00004 5.33333L3.33337 10",stroke:"#686592",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),(0,l.jsxs)("div",{tabIndex:Math.floor(1e3*Math.random())+1,className:"".concat(S?"block ":"hidden "," min-w-[100px] absolute top-12 left-0 z-[1000] shadow-md"),children:[b.length>10&&(0,l.jsxs)("div",{className:"w-full flex items-center gap-x-4 whitespace-nowrap border-y border-[#f1f5f9] hover:bg-[#f8fafc] bg-white px-3 py-2.5",children:[(0,l.jsx)("div",{className:"w-[4%]",children:(0,l.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsx)("circle",{cx:"9.90015",cy:"9.90015",r:"9",stroke:"#52536D",strokeWidth:"1.5"}),(0,l.jsx)("path",{d:"M16.5 16.5L22.864 22.864",stroke:"#52536D",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}),(0,l.jsx)("input",{onKeyUp:e=>{let a=e.target.value.toLowerCase();v(e=>e.map(e=>({...e,show:""===a||e.label.toLowerCase().includes(a)})))},type:"text",placeholder:"Search",className:"outline-0 bg-transparent w-[96%]"})]}),(0,l.jsx)("ul",{className:"w-full flex flex-col max-h-[275px] overflow-y-scroll scrollbar-hidden border border-[#eaeaf3] bg-white rounded-md list-none",children:b.filter(e=>e.show).map(e=>(0,l.jsxs)("li",{onClick:()=>E(e),tabIndex:e.id,className:"\n flex items-center gap-x-2 whitespace-nowrap border-y border-[#f1f5f9] text-[#231663] px-3 py-2.5\n ".concat(e.selected?" bg-[#f8fafc] font-medium ":" font-normal "," \n ").concat(e.disabled?" cursor-not-allowed text-[#A9A7C1] ":" cursor-pointer hover:bg-[#f8fafc] ","\n "),children:[y&&(0,l.jsx)(m,{currencyCode:e.value}),e.label]},e.id))})]})]}),M.initiated&&M.error&&"string"==typeof M.error&&(0,l.jsx)("p",{className:"text-[#FF4D4F] text-xs mt-1",children:M.error})]})}function C(e){var a;let{label:s,tooltip:t,loading:n,leftPosition:i,inputProps:r,selectProps:c}=e;return(0,l.jsxs)("div",{className:"fade-in",children:[(0,l.jsxs)("div",{className:"flex items-center gap-x-2",children:[(0,l.jsx)("label",{htmlFor:r.name,className:"text-sm text-[#686592] font-medium",children:s}),n&&(0,l.jsxs)("svg",{className:"animate-spin",width:"14",height:"14",viewBox:"0 0 54 54",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsx)("path",{opacity:"0.2",fillRule:"evenodd",clipRule:"evenodd",d:"M26.9999 48.3345C38.782 48.3345 48.3333 38.7832 48.3333 27.0011C48.3333 15.2191 38.782 5.66781 26.9999 5.66781C15.2178 5.66781 5.66659 15.2191 5.66659 27.0011C5.66659 38.7832 15.2178 48.3345 26.9999 48.3345ZM26.9999 53.6678C41.7275 53.6678 53.6666 41.7287 53.6666 27.0011C53.6666 12.2735 41.7275 0.334473 26.9999 0.334473C12.2723 0.334473 0.333252 12.2735 0.333252 27.0011C0.333252 41.7287 12.2723 53.6678 26.9999 53.6678Z",fill:"#A9A7C1"}),(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M26.9999 5.66781C15.2178 5.66781 5.66659 15.2191 5.66659 27.0011C5.66659 38.7832 15.2178 48.3345 26.9999 48.3345C28.4727 48.3345 29.6666 49.5284 29.6666 51.0011C29.6666 52.4739 28.4727 53.6678 26.9999 53.6678C12.2723 53.6678
10.333252 41.7287 0.333252 27.0011C0.333252 12.2735 12.2723 0.334473 26.9999 0.334473C41.7275 0.334473 53.6666 12.2735 53.6666 27.0011C53.6666 28.4739 52.4727 29.6678 50.9999 29.6678C49.5272 29.6678 48.3333 28.4739 48.3333 27.0011C48.3333 15.2191 38.782 5.66781 26.9999 5.66781Z",fill:"url(#paint0_linear_1939_13920)"}),(0,l.jsx)("defs",{children:(0,l.jsxs)("linearGradient",{id:"paint0_linear_1939_13920",x1:"26.9999",y1:"27.0011",x2:"26.9999",y2:"48.3345",gradientUnits:"userSpaceOnUse",children:[(0,l.jsx)("stop",{stopColor:"#231663"}),(0,l.jsx)("stop",{offset:"1",stopColor:"#231663",stopOpacity:"0"})]})})]}),t&&(0,l.jsx)("div",{className:"tooltip-container relative inline-block",children:(0,l.jsxs)("div",{className:"tooltip-trigger cursor-pointer",children:[(0,l.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M8.66667 11.1667H8V8.5H7.33333M8 5.83333H8.00667M14 8.5C14 11.8137 11.3137 14.5 8 14.5C4.68629 14.5 2 11.8137 2 8.5C2 5.18629 4.68629 2.5 8 2.5C11.3137 2.5 14 5.18629 14 8.5Z",stroke:"#686592",strokeLinecap:"round",strokeLinejoin:"round"})}),(0,l.jsx)("div",{className:"tooltip-content absolute top-[-60px] md:top-[-27.5px] left-[-80px] md:left-[25px] ".concat(t.length>75?"w-[300px] md:w-[300px]":"w-[240px] md:w-[190px]"," bg-[#272363] rounded-md p-3 text-xs font-light text-white"),children:t})]})})]}),(0,l.jsxs)("div",{className:"w-full flex ".concat("input"===i?" flex-row ":" flex-row-reverse "," mt-2"),children:[(0,l.jsx)("div",{className:"w-full",children:(0,l.jsx)(N,{label:"",name:r.name,placeholder:r.placeholder,loading:!1,type:r.type,defaultValue:r.defaultValue,disabled:r.disabled,validateInputs:{maxCharLength:null===(a=r.validateInputs)||void 0===a?void 0:a.maxCharLength},validationFunc:r.validationFunc,setPayloadValues:r.setPayloadValues,onBlurEventCallback:r.onBlurEventCallback})}),(0,l.jsx)("div",{className:"w-auto min-w-[130px]",children:(0,l.jsx)(x,{label:"",name:c.name,placeholder:c.placeholder,loading:!1,showCountryFlag:c.showCountryFlag,defaultValue:c.defaultValue,disabled:c.disabled,options:c.options||[],styles:{bgColor:"#F1F5F9"},validationFunc:c.validationFunc,setPayloadValues:c.setPayloadValues,onSelectEventCallback:c.onSelectEventCallback})})]})]})}let y=(e,a,s,l)=>""===e?(null==l?void 0:l.customErrorText)||((null==l?void 0:l.isOptional)?"":"This field is required"):e.length<a?(null==l?void 0:l.customErrorText)||"Please provide ".concat(a," characters or more."):!(e.length>s)||(null==l?void 0:l.customErrorText)||"Please, keep it under ".concat(s," characters."),g=e=>!!e.match(/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/),p=(e,a)=>""===e?(null==a?void 0:a.customErrorText)||((null==a?void 0:a.isOptional)?"":"Email is required"):!!g(e)||(null==a?void 0:a.customErrorText)||"Please enter a valid email address";var h=s(6631),j=s(9415);let f=function(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,s=arguments.length>2?arguments[2]:void 0;(0,t.useEffect)(()=>{let e=setTimeout(()=>{s()},a);return()=>clearTimeout(e)},[...e])};var b=s(8865),v=s(8289),S=s(5152),w=s.n(S),M=s(4500);M.Font.register({family:"Sora",fonts:[{src:"/assets/fonts/sora/Sora-Regular.ttf",fontWeight:400},{src:"/assets/fonts/sora/Sora-SemiBold.ttf",fontWeight:600},{src:"/assets/fonts/sora/Sora-Bold.ttf",fontWeight:700}]}),M.Font.register({family:"Satoshi",fonts:[{src:"/assets/fonts/satoshi/Satoshi-Regular.otf",fontWeight:400},{src:"/assets/fonts/satoshi/Satoshi-Medium.otf",fontWeight:500},{src:"/assets/fonts/satoshi/Satoshi-Bold.otf",fontWeight:700}]});let A="#231663",T="#6b7280",B="#e5e7eb",E=M.StyleSheet.create({page:{paddingVertical:40,paddingHorizontal:44,fontFamily:"Satoshi",fontSize:11,color:A},header:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",borderBottomWidth:1,borderBottomColor:B,paddingBottom:16},logo:{width:100,height:28.33},website:{fontFamily:"Satoshi",fontSize:11,fontWeight:500,color:A},receiptRow:{flexDirection:"row",justifyContent:"space-between",alignItems:"flex-end",marginTop:28},receiptTitle:{fontFamily:"Sora",fontSize:20,fontWeight:400,color:A},amountCol:{alignItems:"flex-end"}
1,amountLabel:{fontFamily:"Satoshi",fontSize:10,color:T,marginBottom:2},amountValue:{fontFamily:"Sora",fontSize:24,fontWeight:700,color:A},section:{marginTop:32},sectionTitle:{fontFamily:"Sora",fontSize:14,fontWeight:700,color:A,marginBottom:20},detailRow:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingVertical:14,borderBottomWidth:1,borderBottomColor:B},label:{fontFamily:"Satoshi",fontSize:11,fontWeight:400,color:A},value:{fontFamily:"Satoshi",fontSize:11,fontWeight:500,color:A,textAlign:"right"},epinValue:{fontFamily:"Sora",fontSize:16,fontWeight:700,color:A,textAlign:"right",letterSpacing:.5},qrRow:{marginTop:40,flexDirection:"row",justifyContent:"space-between",alignItems:"flex-end"},qrLeft:{flexDirection:"row",alignItems:"center"},qrImageWrapper:{borderWidth:1,borderColor:"#78777e",padding:1,width:72,height:72},qrImage:{width:"100%",height:"100%"},qrTextWrapper:{marginLeft:14,maxWidth:150},qrText:{fontFamily:"Satoshi",fontSize:10,color:A,lineHeight:1.5},qrTextBold:{fontWeight:700},storeIcons:{flexDirection:"row",alignItems:"center",gap:8},storeIcon:{width:100,height:30},footer:{marginTop:28,borderTopWidth:1,borderTopColor:B,paddingTop:14},footerText:{fontFamily:"Satoshi",fontSize:7,color:T,lineHeight:1.6}});function P(e){let{data:a,qrCode:s}=e;return(0,l.jsx)(M.Document,{children:(0,l.jsxs)(M.Page,{size:"A4",style:E.page,children:[(0,l.jsxs)(M.View,{style:E.header,children:[(0,l.jsx)(M.Image,{src:"/assets/img/budpay_logo.png",style:E.logo}),(0,l.jsx)(M.Text,{style:E.website,children:"www.budpay.com"})]}),(0,l.jsxs)(M.View,{style:E.receiptRow,children:[(0,l.jsx)(M.Text,{style:E.receiptTitle,children:"Receipt"}),(0,l.jsxs)(M.View,{style:E.amountCol,children:[(0,l.jsx)(M.Text,{style:E.amountLabel,children:"Amount"}),(0,l.jsxs)(M.Text,{style:E.amountValue,children:[null==a?void 0:a.currency,null==a?void 0:a.amount]})]})]}),(0,l.jsxs)(M.View,{style:E.section,children:[(0,l.jsx)(M.Text,{style:E.sectionTitle,children:"Transaction Details"}),(0,l.jsxs)(M.View,{style:E.detailRow,children:[(0,l.jsx)(M.Text,{style:E.label,children:"UTME ePIN:"}),(0,l.jsx)(M.Text,{style:E.epinValue,children:null==a?void 0:a.epin})]}),(0,l.jsxs)(M.View,{style:E.detailRow,children:[(0,l.jsx)(M.Text,{style:E.label,children:"Transaction Type:"}),(0,l.jsx)(M.Text,{style:E.value,children:null==a?void 0:a.transactionType})]}),(0,l.jsxs)(M.View,{style:E.detailRow,children:[(0,l.jsx)(M.Text,{style:E.label,children:"Provider:"}),(0,l.jsx)(M.Text,{style:E.value,children:null==a?void 0:a.provider})]}),(0,l.jsxs)(M.View,{style:E.detailRow,children:[(0,l.jsx)(M.Text,{style:E.label,children:"Package:"}),(0,l.jsx)(M.Text,{style:E.value,children:null==a?void 0:a.package})]}),(0,l.jsxs)(M.View,{style:E.detailRow,children:[(0,l.jsx)(M.Text,{style:E.label,children:"Beneficiary Number:"}),(0,l.jsx)(M.Text,{style:E.value,children:null==a?void 0:a.beneficiaryNumber})]}),(0,l.jsxs)(M.View,{style:E.detailRow,children:[(0,l.jsx)(M.Text,{style:E.label,children:"Profile Code:"}),(0,l.jsx)(M.Text,{style:E.value,children:null==a?void 0:a.profileCode})]}),(0,l.jsxs)(M.View,{style:E.detailRow,children:[(0,l.jsx)(M.Text,{style:E.label,children:"Reference:"}),(0,l.jsx)(M.Text,{style:E.value,children:null==a?void 0:a.reference})]}),(0,l.jsxs)(M.View,{style:E.detailRow,children:[(0,l.jsx)(M.Text,{style:E.label,children:"Date:"}),(0,l.jsx)(M.Text,{style:E.value,children:null==a?void 0:a.date})]})]}),(0,l.jsxs)(M.View,{style:E.qrRow,children:[(0,l.jsxs)(M.View,{style:E.qrLeft,children:[s&&(0,l.jsx)(M.View,{style:E.qrImageWrapper,children:(0,l.jsx)(M.Image,{src:s,style:E.qrImage})}),(0,l.jsxs)(M.View,{style:E.qrTextWrapper,children:[(0,l.jsxs)(M.Text,{style:E.qrText,children:["Scan QR to ",(0,l.jsx)(M.Text,{style:E.qrTextBold,children:"Download"})]}),(0,l.jsx)(M.Text,{style:[E.qrText,E.qrTextBold],children:"BudPay Business Mobile"})]})]}),(0,l.jsxs)(M.View,{style:E.storeIcons,children:[(0,l.jsx)(M.Image,{src:"/assets/img/google-play.png",style:E.storeIcon}),(0,l.jsx)(M.Image,{src:"/assets/img/app-store.png",style:E.storeIcon})]})]}),(0,l.jsx)(M.View,{style:E.footer,children:(0,l.jsx)(M.Text,{style:E.footerText,children:"This receipt is auto-generated by BudPay. If you did not authorize this transaction, please contact support immediately at [email protected]. BudPay is a licensed payment service provider. All transactions are subject to our Terms of Service and Privacy Policy available at www.budpay.com."})})]})})}var D=s(2592);let R=w()(()=>Promise.resolve().then(s.bind(s,4500)).then(e=>e.PDFDownloadLink),{loadableGenerated:{webpack:()=>[4500]},ssr:!1});function G(e){let{purchasePayload:a,setPurchasePayload:s,onNext:t}=e;return(0,l.jsxs)("div",{className:"space-y-5",children:[(0,l.jsx)(N,{label:"First Name",name:"firstName",placeholder:"",defaultValue:"",validationFunc:e=>y(e,2,50),setPayloadValues:s}),(0,l.jsx)(N,{label:"Last Name",name:"lastName",placeholder:"",defaultValue:"",validationFunc:e=>y(e,2,50),setPayloadValues:s}),(0,l.jsx)(N,{label:"Email Address",name:"email",type:"email",placeholder:"",defaultValue:"",validationFunc:e=>p(e),setPayloadValues:s}),(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(h.Z,{disabled:!(a.firstName&&a.lastName&&a.email),onClick:t,text:"Next",type:"mdPrimaryButton",className:"bg-[#241564] hover:bg-[#1c1051]",style:{backgroundColor:"#241564",hover:{backgroundColor:"#1c1051"}},fullWidth:!0})})]})}function I(e){var a;let{packages:s,setPackages:n,purchasePayload:i,setPurchasePayload:r,onPayment:o}=e,[d,m]=(0,t.useState)(!1),[u,g]=(0,t.useState)(""),[p,b]=(0,t.useState)(!1),v=async()=>{try{b(!0);let e=await c.be.get("/guest/get-provider-packages-Education-JAMB");if(!e.data.status){console.error(e.data.message||"Failed to load packages");return}n(e.data.data||[])}catch(e){console.error(e.message||"Failed to load packages")}finally{b(!1)}};(0,t.useEffect)(()=>{v()},[]);let[S,w]=(0,t.useState)(null),M=async()=>{try{if(!i.package||!i.phone||!i.profileCode)return;w(!0);let e=await c.be.post("/guest/customer-validation",{serviceType:"Education",provider:"JAMB",package:i.package,profileCode:i.profileCode,customerNumber:i.phone});if(!e.data.status){m(!1),g(e.data.message||"Validation failed"),r(e=>({...e,profileName:""}));return}r(a=>({...a,profileName:e.data.data.customerName||""})),m(!0)}catch(e){r(e=>({...e,profileName:""})),m(!1),g(e.message)}finally{w(!1)}};return f([i.package,i.phone,i.profileCode],3e3,()=>{M()}),(0,l.jsxs)("div",{className:"space-y-5",children:[(0,l.jsx)(x,{label:"Package",name:"package",placeholder:"Choose a package",loading:p,options:s.map(e=>({label:"".concat(e.name||""," â â¦").concat(e.amount||""),value:e.variationCode||"",amount:e.amount})),setPayloadValues:r}),(0,l.jsx)(N,{label:"Phone Number",name:"phone",type:"tel",placeholder:"Enter Phone Number",defaultValue:"",validationFunc:e=>y(e,10,15),setPayloadValues:r}),(0,l.jsx)(N,{name:"profileCode",type:"text",label:"Profile Code",reactNodeLabel:(0,l.jsxs)("div",{className:"relative group",children:[(0,l.jsxs)("span",{className:"text-xs text-[#272363] font-medium cursor-pointer",children:["I ","don't"," know my profile code"]}),(0,l.jsxs)("div",{className:"absolute top-full left-0 mb-2 hidden group-hover:flex items-start gap-2 w-[280px] p-2.5 bg-white border border-[#604ACE] rounded-md shadow-md z-10",children:[(0,l.jsx)(j.UO,{width:26,height:26}),(0,l.jsxs)("p",{className:"text-xs text-[#52536D]",children:["Send your 11-digit National Identification Number (NIN) via SMS to ",(0,l.jsx)("span",{className:"font-medium text-[#272363]",children:"55019"})," or ",(0,l.jsx)("span",{className:"font-medium text-[#272363]",children:"66019"})]})]})]}),placeholder:"Enter Code",validationFunc:e=>y(e,5,20),setPayloadValues:r}),S||u||d?(0,l.jsx)(N,{name:"profileName",type:"text",label:"Profile Name",placeholder:"",loading:null!==S&&S,defaultValue:i.profileName||"",validationFunc:e=>u||!!d||"Invalid profile code, phone number, or package. Please check your details.",disabled:!0}):null,(0,l.jsx)(C,{label:"Amount",inputProps:{name:"amount",type:"number",disabled:!0,placeholder:"Enter Amount",defaultValue:(null===(a=s.find(e=>e.variationCode===i.package))||void 0===a?void 0:a.amount)||"",validationFunc:e=>y(e,1,15),setPayloadValues:r},selectProps:{name:"currency",options:[{label:"NGN",value:"NGN"}],placeholder:"Select Currency",defaultValue:"NGN",disabled:!0,showCountryFlag:!0,setPayloadValues:r}}),(0,l.jsx)(h.Z,{disabled:!(i.package&&i.phone&&i.profileCode&&i.amount)||!d||S,onClick:o,text:i.amount?"Proceed to pay ".concat((0,c.oB)(i.currency,i.amount)):"Proceed to pay",type:"mdPrimaryButton",style:{backgroundColor:"#241564",hover:{backgroundColor:"#1c1051"}},fullWidth:!0})]})}function L(e){let{processedOrder:a,loading:s}=e,[n,i]=(0,t.useState)(!1),[r,c]=(0,t.useState)(null),[o,d]=(0,t.useState)(!1);(0,t.useEffect)(()=>{d(!0),(async()=>{c(await D.toDataURL("https://budpay.com/app"))})()},[]);let m=async()=>{(null==a?void 0:a.epin)&&(await navigator.clipboard.writeText(a.epin),i(!0),setTimeout(()=>i(!1),2e3))};return(0,l.jsxs)("div",{className:"text-center",children:[(0,l.jsx)("div",{className:"flex justify-center mb-3",children:(0,l.jsx)(j.Ol,{width:50,height:50,color:"#4BB543"})}),(0,l.jsx)("h2",{className:"text-xl font-semibold text-[#231663] mb-1",children:"Payment Completed"}),(0,l.jsxs)("p",{className:"text-base text-[#231663]",children:[(null==a?void 0:a.package)||"UTME e-PIN"," purchase successful"]}),(0,l.jsxs)("div",{className:"mt-6 rounded-lg bg-gray-100 p-4",children:[(0,l.jsx)("p",{className:"mb-2 text-center text-sm text-[#231663]",children:"E-PIN"}),(0,l.jsxs)("div",{className:"relative flex items-center justify-center",children:[(0,l.jsx)("span",{className:"text-2xl font-semibold text-[#231663]",children:null==a?void 0:a.epin}),(0,l.jsx)("button",{onClick:m,className:"absolute right-0 flex items-center text-[#231663]","aria-label":"Copy E-PIN",children:n?(0,l.jsx)(b.Z,{size:18,className:"text-green-600"}):(0,l.jsx)(v.Z,{size:18})})]})]}),(0,l.jsxs)("div",{className:"flex flex-col gap-y-1.5 mt-6",children:[o&&(0,l.jsx)(R,{document:(0,l.jsx)(P,{data:a,qrCode:r}),fileName:"UTME_EPIN_".concat((null==a?void 0:a.epin)||"receipt",".pdf"),children:e=>{let{loading:a}=e;return(0,l.jsxs)("button",{className:"flex w-full items-center justify-center gap-2 rounded-lg bg-[#231663] py-3 text-sm font-medium text-white",disabled:a,children:[a?"Preparing PDF...":"Download Receipt",(0,l.jsx)(j._8,{width:16,height:16})]})}}),(0,l.jsx)("button",{className:"flex w-full items-center justify-center gap-2 rounded-lg py-3 text-sm font-medium text-[#231663]",children:"Close"})]})]})}var F=s(1664),k=s.n(F),U=s(381),V=s.n(U);function K(){let[e,a]=(0,t.useState)(1),[s,n]=(0,t.useState)([]),[o,d]=(0,t.useState)(!1),[m,u]=(0,t.useState)({currency:"",amount:"",epin:"",transactionType:"",provider:"",package:"",beneficiaryNumber:"",profileCode:"",reference:"",date:""}),[N,x]=(0,t.useState)({firstName:"",lastName:"",email:"",package:"",amount:0,phone:"",profileCode:"",profileName:"",currency:"NGN"}),C=async e=>{let{reference:l,status:t}=e;
1if(!l){alert("Payment completed but reference missing");return}if("success"!==t){alert("Payment status: ".concat(t,". Order will not be processed."));return}try{var n,i,r,o,m,x,C,y,g,p,h,j,f,b;d(!0);let e=await c.be.get("/guest/process-order/".concat(l));if(!e.data.status||"delivered"!==e.data.data.status){alert((null===(b=e.data)||void 0===b?void 0:b.message)||"Payment successful but order processing failed");return}u({currency:"NGN",amount:(null===(i=e.data)||void 0===i?void 0:null===(n=i.data)||void 0===n?void 0:n.amount)||"0",epin:(null===(o=e.data)||void 0===o?void 0:null===(r=o.data)||void 0===r?void 0:r.token)||"N/A",transactionType:"N/A",provider:(null===(x=e.data)||void 0===x?void 0:null===(m=x.data)||void 0===m?void 0:m.gateway)||"N/A",package:(null===(C=s.find(e=>((null==e?void 0:e.variationCode)||"")===(N.package||"")))||void 0===C?void 0:C.name)||"N/A",beneficiaryNumber:(null===(g=e.data)||void 0===g?void 0:null===(y=g.data)||void 0===y?void 0:y.customerNumber)||"N/A",profileCode:N.profileCode||"N/A",reference:(null===(h=e.data)||void 0===h?void 0:null===(p=h.data)||void 0===p?void 0:p.reference)||l||"N/A",date:V()((null===(f=e.data)||void 0===f?void 0:null===(j=f.data)||void 0===j?void 0:j.tranxDate)||"").format("MMMM Do YYYY, h:mm:ss a")||V()().format("MMMM Do YYYY, h:mm:ss a")}),a(3)}catch(e){console.error(e),alert("Payment successful, but order processing failed")}finally{d(!1)}};return(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)("section",{className:"min-h-screen w-full dotted-bg flex items-center justify-center px-4",children:[(0,l.jsx)("div",{className:"absolute top-6 left-6 flex items-center",children:(0,l.jsx)(k(),{href:"/",children:(0,l.jsx)(i(),{src:"/assets/img/bud-logo.png",width:100,height:80,alt:"BudPay"})})}),(0,l.jsxs)("div",{className:"w-full max-w-md bg-white rounded-2xl p-6 shadow-sm",children:[3!==e&&(0,l.jsxs)("div",{className:"flex items-center gap-3 mb-8",children:[(0,l.jsx)(i(),{src:"/assets/img/jamb_icon.png",alt:"JAMB",width:32,height:32}),(0,l.jsx)("h3",{className:"text-xl font-semibold text-[#231663]",children:"JAMB E-Pin Purchase"})]}),1===e&&(0,l.jsx)(G,{purchasePayload:N,setPurchasePayload:x,onNext:()=>a(2)}),2===e&&(0,l.jsx)(I,{packages:s,setPackages:n,purchasePayload:N,setPurchasePayload:x,onPayment:()=>{if(!N.email||!N.firstName||!N.lastName||!N.amount||!N.package||!N.phone||!N.profileCode){console.error("Please fill all fields");return}if("undefined"==typeof BudPayCheckout){console.error("BudPay Checkout not available");return}BudPayCheckout({key:r.v.JAMB_TEST_PUBLIC_KEY,amount:String(N.amount||0),currency:N.currency||"NGN",email:N.email,first_name:N.firstName,last_name:N.lastName,callback_url:"",custom_fields:{serviceType:"Education",provider:"JAMB",customerNumber:N.phone,package:N.package,amount:Number(N.amount),profileCode:N.profileCode,customerName:N.profileName,customerAddress:N.email},callback:async function(e){await C({reference:null==e?void 0:e.reference,status:null==e?void 0:e.status})},onClose:async function(e){console.log(e),console.error("Transaction reference: ".concat(null==e?void 0:e.reference,", Status: ").concat(null==e?void 0:e.status))}})}}),3===e&&(0,l.jsx)(L,{processedOrder:m,loading:o})]})]})})}},6290:function(e){e.exports={switch:"formInputs_switch__qauq5",slider:"formInputs_slider__NpR0f",checkboxList:"formInputs_checkboxList__AaKWy"}},2480:function(){}},function(e){e.O(0,[4885,1111,5006,3507,4208,2191,7439,3061,7066,9240,9415,2888,9774,179],function(){return e(e.s=4601)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.