!function(){var e={54:function(e,t,r){"use strict";function n(e,t){for(var r=[],n={},a=0;a<t.length;a++){var s=t[a],i=s[0],o={id:e+":"+a,css:s[1],media:s[2],sourceMap:s[3]};n[i]?n[i].parts.push(o):r.push(n[i]={id:i,parts:[o]})}return r}r.d(t,{A:function(){return h}});var a="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!a)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var s={},i=a&&(document.head||document.getElementsByTagName("head")[0]),o=null,l=0,d=!1,c=function(){},u=null,f="data-vue-ssr-id",p="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function h(e,t,r,a){d=r,u=a||{};var i=n(e,t);return v(i),function(t){for(var r=[],a=0;a<i.length;a++){var o=i[a];(l=s[o.id]).refs--,r.push(l)}for(t?v(i=n(e,t)):i=[],a=0;a<r.length;a++){var l;if(0===(l=r[a]).refs){for(var d=0;d<l.parts.length;d++)l.parts[d]();delete s[l.id]}}}}function v(e){for(var t=0;t<e.length;t++){var r=e[t],n=s[r.id];if(n){n.refs++;for(var a=0;a<n.parts.length;a++)n.parts[a](r.parts[a]);for(;a<r.parts.length;a++)n.parts.push(m(r.parts[a]));n.parts.length>r.parts.length&&(n.parts.length=r.parts.length)}else{var i=[];for(a=0;a<r.parts.length;a++)i.push(m(r.parts[a]));s[r.id]={id:r.id,refs:1,parts:i}}}}function g(){var e=document.createElement("style");return e.type="text/css",i.appendChild(e),e}function m(e){var t,r,n=document.querySelector("style["+f+'~="'+e.id+'"]');if(n){if(d)return c;n.parentNode.removeChild(n)}if(p){var a=l++;n=o||(o=g()),t=M.bind(null,n,a,!1),r=M.bind(null,n,a,!0)}else n=g(),t=$.bind(null,n),r=function(){n.parentNode.removeChild(n)};return t(e),function(n){if(n){if(n.css===e.css&&n.media===e.media&&n.sourceMap===e.sourceMap)return;t(e=n)}else r()}}var y,b=(y=[],function(e,t){return y[e]=t,y.filter(Boolean).join("\n")});function M(e,t,r,n){var a=r?"":n.css;if(e.styleSheet)e.styleSheet.cssText=b(t,a);else{var s=document.createTextNode(a),i=e.childNodes;i[t]&&e.removeChild(i[t]),i.length?e.insertBefore(s,i[t]):e.appendChild(s)}}function $(e,t){var r=t.css,n=t.media,a=t.sourceMap;if(n&&e.setAttribute("media",n),u.ssrId&&e.setAttribute(f,t.id),a&&(r+="\n/*# sourceURL="+a.sources[0]+" */",r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}},332:function(e,t,r){var n=r(813);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,r(54).A)("53136222",n,!0,{})},813:function(){}},t={};function r(n){var a=t[n];if(void 0!==a)return a.exports;var s=t[n]={id:n,exports:{}};return e[n](s,s.exports,r),s.exports}r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";var e;r(332),e=jQuery,new(Garnish.Base.extend({$clearAllBtn:null,$table:null,tracesModal:null,$tracesModalBody:null,init:function(){this.$clearAllBtn=e("#clearall"),this.$table=e("#deprecationerrors"),this.$noLogsMessage=e("#nologs"),this.addListener(this.$clearAllBtn,"click","clearAllLogs"),this.addListener(this.$table.find(".viewtraces"),"click","viewLogTraces"),this.addListener(this.$table.find(".delete"),"click","deleteLog")},clearAllLogs:function(){Craft.sendActionRequest("POST","utilities/delete-all-deprecation-errors"),this.onClearAll()},viewLogTraces:function(t){var r=this,n=e('<div class="spinner spinner-absolute"/>');if(this.tracesModal)this.tracesModal.$container.append(n),this.$tracesModalBody.empty(),this.tracesModal.show();else{var a=e('<div id="traces" class="modal"/>').append(n).appendTo(Garnish.$bod);this.$tracesModalBody=e('<div class="body" tabindex="0"/>').appendTo(a),this.tracesModal=new Garnish.Modal(a,{resizable:!0})}var s={logId:e(t.currentTarget).closest("tr").data("id")};Craft.sendActionRequest("POST","utilities/get-deprecation-error-traces-modal",{data:s}).then((function(e){r.tracesModal.$container.find(".spinner").remove(),r.$tracesModalBody.html(e.data.html)})).catch((function(e){e.response,r.tracesModal.$container.find(".spinner").remove()}))},deleteLog:function(t){var r=e(t.currentTarget).closest("tr"),n={logId:r.data("id")};Craft.sendActionRequest("POST","utilities/delete-deprecation-error",{data:n}),r.siblings().length?r.remove():this.onClearAll()},onClearAll:function(){this.$clearAllBtn.parent().remove(),this.$table.remove(),this.$noLogsMessage.removeClass("hidden")}}))}()}();
//# sourceMappingURL=deprecator.js.map