Blame view
__public/js/dist/vendors.1390.2626d749294b3a1083f1.js
2.41 KB
e77200db5 Initial commit |
1 |
(window.webpackJsonp=window.webpackJsonp||[]).push([["1390"],{QMJn:function(t,n){!function(t){"use strict";var n=".dropdown-backdrop",o='[data-toggle="dropdown"]',e=function(n){t(n).on("click.bs.dropdown",this.toggle)};function r(n){var o=n.attr("data-target");o||(o=(o=n.attr("href"))&&/#[A-Za-z]/.test(o)&&o.replace(/.*(?=#[^\s]*$)/,""));var e="#"!==o?t(document).find(o):null;return e&&e.length?e:n.parent()}function a(e){e&&3===e.which||(t(n).remove(),t(o).each(function(){var n=t(this),o=r(n),a={relatedTarget:this};o.hasClass("open")&&(e&&"click"==e.type&&/input|textarea/i.test(e.target.tagName)&&t.contains(o[0],e.target)||(o.trigger(e=t.Event("hide.bs.dropdown",a)),e.isDefaultPrevented()||(n.attr("aria-expanded","false"),o.removeClass("open").trigger(t.Event("hidden.bs.dropdown",a)))))}))}e.VERSION="3.4.1",e.prototype.toggle=function(n){var o=t(this);if(!o.is(".disabled, :disabled")){var e=r(o),d=e.hasClass("open");if(a(),!d){"ontouchstart"in document.documentElement&&!e.closest(".navbar-nav").length&&t(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(t(this)).on("click",a);var i={relatedTarget:this};if(e.trigger(n=t.Event("show.bs.dropdown",i)),n.isDefaultPrevented())return;o.trigger("focus").attr("aria-expanded","true"),e.toggleClass("open").trigger(t.Event("shown.bs.dropdown",i))}return!1}},e.prototype.keydown=function(n){if(/(38|40|27|32)/.test(n.which)&&!/input|textarea/i.test(n.target.tagName)){var e=t(this);if(n.preventDefault(),n.stopPropagation(),!e.is(".disabled, :disabled")){var a=r(e),d=a.hasClass("open");if(!d&&27!=n.which||d&&27==n.which)return 27==n.which&&a.find(o).trigger("focus"),e.trigger("click");var i=a.find(".dropdown-menu li:not(.disabled):visible a");if(i.length){var s=i.index(n.target);38==n.which&&s>0&&s--,40==n.which&&s<i.length-1&&s++,~s||(s=0),i.eq(s).trigger("focus")}}}};var d=t.fn.dropdown;t.fn.dropdown=function(n){return this.each(function(){var o=t(this),r=o.data("bs.dropdown");r||o.data("bs.dropdown",r=new e(this)),"string"==typeof n&&r[n].call(o)})},t.fn.dropdown.Constructor=e,t.fn.dropdown.noConflict=function(){return t.fn.dropdown=d,this},t(document).on("click.bs.dropdown.data-api",a).on("click.bs.dropdown.data-api",".dropdown form",function(t){t.stopPropagation()}).on("click.bs.dropdown.data-api",o,e.prototype.toggle).on("keydown.bs.dropdown.data-api",o,e.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",e.prototype.keydown)}(jQuery)}}]); |