text: function makeCSRFExtendedData(n){var t={};return t[csrfFieldName]=$("input[name="+csrfFieldName+"]").val(),$.extend(n,t)}function ajaxPostWithCSRFToken(n,t,i){var r={type:"POST",url:n,headers:{},data:makeCSRFExtendedData(t),success:function(n){i(n)},dataType:"json"};r.headers[csrfFieldName]=$("input[name="+csrfFieldName+"]").val();$.ajax(r)}function deleteLink(n){ajaxPostWithCSRFToken("/admin/delete",{linkId:n},function(){toastr.success("Link deleted.")})}function copyToClipboard(n){var u="_hiddenCopyText_",f=n.tagName==="INPUT"||n.tagName==="TEXTAREA",e,o,t,i,r;f?(t=n,e=n.selectionStart,o=n.selectionEnd):(t=document.getElementById(u),t||(t=document.createElement("textarea"),t.style.position="absolute",t.style.left="-9999px",t.style.top="0",t.id=u,document.body.appendChild(t)),t.textContent=n.textContent);i=document.activeElement;t.focus();t.setSelectionRange(0,t.value.length);try{r=document.execCommand("copy")}catch(s){r=!1}return i&&typeof i.focus=="function"&&i.focus(),f?n.setSelectionRange(e,o):t.textContent="",r}var csrfFieldName="CSRF-TOKEN-LFWDR-FORM";