/**
* bootstrap-popup v1.0.0
* Copyright 2016 jsoon
* Licensed under the MIT license
*/
!function(o){"use strict";if("function"==typeof define&&define.amd)define(["jquery","bootstrap"],o);else if("object"==typeof exports)o(require("jquery"),require("bootstrap"));else{if("undefined"==typeof jQuery)throw new Error("bootstrap-popup requires jQuery to be loaded first");if("undefined"==typeof jQuery.fn.modal)throw new Error("bootstrap-popup requires Bootstrap to be loaded first");o(jQuery,jQuery.fn.modal)}}(function(o,t){"use strict";o.bs=o.bs||{};var d=function(){var t,d,i,n,a,s,e={},l=function(o){var o=o||1e5;return Math.floor(Math.random()*o)};return e.toast=function(i,a){t="J_PopupToast"+l(),d='
";var s=arguments[2]?arguments[2]:3e3;o("body").append(d),n=o("#"+t),n.find(".modal-dialog").css("width",i.width),n.on("shown.bs.modal",function(){"function"==typeof a?a(n):null;var t=this;setTimeout(function(){o(t).modal("hide")},s)}).modal("show"),n.on("hidden.bs.modal",function(){o(this).remove()})},e.confirm=function(i,e){t="J_PopupConfirm"+l(),d='',o("body").append(d),n=o("#"+t),n.find(".modal-dialog").css("width",i.width),n.modal("show"),a=n.find(".J_Ok"),s=n.find(".J_Cancel"),a.on("click",function(){"function"==typeof e?e(n):null}),s.on("click",function(){n.modal("hide")}),n.on("hidden.bs.modal",function(){o(this).remove()})},e.prompt=function(e,c){t="J_PopupPrompt"+l(),d='',o("body").append(d),n=o("#"+t),n.find(".modal-dialog").css("width",e.width),n.modal("show"),a=n.find(".J_Ok"),s=n.find(".J_Cancel"),a.on("click",function(){i=n.find(".J_Message").eq(0).val(),"function"==typeof c?c(n,i):null}),s.on("click",function(){n.modal("hide")}),n.on("hidden.bs.modal",function(){o(this).remove()})},e.custom=function(i,a){t="J_PopupCustom"+l(),d='",o("body").append(d),n=o("#"+t),n.find(".modal-dialog").css("width",i.width),n.modal("show"),"function"==typeof a?a(n):null,n.on("hidden.bs.modal",function(){o(this).remove()})},e};o.bs.popup=d()});
//# sourceMappingURL=bootstrap-popup.min.js.map