favesalon-embed 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/custom-elements/index.d.ts +12 -0
- package/dist/{cjs/_commonjsHelpers-5cfcba41.js → favesalon-embed/_commonjsHelpers-a4f66ccd.js} +14 -6
- package/dist/{cjs/global-9073d10e.js → favesalon-embed/app-globals-15861a7f.js} +15 -8
- package/dist/{esm/global-e1089ffd.js → favesalon-embed/app-globals-270fe240.js} +16 -7
- package/dist/favesalon-embed/app-globals-437cc3f3.js +712 -0
- package/dist/favesalon-embed/app-globals-b8b0fc7a.js +712 -0
- package/dist/favesalon-embed/chat-button.entry.js +56 -0
- package/dist/favesalon-embed/chat-form.entry.js +39 -0
- package/dist/favesalon-embed/chat-messages.entry.js +51 -0
- package/dist/favesalon-embed/css-shim-b7d3d95f.js +4 -0
- package/dist/favesalon-embed/dom-64053c71.js +73 -0
- package/dist/favesalon-embed/favesalon-embed.css +2433 -4
- package/dist/favesalon-embed/favesalon-embed.esm.js +148 -1
- package/dist/{collection/components/google-map/index.js → favesalon-embed/google-map.entry.js} +12 -54
- package/dist/{esm/index-80523fec.js → favesalon-embed/index-00b83e1c.js} +425 -15
- package/dist/favesalon-embed/index-888e99e3.js +3371 -0
- package/dist/favesalon-embed/index-9ad82b12.js +3371 -0
- package/dist/favesalon-embed/index-aa906326.js +3371 -0
- package/dist/favesalon-embed/index-b97af793.js +3371 -0
- package/dist/favesalon-embed/index.esm.js +1 -0
- package/dist/favesalon-embed/relativeTime-268e64b0.js +7 -0
- package/dist/{esm → favesalon-embed}/salon-booking-modal.entry.js +1 -1
- package/dist/{esm → favesalon-embed}/salon-booking.entry.js +3 -3
- package/dist/{esm → favesalon-embed}/salon-gift-card-modal.entry.js +1 -1
- package/dist/{esm → favesalon-embed}/salon-gift-card.entry.js +3 -3
- package/dist/favesalon-embed/salon-info.entry.js +29 -0
- package/dist/{esm → favesalon-embed}/salon-latest-reviews.entry.js +4 -4
- package/dist/{collection/components/salon-latest-styles/index.js → favesalon-embed/salon-latest-styles.entry.js} +14 -99
- package/dist/{collection/components/salon-locations/index.js → favesalon-embed/salon-locations.entry.js} +15 -95
- package/dist/{esm → favesalon-embed}/salon-lookbook.entry.js +3 -3
- package/dist/{esm → favesalon-embed}/salon-ranking.entry.js +1 -1
- package/dist/{esm → favesalon-embed}/salon-reviews.entry.js +3 -3
- package/dist/{collection/components/salon-schedules/index.js → favesalon-embed/salon-schedules.entry.js} +14 -95
- package/dist/{esm → favesalon-embed}/salon-services.entry.js +3 -3
- package/dist/{esm → favesalon-embed}/salon-stylists.entry.js +3 -3
- package/dist/{esm/services-40a3e622.js → favesalon-embed/services-7cb8f2a6.js} +2469 -100
- package/dist/favesalon-embed/shadow-css-98135883.js +387 -0
- package/dist/{esm → favesalon-embed}/style-detail.entry.js +4 -4
- package/dist/{esm → favesalon-embed}/user-avatar.entry.js +2 -1
- package/dist/{esm/utils-e97485e0.js → favesalon-embed/utils-7de9628a.js} +3 -0
- package/dist/types/components/chat-button/index.d.ts +0 -8
- package/dist/types/components/chat-form/index.d.ts +6 -0
- package/dist/types/components/chat-messages/index.d.ts +14 -0
- package/dist/types/components.d.ts +40 -0
- package/package.json +1 -1
- package/dist/cjs/chat-button.cjs.entry.js +0 -118
- package/dist/cjs/colors-38421769.js +0 -69
- package/dist/cjs/favesalon-embed.cjs.js +0 -24
- package/dist/cjs/google-map_5.cjs.entry.js +0 -310
- package/dist/cjs/index-47c2a5f6.js +0 -1533
- package/dist/cjs/index-7f190886.js +0 -4396
- package/dist/cjs/index.cjs.js +0 -2
- package/dist/cjs/loader.cjs.js +0 -23
- package/dist/cjs/relativeTime-3721080d.js +0 -9
- package/dist/cjs/salon-booking-modal.cjs.entry.js +0 -30
- package/dist/cjs/salon-booking.cjs.entry.js +0 -51
- package/dist/cjs/salon-gift-card-modal.cjs.entry.js +0 -29
- package/dist/cjs/salon-gift-card.cjs.entry.js +0 -51
- package/dist/cjs/salon-latest-reviews.cjs.entry.js +0 -97
- package/dist/cjs/salon-lookbook.cjs.entry.js +0 -222
- package/dist/cjs/salon-ranking.cjs.entry.js +0 -60
- package/dist/cjs/salon-reviews.cjs.entry.js +0 -193
- package/dist/cjs/salon-services.cjs.entry.js +0 -81
- package/dist/cjs/salon-stylists.cjs.entry.js +0 -118
- package/dist/cjs/services-125c82d8.js +0 -21492
- package/dist/cjs/style-detail.cjs.entry.js +0 -312
- package/dist/cjs/user-avatar.cjs.entry.js +0 -45
- package/dist/cjs/utils-c5a33b3c.js +0 -23
- package/dist/collection/collection-manifest.json +0 -29
- package/dist/collection/components/chat-button/index.css +0 -122
- package/dist/collection/components/chat-button/index.js +0 -218
- package/dist/collection/components/chat-conversation/index.js +0 -103
- package/dist/collection/components/google-map/assets/map--placeholder.jpeg +0 -0
- package/dist/collection/components/google-map/index.css +0 -5
- package/dist/collection/components/salon-booking/index.css +0 -30
- package/dist/collection/components/salon-booking/index.js +0 -126
- package/dist/collection/components/salon-booking/salon-booking-modal.js +0 -92
- package/dist/collection/components/salon-gift-card/index.css +0 -30
- package/dist/collection/components/salon-gift-card/index.js +0 -126
- package/dist/collection/components/salon-gift-card/salon-gift-card-modal.js +0 -73
- package/dist/collection/components/salon-info/index.css +0 -1
- package/dist/collection/components/salon-info/index.js +0 -77
- package/dist/collection/components/salon-latest-reviews/index.css +0 -11
- package/dist/collection/components/salon-latest-reviews/index.js +0 -163
- package/dist/collection/components/salon-latest-styles/index.css +0 -12
- package/dist/collection/components/salon-locations/index.css +0 -24
- package/dist/collection/components/salon-lookbook/index.css +0 -15
- package/dist/collection/components/salon-lookbook/index.js +0 -368
- package/dist/collection/components/salon-ranking/index.css +0 -3
- package/dist/collection/components/salon-ranking/index.js +0 -117
- package/dist/collection/components/salon-reviews/index.css +0 -18
- package/dist/collection/components/salon-reviews/index.js +0 -249
- package/dist/collection/components/salon-schedules/index.css +0 -18
- package/dist/collection/components/salon-services/index.css +0 -1
- package/dist/collection/components/salon-services/index.js +0 -146
- package/dist/collection/components/salon-stylists/index.css +0 -43
- package/dist/collection/components/salon-stylists/index.js +0 -184
- package/dist/collection/components/style-detail/index.css +0 -76
- package/dist/collection/components/style-detail/index.js +0 -386
- package/dist/collection/components/user-avatar/index.css +0 -0
- package/dist/collection/components/user-avatar/index.js +0 -134
- package/dist/collection/constants/colors.js +0 -65
- package/dist/collection/global/global.js +0 -8
- package/dist/collection/index.js +0 -1
- package/dist/collection/mocks/users.js +0 -10
- package/dist/collection/services/services.js +0 -295
- package/dist/collection/types/chat.js +0 -23
- package/dist/collection/types/common.js +0 -11
- package/dist/collection/types/review.js +0 -39
- package/dist/collection/types/salon.js +0 -58
- package/dist/collection/types/service.js +0 -24
- package/dist/collection/types/style.js +0 -128
- package/dist/collection/types/stylist.js +0 -30
- package/dist/collection/types/user.js +0 -10
- package/dist/collection/utils/utils.js +0 -20
- package/dist/custom-elements/index.js +0 -28340
- package/dist/esm/_commonjsHelpers-098d5b27.js +0 -32
- package/dist/esm/chat-button.entry.js +0 -114
- package/dist/esm/favesalon-embed.js +0 -19
- package/dist/esm/google-map_5.entry.js +0 -302
- package/dist/esm/index-3fae868e.js +0 -1506
- package/dist/esm/index.js +0 -1
- package/dist/esm/loader.js +0 -19
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/esm/relativeTime-cd452e6d.js +0 -7
- package/dist/favesalon-embed/p-019c5ccd.entry.js +0 -1
- package/dist/favesalon-embed/p-083a8821.entry.js +0 -1
- package/dist/favesalon-embed/p-0d0ed9ea.entry.js +0 -1
- package/dist/favesalon-embed/p-119db8de.entry.js +0 -1
- package/dist/favesalon-embed/p-1432c51b.entry.js +0 -1
- package/dist/favesalon-embed/p-22093506.entry.js +0 -1
- package/dist/favesalon-embed/p-32b314e9.js +0 -2
- package/dist/favesalon-embed/p-47e646f8.js +0 -1
- package/dist/favesalon-embed/p-4a5eca9a.js +0 -6
- package/dist/favesalon-embed/p-58d2e9be.js +0 -1
- package/dist/favesalon-embed/p-71404b6a.entry.js +0 -1
- package/dist/favesalon-embed/p-857c3a61.entry.js +0 -1
- package/dist/favesalon-embed/p-99ec77f7.entry.js +0 -1
- package/dist/favesalon-embed/p-a33331cc.js +0 -1
- package/dist/favesalon-embed/p-b0c3673a.entry.js +0 -1
- package/dist/favesalon-embed/p-b287b1ea.entry.js +0 -1
- package/dist/favesalon-embed/p-b3af7842.entry.js +0 -1
- package/dist/favesalon-embed/p-b630ae68.js +0 -1580
- package/dist/favesalon-embed/p-ce2c1c9a.entry.js +0 -1
- package/dist/favesalon-embed/p-d6083940.js +0 -1
- package/dist/favesalon-embed/p-d9b7ad58.entry.js +0 -1
- package/dist/favesalon-embed/p-fc9a5551.js +0 -6
- package/dist/index.cjs.js +0 -1
- package/dist/index.js +0 -1
- package/dist/types/components/chat-conversation/index.d.ts +0 -0
- /package/dist/{esm → favesalon-embed}/colors-ea36347a.js +0 -0
|
@@ -8,6 +8,18 @@ export const ChatButton: {
|
|
|
8
8
|
new (): ChatButton;
|
|
9
9
|
};
|
|
10
10
|
|
|
11
|
+
interface ChatForm extends Components.ChatForm, HTMLElement {}
|
|
12
|
+
export const ChatForm: {
|
|
13
|
+
prototype: ChatForm;
|
|
14
|
+
new (): ChatForm;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
interface ChatMessages extends Components.ChatMessages, HTMLElement {}
|
|
18
|
+
export const ChatMessages: {
|
|
19
|
+
prototype: ChatMessages;
|
|
20
|
+
new (): ChatMessages;
|
|
21
|
+
};
|
|
22
|
+
|
|
11
23
|
interface GoogleMap extends Components.GoogleMap, HTMLElement {}
|
|
12
24
|
export const GoogleMap: {
|
|
13
25
|
prototype: GoogleMap;
|
package/dist/{cjs/_commonjsHelpers-5cfcba41.js → favesalon-embed/_commonjsHelpers-a4f66ccd.js}
RENAMED
|
@@ -1,17 +1,27 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
1
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
4
2
|
|
|
3
|
+
function getDefaultExportFromCjs (x) {
|
|
4
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
5
|
+
}
|
|
6
|
+
|
|
5
7
|
function createCommonjsModule(fn, basedir, module) {
|
|
6
8
|
return module = {
|
|
7
9
|
path: basedir,
|
|
8
10
|
exports: {},
|
|
9
11
|
require: function (path, base) {
|
|
10
|
-
return commonjsRequire();
|
|
12
|
+
return commonjsRequire(path, (base === undefined || base === null) ? module.path : base);
|
|
11
13
|
}
|
|
12
14
|
}, fn(module, module.exports), module.exports;
|
|
13
15
|
}
|
|
14
16
|
|
|
17
|
+
function getDefaultExportFromNamespaceIfPresent (n) {
|
|
18
|
+
return n && Object.prototype.hasOwnProperty.call(n, 'default') ? n['default'] : n;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
function getDefaultExportFromNamespaceIfNotNamed (n) {
|
|
22
|
+
return n && Object.prototype.hasOwnProperty.call(n, 'default') && Object.keys(n).length === 1 ? n['default'] : n;
|
|
23
|
+
}
|
|
24
|
+
|
|
15
25
|
function getAugmentedNamespace(n) {
|
|
16
26
|
if (n.__esModule) return n;
|
|
17
27
|
var a = Object.defineProperty({}, '__esModule', {value: true});
|
|
@@ -31,6 +41,4 @@ function commonjsRequire () {
|
|
|
31
41
|
throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
|
|
32
42
|
}
|
|
33
43
|
|
|
34
|
-
|
|
35
|
-
exports.createCommonjsModule = createCommonjsModule;
|
|
36
|
-
exports.getAugmentedNamespace = getAugmentedNamespace;
|
|
44
|
+
export { createCommonjsModule as a, getAugmentedNamespace as b, commonjsGlobal as c, getDefaultExportFromCjs as g };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import './index-9ad82b12.js';
|
|
2
2
|
|
|
3
3
|
/*!
|
|
4
4
|
* Bootstrap v5.1.3 (https://getbootstrap.com/)
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
7
7
|
*/
|
|
8
8
|
!function (t, e) { "object" == typeof exports && "undefined" != typeof module ? module.exports = e() : "function" == typeof define && define.amd ? define(e) : (t = "undefined" != typeof globalThis ? globalThis : t || self).bootstrap = e(); }(undefined, (function () {
|
|
9
|
+
"use strict";
|
|
9
10
|
const t = "transitionend", e = t => { let e = t.getAttribute("data-bs-target"); if (!e || "#" === e) {
|
|
10
11
|
let i = t.getAttribute("href");
|
|
11
12
|
if (!i || !i.includes("#") && !i.startsWith("."))
|
|
@@ -16,7 +17,7 @@
|
|
|
16
17
|
return null; if ("function" == typeof t.getRootNode) {
|
|
17
18
|
const e = t.getRootNode();
|
|
18
19
|
return e instanceof ShadowRoot ? e : null;
|
|
19
|
-
} return t instanceof ShadowRoot ? t : t.parentNode ? h(t.parentNode) : null; }, d = () => { }, u = t => { }, f = () => { const { jQuery: t } = window; return t && !document.body.hasAttribute("data-bs-no-jquery") ? t : null; }, p = [], m = () => "rtl" === document.documentElement.dir, g = t => { var e; e = () => { const e = f(); if (e) {
|
|
20
|
+
} return t instanceof ShadowRoot ? t : t.parentNode ? h(t.parentNode) : null; }, d = () => { }, u = t => { t.offsetHeight; }, f = () => { const { jQuery: t } = window; return t && !document.body.hasAttribute("data-bs-no-jquery") ? t : null; }, p = [], m = () => "rtl" === document.documentElement.dir, g = t => { var e; e = () => { const e = f(); if (e) {
|
|
20
21
|
const i = t.NAME, n = e.fn[i];
|
|
21
22
|
e.fn[i] = t.jQueryInterface, e.fn[i].Constructor = t, e.fn[i].noConflict = () => (e.fn[i] = n, t.jQueryInterface);
|
|
22
23
|
} }, "loading" === document.readyState ? (p.length || document.addEventListener("DOMContentLoaded", (() => { p.forEach((t => t())); })), p.push(e)) : e(); }, _ = t => { "function" == typeof t && t(); }, b = (e, i, n = !0) => { if (!n)
|
|
@@ -144,7 +145,7 @@
|
|
|
144
145
|
return; if (this._triggerSlideEvent(o, d).defaultPrevented)
|
|
145
146
|
return; if (!n || !o)
|
|
146
147
|
return; this._isSliding = !0, a && this.pause(), this._setActiveIndicatorElement(o), this._activeElement = o; const f = () => { j.trigger(this._element, et, { relatedTarget: o, direction: d, from: s, to: r }); }; if (this._element.classList.contains("slide")) {
|
|
147
|
-
o.classList.add(h), n.classList.add(c), o.classList.add(c);
|
|
148
|
+
o.classList.add(h), u(o), n.classList.add(c), o.classList.add(c);
|
|
148
149
|
const t = () => { o.classList.remove(c, h), o.classList.add(it), n.classList.remove(it, h, c), this._isSliding = !1, setTimeout(f, 0); };
|
|
149
150
|
this._queueCallback(t, n, !0);
|
|
150
151
|
}
|
|
@@ -188,7 +189,7 @@
|
|
|
188
189
|
return; e.forEach((e => { i !== e && pt.getOrCreateInstance(e, { toggle: !1 }).hide(), t || H.set(e, "bs.collapse", null); })); const n = this._getDimension(); this._element.classList.remove(ct), this._element.classList.add(ht), this._element.style[n] = 0, this._addAriaAndCollapsedClass(this._triggerArray, !0), this._isTransitioning = !0; const s = `scroll${n[0].toUpperCase() + n.slice(1)}`; this._queueCallback((() => { this._isTransitioning = !1, this._element.classList.remove(ht), this._element.classList.add(ct, lt), this._element.style[n] = "", j.trigger(this._element, "shown.bs.collapse"); }), this._element, !0), this._element.style[n] = `${this._element[s]}px`; }
|
|
189
190
|
hide() { if (this._isTransitioning || !this._isShown())
|
|
190
191
|
return; if (j.trigger(this._element, "hide.bs.collapse").defaultPrevented)
|
|
191
|
-
return; const t = this._getDimension(); this._element.style[t] = `${this._element.getBoundingClientRect()[t]}px`, this._element.classList.add(ht), this._element.classList.remove(ct, lt); const e = this._triggerArray.length; for (let t = 0; t < e; t++) {
|
|
192
|
+
return; const t = this._getDimension(); this._element.style[t] = `${this._element.getBoundingClientRect()[t]}px`, u(this._element), this._element.classList.add(ht), this._element.classList.remove(ct, lt); const e = this._triggerArray.length; for (let t = 0; t < e; t++) {
|
|
192
193
|
const e = this._triggerArray[t], i = n(e);
|
|
193
194
|
i && !this._isShown(i) && this._addAriaAndCollapsedClass([e], !1);
|
|
194
195
|
} this._isTransitioning = !0, this._element.style[t] = "", this._queueCallback((() => { this._isTransitioning = !1, this._element.classList.remove(ht), this._element.classList.add(ct), j.trigger(this._element, "hidden.bs.collapse"); }), this._element, !0); }
|
|
@@ -333,7 +334,7 @@
|
|
|
333
334
|
}
|
|
334
335
|
e.modifiersData[n] = C;
|
|
335
336
|
} }, requiresIfExists: ["offset"] };
|
|
336
|
-
function Me(t, e, i) { void 0 === i && (i = !1); var n = zt(e); zt(e) && function (t) { t.getBoundingClientRect(); }(e); var s, o, r = Gt(e), a = Vt(t), l = { scrollLeft: 0, scrollTop: 0 }, c = { x: 0, y: 0 }; return (n || !n && !i) && (("body" !== Rt(e) || we(r)) && (l = (s = e) !== Wt(s) && zt(s) ? { scrollLeft: (o = s).scrollLeft, scrollTop: o.scrollTop } : ve(s)), zt(e) ? ((c = Vt(e)).x += e.clientLeft, c.y += e.clientTop) : r && (c.x = ye(r))), { x: a.left + l.scrollLeft - c.x, y: a.top + l.scrollTop - c.y, width: a.width, height: a.height }; }
|
|
337
|
+
function Me(t, e, i) { void 0 === i && (i = !1); var n = zt(e); zt(e) && function (t) { var e = t.getBoundingClientRect(); e.width, t.offsetWidth, e.height, t.offsetHeight; }(e); var s, o, r = Gt(e), a = Vt(t), l = { scrollLeft: 0, scrollTop: 0 }, c = { x: 0, y: 0 }; return (n || !n && !i) && (("body" !== Rt(e) || we(r)) && (l = (s = e) !== Wt(s) && zt(s) ? { scrollLeft: (o = s).scrollLeft, scrollTop: o.scrollTop } : ve(s)), zt(e) ? ((c = Vt(e)).x += e.clientLeft, c.y += e.clientTop) : r && (c.x = ye(r))), { x: a.left + l.scrollLeft - c.x, y: a.top + l.scrollTop - c.y, width: a.width, height: a.height }; }
|
|
337
338
|
function He(t) { var e = new Map, i = new Set, n = []; function s(t) { i.add(t.name), [].concat(t.requires || [], t.requiresIfExists || []).forEach((function (t) { if (!i.has(t)) {
|
|
338
339
|
var n = e.get(t);
|
|
339
340
|
n && s(n);
|
|
@@ -471,7 +472,7 @@
|
|
|
471
472
|
_initializeBackDrop() { return new bi({ isVisible: Boolean(this._config.backdrop), isAnimated: this._isAnimated() }); }
|
|
472
473
|
_initializeFocusTrap() { return new Ai({ trapElement: this._element }); }
|
|
473
474
|
_getConfig(t) { return t = Object.assign(Object.assign(Object.assign({}, Ci), U.getDataAttributes(this._element)), "object" == typeof t ? t : {}), a(Ti, t, ki), t; }
|
|
474
|
-
_showElement(t) { const e = this._isAnimated(), i = V.findOne(".modal-body", this._dialog); this._element.parentNode && this._element.parentNode.nodeType === Node.ELEMENT_NODE || document.body.append(this._element), this._element.style.display = "block", this._element.removeAttribute("aria-hidden"), this._element.setAttribute("aria-modal", !0), this._element.setAttribute("role", "dialog"), this._element.scrollTop = 0, i && (i.scrollTop = 0), this._element.classList.add(ji), this._queueCallback((() => { this._config.focus && this._focustrap.activate(), this._isTransitioning = !1, j.trigger(this._element, "shown.bs.modal", { relatedTarget: t }); }), this._dialog, e); }
|
|
475
|
+
_showElement(t) { const e = this._isAnimated(), i = V.findOne(".modal-body", this._dialog); this._element.parentNode && this._element.parentNode.nodeType === Node.ELEMENT_NODE || document.body.append(this._element), this._element.style.display = "block", this._element.removeAttribute("aria-hidden"), this._element.setAttribute("aria-modal", !0), this._element.setAttribute("role", "dialog"), this._element.scrollTop = 0, i && (i.scrollTop = 0), e && u(this._element), this._element.classList.add(ji), this._queueCallback((() => { this._config.focus && this._focustrap.activate(), this._isTransitioning = !1, j.trigger(this._element, "shown.bs.modal", { relatedTarget: t }); }), this._dialog, e); }
|
|
475
476
|
_setEscapeEvent() { this._isShown ? j.on(this._element, Ni, (t => { this._config.keyboard && t.key === Oi ? (t.preventDefault(), this.hide()) : this._config.keyboard || t.key !== Oi || this._triggerBackdropTransition(); })) : j.off(this._element, Ni); }
|
|
476
477
|
_setResizeEvent() { this._isShown ? j.on(window, Di, (() => this._adjustDialog())) : j.off(window, Di); }
|
|
477
478
|
_hideModal() { this._element.style.display = "none", this._element.setAttribute("aria-hidden", !0), this._element.removeAttribute("aria-modal"), this._element.removeAttribute("role"), this._isTransitioning = !1, this._backdrop.hide((() => { document.body.classList.remove(Pi), this._resetAdjustments(), this._scrollBar.reset(), j.trigger(this._element, Li); })); }
|
|
@@ -662,7 +663,7 @@
|
|
|
662
663
|
e.classList.remove(Tn);
|
|
663
664
|
const t = V.findOne(":scope > .dropdown-menu .active", e.parentNode);
|
|
664
665
|
t && t.classList.remove(Tn), "tab" === e.getAttribute("role") && e.setAttribute("aria-selected", !1);
|
|
665
|
-
} t.classList.add(Tn), "tab" === t.getAttribute("role") && t.setAttribute("aria-selected", !0), t.classList.contains(On) && t.classList.add(Cn); let n = t.parentNode; if (n && "LI" === n.nodeName && (n = n.parentNode), n && n.classList.contains("dropdown-menu")) {
|
|
666
|
+
} t.classList.add(Tn), "tab" === t.getAttribute("role") && t.setAttribute("aria-selected", !0), u(t), t.classList.contains(On) && t.classList.add(Cn); let n = t.parentNode; if (n && "LI" === n.nodeName && (n = n.parentNode), n && n.classList.contains("dropdown-menu")) {
|
|
666
667
|
const e = t.closest(".dropdown");
|
|
667
668
|
e && V.find(".dropdown-toggle", e).forEach((t => t.classList.add(Tn))), t.setAttribute("aria-expanded", !0);
|
|
668
669
|
} i && i(); }
|
|
@@ -679,7 +680,7 @@
|
|
|
679
680
|
static get DefaultType() { return Pn; }
|
|
680
681
|
static get Default() { return jn; }
|
|
681
682
|
static get NAME() { return Dn; }
|
|
682
|
-
show() { j.trigger(this._element, "show.bs.toast").defaultPrevented || (this._clearTimeout(), this._config.animation && this._element.classList.add("fade"), this._element.classList.remove(Sn), this._element.classList.add(Nn), this._element.classList.add(In), this._queueCallback((() => { this._element.classList.remove(In), j.trigger(this._element, "shown.bs.toast"), this._maybeScheduleHide(); }), this._element, this._config.animation)); }
|
|
683
|
+
show() { j.trigger(this._element, "show.bs.toast").defaultPrevented || (this._clearTimeout(), this._config.animation && this._element.classList.add("fade"), this._element.classList.remove(Sn), u(this._element), this._element.classList.add(Nn), this._element.classList.add(In), this._queueCallback((() => { this._element.classList.remove(In), j.trigger(this._element, "shown.bs.toast"), this._maybeScheduleHide(); }), this._element, this._config.animation)); }
|
|
683
684
|
hide() { this._element.classList.contains(Nn) && (j.trigger(this._element, "hide.bs.toast").defaultPrevented || (this._element.classList.add(In), this._queueCallback((() => { this._element.classList.add(Sn), this._element.classList.remove(In), this._element.classList.remove(Nn), j.trigger(this._element, "hidden.bs.toast"); }), this._element, this._config.animation))); }
|
|
684
685
|
dispose() { this._clearTimeout(), this._element.classList.contains(Nn) && this._element.classList.remove(Nn), super.dispose(); }
|
|
685
686
|
_getConfig(t) { return t = Object.assign(Object.assign(Object.assign({}, jn), U.getDataAttributes(this._element)), "object" == typeof t && t ? t : {}), a(Dn, t, this.constructor.DefaultType), t; }
|
|
@@ -703,3 +704,9 @@
|
|
|
703
704
|
}
|
|
704
705
|
return R(Mn), g(Mn), { Alert: W, Button: z, Carousel: st, Collapse: pt, Dropdown: hi, Modal: Hi, Offcanvas: Fi, Popover: gn, ScrollSpy: An, Tab: xn, Toast: Mn, Tooltip: un };
|
|
705
706
|
}));
|
|
707
|
+
|
|
708
|
+
const globalFn = () => { };
|
|
709
|
+
|
|
710
|
+
const globalScripts = globalFn;
|
|
711
|
+
|
|
712
|
+
export { globalScripts as g };
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
import './index-aa906326.js';
|
|
2
|
+
|
|
1
3
|
/*!
|
|
2
4
|
* Bootstrap v5.1.3 (https://getbootstrap.com/)
|
|
3
5
|
* Copyright 2011-2021 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
|
4
6
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
5
7
|
*/
|
|
6
8
|
!function (t, e) { "object" == typeof exports && "undefined" != typeof module ? module.exports = e() : "function" == typeof define && define.amd ? define(e) : (t = "undefined" != typeof globalThis ? globalThis : t || self).bootstrap = e(); }(undefined, (function () {
|
|
9
|
+
"use strict";
|
|
7
10
|
const t = "transitionend", e = t => { let e = t.getAttribute("data-bs-target"); if (!e || "#" === e) {
|
|
8
11
|
let i = t.getAttribute("href");
|
|
9
12
|
if (!i || !i.includes("#") && !i.startsWith("."))
|
|
@@ -14,7 +17,7 @@
|
|
|
14
17
|
return null; if ("function" == typeof t.getRootNode) {
|
|
15
18
|
const e = t.getRootNode();
|
|
16
19
|
return e instanceof ShadowRoot ? e : null;
|
|
17
|
-
} return t instanceof ShadowRoot ? t : t.parentNode ? h(t.parentNode) : null; }, d = () => { }, u = t => { }, f = () => { const { jQuery: t } = window; return t && !document.body.hasAttribute("data-bs-no-jquery") ? t : null; }, p = [], m = () => "rtl" === document.documentElement.dir, g = t => { var e; e = () => { const e = f(); if (e) {
|
|
20
|
+
} return t instanceof ShadowRoot ? t : t.parentNode ? h(t.parentNode) : null; }, d = () => { }, u = t => { t.offsetHeight; }, f = () => { const { jQuery: t } = window; return t && !document.body.hasAttribute("data-bs-no-jquery") ? t : null; }, p = [], m = () => "rtl" === document.documentElement.dir, g = t => { var e; e = () => { const e = f(); if (e) {
|
|
18
21
|
const i = t.NAME, n = e.fn[i];
|
|
19
22
|
e.fn[i] = t.jQueryInterface, e.fn[i].Constructor = t, e.fn[i].noConflict = () => (e.fn[i] = n, t.jQueryInterface);
|
|
20
23
|
} }, "loading" === document.readyState ? (p.length || document.addEventListener("DOMContentLoaded", (() => { p.forEach((t => t())); })), p.push(e)) : e(); }, _ = t => { "function" == typeof t && t(); }, b = (e, i, n = !0) => { if (!n)
|
|
@@ -142,7 +145,7 @@
|
|
|
142
145
|
return; if (this._triggerSlideEvent(o, d).defaultPrevented)
|
|
143
146
|
return; if (!n || !o)
|
|
144
147
|
return; this._isSliding = !0, a && this.pause(), this._setActiveIndicatorElement(o), this._activeElement = o; const f = () => { j.trigger(this._element, et, { relatedTarget: o, direction: d, from: s, to: r }); }; if (this._element.classList.contains("slide")) {
|
|
145
|
-
o.classList.add(h), n.classList.add(c), o.classList.add(c);
|
|
148
|
+
o.classList.add(h), u(o), n.classList.add(c), o.classList.add(c);
|
|
146
149
|
const t = () => { o.classList.remove(c, h), o.classList.add(it), n.classList.remove(it, h, c), this._isSliding = !1, setTimeout(f, 0); };
|
|
147
150
|
this._queueCallback(t, n, !0);
|
|
148
151
|
}
|
|
@@ -186,7 +189,7 @@
|
|
|
186
189
|
return; e.forEach((e => { i !== e && pt.getOrCreateInstance(e, { toggle: !1 }).hide(), t || H.set(e, "bs.collapse", null); })); const n = this._getDimension(); this._element.classList.remove(ct), this._element.classList.add(ht), this._element.style[n] = 0, this._addAriaAndCollapsedClass(this._triggerArray, !0), this._isTransitioning = !0; const s = `scroll${n[0].toUpperCase() + n.slice(1)}`; this._queueCallback((() => { this._isTransitioning = !1, this._element.classList.remove(ht), this._element.classList.add(ct, lt), this._element.style[n] = "", j.trigger(this._element, "shown.bs.collapse"); }), this._element, !0), this._element.style[n] = `${this._element[s]}px`; }
|
|
187
190
|
hide() { if (this._isTransitioning || !this._isShown())
|
|
188
191
|
return; if (j.trigger(this._element, "hide.bs.collapse").defaultPrevented)
|
|
189
|
-
return; const t = this._getDimension(); this._element.style[t] = `${this._element.getBoundingClientRect()[t]}px`, this._element.classList.add(ht), this._element.classList.remove(ct, lt); const e = this._triggerArray.length; for (let t = 0; t < e; t++) {
|
|
192
|
+
return; const t = this._getDimension(); this._element.style[t] = `${this._element.getBoundingClientRect()[t]}px`, u(this._element), this._element.classList.add(ht), this._element.classList.remove(ct, lt); const e = this._triggerArray.length; for (let t = 0; t < e; t++) {
|
|
190
193
|
const e = this._triggerArray[t], i = n(e);
|
|
191
194
|
i && !this._isShown(i) && this._addAriaAndCollapsedClass([e], !1);
|
|
192
195
|
} this._isTransitioning = !0, this._element.style[t] = "", this._queueCallback((() => { this._isTransitioning = !1, this._element.classList.remove(ht), this._element.classList.add(ct), j.trigger(this._element, "hidden.bs.collapse"); }), this._element, !0); }
|
|
@@ -331,7 +334,7 @@
|
|
|
331
334
|
}
|
|
332
335
|
e.modifiersData[n] = C;
|
|
333
336
|
} }, requiresIfExists: ["offset"] };
|
|
334
|
-
function Me(t, e, i) { void 0 === i && (i = !1); var n = zt(e); zt(e) && function (t) { t.getBoundingClientRect(); }(e); var s, o, r = Gt(e), a = Vt(t), l = { scrollLeft: 0, scrollTop: 0 }, c = { x: 0, y: 0 }; return (n || !n && !i) && (("body" !== Rt(e) || we(r)) && (l = (s = e) !== Wt(s) && zt(s) ? { scrollLeft: (o = s).scrollLeft, scrollTop: o.scrollTop } : ve(s)), zt(e) ? ((c = Vt(e)).x += e.clientLeft, c.y += e.clientTop) : r && (c.x = ye(r))), { x: a.left + l.scrollLeft - c.x, y: a.top + l.scrollTop - c.y, width: a.width, height: a.height }; }
|
|
337
|
+
function Me(t, e, i) { void 0 === i && (i = !1); var n = zt(e); zt(e) && function (t) { var e = t.getBoundingClientRect(); e.width, t.offsetWidth, e.height, t.offsetHeight; }(e); var s, o, r = Gt(e), a = Vt(t), l = { scrollLeft: 0, scrollTop: 0 }, c = { x: 0, y: 0 }; return (n || !n && !i) && (("body" !== Rt(e) || we(r)) && (l = (s = e) !== Wt(s) && zt(s) ? { scrollLeft: (o = s).scrollLeft, scrollTop: o.scrollTop } : ve(s)), zt(e) ? ((c = Vt(e)).x += e.clientLeft, c.y += e.clientTop) : r && (c.x = ye(r))), { x: a.left + l.scrollLeft - c.x, y: a.top + l.scrollTop - c.y, width: a.width, height: a.height }; }
|
|
335
338
|
function He(t) { var e = new Map, i = new Set, n = []; function s(t) { i.add(t.name), [].concat(t.requires || [], t.requiresIfExists || []).forEach((function (t) { if (!i.has(t)) {
|
|
336
339
|
var n = e.get(t);
|
|
337
340
|
n && s(n);
|
|
@@ -469,7 +472,7 @@
|
|
|
469
472
|
_initializeBackDrop() { return new bi({ isVisible: Boolean(this._config.backdrop), isAnimated: this._isAnimated() }); }
|
|
470
473
|
_initializeFocusTrap() { return new Ai({ trapElement: this._element }); }
|
|
471
474
|
_getConfig(t) { return t = Object.assign(Object.assign(Object.assign({}, Ci), U.getDataAttributes(this._element)), "object" == typeof t ? t : {}), a(Ti, t, ki), t; }
|
|
472
|
-
_showElement(t) { const e = this._isAnimated(), i = V.findOne(".modal-body", this._dialog); this._element.parentNode && this._element.parentNode.nodeType === Node.ELEMENT_NODE || document.body.append(this._element), this._element.style.display = "block", this._element.removeAttribute("aria-hidden"), this._element.setAttribute("aria-modal", !0), this._element.setAttribute("role", "dialog"), this._element.scrollTop = 0, i && (i.scrollTop = 0), this._element.classList.add(ji), this._queueCallback((() => { this._config.focus && this._focustrap.activate(), this._isTransitioning = !1, j.trigger(this._element, "shown.bs.modal", { relatedTarget: t }); }), this._dialog, e); }
|
|
475
|
+
_showElement(t) { const e = this._isAnimated(), i = V.findOne(".modal-body", this._dialog); this._element.parentNode && this._element.parentNode.nodeType === Node.ELEMENT_NODE || document.body.append(this._element), this._element.style.display = "block", this._element.removeAttribute("aria-hidden"), this._element.setAttribute("aria-modal", !0), this._element.setAttribute("role", "dialog"), this._element.scrollTop = 0, i && (i.scrollTop = 0), e && u(this._element), this._element.classList.add(ji), this._queueCallback((() => { this._config.focus && this._focustrap.activate(), this._isTransitioning = !1, j.trigger(this._element, "shown.bs.modal", { relatedTarget: t }); }), this._dialog, e); }
|
|
473
476
|
_setEscapeEvent() { this._isShown ? j.on(this._element, Ni, (t => { this._config.keyboard && t.key === Oi ? (t.preventDefault(), this.hide()) : this._config.keyboard || t.key !== Oi || this._triggerBackdropTransition(); })) : j.off(this._element, Ni); }
|
|
474
477
|
_setResizeEvent() { this._isShown ? j.on(window, Di, (() => this._adjustDialog())) : j.off(window, Di); }
|
|
475
478
|
_hideModal() { this._element.style.display = "none", this._element.setAttribute("aria-hidden", !0), this._element.removeAttribute("aria-modal"), this._element.removeAttribute("role"), this._isTransitioning = !1, this._backdrop.hide((() => { document.body.classList.remove(Pi), this._resetAdjustments(), this._scrollBar.reset(), j.trigger(this._element, Li); })); }
|
|
@@ -660,7 +663,7 @@
|
|
|
660
663
|
e.classList.remove(Tn);
|
|
661
664
|
const t = V.findOne(":scope > .dropdown-menu .active", e.parentNode);
|
|
662
665
|
t && t.classList.remove(Tn), "tab" === e.getAttribute("role") && e.setAttribute("aria-selected", !1);
|
|
663
|
-
} t.classList.add(Tn), "tab" === t.getAttribute("role") && t.setAttribute("aria-selected", !0), t.classList.contains(On) && t.classList.add(Cn); let n = t.parentNode; if (n && "LI" === n.nodeName && (n = n.parentNode), n && n.classList.contains("dropdown-menu")) {
|
|
666
|
+
} t.classList.add(Tn), "tab" === t.getAttribute("role") && t.setAttribute("aria-selected", !0), u(t), t.classList.contains(On) && t.classList.add(Cn); let n = t.parentNode; if (n && "LI" === n.nodeName && (n = n.parentNode), n && n.classList.contains("dropdown-menu")) {
|
|
664
667
|
const e = t.closest(".dropdown");
|
|
665
668
|
e && V.find(".dropdown-toggle", e).forEach((t => t.classList.add(Tn))), t.setAttribute("aria-expanded", !0);
|
|
666
669
|
} i && i(); }
|
|
@@ -677,7 +680,7 @@
|
|
|
677
680
|
static get DefaultType() { return Pn; }
|
|
678
681
|
static get Default() { return jn; }
|
|
679
682
|
static get NAME() { return Dn; }
|
|
680
|
-
show() { j.trigger(this._element, "show.bs.toast").defaultPrevented || (this._clearTimeout(), this._config.animation && this._element.classList.add("fade"), this._element.classList.remove(Sn), this._element.classList.add(Nn), this._element.classList.add(In), this._queueCallback((() => { this._element.classList.remove(In), j.trigger(this._element, "shown.bs.toast"), this._maybeScheduleHide(); }), this._element, this._config.animation)); }
|
|
683
|
+
show() { j.trigger(this._element, "show.bs.toast").defaultPrevented || (this._clearTimeout(), this._config.animation && this._element.classList.add("fade"), this._element.classList.remove(Sn), u(this._element), this._element.classList.add(Nn), this._element.classList.add(In), this._queueCallback((() => { this._element.classList.remove(In), j.trigger(this._element, "shown.bs.toast"), this._maybeScheduleHide(); }), this._element, this._config.animation)); }
|
|
681
684
|
hide() { this._element.classList.contains(Nn) && (j.trigger(this._element, "hide.bs.toast").defaultPrevented || (this._element.classList.add(In), this._queueCallback((() => { this._element.classList.add(Sn), this._element.classList.remove(In), this._element.classList.remove(Nn), j.trigger(this._element, "hidden.bs.toast"); }), this._element, this._config.animation))); }
|
|
682
685
|
dispose() { this._clearTimeout(), this._element.classList.contains(Nn) && this._element.classList.remove(Nn), super.dispose(); }
|
|
683
686
|
_getConfig(t) { return t = Object.assign(Object.assign(Object.assign({}, jn), U.getDataAttributes(this._element)), "object" == typeof t && t ? t : {}), a(Dn, t, this.constructor.DefaultType), t; }
|
|
@@ -701,3 +704,9 @@
|
|
|
701
704
|
}
|
|
702
705
|
return R(Mn), g(Mn), { Alert: W, Button: z, Carousel: st, Collapse: pt, Dropdown: hi, Modal: Hi, Offcanvas: Fi, Popover: gn, ScrollSpy: An, Tab: xn, Toast: Mn, Tooltip: un };
|
|
703
706
|
}));
|
|
707
|
+
|
|
708
|
+
const globalFn = () => { };
|
|
709
|
+
|
|
710
|
+
const globalScripts = globalFn;
|
|
711
|
+
|
|
712
|
+
export { globalScripts as g };
|