{"version":3,"sources":["account.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"account.js","sourcesContent":["(function($){\n    $(document).ready(function(){\n        __init();\n    });\n    let __init = function () {\n        __updateCustomerAddress();\n    }\n    let __updateCustomerAddress = function () {\n        $('.account__address').on('click', '.update-customer-address', function (e) {\n            e.preventDefault();\n            let target = $(this).attr('href');\n            let button = $(this);\n            let buttonText = $(this).data('label');\n            $.ajax({\n                url: target,\n                method: 'PUT',\n                success: function (response, textStatus, xhr) {\n                    if (response.status == true) {\n                        $('.account__address__list').remove();\n                        $('.new-address-button').before(response.html);\n                        __updateCustomerAddress();\n                    }\n\n                }\n            })\n        });\n    }\n})(jQuery);"]}