PageSourceSearch

https://www.prokita-portal.de/dist/assets/dropdown-D5f7sc9d.js

js prokita-portal.de collected 2026-10-04 02:59:08 UTC 5,861 bytes, 1 lines download raw bytes

vendor: 5,861 bytes, line 1
1import{P as O,c as w}from"./index-BPkgwv5m.js";import{B as L,S as i,i as E,E as o,n as m,M as g,a as T,g as S,e as D,b as M,c as R,f as u,d as I}from"./selector-engine-DN6neC7B.js";const A="dropdown",v="bs.dropdown",p=`.${v}`,f=".data-api",B="Escape",N="Tab",H="ArrowUp",C="ArrowDown",$=2,V=`hide${p}`,K=`hidden${p}`,k=`show${p}`,x=`shown${p}`,y=`click${p}${f}`,P=`keydown${p}${f}`,U=`keyup${p}${f}`,d="show",W="dropup",Y="dropend",j="dropstart",G="dropup-center",q="dropdown-center",c='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Q=`${c}.${d}`,_=".dropdown-menu",F=".navbar",J=".navbar-nav",z=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",X=u()?"top-end":"top-start",Z=u()?"top-start":"top-end",ee=u()?"bottom-end":"bottom-start",te=u()?"bottom-start":"bottom-end",ne=u()?"left-start":"right-start",se=u()?"right-start":"left-start",oe="top",re="bottom",ie={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},ae={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class r extends L{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=i.next(this._element,_)[0]||i.prev(this._element,_)[0]||i.findOne(_,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return ie}static get DefaultType(){return ae}static get NAME(){return A}toggle(){return this._isShown()?this.hide():this.show()}show(){if(E(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!o.trigger(this._element,k,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(J))for(const s of[].concat(...document.body.children))o.on(s,"mouseover",m);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(d),this._element.classList.add(d),o.trigger(this._element,x,e)}}hide(){if(E(this._element)||!this._isShown())return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!o.trigger(this._element,V,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const s of[].concat(...document.body.children))o.off(s,"mouseover",m);this._popper&&this._popper.destroy(),this._menu.classList.remove(d),this._element.classList.remove(d),this._element.setAttribute("aria-expanded","false"),g.removeDataAttribute(this._menu,"popper"),o.trigger(this._element,K,e)}}_getConfig(e){if(e=super._getConfig(e),typeof e.reference=="object"&&!T(e.reference)&&typeof e.reference.getBoundingClientRect!="function")throw new TypeError(`${A.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(typeof O>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org/docs/v2/)");let e=this._element;this._config.reference==="parent"?e=this._parent:T(this._config.reference)?e=S(this._config.reference):typeof this._config.reference=="object"&&(e=this._config.reference);const t=this._getPopperConfig();this._popper=w(e,this._menu,t)}_isShown(){return this._menu.classList.contains(d)}_getPlacement(){const e=this._parent;if(e.classList.contains(Y))return ne;if(e.classList.contains(j))return se;if(e.classList.contains(G))return oe;if(e.classList.contains(q))return re;const t=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return e.classList.contains(W)?t?Z:X:t?te:ee}_detectNavbar(){return this._element.closest(F)!==null}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(t=>Number.parseInt(t,10)):typeof e=="function"?t=>e(t,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(g.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...D(this._config.popperConfig,[void 0,e])}}_selectMenuItem({key:e,target:t}){const s=i.find(z,this._menu).filter(n=>M(n));s.length&&R(s,t,e===C,!s.includes(t)).focus()}static jQueryInterface(e){return this.each(function(){const t=r.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof t[e]>"u")throw new TypeError(`No method named "${e}"`);t[e]()}})}static clearMenus(e){if(e.button===$||e.type==="keyup"&&e.key!==N)return;const t=i.find(Q);for(const s of t){const n=r.getInstance(s);if(!n||n._config.autoClose===!1)continue;const l=e.composedPath(),a=l.includes(n._menu);if(l.includes(n._element)||n._config.autoClose==="inside"&&!a||n._config.autoClose==="outside"&&a||n._menu.contains(e.target)&&(e.type==="keyup"&&e.key===N||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const h={relatedTarget:n._element};e.type==="click"&&(h.clickEvent=e),n._completeHide(h)}}static dataApiKeydownHandler(e){const t=/input|textarea/i.test(e.target.tagName),s=e.key===B,n=[H,C].includes(e.key);if(!n&&!s||t&&!s)return;e.preventDefault();const l=this.matches(c)?this:i.prev(this,c)[0]||i.next(this,c)[0]||i.findOne(c,e.delegateTarget.parentNode),a=r.getOrCreateInstance(l);if(n){e.stopPropagation(),a.show(),a._selectMenuItem(e);return}a._isShown()&&(e.stopPropagation(),a.hide(),l.focus())}}o.on(document,P,c,r.dataApiKeydownHandler);o.on(document,P,_,r.dataApiKeydownHandler);o.on(document,y,r.clearMenus);o.on(document,U,r.clearMenus);o.on(document,y,c,function(b){b.preventDefault(),r.getOrCreateInstance(this).toggle()});I(r);export{r as 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.