patch_file/updatefiles/javascripts/bootstrap.min.js

1 line
36 KiB
JavaScript
Raw Normal View History

2020-04-25 07:21:34 +00:00
if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(a){'use strict';var b=a.fn.jquery.split(" ")[0].split(".");if(2>b[0]&&9>b[1]||1==b[0]&&9==b[1]&&1>b[2]||3<b[0])throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}(jQuery),+function(a){'use strict';function b(){var a=document.createElement("bootstrap"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in b)if(a.style[c]!==void 0)return{end:b[c]};return!1}a.fn.emulateTransitionEnd=function(b){var c=!1,d=this;a(this).one("bsTransitionEnd",function(){c=!0});var e=function(){c||a(d).trigger(a.support.transition.end)};return setTimeout(e,b),this},a(function(){a.support.transition=b();a.support.transition&&(a.event.special.bsTransitionEnd={bindType:a.support.transition.end,delegateType:a.support.transition.end,handle:function(b){if(a(b.target).is(this))return b.handleObj.handler.apply(this,arguments)}})})}(jQuery),+function(a){'use strict';var b=function(b){a(b).on("click","[data-dismiss=\"alert\"]",this.close)};b.VERSION="3.3.7",b.TRANSITION_DURATION=150,b.prototype.close=function(c){function d(){h.detach().trigger("closed.bs.alert").remove()}var f=a(this),g=f.attr("data-target");g||(g=f.attr("href"),g=g&&g.replace(/.*(?=#[^\s]*$)/,""));var h=a("#"===g?[]:g);c&&c.preventDefault(),h.length||(h=f.closest(".alert")),h.trigger(c=a.Event("close.bs.alert"));c.isDefaultPrevented()||(h.removeClass("in"),a.support.transition&&h.hasClass("fade")?h.one("bsTransitionEnd",d).emulateTransitionEnd(b.TRANSITION_DURATION):d())};var c=a.fn.alert;a.fn.alert=function(c){return this.each(function(){var d=a(this),e=d.data("bs.alert");e||d.data("bs.alert",e=new b(this)),"string"==typeof c&&e[c].call(d)})},a.fn.alert.Constructor=b,a.fn.alert.noConflict=function(){return a.fn.alert=c,this},a(document).on("click.bs.alert.data-api","[data-dismiss=\"alert\"]",b.prototype.close)}(jQuery),+function(a){'use strict';var b=function(c,d){this.$element=a(c),this.options=a.extend({},b.DEFAULTS,d),this.isLoading=!1};b.VERSION="3.3.7",b.DEFAULTS={loadingText:"loading..."},b.prototype.setState=function(b){var c=this.$element,d=c.is("input")?"val":"html",e=c.data();b+="Text",null==e.resetText&&c.data("resetText",c[d]()),setTimeout(a.proxy(function(){c[d](null==e[b]?this.options[b]:e[b]),"loadingText"==b?(this.isLoading=!0,c.addClass("disabled").attr("disabled","disabled").prop("disabled",!0)):this.isLoading&&(this.isLoading=!1,c.removeClass("disabled").removeAttr("disabled").prop("disabled",!1))},this),0)},b.prototype.toggle=void 0;var c=function(a){var b="undefined"==typeof a?this.$element:a;var c=b.closest("[data-toggle=\"buttons-radio\"]");c&&c.find(".active").removeClass("active"),b.toggleClass("active")};a.fn.bootstrap_button=function(c){return this.each(function(){var d=a(this),e=d.data("bs.button");e||d.data("bs.button",e=new b(this,"object"==typeof c&&c)),"toggle"==c?e.toggle():c&&e.setState(c)})},a.fn.bootstrap_button.Constructor=b,a(document).on("click.bs.button.data-api","[data-toggle^=\"button\"]",function(b){var d=a(b.target);d.hasClass("btn")||(d=d.closest(".btn")),c(d)}).on("focus.bs.button.data-api blur.bs.button.data-api","[data-toggle^=\"button\"]",function(b){a(b.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(b.type))})}(jQuery),+function(a){'use strict';function b(b){return this.each(function(){var d=a(this),e=d.data("bs.carousel"),f=a.extend({},c.DEFAULTS,d.data(),"object"==typeof b&&b),g="string"==typeof b?b:f.slide;e||d.data("bs.carousel",e=new c(this,f)),"number"==typeof b?e.to(b):g?e[g]():f.interval&&e.pause().cycle()})}var c=function(b,c){this.$element=a(b),this.$indicators=this.$element.find(".carousel-indicators"),this.options=c,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",a.proxy(this.keydown,this)),"hover"!=this.options.pause||"ontouchstart"in document.document