@cling-se/widget 0.13.5 → 0.14.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/{AddClientCallout-P8T0R-6B.js → AddClientCallout-BP2ip0A4.js} +3 -3
- package/dist/{AnswerModal-BF-ZUpQ9.js → AnswerModal-C8i3ldB_.js} +4 -4
- package/dist/{AttachmentItem-DEC6rjGE.js → AttachmentItem-BrvrAMae.js} +2 -2
- package/dist/{BaseDatePicker-2uhuySby.js → BaseDatePicker-BSkAllLg.js} +556 -556
- package/dist/{BaseUpload-D1OS-EZ-.js → BaseUpload-J2v3G0-q.js} +14 -14
- package/dist/{BlockMedia-BFBeRtJx.js → BlockMedia-CAgKbN_k.js} +21 -17
- package/dist/{CCallout-CsQMsFZO.js → CCallout-D5Nk5DgN.js} +2 -2
- package/dist/CCurrencyDropdown-CGYQfYSD.js +246 -0
- package/dist/{CDropdownItem-BeK9wNHJ.js → CDropdownItem-DGES8E6l.js} +7 -5
- package/dist/{CField-TsZhnNrK.js → CFormField-CE4rV3cr.js} +66 -39
- package/dist/{CPhoneFormat-DPYhElZw.js → CPhoneFormat-DXPrTit9.js} +1 -1
- package/dist/CPriceInput-CYsf1n6T.js +112 -0
- package/dist/CTabs.vue_vue_type_style_index_0_scoped_e02a6440_lang-l0sNRNKZ.js +1 -0
- package/dist/{ClientAutocomplete-Ch2Z-VNr.js → ClientAutocomplete-DPgOfPg1.js} +2 -2
- package/dist/{ClientModal-rdb9TsyH.js → ClientModal-Dznh8Vvn.js} +44 -36
- package/dist/{ColorPicker-2gfbU60o.js → ColorPicker-CWQEE8VR.js} +1 -1
- package/dist/{CompanyModal-CNeySxNi.js → CompanyModal-CeZ3GgLu.js} +4 -4
- package/dist/{ContentWrapper-D27J_sCS.js → ContentWrapper-DW7VHTdA.js} +8 -8
- package/dist/{CoverBlockSettings-BfdJKrsq.js → CoverBlockSettings-DNSdXFgF.js} +5 -5
- package/dist/{DocAnswer-CyHASkhm.js → DocAnswer-CPttkKAJ.js} +2 -2
- package/dist/{DocDetails-8bM9dBxm.js → DocDetails-BCwWW_kM.js} +7 -7
- package/dist/{DocForm-CumvOHwl.js → DocForm-BPjC08Ic.js} +41 -39
- package/dist/{DocFormSend-CdoZy_Q2.js → DocFormSend-BaC8IJCu.js} +2 -2
- package/dist/{DocLinks-BJPADuvd.js → DocLinks-DN-S8MY_.js} +2 -2
- package/dist/{DocModalBase-Cd3zXvH_.js → DocModalBase-bFJp0T2Y.js} +1 -1
- package/dist/{DocPrint-Be4l2pra.js → DocPrint-Ci7Jyh-C.js} +20 -19
- package/dist/{DocReceipt-DmFjo26V.js → DocReceipt-BYlXr6eS.js} +6 -6
- package/dist/{DocSendReminder-CVxh_c7u.js → DocSendReminder-DFx4934a.js} +1 -1
- package/dist/{DocTextEditor-2jhWmmN2.js → DocTextEditor-idQMnlIF.js} +1086 -1057
- package/dist/{DocTimeline-Dvn690cI.js → DocTimeline-ZmGSVRUB.js} +1 -1
- package/dist/{DocumentClient-D3ESmMk1.js → DocumentClient-DTRlyvLO.js} +5 -5
- package/dist/{DocumentLayout-0-y6ChW3.js → DocumentLayout-BJAyNjNa.js} +9 -5
- package/dist/{DocumentLogotype-CHWEVOFb.js → DocumentLogotype-pDJRc6Hj.js} +3 -3
- package/dist/{DocumentVoided-CoJ6YorU.js → DocumentVoided-DfKewfe4.js} +1 -1
- package/dist/{EmbedInput-CGQJdLBd.js → EmbedInput-7hLNsnEV.js} +2 -2
- package/dist/{EmbedSettings-DRfM7EkF.js → EmbedSettings-CpL24RhA.js} +2 -2
- package/dist/{ErrorCallout-pRwrsMwI.js → ErrorCallout-CdJCe67q.js} +1 -1
- package/dist/{FilePreviewModal-4hJnwqeM.js → FilePreviewModal-B7qT3I7F.js} +2 -2
- package/dist/{Flag-CH9jX9p6.js → Flag-DwW19zju.js} +1 -1
- package/dist/{HeaderSettings-DESkxus6.js → HeaderSettings-C8SuuAwv.js} +7 -7
- package/dist/{ImageSelectModal-BczBg7pO.js → ImageSelectModal-CAOh3YHc.js} +3 -3
- package/dist/{ImageUploadWrapper-B7F5UzSa.js → ImageUploadWrapper-21yldsj9.js} +2 -2
- package/dist/{Index-Dj7XQrCX.js → Index-B0BgYtWI.js} +5 -5
- package/dist/{Index-DLX_14JW.js → Index-BC1AhlQ9.js} +6 -6
- package/dist/{Index-B77mpvaJ.js → Index-BZi6r2UN.js} +8 -8
- package/dist/{Index-CPXWFvtI.js → Index-BsD09y_2.js} +6 -6
- package/dist/{Index-DpZ0FVkb.js → Index-Bu9SdKLP.js} +1 -1
- package/dist/{Index-DRdhlnQI.js → Index-BvsqZh2A.js} +4 -4
- package/dist/{Index-Cb7AYMdp.js → Index-Bz4qd9uO.js} +5 -5
- package/dist/{Index-BkDT09xK.js → Index-C--GiPc1.js} +5 -5
- package/dist/{Index-D_21EWlr.js → Index-CC7qF0br.js} +4 -4
- package/dist/{Index-CgugegyD.js → Index-CGxOvTF4.js} +590 -694
- package/dist/{Index-C8Eykyfr.js → Index-CI7_ktvb.js} +5 -5
- package/dist/{Index-D_XxQTHL.js → Index-COJZmxkX.js} +4 -4
- package/dist/{Index-BztAYqwZ.js → Index-CObEQ6G-.js} +3 -3
- package/dist/{Index-Lwrlj4Uo.js → Index-CP2bsXd-.js} +11 -13
- package/dist/{Index-DM8XS-Lc.js → Index-CSvZBLnp.js} +3 -3
- package/dist/{Index-xVss9bbv.js → Index-Ci-hGBbC.js} +4 -4
- package/dist/{Index-CUYcsakk.js → Index-Ckzq1cEJ.js} +22 -18
- package/dist/{Index-euXfMzGE.js → Index-CoIh5y2F.js} +4 -4
- package/dist/{Index-Cs1C7d8_.js → Index-Couda8BX.js} +2 -2
- package/dist/{Index-BSApSN3a.js → Index-CvXt3dm6.js} +24 -24
- package/dist/{Index-CwOwQrDd.js → Index-D95MNzAZ.js} +4 -4
- package/dist/{Index-CRjdza18.js → Index-DB5EG4EI.js} +32 -30
- package/dist/{Index-COFOq65C.js → Index-DDvRihXA.js} +3 -3
- package/dist/{Index-BOIBgNgp.js → Index-DIAntwBs.js} +2 -2
- package/dist/{Index-BCBBrdDY.js → Index-DUdJNcDT.js} +4 -4
- package/dist/{Index-DAuSARq4.js → Index-DfANvO5d.js} +5 -5
- package/dist/{Index-DLwJlsSV.js → Index-Ds1Jv5Mr.js} +6 -6
- package/dist/{Index-CBRWEkz3.js → Index-FIWsRGmh.js} +12 -7
- package/dist/{Index-DXovv3-e.js → Index-M3b7S4YX.js} +4 -4
- package/dist/{Index-McJQllNy.js → Index-NoN1_539.js} +7 -7
- package/dist/{Index-BBWCdaFx.js → Index-UGFm4yxI.js} +14 -32
- package/dist/{Index-Dk7qSZaZ.js → Index-aCBe0dXx.js} +2 -2
- package/dist/{Index-BSizncA1.js → Index-kJFtpJEP.js} +2 -2
- package/dist/{Index-DxT6UrU3.js → Index-rQKoLISX.js} +2 -2
- package/dist/{InputToggleRow-BjSD0lth.js → InputToggleRow-Ct8rvqAF.js} +1 -1
- package/dist/{ManualPopover-CIouE65j.js → ManualPopover-B0vp9ydC.js} +1 -1
- package/dist/{MediaWrapper-DK2fsQP7.js → MediaWrapper-hmofOPLv.js} +3 -3
- package/dist/{NotBindingText-D1IUYEiC.js → NotBindingText-COpJPwHe.js} +2 -2
- package/dist/{PackageGroup-BImsltc7.js → PackageGroup-BdtslJL-.js} +5 -5
- package/dist/{PdfTerms-BzBvvuT6.js → PdfTerms-EDStBDhn.js} +2 -2
- package/dist/PdfViewer-D1_Roqu2.js +374 -0
- package/dist/{PlainHtml-J_nR1ibV.js → PlainHtml-C3JPvt4o.js} +1 -1
- package/dist/{PriceHeader-BZeaKOTy.js → PriceHeader-BdfozyN8.js} +7 -7
- package/dist/{SearchApi-Du-Lqo7R.js → SearchApi-CQtYh98a.js} +2 -2
- package/dist/{Setup-CtSIo_xU.js → Setup-DHHMT6xu.js} +1 -1
- package/dist/{CTabs.vue_vue_type_style_index_0_scoped_e02a6440_lang-B85IuuQS.js → SmartList-BXeRj5NC.js} +1 -1
- package/dist/{TermsSettings-DDHrUB_S.js → TermsSettings-D1tDAu-r.js} +3 -3
- package/dist/{ThemeColorRow-BiRPYyj_.js → ThemeColorRow-HUN-QPY_.js} +3 -3
- package/dist/{ToggleBinding-Cvd9I0Dw.js → ToggleBinding-CRoVM6Nw.js} +3 -3
- package/dist/{UploadModal-ByJeM98S.js → UploadModal-BD3pIiPT.js} +2 -2
- package/dist/{VideoPlayerInput-C1PiFaBo.js → VideoPlayerInput-QFJfPoCf.js} +3 -3
- package/dist/{VideoPlayerSettings-C9vt7Twd.js → VideoPlayerSettings-CGq--niu.js} +2 -2
- package/dist/{VideoSelectModal-cEDZv03c.js → VideoSelectModal-B61rBqdH.js} +3 -3
- package/dist/{answerDocumentMixin-QbMot2bf.js → answerDocumentMixin-DiONfM1s.js} +3 -3
- package/dist/{debounce-CaZBFRFZ.js → debounce-BIchuVwa.js} +11 -11
- package/dist/dom-CJxkno7i.js +91 -0
- package/dist/{focusDrawerMixin-D-mqPE02.js → focusDrawerMixin-CzvgKsOZ.js} +1 -1
- package/dist/{formComponentsInstall-BdhIOhq5.js → formComponentsInstall-EQLbqYqI.js} +201 -231
- package/dist/{formDrawerState-CcDRv2mi.js → formDrawerState-CiKGHdNH.js} +1 -1
- package/dist/{formValidationMixin-sp3Q6-ER.js → formValidationMixin-5BVcxu38.js} +2 -2
- package/dist/{index-CJTuXpCD.js → index-BYTRIZIz.js} +1 -1
- package/dist/{index-DEWMCZz4.js → index-Be__C37A.js} +1 -1
- package/dist/{index-DuCwf2mg.js → index-CUydiL8B.js} +16 -16
- package/dist/{index-BjZuADtN.js → index-DH6SCEKQ.js} +13 -13
- package/dist/{index-BWmMho6V.js → index-gtVGRKIX.js} +9 -9
- package/dist/{index-BABEaO8N.js → index-tNIrTnCx.js} +35 -35
- package/dist/index.es.js +3 -3
- package/dist/index.umd.js +134 -142
- package/dist/{main-DQ6SH_E_.js → main-Bp2qcma0.js} +4209 -4198
- package/dist/{mapFormMixin-2SoyKxW2.js → mapFormMixin-Ce3_WIKw.js} +1 -1
- package/dist/omit-21u5fFMx.js +31 -0
- package/dist/{publicSenderState-CKGe1ejF.js → publicSenderState-BcN9kJJr.js} +1 -1
- package/dist/style.css +2 -2
- package/dist/{throttle-BeZ_TpQb.js → throttle-CfPxqhW_.js} +2 -2
- package/dist/{tinycolor-C3JU9Hqu.js → tinycolor-DNK6zGoq.js} +1 -1
- package/dist/tippy.esm-B5TcTBWX.js +1799 -0
- package/dist/{utils-D2JfcR6v.js → utils-GzwJPAEe.js} +1 -1
- package/dist/{omit-BjdTqooP.js → vuedraggable.umd-2pmrPYml.js} +497 -525
- package/package.json +1 -1
- package/dist/BaseInput-BtgFVDxx.js +0 -364
- package/dist/PdfViewer-Dq0Mc-WC.js +0 -247
- package/dist/dom-CPYqHOIw.js +0 -69
- package/dist/tippy.esm-DowQrfWM.js +0 -2039
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { m as c } from "./mapFormMixin-
|
|
2
|
-
import { B as l } from "./BlockMedia-
|
|
3
|
-
import { b as r,
|
|
4
|
-
import { t as u } from "./tinycolor-
|
|
5
|
-
import { s as p } from "./dom-
|
|
6
|
-
import { T as y } from "./DocTextEditor-
|
|
1
|
+
import { m as c } from "./mapFormMixin-Ce3_WIKw.js";
|
|
2
|
+
import { B as l } from "./BlockMedia-CAgKbN_k.js";
|
|
3
|
+
import { b as r, w as d, n, ab as m } from "./main-Bp2qcma0.js";
|
|
4
|
+
import { t as u } from "./tinycolor-DNK6zGoq.js";
|
|
5
|
+
import { s as p } from "./dom-CJxkno7i.js";
|
|
6
|
+
import { T as y } from "./DocTextEditor-idQMnlIF.js";
|
|
7
7
|
import { i as h } from "./i18nMessages-Chz_lxGG.js";
|
|
8
8
|
const _ = {
|
|
9
9
|
name: "SummaryBottom",
|
|
@@ -138,7 +138,7 @@ const S = f.exports, x = {
|
|
|
138
138
|
},
|
|
139
139
|
components: {
|
|
140
140
|
TextEditor: y,
|
|
141
|
-
DocumentLogotype: () => import("./DocumentLogotype-
|
|
141
|
+
DocumentLogotype: () => import("./DocumentLogotype-pDJRc6Hj.js")
|
|
142
142
|
},
|
|
143
143
|
mixins: [c([])],
|
|
144
144
|
inject: ["parentSize"],
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as u, p as h, i as f, j as d, n as m } from "./main-
|
|
2
|
-
import { d as p } from "./debounce-
|
|
1
|
+
import { g as u, p as h, i as f, j as d, n as m } from "./main-Bp2qcma0.js";
|
|
2
|
+
import { d as p } from "./debounce-BIchuVwa.js";
|
|
3
3
|
import { m as y, a as g } from "./vuex.esm-DKGl8mcw.js";
|
|
4
4
|
const A = {
|
|
5
5
|
name: "SearchApi",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as m,
|
|
2
|
-
import { m as c } from "./mapFormMixin-
|
|
3
|
-
import g from "./Index-
|
|
1
|
+
import { i as m, F as o, n as v } from "./main-Bp2qcma0.js";
|
|
2
|
+
import { m as c } from "./mapFormMixin-Ce3_WIKw.js";
|
|
3
|
+
import g from "./Index-DfANvO5d.js";
|
|
4
4
|
const p = {
|
|
5
5
|
i18nOptions: {
|
|
6
6
|
namespaces: "terms",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { C as n } from "./ColorPicker-
|
|
2
|
-
import { M as s } from "./ManualPopover-
|
|
1
|
+
import { C as n } from "./ColorPicker-CWQEE8VR.js";
|
|
2
|
+
import { M as s } from "./ManualPopover-B0vp9ydC.js";
|
|
3
3
|
import { h as a } from "./color-TdtKxwVa.js";
|
|
4
|
-
import { n as l } from "./main-
|
|
4
|
+
import { n as l } from "./main-Bp2qcma0.js";
|
|
5
5
|
const i = {
|
|
6
6
|
name: "ThemeColorRow",
|
|
7
7
|
components: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { m as i } from "./mapFormMixin-
|
|
2
|
-
import { I as t } from "./InputToggleRow-
|
|
3
|
-
import { n as s } from "./main-
|
|
1
|
+
import { m as i } from "./mapFormMixin-Ce3_WIKw.js";
|
|
2
|
+
import { I as t } from "./InputToggleRow-Ct8rvqAF.js";
|
|
3
|
+
import { n as s } from "./main-Bp2qcma0.js";
|
|
4
4
|
const a = {
|
|
5
5
|
name: "ToggleBinding",
|
|
6
6
|
i18nOptions: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as l, h as o,
|
|
2
|
-
import m from "./Index-
|
|
1
|
+
import { i as l, h as o, G as c, n as d } from "./main-Bp2qcma0.js";
|
|
2
|
+
import m from "./Index-aCBe0dXx.js";
|
|
3
3
|
import { m as p } from "./vuex.esm-DKGl8mcw.js";
|
|
4
4
|
const u = {
|
|
5
5
|
i18nOptions: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { d as a } from "./debounce-
|
|
2
|
-
import { v as l } from "./utils-
|
|
3
|
-
import { n as r } from "./main-
|
|
1
|
+
import { d as a } from "./debounce-BIchuVwa.js";
|
|
2
|
+
import { v as l } from "./utils-GzwJPAEe.js";
|
|
3
|
+
import { n as r } from "./main-Bp2qcma0.js";
|
|
4
4
|
const n = {
|
|
5
5
|
name: "VideoPlayerInput",
|
|
6
6
|
i18nOptions: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import v from "./VideoPlayerInput-
|
|
2
|
-
import { B as f, a as g } from "./index-
|
|
3
|
-
import { c as x, n as y, o as _ } from "./main-
|
|
1
|
+
import v from "./VideoPlayerInput-QFJfPoCf.js";
|
|
2
|
+
import { B as f, a as g } from "./index-DH6SCEKQ.js";
|
|
3
|
+
import { c as x, n as y, o as _ } from "./main-Bp2qcma0.js";
|
|
4
4
|
const V = x.pexels.id, w = {
|
|
5
5
|
name: "VideoSelectModal",
|
|
6
6
|
i18nOptions: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { w as a } from "./CDropdownItem-
|
|
2
|
-
import { b as r } from "./main-
|
|
1
|
+
import { w as a } from "./CDropdownItem-DGES8E6l.js";
|
|
2
|
+
import { b as r } from "./main-Bp2qcma0.js";
|
|
3
3
|
const m = ({ documentKey: s = "document" } = {}) => ({
|
|
4
4
|
mixins: [a],
|
|
5
5
|
inject: {
|
|
@@ -23,7 +23,7 @@ const m = ({ documentKey: s = "document" } = {}) => ({
|
|
|
23
23
|
const e = r(this, s);
|
|
24
24
|
if (!e || e.isPreview || !(t === "decline" ? !0 : this.isValid()))
|
|
25
25
|
return;
|
|
26
|
-
const o = this.mq === "sm" ? "100%" : "auto", n = () => import("./AnswerModal-
|
|
26
|
+
const o = this.mq === "sm" ? "100%" : "auto", n = () => import("./AnswerModal-C8i3ldB_.js");
|
|
27
27
|
this.$modal.show(
|
|
28
28
|
n,
|
|
29
29
|
{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a7 as C, l as k, a8 as j, k as A } from "./main-Bp2qcma0.js";
|
|
2
2
|
var L = C, M = function() {
|
|
3
3
|
return L.Date.now();
|
|
4
4
|
}, B = M, F = /\s/;
|
|
@@ -7,25 +7,25 @@ function R(e) {
|
|
|
7
7
|
;
|
|
8
8
|
return r;
|
|
9
9
|
}
|
|
10
|
-
var D = R,
|
|
11
|
-
function
|
|
12
|
-
return e && e.slice(0,
|
|
10
|
+
var D = R, H = D, P = /^\s+/;
|
|
11
|
+
function U(e) {
|
|
12
|
+
return e && e.slice(0, H(e) + 1).replace(P, "");
|
|
13
13
|
}
|
|
14
|
-
var X =
|
|
14
|
+
var X = U, q = X, y = k, w = j, _ = NaN, z = /^[-+]0x[0-9a-f]+$/i, G = /^0b[01]+$/i, J = /^0o[0-7]+$/i, K = parseInt;
|
|
15
15
|
function Q(e) {
|
|
16
16
|
if (typeof e == "number")
|
|
17
17
|
return e;
|
|
18
18
|
if (w(e))
|
|
19
|
-
return
|
|
20
|
-
if (
|
|
19
|
+
return _;
|
|
20
|
+
if (y(e)) {
|
|
21
21
|
var r = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
22
|
-
e =
|
|
22
|
+
e = y(r) ? r + "" : r;
|
|
23
23
|
}
|
|
24
24
|
if (typeof e != "string")
|
|
25
25
|
return e === 0 ? e : +e;
|
|
26
26
|
e = q(e);
|
|
27
27
|
var i = G.test(e);
|
|
28
|
-
return i || J.test(e) ? K(e.slice(2), i ? 2 : 8) : z.test(e) ?
|
|
28
|
+
return i || J.test(e) ? K(e.slice(2), i ? 2 : 8) : z.test(e) ? _ : +e;
|
|
29
29
|
}
|
|
30
30
|
var V = Q, Y = k, T = B, $ = V, Z = "Expected a function", ee = Math.max, ne = Math.min;
|
|
31
31
|
function re(e, r, i) {
|
|
@@ -41,8 +41,8 @@ function re(e, r, i) {
|
|
|
41
41
|
return d = n, t = setTimeout(v, r), I ? g(n) : s;
|
|
42
42
|
}
|
|
43
43
|
function S(n) {
|
|
44
|
-
var a = n - f, m = n - d,
|
|
45
|
-
return c ? ne(
|
|
44
|
+
var a = n - f, m = n - d, p = r - a;
|
|
45
|
+
return c ? ne(p, l - m) : p;
|
|
46
46
|
}
|
|
47
47
|
function h(n) {
|
|
48
48
|
var a = n - f, m = n - d;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
const s = {}, a = {};
|
|
2
|
+
function u(t) {
|
|
3
|
+
if (a[t])
|
|
4
|
+
return;
|
|
5
|
+
if (s[t])
|
|
6
|
+
return s[t];
|
|
7
|
+
let o;
|
|
8
|
+
const n = new Promise((e, r) => {
|
|
9
|
+
o = window.setTimeout(() => {
|
|
10
|
+
s[t] = null, r(new Error(`Failed to load ${t} in 20s`));
|
|
11
|
+
}, 2e4), import(
|
|
12
|
+
/* @vite-ignore */
|
|
13
|
+
t
|
|
14
|
+
).then(() => {
|
|
15
|
+
o && window.clearTimeout(o), a[t] = !0, s[t] = null, e();
|
|
16
|
+
}).catch((c) => {
|
|
17
|
+
o && window.clearTimeout(o), s[t] = null, r(c);
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
return s[t] = n, n;
|
|
21
|
+
}
|
|
22
|
+
function p(t) {
|
|
23
|
+
if (t.endsWith(".mjs"))
|
|
24
|
+
return u(t);
|
|
25
|
+
if (a[t])
|
|
26
|
+
return;
|
|
27
|
+
if (s[t])
|
|
28
|
+
return s[t];
|
|
29
|
+
const o = new Promise((n, e) => {
|
|
30
|
+
const r = document.createElement("script"), c = window.setTimeout(() => {
|
|
31
|
+
s[t] = null, e(new Error(`Failed to load ${t} in 20s`));
|
|
32
|
+
}, 2e4);
|
|
33
|
+
r.onload = (f) => {
|
|
34
|
+
c && window.clearTimeout(c), a[t] = !0, s[t] = null, n();
|
|
35
|
+
}, r.onerror = (f) => {
|
|
36
|
+
c && window.clearTimeout(c), s[t] = null, e(f);
|
|
37
|
+
}, r.src = t, document.body.appendChild(r);
|
|
38
|
+
});
|
|
39
|
+
return s[t] = o, o;
|
|
40
|
+
}
|
|
41
|
+
function h(t) {
|
|
42
|
+
const o = t.getBoundingClientRect(), n = window.innerHeight || document.documentElement.clientHeight, e = window.innerWidth || document.documentElement.clientWidth, r = o.top <= n && o.top + o.height >= 0, c = o.left <= e && o.left + o.width >= 0;
|
|
43
|
+
return r && c;
|
|
44
|
+
}
|
|
45
|
+
const m = (t) => {
|
|
46
|
+
const o = /(auto|scroll)/, n = (i, l) => i.parentNode === null ? l : n(i.parentNode, l.concat([i])), e = (i, l) => getComputedStyle(i, null).getPropertyValue(l), r = (i) => e(i, "overflow") + e(i, "overflow-y") + e(i, "overflow-x"), c = (i) => o.test(r(i));
|
|
47
|
+
return ((i) => {
|
|
48
|
+
if (!(i instanceof HTMLElement || i instanceof SVGElement))
|
|
49
|
+
return null;
|
|
50
|
+
const l = n(i.parentNode, []);
|
|
51
|
+
for (let d = 0; d < l.length; d += 1)
|
|
52
|
+
if (c(l[d]))
|
|
53
|
+
return l[d];
|
|
54
|
+
return document.scrollingElement || document.documentElement;
|
|
55
|
+
})(t);
|
|
56
|
+
}, w = (t) => {
|
|
57
|
+
let o = 0;
|
|
58
|
+
for (; t; )
|
|
59
|
+
o += t.offsetTop, t = t.offsetParent;
|
|
60
|
+
return o;
|
|
61
|
+
};
|
|
62
|
+
function g(t, o) {
|
|
63
|
+
let n = t;
|
|
64
|
+
typeof n == "string" && (n = document.querySelector(n));
|
|
65
|
+
const e = {
|
|
66
|
+
offset: 0,
|
|
67
|
+
behavior: "smooth",
|
|
68
|
+
body: m(n),
|
|
69
|
+
// custom option used for choosing parent scroll element
|
|
70
|
+
...o
|
|
71
|
+
}, r = w(n);
|
|
72
|
+
HTMLElement.prototype.scrollTo ? e.body.scrollTo({
|
|
73
|
+
behavior: e.behavior,
|
|
74
|
+
top: r - e.offset
|
|
75
|
+
}) : e.body.scrollTop = r - e.offset;
|
|
76
|
+
}
|
|
77
|
+
const T = (t) => {
|
|
78
|
+
var e;
|
|
79
|
+
const o = (e = t == null ? void 0 : t.getRootNode) == null ? void 0 : e.call(t), n = (o == null ? void 0 : o.toString()) === "[object ShadowRoot]";
|
|
80
|
+
return {
|
|
81
|
+
isShadow: n,
|
|
82
|
+
el: n ? o : document
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
export {
|
|
86
|
+
m as a,
|
|
87
|
+
p as e,
|
|
88
|
+
T as g,
|
|
89
|
+
h as i,
|
|
90
|
+
g as s
|
|
91
|
+
};
|