!function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(e,r,o){return(r=function(e){var r=function(e){if("object"!=t(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,"string");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==t(r)?r:r+""}(r))in e?Object.defineProperty(e,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[r]=o,e}$((function(){$(".action-buttons .clone").on({click:function(t){var r=$(t.target).data(),o=r.id,n=r.type;$.ajax({url:Craft.getCpUrl("freeform/notifications/".concat(n,"/duplicate")),type:"POST",dataType:"json",data:e({id:o},Craft.csrfTokenName,Craft.csrfTokenValue),success:function(t){t.success&&window.location.reload()}})}}),$("[data-file-templates] a.delete[data-id]").on({click:function(t){var r=$(t.target),o=r.data(),n=o.id,a=o.type;confirm(confirmDeleteMessage)&&$.ajax({url:Craft.getCpUrl("freeform/notifications/".concat(a,"/delete")),type:"POST",dataType:"json",data:e({id:n},Craft.csrfTokenName,Craft.csrfTokenValue),success:function(t){t.success&&r.parents("tr:first").remove()}})}})}))}();