{"ScriptPreparationCode":"function _preparePhoneLink(phone) {\r\n const phoneLink = document.createElement(\u0027a\u0027);\r\n const visiblePhone = phone.dataset.visiblePhone;\r\n\r\n phoneLink.classList.add(\u0027kontora-visible-phone\u0027);\r\n phoneLink.textContent = visiblePhone.replaceAll(\u0027-\u0027, \u0027 - \u0027);\r\n phoneLink.href = \u0060tel:${visiblePhone}\u0060;\r\n\r\n return phoneLink;\r\n}\r\n\r\nfunction _prepareHTMLPhoneLink(phone, phoneLink) {\r\n const visiblePhone = phone.dataset.visiblePhone;\r\n return \u0060\u003Ca tel=${visiblePhone} class=\u0027kontora-visible-phone\u0027\u003E${visiblePhone.replaceAll(\u0027-\u0027, \u0027 - \u0027)}\u003C/a\u003E\u0060\r\n}","TestCases":[{"Name":"create","Code":"function _renderPhones() {\r\n document.querySelectorAll(\u0027.phone\u0027).forEach((phone) =\u003E {\r\n phone.remove();\r\n document.querySelector(\u0027.js-company-phone\u0027).append(_preparePhoneLink(phone));\r\n });\r\n}\r\n\r\n_renderPhones();","IsDeferred":false},{"Name":"HTML","Code":"function _renderPhonesHTML() {\r\n document.querySelectorAll(\u0027.phone\u0027).forEach((phone) =\u003E {\r\n phone.remove();\r\n document.querySelector(\u0027.js-company-phone\u0027).append(_prepareHTMLPhoneLink(phone));\r\n });\r\n}\r\n\r\n_renderPhonesHTML();","IsDeferred":false}]}