Это первая доступная в Git версия файла.
1function t_contactMethod__init(t,e){var o=t_contactMethod__getRec(t);if(o){var n=o.querySelector('[data-input-lid="'+e+'"][data-field-type="contact_method"]');if(n){var a=n.querySelectorAll(".t-contact-method__type");if(a.length){var c=a[0];if(c){var r=n.querySelector(".t-contact-method__value-container"),_=n.querySelectorAll('.t-contact-method__type input[type="radio"]'),i=Array.from(_).map((function(t){return t.value})),d,u;if(i.some((function(t){return["phone","telegram","whatsapp","viber"].includes(t)})))t_contactMethod__loadPhoneMask().then((function(){var t=n.querySelectorAll('[data-phonemask-lid="'+e+'"]');window.t_form_phonemask__mulitple__load(t)})),r.classList.add("t-contact-method__loading"),_.forEach((function(t){return t_contactMethod__disable(t)})),"yes"===n.getAttribute("data-init-mask")?l():n.addEventListener("phoneMaskReady",(function(){l()}));else l()}}}}function l(){s(c.getAttribute("data-method-type")),r.classList.remove("t-contact-method__loading"),_.forEach((function(t){t_contactMethod__enable(t),t.addEventListener("change",(function(){s(t.value)}))})),n.dispatchEvent(new Event("inputReady")),n.setAttribute("data-input-ready","true"),t_contactMethod__applyTranslation(n),n.addEventListener("reset",(function(){f()}))}function s(t,e){var o,n=(e||{}).silent,a=void 0!==n&&n;i.forEach((function(e){e===t?h({contactMethod:e}):p({contactMethod:e,silent:a})}))}function h(t){var e=t.contactMethod,o=t_contactMethod__getValueGroup(n,e),a=t_contactMethod__getDefaultInputTypeForContactMethod(e);t_contactMethod__show(o),m({group:o,inputType:a}),t_contactMethod__isHybridValueGroup(o)&&M(o)}function p(t){var e=t.contactMethod,o=t.silent,a=t_contactMethod__getValueGroup(n,e),c=t_contactMethod__getPhoneInputElements(a),r=c.valueHolder,_=c.isoHolder,i=c.maskHolder,d=t_contactMethod__getInputElement(a,"text");t_contactMethod__isHidden(a)||(t_contactMethod__resetInputValue(a,"text",{silent:o}),t_contactMethod__resetInputValue(a,"phone",{silent:o}),t_contactMethod__hi …Длинные строки сокращены. Полная версия доступна по ссылке «Полный текст».