Skip to content

Commit

Permalink
update dependencies, bump
Browse files Browse the repository at this point in the history
  • Loading branch information
thednp committed Nov 23, 2024
1 parent e1f7653 commit 9c530d7
Show file tree
Hide file tree
Showing 64 changed files with 285 additions and 292 deletions.
2 changes: 1 addition & 1 deletion dist/bootstrap-native.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/bootstrap-native.cjs.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/bootstrap-native.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/bootstrap-native.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/bootstrap-native.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ const zt = /* @__PURE__ */ new Map(), Ln = (e, t) => {
On,
c
);
}, O = "fade", p = "show", Se = "data-bs-dismiss", _e = "alert", Nn = "Alert", nt = (e) => h(e, "disabled") || U(e, "disabled") === "true", li = "5.1.0", di = li;
}, O = "fade", p = "show", Se = "data-bs-dismiss", _e = "alert", Nn = "Alert", nt = (e) => h(e, "disabled") || U(e, "disabled") === "true", li = "5.1.1", di = li;
class st {
constructor(t, s) {
let n;
Expand Down Expand Up @@ -586,7 +586,7 @@ class qn extends st {
}
const Mi = (e) => e != null && typeof e == "object" || !1, Bi = (e) => Mi(e) && typeof e.nodeType == "number" && [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11].some(
(t) => e.nodeType === t
) || !1, Ws = (e) => Bi(e) && e.nodeType === 1 || !1, Ri = (e) => typeof e == "function" || !1, Wi = "1.0.2", Fs = "PositionObserver Error";
) || !1, Ws = (e) => Bi(e) && e.nodeType === 1 || !1, Ri = (e) => typeof e == "function" || !1, Wi = "1.0.4", Fs = "PositionObserver Error";
class fs {
entries;
static version = Wi;
Expand Down
2 changes: 1 addition & 1 deletion dist/bootstrap-native.mjs.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/components/alert.cjs
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
"use strict";const s=require("./base-component-4K-5H-MO.js"),u=require("./fadeClass-Co6nOzNJ.js"),r=require("./showClass-D_Ms1FgG.js"),g=require("./dataBsDismiss-CMHF7If_.js"),h=require("./isDisabled-BFPGF6I2.js"),o="alert",a="Alert",p=`.${o}`,C=`[${g.dataBsDismiss}="${o}"]`,v=e=>s.Xn(e,a),E=e=>new d(e),c=s.po(`close.bs.${o}`),b=s.po(`closed.bs.${o}`),l=e=>{const{element:t}=e;s.G(t,b),e._toggleEventListeners(),e.dispose(),t.remove()};class d extends s.BaseComponent{static selector=p;static init=E;static getInstance=v;dismiss;constructor(t){super(t),this.dismiss=s.Ho(C,this.element),this._toggleEventListeners(!0)}get name(){return a}close=t=>{const{element:n,dismiss:i}=this;!n||!s.Gn(n,r.showClass)||t&&i&&h.isDisabled(i)||(s.G(n,c),!c.defaultPrevented&&(s.qn(n,r.showClass),s.Gn(n,u.fadeClass)?s.no(n,()=>l(this)):l(this)))};_toggleEventListeners=t=>{const n=t?s.E:s.r,{dismiss:i,close:m}=this;i&&n(i,s.gt,m)};dispose(){this._toggleEventListeners(),super.dispose()}}module.exports=d;
"use strict";const s=require("./base-component-DMuoZh8G.js"),u=require("./fadeClass-Co6nOzNJ.js"),r=require("./showClass-D_Ms1FgG.js"),g=require("./dataBsDismiss-CMHF7If_.js"),h=require("./isDisabled-BhBg0EpT.js"),o="alert",a="Alert",p=`.${o}`,C=`[${g.dataBsDismiss}="${o}"]`,v=e=>s.Xn(e,a),E=e=>new d(e),c=s.po(`close.bs.${o}`),b=s.po(`closed.bs.${o}`),l=e=>{const{element:t}=e;s.G(t,b),e._toggleEventListeners(),e.dispose(),t.remove()};class d extends s.BaseComponent{static selector=p;static init=E;static getInstance=v;dismiss;constructor(t){super(t),this.dismiss=s.Ho(C,this.element),this._toggleEventListeners(!0)}get name(){return a}close=t=>{const{element:n,dismiss:i}=this;!n||!s.Gn(n,r.showClass)||t&&i&&h.isDisabled(i)||(s.G(n,c),!c.defaultPrevented&&(s.qn(n,r.showClass),s.Gn(n,u.fadeClass)?s.no(n,()=>l(this)):l(this)))};_toggleEventListeners=t=>{const n=t?s.E:s.r,{dismiss:i,close:m}=this;i&&n(i,s.gt,m)};dispose(){this._toggleEventListeners(),super.dispose()}}module.exports=d;
//# sourceMappingURL=alert.cjs.map
4 changes: 2 additions & 2 deletions dist/components/alert.mjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { B as g, H as f, G as i, a as c, q as u, n as h, X as v, p as m, E, r as A, g as C } from "./base-component-LaJIjMhh.mjs";
import { B as g, H as f, G as i, a as c, q as u, n as h, X as v, p as m, E, r as A, g as C } from "./base-component--xj9oMJ8.mjs";
import { f as $ } from "./fadeClass-CLIYI_zn.mjs";
import { s as r } from "./showClass-C8hdJfjQ.mjs";
import { d as b } from "./dataBsDismiss-DdNPQYa-.mjs";
import { i as L } from "./isDisabled-DmmaKYeZ.mjs";
import { i as L } from "./isDisabled-Dh1obUSx.mjs";
const o = "alert", d = "Alert", _ = `.${o}`, B = `[${b}="${o}"]`, D = (s) => v(s, d), G = (s) => new S(s), a = m(
`close.bs.${o}`
), I = m(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ const m = /* @__PURE__ */ new Map(), oe = (e, t) => {
F,
l
);
}, ce = "5.1.0", ue = ce;
}, ce = "5.1.1", ue = ce;
class pt {
constructor(t, s) {
let n;
Expand Down Expand Up @@ -327,4 +327,4 @@ export {
Ne as y,
he as z
};
//# sourceMappingURL=base-component-LaJIjMhh.mjs.map
//# sourceMappingURL=base-component--xj9oMJ8.mjs.map

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/components/button.cjs
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
"use strict";const t=require("./base-component-4K-5H-MO.js"),i=require("./activeClass-CxJYQAGN.js"),r=require("./dataBsToggle-Dj-Ng54N.js"),l=require("./isDisabled-BFPGF6I2.js"),u="button",c="Button",g=`[${r.dataBsToggle}="${u}"]`,v=n=>t.Xn(n,c),b=n=>new a(n);class a extends t.BaseComponent{static selector=g;static init=b;static getInstance=v;constructor(s){super(s);const{element:e}=this;this.isActive=t.Gn(e,i.activeClass),t.Wn(e,t.Ie,String(!!this.isActive)),this._toggleEventListeners(!0)}get name(){return c}toggle=s=>{s&&s.preventDefault();const{element:e,isActive:o}=this;if(l.isDisabled(e))return;(o?t.qn:t.Kn)(e,i.activeClass),t.Wn(e,t.Ie,o?"false":"true"),this.isActive=t.Gn(e,i.activeClass)};_toggleEventListeners=s=>{(s?t.E:t.r)(this.element,t.gt,this.toggle)};dispose(){this._toggleEventListeners(),super.dispose()}}module.exports=a;
"use strict";const t=require("./base-component-DMuoZh8G.js"),i=require("./activeClass-CxJYQAGN.js"),r=require("./dataBsToggle-Dj-Ng54N.js"),l=require("./isDisabled-BhBg0EpT.js"),u="button",c="Button",g=`[${r.dataBsToggle}="${u}"]`,v=n=>t.Xn(n,c),b=n=>new a(n);class a extends t.BaseComponent{static selector=g;static init=b;static getInstance=v;constructor(s){super(s);const{element:e}=this;this.isActive=t.Gn(e,i.activeClass),t.Wn(e,t.Ie,String(!!this.isActive)),this._toggleEventListeners(!0)}get name(){return c}toggle=s=>{s&&s.preventDefault();const{element:e,isActive:o}=this;if(l.isDisabled(e))return;(o?t.qn:t.Kn)(e,i.activeClass),t.Wn(e,t.Ie,o?"false":"true"),this.isActive=t.Gn(e,i.activeClass)};_toggleEventListeners=s=>{(s?t.E:t.r)(this.element,t.gt,this.toggle)};dispose(){this._toggleEventListeners(),super.dispose()}}module.exports=a;
//# sourceMappingURL=button.cjs.map
4 changes: 2 additions & 2 deletions dist/components/button.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { B as g, G as i, W as a, I as c, g as l, X as u, q as m, K as p, E as f, r as h } from "./base-component-LaJIjMhh.mjs";
import { B as g, G as i, W as a, I as c, g as l, X as u, q as m, K as p, E as f, r as h } from "./base-component--xj9oMJ8.mjs";
import { a as n } from "./activeClass-iqaD75Su.mjs";
import { d as v } from "./dataBsToggle-B84TS15h.mjs";
import { i as b } from "./isDisabled-DmmaKYeZ.mjs";
import { i as b } from "./isDisabled-Dh1obUSx.mjs";
const d = "button", r = "Button", B = `[${v}="${d}"]`, I = (e) => u(e, r), A = (e) => new C(e);
class C extends g {
static selector = B;
Expand Down
2 changes: 1 addition & 1 deletion dist/components/carousel.cjs
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
"use strict";const t=require("./base-component-4K-5H-MO.js"),f=require("./activeClass-CxJYQAGN.js"),T=require("./getTargetElement-gM3rpCRn.js"),B=require("./isDisabled-BFPGF6I2.js"),x="carousel",X="Carousel",b=`[data-bs-ride="${x}"]`,h=`${x}-item`,y="data-bs-slide-to",m="data-bs-slide",p="paused",q={pause:"hover",keyboard:!1,touch:!0,interval:5e3},g=n=>t.Xn(n,X),R=n=>new L(n);let $=0,C=0,E=0;const H=t.po(`slide.bs.${x}`),A=t.po(`slid.bs.${x}`),D=n=>{const{index:i,direction:e,element:s,slides:a,options:c}=n;if(n.isAnimating){const r=K(n),o=e==="left"?"next":"prev",d=e==="left"?"start":"end";t.Kn(a[i],f.activeClass),t.qn(a[i],`${h}-${o}`),t.qn(a[i],`${h}-${d}`),t.qn(a[r],f.activeClass),t.qn(a[r],`${h}-${d}`),t.G(s,A),t.bo.clear(s,m),n.cycle&&!t.d(s).hidden&&c.interval&&!n.isPaused&&n.cycle()}};function w(){const n=g(this);n&&!n.isPaused&&!t.bo.get(this,p)&&t.Kn(this,p)}function N(){const n=g(this);n&&n.isPaused&&!t.bo.get(this,p)&&n.cycle()}function O(n){n.preventDefault();const i=t.Se(this,b)||T.getTargetElement(this),e=i&&g(i);if(B.isDisabled(this)||!e||e.isAnimating)return;const s=+(t.j(this,y)||0);this&&!t.Gn(this,f.activeClass)&&!Number.isNaN(s)&&e.to(s)}function k(n){n.preventDefault();const i=t.Se(this,b)||T.getTargetElement(this),e=i&&g(i);if(B.isDisabled(this)||!e||e.isAnimating)return;const s=t.j(this,m);s==="next"?e.next():s==="prev"&&e.prev()}const _=({code:n,target:i})=>{const e=t.d(i),[s]=[...t.ue(b,e)].filter(d=>t.To(d)),a=g(s);if(!a||a.isAnimating||/textarea|input|select/i.test(i.nodeName))return;const c=t.Bo(s),r=c?t.on:t.sn,o=c?t.sn:t.on;n===o?a.prev():n===r&&a.next()};function S(n){const{target:i}=n,e=g(this);e&&e.isTouch&&(e.indicator&&!e.indicator.contains(i)||!e.controls.includes(i))&&(n.stopImmediatePropagation(),n.stopPropagation(),n.preventDefault())}function j(n){const{target:i}=n,e=g(this);if(!e||e.isAnimating||e.isTouch)return;const{controls:s,indicators:a}=e;[...s,...a].every(c=>c===i||c.contains(i))||($=n.pageX,this.contains(i)&&(e.isTouch=!0,G(e,!0)))}const M=n=>{C=n.pageX},U=n=>{const{target:i}=n,e=t.d(i),s=[...t.ue(b,e)].map(o=>g(o)).find(o=>o.isTouch);if(!s)return;const{element:a,index:c}=s,r=t.Bo(a);E=n.pageX,s.isTouch=!1,G(s),!e.getSelection()?.toString().length&&a.contains(i)&&Math.abs($-E)>120&&(C<$?s.to(c+(r?-1:1)):C>$&&s.to(c+(r?1:-1))),$=0,C=0,E=0},I=(n,i)=>{const{indicators:e}=n;[...e].forEach(s=>t.qn(s,f.activeClass)),n.indicators[i]&&t.Kn(e[i],f.activeClass)},G=(n,i)=>{const{element:e}=n,s=i?t.E:t.r;s(t.d(e),t.Ot,M,t.go),s(t.d(e),t.xt,U,t.go)},K=n=>{const{slides:i,element:e}=n,s=t.Ho(`.${h}.${f.activeClass}`,e);return s?[...i].indexOf(s):-1};class L extends t.BaseComponent{static selector=b;static init=R;static getInstance=g;constructor(i,e){super(i,e);const{element:s}=this;this.direction=t.Bo(s)?"right":"left",this.isTouch=!1,this.slides=t.Ro(h,s);const{slides:a}=this;if(a.length<2)return;const c=K(this),r=[...a].find(u=>t.ve(u,`.${h}-next`));this.index=c;const o=t.d(s);this.controls=[...t.ue(`[${m}]`,s),...t.ue(`[${m}][${T.dataBsTarget}="#${s.id}"]`,o)].filter((u,v,l)=>v===l.indexOf(u)),this.indicator=t.Ho(`.${x}-indicators`,s),this.indicators=[...this.indicator?t.ue(`[${y}]`,this.indicator):[],...t.ue(`[${y}][${T.dataBsTarget}="#${s.id}"]`,o)].filter((u,v,l)=>v===l.indexOf(u));const{options:d}=this;this.options.interval=d.interval===!0?q.interval:d.interval,r?this.index=[...a].indexOf(r):c<0&&(this.index=0,t.Kn(a[0],f.activeClass),this.indicators.length&&I(this,0)),this.indicators.length&&I(this,this.index),this._toggleEventListeners(!0),d.interval&&this.cycle()}get name(){return X}get defaults(){return q}get isPaused(){return t.Gn(this.element,p)}get isAnimating(){return t.Ho(`.${h}-next,.${h}-prev`,this.element)!==null}cycle(){const{element:i,options:e,isPaused:s,index:a}=this;t.bo.clear(i,x),s&&(t.bo.clear(i,p),t.qn(i,p)),t.bo.set(i,()=>{this.element&&!this.isPaused&&!this.isTouch&&t.To(i)&&this.to(a+1)},e.interval,x)}pause(){const{element:i,options:e}=this;this.isPaused||!e.interval||(t.Kn(i,p),t.bo.set(i,()=>{},1,p))}next(){this.isAnimating||this.to(this.index+1)}prev(){this.isAnimating||this.to(this.index-1)}to(i){const{element:e,slides:s,options:a}=this,c=K(this),r=t.Bo(e);let o=i;if(this.isAnimating||c===o||t.bo.get(e,m))return;c<o||c===0&&o===s.length-1?this.direction=r?"right":"left":(c>o||c===s.length-1&&o===0)&&(this.direction=r?"left":"right");const{direction:d}=this;o<0?o=s.length-1:o>=s.length&&(o=0);const u=d==="left"?"next":"prev",v=d==="left"?"start":"end",l={relatedTarget:s[o],from:c,to:o,direction:d};t.C(H,l),t.C(A,l),t.G(e,H),!H.defaultPrevented&&(this.index=o,I(this,o),t.ae(s[o])&&t.Gn(e,"slide")?t.bo.set(e,()=>{t.Kn(s[o],`${h}-${u}`),t.mo(s[o]),t.Kn(s[o],`${h}-${v}`),t.Kn(s[c],`${h}-${v}`),t.no(s[o],()=>this.slides&&this.slides.length&&D(this))},0,m):(t.Kn(s[o],f.activeClass),t.qn(s[c],f.activeClass),t.bo.set(e,()=>{t.bo.clear(e,m),e&&a.interval&&!this.isPaused&&this.cycle(),t.G(e,A)},0,m)))}_toggleEventListeners=i=>{const{element:e,options:s,slides:a,controls:c,indicators:r}=this,{touch:o,pause:d,interval:u,keyboard:v}=s,l=i?t.E:t.r;d&&u&&(l(e,t.ht,w),l(e,t.yt,N)),o&&a.length>2&&(l(e,t.Dt,j,t.go),l(e,t.Wt,S,{passive:!1}),l(e,t.Re,S,{passive:!1})),c.length&&c.forEach(P=>{l(P,t.gt,k)}),r.length&&r.forEach(P=>{l(P,t.gt,O)}),v&&l(t.d(e),t.lt,_)};dispose(){const{isAnimating:i}=this,e={...this,isAnimating:i};this._toggleEventListeners(),super.dispose(),e.isAnimating&&t.no(e.slides[e.index],()=>{D(e)})}}module.exports=L;
"use strict";const t=require("./base-component-DMuoZh8G.js"),f=require("./activeClass-CxJYQAGN.js"),T=require("./getTargetElement-DananmHP.js"),B=require("./isDisabled-BhBg0EpT.js"),x="carousel",X="Carousel",b=`[data-bs-ride="${x}"]`,h=`${x}-item`,y="data-bs-slide-to",m="data-bs-slide",p="paused",q={pause:"hover",keyboard:!1,touch:!0,interval:5e3},g=n=>t.Xn(n,X),R=n=>new L(n);let $=0,C=0,E=0;const H=t.po(`slide.bs.${x}`),A=t.po(`slid.bs.${x}`),D=n=>{const{index:i,direction:e,element:s,slides:a,options:c}=n;if(n.isAnimating){const r=K(n),o=e==="left"?"next":"prev",d=e==="left"?"start":"end";t.Kn(a[i],f.activeClass),t.qn(a[i],`${h}-${o}`),t.qn(a[i],`${h}-${d}`),t.qn(a[r],f.activeClass),t.qn(a[r],`${h}-${d}`),t.G(s,A),t.bo.clear(s,m),n.cycle&&!t.d(s).hidden&&c.interval&&!n.isPaused&&n.cycle()}};function w(){const n=g(this);n&&!n.isPaused&&!t.bo.get(this,p)&&t.Kn(this,p)}function N(){const n=g(this);n&&n.isPaused&&!t.bo.get(this,p)&&n.cycle()}function O(n){n.preventDefault();const i=t.Se(this,b)||T.getTargetElement(this),e=i&&g(i);if(B.isDisabled(this)||!e||e.isAnimating)return;const s=+(t.j(this,y)||0);this&&!t.Gn(this,f.activeClass)&&!Number.isNaN(s)&&e.to(s)}function k(n){n.preventDefault();const i=t.Se(this,b)||T.getTargetElement(this),e=i&&g(i);if(B.isDisabled(this)||!e||e.isAnimating)return;const s=t.j(this,m);s==="next"?e.next():s==="prev"&&e.prev()}const _=({code:n,target:i})=>{const e=t.d(i),[s]=[...t.ue(b,e)].filter(d=>t.To(d)),a=g(s);if(!a||a.isAnimating||/textarea|input|select/i.test(i.nodeName))return;const c=t.Bo(s),r=c?t.on:t.sn,o=c?t.sn:t.on;n===o?a.prev():n===r&&a.next()};function S(n){const{target:i}=n,e=g(this);e&&e.isTouch&&(e.indicator&&!e.indicator.contains(i)||!e.controls.includes(i))&&(n.stopImmediatePropagation(),n.stopPropagation(),n.preventDefault())}function j(n){const{target:i}=n,e=g(this);if(!e||e.isAnimating||e.isTouch)return;const{controls:s,indicators:a}=e;[...s,...a].every(c=>c===i||c.contains(i))||($=n.pageX,this.contains(i)&&(e.isTouch=!0,G(e,!0)))}const M=n=>{C=n.pageX},U=n=>{const{target:i}=n,e=t.d(i),s=[...t.ue(b,e)].map(o=>g(o)).find(o=>o.isTouch);if(!s)return;const{element:a,index:c}=s,r=t.Bo(a);E=n.pageX,s.isTouch=!1,G(s),!e.getSelection()?.toString().length&&a.contains(i)&&Math.abs($-E)>120&&(C<$?s.to(c+(r?-1:1)):C>$&&s.to(c+(r?1:-1))),$=0,C=0,E=0},I=(n,i)=>{const{indicators:e}=n;[...e].forEach(s=>t.qn(s,f.activeClass)),n.indicators[i]&&t.Kn(e[i],f.activeClass)},G=(n,i)=>{const{element:e}=n,s=i?t.E:t.r;s(t.d(e),t.Ot,M,t.go),s(t.d(e),t.xt,U,t.go)},K=n=>{const{slides:i,element:e}=n,s=t.Ho(`.${h}.${f.activeClass}`,e);return s?[...i].indexOf(s):-1};class L extends t.BaseComponent{static selector=b;static init=R;static getInstance=g;constructor(i,e){super(i,e);const{element:s}=this;this.direction=t.Bo(s)?"right":"left",this.isTouch=!1,this.slides=t.Ro(h,s);const{slides:a}=this;if(a.length<2)return;const c=K(this),r=[...a].find(u=>t.ve(u,`.${h}-next`));this.index=c;const o=t.d(s);this.controls=[...t.ue(`[${m}]`,s),...t.ue(`[${m}][${T.dataBsTarget}="#${s.id}"]`,o)].filter((u,v,l)=>v===l.indexOf(u)),this.indicator=t.Ho(`.${x}-indicators`,s),this.indicators=[...this.indicator?t.ue(`[${y}]`,this.indicator):[],...t.ue(`[${y}][${T.dataBsTarget}="#${s.id}"]`,o)].filter((u,v,l)=>v===l.indexOf(u));const{options:d}=this;this.options.interval=d.interval===!0?q.interval:d.interval,r?this.index=[...a].indexOf(r):c<0&&(this.index=0,t.Kn(a[0],f.activeClass),this.indicators.length&&I(this,0)),this.indicators.length&&I(this,this.index),this._toggleEventListeners(!0),d.interval&&this.cycle()}get name(){return X}get defaults(){return q}get isPaused(){return t.Gn(this.element,p)}get isAnimating(){return t.Ho(`.${h}-next,.${h}-prev`,this.element)!==null}cycle(){const{element:i,options:e,isPaused:s,index:a}=this;t.bo.clear(i,x),s&&(t.bo.clear(i,p),t.qn(i,p)),t.bo.set(i,()=>{this.element&&!this.isPaused&&!this.isTouch&&t.To(i)&&this.to(a+1)},e.interval,x)}pause(){const{element:i,options:e}=this;this.isPaused||!e.interval||(t.Kn(i,p),t.bo.set(i,()=>{},1,p))}next(){this.isAnimating||this.to(this.index+1)}prev(){this.isAnimating||this.to(this.index-1)}to(i){const{element:e,slides:s,options:a}=this,c=K(this),r=t.Bo(e);let o=i;if(this.isAnimating||c===o||t.bo.get(e,m))return;c<o||c===0&&o===s.length-1?this.direction=r?"right":"left":(c>o||c===s.length-1&&o===0)&&(this.direction=r?"left":"right");const{direction:d}=this;o<0?o=s.length-1:o>=s.length&&(o=0);const u=d==="left"?"next":"prev",v=d==="left"?"start":"end",l={relatedTarget:s[o],from:c,to:o,direction:d};t.C(H,l),t.C(A,l),t.G(e,H),!H.defaultPrevented&&(this.index=o,I(this,o),t.ae(s[o])&&t.Gn(e,"slide")?t.bo.set(e,()=>{t.Kn(s[o],`${h}-${u}`),t.mo(s[o]),t.Kn(s[o],`${h}-${v}`),t.Kn(s[c],`${h}-${v}`),t.no(s[o],()=>this.slides&&this.slides.length&&D(this))},0,m):(t.Kn(s[o],f.activeClass),t.qn(s[c],f.activeClass),t.bo.set(e,()=>{t.bo.clear(e,m),e&&a.interval&&!this.isPaused&&this.cycle(),t.G(e,A)},0,m)))}_toggleEventListeners=i=>{const{element:e,options:s,slides:a,controls:c,indicators:r}=this,{touch:o,pause:d,interval:u,keyboard:v}=s,l=i?t.E:t.r;d&&u&&(l(e,t.ht,w),l(e,t.yt,N)),o&&a.length>2&&(l(e,t.Dt,j,t.go),l(e,t.Wt,S,{passive:!1}),l(e,t.Re,S,{passive:!1})),c.length&&c.forEach(P=>{l(P,t.gt,k)}),r.length&&r.forEach(P=>{l(P,t.gt,O)}),v&&l(t.d(e),t.lt,_)};dispose(){const{isAnimating:i}=this,e={...this,isAnimating:i};this._toggleEventListeners(),super.dispose(),e.isAnimating&&t.no(e.slides[e.index],()=>{D(e)})}}module.exports=L;
//# sourceMappingURL=carousel.cjs.map
6 changes: 3 additions & 3 deletions dist/components/carousel.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { B as it, b as H, R as nt, v as ot, d as T, u as y, H as X, K as u, G as w, c as d, q as $, T as z, C as O, a as K, e as at, m as rt, n as k, X as ct, p as F, E as J, r as Q, h as lt, y as dt, f as R, D as ht, i as ft, j as ut, g as G, l as gt, S as V, k as Y, O as mt, x as pt, s as _, o as j } from "./base-component-LaJIjMhh.mjs";
import { B as it, b as H, R as nt, v as ot, d as T, u as y, H as X, K as u, G as w, c as d, q as $, T as z, C as O, a as K, e as at, m as rt, n as k, X as ct, p as F, E as J, r as Q, h as lt, y as dt, f as R, D as ht, i as ft, j as ut, g as G, l as gt, S as V, k as Y, O as mt, x as pt, s as _, o as j } from "./base-component--xj9oMJ8.mjs";
import { a as g } from "./activeClass-iqaD75Su.mjs";
import { d as q, g as Z } from "./getTargetElement-D4ALSKV7.mjs";
import { i as tt } from "./isDisabled-DmmaKYeZ.mjs";
import { d as q, g as Z } from "./getTargetElement-B-Gw6dom.mjs";
import { i as tt } from "./isDisabled-Dh1obUSx.mjs";
const P = "carousel", et = "Carousel", I = `[data-bs-ride="${P}"]`, h = `${P}-item`, B = "data-bs-slide-to", v = "data-bs-slide", x = "paused", M = {
pause: "hover",
keyboard: !1,
Expand Down
Loading

0 comments on commit 9c530d7

Please sign in to comment.