"use strict";$define([],function(){$.extend({pl_toast:function(t){var e,i=$.extend({msg:"",time:2,html:"",show:function(){},hide:function(){}},t);i.msg&&(t='
'+i.msg+"
",i.html&&(t=$(i.html)).attr("id",e),$("body").append(t),i.show(),$("body").trigger("toastShow",e),0!=i.time?(setTimeout(function(){$("#"+e).fadeOut(500)},1e3*i.time),setTimeout(function(){$("#"+e).remove(),i.hide()},1e3*i.time+500)):i.hide())}})});