text: (window.webpackJsonp=window.webpackJsonp||[]).push([[2],{3:function(t,n,a){t.exports=a("sdID")},sdID:function(t,n){function a(){$("[data-method]").append((function(){return!$(this).find("form").length>0?"\n<form action='"+$(this).attr("href")+"' method='POST' name='delete_item' style='display:none'>\n<input type='hidden' name='_method' value='"+$(this).attr("data-method")+"'>\n<input type='hidden' name='_token' value='"+$('meta[name="csrf-token"]').attr("content")+"'>\n</form>\n":""})).attr("href","#").attr("style","cursor:pointer;").attr("onclick",'$(this).find("form").submit();')}$.ajaxSetup({beforeSend:function(t,n){n.crossDomain||t.setRequestHeader("X-CSRF-Token",$('meta[name="csrf-token"]').attr("content"))},complete:function(t,n,e){a()}}),$((function(){a(),$("form").submit((function(){return $(this).find('input[type="submit"]').attr("disabled",!0),$(this).find('button[type="submit"]').attr("disabled",!0),!0})),$("body").on("submit","form[name=delete_item]",(function(t){t.preventDefault();var n=this,a=$('a[data-method="delete"]'),e=a.attr("data-trans-button-cancel")?a.attr("data-trans-button-cancel"):"Cancelar",o=a.attr("data-trans-button-confirm")?a.attr("data-trans-button-confirm"):"Eliminar",i=a.attr("data-trans-title")?a.attr("data-trans-title"):"Está seguro que desea eliminarlo?";Swal.fire({title:i,showCancelButton:!0,confirmButtonText:o,cancelButtonText:e,icon:"warning"}).then((function(t){t.value&&n.submit()}))})).on("click","a[name=confirm_item]",(function(t){t.preventDefault();var n=$(this),a=n.attr("data-trans-title")?n.attr("data-trans-title"):"Está seguro que desea hacer esto?",e=n.attr("data-trans-button-cancel")?n.attr("data-trans-button-cancel"):"Cancelar",o=n.attr("data-trans-button-confirm")?n.attr("data-trans-button-confirm"):"Continuar";Swal.fire({title:a,showCancelButton:!0,confirmButtonText:o,cancelButtonText:e,icon:"info"}).then((function(t){t.value&&window.location.assign(n.attr("href"))}))}));var t=window.location.hash;t&&$('ul.nav a[href="'+t+'"]').tab("show"),$(".nav-tabs li > a").on("click",(function(t){$(this).tab("show"),history.pushState(null,null,this.hash)})),$(window).bind("hashchange",(function(){$('ul.nav a[href^="'+document.location.hash+'"]').click()})),document.location.hash.length&&$(window).trigger("hashchange"),$("table").on("draw.dt",(function(){$('[data-toggle="tooltip"]').tooltip(),$('[data-toggle="popover"]').popover({trigger:"hover"}),e()})),$(".select2").select2({language:{noResults:function(){return"Lo sentimos, no hay resultados!"}},placeholder:function(){$(this).data("placeholder")}}),$.fn.selectpicker.Constructor.BootstrapVersion="4",$(".kt-selectpicker").selectpicker({noneResultsText:"No se encontraron resultados para: {0}"})}));var e=function(){KTUtil.isInResponsiveRange("desktop")?$('[data-toggle="kt-tooltip-desktop"]').each((function(){KTApp.initTooltip($(this))})):$('[data-toggle="kt-tooltip-desktop"]').each((function(){$(this).tooltip("dispose")}))};e(),KTUtil.addResizeHandler(e);var o,i,r={en:{path:"/custom/datatables/en"},es:{path:"/custom/datatables/es"}};o=$("html").attr("lang"),i=r[o].path+".json",$.ajax({url:i}).done((function(t){var n=$.extend({},t,r[o]);!function(t,a){t.extend(!0,a.defaults,{language:n})}(jQuery,jQuery.fn.dataTable)}))}},[[3,0]]]);