(this["webpackJsonpnova-remit"]=this["webpackJsonpnova-remit"]||[]).push([[0],{139:function(e){e.exports=JSON.parse('[{"Nationality":"Afghani"},{"Nationality":"Albanian"},{"Nationality":"Algerian"},{"Nationality":"American"},{"Nationality":"Andorran"},{"Nationality":"Angolan"},{"Nationality":"Anguillan"},{"Nationality":"Antarctic"},{"Nationality":"Antiguans"},{"Nationality":"Argentinean"},{"Nationality":"Armenian"},{"Nationality":"Arubian"},{"Nationality":"Australian"},{"Nationality":"Austrian"},{"Nationality":"Azerbaijani"},{"Nationality":"Bahameese"},{"Nationality":"Bahamian"},{"Nationality":"Bahraini"},{"Nationality":"Bangladeshi"},{"Nationality":"Barbadian"},{"Nationality":"Barbudans"},{"Nationality":"Barthlemois"},{"Nationality":"Belarusian"},{"Nationality":"Belgian"},{"Nationality":"Belizean"},{"Nationality":"Beninese"},{"Nationality":"Bermudan"},{"Nationality":"Bhutanese"},{"Nationality":"Bolivian"},{"Nationality":"Bosnian"},{"Nationality":"Brazilian"},{"Nationality":"British"},{"Nationality":"Bruneian"},{"Nationality":"Bulgarian"},{"Nationality":"Burkinabe"},{"Nationality":"Burmese"},{"Nationality":"Burundian"},{"Nationality":"Cambodian"},{"Nationality":"Cameroonian"},{"Nationality":"Canadian"},{"Nationality":"Cape Verdean"},{"Nationality":"Caymanian"},{"Nationality":"Central African"},{"Nationality":"Chadian"},{"Nationality":"Chilean"},{"Nationality":"Chinese"},{"Nationality":"Christmas Islander"},{"Nationality":"Cocossian"},{"Nationality":"Colombian"},{"Nationality":"Comoran"},{"Nationality":"Congolese"},{"Nationality":"Cook Islander"},{"Nationality":"Costa Rican"},{"Nationality":"Croatian"},{"Nationality":"Cuban"},{"Nationality":"Curaaoan"},{"Nationality":"Cypriot"},{"Nationality":"Czech"},{"Nationality":"Danish"},{"Nationality":"Djiboutian"},{"Nationality":"Dominican"},{"Nationality":"Dutch"},{"Nationality":"Dutchwoman"},{"Nationality":"Ecuadorean"},{"Nationality":"Egyptian"},{"Nationality":"Emirian"},{"Nationality":"Equatorial Guinean"},{"Nationality":"Eritrean"},{"Nationality":"Estonian"},{"Nationality":"Ethiopian"},{"Nationality":"Falkland Islander"},{"Nationality":"Faroese"},{"Nationality":"Fijian"},{"Nationality":"Filipino"},{"Nationality":"Finnish"},{"Nationality":"French"},{"Nationality":"French Guianese"},{"Nationality":"French Polynesian"},{"Nationality":"Gabonese"},{"Nationality":"Gambian"},{"Nationality":"Georgian"},{"Nationality":"German"},{"Nationality":"Ghanaian"},{"Nationality":"Gibralterian"},{"Nationality":"Greek"},{"Nationality":"Greenlander"},{"Nationality":"Grenadian"},{"Nationality":"Guadeloupean"},{"Nationality":"Guamanian"},{"Nationality":"Guatemalan"},{"Nationality":"Guinean"},{"Nationality":"Guyanese"},{"Nationality":"Haitian"},{"Nationality":"Herzegovinian"},{"Nationality":"Honduran"},{"Nationality":"Hong Konger"},{"Nationality":"Hungarian"},{"Nationality":"I-Kiribati"},{"Nationality":"Icelander"},{"Nationality":"Indian"},{"Nationality":"Indonesian"},{"Nationality":"Iranian"},{"Nationality":"Iraqi"},{"Nationality":"Irish"},{"Nationality":"Israeli"},{"Nationality":"Italian"},{"Nationality":"Ivorian"},{"Nationality":"Jamaican"},{"Nationality":"Japanese"},{"Nationality":"Jordanian"},{"Nationality":"Kazakhstani"},{"Nationality":"Kenyan"},{"Nationality":"Kittian and Nevisian"},{"Nationality":"Kuwaiti"},{"Nationality":"Kyrgyz"},{"Nationality":"Kyrgyzstani"},{"Nationality":"Laotian"},{"Nationality":"Latvian"},{"Nationality":"Lebanese"},{"Nationality":"Liberian"},{"Nationality":"Libyan"},{"Nationality":"Liechtensteiner"},{"Nationality":"Lithuanian"},{"Nationality":"Luxembourger"},{"Nationality":"Macanese"},{"Nationality":"Macedonian"},{"Nationality":"Mahoran"},{"Nationality":"Malagasy"},{"Nationality":"Malawian"},{"Nationality":"Malaysian"},{"Nationality":"Maldivan"},{"Nationality":"Malian"},{"Nationality":"Maltese"},{"Nationality":"Manx"},{"Nationality":"Marshallese"},{"Nationality":"Martinican"},{"Nationality":"Mauritanian"},{"Nationality":"Mauritian"},{"Nationality":"Mexican"},{"Nationality":"Micronesian"},{"Nationality":"Moldovan"},{"Nationality":"Monacan"},{"Nationality":"Mongolian"},{"Nationality":"Montenegrin"},{"Nationality":"Montserratian"},{"Nationality":"Moroccan"},{"Nationality":"Mosotho"},{"Nationality":"Motswana"},{"Nationality":"Mozambican"},{"Nationality":"Namibian"},{"Nationality":"Nauruan"},{"Nationality":"Nepalese"},{"Nationality":"New Caledonian"},{"Nationality":"New Zealander"},{"Nationality":"Ni-Vanuatu"},{"Nationality":"Nicaraguan"},{"Nationality":"Nigerian"},{"Nationality":"Nigerien"},{"Nationality":"Niuean"},{"Nationality":"Norfolk Islander"},{"Nationality":"North Korean"},{"Nationality":"Northern Irish"},{"Nationality":"Northern Mariana Islander"},{"Nationality":"Norwegian"},{"Nationality":"Omani"},{"Nationality":"Pakistani"},{"Nationality":"Palauan"},{"Nationality":"Palestinian"},{"Nationality":"Panamanian"},{"Nationality":"Papua New Guinean"},{"Nationality":"Paraguayan"},{"Nationality":"Peruvian"},{"Nationality":"Pitcairn Islander"},{"Nationality":"Polish"},{"Nationality":"Portuguese"},{"Nationality":"Puerto Rican"},{"Nationality":"Qatari"},{"Nationality":"Romanian"},{"Nationality":"Russian"},{"Nationality":"Rwandan"},{"Nationality":"Saint Helenian"},{"Nationality":"Saint Lucian"},{"Nationality":"Saint Vincentian"},{"Nationality":"Saint-Pierrais"},{"Nationality":"Salvadoran"},{"Nationality":"Samoan"},{"Nationality":"San Marinese"},{"Nationality":"Sao Tomean"},{"Nationality":"Saudi"},{"Nationality":"Scottish"},{"Nationality":"Senegalese"},{"Nationality":"Serbian"},{"Nationality":"Seychellois"},{"Nationality":"Sierra Leonean"},{"Nationality":"Singaporean"},{"Nationality":"Slovakian"},{"Nationality":"Slovenian"},{"Nationality":"Solomon Islander"},{"Nationality":"Somali"},{"Nationality":"South African"},{"Nationality":"South Korean"},{"Nationality":"Spanish"},{"Nationality":"Sri Lankan"},{"Nationality":"Sudanese"},{"Nationality":"Surinamer"},{"Nationality":"Swazi"},{"Nationality":"Swedish"},{"Nationality":"Swiss"},{"Nationality":"Syrian"},{"Nationality":"Taiwanese"},{"Nationality":"Tajik"},{"Nationality":"Tanzanian"},{"Nationality":"Thai"},{"Nationality":"Tibetan "},{"Nationality":"Timorese"},{"Nationality":"Togolese"},{"Nationality":"Tokelauan"},{"Nationality":"Tongan"},{"Nationality":"Trinidadian or Tobagonian"},{"Nationality":"Tunisian"},{"Nationality":"Turkish"},{"Nationality":"Turkmen"},{"Nationality":"Turks and Caicos Islander"},{"Nationality":"Tuvaluan"},{"Nationality":"Ugandan"},{"Nationality":"Ukrainian"},{"Nationality":"Uruguayan"},{"Nationality":"Uzbekistani"},{"Nationality":"Venezuelan"},{"Nationality":"Vietnamese"},{"Nationality":"Virgin Islander-UK"},{"Nationality":"Virgin Islander-US"},{"Nationality":"Wallisian"},{"Nationality":"Welsh"},{"Nationality":"Western Saharan"},{"Nationality":"Yemenese"},{"Nationality":"Zambian"},{"Nationality":"Zimbabwean"},{"Nationality":"landic"}]')},28:function(e){e.exports=JSON.parse('[{"iso2Code":"AF","label":"Afghanistan","value":"AFG","currency":"AFN","phone":"93"},{"iso2Code":"AX","label":"Aland Islands","value":"ALA","currency":"EUR","phone":"+358-18"},{"iso2Code":"AL","label":"Albania","value":"ALB","currency":"ALL","phone":"355"},{"iso2Code":"DZ","label":"Algeria","value":"DZA","currency":"DZD","phone":"213"},{"iso2Code":"AS","label":"American Samoa","value":"ASM","currency":"USD","phone":"+1-684"},{"iso2Code":"AD","label":"Andorra","value":"AND","currency":"EUR","phone":"376"},{"iso2Code":"AO","label":"Angola","value":"AGO","currency":"AOA","phone":"244"},{"iso2Code":"AI","label":"Anguilla","value":"AIA","currency":"XCD","phone":"+1-264"},{"iso2Code":"AQ","label":"Antarctica","value":"ATA","currency":"","phone":""},{"iso2Code":"AG","label":"Antigua and Barbuda","value":"ATG","currency":"XCD","phone":"+1-268"},{"iso2Code":"AR","label":"Argentina","value":"ARG","currency":"ARS","phone":"54"},{"iso2Code":"AM","label":"Armenia","value":"ARM","currency":"AMD","phone":"374"},{"iso2Code":"AW","label":"Aruba","value":"ABW","currency":"AWG","phone":"297"},{"iso2Code":"AU","label":"Australia","value":"AUS","currency":"AUD","phone":"61"},{"iso2Code":"AT","label":"Austria","value":"AUT","currency":"EUR","phone":"43"},{"iso2Code":"AZ","label":"Azerbaijan","value":"AZE","currency":"AZN","phone":"994"},{"iso2Code":"BS","label":"Bahamas","value":"BHS","currency":"BSD","phone":"+1-242"},{"iso2Code":"BH","label":"Bahrain","value":"BHR","currency":"BHD","phone":"973"},{"iso2Code":"BD","label":"Bangladesh","value":"BGD","currency":"BDT","phone":"880"},{"iso2Code":"BB","label":"Barbados","value":"BRB","currency":"BBD","phone":"+1-246"},{"iso2Code":"BY","label":"Belarus","value":"BLR","currency":"BYR","phone":"375"},{"iso2Code":"BE","label":"Belgium","value":"BEL","currency":"EUR","phone":"32"},{"iso2Code":"BZ","label":"Belize","value":"BLZ","currency":"BZD","phone":"501"},{"iso2Code":"BJ","label":"Benin","value":"BEN","currency":"XOF","phone":"229"},{"iso2Code":"BM","label":"Bermuda","value":"BMU","currency":"BMD","phone":"+1-441"},{"iso2Code":"BT","label":"Bhutan","value":"BTN","currency":"BTN","phone":"975"},{"iso2Code":"BO","label":"Bolivia","value":"BOL","currency":"BOB","phone":"591"},{"iso2Code":"BQ","label":"Bonaire, Saint Eustatius and Saba ","value":"BES","currency":"USD","phone":"599"},{"iso2Code":"BA","label":"Bosnia and Herzegovina","value":"BIH","currency":"BAM","phone":"387"},{"iso2Code":"BW","label":"Botswana","value":"BWA","currency":"BWP","phone":"267"},{"iso2Code":"BV","label":"Bouvet Island","value":"BVT","currency":"NOK","phone":""},{"iso2Code":"BR","label":"Brazil","value":"BRA","currency":"BRL","phone":"55"},{"iso2Code":"IO","label":"British Indian Ocean Territory","value":"IOT","currency":"USD","phone":"246"},{"iso2Code":"VG","label":"British Virgin Islands","value":"VGB","currency":"USD","phone":"+1-284"},{"iso2Code":"BN","label":"Brunei","value":"BRN","currency":"BND","phone":"673"},{"iso2Code":"BG","label":"Bulgaria","value":"BGR","currency":"BGN","phone":"359"},{"iso2Code":"BF","label":"Burkina Faso","value":"BFA","currency":"XOF","phone":"226"},{"iso2Code":"BI","label":"Burundi","value":"BDI","currency":"BIF","phone":"257"},{"iso2Code":"KH","label":"Cambodia","value":"KHM","currency":"KHR","phone":"855"},{"iso2Code":"CM","label":"Cameroon","value":"CMR","currency":"XAF","phone":"237"},{"iso2Code":"CA","label":"Canada","value":"CAN","currency":"CAD","phone":"1"},{"iso2Code":"CV","label":"Cape Verde","value":"CPV","currency":"CVE","phone":"238"},{"iso2Code":"KY","label":"Cayman Islands","value":"CYM","currency":"KYD","phone":"+1-345"},{"iso2Code":"CF","label":"Central African Republic","value":"CAF","currency":"XAF","phone":"236"},{"iso2Code":"TD","label":"Chad","value":"TCD","currency":"XAF","phone":"235"},{"iso2Code":"CL","label":"Chile","value":"CHL","currency":"CLP","phone":"56"},{"iso2Code":"CN","label":"China","value":"CHN","currency":"CNY","phone":"86"},{"iso2Code":"CX","label":"Christmas Island","value":"CXR","currency":"AUD","phone":"61"},{"iso2Code":"CC","label":"Cocos Islands","value":"CCK","currency":"AUD","phone":"61"},{"iso2Code":"CO","label":"Colombia","value":"COL","currency":"COP","phone":"57"},{"iso2Code":"KM","label":"Comoros","value":"COM","currency":"KMF","phone":"269"},{"iso2Code":"CK","label":"Cook Islands","value":"COK","currency":"NZD","phone":"682"},{"iso2Code":"CR","label":"Costa Rica","value":"CRI","currency":"CRC","phone":"506"},{"iso2Code":"HR","label":"Croatia","value":"HRV","currency":"HRK","phone":"385"},{"iso2Code":"CU","label":"Cuba","value":"CUB","currency":"CUP","phone":"53"},{"iso2Code":"CW","label":"Curacao","value":"CUW","currency":"ANG","phone":"599"},{"iso2Code":"CY","label":"Cyprus","value":"CYP","currency":"EUR","phone":"357"},{"iso2Code":"CZ","label":"Czech Republic","value":"CZE","currency":"CZK","phone":"420"},{"iso2Code":"CD","label":"Democratic Republic of the Congo","value":"COD","currency":"CDF","phone":"243"},{"iso2Code":"DK","label":"Denmark","value":"DNK","currency":"DKK","phone":"45"},{"iso2Code":"DJ","label":"Djibouti","value":"DJI","currency":"DJF","phone":"253"},{"iso2Code":"DM","label":"Dominica","value":"DMA","currency":"XCD","phone":"+1-767"},{"iso2Code":"DO","label":"Dominican Republic","value":"DOM","currency":"DOP","phone":"+1-809 and 1-829"},{"iso2Code":"TL","label":"East Timor","value":"TLS","currency":"USD","phone":"670"},{"iso2Code":"EC","label":"Ecuador","value":"ECU","currency":"USD","phone":"593"},{"iso2Code":"EG","label":"Egypt","value":"EGY","currency":"EGP","phone":"20"},{"iso2Code":"SV","label":"El Salvador","value":"SLV","currency":"USD","phone":"503"},{"iso2Code":"GQ","label":"Equatorial Guinea","value":"GNQ","currency":"XAF","phone":"240"},{"iso2Code":"ER","label":"Eritrea","value":"ERI","currency":"ERN","phone":"291"},{"iso2Code":"EE","label":"Estonia","value":"EST","currency":"EUR","phone":"372"},{"iso2Code":"ET","label":"Ethiopia","value":"ETH","currency":"ETB","phone":"251"},{"iso2Code":"FK","label":"Falkland Islands","value":"FLK","currency":"FKP","phone":"500"},{"iso2Code":"FO","label":"Faroe Islands","value":"FRO","currency":"DKK","phone":"298"},{"iso2Code":"FJ","label":"Fiji","value":"FJI","currency":"FJD","phone":"679"},{"iso2Code":"FI","label":"Finland","value":"FIN","currency":"EUR","phone":"358"},{"iso2Code":"FR","label":"France","value":"FRA","currency":"EUR","phone":"33"},{"iso2Code":"GF","label":"French Guiana","value":"GUF","currency":"EUR","phone":"594"},{"iso2Code":"PF","label":"French Polynesia","value":"PYF","currency":"XPF","phone":"689"},{"iso2Code":"TF","label":"French Southern Territories","value":"ATF","currency":"EUR","phone":""},{"iso2Code":"GA","label":"Gabon","value":"GAB","currency":"XAF","phone":"241"},{"iso2Code":"GM","label":"Gambia","value":"GMB","currency":"GMD","phone":"220"},{"iso2Code":"GE","label":"Georgia","value":"GEO","currency":"GEL","phone":"995"},{"iso2Code":"DE","label":"Germany","value":"DEU","currency":"EUR","phone":"49"},{"iso2Code":"GH","label":"Ghana","value":"GHA","currency":"GHS","phone":"233"},{"iso2Code":"GI","label":"Gibraltar","value":"GIB","currency":"GIP","phone":"350"},{"iso2Code":"GR","label":"Greece","value":"GRC","currency":"EUR","phone":"30"},{"iso2Code":"GL","label":"Greenland","value":"GRL","currency":"DKK","phone":"299"},{"iso2Code":"GD","label":"Grenada","value":"GRD","currency":"XCD","phone":"+1-473"},{"iso2Code":"GP","label":"Guadeloupe","value":"GLP","currency":"EUR","phone":"590"},{"iso2Code":"GU","label":"Guam","value":"GUM","currency":"USD","phone":"+1-671"},{"iso2Code":"GT","label":"Guatemala","value":"GTM","currency":"GTQ","phone":"502"},{"iso2Code":"GG","label":"Guernsey","value":"GGY","currency":"GBP","phone":"+44-1481"},{"iso2Code":"GN","label":"Guinea","value":"GIN","currency":"GNF","phone":"224"},{"iso2Code":"GW","label":"Guinea-Bissau","value":"GNB","currency":"XOF","phone":"245"},{"iso2Code":"GY","label":"Guyana","value":"GUY","currency":"GYD","phone":"592"},{"iso2Code":"HT","label":"Haiti","value":"HTI","currency":"HTG","phone":"509"},{"iso2Code":"HM","label":"Heard Island and McDonald Islands","value":"HMD","currency":"AUD","phone":" "},{"iso2Code":"HN","label":"Honduras","value":"HND","currency":"HNL","phone":"504"},{"iso2Code":"HK","label":"Hong Kong","value":"HKG","currency":"HKD","phone":"852"},{"iso2Code":"HU","label":"Hungary","value":"HUN","currency":"HUF","phone":"36"},{"iso2Code":"IS","label":"Iceland","value":"ISL","currency":"ISK","phone":"354"},{"iso2Code":"IN","label":"India","value":"IND","currency":"INR","phone":"91"},{"iso2Code":"ID","label":"Indonesia","value":"IDN","currency":"IDR","phone":"62"},{"iso2Code":"IR","label":"Iran","value":"IRN","currency":"IRR","phone":"98"},{"iso2Code":"IQ","label":"Iraq","value":"IRQ","currency":"IQD","phone":"964"},{"iso2Code":"IE","label":"Ireland","value":"IRL","currency":"EUR","phone":"353"},{"iso2Code":"IM","label":"Isle of Man","value":"IMN","currency":"GBP","phone":"+44-1624"},{"iso2Code":"IL","label":"Israel","value":"ISR","currency":"ILS","phone":"972"},{"iso2Code":"IT","label":"Italy","value":"ITA","currency":"EUR","phone":"39"},{"iso2Code":"CI","label":"Ivory Coast","value":"CIV","currency":"XOF","phone":"225"},{"iso2Code":"JM","label":"Jamaica","value":"JAM","currency":"JMD","phone":"+1-876"},{"iso2Code":"JP","label":"Japan","value":"JPN","currency":"JPY","phone":"81"},{"iso2Code":"JE","label":"Jersey","value":"JEY","currency":"GBP","phone":"+44-1534"},{"iso2Code":"JO","label":"Jordan","value":"JOR","currency":"JOD","phone":"962"},{"iso2Code":"KZ","label":"Kazakhstan","value":"KAZ","currency":"KZT","phone":"7"},{"iso2Code":"KE","label":"Kenya","value":"KEN","currency":"KES","phone":"254"},{"iso2Code":"KI","label":"Kiribati","value":"KIR","currency":"AUD","phone":"686"},{"iso2Code":"XK","label":"Kosovo","value":"XKX","currency":"EUR","phone":""},{"iso2Code":"KW","label":"Kuwait","value":"KWT","currency":"KWD","phone":"965"},{"iso2Code":"KG","label":"Kyrgyzstan","value":"KGZ","currency":"KGS","phone":"996"},{"iso2Code":"LA","label":"Laos","value":"LAO","currency":"LAK","phone":"856"},{"iso2Code":"LV","label":"Latvia","value":"LVA","currency":"EUR","phone":"371"},{"iso2Code":"LB","label":"Lebanon","value":"LBN","currency":"LBP","phone":"961"},{"iso2Code":"LS","label":"Lesotho","value":"LSO","currency":"LSL","phone":"266"},{"iso2Code":"LR","label":"Liberia","value":"LBR","currency":"LRD","phone":"231"},{"iso2Code":"LY","label":"Libya","value":"LBY","currency":"LYD","phone":"218"},{"iso2Code":"LI","label":"Liechtenstein","value":"LIE","currency":"CHF","phone":"423"},{"iso2Code":"LT","label":"Lithuania","value":"LTU","currency":"LTL","phone":"370"},{"iso2Code":"LU","label":"Luxembourg","value":"LUX","currency":"EUR","phone":"352"},{"iso2Code":"MO","label":"Macao","value":"MAC","currency":"MOP","phone":"853"},{"iso2Code":"MK","label":"Macedonia","value":"MKD","currency":"MKD","phone":"389"},{"iso2Code":"MG","label":"Madagascar","value":"MDG","currency":"MGA","phone":"261"},{"iso2Code":"MW","label":"Malawi","value":"MWI","currency":"MWK","phone":"265"},{"iso2Code":"MY","label":"Malaysia","value":"MYS","currency":"MYR","phone":"60"},{"iso2Code":"MV","label":"Maldives","value":"MDV","currency":"MVR","phone":"960"},{"iso2Code":"ML","label":"Mali","value":"MLI","currency":"XOF","phone":"223"},{"iso2Code":"MT","label":"Malta","value":"MLT","currency":"EUR","phone":"356"},{"iso2Code":"MH","label":"Marshall Islands","value":"MHL","currency":"USD","phone":"692"},{"iso2Code":"MQ","label":"Martinique","value":"MTQ","currency":"EUR","phone":"596"},{"iso2Code":"MR","label":"Mauritania","value":"MRT","currency":"MRO","phone":"222"},{"iso2Code":"MU","label":"Mauritius","value":"MUS","currency":"MUR","phone":"230"},{"iso2Code":"YT","label":"Mayotte","value":"MYT","currency":"EUR","phone":"262"},{"iso2Code":"MX","label":"Mexico","value":"MEX","currency":"MXN","phone":"52"},{"iso2Code":"FM","label":"Micronesia","value":"FSM","currency":"USD","phone":"691"},{"iso2Code":"MD","label":"Moldova","value":"MDA","currency":"MDL","phone":"373"},{"iso2Code":"MC","label":"Monaco","value":"MCO","currency":"EUR","phone":"377"},{"iso2Code":"MN","label":"Mongolia","value":"MNG","currency":"MNT","phone":"976"},{"iso2Code":"ME","label":"Montenegro","value":"MNE","currency":"EUR","phone":"382"},{"iso2Code":"MS","label":"Montserrat","value":"MSR","currency":"XCD","phone":"+1-664"},{"iso2Code":"MA","label":"Morocco","value":"MAR","currency":"MAD","phone":"212"},{"iso2Code":"MZ","label":"Mozambique","value":"MOZ","currency":"MZN","phone":"258"},{"iso2Code":"MM","label":"Myanmar","value":"MMR","currency":"MMK","phone":"95"},{"iso2Code":"NA","label":"Namibia","value":"NAM","currency":"NAD","phone":"264"},{"iso2Code":"NR","label":"Nauru","value":"NRU","currency":"AUD","phone":"674"},{"iso2Code":"NP","label":"Nepal","value":"NPL","currency":"NPR","phone":"977"},{"iso2Code":"NL","label":"Netherlands","value":"NLD","currency":"EUR","phone":"31"},{"iso2Code":"NC","label":"New Caledonia","value":"NCL","currency":"XPF","phone":"687"},{"iso2Code":"NZ","label":"New Zealand","value":"NZL","currency":"NZD","phone":"64"},{"iso2Code":"NI","label":"Nicaragua","value":"NIC","currency":"NIO","phone":"505"},{"iso2Code":"NE","label":"Niger","value":"NER","currency":"XOF","phone":"227"},{"iso2Code":"NG","label":"Nigeria","value":"NGA","currency":"NGN","phone":"234"},{"iso2Code":"NU","label":"Niue","value":"NIU","currency":"NZD","phone":"683"},{"iso2Code":"NF","label":"Norfolk Island","value":"NFK","currency":"AUD","phone":"672"},{"iso2Code":"KP","label":"North Korea","value":"PRK","currency":"KPW","phone":"850"},{"iso2Code":"MP","label":"Northern Mariana Islands","value":"MNP","currency":"USD","phone":"+1-670"},{"iso2Code":"NO","label":"Norway","value":"NOR","currency":"NOK","phone":"47"},{"iso2Code":"OM","label":"Oman","value":"OMN","currency":"OMR","phone":"968"},{"iso2Code":"PK","label":"Pakistan","value":"PAK","currency":"PKR","phone":"92"},{"iso2Code":"PW","label":"Palau","value":"PLW","currency":"USD","phone":"680"},{"iso2Code":"PS","label":"Palestinian Territory","value":"PSE","currency":"ILS","phone":"970"},{"iso2Code":"PA","label":"Panama","value":"PAN","currency":"PAB","phone":"507"},{"iso2Code":"PG","label":"Papua New Guinea","value":"PNG","currency":"PGK","phone":"675"},{"iso2Code":"PY","label":"Paraguay","value":"PRY","currency":"PYG","phone":"595"},{"iso2Code":"PE","label":"Peru","value":"PER","currency":"PEN","phone":"51"},{"iso2Code":"PH","label":"Philippines","value":"PHL","currency":"PHP","phone":"63"},{"iso2Code":"PN","label":"Pitcairn","value":"PCN","currency":"NZD","phone":"870"},{"iso2Code":"PL","label":"Poland","value":"POL","currency":"PLN","phone":"48"},{"iso2Code":"PT","label":"Portugal","value":"PRT","currency":"EUR","phone":"351"},{"iso2Code":"PR","label":"Puerto Rico","value":"PRI","currency":"USD","phone":"+1-787 and 1-939"},{"iso2Code":"QA","label":"Qatar","value":"QAT","currency":"QAR","phone":"974"},{"iso2Code":"CG","label":"Republic of the Congo","value":"COG","currency":"XAF","phone":"242"},{"iso2Code":"RE","label":"Reunion","value":"REU","currency":"EUR","phone":"262"},{"iso2Code":"RO","label":"Romania","value":"ROU","currency":"RON","phone":"40"},{"iso2Code":"RU","label":"Russia","value":"RUS","currency":"RUB","phone":"7"},{"iso2Code":"RW","label":"Rwanda","value":"RWA","currency":"RWF","phone":"250"},{"iso2Code":"BL","label":"Saint Barthelemy","value":"BLM","currency":"EUR","phone":"590"},{"iso2Code":"SH","label":"Saint Helena","value":"SHN","currency":"SHP","phone":"290"},{"iso2Code":"KN","label":"Saint Kitts and Nevis","value":"KNA","currency":"XCD","phone":"+1-869"},{"iso2Code":"LC","label":"Saint Lucia","value":"LCA","currency":"XCD","phone":"+1-758"},{"iso2Code":"MF","label":"Saint Martin","value":"MAF","currency":"EUR","phone":"590"},{"iso2Code":"PM","label":"Saint Pierre and Miquelon","value":"SPM","currency":"EUR","phone":"508"},{"iso2Code":"VC","label":"Saint Vincent and the Grenadines","value":"VCT","currency":"XCD","phone":"+1-784"},{"iso2Code":"WS","label":"Samoa","value":"WSM","currency":"WST","phone":"685"},{"iso2Code":"SM","label":"San Marino","value":"SMR","currency":"EUR","phone":"378"},{"iso2Code":"ST","label":"Sao Tome and Principe","value":"STP","currency":"STD","phone":"239"},{"iso2Code":"SA","label":"Saudi Arabia","value":"SAU","currency":"SAR","phone":"966"},{"iso2Code":"SN","label":"Senegal","value":"SEN","currency":"XOF","phone":"221"},{"iso2Code":"RS","label":"Serbia","value":"SRB","currency":"RSD","phone":"381"},{"iso2Code":"SC","label":"Seychelles","value":"SYC","currency":"SCR","phone":"248"},{"iso2Code":"SL","label":"Sierra Leone","value":"SLE","currency":"SLL","phone":"232"},{"iso2Code":"SG","label":"Singapore","value":"SGP","currency":"SGD","phone":"65"},{"iso2Code":"SX","label":"Sint Maarten","value":"SXM","currency":"ANG","phone":"599"},{"iso2Code":"SK","label":"Slovakia","value":"SVK","currency":"EUR","phone":"421"},{"iso2Code":"SI","label":"Slovenia","value":"SVN","currency":"EUR","phone":"386"},{"iso2Code":"SB","label":"Solomon Islands","value":"SLB","currency":"SBD","phone":"677"},{"iso2Code":"SO","label":"Somalia","value":"SOM","currency":"SOS","phone":"252"},{"iso2Code":"ZA","label":"South Africa","value":"ZAF","currency":"ZAR","phone":"27"},{"iso2Code":"GS","label":"South Georgia and the South Sandwich Islands","value":"SGS","currency":"GBP","phone":""},{"iso2Code":"KR","label":"South Korea","value":"KOR","currency":"KRW","phone":"82"},{"iso2Code":"SS","label":"South Sudan","value":"SSD","currency":"SSP","phone":"211"},{"iso2Code":"ES","label":"Spain","value":"ESP","currency":"EUR","phone":"34"},{"iso2Code":"LK","label":"Sri Lanka","value":"LKA","currency":"LKR","phone":"94"},{"iso2Code":"SD","label":"Sudan","value":"SDN","currency":"SDG","phone":"249"},{"iso2Code":"SR","label":"Suriname","value":"SUR","currency":"SRD","phone":"597"},{"iso2Code":"SJ","label":"Svalbard and Jan Mayen","value":"SJM","currency":"NOK","phone":"47"},{"iso2Code":"SZ","label":"Swaziland","value":"SWZ","currency":"SZL","phone":"268"},{"iso2Code":"SE","label":"Sweden","value":"SWE","currency":"SEK","phone":"46"},{"iso2Code":"CH","label":"Switzerland","value":"CHE","currency":"CHF","phone":"41"},{"iso2Code":"SY","label":"Syria","value":"SYR","currency":"SYP","phone":"963"},{"iso2Code":"TW","label":"Taiwan","value":"TWN","currency":"TWD","phone":"886"},{"iso2Code":"TJ","label":"Tajikistan","value":"TJK","currency":"TJS","phone":"992"},{"iso2Code":"TZ","label":"Tanzania","value":"TZA","currency":"TZS","phone":"255"},{"iso2Code":"TH","label":"Thailand","value":"THA","currency":"THB","phone":"66"},{"iso2Code":"TG","label":"Togo","value":"TGO","currency":"XOF","phone":"228"},{"iso2Code":"TK","label":"Tokelau","value":"TKL","currency":"NZD","phone":"690"},{"iso2Code":"TO","label":"Tonga","value":"TON","currency":"TOP","phone":"676"},{"iso2Code":"TT","label":"Trinidad and Tobago","value":"TTO","currency":"TTD","phone":"+1-868"},{"iso2Code":"TN","label":"Tunisia","value":"TUN","currency":"TND","phone":"216"},{"iso2Code":"TR","label":"Turkey","value":"TUR","currency":"TRY","phone":"90"},{"iso2Code":"TM","label":"Turkmenistan","value":"TKM","currency":"TMT","phone":"993"},{"iso2Code":"TC","label":"Turks and Caicos Islands","value":"TCA","currency":"USD","phone":"+1-649"},{"iso2Code":"TV","label":"Tuvalu","value":"TUV","currency":"AUD","phone":"688"},{"iso2Code":"VI","label":"U.S. Virgin Islands","value":"VIR","currency":"USD","phone":"+1-340"},{"iso2Code":"UG","label":"Uganda","value":"UGA","currency":"UGX","phone":"256"},{"iso2Code":"UA","label":"Ukraine","value":"UKR","currency":"UAH","phone":"380"},{"iso2Code":"AE","label":"United Arab Emirates","value":"ARE","currency":"AED","phone":"971"},{"iso2Code":"GB","label":"United Kingdom","value":"GBR","currency":"GBP","phone":"44"},{"iso2Code":"US","label":"United States","value":"USA","currency":"USD","phone":"1"},{"iso2Code":"UM","label":"United States Minor Outlying Islands","value":"UMI","currency":"USD","phone":"1"},{"iso2Code":"UY","label":"Uruguay","value":"URY","currency":"UYU","phone":"598"},{"iso2Code":"UZ","label":"Uzbekistan","value":"UZB","currency":"UZS","phone":"998"},{"iso2Code":"VU","label":"Vanuatu","value":"VUT","currency":"VUV","phone":"678"},{"iso2Code":"VA","label":"Vatican","value":"VAT","currency":"EUR","phone":"379"},{"iso2Code":"VE","label":"Venezuela","value":"VEN","currency":"VEF","phone":"58"},{"iso2Code":"VN","label":"Vietnam","value":"VNM","currency":"VND","phone":"84"},{"iso2Code":"WF","label":"Wallis and Futuna","value":"WLF","currency":"XPF","phone":"681"},{"iso2Code":"EH","label":"Western Sahara","value":"ESH","currency":"MAD","phone":"212"},{"iso2Code":"YE","label":"Yemen","value":"YEM","currency":"YER","phone":"967"},{"iso2Code":"ZM","label":"Zambia","value":"ZMB","currency":"ZMK","phone":"260"},{"iso2Code":"ZW","label":"Zimbabwe","value":"ZWE","currency":"ZWL","phone":"263"}]')},309:function(e,t){},410:function(e,t,n){"use strict";n.r(t);var a=n(14),i=n(1),r=n.n(i),o=n(240),c=n(50),s=n.n(c),l=n(20),u=n(23),d=n(32),b=n(492),p=n(486),h=n(142),j=n(458),m=n(4),f=n(0),x={affiliate:{affiliateId:"",shortName:"",type:"outbound",name:"NovaRemit",logoUrl:{url:""},themeColor:"#074898",headline:"A better way to send money",featuresCollection:{items:[{title:"Deposit to Bank Account",description:"Send a secure bank transfer directly to hundreds of major banks worldwide."},{title:"Credit to Wallet",description:"Credit to Wallet"},{title:"Cash Pick up",description:"Cash is available to collect within minutes from many locations across the country."}]},bankDetail:{bsb:"123456",accountNumber:"1234567890",payId:"0411111111"},sendCountriesCollection:{items:[{name:"Australia",code:"Aus",currencyCollection:{items:[{code:"AUD"}]}}]},receiveCountriesCollection:{items:[{name:"Thailand",code:"THA",currencyCollection:{items:[{code:"THB"}]}}]},threshold:5e3,app:{appStoreUrl:"https://www.apple.com/",googlePlayUrl:"https://play.google.com/",showAppDownload:!1},poLi:{enable:!1,poLiLogo:{url:"https://www.polipayments.com/"},sendConfirmationEmailToMerchant:!1,sendEmailLinkToCustomer:!1,expiryAfterDays:7,allowSenderReference:!1,allowMultiplePayment:!1}},profile:void 0,loading:!0};function y(e,t){if("update"===t.type)return{affiliate:Object(a.a)(Object(a.a)({},e.affiliate),t.payload.affiliate),profile:t.payload.profile,loading:t.payload.loading};throw new Error}var v=Object(i.createContext)(x),O=Object(i.createContext)({});function C(){return Object(i.useContext)(v)}function g(){return Object(i.useContext)(O)}function S(e){var t=e.children,n=Object(i.useReducer)(y,x),a=Object(m.a)(n,2),r=a[0],o=a[1];return Object(f.jsx)(v.Provider,{value:r,children:Object(f.jsx)(O.Provider,{value:o,children:t})})}var N=function(){var e,t=C();return Object(f.jsx)(b.a,{maxWidth:"xl",disableGutters:!0,sx:{p:{xs:5,sm:8}},children:Object(f.jsx)(p.a,{container:!0,spacing:{xs:6,sm:8},children:null===(e=t.affiliate.featuresCollection)||void 0===e?void 0:e.items.map((function(e){return Object(f.jsxs)(p.a,{item:!0,xs:12,sm:4,children:[Object(f.jsx)(h.a,{variant:"h5",sx:{fontWeight:"bold"},component:"div",children:e.title}),Object(f.jsx)(j.a,{sx:{width:.5,my:1}}),Object(f.jsx)(h.a,{variant:"body1",component:"div",children:e.description})]},e.title)}))})})},I=n(9),T=n.n(I),k=n(15),D=n(465),A=n(464),w=n(502),E=n(500),B=n(501),P=n(495),R=n(221),L=n.n(R),M=n(21),U="production"==="production"?{domain:"novattixb.au.auth0.com",clientId:"Dvmcf6yGYNWUaCEazyn9x6J5XlWjVQxW",audience:"https://novattixb.au.auth0.com/api/v2/"}:{domain:"novatti.au.auth0.com",clientId:"OtGGYw9Mlm247RDK7P1scOq7bjF8ve3e",audience:"https://novatti.au.auth0.com/api/v2/"},q=function(e){return"production"===e?"https://api.novattixb.com/remit":"https://api.novattitech.com/remit"}("production"),F={inbound:"pandain",outbound:"pandaout"},W={inbound:"pandain",outbound:"pandaout"},G=function(e){return"production"===e?W:F}("production");function z(){var e=U.audience&&"YOUR_API_IDENTIFIER"!==U.audience?U.audience:null;return Object(a.a)(Object(a.a)({domain:U.domain,clientId:U.clientId},e?{audience:e}:null),{},{apiUrl:q,demoAffiliates:G})}var H=z();function K(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n={method:e.method,url:e.url,baseURL:H.apiUrl,params:e.params,data:e.data},a=sessionStorage.getItem("token");return a&&(n.headers={authorization:"Bearer ".concat(a)}),L()(n).then((function(e){if("Message"in e.data&&e.data.Message)throw t||M.b.warn(e.data.Message,{position:"top-right",autoClose:4e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!1,draggable:!1,progress:void 0}),e;if("errors"in e.data&&e.data.errors&&e.data.errors.length>0)throw t||M.b.warn(e.data.errors[0].LongDescription||"Oops! Something wrong",{position:"top-right",autoClose:4e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!1,draggable:!1,progress:void 0}),e;if("Errors"in e.data&&e.data.Errors&&e.data.Errors.length>0){var n=e.data.Errors[0].LongDescription||e.data.Errors[0].ErrorDescription;throw t||M.b.warn(n||"Oops! Something wrong",{position:"top-right",autoClose:4e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!1,draggable:!1,progress:void 0}),e}return e.data})).catch((function(e){throw e.response&&[400,401,403,500].includes(e.response.status)&&(400===e.response.status?t||M.b.warn("The request was invalid.",{position:"top-right",autoClose:3e3,hideProgressBar:!0,closeOnClick:!0,pauseOnHover:!1,draggable:!1,progress:void 0}):401===e.response.status||403===e.response.status?t||M.b.warn("Unauthorized",{position:"top-right",autoClose:3e3,hideProgressBar:!0,closeOnClick:!0,pauseOnHover:!1,draggable:!1,progress:void 0}):500===e.response.status&&(t||M.b.error("An unhandled error occured.",{position:"top-right",autoClose:3e3,hideProgressBar:!0,closeOnClick:!0,pauseOnHover:!1,draggable:!1,progress:void 0}))),e}))}function V(e,t){return X.apply(this,arguments)}function X(){return(X=Object(k.a)(T.a.mark((function e(t,n){return T.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",K({url:"/profile/".concat(n,"/").concat(encodeURIComponent(t)),method:"GET"},!0));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Y=n(16),Z=n.n(Y),_=n(28);function Q(e){if(e.includes("|")){var t=e.split("|").slice(-1);return Object(m.a)(t,1)[0]||e}return e}function J(e,t){for(var n=Object(a.a)({},e),i=0,r=Object.keys(n);i :not(style)":{color:"#ccc"}},children:[Object(f.jsx)(se.a,{href:"/".concat(a.affiliate.shortName,"/terms"),underline:"none",children:"Terms and Conditions"}),Object(f.jsx)(se.a,{href:"/".concat(a.affiliate.shortName,"/privacy"),underline:"none",children:"Privacy"}),Object(f.jsx)(se.a,{href:"/".concat(a.affiliate.shortName,"/contact"),underline:"none",children:"Contact Us"})]}),Object(f.jsxs)(h.a,{variant:"body1",sx:{color:"#ccc"},component:"span",children:["\xa9 ",a.affiliate.name," ",(new Date).getFullYear()," (v","1.2.2",")"]})]})})},be=n(494),pe=n(460),he=function(){return Object(f.jsx)(pe.a,{sx:{display:"flex",width:1,p:10,alignItems:"center",justifyContent:"center"},children:Object(f.jsx)(be.a,{sx:{color:"#ccc"}})})},je=n(487),me=n(241),fe=n(499),xe=n(463),ye=n(228),ve=n.n(ye),Oe=n(170),Ce=n.n(Oe),ge=n(224),Se=n.n(ge),Ne=n(225),Ie=n.n(Ne),Te=n(227),ke=n.n(Te),De=n(226),Ae=n.n(De),we=n(496),Ee=function(e){var t=e.hideBorder,n=C(),a=Object(l.b)(),i=a.user,o=a.isAuthenticated,c=a.loginWithRedirect,s=a.logout,d=C(),p=r.a.useState(null),j=Object(m.a)(p,2),x=j[0],y=j[1],v=Boolean(x),O=r.a.useState(null),g=Object(m.a)(O,2),S=g[0],N=g[1],I=Boolean(S),T=function(){y(null)},k="".concat(window.location.origin,"/callback?affiliationShortName=").concat(d.affiliate.shortName),D=function(){return d.profile?"".concat(d.profile.FirstName," ").concat(d.profile.LastName):i?null===i||void 0===i?void 0:i.name:""};return Object(f.jsx)(pe.a,{sx:{borderBottomColor:"rgba(0, 0, 0, 0.12)",borderBottomWidth:t?0:2,borderBlockEndStyle:"solid"},children:Object(f.jsx)(b.a,{maxWidth:"xl",sx:{p:{xs:2,sm:3},pr:{xs:1,sm:2}},children:Object(f.jsxs)(ce.a,{direction:"row",justifyContent:"space-between",alignItems:"flex-start",spacing:{xs:0,sm:2},children:[Object(f.jsxs)(ce.a,{direction:{xs:"column",sm:"row"},spacing:{xs:0,sm:2},alignItems:{xs:"flex-start",sm:"flex-end"},children:[Object(f.jsx)(pe.a,{children:Object(f.jsx)(se.a,{sx:{display:"flex",justifyContent:"center",alignItems:"center"},component:u.b,to:"/".concat(d.affiliate.shortName),underline:"none",children:Object(f.jsx)("img",{src:n.affiliate.logoUrl.url,alt:n.affiliate.name,style:{maxHeight:50,maxWidth:200}})})}),Object(f.jsx)(h.a,{variant:"body2",sx:{color:"#999",pl:"2px",pt:{xs:"3px",sm:0},fontSize:{xs:12,sm:14}},children:"Powered by NovaRemit"})]}),Object(f.jsxs)(pe.a,{sx:{pt:"5px"},children:[!o&&Object(f.jsxs)(r.a.Fragment,{children:[Object(f.jsxs)(pe.a,{sx:{display:{xs:"none",sm:"flex"}},children:[Object(f.jsx)(P.a,{sx:{mr:{xs:1,sm:2},textTransform:"none"},variant:"outlined",onClick:function(){return c({prompt:"login",redirectUri:k})},children:"Log in"}),Object(f.jsx)(P.a,{sx:{textTransform:"none"},disableElevation:!0,variant:"contained",onClick:function(){return c({screen_hint:"signup",prompt:"login",redirectUri:k})},children:"Sign up"})]}),Object(f.jsxs)(pe.a,{sx:{display:{xs:"flex",sm:"none"}},children:[Object(f.jsx)(we.a,{"aria-label":"signup",onClick:function(e){N(e.currentTarget)},children:Object(f.jsx)(Ce.a,{sx:{fontSize:32,color:"#999"}})}),Object(f.jsxs)(me.a,{id:"signup-menu",anchorEl:S,open:I,onClose:function(){N(null)},onClick:T,PaperProps:{elevation:0,sx:{overflow:"visible",filter:"drop-shadow(0px 2px 8px rgba(0,0,0,0.32))",mt:1,"& .MuiAvatar-root":{width:32,height:32,ml:-.5,mr:1},"&:before":{content:'""',display:"block",position:"absolute",top:0,right:18,width:10,height:10,bgcolor:"background.paper",transform:"translateY(-50%) rotate(45deg)",zIndex:0}}},transformOrigin:{horizontal:"right",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"bottom"},children:[Object(f.jsx)(fe.a,{onClick:function(){return c({screen_hint:"signup",display:"popup",redirectUri:k})},children:"Sign up"}),Object(f.jsx)(fe.a,{onClick:function(){return c({display:"popup",redirectUri:k})},children:"Log in"})]})]})]}),o&&Object(f.jsxs)(r.a.Fragment,{children:[Object(f.jsxs)(pe.a,{sx:{display:"flex",alignItems:"center"},children:[Object(f.jsxs)(h.a,{variant:"body2",sx:{mr:2,color:"#999",display:{xs:"none",sm:"inline"}},component:"span",children:["Welcome ",D()]}),Object(f.jsx)(je.a,{alt:D(),src:null===i||void 0===i?void 0:i.picture,sx:{width:32,height:32}}),Object(f.jsx)(we.a,{onClick:function(e){y(e.currentTarget)},size:"small",sx:{ml:1},children:Object(f.jsx)(Se.a,{sx:{fontSize:32}})})]}),Object(f.jsxs)(me.a,{anchorEl:x,open:v,onClose:T,onClick:T,PaperProps:{elevation:0,sx:{overflow:"visible",filter:"drop-shadow(0px 2px 8px rgba(0,0,0,0.32))",mt:1,"& .MuiAvatar-root":{width:32,height:32,ml:-.5,mr:1},"&:before":{content:'""',display:"block",position:"absolute",top:0,right:18,width:10,height:10,bgcolor:"background.paper",transform:"translateY(-50%) rotate(45deg)",zIndex:0}}},transformOrigin:{horizontal:"right",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"bottom"},children:[Object(f.jsxs)(fe.a,{component:u.b,to:"/".concat(d.affiliate.shortName),children:[Object(f.jsx)(xe.a,{children:Object(f.jsx)(Ie.a,{fontSize:"small"})}),"Home"]}),Object(f.jsxs)(fe.a,{component:u.b,to:"/".concat(d.affiliate.shortName,"/").concat(d.affiliate.type,"/profile"),children:[Object(f.jsx)(xe.a,{children:Object(f.jsx)(Ce.a,{fontSize:"small"})}),"Profile"]}),Object(f.jsxs)(fe.a,{component:u.b,to:"/".concat(d.affiliate.shortName,"/").concat(d.affiliate.type,"/receivers"),children:[Object(f.jsx)(xe.a,{children:Object(f.jsx)(Ae.a,{fontSize:"small"})}),"Receivers"]}),Object(f.jsxs)(fe.a,{component:u.b,to:"/".concat(d.affiliate.shortName,"/").concat(d.affiliate.type,"/transactions"),children:[Object(f.jsx)(xe.a,{children:Object(f.jsx)(ke.a,{fontSize:"small"})}),"Transactions"]}),Object(f.jsxs)(fe.a,{onClick:function(){return s({returnTo:"".concat(window.location.origin,"?affiliationShortName=").concat(d.affiliate.shortName)})},children:[Object(f.jsx)(xe.a,{children:Object(f.jsx)(ve.a,{fontSize:"small"})}),"Logout"]})]})]})]})]})})})},Be={CONTENTFUL_SPACEID:"xv3o7n0dmqrh",CONTENTFUL_ACCESSTOKEN:"Rtq97Kun7CUWwc8pKRayJfzwuJjB0_lyBj_iOsPtG_Q",CONTENTFUL_ENV:"dev"},Pe={CONTENTFUL_SPACEID:"xv3o7n0dmqrh",CONTENTFUL_ACCESSTOKEN:"Rtq97Kun7CUWwc8pKRayJfzwuJjB0_lyBj_iOsPtG_Q",CONTENTFUL_ENV:"master"},Re=function(e){return"production"===e?Pe:Be}("production");function Le(){var e=window;return{width:e.innerWidth,height:e.innerHeight}}var Me,Ue=function(e){var t=e.children,n=e.hideBorder,a=Object(d.g)().affiliationShortName,o=g(),c=C(),s=Object(d.f)(),u=Object(l.b)(),b=u.user,p=u.getAccessTokenSilently,h=u.isAuthenticated,j=u.logout,x=Object(i.useState)(Le()),y=Object(m.a)(x,2),v=y[0],O=y[1],S=Object(i.useState)(!1),N=Object(m.a)(S,2),I=N[0],R=N[1],L=function(){R(!1),j()};r.a.useEffect((function(){function e(){O(Le())}return a&&M(a),window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}),[]),r.a.useEffect((function(){var e=function(){var e=Object(k.a)(T.a.mark((function e(){var t;return T.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,p();case 2:t=e.sent,sessionStorage.setItem("token",t);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();h&&e()}),[p,h]);var M=function(){var e=Object(k.a)(T.a.mark((function e(t){var n,a,i,r,c,l,u,d;return T.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n='\n {\n transactionViewCollection(where: {shortName: "'.concat(t,'"} limit: 1) {\n items {\n affiliateId\n name\n type\n shortName\n themeColor\n headline\n logoUrl {\n url\n }\n featuresCollection {\n items {\n title\n description\n }\n }\n sendCountriesCollection(limit: 5) {\n items {\n name\n code\n currencyCollection(limit: 5) {\n items {\n code\n }\n }\n }\n }\n receiveCountriesCollection(limit: 100) {\n items {\n name\n code\n currencyCollection(limit: 5) {\n items {\n code\n }\n }\n }\n }\n bankDetail {\n bsb\n accountNumber\n payId\n }\n threshold\n privacyStatement {\n json\n links {\n entries {\n inline {\n sys {\n id\n }\n }\n }\n }\n }\n termsAndConditions {\n json\n links {\n entries {\n inline {\n sys {\n id\n }\n }\n }\n }\n }\n contactUs {\n json\n links {\n entries {\n inline {\n sys {\n id\n }\n }\n }\n }\n }\n app {\n appStoreUrl\n googlePlayUrl\n showAppDownload\n }\n }\n }\n }\n '),e.next=3,window.fetch("https://graphql.contentful.com/content/v1/spaces/".concat(Re.CONTENTFUL_SPACEID,"/environments/").concat(Re.CONTENTFUL_ENV),{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(Re.CONTENTFUL_ACCESSTOKEN)},body:JSON.stringify({query:n})});case 3:return a=e.sent,e.next=6,a.json();case 6:if(i=e.sent,r=i.data,(c=i.errors)&&(console.error(c),s.push("/")),!(r.transactionViewCollection.items.length>0)){e.next=29;break}if(l=r.transactionViewCollection.items[0],localStorage.setItem("affiliationShortName",t),u={loading:!1,affiliate:l},e.prev=14,!b||!b.sub){e.next=20;break}return e.next=18,V(Q(null===b||void 0===b?void 0:b.sub),l.affiliateId);case 18:d=e.sent,u.profile=d.profile;case 20:o({type:"update",payload:u}),!b||u.profile&&u.profile.ExSenderId||s.push("/".concat(l.shortName,"/").concat(l.type,"/registration")),e.next=27;break;case 24:e.prev=24,e.t0=e.catch(14),e.t0.response&&403===e.t0.response.status?R(!0):(o({type:"update",payload:u}),s.push("/".concat(l.shortName,"/").concat(l.type,"/registration")));case 27:e.next=31;break;case 29:o({type:"update",payload:{loading:!1}}),s.push("/");case 31:case"end":return e.stop()}}),e,null,[[14,24]])})));return function(t){return e.apply(this,arguments)}}();return c.loading?Object(f.jsxs)(r.a.Fragment,{children:[Object(f.jsx)(he,{}),Object(f.jsxs)(A.a,{open:I,onClose:L,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[Object(f.jsx)(E.a,{children:Object(f.jsx)(B.a,{id:"alert-dialog-description",children:"Oops! Something went wrong, please try again later."})}),Object(f.jsx)(w.a,{children:Object(f.jsx)(P.a,{onClick:L,autoFocus:!0,children:"OK"})})]})]}):Object(f.jsxs)(r.a.Fragment,{children:[Object(f.jsx)(Ee,{hideBorder:n}),Object(f.jsx)(D.a,{sx:{minHeight:v.height-315},children:t}),Object(f.jsx)(de,{})]})},qe=n(242),Fe=n(246),We=n(503),Ge=n(481),ze=n(466),He=n(44),Ke=n(229),Ve=["onChange"],Xe=r.a.forwardRef((function(e,t){var n=e.onChange,i=Object(qe.a)(e,Ve);return Object(f.jsx)(Ke.a,Object(a.a)(Object(a.a)({},i),{},{getInputRef:t,onValueChange:function(t){n({target:{name:e.name,value:t.value}})},thousandSeparator:!0,isNumericString:!0}))})),Ye=function(e){var t=r.a.useState(!1),n=Object(m.a)(t,2),a=n[0],i=n[1],o=e.country,c=e.currency,s=e.amount,l=e.counties,u=e.changeCountry,d=e.changeAmount,b=e.changeCurrency;return Object(f.jsx)(Fe.a,{elevation:1,sx:{pl:{xs:0,sm:1},py:1,pr:{xs:1,sm:2}},children:Object(f.jsxs)(pe.a,{sx:{display:"grid",gridTemplateColumns:{xs:"70px auto 70px",sm:"190px auto 80px"}},children:[Object(f.jsx)(pe.a,{children:Object(f.jsx)(We.a,{variant:"standard",fullWidth:!0,children:Object(f.jsx)(Ge.a,{onFocus:function(){return i(!0)},disableUnderline:!0,value:o.code,renderValue:function(){return Object(f.jsxs)(fe.a,{children:[o.flag,Object(f.jsx)(ze.a,{sx:{ml:1,display:{xs:"none",sm:"inline"}},primary:o.name})]})},onChange:function(e){var t=e.target.value,n=Z.a.find(l,(function(e){return e.code===t}));a&&u(n)},children:l.map((function(e){return Object(f.jsxs)(fe.a,{value:e.code,children:[e.flag,Object(f.jsx)(ze.a,{sx:{ml:1},primary:e.name})]},e.code)}))})})}),Object(f.jsx)(pe.a,{sx:{px:2,borderLeft:1,borderRight:1,borderColor:"grey.300",ml:1,display:"flex",alignItems:"center"},children:Object(f.jsx)(We.a,{fullWidth:!0,children:Object(f.jsx)(He.c,{onFocus:function(){return i(!0)},sx:{typography:"h5",fontWeight:"bold"},value:s,onChange:function(e){a&&d(e.target.value)},inputComponent:Xe})})}),Object(f.jsx)(pe.a,{sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:o.currency.length>1?Object(f.jsx)(We.a,{variant:"standard",fullWidth:!0,sx:{ml:2},children:Object(f.jsx)(Ge.a,{onFocus:function(){return i(!0)},disableUnderline:!0,value:c,onChange:function(e){var t=e.target.value;a&&b(t)},children:o.currency.map((function(e){return Object(f.jsx)(fe.a,{value:e,children:Object(f.jsx)(ze.a,{primary:e})},e)}))})}):Object(f.jsx)(h.a,{variant:"body1",component:"div",children:o.currency})})]})})},Ze=n(424),_e=n(484),Qe=n(34),Je=n.n(Qe),$e=n(236),et=n.n($e),tt=n(509),nt=n(94),at=n(49),it=n.n(at),rt={position:"top-center",style:{backgroundColor:"rgb(46, 125, 50)",border:"0",color:"white",fontFamily:"Montserrat, Roboto",fontSize:"20px",textAlign:"center"},closeStyle:{color:"white",fontSize:"16px"}},ot=n(73),ct=n.n(ot);!function(e){e[e.TEXTINPUT=0]="TEXTINPUT",e[e.SELECT=1]="SELECT",e[e.SWITH=2]="SWITH",e[e.DATEPICKER=3]="DATEPICKER",e[e.COUNTRY=4]="COUNTRY",e[e.CURRENCY=5]="CURRENCY",e[e.DOCUMENT=6]="DOCUMENT",e[e.SUPPORT_DOCUMENT=7]="SUPPORT_DOCUMENT"}(Me||(Me={}));Me.TEXTINPUT,Me.TEXTINPUT,Me.TEXTINPUT,Me.TEXTINPUT,Me.SELECT,Me.TEXTINPUT,Me.SELECT,_.map((function(e){return{value:e.value,label:e.label}})),Me.SELECT,_.map((function(e){return{value:e.phone,label:e.phone}})),Me.TEXTINPUT,Me.TEXTINPUT,Me.SELECT,_.map((function(e){return{value:e.phone,label:e.phone}})),Me.TEXTINPUT,Me.TEXTINPUT,Me.DATEPICKER,Me.TEXTINPUT,Me.SELECT,_.map((function(e){return{value:e.value,label:e.label}})),Me.SELECT,_.map((function(e){return{value:e.label,label:e.label}})),Me.TEXTINPUT,Me.TEXTINPUT,Me.TEXTINPUT,Me.SWITH,Me.SELECT,Me.TEXTINPUT,Me.TEXTINPUT,Me.TEXTINPUT,Me.TEXTINPUT,Me.TEXTINPUT,Me.TEXTINPUT,Me.TEXTINPUT,Me.TEXTINPUT,Me.TEXTINPUT,Me.TEXTINPUT,Me.TEXTINPUT,Me.CURRENCY,Me.TEXTINPUT,Me.TEXTINPUT,Me.DATEPICKER,Me.SELECT,Me.SELECT,Me.TEXTINPUT,Me.DATEPICKER,Me.DATEPICKER,Me.DOCUMENT,Me.DOCUMENT;function st(e){!("Mobile"in e)||!("MobileInternationalDialCode"in e)||e.Mobile&&e.MobileInternationalDialCode||(delete e.Mobile,delete e.MobileInternationalDialCode),!("Telephone"in e)||!("TelephoneInternationalDialCode"in e)||e.Telephone&&e.TelephoneInternationalDialCode||(delete e.Telephone,delete e.TelephoneInternationalDialCode),!("HomeTelephone"in e)||!("HomeTelephoneInternationalDialCode"in e)||e.HomeTelephone&&e.HomeTelephoneInternationalDialCode||(delete e.HomeTelephone,delete e.HomeTelephoneInternationalDialCode),"Postcode"in e&&e.Postcode&&(e.Postcode=e.Postcode.toString()),"Mobile"in e&&e.Mobile&&(e.Mobile=e.Mobile.toString()),"MobileInternationalDialCode"in e&&e.MobileInternationalDialCode&&(e.MobileInternationalDialCode=parseInt(e.MobileInternationalDialCode)),"DateOfBirth"in e&&e.DateOfBirth&&e.DateOfBirth instanceof Date&&(e.DateOfBirth=e.DateOfBirth.toLocaleDateString("en-AU")),"DOB"in e&&e.DOB&&e.DOB instanceof Date&&(e.DOB=e.DOB.toLocaleDateString("en-AU")),"ExpiryDate"in e&&e.ExpiryDate&&e.ExpiryDate instanceof Date&&(e.ExpiryDate=e.ExpiryDate.toLocaleDateString("en-AU")),"IssueDate"in e&&e.IssueDate&&e.IssueDate instanceof Date&&(e.IssueDate=e.IssueDate.toLocaleDateString("en-AU"));for(var t=0,n=Object.keys(e);t1),disabled:d.isDisabled||!1,variant:"outlined",fullWidth:!0,id:d.key,name:d.key,label:"".concat(d.label).concat(d.isRequired?" *":""),value:b.values[d.key],onChange:b.handleChange,error:b.touched[d.key]&&Boolean(b.errors[d.key]),helperText:b.touched[d.key]&&b.errors[d.key],children:(null===(o=d.selectValues)||void 0===o?void 0:o.length)&&(null===(c=d.selectValues)||void 0===c?void 0:c.length)>1&&d.selectValues.map((function(e){return Object(f.jsx)(fe.a,{value:e.value,children:e.label},e.value)}))})]})},pn=_t.b({BankingType:_t.c().required("Payment Method is required"),BankIdentification:_t.c().when("BankingType",{is:function(e){return["2"].includes(e)},then:_t.c().required("Bank Identification is required")}),BranchCity:_t.c(),BranchIdentification:_t.c().when("BankingType",{is:function(e){return["1","2","3","5","6","7","10"].includes(e)},then:_t.c().required("Branch Identification is required")}),WalletProviderID:_t.c().when("BankingType",{is:function(e){return["4"].includes(e)},then:_t.c().required("Wallet Provider ID is required")}),AccountName:_t.c().max(120).when("BankingType",{is:function(e){return["4"].includes(e)},then:_t.c().required("Wallet Name is required"),otherwise:_t.c().required("Account Name is required")}),AccountNumber:_t.c().max(34).when("BankingType",{is:function(e){return["1","2","3","5"].includes(e)},then:_t.c().required("Account Number is required")}).when("BankingType",{is:function(e){return["4"].includes(e)},then:_t.c().required("Wallet Number is required")}),CurrencyCode:_t.c().matches(/^[A-Z]{3}$/,"Must be exactly 3 letter").required("Currency Code is required"),BankCountryCode:_t.c().matches(/^[A-Z]{3}$/,"Must be exactly 3 letter").required("Country is required")}),hn=function(e){var t,n,i=e.formValues,o=e.cb,c=e.receiverId,s=e.buttonText,l=r.a.useState(!1),u=Object(m.a)(l,2),d=u[0],b=u[1],h=r.a.useState(function(e){for(var t=[],n=0,a=Object.keys(e);n0&&!E.values.CurrencyCode&&E.setFieldValue("CurrencyCode",a[0].value)}(e)}),[E.values.BankCountryCode]),E.values.BankIdentification&&(t=Z.a.find(g,(function(e){return e.BankCode===E.values.BankIdentification}))),E.values.BranchIdentification&&(n=Z.a.find(D,(function(e){return e.BranchCode===E.values.BranchIdentification}))),Object(f.jsxs)("form",{onSubmit:E.handleSubmit,children:[Object(f.jsxs)(ce.a,{alignItems:"center",spacing:4,children:[Object(f.jsxs)(p.a,{container:!0,spacing:2,alignItems:"center",children:[x.map((function(e){return Object(f.jsx)(bn,{item:e,formik:E,validationSchema:pn},e.key)})),t?Object(f.jsxs)(Qt.a,{variant:"outlined",sx:{width:1,ml:2,my:2,p:2,bgcolor:"primary.light",fontSize:13,lineHeight:1.6},children:[Object(f.jsx)("b",{children:"Bank Name:"})," ",t.BankName," (",t.BankCode,")",Object(f.jsx)("br",{}),Object(f.jsx)("b",{children:"Address:"})," ",t.AddressLine1," ",t.City," ",t.State," ",t.Postcode,Object(f.jsx)("br",{}),n&&Object(f.jsxs)("span",{children:[Object(f.jsx)("b",{children:"Branch Name:"})," ",n.BranchName," (",n.BranchCode,")",Object(f.jsx)("br",{})]})]}):null]}),Object(f.jsx)(P.a,{size:"large",color:"primary",variant:"contained",sx:{width:.5},type:"submit",children:s||"Submit"})]}),Object(f.jsx)(Ze.a,{sx:{color:"#fff",zIndex:function(e){return e.zIndex.drawer+1}},open:d,children:Object(f.jsx)(be.a,{color:"inherit"})})]})},jn=n(508),mn=n(497),fn=n(468),xn=n(469),yn=n(470),vn=n(471),On=n(472),Cn=function(e){var t=Object(l.b)().logout,n=C();return Object(f.jsx)(Fe.a,{variant:"outlined",children:Object(f.jsxs)(mn.a,{children:[Object(f.jsxs)(fe.a,{component:u.b,to:"/".concat(n.affiliate.shortName),children:[Object(f.jsx)(xe.a,{children:Object(f.jsx)(fn.a,{fontSize:"small"})}),"Home"]}),Object(f.jsx)(j.a,{}),Object(f.jsxs)(fe.a,{component:u.b,to:"/".concat(n.affiliate.shortName,"/").concat(n.affiliate.type,"/profile"),selected:"profile"===e.selected,children:[Object(f.jsx)(xe.a,{children:Object(f.jsx)(xn.a,{fontSize:"small"})}),"Profile"]}),Object(f.jsx)(j.a,{}),Object(f.jsxs)(fe.a,{component:u.b,to:"/".concat(n.affiliate.shortName,"/").concat(n.affiliate.type,"/receivers"),selected:"receivers"===e.selected,children:[Object(f.jsx)(xe.a,{children:Object(f.jsx)(yn.a,{fontSize:"small"})}),"Receivers"]}),Object(f.jsx)(j.a,{}),Object(f.jsxs)(fe.a,{component:u.b,to:"/".concat(n.affiliate.shortName,"/").concat(n.affiliate.type,"/transactions"),selected:"transactions"===e.selected,children:[Object(f.jsx)(xe.a,{children:Object(f.jsx)(vn.a,{fontSize:"small"})}),"Transactions"]}),Object(f.jsx)(j.a,{}),Object(f.jsxs)(fe.a,{onClick:function(){return t({returnTo:"".concat(window.location.origin,"?affiliationShortName=").concat(n.affiliate.shortName)})},children:[Object(f.jsx)(xe.a,{children:Object(f.jsx)(On.a,{fontSize:"small"})}),"Logout"]})]})})},gn=n(96),Sn=n.n(gn),Nn={BankIdentification:{key:"BankIdentification",label:"Bank Name",type:Me.SELECT,width:12,selectValues:[],isHidden:!0},BranchIdentification:{key:"BranchIdentification",label:"Branch Name",type:Me.SELECT,width:8,selectValues:[],isHidden:!0},AccountName:{key:"AccountName",label:"Account Name",type:Me.TEXTINPUT,width:6,isRequired:!0},AccountNumber:{key:"AccountNumber",label:"Account Number",type:Me.TEXTINPUT,width:6,isRequired:!0},CurrencyCode:{key:"CurrencyCode",label:"Currency Code",type:Me.CURRENCY,width:6,isRequired:!0},BankCountryCode:{key:"BankCountryCode",label:"Country Code",type:Me.TEXTINPUT,width:6,isRequired:!0,isDisabled:!0},IsReceiverAccountActive:{key:"IsReceiverAccountActive",label:"Is Receiver Account Active",type:Me.SWITH,width:12},IFSC:{key:"IFSC",label:"IFSC",type:Me.TEXTINPUT,width:12},BankCode:{key:"BankCode",label:"Bank Code",type:Me.TEXTINPUT,width:6,isHidden:!0},SWIFT:{key:"SWIFT",label:"SWIFT",type:Me.TEXTINPUT,width:12},WalletProviderId:{key:"WalletProviderId",label:"Wallet Provider Id",type:Me.TEXTINPUT,width:12,isHidden:!0},IBAN:{key:"IBAN",label:"IBAN",type:Me.TEXTINPUT,width:12},CNAP:{key:"CNAP",label:"CNAP",type:Me.TEXTINPUT,width:12},RippleServiceCenterCode:{key:"RippleServiceCenterCode",label:"Ripple Service Center Code",type:Me.TEXTINPUT,width:12},PayoutPartnerCode:{key:"PayoutPartnerCode",label:"Payout Partner Code",type:Me.TEXTINPUT,width:12},BankBranchCode:{key:"BankBranchCode",label:"Bank Branch Code",type:Me.TEXTINPUT,width:6,isHidden:!0},BankingType:{key:"BankingType",label:"Payment Method",type:Me.SELECT,width:12,isRequired:!0,selectValues:[{label:"Bank Transfer",value:"2"},{label:"Transfer to Wallet",value:"4"}]},BranchCity:{key:"BranchCity",label:"City",type:Me.SELECT,width:4,selectValues:[],isHidden:!0}},In=_t.b({KaasiReceiverAccountId:_t.c(),BankingType:_t.c(),IsReceiverAccountActive:_t.a(),AccountName:_t.c().max(120).when("BankingType",{is:function(e){return["4"].includes(e)},then:_t.c().required("Wallet Name is required"),otherwise:_t.c().required("Account Name is required")}),AccountNumber:_t.c().max(34).when("BankingType",{is:function(e){return["1","2","3","5"].includes(e)},then:_t.c().required("Account Number is required")}).when("BankingType",{is:function(e){return["4"].includes(e)},then:_t.c().required("Wallet Number is required")}),CurrencyCode:_t.c().matches(/^[A-Z]{3}$/,"Must be exactly 3 letter").required("Currency Code is required"),IFSC:_t.c().max(50).when("BankingType",{is:function(e){return["1"].includes(e)},then:_t.c().required("IFSC is required")}),BankCode:_t.c().max(50).when("BankingType",{is:function(e){return["2"].includes(e)},then:_t.c().required("Bank Code is required")}),BankIdentification:_t.c().when("BankingType",{is:function(e){return["2"].includes(e)},then:_t.c().required("Bank Identification is required")}),BankBranchCode:_t.c().max(50).when("BankingType",{is:function(e){return["2"].includes(e)},then:_t.c().required("Branch Name is required")}),BranchIdentification:_t.c().max(50).when("BankingType",{is:function(e){return["2"].includes(e)},then:_t.c().required("Branch Name is required")}),SWIFT:_t.c().max(50).when("BankingType",{is:function(e){return["3"].includes(e)},then:_t.c().required("SWIFT Code is required")}),IBAN:_t.c().max(50).when("BankingType",{is:function(e){return["5"].includes(e)},then:_t.c().required("IBAN is required")}),WalletProviderId:_t.c().max(50).when("BankingType",{is:function(e){return["4"].includes(e)},then:_t.c().required("Wallet Provider Id is required")}),CNAP:_t.c().max(50).when("BankingType",{is:function(e){return["6"].includes(e)},then:_t.c().required("CNAP is required")}),RippleServiceCenterCode:_t.c().max(50).when("BankingType",{is:function(e){return["7"].includes(e)},then:_t.c().required("Ripple Service Center Code is required")}),PayoutPartnerCode:_t.c().max(50).when("BankingType",{is:function(e){return["10"].includes(e)},then:_t.c().required("Payout Partner Code is required")})}),Tn=function(e){var t=e.receiverAccount,n=e.cb,i=(e.receiverId,r.a.useState(!1)),o=Object(m.a)(i,2),c=o[0],s=o[1],l=C(),u=r.a.useState([]),d=Object(m.a)(u,2),b=d[0],h=d[1],j=r.a.useState([]),x=Object(m.a)(j,2),y=x[0],v=x[1],O={KaasiReceiverAccountId:Number(t.kaasiAccountID),BankCountryCode:t.bankCountryCode,CurrencyCode:t.currencyCode,BankingType:t.bankingType,BankIdentification:"",BranchCity:"",BranchIdentification:"",WalletProviderId:""};switch(t.bankingType){case"1":O.IFSC=t.branchIdentification;break;case"2":O.BankCode=t.bankIdentification,O.BankBranchCode=t.branchIdentification;break;case"3":O.SWIFT=t.branchIdentification;break;case"4":O.WalletProviderId=t.walletProviderId;break;case"5":O.IBAN=t.branchIdentification;break;case"6":O.CNAP=t.branchIdentification;break;case"7":O.RippleServiceCenterCode=t.branchIdentification;break;case"10":O.PayoutPartnerCode=t.branchIdentification}O.AccountName=t.accountName,O.AccountNumber=t.accountNumber,O.IsReceiverAccountActive=!0;var g,S,N=Object(Zt.a)({initialValues:O,validationSchema:In,onSubmit:function(){var e=Object(k.a)(T.a.mark((function e(t){var i;return T.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,s(!0),delete(i=Object(a.a)(Object(a.a)({},t),{},{BankCode:t.BankIdentification,BankBranchCode:t.BranchIdentification})).BankingType,delete i.BankIdentification,delete i.BranchIdentification,delete i.BranchCity,e.next=9,Mt(l.affiliate.affiliateId,i);case 9:n(),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(0),console.log(e.t0);case 15:return e.prev=15,s(!1),e.finish(15);case 18:case"end":return e.stop()}}),e,null,[[0,12,15,18]])})));return function(t){return e.apply(this,arguments)}}()}),I=r.a.useState(function(e){for(var t=[],n=0,a=Object.keys(e);n0&&!N.values.CurrencyCode&&N.setFieldValue("CurrencyCode",a[0].value)}(e)}),[N.values.BankCountryCode]),N.values.BankIdentification&&(g=Z.a.find(b,(function(e){return e.BankCode===N.values.BankIdentification}))),N.values.BranchIdentification&&(S=Z.a.find(y,(function(e){return e.BranchCode===N.values.BranchIdentification}))),Object(f.jsxs)("form",{onSubmit:N.handleSubmit,children:[Object(f.jsxs)(ce.a,{alignItems:"center",spacing:4,children:[Object(f.jsxs)(p.a,{container:!0,spacing:2,alignItems:"center",children:[A.map((function(e){return Object(f.jsx)(bn,{item:e,formik:N,validationSchema:In},e.key)})),g?Object(f.jsxs)(Qt.a,{variant:"outlined",sx:{width:1,ml:2,my:2,p:2,bgcolor:"primary.light",fontSize:13,lineHeight:1.6},children:[Object(f.jsx)("b",{children:"Bank Name:"})," ",g.BankName," (",g.BankCode,")",Object(f.jsx)("br",{}),Object(f.jsx)("b",{children:"Address:"})," ",g.AddressLine1," ",g.City," ",g.State," ",g.Postcode,Object(f.jsx)("br",{}),S&&Object(f.jsxs)("span",{children:[Object(f.jsx)("b",{children:"Branch Name:"})," ",S.BranchName," (",S.BranchCode,")",Object(f.jsx)("br",{})]})]}):null]}),Object(f.jsx)(P.a,{size:"large",color:"primary",variant:"contained",sx:{width:.5},type:"submit",children:"Submit"})]}),Object(f.jsx)(Ze.a,{sx:{color:"#fff",zIndex:function(e){return e.zIndex.drawer+1}},open:c,children:Object(f.jsx)(be.a,{color:"inherit"})})]})},kn={SenderID:0,ReceiverID:0,BankCountryCode:"",CurrencyCode:"",BankingType:"",BankIdentification:"",BranchCity:"",BranchIdentification:"",WalletProviderID:"",AccountName:"",AccountNumber:""},Dn=Object(l.c)((function(){var e=r.a.useState(kn),t=Object(m.a)(e,2),n=t[0],i=t[1],o=r.a.useState(!1),c=Object(m.a)(o,2),s=c[0],l=c[1],u=r.a.useState(!1),x=Object(m.a)(u,2),y=x[0],v=x[1],O=r.a.useState(!1),g=Object(m.a)(O,2),S=g[0],N=g[1],I=r.a.useState([]),D=Object(m.a)(I,2),w=D[0],B=D[1],R=r.a.useState(),L=Object(m.a)(R,2),U=L[0],q=L[1],F=C(),W=Object(d.g)(),G=W.receiverId,z=W.receiverName,H=W.countryCode;r.a.useEffect((function(){F.profile&&K()}),[F.profile]);var K=function(){var e=Object(k.a)(T.a.mark((function e(){var t;return T.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,N(!0),e.next=4,Rt(F.affiliate.affiliateId,G);case 4:t=e.sent,B(t.accounts),e.next=10;break;case 8:e.prev=8,e.t0=e.catch(0);case 10:return e.prev=10,N(!1),e.finish(10);case 13:case"end":return e.stop()}}),e,null,[[0,8,10,13]])})));return function(){return e.apply(this,arguments)}}(),V=function(){l(!1)},X=function(){v(!1)};return Object(f.jsx)(Ue,{children:Object(f.jsxs)(b.a,{maxWidth:"xl",sx:{p:3},children:[Object(f.jsxs)(p.a,{container:!0,spacing:5,justifyContent:"center",alignItems:"flex-start",children:[Object(f.jsx)(p.a,{item:!0,xs:2,sm:2,sx:{display:{xs:"none",sm:"flex"}},children:Object(f.jsx)(Cn,{selected:"receivers"})}),Object(f.jsxs)(p.a,{item:!0,xs:12,sm:10,children:[Object(f.jsxs)(ce.a,{direction:{xs:"column",sm:"row"},sx:{pb:2},alignItems:{xs:"flex-start",sm:"center"},children:[Object(f.jsx)(h.a,{variant:"h4",component:"div",children:"Payment Methods"}),Object(f.jsxs)(h.a,{variant:"subtitle1",component:"div",sx:{color:"#888",ml:{xs:0,sm:2}},children:["(",z,")"]})]}),Object(f.jsx)(ce.a,{direction:"row",justifyContent:{xs:"center",sm:"flex-end"},children:Object(f.jsx)(P.a,{variant:"outlined",startIcon:Object(f.jsx)(Sn.a,{}),onClick:function(){i(Object(a.a)(Object(a.a)({},kn),{},{BankCountryCode:H,AccountName:z})),l(!0)},children:"Add Payment Method"})}),S?Object(f.jsx)(he,{}):S||0!==w.length?w.map((function(e,t){return Object(f.jsx)(Qt.a,{variant:"outlined",sx:{my:2,pr:2},children:Object(f.jsx)(jn.a,{avatar:Object(f.jsx)(h.a,{component:"span",sx:{fontSize:{xs:16,sm:20}},children:re(e)}),action:Object(f.jsx)(pe.a,{sx:{display:"flex",mt:0},children:Object(f.jsx)(P.a,{variant:"text",onClick:function(){return function(e){var t=w[e];q(t),v(!0)}(t)},children:"Edit"})})})},e.kaasiAccountID)})):Object(f.jsx)(pe.a,{sx:{textAlign:"center",p:8},children:Object(f.jsx)(h.a,{sx:{color:"#666"},variant:"caption",component:"span",children:"No Receiver Found"})})]})]}),Object(f.jsxs)(A.a,{open:s,onClose:V,children:[Object(f.jsx)(tt.a,{children:Object(f.jsxs)(ce.a,{direction:"row",justifyContent:"space-between",children:[Object(f.jsx)(h.a,{variant:"h6",component:"span",sx:{fontWeight:"bold"},children:"Add Payment Method"}),Object(f.jsx)(we.a,{"aria-label":"close",color:"secondary",onClick:V,children:Object(f.jsx)(Je.a,{})})]})}),Object(f.jsx)(j.a,{}),Object(f.jsx)(E.a,{children:Object(f.jsx)(b.a,{disableGutters:!0,sx:{py:1,my:1},children:Object(f.jsx)(hn,{cb:function(e,t){M.b.success("Your information has been submitted.",{position:"top-right",autoClose:3e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!1,draggable:!1,progress:void 0}),l(!1),B(t)},formValues:n,receiverId:parseInt(G)})})})]}),U?Object(f.jsxs)(A.a,{open:y,onClose:X,children:[Object(f.jsx)(tt.a,{children:Object(f.jsxs)(ce.a,{direction:"row",justifyContent:"space-between",children:[Object(f.jsx)(h.a,{variant:"h6",component:"span",sx:{fontWeight:"bold"},children:"Update Payment Method"}),Object(f.jsx)(we.a,{"aria-label":"close",color:"secondary",onClick:X,children:Object(f.jsx)(Je.a,{})})]})}),Object(f.jsx)(j.a,{}),Object(f.jsx)(E.a,{children:Object(f.jsx)(b.a,{disableGutters:!0,sx:{py:1,my:1},children:Object(f.jsx)(Tn,{cb:function(){M.b.success("Your information has been submitted.",{position:"top-right",autoClose:3e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!1,draggable:!1,progress:void 0}),v(!1),K()},receiverAccount:U,receiverId:parseInt(G)})})})]}):null]})})}),{onRedirecting:function(){return Object(f.jsx)(he,{})}}),An=n(97),wn=n.n(An),En=n(98),Bn=n.n(En),Pn={Purpose:{label:"Purpose",key:"Purpose",type:Me.SELECT,width:12,selectValues:["Family Support","Personal Savings","Personal Travels & Tours","Repayment of Loans","Gift","Special Occasion","Medical Expenses","Investments","Goods Purchased","Salary Payment","Transfer to own account","Education-related student expenses","Utility Bills","Purchase of Residential Property","Offshore Contractor Payment","Other"].map((function(e){return{label:e,value:e}}))},SourceOfFunds:{key:"SourceOfFunds",label:"Source Of Funds",type:Me.TEXTINPUT,width:12,maxLength:50},DateOfTransaction:{key:"DateOfTransaction",label:"Date Of Transaction",type:Me.DATEPICKER,width:6},RouteToExternalBank:{key:"RouteToExternalBank",label:"Route To External Bank",type:Me.SELECT,width:12,selectValues:[{label:"DFCC",value:2},{label:"Seylan",value:4},{label:"Kotak-Mahindra",value:5},{label:"Commercial Bank",value:6},{label:"Bank Of Shanghai",value:7},{label:"Ripple",value:8}]},AmountLock:{key:"AmountLock",label:"Amount Lock",type:Me.SELECT,width:12,selectValues:[{label:"Fixed AUD",value:"Fixed AUD"},{label:"Fixed Foreign",value:"Fixed Foreign"}]},QuoteId:{label:"QuoteId",key:"Quote Id",type:Me.SELECT,width:12,selectValues:[]}},Rn={Purpose:"",SourceOfFunds:""},Ln=_t.b({Purpose:_t.c().max(250,"Maximum 250 letters").required("Purpose is required"),SourceOfFunds:_t.c().max(50,"Maximum 50 letters").required("Source Of Funds is required"),RouteToExternalBank:_t.c()}),Mn=function(e){var t=C(),n=r.a.useState(!1),a=Object(m.a)(n,2),i=a[0],o=a[1],c=r.a.useState(!1),s=Object(m.a)(c,2),l=s[0],u=s[1],d=r.a.useState([]),b=Object(m.a)(d,2),x=b[0],y=b[1],v=r.a.useState(),O=Object(m.a)(v,2),g=O[0],S=O[1],N=r.a.useState("Fixed AUD"),I=Object(m.a)(N,2),D=I[0],A=I[1],w=Number(e.transactionDetail.ServiceCharges)+Number(e.transactionDetail.SendingAmount),E=Object(Zt.a)({initialValues:{Purpose:"",SourceOfFunds:"",RouteToExternalBank:"",QuoteId:""},validationSchema:Ln,onSubmit:function(t){!i||g?e.cb(t.Purpose,t.SourceOfFunds):M.b.error("Please get quote.",{position:"top-right",autoClose:3e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!1,draggable:!1,progress:void 0})}});r.a.useEffect((function(){8===E.values.RouteToExternalBank&&o(!0)}),[E.values]);var B=function(){var n=Object(k.a)(T.a.mark((function n(){var a,i;return T.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,u(!0),n.next=4,Tt(t.affiliate.affiliateId,{CountryCode:e.transactionDetail.ReceivingCountryCode,CurrencyCode:e.transactionDetail.ReceivingCurrency,AmountLock:D,Amount:String(e.transactionDetail.SendingAmount)});case 4:a=n.sent,console.log(a.ExternalProviderQuotes),(i=a.ExternalProviderQuotes).length>0&&(y(i),S(i[0].QuoteId)),n.next=13;break;case 10:n.prev=10,n.t0=n.catch(0),console.log(n.t0);case 13:return n.prev=13,u(!1),n.finish(13);case 16:case"end":return n.stop()}}),n,null,[[0,10,13,16]])})));return function(){return n.apply(this,arguments)}}(),R=function(e){for(var t=[],n=0,a=Object.keys(e);n0&&Object(f.jsx)(p.a,{item:!0,xs:12,sm:12,children:Object(f.jsx)(rn.a,{size:"small",select:!0,variant:"outlined",fullWidth:!0,id:"quoteId",name:"quoteId",label:"Select quote",value:g||x[0].QuoteId,onChange:function(e){return S(e.target.value)},children:x.map((function(e){return Object(f.jsxs)(fe.a,{value:e.QuoteId,children:["Rate: ",e.Rate,"(",e.RateProvider,")"]},e.QuoteId)}))})}),Object(f.jsx)(j.a,{})]}),Object(f.jsx)(pe.a,{sx:{width:1,pt:3,display:"flex",justifyContent:"center"},children:Object(f.jsx)(P.a,{size:"large",color:"primary",variant:"contained",sx:{width:.5},type:"submit",children:"Submit"})})]})})]}),Object(f.jsx)(Ze.a,{sx:{color:"#fff",zIndex:function(e){return e.zIndex.drawer+1}},open:l,children:Object(f.jsx)(be.a,{color:"inherit"})})]})},Un=n(139),qn={AccountNumber:{key:"AccountNumber",label:"Account Number",type:Me.TEXTINPUT,width:6,maxLength:12},BSB:{key:"BSB",label:"BSB",type:Me.TEXTINPUT,width:6,maxLength:6},BankCode:{key:"BankCode",label:"Bank Code",type:Me.TEXTINPUT,width:6,maxLength:3},IndividualOrBusiness:{key:"IndividualOrBusiness",label:"Individual Or Business",type:Me.SELECT,width:6,selectValues:[{label:"Individual",value:"I"},{label:"Business",value:"B"}]},ABN:{key:"ABN",label:"ABN",type:Me.TEXTINPUT,width:6,maxLength:11},ACN:{key:"ACN",label:"ACN",type:Me.TEXTINPUT,width:6,maxLength:9},FirstName:{key:"FirstName",label:"Given Name(s)",type:Me.TEXTINPUT,width:6,maxLength:70,isRequired:!0,helpText:"Must match primary document name."},LastName:{key:"LastName",label:"LastName",type:Me.TEXTINPUT,width:6,maxLength:70,isRequired:!0,helpText:"Must match primary document name."},AddressLine1:{key:"AddressLine1",label:"Address",type:Me.TEXTINPUT,width:12,maxLength:140,isRequired:!0},Suburb:{key:"Suburb",label:"City/Suburb",type:Me.TEXTINPUT,width:6,maxLength:35},State:{key:"State",label:"State",type:Me.TEXTINPUT,width:6,maxLength:35},Postcode:{key:"Postcode",label:"Postcode",type:Me.TEXTINPUT,width:6,maxLength:4,minLength:4},Country:{key:"Country",label:"Country",type:Me.SELECT,width:6,selectValues:_.map((function(e){return{value:e.value,label:e.label}})),isRequired:!0},MobileInternationalDialCode:{key:"MobileInternationalDialCode",label:"Country Code",type:Me.SELECT,width:6,selectValues:_.map((function(e){return{value:e.phone,label:e.phone}}))},Mobile:{key:"Mobile",label:"Mobile",type:Me.TEXTINPUT,isNumberOnly:!0,isPhoneNumber:!0,width:6},EmailAddress:{key:"EmailAddress",label:"Email Address",type:Me.TEXTINPUT,width:12,maxLength:200},DateOfBirth:{key:"DateOfBirth",label:"Date Of Birth",type:Me.DATEPICKER,width:6},Occupation:{key:"Occupation",label:"Occupation",type:Me.TEXTINPUT,width:6,maxLength:150},Nationality:{key:"Nationality",label:"Nationality",type:Me.SELECT,width:6,selectValues:Un.map((function(e){return{value:e.Nationality,label:e.Nationality}}))},Relationship:{key:"Relationship",label:"Relationship",type:Me.TEXTINPUT,width:6,maxLength:100}},Fn=_t.b({FirstName:_t.c().required("First Name is required").matches(/^[a-zA-Z\s-]+$/,"Only allow alphabet letters, spaces and hyphens.").max(70,"Maximum 70 letters"),LastName:_t.c().required("Last Name is required").matches(/^[a-zA-Z\s-]+$/,"Only allow alphabet letters, spaces and hyphens.").max(70,"Maximum 70 letters"),AddressLine1:_t.c().required("Address is required").max(140,"Maximum 140 letters").matches(/^[a-zA-Z0-9\s-,/]+$/,"Only allow characters, spaces, hyphens, commas and forward slash."),Suburb:_t.c().max(35,"Maximum 35 letters").matches(/^[a-zA-Z0-9\s-]+$/,"Only allow alphabet letters, numbers, spaces and hyphens."),State:_t.c().max(35,"Maximum 35 letters").matches(/^[a-zA-Z\s-]+$/,"Only allow alphabet letters, spaces and hyphens."),Postcode:_t.c().max(15,"Maximum 15 letters").matches(/^[a-zA-Z0-9\s-/]+$/,"Only allow characters, spaces, hyphens and forward slash."),Country:_t.c().required("Country is required"),MobileInternationalDialCode:_t.c(),Mobile:_t.c().matches(/^[0-9]+$/,"Must be only digits").max(13,"Maximum 13 digits"),EmailAddress:_t.c().email("Enter a valid email").max(200,"Maximum 200 letters"),DateOfBirth:_t.c().nullable(),Occupation:_t.c(),Nationality:_t.c().max(200,"Maximum 200 letters"),Relationship:_t.c().max(100,"Maximum 100 letters")}),Wn=function(e){var t=e.formValues,n=e.cb,i=e.buttonText,o=r.a.useState(!1),c=Object(m.a)(o,2),s=c[0],l=c[1],u=C(),d=Object(Zt.a)({initialValues:t,validationSchema:Fn,onSubmit:function(){var e=Object(k.a)(T.a.mark((function e(t){var i,r,o,c,s,d;return T.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,l(!0),!t.kaasiReceiverID){e.next=11;break}return e.next=5,jt(u.affiliate.affiliateId,Object(a.a)(Object(a.a)({},t),{},{ReceiverID:t.kaasiReceiverID}));case 5:return e.next=7,Ot(u.affiliate.affiliateId,null===(i=u.profile)||void 0===i?void 0:i.ExSenderId);case 7:r=e.sent,n(t.AffiliateReceiverID,r.receivers),e.next=18;break;case 11:return e.next=13,pt(u.affiliate.affiliateId,Object(a.a)(Object(a.a)({},t),{},{AffiliateReceiverID:Object(_e.a)(),SenderID:parseInt(null===(o=u.profile)||void 0===o?void 0:o.ExSenderId)}));case 13:return s=e.sent,e.next=16,Ot(u.affiliate.affiliateId,null===(c=u.profile)||void 0===c?void 0:c.ExSenderId);case 16:d=e.sent,n(s.KAASIReceiverID,d.receivers);case 18:e.next=23;break;case 20:e.prev=20,e.t0=e.catch(0),console.log(e.t0);case 23:return e.prev=23,l(!1),e.finish(23);case 26:case"end":return e.stop()}}),e,null,[[0,20,23,26]])})));return function(t){return e.apply(this,arguments)}}()});r.a.useEffect((function(){var e;d.values.Country&&(d.values.MobileInternationalDialCode=null===(e=Z.a.find(_,(function(e){return e.value===d.values.Country})))||void 0===e?void 0:e.phone)}),[d.values]);var b=function(e){for(var t=[],n=0,i=Object.keys(e);n0&&(se(a[0]),$e(a[0].kaasiReceiverID)),e.next=12;break;case 10:e.prev=10,e.t0=e.catch(0);case 12:return e.prev=12,J(!1),e.finish(12);case 15:case"end":return e.stop()}}),e,null,[[0,10,12,15]])})));return function(){return e.apply(this,arguments)}}(),$e=function(){var e=Object(k.a)(T.a.mark((function e(t){var n,a;return T.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,he(!0),e.next=4,Rt(Ye.affiliate.affiliateId,String(t));case 4:n=e.sent,a=n.accounts,ye(a),a.length>0&&ge(a[0]),e.next=12;break;case 10:e.prev=10,e.t0=e.catch(0);case 12:return e.prev=12,he(!1),e.finish(12);case 15:case"end":return e.stop()}}),e,null,[[0,10,12,15]])})));return function(t){return e.apply(this,arguments)}}(),at=function(){y(!1)},ot=function(){var e=Object(k.a)(T.a.mark((function e(a,r){var s,l,u,d;return T.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,ze(!0),e.next=4,Nt(Ye.affiliate.affiliateId,{AffiliateTransactionReferenceID:Object(_e.a)(),SenderID:null===(s=Ye.profile)||void 0===s?void 0:s.ExSenderId,ReceiverID:String(oe.kaasiReceiverID),ReceiverAccountID:String(Ce.kaasiAccountID),Rate:String(t),SendingAmount:String(n),ServiceCharges:String(i),ReceivingForeignAmount:String(o),ReceivingCurrency:c,DateOfTransaction:dn()().format("DD/MM/YYYY"),SourceOfFunds:r,Purpose:a});case 4:l=e.sent,Te(l.KAASITransactionID),u={transactionId:l.KAASITransactionID,amount:n},Ye.profile&&(d=Ye.profile,u.senderFullName="".concat(d.FirstName," ").concat(d.LastName),u.senderEmail=d.EmailAddress),Xe(u),bt(),e.next=16;break;case 13:throw e.prev=13,e.t0=e.catch(0),e.t0;case 16:return e.prev=16,ze(!1),e.finish(16);case 19:case"end":return e.stop()}}),e,null,[[0,13,16,19]])})));return function(t,n){return e.apply(this,arguments)}}(),ct=function(){S(!1)},st=function(){w(!0)},lt=function(){w(!1)},ut=function(){M(!0)},dt=function(){M(!1),K(!0)},bt=function(){W(!0)},pt=function(){W(!1)},ht=function(){K(!1)};return Object(f.jsxs)(r.a.Fragment,{children:[Object(f.jsxs)(ce.a,{flexDirection:"row",justifyContent:"space-between",children:[Object(f.jsx)(h.a,{variant:"h6",component:"div",sx:{fontWeight:"bold",mb:1},children:"Select receiver:"}),Object(f.jsx)(P.a,{variant:"text",onClick:function(){S(!0)},children:"Add New"})]}),Object(f.jsxs)(Fe.a,{elevation:1,sx:{px:2,py:1,display:"flex",flexDirection:"column",alignItems:"center"},children:[Q&&Object(f.jsx)(be.a,{size:33,sx:{color:"#ccc"}}),!Q&&0===te.length&&Object(f.jsx)(pe.a,{sx:{textAlign:"center",p:0},children:Object(f.jsx)(h.a,{sx:{color:"#666"},variant:"caption",component:"span",children:"No Receiver Found"})}),!Q&&te.length>0&&oe&&Object(f.jsx)(We.a,{variant:"standard",fullWidth:!0,children:Object(f.jsx)(Ge.a,{disableUnderline:!0,value:oe.kaasiReceiverID,renderValue:function(){return Object(f.jsxs)(h.a,{variant:"body1",component:"span",sx:{px:1},children:["(",oe.country,")-",oe.firstName," ",oe.lastName]})},onChange:function(e){var t=e.target.value;if(t!==oe.kaasiReceiverID){var n=Z.a.find(te,(function(e){return e.kaasiReceiverID===t}));se(n),$e(n.kaasiReceiverID)}},children:te.map((function(e){return Object(f.jsxs)(fe.a,{value:e.kaasiReceiverID,children:["(",e.country,")-",e.firstName," ",e.lastName]},e.kaasiReceiverID)}))})})]}),oe&&Object(f.jsxs)(r.a.Fragment,{children:[Object(f.jsxs)(ce.a,{flexDirection:"row",justifyContent:"space-between",sx:{mt:2},children:[Object(f.jsx)(h.a,{variant:"h6",component:"div",sx:{fontWeight:"bold"},children:"Select payment method:"}),Object(f.jsx)(P.a,{variant:"text",onClick:st,children:"Add New"})]}),Object(f.jsxs)(Fe.a,{elevation:1,sx:{px:2,py:1,display:"flex",flexDirection:"column",alignItems:"center"},children:[de&&Object(f.jsx)(be.a,{size:33,sx:{color:"#ccc"}}),!de&&0===xe.length&&Object(f.jsx)(pe.a,{sx:{textAlign:"center",p:0},children:Object(f.jsx)(h.a,{sx:{color:"#666"},variant:"caption",component:"span",children:"No payment method found"})}),!de&&xe.length>0&&Ce&&Object(f.jsx)(We.a,{variant:"standard",fullWidth:!0,children:Object(f.jsx)(Ge.a,{disableUnderline:!0,value:Ce.kaasiAccountID,renderValue:function(){return Object(f.jsx)(h.a,{variant:"body1",component:"span",sx:{px:1},children:re(Ce)})},onChange:function(e){var t=e.target.value,n=Z.a.find(xe,(function(e){return e.kaasiAccountID===String(t)}));ge(n)},children:xe.map((function(e){return Object(f.jsx)(fe.a,{value:e.kaasiAccountID,children:re(e)},e.kaasiAccountID)}))})})]})]}),Q||de?null:Object(f.jsx)(P.a,{sx:{textTransform:"none",fontSize:20,fontWeight:"bold",lineHeight:2,width:1,mt:4},disableElevation:!0,variant:"contained",onClick:function(){oe?Ce?y(!0):X("Please select payment method",2e3):X("Please select receiver",2e3)},children:"Confirm Payment"}),Object(f.jsxs)(A.a,{open:x,onClose:at,children:[Object(f.jsx)(tt.a,{children:Object(f.jsxs)(ce.a,{direction:"row",justifyContent:"space-between",children:[Object(f.jsx)(h.a,{variant:"h6",component:"span",sx:{fontWeight:"bold"},children:"Confirm Payment"}),Object(f.jsx)(we.a,{"aria-label":"close",color:"secondary",onClick:at,children:Object(f.jsx)(Je.a,{})})]})}),Object(f.jsx)(j.a,{}),Object(f.jsx)(E.a,{children:Object(f.jsx)(b.a,{disableGutters:!0,sx:{py:1},children:Object(f.jsx)(Mn,{transactionDetail:{Rate:t,SendingAmount:n,ServiceCharges:i,ReceivingForeignAmount:o,ReceivingCurrency:c,SendingCurrency:s,ReceivingCountryCode:l},cb:function(e,t){Le(e),Ee(t),y(!1),n>Ye.affiliate.threshold?ut():ot(e,t)},receiver:oe,receiverAccount:Ce})})})]}),Object(f.jsxs)(A.a,{open:g,onClose:ct,children:[Object(f.jsx)(tt.a,{children:Object(f.jsxs)(ce.a,{direction:"row",justifyContent:"space-between",children:[Object(f.jsx)(h.a,{variant:"h6",component:"span",sx:{fontWeight:"bold"},children:"Add New Receiver"}),Object(f.jsx)(we.a,{"aria-label":"close",color:"secondary",onClick:ct,children:Object(f.jsx)(Je.a,{})})]})}),Object(f.jsx)(j.a,{}),Object(f.jsx)(E.a,{children:Object(f.jsx)(b.a,{disableGutters:!0,sx:{py:1,my:1},children:Object(f.jsx)(Wn,{cb:function(e,t){ne(t),se(Z.a.find(t,(function(t){return String(t.kaasiReceiverID)===e}))),ye([]),ge(void 0),S(!1),st()},formValues:Gn,buttonText:"Next"})})})]}),oe&&Object(f.jsxs)(A.a,{open:D,onClose:lt,children:[Object(f.jsx)(tt.a,{children:Object(f.jsxs)(ce.a,{direction:"row",justifyContent:"space-between",children:[Object(f.jsx)(h.a,{variant:"h6",component:"span",sx:{fontWeight:"bold"},children:"Add Payment Method"}),Object(f.jsx)(we.a,{"aria-label":"close",color:"secondary",onClick:lt,children:Object(f.jsx)(Je.a,{})})]})}),Object(f.jsx)(j.a,{}),Object(f.jsx)(E.a,{children:Object(f.jsx)(b.a,{disableGutters:!0,sx:{py:1,my:1},children:Object(f.jsx)(hn,{cb:function(e,t){ye(t),ge(Z.a.find(t,(function(t){return String(t.kaasiAccountID)===e}))),w(!1)},formValues:Object(a.a)(Object(a.a)({},kn),{},{BankCountryCode:oe.country,CurrencyCode:c,AccountName:"".concat(oe.firstName," ").concat(oe.lastName)}),receiverId:oe.kaasiReceiverID,buttonText:"Next"})})})]}),Object(f.jsxs)(A.a,{open:L,onClose:dt,children:[Object(f.jsx)(tt.a,{children:Object(f.jsxs)(ce.a,{direction:"row",justifyContent:"space-between",children:[Object(f.jsx)(h.a,{variant:"h6",component:"span",sx:{fontWeight:"bold"},children:"Upload Supporting Document"}),Object(f.jsx)(we.a,{"aria-label":"close",color:"secondary",onClick:dt,children:Object(f.jsx)(Je.a,{})})]})}),Object(f.jsx)(j.a,{}),Object(f.jsxs)(E.a,{children:[Object(f.jsx)(h.a,{variant:"caption",component:"span",children:"Please upload proof of funds to support your transaction."}),Object(f.jsx)(b.a,{disableGutters:!0,sx:{py:1,my:1},children:Object(f.jsx)(Xn,{cb:function(){M(!1),ot(Re,Ae)},transactionId:parseInt(Ie)})})]})]}),Object(f.jsxs)(A.a,{open:F,onClose:pt,children:[Object(f.jsx)(tt.a,{children:Object(f.jsxs)(ce.a,{direction:"row",justifyContent:"space-between",children:[Object(f.jsx)(h.a,{variant:"h6",component:"span",sx:{fontWeight:"bold"},children:"Transaction Submitted"}),Object(f.jsx)(we.a,{"aria-label":"close",color:"secondary",onClick:pt,children:Object(f.jsx)(Je.a,{})})]})}),Object(f.jsx)(j.a,{}),Object(f.jsxs)(E.a,{sx:{textAlign:"center",minWidth:500},children:[Object(f.jsx)(it.a,{sx:{color:"#60C637",fontSize:100,m:3}}),Object(f.jsxs)(h.a,{variant:"h6",sx:{fontSize:20},component:"div",children:["Your order has been received. ",Object(f.jsx)("br",{}),"Thank you!"]}),Object(f.jsx)(j.a,{sx:{my:1,mb:1}}),Object(f.jsx)(h.a,{variant:"body1",component:"div",sx:{mt:1,mb:2},children:"Please Deposit AUD funds into the below bank"}),Object(f.jsxs)(p.a,{container:!0,spacing:1,sx:{textAlign:"left",pl:3,ml:0,pb:1,width:500,bgcolor:"primary.light",border:"2px solid",borderColor:"primary.light",borderRadius:2},children:[Object(f.jsx)(p.a,{item:!0,xs:12,children:Object(f.jsx)(h.a,{variant:"h6",component:"div",sx:{fontWeight:"bold"},children:"BANK DEPOSIT"})}),Object(f.jsx)(p.a,{item:!0,xs:4,children:Object(f.jsx)(h.a,{variant:"body1",component:"div",children:"PAYID:"})}),Object(f.jsx)(p.a,{item:!0,xs:7,children:Object(f.jsx)(h.a,{variant:"body1",component:"div",sx:{textAlign:"right"},children:Ye.affiliate.bankDetail.payId})}),Object(f.jsx)(p.a,{item:!0,xs:11,children:Object(f.jsx)(h.a,{variant:"body2",component:"div",sx:{fontWeight:"bold",fontStyle:"italic"},children:"OR"})}),Object(f.jsx)(p.a,{item:!0,xs:4,children:Object(f.jsx)(h.a,{variant:"body1",component:"div",children:"BSB:"})}),Object(f.jsx)(p.a,{item:!0,xs:7,children:Object(f.jsx)(h.a,{variant:"body1",component:"div",sx:{textAlign:"right"},children:Ye.affiliate.bankDetail.bsb})}),Object(f.jsx)(p.a,{item:!0,xs:4,children:Object(f.jsx)(h.a,{variant:"body1",component:"div",children:"ACCOUNT:"})}),Object(f.jsx)(p.a,{item:!0,xs:7,children:Object(f.jsx)(h.a,{variant:"body1",component:"div",sx:{textAlign:"right"},children:Ye.affiliate.bankDetail.accountNumber})}),Object(f.jsx)(p.a,{item:!0,xs:4,children:Object(f.jsx)(h.a,{variant:"body1",component:"div",children:"REF:"})}),Object(f.jsx)(p.a,{item:!0,xs:7,children:Object(f.jsx)(h.a,{variant:"body1",component:"div",sx:{textAlign:"right"},children:Ie})}),Object(f.jsx)(p.a,{item:!0,xs:11,children:Object(f.jsxs)(h.a,{variant:"body2",component:"div",sx:{fontWeight:"bold",fontStyle:"italic"},children:["Please ensure that the following transaction number ",Ie," is entered as part of your bank deposit description. Failure to enter this may result in the transaction being rejected."]})})]}),Object(f.jsx)(Qn,{transaction:Ve}),Object(f.jsx)(b.a,{disableGutters:!0,sx:{py:1,my:1,mt:2},children:Object(f.jsx)(P.a,{variant:"contained",onClick:pt,children:"Close"})})]})]}),Object(f.jsxs)(A.a,{open:H,onClose:ht,children:[Object(f.jsx)(tt.a,{children:Object(f.jsxs)(ce.a,{direction:"row",justifyContent:"space-between",children:[Object(f.jsx)(h.a,{variant:"h6",component:"span",sx:{fontWeight:"bold"},children:"Transaction Incomplete"}),Object(f.jsx)(we.a,{"aria-label":"close",color:"secondary",onClick:ht,children:Object(f.jsx)(Je.a,{})})]})}),Object(f.jsx)(j.a,{}),Object(f.jsxs)(E.a,{sx:{textAlign:"center",minWidth:500},children:[Object(f.jsx)(et.a,{sx:{color:"#ff9800",fontSize:100,m:3}}),Object(f.jsx)(h.a,{variant:"h6",sx:{fontSize:24},component:"div",children:"Transaction - Incomplete"}),Object(f.jsx)(h.a,{variant:"body1",component:"div",children:"Your transaction detail have not been submitted successfully. Please try again if you wish to go ahead with the transfer."}),Object(f.jsx)(b.a,{disableGutters:!0,sx:{py:1,my:1,mt:2},children:Object(f.jsx)(P.a,{variant:"contained",onClick:ht,children:"Close"})})]})]}),Object(f.jsx)(Ze.a,{sx:{color:"#fff",zIndex:function(e){return e.zIndex.drawer+1}},open:qe,children:Object(f.jsx)(be.a,{color:"inherit"})})]})};function $n(e,t){return ea.apply(this,arguments)}function ea(){return(ea=Object(k.a)(T.a.mark((function e(t,n){var a;return T.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,K({url:"/createSender/".concat(t),method:"POST",data:st(n)});case 2:if("DUPLICATE"!==(a=e.sent).Status){e.next=6;break}throw M.b.warn("Oops! Duplicate sender found",{position:"top-right",autoClose:4e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!1,draggable:!1,progress:void 0}),a;case 6:return e.abrupt("return",a);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ta(e,t){return na.apply(this,arguments)}function na(){return(na=Object(k.a)(T.a.mark((function e(t,n){var a;return T.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,K({url:"/inReceiver/".concat(t),method:"POST",data:st(n)});case 2:if("DUPLICATE"!==(a=e.sent).Status){e.next=6;break}throw M.b.warn("Oops! Duplicate receiver found",{position:"top-right",autoClose:4e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!1,draggable:!1,progress:void 0}),a;case 6:return e.abrupt("return",a);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function aa(e,t){return ia.apply(this,arguments)}function ia(){return(ia=Object(k.a)(T.a.mark((function e(t,n){return T.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",K({url:"/listReceivers/".concat(t,"?senderId=").concat(n),method:"GET"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ra(e,t){return oa.apply(this,arguments)}function oa(){return(oa=Object(k.a)(T.a.mark((function e(t,n){return T.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",K({url:"/inboundCreateTransaction/".concat(t),method:"POST",data:st(n)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ca(e,t){return sa.apply(this,arguments)}function sa(){return(sa=Object(k.a)(T.a.mark((function e(t,n){return T.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",K({url:"/inTransactions/".concat(t,"?").concat(Object(ot.stringify)(n)),method:"GET"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function la(e,t){return ua.apply(this,arguments)}function ua(){return(ua=Object(k.a)(T.a.mark((function e(t,n){return T.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",K({url:"/inboundGetTransactionDetails/".concat(t,"/transaction/").concat(n),method:"GET"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var da=_t.b({Purpose:_t.c().max(250,"Maximum 250 letters").required("Purpose is required")}),ba=function(e){var t=C(),n=r.a.useState(!1),i=Object(m.a)(n,2),o=i[0],c=i[1],s=Object(Zt.a)({initialValues:{Purpose:""},validationSchema:da,onSubmit:function(){var n=Object(k.a)(T.a.mark((function n(i){var r,o;return T.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,c(!0),n.next=4,ra(t.affiliate.affiliateId,Object(a.a)(Object(a.a)({},i),{},{AffiliateTransactionID:Object(_e.a)(),SenderID:parseInt(null===(r=t.profile)||void 0===r?void 0:r.ExSenderId),ReceiverID:e.receiver.kaasiReceiverID,DollarAmount:Number(e.DollarAmount),DateOfTransaction:(new Date).toLocaleDateString("en-AU")}));case 4:o=n.sent,e.cb&&e.cb(o.TransactionID),n.next=11;break;case 8:n.prev=8,n.t0=n.catch(0),console.log(n.t0);case 11:return n.prev=11,c(!1),n.finish(11);case 14:case"end":return n.stop()}}),n,null,[[0,8,11,14]])})));return function(e){return n.apply(this,arguments)}}()});return Object(f.jsxs)(r.a.Fragment,{children:[Object(f.jsxs)("form",{onSubmit:s.handleSubmit,children:[Object(f.jsx)(ce.a,{direction:"column",justifyContent:"center",alignItems:"flex-start",spacing:1,children:Object(f.jsx)(ce.a,{direction:{xs:"column",sm:"row"},alignItems:"center",justifyContent:"center",sx:{pb:1},children:Object(f.jsxs)(h.a,{variant:"h4",component:"span",sx:{fontWeight:"bold",fontSize:29},children:["Amount: ",ne(e.DollarAmount)]})})}),Object(f.jsx)(j.a,{sx:{py:1,minWidth:300}}),Object(f.jsxs)(ce.a,{direction:"column",justifyContent:"center",alignItems:"flex-start",spacing:1,children:[Object(f.jsx)(h.a,{variant:"h6",component:"div",sx:{mt:1},children:"Send To"}),Object(f.jsxs)(h.a,{color:"#777",variant:"body2",component:"div",children:["Name: ",e.receiver.firstName," ",e.receiver.lastName]}),Object(f.jsxs)(h.a,{color:"#777",variant:"body2",component:"div",children:["Account: ",e.receiver.metaData.BankCode,"-",e.receiver.metaData.AccountNumber]})]}),Object(f.jsx)(j.a,{sx:{py:1,mb:2}}),Object(f.jsxs)(ce.a,{direction:"column",justifyContent:"center",alignItems:"center",spacing:2,children:[Object(f.jsx)(rn.a,{size:"small",inputProps:{maxLength:50},fullWidth:!0,id:"Purpose",name:"Purpose",label:"Purpose",value:s.values.Purpose,required:!0,onChange:s.handleChange,error:s.touched.Purpose&&Boolean(s.errors.Purpose),helperText:s.touched.Purpose&&s.errors.Purpose}),Object(f.jsx)(pe.a,{sx:{width:1,pt:2,display:"flex",justifyContent:"center"},children:Object(f.jsx)(P.a,{size:"large",color:"primary",variant:"contained",sx:{width:.5},type:"submit",children:"Submit"})})]})]}),Object(f.jsx)(Ze.a,{sx:{color:"#fff",zIndex:function(e){return e.zIndex.drawer+1}},open:o,children:Object(f.jsx)(be.a,{color:"inherit"})})]})},pa={AccountNumber:{key:"AccountNumber",label:"Account Number",type:Me.TEXTINPUT,width:6,maxLength:12,isRequired:!0},BSB:{key:"BSB",label:"BSB",type:Me.TEXTINPUT,width:6,maxLength:6,isRequired:!0},BankCode:{key:"BankCode",label:"Bank Code",type:Me.TEXTINPUT,width:6,maxLength:3,isRequired:!0},IndividualOrBusiness:{key:"IndividualOrBusiness",label:"Individual Or Business",type:Me.SELECT,width:6,selectValues:[{label:"Individual",value:"I"},{label:"Business",value:"B"}],isRequired:!0},ABN:{key:"ABN",label:"ABN",type:Me.TEXTINPUT,width:6,maxLength:11,isHidden:!0},ACN:{key:"ACN",label:"ACN",type:Me.TEXTINPUT,width:6,maxLength:9,isHidden:!0},FullName:{key:"FullName",label:"Full Name",type:Me.TEXTINPUT,width:12,maxLength:140,isRequired:!0},AddressLine1:{key:"AddressLine1",label:"Address",type:Me.TEXTINPUT,width:12,maxLength:140,isRequired:!0},Suburb:{key:"Suburb",label:"Suburb",type:Me.TEXTINPUT,width:6,maxLength:35,isRequired:!0},State:{key:"State",label:"State",type:Me.SELECT,width:3,selectValues:$,isRequired:!0},Postcode:{key:"Postcode",label:"Postcode",type:Me.TEXTINPUT,width:3,maxLength:4,minLength:4,isRequired:!0},Country:{key:"Country",label:"Country",type:Me.SELECT,width:6,selectValues:_.map((function(e){return{value:e.value,label:e.label}})),isRequired:!0},MobileInternationalDialCode:{key:"MobileInternationalDialCode",label:"Country Code",type:Me.SELECT,width:2,selectValues:_.map((function(e){return{value:e.phone,label:e.phone}}))},Mobile:{key:"Mobile",label:"Mobile",type:Me.TEXTINPUT,isNumberOnly:!0,isPhoneNumber:!0,width:4},EmailAddress:{key:"EmailAddress",label:"Email Address",type:Me.TEXTINPUT,width:12,maxLength:200},DOB:{key:"DOB",label:"Date Of Birth",type:Me.DATEPICKER,width:6},Occupation:{key:"Occupation",label:"Occupation",type:Me.TEXTINPUT,width:6,maxLength:150},AKA:{key:"AKA",label:"AKA",type:Me.TEXTINPUT,width:6,maxLength:140}},ha=_t.b({FullName:_t.c().required("Full Name is required").matches(/^[a-zA-Z\s-']+$/,"Only contain letters, spaces, apostrophes and hyphens.").max(140,"Maximum 140 letters"),AddressLine1:_t.c().required("Address is required").max(140,"Maximum 140 letters").matches(/^[a-zA-Z0-9\s-',/]+$/,"Only contain letters, numbers, spaces, apostrophes, hyphens, commas and forward slashes."),Suburb:_t.c().required("Suburb is required").max(35,"Maximum 35 letters").matches(/^[a-zA-Z\s-']+$/,"Only contain letters, spaces, apostrophes and hyphens."),State:_t.c().required("State is required"),Postcode:_t.c().matches(/^[0-9]{4}$/,"Must be exactly 4 digits").required("Postcode is required"),Country:_t.c().required("Country is required"),MobileInternationalDialCode:_t.c(),Mobile:_t.c().matches(/^[0-9]+$/,"Must be only digits").min(9,"Minimum 9 digits").max(10,"Maximum 10 digits"),EmailAddress:_t.c().email("Enter a valid email").max(200,"Maximum 200 letters"),DOB:_t.c().nullable(),Occupation:_t.c(),AKA:_t.c(),ABN:_t.c().matches(/^[0-9]+$/,"Must be only digits").max(11,"Maximum 11 digits").when("IndividualOrBusiness",{is:function(e){return"B"===e},then:_t.c().required("ABN is required")}),ACN:_t.c().matches(/^[0-9]+$/,"Must be only digits").max(9,"Maximum 9 digits"),BankCode:_t.c().required("Bank Code is required").max(3,"Maximum 3 letters"),BSB:_t.c().matches(/^[0-9]+$/,"Must be only digits").required("BSB is required").max(6,"Maximum 6 digits"),AccountNumber:_t.c().matches(/^[0-9]+$/,"Must be only digits").required("Account Number is required").min(6,"Minimum 6 digits").max(12,"Maximum 12 digits"),IndividualOrBusiness:_t.c().required("Individual Or Business is required")}),ja=function(e){var t=e.formValues,n=e.cb,i=e.buttonText,o=r.a.useState(function(e){for(var t=[],n=0,i=Object.keys(e);n0&&q(a[0]),e.next=12;break;case 10:e.prev=10,e.t0=e.catch(0);case 12:return e.prev=12,I(!1),e.finish(12);case 15:case"end":return e.stop()}}),e,null,[[0,10,12,15]])})));return function(){return e.apply(this,arguments)}}(),V=function(){i(!1)},X=function(){l(!1)},Y=function(){y(!0)},_=function(){y(!1)};return Object(f.jsxs)(r.a.Fragment,{children:[Object(f.jsxs)(ce.a,{flexDirection:"row",justifyContent:"space-between",children:[Object(f.jsx)(h.a,{variant:"h6",component:"div",sx:{fontWeight:"bold",mb:1},children:"Select receiver:"}),Object(f.jsx)(P.a,{variant:"text",onClick:function(){l(!0)},children:"Add New"})]}),Object(f.jsxs)(Fe.a,{elevation:1,sx:{px:2,py:1,display:"flex",flexDirection:"column",alignItems:"center"},children:[N&&Object(f.jsx)(be.a,{size:33,sx:{color:"#ccc"}}),!N&&0===B.length&&Object(f.jsx)(pe.a,{sx:{textAlign:"center",p:0},children:Object(f.jsx)(h.a,{sx:{color:"#666"},variant:"caption",component:"span",children:"No Receiver Found"})}),!N&&B.length>0&&U&&Object(f.jsx)(We.a,{variant:"standard",fullWidth:!0,children:Object(f.jsx)(Ge.a,{disableUnderline:!0,value:U.kaasiReceiverID,renderValue:function(){return Object(f.jsxs)(h.a,{variant:"body1",component:"span",sx:{px:1},children:["(",U.country,")-",U.firstName," ",U.lastName]})},onChange:function(e){var t=e.target.value,n=Z.a.find(B,(function(e){return e.kaasiReceiverID===t}));q(n)},children:B.map((function(e){return Object(f.jsxs)(fe.a,{value:e.kaasiReceiverID,children:["(",e.country,")-",e.firstName," ",e.lastName]},e.kaasiReceiverID)}))})})]}),!N&&Object(f.jsx)(P.a,{sx:{textTransform:"none",fontSize:20,fontWeight:"bold",lineHeight:2,width:1,mt:4},disableElevation:!0,variant:"contained",onClick:function(){U?i(!0):O("Please select receiver",2e3)},children:"Confirm Payment"}),Object(f.jsxs)(A.a,{open:a,onClose:V,children:[Object(f.jsx)(tt.a,{children:Object(f.jsxs)(ce.a,{direction:"row",justifyContent:"space-between",children:[Object(f.jsx)(h.a,{variant:"h6",component:"span",sx:{fontWeight:"bold"},children:"Confirm Payment"}),Object(f.jsx)(we.a,{"aria-label":"close",color:"secondary",onClick:V,children:Object(f.jsx)(Je.a,{})})]})}),Object(f.jsx)(j.a,{}),Object(f.jsx)(E.a,{children:Object(f.jsx)(b.a,{disableGutters:!0,sx:{py:1},children:Object(f.jsx)(ba,{cb:function(e){i(!1),z(e),Y()},DollarAmount:e.DollarAmount,receiver:U})})})]}),Object(f.jsxs)(A.a,{open:s,onClose:X,children:[Object(f.jsx)(tt.a,{children:Object(f.jsxs)(ce.a,{direction:"row",justifyContent:"space-between",children:[Object(f.jsx)(h.a,{variant:"h6",component:"span",sx:{fontWeight:"bold"},children:"New Receiver"}),Object(f.jsx)(we.a,{"aria-label":"close",color:"secondary",onClick:X,children:Object(f.jsx)(Je.a,{})})]})}),Object(f.jsx)(j.a,{}),Object(f.jsx)(E.a,{children:Object(f.jsx)(b.a,{disableGutters:!0,sx:{py:1,my:1},children:Object(f.jsx)(ja,{cb:function(e,t){R(t),q(Z.a.find(t,(function(t){return String(t.kaasiReceiverID)===e}))),l(!1)},formValues:ma,buttonText:"Next"})})})]}),Object(f.jsxs)(A.a,{open:x,onClose:_,children:[Object(f.jsx)(tt.a,{children:Object(f.jsxs)(ce.a,{direction:"row",justifyContent:"space-between",children:[Object(f.jsx)(h.a,{variant:"h6",component:"span",sx:{fontWeight:"bold"},children:"Transaction Submitted"}),Object(f.jsx)(we.a,{"aria-label":"close",color:"secondary",onClick:_,children:Object(f.jsx)(Je.a,{})})]})}),Object(f.jsx)(j.a,{}),Object(f.jsxs)(E.a,{sx:{textAlign:"center",minWidth:500},children:[Object(f.jsx)(it.a,{sx:{color:"#60C637",fontSize:100,m:3}}),Object(f.jsx)(h.a,{variant:"h6",sx:{fontSize:24},component:"div",children:"Thank you for your payment."}),Object(f.jsx)(h.a,{variant:"body1",component:"div",children:"Please Deposit funds into the below bank"}),Object(f.jsx)(j.a,{sx:{my:1}}),Object(f.jsxs)(p.a,{container:!0,spacing:1,sx:{textAlign:"left",pl:20},children:[Object(f.jsx)(p.a,{item:!0,xs:4,children:Object(f.jsx)(h.a,{variant:"body1",component:"div",children:"PAYID:"})}),Object(f.jsx)(p.a,{item:!0,xs:8,children:Object(f.jsx)(h.a,{variant:"body1",component:"div",children:H.affiliate.bankDetail.payId})}),Object(f.jsx)(p.a,{item:!0,xs:4,children:Object(f.jsx)(h.a,{variant:"body1",component:"div",children:"BSB:"})}),Object(f.jsx)(p.a,{item:!0,xs:8,children:Object(f.jsx)(h.a,{variant:"body1",component:"div",children:H.affiliate.bankDetail.bsb})}),Object(f.jsx)(p.a,{item:!0,xs:4,children:Object(f.jsx)(h.a,{variant:"body1",component:"div",children:"ACCOUNT:"})}),Object(f.jsx)(p.a,{item:!0,xs:8,children:Object(f.jsx)(h.a,{variant:"body1",component:"div",children:H.affiliate.bankDetail.accountNumber})}),Object(f.jsx)(p.a,{item:!0,xs:4,children:Object(f.jsx)(h.a,{variant:"body1",component:"div",children:"REF:"})}),Object(f.jsx)(p.a,{item:!0,xs:8,children:Object(f.jsx)(h.a,{variant:"body1",component:"div",children:G})})]}),Object(f.jsx)(b.a,{disableGutters:!0,sx:{py:1,my:1,mt:2},children:Object(f.jsx)(P.a,{variant:"contained",onClick:_,children:"Close"})})]})]})]})},ya=n(175),va=function(e){for(var t=[],n=0;n1&&void 0!==o[1])||o[1],"inbound"!==e.affiliate.type){t.next=4;break}return M.b.warn("Need implement of inbound affiliate quote api.",{position:"top-right",autoClose:3e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!1,draggable:!1,progress:void 0}),t.abrupt("return",{Rate:1,Fee:0});case 4:return a&&fe(!0),t.next=7,Dt(e.affiliate.affiliateId,n);case 7:return i=t.sent,r=i.Result,ae(r.Rate),se(r.Fee),a&&fe(!1),t.abrupt("return",r);case 13:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();return Object(f.jsxs)(b.a,{maxWidth:!1,disableGutters:!0,sx:{py:{xs:2,sm:4},bgcolor:"primary.light"},children:[Object(f.jsx)(b.a,{maxWidth:"xl",disableGutters:!0,sx:{px:{xs:2,sm:6}},children:Object(f.jsxs)(ce.a,{direction:"column",justifyContent:"center",alignItems:"center",spacing:1,children:[Object(f.jsx)(h.a,{component:"div",sx:{py:{xs:2,sm:3},fontWeight:"bold",fontSize:{xs:34,sm:48},textAlign:"center"},children:e.affiliate.headline}),de?Object(f.jsx)(be.a,{size:33,sx:{color:"#ccc"}}):Object(f.jsxs)(r.a.Fragment,{children:[Object(f.jsx)(D.a,{sx:{flexGrow:1},children:Object(f.jsxs)(p.a,{sx:{pt:0,pb:4},container:!0,spacing:4,justifyContent:"center",alignItems:"center",children:[Object(f.jsxs)(p.a,{item:!0,xs:12,lg:6,children:[Object(f.jsx)(h.a,{variant:"subtitle1",component:"div",sx:{pb:1},children:"You send"}),Object(f.jsx)(Ye,{counties:j,country:I,amount:X,currency:B,changeCountry:ye,changeAmount:function(e){Y(e),$(Oa(e*ne,2))},changeCurrency:function(){return null}})]}),Object(f.jsxs)(p.a,{item:!0,xs:12,lg:6,children:[Object(f.jsx)(h.a,{variant:"subtitle1",component:"div",sx:{pb:1},children:"They get"}),Object(f.jsx)(Ye,{counties:O,country:q,amount:J,currency:z,changeCountry:ve,changeAmount:function(e){$(e),ne>0&&Y(Oa(e/ne,2))},changeCurrency:Oe})]})]})}),Object(f.jsxs)(h.a,{variant:"body1",component:"div",children:["Exchange Rate: 1.00 ",B," = ",ne," ",z]}),Object(f.jsxs)(h.a,{variant:"body1",component:"div",sx:{pb:2},children:["Fees: ",oe," ",B]}),Object(f.jsx)(p.a,{sx:{pt:0,pb:4},container:!0,spacing:0,justifyContent:"center",children:Object(f.jsx)(p.a,{item:!0,xs:12,sm:4,children:n?Object(f.jsx)(ce.a,{direction:"column",alignItems:"center",justifyContent:"center",spacing:2,children:Object(f.jsxs)(b.a,{disableGutters:!0,children:["outbound"===e.affiliate.type&&Object(f.jsx)(p.a,{container:!0,spacing:2,children:Object(f.jsx)(p.a,{item:!0,xs:12,children:Object(f.jsx)(Jn,{Rate:ne,SendingAmount:X,ServiceCharges:oe,ReceivingForeignAmount:J,ReceivingCurrency:z,SendingCurrency:B,ReceivingCountryCode:q.code})})}),"inbound"===e.affiliate.type&&Object(f.jsx)(p.a,{container:!0,spacing:2,children:Object(f.jsx)(p.a,{item:!0,xs:12,children:Object(f.jsx)(xa,{DollarAmount:J})})})]})}):Object(f.jsx)(P.a,{sx:{textTransform:"none",fontSize:20,fontWeight:"bold",lineHeight:2,width:1},disableElevation:!0,variant:"contained",onClick:function(){return a({display:"popup"})},children:"Get Started"})})})]})]})}),Object(f.jsx)(Ze.a,{sx:{color:"#fff",zIndex:function(e){return e.zIndex.drawer+1}},open:me,children:Object(f.jsx)(be.a,{color:"inherit"})})]})},ga=function(){return Object(f.jsxs)(Ue,{hideBorder:!0,children:[Object(f.jsx)(Ca,{}),Object(f.jsx)(N,{})]})},Sa={FirstName:{key:"FirstName",label:"Given Name(s)",type:Me.TEXTINPUT,width:6,maxLength:70,helpText:"Must match primary document name.",isRequired:!0},LastName:{key:"LastName",label:"Last Name",type:Me.TEXTINPUT,width:6,maxLength:70,helpText:"Must match primary document name.",isRequired:!0},AddressLine1:{key:"AddressLine1",label:"Address",type:Me.TEXTINPUT,width:12,maxLength:140,isRequired:!0},Suburb:{key:"Suburb",label:"City/Suburb",type:Me.TEXTINPUT,width:6,maxLength:35,isRequired:!0},State:{key:"State",label:"State",type:Me.SELECT,width:2,selectValues:$,isRequired:!0},Postcode:{key:"Postcode",label:"Postcode",type:Me.TEXTINPUT,width:2,maxLength:4,minLength:4,isRequired:!0},Country:{key:"Country",label:"Country",type:Me.SELECT,width:2,selectValues:_.map((function(e){return{value:e.value,label:e.label}})),isRequired:!0},MobileInternationalDialCode:{key:"MobileInternationalDialCode",label:"Country Code",type:Me.SELECT,width:2,selectValues:_.map((function(e){return{value:e.phone,label:e.phone}}))},Mobile:{key:"Mobile",label:"Mobile",type:Me.TEXTINPUT,isNumberOnly:!0,isPhoneNumber:!0,width:4},EmailAddress:{key:"EmailAddress",label:"Email Address",type:Me.TEXTINPUT,width:12,maxLength:200,isRequired:!0},DateOfBirth:{key:"DateOfBirth",label:"Date Of Birth",type:Me.DATEPICKER,width:6,isRequired:!0},Occupation:{key:"Occupation",label:"Occupation",type:Me.TEXTINPUT,width:6,maxLength:150},CountryOfBirth:{key:"CountryOfBirth",label:"Country Of Birth",type:Me.SELECT,width:6,selectValues:_.map((function(e){return{value:e.value,label:e.label}}))},Nationality:{key:"Nationality",label:"Nationality",type:Me.SELECT,width:6,selectValues:Un.map((function(e){return{value:e.Nationality,label:e.Nationality}}))},PlaceOfBirth:{key:"PlaceOfBirth",label:"Place Of Birth",type:Me.TEXTINPUT,width:6,maxLength:100},AKA:{key:"AKA",label:"AKA",type:Me.TEXTINPUT,width:6,maxLength:140}},Na=_t.b({FirstName:_t.c().required("First Name is required").matches(/^[a-zA-Z\s-]+$/,"Only allow alphabet letters, spaces and hyphens.").max(70,"Maximum 70 letters"),LastName:_t.c().required("Last Name is required").matches(/^[a-zA-Z\s-]+$/,"Only allow alphabet letters, spaces and hyphens.").max(70,"Maximum 70 letters"),AddressLine1:_t.c().required("Address is required").max(140,"Maximum 140 letters").matches(/^[a-zA-Z0-9\s-,/]+$/,"Only allow characters, spaces, hyphens, commas and forward slash."),Suburb:_t.c().required("Suburb is required").max(35,"Maximum 35 letters").matches(/^[a-zA-Z\s-]+$/,"Only allow alphabet letters, spaces and hyphens."),State:_t.c().required("State is required"),Postcode:_t.c().matches(/^[0-9]{4}$/,"Must be exactly 4 digits").required("Postcode is required"),Country:_t.c().required("Country is required"),MobileInternationalDialCode:_t.c(),Mobile:_t.c().matches(/^[0-9]+$/,"Must be only digits").min(9,"Minimum 9 digits").max(10,"Maximum 10 digits"),EmailAddress:_t.c().email("Enter a valid email").max(200,"Maximum 200 letters").required("Email is required"),DateOfBirth:_t.c().nullable().required("Date Of Birth is required"),Occupation:_t.c().max(150,"Maximum 150 digits"),CountryOfBirth:_t.c(),Nationality:_t.c(),PlaceOfBirth:_t.c()}),Ia=function(e){var t=e.formValues,n=e.cb,i=e.isStepper,o=void 0!==i&&i,c=e.senderId,s=r.a.useState(!1),u=Object(m.a)(s,2),d=u[0],b=u[1],h=C(),j=g(),x=Object(l.b)().user,y=Object(Zt.a)({initialValues:t,validationSchema:Na,onSubmit:function(){var e=Object(k.a)(T.a.mark((function e(t){var i;return T.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,b(!0),!c){e.next=7;break}return e.next=5,dt(h.affiliate.affiliateId,Object(a.a)(Object(a.a)({},t),{},{SenderID:c,SenderType:"I"}));case 5:e.next=9;break;case 7:return e.next=9,lt(h.affiliate.affiliateId,Object(a.a)(Object(a.a)({},t),{},{AffiliateSenderID:Q(null===x||void 0===x?void 0:x.sub),SenderType:"I"}));case 9:return e.next=11,V(Q(null===x||void 0===x?void 0:x.sub),h.affiliate.affiliateId);case 11:i=e.sent,j({type:"update",payload:{affiliate:h.affiliate,loading:!1,profile:i.profile}}),o||M.b.success("Your information has been submitted.",{position:"top-right",autoClose:3e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!1,draggable:!1,progress:void 0}),n&&n(),e.next=20;break;case 17:e.prev=17,e.t0=e.catch(0),console.log(e.t0);case 20:return e.prev=20,b(!1),e.finish(20);case 23:case"end":return e.stop()}}),e,null,[[0,17,20,23]])})));return function(t){return e.apply(this,arguments)}}()}),v=function(e){for(var t=[],n=0,i=Object.keys(e);n