UNPKG

@htmlbricks/bootstrapdropdown-component

Version:

Svelte Boostrap 5 Dropdown WebComponent

3 lines (2 loc) 18 kB
var bootstrapdropdown=function(){"use strict";function t(){}function e(t){return t()}function n(){return Object.create(null)}function o(t){t.forEach(e)}function r(t){return"function"==typeof t}function i(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function d(t,e){t.appendChild(e)}function s(t,e,n){t.insertBefore(e,n||null)}function a(t){t.parentNode.removeChild(t)}function l(t){return document.createElement(t)}function c(t){return document.createTextNode(t)}function u(){return c(" ")}function b(){return c("")}function f(t,e,n,o){return t.addEventListener(e,n,o),()=>t.removeEventListener(e,n,o)}function p(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function g(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function m(t,e,n,o){t.style.setProperty(e,n,o?"important":"")}function h(t){const e={};for(const n of t)e[n.name]=n.value;return e}let w;function y(t){w=t}function k(){if(!w)throw new Error("Function called outside component initialization");return w}function $(){const t=k();return(e,n)=>{const o=t.$$.callbacks[e];if(o){const r=function(t,e,n=!1){const o=document.createEvent("CustomEvent");return o.initCustomEvent(t,n,!1,e),o}(e,n);o.slice().forEach((e=>{e.call(t,r)}))}}}const x=[],v=[],E=[],_=[],C=Promise.resolve();let M=!1;function N(t){E.push(t)}let S=!1;const z=new Set;function L(){if(!S){S=!0;do{for(let t=0;t<x.length;t+=1){const e=x[t];y(e),j(e.$$)}for(y(null),x.length=0;v.length;)v.pop()();for(let t=0;t<E.length;t+=1){const e=E[t];z.has(e)||(z.add(e),e())}E.length=0}while(x.length);for(;_.length;)_.pop()();M=!1,S=!1,z.clear()}}function j(t){if(null!==t.fragment){t.update(),o(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(N)}}const A=new Set;function O(t,e){t&&t.i&&(A.delete(t),t.i(e))}function R(t,e){t.d(1),e.delete(t.key)}function T(t,e,n,o,r,i,d,s,a,l,c,u){let b=t.length,f=i.length,p=b;const g={};for(;p--;)g[t[p].key]=p;const m=[],h=new Map,w=new Map;for(p=f;p--;){const t=u(r,i,p),s=n(t);let a=d.get(s);a?o&&a.p(t,e):(a=l(s,t),a.c()),h.set(s,m[p]=a),s in g&&w.set(s,Math.abs(p-g[s]))}const y=new Set,k=new Set;function $(t){O(t,1),t.m(s,c),d.set(t.key,t),c=t.first,f--}for(;b&&f;){const e=m[f-1],n=t[b-1],o=e.key,r=n.key;e===n?(c=e.first,b--,f--):h.has(r)?!d.has(o)||y.has(o)?$(e):k.has(r)?b--:w.get(o)>w.get(r)?(k.add(o),$(e)):(y.add(r),b--):(a(n,d),b--)}for(;b--;){const e=t[b];h.has(e.key)||a(e,d)}for(;f;)$(m[f-1]);return m}function H(t,e){-1===t.$$.dirty[0]&&(x.push(t),M||(M=!0,C.then(L)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function U(i,d,s,l,c,u,b,f=[-1]){const p=w;y(i);const g=i.$$={fragment:null,ctx:null,props:u,update:t,not_equal:c,bound:n(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(d.context||(p?p.$$.context:[])),callbacks:n(),dirty:f,skip_bound:!1,root:d.target||p.$$.root};b&&b(g.root);let m=!1;if(g.ctx=s?s(i,d.props||{},((t,e,...n)=>{const o=n.length?n[0]:e;return g.ctx&&c(g.ctx[t],g.ctx[t]=o)&&(!g.skip_bound&&g.bound[t]&&g.bound[t](o),m&&H(i,t)),e})):[],g.update(),m=!0,o(g.before_update),g.fragment=!!l&&l(g.ctx),d.target){if(d.hydrate){const t=function(t){return Array.from(t.childNodes)}(d.target);g.fragment&&g.fragment.l(t),t.forEach(a)}else g.fragment&&g.fragment.c();d.intro&&O(i.$$.fragment),function(t,n,i,d){const{fragment:s,on_mount:a,on_destroy:l,after_update:c}=t.$$;s&&s.m(n,i),d||N((()=>{const n=a.map(e).filter(r);l?l.push(...n):o(n),t.$$.on_mount=[]})),c.forEach(N)}(i,d.target,d.anchor,d.customElement),L()}y(p)}let F;function I(t,e,n){const o=t.slice();return o[20]=e[n],o}function D(t,e,n){const o=t.slice();return o[17]=e[n],o}function J(t,e,n){const o=t.slice();return o[20]=e[n],o}function P(t,e,n){const o=t.slice();return o[20]=e[n],o}function q(t){let e,n,o,r=[],i=new Map,c=t[0].filter(it);const b=t=>t[20].key;for(let e=0;e<c.length;e+=1){let n=P(t,c,e),o=b(n);i.set(o,r[e]=G(o,n))}function f(t,e){return t[1]?.length?Q:K}let g=f(t),m=g(t);return{c(){e=l("ul");for(let t=0;t<r.length;t+=1)r[t].c();n=u(),m.c(),p(e,"class",o="dropdown-menu "+(t[2]?"show":""))},m(t,o){s(t,e,o);for(let t=0;t<r.length;t+=1)r[t].m(e,null);d(e,n),m.m(e,null)},p(t,d){9&d&&(c=t[0].filter(it),r=T(r,d,b,1,t,c,i,e,R,G,n,P)),g===(g=f(t))&&m?m.p(t,d):(m.d(1),m=g(t),m&&(m.c(),m.m(e,null))),4&d&&o!==(o="dropdown-menu "+(t[2]?"show":""))&&p(e,"class",o)},d(t){t&&a(e);for(let t=0;t<r.length;t+=1)r[t].d();m.d()}}}function B(t){let e,n,o=t[20].badge+"";return{c(){e=l("span"),n=c(o),m(e,"float","right"),p(e,"class","badge rounded-pill bg-secondary")},m(t,o){s(t,e,o),d(e,n)},p(t,e){1&e&&o!==(o=t[20].badge+"")&&g(n,o)},d(t){t&&a(e)}}}function G(t,e){let n,o,r,i,b,m,h=e[20].label+"",w=e[20].badge&&B(e);function y(){return e[10](e[20])}return{key:t,first:null,c(){n=l("li"),o=l("button"),r=c(h),i=u(),w&&w.c(),p(o,"class","dropdown-item"),this.first=n},m(t,e){s(t,n,e),d(n,o),d(o,r),d(o,i),w&&w.m(o,null),b||(m=f(o,"click",y),b=!0)},p(t,n){e=t,1&n&&h!==(h=e[20].label+"")&&g(r,h),e[20].badge?w?w.p(e,n):(w=B(e),w.c(),w.m(o,null)):w&&(w.d(1),w=null)},d(t){t&&a(n),w&&w.d(),b=!1,m()}}}function K(t){let e,n=[],o=new Map,r=t[0].filter(dt).sort(st);const i=t=>t[20].key;for(let e=0;e<r.length;e+=1){let d=I(t,r,e),s=i(d);o.set(s,n[e]=W(s,d))}return{c(){for(let t=0;t<n.length;t+=1)n[t].c();e=b()},m(t,o){for(let e=0;e<n.length;e+=1)n[e].m(t,o);s(t,e,o)},p(t,d){9&d&&(r=t[0].filter(dt).sort(st),n=T(n,d,i,1,t,r,o,e.parentNode,R,W,e,I))},d(t){for(let e=0;e<n.length;e+=1)n[e].d(t);t&&a(e)}}}function Q(t){let e,n=[],o=new Map,r=t[1];const i=t=>t[17].key;for(let e=0;e<r.length;e+=1){let d=D(t,r,e),s=i(d);o.set(s,n[e]=nt(s,d))}return{c(){for(let t=0;t<n.length;t+=1)n[t].c();e=b()},m(t,o){for(let e=0;e<n.length;e+=1)n[e].m(t,o);s(t,e,o)},p(t,d){11&d&&(r=t[1],n=T(n,d,i,1,t,r,o,e.parentNode,R,nt,e,D))},d(t){for(let e=0;e<n.length;e+=1)n[e].d(t);t&&a(e)}}}function V(t){let e,n,o=t[20].badge+"";return{c(){e=l("span"),n=c(o),m(e,"float","right"),p(e,"class","badge rounded-pill bg-secondary")},m(t,o){s(t,e,o),d(e,n)},p(t,e){1&e&&o!==(o=t[20].badge+"")&&g(n,o)},d(t){t&&a(e)}}}function W(t,e){let n,o,r,i,b,m,h,w=e[20].label+"",y=e[20].badge&&V(e);function k(){return e[13](e[20])}return{key:t,first:null,c(){n=l("li"),o=l("button"),r=c(w),i=u(),y&&y.c(),b=u(),p(o,"class","dropdown-item"),this.first=n},m(t,e){s(t,n,e),d(n,o),d(o,r),d(o,i),y&&y.m(o,null),d(n,b),m||(h=f(o,"click",k),m=!0)},p(t,n){e=t,1&n&&w!==(w=e[20].label+"")&&g(r,w),e[20].badge?y?y.p(e,n):(y=V(e),y.c(),y.m(o,null)):y&&(y.d(1),y=null)},d(t){t&&a(n),y&&y.d(),m=!1,h()}}}function X(t){let e,n,o,r=t[0].filter(rt)?.length,i=[],d=new Map,l=r&&Y(),c=t[17].label&&Z(t);function f(...e){return t[11](t[17],...e)}let p=t[0].filter(f);const g=t=>t[20].key;for(let e=0;e<p.length;e+=1){let n=J(t,p,e),o=g(n);d.set(o,i[e]=et(o,n))}return{c(){l&&l.c(),e=u(),c&&c.c(),n=u();for(let t=0;t<i.length;t+=1)i[t].c();o=b()},m(t,r){l&&l.m(t,r),s(t,e,r),c&&c.m(t,r),s(t,n,r);for(let e=0;e<i.length;e+=1)i[e].m(t,r);s(t,o,r)},p(s,a){t=s,1&a&&(r=t[0].filter(rt)?.length),r?l||(l=Y(),l.c(),l.m(e.parentNode,e)):l&&(l.d(1),l=null),t[17].label?c?c.p(t,a):(c=Z(t),c.c(),c.m(n.parentNode,n)):c&&(c.d(1),c=null),11&a&&(p=t[0].filter(f),i=T(i,a,g,1,t,p,d,o.parentNode,R,et,o,J))},d(t){l&&l.d(t),t&&a(e),c&&c.d(t),t&&a(n);for(let e=0;e<i.length;e+=1)i[e].d(t);t&&a(o)}}}function Y(t){let e;return{c(){e=l("div"),p(e,"class","dropdown-divider")},m(t,n){s(t,e,n)},d(t){t&&a(e)}}}function Z(t){let e,n,o=t[17].label+"";return{c(){e=l("div"),n=c(o),m(e,"font-weight","bold")},m(t,o){s(t,e,o),d(e,n)},p(t,e){2&e&&o!==(o=t[17].label+"")&&g(n,o)},d(t){t&&a(e)}}}function tt(t){let e,n,o=t[20].badge+"";return{c(){e=l("span"),n=c(o),m(e,"float","right"),p(e,"class","badge rounded-pill bg-secondary")},m(t,o){s(t,e,o),d(e,n)},p(t,e){3&e&&o!==(o=t[20].badge+"")&&g(n,o)},d(t){t&&a(e)}}}function et(t,e){let n,o,r,i,b,m,h,w=e[20].label+"",y=e[20].badge&&tt(e);function k(){return e[12](e[20])}return{key:t,first:null,c(){n=l("li"),o=l("button"),r=c(w),i=u(),y&&y.c(),b=u(),p(o,"class","dropdown-item"),this.first=n},m(t,e){s(t,n,e),d(n,o),d(o,r),d(o,i),y&&y.m(o,null),d(n,b),m||(h=f(o,"click",k),m=!0)},p(t,n){e=t,3&n&&w!==(w=e[20].label+"")&&g(r,w),e[20].badge?y?y.p(e,n):(y=tt(e),y.c(),y.m(o,null)):y&&(y.d(1),y=null)},d(t){t&&a(n),y&&y.d(),m=!1,h()}}}function nt(t,e){let n,o,r=e[0].filter(i)?.length;function i(...t){return e[8](e[17],...t)}let d=r&&X(e);return{key:t,first:null,c(){n=b(),d&&d.c(),o=b(),this.first=n},m(t,e){s(t,n,e),d&&d.m(t,e),s(t,o,e)},p(t,n){e=t,3&n&&(r=e[0].filter(i)?.length),r?d?d.p(e,n):(d=X(e),d.c(),d.m(o.parentNode,o)):d&&(d.d(1),d=null)},d(t){t&&a(n),d&&d.d(t),t&&a(o)}}}function ot(e){let n,o,r,i,c,b,g,m=e[0]?.length&&q(e);return{c(){n=l("div"),o=l("button"),r=l("slot"),r.textContent="dropdown",c=u(),m&&m.c(),this.c=t,p(r,"name","dropdownbutton"),p(o,"part","dropdownbutton"),p(o,"class","btn btn-secondary dropdown-toggle"),p(o,"type","button"),p(o,"data-bs-toggle","dropdown"),p(o,"aria-expanded",i=e[2]?"true":"false"),p(n,"class","dropdown")},m(t,i){s(t,n,i),d(n,o),d(o,r),d(n,c),m&&m.m(n,null),b||(g=f(o,"click",e[9]),b=!0)},p(t,[e]){4&e&&i!==(i=t[2]?"true":"false")&&p(o,"aria-expanded",i),t[0]?.length?m?m.p(t,e):(m=q(t),m.c(),m.m(n,null)):m&&(m.d(1),m=null)},i:t,o:t,d(t){t&&a(n),m&&m.d(),b=!1,g()}}}"function"==typeof HTMLElement&&(F=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(e).filter(r);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,n){this[t]=n}disconnectedCallback(){o(this.$$.on_disconnect)}$destroy(){!function(t,e){const n=t.$$;null!==n.fragment&&(o(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}(this,1),this.$destroy=t}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});const rt=t=>!t.group,it=t=>!t.group,dt=t=>t.group,st=(t,e)=>t.key===e.key?1:-1;function at(t,e,n){let{id:o}=e,{show:r}=e,{list:i}=e,{direction:d}=e,{groups:s}=e,a=!1;const l=k(),c=$();function u(t,e){c(t,e),l.dispatchEvent&&l.dispatchEvent(new CustomEvent(t,{detail:e}))}function b(t){u("clickOnDropdownList",i.find((e=>e.key===t)))}function f(){n(2,a=!a),u("dropDownSwitch",{opened:a})}return t.$$set=t=>{"id"in t&&n(5,o=t.id),"show"in t&&n(6,r=t.show),"list"in t&&n(0,i=t.list),"direction"in t&&n(7,d=t.direction),"groups"in t&&n(1,s=t.groups)},t.$$.update=()=>{if(227&t.$$.dirty){if(o||n(5,o=null),s)try{n(1,s=JSON.parse(s))}catch(t){}else n(1,s=null);if(d||n(7,d="bottom"),i)try{n(0,i=JSON.parse(i))}catch(t){}else n(0,i=[]);n(6,r="no"===r||void 0===r?"no":"yes"),n(2,a="yes"===r)}},[i,s,a,b,f,o,r,d,(t,e)=>e.group&&e.group===t.key,()=>f(),t=>b(t.key),(t,e)=>e.group&&e.group===t.key,t=>b(t.key),t=>b(t.key)]}class lt extends F{constructor(t){super(),this.shadowRoot.innerHTML='<style>@charset "UTF-8";@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css");:host{--bs-blue:#0d6efd;--bs-indigo:#6610f2;--bs-purple:#6f42c1;--bs-pink:#d63384;--bs-red:#dc3545;--bs-orange:#fd7e14;--bs-yellow:#ffc107;--bs-green:#198754;--bs-teal:#20c997;--bs-cyan:#0dcaf0;--bs-white:#fff;--bs-gray:#6c757d;--bs-gray-dark:#343a40;--bs-gray-100:#f8f9fa;--bs-gray-200:#e9ecef;--bs-gray-300:#dee2e6;--bs-gray-400:#ced4da;--bs-gray-500:#adb5bd;--bs-gray-600:#6c757d;--bs-gray-700:#495057;--bs-gray-800:#343a40;--bs-gray-900:#212529;--bs-primary:#07689f;--bs-secondary:#c9d6df;--bs-success:#11d3bc;--bs-info:#a2d5f2;--bs-warning:#ff7e67;--bs-danger:#f67280;--bs-light:#fafafa;--bs-dark:#4e4e4e;--bs-primary-rgb:7, 104, 159;--bs-secondary-rgb:201, 214, 223;--bs-success-rgb:17, 211, 188;--bs-info-rgb:162, 213, 242;--bs-warning-rgb:255, 126, 103;--bs-danger-rgb:246, 114, 128;--bs-light-rgb:250, 250, 250;--bs-dark-rgb:78, 78, 78;--bs-white-rgb:255, 255, 255;--bs-black-rgb:0, 0, 0;--bs-body-color-rgb:33, 37, 41;--bs-body-bg-rgb:255, 255, 255;--bs-font-sans-serif:system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--bs-font-monospace:SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--bs-gradient:linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));--bs-body-font-family:var(--bs-font-sans-serif);--bs-body-font-size:1rem;--bs-body-font-weight:400;--bs-body-line-height:1.5;--bs-body-color:#212529;--bs-body-bg:#fff}*,*::before,*::after{box-sizing:border-box}@media(prefers-reduced-motion: no-preference){:host{scroll-behavior:smooth}}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}ul{padding-left:2rem}ul{margin-top:0;margin-bottom:1rem}button{border-radius:0}button:focus:not(:focus-visible){outline:0}button{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button{text-transform:none}button,[type=button]{-webkit-appearance:button}button:not(:disabled),[type=button]:not(:disabled){cursor:pointer}::-moz-focus-inner{padding:0;border-style:none}@media(min-width: 1200px){}::-webkit-datetime-edit-fields-wrapper,::-webkit-datetime-edit-text,::-webkit-datetime-edit-minute,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-year-field{padding:0}::-webkit-inner-spin-button{height:auto}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-color-swatch-wrapper{padding:0}::file-selector-button{font:inherit}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}.btn{display:inline-block;font-weight:400;line-height:1.5;color:#212529;text-align:center;text-decoration:none;vertical-align:middle;cursor:pointer;user-select:none;background-color:transparent;border:1px solid transparent;padding:0.375rem 0.75rem;font-size:1rem;border-radius:0.25rem;transition:color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out}@media(prefers-reduced-motion: reduce){.btn{transition:none}}.btn:hover{color:#212529}.btn:focus{outline:0;box-shadow:0 0 0 0.25rem rgba(7, 104, 159, 0.25)}.btn:disabled{pointer-events:none;opacity:0.65}.btn-secondary{color:#000;background-color:#c9d6df;border-color:#c9d6df}.btn-secondary:hover{color:#000;background-color:#d1dce4;border-color:#cedae2}.btn-secondary:focus{color:#000;background-color:#d1dce4;border-color:#cedae2;box-shadow:0 0 0 0.25rem rgba(171, 182, 190, 0.5)}.btn-secondary:active{color:#000;background-color:#d4dee5;border-color:#cedae2}.btn-secondary:active:focus{box-shadow:0 0 0 0.25rem rgba(171, 182, 190, 0.5)}.btn-secondary:disabled{color:#000;background-color:#c9d6df;border-color:#c9d6df}.dropdown{position:relative}.dropdown-toggle{white-space:nowrap}.dropdown-toggle::after{display:inline-block;margin-left:0.255em;vertical-align:0.255em;content:"";border-top:0.3em solid;border-right:0.3em solid transparent;border-bottom:0;border-left:0.3em solid transparent}.dropdown-toggle:empty::after{margin-left:0}.dropdown-menu{position:absolute;z-index:1000;display:none;min-width:10rem;padding:0.5rem 0;margin:0;font-size:1rem;color:#212529;text-align:left;list-style:none;background-color:#fff;background-clip:padding-box;border:1px solid rgba(0, 0, 0, 0.15);border-radius:0.25rem}@media(min-width: 576px){}@media(min-width: 768px){}@media(min-width: 992px){}@media(min-width: 1200px){}@media(min-width: 1400px){}.dropdown-divider{height:0;margin:0.5rem 0;overflow:hidden;border-top:1px solid rgba(0, 0, 0, 0.15)}.dropdown-item{display:block;width:100%;padding:0.25rem 1rem;clear:both;font-weight:400;color:#212529;text-align:inherit;text-decoration:none;white-space:nowrap;background-color:transparent;border:0}.dropdown-item:hover,.dropdown-item:focus{color:#1e2125;background-color:#e9ecef}.dropdown-item:active{color:#fff;text-decoration:none;background-color:#07689f}.dropdown-item:disabled{color:#adb5bd;pointer-events:none;background-color:transparent}.dropdown-menu.show{display:block}.badge{display:inline-block;padding:0.35em 0.65em;font-size:0.75em;font-weight:700;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:0.25rem}.badge:empty{display:none}.bg-secondary{--bs-bg-opacity:1;background-color:rgba(var(--bs-secondary-rgb), var(--bs-bg-opacity)) !important}.rounded-pill{border-radius:50rem !important}@media(min-width: 576px){}@media(min-width: 768px){}@media(min-width: 992px){}@media(min-width: 1200px){}@media(min-width: 1400px){}@media(min-width: 1200px){}@media print{}:host{font-family:"Roboto", sans-serif}</style>',U(this,{target:this.shadowRoot,props:h(this.attributes),customElement:!0},at,ot,i,{id:5,show:6,list:0,direction:7,groups:1},null),t&&(t.target&&s(t.target,this,t.anchor),t.props&&(this.$set(t.props),L()))}static get observedAttributes(){return["id","show","list","direction","groups"]}get id(){return this.$$.ctx[5]}set id(t){this.$$set({id:t}),L()}get show(){return this.$$.ctx[6]}set show(t){this.$$set({show:t}),L()}get list(){return this.$$.ctx[0]}set list(t){this.$$set({list:t}),L()}get direction(){return this.$$.ctx[7]}set direction(t){this.$$set({direction:t}),L()}get groups(){return this.$$.ctx[1]}set groups(t){this.$$set({groups:t}),L()}}return customElements.define("bootstrapdropdown-component",lt),lt}(); //# sourceMappingURL=bootstrapdropdown.js.map