芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/www/dustinevents.com/assets/common/js/toastr.min.js
("function"==typeof define&&define.amd?define:function(e,t){"undefined"!=typeof module&&module.exports?module.exports=t(require("jquery")):window.toastr=t(window.jQuery)})(["jquery"],function(e){return function(){function t(t,n){var s;return t||(t=o()),(r=e("#"+t.containerId)).length||n&&(r=(s=t,(r=e("
").attr("id",s.containerId).addClass(s.positionClass)).appendTo(e(s.target)),r)),r}function n(t,n,s){var i=!(!s||!s.force)&&s.force;return!(!t||!i&&0!==e(":focus",t).length||(t[n.hideMethod]({duration:n.hideDuration,easing:n.hideEasing,complete:function(){a(t)}}),0))}function s(e){c&&c(e)}function i(n){function i(e){return null==e&&(e=""),e.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function c(t){var n=t&&!1!==u.closeMethod?u.closeMethod:u.hideMethod,i=t&&!1!==u.closeDuration?u.closeDuration:u.hideDuration,o=t&&!1!==u.closeEasing?u.closeEasing:u.hideEasing;if(!e(":focus",f).length||t)return clearTimeout($.intervalId),f[n]({duration:i,easing:o,complete:function(){a(f),clearTimeout(g),u.onHidden&&"hidden"!==w.state&&u.onHidden(),w.state="hidden",w.endTime=new Date,s(w)}})}var u=o(),p=n.iconClass||u.iconClass;if(void 0!==n.optionsOverride&&(u=e.extend(u,n.optionsOverride),p=n.optionsOverride.iconClass||p),!function(e,t){if(e.preventDuplicates){if(t.message===l)return!0;l=t.message}return!1}(u,n)){d++,r=t(u,!0);var g=null,f=e("
"),m=e("
"),h=e("
"),v=e("
"),C=e(u.closeHtml),$={intervalId:null,hideEta:null,maxHideTime:null},w={toastId:d,state:"visible",startTime:new Date,options:u,map:n};return n.iconClass&&f.addClass(u.toastClass).addClass(p),function(){if(n.title){var e=n.title;u.escapeHtml&&(e=i(n.title)),m.append(e).addClass(u.titleClass),f.append(m)}}(),function(){if(n.message){var e=n.message;u.escapeHtml&&(e=i(n.message)),h.append(e).addClass(u.messageClass),f.append(h)}}(),u.closeButton&&(C.addClass(u.closeClass).attr("role","button"),f.prepend(C)),u.progressBar&&(v.addClass(u.progressClass),f.prepend(v)),u.rtl&&f.addClass("rtl"),u.newestOnTop?r.prepend(f):r.append(f),function(){var e="";switch(n.iconClass){case"toast-success":case"toast-info":e="polite";break;default:e="assertive"}f.attr("aria-live",e)}(),f.hide(),f[u.showMethod]({duration:u.showDuration,easing:u.showEasing,complete:u.onShown}),u.timeOut>0&&(g=setTimeout(c,u.timeOut),$.maxHideTime=parseFloat(u.timeOut),$.hideEta=new Date().getTime()+$.maxHideTime,u.progressBar&&($.intervalId=setInterval(function e(){var t=($.hideEta-new Date().getTime())/$.maxHideTime*100;v.width(t+"%")},10))),u.closeOnHover&&f.hover(function e(){clearTimeout(g),$.hideEta=0,f.stop(!0,!0)[u.showMethod]({duration:u.showDuration,easing:u.showEasing})},function e(){(u.timeOut>0||u.extendedTimeOut>0)&&(g=setTimeout(c,u.extendedTimeOut),$.maxHideTime=parseFloat(u.extendedTimeOut),$.hideEta=new Date().getTime()+$.maxHideTime)}),!u.onclick&&u.tapToDismiss&&f.click(c),u.closeButton&&C&&C.click(function(e){e.stopPropagation?e.stopPropagation():void 0!==e.cancelBubble&&!0!==e.cancelBubble&&(e.cancelBubble=!0),u.onCloseClick&&u.onCloseClick(e),c(!0)}),u.onclick&&f.click(function(e){u.onclick(e),c()}),s(w),u.debug&&console&&console.log(w),f}}function o(){return e.extend({},{tapToDismiss:!0,toastClass:"toast",containerId:"toast-container",debug:!1,showMethod:"fadeIn",showDuration:300,showEasing:"swing",onShown:void 0,hideMethod:"fadeOut",hideDuration:1e3,hideEasing:"swing",onHidden:void 0,closeMethod:!1,closeDuration:!1,closeEasing:!1,closeOnHover:!0,extendedTimeOut:1e3,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},iconClass:"toast-info",positionClass:"toast-top-right",timeOut:5e3,titleClass:"toast-title",messageClass:"toast-message",escapeHtml:!1,target:"body",closeHtml:'
×
',closeClass:"toast-close-button",newestOnTop:!0,preventDuplicates:!1,progressBar:!1,progressClass:"toast-progress",rtl:!1},p.options)}function a(e){r||(r=t()),e.is(":visible")||(e.remove(),e=null,0===r.children().length&&(r.remove(),l=void 0))}window.getRunningScript=function(){return function(){return Error().stack.match(/([^ \n])*([a-z]*:\/\/\/?)*?[a-z0-9\/\\]*\.js/gi)[0]}},getRunningScript()().match(/.*(?=assets)/)[0];var r,c,l,d=0,u={error:"error",info:"info",success:"success",warning:"warning"},p={clear:function(s,i){var a=o();r||t(a),n(s,a,i)||function t(s){for(var i=r.children(),o=i.length-1;o>=0;o--)n(e(i[o]),s)}(a)},remove:function(n){var s=o();return r||t(s),n&&0===e(":focus",n).length?void a(n):void(r.children().length&&r.remove())},error:function(e,t,n){return i({type:u.error,iconClass:o().iconClasses.error,message:e,optionsOverride:n,title:t})},getContainer:t,info:function(e,t,n){return i({type:u.info,iconClass:o().iconClasses.info,message:e,optionsOverride:n,title:t})},options:{},subscribe:function(e){c=e},success:function(e,t,n){return i({type:u.success,iconClass:o().iconClasses.success,message:e,optionsOverride:n,title:t})},version:"2.1.4",warning:function(e,t,n){return i({type:u.warning,iconClass:o().iconClasses.warning,message:e,optionsOverride:n,title:t})}};return p}()});