PageSourceSearch

https://partnerbot.ai/build/assets/collapse-CQPNqZH_.js

js partnerbot.ai collected 2026-10-05 14:59:38 UTC 5,849 bytes, 1 lines download raw bytes

1import{n as e}from"./rolldown-runtime-CbXtAM7H.js";import{t}from"./jquery-D0qDfRbt.js";var n=e(t());+function(e){var t=`[data-toggle="dropdown"]`,n=function(t){e(t).on(`click.bs.dropdown`,this.toggle)};n.VERSION=`3.4.1`;function r(t){var n=t.attr(`data-target`);n||=(n=t.attr(`href`),n&&/#[A-Za-z]/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,``));var r=n===`#`?null:e(document).find(n);return r&&r.length?r:t.parent()}function i(n){n&&n.which===3||(e(`.dropdown-backdrop`).remove(),e(t).each(function(){var t=e(this),i=r(t),a={relatedTarget:this};i.hasClass(`open`)&&(n&&n.type==`click`&&/input|textarea/i.test(n.target.tagName)&&e.contains(i[0],n.target)||(i.trigger(n=e.Event(`hide.bs.dropdown`,a)),!n.isDefaultPrevented()&&(t.attr(`aria-expanded`,`false`),i.removeClass(`open`).trigger(e.Event(`hidden.bs.dropdown`,a)))))}))}n.prototype.toggle=function(t){var n=e(this);if(!n.is(`.disabled, :disabled`)){var a=r(n),o=a.hasClass(`open`);if(i(),!o){`ontouchstart`in document.documentElement&&!a.closest(`.navbar-nav`).length&&e(document.createElement(`div`)).addClass(`dropdown-backdrop`).insertAfter(e(this)).on(`click`,i);var s={relatedTarget:this};if(a.trigger(t=e.Event(`show.bs.dropdown`,s)),t.isDefaultPrevented())return;n.trigger(`focus`).attr(`aria-expanded`,`true`),a.toggleClass(`open`).trigger(e.Event(`shown.bs.dropdown`,s))}return!1}},n.prototype.keydown=function(n){if(!(!/(38|40|27|32)/.test(n.which)||/input|textarea/i.test(n.target.tagName))){var i=e(this);if(n.preventDefault(),n.stopPropagation(),!i.is(`.disabled, :disabled`)){var a=r(i),o=a.hasClass(`open`);if(!o&&n.which!=27||o&&n.which==27)return n.which==27&&a.find(t).trigger(`focus`),i.trigger(`click`);var s=a.find(`.dropdown-menu li:not(.disabled):visible a`);if(s.length){var c=s.index(n.target);n.which==38&&c>0&&c--,n.which==40&&c<s.length-1&&c++,~c||(c=0),s.eq(c).trigger(`focus`)}}}};function a(t){return this.each(function(){var r=e(this),i=r.data(`bs.dropdown`);i||r.data(`bs.dropdown`,i=new n(this)),typeof t==`string`&&i[t].call(r)})}var o=e.fn.dropdown;e.fn.dropdown=a,e.fn.dropdown.Constructor=n,e.fn.dropdown.noConflict=function(){return e.fn.dropdown=o,this},e(document).on(`click.bs.dropdown.data-api`,i).on(`click.bs.dropdown.data-api`,`.dropdown form`,function(e){e.stopPropagation()}).on(`click.bs.dropdown.data-api`,t,n.prototype.toggle).on(`keydown.bs.dropdown.data-api`,t,n.prototype.keydown).on(`keydown.bs.dropdown.data-api`,`.dropdown-menu`,n.prototype.keydown)}(n.default),+function(e){var t=function(n,r){this.$element=e(n),this.options=e.extend({},t.DEFAULTS,r),this.$trigger=e(`[data-toggle="collapse"][href="#`+n.id+`"],[data-toggle="collapse"][data-target="#`+n.id+`"]`),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};t.VERSION=`3.4.1`,t.TRANSITION_DURATION=350,t.DEFAULTS={toggle:!0},t.prototype.dimension=function(){return this.$element.hasClass(`width`)?`width`:`height`},t.prototype.show=function(){if(!(this.transitioning||this.$element.hasClass(`in`))){var n,i=this.$parent&&this.$parent.children(`.panel`).children(`.in, .collapsing`);if(!(i&&i.length&&(n=i.data(`bs.collapse`),n&&n.transitioning))){var a=e.Event(`show.bs.collapse`);if(this.$element.trigger(a),!a.isDefaultPrevented()){i&&i.length&&(r.call(i,`hide`),n||i.data(`bs.collapse`,null));var o=this.dimension();this.$element.removeClass(`collapse`).addClass(`collapsing`)[o](0).attr(`aria-expanded`,!0),this.$trigger.removeClass(`collapsed`).attr(`aria-expanded`,!0),this.transitioning=1;var s=function(){this.$element.removeClass(`collapsing`).addClass(`collapse in`)[o](``),this.transitioning=0,this.$element.trigger(`shown.bs.collapse`)};if(!e.support.transition)return s.call(this);var c=e.camelCase([`scroll`,o].join(`-`));this.$element.one(`bsTransitionEnd`,e.proxy(s,this)).emulateTransitionEnd(t.TRANSITION_DURATION)[o](this.$element[0][c])}}}},t.prototype.hide=function(){if(!(this.transitioning||!this.$element.hasClass(`in`))){var n=e.Event(`hide.bs.collapse`);if(this.$element.trigger(n),!n.isDefaultPrevented()){var r=this.dimension();this.$element[r](this.$element[r]())[0].offsetHeight,this.$element.addClass(`collapsing`).removeClass(`collapse in`).attr(`aria-expanded`,!1),this.$trigger.addClass(`collapsed`).attr(`aria-expanded`,!1),this.transitioning=1;var i=function(){this.transitioning=0,this.$element.removeClass(`collapsing`).addClass(`collapse`).trigger(`hidden.bs.collapse`)};if(!e.support.transition)return i.call(this);this.$element[r](0).one(`bsTransitionEnd`,e.proxy(i,this)).emulateTransitionEnd(t.TRANSITION_DURATION)}}},t.prototype.toggle=function(){this[this.$element.hasClass(`in`)?`hide`:`show`]()},t.prototype.getParent=function(){return e(document).find(this.options.parent).find(`[data-toggle="collapse"][data-parent="`+this.options.parent+`"]`).each(e.proxy(function(t,r){var i=e(r);this.addAriaAndCollapsedClass(n(i),i)},this)).end()},t.prototype.addAriaAndCollapsedClass=function(e,t){var n=e.hasClass(`in`);e.attr(`aria-expanded`,n),t.toggleClass(`collapsed`,!n).attr(`aria-expanded`,n)};function n(t){var n,r=t.attr(`data-target`)||(n=t.attr(`href`))&&n.replace(/.*(?=#[^\s]+$)/,``);return e(document).find(r)}function r(n){return this.each(function(){var r=e(this),i=r.data(`bs.collapse`),a=e.extend({},t.DEFAULTS,r.data(),typeof n==`object`&&n);!i&&a.toggle&&/show|hide/.test(n)&&(a.toggle=!1),i||r.data(`bs.collapse`,i=new t(this,a)),typeof n==`string`&&i[n]()})}var i=e.fn.collapse;e.fn.collapse=r,e.fn.collapse.Constructor=t,e.fn.collapse.noConflict=function(){return e.fn.collapse=i,this},e(document).on(`click.bs.collapse.data-api`,`[data-toggle="collapse"]`,function(t){var i=e(this);i.attr(`data-target`)||t.preventDefault();var a=n(i),o=a.data(`bs.collapse`)?`toggle`:i.data();r.call(a,o)})}(n.default);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.