packages/theme-addresses/theme-addresses.js
function buildProvince (countryNodeElement, provinceNodeElement, selectedValue) {
  var selectedOption = getOption(countryNodeElement, selectedValue);
  var provinces = JSON.parse(selectedOption.getAttribute('data-provinces'));

  provinceNodeElement.options.length = 0;

  if (provinces.length) {
    buildOptions(provinceNodeElement, provinces)
  }

  return provinces;
}
function buildProvince (countryNodeElement, provinceNodeElement, selectedValue) {
  var selectedOption = getOption(countryNodeElement, selectedValue);
  var provinces = JSON.parse(selectedOption.getAttribute('data-provinces'));

  provinceNodeElement.options.length = 0;

  if (provinces.length) {
    buildOptions(provinceNodeElement, provinces)
  }

  return provinces;
}
function buildProvince ( countryNodeElement , provinceNodeElement , selectedValue ) { var selectedOption = getOption ( countryNodeElement , selectedValue ) ; var provinces = JSON . parse ( selectedOption . getAttribute ( 'data-provinces' ) ) ; provinceNodeElement . options . length = 0 ; if ( provinces . length ) { buildOptions ( provinceNodeElement , provinces ) } return provinces ; }
Builds the province selector
Builds the province selector