1var a=Object.defineProperty;var h=(n,t,e)=>t in n?a(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e;var o=(n,t,e)=>(h(n,typeof t!="symbol"?t+"":t,e),e);const l="[data-js-contacts]";const u="ÐдÑÐµÑ ÑкопиÑован";class T{constructor(t){o(this,"rootElement");o(this,"elementText");o(this,"elementButton");o(this,"copyResetTimer");o(this,"selectors",{root:l,text:"[data-js-contacts-address]",button:"[data-js-contacts-button]"});this.rootElement=t,this.elementText=this.rootElement.querySelector(this.selectors.text),this.elementButton=this.rootElement.querySelector(this.selectors.button),this.init()}init(){this.bindEvents()}bindEvents(){var e;if(!this.elementText||!this.elementButton)return;const t=(e=this.elementButton.textContent)==null?void 0:e.trim();this.elementButton.addEventListener("click",m=>{var i,r,c;m.preventDefault();const s=((r=(i=this.elementText)==null?void 0:i.textContent)==null?void 0:r.trim())??"";s&&((c=navigator.clipboard)==null||c.writeText(s).then(()=>{this.copyResetTimer&&window.clearTimeout(this.copyResetTimer),this.elementButton.textContent=u,this.copyResetTimer=window.setTimeout(()=>{this.elementButton.textContent=t,this.copyResetTimer=void 0},3e3)}).catch(()=>{}))})}}class d{constructor(){this.init()}init(){document.querySelectorAll(l).forEach(e=>{if(!(e instanceof HTMLElement))throw new Error(`FeedNews element is not HTMLElement: ${e}`);new T(e)})}}export{d as ContactsController};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.