!function(){var e={135:function(){},742:function(e,t,r){var n=r(135);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,r(673).Z)("53136222",n,!0,{})},673:function(e,t,r){"use strict";function n(e,t){for(var r=[],n={},s=0;s<t.length;s++){var a=t[s],o=a[0],i={id:e+":"+s,css:a[1],media:a[2],sourceMap:a[3]};n[o]?n[o].parts.push(i):r.push(n[o]={id:o,parts:[i]})}return r}r.d(t,{Z:function(){return h}});var s="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!s)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 a={},o=s&&(document.head||document.getElementsByTagName("head")[0]),i=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,s){d=r,u=s||{};var o=n(e,t);return v(o),function(t){for(var r=[],s=0;s<o.length;s++){var i=o[s];(l=a[i.id]).refs--,r.push(l)}for(t?v(o=n(e,t)):o=[],s=0;s<r.length;s++){var l;if(0===(l=r[s]).refs){for(var d=0;d<l.parts.length;d++)l.parts[d]();delete a[l.id]}}}}function v(e){for(var t=0;t<e.length;t++){var r=e[t],n=a[r.id];if(n){n.refs++;for(var s=0;s<n.parts.length;s++)n.parts[s](r.parts[s]);for(;s<r.parts.length;s++)n.parts.push(m(r.parts[s]));n.parts.length>r.parts.length&&(n.parts.length=r.parts.length)}else{var o=[];for(s=0;s<r.parts.length;s++)o.push(m(r.parts[s]));a[r.id]={id:r.id,refs:1,parts:o}}}}function g(){var e=document.createElement("style");return e.type="text/css",o.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 s=l++;n=i||(i=g()),t=C.bind(null,n,s,!1),r=C.bind(null,n,s,!0)}else n=g(),t=M.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 C(e,t,r,n){var s=r?"":n.css;if(e.styleSheet)e.styleSheet.cssText=b(t,s);else{var a=document.createTextNode(s),o=e.childNodes;o[t]&&e.removeChild(o[t]),o.length?e.insertBefore(a,o[t]):e.appendChild(a)}}function M(e,t){var r=t.css,n=t.media,s=t.sourceMap;if(n&&e.setAttribute("media",n),u.ssrId&&e.setAttribute(f,t.id),s&&(r+="\n/*# sourceURL="+s.sources[0]+" */",r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(s))))+" */"),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}}},t={};function r(n){var s=t[n];if(void 0!==s)return s.exports;var a=t[n]={id:n,exports:{}};return e[n](a,a.exports,r),a.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(742),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.postActionRequest("utilities/delete-all-deprecation-errors"),this.onClearAll()},viewLogTraces:function(t){var r=this;if(this.tracesModal)this.tracesModal.$container.addClass("loading"),this.$tracesModalBody.empty(),this.tracesModal.show();else{var n=e('<div id="traces" class="modal loading"/>').appendTo(Garnish.$bod);this.$tracesModalBody=e('<div class="body" tabindex="0"/>').appendTo(n),this.tracesModal=new Garnish.Modal(n,{resizable:!0})}var s={logId:e(t.currentTarget).closest("tr").data("id")};Craft.postActionRequest("utilities/get-deprecation-error-traces-modal",s,(function(e,t){r.tracesModal.$container.removeClass("loading"),"success"===t&&r.$tracesModalBody.html(e.html)}))},deleteLog:function(t){var r=e(t.currentTarget).closest("tr"),n={logId:r.data("id")};Craft.postActionRequest("utilities/delete-deprecation-error",n,(function(e,t){console.log("response/textStatus",e,t)})),r.siblings().length?r.remove():this.onClearAll()},onClearAll:function(){this.$clearAllBtn.parent().remove(),this.$table.remove(),this.$noLogsMessage.removeClass("hidden")}}))}()}();
//# sourceMappingURL=deprecator.js.map