{"version":3,"names":[],"mappings":"","sources":["init.js"],"sourcesContent":["'use strict';\n\nvar $ = window.$;\n\n$(document).ready(function () {\n\n $('#requestForm').on('submit', function (e) {\n\n e.preventDefault();\n\n $('[data-remodal-id=\"modal-success\"]').remodal().open();\n\n\n });\n\n window.VMasker(document.querySelectorAll('input[name=phone]')).maskPattern('+9 (999) 999-9999');\n\n $('input[name=phone]').on('click', function () {\n if ($(this).val() === '') {\n $(this).val('+7');\n }\n });\n\n $('input[name=phone]').on('keyup', function () {\n if ($(this).val() === '') {\n $(this).val('+7');\n }\n });\n\n\n\n $('input[name=restoreMethod]').on('click', function () {\n var method = $(this).val();\n var checkedInput = $('input[name=' + method + ']').parent('.form__item');\n\n checkedInput.show();\n checkedInput.siblings('.js_checkedMethod').hide();\n });\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n});"],"file":"init.js"}