"use strict";(self.webpackChunkdigital_acquistion_ui=self.webpackChunkdigital_acquistion_ui||[]).push([[792],{1193:(e,a,l)=>{var t=l(2769),n=l.n(t),i=l(4391),o=l(3356),s=l(5972),r=l(9379),c=l(9504),d=l(832),m=l(6947),u=l(3536),b=l.n(u);const $={countryCode:"",role:"",firstName:"",lastName:"",contactMethod:[],email:"",mobile:"",contactInfoConsent:!1},v={businessNeeds:[]},h=[404,400,500],y=[{step:1,type:"institution",title:"Company Information",completed:!1,active:!1},{step:2,title:"Contact Information",type:"profile-o",completed:!1,active:!1},{step:3,title:"Business Needs",type:"folders-o",subHeader:"Tell us what you want to accomplish with your bank. Choose at least one option.",completed:!1,active:!1},{step:4,title:"Review",type:"edit",subHeader:"Please review the information you have provided and press Submit",completed:!1,active:!1}],p=["Social Media","Partner Website","Other Citi Line of Business","Another Company","Other"],f=["Citi Partner"],g=["NAVAN"],x=[{label:"Afghanistan",dial_code_label:"+93",value:"93",country_code:"AF"},{label:"Aland Islands",dial_code_label:"+358",value:"358",country_code:"AX"},{label:"Albania",dial_code_label:"+355",value:"355",country_code:"AL"},{label:"Algeria",dial_code_label:"+213",value:"213",country_code:"DZ"},{label:"American Samoa",dial_code_label:"+1684",value:"1684",country_code:"AS"},{label:"Andorra",dial_code_label:"+376",value:"376",country_code:"AD"},{label:"Angola",dial_code_label:"+244",value:"244",country_code:"AO"},{label:"Anguilla",dial_code_label:"+1264",value:"1264",country_code:"AI"},{label:"Antarctica",dial_code_label:"+672",value:"672",country_code:"AQ"},{label:"Antigua and Barbuda",dial_code_label:"+1268",value:"1268",country_code:"AG"},{label:"Argentina",dial_code_label:"+54",value:"54",country_code:"AR"},{label:"Armenia",dial_code_label:"+374",value:"374",country_code:"AM"},{label:"Aruba",dial_code_label:"+297",value:"297",country_code:"AW"},{label:"Australia",dial_code_label:"+61",value:"61",country_code:"AU"},{label:"Austria",dial_code_label:"+43",value:"43",country_code:"AT"},{label:"Azerbaijan",dial_code_label:"+994",value:"994",country_code:"AZ"},{label:"Bahamas",dial_code_label:"+1242",value:"1242",country_code:"BS"},{label:"Bahrain",dial_code_label:"+973",value:"973",country_code:"BH"},{label:"Bangladesh",dial_code_label:"+880",value:"880",country_code:"BD"},{label:"Barbados",dial_code_label:"+1246",value:"1246",country_code:"BB"},{label:"Belarus",dial_code_label:"+375",value:"375",country_code:"BY"},{label:"Belgium",dial_code_label:"+32",value:"32",country_code:"BE"},{label:"Belize",dial_code_label:"+501",value:"501",country_code:"BZ"},{label:"Benin",dial_code_label:"+229",value:"229",country_code:"BJ"},{label:"Bermuda",dial_code_label:"+1441",value:"1441",country_code:"BM"},{label:"Bhutan",dial_code_label:"+975",value:"975",country_code:"BT"},{label:"Bolivia, Plurinational State of bolivia",dial_code_label:"+591",value:"591",country_code:"BO"},{label:"Bosnia and Herzegovina",dial_code_label:"+387",value:"387",country_code:"BA"},{label:"Botswana",dial_code_label:"+267",value:"267",country_code:"BW"},{label:"Bouvet Island",dial_code_label:"+47",value:"47",country_code:"BV"},{label:"Brazil",dial_code_label:"+55",value:"55",country_code:"BR"},{label:"British Indian Ocean Territory",dial_code_label:"+246",value:"246",country_code:"IO"},{label:"Brunei Darussalam",dial_code_label:"+673",value:"673",country_code:"BN"},{label:"Bulgaria",dial_code_label:"+359",value:"359",country_code:"BG"},{label:"Burkina Faso",dial_code_label:"+226",value:"226",country_code:"BF"},{label:"Burundi",dial_code_label:"+257",value:"257",country_code:"BI"},{label:"Cambodia",dial_code_label:"+855",value:"855",country_code:"KH"},{label:"Cameroon",dial_code_label:"+237",value:"237",country_code:"CM"},{label:"Canada",dial_code_label:"+1",value:"1",country_code:"CA"},{label:"Cape Verde",dial_code_label:"+238",value:"238",country_code:"CV"},{label:"Cayman Islands",dial_code_label:"+345",value:"345",country_code:"KY"},{label:"Central African Republic",dial_code_label:"+236",value:"236",country_code:"CF"},{label:"Chad",dial_code_label:"+235",value:"235",country_code:"TD"},{label:"Chile",dial_code_label:"+56",value:"56",country_code:"CL"},{label:"China",dial_code_label:"+86",value:"86",country_code:"CN"},{label:"Christmas Island",dial_code_label:"+61",value:"61",country_code:"CX"},{label:"Cocos (Keeling) Islands",dial_code_label:"+61",value:"61",country_code:"CC"},{label:"Colombia",dial_code_label:"+57",value:"57",country_code:"CO"},{label:"Comoros",dial_code_label:"+269",value:"269",country_code:"KM"},{label:"Congo",dial_code_label:"+242",value:"242",country_code:"CG"},{label:"Congo, The Democratic Republic of the Congo",dial_code_label:"+243",value:"243",country_code:"CD"},{label:"Cook Islands",dial_code_label:"+682",value:"682",country_code:"CK"},{label:"Costa Rica",dial_code_label:"+506",value:"506",country_code:"CR"},{label:"Cote d'Ivoire",dial_code_label:"+225",value:"225",country_code:"CI"},{label:"Croatia",dial_code_label:"+385",value:"385",country_code:"HR"},{label:"Cuba",dial_code_label:"+53",value:"53",country_code:"CU"},{label:"Cyprus",dial_code_label:"+357",value:"357",country_code:"CY"},{label:"Czech Republic",dial_code_label:"+420",value:"420",country_code:"CZ"},{label:"Denmark",dial_code_label:"+45",value:"45",country_code:"DK"},{label:"Djibouti",dial_code_label:"+253",value:"253",country_code:"DJ"},{label:"Dominica",dial_code_label:"+1767",value:"1767",country_code:"DM"},{label:"Dominican Republic",dial_code_label:"+1849",value:"1849",country_code:"DO"},{label:"Ecuador",dial_code_label:"+593",value:"593",country_code:"EC"},{label:"Egypt",dial_code_label:"+20",value:"20",country_code:"EG"},{label:"El Salvador",dial_code_label:"+503",value:"503",country_code:"SV"},{label:"Equatorial Guinea",dial_code_label:"+240",value:"240",country_code:"GQ"},{label:"Eritrea",dial_code_label:"+291",value:"291",country_code:"ER"},{label:"Estonia",dial_code_label:"+372",value:"372",country_code:"EE"},{label:"Ethiopia",dial_code_label:"+251",value:"251",country_code:"ET"},{label:"Falkland Islands (Malvinas)",dial_code_label:"+500",value:"500",country_code:"FK"},{label:"Faroe Islands",dial_code_label:"+298",value:"298",country_code:"FO"},{label:"Fiji",dial_code_label:"+679",value:"679",country_code:"FJ"},{label:"Finland",dial_code_label:"+358",value:"358",country_code:"FI"},{label:"France",dial_code_label:"+33",value:"33",country_code:"FR"},{label:"French Guiana",dial_code_label:"+594",value:"594",country_code:"GF"},{label:"French Polynesia",dial_code_label:"+689",value:"689",country_code:"PF"},{label:"French Southern Territories",dial_code_label:"+262",value:"262",country_code:"TF"},{label:"Gabon",dial_code_label:"+241",value:"241",country_code:"GA"},{label:"Gambia",dial_code_label:"+220",value:"220",country_code:"GM"},{label:"Georgia",dial_code_label:"+995",value:"995",country_code:"GE"},{label:"Germany",dial_code_label:"+49",value:"49",country_code:"DE"},{label:"Ghana",dial_code_label:"+233",value:"233",country_code:"GH"},{label:"Gibraltar",dial_code_label:"+350",value:"350",country_code:"GI"},{label:"Greece",dial_code_label:"+30",value:"30",country_code:"GR"},{label:"Greenland",dial_code_label:"+299",value:"299",country_code:"GL"},{label:"Grenada",dial_code_label:"+1473",value:"1473",country_code:"GD"},{label:"Guadeloupe",dial_code_label:"+590",value:"590",country_code:"GP"},{label:"Guam",dial_code_label:"+1671",value:"1671",country_code:"GU"},{label:"Guatemala",dial_code_label:"+502",value:"502",country_code:"GT"},{label:"Guernsey",dial_code_label:"+44",value:"44",country_code:"GG"},{label:"Guinea",dial_code_label:"+224",value:"224",country_code:"GN"},{label:"Guinea-Bissau",dial_code_label:"+245",value:"245",country_code:"GW"},{label:"Guyana",dial_code_label:"+592",value:"592",country_code:"GY"},{label:"Haiti",dial_code_label:"+509",value:"509",country_code:"HT"},{label:"Heard Island and Mcdonald Islands",dial_code_label:"+0",value:"0",country_code:"HM"},{label:"Holy See (Vatican City State)",dial_code_label:"+379",value:"379",country_code:"VA"},{label:"Honduras",dial_code_label:"+504",value:"504",country_code:"HN"},{label:"Hong Kong",dial_code_label:"+852",value:"852",country_code:"HK"},{label:"Hungary",dial_code_label:"+36",value:"36",country_code:"HU"},{label:"Iceland",dial_code_label:"+354",value:"354",country_code:"IS"},{label:"India",dial_code_label:"+91",value:"91",country_code:"IN"},{label:"Indonesia",dial_code_label:"+62",value:"62",country_code:"ID"},{label:"Iran, Islamic Republic of Persian Gulf",dial_code_label:"+98",value:"98",country_code:"IR"},{label:"Iraq",dial_code_label:"+964",value:"964",country_code:"IQ"},{label:"Ireland",dial_code_label:"+353",value:"353",country_code:"IE"},{label:"Isle of Man",dial_code_label:"+44",value:"44",country_code:"IM"},{label:"Israel",dial_code_label:"+972",value:"972",country_code:"IL"},{label:"Italy",dial_code_label:"+39",value:"39",country_code:"IT"},{label:"Jamaica",dial_code_label:"+1876",value:"1876",country_code:"JM"},{label:"Japan",dial_code_label:"+81",value:"81",country_code:"JP"},{label:"Jersey",dial_code_label:"+44",value:"44",country_code:"JE"},{label:"Jordan",dial_code_label:"+962",value:"962",country_code:"JO"},{label:"Kazakhstan",dial_code_label:"+7",value:"7",country_code:"KZ"},{label:"Kenya",dial_code_label:"+254",value:"254",country_code:"KE"},{label:"Kiribati",dial_code_label:"+686",value:"686",country_code:"KI"},{label:"Korea, Democratic People's Republic of Korea",dial_code_label:"+850",value:"850",country_code:"KP"},{label:"Korea, Republic of South Korea",dial_code_label:"+82",value:"82",country_code:"KR"},{label:"Kosovo",dial_code_label:"+383",value:"383",country_code:"XK"},{label:"Kuwait",dial_code_label:"+965",value:"965",country_code:"KW"},{label:"Kyrgyzstan",dial_code_label:"+996",value:"996",country_code:"KG"},{label:"Laos",dial_code_label:"+856",value:"856",country_code:"LA"},{label:"Latvia",dial_code_label:"+371",value:"371",country_code:"LV"},{label:"Lebanon",dial_code_label:"+961",value:"961",country_code:"LB"},{label:"Lesotho",dial_code_label:"+266",value:"266",country_code:"LS"},{label:"Liberia",dial_code_label:"+231",value:"231",country_code:"LR"},{label:"Libyan Arab Jamahiriya",dial_code_label:"+218",value:"218",country_code:"LY"},{label:"Liechtenstein",dial_code_label:"+423",value:"423",country_code:"LI"},{label:"Lithuania",dial_code_label:"+370",value:"370",country_code:"LT"},{label:"Luxembourg",dial_code_label:"+352",value:"352",country_code:"LU"},{label:"Macao",dial_code_label:"+853",value:"853",country_code:"MO"},{label:"Macedonia",dial_code_label:"+389",value:"389",country_code:"MK"},{label:"Madagascar",dial_code_label:"+261",value:"261",country_code:"MG"},{label:"Malawi",dial_code_label:"+265",value:"265",country_code:"MW"},{label:"Malaysia",dial_code_label:"+60",value:"60",country_code:"MY"},{label:"Maldives",dial_code_label:"+960",value:"960",country_code:"MV"},{label:"Mali",dial_code_label:"+223",value:"223",country_code:"ML"},{label:"Malta",dial_code_label:"+356",value:"356",country_code:"MT"},{label:"Marshall Islands",dial_code_label:"+692",value:"692",country_code:"MH"},{label:"Martinique",dial_code_label:"+596",value:"596",country_code:"MQ"},{label:"Mauritania",dial_code_label:"+222",value:"222",country_code:"MR"},{label:"Mauritius",dial_code_label:"+230",value:"230",country_code:"MU"},{label:"Mayotte",dial_code_label:"+262",value:"262",country_code:"YT"},{label:"Mexico",dial_code_label:"+52",value:"52",country_code:"MX"},{label:"Micronesia, Federated States of Micronesia",dial_code_label:"+691",value:"691",country_code:"FM"},{label:"Moldova",dial_code_label:"+373",value:"373",country_code:"MD"},{label:"Monaco",dial_code_label:"+377",value:"377",country_code:"MC"},{label:"Mongolia",dial_code_label:"+976",value:"976",country_code:"MN"},{label:"Montenegro",dial_code_label:"+382",value:"382",country_code:"ME"},{label:"Montserrat",dial_code_label:"+1664",value:"1664",country_code:"MS"},{label:"Morocco",dial_code_label:"+212",value:"212",country_code:"MA"},{label:"Mozambique",dial_code_label:"+258",value:"258",country_code:"MZ"},{label:"Myanmar",dial_code_label:"+95",value:"95",country_code:"MM"},{label:"Namibia",dial_code_label:"+264",value:"264",country_code:"NA"},{label:"Nauru",dial_code_label:"+674",value:"674",country_code:"NR"},{label:"Nepal",dial_code_label:"+977",value:"977",country_code:"NP"},{label:"Netherlands",dial_code_label:"+31",value:"31",country_code:"NL"},{label:"Netherlands Antilles",dial_code_label:"+599",value:"599",country_code:"AN"},{label:"New Caledonia",dial_code_label:"+687",value:"687",country_code:"NC"},{label:"New Zealand",dial_code_label:"+64",value:"64",country_code:"NZ"},{label:"Nicaragua",dial_code_label:"+505",value:"505",country_code:"NI"},{label:"Niger",dial_code_label:"+227",value:"227",country_code:"NE"},{label:"Nigeria",dial_code_label:"+234",value:"234",country_code:"NG"},{label:"Niue",dial_code_label:"+683",value:"683",country_code:"NU"},{label:"Norfolk Island",dial_code_label:"+672",value:"672",country_code:"NF"},{label:"Northern Mariana Islands",dial_code_label:"+1670",value:"1670",country_code:"MP"},{label:"Norway",dial_code_label:"+47",value:"47",country_code:"NO"},{label:"Oman",dial_code_label:"+968",value:"968",country_code:"OM"},{label:"Pakistan",dial_code_label:"+92",value:"92",country_code:"PK"},{label:"Palau",dial_code_label:"+680",value:"680",country_code:"PW"},{label:"Palestinian Territory, Occupied",dial_code_label:"+970",value:"970",country_code:"PS"},{label:"Panama",dial_code_label:"+507",value:"507",country_code:"PA"},{label:"Papua New Guinea",dial_code_label:"+675",value:"675",country_code:"PG"},{label:"Paraguay",dial_code_label:"+595",value:"595",country_code:"PY"},{label:"Peru",dial_code_label:"+51",value:"51",country_code:"PE"},{label:"Philippines",dial_code_label:"+63",value:"63",country_code:"PH"},{label:"Pitcairn",dial_code_label:"+64",value:"64",country_code:"PN"},{label:"Poland",dial_code_label:"+48",value:"48",country_code:"PL"},{label:"Portugal",dial_code_label:"+351",value:"351",country_code:"PT"},{label:"Puerto Rico",dial_code_label:"+1939",value:"1939",country_code:"PR"},{label:"Qatar",dial_code_label:"+974",value:"974",country_code:"QA"},{label:"Romania",dial_code_label:"+40",value:"40",country_code:"RO"},{label:"Russia",dial_code_label:"+7",value:"7",country_code:"RU"},{label:"Rwanda",dial_code_label:"+250",value:"250",country_code:"RW"},{label:"Reunion",dial_code_label:"+262",value:"262",country_code:"RE"},{label:"Saint Barthelemy",dial_code_label:"+590",value:"590",country_code:"BL"},{label:"Saint Helena, Ascension and Tristan Da Cunha",dial_code_label:"+290",value:"290",country_code:"SH"},{label:"Saint Kitts and Nevis",dial_code_label:"+1869",value:"1869",country_code:"KN"},{label:"Saint Lucia",dial_code_label:"+1758",value:"1758",country_code:"LC"},{label:"Saint Martin",dial_code_label:"+590",value:"590",country_code:"MF"},{label:"Saint Pierre and Miquelon",dial_code_label:"+508",value:"508",country_code:"PM"},{label:"Saint Vincent and the Grenadines",dial_code_label:"+1784",value:"1784",country_code:"VC"},{label:"Samoa",dial_code_label:"+685",value:"685",country_code:"WS"},{label:"San Marino",dial_code_label:"+378",value:"378",country_code:"SM"},{label:"Sao Tome and Principe",dial_code_label:"+239",value:"239",country_code:"ST"},{label:"Saudi Arabia",dial_code_label:"+966",value:"966",country_code:"SA"},{label:"Senegal",dial_code_label:"+221",value:"221",country_code:"SN"},{label:"Serbia",dial_code_label:"+381",value:"381",country_code:"RS"},{label:"Seychelles",dial_code_label:"+248",value:"248",country_code:"SC"},{label:"Sierra Leone",dial_code_label:"+232",value:"232",country_code:"SL"},{label:"Singapore",dial_code_label:"+65",value:"65",country_code:"SG"},{label:"Slovakia",dial_code_label:"+421",value:"421",country_code:"SK"},{label:"Slovenia",dial_code_label:"+386",value:"386",country_code:"SI"},{label:"Solomon Islands",dial_code_label:"+677",value:"677",country_code:"SB"},{label:"Somalia",dial_code_label:"+252",value:"252",country_code:"SO"},{label:"South Africa",dial_code_label:"+27",value:"27",country_code:"ZA"},{label:"South Sudan",dial_code_label:"+211",value:"211",country_code:"SS"},{label:"South Georgia and the South Sandwich Islands",dial_code_label:"+500",value:"500",country_code:"GS"},{label:"Spain",dial_code_label:"+34",value:"34",country_code:"ES"},{label:"Sri Lanka",dial_code_label:"+94",value:"94",country_code:"LK"},{label:"Sudan",dial_code_label:"+249",value:"249",country_code:"SD"},{label:"Suriname",dial_code_label:"+597",value:"597",country_code:"SR"},{label:"Svalbard and Jan Mayen",dial_code_label:"+47",value:"47",country_code:"SJ"},{label:"Swaziland",dial_code_label:"+268",value:"268",country_code:"SZ"},{label:"Sweden",dial_code_label:"+46",value:"46",country_code:"SE"},{label:"Switzerland",dial_code_label:"+41",value:"41",country_code:"CH"},{label:"Syrian Arab Republic",dial_code_label:"+963",value:"963",country_code:"SY"},{label:"Taiwan",dial_code_label:"+886",value:"886",country_code:"TW"},{label:"Tajikistan",dial_code_label:"+992",value:"992",country_code:"TJ"},{label:"Tanzania, United Republic of Tanzania",dial_code_label:"+255",value:"255",country_code:"TZ"},{label:"Thailand",dial_code_label:"+66",value:"66",country_code:"TH"},{label:"Timor-Leste",dial_code_label:"+670",value:"670",country_code:"TL"},{label:"Togo",dial_code_label:"+228",value:"228",country_code:"TG"},{label:"Tokelau",dial_code_label:"+690",value:"690",country_code:"TK"},{label:"Tonga",dial_code_label:"+676",value:"676",country_code:"TO"},{label:"Trinidad and Tobago",dial_code_label:"+1868",value:"1868",country_code:"TT"},{label:"Tunisia",dial_code_label:"+216",value:"216",country_code:"TN"},{label:"Turkey",dial_code_label:"+90",value:"90",country_code:"TR"},{label:"Turkmenistan",dial_code_label:"+993",value:"993",country_code:"TM"},{label:"Turks and Caicos Islands",dial_code_label:"+1649",value:"1649",country_code:"TC"},{label:"Tuvalu",dial_code_label:"+688",value:"688",country_code:"TV"},{label:"Uganda",dial_code_label:"+256",value:"256",country_code:"UG"},{label:"Ukraine",dial_code_label:"+380",value:"380",country_code:"UA"},{label:"United Arab Emirates",dial_code_label:"+971",value:"971",country_code:"AE"},{label:"United Kingdom",dial_code_label:"+44",value:"44",country_code:"GB"},{label:"United States",dial_code_label:"+1",value:"1",country_code:"US"},{label:"Uruguay",dial_code_label:"+598",value:"598",country_code:"UY"},{label:"Uzbekistan",dial_code_label:"+998",value:"998",country_code:"UZ"},{label:"Vanuatu",dial_code_label:"+678",value:"678",country_code:"VU"},{label:"Venezuela, Bolivarian Republic of Venezuela",dial_code_label:"+58",value:"58",country_code:"VE"},{label:"Vietnam",dial_code_label:"+84",value:"84",country_code:"VN"},{label:"Virgin Islands, British",dial_code_label:"+1284",value:"1284",country_code:"VG"},{label:"Virgin Islands, U.S.",dial_code_label:"+1340",value:"1340",country_code:"VI"},{label:"Wallis and Futuna",dial_code_label:"+681",value:"681",country_code:"WF"},{label:"Yemen",dial_code_label:"+967",value:"967",country_code:"YE"},{label:"Zambia",dial_code_label:"+260",value:"260",country_code:"ZM"},{label:"Zimbabwe",dial_code_label:"+263",value:"263",country_code:"ZW"}],_="dnca-contactus-apis",C="".concat(_,"/v1/dnca/prospect-lookup/fetch"),w=("".concat(_,"/v1/dnca/prospect-lookup/duns_search"),"".concat(_,"/v1/dnca/contact-us/eppublic/save")),S="".concat(_,"/v1/dnca/contact-us/eppublic/retrieve"),j="".concat(_,"/v1/dnca/web-lead/LeadScoreStructure"),A="".concat(_,"/v1/dnca/web-lead/LeadList"),N=("".concat(_,"/v1/dnca/web-lead/LeadListScore"),"".concat(_,"/v1/dnca/web-lead/regenerateRequestInSF/"));var I=l(6403);const k=async(e,a)=>{try{return await I.A.get(e,{headers:a})}catch(l){return M(l),l.response}},P=async(e,a,l)=>{try{return await I.A.post(e,a,l)}catch(t){throw M(t),t}};function M(e){e.response?console.error("API Error Response",e.response.data):e.request?console.error("API Error Request",e.request):console.error("API Error ",e.message)}const T={companyStatuses:["Expanding internationally for the first time","Growing our existing international presence and/or looking to expand into multiple new markets at one time","Already large globally and need to simplify our banking","Growing rapidly in our domestic market","About to grow rapidly domestically and need to avoid inefficiency","Already large domestically and need to simplify our banking"],challenges:["Collecting and/or reconciling money","Making payments cheaply and efficiently","Gaining visibility into global cash position","Choosing the right funding for our operations / closing working capital gaps","Managing our supply chain and trade flows","Connecting seamlessly with our bank(s)"],referralSource:["Citi Partner","Social Media","Partner Website","Other Citi Line of Business","Another Company","Citi Global Reputation","Search Engine","Other"],citiPartner:["NAVAN"],roles:["Accountant","Assistant","Assistant Treasurer","Board","CEO","CFO","Chief Sustainability Officer","Controller","COO","CTO","Executive Director","Finance Manager","Financial Advisor","Founder","General Manager","Investment Director","Legal Advisor","Managing Partner","Owner","Partner","President","Treasurer","Treasury Operations","Other"],businessNeeds:[{title:"Simplify or consolidate our global banking relationships",type:"globe"},{title:"Expand into new markets domestically or globally",type:"latam"},{title:"Improve working capital and refine supply chain strategies",type:"dollarRefresh"},{title:"Invest idle cash and manage cash more efficiently",type:"barChartDollar"},{title:"Explore credit and equity capital solutions",type:"dollarBillStack"},{title:"Embed sustainability solutions into our banking",type:"green"},{title:"Improve or simplify connectivity to our bank(s)",type:"flshOn"},{title:"I'm looking to achieve something else or I'm not sure yet",type:"help"}],countries:{Argentina:{industry:{"Consumer (Retail, Products, Agribusiness, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],"Digital (eCommerce, Software, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],"Healthcare/Life Sciences":["$10m-$100m","$100m-$1b","$1b-$3b"],"Industrials/Manufacturing":["$10m-$100m","$100m-$1b","$1b-$3b"],"Not for Profit":["$10m-$100m","$100m-$1b","$1b-$3b"],Services:["$10m-$100m","$100m-$1b","$1b-$3b"],"Tech & Communications (Hardware, Media, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],Other:["$10m-$100m","$100m-$1b","$1b-$3b"]},userContactMailTo:"am13927@citi.com,hg59670@citi.com,al99304@citi.com"},Australia:{industry:{"Consumer (Retail, Products, Agribusiness, etc)":["$10m-$25m","$25m-$100m","$100m-$1b","$1b-$3b"],"Digital (eCommerce, Software, etc)":["$10m-$25m","$25m-$100m","$100m-$1b","$1b-$3b"],"Healthcare/Life Sciences":["$10m-$25m","$25m-$100m","$100m-$1b","$1b-$3b"],"Industrials/Manufacturing":["$10m-$25m","$25m-$100m","$100m-$1b","$1b-$3b"],"Not for Profit":["$10m-$25m","$25m-$100m","$100m-$1b","$1b-$3b"],Services:["$10m-$25m","$25m-$100m","$100m-$1b","$1b-$3b"],"Tech & Communications (Hardware, Media, etc)":["$10m-$25m","$25m-$100m","$100m-$1b","$1b-$3b"],Other:["$10m-$25m","$25m-$100m","$100m-$1b","$1b-$3b"]},userContactMailTo:"am13927@citi.com,hg59670@citi.com,al99304@citi.com"},Austria:{industry:{"Digital (eCommerce, Software, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"]},userContactMailTo:"am13927@citi.com,hg59670@citi.com,al99304@citi.com"},Bahrain:{industry:{"Consumer (Retail, Products, Agribusiness, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],"Digital (eCommerce, Software, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],"Healthcare/Life Sciences":["$10m-$100m","$100m-$1b","$1b-$3b"],"Industrials/Manufacturing":["$10m-$100m","$100m-$1b","$1b-$3b"],"Not for Profit":["$10m-$100m","$100m-$1b","$1b-$3b"],Services:["$10m-$100m","$100m-$1b","$1b-$3b"],"Tech & Communications (Hardware, Media, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],Other:["$10m-$100m","$100m-$1b","$1b-$3b"]},userContactMailTo:"am13927@citi.com,hg59670@citi.com,al99304@citi.com"},Belgium:{industry:{"Consumer (Retail, Products, Agribusiness, etc)":["$100m-$1b","$1b-$3b"],"Digital (eCommerce, Software, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],"Healthcare/Life Sciences":["$10m-$100m","$100m-$1b","$1b-$3b"],"Industrials/Manufacturing":["$100m-$1b","$1b-$3b"],"Not for Profit":["$100m-$1b","$1b-$3b"],Services:["$100m-$1b","$1b-$3b"],"Tech & Communications (Hardware, Media, etc)":["$100m-$1b","$1b-$3b"],Other:["$100m-$1b","$1b-$3b"]},userContactMailTo:"am13927@citi.com,hg59670@citi.com,al99304@citi.com"},Brazil:{industry:{"Consumer (Retail, Products, Agribusiness, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],"Digital (eCommerce, Software, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],"Healthcare/Life Sciences":["$10m-$100m","$100m-$1b","$1b-$3b"],"Industrials/Manufacturing":["$10m-$100m","$100m-$1b","$1b-$3b"],"Not for Profit":["$10m-$100m","$100m-$1b","$1b-$3b"],Services:["$10m-$100m","$100m-$1b","$1b-$3b"],"Tech & Communications (Hardware, Media, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],Other:["$10m-$100m","$100m-$1b","$1b-$3b"]},userContactMailTo:"am13927@citi.com,hg59670@citi.com,al99304@citi.com"},Canada:{industry:{"Consumer (Retail, Products, Agribusiness, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],"Digital (eCommerce, Software, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],"Healthcare/Life Sciences":["$10m-$100m","$100m-$1b","$1b-$3b"],"Industrials/Manufacturing":["$10m-$100m","$100m-$1b","$1b-$3b"],"Not for Profit":["$10m-$100m","$100m-$1b","$1b-$3b"],Services:["$10m-$100m","$100m-$1b","$1b-$3b"],"Tech & Communications (Hardware, Media, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],Other:["$10m-$100m","$100m-$1b","$1b-$3b"]},userContactMailTo:"am13927@citi.com,hg59670@citi.com,al99304@citi.com"},China:{industry:{"Consumer (Retail, Products, Agribusiness, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],"Digital (eCommerce, Software, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],"Healthcare/Life Sciences":["$10m-$100m","$100m-$1b","$1b-$3b"],"Industrials/Manufacturing":["$10m-$100m","$100m-$1b","$1b-$3b"],"Not for Profit":["$10m-$100m","$100m-$1b","$1b-$3b"],Services:["$10m-$100m","$100m-$1b","$1b-$3b"],"Tech & Communications (Hardware, Media, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],Other:["$10m-$100m","$100m-$1b","$1b-$3b"]},userContactMailTo:"am13927@citi.com,hg59670@citi.com,al99304@citi.com"},"Czech Republic":{industry:{"Consumer (Retail, Products, Agribusiness, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],"Digital (eCommerce, Software, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],"Healthcare/Life Sciences":["$10m-$100m","$100m-$1b","$1b-$3b"],"Industrials/Manufacturing":["$10m-$100m","$100m-$1b","$1b-$3b"],"Not for Profit":["$10m-$100m","$100m-$1b","$1b-$3b"],Services:["$10m-$100m","$100m-$1b","$1b-$3b"],"Tech & Communications (Hardware, Media, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],Other:["$10m-$100m","$100m-$1b","$1b-$3b"]},userContactMailTo:"am13927@citi.com,hg59670@citi.com,al99304@citi.com"},Denmark:{industry:{"Consumer (Retail, Products, Agribusiness, etc)":["$100m-$1b","$1b-$3b"],"Digital (eCommerce, Software, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],"Healthcare/Life Sciences":["$10m-$100m","$100m-$1b","$1b-$3b"],"Industrials/Manufacturing":["$100m-$1b","$1b-$3b"],"Not for Profit":["$100m-$1b","$1b-$3b"],Services:["$100m-$1b","$1b-$3b"],"Tech & Communications (Hardware, Media, etc)":["$100m-$1b","$1b-$3b"],Other:["$100m-$1b","$1b-$3b"]},userContactMailTo:"am13927@citi.com,hg59670@citi.com,al99304@citi.com"},Finland:{industry:{"Consumer (Retail, Products, Agribusiness, etc)":["$100m-$1b","$1b-$3b"],"Digital (eCommerce, Software, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],"Healthcare/Life Sciences":["$10m-$100m","$100m-$1b","$1b-$3b"],"Industrials/Manufacturing":["$100m-$1b","$1b-$3b"],"Not for Profit":["$100m-$1b","$1b-$3b"],Services:["$100m-$1b","$1b-$3b"],"Tech & Communications (Hardware, Media, etc)":["$100m-$1b","$1b-$3b"],Other:["$100m-$1b","$1b-$3b"]},userContactMailTo:"am13927@citi.com,hg59670@citi.com,al99304@citi.com"},France:{industry:{"Digital (eCommerce, Software, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],"Consumer (Retail, Products, Agribusiness, etc)":["$100m-$1b","$1b-$3b"],"Healthcare/Life Sciences":["$100m-$1b","$1b-$3b"],"Industrials/Manufacturing":["$100m-$1b","$1b-$3b"],"Not for Profit":["$100m-$1b","$1b-$3b"],Services:["$100m-$1b","$1b-$3b"],"Tech & Communications (Hardware, Media, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],Other:["$100m-$1b","$1b-$3b"]},userContactMailTo:"am13927@citi.com,hg59670@citi.com,al99304@citi.com"},Germany:{industry:{"Consumer (Retail, Products, Agribusiness, etc)":["$100m-$1b","$1b-$3b"],"Digital (eCommerce, Software, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],"Healthcare/Life Sciences":["$100m-$1b","$1b-$3b"],"Industrials/Manufacturing":["$100m-$1b","$1b-$3b"],"Not for Profit":["$100m-$1b","$1b-$3b"],Services:["$100m-$1b","$1b-$3b"],"Tech & Communications (Hardware, Media, etc)":["$100m-$1b","$1b-$3b"],Other:["$100m-$1b","$1b-$3b"]},userContactMailTo:"am13927@citi.com,hg59670@citi.com,al99304@citi.com"},"Hong Kong SAR":{industry:{"Consumer (Retail, Products, Agribusiness, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],"Digital (eCommerce, Software, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],"Healthcare/Life Sciences":["$10m-$100m","$100m-$1b","$1b-$3b"],"Industrials/Manufacturing":["$10m-$100m","$100m-$1b","$1b-$3b"],"Not for Profit":["$10m-$100m","$100m-$1b","$1b-$3b"],Services:["$10m-$100m","$100m-$1b","$1b-$3b"],"Tech & Communications (Hardware, Media, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],Other:["$10m-$100m","$100m-$1b","$1b-$3b"]},userContactMailTo:"am13927@citi.com,hg59670@citi.com,al99304@citi.com"},Hungary:{industry:{"Consumer (Retail, Products, Agribusiness, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],"Digital (eCommerce, Software, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],"Healthcare/Life Sciences":["$10m-$100m","$100m-$1b","$1b-$3b"],"Industrials/Manufacturing":["$10m-$100m","$100m-$1b","$1b-$3b"],"Not for Profit":["$10m-$100m","$100m-$1b","$1b-$3b"],Services:["$10m-$100m","$100m-$1b","$1b-$3b"],"Tech & Communications (Hardware, Media, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],Other:["$10m-$100m","$100m-$1b","$1b-$3b"]},userContactMailTo:"am13927@citi.com,hg59670@citi.com,al99304@citi.com"},India:{industry:{"Consumer (Retail, Products, Agribusiness, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],"Digital (eCommerce, Software, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],"Healthcare/Life Sciences":["$10m-$100m","$100m-$1b","$1b-$3b"],"Industrials/Manufacturing":["$10m-$100m","$100m-$1b","$1b-$3b"],"Not for Profit":["$10m-$100m","$100m-$1b","$1b-$3b"],Services:["$10m-$100m","$100m-$1b","$1b-$3b"],"Tech & Communications (Hardware, Media, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],Other:["$10m-$100m","$100m-$1b","$1b-$3b"]},userContactMailTo:"am13927@citi.com,hg59670@citi.com,al99304@citi.com"},Indonesia:{industry:{"Consumer (Retail, Products, Agribusiness, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],"Digital (eCommerce, Software, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],"Healthcare/Life Sciences":["$10m-$100m","$100m-$1b","$1b-$3b"],"Industrials/Manufacturing":["$10m-$100m","$100m-$1b","$1b-$3b"],"Not for Profit":["$10m-$100m","$100m-$1b","$1b-$3b"],Services:["$10m-$100m","$100m-$1b","$1b-$3b"],"Tech & Communications (Hardware, Media, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],Other:["$10m-$100m","$100m-$1b","$1b-$3b"]},userContactMailTo:"am13927@citi.com,hg59670@citi.com,al99304@citi.com"},Ireland:{industry:{"Digital (eCommerce, Software, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],"Consumer (Retail, Products, Agribusiness, etc)":["$100m-$1b","$1b-$3b"],"Healthcare/Life Sciences":["$100m-$1b","$1b-$3b"],"Industrials/Manufacturing":["$100m-$1b","$1b-$3b"],"Not for Profit":["$100m-$1b","$1b-$3b"],Services:["$100m-$1b","$1b-$3b"],"Tech & Communications (Hardware, Media, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],Other:["$100m-$1b","$1b-$3b"]},userContactMailTo:"am13927@citi.com,hg59670@citi.com,al99304@citi.com"},Israel:{industry:{"Digital (eCommerce, Software, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"]},userContactMailTo:"am13927@citi.com,hg59670@citi.com,al99304@citi.com"},Italy:{industry:{"Consumer (Retail, Products, Agribusiness, etc)":["$100m-$1b","$1b-$3b"],"Digital (eCommerce, Software, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],"Healthcare/Life Sciences":["$10m-$100m","$100m-$1b","$1b-$3b"],"Industrials/Manufacturing":["$100m-$1b","$1b-$3b"],"Not for Profit":["$100m-$1b","$1b-$3b"],Services:["$100m-$1b","$1b-$3b"],"Tech & Communications (Hardware, Media, etc)":["$100m-$1b","$1b-$3b"],Other:["$100m-$1b","$1b-$3b"]},userContactMailTo:"am13927@citi.com,hg59670@citi.com,al99304@citi.com"},Japan:{industry:{"Consumer (Retail, Products, Agribusiness, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],"Digital (eCommerce, Software, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],"Healthcare/Life Sciences":["$10m-$100m","$100m-$1b","$1b-$3b"],"Industrials/Manufacturing":["$10m-$100m","$100m-$1b","$1b-$3b"],"Not for Profit":["$10m-$100m","$100m-$1b","$1b-$3b"],Services:["$10m-$100m","$100m-$1b","$1b-$3b"],"Tech & Communications (Hardware, Media, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],Other:["$10m-$100m","$100m-$1b","$1b-$3b"]},userContactMailTo:"am13927@citi.com,hg59670@citi.com,al99304@citi.com"},Jordan:{industry:{"Consumer (Retail, Products, Agribusiness, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],"Digital (eCommerce, Software, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],"Healthcare/Life Sciences":["$10m-$100m","$100m-$1b","$1b-$3b"],"Industrials/Manufacturing":["$10m-$100m","$100m-$1b","$1b-$3b"],"Not for Profit":["$10m-$100m","$100m-$1b","$1b-$3b"],Services:["$10m-$100m","$100m-$1b","$1b-$3b"],"Tech & Communications (Hardware, Media, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],Other:["$10m-$100m","$100m-$1b","$1b-$3b"]},userContactMailTo:"am13927@citi.com,hg59670@citi.com,al99304@citi.com"},"Korea, Republic of":{industry:{"Consumer (Retail, Products, Agribusiness, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],"Digital (eCommerce, Software, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],"Healthcare/Life Sciences":["$10m-$100m","$100m-$1b","$1b-$3b"],"Industrials/Manufacturing":["$10m-$100m","$100m-$1b","$1b-$3b"],"Not for Profit":["$10m-$100m","$100m-$1b","$1b-$3b"],Services:["$10m-$100m","$100m-$1b","$1b-$3b"],"Tech & Communications (Hardware, Media, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],Other:["$10m-$100m","$100m-$1b","$1b-$3b"]},userContactMailTo:"am13927@citi.com,hg59670@citi.com,al99304@citi.com"},Luxembourg:{industry:{"Consumer (Retail, Products, Agribusiness, etc)":["$100m-$1b","$1b-$3b"],"Digital (eCommerce, Software, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],"Healthcare/Life Sciences":["$10m-$100m","$100m-$1b","$1b-$3b"],"Industrials/Manufacturing":["$100m-$1b","$1b-$3b"],"Not for Profit":["$100m-$1b","$1b-$3b"],Services:["$100m-$1b","$1b-$3b"],"Tech & Communications (Hardware, Media, etc)":["$100m-$1b","$1b-$3b"],Other:["$100m-$1b","$1b-$3b"]},userContactMailTo:"am13927@citi.com,hg59670@citi.com,al99304@citi.com"},Malaysia:{industry:{"Consumer (Retail, Products, Agribusiness, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],"Digital (eCommerce, Software, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],"Healthcare/Life Sciences":["$10m-$100m","$100m-$1b","$1b-$3b"],"Industrials/Manufacturing":["$10m-$100m","$100m-$1b","$1b-$3b"],"Not for Profit":["$10m-$100m","$100m-$1b","$1b-$3b"],Services:["$10m-$100m","$100m-$1b","$1b-$3b"],"Tech & Communications (Hardware, Media, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],Other:["$10m-$100m","$100m-$1b","$1b-$3b"]},userContactMailTo:"am13927@citi.com,hg59670@citi.com,al99304@citi.com"},Mexico:{industry:{"Consumer (Retail, Products, Agribusiness, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],"Digital (eCommerce, Software, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],"Healthcare/Life Sciences":["$10m-$100m","$100m-$1b","$1b-$3b"],"Industrials/Manufacturing":["$10m-$100m","$100m-$1b","$1b-$3b"],"Not for Profit":["$10m-$100m","$100m-$1b","$1b-$3b"],Services:["$10m-$100m","$100m-$1b","$1b-$3b"],"Tech & Communications (Hardware, Media, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],Other:["$10m-$100m","$100m-$1b","$1b-$3b"]},userContactMailTo:"am13927@citi.com,hg59670@citi.com,al99304@citi.com"},Netherlands:{industry:{"Consumer (Retail, Products, Agribusiness, etc)":["$100m-$1b","$1b-$3b"],"Digital (eCommerce, Software, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],"Healthcare/Life Sciences":["$10m-$100m","$100m-$1b","$1b-$3b"],"Industrials/Manufacturing":["$100m-$1b","$1b-$3b"],"Not for Profit":["$100m-$1b","$1b-$3b"],Services:["$100m-$1b","$1b-$3b"],"Tech & Communications (Hardware, Media, etc)":["$100m-$1b","$1b-$3b"],Other:["$100m-$1b","$1b-$3b"]},userContactMailTo:"am13927@citi.com,hg59670@citi.com,al99304@citi.com"},Norway:{industry:{"Consumer (Retail, Products, Agribusiness, etc)":["$100m-$1b","$1b-$3b"],"Digital (eCommerce, Software, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],"Healthcare/Life Sciences":["$10m-$100m","$100m-$1b","$1b-$3b"],"Industrials/Manufacturing":["$100m-$1b","$1b-$3b"],"Not for Profit":["$100m-$1b","$1b-$3b"],Services:["$100m-$1b","$1b-$3b"],"Tech & Communications (Hardware, Media, etc)":["$100m-$1b","$1b-$3b"],Other:["$100m-$1b","$1b-$3b"]},userContactMailTo:"am13927@citi.com,hg59670@citi.com,al99304@citi.com"},Poland:{industry:{"Consumer (Retail, Products, Agribusiness, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],"Digital (eCommerce, Software, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],"Healthcare/Life Sciences":["$10m-$100m","$100m-$1b","$1b-$3b"],"Industrials/Manufacturing":["$10m-$100m","$100m-$1b","$1b-$3b"],"Not for Profit":["$10m-$100m","$100m-$1b","$1b-$3b"],Services:["$10m-$100m","$100m-$1b","$1b-$3b"],"Tech & Communications (Hardware, Media, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],Other:["$10m-$100m","$100m-$1b","$1b-$3b"]},userContactMailTo:"am13927@citi.com,hg59670@citi.com,al99304@citi.com"},Portugal:{industry:{"Consumer (Retail, Products, Agribusiness, etc)":["$100m-$1b","$1b-$3b"],"Digital (eCommerce, Software, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],"Healthcare/Life Sciences":["$10m-$100m","$100m-$1b","$1b-$3b"],"Industrials/Manufacturing":["$100m-$1b","$1b-$3b"],"Not for Profit":["$100m-$1b","$1b-$3b"],Services:["$100m-$1b","$1b-$3b"],"Tech & Communications (Hardware, Media, etc)":["$100m-$1b","$1b-$3b"],Other:["$100m-$1b","$1b-$3b"]},userContactMailTo:"am13927@citi.com,hg59670@citi.com,al99304@citi.com"},Romania:{industry:{"Consumer (Retail, Products, Agribusiness, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],"Digital (eCommerce, Software, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],"Healthcare/Life Sciences":["$10m-$100m","$100m-$1b","$1b-$3b"],"Industrials/Manufacturing":["$10m-$100m","$100m-$1b","$1b-$3b"],"Not for Profit":["$10m-$100m","$100m-$1b","$1b-$3b"],Services:["$10m-$100m","$100m-$1b","$1b-$3b"],"Tech & Communications (Hardware, Media, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],Other:["$10m-$100m","$100m-$1b","$1b-$3b"]},userContactMailTo:"am13927@citi.com,hg59670@citi.com,al99304@citi.com"},Singapore:{industry:{"Consumer (Retail, Products, Agribusiness, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],"Digital (eCommerce, Software, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],"Healthcare/Life Sciences":["$10m-$100m","$100m-$1b","$1b-$3b"],"Industrials/Manufacturing":["$10m-$100m","$100m-$1b","$1b-$3b"],"Not for Profit":["$10m-$100m","$100m-$1b","$1b-$3b"],Services:["$10m-$100m","$100m-$1b","$1b-$3b"],"Tech & Communications (Hardware, Media, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],Other:["$10m-$100m","$100m-$1b","$1b-$3b"]},userContactMailTo:"am13927@citi.com,hg59670@citi.com,al99304@citi.com"},Slovakia:{industry:{"Consumer (Retail, Products, Agribusiness, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],"Digital (eCommerce, Software, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],"Healthcare/Life Sciences":["$10m-$100m","$100m-$1b","$1b-$3b"],"Industrials/Manufacturing":["$10m-$100m","$100m-$1b","$1b-$3b"],"Not for Profit":["$10m-$100m","$100m-$1b","$1b-$3b"],Services:["$10m-$100m","$100m-$1b","$1b-$3b"],"Tech & Communications (Hardware, Media, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],Other:["$10m-$100m","$100m-$1b","$1b-$3b"]},userContactMailTo:"am13927@citi.com,hg59670@citi.com,al99304@citi.com"},Spain:{industry:{"Consumer (Retail, Products, Agribusiness, etc)":["$100m-$1b","$1b-$3b"],"Digital (eCommerce, Software, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],"Healthcare/Life Sciences":["$10m-$100m","$100m-$1b","$1b-$3b"],"Industrials/Manufacturing":["$100m-$1b","$1b-$3b"],"Not for Profit":["$100m-$1b","$1b-$3b"],Services:["$100m-$1b","$1b-$3b"],"Tech & Communications (Hardware, Media, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],Other:["$100m-$1b","$1b-$3b"]},userContactMailTo:"am13927@citi.com,hg59670@citi.com,al99304@citi.com"},Sweden:{industry:{"Consumer (Retail, Products, Agribusiness, etc)":["$100m-$1b","$1b-$3b"],"Digital (eCommerce, Software, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],"Healthcare/Life Sciences":["$10m-$100m","$100m-$1b","$1b-$3b"],"Industrials/Manufacturing":["$100m-$1b","$1b-$3b"],"Not for Profit":["$100m-$1b","$1b-$3b"],Services:["$100m-$1b","$1b-$3b"],"Tech & Communications (Hardware, Media, etc)":["$100m-$1b","$1b-$3b"],Other:["$100m-$1b","$1b-$3b"]},userContactMailTo:"am13927@citi.com,hg59670@citi.com,al99304@citi.com"},Switzerland:{industry:{"Consumer (Retail, Products, Agribusiness, etc)":["$100m-$1b","$1b-$3b"],"Digital (eCommerce, Software, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],"Healthcare/Life Sciences":["$100m-$1b","$1b-$3b"],"Industrials/Manufacturing":["$100m-$1b","$1b-$3b"],"Not for Profit":["$100m-$1b","$1b-$3b"],Services:["$100m-$1b","$1b-$3b"],"Tech & Communications (Hardware, Media, etc)":["$100m-$1b","$1b-$3b"],Other:["$100m-$1b","$1b-$3b"]},userContactMailTo:"am13927@citi.com,hg59670@citi.com,al99304@citi.com"},Taiwan:{industry:{"Consumer (Retail, Products, Agribusiness, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],"Digital (eCommerce, Software, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],"Healthcare/Life Sciences":["$10m-$100m","$100m-$1b","$1b-$3b"],"Industrials/Manufacturing":["$10m-$100m","$100m-$1b","$1b-$3b"],"Not for Profit":["$10m-$100m","$100m-$1b","$1b-$3b"],Services:["$10m-$100m","$100m-$1b","$1b-$3b"],"Tech & Communications (Hardware, Media, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],Other:["$10m-$100m","$100m-$1b","$1b-$3b"]},userContactMailTo:"am13927@citi.com,hg59670@citi.com,al99304@citi.com"},Thailand:{industry:{"Consumer (Retail, Products, Agribusiness, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],"Digital (eCommerce, Software, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],"Healthcare/Life Sciences":["$10m-$100m","$100m-$1b","$1b-$3b"],"Industrials/Manufacturing":["$10m-$100m","$100m-$1b","$1b-$3b"],"Not for Profit":["$10m-$100m","$100m-$1b","$1b-$3b"],Services:["$10m-$100m","$100m-$1b","$1b-$3b"],"Tech & Communications (Hardware, Media, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],Other:["$10m-$100m","$100m-$1b","$1b-$3b"]},userContactMailTo:"am13927@citi.com,hg59670@citi.com,al99304@citi.com"},Turkey:{industry:{"Consumer (Retail, Products, Agribusiness, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],"Digital (eCommerce, Software, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],"Healthcare/Life Sciences":["$10m-$100m","$100m-$1b","$1b-$3b"],"Industrials/Manufacturing":["$10m-$100m","$100m-$1b","$1b-$3b"],"Not for Profit":["$10m-$100m","$100m-$1b","$1b-$3b"],Services:["$10m-$100m","$100m-$1b","$1b-$3b"],"Tech & Communications (Hardware, Media, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],Other:["$10m-$100m","$100m-$1b","$1b-$3b"]},userContactMailTo:"am13927@citi.com,hg59670@citi.com,al99304@citi.com"},Ukraine:{industry:{"Consumer (Retail, Products, Agribusiness, etc)":["$100m-$1b","$1b-$3b"],"Digital (eCommerce, Software, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],"Healthcare/Life Sciences":["$10m-$100m","$100m-$1b","$1b-$3b"],"Industrials/Manufacturing":["$100m-$1b","$1b-$3b"],"Not for Profit":["$100m-$1b","$1b-$3b"],Services:["$100m-$1b","$1b-$3b"],"Tech & Communications (Hardware, Media, etc)":["$100m-$1b","$1b-$3b"],Other:["$100m-$1b","$1b-$3b"]},userContactMailTo:"am13927@citi.com,hg59670@citi.com,al99304@citi.com"},"United Arab Emirates":{industry:{"Consumer (Retail, Products, Agribusiness, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],"Digital (eCommerce, Software, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],"Healthcare/Life Sciences":["$10m-$100m","$100m-$1b","$1b-$3b"],"Industrials/Manufacturing":["$10m-$100m","$100m-$1b","$1b-$3b"],"Not for Profit":["$10m-$100m","$100m-$1b","$1b-$3b"],Services:["$10m-$100m","$100m-$1b","$1b-$3b"],"Tech & Communications (Hardware, Media, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],Other:["$10m-$100m","$100m-$1b","$1b-$3b"]},userContactMailTo:"am13927@citi.com,hg59670@citi.com,al99304@citi.com"},"United Kingdom":{industry:{"Consumer (Retail, Products, Agribusiness, etc)":["$100m-$1b","$1b-$3b"],"Digital (eCommerce, Software, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],"Healthcare/Life Sciences":["$10m-$100m","$100m-$1b","$1b-$3b"],"Industrials/Manufacturing":["$100m-$1b","$1b-$3b"],"Not for Profit":["$100m-$1b","$1b-$3b"],Services:["$100m-$1b","$1b-$3b"],"Tech & Communications (Hardware, Media, etc)":["$100m-$1b","$1b-$3b"],Other:["$100m-$1b","$1b-$3b"]},userContactMailTo:"am13927@citi.com,hg59670@citi.com,al99304@citi.com"},"United States":{industry:{"Clean Energy (Alternative/Renewable Power, Grid Management, Equipment, etc)":["$10m-$25m","$25m-$100m","$100m-$1b","$1b-$3b"],"Consumer Products (Agribusiness, Durables, Food & Beverage, etc)":["$10m-$25m","$25m-$100m","$100m-$1b","$1b-$3b"],"Consumer Retail (Restaurants, Apparel & Textiles, Specialty Retailer etc)":["$10m-$25m","$25m-$100m","$100m-$1b","$1b-$3b"],"Digital, Tech & Communications (eCommerce, Software, Tech Hardware etc)":["Pre-Revenue","$10m-$25m","$25m-$100m","$100m-$1b","$1b-$3b"],"Diversified Services (Consultancies, Law, Workplace Solutions, Engineering & Construction, Travel, etc)":["$10m-$25m","$25m-$100m","$100m-$1b","$1b-$3b"],"Financial Services (Financial Institutions, Asset Managers, Real Estate, Insurance, etc)":["$10m-$25m","$25m-$100m","$100m-$1b","$1b-$3b"],"Healthcare/Life Sciences (Pharma, MedTech, Biotech, etc)":["Pre-Revenue","$10m-$25m","$25m-$100m","$100m-$1b","$1b-$3b"],"Industrials: Emerging Mobility (Aerospace, Industrial Automation, etc)":["Pre-Revenue","$10m-$25m","$25m-$100m","$100m-$1b","$1b-$3b"],"Industrials: Manufacturing (Capital Goods, Chemicals, Packaging/Paper, Logistics, etc)":["$10m-$25m","$25m-$100m","$100m-$1b","$1b-$3b"],"Nonprofit (Public & Social Benefit, Higher Edu, Arts & Cultural, Membership Orgs, etc)":["$10m-$25m","$25m-$100m","$100m-$1b","$1b-$3b"],Other:["$10m-$25m","$25m-$100m","$100m-$1b","$1b-$3b"]},userContactMailTo:"am13927@citi.com,hg59670@citi.com,al99304@citi.com"},Vietnam:{industry:{"Consumer (Retail, Products, Agribusiness, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],"Digital (eCommerce, Software, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],"Healthcare/Life Sciences":["$10m-$100m","$100m-$1b","$1b-$3b"],"Industrials/Manufacturing":["$10m-$100m","$100m-$1b","$1b-$3b"],"Not for Profit":["$10m-$100m","$100m-$1b","$1b-$3b"],Services:["$10m-$100m","$100m-$1b","$1b-$3b"],"Tech & Communications (Hardware, Media, etc)":["$10m-$100m","$100m-$1b","$1b-$3b"],Other:["$10m-$100m","$100m-$1b","$1b-$3b"]},userContactMailTo:"am13927@citi.com,hg59670@citi.com,al99304@citi.com"}},personalEmailDomains:["gmail","yahoo","hotmail"],jurisdictions:["Afghanistan","Aland Islands","Albania","Algeria","Andorra","Angola","Anguilla","Antarctica","Antigua and Barbuda","Argentina","Armenia","Aruba","Australia","Austria","Azerbaijan","Bahamas","Bahrain","Bangladesh","Barbados","Belarus","Belgium","Belize","Benin","Bermuda","Bhutan","Bolivia, Plurinational State of","Bonaire, Sint Eustatius and Saba","Bosnia and Herzegovina","Botswana","Bouvet Island","Brazil","British Indian Ocean Territory","Brunei Darussalam","Bulgaria","Burkina Faso","Burundi","Cambodia","Cameroon","Canada","Cape Verde","Cayman Islands","Central African Republic","Chad","Chile","China","Christmas Island","Cocos (Keeling) Islands","Colombia","Comoros","Congo","Congo, the Democratic Republic of the","Cook Islands","Costa Rica","Cote d\u2019Ivoire","Croatia","Cuba","Cura\xe7ao","Cyprus","Czech Republic","Denmark","Djibouti","Dominica","Dominican Republic","Ecuador","Egypt","El Salvador","Equatorial Guinea","Eritrea","Estonia","Ethiopia","Falkland Islands (Malvinas)","Faroe Islands","Fiji","Finland","France","French Guiana","French Polynesia","French Southern Territories","Gabon","Gambia","Georgia","Germany","Ghana","Gibraltar","Greece","Greenland","Grenada","Guadeloupe","Guatemala","Guernsey","Guinea","Guinea-Bissau","Guyana","Haiti","Heard Island and McDonald Islands","Holy See (Vatican City State)","Honduras","Hong Kong SAR","Hungary","Iceland","India","Indonesia","Iran, Islamic Republic of","Iraq","Ireland","Isle of Man","Israel","Italy","Jamaica","Japan","Jersey","Jordan","Kazakhstan","Kenya","Kiribati","Korea, Democratic People\u2019s Republic of","Korea, Republic of","Kuwait","Kyrgyzstan","Lao People\u2019s Democratic Republic","Latvia","Lebanon","Lesotho","Liberia","Libya","Liechtenstein","Lithuania","Luxembourg","Macao","Macedonia, the former Yugoslav Republic of","Madagascar","Malawi","Malaysia","Maldives","Mali","Malta","Martinique","Mauritania","Mauritius","Mayotte","Mexico","Moldova, Republic of","Monaco","Mongolia","Montenegro","Montserrat","Morocco","Mozambique","Myanmar","Namibia","Nauru","Nepal","Netherlands","New Caledonia","New Zealand","Nicaragua","Niger","Nigeria","Niue","Norfolk Island","Norway","Oman","Pakistan","Palestine","Panama","Papua New Guinea","Paraguay","Peru","Philippines","Pitcairn","Poland","Portugal","Qatar","Reunion","Romania","Russian Federation","Rwanda","Saint Barth\xe9lemy","Saint Helena, Ascension and Tristan da Cunha","Saint Kitts and Nevis","Saint Lucia","Saint Martin (French part)","Saint Pierre and Miquelon","Saint Vincent and the Grenadines","Samoa","San Marino","Sao Tome and Principe","Saudi Arabia","Senegal","Serbia","Seychelles","Sierra Leone","Singapore","Sint Maarten (Dutch part)","Slovakia","Slovenia","Solomon Islands","Somalia","South Africa","South Georgia and the South Sandwich Islands","South Sudan","Spain","Sri Lanka","Sudan","Suriname","Svalbard and Jan Mayen","Swaziland","Sweden","Switzerland","Syrian Arab Republic","Taiwan","Tajikistan","Tanzania, United Republic of","Thailand","Timor-Leste","Togo","Tokelau","Tonga","Trinidad and Tobago","Tunisia","Turkey","Turkmenistan","Turks and Caicos Islands","Tuvalu","Uganda","Ukraine","United Arab Emirates","United Kingdom","United States","Uruguay","Uzbekistan","Vanuatu","Venezuela, Bolivarian Republic of","Vietnam","Virgin Islands, British","Wallis and Futuna","Western Sahara","Yemen","Zambia","Zimbabwe"]};var E=l(579);const B=(0,t.createContext)(void 0),R=e=>{let{children:a}=e;const[l,n]=(0,t.useState)(y),[i,o]=(0,t.useState)(!1),[s,r]=(0,t.useState)(!1),[c,d]=(0,t.useState)(!1),[m,u]=(0,t.useState)(!1),[b,p]=(0,t.useState)(null),[f,g]=(0,t.useState)(null),[x,_]=(0,t.useState)(null),[C,w]=(0,t.useState)(),[N,P]=(0,t.useState)([]),[R,D]=(0,t.useState)(),[L,z]=(0,t.useState)(),[O,F]=(0,t.useState)(null),[H,q]=(0,t.useState)(!1),[V,G]=(0,t.useState)(!1);(0,t.useEffect)(()=>{const e=window.parent.location.href.includes("contact-us");q(e)},[]);const W=async e=>{let a,l,t;switch(e){case S:a=await(async(e,a)=>{try{return await I.A.post(e,{headers:a})}catch(b){return M(b),b.response}})(S),({status:l,data:t}=a),w(200===l?t[0]?t[0]:t:T);break;case j:a=await k(j),({status:l,data:t}=a),D(t),U(200===l?t:l);break;case A:a=await k(A),({status:l,data:t}=a),z(t),U(200===l?t:l);break;default:console.log("URL not recognized")}},U=e=>{h.includes(e)&&g("Something went wrong, please contact system administrator")};(0,t.useEffect)(()=>{O&&W(O)},[O]);const[K,Z]=(0,t.useState)($),[Y,J]=(0,t.useState)(v);return(0,t.useMemo)(()=>(0,E.jsx)(B.Provider,{value:{steps:l,setTextAreaValue:P,textAreaValue:N,setSteps:n,companyInfo:x,urlFecth:O,setUrlFetch:F,setCompanyInfo:_,contactInfo:K,setContactInfo:Z,businessNeedInfo:Y,setBusinessNeedInfo:J,isBasicInfo:i,setIsBasicInfo:o,isEditMode:s,setIsEditMode:r,isAboutBusiness:c,setIsAboutBusiness:d,errorStatus:f,setErrorStatus:g,staticData:C,adminLeadData:R,leadList:L,isSubmitted:m,setIsSubmitted:u,error:b,setError:p,isCardOpen:H,setIsCardOpen:q,isCancelClicked:V,setIsCancelClicked:G},children:a}),[l,x,K,Y,s,C,R,L,N,m,c,b,i,a,H,V])},D=()=>{const e=(0,t.useContext)(B);if(!e)throw new Error("useData must be used with a DataProvider");return e};var L=l(1557),z=l(6547),O=l(3188),F=l(3317);const H=e=>{let{submitText:a,cancelText:l,backText:n,onCancel:i,onBack:o,onSubmit:s,submitDisabled:r,closeSubmission:c,showDivider:d,isLoading:m,id:u}=e;const b=(0,t.useCallback)(()=>{i&&i()},[i]),$=(0,t.useCallback)(()=>{s&&s()},[s]),v=(0,t.useCallback)(()=>{o&&o()},[o]);return(0,E.jsxs)(E.Fragment,{children:[d&&(0,E.jsx)(O.Ay,{type:"divider",layoutClass:"cust-border-color"}),(0,E.jsxs)("div",{id:"footer_button",className:"lmn-dcna-m-flex-container lmn-dcna-s-flex-container lmn-dcna-l-flex ".concat(((e,a)=>a?"lmn-justify-content-end":e?"lmn-dnca-justify-content":"")(!o,c)),children:[i&&(0,E.jsx)("div",{children:(0,E.jsx)(F.Ay,{className:"lmn-dnca-w-s-100 lmn-dnca-w-xs-100 lmn-mb-2 lmn-mr-3 first",style:{color:"#fff",background:"transparent",boxShadow:"inset 0 0 0 1px"},onClick:b,"aria-label":l,children:l})}),o&&(0,E.jsx)(F.Ay,{className:"lmn-dnca-w-s-100 lmn-dnca-w-xs-100 lmn-mb-2 lmn-mr-3 lmn-ml-md-auto lmn-ml-sm-auto second lmn-dnca-ml-lg lmn-dnca-ml-xl",style:{color:"#fff",background:"transparent",boxShadow:"inset 0 0 0 1px"},onClick:v,"aria-label":n,children:n}),a&&(0,E.jsxs)(F.Ay,{className:"lmn-dnca-w-s-100 lmn-dnca-w-xs-100 lmn-mb-2 three ".concat(o?"":"lmn-ml-sm-auto"),color:"primary",style:{background:"#255BE3",borderRadius:"6px"},id:u,"aria-label":a,disabled:r||m,onClick:$,children:[a,m&&(0,E.jsx)(z.A,{type:"spinner",spin:!0})]})]})]})};H.defaultProps={cancelText:"Cancel",backText:"Go Back",submitDisabled:!1,showDivider:!0};const q=H,V=(0,t.forwardRef)((e,a)=>{const{setIsSubmitted:l,setSteps:n,setCompanyInfo:i,setContactInfo:o,setIsAboutBusiness:s,setIsBasicInfo:r,setBusinessNeedInfo:c,setIsCardOpen:d,setIsCancelClicked:m}=D(),u=(0,t.useCallback)(()=>{if(l(!1),c(()=>({businessNeeds:[]})),i(null),o($),s(!1),r(!1),n(y),m(!0),d(!1),"undefined"!==typeof window){var e;const l={"uat.commercialbanking.citidirect.com":"https://uat.commercialbanking.citidirect.com/commercial/eppublic/home/","uat.citigroup.com":"https://uat.citigroup.com/global/businesses/banking/commercial-bank","commercialbanking.citidirect.com":"https://commercialbanking.citidirect.com/commercial/eppublic/home/","www.citigroup.com":"https://www.citigroup.com/global/businesses/banking/commercial-bank"},t=null!==(e=l[window.location.hostname.toLowerCase()])&&void 0!==e?e:l["www.citigroup.com"],n=window.top&&window.top!==window.self?window.top:window;try{n.location.href=t}catch(a){window.location.href=t}}window.parent.location.href.includes("contact-us")&&window.scrollTo(0,0)},[l,n]),b=(0,t.useRef)(null);return(0,t.useEffect)(()=>{b.current&&(b.current.focus(),window.parent.location.href.includes("contact-us")&&window.scrollTo({top:0,behavior:"smooth"}))},[]),(0,E.jsxs)(L.A,{id:"submisson_page",children:[(0,E.jsx)(z.A,{type:"check-circle",size:"lg",style:{fontSize:"56px",color:"#fff"}}),(0,E.jsx)(L.A,{className:"lmn-h4 lmn-mb-5 lmn-text-headline-0",role:"text",tabIndex:-1,"aria-label":"Request sent",ref:b,children:"Request sent"}),(0,E.jsx)(L.A,{className:"lmn-h5 lmn-mb-4 lmn-text-headline-0",role:"text","aria-label":"What happens next?",children:"What happens next?"}),(0,E.jsx)(L.A,{className:"lmn-mb-9 lmn-text-color-desc",role:"text","aria-label":"Thank you for submitting your interest in Citi. We will review your information and get back to you as soon as possible.",children:"Thank you for submitting your interest in Citi. We will review your information and get back to you as soon as possible."}),(0,E.jsx)(q,{onSubmit:u,submitText:"Close",closeSubmission:!0})]})});var G=l(2639),W=l(3403),U=l(3986),K=l(3669),Z=l(321);const Y="Where possible please use your company email address to avoid delays.",J="Please note that we prefer a valid corporate email address (@company.com), as this is required for onboarding. If you provide a non-corporate address, this may result in delays or us not being able to address your request.",X=/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/,Q=(e,a,l)=>{const t=l?4:a+1;return b().map(e,e=>e.step===a?(0,r.A)((0,r.A)({},e),{},{completed:!0,active:!1}):e.step===t?(0,r.A)((0,r.A)({},e),{},{active:!0}):(0,r.A)((0,r.A)({},e),{},{active:!1}))},ee=(e,a)=>{if(!e.current)return;e.current.innerHTML="";const l=document.createElement("script");l.type="text/javascript";const t=window.location.host.includes("uat")?"https://uat.citigroup.com/":"https://www.citigroup.com/",n='\n try {\n var postObject = JSON.stringify({ event: "'.concat(a,'" });\n window.parent.postMessage(postObject, "').concat(t,"\");\n console.log('Message sent to parent window');\n } catch(e) {\n window.console && window.console.log(e);\n }\n ");l.text=n,e.current.appendChild(l)},ae=(e,a)=>b().map(e,e=>e.step===a-1?(0,r.A)((0,r.A)({},e),{},{active:!0}):(0,r.A)((0,r.A)({},e),{},{active:!1})),le=(e,a)=>{var l,t,n,i;const o=null===e||void 0===e?void 0:e.global_ultimate_country_name,s=null===e||void 0===e?void 0:e.operatedCountry,r=null!==(l=null===e||void 0===e?void 0:e.industry)&&void 0!==l?l:"",c=b().keys(a.countries),d=null!==(t=null===(n=a.countries)||void 0===n||null===(i=n[o])||void 0===i?void 0:i.industry)&&void 0!==t?t:[],m=o&&d?b().keys(d):[];return{selectedCountryName:o,IndustrialKey:r,selectedJurisdictions:s,selectedIndustry:r,countries:c,Industries:m,SalesSize:1===m.length?m[0]?d[m[0]]:[]:r?b().values(d[r]):[]}},te=e=>"Pre-Revenue"===(null===e||void 0===e?void 0:e.salesSize)?null===e||void 0===e?void 0:e.isCompanyVCorPEBacked:(null===e||void 0===e||delete e.isCompanyVCorPEBacked,null===e||void 0===e?void 0:e.salesSize),ne=(e,a)=>{switch(e){case"title":case"name":return!/^[a-zA-Z]+$/.test(a);case"factor":case"score":return!/^-?[0-9]+$/.test(a)}},ie=e=>{const{title:a,name:l,factor:t,score:n,invalidFactor:i,invalidScore:o}=e,s=[];return""==l&&s.push("criteria"),""==a&&s.push("category"),(""==n||o)&&s.push("score"),(""==t||i)&&s.push("factor"),s.length>0?"Please enter valid ".concat(s.join(", ")):""},oe=e=>e.every(e=>void 0!==e.name&&null!==e.name&&""!==e.name&&void 0!==e.score&&null!==e.score&&""!==e.score&&void 0!==e.applicable&&null!==e.applicable&&void 0!==e.factor&&null!==e.factor&&""!==e.factor&&void 0!==e.editable&&null!==e.editable);const se=e=>{if(Array.isArray(e))return e.map(se);if(null!==e&&"object"===typeof e){const a=(0,r.A)({},e);return void 0!==(null===a||void 0===a?void 0:a.editEnable)&&(a.editEnable=!1),void 0!==(null===a||void 0===a?void 0:a.editable)&&(a.editable=!1),Object.keys(a).forEach(e=>{a[e]=se(a[e])}),a}return e},re=(e,a)=>e?[e]:"Please enter a valid email address."===a?[a]:[],ce=function(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(Array.isArray(e)&&0===e.length)return!1;if(void 0===e||null===e||""===e)return!1;const l=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,t=/^\d{10}$/,n=/^[a-zA-Z0-9]{1,20}$/,i=/^(https?:\/\/)(www\.)?([a-zA-Z0-9_-]+\.)+[a-zA-Z]{2,}((\/[\w#-]+)*(\/\w+\?[a-zA-Z0-9_]+=\w+(&[a-zA-Z0-9_]+=\w+)*)?)?\/?$/,o=/^(https?:\/\/)?www\.([a-zA-Z0-9_-]+\.)+[a-zA-Z]{2,}(\/[a-zA-Z0-9#_-]+)*(\/[a-zA-Z0-9#_-]+\?[a-zA-Z0-9_]+=[a-zA-Z0-9_]+(&[a-zA-Z0-9_]+=[a-zA-Z0-9_]+)*)?\/?$/;switch(a){case"email":return l.test(e);case"mobile":return console.log("mobileRegex.test(data)",t.test(e.replace(/\D/g,""))),t.test(e.replace(/\D/g,""));case"zipcode":return n.test(e);case"website":return i.test(e)||o.test(e);case"textArea":return e.length>=80;default:return!0}},de=()=>{let e=0;const a=window.screen,l=navigator.userAgent.toLowerCase();return void 0!==window.devicePixelRatio?e=window.devicePixelRatio:~l.indexOf("msie")?a.deviceXDPI&&a.logicalXDPI&&(e=a.deviceXDPI/a.logicalXDPI):void 0!==window.outerWidth&&void 0!==window.innerWidth&&(e=window.outerWidth/window.innerWidth),e&&(e=Math.round(100*e)),e},me=["options","onChange","className","id","error","label","ariaLabel","defaultValue","onSearch","value","ariaDescribedBy","onFocus","onBlur","required"],ue=e=>{const{options:a,onChange:l,className:n,id:i,error:o,label:s,ariaLabel:c,defaultValue:d,onSearch:m,value:u,ariaDescribedBy:$,onFocus:v,onBlur:h,required:y}=e,p=(0,U.A)(e,me),[f,g]=(0,t.useState)([]),[x,_]=(0,t.useState)(!1),[C,w]=(0,t.useState)(-1),S=(0,t.useRef)(null),j=(0,t.useRef)([]);(0,t.useEffect)(()=>{d&&g(Array.isArray(d)?d:[d])},[d]),(0,t.useEffect)(()=>{u&&g(Array.isArray(u)?u:[u])},[u]),(0,t.useEffect)(()=>{const e=de();console.log("Current Zoom Level:",e)},[]);const A=(0,t.useCallback)(e=>{g(e),l&&l(e)},[l]),N=(0,t.useCallback)(e=>{var l;switch(e.key){case"ArrowDown":e.preventDefault(),w(e=>(e+1)%a.length);break;case"ArrowUp":e.preventDefault(),w(e=>(e-1+a.length)%a.length);break;case"Enter":var t;if(e.preventDefault(),C>=0)A([a[C]]),_(!1),null===(t=S.current)||void 0===t||t.blur();break;case"Escape":_(!1),null===(l=S.current)||void 0===l||l.blur()}},[C,A,a,S]);(0,t.useEffect)(()=>{var e;x&&C>=0&&j.current[C]&&(null===(e=j.current[C])||void 0===e||e.focus())},[C,x]);const I=(0,t.useCallback)(()=>({"aria-invalid":!!o,"aria-label":c||s||"Select an option","aria-describedby":$,"aria-expanded":x,role:"combobox","aria-haspopup":"listbox","aria-required":!!y}),[$,c,o,i,x,s,y]),k=(0,t.useCallback)(e=>{m&&m(e)},[m]),P=(0,t.useCallback)(()=>{_(!0),v&&v()},[v]),M=(0,t.useCallback)(()=>{_(!1),h&&h()},[h]);return(0,E.jsx)("div",{className:n,onKeyDown:N,children:(0,E.jsx)(K.Ay,(0,r.A)((0,r.A)((0,r.A)({},p),{},{id:i,ref:S,size:"default",style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},value:f,invalid:!!o,showSearch:!0,title:s||"Select an option",onChange:A,onSearch:k,getPopupContainer:()=>document.querySelector("#root"),onFocus:P,onBlur:M},I()),{},{children:b().map(a,e=>(0,E.jsx)(Z.A,{label:e,"aria-label":e,value:e,children:e},e))}))})};ue.defaultProps={mode:"default",tagColor:"selected"};const be=ue,$e=(e,a)=>Object.keys(a.countries||{}).filter(a=>a.toUpperCase()===e.toUpperCase())[0],ve=e=>{var a,l,t,n;return(null===e||void 0===e||null===(a=e.registerAddress)||void 0===a?void 0:a.streetName)+", "+(null===e||void 0===e||null===(l=e.registerAddress)||void 0===l?void 0:l.city)+", "+(null===e||void 0===e||null===(t=e.registerAddress)||void 0===t?void 0:t.state)+", "+(null===e||void 0===e?void 0:e.global_ultimate_country_name)+", "+(null===e||void 0===e||null===(n=e.registerAddress)||void 0===n?void 0:n.zipcode)},he=n().forwardRef((e,a)=>{const{companyData:l,setSearchBusiness:t,setValue:n,id:i}=e,{setCompanyInfo:o}=D();return(0,E.jsx)(d.A,{className:"dnca-lmn-rounded-8 lmn-w-90 lmn-dcna-m-flex-container","aria-describedby":i,tabIndex:0,ref:a,children:(0,E.jsxs)("div",{className:"lmn-dcna-m-flex-container lmn-dcna-s-flex-container lmn-row dynamic-width",id:i,children:[(0,E.jsx)("div",{className:"lmn-font-size-lg lmn-dnca-w-l-50 lmn-dnca-w-m-75 lmn-font-weight-bold label third",children:l.legalNameOfBusiness}),(0,E.jsx)("div",{id:"business_change_icon",className:"first lmn-dnca-w-l-50 lmn-text-lg-right lmn-text-xl-right lmn-text-md-right lmn-text-2xl-right",style:{cursor:"pointer",color:"#3399ff",backgroundColor:"#0f1632"},onClick:()=>{const e={global_ultimate_country_name:l.global_ultimate_country_name,businessInfo:l.businessInfo};o(null),n([]),t(!1),o(e)},"aria-label":"Change Company Name",role:"button",tabIndex:0,children:(0,E.jsxs)("a",{className:"lmn-text-link-quiet lmn-text-color lmn-hover-underline",style:{color:"#fff !important"},target:"_blank",children:[(0,E.jsx)(z.A,{type:"edit",alt:"icon presenting Change business","aria-hidden":"true"})," Change"]})}),(0,E.jsxs)("div",{className:"label second",children:[(0,E.jsx)("div",{className:"",children:l.address||!l.address&&ve(l)}),(0,E.jsx)("div",{className:"",children:l.headquaterCountry})]})]})})});var ye=l(7835),pe=l(5989),fe=l(605),ge=l(1871);const xe=e=>{var a;let{name:l,label:n,options:i=[],onChange:o,onApply:s,size:r,style:c,WrapperClassName:d,placeholder:m,error:u,id:$,menuClass:v,menuStyle:h}=e;const{companyInfo:y}=D(),[p,f]=(0,t.useState)([...i]),g=(0,t.useRef)(null),[x,_]=(0,t.useState)(""),C=e=>{if(x&&x.length>0){const a=x.length,l=e.target;l&&(void 0!==l.setSelectionRange?l.setSelectionRange(a,a):l.value=x)}},w=e=>{"Tab"===e.key&&e.stopPropagation()};return(0,t.useEffect)(()=>{const e=de();console.log("Current Zoom Level:",e)},[]),(0,E.jsx)("div",{className:d,"aria-describedby":$,children:(0,E.jsx)(ge.Ay,{placeholder:m||"",multiple:!0,name:l,value:null===y||void 0===y?void 0:y.operatedCountry,"aria-label":m||"",label:"Countries(".concat((null===y||void 0===y||null===(a=y.operatedCountry)||void 0===a?void 0:a.length)||0,")"),style:c,size:r,invalid:!!u,onClose:()=>{_(""),f(i)},onChange:e=>o&&o(e),onApply:e=>s&&s(e),onVisibleChange:e=>{setTimeout(()=>{e&&g.current&&g.current.focus()},200)},dropdownRender:(e,a)=>(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("div",{id:"multipleDD",className:"lmn-dropdown-header lmn-dropdown-header-search lmn-border-radius-none",children:(0,E.jsxs)("div",{className:"lmn-input-text lmn-search lmn-search-alt",children:[(0,E.jsx)(ye.Ay,{placeholder:m||"",value:x,ref:g,onFocus:C,onChange:e=>{const a=e.target.value;_(a),f(i.filter(e=>e.toLocaleLowerCase().includes(a.toLocaleLowerCase())))},onKeyDown:w}),(0,E.jsx)(z.A,{type:"search",className:"lmn-input-prefix-icon lmn-font-size-sm"})]})}),e,a]}),getPopupContainer:()=>document.querySelector("#root"),menuAlignWidth:!0,menuStyle:h,menuClass:v,children:p.length>0&&b().map(p,(e,a)=>(0,E.jsx)(ge.Ay.Item,{value:e,"aria-label":e,"aria-describedby":e,"data-cv-tracking-id":"dropdown-item".concat(a,"-tracking-id"),children:e},e))})})},_e=e=>{let{errorIndustryType:a,errorSalesSize:l,errorVcPe:i,errorWebsite:o,validateFields:s,setTouchedFields:c,tochedFields:d}=e;const{companyInfo:m,setCompanyInfo:u,staticData:b}=D(),{Industries:$,SalesSize:v}=le(m,b),h=n().useRef(null),y=(0,t.useCallback)((e,a,l)=>{const t=(0,r.A)((0,r.A)({},m),{},{[a]:e});var n;("industry"===a&&(t.salesSize="",t.isCompanyVCorPEBacked=""),"salesSize"===a&&(t.isCompanyVCorPEBacked=""),l||"operatedCountry"!==a)||(null===(n=h.current)||void 0===n||n.focus());u(t),c(e=>{const l=(0,r.A)((0,r.A)({},e),{},{[a]:!0});return s(t,l),l})},[m,u]);(0,t.useEffect)(()=>{if("Pre-Revenue"===(null===m||void 0===m?void 0:m.salesSize)){const e=document.querySelectorAll(".lmn-selection-control");e.forEach(a=>{a.setAttribute("tabindex","0"),a.addEventListener("keydown",a=>{const l=["Yes","No"],t=l.indexOf(a.target.textContent);if("Enter"===a.key&&a.target.textContent){const e={target:{name:"isCompanyVCorPEBacked",value:a.target.textContent}};p(e)}else if("ArrowUp"===a.key&&a.target.textContent){const a=t>0?t-1:t,n=e[a];n&&n.focus();const i={target:{name:"isCompanyVCorPEBacked",value:l[a]}};p(i)}else if("ArrowDown"===a.key&&a.target.textContent){const a=t{const{name:a,value:l}=e.target,t=(0,r.A)((0,r.A)({},m),{},{[a]:l});u(t),(null===d||void 0===d?void 0:d.website)&&c(e=>{const a=(0,r.A)((0,r.A)({},e),{},{website:!0});return s(t,a),a})},[m,u]),f=(0,t.useCallback)(e=>{const{name:a,value:l}=e.target,t=(0,r.A)((0,r.A)({},m),{},{[a]:l});c(e=>{const a=(0,r.A)((0,r.A)({},e),{},{website:!0});return s(t,a),a})},[m,u]);return(0,E.jsxs)("div",{className:"lmn-dnca-w-l-50 lmn-dnca-w-m-50",children:[(0,E.jsxs)("div",{id:"sub-countries",className:"lmn-form-group lmn-mb-5 lmn-mt-5 lmn-dnca-w-m-100 lmn-dnca-w-s-100",children:[(0,E.jsx)("label",{className:"lmn-text-wrap",htmlFor:"country",children:"Other Countries with Subsidiaries or Affiliates (Optional)"}),(0,E.jsx)(xe,{id:"country",isMultiple:!0,placeholder:"Subsidiaries Countries",label:"Other Countries with Subsidiaries or Afiliates (Optional)",menuStyle:{border:"1px solid #255be3",borderRadius:"2px"},options:b.jurisdictions,onChange:e=>y(e,"operatedCountry",!0),onApply:e=>y(e,"operatedCountry"),value:null===m||void 0===m?void 0:m.operatedCountry})]}),(0,E.jsxs)("div",{className:" lmn-dnca-w-m-100 lmn-dnca-w-s-100",ref:h,tabIndex:-1,children:[(0,E.jsxs)("div",{className:"lmn-form-group lmn-mb-5",children:[(0,E.jsx)("label",{className:"lmn-required label",children:"Industry Type"}),(0,E.jsx)(be,{label:"Industry Type",id:"industry_type",value:$.length>1?null===m||void 0===m?void 0:m.industry:$[0],options:$||[],error:a,onChange:e=>y(e,"industry")}),a&&(0,E.jsx)("small",{children:a})]}),(0,E.jsxs)("div",{className:"lmn-form-group lmn-mb-5",children:[(0,E.jsx)("label",{className:"lmn-required label",htmlFor:"website",children:"Company Website"}),(0,E.jsx)(ye.Ay,{id:"website",name:"website",invalid:!!o,value:null===m||void 0===m?void 0:m.website,onChange:p,onFocus:p,onBlur:f,"aria-required":!0,"aria-describedby":"website_error"}),o&&(0,E.jsx)("div",{"aria-live":"assertive",role:"alert",id:"website_error",children:(0,E.jsx)("small",{children:o})})]}),(0,E.jsxs)("div",{className:"lmn-form-group lmn-mb-5",children:[(0,E.jsx)("label",{className:"lmn-font-size-xs lmn-required label",children:"Annual Revenue"}),(0,E.jsx)(be,{label:"Annual Revenue",id:"sales_size",value:null===m||void 0===m?void 0:m.salesSize,options:v||[],error:l,onChange:e=>y(e,"salesSize")}),l&&(0,E.jsx)("small",{children:l})]}),"Pre-Revenue"===(null===m||void 0===m?void 0:m.salesSize)&&(0,E.jsxs)("div",{className:"lmn-form-group lmn-w-75 lmn-mr-5",tabIndex:0,children:[(0,E.jsx)("label",{className:"lmn-font-size-xs label lmn-required",id:"groupId".concat("-label"),children:"Is your company VC/PE backed?"}),(0,E.jsxs)(pe.A,{name:"isCompanyVCorPEBacked",value:null===m||void 0===m?void 0:m.isCompanyVCorPEBacked,onChange:p,"aria-label":"Is your company VC/PE backed?","aria-required":!0,"aria-invalid":!!i,"aria-describedby":i?"groupId".concat("-error"):null,children:[(0,E.jsx)(fe.A,{inline:!0,className:"label","aria-label":"Is your company VC/PE backed? Yes",value:"Yes",id:"groupId".concat("-yes"),children:"Yes"}),(0,E.jsx)(fe.A,{inline:!0,className:"label","aria-label":"Is your company VC/PE backed? No",value:"No",id:"groupId".concat("-no"),children:"No"})]}),i&&(0,E.jsx)("small",{id:"groupId".concat("-error"),role:"alert",children:i})]})]})]})},Ce=n().memo(_e);var we=l(7548);const Se=(0,t.forwardRef)((e,a)=>{let{errors:l,page:n,id:i,handleChange:o,isSubmitClicked:s}=e;const r=(0,t.useRef)(null);return(0,t.useEffect)(()=>{const e=a||r;e&&"current"in e&&e.current&&e.current.focus()},[s]),l&&0!==l.length?(0,E.jsx)("div",{id:i,ref:a||r,tabIndex:-1,children:(0,E.jsx)(we.Ay,{style:{boxShadow:"0px 5px 10px 1px"},className:"icgds lmn-alert lmn-alert-danger",type:"warning",showIcon:!0,closable:!0,onClose:()=>o&&o(),customizeIcon:(0,E.jsx)(z.A,{type:"alert-triangle",style:{color:"black"}}),children:"BusinessNeedsPage"===n?"Select at least one option. Then, add a description between 80 and 1,000 characters.":"Please provide the missing info highlighted in red below."})}):null}),je=e=>{var a;let{setIsAddCompanyInfo:l}=e;const{companyInfo:n,setCompanyInfo:i,isAboutBusiness:o,setIsAboutBusiness:s,staticData:c,steps:d,setSteps:m,isEditMode:$,setIsCancelClicked:v}=D(),[h,y]=(0,t.useState)([]),p=b().keys(c.countries),[f,g]=(0,t.useState)([]),[x,_]=(0,t.useState)(!1),[w,S]=(0,t.useState)([]),[j,A]=(0,t.useState)(!1),[N,k]=(0,t.useState)(""),[P,T]=(0,t.useState)({}),[B,R]=(0,t.useState)({}),[L,z]=(0,t.useState)(!1),O=(0,t.useRef)(null),F=(0,t.useRef)(null),H=(0,t.useRef)(null);(0,t.useEffect)(()=>{var e;null===(e=H.current)||void 0===e||e.focus(),window.innerWidth<768&&window.parent.location.href.includes("contact-us")?window.parent.scroll(0,0):window.parent.location.href.includes("contact-us")&&window.parent.scroll({top:0,behavior:"smooth"})},[]),(0,t.useEffect)(()=>{(async()=>{try{if(N.length>2){var e;const a=20,l=j?w:[],t={global_ultimate_country_name:"United States"===(null===n||void 0===n?void 0:n.global_ultimate_country_name)?"USA":null===n||void 0===n||null===(e=n.global_ultimate_country_name)||void 0===e?void 0:e.toUpperCase(),searchText:N,limit:a,offset:0},i=await(async(e,a)=>{try{return(await I.A.post(e,a)).data.data}catch(l){throw M(l),l}})(C,t),o=((e,a)=>{const l=[];return b().forEach(e,e=>{var t,n,i,o,s,r,c;const d="USA"===(null===e||void 0===e?void 0:e.global_ultimate_country_name)?"United States":$e(null===e||void 0===e?void 0:e.global_ultimate_country_name,a),m={duns:e.duns,legalNameOfBusiness:null!==(t=null===e||void 0===e?void 0:e.business_name)&&void 0!==t?t:"",registerAddress:{streetName:null!==(n=null===e||void 0===e?void 0:e.street_address)&&void 0!==n?n:"",city:null!==(i=null===e||void 0===e?void 0:e.city_name)&&void 0!==i?i:"",state:null!==(o=null===e||void 0===e?void 0:e.state_or_province_abbreviation)&&void 0!==o?o:"",country:null!==d&&void 0!==d?d:"",zipcode:null!==(s=null===e||void 0===e?void 0:e.postal_code)&&void 0!==s?s:""},headquaterCountry:d,global_ultimate_country_name:d,industryBasic:null!==(r=null===e||void 0===e?void 0:e.industry)&&void 0!==r?r:"",industry:"",address:null!==(c=null===e||void 0===e?void 0:e.address)&&void 0!==c?c:""};l.push(m)}),l})(i,c),s=b().concat(l,o);S(s)}else S([]),g([])}catch(a){Y({}),console.error("\ud83d\ude80 ~ getCompaniesData ~ error:",a)}})()},[N,j]);(0,t.useEffect)(()=>{null!==n&&void 0!==n&&n.legalNameOfBusiness&&_(!0),x&&F.current&&F.current.focus()},[x]);const V=(0,t.useCallback)(()=>{i(null),s(!1),k(""),A(!1),v(!0)},[i]),U=(0,t.useCallback)(()=>{const e={businessInfo:null===n||void 0===n?void 0:n.businessInfo};i(e),s(!1),k(""),A(!1)},[i]),K=(0,t.useCallback)((e,a)=>{const t=(0,r.A)((0,r.A)({},n),{},{[a]:e});if("global_ultimate_country_name"===a){const a={global_ultimate_country_name:e,businessInfo:null===n||void 0===n?void 0:n.businessInfo};e.includes("United States")||l(!0),_(!1),i(a)}else i(t);R(e=>{const l=(0,r.A)((0,r.A)({},e),{},{[a]:!0});return X(t,l),l})},[n,i]),Z=e=>(0,u.isEmpty)(e)&&N.length>2?(0,E.jsx)("div",{id:"no_record",tabIndex:0,children:"No record found"}):(0,u.isEmpty)(e)?void 0:(0,E.jsxs)("div",{id:"legal_business_id",tabIndex:0,style:{textOverflow:"ellipsis",whiteSpace:"nowrap"},children:[(0,E.jsx)("div",{className:"lmn-font-size-lg lmn-font-weight-bold",children:e.legalNameOfBusiness}),(0,E.jsx)("div",{className:"lmn-font-size-xs ",style:{overflow:"hidden",whiteSpace:"nowrap"},children:(0,E.jsx)("span",{className:"lmn-text-color-desc lmn-pr-3 lmn-border-color-1",children:e.address})})]}),Y=(0,t.useCallback)(e=>{if((0,u.isEmpty)(e)){const a={label:Z(e),value:""};g(()=>[a])}else{const a=Object.keys(e).map(a=>e[a].map(e=>({label:Z(e),value:JSON.stringify(e)})));g(()=>{var e;return[...null!==(e=null===a||void 0===a?void 0:a[0])&&void 0!==e?e:[]]})}},[g,Z]),J=(0,t.useMemo)(()=>b().groupBy(w,"headquaterCountry"),[w]);(0,t.useEffect)(()=>{Y(J)},[w]);const X=function(e){var a,l;let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:B;const n=(0,r.A)({},P);t.global_ultimate_country_name&&!ce(null===e||void 0===e?void 0:e.global_ultimate_country_name)?n.global_ultimate_country_name="Please select global ultimate country name":delete n.global_ultimate_country_name;const i=null!==(a=null===e||void 0===e||null===(l=e.website)||void 0===l?void 0:l.toLowerCase())&&void 0!==a?a:"";t.website&&!ce(i,"website")?n.website="Please enter a valid website":delete n.website,t.industry&&!ce(null===e||void 0===e?void 0:e.industry)?n.industry="Please select industry type":delete n.industry,t.salesSize&&!ce(null===e||void 0===e?void 0:e.salesSize)?n.salesSize="Please select annual revenue":delete n.salesSize,t.isCompanyVCorPEBacked&&!ce(null===e||void 0===e?void 0:e.isCompanyVCorPEBacked)?n.isCompanyVCorPEBacked="Please select is your Company VC or PE Backed":delete n.isCompanyVCorPEBacked;const o=f.some(e=>"object"===typeof e&&""!==e.value);return t.registerBusiness&&!o&&N.length<2?n.registerBusiness="Please select is your Registered Company Name":delete n.registerBusiness,T(n),b().isEmpty(n)},ae=e=>{var a;const l=Array.isArray(e)?null===(a=e[0])||void 0===a?void 0:a.toLowerCase():null===e||void 0===e?void 0:e.toLowerCase();return l&&("united states"===l||"usa"===l)},le=(0,t.useMemo)(()=>{var e;return ae(null===n||void 0===n?void 0:n.global_ultimate_country_name)?(null===n||void 0===n?void 0:n.global_ultimate_country_name)&&(null===n||void 0===n?void 0:n.industry)&&(null===n||void 0===n?void 0:n.salesSize)&&ce(null===n||void 0===n||null===(e=n.website)||void 0===e?void 0:e.toLocaleLowerCase(),"website")&&te(n):null===n||void 0===n?void 0:n.global_ultimate_country_name},[n]);return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsxs)("div",{children:[(0,E.jsx)("div",{ref:O}),(0,E.jsx)("div",{className:"lmn-dnca-w-l-100 lmn-dnca-w-m-100 lmn-dnca-w-s-100",children:L&&Object.values(P).length>0&&(0,E.jsx)(Se,{id:"companySearch-alert",errors:Object.values(P),handleChange:()=>{z(!L)},isSubmitClicked:L})})]}),(0,E.jsxs)("div",{className:"lmn-dnca-w-l-50 lmn-dnca-w-m-50 lmn-dnca-w-s-100 lmn-mb-6 ".concat(!ae(null===n||void 0===n?void 0:n.global_ultimate_country_name)&&"lmn-mb-64px"),children:[(0,E.jsx)("label",{htmlFor:"headquarter location",className:"label lmn-required",id:"business_name",children:"Headquarters Location"}),(0,E.jsx)(be,{id:"global_country",label:"Headquarters Location",placeholder:"Select Country",options:null!==p&&void 0!==p?p:[],value:null!==(a=null===n||void 0===n?void 0:n.global_ultimate_country_name)&&void 0!==a?a:"",error:P.global_ultimate_country_name,onChange:e=>K(e,"global_ultimate_country_name")})]}),(0,E.jsxs)("div",{onClick:e=>{e.stopPropagation()},children:[ae(null===n||void 0===n?void 0:n.global_ultimate_country_name)&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("label",{className:"label lmn-mb-3 lmn-required",htmlFor:"registered_company_name",children:"Registered Company Name"}),(()=>{if(x)return(0,E.jsx)(he,{id:"typeahead_business_card",companyData:n,setSearchBusiness:_,setValue:y,ref:F});{const e=f.some(e=>"object"===typeof e&&""!==e.value);return(0,E.jsxs)("div",{className:"searchWrap lmn-mb-4",id:"typeahead_business",children:[(0,E.jsx)(G.A,{value:h,id:"registered_company_name",onSearch:e=>(e=>{const a=e.replace(/[^a-zA-Z0-9\s]/g,"");e!==a?T(e=>(0,r.A)((0,r.A)({},e),{},{searchText:"Special Character Not allowed"})):(T(e=>(0,r.A)((0,r.A)({},e),{},{searchText:""})),k(a)),k(e)})(e),onChange:e=>(e=>{const a=JSON.parse(e),l=(0,r.A)({businessInfo:null===n||void 0===n?void 0:n.businessInfo,isCompanySource_Flag:!0},a);i(l),_(!0)})(e),options:f,allowClear:!0,invalid:!!P.registerBusiness||!!P.searchText,highlightOption:!0,popupStyle:{display:N.length>2&&e?"":"none"},"aria-required":!0,"aria-describedby":"registered_business_name searchText",children:(0,E.jsx)(W.A,{size:"md",placeholder:"Type here"})}),P.registerBusiness&&(0,E.jsx)("div",{"aria-live":"assertive",role:"alert",id:"registered_business_name",children:(0,E.jsx)("small",{children:P.registerBusiness})}),P.searchText&&(0,E.jsx)("div",{"aria-live":"assertive",role:"alert",id:"search_text_error",children:(0,E.jsx)("small",{children:P.searchText})})]})}})()]}),x&&ae(null===n||void 0===n?void 0:n.global_ultimate_country_name)?(0,E.jsx)(E.Fragment,{children:(0,E.jsx)(Ce,{errorIndustryType:P.industry,errorSalesSize:P.salesSize,errorVcPe:P.isCompanyVCorPEBacked,errorWebsite:P.website,validateFields:X,setTouchedFields:R,tochedFields:B})}):ae(null===n||void 0===n?void 0:n.global_ultimate_country_name)&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("label",{className:"lmn-mb-3 lmn-mt-6 lmn-font-size-12",children:"If your company name is not appearing here, please add your company information manually"}),(0,E.jsx)("div",{children:(0,E.jsx)(q,{showDivider:!1,cancelText:"Add Company",onCancel:()=>{if(null!==n&&void 0!==n&&n.global_ultimate_country_name){l(!0);const e=(0,r.A)((0,r.A)({},n),{},{isCompanySource_Flag:!1});i(e)}}})})]}),o&&(0,E.jsx)(E.Fragment,{children:(0,E.jsx)("div",{children:(0,E.jsx)(q,{submitText:"Continue",onBack:U,onCancel:V,onSubmit:()=>{if(z(!0),le){const e=ae(null===n||void 0===n?void 0:n.global_ultimate_country_name)?Q(d,1,$):Q(d,0,$);ae(null===n||void 0===n?void 0:n.global_ultimate_country_name)||l(!0),ee(O,"ccbContactUsFormStep1CompanyInfoCompleted"),m(e),T({})}else R(()=>{let e={};const a=f.some(e=>"object"===typeof e&&""!==e.value);return ae(null===n||void 0===n?void 0:n.global_ultimate_country_name)?a?(e={industry:!0,salesSize:!0,isCompanyVCorPEBacked:!1,website:!0},null!==n&&void 0!==n&&n.salesSize&&(e=(0,r.A)((0,r.A)({},e),{},{isCompanyVCorPEBacked:!0}))):e={registerBusiness:!0}:e={global_ultimate_country_name:!0},X(n,e),e});window.parent.location.href.includes("contact-us")&&window.scrollTo(0,0)}})})})]})]})},Ae=n().memo(je);var Ne=l(2968);const Ie=(0,t.forwardRef)(e=>{var a,l;let{companyInfo:n,onChange:i,id:o,errorBusiness:s}=e;const{staticData:c,setCompanyInfo:d}=D(),m=b().keys(c.countries),u=(0,t.useRef)(null),$=(0,t.useRef)(null),v=(0,t.useRef)(null),[h,y]=(0,t.useState)(!1),[p,f]=(0,t.useState)(n),[g,x]=(0,t.useState)();(0,t.useEffect)(()=>{var e;null===(e=v.current)||void 0===e||e.focus()},[null===n||void 0===n?void 0:n.global_ultimate_country_name]);const _=e=>{if("Apply"==e){const e=(0,r.A)((0,r.A)({},n),{},{global_ultimate_country_name:g,industry:"",legalNameOfBusiness:"",operatedCountry:[],salesSize:"",website:""});null===e||void 0===e||delete e.isCompanyVCorPEBacked,d(e),f(e),y(!1),e&&i(e,"global_ultimate_country_name")}else{const e=(0,r.A)({},p);y(!1),e&&i(e,"global_ultimate_country_name")}};(0,t.useEffect)(()=>{const e=document.getElementsByClassName("lmn-modal-centered")[0];if(e&&window.innerWidth<768){e.classList.remove("lmn-modal-centered");const a=document.getElementsByClassName("lmn-modal-content")[0];a.style.marginLeft="7.5%",a.style.marginRight="7.5%",a.style.marginTop="100%"}if(h&&u.current){const e=null===u||void 0===u?void 0:u.current.querySelector(".lmn-btn.lmn-btn-warning");setTimeout(()=>{var a,l;null===(a=u.current)||void 0===a||a.focus(),e&&e.focus(),window.parent.location.href.includes("contact-us")&&(null===(l=u.current)||void 0===l||l.scrollIntoView({behavior:"smooth"}))},100)}},[h]);const C=(e,a,l)=>{if("global_ultimate_country_name"===a)y(!0),x(e);else{const l=(0,r.A)((0,r.A)({},n),{},{[a]:e});l&&i(l,a)}var t;l||"operatedCountry"!==a||(null===(t=$.current)||void 0===t||t.focus())};return(0,E.jsx)("div",{className:" lmn-dnca-w-s-100 lmn-dnca-w-m-100 lmn-dnca-w-m-60 lmn-dnca-w-l-60 lmn-dnca-w-xl-60",children:(0,E.jsxs)("div",{className:"lmn-mb-5",children:[(0,E.jsxs)("div",{className:"lmn-form-group lmn-mb-5",ref:v,tabIndex:-1,children:[(0,E.jsx)("label",{htmlFor:"headquarter location",className:"label lmn-required",children:"Headquarters Location"}),(0,E.jsx)(be,{id:"global_country",label:"Headquarters Location",options:null!==m&&void 0!==m?m:[],value:null!==(a=null===n||void 0===n?void 0:n.global_ultimate_country_name)&&void 0!==a?a:"",onChange:e=>C(e,"global_ultimate_country_name")}),h&&(0,E.jsx)(Ne.A,{"aria-modal":"true",visible:h,status:"warning",ref:u,"aria-label":"If you select a new country, you need to make changes to your other information.",title:(0,E.jsx)("span",{tabIndex:0,children:"If you select a new country, you need to make changes to your other information."}),applyText:"Make Changes",onApply:()=>_("Apply"),onCancel:()=>_("Cancel"),closable:!1})]}),(0,E.jsxs)("div",{id:"sub-countries",className:" lmn-form-group lmn-mb-5",children:[(0,E.jsx)("label",{className:"lmn-text-wrap",htmlFor:"operated_country",children:"Other countries with Subsidiaries or Affiliates (Optional)"}),(0,E.jsx)(xe,{id:"operated_country",isMultiple:!0,placeholder:"Subsidiaries Countries",label:"Other Countries with Subsidiaries or Afiliates (Optional)",menuStyle:{border:"1px solid #255be3",borderRadius:"2px"},options:c.jurisdictions,onChange:e=>C(e,"operatedCountry",!0),onApply:e=>C(e,"operatedCountry"),value:null===n||void 0===n?void 0:n.operatedCountry})]}),(0,E.jsxs)("div",{className:"lmn-form-group lmn-mb-5",children:[(0,E.jsx)("label",{className:"lmn-required",htmlFor:o,children:"Company Name"}),(0,E.jsx)(ye.Ay,{ref:$,id:o,disabled:null===n||void 0===n?void 0:n.isCompanySource_Flag,name:"legalNameOfBusiness","aria-describedby":"company_name","aria-required":!0,value:null!==(l=null===n||void 0===n?void 0:n.legalNameOfBusiness)&&void 0!==l?l:"",onChange:e=>{const{name:a,value:l}=e.target,t=(0,r.A)((0,r.A)({},n),{},{[a]:l});i(t,a)}}),s&&(0,E.jsx)("div",{"aria-live":"assertive",role:"alert",id:"company_name",children:(0,E.jsx)("small",{children:s})})]})]})})});var ke=l(7757);const Pe=e=>{let{name:a,label:l,options:n=[],value:i,onChange:o,className:s,size:r,style:c,WrapperClassName:d,disabled:m,ariaLabelledBy:u,placeholder:$}=e;return(0,t.useEffect)(()=>{const e=de();console.log("Current Zoom Level:",e)},[]),(0,E.jsxs)("div",{className:d,children:[l&&(0,E.jsx)("label",{className:"lmn-form-label lmn-d-block",children:l}),(0,E.jsx)(ge.Ay,{placeholder:$||"",className:s,onChange:e=>{o(e)},value:i,disabled:m,"aria-label":u,style:c,name:a,"data-cv-tracking-id":"dropdown-tracking-id",size:r||"default",children:n.length>0&&b().map(n,(e,a)=>(0,E.jsx)(ge.Ay.Item,{value:e,"aria-labelledby":e,"data-cv-tracking-id":"dropdown-item".concat(a,"-tracking-id"),children:e},e))})]})};var Me=l(8139),Te=l.n(Me);const Ee=e=>{let{title:a,labelCheckbox:l,data:n,className:i,companyInfo:o,onChange:s,countries:c,errorCity:d,errorState:m,errorZip:u,errorStreet:b}=e;const[$,v]=(0,t.useState)(!1),[h,y]=(0,t.useState)(n);(0,t.useEffect)(()=>{l&&v(!0)},[l]);const p=(0,t.useCallback)(()=>{v(!$)},[$,v]),f=(0,t.useCallback)(e=>{const{name:a,value:l}=e.target,t=(0,r.A)((0,r.A)({},h),{},{[a]:l});y(t),s&&s(t,a)},[h,s]),g=e=>{const a=e.target.value;/^[A-Za-z\s]*$/.test(a)&&f(e)};return(0,E.jsxs)("div",{className:Te()(i," lmn-dnca-w-l-60 lmn-dnca-w-m-60 lmn-dnca-w-xl-60"),children:[(0,E.jsx)("h4",{className:"lmn-text-color",role:"heading","aria-level":4,children:a}),l&&(0,E.jsx)("div",{className:"lmn-mt-5 lmn-text-color-0",children:(0,E.jsx)(ke.A,{checked:$,size:"sm",onClick:p,children:l})}),!$&&(0,E.jsxs)("div",{children:[(0,E.jsxs)("div",{className:"",children:[(0,E.jsxs)("div",{className:"lmn-form-group lmn-mb-5",children:[(0,E.jsx)("label",{className:"lmn-required",htmlFor:"streetName",children:"Street Name"}),(0,E.jsx)(ye.Ay,{id:"streetName",name:"streetName",value:null===h||void 0===h?void 0:h.streetName,"aria-label":"Street Name",invalid:!!b,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},"aria-describedby":"street_name","aria-required":!0,onChange:f}),b&&(0,E.jsx)("div",{"aria-live":"assertive",id:"street_name",role:"alert",children:(0,E.jsx)("small",{children:b})})]}),(0,E.jsxs)("div",{id:"selected_country",className:"lmn-form-group lmn-mb-5",children:[(0,E.jsx)("label",{className:"lmn-required",children:"Country"}),(0,E.jsx)(Pe,{name:"country",style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},disabled:!(null===o||void 0===o||!o.global_ultimate_country_name),options:c,value:null===o||void 0===o?void 0:o.global_ultimate_country_name,onChange:e=>((e,a)=>{const l=(0,r.A)((0,r.A)({},h),{},{[e]:a});y(l),s&&s(l,e)})("country",e)})]})]}),(0,E.jsxs)("div",{className:" lmn-dcna-xl-flex lmn-dcna-l-flex lmn-d-md-flex",children:[(0,E.jsxs)("div",{className:"lmn-dnca-w-l-half lmn-dnca-w-m-half lmn-dnca-w-xl-half lmn-form-group lmn-mb-5",children:[(0,E.jsx)("label",{className:"lmn-required",htmlFor:"city",children:"City"}),(0,E.jsx)(ye.Ay,{id:"city",name:"city","aria-label":"City",value:null===h||void 0===h?void 0:h.city,invalid:!!d,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},pattern:"^[A-Za-z\\s]+$",onChange:g,"aria-required":!0,"aria-describedby":"city_name"}),d&&(0,E.jsxs)("div",{"aria-live":"assertive",id:"city_name",role:"alert",children:[" ",(0,E.jsx)("small",{children:d})," "]})]}),(0,E.jsxs)("div",{className:"lmn-dnca-w-l-half lmn-dnca-w-m-half lmn-dnca-w-xl-half lmn-flex-grow-1 lmn-form-group lmn-mb-5 lmn-ml-2xl-6 lmn-ml-lg-6 lmn-ml-md-6 lmn-ml-xl-6",children:[(0,E.jsx)("label",{className:"lmn-required",htmlFor:"state",children:"State / Province"}),(0,E.jsx)(ye.Ay,{id:"state",name:"state","aria-label":"State / Province","aria-describedby":"state_name",style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},invalid:!!m,value:null===h||void 0===h?void 0:h.state,pattern:"^[A-Za-z\\s]+$",onChange:g,"aria-required":!0}),m&&(0,E.jsxs)("div",{"aria-live":"assertive",id:"state_name",role:"alert",children:[" ",(0,E.jsx)("small",{children:m})," "]})]})]}),(0,E.jsxs)("div",{className:" lmn-dcna-xl-flex lmn-dcna-l-flex lmn-mr-lg-6 lmn-mr-xl-6 lmn-mr-2xl-6",children:[(0,E.jsxs)("div",{className:"lmn-dnca-w-l lmn-dnca-w-l-half lmn-dnca-w-m-half lmn-dnca-w-xl-half lmn-flex-grow-1 lmn-form-group lmn-mb-5",children:[(0,E.jsx)("label",{className:"lmn-required",htmlFor:"zipcode",children:"Zip/Postal Code"}),(0,E.jsx)(ye.Ay,{id:"zipcode",name:"zipcode","aria-describedby":"zip_code","aria-label":"Zip/Postal Code",style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},value:null===h||void 0===h?void 0:h.zipcode,onChange:f,invalid:!!u,"aria-required":!0}),u&&(0,E.jsxs)("div",{"aria-live":"assertive",id:"zip_code",role:"alert",children:[" ",(0,E.jsx)("small",{children:u})," "]})]}),(0,E.jsx)("div",{className:"lmn-dnca-w-l lmn-dnca-w-l-half lmn-dnca-w-m-half lmn-dnca-w-xl-half lmn-flex-grow-1 lmn-form-group lmn-mb-5"})]})]})]})};Ee.defaultProps={labelCheckbox:""};const Be=Ee,Re=e=>{let{className:a,companyInfo:l,onChange:n,errorSalesSize:i,errorIndustryType:o,errorVcPe:s,errorWebSite:c}=e;const{staticData:d}=D(),{Industries:m,SalesSize:u}=le(l,d),[b,$]=(0,t.useState)(!1);(0,t.useEffect)(()=>{if("Pre-Revenue"===(null===l||void 0===l?void 0:l.salesSize)){const e=document.querySelectorAll(".lmn-selection-control");e.forEach(a=>{a.setAttribute("tabindex","0"),a.addEventListener("keydown",a=>{const l=["Yes","No"],t=l.indexOf(a.target.textContent);if("Enter"===a.key&&a.target.textContent){const e={target:{name:"isCompanyVCorPEBacked",value:a.target.textContent}};v(e)}else if("ArrowUp"===a.key&&a.target.textContent){const a=t>0?t-1:t,n=e[a];n&&n.focus();const i={target:{name:"isCompanyVCorPEBacked",value:l[a]}};v(i)}else if("ArrowDown"===a.key&&a.target.textContent){const a=t{if(1===m.length&&!b){const e=(0,r.A)((0,r.A)({},l),{},{industry:m[0]});e.isCompanyVCorPEBacked="",n(e,"industry"),$(!0)}},[m.length,b]);const v=(0,t.useCallback)(e=>{const{name:a,value:t}=e.target,i=(0,r.A)((0,r.A)({},l),{},{[a]:t});n(i,a)},[l,n]),h=(0,t.useCallback)((e,a)=>{const t=(0,r.A)((0,r.A)({},l),{},{[a]:e});"industry"===a&&(t.salesSize="",t.isCompanyVCorPEBacked=""),n(t,a)},[l,n]);return(0,E.jsxs)("div",{className:Te()("lmn-my-5 lmn-dnca-w-m-60 lmn-dnca-w-l-60 lmn-dnca-w-xl-60",a),children:[(0,E.jsx)("h4",{className:"lmn-text-color",role:"heading","aria-level":4,children:"Additional Details"}),(0,E.jsxs)("div",{className:"",children:[(0,E.jsxs)("div",{className:"lmn-form-group lmn-mb-5",children:[(0,E.jsx)("label",{className:"lmn-required",htmlFor:"industry_type",children:"Industry Type"}),(0,E.jsx)(be,{id:"industry_type",value:m.length>1?null===l||void 0===l?void 0:l.industry:m[0],label:"Industry Type",options:m||[],error:o,onChange:e=>h(e,"industry")}),o&&(0,E.jsx)("small",{children:o}),(0,E.jsx)("span",{className:"lmn-hint-text-color lmn-font-size-12",role:"tooltip",id:"industry_type_hint",children:"If you don't see your industry, we may not be able to help."})]}),(0,E.jsxs)("div",{className:"lmn-form-group lmn-mb-5",children:[(0,E.jsx)("label",{className:"lmn-required",htmlFor:"website",children:"Company Website"}),(0,E.jsx)(ye.Ay,{name:"website",id:"company_website",style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},invalid:!!c,"aria-describedby":"company_error","aria-label":"Company Website",value:null===l||void 0===l?void 0:l.website,"aria-required":!0,onChange:v}),c&&(0,E.jsxs)("div",{"aria-live":"assertive",role:"alert",id:"company_error",children:[" ",(0,E.jsx)("small",{children:c})," "]})]})]}),(0,E.jsxs)("div",{className:"",children:[(0,E.jsxs)("div",{className:"lmn-form-group lmn-mb-5",children:[(0,E.jsx)("label",{className:"lmn-required",children:"Annual Revenue"}),(0,E.jsx)(be,{id:"sales_size",label:"Annual Revenue",error:i,value:null===l||void 0===l?void 0:l.salesSize,options:u||[],onChange:e=>h(e,"salesSize")}),i&&(0,E.jsx)("small",{children:i})]}),"Pre-Revenue"===(null===l||void 0===l?void 0:l.salesSize)&&(0,E.jsxs)("div",{className:"lmn-form-group",children:[(0,E.jsx)("label",{className:"lmn-required",id:"groupId".concat("-label"),children:"Is your company VC/PE backed?"}),(0,E.jsxs)(pe.A,{name:"isCompanyVCorPEBacked",value:null===l||void 0===l?void 0:l.isCompanyVCorPEBacked,onChange:v,"aria-label":"Is your company VC/PE backed?","aria-required":!0,"aria-invalid":!!s,"aria-describedby":s?"groupId".concat("-error"):null,children:[(0,E.jsx)(fe.A,{inline:!0,id:"groupId".concat("-yes"),value:"Yes","aria-label":"Is your company VC/PE backed? Yes",tabIndex:0,children:"Yes"}),(0,E.jsx)(fe.A,{inline:!0,id:"groupId".concat("-no"),value:"No","aria-label":"Is your company VC/PE backed? No",tabIndex:0,children:"No"})]}),s&&(0,E.jsx)("small",{id:"groupId".concat("-error"),role:"alert",children:s})]})]})]})},De=e=>{let{setIsAddCompanyInfo:a}=e;const{steps:l,setSteps:n,companyInfo:i,setCompanyInfo:o,staticData:s,setIsBasicInfo:c,setIsAboutBusiness:d,setError:m,setIsEditMode:u,setIsCancelClicked:$}=D(),v=b().keys(s.countries),[h,p]=(0,t.useState)({}),[f,g]=(0,t.useState)({}),[x,_]=(0,t.useState)(!1),C=(0,t.useRef)(null),w=(0,t.useRef)(null);(0,t.useEffect)(()=>{var e;null===(e=C.current)||void 0===e||e.focus(),window.innerWidth<768&&window.parent.location.href.includes("contact-us")?window.parent.scroll(0,0):window.parent.location.href.includes("contact-us")&&window.parent.scroll({top:0,behavior:"smooth"})},[]);const S=function(e,a){var l,t,n,o,s,c;let d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f;const m=(0,r.A)({},h);var u,$,v,y,g;(d.legalNameOfBusiness&&!ce(null===e||void 0===e?void 0:e.legalNameOfBusiness)?m.business="Enter a registered company name.":delete m.business,d.streetName&&!ce(null===e||void 0===e||null===(l=e.registerAddress)||void 0===l?void 0:l.streetName)?m.street="Please enter street name":delete m.street,d.city&&!ce(null===e||void 0===e||null===(t=e.registerAddress)||void 0===t?void 0:t.city)?m.city="Enter city (no numbers or special characters allowed)":delete m.city,d.state&&!ce(null===e||void 0===e||null===(n=e.registerAddress)||void 0===n?void 0:n.state)?m.state="Please enter state":delete m.state,d.zipcode&&!ce(null===e||void 0===e||null===(o=e.registerAddress)||void 0===o?void 0:o.zipcode,"zipcode"))?(m.zip="Zip/Postal Code of Headquarters location (20 characters max)",(0===(null===e||void 0===e||null===(u=e.registerAddress)||void 0===u||null===($=u.zipcode)||void 0===$?void 0:$.length)||(null!==(v=null===e||void 0===e||null===(y=e.registerAddress)||void 0===y||null===(g=y.zipcode)||void 0===g?void 0:g.length)&&void 0!==v?v:0)>20)&&(m.zip="Zip/Postal Code of Headquarters location (20 characters max)")):delete m.zip;d.industry&&!ce(null===e||void 0===e?void 0:e.industry)?m.industryType="Please select industry type":delete m.industryType,d.salesSize&&!ce(null===e||void 0===e?void 0:e.salesSize)?m.salesSize="Please select annual revenue":delete m.salesSize,null!==i&&void 0!==i&&i.salesSize&&d.isCompanyVCorPEBacked&&!ce(null===e||void 0===e?void 0:e.isCompanyVCorPEBacked)?m.vcPe="Please select any":delete m.vcPe;const x=null!==(s=null===e||void 0===e||null===(c=e.website)||void 0===c?void 0:c.toLowerCase())&&void 0!==s?s:"";return d.website&&!ce(x,"website")?m.website="Please enter a valid website":delete m.website,p(m),b().isEmpty(m)},j=(0,t.useCallback)((e,a)=>{const l=(0,r.A)({businessInfo:null===i||void 0===i?void 0:i.businessInfo},e);g(e=>{const t=(0,r.A)((0,r.A)({},e),{},{[a]:!0});return S(l,a,t),t}),o(l)},[i,o]),A=(0,t.useCallback)((e,a,l)=>{console.log("data: ",e,a,l);const t="registerAddress"===l&&e.country?e.country:null;let n=[];if(null!==i&&void 0!==i&&i.operatedCountry){n=null===i||void 0===i?void 0:i.operatedCountry;b().includes(null===i||void 0===i?void 0:i.operatedCountry,i.headquaterCountry)?(n=b().filter(n,e=>e!==i.headquaterCountry),t&&n.unshift(t)):t&&n.unshift(t)}else n=[t];const s=(0,r.A)((0,r.A)({},i),{},{[l]:e},t&&{headquaterCountry:t,operatedCountry:n});g(e=>{const l=(0,r.A)((0,r.A)({},e),{},{[a]:!0});return S(s,a,l),l}),s&&o(s)},[i,o]),N=(0,t.useMemo)(()=>{var e,a,l,t,n;return(null===i||void 0===i?void 0:i.legalNameOfBusiness)&&(null===i||void 0===i||null===(e=i.registerAddress)||void 0===e?void 0:e.streetName)&&(null===i||void 0===i||null===(a=i.registerAddress)||void 0===a?void 0:a.city)&&(null===i||void 0===i||null===(l=i.registerAddress)||void 0===l?void 0:l.state)&&(null===i||void 0===i||null===(t=i.registerAddress)||void 0===t?void 0:t.zipcode)&&(null===i||void 0===i?void 0:i.industry)&&ce(null===i||void 0===i||null===(n=i.website)||void 0===n?void 0:n.toLocaleLowerCase(),"website")&&te(i)},[i]);return(0,E.jsxs)("div",{className:"ccbDncaWrapper lmn-container content-container",children:[(0,E.jsx)("div",{ref:w}),(0,E.jsx)("div",{className:"lmn-dnca-w-l-100 lmn-dnca-w-m-100 lmn-dnca-w-s-100",ref:C,children:x&&Object.values(h).length>0&&(0,E.jsx)(Se,{id:"companyInfo-alert",errors:Object.values(h),handleChange:()=>{_(!x)},isSubmitClicked:x})}),(0,E.jsx)(Ie,{companyInfo:i,id:"basic_info",errorBusiness:h.business,onChange:(e,a)=>j(e,a)}),(0,E.jsx)(O.Ay,{type:"divider",spacingBottom:"md",spacingTop:"md",layoutClass:"cust-border-color"}),(0,E.jsx)(Be,{className:" lmn-dnca-w-s-100 lmn-dnca-w-m-100",title:"Headquarters Information",data:(null===i||void 0===i?void 0:i.registerAddress)||null,companyInfo:i,countries:v,onChange:(e,a)=>A(e,a,"registerAddress"),errorStreet:h.street||"",errorState:h.state||"",errorCity:h.city||"",errorZip:h.zip||""}),(0,E.jsx)(O.Ay,{type:"divider",spacingBottom:"md",spacingTop:"md",layoutClass:"cust-border-color"}),(0,E.jsx)(Re,{className:" lmn-dnca-w-s-100 lmn-dnca-w-m-100",companyInfo:i,onChange:(e,a)=>j(e,a),errorSalesSize:h.salesSize||"",errorIndustryType:h.industryType||"",errorVcPe:h.vcPe||"",errorWebSite:h.website||""}),(0,E.jsx)("div",{children:(0,E.jsx)(q,{submitText:"Continue",onBack:()=>{a(!1)},onCancel:async()=>{n(y),d(!1),u(!1),o(null),c(!1),m(null),a(!1),$(!0)},onSubmit:()=>{var e,a;if(_(!0),N){const e=1,a=e+1,t=l.map(l=>(0,r.A)((0,r.A)({},l),{},{completed:l.step===e,active:l.step===a}));ee(w,"ccbContactUsFormStep1CompanyInfoCompleted"),n(t),p({})}else g(()=>{let e={legalNameOfBusiness:!0,streetName:!0,city:!0,state:!0,zipcode:!0,industry:!0,salesSize:!0,website:!0,isCompanyVCorPEBacked:!1};return null!==i&&void 0!==i&&i.salesSize&&(e=(0,r.A)((0,r.A)({},e),{},{isCompanyVCorPEBacked:!0})),S(i,void 0,e),e});null===(e=C.current)||void 0===e||e.focus(),window.parent.location.href.includes("contact-us")&&(null===(a=C.current)||void 0===a||a.scrollIntoView({behavior:"smooth"}))}})})]})},Le=n().memo(De),ze=()=>{const{isBasicInfo:e}=D(),[a,l]=(0,t.useState)(e);return(0,E.jsx)("div",{children:a?(0,E.jsx)(Le,{setIsAddCompanyInfo:l}):(0,E.jsx)(Ae,{setIsAddCompanyInfo:l})})};var Oe=l(9779);const Fe=(0,t.forwardRef)((e,a)=>{let{updateCountry:l,updatePhone:n,countryCd:i,mobileNum:o,maxLength:s=40,disableFields:r=!1,error:c,id:d,ariaDescribedBy:m=""}=e;const[u,b]=(0,t.useState)(i),[$]=(0,t.useState)(x),[v,h]=(0,t.useState)(o||""),[y,p]=(0,t.useState)(i||""),f=(0,t.useRef)(null),g=(0,t.useRef)(null),_=()=>{var e,a;const l=null===(e=f.current)||void 0===e?void 0:e.getBoundingClientRect();l&&window.parent.location.href.includes("contact-us")&&window.scrollTo({top:l.top,behavior:"smooth"}),null===(a=f.current)||void 0===a||a.focus()};return(0,t.useEffect)(()=>{var e;f.current&&(null===(e=f.current)||void 0===e||e.focus())},[f.current]),(0,E.jsx)("div",{onClick:_,onKeyDown:_,id:"phone_number",children:(0,E.jsx)(Oe.A,{ref:a,addonBefore:(0,E.jsx)(ge.Ay,{label:u,pureMenu:!0,style:{height:"12px !important"},disabled:r,onChange:e=>(e=>{var a;if(e){let a=[];x&&(a=x.filter(a=>a.dial_code_label===e));const[t]=a;p(t.dial_code_label),l(t.dial_code_label),t&&(b("".concat(t.dial_code_label)),n("".concat(v||"").substring(0,s)))}else b("+1"),n("".concat(v||""));null===(a=g.current)||void 0===a||a.focus()})(e),popupClass:"lmn-ui-lg","data-cv-tracking-id":"dropdown-tracking-id","aria-label":"Country Code",value:y,children:$&&$.map((e,a)=>(0,E.jsxs)(ge.Ay.Item,{value:e.dial_code_label,"data-cv-tracking-id":"dropdown-item".concat(a,"-tracking-id"),children:[e.dial_code_label," ",e.label]},e.value+""+a))}),children:(0,E.jsx)(ye.Ay,{id:d,"aria-label":"Phone Number",type:"text",size:"md",ref:g,maxLength:15,value:v,disabled:r,onChange:e=>(e=>{let a=e.target.value?e.target.value.replace(/[^0-9.]/g,""):"";a=""!==a.trim()?Number(a):"",""===e.target.value||/^[0-9\b]+$/.test(e.target.value)?(h(a),n("".concat(a))):n("")})(e),onKeyDown:e=>{const a=e.nativeEvent.keyCode;69!==a&&187!==a&&190!==a||(e.preventDefault(),e.stopPropagation())},invalid:!!c,"aria-describedby":m||""})})})}),He=()=>{var e;const{steps:a,setSteps:l,contactInfo:n,setContactInfo:i,setIsEditMode:s,staticData:c,setIsAboutBusiness:d,setCompanyInfo:m,setIsBasicInfo:u,setError:v,error:h,setIsCancelClicked:p}=D(),f=(0,t.useRef)(null),g=(0,t.useRef)(null),x=(0,t.useRef)(null),_=(0,t.useRef)(null),C=(0,t.useRef)(null),[w,S]=(0,t.useState)(h),[j,A]=(0,t.useState)(""),[N,I]=(0,t.useState)({}),[k,P]=(0,t.useState)({}),[M,T]=(0,t.useState)(!1),B=(0,t.useRef)(null),R=(0,t.useRef)(null),L=function(e){var a;let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:k;const t=(0,r.A)({},N);return l.role&&!ce(null===e||void 0===e?void 0:e.role)?t.role="Please select role":delete t.role,l.firstName&&!ce(null===e||void 0===e?void 0:e.firstName)?t.firstName="Please enter first name":delete t.firstName,l.lastName&&!ce(null===e||void 0===e?void 0:e.lastName)?t.lastName="Please enter last name":delete t.lastName,!l.contactInfoConsent||null!==e&&void 0!==e&&e.contactInfoConsent?delete t.contactInfoConsent:t.contactInfoConsent="Please accept the contact Information Consent.",l.email&&!F(null!==(a=null===e||void 0===e?void 0:e.email)&&void 0!==a?a:"")?t.email="Please enter a valid email address.":delete t.email,I(t),b().isEmpty(t)},z=(0,o.useNavigate)();(0,t.useEffect)(()=>{var e;null===(e=f.current)||void 0===e||e.focus(),window.innerWidth<768&&window.parent.location.href.includes("contact-us")?window.parent.scroll(0,0):window.parent.location.href.includes("contact-us")&&window.parent.scroll({top:0,behavior:"smooth"})},[]),(0,t.useEffect)(()=>{null!==n&&void 0!==n&&n.contactInfoConsent&&i(e=>(0,r.A)((0,r.A)({},e),{},{contactInfoConsent:!1}))},[]);const O=e=>{"keydown"===e.type&&"Enter"==e.key&&(e.preventDefault(),e.target.checked=!e.target.checked);const{name:a,checked:l}=e.target,t=(0,r.A)((0,r.A)({},n),{},{[a]:l});i(t),P(e=>{const n=(0,r.A)((0,r.A)({},e),{},{[a]:l});return L(t,n),n})},F=e=>X.test(e),H=(0,t.useCallback)(e=>{const a=(0,r.A)((0,r.A)({},n),{},{role:e,contactInfoConsent:!1});i(a),P(e=>{const l=(0,r.A)((0,r.A)({},e),{},{role:!0});return L(a,l),l})},[i,n]),V=(0,t.useMemo)(()=>(null===n||void 0===n?void 0:n.role)&&(null===n||void 0===n?void 0:n.firstName)&&(null===n||void 0===n?void 0:n.lastName)&&F(null===n||void 0===n?void 0:n.email)&&(null===n||void 0===n?void 0:n.mobile)&&(null===n||void 0===n?void 0:n.countryCode)&&(null===n||void 0===n?void 0:n.contactInfoConsent),[n]);if(!n)return(0,E.jsx)(E.Fragment,{});const G=e=>{const a=e.target.value;/^[A-Za-z\s]*$/.test(a)&&((e=>{const{name:a,value:l}=e.target,t=(0,r.A)((0,r.A)({},n),{},{[a]:l});i(t),P(e=>{const l=(0,r.A)((0,r.A)({},e),{},{[a]:!0});return L(t,l),l})})(e),i(e=>(0,r.A)((0,r.A)({},e),{},{contactInfoConsent:!1})))},W=()=>{T(!M)};return(0,E.jsxs)("div",{children:[(0,E.jsx)("div",{ref:R}),(0,E.jsx)("div",{ref:f,className:"lmn-dnca-w-l-100 lmn-dnca-w-m-100 lmn-dnca-w-s-100",children:M&&0===Object.values(N).length&&(0,E.jsx)(Se,{ref:B,id:"contactInfoPage-phone-email-alert",errors:re(j,w),handleChange:W})}),(0,E.jsx)("div",{className:"lmn-dnca-w-l-100 lmn-dnca-w-m-100 lmn-dnca-w-s-100",children:M&&Object.values(N).length>0&&(0,E.jsx)(Se,{ref:B,id:"contactInfoPage-alert",errors:Object.values(N),handleChange:W})}),(0,E.jsxs)("div",{className:"lmn-dnca-w-xl-60 lmn-dnca-w-l-60 lmn-dnca-w-m-60",children:[(0,E.jsx)("div",{className:"lmn-mb-6",children:(0,E.jsxs)("div",{className:"lmn-form-group lmn-mb-6",children:[(0,E.jsx)("label",{className:"lmn-required",htmlFor:"Your role",children:"Your role"}),(0,E.jsx)(be,{id:"your_role",label:"Your role",options:c.roles,error:N.role,value:null===n||void 0===n?void 0:n.role,onChange:e=>H(e)}),N.role&&(0,E.jsx)("small",{children:N.role})]})}),(0,E.jsxs)("div",{className:"lmn-mb-6",children:[(0,E.jsxs)("div",{className:"lmn-form-group lmn-mb-5",children:[(0,E.jsx)("label",{className:"lmn-required",htmlFor:"your_first_name",children:"First Name"}),(0,E.jsx)(ye.Ay,{ref:g,id:"your_first_name",pattern:"^[A-Za-z\\s]+$","aria-label":"First name","aria-required":!0,"aria-describedby":"firstName",name:"firstName",value:null===n||void 0===n?void 0:n.firstName,onChange:G,invalid:!!N.firstName}),N.firstName&&(0,E.jsxs)("div",{"aria-live":"assertive",id:"firstName",role:"alert",children:[" ",(0,E.jsx)("small",{children:N.firstName})," "]})]}),(0,E.jsxs)("div",{className:"lmn-form-group lmn-mb-5",children:[(0,E.jsx)("label",{className:"lmn-required",htmlFor:"your_last_name",children:"Last Name"}),(0,E.jsx)(ye.Ay,{ref:x,id:"your_last_name",pattern:"^[A-Za-z\\s]+$","aria-label":"Last name",name:"lastName",value:null===n||void 0===n?void 0:n.lastName,onChange:G,"aria-describedby":"lastName","aria-required":!0,invalid:!!N.lastName}),N.lastName&&(0,E.jsxs)("div",{"aria-live":"assertive",id:"lastName",role:"alert",children:[" ",(0,E.jsx)("small",{children:N.lastName})," "]})]})]}),(0,E.jsxs)("div",{className:"lmn-form-group lmn-mb-6",children:[(0,E.jsxs)("div",{className:"lmn-mb-5",children:[(0,E.jsx)("label",{className:"lmn-required",htmlFor:"your_email",children:"Email Address"}),(0,E.jsx)(ye.Ay,{ref:_,id:"your_email",name:"email",type:"email","aria-label":"Email",invalid:!!N.email,"aria-required":!0,value:null===n||void 0===n?void 0:n.email,onChange:e=>(e=>{const{name:a,value:l}=e.target;F(l)?c.personalEmailDomains.includes(l.split("@")[1].split(".")[0].toLocaleLowerCase())?(S(J),v(J)):(S(Y),v(Y)):(S(""),v(""));const t=(0,r.A)((0,r.A)({},n),{},{[a]:l,contactInfoConsent:!1});i(t),P(e=>{const l=(0,r.A)((0,r.A)({},e),{},{[a]:!0});return L(t,l),l})})(e)}),(0,E.jsx)("div",{style:{color:w?"#FAB728":"#ff7a75",fontSize:"12px",fontWeight:"400",marginTop:"0.25rem"},"aria-live":"assertive",role:"alert",children:w||N.email&&N.email})]}),(0,E.jsxs)("div",{className:"lmn-mb-5",children:[(0,E.jsx)("label",{className:"lmn-required",htmlFor:"phone_number",children:"Phone number"}),(0,E.jsx)(Fe,{id:"input_phone_number","aria-describedby":"phoneNumber",mobileNum:null===n||void 0===n?void 0:n.mobile,countryCd:null===n||void 0===n?void 0:n.countryCode,updatePhone:e=>{i(a=>(0,r.A)((0,r.A)({},a),{},{mobile:e,contactInfoConsent:!1})),ce(e,"mobile")&&A("")},updateCountry:e=>{i(a=>(0,r.A)((0,r.A)({},a),{},{countryCode:e,contactInfoConsent:!1})),!ce(null===n||void 0===n?void 0:n.mobile,"mobile")&&ce(e)||A("")},error:j}),j&&(0,E.jsxs)("div",{"aria-live":"assertive",id:"phoneNumber",role:"alert",children:[" ",(0,E.jsx)("small",{children:j})," "]})]})]}),(0,E.jsxs)("div",{className:"lmn-mb-6",children:[(0,E.jsxs)("div",{className:"lmn-d-flex",children:[(0,E.jsx)(ke.A,{ref:C,id:"consent_cb","aria-label":"I acknowledge Citi may collect, use, share, store, transfer and process my information as described in the Citi Commercial Bank Website Privacy Policy for the purposes of having a CCB Relationship Manager contact me.",name:"contactInfoConsent",checked:null!==(e=null===n||void 0===n?void 0:n.contactInfoConsent)&&void 0!==e&&e,"aria-required":!0,"aria-describedby":"consent_name",onChange:O,onKeyDown:e=>O(e),tabIndex:0}),(0,E.jsx)("div",{className:"lmn-text-color-desc",children:"I acknowledge Citi may collect, use, share, store, transfer and process my information as described in the Citi Commercial Bank Website Privacy Policy."})]}),(0,E.jsx)("div",{className:"lmn-form-group",children:N.contactInfoConsent&&(0,E.jsx)("div",{"aria-live":"assertive",role:"alert",id:"consent_name",children:(0,E.jsx)("small",{children:N.contactInfoConsent})})})]})]}),(0,E.jsx)("div",{children:(0,E.jsx)(q,{submitText:"Continue",onCancel:()=>{l(y),d(!1),s(!1),i($),m(null),u(!1),v(null),z("/"),p(!0)},onBack:async()=>{const e=Q(a,0,!1);l(e),s(!1),u(!0),window.parent.location.href.includes("contact-us")&&window.scrollTo({top:0,behavior:"smooth"})},onSubmit:()=>{if(T(!0),V){const e=Q(a,2);l(e),A(""),ee(R,"ccbContactUsFormStep2ContactInfoCompleted")}else ce(null===n||void 0===n?void 0:n.mobile)&&ce(null===n||void 0===n?void 0:n.countryCode)||A("Please enter country code and number"),P(()=>{const e={role:!0,firstName:!0,lastName:!0,email:!0,contactInfoConsent:!0};return L(n,e),e}),window.parent.location.href.includes("contact-us")&&window.scrollTo({top:0,behavior:"smooth"})}})})]})};var qe=l(9940);const Ve=e=>{let{type:a}=e;const l="localhost"===window.location.hostname,t={barChartDollar:"bar-chart-dollar-bill.svg",dollarBillStack:"dollar-bill-stack.svg",dollarRefresh:"dollar-refresh.svg",flshOn:"flash-on.svg",globe:"globe.svg",green:"green.svg",help:"help.svg",latam:"latam.svg"}[a];if(!t)return null;const n="".concat(l?"../../assets/icons/":"/global/CCBContactus/eppublic/contactus/icons/").concat(t);return(0,E.jsx)("img",{className:"business-icon",style:{width:"100%",maxWidth:"2.5rem"},src:n,"aria-hidden":"true",alt:(e=>"Icon representing ".concat(e.replace(/([A-Z])/g," $1").toLowerCase()))(a)})},Ge=(0,t.forwardRef)((e,a)=>{const{businessNeedInfo:l,setBusinessNeedInfo:n,staticData:i,textAreaValue:o,setTextAreaValue:s}=D(),[c,m]=(0,t.useState)([]),u=(0,t.useRef)([]),$=(0,t.useRef)(null);(0,t.useImperativeHandle)(a,()=>({focusErrorElement:()=>{const e=c.findIndex(e=>"#ff7a75"===e);var a;-1!==e&&u.current[e]&&(null===(a=u.current[e])||void 0===a||a.focus())}})),(0,t.useEffect)(()=>{$.current&&$.current.focus(),window.innerWidth<768&&window.parent.location.href.includes("contact-us")?window.parent.scroll(0,0):window.parent.location.href.includes("contact-us")&&window.parent.scroll({top:0,behavior:"smooth"})},[]);const v=(e,a)=>{"keydown"===e.type&&"Enter"==e.key&&(e.preventDefault(),e.target.checked=!e.target.checked);const t=e.target.checked,i=l&&void 0!==(null===l||void 0===l?void 0:l.businessNeeds)?[...l.businessNeeds]:[],o=i.findIndex(e=>e.title===a);t?-1===o?i.push({title:a,description:"",checked:!0}):i[o].checked=!0:-1!==o&&i.splice(o,1),n(e=>(0,r.A)((0,r.A)({},e),{},{businessNeeds:i}))};return(0,E.jsx)("fieldset",{style:{border:"none"},children:(0,E.jsx)("div",{className:"lmn-dnca-w-l-100",children:b().map(i.businessNeeds,(e,a)=>{var t,i,b,h,y,p;let f=!1;return null!==l&&void 0!==l&&l.businessNeeds.some(a=>a.title===e.title)&&(f=!0),(0,E.jsx)("div",{ref:$,children:(0,E.jsxs)(d.A,{className:"lmn-my-5",id:"CCBBusinessNeed",children:[(0,E.jsxs)("div",{className:"lmn-d-flex",children:[(0,E.jsx)(Ve,{type:e.type}),(0,E.jsx)("div",{className:"lmn-ml-16px lmn-align-content-2xl-center lmn-align-content-xl-center lmn-align-content-lg-center lmn-align-content-md-center lmn-align-content-sm-center",children:(0,E.jsx)("label",{className:"lmn-text-color-desc lmn-mb-0 lmn-font-size-18",htmlFor:"textarea-".concat(a),children:e.title})}),(0,E.jsx)("div",{className:"lmn-mt-4 lmn-ml-sm-64px lmn-ml-2xl-64px lmn-ml-xl-64px lmn-ml-lg-64px lmn-ml-md-64px lmn-ml-md-auto lmn-ml-lg-auto lmn-ml-xl-auto lmn-ml-2xl-auto lmn-ml-sm-auto",children:(0,E.jsx)(ke.A,{defaultChecked:f,checked:null===e||void 0===e?void 0:e.checked,onChange:a=>v(a,e.title),onKeyDown:a=>v(a,e.title),"aria-label":e.title,"aria-describedby":"textarea-".concat(a),"aria-expanded":null===e||void 0===e?void 0:e.checked,tabIndex:0})})]}),(null===l||void 0===l?void 0:l.businessNeeds.some(a=>a.title===e.title))&&(0,E.jsx)("div",{id:"business_needs_textarea",className:"lmn-mt-3 lmn-ml-8 lmn-w-75",children:(0,E.jsxs)("div",{children:[(0,E.jsxs)("label",{className:"lmn-text-color-desc",htmlFor:"textarea-".concat(a),children:[(0,E.jsx)("span",{className:"required-icon",children:"* "}),"Details (between 80-1,000 characters)"]}),(0,E.jsx)(qe.A,{id:"textarea-".concat(a),"aria-required":!0,"aria-describedby":"textarea-".concat(a,"-info"),ref:e=>u.current[a]=e,value:null!==(t=null===l||void 0===l||null===(i=l.businessNeeds)||void 0===i||null===(b=i.find(a=>a.title===e.title))||void 0===b?void 0:b.description)&&void 0!==t?t:"",onChange:t=>{var i;const d=[...null!==(i=null===l||void 0===l?void 0:l.businessNeeds)&&void 0!==i?i:[]],u=d.findIndex(a=>a.title===e.title);-1!==u&&(d[u].description=t.target.value,n(e=>(0,r.A)((0,r.A)({},e),{},{businessNeeds:d})));const b=[...o];b[a]=t.target.value.length,s(b);const $=[...c];$[a]=t.target.value.length>=80?"#a4acaf":"#ff7a75"===$[a]?"#ff7a75":"#a4acaf",m($)},rows:4,cols:20,placeholder:"Describe your banking needs in details",minLength:80,maxLength:1e3,"aria-label":"".concat(e.title," is ").concat(null!==(h=null===l||void 0===l||null===(y=l.businessNeeds)||void 0===y||null===(p=y.find(a=>a.title===e.title))||void 0===p?void 0:p.description)&&void 0!==h?h:""),onBlur:e=>((e,a)=>{const l=[...c];l[a]=e.target.value.length<80?"#ff7a75":"#a4acaf",m(l)})(e,a)}),(0,E.jsx)("div",{className:"lmn-d-flex",children:(0,E.jsxs)("div",{id:"textarea-".concat(a,"-info"),children:[(0,E.jsx)("span",{className:"lmn-hint-text-color lmn-font-size-xs lmn-text-wrap lmn-flex-grow-1 lmn-mr-auto",style:{color:void 0===(null===c||void 0===c?void 0:c[a])?"#a4acaf":null===c||void 0===c?void 0:c[a]},children:"Please enter 80\u20131000 characters to let us know more about your objectives."}),(0,E.jsxs)("span",{className:"lmn-hint-text-color lmn-font-size-xs lmn-pl-4 lmn-ml-lg-auto lmn-ml-xl-auto lmn-ml-2xl-auto lmn-text-nowrap",children:[(null===o||void 0===o?void 0:o[a])>0?null===o||void 0===o?void 0:o[a]:0," / 1000"]})]})})]})})]})},a)})})})}),We=()=>{const{steps:e,setSteps:a,businessNeedInfo:l,setBusinessNeedInfo:n,setIsEditMode:i,isEditMode:o,setIsAboutBusiness:s,setCompanyInfo:r,setContactInfo:c,setIsBasicInfo:d,setError:m,setIsCancelClicked:u,setTextAreaValue:b}=D(),[v,h]=(0,t.useState)(0),[p,f]=(0,t.useState)(!1),[g,x]=(0,t.useState)([]),[_,C]=(0,t.useState)(!1),w=(0,t.useRef)(null);(0,t.useEffect)(()=>{const{count:e,errors:a}=j(null===l||void 0===l?void 0:l.businessNeeds);h(e),x(a),0===e&&f(!1)},[l,v]);const S=(0,t.useMemo)(()=>{var e,a,t;return(null!==(e=null===l||void 0===l||null===(a=l.businessNeeds)||void 0===a?void 0:a.length)&&void 0!==e?e:0)>0&&(null===l||void 0===l||null===(t=l.businessNeeds)||void 0===t?void 0:t.every(e=>{const a=e.description.length;return a>=80&&a<=1e3}))},[l]),j=e=>{let a=0;const l=[];if(!e)return{count:0,errors:[]};0===e.length&&(a++,l.push("At least one business need is required."));for(const t of e){const e=t.description.length;(e<80||e>1e3)&&(a++,l.push('Description for business need "'.concat(t.title,'" must be between 80 and 1000 characters.')))}return{count:a,errors:l}};return(0,E.jsxs)("div",{children:[(0,E.jsx)("div",{className:"lmn-container lmn-d-flex lmn-flex-column left-margin-0",children:_&&p&&v>0&&(0,E.jsx)(Se,{id:"businessNeedsPage-alert",errors:g,page:"BusinessNeedsPage",handleChange:()=>{C(!_)}})}),(0,E.jsx)("div",{ref:w}),(0,E.jsx)(Ge,{}),(0,E.jsx)(q,{submitText:"Continue",onCancel:()=>{a(y),s(!1),n(()=>({businessNeeds:[]})),c($),r(null),i(!1),d(!1),m(null),u(!0),b([]),window.parent.location.href.includes("contact-us")&&window.scrollTo(0,0)},onBack:()=>{const l=ae(e,3);a(l),i(!1),window.parent.location.href.includes("contact-us")&&window.scrollTo(0,0)},onSubmit:()=>{if(C(!0),S){const l=Q(e,3,o);a(l),f(!1),ee(w,"ccbContactUsFormStep3BusinessNeedsCompleted")}else{const{count:e,errors:a}=j(null===l||void 0===l?void 0:l.businessNeeds);e&&(f(!0),x(a))}window.parent.location.href.includes("contact-us")&&window.scrollTo(0,0)}})]})},Ue=(0,t.forwardRef)((e,a)=>{var l,n;const{companyInfo:i,contactInfo:o,businessNeedInfo:s,steps:c,setSteps:d,setIsEditMode:m,setIsBasicInfo:u}=D(),$=(0,t.useRef)(null),v=(0,t.useCallback)(e=>{const a=b().map(c,a=>a.step===e?(0,r.A)((0,r.A)({},a),{},{active:!0}):(0,r.A)((0,r.A)({},a),{},{active:!1}));d(a),m(!0),1===e&&u(!0)},[d,c,m]);(0,t.useEffect)(()=>{$.current&&($.current.focus(),window.parent.location.href.includes("contact-us")&&window.scrollTo({top:0,behavior:"smooth"}))},[]);const h=e=>(0,E.jsx)(E.Fragment,{children:e?(0,E.jsx)(E.Fragment,{children:e}):(0,E.jsx)(E.Fragment,{children:"-"})});return(0,E.jsxs)("div",{className:"lmn-mt-md-16px lmn-mt-2xl-16px lmn-mt-xl-16px lmn-mt-lg-16px lmn-mt-sm-16px",children:[(0,E.jsxs)("div",{children:[(0,E.jsxs)("h5",{ref:$,className:"lmn-text-color-desc lmn-mb-3",tabIndex:-1,children:["Company Information",(0,E.jsx)(z.A,{tabIndex:0,className:"lmn-ml-5 lmn-cursor-pointer",type:"edit",role:"button",alt:"icon representing Company Information","aria-label":"Edit Company Information",onClick:()=>v(1),onKeyDown:e=>"Enter"===e.key&&v(1)})]}),(0,E.jsx)("div",{className:"lmn-container",children:(0,E.jsxs)("ul",{className:"lmn-row lmn-p-0 lmn-text-color",style:{listStyleType:"none"},"aria-label":"Company Information","aria-live":"polite",children:[(0,E.jsxs)("li",{className:"lmn-col-sm lmn-col-md-6 lmn-mb-3",children:[(0,E.jsx)("h6",{className:"lmn-text-color",children:"Company Name"}),(0,E.jsx)("div",{className:"lmn-text-color",children:h(null===i||void 0===i?void 0:i.legalNameOfBusiness)})]}),(0,E.jsxs)("li",{className:"lmn-col-sm lmn-col-md-6 lmn-mb-3",children:[(0,E.jsx)("h6",{className:"lmn-text-color",children:"Company Website"}),(0,E.jsx)("div",{className:"lmn-text-color",role:"text","aria-label":"Company Website",children:h(null===i||void 0===i?void 0:i.website)})]}),(0,E.jsxs)("li",{className:"lmn-col-sm lmn-col-md-6 lmn-mb-3",children:[(0,E.jsx)("h6",{className:"lmn-text-color",children:"Primary Address"}),(0,E.jsx)("div",{className:"lmn-text-color",children:(y=null===i||void 0===i?void 0:i.registerAddress,(0,E.jsx)(E.Fragment,{children:y?(0,E.jsx)(E.Fragment,{children:"".concat(null===y||void 0===y?void 0:y.streetName," ").concat(null===y||void 0===y?void 0:y.city," ").concat(null===y||void 0===y?void 0:y.state," ").concat(null===i||void 0===i?void 0:i.global_ultimate_country_name," ").concat(null===y||void 0===y?void 0:y.zipcode)}):(0,E.jsx)("div",{className:"lmn-mt-3",children:"-"})}))})]}),(0,E.jsxs)("li",{className:"lmn-col-sm lmn-col-md-6 lmn-mb-3",children:[(0,E.jsx)("h6",{className:"lmn-text-color",children:"Other Countries with Subsidiaries or Affiliates"}),(0,E.jsx)("div",{className:"lmn-text-color",children:null!==i&&void 0!==i&&null!==(l=i.operatedCountry)&&void 0!==l&&l.length?null===i||void 0===i||null===(n=i.operatedCountry)||void 0===n?void 0:n.join(", "):"-"})]}),(0,E.jsxs)("li",{className:"lmn-col-sm lmn-col-md-6 lmn-mb-3",children:[(0,E.jsx)("h6",{className:"lmn-text-color",children:"Industry"}),(0,E.jsx)("div",{className:"lmn-text-color",children:h(null===i||void 0===i?void 0:i.industry)})]}),(0,E.jsxs)("li",{className:"lmn-col-sm lmn-col-md-6 lmn-mb-3",children:[(0,E.jsx)("h6",{className:"lmn-text-color",children:"Sales Size"}),(0,E.jsx)("div",{className:"lmn-text-color",children:h(null===i||void 0===i?void 0:i.salesSize)})]}),"Pre-Revenue"===(null===i||void 0===i?void 0:i.salesSize)&&(0,E.jsxs)("li",{className:"lmn-col-sm lmn-col-md-6 lmn-mb-3",children:[(0,E.jsx)("h6",{className:"lmn-text-color",children:"Is your company VC/PE backed?"}),(0,E.jsx)("div",{children:(0,E.jsx)("p",{className:"lmn-m-0 lmn-text-color",children:null===i||void 0===i?void 0:i.isCompanyVCorPEBacked})})]})]})})]}),(0,E.jsx)(O.Ay,{type:"divider",layoutClass:"cust-border-color"}),(0,E.jsxs)("div",{children:[(0,E.jsxs)("h5",{className:"lmn-text-color-desc lmn-mb-3",children:["Contact Information",(0,E.jsx)(z.A,{className:"lmn-ml-5 lmn-cursor-pointer",type:"edit",alt:"icon of Edit Contact Information","aria-label":"Edit Contact Information",role:"button",tabIndex:0,onClick:()=>v(2),onKeyDown:e=>"Enter"===e.key&&v(2)})]}),(0,E.jsx)("div",{className:"lmn-container",children:(0,E.jsxs)("ul",{className:"lmn-p-0 lmn-text-color lmn-row",style:{listStyleType:"none"},"aria-label":"Contact Information","aria-live":"polite",children:[(0,E.jsxs)("li",{className:"lmn-col-12 lmn-mb-3",children:[(0,E.jsx)("h6",{className:"lmn-text-color",children:"Your Role"}),(0,E.jsx)("div",{className:"lmn-text-color",children:null===o||void 0===o?void 0:o.role})]}),(0,E.jsxs)("li",{className:"lmn-col-sm lmn-col-md-6 lmn-mb-3",children:[(0,E.jsx)("h6",{className:"lmn-text-color",children:"First Name"}),(0,E.jsx)("div",{className:"lmn-text-color",children:null===o||void 0===o?void 0:o.firstName})]}),(0,E.jsxs)("li",{className:"lmn-col-sm lmn-col-md-6 lmn-mb-3",children:[(0,E.jsx)("h6",{className:"lmn-text-color",children:"Last Name"}),(0,E.jsx)("div",{className:"lmn-text-color",children:null===o||void 0===o?void 0:o.lastName})]}),(0,E.jsxs)("li",{className:"lmn-col-sm lmn-col-md-6 lmn-mb-3",children:[(0,E.jsx)("h6",{className:"lmn-text-color",children:"Email ID"}),(0,E.jsx)("div",{className:"lmn-text-color",children:null===o||void 0===o?void 0:o.email})]}),(0,E.jsxs)("li",{className:"lmn-col-sm lmn-col-md-6 lmn-mb-3",children:[(0,E.jsx)("h6",{className:"lmn-text-color",children:"Phone Number"}),(0,E.jsx)("div",{className:"lmn-text-color",children:(null===o||void 0===o?void 0:o.countryCode)+" "+(null===o||void 0===o?void 0:o.mobile)})]})]})})]}),(0,E.jsx)(O.Ay,{type:"divider",layoutClass:"cust-border-color"}),(0,E.jsxs)("div",{className:"lmn-mb-md-16px lmn-mb-2xl-16px lmn-mb-xl-16px lmn-mb-lg-16px lmn-mb-sm-16px",children:[(0,E.jsxs)("h5",{className:"lmn-text-color-desc lmn-my-5",children:["Business needs",(0,E.jsx)(z.A,{className:"lmn-ml-5 lmn-cursor-pointer",type:"edit",tabIndex:0,role:"button",alt:"icon of Edit Business Needs","aria-label":"Edit Business Needs",onClick:()=>v(3),onKeyDown:e=>"Enter"===e.key&&v(3)})]}),(0,E.jsx)("div",{children:(0,E.jsx)("ul",{className:"lmn-p-0 lmn-text-color",style:{listStyleType:"none"},"aria-label":"Business Needs","aria-live":"polite",children:Array.isArray(null===s||void 0===s?void 0:s.businessNeeds)&&(null===s||void 0===s?void 0:s.businessNeeds.map(e=>(0,E.jsxs)("li",{children:[(0,E.jsx)("h6",{className:"lmn-text-color",children:e.title.toString()}),(0,E.jsx)("div",{className:"busniess-needs-text",style:{wordBreak:"break-word",whiteSpace:"pre-wrap"},children:e.description.toString()})]})))})})]})]});var y}),Ke=()=>{var e,a,l;const{steps:n,setSteps:i,contactInfo:o,companyInfo:s,businessNeedInfo:c,setIsSubmitted:d,setError:m,setIsAboutBusiness:u,setCompanyInfo:b,setContactInfo:v,setIsBasicInfo:h,setBusinessNeedInfo:p,setTextAreaValue:f,setIsCancelClicked:g}=D(),[x,_]=(0,t.useState)(!1),C=(0,t.useRef)(null);return(0,E.jsxs)("div",{children:[(0,E.jsx)("div",{ref:C}),(0,E.jsx)(Ue,{}),(0,E.jsx)("div",{children:(0,E.jsx)(q,{id:null===(e=window)||void 0===e||null===(a=e.frameElement)||void 0===a||null===(l=a.attributes.getNamedItem("uniqueid"))||void 0===l?void 0:l.value,submitText:"Submit",isLoading:x,onBack:async()=>{const e=ae(n,4);i(e),window.parent.location.href.includes("contact-us")&&window.scrollTo(0,0)},onCancel:()=>{u(!1),b(null),v($),i(y),p(()=>({businessNeeds:[]})),h(!1),m(null),window.parent.location.href.includes("contact-us")&&window.scrollTo(0,0),g(!0)},onSubmit:async()=>{try{var e,a,l,t;f([]),m(null),_(!0);const n={currentPage:"Final",companyInfo:(0,r.A)((0,r.A)({},s),{},{headquaterCountry:null===s||void 0===s?void 0:s.headquaterCountry}),contactInfo:o,businessNeeds:null===c||void 0===c?void 0:c.businessNeeds};ee(C,"ccbContactUsFormComplete"),d(!0);const{data:i}=await P(w,n);console.log(i,"data"),window.parent.location.href.includes("contact-us")&&window.parent.scrollTo(0,0),null===(e=window)||void 0===e||e.parent.lintrk("track",{conversion_id:null===(a=window)||void 0===a||null===(l=a.frameElement)||void 0===l||null===(t=l.attributes.getNamedItem("conversionid"))||void 0===t?void 0:t.value})}catch(n){console.log("LOG: ~ Errror in submitting lead")}finally{_(!1)}}})})]})},Ze=()=>{var e;const{steps:a,isSubmitted:l,isCardOpen:n}=D(),i=b().find(a,{active:!0})||a[0];return i&&(i.active=!0),(0,t.useEffect)(()=>{const e=document.querySelector(".lmn-body-2-single");e&&(e.style.display="none");const a=document.querySelector("#multi-business");if(a){const e=document.createElement("h3");e.textContent="About your business",e.className="custom-about-heading",e.id="about-business-heading",e.setAttribute("role","heading"),e.setAttribute("aria-level","3"),a.insertBefore(e,a.firstChild)}},[]),(0,t.useEffect)(()=>{const e=document.querySelector("#multi-stepper");if(e){e.querySelectorAll(".lmn-card").forEach(e=>{e.classList.remove("lmn-card")})}},[]),(0,t.useEffect)(()=>{const e=document.querySelectorAll(".lmn-steps-item-container"),a=document.querySelectorAll(".lmn-steps-item");e.forEach(e=>{e.setAttribute("role","list")}),a.forEach((e,a)=>{const l=a+1;if(e.classList.contains("lmn-steps-item-active"))e.setAttribute("aria-live","assertive"),e.setAttribute("aria-label","Step ".concat(i.step," ").concat(i.title,", current step")),e.setAttribute("role","listitem");else if(e.classList.contains("lmn-steps-item-complete")){e.setAttribute("aria-live","assertive"),e.setAttribute("aria-label","Step ".concat(l," completed")),e.setAttribute("role","listitem");const a=e.querySelector(".lmn-steps-marker i");a&&a.setAttribute("aria-label","Checkmark")}else e.setAttribute("aria-live","off"),e.setAttribute("aria-label",""),e.setAttribute("role","listitem")})},[a]),(0,t.useEffect)(()=>{const e=[...Array.from(document.querySelectorAll("#multi-stepper .lmn-mb-16px .lmn-text-headline-0")),...Array.from(document.querySelectorAll("#multi-stepper-Review .lmn-mb-16px .lmn-text-headline-0"))];document.querySelectorAll(".custom-step-title").forEach(e=>{e.style.display="none"}),l||e.forEach(e=>{var a;const l=e;l.style.display="none";const t=document.createElement("h4");t.textContent=l.textContent||"",t.className="custom-step-title",t.id="step-title-".concat(l.textContent),t.setAttribute("role","heading"),t.setAttribute("aria-level","4");const n=null===(a=l.parentElement)||void 0===a?void 0:a.parentElement;if(n){var i;n.appendChild(t);const e=null===(i=l.closest(".lmn-border-bottom"))||void 0===i?void 0:i.querySelector(".lmn-text-color-2");e&&n.appendChild(e)}})},[a,l]),(0,E.jsx)(E.Fragment,{children:n&&(0,E.jsx)(d.A,{style:{overflowX:"hidden",overflowY:"auto"},className:"lmn-container lmn-p-0 lmn-height-dnca-sm-100 lmn-dnca-xl-p-9 lmn-dnca-l-p-9 lmn-height-dnca-xs-100",children:(0,E.jsxs)(c.Ay,{title:"About your business",id:"multi-business",children:[(0,E.jsx)(m.Ay,{current:i.step,children:b().map(a,e=>(0,E.jsx)(m.Ay.Step,{title:e.title,subTitle:e.subTitle,completed:e.completed,active:e.active,className:"lmn-dnca-w-100","aria-label":e.title},e.title))}),(0,E.jsxs)(c.Ay.Content,{title:4===i.step&&l?"":null!==(e=i.header)&&void 0!==e?e:i.title,subTitle:4===i.step&&l?"":i.subHeader,id:4!==i.step||l?"multi-stepper":"multi-stepper-".concat(i.title),children:[1===i.step&&(0,E.jsx)(ze,{}),2===i.step&&(0,E.jsx)(He,{}),3===i.step&&(0,E.jsx)(We,{}),4===i.step&&!l&&(0,E.jsx)(Ke,{}),4===i.step&&l&&(0,E.jsx)(V,{})]})]})})})},Ye=(e,a)=>{var n,i,o;let{toggleCardVisibility:s}=e;const{isCardOpen:r}=D(),[c,d]=(0,t.useState)(!0),[m,u]=(0,t.useState)(""),b=(0,t.useRef)(null),$=()=>{ee(b,"ccbContactUsFormStart")};return(0,t.useEffect)(()=>{const e="uat.citigroup.com"===window.location.host?"https://uat.citigroup.com/rcs/v1/akamaiCDN/citigpa/content/banner/businessId/commercial-bank.json":"https://www.citigroup.com/rcs/v1/akamaiCDN/citigpa/content/banner/businessId/commercial-bank--1725002142949.json";I.A.get(e).then(e=>{var a;u(null===e||void 0===e||null===(a=e.data)||void 0===a?void 0:a.data)}).catch(e=>{console.error("Error fetching data:",e)})},[r]),(0,E.jsx)(E.Fragment,{children:(0,E.jsxs)("div",{ref:a,id:"commonHeader",className:"lmn-container",style:{padding:"27px 5px 0px"},children:[(0,E.jsx)("div",{ref:b}),(0,E.jsxs)("div",{className:"lmn-row",children:[(0,E.jsx)("img",{className:"lmn-col-md-2",src:m?"uat.citigroup.com"===window.location.host?"https://uat.citigroup.com/rcs/v1/siteIds/citigpa/asset/".concat(null===(n=m.content_json)||void 0===n?void 0:n.image,".jpg"):"https://www.citigroup.com/rcs/v1/siteIds/citigpa/asset/".concat(null===(i=m.content_json)||void 0===i?void 0:i.image,".jpg"):l(5533),alt:"Commercial Bank promotional image",style:{height:"170px",borderRadius:"10px",display:"block",objectFit:"cover"}}),(0,E.jsxs)("div",{className:"lmn-col-md-7 lmn-text-color-desc lmn-px-lg-6 lmn-px-xl-6 lmn-px-2xl-6 lmn-px-md-6",children:[(0,E.jsx)("h2",{className:"lmn-text-color-desc lmn-mb-md-3",children:m?null===m||void 0===m?void 0:m.title:"Commercial Bank"}),(0,E.jsx)("p",{className:"lmn-text-color-desc lmn-body-1-single",children:m?null===m||void 0===m||null===(o=m.content_json)||void 0===o?void 0:o.summary:"Citi Commercial Bank provides global banking solutions to mid-sized companies that are\n looking to grow rapidly and expand internationally."}),(0,E.jsxs)("div",{className:"lmn-text-color-desc lmn-body-1-single",children:[(0,E.jsx)("a",{href:"https://www.citigroup.com/global/insights/tags/commercial-bank",className:"lmn-text-link-quiet lmn-text-color-desc lmn-hover-underline lmn-d-none lmn-d-md-inline",style:{color:"#fff !important"},target:"_blank",id:"learn_more_link",children:"Learn more"}),(0,E.jsx)(z.A,{className:"lmn-d-none lmn-d-md-inline lmn-p-md-4",type:"arrow-right"})]})]}),(0,E.jsxs)("div",{id:"get-in-touch",className:"lmn-container lmn-pl-md-4 lmn-col-md-3 lmn-border-primary-color lmn-text-color-desc lmn-d-none lmn-d-md-block",children:[(0,E.jsx)("div",{className:"lmn-row lmn-justify-content-md-center",children:(0,E.jsx)("div",{className:"lmn-text-color lmn-heading-4 lmn-mt-md-8 lmn-mb-16px","aria-label":"Get in Touch",children:"Get in Touch"})}),(0,E.jsx)("div",{className:"lmn-row lmn-justify-content-md-center",children:(0,E.jsxs)(F.Ay,{className:"lmn-col-md-auto",color:"primary","aria-expanded":r,style:{background:"#255BE3",borderRadius:"6px"},onClick:()=>{d(!c),s(),$()},"aria-label":"Contact us",children:["Contact us",(0,E.jsx)(z.A,{size:"xs",type:r?"caret-up":"caret-down"})]})})]}),(0,E.jsxs)("div",{className:"lmn-col lmn-d-block lmn-d-md-none lmn-px-md-8 lmn-mt-md-3",children:[(0,E.jsx)(F.Ay,{color:"secondary","aria-expanded":!c,className:"lmn-mr-4",style:{color:"#fff",borderRadius:"6px",boxShadow:"inset 0 0 0 1px"},onClick:()=>window.open("https://www.citigroup.com/global/insights/tags/commercial-bank"),children:"Learn More"}),(0,E.jsxs)(F.Ay,{color:"primary","aria-expanded":!c,onClick:()=>{d(!c),s(),$()},"aria-label":"Contact us",children:["Contact us",(0,E.jsx)(z.A,{size:"xs",type:r?"caret-up":"caret-down"})]})]})]})]})})},Je=(0,t.forwardRef)(Ye),Xe=e=>{var a,l,n,i,s,c,m,u,v,h,x,_;let{onAcknowledge:C}=e;const{staticData:w,isAboutBusiness:S,setIsAboutBusiness:j,companyInfo:A,setCompanyInfo:N,setIsBasicInfo:I,isCardOpen:k,setIsSubmitted:P,setBusinessNeedInfo:M,setContactInfo:T,setSteps:B,setIsCardOpen:R}=D(),[L,F]=(0,t.useState)("Let's Begin!"),[H,V]=(0,t.useState)({}),[U,K]=(0,t.useState)(!1),Z=(0,t.useRef)(null),Y=(0,t.useRef)(null),J=(0,t.useRef)(null),[X,Q]=(0,t.useState)(!1),[ae,le]=(0,t.useState)([]),[te,ne]=(0,t.useState)(""),[ie,oe]=(0,t.useState)(!1),[se,re]=(0,t.useState)({}),de=(0,t.useRef)(null),me=(0,t.useRef)(null),ue=(0,t.useRef)(null),$e=function(e){var a,l,t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:se;const i=(0,r.A)({},H);var o;(n.referral&&!ce(null===e||void 0===e||null===(a=e.businessInfo)||void 0===a?void 0:a.referral)&&(i.referral="Please select referral"),n.referralDetails&&null!==e&&void 0!==e&&null!==(l=e.businessInfo)&&void 0!==l&&l.referral&&f.includes(null===e||void 0===e||null===(t=e.businessInfo)||void 0===t?void 0:t.referral))&&(ce(null===e||void 0===e||null===(o=e.businessInfo)||void 0===o?void 0:o.referralDetails)||(i.referralDetails="Please enter the Partner name before continuing"));return V(i),b().isEmpty(i)};(0,t.useEffect)(()=>{X&&ue.current&&ue.current.focus()},[X]),(0,t.useEffect)(()=>{window.innerWidth<768&&window.parent.location.href.includes("contact-us")?window.parent.scroll(0,0):window.parent.location.href.includes("contact-us")&&window.parent.scroll({top:0,behavior:"smooth"})},[S]),(0,t.useEffect)(()=>{var e,a;Z.current&&!b().isEmpty(H)&&(null===(e=Z.current)||void 0===e||e.focus(),null===(a=Z.current)||void 0===a||a.scrollIntoView({behavior:"smooth",block:"start"}))},[!H]),(0,t.useEffect)(()=>{(async()=>{try{if(te.length>2){const e=((null===w||void 0===w?void 0:w.citiPartner)||g).filter(e=>e.toLowerCase().includes(te.toLowerCase()));le(e)}else le([])}catch(e){console.error("\ud83d\ude80 ~ getCitiPartnerData ~ error:",e)}})()},[te]);const ve=(0,t.useCallback)((e,a)=>{Q(!1);const l=(0,r.A)((0,r.A)({},null===A||void 0===A?void 0:A.businessInfo),{},{[a]:e.target?e.target.value:e});var t;("referral"===a&&p.includes(e)&&(l.referralDetails=""),"referralDetails"===a)&&(f.includes(null===A||void 0===A||null===(t=A.businessInfo)||void 0===t?void 0:t.referral)&&Q(!0));const n=(0,r.A)((0,r.A)({},A),{},{businessInfo:l});re(e=>{const l=(0,r.A)((0,r.A)({},e),{},{[a]:!0});return $e(n,l),l}),N(n)},[A,N]);(0,t.useEffect)(()=>{F("Let's Begin!")},[!A]),(0,t.useEffect)(()=>{var e;null!==A&&void 0!==A&&null!==(e=A.businessInfo)&&void 0!==e&&e.referralDetails&&Q(!0),X&&de.current&&de.current.focus()},[X]);const he=(0,t.useMemo)(()=>{var e,a,l;return(null===A||void 0===A||null===(e=A.businessInfo)||void 0===e?void 0:e.referral)&&(!f.includes(null===A||void 0===A||null===(a=A.businessInfo)||void 0===a?void 0:a.referral)||(null===A||void 0===A||null===(l=A.businessInfo)||void 0===l?void 0:l.referralDetails))},[null===A||void 0===A?void 0:A.businessInfo]),pe=(0,t.useCallback)(()=>{N(null),j(!1),C()},[C]),fe=()=>{const e=(0,r.A)({},null===A||void 0===A?void 0:A.businessInfo);e.referralDetails="";const a=(0,r.A)((0,r.A)({},A),{},{businessInfo:e});Q(!1),N(a)};return(0,E.jsx)(E.Fragment,{children:(0,E.jsxs)(d.A,{className:"ccbDncaWrapper lmn-container content-container lmn-dnca-w-xl-60 lmn-dnca-xl-p-9",role:"main",children:[(0,E.jsx)("div",{ref:me}),(0,E.jsxs)(d.A,{id:"no-border",className:"ccbDncaWrapper lmn-container lmn-dnca-w-xl-95 no-border",children:[(0,E.jsx)("div",{className:"ccbDncaWrapper lmn-container margin-header",children:(0,E.jsx)(Je,{toggleCardVisibility:()=>{k||(P(!1),M(()=>({businessNeeds:[]})),N(null),T($),j(!1),I(!1),B(y),C()),R(!k)},ref:J})}),k&&(0,E.jsx)("div",{ref:Y,className:"ccbDncaWrapper lmn-container lmn-d-flex lmn-flex-column lmn-dnca-w-xl-95 lmn-dnca-w-l-75 app-container",children:(0,E.jsxs)("div",{className:"ccbDncaWrapper lmn-container content-container",role:"main",children:[!S&&(0,E.jsx)(E.Fragment,{children:(0,E.jsxs)(d.A,{id:"contact_us_card",children:[(0,E.jsx)("h3",{id:"header",className:"lmn-text-color-desc lmn-mb-6",children:L}),(0,E.jsx)("div",{className:"lmn-dnca-w-l-100 lmn-dnca-w-m-100 lmn-dnca-w-s-100",children:U&&ie&&Object.values(H).length>0&&(0,E.jsx)(Se,{id:"external-index",errors:Object.values(H),handleChange:()=>{K(!U)},isSubmitClicked:U})}),(0,E.jsxs)(d.A,{body:!0,className:"lmn-mb-3",children:[(0,E.jsx)("div",{className:"lmn-mb-6",children:(0,E.jsx)("div",{className:"lmn-d-flex lmn-text-color-desc",children:"We\u2019ll guide you through some questions about your business to make sure the right person contacts you."})}),(0,E.jsx)(O.Ay,{type:"divider",layoutClass:"cust-border-color"}),(0,E.jsxs)("div",{className:"lmn-form-group lmn-mb-5 lmn-dnca-w-m-50 lmn-dnca-w-l-50 lmn-dnca-w-s-100",children:[(0,E.jsx)("label",{className:"lmn-required lmn-card-title-label",htmlFor:"referral",children:"How did you hear about us?"}),(0,E.jsx)(be,{id:"referral",label:"How did you hear about us?","aria-label":"How did you hear about us?",value:(null===A||void 0===A||null===(a=A.businessInfo)||void 0===a?void 0:a.referral)||"",options:(null===w||void 0===w?void 0:w.referralSource)||[],error:H.referral,required:!0,onChange:e=>ve(e,"referral")}),H.referral&&(0,E.jsx)("small",{children:H.referral})]}),(null===A||void 0===A||null===(l=A.businessInfo)||void 0===l?void 0:l.referral)&&p.includes(null===A||void 0===A||null===(n=A.businessInfo)||void 0===n?void 0:n.referral)&&(0,E.jsxs)("div",{className:"lmn-form-group lmn-mb-5 lmn-dnca-w-m-75 lmn-dnca-w-l-50 lmn-dnca-w-s-100 lmn-dnca-w-xs-100",children:[(0,E.jsx)("label",{className:"lmn-font-size-xs lmn-card-title-label",children:"Please provide more details (optional)"}),(0,E.jsx)(ye.Ay,{id:"referral_more_details",value:null===A||void 0===A||null===(i=A.businessInfo)||void 0===i?void 0:i.referralDetails,onChange:e=>ve(e,"referralDetails"),"aria-label":"Please provide more details (optional) 100 max character, you have ".concat(100-(null!==(s=null===A||void 0===A||null===(c=A.businessInfo)||void 0===c||null===(m=c.referralDetails)||void 0===m?void 0:m.length)&&void 0!==s?s:0)," characters left"),maxLength:100,size:"md"}),(0,E.jsxs)("small",{className:"lmn-hint-text-color",children:["100 max character, you have [",100-(null!==(u=null===A||void 0===A||null===(v=A.businessInfo)||void 0===v||null===(h=v.referralDetails)||void 0===h?void 0:h.length)&&void 0!==u?u:0),"] characters left"]})]}),(null===A||void 0===A||null===(x=A.businessInfo)||void 0===x?void 0:x.referral)&&f.includes(null===A||void 0===A||null===(_=A.businessInfo)||void 0===_?void 0:_.referral)&&(0,E.jsx)(E.Fragment,{children:(()=>{var e,a,l,t,n;if(X)return(0,E.jsx)(d.A,{className:"dnca-lmn-rounded-8 lmn-dnca-w-m-50 lmn-dnca-w-l-50 lmn-dnca-w-s-100 lmn-dnca-w-xs-100",id:"typeahead_CitiPartner_card",ref:Z,"aria-describedby":"typeahead_CitiPartner_card_label",children:(0,E.jsxs)("div",{className:"lmn-d-flex lmn-align-items-center",children:[(0,E.jsx)("div",{className:"lmn-flex-grow-1 lmn-text-color-desc",id:"typeahead_CitiPartner_card_label","aria-live":"polite",children:null!==A&&void 0!==A&&null!==(e=A.businessInfo)&&void 0!==e&&e.referralDetails?(0,E.jsx)("span",{tabIndex:-1,ref:ue,children:null===A||void 0===A||null===(l=A.businessInfo)||void 0===l?void 0:l.referralDetails},null===A||void 0===A||null===(a=A.businessInfo)||void 0===a?void 0:a.referralDetails):"No referral details available"}),(0,E.jsx)("div",{id:"citipartner_change_icon",style:{cursor:"pointer"},onClick:fe,role:"button",tabIndex:0,"aria-label":null!==A&&void 0!==A&&null!==(t=A.businessInfo)&&void 0!==t&&t.referralDetails?"Selected ".concat(null===A||void 0===A||null===(n=A.businessInfo)||void 0===n?void 0:n.referralDetails,", Change Partner name"):"Change Partner name",onKeyDown:e=>{"Enter"===e.key&&fe()},children:(0,E.jsxs)("a",{className:"lmn-text-link-quiet lmn-text-color-desc lmn-hover-underline lmn-d-md-inline",style:{color:"#fff !important"},target:"_blank","aria-label":"Edit Partner name",children:[(0,E.jsx)(z.A,{type:"edit",alt:"icon presenting Change Partner name","aria-hidden":"true"}),"Change"]})})]})});{var i;const e=Array.isArray(ae)&&ae.some(e=>""!==e);return(0,E.jsxs)("div",{id:"typeahead_CitiPartner_search",className:"lmn-form-group lmn-mb-5 lmn-dnca-w-m-75 lmn-dnca-w-l-50 lmn-dnca-w-s-100 lmn-dnca-w-xs-100",children:[(0,E.jsx)("label",{className:"lmn-font-size-xs lmn-card-title-label lmn-required",id:"partner-name",htmlFor:"typeahead_input",children:"Please provide Partner name"}),(0,E.jsx)(G.A,{id:"typeahead_input",value:null===A||void 0===A||null===(i=A.businessInfo)||void 0===i?void 0:i.referralDetails,onSearch:e=>{ne(e)},onChange:e=>ve(e,"referralDetails"),options:ae,allowClear:!1,invalid:!!H.referralDetails,highlightOption:!0,popupStyle:{display:te.length>2&&e?"":"none"},"aria-required":!0,"aria-labelledby":"partner-name","aria-invalid":!!H.referralDetails,"aria-describedby":H.referralDetails?"error-message":void 0,children:(0,E.jsx)(W.A,{size:"md",placeholder:"Type here"})}),H.referralDetails&&(0,E.jsx)("small",{id:"error-message",role:"alert","aria-live":"assertive",children:H.referralDetails})]})}})()})]}),(0,E.jsx)(q,{submitText:"Continue",onCancel:pe,onSubmit:()=>{var e,a,l;(K(!0),he)?(j(!0),I(!1),oe(!1),ee(me,"ccbContactUsFormReferralInfoCompleted"),window.parent.location.href.includes("contact-us")&&(null===(e=J.current)||void 0===e||e.scrollIntoView({behavior:"smooth"}))):(oe(!0),re(()=>{const e={referral:!0,referralDetails:!0};return $e(A,e),e}));Z.current&&(null===(a=Z.current)||void 0===a||a.focus(),window.parent.location.href.includes("contact-us")&&(null===(l=Z.current)||void 0===l||l.scrollIntoView({behavior:"smooth"})));window.parent.location.href.includes("contact-us")&&window.scrollTo(0,0)}})]})}),S&&(0,E.jsx)(o.Routes,{children:(0,E.jsx)(o.Route,{path:"*",element:(0,E.jsx)(Ze,{})})})]})})]})]})})};var Qe=l(2623),ea=l(9860),aa=l(6427),la=l(4653),ta=l(5766),na=l.n(ta);const ia=[{title:"Category",dataIndex:"category",key:"category"},{title:"Criteria",dataIndex:"criteria",key:"criteria"},{title:"Score",dataIndex:"score",key:"score"}],oa=["Arial, sans-serif","'Courier New', monospace","'Georgia', serif","'Tahoma', sans-serif","'Verdana', sans-serif"],sa=e=>{const a=e.replace("#","");return(.299*parseInt(a.substring(0,2),16)+.587*parseInt(a.substring(2,4),16)+.114*parseInt(a.substring(4,6),16))/255>.5?"#000000":"#ffffff"},ra=e=>{let{columns:a,data:l,pageSize:i=10}=e;const[o,s]=(0,t.useState)("lmn-table-bordered"),[c,d]=(0,t.useState)(null),[m,u]=(0,t.useState)(null),[b,$]=(0,t.useState)(""),[v,h]=(0,t.useState)(""),[y,p]=(0,t.useState)(""),[f,g]=(0,t.useState)(1),[x,_]=(0,t.useState)({}),[C,w]=(0,t.useState)(()=>localStorage.getItem("tableBgColor")||"#ffffff"),[S,j]=(0,t.useState)(()=>localStorage.getItem("tableFont")||oa[0]),[A,k]=(0,t.useState)(sa(C));(0,t.useEffect)(()=>{localStorage.setItem("tableBgColor",C),k(sa(C))},[C]),(0,t.useEffect)(()=>{localStorage.setItem("tableFont",S)},[S]);const P=e=>{const a=[];"paginated"===e?H.forEach(e=>{a.push({"Lead Id":e.leadId,"Business Name":e.businessName,Status:e.status,Date:e.updtEpoch,Category:"",Criteria:"",Score:"",Consent:"Yes"}),e.leadAndScoreDetails.forEach(e=>{a.push({"Lead Id":"","Business Name":"",Status:"",Date:"",Category:e.category,Criteria:e.criteria,Score:e.score})})}):L.forEach(e=>{a.push({"Lead Id":e.leadId,"Business Name":e.businessName,Status:e.status,Date:e.updtEpoch,Category:"",Criteria:"",Score:"",Consent:"Yes"}),e.leadAndScoreDetails.forEach(e=>{a.push({"Lead Id":"","Business Name":"",Status:"",Date:"",Category:e.category,Criteria:e.criteria,Score:e.score})})});const l=na().unparse(a),t=new Blob([l],{type:"text/csv;charset=utf-8;"}),n=document.createElement("a"),i=URL.createObjectURL(t);n.setAttribute("href",i),n.setAttribute("download","report.csv"),n.style.visibility="hidden",document.body.appendChild(n),n.click(),document.body.removeChild(n)},T=async e=>{const a=N+e;try{const e=await(async(e,a,l)=>{try{const t=await I.A.post(e,a,l);return console.log("response: ",t),t}catch(t){return M(t),t.response}})(a);200===e.status&&window.location.reload()}catch(l){console.error("Error retrying save:",l)}},B=(0,t.useMemo)(()=>l.filter(e=>{let a=!1,l=!1,t=!1;if(a=""===b.trim()||((e,a)=>!(!Object.prototype.hasOwnProperty.call(e,"businessName")||null===e.businessName||!e.businessName.toString().toLowerCase().includes(a.toLowerCase()))||!(!Object.prototype.hasOwnProperty.call(e,"leadId")||null===e.leadId||!e.leadId.toString().toLowerCase().includes(a.toLowerCase())))(e,b),v){l=new Date(e.isrtEpoch).toISOString().split("T")[0]===new Date(v).toISOString().split("T")[0]}else l=!0;if(y){t=e.status===y}else t=!0;return a&&l&&t}),[b,v,y,l]),R=e=>{const a=D(e);return(0,aa.GP)(a,"yyyy-MM-dd")},D=e=>{const a=new Date(e).toISOString();return(0,la.H)(a)},L=(0,t.useMemo)(()=>c&&m?[...B].sort((e,l)=>{const t=a.find(e=>e.field===c);if(!t)return 0;let n=e[c],i=l[c];return"date"===t.type&&(n=D(n).getTime(),i=D(i).getTime()),ni?"asc"===m?1:-1:0}):B,[c,m,B,a]),O=Math.ceil(L.length/i),H=L.slice((f-1)*i,f*i);return(0,E.jsxs)("div",{style:{padding:"20px",maxWidth:"100%",background:C,fontFamily:S},children:[(0,E.jsxs)("div",{className:"lmn-my-5 lmn-dcna-xl-flex lmn-dcna-l-flex lmn-d-md-flex",children:[(0,E.jsxs)("div",{className:"lmn-form-group lmn-mb-5 lmn-mr-2xl-5 lmn-mr-xl-5 lmn-dnca-w-m-half lmn-dnca-w-l-half lmn-dnca-w-xl-half",children:[(0,E.jsx)("div",{className:"busniess-needs-label lmn-mb-3",children:"Business Name or Lead ID"}),(0,E.jsx)("input",{type:"text",placeholder:"\ud83d\udd0d Search...",value:b,onChange:e=>$(e.target.value),style:{padding:"10px",width:"220px",borderRadius:"8px",border:"1px solid #ccc"}})]}),(0,E.jsxs)("div",{className:"lmn-form-group lmn-flex-grow-1 lmn-ml-md-5 lmn-ml-lg-8 lmn-ml-xl-8 lmn-dnca-w-m-half lmn-dnca-w-l-half lmn-dnca-w-xl-half lmn-ml-2xl-8",children:[(0,E.jsx)("div",{className:" busniess-needs-label lmn-mb-3",children:"Created Date"}),(0,E.jsx)("input",{type:"date",value:v,onChange:e=>h(e.target.value),style:{padding:"10px",borderRadius:"8px",border:"1px solid #ccc"}})]}),(0,E.jsxs)("div",{className:"lmn-form-group lmn-flex-grow-1 lmn-ml-md-5 lmn-ml-lg-8 lmn-ml-xl-8 lmn-dnca-w-m-half lmn-dnca-w-l-half lmn-dnca-w-xl-half lmn-ml-2xl-8",children:[(0,E.jsx)("div",{className:"busniess-needs-label lmn-mb-3",children:"Status"}),(0,E.jsx)(be,{id:"lead-status",label:"status",value:y,placeholder:"Select Lead Status",options:["Success","Fail"],onChange:e=>p(e),allowClear:!0})]})]}),(0,E.jsxs)("table",{style:{width:"100%",borderCollapse:"collapse",borderRadius:"10px",overflow:"hidden",background:C,fontFamily:S,color:A},children:[(0,E.jsx)("thead",{children:(0,E.jsx)("tr",{style:{background:C,fontFamily:S,color:A},children:a.map(e=>(0,E.jsxs)("th",{style:{padding:"12px",borderBottom:"2px solid #ddd",cursor:e.sortable?"pointer":"default",textAlign:"left"},onClick:()=>{return e.sortable&&(a=e.field,void(c===a?u("asc"===m?"desc":"asc"):(d(a),u("asc"))));var a},children:[e.header,e.sortable&&(0,E.jsxs)(E.Fragment,{children:[" ",c===e.field?"asc"===m?(0,E.jsx)(z.A,{type:"caret-up"}):(0,E.jsx)(z.A,{type:"caret-down"}):(0,E.jsx)(z.A,{type:"vertical"})]})]},e.field))})}),(0,E.jsx)("tbody",{style:{background:C},children:H.map(e=>(0,E.jsxs)(n().Fragment,{children:[(0,E.jsx)("tr",{style:{borderBottom:"1px solid #ddd",background:(x[e.leadId],C),fontFamily:S,color:A},children:a.map(a=>(0,E.jsx)("td",{style:{padding:"12px",textAlign:"left",backgroundColor:C},children:a.expandable?(0,E.jsx)("button",{onClick:()=>{var a;s("lmn-table-bordered"),a=e.leadId,_(e=>(0,r.A)((0,r.A)({},e),{},{[a]:!e[a]}))},style:{background:"none",border:"none",cursor:"pointer",color:"#007bff",fontSize:"16px"},children:x[e.leadId]?(0,E.jsx)(z.A,{type:"minus-circle",style:{color:sa(C)}}):(0,E.jsx)(z.A,{type:"add-circle",style:{color:sa(C)}})}):"date"===a.type?R(e[a.field]):"showButton"==a.field&&"Fail"===e.status?(0,E.jsx)("button",{onClick:()=>T(e.leadId),style:{padding:"8px 16px",borderRadius:"6px",background:"#007bff",color:"white",border:"none",cursor:"pointer"},children:"Retry Save"}):"showButton"==a.field&&"Fail"!==e.status?(0,E.jsx)(E.Fragment,{}):String(e[a.field])},a.field))}),x[e.leadId]&&e.leadAndScoreDetails&&(0,E.jsx)("tr",{children:(0,E.jsx)("td",{colSpan:a.length,style:{padding:"12px",background:"#f8f9fa",backgroundColor:C},children:(0,E.jsx)(ea.A,{className:o,size:"default",data:e.leadAndScoreDetails,columns:ia})})})]},e.leadId))})]}),(0,E.jsxs)("div",{style:{marginTop:"15px",display:"flex",justifyContent:"space-between",alignItems:"center",background:C,fontFamily:S,color:A},children:[(0,E.jsx)("button",{onClick:()=>g(e=>Math.max(e-1,1)),disabled:1===f,style:{padding:"8px 16px",borderRadius:"6px",background:"#007bff",color:"white",border:"none",cursor:"pointer"},children:"Prev"}),(0,E.jsx)(F.Ay,{onClick:()=>P("sort"),className:"download-csv-button",children:"Download Sorted Data CSV"}),(0,E.jsxs)("span",{children:[" ","Page ",f," of ",O," "]}),(0,E.jsx)(F.Ay,{onClick:()=>P("paginated"),className:"download-csv-button",children:"Download Current Data CSV"}),(0,E.jsx)("button",{onClick:()=>g(e=>Math.min(e+1,O)),disabled:f===O,style:{padding:"8px 16px",borderRadius:"6px",background:"#007bff",color:"white",border:"none",cursor:"pointer"},children:"Next"})]})]})};function ca(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e&&"object"===typeof e&&(Array.isArray(e)?e.forEach(e=>ca(e,a)):(Object.values(e).forEach(e=>{e&&"object"===typeof e&&ca(e,a)}),e.category&&e.criteria&&a.push(e))),a}const da=[{field:"leadId",header:"Lead Id",sortable:!0,type:"text"},{field:"businessName",header:"Business Name",sortable:!0,type:"text"},{field:"status",header:"Status",sortable:!0,type:"text"},{field:"isrtEpoch",header:"Created Date",sortable:!0,type:"date"},{field:"showButton",header:"",type:"text"},{field:"expand",header:"",expandable:!0}],ma=e=>{const a=new Date(e),l=a.getDate().toString().padStart(2,"0"),t=(a.getMonth()+1).toString().padStart(2,"0"),n=a.getFullYear().toString();return"".concat(l,"/").concat(t,"/").concat(n)},ua=()=>{const{leadList:e}=D(),[a,l]=(0,t.useState)([]);return(0,t.useEffect)(()=>{(async()=>{if(e){const a=e.map(e=>({leadId:e.leadId,businessName:e.businessName,status:e.status,isrtEpoch:e.isrtEpoch,updtEpoch:ma(e.updtEpoch),leadAndScoreDetails:[...ca(e.leadAndScoreDetails),{category:"Final Score",criteria:"",score:e.finalLeadScore}]}));a.sort((e,a)=>a.isrtEpoch-e.isrtEpoch),l([...a])}})()},[e]),(0,E.jsx)(ra,{columns:da,data:a,pageSize:10})};var ba=l(9204),$a=l(1998),va=l(5070),ha=l(7502),ya=l(1765);function pa(e){let{size:a,visible:l,title:n,data:i,handleLeadSubmission:o}=e;const[s,r]=(0,t.useState)(l),[c,d]=(0,t.useState)(""),[m,u]=(0,t.useState)(!1),[b,$]=(0,t.useState)(!1),[v,h]=(0,t.useState)(!1),[y,p]=(0,t.useState)(""),[f,g]=(0,t.useState)(""),[x,_]=(0,t.useState)(""),[C,w]=(0,t.useState)(!0),[S,j]=(0,t.useState)(!0),A=(e,a)=>{switch(e){case"name":p(a.target.value);break;case"factor":g(a.target.value),u(ne(e,a.target.value)||!1);break;case"score":_(a.target.value),$(ne(e,a.target.value)||!1);break;case"editable":w(a.target.checked);break;case"applicable":j(a.target.checked)}};return(0,t.useEffect)(()=>{c.length>0&&r(!0)},[c.length>0]),(0,t.useEffect)(()=>{v&&(d(""),r(!1))},[v]),(0,E.jsx)("div",{children:(0,E.jsxs)(Ne.A,{style:{width:"100% !important"},size:a,visible:c.length>0||s,title:n,onApply:()=>{ie({title:n,name:y,factor:f,score:x,invalidFactor:m,invalidScore:b})?(d(ie({title:n,name:y,factor:f,score:x,invalidFactor:m,invalidScore:b})),r(!0)):(i[n].push({name:y,factor:f,score:x,editable:C,applicable:S}),o(i),r(!s))},onCancel:()=>h(!0),children:[(0,E.jsxs)("div",{className:"table",children:[(0,E.jsxs)("div",{className:"row",children:[(0,E.jsx)("div",{className:"cell lmn-col-2",children:"Criteria"}),(0,E.jsx)("div",{className:"cell lmn-col-2",children:"Factor"}),(0,E.jsx)("div",{className:"cell lmn-col-2",children:"Score"}),(0,E.jsx)("div",{className:"cell lmn-col-2",children:"Enable edit"}),(0,E.jsx)("div",{className:"cell lmn-col-2",children:"Enable Rule"})]}),(0,E.jsxs)("div",{className:"row",children:[(0,E.jsx)("div",{className:"cell lmn-col-2",children:(0,E.jsx)(ye.Ay,{type:"text",id:"Category",placeholder:"Criteria",value:y,onChange:e=>A("name",e)})}),(0,E.jsx)("div",{className:"cell lmn-col-2",children:(0,E.jsx)(ye.Ay,{invalid:m,id:"Factor",type:"number",placeholder:"Factor",value:f,onChange:e=>A("factor",e)})}),(0,E.jsx)("div",{className:"cell lmn-col-2",children:(0,E.jsx)(ye.Ay,{invalid:b,id:"Score",type:"number",placeholder:"Score",value:x,onChange:e=>A("score",e)})}),(0,E.jsx)("div",{className:"cell lmn-col-2",children:(0,E.jsx)(ya.A,{size:"large",checked:C,onChange:e=>A("editable",e)})}),(0,E.jsx)("div",{className:"cell lmn-col-2",children:(0,E.jsx)(ya.A,{size:"large",checked:S,onChange:e=>A("applicable",e)})})]})]}),c&&(0,E.jsx)("p",{className:"lmn-mt-4 lmn-invalid",children:c})]})})}function fa(e){let{size:a,visible:l,data:n,handleCategorySubmission:i}=e;const[o,s]=(0,t.useState)(""),[r,c]=(0,t.useState)(!1),[d,m]=(0,t.useState)(l),[u,b]=(0,t.useState)(!1),[$,v]=(0,t.useState)(!1),[h,y]=(0,t.useState)(""),[p,f]=(0,t.useState)(""),[g,x]=(0,t.useState)(""),[_,C]=(0,t.useState)(""),[w,S]=(0,t.useState)(!0),[j,A]=(0,t.useState)(!0),N=(e,a)=>{switch(e){case"title":y(a.target.value);break;case"name":f(a.target.value);break;case"factor":x(a.target.value),b(ne(e,a.target.value)||!1);break;case"score":C(a.target.value),v(ne(e,a.target.value)||!1);break;case"editable":S(a.target.checked);break;case"applicable":A(a.target.checked)}};return(0,t.useEffect)(()=>{o.length>0&&m(!0)},[o.length>0]),(0,t.useEffect)(()=>{r&&(s(""),m(!1))},[r]),(0,E.jsx)("div",{id:"modal_create",children:(0,E.jsxs)(Ne.A,{style:{width:"100% !important"},size:a,visible:o.length>0||d,title:h,onApply:()=>{ie({title:h,name:p,factor:g,score:_,invalidFactor:u,invalidScore:$})?(s(ie({title:h,name:p,factor:g,score:_,invalidFactor:u,invalidScore:$})),m(!0)):(n[h]=[{name:p,factor:g,score:_,editable:w,applicable:j}],i(n),m(!d))},onCancel:()=>c(!0),closable:!1,children:[(0,E.jsxs)("div",{className:"table",children:[(0,E.jsxs)("div",{className:"row",children:[(0,E.jsx)("div",{className:"cell lmn-col-2",children:"Category"}),(0,E.jsx)("div",{className:"cell lmn-col-2",children:"Criteria"}),(0,E.jsx)("div",{className:"cell lmn-col-2",children:"Factor"}),(0,E.jsx)("div",{className:"cell lmn-col-2",children:"Score"}),(0,E.jsx)("div",{className:"cell lmn-col-2",children:"Enable edit"}),(0,E.jsx)("div",{className:"cell lmn-col-2",children:"Enable Rule"})]}),(0,E.jsxs)("div",{className:"row",children:[(0,E.jsx)("div",{className:"cell lmn-col-2",children:(0,E.jsx)(ye.Ay,{type:"text",id:"Category",placeholder:"Category",value:h,onChange:e=>N("title",e)})}),(0,E.jsx)("div",{className:"cell lmn-col-2",children:(0,E.jsx)(ye.Ay,{type:"text",id:"Criteria",placeholder:"Criteria",value:p,onChange:e=>N("name",e)})}),(0,E.jsx)("div",{className:"cell lmn-col-2",children:(0,E.jsx)(ye.Ay,{invalid:u,id:"Factor",type:"number",placeholder:"Factor",value:g,onChange:e=>N("factor",e)})}),(0,E.jsx)("div",{className:"cell lmn-col-2",children:(0,E.jsx)(ye.Ay,{invalid:$,id:"Score",type:"number",placeholder:"Score",value:_,onChange:e=>N("score",e)})}),(0,E.jsx)("div",{className:"cell lmn-col-2",children:(0,E.jsx)(ya.A,{size:"large",checked:w,onChange:e=>N("editable",e)})}),(0,E.jsx)("div",{className:"cell lmn-col-2",children:(0,E.jsx)(ya.A,{size:"large",checked:j,onChange:e=>N("applicable",e)})})]})]}),o&&(0,E.jsx)("p",{className:"lmn-mt-4 lmn-invalid",children:o})]})})}var ga=l(2073);const xa=()=>{const{setErrorStatus:e,adminLeadData:a,setError:l,error:n}=D(),i=(null===a||void 0===a?void 0:a.existingWebLeadScoreDetails)||{},o=Object.keys(i).length,[s,c]=(0,t.useState)({}),[m,u]=(0,t.useState)(!1),[b,$]=(0,t.useState)({}),[v,h]=(0,t.useState)(!1),[y,p]=(0,t.useState)(""),f=(0,t.useCallback)((e,a,l,t)=>{const n=(0,r.A)({},s);c(((e,a,l,t,n)=>{switch(e){case"factor":l[t][n].factor=a.value;break;case"score":l[t][n].score=a.value;break;case"editable":l[t][n].editable=a.checked;break;case"applicable":l[t][n].applicable=a.checked}return l})(e,a.target,n,t,l))},[s,c]);(0,t.useEffect)(()=>{Object.keys(i).length>0&&c(JSON.parse(JSON.stringify(i)))},[o>0&&0==Object.keys(s).length]);(0,t.useEffect)(()=>{const e=((e,a)=>{const l={},t={};for(const n in a)if(t[n]=[],Object.prototype.hasOwnProperty.call(a,n)&&Object.prototype.hasOwnProperty.call(e,n)){const i=a[n],o=e[n];if(Array.isArray(i)&&Array.isArray(o)){let e=0;const a=Math.max(i.length,o.length);for(let l=0;l0&&(l[n]=e)}}return{changes:l,updatedItemChanged:t}})(s,null===a||void 0===a?void 0:a.existingWebLeadScoreDetails);$(e)},[s]);(0,t.useEffect)(()=>{v&&u(!1)},[v]),(0,t.useEffect)(()=>{m&&h(!1)},[m]);const g=e=>e.replace(/([A-Z])/g," $1").replace(/\b\w/g,e=>e.toUpperCase()).replace(/\bV C\b/g,"VC").replace(/\bP E\b/g,"PE").replace("V Cor PE","VC or PE"),x=e=>{var a;return null!==b&&void 0!==b&&b.changes&&null!==b&&void 0!==b&&null!==(a=b.changes)&&void 0!==a&&a[e]?(0,E.jsxs)(E.Fragment,{children:[g(e)," ",(0,E.jsx)(ba.A,{id:"tooltip-".concat(e),placement:"topLeft",tooltip:"".concat(e," ").concat(b.changes[e]," field changed"),children:(0,E.jsx)(z.A,{type:"info-circle",style:{animation:"popin-popout 1s infinite"}})})]}):(0,E.jsx)(E.Fragment,{children:g(e)})},_=(e,a)=>{var l,t,n;if(null!==b&&void 0!==b&&b.updatedItemChanged&&(null===b||void 0===b||null===(l=b.updatedItemChanged[e])||void 0===l?void 0:l.length)>0)return(null===b||void 0===b||null===(t=b.updatedItemChanged)||void 0===t||null===(n=t[e])||void 0===n?void 0:n.includes(a))&&"lmn-bg-info"};return(0,E.jsxs)("div",{children:[0===Object.keys(s).length?(0,E.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh"},children:(0,E.jsx)($a.A,{showAnimatedSpinner:!0},(0,ga.A)())}):(0,E.jsxs)(d.A,{className:"lmn-w-75",id:"lead_view",style:{margin:"0 auto"},children:[Object.keys(s).map(e=>{var a;return(0,E.jsx)(E.Fragment,{children:(0,E.jsx)(va.A,{size:"default","data-cv-tracking-id":"collapse-tracking-id",style:{marginBottom:"20px"},children:(0,E.jsx)(ha.A,{"data-cv-tracking-id":"collapse-panel-tracking-id",panelKey:"1",header:x(e),content:(0,E.jsxs)("div",{className:"table",children:[(0,E.jsxs)("div",{className:"row",children:[(0,E.jsx)("div",{className:"cell",children:"Field"}),(0,E.jsx)("div",{className:"cell",children:"Criteria"}),(0,E.jsx)("div",{className:"cell",children:"Factor"}),(0,E.jsx)("div",{className:"cell",children:"Score"}),(0,E.jsx)("div",{className:"cell",children:"Enable edit"}),(0,E.jsx)("div",{className:"cell",children:"Enable rule"})]},(0,ga.A)()),null===(a=s[e])||void 0===a?void 0:a.map((a,l)=>(0,E.jsxs)("div",{className:"row ".concat(_(e,l)),children:[(0,E.jsx)("div",{className:"cell",children:(0,E.jsx)("p",{children:g(e)})}),(0,E.jsx)("div",{className:"cell",children:(0,E.jsx)("p",{children:a.name})}),(0,E.jsx)("div",{className:"cell",children:(0,E.jsx)(ye.Ay,{type:"number",placeholder:"Factor",disabled:!a.editable,value:a.factor,onChange:a=>f("factor",a,l,e)})}),(0,E.jsx)("div",{className:"cell",children:(0,E.jsx)(ye.Ay,{type:"number",placeholder:"Score",disabled:!a.editable,value:a.score,onChange:a=>f("score",a,l,e)})}),(0,E.jsx)("div",{className:"cell",children:(0,E.jsx)(ya.A,{size:"large",checked:a.editable,onChange:a=>f("editable",a,l,e)})}),(0,E.jsx)("div",{className:"cell",children:(0,E.jsx)(ya.A,{size:"large",checked:a.applicable,onChange:a=>f("applicable",a,l,e)})})]},l)),(0,E.jsxs)(F.Ay,{type:"secondary",className:"lmn-mt-4",onClick:a=>((e,a)=>{u(!m),p(a)})(0,e),children:["Add ",g(e)]})]},(0,ga.A)())})})})}),(0,E.jsx)(F.Ay,{type:"secondary",style:{width:"15%"},className:"lmn-mt-4",onClick:()=>h(!v),children:"Add New Category"}),(0,E.jsxs)("div",{className:"lmn-d-flex lmn-justify-content-end",children:[n&&(0,E.jsx)("div",{className:"lmn-text-danger lmn-align-content-center lmn-mr-24px",children:n}),(0,E.jsx)(F.Ay,{type:"primary",style:{width:"15%"},onClick:async()=>{try{if((e=>{const a=Object.keys(e);let l,t=!1;for(l=0;l{c(e),h(!v)}}):m&&!v&&(0,E.jsx)(pa,{size:"default",visible:m,title:y,data:s,handleLeadSubmission:e=>{c(e),u(!m)}})]})},_a=n().memo(xa),Ca=()=>{const{setUrlFetch:e}=D();(0,t.useEffect)(()=>{e(j)});return(0,E.jsx)(d.A,{className:"lmn-d-flex lmn-flex-column lmn-h-100 app-container",id:"lead_score",children:(0,E.jsxs)(Qe.Ay,{"data-cv-tracking-id":"tab-tracking-id",defaultActiveKey:"1",onTabClick:a=>(a=>{switch(a){case"1":e(j);break;case"2":e(A);break;default:console.log("Tab Clicked",a)}})(a),children:[(0,E.jsxs)(Qe.Ay.TabPane,{"data-cv-tracking-id":"tab-pane-tracking-id",tab:"Lead Score",children:[(0,E.jsx)(_a,{})," "]},"1"),(0,E.jsx)(Qe.Ay.TabPane,{tab:"Lead List",children:(0,E.jsx)(ua,{})},"2")]})})},wa=e=>{let{onAcknowledge:a}=e;const[l,n]=(0,t.useState)(""),[i,o]=(0,t.useState)(!1),{isCardOpen:s,setUrlFetch:r,setIsCardOpen:c}=D(),m=(0,t.useRef)(null),u=(0,t.useRef)(null),b=(0,t.useRef)(null);(0,t.useEffect)(()=>{var e;window.parent.location.href.includes("contact-us")&&(null===(e=u.current)||void 0===e||e.focus(),window.innerWidth<768?window.scroll(0,0):window.scrollTo({top:0,behavior:"smooth"}))},[]),(0,t.useEffect)(()=>{if(s){const e=document.querySelectorAll(".lmn-selection-control");e.forEach(a=>{a.setAttribute("tabindex","0"),a.addEventListener("keydown",a=>{const l=["Yes","No"],t=l.indexOf(a.target.textContent);if("Enter"===a.key&&a.target.textContent){n(a.target.textContent);const e={target:{value:a.target.textContent}};$(e)}else if("ArrowUp"===a.key&&a.target.textContent){const a=t>0?t-1:t;n(l[a]);const i=e[a];i&&i.focus();const o={target:{value:l[a]}};$(o)}else if("ArrowDown"===a.key&&a.target.textContent){const a=t{const{value:a}=e.target;"No"===a&&r(S),n(a)},v=()=>{o(!i),n(""),window.parent.location.href.includes("contact-us")&&window.scrollTo(0,0)};return(0,E.jsx)(E.Fragment,{children:(0,E.jsx)(d.A,{className:"ccbDncaWrapper lmn-container content-container lmn-dnca-w-xl-60 lmn-dnca-xl-p-9",role:"main",children:(0,E.jsxs)(d.A,{id:"no-border",className:"ccbDncaWrapper lmn-container lmn-dnca-w-xl-95 no-border",children:[(0,E.jsx)("div",{className:"ccbDncaWrapper lmn-container margin-header",children:(0,E.jsx)(Je,{toggleCardVisibility:()=>{c(!s)},ref:m})}),(0,E.jsx)("div",{ref:b}),s&&(0,E.jsx)(E.Fragment,{children:(0,E.jsxs)(d.A,{id:"label_acknowledge",children:[(0,E.jsx)("div",{ref:u,className:"lmn-card-title-text lmn-mb-6 lmn-body-2-multi lmn-text-left label-text",id:"to_help_text",role:"region","aria-labelledby":"help_text_label",children:(0,E.jsxs)("span",{id:"help_text_label",children:["To help us put you in contact with the right person,",(0,E.jsx)("br",{})," Please answer the following questions"]})}),(0,E.jsxs)("div",{className:"lmn-form-group lmn-dnca-w-m-100 lmn-dnca-w-s-100 lmn-dnca-w-xs-95 lmn-mr-5 lmn-mb-6 label-text",id:"existing_question",children:[(0,E.jsx)("label",{className:"lmn-card-title-text-label lmn-body-5-multi lmn-required","aria-label":"Are you an existing client with us?",children:"Are you an existing client with us?"}),(0,E.jsxs)(pe.A,{name:"selection-existing-client",value:l,onChange:$,children:[(0,E.jsx)(fe.A,{value:"Yes","aria-label":"Are you an existing client with us? Yes",children:"Yes"}),(0,E.jsx)(fe.A,{value:"No","aria-label":"Are you an existing client with us? No",children:"No"})]})]}),(0,E.jsxs)("div",{children:["Yes"===l&&(0,E.jsxs)("div",{children:[(0,E.jsxs)("div",{className:"lmn-card-title-text-desc lmn-mb-6 lmn-body-3-single lmn-text-left label-text",id:"yes_text",children:["The quickest way for you to get in contact with the Commercial Bank is to reach out to your Relationship Manager or Service Representative directly. Alternatively, click"," ",(0,E.jsx)("a",{id:"yes_here_link",className:"lmn-card-title-text lmn-mb-6 lmn-body-3-single lmn-text-left",href:"https://online.citi.com/US/ag/contactus",target:"_blank",style:{textDecoration:"underline"},tabIndex:0,"aria-label":"Click here to see a list of contact information for other business lines within Citi.",children:"here"})," ","to see a list of contact information for other business lines within Citi."]}),(0,E.jsxs)("div",{className:"lmn-card-title-text-desc lmn-mb-6 lmn-body-3-single lmn-text-left",children:["Read"," ",(0,E.jsx)("a",{className:"lmn-card-title-text-desc lmn-mb-6 lmn-body-3-single lmn-text-left",href:"https://www.citigroup.com/rcs/citigpa/storage/public/global-privacy-policy-institutional-clients.pdf",target:"_blank",style:{textDecoration:"underline"},tabIndex:0,id:"yes_global_note_link",children:"Global Privacy Notice for Institutional Clients"})]}),(0,E.jsx)("div",{className:"lmn-dnca-w-xs-100",children:(0,E.jsx)(q,{submitText:"Close",showDivider:!1,closeSubmission:!0,onSubmit:v})})]}),"No"===l&&(0,E.jsxs)("div",{children:[(0,E.jsxs)("div",{id:"no_text",className:"lmn-card-title-text-desc lmn-mb-6 label-text",children:["Thank you for your interest in Citi Commercial Bank. We aim to be the bank of choice for fast growing companies, helping them simplify the challenges of rapid scale and doing business abroad. We offer a holistic banking relationship that covers the wide spectrum of financial solutions from credit to cash management and FX to wealth.",(0,E.jsx)("br",{}),(0,E.jsx)("br",{})," The following questions are structured to find out a little more about your company and its objectives."]}),(0,E.jsxs)("div",{className:"lmn-card-title-text lmn-mb-6 lmn-body-3-single lmn-text-left",children:["Read"," ",(0,E.jsx)("a",{id:"no_global_note_link",className:"lmn-card-title-text lmn-mb-6 lmn-body-3-single lmn-text-left",href:"https://www.citigroup.com/rcs/citigpa/storage/public/global-privacy-policy-institutional-clients.pdf",style:{textDecoration:"underline"},target:"_blank",tabIndex:0,children:"Global Privacy Notice for Institutional Clients"})]}),(0,E.jsx)("div",{className:"lmn-dnca-w-xs-100",children:(0,E.jsx)(q,{backText:"Back",submitText:"Acknowledge",showDivider:!1,closeSubmission:!0,onBack:v,onSubmit:()=>{a("acknowledge"),ee(b,"ccbContactUsFormAcknowledge")}})})]})]})]})})]})})})},Sa=()=>{const{setIsCardOpen:e,isCancelClicked:a,setIsCancelClicked:l}=D(),[n,i]=(0,t.useState)(!0),r=function(){"acknowledge"==(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default")?(i(!1),e(!0)):i(!n)},c=()=>{const e=window.location.host.includes("uat")?"https://uat.apps.citi.net/global/page-not-found":"https://apps.citi.net/global/page-not-found";return(0,t.useEffect)(()=>{window.location.href=e},[e]),null};return(0,t.useEffect)(()=>{const e=document.querySelector(".citi-font");!e||window.parent.location.pathname.includes("contact-us")||window.parent.location.pathname.includes("insights")?e.style.background="#fff":e.style.background="#f0f5f7"},[]),(0,t.useEffect)(()=>{a&&(r(),l(!1))},[a]),(0,E.jsx)("div",{className:"citi-font",children:(0,E.jsx)(s.A,{showIcon:!0,closable:!0,children:(0,E.jsxs)(o.Routes,{children:[(0,E.jsx)(o.Route,{path:"/CCBContactus",element:n?(0,E.jsx)(wa,{onAcknowledge:r}):(0,E.jsx)(Xe,{onAcknowledge:r})}),(0,E.jsx)(o.Route,{path:"/CCBContactus/eppublic/contactus",element:n?(0,E.jsx)(wa,{onAcknowledge:r}):(0,E.jsx)(Xe,{onAcknowledge:r})}),(0,E.jsx)(o.Route,{path:"/webleads/internal",element:(0,E.jsx)(Ca,{})}),(0,E.jsx)(o.Route,{path:"*",element:(0,E.jsx)(c,{})})]})})})},ja=e=>{e&&e instanceof Function&&l.e(488).then(l.bind(l,2488)).then(a=>{let{getCLS:l,getFID:t,getFCP:n,getLCP:i,getTTFB:o}=a;l(e),t(e),n(e),i(e),o(e)})};var Aa=l(122),Na=l(2714);const Ia=document.getElementById("root");(0,i.H)(Ia).render((0,E.jsx)(n().StrictMode,{children:(0,E.jsx)(Aa.Ay,{children:(0,E.jsx)(Na.Ay,{children:(0,E.jsx)(R,{children:(0,E.jsx)(o.BrowserRouter,{basename:"/global",children:(0,E.jsx)(Sa,{})})})})})})),ja()},5533:(e,a,l)=>{e.exports=l.p+"static/media/Rectangle683.e0628abc556e106b602a.png"}},e=>{e.O(0,[228],()=>{return a=1193,e(e.s=a);var a});e.O()}]); //# sourceMappingURL=main.2f25503f.js.map