@shopgate/engage 7.20.0-beta.7 → 7.20.0-beta.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,9 @@
1
- var _excluded=["className","onChange","onFocus","onBlur","value","maxDecimals","unit","minValue","maxValue"];function _extends(){_extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};return _extends.apply(this,arguments);}function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance");}function _iterableToArrayLimit(arr,i){var _arr=[];var _n=true;var _d=false;var _e=undefined;try{for(var _i=arr[Symbol.iterator](),_s;!(_n=(_s=_i.next()).done);_n=true){_arr.push(_s.value);if(i&&_arr.length===i)break;}}catch(err){_d=true;_e=err;}finally{try{if(!_n&&_i["return"]!=null)_i["return"]();}finally{if(_d)throw _e;}}return _arr;}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr;}function _objectWithoutProperties(source,excluded){if(source==null)return{};var target=_objectWithoutPropertiesLoose(source,excluded);var key,i;if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i<sourceSymbolKeys.length;i++){key=sourceSymbolKeys[i];if(excluded.indexOf(key)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(source,key))continue;target[key]=source[key];}}return target;}function _objectWithoutPropertiesLoose(source,excluded){if(source==null)return{};var target={};var sourceKeys=Object.keys(source);var key,i;for(i=0;i<sourceKeys.length;i++){key=sourceKeys[i];if(excluded.indexOf(key)>=0)continue;target[key]=source[key];}return target;}import React,{useRef,useState,useCallback,useLayoutEffect,useEffect,forwardRef}from'react';import PropTypes from'prop-types';import{isIOs}from'@shopgate/pwa-core';import{parseFloatString,formatFloat}from"./helper";/**
1
+ var _excluded=["className","onChange","onFocus","onBlur","value","maxDecimals","unit","minValue","maxValue","onKeyDown"];function _extends(){_extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};return _extends.apply(this,arguments);}function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance");}function _iterableToArrayLimit(arr,i){var _arr=[];var _n=true;var _d=false;var _e=undefined;try{for(var _i=arr[Symbol.iterator](),_s;!(_n=(_s=_i.next()).done);_n=true){_arr.push(_s.value);if(i&&_arr.length===i)break;}}catch(err){_d=true;_e=err;}finally{try{if(!_n&&_i["return"]!=null)_i["return"]();}finally{if(_d)throw _e;}}return _arr;}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr;}function _objectWithoutProperties(source,excluded){if(source==null)return{};var target=_objectWithoutPropertiesLoose(source,excluded);var key,i;if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i<sourceSymbolKeys.length;i++){key=sourceSymbolKeys[i];if(excluded.indexOf(key)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(source,key))continue;target[key]=source[key];}}return target;}function _objectWithoutPropertiesLoose(source,excluded){if(source==null)return{};var target={};var sourceKeys=Object.keys(source);var key,i;for(i=0;i<sourceKeys.length;i++){key=sourceKeys[i];if(excluded.indexOf(key)>=0)continue;target[key]=source[key];}return target;}import React,{useRef,useState,useCallback,useLayoutEffect,useEffect,forwardRef}from'react';import PropTypes from'prop-types';import noop from'lodash/noop';import{isIOs}from'@shopgate/pwa-core';import{parseFloatString,formatFloat}from"./helper";/**
2
2
  * A Quantity Input with unit support.
3
3
  * @returns {JSX}
4
- */var QuantityInput=forwardRef(function(_ref,outerInputRef){var className=_ref.className,onChange=_ref.onChange,customOnFocus=_ref.onFocus,customOnBlur=_ref.onBlur,value=_ref.value,maxDecimals=_ref.maxDecimals,unit=_ref.unit,minValue=_ref.minValue,maxValue=_ref.maxValue,inputProps=_objectWithoutProperties(_ref,_excluded);var inputRef=outerInputRef||useRef();var _useState=useState(formatFloat(value,maxDecimals)),_useState2=_slicedToArray(_useState,2),inputValue=_useState2[0],setInputValue=_useState2[1];var _useState3=useState(false),_useState4=_slicedToArray(_useState3,2),isFocused=_useState4[0],setIsFocused=_useState4[1];var onFocus=useCallback(function(event){customOnFocus(event);setIsFocused(true);},[customOnFocus]);var onBlur=useCallback(function(event){var newValue=parseFloatString(inputValue,maxDecimals);setIsFocused(false);// If invalid switch to old value.
5
- if(Number.isNaN(parseFloat(inputValue))){setInputValue(formatFloat(value,maxDecimals));return;}if(minValue&&newValue<minValue){newValue=minValue;}if(maxValue&&newValue>maxValue){newValue=maxValue;}setInputValue("".concat(newValue));if(newValue!==value){onChange(newValue);}customOnBlur(event,newValue);},[customOnBlur,inputValue,maxDecimals,maxValue,minValue,onChange,value]);var handleChange=useCallback(function(event){var newValue=event.target.value;setInputValue(newValue);},[]);// Select the current input value after focus.
4
+ */var QuantityInput=forwardRef(function(_ref,outerInputRef){var className=_ref.className,onChange=_ref.onChange,customOnFocus=_ref.onFocus,customOnBlur=_ref.onBlur,value=_ref.value,maxDecimals=_ref.maxDecimals,unit=_ref.unit,minValue=_ref.minValue,maxValue=_ref.maxValue,onKeyDown=_ref.onKeyDown,inputProps=_objectWithoutProperties(_ref,_excluded);var inputRef=outerInputRef||useRef();var _useState=useState(formatFloat(value,maxDecimals)),_useState2=_slicedToArray(_useState,2),inputValue=_useState2[0],setInputValue=_useState2[1];var _useState3=useState(false),_useState4=_slicedToArray(_useState3,2),isFocused=_useState4[0],setIsFocused=_useState4[1];var onFocus=useCallback(function(event){customOnFocus(event);setIsFocused(true);},[customOnFocus]);var onBlur=useCallback(function(event){var newValue=parseFloatString(inputValue,maxDecimals);setIsFocused(false);// If invalid switch to old value.
5
+ if(Number.isNaN(parseFloat(inputValue))){setInputValue(formatFloat(value,maxDecimals));return;}if(minValue&&newValue<minValue){newValue=minValue;}if(maxValue&&newValue>maxValue){newValue=maxValue;}setInputValue("".concat(newValue));if(newValue!==value){onChange(newValue);}customOnBlur(event,newValue);},[customOnBlur,inputValue,maxDecimals,maxValue,minValue,onChange,value]);var handleChange=useCallback(function(event){var newValue=event.target.value;setInputValue(newValue);},[]);var handleKeyDown=useCallback(function(event){if(event.key==='Enter'){// Prevents false positive validation error when enter key is pressed inside input
6
+ event.preventDefault();if(inputRef.current){inputRef.current.blur();}}if(typeof onKeyDown==='function'){onKeyDown(event);}},[inputRef,onKeyDown]);// Select the current input value after focus.
6
7
  useLayoutEffect(function(){if(isFocused&&isIOs){inputRef.current.select();}},[inputRef,isFocused]);// Sync actual float value with displayed content.
7
8
  useEffect(function(){setInputValue(formatFloat(value,maxDecimals));},[maxDecimals,value]);// Stop the context menu from opening.
8
- useLayoutEffect(function(){inputRef.current.addEventListener('contextmenu',function(event){event.preventDefault();event.stopPropagation();return false;});},[inputRef]);var displayedValue=!isFocused&&unit?"".concat(inputValue," ").concat(unit):inputValue;return React.createElement("input",_extends({ref:inputRef},inputProps,{inputMode:maxDecimals>0?'decimal':'numeric'/* Pattern signals some browsers to use specialized keyboard (if inputmode not supported */,pattern:maxDecimals>0?'[0-9.,]*':'[0–9]*',onFocus:onFocus,onBlur:onBlur,className:className,value:displayedValue,onChange:handleChange,onClick:function onClick(event){event.preventDefault();event.stopPropagation();if(inputRef.current){inputRef.current.focus();}}}));});QuantityInput.defaultProps={className:'',maxDecimals:2,unit:null,minValue:null,maxValue:null,onFocus:function onFocus(){},onChange:function onChange(){},onBlur:function onBlur(){}};export default QuantityInput;
9
+ useLayoutEffect(function(){inputRef.current.addEventListener('contextmenu',function(event){event.preventDefault();event.stopPropagation();return false;});},[inputRef]);var displayedValue=!isFocused&&unit?"".concat(inputValue," ").concat(unit):inputValue;return React.createElement("input",_extends({ref:inputRef},inputProps,{inputMode:maxDecimals>0?'decimal':'numeric'/* Pattern signals some browsers to use specialized keyboard (if inputmode not supported */,pattern:maxDecimals>0?'[0-9.,]*':'[0–9]*',onFocus:onFocus,onBlur:onBlur,className:className,value:displayedValue,onChange:handleChange,onKeyDown:handleKeyDown,onClick:function onClick(event){event.preventDefault();event.stopPropagation();if(inputRef.current){inputRef.current.focus();}}}));});QuantityInput.defaultProps={className:'',maxDecimals:2,unit:null,minValue:null,maxValue:null,onFocus:noop,onChange:noop,onBlur:noop,onKeyDown:noop};export default QuantityInput;
@@ -5,10 +5,10 @@ function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimi
5
5
  * @returns {Object}
6
6
  */var mapDispatchToProps=function mapDispatchToProps(dispatch){return{showModal:function showModal(){return dispatch(showModalAction.apply(void 0,arguments));},historyPush:function historyPush(){return dispatch(historyPushAction.apply(void 0,arguments));},updateFavoriteItem:function updateFavoriteItem(productId,listId,quantity,notes){dispatch(updateFavorite(productId,listId,quantity,notes));},openCommentDialog:function openCommentDialog(productId,listId){return dispatch(openFavoritesCommentDialog(productId,listId));}};};var styles={root:css({display:'flex',position:'relative','&:not(:last-child)':{marginBottom:16}}).toString(),imageContainer:css(_defineProperty(_defineProperty(_defineProperty({flex:0.4,marginRight:18},responsiveMediaQuery('>=xs',{appAlways:true}),{maxWidth:120,minWidth:80}),responsiveMediaQuery('>=md',{webOnly:true}),{maxWidth:120,minWidth:80}),responsiveMediaQuery('>=md',{webOnly:true}),{width:120,flex:'none'})).toString(),infoContainer:css({flex:1,display:'flex',flexDirection:'column',flexWrap:'wrap',gap:8}).toString(),infoContainerRow:css({flexDirection:'row',display:'flex',justifyContent:'space-between'}).toString(),quantityContainer:css({flexDirection:'row',display:'flex',alignItems:'center',flexWrap:'wrap',gap:16}).toString(),priceContainer:css({minWidth:100}).toString(),priceContainerInner:css({display:'inline-block',textAlign:'right'}),price:css({justifyContent:'flex-end'}).toString(),priceInfo:css({wordBreak:'break-word',fontSize:'0.875rem',lineHeight:'0.875rem',color:'var(--color-text-low-emphasis)',padding:"".concat(variables.gap.xsmall,"px 0")}).toString(),titleWrapper:css({display:'flex',flexDirection:'column',gap:8}).toString(),titleContainer:css({marginRight:10,flex:1}).toString(),title:css({fontSize:17,fontWeight:600}).toString(),removeContainer:css({display:'flex',flexShrink:0,alignItems:'flex-start'})};/**
7
7
  * Favorite Item component
8
- * @return {JSX}
9
- */var FavoriteItem=function FavoriteItem(_ref){var _product$price,_product$price2,_product$price3;var listId=_ref.listId,product=_ref.product,notes=_ref.notes,quantity=_ref.quantity,remove=_ref.remove,addToCart=_ref.addToCart,isBaseProduct=_ref.isBaseProduct,isOrderable=_ref.isOrderable,isRopeProductOrderable=_ref.isRopeProductOrderable,hasVariants=_ref.hasVariants,showModal=_ref.showModal,historyPush=_ref.historyPush,updateFavoriteItem=_ref.updateFavoriteItem,openCommentDialog=_ref.openCommentDialog;var _ref2=getThemeSettings('AppImages')||{},gridResolutions=_ref2.ListImage;var _useState=useState(!isOrderable&&!hasVariants),_useState2=_slicedToArray(_useState,2),isDisabled=_useState2[0],setIsDisabled=_useState2[1];var currency=((_product$price=product.price)===null||_product$price===void 0?void 0:_product$price.currency)||'EUR';var defaultPrice=((_product$price2=product.price)===null||_product$price2===void 0?void 0:_product$price2.unitPrice)||0;var specialPrice=(_product$price3=product.price)===null||_product$price3===void 0?void 0:_product$price3.unitPriceStriked;var hasStrikePrice=typeof specialPrice==='number'&&specialPrice>=defaultPrice;var characteristics=(product===null||product===void 0?void 0:product.characteristics)||[];var productLink="".concat(ITEM_PATH,"/").concat(bin2hex(product.id));var notesButtonRef=useRef();var _useState3=useState(quantity),_useState4=_slicedToArray(_useState3,2),internalQuantity=_useState4[0],setInternalQuantity=_useState4[1];useEffect(function(){setInternalQuantity(quantity);},[quantity]);useLayoutEffect(function(){setIsDisabled(!isOrderable&&!hasVariants);},[hasVariants,isOrderable]);var handleOpenComment=useCallback(function(e){e.preventDefault();e.stopPropagation();openCommentDialog(product.id,listId);},[listId,openCommentDialog,product.id]);var handleAddToCart=useCallback(function(e){e.preventDefault();e.stopPropagation();if(isBaseProduct&&hasVariants){// Called for a parent product. User needs to confirm the navigation to the PDP
8
+ * @return {JSX.Element}
9
+ */var FavoriteItem=function FavoriteItem(_ref){var _product$price,_product$price2,_product$price3;var listId=_ref.listId,product=_ref.product,notes=_ref.notes,quantity=_ref.quantity,remove=_ref.remove,addToCart=_ref.addToCart,isBaseProduct=_ref.isBaseProduct,isOrderable=_ref.isOrderable,isRopeProductOrderable=_ref.isRopeProductOrderable,hasVariants=_ref.hasVariants,showModal=_ref.showModal,historyPush=_ref.historyPush,updateFavoriteItem=_ref.updateFavoriteItem,openCommentDialog=_ref.openCommentDialog;var _ref2=getThemeSettings('AppImages')||{},gridResolutions=_ref2.ListImage;var _useState=useState(!isOrderable&&!hasVariants),_useState2=_slicedToArray(_useState,2),isDisabled=_useState2[0],setIsDisabled=_useState2[1];var currency=((_product$price=product.price)===null||_product$price===void 0?void 0:_product$price.currency)||'EUR';var defaultPrice=((_product$price2=product.price)===null||_product$price2===void 0?void 0:_product$price2.unitPrice)||0;var specialPrice=(_product$price3=product.price)===null||_product$price3===void 0?void 0:_product$price3.unitPriceStriked;var hasStrikePrice=typeof specialPrice==='number'&&specialPrice>defaultPrice;var characteristics=(product===null||product===void 0?void 0:product.characteristics)||[];var productLink="".concat(ITEM_PATH,"/").concat(bin2hex(product.id));var notesButtonRef=useRef();var _useState3=useState(quantity),_useState4=_slicedToArray(_useState3,2),internalQuantity=_useState4[0],setInternalQuantity=_useState4[1];useEffect(function(){setInternalQuantity(quantity);},[quantity]);useLayoutEffect(function(){setIsDisabled(!isOrderable&&!hasVariants);},[hasVariants,isOrderable]);var handleOpenComment=useCallback(function(e){e.preventDefault();e.stopPropagation();openCommentDialog(product.id,listId);},[listId,openCommentDialog,product.id]);var handleAddToCart=useCallback(function(e){e.preventDefault();e.stopPropagation();if(isBaseProduct&&hasVariants){// Called for a parent product. User needs to confirm the navigation to the PDP
10
10
  showModal({title:null,type:MODAL_VARIANT_SELECT,message:'favorites.modal.message',confirm:'favorites.modal.confirm',dismiss:'common.cancel',params:{productId:product.id}});return false;}if(hasNewServices()&&!isRopeProductOrderable){// Product is not orderable for ROPE. So users need to do some corrections. Just redirect.
11
11
  historyPush({pathname:productLink});return false;}broadcastLiveMessage('product.adding_item',{params:{count:1}});return addToCart(e);},[addToCart,hasVariants,historyPush,isBaseProduct,isRopeProductOrderable,product.id,productLink,showModal]);var commonPortalProps=useMemo(function(){var availability=product.availability,id=product.id,name=product.name;return{availability:availability,characteristics:characteristics,id:id,name:name,price:defaultPrice,listId:listId};},[characteristics,defaultPrice,listId,product]);var ctaPortalProps=useMemo(function(){return{isLoading:false,noShadow:false,listId:listId,isBaseProduct:isBaseProduct,isDisabled:isDisabled,productId:product.id,handleRemoveFromCart:remove,handleAddToCart:handleAddToCart};},[handleAddToCart,isBaseProduct,isDisabled,listId,product.id,remove]);var handleChangeQuantity=useCallback(function(newQuantity){// Do nothing when quantity didn't change
12
12
  if(newQuantity===quantity)return;updateFavoriteItem(product.id,listId,newQuantity,notes);},[listId,notes,product.id,quantity,updateFavoriteItem]);var handleDeleteComment=useCallback(function(event){event.preventDefault();event.stopPropagation();updateFavoriteItem(product.id,listId,quantity,'');setTimeout(function(){if(notesButtonRef===null||notesButtonRef===void 0?void 0:notesButtonRef.current){// Focus the add button after item deletion to improve a11y
13
- notesButtonRef.current.focus();}broadcastLiveMessage('favorites.comments.removed');},300);},[listId,product.id,quantity,updateFavoriteItem]);return React.createElement(ProductListEntryProvider,{productId:product.id},React.createElement(SurroundPortals,{portalName:FAVORITES_LIST_ITEM,portalProps:product},React.createElement("div",{className:styles.root},React.createElement(Link,{className:styles.imageContainer,component:"div",href:productLink,"aria-hidden":true},React.createElement(ProductImage,{src:product.featuredImageBaseUrl,resolutions:gridResolutions})),React.createElement("div",{className:styles.infoContainer},React.createElement("div",{className:classNames(styles.infoContainerRow)},React.createElement("div",{className:styles.titleWrapper},React.createElement(SurroundPortals,{portalName:FAVORITES_PRODUCT_NAME,portalProps:commonPortalProps},React.createElement(TextLink,{href:productLink,tag:"span",className:styles.titleContainer},React.createElement("span",{className:styles.title// eslint-disable-next-line react/no-danger
13
+ notesButtonRef.current.focus();}broadcastLiveMessage('favorites.comments.removed');},300);},[listId,product.id,quantity,updateFavoriteItem]);return React.createElement(ProductListEntryProvider,{productId:product.id},React.createElement(SurroundPortals,{portalName:FAVORITES_LIST_ITEM,portalProps:product},React.createElement("div",{className:classNames(styles.root,'engage__favorites__item')},React.createElement(Link,{className:classNames(styles.imageContainer,'engage__favorites__item__image-container'),component:"div",href:productLink,"aria-hidden":true},React.createElement(ProductImage,{className:classNames('engage__favorites__item__image'),src:product.featuredImageBaseUrl,resolutions:gridResolutions})),React.createElement("div",{className:classNames(styles.infoContainer,'engage__favorites__item__info-container')},React.createElement("div",{className:classNames(styles.infoContainerRow)},React.createElement("div",{className:styles.titleWrapper},React.createElement(SurroundPortals,{portalName:FAVORITES_PRODUCT_NAME,portalProps:commonPortalProps},React.createElement(TextLink,{href:productLink,tag:"span",className:classNames(styles.titleContainer,'engage__favorites__item__title-container')},React.createElement("span",{className:styles.title// eslint-disable-next-line react/no-danger
14
14
  ,dangerouslySetInnerHTML:{__html:"".concat(product.name)}})))),React.createElement("div",{className:styles.removeContainer},React.createElement(Remove,{onClick:remove}))),React.createElement(ItemCharacteristics,{characteristics:characteristics}),!hasNewServices()?React.createElement(SurroundPortals,{portalName:FAVORITES_AVAILABILITY_TEXT,portalProps:commonPortalProps},React.createElement(AvailableText,{text:commonPortalProps.availability.text,state:commonPortalProps.availability.state,showWhenAvailable:true,className:styles.availability})):React.createElement(StockInfoLists,{product:product}),React.createElement("div",{className:styles.infoContainerRow},React.createElement("div",{className:styles.quantityContainer},React.createElement(SurroundPortals,{portalName:FAVORITES_QUANTITY,portalProps:commonPortalProps},React.createElement(ItemQuantity,{quantity:internalQuantity,onChange:handleChangeQuantity})),React.createElement(SurroundPortals,{portalName:FAVORITES_PRODUCT_PRICE,portalProps:commonPortalProps},React.createElement("div",{className:styles.priceContainer},React.createElement("div",{className:styles.priceContainerInner},hasStrikePrice?React.createElement(PriceStriked,{value:specialPrice,currency:currency}):null,React.createElement(Price,{currency:currency,discounted:hasStrikePrice,unitPrice:defaultPrice,className:styles.price})),React.createElement(PriceInfo,{product:product,currency:currency,className:styles.priceInfo})))),React.createElement(SurroundPortals,{portalName:FAVORITES_ADD_TO_CART,portalProps:ctaPortalProps},React.createElement(AddToCart,{onClick:handleAddToCart,isLoading:false,isDisabled:isDisabled,"aria-label":i18n.text('product.add_to_cart')}))),React.createElement(SurroundPortals,{portalName:FAVORITES_NOTES,portalProps:commonPortalProps},React.createElement(ItemNotes,{notes:notes,onClickDeleteComment:handleDeleteComment,onClickOpenComment:handleOpenComment,notesButtonRef:notesButtonRef}))))));};FavoriteItem.defaultProps={isBaseProduct:true,isOrderable:true,isRopeProductOrderable:true,hasVariants:false,notes:undefined,quantity:1};export default connect(makeMapStateToProps,mapDispatchToProps)(FavoriteItem);
@@ -0,0 +1,255 @@
1
+ {
2
+ "AF": "Afghánistán",
3
+ "AX": "Ålandy",
4
+ "AL": "Albánie",
5
+ "DZ": "Alžírsko",
6
+ "AS": "Americká Samoa",
7
+ "VI": "Americké Panenské ostrovy",
8
+ "AD": "Andorra",
9
+ "AO": "Angola",
10
+ "AI": "Anguilla",
11
+ "AQ": "Antarktida",
12
+ "AG": "Antigua a Barbuda",
13
+ "AR": "Argentina",
14
+ "AM": "Arménie",
15
+ "AW": "Aruba",
16
+ "AC": "Ascension",
17
+ "AU": "Austrálie",
18
+ "AZ": "Ázerbájdžán",
19
+ "BS": "Bahamy",
20
+ "BH": "Bahrajn",
21
+ "BD": "Bangladéš",
22
+ "BB": "Barbados",
23
+ "BE": "Belgie",
24
+ "BZ": "Belize",
25
+ "BY": "Bělorusko",
26
+ "BJ": "Benin",
27
+ "BM": "Bermudy",
28
+ "BT": "Bhútán",
29
+ "BO": "Bolívie",
30
+ "BA": "Bosna a Hercegovina",
31
+ "BW": "Botswana",
32
+ "BR": "Brazílie",
33
+ "IO": "Britské indickooceánské území",
34
+ "VG": "Britské Panenské ostrovy",
35
+ "BN": "Brunej",
36
+ "BG": "Bulharsko",
37
+ "BF": "Burkina Faso",
38
+ "BI": "Burundi",
39
+ "TD": "Čad",
40
+ "ME": "Černá Hora",
41
+ "CZ": "Česko",
42
+ "EA": "Ceuta a Melilla",
43
+ "CL": "Chile",
44
+ "HR": "Chorvatsko",
45
+ "CN": "Čína",
46
+ "CK": "Cookovy ostrovy",
47
+ "CW": "Curaçao",
48
+ "DK": "Dánsko",
49
+ "DG": "Diego Garcia",
50
+ "DM": "Dominika",
51
+ "DO": "Dominikánská republika",
52
+ "DJ": "Džibutsko",
53
+ "EG": "Egypt",
54
+ "EC": "Ekvádor",
55
+ "ER": "Eritrea",
56
+ "EE": "Estonsko",
57
+ "SZ": "Eswatini",
58
+ "ET": "Etiopie",
59
+ "FO": "Faerské ostrovy",
60
+ "FK": "Falklandy",
61
+ "FJ": "Fidži",
62
+ "PH": "Filipíny",
63
+ "FI": "Finsko",
64
+ "FR": "Francie",
65
+ "GF": "Francouzská Guyana",
66
+ "TF": "Francouzská jižní území",
67
+ "PF": "Francouzská Polynésie",
68
+ "GA": "Gabon",
69
+ "GM": "Gambie",
70
+ "GH": "Ghana",
71
+ "GI": "Gibraltar",
72
+ "GD": "Grenada",
73
+ "GL": "Grónsko",
74
+ "GE": "Gruzie",
75
+ "GP": "Guadeloupe",
76
+ "GU": "Guam",
77
+ "GT": "Guatemala",
78
+ "GG": "Guernsey",
79
+ "GN": "Guinea",
80
+ "GW": "Guinea-Bissau",
81
+ "GY": "Guyana",
82
+ "HT": "Haiti",
83
+ "HN": "Honduras",
84
+ "HK": "Hongkong",
85
+ "IN": "Indie",
86
+ "ID": "Indonésie",
87
+ "IQ": "Irák",
88
+ "IR": "Írán",
89
+ "IE": "Irsko",
90
+ "IS": "Island",
91
+ "IT": "Itálie",
92
+ "IL": "Izrael",
93
+ "JM": "Jamajka",
94
+ "JP": "Japonsko",
95
+ "YE": "Jemen",
96
+ "JE": "Jersey",
97
+ "ZA": "Jihoafrická republika",
98
+ "GS": "Jižní Georgie a Jižní Sandwichovy ostrovy",
99
+ "KR": "Jižní Korea",
100
+ "SS": "Jižní Súdán",
101
+ "JO": "Jordánsko",
102
+ "KY": "Kajmanské ostrovy",
103
+ "KH": "Kambodža",
104
+ "CM": "Kamerun",
105
+ "CA": "Kanada",
106
+ "IC": "Kanárské ostrovy",
107
+ "CV": "Kapverdy",
108
+ "BQ": "Karibské Nizozemí",
109
+ "QA": "Katar",
110
+ "KZ": "Kazachstán",
111
+ "KE": "Keňa",
112
+ "KI": "Kiribati",
113
+ "CC": "Kokosové ostrovy",
114
+ "CO": "Kolumbie",
115
+ "KM": "Komory",
116
+ "CG": "Kongo - Brazzaville",
117
+ "CD": "Kongo - Kinshasa",
118
+ "XK": "Kosovo",
119
+ "CR": "Kostarika",
120
+ "CU": "Kuba",
121
+ "KW": "Kuvajt",
122
+ "CY": "Kypr",
123
+ "KG": "Kyrgyzstán",
124
+ "LA": "Laos",
125
+ "LS": "Lesotho",
126
+ "LB": "Libanon",
127
+ "LR": "Libérie",
128
+ "LY": "Libye",
129
+ "LI": "Lichtenštejnsko",
130
+ "LT": "Litva",
131
+ "LV": "Lotyšsko",
132
+ "LU": "Lucembursko",
133
+ "MO": "Macao",
134
+ "MG": "Madagaskar",
135
+ "HU": "Maďarsko",
136
+ "MY": "Malajsie",
137
+ "MW": "Malawi",
138
+ "MV": "Maledivy",
139
+ "ML": "Mali",
140
+ "MT": "Malta",
141
+ "MA": "Maroko",
142
+ "MH": "Marshallovy ostrovy",
143
+ "MQ": "Martinik",
144
+ "MU": "Mauricius",
145
+ "MR": "Mauritánie",
146
+ "YT": "Mayotte",
147
+ "UM": "Menší odlehlé ostrovy USA",
148
+ "MX": "Mexiko",
149
+ "FM": "Mikronésie",
150
+ "MD": "Moldavsko",
151
+ "MC": "Monako",
152
+ "MN": "Mongolsko",
153
+ "MS": "Montserrat",
154
+ "MZ": "Mosambik",
155
+ "MM": "Myanmar (Barma)",
156
+ "NA": "Namibie",
157
+ "NR": "Nauru",
158
+ "DE": "Německo",
159
+ "NP": "Nepál",
160
+ "NE": "Niger",
161
+ "NG": "Nigérie",
162
+ "NI": "Nikaragua",
163
+ "NU": "Niue",
164
+ "NL": "Nizozemsko",
165
+ "NF": "Norfolkovy ostrovy",
166
+ "NO": "Norsko",
167
+ "NC": "Nová Kaledonie",
168
+ "NZ": "Nový Zéland",
169
+ "OM": "Omán",
170
+ "IM": "Ostrov Man",
171
+ "PK": "Pákistán",
172
+ "PW": "Palau",
173
+ "PS": "Palestinská území",
174
+ "PA": "Panama",
175
+ "PG": "Papua-Nová Guinea",
176
+ "PY": "Paraguay",
177
+ "PE": "Peru",
178
+ "PN": "Pitcairnovy ostrovy",
179
+ "CI": "Pobřeží slonoviny",
180
+ "PL": "Polsko",
181
+ "PR": "Portoriko",
182
+ "PT": "Portugalsko",
183
+ "AT": "Rakousko",
184
+ "GR": "Řecko",
185
+ "RE": "Réunion",
186
+ "GQ": "Rovníková Guinea",
187
+ "RO": "Rumunsko",
188
+ "RU": "Rusko",
189
+ "RW": "Rwanda",
190
+ "SB": "Šalamounovy ostrovy",
191
+ "SV": "Salvador",
192
+ "WS": "Samoa",
193
+ "SM": "San Marino",
194
+ "SA": "Saúdská Arábie",
195
+ "SN": "Senegal",
196
+ "KP": "Severní Korea",
197
+ "MK": "Severní Makedonie",
198
+ "MP": "Severní Mariany",
199
+ "SC": "Seychely",
200
+ "SL": "Sierra Leone",
201
+ "SG": "Singapur",
202
+ "SK": "Slovensko",
203
+ "SI": "Slovinsko",
204
+ "SO": "Somálsko",
205
+ "ES": "Španělsko",
206
+ "SJ": "Špicberky a Jan Mayen",
207
+ "AE": "Spojené arabské emiráty",
208
+ "GB": "Spojené království",
209
+ "US": "Spojené státy",
210
+ "RS": "Srbsko",
211
+ "LK": "Srí Lanka",
212
+ "CF": "Středoafrická republika",
213
+ "SD": "Súdán",
214
+ "SR": "Surinam",
215
+ "SH": "Svatá Helena",
216
+ "LC": "Svatá Lucie",
217
+ "BL": "Svatý Bartoloměj",
218
+ "KN": "Svatý Kryštof a Nevis",
219
+ "SX": "Svatý Martin",
220
+ "MF": "Svatý Martin",
221
+ "PM": "Svatý Pierre a Miquelon",
222
+ "ST": "Svatý Tomáš a Princův ostrov",
223
+ "VC": "Svatý Vincenc a Grenadiny",
224
+ "SE": "Švédsko",
225
+ "CH": "Švýcarsko",
226
+ "SY": "Sýrie",
227
+ "TJ": "Tádžikistán",
228
+ "TZ": "Tanzanie",
229
+ "TW": "Tchaj-wan",
230
+ "TH": "Thajsko",
231
+ "TG": "Togo",
232
+ "TK": "Tokelau",
233
+ "TO": "Tonga",
234
+ "TT": "Trinidad a Tobago",
235
+ "TA": "Tristan da Cunha",
236
+ "TN": "Tunisko",
237
+ "TR": "Turecko",
238
+ "TM": "Turkmenistán",
239
+ "TC": "Turks a Caicos",
240
+ "TV": "Tuvalu",
241
+ "UG": "Uganda",
242
+ "UA": "Ukrajina",
243
+ "UY": "Uruguay",
244
+ "UZ": "Uzbekistán",
245
+ "CX": "Vánoční ostrov",
246
+ "VU": "Vanuatu",
247
+ "VA": "Vatikán",
248
+ "VE": "Venezuela",
249
+ "VN": "Vietnam",
250
+ "TL": "Východní Timor",
251
+ "WF": "Wallis a Futuna",
252
+ "ZM": "Zambie",
253
+ "EH": "Západní Sahara",
254
+ "ZW": "Zimbabwe"
255
+ }
@@ -1,24 +1,24 @@
1
1
  {
2
2
  "AF": "Afghanistan",
3
- "EG": "\u00c4gypten",
4
- "AX": "\u00c5landinseln",
3
+ "EG": "Ägypten",
4
+ "AX": "Ålandinseln",
5
5
  "AL": "Albanien",
6
6
  "DZ": "Algerien",
7
7
  "AS": "Amerikanisch-Samoa",
8
8
  "VI": "Amerikanische Jungferninseln",
9
- "UM": "Amerikanische \u00dcberseeinseln",
9
+ "UM": "Amerikanische Überseeinseln",
10
10
  "AD": "Andorra",
11
11
  "AO": "Angola",
12
12
  "AI": "Anguilla",
13
13
  "AQ": "Antarktis",
14
14
  "AG": "Antigua und Barbuda",
15
- "GQ": "\u00c4quatorialguinea",
15
+ "GQ": "Äquatorialguinea",
16
16
  "AR": "Argentinien",
17
17
  "AM": "Armenien",
18
18
  "AW": "Aruba",
19
19
  "AC": "Ascension",
20
20
  "AZ": "Aserbaidschan",
21
- "ET": "\u00c4thiopien",
21
+ "ET": "Äthiopien",
22
22
  "AU": "Australien",
23
23
  "BS": "Bahamas",
24
24
  "BH": "Bahrain",
@@ -47,9 +47,9 @@
47
47
  "CN": "China",
48
48
  "CK": "Cookinseln",
49
49
  "CR": "Costa Rica",
50
- "CI": "C\u00f4te d\u2019Ivoire",
51
- "CW": "Cura\u00e7ao",
52
- "DK": "D\u00e4nemark",
50
+ "CI": "Côte d’Ivoire",
51
+ "CW": "Curaçao",
52
+ "DK": "Dänemark",
53
53
  "DE": "Deutschland",
54
54
  "DG": "Diego Garcia",
55
55
  "DM": "Dominica",
@@ -60,13 +60,13 @@
60
60
  "ER": "Eritrea",
61
61
  "EE": "Estland",
62
62
  "FK": "Falklandinseln",
63
- "FO": "F\u00e4r\u00f6er",
63
+ "FO": "Färöer",
64
64
  "FJ": "Fidschi",
65
65
  "FI": "Finnland",
66
66
  "FR": "Frankreich",
67
- "GF": "Franz\u00f6sisch-Guayana",
68
- "PF": "Franz\u00f6sisch-Polynesien",
69
- "TF": "Franz\u00f6sische S\u00fcd- und Antarktisgebiete",
67
+ "GF": "Französisch-Guayana",
68
+ "PF": "Französisch-Polynesien",
69
+ "TF": "Französische Süd- und Antarktisgebiete",
70
70
  "GA": "Gabun",
71
71
  "GM": "Gambia",
72
72
  "GE": "Georgien",
@@ -74,7 +74,7 @@
74
74
  "GI": "Gibraltar",
75
75
  "GD": "Grenada",
76
76
  "GR": "Griechenland",
77
- "GL": "Gr\u00f6nland",
77
+ "GL": "Grönland",
78
78
  "GP": "Guadeloupe",
79
79
  "GU": "Guam",
80
80
  "GT": "Guatemala",
@@ -157,14 +157,14 @@
157
157
  "NG": "Nigeria",
158
158
  "NU": "Niue",
159
159
  "KP": "Nordkorea",
160
- "MP": "N\u00f6rdliche Marianen",
160
+ "MP": "Nördliche Marianen",
161
161
  "MK": "Nordmazedonien",
162
162
  "NF": "Norfolkinsel",
163
163
  "NO": "Norwegen",
164
164
  "OM": "Oman",
165
- "AT": "\u00d6sterreich",
165
+ "AT": "Österreich",
166
166
  "PK": "Pakistan",
167
- "PS": "Pal\u00e4stinensische Autonomiegebiete",
167
+ "PS": "Palästinensische Autonomiegebiete",
168
168
  "PW": "Palau",
169
169
  "PA": "Panama",
170
170
  "PG": "Papua-Neuguinea",
@@ -174,19 +174,17 @@
174
174
  "PN": "Pitcairninseln",
175
175
  "PL": "Polen",
176
176
  "PT": "Portugal",
177
- "XA": "Pseudo-Accents",
178
- "XB": "Pseudo-Bidi",
179
177
  "PR": "Puerto Rico",
180
178
  "MD": "Republik Moldau",
181
- "RE": "R\u00e9union",
179
+ "RE": "Réunion",
182
180
  "RW": "Ruanda",
183
- "RO": "Rum\u00e4nien",
181
+ "RO": "Rumänien",
184
182
  "RU": "Russland",
185
183
  "SB": "Salomonen",
186
184
  "ZM": "Sambia",
187
185
  "WS": "Samoa",
188
186
  "SM": "San Marino",
189
- "ST": "S\u00e3o Tom\u00e9 und Pr\u00edncipe",
187
+ "ST": "São Tomé und Príncipe",
190
188
  "SA": "Saudi-Arabien",
191
189
  "SE": "Schweden",
192
190
  "CH": "Schweiz",
@@ -205,18 +203,18 @@
205
203
  "ES": "Spanien",
206
204
  "SJ": "Spitzbergen und Jan Mayen",
207
205
  "LK": "Sri Lanka",
208
- "BL": "St. Barth\u00e9lemy",
206
+ "BL": "St. Barthélemy",
209
207
  "SH": "St. Helena",
210
208
  "KN": "St. Kitts und Nevis",
211
209
  "LC": "St. Lucia",
212
210
  "MF": "St. Martin",
213
211
  "PM": "St. Pierre und Miquelon",
214
212
  "VC": "St. Vincent und die Grenadinen",
215
- "ZA": "S\u00fcdafrika",
213
+ "ZA": "Südafrika",
216
214
  "SD": "Sudan",
217
- "GS": "S\u00fcdgeorgien und die S\u00fcdlichen Sandwichinseln",
218
- "KR": "S\u00fcdkorea",
219
- "SS": "S\u00fcdsudan",
215
+ "GS": "Südgeorgien und die Südlichen Sandwichinseln",
216
+ "KR": "Südkorea",
217
+ "SS": "Südsudan",
220
218
  "SR": "Suriname",
221
219
  "SZ": "Swasiland",
222
220
  "SY": "Syrien",
@@ -233,7 +231,7 @@
233
231
  "TD": "Tschad",
234
232
  "CZ": "Tschechien",
235
233
  "TN": "Tunesien",
236
- "TR": "T\u00fcrkei",
234
+ "TR": "Türkei",
237
235
  "TM": "Turkmenistan",
238
236
  "TC": "Turks- und Caicosinseln",
239
237
  "TV": "Tuvalu",
@@ -247,7 +245,7 @@
247
245
  "VE": "Venezuela",
248
246
  "AE": "Vereinigte Arabische Emirate",
249
247
  "US": "Vereinigte Staaten",
250
- "GB": "Vereinigtes K\u00f6nigreich",
248
+ "GB": "Vereinigtes Königreich",
251
249
  "VN": "Vietnam",
252
250
  "WF": "Wallis und Futuna",
253
251
  "CX": "Weihnachtsinsel",