#BLOCK("WITH_FORM_ERROR", #FormError)
#IF(#FormError)

{InputError}

#IF(#OBJECT_EXISTS) {DoubleObject} #ELSE {PleaseCorrectErrors} #ENDIF
#ENDIF #IF(#CountryAdded)

{Notification}

{RegionCountryAddInfo}

{EditRegions}
#ELSIF(#DEFINED(#INPUT.ChangeAction) AND #INPUT.ChangeAction EQ "DeleteShopCountries" AND #Shop.FeatureMaxValue.Regions > 0)

{Notification}

{RegionCountryDeleteInfo}

{TestRegions}
#ELSE

{Notification}

{CountryInfo} #IF(#Shop.FeatureMaxValue.Regions > 0){CountryInfoExtRegions}#ENDIF

#ENDIF #IF(NOT #COUNT(#ShopCountries))

{Notification}

{NoCountries}

#ENDIF #LOOP(#ShopCountries) #ENDLOOP
{Country} {TaxArea} {IsDefault} {Position}
#Native #IF(NOT (#English EQ #Native))(#English)#ENDIF #LOCAL("TaxArea", #FUNCTION("TaxAreaByCountryID", #TaxMatrix.Object, #CountryID)) #TaxArea.NameOrAlias #ENDLOCAL #BLOCK("WITH_FORM_ERROR", #FormError) #ENDBLOCK
#IF(#COUNT(#Shop.UnassignedCountries)) #ELSE #ENDIF #IF(#FormError) #ENDIF
#IF(#COUNT(#ShopCountries)) #ENDIF
#ENDBLOCK
#IF(#FUNCTION("MENU_COUNT", "RelatedTopic") > 0)

{RelatedTopics}

#ENDIF