var UIAlertDialogApi=function(){var handleDialogs=function(){$('#demo_1').click(function(){bootbox.alert("Hello world!");});$('#demo_2').click(function(){bootbox.alert("Hello world!",function(){alert("Hello world callback");});});$('#demo_3').click(function(){bootbox.confirm("Are you sure?",function(result){alert("Confirm result: "+result);});});$('#demo_4').click(function(){bootbox.prompt("What is your name?",function(result){if(result===null){alert("Prompt dismissed");}else{alert("Hi <b>"+result+"</b>");}});});$('#demo_5').click(function(){bootbox.dialog({message:"I am a custom dialog",title:"Custom title",buttons:{success:{label:"Success!",className:"green",callback:function(){alert("great success");}},danger:{label:"Danger!",className:"red",callback:function(){alert("uh oh, look out!");}},main:{label:"Click ME!",className:"blue",callback:function(){alert("Primary button");}}}});});}
var handleAlerts=function(){$('#alert_show').click(function(){Metronic.alert({container:$('#alert_container').val(),place:$('#alert_place').val(),type:$('#alert_type').val(),message:$('#alert_message').val(),close:$('#alert_close').is(":checked"),reset:$('#alert_reset').is(":checked"),focus:$('#alert_focus').is(":checked"),closeInSeconds:$('#alert_close_in_seconds').val(),icon:$('#alert_icon').val()});});}
return{init:function(){handleDialogs();handleAlerts();}};}();