Sha256: a12c2086904ccbcff05a719029c7733a6ba354615305a72001dbbae9f31c55a9

Contents?: true

Size: 1.16 KB

Versions: 1

Compression:

Stored size: 1.16 KB

Contents

(function () {
    'use strict';

    /**
     * @namespace WORKAREA.config
     * @property {object} googleAddressAutocomplete
     */
     WORKAREA.config.googleAddressAutocomplete = {
        apiKey: '<%= Workarea.config.google_address_autocomplete_api_key %>',
        selector: '[name$="address[street]"]',
        mappings: {
            'street_number': {
                selector: '[name$="address[street]"]',
                shortName: false
            },
            'route': {
                selector: '[name$="address[street]"]',
                shortName: false
            },
            'locality': {
                selector: '[name$="address[city]"]',
                shortName: false
            },
            'administrative_area_level_1': {
                selector: '[name$="address_region_select"], [name$="address[region]"]',
                shortName: true
            },
            'country': {
                selector: '[name$="address[country]"]',
                shortName: true
            },
            'postal_code': {
                selector: '[name$="address[postal_code]"]',
                shortName: false
            }
        }
     };
})();

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
workarea-google_address_autocomplete-4.1.1 app/assets/javascripts/workarea/storefront/google_address_autocomplete/config.js.erb