How to use DEFAULT_NAME method in storybook-root

Best JavaScript code snippet using storybook-root

address.service.ts

Source:address.service.ts Github

copy

Full Screen

1import { Injectable } from '@angular/core';2import { CustomerDataAddressSchema, QuoteDataAddressSchema } from '../../interfaces/interfaces';3import { CustomerService } from '../customer/customer.service';4@Injectable()5export class AddressService {6 regionCodes: RegionCode[] = [7 {"region_id":"1","country_id":"US","code":"AL","default_name":"Alabama"},8 {"region_id":"2","country_id":"US","code":"AK","default_name":"Alaska"},9 {"region_id":"3","country_id":"US","code":"AS","default_name":"American Samoa"},10 {"region_id":"4","country_id":"US","code":"AZ","default_name":"Arizona"},11 {"region_id":"5","country_id":"US","code":"AR","default_name":"Arkansas"},12 {"region_id":"6","country_id":"US","code":"AE","default_name":"Armed Forces Africa"},13 {"region_id":"7","country_id":"US","code":"AA","default_name":"Armed Forces Americas"},14 {"region_id":"8","country_id":"US","code":"AE","default_name":"Armed Forces Canada"},15 {"region_id":"9","country_id":"US","code":"AE","default_name":"Armed Forces Europe"},16 {"region_id":"10","country_id":"US","code":"AE","default_name":"Armed Forces Middle East"},17 {"region_id":"11","country_id":"US","code":"AP","default_name":"Armed Forces Pacific"},18 {"region_id":"12","country_id":"US","code":"CA","default_name":"California"},19 {"region_id":"13","country_id":"US","code":"CO","default_name":"Colorado"},20 {"region_id":"14","country_id":"US","code":"CT","default_name":"Connecticut"},21 {"region_id":"15","country_id":"US","code":"DE","default_name":"Delaware"},22 {"region_id":"16","country_id":"US","code":"DC","default_name":"District of Columbia"},23 {"region_id":"17","country_id":"US","code":"FM","default_name":"Federated States Of Micronesia"},24 {"region_id":"18","country_id":"US","code":"FL","default_name":"Florida"},25 {"region_id":"19","country_id":"US","code":"GA","default_name":"Georgia"},26 {"region_id":"20","country_id":"US","code":"GU","default_name":"Guam"},27 {"region_id":"21","country_id":"US","code":"HI","default_name":"Hawaii"},28 {"region_id":"22","country_id":"US","code":"ID","default_name":"Idaho"},29 {"region_id":"23","country_id":"US","code":"IL","default_name":"Illinois"},30 {"region_id":"24","country_id":"US","code":"IN","default_name":"Indiana"},31 {"region_id":"25","country_id":"US","code":"IA","default_name":"Iowa"},32 {"region_id":"26","country_id":"US","code":"KS","default_name":"Kansas"},33 {"region_id":"27","country_id":"US","code":"KY","default_name":"Kentucky"},34 {"region_id":"28","country_id":"US","code":"LA","default_name":"Louisiana"},35 {"region_id":"29","country_id":"US","code":"ME","default_name":"Maine"},36 {"region_id":"30","country_id":"US","code":"MH","default_name":"Marshall Islands"},37 {"region_id":"31","country_id":"US","code":"MD","default_name":"Maryland"},38 {"region_id":"32","country_id":"US","code":"MA","default_name":"Massachusetts"},39 {"region_id":"33","country_id":"US","code":"MI","default_name":"Michigan"},40 {"region_id":"34","country_id":"US","code":"MN","default_name":"Minnesota"},41 {"region_id":"35","country_id":"US","code":"MS","default_name":"Mississippi"},42 {"region_id":"36","country_id":"US","code":"MO","default_name":"Missouri"},43 {"region_id":"37","country_id":"US","code":"MT","default_name":"Montana"},44 {"region_id":"38","country_id":"US","code":"NE","default_name":"Nebraska"},45 {"region_id":"39","country_id":"US","code":"NV","default_name":"Nevada"},46 {"region_id":"40","country_id":"US","code":"NH","default_name":"New Hampshire"},47 {"region_id":"41","country_id":"US","code":"NJ","default_name":"New Jersey"},48 {"region_id":"42","country_id":"US","code":"NM","default_name":"New Mexico"},49 {"region_id":"43","country_id":"US","code":"NY","default_name":"New York"},50 {"region_id":"44","country_id":"US","code":"NC","default_name":"North Carolina"},51 {"region_id":"45","country_id":"US","code":"ND","default_name":"North Dakota"},52 {"region_id":"46","country_id":"US","code":"MP","default_name":"Northern Mariana Islands"},53 {"region_id":"47","country_id":"US","code":"OH","default_name":"Ohio"},54 {"region_id":"48","country_id":"US","code":"OK","default_name":"Oklahoma"},55 {"region_id":"49","country_id":"US","code":"OR","default_name":"Oregon"},56 {"region_id":"50","country_id":"US","code":"PW","default_name":"Palau"},57 {"region_id":"51","country_id":"US","code":"PA","default_name":"Pennsylvania"},58 {"region_id":"52","country_id":"US","code":"PR","default_name":"Puerto Rico"},59 {"region_id":"53","country_id":"US","code":"RI","default_name":"Rhode Island"},60 {"region_id":"54","country_id":"US","code":"SC","default_name":"South Carolina"},61 {"region_id":"55","country_id":"US","code":"SD","default_name":"South Dakota"},62 {"region_id":"56","country_id":"US","code":"TN","default_name":"Tennessee"},63 {"region_id":"57","country_id":"US","code":"TX","default_name":"Texas"},64 {"region_id":"58","country_id":"US","code":"UT","default_name":"Utah"},65 {"region_id":"59","country_id":"US","code":"VT","default_name":"Vermont"},66 {"region_id":"60","country_id":"US","code":"VI","default_name":"Virgin Islands"},67 {"region_id":"61","country_id":"US","code":"VA","default_name":"Virginia"},68 {"region_id":"62","country_id":"US","code":"WA","default_name":"Washington"},69 {"region_id":"63","country_id":"US","code":"WV","default_name":"West Virginia"},70 {"region_id":"64","country_id":"US","code":"WI","default_name":"Wisconsin"},71 {"region_id":"65","country_id":"US","code":"WY","default_name":"Wyoming"},72 {"region_id":"66","country_id":"CA","code":"AB","default_name":"Alberta"},73 {"region_id":"67","country_id":"CA","code":"BC","default_name":"British Columbia"},74 {"region_id":"68","country_id":"CA","code":"MB","default_name":"Manitoba"},75 {"region_id":"69","country_id":"CA","code":"NL","default_name":"Newfoundland and Labrador"},76 {"region_id":"70","country_id":"CA","code":"NB","default_name":"New Brunswick"},77 {"region_id":"71","country_id":"CA","code":"NS","default_name":"Nova Scotia"},78 {"region_id":"72","country_id":"CA","code":"NT","default_name":"Northwest Territories"},79 {"region_id":"73","country_id":"CA","code":"NU","default_name":"Nunavut"},80 {"region_id":"74","country_id":"CA","code":"ON","default_name":"Ontario"},81 {"region_id":"75","country_id":"CA","code":"PE","default_name":"Prince Edward Island"},82 {"region_id":"76","country_id":"CA","code":"QC","default_name":"Quebec"},83 {"region_id":"77","country_id":"CA","code":"SK","default_name":"Saskatchewan"},84 {"region_id":"78","country_id":"CA","code":"YT","default_name":"Yukon Territory"},85 {"region_id":"79","country_id":"DE","code":"NDS","default_name":"Niedersachsen"},86 {"region_id":"80","country_id":"DE","code":"BAW","default_name":"Baden-Württemberg"},87 {"region_id":"81","country_id":"DE","code":"BAY","default_name":"Bayern"},88 {"region_id":"82","country_id":"DE","code":"BER","default_name":"Berlin"},89 {"region_id":"83","country_id":"DE","code":"BRG","default_name":"Brandenburg"},90 {"region_id":"84","country_id":"DE","code":"BRE","default_name":"Bremen"},91 {"region_id":"85","country_id":"DE","code":"HAM","default_name":"Hamburg"},92 {"region_id":"86","country_id":"DE","code":"HES","default_name":"Hessen"},93 {"region_id":"87","country_id":"DE","code":"MEC","default_name":"Mecklenburg-Vorpommern"},94 {"region_id":"88","country_id":"DE","code":"NRW","default_name":"Nordrhein-Westfalen"},95 {"region_id":"89","country_id":"DE","code":"RHE","default_name":"Rheinland-Pfalz"},96 {"region_id":"90","country_id":"DE","code":"SAR","default_name":"Saarland"},97 {"region_id":"91","country_id":"DE","code":"SAS","default_name":"Sachsen"},98 {"region_id":"92","country_id":"DE","code":"SAC","default_name":"Sachsen-Anhalt"},99 {"region_id":"93","country_id":"DE","code":"SCN","default_name":"Schleswig-Holstein"},100 {"region_id":"94","country_id":"DE","code":"THE","default_name":"Thüringen"},101 {"region_id":"95","country_id":"AT","code":"WI","default_name":"Wien"},102 {"region_id":"96","country_id":"AT","code":"NO","default_name":"Niederösterreich"},103 {"region_id":"97","country_id":"AT","code":"OO","default_name":"Oberösterreich"},104 {"region_id":"98","country_id":"AT","code":"SB","default_name":"Salzburg"},105 {"region_id":"99","country_id":"AT","code":"KN","default_name":"Kärnten"},106 {"region_id":"100","country_id":"AT","code":"ST","default_name":"Steiermark"},107 {"region_id":"101","country_id":"AT","code":"TI","default_name":"Tirol"},108 {"region_id":"102","country_id":"AT","code":"BL","default_name":"Burgenland"},109 {"region_id":"103","country_id":"AT","code":"VB","default_name":"Vorarlberg"},110 {"region_id":"104","country_id":"CH","code":"AG","default_name":"Aargau"},111 {"region_id":"105","country_id":"CH","code":"AI","default_name":"Appenzell Innerrhoden"},112 {"region_id":"106","country_id":"CH","code":"AR","default_name":"Appenzell Ausserrhoden"},113 {"region_id":"107","country_id":"CH","code":"BE","default_name":"Bern"},114 {"region_id":"108","country_id":"CH","code":"BL","default_name":"Basel-Landschaft"},115 {"region_id":"109","country_id":"CH","code":"BS","default_name":"Basel-Stadt"},116 {"region_id":"110","country_id":"CH","code":"FR","default_name":"Freiburg"},117 {"region_id":"111","country_id":"CH","code":"GE","default_name":"Genf"},118 {"region_id":"112","country_id":"CH","code":"GL","default_name":"Glarus"},119 {"region_id":"113","country_id":"CH","code":"GR","default_name":"Graubünden"},120 {"region_id":"114","country_id":"CH","code":"JU","default_name":"Jura"},121 {"region_id":"115","country_id":"CH","code":"LU","default_name":"Luzern"},122 {"region_id":"116","country_id":"CH","code":"NE","default_name":"Neuenburg"},123 {"region_id":"117","country_id":"CH","code":"NW","default_name":"Nidwalden"},124 {"region_id":"118","country_id":"CH","code":"OW","default_name":"Obwalden"},125 {"region_id":"119","country_id":"CH","code":"SG","default_name":"St. Gallen"},126 {"region_id":"120","country_id":"CH","code":"SH","default_name":"Schaffhausen"},127 {"region_id":"121","country_id":"CH","code":"SO","default_name":"Solothurn"},128 {"region_id":"122","country_id":"CH","code":"SZ","default_name":"Schwyz"},129 {"region_id":"123","country_id":"CH","code":"TG","default_name":"Thurgau"},130 {"region_id":"124","country_id":"CH","code":"TI","default_name":"Tessin"},131 {"region_id":"125","country_id":"CH","code":"UR","default_name":"Uri"},132 {"region_id":"126","country_id":"CH","code":"VD","default_name":"Waadt"},133 {"region_id":"127","country_id":"CH","code":"VS","default_name":"Wallis"},134 {"region_id":"128","country_id":"CH","code":"ZG","default_name":"Zug"},135 {"region_id":"129","country_id":"CH","code":"ZH","default_name":"Zürich"},136 {"region_id":"130","country_id":"ES","code":"A Coruсa","default_name":"A Coruña"},137 {"region_id":"131","country_id":"ES","code":"Alava","default_name":"Alava"},138 {"region_id":"132","country_id":"ES","code":"Albacete","default_name":"Albacete"},139 {"region_id":"133","country_id":"ES","code":"Alicante","default_name":"Alicante"},140 {"region_id":"134","country_id":"ES","code":"Almeria","default_name":"Almeria"},141 {"region_id":"135","country_id":"ES","code":"Asturias","default_name":"Asturias"},142 {"region_id":"136","country_id":"ES","code":"Avila","default_name":"Avila"},143 {"region_id":"137","country_id":"ES","code":"Badajoz","default_name":"Badajoz"},144 {"region_id":"138","country_id":"ES","code":"Baleares","default_name":"Baleares"},145 {"region_id":"139","country_id":"ES","code":"Barcelona","default_name":"Barcelona"},146 {"region_id":"140","country_id":"ES","code":"Burgos","default_name":"Burgos"},147 {"region_id":"141","country_id":"ES","code":"Caceres","default_name":"Caceres"},148 {"region_id":"142","country_id":"ES","code":"Cadiz","default_name":"Cadiz"},149 {"region_id":"143","country_id":"ES","code":"Cantabria","default_name":"Cantabria"},150 {"region_id":"144","country_id":"ES","code":"Castellon","default_name":"Castellon"},151 {"region_id":"145","country_id":"ES","code":"Ceuta","default_name":"Ceuta"},152 {"region_id":"146","country_id":"ES","code":"Ciudad Real","default_name":"Ciudad Real"},153 {"region_id":"147","country_id":"ES","code":"Cordoba","default_name":"Cordoba"},154 {"region_id":"148","country_id":"ES","code":"Cuenca","default_name":"Cuenca"},155 {"region_id":"149","country_id":"ES","code":"Girona","default_name":"Girona"},156 {"region_id":"150","country_id":"ES","code":"Granada","default_name":"Granada"},157 {"region_id":"151","country_id":"ES","code":"Guadalajara","default_name":"Guadalajara"},158 {"region_id":"152","country_id":"ES","code":"Guipuzcoa","default_name":"Guipuzcoa"},159 {"region_id":"153","country_id":"ES","code":"Huelva","default_name":"Huelva"},160 {"region_id":"154","country_id":"ES","code":"Huesca","default_name":"Huesca"},161 {"region_id":"155","country_id":"ES","code":"Jaen","default_name":"Jaen"},162 {"region_id":"156","country_id":"ES","code":"La Rioja","default_name":"La Rioja"},163 {"region_id":"157","country_id":"ES","code":"Las Palmas","default_name":"Las Palmas"},164 {"region_id":"158","country_id":"ES","code":"Leon","default_name":"Leon"},165 {"region_id":"159","country_id":"ES","code":"Lleida","default_name":"Lleida"},166 {"region_id":"160","country_id":"ES","code":"Lugo","default_name":"Lugo"},167 {"region_id":"161","country_id":"ES","code":"Madrid","default_name":"Madrid"},168 {"region_id":"162","country_id":"ES","code":"Malaga","default_name":"Malaga"},169 {"region_id":"163","country_id":"ES","code":"Melilla","default_name":"Melilla"},170 {"region_id":"164","country_id":"ES","code":"Murcia","default_name":"Murcia"},171 {"region_id":"165","country_id":"ES","code":"Navarra","default_name":"Navarra"},172 {"region_id":"166","country_id":"ES","code":"Ourense","default_name":"Ourense"},173 {"region_id":"167","country_id":"ES","code":"Palencia","default_name":"Palencia"},174 {"region_id":"168","country_id":"ES","code":"Pontevedra","default_name":"Pontevedra"},175 {"region_id":"169","country_id":"ES","code":"Salamanca","default_name":"Salamanca"},176 {"region_id":"170","country_id":"ES","code":"Santa Cruz de Tenerife","default_name":"Santa Cruz de Tenerife"},177 {"region_id":"171","country_id":"ES","code":"Segovia","default_name":"Segovia"},178 {"region_id":"172","country_id":"ES","code":"Sevilla","default_name":"Sevilla"},179 {"region_id":"173","country_id":"ES","code":"Soria","default_name":"Soria"},180 {"region_id":"174","country_id":"ES","code":"Tarragona","default_name":"Tarragona"},181 {"region_id":"175","country_id":"ES","code":"Teruel","default_name":"Teruel"},182 {"region_id":"176","country_id":"ES","code":"Toledo","default_name":"Toledo"},183 {"region_id":"177","country_id":"ES","code":"Valencia","default_name":"Valencia"},184 {"region_id":"178","country_id":"ES","code":"Valladolid","default_name":"Valladolid"},185 {"region_id":"179","country_id":"ES","code":"Vizcaya","default_name":"Vizcaya"},186 {"region_id":"180","country_id":"ES","code":"Zamora","default_name":"Zamora"},187 {"region_id":"181","country_id":"ES","code":"Zaragoza","default_name":"Zaragoza"},188 {"region_id":"182","country_id":"FR","code":"1","default_name":"Ain"},189 {"region_id":"183","country_id":"FR","code":"2","default_name":"Aisne"},190 {"region_id":"184","country_id":"FR","code":"3","default_name":"Allier"},191 {"region_id":"185","country_id":"FR","code":"4","default_name":"Alpes-de-Haute-Provence"},192 {"region_id":"186","country_id":"FR","code":"5","default_name":"Hautes-Alpes"},193 {"region_id":"187","country_id":"FR","code":"6","default_name":"Alpes-Maritimes"},194 {"region_id":"188","country_id":"FR","code":"7","default_name":"Ardèche"},195 {"region_id":"189","country_id":"FR","code":"8","default_name":"Ardennes"},196 {"region_id":"190","country_id":"FR","code":"9","default_name":"Ariège"},197 {"region_id":"191","country_id":"FR","code":"10","default_name":"Aube"},198 {"region_id":"192","country_id":"FR","code":"11","default_name":"Aude"},199 {"region_id":"193","country_id":"FR","code":"12","default_name":"Aveyron"},200 {"region_id":"194","country_id":"FR","code":"13","default_name":"Bouches-du-Rhône"},201 {"region_id":"195","country_id":"FR","code":"14","default_name":"Calvados"},202 {"region_id":"196","country_id":"FR","code":"15","default_name":"Cantal"},203 {"region_id":"197","country_id":"FR","code":"16","default_name":"Charente"},204 {"region_id":"198","country_id":"FR","code":"17","default_name":"Charente-Maritime"},205 {"region_id":"199","country_id":"FR","code":"18","default_name":"Cher"},206 {"region_id":"200","country_id":"FR","code":"19","default_name":"Corrèze"},207 {"region_id":"201","country_id":"FR","code":"2A","default_name":"Corse-du-Sud"},208 {"region_id":"202","country_id":"FR","code":"2B","default_name":"Haute-Corse"},209 {"region_id":"203","country_id":"FR","code":"21","default_name":"Côte-d'Or"},210 {"region_id":"204","country_id":"FR","code":"22","default_name":"Côtes-d'Armor"},211 {"region_id":"205","country_id":"FR","code":"23","default_name":"Creuse"},212 {"region_id":"206","country_id":"FR","code":"24","default_name":"Dordogne"},213 {"region_id":"207","country_id":"FR","code":"25","default_name":"Doubs"},214 {"region_id":"208","country_id":"FR","code":"26","default_name":"Drôme"},215 {"region_id":"209","country_id":"FR","code":"27","default_name":"Eure"},216 {"region_id":"210","country_id":"FR","code":"28","default_name":"Eure-et-Loir"},217 {"region_id":"211","country_id":"FR","code":"29","default_name":"Finistère"},218 {"region_id":"212","country_id":"FR","code":"30","default_name":"Gard"},219 {"region_id":"213","country_id":"FR","code":"31","default_name":"Haute-Garonne"},220 {"region_id":"214","country_id":"FR","code":"32","default_name":"Gers"},221 {"region_id":"215","country_id":"FR","code":"33","default_name":"Gironde"},222 {"region_id":"216","country_id":"FR","code":"34","default_name":"Hérault"},223 {"region_id":"217","country_id":"FR","code":"35","default_name":"Ille-et-Vilaine"},224 {"region_id":"218","country_id":"FR","code":"36","default_name":"Indre"},225 {"region_id":"219","country_id":"FR","code":"37","default_name":"Indre-et-Loire"},226 {"region_id":"220","country_id":"FR","code":"38","default_name":"Isère"},227 {"region_id":"221","country_id":"FR","code":"39","default_name":"Jura"},228 {"region_id":"222","country_id":"FR","code":"40","default_name":"Landes"},229 {"region_id":"223","country_id":"FR","code":"41","default_name":"Loir-et-Cher"},230 {"region_id":"224","country_id":"FR","code":"42","default_name":"Loire"},231 {"region_id":"225","country_id":"FR","code":"43","default_name":"Haute-Loire"},232 {"region_id":"226","country_id":"FR","code":"44","default_name":"Loire-Atlantique"},233 {"region_id":"227","country_id":"FR","code":"45","default_name":"Loiret"},234 {"region_id":"228","country_id":"FR","code":"46","default_name":"Lot"},235 {"region_id":"229","country_id":"FR","code":"47","default_name":"Lot-et-Garonne"},236 {"region_id":"230","country_id":"FR","code":"48","default_name":"Lozère"},237 {"region_id":"231","country_id":"FR","code":"49","default_name":"Maine-et-Loire"},238 {"region_id":"232","country_id":"FR","code":"50","default_name":"Manche"},239 {"region_id":"233","country_id":"FR","code":"51","default_name":"Marne"},240 {"region_id":"234","country_id":"FR","code":"52","default_name":"Haute-Marne"},241 {"region_id":"235","country_id":"FR","code":"53","default_name":"Mayenne"},242 {"region_id":"236","country_id":"FR","code":"54","default_name":"Meurthe-et-Moselle"},243 {"region_id":"237","country_id":"FR","code":"55","default_name":"Meuse"},244 {"region_id":"238","country_id":"FR","code":"56","default_name":"Morbihan"},245 {"region_id":"239","country_id":"FR","code":"57","default_name":"Moselle"},246 {"region_id":"240","country_id":"FR","code":"58","default_name":"Nièvre"},247 {"region_id":"241","country_id":"FR","code":"59","default_name":"Nord"},248 {"region_id":"242","country_id":"FR","code":"60","default_name":"Oise"},249 {"region_id":"243","country_id":"FR","code":"61","default_name":"Orne"},250 {"region_id":"244","country_id":"FR","code":"62","default_name":"Pas-de-Calais"},251 {"region_id":"245","country_id":"FR","code":"63","default_name":"Puy-de-Dôme"},252 {"region_id":"246","country_id":"FR","code":"64","default_name":"Pyrénées-Atlantiques"},253 {"region_id":"247","country_id":"FR","code":"65","default_name":"Hautes-Pyrénées"},254 {"region_id":"248","country_id":"FR","code":"66","default_name":"Pyrénées-Orientales"},255 {"region_id":"249","country_id":"FR","code":"67","default_name":"Bas-Rhin"},256 {"region_id":"250","country_id":"FR","code":"68","default_name":"Haut-Rhin"},257 {"region_id":"251","country_id":"FR","code":"69","default_name":"Rhône"},258 {"region_id":"252","country_id":"FR","code":"70","default_name":"Haute-Saône"},259 {"region_id":"253","country_id":"FR","code":"71","default_name":"Saône-et-Loire"},260 {"region_id":"254","country_id":"FR","code":"72","default_name":"Sarthe"},261 {"region_id":"255","country_id":"FR","code":"73","default_name":"Savoie"},262 {"region_id":"256","country_id":"FR","code":"74","default_name":"Haute-Savoie"},263 {"region_id":"257","country_id":"FR","code":"75","default_name":"Paris"},264 {"region_id":"258","country_id":"FR","code":"76","default_name":"Seine-Maritime"},265 {"region_id":"259","country_id":"FR","code":"77","default_name":"Seine-et-Marne"},266 {"region_id":"260","country_id":"FR","code":"78","default_name":"Yvelines"},267 {"region_id":"261","country_id":"FR","code":"79","default_name":"Deux-Sèvres"},268 {"region_id":"262","country_id":"FR","code":"80","default_name":"Somme"},269 {"region_id":"263","country_id":"FR","code":"81","default_name":"Tarn"},270 {"region_id":"264","country_id":"FR","code":"82","default_name":"Tarn-et-Garonne"},271 {"region_id":"265","country_id":"FR","code":"83","default_name":"Var"},272 {"region_id":"266","country_id":"FR","code":"84","default_name":"Vaucluse"},273 {"region_id":"267","country_id":"FR","code":"85","default_name":"Vendée"},274 {"region_id":"268","country_id":"FR","code":"86","default_name":"Vienne"},275 {"region_id":"269","country_id":"FR","code":"87","default_name":"Haute-Vienne"},276 {"region_id":"270","country_id":"FR","code":"88","default_name":"Vosges"},277 {"region_id":"271","country_id":"FR","code":"89","default_name":"Yonne"},278 {"region_id":"272","country_id":"FR","code":"90","default_name":"Territoire-de-Belfort"},279 {"region_id":"273","country_id":"FR","code":"91","default_name":"Essonne"},280 {"region_id":"274","country_id":"FR","code":"92","default_name":"Hauts-de-Seine"},281 {"region_id":"275","country_id":"FR","code":"93","default_name":"Seine-Saint-Denis"},282 {"region_id":"276","country_id":"FR","code":"94","default_name":"Val-de-Marne"},283 {"region_id":"277","country_id":"FR","code":"95","default_name":"Val-d'Oise"},284 {"region_id":"278","country_id":"RO","code":"AB","default_name":"Alba"},285 {"region_id":"279","country_id":"RO","code":"AR","default_name":"Arad"},286 {"region_id":"280","country_id":"RO","code":"AG","default_name":"Argeş"},287 {"region_id":"281","country_id":"RO","code":"BC","default_name":"Bacău"},288 {"region_id":"282","country_id":"RO","code":"BH","default_name":"Bihor"},289 {"region_id":"283","country_id":"RO","code":"BN","default_name":"Bistriţa-Năsăud"},290 {"region_id":"284","country_id":"RO","code":"BT","default_name":"Botoşani"},291 {"region_id":"285","country_id":"RO","code":"BV","default_name":"Braşov"},292 {"region_id":"286","country_id":"RO","code":"BR","default_name":"Brăila"},293 {"region_id":"287","country_id":"RO","code":"B","default_name":"Bucureşti"},294 {"region_id":"288","country_id":"RO","code":"BZ","default_name":"Buzău"},295 {"region_id":"289","country_id":"RO","code":"CS","default_name":"Caraş-Severin"},296 {"region_id":"290","country_id":"RO","code":"CL","default_name":"Călăraşi"},297 {"region_id":"291","country_id":"RO","code":"CJ","default_name":"Cluj"},298 {"region_id":"292","country_id":"RO","code":"CT","default_name":"Constanţa"},299 {"region_id":"293","country_id":"RO","code":"CV","default_name":"Covasna"},300 {"region_id":"294","country_id":"RO","code":"DB","default_name":"Dâmboviţa"},301 {"region_id":"295","country_id":"RO","code":"DJ","default_name":"Dolj"},302 {"region_id":"296","country_id":"RO","code":"GL","default_name":"Galaţi"},303 {"region_id":"297","country_id":"RO","code":"GR","default_name":"Giurgiu"},304 {"region_id":"298","country_id":"RO","code":"GJ","default_name":"Gorj"},305 {"region_id":"299","country_id":"RO","code":"HR","default_name":"Harghita"},306 {"region_id":"300","country_id":"RO","code":"HD","default_name":"Hunedoara"},307 {"region_id":"301","country_id":"RO","code":"IL","default_name":"Ialomiţa"},308 {"region_id":"302","country_id":"RO","code":"IS","default_name":"Iaşi"},309 {"region_id":"303","country_id":"RO","code":"IF","default_name":"Ilfov"},310 {"region_id":"304","country_id":"RO","code":"MM","default_name":"Maramureş"},311 {"region_id":"305","country_id":"RO","code":"MH","default_name":"Mehedinţi"},312 {"region_id":"306","country_id":"RO","code":"MS","default_name":"Mureş"},313 {"region_id":"307","country_id":"RO","code":"NT","default_name":"Neamţ"},314 {"region_id":"308","country_id":"RO","code":"OT","default_name":"Olt"},315 {"region_id":"309","country_id":"RO","code":"PH","default_name":"Prahova"},316 {"region_id":"310","country_id":"RO","code":"SM","default_name":"Satu-Mare"},317 {"region_id":"311","country_id":"RO","code":"SJ","default_name":"Sălaj"},318 {"region_id":"312","country_id":"RO","code":"SB","default_name":"Sibiu"},319 {"region_id":"313","country_id":"RO","code":"SV","default_name":"Suceava"},320 {"region_id":"314","country_id":"RO","code":"TR","default_name":"Teleorman"},321 {"region_id":"315","country_id":"RO","code":"TM","default_name":"Timiş"},322 {"region_id":"316","country_id":"RO","code":"TL","default_name":"Tulcea"},323 {"region_id":"317","country_id":"RO","code":"VS","default_name":"Vaslui"},324 {"region_id":"318","country_id":"RO","code":"VL","default_name":"Vâlcea"},325 {"region_id":"319","country_id":"RO","code":"VN","default_name":"Vrancea"},326 {"region_id":"320","country_id":"FI","code":"Lappi","default_name":"Lappi"},327 {"region_id":"321","country_id":"FI","code":"Pohjois-Pohjanmaa","default_name":"Pohjois-Pohjanmaa"},328 {"region_id":"322","country_id":"FI","code":"Kainuu","default_name":"Kainuu"},329 {"region_id":"323","country_id":"FI","code":"Pohjois-Karjala","default_name":"Pohjois-Karjala"},330 {"region_id":"324","country_id":"FI","code":"Pohjois-Savo","default_name":"Pohjois-Savo"},331 {"region_id":"325","country_id":"FI","code":"Etelä-Savo","default_name":"Etelä-Savo"},332 {"region_id":"326","country_id":"FI","code":"Etelä-Pohjanmaa","default_name":"Etelä-Pohjanmaa"},333 {"region_id":"327","country_id":"FI","code":"Pohjanmaa","default_name":"Pohjanmaa"},334 {"region_id":"328","country_id":"FI","code":"Pirkanmaa","default_name":"Pirkanmaa"},335 {"region_id":"329","country_id":"FI","code":"Satakunta","default_name":"Satakunta"},336 {"region_id":"330","country_id":"FI","code":"Keski-Pohjanmaa","default_name":"Keski-Pohjanmaa"},337 {"region_id":"331","country_id":"FI","code":"Keski-Suomi","default_name":"Keski-Suomi"},338 {"region_id":"332","country_id":"FI","code":"Varsinais-Suomi","default_name":"Varsinais-Suomi"},339 {"region_id":"333","country_id":"FI","code":"Etelä-Karjala","default_name":"Etelä-Karjala"},340 {"region_id":"334","country_id":"FI","code":"Päijät-Häme","default_name":"Päijät-Häme"},341 {"region_id":"335","country_id":"FI","code":"Kanta-Häme","default_name":"Kanta-Häme"},342 {"region_id":"336","country_id":"FI","code":"Uusimaa","default_name":"Uusimaa"},343 {"region_id":"337","country_id":"FI","code":"Itä-Uusimaa","default_name":"Itä-Uusimaa"},344 {"region_id":"338","country_id":"FI","code":"Kymenlaakso","default_name":"Kymenlaakso"},345 {"region_id":"339","country_id":"FI","code":"Ahvenanmaa","default_name":"Ahvenanmaa"},346 {"region_id":"340","country_id":"EE","code":"EE-37","default_name":"Harjumaa"},347 {"region_id":"341","country_id":"EE","code":"EE-39","default_name":"Hiiumaa"},348 {"region_id":"342","country_id":"EE","code":"EE-44","default_name":"Ida-Virumaa"},349 {"region_id":"343","country_id":"EE","code":"EE-49","default_name":"Jõgevamaa"},350 {"region_id":"344","country_id":"EE","code":"EE-51","default_name":"Järvamaa"},351 {"region_id":"345","country_id":"EE","code":"EE-57","default_name":"Läänemaa"},352 {"region_id":"346","country_id":"EE","code":"EE-59","default_name":"Lääne-Virumaa"},353 {"region_id":"347","country_id":"EE","code":"EE-65","default_name":"Põlvamaa"},354 {"region_id":"348","country_id":"EE","code":"EE-67","default_name":"Pärnumaa"},355 {"region_id":"349","country_id":"EE","code":"EE-70","default_name":"Raplamaa"},356 {"region_id":"350","country_id":"EE","code":"EE-74","default_name":"Saaremaa"},357 {"region_id":"351","country_id":"EE","code":"EE-78","default_name":"Tartumaa"},358 {"region_id":"352","country_id":"EE","code":"EE-82","default_name":"Valgamaa"},359 {"region_id":"353","country_id":"EE","code":"EE-84","default_name":"Viljandimaa"},360 {"region_id":"354","country_id":"EE","code":"EE-86","default_name":"Võrumaa"},361 {"region_id":"355","country_id":"LV","code":"LV-DGV","default_name":"Daugavpils"},362 {"region_id":"356","country_id":"LV","code":"LV-JEL","default_name":"Jelgava"},363 {"region_id":"357","country_id":"LV","code":"Jēkabpils","default_name":"Jēkabpils"},364 {"region_id":"358","country_id":"LV","code":"LV-JUR","default_name":"Jūrmala"},365 {"region_id":"359","country_id":"LV","code":"LV-LPX","default_name":"Liepāja"},366 {"region_id":"360","country_id":"LV","code":"LV-LE","default_name":"Liepājas novads"},367 {"region_id":"361","country_id":"LV","code":"LV-REZ","default_name":"Rēzekne"},368 {"region_id":"362","country_id":"LV","code":"LV-RIX","default_name":"Rīga"},369 {"region_id":"363","country_id":"LV","code":"LV-RI","default_name":"Rīgas novads"},370 {"region_id":"364","country_id":"LV","code":"Valmiera","default_name":"Valmiera"},371 {"region_id":"365","country_id":"LV","code":"LV-VEN","default_name":"Ventspils"},372 {"region_id":"366","country_id":"LV","code":"Aglonas novads","default_name":"Aglonas novads"},373 {"region_id":"367","country_id":"LV","code":"LV-AI","default_name":"Aizkraukles novads"},374 {"region_id":"368","country_id":"LV","code":"Aizputes novads","default_name":"Aizputes novads"},375 {"region_id":"369","country_id":"LV","code":"Aknīstes novads","default_name":"Aknīstes novads"},376 {"region_id":"370","country_id":"LV","code":"Alojas novads","default_name":"Alojas novads"},377 {"region_id":"371","country_id":"LV","code":"Alsungas novads","default_name":"Alsungas novads"},378 {"region_id":"372","country_id":"LV","code":"LV-AL","default_name":"Alūksnes novads"},379 {"region_id":"373","country_id":"LV","code":"Amatas novads","default_name":"Amatas novads"},380 {"region_id":"374","country_id":"LV","code":"Apes novads","default_name":"Apes novads"},381 {"region_id":"375","country_id":"LV","code":"Auces novads","default_name":"Auces novads"},382 {"region_id":"376","country_id":"LV","code":"Babītes novads","default_name":"Babītes novads"},383 {"region_id":"377","country_id":"LV","code":"Baldones novads","default_name":"Baldones novads"},384 {"region_id":"378","country_id":"LV","code":"Baltinavas novads","default_name":"Baltinavas novads"},385 {"region_id":"379","country_id":"LV","code":"LV-BL","default_name":"Balvu novads"},386 {"region_id":"380","country_id":"LV","code":"LV-BU","default_name":"Bauskas novads"},387 {"region_id":"381","country_id":"LV","code":"Beverīnas novads","default_name":"Beverīnas novads"},388 {"region_id":"382","country_id":"LV","code":"Brocēnu novads","default_name":"Brocēnu novads"},389 {"region_id":"383","country_id":"LV","code":"Burtnieku novads","default_name":"Burtnieku novads"},390 {"region_id":"384","country_id":"LV","code":"Carnikavas novads","default_name":"Carnikavas novads"},391 {"region_id":"385","country_id":"LV","code":"Cesvaines novads","default_name":"Cesvaines novads"},392 {"region_id":"386","country_id":"LV","code":"Ciblas novads","default_name":"Ciblas novads"},393 {"region_id":"387","country_id":"LV","code":"LV-CE","default_name":"Cēsu novads"},394 {"region_id":"388","country_id":"LV","code":"Dagdas novads","default_name":"Dagdas novads"},395 {"region_id":"389","country_id":"LV","code":"LV-DA","default_name":"Daugavpils novads"},396 {"region_id":"390","country_id":"LV","code":"LV-DO","default_name":"Dobeles novads"},397 {"region_id":"391","country_id":"LV","code":"Dundagas novads","default_name":"Dundagas novads"},398 {"region_id":"392","country_id":"LV","code":"Durbes novads","default_name":"Durbes novads"},399 {"region_id":"393","country_id":"LV","code":"Engures novads","default_name":"Engures novads"},400 {"region_id":"394","country_id":"LV","code":"Garkalnes novads","default_name":"Garkalnes novads"},401 {"region_id":"395","country_id":"LV","code":"Grobiņas novads","default_name":"Grobiņas novads"},402 {"region_id":"396","country_id":"LV","code":"LV-GU","default_name":"Gulbenes novads"},403 {"region_id":"397","country_id":"LV","code":"Iecavas novads","default_name":"Iecavas novads"},404 {"region_id":"398","country_id":"LV","code":"Ikšķiles novads","default_name":"Ikšķiles novads"},405 {"region_id":"399","country_id":"LV","code":"Ilūkstes novads","default_name":"Ilūkstes novads"},406 {"region_id":"400","country_id":"LV","code":"Inčukalna novads","default_name":"Inčukalna novads"},407 {"region_id":"401","country_id":"LV","code":"Jaunjelgavas novads","default_name":"Jaunjelgavas novads"},408 {"region_id":"402","country_id":"LV","code":"Jaunpiebalgas novads","default_name":"Jaunpiebalgas novads"},409 {"region_id":"403","country_id":"LV","code":"Jaunpils novads","default_name":"Jaunpils novads"},410 {"region_id":"404","country_id":"LV","code":"LV-JL","default_name":"Jelgavas novads"},411 {"region_id":"405","country_id":"LV","code":"LV-JK","default_name":"Jēkabpils novads"},412 {"region_id":"406","country_id":"LV","code":"Kandavas novads","default_name":"Kandavas novads"},413 {"region_id":"407","country_id":"LV","code":"Kokneses novads","default_name":"Kokneses novads"},414 {"region_id":"408","country_id":"LV","code":"Krimuldas novads","default_name":"Krimuldas novads"},415 {"region_id":"409","country_id":"LV","code":"Krustpils novads","default_name":"Krustpils novads"},416 {"region_id":"410","country_id":"LV","code":"LV-KR","default_name":"Krāslavas novads"},417 {"region_id":"411","country_id":"LV","code":"LV-KU","default_name":"Kuldīgas novads"},418 {"region_id":"412","country_id":"LV","code":"Kārsavas novads","default_name":"Kārsavas novads"},419 {"region_id":"413","country_id":"LV","code":"Lielvārdes novads","default_name":"Lielvārdes novads"},420 {"region_id":"414","country_id":"LV","code":"LV-LM","default_name":"Limbažu novads"},421 {"region_id":"415","country_id":"LV","code":"Lubānas novads","default_name":"Lubānas novads"},422 {"region_id":"416","country_id":"LV","code":"LV-LU","default_name":"Ludzas novads"},423 {"region_id":"417","country_id":"LV","code":"Līgatnes novads","default_name":"Līgatnes novads"},424 {"region_id":"418","country_id":"LV","code":"Līvānu novads","default_name":"Līvānu novads"},425 {"region_id":"419","country_id":"LV","code":"LV-MA","default_name":"Madonas novads"},426 {"region_id":"420","country_id":"LV","code":"Mazsalacas novads","default_name":"Mazsalacas novads"},427 {"region_id":"421","country_id":"LV","code":"Mālpils novads","default_name":"Mālpils novads"},428 {"region_id":"422","country_id":"LV","code":"Mārupes novads","default_name":"Mārupes novads"},429 {"region_id":"423","country_id":"LV","code":"Naukšēnu novads","default_name":"Naukšēnu novads"},430 {"region_id":"424","country_id":"LV","code":"Neretas novads","default_name":"Neretas novads"},431 {"region_id":"425","country_id":"LV","code":"Nīcas novads","default_name":"Nīcas novads"},432 {"region_id":"426","country_id":"LV","code":"LV-OG","default_name":"Ogres novads"},433 {"region_id":"427","country_id":"LV","code":"Olaines novads","default_name":"Olaines novads"},434 {"region_id":"428","country_id":"LV","code":"Ozolnieku novads","default_name":"Ozolnieku novads"},435 {"region_id":"429","country_id":"LV","code":"LV-PR","default_name":"Preiļu novads"},436 {"region_id":"430","country_id":"LV","code":"Priekules novads","default_name":"Priekules novads"},437 {"region_id":"431","country_id":"LV","code":"Priekuļu novads","default_name":"Priekuļu novads"},438 {"region_id":"432","country_id":"LV","code":"Pārgaujas novads","default_name":"Pārgaujas novads"},439 {"region_id":"433","country_id":"LV","code":"Pāvilostas novads","default_name":"Pāvilostas novads"},440 {"region_id":"434","country_id":"LV","code":"Pļaviņu novads","default_name":"Pļaviņu novads"},441 {"region_id":"435","country_id":"LV","code":"Raunas novads","default_name":"Raunas novads"},442 {"region_id":"436","country_id":"LV","code":"Riebiņu novads","default_name":"Riebiņu novads"},443 {"region_id":"437","country_id":"LV","code":"Rojas novads","default_name":"Rojas novads"},444 {"region_id":"438","country_id":"LV","code":"Ropažu novads","default_name":"Ropažu novads"},445 {"region_id":"439","country_id":"LV","code":"Rucavas novads","default_name":"Rucavas novads"},446 {"region_id":"440","country_id":"LV","code":"Rugāju novads","default_name":"Rugāju novads"},447 {"region_id":"441","country_id":"LV","code":"Rundāles novads","default_name":"Rundāles novads"},448 {"region_id":"442","country_id":"LV","code":"LV-RE","default_name":"Rēzeknes novads"},449 {"region_id":"443","country_id":"LV","code":"Rūjienas novads","default_name":"Rūjienas novads"},450 {"region_id":"444","country_id":"LV","code":"Salacgrīvas novads","default_name":"Salacgrīvas novads"},451 {"region_id":"445","country_id":"LV","code":"Salas novads","default_name":"Salas novads"},452 {"region_id":"446","country_id":"LV","code":"Salaspils novads","default_name":"Salaspils novads"},453 {"region_id":"447","country_id":"LV","code":"LV-SA","default_name":"Saldus novads"},454 {"region_id":"448","country_id":"LV","code":"Saulkrastu novads","default_name":"Saulkrastu novads"},455 {"region_id":"449","country_id":"LV","code":"Siguldas novads","default_name":"Siguldas novads"},456 {"region_id":"450","country_id":"LV","code":"Skrundas novads","default_name":"Skrundas novads"},457 {"region_id":"451","country_id":"LV","code":"Skrīveru novads","default_name":"Skrīveru novads"},458 {"region_id":"452","country_id":"LV","code":"Smiltenes novads","default_name":"Smiltenes novads"},459 {"region_id":"453","country_id":"LV","code":"Stopiņu novads","default_name":"Stopiņu novads"},460 {"region_id":"454","country_id":"LV","code":"Strenču novads","default_name":"Strenču novads"},461 {"region_id":"455","country_id":"LV","code":"Sējas novads","default_name":"Sējas novads"},462 {"region_id":"456","country_id":"LV","code":"LV-TA","default_name":"Talsu novads"},463 {"region_id":"457","country_id":"LV","code":"LV-TU","default_name":"Tukuma novads"},464 {"region_id":"458","country_id":"LV","code":"Tērvetes novads","default_name":"Tērvetes novads"},465 {"region_id":"459","country_id":"LV","code":"Vaiņodes novads","default_name":"Vaiņodes novads"},466 {"region_id":"460","country_id":"LV","code":"LV-VK","default_name":"Valkas novads"},467 {"region_id":"461","country_id":"LV","code":"LV-VM","default_name":"Valmieras novads"},468 {"region_id":"462","country_id":"LV","code":"Varakļānu novads","default_name":"Varakļānu novads"},469 {"region_id":"463","country_id":"LV","code":"Vecpiebalgas novads","default_name":"Vecpiebalgas novads"},470 {"region_id":"464","country_id":"LV","code":"Vecumnieku novads","default_name":"Vecumnieku novads"},471 {"region_id":"465","country_id":"LV","code":"LV-VE","default_name":"Ventspils novads"},472 {"region_id":"466","country_id":"LV","code":"Viesītes novads","default_name":"Viesītes novads"},473 {"region_id":"467","country_id":"LV","code":"Viļakas novads","default_name":"Viļakas novads"},474 {"region_id":"468","country_id":"LV","code":"Viļānu novads","default_name":"Viļānu novads"},475 {"region_id":"469","country_id":"LV","code":"Vārkavas novads","default_name":"Vārkavas novads"},476 {"region_id":"470","country_id":"LV","code":"Zilupes novads","default_name":"Zilupes novads"},477 {"region_id":"471","country_id":"LV","code":"Ādažu novads","default_name":"Ādažu novads"},478 {"region_id":"472","country_id":"LV","code":"Ērgļu novads","default_name":"Ērgļu novads"},479 {"region_id":"473","country_id":"LV","code":"Ķeguma novads","default_name":"Ķeguma novads"},480 {"region_id":"474","country_id":"LV","code":"Ķekavas novads","default_name":"Ķekavas novads"},481 {"region_id":"475","country_id":"LT","code":"LT-AL","default_name":"Alytaus Apskritis"},482 {"region_id":"476","country_id":"LT","code":"LT-KU","default_name":"Kauno Apskritis"},483 {"region_id":"477","country_id":"LT","code":"LT-KL","default_name":"Klaipėdos Apskritis"},484 {"region_id":"478","country_id":"LT","code":"LT-MR","default_name":"Marijampolės Apskritis"},485 {"region_id":"479","country_id":"LT","code":"LT-PN","default_name":"Panevėžio Apskritis"},486 {"region_id":"480","country_id":"LT","code":"LT-SA","default_name":"Šiaulių Apskritis"},487 {"region_id":"481","country_id":"LT","code":"LT-TA","default_name":"Tauragės Apskritis"},488 {"region_id":"482","country_id":"LT","code":"LT-TE","default_name":"Telšių Apskritis"},489 {"region_id":"483","country_id":"LT","code":"LT-UT","default_name":"Utenos Apskritis"},490 {"region_id":"484","country_id":"LT","code":"LT-VL","default_name":"Vilniaus Apskritis"},491 {"region_id":"485","country_id":"BR","code":"AC","default_name":"Acre"},492 {"region_id":"486","country_id":"BR","code":"AL","default_name":"Alagoas"},493 {"region_id":"487","country_id":"BR","code":"AP","default_name":"Amapá"},494 {"region_id":"488","country_id":"BR","code":"AM","default_name":"Amazonas"},495 {"region_id":"489","country_id":"BR","code":"BA","default_name":"Bahia"},496 {"region_id":"490","country_id":"BR","code":"CE","default_name":"Ceará"},497 {"region_id":"491","country_id":"BR","code":"ES","default_name":"Espírito Santo"},498 {"region_id":"492","country_id":"BR","code":"GO","default_name":"Goiás"},499 {"region_id":"493","country_id":"BR","code":"MA","default_name":"Maranhão"},500 {"region_id":"494","country_id":"BR","code":"MT","default_name":"Mato Grosso"},501 {"region_id":"495","country_id":"BR","code":"MS","default_name":"Mato Grosso do Sul"},502 {"region_id":"496","country_id":"BR","code":"MG","default_name":"Minas Gerais"},503 {"region_id":"497","country_id":"BR","code":"PA","default_name":"Pará"},504 {"region_id":"498","country_id":"BR","code":"PB","default_name":"Paraíba"},505 {"region_id":"499","country_id":"BR","code":"PR","default_name":"Paraná"},506 {"region_id":"500","country_id":"BR","code":"PE","default_name":"Pernambuco"},507 {"region_id":"501","country_id":"BR","code":"PI","default_name":"Piauí"},508 {"region_id":"502","country_id":"BR","code":"RJ","default_name":"Rio de Janeiro"},509 {"region_id":"503","country_id":"BR","code":"RN","default_name":"Rio Grande do Norte"},510 {"region_id":"504","country_id":"BR","code":"RS","default_name":"Rio Grande do Sul"},511 {"region_id":"505","country_id":"BR","code":"RO","default_name":"Rondônia"},512 {"region_id":"506","country_id":"BR","code":"RR","default_name":"Roraima"},513 {"region_id":"507","country_id":"BR","code":"SC","default_name":"Santa Catarina"},514 {"region_id":"508","country_id":"BR","code":"SP","default_name":"São Paulo"},515 {"region_id":"509","country_id":"BR","code":"SE","default_name":"Sergipe"},516 {"region_id":"510","country_id":"BR","code":"TO","default_name":"Tocantins"},517 {"region_id":"511","country_id":"BR","code":"DF","default_name":"Distrito Federal"},518 {"region_id":"512","country_id":"HR","code":"HR-01","default_name":"Zagrebačka županija"},519 {"region_id":"513","country_id":"HR","code":"HR-02","default_name":"Krapinsko-zagorska županija"},520 {"region_id":"514","country_id":"HR","code":"HR-03","default_name":"Sisačko-moslavačka županija"},521 {"region_id":"515","country_id":"HR","code":"HR-04","default_name":"Karlovačka županija"},522 {"region_id":"516","country_id":"HR","code":"HR-05","default_name":"Varaždinska županija"},523 {"region_id":"517","country_id":"HR","code":"HR-06","default_name":"Koprivničko-križevačka županija"},524 {"region_id":"518","country_id":"HR","code":"HR-07","default_name":"Bjelovarsko-bilogorska županija"},525 {"region_id":"519","country_id":"HR","code":"HR-08","default_name":"Primorsko-goranska županija"},526 {"region_id":"520","country_id":"HR","code":"HR-09","default_name":"Ličko-senjska županija"},527 {"region_id":"521","country_id":"HR","code":"HR-10","default_name":"Virovitičko-podravska županija"},528 {"region_id":"522","country_id":"HR","code":"HR-11","default_name":"Požeško-slavonska županija"},529 {"region_id":"523","country_id":"HR","code":"HR-12","default_name":"Brodsko-posavska županija"},530 {"region_id":"524","country_id":"HR","code":"HR-13","default_name":"Zadarska županija"},531 {"region_id":"525","country_id":"HR","code":"HR-14","default_name":"Osječko-baranjska županija"},532 {"region_id":"526","country_id":"HR","code":"HR-15","default_name":"Šibensko-kninska županija"},533 {"region_id":"527","country_id":"HR","code":"HR-16","default_name":"Vukovarsko-srijemska županija"},534 {"region_id":"528","country_id":"HR","code":"HR-17","default_name":"Splitsko-dalmatinska županija"},535 {"region_id":"529","country_id":"HR","code":"HR-18","default_name":"Istarska županija"},536 {"region_id":"530","country_id":"HR","code":"HR-19","default_name":"Dubrovačko-neretvanska županija"},537 {"region_id":"531","country_id":"HR","code":"HR-20","default_name":"Međimurska županija"},538 {"region_id":"532","country_id":"HR","code":"HR-21","default_name":"Grad Zagreb"}539 ]540 countryList = [541 {542 code: "US",543 name: "United States"544 }/* ,545 {546 code: "CA",547 name: "Canada"548 },549 {550 code: "DE",551 name: "Germany"552 },553 {554 code: "AT",555 name: "Austria"556 },557 {558 code: "CH",559 name: "Switzerland"560 },561 {562 code: "ES",563 name: "Spain"564 },565 {566 code: "FR",567 name: "France"568 },569 {570 code: "RO",571 name: "Romania"572 },573 {574 code: "FI",575 name: "Finland"576 },577 {578 code: "EE",579 name: "Estonia"580 },581 {582 code: "LV",583 name: "Latvia",584 },585 {586 code: "BR",587 name: "Brazil"588 },589 {590 code: "HR",591 name: "Croatia"592 } */593 ]594 constructor(private _customer: CustomerService) { }595 createRegionObject(region: string /* default_name */): Region {596 for (let i = 0; i < this.regionCodes.length; i++) {597 if (this.regionCodes[i].default_name === region) {598 return {599 region: this.regionCodes[i].default_name,600 region_code: this.regionCodes[i].code,601 region_id: Number(this.regionCodes[i].region_id)602 }603 }604 }605 }606 getCountryId(region: string /* default_name */) {607 for (let i = 0; i < this.regionCodes.length; i++) {608 if (this.regionCodes[i].default_name === region) {609 return this.regionCodes[i].country_id;610 }611 }612 console.log('wtf!');613 }614 convertCustomerAddressToQuoteAddress(address : CustomerDataAddressSchema): QuoteDataAddressSchema {615 let email = this._customer.customer.email;616 let vat_id = this._customer.customer.taxvat;617 return {618 customer_id: address.customer_id,619 region: address.region.region,620 region_id: address.region.region_id,621 region_code: address.region.region_code,622 country_id: address.country_id,623 street: address.street,624 company: address.company,625 telephone: address.telephone,626 fax: address.fax,627 postcode: address.postcode,628 city: address.city,629 firstname: address.firstname,630 lastname: address.lastname,631 middlename: address.middlename,632 prefix: address.prefix,633 suffix: address.suffix,634 vat_id: vat_id,635 email: email,636 //extension_attributes: address.extension_attributes,637 //custom_attributes: address.custom_attributes638 } as QuoteDataAddressSchema;639 }640}641interface RegionCode {642 region_id: string;643 country_id: string;644 code: string;645 default_name: string;646}647interface Region {648 region: string;649 region_code: string;650 region_id: number;651}652interface Country {653 code: string;654 name: string;...

Full Screen

Full Screen

countries.ts

Source:countries.ts Github

copy

Full Screen

1/*2 * https://github.com/morethanwords/tweb3 * Copyright (C) 2019-2021 Eduard Kuzmenko4 * https://github.com/morethanwords/tweb/blob/master/LICENSE5 */6import type { HelpCountriesList } from "./layer";7const Countries: HelpCountriesList.helpCountriesList = {8 _: 'help.countriesList',9 countries: [{"iso2":"AD","default_name":"Andorra","country_codes":[{"country_code":"376","patterns":["XX XX XX"]}]},{"iso2":"AE","default_name":"United Arab Emirates","country_codes":[{"country_code":"971","patterns":["XX XXX XXXX"]}]},{"iso2":"AF","default_name":"Afghanistan","country_codes":[{"country_code":"93","patterns":["XXX XXX XXX"]}]},{"iso2":"AG","default_name":"Antigua & Barbuda","country_codes":[{"country_code":"1268","patterns":["XXX XXXX"]}]},{"iso2":"AI","default_name":"Anguilla","country_codes":[{"country_code":"1264","patterns":["XXX XXXX"]}]},{"iso2":"AL","default_name":"Albania","country_codes":[{"country_code":"355","patterns":["XX XXX XXXX"]}]},{"iso2":"AM","default_name":"Armenia","country_codes":[{"country_code":"374","patterns":["XX XXX XXX"]}]},{"iso2":"AO","default_name":"Angola","country_codes":[{"country_code":"244","patterns":["XXX XXX XXX"]}]},{"iso2":"AR","default_name":"Argentina","country_codes":[{"country_code":"54"}]},{"iso2":"AS","default_name":"American Samoa","country_codes":[{"country_code":"1684","patterns":["XXX XXXX"]}]},{"iso2":"AT","default_name":"Austria","country_codes":[{"country_code":"43","patterns":["X XXXXXXXX"]}]},{"iso2":"AU","default_name":"Australia","country_codes":[{"country_code":"61","patterns":["X XXXX XXXX"]}]},{"iso2":"AW","default_name":"Aruba","country_codes":[{"country_code":"297","patterns":["XXX XXXX"]}]},{"iso2":"AZ","default_name":"Azerbaijan","country_codes":[{"country_code":"994","patterns":["XX XXX XXXX"]}]},{"iso2":"BA","default_name":"Bosnia & Herzegovina","country_codes":[{"country_code":"387","patterns":["XX XXX XXX"]}]},{"iso2":"BB","default_name":"Barbados","country_codes":[{"country_code":"1246","patterns":["XXX XXXX"]}]},{"iso2":"BD","default_name":"Bangladesh","country_codes":[{"country_code":"880","patterns":["XX XXX XXX"]}]},{"iso2":"BE","default_name":"Belgium","country_codes":[{"country_code":"32","patterns":["XXX XX XX XX"]}]},{"iso2":"BF","default_name":"Burkina Faso","country_codes":[{"country_code":"226","patterns":["XX XX XX XX"]}]},{"iso2":"BG","default_name":"Bulgaria","country_codes":[{"country_code":"359"}]},{"iso2":"BH","default_name":"Bahrain","country_codes":[{"country_code":"973","patterns":["XXXX XXXX"]}]},{"iso2":"BI","default_name":"Burundi","country_codes":[{"country_code":"257","patterns":["XX XX XXXX"]}]},{"iso2":"BJ","default_name":"Benin","country_codes":[{"country_code":"229","patterns":["XX XXX XXX"]}]},{"iso2":"BM","default_name":"Bermuda","country_codes":[{"country_code":"1441","patterns":["XXX XXXX"]}]},{"iso2":"BN","default_name":"Brunei Darussalam","country_codes":[{"country_code":"673","patterns":["XXX XXXX"]}]},{"iso2":"BO","default_name":"Bolivia","country_codes":[{"country_code":"591","patterns":["X XXX XXXX"]}]},{"iso2":"BQ","default_name":"Bonaire, Sint Eustatius & Saba","country_codes":[{"country_code":"599"}]},{"iso2":"BR","default_name":"Brazil","country_codes":[{"country_code":"55","patterns":["XX XXXXX XXXX"]}]},{"iso2":"BS","default_name":"Bahamas","country_codes":[{"country_code":"1242","patterns":["XXX XXXX"]}]},{"iso2":"BT","default_name":"Bhutan","country_codes":[{"country_code":"975","patterns":["XX XXX XXX"]}]},{"iso2":"BW","default_name":"Botswana","country_codes":[{"country_code":"267","patterns":["XX XXX XXX"]}]},{"iso2":"BY","default_name":"Belarus","country_codes":[{"country_code":"375","patterns":["XX XXX XXXX"]}]},{"iso2":"BZ","default_name":"Belize","country_codes":[{"country_code":"501"}]},{"iso2":"CA","default_name":"Canada","country_codes":[{"country_code":"1","prefixes":["403","587","780","825","236","250","604","672","778","204","431","506","709","902","782","226","249","289","343","365","416","437","519","548","613","647","705","807","905","418","438","450","514","579","581","819","873","306","639","867"],"patterns":["XXX XXX XXXX"]}]},{"iso2":"CD","default_name":"Congo (Dem. Rep.)","country_codes":[{"country_code":"243","patterns":["XX XXX XXXX"]}]},{"iso2":"CF","default_name":"Central African Rep.","country_codes":[{"country_code":"236","patterns":["XX XX XX XX"]}]},{"iso2":"CG","default_name":"Congo (Rep.)","country_codes":[{"country_code":"242","patterns":["XX XXX XXXX"]}]},{"iso2":"CH","default_name":"Switzerland","country_codes":[{"country_code":"41","patterns":["XX XXX XXXX"]}]},{"iso2":"CI","default_name":"Côte d'Ivoire","country_codes":[{"country_code":"225","patterns":["XX XX XX XXXX"]}]},{"iso2":"CK","default_name":"Cook Islands","country_codes":[{"country_code":"682"}]},{"iso2":"CL","default_name":"Chile","country_codes":[{"country_code":"56","patterns":["X XXXX XXXX"]}]},{"iso2":"CM","default_name":"Cameroon","country_codes":[{"country_code":"237","patterns":["XXXX XXXX"]}]},{"iso2":"CN","default_name":"China","country_codes":[{"country_code":"86","patterns":["XXX XXXX XXXX"]}]},{"iso2":"CO","default_name":"Colombia","country_codes":[{"country_code":"57","patterns":["XXX XXX XXXX"]}]},{"iso2":"CR","default_name":"Costa Rica","country_codes":[{"country_code":"506","patterns":["XXXX XXXX"]}]},{"iso2":"CU","default_name":"Cuba","country_codes":[{"country_code":"53","patterns":["X XXX XXXX"]}]},{"iso2":"CV","default_name":"Cape Verde","country_codes":[{"country_code":"238","patterns":["XXX XXXX"]}]},{"iso2":"CW","default_name":"Curaçao","country_codes":[{"country_code":"599","prefixes":["9"]}]},{"iso2":"CY","default_name":"Cyprus","country_codes":[{"country_code":"357","patterns":["XXXX XXXX"]}]},{"iso2":"CZ","default_name":"Czech Republic","country_codes":[{"country_code":"420","patterns":["XXX XXX XXX"]}]},{"iso2":"DE","default_name":"Germany","country_codes":[{"country_code":"49","patterns":["XXXX XXXXXXX","16X XXXXXXX","17X XXXXXXX","3601 4198XX"]}]},{"iso2":"DJ","default_name":"Djibouti","country_codes":[{"country_code":"253","patterns":["XX XX XX XX"]}]},{"iso2":"DK","default_name":"Denmark","country_codes":[{"country_code":"45","patterns":["XXXX XXXX"]}]},{"iso2":"DM","default_name":"Dominica","country_codes":[{"country_code":"1767","patterns":["XXX XXXX"]}]},{"iso2":"DO","default_name":"Dominican Rep.","country_codes":[{"country_code":"1809","patterns":["XXX XXXX"]},{"country_code":"1829","patterns":["XXX XXXX"]},{"country_code":"1849","patterns":["XXX XXXX"]}]},{"iso2":"DZ","default_name":"Algeria","country_codes":[{"country_code":"213","patterns":["XXX XX XX XX"]}]},{"iso2":"EC","default_name":"Ecuador","country_codes":[{"country_code":"593","patterns":["XX XXX XXXX"]}]},{"iso2":"EE","default_name":"Estonia","country_codes":[{"country_code":"372","patterns":["XXXX XXXX"]}]},{"iso2":"EG","default_name":"Egypt","country_codes":[{"country_code":"20","patterns":["XX XXXX XXXX"]}]},{"iso2":"ER","default_name":"Eritrea","country_codes":[{"country_code":"291","patterns":["X XXX XXX"]}]},{"iso2":"ES","default_name":"Spain","country_codes":[{"country_code":"34","patterns":["XXX XXX XXX"]}]},{"iso2":"ET","default_name":"Ethiopia","country_codes":[{"country_code":"251","patterns":["XX XXX XXXX"]}]},{"iso2":"FI","default_name":"Finland","country_codes":[{"country_code":"358"}]},{"iso2":"FJ","default_name":"Fiji","country_codes":[{"country_code":"679","patterns":["XXX XXXX"]}]},{"iso2":"FK","default_name":"Falkland Islands","country_codes":[{"country_code":"500"}]},{"iso2":"FM","default_name":"Micronesia","country_codes":[{"country_code":"691"}]},{"iso2":"FO","default_name":"Faroe Islands","country_codes":[{"country_code":"298","patterns":["XXX XXX"]}]},{"iso2":"FR","default_name":"France","country_codes":[{"country_code":"33","patterns":["X XX XX XX XX"]}]},{"iso2":"GA","default_name":"Gabon","country_codes":[{"country_code":"241","patterns":["X XX XX XX"]}]},{"iso2":"GB","default_name":"United Kingdom","country_codes":[{"country_code":"44","patterns":["XXXX XXXXXX"]}]},{"iso2":"GD","default_name":"Grenada","country_codes":[{"country_code":"1473","patterns":["XXX XXXX"]}]},{"iso2":"GE","default_name":"Georgia","country_codes":[{"country_code":"995","patterns":["XXX XXX XXX"]}]},{"iso2":"GF","default_name":"French Guiana","country_codes":[{"country_code":"594"}]},{"iso2":"GH","default_name":"Ghana","country_codes":[{"country_code":"233","patterns":["XX XXX XXXX"]}]},{"iso2":"GI","default_name":"Gibraltar","country_codes":[{"country_code":"350","patterns":["XXXX XXXX"]}]},{"iso2":"GL","default_name":"Greenland","country_codes":[{"country_code":"299","patterns":["XXX XXX"]}]},{"iso2":"GM","default_name":"Gambia","country_codes":[{"country_code":"220","patterns":["XXX XXXX"]}]},{"iso2":"GN","default_name":"Guinea","country_codes":[{"country_code":"224","patterns":["XXX XXX XXX"]}]},{"iso2":"GP","default_name":"Guadeloupe","country_codes":[{"country_code":"590","patterns":["XXX XX XX XX"]}]},{"iso2":"GQ","default_name":"Equatorial Guinea","country_codes":[{"country_code":"240","patterns":["XXX XXX XXX"]}]},{"iso2":"GR","default_name":"Greece","country_codes":[{"country_code":"30","patterns":["XXX XXX XXXX"]}]},{"iso2":"GT","default_name":"Guatemala","country_codes":[{"country_code":"502","patterns":["X XXX XXXX"]}]},{"iso2":"GU","default_name":"Guam","country_codes":[{"country_code":"1671","patterns":["XXX XXXX"]}]},{"iso2":"GW","default_name":"Guinea-Bissau","country_codes":[{"country_code":"245","patterns":["XXX XXXX"]}]},{"iso2":"GY","default_name":"Guyana","country_codes":[{"country_code":"592"}]},{"iso2":"HK","default_name":"Hong Kong","country_codes":[{"country_code":"852","patterns":["X XXX XXXX"]}]},{"iso2":"HN","default_name":"Honduras","country_codes":[{"country_code":"504","patterns":["XXXX XXXX"]}]},{"iso2":"HR","default_name":"Croatia","country_codes":[{"country_code":"385","patterns":["XX XXX XXX"]}]},{"iso2":"HT","default_name":"Haiti","country_codes":[{"country_code":"509","patterns":["XXXX XXXX"]}]},{"iso2":"HU","default_name":"Hungary","country_codes":[{"country_code":"36","patterns":["XXX XXX XXX"]}]},{"iso2":"ID","default_name":"Indonesia","country_codes":[{"country_code":"62","patterns":["XXX XXXXXX"]}]},{"iso2":"IE","default_name":"Ireland","country_codes":[{"country_code":"353","patterns":["XX XXX XXXX"]}]},{"iso2":"IL","default_name":"Israel","country_codes":[{"country_code":"972","patterns":["XX XXX XXXX"]}]},{"iso2":"IN","default_name":"India","country_codes":[{"country_code":"91","patterns":["XXXXX XXXXX"]}]},{"iso2":"IO","default_name":"Diego Garcia","country_codes":[{"country_code":"246","patterns":["XXX XXXX"]}]},{"iso2":"IQ","default_name":"Iraq","country_codes":[{"country_code":"964","patterns":["XXX XXX XXXX"]}]},{"iso2":"IR","default_name":"Iran","country_codes":[{"country_code":"98","patterns":["XXX XXX XXXX"]}]},{"iso2":"IS","default_name":"Iceland","country_codes":[{"country_code":"354","patterns":["XXX XXXX"]}]},{"iso2":"IT","default_name":"Italy","country_codes":[{"country_code":"39","patterns":["XXX XXX XXX"]}]},{"iso2":"JM","default_name":"Jamaica","country_codes":[{"country_code":"1876","patterns":["XXX XXXX"]}]},{"iso2":"JO","default_name":"Jordan","country_codes":[{"country_code":"962","patterns":["X XXXX XXXX"]}]},{"iso2":"JP","default_name":"Japan","country_codes":[{"country_code":"81","patterns":["XX XXXX XXXX"]}]},{"iso2":"KE","default_name":"Kenya","country_codes":[{"country_code":"254","patterns":["XXX XXX XXX"]}]},{"iso2":"KG","default_name":"Kyrgyzstan","country_codes":[{"country_code":"996","patterns":["XXX XXXXXX"]}]},{"iso2":"KH","default_name":"Cambodia","country_codes":[{"country_code":"855","patterns":["XX XXX XXX"]}]},{"iso2":"KI","default_name":"Kiribati","country_codes":[{"country_code":"686","patterns":["XXXX XXXX"]}]},{"iso2":"KM","default_name":"Comoros","country_codes":[{"country_code":"269","patterns":["XXX XXXX"]}]},{"iso2":"KN","default_name":"Saint Kitts & Nevis","country_codes":[{"country_code":"1869","patterns":["XXX XXXX"]}]},{"iso2":"KP","default_name":"North Korea","country_codes":[{"country_code":"850"}]},{"iso2":"KR","default_name":"South Korea","country_codes":[{"country_code":"82","patterns":["XX XXXX XXX"]}]},{"iso2":"KW","default_name":"Kuwait","country_codes":[{"country_code":"965","patterns":["XXXX XXXX"]}]},{"iso2":"KY","default_name":"Cayman Islands","country_codes":[{"country_code":"1345","patterns":["XXX XXXX"]}]},{"iso2":"KZ","default_name":"Kazakhstan","country_codes":[{"country_code":"7","prefixes":["6","7"],"patterns":["XXX XXX XX XX"]}]},{"iso2":"LA","default_name":"Laos","country_codes":[{"country_code":"856","patterns":["XX XX XXX XXX"]}]},{"iso2":"LB","default_name":"Lebanon","country_codes":[{"country_code":"961","patterns":["XX XXX XXX"]}]},{"iso2":"LC","default_name":"Saint Lucia","country_codes":[{"country_code":"1758","patterns":["XXX XXXX"]}]},{"iso2":"LI","default_name":"Liechtenstein","country_codes":[{"country_code":"423","patterns":["XXX XXXX"]}]},{"iso2":"LK","default_name":"Sri Lanka","country_codes":[{"country_code":"94","patterns":["XX XXX XXXX"]}]},{"iso2":"LR","default_name":"Liberia","country_codes":[{"country_code":"231","patterns":["XX XXX XXXX"]}]},{"iso2":"LS","default_name":"Lesotho","country_codes":[{"country_code":"266","patterns":["XX XXX XXX"]}]},{"iso2":"LT","default_name":"Lithuania","country_codes":[{"country_code":"370","patterns":["XXX XXXXX"]}]},{"iso2":"LU","default_name":"Luxembourg","country_codes":[{"country_code":"352","patterns":["XXX XXX XXX"]}]},{"iso2":"LV","default_name":"Latvia","country_codes":[{"country_code":"371","patterns":["XXX XXXXX"]}]},{"iso2":"LY","default_name":"Libya","country_codes":[{"country_code":"218","patterns":["XX XXX XXXX"]}]},{"iso2":"MA","default_name":"Morocco","country_codes":[{"country_code":"212","patterns":["XX XXX XXXX"]}]},{"iso2":"MC","default_name":"Monaco","country_codes":[{"country_code":"377","patterns":["XXXX XXXX"]}]},{"iso2":"MD","default_name":"Moldova","country_codes":[{"country_code":"373","patterns":["XX XXX XXX"]}]},{"iso2":"ME","default_name":"Montenegro","country_codes":[{"country_code":"382"}]},{"iso2":"MG","default_name":"Madagascar","country_codes":[{"country_code":"261","patterns":["XX XX XXX XX"]}]},{"iso2":"MH","default_name":"Marshall Islands","country_codes":[{"country_code":"692"}]},{"iso2":"MK","default_name":"North Macedonia","country_codes":[{"country_code":"389","patterns":["XX XXX XXX"]}]},{"iso2":"ML","default_name":"Mali","country_codes":[{"country_code":"223","patterns":["XXXX XXXX"]}]},{"iso2":"MM","default_name":"Myanmar","country_codes":[{"country_code":"95"}]},{"iso2":"MN","default_name":"Mongolia","country_codes":[{"country_code":"976","patterns":["XX XX XXXX"]}]},{"iso2":"MO","default_name":"Macau","country_codes":[{"country_code":"853","patterns":["XXXX XXXX"]}]},{"iso2":"MP","default_name":"Northern Mariana Islands","country_codes":[{"country_code":"1670","patterns":["XXX XXXX"]}]},{"iso2":"MQ","default_name":"Martinique","country_codes":[{"country_code":"596"}]},{"iso2":"MR","default_name":"Mauritania","country_codes":[{"country_code":"222","patterns":["XXXX XXXX"]}]},{"iso2":"MS","default_name":"Montserrat","country_codes":[{"country_code":"1664","patterns":["XXX XXXX"]}]},{"iso2":"MT","default_name":"Malta","country_codes":[{"country_code":"356","patterns":["XX XX XX XX"]}]},{"iso2":"MU","default_name":"Mauritius","country_codes":[{"country_code":"230","patterns":["XXXX XXXX"]}]},{"iso2":"MV","default_name":"Maldives","country_codes":[{"country_code":"960","patterns":["XXX XXXX"]}]},{"iso2":"MW","default_name":"Malawi","country_codes":[{"country_code":"265","patterns":["XX XXX XXXX"]}]},{"iso2":"MX","default_name":"Mexico","country_codes":[{"country_code":"52"}]},{"iso2":"MY","default_name":"Malaysia","country_codes":[{"country_code":"60","patterns":["XX XXXX XXXX"]}]},{"iso2":"MZ","default_name":"Mozambique","country_codes":[{"country_code":"258","patterns":["XX XXX XXXX"]}]},{"iso2":"NA","default_name":"Namibia","country_codes":[{"country_code":"264","patterns":["XX XXX XXXX"]}]},{"iso2":"NC","default_name":"New Caledonia","country_codes":[{"country_code":"687"}]},{"iso2":"NE","default_name":"Niger","country_codes":[{"country_code":"227","patterns":["XX XX XX XX"]}]},{"iso2":"NF","default_name":"Norfolk Island","country_codes":[{"country_code":"672"}]},{"iso2":"NG","default_name":"Nigeria","country_codes":[{"country_code":"234","patterns":["XX XXXX XXXX"]}]},{"iso2":"NI","default_name":"Nicaragua","country_codes":[{"country_code":"505","patterns":["XXXX XXXX"]}]},{"iso2":"NL","default_name":"Netherlands","country_codes":[{"country_code":"31","patterns":["X XX XX XX XX","97 XXXX XXXXX"]}]},{"iso2":"NO","default_name":"Norway","country_codes":[{"country_code":"47","patterns":["XXXX XXXX"]}]},{"iso2":"NP","default_name":"Nepal","country_codes":[{"country_code":"977","patterns":["XX XXXX XXXX"]}]},{"iso2":"NR","default_name":"Nauru","country_codes":[{"country_code":"674"}]},{"iso2":"NU","default_name":"Niue","country_codes":[{"country_code":"683"}]},{"iso2":"NZ","default_name":"New Zealand","country_codes":[{"country_code":"64","patterns":["XXXX XXXX"]}]},{"iso2":"OM","default_name":"Oman","country_codes":[{"country_code":"968","patterns":["XXXX XXXX"]}]},{"iso2":"PA","default_name":"Panama","country_codes":[{"country_code":"507","patterns":["XXXX XXXX"]}]},{"iso2":"PE","default_name":"Peru","country_codes":[{"country_code":"51","patterns":["XXX XXX XXX"]}]},{"iso2":"PF","default_name":"French Polynesia","country_codes":[{"country_code":"689"}]},{"iso2":"PG","default_name":"Papua New Guinea","country_codes":[{"country_code":"675"}]},{"iso2":"PH","default_name":"Philippines","country_codes":[{"country_code":"63","patterns":["XXX XXX XXXX"]}]},{"iso2":"PK","default_name":"Pakistan","country_codes":[{"country_code":"92","patterns":["XXX XXX XXXX"]}]},{"iso2":"PL","default_name":"Poland","country_codes":[{"country_code":"48","patterns":["XXX XXX XXX"]}]},{"iso2":"PM","default_name":"Saint Pierre & Miquelon","country_codes":[{"country_code":"508"}]},{"iso2":"PR","default_name":"Puerto Rico","country_codes":[{"country_code":"1787","patterns":["XXX XXXX"]},{"country_code":"1939","patterns":["XXX XXXX"]}]},{"iso2":"PS","default_name":"Palestine","country_codes":[{"country_code":"970","patterns":["XXX XX XXXX"]}]},{"iso2":"PT","default_name":"Portugal","country_codes":[{"country_code":"351","patterns":["XXX XXX XXX"]}]},{"iso2":"PW","default_name":"Palau","country_codes":[{"country_code":"680"}]},{"iso2":"PY","default_name":"Paraguay","country_codes":[{"country_code":"595","patterns":["XXX XXX XXX"]}]},{"iso2":"QA","default_name":"Qatar","country_codes":[{"country_code":"974","patterns":["XX XXX XXX"]}]},{"iso2":"RE","default_name":"Réunion","country_codes":[{"country_code":"262","patterns":["XXX XXX XXX"]}]},{"iso2":"RO","default_name":"Romania","country_codes":[{"country_code":"40","patterns":["XXX XXX XXX"]}]},{"iso2":"RS","default_name":"Serbia","country_codes":[{"country_code":"381","patterns":["XX XXX XXXX"]}]},{"iso2":"RU","default_name":"Russian Federation","country_codes":[{"country_code":"7","patterns":["XXX XXX XXXX"]}]},{"iso2":"RW","default_name":"Rwanda","country_codes":[{"country_code":"250","patterns":["XXX XXX XXX"]}]},{"iso2":"SA","default_name":"Saudi Arabia","country_codes":[{"country_code":"966","patterns":["XX XXX XXXX"]}]},{"iso2":"SB","default_name":"Solomon Islands","country_codes":[{"country_code":"677"}]},{"iso2":"SC","default_name":"Seychelles","country_codes":[{"country_code":"248","patterns":["X XX XX XX"]}]},{"iso2":"SD","default_name":"Sudan","country_codes":[{"country_code":"249","patterns":["XX XXX XXXX"]}]},{"iso2":"SE","default_name":"Sweden","country_codes":[{"country_code":"46","patterns":["XX XXX XXXX"]}]},{"iso2":"SG","default_name":"Singapore","country_codes":[{"country_code":"65","patterns":["XXXX XXXX"]}]},{"iso2":"SH","default_name":"Saint Helena","country_codes":[{"country_code":"247"},{"country_code":"290","patterns":["XX XXX"]}]},{"iso2":"SI","default_name":"Slovenia","country_codes":[{"country_code":"386","patterns":["XX XXX XXX"]}]},{"iso2":"SK","default_name":"Slovakia","country_codes":[{"country_code":"421","patterns":["XXX XXX XXX"]}]},{"iso2":"SL","default_name":"Sierra Leone","country_codes":[{"country_code":"232","patterns":["XX XXX XXX"]}]},{"iso2":"SM","default_name":"San Marino","country_codes":[{"country_code":"378","patterns":["XXX XXX XXXX"]}]},{"iso2":"SN","default_name":"Senegal","country_codes":[{"country_code":"221","patterns":["XX XXX XXXX"]}]},{"iso2":"SO","default_name":"Somalia","country_codes":[{"country_code":"252","patterns":["XX XXX XXX"]}]},{"iso2":"SR","default_name":"Suriname","country_codes":[{"country_code":"597","patterns":["XXX XXXX"]}]},{"iso2":"SS","default_name":"South Sudan","country_codes":[{"country_code":"211","patterns":["XX XXX XXXX"]}]},{"iso2":"ST","default_name":"São Tomé & Príncipe","country_codes":[{"country_code":"239","patterns":["XX XXXXX"]}]},{"iso2":"SV","default_name":"El Salvador","country_codes":[{"country_code":"503","patterns":["XXXX XXXX"]}]},{"iso2":"SX","default_name":"Sint Maarten","country_codes":[{"country_code":"1721","patterns":["XXX XXXX"]}]},{"iso2":"SY","default_name":"Syria","country_codes":[{"country_code":"963","patterns":["XXX XXX XXX"]}]},{"iso2":"SZ","default_name":"Eswatini","country_codes":[{"country_code":"268","patterns":["XXXX XXXX"]}]},{"iso2":"TC","default_name":"Turks & Caicos Islands","country_codes":[{"country_code":"1649","patterns":["XXX XXXX"]}]},{"iso2":"TD","default_name":"Chad","country_codes":[{"country_code":"235","patterns":["XX XX XX XX"]}]},{"iso2":"TG","default_name":"Togo","country_codes":[{"country_code":"228","patterns":["XX XXX XXX"]}]},{"iso2":"TH","default_name":"Thailand","country_codes":[{"country_code":"66","patterns":["X XXXX XXXX"]}]},{"iso2":"TJ","default_name":"Tajikistan","country_codes":[{"country_code":"992","patterns":["XX XXX XXXX"]}]},{"iso2":"TK","default_name":"Tokelau","country_codes":[{"country_code":"690"}]},{"iso2":"TL","default_name":"Timor-Leste","country_codes":[{"country_code":"670"}]},{"iso2":"TM","default_name":"Turkmenistan","country_codes":[{"country_code":"993","patterns":["XX XXXXXX"]}]},{"iso2":"TN","default_name":"Tunisia","country_codes":[{"country_code":"216","patterns":["XX XXX XXX"]}]},{"iso2":"TO","default_name":"Tonga","country_codes":[{"country_code":"676"}]},{"iso2":"TR","default_name":"Turkey","country_codes":[{"country_code":"90","patterns":["XXX XXX XXXX"]}]},{"iso2":"TT","default_name":"Trinidad & Tobago","country_codes":[{"country_code":"1868","patterns":["XXX XXXX"]}]},{"iso2":"TV","default_name":"Tuvalu","country_codes":[{"country_code":"688"}]},{"iso2":"TW","default_name":"Taiwan","country_codes":[{"country_code":"886","patterns":["XXX XXX XXX"]}]},{"iso2":"TZ","default_name":"Tanzania","country_codes":[{"country_code":"255","patterns":["XX XXX XXXX"]}]},{"iso2":"UA","default_name":"Ukraine","country_codes":[{"country_code":"380","patterns":["XX XXX XX XX"]}]},{"iso2":"UG","default_name":"Uganda","country_codes":[{"country_code":"256","patterns":["XX XXX XXXX"]}]},{"iso2":"US","default_name":"USA","country_codes":[{"country_code":"1","patterns":["XXX XXX XXXX"]}]},{"iso2":"UY","default_name":"Uruguay","country_codes":[{"country_code":"598","patterns":["X XXX XXXX"]}]},{"iso2":"UZ","default_name":"Uzbekistan","country_codes":[{"country_code":"998","patterns":["XX XXX XX XX"]}]},{"iso2":"VC","default_name":"Saint Vincent & the Grenadines","country_codes":[{"country_code":"1784","patterns":["XXX XXXX"]}]},{"iso2":"VE","default_name":"Venezuela","country_codes":[{"country_code":"58","patterns":["XXX XXX XXXX"]}]},{"iso2":"VG","default_name":"British Virgin Islands","country_codes":[{"country_code":"1284","patterns":["XXX XXXX"]}]},{"iso2":"VI","default_name":"US Virgin Islands","country_codes":[{"country_code":"1340","patterns":["XXX XXXX"]}]},{"iso2":"VN","default_name":"Vietnam","country_codes":[{"country_code":"84"}]},{"iso2":"VU","default_name":"Vanuatu","country_codes":[{"country_code":"678"}]},{"iso2":"WF","default_name":"Wallis & Futuna","country_codes":[{"country_code":"681"}]},{"iso2":"WS","default_name":"Samoa","country_codes":[{"country_code":"685"}]},{"iso2":"XK","default_name":"Kosovo","country_codes":[{"country_code":"383","patterns":["XXXX XXXX"]}]},{"iso2":"YE","default_name":"Yemen","country_codes":[{"country_code":"967","patterns":["XXX XXX XXX"]}]},{"iso2":"ZA","default_name":"South Africa","country_codes":[{"country_code":"27","patterns":["XX XXX XXXX"]}]},{"iso2":"ZM","default_name":"Zambia","country_codes":[{"country_code":"260","patterns":["XX XXX XXXX"]}]},{"iso2":"ZW","default_name":"Zimbabwe","country_codes":[{"country_code":"263","patterns":["XX XXX XXXX"]}]}] as any,10 hash: 011};12/* const PhoneCodesMain: {[phoneCode: string]: Country} = {13 '1': Countries.find(c => c.name === 'United States'),14 '44': Countries.find(c => c.name === 'United Kingdom'),15 '61': Countries.find(c => c.name === 'Australia'),16 '64': Countries.find(c => c.name === 'New Zealand'),17 '246': Countries.find(c => c.name === 'Diego Garcia'),18 '255': Countries.find(c => c.name === 'Tanzania'),19 '262': Countries.find(c => c.name === 'Reunion'),20 '500': Countries.find(c => c.name === 'Falkland Islands'),21 '590': Countries.find(c => c.name === 'Guadeloupe'),22 '672': Countries.find(c => c.name === 'Norfolk Island'),23 '1 268': Countries.find(c => c.name === 'Antigua & Barbuda'),24}; */25/* 26const toInt = (str) => {27 return parseInt(str.replace(/ /g, ''));28};29var arr = window.Countries.sort((a, b) => toInt(a.phoneCode) - toInt(b.phoneCode));30arr.forEach((el, idx) => {31 if(idx === (arr.length - 1)) {32 return;33 }34 if(toInt(arr[idx + 1].phoneCode) === toInt(el.phoneCode)) {35 console.log('duplicate', el, arr[idx + 1]);36 }37});38*/...

Full Screen

Full Screen

Using AI Code Generation

copy

Full Screen

1var storybook = require('storybook-root');2storybook.DEFAULT_NAME;3var storybook = require('storybook-root');4storybook.DEFAULT_NAME;5var storybook = require('storybook-root');6storybook.DEFAULT_NAME;7var storybook = require('storybook-root');8storybook.DEFAULT_NAME;9var storybook = require('storybook-root');10storybook.DEFAULT_NAME;11var storybook = require('storybook-root');12storybook.DEFAULT_NAME;13var storybook = require('storybook-root');14storybook.DEFAULT_NAME;15var storybook = require('storybook-root');16storybook.DEFAULT_NAME;17var storybook = require('storybook-root');18storybook.DEFAULT_NAME;19var storybook = require('storybook-root');20storybook.DEFAULT_NAME;21var storybook = require('storybook-root');22storybook.DEFAULT_NAME;23var storybook = require('storybook-root');24storybook.DEFAULT_NAME;25var storybook = require('storybook-root');26storybook.DEFAULT_NAME;27var storybook = require('storybook-root');28storybook.DEFAULT_NAME;29var storybook = require('storybook-root');30storybook.DEFAULT_NAME;

Full Screen

Using AI Code Generation

copy

Full Screen

1const DEFAULT_NAME = require('storybook-root').DEFAULT_NAME;2console.log(DEFAULT_NAME);3const storybookRoot = require('storybook-root');4console.log(storybookRoot.DEFAULT_NAME);5const { DEFAULT_NAME } = require('storybook-root');6console.log(DEFAULT_NAME);

Full Screen

Using AI Code Generation

copy

Full Screen

1import { DEFAULT_NAME } from 'storybook-root';2console.log(DEFAULT_NAME);3module.exports = {4 {5 options: {6 },7 },8};9import { addParameters } from '@storybook/react';10import { withRoot } from 'storybook-root';11addParameters({12 root: {13 },14});15import { addons } from '@storybook/addons';16import { withRoot } from 'storybook-root';17addons.setConfig({18 root: {19 },20});21 window.STORYBOOK_ROOT = {22 };23 window.STORYBOOK_ROOT = {24 };25 window.STORYBOOK_ROOT = {26 };27import { addParameters } from '@storybook/react';28import { withRoot } from 'storybook-root';29addParameters({30 root: {31 },32});33import { addons } from '@storybook/addons';34import { withRoot } from 'storybook-root';35addons.setConfig({36 root: {37 },38});39 window.STORYBOOK_ROOT = {40 };41 window.STORYBOOK_ROOT = {42 };43 window.STORYBOOK_ROOT = {44 };45import { addParameters } from '@storybook/react';46import { withRoot } from 'storybook-root';47addParameters({48 root: {49 },50});51import { addons } from '@storybook/add

Full Screen

Using AI Code Generation

copy

Full Screen

1import { DEFAULT_NAME } from 'storybook-root';2console.log(DEFAULT_NAME);3import { DEFAULT_NAME } from 'storybook-root';4console.log(DEFAULT_NAME);5import { DEFAULT_NAME } from 'storybook-root';6console.log(DEFAULT_NAME);7import { DEFAULT_NAME } from 'storybook-root';8console.log(DEFAULT_NAME);9import { DEFAULT_NAME } from 'storybook-root';10console.log(DEFAULT_NAME);11import { DEFAULT_NAME } from 'storybook-root';12console.log(DEFAULT_NAME);13import { DEFAULT_NAME } from 'storybook-root';14console.log(DEFAULT_NAME);15import { DEFAULT_NAME } from 'storybook-root';16console.log(DEFAULT_NAME);17import { DEFAULT_NAME } from 'storybook-root';18console.log(DEFAULT_NAME);19import { DEFAULT_NAME } from 'storybook-root';20console.log(DEFAULT_NAME);21import { DEFAULT_NAME } from 'storybook-root';22console.log(DEFAULT_NAME);23import { DEFAULT_NAME } from 'storybook-root';24console.log(DEFAULT_NAME);25import { DEFAULT_NAME } from 'storybook-root';26console.log(DEFAULT_NAME);

Full Screen

Using AI Code Generation

copy

Full Screen

1import { DEFAULT_NAME } from 'storybook-root'2console.log(DEFAULT_NAME)3import { DEFAULT_NAME } from 'storybook-root'4console.log(DEFAULT_NAME)5import { DEFAULT_NAME } from 'storybook-root'6console.log(DEFAULT_NAME)7import { DEFAULT_NAME } from 'storybook-root'8console.log(DEFAULT_NAME)9import { DEFAULT_NAME } from 'storybook-root'10console.log(DEFAULT_NAME)11import { DEFAULT_NAME } from 'storybook-root'12console.log(DEFAULT_NAME)13import { DEFAULT_NAME } from 'storybook-root'14console.log(DEFAULT_NAME)15import { DEFAULT_NAME } from 'storybook-root'16console.log(DEFAULT_NAME)17import { DEFAULT_NAME } from 'storybook-root'18console.log(DEFAULT_NAME)19import { DEFAULT_NAME } from 'storybook-root'20console.log(DEFAULT_NAME)21import { DEFAULT_NAME } from 'storybook-root'22console.log(DEFAULT_NAME)23import { DEFAULT_NAME } from 'storybook-root'24console.log(DEFAULT_NAME)25import { DEFAULT_NAME } from 'storybook-root'26console.log(DEFAULT_NAME)27import { DEFAULT_NAME } from 'storybook-root'28console.log(DEFAULT_NAME)29import { DEFAULT_NAME } from 'storybook-root'30console.log(DEFAULT_NAME)31import { DEFAULT_NAME } from 'storybook-root'

Full Screen

Using AI Code Generation

copy

Full Screen

1var storybook = require('storybook-root');2var name = storybook.DEFAULT_NAME;3var storybook = require('storybook-root');4var name = storybook.DEFAULT_NAME;5var storybook = require('storybook-root');6var name = storybook.DEFAULT_NAME;7var storybook = require('storybook-root');8var name = storybook.DEFAULT_NAME;9var storybook = require('storybook-root');10var name = storybook.DEFAULT_NAME;11var storybook = require('storybook-root');12var name = storybook.DEFAULT_NAME;13var storybook = require('storybook-root');14var name = storybook.DEFAULT_NAME;15var storybook = require('storybook-root');16var name = storybook.DEFAULT_NAME;

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run storybook-root automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful