"use strict";$((function(){var t=Swal.mixin({customClass:{confirmButton:"btn btn-primary mx-1",denyButton:"btn btn-secondary mx-1",cancelButton:"btn btn-danger mx-1"},buttonsStyling:!1}),e=Swal.mixin({toast:!0,position:"top-end",showConfirmButton:!1,timer:3e3,timerProgressBar:!0,didOpen:function(t){t.addEventListener("mouseenter",Swal.stopTimer),t.addEventListener("mouseleave",Swal.resumeTimer)}});$("#swal-1").on("click",(function(){t.fire("Welcome to Aquiry!")})),$("#swal-2").on("click",(function(){t.fire("The Internet?","That thing is still around?","question")})),$("#swal-3").on("click",(function(){t.fire({icon:"error",title:"Oops...",text:"Something went wrong!",footer:'<a href="">Why do I have this issue?</a>'})})),$("#swal-4").on("click",(function(){t.fire({title:"<strong>HTML <u>example</u></strong>",icon:"info",html:'You can use <b>bold text</b>, <a href="//sweetalert2.github.io">links</a> and other HTML tags',showCloseButton:!0,showCancelButton:!0,focusConfirm:!1,confirmButtonText:'<i class="fa fa-thumbs-up"></i> Great!',confirmButtonAriaLabel:"Thumbs up, great!",cancelButtonText:'<i class="fa fa-thumbs-down"></i>',cancelButtonAriaLabel:"Thumbs down"})})),$("#swal-5").on("click",(function(){t.fire({title:"Do you want to save the changes?",showDenyButton:!0,showCancelButton:!0,confirmButtonText:"Save",denyButtonText:"Don't save"}).then((function(e){e.isConfirmed?t.fire("Saved!","","success"):e.isDenied&&t.fire("Changes are not saved","","info")}))})),$("#swal-6").on("click",(function(){t.fire({position:"top-end",icon:"success",title:"Your work has been saved",showConfirmButton:!1,timer:1500})})),$("#swal-7").on("click",(function(){t.fire({title:"Are you sure?",text:"You won't be able to revert this!",icon:"warning",showCancelButton:!0,confirmButtonColor:"#3085d6",cancelButtonColor:"#d33",confirmButtonText:"Yes, delete it!"}).then((function(e){e.isConfirmed&&t.fire("Deleted!","Your file has been deleted.","success")}))})),$("#swal-8").on("click",(function(){t.fire({title:"Sweet!",text:"Modal with a custom image.",imageUrl:"https://unsplash.it/400/200",imageWidth:400,imageHeight:200,imageAlt:"Custom image"})})),$("#swal-9").on("click",(function(){var e;t.fire({title:"Auto close alert!",html:"I will close in <b></b> milliseconds.",timer:2e3,timerProgressBar:!0,didOpen:function(){t.showLoading();var n=t.getHtmlContainer().querySelector("b");e=setInterval((function(){n.textContent=t.getTimerLeft()}),100)},willClose:function(){clearInterval(e)}}).then((function(e){e.dismiss===t.DismissReason.timer&&console.log("I was closed by the timer")}))})),$("#swal-10").on("click",(function(){t.fire({title:"Submit your Github username",input:"text",inputAttributes:{autocapitalize:"off"},showCancelButton:!0,confirmButtonText:"Look up",showLoaderOnConfirm:!0,preConfirm:function(e){return fetch("//api.github.com/users/".concat(e)).then((function(t){if(t.ok)return t.json();throw new Error(t.statusText)})).catch((function(e){t.showValidationMessage("Request failed: ".concat(e))}))},allowOutsideClick:function(){return!t.isLoading()}}).then((function(e){e.isConfirmed&&t.fire({title:"".concat(e.value.login,"'s avatar"),imageUrl:e.value.avatar_url})}))})),$("#swal-11").on("click",(function(){e.fire({icon:"success",title:"Signed in successfully"})})),$("#swal-12").on("click",(function(){Swal.fire({title:"Drag me!",icon:"success",draggable:!0})})),Swal.bindClickHandler(),Swal.mixin({title:"This is a toast with title"}).bindClickHandler("data-swal-template"),Swal.mixin({toast:!0,title:"This is a toast with title"}).bindClickHandler("data-swal-toast-template")}));